configure revision 49f872b5
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.63 for libpciaccess 0.10.9. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=libpciaccess>. 6# 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## --------------------- ## 12## M4sh Initialization. ## 13## --------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in 26 *posix*) set -o posix ;; 27esac 28 29fi 30 31 32 33 34# PATH needs CR 35# Avoid depending upon Character Ranges. 36as_cr_letters='abcdefghijklmnopqrstuvwxyz' 37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 38as_cr_Letters=$as_cr_letters$as_cr_LETTERS 39as_cr_digits='0123456789' 40as_cr_alnum=$as_cr_Letters$as_cr_digits 41 42as_nl=' 43' 44export as_nl 45# Printing a long string crashes Solaris 7 /usr/bin/printf. 46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 49if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83# Support unset when possible. 84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 85 as_unset=unset 86else 87 as_unset=false 88fi 89 90 91# IFS 92# We need space, tab and new line, in precisely that order. Quoting is 93# there to prevent editors from complaining about space-tab. 94# (If _AS_PATH_WALK were called with IFS unset, it would disable word 95# splitting by setting IFS to empty value.) 96IFS=" "" $as_nl" 97 98# Find who we are. Look in the path if we contain no directory separator. 99case $0 in 100 *[\\/]* ) as_myself=$0 ;; 101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 102for as_dir in $PATH 103do 104 IFS=$as_save_IFS 105 test -z "$as_dir" && as_dir=. 106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 107done 108IFS=$as_save_IFS 109 110 ;; 111esac 112# We did not find ourselves, most probably we were run as `sh COMMAND' 113# in which case we are not to be found in the path. 114if test "x$as_myself" = x; then 115 as_myself=$0 116fi 117if test ! -f "$as_myself"; then 118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 119 { (exit 1); exit 1; } 120fi 121 122# Work around bugs in pre-3.0 UWIN ksh. 123for as_var in ENV MAIL MAILPATH 124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# Required to use basename. 137if expr a : '\(a\)' >/dev/null 2>&1 && 138 test "X`expr 00001 : '.*\(...\)'`" = X001; then 139 as_expr=expr 140else 141 as_expr=false 142fi 143 144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 145 as_basename=basename 146else 147 as_basename=false 148fi 149 150 151# Name of the executable. 152as_me=`$as_basename -- "$0" || 153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 154 X"$0" : 'X\(//\)$' \| \ 155 X"$0" : 'X\(/\)' \| . 2>/dev/null || 156$as_echo X/"$0" | 157 sed '/^.*\/\([^/][^/]*\)\/*$/{ 158 s//\1/ 159 q 160 } 161 /^X\/\(\/\/\)$/{ 162 s//\1/ 163 q 164 } 165 /^X\/\(\/\).*/{ 166 s//\1/ 167 q 168 } 169 s/.*/./; q'` 170 171# CDPATH. 172$as_unset CDPATH 173 174 175if test "x$CONFIG_SHELL" = x; then 176 if (eval ":") 2>/dev/null; then 177 as_have_required=yes 178else 179 as_have_required=no 180fi 181 182 if test $as_have_required = yes && (eval ": 183(as_func_return () { 184 (exit \$1) 185} 186as_func_success () { 187 as_func_return 0 188} 189as_func_failure () { 190 as_func_return 1 191} 192as_func_ret_success () { 193 return 0 194} 195as_func_ret_failure () { 196 return 1 197} 198 199exitcode=0 200if as_func_success; then 201 : 202else 203 exitcode=1 204 echo as_func_success failed. 205fi 206 207if as_func_failure; then 208 exitcode=1 209 echo as_func_failure succeeded. 210fi 211 212if as_func_ret_success; then 213 : 214else 215 exitcode=1 216 echo as_func_ret_success failed. 217fi 218 219if as_func_ret_failure; then 220 exitcode=1 221 echo as_func_ret_failure succeeded. 222fi 223 224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 225 : 226else 227 exitcode=1 228 echo positional parameters were not saved. 229fi 230 231test \$exitcode = 0) || { (exit 1); exit 1; } 232 233( 234 as_lineno_1=\$LINENO 235 as_lineno_2=\$LINENO 236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 238") 2> /dev/null; then 239 : 240else 241 as_candidate_shells= 242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 244do 245 IFS=$as_save_IFS 246 test -z "$as_dir" && as_dir=. 247 case $as_dir in 248 /*) 249 for as_base in sh bash ksh sh5; do 250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 251 done;; 252 esac 253done 254IFS=$as_save_IFS 255 256 257 for as_shell in $as_candidate_shells $SHELL; do 258 # Try only shells that exist, to save several forks. 259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 260 { ("$as_shell") 2> /dev/null <<\_ASEOF 261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 262 emulate sh 263 NULLCMD=: 264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 265 # is contrary to our usage. Disable this feature. 266 alias -g '${1+"$@"}'='"$@"' 267 setopt NO_GLOB_SUBST 268else 269 case `(set -o) 2>/dev/null` in 270 *posix*) set -o posix ;; 271esac 272 273fi 274 275 276: 277_ASEOF 278}; then 279 CONFIG_SHELL=$as_shell 280 as_have_required=yes 281 if { "$as_shell" 2> /dev/null <<\_ASEOF 282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 283 emulate sh 284 NULLCMD=: 285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 286 # is contrary to our usage. Disable this feature. 287 alias -g '${1+"$@"}'='"$@"' 288 setopt NO_GLOB_SUBST 289else 290 case `(set -o) 2>/dev/null` in 291 *posix*) set -o posix ;; 292esac 293 294fi 295 296 297: 298(as_func_return () { 299 (exit $1) 300} 301as_func_success () { 302 as_func_return 0 303} 304as_func_failure () { 305 as_func_return 1 306} 307as_func_ret_success () { 308 return 0 309} 310as_func_ret_failure () { 311 return 1 312} 313 314exitcode=0 315if as_func_success; then 316 : 317else 318 exitcode=1 319 echo as_func_success failed. 320fi 321 322if as_func_failure; then 323 exitcode=1 324 echo as_func_failure succeeded. 325fi 326 327if as_func_ret_success; then 328 : 329else 330 exitcode=1 331 echo as_func_ret_success failed. 332fi 333 334if as_func_ret_failure; then 335 exitcode=1 336 echo as_func_ret_failure succeeded. 337fi 338 339if ( set x; as_func_ret_success y && test x = "$1" ); then 340 : 341else 342 exitcode=1 343 echo positional parameters were not saved. 344fi 345 346test $exitcode = 0) || { (exit 1); exit 1; } 347 348( 349 as_lineno_1=$LINENO 350 as_lineno_2=$LINENO 351 test "x$as_lineno_1" != "x$as_lineno_2" && 352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 353 354_ASEOF 355}; then 356 break 357fi 358 359fi 360 361 done 362 363 if test "x$CONFIG_SHELL" != x; then 364 for as_var in BASH_ENV ENV 365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 366 done 367 export CONFIG_SHELL 368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 369fi 370 371 372 if test $as_have_required = no; then 373 echo This script requires a shell more modern than all the 374 echo shells that I found on your system. Please install a 375 echo modern shell, or manually run the script under such a 376 echo shell if you do have one. 377 { (exit 1); exit 1; } 378fi 379 380 381fi 382 383fi 384 385 386 387(eval "as_func_return () { 388 (exit \$1) 389} 390as_func_success () { 391 as_func_return 0 392} 393as_func_failure () { 394 as_func_return 1 395} 396as_func_ret_success () { 397 return 0 398} 399as_func_ret_failure () { 400 return 1 401} 402 403exitcode=0 404if as_func_success; then 405 : 406else 407 exitcode=1 408 echo as_func_success failed. 409fi 410 411if as_func_failure; then 412 exitcode=1 413 echo as_func_failure succeeded. 414fi 415 416if as_func_ret_success; then 417 : 418else 419 exitcode=1 420 echo as_func_ret_success failed. 421fi 422 423if as_func_ret_failure; then 424 exitcode=1 425 echo as_func_ret_failure succeeded. 426fi 427 428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 429 : 430else 431 exitcode=1 432 echo positional parameters were not saved. 433fi 434 435test \$exitcode = 0") || { 436 echo No shell found that supports shell functions. 437 echo Please tell bug-autoconf@gnu.org about your system, 438 echo including any error possibly output before this message. 439 echo This can help us improve future autoconf versions. 440 echo Configuration will now proceed without shell functions. 441} 442 443 444 445 as_lineno_1=$LINENO 446 as_lineno_2=$LINENO 447 test "x$as_lineno_1" != "x$as_lineno_2" && 448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 449 450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 451 # uniformly replaced by the line number. The first 'sed' inserts a 452 # line-number line after each line using $LINENO; the second 'sed' 453 # does the real work. The second script uses 'N' to pair each 454 # line-number line with the line containing $LINENO, and appends 455 # trailing '-' during substitution so that $LINENO is not a special 456 # case at line end. 457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 458 # scripts with optimization help from Paolo Bonzini. Blame Lee 459 # E. McMahon (1931-1989) for sed's syntax. :-) 460 sed -n ' 461 p 462 /[$]LINENO/= 463 ' <$as_myself | 464 sed ' 465 s/[$]LINENO.*/&-/ 466 t lineno 467 b 468 :lineno 469 N 470 :loop 471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 472 t loop 473 s/-\n.*// 474 ' >$as_me.lineno && 475 chmod +x "$as_me.lineno" || 476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 477 { (exit 1); exit 1; }; } 478 479 # Don't try to exec as it changes $[0], causing all sort of problems 480 # (the dirname of $[0] is not the place where we might find the 481 # original and so on. Autoconf is especially sensitive to this). 482 . "./$as_me.lineno" 483 # Exit status is that of the last command. 484 exit 485} 486 487 488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 489 as_dirname=dirname 490else 491 as_dirname=false 492fi 493 494ECHO_C= ECHO_N= ECHO_T= 495case `echo -n x` in 496-n*) 497 case `echo 'x\c'` in 498 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 499 *) ECHO_C='\c';; 500 esac;; 501*) 502 ECHO_N='-n';; 503esac 504if expr a : '\(a\)' >/dev/null 2>&1 && 505 test "X`expr 00001 : '.*\(...\)'`" = X001; then 506 as_expr=expr 507else 508 as_expr=false 509fi 510 511rm -f conf$$ conf$$.exe conf$$.file 512if test -d conf$$.dir; then 513 rm -f conf$$.dir/conf$$.file 514else 515 rm -f conf$$.dir 516 mkdir conf$$.dir 2>/dev/null 517fi 518if (echo >conf$$.file) 2>/dev/null; then 519 if ln -s conf$$.file conf$$ 2>/dev/null; then 520 as_ln_s='ln -s' 521 # ... but there are two gotchas: 522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 524 # In both cases, we have to default to `cp -p'. 525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 526 as_ln_s='cp -p' 527 elif ln conf$$.file conf$$ 2>/dev/null; then 528 as_ln_s=ln 529 else 530 as_ln_s='cp -p' 531 fi 532else 533 as_ln_s='cp -p' 534fi 535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 536rmdir conf$$.dir 2>/dev/null 537 538if mkdir -p . 2>/dev/null; then 539 as_mkdir_p=: 540else 541 test -d ./-p && rmdir ./-p 542 as_mkdir_p=false 543fi 544 545if test -x / >/dev/null 2>&1; then 546 as_test_x='test -x' 547else 548 if ls -dL / >/dev/null 2>&1; then 549 as_ls_L_option=L 550 else 551 as_ls_L_option= 552 fi 553 as_test_x=' 554 eval sh -c '\'' 555 if test -d "$1"; then 556 test -d "$1/."; 557 else 558 case $1 in 559 -*)set "./$1";; 560 esac; 561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 562 ???[sx]*):;;*)false;;esac;fi 563 '\'' sh 564 ' 565fi 566as_executable_p=$as_test_x 567 568# Sed expression to map a string onto a valid CPP name. 569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 570 571# Sed expression to map a string onto a valid variable name. 572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 573 574 575 576 577# Check that we are running under the correct shell. 578SHELL=${CONFIG_SHELL-/bin/sh} 579 580case X$ECHO in 581X*--fallback-echo) 582 # Remove one level of quotation (which was required for Make). 583 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 584 ;; 585esac 586 587echo=${ECHO-echo} 588if test "X$1" = X--no-reexec; then 589 # Discard the --no-reexec flag, and continue. 590 shift 591elif test "X$1" = X--fallback-echo; then 592 # Avoid inline document here, it may be left over 593 : 594elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 595 # Yippee, $echo works! 596 : 597else 598 # Restart under the correct shell. 599 exec $SHELL "$0" --no-reexec ${1+"$@"} 600fi 601 602if test "X$1" = X--fallback-echo; then 603 # used as fallback echo 604 shift 605 cat <<EOF 606$* 607EOF 608 exit 0 609fi 610 611# The HP-UX ksh and POSIX shell print the target directory to stdout 612# if CDPATH is set. 613(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 614 615if test -z "$ECHO"; then 616if test "X${echo_test_string+set}" != Xset; then 617# find a string as large as possible, as long as the shell can cope with it 618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 620 if (echo_test_string=`eval $cmd`) 2>/dev/null && 621 echo_test_string=`eval $cmd` && 622 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 623 then 624 break 625 fi 626 done 627fi 628 629if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 630 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 631 test "X$echo_testing_string" = "X$echo_test_string"; then 632 : 633else 634 # The Solaris, AIX, and Digital Unix default echo programs unquote 635 # backslashes. This makes it impossible to quote backslashes using 636 # echo "$something" | sed 's/\\/\\\\/g' 637 # 638 # So, first we look for a working echo in the user's PATH. 639 640 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 641 for dir in $PATH /usr/ucb; do 642 IFS="$lt_save_ifs" 643 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 644 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 645 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 646 test "X$echo_testing_string" = "X$echo_test_string"; then 647 echo="$dir/echo" 648 break 649 fi 650 done 651 IFS="$lt_save_ifs" 652 653 if test "X$echo" = Xecho; then 654 # We didn't find a better echo, so look for alternatives. 655 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 656 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 657 test "X$echo_testing_string" = "X$echo_test_string"; then 658 # This shell has a builtin print -r that does the trick. 659 echo='print -r' 660 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 661 test "X$CONFIG_SHELL" != X/bin/ksh; then 662 # If we have ksh, try running configure again with it. 663 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 664 export ORIGINAL_CONFIG_SHELL 665 CONFIG_SHELL=/bin/ksh 666 export CONFIG_SHELL 667 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 668 else 669 # Try using printf. 670 echo='printf %s\n' 671 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 672 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 673 test "X$echo_testing_string" = "X$echo_test_string"; then 674 # Cool, printf works 675 : 676 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 677 test "X$echo_testing_string" = 'X\t' && 678 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 679 test "X$echo_testing_string" = "X$echo_test_string"; then 680 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 681 export CONFIG_SHELL 682 SHELL="$CONFIG_SHELL" 683 export SHELL 684 echo="$CONFIG_SHELL $0 --fallback-echo" 685 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 686 test "X$echo_testing_string" = 'X\t' && 687 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 688 test "X$echo_testing_string" = "X$echo_test_string"; then 689 echo="$CONFIG_SHELL $0 --fallback-echo" 690 else 691 # maybe with a smaller string... 692 prev=: 693 694 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 695 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 696 then 697 break 698 fi 699 prev="$cmd" 700 done 701 702 if test "$prev" != 'sed 50q "$0"'; then 703 echo_test_string=`eval $prev` 704 export echo_test_string 705 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 706 else 707 # Oops. We lost completely, so just stick with echo. 708 echo=echo 709 fi 710 fi 711 fi 712 fi 713fi 714fi 715 716# Copy echo and quote the copy suitably for passing to libtool from 717# the Makefile, instead of quoting the original, which is used later. 718ECHO=$echo 719if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 720 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 721fi 722 723 724 725 726tagnames=${tagnames+${tagnames},}CXX 727 728tagnames=${tagnames+${tagnames},}F77 729 730exec 7<&0 </dev/null 6>&1 731 732# Name of the host. 733# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 734# so uname gets run too. 735ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 736 737# 738# Initializations. 739# 740ac_default_prefix=/usr/local 741ac_clean_files= 742ac_config_libobj_dir=. 743LIBOBJS= 744cross_compiling=no 745subdirs= 746MFLAGS= 747MAKEFLAGS= 748SHELL=${CONFIG_SHELL-/bin/sh} 749 750# Identity of this package. 751PACKAGE_NAME='libpciaccess' 752PACKAGE_TARNAME='libpciaccess' 753PACKAGE_VERSION='0.10.9' 754PACKAGE_STRING='libpciaccess 0.10.9' 755PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=libpciaccess' 756 757# Factoring default headers for most tests. 758ac_includes_default="\ 759#include <stdio.h> 760#ifdef HAVE_SYS_TYPES_H 761# include <sys/types.h> 762#endif 763#ifdef HAVE_SYS_STAT_H 764# include <sys/stat.h> 765#endif 766#ifdef STDC_HEADERS 767# include <stdlib.h> 768# include <stddef.h> 769#else 770# ifdef HAVE_STDLIB_H 771# include <stdlib.h> 772# endif 773#endif 774#ifdef HAVE_STRING_H 775# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 776# include <memory.h> 777# endif 778# include <string.h> 779#endif 780#ifdef HAVE_STRINGS_H 781# include <strings.h> 782#endif 783#ifdef HAVE_INTTYPES_H 784# include <inttypes.h> 785#endif 786#ifdef HAVE_STDINT_H 787# include <stdint.h> 788#endif 789#ifdef HAVE_UNISTD_H 790# include <unistd.h> 791#endif" 792 793ac_subst_vars='am__EXEEXT_FALSE 794am__EXEEXT_TRUE 795LTLIBOBJS 796LIBOBJS 797distcleancheck_listfiles 798CHANGELOG_CMD 799PCIACCESS_LIBS 800PCIACCESS_CFLAGS 801SOLARIS_FALSE 802SOLARIS_TRUE 803OPENBSD_FALSE 804OPENBSD_TRUE 805NETBSD_FALSE 806NETBSD_TRUE 807FREEBSD_FALSE 808FREEBSD_TRUE 809LINUX_FALSE 810LINUX_TRUE 811PCIIDS_PATH 812AM_BACKSLASH 813AM_DEFAULT_VERBOSITY 814CWARNFLAGS 815LIBTOOL 816ac_ct_F77 817FFLAGS 818F77 819CXXCPP 820am__fastdepCXX_FALSE 821am__fastdepCXX_TRUE 822CXXDEPMODE 823ac_ct_CXX 824CXXFLAGS 825CXX 826CPP 827NMEDIT 828DSYMUTIL 829RANLIB 830AR 831ECHO 832LN_S 833EGREP 834GREP 835SED 836host_os 837host_vendor 838host_cpu 839host 840build_os 841build_vendor 842build_cpu 843build 844am__fastdepCC_FALSE 845am__fastdepCC_TRUE 846CCDEPMODE 847AMDEPBACKSLASH 848AMDEP_FALSE 849AMDEP_TRUE 850am__quote 851am__include 852DEPDIR 853OBJEXT 854EXEEXT 855ac_ct_CC 856CPPFLAGS 857LDFLAGS 858CFLAGS 859CC 860MAINT 861MAINTAINER_MODE_FALSE 862MAINTAINER_MODE_TRUE 863am__untar 864am__tar 865AMTAR 866am__leading_dot 867SET_MAKE 868AWK 869mkdir_p 870MKDIR_P 871INSTALL_STRIP_PROGRAM 872STRIP 873install_sh 874MAKEINFO 875AUTOHEADER 876AUTOMAKE 877AUTOCONF 878ACLOCAL 879VERSION 880PACKAGE 881CYGPATH_W 882am__isrc 883INSTALL_DATA 884INSTALL_SCRIPT 885INSTALL_PROGRAM 886target_alias 887host_alias 888build_alias 889LIBS 890ECHO_T 891ECHO_N 892ECHO_C 893DEFS 894mandir 895localedir 896libdir 897psdir 898pdfdir 899dvidir 900htmldir 901infodir 902docdir 903oldincludedir 904includedir 905localstatedir 906sharedstatedir 907sysconfdir 908datadir 909datarootdir 910libexecdir 911sbindir 912bindir 913program_transform_name 914prefix 915exec_prefix 916PACKAGE_BUGREPORT 917PACKAGE_STRING 918PACKAGE_VERSION 919PACKAGE_TARNAME 920PACKAGE_NAME 921PATH_SEPARATOR 922SHELL' 923ac_subst_files='' 924ac_user_opts=' 925enable_option_checking 926enable_maintainer_mode 927enable_dependency_tracking 928enable_shared 929enable_static 930enable_fast_install 931with_gnu_ld 932enable_libtool_lock 933with_pic 934with_tags 935enable_silent_rules 936with_pciids_path 937enable_linux_rom_fallback 938with_zlib 939enable_largefile 940with_release_version 941' 942 ac_precious_vars='build_alias 943host_alias 944target_alias 945CC 946CFLAGS 947LDFLAGS 948LIBS 949CPPFLAGS 950CPP 951CXX 952CXXFLAGS 953CCC 954CXXCPP 955F77 956FFLAGS' 957 958 959# Initialize some variables set by options. 960ac_init_help= 961ac_init_version=false 962ac_unrecognized_opts= 963ac_unrecognized_sep= 964# The variables have the same names as the options, with 965# dashes changed to underlines. 966cache_file=/dev/null 967exec_prefix=NONE 968no_create= 969no_recursion= 970prefix=NONE 971program_prefix=NONE 972program_suffix=NONE 973program_transform_name=s,x,x, 974silent= 975site= 976srcdir= 977verbose= 978x_includes=NONE 979x_libraries=NONE 980 981# Installation directory options. 982# These are left unexpanded so users can "make install exec_prefix=/foo" 983# and all the variables that are supposed to be based on exec_prefix 984# by default will actually change. 985# Use braces instead of parens because sh, perl, etc. also accept them. 986# (The list follows the same order as the GNU Coding Standards.) 987bindir='${exec_prefix}/bin' 988sbindir='${exec_prefix}/sbin' 989libexecdir='${exec_prefix}/libexec' 990datarootdir='${prefix}/share' 991datadir='${datarootdir}' 992sysconfdir='${prefix}/etc' 993sharedstatedir='${prefix}/com' 994localstatedir='${prefix}/var' 995includedir='${prefix}/include' 996oldincludedir='/usr/include' 997docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 998infodir='${datarootdir}/info' 999htmldir='${docdir}' 1000dvidir='${docdir}' 1001pdfdir='${docdir}' 1002psdir='${docdir}' 1003libdir='${exec_prefix}/lib' 1004localedir='${datarootdir}/locale' 1005mandir='${datarootdir}/man' 1006 1007ac_prev= 1008ac_dashdash= 1009for ac_option 1010do 1011 # If the previous option needs an argument, assign it. 1012 if test -n "$ac_prev"; then 1013 eval $ac_prev=\$ac_option 1014 ac_prev= 1015 continue 1016 fi 1017 1018 case $ac_option in 1019 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1020 *) ac_optarg=yes ;; 1021 esac 1022 1023 # Accept the important Cygnus configure options, so we can diagnose typos. 1024 1025 case $ac_dashdash$ac_option in 1026 --) 1027 ac_dashdash=yes ;; 1028 1029 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1030 ac_prev=bindir ;; 1031 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1032 bindir=$ac_optarg ;; 1033 1034 -build | --build | --buil | --bui | --bu) 1035 ac_prev=build_alias ;; 1036 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1037 build_alias=$ac_optarg ;; 1038 1039 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1040 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1041 ac_prev=cache_file ;; 1042 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1043 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1044 cache_file=$ac_optarg ;; 1045 1046 --config-cache | -C) 1047 cache_file=config.cache ;; 1048 1049 -datadir | --datadir | --datadi | --datad) 1050 ac_prev=datadir ;; 1051 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1052 datadir=$ac_optarg ;; 1053 1054 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1055 | --dataroo | --dataro | --datar) 1056 ac_prev=datarootdir ;; 1057 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1058 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1059 datarootdir=$ac_optarg ;; 1060 1061 -disable-* | --disable-*) 1062 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1063 # Reject names that are not valid shell variable names. 1064 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1065 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1066 { (exit 1); exit 1; }; } 1067 ac_useropt_orig=$ac_useropt 1068 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1069 case $ac_user_opts in 1070 *" 1071"enable_$ac_useropt" 1072"*) ;; 1073 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1074 ac_unrecognized_sep=', ';; 1075 esac 1076 eval enable_$ac_useropt=no ;; 1077 1078 -docdir | --docdir | --docdi | --doc | --do) 1079 ac_prev=docdir ;; 1080 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1081 docdir=$ac_optarg ;; 1082 1083 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1084 ac_prev=dvidir ;; 1085 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1086 dvidir=$ac_optarg ;; 1087 1088 -enable-* | --enable-*) 1089 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1090 # Reject names that are not valid shell variable names. 1091 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1092 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1093 { (exit 1); exit 1; }; } 1094 ac_useropt_orig=$ac_useropt 1095 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1096 case $ac_user_opts in 1097 *" 1098"enable_$ac_useropt" 1099"*) ;; 1100 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1101 ac_unrecognized_sep=', ';; 1102 esac 1103 eval enable_$ac_useropt=\$ac_optarg ;; 1104 1105 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1106 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1107 | --exec | --exe | --ex) 1108 ac_prev=exec_prefix ;; 1109 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1110 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1111 | --exec=* | --exe=* | --ex=*) 1112 exec_prefix=$ac_optarg ;; 1113 1114 -gas | --gas | --ga | --g) 1115 # Obsolete; use --with-gas. 1116 with_gas=yes ;; 1117 1118 -help | --help | --hel | --he | -h) 1119 ac_init_help=long ;; 1120 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1121 ac_init_help=recursive ;; 1122 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1123 ac_init_help=short ;; 1124 1125 -host | --host | --hos | --ho) 1126 ac_prev=host_alias ;; 1127 -host=* | --host=* | --hos=* | --ho=*) 1128 host_alias=$ac_optarg ;; 1129 1130 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1131 ac_prev=htmldir ;; 1132 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1133 | --ht=*) 1134 htmldir=$ac_optarg ;; 1135 1136 -includedir | --includedir | --includedi | --included | --include \ 1137 | --includ | --inclu | --incl | --inc) 1138 ac_prev=includedir ;; 1139 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1140 | --includ=* | --inclu=* | --incl=* | --inc=*) 1141 includedir=$ac_optarg ;; 1142 1143 -infodir | --infodir | --infodi | --infod | --info | --inf) 1144 ac_prev=infodir ;; 1145 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1146 infodir=$ac_optarg ;; 1147 1148 -libdir | --libdir | --libdi | --libd) 1149 ac_prev=libdir ;; 1150 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1151 libdir=$ac_optarg ;; 1152 1153 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1154 | --libexe | --libex | --libe) 1155 ac_prev=libexecdir ;; 1156 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1157 | --libexe=* | --libex=* | --libe=*) 1158 libexecdir=$ac_optarg ;; 1159 1160 -localedir | --localedir | --localedi | --localed | --locale) 1161 ac_prev=localedir ;; 1162 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1163 localedir=$ac_optarg ;; 1164 1165 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1166 | --localstate | --localstat | --localsta | --localst | --locals) 1167 ac_prev=localstatedir ;; 1168 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1169 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1170 localstatedir=$ac_optarg ;; 1171 1172 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1173 ac_prev=mandir ;; 1174 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1175 mandir=$ac_optarg ;; 1176 1177 -nfp | --nfp | --nf) 1178 # Obsolete; use --without-fp. 1179 with_fp=no ;; 1180 1181 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1182 | --no-cr | --no-c | -n) 1183 no_create=yes ;; 1184 1185 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1186 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1187 no_recursion=yes ;; 1188 1189 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1190 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1191 | --oldin | --oldi | --old | --ol | --o) 1192 ac_prev=oldincludedir ;; 1193 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1194 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1195 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1196 oldincludedir=$ac_optarg ;; 1197 1198 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1199 ac_prev=prefix ;; 1200 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1201 prefix=$ac_optarg ;; 1202 1203 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1204 | --program-pre | --program-pr | --program-p) 1205 ac_prev=program_prefix ;; 1206 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1207 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1208 program_prefix=$ac_optarg ;; 1209 1210 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1211 | --program-suf | --program-su | --program-s) 1212 ac_prev=program_suffix ;; 1213 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1214 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1215 program_suffix=$ac_optarg ;; 1216 1217 -program-transform-name | --program-transform-name \ 1218 | --program-transform-nam | --program-transform-na \ 1219 | --program-transform-n | --program-transform- \ 1220 | --program-transform | --program-transfor \ 1221 | --program-transfo | --program-transf \ 1222 | --program-trans | --program-tran \ 1223 | --progr-tra | --program-tr | --program-t) 1224 ac_prev=program_transform_name ;; 1225 -program-transform-name=* | --program-transform-name=* \ 1226 | --program-transform-nam=* | --program-transform-na=* \ 1227 | --program-transform-n=* | --program-transform-=* \ 1228 | --program-transform=* | --program-transfor=* \ 1229 | --program-transfo=* | --program-transf=* \ 1230 | --program-trans=* | --program-tran=* \ 1231 | --progr-tra=* | --program-tr=* | --program-t=*) 1232 program_transform_name=$ac_optarg ;; 1233 1234 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1235 ac_prev=pdfdir ;; 1236 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1237 pdfdir=$ac_optarg ;; 1238 1239 -psdir | --psdir | --psdi | --psd | --ps) 1240 ac_prev=psdir ;; 1241 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1242 psdir=$ac_optarg ;; 1243 1244 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1245 | -silent | --silent | --silen | --sile | --sil) 1246 silent=yes ;; 1247 1248 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1249 ac_prev=sbindir ;; 1250 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1251 | --sbi=* | --sb=*) 1252 sbindir=$ac_optarg ;; 1253 1254 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1255 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1256 | --sharedst | --shareds | --shared | --share | --shar \ 1257 | --sha | --sh) 1258 ac_prev=sharedstatedir ;; 1259 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1260 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1261 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1262 | --sha=* | --sh=*) 1263 sharedstatedir=$ac_optarg ;; 1264 1265 -site | --site | --sit) 1266 ac_prev=site ;; 1267 -site=* | --site=* | --sit=*) 1268 site=$ac_optarg ;; 1269 1270 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1271 ac_prev=srcdir ;; 1272 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1273 srcdir=$ac_optarg ;; 1274 1275 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1276 | --syscon | --sysco | --sysc | --sys | --sy) 1277 ac_prev=sysconfdir ;; 1278 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1279 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1280 sysconfdir=$ac_optarg ;; 1281 1282 -target | --target | --targe | --targ | --tar | --ta | --t) 1283 ac_prev=target_alias ;; 1284 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1285 target_alias=$ac_optarg ;; 1286 1287 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1288 verbose=yes ;; 1289 1290 -version | --version | --versio | --versi | --vers | -V) 1291 ac_init_version=: ;; 1292 1293 -with-* | --with-*) 1294 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1295 # Reject names that are not valid shell variable names. 1296 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1297 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1298 { (exit 1); exit 1; }; } 1299 ac_useropt_orig=$ac_useropt 1300 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1301 case $ac_user_opts in 1302 *" 1303"with_$ac_useropt" 1304"*) ;; 1305 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1306 ac_unrecognized_sep=', ';; 1307 esac 1308 eval with_$ac_useropt=\$ac_optarg ;; 1309 1310 -without-* | --without-*) 1311 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1312 # Reject names that are not valid shell variable names. 1313 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1314 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1315 { (exit 1); exit 1; }; } 1316 ac_useropt_orig=$ac_useropt 1317 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1318 case $ac_user_opts in 1319 *" 1320"with_$ac_useropt" 1321"*) ;; 1322 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1323 ac_unrecognized_sep=', ';; 1324 esac 1325 eval with_$ac_useropt=no ;; 1326 1327 --x) 1328 # Obsolete; use --with-x. 1329 with_x=yes ;; 1330 1331 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1332 | --x-incl | --x-inc | --x-in | --x-i) 1333 ac_prev=x_includes ;; 1334 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1335 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1336 x_includes=$ac_optarg ;; 1337 1338 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1339 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1340 ac_prev=x_libraries ;; 1341 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1342 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1343 x_libraries=$ac_optarg ;; 1344 1345 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1346Try \`$0 --help' for more information." >&2 1347 { (exit 1); exit 1; }; } 1348 ;; 1349 1350 *=*) 1351 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1352 # Reject names that are not valid shell variable names. 1353 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1354 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1355 { (exit 1); exit 1; }; } 1356 eval $ac_envvar=\$ac_optarg 1357 export $ac_envvar ;; 1358 1359 *) 1360 # FIXME: should be removed in autoconf 3.0. 1361 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1362 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1363 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1364 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1365 ;; 1366 1367 esac 1368done 1369 1370if test -n "$ac_prev"; then 1371 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1372 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1373 { (exit 1); exit 1; }; } 1374fi 1375 1376if test -n "$ac_unrecognized_opts"; then 1377 case $enable_option_checking in 1378 no) ;; 1379 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 1380 { (exit 1); exit 1; }; } ;; 1381 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1382 esac 1383fi 1384 1385# Check all directory arguments for consistency. 1386for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1387 datadir sysconfdir sharedstatedir localstatedir includedir \ 1388 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1389 libdir localedir mandir 1390do 1391 eval ac_val=\$$ac_var 1392 # Remove trailing slashes. 1393 case $ac_val in 1394 */ ) 1395 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1396 eval $ac_var=\$ac_val;; 1397 esac 1398 # Be sure to have absolute directory names. 1399 case $ac_val in 1400 [\\/$]* | ?:[\\/]* ) continue;; 1401 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1402 esac 1403 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1404 { (exit 1); exit 1; }; } 1405done 1406 1407# There might be people who depend on the old broken behavior: `$host' 1408# used to hold the argument of --host etc. 1409# FIXME: To remove some day. 1410build=$build_alias 1411host=$host_alias 1412target=$target_alias 1413 1414# FIXME: To remove some day. 1415if test "x$host_alias" != x; then 1416 if test "x$build_alias" = x; then 1417 cross_compiling=maybe 1418 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1419 If a cross compiler is detected then cross compile mode will be used." >&2 1420 elif test "x$build_alias" != "x$host_alias"; then 1421 cross_compiling=yes 1422 fi 1423fi 1424 1425ac_tool_prefix= 1426test -n "$host_alias" && ac_tool_prefix=$host_alias- 1427 1428test "$silent" = yes && exec 6>/dev/null 1429 1430 1431ac_pwd=`pwd` && test -n "$ac_pwd" && 1432ac_ls_di=`ls -di .` && 1433ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1434 { $as_echo "$as_me: error: working directory cannot be determined" >&2 1435 { (exit 1); exit 1; }; } 1436test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1437 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1438 { (exit 1); exit 1; }; } 1439 1440 1441# Find the source files, if location was not specified. 1442if test -z "$srcdir"; then 1443 ac_srcdir_defaulted=yes 1444 # Try the directory containing this script, then the parent directory. 1445 ac_confdir=`$as_dirname -- "$as_myself" || 1446$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1447 X"$as_myself" : 'X\(//\)[^/]' \| \ 1448 X"$as_myself" : 'X\(//\)$' \| \ 1449 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1450$as_echo X"$as_myself" | 1451 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1452 s//\1/ 1453 q 1454 } 1455 /^X\(\/\/\)[^/].*/{ 1456 s//\1/ 1457 q 1458 } 1459 /^X\(\/\/\)$/{ 1460 s//\1/ 1461 q 1462 } 1463 /^X\(\/\).*/{ 1464 s//\1/ 1465 q 1466 } 1467 s/.*/./; q'` 1468 srcdir=$ac_confdir 1469 if test ! -r "$srcdir/$ac_unique_file"; then 1470 srcdir=.. 1471 fi 1472else 1473 ac_srcdir_defaulted=no 1474fi 1475if test ! -r "$srcdir/$ac_unique_file"; then 1476 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1477 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1478 { (exit 1); exit 1; }; } 1479fi 1480ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1481ac_abs_confdir=`( 1482 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1483 { (exit 1); exit 1; }; } 1484 pwd)` 1485# When building in place, set srcdir=. 1486if test "$ac_abs_confdir" = "$ac_pwd"; then 1487 srcdir=. 1488fi 1489# Remove unnecessary trailing slashes from srcdir. 1490# Double slashes in file names in object file debugging info 1491# mess up M-x gdb in Emacs. 1492case $srcdir in 1493*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1494esac 1495for ac_var in $ac_precious_vars; do 1496 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1497 eval ac_env_${ac_var}_value=\$${ac_var} 1498 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1499 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1500done 1501 1502# 1503# Report the --help message. 1504# 1505if test "$ac_init_help" = "long"; then 1506 # Omit some internal or obsolete options to make the list less imposing. 1507 # This message is too long to be a string in the A/UX 3.1 sh. 1508 cat <<_ACEOF 1509\`configure' configures libpciaccess 0.10.9 to adapt to many kinds of systems. 1510 1511Usage: $0 [OPTION]... [VAR=VALUE]... 1512 1513To assign environment variables (e.g., CC, CFLAGS...), specify them as 1514VAR=VALUE. See below for descriptions of some of the useful variables. 1515 1516Defaults for the options are specified in brackets. 1517 1518Configuration: 1519 -h, --help display this help and exit 1520 --help=short display options specific to this package 1521 --help=recursive display the short help of all the included packages 1522 -V, --version display version information and exit 1523 -q, --quiet, --silent do not print \`checking...' messages 1524 --cache-file=FILE cache test results in FILE [disabled] 1525 -C, --config-cache alias for \`--cache-file=config.cache' 1526 -n, --no-create do not create output files 1527 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1528 1529Installation directories: 1530 --prefix=PREFIX install architecture-independent files in PREFIX 1531 [$ac_default_prefix] 1532 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1533 [PREFIX] 1534 1535By default, \`make install' will install all the files in 1536\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1537an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1538for instance \`--prefix=\$HOME'. 1539 1540For better control, use the options below. 1541 1542Fine tuning of the installation directories: 1543 --bindir=DIR user executables [EPREFIX/bin] 1544 --sbindir=DIR system admin executables [EPREFIX/sbin] 1545 --libexecdir=DIR program executables [EPREFIX/libexec] 1546 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1547 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1548 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1549 --libdir=DIR object code libraries [EPREFIX/lib] 1550 --includedir=DIR C header files [PREFIX/include] 1551 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1552 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1553 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1554 --infodir=DIR info documentation [DATAROOTDIR/info] 1555 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1556 --mandir=DIR man documentation [DATAROOTDIR/man] 1557 --docdir=DIR documentation root [DATAROOTDIR/doc/libpciaccess] 1558 --htmldir=DIR html documentation [DOCDIR] 1559 --dvidir=DIR dvi documentation [DOCDIR] 1560 --pdfdir=DIR pdf documentation [DOCDIR] 1561 --psdir=DIR ps documentation [DOCDIR] 1562_ACEOF 1563 1564 cat <<\_ACEOF 1565 1566Program names: 1567 --program-prefix=PREFIX prepend PREFIX to installed program names 1568 --program-suffix=SUFFIX append SUFFIX to installed program names 1569 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1570 1571System types: 1572 --build=BUILD configure for building on BUILD [guessed] 1573 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1574_ACEOF 1575fi 1576 1577if test -n "$ac_init_help"; then 1578 case $ac_init_help in 1579 short | recursive ) echo "Configuration of libpciaccess 0.10.9:";; 1580 esac 1581 cat <<\_ACEOF 1582 1583Optional Features: 1584 --disable-option-checking ignore unrecognized --enable/--with options 1585 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1586 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1587 --enable-maintainer-mode enable make rules and dependencies not useful 1588 (and sometimes confusing) to the casual installer 1589 --disable-dependency-tracking speeds up one-time build 1590 --enable-dependency-tracking do not reject slow dependency extractors 1591 --enable-shared[=PKGS] build shared libraries [default=yes] 1592 --enable-static[=PKGS] build static libraries [default=yes] 1593 --enable-fast-install[=PKGS] 1594 optimize for fast installation [default=yes] 1595 --disable-libtool-lock avoid locking (might break parallel builds) 1596 --enable-silent-rules less verbose build output (undo: `make V=1') 1597 --disable-silent-rules verbose build output (undo: `make V=0') 1598 --enable-linux-rom-fallback 1599 Enable support for falling back to /dev/mem for roms 1600 (default: disabled) 1601 --disable-largefile omit support for large files 1602 1603Optional Packages: 1604 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1605 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1606 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1607 --with-pic try to use only PIC/non-PIC objects [default=use 1608 both] 1609 --with-tags[=TAGS] include additional configurations [automatic] 1610 --with-pciids-path=PCIIDS_PATH 1611 Path to pci.ids file 1612 --with-zlib Enable zlib support to read gzip compressed pci.ids 1613 --with-release-version=STRING 1614 Use release version string in package name 1615 1616Some influential environment variables: 1617 CC C compiler command 1618 CFLAGS C compiler flags 1619 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1620 nonstandard directory <lib dir> 1621 LIBS libraries to pass to the linker, e.g. -l<library> 1622 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1623 you have headers in a nonstandard directory <include dir> 1624 CPP C preprocessor 1625 CXX C++ compiler command 1626 CXXFLAGS C++ compiler flags 1627 CXXCPP C++ preprocessor 1628 F77 Fortran 77 compiler command 1629 FFLAGS Fortran 77 compiler flags 1630 1631Use these variables to override the choices made by `configure' or to help 1632it to find libraries and programs with nonstandard names/locations. 1633 1634Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=libpciaccess>. 1635_ACEOF 1636ac_status=$? 1637fi 1638 1639if test "$ac_init_help" = "recursive"; then 1640 # If there are subdirs, report their specific --help. 1641 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1642 test -d "$ac_dir" || 1643 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1644 continue 1645 ac_builddir=. 1646 1647case "$ac_dir" in 1648.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1649*) 1650 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1651 # A ".." for each directory in $ac_dir_suffix. 1652 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1653 case $ac_top_builddir_sub in 1654 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1655 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1656 esac ;; 1657esac 1658ac_abs_top_builddir=$ac_pwd 1659ac_abs_builddir=$ac_pwd$ac_dir_suffix 1660# for backward compatibility: 1661ac_top_builddir=$ac_top_build_prefix 1662 1663case $srcdir in 1664 .) # We are building in place. 1665 ac_srcdir=. 1666 ac_top_srcdir=$ac_top_builddir_sub 1667 ac_abs_top_srcdir=$ac_pwd ;; 1668 [\\/]* | ?:[\\/]* ) # Absolute name. 1669 ac_srcdir=$srcdir$ac_dir_suffix; 1670 ac_top_srcdir=$srcdir 1671 ac_abs_top_srcdir=$srcdir ;; 1672 *) # Relative name. 1673 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1674 ac_top_srcdir=$ac_top_build_prefix$srcdir 1675 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1676esac 1677ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1678 1679 cd "$ac_dir" || { ac_status=$?; continue; } 1680 # Check for guested configure. 1681 if test -f "$ac_srcdir/configure.gnu"; then 1682 echo && 1683 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1684 elif test -f "$ac_srcdir/configure"; then 1685 echo && 1686 $SHELL "$ac_srcdir/configure" --help=recursive 1687 else 1688 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1689 fi || ac_status=$? 1690 cd "$ac_pwd" || { ac_status=$?; break; } 1691 done 1692fi 1693 1694test -n "$ac_init_help" && exit $ac_status 1695if $ac_init_version; then 1696 cat <<\_ACEOF 1697libpciaccess configure 0.10.9 1698generated by GNU Autoconf 2.63 1699 1700Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 17012002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1702This configure script is free software; the Free Software Foundation 1703gives unlimited permission to copy, distribute and modify it. 1704_ACEOF 1705 exit 1706fi 1707cat >config.log <<_ACEOF 1708This file contains any messages produced by compilers while 1709running configure, to aid debugging if configure makes a mistake. 1710 1711It was created by libpciaccess $as_me 0.10.9, which was 1712generated by GNU Autoconf 2.63. Invocation command line was 1713 1714 $ $0 $@ 1715 1716_ACEOF 1717exec 5>>config.log 1718{ 1719cat <<_ASUNAME 1720## --------- ## 1721## Platform. ## 1722## --------- ## 1723 1724hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1725uname -m = `(uname -m) 2>/dev/null || echo unknown` 1726uname -r = `(uname -r) 2>/dev/null || echo unknown` 1727uname -s = `(uname -s) 2>/dev/null || echo unknown` 1728uname -v = `(uname -v) 2>/dev/null || echo unknown` 1729 1730/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1731/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1732 1733/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1734/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1735/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1736/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1737/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1738/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1739/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1740 1741_ASUNAME 1742 1743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1744for as_dir in $PATH 1745do 1746 IFS=$as_save_IFS 1747 test -z "$as_dir" && as_dir=. 1748 $as_echo "PATH: $as_dir" 1749done 1750IFS=$as_save_IFS 1751 1752} >&5 1753 1754cat >&5 <<_ACEOF 1755 1756 1757## ----------- ## 1758## Core tests. ## 1759## ----------- ## 1760 1761_ACEOF 1762 1763 1764# Keep a trace of the command line. 1765# Strip out --no-create and --no-recursion so they do not pile up. 1766# Strip out --silent because we don't want to record it for future runs. 1767# Also quote any args containing shell meta-characters. 1768# Make two passes to allow for proper duplicate-argument suppression. 1769ac_configure_args= 1770ac_configure_args0= 1771ac_configure_args1= 1772ac_must_keep_next=false 1773for ac_pass in 1 2 1774do 1775 for ac_arg 1776 do 1777 case $ac_arg in 1778 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1779 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1780 | -silent | --silent | --silen | --sile | --sil) 1781 continue ;; 1782 *\'*) 1783 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1784 esac 1785 case $ac_pass in 1786 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1787 2) 1788 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1789 if test $ac_must_keep_next = true; then 1790 ac_must_keep_next=false # Got value, back to normal. 1791 else 1792 case $ac_arg in 1793 *=* | --config-cache | -C | -disable-* | --disable-* \ 1794 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1795 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1796 | -with-* | --with-* | -without-* | --without-* | --x) 1797 case "$ac_configure_args0 " in 1798 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1799 esac 1800 ;; 1801 -* ) ac_must_keep_next=true ;; 1802 esac 1803 fi 1804 ac_configure_args="$ac_configure_args '$ac_arg'" 1805 ;; 1806 esac 1807 done 1808done 1809$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1810$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1811 1812# When interrupted or exit'd, cleanup temporary files, and complete 1813# config.log. We remove comments because anyway the quotes in there 1814# would cause problems or look ugly. 1815# WARNING: Use '\'' to represent an apostrophe within the trap. 1816# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1817trap 'exit_status=$? 1818 # Save into config.log some information that might help in debugging. 1819 { 1820 echo 1821 1822 cat <<\_ASBOX 1823## ---------------- ## 1824## Cache variables. ## 1825## ---------------- ## 1826_ASBOX 1827 echo 1828 # The following way of writing the cache mishandles newlines in values, 1829( 1830 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1831 eval ac_val=\$$ac_var 1832 case $ac_val in #( 1833 *${as_nl}*) 1834 case $ac_var in #( 1835 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 1836$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1837 esac 1838 case $ac_var in #( 1839 _ | IFS | as_nl) ;; #( 1840 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1841 *) $as_unset $ac_var ;; 1842 esac ;; 1843 esac 1844 done 1845 (set) 2>&1 | 1846 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1847 *${as_nl}ac_space=\ *) 1848 sed -n \ 1849 "s/'\''/'\''\\\\'\'''\''/g; 1850 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1851 ;; #( 1852 *) 1853 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1854 ;; 1855 esac | 1856 sort 1857) 1858 echo 1859 1860 cat <<\_ASBOX 1861## ----------------- ## 1862## Output variables. ## 1863## ----------------- ## 1864_ASBOX 1865 echo 1866 for ac_var in $ac_subst_vars 1867 do 1868 eval ac_val=\$$ac_var 1869 case $ac_val in 1870 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1871 esac 1872 $as_echo "$ac_var='\''$ac_val'\''" 1873 done | sort 1874 echo 1875 1876 if test -n "$ac_subst_files"; then 1877 cat <<\_ASBOX 1878## ------------------- ## 1879## File substitutions. ## 1880## ------------------- ## 1881_ASBOX 1882 echo 1883 for ac_var in $ac_subst_files 1884 do 1885 eval ac_val=\$$ac_var 1886 case $ac_val in 1887 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1888 esac 1889 $as_echo "$ac_var='\''$ac_val'\''" 1890 done | sort 1891 echo 1892 fi 1893 1894 if test -s confdefs.h; then 1895 cat <<\_ASBOX 1896## ----------- ## 1897## confdefs.h. ## 1898## ----------- ## 1899_ASBOX 1900 echo 1901 cat confdefs.h 1902 echo 1903 fi 1904 test "$ac_signal" != 0 && 1905 $as_echo "$as_me: caught signal $ac_signal" 1906 $as_echo "$as_me: exit $exit_status" 1907 } >&5 1908 rm -f core *.core core.conftest.* && 1909 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1910 exit $exit_status 1911' 0 1912for ac_signal in 1 2 13 15; do 1913 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1914done 1915ac_signal=0 1916 1917# confdefs.h avoids OS command line length limits that DEFS can exceed. 1918rm -f -r conftest* confdefs.h 1919 1920# Predefined preprocessor variables. 1921 1922cat >>confdefs.h <<_ACEOF 1923#define PACKAGE_NAME "$PACKAGE_NAME" 1924_ACEOF 1925 1926 1927cat >>confdefs.h <<_ACEOF 1928#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1929_ACEOF 1930 1931 1932cat >>confdefs.h <<_ACEOF 1933#define PACKAGE_VERSION "$PACKAGE_VERSION" 1934_ACEOF 1935 1936 1937cat >>confdefs.h <<_ACEOF 1938#define PACKAGE_STRING "$PACKAGE_STRING" 1939_ACEOF 1940 1941 1942cat >>confdefs.h <<_ACEOF 1943#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1944_ACEOF 1945 1946 1947# Let the site file select an alternate cache file if it wants to. 1948# Prefer an explicitly selected file to automatically selected ones. 1949ac_site_file1=NONE 1950ac_site_file2=NONE 1951if test -n "$CONFIG_SITE"; then 1952 ac_site_file1=$CONFIG_SITE 1953elif test "x$prefix" != xNONE; then 1954 ac_site_file1=$prefix/share/config.site 1955 ac_site_file2=$prefix/etc/config.site 1956else 1957 ac_site_file1=$ac_default_prefix/share/config.site 1958 ac_site_file2=$ac_default_prefix/etc/config.site 1959fi 1960for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1961do 1962 test "x$ac_site_file" = xNONE && continue 1963 if test -r "$ac_site_file"; then 1964 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1965$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1966 sed 's/^/| /' "$ac_site_file" >&5 1967 . "$ac_site_file" 1968 fi 1969done 1970 1971if test -r "$cache_file"; then 1972 # Some versions of bash will fail to source /dev/null (special 1973 # files actually), so we avoid doing that. 1974 if test -f "$cache_file"; then 1975 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 1976$as_echo "$as_me: loading cache $cache_file" >&6;} 1977 case $cache_file in 1978 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1979 *) . "./$cache_file";; 1980 esac 1981 fi 1982else 1983 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 1984$as_echo "$as_me: creating cache $cache_file" >&6;} 1985 >$cache_file 1986fi 1987 1988# Check that the precious variables saved in the cache have kept the same 1989# value. 1990ac_cache_corrupted=false 1991for ac_var in $ac_precious_vars; do 1992 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1993 eval ac_new_set=\$ac_env_${ac_var}_set 1994 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1995 eval ac_new_val=\$ac_env_${ac_var}_value 1996 case $ac_old_set,$ac_new_set in 1997 set,) 1998 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1999$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2000 ac_cache_corrupted=: ;; 2001 ,set) 2002 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 2003$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2004 ac_cache_corrupted=: ;; 2005 ,);; 2006 *) 2007 if test "x$ac_old_val" != "x$ac_new_val"; then 2008 # differences in whitespace do not lead to failure. 2009 ac_old_val_w=`echo x $ac_old_val` 2010 ac_new_val_w=`echo x $ac_new_val` 2011 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2012 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 2013$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2014 ac_cache_corrupted=: 2015 else 2016 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2017$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2018 eval $ac_var=\$ac_old_val 2019 fi 2020 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 2021$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2022 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 2023$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2024 fi;; 2025 esac 2026 # Pass precious variables to config.status. 2027 if test "$ac_new_set" = set; then 2028 case $ac_new_val in 2029 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2030 *) ac_arg=$ac_var=$ac_new_val ;; 2031 esac 2032 case " $ac_configure_args " in 2033 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2034 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 2035 esac 2036 fi 2037done 2038if $ac_cache_corrupted; then 2039 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2040$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2041 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2042$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2043 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 2044$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 2045 { (exit 1); exit 1; }; } 2046fi 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072ac_ext=c 2073ac_cpp='$CPP $CPPFLAGS' 2074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2076ac_compiler_gnu=$ac_cv_c_compiler_gnu 2077 2078 2079am__api_version='1.11' 2080 2081ac_aux_dir= 2082for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2083 if test -f "$ac_dir/install-sh"; then 2084 ac_aux_dir=$ac_dir 2085 ac_install_sh="$ac_aux_dir/install-sh -c" 2086 break 2087 elif test -f "$ac_dir/install.sh"; then 2088 ac_aux_dir=$ac_dir 2089 ac_install_sh="$ac_aux_dir/install.sh -c" 2090 break 2091 elif test -f "$ac_dir/shtool"; then 2092 ac_aux_dir=$ac_dir 2093 ac_install_sh="$ac_aux_dir/shtool install -c" 2094 break 2095 fi 2096done 2097if test -z "$ac_aux_dir"; then 2098 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 2099$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 2100 { (exit 1); exit 1; }; } 2101fi 2102 2103# These three variables are undocumented and unsupported, 2104# and are intended to be withdrawn in a future Autoconf release. 2105# They can cause serious problems if a builder's source tree is in a directory 2106# whose full name contains unusual characters. 2107ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2108ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2109ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2110 2111 2112# Find a good install program. We prefer a C program (faster), 2113# so one script is as good as another. But avoid the broken or 2114# incompatible versions: 2115# SysV /etc/install, /usr/sbin/install 2116# SunOS /usr/etc/install 2117# IRIX /sbin/install 2118# AIX /bin/install 2119# AmigaOS /C/install, which installs bootblocks on floppy discs 2120# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2121# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2122# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2123# OS/2's system install, which has a completely different semantic 2124# ./install, which can be erroneously created by make from ./install.sh. 2125# Reject install programs that cannot install multiple files. 2126{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2127$as_echo_n "checking for a BSD-compatible install... " >&6; } 2128if test -z "$INSTALL"; then 2129if test "${ac_cv_path_install+set}" = set; then 2130 $as_echo_n "(cached) " >&6 2131else 2132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2133for as_dir in $PATH 2134do 2135 IFS=$as_save_IFS 2136 test -z "$as_dir" && as_dir=. 2137 # Account for people who put trailing slashes in PATH elements. 2138case $as_dir/ in 2139 ./ | .// | /cC/* | \ 2140 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2141 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2142 /usr/ucb/* ) ;; 2143 *) 2144 # OSF1 and SCO ODT 3.0 have their own names for install. 2145 # Don't use installbsd from OSF since it installs stuff as root 2146 # by default. 2147 for ac_prog in ginstall scoinst install; do 2148 for ac_exec_ext in '' $ac_executable_extensions; do 2149 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2150 if test $ac_prog = install && 2151 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2152 # AIX install. It has an incompatible calling convention. 2153 : 2154 elif test $ac_prog = install && 2155 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2156 # program-specific install script used by HP pwplus--don't use. 2157 : 2158 else 2159 rm -rf conftest.one conftest.two conftest.dir 2160 echo one > conftest.one 2161 echo two > conftest.two 2162 mkdir conftest.dir 2163 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2164 test -s conftest.one && test -s conftest.two && 2165 test -s conftest.dir/conftest.one && 2166 test -s conftest.dir/conftest.two 2167 then 2168 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2169 break 3 2170 fi 2171 fi 2172 fi 2173 done 2174 done 2175 ;; 2176esac 2177 2178done 2179IFS=$as_save_IFS 2180 2181rm -rf conftest.one conftest.two conftest.dir 2182 2183fi 2184 if test "${ac_cv_path_install+set}" = set; then 2185 INSTALL=$ac_cv_path_install 2186 else 2187 # As a last resort, use the slow shell script. Don't cache a 2188 # value for INSTALL within a source directory, because that will 2189 # break other packages using the cache if that directory is 2190 # removed, or if the value is a relative name. 2191 INSTALL=$ac_install_sh 2192 fi 2193fi 2194{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 2195$as_echo "$INSTALL" >&6; } 2196 2197# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2198# It thinks the first close brace ends the variable substitution. 2199test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2200 2201test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2202 2203test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2204 2205{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2206$as_echo_n "checking whether build environment is sane... " >&6; } 2207# Just in case 2208sleep 1 2209echo timestamp > conftest.file 2210# Reject unsafe characters in $srcdir or the absolute working directory 2211# name. Accept space and tab only in the latter. 2212am_lf=' 2213' 2214case `pwd` in 2215 *[\\\"\#\$\&\'\`$am_lf]*) 2216 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5 2217$as_echo "$as_me: error: unsafe absolute working directory name" >&2;} 2218 { (exit 1); exit 1; }; };; 2219esac 2220case $srcdir in 2221 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2222 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5 2223$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;} 2224 { (exit 1); exit 1; }; };; 2225esac 2226 2227# Do `set' in a subshell so we don't clobber the current shell's 2228# arguments. Must try -L first in case configure is actually a 2229# symlink; some systems play weird games with the mod time of symlinks 2230# (eg FreeBSD returns the mod time of the symlink's containing 2231# directory). 2232if ( 2233 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2234 if test "$*" = "X"; then 2235 # -L didn't work. 2236 set X `ls -t "$srcdir/configure" conftest.file` 2237 fi 2238 rm -f conftest.file 2239 if test "$*" != "X $srcdir/configure conftest.file" \ 2240 && test "$*" != "X conftest.file $srcdir/configure"; then 2241 2242 # If neither matched, then we have a broken ls. This can happen 2243 # if, for instance, CONFIG_SHELL is bash and it inherits a 2244 # broken ls alias from the environment. This has actually 2245 # happened. Such a system could not be considered "sane". 2246 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2247alias in your environment" >&5 2248$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2249alias in your environment" >&2;} 2250 { (exit 1); exit 1; }; } 2251 fi 2252 2253 test "$2" = conftest.file 2254 ) 2255then 2256 # Ok. 2257 : 2258else 2259 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2260Check your system clock" >&5 2261$as_echo "$as_me: error: newly created file is older than distributed files! 2262Check your system clock" >&2;} 2263 { (exit 1); exit 1; }; } 2264fi 2265{ $as_echo "$as_me:$LINENO: result: yes" >&5 2266$as_echo "yes" >&6; } 2267test "$program_prefix" != NONE && 2268 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2269# Use a double $ so make ignores it. 2270test "$program_suffix" != NONE && 2271 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2272# Double any \ or $. 2273# By default was `s,x,x', remove it if useless. 2274ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2275program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2276 2277# expand $ac_aux_dir to an absolute path 2278am_aux_dir=`cd $ac_aux_dir && pwd` 2279 2280if test x"${MISSING+set}" != xset; then 2281 case $am_aux_dir in 2282 *\ * | *\ *) 2283 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2284 *) 2285 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2286 esac 2287fi 2288# Use eval to expand $SHELL 2289if eval "$MISSING --run true"; then 2290 am_missing_run="$MISSING --run " 2291else 2292 am_missing_run= 2293 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2294$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2295fi 2296 2297if test x"${install_sh}" != xset; then 2298 case $am_aux_dir in 2299 *\ * | *\ *) 2300 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2301 *) 2302 install_sh="\${SHELL} $am_aux_dir/install-sh" 2303 esac 2304fi 2305 2306# Installed binaries are usually stripped using `strip' when the user 2307# run `make install-strip'. However `strip' might not be the right 2308# tool to use in cross-compilation environments, therefore Automake 2309# will honor the `STRIP' environment variable to overrule this program. 2310if test "$cross_compiling" != no; then 2311 if test -n "$ac_tool_prefix"; then 2312 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2313set dummy ${ac_tool_prefix}strip; ac_word=$2 2314{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2315$as_echo_n "checking for $ac_word... " >&6; } 2316if test "${ac_cv_prog_STRIP+set}" = set; then 2317 $as_echo_n "(cached) " >&6 2318else 2319 if test -n "$STRIP"; then 2320 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2321else 2322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2323for as_dir in $PATH 2324do 2325 IFS=$as_save_IFS 2326 test -z "$as_dir" && as_dir=. 2327 for ac_exec_ext in '' $ac_executable_extensions; do 2328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2329 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2330 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2331 break 2 2332 fi 2333done 2334done 2335IFS=$as_save_IFS 2336 2337fi 2338fi 2339STRIP=$ac_cv_prog_STRIP 2340if test -n "$STRIP"; then 2341 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 2342$as_echo "$STRIP" >&6; } 2343else 2344 { $as_echo "$as_me:$LINENO: result: no" >&5 2345$as_echo "no" >&6; } 2346fi 2347 2348 2349fi 2350if test -z "$ac_cv_prog_STRIP"; then 2351 ac_ct_STRIP=$STRIP 2352 # Extract the first word of "strip", so it can be a program name with args. 2353set dummy strip; ac_word=$2 2354{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2355$as_echo_n "checking for $ac_word... " >&6; } 2356if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2357 $as_echo_n "(cached) " >&6 2358else 2359 if test -n "$ac_ct_STRIP"; then 2360 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2361else 2362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2363for as_dir in $PATH 2364do 2365 IFS=$as_save_IFS 2366 test -z "$as_dir" && as_dir=. 2367 for ac_exec_ext in '' $ac_executable_extensions; do 2368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2369 ac_cv_prog_ac_ct_STRIP="strip" 2370 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2371 break 2 2372 fi 2373done 2374done 2375IFS=$as_save_IFS 2376 2377fi 2378fi 2379ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2380if test -n "$ac_ct_STRIP"; then 2381 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2382$as_echo "$ac_ct_STRIP" >&6; } 2383else 2384 { $as_echo "$as_me:$LINENO: result: no" >&5 2385$as_echo "no" >&6; } 2386fi 2387 2388 if test "x$ac_ct_STRIP" = x; then 2389 STRIP=":" 2390 else 2391 case $cross_compiling:$ac_tool_warned in 2392yes:) 2393{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2394$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2395ac_tool_warned=yes ;; 2396esac 2397 STRIP=$ac_ct_STRIP 2398 fi 2399else 2400 STRIP="$ac_cv_prog_STRIP" 2401fi 2402 2403fi 2404INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2405 2406{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2407$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2408if test -z "$MKDIR_P"; then 2409 if test "${ac_cv_path_mkdir+set}" = set; then 2410 $as_echo_n "(cached) " >&6 2411else 2412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2413for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2414do 2415 IFS=$as_save_IFS 2416 test -z "$as_dir" && as_dir=. 2417 for ac_prog in mkdir gmkdir; do 2418 for ac_exec_ext in '' $ac_executable_extensions; do 2419 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2420 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2421 'mkdir (GNU coreutils) '* | \ 2422 'mkdir (coreutils) '* | \ 2423 'mkdir (fileutils) '4.1*) 2424 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2425 break 3;; 2426 esac 2427 done 2428 done 2429done 2430IFS=$as_save_IFS 2431 2432fi 2433 2434 if test "${ac_cv_path_mkdir+set}" = set; then 2435 MKDIR_P="$ac_cv_path_mkdir -p" 2436 else 2437 # As a last resort, use the slow shell script. Don't cache a 2438 # value for MKDIR_P within a source directory, because that will 2439 # break other packages using the cache if that directory is 2440 # removed, or if the value is a relative name. 2441 test -d ./--version && rmdir ./--version 2442 MKDIR_P="$ac_install_sh -d" 2443 fi 2444fi 2445{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2446$as_echo "$MKDIR_P" >&6; } 2447 2448mkdir_p="$MKDIR_P" 2449case $mkdir_p in 2450 [\\/$]* | ?:[\\/]*) ;; 2451 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2452esac 2453 2454for ac_prog in gawk mawk nawk awk 2455do 2456 # Extract the first word of "$ac_prog", so it can be a program name with args. 2457set dummy $ac_prog; ac_word=$2 2458{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2459$as_echo_n "checking for $ac_word... " >&6; } 2460if test "${ac_cv_prog_AWK+set}" = set; then 2461 $as_echo_n "(cached) " >&6 2462else 2463 if test -n "$AWK"; then 2464 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2465else 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 ac_cv_prog_AWK="$ac_prog" 2474 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2475 break 2 2476 fi 2477done 2478done 2479IFS=$as_save_IFS 2480 2481fi 2482fi 2483AWK=$ac_cv_prog_AWK 2484if test -n "$AWK"; then 2485 { $as_echo "$as_me:$LINENO: result: $AWK" >&5 2486$as_echo "$AWK" >&6; } 2487else 2488 { $as_echo "$as_me:$LINENO: result: no" >&5 2489$as_echo "no" >&6; } 2490fi 2491 2492 2493 test -n "$AWK" && break 2494done 2495 2496{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2497$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2498set x ${MAKE-make} 2499ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2500if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2501 $as_echo_n "(cached) " >&6 2502else 2503 cat >conftest.make <<\_ACEOF 2504SHELL = /bin/sh 2505all: 2506 @echo '@@@%%%=$(MAKE)=@@@%%%' 2507_ACEOF 2508# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2509case `${MAKE-make} -f conftest.make 2>/dev/null` in 2510 *@@@%%%=?*=@@@%%%*) 2511 eval ac_cv_prog_make_${ac_make}_set=yes;; 2512 *) 2513 eval ac_cv_prog_make_${ac_make}_set=no;; 2514esac 2515rm -f conftest.make 2516fi 2517if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2518 { $as_echo "$as_me:$LINENO: result: yes" >&5 2519$as_echo "yes" >&6; } 2520 SET_MAKE= 2521else 2522 { $as_echo "$as_me:$LINENO: result: no" >&5 2523$as_echo "no" >&6; } 2524 SET_MAKE="MAKE=${MAKE-make}" 2525fi 2526 2527rm -rf .tst 2>/dev/null 2528mkdir .tst 2>/dev/null 2529if test -d .tst; then 2530 am__leading_dot=. 2531else 2532 am__leading_dot=_ 2533fi 2534rmdir .tst 2>/dev/null 2535 2536if test "`cd $srcdir && pwd`" != "`pwd`"; then 2537 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2538 # is not polluted with repeated "-I." 2539 am__isrc=' -I$(srcdir)' 2540 # test to see if srcdir already configured 2541 if test -f $srcdir/config.status; then 2542 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2543$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2544 { (exit 1); exit 1; }; } 2545 fi 2546fi 2547 2548# test whether we have cygpath 2549if test -z "$CYGPATH_W"; then 2550 if (cygpath --version) >/dev/null 2>/dev/null; then 2551 CYGPATH_W='cygpath -w' 2552 else 2553 CYGPATH_W=echo 2554 fi 2555fi 2556 2557 2558# Define the identity of the package. 2559 PACKAGE='libpciaccess' 2560 VERSION='0.10.9' 2561 2562 2563cat >>confdefs.h <<_ACEOF 2564#define PACKAGE "$PACKAGE" 2565_ACEOF 2566 2567 2568cat >>confdefs.h <<_ACEOF 2569#define VERSION "$VERSION" 2570_ACEOF 2571 2572# Some tools Automake needs. 2573 2574ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2575 2576 2577AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2578 2579 2580AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2581 2582 2583AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2584 2585 2586MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2587 2588# We need awk for the "check" target. The system "awk" is bad on 2589# some platforms. 2590# Always define AMTAR for backward compatibility. 2591 2592AMTAR=${AMTAR-"${am_missing_run}tar"} 2593 2594am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2595 2596 2597 2598 2599 2600 2601{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 2602$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2603 # Check whether --enable-maintainer-mode was given. 2604if test "${enable_maintainer_mode+set}" = set; then 2605 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2606else 2607 USE_MAINTAINER_MODE=no 2608fi 2609 2610 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 2611$as_echo "$USE_MAINTAINER_MODE" >&6; } 2612 if test $USE_MAINTAINER_MODE = yes; then 2613 MAINTAINER_MODE_TRUE= 2614 MAINTAINER_MODE_FALSE='#' 2615else 2616 MAINTAINER_MODE_TRUE='#' 2617 MAINTAINER_MODE_FALSE= 2618fi 2619 2620 MAINT=$MAINTAINER_MODE_TRUE 2621 2622 2623 2624# Require xorg-macros: XORG_CWARNFLAGS, XORG_CHANGELOG 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636ac_config_headers="$ac_config_headers config.h" 2637 2638 2639# Check for progs 2640ac_ext=c 2641ac_cpp='$CPP $CPPFLAGS' 2642ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2643ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2644ac_compiler_gnu=$ac_cv_c_compiler_gnu 2645if test -n "$ac_tool_prefix"; then 2646 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2647set dummy ${ac_tool_prefix}gcc; ac_word=$2 2648{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2649$as_echo_n "checking for $ac_word... " >&6; } 2650if test "${ac_cv_prog_CC+set}" = set; then 2651 $as_echo_n "(cached) " >&6 2652else 2653 if test -n "$CC"; then 2654 ac_cv_prog_CC="$CC" # Let the user override the test. 2655else 2656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2657for as_dir in $PATH 2658do 2659 IFS=$as_save_IFS 2660 test -z "$as_dir" && as_dir=. 2661 for ac_exec_ext in '' $ac_executable_extensions; do 2662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2663 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2664 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2665 break 2 2666 fi 2667done 2668done 2669IFS=$as_save_IFS 2670 2671fi 2672fi 2673CC=$ac_cv_prog_CC 2674if test -n "$CC"; then 2675 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2676$as_echo "$CC" >&6; } 2677else 2678 { $as_echo "$as_me:$LINENO: result: no" >&5 2679$as_echo "no" >&6; } 2680fi 2681 2682 2683fi 2684if test -z "$ac_cv_prog_CC"; then 2685 ac_ct_CC=$CC 2686 # Extract the first word of "gcc", so it can be a program name with args. 2687set dummy gcc; ac_word=$2 2688{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2689$as_echo_n "checking for $ac_word... " >&6; } 2690if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2691 $as_echo_n "(cached) " >&6 2692else 2693 if test -n "$ac_ct_CC"; then 2694 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2695else 2696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2697for as_dir in $PATH 2698do 2699 IFS=$as_save_IFS 2700 test -z "$as_dir" && as_dir=. 2701 for ac_exec_ext in '' $ac_executable_extensions; do 2702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2703 ac_cv_prog_ac_ct_CC="gcc" 2704 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2705 break 2 2706 fi 2707done 2708done 2709IFS=$as_save_IFS 2710 2711fi 2712fi 2713ac_ct_CC=$ac_cv_prog_ac_ct_CC 2714if test -n "$ac_ct_CC"; then 2715 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2716$as_echo "$ac_ct_CC" >&6; } 2717else 2718 { $as_echo "$as_me:$LINENO: result: no" >&5 2719$as_echo "no" >&6; } 2720fi 2721 2722 if test "x$ac_ct_CC" = x; then 2723 CC="" 2724 else 2725 case $cross_compiling:$ac_tool_warned in 2726yes:) 2727{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2728$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2729ac_tool_warned=yes ;; 2730esac 2731 CC=$ac_ct_CC 2732 fi 2733else 2734 CC="$ac_cv_prog_CC" 2735fi 2736 2737if test -z "$CC"; then 2738 if test -n "$ac_tool_prefix"; then 2739 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2740set dummy ${ac_tool_prefix}cc; ac_word=$2 2741{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2742$as_echo_n "checking for $ac_word... " >&6; } 2743if test "${ac_cv_prog_CC+set}" = set; then 2744 $as_echo_n "(cached) " >&6 2745else 2746 if test -n "$CC"; then 2747 ac_cv_prog_CC="$CC" # Let the user override the test. 2748else 2749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2750for as_dir in $PATH 2751do 2752 IFS=$as_save_IFS 2753 test -z "$as_dir" && as_dir=. 2754 for ac_exec_ext in '' $ac_executable_extensions; do 2755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2756 ac_cv_prog_CC="${ac_tool_prefix}cc" 2757 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2758 break 2 2759 fi 2760done 2761done 2762IFS=$as_save_IFS 2763 2764fi 2765fi 2766CC=$ac_cv_prog_CC 2767if test -n "$CC"; then 2768 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2769$as_echo "$CC" >&6; } 2770else 2771 { $as_echo "$as_me:$LINENO: result: no" >&5 2772$as_echo "no" >&6; } 2773fi 2774 2775 2776 fi 2777fi 2778if test -z "$CC"; then 2779 # Extract the first word of "cc", so it can be a program name with args. 2780set dummy cc; ac_word=$2 2781{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2782$as_echo_n "checking for $ac_word... " >&6; } 2783if test "${ac_cv_prog_CC+set}" = set; then 2784 $as_echo_n "(cached) " >&6 2785else 2786 if test -n "$CC"; then 2787 ac_cv_prog_CC="$CC" # Let the user override the test. 2788else 2789 ac_prog_rejected=no 2790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2791for as_dir in $PATH 2792do 2793 IFS=$as_save_IFS 2794 test -z "$as_dir" && as_dir=. 2795 for ac_exec_ext in '' $ac_executable_extensions; do 2796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2797 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2798 ac_prog_rejected=yes 2799 continue 2800 fi 2801 ac_cv_prog_CC="cc" 2802 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2803 break 2 2804 fi 2805done 2806done 2807IFS=$as_save_IFS 2808 2809if test $ac_prog_rejected = yes; then 2810 # We found a bogon in the path, so make sure we never use it. 2811 set dummy $ac_cv_prog_CC 2812 shift 2813 if test $# != 0; then 2814 # We chose a different compiler from the bogus one. 2815 # However, it has the same basename, so the bogon will be chosen 2816 # first if we set CC to just the basename; use the full file name. 2817 shift 2818 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2819 fi 2820fi 2821fi 2822fi 2823CC=$ac_cv_prog_CC 2824if test -n "$CC"; then 2825 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2826$as_echo "$CC" >&6; } 2827else 2828 { $as_echo "$as_me:$LINENO: result: no" >&5 2829$as_echo "no" >&6; } 2830fi 2831 2832 2833fi 2834if test -z "$CC"; then 2835 if test -n "$ac_tool_prefix"; then 2836 for ac_prog in cl.exe 2837 do 2838 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2839set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2840{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2841$as_echo_n "checking for $ac_word... " >&6; } 2842if test "${ac_cv_prog_CC+set}" = set; then 2843 $as_echo_n "(cached) " >&6 2844else 2845 if test -n "$CC"; then 2846 ac_cv_prog_CC="$CC" # Let the user override the test. 2847else 2848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2849for as_dir in $PATH 2850do 2851 IFS=$as_save_IFS 2852 test -z "$as_dir" && as_dir=. 2853 for ac_exec_ext in '' $ac_executable_extensions; do 2854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2855 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2856 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2857 break 2 2858 fi 2859done 2860done 2861IFS=$as_save_IFS 2862 2863fi 2864fi 2865CC=$ac_cv_prog_CC 2866if test -n "$CC"; then 2867 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2868$as_echo "$CC" >&6; } 2869else 2870 { $as_echo "$as_me:$LINENO: result: no" >&5 2871$as_echo "no" >&6; } 2872fi 2873 2874 2875 test -n "$CC" && break 2876 done 2877fi 2878if test -z "$CC"; then 2879 ac_ct_CC=$CC 2880 for ac_prog in cl.exe 2881do 2882 # Extract the first word of "$ac_prog", so it can be a program name with args. 2883set dummy $ac_prog; ac_word=$2 2884{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2885$as_echo_n "checking for $ac_word... " >&6; } 2886if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2887 $as_echo_n "(cached) " >&6 2888else 2889 if test -n "$ac_ct_CC"; then 2890 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2891else 2892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2893for as_dir in $PATH 2894do 2895 IFS=$as_save_IFS 2896 test -z "$as_dir" && as_dir=. 2897 for ac_exec_ext in '' $ac_executable_extensions; do 2898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2899 ac_cv_prog_ac_ct_CC="$ac_prog" 2900 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2901 break 2 2902 fi 2903done 2904done 2905IFS=$as_save_IFS 2906 2907fi 2908fi 2909ac_ct_CC=$ac_cv_prog_ac_ct_CC 2910if test -n "$ac_ct_CC"; then 2911 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2912$as_echo "$ac_ct_CC" >&6; } 2913else 2914 { $as_echo "$as_me:$LINENO: result: no" >&5 2915$as_echo "no" >&6; } 2916fi 2917 2918 2919 test -n "$ac_ct_CC" && break 2920done 2921 2922 if test "x$ac_ct_CC" = x; then 2923 CC="" 2924 else 2925 case $cross_compiling:$ac_tool_warned in 2926yes:) 2927{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2928$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2929ac_tool_warned=yes ;; 2930esac 2931 CC=$ac_ct_CC 2932 fi 2933fi 2934 2935fi 2936 2937 2938test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2939$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2940{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2941See \`config.log' for more details." >&5 2942$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 2943See \`config.log' for more details." >&2;} 2944 { (exit 1); exit 1; }; }; } 2945 2946# Provide some information about the compiler. 2947$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 2948set X $ac_compile 2949ac_compiler=$2 2950{ (ac_try="$ac_compiler --version >&5" 2951case "(($ac_try" in 2952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2953 *) ac_try_echo=$ac_try;; 2954esac 2955eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2956$as_echo "$ac_try_echo") >&5 2957 (eval "$ac_compiler --version >&5") 2>&5 2958 ac_status=$? 2959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2960 (exit $ac_status); } 2961{ (ac_try="$ac_compiler -v >&5" 2962case "(($ac_try" in 2963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2964 *) ac_try_echo=$ac_try;; 2965esac 2966eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2967$as_echo "$ac_try_echo") >&5 2968 (eval "$ac_compiler -v >&5") 2>&5 2969 ac_status=$? 2970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2971 (exit $ac_status); } 2972{ (ac_try="$ac_compiler -V >&5" 2973case "(($ac_try" in 2974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2975 *) ac_try_echo=$ac_try;; 2976esac 2977eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2978$as_echo "$ac_try_echo") >&5 2979 (eval "$ac_compiler -V >&5") 2>&5 2980 ac_status=$? 2981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2982 (exit $ac_status); } 2983 2984cat >conftest.$ac_ext <<_ACEOF 2985/* confdefs.h. */ 2986_ACEOF 2987cat confdefs.h >>conftest.$ac_ext 2988cat >>conftest.$ac_ext <<_ACEOF 2989/* end confdefs.h. */ 2990 2991int 2992main () 2993{ 2994 2995 ; 2996 return 0; 2997} 2998_ACEOF 2999ac_clean_files_save=$ac_clean_files 3000ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3001# Try to create an executable without -o first, disregard a.out. 3002# It will help us diagnose broken compilers, and finding out an intuition 3003# of exeext. 3004{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 3005$as_echo_n "checking for C compiler default output file name... " >&6; } 3006ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3007 3008# The possible output files: 3009ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3010 3011ac_rmfiles= 3012for ac_file in $ac_files 3013do 3014 case $ac_file in 3015 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3016 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3017 esac 3018done 3019rm -f $ac_rmfiles 3020 3021if { (ac_try="$ac_link_default" 3022case "(($ac_try" in 3023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3024 *) ac_try_echo=$ac_try;; 3025esac 3026eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3027$as_echo "$ac_try_echo") >&5 3028 (eval "$ac_link_default") 2>&5 3029 ac_status=$? 3030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3031 (exit $ac_status); }; then 3032 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3033# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3034# in a Makefile. We should not override ac_cv_exeext if it was cached, 3035# so that the user can short-circuit this test for compilers unknown to 3036# Autoconf. 3037for ac_file in $ac_files '' 3038do 3039 test -f "$ac_file" || continue 3040 case $ac_file in 3041 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3042 ;; 3043 [ab].out ) 3044 # We found the default executable, but exeext='' is most 3045 # certainly right. 3046 break;; 3047 *.* ) 3048 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3049 then :; else 3050 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3051 fi 3052 # We set ac_cv_exeext here because the later test for it is not 3053 # safe: cross compilers may not add the suffix if given an `-o' 3054 # argument, so we may need to know it at that point already. 3055 # Even if this section looks crufty: it has the advantage of 3056 # actually working. 3057 break;; 3058 * ) 3059 break;; 3060 esac 3061done 3062test "$ac_cv_exeext" = no && ac_cv_exeext= 3063 3064else 3065 ac_file='' 3066fi 3067 3068{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 3069$as_echo "$ac_file" >&6; } 3070if test -z "$ac_file"; then 3071 $as_echo "$as_me: failed program was:" >&5 3072sed 's/^/| /' conftest.$ac_ext >&5 3073 3074{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3075$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3076{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 3077See \`config.log' for more details." >&5 3078$as_echo "$as_me: error: C compiler cannot create executables 3079See \`config.log' for more details." >&2;} 3080 { (exit 77); exit 77; }; }; } 3081fi 3082 3083ac_exeext=$ac_cv_exeext 3084 3085# Check that the compiler produces executables we can run. If not, either 3086# the compiler is broken, or we cross compile. 3087{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3088$as_echo_n "checking whether the C compiler works... " >&6; } 3089# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3090# If not cross compiling, check that we can run a simple program. 3091if test "$cross_compiling" != yes; then 3092 if { ac_try='./$ac_file' 3093 { (case "(($ac_try" in 3094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3095 *) ac_try_echo=$ac_try;; 3096esac 3097eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3098$as_echo "$ac_try_echo") >&5 3099 (eval "$ac_try") 2>&5 3100 ac_status=$? 3101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3102 (exit $ac_status); }; }; then 3103 cross_compiling=no 3104 else 3105 if test "$cross_compiling" = maybe; then 3106 cross_compiling=yes 3107 else 3108 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3109$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3110{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 3111If you meant to cross compile, use \`--host'. 3112See \`config.log' for more details." >&5 3113$as_echo "$as_me: error: cannot run C compiled programs. 3114If you meant to cross compile, use \`--host'. 3115See \`config.log' for more details." >&2;} 3116 { (exit 1); exit 1; }; }; } 3117 fi 3118 fi 3119fi 3120{ $as_echo "$as_me:$LINENO: result: yes" >&5 3121$as_echo "yes" >&6; } 3122 3123rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3124ac_clean_files=$ac_clean_files_save 3125# Check that the compiler produces executables we can run. If not, either 3126# the compiler is broken, or we cross compile. 3127{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3128$as_echo_n "checking whether we are cross compiling... " >&6; } 3129{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 3130$as_echo "$cross_compiling" >&6; } 3131 3132{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 3133$as_echo_n "checking for suffix of executables... " >&6; } 3134if { (ac_try="$ac_link" 3135case "(($ac_try" in 3136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3137 *) ac_try_echo=$ac_try;; 3138esac 3139eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3140$as_echo "$ac_try_echo") >&5 3141 (eval "$ac_link") 2>&5 3142 ac_status=$? 3143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3144 (exit $ac_status); }; then 3145 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3146# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3147# work properly (i.e., refer to `conftest.exe'), while it won't with 3148# `rm'. 3149for ac_file in conftest.exe conftest conftest.*; do 3150 test -f "$ac_file" || continue 3151 case $ac_file in 3152 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3153 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3154 break;; 3155 * ) break;; 3156 esac 3157done 3158else 3159 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3160$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3161{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3162See \`config.log' for more details." >&5 3163$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3164See \`config.log' for more details." >&2;} 3165 { (exit 1); exit 1; }; }; } 3166fi 3167 3168rm -f conftest$ac_cv_exeext 3169{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3170$as_echo "$ac_cv_exeext" >&6; } 3171 3172rm -f conftest.$ac_ext 3173EXEEXT=$ac_cv_exeext 3174ac_exeext=$EXEEXT 3175{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 3176$as_echo_n "checking for suffix of object files... " >&6; } 3177if test "${ac_cv_objext+set}" = set; then 3178 $as_echo_n "(cached) " >&6 3179else 3180 cat >conftest.$ac_ext <<_ACEOF 3181/* confdefs.h. */ 3182_ACEOF 3183cat confdefs.h >>conftest.$ac_ext 3184cat >>conftest.$ac_ext <<_ACEOF 3185/* end confdefs.h. */ 3186 3187int 3188main () 3189{ 3190 3191 ; 3192 return 0; 3193} 3194_ACEOF 3195rm -f conftest.o conftest.obj 3196if { (ac_try="$ac_compile" 3197case "(($ac_try" in 3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3199 *) ac_try_echo=$ac_try;; 3200esac 3201eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3202$as_echo "$ac_try_echo") >&5 3203 (eval "$ac_compile") 2>&5 3204 ac_status=$? 3205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3206 (exit $ac_status); }; then 3207 for ac_file in conftest.o conftest.obj conftest.*; do 3208 test -f "$ac_file" || continue; 3209 case $ac_file in 3210 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3211 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3212 break;; 3213 esac 3214done 3215else 3216 $as_echo "$as_me: failed program was:" >&5 3217sed 's/^/| /' conftest.$ac_ext >&5 3218 3219{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3220$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3221{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3222See \`config.log' for more details." >&5 3223$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 3224See \`config.log' for more details." >&2;} 3225 { (exit 1); exit 1; }; }; } 3226fi 3227 3228rm -f conftest.$ac_cv_objext conftest.$ac_ext 3229fi 3230{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3231$as_echo "$ac_cv_objext" >&6; } 3232OBJEXT=$ac_cv_objext 3233ac_objext=$OBJEXT 3234{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3235$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3236if test "${ac_cv_c_compiler_gnu+set}" = set; then 3237 $as_echo_n "(cached) " >&6 3238else 3239 cat >conftest.$ac_ext <<_ACEOF 3240/* confdefs.h. */ 3241_ACEOF 3242cat confdefs.h >>conftest.$ac_ext 3243cat >>conftest.$ac_ext <<_ACEOF 3244/* end confdefs.h. */ 3245 3246int 3247main () 3248{ 3249#ifndef __GNUC__ 3250 choke me 3251#endif 3252 3253 ; 3254 return 0; 3255} 3256_ACEOF 3257rm -f conftest.$ac_objext 3258if { (ac_try="$ac_compile" 3259case "(($ac_try" in 3260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3261 *) ac_try_echo=$ac_try;; 3262esac 3263eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3264$as_echo "$ac_try_echo") >&5 3265 (eval "$ac_compile") 2>conftest.er1 3266 ac_status=$? 3267 grep -v '^ *+' conftest.er1 >conftest.err 3268 rm -f conftest.er1 3269 cat conftest.err >&5 3270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3271 (exit $ac_status); } && { 3272 test -z "$ac_c_werror_flag" || 3273 test ! -s conftest.err 3274 } && test -s conftest.$ac_objext; then 3275 ac_compiler_gnu=yes 3276else 3277 $as_echo "$as_me: failed program was:" >&5 3278sed 's/^/| /' conftest.$ac_ext >&5 3279 3280 ac_compiler_gnu=no 3281fi 3282 3283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3284ac_cv_c_compiler_gnu=$ac_compiler_gnu 3285 3286fi 3287{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3288$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3289if test $ac_compiler_gnu = yes; then 3290 GCC=yes 3291else 3292 GCC= 3293fi 3294ac_test_CFLAGS=${CFLAGS+set} 3295ac_save_CFLAGS=$CFLAGS 3296{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3297$as_echo_n "checking whether $CC accepts -g... " >&6; } 3298if test "${ac_cv_prog_cc_g+set}" = set; then 3299 $as_echo_n "(cached) " >&6 3300else 3301 ac_save_c_werror_flag=$ac_c_werror_flag 3302 ac_c_werror_flag=yes 3303 ac_cv_prog_cc_g=no 3304 CFLAGS="-g" 3305 cat >conftest.$ac_ext <<_ACEOF 3306/* confdefs.h. */ 3307_ACEOF 3308cat confdefs.h >>conftest.$ac_ext 3309cat >>conftest.$ac_ext <<_ACEOF 3310/* end confdefs.h. */ 3311 3312int 3313main () 3314{ 3315 3316 ; 3317 return 0; 3318} 3319_ACEOF 3320rm -f conftest.$ac_objext 3321if { (ac_try="$ac_compile" 3322case "(($ac_try" in 3323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3324 *) ac_try_echo=$ac_try;; 3325esac 3326eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3327$as_echo "$ac_try_echo") >&5 3328 (eval "$ac_compile") 2>conftest.er1 3329 ac_status=$? 3330 grep -v '^ *+' conftest.er1 >conftest.err 3331 rm -f conftest.er1 3332 cat conftest.err >&5 3333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3334 (exit $ac_status); } && { 3335 test -z "$ac_c_werror_flag" || 3336 test ! -s conftest.err 3337 } && test -s conftest.$ac_objext; then 3338 ac_cv_prog_cc_g=yes 3339else 3340 $as_echo "$as_me: failed program was:" >&5 3341sed 's/^/| /' conftest.$ac_ext >&5 3342 3343 CFLAGS="" 3344 cat >conftest.$ac_ext <<_ACEOF 3345/* confdefs.h. */ 3346_ACEOF 3347cat confdefs.h >>conftest.$ac_ext 3348cat >>conftest.$ac_ext <<_ACEOF 3349/* end confdefs.h. */ 3350 3351int 3352main () 3353{ 3354 3355 ; 3356 return 0; 3357} 3358_ACEOF 3359rm -f conftest.$ac_objext 3360if { (ac_try="$ac_compile" 3361case "(($ac_try" in 3362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3363 *) ac_try_echo=$ac_try;; 3364esac 3365eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3366$as_echo "$ac_try_echo") >&5 3367 (eval "$ac_compile") 2>conftest.er1 3368 ac_status=$? 3369 grep -v '^ *+' conftest.er1 >conftest.err 3370 rm -f conftest.er1 3371 cat conftest.err >&5 3372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3373 (exit $ac_status); } && { 3374 test -z "$ac_c_werror_flag" || 3375 test ! -s conftest.err 3376 } && test -s conftest.$ac_objext; then 3377 : 3378else 3379 $as_echo "$as_me: failed program was:" >&5 3380sed 's/^/| /' conftest.$ac_ext >&5 3381 3382 ac_c_werror_flag=$ac_save_c_werror_flag 3383 CFLAGS="-g" 3384 cat >conftest.$ac_ext <<_ACEOF 3385/* confdefs.h. */ 3386_ACEOF 3387cat confdefs.h >>conftest.$ac_ext 3388cat >>conftest.$ac_ext <<_ACEOF 3389/* end confdefs.h. */ 3390 3391int 3392main () 3393{ 3394 3395 ; 3396 return 0; 3397} 3398_ACEOF 3399rm -f conftest.$ac_objext 3400if { (ac_try="$ac_compile" 3401case "(($ac_try" in 3402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3403 *) ac_try_echo=$ac_try;; 3404esac 3405eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3406$as_echo "$ac_try_echo") >&5 3407 (eval "$ac_compile") 2>conftest.er1 3408 ac_status=$? 3409 grep -v '^ *+' conftest.er1 >conftest.err 3410 rm -f conftest.er1 3411 cat conftest.err >&5 3412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3413 (exit $ac_status); } && { 3414 test -z "$ac_c_werror_flag" || 3415 test ! -s conftest.err 3416 } && test -s conftest.$ac_objext; then 3417 ac_cv_prog_cc_g=yes 3418else 3419 $as_echo "$as_me: failed program was:" >&5 3420sed 's/^/| /' conftest.$ac_ext >&5 3421 3422 3423fi 3424 3425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3426fi 3427 3428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3429fi 3430 3431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3432 ac_c_werror_flag=$ac_save_c_werror_flag 3433fi 3434{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3435$as_echo "$ac_cv_prog_cc_g" >&6; } 3436if test "$ac_test_CFLAGS" = set; then 3437 CFLAGS=$ac_save_CFLAGS 3438elif test $ac_cv_prog_cc_g = yes; then 3439 if test "$GCC" = yes; then 3440 CFLAGS="-g -O2" 3441 else 3442 CFLAGS="-g" 3443 fi 3444else 3445 if test "$GCC" = yes; then 3446 CFLAGS="-O2" 3447 else 3448 CFLAGS= 3449 fi 3450fi 3451{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3452$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3453if test "${ac_cv_prog_cc_c89+set}" = set; then 3454 $as_echo_n "(cached) " >&6 3455else 3456 ac_cv_prog_cc_c89=no 3457ac_save_CC=$CC 3458cat >conftest.$ac_ext <<_ACEOF 3459/* confdefs.h. */ 3460_ACEOF 3461cat confdefs.h >>conftest.$ac_ext 3462cat >>conftest.$ac_ext <<_ACEOF 3463/* end confdefs.h. */ 3464#include <stdarg.h> 3465#include <stdio.h> 3466#include <sys/types.h> 3467#include <sys/stat.h> 3468/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3469struct buf { int x; }; 3470FILE * (*rcsopen) (struct buf *, struct stat *, int); 3471static char *e (p, i) 3472 char **p; 3473 int i; 3474{ 3475 return p[i]; 3476} 3477static char *f (char * (*g) (char **, int), char **p, ...) 3478{ 3479 char *s; 3480 va_list v; 3481 va_start (v,p); 3482 s = g (p, va_arg (v,int)); 3483 va_end (v); 3484 return s; 3485} 3486 3487/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3488 function prototypes and stuff, but not '\xHH' hex character constants. 3489 These don't provoke an error unfortunately, instead are silently treated 3490 as 'x'. The following induces an error, until -std is added to get 3491 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3492 array size at least. It's necessary to write '\x00'==0 to get something 3493 that's true only with -std. */ 3494int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3495 3496/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3497 inside strings and character constants. */ 3498#define FOO(x) 'x' 3499int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3500 3501int test (int i, double x); 3502struct s1 {int (*f) (int a);}; 3503struct s2 {int (*f) (double a);}; 3504int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3505int argc; 3506char **argv; 3507int 3508main () 3509{ 3510return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3511 ; 3512 return 0; 3513} 3514_ACEOF 3515for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3516 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3517do 3518 CC="$ac_save_CC $ac_arg" 3519 rm -f conftest.$ac_objext 3520if { (ac_try="$ac_compile" 3521case "(($ac_try" in 3522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3523 *) ac_try_echo=$ac_try;; 3524esac 3525eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3526$as_echo "$ac_try_echo") >&5 3527 (eval "$ac_compile") 2>conftest.er1 3528 ac_status=$? 3529 grep -v '^ *+' conftest.er1 >conftest.err 3530 rm -f conftest.er1 3531 cat conftest.err >&5 3532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3533 (exit $ac_status); } && { 3534 test -z "$ac_c_werror_flag" || 3535 test ! -s conftest.err 3536 } && test -s conftest.$ac_objext; then 3537 ac_cv_prog_cc_c89=$ac_arg 3538else 3539 $as_echo "$as_me: failed program was:" >&5 3540sed 's/^/| /' conftest.$ac_ext >&5 3541 3542 3543fi 3544 3545rm -f core conftest.err conftest.$ac_objext 3546 test "x$ac_cv_prog_cc_c89" != "xno" && break 3547done 3548rm -f conftest.$ac_ext 3549CC=$ac_save_CC 3550 3551fi 3552# AC_CACHE_VAL 3553case "x$ac_cv_prog_cc_c89" in 3554 x) 3555 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3556$as_echo "none needed" >&6; } ;; 3557 xno) 3558 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3559$as_echo "unsupported" >&6; } ;; 3560 *) 3561 CC="$CC $ac_cv_prog_cc_c89" 3562 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3563$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3564esac 3565 3566 3567ac_ext=c 3568ac_cpp='$CPP $CPPFLAGS' 3569ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3570ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3571ac_compiler_gnu=$ac_cv_c_compiler_gnu 3572DEPDIR="${am__leading_dot}deps" 3573 3574ac_config_commands="$ac_config_commands depfiles" 3575 3576 3577am_make=${MAKE-make} 3578cat > confinc << 'END' 3579am__doit: 3580 @echo this is the am__doit target 3581.PHONY: am__doit 3582END 3583# If we don't find an include directive, just comment out the code. 3584{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3585$as_echo_n "checking for style of include used by $am_make... " >&6; } 3586am__include="#" 3587am__quote= 3588_am_result=none 3589# First try GNU make style include. 3590echo "include confinc" > confmf 3591# Ignore all kinds of additional output from `make'. 3592case `$am_make -s -f confmf 2> /dev/null` in #( 3593*the\ am__doit\ target*) 3594 am__include=include 3595 am__quote= 3596 _am_result=GNU 3597 ;; 3598esac 3599# Now try BSD make style include. 3600if test "$am__include" = "#"; then 3601 echo '.include "confinc"' > confmf 3602 case `$am_make -s -f confmf 2> /dev/null` in #( 3603 *the\ am__doit\ target*) 3604 am__include=.include 3605 am__quote="\"" 3606 _am_result=BSD 3607 ;; 3608 esac 3609fi 3610 3611 3612{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5 3613$as_echo "$_am_result" >&6; } 3614rm -f confinc confmf 3615 3616# Check whether --enable-dependency-tracking was given. 3617if test "${enable_dependency_tracking+set}" = set; then 3618 enableval=$enable_dependency_tracking; 3619fi 3620 3621if test "x$enable_dependency_tracking" != xno; then 3622 am_depcomp="$ac_aux_dir/depcomp" 3623 AMDEPBACKSLASH='\' 3624fi 3625 if test "x$enable_dependency_tracking" != xno; then 3626 AMDEP_TRUE= 3627 AMDEP_FALSE='#' 3628else 3629 AMDEP_TRUE='#' 3630 AMDEP_FALSE= 3631fi 3632 3633 3634 3635depcc="$CC" am_compiler_list= 3636 3637{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3638$as_echo_n "checking dependency style of $depcc... " >&6; } 3639if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3640 $as_echo_n "(cached) " >&6 3641else 3642 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3643 # We make a subdir and do the tests there. Otherwise we can end up 3644 # making bogus files that we don't know about and never remove. For 3645 # instance it was reported that on HP-UX the gcc test will end up 3646 # making a dummy file named `D' -- because `-MD' means `put the output 3647 # in D'. 3648 mkdir conftest.dir 3649 # Copy depcomp to subdir because otherwise we won't find it if we're 3650 # using a relative directory. 3651 cp "$am_depcomp" conftest.dir 3652 cd conftest.dir 3653 # We will build objects and dependencies in a subdirectory because 3654 # it helps to detect inapplicable dependency modes. For instance 3655 # both Tru64's cc and ICC support -MD to output dependencies as a 3656 # side effect of compilation, but ICC will put the dependencies in 3657 # the current directory while Tru64 will put them in the object 3658 # directory. 3659 mkdir sub 3660 3661 am_cv_CC_dependencies_compiler_type=none 3662 if test "$am_compiler_list" = ""; then 3663 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3664 fi 3665 am__universal=false 3666 case " $depcc " in #( 3667 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3668 esac 3669 3670 for depmode in $am_compiler_list; do 3671 # Setup a source with many dependencies, because some compilers 3672 # like to wrap large dependency lists on column 80 (with \), and 3673 # we should not choose a depcomp mode which is confused by this. 3674 # 3675 # We need to recreate these files for each test, as the compiler may 3676 # overwrite some of them when testing with obscure command lines. 3677 # This happens at least with the AIX C compiler. 3678 : > sub/conftest.c 3679 for i in 1 2 3 4 5 6; do 3680 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3681 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3682 # Solaris 8's {/usr,}/bin/sh. 3683 touch sub/conftst$i.h 3684 done 3685 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3686 3687 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3688 # mode. It turns out that the SunPro C++ compiler does not properly 3689 # handle `-M -o', and we need to detect this. Also, some Intel 3690 # versions had trouble with output in subdirs 3691 am__obj=sub/conftest.${OBJEXT-o} 3692 am__minus_obj="-o $am__obj" 3693 case $depmode in 3694 gcc) 3695 # This depmode causes a compiler race in universal mode. 3696 test "$am__universal" = false || continue 3697 ;; 3698 nosideeffect) 3699 # after this tag, mechanisms are not by side-effect, so they'll 3700 # only be used when explicitly requested 3701 if test "x$enable_dependency_tracking" = xyes; then 3702 continue 3703 else 3704 break 3705 fi 3706 ;; 3707 msvisualcpp | msvcmsys) 3708 # This compiler won't grok `-c -o', but also, the minuso test has 3709 # not run yet. These depmodes are late enough in the game, and 3710 # so weak that their functioning should not be impacted. 3711 am__obj=conftest.${OBJEXT-o} 3712 am__minus_obj= 3713 ;; 3714 none) break ;; 3715 esac 3716 if depmode=$depmode \ 3717 source=sub/conftest.c object=$am__obj \ 3718 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3719 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3720 >/dev/null 2>conftest.err && 3721 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3722 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3723 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3724 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3725 # icc doesn't choke on unknown options, it will just issue warnings 3726 # or remarks (even with -Werror). So we grep stderr for any message 3727 # that says an option was ignored or not supported. 3728 # When given -MP, icc 7.0 and 7.1 complain thusly: 3729 # icc: Command line warning: ignoring option '-M'; no argument required 3730 # The diagnosis changed in icc 8.0: 3731 # icc: Command line remark: option '-MP' not supported 3732 if (grep 'ignoring option' conftest.err || 3733 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3734 am_cv_CC_dependencies_compiler_type=$depmode 3735 break 3736 fi 3737 fi 3738 done 3739 3740 cd .. 3741 rm -rf conftest.dir 3742else 3743 am_cv_CC_dependencies_compiler_type=none 3744fi 3745 3746fi 3747{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3748$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3749CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3750 3751 if 3752 test "x$enable_dependency_tracking" != xno \ 3753 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3754 am__fastdepCC_TRUE= 3755 am__fastdepCC_FALSE='#' 3756else 3757 am__fastdepCC_TRUE='#' 3758 am__fastdepCC_FALSE= 3759fi 3760 3761 3762# Check whether --enable-shared was given. 3763if test "${enable_shared+set}" = set; then 3764 enableval=$enable_shared; p=${PACKAGE-default} 3765 case $enableval in 3766 yes) enable_shared=yes ;; 3767 no) enable_shared=no ;; 3768 *) 3769 enable_shared=no 3770 # Look at the argument we got. We use all the common list separators. 3771 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3772 for pkg in $enableval; do 3773 IFS="$lt_save_ifs" 3774 if test "X$pkg" = "X$p"; then 3775 enable_shared=yes 3776 fi 3777 done 3778 IFS="$lt_save_ifs" 3779 ;; 3780 esac 3781else 3782 enable_shared=yes 3783fi 3784 3785 3786# Check whether --enable-static was given. 3787if test "${enable_static+set}" = set; then 3788 enableval=$enable_static; p=${PACKAGE-default} 3789 case $enableval in 3790 yes) enable_static=yes ;; 3791 no) enable_static=no ;; 3792 *) 3793 enable_static=no 3794 # Look at the argument we got. We use all the common list separators. 3795 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3796 for pkg in $enableval; do 3797 IFS="$lt_save_ifs" 3798 if test "X$pkg" = "X$p"; then 3799 enable_static=yes 3800 fi 3801 done 3802 IFS="$lt_save_ifs" 3803 ;; 3804 esac 3805else 3806 enable_static=yes 3807fi 3808 3809 3810# Check whether --enable-fast-install was given. 3811if test "${enable_fast_install+set}" = set; then 3812 enableval=$enable_fast_install; p=${PACKAGE-default} 3813 case $enableval in 3814 yes) enable_fast_install=yes ;; 3815 no) enable_fast_install=no ;; 3816 *) 3817 enable_fast_install=no 3818 # Look at the argument we got. We use all the common list separators. 3819 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3820 for pkg in $enableval; do 3821 IFS="$lt_save_ifs" 3822 if test "X$pkg" = "X$p"; then 3823 enable_fast_install=yes 3824 fi 3825 done 3826 IFS="$lt_save_ifs" 3827 ;; 3828 esac 3829else 3830 enable_fast_install=yes 3831fi 3832 3833 3834# Make sure we can run config.sub. 3835$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3836 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 3837$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 3838 { (exit 1); exit 1; }; } 3839 3840{ $as_echo "$as_me:$LINENO: checking build system type" >&5 3841$as_echo_n "checking build system type... " >&6; } 3842if test "${ac_cv_build+set}" = set; then 3843 $as_echo_n "(cached) " >&6 3844else 3845 ac_build_alias=$build_alias 3846test "x$ac_build_alias" = x && 3847 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3848test "x$ac_build_alias" = x && 3849 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3850$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3851 { (exit 1); exit 1; }; } 3852ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3853 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 3854$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 3855 { (exit 1); exit 1; }; } 3856 3857fi 3858{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3859$as_echo "$ac_cv_build" >&6; } 3860case $ac_cv_build in 3861*-*-*) ;; 3862*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 3863$as_echo "$as_me: error: invalid value of canonical build" >&2;} 3864 { (exit 1); exit 1; }; };; 3865esac 3866build=$ac_cv_build 3867ac_save_IFS=$IFS; IFS='-' 3868set x $ac_cv_build 3869shift 3870build_cpu=$1 3871build_vendor=$2 3872shift; shift 3873# Remember, the first character of IFS is used to create $*, 3874# except with old shells: 3875build_os=$* 3876IFS=$ac_save_IFS 3877case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3878 3879 3880{ $as_echo "$as_me:$LINENO: checking host system type" >&5 3881$as_echo_n "checking host system type... " >&6; } 3882if test "${ac_cv_host+set}" = set; then 3883 $as_echo_n "(cached) " >&6 3884else 3885 if test "x$host_alias" = x; then 3886 ac_cv_host=$ac_cv_build 3887else 3888 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3889 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 3890$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 3891 { (exit 1); exit 1; }; } 3892fi 3893 3894fi 3895{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3896$as_echo "$ac_cv_host" >&6; } 3897case $ac_cv_host in 3898*-*-*) ;; 3899*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 3900$as_echo "$as_me: error: invalid value of canonical host" >&2;} 3901 { (exit 1); exit 1; }; };; 3902esac 3903host=$ac_cv_host 3904ac_save_IFS=$IFS; IFS='-' 3905set x $ac_cv_host 3906shift 3907host_cpu=$1 3908host_vendor=$2 3909shift; shift 3910# Remember, the first character of IFS is used to create $*, 3911# except with old shells: 3912host_os=$* 3913IFS=$ac_save_IFS 3914case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3915 3916 3917{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3918$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3919if test "${lt_cv_path_SED+set}" = set; then 3920 $as_echo_n "(cached) " >&6 3921else 3922 # Loop through the user's path and test for sed and gsed. 3923# Then use that list of sed's as ones to test for truncation. 3924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3925for as_dir in $PATH 3926do 3927 IFS=$as_save_IFS 3928 test -z "$as_dir" && as_dir=. 3929 for lt_ac_prog in sed gsed; do 3930 for ac_exec_ext in '' $ac_executable_extensions; do 3931 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then 3932 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3933 fi 3934 done 3935 done 3936done 3937IFS=$as_save_IFS 3938lt_ac_max=0 3939lt_ac_count=0 3940# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3941# along with /bin/sed that truncates output. 3942for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3943 test ! -f $lt_ac_sed && continue 3944 cat /dev/null > conftest.in 3945 lt_ac_count=0 3946 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3947 # Check for GNU sed and select it if it is found. 3948 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3949 lt_cv_path_SED=$lt_ac_sed 3950 break 3951 fi 3952 while true; do 3953 cat conftest.in conftest.in >conftest.tmp 3954 mv conftest.tmp conftest.in 3955 cp conftest.in conftest.nl 3956 echo >>conftest.nl 3957 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3958 cmp -s conftest.out conftest.nl || break 3959 # 10000 chars as input seems more than enough 3960 test $lt_ac_count -gt 10 && break 3961 lt_ac_count=`expr $lt_ac_count + 1` 3962 if test $lt_ac_count -gt $lt_ac_max; then 3963 lt_ac_max=$lt_ac_count 3964 lt_cv_path_SED=$lt_ac_sed 3965 fi 3966 done 3967done 3968 3969fi 3970 3971SED=$lt_cv_path_SED 3972 3973{ $as_echo "$as_me:$LINENO: result: $SED" >&5 3974$as_echo "$SED" >&6; } 3975 3976{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3977$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3978if test "${ac_cv_path_GREP+set}" = set; then 3979 $as_echo_n "(cached) " >&6 3980else 3981 if test -z "$GREP"; then 3982 ac_path_GREP_found=false 3983 # Loop through the user's path and test for each of PROGNAME-LIST 3984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3985for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3986do 3987 IFS=$as_save_IFS 3988 test -z "$as_dir" && as_dir=. 3989 for ac_prog in grep ggrep; do 3990 for ac_exec_ext in '' $ac_executable_extensions; do 3991 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3992 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3993# Check for GNU ac_path_GREP and select it if it is found. 3994 # Check for GNU $ac_path_GREP 3995case `"$ac_path_GREP" --version 2>&1` in 3996*GNU*) 3997 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3998*) 3999 ac_count=0 4000 $as_echo_n 0123456789 >"conftest.in" 4001 while : 4002 do 4003 cat "conftest.in" "conftest.in" >"conftest.tmp" 4004 mv "conftest.tmp" "conftest.in" 4005 cp "conftest.in" "conftest.nl" 4006 $as_echo 'GREP' >> "conftest.nl" 4007 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4008 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4009 ac_count=`expr $ac_count + 1` 4010 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4011 # Best one so far, save it but keep looking for a better one 4012 ac_cv_path_GREP="$ac_path_GREP" 4013 ac_path_GREP_max=$ac_count 4014 fi 4015 # 10*(2^10) chars as input seems more than enough 4016 test $ac_count -gt 10 && break 4017 done 4018 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4019esac 4020 4021 $ac_path_GREP_found && break 3 4022 done 4023 done 4024done 4025IFS=$as_save_IFS 4026 if test -z "$ac_cv_path_GREP"; then 4027 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4028$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4029 { (exit 1); exit 1; }; } 4030 fi 4031else 4032 ac_cv_path_GREP=$GREP 4033fi 4034 4035fi 4036{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4037$as_echo "$ac_cv_path_GREP" >&6; } 4038 GREP="$ac_cv_path_GREP" 4039 4040 4041{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 4042$as_echo_n "checking for egrep... " >&6; } 4043if test "${ac_cv_path_EGREP+set}" = set; then 4044 $as_echo_n "(cached) " >&6 4045else 4046 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4047 then ac_cv_path_EGREP="$GREP -E" 4048 else 4049 if test -z "$EGREP"; then 4050 ac_path_EGREP_found=false 4051 # Loop through the user's path and test for each of PROGNAME-LIST 4052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4053for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4054do 4055 IFS=$as_save_IFS 4056 test -z "$as_dir" && as_dir=. 4057 for ac_prog in egrep; do 4058 for ac_exec_ext in '' $ac_executable_extensions; do 4059 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4060 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4061# Check for GNU ac_path_EGREP and select it if it is found. 4062 # Check for GNU $ac_path_EGREP 4063case `"$ac_path_EGREP" --version 2>&1` in 4064*GNU*) 4065 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4066*) 4067 ac_count=0 4068 $as_echo_n 0123456789 >"conftest.in" 4069 while : 4070 do 4071 cat "conftest.in" "conftest.in" >"conftest.tmp" 4072 mv "conftest.tmp" "conftest.in" 4073 cp "conftest.in" "conftest.nl" 4074 $as_echo 'EGREP' >> "conftest.nl" 4075 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4076 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4077 ac_count=`expr $ac_count + 1` 4078 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4079 # Best one so far, save it but keep looking for a better one 4080 ac_cv_path_EGREP="$ac_path_EGREP" 4081 ac_path_EGREP_max=$ac_count 4082 fi 4083 # 10*(2^10) chars as input seems more than enough 4084 test $ac_count -gt 10 && break 4085 done 4086 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4087esac 4088 4089 $ac_path_EGREP_found && break 3 4090 done 4091 done 4092done 4093IFS=$as_save_IFS 4094 if test -z "$ac_cv_path_EGREP"; then 4095 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4096$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4097 { (exit 1); exit 1; }; } 4098 fi 4099else 4100 ac_cv_path_EGREP=$EGREP 4101fi 4102 4103 fi 4104fi 4105{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4106$as_echo "$ac_cv_path_EGREP" >&6; } 4107 EGREP="$ac_cv_path_EGREP" 4108 4109 4110 4111# Check whether --with-gnu-ld was given. 4112if test "${with_gnu_ld+set}" = set; then 4113 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4114else 4115 with_gnu_ld=no 4116fi 4117 4118ac_prog=ld 4119if test "$GCC" = yes; then 4120 # Check if gcc -print-prog-name=ld gives a path. 4121 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4122$as_echo_n "checking for ld used by $CC... " >&6; } 4123 case $host in 4124 *-*-mingw*) 4125 # gcc leaves a trailing carriage return which upsets mingw 4126 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4127 *) 4128 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4129 esac 4130 case $ac_prog in 4131 # Accept absolute paths. 4132 [\\/]* | ?:[\\/]*) 4133 re_direlt='/[^/][^/]*/\.\./' 4134 # Canonicalize the pathname of ld 4135 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 4136 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 4137 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 4138 done 4139 test -z "$LD" && LD="$ac_prog" 4140 ;; 4141 "") 4142 # If it fails, then pretend we aren't using GCC. 4143 ac_prog=ld 4144 ;; 4145 *) 4146 # If it is relative, then search for the first ld in PATH. 4147 with_gnu_ld=unknown 4148 ;; 4149 esac 4150elif test "$with_gnu_ld" = yes; then 4151 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 4152$as_echo_n "checking for GNU ld... " >&6; } 4153else 4154 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4155$as_echo_n "checking for non-GNU ld... " >&6; } 4156fi 4157if test "${lt_cv_path_LD+set}" = set; then 4158 $as_echo_n "(cached) " >&6 4159else 4160 if test -z "$LD"; then 4161 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4162 for ac_dir in $PATH; do 4163 IFS="$lt_save_ifs" 4164 test -z "$ac_dir" && ac_dir=. 4165 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4166 lt_cv_path_LD="$ac_dir/$ac_prog" 4167 # Check to see if the program is GNU ld. I'd rather use --version, 4168 # but apparently some variants of GNU ld only accept -v. 4169 # Break only if it was the GNU/non-GNU ld that we prefer. 4170 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4171 *GNU* | *'with BFD'*) 4172 test "$with_gnu_ld" != no && break 4173 ;; 4174 *) 4175 test "$with_gnu_ld" != yes && break 4176 ;; 4177 esac 4178 fi 4179 done 4180 IFS="$lt_save_ifs" 4181else 4182 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4183fi 4184fi 4185 4186LD="$lt_cv_path_LD" 4187if test -n "$LD"; then 4188 { $as_echo "$as_me:$LINENO: result: $LD" >&5 4189$as_echo "$LD" >&6; } 4190else 4191 { $as_echo "$as_me:$LINENO: result: no" >&5 4192$as_echo "no" >&6; } 4193fi 4194test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4195$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4196 { (exit 1); exit 1; }; } 4197{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4198$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4199if test "${lt_cv_prog_gnu_ld+set}" = set; then 4200 $as_echo_n "(cached) " >&6 4201else 4202 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4203case `$LD -v 2>&1 </dev/null` in 4204*GNU* | *'with BFD'*) 4205 lt_cv_prog_gnu_ld=yes 4206 ;; 4207*) 4208 lt_cv_prog_gnu_ld=no 4209 ;; 4210esac 4211fi 4212{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4213$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4214with_gnu_ld=$lt_cv_prog_gnu_ld 4215 4216 4217{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4218$as_echo_n "checking for $LD option to reload object files... " >&6; } 4219if test "${lt_cv_ld_reload_flag+set}" = set; then 4220 $as_echo_n "(cached) " >&6 4221else 4222 lt_cv_ld_reload_flag='-r' 4223fi 4224{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4225$as_echo "$lt_cv_ld_reload_flag" >&6; } 4226reload_flag=$lt_cv_ld_reload_flag 4227case $reload_flag in 4228"" | " "*) ;; 4229*) reload_flag=" $reload_flag" ;; 4230esac 4231reload_cmds='$LD$reload_flag -o $output$reload_objs' 4232case $host_os in 4233 darwin*) 4234 if test "$GCC" = yes; then 4235 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4236 else 4237 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4238 fi 4239 ;; 4240esac 4241 4242{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4243$as_echo_n "checking for BSD-compatible nm... " >&6; } 4244if test "${lt_cv_path_NM+set}" = set; then 4245 $as_echo_n "(cached) " >&6 4246else 4247 if test -n "$NM"; then 4248 # Let the user override the test. 4249 lt_cv_path_NM="$NM" 4250else 4251 lt_nm_to_check="${ac_tool_prefix}nm" 4252 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4253 lt_nm_to_check="$lt_nm_to_check nm" 4254 fi 4255 for lt_tmp_nm in $lt_nm_to_check; do 4256 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4257 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4258 IFS="$lt_save_ifs" 4259 test -z "$ac_dir" && ac_dir=. 4260 tmp_nm="$ac_dir/$lt_tmp_nm" 4261 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4262 # Check to see if the nm accepts a BSD-compat flag. 4263 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4264 # nm: unknown option "B" ignored 4265 # Tru64's nm complains that /dev/null is an invalid object file 4266 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4267 */dev/null* | *'Invalid file or object type'*) 4268 lt_cv_path_NM="$tmp_nm -B" 4269 break 4270 ;; 4271 *) 4272 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4273 */dev/null*) 4274 lt_cv_path_NM="$tmp_nm -p" 4275 break 4276 ;; 4277 *) 4278 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4279 continue # so that we can try to find one that supports BSD flags 4280 ;; 4281 esac 4282 ;; 4283 esac 4284 fi 4285 done 4286 IFS="$lt_save_ifs" 4287 done 4288 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4289fi 4290fi 4291{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4292$as_echo "$lt_cv_path_NM" >&6; } 4293NM="$lt_cv_path_NM" 4294 4295{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 4296$as_echo_n "checking whether ln -s works... " >&6; } 4297LN_S=$as_ln_s 4298if test "$LN_S" = "ln -s"; then 4299 { $as_echo "$as_me:$LINENO: result: yes" >&5 4300$as_echo "yes" >&6; } 4301else 4302 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4303$as_echo "no, using $LN_S" >&6; } 4304fi 4305 4306{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 4307$as_echo_n "checking how to recognize dependent libraries... " >&6; } 4308if test "${lt_cv_deplibs_check_method+set}" = set; then 4309 $as_echo_n "(cached) " >&6 4310else 4311 lt_cv_file_magic_cmd='$MAGIC_CMD' 4312lt_cv_file_magic_test_file= 4313lt_cv_deplibs_check_method='unknown' 4314# Need to set the preceding variable on all platforms that support 4315# interlibrary dependencies. 4316# 'none' -- dependencies not supported. 4317# `unknown' -- same as none, but documents that we really don't know. 4318# 'pass_all' -- all dependencies passed with no checks. 4319# 'test_compile' -- check by making test program. 4320# 'file_magic [[regex]]' -- check by looking for files in library path 4321# which responds to the $file_magic_cmd with a given extended regex. 4322# If you have `file' or equivalent on your system and you're not sure 4323# whether `pass_all' will *always* work, you probably want this one. 4324 4325case $host_os in 4326aix[4-9]*) 4327 lt_cv_deplibs_check_method=pass_all 4328 ;; 4329 4330beos*) 4331 lt_cv_deplibs_check_method=pass_all 4332 ;; 4333 4334bsdi[45]*) 4335 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4336 lt_cv_file_magic_cmd='/usr/bin/file -L' 4337 lt_cv_file_magic_test_file=/shlib/libc.so 4338 ;; 4339 4340cygwin*) 4341 # func_win32_libid is a shell function defined in ltmain.sh 4342 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4343 lt_cv_file_magic_cmd='func_win32_libid' 4344 ;; 4345 4346mingw* | pw32*) 4347 # Base MSYS/MinGW do not provide the 'file' command needed by 4348 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4349 # unless we find 'file', for example because we are cross-compiling. 4350 if ( file / ) >/dev/null 2>&1; then 4351 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4352 lt_cv_file_magic_cmd='func_win32_libid' 4353 else 4354 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4355 lt_cv_file_magic_cmd='$OBJDUMP -f' 4356 fi 4357 ;; 4358 4359darwin* | rhapsody*) 4360 lt_cv_deplibs_check_method=pass_all 4361 ;; 4362 4363freebsd* | dragonfly*) 4364 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4365 case $host_cpu in 4366 i*86 ) 4367 # Not sure whether the presence of OpenBSD here was a mistake. 4368 # Let's accept both of them until this is cleared up. 4369 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4370 lt_cv_file_magic_cmd=/usr/bin/file 4371 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4372 ;; 4373 esac 4374 else 4375 lt_cv_deplibs_check_method=pass_all 4376 fi 4377 ;; 4378 4379gnu*) 4380 lt_cv_deplibs_check_method=pass_all 4381 ;; 4382 4383hpux10.20* | hpux11*) 4384 lt_cv_file_magic_cmd=/usr/bin/file 4385 case $host_cpu in 4386 ia64*) 4387 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4388 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4389 ;; 4390 hppa*64*) 4391 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]' 4392 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4393 ;; 4394 *) 4395 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4396 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4397 ;; 4398 esac 4399 ;; 4400 4401interix[3-9]*) 4402 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4403 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4404 ;; 4405 4406irix5* | irix6* | nonstopux*) 4407 case $LD in 4408 *-32|*"-32 ") libmagic=32-bit;; 4409 *-n32|*"-n32 ") libmagic=N32;; 4410 *-64|*"-64 ") libmagic=64-bit;; 4411 *) libmagic=never-match;; 4412 esac 4413 lt_cv_deplibs_check_method=pass_all 4414 ;; 4415 4416# This must be Linux ELF. 4417linux* | k*bsd*-gnu) 4418 lt_cv_deplibs_check_method=pass_all 4419 ;; 4420 4421netbsd*) 4422 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4423 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4424 else 4425 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4426 fi 4427 ;; 4428 4429newos6*) 4430 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4431 lt_cv_file_magic_cmd=/usr/bin/file 4432 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4433 ;; 4434 4435nto-qnx*) 4436 lt_cv_deplibs_check_method=unknown 4437 ;; 4438 4439openbsd*) 4440 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4441 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4442 else 4443 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4444 fi 4445 ;; 4446 4447osf3* | osf4* | osf5*) 4448 lt_cv_deplibs_check_method=pass_all 4449 ;; 4450 4451rdos*) 4452 lt_cv_deplibs_check_method=pass_all 4453 ;; 4454 4455solaris*) 4456 lt_cv_deplibs_check_method=pass_all 4457 ;; 4458 4459sysv4 | sysv4.3*) 4460 case $host_vendor in 4461 motorola) 4462 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]' 4463 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4464 ;; 4465 ncr) 4466 lt_cv_deplibs_check_method=pass_all 4467 ;; 4468 sequent) 4469 lt_cv_file_magic_cmd='/bin/file' 4470 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4471 ;; 4472 sni) 4473 lt_cv_file_magic_cmd='/bin/file' 4474 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4475 lt_cv_file_magic_test_file=/lib/libc.so 4476 ;; 4477 siemens) 4478 lt_cv_deplibs_check_method=pass_all 4479 ;; 4480 pc) 4481 lt_cv_deplibs_check_method=pass_all 4482 ;; 4483 esac 4484 ;; 4485 4486sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4487 lt_cv_deplibs_check_method=pass_all 4488 ;; 4489esac 4490 4491fi 4492{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4493$as_echo "$lt_cv_deplibs_check_method" >&6; } 4494file_magic_cmd=$lt_cv_file_magic_cmd 4495deplibs_check_method=$lt_cv_deplibs_check_method 4496test -z "$deplibs_check_method" && deplibs_check_method=unknown 4497 4498 4499 4500 4501# If no C compiler was specified, use CC. 4502LTCC=${LTCC-"$CC"} 4503 4504# If no C compiler flags were specified, use CFLAGS. 4505LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4506 4507# Allow CC to be a program name with arguments. 4508compiler=$CC 4509 4510 4511# Check whether --enable-libtool-lock was given. 4512if test "${enable_libtool_lock+set}" = set; then 4513 enableval=$enable_libtool_lock; 4514fi 4515 4516test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4517 4518# Some flags need to be propagated to the compiler or linker for good 4519# libtool support. 4520case $host in 4521ia64-*-hpux*) 4522 # Find out which ABI we are using. 4523 echo 'int i;' > conftest.$ac_ext 4524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4525 (eval $ac_compile) 2>&5 4526 ac_status=$? 4527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4528 (exit $ac_status); }; then 4529 case `/usr/bin/file conftest.$ac_objext` in 4530 *ELF-32*) 4531 HPUX_IA64_MODE="32" 4532 ;; 4533 *ELF-64*) 4534 HPUX_IA64_MODE="64" 4535 ;; 4536 esac 4537 fi 4538 rm -rf conftest* 4539 ;; 4540*-*-irix6*) 4541 # Find out which ABI we are using. 4542 echo '#line 4542 "configure"' > conftest.$ac_ext 4543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4544 (eval $ac_compile) 2>&5 4545 ac_status=$? 4546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4547 (exit $ac_status); }; then 4548 if test "$lt_cv_prog_gnu_ld" = yes; then 4549 case `/usr/bin/file conftest.$ac_objext` in 4550 *32-bit*) 4551 LD="${LD-ld} -melf32bsmip" 4552 ;; 4553 *N32*) 4554 LD="${LD-ld} -melf32bmipn32" 4555 ;; 4556 *64-bit*) 4557 LD="${LD-ld} -melf64bmip" 4558 ;; 4559 esac 4560 else 4561 case `/usr/bin/file conftest.$ac_objext` in 4562 *32-bit*) 4563 LD="${LD-ld} -32" 4564 ;; 4565 *N32*) 4566 LD="${LD-ld} -n32" 4567 ;; 4568 *64-bit*) 4569 LD="${LD-ld} -64" 4570 ;; 4571 esac 4572 fi 4573 fi 4574 rm -rf conftest* 4575 ;; 4576 4577x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 4578s390*-*linux*|sparc*-*linux*) 4579 # Find out which ABI we are using. 4580 echo 'int i;' > conftest.$ac_ext 4581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4582 (eval $ac_compile) 2>&5 4583 ac_status=$? 4584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4585 (exit $ac_status); }; then 4586 case `/usr/bin/file conftest.o` in 4587 *32-bit*) 4588 case $host in 4589 x86_64-*kfreebsd*-gnu) 4590 LD="${LD-ld} -m elf_i386_fbsd" 4591 ;; 4592 x86_64-*linux*) 4593 LD="${LD-ld} -m elf_i386" 4594 ;; 4595 ppc64-*linux*|powerpc64-*linux*) 4596 LD="${LD-ld} -m elf32ppclinux" 4597 ;; 4598 s390x-*linux*) 4599 LD="${LD-ld} -m elf_s390" 4600 ;; 4601 sparc64-*linux*) 4602 LD="${LD-ld} -m elf32_sparc" 4603 ;; 4604 esac 4605 ;; 4606 *64-bit*) 4607 libsuff=64 4608 case $host in 4609 x86_64-*kfreebsd*-gnu) 4610 LD="${LD-ld} -m elf_x86_64_fbsd" 4611 ;; 4612 x86_64-*linux*) 4613 LD="${LD-ld} -m elf_x86_64" 4614 ;; 4615 ppc*-*linux*|powerpc*-*linux*) 4616 LD="${LD-ld} -m elf64ppc" 4617 ;; 4618 s390*-*linux*) 4619 LD="${LD-ld} -m elf64_s390" 4620 ;; 4621 sparc*-*linux*) 4622 LD="${LD-ld} -m elf64_sparc" 4623 ;; 4624 esac 4625 ;; 4626 esac 4627 fi 4628 rm -rf conftest* 4629 ;; 4630 4631*-*-sco3.2v5*) 4632 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4633 SAVE_CFLAGS="$CFLAGS" 4634 CFLAGS="$CFLAGS -belf" 4635 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4636$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 4637if test "${lt_cv_cc_needs_belf+set}" = set; then 4638 $as_echo_n "(cached) " >&6 4639else 4640 ac_ext=c 4641ac_cpp='$CPP $CPPFLAGS' 4642ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4643ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4644ac_compiler_gnu=$ac_cv_c_compiler_gnu 4645 4646 cat >conftest.$ac_ext <<_ACEOF 4647/* confdefs.h. */ 4648_ACEOF 4649cat confdefs.h >>conftest.$ac_ext 4650cat >>conftest.$ac_ext <<_ACEOF 4651/* end confdefs.h. */ 4652 4653int 4654main () 4655{ 4656 4657 ; 4658 return 0; 4659} 4660_ACEOF 4661rm -f conftest.$ac_objext conftest$ac_exeext 4662if { (ac_try="$ac_link" 4663case "(($ac_try" in 4664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4665 *) ac_try_echo=$ac_try;; 4666esac 4667eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4668$as_echo "$ac_try_echo") >&5 4669 (eval "$ac_link") 2>conftest.er1 4670 ac_status=$? 4671 grep -v '^ *+' conftest.er1 >conftest.err 4672 rm -f conftest.er1 4673 cat conftest.err >&5 4674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4675 (exit $ac_status); } && { 4676 test -z "$ac_c_werror_flag" || 4677 test ! -s conftest.err 4678 } && test -s conftest$ac_exeext && { 4679 test "$cross_compiling" = yes || 4680 $as_test_x conftest$ac_exeext 4681 }; then 4682 lt_cv_cc_needs_belf=yes 4683else 4684 $as_echo "$as_me: failed program was:" >&5 4685sed 's/^/| /' conftest.$ac_ext >&5 4686 4687 lt_cv_cc_needs_belf=no 4688fi 4689 4690rm -rf conftest.dSYM 4691rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4692 conftest$ac_exeext conftest.$ac_ext 4693 ac_ext=c 4694ac_cpp='$CPP $CPPFLAGS' 4695ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4696ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4697ac_compiler_gnu=$ac_cv_c_compiler_gnu 4698 4699fi 4700{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4701$as_echo "$lt_cv_cc_needs_belf" >&6; } 4702 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4703 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4704 CFLAGS="$SAVE_CFLAGS" 4705 fi 4706 ;; 4707sparc*-*solaris*) 4708 # Find out which ABI we are using. 4709 echo 'int i;' > conftest.$ac_ext 4710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4711 (eval $ac_compile) 2>&5 4712 ac_status=$? 4713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4714 (exit $ac_status); }; then 4715 case `/usr/bin/file conftest.o` in 4716 *64-bit*) 4717 case $lt_cv_prog_gnu_ld in 4718 yes*) LD="${LD-ld} -m elf64_sparc" ;; 4719 *) 4720 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 4721 LD="${LD-ld} -64" 4722 fi 4723 ;; 4724 esac 4725 ;; 4726 esac 4727 fi 4728 rm -rf conftest* 4729 ;; 4730 4731 4732esac 4733 4734need_locks="$enable_libtool_lock" 4735 4736 4737ac_ext=c 4738ac_cpp='$CPP $CPPFLAGS' 4739ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4740ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4741ac_compiler_gnu=$ac_cv_c_compiler_gnu 4742{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4743$as_echo_n "checking how to run the C preprocessor... " >&6; } 4744# On Suns, sometimes $CPP names a directory. 4745if test -n "$CPP" && test -d "$CPP"; then 4746 CPP= 4747fi 4748if test -z "$CPP"; then 4749 if test "${ac_cv_prog_CPP+set}" = set; then 4750 $as_echo_n "(cached) " >&6 4751else 4752 # Double quotes because CPP needs to be expanded 4753 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4754 do 4755 ac_preproc_ok=false 4756for ac_c_preproc_warn_flag in '' yes 4757do 4758 # Use a header file that comes with gcc, so configuring glibc 4759 # with a fresh cross-compiler works. 4760 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4761 # <limits.h> exists even on freestanding compilers. 4762 # On the NeXT, cc -E runs the code through the compiler's parser, 4763 # not just through cpp. "Syntax error" is here to catch this case. 4764 cat >conftest.$ac_ext <<_ACEOF 4765/* confdefs.h. */ 4766_ACEOF 4767cat confdefs.h >>conftest.$ac_ext 4768cat >>conftest.$ac_ext <<_ACEOF 4769/* end confdefs.h. */ 4770#ifdef __STDC__ 4771# include <limits.h> 4772#else 4773# include <assert.h> 4774#endif 4775 Syntax error 4776_ACEOF 4777if { (ac_try="$ac_cpp conftest.$ac_ext" 4778case "(($ac_try" in 4779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4780 *) ac_try_echo=$ac_try;; 4781esac 4782eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4783$as_echo "$ac_try_echo") >&5 4784 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4785 ac_status=$? 4786 grep -v '^ *+' conftest.er1 >conftest.err 4787 rm -f conftest.er1 4788 cat conftest.err >&5 4789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4790 (exit $ac_status); } >/dev/null && { 4791 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4792 test ! -s conftest.err 4793 }; then 4794 : 4795else 4796 $as_echo "$as_me: failed program was:" >&5 4797sed 's/^/| /' conftest.$ac_ext >&5 4798 4799 # Broken: fails on valid input. 4800continue 4801fi 4802 4803rm -f conftest.err conftest.$ac_ext 4804 4805 # OK, works on sane cases. Now check whether nonexistent headers 4806 # can be detected and how. 4807 cat >conftest.$ac_ext <<_ACEOF 4808/* confdefs.h. */ 4809_ACEOF 4810cat confdefs.h >>conftest.$ac_ext 4811cat >>conftest.$ac_ext <<_ACEOF 4812/* end confdefs.h. */ 4813#include <ac_nonexistent.h> 4814_ACEOF 4815if { (ac_try="$ac_cpp conftest.$ac_ext" 4816case "(($ac_try" in 4817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4818 *) ac_try_echo=$ac_try;; 4819esac 4820eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4821$as_echo "$ac_try_echo") >&5 4822 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4823 ac_status=$? 4824 grep -v '^ *+' conftest.er1 >conftest.err 4825 rm -f conftest.er1 4826 cat conftest.err >&5 4827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4828 (exit $ac_status); } >/dev/null && { 4829 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4830 test ! -s conftest.err 4831 }; then 4832 # Broken: success on invalid input. 4833continue 4834else 4835 $as_echo "$as_me: failed program was:" >&5 4836sed 's/^/| /' conftest.$ac_ext >&5 4837 4838 # Passes both tests. 4839ac_preproc_ok=: 4840break 4841fi 4842 4843rm -f conftest.err conftest.$ac_ext 4844 4845done 4846# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4847rm -f conftest.err conftest.$ac_ext 4848if $ac_preproc_ok; then 4849 break 4850fi 4851 4852 done 4853 ac_cv_prog_CPP=$CPP 4854 4855fi 4856 CPP=$ac_cv_prog_CPP 4857else 4858 ac_cv_prog_CPP=$CPP 4859fi 4860{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 4861$as_echo "$CPP" >&6; } 4862ac_preproc_ok=false 4863for ac_c_preproc_warn_flag in '' yes 4864do 4865 # Use a header file that comes with gcc, so configuring glibc 4866 # with a fresh cross-compiler works. 4867 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4868 # <limits.h> exists even on freestanding compilers. 4869 # On the NeXT, cc -E runs the code through the compiler's parser, 4870 # not just through cpp. "Syntax error" is here to catch this case. 4871 cat >conftest.$ac_ext <<_ACEOF 4872/* confdefs.h. */ 4873_ACEOF 4874cat confdefs.h >>conftest.$ac_ext 4875cat >>conftest.$ac_ext <<_ACEOF 4876/* end confdefs.h. */ 4877#ifdef __STDC__ 4878# include <limits.h> 4879#else 4880# include <assert.h> 4881#endif 4882 Syntax error 4883_ACEOF 4884if { (ac_try="$ac_cpp conftest.$ac_ext" 4885case "(($ac_try" in 4886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4887 *) ac_try_echo=$ac_try;; 4888esac 4889eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4890$as_echo "$ac_try_echo") >&5 4891 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4892 ac_status=$? 4893 grep -v '^ *+' conftest.er1 >conftest.err 4894 rm -f conftest.er1 4895 cat conftest.err >&5 4896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4897 (exit $ac_status); } >/dev/null && { 4898 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4899 test ! -s conftest.err 4900 }; then 4901 : 4902else 4903 $as_echo "$as_me: failed program was:" >&5 4904sed 's/^/| /' conftest.$ac_ext >&5 4905 4906 # Broken: fails on valid input. 4907continue 4908fi 4909 4910rm -f conftest.err conftest.$ac_ext 4911 4912 # OK, works on sane cases. Now check whether nonexistent headers 4913 # can be detected and how. 4914 cat >conftest.$ac_ext <<_ACEOF 4915/* confdefs.h. */ 4916_ACEOF 4917cat confdefs.h >>conftest.$ac_ext 4918cat >>conftest.$ac_ext <<_ACEOF 4919/* end confdefs.h. */ 4920#include <ac_nonexistent.h> 4921_ACEOF 4922if { (ac_try="$ac_cpp conftest.$ac_ext" 4923case "(($ac_try" in 4924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4925 *) ac_try_echo=$ac_try;; 4926esac 4927eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4928$as_echo "$ac_try_echo") >&5 4929 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4930 ac_status=$? 4931 grep -v '^ *+' conftest.er1 >conftest.err 4932 rm -f conftest.er1 4933 cat conftest.err >&5 4934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4935 (exit $ac_status); } >/dev/null && { 4936 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4937 test ! -s conftest.err 4938 }; then 4939 # Broken: success on invalid input. 4940continue 4941else 4942 $as_echo "$as_me: failed program was:" >&5 4943sed 's/^/| /' conftest.$ac_ext >&5 4944 4945 # Passes both tests. 4946ac_preproc_ok=: 4947break 4948fi 4949 4950rm -f conftest.err conftest.$ac_ext 4951 4952done 4953# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4954rm -f conftest.err conftest.$ac_ext 4955if $ac_preproc_ok; then 4956 : 4957else 4958 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 4959$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4960{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4961See \`config.log' for more details." >&5 4962$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4963See \`config.log' for more details." >&2;} 4964 { (exit 1); exit 1; }; }; } 4965fi 4966 4967ac_ext=c 4968ac_cpp='$CPP $CPPFLAGS' 4969ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4970ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4971ac_compiler_gnu=$ac_cv_c_compiler_gnu 4972 4973 4974{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4975$as_echo_n "checking for ANSI C header files... " >&6; } 4976if test "${ac_cv_header_stdc+set}" = set; then 4977 $as_echo_n "(cached) " >&6 4978else 4979 cat >conftest.$ac_ext <<_ACEOF 4980/* confdefs.h. */ 4981_ACEOF 4982cat confdefs.h >>conftest.$ac_ext 4983cat >>conftest.$ac_ext <<_ACEOF 4984/* end confdefs.h. */ 4985#include <stdlib.h> 4986#include <stdarg.h> 4987#include <string.h> 4988#include <float.h> 4989 4990int 4991main () 4992{ 4993 4994 ; 4995 return 0; 4996} 4997_ACEOF 4998rm -f conftest.$ac_objext 4999if { (ac_try="$ac_compile" 5000case "(($ac_try" in 5001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5002 *) ac_try_echo=$ac_try;; 5003esac 5004eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5005$as_echo "$ac_try_echo") >&5 5006 (eval "$ac_compile") 2>conftest.er1 5007 ac_status=$? 5008 grep -v '^ *+' conftest.er1 >conftest.err 5009 rm -f conftest.er1 5010 cat conftest.err >&5 5011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5012 (exit $ac_status); } && { 5013 test -z "$ac_c_werror_flag" || 5014 test ! -s conftest.err 5015 } && test -s conftest.$ac_objext; then 5016 ac_cv_header_stdc=yes 5017else 5018 $as_echo "$as_me: failed program was:" >&5 5019sed 's/^/| /' conftest.$ac_ext >&5 5020 5021 ac_cv_header_stdc=no 5022fi 5023 5024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5025 5026if test $ac_cv_header_stdc = yes; then 5027 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5028 cat >conftest.$ac_ext <<_ACEOF 5029/* confdefs.h. */ 5030_ACEOF 5031cat confdefs.h >>conftest.$ac_ext 5032cat >>conftest.$ac_ext <<_ACEOF 5033/* end confdefs.h. */ 5034#include <string.h> 5035 5036_ACEOF 5037if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5038 $EGREP "memchr" >/dev/null 2>&1; then 5039 : 5040else 5041 ac_cv_header_stdc=no 5042fi 5043rm -f conftest* 5044 5045fi 5046 5047if test $ac_cv_header_stdc = yes; then 5048 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5049 cat >conftest.$ac_ext <<_ACEOF 5050/* confdefs.h. */ 5051_ACEOF 5052cat confdefs.h >>conftest.$ac_ext 5053cat >>conftest.$ac_ext <<_ACEOF 5054/* end confdefs.h. */ 5055#include <stdlib.h> 5056 5057_ACEOF 5058if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5059 $EGREP "free" >/dev/null 2>&1; then 5060 : 5061else 5062 ac_cv_header_stdc=no 5063fi 5064rm -f conftest* 5065 5066fi 5067 5068if test $ac_cv_header_stdc = yes; then 5069 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5070 if test "$cross_compiling" = yes; then 5071 : 5072else 5073 cat >conftest.$ac_ext <<_ACEOF 5074/* confdefs.h. */ 5075_ACEOF 5076cat confdefs.h >>conftest.$ac_ext 5077cat >>conftest.$ac_ext <<_ACEOF 5078/* end confdefs.h. */ 5079#include <ctype.h> 5080#include <stdlib.h> 5081#if ((' ' & 0x0FF) == 0x020) 5082# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5083# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5084#else 5085# define ISLOWER(c) \ 5086 (('a' <= (c) && (c) <= 'i') \ 5087 || ('j' <= (c) && (c) <= 'r') \ 5088 || ('s' <= (c) && (c) <= 'z')) 5089# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5090#endif 5091 5092#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5093int 5094main () 5095{ 5096 int i; 5097 for (i = 0; i < 256; i++) 5098 if (XOR (islower (i), ISLOWER (i)) 5099 || toupper (i) != TOUPPER (i)) 5100 return 2; 5101 return 0; 5102} 5103_ACEOF 5104rm -f conftest$ac_exeext 5105if { (ac_try="$ac_link" 5106case "(($ac_try" in 5107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5108 *) ac_try_echo=$ac_try;; 5109esac 5110eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5111$as_echo "$ac_try_echo") >&5 5112 (eval "$ac_link") 2>&5 5113 ac_status=$? 5114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5115 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5116 { (case "(($ac_try" in 5117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5118 *) ac_try_echo=$ac_try;; 5119esac 5120eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5121$as_echo "$ac_try_echo") >&5 5122 (eval "$ac_try") 2>&5 5123 ac_status=$? 5124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5125 (exit $ac_status); }; }; then 5126 : 5127else 5128 $as_echo "$as_me: program exited with status $ac_status" >&5 5129$as_echo "$as_me: failed program was:" >&5 5130sed 's/^/| /' conftest.$ac_ext >&5 5131 5132( exit $ac_status ) 5133ac_cv_header_stdc=no 5134fi 5135rm -rf conftest.dSYM 5136rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5137fi 5138 5139 5140fi 5141fi 5142{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5143$as_echo "$ac_cv_header_stdc" >&6; } 5144if test $ac_cv_header_stdc = yes; then 5145 5146cat >>confdefs.h <<\_ACEOF 5147#define STDC_HEADERS 1 5148_ACEOF 5149 5150fi 5151 5152# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5163 inttypes.h stdint.h unistd.h 5164do 5165as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5166{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 5167$as_echo_n "checking for $ac_header... " >&6; } 5168if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5169 $as_echo_n "(cached) " >&6 5170else 5171 cat >conftest.$ac_ext <<_ACEOF 5172/* confdefs.h. */ 5173_ACEOF 5174cat confdefs.h >>conftest.$ac_ext 5175cat >>conftest.$ac_ext <<_ACEOF 5176/* end confdefs.h. */ 5177$ac_includes_default 5178 5179#include <$ac_header> 5180_ACEOF 5181rm -f conftest.$ac_objext 5182if { (ac_try="$ac_compile" 5183case "(($ac_try" in 5184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5185 *) ac_try_echo=$ac_try;; 5186esac 5187eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5188$as_echo "$ac_try_echo") >&5 5189 (eval "$ac_compile") 2>conftest.er1 5190 ac_status=$? 5191 grep -v '^ *+' conftest.er1 >conftest.err 5192 rm -f conftest.er1 5193 cat conftest.err >&5 5194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5195 (exit $ac_status); } && { 5196 test -z "$ac_c_werror_flag" || 5197 test ! -s conftest.err 5198 } && test -s conftest.$ac_objext; then 5199 eval "$as_ac_Header=yes" 5200else 5201 $as_echo "$as_me: failed program was:" >&5 5202sed 's/^/| /' conftest.$ac_ext >&5 5203 5204 eval "$as_ac_Header=no" 5205fi 5206 5207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5208fi 5209ac_res=`eval 'as_val=${'$as_ac_Header'} 5210 $as_echo "$as_val"'` 5211 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5212$as_echo "$ac_res" >&6; } 5213as_val=`eval 'as_val=${'$as_ac_Header'} 5214 $as_echo "$as_val"'` 5215 if test "x$as_val" = x""yes; then 5216 cat >>confdefs.h <<_ACEOF 5217#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5218_ACEOF 5219 5220fi 5221 5222done 5223 5224 5225 5226for ac_header in dlfcn.h 5227do 5228as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5229if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5230 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 5231$as_echo_n "checking for $ac_header... " >&6; } 5232if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5233 $as_echo_n "(cached) " >&6 5234fi 5235ac_res=`eval 'as_val=${'$as_ac_Header'} 5236 $as_echo "$as_val"'` 5237 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5238$as_echo "$ac_res" >&6; } 5239else 5240 # Is the header compilable? 5241{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 5242$as_echo_n "checking $ac_header usability... " >&6; } 5243cat >conftest.$ac_ext <<_ACEOF 5244/* confdefs.h. */ 5245_ACEOF 5246cat confdefs.h >>conftest.$ac_ext 5247cat >>conftest.$ac_ext <<_ACEOF 5248/* end confdefs.h. */ 5249$ac_includes_default 5250#include <$ac_header> 5251_ACEOF 5252rm -f conftest.$ac_objext 5253if { (ac_try="$ac_compile" 5254case "(($ac_try" in 5255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5256 *) ac_try_echo=$ac_try;; 5257esac 5258eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5259$as_echo "$ac_try_echo") >&5 5260 (eval "$ac_compile") 2>conftest.er1 5261 ac_status=$? 5262 grep -v '^ *+' conftest.er1 >conftest.err 5263 rm -f conftest.er1 5264 cat conftest.err >&5 5265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5266 (exit $ac_status); } && { 5267 test -z "$ac_c_werror_flag" || 5268 test ! -s conftest.err 5269 } && test -s conftest.$ac_objext; then 5270 ac_header_compiler=yes 5271else 5272 $as_echo "$as_me: failed program was:" >&5 5273sed 's/^/| /' conftest.$ac_ext >&5 5274 5275 ac_header_compiler=no 5276fi 5277 5278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5279{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5280$as_echo "$ac_header_compiler" >&6; } 5281 5282# Is the header present? 5283{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 5284$as_echo_n "checking $ac_header presence... " >&6; } 5285cat >conftest.$ac_ext <<_ACEOF 5286/* confdefs.h. */ 5287_ACEOF 5288cat confdefs.h >>conftest.$ac_ext 5289cat >>conftest.$ac_ext <<_ACEOF 5290/* end confdefs.h. */ 5291#include <$ac_header> 5292_ACEOF 5293if { (ac_try="$ac_cpp conftest.$ac_ext" 5294case "(($ac_try" in 5295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5296 *) ac_try_echo=$ac_try;; 5297esac 5298eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5299$as_echo "$ac_try_echo") >&5 5300 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5301 ac_status=$? 5302 grep -v '^ *+' conftest.er1 >conftest.err 5303 rm -f conftest.er1 5304 cat conftest.err >&5 5305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5306 (exit $ac_status); } >/dev/null && { 5307 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5308 test ! -s conftest.err 5309 }; then 5310 ac_header_preproc=yes 5311else 5312 $as_echo "$as_me: failed program was:" >&5 5313sed 's/^/| /' conftest.$ac_ext >&5 5314 5315 ac_header_preproc=no 5316fi 5317 5318rm -f conftest.err conftest.$ac_ext 5319{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5320$as_echo "$ac_header_preproc" >&6; } 5321 5322# So? What about this header? 5323case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5324 yes:no: ) 5325 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5326$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5327 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5328$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5329 ac_header_preproc=yes 5330 ;; 5331 no:yes:* ) 5332 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5333$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5334 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5335$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5336 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5337$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5338 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5339$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5340 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5341$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5342 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5343$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5344 ( cat <<\_ASBOX 5345## --------------------------------------------------------------------------------------------- ## 5346## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=libpciaccess ## 5347## --------------------------------------------------------------------------------------------- ## 5348_ASBOX 5349 ) | sed "s/^/$as_me: WARNING: /" >&2 5350 ;; 5351esac 5352{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 5353$as_echo_n "checking for $ac_header... " >&6; } 5354if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5355 $as_echo_n "(cached) " >&6 5356else 5357 eval "$as_ac_Header=\$ac_header_preproc" 5358fi 5359ac_res=`eval 'as_val=${'$as_ac_Header'} 5360 $as_echo "$as_val"'` 5361 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5362$as_echo "$ac_res" >&6; } 5363 5364fi 5365as_val=`eval 'as_val=${'$as_ac_Header'} 5366 $as_echo "$as_val"'` 5367 if test "x$as_val" = x""yes; then 5368 cat >>confdefs.h <<_ACEOF 5369#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5370_ACEOF 5371 5372fi 5373 5374done 5375 5376ac_ext=cpp 5377ac_cpp='$CXXCPP $CPPFLAGS' 5378ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5379ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5380ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5381if test -z "$CXX"; then 5382 if test -n "$CCC"; then 5383 CXX=$CCC 5384 else 5385 if test -n "$ac_tool_prefix"; then 5386 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5387 do 5388 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5389set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5390{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5391$as_echo_n "checking for $ac_word... " >&6; } 5392if test "${ac_cv_prog_CXX+set}" = set; then 5393 $as_echo_n "(cached) " >&6 5394else 5395 if test -n "$CXX"; then 5396 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5397else 5398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5399for as_dir in $PATH 5400do 5401 IFS=$as_save_IFS 5402 test -z "$as_dir" && as_dir=. 5403 for ac_exec_ext in '' $ac_executable_extensions; do 5404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5405 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5406 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5407 break 2 5408 fi 5409done 5410done 5411IFS=$as_save_IFS 5412 5413fi 5414fi 5415CXX=$ac_cv_prog_CXX 5416if test -n "$CXX"; then 5417 { $as_echo "$as_me:$LINENO: result: $CXX" >&5 5418$as_echo "$CXX" >&6; } 5419else 5420 { $as_echo "$as_me:$LINENO: result: no" >&5 5421$as_echo "no" >&6; } 5422fi 5423 5424 5425 test -n "$CXX" && break 5426 done 5427fi 5428if test -z "$CXX"; then 5429 ac_ct_CXX=$CXX 5430 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5431do 5432 # Extract the first word of "$ac_prog", so it can be a program name with args. 5433set dummy $ac_prog; ac_word=$2 5434{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5435$as_echo_n "checking for $ac_word... " >&6; } 5436if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 5437 $as_echo_n "(cached) " >&6 5438else 5439 if test -n "$ac_ct_CXX"; then 5440 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5441else 5442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5443for as_dir in $PATH 5444do 5445 IFS=$as_save_IFS 5446 test -z "$as_dir" && as_dir=. 5447 for ac_exec_ext in '' $ac_executable_extensions; do 5448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5449 ac_cv_prog_ac_ct_CXX="$ac_prog" 5450 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5451 break 2 5452 fi 5453done 5454done 5455IFS=$as_save_IFS 5456 5457fi 5458fi 5459ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5460if test -n "$ac_ct_CXX"; then 5461 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 5462$as_echo "$ac_ct_CXX" >&6; } 5463else 5464 { $as_echo "$as_me:$LINENO: result: no" >&5 5465$as_echo "no" >&6; } 5466fi 5467 5468 5469 test -n "$ac_ct_CXX" && break 5470done 5471 5472 if test "x$ac_ct_CXX" = x; then 5473 CXX="g++" 5474 else 5475 case $cross_compiling:$ac_tool_warned in 5476yes:) 5477{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5478$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5479ac_tool_warned=yes ;; 5480esac 5481 CXX=$ac_ct_CXX 5482 fi 5483fi 5484 5485 fi 5486fi 5487# Provide some information about the compiler. 5488$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5 5489set X $ac_compile 5490ac_compiler=$2 5491{ (ac_try="$ac_compiler --version >&5" 5492case "(($ac_try" in 5493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5494 *) ac_try_echo=$ac_try;; 5495esac 5496eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5497$as_echo "$ac_try_echo") >&5 5498 (eval "$ac_compiler --version >&5") 2>&5 5499 ac_status=$? 5500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5501 (exit $ac_status); } 5502{ (ac_try="$ac_compiler -v >&5" 5503case "(($ac_try" in 5504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5505 *) ac_try_echo=$ac_try;; 5506esac 5507eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5508$as_echo "$ac_try_echo") >&5 5509 (eval "$ac_compiler -v >&5") 2>&5 5510 ac_status=$? 5511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5512 (exit $ac_status); } 5513{ (ac_try="$ac_compiler -V >&5" 5514case "(($ac_try" in 5515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5516 *) ac_try_echo=$ac_try;; 5517esac 5518eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5519$as_echo "$ac_try_echo") >&5 5520 (eval "$ac_compiler -V >&5") 2>&5 5521 ac_status=$? 5522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5523 (exit $ac_status); } 5524 5525{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5526$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 5527if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5528 $as_echo_n "(cached) " >&6 5529else 5530 cat >conftest.$ac_ext <<_ACEOF 5531/* confdefs.h. */ 5532_ACEOF 5533cat confdefs.h >>conftest.$ac_ext 5534cat >>conftest.$ac_ext <<_ACEOF 5535/* end confdefs.h. */ 5536 5537int 5538main () 5539{ 5540#ifndef __GNUC__ 5541 choke me 5542#endif 5543 5544 ; 5545 return 0; 5546} 5547_ACEOF 5548rm -f conftest.$ac_objext 5549if { (ac_try="$ac_compile" 5550case "(($ac_try" in 5551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5552 *) ac_try_echo=$ac_try;; 5553esac 5554eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5555$as_echo "$ac_try_echo") >&5 5556 (eval "$ac_compile") 2>conftest.er1 5557 ac_status=$? 5558 grep -v '^ *+' conftest.er1 >conftest.err 5559 rm -f conftest.er1 5560 cat conftest.err >&5 5561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5562 (exit $ac_status); } && { 5563 test -z "$ac_cxx_werror_flag" || 5564 test ! -s conftest.err 5565 } && test -s conftest.$ac_objext; then 5566 ac_compiler_gnu=yes 5567else 5568 $as_echo "$as_me: failed program was:" >&5 5569sed 's/^/| /' conftest.$ac_ext >&5 5570 5571 ac_compiler_gnu=no 5572fi 5573 5574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5575ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5576 5577fi 5578{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 5579$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 5580if test $ac_compiler_gnu = yes; then 5581 GXX=yes 5582else 5583 GXX= 5584fi 5585ac_test_CXXFLAGS=${CXXFLAGS+set} 5586ac_save_CXXFLAGS=$CXXFLAGS 5587{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 5588$as_echo_n "checking whether $CXX accepts -g... " >&6; } 5589if test "${ac_cv_prog_cxx_g+set}" = set; then 5590 $as_echo_n "(cached) " >&6 5591else 5592 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5593 ac_cxx_werror_flag=yes 5594 ac_cv_prog_cxx_g=no 5595 CXXFLAGS="-g" 5596 cat >conftest.$ac_ext <<_ACEOF 5597/* confdefs.h. */ 5598_ACEOF 5599cat confdefs.h >>conftest.$ac_ext 5600cat >>conftest.$ac_ext <<_ACEOF 5601/* end confdefs.h. */ 5602 5603int 5604main () 5605{ 5606 5607 ; 5608 return 0; 5609} 5610_ACEOF 5611rm -f conftest.$ac_objext 5612if { (ac_try="$ac_compile" 5613case "(($ac_try" in 5614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5615 *) ac_try_echo=$ac_try;; 5616esac 5617eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5618$as_echo "$ac_try_echo") >&5 5619 (eval "$ac_compile") 2>conftest.er1 5620 ac_status=$? 5621 grep -v '^ *+' conftest.er1 >conftest.err 5622 rm -f conftest.er1 5623 cat conftest.err >&5 5624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5625 (exit $ac_status); } && { 5626 test -z "$ac_cxx_werror_flag" || 5627 test ! -s conftest.err 5628 } && test -s conftest.$ac_objext; then 5629 ac_cv_prog_cxx_g=yes 5630else 5631 $as_echo "$as_me: failed program was:" >&5 5632sed 's/^/| /' conftest.$ac_ext >&5 5633 5634 CXXFLAGS="" 5635 cat >conftest.$ac_ext <<_ACEOF 5636/* confdefs.h. */ 5637_ACEOF 5638cat confdefs.h >>conftest.$ac_ext 5639cat >>conftest.$ac_ext <<_ACEOF 5640/* end confdefs.h. */ 5641 5642int 5643main () 5644{ 5645 5646 ; 5647 return 0; 5648} 5649_ACEOF 5650rm -f conftest.$ac_objext 5651if { (ac_try="$ac_compile" 5652case "(($ac_try" in 5653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5654 *) ac_try_echo=$ac_try;; 5655esac 5656eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5657$as_echo "$ac_try_echo") >&5 5658 (eval "$ac_compile") 2>conftest.er1 5659 ac_status=$? 5660 grep -v '^ *+' conftest.er1 >conftest.err 5661 rm -f conftest.er1 5662 cat conftest.err >&5 5663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5664 (exit $ac_status); } && { 5665 test -z "$ac_cxx_werror_flag" || 5666 test ! -s conftest.err 5667 } && test -s conftest.$ac_objext; then 5668 : 5669else 5670 $as_echo "$as_me: failed program was:" >&5 5671sed 's/^/| /' conftest.$ac_ext >&5 5672 5673 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5674 CXXFLAGS="-g" 5675 cat >conftest.$ac_ext <<_ACEOF 5676/* confdefs.h. */ 5677_ACEOF 5678cat confdefs.h >>conftest.$ac_ext 5679cat >>conftest.$ac_ext <<_ACEOF 5680/* end confdefs.h. */ 5681 5682int 5683main () 5684{ 5685 5686 ; 5687 return 0; 5688} 5689_ACEOF 5690rm -f conftest.$ac_objext 5691if { (ac_try="$ac_compile" 5692case "(($ac_try" in 5693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5694 *) ac_try_echo=$ac_try;; 5695esac 5696eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5697$as_echo "$ac_try_echo") >&5 5698 (eval "$ac_compile") 2>conftest.er1 5699 ac_status=$? 5700 grep -v '^ *+' conftest.er1 >conftest.err 5701 rm -f conftest.er1 5702 cat conftest.err >&5 5703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5704 (exit $ac_status); } && { 5705 test -z "$ac_cxx_werror_flag" || 5706 test ! -s conftest.err 5707 } && test -s conftest.$ac_objext; then 5708 ac_cv_prog_cxx_g=yes 5709else 5710 $as_echo "$as_me: failed program was:" >&5 5711sed 's/^/| /' conftest.$ac_ext >&5 5712 5713 5714fi 5715 5716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5717fi 5718 5719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5720fi 5721 5722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5723 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5724fi 5725{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 5726$as_echo "$ac_cv_prog_cxx_g" >&6; } 5727if test "$ac_test_CXXFLAGS" = set; then 5728 CXXFLAGS=$ac_save_CXXFLAGS 5729elif test $ac_cv_prog_cxx_g = yes; then 5730 if test "$GXX" = yes; then 5731 CXXFLAGS="-g -O2" 5732 else 5733 CXXFLAGS="-g" 5734 fi 5735else 5736 if test "$GXX" = yes; then 5737 CXXFLAGS="-O2" 5738 else 5739 CXXFLAGS= 5740 fi 5741fi 5742ac_ext=cpp 5743ac_cpp='$CXXCPP $CPPFLAGS' 5744ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5745ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5746ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5747 5748depcc="$CXX" am_compiler_list= 5749 5750{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5751$as_echo_n "checking dependency style of $depcc... " >&6; } 5752if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 5753 $as_echo_n "(cached) " >&6 5754else 5755 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5756 # We make a subdir and do the tests there. Otherwise we can end up 5757 # making bogus files that we don't know about and never remove. For 5758 # instance it was reported that on HP-UX the gcc test will end up 5759 # making a dummy file named `D' -- because `-MD' means `put the output 5760 # in D'. 5761 mkdir conftest.dir 5762 # Copy depcomp to subdir because otherwise we won't find it if we're 5763 # using a relative directory. 5764 cp "$am_depcomp" conftest.dir 5765 cd conftest.dir 5766 # We will build objects and dependencies in a subdirectory because 5767 # it helps to detect inapplicable dependency modes. For instance 5768 # both Tru64's cc and ICC support -MD to output dependencies as a 5769 # side effect of compilation, but ICC will put the dependencies in 5770 # the current directory while Tru64 will put them in the object 5771 # directory. 5772 mkdir sub 5773 5774 am_cv_CXX_dependencies_compiler_type=none 5775 if test "$am_compiler_list" = ""; then 5776 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5777 fi 5778 am__universal=false 5779 case " $depcc " in #( 5780 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5781 esac 5782 5783 for depmode in $am_compiler_list; do 5784 # Setup a source with many dependencies, because some compilers 5785 # like to wrap large dependency lists on column 80 (with \), and 5786 # we should not choose a depcomp mode which is confused by this. 5787 # 5788 # We need to recreate these files for each test, as the compiler may 5789 # overwrite some of them when testing with obscure command lines. 5790 # This happens at least with the AIX C compiler. 5791 : > sub/conftest.c 5792 for i in 1 2 3 4 5 6; do 5793 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5794 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5795 # Solaris 8's {/usr,}/bin/sh. 5796 touch sub/conftst$i.h 5797 done 5798 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5799 5800 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5801 # mode. It turns out that the SunPro C++ compiler does not properly 5802 # handle `-M -o', and we need to detect this. Also, some Intel 5803 # versions had trouble with output in subdirs 5804 am__obj=sub/conftest.${OBJEXT-o} 5805 am__minus_obj="-o $am__obj" 5806 case $depmode in 5807 gcc) 5808 # This depmode causes a compiler race in universal mode. 5809 test "$am__universal" = false || continue 5810 ;; 5811 nosideeffect) 5812 # after this tag, mechanisms are not by side-effect, so they'll 5813 # only be used when explicitly requested 5814 if test "x$enable_dependency_tracking" = xyes; then 5815 continue 5816 else 5817 break 5818 fi 5819 ;; 5820 msvisualcpp | msvcmsys) 5821 # This compiler won't grok `-c -o', but also, the minuso test has 5822 # not run yet. These depmodes are late enough in the game, and 5823 # so weak that their functioning should not be impacted. 5824 am__obj=conftest.${OBJEXT-o} 5825 am__minus_obj= 5826 ;; 5827 none) break ;; 5828 esac 5829 if depmode=$depmode \ 5830 source=sub/conftest.c object=$am__obj \ 5831 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5832 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5833 >/dev/null 2>conftest.err && 5834 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5835 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5836 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5837 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5838 # icc doesn't choke on unknown options, it will just issue warnings 5839 # or remarks (even with -Werror). So we grep stderr for any message 5840 # that says an option was ignored or not supported. 5841 # When given -MP, icc 7.0 and 7.1 complain thusly: 5842 # icc: Command line warning: ignoring option '-M'; no argument required 5843 # The diagnosis changed in icc 8.0: 5844 # icc: Command line remark: option '-MP' not supported 5845 if (grep 'ignoring option' conftest.err || 5846 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5847 am_cv_CXX_dependencies_compiler_type=$depmode 5848 break 5849 fi 5850 fi 5851 done 5852 5853 cd .. 5854 rm -rf conftest.dir 5855else 5856 am_cv_CXX_dependencies_compiler_type=none 5857fi 5858 5859fi 5860{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 5861$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 5862CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5863 5864 if 5865 test "x$enable_dependency_tracking" != xno \ 5866 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5867 am__fastdepCXX_TRUE= 5868 am__fastdepCXX_FALSE='#' 5869else 5870 am__fastdepCXX_TRUE='#' 5871 am__fastdepCXX_FALSE= 5872fi 5873 5874 5875 5876 5877if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5878 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5879 (test "X$CXX" != "Xg++"))) ; then 5880 ac_ext=cpp 5881ac_cpp='$CXXCPP $CPPFLAGS' 5882ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5883ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5884ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5885{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5886$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 5887if test -z "$CXXCPP"; then 5888 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5889 $as_echo_n "(cached) " >&6 5890else 5891 # Double quotes because CXXCPP needs to be expanded 5892 for CXXCPP in "$CXX -E" "/lib/cpp" 5893 do 5894 ac_preproc_ok=false 5895for ac_cxx_preproc_warn_flag in '' yes 5896do 5897 # Use a header file that comes with gcc, so configuring glibc 5898 # with a fresh cross-compiler works. 5899 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5900 # <limits.h> exists even on freestanding compilers. 5901 # On the NeXT, cc -E runs the code through the compiler's parser, 5902 # not just through cpp. "Syntax error" is here to catch this case. 5903 cat >conftest.$ac_ext <<_ACEOF 5904/* confdefs.h. */ 5905_ACEOF 5906cat confdefs.h >>conftest.$ac_ext 5907cat >>conftest.$ac_ext <<_ACEOF 5908/* end confdefs.h. */ 5909#ifdef __STDC__ 5910# include <limits.h> 5911#else 5912# include <assert.h> 5913#endif 5914 Syntax error 5915_ACEOF 5916if { (ac_try="$ac_cpp conftest.$ac_ext" 5917case "(($ac_try" in 5918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5919 *) ac_try_echo=$ac_try;; 5920esac 5921eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5922$as_echo "$ac_try_echo") >&5 5923 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5924 ac_status=$? 5925 grep -v '^ *+' conftest.er1 >conftest.err 5926 rm -f conftest.er1 5927 cat conftest.err >&5 5928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5929 (exit $ac_status); } >/dev/null && { 5930 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5931 test ! -s conftest.err 5932 }; then 5933 : 5934else 5935 $as_echo "$as_me: failed program was:" >&5 5936sed 's/^/| /' conftest.$ac_ext >&5 5937 5938 # Broken: fails on valid input. 5939continue 5940fi 5941 5942rm -f conftest.err conftest.$ac_ext 5943 5944 # OK, works on sane cases. Now check whether nonexistent headers 5945 # can be detected and how. 5946 cat >conftest.$ac_ext <<_ACEOF 5947/* confdefs.h. */ 5948_ACEOF 5949cat confdefs.h >>conftest.$ac_ext 5950cat >>conftest.$ac_ext <<_ACEOF 5951/* end confdefs.h. */ 5952#include <ac_nonexistent.h> 5953_ACEOF 5954if { (ac_try="$ac_cpp conftest.$ac_ext" 5955case "(($ac_try" in 5956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5957 *) ac_try_echo=$ac_try;; 5958esac 5959eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5960$as_echo "$ac_try_echo") >&5 5961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5962 ac_status=$? 5963 grep -v '^ *+' conftest.er1 >conftest.err 5964 rm -f conftest.er1 5965 cat conftest.err >&5 5966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5967 (exit $ac_status); } >/dev/null && { 5968 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5969 test ! -s conftest.err 5970 }; then 5971 # Broken: success on invalid input. 5972continue 5973else 5974 $as_echo "$as_me: failed program was:" >&5 5975sed 's/^/| /' conftest.$ac_ext >&5 5976 5977 # Passes both tests. 5978ac_preproc_ok=: 5979break 5980fi 5981 5982rm -f conftest.err conftest.$ac_ext 5983 5984done 5985# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5986rm -f conftest.err conftest.$ac_ext 5987if $ac_preproc_ok; then 5988 break 5989fi 5990 5991 done 5992 ac_cv_prog_CXXCPP=$CXXCPP 5993 5994fi 5995 CXXCPP=$ac_cv_prog_CXXCPP 5996else 5997 ac_cv_prog_CXXCPP=$CXXCPP 5998fi 5999{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5 6000$as_echo "$CXXCPP" >&6; } 6001ac_preproc_ok=false 6002for ac_cxx_preproc_warn_flag in '' yes 6003do 6004 # Use a header file that comes with gcc, so configuring glibc 6005 # with a fresh cross-compiler works. 6006 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6007 # <limits.h> exists even on freestanding compilers. 6008 # On the NeXT, cc -E runs the code through the compiler's parser, 6009 # not just through cpp. "Syntax error" is here to catch this case. 6010 cat >conftest.$ac_ext <<_ACEOF 6011/* confdefs.h. */ 6012_ACEOF 6013cat confdefs.h >>conftest.$ac_ext 6014cat >>conftest.$ac_ext <<_ACEOF 6015/* end confdefs.h. */ 6016#ifdef __STDC__ 6017# include <limits.h> 6018#else 6019# include <assert.h> 6020#endif 6021 Syntax error 6022_ACEOF 6023if { (ac_try="$ac_cpp conftest.$ac_ext" 6024case "(($ac_try" in 6025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6026 *) ac_try_echo=$ac_try;; 6027esac 6028eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6029$as_echo "$ac_try_echo") >&5 6030 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6031 ac_status=$? 6032 grep -v '^ *+' conftest.er1 >conftest.err 6033 rm -f conftest.er1 6034 cat conftest.err >&5 6035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6036 (exit $ac_status); } >/dev/null && { 6037 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6038 test ! -s conftest.err 6039 }; then 6040 : 6041else 6042 $as_echo "$as_me: failed program was:" >&5 6043sed 's/^/| /' conftest.$ac_ext >&5 6044 6045 # Broken: fails on valid input. 6046continue 6047fi 6048 6049rm -f conftest.err conftest.$ac_ext 6050 6051 # OK, works on sane cases. Now check whether nonexistent headers 6052 # can be detected and how. 6053 cat >conftest.$ac_ext <<_ACEOF 6054/* confdefs.h. */ 6055_ACEOF 6056cat confdefs.h >>conftest.$ac_ext 6057cat >>conftest.$ac_ext <<_ACEOF 6058/* end confdefs.h. */ 6059#include <ac_nonexistent.h> 6060_ACEOF 6061if { (ac_try="$ac_cpp conftest.$ac_ext" 6062case "(($ac_try" in 6063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6064 *) ac_try_echo=$ac_try;; 6065esac 6066eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6067$as_echo "$ac_try_echo") >&5 6068 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6069 ac_status=$? 6070 grep -v '^ *+' conftest.er1 >conftest.err 6071 rm -f conftest.er1 6072 cat conftest.err >&5 6073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6074 (exit $ac_status); } >/dev/null && { 6075 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6076 test ! -s conftest.err 6077 }; then 6078 # Broken: success on invalid input. 6079continue 6080else 6081 $as_echo "$as_me: failed program was:" >&5 6082sed 's/^/| /' conftest.$ac_ext >&5 6083 6084 # Passes both tests. 6085ac_preproc_ok=: 6086break 6087fi 6088 6089rm -f conftest.err conftest.$ac_ext 6090 6091done 6092# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6093rm -f conftest.err conftest.$ac_ext 6094if $ac_preproc_ok; then 6095 : 6096else 6097 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 6098$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6099{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6100See \`config.log' for more details." >&5 6101$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6102See \`config.log' for more details." >&2;} 6103 { (exit 1); exit 1; }; }; } 6104fi 6105 6106ac_ext=cpp 6107ac_cpp='$CXXCPP $CPPFLAGS' 6108ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6109ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6110ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6111 6112fi 6113 6114 6115ac_ext=f 6116ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6117ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6118ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6119if test -n "$ac_tool_prefix"; then 6120 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 6121 do 6122 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6123set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6124{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6125$as_echo_n "checking for $ac_word... " >&6; } 6126if test "${ac_cv_prog_F77+set}" = set; then 6127 $as_echo_n "(cached) " >&6 6128else 6129 if test -n "$F77"; then 6130 ac_cv_prog_F77="$F77" # Let the user override the test. 6131else 6132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6133for as_dir in $PATH 6134do 6135 IFS=$as_save_IFS 6136 test -z "$as_dir" && as_dir=. 6137 for ac_exec_ext in '' $ac_executable_extensions; do 6138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6139 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 6140 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6141 break 2 6142 fi 6143done 6144done 6145IFS=$as_save_IFS 6146 6147fi 6148fi 6149F77=$ac_cv_prog_F77 6150if test -n "$F77"; then 6151 { $as_echo "$as_me:$LINENO: result: $F77" >&5 6152$as_echo "$F77" >&6; } 6153else 6154 { $as_echo "$as_me:$LINENO: result: no" >&5 6155$as_echo "no" >&6; } 6156fi 6157 6158 6159 test -n "$F77" && break 6160 done 6161fi 6162if test -z "$F77"; then 6163 ac_ct_F77=$F77 6164 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 6165do 6166 # Extract the first word of "$ac_prog", so it can be a program name with args. 6167set dummy $ac_prog; ac_word=$2 6168{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6169$as_echo_n "checking for $ac_word... " >&6; } 6170if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 6171 $as_echo_n "(cached) " >&6 6172else 6173 if test -n "$ac_ct_F77"; then 6174 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 6175else 6176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6177for as_dir in $PATH 6178do 6179 IFS=$as_save_IFS 6180 test -z "$as_dir" && as_dir=. 6181 for ac_exec_ext in '' $ac_executable_extensions; do 6182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6183 ac_cv_prog_ac_ct_F77="$ac_prog" 6184 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6185 break 2 6186 fi 6187done 6188done 6189IFS=$as_save_IFS 6190 6191fi 6192fi 6193ac_ct_F77=$ac_cv_prog_ac_ct_F77 6194if test -n "$ac_ct_F77"; then 6195 { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 6196$as_echo "$ac_ct_F77" >&6; } 6197else 6198 { $as_echo "$as_me:$LINENO: result: no" >&5 6199$as_echo "no" >&6; } 6200fi 6201 6202 6203 test -n "$ac_ct_F77" && break 6204done 6205 6206 if test "x$ac_ct_F77" = x; then 6207 F77="" 6208 else 6209 case $cross_compiling:$ac_tool_warned in 6210yes:) 6211{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6212$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6213ac_tool_warned=yes ;; 6214esac 6215 F77=$ac_ct_F77 6216 fi 6217fi 6218 6219 6220# Provide some information about the compiler. 6221$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 6222set X $ac_compile 6223ac_compiler=$2 6224{ (ac_try="$ac_compiler --version >&5" 6225case "(($ac_try" in 6226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6227 *) ac_try_echo=$ac_try;; 6228esac 6229eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6230$as_echo "$ac_try_echo") >&5 6231 (eval "$ac_compiler --version >&5") 2>&5 6232 ac_status=$? 6233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6234 (exit $ac_status); } 6235{ (ac_try="$ac_compiler -v >&5" 6236case "(($ac_try" in 6237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6238 *) ac_try_echo=$ac_try;; 6239esac 6240eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6241$as_echo "$ac_try_echo") >&5 6242 (eval "$ac_compiler -v >&5") 2>&5 6243 ac_status=$? 6244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6245 (exit $ac_status); } 6246{ (ac_try="$ac_compiler -V >&5" 6247case "(($ac_try" in 6248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6249 *) ac_try_echo=$ac_try;; 6250esac 6251eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6252$as_echo "$ac_try_echo") >&5 6253 (eval "$ac_compiler -V >&5") 2>&5 6254 ac_status=$? 6255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6256 (exit $ac_status); } 6257rm -f a.out 6258 6259# If we don't use `.F' as extension, the preprocessor is not run on the 6260# input file. (Note that this only needs to work for GNU compilers.) 6261ac_save_ext=$ac_ext 6262ac_ext=F 6263{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 6264$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; } 6265if test "${ac_cv_f77_compiler_gnu+set}" = set; then 6266 $as_echo_n "(cached) " >&6 6267else 6268 cat >conftest.$ac_ext <<_ACEOF 6269 program main 6270#ifndef __GNUC__ 6271 choke me 6272#endif 6273 6274 end 6275_ACEOF 6276rm -f conftest.$ac_objext 6277if { (ac_try="$ac_compile" 6278case "(($ac_try" in 6279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6280 *) ac_try_echo=$ac_try;; 6281esac 6282eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6283$as_echo "$ac_try_echo") >&5 6284 (eval "$ac_compile") 2>conftest.er1 6285 ac_status=$? 6286 grep -v '^ *+' conftest.er1 >conftest.err 6287 rm -f conftest.er1 6288 cat conftest.err >&5 6289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6290 (exit $ac_status); } && { 6291 test -z "$ac_f77_werror_flag" || 6292 test ! -s conftest.err 6293 } && test -s conftest.$ac_objext; then 6294 ac_compiler_gnu=yes 6295else 6296 $as_echo "$as_me: failed program was:" >&5 6297sed 's/^/| /' conftest.$ac_ext >&5 6298 6299 ac_compiler_gnu=no 6300fi 6301 6302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6303ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6304 6305fi 6306{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 6307$as_echo "$ac_cv_f77_compiler_gnu" >&6; } 6308ac_ext=$ac_save_ext 6309ac_test_FFLAGS=${FFLAGS+set} 6310ac_save_FFLAGS=$FFLAGS 6311FFLAGS= 6312{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 6313$as_echo_n "checking whether $F77 accepts -g... " >&6; } 6314if test "${ac_cv_prog_f77_g+set}" = set; then 6315 $as_echo_n "(cached) " >&6 6316else 6317 FFLAGS=-g 6318cat >conftest.$ac_ext <<_ACEOF 6319 program main 6320 6321 end 6322_ACEOF 6323rm -f conftest.$ac_objext 6324if { (ac_try="$ac_compile" 6325case "(($ac_try" in 6326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6327 *) ac_try_echo=$ac_try;; 6328esac 6329eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6330$as_echo "$ac_try_echo") >&5 6331 (eval "$ac_compile") 2>conftest.er1 6332 ac_status=$? 6333 grep -v '^ *+' conftest.er1 >conftest.err 6334 rm -f conftest.er1 6335 cat conftest.err >&5 6336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6337 (exit $ac_status); } && { 6338 test -z "$ac_f77_werror_flag" || 6339 test ! -s conftest.err 6340 } && test -s conftest.$ac_objext; then 6341 ac_cv_prog_f77_g=yes 6342else 6343 $as_echo "$as_me: failed program was:" >&5 6344sed 's/^/| /' conftest.$ac_ext >&5 6345 6346 ac_cv_prog_f77_g=no 6347fi 6348 6349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6350 6351fi 6352{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6353$as_echo "$ac_cv_prog_f77_g" >&6; } 6354if test "$ac_test_FFLAGS" = set; then 6355 FFLAGS=$ac_save_FFLAGS 6356elif test $ac_cv_prog_f77_g = yes; then 6357 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6358 FFLAGS="-g -O2" 6359 else 6360 FFLAGS="-g" 6361 fi 6362else 6363 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6364 FFLAGS="-O2" 6365 else 6366 FFLAGS= 6367 fi 6368fi 6369 6370if test $ac_compiler_gnu = yes; then 6371 G77=yes 6372else 6373 G77= 6374fi 6375ac_ext=c 6376ac_cpp='$CPP $CPPFLAGS' 6377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6379ac_compiler_gnu=$ac_cv_c_compiler_gnu 6380 6381 6382 6383# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6384# find the maximum length of command line arguments 6385{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6386$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6387if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6388 $as_echo_n "(cached) " >&6 6389else 6390 i=0 6391 teststring="ABCD" 6392 6393 case $build_os in 6394 msdosdjgpp*) 6395 # On DJGPP, this test can blow up pretty badly due to problems in libc 6396 # (any single argument exceeding 2000 bytes causes a buffer overrun 6397 # during glob expansion). Even if it were fixed, the result of this 6398 # check would be larger than it should be. 6399 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6400 ;; 6401 6402 gnu*) 6403 # Under GNU Hurd, this test is not required because there is 6404 # no limit to the length of command line arguments. 6405 # Libtool will interpret -1 as no limit whatsoever 6406 lt_cv_sys_max_cmd_len=-1; 6407 ;; 6408 6409 cygwin* | mingw*) 6410 # On Win9x/ME, this test blows up -- it succeeds, but takes 6411 # about 5 minutes as the teststring grows exponentially. 6412 # Worse, since 9x/ME are not pre-emptively multitasking, 6413 # you end up with a "frozen" computer, even though with patience 6414 # the test eventually succeeds (with a max line length of 256k). 6415 # Instead, let's just punt: use the minimum linelength reported by 6416 # all of the supported platforms: 8192 (on NT/2K/XP). 6417 lt_cv_sys_max_cmd_len=8192; 6418 ;; 6419 6420 amigaos*) 6421 # On AmigaOS with pdksh, this test takes hours, literally. 6422 # So we just punt and use a minimum line length of 8192. 6423 lt_cv_sys_max_cmd_len=8192; 6424 ;; 6425 6426 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6427 # This has been around since 386BSD, at least. Likely further. 6428 if test -x /sbin/sysctl; then 6429 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6430 elif test -x /usr/sbin/sysctl; then 6431 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6432 else 6433 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6434 fi 6435 # And add a safety zone 6436 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6437 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6438 ;; 6439 6440 interix*) 6441 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6442 lt_cv_sys_max_cmd_len=196608 6443 ;; 6444 6445 osf*) 6446 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6447 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6448 # nice to cause kernel panics so lets avoid the loop below. 6449 # First set a reasonable default. 6450 lt_cv_sys_max_cmd_len=16384 6451 # 6452 if test -x /sbin/sysconfig; then 6453 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6454 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6455 esac 6456 fi 6457 ;; 6458 sco3.2v5*) 6459 lt_cv_sys_max_cmd_len=102400 6460 ;; 6461 sysv5* | sco5v6* | sysv4.2uw2*) 6462 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6463 if test -n "$kargmax"; then 6464 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6465 else 6466 lt_cv_sys_max_cmd_len=32768 6467 fi 6468 ;; 6469 *) 6470 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6471 if test -n "$lt_cv_sys_max_cmd_len"; then 6472 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6473 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6474 else 6475 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6476 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6477 = "XX$teststring") >/dev/null 2>&1 && 6478 new_result=`expr "X$teststring" : ".*" 2>&1` && 6479 lt_cv_sys_max_cmd_len=$new_result && 6480 test $i != 17 # 1/2 MB should be enough 6481 do 6482 i=`expr $i + 1` 6483 teststring=$teststring$teststring 6484 done 6485 teststring= 6486 # Add a significant safety factor because C++ compilers can tack on massive 6487 # amounts of additional arguments before passing them to the linker. 6488 # It appears as though 1/2 is a usable value. 6489 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6490 fi 6491 ;; 6492 esac 6493 6494fi 6495 6496if test -n $lt_cv_sys_max_cmd_len ; then 6497 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6498$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6499else 6500 { $as_echo "$as_me:$LINENO: result: none" >&5 6501$as_echo "none" >&6; } 6502fi 6503 6504 6505 6506 6507 6508# Check for command to grab the raw symbol name followed by C symbol from nm. 6509{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6510$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6511if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6512 $as_echo_n "(cached) " >&6 6513else 6514 6515# These are sane defaults that work on at least a few old systems. 6516# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6517 6518# Character class describing NM global symbol codes. 6519symcode='[BCDEGRST]' 6520 6521# Regexp to match symbols that can be accessed directly from C. 6522sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6523 6524# Transform an extracted symbol line into a proper C declaration 6525lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6526 6527# Transform an extracted symbol line into symbol name and symbol address 6528lt_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'" 6529 6530# Define system-specific variables. 6531case $host_os in 6532aix*) 6533 symcode='[BCDT]' 6534 ;; 6535cygwin* | mingw* | pw32*) 6536 symcode='[ABCDGISTW]' 6537 ;; 6538hpux*) # Its linker distinguishes data from code symbols 6539 if test "$host_cpu" = ia64; then 6540 symcode='[ABCDEGRST]' 6541 fi 6542 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6543 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'" 6544 ;; 6545linux* | k*bsd*-gnu) 6546 if test "$host_cpu" = ia64; then 6547 symcode='[ABCDGIRSTW]' 6548 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6549 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'" 6550 fi 6551 ;; 6552irix* | nonstopux*) 6553 symcode='[BCDEGRST]' 6554 ;; 6555osf*) 6556 symcode='[BCDEGQRST]' 6557 ;; 6558solaris*) 6559 symcode='[BDRT]' 6560 ;; 6561sco3.2v5*) 6562 symcode='[DT]' 6563 ;; 6564sysv4.2uw2*) 6565 symcode='[DT]' 6566 ;; 6567sysv5* | sco5v6* | unixware* | OpenUNIX*) 6568 symcode='[ABDT]' 6569 ;; 6570sysv4) 6571 symcode='[DFNSTU]' 6572 ;; 6573esac 6574 6575# Handle CRLF in mingw tool chain 6576opt_cr= 6577case $build_os in 6578mingw*) 6579 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6580 ;; 6581esac 6582 6583# If we're using GNU nm, then use its standard symbol codes. 6584case `$NM -V 2>&1` in 6585*GNU* | *'with BFD'*) 6586 symcode='[ABCDGIRSTW]' ;; 6587esac 6588 6589# Try without a prefix undercore, then with it. 6590for ac_symprfx in "" "_"; do 6591 6592 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6593 symxfrm="\\1 $ac_symprfx\\2 \\2" 6594 6595 # Write the raw and C identifiers. 6596 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6597 6598 # Check to see that the pipe works correctly. 6599 pipe_works=no 6600 6601 rm -f conftest* 6602 cat > conftest.$ac_ext <<EOF 6603#ifdef __cplusplus 6604extern "C" { 6605#endif 6606char nm_test_var; 6607void nm_test_func(){} 6608#ifdef __cplusplus 6609} 6610#endif 6611int main(){nm_test_var='a';nm_test_func();return(0);} 6612EOF 6613 6614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6615 (eval $ac_compile) 2>&5 6616 ac_status=$? 6617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6618 (exit $ac_status); }; then 6619 # Now try to grab the symbols. 6620 nlist=conftest.nm 6621 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6622 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6623 ac_status=$? 6624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6625 (exit $ac_status); } && test -s "$nlist"; then 6626 # Try sorting and uniquifying the output. 6627 if sort "$nlist" | uniq > "$nlist"T; then 6628 mv -f "$nlist"T "$nlist" 6629 else 6630 rm -f "$nlist"T 6631 fi 6632 6633 # Make sure that we snagged all the symbols we need. 6634 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6635 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6636 cat <<EOF > conftest.$ac_ext 6637#ifdef __cplusplus 6638extern "C" { 6639#endif 6640 6641EOF 6642 # Now generate the symbol file. 6643 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6644 6645 cat <<EOF >> conftest.$ac_ext 6646#if defined (__STDC__) && __STDC__ 6647# define lt_ptr_t void * 6648#else 6649# define lt_ptr_t char * 6650# define const 6651#endif 6652 6653/* The mapping between symbol names and symbols. */ 6654const struct { 6655 const char *name; 6656 lt_ptr_t address; 6657} 6658lt_preloaded_symbols[] = 6659{ 6660EOF 6661 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6662 cat <<\EOF >> conftest.$ac_ext 6663 {0, (lt_ptr_t) 0} 6664}; 6665 6666#ifdef __cplusplus 6667} 6668#endif 6669EOF 6670 # Now try linking the two files. 6671 mv conftest.$ac_objext conftstm.$ac_objext 6672 lt_save_LIBS="$LIBS" 6673 lt_save_CFLAGS="$CFLAGS" 6674 LIBS="conftstm.$ac_objext" 6675 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6677 (eval $ac_link) 2>&5 6678 ac_status=$? 6679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6680 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6681 pipe_works=yes 6682 fi 6683 LIBS="$lt_save_LIBS" 6684 CFLAGS="$lt_save_CFLAGS" 6685 else 6686 echo "cannot find nm_test_func in $nlist" >&5 6687 fi 6688 else 6689 echo "cannot find nm_test_var in $nlist" >&5 6690 fi 6691 else 6692 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6693 fi 6694 else 6695 echo "$progname: failed program was:" >&5 6696 cat conftest.$ac_ext >&5 6697 fi 6698 rm -rf conftest* conftst* 6699 6700 # Do not use the global_symbol_pipe unless it works. 6701 if test "$pipe_works" = yes; then 6702 break 6703 else 6704 lt_cv_sys_global_symbol_pipe= 6705 fi 6706done 6707 6708fi 6709 6710if test -z "$lt_cv_sys_global_symbol_pipe"; then 6711 lt_cv_sys_global_symbol_to_cdecl= 6712fi 6713if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6714 { $as_echo "$as_me:$LINENO: result: failed" >&5 6715$as_echo "failed" >&6; } 6716else 6717 { $as_echo "$as_me:$LINENO: result: ok" >&5 6718$as_echo "ok" >&6; } 6719fi 6720 6721{ $as_echo "$as_me:$LINENO: checking for objdir" >&5 6722$as_echo_n "checking for objdir... " >&6; } 6723if test "${lt_cv_objdir+set}" = set; then 6724 $as_echo_n "(cached) " >&6 6725else 6726 rm -f .libs 2>/dev/null 6727mkdir .libs 2>/dev/null 6728if test -d .libs; then 6729 lt_cv_objdir=.libs 6730else 6731 # MS-DOS does not allow filenames that begin with a dot. 6732 lt_cv_objdir=_libs 6733fi 6734rmdir .libs 2>/dev/null 6735fi 6736{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6737$as_echo "$lt_cv_objdir" >&6; } 6738objdir=$lt_cv_objdir 6739 6740 6741 6742 6743 6744case $host_os in 6745aix3*) 6746 # AIX sometimes has problems with the GCC collect2 program. For some 6747 # reason, if we set the COLLECT_NAMES environment variable, the problems 6748 # vanish in a puff of smoke. 6749 if test "X${COLLECT_NAMES+set}" != Xset; then 6750 COLLECT_NAMES= 6751 export COLLECT_NAMES 6752 fi 6753 ;; 6754esac 6755 6756# Sed substitution that helps us do robust quoting. It backslashifies 6757# metacharacters that are still active within double-quoted strings. 6758Xsed='sed -e 1s/^X//' 6759sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6760 6761# Same as above, but do not quote variable references. 6762double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6763 6764# Sed substitution to delay expansion of an escaped shell variable in a 6765# double_quote_subst'ed string. 6766delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6767 6768# Sed substitution to avoid accidental globbing in evaled expressions 6769no_glob_subst='s/\*/\\\*/g' 6770 6771# Constants: 6772rm="rm -f" 6773 6774# Global variables: 6775default_ofile=libtool 6776can_build_shared=yes 6777 6778# All known linkers require a `.a' archive for static linking (except MSVC, 6779# which needs '.lib'). 6780libext=a 6781ltmain="$ac_aux_dir/ltmain.sh" 6782ofile="$default_ofile" 6783with_gnu_ld="$lt_cv_prog_gnu_ld" 6784 6785if test -n "$ac_tool_prefix"; then 6786 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6787set dummy ${ac_tool_prefix}ar; ac_word=$2 6788{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6789$as_echo_n "checking for $ac_word... " >&6; } 6790if test "${ac_cv_prog_AR+set}" = set; then 6791 $as_echo_n "(cached) " >&6 6792else 6793 if test -n "$AR"; then 6794 ac_cv_prog_AR="$AR" # Let the user override the test. 6795else 6796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6797for as_dir in $PATH 6798do 6799 IFS=$as_save_IFS 6800 test -z "$as_dir" && as_dir=. 6801 for ac_exec_ext in '' $ac_executable_extensions; do 6802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6803 ac_cv_prog_AR="${ac_tool_prefix}ar" 6804 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6805 break 2 6806 fi 6807done 6808done 6809IFS=$as_save_IFS 6810 6811fi 6812fi 6813AR=$ac_cv_prog_AR 6814if test -n "$AR"; then 6815 { $as_echo "$as_me:$LINENO: result: $AR" >&5 6816$as_echo "$AR" >&6; } 6817else 6818 { $as_echo "$as_me:$LINENO: result: no" >&5 6819$as_echo "no" >&6; } 6820fi 6821 6822 6823fi 6824if test -z "$ac_cv_prog_AR"; then 6825 ac_ct_AR=$AR 6826 # Extract the first word of "ar", so it can be a program name with args. 6827set dummy ar; ac_word=$2 6828{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6829$as_echo_n "checking for $ac_word... " >&6; } 6830if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6831 $as_echo_n "(cached) " >&6 6832else 6833 if test -n "$ac_ct_AR"; then 6834 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6835else 6836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6837for as_dir in $PATH 6838do 6839 IFS=$as_save_IFS 6840 test -z "$as_dir" && as_dir=. 6841 for ac_exec_ext in '' $ac_executable_extensions; do 6842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6843 ac_cv_prog_ac_ct_AR="ar" 6844 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6845 break 2 6846 fi 6847done 6848done 6849IFS=$as_save_IFS 6850 6851fi 6852fi 6853ac_ct_AR=$ac_cv_prog_ac_ct_AR 6854if test -n "$ac_ct_AR"; then 6855 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6856$as_echo "$ac_ct_AR" >&6; } 6857else 6858 { $as_echo "$as_me:$LINENO: result: no" >&5 6859$as_echo "no" >&6; } 6860fi 6861 6862 if test "x$ac_ct_AR" = x; then 6863 AR="false" 6864 else 6865 case $cross_compiling:$ac_tool_warned in 6866yes:) 6867{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6868$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6869ac_tool_warned=yes ;; 6870esac 6871 AR=$ac_ct_AR 6872 fi 6873else 6874 AR="$ac_cv_prog_AR" 6875fi 6876 6877if test -n "$ac_tool_prefix"; then 6878 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6879set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6880{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6881$as_echo_n "checking for $ac_word... " >&6; } 6882if test "${ac_cv_prog_RANLIB+set}" = set; then 6883 $as_echo_n "(cached) " >&6 6884else 6885 if test -n "$RANLIB"; then 6886 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6887else 6888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6889for as_dir in $PATH 6890do 6891 IFS=$as_save_IFS 6892 test -z "$as_dir" && as_dir=. 6893 for ac_exec_ext in '' $ac_executable_extensions; do 6894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6895 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6896 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6897 break 2 6898 fi 6899done 6900done 6901IFS=$as_save_IFS 6902 6903fi 6904fi 6905RANLIB=$ac_cv_prog_RANLIB 6906if test -n "$RANLIB"; then 6907 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 6908$as_echo "$RANLIB" >&6; } 6909else 6910 { $as_echo "$as_me:$LINENO: result: no" >&5 6911$as_echo "no" >&6; } 6912fi 6913 6914 6915fi 6916if test -z "$ac_cv_prog_RANLIB"; then 6917 ac_ct_RANLIB=$RANLIB 6918 # Extract the first word of "ranlib", so it can be a program name with args. 6919set dummy ranlib; ac_word=$2 6920{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6921$as_echo_n "checking for $ac_word... " >&6; } 6922if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6923 $as_echo_n "(cached) " >&6 6924else 6925 if test -n "$ac_ct_RANLIB"; then 6926 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6927else 6928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6929for as_dir in $PATH 6930do 6931 IFS=$as_save_IFS 6932 test -z "$as_dir" && as_dir=. 6933 for ac_exec_ext in '' $ac_executable_extensions; do 6934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6935 ac_cv_prog_ac_ct_RANLIB="ranlib" 6936 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6937 break 2 6938 fi 6939done 6940done 6941IFS=$as_save_IFS 6942 6943fi 6944fi 6945ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6946if test -n "$ac_ct_RANLIB"; then 6947 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6948$as_echo "$ac_ct_RANLIB" >&6; } 6949else 6950 { $as_echo "$as_me:$LINENO: result: no" >&5 6951$as_echo "no" >&6; } 6952fi 6953 6954 if test "x$ac_ct_RANLIB" = x; then 6955 RANLIB=":" 6956 else 6957 case $cross_compiling:$ac_tool_warned in 6958yes:) 6959{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6960$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6961ac_tool_warned=yes ;; 6962esac 6963 RANLIB=$ac_ct_RANLIB 6964 fi 6965else 6966 RANLIB="$ac_cv_prog_RANLIB" 6967fi 6968 6969if test -n "$ac_tool_prefix"; then 6970 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6971set dummy ${ac_tool_prefix}strip; ac_word=$2 6972{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6973$as_echo_n "checking for $ac_word... " >&6; } 6974if test "${ac_cv_prog_STRIP+set}" = set; then 6975 $as_echo_n "(cached) " >&6 6976else 6977 if test -n "$STRIP"; then 6978 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6979else 6980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6981for as_dir in $PATH 6982do 6983 IFS=$as_save_IFS 6984 test -z "$as_dir" && as_dir=. 6985 for ac_exec_ext in '' $ac_executable_extensions; do 6986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6987 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6988 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6989 break 2 6990 fi 6991done 6992done 6993IFS=$as_save_IFS 6994 6995fi 6996fi 6997STRIP=$ac_cv_prog_STRIP 6998if test -n "$STRIP"; then 6999 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 7000$as_echo "$STRIP" >&6; } 7001else 7002 { $as_echo "$as_me:$LINENO: result: no" >&5 7003$as_echo "no" >&6; } 7004fi 7005 7006 7007fi 7008if test -z "$ac_cv_prog_STRIP"; then 7009 ac_ct_STRIP=$STRIP 7010 # Extract the first word of "strip", so it can be a program name with args. 7011set dummy strip; ac_word=$2 7012{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7013$as_echo_n "checking for $ac_word... " >&6; } 7014if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 7015 $as_echo_n "(cached) " >&6 7016else 7017 if test -n "$ac_ct_STRIP"; then 7018 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7019else 7020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7021for as_dir in $PATH 7022do 7023 IFS=$as_save_IFS 7024 test -z "$as_dir" && as_dir=. 7025 for ac_exec_ext in '' $ac_executable_extensions; do 7026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7027 ac_cv_prog_ac_ct_STRIP="strip" 7028 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7029 break 2 7030 fi 7031done 7032done 7033IFS=$as_save_IFS 7034 7035fi 7036fi 7037ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7038if test -n "$ac_ct_STRIP"; then 7039 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 7040$as_echo "$ac_ct_STRIP" >&6; } 7041else 7042 { $as_echo "$as_me:$LINENO: result: no" >&5 7043$as_echo "no" >&6; } 7044fi 7045 7046 if test "x$ac_ct_STRIP" = x; then 7047 STRIP=":" 7048 else 7049 case $cross_compiling:$ac_tool_warned in 7050yes:) 7051{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7052$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7053ac_tool_warned=yes ;; 7054esac 7055 STRIP=$ac_ct_STRIP 7056 fi 7057else 7058 STRIP="$ac_cv_prog_STRIP" 7059fi 7060 7061 7062old_CC="$CC" 7063old_CFLAGS="$CFLAGS" 7064 7065# Set sane defaults for various variables 7066test -z "$AR" && AR=ar 7067test -z "$AR_FLAGS" && AR_FLAGS=cru 7068test -z "$AS" && AS=as 7069test -z "$CC" && CC=cc 7070test -z "$LTCC" && LTCC=$CC 7071test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7072test -z "$DLLTOOL" && DLLTOOL=dlltool 7073test -z "$LD" && LD=ld 7074test -z "$LN_S" && LN_S="ln -s" 7075test -z "$MAGIC_CMD" && MAGIC_CMD=file 7076test -z "$NM" && NM=nm 7077test -z "$SED" && SED=sed 7078test -z "$OBJDUMP" && OBJDUMP=objdump 7079test -z "$RANLIB" && RANLIB=: 7080test -z "$STRIP" && STRIP=: 7081test -z "$ac_objext" && ac_objext=o 7082 7083# Determine commands to create old-style static archives. 7084old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7085old_postinstall_cmds='chmod 644 $oldlib' 7086old_postuninstall_cmds= 7087 7088if test -n "$RANLIB"; then 7089 case $host_os in 7090 openbsd*) 7091 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 7092 ;; 7093 *) 7094 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 7095 ;; 7096 esac 7097 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 7098fi 7099 7100for cc_temp in $compiler""; do 7101 case $cc_temp in 7102 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7103 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7104 \-*) ;; 7105 *) break;; 7106 esac 7107done 7108cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7109 7110 7111# Only perform the check for file, if the check method requires it 7112case $deplibs_check_method in 7113file_magic*) 7114 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7115 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7116$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7117if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7118 $as_echo_n "(cached) " >&6 7119else 7120 case $MAGIC_CMD in 7121[\\/*] | ?:[\\/]*) 7122 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7123 ;; 7124*) 7125 lt_save_MAGIC_CMD="$MAGIC_CMD" 7126 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7127 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7128 for ac_dir in $ac_dummy; do 7129 IFS="$lt_save_ifs" 7130 test -z "$ac_dir" && ac_dir=. 7131 if test -f $ac_dir/${ac_tool_prefix}file; then 7132 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7133 if test -n "$file_magic_test_file"; then 7134 case $deplibs_check_method in 7135 "file_magic "*) 7136 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7137 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7138 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7139 $EGREP "$file_magic_regex" > /dev/null; then 7140 : 7141 else 7142 cat <<EOF 1>&2 7143 7144*** Warning: the command libtool uses to detect shared libraries, 7145*** $file_magic_cmd, produces output that libtool cannot recognize. 7146*** The result is that libtool may fail to recognize shared libraries 7147*** as such. This will affect the creation of libtool libraries that 7148*** depend on shared libraries, but programs linked with such libtool 7149*** libraries will work regardless of this problem. Nevertheless, you 7150*** may want to report the problem to your system manager and/or to 7151*** bug-libtool@gnu.org 7152 7153EOF 7154 fi ;; 7155 esac 7156 fi 7157 break 7158 fi 7159 done 7160 IFS="$lt_save_ifs" 7161 MAGIC_CMD="$lt_save_MAGIC_CMD" 7162 ;; 7163esac 7164fi 7165 7166MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7167if test -n "$MAGIC_CMD"; then 7168 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7169$as_echo "$MAGIC_CMD" >&6; } 7170else 7171 { $as_echo "$as_me:$LINENO: result: no" >&5 7172$as_echo "no" >&6; } 7173fi 7174 7175if test -z "$lt_cv_path_MAGIC_CMD"; then 7176 if test -n "$ac_tool_prefix"; then 7177 { $as_echo "$as_me:$LINENO: checking for file" >&5 7178$as_echo_n "checking for file... " >&6; } 7179if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7180 $as_echo_n "(cached) " >&6 7181else 7182 case $MAGIC_CMD in 7183[\\/*] | ?:[\\/]*) 7184 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7185 ;; 7186*) 7187 lt_save_MAGIC_CMD="$MAGIC_CMD" 7188 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7189 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7190 for ac_dir in $ac_dummy; do 7191 IFS="$lt_save_ifs" 7192 test -z "$ac_dir" && ac_dir=. 7193 if test -f $ac_dir/file; then 7194 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7195 if test -n "$file_magic_test_file"; then 7196 case $deplibs_check_method in 7197 "file_magic "*) 7198 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7199 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7200 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7201 $EGREP "$file_magic_regex" > /dev/null; then 7202 : 7203 else 7204 cat <<EOF 1>&2 7205 7206*** Warning: the command libtool uses to detect shared libraries, 7207*** $file_magic_cmd, produces output that libtool cannot recognize. 7208*** The result is that libtool may fail to recognize shared libraries 7209*** as such. This will affect the creation of libtool libraries that 7210*** depend on shared libraries, but programs linked with such libtool 7211*** libraries will work regardless of this problem. Nevertheless, you 7212*** may want to report the problem to your system manager and/or to 7213*** bug-libtool@gnu.org 7214 7215EOF 7216 fi ;; 7217 esac 7218 fi 7219 break 7220 fi 7221 done 7222 IFS="$lt_save_ifs" 7223 MAGIC_CMD="$lt_save_MAGIC_CMD" 7224 ;; 7225esac 7226fi 7227 7228MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7229if test -n "$MAGIC_CMD"; then 7230 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7231$as_echo "$MAGIC_CMD" >&6; } 7232else 7233 { $as_echo "$as_me:$LINENO: result: no" >&5 7234$as_echo "no" >&6; } 7235fi 7236 7237 else 7238 MAGIC_CMD=: 7239 fi 7240fi 7241 7242 fi 7243 ;; 7244esac 7245 7246 7247 case $host_os in 7248 rhapsody* | darwin*) 7249 if test -n "$ac_tool_prefix"; then 7250 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7251set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7252{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7253$as_echo_n "checking for $ac_word... " >&6; } 7254if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 7255 $as_echo_n "(cached) " >&6 7256else 7257 if test -n "$DSYMUTIL"; then 7258 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7259else 7260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7261for as_dir in $PATH 7262do 7263 IFS=$as_save_IFS 7264 test -z "$as_dir" && as_dir=. 7265 for ac_exec_ext in '' $ac_executable_extensions; do 7266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7267 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7268 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7269 break 2 7270 fi 7271done 7272done 7273IFS=$as_save_IFS 7274 7275fi 7276fi 7277DSYMUTIL=$ac_cv_prog_DSYMUTIL 7278if test -n "$DSYMUTIL"; then 7279 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 7280$as_echo "$DSYMUTIL" >&6; } 7281else 7282 { $as_echo "$as_me:$LINENO: result: no" >&5 7283$as_echo "no" >&6; } 7284fi 7285 7286 7287fi 7288if test -z "$ac_cv_prog_DSYMUTIL"; then 7289 ac_ct_DSYMUTIL=$DSYMUTIL 7290 # Extract the first word of "dsymutil", so it can be a program name with args. 7291set dummy dsymutil; ac_word=$2 7292{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7293$as_echo_n "checking for $ac_word... " >&6; } 7294if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 7295 $as_echo_n "(cached) " >&6 7296else 7297 if test -n "$ac_ct_DSYMUTIL"; then 7298 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7299else 7300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7301for as_dir in $PATH 7302do 7303 IFS=$as_save_IFS 7304 test -z "$as_dir" && as_dir=. 7305 for ac_exec_ext in '' $ac_executable_extensions; do 7306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7307 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7308 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7309 break 2 7310 fi 7311done 7312done 7313IFS=$as_save_IFS 7314 7315fi 7316fi 7317ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7318if test -n "$ac_ct_DSYMUTIL"; then 7319 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 7320$as_echo "$ac_ct_DSYMUTIL" >&6; } 7321else 7322 { $as_echo "$as_me:$LINENO: result: no" >&5 7323$as_echo "no" >&6; } 7324fi 7325 7326 if test "x$ac_ct_DSYMUTIL" = x; then 7327 DSYMUTIL=":" 7328 else 7329 case $cross_compiling:$ac_tool_warned in 7330yes:) 7331{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7332$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7333ac_tool_warned=yes ;; 7334esac 7335 DSYMUTIL=$ac_ct_DSYMUTIL 7336 fi 7337else 7338 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7339fi 7340 7341 if test -n "$ac_tool_prefix"; then 7342 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7343set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7344{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7345$as_echo_n "checking for $ac_word... " >&6; } 7346if test "${ac_cv_prog_NMEDIT+set}" = set; then 7347 $as_echo_n "(cached) " >&6 7348else 7349 if test -n "$NMEDIT"; then 7350 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7351else 7352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7353for as_dir in $PATH 7354do 7355 IFS=$as_save_IFS 7356 test -z "$as_dir" && as_dir=. 7357 for ac_exec_ext in '' $ac_executable_extensions; do 7358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7359 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7360 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7361 break 2 7362 fi 7363done 7364done 7365IFS=$as_save_IFS 7366 7367fi 7368fi 7369NMEDIT=$ac_cv_prog_NMEDIT 7370if test -n "$NMEDIT"; then 7371 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 7372$as_echo "$NMEDIT" >&6; } 7373else 7374 { $as_echo "$as_me:$LINENO: result: no" >&5 7375$as_echo "no" >&6; } 7376fi 7377 7378 7379fi 7380if test -z "$ac_cv_prog_NMEDIT"; then 7381 ac_ct_NMEDIT=$NMEDIT 7382 # Extract the first word of "nmedit", so it can be a program name with args. 7383set dummy nmedit; ac_word=$2 7384{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7385$as_echo_n "checking for $ac_word... " >&6; } 7386if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 7387 $as_echo_n "(cached) " >&6 7388else 7389 if test -n "$ac_ct_NMEDIT"; then 7390 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7391else 7392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7393for as_dir in $PATH 7394do 7395 IFS=$as_save_IFS 7396 test -z "$as_dir" && as_dir=. 7397 for ac_exec_ext in '' $ac_executable_extensions; do 7398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7399 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7400 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7401 break 2 7402 fi 7403done 7404done 7405IFS=$as_save_IFS 7406 7407fi 7408fi 7409ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7410if test -n "$ac_ct_NMEDIT"; then 7411 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 7412$as_echo "$ac_ct_NMEDIT" >&6; } 7413else 7414 { $as_echo "$as_me:$LINENO: result: no" >&5 7415$as_echo "no" >&6; } 7416fi 7417 7418 if test "x$ac_ct_NMEDIT" = x; then 7419 NMEDIT=":" 7420 else 7421 case $cross_compiling:$ac_tool_warned in 7422yes:) 7423{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7424$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7425ac_tool_warned=yes ;; 7426esac 7427 NMEDIT=$ac_ct_NMEDIT 7428 fi 7429else 7430 NMEDIT="$ac_cv_prog_NMEDIT" 7431fi 7432 7433 7434 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 7435$as_echo_n "checking for -single_module linker flag... " >&6; } 7436if test "${lt_cv_apple_cc_single_mod+set}" = set; then 7437 $as_echo_n "(cached) " >&6 7438else 7439 lt_cv_apple_cc_single_mod=no 7440 if test -z "${LT_MULTI_MODULE}"; then 7441 # By default we will add the -single_module flag. You can override 7442 # by either setting the environment variable LT_MULTI_MODULE 7443 # non-empty at configure time, or by adding -multi_module to the 7444 # link flags. 7445 echo "int foo(void){return 1;}" > conftest.c 7446 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7447 -dynamiclib ${wl}-single_module conftest.c 7448 if test -f libconftest.dylib; then 7449 lt_cv_apple_cc_single_mod=yes 7450 rm -rf libconftest.dylib* 7451 fi 7452 rm conftest.c 7453 fi 7454fi 7455{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 7456$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7457 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 7458$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7459if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 7460 $as_echo_n "(cached) " >&6 7461else 7462 lt_cv_ld_exported_symbols_list=no 7463 save_LDFLAGS=$LDFLAGS 7464 echo "_main" > conftest.sym 7465 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7466 cat >conftest.$ac_ext <<_ACEOF 7467/* confdefs.h. */ 7468_ACEOF 7469cat confdefs.h >>conftest.$ac_ext 7470cat >>conftest.$ac_ext <<_ACEOF 7471/* end confdefs.h. */ 7472 7473int 7474main () 7475{ 7476 7477 ; 7478 return 0; 7479} 7480_ACEOF 7481rm -f conftest.$ac_objext conftest$ac_exeext 7482if { (ac_try="$ac_link" 7483case "(($ac_try" in 7484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7485 *) ac_try_echo=$ac_try;; 7486esac 7487eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7488$as_echo "$ac_try_echo") >&5 7489 (eval "$ac_link") 2>conftest.er1 7490 ac_status=$? 7491 grep -v '^ *+' conftest.er1 >conftest.err 7492 rm -f conftest.er1 7493 cat conftest.err >&5 7494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7495 (exit $ac_status); } && { 7496 test -z "$ac_c_werror_flag" || 7497 test ! -s conftest.err 7498 } && test -s conftest$ac_exeext && { 7499 test "$cross_compiling" = yes || 7500 $as_test_x conftest$ac_exeext 7501 }; then 7502 lt_cv_ld_exported_symbols_list=yes 7503else 7504 $as_echo "$as_me: failed program was:" >&5 7505sed 's/^/| /' conftest.$ac_ext >&5 7506 7507 lt_cv_ld_exported_symbols_list=no 7508fi 7509 7510rm -rf conftest.dSYM 7511rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7512 conftest$ac_exeext conftest.$ac_ext 7513 LDFLAGS="$save_LDFLAGS" 7514 7515fi 7516{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 7517$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7518 case $host_os in 7519 rhapsody* | darwin1.[0123]) 7520 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7521 darwin1.*) 7522 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7523 darwin*) 7524 # if running on 10.5 or later, the deployment target defaults 7525 # to the OS version, if on x86, and 10.4, the deployment 7526 # target defaults to 10.4. Don't you love it? 7527 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7528 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7529 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7530 10.[012]*) 7531 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7532 10.*) 7533 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7534 esac 7535 ;; 7536 esac 7537 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7538 _lt_dar_single_mod='$single_module' 7539 fi 7540 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7541 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7542 else 7543 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}" 7544 fi 7545 if test "$DSYMUTIL" != ":"; then 7546 _lt_dsymutil="~$DSYMUTIL \$lib || :" 7547 else 7548 _lt_dsymutil= 7549 fi 7550 ;; 7551 esac 7552 7553 7554enable_dlopen=no 7555enable_win32_dll=no 7556 7557# Check whether --enable-libtool-lock was given. 7558if test "${enable_libtool_lock+set}" = set; then 7559 enableval=$enable_libtool_lock; 7560fi 7561 7562test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7563 7564 7565# Check whether --with-pic was given. 7566if test "${with_pic+set}" = set; then 7567 withval=$with_pic; pic_mode="$withval" 7568else 7569 pic_mode=default 7570fi 7571 7572test -z "$pic_mode" && pic_mode=default 7573 7574# Use C for the default configuration in the libtool script 7575tagname= 7576lt_save_CC="$CC" 7577ac_ext=c 7578ac_cpp='$CPP $CPPFLAGS' 7579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7581ac_compiler_gnu=$ac_cv_c_compiler_gnu 7582 7583 7584# Source file extension for C test sources. 7585ac_ext=c 7586 7587# Object file extension for compiled C test sources. 7588objext=o 7589objext=$objext 7590 7591# Code to be used in simple compile tests 7592lt_simple_compile_test_code="int some_variable = 0;" 7593 7594# Code to be used in simple link tests 7595lt_simple_link_test_code='int main(){return(0);}' 7596 7597 7598# If no C compiler was specified, use CC. 7599LTCC=${LTCC-"$CC"} 7600 7601# If no C compiler flags were specified, use CFLAGS. 7602LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7603 7604# Allow CC to be a program name with arguments. 7605compiler=$CC 7606 7607 7608# save warnings/boilerplate of simple test code 7609ac_outfile=conftest.$ac_objext 7610echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7611eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7612_lt_compiler_boilerplate=`cat conftest.err` 7613$rm conftest* 7614 7615ac_outfile=conftest.$ac_objext 7616echo "$lt_simple_link_test_code" >conftest.$ac_ext 7617eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7618_lt_linker_boilerplate=`cat conftest.err` 7619$rm -r conftest* 7620 7621 7622 7623lt_prog_compiler_no_builtin_flag= 7624 7625if test "$GCC" = yes; then 7626 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7627 7628 7629{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7630$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7631if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7632 $as_echo_n "(cached) " >&6 7633else 7634 lt_cv_prog_compiler_rtti_exceptions=no 7635 ac_outfile=conftest.$ac_objext 7636 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7637 lt_compiler_flag="-fno-rtti -fno-exceptions" 7638 # Insert the option either (1) after the last *FLAGS variable, or 7639 # (2) before a word containing "conftest.", or (3) at the end. 7640 # Note that $ac_compile itself does not contain backslashes and begins 7641 # with a dollar sign (not a hyphen), so the echo should work correctly. 7642 # The option is referenced via a variable to avoid confusing sed. 7643 lt_compile=`echo "$ac_compile" | $SED \ 7644 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7645 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7646 -e 's:$: $lt_compiler_flag:'` 7647 (eval echo "\"\$as_me:7647: $lt_compile\"" >&5) 7648 (eval "$lt_compile" 2>conftest.err) 7649 ac_status=$? 7650 cat conftest.err >&5 7651 echo "$as_me:7651: \$? = $ac_status" >&5 7652 if (exit $ac_status) && test -s "$ac_outfile"; then 7653 # The compiler can only warn and ignore the option if not recognized 7654 # So say no if there are warnings other than the usual output. 7655 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7656 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7657 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7658 lt_cv_prog_compiler_rtti_exceptions=yes 7659 fi 7660 fi 7661 $rm conftest* 7662 7663fi 7664{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7665$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7666 7667if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7668 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7669else 7670 : 7671fi 7672 7673fi 7674 7675lt_prog_compiler_wl= 7676lt_prog_compiler_pic= 7677lt_prog_compiler_static= 7678 7679{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7680$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7681 7682 if test "$GCC" = yes; then 7683 lt_prog_compiler_wl='-Wl,' 7684 lt_prog_compiler_static='-static' 7685 7686 case $host_os in 7687 aix*) 7688 # All AIX code is PIC. 7689 if test "$host_cpu" = ia64; then 7690 # AIX 5 now supports IA64 processor 7691 lt_prog_compiler_static='-Bstatic' 7692 fi 7693 ;; 7694 7695 amigaos*) 7696 # FIXME: we need at least 68020 code to build shared libraries, but 7697 # adding the `-m68020' flag to GCC prevents building anything better, 7698 # like `-m68040'. 7699 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7700 ;; 7701 7702 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7703 # PIC is the default for these OSes. 7704 ;; 7705 7706 mingw* | cygwin* | pw32* | os2*) 7707 # This hack is so that the source file can tell whether it is being 7708 # built for inclusion in a dll (and should export symbols for example). 7709 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7710 # (--disable-auto-import) libraries 7711 lt_prog_compiler_pic='-DDLL_EXPORT' 7712 ;; 7713 7714 darwin* | rhapsody*) 7715 # PIC is the default on this platform 7716 # Common symbols not allowed in MH_DYLIB files 7717 lt_prog_compiler_pic='-fno-common' 7718 ;; 7719 7720 interix[3-9]*) 7721 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7722 # Instead, we relocate shared libraries at runtime. 7723 ;; 7724 7725 msdosdjgpp*) 7726 # Just because we use GCC doesn't mean we suddenly get shared libraries 7727 # on systems that don't support them. 7728 lt_prog_compiler_can_build_shared=no 7729 enable_shared=no 7730 ;; 7731 7732 sysv4*MP*) 7733 if test -d /usr/nec; then 7734 lt_prog_compiler_pic=-Kconform_pic 7735 fi 7736 ;; 7737 7738 hpux*) 7739 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7740 # not for PA HP-UX. 7741 case $host_cpu in 7742 hppa*64*|ia64*) 7743 # +Z the default 7744 ;; 7745 *) 7746 lt_prog_compiler_pic='-fPIC' 7747 ;; 7748 esac 7749 ;; 7750 7751 *) 7752 lt_prog_compiler_pic='-fPIC' 7753 ;; 7754 esac 7755 else 7756 # PORTME Check for flag to pass linker flags through the system compiler. 7757 case $host_os in 7758 aix*) 7759 lt_prog_compiler_wl='-Wl,' 7760 if test "$host_cpu" = ia64; then 7761 # AIX 5 now supports IA64 processor 7762 lt_prog_compiler_static='-Bstatic' 7763 else 7764 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7765 fi 7766 ;; 7767 darwin*) 7768 # PIC is the default on this platform 7769 # Common symbols not allowed in MH_DYLIB files 7770 case $cc_basename in 7771 xlc*) 7772 lt_prog_compiler_pic='-qnocommon' 7773 lt_prog_compiler_wl='-Wl,' 7774 ;; 7775 esac 7776 ;; 7777 7778 mingw* | cygwin* | pw32* | os2*) 7779 # This hack is so that the source file can tell whether it is being 7780 # built for inclusion in a dll (and should export symbols for example). 7781 lt_prog_compiler_pic='-DDLL_EXPORT' 7782 ;; 7783 7784 hpux9* | hpux10* | hpux11*) 7785 lt_prog_compiler_wl='-Wl,' 7786 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7787 # not for PA HP-UX. 7788 case $host_cpu in 7789 hppa*64*|ia64*) 7790 # +Z the default 7791 ;; 7792 *) 7793 lt_prog_compiler_pic='+Z' 7794 ;; 7795 esac 7796 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7797 lt_prog_compiler_static='${wl}-a ${wl}archive' 7798 ;; 7799 7800 irix5* | irix6* | nonstopux*) 7801 lt_prog_compiler_wl='-Wl,' 7802 # PIC (with -KPIC) is the default. 7803 lt_prog_compiler_static='-non_shared' 7804 ;; 7805 7806 newsos6) 7807 lt_prog_compiler_pic='-KPIC' 7808 lt_prog_compiler_static='-Bstatic' 7809 ;; 7810 7811 linux* | k*bsd*-gnu) 7812 case $cc_basename in 7813 icc* | ecc*) 7814 lt_prog_compiler_wl='-Wl,' 7815 lt_prog_compiler_pic='-KPIC' 7816 lt_prog_compiler_static='-static' 7817 ;; 7818 pgcc* | pgf77* | pgf90* | pgf95*) 7819 # Portland Group compilers (*not* the Pentium gcc compiler, 7820 # which looks to be a dead project) 7821 lt_prog_compiler_wl='-Wl,' 7822 lt_prog_compiler_pic='-fpic' 7823 lt_prog_compiler_static='-Bstatic' 7824 ;; 7825 ccc*) 7826 lt_prog_compiler_wl='-Wl,' 7827 # All Alpha code is PIC. 7828 lt_prog_compiler_static='-non_shared' 7829 ;; 7830 *) 7831 case `$CC -V 2>&1 | sed 5q` in 7832 *Sun\ C*) 7833 # Sun C 5.9 7834 lt_prog_compiler_pic='-KPIC' 7835 lt_prog_compiler_static='-Bstatic' 7836 lt_prog_compiler_wl='-Wl,' 7837 ;; 7838 *Sun\ F*) 7839 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7840 lt_prog_compiler_pic='-KPIC' 7841 lt_prog_compiler_static='-Bstatic' 7842 lt_prog_compiler_wl='' 7843 ;; 7844 esac 7845 ;; 7846 esac 7847 ;; 7848 7849 osf3* | osf4* | osf5*) 7850 lt_prog_compiler_wl='-Wl,' 7851 # All OSF/1 code is PIC. 7852 lt_prog_compiler_static='-non_shared' 7853 ;; 7854 7855 rdos*) 7856 lt_prog_compiler_static='-non_shared' 7857 ;; 7858 7859 solaris*) 7860 lt_prog_compiler_pic='-KPIC' 7861 lt_prog_compiler_static='-Bstatic' 7862 case $cc_basename in 7863 f77* | f90* | f95*) 7864 lt_prog_compiler_wl='-Qoption ld ';; 7865 *) 7866 lt_prog_compiler_wl='-Wl,';; 7867 esac 7868 ;; 7869 7870 sunos4*) 7871 lt_prog_compiler_wl='-Qoption ld ' 7872 lt_prog_compiler_pic='-PIC' 7873 lt_prog_compiler_static='-Bstatic' 7874 ;; 7875 7876 sysv4 | sysv4.2uw2* | sysv4.3*) 7877 lt_prog_compiler_wl='-Wl,' 7878 lt_prog_compiler_pic='-KPIC' 7879 lt_prog_compiler_static='-Bstatic' 7880 ;; 7881 7882 sysv4*MP*) 7883 if test -d /usr/nec ;then 7884 lt_prog_compiler_pic='-Kconform_pic' 7885 lt_prog_compiler_static='-Bstatic' 7886 fi 7887 ;; 7888 7889 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7890 lt_prog_compiler_wl='-Wl,' 7891 lt_prog_compiler_pic='-KPIC' 7892 lt_prog_compiler_static='-Bstatic' 7893 ;; 7894 7895 unicos*) 7896 lt_prog_compiler_wl='-Wl,' 7897 lt_prog_compiler_can_build_shared=no 7898 ;; 7899 7900 uts4*) 7901 lt_prog_compiler_pic='-pic' 7902 lt_prog_compiler_static='-Bstatic' 7903 ;; 7904 7905 *) 7906 lt_prog_compiler_can_build_shared=no 7907 ;; 7908 esac 7909 fi 7910 7911{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7912$as_echo "$lt_prog_compiler_pic" >&6; } 7913 7914# 7915# Check to make sure the PIC flag actually works. 7916# 7917if test -n "$lt_prog_compiler_pic"; then 7918 7919{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7920$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 7921if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 7922 $as_echo_n "(cached) " >&6 7923else 7924 lt_cv_prog_compiler_pic_works=no 7925 ac_outfile=conftest.$ac_objext 7926 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7927 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7928 # Insert the option either (1) after the last *FLAGS variable, or 7929 # (2) before a word containing "conftest.", or (3) at the end. 7930 # Note that $ac_compile itself does not contain backslashes and begins 7931 # with a dollar sign (not a hyphen), so the echo should work correctly. 7932 # The option is referenced via a variable to avoid confusing sed. 7933 lt_compile=`echo "$ac_compile" | $SED \ 7934 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7935 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7936 -e 's:$: $lt_compiler_flag:'` 7937 (eval echo "\"\$as_me:7937: $lt_compile\"" >&5) 7938 (eval "$lt_compile" 2>conftest.err) 7939 ac_status=$? 7940 cat conftest.err >&5 7941 echo "$as_me:7941: \$? = $ac_status" >&5 7942 if (exit $ac_status) && test -s "$ac_outfile"; then 7943 # The compiler can only warn and ignore the option if not recognized 7944 # So say no if there are warnings other than the usual output. 7945 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7946 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7947 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7948 lt_cv_prog_compiler_pic_works=yes 7949 fi 7950 fi 7951 $rm conftest* 7952 7953fi 7954{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 7955$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 7956 7957if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7958 case $lt_prog_compiler_pic in 7959 "" | " "*) ;; 7960 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7961 esac 7962else 7963 lt_prog_compiler_pic= 7964 lt_prog_compiler_can_build_shared=no 7965fi 7966 7967fi 7968case $host_os in 7969 # For platforms which do not support PIC, -DPIC is meaningless: 7970 *djgpp*) 7971 lt_prog_compiler_pic= 7972 ;; 7973 *) 7974 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7975 ;; 7976esac 7977 7978# 7979# Check to make sure the static flag actually works. 7980# 7981wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7982{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7983$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 7984if test "${lt_cv_prog_compiler_static_works+set}" = set; then 7985 $as_echo_n "(cached) " >&6 7986else 7987 lt_cv_prog_compiler_static_works=no 7988 save_LDFLAGS="$LDFLAGS" 7989 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7990 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7991 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7992 # The linker can only warn and ignore the option if not recognized 7993 # So say no if there are warnings 7994 if test -s conftest.err; then 7995 # Append any errors to the config.log. 7996 cat conftest.err 1>&5 7997 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7998 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7999 if diff conftest.exp conftest.er2 >/dev/null; then 8000 lt_cv_prog_compiler_static_works=yes 8001 fi 8002 else 8003 lt_cv_prog_compiler_static_works=yes 8004 fi 8005 fi 8006 $rm -r conftest* 8007 LDFLAGS="$save_LDFLAGS" 8008 8009fi 8010{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 8011$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8012 8013if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8014 : 8015else 8016 lt_prog_compiler_static= 8017fi 8018 8019 8020{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 8021$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8022if test "${lt_cv_prog_compiler_c_o+set}" = set; then 8023 $as_echo_n "(cached) " >&6 8024else 8025 lt_cv_prog_compiler_c_o=no 8026 $rm -r conftest 2>/dev/null 8027 mkdir conftest 8028 cd conftest 8029 mkdir out 8030 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8031 8032 lt_compiler_flag="-o out/conftest2.$ac_objext" 8033 # Insert the option either (1) after the last *FLAGS variable, or 8034 # (2) before a word containing "conftest.", or (3) at the end. 8035 # Note that $ac_compile itself does not contain backslashes and begins 8036 # with a dollar sign (not a hyphen), so the echo should work correctly. 8037 lt_compile=`echo "$ac_compile" | $SED \ 8038 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8039 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8040 -e 's:$: $lt_compiler_flag:'` 8041 (eval echo "\"\$as_me:8041: $lt_compile\"" >&5) 8042 (eval "$lt_compile" 2>out/conftest.err) 8043 ac_status=$? 8044 cat out/conftest.err >&5 8045 echo "$as_me:8045: \$? = $ac_status" >&5 8046 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8047 then 8048 # The compiler can only warn and ignore the option if not recognized 8049 # So say no if there are warnings 8050 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8051 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8052 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8053 lt_cv_prog_compiler_c_o=yes 8054 fi 8055 fi 8056 chmod u+w . 2>&5 8057 $rm conftest* 8058 # SGI C++ compiler will create directory out/ii_files/ for 8059 # template instantiation 8060 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 8061 $rm out/* && rmdir out 8062 cd .. 8063 rmdir conftest 8064 $rm conftest* 8065 8066fi 8067{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8068$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8069 8070 8071hard_links="nottested" 8072if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8073 # do not overwrite the value of need_locks provided by the user 8074 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 8075$as_echo_n "checking if we can lock with hard links... " >&6; } 8076 hard_links=yes 8077 $rm conftest* 8078 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8079 touch conftest.a 8080 ln conftest.a conftest.b 2>&5 || hard_links=no 8081 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8082 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 8083$as_echo "$hard_links" >&6; } 8084 if test "$hard_links" = no; then 8085 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8086$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8087 need_locks=warn 8088 fi 8089else 8090 need_locks=no 8091fi 8092 8093{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8094$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8095 8096 runpath_var= 8097 allow_undefined_flag= 8098 enable_shared_with_static_runtimes=no 8099 archive_cmds= 8100 archive_expsym_cmds= 8101 old_archive_From_new_cmds= 8102 old_archive_from_expsyms_cmds= 8103 export_dynamic_flag_spec= 8104 whole_archive_flag_spec= 8105 thread_safe_flag_spec= 8106 hardcode_libdir_flag_spec= 8107 hardcode_libdir_flag_spec_ld= 8108 hardcode_libdir_separator= 8109 hardcode_direct=no 8110 hardcode_minus_L=no 8111 hardcode_shlibpath_var=unsupported 8112 link_all_deplibs=unknown 8113 hardcode_automatic=no 8114 module_cmds= 8115 module_expsym_cmds= 8116 always_export_symbols=no 8117 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8118 # include_expsyms should be a list of space-separated symbols to be *always* 8119 # included in the symbol list 8120 include_expsyms= 8121 # exclude_expsyms can be an extended regexp of symbols to exclude 8122 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8123 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8124 # as well as any symbol that contains `d'. 8125 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8126 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8127 # platforms (ab)use it in PIC code, but their linkers get confused if 8128 # the symbol is explicitly referenced. Since portable code cannot 8129 # rely on this symbol name, it's probably fine to never include it in 8130 # preloaded symbol tables. 8131 # Exclude shared library initialization/finalization symbols. 8132 extract_expsyms_cmds= 8133 # Just being paranoid about ensuring that cc_basename is set. 8134 for cc_temp in $compiler""; do 8135 case $cc_temp in 8136 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8137 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8138 \-*) ;; 8139 *) break;; 8140 esac 8141done 8142cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8143 8144 case $host_os in 8145 cygwin* | mingw* | pw32*) 8146 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8147 # When not using gcc, we currently assume that we are using 8148 # Microsoft Visual C++. 8149 if test "$GCC" != yes; then 8150 with_gnu_ld=no 8151 fi 8152 ;; 8153 interix*) 8154 # we just hope/assume this is gcc and not c89 (= MSVC++) 8155 with_gnu_ld=yes 8156 ;; 8157 openbsd*) 8158 with_gnu_ld=no 8159 ;; 8160 esac 8161 8162 ld_shlibs=yes 8163 if test "$with_gnu_ld" = yes; then 8164 # If archive_cmds runs LD, not CC, wlarc should be empty 8165 wlarc='${wl}' 8166 8167 # Set some defaults for GNU ld with shared library support. These 8168 # are reset later if shared libraries are not supported. Putting them 8169 # here allows them to be overridden if necessary. 8170 runpath_var=LD_RUN_PATH 8171 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 8172 export_dynamic_flag_spec='${wl}--export-dynamic' 8173 # ancient GNU ld didn't support --whole-archive et. al. 8174 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 8175 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8176 else 8177 whole_archive_flag_spec= 8178 fi 8179 supports_anon_versioning=no 8180 case `$LD -v 2>/dev/null` in 8181 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8182 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8183 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8184 *\ 2.11.*) ;; # other 2.11 versions 8185 *) supports_anon_versioning=yes ;; 8186 esac 8187 8188 # See if GNU ld supports shared libraries. 8189 case $host_os in 8190 aix[3-9]*) 8191 # On AIX/PPC, the GNU linker is very broken 8192 if test "$host_cpu" != ia64; then 8193 ld_shlibs=no 8194 cat <<EOF 1>&2 8195 8196*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8197*** to be unable to reliably create shared libraries on AIX. 8198*** Therefore, libtool is disabling shared libraries support. If you 8199*** really care for shared libraries, you may want to modify your PATH 8200*** so that a non-GNU linker is found, and then restart. 8201 8202EOF 8203 fi 8204 ;; 8205 8206 amigaos*) 8207 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)' 8208 hardcode_libdir_flag_spec='-L$libdir' 8209 hardcode_minus_L=yes 8210 8211 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 8212 # that the semantics of dynamic libraries on AmigaOS, at least up 8213 # to version 4, is to share data among multiple programs linked 8214 # with the same dynamic library. Since this doesn't match the 8215 # behavior of shared libraries on other platforms, we can't use 8216 # them. 8217 ld_shlibs=no 8218 ;; 8219 8220 beos*) 8221 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8222 allow_undefined_flag=unsupported 8223 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8224 # support --undefined. This deserves some investigation. FIXME 8225 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8226 else 8227 ld_shlibs=no 8228 fi 8229 ;; 8230 8231 cygwin* | mingw* | pw32*) 8232 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8233 # as there is no search path for DLLs. 8234 hardcode_libdir_flag_spec='-L$libdir' 8235 allow_undefined_flag=unsupported 8236 always_export_symbols=no 8237 enable_shared_with_static_runtimes=yes 8238 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8239 8240 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 8241 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8242 # If the export-symbols file already is a .def file (1st line 8243 # is EXPORTS), use it as is; otherwise, prepend... 8244 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8245 cp $export_symbols $output_objdir/$soname.def; 8246 else 8247 echo EXPORTS > $output_objdir/$soname.def; 8248 cat $export_symbols >> $output_objdir/$soname.def; 8249 fi~ 8250 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8251 else 8252 ld_shlibs=no 8253 fi 8254 ;; 8255 8256 interix[3-9]*) 8257 hardcode_direct=no 8258 hardcode_shlibpath_var=no 8259 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8260 export_dynamic_flag_spec='${wl}-E' 8261 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8262 # Instead, shared libraries are loaded at an image base (0x10000000 by 8263 # default) and relocated if they conflict, which is a slow very memory 8264 # consuming and fragmenting process. To avoid this, we pick a random, 8265 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8266 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8267 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8268 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' 8269 ;; 8270 8271 gnu* | linux* | k*bsd*-gnu) 8272 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8273 tmp_addflag= 8274 case $cc_basename,$host_cpu in 8275 pgcc*) # Portland Group C compiler 8276 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' 8277 tmp_addflag=' $pic_flag' 8278 ;; 8279 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8280 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' 8281 tmp_addflag=' $pic_flag -Mnomain' ;; 8282 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8283 tmp_addflag=' -i_dynamic' ;; 8284 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8285 tmp_addflag=' -i_dynamic -nofor_main' ;; 8286 ifc* | ifort*) # Intel Fortran compiler 8287 tmp_addflag=' -nofor_main' ;; 8288 esac 8289 case `$CC -V 2>&1 | sed 5q` in 8290 *Sun\ C*) # Sun C 5.9 8291 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' 8292 tmp_sharedflag='-G' ;; 8293 *Sun\ F*) # Sun Fortran 8.3 8294 tmp_sharedflag='-G' ;; 8295 *) 8296 tmp_sharedflag='-shared' ;; 8297 esac 8298 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8299 8300 if test $supports_anon_versioning = yes; then 8301 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 8302 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8303 $echo "local: *; };" >> $output_objdir/$libname.ver~ 8304 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8305 fi 8306 else 8307 ld_shlibs=no 8308 fi 8309 ;; 8310 8311 netbsd*) 8312 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8313 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8314 wlarc= 8315 else 8316 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8317 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8318 fi 8319 ;; 8320 8321 solaris*) 8322 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 8323 ld_shlibs=no 8324 cat <<EOF 1>&2 8325 8326*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8327*** create shared libraries on Solaris systems. Therefore, libtool 8328*** is disabling shared libraries support. We urge you to upgrade GNU 8329*** binutils to release 2.9.1 or newer. Another option is to modify 8330*** your PATH or compiler configuration so that the native linker is 8331*** used, and then restart. 8332 8333EOF 8334 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8335 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8336 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8337 else 8338 ld_shlibs=no 8339 fi 8340 ;; 8341 8342 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8343 case `$LD -v 2>&1` in 8344 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8345 ld_shlibs=no 8346 cat <<_LT_EOF 1>&2 8347 8348*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8349*** reliably create shared libraries on SCO systems. Therefore, libtool 8350*** is disabling shared libraries support. We urge you to upgrade GNU 8351*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8352*** your PATH or compiler configuration so that the native linker is 8353*** used, and then restart. 8354 8355_LT_EOF 8356 ;; 8357 *) 8358 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8359 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 8360 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 8361 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 8362 else 8363 ld_shlibs=no 8364 fi 8365 ;; 8366 esac 8367 ;; 8368 8369 sunos4*) 8370 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8371 wlarc= 8372 hardcode_direct=yes 8373 hardcode_shlibpath_var=no 8374 ;; 8375 8376 *) 8377 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8378 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8379 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8380 else 8381 ld_shlibs=no 8382 fi 8383 ;; 8384 esac 8385 8386 if test "$ld_shlibs" = no; then 8387 runpath_var= 8388 hardcode_libdir_flag_spec= 8389 export_dynamic_flag_spec= 8390 whole_archive_flag_spec= 8391 fi 8392 else 8393 # PORTME fill in a description of your system's linker (not GNU ld) 8394 case $host_os in 8395 aix3*) 8396 allow_undefined_flag=unsupported 8397 always_export_symbols=yes 8398 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' 8399 # Note: this linker hardcodes the directories in LIBPATH if there 8400 # are no directories specified by -L. 8401 hardcode_minus_L=yes 8402 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8403 # Neither direct hardcoding nor static linking is supported with a 8404 # broken collect2. 8405 hardcode_direct=unsupported 8406 fi 8407 ;; 8408 8409 aix[4-9]*) 8410 if test "$host_cpu" = ia64; then 8411 # On IA64, the linker does run time linking by default, so we don't 8412 # have to do anything special. 8413 aix_use_runtimelinking=no 8414 exp_sym_flag='-Bexport' 8415 no_entry_flag="" 8416 else 8417 # If we're using GNU nm, then we don't want the "-C" option. 8418 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8419 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 8420 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' 8421 else 8422 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' 8423 fi 8424 aix_use_runtimelinking=no 8425 8426 # Test if we are trying to use run time linking or normal 8427 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8428 # need to do runtime linking. 8429 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8430 for ld_flag in $LDFLAGS; do 8431 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8432 aix_use_runtimelinking=yes 8433 break 8434 fi 8435 done 8436 ;; 8437 esac 8438 8439 exp_sym_flag='-bexport' 8440 no_entry_flag='-bnoentry' 8441 fi 8442 8443 # When large executables or shared objects are built, AIX ld can 8444 # have problems creating the table of contents. If linking a library 8445 # or program results in "error TOC overflow" add -mminimal-toc to 8446 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8447 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8448 8449 archive_cmds='' 8450 hardcode_direct=yes 8451 hardcode_libdir_separator=':' 8452 link_all_deplibs=yes 8453 8454 if test "$GCC" = yes; then 8455 case $host_os in aix4.[012]|aix4.[012].*) 8456 # We only want to do this on AIX 4.2 and lower, the check 8457 # below for broken collect2 doesn't work under 4.3+ 8458 collect2name=`${CC} -print-prog-name=collect2` 8459 if test -f "$collect2name" && \ 8460 strings "$collect2name" | grep resolve_lib_name >/dev/null 8461 then 8462 # We have reworked collect2 8463 : 8464 else 8465 # We have old collect2 8466 hardcode_direct=unsupported 8467 # It fails to find uninstalled libraries when the uninstalled 8468 # path is not listed in the libpath. Setting hardcode_minus_L 8469 # to unsupported forces relinking 8470 hardcode_minus_L=yes 8471 hardcode_libdir_flag_spec='-L$libdir' 8472 hardcode_libdir_separator= 8473 fi 8474 ;; 8475 esac 8476 shared_flag='-shared' 8477 if test "$aix_use_runtimelinking" = yes; then 8478 shared_flag="$shared_flag "'${wl}-G' 8479 fi 8480 else 8481 # not using gcc 8482 if test "$host_cpu" = ia64; then 8483 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8484 # chokes on -Wl,-G. The following line is correct: 8485 shared_flag='-G' 8486 else 8487 if test "$aix_use_runtimelinking" = yes; then 8488 shared_flag='${wl}-G' 8489 else 8490 shared_flag='${wl}-bM:SRE' 8491 fi 8492 fi 8493 fi 8494 8495 # It seems that -bexpall does not export symbols beginning with 8496 # underscore (_), so it is better to generate a list of symbols to export. 8497 always_export_symbols=yes 8498 if test "$aix_use_runtimelinking" = yes; then 8499 # Warning - without using the other runtime loading flags (-brtl), 8500 # -berok will link without error, but may produce a broken library. 8501 allow_undefined_flag='-berok' 8502 # Determine the default libpath from the value encoded in an empty executable. 8503 cat >conftest.$ac_ext <<_ACEOF 8504/* confdefs.h. */ 8505_ACEOF 8506cat confdefs.h >>conftest.$ac_ext 8507cat >>conftest.$ac_ext <<_ACEOF 8508/* end confdefs.h. */ 8509 8510int 8511main () 8512{ 8513 8514 ; 8515 return 0; 8516} 8517_ACEOF 8518rm -f conftest.$ac_objext conftest$ac_exeext 8519if { (ac_try="$ac_link" 8520case "(($ac_try" in 8521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8522 *) ac_try_echo=$ac_try;; 8523esac 8524eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8525$as_echo "$ac_try_echo") >&5 8526 (eval "$ac_link") 2>conftest.er1 8527 ac_status=$? 8528 grep -v '^ *+' conftest.er1 >conftest.err 8529 rm -f conftest.er1 8530 cat conftest.err >&5 8531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8532 (exit $ac_status); } && { 8533 test -z "$ac_c_werror_flag" || 8534 test ! -s conftest.err 8535 } && test -s conftest$ac_exeext && { 8536 test "$cross_compiling" = yes || 8537 $as_test_x conftest$ac_exeext 8538 }; then 8539 8540lt_aix_libpath_sed=' 8541 /Import File Strings/,/^$/ { 8542 /^0/ { 8543 s/^0 *\(.*\)$/\1/ 8544 p 8545 } 8546 }' 8547aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8548# Check for a 64-bit object if we didn't find anything. 8549if test -z "$aix_libpath"; then 8550 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8551fi 8552else 8553 $as_echo "$as_me: failed program was:" >&5 8554sed 's/^/| /' conftest.$ac_ext >&5 8555 8556 8557fi 8558 8559rm -rf conftest.dSYM 8560rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8561 conftest$ac_exeext conftest.$ac_ext 8562if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8563 8564 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8565 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" 8566 else 8567 if test "$host_cpu" = ia64; then 8568 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8569 allow_undefined_flag="-z nodefs" 8570 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" 8571 else 8572 # Determine the default libpath from the value encoded in an empty executable. 8573 cat >conftest.$ac_ext <<_ACEOF 8574/* confdefs.h. */ 8575_ACEOF 8576cat confdefs.h >>conftest.$ac_ext 8577cat >>conftest.$ac_ext <<_ACEOF 8578/* end confdefs.h. */ 8579 8580int 8581main () 8582{ 8583 8584 ; 8585 return 0; 8586} 8587_ACEOF 8588rm -f conftest.$ac_objext conftest$ac_exeext 8589if { (ac_try="$ac_link" 8590case "(($ac_try" in 8591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8592 *) ac_try_echo=$ac_try;; 8593esac 8594eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8595$as_echo "$ac_try_echo") >&5 8596 (eval "$ac_link") 2>conftest.er1 8597 ac_status=$? 8598 grep -v '^ *+' conftest.er1 >conftest.err 8599 rm -f conftest.er1 8600 cat conftest.err >&5 8601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8602 (exit $ac_status); } && { 8603 test -z "$ac_c_werror_flag" || 8604 test ! -s conftest.err 8605 } && test -s conftest$ac_exeext && { 8606 test "$cross_compiling" = yes || 8607 $as_test_x conftest$ac_exeext 8608 }; then 8609 8610lt_aix_libpath_sed=' 8611 /Import File Strings/,/^$/ { 8612 /^0/ { 8613 s/^0 *\(.*\)$/\1/ 8614 p 8615 } 8616 }' 8617aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8618# Check for a 64-bit object if we didn't find anything. 8619if test -z "$aix_libpath"; then 8620 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8621fi 8622else 8623 $as_echo "$as_me: failed program was:" >&5 8624sed 's/^/| /' conftest.$ac_ext >&5 8625 8626 8627fi 8628 8629rm -rf conftest.dSYM 8630rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8631 conftest$ac_exeext conftest.$ac_ext 8632if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8633 8634 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8635 # Warning - without using the other run time loading flags, 8636 # -berok will link without error, but may produce a broken library. 8637 no_undefined_flag=' ${wl}-bernotok' 8638 allow_undefined_flag=' ${wl}-berok' 8639 # Exported symbols can be pulled into shared objects from archives 8640 whole_archive_flag_spec='$convenience' 8641 archive_cmds_need_lc=yes 8642 # This is similar to how AIX traditionally builds its shared libraries. 8643 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' 8644 fi 8645 fi 8646 ;; 8647 8648 amigaos*) 8649 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)' 8650 hardcode_libdir_flag_spec='-L$libdir' 8651 hardcode_minus_L=yes 8652 # see comment about different semantics on the GNU ld section 8653 ld_shlibs=no 8654 ;; 8655 8656 bsdi[45]*) 8657 export_dynamic_flag_spec=-rdynamic 8658 ;; 8659 8660 cygwin* | mingw* | pw32*) 8661 # When not using gcc, we currently assume that we are using 8662 # Microsoft Visual C++. 8663 # hardcode_libdir_flag_spec is actually meaningless, as there is 8664 # no search path for DLLs. 8665 hardcode_libdir_flag_spec=' ' 8666 allow_undefined_flag=unsupported 8667 # Tell ltmain to make .lib files, not .a files. 8668 libext=lib 8669 # Tell ltmain to make .dll files, not .so files. 8670 shrext_cmds=".dll" 8671 # FIXME: Setting linknames here is a bad hack. 8672 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8673 # The linker will automatically build a .lib file if we build a DLL. 8674 old_archive_From_new_cmds='true' 8675 # FIXME: Should let the user specify the lib program. 8676 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8677 fix_srcfile_path='`cygpath -w "$srcfile"`' 8678 enable_shared_with_static_runtimes=yes 8679 ;; 8680 8681 darwin* | rhapsody*) 8682 case $host_os in 8683 rhapsody* | darwin1.[012]) 8684 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8685 ;; 8686 *) # Darwin 1.3 on 8687 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8688 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8689 else 8690 case ${MACOSX_DEPLOYMENT_TARGET} in 8691 10.[012]) 8692 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8693 ;; 8694 10.*) 8695 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8696 ;; 8697 esac 8698 fi 8699 ;; 8700 esac 8701 archive_cmds_need_lc=no 8702 hardcode_direct=no 8703 hardcode_automatic=yes 8704 hardcode_shlibpath_var=unsupported 8705 whole_archive_flag_spec='' 8706 link_all_deplibs=yes 8707 if test "$GCC" = yes ; then 8708 output_verbose_link_cmd='echo' 8709 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8710 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8711 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}" 8712 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}" 8713 else 8714 case $cc_basename in 8715 xlc*) 8716 output_verbose_link_cmd='echo' 8717 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 8718 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8719 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8720 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}' 8721 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}' 8722 ;; 8723 *) 8724 ld_shlibs=no 8725 ;; 8726 esac 8727 fi 8728 ;; 8729 8730 dgux*) 8731 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8732 hardcode_libdir_flag_spec='-L$libdir' 8733 hardcode_shlibpath_var=no 8734 ;; 8735 8736 freebsd1*) 8737 ld_shlibs=no 8738 ;; 8739 8740 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8741 # support. Future versions do this automatically, but an explicit c++rt0.o 8742 # does not break anything, and helps significantly (at the cost of a little 8743 # extra space). 8744 freebsd2.2*) 8745 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8746 hardcode_libdir_flag_spec='-R$libdir' 8747 hardcode_direct=yes 8748 hardcode_shlibpath_var=no 8749 ;; 8750 8751 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8752 freebsd2*) 8753 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8754 hardcode_direct=yes 8755 hardcode_minus_L=yes 8756 hardcode_shlibpath_var=no 8757 ;; 8758 8759 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8760 freebsd* | dragonfly*) 8761 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8762 hardcode_libdir_flag_spec='-R$libdir' 8763 hardcode_direct=yes 8764 hardcode_shlibpath_var=no 8765 ;; 8766 8767 hpux9*) 8768 if test "$GCC" = yes; then 8769 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' 8770 else 8771 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' 8772 fi 8773 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8774 hardcode_libdir_separator=: 8775 hardcode_direct=yes 8776 8777 # hardcode_minus_L: Not really in the search PATH, 8778 # but as the default location of the library. 8779 hardcode_minus_L=yes 8780 export_dynamic_flag_spec='${wl}-E' 8781 ;; 8782 8783 hpux10*) 8784 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8785 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8786 else 8787 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8788 fi 8789 if test "$with_gnu_ld" = no; then 8790 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8791 hardcode_libdir_separator=: 8792 8793 hardcode_direct=yes 8794 export_dynamic_flag_spec='${wl}-E' 8795 8796 # hardcode_minus_L: Not really in the search PATH, 8797 # but as the default location of the library. 8798 hardcode_minus_L=yes 8799 fi 8800 ;; 8801 8802 hpux11*) 8803 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8804 case $host_cpu in 8805 hppa*64*) 8806 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8807 ;; 8808 ia64*) 8809 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8810 ;; 8811 *) 8812 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8813 ;; 8814 esac 8815 else 8816 case $host_cpu in 8817 hppa*64*) 8818 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8819 ;; 8820 ia64*) 8821 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8822 ;; 8823 *) 8824 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8825 ;; 8826 esac 8827 fi 8828 if test "$with_gnu_ld" = no; then 8829 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8830 hardcode_libdir_separator=: 8831 8832 case $host_cpu in 8833 hppa*64*|ia64*) 8834 hardcode_libdir_flag_spec_ld='+b $libdir' 8835 hardcode_direct=no 8836 hardcode_shlibpath_var=no 8837 ;; 8838 *) 8839 hardcode_direct=yes 8840 export_dynamic_flag_spec='${wl}-E' 8841 8842 # hardcode_minus_L: Not really in the search PATH, 8843 # but as the default location of the library. 8844 hardcode_minus_L=yes 8845 ;; 8846 esac 8847 fi 8848 ;; 8849 8850 irix5* | irix6* | nonstopux*) 8851 if test "$GCC" = yes; then 8852 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' 8853 else 8854 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' 8855 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8856 fi 8857 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8858 hardcode_libdir_separator=: 8859 link_all_deplibs=yes 8860 ;; 8861 8862 netbsd*) 8863 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8864 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8865 else 8866 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8867 fi 8868 hardcode_libdir_flag_spec='-R$libdir' 8869 hardcode_direct=yes 8870 hardcode_shlibpath_var=no 8871 ;; 8872 8873 newsos6) 8874 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8875 hardcode_direct=yes 8876 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8877 hardcode_libdir_separator=: 8878 hardcode_shlibpath_var=no 8879 ;; 8880 8881 openbsd*) 8882 if test -f /usr/libexec/ld.so; then 8883 hardcode_direct=yes 8884 hardcode_shlibpath_var=no 8885 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8886 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8887 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8888 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8889 export_dynamic_flag_spec='${wl}-E' 8890 else 8891 case $host_os in 8892 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8893 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8894 hardcode_libdir_flag_spec='-R$libdir' 8895 ;; 8896 *) 8897 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8898 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8899 ;; 8900 esac 8901 fi 8902 else 8903 ld_shlibs=no 8904 fi 8905 ;; 8906 8907 os2*) 8908 hardcode_libdir_flag_spec='-L$libdir' 8909 hardcode_minus_L=yes 8910 allow_undefined_flag=unsupported 8911 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' 8912 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8913 ;; 8914 8915 osf3*) 8916 if test "$GCC" = yes; then 8917 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8918 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' 8919 else 8920 allow_undefined_flag=' -expect_unresolved \*' 8921 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' 8922 fi 8923 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8924 hardcode_libdir_separator=: 8925 ;; 8926 8927 osf4* | osf5*) # as osf3* with the addition of -msym flag 8928 if test "$GCC" = yes; then 8929 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8930 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' 8931 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8932 else 8933 allow_undefined_flag=' -expect_unresolved \*' 8934 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' 8935 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8936 $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' 8937 8938 # Both c and cxx compiler support -rpath directly 8939 hardcode_libdir_flag_spec='-rpath $libdir' 8940 fi 8941 hardcode_libdir_separator=: 8942 ;; 8943 8944 solaris*) 8945 no_undefined_flag=' -z text' 8946 if test "$GCC" = yes; then 8947 wlarc='${wl}' 8948 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8949 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8950 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8951 else 8952 wlarc='' 8953 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8954 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8955 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8956 fi 8957 hardcode_libdir_flag_spec='-R$libdir' 8958 hardcode_shlibpath_var=no 8959 case $host_os in 8960 solaris2.[0-5] | solaris2.[0-5].*) ;; 8961 *) 8962 # The compiler driver will combine and reorder linker options, 8963 # but understands `-z linker_flag'. GCC discards it without `$wl', 8964 # but is careful enough not to reorder. 8965 # Supported since Solaris 2.6 (maybe 2.5.1?) 8966 if test "$GCC" = yes; then 8967 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8968 else 8969 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8970 fi 8971 ;; 8972 esac 8973 link_all_deplibs=yes 8974 ;; 8975 8976 sunos4*) 8977 if test "x$host_vendor" = xsequent; then 8978 # Use $CC to link under sequent, because it throws in some extra .o 8979 # files that make .init and .fini sections work. 8980 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8981 else 8982 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8983 fi 8984 hardcode_libdir_flag_spec='-L$libdir' 8985 hardcode_direct=yes 8986 hardcode_minus_L=yes 8987 hardcode_shlibpath_var=no 8988 ;; 8989 8990 sysv4) 8991 case $host_vendor in 8992 sni) 8993 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8994 hardcode_direct=yes # is this really true??? 8995 ;; 8996 siemens) 8997 ## LD is ld it makes a PLAMLIB 8998 ## CC just makes a GrossModule. 8999 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9000 reload_cmds='$CC -r -o $output$reload_objs' 9001 hardcode_direct=no 9002 ;; 9003 motorola) 9004 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9005 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9006 ;; 9007 esac 9008 runpath_var='LD_RUN_PATH' 9009 hardcode_shlibpath_var=no 9010 ;; 9011 9012 sysv4.3*) 9013 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9014 hardcode_shlibpath_var=no 9015 export_dynamic_flag_spec='-Bexport' 9016 ;; 9017 9018 sysv4*MP*) 9019 if test -d /usr/nec; then 9020 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9021 hardcode_shlibpath_var=no 9022 runpath_var=LD_RUN_PATH 9023 hardcode_runpath_var=yes 9024 ld_shlibs=yes 9025 fi 9026 ;; 9027 9028 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9029 no_undefined_flag='${wl}-z,text' 9030 archive_cmds_need_lc=no 9031 hardcode_shlibpath_var=no 9032 runpath_var='LD_RUN_PATH' 9033 9034 if test "$GCC" = yes; then 9035 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9036 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9037 else 9038 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9039 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9040 fi 9041 ;; 9042 9043 sysv5* | sco3.2v5* | sco5v6*) 9044 # Note: We can NOT use -z defs as we might desire, because we do not 9045 # link with -lc, and that would cause any symbols used from libc to 9046 # always be unresolved, which means just about no library would 9047 # ever link correctly. If we're not using GNU ld we use -z text 9048 # though, which does catch some bad symbols but isn't as heavy-handed 9049 # as -z defs. 9050 no_undefined_flag='${wl}-z,text' 9051 allow_undefined_flag='${wl}-z,nodefs' 9052 archive_cmds_need_lc=no 9053 hardcode_shlibpath_var=no 9054 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 9055 hardcode_libdir_separator=':' 9056 link_all_deplibs=yes 9057 export_dynamic_flag_spec='${wl}-Bexport' 9058 runpath_var='LD_RUN_PATH' 9059 9060 if test "$GCC" = yes; then 9061 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9062 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9063 else 9064 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9065 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9066 fi 9067 ;; 9068 9069 uts4*) 9070 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9071 hardcode_libdir_flag_spec='-L$libdir' 9072 hardcode_shlibpath_var=no 9073 ;; 9074 9075 *) 9076 ld_shlibs=no 9077 ;; 9078 esac 9079 fi 9080 9081{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 9082$as_echo "$ld_shlibs" >&6; } 9083test "$ld_shlibs" = no && can_build_shared=no 9084 9085# 9086# Do we need to explicitly link libc? 9087# 9088case "x$archive_cmds_need_lc" in 9089x|xyes) 9090 # Assume -lc should be added 9091 archive_cmds_need_lc=yes 9092 9093 if test "$enable_shared" = yes && test "$GCC" = yes; then 9094 case $archive_cmds in 9095 *'~'*) 9096 # FIXME: we may have to deal with multi-command sequences. 9097 ;; 9098 '$CC '*) 9099 # Test whether the compiler implicitly links with -lc since on some 9100 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9101 # to ld, don't add -lc before -lgcc. 9102 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 9103$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9104 $rm conftest* 9105 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9106 9107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9108 (eval $ac_compile) 2>&5 9109 ac_status=$? 9110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9111 (exit $ac_status); } 2>conftest.err; then 9112 soname=conftest 9113 lib=conftest 9114 libobjs=conftest.$ac_objext 9115 deplibs= 9116 wl=$lt_prog_compiler_wl 9117 pic_flag=$lt_prog_compiler_pic 9118 compiler_flags=-v 9119 linker_flags=-v 9120 verstring= 9121 output_objdir=. 9122 libname=conftest 9123 lt_save_allow_undefined_flag=$allow_undefined_flag 9124 allow_undefined_flag= 9125 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 9126 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 9127 ac_status=$? 9128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9129 (exit $ac_status); } 9130 then 9131 archive_cmds_need_lc=no 9132 else 9133 archive_cmds_need_lc=yes 9134 fi 9135 allow_undefined_flag=$lt_save_allow_undefined_flag 9136 else 9137 cat conftest.err 1>&5 9138 fi 9139 $rm conftest* 9140 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 9141$as_echo "$archive_cmds_need_lc" >&6; } 9142 ;; 9143 esac 9144 fi 9145 ;; 9146esac 9147 9148{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9149$as_echo_n "checking dynamic linker characteristics... " >&6; } 9150library_names_spec= 9151libname_spec='lib$name' 9152soname_spec= 9153shrext_cmds=".so" 9154postinstall_cmds= 9155postuninstall_cmds= 9156finish_cmds= 9157finish_eval= 9158shlibpath_var= 9159shlibpath_overrides_runpath=unknown 9160version_type=none 9161dynamic_linker="$host_os ld.so" 9162sys_lib_dlsearch_path_spec="/lib /usr/lib" 9163 9164if test "$GCC" = yes; then 9165 case $host_os in 9166 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9167 *) lt_awk_arg="/^libraries:/" ;; 9168 esac 9169 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9170 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then 9171 # if the path contains ";" then we assume it to be the separator 9172 # otherwise default to the standard path separator (i.e. ":") - it is 9173 # assumed that no part of a normal pathname contains ";" but that should 9174 # okay in the real world where ";" in dirpaths is itself problematic. 9175 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9176 else 9177 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9178 fi 9179 # Ok, now we have the path, separated by spaces, we can step through it 9180 # and add multilib dir if necessary. 9181 lt_tmp_lt_search_path_spec= 9182 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9183 for lt_sys_path in $lt_search_path_spec; do 9184 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9185 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9186 else 9187 test -d "$lt_sys_path" && \ 9188 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9189 fi 9190 done 9191 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' 9192BEGIN {RS=" "; FS="/|\n";} { 9193 lt_foo=""; 9194 lt_count=0; 9195 for (lt_i = NF; lt_i > 0; lt_i--) { 9196 if ($lt_i != "" && $lt_i != ".") { 9197 if ($lt_i == "..") { 9198 lt_count++; 9199 } else { 9200 if (lt_count == 0) { 9201 lt_foo="/" $lt_i lt_foo; 9202 } else { 9203 lt_count--; 9204 } 9205 } 9206 } 9207 } 9208 if (lt_foo != "") { lt_freq[lt_foo]++; } 9209 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9210}'` 9211 sys_lib_search_path_spec=`echo $lt_search_path_spec` 9212else 9213 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9214fi 9215need_lib_prefix=unknown 9216hardcode_into_libs=no 9217 9218# when you set need_version to no, make sure it does not cause -set_version 9219# flags to be left without arguments 9220need_version=unknown 9221 9222case $host_os in 9223aix3*) 9224 version_type=linux 9225 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9226 shlibpath_var=LIBPATH 9227 9228 # AIX 3 has no versioning support, so we append a major version to the name. 9229 soname_spec='${libname}${release}${shared_ext}$major' 9230 ;; 9231 9232aix[4-9]*) 9233 version_type=linux 9234 need_lib_prefix=no 9235 need_version=no 9236 hardcode_into_libs=yes 9237 if test "$host_cpu" = ia64; then 9238 # AIX 5 supports IA64 9239 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9240 shlibpath_var=LD_LIBRARY_PATH 9241 else 9242 # With GCC up to 2.95.x, collect2 would create an import file 9243 # for dependence libraries. The import file would start with 9244 # the line `#! .'. This would cause the generated library to 9245 # depend on `.', always an invalid library. This was fixed in 9246 # development snapshots of GCC prior to 3.0. 9247 case $host_os in 9248 aix4 | aix4.[01] | aix4.[01].*) 9249 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9250 echo ' yes ' 9251 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 9252 : 9253 else 9254 can_build_shared=no 9255 fi 9256 ;; 9257 esac 9258 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9259 # soname into executable. Probably we can add versioning support to 9260 # collect2, so additional links can be useful in future. 9261 if test "$aix_use_runtimelinking" = yes; then 9262 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9263 # instead of lib<name>.a to let people know that these are not 9264 # typical AIX shared libraries. 9265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9266 else 9267 # We preserve .a as extension for shared libraries through AIX4.2 9268 # and later when we are not doing run time linking. 9269 library_names_spec='${libname}${release}.a $libname.a' 9270 soname_spec='${libname}${release}${shared_ext}$major' 9271 fi 9272 shlibpath_var=LIBPATH 9273 fi 9274 ;; 9275 9276amigaos*) 9277 library_names_spec='$libname.ixlibrary $libname.a' 9278 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9279 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' 9280 ;; 9281 9282beos*) 9283 library_names_spec='${libname}${shared_ext}' 9284 dynamic_linker="$host_os ld.so" 9285 shlibpath_var=LIBRARY_PATH 9286 ;; 9287 9288bsdi[45]*) 9289 version_type=linux 9290 need_version=no 9291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9292 soname_spec='${libname}${release}${shared_ext}$major' 9293 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9294 shlibpath_var=LD_LIBRARY_PATH 9295 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9296 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9297 # the default ld.so.conf also contains /usr/contrib/lib and 9298 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9299 # libtool to hard-code these into programs 9300 ;; 9301 9302cygwin* | mingw* | pw32*) 9303 version_type=windows 9304 shrext_cmds=".dll" 9305 need_version=no 9306 need_lib_prefix=no 9307 9308 case $GCC,$host_os in 9309 yes,cygwin* | yes,mingw* | yes,pw32*) 9310 library_names_spec='$libname.dll.a' 9311 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9312 postinstall_cmds='base_file=`basename \${file}`~ 9313 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 9314 dldir=$destdir/`dirname \$dlpath`~ 9315 test -d \$dldir || mkdir -p \$dldir~ 9316 $install_prog $dir/$dlname \$dldir/$dlname~ 9317 chmod a+x \$dldir/$dlname' 9318 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9319 dlpath=$dir/\$dldll~ 9320 $rm \$dlpath' 9321 shlibpath_overrides_runpath=yes 9322 9323 case $host_os in 9324 cygwin*) 9325 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9326 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9327 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9328 ;; 9329 mingw*) 9330 # MinGW DLLs use traditional 'lib' prefix 9331 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9332 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9333 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 9334 # It is most probably a Windows format PATH printed by 9335 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9336 # path with ; separators, and with drive letters. We can handle the 9337 # drive letters (cygwin fileutils understands them), so leave them, 9338 # especially as we might pass files found there to a mingw objdump, 9339 # which wouldn't understand a cygwinified path. Ahh. 9340 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9341 else 9342 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9343 fi 9344 ;; 9345 pw32*) 9346 # pw32 DLLs use 'pw' prefix rather than 'lib' 9347 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9348 ;; 9349 esac 9350 ;; 9351 9352 *) 9353 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9354 ;; 9355 esac 9356 dynamic_linker='Win32 ld.exe' 9357 # FIXME: first we should search . and the directory the executable is in 9358 shlibpath_var=PATH 9359 ;; 9360 9361darwin* | rhapsody*) 9362 dynamic_linker="$host_os dyld" 9363 version_type=darwin 9364 need_lib_prefix=no 9365 need_version=no 9366 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9367 soname_spec='${libname}${release}${major}$shared_ext' 9368 shlibpath_overrides_runpath=yes 9369 shlibpath_var=DYLD_LIBRARY_PATH 9370 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9371 9372 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9373 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9374 ;; 9375 9376dgux*) 9377 version_type=linux 9378 need_lib_prefix=no 9379 need_version=no 9380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9381 soname_spec='${libname}${release}${shared_ext}$major' 9382 shlibpath_var=LD_LIBRARY_PATH 9383 ;; 9384 9385freebsd1*) 9386 dynamic_linker=no 9387 ;; 9388 9389freebsd* | dragonfly*) 9390 # DragonFly does not have aout. When/if they implement a new 9391 # versioning mechanism, adjust this. 9392 if test -x /usr/bin/objformat; then 9393 objformat=`/usr/bin/objformat` 9394 else 9395 case $host_os in 9396 freebsd[123]*) objformat=aout ;; 9397 *) objformat=elf ;; 9398 esac 9399 fi 9400 version_type=freebsd-$objformat 9401 case $version_type in 9402 freebsd-elf*) 9403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9404 need_version=no 9405 need_lib_prefix=no 9406 ;; 9407 freebsd-*) 9408 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9409 need_version=yes 9410 ;; 9411 esac 9412 shlibpath_var=LD_LIBRARY_PATH 9413 case $host_os in 9414 freebsd2*) 9415 shlibpath_overrides_runpath=yes 9416 ;; 9417 freebsd3.[01]* | freebsdelf3.[01]*) 9418 shlibpath_overrides_runpath=yes 9419 hardcode_into_libs=yes 9420 ;; 9421 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9422 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9423 shlibpath_overrides_runpath=no 9424 hardcode_into_libs=yes 9425 ;; 9426 *) # from 4.6 on, and DragonFly 9427 shlibpath_overrides_runpath=yes 9428 hardcode_into_libs=yes 9429 ;; 9430 esac 9431 ;; 9432 9433gnu*) 9434 version_type=linux 9435 need_lib_prefix=no 9436 need_version=no 9437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9438 soname_spec='${libname}${release}${shared_ext}$major' 9439 shlibpath_var=LD_LIBRARY_PATH 9440 hardcode_into_libs=yes 9441 ;; 9442 9443hpux9* | hpux10* | hpux11*) 9444 # Give a soname corresponding to the major version so that dld.sl refuses to 9445 # link against other versions. 9446 version_type=sunos 9447 need_lib_prefix=no 9448 need_version=no 9449 case $host_cpu in 9450 ia64*) 9451 shrext_cmds='.so' 9452 hardcode_into_libs=yes 9453 dynamic_linker="$host_os dld.so" 9454 shlibpath_var=LD_LIBRARY_PATH 9455 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9457 soname_spec='${libname}${release}${shared_ext}$major' 9458 if test "X$HPUX_IA64_MODE" = X32; then 9459 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9460 else 9461 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9462 fi 9463 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9464 ;; 9465 hppa*64*) 9466 shrext_cmds='.sl' 9467 hardcode_into_libs=yes 9468 dynamic_linker="$host_os dld.sl" 9469 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9470 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9472 soname_spec='${libname}${release}${shared_ext}$major' 9473 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9474 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9475 ;; 9476 *) 9477 shrext_cmds='.sl' 9478 dynamic_linker="$host_os dld.sl" 9479 shlibpath_var=SHLIB_PATH 9480 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9482 soname_spec='${libname}${release}${shared_ext}$major' 9483 ;; 9484 esac 9485 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9486 postinstall_cmds='chmod 555 $lib' 9487 ;; 9488 9489interix[3-9]*) 9490 version_type=linux 9491 need_lib_prefix=no 9492 need_version=no 9493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9494 soname_spec='${libname}${release}${shared_ext}$major' 9495 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9496 shlibpath_var=LD_LIBRARY_PATH 9497 shlibpath_overrides_runpath=no 9498 hardcode_into_libs=yes 9499 ;; 9500 9501irix5* | irix6* | nonstopux*) 9502 case $host_os in 9503 nonstopux*) version_type=nonstopux ;; 9504 *) 9505 if test "$lt_cv_prog_gnu_ld" = yes; then 9506 version_type=linux 9507 else 9508 version_type=irix 9509 fi ;; 9510 esac 9511 need_lib_prefix=no 9512 need_version=no 9513 soname_spec='${libname}${release}${shared_ext}$major' 9514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9515 case $host_os in 9516 irix5* | nonstopux*) 9517 libsuff= shlibsuff= 9518 ;; 9519 *) 9520 case $LD in # libtool.m4 will add one of these switches to LD 9521 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9522 libsuff= shlibsuff= libmagic=32-bit;; 9523 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9524 libsuff=32 shlibsuff=N32 libmagic=N32;; 9525 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9526 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9527 *) libsuff= shlibsuff= libmagic=never-match;; 9528 esac 9529 ;; 9530 esac 9531 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9532 shlibpath_overrides_runpath=no 9533 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9534 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9535 hardcode_into_libs=yes 9536 ;; 9537 9538# No shared lib support for Linux oldld, aout, or coff. 9539linux*oldld* | linux*aout* | linux*coff*) 9540 dynamic_linker=no 9541 ;; 9542 9543# This must be Linux ELF. 9544linux* | k*bsd*-gnu) 9545 version_type=linux 9546 need_lib_prefix=no 9547 need_version=no 9548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9549 soname_spec='${libname}${release}${shared_ext}$major' 9550 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9551 shlibpath_var=LD_LIBRARY_PATH 9552 shlibpath_overrides_runpath=no 9553 # This implies no fast_install, which is unacceptable. 9554 # Some rework will be needed to allow for fast_install 9555 # before this can be enabled. 9556 hardcode_into_libs=yes 9557 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9558 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9559 9560 # Append ld.so.conf contents to the search path 9561 if test -f /etc/ld.so.conf; then 9562 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' ' '` 9563 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 9564 fi 9565 9566 # We used to test for /lib/ld.so.1 and disable shared libraries on 9567 # powerpc, because MkLinux only supported shared libraries with the 9568 # GNU dynamic linker. Since this was broken with cross compilers, 9569 # most powerpc-linux boxes support dynamic linking these days and 9570 # people can always --disable-shared, the test was removed, and we 9571 # assume the GNU/Linux dynamic linker is in use. 9572 dynamic_linker='GNU/Linux ld.so' 9573 ;; 9574 9575netbsd*) 9576 version_type=sunos 9577 need_lib_prefix=no 9578 need_version=no 9579 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9581 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9582 dynamic_linker='NetBSD (a.out) ld.so' 9583 else 9584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9585 soname_spec='${libname}${release}${shared_ext}$major' 9586 dynamic_linker='NetBSD ld.elf_so' 9587 fi 9588 shlibpath_var=LD_LIBRARY_PATH 9589 shlibpath_overrides_runpath=yes 9590 hardcode_into_libs=yes 9591 ;; 9592 9593newsos6) 9594 version_type=linux 9595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9596 shlibpath_var=LD_LIBRARY_PATH 9597 shlibpath_overrides_runpath=yes 9598 ;; 9599 9600nto-qnx*) 9601 version_type=linux 9602 need_lib_prefix=no 9603 need_version=no 9604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9605 soname_spec='${libname}${release}${shared_ext}$major' 9606 shlibpath_var=LD_LIBRARY_PATH 9607 shlibpath_overrides_runpath=yes 9608 ;; 9609 9610openbsd*) 9611 version_type=sunos 9612 sys_lib_dlsearch_path_spec="/usr/lib" 9613 need_lib_prefix=no 9614 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9615 case $host_os in 9616 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9617 *) need_version=no ;; 9618 esac 9619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9620 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9621 shlibpath_var=LD_LIBRARY_PATH 9622 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9623 case $host_os in 9624 openbsd2.[89] | openbsd2.[89].*) 9625 shlibpath_overrides_runpath=no 9626 ;; 9627 *) 9628 shlibpath_overrides_runpath=yes 9629 ;; 9630 esac 9631 else 9632 shlibpath_overrides_runpath=yes 9633 fi 9634 ;; 9635 9636os2*) 9637 libname_spec='$name' 9638 shrext_cmds=".dll" 9639 need_lib_prefix=no 9640 library_names_spec='$libname${shared_ext} $libname.a' 9641 dynamic_linker='OS/2 ld.exe' 9642 shlibpath_var=LIBPATH 9643 ;; 9644 9645osf3* | osf4* | osf5*) 9646 version_type=osf 9647 need_lib_prefix=no 9648 need_version=no 9649 soname_spec='${libname}${release}${shared_ext}$major' 9650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9651 shlibpath_var=LD_LIBRARY_PATH 9652 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9653 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9654 ;; 9655 9656rdos*) 9657 dynamic_linker=no 9658 ;; 9659 9660solaris*) 9661 version_type=linux 9662 need_lib_prefix=no 9663 need_version=no 9664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9665 soname_spec='${libname}${release}${shared_ext}$major' 9666 shlibpath_var=LD_LIBRARY_PATH 9667 shlibpath_overrides_runpath=yes 9668 hardcode_into_libs=yes 9669 # ldd complains unless libraries are executable 9670 postinstall_cmds='chmod +x $lib' 9671 ;; 9672 9673sunos4*) 9674 version_type=sunos 9675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9676 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9677 shlibpath_var=LD_LIBRARY_PATH 9678 shlibpath_overrides_runpath=yes 9679 if test "$with_gnu_ld" = yes; then 9680 need_lib_prefix=no 9681 fi 9682 need_version=yes 9683 ;; 9684 9685sysv4 | sysv4.3*) 9686 version_type=linux 9687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9688 soname_spec='${libname}${release}${shared_ext}$major' 9689 shlibpath_var=LD_LIBRARY_PATH 9690 case $host_vendor in 9691 sni) 9692 shlibpath_overrides_runpath=no 9693 need_lib_prefix=no 9694 export_dynamic_flag_spec='${wl}-Blargedynsym' 9695 runpath_var=LD_RUN_PATH 9696 ;; 9697 siemens) 9698 need_lib_prefix=no 9699 ;; 9700 motorola) 9701 need_lib_prefix=no 9702 need_version=no 9703 shlibpath_overrides_runpath=no 9704 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9705 ;; 9706 esac 9707 ;; 9708 9709sysv4*MP*) 9710 if test -d /usr/nec ;then 9711 version_type=linux 9712 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9713 soname_spec='$libname${shared_ext}.$major' 9714 shlibpath_var=LD_LIBRARY_PATH 9715 fi 9716 ;; 9717 9718sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9719 version_type=freebsd-elf 9720 need_lib_prefix=no 9721 need_version=no 9722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9723 soname_spec='${libname}${release}${shared_ext}$major' 9724 shlibpath_var=LD_LIBRARY_PATH 9725 hardcode_into_libs=yes 9726 if test "$with_gnu_ld" = yes; then 9727 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9728 shlibpath_overrides_runpath=no 9729 else 9730 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9731 shlibpath_overrides_runpath=yes 9732 case $host_os in 9733 sco3.2v5*) 9734 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9735 ;; 9736 esac 9737 fi 9738 sys_lib_dlsearch_path_spec='/usr/lib' 9739 ;; 9740 9741uts4*) 9742 version_type=linux 9743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9744 soname_spec='${libname}${release}${shared_ext}$major' 9745 shlibpath_var=LD_LIBRARY_PATH 9746 ;; 9747 9748*) 9749 dynamic_linker=no 9750 ;; 9751esac 9752{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9753$as_echo "$dynamic_linker" >&6; } 9754test "$dynamic_linker" = no && can_build_shared=no 9755 9756if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 9757 $as_echo_n "(cached) " >&6 9758else 9759 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 9760fi 9761 9762sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 9763if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 9764 $as_echo_n "(cached) " >&6 9765else 9766 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 9767fi 9768 9769sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 9770 9771variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9772if test "$GCC" = yes; then 9773 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9774fi 9775 9776{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9777$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 9778hardcode_action= 9779if test -n "$hardcode_libdir_flag_spec" || \ 9780 test -n "$runpath_var" || \ 9781 test "X$hardcode_automatic" = "Xyes" ; then 9782 9783 # We can hardcode non-existant directories. 9784 if test "$hardcode_direct" != no && 9785 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9786 # have to relink, otherwise we might link with an installed library 9787 # when we should be linking with a yet-to-be-installed one 9788 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9789 test "$hardcode_minus_L" != no; then 9790 # Linking always hardcodes the temporary library directory. 9791 hardcode_action=relink 9792 else 9793 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9794 hardcode_action=immediate 9795 fi 9796else 9797 # We cannot hardcode anything, or else we can only hardcode existing 9798 # directories. 9799 hardcode_action=unsupported 9800fi 9801{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 9802$as_echo "$hardcode_action" >&6; } 9803 9804if test "$hardcode_action" = relink; then 9805 # Fast installation is not supported 9806 enable_fast_install=no 9807elif test "$shlibpath_overrides_runpath" = yes || 9808 test "$enable_shared" = no; then 9809 # Fast installation is not necessary 9810 enable_fast_install=needless 9811fi 9812 9813striplib= 9814old_striplib= 9815{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9816$as_echo_n "checking whether stripping libraries is possible... " >&6; } 9817if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9818 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9819 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9820 { $as_echo "$as_me:$LINENO: result: yes" >&5 9821$as_echo "yes" >&6; } 9822else 9823# FIXME - insert some real tests, host_os isn't really good enough 9824 case $host_os in 9825 darwin*) 9826 if test -n "$STRIP" ; then 9827 striplib="$STRIP -x" 9828 old_striplib="$STRIP -S" 9829 { $as_echo "$as_me:$LINENO: result: yes" >&5 9830$as_echo "yes" >&6; } 9831 else 9832 { $as_echo "$as_me:$LINENO: result: no" >&5 9833$as_echo "no" >&6; } 9834fi 9835 ;; 9836 *) 9837 { $as_echo "$as_me:$LINENO: result: no" >&5 9838$as_echo "no" >&6; } 9839 ;; 9840 esac 9841fi 9842 9843if test "x$enable_dlopen" != xyes; then 9844 enable_dlopen=unknown 9845 enable_dlopen_self=unknown 9846 enable_dlopen_self_static=unknown 9847else 9848 lt_cv_dlopen=no 9849 lt_cv_dlopen_libs= 9850 9851 case $host_os in 9852 beos*) 9853 lt_cv_dlopen="load_add_on" 9854 lt_cv_dlopen_libs= 9855 lt_cv_dlopen_self=yes 9856 ;; 9857 9858 mingw* | pw32*) 9859 lt_cv_dlopen="LoadLibrary" 9860 lt_cv_dlopen_libs= 9861 ;; 9862 9863 cygwin*) 9864 lt_cv_dlopen="dlopen" 9865 lt_cv_dlopen_libs= 9866 ;; 9867 9868 darwin*) 9869 # if libdl is installed we need to link against it 9870 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9871$as_echo_n "checking for dlopen in -ldl... " >&6; } 9872if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9873 $as_echo_n "(cached) " >&6 9874else 9875 ac_check_lib_save_LIBS=$LIBS 9876LIBS="-ldl $LIBS" 9877cat >conftest.$ac_ext <<_ACEOF 9878/* confdefs.h. */ 9879_ACEOF 9880cat confdefs.h >>conftest.$ac_ext 9881cat >>conftest.$ac_ext <<_ACEOF 9882/* end confdefs.h. */ 9883 9884/* Override any GCC internal prototype to avoid an error. 9885 Use char because int might match the return type of a GCC 9886 builtin and then its argument prototype would still apply. */ 9887#ifdef __cplusplus 9888extern "C" 9889#endif 9890char dlopen (); 9891int 9892main () 9893{ 9894return dlopen (); 9895 ; 9896 return 0; 9897} 9898_ACEOF 9899rm -f conftest.$ac_objext conftest$ac_exeext 9900if { (ac_try="$ac_link" 9901case "(($ac_try" in 9902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9903 *) ac_try_echo=$ac_try;; 9904esac 9905eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9906$as_echo "$ac_try_echo") >&5 9907 (eval "$ac_link") 2>conftest.er1 9908 ac_status=$? 9909 grep -v '^ *+' conftest.er1 >conftest.err 9910 rm -f conftest.er1 9911 cat conftest.err >&5 9912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9913 (exit $ac_status); } && { 9914 test -z "$ac_c_werror_flag" || 9915 test ! -s conftest.err 9916 } && test -s conftest$ac_exeext && { 9917 test "$cross_compiling" = yes || 9918 $as_test_x conftest$ac_exeext 9919 }; then 9920 ac_cv_lib_dl_dlopen=yes 9921else 9922 $as_echo "$as_me: failed program was:" >&5 9923sed 's/^/| /' conftest.$ac_ext >&5 9924 9925 ac_cv_lib_dl_dlopen=no 9926fi 9927 9928rm -rf conftest.dSYM 9929rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9930 conftest$ac_exeext conftest.$ac_ext 9931LIBS=$ac_check_lib_save_LIBS 9932fi 9933{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9934$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 9935if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 9936 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9937else 9938 9939 lt_cv_dlopen="dyld" 9940 lt_cv_dlopen_libs= 9941 lt_cv_dlopen_self=yes 9942 9943fi 9944 9945 ;; 9946 9947 *) 9948 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 9949$as_echo_n "checking for shl_load... " >&6; } 9950if test "${ac_cv_func_shl_load+set}" = set; then 9951 $as_echo_n "(cached) " >&6 9952else 9953 cat >conftest.$ac_ext <<_ACEOF 9954/* confdefs.h. */ 9955_ACEOF 9956cat confdefs.h >>conftest.$ac_ext 9957cat >>conftest.$ac_ext <<_ACEOF 9958/* end confdefs.h. */ 9959/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9960 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9961#define shl_load innocuous_shl_load 9962 9963/* System header to define __stub macros and hopefully few prototypes, 9964 which can conflict with char shl_load (); below. 9965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9966 <limits.h> exists even on freestanding compilers. */ 9967 9968#ifdef __STDC__ 9969# include <limits.h> 9970#else 9971# include <assert.h> 9972#endif 9973 9974#undef shl_load 9975 9976/* Override any GCC internal prototype to avoid an error. 9977 Use char because int might match the return type of a GCC 9978 builtin and then its argument prototype would still apply. */ 9979#ifdef __cplusplus 9980extern "C" 9981#endif 9982char shl_load (); 9983/* The GNU C library defines this for functions which it implements 9984 to always fail with ENOSYS. Some functions are actually named 9985 something starting with __ and the normal name is an alias. */ 9986#if defined __stub_shl_load || defined __stub___shl_load 9987choke me 9988#endif 9989 9990int 9991main () 9992{ 9993return shl_load (); 9994 ; 9995 return 0; 9996} 9997_ACEOF 9998rm -f conftest.$ac_objext conftest$ac_exeext 9999if { (ac_try="$ac_link" 10000case "(($ac_try" in 10001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10002 *) ac_try_echo=$ac_try;; 10003esac 10004eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10005$as_echo "$ac_try_echo") >&5 10006 (eval "$ac_link") 2>conftest.er1 10007 ac_status=$? 10008 grep -v '^ *+' conftest.er1 >conftest.err 10009 rm -f conftest.er1 10010 cat conftest.err >&5 10011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10012 (exit $ac_status); } && { 10013 test -z "$ac_c_werror_flag" || 10014 test ! -s conftest.err 10015 } && test -s conftest$ac_exeext && { 10016 test "$cross_compiling" = yes || 10017 $as_test_x conftest$ac_exeext 10018 }; then 10019 ac_cv_func_shl_load=yes 10020else 10021 $as_echo "$as_me: failed program was:" >&5 10022sed 's/^/| /' conftest.$ac_ext >&5 10023 10024 ac_cv_func_shl_load=no 10025fi 10026 10027rm -rf conftest.dSYM 10028rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10029 conftest$ac_exeext conftest.$ac_ext 10030fi 10031{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 10032$as_echo "$ac_cv_func_shl_load" >&6; } 10033if test "x$ac_cv_func_shl_load" = x""yes; then 10034 lt_cv_dlopen="shl_load" 10035else 10036 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 10037$as_echo_n "checking for shl_load in -ldld... " >&6; } 10038if test "${ac_cv_lib_dld_shl_load+set}" = set; then 10039 $as_echo_n "(cached) " >&6 10040else 10041 ac_check_lib_save_LIBS=$LIBS 10042LIBS="-ldld $LIBS" 10043cat >conftest.$ac_ext <<_ACEOF 10044/* confdefs.h. */ 10045_ACEOF 10046cat confdefs.h >>conftest.$ac_ext 10047cat >>conftest.$ac_ext <<_ACEOF 10048/* end confdefs.h. */ 10049 10050/* Override any GCC internal prototype to avoid an error. 10051 Use char because int might match the return type of a GCC 10052 builtin and then its argument prototype would still apply. */ 10053#ifdef __cplusplus 10054extern "C" 10055#endif 10056char shl_load (); 10057int 10058main () 10059{ 10060return shl_load (); 10061 ; 10062 return 0; 10063} 10064_ACEOF 10065rm -f conftest.$ac_objext conftest$ac_exeext 10066if { (ac_try="$ac_link" 10067case "(($ac_try" in 10068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10069 *) ac_try_echo=$ac_try;; 10070esac 10071eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10072$as_echo "$ac_try_echo") >&5 10073 (eval "$ac_link") 2>conftest.er1 10074 ac_status=$? 10075 grep -v '^ *+' conftest.er1 >conftest.err 10076 rm -f conftest.er1 10077 cat conftest.err >&5 10078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10079 (exit $ac_status); } && { 10080 test -z "$ac_c_werror_flag" || 10081 test ! -s conftest.err 10082 } && test -s conftest$ac_exeext && { 10083 test "$cross_compiling" = yes || 10084 $as_test_x conftest$ac_exeext 10085 }; then 10086 ac_cv_lib_dld_shl_load=yes 10087else 10088 $as_echo "$as_me: failed program was:" >&5 10089sed 's/^/| /' conftest.$ac_ext >&5 10090 10091 ac_cv_lib_dld_shl_load=no 10092fi 10093 10094rm -rf conftest.dSYM 10095rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10096 conftest$ac_exeext conftest.$ac_ext 10097LIBS=$ac_check_lib_save_LIBS 10098fi 10099{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 10100$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10101if test "x$ac_cv_lib_dld_shl_load" = x""yes; then 10102 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10103else 10104 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 10105$as_echo_n "checking for dlopen... " >&6; } 10106if test "${ac_cv_func_dlopen+set}" = set; then 10107 $as_echo_n "(cached) " >&6 10108else 10109 cat >conftest.$ac_ext <<_ACEOF 10110/* confdefs.h. */ 10111_ACEOF 10112cat confdefs.h >>conftest.$ac_ext 10113cat >>conftest.$ac_ext <<_ACEOF 10114/* end confdefs.h. */ 10115/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 10116 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10117#define dlopen innocuous_dlopen 10118 10119/* System header to define __stub macros and hopefully few prototypes, 10120 which can conflict with char dlopen (); below. 10121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10122 <limits.h> exists even on freestanding compilers. */ 10123 10124#ifdef __STDC__ 10125# include <limits.h> 10126#else 10127# include <assert.h> 10128#endif 10129 10130#undef dlopen 10131 10132/* Override any GCC internal prototype to avoid an error. 10133 Use char because int might match the return type of a GCC 10134 builtin and then its argument prototype would still apply. */ 10135#ifdef __cplusplus 10136extern "C" 10137#endif 10138char dlopen (); 10139/* The GNU C library defines this for functions which it implements 10140 to always fail with ENOSYS. Some functions are actually named 10141 something starting with __ and the normal name is an alias. */ 10142#if defined __stub_dlopen || defined __stub___dlopen 10143choke me 10144#endif 10145 10146int 10147main () 10148{ 10149return dlopen (); 10150 ; 10151 return 0; 10152} 10153_ACEOF 10154rm -f conftest.$ac_objext conftest$ac_exeext 10155if { (ac_try="$ac_link" 10156case "(($ac_try" in 10157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10158 *) ac_try_echo=$ac_try;; 10159esac 10160eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10161$as_echo "$ac_try_echo") >&5 10162 (eval "$ac_link") 2>conftest.er1 10163 ac_status=$? 10164 grep -v '^ *+' conftest.er1 >conftest.err 10165 rm -f conftest.er1 10166 cat conftest.err >&5 10167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10168 (exit $ac_status); } && { 10169 test -z "$ac_c_werror_flag" || 10170 test ! -s conftest.err 10171 } && test -s conftest$ac_exeext && { 10172 test "$cross_compiling" = yes || 10173 $as_test_x conftest$ac_exeext 10174 }; then 10175 ac_cv_func_dlopen=yes 10176else 10177 $as_echo "$as_me: failed program was:" >&5 10178sed 's/^/| /' conftest.$ac_ext >&5 10179 10180 ac_cv_func_dlopen=no 10181fi 10182 10183rm -rf conftest.dSYM 10184rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10185 conftest$ac_exeext conftest.$ac_ext 10186fi 10187{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 10188$as_echo "$ac_cv_func_dlopen" >&6; } 10189if test "x$ac_cv_func_dlopen" = x""yes; then 10190 lt_cv_dlopen="dlopen" 10191else 10192 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10193$as_echo_n "checking for dlopen in -ldl... " >&6; } 10194if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10195 $as_echo_n "(cached) " >&6 10196else 10197 ac_check_lib_save_LIBS=$LIBS 10198LIBS="-ldl $LIBS" 10199cat >conftest.$ac_ext <<_ACEOF 10200/* confdefs.h. */ 10201_ACEOF 10202cat confdefs.h >>conftest.$ac_ext 10203cat >>conftest.$ac_ext <<_ACEOF 10204/* end confdefs.h. */ 10205 10206/* Override any GCC internal prototype to avoid an error. 10207 Use char because int might match the return type of a GCC 10208 builtin and then its argument prototype would still apply. */ 10209#ifdef __cplusplus 10210extern "C" 10211#endif 10212char dlopen (); 10213int 10214main () 10215{ 10216return dlopen (); 10217 ; 10218 return 0; 10219} 10220_ACEOF 10221rm -f conftest.$ac_objext conftest$ac_exeext 10222if { (ac_try="$ac_link" 10223case "(($ac_try" in 10224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10225 *) ac_try_echo=$ac_try;; 10226esac 10227eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10228$as_echo "$ac_try_echo") >&5 10229 (eval "$ac_link") 2>conftest.er1 10230 ac_status=$? 10231 grep -v '^ *+' conftest.er1 >conftest.err 10232 rm -f conftest.er1 10233 cat conftest.err >&5 10234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10235 (exit $ac_status); } && { 10236 test -z "$ac_c_werror_flag" || 10237 test ! -s conftest.err 10238 } && test -s conftest$ac_exeext && { 10239 test "$cross_compiling" = yes || 10240 $as_test_x conftest$ac_exeext 10241 }; then 10242 ac_cv_lib_dl_dlopen=yes 10243else 10244 $as_echo "$as_me: failed program was:" >&5 10245sed 's/^/| /' conftest.$ac_ext >&5 10246 10247 ac_cv_lib_dl_dlopen=no 10248fi 10249 10250rm -rf conftest.dSYM 10251rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10252 conftest$ac_exeext conftest.$ac_ext 10253LIBS=$ac_check_lib_save_LIBS 10254fi 10255{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10256$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10257if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 10258 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10259else 10260 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10261$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10262if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10263 $as_echo_n "(cached) " >&6 10264else 10265 ac_check_lib_save_LIBS=$LIBS 10266LIBS="-lsvld $LIBS" 10267cat >conftest.$ac_ext <<_ACEOF 10268/* confdefs.h. */ 10269_ACEOF 10270cat confdefs.h >>conftest.$ac_ext 10271cat >>conftest.$ac_ext <<_ACEOF 10272/* end confdefs.h. */ 10273 10274/* Override any GCC internal prototype to avoid an error. 10275 Use char because int might match the return type of a GCC 10276 builtin and then its argument prototype would still apply. */ 10277#ifdef __cplusplus 10278extern "C" 10279#endif 10280char dlopen (); 10281int 10282main () 10283{ 10284return dlopen (); 10285 ; 10286 return 0; 10287} 10288_ACEOF 10289rm -f conftest.$ac_objext conftest$ac_exeext 10290if { (ac_try="$ac_link" 10291case "(($ac_try" in 10292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10293 *) ac_try_echo=$ac_try;; 10294esac 10295eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10296$as_echo "$ac_try_echo") >&5 10297 (eval "$ac_link") 2>conftest.er1 10298 ac_status=$? 10299 grep -v '^ *+' conftest.er1 >conftest.err 10300 rm -f conftest.er1 10301 cat conftest.err >&5 10302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10303 (exit $ac_status); } && { 10304 test -z "$ac_c_werror_flag" || 10305 test ! -s conftest.err 10306 } && test -s conftest$ac_exeext && { 10307 test "$cross_compiling" = yes || 10308 $as_test_x conftest$ac_exeext 10309 }; then 10310 ac_cv_lib_svld_dlopen=yes 10311else 10312 $as_echo "$as_me: failed program was:" >&5 10313sed 's/^/| /' conftest.$ac_ext >&5 10314 10315 ac_cv_lib_svld_dlopen=no 10316fi 10317 10318rm -rf conftest.dSYM 10319rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10320 conftest$ac_exeext conftest.$ac_ext 10321LIBS=$ac_check_lib_save_LIBS 10322fi 10323{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10324$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10325if test "x$ac_cv_lib_svld_dlopen" = x""yes; then 10326 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10327else 10328 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10329$as_echo_n "checking for dld_link in -ldld... " >&6; } 10330if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10331 $as_echo_n "(cached) " >&6 10332else 10333 ac_check_lib_save_LIBS=$LIBS 10334LIBS="-ldld $LIBS" 10335cat >conftest.$ac_ext <<_ACEOF 10336/* confdefs.h. */ 10337_ACEOF 10338cat confdefs.h >>conftest.$ac_ext 10339cat >>conftest.$ac_ext <<_ACEOF 10340/* end confdefs.h. */ 10341 10342/* Override any GCC internal prototype to avoid an error. 10343 Use char because int might match the return type of a GCC 10344 builtin and then its argument prototype would still apply. */ 10345#ifdef __cplusplus 10346extern "C" 10347#endif 10348char dld_link (); 10349int 10350main () 10351{ 10352return dld_link (); 10353 ; 10354 return 0; 10355} 10356_ACEOF 10357rm -f conftest.$ac_objext conftest$ac_exeext 10358if { (ac_try="$ac_link" 10359case "(($ac_try" in 10360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10361 *) ac_try_echo=$ac_try;; 10362esac 10363eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10364$as_echo "$ac_try_echo") >&5 10365 (eval "$ac_link") 2>conftest.er1 10366 ac_status=$? 10367 grep -v '^ *+' conftest.er1 >conftest.err 10368 rm -f conftest.er1 10369 cat conftest.err >&5 10370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10371 (exit $ac_status); } && { 10372 test -z "$ac_c_werror_flag" || 10373 test ! -s conftest.err 10374 } && test -s conftest$ac_exeext && { 10375 test "$cross_compiling" = yes || 10376 $as_test_x conftest$ac_exeext 10377 }; then 10378 ac_cv_lib_dld_dld_link=yes 10379else 10380 $as_echo "$as_me: failed program was:" >&5 10381sed 's/^/| /' conftest.$ac_ext >&5 10382 10383 ac_cv_lib_dld_dld_link=no 10384fi 10385 10386rm -rf conftest.dSYM 10387rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10388 conftest$ac_exeext conftest.$ac_ext 10389LIBS=$ac_check_lib_save_LIBS 10390fi 10391{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10392$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10393if test "x$ac_cv_lib_dld_dld_link" = x""yes; then 10394 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10395fi 10396 10397 10398fi 10399 10400 10401fi 10402 10403 10404fi 10405 10406 10407fi 10408 10409 10410fi 10411 10412 ;; 10413 esac 10414 10415 if test "x$lt_cv_dlopen" != xno; then 10416 enable_dlopen=yes 10417 else 10418 enable_dlopen=no 10419 fi 10420 10421 case $lt_cv_dlopen in 10422 dlopen) 10423 save_CPPFLAGS="$CPPFLAGS" 10424 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10425 10426 save_LDFLAGS="$LDFLAGS" 10427 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10428 10429 save_LIBS="$LIBS" 10430 LIBS="$lt_cv_dlopen_libs $LIBS" 10431 10432 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10433$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10434if test "${lt_cv_dlopen_self+set}" = set; then 10435 $as_echo_n "(cached) " >&6 10436else 10437 if test "$cross_compiling" = yes; then : 10438 lt_cv_dlopen_self=cross 10439else 10440 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10441 lt_status=$lt_dlunknown 10442 cat > conftest.$ac_ext <<EOF 10443#line 10443 "configure" 10444#include "confdefs.h" 10445 10446#if HAVE_DLFCN_H 10447#include <dlfcn.h> 10448#endif 10449 10450#include <stdio.h> 10451 10452#ifdef RTLD_GLOBAL 10453# define LT_DLGLOBAL RTLD_GLOBAL 10454#else 10455# ifdef DL_GLOBAL 10456# define LT_DLGLOBAL DL_GLOBAL 10457# else 10458# define LT_DLGLOBAL 0 10459# endif 10460#endif 10461 10462/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10463 find out it does not work in some platform. */ 10464#ifndef LT_DLLAZY_OR_NOW 10465# ifdef RTLD_LAZY 10466# define LT_DLLAZY_OR_NOW RTLD_LAZY 10467# else 10468# ifdef DL_LAZY 10469# define LT_DLLAZY_OR_NOW DL_LAZY 10470# else 10471# ifdef RTLD_NOW 10472# define LT_DLLAZY_OR_NOW RTLD_NOW 10473# else 10474# ifdef DL_NOW 10475# define LT_DLLAZY_OR_NOW DL_NOW 10476# else 10477# define LT_DLLAZY_OR_NOW 0 10478# endif 10479# endif 10480# endif 10481# endif 10482#endif 10483 10484#ifdef __cplusplus 10485extern "C" void exit (int); 10486#endif 10487 10488void fnord() { int i=42;} 10489int main () 10490{ 10491 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10492 int status = $lt_dlunknown; 10493 10494 if (self) 10495 { 10496 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10497 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10498 /* dlclose (self); */ 10499 } 10500 else 10501 puts (dlerror ()); 10502 10503 exit (status); 10504} 10505EOF 10506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10507 (eval $ac_link) 2>&5 10508 ac_status=$? 10509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10510 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10511 (./conftest; exit; ) >&5 2>/dev/null 10512 lt_status=$? 10513 case x$lt_status in 10514 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10515 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10516 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10517 esac 10518 else : 10519 # compilation failed 10520 lt_cv_dlopen_self=no 10521 fi 10522fi 10523rm -fr conftest* 10524 10525 10526fi 10527{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10528$as_echo "$lt_cv_dlopen_self" >&6; } 10529 10530 if test "x$lt_cv_dlopen_self" = xyes; then 10531 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10532 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10533$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10534if test "${lt_cv_dlopen_self_static+set}" = set; then 10535 $as_echo_n "(cached) " >&6 10536else 10537 if test "$cross_compiling" = yes; then : 10538 lt_cv_dlopen_self_static=cross 10539else 10540 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10541 lt_status=$lt_dlunknown 10542 cat > conftest.$ac_ext <<EOF 10543#line 10543 "configure" 10544#include "confdefs.h" 10545 10546#if HAVE_DLFCN_H 10547#include <dlfcn.h> 10548#endif 10549 10550#include <stdio.h> 10551 10552#ifdef RTLD_GLOBAL 10553# define LT_DLGLOBAL RTLD_GLOBAL 10554#else 10555# ifdef DL_GLOBAL 10556# define LT_DLGLOBAL DL_GLOBAL 10557# else 10558# define LT_DLGLOBAL 0 10559# endif 10560#endif 10561 10562/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10563 find out it does not work in some platform. */ 10564#ifndef LT_DLLAZY_OR_NOW 10565# ifdef RTLD_LAZY 10566# define LT_DLLAZY_OR_NOW RTLD_LAZY 10567# else 10568# ifdef DL_LAZY 10569# define LT_DLLAZY_OR_NOW DL_LAZY 10570# else 10571# ifdef RTLD_NOW 10572# define LT_DLLAZY_OR_NOW RTLD_NOW 10573# else 10574# ifdef DL_NOW 10575# define LT_DLLAZY_OR_NOW DL_NOW 10576# else 10577# define LT_DLLAZY_OR_NOW 0 10578# endif 10579# endif 10580# endif 10581# endif 10582#endif 10583 10584#ifdef __cplusplus 10585extern "C" void exit (int); 10586#endif 10587 10588void fnord() { int i=42;} 10589int main () 10590{ 10591 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10592 int status = $lt_dlunknown; 10593 10594 if (self) 10595 { 10596 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10597 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10598 /* dlclose (self); */ 10599 } 10600 else 10601 puts (dlerror ()); 10602 10603 exit (status); 10604} 10605EOF 10606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10607 (eval $ac_link) 2>&5 10608 ac_status=$? 10609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10610 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10611 (./conftest; exit; ) >&5 2>/dev/null 10612 lt_status=$? 10613 case x$lt_status in 10614 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10615 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10616 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10617 esac 10618 else : 10619 # compilation failed 10620 lt_cv_dlopen_self_static=no 10621 fi 10622fi 10623rm -fr conftest* 10624 10625 10626fi 10627{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10628$as_echo "$lt_cv_dlopen_self_static" >&6; } 10629 fi 10630 10631 CPPFLAGS="$save_CPPFLAGS" 10632 LDFLAGS="$save_LDFLAGS" 10633 LIBS="$save_LIBS" 10634 ;; 10635 esac 10636 10637 case $lt_cv_dlopen_self in 10638 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10639 *) enable_dlopen_self=unknown ;; 10640 esac 10641 10642 case $lt_cv_dlopen_self_static in 10643 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10644 *) enable_dlopen_self_static=unknown ;; 10645 esac 10646fi 10647 10648 10649# Report which library types will actually be built 10650{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10651$as_echo_n "checking if libtool supports shared libraries... " >&6; } 10652{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 10653$as_echo "$can_build_shared" >&6; } 10654 10655{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10656$as_echo_n "checking whether to build shared libraries... " >&6; } 10657test "$can_build_shared" = "no" && enable_shared=no 10658 10659# On AIX, shared libraries and static libraries use the same namespace, and 10660# are all built from PIC. 10661case $host_os in 10662aix3*) 10663 test "$enable_shared" = yes && enable_static=no 10664 if test -n "$RANLIB"; then 10665 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10666 postinstall_cmds='$RANLIB $lib' 10667 fi 10668 ;; 10669 10670aix[4-9]*) 10671 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10672 test "$enable_shared" = yes && enable_static=no 10673 fi 10674 ;; 10675esac 10676{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 10677$as_echo "$enable_shared" >&6; } 10678 10679{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10680$as_echo_n "checking whether to build static libraries... " >&6; } 10681# Make sure either enable_shared or enable_static is yes. 10682test "$enable_shared" = yes || enable_static=yes 10683{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5 10684$as_echo "$enable_static" >&6; } 10685 10686# The else clause should only fire when bootstrapping the 10687# libtool distribution, otherwise you forgot to ship ltmain.sh 10688# with your package, and you will get complaints that there are 10689# no rules to generate ltmain.sh. 10690if test -f "$ltmain"; then 10691 # See if we are running on zsh, and set the options which allow our commands through 10692 # without removal of \ escapes. 10693 if test -n "${ZSH_VERSION+set}" ; then 10694 setopt NO_GLOB_SUBST 10695 fi 10696 # Now quote all the things that may contain metacharacters while being 10697 # careful not to overquote the AC_SUBSTed values. We take copies of the 10698 # variables and quote the copies for generation of the libtool script. 10699 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 10700 SED SHELL STRIP \ 10701 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10702 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10703 deplibs_check_method reload_flag reload_cmds need_locks \ 10704 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10705 lt_cv_sys_global_symbol_to_c_name_address \ 10706 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10707 old_postinstall_cmds old_postuninstall_cmds \ 10708 compiler \ 10709 CC \ 10710 LD \ 10711 lt_prog_compiler_wl \ 10712 lt_prog_compiler_pic \ 10713 lt_prog_compiler_static \ 10714 lt_prog_compiler_no_builtin_flag \ 10715 export_dynamic_flag_spec \ 10716 thread_safe_flag_spec \ 10717 whole_archive_flag_spec \ 10718 enable_shared_with_static_runtimes \ 10719 old_archive_cmds \ 10720 old_archive_from_new_cmds \ 10721 predep_objects \ 10722 postdep_objects \ 10723 predeps \ 10724 postdeps \ 10725 compiler_lib_search_path \ 10726 compiler_lib_search_dirs \ 10727 archive_cmds \ 10728 archive_expsym_cmds \ 10729 postinstall_cmds \ 10730 postuninstall_cmds \ 10731 old_archive_from_expsyms_cmds \ 10732 allow_undefined_flag \ 10733 no_undefined_flag \ 10734 export_symbols_cmds \ 10735 hardcode_libdir_flag_spec \ 10736 hardcode_libdir_flag_spec_ld \ 10737 hardcode_libdir_separator \ 10738 hardcode_automatic \ 10739 module_cmds \ 10740 module_expsym_cmds \ 10741 lt_cv_prog_compiler_c_o \ 10742 fix_srcfile_path \ 10743 exclude_expsyms \ 10744 include_expsyms; do 10745 10746 case $var in 10747 old_archive_cmds | \ 10748 old_archive_from_new_cmds | \ 10749 archive_cmds | \ 10750 archive_expsym_cmds | \ 10751 module_cmds | \ 10752 module_expsym_cmds | \ 10753 old_archive_from_expsyms_cmds | \ 10754 export_symbols_cmds | \ 10755 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10756 postinstall_cmds | postuninstall_cmds | \ 10757 old_postinstall_cmds | old_postuninstall_cmds | \ 10758 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10759 # Double-quote double-evaled strings. 10760 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10761 ;; 10762 *) 10763 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10764 ;; 10765 esac 10766 done 10767 10768 case $lt_echo in 10769 *'\$0 --fallback-echo"') 10770 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10771 ;; 10772 esac 10773 10774cfgfile="${ofile}T" 10775 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10776 $rm -f "$cfgfile" 10777 { $as_echo "$as_me:$LINENO: creating $ofile" >&5 10778$as_echo "$as_me: creating $ofile" >&6;} 10779 10780 cat <<__EOF__ >> "$cfgfile" 10781#! $SHELL 10782 10783# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10784# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10785# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10786# 10787# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 10788# Free Software Foundation, Inc. 10789# 10790# This file is part of GNU Libtool: 10791# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10792# 10793# This program is free software; you can redistribute it and/or modify 10794# it under the terms of the GNU General Public License as published by 10795# the Free Software Foundation; either version 2 of the License, or 10796# (at your option) any later version. 10797# 10798# This program is distributed in the hope that it will be useful, but 10799# WITHOUT ANY WARRANTY; without even the implied warranty of 10800# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10801# General Public License for more details. 10802# 10803# You should have received a copy of the GNU General Public License 10804# along with this program; if not, write to the Free Software 10805# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10806# 10807# As a special exception to the GNU General Public License, if you 10808# distribute this file as part of a program that contains a 10809# configuration script generated by Autoconf, you may include it under 10810# the same distribution terms that you use for the rest of that program. 10811 10812# A sed program that does not truncate output. 10813SED=$lt_SED 10814 10815# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10816Xsed="$SED -e 1s/^X//" 10817 10818# The HP-UX ksh and POSIX shell print the target directory to stdout 10819# if CDPATH is set. 10820(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10821 10822# The names of the tagged configurations supported by this script. 10823available_tags= 10824 10825# ### BEGIN LIBTOOL CONFIG 10826 10827# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10828 10829# Shell to use when invoking shell scripts. 10830SHELL=$lt_SHELL 10831 10832# Whether or not to build shared libraries. 10833build_libtool_libs=$enable_shared 10834 10835# Whether or not to build static libraries. 10836build_old_libs=$enable_static 10837 10838# Whether or not to add -lc for building shared libraries. 10839build_libtool_need_lc=$archive_cmds_need_lc 10840 10841# Whether or not to disallow shared libs when runtime libs are static 10842allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10843 10844# Whether or not to optimize for fast installation. 10845fast_install=$enable_fast_install 10846 10847# The host system. 10848host_alias=$host_alias 10849host=$host 10850host_os=$host_os 10851 10852# The build system. 10853build_alias=$build_alias 10854build=$build 10855build_os=$build_os 10856 10857# An echo program that does not interpret backslashes. 10858echo=$lt_echo 10859 10860# The archiver. 10861AR=$lt_AR 10862AR_FLAGS=$lt_AR_FLAGS 10863 10864# A C compiler. 10865LTCC=$lt_LTCC 10866 10867# LTCC compiler flags. 10868LTCFLAGS=$lt_LTCFLAGS 10869 10870# A language-specific compiler. 10871CC=$lt_compiler 10872 10873# Is the compiler the GNU C compiler? 10874with_gcc=$GCC 10875 10876# An ERE matcher. 10877EGREP=$lt_EGREP 10878 10879# The linker used to build libraries. 10880LD=$lt_LD 10881 10882# Whether we need hard or soft links. 10883LN_S=$lt_LN_S 10884 10885# A BSD-compatible nm program. 10886NM=$lt_NM 10887 10888# A symbol stripping program 10889STRIP=$lt_STRIP 10890 10891# Used to examine libraries when file_magic_cmd begins "file" 10892MAGIC_CMD=$MAGIC_CMD 10893 10894# Used on cygwin: DLL creation program. 10895DLLTOOL="$DLLTOOL" 10896 10897# Used on cygwin: object dumper. 10898OBJDUMP="$OBJDUMP" 10899 10900# Used on cygwin: assembler. 10901AS="$AS" 10902 10903# The name of the directory that contains temporary libtool files. 10904objdir=$objdir 10905 10906# How to create reloadable object files. 10907reload_flag=$lt_reload_flag 10908reload_cmds=$lt_reload_cmds 10909 10910# How to pass a linker flag through the compiler. 10911wl=$lt_lt_prog_compiler_wl 10912 10913# Object file suffix (normally "o"). 10914objext="$ac_objext" 10915 10916# Old archive suffix (normally "a"). 10917libext="$libext" 10918 10919# Shared library suffix (normally ".so"). 10920shrext_cmds='$shrext_cmds' 10921 10922# Executable file suffix (normally ""). 10923exeext="$exeext" 10924 10925# Additional compiler flags for building library objects. 10926pic_flag=$lt_lt_prog_compiler_pic 10927pic_mode=$pic_mode 10928 10929# What is the maximum length of a command? 10930max_cmd_len=$lt_cv_sys_max_cmd_len 10931 10932# Does compiler simultaneously support -c and -o options? 10933compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10934 10935# Must we lock files when doing compilation? 10936need_locks=$lt_need_locks 10937 10938# Do we need the lib prefix for modules? 10939need_lib_prefix=$need_lib_prefix 10940 10941# Do we need a version for libraries? 10942need_version=$need_version 10943 10944# Whether dlopen is supported. 10945dlopen_support=$enable_dlopen 10946 10947# Whether dlopen of programs is supported. 10948dlopen_self=$enable_dlopen_self 10949 10950# Whether dlopen of statically linked programs is supported. 10951dlopen_self_static=$enable_dlopen_self_static 10952 10953# Compiler flag to prevent dynamic linking. 10954link_static_flag=$lt_lt_prog_compiler_static 10955 10956# Compiler flag to turn off builtin functions. 10957no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10958 10959# Compiler flag to allow reflexive dlopens. 10960export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10961 10962# Compiler flag to generate shared objects directly from archives. 10963whole_archive_flag_spec=$lt_whole_archive_flag_spec 10964 10965# Compiler flag to generate thread-safe objects. 10966thread_safe_flag_spec=$lt_thread_safe_flag_spec 10967 10968# Library versioning type. 10969version_type=$version_type 10970 10971# Format of library name prefix. 10972libname_spec=$lt_libname_spec 10973 10974# List of archive names. First name is the real one, the rest are links. 10975# The last name is the one that the linker finds with -lNAME. 10976library_names_spec=$lt_library_names_spec 10977 10978# The coded name of the library, if different from the real name. 10979soname_spec=$lt_soname_spec 10980 10981# Commands used to build and install an old-style archive. 10982RANLIB=$lt_RANLIB 10983old_archive_cmds=$lt_old_archive_cmds 10984old_postinstall_cmds=$lt_old_postinstall_cmds 10985old_postuninstall_cmds=$lt_old_postuninstall_cmds 10986 10987# Create an old-style archive from a shared archive. 10988old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10989 10990# Create a temporary old-style archive to link instead of a shared archive. 10991old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10992 10993# Commands used to build and install a shared archive. 10994archive_cmds=$lt_archive_cmds 10995archive_expsym_cmds=$lt_archive_expsym_cmds 10996postinstall_cmds=$lt_postinstall_cmds 10997postuninstall_cmds=$lt_postuninstall_cmds 10998 10999# Commands used to build a loadable module (assumed same as above if empty) 11000module_cmds=$lt_module_cmds 11001module_expsym_cmds=$lt_module_expsym_cmds 11002 11003# Commands to strip libraries. 11004old_striplib=$lt_old_striplib 11005striplib=$lt_striplib 11006 11007# Dependencies to place before the objects being linked to create a 11008# shared library. 11009predep_objects=$lt_predep_objects 11010 11011# Dependencies to place after the objects being linked to create a 11012# shared library. 11013postdep_objects=$lt_postdep_objects 11014 11015# Dependencies to place before the objects being linked to create a 11016# shared library. 11017predeps=$lt_predeps 11018 11019# Dependencies to place after the objects being linked to create a 11020# shared library. 11021postdeps=$lt_postdeps 11022 11023# The directories searched by this compiler when creating a shared 11024# library 11025compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 11026 11027# The library search path used internally by the compiler when linking 11028# a shared library. 11029compiler_lib_search_path=$lt_compiler_lib_search_path 11030 11031# Method to check whether dependent libraries are shared objects. 11032deplibs_check_method=$lt_deplibs_check_method 11033 11034# Command to use when deplibs_check_method == file_magic. 11035file_magic_cmd=$lt_file_magic_cmd 11036 11037# Flag that allows shared libraries with undefined symbols to be built. 11038allow_undefined_flag=$lt_allow_undefined_flag 11039 11040# Flag that forces no undefined symbols. 11041no_undefined_flag=$lt_no_undefined_flag 11042 11043# Commands used to finish a libtool library installation in a directory. 11044finish_cmds=$lt_finish_cmds 11045 11046# Same as above, but a single script fragment to be evaled but not shown. 11047finish_eval=$lt_finish_eval 11048 11049# Take the output of nm and produce a listing of raw symbols and C names. 11050global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 11051 11052# Transform the output of nm in a proper C declaration 11053global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 11054 11055# Transform the output of nm in a C name address pair 11056global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 11057 11058# This is the shared library runtime path variable. 11059runpath_var=$runpath_var 11060 11061# This is the shared library path variable. 11062shlibpath_var=$shlibpath_var 11063 11064# Is shlibpath searched before the hard-coded library search path? 11065shlibpath_overrides_runpath=$shlibpath_overrides_runpath 11066 11067# How to hardcode a shared library path into an executable. 11068hardcode_action=$hardcode_action 11069 11070# Whether we should hardcode library paths into libraries. 11071hardcode_into_libs=$hardcode_into_libs 11072 11073# Flag to hardcode \$libdir into a binary during linking. 11074# This must work even if \$libdir does not exist. 11075hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 11076 11077# If ld is used when linking, flag to hardcode \$libdir into 11078# a binary during linking. This must work even if \$libdir does 11079# not exist. 11080hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 11081 11082# Whether we need a single -rpath flag with a separated argument. 11083hardcode_libdir_separator=$lt_hardcode_libdir_separator 11084 11085# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 11086# resulting binary. 11087hardcode_direct=$hardcode_direct 11088 11089# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 11090# resulting binary. 11091hardcode_minus_L=$hardcode_minus_L 11092 11093# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 11094# the resulting binary. 11095hardcode_shlibpath_var=$hardcode_shlibpath_var 11096 11097# Set to yes if building a shared library automatically hardcodes DIR into the library 11098# and all subsequent libraries and executables linked against it. 11099hardcode_automatic=$hardcode_automatic 11100 11101# Variables whose values should be saved in libtool wrapper scripts and 11102# restored at relink time. 11103variables_saved_for_relink="$variables_saved_for_relink" 11104 11105# Whether libtool must link a program against all its dependency libraries. 11106link_all_deplibs=$link_all_deplibs 11107 11108# Compile-time system search path for libraries 11109sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 11110 11111# Run-time system search path for libraries 11112sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 11113 11114# Fix the shell variable \$srcfile for the compiler. 11115fix_srcfile_path=$lt_fix_srcfile_path 11116 11117# Set to yes if exported symbols are required. 11118always_export_symbols=$always_export_symbols 11119 11120# The commands to list exported symbols. 11121export_symbols_cmds=$lt_export_symbols_cmds 11122 11123# The commands to extract the exported symbol list from a shared archive. 11124extract_expsyms_cmds=$lt_extract_expsyms_cmds 11125 11126# Symbols that should not be listed in the preloaded symbols. 11127exclude_expsyms=$lt_exclude_expsyms 11128 11129# Symbols that must always be exported. 11130include_expsyms=$lt_include_expsyms 11131 11132# ### END LIBTOOL CONFIG 11133 11134__EOF__ 11135 11136 11137 case $host_os in 11138 aix3*) 11139 cat <<\EOF >> "$cfgfile" 11140 11141# AIX sometimes has problems with the GCC collect2 program. For some 11142# reason, if we set the COLLECT_NAMES environment variable, the problems 11143# vanish in a puff of smoke. 11144if test "X${COLLECT_NAMES+set}" != Xset; then 11145 COLLECT_NAMES= 11146 export COLLECT_NAMES 11147fi 11148EOF 11149 ;; 11150 esac 11151 11152 # We use sed instead of cat because bash on DJGPP gets confused if 11153 # if finds mixed CR/LF and LF-only lines. Since sed operates in 11154 # text mode, it properly converts lines to CR/LF. This bash problem 11155 # is reportedly fixed, but why not run on old versions too? 11156 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 11157 11158 mv -f "$cfgfile" "$ofile" || \ 11159 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 11160 chmod +x "$ofile" 11161 11162else 11163 # If there is no Makefile yet, we rely on a make rule to execute 11164 # `config.status --recheck' to rerun these tests and create the 11165 # libtool script then. 11166 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 11167 if test -f "$ltmain_in"; then 11168 test -f Makefile && make "$ltmain" 11169 fi 11170fi 11171 11172 11173ac_ext=c 11174ac_cpp='$CPP $CPPFLAGS' 11175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11177ac_compiler_gnu=$ac_cv_c_compiler_gnu 11178 11179CC="$lt_save_CC" 11180 11181 11182# Check whether --with-tags was given. 11183if test "${with_tags+set}" = set; then 11184 withval=$with_tags; tagnames="$withval" 11185fi 11186 11187 11188if test -f "$ltmain" && test -n "$tagnames"; then 11189 if test ! -f "${ofile}"; then 11190 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 11191$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 11192 fi 11193 11194 if test -z "$LTCC"; then 11195 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 11196 if test -z "$LTCC"; then 11197 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 11198$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 11199 else 11200 { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 11201$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 11202 fi 11203 fi 11204 if test -z "$LTCFLAGS"; then 11205 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 11206 fi 11207 11208 # Extract list of available tagged configurations in $ofile. 11209 # Note that this assumes the entire list is on one line. 11210 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 11211 11212 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 11213 for tagname in $tagnames; do 11214 IFS="$lt_save_ifs" 11215 # Check whether tagname contains only valid characters 11216 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 11217 "") ;; 11218 *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 11219$as_echo "$as_me: error: invalid tag name: $tagname" >&2;} 11220 { (exit 1); exit 1; }; } 11221 ;; 11222 esac 11223 11224 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 11225 then 11226 { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 11227$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 11228 { (exit 1); exit 1; }; } 11229 fi 11230 11231 # Update the list of available tags. 11232 if test -n "$tagname"; then 11233 echo appending configuration tag \"$tagname\" to $ofile 11234 11235 case $tagname in 11236 CXX) 11237 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 11238 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 11239 (test "X$CXX" != "Xg++"))) ; then 11240 ac_ext=cpp 11241ac_cpp='$CXXCPP $CPPFLAGS' 11242ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11243ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11244ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11245 11246 11247 11248 11249archive_cmds_need_lc_CXX=no 11250allow_undefined_flag_CXX= 11251always_export_symbols_CXX=no 11252archive_expsym_cmds_CXX= 11253export_dynamic_flag_spec_CXX= 11254hardcode_direct_CXX=no 11255hardcode_libdir_flag_spec_CXX= 11256hardcode_libdir_flag_spec_ld_CXX= 11257hardcode_libdir_separator_CXX= 11258hardcode_minus_L_CXX=no 11259hardcode_shlibpath_var_CXX=unsupported 11260hardcode_automatic_CXX=no 11261module_cmds_CXX= 11262module_expsym_cmds_CXX= 11263link_all_deplibs_CXX=unknown 11264old_archive_cmds_CXX=$old_archive_cmds 11265no_undefined_flag_CXX= 11266whole_archive_flag_spec_CXX= 11267enable_shared_with_static_runtimes_CXX=no 11268 11269# Dependencies to place before and after the object being linked: 11270predep_objects_CXX= 11271postdep_objects_CXX= 11272predeps_CXX= 11273postdeps_CXX= 11274compiler_lib_search_path_CXX= 11275compiler_lib_search_dirs_CXX= 11276 11277# Source file extension for C++ test sources. 11278ac_ext=cpp 11279 11280# Object file extension for compiled C++ test sources. 11281objext=o 11282objext_CXX=$objext 11283 11284# Code to be used in simple compile tests 11285lt_simple_compile_test_code="int some_variable = 0;" 11286 11287# Code to be used in simple link tests 11288lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 11289 11290# ltmain only uses $CC for tagged configurations so make sure $CC is set. 11291 11292# If no C compiler was specified, use CC. 11293LTCC=${LTCC-"$CC"} 11294 11295# If no C compiler flags were specified, use CFLAGS. 11296LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11297 11298# Allow CC to be a program name with arguments. 11299compiler=$CC 11300 11301 11302# save warnings/boilerplate of simple test code 11303ac_outfile=conftest.$ac_objext 11304echo "$lt_simple_compile_test_code" >conftest.$ac_ext 11305eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11306_lt_compiler_boilerplate=`cat conftest.err` 11307$rm conftest* 11308 11309ac_outfile=conftest.$ac_objext 11310echo "$lt_simple_link_test_code" >conftest.$ac_ext 11311eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11312_lt_linker_boilerplate=`cat conftest.err` 11313$rm -r conftest* 11314 11315 11316# Allow CC to be a program name with arguments. 11317lt_save_CC=$CC 11318lt_save_LD=$LD 11319lt_save_GCC=$GCC 11320GCC=$GXX 11321lt_save_with_gnu_ld=$with_gnu_ld 11322lt_save_path_LD=$lt_cv_path_LD 11323if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11324 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11325else 11326 $as_unset lt_cv_prog_gnu_ld 11327fi 11328if test -n "${lt_cv_path_LDCXX+set}"; then 11329 lt_cv_path_LD=$lt_cv_path_LDCXX 11330else 11331 $as_unset lt_cv_path_LD 11332fi 11333test -z "${LDCXX+set}" || LD=$LDCXX 11334CC=${CXX-"c++"} 11335compiler=$CC 11336compiler_CXX=$CC 11337for cc_temp in $compiler""; do 11338 case $cc_temp in 11339 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11340 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11341 \-*) ;; 11342 *) break;; 11343 esac 11344done 11345cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 11346 11347 11348# We don't want -fno-exception wen compiling C++ code, so set the 11349# no_builtin_flag separately 11350if test "$GXX" = yes; then 11351 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11352else 11353 lt_prog_compiler_no_builtin_flag_CXX= 11354fi 11355 11356if test "$GXX" = yes; then 11357 # Set up default GNU C++ configuration 11358 11359 11360# Check whether --with-gnu-ld was given. 11361if test "${with_gnu_ld+set}" = set; then 11362 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11363else 11364 with_gnu_ld=no 11365fi 11366 11367ac_prog=ld 11368if test "$GCC" = yes; then 11369 # Check if gcc -print-prog-name=ld gives a path. 11370 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 11371$as_echo_n "checking for ld used by $CC... " >&6; } 11372 case $host in 11373 *-*-mingw*) 11374 # gcc leaves a trailing carriage return which upsets mingw 11375 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11376 *) 11377 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11378 esac 11379 case $ac_prog in 11380 # Accept absolute paths. 11381 [\\/]* | ?:[\\/]*) 11382 re_direlt='/[^/][^/]*/\.\./' 11383 # Canonicalize the pathname of ld 11384 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 11385 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 11386 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 11387 done 11388 test -z "$LD" && LD="$ac_prog" 11389 ;; 11390 "") 11391 # If it fails, then pretend we aren't using GCC. 11392 ac_prog=ld 11393 ;; 11394 *) 11395 # If it is relative, then search for the first ld in PATH. 11396 with_gnu_ld=unknown 11397 ;; 11398 esac 11399elif test "$with_gnu_ld" = yes; then 11400 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 11401$as_echo_n "checking for GNU ld... " >&6; } 11402else 11403 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 11404$as_echo_n "checking for non-GNU ld... " >&6; } 11405fi 11406if test "${lt_cv_path_LD+set}" = set; then 11407 $as_echo_n "(cached) " >&6 11408else 11409 if test -z "$LD"; then 11410 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11411 for ac_dir in $PATH; do 11412 IFS="$lt_save_ifs" 11413 test -z "$ac_dir" && ac_dir=. 11414 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11415 lt_cv_path_LD="$ac_dir/$ac_prog" 11416 # Check to see if the program is GNU ld. I'd rather use --version, 11417 # but apparently some variants of GNU ld only accept -v. 11418 # Break only if it was the GNU/non-GNU ld that we prefer. 11419 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11420 *GNU* | *'with BFD'*) 11421 test "$with_gnu_ld" != no && break 11422 ;; 11423 *) 11424 test "$with_gnu_ld" != yes && break 11425 ;; 11426 esac 11427 fi 11428 done 11429 IFS="$lt_save_ifs" 11430else 11431 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11432fi 11433fi 11434 11435LD="$lt_cv_path_LD" 11436if test -n "$LD"; then 11437 { $as_echo "$as_me:$LINENO: result: $LD" >&5 11438$as_echo "$LD" >&6; } 11439else 11440 { $as_echo "$as_me:$LINENO: result: no" >&5 11441$as_echo "no" >&6; } 11442fi 11443test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 11444$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 11445 { (exit 1); exit 1; }; } 11446{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 11447$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11448if test "${lt_cv_prog_gnu_ld+set}" = set; then 11449 $as_echo_n "(cached) " >&6 11450else 11451 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11452case `$LD -v 2>&1 </dev/null` in 11453*GNU* | *'with BFD'*) 11454 lt_cv_prog_gnu_ld=yes 11455 ;; 11456*) 11457 lt_cv_prog_gnu_ld=no 11458 ;; 11459esac 11460fi 11461{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 11462$as_echo "$lt_cv_prog_gnu_ld" >&6; } 11463with_gnu_ld=$lt_cv_prog_gnu_ld 11464 11465 11466 11467 # Check if GNU C++ uses GNU ld as the underlying linker, since the 11468 # archiving commands below assume that GNU ld is being used. 11469 if test "$with_gnu_ld" = yes; then 11470 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11471 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' 11472 11473 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11474 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11475 11476 # If archive_cmds runs LD, not CC, wlarc should be empty 11477 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 11478 # investigate it a little bit more. (MM) 11479 wlarc='${wl}' 11480 11481 # ancient GNU ld didn't support --whole-archive et. al. 11482 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 11483 grep 'no-whole-archive' > /dev/null; then 11484 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11485 else 11486 whole_archive_flag_spec_CXX= 11487 fi 11488 else 11489 with_gnu_ld=no 11490 wlarc= 11491 11492 # A generic and very simple default shared library creation 11493 # command for GNU C++ for the case where it uses the native 11494 # linker, instead of GNU ld. If possible, this setting should 11495 # overridden to take advantage of the native linker features on 11496 # the platform it is being used on. 11497 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11498 fi 11499 11500 # Commands to make compiler produce verbose output that lists 11501 # what "hidden" libraries, object files and flags are used when 11502 # linking a shared library. 11503 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11504 11505else 11506 GXX=no 11507 with_gnu_ld=no 11508 wlarc= 11509fi 11510 11511# PORTME: fill in a description of your system's C++ link characteristics 11512{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11513$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 11514ld_shlibs_CXX=yes 11515case $host_os in 11516 aix3*) 11517 # FIXME: insert proper C++ library support 11518 ld_shlibs_CXX=no 11519 ;; 11520 aix[4-9]*) 11521 if test "$host_cpu" = ia64; then 11522 # On IA64, the linker does run time linking by default, so we don't 11523 # have to do anything special. 11524 aix_use_runtimelinking=no 11525 exp_sym_flag='-Bexport' 11526 no_entry_flag="" 11527 else 11528 aix_use_runtimelinking=no 11529 11530 # Test if we are trying to use run time linking or normal 11531 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11532 # need to do runtime linking. 11533 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11534 for ld_flag in $LDFLAGS; do 11535 case $ld_flag in 11536 *-brtl*) 11537 aix_use_runtimelinking=yes 11538 break 11539 ;; 11540 esac 11541 done 11542 ;; 11543 esac 11544 11545 exp_sym_flag='-bexport' 11546 no_entry_flag='-bnoentry' 11547 fi 11548 11549 # When large executables or shared objects are built, AIX ld can 11550 # have problems creating the table of contents. If linking a library 11551 # or program results in "error TOC overflow" add -mminimal-toc to 11552 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11553 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11554 11555 archive_cmds_CXX='' 11556 hardcode_direct_CXX=yes 11557 hardcode_libdir_separator_CXX=':' 11558 link_all_deplibs_CXX=yes 11559 11560 if test "$GXX" = yes; then 11561 case $host_os in aix4.[012]|aix4.[012].*) 11562 # We only want to do this on AIX 4.2 and lower, the check 11563 # below for broken collect2 doesn't work under 4.3+ 11564 collect2name=`${CC} -print-prog-name=collect2` 11565 if test -f "$collect2name" && \ 11566 strings "$collect2name" | grep resolve_lib_name >/dev/null 11567 then 11568 # We have reworked collect2 11569 : 11570 else 11571 # We have old collect2 11572 hardcode_direct_CXX=unsupported 11573 # It fails to find uninstalled libraries when the uninstalled 11574 # path is not listed in the libpath. Setting hardcode_minus_L 11575 # to unsupported forces relinking 11576 hardcode_minus_L_CXX=yes 11577 hardcode_libdir_flag_spec_CXX='-L$libdir' 11578 hardcode_libdir_separator_CXX= 11579 fi 11580 ;; 11581 esac 11582 shared_flag='-shared' 11583 if test "$aix_use_runtimelinking" = yes; then 11584 shared_flag="$shared_flag "'${wl}-G' 11585 fi 11586 else 11587 # not using gcc 11588 if test "$host_cpu" = ia64; then 11589 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11590 # chokes on -Wl,-G. The following line is correct: 11591 shared_flag='-G' 11592 else 11593 if test "$aix_use_runtimelinking" = yes; then 11594 shared_flag='${wl}-G' 11595 else 11596 shared_flag='${wl}-bM:SRE' 11597 fi 11598 fi 11599 fi 11600 11601 # It seems that -bexpall does not export symbols beginning with 11602 # underscore (_), so it is better to generate a list of symbols to export. 11603 always_export_symbols_CXX=yes 11604 if test "$aix_use_runtimelinking" = yes; then 11605 # Warning - without using the other runtime loading flags (-brtl), 11606 # -berok will link without error, but may produce a broken library. 11607 allow_undefined_flag_CXX='-berok' 11608 # Determine the default libpath from the value encoded in an empty executable. 11609 cat >conftest.$ac_ext <<_ACEOF 11610/* confdefs.h. */ 11611_ACEOF 11612cat confdefs.h >>conftest.$ac_ext 11613cat >>conftest.$ac_ext <<_ACEOF 11614/* end confdefs.h. */ 11615 11616int 11617main () 11618{ 11619 11620 ; 11621 return 0; 11622} 11623_ACEOF 11624rm -f conftest.$ac_objext conftest$ac_exeext 11625if { (ac_try="$ac_link" 11626case "(($ac_try" in 11627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11628 *) ac_try_echo=$ac_try;; 11629esac 11630eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11631$as_echo "$ac_try_echo") >&5 11632 (eval "$ac_link") 2>conftest.er1 11633 ac_status=$? 11634 grep -v '^ *+' conftest.er1 >conftest.err 11635 rm -f conftest.er1 11636 cat conftest.err >&5 11637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11638 (exit $ac_status); } && { 11639 test -z "$ac_cxx_werror_flag" || 11640 test ! -s conftest.err 11641 } && test -s conftest$ac_exeext && { 11642 test "$cross_compiling" = yes || 11643 $as_test_x conftest$ac_exeext 11644 }; then 11645 11646lt_aix_libpath_sed=' 11647 /Import File Strings/,/^$/ { 11648 /^0/ { 11649 s/^0 *\(.*\)$/\1/ 11650 p 11651 } 11652 }' 11653aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11654# Check for a 64-bit object if we didn't find anything. 11655if test -z "$aix_libpath"; then 11656 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11657fi 11658else 11659 $as_echo "$as_me: failed program was:" >&5 11660sed 's/^/| /' conftest.$ac_ext >&5 11661 11662 11663fi 11664 11665rm -rf conftest.dSYM 11666rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11667 conftest$ac_exeext conftest.$ac_ext 11668if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11669 11670 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11671 11672 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" 11673 else 11674 if test "$host_cpu" = ia64; then 11675 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11676 allow_undefined_flag_CXX="-z nodefs" 11677 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" 11678 else 11679 # Determine the default libpath from the value encoded in an empty executable. 11680 cat >conftest.$ac_ext <<_ACEOF 11681/* confdefs.h. */ 11682_ACEOF 11683cat confdefs.h >>conftest.$ac_ext 11684cat >>conftest.$ac_ext <<_ACEOF 11685/* end confdefs.h. */ 11686 11687int 11688main () 11689{ 11690 11691 ; 11692 return 0; 11693} 11694_ACEOF 11695rm -f conftest.$ac_objext conftest$ac_exeext 11696if { (ac_try="$ac_link" 11697case "(($ac_try" in 11698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11699 *) ac_try_echo=$ac_try;; 11700esac 11701eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11702$as_echo "$ac_try_echo") >&5 11703 (eval "$ac_link") 2>conftest.er1 11704 ac_status=$? 11705 grep -v '^ *+' conftest.er1 >conftest.err 11706 rm -f conftest.er1 11707 cat conftest.err >&5 11708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11709 (exit $ac_status); } && { 11710 test -z "$ac_cxx_werror_flag" || 11711 test ! -s conftest.err 11712 } && test -s conftest$ac_exeext && { 11713 test "$cross_compiling" = yes || 11714 $as_test_x conftest$ac_exeext 11715 }; then 11716 11717lt_aix_libpath_sed=' 11718 /Import File Strings/,/^$/ { 11719 /^0/ { 11720 s/^0 *\(.*\)$/\1/ 11721 p 11722 } 11723 }' 11724aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11725# Check for a 64-bit object if we didn't find anything. 11726if test -z "$aix_libpath"; then 11727 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11728fi 11729else 11730 $as_echo "$as_me: failed program was:" >&5 11731sed 's/^/| /' conftest.$ac_ext >&5 11732 11733 11734fi 11735 11736rm -rf conftest.dSYM 11737rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11738 conftest$ac_exeext conftest.$ac_ext 11739if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11740 11741 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11742 # Warning - without using the other run time loading flags, 11743 # -berok will link without error, but may produce a broken library. 11744 no_undefined_flag_CXX=' ${wl}-bernotok' 11745 allow_undefined_flag_CXX=' ${wl}-berok' 11746 # Exported symbols can be pulled into shared objects from archives 11747 whole_archive_flag_spec_CXX='$convenience' 11748 archive_cmds_need_lc_CXX=yes 11749 # This is similar to how AIX traditionally builds its shared libraries. 11750 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' 11751 fi 11752 fi 11753 ;; 11754 11755 beos*) 11756 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11757 allow_undefined_flag_CXX=unsupported 11758 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11759 # support --undefined. This deserves some investigation. FIXME 11760 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11761 else 11762 ld_shlibs_CXX=no 11763 fi 11764 ;; 11765 11766 chorus*) 11767 case $cc_basename in 11768 *) 11769 # FIXME: insert proper C++ library support 11770 ld_shlibs_CXX=no 11771 ;; 11772 esac 11773 ;; 11774 11775 cygwin* | mingw* | pw32*) 11776 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11777 # as there is no search path for DLLs. 11778 hardcode_libdir_flag_spec_CXX='-L$libdir' 11779 allow_undefined_flag_CXX=unsupported 11780 always_export_symbols_CXX=no 11781 enable_shared_with_static_runtimes_CXX=yes 11782 11783 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11784 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' 11785 # If the export-symbols file already is a .def file (1st line 11786 # is EXPORTS), use it as is; otherwise, prepend... 11787 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11788 cp $export_symbols $output_objdir/$soname.def; 11789 else 11790 echo EXPORTS > $output_objdir/$soname.def; 11791 cat $export_symbols >> $output_objdir/$soname.def; 11792 fi~ 11793 $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' 11794 else 11795 ld_shlibs_CXX=no 11796 fi 11797 ;; 11798 darwin* | rhapsody*) 11799 archive_cmds_need_lc_CXX=no 11800 hardcode_direct_CXX=no 11801 hardcode_automatic_CXX=yes 11802 hardcode_shlibpath_var_CXX=unsupported 11803 whole_archive_flag_spec_CXX='' 11804 link_all_deplibs_CXX=yes 11805 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 11806 if test "$GXX" = yes ; then 11807 output_verbose_link_cmd='echo' 11808 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}" 11809 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 11810 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}" 11811 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}" 11812 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 11813 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}" 11814 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}" 11815 fi 11816 else 11817 case $cc_basename in 11818 xlc*) 11819 output_verbose_link_cmd='echo' 11820 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' 11821 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11822 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11823 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}' 11824 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}' 11825 ;; 11826 *) 11827 ld_shlibs_CXX=no 11828 ;; 11829 esac 11830 fi 11831 ;; 11832 11833 dgux*) 11834 case $cc_basename in 11835 ec++*) 11836 # FIXME: insert proper C++ library support 11837 ld_shlibs_CXX=no 11838 ;; 11839 ghcx*) 11840 # Green Hills C++ Compiler 11841 # FIXME: insert proper C++ library support 11842 ld_shlibs_CXX=no 11843 ;; 11844 *) 11845 # FIXME: insert proper C++ library support 11846 ld_shlibs_CXX=no 11847 ;; 11848 esac 11849 ;; 11850 freebsd[12]*) 11851 # C++ shared libraries reported to be fairly broken before switch to ELF 11852 ld_shlibs_CXX=no 11853 ;; 11854 freebsd-elf*) 11855 archive_cmds_need_lc_CXX=no 11856 ;; 11857 freebsd* | dragonfly*) 11858 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11859 # conventions 11860 ld_shlibs_CXX=yes 11861 ;; 11862 gnu*) 11863 ;; 11864 hpux9*) 11865 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11866 hardcode_libdir_separator_CXX=: 11867 export_dynamic_flag_spec_CXX='${wl}-E' 11868 hardcode_direct_CXX=yes 11869 hardcode_minus_L_CXX=yes # Not in the search PATH, 11870 # but as the default 11871 # location of the library. 11872 11873 case $cc_basename in 11874 CC*) 11875 # FIXME: insert proper C++ library support 11876 ld_shlibs_CXX=no 11877 ;; 11878 aCC*) 11879 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' 11880 # Commands to make compiler produce verbose output that lists 11881 # what "hidden" libraries, object files and flags are used when 11882 # linking a shared library. 11883 # 11884 # There doesn't appear to be a way to prevent this compiler from 11885 # explicitly linking system object files so we need to strip them 11886 # from the output so that they don't get included in the library 11887 # dependencies. 11888 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' 11889 ;; 11890 *) 11891 if test "$GXX" = yes; then 11892 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' 11893 else 11894 # FIXME: insert proper C++ library support 11895 ld_shlibs_CXX=no 11896 fi 11897 ;; 11898 esac 11899 ;; 11900 hpux10*|hpux11*) 11901 if test $with_gnu_ld = no; then 11902 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11903 hardcode_libdir_separator_CXX=: 11904 11905 case $host_cpu in 11906 hppa*64*|ia64*) ;; 11907 *) 11908 export_dynamic_flag_spec_CXX='${wl}-E' 11909 ;; 11910 esac 11911 fi 11912 case $host_cpu in 11913 hppa*64*|ia64*) 11914 hardcode_direct_CXX=no 11915 hardcode_shlibpath_var_CXX=no 11916 ;; 11917 *) 11918 hardcode_direct_CXX=yes 11919 hardcode_minus_L_CXX=yes # Not in the search PATH, 11920 # but as the default 11921 # location of the library. 11922 ;; 11923 esac 11924 11925 case $cc_basename in 11926 CC*) 11927 # FIXME: insert proper C++ library support 11928 ld_shlibs_CXX=no 11929 ;; 11930 aCC*) 11931 case $host_cpu in 11932 hppa*64*) 11933 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11934 ;; 11935 ia64*) 11936 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11937 ;; 11938 *) 11939 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11940 ;; 11941 esac 11942 # Commands to make compiler produce verbose output that lists 11943 # what "hidden" libraries, object files and flags are used when 11944 # linking a shared library. 11945 # 11946 # There doesn't appear to be a way to prevent this compiler from 11947 # explicitly linking system object files so we need to strip them 11948 # from the output so that they don't get included in the library 11949 # dependencies. 11950 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' 11951 ;; 11952 *) 11953 if test "$GXX" = yes; then 11954 if test $with_gnu_ld = no; then 11955 case $host_cpu in 11956 hppa*64*) 11957 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11958 ;; 11959 ia64*) 11960 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11961 ;; 11962 *) 11963 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' 11964 ;; 11965 esac 11966 fi 11967 else 11968 # FIXME: insert proper C++ library support 11969 ld_shlibs_CXX=no 11970 fi 11971 ;; 11972 esac 11973 ;; 11974 interix[3-9]*) 11975 hardcode_direct_CXX=no 11976 hardcode_shlibpath_var_CXX=no 11977 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11978 export_dynamic_flag_spec_CXX='${wl}-E' 11979 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11980 # Instead, shared libraries are loaded at an image base (0x10000000 by 11981 # default) and relocated if they conflict, which is a slow very memory 11982 # consuming and fragmenting process. To avoid this, we pick a random, 11983 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11984 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11985 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' 11986 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' 11987 ;; 11988 irix5* | irix6*) 11989 case $cc_basename in 11990 CC*) 11991 # SGI C++ 11992 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' 11993 11994 # Archives containing C++ object files must be created using 11995 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11996 # necessary to make sure instantiated templates are included 11997 # in the archive. 11998 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11999 ;; 12000 *) 12001 if test "$GXX" = yes; then 12002 if test "$with_gnu_ld" = no; then 12003 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' 12004 else 12005 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' 12006 fi 12007 fi 12008 link_all_deplibs_CXX=yes 12009 ;; 12010 esac 12011 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12012 hardcode_libdir_separator_CXX=: 12013 ;; 12014 linux* | k*bsd*-gnu) 12015 case $cc_basename in 12016 KCC*) 12017 # Kuck and Associates, Inc. (KAI) C++ Compiler 12018 12019 # KCC will only create a shared library if the output file 12020 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12021 # to its proper name (with version) after linking. 12022 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' 12023 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' 12024 # Commands to make compiler produce verbose output that lists 12025 # what "hidden" libraries, object files and flags are used when 12026 # linking a shared library. 12027 # 12028 # There doesn't appear to be a way to prevent this compiler from 12029 # explicitly linking system object files so we need to strip them 12030 # from the output so that they don't get included in the library 12031 # dependencies. 12032 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' 12033 12034 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 12035 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12036 12037 # Archives containing C++ object files must be created using 12038 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12039 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12040 ;; 12041 icpc*) 12042 # Intel C++ 12043 with_gnu_ld=yes 12044 # version 8.0 and above of icpc choke on multiply defined symbols 12045 # if we add $predep_objects and $postdep_objects, however 7.1 and 12046 # earlier do not add the objects themselves. 12047 case `$CC -V 2>&1` in 12048 *"Version 7."*) 12049 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12050 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' 12051 ;; 12052 *) # Version 8.0 or newer 12053 tmp_idyn= 12054 case $host_cpu in 12055 ia64*) tmp_idyn=' -i_dynamic';; 12056 esac 12057 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12058 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' 12059 ;; 12060 esac 12061 archive_cmds_need_lc_CXX=no 12062 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12063 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12064 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12065 ;; 12066 pgCC* | pgcpp*) 12067 # Portland Group C++ compiler 12068 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12069 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' 12070 12071 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 12072 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12073 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' 12074 ;; 12075 cxx*) 12076 # Compaq C++ 12077 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12078 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' 12079 12080 runpath_var=LD_RUN_PATH 12081 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12082 hardcode_libdir_separator_CXX=: 12083 12084 # Commands to make compiler produce verbose output that lists 12085 # what "hidden" libraries, object files and flags are used when 12086 # linking a shared library. 12087 # 12088 # There doesn't appear to be a way to prevent this compiler from 12089 # explicitly linking system object files so we need to strip them 12090 # from the output so that they don't get included in the library 12091 # dependencies. 12092 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' 12093 ;; 12094 *) 12095 case `$CC -V 2>&1 | sed 5q` in 12096 *Sun\ C*) 12097 # Sun C++ 5.9 12098 no_undefined_flag_CXX=' -zdefs' 12099 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12100 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' 12101 hardcode_libdir_flag_spec_CXX='-R$libdir' 12102 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' 12103 12104 # Not sure whether something based on 12105 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 12106 # would be better. 12107 output_verbose_link_cmd='echo' 12108 12109 # Archives containing C++ object files must be created using 12110 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12111 # necessary to make sure instantiated templates are included 12112 # in the archive. 12113 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12114 ;; 12115 esac 12116 ;; 12117 esac 12118 ;; 12119 lynxos*) 12120 # FIXME: insert proper C++ library support 12121 ld_shlibs_CXX=no 12122 ;; 12123 m88k*) 12124 # FIXME: insert proper C++ library support 12125 ld_shlibs_CXX=no 12126 ;; 12127 mvs*) 12128 case $cc_basename in 12129 cxx*) 12130 # FIXME: insert proper C++ library support 12131 ld_shlibs_CXX=no 12132 ;; 12133 *) 12134 # FIXME: insert proper C++ library support 12135 ld_shlibs_CXX=no 12136 ;; 12137 esac 12138 ;; 12139 netbsd*) 12140 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12141 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 12142 wlarc= 12143 hardcode_libdir_flag_spec_CXX='-R$libdir' 12144 hardcode_direct_CXX=yes 12145 hardcode_shlibpath_var_CXX=no 12146 fi 12147 # Workaround some broken pre-1.5 toolchains 12148 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 12149 ;; 12150 openbsd2*) 12151 # C++ shared libraries are fairly broken 12152 ld_shlibs_CXX=no 12153 ;; 12154 openbsd*) 12155 if test -f /usr/libexec/ld.so; then 12156 hardcode_direct_CXX=yes 12157 hardcode_shlibpath_var_CXX=no 12158 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12159 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12160 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12161 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 12162 export_dynamic_flag_spec_CXX='${wl}-E' 12163 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12164 fi 12165 output_verbose_link_cmd='echo' 12166 else 12167 ld_shlibs_CXX=no 12168 fi 12169 ;; 12170 osf3*) 12171 case $cc_basename in 12172 KCC*) 12173 # Kuck and Associates, Inc. (KAI) C++ Compiler 12174 12175 # KCC will only create a shared library if the output file 12176 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12177 # to its proper name (with version) after linking. 12178 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' 12179 12180 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12181 hardcode_libdir_separator_CXX=: 12182 12183 # Archives containing C++ object files must be created using 12184 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12185 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12186 12187 ;; 12188 RCC*) 12189 # Rational C++ 2.4.1 12190 # FIXME: insert proper C++ library support 12191 ld_shlibs_CXX=no 12192 ;; 12193 cxx*) 12194 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12195 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' 12196 12197 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12198 hardcode_libdir_separator_CXX=: 12199 12200 # Commands to make compiler produce verbose output that lists 12201 # what "hidden" libraries, object files and flags are used when 12202 # linking a shared library. 12203 # 12204 # There doesn't appear to be a way to prevent this compiler from 12205 # explicitly linking system object files so we need to strip them 12206 # from the output so that they don't get included in the library 12207 # dependencies. 12208 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' 12209 ;; 12210 *) 12211 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12212 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12213 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' 12214 12215 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12216 hardcode_libdir_separator_CXX=: 12217 12218 # Commands to make compiler produce verbose output that lists 12219 # what "hidden" libraries, object files and flags are used when 12220 # linking a shared library. 12221 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12222 12223 else 12224 # FIXME: insert proper C++ library support 12225 ld_shlibs_CXX=no 12226 fi 12227 ;; 12228 esac 12229 ;; 12230 osf4* | osf5*) 12231 case $cc_basename in 12232 KCC*) 12233 # Kuck and Associates, Inc. (KAI) C++ Compiler 12234 12235 # KCC will only create a shared library if the output file 12236 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12237 # to its proper name (with version) after linking. 12238 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' 12239 12240 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12241 hardcode_libdir_separator_CXX=: 12242 12243 # Archives containing C++ object files must be created using 12244 # the KAI C++ compiler. 12245 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 12246 ;; 12247 RCC*) 12248 # Rational C++ 2.4.1 12249 # FIXME: insert proper C++ library support 12250 ld_shlibs_CXX=no 12251 ;; 12252 cxx*) 12253 allow_undefined_flag_CXX=' -expect_unresolved \*' 12254 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' 12255 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12256 echo "-hidden">> $lib.exp~ 12257 $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~ 12258 $rm $lib.exp' 12259 12260 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12261 hardcode_libdir_separator_CXX=: 12262 12263 # Commands to make compiler produce verbose output that lists 12264 # what "hidden" libraries, object files and flags are used when 12265 # linking a shared library. 12266 # 12267 # There doesn't appear to be a way to prevent this compiler from 12268 # explicitly linking system object files so we need to strip them 12269 # from the output so that they don't get included in the library 12270 # dependencies. 12271 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' 12272 ;; 12273 *) 12274 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12275 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12276 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' 12277 12278 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12279 hardcode_libdir_separator_CXX=: 12280 12281 # Commands to make compiler produce verbose output that lists 12282 # what "hidden" libraries, object files and flags are used when 12283 # linking a shared library. 12284 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12285 12286 else 12287 # FIXME: insert proper C++ library support 12288 ld_shlibs_CXX=no 12289 fi 12290 ;; 12291 esac 12292 ;; 12293 psos*) 12294 # FIXME: insert proper C++ library support 12295 ld_shlibs_CXX=no 12296 ;; 12297 sunos4*) 12298 case $cc_basename in 12299 CC*) 12300 # Sun C++ 4.x 12301 # FIXME: insert proper C++ library support 12302 ld_shlibs_CXX=no 12303 ;; 12304 lcc*) 12305 # Lucid 12306 # FIXME: insert proper C++ library support 12307 ld_shlibs_CXX=no 12308 ;; 12309 *) 12310 # FIXME: insert proper C++ library support 12311 ld_shlibs_CXX=no 12312 ;; 12313 esac 12314 ;; 12315 solaris*) 12316 case $cc_basename in 12317 CC*) 12318 # Sun C++ 4.2, 5.x and Centerline C++ 12319 archive_cmds_need_lc_CXX=yes 12320 no_undefined_flag_CXX=' -zdefs' 12321 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12322 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12323 $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' 12324 12325 hardcode_libdir_flag_spec_CXX='-R$libdir' 12326 hardcode_shlibpath_var_CXX=no 12327 case $host_os in 12328 solaris2.[0-5] | solaris2.[0-5].*) ;; 12329 *) 12330 # The compiler driver will combine and reorder linker options, 12331 # but understands `-z linker_flag'. 12332 # Supported since Solaris 2.6 (maybe 2.5.1?) 12333 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 12334 ;; 12335 esac 12336 link_all_deplibs_CXX=yes 12337 12338 output_verbose_link_cmd='echo' 12339 12340 # Archives containing C++ object files must be created using 12341 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12342 # necessary to make sure instantiated templates are included 12343 # in the archive. 12344 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12345 ;; 12346 gcx*) 12347 # Green Hills C++ Compiler 12348 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12349 12350 # The C++ compiler must be used to create the archive. 12351 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12352 ;; 12353 *) 12354 # GNU C++ compiler with Solaris linker 12355 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12356 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12357 if $CC --version | grep -v '^2\.7' > /dev/null; then 12358 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12359 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12360 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12361 12362 # Commands to make compiler produce verbose output that lists 12363 # what "hidden" libraries, object files and flags are used when 12364 # linking a shared library. 12365 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12366 else 12367 # g++ 2.7 appears to require `-G' NOT `-shared' on this 12368 # platform. 12369 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12370 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12371 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12372 12373 # Commands to make compiler produce verbose output that lists 12374 # what "hidden" libraries, object files and flags are used when 12375 # linking a shared library. 12376 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12377 fi 12378 12379 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12380 case $host_os in 12381 solaris2.[0-5] | solaris2.[0-5].*) ;; 12382 *) 12383 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 12384 ;; 12385 esac 12386 fi 12387 ;; 12388 esac 12389 ;; 12390 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12391 no_undefined_flag_CXX='${wl}-z,text' 12392 archive_cmds_need_lc_CXX=no 12393 hardcode_shlibpath_var_CXX=no 12394 runpath_var='LD_RUN_PATH' 12395 12396 case $cc_basename in 12397 CC*) 12398 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12399 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12400 ;; 12401 *) 12402 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12403 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12404 ;; 12405 esac 12406 ;; 12407 sysv5* | sco3.2v5* | sco5v6*) 12408 # Note: We can NOT use -z defs as we might desire, because we do not 12409 # link with -lc, and that would cause any symbols used from libc to 12410 # always be unresolved, which means just about no library would 12411 # ever link correctly. If we're not using GNU ld we use -z text 12412 # though, which does catch some bad symbols but isn't as heavy-handed 12413 # as -z defs. 12414 # For security reasons, it is highly recommended that you always 12415 # use absolute paths for naming shared libraries, and exclude the 12416 # DT_RUNPATH tag from executables and libraries. But doing so 12417 # requires that you compile everything twice, which is a pain. 12418 # So that behaviour is only enabled if SCOABSPATH is set to a 12419 # non-empty value in the environment. Most likely only useful for 12420 # creating official distributions of packages. 12421 # This is a hack until libtool officially supports absolute path 12422 # names for shared libraries. 12423 no_undefined_flag_CXX='${wl}-z,text' 12424 allow_undefined_flag_CXX='${wl}-z,nodefs' 12425 archive_cmds_need_lc_CXX=no 12426 hardcode_shlibpath_var_CXX=no 12427 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 12428 hardcode_libdir_separator_CXX=':' 12429 link_all_deplibs_CXX=yes 12430 export_dynamic_flag_spec_CXX='${wl}-Bexport' 12431 runpath_var='LD_RUN_PATH' 12432 12433 case $cc_basename in 12434 CC*) 12435 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12436 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12437 ;; 12438 *) 12439 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12440 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12441 ;; 12442 esac 12443 ;; 12444 tandem*) 12445 case $cc_basename in 12446 NCC*) 12447 # NonStop-UX NCC 3.20 12448 # FIXME: insert proper C++ library support 12449 ld_shlibs_CXX=no 12450 ;; 12451 *) 12452 # FIXME: insert proper C++ library support 12453 ld_shlibs_CXX=no 12454 ;; 12455 esac 12456 ;; 12457 vxworks*) 12458 # FIXME: insert proper C++ library support 12459 ld_shlibs_CXX=no 12460 ;; 12461 *) 12462 # FIXME: insert proper C++ library support 12463 ld_shlibs_CXX=no 12464 ;; 12465esac 12466{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12467$as_echo "$ld_shlibs_CXX" >&6; } 12468test "$ld_shlibs_CXX" = no && can_build_shared=no 12469 12470GCC_CXX="$GXX" 12471LD_CXX="$LD" 12472 12473cat > conftest.$ac_ext <<EOF 12474class Foo 12475{ 12476public: 12477 Foo (void) { a = 0; } 12478private: 12479 int a; 12480}; 12481EOF 12482 12483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12484 (eval $ac_compile) 2>&5 12485 ac_status=$? 12486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12487 (exit $ac_status); }; then 12488 # Parse the compiler output and extract the necessary 12489 # objects, libraries and library flags. 12490 12491 # Sentinel used to keep track of whether or not we are before 12492 # the conftest object file. 12493 pre_test_object_deps_done=no 12494 12495 # The `*' in the case matches for architectures that use `case' in 12496 # $output_verbose_cmd can trigger glob expansion during the loop 12497 # eval without this substitution. 12498 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 12499 12500 for p in `eval $output_verbose_link_cmd`; do 12501 case $p in 12502 12503 -L* | -R* | -l*) 12504 # Some compilers place space between "-{L,R}" and the path. 12505 # Remove the space. 12506 if test $p = "-L" \ 12507 || test $p = "-R"; then 12508 prev=$p 12509 continue 12510 else 12511 prev= 12512 fi 12513 12514 if test "$pre_test_object_deps_done" = no; then 12515 case $p in 12516 -L* | -R*) 12517 # Internal compiler library paths should come after those 12518 # provided the user. The postdeps already come after the 12519 # user supplied libs so there is no need to process them. 12520 if test -z "$compiler_lib_search_path_CXX"; then 12521 compiler_lib_search_path_CXX="${prev}${p}" 12522 else 12523 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 12524 fi 12525 ;; 12526 # The "-l" case would never come before the object being 12527 # linked, so don't bother handling this case. 12528 esac 12529 else 12530 if test -z "$postdeps_CXX"; then 12531 postdeps_CXX="${prev}${p}" 12532 else 12533 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 12534 fi 12535 fi 12536 ;; 12537 12538 *.$objext) 12539 # This assumes that the test object file only shows up 12540 # once in the compiler output. 12541 if test "$p" = "conftest.$objext"; then 12542 pre_test_object_deps_done=yes 12543 continue 12544 fi 12545 12546 if test "$pre_test_object_deps_done" = no; then 12547 if test -z "$predep_objects_CXX"; then 12548 predep_objects_CXX="$p" 12549 else 12550 predep_objects_CXX="$predep_objects_CXX $p" 12551 fi 12552 else 12553 if test -z "$postdep_objects_CXX"; then 12554 postdep_objects_CXX="$p" 12555 else 12556 postdep_objects_CXX="$postdep_objects_CXX $p" 12557 fi 12558 fi 12559 ;; 12560 12561 *) ;; # Ignore the rest. 12562 12563 esac 12564 done 12565 12566 # Clean up. 12567 rm -f a.out a.exe 12568else 12569 echo "libtool.m4: error: problem compiling CXX test program" 12570fi 12571 12572$rm -f confest.$objext 12573 12574compiler_lib_search_dirs_CXX= 12575if test -n "$compiler_lib_search_path_CXX"; then 12576 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 12577fi 12578 12579# PORTME: override above test on systems where it is broken 12580case $host_os in 12581interix[3-9]*) 12582 # Interix 3.5 installs completely hosed .la files for C++, so rather than 12583 # hack all around it, let's just trust "g++" to DTRT. 12584 predep_objects_CXX= 12585 postdep_objects_CXX= 12586 postdeps_CXX= 12587 ;; 12588 12589linux*) 12590 case `$CC -V 2>&1 | sed 5q` in 12591 *Sun\ C*) 12592 # Sun C++ 5.9 12593 # 12594 # The more standards-conforming stlport4 library is 12595 # incompatible with the Cstd library. Avoid specifying 12596 # it if it's in CXXFLAGS. Ignore libCrun as 12597 # -library=stlport4 depends on it. 12598 case " $CXX $CXXFLAGS " in 12599 *" -library=stlport4 "*) 12600 solaris_use_stlport4=yes 12601 ;; 12602 esac 12603 if test "$solaris_use_stlport4" != yes; then 12604 postdeps_CXX='-library=Cstd -library=Crun' 12605 fi 12606 ;; 12607 esac 12608 ;; 12609 12610solaris*) 12611 case $cc_basename in 12612 CC*) 12613 # The more standards-conforming stlport4 library is 12614 # incompatible with the Cstd library. Avoid specifying 12615 # it if it's in CXXFLAGS. Ignore libCrun as 12616 # -library=stlport4 depends on it. 12617 case " $CXX $CXXFLAGS " in 12618 *" -library=stlport4 "*) 12619 solaris_use_stlport4=yes 12620 ;; 12621 esac 12622 12623 # Adding this requires a known-good setup of shared libraries for 12624 # Sun compiler versions before 5.6, else PIC objects from an old 12625 # archive will be linked into the output, leading to subtle bugs. 12626 if test "$solaris_use_stlport4" != yes; then 12627 postdeps_CXX='-library=Cstd -library=Crun' 12628 fi 12629 ;; 12630 esac 12631 ;; 12632esac 12633 12634case " $postdeps_CXX " in 12635*" -lc "*) archive_cmds_need_lc_CXX=no ;; 12636esac 12637 12638lt_prog_compiler_wl_CXX= 12639lt_prog_compiler_pic_CXX= 12640lt_prog_compiler_static_CXX= 12641 12642{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12643$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 12644 12645 # C++ specific cases for pic, static, wl, etc. 12646 if test "$GXX" = yes; then 12647 lt_prog_compiler_wl_CXX='-Wl,' 12648 lt_prog_compiler_static_CXX='-static' 12649 12650 case $host_os in 12651 aix*) 12652 # All AIX code is PIC. 12653 if test "$host_cpu" = ia64; then 12654 # AIX 5 now supports IA64 processor 12655 lt_prog_compiler_static_CXX='-Bstatic' 12656 fi 12657 ;; 12658 amigaos*) 12659 # FIXME: we need at least 68020 code to build shared libraries, but 12660 # adding the `-m68020' flag to GCC prevents building anything better, 12661 # like `-m68040'. 12662 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12663 ;; 12664 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12665 # PIC is the default for these OSes. 12666 ;; 12667 mingw* | cygwin* | os2* | pw32*) 12668 # This hack is so that the source file can tell whether it is being 12669 # built for inclusion in a dll (and should export symbols for example). 12670 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12671 # (--disable-auto-import) libraries 12672 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 12673 ;; 12674 darwin* | rhapsody*) 12675 # PIC is the default on this platform 12676 # Common symbols not allowed in MH_DYLIB files 12677 lt_prog_compiler_pic_CXX='-fno-common' 12678 ;; 12679 *djgpp*) 12680 # DJGPP does not support shared libraries at all 12681 lt_prog_compiler_pic_CXX= 12682 ;; 12683 interix[3-9]*) 12684 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12685 # Instead, we relocate shared libraries at runtime. 12686 ;; 12687 sysv4*MP*) 12688 if test -d /usr/nec; then 12689 lt_prog_compiler_pic_CXX=-Kconform_pic 12690 fi 12691 ;; 12692 hpux*) 12693 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12694 # not for PA HP-UX. 12695 case $host_cpu in 12696 hppa*64*|ia64*) 12697 ;; 12698 *) 12699 lt_prog_compiler_pic_CXX='-fPIC' 12700 ;; 12701 esac 12702 ;; 12703 *) 12704 lt_prog_compiler_pic_CXX='-fPIC' 12705 ;; 12706 esac 12707 else 12708 case $host_os in 12709 aix[4-9]*) 12710 # All AIX code is PIC. 12711 if test "$host_cpu" = ia64; then 12712 # AIX 5 now supports IA64 processor 12713 lt_prog_compiler_static_CXX='-Bstatic' 12714 else 12715 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12716 fi 12717 ;; 12718 chorus*) 12719 case $cc_basename in 12720 cxch68*) 12721 # Green Hills C++ Compiler 12722 # _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" 12723 ;; 12724 esac 12725 ;; 12726 darwin*) 12727 # PIC is the default on this platform 12728 # Common symbols not allowed in MH_DYLIB files 12729 case $cc_basename in 12730 xlc*) 12731 lt_prog_compiler_pic_CXX='-qnocommon' 12732 lt_prog_compiler_wl_CXX='-Wl,' 12733 ;; 12734 esac 12735 ;; 12736 dgux*) 12737 case $cc_basename in 12738 ec++*) 12739 lt_prog_compiler_pic_CXX='-KPIC' 12740 ;; 12741 ghcx*) 12742 # Green Hills C++ Compiler 12743 lt_prog_compiler_pic_CXX='-pic' 12744 ;; 12745 *) 12746 ;; 12747 esac 12748 ;; 12749 freebsd* | dragonfly*) 12750 # FreeBSD uses GNU C++ 12751 ;; 12752 hpux9* | hpux10* | hpux11*) 12753 case $cc_basename in 12754 CC*) 12755 lt_prog_compiler_wl_CXX='-Wl,' 12756 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12757 if test "$host_cpu" != ia64; then 12758 lt_prog_compiler_pic_CXX='+Z' 12759 fi 12760 ;; 12761 aCC*) 12762 lt_prog_compiler_wl_CXX='-Wl,' 12763 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12764 case $host_cpu in 12765 hppa*64*|ia64*) 12766 # +Z the default 12767 ;; 12768 *) 12769 lt_prog_compiler_pic_CXX='+Z' 12770 ;; 12771 esac 12772 ;; 12773 *) 12774 ;; 12775 esac 12776 ;; 12777 interix*) 12778 # This is c89, which is MS Visual C++ (no shared libs) 12779 # Anyone wants to do a port? 12780 ;; 12781 irix5* | irix6* | nonstopux*) 12782 case $cc_basename in 12783 CC*) 12784 lt_prog_compiler_wl_CXX='-Wl,' 12785 lt_prog_compiler_static_CXX='-non_shared' 12786 # CC pic flag -KPIC is the default. 12787 ;; 12788 *) 12789 ;; 12790 esac 12791 ;; 12792 linux* | k*bsd*-gnu) 12793 case $cc_basename in 12794 KCC*) 12795 # KAI C++ Compiler 12796 lt_prog_compiler_wl_CXX='--backend -Wl,' 12797 lt_prog_compiler_pic_CXX='-fPIC' 12798 ;; 12799 icpc* | ecpc*) 12800 # Intel C++ 12801 lt_prog_compiler_wl_CXX='-Wl,' 12802 lt_prog_compiler_pic_CXX='-KPIC' 12803 lt_prog_compiler_static_CXX='-static' 12804 ;; 12805 pgCC* | pgcpp*) 12806 # Portland Group C++ compiler. 12807 lt_prog_compiler_wl_CXX='-Wl,' 12808 lt_prog_compiler_pic_CXX='-fpic' 12809 lt_prog_compiler_static_CXX='-Bstatic' 12810 ;; 12811 cxx*) 12812 # Compaq C++ 12813 # Make sure the PIC flag is empty. It appears that all Alpha 12814 # Linux and Compaq Tru64 Unix objects are PIC. 12815 lt_prog_compiler_pic_CXX= 12816 lt_prog_compiler_static_CXX='-non_shared' 12817 ;; 12818 *) 12819 case `$CC -V 2>&1 | sed 5q` in 12820 *Sun\ C*) 12821 # Sun C++ 5.9 12822 lt_prog_compiler_pic_CXX='-KPIC' 12823 lt_prog_compiler_static_CXX='-Bstatic' 12824 lt_prog_compiler_wl_CXX='-Qoption ld ' 12825 ;; 12826 esac 12827 ;; 12828 esac 12829 ;; 12830 lynxos*) 12831 ;; 12832 m88k*) 12833 ;; 12834 mvs*) 12835 case $cc_basename in 12836 cxx*) 12837 lt_prog_compiler_pic_CXX='-W c,exportall' 12838 ;; 12839 *) 12840 ;; 12841 esac 12842 ;; 12843 netbsd*) 12844 ;; 12845 osf3* | osf4* | osf5*) 12846 case $cc_basename in 12847 KCC*) 12848 lt_prog_compiler_wl_CXX='--backend -Wl,' 12849 ;; 12850 RCC*) 12851 # Rational C++ 2.4.1 12852 lt_prog_compiler_pic_CXX='-pic' 12853 ;; 12854 cxx*) 12855 # Digital/Compaq C++ 12856 lt_prog_compiler_wl_CXX='-Wl,' 12857 # Make sure the PIC flag is empty. It appears that all Alpha 12858 # Linux and Compaq Tru64 Unix objects are PIC. 12859 lt_prog_compiler_pic_CXX= 12860 lt_prog_compiler_static_CXX='-non_shared' 12861 ;; 12862 *) 12863 ;; 12864 esac 12865 ;; 12866 psos*) 12867 ;; 12868 solaris*) 12869 case $cc_basename in 12870 CC*) 12871 # Sun C++ 4.2, 5.x and Centerline C++ 12872 lt_prog_compiler_pic_CXX='-KPIC' 12873 lt_prog_compiler_static_CXX='-Bstatic' 12874 lt_prog_compiler_wl_CXX='-Qoption ld ' 12875 ;; 12876 gcx*) 12877 # Green Hills C++ Compiler 12878 lt_prog_compiler_pic_CXX='-PIC' 12879 ;; 12880 *) 12881 ;; 12882 esac 12883 ;; 12884 sunos4*) 12885 case $cc_basename in 12886 CC*) 12887 # Sun C++ 4.x 12888 lt_prog_compiler_pic_CXX='-pic' 12889 lt_prog_compiler_static_CXX='-Bstatic' 12890 ;; 12891 lcc*) 12892 # Lucid 12893 lt_prog_compiler_pic_CXX='-pic' 12894 ;; 12895 *) 12896 ;; 12897 esac 12898 ;; 12899 tandem*) 12900 case $cc_basename in 12901 NCC*) 12902 # NonStop-UX NCC 3.20 12903 lt_prog_compiler_pic_CXX='-KPIC' 12904 ;; 12905 *) 12906 ;; 12907 esac 12908 ;; 12909 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12910 case $cc_basename in 12911 CC*) 12912 lt_prog_compiler_wl_CXX='-Wl,' 12913 lt_prog_compiler_pic_CXX='-KPIC' 12914 lt_prog_compiler_static_CXX='-Bstatic' 12915 ;; 12916 esac 12917 ;; 12918 vxworks*) 12919 ;; 12920 *) 12921 lt_prog_compiler_can_build_shared_CXX=no 12922 ;; 12923 esac 12924 fi 12925 12926{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12927$as_echo "$lt_prog_compiler_pic_CXX" >&6; } 12928 12929# 12930# Check to make sure the PIC flag actually works. 12931# 12932if test -n "$lt_prog_compiler_pic_CXX"; then 12933 12934{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12935$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 12936if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then 12937 $as_echo_n "(cached) " >&6 12938else 12939 lt_cv_prog_compiler_pic_works_CXX=no 12940 ac_outfile=conftest.$ac_objext 12941 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12942 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12943 # Insert the option either (1) after the last *FLAGS variable, or 12944 # (2) before a word containing "conftest.", or (3) at the end. 12945 # Note that $ac_compile itself does not contain backslashes and begins 12946 # with a dollar sign (not a hyphen), so the echo should work correctly. 12947 # The option is referenced via a variable to avoid confusing sed. 12948 lt_compile=`echo "$ac_compile" | $SED \ 12949 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12950 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12951 -e 's:$: $lt_compiler_flag:'` 12952 (eval echo "\"\$as_me:12952: $lt_compile\"" >&5) 12953 (eval "$lt_compile" 2>conftest.err) 12954 ac_status=$? 12955 cat conftest.err >&5 12956 echo "$as_me:12956: \$? = $ac_status" >&5 12957 if (exit $ac_status) && test -s "$ac_outfile"; then 12958 # The compiler can only warn and ignore the option if not recognized 12959 # So say no if there are warnings other than the usual output. 12960 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12961 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12962 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12963 lt_cv_prog_compiler_pic_works_CXX=yes 12964 fi 12965 fi 12966 $rm conftest* 12967 12968fi 12969{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 12970$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 12971 12972if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 12973 case $lt_prog_compiler_pic_CXX in 12974 "" | " "*) ;; 12975 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12976 esac 12977else 12978 lt_prog_compiler_pic_CXX= 12979 lt_prog_compiler_can_build_shared_CXX=no 12980fi 12981 12982fi 12983case $host_os in 12984 # For platforms which do not support PIC, -DPIC is meaningless: 12985 *djgpp*) 12986 lt_prog_compiler_pic_CXX= 12987 ;; 12988 *) 12989 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12990 ;; 12991esac 12992 12993# 12994# Check to make sure the static flag actually works. 12995# 12996wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 12997{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12998$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 12999if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then 13000 $as_echo_n "(cached) " >&6 13001else 13002 lt_cv_prog_compiler_static_works_CXX=no 13003 save_LDFLAGS="$LDFLAGS" 13004 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13005 echo "$lt_simple_link_test_code" > conftest.$ac_ext 13006 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13007 # The linker can only warn and ignore the option if not recognized 13008 # So say no if there are warnings 13009 if test -s conftest.err; then 13010 # Append any errors to the config.log. 13011 cat conftest.err 1>&5 13012 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 13013 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13014 if diff conftest.exp conftest.er2 >/dev/null; then 13015 lt_cv_prog_compiler_static_works_CXX=yes 13016 fi 13017 else 13018 lt_cv_prog_compiler_static_works_CXX=yes 13019 fi 13020 fi 13021 $rm -r conftest* 13022 LDFLAGS="$save_LDFLAGS" 13023 13024fi 13025{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5 13026$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 13027 13028if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 13029 : 13030else 13031 lt_prog_compiler_static_CXX= 13032fi 13033 13034 13035{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13036$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13037if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 13038 $as_echo_n "(cached) " >&6 13039else 13040 lt_cv_prog_compiler_c_o_CXX=no 13041 $rm -r conftest 2>/dev/null 13042 mkdir conftest 13043 cd conftest 13044 mkdir out 13045 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13046 13047 lt_compiler_flag="-o out/conftest2.$ac_objext" 13048 # Insert the option either (1) after the last *FLAGS variable, or 13049 # (2) before a word containing "conftest.", or (3) at the end. 13050 # Note that $ac_compile itself does not contain backslashes and begins 13051 # with a dollar sign (not a hyphen), so the echo should work correctly. 13052 lt_compile=`echo "$ac_compile" | $SED \ 13053 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13054 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13055 -e 's:$: $lt_compiler_flag:'` 13056 (eval echo "\"\$as_me:13056: $lt_compile\"" >&5) 13057 (eval "$lt_compile" 2>out/conftest.err) 13058 ac_status=$? 13059 cat out/conftest.err >&5 13060 echo "$as_me:13060: \$? = $ac_status" >&5 13061 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13062 then 13063 # The compiler can only warn and ignore the option if not recognized 13064 # So say no if there are warnings 13065 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 13066 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13067 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13068 lt_cv_prog_compiler_c_o_CXX=yes 13069 fi 13070 fi 13071 chmod u+w . 2>&5 13072 $rm conftest* 13073 # SGI C++ compiler will create directory out/ii_files/ for 13074 # template instantiation 13075 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 13076 $rm out/* && rmdir out 13077 cd .. 13078 rmdir conftest 13079 $rm conftest* 13080 13081fi 13082{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 13083$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 13084 13085 13086hard_links="nottested" 13087if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 13088 # do not overwrite the value of need_locks provided by the user 13089 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13090$as_echo_n "checking if we can lock with hard links... " >&6; } 13091 hard_links=yes 13092 $rm conftest* 13093 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13094 touch conftest.a 13095 ln conftest.a conftest.b 2>&5 || hard_links=no 13096 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13097 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 13098$as_echo "$hard_links" >&6; } 13099 if test "$hard_links" = no; then 13100 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13101$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13102 need_locks=warn 13103 fi 13104else 13105 need_locks=no 13106fi 13107 13108{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13109$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13110 13111 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13112 case $host_os in 13113 aix[4-9]*) 13114 # If we're using GNU nm, then we don't want the "-C" option. 13115 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13116 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 13117 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' 13118 else 13119 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' 13120 fi 13121 ;; 13122 pw32*) 13123 export_symbols_cmds_CXX="$ltdll_cmds" 13124 ;; 13125 cygwin* | mingw*) 13126 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' 13127 ;; 13128 *) 13129 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13130 ;; 13131 esac 13132 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 13133 13134{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 13135$as_echo "$ld_shlibs_CXX" >&6; } 13136test "$ld_shlibs_CXX" = no && can_build_shared=no 13137 13138# 13139# Do we need to explicitly link libc? 13140# 13141case "x$archive_cmds_need_lc_CXX" in 13142x|xyes) 13143 # Assume -lc should be added 13144 archive_cmds_need_lc_CXX=yes 13145 13146 if test "$enable_shared" = yes && test "$GCC" = yes; then 13147 case $archive_cmds_CXX in 13148 *'~'*) 13149 # FIXME: we may have to deal with multi-command sequences. 13150 ;; 13151 '$CC '*) 13152 # Test whether the compiler implicitly links with -lc since on some 13153 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13154 # to ld, don't add -lc before -lgcc. 13155 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 13156$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 13157 $rm conftest* 13158 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13159 13160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13161 (eval $ac_compile) 2>&5 13162 ac_status=$? 13163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13164 (exit $ac_status); } 2>conftest.err; then 13165 soname=conftest 13166 lib=conftest 13167 libobjs=conftest.$ac_objext 13168 deplibs= 13169 wl=$lt_prog_compiler_wl_CXX 13170 pic_flag=$lt_prog_compiler_pic_CXX 13171 compiler_flags=-v 13172 linker_flags=-v 13173 verstring= 13174 output_objdir=. 13175 libname=conftest 13176 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 13177 allow_undefined_flag_CXX= 13178 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 13179 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 13180 ac_status=$? 13181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13182 (exit $ac_status); } 13183 then 13184 archive_cmds_need_lc_CXX=no 13185 else 13186 archive_cmds_need_lc_CXX=yes 13187 fi 13188 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 13189 else 13190 cat conftest.err 1>&5 13191 fi 13192 $rm conftest* 13193 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 13194$as_echo "$archive_cmds_need_lc_CXX" >&6; } 13195 ;; 13196 esac 13197 fi 13198 ;; 13199esac 13200 13201{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 13202$as_echo_n "checking dynamic linker characteristics... " >&6; } 13203library_names_spec= 13204libname_spec='lib$name' 13205soname_spec= 13206shrext_cmds=".so" 13207postinstall_cmds= 13208postuninstall_cmds= 13209finish_cmds= 13210finish_eval= 13211shlibpath_var= 13212shlibpath_overrides_runpath=unknown 13213version_type=none 13214dynamic_linker="$host_os ld.so" 13215sys_lib_dlsearch_path_spec="/lib /usr/lib" 13216 13217need_lib_prefix=unknown 13218hardcode_into_libs=no 13219 13220# when you set need_version to no, make sure it does not cause -set_version 13221# flags to be left without arguments 13222need_version=unknown 13223 13224case $host_os in 13225aix3*) 13226 version_type=linux 13227 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13228 shlibpath_var=LIBPATH 13229 13230 # AIX 3 has no versioning support, so we append a major version to the name. 13231 soname_spec='${libname}${release}${shared_ext}$major' 13232 ;; 13233 13234aix[4-9]*) 13235 version_type=linux 13236 need_lib_prefix=no 13237 need_version=no 13238 hardcode_into_libs=yes 13239 if test "$host_cpu" = ia64; then 13240 # AIX 5 supports IA64 13241 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13242 shlibpath_var=LD_LIBRARY_PATH 13243 else 13244 # With GCC up to 2.95.x, collect2 would create an import file 13245 # for dependence libraries. The import file would start with 13246 # the line `#! .'. This would cause the generated library to 13247 # depend on `.', always an invalid library. This was fixed in 13248 # development snapshots of GCC prior to 3.0. 13249 case $host_os in 13250 aix4 | aix4.[01] | aix4.[01].*) 13251 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13252 echo ' yes ' 13253 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 13254 : 13255 else 13256 can_build_shared=no 13257 fi 13258 ;; 13259 esac 13260 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13261 # soname into executable. Probably we can add versioning support to 13262 # collect2, so additional links can be useful in future. 13263 if test "$aix_use_runtimelinking" = yes; then 13264 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13265 # instead of lib<name>.a to let people know that these are not 13266 # typical AIX shared libraries. 13267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13268 else 13269 # We preserve .a as extension for shared libraries through AIX4.2 13270 # and later when we are not doing run time linking. 13271 library_names_spec='${libname}${release}.a $libname.a' 13272 soname_spec='${libname}${release}${shared_ext}$major' 13273 fi 13274 shlibpath_var=LIBPATH 13275 fi 13276 ;; 13277 13278amigaos*) 13279 library_names_spec='$libname.ixlibrary $libname.a' 13280 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13281 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' 13282 ;; 13283 13284beos*) 13285 library_names_spec='${libname}${shared_ext}' 13286 dynamic_linker="$host_os ld.so" 13287 shlibpath_var=LIBRARY_PATH 13288 ;; 13289 13290bsdi[45]*) 13291 version_type=linux 13292 need_version=no 13293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13294 soname_spec='${libname}${release}${shared_ext}$major' 13295 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13296 shlibpath_var=LD_LIBRARY_PATH 13297 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13298 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13299 # the default ld.so.conf also contains /usr/contrib/lib and 13300 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13301 # libtool to hard-code these into programs 13302 ;; 13303 13304cygwin* | mingw* | pw32*) 13305 version_type=windows 13306 shrext_cmds=".dll" 13307 need_version=no 13308 need_lib_prefix=no 13309 13310 case $GCC,$host_os in 13311 yes,cygwin* | yes,mingw* | yes,pw32*) 13312 library_names_spec='$libname.dll.a' 13313 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13314 postinstall_cmds='base_file=`basename \${file}`~ 13315 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 13316 dldir=$destdir/`dirname \$dlpath`~ 13317 test -d \$dldir || mkdir -p \$dldir~ 13318 $install_prog $dir/$dlname \$dldir/$dlname~ 13319 chmod a+x \$dldir/$dlname' 13320 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13321 dlpath=$dir/\$dldll~ 13322 $rm \$dlpath' 13323 shlibpath_overrides_runpath=yes 13324 13325 case $host_os in 13326 cygwin*) 13327 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13328 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13329 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 13330 ;; 13331 mingw*) 13332 # MinGW DLLs use traditional 'lib' prefix 13333 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13334 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13335 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 13336 # It is most probably a Windows format PATH printed by 13337 # mingw gcc, but we are running on Cygwin. Gcc prints its search 13338 # path with ; separators, and with drive letters. We can handle the 13339 # drive letters (cygwin fileutils understands them), so leave them, 13340 # especially as we might pass files found there to a mingw objdump, 13341 # which wouldn't understand a cygwinified path. Ahh. 13342 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13343 else 13344 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13345 fi 13346 ;; 13347 pw32*) 13348 # pw32 DLLs use 'pw' prefix rather than 'lib' 13349 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13350 ;; 13351 esac 13352 ;; 13353 13354 *) 13355 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13356 ;; 13357 esac 13358 dynamic_linker='Win32 ld.exe' 13359 # FIXME: first we should search . and the directory the executable is in 13360 shlibpath_var=PATH 13361 ;; 13362 13363darwin* | rhapsody*) 13364 dynamic_linker="$host_os dyld" 13365 version_type=darwin 13366 need_lib_prefix=no 13367 need_version=no 13368 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13369 soname_spec='${libname}${release}${major}$shared_ext' 13370 shlibpath_overrides_runpath=yes 13371 shlibpath_var=DYLD_LIBRARY_PATH 13372 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13373 13374 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13375 ;; 13376 13377dgux*) 13378 version_type=linux 13379 need_lib_prefix=no 13380 need_version=no 13381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13382 soname_spec='${libname}${release}${shared_ext}$major' 13383 shlibpath_var=LD_LIBRARY_PATH 13384 ;; 13385 13386freebsd1*) 13387 dynamic_linker=no 13388 ;; 13389 13390freebsd* | dragonfly*) 13391 # DragonFly does not have aout. When/if they implement a new 13392 # versioning mechanism, adjust this. 13393 if test -x /usr/bin/objformat; then 13394 objformat=`/usr/bin/objformat` 13395 else 13396 case $host_os in 13397 freebsd[123]*) objformat=aout ;; 13398 *) objformat=elf ;; 13399 esac 13400 fi 13401 version_type=freebsd-$objformat 13402 case $version_type in 13403 freebsd-elf*) 13404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13405 need_version=no 13406 need_lib_prefix=no 13407 ;; 13408 freebsd-*) 13409 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13410 need_version=yes 13411 ;; 13412 esac 13413 shlibpath_var=LD_LIBRARY_PATH 13414 case $host_os in 13415 freebsd2*) 13416 shlibpath_overrides_runpath=yes 13417 ;; 13418 freebsd3.[01]* | freebsdelf3.[01]*) 13419 shlibpath_overrides_runpath=yes 13420 hardcode_into_libs=yes 13421 ;; 13422 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13423 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13424 shlibpath_overrides_runpath=no 13425 hardcode_into_libs=yes 13426 ;; 13427 *) # from 4.6 on, and DragonFly 13428 shlibpath_overrides_runpath=yes 13429 hardcode_into_libs=yes 13430 ;; 13431 esac 13432 ;; 13433 13434gnu*) 13435 version_type=linux 13436 need_lib_prefix=no 13437 need_version=no 13438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13439 soname_spec='${libname}${release}${shared_ext}$major' 13440 shlibpath_var=LD_LIBRARY_PATH 13441 hardcode_into_libs=yes 13442 ;; 13443 13444hpux9* | hpux10* | hpux11*) 13445 # Give a soname corresponding to the major version so that dld.sl refuses to 13446 # link against other versions. 13447 version_type=sunos 13448 need_lib_prefix=no 13449 need_version=no 13450 case $host_cpu in 13451 ia64*) 13452 shrext_cmds='.so' 13453 hardcode_into_libs=yes 13454 dynamic_linker="$host_os dld.so" 13455 shlibpath_var=LD_LIBRARY_PATH 13456 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13458 soname_spec='${libname}${release}${shared_ext}$major' 13459 if test "X$HPUX_IA64_MODE" = X32; then 13460 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13461 else 13462 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13463 fi 13464 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13465 ;; 13466 hppa*64*) 13467 shrext_cmds='.sl' 13468 hardcode_into_libs=yes 13469 dynamic_linker="$host_os dld.sl" 13470 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13471 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13473 soname_spec='${libname}${release}${shared_ext}$major' 13474 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13475 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13476 ;; 13477 *) 13478 shrext_cmds='.sl' 13479 dynamic_linker="$host_os dld.sl" 13480 shlibpath_var=SHLIB_PATH 13481 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13483 soname_spec='${libname}${release}${shared_ext}$major' 13484 ;; 13485 esac 13486 # HP-UX runs *really* slowly unless shared libraries are mode 555. 13487 postinstall_cmds='chmod 555 $lib' 13488 ;; 13489 13490interix[3-9]*) 13491 version_type=linux 13492 need_lib_prefix=no 13493 need_version=no 13494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13495 soname_spec='${libname}${release}${shared_ext}$major' 13496 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13497 shlibpath_var=LD_LIBRARY_PATH 13498 shlibpath_overrides_runpath=no 13499 hardcode_into_libs=yes 13500 ;; 13501 13502irix5* | irix6* | nonstopux*) 13503 case $host_os in 13504 nonstopux*) version_type=nonstopux ;; 13505 *) 13506 if test "$lt_cv_prog_gnu_ld" = yes; then 13507 version_type=linux 13508 else 13509 version_type=irix 13510 fi ;; 13511 esac 13512 need_lib_prefix=no 13513 need_version=no 13514 soname_spec='${libname}${release}${shared_ext}$major' 13515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13516 case $host_os in 13517 irix5* | nonstopux*) 13518 libsuff= shlibsuff= 13519 ;; 13520 *) 13521 case $LD in # libtool.m4 will add one of these switches to LD 13522 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13523 libsuff= shlibsuff= libmagic=32-bit;; 13524 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13525 libsuff=32 shlibsuff=N32 libmagic=N32;; 13526 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13527 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13528 *) libsuff= shlibsuff= libmagic=never-match;; 13529 esac 13530 ;; 13531 esac 13532 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13533 shlibpath_overrides_runpath=no 13534 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13535 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13536 hardcode_into_libs=yes 13537 ;; 13538 13539# No shared lib support for Linux oldld, aout, or coff. 13540linux*oldld* | linux*aout* | linux*coff*) 13541 dynamic_linker=no 13542 ;; 13543 13544# This must be Linux ELF. 13545linux* | k*bsd*-gnu) 13546 version_type=linux 13547 need_lib_prefix=no 13548 need_version=no 13549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13550 soname_spec='${libname}${release}${shared_ext}$major' 13551 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13552 shlibpath_var=LD_LIBRARY_PATH 13553 shlibpath_overrides_runpath=no 13554 # This implies no fast_install, which is unacceptable. 13555 # Some rework will be needed to allow for fast_install 13556 # before this can be enabled. 13557 hardcode_into_libs=yes 13558 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13559 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13560 13561 # Append ld.so.conf contents to the search path 13562 if test -f /etc/ld.so.conf; then 13563 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' ' '` 13564 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 13565 fi 13566 13567 # We used to test for /lib/ld.so.1 and disable shared libraries on 13568 # powerpc, because MkLinux only supported shared libraries with the 13569 # GNU dynamic linker. Since this was broken with cross compilers, 13570 # most powerpc-linux boxes support dynamic linking these days and 13571 # people can always --disable-shared, the test was removed, and we 13572 # assume the GNU/Linux dynamic linker is in use. 13573 dynamic_linker='GNU/Linux ld.so' 13574 ;; 13575 13576netbsd*) 13577 version_type=sunos 13578 need_lib_prefix=no 13579 need_version=no 13580 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13582 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13583 dynamic_linker='NetBSD (a.out) ld.so' 13584 else 13585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13586 soname_spec='${libname}${release}${shared_ext}$major' 13587 dynamic_linker='NetBSD ld.elf_so' 13588 fi 13589 shlibpath_var=LD_LIBRARY_PATH 13590 shlibpath_overrides_runpath=yes 13591 hardcode_into_libs=yes 13592 ;; 13593 13594newsos6) 13595 version_type=linux 13596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13597 shlibpath_var=LD_LIBRARY_PATH 13598 shlibpath_overrides_runpath=yes 13599 ;; 13600 13601nto-qnx*) 13602 version_type=linux 13603 need_lib_prefix=no 13604 need_version=no 13605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13606 soname_spec='${libname}${release}${shared_ext}$major' 13607 shlibpath_var=LD_LIBRARY_PATH 13608 shlibpath_overrides_runpath=yes 13609 ;; 13610 13611openbsd*) 13612 version_type=sunos 13613 sys_lib_dlsearch_path_spec="/usr/lib" 13614 need_lib_prefix=no 13615 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 13616 case $host_os in 13617 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 13618 *) need_version=no ;; 13619 esac 13620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13621 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13622 shlibpath_var=LD_LIBRARY_PATH 13623 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13624 case $host_os in 13625 openbsd2.[89] | openbsd2.[89].*) 13626 shlibpath_overrides_runpath=no 13627 ;; 13628 *) 13629 shlibpath_overrides_runpath=yes 13630 ;; 13631 esac 13632 else 13633 shlibpath_overrides_runpath=yes 13634 fi 13635 ;; 13636 13637os2*) 13638 libname_spec='$name' 13639 shrext_cmds=".dll" 13640 need_lib_prefix=no 13641 library_names_spec='$libname${shared_ext} $libname.a' 13642 dynamic_linker='OS/2 ld.exe' 13643 shlibpath_var=LIBPATH 13644 ;; 13645 13646osf3* | osf4* | osf5*) 13647 version_type=osf 13648 need_lib_prefix=no 13649 need_version=no 13650 soname_spec='${libname}${release}${shared_ext}$major' 13651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13652 shlibpath_var=LD_LIBRARY_PATH 13653 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13654 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13655 ;; 13656 13657rdos*) 13658 dynamic_linker=no 13659 ;; 13660 13661solaris*) 13662 version_type=linux 13663 need_lib_prefix=no 13664 need_version=no 13665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13666 soname_spec='${libname}${release}${shared_ext}$major' 13667 shlibpath_var=LD_LIBRARY_PATH 13668 shlibpath_overrides_runpath=yes 13669 hardcode_into_libs=yes 13670 # ldd complains unless libraries are executable 13671 postinstall_cmds='chmod +x $lib' 13672 ;; 13673 13674sunos4*) 13675 version_type=sunos 13676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13677 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13678 shlibpath_var=LD_LIBRARY_PATH 13679 shlibpath_overrides_runpath=yes 13680 if test "$with_gnu_ld" = yes; then 13681 need_lib_prefix=no 13682 fi 13683 need_version=yes 13684 ;; 13685 13686sysv4 | sysv4.3*) 13687 version_type=linux 13688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13689 soname_spec='${libname}${release}${shared_ext}$major' 13690 shlibpath_var=LD_LIBRARY_PATH 13691 case $host_vendor in 13692 sni) 13693 shlibpath_overrides_runpath=no 13694 need_lib_prefix=no 13695 export_dynamic_flag_spec='${wl}-Blargedynsym' 13696 runpath_var=LD_RUN_PATH 13697 ;; 13698 siemens) 13699 need_lib_prefix=no 13700 ;; 13701 motorola) 13702 need_lib_prefix=no 13703 need_version=no 13704 shlibpath_overrides_runpath=no 13705 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13706 ;; 13707 esac 13708 ;; 13709 13710sysv4*MP*) 13711 if test -d /usr/nec ;then 13712 version_type=linux 13713 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13714 soname_spec='$libname${shared_ext}.$major' 13715 shlibpath_var=LD_LIBRARY_PATH 13716 fi 13717 ;; 13718 13719sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13720 version_type=freebsd-elf 13721 need_lib_prefix=no 13722 need_version=no 13723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13724 soname_spec='${libname}${release}${shared_ext}$major' 13725 shlibpath_var=LD_LIBRARY_PATH 13726 hardcode_into_libs=yes 13727 if test "$with_gnu_ld" = yes; then 13728 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13729 shlibpath_overrides_runpath=no 13730 else 13731 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13732 shlibpath_overrides_runpath=yes 13733 case $host_os in 13734 sco3.2v5*) 13735 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13736 ;; 13737 esac 13738 fi 13739 sys_lib_dlsearch_path_spec='/usr/lib' 13740 ;; 13741 13742uts4*) 13743 version_type=linux 13744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13745 soname_spec='${libname}${release}${shared_ext}$major' 13746 shlibpath_var=LD_LIBRARY_PATH 13747 ;; 13748 13749*) 13750 dynamic_linker=no 13751 ;; 13752esac 13753{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13754$as_echo "$dynamic_linker" >&6; } 13755test "$dynamic_linker" = no && can_build_shared=no 13756 13757if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 13758 $as_echo_n "(cached) " >&6 13759else 13760 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 13761fi 13762 13763sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 13764if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 13765 $as_echo_n "(cached) " >&6 13766else 13767 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 13768fi 13769 13770sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 13771 13772variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13773if test "$GCC" = yes; then 13774 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13775fi 13776 13777{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13778$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 13779hardcode_action_CXX= 13780if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13781 test -n "$runpath_var_CXX" || \ 13782 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13783 13784 # We can hardcode non-existant directories. 13785 if test "$hardcode_direct_CXX" != no && 13786 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13787 # have to relink, otherwise we might link with an installed library 13788 # when we should be linking with a yet-to-be-installed one 13789 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13790 test "$hardcode_minus_L_CXX" != no; then 13791 # Linking always hardcodes the temporary library directory. 13792 hardcode_action_CXX=relink 13793 else 13794 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13795 hardcode_action_CXX=immediate 13796 fi 13797else 13798 # We cannot hardcode anything, or else we can only hardcode existing 13799 # directories. 13800 hardcode_action_CXX=unsupported 13801fi 13802{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13803$as_echo "$hardcode_action_CXX" >&6; } 13804 13805if test "$hardcode_action_CXX" = relink; then 13806 # Fast installation is not supported 13807 enable_fast_install=no 13808elif test "$shlibpath_overrides_runpath" = yes || 13809 test "$enable_shared" = no; then 13810 # Fast installation is not necessary 13811 enable_fast_install=needless 13812fi 13813 13814 13815# The else clause should only fire when bootstrapping the 13816# libtool distribution, otherwise you forgot to ship ltmain.sh 13817# with your package, and you will get complaints that there are 13818# no rules to generate ltmain.sh. 13819if test -f "$ltmain"; then 13820 # See if we are running on zsh, and set the options which allow our commands through 13821 # without removal of \ escapes. 13822 if test -n "${ZSH_VERSION+set}" ; then 13823 setopt NO_GLOB_SUBST 13824 fi 13825 # Now quote all the things that may contain metacharacters while being 13826 # careful not to overquote the AC_SUBSTed values. We take copies of the 13827 # variables and quote the copies for generation of the libtool script. 13828 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13829 SED SHELL STRIP \ 13830 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13831 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13832 deplibs_check_method reload_flag reload_cmds need_locks \ 13833 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13834 lt_cv_sys_global_symbol_to_c_name_address \ 13835 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13836 old_postinstall_cmds old_postuninstall_cmds \ 13837 compiler_CXX \ 13838 CC_CXX \ 13839 LD_CXX \ 13840 lt_prog_compiler_wl_CXX \ 13841 lt_prog_compiler_pic_CXX \ 13842 lt_prog_compiler_static_CXX \ 13843 lt_prog_compiler_no_builtin_flag_CXX \ 13844 export_dynamic_flag_spec_CXX \ 13845 thread_safe_flag_spec_CXX \ 13846 whole_archive_flag_spec_CXX \ 13847 enable_shared_with_static_runtimes_CXX \ 13848 old_archive_cmds_CXX \ 13849 old_archive_from_new_cmds_CXX \ 13850 predep_objects_CXX \ 13851 postdep_objects_CXX \ 13852 predeps_CXX \ 13853 postdeps_CXX \ 13854 compiler_lib_search_path_CXX \ 13855 compiler_lib_search_dirs_CXX \ 13856 archive_cmds_CXX \ 13857 archive_expsym_cmds_CXX \ 13858 postinstall_cmds_CXX \ 13859 postuninstall_cmds_CXX \ 13860 old_archive_from_expsyms_cmds_CXX \ 13861 allow_undefined_flag_CXX \ 13862 no_undefined_flag_CXX \ 13863 export_symbols_cmds_CXX \ 13864 hardcode_libdir_flag_spec_CXX \ 13865 hardcode_libdir_flag_spec_ld_CXX \ 13866 hardcode_libdir_separator_CXX \ 13867 hardcode_automatic_CXX \ 13868 module_cmds_CXX \ 13869 module_expsym_cmds_CXX \ 13870 lt_cv_prog_compiler_c_o_CXX \ 13871 fix_srcfile_path_CXX \ 13872 exclude_expsyms_CXX \ 13873 include_expsyms_CXX; do 13874 13875 case $var in 13876 old_archive_cmds_CXX | \ 13877 old_archive_from_new_cmds_CXX | \ 13878 archive_cmds_CXX | \ 13879 archive_expsym_cmds_CXX | \ 13880 module_cmds_CXX | \ 13881 module_expsym_cmds_CXX | \ 13882 old_archive_from_expsyms_cmds_CXX | \ 13883 export_symbols_cmds_CXX | \ 13884 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13885 postinstall_cmds | postuninstall_cmds | \ 13886 old_postinstall_cmds | old_postuninstall_cmds | \ 13887 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13888 # Double-quote double-evaled strings. 13889 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13890 ;; 13891 *) 13892 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13893 ;; 13894 esac 13895 done 13896 13897 case $lt_echo in 13898 *'\$0 --fallback-echo"') 13899 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13900 ;; 13901 esac 13902 13903cfgfile="$ofile" 13904 13905 cat <<__EOF__ >> "$cfgfile" 13906# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13907 13908# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13909 13910# Shell to use when invoking shell scripts. 13911SHELL=$lt_SHELL 13912 13913# Whether or not to build shared libraries. 13914build_libtool_libs=$enable_shared 13915 13916# Whether or not to build static libraries. 13917build_old_libs=$enable_static 13918 13919# Whether or not to add -lc for building shared libraries. 13920build_libtool_need_lc=$archive_cmds_need_lc_CXX 13921 13922# Whether or not to disallow shared libs when runtime libs are static 13923allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13924 13925# Whether or not to optimize for fast installation. 13926fast_install=$enable_fast_install 13927 13928# The host system. 13929host_alias=$host_alias 13930host=$host 13931host_os=$host_os 13932 13933# The build system. 13934build_alias=$build_alias 13935build=$build 13936build_os=$build_os 13937 13938# An echo program that does not interpret backslashes. 13939echo=$lt_echo 13940 13941# The archiver. 13942AR=$lt_AR 13943AR_FLAGS=$lt_AR_FLAGS 13944 13945# A C compiler. 13946LTCC=$lt_LTCC 13947 13948# LTCC compiler flags. 13949LTCFLAGS=$lt_LTCFLAGS 13950 13951# A language-specific compiler. 13952CC=$lt_compiler_CXX 13953 13954# Is the compiler the GNU C compiler? 13955with_gcc=$GCC_CXX 13956 13957# An ERE matcher. 13958EGREP=$lt_EGREP 13959 13960# The linker used to build libraries. 13961LD=$lt_LD_CXX 13962 13963# Whether we need hard or soft links. 13964LN_S=$lt_LN_S 13965 13966# A BSD-compatible nm program. 13967NM=$lt_NM 13968 13969# A symbol stripping program 13970STRIP=$lt_STRIP 13971 13972# Used to examine libraries when file_magic_cmd begins "file" 13973MAGIC_CMD=$MAGIC_CMD 13974 13975# Used on cygwin: DLL creation program. 13976DLLTOOL="$DLLTOOL" 13977 13978# Used on cygwin: object dumper. 13979OBJDUMP="$OBJDUMP" 13980 13981# Used on cygwin: assembler. 13982AS="$AS" 13983 13984# The name of the directory that contains temporary libtool files. 13985objdir=$objdir 13986 13987# How to create reloadable object files. 13988reload_flag=$lt_reload_flag 13989reload_cmds=$lt_reload_cmds 13990 13991# How to pass a linker flag through the compiler. 13992wl=$lt_lt_prog_compiler_wl_CXX 13993 13994# Object file suffix (normally "o"). 13995objext="$ac_objext" 13996 13997# Old archive suffix (normally "a"). 13998libext="$libext" 13999 14000# Shared library suffix (normally ".so"). 14001shrext_cmds='$shrext_cmds' 14002 14003# Executable file suffix (normally ""). 14004exeext="$exeext" 14005 14006# Additional compiler flags for building library objects. 14007pic_flag=$lt_lt_prog_compiler_pic_CXX 14008pic_mode=$pic_mode 14009 14010# What is the maximum length of a command? 14011max_cmd_len=$lt_cv_sys_max_cmd_len 14012 14013# Does compiler simultaneously support -c and -o options? 14014compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 14015 14016# Must we lock files when doing compilation? 14017need_locks=$lt_need_locks 14018 14019# Do we need the lib prefix for modules? 14020need_lib_prefix=$need_lib_prefix 14021 14022# Do we need a version for libraries? 14023need_version=$need_version 14024 14025# Whether dlopen is supported. 14026dlopen_support=$enable_dlopen 14027 14028# Whether dlopen of programs is supported. 14029dlopen_self=$enable_dlopen_self 14030 14031# Whether dlopen of statically linked programs is supported. 14032dlopen_self_static=$enable_dlopen_self_static 14033 14034# Compiler flag to prevent dynamic linking. 14035link_static_flag=$lt_lt_prog_compiler_static_CXX 14036 14037# Compiler flag to turn off builtin functions. 14038no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 14039 14040# Compiler flag to allow reflexive dlopens. 14041export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 14042 14043# Compiler flag to generate shared objects directly from archives. 14044whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 14045 14046# Compiler flag to generate thread-safe objects. 14047thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 14048 14049# Library versioning type. 14050version_type=$version_type 14051 14052# Format of library name prefix. 14053libname_spec=$lt_libname_spec 14054 14055# List of archive names. First name is the real one, the rest are links. 14056# The last name is the one that the linker finds with -lNAME. 14057library_names_spec=$lt_library_names_spec 14058 14059# The coded name of the library, if different from the real name. 14060soname_spec=$lt_soname_spec 14061 14062# Commands used to build and install an old-style archive. 14063RANLIB=$lt_RANLIB 14064old_archive_cmds=$lt_old_archive_cmds_CXX 14065old_postinstall_cmds=$lt_old_postinstall_cmds 14066old_postuninstall_cmds=$lt_old_postuninstall_cmds 14067 14068# Create an old-style archive from a shared archive. 14069old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 14070 14071# Create a temporary old-style archive to link instead of a shared archive. 14072old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 14073 14074# Commands used to build and install a shared archive. 14075archive_cmds=$lt_archive_cmds_CXX 14076archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 14077postinstall_cmds=$lt_postinstall_cmds 14078postuninstall_cmds=$lt_postuninstall_cmds 14079 14080# Commands used to build a loadable module (assumed same as above if empty) 14081module_cmds=$lt_module_cmds_CXX 14082module_expsym_cmds=$lt_module_expsym_cmds_CXX 14083 14084# Commands to strip libraries. 14085old_striplib=$lt_old_striplib 14086striplib=$lt_striplib 14087 14088# Dependencies to place before the objects being linked to create a 14089# shared library. 14090predep_objects=$lt_predep_objects_CXX 14091 14092# Dependencies to place after the objects being linked to create a 14093# shared library. 14094postdep_objects=$lt_postdep_objects_CXX 14095 14096# Dependencies to place before the objects being linked to create a 14097# shared library. 14098predeps=$lt_predeps_CXX 14099 14100# Dependencies to place after the objects being linked to create a 14101# shared library. 14102postdeps=$lt_postdeps_CXX 14103 14104# The directories searched by this compiler when creating a shared 14105# library 14106compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 14107 14108# The library search path used internally by the compiler when linking 14109# a shared library. 14110compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 14111 14112# Method to check whether dependent libraries are shared objects. 14113deplibs_check_method=$lt_deplibs_check_method 14114 14115# Command to use when deplibs_check_method == file_magic. 14116file_magic_cmd=$lt_file_magic_cmd 14117 14118# Flag that allows shared libraries with undefined symbols to be built. 14119allow_undefined_flag=$lt_allow_undefined_flag_CXX 14120 14121# Flag that forces no undefined symbols. 14122no_undefined_flag=$lt_no_undefined_flag_CXX 14123 14124# Commands used to finish a libtool library installation in a directory. 14125finish_cmds=$lt_finish_cmds 14126 14127# Same as above, but a single script fragment to be evaled but not shown. 14128finish_eval=$lt_finish_eval 14129 14130# Take the output of nm and produce a listing of raw symbols and C names. 14131global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14132 14133# Transform the output of nm in a proper C declaration 14134global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14135 14136# Transform the output of nm in a C name address pair 14137global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14138 14139# This is the shared library runtime path variable. 14140runpath_var=$runpath_var 14141 14142# This is the shared library path variable. 14143shlibpath_var=$shlibpath_var 14144 14145# Is shlibpath searched before the hard-coded library search path? 14146shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14147 14148# How to hardcode a shared library path into an executable. 14149hardcode_action=$hardcode_action_CXX 14150 14151# Whether we should hardcode library paths into libraries. 14152hardcode_into_libs=$hardcode_into_libs 14153 14154# Flag to hardcode \$libdir into a binary during linking. 14155# This must work even if \$libdir does not exist. 14156hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 14157 14158# If ld is used when linking, flag to hardcode \$libdir into 14159# a binary during linking. This must work even if \$libdir does 14160# not exist. 14161hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 14162 14163# Whether we need a single -rpath flag with a separated argument. 14164hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 14165 14166# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 14167# resulting binary. 14168hardcode_direct=$hardcode_direct_CXX 14169 14170# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 14171# resulting binary. 14172hardcode_minus_L=$hardcode_minus_L_CXX 14173 14174# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 14175# the resulting binary. 14176hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 14177 14178# Set to yes if building a shared library automatically hardcodes DIR into the library 14179# and all subsequent libraries and executables linked against it. 14180hardcode_automatic=$hardcode_automatic_CXX 14181 14182# Variables whose values should be saved in libtool wrapper scripts and 14183# restored at relink time. 14184variables_saved_for_relink="$variables_saved_for_relink" 14185 14186# Whether libtool must link a program against all its dependency libraries. 14187link_all_deplibs=$link_all_deplibs_CXX 14188 14189# Compile-time system search path for libraries 14190sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14191 14192# Run-time system search path for libraries 14193sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14194 14195# Fix the shell variable \$srcfile for the compiler. 14196fix_srcfile_path=$lt_fix_srcfile_path 14197 14198# Set to yes if exported symbols are required. 14199always_export_symbols=$always_export_symbols_CXX 14200 14201# The commands to list exported symbols. 14202export_symbols_cmds=$lt_export_symbols_cmds_CXX 14203 14204# The commands to extract the exported symbol list from a shared archive. 14205extract_expsyms_cmds=$lt_extract_expsyms_cmds 14206 14207# Symbols that should not be listed in the preloaded symbols. 14208exclude_expsyms=$lt_exclude_expsyms_CXX 14209 14210# Symbols that must always be exported. 14211include_expsyms=$lt_include_expsyms_CXX 14212 14213# ### END LIBTOOL TAG CONFIG: $tagname 14214 14215__EOF__ 14216 14217 14218else 14219 # If there is no Makefile yet, we rely on a make rule to execute 14220 # `config.status --recheck' to rerun these tests and create the 14221 # libtool script then. 14222 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 14223 if test -f "$ltmain_in"; then 14224 test -f Makefile && make "$ltmain" 14225 fi 14226fi 14227 14228 14229ac_ext=c 14230ac_cpp='$CPP $CPPFLAGS' 14231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14233ac_compiler_gnu=$ac_cv_c_compiler_gnu 14234 14235CC=$lt_save_CC 14236LDCXX=$LD 14237LD=$lt_save_LD 14238GCC=$lt_save_GCC 14239with_gnu_ldcxx=$with_gnu_ld 14240with_gnu_ld=$lt_save_with_gnu_ld 14241lt_cv_path_LDCXX=$lt_cv_path_LD 14242lt_cv_path_LD=$lt_save_path_LD 14243lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 14244lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 14245 14246 else 14247 tagname="" 14248 fi 14249 ;; 14250 14251 F77) 14252 if test -n "$F77" && test "X$F77" != "Xno"; then 14253 14254ac_ext=f 14255ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 14256ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14257ac_compiler_gnu=$ac_cv_f77_compiler_gnu 14258 14259 14260archive_cmds_need_lc_F77=no 14261allow_undefined_flag_F77= 14262always_export_symbols_F77=no 14263archive_expsym_cmds_F77= 14264export_dynamic_flag_spec_F77= 14265hardcode_direct_F77=no 14266hardcode_libdir_flag_spec_F77= 14267hardcode_libdir_flag_spec_ld_F77= 14268hardcode_libdir_separator_F77= 14269hardcode_minus_L_F77=no 14270hardcode_automatic_F77=no 14271module_cmds_F77= 14272module_expsym_cmds_F77= 14273link_all_deplibs_F77=unknown 14274old_archive_cmds_F77=$old_archive_cmds 14275no_undefined_flag_F77= 14276whole_archive_flag_spec_F77= 14277enable_shared_with_static_runtimes_F77=no 14278 14279# Source file extension for f77 test sources. 14280ac_ext=f 14281 14282# Object file extension for compiled f77 test sources. 14283objext=o 14284objext_F77=$objext 14285 14286# Code to be used in simple compile tests 14287lt_simple_compile_test_code="\ 14288 subroutine t 14289 return 14290 end 14291" 14292 14293# Code to be used in simple link tests 14294lt_simple_link_test_code="\ 14295 program t 14296 end 14297" 14298 14299# ltmain only uses $CC for tagged configurations so make sure $CC is set. 14300 14301# If no C compiler was specified, use CC. 14302LTCC=${LTCC-"$CC"} 14303 14304# If no C compiler flags were specified, use CFLAGS. 14305LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14306 14307# Allow CC to be a program name with arguments. 14308compiler=$CC 14309 14310 14311# save warnings/boilerplate of simple test code 14312ac_outfile=conftest.$ac_objext 14313echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14314eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14315_lt_compiler_boilerplate=`cat conftest.err` 14316$rm conftest* 14317 14318ac_outfile=conftest.$ac_objext 14319echo "$lt_simple_link_test_code" >conftest.$ac_ext 14320eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14321_lt_linker_boilerplate=`cat conftest.err` 14322$rm -r conftest* 14323 14324 14325# Allow CC to be a program name with arguments. 14326lt_save_CC="$CC" 14327CC=${F77-"f77"} 14328compiler=$CC 14329compiler_F77=$CC 14330for cc_temp in $compiler""; do 14331 case $cc_temp in 14332 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14333 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14334 \-*) ;; 14335 *) break;; 14336 esac 14337done 14338cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14339 14340 14341{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 14342$as_echo_n "checking if libtool supports shared libraries... " >&6; } 14343{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 14344$as_echo "$can_build_shared" >&6; } 14345 14346{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 14347$as_echo_n "checking whether to build shared libraries... " >&6; } 14348test "$can_build_shared" = "no" && enable_shared=no 14349 14350# On AIX, shared libraries and static libraries use the same namespace, and 14351# are all built from PIC. 14352case $host_os in 14353aix3*) 14354 test "$enable_shared" = yes && enable_static=no 14355 if test -n "$RANLIB"; then 14356 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14357 postinstall_cmds='$RANLIB $lib' 14358 fi 14359 ;; 14360aix[4-9]*) 14361 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 14362 test "$enable_shared" = yes && enable_static=no 14363 fi 14364 ;; 14365esac 14366{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 14367$as_echo "$enable_shared" >&6; } 14368 14369{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 14370$as_echo_n "checking whether to build static libraries... " >&6; } 14371# Make sure either enable_shared or enable_static is yes. 14372test "$enable_shared" = yes || enable_static=yes 14373{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5 14374$as_echo "$enable_static" >&6; } 14375 14376GCC_F77="$G77" 14377LD_F77="$LD" 14378 14379lt_prog_compiler_wl_F77= 14380lt_prog_compiler_pic_F77= 14381lt_prog_compiler_static_F77= 14382 14383{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14384$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14385 14386 if test "$GCC" = yes; then 14387 lt_prog_compiler_wl_F77='-Wl,' 14388 lt_prog_compiler_static_F77='-static' 14389 14390 case $host_os in 14391 aix*) 14392 # All AIX code is PIC. 14393 if test "$host_cpu" = ia64; then 14394 # AIX 5 now supports IA64 processor 14395 lt_prog_compiler_static_F77='-Bstatic' 14396 fi 14397 ;; 14398 14399 amigaos*) 14400 # FIXME: we need at least 68020 code to build shared libraries, but 14401 # adding the `-m68020' flag to GCC prevents building anything better, 14402 # like `-m68040'. 14403 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 14404 ;; 14405 14406 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14407 # PIC is the default for these OSes. 14408 ;; 14409 14410 mingw* | cygwin* | pw32* | os2*) 14411 # This hack is so that the source file can tell whether it is being 14412 # built for inclusion in a dll (and should export symbols for example). 14413 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14414 # (--disable-auto-import) libraries 14415 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14416 ;; 14417 14418 darwin* | rhapsody*) 14419 # PIC is the default on this platform 14420 # Common symbols not allowed in MH_DYLIB files 14421 lt_prog_compiler_pic_F77='-fno-common' 14422 ;; 14423 14424 interix[3-9]*) 14425 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14426 # Instead, we relocate shared libraries at runtime. 14427 ;; 14428 14429 msdosdjgpp*) 14430 # Just because we use GCC doesn't mean we suddenly get shared libraries 14431 # on systems that don't support them. 14432 lt_prog_compiler_can_build_shared_F77=no 14433 enable_shared=no 14434 ;; 14435 14436 sysv4*MP*) 14437 if test -d /usr/nec; then 14438 lt_prog_compiler_pic_F77=-Kconform_pic 14439 fi 14440 ;; 14441 14442 hpux*) 14443 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14444 # not for PA HP-UX. 14445 case $host_cpu in 14446 hppa*64*|ia64*) 14447 # +Z the default 14448 ;; 14449 *) 14450 lt_prog_compiler_pic_F77='-fPIC' 14451 ;; 14452 esac 14453 ;; 14454 14455 *) 14456 lt_prog_compiler_pic_F77='-fPIC' 14457 ;; 14458 esac 14459 else 14460 # PORTME Check for flag to pass linker flags through the system compiler. 14461 case $host_os in 14462 aix*) 14463 lt_prog_compiler_wl_F77='-Wl,' 14464 if test "$host_cpu" = ia64; then 14465 # AIX 5 now supports IA64 processor 14466 lt_prog_compiler_static_F77='-Bstatic' 14467 else 14468 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 14469 fi 14470 ;; 14471 darwin*) 14472 # PIC is the default on this platform 14473 # Common symbols not allowed in MH_DYLIB files 14474 case $cc_basename in 14475 xlc*) 14476 lt_prog_compiler_pic_F77='-qnocommon' 14477 lt_prog_compiler_wl_F77='-Wl,' 14478 ;; 14479 esac 14480 ;; 14481 14482 mingw* | cygwin* | pw32* | os2*) 14483 # This hack is so that the source file can tell whether it is being 14484 # built for inclusion in a dll (and should export symbols for example). 14485 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14486 ;; 14487 14488 hpux9* | hpux10* | hpux11*) 14489 lt_prog_compiler_wl_F77='-Wl,' 14490 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14491 # not for PA HP-UX. 14492 case $host_cpu in 14493 hppa*64*|ia64*) 14494 # +Z the default 14495 ;; 14496 *) 14497 lt_prog_compiler_pic_F77='+Z' 14498 ;; 14499 esac 14500 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14501 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 14502 ;; 14503 14504 irix5* | irix6* | nonstopux*) 14505 lt_prog_compiler_wl_F77='-Wl,' 14506 # PIC (with -KPIC) is the default. 14507 lt_prog_compiler_static_F77='-non_shared' 14508 ;; 14509 14510 newsos6) 14511 lt_prog_compiler_pic_F77='-KPIC' 14512 lt_prog_compiler_static_F77='-Bstatic' 14513 ;; 14514 14515 linux* | k*bsd*-gnu) 14516 case $cc_basename in 14517 icc* | ecc*) 14518 lt_prog_compiler_wl_F77='-Wl,' 14519 lt_prog_compiler_pic_F77='-KPIC' 14520 lt_prog_compiler_static_F77='-static' 14521 ;; 14522 pgcc* | pgf77* | pgf90* | pgf95*) 14523 # Portland Group compilers (*not* the Pentium gcc compiler, 14524 # which looks to be a dead project) 14525 lt_prog_compiler_wl_F77='-Wl,' 14526 lt_prog_compiler_pic_F77='-fpic' 14527 lt_prog_compiler_static_F77='-Bstatic' 14528 ;; 14529 ccc*) 14530 lt_prog_compiler_wl_F77='-Wl,' 14531 # All Alpha code is PIC. 14532 lt_prog_compiler_static_F77='-non_shared' 14533 ;; 14534 *) 14535 case `$CC -V 2>&1 | sed 5q` in 14536 *Sun\ C*) 14537 # Sun C 5.9 14538 lt_prog_compiler_pic_F77='-KPIC' 14539 lt_prog_compiler_static_F77='-Bstatic' 14540 lt_prog_compiler_wl_F77='-Wl,' 14541 ;; 14542 *Sun\ F*) 14543 # Sun Fortran 8.3 passes all unrecognized flags to the linker 14544 lt_prog_compiler_pic_F77='-KPIC' 14545 lt_prog_compiler_static_F77='-Bstatic' 14546 lt_prog_compiler_wl_F77='' 14547 ;; 14548 esac 14549 ;; 14550 esac 14551 ;; 14552 14553 osf3* | osf4* | osf5*) 14554 lt_prog_compiler_wl_F77='-Wl,' 14555 # All OSF/1 code is PIC. 14556 lt_prog_compiler_static_F77='-non_shared' 14557 ;; 14558 14559 rdos*) 14560 lt_prog_compiler_static_F77='-non_shared' 14561 ;; 14562 14563 solaris*) 14564 lt_prog_compiler_pic_F77='-KPIC' 14565 lt_prog_compiler_static_F77='-Bstatic' 14566 case $cc_basename in 14567 f77* | f90* | f95*) 14568 lt_prog_compiler_wl_F77='-Qoption ld ';; 14569 *) 14570 lt_prog_compiler_wl_F77='-Wl,';; 14571 esac 14572 ;; 14573 14574 sunos4*) 14575 lt_prog_compiler_wl_F77='-Qoption ld ' 14576 lt_prog_compiler_pic_F77='-PIC' 14577 lt_prog_compiler_static_F77='-Bstatic' 14578 ;; 14579 14580 sysv4 | sysv4.2uw2* | sysv4.3*) 14581 lt_prog_compiler_wl_F77='-Wl,' 14582 lt_prog_compiler_pic_F77='-KPIC' 14583 lt_prog_compiler_static_F77='-Bstatic' 14584 ;; 14585 14586 sysv4*MP*) 14587 if test -d /usr/nec ;then 14588 lt_prog_compiler_pic_F77='-Kconform_pic' 14589 lt_prog_compiler_static_F77='-Bstatic' 14590 fi 14591 ;; 14592 14593 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14594 lt_prog_compiler_wl_F77='-Wl,' 14595 lt_prog_compiler_pic_F77='-KPIC' 14596 lt_prog_compiler_static_F77='-Bstatic' 14597 ;; 14598 14599 unicos*) 14600 lt_prog_compiler_wl_F77='-Wl,' 14601 lt_prog_compiler_can_build_shared_F77=no 14602 ;; 14603 14604 uts4*) 14605 lt_prog_compiler_pic_F77='-pic' 14606 lt_prog_compiler_static_F77='-Bstatic' 14607 ;; 14608 14609 *) 14610 lt_prog_compiler_can_build_shared_F77=no 14611 ;; 14612 esac 14613 fi 14614 14615{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 14616$as_echo "$lt_prog_compiler_pic_F77" >&6; } 14617 14618# 14619# Check to make sure the PIC flag actually works. 14620# 14621if test -n "$lt_prog_compiler_pic_F77"; then 14622 14623{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 14624$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; } 14625if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then 14626 $as_echo_n "(cached) " >&6 14627else 14628 lt_cv_prog_compiler_pic_works_F77=no 14629 ac_outfile=conftest.$ac_objext 14630 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14631 lt_compiler_flag="$lt_prog_compiler_pic_F77" 14632 # Insert the option either (1) after the last *FLAGS variable, or 14633 # (2) before a word containing "conftest.", or (3) at the end. 14634 # Note that $ac_compile itself does not contain backslashes and begins 14635 # with a dollar sign (not a hyphen), so the echo should work correctly. 14636 # The option is referenced via a variable to avoid confusing sed. 14637 lt_compile=`echo "$ac_compile" | $SED \ 14638 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14639 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14640 -e 's:$: $lt_compiler_flag:'` 14641 (eval echo "\"\$as_me:14641: $lt_compile\"" >&5) 14642 (eval "$lt_compile" 2>conftest.err) 14643 ac_status=$? 14644 cat conftest.err >&5 14645 echo "$as_me:14645: \$? = $ac_status" >&5 14646 if (exit $ac_status) && test -s "$ac_outfile"; then 14647 # The compiler can only warn and ignore the option if not recognized 14648 # So say no if there are warnings other than the usual output. 14649 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14650 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14651 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14652 lt_cv_prog_compiler_pic_works_F77=yes 14653 fi 14654 fi 14655 $rm conftest* 14656 14657fi 14658{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5 14659$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; } 14660 14661if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then 14662 case $lt_prog_compiler_pic_F77 in 14663 "" | " "*) ;; 14664 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 14665 esac 14666else 14667 lt_prog_compiler_pic_F77= 14668 lt_prog_compiler_can_build_shared_F77=no 14669fi 14670 14671fi 14672case $host_os in 14673 # For platforms which do not support PIC, -DPIC is meaningless: 14674 *djgpp*) 14675 lt_prog_compiler_pic_F77= 14676 ;; 14677 *) 14678 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 14679 ;; 14680esac 14681 14682# 14683# Check to make sure the static flag actually works. 14684# 14685wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 14686{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14687$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14688if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then 14689 $as_echo_n "(cached) " >&6 14690else 14691 lt_cv_prog_compiler_static_works_F77=no 14692 save_LDFLAGS="$LDFLAGS" 14693 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14694 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14695 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14696 # The linker can only warn and ignore the option if not recognized 14697 # So say no if there are warnings 14698 if test -s conftest.err; then 14699 # Append any errors to the config.log. 14700 cat conftest.err 1>&5 14701 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14702 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14703 if diff conftest.exp conftest.er2 >/dev/null; then 14704 lt_cv_prog_compiler_static_works_F77=yes 14705 fi 14706 else 14707 lt_cv_prog_compiler_static_works_F77=yes 14708 fi 14709 fi 14710 $rm -r conftest* 14711 LDFLAGS="$save_LDFLAGS" 14712 14713fi 14714{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5 14715$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; } 14716 14717if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then 14718 : 14719else 14720 lt_prog_compiler_static_F77= 14721fi 14722 14723 14724{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14725$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14726if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 14727 $as_echo_n "(cached) " >&6 14728else 14729 lt_cv_prog_compiler_c_o_F77=no 14730 $rm -r conftest 2>/dev/null 14731 mkdir conftest 14732 cd conftest 14733 mkdir out 14734 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14735 14736 lt_compiler_flag="-o out/conftest2.$ac_objext" 14737 # Insert the option either (1) after the last *FLAGS variable, or 14738 # (2) before a word containing "conftest.", or (3) at the end. 14739 # Note that $ac_compile itself does not contain backslashes and begins 14740 # with a dollar sign (not a hyphen), so the echo should work correctly. 14741 lt_compile=`echo "$ac_compile" | $SED \ 14742 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14743 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14744 -e 's:$: $lt_compiler_flag:'` 14745 (eval echo "\"\$as_me:14745: $lt_compile\"" >&5) 14746 (eval "$lt_compile" 2>out/conftest.err) 14747 ac_status=$? 14748 cat out/conftest.err >&5 14749 echo "$as_me:14749: \$? = $ac_status" >&5 14750 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14751 then 14752 # The compiler can only warn and ignore the option if not recognized 14753 # So say no if there are warnings 14754 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14755 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14756 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14757 lt_cv_prog_compiler_c_o_F77=yes 14758 fi 14759 fi 14760 chmod u+w . 2>&5 14761 $rm conftest* 14762 # SGI C++ compiler will create directory out/ii_files/ for 14763 # template instantiation 14764 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14765 $rm out/* && rmdir out 14766 cd .. 14767 rmdir conftest 14768 $rm conftest* 14769 14770fi 14771{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14772$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; } 14773 14774 14775hard_links="nottested" 14776if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14777 # do not overwrite the value of need_locks provided by the user 14778 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14779$as_echo_n "checking if we can lock with hard links... " >&6; } 14780 hard_links=yes 14781 $rm conftest* 14782 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14783 touch conftest.a 14784 ln conftest.a conftest.b 2>&5 || hard_links=no 14785 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14786 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 14787$as_echo "$hard_links" >&6; } 14788 if test "$hard_links" = no; then 14789 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14790$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14791 need_locks=warn 14792 fi 14793else 14794 need_locks=no 14795fi 14796 14797{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14798$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14799 14800 runpath_var= 14801 allow_undefined_flag_F77= 14802 enable_shared_with_static_runtimes_F77=no 14803 archive_cmds_F77= 14804 archive_expsym_cmds_F77= 14805 old_archive_From_new_cmds_F77= 14806 old_archive_from_expsyms_cmds_F77= 14807 export_dynamic_flag_spec_F77= 14808 whole_archive_flag_spec_F77= 14809 thread_safe_flag_spec_F77= 14810 hardcode_libdir_flag_spec_F77= 14811 hardcode_libdir_flag_spec_ld_F77= 14812 hardcode_libdir_separator_F77= 14813 hardcode_direct_F77=no 14814 hardcode_minus_L_F77=no 14815 hardcode_shlibpath_var_F77=unsupported 14816 link_all_deplibs_F77=unknown 14817 hardcode_automatic_F77=no 14818 module_cmds_F77= 14819 module_expsym_cmds_F77= 14820 always_export_symbols_F77=no 14821 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14822 # include_expsyms should be a list of space-separated symbols to be *always* 14823 # included in the symbol list 14824 include_expsyms_F77= 14825 # exclude_expsyms can be an extended regexp of symbols to exclude 14826 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14827 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14828 # as well as any symbol that contains `d'. 14829 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14830 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14831 # platforms (ab)use it in PIC code, but their linkers get confused if 14832 # the symbol is explicitly referenced. Since portable code cannot 14833 # rely on this symbol name, it's probably fine to never include it in 14834 # preloaded symbol tables. 14835 # Exclude shared library initialization/finalization symbols. 14836 extract_expsyms_cmds= 14837 # Just being paranoid about ensuring that cc_basename is set. 14838 for cc_temp in $compiler""; do 14839 case $cc_temp in 14840 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14841 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14842 \-*) ;; 14843 *) break;; 14844 esac 14845done 14846cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14847 14848 case $host_os in 14849 cygwin* | mingw* | pw32*) 14850 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14851 # When not using gcc, we currently assume that we are using 14852 # Microsoft Visual C++. 14853 if test "$GCC" != yes; then 14854 with_gnu_ld=no 14855 fi 14856 ;; 14857 interix*) 14858 # we just hope/assume this is gcc and not c89 (= MSVC++) 14859 with_gnu_ld=yes 14860 ;; 14861 openbsd*) 14862 with_gnu_ld=no 14863 ;; 14864 esac 14865 14866 ld_shlibs_F77=yes 14867 if test "$with_gnu_ld" = yes; then 14868 # If archive_cmds runs LD, not CC, wlarc should be empty 14869 wlarc='${wl}' 14870 14871 # Set some defaults for GNU ld with shared library support. These 14872 # are reset later if shared libraries are not supported. Putting them 14873 # here allows them to be overridden if necessary. 14874 runpath_var=LD_RUN_PATH 14875 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14876 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14877 # ancient GNU ld didn't support --whole-archive et. al. 14878 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14879 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14880 else 14881 whole_archive_flag_spec_F77= 14882 fi 14883 supports_anon_versioning=no 14884 case `$LD -v 2>/dev/null` in 14885 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14886 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14887 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14888 *\ 2.11.*) ;; # other 2.11 versions 14889 *) supports_anon_versioning=yes ;; 14890 esac 14891 14892 # See if GNU ld supports shared libraries. 14893 case $host_os in 14894 aix[3-9]*) 14895 # On AIX/PPC, the GNU linker is very broken 14896 if test "$host_cpu" != ia64; then 14897 ld_shlibs_F77=no 14898 cat <<EOF 1>&2 14899 14900*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14901*** to be unable to reliably create shared libraries on AIX. 14902*** Therefore, libtool is disabling shared libraries support. If you 14903*** really care for shared libraries, you may want to modify your PATH 14904*** so that a non-GNU linker is found, and then restart. 14905 14906EOF 14907 fi 14908 ;; 14909 14910 amigaos*) 14911 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)' 14912 hardcode_libdir_flag_spec_F77='-L$libdir' 14913 hardcode_minus_L_F77=yes 14914 14915 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14916 # that the semantics of dynamic libraries on AmigaOS, at least up 14917 # to version 4, is to share data among multiple programs linked 14918 # with the same dynamic library. Since this doesn't match the 14919 # behavior of shared libraries on other platforms, we can't use 14920 # them. 14921 ld_shlibs_F77=no 14922 ;; 14923 14924 beos*) 14925 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14926 allow_undefined_flag_F77=unsupported 14927 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14928 # support --undefined. This deserves some investigation. FIXME 14929 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14930 else 14931 ld_shlibs_F77=no 14932 fi 14933 ;; 14934 14935 cygwin* | mingw* | pw32*) 14936 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14937 # as there is no search path for DLLs. 14938 hardcode_libdir_flag_spec_F77='-L$libdir' 14939 allow_undefined_flag_F77=unsupported 14940 always_export_symbols_F77=no 14941 enable_shared_with_static_runtimes_F77=yes 14942 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 14943 14944 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14945 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14946 # If the export-symbols file already is a .def file (1st line 14947 # is EXPORTS), use it as is; otherwise, prepend... 14948 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14949 cp $export_symbols $output_objdir/$soname.def; 14950 else 14951 echo EXPORTS > $output_objdir/$soname.def; 14952 cat $export_symbols >> $output_objdir/$soname.def; 14953 fi~ 14954 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14955 else 14956 ld_shlibs_F77=no 14957 fi 14958 ;; 14959 14960 interix[3-9]*) 14961 hardcode_direct_F77=no 14962 hardcode_shlibpath_var_F77=no 14963 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14964 export_dynamic_flag_spec_F77='${wl}-E' 14965 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14966 # Instead, shared libraries are loaded at an image base (0x10000000 by 14967 # default) and relocated if they conflict, which is a slow very memory 14968 # consuming and fragmenting process. To avoid this, we pick a random, 14969 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14970 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14971 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' 14972 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' 14973 ;; 14974 14975 gnu* | linux* | k*bsd*-gnu) 14976 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14977 tmp_addflag= 14978 case $cc_basename,$host_cpu in 14979 pgcc*) # Portland Group C compiler 14980 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' 14981 tmp_addflag=' $pic_flag' 14982 ;; 14983 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14984 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' 14985 tmp_addflag=' $pic_flag -Mnomain' ;; 14986 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14987 tmp_addflag=' -i_dynamic' ;; 14988 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14989 tmp_addflag=' -i_dynamic -nofor_main' ;; 14990 ifc* | ifort*) # Intel Fortran compiler 14991 tmp_addflag=' -nofor_main' ;; 14992 esac 14993 case `$CC -V 2>&1 | sed 5q` in 14994 *Sun\ C*) # Sun C 5.9 14995 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' 14996 tmp_sharedflag='-G' ;; 14997 *Sun\ F*) # Sun Fortran 8.3 14998 tmp_sharedflag='-G' ;; 14999 *) 15000 tmp_sharedflag='-shared' ;; 15001 esac 15002 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15003 15004 if test $supports_anon_versioning = yes; then 15005 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 15006 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15007 $echo "local: *; };" >> $output_objdir/$libname.ver~ 15008 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 15009 fi 15010 else 15011 ld_shlibs_F77=no 15012 fi 15013 ;; 15014 15015 netbsd*) 15016 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15017 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15018 wlarc= 15019 else 15020 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15021 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15022 fi 15023 ;; 15024 15025 solaris*) 15026 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 15027 ld_shlibs_F77=no 15028 cat <<EOF 1>&2 15029 15030*** Warning: The releases 2.8.* of the GNU linker cannot reliably 15031*** create shared libraries on Solaris systems. Therefore, libtool 15032*** is disabling shared libraries support. We urge you to upgrade GNU 15033*** binutils to release 2.9.1 or newer. Another option is to modify 15034*** your PATH or compiler configuration so that the native linker is 15035*** used, and then restart. 15036 15037EOF 15038 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15039 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15040 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15041 else 15042 ld_shlibs_F77=no 15043 fi 15044 ;; 15045 15046 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 15047 case `$LD -v 2>&1` in 15048 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 15049 ld_shlibs_F77=no 15050 cat <<_LT_EOF 1>&2 15051 15052*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 15053*** reliably create shared libraries on SCO systems. Therefore, libtool 15054*** is disabling shared libraries support. We urge you to upgrade GNU 15055*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 15056*** your PATH or compiler configuration so that the native linker is 15057*** used, and then restart. 15058 15059_LT_EOF 15060 ;; 15061 *) 15062 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15063 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 15064 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 15065 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 15066 else 15067 ld_shlibs_F77=no 15068 fi 15069 ;; 15070 esac 15071 ;; 15072 15073 sunos4*) 15074 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15075 wlarc= 15076 hardcode_direct_F77=yes 15077 hardcode_shlibpath_var_F77=no 15078 ;; 15079 15080 *) 15081 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15082 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15083 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15084 else 15085 ld_shlibs_F77=no 15086 fi 15087 ;; 15088 esac 15089 15090 if test "$ld_shlibs_F77" = no; then 15091 runpath_var= 15092 hardcode_libdir_flag_spec_F77= 15093 export_dynamic_flag_spec_F77= 15094 whole_archive_flag_spec_F77= 15095 fi 15096 else 15097 # PORTME fill in a description of your system's linker (not GNU ld) 15098 case $host_os in 15099 aix3*) 15100 allow_undefined_flag_F77=unsupported 15101 always_export_symbols_F77=yes 15102 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' 15103 # Note: this linker hardcodes the directories in LIBPATH if there 15104 # are no directories specified by -L. 15105 hardcode_minus_L_F77=yes 15106 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 15107 # Neither direct hardcoding nor static linking is supported with a 15108 # broken collect2. 15109 hardcode_direct_F77=unsupported 15110 fi 15111 ;; 15112 15113 aix[4-9]*) 15114 if test "$host_cpu" = ia64; then 15115 # On IA64, the linker does run time linking by default, so we don't 15116 # have to do anything special. 15117 aix_use_runtimelinking=no 15118 exp_sym_flag='-Bexport' 15119 no_entry_flag="" 15120 else 15121 # If we're using GNU nm, then we don't want the "-C" option. 15122 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15123 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 15124 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' 15125 else 15126 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' 15127 fi 15128 aix_use_runtimelinking=no 15129 15130 # Test if we are trying to use run time linking or normal 15131 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15132 # need to do runtime linking. 15133 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 15134 for ld_flag in $LDFLAGS; do 15135 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 15136 aix_use_runtimelinking=yes 15137 break 15138 fi 15139 done 15140 ;; 15141 esac 15142 15143 exp_sym_flag='-bexport' 15144 no_entry_flag='-bnoentry' 15145 fi 15146 15147 # When large executables or shared objects are built, AIX ld can 15148 # have problems creating the table of contents. If linking a library 15149 # or program results in "error TOC overflow" add -mminimal-toc to 15150 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15151 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15152 15153 archive_cmds_F77='' 15154 hardcode_direct_F77=yes 15155 hardcode_libdir_separator_F77=':' 15156 link_all_deplibs_F77=yes 15157 15158 if test "$GCC" = yes; then 15159 case $host_os in aix4.[012]|aix4.[012].*) 15160 # We only want to do this on AIX 4.2 and lower, the check 15161 # below for broken collect2 doesn't work under 4.3+ 15162 collect2name=`${CC} -print-prog-name=collect2` 15163 if test -f "$collect2name" && \ 15164 strings "$collect2name" | grep resolve_lib_name >/dev/null 15165 then 15166 # We have reworked collect2 15167 : 15168 else 15169 # We have old collect2 15170 hardcode_direct_F77=unsupported 15171 # It fails to find uninstalled libraries when the uninstalled 15172 # path is not listed in the libpath. Setting hardcode_minus_L 15173 # to unsupported forces relinking 15174 hardcode_minus_L_F77=yes 15175 hardcode_libdir_flag_spec_F77='-L$libdir' 15176 hardcode_libdir_separator_F77= 15177 fi 15178 ;; 15179 esac 15180 shared_flag='-shared' 15181 if test "$aix_use_runtimelinking" = yes; then 15182 shared_flag="$shared_flag "'${wl}-G' 15183 fi 15184 else 15185 # not using gcc 15186 if test "$host_cpu" = ia64; then 15187 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15188 # chokes on -Wl,-G. The following line is correct: 15189 shared_flag='-G' 15190 else 15191 if test "$aix_use_runtimelinking" = yes; then 15192 shared_flag='${wl}-G' 15193 else 15194 shared_flag='${wl}-bM:SRE' 15195 fi 15196 fi 15197 fi 15198 15199 # It seems that -bexpall does not export symbols beginning with 15200 # underscore (_), so it is better to generate a list of symbols to export. 15201 always_export_symbols_F77=yes 15202 if test "$aix_use_runtimelinking" = yes; then 15203 # Warning - without using the other runtime loading flags (-brtl), 15204 # -berok will link without error, but may produce a broken library. 15205 allow_undefined_flag_F77='-berok' 15206 # Determine the default libpath from the value encoded in an empty executable. 15207 cat >conftest.$ac_ext <<_ACEOF 15208 program main 15209 15210 end 15211_ACEOF 15212rm -f conftest.$ac_objext conftest$ac_exeext 15213if { (ac_try="$ac_link" 15214case "(($ac_try" in 15215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15216 *) ac_try_echo=$ac_try;; 15217esac 15218eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15219$as_echo "$ac_try_echo") >&5 15220 (eval "$ac_link") 2>conftest.er1 15221 ac_status=$? 15222 grep -v '^ *+' conftest.er1 >conftest.err 15223 rm -f conftest.er1 15224 cat conftest.err >&5 15225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15226 (exit $ac_status); } && { 15227 test -z "$ac_f77_werror_flag" || 15228 test ! -s conftest.err 15229 } && test -s conftest$ac_exeext && { 15230 test "$cross_compiling" = yes || 15231 $as_test_x conftest$ac_exeext 15232 }; then 15233 15234lt_aix_libpath_sed=' 15235 /Import File Strings/,/^$/ { 15236 /^0/ { 15237 s/^0 *\(.*\)$/\1/ 15238 p 15239 } 15240 }' 15241aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15242# Check for a 64-bit object if we didn't find anything. 15243if test -z "$aix_libpath"; then 15244 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15245fi 15246else 15247 $as_echo "$as_me: failed program was:" >&5 15248sed 's/^/| /' conftest.$ac_ext >&5 15249 15250 15251fi 15252 15253rm -rf conftest.dSYM 15254rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15255 conftest$ac_exeext conftest.$ac_ext 15256if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15257 15258 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15259 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" 15260 else 15261 if test "$host_cpu" = ia64; then 15262 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 15263 allow_undefined_flag_F77="-z nodefs" 15264 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" 15265 else 15266 # Determine the default libpath from the value encoded in an empty executable. 15267 cat >conftest.$ac_ext <<_ACEOF 15268 program main 15269 15270 end 15271_ACEOF 15272rm -f conftest.$ac_objext conftest$ac_exeext 15273if { (ac_try="$ac_link" 15274case "(($ac_try" in 15275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15276 *) ac_try_echo=$ac_try;; 15277esac 15278eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15279$as_echo "$ac_try_echo") >&5 15280 (eval "$ac_link") 2>conftest.er1 15281 ac_status=$? 15282 grep -v '^ *+' conftest.er1 >conftest.err 15283 rm -f conftest.er1 15284 cat conftest.err >&5 15285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15286 (exit $ac_status); } && { 15287 test -z "$ac_f77_werror_flag" || 15288 test ! -s conftest.err 15289 } && test -s conftest$ac_exeext && { 15290 test "$cross_compiling" = yes || 15291 $as_test_x conftest$ac_exeext 15292 }; then 15293 15294lt_aix_libpath_sed=' 15295 /Import File Strings/,/^$/ { 15296 /^0/ { 15297 s/^0 *\(.*\)$/\1/ 15298 p 15299 } 15300 }' 15301aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15302# Check for a 64-bit object if we didn't find anything. 15303if test -z "$aix_libpath"; then 15304 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15305fi 15306else 15307 $as_echo "$as_me: failed program was:" >&5 15308sed 's/^/| /' conftest.$ac_ext >&5 15309 15310 15311fi 15312 15313rm -rf conftest.dSYM 15314rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15315 conftest$ac_exeext conftest.$ac_ext 15316if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15317 15318 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15319 # Warning - without using the other run time loading flags, 15320 # -berok will link without error, but may produce a broken library. 15321 no_undefined_flag_F77=' ${wl}-bernotok' 15322 allow_undefined_flag_F77=' ${wl}-berok' 15323 # Exported symbols can be pulled into shared objects from archives 15324 whole_archive_flag_spec_F77='$convenience' 15325 archive_cmds_need_lc_F77=yes 15326 # This is similar to how AIX traditionally builds its shared libraries. 15327 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' 15328 fi 15329 fi 15330 ;; 15331 15332 amigaos*) 15333 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)' 15334 hardcode_libdir_flag_spec_F77='-L$libdir' 15335 hardcode_minus_L_F77=yes 15336 # see comment about different semantics on the GNU ld section 15337 ld_shlibs_F77=no 15338 ;; 15339 15340 bsdi[45]*) 15341 export_dynamic_flag_spec_F77=-rdynamic 15342 ;; 15343 15344 cygwin* | mingw* | pw32*) 15345 # When not using gcc, we currently assume that we are using 15346 # Microsoft Visual C++. 15347 # hardcode_libdir_flag_spec is actually meaningless, as there is 15348 # no search path for DLLs. 15349 hardcode_libdir_flag_spec_F77=' ' 15350 allow_undefined_flag_F77=unsupported 15351 # Tell ltmain to make .lib files, not .a files. 15352 libext=lib 15353 # Tell ltmain to make .dll files, not .so files. 15354 shrext_cmds=".dll" 15355 # FIXME: Setting linknames here is a bad hack. 15356 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 15357 # The linker will automatically build a .lib file if we build a DLL. 15358 old_archive_From_new_cmds_F77='true' 15359 # FIXME: Should let the user specify the lib program. 15360 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' 15361 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 15362 enable_shared_with_static_runtimes_F77=yes 15363 ;; 15364 15365 darwin* | rhapsody*) 15366 case $host_os in 15367 rhapsody* | darwin1.[012]) 15368 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 15369 ;; 15370 *) # Darwin 1.3 on 15371 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 15372 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15373 else 15374 case ${MACOSX_DEPLOYMENT_TARGET} in 15375 10.[012]) 15376 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15377 ;; 15378 10.*) 15379 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 15380 ;; 15381 esac 15382 fi 15383 ;; 15384 esac 15385 archive_cmds_need_lc_F77=no 15386 hardcode_direct_F77=no 15387 hardcode_automatic_F77=yes 15388 hardcode_shlibpath_var_F77=unsupported 15389 whole_archive_flag_spec_F77='' 15390 link_all_deplibs_F77=yes 15391 if test "$GCC" = yes ; then 15392 output_verbose_link_cmd='echo' 15393 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}" 15394 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 15395 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}" 15396 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}" 15397 else 15398 case $cc_basename in 15399 xlc*) 15400 output_verbose_link_cmd='echo' 15401 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 15402 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15403 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15404 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}' 15405 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}' 15406 ;; 15407 *) 15408 ld_shlibs_F77=no 15409 ;; 15410 esac 15411 fi 15412 ;; 15413 15414 dgux*) 15415 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15416 hardcode_libdir_flag_spec_F77='-L$libdir' 15417 hardcode_shlibpath_var_F77=no 15418 ;; 15419 15420 freebsd1*) 15421 ld_shlibs_F77=no 15422 ;; 15423 15424 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15425 # support. Future versions do this automatically, but an explicit c++rt0.o 15426 # does not break anything, and helps significantly (at the cost of a little 15427 # extra space). 15428 freebsd2.2*) 15429 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15430 hardcode_libdir_flag_spec_F77='-R$libdir' 15431 hardcode_direct_F77=yes 15432 hardcode_shlibpath_var_F77=no 15433 ;; 15434 15435 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15436 freebsd2*) 15437 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15438 hardcode_direct_F77=yes 15439 hardcode_minus_L_F77=yes 15440 hardcode_shlibpath_var_F77=no 15441 ;; 15442 15443 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15444 freebsd* | dragonfly*) 15445 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 15446 hardcode_libdir_flag_spec_F77='-R$libdir' 15447 hardcode_direct_F77=yes 15448 hardcode_shlibpath_var_F77=no 15449 ;; 15450 15451 hpux9*) 15452 if test "$GCC" = yes; then 15453 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' 15454 else 15455 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' 15456 fi 15457 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15458 hardcode_libdir_separator_F77=: 15459 hardcode_direct_F77=yes 15460 15461 # hardcode_minus_L: Not really in the search PATH, 15462 # but as the default location of the library. 15463 hardcode_minus_L_F77=yes 15464 export_dynamic_flag_spec_F77='${wl}-E' 15465 ;; 15466 15467 hpux10*) 15468 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15469 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15470 else 15471 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15472 fi 15473 if test "$with_gnu_ld" = no; then 15474 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15475 hardcode_libdir_separator_F77=: 15476 15477 hardcode_direct_F77=yes 15478 export_dynamic_flag_spec_F77='${wl}-E' 15479 15480 # hardcode_minus_L: Not really in the search PATH, 15481 # but as the default location of the library. 15482 hardcode_minus_L_F77=yes 15483 fi 15484 ;; 15485 15486 hpux11*) 15487 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15488 case $host_cpu in 15489 hppa*64*) 15490 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15491 ;; 15492 ia64*) 15493 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15494 ;; 15495 *) 15496 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15497 ;; 15498 esac 15499 else 15500 case $host_cpu in 15501 hppa*64*) 15502 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15503 ;; 15504 ia64*) 15505 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15506 ;; 15507 *) 15508 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15509 ;; 15510 esac 15511 fi 15512 if test "$with_gnu_ld" = no; then 15513 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15514 hardcode_libdir_separator_F77=: 15515 15516 case $host_cpu in 15517 hppa*64*|ia64*) 15518 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 15519 hardcode_direct_F77=no 15520 hardcode_shlibpath_var_F77=no 15521 ;; 15522 *) 15523 hardcode_direct_F77=yes 15524 export_dynamic_flag_spec_F77='${wl}-E' 15525 15526 # hardcode_minus_L: Not really in the search PATH, 15527 # but as the default location of the library. 15528 hardcode_minus_L_F77=yes 15529 ;; 15530 esac 15531 fi 15532 ;; 15533 15534 irix5* | irix6* | nonstopux*) 15535 if test "$GCC" = yes; then 15536 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' 15537 else 15538 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' 15539 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 15540 fi 15541 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15542 hardcode_libdir_separator_F77=: 15543 link_all_deplibs_F77=yes 15544 ;; 15545 15546 netbsd*) 15547 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15548 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15549 else 15550 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15551 fi 15552 hardcode_libdir_flag_spec_F77='-R$libdir' 15553 hardcode_direct_F77=yes 15554 hardcode_shlibpath_var_F77=no 15555 ;; 15556 15557 newsos6) 15558 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15559 hardcode_direct_F77=yes 15560 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15561 hardcode_libdir_separator_F77=: 15562 hardcode_shlibpath_var_F77=no 15563 ;; 15564 15565 openbsd*) 15566 if test -f /usr/libexec/ld.so; then 15567 hardcode_direct_F77=yes 15568 hardcode_shlibpath_var_F77=no 15569 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15570 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15571 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 15572 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15573 export_dynamic_flag_spec_F77='${wl}-E' 15574 else 15575 case $host_os in 15576 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15577 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15578 hardcode_libdir_flag_spec_F77='-R$libdir' 15579 ;; 15580 *) 15581 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15582 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15583 ;; 15584 esac 15585 fi 15586 else 15587 ld_shlibs_F77=no 15588 fi 15589 ;; 15590 15591 os2*) 15592 hardcode_libdir_flag_spec_F77='-L$libdir' 15593 hardcode_minus_L_F77=yes 15594 allow_undefined_flag_F77=unsupported 15595 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' 15596 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15597 ;; 15598 15599 osf3*) 15600 if test "$GCC" = yes; then 15601 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15602 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' 15603 else 15604 allow_undefined_flag_F77=' -expect_unresolved \*' 15605 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' 15606 fi 15607 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15608 hardcode_libdir_separator_F77=: 15609 ;; 15610 15611 osf4* | osf5*) # as osf3* with the addition of -msym flag 15612 if test "$GCC" = yes; then 15613 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15614 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' 15615 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15616 else 15617 allow_undefined_flag_F77=' -expect_unresolved \*' 15618 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' 15619 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~ 15620 $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' 15621 15622 # Both c and cxx compiler support -rpath directly 15623 hardcode_libdir_flag_spec_F77='-rpath $libdir' 15624 fi 15625 hardcode_libdir_separator_F77=: 15626 ;; 15627 15628 solaris*) 15629 no_undefined_flag_F77=' -z text' 15630 if test "$GCC" = yes; then 15631 wlarc='${wl}' 15632 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15633 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15634 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15635 else 15636 wlarc='' 15637 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15638 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15639 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15640 fi 15641 hardcode_libdir_flag_spec_F77='-R$libdir' 15642 hardcode_shlibpath_var_F77=no 15643 case $host_os in 15644 solaris2.[0-5] | solaris2.[0-5].*) ;; 15645 *) 15646 # The compiler driver will combine and reorder linker options, 15647 # but understands `-z linker_flag'. GCC discards it without `$wl', 15648 # but is careful enough not to reorder. 15649 # Supported since Solaris 2.6 (maybe 2.5.1?) 15650 if test "$GCC" = yes; then 15651 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 15652 else 15653 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' 15654 fi 15655 ;; 15656 esac 15657 link_all_deplibs_F77=yes 15658 ;; 15659 15660 sunos4*) 15661 if test "x$host_vendor" = xsequent; then 15662 # Use $CC to link under sequent, because it throws in some extra .o 15663 # files that make .init and .fini sections work. 15664 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15665 else 15666 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15667 fi 15668 hardcode_libdir_flag_spec_F77='-L$libdir' 15669 hardcode_direct_F77=yes 15670 hardcode_minus_L_F77=yes 15671 hardcode_shlibpath_var_F77=no 15672 ;; 15673 15674 sysv4) 15675 case $host_vendor in 15676 sni) 15677 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15678 hardcode_direct_F77=yes # is this really true??? 15679 ;; 15680 siemens) 15681 ## LD is ld it makes a PLAMLIB 15682 ## CC just makes a GrossModule. 15683 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15684 reload_cmds_F77='$CC -r -o $output$reload_objs' 15685 hardcode_direct_F77=no 15686 ;; 15687 motorola) 15688 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15689 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 15690 ;; 15691 esac 15692 runpath_var='LD_RUN_PATH' 15693 hardcode_shlibpath_var_F77=no 15694 ;; 15695 15696 sysv4.3*) 15697 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15698 hardcode_shlibpath_var_F77=no 15699 export_dynamic_flag_spec_F77='-Bexport' 15700 ;; 15701 15702 sysv4*MP*) 15703 if test -d /usr/nec; then 15704 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15705 hardcode_shlibpath_var_F77=no 15706 runpath_var=LD_RUN_PATH 15707 hardcode_runpath_var=yes 15708 ld_shlibs_F77=yes 15709 fi 15710 ;; 15711 15712 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15713 no_undefined_flag_F77='${wl}-z,text' 15714 archive_cmds_need_lc_F77=no 15715 hardcode_shlibpath_var_F77=no 15716 runpath_var='LD_RUN_PATH' 15717 15718 if test "$GCC" = yes; then 15719 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15720 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15721 else 15722 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15723 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15724 fi 15725 ;; 15726 15727 sysv5* | sco3.2v5* | sco5v6*) 15728 # Note: We can NOT use -z defs as we might desire, because we do not 15729 # link with -lc, and that would cause any symbols used from libc to 15730 # always be unresolved, which means just about no library would 15731 # ever link correctly. If we're not using GNU ld we use -z text 15732 # though, which does catch some bad symbols but isn't as heavy-handed 15733 # as -z defs. 15734 no_undefined_flag_F77='${wl}-z,text' 15735 allow_undefined_flag_F77='${wl}-z,nodefs' 15736 archive_cmds_need_lc_F77=no 15737 hardcode_shlibpath_var_F77=no 15738 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 15739 hardcode_libdir_separator_F77=':' 15740 link_all_deplibs_F77=yes 15741 export_dynamic_flag_spec_F77='${wl}-Bexport' 15742 runpath_var='LD_RUN_PATH' 15743 15744 if test "$GCC" = yes; then 15745 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15746 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15747 else 15748 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15749 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15750 fi 15751 ;; 15752 15753 uts4*) 15754 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15755 hardcode_libdir_flag_spec_F77='-L$libdir' 15756 hardcode_shlibpath_var_F77=no 15757 ;; 15758 15759 *) 15760 ld_shlibs_F77=no 15761 ;; 15762 esac 15763 fi 15764 15765{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 15766$as_echo "$ld_shlibs_F77" >&6; } 15767test "$ld_shlibs_F77" = no && can_build_shared=no 15768 15769# 15770# Do we need to explicitly link libc? 15771# 15772case "x$archive_cmds_need_lc_F77" in 15773x|xyes) 15774 # Assume -lc should be added 15775 archive_cmds_need_lc_F77=yes 15776 15777 if test "$enable_shared" = yes && test "$GCC" = yes; then 15778 case $archive_cmds_F77 in 15779 *'~'*) 15780 # FIXME: we may have to deal with multi-command sequences. 15781 ;; 15782 '$CC '*) 15783 # Test whether the compiler implicitly links with -lc since on some 15784 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15785 # to ld, don't add -lc before -lgcc. 15786 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15787$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15788 $rm conftest* 15789 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15790 15791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15792 (eval $ac_compile) 2>&5 15793 ac_status=$? 15794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15795 (exit $ac_status); } 2>conftest.err; then 15796 soname=conftest 15797 lib=conftest 15798 libobjs=conftest.$ac_objext 15799 deplibs= 15800 wl=$lt_prog_compiler_wl_F77 15801 pic_flag=$lt_prog_compiler_pic_F77 15802 compiler_flags=-v 15803 linker_flags=-v 15804 verstring= 15805 output_objdir=. 15806 libname=conftest 15807 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15808 allow_undefined_flag_F77= 15809 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15810 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15811 ac_status=$? 15812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15813 (exit $ac_status); } 15814 then 15815 archive_cmds_need_lc_F77=no 15816 else 15817 archive_cmds_need_lc_F77=yes 15818 fi 15819 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15820 else 15821 cat conftest.err 1>&5 15822 fi 15823 $rm conftest* 15824 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15825$as_echo "$archive_cmds_need_lc_F77" >&6; } 15826 ;; 15827 esac 15828 fi 15829 ;; 15830esac 15831 15832{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15833$as_echo_n "checking dynamic linker characteristics... " >&6; } 15834library_names_spec= 15835libname_spec='lib$name' 15836soname_spec= 15837shrext_cmds=".so" 15838postinstall_cmds= 15839postuninstall_cmds= 15840finish_cmds= 15841finish_eval= 15842shlibpath_var= 15843shlibpath_overrides_runpath=unknown 15844version_type=none 15845dynamic_linker="$host_os ld.so" 15846sys_lib_dlsearch_path_spec="/lib /usr/lib" 15847 15848need_lib_prefix=unknown 15849hardcode_into_libs=no 15850 15851# when you set need_version to no, make sure it does not cause -set_version 15852# flags to be left without arguments 15853need_version=unknown 15854 15855case $host_os in 15856aix3*) 15857 version_type=linux 15858 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15859 shlibpath_var=LIBPATH 15860 15861 # AIX 3 has no versioning support, so we append a major version to the name. 15862 soname_spec='${libname}${release}${shared_ext}$major' 15863 ;; 15864 15865aix[4-9]*) 15866 version_type=linux 15867 need_lib_prefix=no 15868 need_version=no 15869 hardcode_into_libs=yes 15870 if test "$host_cpu" = ia64; then 15871 # AIX 5 supports IA64 15872 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15873 shlibpath_var=LD_LIBRARY_PATH 15874 else 15875 # With GCC up to 2.95.x, collect2 would create an import file 15876 # for dependence libraries. The import file would start with 15877 # the line `#! .'. This would cause the generated library to 15878 # depend on `.', always an invalid library. This was fixed in 15879 # development snapshots of GCC prior to 3.0. 15880 case $host_os in 15881 aix4 | aix4.[01] | aix4.[01].*) 15882 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15883 echo ' yes ' 15884 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15885 : 15886 else 15887 can_build_shared=no 15888 fi 15889 ;; 15890 esac 15891 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15892 # soname into executable. Probably we can add versioning support to 15893 # collect2, so additional links can be useful in future. 15894 if test "$aix_use_runtimelinking" = yes; then 15895 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15896 # instead of lib<name>.a to let people know that these are not 15897 # typical AIX shared libraries. 15898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15899 else 15900 # We preserve .a as extension for shared libraries through AIX4.2 15901 # and later when we are not doing run time linking. 15902 library_names_spec='${libname}${release}.a $libname.a' 15903 soname_spec='${libname}${release}${shared_ext}$major' 15904 fi 15905 shlibpath_var=LIBPATH 15906 fi 15907 ;; 15908 15909amigaos*) 15910 library_names_spec='$libname.ixlibrary $libname.a' 15911 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15912 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' 15913 ;; 15914 15915beos*) 15916 library_names_spec='${libname}${shared_ext}' 15917 dynamic_linker="$host_os ld.so" 15918 shlibpath_var=LIBRARY_PATH 15919 ;; 15920 15921bsdi[45]*) 15922 version_type=linux 15923 need_version=no 15924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15925 soname_spec='${libname}${release}${shared_ext}$major' 15926 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15927 shlibpath_var=LD_LIBRARY_PATH 15928 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15929 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15930 # the default ld.so.conf also contains /usr/contrib/lib and 15931 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15932 # libtool to hard-code these into programs 15933 ;; 15934 15935cygwin* | mingw* | pw32*) 15936 version_type=windows 15937 shrext_cmds=".dll" 15938 need_version=no 15939 need_lib_prefix=no 15940 15941 case $GCC,$host_os in 15942 yes,cygwin* | yes,mingw* | yes,pw32*) 15943 library_names_spec='$libname.dll.a' 15944 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15945 postinstall_cmds='base_file=`basename \${file}`~ 15946 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15947 dldir=$destdir/`dirname \$dlpath`~ 15948 test -d \$dldir || mkdir -p \$dldir~ 15949 $install_prog $dir/$dlname \$dldir/$dlname~ 15950 chmod a+x \$dldir/$dlname' 15951 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15952 dlpath=$dir/\$dldll~ 15953 $rm \$dlpath' 15954 shlibpath_overrides_runpath=yes 15955 15956 case $host_os in 15957 cygwin*) 15958 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15959 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15960 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15961 ;; 15962 mingw*) 15963 # MinGW DLLs use traditional 'lib' prefix 15964 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15965 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15966 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15967 # It is most probably a Windows format PATH printed by 15968 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15969 # path with ; separators, and with drive letters. We can handle the 15970 # drive letters (cygwin fileutils understands them), so leave them, 15971 # especially as we might pass files found there to a mingw objdump, 15972 # which wouldn't understand a cygwinified path. Ahh. 15973 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15974 else 15975 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15976 fi 15977 ;; 15978 pw32*) 15979 # pw32 DLLs use 'pw' prefix rather than 'lib' 15980 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15981 ;; 15982 esac 15983 ;; 15984 15985 *) 15986 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15987 ;; 15988 esac 15989 dynamic_linker='Win32 ld.exe' 15990 # FIXME: first we should search . and the directory the executable is in 15991 shlibpath_var=PATH 15992 ;; 15993 15994darwin* | rhapsody*) 15995 dynamic_linker="$host_os dyld" 15996 version_type=darwin 15997 need_lib_prefix=no 15998 need_version=no 15999 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 16000 soname_spec='${libname}${release}${major}$shared_ext' 16001 shlibpath_overrides_runpath=yes 16002 shlibpath_var=DYLD_LIBRARY_PATH 16003 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16004 16005 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16006 ;; 16007 16008dgux*) 16009 version_type=linux 16010 need_lib_prefix=no 16011 need_version=no 16012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 16013 soname_spec='${libname}${release}${shared_ext}$major' 16014 shlibpath_var=LD_LIBRARY_PATH 16015 ;; 16016 16017freebsd1*) 16018 dynamic_linker=no 16019 ;; 16020 16021freebsd* | dragonfly*) 16022 # DragonFly does not have aout. When/if they implement a new 16023 # versioning mechanism, adjust this. 16024 if test -x /usr/bin/objformat; then 16025 objformat=`/usr/bin/objformat` 16026 else 16027 case $host_os in 16028 freebsd[123]*) objformat=aout ;; 16029 *) objformat=elf ;; 16030 esac 16031 fi 16032 version_type=freebsd-$objformat 16033 case $version_type in 16034 freebsd-elf*) 16035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16036 need_version=no 16037 need_lib_prefix=no 16038 ;; 16039 freebsd-*) 16040 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 16041 need_version=yes 16042 ;; 16043 esac 16044 shlibpath_var=LD_LIBRARY_PATH 16045 case $host_os in 16046 freebsd2*) 16047 shlibpath_overrides_runpath=yes 16048 ;; 16049 freebsd3.[01]* | freebsdelf3.[01]*) 16050 shlibpath_overrides_runpath=yes 16051 hardcode_into_libs=yes 16052 ;; 16053 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16054 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16055 shlibpath_overrides_runpath=no 16056 hardcode_into_libs=yes 16057 ;; 16058 *) # from 4.6 on, and DragonFly 16059 shlibpath_overrides_runpath=yes 16060 hardcode_into_libs=yes 16061 ;; 16062 esac 16063 ;; 16064 16065gnu*) 16066 version_type=linux 16067 need_lib_prefix=no 16068 need_version=no 16069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16070 soname_spec='${libname}${release}${shared_ext}$major' 16071 shlibpath_var=LD_LIBRARY_PATH 16072 hardcode_into_libs=yes 16073 ;; 16074 16075hpux9* | hpux10* | hpux11*) 16076 # Give a soname corresponding to the major version so that dld.sl refuses to 16077 # link against other versions. 16078 version_type=sunos 16079 need_lib_prefix=no 16080 need_version=no 16081 case $host_cpu in 16082 ia64*) 16083 shrext_cmds='.so' 16084 hardcode_into_libs=yes 16085 dynamic_linker="$host_os dld.so" 16086 shlibpath_var=LD_LIBRARY_PATH 16087 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16089 soname_spec='${libname}${release}${shared_ext}$major' 16090 if test "X$HPUX_IA64_MODE" = X32; then 16091 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16092 else 16093 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16094 fi 16095 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16096 ;; 16097 hppa*64*) 16098 shrext_cmds='.sl' 16099 hardcode_into_libs=yes 16100 dynamic_linker="$host_os dld.sl" 16101 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16102 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16104 soname_spec='${libname}${release}${shared_ext}$major' 16105 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16106 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16107 ;; 16108 *) 16109 shrext_cmds='.sl' 16110 dynamic_linker="$host_os dld.sl" 16111 shlibpath_var=SHLIB_PATH 16112 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16114 soname_spec='${libname}${release}${shared_ext}$major' 16115 ;; 16116 esac 16117 # HP-UX runs *really* slowly unless shared libraries are mode 555. 16118 postinstall_cmds='chmod 555 $lib' 16119 ;; 16120 16121interix[3-9]*) 16122 version_type=linux 16123 need_lib_prefix=no 16124 need_version=no 16125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16126 soname_spec='${libname}${release}${shared_ext}$major' 16127 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16128 shlibpath_var=LD_LIBRARY_PATH 16129 shlibpath_overrides_runpath=no 16130 hardcode_into_libs=yes 16131 ;; 16132 16133irix5* | irix6* | nonstopux*) 16134 case $host_os in 16135 nonstopux*) version_type=nonstopux ;; 16136 *) 16137 if test "$lt_cv_prog_gnu_ld" = yes; then 16138 version_type=linux 16139 else 16140 version_type=irix 16141 fi ;; 16142 esac 16143 need_lib_prefix=no 16144 need_version=no 16145 soname_spec='${libname}${release}${shared_ext}$major' 16146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16147 case $host_os in 16148 irix5* | nonstopux*) 16149 libsuff= shlibsuff= 16150 ;; 16151 *) 16152 case $LD in # libtool.m4 will add one of these switches to LD 16153 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16154 libsuff= shlibsuff= libmagic=32-bit;; 16155 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16156 libsuff=32 shlibsuff=N32 libmagic=N32;; 16157 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16158 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16159 *) libsuff= shlibsuff= libmagic=never-match;; 16160 esac 16161 ;; 16162 esac 16163 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16164 shlibpath_overrides_runpath=no 16165 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16166 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16167 hardcode_into_libs=yes 16168 ;; 16169 16170# No shared lib support for Linux oldld, aout, or coff. 16171linux*oldld* | linux*aout* | linux*coff*) 16172 dynamic_linker=no 16173 ;; 16174 16175# This must be Linux ELF. 16176linux* | k*bsd*-gnu) 16177 version_type=linux 16178 need_lib_prefix=no 16179 need_version=no 16180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16181 soname_spec='${libname}${release}${shared_ext}$major' 16182 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16183 shlibpath_var=LD_LIBRARY_PATH 16184 shlibpath_overrides_runpath=no 16185 # This implies no fast_install, which is unacceptable. 16186 # Some rework will be needed to allow for fast_install 16187 # before this can be enabled. 16188 hardcode_into_libs=yes 16189 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16190 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16191 16192 # Append ld.so.conf contents to the search path 16193 if test -f /etc/ld.so.conf; then 16194 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' ' '` 16195 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 16196 fi 16197 16198 # We used to test for /lib/ld.so.1 and disable shared libraries on 16199 # powerpc, because MkLinux only supported shared libraries with the 16200 # GNU dynamic linker. Since this was broken with cross compilers, 16201 # most powerpc-linux boxes support dynamic linking these days and 16202 # people can always --disable-shared, the test was removed, and we 16203 # assume the GNU/Linux dynamic linker is in use. 16204 dynamic_linker='GNU/Linux ld.so' 16205 ;; 16206 16207netbsd*) 16208 version_type=sunos 16209 need_lib_prefix=no 16210 need_version=no 16211 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16213 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16214 dynamic_linker='NetBSD (a.out) ld.so' 16215 else 16216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16217 soname_spec='${libname}${release}${shared_ext}$major' 16218 dynamic_linker='NetBSD ld.elf_so' 16219 fi 16220 shlibpath_var=LD_LIBRARY_PATH 16221 shlibpath_overrides_runpath=yes 16222 hardcode_into_libs=yes 16223 ;; 16224 16225newsos6) 16226 version_type=linux 16227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16228 shlibpath_var=LD_LIBRARY_PATH 16229 shlibpath_overrides_runpath=yes 16230 ;; 16231 16232nto-qnx*) 16233 version_type=linux 16234 need_lib_prefix=no 16235 need_version=no 16236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16237 soname_spec='${libname}${release}${shared_ext}$major' 16238 shlibpath_var=LD_LIBRARY_PATH 16239 shlibpath_overrides_runpath=yes 16240 ;; 16241 16242openbsd*) 16243 version_type=sunos 16244 sys_lib_dlsearch_path_spec="/usr/lib" 16245 need_lib_prefix=no 16246 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16247 case $host_os in 16248 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16249 *) need_version=no ;; 16250 esac 16251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16252 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16253 shlibpath_var=LD_LIBRARY_PATH 16254 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16255 case $host_os in 16256 openbsd2.[89] | openbsd2.[89].*) 16257 shlibpath_overrides_runpath=no 16258 ;; 16259 *) 16260 shlibpath_overrides_runpath=yes 16261 ;; 16262 esac 16263 else 16264 shlibpath_overrides_runpath=yes 16265 fi 16266 ;; 16267 16268os2*) 16269 libname_spec='$name' 16270 shrext_cmds=".dll" 16271 need_lib_prefix=no 16272 library_names_spec='$libname${shared_ext} $libname.a' 16273 dynamic_linker='OS/2 ld.exe' 16274 shlibpath_var=LIBPATH 16275 ;; 16276 16277osf3* | osf4* | osf5*) 16278 version_type=osf 16279 need_lib_prefix=no 16280 need_version=no 16281 soname_spec='${libname}${release}${shared_ext}$major' 16282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16283 shlibpath_var=LD_LIBRARY_PATH 16284 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16285 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16286 ;; 16287 16288rdos*) 16289 dynamic_linker=no 16290 ;; 16291 16292solaris*) 16293 version_type=linux 16294 need_lib_prefix=no 16295 need_version=no 16296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16297 soname_spec='${libname}${release}${shared_ext}$major' 16298 shlibpath_var=LD_LIBRARY_PATH 16299 shlibpath_overrides_runpath=yes 16300 hardcode_into_libs=yes 16301 # ldd complains unless libraries are executable 16302 postinstall_cmds='chmod +x $lib' 16303 ;; 16304 16305sunos4*) 16306 version_type=sunos 16307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16308 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16309 shlibpath_var=LD_LIBRARY_PATH 16310 shlibpath_overrides_runpath=yes 16311 if test "$with_gnu_ld" = yes; then 16312 need_lib_prefix=no 16313 fi 16314 need_version=yes 16315 ;; 16316 16317sysv4 | sysv4.3*) 16318 version_type=linux 16319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16320 soname_spec='${libname}${release}${shared_ext}$major' 16321 shlibpath_var=LD_LIBRARY_PATH 16322 case $host_vendor in 16323 sni) 16324 shlibpath_overrides_runpath=no 16325 need_lib_prefix=no 16326 export_dynamic_flag_spec='${wl}-Blargedynsym' 16327 runpath_var=LD_RUN_PATH 16328 ;; 16329 siemens) 16330 need_lib_prefix=no 16331 ;; 16332 motorola) 16333 need_lib_prefix=no 16334 need_version=no 16335 shlibpath_overrides_runpath=no 16336 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16337 ;; 16338 esac 16339 ;; 16340 16341sysv4*MP*) 16342 if test -d /usr/nec ;then 16343 version_type=linux 16344 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16345 soname_spec='$libname${shared_ext}.$major' 16346 shlibpath_var=LD_LIBRARY_PATH 16347 fi 16348 ;; 16349 16350sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16351 version_type=freebsd-elf 16352 need_lib_prefix=no 16353 need_version=no 16354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16355 soname_spec='${libname}${release}${shared_ext}$major' 16356 shlibpath_var=LD_LIBRARY_PATH 16357 hardcode_into_libs=yes 16358 if test "$with_gnu_ld" = yes; then 16359 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16360 shlibpath_overrides_runpath=no 16361 else 16362 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16363 shlibpath_overrides_runpath=yes 16364 case $host_os in 16365 sco3.2v5*) 16366 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16367 ;; 16368 esac 16369 fi 16370 sys_lib_dlsearch_path_spec='/usr/lib' 16371 ;; 16372 16373uts4*) 16374 version_type=linux 16375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16376 soname_spec='${libname}${release}${shared_ext}$major' 16377 shlibpath_var=LD_LIBRARY_PATH 16378 ;; 16379 16380*) 16381 dynamic_linker=no 16382 ;; 16383esac 16384{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 16385$as_echo "$dynamic_linker" >&6; } 16386test "$dynamic_linker" = no && can_build_shared=no 16387 16388if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 16389 $as_echo_n "(cached) " >&6 16390else 16391 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 16392fi 16393 16394sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 16395if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 16396 $as_echo_n "(cached) " >&6 16397else 16398 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 16399fi 16400 16401sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 16402 16403variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16404if test "$GCC" = yes; then 16405 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16406fi 16407 16408{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 16409$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 16410hardcode_action_F77= 16411if test -n "$hardcode_libdir_flag_spec_F77" || \ 16412 test -n "$runpath_var_F77" || \ 16413 test "X$hardcode_automatic_F77" = "Xyes" ; then 16414 16415 # We can hardcode non-existant directories. 16416 if test "$hardcode_direct_F77" != no && 16417 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16418 # have to relink, otherwise we might link with an installed library 16419 # when we should be linking with a yet-to-be-installed one 16420 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 16421 test "$hardcode_minus_L_F77" != no; then 16422 # Linking always hardcodes the temporary library directory. 16423 hardcode_action_F77=relink 16424 else 16425 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16426 hardcode_action_F77=immediate 16427 fi 16428else 16429 # We cannot hardcode anything, or else we can only hardcode existing 16430 # directories. 16431 hardcode_action_F77=unsupported 16432fi 16433{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 16434$as_echo "$hardcode_action_F77" >&6; } 16435 16436if test "$hardcode_action_F77" = relink; then 16437 # Fast installation is not supported 16438 enable_fast_install=no 16439elif test "$shlibpath_overrides_runpath" = yes || 16440 test "$enable_shared" = no; then 16441 # Fast installation is not necessary 16442 enable_fast_install=needless 16443fi 16444 16445 16446# The else clause should only fire when bootstrapping the 16447# libtool distribution, otherwise you forgot to ship ltmain.sh 16448# with your package, and you will get complaints that there are 16449# no rules to generate ltmain.sh. 16450if test -f "$ltmain"; then 16451 # See if we are running on zsh, and set the options which allow our commands through 16452 # without removal of \ escapes. 16453 if test -n "${ZSH_VERSION+set}" ; then 16454 setopt NO_GLOB_SUBST 16455 fi 16456 # Now quote all the things that may contain metacharacters while being 16457 # careful not to overquote the AC_SUBSTed values. We take copies of the 16458 # variables and quote the copies for generation of the libtool script. 16459 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 16460 SED SHELL STRIP \ 16461 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 16462 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 16463 deplibs_check_method reload_flag reload_cmds need_locks \ 16464 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 16465 lt_cv_sys_global_symbol_to_c_name_address \ 16466 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 16467 old_postinstall_cmds old_postuninstall_cmds \ 16468 compiler_F77 \ 16469 CC_F77 \ 16470 LD_F77 \ 16471 lt_prog_compiler_wl_F77 \ 16472 lt_prog_compiler_pic_F77 \ 16473 lt_prog_compiler_static_F77 \ 16474 lt_prog_compiler_no_builtin_flag_F77 \ 16475 export_dynamic_flag_spec_F77 \ 16476 thread_safe_flag_spec_F77 \ 16477 whole_archive_flag_spec_F77 \ 16478 enable_shared_with_static_runtimes_F77 \ 16479 old_archive_cmds_F77 \ 16480 old_archive_from_new_cmds_F77 \ 16481 predep_objects_F77 \ 16482 postdep_objects_F77 \ 16483 predeps_F77 \ 16484 postdeps_F77 \ 16485 compiler_lib_search_path_F77 \ 16486 compiler_lib_search_dirs_F77 \ 16487 archive_cmds_F77 \ 16488 archive_expsym_cmds_F77 \ 16489 postinstall_cmds_F77 \ 16490 postuninstall_cmds_F77 \ 16491 old_archive_from_expsyms_cmds_F77 \ 16492 allow_undefined_flag_F77 \ 16493 no_undefined_flag_F77 \ 16494 export_symbols_cmds_F77 \ 16495 hardcode_libdir_flag_spec_F77 \ 16496 hardcode_libdir_flag_spec_ld_F77 \ 16497 hardcode_libdir_separator_F77 \ 16498 hardcode_automatic_F77 \ 16499 module_cmds_F77 \ 16500 module_expsym_cmds_F77 \ 16501 lt_cv_prog_compiler_c_o_F77 \ 16502 fix_srcfile_path_F77 \ 16503 exclude_expsyms_F77 \ 16504 include_expsyms_F77; do 16505 16506 case $var in 16507 old_archive_cmds_F77 | \ 16508 old_archive_from_new_cmds_F77 | \ 16509 archive_cmds_F77 | \ 16510 archive_expsym_cmds_F77 | \ 16511 module_cmds_F77 | \ 16512 module_expsym_cmds_F77 | \ 16513 old_archive_from_expsyms_cmds_F77 | \ 16514 export_symbols_cmds_F77 | \ 16515 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 16516 postinstall_cmds | postuninstall_cmds | \ 16517 old_postinstall_cmds | old_postuninstall_cmds | \ 16518 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 16519 # Double-quote double-evaled strings. 16520 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 16521 ;; 16522 *) 16523 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 16524 ;; 16525 esac 16526 done 16527 16528 case $lt_echo in 16529 *'\$0 --fallback-echo"') 16530 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 16531 ;; 16532 esac 16533 16534cfgfile="$ofile" 16535 16536 cat <<__EOF__ >> "$cfgfile" 16537# ### BEGIN LIBTOOL TAG CONFIG: $tagname 16538 16539# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16540 16541# Shell to use when invoking shell scripts. 16542SHELL=$lt_SHELL 16543 16544# Whether or not to build shared libraries. 16545build_libtool_libs=$enable_shared 16546 16547# Whether or not to build static libraries. 16548build_old_libs=$enable_static 16549 16550# Whether or not to add -lc for building shared libraries. 16551build_libtool_need_lc=$archive_cmds_need_lc_F77 16552 16553# Whether or not to disallow shared libs when runtime libs are static 16554allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 16555 16556# Whether or not to optimize for fast installation. 16557fast_install=$enable_fast_install 16558 16559# The host system. 16560host_alias=$host_alias 16561host=$host 16562host_os=$host_os 16563 16564# The build system. 16565build_alias=$build_alias 16566build=$build 16567build_os=$build_os 16568 16569# An echo program that does not interpret backslashes. 16570echo=$lt_echo 16571 16572# The archiver. 16573AR=$lt_AR 16574AR_FLAGS=$lt_AR_FLAGS 16575 16576# A C compiler. 16577LTCC=$lt_LTCC 16578 16579# LTCC compiler flags. 16580LTCFLAGS=$lt_LTCFLAGS 16581 16582# A language-specific compiler. 16583CC=$lt_compiler_F77 16584 16585# Is the compiler the GNU C compiler? 16586with_gcc=$GCC_F77 16587 16588# An ERE matcher. 16589EGREP=$lt_EGREP 16590 16591# The linker used to build libraries. 16592LD=$lt_LD_F77 16593 16594# Whether we need hard or soft links. 16595LN_S=$lt_LN_S 16596 16597# A BSD-compatible nm program. 16598NM=$lt_NM 16599 16600# A symbol stripping program 16601STRIP=$lt_STRIP 16602 16603# Used to examine libraries when file_magic_cmd begins "file" 16604MAGIC_CMD=$MAGIC_CMD 16605 16606# Used on cygwin: DLL creation program. 16607DLLTOOL="$DLLTOOL" 16608 16609# Used on cygwin: object dumper. 16610OBJDUMP="$OBJDUMP" 16611 16612# Used on cygwin: assembler. 16613AS="$AS" 16614 16615# The name of the directory that contains temporary libtool files. 16616objdir=$objdir 16617 16618# How to create reloadable object files. 16619reload_flag=$lt_reload_flag 16620reload_cmds=$lt_reload_cmds 16621 16622# How to pass a linker flag through the compiler. 16623wl=$lt_lt_prog_compiler_wl_F77 16624 16625# Object file suffix (normally "o"). 16626objext="$ac_objext" 16627 16628# Old archive suffix (normally "a"). 16629libext="$libext" 16630 16631# Shared library suffix (normally ".so"). 16632shrext_cmds='$shrext_cmds' 16633 16634# Executable file suffix (normally ""). 16635exeext="$exeext" 16636 16637# Additional compiler flags for building library objects. 16638pic_flag=$lt_lt_prog_compiler_pic_F77 16639pic_mode=$pic_mode 16640 16641# What is the maximum length of a command? 16642max_cmd_len=$lt_cv_sys_max_cmd_len 16643 16644# Does compiler simultaneously support -c and -o options? 16645compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 16646 16647# Must we lock files when doing compilation? 16648need_locks=$lt_need_locks 16649 16650# Do we need the lib prefix for modules? 16651need_lib_prefix=$need_lib_prefix 16652 16653# Do we need a version for libraries? 16654need_version=$need_version 16655 16656# Whether dlopen is supported. 16657dlopen_support=$enable_dlopen 16658 16659# Whether dlopen of programs is supported. 16660dlopen_self=$enable_dlopen_self 16661 16662# Whether dlopen of statically linked programs is supported. 16663dlopen_self_static=$enable_dlopen_self_static 16664 16665# Compiler flag to prevent dynamic linking. 16666link_static_flag=$lt_lt_prog_compiler_static_F77 16667 16668# Compiler flag to turn off builtin functions. 16669no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 16670 16671# Compiler flag to allow reflexive dlopens. 16672export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 16673 16674# Compiler flag to generate shared objects directly from archives. 16675whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 16676 16677# Compiler flag to generate thread-safe objects. 16678thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 16679 16680# Library versioning type. 16681version_type=$version_type 16682 16683# Format of library name prefix. 16684libname_spec=$lt_libname_spec 16685 16686# List of archive names. First name is the real one, the rest are links. 16687# The last name is the one that the linker finds with -lNAME. 16688library_names_spec=$lt_library_names_spec 16689 16690# The coded name of the library, if different from the real name. 16691soname_spec=$lt_soname_spec 16692 16693# Commands used to build and install an old-style archive. 16694RANLIB=$lt_RANLIB 16695old_archive_cmds=$lt_old_archive_cmds_F77 16696old_postinstall_cmds=$lt_old_postinstall_cmds 16697old_postuninstall_cmds=$lt_old_postuninstall_cmds 16698 16699# Create an old-style archive from a shared archive. 16700old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 16701 16702# Create a temporary old-style archive to link instead of a shared archive. 16703old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 16704 16705# Commands used to build and install a shared archive. 16706archive_cmds=$lt_archive_cmds_F77 16707archive_expsym_cmds=$lt_archive_expsym_cmds_F77 16708postinstall_cmds=$lt_postinstall_cmds 16709postuninstall_cmds=$lt_postuninstall_cmds 16710 16711# Commands used to build a loadable module (assumed same as above if empty) 16712module_cmds=$lt_module_cmds_F77 16713module_expsym_cmds=$lt_module_expsym_cmds_F77 16714 16715# Commands to strip libraries. 16716old_striplib=$lt_old_striplib 16717striplib=$lt_striplib 16718 16719# Dependencies to place before the objects being linked to create a 16720# shared library. 16721predep_objects=$lt_predep_objects_F77 16722 16723# Dependencies to place after the objects being linked to create a 16724# shared library. 16725postdep_objects=$lt_postdep_objects_F77 16726 16727# Dependencies to place before the objects being linked to create a 16728# shared library. 16729predeps=$lt_predeps_F77 16730 16731# Dependencies to place after the objects being linked to create a 16732# shared library. 16733postdeps=$lt_postdeps_F77 16734 16735# The directories searched by this compiler when creating a shared 16736# library 16737compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77 16738 16739# The library search path used internally by the compiler when linking 16740# a shared library. 16741compiler_lib_search_path=$lt_compiler_lib_search_path_F77 16742 16743# Method to check whether dependent libraries are shared objects. 16744deplibs_check_method=$lt_deplibs_check_method 16745 16746# Command to use when deplibs_check_method == file_magic. 16747file_magic_cmd=$lt_file_magic_cmd 16748 16749# Flag that allows shared libraries with undefined symbols to be built. 16750allow_undefined_flag=$lt_allow_undefined_flag_F77 16751 16752# Flag that forces no undefined symbols. 16753no_undefined_flag=$lt_no_undefined_flag_F77 16754 16755# Commands used to finish a libtool library installation in a directory. 16756finish_cmds=$lt_finish_cmds 16757 16758# Same as above, but a single script fragment to be evaled but not shown. 16759finish_eval=$lt_finish_eval 16760 16761# Take the output of nm and produce a listing of raw symbols and C names. 16762global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16763 16764# Transform the output of nm in a proper C declaration 16765global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16766 16767# Transform the output of nm in a C name address pair 16768global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16769 16770# This is the shared library runtime path variable. 16771runpath_var=$runpath_var 16772 16773# This is the shared library path variable. 16774shlibpath_var=$shlibpath_var 16775 16776# Is shlibpath searched before the hard-coded library search path? 16777shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16778 16779# How to hardcode a shared library path into an executable. 16780hardcode_action=$hardcode_action_F77 16781 16782# Whether we should hardcode library paths into libraries. 16783hardcode_into_libs=$hardcode_into_libs 16784 16785# Flag to hardcode \$libdir into a binary during linking. 16786# This must work even if \$libdir does not exist. 16787hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16788 16789# If ld is used when linking, flag to hardcode \$libdir into 16790# a binary during linking. This must work even if \$libdir does 16791# not exist. 16792hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16793 16794# Whether we need a single -rpath flag with a separated argument. 16795hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16796 16797# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16798# resulting binary. 16799hardcode_direct=$hardcode_direct_F77 16800 16801# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16802# resulting binary. 16803hardcode_minus_L=$hardcode_minus_L_F77 16804 16805# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16806# the resulting binary. 16807hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16808 16809# Set to yes if building a shared library automatically hardcodes DIR into the library 16810# and all subsequent libraries and executables linked against it. 16811hardcode_automatic=$hardcode_automatic_F77 16812 16813# Variables whose values should be saved in libtool wrapper scripts and 16814# restored at relink time. 16815variables_saved_for_relink="$variables_saved_for_relink" 16816 16817# Whether libtool must link a program against all its dependency libraries. 16818link_all_deplibs=$link_all_deplibs_F77 16819 16820# Compile-time system search path for libraries 16821sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16822 16823# Run-time system search path for libraries 16824sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16825 16826# Fix the shell variable \$srcfile for the compiler. 16827fix_srcfile_path=$lt_fix_srcfile_path 16828 16829# Set to yes if exported symbols are required. 16830always_export_symbols=$always_export_symbols_F77 16831 16832# The commands to list exported symbols. 16833export_symbols_cmds=$lt_export_symbols_cmds_F77 16834 16835# The commands to extract the exported symbol list from a shared archive. 16836extract_expsyms_cmds=$lt_extract_expsyms_cmds 16837 16838# Symbols that should not be listed in the preloaded symbols. 16839exclude_expsyms=$lt_exclude_expsyms_F77 16840 16841# Symbols that must always be exported. 16842include_expsyms=$lt_include_expsyms_F77 16843 16844# ### END LIBTOOL TAG CONFIG: $tagname 16845 16846__EOF__ 16847 16848 16849else 16850 # If there is no Makefile yet, we rely on a make rule to execute 16851 # `config.status --recheck' to rerun these tests and create the 16852 # libtool script then. 16853 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16854 if test -f "$ltmain_in"; then 16855 test -f Makefile && make "$ltmain" 16856 fi 16857fi 16858 16859 16860ac_ext=c 16861ac_cpp='$CPP $CPPFLAGS' 16862ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16863ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16864ac_compiler_gnu=$ac_cv_c_compiler_gnu 16865 16866CC="$lt_save_CC" 16867 16868 else 16869 tagname="" 16870 fi 16871 ;; 16872 16873 GCJ) 16874 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16875 16876 16877# Source file extension for Java test sources. 16878ac_ext=java 16879 16880# Object file extension for compiled Java test sources. 16881objext=o 16882objext_GCJ=$objext 16883 16884# Code to be used in simple compile tests 16885lt_simple_compile_test_code="class foo {}" 16886 16887# Code to be used in simple link tests 16888lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }' 16889 16890# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16891 16892# If no C compiler was specified, use CC. 16893LTCC=${LTCC-"$CC"} 16894 16895# If no C compiler flags were specified, use CFLAGS. 16896LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16897 16898# Allow CC to be a program name with arguments. 16899compiler=$CC 16900 16901 16902# save warnings/boilerplate of simple test code 16903ac_outfile=conftest.$ac_objext 16904echo "$lt_simple_compile_test_code" >conftest.$ac_ext 16905eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16906_lt_compiler_boilerplate=`cat conftest.err` 16907$rm conftest* 16908 16909ac_outfile=conftest.$ac_objext 16910echo "$lt_simple_link_test_code" >conftest.$ac_ext 16911eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16912_lt_linker_boilerplate=`cat conftest.err` 16913$rm -r conftest* 16914 16915 16916# Allow CC to be a program name with arguments. 16917lt_save_CC="$CC" 16918CC=${GCJ-"gcj"} 16919compiler=$CC 16920compiler_GCJ=$CC 16921for cc_temp in $compiler""; do 16922 case $cc_temp in 16923 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16924 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16925 \-*) ;; 16926 *) break;; 16927 esac 16928done 16929cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16930 16931 16932# GCJ did not exist at the time GCC didn't implicitly link libc in. 16933archive_cmds_need_lc_GCJ=no 16934 16935old_archive_cmds_GCJ=$old_archive_cmds 16936 16937 16938lt_prog_compiler_no_builtin_flag_GCJ= 16939 16940if test "$GCC" = yes; then 16941 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16942 16943 16944{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16945$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 16946if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16947 $as_echo_n "(cached) " >&6 16948else 16949 lt_cv_prog_compiler_rtti_exceptions=no 16950 ac_outfile=conftest.$ac_objext 16951 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16952 lt_compiler_flag="-fno-rtti -fno-exceptions" 16953 # Insert the option either (1) after the last *FLAGS variable, or 16954 # (2) before a word containing "conftest.", or (3) at the end. 16955 # Note that $ac_compile itself does not contain backslashes and begins 16956 # with a dollar sign (not a hyphen), so the echo should work correctly. 16957 # The option is referenced via a variable to avoid confusing sed. 16958 lt_compile=`echo "$ac_compile" | $SED \ 16959 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16960 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16961 -e 's:$: $lt_compiler_flag:'` 16962 (eval echo "\"\$as_me:16962: $lt_compile\"" >&5) 16963 (eval "$lt_compile" 2>conftest.err) 16964 ac_status=$? 16965 cat conftest.err >&5 16966 echo "$as_me:16966: \$? = $ac_status" >&5 16967 if (exit $ac_status) && test -s "$ac_outfile"; then 16968 # The compiler can only warn and ignore the option if not recognized 16969 # So say no if there are warnings other than the usual output. 16970 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16971 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16972 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16973 lt_cv_prog_compiler_rtti_exceptions=yes 16974 fi 16975 fi 16976 $rm conftest* 16977 16978fi 16979{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16980$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16981 16982if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16983 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16984else 16985 : 16986fi 16987 16988fi 16989 16990lt_prog_compiler_wl_GCJ= 16991lt_prog_compiler_pic_GCJ= 16992lt_prog_compiler_static_GCJ= 16993 16994{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16995$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 16996 16997 if test "$GCC" = yes; then 16998 lt_prog_compiler_wl_GCJ='-Wl,' 16999 lt_prog_compiler_static_GCJ='-static' 17000 17001 case $host_os in 17002 aix*) 17003 # All AIX code is PIC. 17004 if test "$host_cpu" = ia64; then 17005 # AIX 5 now supports IA64 processor 17006 lt_prog_compiler_static_GCJ='-Bstatic' 17007 fi 17008 ;; 17009 17010 amigaos*) 17011 # FIXME: we need at least 68020 code to build shared libraries, but 17012 # adding the `-m68020' flag to GCC prevents building anything better, 17013 # like `-m68040'. 17014 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 17015 ;; 17016 17017 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 17018 # PIC is the default for these OSes. 17019 ;; 17020 17021 mingw* | cygwin* | pw32* | os2*) 17022 # This hack is so that the source file can tell whether it is being 17023 # built for inclusion in a dll (and should export symbols for example). 17024 # Although the cygwin gcc ignores -fPIC, still need this for old-style 17025 # (--disable-auto-import) libraries 17026 17027 ;; 17028 17029 darwin* | rhapsody*) 17030 # PIC is the default on this platform 17031 # Common symbols not allowed in MH_DYLIB files 17032 lt_prog_compiler_pic_GCJ='-fno-common' 17033 ;; 17034 17035 interix[3-9]*) 17036 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 17037 # Instead, we relocate shared libraries at runtime. 17038 ;; 17039 17040 msdosdjgpp*) 17041 # Just because we use GCC doesn't mean we suddenly get shared libraries 17042 # on systems that don't support them. 17043 lt_prog_compiler_can_build_shared_GCJ=no 17044 enable_shared=no 17045 ;; 17046 17047 sysv4*MP*) 17048 if test -d /usr/nec; then 17049 lt_prog_compiler_pic_GCJ=-Kconform_pic 17050 fi 17051 ;; 17052 17053 hpux*) 17054 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 17055 # not for PA HP-UX. 17056 case $host_cpu in 17057 hppa*64*|ia64*) 17058 # +Z the default 17059 ;; 17060 *) 17061 lt_prog_compiler_pic_GCJ='-fPIC' 17062 ;; 17063 esac 17064 ;; 17065 17066 *) 17067 lt_prog_compiler_pic_GCJ='-fPIC' 17068 ;; 17069 esac 17070 else 17071 # PORTME Check for flag to pass linker flags through the system compiler. 17072 case $host_os in 17073 aix*) 17074 lt_prog_compiler_wl_GCJ='-Wl,' 17075 if test "$host_cpu" = ia64; then 17076 # AIX 5 now supports IA64 processor 17077 lt_prog_compiler_static_GCJ='-Bstatic' 17078 else 17079 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 17080 fi 17081 ;; 17082 darwin*) 17083 # PIC is the default on this platform 17084 # Common symbols not allowed in MH_DYLIB files 17085 case $cc_basename in 17086 xlc*) 17087 lt_prog_compiler_pic_GCJ='-qnocommon' 17088 lt_prog_compiler_wl_GCJ='-Wl,' 17089 ;; 17090 esac 17091 ;; 17092 17093 mingw* | cygwin* | pw32* | os2*) 17094 # This hack is so that the source file can tell whether it is being 17095 # built for inclusion in a dll (and should export symbols for example). 17096 17097 ;; 17098 17099 hpux9* | hpux10* | hpux11*) 17100 lt_prog_compiler_wl_GCJ='-Wl,' 17101 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 17102 # not for PA HP-UX. 17103 case $host_cpu in 17104 hppa*64*|ia64*) 17105 # +Z the default 17106 ;; 17107 *) 17108 lt_prog_compiler_pic_GCJ='+Z' 17109 ;; 17110 esac 17111 # Is there a better lt_prog_compiler_static that works with the bundled CC? 17112 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 17113 ;; 17114 17115 irix5* | irix6* | nonstopux*) 17116 lt_prog_compiler_wl_GCJ='-Wl,' 17117 # PIC (with -KPIC) is the default. 17118 lt_prog_compiler_static_GCJ='-non_shared' 17119 ;; 17120 17121 newsos6) 17122 lt_prog_compiler_pic_GCJ='-KPIC' 17123 lt_prog_compiler_static_GCJ='-Bstatic' 17124 ;; 17125 17126 linux* | k*bsd*-gnu) 17127 case $cc_basename in 17128 icc* | ecc*) 17129 lt_prog_compiler_wl_GCJ='-Wl,' 17130 lt_prog_compiler_pic_GCJ='-KPIC' 17131 lt_prog_compiler_static_GCJ='-static' 17132 ;; 17133 pgcc* | pgf77* | pgf90* | pgf95*) 17134 # Portland Group compilers (*not* the Pentium gcc compiler, 17135 # which looks to be a dead project) 17136 lt_prog_compiler_wl_GCJ='-Wl,' 17137 lt_prog_compiler_pic_GCJ='-fpic' 17138 lt_prog_compiler_static_GCJ='-Bstatic' 17139 ;; 17140 ccc*) 17141 lt_prog_compiler_wl_GCJ='-Wl,' 17142 # All Alpha code is PIC. 17143 lt_prog_compiler_static_GCJ='-non_shared' 17144 ;; 17145 *) 17146 case `$CC -V 2>&1 | sed 5q` in 17147 *Sun\ C*) 17148 # Sun C 5.9 17149 lt_prog_compiler_pic_GCJ='-KPIC' 17150 lt_prog_compiler_static_GCJ='-Bstatic' 17151 lt_prog_compiler_wl_GCJ='-Wl,' 17152 ;; 17153 *Sun\ F*) 17154 # Sun Fortran 8.3 passes all unrecognized flags to the linker 17155 lt_prog_compiler_pic_GCJ='-KPIC' 17156 lt_prog_compiler_static_GCJ='-Bstatic' 17157 lt_prog_compiler_wl_GCJ='' 17158 ;; 17159 esac 17160 ;; 17161 esac 17162 ;; 17163 17164 osf3* | osf4* | osf5*) 17165 lt_prog_compiler_wl_GCJ='-Wl,' 17166 # All OSF/1 code is PIC. 17167 lt_prog_compiler_static_GCJ='-non_shared' 17168 ;; 17169 17170 rdos*) 17171 lt_prog_compiler_static_GCJ='-non_shared' 17172 ;; 17173 17174 solaris*) 17175 lt_prog_compiler_pic_GCJ='-KPIC' 17176 lt_prog_compiler_static_GCJ='-Bstatic' 17177 case $cc_basename in 17178 f77* | f90* | f95*) 17179 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 17180 *) 17181 lt_prog_compiler_wl_GCJ='-Wl,';; 17182 esac 17183 ;; 17184 17185 sunos4*) 17186 lt_prog_compiler_wl_GCJ='-Qoption ld ' 17187 lt_prog_compiler_pic_GCJ='-PIC' 17188 lt_prog_compiler_static_GCJ='-Bstatic' 17189 ;; 17190 17191 sysv4 | sysv4.2uw2* | sysv4.3*) 17192 lt_prog_compiler_wl_GCJ='-Wl,' 17193 lt_prog_compiler_pic_GCJ='-KPIC' 17194 lt_prog_compiler_static_GCJ='-Bstatic' 17195 ;; 17196 17197 sysv4*MP*) 17198 if test -d /usr/nec ;then 17199 lt_prog_compiler_pic_GCJ='-Kconform_pic' 17200 lt_prog_compiler_static_GCJ='-Bstatic' 17201 fi 17202 ;; 17203 17204 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 17205 lt_prog_compiler_wl_GCJ='-Wl,' 17206 lt_prog_compiler_pic_GCJ='-KPIC' 17207 lt_prog_compiler_static_GCJ='-Bstatic' 17208 ;; 17209 17210 unicos*) 17211 lt_prog_compiler_wl_GCJ='-Wl,' 17212 lt_prog_compiler_can_build_shared_GCJ=no 17213 ;; 17214 17215 uts4*) 17216 lt_prog_compiler_pic_GCJ='-pic' 17217 lt_prog_compiler_static_GCJ='-Bstatic' 17218 ;; 17219 17220 *) 17221 lt_prog_compiler_can_build_shared_GCJ=no 17222 ;; 17223 esac 17224 fi 17225 17226{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 17227$as_echo "$lt_prog_compiler_pic_GCJ" >&6; } 17228 17229# 17230# Check to make sure the PIC flag actually works. 17231# 17232if test -n "$lt_prog_compiler_pic_GCJ"; then 17233 17234{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 17235$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; } 17236if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then 17237 $as_echo_n "(cached) " >&6 17238else 17239 lt_cv_prog_compiler_pic_works_GCJ=no 17240 ac_outfile=conftest.$ac_objext 17241 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17242 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 17243 # Insert the option either (1) after the last *FLAGS variable, or 17244 # (2) before a word containing "conftest.", or (3) at the end. 17245 # Note that $ac_compile itself does not contain backslashes and begins 17246 # with a dollar sign (not a hyphen), so the echo should work correctly. 17247 # The option is referenced via a variable to avoid confusing sed. 17248 lt_compile=`echo "$ac_compile" | $SED \ 17249 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17250 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17251 -e 's:$: $lt_compiler_flag:'` 17252 (eval echo "\"\$as_me:17252: $lt_compile\"" >&5) 17253 (eval "$lt_compile" 2>conftest.err) 17254 ac_status=$? 17255 cat conftest.err >&5 17256 echo "$as_me:17256: \$? = $ac_status" >&5 17257 if (exit $ac_status) && test -s "$ac_outfile"; then 17258 # The compiler can only warn and ignore the option if not recognized 17259 # So say no if there are warnings other than the usual output. 17260 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 17261 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17262 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17263 lt_cv_prog_compiler_pic_works_GCJ=yes 17264 fi 17265 fi 17266 $rm conftest* 17267 17268fi 17269{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5 17270$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; } 17271 17272if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then 17273 case $lt_prog_compiler_pic_GCJ in 17274 "" | " "*) ;; 17275 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 17276 esac 17277else 17278 lt_prog_compiler_pic_GCJ= 17279 lt_prog_compiler_can_build_shared_GCJ=no 17280fi 17281 17282fi 17283case $host_os in 17284 # For platforms which do not support PIC, -DPIC is meaningless: 17285 *djgpp*) 17286 lt_prog_compiler_pic_GCJ= 17287 ;; 17288 *) 17289 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 17290 ;; 17291esac 17292 17293# 17294# Check to make sure the static flag actually works. 17295# 17296wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 17297{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 17298$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 17299if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then 17300 $as_echo_n "(cached) " >&6 17301else 17302 lt_cv_prog_compiler_static_works_GCJ=no 17303 save_LDFLAGS="$LDFLAGS" 17304 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17305 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17306 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17307 # The linker can only warn and ignore the option if not recognized 17308 # So say no if there are warnings 17309 if test -s conftest.err; then 17310 # Append any errors to the config.log. 17311 cat conftest.err 1>&5 17312 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 17313 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17314 if diff conftest.exp conftest.er2 >/dev/null; then 17315 lt_cv_prog_compiler_static_works_GCJ=yes 17316 fi 17317 else 17318 lt_cv_prog_compiler_static_works_GCJ=yes 17319 fi 17320 fi 17321 $rm -r conftest* 17322 LDFLAGS="$save_LDFLAGS" 17323 17324fi 17325{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5 17326$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; } 17327 17328if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then 17329 : 17330else 17331 lt_prog_compiler_static_GCJ= 17332fi 17333 17334 17335{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 17336$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 17337if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 17338 $as_echo_n "(cached) " >&6 17339else 17340 lt_cv_prog_compiler_c_o_GCJ=no 17341 $rm -r conftest 2>/dev/null 17342 mkdir conftest 17343 cd conftest 17344 mkdir out 17345 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17346 17347 lt_compiler_flag="-o out/conftest2.$ac_objext" 17348 # Insert the option either (1) after the last *FLAGS variable, or 17349 # (2) before a word containing "conftest.", or (3) at the end. 17350 # Note that $ac_compile itself does not contain backslashes and begins 17351 # with a dollar sign (not a hyphen), so the echo should work correctly. 17352 lt_compile=`echo "$ac_compile" | $SED \ 17353 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17354 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17355 -e 's:$: $lt_compiler_flag:'` 17356 (eval echo "\"\$as_me:17356: $lt_compile\"" >&5) 17357 (eval "$lt_compile" 2>out/conftest.err) 17358 ac_status=$? 17359 cat out/conftest.err >&5 17360 echo "$as_me:17360: \$? = $ac_status" >&5 17361 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17362 then 17363 # The compiler can only warn and ignore the option if not recognized 17364 # So say no if there are warnings 17365 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 17366 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17367 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17368 lt_cv_prog_compiler_c_o_GCJ=yes 17369 fi 17370 fi 17371 chmod u+w . 2>&5 17372 $rm conftest* 17373 # SGI C++ compiler will create directory out/ii_files/ for 17374 # template instantiation 17375 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 17376 $rm out/* && rmdir out 17377 cd .. 17378 rmdir conftest 17379 $rm conftest* 17380 17381fi 17382{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 17383$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; } 17384 17385 17386hard_links="nottested" 17387if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 17388 # do not overwrite the value of need_locks provided by the user 17389 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 17390$as_echo_n "checking if we can lock with hard links... " >&6; } 17391 hard_links=yes 17392 $rm conftest* 17393 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17394 touch conftest.a 17395 ln conftest.a conftest.b 2>&5 || hard_links=no 17396 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17397 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 17398$as_echo "$hard_links" >&6; } 17399 if test "$hard_links" = no; then 17400 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 17401$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 17402 need_locks=warn 17403 fi 17404else 17405 need_locks=no 17406fi 17407 17408{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17409$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 17410 17411 runpath_var= 17412 allow_undefined_flag_GCJ= 17413 enable_shared_with_static_runtimes_GCJ=no 17414 archive_cmds_GCJ= 17415 archive_expsym_cmds_GCJ= 17416 old_archive_From_new_cmds_GCJ= 17417 old_archive_from_expsyms_cmds_GCJ= 17418 export_dynamic_flag_spec_GCJ= 17419 whole_archive_flag_spec_GCJ= 17420 thread_safe_flag_spec_GCJ= 17421 hardcode_libdir_flag_spec_GCJ= 17422 hardcode_libdir_flag_spec_ld_GCJ= 17423 hardcode_libdir_separator_GCJ= 17424 hardcode_direct_GCJ=no 17425 hardcode_minus_L_GCJ=no 17426 hardcode_shlibpath_var_GCJ=unsupported 17427 link_all_deplibs_GCJ=unknown 17428 hardcode_automatic_GCJ=no 17429 module_cmds_GCJ= 17430 module_expsym_cmds_GCJ= 17431 always_export_symbols_GCJ=no 17432 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17433 # include_expsyms should be a list of space-separated symbols to be *always* 17434 # included in the symbol list 17435 include_expsyms_GCJ= 17436 # exclude_expsyms can be an extended regexp of symbols to exclude 17437 # it will be wrapped by ` (' and `)$', so one must not match beginning or 17438 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 17439 # as well as any symbol that contains `d'. 17440 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 17441 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 17442 # platforms (ab)use it in PIC code, but their linkers get confused if 17443 # the symbol is explicitly referenced. Since portable code cannot 17444 # rely on this symbol name, it's probably fine to never include it in 17445 # preloaded symbol tables. 17446 # Exclude shared library initialization/finalization symbols. 17447 extract_expsyms_cmds= 17448 # Just being paranoid about ensuring that cc_basename is set. 17449 for cc_temp in $compiler""; do 17450 case $cc_temp in 17451 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17452 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17453 \-*) ;; 17454 *) break;; 17455 esac 17456done 17457cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17458 17459 case $host_os in 17460 cygwin* | mingw* | pw32*) 17461 # FIXME: the MSVC++ port hasn't been tested in a loooong time 17462 # When not using gcc, we currently assume that we are using 17463 # Microsoft Visual C++. 17464 if test "$GCC" != yes; then 17465 with_gnu_ld=no 17466 fi 17467 ;; 17468 interix*) 17469 # we just hope/assume this is gcc and not c89 (= MSVC++) 17470 with_gnu_ld=yes 17471 ;; 17472 openbsd*) 17473 with_gnu_ld=no 17474 ;; 17475 esac 17476 17477 ld_shlibs_GCJ=yes 17478 if test "$with_gnu_ld" = yes; then 17479 # If archive_cmds runs LD, not CC, wlarc should be empty 17480 wlarc='${wl}' 17481 17482 # Set some defaults for GNU ld with shared library support. These 17483 # are reset later if shared libraries are not supported. Putting them 17484 # here allows them to be overridden if necessary. 17485 runpath_var=LD_RUN_PATH 17486 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 17487 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 17488 # ancient GNU ld didn't support --whole-archive et. al. 17489 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 17490 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 17491 else 17492 whole_archive_flag_spec_GCJ= 17493 fi 17494 supports_anon_versioning=no 17495 case `$LD -v 2>/dev/null` in 17496 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 17497 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 17498 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 17499 *\ 2.11.*) ;; # other 2.11 versions 17500 *) supports_anon_versioning=yes ;; 17501 esac 17502 17503 # See if GNU ld supports shared libraries. 17504 case $host_os in 17505 aix[3-9]*) 17506 # On AIX/PPC, the GNU linker is very broken 17507 if test "$host_cpu" != ia64; then 17508 ld_shlibs_GCJ=no 17509 cat <<EOF 1>&2 17510 17511*** Warning: the GNU linker, at least up to release 2.9.1, is reported 17512*** to be unable to reliably create shared libraries on AIX. 17513*** Therefore, libtool is disabling shared libraries support. If you 17514*** really care for shared libraries, you may want to modify your PATH 17515*** so that a non-GNU linker is found, and then restart. 17516 17517EOF 17518 fi 17519 ;; 17520 17521 amigaos*) 17522 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)' 17523 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17524 hardcode_minus_L_GCJ=yes 17525 17526 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 17527 # that the semantics of dynamic libraries on AmigaOS, at least up 17528 # to version 4, is to share data among multiple programs linked 17529 # with the same dynamic library. Since this doesn't match the 17530 # behavior of shared libraries on other platforms, we can't use 17531 # them. 17532 ld_shlibs_GCJ=no 17533 ;; 17534 17535 beos*) 17536 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17537 allow_undefined_flag_GCJ=unsupported 17538 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 17539 # support --undefined. This deserves some investigation. FIXME 17540 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17541 else 17542 ld_shlibs_GCJ=no 17543 fi 17544 ;; 17545 17546 cygwin* | mingw* | pw32*) 17547 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 17548 # as there is no search path for DLLs. 17549 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17550 allow_undefined_flag_GCJ=unsupported 17551 always_export_symbols_GCJ=no 17552 enable_shared_with_static_runtimes_GCJ=yes 17553 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 17554 17555 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 17556 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17557 # If the export-symbols file already is a .def file (1st line 17558 # is EXPORTS), use it as is; otherwise, prepend... 17559 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 17560 cp $export_symbols $output_objdir/$soname.def; 17561 else 17562 echo EXPORTS > $output_objdir/$soname.def; 17563 cat $export_symbols >> $output_objdir/$soname.def; 17564 fi~ 17565 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17566 else 17567 ld_shlibs_GCJ=no 17568 fi 17569 ;; 17570 17571 interix[3-9]*) 17572 hardcode_direct_GCJ=no 17573 hardcode_shlibpath_var_GCJ=no 17574 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17575 export_dynamic_flag_spec_GCJ='${wl}-E' 17576 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 17577 # Instead, shared libraries are loaded at an image base (0x10000000 by 17578 # default) and relocated if they conflict, which is a slow very memory 17579 # consuming and fragmenting process. To avoid this, we pick a random, 17580 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 17581 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 17582 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' 17583 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' 17584 ;; 17585 17586 gnu* | linux* | k*bsd*-gnu) 17587 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17588 tmp_addflag= 17589 case $cc_basename,$host_cpu in 17590 pgcc*) # Portland Group C compiler 17591 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' 17592 tmp_addflag=' $pic_flag' 17593 ;; 17594 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 17595 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' 17596 tmp_addflag=' $pic_flag -Mnomain' ;; 17597 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 17598 tmp_addflag=' -i_dynamic' ;; 17599 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 17600 tmp_addflag=' -i_dynamic -nofor_main' ;; 17601 ifc* | ifort*) # Intel Fortran compiler 17602 tmp_addflag=' -nofor_main' ;; 17603 esac 17604 case `$CC -V 2>&1 | sed 5q` in 17605 *Sun\ C*) # Sun C 5.9 17606 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' 17607 tmp_sharedflag='-G' ;; 17608 *Sun\ F*) # Sun Fortran 8.3 17609 tmp_sharedflag='-G' ;; 17610 *) 17611 tmp_sharedflag='-shared' ;; 17612 esac 17613 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17614 17615 if test $supports_anon_versioning = yes; then 17616 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 17617 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17618 $echo "local: *; };" >> $output_objdir/$libname.ver~ 17619 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17620 fi 17621 else 17622 ld_shlibs_GCJ=no 17623 fi 17624 ;; 17625 17626 netbsd*) 17627 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17628 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17629 wlarc= 17630 else 17631 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17632 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17633 fi 17634 ;; 17635 17636 solaris*) 17637 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 17638 ld_shlibs_GCJ=no 17639 cat <<EOF 1>&2 17640 17641*** Warning: The releases 2.8.* of the GNU linker cannot reliably 17642*** create shared libraries on Solaris systems. Therefore, libtool 17643*** is disabling shared libraries support. We urge you to upgrade GNU 17644*** binutils to release 2.9.1 or newer. Another option is to modify 17645*** your PATH or compiler configuration so that the native linker is 17646*** used, and then restart. 17647 17648EOF 17649 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17650 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17651 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17652 else 17653 ld_shlibs_GCJ=no 17654 fi 17655 ;; 17656 17657 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 17658 case `$LD -v 2>&1` in 17659 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 17660 ld_shlibs_GCJ=no 17661 cat <<_LT_EOF 1>&2 17662 17663*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 17664*** reliably create shared libraries on SCO systems. Therefore, libtool 17665*** is disabling shared libraries support. We urge you to upgrade GNU 17666*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 17667*** your PATH or compiler configuration so that the native linker is 17668*** used, and then restart. 17669 17670_LT_EOF 17671 ;; 17672 *) 17673 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17674 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 17675 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 17676 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 17677 else 17678 ld_shlibs_GCJ=no 17679 fi 17680 ;; 17681 esac 17682 ;; 17683 17684 sunos4*) 17685 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17686 wlarc= 17687 hardcode_direct_GCJ=yes 17688 hardcode_shlibpath_var_GCJ=no 17689 ;; 17690 17691 *) 17692 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17693 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17694 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17695 else 17696 ld_shlibs_GCJ=no 17697 fi 17698 ;; 17699 esac 17700 17701 if test "$ld_shlibs_GCJ" = no; then 17702 runpath_var= 17703 hardcode_libdir_flag_spec_GCJ= 17704 export_dynamic_flag_spec_GCJ= 17705 whole_archive_flag_spec_GCJ= 17706 fi 17707 else 17708 # PORTME fill in a description of your system's linker (not GNU ld) 17709 case $host_os in 17710 aix3*) 17711 allow_undefined_flag_GCJ=unsupported 17712 always_export_symbols_GCJ=yes 17713 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' 17714 # Note: this linker hardcodes the directories in LIBPATH if there 17715 # are no directories specified by -L. 17716 hardcode_minus_L_GCJ=yes 17717 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 17718 # Neither direct hardcoding nor static linking is supported with a 17719 # broken collect2. 17720 hardcode_direct_GCJ=unsupported 17721 fi 17722 ;; 17723 17724 aix[4-9]*) 17725 if test "$host_cpu" = ia64; then 17726 # On IA64, the linker does run time linking by default, so we don't 17727 # have to do anything special. 17728 aix_use_runtimelinking=no 17729 exp_sym_flag='-Bexport' 17730 no_entry_flag="" 17731 else 17732 # If we're using GNU nm, then we don't want the "-C" option. 17733 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17734 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 17735 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' 17736 else 17737 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' 17738 fi 17739 aix_use_runtimelinking=no 17740 17741 # Test if we are trying to use run time linking or normal 17742 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17743 # need to do runtime linking. 17744 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 17745 for ld_flag in $LDFLAGS; do 17746 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17747 aix_use_runtimelinking=yes 17748 break 17749 fi 17750 done 17751 ;; 17752 esac 17753 17754 exp_sym_flag='-bexport' 17755 no_entry_flag='-bnoentry' 17756 fi 17757 17758 # When large executables or shared objects are built, AIX ld can 17759 # have problems creating the table of contents. If linking a library 17760 # or program results in "error TOC overflow" add -mminimal-toc to 17761 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17762 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17763 17764 archive_cmds_GCJ='' 17765 hardcode_direct_GCJ=yes 17766 hardcode_libdir_separator_GCJ=':' 17767 link_all_deplibs_GCJ=yes 17768 17769 if test "$GCC" = yes; then 17770 case $host_os in aix4.[012]|aix4.[012].*) 17771 # We only want to do this on AIX 4.2 and lower, the check 17772 # below for broken collect2 doesn't work under 4.3+ 17773 collect2name=`${CC} -print-prog-name=collect2` 17774 if test -f "$collect2name" && \ 17775 strings "$collect2name" | grep resolve_lib_name >/dev/null 17776 then 17777 # We have reworked collect2 17778 : 17779 else 17780 # We have old collect2 17781 hardcode_direct_GCJ=unsupported 17782 # It fails to find uninstalled libraries when the uninstalled 17783 # path is not listed in the libpath. Setting hardcode_minus_L 17784 # to unsupported forces relinking 17785 hardcode_minus_L_GCJ=yes 17786 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17787 hardcode_libdir_separator_GCJ= 17788 fi 17789 ;; 17790 esac 17791 shared_flag='-shared' 17792 if test "$aix_use_runtimelinking" = yes; then 17793 shared_flag="$shared_flag "'${wl}-G' 17794 fi 17795 else 17796 # not using gcc 17797 if test "$host_cpu" = ia64; then 17798 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17799 # chokes on -Wl,-G. The following line is correct: 17800 shared_flag='-G' 17801 else 17802 if test "$aix_use_runtimelinking" = yes; then 17803 shared_flag='${wl}-G' 17804 else 17805 shared_flag='${wl}-bM:SRE' 17806 fi 17807 fi 17808 fi 17809 17810 # It seems that -bexpall does not export symbols beginning with 17811 # underscore (_), so it is better to generate a list of symbols to export. 17812 always_export_symbols_GCJ=yes 17813 if test "$aix_use_runtimelinking" = yes; then 17814 # Warning - without using the other runtime loading flags (-brtl), 17815 # -berok will link without error, but may produce a broken library. 17816 allow_undefined_flag_GCJ='-berok' 17817 # Determine the default libpath from the value encoded in an empty executable. 17818 cat >conftest.$ac_ext <<_ACEOF 17819/* confdefs.h. */ 17820_ACEOF 17821cat confdefs.h >>conftest.$ac_ext 17822cat >>conftest.$ac_ext <<_ACEOF 17823/* end confdefs.h. */ 17824 17825int 17826main () 17827{ 17828 17829 ; 17830 return 0; 17831} 17832_ACEOF 17833rm -f conftest.$ac_objext conftest$ac_exeext 17834if { (ac_try="$ac_link" 17835case "(($ac_try" in 17836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17837 *) ac_try_echo=$ac_try;; 17838esac 17839eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17840$as_echo "$ac_try_echo") >&5 17841 (eval "$ac_link") 2>conftest.er1 17842 ac_status=$? 17843 grep -v '^ *+' conftest.er1 >conftest.err 17844 rm -f conftest.er1 17845 cat conftest.err >&5 17846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17847 (exit $ac_status); } && { 17848 test -z "$ac_c_werror_flag" || 17849 test ! -s conftest.err 17850 } && test -s conftest$ac_exeext && { 17851 test "$cross_compiling" = yes || 17852 $as_test_x conftest$ac_exeext 17853 }; then 17854 17855lt_aix_libpath_sed=' 17856 /Import File Strings/,/^$/ { 17857 /^0/ { 17858 s/^0 *\(.*\)$/\1/ 17859 p 17860 } 17861 }' 17862aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17863# Check for a 64-bit object if we didn't find anything. 17864if test -z "$aix_libpath"; then 17865 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17866fi 17867else 17868 $as_echo "$as_me: failed program was:" >&5 17869sed 's/^/| /' conftest.$ac_ext >&5 17870 17871 17872fi 17873 17874rm -rf conftest.dSYM 17875rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17876 conftest$ac_exeext conftest.$ac_ext 17877if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17878 17879 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17880 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" 17881 else 17882 if test "$host_cpu" = ia64; then 17883 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17884 allow_undefined_flag_GCJ="-z nodefs" 17885 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" 17886 else 17887 # Determine the default libpath from the value encoded in an empty executable. 17888 cat >conftest.$ac_ext <<_ACEOF 17889/* confdefs.h. */ 17890_ACEOF 17891cat confdefs.h >>conftest.$ac_ext 17892cat >>conftest.$ac_ext <<_ACEOF 17893/* end confdefs.h. */ 17894 17895int 17896main () 17897{ 17898 17899 ; 17900 return 0; 17901} 17902_ACEOF 17903rm -f conftest.$ac_objext conftest$ac_exeext 17904if { (ac_try="$ac_link" 17905case "(($ac_try" in 17906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17907 *) ac_try_echo=$ac_try;; 17908esac 17909eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17910$as_echo "$ac_try_echo") >&5 17911 (eval "$ac_link") 2>conftest.er1 17912 ac_status=$? 17913 grep -v '^ *+' conftest.er1 >conftest.err 17914 rm -f conftest.er1 17915 cat conftest.err >&5 17916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17917 (exit $ac_status); } && { 17918 test -z "$ac_c_werror_flag" || 17919 test ! -s conftest.err 17920 } && test -s conftest$ac_exeext && { 17921 test "$cross_compiling" = yes || 17922 $as_test_x conftest$ac_exeext 17923 }; then 17924 17925lt_aix_libpath_sed=' 17926 /Import File Strings/,/^$/ { 17927 /^0/ { 17928 s/^0 *\(.*\)$/\1/ 17929 p 17930 } 17931 }' 17932aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17933# Check for a 64-bit object if we didn't find anything. 17934if test -z "$aix_libpath"; then 17935 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17936fi 17937else 17938 $as_echo "$as_me: failed program was:" >&5 17939sed 's/^/| /' conftest.$ac_ext >&5 17940 17941 17942fi 17943 17944rm -rf conftest.dSYM 17945rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17946 conftest$ac_exeext conftest.$ac_ext 17947if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17948 17949 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17950 # Warning - without using the other run time loading flags, 17951 # -berok will link without error, but may produce a broken library. 17952 no_undefined_flag_GCJ=' ${wl}-bernotok' 17953 allow_undefined_flag_GCJ=' ${wl}-berok' 17954 # Exported symbols can be pulled into shared objects from archives 17955 whole_archive_flag_spec_GCJ='$convenience' 17956 archive_cmds_need_lc_GCJ=yes 17957 # This is similar to how AIX traditionally builds its shared libraries. 17958 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' 17959 fi 17960 fi 17961 ;; 17962 17963 amigaos*) 17964 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)' 17965 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17966 hardcode_minus_L_GCJ=yes 17967 # see comment about different semantics on the GNU ld section 17968 ld_shlibs_GCJ=no 17969 ;; 17970 17971 bsdi[45]*) 17972 export_dynamic_flag_spec_GCJ=-rdynamic 17973 ;; 17974 17975 cygwin* | mingw* | pw32*) 17976 # When not using gcc, we currently assume that we are using 17977 # Microsoft Visual C++. 17978 # hardcode_libdir_flag_spec is actually meaningless, as there is 17979 # no search path for DLLs. 17980 hardcode_libdir_flag_spec_GCJ=' ' 17981 allow_undefined_flag_GCJ=unsupported 17982 # Tell ltmain to make .lib files, not .a files. 17983 libext=lib 17984 # Tell ltmain to make .dll files, not .so files. 17985 shrext_cmds=".dll" 17986 # FIXME: Setting linknames here is a bad hack. 17987 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17988 # The linker will automatically build a .lib file if we build a DLL. 17989 old_archive_From_new_cmds_GCJ='true' 17990 # FIXME: Should let the user specify the lib program. 17991 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' 17992 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17993 enable_shared_with_static_runtimes_GCJ=yes 17994 ;; 17995 17996 darwin* | rhapsody*) 17997 case $host_os in 17998 rhapsody* | darwin1.[012]) 17999 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 18000 ;; 18001 *) # Darwin 1.3 on 18002 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 18003 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 18004 else 18005 case ${MACOSX_DEPLOYMENT_TARGET} in 18006 10.[012]) 18007 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 18008 ;; 18009 10.*) 18010 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 18011 ;; 18012 esac 18013 fi 18014 ;; 18015 esac 18016 archive_cmds_need_lc_GCJ=no 18017 hardcode_direct_GCJ=no 18018 hardcode_automatic_GCJ=yes 18019 hardcode_shlibpath_var_GCJ=unsupported 18020 whole_archive_flag_spec_GCJ='' 18021 link_all_deplibs_GCJ=yes 18022 if test "$GCC" = yes ; then 18023 output_verbose_link_cmd='echo' 18024 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}" 18025 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 18026 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}" 18027 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}" 18028 else 18029 case $cc_basename in 18030 xlc*) 18031 output_verbose_link_cmd='echo' 18032 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 18033 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 18034 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 18035 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}' 18036 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}' 18037 ;; 18038 *) 18039 ld_shlibs_GCJ=no 18040 ;; 18041 esac 18042 fi 18043 ;; 18044 18045 dgux*) 18046 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18047 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18048 hardcode_shlibpath_var_GCJ=no 18049 ;; 18050 18051 freebsd1*) 18052 ld_shlibs_GCJ=no 18053 ;; 18054 18055 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 18056 # support. Future versions do this automatically, but an explicit c++rt0.o 18057 # does not break anything, and helps significantly (at the cost of a little 18058 # extra space). 18059 freebsd2.2*) 18060 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 18061 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18062 hardcode_direct_GCJ=yes 18063 hardcode_shlibpath_var_GCJ=no 18064 ;; 18065 18066 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 18067 freebsd2*) 18068 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18069 hardcode_direct_GCJ=yes 18070 hardcode_minus_L_GCJ=yes 18071 hardcode_shlibpath_var_GCJ=no 18072 ;; 18073 18074 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 18075 freebsd* | dragonfly*) 18076 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 18077 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18078 hardcode_direct_GCJ=yes 18079 hardcode_shlibpath_var_GCJ=no 18080 ;; 18081 18082 hpux9*) 18083 if test "$GCC" = yes; then 18084 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' 18085 else 18086 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' 18087 fi 18088 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18089 hardcode_libdir_separator_GCJ=: 18090 hardcode_direct_GCJ=yes 18091 18092 # hardcode_minus_L: Not really in the search PATH, 18093 # but as the default location of the library. 18094 hardcode_minus_L_GCJ=yes 18095 export_dynamic_flag_spec_GCJ='${wl}-E' 18096 ;; 18097 18098 hpux10*) 18099 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 18100 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18101 else 18102 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 18103 fi 18104 if test "$with_gnu_ld" = no; then 18105 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18106 hardcode_libdir_separator_GCJ=: 18107 18108 hardcode_direct_GCJ=yes 18109 export_dynamic_flag_spec_GCJ='${wl}-E' 18110 18111 # hardcode_minus_L: Not really in the search PATH, 18112 # but as the default location of the library. 18113 hardcode_minus_L_GCJ=yes 18114 fi 18115 ;; 18116 18117 hpux11*) 18118 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 18119 case $host_cpu in 18120 hppa*64*) 18121 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18122 ;; 18123 ia64*) 18124 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18125 ;; 18126 *) 18127 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18128 ;; 18129 esac 18130 else 18131 case $host_cpu in 18132 hppa*64*) 18133 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18134 ;; 18135 ia64*) 18136 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18137 ;; 18138 *) 18139 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18140 ;; 18141 esac 18142 fi 18143 if test "$with_gnu_ld" = no; then 18144 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18145 hardcode_libdir_separator_GCJ=: 18146 18147 case $host_cpu in 18148 hppa*64*|ia64*) 18149 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 18150 hardcode_direct_GCJ=no 18151 hardcode_shlibpath_var_GCJ=no 18152 ;; 18153 *) 18154 hardcode_direct_GCJ=yes 18155 export_dynamic_flag_spec_GCJ='${wl}-E' 18156 18157 # hardcode_minus_L: Not really in the search PATH, 18158 # but as the default location of the library. 18159 hardcode_minus_L_GCJ=yes 18160 ;; 18161 esac 18162 fi 18163 ;; 18164 18165 irix5* | irix6* | nonstopux*) 18166 if test "$GCC" = yes; then 18167 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' 18168 else 18169 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' 18170 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 18171 fi 18172 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18173 hardcode_libdir_separator_GCJ=: 18174 link_all_deplibs_GCJ=yes 18175 ;; 18176 18177 netbsd*) 18178 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18179 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 18180 else 18181 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 18182 fi 18183 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18184 hardcode_direct_GCJ=yes 18185 hardcode_shlibpath_var_GCJ=no 18186 ;; 18187 18188 newsos6) 18189 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18190 hardcode_direct_GCJ=yes 18191 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18192 hardcode_libdir_separator_GCJ=: 18193 hardcode_shlibpath_var_GCJ=no 18194 ;; 18195 18196 openbsd*) 18197 if test -f /usr/libexec/ld.so; then 18198 hardcode_direct_GCJ=yes 18199 hardcode_shlibpath_var_GCJ=no 18200 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18201 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18202 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 18203 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18204 export_dynamic_flag_spec_GCJ='${wl}-E' 18205 else 18206 case $host_os in 18207 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 18208 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18209 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18210 ;; 18211 *) 18212 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18213 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18214 ;; 18215 esac 18216 fi 18217 else 18218 ld_shlibs_GCJ=no 18219 fi 18220 ;; 18221 18222 os2*) 18223 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18224 hardcode_minus_L_GCJ=yes 18225 allow_undefined_flag_GCJ=unsupported 18226 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' 18227 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 18228 ;; 18229 18230 osf3*) 18231 if test "$GCC" = yes; then 18232 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18233 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' 18234 else 18235 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18236 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' 18237 fi 18238 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18239 hardcode_libdir_separator_GCJ=: 18240 ;; 18241 18242 osf4* | osf5*) # as osf3* with the addition of -msym flag 18243 if test "$GCC" = yes; then 18244 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18245 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' 18246 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18247 else 18248 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18249 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' 18250 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~ 18251 $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' 18252 18253 # Both c and cxx compiler support -rpath directly 18254 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 18255 fi 18256 hardcode_libdir_separator_GCJ=: 18257 ;; 18258 18259 solaris*) 18260 no_undefined_flag_GCJ=' -z text' 18261 if test "$GCC" = yes; then 18262 wlarc='${wl}' 18263 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18264 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18265 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 18266 else 18267 wlarc='' 18268 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 18269 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18270 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 18271 fi 18272 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18273 hardcode_shlibpath_var_GCJ=no 18274 case $host_os in 18275 solaris2.[0-5] | solaris2.[0-5].*) ;; 18276 *) 18277 # The compiler driver will combine and reorder linker options, 18278 # but understands `-z linker_flag'. GCC discards it without `$wl', 18279 # but is careful enough not to reorder. 18280 # Supported since Solaris 2.6 (maybe 2.5.1?) 18281 if test "$GCC" = yes; then 18282 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 18283 else 18284 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' 18285 fi 18286 ;; 18287 esac 18288 link_all_deplibs_GCJ=yes 18289 ;; 18290 18291 sunos4*) 18292 if test "x$host_vendor" = xsequent; then 18293 # Use $CC to link under sequent, because it throws in some extra .o 18294 # files that make .init and .fini sections work. 18295 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 18296 else 18297 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 18298 fi 18299 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18300 hardcode_direct_GCJ=yes 18301 hardcode_minus_L_GCJ=yes 18302 hardcode_shlibpath_var_GCJ=no 18303 ;; 18304 18305 sysv4) 18306 case $host_vendor in 18307 sni) 18308 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18309 hardcode_direct_GCJ=yes # is this really true??? 18310 ;; 18311 siemens) 18312 ## LD is ld it makes a PLAMLIB 18313 ## CC just makes a GrossModule. 18314 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 18315 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 18316 hardcode_direct_GCJ=no 18317 ;; 18318 motorola) 18319 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18320 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 18321 ;; 18322 esac 18323 runpath_var='LD_RUN_PATH' 18324 hardcode_shlibpath_var_GCJ=no 18325 ;; 18326 18327 sysv4.3*) 18328 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18329 hardcode_shlibpath_var_GCJ=no 18330 export_dynamic_flag_spec_GCJ='-Bexport' 18331 ;; 18332 18333 sysv4*MP*) 18334 if test -d /usr/nec; then 18335 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18336 hardcode_shlibpath_var_GCJ=no 18337 runpath_var=LD_RUN_PATH 18338 hardcode_runpath_var=yes 18339 ld_shlibs_GCJ=yes 18340 fi 18341 ;; 18342 18343 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 18344 no_undefined_flag_GCJ='${wl}-z,text' 18345 archive_cmds_need_lc_GCJ=no 18346 hardcode_shlibpath_var_GCJ=no 18347 runpath_var='LD_RUN_PATH' 18348 18349 if test "$GCC" = yes; then 18350 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18351 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18352 else 18353 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18354 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18355 fi 18356 ;; 18357 18358 sysv5* | sco3.2v5* | sco5v6*) 18359 # Note: We can NOT use -z defs as we might desire, because we do not 18360 # link with -lc, and that would cause any symbols used from libc to 18361 # always be unresolved, which means just about no library would 18362 # ever link correctly. If we're not using GNU ld we use -z text 18363 # though, which does catch some bad symbols but isn't as heavy-handed 18364 # as -z defs. 18365 no_undefined_flag_GCJ='${wl}-z,text' 18366 allow_undefined_flag_GCJ='${wl}-z,nodefs' 18367 archive_cmds_need_lc_GCJ=no 18368 hardcode_shlibpath_var_GCJ=no 18369 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 18370 hardcode_libdir_separator_GCJ=':' 18371 link_all_deplibs_GCJ=yes 18372 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 18373 runpath_var='LD_RUN_PATH' 18374 18375 if test "$GCC" = yes; then 18376 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18377 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18378 else 18379 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18380 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18381 fi 18382 ;; 18383 18384 uts4*) 18385 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18386 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18387 hardcode_shlibpath_var_GCJ=no 18388 ;; 18389 18390 *) 18391 ld_shlibs_GCJ=no 18392 ;; 18393 esac 18394 fi 18395 18396{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 18397$as_echo "$ld_shlibs_GCJ" >&6; } 18398test "$ld_shlibs_GCJ" = no && can_build_shared=no 18399 18400# 18401# Do we need to explicitly link libc? 18402# 18403case "x$archive_cmds_need_lc_GCJ" in 18404x|xyes) 18405 # Assume -lc should be added 18406 archive_cmds_need_lc_GCJ=yes 18407 18408 if test "$enable_shared" = yes && test "$GCC" = yes; then 18409 case $archive_cmds_GCJ in 18410 *'~'*) 18411 # FIXME: we may have to deal with multi-command sequences. 18412 ;; 18413 '$CC '*) 18414 # Test whether the compiler implicitly links with -lc since on some 18415 # systems, -lgcc has to come before -lc. If gcc already passes -lc 18416 # to ld, don't add -lc before -lgcc. 18417 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 18418$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 18419 $rm conftest* 18420 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18421 18422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18423 (eval $ac_compile) 2>&5 18424 ac_status=$? 18425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18426 (exit $ac_status); } 2>conftest.err; then 18427 soname=conftest 18428 lib=conftest 18429 libobjs=conftest.$ac_objext 18430 deplibs= 18431 wl=$lt_prog_compiler_wl_GCJ 18432 pic_flag=$lt_prog_compiler_pic_GCJ 18433 compiler_flags=-v 18434 linker_flags=-v 18435 verstring= 18436 output_objdir=. 18437 libname=conftest 18438 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 18439 allow_undefined_flag_GCJ= 18440 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 18441 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 18442 ac_status=$? 18443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18444 (exit $ac_status); } 18445 then 18446 archive_cmds_need_lc_GCJ=no 18447 else 18448 archive_cmds_need_lc_GCJ=yes 18449 fi 18450 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 18451 else 18452 cat conftest.err 1>&5 18453 fi 18454 $rm conftest* 18455 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 18456$as_echo "$archive_cmds_need_lc_GCJ" >&6; } 18457 ;; 18458 esac 18459 fi 18460 ;; 18461esac 18462 18463{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 18464$as_echo_n "checking dynamic linker characteristics... " >&6; } 18465library_names_spec= 18466libname_spec='lib$name' 18467soname_spec= 18468shrext_cmds=".so" 18469postinstall_cmds= 18470postuninstall_cmds= 18471finish_cmds= 18472finish_eval= 18473shlibpath_var= 18474shlibpath_overrides_runpath=unknown 18475version_type=none 18476dynamic_linker="$host_os ld.so" 18477sys_lib_dlsearch_path_spec="/lib /usr/lib" 18478 18479need_lib_prefix=unknown 18480hardcode_into_libs=no 18481 18482# when you set need_version to no, make sure it does not cause -set_version 18483# flags to be left without arguments 18484need_version=unknown 18485 18486case $host_os in 18487aix3*) 18488 version_type=linux 18489 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 18490 shlibpath_var=LIBPATH 18491 18492 # AIX 3 has no versioning support, so we append a major version to the name. 18493 soname_spec='${libname}${release}${shared_ext}$major' 18494 ;; 18495 18496aix[4-9]*) 18497 version_type=linux 18498 need_lib_prefix=no 18499 need_version=no 18500 hardcode_into_libs=yes 18501 if test "$host_cpu" = ia64; then 18502 # AIX 5 supports IA64 18503 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 18504 shlibpath_var=LD_LIBRARY_PATH 18505 else 18506 # With GCC up to 2.95.x, collect2 would create an import file 18507 # for dependence libraries. The import file would start with 18508 # the line `#! .'. This would cause the generated library to 18509 # depend on `.', always an invalid library. This was fixed in 18510 # development snapshots of GCC prior to 3.0. 18511 case $host_os in 18512 aix4 | aix4.[01] | aix4.[01].*) 18513 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18514 echo ' yes ' 18515 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 18516 : 18517 else 18518 can_build_shared=no 18519 fi 18520 ;; 18521 esac 18522 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 18523 # soname into executable. Probably we can add versioning support to 18524 # collect2, so additional links can be useful in future. 18525 if test "$aix_use_runtimelinking" = yes; then 18526 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18527 # instead of lib<name>.a to let people know that these are not 18528 # typical AIX shared libraries. 18529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18530 else 18531 # We preserve .a as extension for shared libraries through AIX4.2 18532 # and later when we are not doing run time linking. 18533 library_names_spec='${libname}${release}.a $libname.a' 18534 soname_spec='${libname}${release}${shared_ext}$major' 18535 fi 18536 shlibpath_var=LIBPATH 18537 fi 18538 ;; 18539 18540amigaos*) 18541 library_names_spec='$libname.ixlibrary $libname.a' 18542 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18543 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' 18544 ;; 18545 18546beos*) 18547 library_names_spec='${libname}${shared_ext}' 18548 dynamic_linker="$host_os ld.so" 18549 shlibpath_var=LIBRARY_PATH 18550 ;; 18551 18552bsdi[45]*) 18553 version_type=linux 18554 need_version=no 18555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18556 soname_spec='${libname}${release}${shared_ext}$major' 18557 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18558 shlibpath_var=LD_LIBRARY_PATH 18559 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18560 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18561 # the default ld.so.conf also contains /usr/contrib/lib and 18562 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18563 # libtool to hard-code these into programs 18564 ;; 18565 18566cygwin* | mingw* | pw32*) 18567 version_type=windows 18568 shrext_cmds=".dll" 18569 need_version=no 18570 need_lib_prefix=no 18571 18572 case $GCC,$host_os in 18573 yes,cygwin* | yes,mingw* | yes,pw32*) 18574 library_names_spec='$libname.dll.a' 18575 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18576 postinstall_cmds='base_file=`basename \${file}`~ 18577 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 18578 dldir=$destdir/`dirname \$dlpath`~ 18579 test -d \$dldir || mkdir -p \$dldir~ 18580 $install_prog $dir/$dlname \$dldir/$dlname~ 18581 chmod a+x \$dldir/$dlname' 18582 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18583 dlpath=$dir/\$dldll~ 18584 $rm \$dlpath' 18585 shlibpath_overrides_runpath=yes 18586 18587 case $host_os in 18588 cygwin*) 18589 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18590 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18591 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 18592 ;; 18593 mingw*) 18594 # MinGW DLLs use traditional 'lib' prefix 18595 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18596 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18597 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 18598 # It is most probably a Windows format PATH printed by 18599 # mingw gcc, but we are running on Cygwin. Gcc prints its search 18600 # path with ; separators, and with drive letters. We can handle the 18601 # drive letters (cygwin fileutils understands them), so leave them, 18602 # especially as we might pass files found there to a mingw objdump, 18603 # which wouldn't understand a cygwinified path. Ahh. 18604 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18605 else 18606 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18607 fi 18608 ;; 18609 pw32*) 18610 # pw32 DLLs use 'pw' prefix rather than 'lib' 18611 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18612 ;; 18613 esac 18614 ;; 18615 18616 *) 18617 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 18618 ;; 18619 esac 18620 dynamic_linker='Win32 ld.exe' 18621 # FIXME: first we should search . and the directory the executable is in 18622 shlibpath_var=PATH 18623 ;; 18624 18625darwin* | rhapsody*) 18626 dynamic_linker="$host_os dyld" 18627 version_type=darwin 18628 need_lib_prefix=no 18629 need_version=no 18630 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 18631 soname_spec='${libname}${release}${major}$shared_ext' 18632 shlibpath_overrides_runpath=yes 18633 shlibpath_var=DYLD_LIBRARY_PATH 18634 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18635 18636 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18637 ;; 18638 18639dgux*) 18640 version_type=linux 18641 need_lib_prefix=no 18642 need_version=no 18643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 18644 soname_spec='${libname}${release}${shared_ext}$major' 18645 shlibpath_var=LD_LIBRARY_PATH 18646 ;; 18647 18648freebsd1*) 18649 dynamic_linker=no 18650 ;; 18651 18652freebsd* | dragonfly*) 18653 # DragonFly does not have aout. When/if they implement a new 18654 # versioning mechanism, adjust this. 18655 if test -x /usr/bin/objformat; then 18656 objformat=`/usr/bin/objformat` 18657 else 18658 case $host_os in 18659 freebsd[123]*) objformat=aout ;; 18660 *) objformat=elf ;; 18661 esac 18662 fi 18663 version_type=freebsd-$objformat 18664 case $version_type in 18665 freebsd-elf*) 18666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18667 need_version=no 18668 need_lib_prefix=no 18669 ;; 18670 freebsd-*) 18671 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18672 need_version=yes 18673 ;; 18674 esac 18675 shlibpath_var=LD_LIBRARY_PATH 18676 case $host_os in 18677 freebsd2*) 18678 shlibpath_overrides_runpath=yes 18679 ;; 18680 freebsd3.[01]* | freebsdelf3.[01]*) 18681 shlibpath_overrides_runpath=yes 18682 hardcode_into_libs=yes 18683 ;; 18684 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18685 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18686 shlibpath_overrides_runpath=no 18687 hardcode_into_libs=yes 18688 ;; 18689 *) # from 4.6 on, and DragonFly 18690 shlibpath_overrides_runpath=yes 18691 hardcode_into_libs=yes 18692 ;; 18693 esac 18694 ;; 18695 18696gnu*) 18697 version_type=linux 18698 need_lib_prefix=no 18699 need_version=no 18700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18701 soname_spec='${libname}${release}${shared_ext}$major' 18702 shlibpath_var=LD_LIBRARY_PATH 18703 hardcode_into_libs=yes 18704 ;; 18705 18706hpux9* | hpux10* | hpux11*) 18707 # Give a soname corresponding to the major version so that dld.sl refuses to 18708 # link against other versions. 18709 version_type=sunos 18710 need_lib_prefix=no 18711 need_version=no 18712 case $host_cpu in 18713 ia64*) 18714 shrext_cmds='.so' 18715 hardcode_into_libs=yes 18716 dynamic_linker="$host_os dld.so" 18717 shlibpath_var=LD_LIBRARY_PATH 18718 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18720 soname_spec='${libname}${release}${shared_ext}$major' 18721 if test "X$HPUX_IA64_MODE" = X32; then 18722 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18723 else 18724 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18725 fi 18726 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18727 ;; 18728 hppa*64*) 18729 shrext_cmds='.sl' 18730 hardcode_into_libs=yes 18731 dynamic_linker="$host_os dld.sl" 18732 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18733 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18735 soname_spec='${libname}${release}${shared_ext}$major' 18736 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18737 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18738 ;; 18739 *) 18740 shrext_cmds='.sl' 18741 dynamic_linker="$host_os dld.sl" 18742 shlibpath_var=SHLIB_PATH 18743 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18745 soname_spec='${libname}${release}${shared_ext}$major' 18746 ;; 18747 esac 18748 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18749 postinstall_cmds='chmod 555 $lib' 18750 ;; 18751 18752interix[3-9]*) 18753 version_type=linux 18754 need_lib_prefix=no 18755 need_version=no 18756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18757 soname_spec='${libname}${release}${shared_ext}$major' 18758 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18759 shlibpath_var=LD_LIBRARY_PATH 18760 shlibpath_overrides_runpath=no 18761 hardcode_into_libs=yes 18762 ;; 18763 18764irix5* | irix6* | nonstopux*) 18765 case $host_os in 18766 nonstopux*) version_type=nonstopux ;; 18767 *) 18768 if test "$lt_cv_prog_gnu_ld" = yes; then 18769 version_type=linux 18770 else 18771 version_type=irix 18772 fi ;; 18773 esac 18774 need_lib_prefix=no 18775 need_version=no 18776 soname_spec='${libname}${release}${shared_ext}$major' 18777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18778 case $host_os in 18779 irix5* | nonstopux*) 18780 libsuff= shlibsuff= 18781 ;; 18782 *) 18783 case $LD in # libtool.m4 will add one of these switches to LD 18784 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18785 libsuff= shlibsuff= libmagic=32-bit;; 18786 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18787 libsuff=32 shlibsuff=N32 libmagic=N32;; 18788 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18789 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18790 *) libsuff= shlibsuff= libmagic=never-match;; 18791 esac 18792 ;; 18793 esac 18794 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18795 shlibpath_overrides_runpath=no 18796 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18797 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18798 hardcode_into_libs=yes 18799 ;; 18800 18801# No shared lib support for Linux oldld, aout, or coff. 18802linux*oldld* | linux*aout* | linux*coff*) 18803 dynamic_linker=no 18804 ;; 18805 18806# This must be Linux ELF. 18807linux* | k*bsd*-gnu) 18808 version_type=linux 18809 need_lib_prefix=no 18810 need_version=no 18811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18812 soname_spec='${libname}${release}${shared_ext}$major' 18813 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18814 shlibpath_var=LD_LIBRARY_PATH 18815 shlibpath_overrides_runpath=no 18816 # This implies no fast_install, which is unacceptable. 18817 # Some rework will be needed to allow for fast_install 18818 # before this can be enabled. 18819 hardcode_into_libs=yes 18820 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18821 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18822 18823 # Append ld.so.conf contents to the search path 18824 if test -f /etc/ld.so.conf; then 18825 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' ' '` 18826 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 18827 fi 18828 18829 # We used to test for /lib/ld.so.1 and disable shared libraries on 18830 # powerpc, because MkLinux only supported shared libraries with the 18831 # GNU dynamic linker. Since this was broken with cross compilers, 18832 # most powerpc-linux boxes support dynamic linking these days and 18833 # people can always --disable-shared, the test was removed, and we 18834 # assume the GNU/Linux dynamic linker is in use. 18835 dynamic_linker='GNU/Linux ld.so' 18836 ;; 18837 18838netbsd*) 18839 version_type=sunos 18840 need_lib_prefix=no 18841 need_version=no 18842 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18844 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18845 dynamic_linker='NetBSD (a.out) ld.so' 18846 else 18847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18848 soname_spec='${libname}${release}${shared_ext}$major' 18849 dynamic_linker='NetBSD ld.elf_so' 18850 fi 18851 shlibpath_var=LD_LIBRARY_PATH 18852 shlibpath_overrides_runpath=yes 18853 hardcode_into_libs=yes 18854 ;; 18855 18856newsos6) 18857 version_type=linux 18858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18859 shlibpath_var=LD_LIBRARY_PATH 18860 shlibpath_overrides_runpath=yes 18861 ;; 18862 18863nto-qnx*) 18864 version_type=linux 18865 need_lib_prefix=no 18866 need_version=no 18867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18868 soname_spec='${libname}${release}${shared_ext}$major' 18869 shlibpath_var=LD_LIBRARY_PATH 18870 shlibpath_overrides_runpath=yes 18871 ;; 18872 18873openbsd*) 18874 version_type=sunos 18875 sys_lib_dlsearch_path_spec="/usr/lib" 18876 need_lib_prefix=no 18877 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18878 case $host_os in 18879 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18880 *) need_version=no ;; 18881 esac 18882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18883 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18884 shlibpath_var=LD_LIBRARY_PATH 18885 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18886 case $host_os in 18887 openbsd2.[89] | openbsd2.[89].*) 18888 shlibpath_overrides_runpath=no 18889 ;; 18890 *) 18891 shlibpath_overrides_runpath=yes 18892 ;; 18893 esac 18894 else 18895 shlibpath_overrides_runpath=yes 18896 fi 18897 ;; 18898 18899os2*) 18900 libname_spec='$name' 18901 shrext_cmds=".dll" 18902 need_lib_prefix=no 18903 library_names_spec='$libname${shared_ext} $libname.a' 18904 dynamic_linker='OS/2 ld.exe' 18905 shlibpath_var=LIBPATH 18906 ;; 18907 18908osf3* | osf4* | osf5*) 18909 version_type=osf 18910 need_lib_prefix=no 18911 need_version=no 18912 soname_spec='${libname}${release}${shared_ext}$major' 18913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18914 shlibpath_var=LD_LIBRARY_PATH 18915 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18916 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18917 ;; 18918 18919rdos*) 18920 dynamic_linker=no 18921 ;; 18922 18923solaris*) 18924 version_type=linux 18925 need_lib_prefix=no 18926 need_version=no 18927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18928 soname_spec='${libname}${release}${shared_ext}$major' 18929 shlibpath_var=LD_LIBRARY_PATH 18930 shlibpath_overrides_runpath=yes 18931 hardcode_into_libs=yes 18932 # ldd complains unless libraries are executable 18933 postinstall_cmds='chmod +x $lib' 18934 ;; 18935 18936sunos4*) 18937 version_type=sunos 18938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18939 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18940 shlibpath_var=LD_LIBRARY_PATH 18941 shlibpath_overrides_runpath=yes 18942 if test "$with_gnu_ld" = yes; then 18943 need_lib_prefix=no 18944 fi 18945 need_version=yes 18946 ;; 18947 18948sysv4 | sysv4.3*) 18949 version_type=linux 18950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18951 soname_spec='${libname}${release}${shared_ext}$major' 18952 shlibpath_var=LD_LIBRARY_PATH 18953 case $host_vendor in 18954 sni) 18955 shlibpath_overrides_runpath=no 18956 need_lib_prefix=no 18957 export_dynamic_flag_spec='${wl}-Blargedynsym' 18958 runpath_var=LD_RUN_PATH 18959 ;; 18960 siemens) 18961 need_lib_prefix=no 18962 ;; 18963 motorola) 18964 need_lib_prefix=no 18965 need_version=no 18966 shlibpath_overrides_runpath=no 18967 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18968 ;; 18969 esac 18970 ;; 18971 18972sysv4*MP*) 18973 if test -d /usr/nec ;then 18974 version_type=linux 18975 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18976 soname_spec='$libname${shared_ext}.$major' 18977 shlibpath_var=LD_LIBRARY_PATH 18978 fi 18979 ;; 18980 18981sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18982 version_type=freebsd-elf 18983 need_lib_prefix=no 18984 need_version=no 18985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18986 soname_spec='${libname}${release}${shared_ext}$major' 18987 shlibpath_var=LD_LIBRARY_PATH 18988 hardcode_into_libs=yes 18989 if test "$with_gnu_ld" = yes; then 18990 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18991 shlibpath_overrides_runpath=no 18992 else 18993 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18994 shlibpath_overrides_runpath=yes 18995 case $host_os in 18996 sco3.2v5*) 18997 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18998 ;; 18999 esac 19000 fi 19001 sys_lib_dlsearch_path_spec='/usr/lib' 19002 ;; 19003 19004uts4*) 19005 version_type=linux 19006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19007 soname_spec='${libname}${release}${shared_ext}$major' 19008 shlibpath_var=LD_LIBRARY_PATH 19009 ;; 19010 19011*) 19012 dynamic_linker=no 19013 ;; 19014esac 19015{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 19016$as_echo "$dynamic_linker" >&6; } 19017test "$dynamic_linker" = no && can_build_shared=no 19018 19019if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 19020 $as_echo_n "(cached) " >&6 19021else 19022 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 19023fi 19024 19025sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 19026if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 19027 $as_echo_n "(cached) " >&6 19028else 19029 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 19030fi 19031 19032sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 19033 19034variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 19035if test "$GCC" = yes; then 19036 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 19037fi 19038 19039{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 19040$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 19041hardcode_action_GCJ= 19042if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 19043 test -n "$runpath_var_GCJ" || \ 19044 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 19045 19046 # We can hardcode non-existant directories. 19047 if test "$hardcode_direct_GCJ" != no && 19048 # If the only mechanism to avoid hardcoding is shlibpath_var, we 19049 # have to relink, otherwise we might link with an installed library 19050 # when we should be linking with a yet-to-be-installed one 19051 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 19052 test "$hardcode_minus_L_GCJ" != no; then 19053 # Linking always hardcodes the temporary library directory. 19054 hardcode_action_GCJ=relink 19055 else 19056 # We can link without hardcoding, and we can hardcode nonexisting dirs. 19057 hardcode_action_GCJ=immediate 19058 fi 19059else 19060 # We cannot hardcode anything, or else we can only hardcode existing 19061 # directories. 19062 hardcode_action_GCJ=unsupported 19063fi 19064{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 19065$as_echo "$hardcode_action_GCJ" >&6; } 19066 19067if test "$hardcode_action_GCJ" = relink; then 19068 # Fast installation is not supported 19069 enable_fast_install=no 19070elif test "$shlibpath_overrides_runpath" = yes || 19071 test "$enable_shared" = no; then 19072 # Fast installation is not necessary 19073 enable_fast_install=needless 19074fi 19075 19076 19077# The else clause should only fire when bootstrapping the 19078# libtool distribution, otherwise you forgot to ship ltmain.sh 19079# with your package, and you will get complaints that there are 19080# no rules to generate ltmain.sh. 19081if test -f "$ltmain"; then 19082 # See if we are running on zsh, and set the options which allow our commands through 19083 # without removal of \ escapes. 19084 if test -n "${ZSH_VERSION+set}" ; then 19085 setopt NO_GLOB_SUBST 19086 fi 19087 # Now quote all the things that may contain metacharacters while being 19088 # careful not to overquote the AC_SUBSTed values. We take copies of the 19089 # variables and quote the copies for generation of the libtool script. 19090 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19091 SED SHELL STRIP \ 19092 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19093 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19094 deplibs_check_method reload_flag reload_cmds need_locks \ 19095 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19096 lt_cv_sys_global_symbol_to_c_name_address \ 19097 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19098 old_postinstall_cmds old_postuninstall_cmds \ 19099 compiler_GCJ \ 19100 CC_GCJ \ 19101 LD_GCJ \ 19102 lt_prog_compiler_wl_GCJ \ 19103 lt_prog_compiler_pic_GCJ \ 19104 lt_prog_compiler_static_GCJ \ 19105 lt_prog_compiler_no_builtin_flag_GCJ \ 19106 export_dynamic_flag_spec_GCJ \ 19107 thread_safe_flag_spec_GCJ \ 19108 whole_archive_flag_spec_GCJ \ 19109 enable_shared_with_static_runtimes_GCJ \ 19110 old_archive_cmds_GCJ \ 19111 old_archive_from_new_cmds_GCJ \ 19112 predep_objects_GCJ \ 19113 postdep_objects_GCJ \ 19114 predeps_GCJ \ 19115 postdeps_GCJ \ 19116 compiler_lib_search_path_GCJ \ 19117 compiler_lib_search_dirs_GCJ \ 19118 archive_cmds_GCJ \ 19119 archive_expsym_cmds_GCJ \ 19120 postinstall_cmds_GCJ \ 19121 postuninstall_cmds_GCJ \ 19122 old_archive_from_expsyms_cmds_GCJ \ 19123 allow_undefined_flag_GCJ \ 19124 no_undefined_flag_GCJ \ 19125 export_symbols_cmds_GCJ \ 19126 hardcode_libdir_flag_spec_GCJ \ 19127 hardcode_libdir_flag_spec_ld_GCJ \ 19128 hardcode_libdir_separator_GCJ \ 19129 hardcode_automatic_GCJ \ 19130 module_cmds_GCJ \ 19131 module_expsym_cmds_GCJ \ 19132 lt_cv_prog_compiler_c_o_GCJ \ 19133 fix_srcfile_path_GCJ \ 19134 exclude_expsyms_GCJ \ 19135 include_expsyms_GCJ; do 19136 19137 case $var in 19138 old_archive_cmds_GCJ | \ 19139 old_archive_from_new_cmds_GCJ | \ 19140 archive_cmds_GCJ | \ 19141 archive_expsym_cmds_GCJ | \ 19142 module_cmds_GCJ | \ 19143 module_expsym_cmds_GCJ | \ 19144 old_archive_from_expsyms_cmds_GCJ | \ 19145 export_symbols_cmds_GCJ | \ 19146 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19147 postinstall_cmds | postuninstall_cmds | \ 19148 old_postinstall_cmds | old_postuninstall_cmds | \ 19149 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19150 # Double-quote double-evaled strings. 19151 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19152 ;; 19153 *) 19154 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19155 ;; 19156 esac 19157 done 19158 19159 case $lt_echo in 19160 *'\$0 --fallback-echo"') 19161 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19162 ;; 19163 esac 19164 19165cfgfile="$ofile" 19166 19167 cat <<__EOF__ >> "$cfgfile" 19168# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19169 19170# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19171 19172# Shell to use when invoking shell scripts. 19173SHELL=$lt_SHELL 19174 19175# Whether or not to build shared libraries. 19176build_libtool_libs=$enable_shared 19177 19178# Whether or not to build static libraries. 19179build_old_libs=$enable_static 19180 19181# Whether or not to add -lc for building shared libraries. 19182build_libtool_need_lc=$archive_cmds_need_lc_GCJ 19183 19184# Whether or not to disallow shared libs when runtime libs are static 19185allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 19186 19187# Whether or not to optimize for fast installation. 19188fast_install=$enable_fast_install 19189 19190# The host system. 19191host_alias=$host_alias 19192host=$host 19193host_os=$host_os 19194 19195# The build system. 19196build_alias=$build_alias 19197build=$build 19198build_os=$build_os 19199 19200# An echo program that does not interpret backslashes. 19201echo=$lt_echo 19202 19203# The archiver. 19204AR=$lt_AR 19205AR_FLAGS=$lt_AR_FLAGS 19206 19207# A C compiler. 19208LTCC=$lt_LTCC 19209 19210# LTCC compiler flags. 19211LTCFLAGS=$lt_LTCFLAGS 19212 19213# A language-specific compiler. 19214CC=$lt_compiler_GCJ 19215 19216# Is the compiler the GNU C compiler? 19217with_gcc=$GCC_GCJ 19218 19219# An ERE matcher. 19220EGREP=$lt_EGREP 19221 19222# The linker used to build libraries. 19223LD=$lt_LD_GCJ 19224 19225# Whether we need hard or soft links. 19226LN_S=$lt_LN_S 19227 19228# A BSD-compatible nm program. 19229NM=$lt_NM 19230 19231# A symbol stripping program 19232STRIP=$lt_STRIP 19233 19234# Used to examine libraries when file_magic_cmd begins "file" 19235MAGIC_CMD=$MAGIC_CMD 19236 19237# Used on cygwin: DLL creation program. 19238DLLTOOL="$DLLTOOL" 19239 19240# Used on cygwin: object dumper. 19241OBJDUMP="$OBJDUMP" 19242 19243# Used on cygwin: assembler. 19244AS="$AS" 19245 19246# The name of the directory that contains temporary libtool files. 19247objdir=$objdir 19248 19249# How to create reloadable object files. 19250reload_flag=$lt_reload_flag 19251reload_cmds=$lt_reload_cmds 19252 19253# How to pass a linker flag through the compiler. 19254wl=$lt_lt_prog_compiler_wl_GCJ 19255 19256# Object file suffix (normally "o"). 19257objext="$ac_objext" 19258 19259# Old archive suffix (normally "a"). 19260libext="$libext" 19261 19262# Shared library suffix (normally ".so"). 19263shrext_cmds='$shrext_cmds' 19264 19265# Executable file suffix (normally ""). 19266exeext="$exeext" 19267 19268# Additional compiler flags for building library objects. 19269pic_flag=$lt_lt_prog_compiler_pic_GCJ 19270pic_mode=$pic_mode 19271 19272# What is the maximum length of a command? 19273max_cmd_len=$lt_cv_sys_max_cmd_len 19274 19275# Does compiler simultaneously support -c and -o options? 19276compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 19277 19278# Must we lock files when doing compilation? 19279need_locks=$lt_need_locks 19280 19281# Do we need the lib prefix for modules? 19282need_lib_prefix=$need_lib_prefix 19283 19284# Do we need a version for libraries? 19285need_version=$need_version 19286 19287# Whether dlopen is supported. 19288dlopen_support=$enable_dlopen 19289 19290# Whether dlopen of programs is supported. 19291dlopen_self=$enable_dlopen_self 19292 19293# Whether dlopen of statically linked programs is supported. 19294dlopen_self_static=$enable_dlopen_self_static 19295 19296# Compiler flag to prevent dynamic linking. 19297link_static_flag=$lt_lt_prog_compiler_static_GCJ 19298 19299# Compiler flag to turn off builtin functions. 19300no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 19301 19302# Compiler flag to allow reflexive dlopens. 19303export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 19304 19305# Compiler flag to generate shared objects directly from archives. 19306whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 19307 19308# Compiler flag to generate thread-safe objects. 19309thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 19310 19311# Library versioning type. 19312version_type=$version_type 19313 19314# Format of library name prefix. 19315libname_spec=$lt_libname_spec 19316 19317# List of archive names. First name is the real one, the rest are links. 19318# The last name is the one that the linker finds with -lNAME. 19319library_names_spec=$lt_library_names_spec 19320 19321# The coded name of the library, if different from the real name. 19322soname_spec=$lt_soname_spec 19323 19324# Commands used to build and install an old-style archive. 19325RANLIB=$lt_RANLIB 19326old_archive_cmds=$lt_old_archive_cmds_GCJ 19327old_postinstall_cmds=$lt_old_postinstall_cmds 19328old_postuninstall_cmds=$lt_old_postuninstall_cmds 19329 19330# Create an old-style archive from a shared archive. 19331old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 19332 19333# Create a temporary old-style archive to link instead of a shared archive. 19334old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 19335 19336# Commands used to build and install a shared archive. 19337archive_cmds=$lt_archive_cmds_GCJ 19338archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 19339postinstall_cmds=$lt_postinstall_cmds 19340postuninstall_cmds=$lt_postuninstall_cmds 19341 19342# Commands used to build a loadable module (assumed same as above if empty) 19343module_cmds=$lt_module_cmds_GCJ 19344module_expsym_cmds=$lt_module_expsym_cmds_GCJ 19345 19346# Commands to strip libraries. 19347old_striplib=$lt_old_striplib 19348striplib=$lt_striplib 19349 19350# Dependencies to place before the objects being linked to create a 19351# shared library. 19352predep_objects=$lt_predep_objects_GCJ 19353 19354# Dependencies to place after the objects being linked to create a 19355# shared library. 19356postdep_objects=$lt_postdep_objects_GCJ 19357 19358# Dependencies to place before the objects being linked to create a 19359# shared library. 19360predeps=$lt_predeps_GCJ 19361 19362# Dependencies to place after the objects being linked to create a 19363# shared library. 19364postdeps=$lt_postdeps_GCJ 19365 19366# The directories searched by this compiler when creating a shared 19367# library 19368compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ 19369 19370# The library search path used internally by the compiler when linking 19371# a shared library. 19372compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 19373 19374# Method to check whether dependent libraries are shared objects. 19375deplibs_check_method=$lt_deplibs_check_method 19376 19377# Command to use when deplibs_check_method == file_magic. 19378file_magic_cmd=$lt_file_magic_cmd 19379 19380# Flag that allows shared libraries with undefined symbols to be built. 19381allow_undefined_flag=$lt_allow_undefined_flag_GCJ 19382 19383# Flag that forces no undefined symbols. 19384no_undefined_flag=$lt_no_undefined_flag_GCJ 19385 19386# Commands used to finish a libtool library installation in a directory. 19387finish_cmds=$lt_finish_cmds 19388 19389# Same as above, but a single script fragment to be evaled but not shown. 19390finish_eval=$lt_finish_eval 19391 19392# Take the output of nm and produce a listing of raw symbols and C names. 19393global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19394 19395# Transform the output of nm in a proper C declaration 19396global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19397 19398# Transform the output of nm in a C name address pair 19399global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19400 19401# This is the shared library runtime path variable. 19402runpath_var=$runpath_var 19403 19404# This is the shared library path variable. 19405shlibpath_var=$shlibpath_var 19406 19407# Is shlibpath searched before the hard-coded library search path? 19408shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19409 19410# How to hardcode a shared library path into an executable. 19411hardcode_action=$hardcode_action_GCJ 19412 19413# Whether we should hardcode library paths into libraries. 19414hardcode_into_libs=$hardcode_into_libs 19415 19416# Flag to hardcode \$libdir into a binary during linking. 19417# This must work even if \$libdir does not exist. 19418hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 19419 19420# If ld is used when linking, flag to hardcode \$libdir into 19421# a binary during linking. This must work even if \$libdir does 19422# not exist. 19423hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 19424 19425# Whether we need a single -rpath flag with a separated argument. 19426hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 19427 19428# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19429# resulting binary. 19430hardcode_direct=$hardcode_direct_GCJ 19431 19432# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19433# resulting binary. 19434hardcode_minus_L=$hardcode_minus_L_GCJ 19435 19436# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19437# the resulting binary. 19438hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 19439 19440# Set to yes if building a shared library automatically hardcodes DIR into the library 19441# and all subsequent libraries and executables linked against it. 19442hardcode_automatic=$hardcode_automatic_GCJ 19443 19444# Variables whose values should be saved in libtool wrapper scripts and 19445# restored at relink time. 19446variables_saved_for_relink="$variables_saved_for_relink" 19447 19448# Whether libtool must link a program against all its dependency libraries. 19449link_all_deplibs=$link_all_deplibs_GCJ 19450 19451# Compile-time system search path for libraries 19452sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19453 19454# Run-time system search path for libraries 19455sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19456 19457# Fix the shell variable \$srcfile for the compiler. 19458fix_srcfile_path=$lt_fix_srcfile_path 19459 19460# Set to yes if exported symbols are required. 19461always_export_symbols=$always_export_symbols_GCJ 19462 19463# The commands to list exported symbols. 19464export_symbols_cmds=$lt_export_symbols_cmds_GCJ 19465 19466# The commands to extract the exported symbol list from a shared archive. 19467extract_expsyms_cmds=$lt_extract_expsyms_cmds 19468 19469# Symbols that should not be listed in the preloaded symbols. 19470exclude_expsyms=$lt_exclude_expsyms_GCJ 19471 19472# Symbols that must always be exported. 19473include_expsyms=$lt_include_expsyms_GCJ 19474 19475# ### END LIBTOOL TAG CONFIG: $tagname 19476 19477__EOF__ 19478 19479 19480else 19481 # If there is no Makefile yet, we rely on a make rule to execute 19482 # `config.status --recheck' to rerun these tests and create the 19483 # libtool script then. 19484 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19485 if test -f "$ltmain_in"; then 19486 test -f Makefile && make "$ltmain" 19487 fi 19488fi 19489 19490 19491ac_ext=c 19492ac_cpp='$CPP $CPPFLAGS' 19493ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19494ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19495ac_compiler_gnu=$ac_cv_c_compiler_gnu 19496 19497CC="$lt_save_CC" 19498 19499 else 19500 tagname="" 19501 fi 19502 ;; 19503 19504 RC) 19505 19506 19507# Source file extension for RC test sources. 19508ac_ext=rc 19509 19510# Object file extension for compiled RC test sources. 19511objext=o 19512objext_RC=$objext 19513 19514# Code to be used in simple compile tests 19515lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 19516 19517# Code to be used in simple link tests 19518lt_simple_link_test_code="$lt_simple_compile_test_code" 19519 19520# ltmain only uses $CC for tagged configurations so make sure $CC is set. 19521 19522# If no C compiler was specified, use CC. 19523LTCC=${LTCC-"$CC"} 19524 19525# If no C compiler flags were specified, use CFLAGS. 19526LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 19527 19528# Allow CC to be a program name with arguments. 19529compiler=$CC 19530 19531 19532# save warnings/boilerplate of simple test code 19533ac_outfile=conftest.$ac_objext 19534echo "$lt_simple_compile_test_code" >conftest.$ac_ext 19535eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19536_lt_compiler_boilerplate=`cat conftest.err` 19537$rm conftest* 19538 19539ac_outfile=conftest.$ac_objext 19540echo "$lt_simple_link_test_code" >conftest.$ac_ext 19541eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19542_lt_linker_boilerplate=`cat conftest.err` 19543$rm -r conftest* 19544 19545 19546# Allow CC to be a program name with arguments. 19547lt_save_CC="$CC" 19548CC=${RC-"windres"} 19549compiler=$CC 19550compiler_RC=$CC 19551for cc_temp in $compiler""; do 19552 case $cc_temp in 19553 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19554 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19555 \-*) ;; 19556 *) break;; 19557 esac 19558done 19559cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 19560 19561lt_cv_prog_compiler_c_o_RC=yes 19562 19563# The else clause should only fire when bootstrapping the 19564# libtool distribution, otherwise you forgot to ship ltmain.sh 19565# with your package, and you will get complaints that there are 19566# no rules to generate ltmain.sh. 19567if test -f "$ltmain"; then 19568 # See if we are running on zsh, and set the options which allow our commands through 19569 # without removal of \ escapes. 19570 if test -n "${ZSH_VERSION+set}" ; then 19571 setopt NO_GLOB_SUBST 19572 fi 19573 # Now quote all the things that may contain metacharacters while being 19574 # careful not to overquote the AC_SUBSTed values. We take copies of the 19575 # variables and quote the copies for generation of the libtool script. 19576 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19577 SED SHELL STRIP \ 19578 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19579 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19580 deplibs_check_method reload_flag reload_cmds need_locks \ 19581 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19582 lt_cv_sys_global_symbol_to_c_name_address \ 19583 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19584 old_postinstall_cmds old_postuninstall_cmds \ 19585 compiler_RC \ 19586 CC_RC \ 19587 LD_RC \ 19588 lt_prog_compiler_wl_RC \ 19589 lt_prog_compiler_pic_RC \ 19590 lt_prog_compiler_static_RC \ 19591 lt_prog_compiler_no_builtin_flag_RC \ 19592 export_dynamic_flag_spec_RC \ 19593 thread_safe_flag_spec_RC \ 19594 whole_archive_flag_spec_RC \ 19595 enable_shared_with_static_runtimes_RC \ 19596 old_archive_cmds_RC \ 19597 old_archive_from_new_cmds_RC \ 19598 predep_objects_RC \ 19599 postdep_objects_RC \ 19600 predeps_RC \ 19601 postdeps_RC \ 19602 compiler_lib_search_path_RC \ 19603 compiler_lib_search_dirs_RC \ 19604 archive_cmds_RC \ 19605 archive_expsym_cmds_RC \ 19606 postinstall_cmds_RC \ 19607 postuninstall_cmds_RC \ 19608 old_archive_from_expsyms_cmds_RC \ 19609 allow_undefined_flag_RC \ 19610 no_undefined_flag_RC \ 19611 export_symbols_cmds_RC \ 19612 hardcode_libdir_flag_spec_RC \ 19613 hardcode_libdir_flag_spec_ld_RC \ 19614 hardcode_libdir_separator_RC \ 19615 hardcode_automatic_RC \ 19616 module_cmds_RC \ 19617 module_expsym_cmds_RC \ 19618 lt_cv_prog_compiler_c_o_RC \ 19619 fix_srcfile_path_RC \ 19620 exclude_expsyms_RC \ 19621 include_expsyms_RC; do 19622 19623 case $var in 19624 old_archive_cmds_RC | \ 19625 old_archive_from_new_cmds_RC | \ 19626 archive_cmds_RC | \ 19627 archive_expsym_cmds_RC | \ 19628 module_cmds_RC | \ 19629 module_expsym_cmds_RC | \ 19630 old_archive_from_expsyms_cmds_RC | \ 19631 export_symbols_cmds_RC | \ 19632 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19633 postinstall_cmds | postuninstall_cmds | \ 19634 old_postinstall_cmds | old_postuninstall_cmds | \ 19635 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19636 # Double-quote double-evaled strings. 19637 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19638 ;; 19639 *) 19640 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19641 ;; 19642 esac 19643 done 19644 19645 case $lt_echo in 19646 *'\$0 --fallback-echo"') 19647 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19648 ;; 19649 esac 19650 19651cfgfile="$ofile" 19652 19653 cat <<__EOF__ >> "$cfgfile" 19654# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19655 19656# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19657 19658# Shell to use when invoking shell scripts. 19659SHELL=$lt_SHELL 19660 19661# Whether or not to build shared libraries. 19662build_libtool_libs=$enable_shared 19663 19664# Whether or not to build static libraries. 19665build_old_libs=$enable_static 19666 19667# Whether or not to add -lc for building shared libraries. 19668build_libtool_need_lc=$archive_cmds_need_lc_RC 19669 19670# Whether or not to disallow shared libs when runtime libs are static 19671allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19672 19673# Whether or not to optimize for fast installation. 19674fast_install=$enable_fast_install 19675 19676# The host system. 19677host_alias=$host_alias 19678host=$host 19679host_os=$host_os 19680 19681# The build system. 19682build_alias=$build_alias 19683build=$build 19684build_os=$build_os 19685 19686# An echo program that does not interpret backslashes. 19687echo=$lt_echo 19688 19689# The archiver. 19690AR=$lt_AR 19691AR_FLAGS=$lt_AR_FLAGS 19692 19693# A C compiler. 19694LTCC=$lt_LTCC 19695 19696# LTCC compiler flags. 19697LTCFLAGS=$lt_LTCFLAGS 19698 19699# A language-specific compiler. 19700CC=$lt_compiler_RC 19701 19702# Is the compiler the GNU C compiler? 19703with_gcc=$GCC_RC 19704 19705# An ERE matcher. 19706EGREP=$lt_EGREP 19707 19708# The linker used to build libraries. 19709LD=$lt_LD_RC 19710 19711# Whether we need hard or soft links. 19712LN_S=$lt_LN_S 19713 19714# A BSD-compatible nm program. 19715NM=$lt_NM 19716 19717# A symbol stripping program 19718STRIP=$lt_STRIP 19719 19720# Used to examine libraries when file_magic_cmd begins "file" 19721MAGIC_CMD=$MAGIC_CMD 19722 19723# Used on cygwin: DLL creation program. 19724DLLTOOL="$DLLTOOL" 19725 19726# Used on cygwin: object dumper. 19727OBJDUMP="$OBJDUMP" 19728 19729# Used on cygwin: assembler. 19730AS="$AS" 19731 19732# The name of the directory that contains temporary libtool files. 19733objdir=$objdir 19734 19735# How to create reloadable object files. 19736reload_flag=$lt_reload_flag 19737reload_cmds=$lt_reload_cmds 19738 19739# How to pass a linker flag through the compiler. 19740wl=$lt_lt_prog_compiler_wl_RC 19741 19742# Object file suffix (normally "o"). 19743objext="$ac_objext" 19744 19745# Old archive suffix (normally "a"). 19746libext="$libext" 19747 19748# Shared library suffix (normally ".so"). 19749shrext_cmds='$shrext_cmds' 19750 19751# Executable file suffix (normally ""). 19752exeext="$exeext" 19753 19754# Additional compiler flags for building library objects. 19755pic_flag=$lt_lt_prog_compiler_pic_RC 19756pic_mode=$pic_mode 19757 19758# What is the maximum length of a command? 19759max_cmd_len=$lt_cv_sys_max_cmd_len 19760 19761# Does compiler simultaneously support -c and -o options? 19762compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19763 19764# Must we lock files when doing compilation? 19765need_locks=$lt_need_locks 19766 19767# Do we need the lib prefix for modules? 19768need_lib_prefix=$need_lib_prefix 19769 19770# Do we need a version for libraries? 19771need_version=$need_version 19772 19773# Whether dlopen is supported. 19774dlopen_support=$enable_dlopen 19775 19776# Whether dlopen of programs is supported. 19777dlopen_self=$enable_dlopen_self 19778 19779# Whether dlopen of statically linked programs is supported. 19780dlopen_self_static=$enable_dlopen_self_static 19781 19782# Compiler flag to prevent dynamic linking. 19783link_static_flag=$lt_lt_prog_compiler_static_RC 19784 19785# Compiler flag to turn off builtin functions. 19786no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19787 19788# Compiler flag to allow reflexive dlopens. 19789export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19790 19791# Compiler flag to generate shared objects directly from archives. 19792whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19793 19794# Compiler flag to generate thread-safe objects. 19795thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19796 19797# Library versioning type. 19798version_type=$version_type 19799 19800# Format of library name prefix. 19801libname_spec=$lt_libname_spec 19802 19803# List of archive names. First name is the real one, the rest are links. 19804# The last name is the one that the linker finds with -lNAME. 19805library_names_spec=$lt_library_names_spec 19806 19807# The coded name of the library, if different from the real name. 19808soname_spec=$lt_soname_spec 19809 19810# Commands used to build and install an old-style archive. 19811RANLIB=$lt_RANLIB 19812old_archive_cmds=$lt_old_archive_cmds_RC 19813old_postinstall_cmds=$lt_old_postinstall_cmds 19814old_postuninstall_cmds=$lt_old_postuninstall_cmds 19815 19816# Create an old-style archive from a shared archive. 19817old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19818 19819# Create a temporary old-style archive to link instead of a shared archive. 19820old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19821 19822# Commands used to build and install a shared archive. 19823archive_cmds=$lt_archive_cmds_RC 19824archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19825postinstall_cmds=$lt_postinstall_cmds 19826postuninstall_cmds=$lt_postuninstall_cmds 19827 19828# Commands used to build a loadable module (assumed same as above if empty) 19829module_cmds=$lt_module_cmds_RC 19830module_expsym_cmds=$lt_module_expsym_cmds_RC 19831 19832# Commands to strip libraries. 19833old_striplib=$lt_old_striplib 19834striplib=$lt_striplib 19835 19836# Dependencies to place before the objects being linked to create a 19837# shared library. 19838predep_objects=$lt_predep_objects_RC 19839 19840# Dependencies to place after the objects being linked to create a 19841# shared library. 19842postdep_objects=$lt_postdep_objects_RC 19843 19844# Dependencies to place before the objects being linked to create a 19845# shared library. 19846predeps=$lt_predeps_RC 19847 19848# Dependencies to place after the objects being linked to create a 19849# shared library. 19850postdeps=$lt_postdeps_RC 19851 19852# The directories searched by this compiler when creating a shared 19853# library 19854compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC 19855 19856# The library search path used internally by the compiler when linking 19857# a shared library. 19858compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19859 19860# Method to check whether dependent libraries are shared objects. 19861deplibs_check_method=$lt_deplibs_check_method 19862 19863# Command to use when deplibs_check_method == file_magic. 19864file_magic_cmd=$lt_file_magic_cmd 19865 19866# Flag that allows shared libraries with undefined symbols to be built. 19867allow_undefined_flag=$lt_allow_undefined_flag_RC 19868 19869# Flag that forces no undefined symbols. 19870no_undefined_flag=$lt_no_undefined_flag_RC 19871 19872# Commands used to finish a libtool library installation in a directory. 19873finish_cmds=$lt_finish_cmds 19874 19875# Same as above, but a single script fragment to be evaled but not shown. 19876finish_eval=$lt_finish_eval 19877 19878# Take the output of nm and produce a listing of raw symbols and C names. 19879global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19880 19881# Transform the output of nm in a proper C declaration 19882global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19883 19884# Transform the output of nm in a C name address pair 19885global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19886 19887# This is the shared library runtime path variable. 19888runpath_var=$runpath_var 19889 19890# This is the shared library path variable. 19891shlibpath_var=$shlibpath_var 19892 19893# Is shlibpath searched before the hard-coded library search path? 19894shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19895 19896# How to hardcode a shared library path into an executable. 19897hardcode_action=$hardcode_action_RC 19898 19899# Whether we should hardcode library paths into libraries. 19900hardcode_into_libs=$hardcode_into_libs 19901 19902# Flag to hardcode \$libdir into a binary during linking. 19903# This must work even if \$libdir does not exist. 19904hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19905 19906# If ld is used when linking, flag to hardcode \$libdir into 19907# a binary during linking. This must work even if \$libdir does 19908# not exist. 19909hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19910 19911# Whether we need a single -rpath flag with a separated argument. 19912hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19913 19914# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19915# resulting binary. 19916hardcode_direct=$hardcode_direct_RC 19917 19918# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19919# resulting binary. 19920hardcode_minus_L=$hardcode_minus_L_RC 19921 19922# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19923# the resulting binary. 19924hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19925 19926# Set to yes if building a shared library automatically hardcodes DIR into the library 19927# and all subsequent libraries and executables linked against it. 19928hardcode_automatic=$hardcode_automatic_RC 19929 19930# Variables whose values should be saved in libtool wrapper scripts and 19931# restored at relink time. 19932variables_saved_for_relink="$variables_saved_for_relink" 19933 19934# Whether libtool must link a program against all its dependency libraries. 19935link_all_deplibs=$link_all_deplibs_RC 19936 19937# Compile-time system search path for libraries 19938sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19939 19940# Run-time system search path for libraries 19941sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19942 19943# Fix the shell variable \$srcfile for the compiler. 19944fix_srcfile_path=$lt_fix_srcfile_path 19945 19946# Set to yes if exported symbols are required. 19947always_export_symbols=$always_export_symbols_RC 19948 19949# The commands to list exported symbols. 19950export_symbols_cmds=$lt_export_symbols_cmds_RC 19951 19952# The commands to extract the exported symbol list from a shared archive. 19953extract_expsyms_cmds=$lt_extract_expsyms_cmds 19954 19955# Symbols that should not be listed in the preloaded symbols. 19956exclude_expsyms=$lt_exclude_expsyms_RC 19957 19958# Symbols that must always be exported. 19959include_expsyms=$lt_include_expsyms_RC 19960 19961# ### END LIBTOOL TAG CONFIG: $tagname 19962 19963__EOF__ 19964 19965 19966else 19967 # If there is no Makefile yet, we rely on a make rule to execute 19968 # `config.status --recheck' to rerun these tests and create the 19969 # libtool script then. 19970 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19971 if test -f "$ltmain_in"; then 19972 test -f Makefile && make "$ltmain" 19973 fi 19974fi 19975 19976 19977ac_ext=c 19978ac_cpp='$CPP $CPPFLAGS' 19979ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19980ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19981ac_compiler_gnu=$ac_cv_c_compiler_gnu 19982 19983CC="$lt_save_CC" 19984 19985 ;; 19986 19987 *) 19988 { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19989$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19990 { (exit 1); exit 1; }; } 19991 ;; 19992 esac 19993 19994 # Append the new tag name to the list of available tags. 19995 if test -n "$tagname" ; then 19996 available_tags="$available_tags $tagname" 19997 fi 19998 fi 19999 done 20000 IFS="$lt_save_ifs" 20001 20002 # Now substitute the updated list of available tags. 20003 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 20004 mv "${ofile}T" "$ofile" 20005 chmod +x "$ofile" 20006 else 20007 rm -f "${ofile}T" 20008 { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 20009$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 20010 { (exit 1); exit 1; }; } 20011 fi 20012fi 20013 20014 20015 20016# This can be used to rebuild libtool when needed 20017LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 20018 20019# Always use our own libtool. 20020LIBTOOL='$(SHELL) $(top_builddir)/libtool' 20021 20022# Prevent multiple expansion 20023 20024 20025 20026 20027 20028 20029 20030 20031 20032 20033 20034 20035 20036 20037 20038 20039 20040 20041 20042 20043 20044 20045if test "x$GCC" = xyes ; then 20046 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 20047-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 20048-Wbad-function-cast" 20049 case `$CC -dumpversion` in 20050 3.4.* | 4.*) 20051 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement" 20052 ;; 20053 esac 20054else 20055 { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5 20056$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; } 20057if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then 20058 $as_echo_n "(cached) " >&6 20059else 20060 cat >conftest.$ac_ext <<_ACEOF 20061/* confdefs.h. */ 20062_ACEOF 20063cat confdefs.h >>conftest.$ac_ext 20064cat >>conftest.$ac_ext <<_ACEOF 20065/* end confdefs.h. */ 20066$ac_includes_default 20067int 20068main () 20069{ 20070#ifndef __SUNPRO_C 20071 (void) __SUNPRO_C; 20072#endif 20073 20074 ; 20075 return 0; 20076} 20077_ACEOF 20078rm -f conftest.$ac_objext 20079if { (ac_try="$ac_compile" 20080case "(($ac_try" in 20081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20082 *) ac_try_echo=$ac_try;; 20083esac 20084eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20085$as_echo "$ac_try_echo") >&5 20086 (eval "$ac_compile") 2>conftest.er1 20087 ac_status=$? 20088 grep -v '^ *+' conftest.er1 >conftest.err 20089 rm -f conftest.er1 20090 cat conftest.err >&5 20091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20092 (exit $ac_status); } && { 20093 test -z "$ac_c_werror_flag" || 20094 test ! -s conftest.err 20095 } && test -s conftest.$ac_objext; then 20096 ac_cv_have_decl___SUNPRO_C=yes 20097else 20098 $as_echo "$as_me: failed program was:" >&5 20099sed 's/^/| /' conftest.$ac_ext >&5 20100 20101 ac_cv_have_decl___SUNPRO_C=no 20102fi 20103 20104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20105fi 20106{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5 20107$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; } 20108if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then 20109 SUNCC="yes" 20110else 20111 SUNCC="no" 20112fi 20113 20114 if test "x$SUNCC" = "xyes"; then 20115 CWARNFLAGS="-v" 20116 fi 20117fi 20118 20119# Check whether --enable-silent-rules was given. 20120if test "${enable_silent_rules+set}" = set; then 20121 enableval=$enable_silent_rules; 20122fi 20123 20124case $enable_silent_rules in 20125yes) AM_DEFAULT_VERBOSITY=0;; 20126no) AM_DEFAULT_VERBOSITY=1;; 20127*) AM_DEFAULT_VERBOSITY=0;; 20128esac 20129AM_BACKSLASH='\' 20130 20131 20132 20133pciids_path=/usr/share/hwdata 20134 20135# Check whether --with-pciids-path was given. 20136if test "${with_pciids_path+set}" = set; then 20137 withval=$with_pciids_path; pciids_path="$withval" 20138fi 20139 20140 20141 prefix_NONE= 20142 exec_prefix_NONE= 20143 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 20144 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 20145 eval ac_define_dir="\"$pciids_path\"" 20146 eval ac_define_dir="\"$ac_define_dir\"" 20147 PCIIDS_PATH="$ac_define_dir" 20148 20149 20150cat >>confdefs.h <<_ACEOF 20151#define PCIIDS_PATH "$ac_define_dir" 20152_ACEOF 20153 20154 test "$prefix_NONE" && prefix=NONE 20155 test "$exec_prefix_NONE" && exec_prefix=NONE 20156 20157 20158# Check whether --enable-linux-rom-fallback was given. 20159if test "${enable_linux_rom_fallback+set}" = set; then 20160 enableval=$enable_linux_rom_fallback; LINUX_ROM=$enableval 20161else 20162 LINUX_ROM=no 20163fi 20164 20165 20166if test "x$LINUX_ROM" = xyes; then 20167 20168cat >>confdefs.h <<\_ACEOF 20169#define LINUX_ROM 1 20170_ACEOF 20171 20172fi 20173 20174use_zlib=no 20175 20176# Check whether --with-zlib was given. 20177if test "${with_zlib+set}" = set; then 20178 withval=$with_zlib; use_zlib="$withval" 20179fi 20180 20181if test "x$use_zlib" = xyes; then 20182 { $as_echo "$as_me:$LINENO: checking for gzopen in -lz" >&5 20183$as_echo_n "checking for gzopen in -lz... " >&6; } 20184if test "${ac_cv_lib_z_gzopen+set}" = set; then 20185 $as_echo_n "(cached) " >&6 20186else 20187 ac_check_lib_save_LIBS=$LIBS 20188LIBS="-lz $LIBS" 20189cat >conftest.$ac_ext <<_ACEOF 20190/* confdefs.h. */ 20191_ACEOF 20192cat confdefs.h >>conftest.$ac_ext 20193cat >>conftest.$ac_ext <<_ACEOF 20194/* end confdefs.h. */ 20195 20196/* Override any GCC internal prototype to avoid an error. 20197 Use char because int might match the return type of a GCC 20198 builtin and then its argument prototype would still apply. */ 20199#ifdef __cplusplus 20200extern "C" 20201#endif 20202char gzopen (); 20203int 20204main () 20205{ 20206return gzopen (); 20207 ; 20208 return 0; 20209} 20210_ACEOF 20211rm -f conftest.$ac_objext conftest$ac_exeext 20212if { (ac_try="$ac_link" 20213case "(($ac_try" in 20214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20215 *) ac_try_echo=$ac_try;; 20216esac 20217eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20218$as_echo "$ac_try_echo") >&5 20219 (eval "$ac_link") 2>conftest.er1 20220 ac_status=$? 20221 grep -v '^ *+' conftest.er1 >conftest.err 20222 rm -f conftest.er1 20223 cat conftest.err >&5 20224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20225 (exit $ac_status); } && { 20226 test -z "$ac_c_werror_flag" || 20227 test ! -s conftest.err 20228 } && test -s conftest$ac_exeext && { 20229 test "$cross_compiling" = yes || 20230 $as_test_x conftest$ac_exeext 20231 }; then 20232 ac_cv_lib_z_gzopen=yes 20233else 20234 $as_echo "$as_me: failed program was:" >&5 20235sed 's/^/| /' conftest.$ac_ext >&5 20236 20237 ac_cv_lib_z_gzopen=no 20238fi 20239 20240rm -rf conftest.dSYM 20241rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20242 conftest$ac_exeext conftest.$ac_ext 20243LIBS=$ac_check_lib_save_LIBS 20244fi 20245{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5 20246$as_echo "$ac_cv_lib_z_gzopen" >&6; } 20247if test "x$ac_cv_lib_z_gzopen" = x""yes; then 20248 PCIACCESS_LIBS="$PCIACCESS_LIBS -lz" 20249else 20250 { { $as_echo "$as_me:$LINENO: error: Check for zlib library failed" >&5 20251$as_echo "$as_me: error: Check for zlib library failed" >&2;} 20252 { (exit 1); exit 1; }; } 20253fi 20254 20255 if test "${ac_cv_header_zlib_h+set}" = set; then 20256 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5 20257$as_echo_n "checking for zlib.h... " >&6; } 20258if test "${ac_cv_header_zlib_h+set}" = set; then 20259 $as_echo_n "(cached) " >&6 20260fi 20261{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 20262$as_echo "$ac_cv_header_zlib_h" >&6; } 20263else 20264 # Is the header compilable? 20265{ $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5 20266$as_echo_n "checking zlib.h usability... " >&6; } 20267cat >conftest.$ac_ext <<_ACEOF 20268/* confdefs.h. */ 20269_ACEOF 20270cat confdefs.h >>conftest.$ac_ext 20271cat >>conftest.$ac_ext <<_ACEOF 20272/* end confdefs.h. */ 20273$ac_includes_default 20274#include <zlib.h> 20275_ACEOF 20276rm -f conftest.$ac_objext 20277if { (ac_try="$ac_compile" 20278case "(($ac_try" in 20279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20280 *) ac_try_echo=$ac_try;; 20281esac 20282eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20283$as_echo "$ac_try_echo") >&5 20284 (eval "$ac_compile") 2>conftest.er1 20285 ac_status=$? 20286 grep -v '^ *+' conftest.er1 >conftest.err 20287 rm -f conftest.er1 20288 cat conftest.err >&5 20289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20290 (exit $ac_status); } && { 20291 test -z "$ac_c_werror_flag" || 20292 test ! -s conftest.err 20293 } && test -s conftest.$ac_objext; then 20294 ac_header_compiler=yes 20295else 20296 $as_echo "$as_me: failed program was:" >&5 20297sed 's/^/| /' conftest.$ac_ext >&5 20298 20299 ac_header_compiler=no 20300fi 20301 20302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20303{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20304$as_echo "$ac_header_compiler" >&6; } 20305 20306# Is the header present? 20307{ $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5 20308$as_echo_n "checking zlib.h presence... " >&6; } 20309cat >conftest.$ac_ext <<_ACEOF 20310/* confdefs.h. */ 20311_ACEOF 20312cat confdefs.h >>conftest.$ac_ext 20313cat >>conftest.$ac_ext <<_ACEOF 20314/* end confdefs.h. */ 20315#include <zlib.h> 20316_ACEOF 20317if { (ac_try="$ac_cpp conftest.$ac_ext" 20318case "(($ac_try" in 20319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20320 *) ac_try_echo=$ac_try;; 20321esac 20322eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20323$as_echo "$ac_try_echo") >&5 20324 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 20325 ac_status=$? 20326 grep -v '^ *+' conftest.er1 >conftest.err 20327 rm -f conftest.er1 20328 cat conftest.err >&5 20329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20330 (exit $ac_status); } >/dev/null && { 20331 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 20332 test ! -s conftest.err 20333 }; then 20334 ac_header_preproc=yes 20335else 20336 $as_echo "$as_me: failed program was:" >&5 20337sed 's/^/| /' conftest.$ac_ext >&5 20338 20339 ac_header_preproc=no 20340fi 20341 20342rm -f conftest.err conftest.$ac_ext 20343{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20344$as_echo "$ac_header_preproc" >&6; } 20345 20346# So? What about this header? 20347case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20348 yes:no: ) 20349 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 20350$as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 20351 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 20352$as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} 20353 ac_header_preproc=yes 20354 ;; 20355 no:yes:* ) 20356 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 20357$as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} 20358 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 20359$as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} 20360 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 20361$as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} 20362 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 20363$as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} 20364 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 20365$as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} 20366 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 20367$as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} 20368 ( cat <<\_ASBOX 20369## --------------------------------------------------------------------------------------------- ## 20370## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=libpciaccess ## 20371## --------------------------------------------------------------------------------------------- ## 20372_ASBOX 20373 ) | sed "s/^/$as_me: WARNING: /" >&2 20374 ;; 20375esac 20376{ $as_echo "$as_me:$LINENO: checking for zlib.h" >&5 20377$as_echo_n "checking for zlib.h... " >&6; } 20378if test "${ac_cv_header_zlib_h+set}" = set; then 20379 $as_echo_n "(cached) " >&6 20380else 20381 ac_cv_header_zlib_h=$ac_header_preproc 20382fi 20383{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 20384$as_echo "$ac_cv_header_zlib_h" >&6; } 20385 20386fi 20387if test "x$ac_cv_header_zlib_h" = x""yes; then 20388 20389cat >>confdefs.h <<\_ACEOF 20390#define HAVE_ZLIB 1 20391_ACEOF 20392 20393else 20394 { { $as_echo "$as_me:$LINENO: error: Check for zlib.h header file failed" >&5 20395$as_echo "$as_me: error: Check for zlib.h header file failed" >&2;} 20396 { (exit 1); exit 1; }; } 20397fi 20398 20399 20400fi 20401 20402case $host_os in 20403 *freebsd* | *dragonfly*) 20404 freebsd=yes 20405 ;; 20406 *linux*) 20407 linux=yes 20408 ;; 20409 *netbsd*) 20410 case $host in 20411 *i386*) 20412 PCIACCESS_LIBS="-li386" 20413 ;; 20414 *x86_64*|*amd64*) 20415 PCIACCESS_LIBS="-lx86_64" 20416 ;; 20417 esac 20418 netbsd=yes 20419 ;; 20420 *openbsd*) 20421 openbsd=yes 20422 ;; 20423 *solaris*) 20424 solaris=yes 20425 PCIACCESS_LIBS="$PCIACCESS_LIBS -ldevinfo" 20426 ;; 20427esac 20428 20429 if test "x$linux" = xyes; then 20430 LINUX_TRUE= 20431 LINUX_FALSE='#' 20432else 20433 LINUX_TRUE='#' 20434 LINUX_FALSE= 20435fi 20436 20437 if test "x$freebsd" = xyes; then 20438 FREEBSD_TRUE= 20439 FREEBSD_FALSE='#' 20440else 20441 FREEBSD_TRUE='#' 20442 FREEBSD_FALSE= 20443fi 20444 20445 if test "x$netbsd" = xyes; then 20446 NETBSD_TRUE= 20447 NETBSD_FALSE='#' 20448else 20449 NETBSD_TRUE='#' 20450 NETBSD_FALSE= 20451fi 20452 20453 if test "x$openbsd" = xyes; then 20454 OPENBSD_TRUE= 20455 OPENBSD_FALSE='#' 20456else 20457 OPENBSD_TRUE='#' 20458 OPENBSD_FALSE= 20459fi 20460 20461 if test "x$solaris" = xyes; then 20462 SOLARIS_TRUE= 20463 SOLARIS_FALSE='#' 20464else 20465 SOLARIS_TRUE='#' 20466 SOLARIS_FALSE= 20467fi 20468 20469 20470# Check whether --enable-largefile was given. 20471if test "${enable_largefile+set}" = set; then 20472 enableval=$enable_largefile; 20473fi 20474 20475if test "$enable_largefile" != no; then 20476 20477 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 20478$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 20479if test "${ac_cv_sys_largefile_CC+set}" = set; then 20480 $as_echo_n "(cached) " >&6 20481else 20482 ac_cv_sys_largefile_CC=no 20483 if test "$GCC" != yes; then 20484 ac_save_CC=$CC 20485 while :; do 20486 # IRIX 6.2 and later do not support large files by default, 20487 # so use the C compiler's -n32 option if that helps. 20488 cat >conftest.$ac_ext <<_ACEOF 20489/* confdefs.h. */ 20490_ACEOF 20491cat confdefs.h >>conftest.$ac_ext 20492cat >>conftest.$ac_ext <<_ACEOF 20493/* end confdefs.h. */ 20494#include <sys/types.h> 20495 /* Check that off_t can represent 2**63 - 1 correctly. 20496 We can't simply define LARGE_OFF_T to be 9223372036854775807, 20497 since some C++ compilers masquerading as C compilers 20498 incorrectly reject 9223372036854775807. */ 20499#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 20500 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 20501 && LARGE_OFF_T % 2147483647 == 1) 20502 ? 1 : -1]; 20503int 20504main () 20505{ 20506 20507 ; 20508 return 0; 20509} 20510_ACEOF 20511 rm -f conftest.$ac_objext 20512if { (ac_try="$ac_compile" 20513case "(($ac_try" in 20514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20515 *) ac_try_echo=$ac_try;; 20516esac 20517eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20518$as_echo "$ac_try_echo") >&5 20519 (eval "$ac_compile") 2>conftest.er1 20520 ac_status=$? 20521 grep -v '^ *+' conftest.er1 >conftest.err 20522 rm -f conftest.er1 20523 cat conftest.err >&5 20524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20525 (exit $ac_status); } && { 20526 test -z "$ac_c_werror_flag" || 20527 test ! -s conftest.err 20528 } && test -s conftest.$ac_objext; then 20529 break 20530else 20531 $as_echo "$as_me: failed program was:" >&5 20532sed 's/^/| /' conftest.$ac_ext >&5 20533 20534 20535fi 20536 20537rm -f core conftest.err conftest.$ac_objext 20538 CC="$CC -n32" 20539 rm -f conftest.$ac_objext 20540if { (ac_try="$ac_compile" 20541case "(($ac_try" in 20542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20543 *) ac_try_echo=$ac_try;; 20544esac 20545eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20546$as_echo "$ac_try_echo") >&5 20547 (eval "$ac_compile") 2>conftest.er1 20548 ac_status=$? 20549 grep -v '^ *+' conftest.er1 >conftest.err 20550 rm -f conftest.er1 20551 cat conftest.err >&5 20552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20553 (exit $ac_status); } && { 20554 test -z "$ac_c_werror_flag" || 20555 test ! -s conftest.err 20556 } && test -s conftest.$ac_objext; then 20557 ac_cv_sys_largefile_CC=' -n32'; break 20558else 20559 $as_echo "$as_me: failed program was:" >&5 20560sed 's/^/| /' conftest.$ac_ext >&5 20561 20562 20563fi 20564 20565rm -f core conftest.err conftest.$ac_objext 20566 break 20567 done 20568 CC=$ac_save_CC 20569 rm -f conftest.$ac_ext 20570 fi 20571fi 20572{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 20573$as_echo "$ac_cv_sys_largefile_CC" >&6; } 20574 if test "$ac_cv_sys_largefile_CC" != no; then 20575 CC=$CC$ac_cv_sys_largefile_CC 20576 fi 20577 20578 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 20579$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 20580if test "${ac_cv_sys_file_offset_bits+set}" = set; then 20581 $as_echo_n "(cached) " >&6 20582else 20583 while :; do 20584 cat >conftest.$ac_ext <<_ACEOF 20585/* confdefs.h. */ 20586_ACEOF 20587cat confdefs.h >>conftest.$ac_ext 20588cat >>conftest.$ac_ext <<_ACEOF 20589/* end confdefs.h. */ 20590#include <sys/types.h> 20591 /* Check that off_t can represent 2**63 - 1 correctly. 20592 We can't simply define LARGE_OFF_T to be 9223372036854775807, 20593 since some C++ compilers masquerading as C compilers 20594 incorrectly reject 9223372036854775807. */ 20595#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 20596 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 20597 && LARGE_OFF_T % 2147483647 == 1) 20598 ? 1 : -1]; 20599int 20600main () 20601{ 20602 20603 ; 20604 return 0; 20605} 20606_ACEOF 20607rm -f conftest.$ac_objext 20608if { (ac_try="$ac_compile" 20609case "(($ac_try" in 20610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20611 *) ac_try_echo=$ac_try;; 20612esac 20613eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20614$as_echo "$ac_try_echo") >&5 20615 (eval "$ac_compile") 2>conftest.er1 20616 ac_status=$? 20617 grep -v '^ *+' conftest.er1 >conftest.err 20618 rm -f conftest.er1 20619 cat conftest.err >&5 20620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20621 (exit $ac_status); } && { 20622 test -z "$ac_c_werror_flag" || 20623 test ! -s conftest.err 20624 } && test -s conftest.$ac_objext; then 20625 ac_cv_sys_file_offset_bits=no; break 20626else 20627 $as_echo "$as_me: failed program was:" >&5 20628sed 's/^/| /' conftest.$ac_ext >&5 20629 20630 20631fi 20632 20633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20634 cat >conftest.$ac_ext <<_ACEOF 20635/* confdefs.h. */ 20636_ACEOF 20637cat confdefs.h >>conftest.$ac_ext 20638cat >>conftest.$ac_ext <<_ACEOF 20639/* end confdefs.h. */ 20640#define _FILE_OFFSET_BITS 64 20641#include <sys/types.h> 20642 /* Check that off_t can represent 2**63 - 1 correctly. 20643 We can't simply define LARGE_OFF_T to be 9223372036854775807, 20644 since some C++ compilers masquerading as C compilers 20645 incorrectly reject 9223372036854775807. */ 20646#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 20647 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 20648 && LARGE_OFF_T % 2147483647 == 1) 20649 ? 1 : -1]; 20650int 20651main () 20652{ 20653 20654 ; 20655 return 0; 20656} 20657_ACEOF 20658rm -f conftest.$ac_objext 20659if { (ac_try="$ac_compile" 20660case "(($ac_try" in 20661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20662 *) ac_try_echo=$ac_try;; 20663esac 20664eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20665$as_echo "$ac_try_echo") >&5 20666 (eval "$ac_compile") 2>conftest.er1 20667 ac_status=$? 20668 grep -v '^ *+' conftest.er1 >conftest.err 20669 rm -f conftest.er1 20670 cat conftest.err >&5 20671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20672 (exit $ac_status); } && { 20673 test -z "$ac_c_werror_flag" || 20674 test ! -s conftest.err 20675 } && test -s conftest.$ac_objext; then 20676 ac_cv_sys_file_offset_bits=64; break 20677else 20678 $as_echo "$as_me: failed program was:" >&5 20679sed 's/^/| /' conftest.$ac_ext >&5 20680 20681 20682fi 20683 20684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20685 ac_cv_sys_file_offset_bits=unknown 20686 break 20687done 20688fi 20689{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 20690$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 20691case $ac_cv_sys_file_offset_bits in #( 20692 no | unknown) ;; 20693 *) 20694cat >>confdefs.h <<_ACEOF 20695#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 20696_ACEOF 20697;; 20698esac 20699rm -rf conftest* 20700 if test $ac_cv_sys_file_offset_bits = unknown; then 20701 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 20702$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 20703if test "${ac_cv_sys_large_files+set}" = set; then 20704 $as_echo_n "(cached) " >&6 20705else 20706 while :; do 20707 cat >conftest.$ac_ext <<_ACEOF 20708/* confdefs.h. */ 20709_ACEOF 20710cat confdefs.h >>conftest.$ac_ext 20711cat >>conftest.$ac_ext <<_ACEOF 20712/* end confdefs.h. */ 20713#include <sys/types.h> 20714 /* Check that off_t can represent 2**63 - 1 correctly. 20715 We can't simply define LARGE_OFF_T to be 9223372036854775807, 20716 since some C++ compilers masquerading as C compilers 20717 incorrectly reject 9223372036854775807. */ 20718#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 20719 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 20720 && LARGE_OFF_T % 2147483647 == 1) 20721 ? 1 : -1]; 20722int 20723main () 20724{ 20725 20726 ; 20727 return 0; 20728} 20729_ACEOF 20730rm -f conftest.$ac_objext 20731if { (ac_try="$ac_compile" 20732case "(($ac_try" in 20733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20734 *) ac_try_echo=$ac_try;; 20735esac 20736eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20737$as_echo "$ac_try_echo") >&5 20738 (eval "$ac_compile") 2>conftest.er1 20739 ac_status=$? 20740 grep -v '^ *+' conftest.er1 >conftest.err 20741 rm -f conftest.er1 20742 cat conftest.err >&5 20743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20744 (exit $ac_status); } && { 20745 test -z "$ac_c_werror_flag" || 20746 test ! -s conftest.err 20747 } && test -s conftest.$ac_objext; then 20748 ac_cv_sys_large_files=no; break 20749else 20750 $as_echo "$as_me: failed program was:" >&5 20751sed 's/^/| /' conftest.$ac_ext >&5 20752 20753 20754fi 20755 20756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20757 cat >conftest.$ac_ext <<_ACEOF 20758/* confdefs.h. */ 20759_ACEOF 20760cat confdefs.h >>conftest.$ac_ext 20761cat >>conftest.$ac_ext <<_ACEOF 20762/* end confdefs.h. */ 20763#define _LARGE_FILES 1 20764#include <sys/types.h> 20765 /* Check that off_t can represent 2**63 - 1 correctly. 20766 We can't simply define LARGE_OFF_T to be 9223372036854775807, 20767 since some C++ compilers masquerading as C compilers 20768 incorrectly reject 9223372036854775807. */ 20769#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 20770 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 20771 && LARGE_OFF_T % 2147483647 == 1) 20772 ? 1 : -1]; 20773int 20774main () 20775{ 20776 20777 ; 20778 return 0; 20779} 20780_ACEOF 20781rm -f conftest.$ac_objext 20782if { (ac_try="$ac_compile" 20783case "(($ac_try" in 20784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20785 *) ac_try_echo=$ac_try;; 20786esac 20787eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20788$as_echo "$ac_try_echo") >&5 20789 (eval "$ac_compile") 2>conftest.er1 20790 ac_status=$? 20791 grep -v '^ *+' conftest.er1 >conftest.err 20792 rm -f conftest.er1 20793 cat conftest.err >&5 20794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20795 (exit $ac_status); } && { 20796 test -z "$ac_c_werror_flag" || 20797 test ! -s conftest.err 20798 } && test -s conftest.$ac_objext; then 20799 ac_cv_sys_large_files=1; break 20800else 20801 $as_echo "$as_me: failed program was:" >&5 20802sed 's/^/| /' conftest.$ac_ext >&5 20803 20804 20805fi 20806 20807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20808 ac_cv_sys_large_files=unknown 20809 break 20810done 20811fi 20812{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 20813$as_echo "$ac_cv_sys_large_files" >&6; } 20814case $ac_cv_sys_large_files in #( 20815 no | unknown) ;; 20816 *) 20817cat >>confdefs.h <<_ACEOF 20818#define _LARGE_FILES $ac_cv_sys_large_files 20819_ACEOF 20820;; 20821esac 20822rm -rf conftest* 20823 fi 20824fi 20825 20826 20827if test "${ac_cv_header_asm_mtrr_h+set}" = set; then 20828 { $as_echo "$as_me:$LINENO: checking for asm/mtrr.h" >&5 20829$as_echo_n "checking for asm/mtrr.h... " >&6; } 20830if test "${ac_cv_header_asm_mtrr_h+set}" = set; then 20831 $as_echo_n "(cached) " >&6 20832fi 20833{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_asm_mtrr_h" >&5 20834$as_echo "$ac_cv_header_asm_mtrr_h" >&6; } 20835else 20836 # Is the header compilable? 20837{ $as_echo "$as_me:$LINENO: checking asm/mtrr.h usability" >&5 20838$as_echo_n "checking asm/mtrr.h usability... " >&6; } 20839cat >conftest.$ac_ext <<_ACEOF 20840/* confdefs.h. */ 20841_ACEOF 20842cat confdefs.h >>conftest.$ac_ext 20843cat >>conftest.$ac_ext <<_ACEOF 20844/* end confdefs.h. */ 20845$ac_includes_default 20846#include <asm/mtrr.h> 20847_ACEOF 20848rm -f conftest.$ac_objext 20849if { (ac_try="$ac_compile" 20850case "(($ac_try" in 20851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20852 *) ac_try_echo=$ac_try;; 20853esac 20854eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20855$as_echo "$ac_try_echo") >&5 20856 (eval "$ac_compile") 2>conftest.er1 20857 ac_status=$? 20858 grep -v '^ *+' conftest.er1 >conftest.err 20859 rm -f conftest.er1 20860 cat conftest.err >&5 20861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20862 (exit $ac_status); } && { 20863 test -z "$ac_c_werror_flag" || 20864 test ! -s conftest.err 20865 } && test -s conftest.$ac_objext; then 20866 ac_header_compiler=yes 20867else 20868 $as_echo "$as_me: failed program was:" >&5 20869sed 's/^/| /' conftest.$ac_ext >&5 20870 20871 ac_header_compiler=no 20872fi 20873 20874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20875{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20876$as_echo "$ac_header_compiler" >&6; } 20877 20878# Is the header present? 20879{ $as_echo "$as_me:$LINENO: checking asm/mtrr.h presence" >&5 20880$as_echo_n "checking asm/mtrr.h presence... " >&6; } 20881cat >conftest.$ac_ext <<_ACEOF 20882/* confdefs.h. */ 20883_ACEOF 20884cat confdefs.h >>conftest.$ac_ext 20885cat >>conftest.$ac_ext <<_ACEOF 20886/* end confdefs.h. */ 20887#include <asm/mtrr.h> 20888_ACEOF 20889if { (ac_try="$ac_cpp conftest.$ac_ext" 20890case "(($ac_try" in 20891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20892 *) ac_try_echo=$ac_try;; 20893esac 20894eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20895$as_echo "$ac_try_echo") >&5 20896 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 20897 ac_status=$? 20898 grep -v '^ *+' conftest.er1 >conftest.err 20899 rm -f conftest.er1 20900 cat conftest.err >&5 20901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20902 (exit $ac_status); } >/dev/null && { 20903 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 20904 test ! -s conftest.err 20905 }; then 20906 ac_header_preproc=yes 20907else 20908 $as_echo "$as_me: failed program was:" >&5 20909sed 's/^/| /' conftest.$ac_ext >&5 20910 20911 ac_header_preproc=no 20912fi 20913 20914rm -f conftest.err conftest.$ac_ext 20915{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20916$as_echo "$ac_header_preproc" >&6; } 20917 20918# So? What about this header? 20919case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20920 yes:no: ) 20921 { $as_echo "$as_me:$LINENO: WARNING: asm/mtrr.h: accepted by the compiler, rejected by the preprocessor!" >&5 20922$as_echo "$as_me: WARNING: asm/mtrr.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 20923 { $as_echo "$as_me:$LINENO: WARNING: asm/mtrr.h: proceeding with the compiler's result" >&5 20924$as_echo "$as_me: WARNING: asm/mtrr.h: proceeding with the compiler's result" >&2;} 20925 ac_header_preproc=yes 20926 ;; 20927 no:yes:* ) 20928 { $as_echo "$as_me:$LINENO: WARNING: asm/mtrr.h: present but cannot be compiled" >&5 20929$as_echo "$as_me: WARNING: asm/mtrr.h: present but cannot be compiled" >&2;} 20930 { $as_echo "$as_me:$LINENO: WARNING: asm/mtrr.h: check for missing prerequisite headers?" >&5 20931$as_echo "$as_me: WARNING: asm/mtrr.h: check for missing prerequisite headers?" >&2;} 20932 { $as_echo "$as_me:$LINENO: WARNING: asm/mtrr.h: see the Autoconf documentation" >&5 20933$as_echo "$as_me: WARNING: asm/mtrr.h: see the Autoconf documentation" >&2;} 20934 { $as_echo "$as_me:$LINENO: WARNING: asm/mtrr.h: section \"Present But Cannot Be Compiled\"" >&5 20935$as_echo "$as_me: WARNING: asm/mtrr.h: section \"Present But Cannot Be Compiled\"" >&2;} 20936 { $as_echo "$as_me:$LINENO: WARNING: asm/mtrr.h: proceeding with the preprocessor's result" >&5 20937$as_echo "$as_me: WARNING: asm/mtrr.h: proceeding with the preprocessor's result" >&2;} 20938 { $as_echo "$as_me:$LINENO: WARNING: asm/mtrr.h: in the future, the compiler will take precedence" >&5 20939$as_echo "$as_me: WARNING: asm/mtrr.h: in the future, the compiler will take precedence" >&2;} 20940 ( cat <<\_ASBOX 20941## --------------------------------------------------------------------------------------------- ## 20942## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=libpciaccess ## 20943## --------------------------------------------------------------------------------------------- ## 20944_ASBOX 20945 ) | sed "s/^/$as_me: WARNING: /" >&2 20946 ;; 20947esac 20948{ $as_echo "$as_me:$LINENO: checking for asm/mtrr.h" >&5 20949$as_echo_n "checking for asm/mtrr.h... " >&6; } 20950if test "${ac_cv_header_asm_mtrr_h+set}" = set; then 20951 $as_echo_n "(cached) " >&6 20952else 20953 ac_cv_header_asm_mtrr_h=$ac_header_preproc 20954fi 20955{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_asm_mtrr_h" >&5 20956$as_echo "$ac_cv_header_asm_mtrr_h" >&6; } 20957 20958fi 20959if test "x$ac_cv_header_asm_mtrr_h" = x""yes; then 20960 have_mtrr_h="yes" 20961else 20962 have_mtrr_h="no" 20963fi 20964 20965 20966 20967if test "x$have_mtrr_h" = xyes; then 20968 20969cat >>confdefs.h <<\_ACEOF 20970#define HAVE_MTRR 1 20971_ACEOF 20972 20973fi 20974 20975{ $as_echo "$as_me:$LINENO: checking for struct pci_io.pi_sel.pc_domain" >&5 20976$as_echo_n "checking for struct pci_io.pi_sel.pc_domain... " >&6; } 20977if test "${ac_cv_member_struct_pci_io_pi_sel_pc_domain+set}" = set; then 20978 $as_echo_n "(cached) " >&6 20979else 20980 cat >conftest.$ac_ext <<_ACEOF 20981/* confdefs.h. */ 20982_ACEOF 20983cat confdefs.h >>conftest.$ac_ext 20984cat >>conftest.$ac_ext <<_ACEOF 20985/* end confdefs.h. */ 20986 #include <sys/types.h> 20987 #include <sys/pciio.h> 20988 20989 20990int 20991main () 20992{ 20993static struct pci_io ac_aggr; 20994if (ac_aggr.pi_sel.pc_domain) 20995return 0; 20996 ; 20997 return 0; 20998} 20999_ACEOF 21000rm -f conftest.$ac_objext 21001if { (ac_try="$ac_compile" 21002case "(($ac_try" in 21003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21004 *) ac_try_echo=$ac_try;; 21005esac 21006eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21007$as_echo "$ac_try_echo") >&5 21008 (eval "$ac_compile") 2>conftest.er1 21009 ac_status=$? 21010 grep -v '^ *+' conftest.er1 >conftest.err 21011 rm -f conftest.er1 21012 cat conftest.err >&5 21013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21014 (exit $ac_status); } && { 21015 test -z "$ac_c_werror_flag" || 21016 test ! -s conftest.err 21017 } && test -s conftest.$ac_objext; then 21018 ac_cv_member_struct_pci_io_pi_sel_pc_domain=yes 21019else 21020 $as_echo "$as_me: failed program was:" >&5 21021sed 's/^/| /' conftest.$ac_ext >&5 21022 21023 cat >conftest.$ac_ext <<_ACEOF 21024/* confdefs.h. */ 21025_ACEOF 21026cat confdefs.h >>conftest.$ac_ext 21027cat >>conftest.$ac_ext <<_ACEOF 21028/* end confdefs.h. */ 21029 #include <sys/types.h> 21030 #include <sys/pciio.h> 21031 21032 21033int 21034main () 21035{ 21036static struct pci_io ac_aggr; 21037if (sizeof ac_aggr.pi_sel.pc_domain) 21038return 0; 21039 ; 21040 return 0; 21041} 21042_ACEOF 21043rm -f conftest.$ac_objext 21044if { (ac_try="$ac_compile" 21045case "(($ac_try" in 21046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21047 *) ac_try_echo=$ac_try;; 21048esac 21049eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21050$as_echo "$ac_try_echo") >&5 21051 (eval "$ac_compile") 2>conftest.er1 21052 ac_status=$? 21053 grep -v '^ *+' conftest.er1 >conftest.err 21054 rm -f conftest.er1 21055 cat conftest.err >&5 21056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21057 (exit $ac_status); } && { 21058 test -z "$ac_c_werror_flag" || 21059 test ! -s conftest.err 21060 } && test -s conftest.$ac_objext; then 21061 ac_cv_member_struct_pci_io_pi_sel_pc_domain=yes 21062else 21063 $as_echo "$as_me: failed program was:" >&5 21064sed 's/^/| /' conftest.$ac_ext >&5 21065 21066 ac_cv_member_struct_pci_io_pi_sel_pc_domain=no 21067fi 21068 21069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21070fi 21071 21072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21073fi 21074{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_pci_io_pi_sel_pc_domain" >&5 21075$as_echo "$ac_cv_member_struct_pci_io_pi_sel_pc_domain" >&6; } 21076if test "x$ac_cv_member_struct_pci_io_pi_sel_pc_domain" = x""yes; then 21077 21078cat >>confdefs.h <<\_ACEOF 21079#define HAVE_PCI_IO_PC_DOMAIN 1 21080_ACEOF 21081 21082fi 21083 21084 21085 21086 21087 21088 21089 21090# Check whether --with-release-version was given. 21091if test "${with_release_version+set}" = set; then 21092 withval=$with_release_version; RELEASE_VERSION="$withval" 21093else 21094 RELEASE_VERSION="" 21095fi 21096 21097 if test "x$RELEASE_VERSION" != "x"; then 21098 PACKAGE="$PACKAGE-$RELEASE_VERSION" 21099 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 21100 { $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5 21101$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;} 21102 fi 21103 21104cat >>confdefs.h <<_ACEOF 21105#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 21106_ACEOF 21107 21108 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 21109 if test "x$PVM" = "x"; then 21110 PVM="0" 21111 fi 21112 21113cat >>confdefs.h <<_ACEOF 21114#define PACKAGE_VERSION_MINOR $PVM 21115_ACEOF 21116 21117 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 21118 if test "x$PVP" = "x"; then 21119 PVP="0" 21120 fi 21121 21122cat >>confdefs.h <<_ACEOF 21123#define PACKAGE_VERSION_PATCHLEVEL $PVP 21124_ACEOF 21125 21126 21127 21128CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \ 21129mv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \ 21130echo 'git directory not found: installing possibly empty changelog.' >&2)" 21131 21132distcleancheck_listfiles='find . -type f ! -name ChangeLog -print' 21133 21134 21135 21136ac_config_files="$ac_config_files Makefile src/Makefile pciaccess.pc" 21137 21138cat >confcache <<\_ACEOF 21139# This file is a shell script that caches the results of configure 21140# tests run on this system so they can be shared between configure 21141# scripts and configure runs, see configure's option --config-cache. 21142# It is not useful on other systems. If it contains results you don't 21143# want to keep, you may remove or edit it. 21144# 21145# config.status only pays attention to the cache file if you give it 21146# the --recheck option to rerun configure. 21147# 21148# `ac_cv_env_foo' variables (set or unset) will be overridden when 21149# loading this file, other *unset* `ac_cv_foo' will be assigned the 21150# following values. 21151 21152_ACEOF 21153 21154# The following way of writing the cache mishandles newlines in values, 21155# but we know of no workaround that is simple, portable, and efficient. 21156# So, we kill variables containing newlines. 21157# Ultrix sh set writes to stderr and can't be redirected directly, 21158# and sets the high bit in the cache file unless we assign to the vars. 21159( 21160 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 21161 eval ac_val=\$$ac_var 21162 case $ac_val in #( 21163 *${as_nl}*) 21164 case $ac_var in #( 21165 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 21166$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 21167 esac 21168 case $ac_var in #( 21169 _ | IFS | as_nl) ;; #( 21170 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 21171 *) $as_unset $ac_var ;; 21172 esac ;; 21173 esac 21174 done 21175 21176 (set) 2>&1 | 21177 case $as_nl`(ac_space=' '; set) 2>&1` in #( 21178 *${as_nl}ac_space=\ *) 21179 # `set' does not quote correctly, so add quotes (double-quote 21180 # substitution turns \\\\ into \\, and sed turns \\ into \). 21181 sed -n \ 21182 "s/'/'\\\\''/g; 21183 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21184 ;; #( 21185 *) 21186 # `set' quotes correctly as required by POSIX, so do not add quotes. 21187 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21188 ;; 21189 esac | 21190 sort 21191) | 21192 sed ' 21193 /^ac_cv_env_/b end 21194 t clear 21195 :clear 21196 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 21197 t end 21198 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21199 :end' >>confcache 21200if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 21201 if test -w "$cache_file"; then 21202 test "x$cache_file" != "x/dev/null" && 21203 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 21204$as_echo "$as_me: updating cache $cache_file" >&6;} 21205 cat confcache >$cache_file 21206 else 21207 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 21208$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 21209 fi 21210fi 21211rm -f confcache 21212 21213test "x$prefix" = xNONE && prefix=$ac_default_prefix 21214# Let make expand exec_prefix. 21215test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21216 21217DEFS=-DHAVE_CONFIG_H 21218 21219ac_libobjs= 21220ac_ltlibobjs= 21221for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21222 # 1. Remove the extension, and $U if already installed. 21223 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21224 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 21225 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21226 # will be set to the directory where LIBOBJS objects are built. 21227 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21228 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 21229done 21230LIBOBJS=$ac_libobjs 21231 21232LTLIBOBJS=$ac_ltlibobjs 21233 21234 21235 if test -n "$EXEEXT"; then 21236 am__EXEEXT_TRUE= 21237 am__EXEEXT_FALSE='#' 21238else 21239 am__EXEEXT_TRUE='#' 21240 am__EXEEXT_FALSE= 21241fi 21242 21243if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 21244 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 21245Usually this means the macro was only invoked conditionally." >&5 21246$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 21247Usually this means the macro was only invoked conditionally." >&2;} 21248 { (exit 1); exit 1; }; } 21249fi 21250if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 21251 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 21252Usually this means the macro was only invoked conditionally." >&5 21253$as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 21254Usually this means the macro was only invoked conditionally." >&2;} 21255 { (exit 1); exit 1; }; } 21256fi 21257if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21258 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 21259Usually this means the macro was only invoked conditionally." >&5 21260$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 21261Usually this means the macro was only invoked conditionally." >&2;} 21262 { (exit 1); exit 1; }; } 21263fi 21264if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 21265 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 21266Usually this means the macro was only invoked conditionally." >&5 21267$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 21268Usually this means the macro was only invoked conditionally." >&2;} 21269 { (exit 1); exit 1; }; } 21270fi 21271if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then 21272 { { $as_echo "$as_me:$LINENO: error: conditional \"LINUX\" was never defined. 21273Usually this means the macro was only invoked conditionally." >&5 21274$as_echo "$as_me: error: conditional \"LINUX\" was never defined. 21275Usually this means the macro was only invoked conditionally." >&2;} 21276 { (exit 1); exit 1; }; } 21277fi 21278if test -z "${FREEBSD_TRUE}" && test -z "${FREEBSD_FALSE}"; then 21279 { { $as_echo "$as_me:$LINENO: error: conditional \"FREEBSD\" was never defined. 21280Usually this means the macro was only invoked conditionally." >&5 21281$as_echo "$as_me: error: conditional \"FREEBSD\" was never defined. 21282Usually this means the macro was only invoked conditionally." >&2;} 21283 { (exit 1); exit 1; }; } 21284fi 21285if test -z "${NETBSD_TRUE}" && test -z "${NETBSD_FALSE}"; then 21286 { { $as_echo "$as_me:$LINENO: error: conditional \"NETBSD\" was never defined. 21287Usually this means the macro was only invoked conditionally." >&5 21288$as_echo "$as_me: error: conditional \"NETBSD\" was never defined. 21289Usually this means the macro was only invoked conditionally." >&2;} 21290 { (exit 1); exit 1; }; } 21291fi 21292if test -z "${OPENBSD_TRUE}" && test -z "${OPENBSD_FALSE}"; then 21293 { { $as_echo "$as_me:$LINENO: error: conditional \"OPENBSD\" was never defined. 21294Usually this means the macro was only invoked conditionally." >&5 21295$as_echo "$as_me: error: conditional \"OPENBSD\" was never defined. 21296Usually this means the macro was only invoked conditionally." >&2;} 21297 { (exit 1); exit 1; }; } 21298fi 21299if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then 21300 { { $as_echo "$as_me:$LINENO: error: conditional \"SOLARIS\" was never defined. 21301Usually this means the macro was only invoked conditionally." >&5 21302$as_echo "$as_me: error: conditional \"SOLARIS\" was never defined. 21303Usually this means the macro was only invoked conditionally." >&2;} 21304 { (exit 1); exit 1; }; } 21305fi 21306 21307: ${CONFIG_STATUS=./config.status} 21308ac_write_fail=0 21309ac_clean_files_save=$ac_clean_files 21310ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21311{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 21312$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 21313cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21314#! $SHELL 21315# Generated by $as_me. 21316# Run this file to recreate the current configuration. 21317# Compiler output produced by configure, useful for debugging 21318# configure, is in config.log if it exists. 21319 21320debug=false 21321ac_cs_recheck=false 21322ac_cs_silent=false 21323SHELL=\${CONFIG_SHELL-$SHELL} 21324_ACEOF 21325 21326cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21327## --------------------- ## 21328## M4sh Initialization. ## 21329## --------------------- ## 21330 21331# Be more Bourne compatible 21332DUALCASE=1; export DUALCASE # for MKS sh 21333if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 21334 emulate sh 21335 NULLCMD=: 21336 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21337 # is contrary to our usage. Disable this feature. 21338 alias -g '${1+"$@"}'='"$@"' 21339 setopt NO_GLOB_SUBST 21340else 21341 case `(set -o) 2>/dev/null` in 21342 *posix*) set -o posix ;; 21343esac 21344 21345fi 21346 21347 21348 21349 21350# PATH needs CR 21351# Avoid depending upon Character Ranges. 21352as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21353as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21354as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21355as_cr_digits='0123456789' 21356as_cr_alnum=$as_cr_Letters$as_cr_digits 21357 21358as_nl=' 21359' 21360export as_nl 21361# Printing a long string crashes Solaris 7 /usr/bin/printf. 21362as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 21363as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 21364as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 21365if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 21366 as_echo='printf %s\n' 21367 as_echo_n='printf %s' 21368else 21369 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 21370 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 21371 as_echo_n='/usr/ucb/echo -n' 21372 else 21373 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 21374 as_echo_n_body='eval 21375 arg=$1; 21376 case $arg in 21377 *"$as_nl"*) 21378 expr "X$arg" : "X\\(.*\\)$as_nl"; 21379 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 21380 esac; 21381 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 21382 ' 21383 export as_echo_n_body 21384 as_echo_n='sh -c $as_echo_n_body as_echo' 21385 fi 21386 export as_echo_body 21387 as_echo='sh -c $as_echo_body as_echo' 21388fi 21389 21390# The user is always right. 21391if test "${PATH_SEPARATOR+set}" != set; then 21392 PATH_SEPARATOR=: 21393 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 21394 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 21395 PATH_SEPARATOR=';' 21396 } 21397fi 21398 21399# Support unset when possible. 21400if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 21401 as_unset=unset 21402else 21403 as_unset=false 21404fi 21405 21406 21407# IFS 21408# We need space, tab and new line, in precisely that order. Quoting is 21409# there to prevent editors from complaining about space-tab. 21410# (If _AS_PATH_WALK were called with IFS unset, it would disable word 21411# splitting by setting IFS to empty value.) 21412IFS=" "" $as_nl" 21413 21414# Find who we are. Look in the path if we contain no directory separator. 21415case $0 in 21416 *[\\/]* ) as_myself=$0 ;; 21417 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21418for as_dir in $PATH 21419do 21420 IFS=$as_save_IFS 21421 test -z "$as_dir" && as_dir=. 21422 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 21423done 21424IFS=$as_save_IFS 21425 21426 ;; 21427esac 21428# We did not find ourselves, most probably we were run as `sh COMMAND' 21429# in which case we are not to be found in the path. 21430if test "x$as_myself" = x; then 21431 as_myself=$0 21432fi 21433if test ! -f "$as_myself"; then 21434 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 21435 { (exit 1); exit 1; } 21436fi 21437 21438# Work around bugs in pre-3.0 UWIN ksh. 21439for as_var in ENV MAIL MAILPATH 21440do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 21441done 21442PS1='$ ' 21443PS2='> ' 21444PS4='+ ' 21445 21446# NLS nuisances. 21447LC_ALL=C 21448export LC_ALL 21449LANGUAGE=C 21450export LANGUAGE 21451 21452# Required to use basename. 21453if expr a : '\(a\)' >/dev/null 2>&1 && 21454 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21455 as_expr=expr 21456else 21457 as_expr=false 21458fi 21459 21460if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21461 as_basename=basename 21462else 21463 as_basename=false 21464fi 21465 21466 21467# Name of the executable. 21468as_me=`$as_basename -- "$0" || 21469$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21470 X"$0" : 'X\(//\)$' \| \ 21471 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21472$as_echo X/"$0" | 21473 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21474 s//\1/ 21475 q 21476 } 21477 /^X\/\(\/\/\)$/{ 21478 s//\1/ 21479 q 21480 } 21481 /^X\/\(\/\).*/{ 21482 s//\1/ 21483 q 21484 } 21485 s/.*/./; q'` 21486 21487# CDPATH. 21488$as_unset CDPATH 21489 21490 21491 21492 as_lineno_1=$LINENO 21493 as_lineno_2=$LINENO 21494 test "x$as_lineno_1" != "x$as_lineno_2" && 21495 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 21496 21497 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 21498 # uniformly replaced by the line number. The first 'sed' inserts a 21499 # line-number line after each line using $LINENO; the second 'sed' 21500 # does the real work. The second script uses 'N' to pair each 21501 # line-number line with the line containing $LINENO, and appends 21502 # trailing '-' during substitution so that $LINENO is not a special 21503 # case at line end. 21504 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 21505 # scripts with optimization help from Paolo Bonzini. Blame Lee 21506 # E. McMahon (1931-1989) for sed's syntax. :-) 21507 sed -n ' 21508 p 21509 /[$]LINENO/= 21510 ' <$as_myself | 21511 sed ' 21512 s/[$]LINENO.*/&-/ 21513 t lineno 21514 b 21515 :lineno 21516 N 21517 :loop 21518 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 21519 t loop 21520 s/-\n.*// 21521 ' >$as_me.lineno && 21522 chmod +x "$as_me.lineno" || 21523 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 21524 { (exit 1); exit 1; }; } 21525 21526 # Don't try to exec as it changes $[0], causing all sort of problems 21527 # (the dirname of $[0] is not the place where we might find the 21528 # original and so on. Autoconf is especially sensitive to this). 21529 . "./$as_me.lineno" 21530 # Exit status is that of the last command. 21531 exit 21532} 21533 21534 21535if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21536 as_dirname=dirname 21537else 21538 as_dirname=false 21539fi 21540 21541ECHO_C= ECHO_N= ECHO_T= 21542case `echo -n x` in 21543-n*) 21544 case `echo 'x\c'` in 21545 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21546 *) ECHO_C='\c';; 21547 esac;; 21548*) 21549 ECHO_N='-n';; 21550esac 21551if expr a : '\(a\)' >/dev/null 2>&1 && 21552 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21553 as_expr=expr 21554else 21555 as_expr=false 21556fi 21557 21558rm -f conf$$ conf$$.exe conf$$.file 21559if test -d conf$$.dir; then 21560 rm -f conf$$.dir/conf$$.file 21561else 21562 rm -f conf$$.dir 21563 mkdir conf$$.dir 2>/dev/null 21564fi 21565if (echo >conf$$.file) 2>/dev/null; then 21566 if ln -s conf$$.file conf$$ 2>/dev/null; then 21567 as_ln_s='ln -s' 21568 # ... but there are two gotchas: 21569 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 21570 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 21571 # In both cases, we have to default to `cp -p'. 21572 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21573 as_ln_s='cp -p' 21574 elif ln conf$$.file conf$$ 2>/dev/null; then 21575 as_ln_s=ln 21576 else 21577 as_ln_s='cp -p' 21578 fi 21579else 21580 as_ln_s='cp -p' 21581fi 21582rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21583rmdir conf$$.dir 2>/dev/null 21584 21585if mkdir -p . 2>/dev/null; then 21586 as_mkdir_p=: 21587else 21588 test -d ./-p && rmdir ./-p 21589 as_mkdir_p=false 21590fi 21591 21592if test -x / >/dev/null 2>&1; then 21593 as_test_x='test -x' 21594else 21595 if ls -dL / >/dev/null 2>&1; then 21596 as_ls_L_option=L 21597 else 21598 as_ls_L_option= 21599 fi 21600 as_test_x=' 21601 eval sh -c '\'' 21602 if test -d "$1"; then 21603 test -d "$1/."; 21604 else 21605 case $1 in 21606 -*)set "./$1";; 21607 esac; 21608 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 21609 ???[sx]*):;;*)false;;esac;fi 21610 '\'' sh 21611 ' 21612fi 21613as_executable_p=$as_test_x 21614 21615# Sed expression to map a string onto a valid CPP name. 21616as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21617 21618# Sed expression to map a string onto a valid variable name. 21619as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21620 21621 21622exec 6>&1 21623 21624# Save the log message, to keep $[0] and so on meaningful, and to 21625# report actual input values of CONFIG_FILES etc. instead of their 21626# values after options handling. 21627ac_log=" 21628This file was extended by libpciaccess $as_me 0.10.9, which was 21629generated by GNU Autoconf 2.63. Invocation command line was 21630 21631 CONFIG_FILES = $CONFIG_FILES 21632 CONFIG_HEADERS = $CONFIG_HEADERS 21633 CONFIG_LINKS = $CONFIG_LINKS 21634 CONFIG_COMMANDS = $CONFIG_COMMANDS 21635 $ $0 $@ 21636 21637on `(hostname || uname -n) 2>/dev/null | sed 1q` 21638" 21639 21640_ACEOF 21641 21642case $ac_config_files in *" 21643"*) set x $ac_config_files; shift; ac_config_files=$*;; 21644esac 21645 21646case $ac_config_headers in *" 21647"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 21648esac 21649 21650 21651cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21652# Files that config.status was made for. 21653config_files="$ac_config_files" 21654config_headers="$ac_config_headers" 21655config_commands="$ac_config_commands" 21656 21657_ACEOF 21658 21659cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21660ac_cs_usage="\ 21661\`$as_me' instantiates files from templates according to the 21662current configuration. 21663 21664Usage: $0 [OPTION]... [FILE]... 21665 21666 -h, --help print this help, then exit 21667 -V, --version print version number and configuration settings, then exit 21668 -q, --quiet, --silent 21669 do not print progress messages 21670 -d, --debug don't remove temporary files 21671 --recheck update $as_me by reconfiguring in the same conditions 21672 --file=FILE[:TEMPLATE] 21673 instantiate the configuration file FILE 21674 --header=FILE[:TEMPLATE] 21675 instantiate the configuration header FILE 21676 21677Configuration files: 21678$config_files 21679 21680Configuration headers: 21681$config_headers 21682 21683Configuration commands: 21684$config_commands 21685 21686Report bugs to <bug-autoconf@gnu.org>." 21687 21688_ACEOF 21689cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21690ac_cs_version="\\ 21691libpciaccess config.status 0.10.9 21692configured by $0, generated by GNU Autoconf 2.63, 21693 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 21694 21695Copyright (C) 2008 Free Software Foundation, Inc. 21696This config.status script is free software; the Free Software Foundation 21697gives unlimited permission to copy, distribute and modify it." 21698 21699ac_pwd='$ac_pwd' 21700srcdir='$srcdir' 21701INSTALL='$INSTALL' 21702MKDIR_P='$MKDIR_P' 21703AWK='$AWK' 21704test -n "\$AWK" || AWK=awk 21705_ACEOF 21706 21707cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21708# The default lists apply if the user does not specify any file. 21709ac_need_defaults=: 21710while test $# != 0 21711do 21712 case $1 in 21713 --*=*) 21714 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21715 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21716 ac_shift=: 21717 ;; 21718 *) 21719 ac_option=$1 21720 ac_optarg=$2 21721 ac_shift=shift 21722 ;; 21723 esac 21724 21725 case $ac_option in 21726 # Handling of the options. 21727 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21728 ac_cs_recheck=: ;; 21729 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21730 $as_echo "$ac_cs_version"; exit ;; 21731 --debug | --debu | --deb | --de | --d | -d ) 21732 debug=: ;; 21733 --file | --fil | --fi | --f ) 21734 $ac_shift 21735 case $ac_optarg in 21736 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21737 esac 21738 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 21739 ac_need_defaults=false;; 21740 --header | --heade | --head | --hea ) 21741 $ac_shift 21742 case $ac_optarg in 21743 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21744 esac 21745 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 21746 ac_need_defaults=false;; 21747 --he | --h) 21748 # Conflict between --help and --header 21749 { $as_echo "$as_me: error: ambiguous option: $1 21750Try \`$0 --help' for more information." >&2 21751 { (exit 1); exit 1; }; };; 21752 --help | --hel | -h ) 21753 $as_echo "$ac_cs_usage"; exit ;; 21754 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21755 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21756 ac_cs_silent=: ;; 21757 21758 # This is an error. 21759 -*) { $as_echo "$as_me: error: unrecognized option: $1 21760Try \`$0 --help' for more information." >&2 21761 { (exit 1); exit 1; }; } ;; 21762 21763 *) ac_config_targets="$ac_config_targets $1" 21764 ac_need_defaults=false ;; 21765 21766 esac 21767 shift 21768done 21769 21770ac_configure_extra_args= 21771 21772if $ac_cs_silent; then 21773 exec 6>/dev/null 21774 ac_configure_extra_args="$ac_configure_extra_args --silent" 21775fi 21776 21777_ACEOF 21778cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21779if \$ac_cs_recheck; then 21780 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21781 shift 21782 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 21783 CONFIG_SHELL='$SHELL' 21784 export CONFIG_SHELL 21785 exec "\$@" 21786fi 21787 21788_ACEOF 21789cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21790exec 5>>config.log 21791{ 21792 echo 21793 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21794## Running $as_me. ## 21795_ASBOX 21796 $as_echo "$ac_log" 21797} >&5 21798 21799_ACEOF 21800cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21801# 21802# INIT-COMMANDS 21803# 21804AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 21805 21806_ACEOF 21807 21808cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21809 21810# Handling of arguments. 21811for ac_config_target in $ac_config_targets 21812do 21813 case $ac_config_target in 21814 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 21815 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21816 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21817 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 21818 "pciaccess.pc") CONFIG_FILES="$CONFIG_FILES pciaccess.pc" ;; 21819 21820 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 21821$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 21822 { (exit 1); exit 1; }; };; 21823 esac 21824done 21825 21826 21827# If the user did not use the arguments to specify the items to instantiate, 21828# then the envvar interface is used. Set only those that are not. 21829# We use the long form for the default assignment because of an extremely 21830# bizarre bug on SunOS 4.1.3. 21831if $ac_need_defaults; then 21832 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 21833 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 21834 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 21835fi 21836 21837# Have a temporary directory for convenience. Make it in the build tree 21838# simply because there is no reason against having it here, and in addition, 21839# creating and moving files from /tmp can sometimes cause problems. 21840# Hook for its removal unless debugging. 21841# Note that there is a small window in which the directory will not be cleaned: 21842# after its creation but before its name has been assigned to `$tmp'. 21843$debug || 21844{ 21845 tmp= 21846 trap 'exit_status=$? 21847 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 21848' 0 21849 trap '{ (exit 1); exit 1; }' 1 2 13 15 21850} 21851# Create a (secure) tmp directory for tmp files. 21852 21853{ 21854 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21855 test -n "$tmp" && test -d "$tmp" 21856} || 21857{ 21858 tmp=./conf$$-$RANDOM 21859 (umask 077 && mkdir "$tmp") 21860} || 21861{ 21862 $as_echo "$as_me: cannot create a temporary directory in ." >&2 21863 { (exit 1); exit 1; } 21864} 21865 21866# Set up the scripts for CONFIG_FILES section. 21867# No need to generate them if there are no CONFIG_FILES. 21868# This happens for instance with `./config.status config.h'. 21869if test -n "$CONFIG_FILES"; then 21870 21871 21872ac_cr=' 21873' 21874ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 21875if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 21876 ac_cs_awk_cr='\\r' 21877else 21878 ac_cs_awk_cr=$ac_cr 21879fi 21880 21881echo 'BEGIN {' >"$tmp/subs1.awk" && 21882_ACEOF 21883 21884 21885{ 21886 echo "cat >conf$$subs.awk <<_ACEOF" && 21887 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 21888 echo "_ACEOF" 21889} >conf$$subs.sh || 21890 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 21891$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 21892 { (exit 1); exit 1; }; } 21893ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 21894ac_delim='%!_!# ' 21895for ac_last_try in false false false false false :; do 21896 . ./conf$$subs.sh || 21897 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 21898$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 21899 { (exit 1); exit 1; }; } 21900 21901 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 21902 if test $ac_delim_n = $ac_delim_num; then 21903 break 21904 elif $ac_last_try; then 21905 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 21906$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 21907 { (exit 1); exit 1; }; } 21908 else 21909 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21910 fi 21911done 21912rm -f conf$$subs.sh 21913 21914cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21915cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 21916_ACEOF 21917sed -n ' 21918h 21919s/^/S["/; s/!.*/"]=/ 21920p 21921g 21922s/^[^!]*!// 21923:repl 21924t repl 21925s/'"$ac_delim"'$// 21926t delim 21927:nl 21928h 21929s/\(.\{148\}\).*/\1/ 21930t more1 21931s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 21932p 21933n 21934b repl 21935:more1 21936s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21937p 21938g 21939s/.\{148\}// 21940t nl 21941:delim 21942h 21943s/\(.\{148\}\).*/\1/ 21944t more2 21945s/["\\]/\\&/g; s/^/"/; s/$/"/ 21946p 21947b 21948:more2 21949s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21950p 21951g 21952s/.\{148\}// 21953t delim 21954' <conf$$subs.awk | sed ' 21955/^[^""]/{ 21956 N 21957 s/\n// 21958} 21959' >>$CONFIG_STATUS || ac_write_fail=1 21960rm -f conf$$subs.awk 21961cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21962_ACAWK 21963cat >>"\$tmp/subs1.awk" <<_ACAWK && 21964 for (key in S) S_is_set[key] = 1 21965 FS = "" 21966 21967} 21968{ 21969 line = $ 0 21970 nfields = split(line, field, "@") 21971 substed = 0 21972 len = length(field[1]) 21973 for (i = 2; i < nfields; i++) { 21974 key = field[i] 21975 keylen = length(key) 21976 if (S_is_set[key]) { 21977 value = S[key] 21978 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 21979 len += length(value) + length(field[++i]) 21980 substed = 1 21981 } else 21982 len += 1 + keylen 21983 } 21984 21985 print line 21986} 21987 21988_ACAWK 21989_ACEOF 21990cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21991if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 21992 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 21993else 21994 cat 21995fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 21996 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 21997$as_echo "$as_me: error: could not setup config files machinery" >&2;} 21998 { (exit 1); exit 1; }; } 21999_ACEOF 22000 22001# VPATH may cause trouble with some makes, so we remove $(srcdir), 22002# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 22003# trailing colons and then remove the whole line if VPATH becomes empty 22004# (actually we leave an empty line to preserve line numbers). 22005if test "x$srcdir" = x.; then 22006 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 22007s/:*\$(srcdir):*/:/ 22008s/:*\${srcdir}:*/:/ 22009s/:*@srcdir@:*/:/ 22010s/^\([^=]*=[ ]*\):*/\1/ 22011s/:*$// 22012s/^[^=]*=[ ]*$// 22013}' 22014fi 22015 22016cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22017fi # test -n "$CONFIG_FILES" 22018 22019# Set up the scripts for CONFIG_HEADERS section. 22020# No need to generate them if there are no CONFIG_HEADERS. 22021# This happens for instance with `./config.status Makefile'. 22022if test -n "$CONFIG_HEADERS"; then 22023cat >"$tmp/defines.awk" <<\_ACAWK || 22024BEGIN { 22025_ACEOF 22026 22027# Transform confdefs.h into an awk script `defines.awk', embedded as 22028# here-document in config.status, that substitutes the proper values into 22029# config.h.in to produce config.h. 22030 22031# Create a delimiter string that does not exist in confdefs.h, to ease 22032# handling of long lines. 22033ac_delim='%!_!# ' 22034for ac_last_try in false false :; do 22035 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 22036 if test -z "$ac_t"; then 22037 break 22038 elif $ac_last_try; then 22039 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 22040$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 22041 { (exit 1); exit 1; }; } 22042 else 22043 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22044 fi 22045done 22046 22047# For the awk script, D is an array of macro values keyed by name, 22048# likewise P contains macro parameters if any. Preserve backslash 22049# newline sequences. 22050 22051ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 22052sed -n ' 22053s/.\{148\}/&'"$ac_delim"'/g 22054t rset 22055:rset 22056s/^[ ]*#[ ]*define[ ][ ]*/ / 22057t def 22058d 22059:def 22060s/\\$// 22061t bsnl 22062s/["\\]/\\&/g 22063s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22064D["\1"]=" \3"/p 22065s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 22066d 22067:bsnl 22068s/["\\]/\\&/g 22069s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22070D["\1"]=" \3\\\\\\n"\\/p 22071t cont 22072s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 22073t cont 22074d 22075:cont 22076n 22077s/.\{148\}/&'"$ac_delim"'/g 22078t clear 22079:clear 22080s/\\$// 22081t bsnlc 22082s/["\\]/\\&/g; s/^/"/; s/$/"/p 22083d 22084:bsnlc 22085s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 22086b cont 22087' <confdefs.h | sed ' 22088s/'"$ac_delim"'/"\\\ 22089"/g' >>$CONFIG_STATUS || ac_write_fail=1 22090 22091cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22092 for (key in D) D_is_set[key] = 1 22093 FS = "" 22094} 22095/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 22096 line = \$ 0 22097 split(line, arg, " ") 22098 if (arg[1] == "#") { 22099 defundef = arg[2] 22100 mac1 = arg[3] 22101 } else { 22102 defundef = substr(arg[1], 2) 22103 mac1 = arg[2] 22104 } 22105 split(mac1, mac2, "(") #) 22106 macro = mac2[1] 22107 prefix = substr(line, 1, index(line, defundef) - 1) 22108 if (D_is_set[macro]) { 22109 # Preserve the white space surrounding the "#". 22110 print prefix "define", macro P[macro] D[macro] 22111 next 22112 } else { 22113 # Replace #undef with comments. This is necessary, for example, 22114 # in the case of _POSIX_SOURCE, which is predefined and required 22115 # on some systems where configure will not decide to define it. 22116 if (defundef == "undef") { 22117 print "/*", prefix defundef, macro, "*/" 22118 next 22119 } 22120 } 22121} 22122{ print } 22123_ACAWK 22124_ACEOF 22125cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22126 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 22127$as_echo "$as_me: error: could not setup config headers machinery" >&2;} 22128 { (exit 1); exit 1; }; } 22129fi # test -n "$CONFIG_HEADERS" 22130 22131 22132eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 22133shift 22134for ac_tag 22135do 22136 case $ac_tag in 22137 :[FHLC]) ac_mode=$ac_tag; continue;; 22138 esac 22139 case $ac_mode$ac_tag in 22140 :[FHL]*:*);; 22141 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 22142$as_echo "$as_me: error: invalid tag $ac_tag" >&2;} 22143 { (exit 1); exit 1; }; };; 22144 :[FH]-) ac_tag=-:-;; 22145 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 22146 esac 22147 ac_save_IFS=$IFS 22148 IFS=: 22149 set x $ac_tag 22150 IFS=$ac_save_IFS 22151 shift 22152 ac_file=$1 22153 shift 22154 22155 case $ac_mode in 22156 :L) ac_source=$1;; 22157 :[FH]) 22158 ac_file_inputs= 22159 for ac_f 22160 do 22161 case $ac_f in 22162 -) ac_f="$tmp/stdin";; 22163 *) # Look for the file first in the build tree, then in the source tree 22164 # (if the path is not absolute). The absolute path cannot be DOS-style, 22165 # because $ac_f cannot contain `:'. 22166 test -f "$ac_f" || 22167 case $ac_f in 22168 [\\/$]*) false;; 22169 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 22170 esac || 22171 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 22172$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 22173 { (exit 1); exit 1; }; };; 22174 esac 22175 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 22176 ac_file_inputs="$ac_file_inputs '$ac_f'" 22177 done 22178 22179 # Let's still pretend it is `configure' which instantiates (i.e., don't 22180 # use $as_me), people would be surprised to read: 22181 # /* config.h. Generated by config.status. */ 22182 configure_input='Generated from '` 22183 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 22184 `' by configure.' 22185 if test x"$ac_file" != x-; then 22186 configure_input="$ac_file. $configure_input" 22187 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 22188$as_echo "$as_me: creating $ac_file" >&6;} 22189 fi 22190 # Neutralize special characters interpreted by sed in replacement strings. 22191 case $configure_input in #( 22192 *\&* | *\|* | *\\* ) 22193 ac_sed_conf_input=`$as_echo "$configure_input" | 22194 sed 's/[\\\\&|]/\\\\&/g'`;; #( 22195 *) ac_sed_conf_input=$configure_input;; 22196 esac 22197 22198 case $ac_tag in 22199 *:-:* | *:-) cat >"$tmp/stdin" \ 22200 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 22201$as_echo "$as_me: error: could not create $ac_file" >&2;} 22202 { (exit 1); exit 1; }; } ;; 22203 esac 22204 ;; 22205 esac 22206 22207 ac_dir=`$as_dirname -- "$ac_file" || 22208$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22209 X"$ac_file" : 'X\(//\)[^/]' \| \ 22210 X"$ac_file" : 'X\(//\)$' \| \ 22211 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 22212$as_echo X"$ac_file" | 22213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22214 s//\1/ 22215 q 22216 } 22217 /^X\(\/\/\)[^/].*/{ 22218 s//\1/ 22219 q 22220 } 22221 /^X\(\/\/\)$/{ 22222 s//\1/ 22223 q 22224 } 22225 /^X\(\/\).*/{ 22226 s//\1/ 22227 q 22228 } 22229 s/.*/./; q'` 22230 { as_dir="$ac_dir" 22231 case $as_dir in #( 22232 -*) as_dir=./$as_dir;; 22233 esac 22234 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 22235 as_dirs= 22236 while :; do 22237 case $as_dir in #( 22238 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 22239 *) as_qdir=$as_dir;; 22240 esac 22241 as_dirs="'$as_qdir' $as_dirs" 22242 as_dir=`$as_dirname -- "$as_dir" || 22243$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22244 X"$as_dir" : 'X\(//\)[^/]' \| \ 22245 X"$as_dir" : 'X\(//\)$' \| \ 22246 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22247$as_echo X"$as_dir" | 22248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22249 s//\1/ 22250 q 22251 } 22252 /^X\(\/\/\)[^/].*/{ 22253 s//\1/ 22254 q 22255 } 22256 /^X\(\/\/\)$/{ 22257 s//\1/ 22258 q 22259 } 22260 /^X\(\/\).*/{ 22261 s//\1/ 22262 q 22263 } 22264 s/.*/./; q'` 22265 test -d "$as_dir" && break 22266 done 22267 test -z "$as_dirs" || eval "mkdir $as_dirs" 22268 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 22269$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 22270 { (exit 1); exit 1; }; }; } 22271 ac_builddir=. 22272 22273case "$ac_dir" in 22274.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22275*) 22276 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 22277 # A ".." for each directory in $ac_dir_suffix. 22278 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 22279 case $ac_top_builddir_sub in 22280 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22281 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22282 esac ;; 22283esac 22284ac_abs_top_builddir=$ac_pwd 22285ac_abs_builddir=$ac_pwd$ac_dir_suffix 22286# for backward compatibility: 22287ac_top_builddir=$ac_top_build_prefix 22288 22289case $srcdir in 22290 .) # We are building in place. 22291 ac_srcdir=. 22292 ac_top_srcdir=$ac_top_builddir_sub 22293 ac_abs_top_srcdir=$ac_pwd ;; 22294 [\\/]* | ?:[\\/]* ) # Absolute name. 22295 ac_srcdir=$srcdir$ac_dir_suffix; 22296 ac_top_srcdir=$srcdir 22297 ac_abs_top_srcdir=$srcdir ;; 22298 *) # Relative name. 22299 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22300 ac_top_srcdir=$ac_top_build_prefix$srcdir 22301 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22302esac 22303ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22304 22305 22306 case $ac_mode in 22307 :F) 22308 # 22309 # CONFIG_FILE 22310 # 22311 22312 case $INSTALL in 22313 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22314 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22315 esac 22316 ac_MKDIR_P=$MKDIR_P 22317 case $MKDIR_P in 22318 [\\/$]* | ?:[\\/]* ) ;; 22319 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 22320 esac 22321_ACEOF 22322 22323cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22324# If the template does not know about datarootdir, expand it. 22325# FIXME: This hack should be removed a few years after 2.60. 22326ac_datarootdir_hack=; ac_datarootdir_seen= 22327 22328ac_sed_dataroot=' 22329/datarootdir/ { 22330 p 22331 q 22332} 22333/@datadir@/p 22334/@docdir@/p 22335/@infodir@/p 22336/@localedir@/p 22337/@mandir@/p 22338' 22339case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 22340*datarootdir*) ac_datarootdir_seen=yes;; 22341*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22342 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22343$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22344_ACEOF 22345cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22346 ac_datarootdir_hack=' 22347 s&@datadir@&$datadir&g 22348 s&@docdir@&$docdir&g 22349 s&@infodir@&$infodir&g 22350 s&@localedir@&$localedir&g 22351 s&@mandir@&$mandir&g 22352 s&\\\${datarootdir}&$datarootdir&g' ;; 22353esac 22354_ACEOF 22355 22356# Neutralize VPATH when `$srcdir' = `.'. 22357# Shell code in configure.ac might set extrasub. 22358# FIXME: do we really want to maintain this feature? 22359cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22360ac_sed_extra="$ac_vpsub 22361$extrasub 22362_ACEOF 22363cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22364:t 22365/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22366s|@configure_input@|$ac_sed_conf_input|;t t 22367s&@top_builddir@&$ac_top_builddir_sub&;t t 22368s&@top_build_prefix@&$ac_top_build_prefix&;t t 22369s&@srcdir@&$ac_srcdir&;t t 22370s&@abs_srcdir@&$ac_abs_srcdir&;t t 22371s&@top_srcdir@&$ac_top_srcdir&;t t 22372s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22373s&@builddir@&$ac_builddir&;t t 22374s&@abs_builddir@&$ac_abs_builddir&;t t 22375s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22376s&@INSTALL@&$ac_INSTALL&;t t 22377s&@MKDIR_P@&$ac_MKDIR_P&;t t 22378$ac_datarootdir_hack 22379" 22380eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 22381 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 22382$as_echo "$as_me: error: could not create $ac_file" >&2;} 22383 { (exit 1); exit 1; }; } 22384 22385test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22386 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 22387 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 22388 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22389which seems to be undefined. Please make sure it is defined." >&5 22390$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22391which seems to be undefined. Please make sure it is defined." >&2;} 22392 22393 rm -f "$tmp/stdin" 22394 case $ac_file in 22395 -) cat "$tmp/out" && rm -f "$tmp/out";; 22396 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 22397 esac \ 22398 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 22399$as_echo "$as_me: error: could not create $ac_file" >&2;} 22400 { (exit 1); exit 1; }; } 22401 ;; 22402 :H) 22403 # 22404 # CONFIG_HEADER 22405 # 22406 if test x"$ac_file" != x-; then 22407 { 22408 $as_echo "/* $configure_input */" \ 22409 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 22410 } >"$tmp/config.h" \ 22411 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 22412$as_echo "$as_me: error: could not create $ac_file" >&2;} 22413 { (exit 1); exit 1; }; } 22414 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 22415 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 22416$as_echo "$as_me: $ac_file is unchanged" >&6;} 22417 else 22418 rm -f "$ac_file" 22419 mv "$tmp/config.h" "$ac_file" \ 22420 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 22421$as_echo "$as_me: error: could not create $ac_file" >&2;} 22422 { (exit 1); exit 1; }; } 22423 fi 22424 else 22425 $as_echo "/* $configure_input */" \ 22426 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 22427 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 22428$as_echo "$as_me: error: could not create -" >&2;} 22429 { (exit 1); exit 1; }; } 22430 fi 22431# Compute "$ac_file"'s index in $config_headers. 22432_am_arg="$ac_file" 22433_am_stamp_count=1 22434for _am_header in $config_headers :; do 22435 case $_am_header in 22436 $_am_arg | $_am_arg:* ) 22437 break ;; 22438 * ) 22439 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22440 esac 22441done 22442echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 22443$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22444 X"$_am_arg" : 'X\(//\)[^/]' \| \ 22445 X"$_am_arg" : 'X\(//\)$' \| \ 22446 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 22447$as_echo X"$_am_arg" | 22448 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22449 s//\1/ 22450 q 22451 } 22452 /^X\(\/\/\)[^/].*/{ 22453 s//\1/ 22454 q 22455 } 22456 /^X\(\/\/\)$/{ 22457 s//\1/ 22458 q 22459 } 22460 /^X\(\/\).*/{ 22461 s//\1/ 22462 q 22463 } 22464 s/.*/./; q'`/stamp-h$_am_stamp_count 22465 ;; 22466 22467 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 22468$as_echo "$as_me: executing $ac_file commands" >&6;} 22469 ;; 22470 esac 22471 22472 22473 case $ac_file$ac_mode in 22474 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 22475 # Autoconf 2.62 quotes --file arguments for eval, but not when files 22476 # are listed without --file. Let's play safe and only enable the eval 22477 # if we detect the quoting. 22478 case $CONFIG_FILES in 22479 *\'*) eval set x "$CONFIG_FILES" ;; 22480 *) set x $CONFIG_FILES ;; 22481 esac 22482 shift 22483 for mf 22484 do 22485 # Strip MF so we end up with the name of the file. 22486 mf=`echo "$mf" | sed -e 's/:.*$//'` 22487 # Check whether this is an Automake generated Makefile or not. 22488 # We used to match only the files named `Makefile.in', but 22489 # some people rename them; so instead we look at the file content. 22490 # Grep'ing the first line is not enough: some people post-process 22491 # each Makefile.in and add a new line on top of each file to say so. 22492 # Grep'ing the whole file is not good either: AIX grep has a line 22493 # limit of 2048, but all sed's we know have understand at least 4000. 22494 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 22495 dirpart=`$as_dirname -- "$mf" || 22496$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22497 X"$mf" : 'X\(//\)[^/]' \| \ 22498 X"$mf" : 'X\(//\)$' \| \ 22499 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 22500$as_echo X"$mf" | 22501 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22502 s//\1/ 22503 q 22504 } 22505 /^X\(\/\/\)[^/].*/{ 22506 s//\1/ 22507 q 22508 } 22509 /^X\(\/\/\)$/{ 22510 s//\1/ 22511 q 22512 } 22513 /^X\(\/\).*/{ 22514 s//\1/ 22515 q 22516 } 22517 s/.*/./; q'` 22518 else 22519 continue 22520 fi 22521 # Extract the definition of DEPDIR, am__include, and am__quote 22522 # from the Makefile without running `make'. 22523 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 22524 test -z "$DEPDIR" && continue 22525 am__include=`sed -n 's/^am__include = //p' < "$mf"` 22526 test -z "am__include" && continue 22527 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 22528 # When using ansi2knr, U may be empty or an underscore; expand it 22529 U=`sed -n 's/^U = //p' < "$mf"` 22530 # Find all dependency output files, they are included files with 22531 # $(DEPDIR) in their names. We invoke sed twice because it is the 22532 # simplest approach to changing $(DEPDIR) to its actual value in the 22533 # expansion. 22534 for file in `sed -n " 22535 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 22536 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 22537 # Make sure the directory exists. 22538 test -f "$dirpart/$file" && continue 22539 fdir=`$as_dirname -- "$file" || 22540$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22541 X"$file" : 'X\(//\)[^/]' \| \ 22542 X"$file" : 'X\(//\)$' \| \ 22543 X"$file" : 'X\(/\)' \| . 2>/dev/null || 22544$as_echo X"$file" | 22545 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22546 s//\1/ 22547 q 22548 } 22549 /^X\(\/\/\)[^/].*/{ 22550 s//\1/ 22551 q 22552 } 22553 /^X\(\/\/\)$/{ 22554 s//\1/ 22555 q 22556 } 22557 /^X\(\/\).*/{ 22558 s//\1/ 22559 q 22560 } 22561 s/.*/./; q'` 22562 { as_dir=$dirpart/$fdir 22563 case $as_dir in #( 22564 -*) as_dir=./$as_dir;; 22565 esac 22566 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 22567 as_dirs= 22568 while :; do 22569 case $as_dir in #( 22570 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 22571 *) as_qdir=$as_dir;; 22572 esac 22573 as_dirs="'$as_qdir' $as_dirs" 22574 as_dir=`$as_dirname -- "$as_dir" || 22575$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22576 X"$as_dir" : 'X\(//\)[^/]' \| \ 22577 X"$as_dir" : 'X\(//\)$' \| \ 22578 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22579$as_echo X"$as_dir" | 22580 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22581 s//\1/ 22582 q 22583 } 22584 /^X\(\/\/\)[^/].*/{ 22585 s//\1/ 22586 q 22587 } 22588 /^X\(\/\/\)$/{ 22589 s//\1/ 22590 q 22591 } 22592 /^X\(\/\).*/{ 22593 s//\1/ 22594 q 22595 } 22596 s/.*/./; q'` 22597 test -d "$as_dir" && break 22598 done 22599 test -z "$as_dirs" || eval "mkdir $as_dirs" 22600 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 22601$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 22602 { (exit 1); exit 1; }; }; } 22603 # echo "creating $dirpart/$file" 22604 echo '# dummy' > "$dirpart/$file" 22605 done 22606 done 22607} 22608 ;; 22609 22610 esac 22611done # for ac_tag 22612 22613 22614{ (exit 0); exit 0; } 22615_ACEOF 22616chmod +x $CONFIG_STATUS 22617ac_clean_files=$ac_clean_files_save 22618 22619test $ac_write_fail = 0 || 22620 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 22621$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 22622 { (exit 1); exit 1; }; } 22623 22624 22625# configure is writing to config.log, and then calls config.status. 22626# config.status does its own redirection, appending to config.log. 22627# Unfortunately, on DOS this fails, as config.log is still kept open 22628# by configure, so config.status won't be able to write to it; its 22629# output is simply discarded. So we exec the FD to /dev/null, 22630# effectively closing config.log, so it can be properly (re)opened and 22631# appended to by config.status. When coming back to configure, we 22632# need to make the FD available again. 22633if test "$no_create" != yes; then 22634 ac_cs_success=: 22635 ac_config_status_args= 22636 test "$silent" = yes && 22637 ac_config_status_args="$ac_config_status_args --quiet" 22638 exec 5>/dev/null 22639 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22640 exec 5>>config.log 22641 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22642 # would make configure fail if this is the last instruction. 22643 $ac_cs_success || { (exit 1); exit 1; } 22644fi 22645if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 22646 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 22647$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 22648fi 22649 22650