1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.60-MirPorts-2. 4# 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9## --------------------- ## 10## M4sh Initialization. ## 11## --------------------- ## 12 13# Be Bourne compatible 14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 15 emulate sh 16 NULLCMD=: 17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 18 # is contrary to our usage. Disable this feature. 19 alias -g '${1+"$@"}'='"$@"' 20 setopt NO_GLOB_SUBST 21else 22 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 23fi 24BIN_SH=xpg4; export BIN_SH # for Tru64 25DUALCASE=1; export DUALCASE # for MKS sh 26 27 28# PATH needs CR 29# Avoid depending upon Character Ranges. 30as_cr_letters='abcdefghijklmnopqrstuvwxyz' 31as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 32as_cr_Letters=$as_cr_letters$as_cr_LETTERS 33as_cr_digits='0123456789' 34as_cr_alnum=$as_cr_Letters$as_cr_digits 35 36# The user is always right. 37if test "${PATH_SEPARATOR+set}" != set; then 38 echo "#! /bin/sh" >conf$$.sh 39 echo "exit 0" >>conf$$.sh 40 chmod +x conf$$.sh 41 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 42 PATH_SEPARATOR=';' 43 else 44 PATH_SEPARATOR=: 45 fi 46 rm -f conf$$.sh 47fi 48 49# Support unset when possible. 50if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 51 as_unset=unset 52else 53 as_unset=false 54fi 55 56 57# IFS 58# We need space, tab and new line, in precisely that order. Quoting is 59# there to prevent editors from complaining about space-tab. 60# (If _AS_PATH_WALK were called with IFS unset, it would disable word 61# splitting by setting IFS to empty value.) 62as_nl=' 63' 64IFS=" "" $as_nl" 65 66# Find who we are. Look in the path if we contain no directory separator. 67case $0 in 68 *[\\/]* ) as_myself=$0 ;; 69 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 70for as_dir in $PATH 71do 72 IFS=$as_save_IFS 73 test -z "$as_dir" && as_dir=. 74 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 75done 76IFS=$as_save_IFS 77 78 ;; 79esac 80# We did not find ourselves, most probably we were run as `sh COMMAND' 81# in which case we are not to be found in the path. 82if test "x$as_myself" = x; then 83 as_myself=$0 84fi 85if test ! -f "$as_myself"; then 86 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 87 { (exit 1); exit 1; } 88fi 89 90# Work around bugs in pre-3.0 UWIN ksh. 91for as_var in ENV MAIL MAILPATH 92do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 93done 94PS1='$ ' 95PS2='> ' 96PS4='+ ' 97 98# NLS nuisances. 99for as_var in \ 100 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 101 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 102 LC_TELEPHONE LC_TIME 103do 104 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 105 eval $as_var=C; export $as_var 106 else 107 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 108 fi 109done 110 111# Required to use basename. 112if expr a : '\(a\)' >/dev/null 2>&1 && 113 test "X`expr 00001 : '.*\(...\)'`" = X001; then 114 as_expr=expr 115else 116 as_expr=false 117fi 118 119if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 120 as_basename=basename 121else 122 as_basename=false 123fi 124 125 126# Name of the executable. 127as_me=`$as_basename -- "$0" || 128$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 129 X"$0" : 'X\(//\)$' \| \ 130 X"$0" : 'X\(/\)' \| . 2>/dev/null || 131echo X/"$0" | 132 sed '/^.*\/\([^/][^/]*\)\/*$/{ 133 s//\1/ 134 q 135 } 136 /^X\/\(\/\/\)$/{ 137 s//\1/ 138 q 139 } 140 /^X\/\(\/\).*/{ 141 s//\1/ 142 q 143 } 144 s/.*/./; q'` 145 146# CDPATH. 147$as_unset CDPATH 148 149 150if test "x$CONFIG_SHELL" = x; then 151 if (eval ":") 2>/dev/null; then 152 as_have_required=yes 153else 154 as_have_required=no 155fi 156 157 if test $as_have_required = yes && (eval ": 158(as_func_return () { 159 (exit \$1) 160} 161as_func_success () { 162 as_func_return 0 163} 164as_func_failure () { 165 as_func_return 1 166} 167as_func_ret_success () { 168 return 0 169} 170as_func_ret_failure () { 171 return 1 172} 173 174exitcode=0 175if as_func_success; then 176 : 177else 178 exitcode=1 179 echo as_func_success failed. 180fi 181 182if as_func_failure; then 183 exitcode=1 184 echo as_func_failure succeeded. 185fi 186 187if as_func_ret_success; then 188 : 189else 190 exitcode=1 191 echo as_func_ret_success failed. 192fi 193 194if as_func_ret_failure; then 195 exitcode=1 196 echo as_func_ret_failure succeeded. 197fi 198 199if (set x; as_func_ret_success y && test x = \"\$1\" ); then 200 : 201else 202 exitcode=1 203 echo positional parameters were not saved. 204fi 205 206test \$exitcode = 0) || { (exit 1); exit 1; } 207 208( 209 as_lineno_1=\$LINENO 210 as_lineno_2=\$LINENO 211 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 212 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 213") 2> /dev/null; then 214 : 215else 216 as_candidate_shells= 217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 218for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 case $as_dir in 223 /*) 224 for as_base in sh bash ksh sh5; do 225 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 226 done;; 227 esac 228done 229IFS=$as_save_IFS 230 231 232 for as_shell in $as_candidate_shells $SHELL; do 233 # Try only shells that exist, to save several forks. 234 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 235 { ("$as_shell") 2> /dev/null <<\_ASEOF 236# Be Bourne compatible 237if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 238 emulate sh 239 NULLCMD=: 240 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 241 # is contrary to our usage. Disable this feature. 242 alias -g '${1+"$@"}'='"$@"' 243 setopt NO_GLOB_SUBST 244else 245 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 246fi 247BIN_SH=xpg4; export BIN_SH # for Tru64 248DUALCASE=1; export DUALCASE # for MKS sh 249 250: 251_ASEOF 252}; then 253 CONFIG_SHELL=$as_shell 254 as_have_required=yes 255 if { "$as_shell" 2> /dev/null <<\_ASEOF 256# Be Bourne compatible 257if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 258 emulate sh 259 NULLCMD=: 260 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 261 # is contrary to our usage. Disable this feature. 262 alias -g '${1+"$@"}'='"$@"' 263 setopt NO_GLOB_SUBST 264else 265 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 266fi 267BIN_SH=xpg4; export BIN_SH # for Tru64 268DUALCASE=1; export DUALCASE # for MKS sh 269 270: 271(as_func_return () { 272 (exit $1) 273} 274as_func_success () { 275 as_func_return 0 276} 277as_func_failure () { 278 as_func_return 1 279} 280as_func_ret_success () { 281 return 0 282} 283as_func_ret_failure () { 284 return 1 285} 286 287exitcode=0 288if as_func_success; then 289 : 290else 291 exitcode=1 292 echo as_func_success failed. 293fi 294 295if as_func_failure; then 296 exitcode=1 297 echo as_func_failure succeeded. 298fi 299 300if as_func_ret_success; then 301 : 302else 303 exitcode=1 304 echo as_func_ret_success failed. 305fi 306 307if as_func_ret_failure; then 308 exitcode=1 309 echo as_func_ret_failure succeeded. 310fi 311 312if ( set x; as_func_ret_success y && test x = "$1" ); then 313 : 314else 315 exitcode=1 316 echo positional parameters were not saved. 317fi 318 319test $exitcode = 0) || { (exit 1); exit 1; } 320 321( 322 as_lineno_1=$LINENO 323 as_lineno_2=$LINENO 324 test "x$as_lineno_1" != "x$as_lineno_2" && 325 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 326 327_ASEOF 328}; then 329 break 330fi 331 332fi 333 334 done 335 336 if test "x$CONFIG_SHELL" != x; then 337 for as_var in BASH_ENV ENV 338 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 339 done 340 export CONFIG_SHELL 341 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 342fi 343 344 345 if test $as_have_required = no; then 346 echo This script requires a shell more modern than all the 347 echo shells that I found on your system. Please install a 348 echo modern shell, or manually run the script under such a 349 echo shell if you do have one. 350 { (exit 1); exit 1; } 351fi 352 353 354fi 355 356fi 357 358 359 360(eval "as_func_return () { 361 (exit \$1) 362} 363as_func_success () { 364 as_func_return 0 365} 366as_func_failure () { 367 as_func_return 1 368} 369as_func_ret_success () { 370 return 0 371} 372as_func_ret_failure () { 373 return 1 374} 375 376exitcode=0 377if as_func_success; then 378 : 379else 380 exitcode=1 381 echo as_func_success failed. 382fi 383 384if as_func_failure; then 385 exitcode=1 386 echo as_func_failure succeeded. 387fi 388 389if as_func_ret_success; then 390 : 391else 392 exitcode=1 393 echo as_func_ret_success failed. 394fi 395 396if as_func_ret_failure; then 397 exitcode=1 398 echo as_func_ret_failure succeeded. 399fi 400 401if (set x; as_func_ret_success y && test x = \"\$1\" ); then 402 : 403else 404 exitcode=1 405 echo positional parameters were not saved. 406fi 407 408test \$exitcode = 0") || { 409 echo No shell found that supports shell functions. 410 echo Please tell autoconf@gnu.org about your system, 411 echo including any error possibly output before this 412 echo message 413} 414 415 416 417 as_lineno_1=$LINENO 418 as_lineno_2=$LINENO 419 test "x$as_lineno_1" != "x$as_lineno_2" && 420 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 421 422 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 423 # uniformly replaced by the line number. The first 'sed' inserts a 424 # line-number line after each line using $LINENO; the second 'sed' 425 # does the real work. The second script uses 'N' to pair each 426 # line-number line with the line containing $LINENO, and appends 427 # trailing '-' during substitution so that $LINENO is not a special 428 # case at line end. 429 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 430 # scripts with optimization help from Paolo Bonzini. Blame Lee 431 # E. McMahon (1931-1989) for sed's syntax. :-) 432 sed -n ' 433 p 434 /[$]LINENO/= 435 ' <$as_myself | 436 sed ' 437 s/[$]LINENO.*/&-/ 438 t lineno 439 b 440 :lineno 441 N 442 :loop 443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 444 t loop 445 s/-\n.*// 446 ' >$as_me.lineno && 447 chmod +x "$as_me.lineno" || 448 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 449 { (exit 1); exit 1; }; } 450 451 # Don't try to exec as it changes $[0], causing all sort of problems 452 # (the dirname of $[0] is not the place where we might find the 453 # original and so on. Autoconf is especially sensitive to this). 454 . "./$as_me.lineno" 455 # Exit status is that of the last command. 456 exit 457} 458 459 460if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 461 as_dirname=dirname 462else 463 as_dirname=false 464fi 465 466ECHO_C= ECHO_N= ECHO_T= 467case `echo -n x` in 468-n*) 469 case `echo 'x\c'` in 470 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 471 *) ECHO_C='\c';; 472 esac;; 473*) 474 ECHO_N='-n';; 475esac 476 477if expr a : '\(a\)' >/dev/null 2>&1 && 478 test "X`expr 00001 : '.*\(...\)'`" = X001; then 479 as_expr=expr 480else 481 as_expr=false 482fi 483 484rm -f conf$$ conf$$.exe conf$$.file 485if test -d conf$$.dir; then 486 rm -f conf$$.dir/conf$$.file 487else 488 rm -f conf$$.dir 489 mkdir conf$$.dir 490fi 491echo >conf$$.file 492if ln -s conf$$.file conf$$ 2>/dev/null; then 493 as_ln_s='ln -s' 494 # ... but there are two gotchas: 495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 497 # In both cases, we have to default to `cp -p'. 498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 499 as_ln_s='cp -p' 500elif ln conf$$.file conf$$ 2>/dev/null; then 501 as_ln_s=ln 502else 503 as_ln_s='cp -p' 504fi 505rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 506rmdir conf$$.dir 2>/dev/null 507 508if mkdir -p . 2>/dev/null; then 509 as_mkdir_p=: 510else 511 test -d ./-p && rmdir ./-p 512 as_mkdir_p=false 513fi 514 515# Find out whether ``test -x'' works. Don't use a zero-byte file, as 516# systems may use methods other than mode bits to determine executability. 517cat >conf$$.file <<_ASEOF 518#! /bin/sh 519exit 0 520_ASEOF 521chmod +x conf$$.file 522if test -x conf$$.file >/dev/null 2>&1; then 523 as_executable_p="test -x" 524else 525 as_executable_p=: 526fi 527rm -f conf$$.file 528 529# Sed expression to map a string onto a valid CPP name. 530as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 531 532# Sed expression to map a string onto a valid variable name. 533as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 534 535 536 537 538 539# Check that we are running under the correct shell. 540SHELL=${CONFIG_SHELL-/bin/sh} 541 542case X$ECHO in 543X*--fallback-echo) 544 # Remove one level of quotation (which was required for Make). 545 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 546 ;; 547esac 548 549echo=${ECHO-echo} 550if test "X$1" = X--no-reexec; then 551 # Discard the --no-reexec flag, and continue. 552 shift 553elif test "X$1" = X--fallback-echo; then 554 # Avoid inline document here, it may be left over 555 : 556elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 557 # Yippee, $echo works! 558 : 559else 560 # Restart under the correct shell. 561 exec $SHELL "$0" --no-reexec ${1+"$@"} 562fi 563 564if test "X$1" = X--fallback-echo; then 565 # used as fallback echo 566 shift 567 cat <<EOF 568$* 569EOF 570 exit 0 571fi 572 573# The HP-UX ksh and POSIX shell print the target directory to stdout 574# if CDPATH is set. 575(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 576 577if test -z "$ECHO"; then 578if test "X${echo_test_string+set}" != Xset; then 579# find a string as large as possible, as long as the shell can cope with it 580 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 581 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 582 if (echo_test_string=`eval $cmd`) 2>/dev/null && 583 echo_test_string=`eval $cmd` && 584 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 585 then 586 break 587 fi 588 done 589fi 590 591if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 592 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 593 test "X$echo_testing_string" = "X$echo_test_string"; then 594 : 595else 596 # The Solaris, AIX, and Digital Unix default echo programs unquote 597 # backslashes. This makes it impossible to quote backslashes using 598 # echo "$something" | sed 's/\\/\\\\/g' 599 # 600 # So, first we look for a working echo in the user's PATH. 601 602 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 603 for dir in $PATH /usr/ucb; do 604 IFS="$lt_save_ifs" 605 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 606 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 607 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 608 test "X$echo_testing_string" = "X$echo_test_string"; then 609 echo="$dir/echo" 610 break 611 fi 612 done 613 IFS="$lt_save_ifs" 614 615 if test "X$echo" = Xecho; then 616 # We didn't find a better echo, so look for alternatives. 617 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 618 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 619 test "X$echo_testing_string" = "X$echo_test_string"; then 620 # This shell has a builtin print -r that does the trick. 621 echo='print -r' 622 elif test -f ${MKSH:-/bin/mksh} && 623 test "X$CONFIG_SHELL" != X${MKSH:-/bin/mksh}; then 624 # If we have mksh, try running configure again with it. 625 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 626 export ORIGINAL_CONFIG_SHELL 627 CONFIG_SHELL=${MKSH:-/bin/mksh} 628 export CONFIG_SHELL 629 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 630 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 631 test "X$CONFIG_SHELL" != X/bin/ksh; then 632 # If we have ksh, try running configure again with it. 633 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 634 export ORIGINAL_CONFIG_SHELL 635 CONFIG_SHELL=/bin/ksh 636 export CONFIG_SHELL 637 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 638 else 639 # Try using printf. 640 echo='printf %s\n' 641 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 642 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 643 test "X$echo_testing_string" = "X$echo_test_string"; then 644 # Cool, printf works 645 : 646 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 647 test "X$echo_testing_string" = 'X\t' && 648 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 649 test "X$echo_testing_string" = "X$echo_test_string"; then 650 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 651 export CONFIG_SHELL 652 SHELL="$CONFIG_SHELL" 653 export SHELL 654 echo="$CONFIG_SHELL $0 --fallback-echo" 655 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 656 test "X$echo_testing_string" = 'X\t' && 657 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 658 test "X$echo_testing_string" = "X$echo_test_string"; then 659 echo="$CONFIG_SHELL $0 --fallback-echo" 660 else 661 # maybe with a smaller string... 662 prev=: 663 664 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 665 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 666 then 667 break 668 fi 669 prev="$cmd" 670 done 671 672 if test "$prev" != 'sed 50q "$0"'; then 673 echo_test_string=`eval $prev` 674 export echo_test_string 675 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 676 else 677 # Oops. We lost completely, so just stick with echo. 678 echo=echo 679 fi 680 fi 681 fi 682 fi 683fi 684fi 685 686# Copy echo and quote the copy suitably for passing to libtool from 687# the Makefile, instead of quoting the original, which is used later. 688ECHO=$echo 689if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 690 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 691fi 692 693 694 695 696tagnames=${tagnames+${tagnames},}CXX 697 698tagnames=${tagnames+${tagnames},}F77 699 700exec 7<&0 </dev/null 6>&1 701 702# Name of the host. 703# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 704# so uname gets run too. 705ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 706 707# 708# Initializations. 709# 710ac_default_prefix=/usr/local 711ac_clean_files= 712ac_config_libobj_dir=. 713LIBOBJS= 714cross_compiling=no 715subdirs= 716MFLAGS= 717MAKEFLAGS= 718SHELL=${CONFIG_SHELL-/bin/sh} 719 720# Identity of this package. 721PACKAGE_NAME= 722PACKAGE_TARNAME= 723PACKAGE_VERSION= 724PACKAGE_STRING= 725PACKAGE_BUGREPORT= 726 727ac_unique_file="z8k-dis.c" 728# Factoring default headers for most tests. 729ac_includes_default="\ 730#include <stdio.h> 731#if HAVE_SYS_TYPES_H 732# include <sys/types.h> 733#endif 734#if HAVE_SYS_STAT_H 735# include <sys/stat.h> 736#endif 737#if STDC_HEADERS 738# include <stdlib.h> 739# include <stddef.h> 740#else 741# if HAVE_STDLIB_H 742# include <stdlib.h> 743# endif 744#endif 745#if HAVE_STRING_H 746# if !STDC_HEADERS && HAVE_MEMORY_H 747# include <memory.h> 748# endif 749# include <string.h> 750#endif 751#if HAVE_STRINGS_H 752# include <strings.h> 753#endif 754#if HAVE_INTTYPES_H 755# include <inttypes.h> 756#endif 757#if HAVE_STDINT_H 758# include <stdint.h> 759#endif 760#if HAVE_UNISTD_H 761# include <unistd.h> 762#endif" 763 764ac_subst_vars='SHELL 765PATH_SEPARATOR 766PACKAGE_NAME 767PACKAGE_TARNAME 768PACKAGE_VERSION 769PACKAGE_STRING 770PACKAGE_BUGREPORT 771exec_prefix 772prefix 773program_transform_name 774bindir 775sbindir 776libexecdir 777datarootdir 778datadir 779sysconfdir 780sharedstatedir 781localstatedir 782includedir 783oldincludedir 784docdir 785infodir 786htmldir 787dvidir 788pdfdir 789psdir 790libdir 791localedir 792mandir 793DEFS 794ECHO_C 795ECHO_N 796ECHO_T 797LIBS 798build_alias 799host_alias 800target_alias 801build 802build_cpu 803build_vendor 804build_os 805host 806host_cpu 807host_vendor 808host_os 809target 810target_cpu 811target_vendor 812target_os 813CC 814CFLAGS 815LDFLAGS 816CPPFLAGS 817ac_ct_CC 818EXEEXT 819OBJEXT 820INSTALL_PROGRAM 821INSTALL_SCRIPT 822INSTALL_DATA 823CYGPATH_W 824PACKAGE 825VERSION 826ACLOCAL 827AUTOCONF 828AUTOMAKE 829AUTOHEADER 830MAKEINFO 831install_sh 832STRIP 833INSTALL_STRIP_PROGRAM 834mkdir_p 835AWK 836SET_MAKE 837am__leading_dot 838AMTAR 839am__tar 840am__untar 841DEPDIR 842am__include 843am__quote 844AMDEP_TRUE 845AMDEP_FALSE 846AMDEPBACKSLASH 847CCDEPMODE 848am__fastdepCC_TRUE 849am__fastdepCC_FALSE 850AR 851RANLIB 852SED 853GREP 854EGREP 855LN_S 856ECHO 857CPP 858CXX 859CXXFLAGS 860ac_ct_CXX 861CXXDEPMODE 862am__fastdepCXX_TRUE 863am__fastdepCXX_FALSE 864CXXCPP 865F77 866FFLAGS 867ac_ct_F77 868LIBTOOL 869WARN_CFLAGS 870NO_WERROR 871MAINTAINER_MODE_TRUE 872MAINTAINER_MODE_FALSE 873MAINT 874INSTALL_LIBBFD_TRUE 875INSTALL_LIBBFD_FALSE 876host_noncanonical 877target_noncanonical 878bfdlibdir 879bfdincludedir 880CC_FOR_BUILD 881EXEEXT_FOR_BUILD 882HDEFINES 883CGEN_MAINT_TRUE 884CGEN_MAINT_FALSE 885cgendir 886WIN32LDFLAGS 887WIN32LIBADD 888archdefs 889BFD_MACHINES 890LIBOBJS 891LTLIBOBJS' 892ac_subst_files='' 893 ac_precious_vars='build_alias 894host_alias 895target_alias 896CC 897CFLAGS 898LDFLAGS 899CPPFLAGS 900CPP 901CXX 902CXXFLAGS 903CCC 904CXXCPP 905F77 906FFLAGS' 907 908 909# Initialize some variables set by options. 910ac_init_help= 911ac_init_version=false 912# The variables have the same names as the options, with 913# dashes changed to underlines. 914cache_file=/dev/null 915exec_prefix=NONE 916no_create= 917no_recursion= 918prefix=NONE 919program_prefix=NONE 920program_suffix=NONE 921program_transform_name=s,x,x, 922silent= 923site= 924srcdir= 925verbose= 926x_includes=NONE 927x_libraries=NONE 928 929# Installation directory options. 930# These are left unexpanded so users can "make install exec_prefix=/foo" 931# and all the variables that are supposed to be based on exec_prefix 932# by default will actually change. 933# Use braces instead of parens because sh, perl, etc. also accept them. 934# (The list follows the same order as the GNU Coding Standards.) 935bindir='${exec_prefix}/bin' 936sbindir='${exec_prefix}/sbin' 937libexecdir='${exec_prefix}/libexec' 938datarootdir='${prefix}/share' 939datadir='${datarootdir}' 940sysconfdir='${prefix}/etc' 941sharedstatedir='${prefix}/com' 942localstatedir='${prefix}/var' 943includedir='${prefix}/include' 944oldincludedir='/usr/include' 945docdir='${datarootdir}/doc/${PACKAGE}' 946infodir='${datarootdir}/info' 947htmldir='${docdir}' 948dvidir='${docdir}' 949pdfdir='${docdir}' 950psdir='${docdir}' 951libdir='${exec_prefix}/lib' 952localedir='${datarootdir}/locale' 953mandir='${datarootdir}/man' 954 955ac_prev= 956ac_dashdash= 957for ac_option 958do 959 # If the previous option needs an argument, assign it. 960 if test -n "$ac_prev"; then 961 eval $ac_prev=\$ac_option 962 ac_prev= 963 continue 964 fi 965 966 case $ac_option in 967 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 968 *) ac_optarg=yes ;; 969 esac 970 971 # Accept the important Cygnus configure options, so we can diagnose typos. 972 973 case $ac_dashdash$ac_option in 974 --) 975 ac_dashdash=yes ;; 976 977 -bindir | --bindir | --bindi | --bind | --bin | --bi) 978 ac_prev=bindir ;; 979 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 980 bindir=$ac_optarg ;; 981 982 -build | --build | --buil | --bui | --bu) 983 ac_prev=build_alias ;; 984 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 985 build_alias=$ac_optarg ;; 986 987 -cache-file | --cache-file | --cache-fil | --cache-fi \ 988 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 989 ac_prev=cache_file ;; 990 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 991 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 992 cache_file=$ac_optarg ;; 993 994 --config-cache | -C) 995 cache_file=config.cache ;; 996 997 -datadir | --datadir | --datadi | --datad) 998 ac_prev=datadir ;; 999 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1000 datadir=$ac_optarg ;; 1001 1002 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1003 | --dataroo | --dataro | --datar) 1004 ac_prev=datarootdir ;; 1005 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1006 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1007 datarootdir=$ac_optarg ;; 1008 1009 -disable-* | --disable-*) 1010 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1011 # Reject names that are not valid shell variable names. 1012 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 1013 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1014 { (exit 1); exit 1; }; } 1015 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 1016 eval enable_$ac_feature=no ;; 1017 1018 -docdir | --docdir | --docdi | --doc | --do) 1019 ac_prev=docdir ;; 1020 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1021 docdir=$ac_optarg ;; 1022 1023 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1024 ac_prev=dvidir ;; 1025 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1026 dvidir=$ac_optarg ;; 1027 1028 -enable-* | --enable-*) 1029 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1030 # Reject names that are not valid shell variable names. 1031 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 1032 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1033 { (exit 1); exit 1; }; } 1034 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 1035 eval enable_$ac_feature=\$ac_optarg ;; 1036 1037 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1038 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1039 | --exec | --exe | --ex) 1040 ac_prev=exec_prefix ;; 1041 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1042 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1043 | --exec=* | --exe=* | --ex=*) 1044 exec_prefix=$ac_optarg ;; 1045 1046 -gas | --gas | --ga | --g) 1047 # Obsolete; use --with-gas. 1048 with_gas=yes ;; 1049 1050 -help | --help | --hel | --he | -h) 1051 ac_init_help=long ;; 1052 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1053 ac_init_help=recursive ;; 1054 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1055 ac_init_help=short ;; 1056 1057 -host | --host | --hos | --ho) 1058 ac_prev=host_alias ;; 1059 -host=* | --host=* | --hos=* | --ho=*) 1060 host_alias=$ac_optarg ;; 1061 1062 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1063 ac_prev=htmldir ;; 1064 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1065 | --ht=*) 1066 htmldir=$ac_optarg ;; 1067 1068 -includedir | --includedir | --includedi | --included | --include \ 1069 | --includ | --inclu | --incl | --inc) 1070 ac_prev=includedir ;; 1071 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1072 | --includ=* | --inclu=* | --incl=* | --inc=*) 1073 includedir=$ac_optarg ;; 1074 1075 -infodir | --infodir | --infodi | --infod | --info | --inf) 1076 ac_prev=infodir ;; 1077 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1078 infodir=$ac_optarg ;; 1079 1080 -libdir | --libdir | --libdi | --libd) 1081 ac_prev=libdir ;; 1082 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1083 libdir=$ac_optarg ;; 1084 1085 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1086 | --libexe | --libex | --libe) 1087 ac_prev=libexecdir ;; 1088 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1089 | --libexe=* | --libex=* | --libe=*) 1090 libexecdir=$ac_optarg ;; 1091 1092 -localedir | --localedir | --localedi | --localed | --locale) 1093 ac_prev=localedir ;; 1094 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1095 localedir=$ac_optarg ;; 1096 1097 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1098 | --localstate | --localstat | --localsta | --localst | --locals) 1099 ac_prev=localstatedir ;; 1100 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1101 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1102 localstatedir=$ac_optarg ;; 1103 1104 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1105 ac_prev=mandir ;; 1106 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1107 mandir=$ac_optarg ;; 1108 1109 -nfp | --nfp | --nf) 1110 # Obsolete; use --without-fp. 1111 with_fp=no ;; 1112 1113 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1114 | --no-cr | --no-c | -n) 1115 no_create=yes ;; 1116 1117 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1118 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1119 no_recursion=yes ;; 1120 1121 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1122 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1123 | --oldin | --oldi | --old | --ol | --o) 1124 ac_prev=oldincludedir ;; 1125 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1126 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1127 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1128 oldincludedir=$ac_optarg ;; 1129 1130 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1131 ac_prev=prefix ;; 1132 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1133 prefix=$ac_optarg ;; 1134 1135 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1136 | --program-pre | --program-pr | --program-p) 1137 ac_prev=program_prefix ;; 1138 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1139 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1140 program_prefix=$ac_optarg ;; 1141 1142 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1143 | --program-suf | --program-su | --program-s) 1144 ac_prev=program_suffix ;; 1145 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1146 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1147 program_suffix=$ac_optarg ;; 1148 1149 -program-transform-name | --program-transform-name \ 1150 | --program-transform-nam | --program-transform-na \ 1151 | --program-transform-n | --program-transform- \ 1152 | --program-transform | --program-transfor \ 1153 | --program-transfo | --program-transf \ 1154 | --program-trans | --program-tran \ 1155 | --progr-tra | --program-tr | --program-t) 1156 ac_prev=program_transform_name ;; 1157 -program-transform-name=* | --program-transform-name=* \ 1158 | --program-transform-nam=* | --program-transform-na=* \ 1159 | --program-transform-n=* | --program-transform-=* \ 1160 | --program-transform=* | --program-transfor=* \ 1161 | --program-transfo=* | --program-transf=* \ 1162 | --program-trans=* | --program-tran=* \ 1163 | --progr-tra=* | --program-tr=* | --program-t=*) 1164 program_transform_name=$ac_optarg ;; 1165 1166 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1167 ac_prev=pdfdir ;; 1168 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1169 pdfdir=$ac_optarg ;; 1170 1171 -psdir | --psdir | --psdi | --psd | --ps) 1172 ac_prev=psdir ;; 1173 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1174 psdir=$ac_optarg ;; 1175 1176 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1177 | -silent | --silent | --silen | --sile | --sil) 1178 silent=yes ;; 1179 1180 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1181 ac_prev=sbindir ;; 1182 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1183 | --sbi=* | --sb=*) 1184 sbindir=$ac_optarg ;; 1185 1186 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1187 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1188 | --sharedst | --shareds | --shared | --share | --shar \ 1189 | --sha | --sh) 1190 ac_prev=sharedstatedir ;; 1191 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1192 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1193 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1194 | --sha=* | --sh=*) 1195 sharedstatedir=$ac_optarg ;; 1196 1197 -site | --site | --sit) 1198 ac_prev=site ;; 1199 -site=* | --site=* | --sit=*) 1200 site=$ac_optarg ;; 1201 1202 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1203 ac_prev=srcdir ;; 1204 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1205 srcdir=$ac_optarg ;; 1206 1207 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1208 | --syscon | --sysco | --sysc | --sys | --sy) 1209 ac_prev=sysconfdir ;; 1210 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1211 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1212 sysconfdir=$ac_optarg ;; 1213 1214 -target | --target | --targe | --targ | --tar | --ta | --t) 1215 ac_prev=target_alias ;; 1216 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1217 target_alias=$ac_optarg ;; 1218 1219 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1220 verbose=yes ;; 1221 1222 -version | --version | --versio | --versi | --vers | -V) 1223 ac_init_version=: ;; 1224 1225 -with-* | --with-*) 1226 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1227 # Reject names that are not valid shell variable names. 1228 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1229 { echo "$as_me: error: invalid package name: $ac_package" >&2 1230 { (exit 1); exit 1; }; } 1231 ac_package=`echo $ac_package| sed 's/-/_/g'` 1232 eval with_$ac_package=\$ac_optarg ;; 1233 1234 -without-* | --without-*) 1235 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1236 # Reject names that are not valid shell variable names. 1237 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1238 { echo "$as_me: error: invalid package name: $ac_package" >&2 1239 { (exit 1); exit 1; }; } 1240 ac_package=`echo $ac_package | sed 's/-/_/g'` 1241 eval with_$ac_package=no ;; 1242 1243 --x) 1244 # Obsolete; use --with-x. 1245 with_x=yes ;; 1246 1247 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1248 | --x-incl | --x-inc | --x-in | --x-i) 1249 ac_prev=x_includes ;; 1250 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1251 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1252 x_includes=$ac_optarg ;; 1253 1254 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1255 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1256 ac_prev=x_libraries ;; 1257 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1258 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1259 x_libraries=$ac_optarg ;; 1260 1261 -*) { echo "$as_me: error: unrecognized option: $ac_option 1262Try \`$0 --help' for more information." >&2 1263 { (exit 1); exit 1; }; } 1264 ;; 1265 1266 *=*) 1267 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1268 # Reject names that are not valid shell variable names. 1269 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1270 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1271 { (exit 1); exit 1; }; } 1272 eval $ac_envvar=\$ac_optarg 1273 export $ac_envvar ;; 1274 1275 *) 1276 # FIXME: should be removed in autoconf 3.0. 1277 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1278 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1279 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1280 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1281 ;; 1282 1283 esac 1284done 1285 1286if test -n "$ac_prev"; then 1287 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1288 { echo "$as_me: error: missing argument to $ac_option" >&2 1289 { (exit 1); exit 1; }; } 1290fi 1291 1292# Be sure to have absolute directory names. 1293for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1294 datadir sysconfdir sharedstatedir localstatedir includedir \ 1295 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1296 libdir localedir mandir 1297do 1298 eval ac_val=\$$ac_var 1299 case $ac_val in 1300 [\\/$]* | ?:[\\/]* ) continue;; 1301 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1302 esac 1303 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1304 { (exit 1); exit 1; }; } 1305done 1306 1307# There might be people who depend on the old broken behavior: `$host' 1308# used to hold the argument of --host etc. 1309# FIXME: To remove some day. 1310build=$build_alias 1311host=$host_alias 1312target=$target_alias 1313 1314# FIXME: To remove some day. 1315if test "x$host_alias" != x; then 1316 if test "x$build_alias" = x; then 1317 cross_compiling=maybe 1318 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1319 If a cross compiler is detected then cross compile mode will be used." >&2 1320 elif test "x$build_alias" != "x$host_alias"; then 1321 cross_compiling=yes 1322 fi 1323fi 1324 1325ac_tool_prefix= 1326test -n "$host_alias" && ac_tool_prefix=$host_alias- 1327 1328test "$silent" = yes && exec 6>/dev/null 1329 1330 1331ac_pwd=`pwd` && test -n "$ac_pwd" && 1332ac_ls_di=`ls -di .` && 1333ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1334 { echo "$as_me: error: Working directory cannot be determined" >&2 1335 { (exit 1); exit 1; }; } 1336test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1337 { echo "$as_me: error: pwd does not report name of working directory" >&2 1338 { (exit 1); exit 1; }; } 1339 1340 1341# Find the source files, if location was not specified. 1342if test -z "$srcdir"; then 1343 ac_srcdir_defaulted=yes 1344 # Try the directory containing this script, then the parent directory. 1345 ac_confdir=`$as_dirname -- "$0" || 1346$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1347 X"$0" : 'X\(//\)[^/]' \| \ 1348 X"$0" : 'X\(//\)$' \| \ 1349 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1350echo X"$0" | 1351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1352 s//\1/ 1353 q 1354 } 1355 /^X\(\/\/\)[^/].*/{ 1356 s//\1/ 1357 q 1358 } 1359 /^X\(\/\/\)$/{ 1360 s//\1/ 1361 q 1362 } 1363 /^X\(\/\).*/{ 1364 s//\1/ 1365 q 1366 } 1367 s/.*/./; q'` 1368 srcdir=$ac_confdir 1369 if test ! -r "$srcdir/$ac_unique_file"; then 1370 srcdir=.. 1371 fi 1372else 1373 ac_srcdir_defaulted=no 1374fi 1375if test ! -r "$srcdir/$ac_unique_file"; then 1376 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1377 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1378 { (exit 1); exit 1; }; } 1379fi 1380ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1381ac_abs_confdir=`( 1382 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1383 { (exit 1); exit 1; }; } 1384 pwd)` 1385# When building in place, set srcdir=. 1386if test "$ac_abs_confdir" = "$ac_pwd"; then 1387 srcdir=. 1388fi 1389# Remove unnecessary trailing slashes from srcdir. 1390# Double slashes in file names in object file debugging info 1391# mess up M-x gdb in Emacs. 1392case $srcdir in 1393*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1394esac 1395for ac_var in $ac_precious_vars; do 1396 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1397 eval ac_env_${ac_var}_value=\$${ac_var} 1398 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1399 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1400done 1401 1402# 1403# Report the --help message. 1404# 1405if test "$ac_init_help" = "long"; then 1406 # Omit some internal or obsolete options to make the list less imposing. 1407 # This message is too long to be a string in the A/UX 3.1 sh. 1408 cat <<_ACEOF 1409\`configure' configures this package to adapt to many kinds of systems. 1410 1411Usage: $0 [OPTION]... [VAR=VALUE]... 1412 1413To assign environment variables (e.g., CC, CFLAGS...), specify them as 1414VAR=VALUE. See below for descriptions of some of the useful variables. 1415 1416Defaults for the options are specified in brackets. 1417 1418Configuration: 1419 -h, --help display this help and exit 1420 --help=short display options specific to this package 1421 --help=recursive display the short help of all the included packages 1422 -V, --version display version information and exit 1423 -q, --quiet, --silent do not print \`checking...' messages 1424 --cache-file=FILE cache test results in FILE [disabled] 1425 -C, --config-cache alias for \`--cache-file=config.cache' 1426 -n, --no-create do not create output files 1427 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1428 1429Installation directories: 1430 --prefix=PREFIX install architecture-independent files in PREFIX 1431 [$ac_default_prefix] 1432 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1433 [PREFIX] 1434 1435By default, \`make install' will install all the files in 1436\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1437an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1438for instance \`--prefix=\$HOME'. 1439 1440For better control, use the options below. 1441 1442Fine tuning of the installation directories: 1443 --bindir=DIR user executables [EPREFIX/bin] 1444 --sbindir=DIR system admin executables [EPREFIX/sbin] 1445 --libexecdir=DIR program executables [EPREFIX/libexec] 1446 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1447 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1448 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1449 --libdir=DIR object code libraries [EPREFIX/lib] 1450 --includedir=DIR C header files [PREFIX/include] 1451 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1452 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1453 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1454 --infodir=DIR info documentation [DATAROOTDIR/info] 1455 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1456 --mandir=DIR man documentation [DATAROOTDIR/man] 1457 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1458 --htmldir=DIR html documentation [DOCDIR] 1459 --dvidir=DIR dvi documentation [DOCDIR] 1460 --pdfdir=DIR pdf documentation [DOCDIR] 1461 --psdir=DIR ps documentation [DOCDIR] 1462_ACEOF 1463 1464 cat <<\_ACEOF 1465 1466Program names: 1467 --program-prefix=PREFIX prepend PREFIX to installed program names 1468 --program-suffix=SUFFIX append SUFFIX to installed program names 1469 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1470 1471System types: 1472 --build=BUILD configure for building on BUILD [guessed] 1473 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1474 --target=TARGET configure for building compilers for TARGET [HOST] 1475_ACEOF 1476fi 1477 1478if test -n "$ac_init_help"; then 1479 1480 cat <<\_ACEOF 1481 1482Optional Features: 1483 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1484 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1485 --disable-dependency-tracking speeds up one-time build 1486 --enable-dependency-tracking do not reject slow dependency extractors 1487 --enable-shared[=PKGS] build shared libraries [default=no] 1488 --enable-static[=PKGS] build static libraries [default=yes] 1489 --enable-fast-install[=PKGS] 1490 optimize for fast installation [default=yes] 1491 --disable-libtool-lock avoid locking (might break parallel builds) 1492 --enable-targets alternative target configurations 1493 --enable-commonbfdlib build shared BFD/opcodes library 1494 --enable-werror treat compile warnings as errors 1495 --enable-build-warnings Enable build-time compiler warnings 1496 --enable-maintainer-mode enable make rules and dependencies not useful 1497 (and sometimes confusing) to the casual installer 1498 --enable-install-libbfd controls installation of libbfd and related headers 1499 --enable-cgen-maint=dir build cgen generated files 1500 1501Optional Packages: 1502 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1503 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1504 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1505 --with-pic try to use only PIC/non-PIC objects [default=use 1506 both] 1507 --with-tags[=TAGS] include additional configurations [automatic] 1508 1509Some influential environment variables: 1510 CC C compiler command 1511 CFLAGS C compiler flags 1512 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1513 nonstandard directory <lib dir> 1514 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1515 you have headers in a nonstandard directory <include dir> 1516 CPP C preprocessor 1517 CXX C++ compiler command 1518 CXXFLAGS C++ compiler flags 1519 CXXCPP C++ preprocessor 1520 F77 Fortran 77 compiler command 1521 FFLAGS Fortran 77 compiler flags 1522 1523Use these variables to override the choices made by `configure' or to help 1524it to find libraries and programs with nonstandard names/locations. 1525 1526_ACEOF 1527ac_status=$? 1528fi 1529 1530if test "$ac_init_help" = "recursive"; then 1531 # If there are subdirs, report their specific --help. 1532 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1533 test -d "$ac_dir" || continue 1534 ac_builddir=. 1535 1536case "$ac_dir" in 1537.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1538*) 1539 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1540 # A ".." for each directory in $ac_dir_suffix. 1541 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1542 case $ac_top_builddir_sub in 1543 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1544 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1545 esac ;; 1546esac 1547ac_abs_top_builddir=$ac_pwd 1548ac_abs_builddir=$ac_pwd$ac_dir_suffix 1549# for backward compatibility: 1550ac_top_builddir=$ac_top_build_prefix 1551 1552case $srcdir in 1553 .) # We are building in place. 1554 ac_srcdir=. 1555 ac_top_srcdir=$ac_top_builddir_sub 1556 ac_abs_top_srcdir=$ac_pwd ;; 1557 [\\/]* | ?:[\\/]* ) # Absolute name. 1558 ac_srcdir=$srcdir$ac_dir_suffix; 1559 ac_top_srcdir=$srcdir 1560 ac_abs_top_srcdir=$srcdir ;; 1561 *) # Relative name. 1562 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1563 ac_top_srcdir=$ac_top_build_prefix$srcdir 1564 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1565esac 1566ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1567 1568 cd "$ac_dir" || { ac_status=$?; continue; } 1569 # Check for guested configure. 1570 if test -f "$ac_srcdir/configure.gnu"; then 1571 echo && 1572 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1573 elif test -f "$ac_srcdir/configure"; then 1574 echo && 1575 $SHELL "$ac_srcdir/configure" --help=recursive 1576 else 1577 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1578 fi || ac_status=$? 1579 cd "$ac_pwd" || { ac_status=$?; break; } 1580 done 1581fi 1582 1583test -n "$ac_init_help" && exit $ac_status 1584if $ac_init_version; then 1585 cat <<\_ACEOF 1586configure 1587generated by GNU Autoconf 2.60-MirPorts-2 1588 1589Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 15902002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1591This configure script is free software; the Free Software Foundation 1592gives unlimited permission to copy, distribute and modify it. 1593_ACEOF 1594 exit 1595fi 1596cat >config.log <<_ACEOF 1597This file contains any messages produced by compilers while 1598running configure, to aid debugging if configure makes a mistake. 1599 1600It was created by $as_me, which was 1601generated by GNU Autoconf 2.60-MirPorts-2. Invocation command line was 1602 1603 $ $0 $@ 1604 1605_ACEOF 1606exec 5>>config.log 1607{ 1608cat <<_ASUNAME 1609## --------- ## 1610## Platform. ## 1611## --------- ## 1612 1613hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1614uname -m = `(uname -m) 2>/dev/null || echo unknown` 1615uname -r = `(uname -r) 2>/dev/null || echo unknown` 1616uname -s = `(uname -s) 2>/dev/null || echo unknown` 1617uname -v = `(uname -v) 2>/dev/null || echo unknown` 1618 1619/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1620/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1621 1622/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1623/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1624/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1625/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1626/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1627/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1628/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1629 1630_ASUNAME 1631 1632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1633for as_dir in $PATH 1634do 1635 IFS=$as_save_IFS 1636 test -z "$as_dir" && as_dir=. 1637 echo "PATH: $as_dir" 1638done 1639IFS=$as_save_IFS 1640 1641} >&5 1642 1643cat >&5 <<_ACEOF 1644 1645 1646## ----------- ## 1647## Core tests. ## 1648## ----------- ## 1649 1650_ACEOF 1651 1652 1653# Keep a trace of the command line. 1654# Strip out --no-create and --no-recursion so they do not pile up. 1655# Strip out --silent because we don't want to record it for future runs. 1656# Also quote any args containing shell meta-characters. 1657# Make two passes to allow for proper duplicate-argument suppression. 1658ac_configure_args= 1659ac_configure_args0= 1660ac_configure_args1= 1661ac_must_keep_next=false 1662for ac_pass in 1 2 1663do 1664 for ac_arg 1665 do 1666 case $ac_arg in 1667 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1668 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1669 | -silent | --silent | --silen | --sile | --sil) 1670 continue ;; 1671 *\'*) 1672 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1673 esac 1674 case $ac_pass in 1675 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1676 2) 1677 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1678 if test $ac_must_keep_next = true; then 1679 ac_must_keep_next=false # Got value, back to normal. 1680 else 1681 case $ac_arg in 1682 *=* | --config-cache | -C | -disable-* | --disable-* \ 1683 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1684 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1685 | -with-* | --with-* | -without-* | --without-* | --x) 1686 case "$ac_configure_args0 " in 1687 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1688 esac 1689 ;; 1690 -* ) ac_must_keep_next=true ;; 1691 esac 1692 fi 1693 ac_configure_args="$ac_configure_args '$ac_arg'" 1694 ;; 1695 esac 1696 done 1697done 1698$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1699$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1700 1701# When interrupted or exit'd, cleanup temporary files, and complete 1702# config.log. We remove comments because anyway the quotes in there 1703# would cause problems or look ugly. 1704# WARNING: Use '\'' to represent an apostrophe within the trap. 1705# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1706trap 'exit_status=$? 1707 # Save into config.log some information that might help in debugging. 1708 { 1709 echo 1710 1711 cat <<\_ASBOX 1712## ---------------- ## 1713## Cache variables. ## 1714## ---------------- ## 1715_ASBOX 1716 echo 1717 # The following way of writing the cache mishandles newlines in values, 1718( 1719 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1720 eval ac_val=\$$ac_var 1721 case $ac_val in #( 1722 *${as_nl}*) 1723 case $ac_var in #( 1724 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1725echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1726 esac 1727 case $ac_var in #( 1728 _ | IFS | as_nl) ;; #( 1729 *) $as_unset $ac_var ;; 1730 esac ;; 1731 esac 1732 done 1733 (set) 2>&1 | 1734 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1735 *${as_nl}ac_space=\ *) 1736 sed -n \ 1737 "s/'\''/'\''\\\\'\'''\''/g; 1738 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1739 ;; #( 1740 *) 1741 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1742 ;; 1743 esac | 1744 sort 1745) 1746 echo 1747 1748 cat <<\_ASBOX 1749## ----------------- ## 1750## Output variables. ## 1751## ----------------- ## 1752_ASBOX 1753 echo 1754 for ac_var in $ac_subst_vars 1755 do 1756 eval ac_val=\$$ac_var 1757 case $ac_val in 1758 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1759 esac 1760 echo "$ac_var='\''$ac_val'\''" 1761 done | sort 1762 echo 1763 1764 if test -n "$ac_subst_files"; then 1765 cat <<\_ASBOX 1766## ------------------- ## 1767## File substitutions. ## 1768## ------------------- ## 1769_ASBOX 1770 echo 1771 for ac_var in $ac_subst_files 1772 do 1773 eval ac_val=\$$ac_var 1774 case $ac_val in 1775 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1776 esac 1777 echo "$ac_var='\''$ac_val'\''" 1778 done | sort 1779 echo 1780 fi 1781 1782 if test -s confdefs.h; then 1783 cat <<\_ASBOX 1784## ----------- ## 1785## confdefs.h. ## 1786## ----------- ## 1787_ASBOX 1788 echo 1789 cat confdefs.h 1790 echo 1791 fi 1792 test "$ac_signal" != 0 && 1793 echo "$as_me: caught signal $ac_signal" 1794 echo "$as_me: exit $exit_status" 1795 } >&5 1796 rm -f core *.core core.conftest.* && 1797 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1798 exit $exit_status 1799' 0 1800for ac_signal in 1 2 13 15; do 1801 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1802done 1803ac_signal=0 1804 1805# confdefs.h avoids OS command line length limits that DEFS can exceed. 1806rm -f -r conftest* confdefs.h 1807 1808# Predefined preprocessor variables. 1809 1810cat >>confdefs.h <<_ACEOF 1811#define PACKAGE_NAME "$PACKAGE_NAME" 1812_ACEOF 1813 1814 1815cat >>confdefs.h <<_ACEOF 1816#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1817_ACEOF 1818 1819 1820cat >>confdefs.h <<_ACEOF 1821#define PACKAGE_VERSION "$PACKAGE_VERSION" 1822_ACEOF 1823 1824 1825cat >>confdefs.h <<_ACEOF 1826#define PACKAGE_STRING "$PACKAGE_STRING" 1827_ACEOF 1828 1829 1830cat >>confdefs.h <<_ACEOF 1831#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1832_ACEOF 1833 1834 1835# Let the site file select an alternate cache file if it wants to. 1836# Prefer explicitly selected file to automatically selected ones. 1837if test -n "$CONFIG_SITE"; then 1838 set x "$CONFIG_SITE" 1839elif test "x$prefix" != xNONE; then 1840 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1841else 1842 set x "$ac_default_prefix/share/config.site" \ 1843 "$ac_default_prefix/etc/config.site" 1844fi 1845shift 1846for ac_site_file 1847do 1848 if test -r "$ac_site_file"; then 1849 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1850echo "$as_me: loading site script $ac_site_file" >&6;} 1851 sed 's/^/| /' "$ac_site_file" >&5 1852 . "$ac_site_file" 1853 fi 1854done 1855 1856if test -r "$cache_file"; then 1857 # Some versions of bash will fail to source /dev/null (special 1858 # files actually), so we avoid doing that. 1859 if test -f "$cache_file"; then 1860 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1861echo "$as_me: loading cache $cache_file" >&6;} 1862 case $cache_file in 1863 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1864 *) . "./$cache_file";; 1865 esac 1866 fi 1867else 1868 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1869echo "$as_me: creating cache $cache_file" >&6;} 1870 >$cache_file 1871fi 1872 1873# Check that the precious variables saved in the cache have kept the same 1874# value. 1875ac_cache_corrupted=false 1876for ac_var in $ac_precious_vars; do 1877 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1878 eval ac_new_set=\$ac_env_${ac_var}_set 1879 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1880 eval ac_new_val=\$ac_env_${ac_var}_value 1881 case $ac_old_set,$ac_new_set in 1882 set,) 1883 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1884echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1885 ac_cache_corrupted=: ;; 1886 ,set) 1887 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1888echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1889 ac_cache_corrupted=: ;; 1890 ,);; 1891 *) 1892 if test "x$ac_old_val" != "x$ac_new_val"; then 1893 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1894echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1895 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1896echo "$as_me: former value: $ac_old_val" >&2;} 1897 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1898echo "$as_me: current value: $ac_new_val" >&2;} 1899 ac_cache_corrupted=: 1900 fi;; 1901 esac 1902 # Pass precious variables to config.status. 1903 if test "$ac_new_set" = set; then 1904 case $ac_new_val in 1905 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1906 *) ac_arg=$ac_var=$ac_new_val ;; 1907 esac 1908 case " $ac_configure_args " in 1909 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1910 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1911 esac 1912 fi 1913done 1914if $ac_cache_corrupted; then 1915 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1916echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1917 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1918echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1919 { (exit 1); exit 1; }; } 1920fi 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938ac_ext=c 1939ac_cpp='$CPP $CPPFLAGS' 1940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1941ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1942ac_compiler_gnu=$ac_cv_c_compiler_gnu 1943 1944 1945 1946 1947ac_aux_dir= 1948for ac_dir in $GNUSYSTEM_AUX_DIR "$srcdir" "$srcdir/.." "$srcdir/../.."; do 1949 if test -f "$ac_dir/install-sh"; then 1950 ac_aux_dir=$ac_dir 1951 ac_install_sh="$ac_aux_dir/install-sh -c" 1952 break 1953 elif test -f "$ac_dir/install.sh"; then 1954 ac_aux_dir=$ac_dir 1955 ac_install_sh="$ac_aux_dir/install.sh -c" 1956 break 1957 elif test -f "$ac_dir/shtool"; then 1958 ac_aux_dir=$ac_dir 1959 ac_install_sh="$ac_aux_dir/shtool install -c" 1960 break 1961 fi 1962done 1963if test -z "$ac_aux_dir"; then 1964 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 1965echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 1966 { (exit 1); exit 1; }; } 1967fi 1968 1969# These three variables are undocumented and unsupported, 1970# and are intended to be withdrawn in a future Autoconf release. 1971# They can cause serious problems if a builder's source tree is in a directory 1972# whose full name contains unusual characters. 1973ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1974ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1975ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1976 1977 1978# Make sure we can run config.sub. 1979$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 1980 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 1981echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 1982 { (exit 1); exit 1; }; } 1983 1984{ echo "$as_me:$LINENO: checking build system type" >&5 1985echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 1986if test "${ac_cv_build+set}" = set; then 1987 echo $ECHO_N "(cached) $ECHO_C" >&6 1988else 1989 ac_build_alias=$build_alias 1990test "x$ac_build_alias" = x && 1991 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 1992test "x$ac_build_alias" = x && 1993 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1994echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1995 { (exit 1); exit 1; }; } 1996ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 1997 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 1998echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 1999 { (exit 1); exit 1; }; } 2000 2001fi 2002{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2003echo "${ECHO_T}$ac_cv_build" >&6; } 2004case $ac_cv_build in 2005*-*-*) ;; 2006*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2007echo "$as_me: error: invalid value of canonical build" >&2;} 2008 { (exit 1); exit 1; }; };; 2009esac 2010build=$ac_cv_build 2011ac_save_IFS=$IFS; IFS='-' 2012set x $ac_cv_build 2013shift 2014build_cpu=$1 2015build_vendor=$2 2016shift; shift 2017# Remember, the first character of IFS is used to create $*, 2018# except with old shells: 2019build_os=$* 2020IFS=$ac_save_IFS 2021case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2022 2023 2024{ echo "$as_me:$LINENO: checking host system type" >&5 2025echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 2026if test "${ac_cv_host+set}" = set; then 2027 echo $ECHO_N "(cached) $ECHO_C" >&6 2028else 2029 if test "x$host_alias" = x; then 2030 ac_cv_host=$ac_cv_build 2031else 2032 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2033 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2034echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2035 { (exit 1); exit 1; }; } 2036fi 2037 2038fi 2039{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2040echo "${ECHO_T}$ac_cv_host" >&6; } 2041case $ac_cv_host in 2042*-*-*) ;; 2043*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2044echo "$as_me: error: invalid value of canonical host" >&2;} 2045 { (exit 1); exit 1; }; };; 2046esac 2047host=$ac_cv_host 2048ac_save_IFS=$IFS; IFS='-' 2049set x $ac_cv_host 2050shift 2051host_cpu=$1 2052host_vendor=$2 2053shift; shift 2054# Remember, the first character of IFS is used to create $*, 2055# except with old shells: 2056host_os=$* 2057IFS=$ac_save_IFS 2058case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2059 2060 2061{ echo "$as_me:$LINENO: checking target system type" >&5 2062echo $ECHO_N "checking target system type... $ECHO_C" >&6; } 2063if test "${ac_cv_target+set}" = set; then 2064 echo $ECHO_N "(cached) $ECHO_C" >&6 2065else 2066 if test "x$target_alias" = x; then 2067 ac_cv_target=$ac_cv_host 2068else 2069 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2070 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 2071echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} 2072 { (exit 1); exit 1; }; } 2073fi 2074 2075fi 2076{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5 2077echo "${ECHO_T}$ac_cv_target" >&6; } 2078case $ac_cv_target in 2079*-*-*) ;; 2080*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 2081echo "$as_me: error: invalid value of canonical target" >&2;} 2082 { (exit 1); exit 1; }; };; 2083esac 2084target=$ac_cv_target 2085ac_save_IFS=$IFS; IFS='-' 2086set x $ac_cv_target 2087shift 2088target_cpu=$1 2089target_vendor=$2 2090shift; shift 2091# Remember, the first character of IFS is used to create $*, 2092# except with old shells: 2093target_os=$* 2094IFS=$ac_save_IFS 2095case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2096 2097 2098# The aliases save the names the user supplied, while $host etc. 2099# will get canonicalized. 2100test -n "$target_alias" && 2101 test "$program_prefix$program_suffix$program_transform_name" = \ 2102 NONENONEs,x,x, && 2103 program_prefix=${target_alias}- 2104ac_ext=c 2105ac_cpp='$CPP $CPPFLAGS' 2106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2108ac_compiler_gnu=$ac_cv_c_compiler_gnu 2109if test -n "$ac_tool_prefix"; then 2110 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2111set dummy ${ac_tool_prefix}gcc; ac_word=$2 2112{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2113echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2114if test "${ac_cv_prog_CC+set}" = set; then 2115 echo $ECHO_N "(cached) $ECHO_C" >&6 2116else 2117 if test -n "$CC"; then 2118 ac_cv_prog_CC="$CC" # Let the user override the test. 2119else 2120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2121for as_dir in $PATH 2122do 2123 IFS=$as_save_IFS 2124 test -z "$as_dir" && as_dir=. 2125 for ac_exec_ext in '' $ac_executable_extensions; do 2126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2127 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2129 break 2 2130 fi 2131done 2132done 2133IFS=$as_save_IFS 2134 2135fi 2136fi 2137CC=$ac_cv_prog_CC 2138if test -n "$CC"; then 2139 { echo "$as_me:$LINENO: result: $CC" >&5 2140echo "${ECHO_T}$CC" >&6; } 2141else 2142 { echo "$as_me:$LINENO: result: no" >&5 2143echo "${ECHO_T}no" >&6; } 2144fi 2145 2146 2147fi 2148if test -z "$ac_cv_prog_CC"; then 2149 ac_ct_CC=$CC 2150 # Extract the first word of "gcc", so it can be a program name with args. 2151set dummy gcc; ac_word=$2 2152{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2153echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2154if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2155 echo $ECHO_N "(cached) $ECHO_C" >&6 2156else 2157 if test -n "$ac_ct_CC"; then 2158 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2159else 2160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2161for as_dir in $PATH 2162do 2163 IFS=$as_save_IFS 2164 test -z "$as_dir" && as_dir=. 2165 for ac_exec_ext in '' $ac_executable_extensions; do 2166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2167 ac_cv_prog_ac_ct_CC="gcc" 2168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2169 break 2 2170 fi 2171done 2172done 2173IFS=$as_save_IFS 2174 2175fi 2176fi 2177ac_ct_CC=$ac_cv_prog_ac_ct_CC 2178if test -n "$ac_ct_CC"; then 2179 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2180echo "${ECHO_T}$ac_ct_CC" >&6; } 2181else 2182 { echo "$as_me:$LINENO: result: no" >&5 2183echo "${ECHO_T}no" >&6; } 2184fi 2185 2186 if test "x$ac_ct_CC" = x; then 2187 CC="" 2188 else 2189 case $cross_compiling:$ac_tool_warned in 2190yes:) 2191{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2192whose name does not start with the host triplet. If you think this 2193configuration is useful to you, please write to autoconf@gnu.org." >&5 2194echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2195whose name does not start with the host triplet. If you think this 2196configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2197ac_tool_warned=yes ;; 2198esac 2199 CC=$ac_ct_CC 2200 fi 2201else 2202 CC="$ac_cv_prog_CC" 2203fi 2204 2205if test -z "$CC"; then 2206 if test -n "$ac_tool_prefix"; then 2207 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2208set dummy ${ac_tool_prefix}cc; ac_word=$2 2209{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2210echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2211if test "${ac_cv_prog_CC+set}" = set; then 2212 echo $ECHO_N "(cached) $ECHO_C" >&6 2213else 2214 if test -n "$CC"; then 2215 ac_cv_prog_CC="$CC" # Let the user override the test. 2216else 2217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2218for as_dir in $PATH 2219do 2220 IFS=$as_save_IFS 2221 test -z "$as_dir" && as_dir=. 2222 for ac_exec_ext in '' $ac_executable_extensions; do 2223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2224 ac_cv_prog_CC="${ac_tool_prefix}cc" 2225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2226 break 2 2227 fi 2228done 2229done 2230IFS=$as_save_IFS 2231 2232fi 2233fi 2234CC=$ac_cv_prog_CC 2235if test -n "$CC"; then 2236 { echo "$as_me:$LINENO: result: $CC" >&5 2237echo "${ECHO_T}$CC" >&6; } 2238else 2239 { echo "$as_me:$LINENO: result: no" >&5 2240echo "${ECHO_T}no" >&6; } 2241fi 2242 2243 2244 fi 2245fi 2246if test -z "$CC"; then 2247 # Extract the first word of "cc", so it can be a program name with args. 2248set dummy cc; ac_word=$2 2249{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2250echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2251if test "${ac_cv_prog_CC+set}" = set; then 2252 echo $ECHO_N "(cached) $ECHO_C" >&6 2253else 2254 if test -n "$CC"; then 2255 ac_cv_prog_CC="$CC" # Let the user override the test. 2256else 2257 ac_prog_rejected=no 2258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2259for as_dir in $PATH 2260do 2261 IFS=$as_save_IFS 2262 test -z "$as_dir" && as_dir=. 2263 for ac_exec_ext in '' $ac_executable_extensions; do 2264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2265 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2266 ac_prog_rejected=yes 2267 continue 2268 fi 2269 ac_cv_prog_CC="cc" 2270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2271 break 2 2272 fi 2273done 2274done 2275IFS=$as_save_IFS 2276 2277if test $ac_prog_rejected = yes; then 2278 # We found a bogon in the path, so make sure we never use it. 2279 set dummy $ac_cv_prog_CC 2280 shift 2281 if test $# != 0; then 2282 # We chose a different compiler from the bogus one. 2283 # However, it has the same basename, so the bogon will be chosen 2284 # first if we set CC to just the basename; use the full file name. 2285 shift 2286 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2287 fi 2288fi 2289fi 2290fi 2291CC=$ac_cv_prog_CC 2292if test -n "$CC"; then 2293 { echo "$as_me:$LINENO: result: $CC" >&5 2294echo "${ECHO_T}$CC" >&6; } 2295else 2296 { echo "$as_me:$LINENO: result: no" >&5 2297echo "${ECHO_T}no" >&6; } 2298fi 2299 2300 2301fi 2302if test -z "$CC"; then 2303 if test -n "$ac_tool_prefix"; then 2304 for ac_prog in cl.exe 2305 do 2306 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2307set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2308{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2309echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2310if test "${ac_cv_prog_CC+set}" = set; then 2311 echo $ECHO_N "(cached) $ECHO_C" >&6 2312else 2313 if test -n "$CC"; then 2314 ac_cv_prog_CC="$CC" # Let the user override the test. 2315else 2316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2317for as_dir in $PATH 2318do 2319 IFS=$as_save_IFS 2320 test -z "$as_dir" && as_dir=. 2321 for ac_exec_ext in '' $ac_executable_extensions; do 2322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2323 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2325 break 2 2326 fi 2327done 2328done 2329IFS=$as_save_IFS 2330 2331fi 2332fi 2333CC=$ac_cv_prog_CC 2334if test -n "$CC"; then 2335 { echo "$as_me:$LINENO: result: $CC" >&5 2336echo "${ECHO_T}$CC" >&6; } 2337else 2338 { echo "$as_me:$LINENO: result: no" >&5 2339echo "${ECHO_T}no" >&6; } 2340fi 2341 2342 2343 test -n "$CC" && break 2344 done 2345fi 2346if test -z "$CC"; then 2347 ac_ct_CC=$CC 2348 for ac_prog in cl.exe 2349do 2350 # Extract the first word of "$ac_prog", so it can be a program name with args. 2351set dummy $ac_prog; ac_word=$2 2352{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2353echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2354if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2355 echo $ECHO_N "(cached) $ECHO_C" >&6 2356else 2357 if test -n "$ac_ct_CC"; then 2358 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2359else 2360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2361for as_dir in $PATH 2362do 2363 IFS=$as_save_IFS 2364 test -z "$as_dir" && as_dir=. 2365 for ac_exec_ext in '' $ac_executable_extensions; do 2366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2367 ac_cv_prog_ac_ct_CC="$ac_prog" 2368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2369 break 2 2370 fi 2371done 2372done 2373IFS=$as_save_IFS 2374 2375fi 2376fi 2377ac_ct_CC=$ac_cv_prog_ac_ct_CC 2378if test -n "$ac_ct_CC"; then 2379 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2380echo "${ECHO_T}$ac_ct_CC" >&6; } 2381else 2382 { echo "$as_me:$LINENO: result: no" >&5 2383echo "${ECHO_T}no" >&6; } 2384fi 2385 2386 2387 test -n "$ac_ct_CC" && break 2388done 2389 2390 if test "x$ac_ct_CC" = x; then 2391 CC="" 2392 else 2393 case $cross_compiling:$ac_tool_warned in 2394yes:) 2395{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2396whose name does not start with the host triplet. If you think this 2397configuration is useful to you, please write to autoconf@gnu.org." >&5 2398echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2399whose name does not start with the host triplet. If you think this 2400configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2401ac_tool_warned=yes ;; 2402esac 2403 CC=$ac_ct_CC 2404 fi 2405fi 2406 2407fi 2408 2409 2410test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2411See \`config.log' for more details." >&5 2412echo "$as_me: error: no acceptable C compiler found in \$PATH 2413See \`config.log' for more details." >&2;} 2414 { (exit 1); exit 1; }; } 2415 2416# Provide some information about the compiler. 2417echo "$as_me:$LINENO: checking for C compiler version" >&5 2418ac_compiler=`set X $ac_compile; echo $2` 2419{ (ac_try="$ac_compiler --version >&5" 2420case "(($ac_try" in 2421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2422 *) ac_try_echo=$ac_try;; 2423esac 2424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2425 (eval "$ac_compiler --version >&5") 2>&5 2426 ac_status=$? 2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2428 (exit $ac_status); } 2429{ (ac_try="$ac_compiler -v >&5" 2430case "(($ac_try" in 2431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2432 *) ac_try_echo=$ac_try;; 2433esac 2434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2435 (eval "$ac_compiler -v >&5") 2>&5 2436 ac_status=$? 2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2438 (exit $ac_status); } 2439{ (ac_try="$ac_compiler -V >&5" 2440case "(($ac_try" in 2441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2442 *) ac_try_echo=$ac_try;; 2443esac 2444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2445 (eval "$ac_compiler -V >&5") 2>&5 2446 ac_status=$? 2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2448 (exit $ac_status); } 2449 2450cat >conftest.$ac_ext <<_ACEOF 2451/* confdefs.h. */ 2452_ACEOF 2453cat confdefs.h >>conftest.$ac_ext 2454cat >>conftest.$ac_ext <<_ACEOF 2455/* end confdefs.h. */ 2456 2457int 2458main () 2459{ 2460 2461 ; 2462 return 0; 2463} 2464_ACEOF 2465ac_clean_files_save=$ac_clean_files 2466ac_clean_files="$ac_clean_files a.out a.exe b.out" 2467# Try to create an executable without -o first, disregard a.out. 2468# It will help us diagnose broken compilers, and finding out an intuition 2469# of exeext. 2470{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2471echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2472ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2473# 2474# List of possible output files, starting from the most likely. 2475# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2476# only as a last resort. b.out is created by i960 compilers. 2477ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2478# 2479# The IRIX 6 linker writes into existing files which may not be 2480# executable, retaining their permissions. Remove them first so a 2481# subsequent execution test works. 2482ac_rmfiles= 2483for ac_file in $ac_files 2484do 2485 case $ac_file in 2486 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2487 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2488 esac 2489done 2490rm -f $ac_rmfiles 2491 2492if { (ac_try="$ac_link_default" 2493case "(($ac_try" in 2494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2495 *) ac_try_echo=$ac_try;; 2496esac 2497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2498 (eval "$ac_link_default") 2>&5 2499 ac_status=$? 2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2501 (exit $ac_status); }; then 2502 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2503# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2504# in a Makefile. We should not override ac_cv_exeext if it was cached, 2505# so that the user can short-circuit this test for compilers unknown to 2506# Autoconf. 2507for ac_file in $ac_files 2508do 2509 test -f "$ac_file" || continue 2510 case $ac_file in 2511 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2512 ;; 2513 [ab].out ) 2514 # We found the default executable, but exeext='' is most 2515 # certainly right. 2516 break;; 2517 *.* ) 2518 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2519 then :; else 2520 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2521 fi 2522 # We set ac_cv_exeext here because the later test for it is not 2523 # safe: cross compilers may not add the suffix if given an `-o' 2524 # argument, so we may need to know it at that point already. 2525 # Even if this section looks crufty: it has the advantage of 2526 # actually working. 2527 break;; 2528 * ) 2529 break;; 2530 esac 2531done 2532test "$ac_cv_exeext" = no && ac_cv_exeext= 2533 2534else 2535 echo "$as_me: failed program was:" >&5 2536sed 's/^/| /' conftest.$ac_ext >&5 2537 2538{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2539See \`config.log' for more details." >&5 2540echo "$as_me: error: C compiler cannot create executables 2541See \`config.log' for more details." >&2;} 2542 { (exit 77); exit 77; }; } 2543fi 2544 2545ac_exeext=$ac_cv_exeext 2546{ echo "$as_me:$LINENO: result: $ac_file" >&5 2547echo "${ECHO_T}$ac_file" >&6; } 2548 2549# Check that the compiler produces executables we can run. If not, either 2550# the compiler is broken, or we cross compile. 2551{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2552echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2553# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2554# If not cross compiling, check that we can run a simple program. 2555if test "$cross_compiling" != yes; then 2556 if { ac_try='./$ac_file' 2557 { (case "(($ac_try" in 2558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2559 *) ac_try_echo=$ac_try;; 2560esac 2561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2562 (eval "$ac_try") 2>&5 2563 ac_status=$? 2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2565 (exit $ac_status); }; }; then 2566 cross_compiling=no 2567 else 2568 if test "$cross_compiling" = maybe; then 2569 cross_compiling=yes 2570 else 2571 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2572If you meant to cross compile, use \`--host'. 2573See \`config.log' for more details." >&5 2574echo "$as_me: error: cannot run C compiled programs. 2575If you meant to cross compile, use \`--host'. 2576See \`config.log' for more details." >&2;} 2577 { (exit 1); exit 1; }; } 2578 fi 2579 fi 2580fi 2581{ echo "$as_me:$LINENO: result: yes" >&5 2582echo "${ECHO_T}yes" >&6; } 2583 2584rm -f a.out a.exe conftest$ac_cv_exeext b.out 2585ac_clean_files=$ac_clean_files_save 2586# Check that the compiler produces executables we can run. If not, either 2587# the compiler is broken, or we cross compile. 2588{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2589echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2590{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2591echo "${ECHO_T}$cross_compiling" >&6; } 2592 2593{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2594echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2595if { (ac_try="$ac_link" 2596case "(($ac_try" in 2597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2598 *) ac_try_echo=$ac_try;; 2599esac 2600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2601 (eval "$ac_link") 2>&5 2602 ac_status=$? 2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2604 (exit $ac_status); }; then 2605 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2606# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2607# work properly (i.e., refer to `conftest.exe'), while it won't with 2608# `rm'. 2609for ac_file in conftest.exe conftest conftest.*; do 2610 test -f "$ac_file" || continue 2611 case $ac_file in 2612 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2613 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2614 break;; 2615 * ) break;; 2616 esac 2617done 2618else 2619 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2620See \`config.log' for more details." >&5 2621echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2622See \`config.log' for more details." >&2;} 2623 { (exit 1); exit 1; }; } 2624fi 2625 2626rm -f conftest$ac_cv_exeext 2627{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2628echo "${ECHO_T}$ac_cv_exeext" >&6; } 2629 2630rm -f conftest.$ac_ext 2631EXEEXT=$ac_cv_exeext 2632ac_exeext=$EXEEXT 2633{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2634echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2635if test "${ac_cv_objext+set}" = set; then 2636 echo $ECHO_N "(cached) $ECHO_C" >&6 2637else 2638 cat >conftest.$ac_ext <<_ACEOF 2639/* confdefs.h. */ 2640_ACEOF 2641cat confdefs.h >>conftest.$ac_ext 2642cat >>conftest.$ac_ext <<_ACEOF 2643/* end confdefs.h. */ 2644 2645int 2646main () 2647{ 2648 2649 ; 2650 return 0; 2651} 2652_ACEOF 2653rm -f conftest.o conftest.obj 2654if { (ac_try="$ac_compile" 2655case "(($ac_try" in 2656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2657 *) ac_try_echo=$ac_try;; 2658esac 2659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2660 (eval "$ac_compile") 2>&5 2661 ac_status=$? 2662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2663 (exit $ac_status); }; then 2664 for ac_file in conftest.o conftest.obj conftest.*; do 2665 test -f "$ac_file" || continue; 2666 case $ac_file in 2667 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2668 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2669 break;; 2670 esac 2671done 2672else 2673 echo "$as_me: failed program was:" >&5 2674sed 's/^/| /' conftest.$ac_ext >&5 2675 2676{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2677See \`config.log' for more details." >&5 2678echo "$as_me: error: cannot compute suffix of object files: cannot compile 2679See \`config.log' for more details." >&2;} 2680 { (exit 1); exit 1; }; } 2681fi 2682 2683rm -f conftest.$ac_cv_objext conftest.$ac_ext 2684fi 2685{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2686echo "${ECHO_T}$ac_cv_objext" >&6; } 2687OBJEXT=$ac_cv_objext 2688ac_objext=$OBJEXT 2689{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2690echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2691if test "${ac_cv_c_compiler_gnu+set}" = set; then 2692 echo $ECHO_N "(cached) $ECHO_C" >&6 2693else 2694 cat >conftest.$ac_ext <<_ACEOF 2695/* confdefs.h. */ 2696_ACEOF 2697cat confdefs.h >>conftest.$ac_ext 2698cat >>conftest.$ac_ext <<_ACEOF 2699/* end confdefs.h. */ 2700 2701int 2702main () 2703{ 2704#ifndef __GNUC__ 2705 choke me 2706#endif 2707 2708 ; 2709 return 0; 2710} 2711_ACEOF 2712rm -f conftest.$ac_objext 2713if { (ac_try="$ac_compile" 2714case "(($ac_try" in 2715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2716 *) ac_try_echo=$ac_try;; 2717esac 2718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2719 (eval "$ac_compile") 2>conftest.er1 2720 ac_status=$? 2721 grep -v '^ *+' conftest.er1 >conftest.err 2722 rm -f conftest.er1 2723 cat conftest.err >&5 2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2725 (exit $ac_status); } && 2726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2727 { (case "(($ac_try" in 2728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2729 *) ac_try_echo=$ac_try;; 2730esac 2731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2732 (eval "$ac_try") 2>&5 2733 ac_status=$? 2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2735 (exit $ac_status); }; } && 2736 { ac_try='test -s conftest.$ac_objext' 2737 { (case "(($ac_try" in 2738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2739 *) ac_try_echo=$ac_try;; 2740esac 2741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2742 (eval "$ac_try") 2>&5 2743 ac_status=$? 2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2745 (exit $ac_status); }; }; then 2746 ac_compiler_gnu=yes 2747else 2748 echo "$as_me: failed program was:" >&5 2749sed 's/^/| /' conftest.$ac_ext >&5 2750 2751 ac_compiler_gnu=no 2752fi 2753 2754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2755ac_cv_c_compiler_gnu=$ac_compiler_gnu 2756 2757fi 2758{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2759echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 2760GCC=`test $ac_compiler_gnu = yes && echo yes` 2761ac_test_CFLAGS=${CFLAGS+set} 2762ac_save_CFLAGS=$CFLAGS 2763{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2764echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 2765if test "${ac_cv_prog_cc_g+set}" = set; then 2766 echo $ECHO_N "(cached) $ECHO_C" >&6 2767else 2768 ac_save_c_werror_flag=$ac_c_werror_flag 2769 ac_c_werror_flag=yes 2770 ac_cv_prog_cc_g=no 2771 CFLAGS="-g" 2772 cat >conftest.$ac_ext <<_ACEOF 2773/* confdefs.h. */ 2774_ACEOF 2775cat confdefs.h >>conftest.$ac_ext 2776cat >>conftest.$ac_ext <<_ACEOF 2777/* end confdefs.h. */ 2778 2779int 2780main () 2781{ 2782 2783 ; 2784 return 0; 2785} 2786_ACEOF 2787rm -f conftest.$ac_objext 2788if { (ac_try="$ac_compile" 2789case "(($ac_try" in 2790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2791 *) ac_try_echo=$ac_try;; 2792esac 2793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2794 (eval "$ac_compile") 2>conftest.er1 2795 ac_status=$? 2796 grep -v '^ *+' conftest.er1 >conftest.err 2797 rm -f conftest.er1 2798 cat conftest.err >&5 2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2800 (exit $ac_status); } && 2801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2802 { (case "(($ac_try" in 2803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2804 *) ac_try_echo=$ac_try;; 2805esac 2806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2807 (eval "$ac_try") 2>&5 2808 ac_status=$? 2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2810 (exit $ac_status); }; } && 2811 { ac_try='test -s conftest.$ac_objext' 2812 { (case "(($ac_try" in 2813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2814 *) ac_try_echo=$ac_try;; 2815esac 2816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2817 (eval "$ac_try") 2>&5 2818 ac_status=$? 2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2820 (exit $ac_status); }; }; then 2821 ac_cv_prog_cc_g=yes 2822else 2823 echo "$as_me: failed program was:" >&5 2824sed 's/^/| /' conftest.$ac_ext >&5 2825 2826 CFLAGS="" 2827 cat >conftest.$ac_ext <<_ACEOF 2828/* confdefs.h. */ 2829_ACEOF 2830cat confdefs.h >>conftest.$ac_ext 2831cat >>conftest.$ac_ext <<_ACEOF 2832/* end confdefs.h. */ 2833 2834int 2835main () 2836{ 2837 2838 ; 2839 return 0; 2840} 2841_ACEOF 2842rm -f conftest.$ac_objext 2843if { (ac_try="$ac_compile" 2844case "(($ac_try" in 2845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2846 *) ac_try_echo=$ac_try;; 2847esac 2848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2849 (eval "$ac_compile") 2>conftest.er1 2850 ac_status=$? 2851 grep -v '^ *+' conftest.er1 >conftest.err 2852 rm -f conftest.er1 2853 cat conftest.err >&5 2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2855 (exit $ac_status); } && 2856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2857 { (case "(($ac_try" in 2858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2859 *) ac_try_echo=$ac_try;; 2860esac 2861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2862 (eval "$ac_try") 2>&5 2863 ac_status=$? 2864 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2865 (exit $ac_status); }; } && 2866 { ac_try='test -s conftest.$ac_objext' 2867 { (case "(($ac_try" in 2868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2869 *) ac_try_echo=$ac_try;; 2870esac 2871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2872 (eval "$ac_try") 2>&5 2873 ac_status=$? 2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2875 (exit $ac_status); }; }; then 2876 : 2877else 2878 echo "$as_me: failed program was:" >&5 2879sed 's/^/| /' conftest.$ac_ext >&5 2880 2881 ac_c_werror_flag=$ac_save_c_werror_flag 2882 CFLAGS="-g" 2883 cat >conftest.$ac_ext <<_ACEOF 2884/* confdefs.h. */ 2885_ACEOF 2886cat confdefs.h >>conftest.$ac_ext 2887cat >>conftest.$ac_ext <<_ACEOF 2888/* end confdefs.h. */ 2889 2890int 2891main () 2892{ 2893 2894 ; 2895 return 0; 2896} 2897_ACEOF 2898rm -f conftest.$ac_objext 2899if { (ac_try="$ac_compile" 2900case "(($ac_try" in 2901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2902 *) ac_try_echo=$ac_try;; 2903esac 2904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2905 (eval "$ac_compile") 2>conftest.er1 2906 ac_status=$? 2907 grep -v '^ *+' conftest.er1 >conftest.err 2908 rm -f conftest.er1 2909 cat conftest.err >&5 2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2911 (exit $ac_status); } && 2912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2913 { (case "(($ac_try" in 2914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2915 *) ac_try_echo=$ac_try;; 2916esac 2917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2918 (eval "$ac_try") 2>&5 2919 ac_status=$? 2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2921 (exit $ac_status); }; } && 2922 { ac_try='test -s conftest.$ac_objext' 2923 { (case "(($ac_try" in 2924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2925 *) ac_try_echo=$ac_try;; 2926esac 2927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2928 (eval "$ac_try") 2>&5 2929 ac_status=$? 2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2931 (exit $ac_status); }; }; then 2932 ac_cv_prog_cc_g=yes 2933else 2934 echo "$as_me: failed program was:" >&5 2935sed 's/^/| /' conftest.$ac_ext >&5 2936 2937 2938fi 2939 2940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2941fi 2942 2943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2944fi 2945 2946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2947 ac_c_werror_flag=$ac_save_c_werror_flag 2948fi 2949{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2950echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 2951if test "$ac_test_CFLAGS" = set; then 2952 CFLAGS=$ac_save_CFLAGS 2953elif test $ac_cv_prog_cc_g = yes; then 2954 if test "$GCC" = yes; then 2955 CFLAGS="-g -O2" 2956 else 2957 CFLAGS="-g" 2958 fi 2959else 2960 if test "$GCC" = yes; then 2961 CFLAGS="-O2" 2962 else 2963 CFLAGS= 2964 fi 2965fi 2966{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 2967echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 2968if test "${ac_cv_prog_cc_c89+set}" = set; then 2969 echo $ECHO_N "(cached) $ECHO_C" >&6 2970else 2971 ac_cv_prog_cc_c89=no 2972ac_save_CC=$CC 2973cat >conftest.$ac_ext <<_ACEOF 2974/* confdefs.h. */ 2975_ACEOF 2976cat confdefs.h >>conftest.$ac_ext 2977cat >>conftest.$ac_ext <<_ACEOF 2978/* end confdefs.h. */ 2979#include <stdarg.h> 2980#include <stdio.h> 2981#include <sys/types.h> 2982#include <sys/stat.h> 2983/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2984struct buf { int x; }; 2985FILE * (*rcsopen) (struct buf *, struct stat *, int); 2986static char *e (p, i) 2987 char **p; 2988 int i; 2989{ 2990 return p[i]; 2991} 2992static char *f (char * (*g) (char **, int), char **p, ...) 2993{ 2994 char *s; 2995 va_list v; 2996 va_start (v,p); 2997 s = g (p, va_arg (v,int)); 2998 va_end (v); 2999 return s; 3000} 3001 3002/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3003 function prototypes and stuff, but not '\xHH' hex character constants. 3004 These don't provoke an error unfortunately, instead are silently treated 3005 as 'x'. The following induces an error, until -std is added to get 3006 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3007 array size at least. It's necessary to write '\x00'==0 to get something 3008 that's true only with -std. */ 3009int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3010 3011/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3012 inside strings and character constants. */ 3013#define FOO(x) 'x' 3014int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3015 3016int test (int i, double x); 3017struct s1 {int (*f) (int a);}; 3018struct s2 {int (*f) (double a);}; 3019int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3020int argc; 3021char **argv; 3022int 3023main () 3024{ 3025return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3026 ; 3027 return 0; 3028} 3029_ACEOF 3030for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3031 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3032do 3033 CC="$ac_save_CC $ac_arg" 3034 rm -f conftest.$ac_objext 3035if { (ac_try="$ac_compile" 3036case "(($ac_try" in 3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3038 *) ac_try_echo=$ac_try;; 3039esac 3040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3041 (eval "$ac_compile") 2>conftest.er1 3042 ac_status=$? 3043 grep -v '^ *+' conftest.er1 >conftest.err 3044 rm -f conftest.er1 3045 cat conftest.err >&5 3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3047 (exit $ac_status); } && 3048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3049 { (case "(($ac_try" in 3050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3051 *) ac_try_echo=$ac_try;; 3052esac 3053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3054 (eval "$ac_try") 2>&5 3055 ac_status=$? 3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3057 (exit $ac_status); }; } && 3058 { ac_try='test -s conftest.$ac_objext' 3059 { (case "(($ac_try" in 3060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3061 *) ac_try_echo=$ac_try;; 3062esac 3063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3064 (eval "$ac_try") 2>&5 3065 ac_status=$? 3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3067 (exit $ac_status); }; }; then 3068 ac_cv_prog_cc_c89=$ac_arg 3069else 3070 echo "$as_me: failed program was:" >&5 3071sed 's/^/| /' conftest.$ac_ext >&5 3072 3073 3074fi 3075 3076rm -f core conftest.err conftest.$ac_objext 3077 test "x$ac_cv_prog_cc_c89" != "xno" && break 3078done 3079rm -f conftest.$ac_ext 3080CC=$ac_save_CC 3081 3082fi 3083# AC_CACHE_VAL 3084case "x$ac_cv_prog_cc_c89" in 3085 x) 3086 { echo "$as_me:$LINENO: result: none needed" >&5 3087echo "${ECHO_T}none needed" >&6; } ;; 3088 xno) 3089 { echo "$as_me:$LINENO: result: unsupported" >&5 3090echo "${ECHO_T}unsupported" >&6; } ;; 3091 *) 3092 CC="$CC $ac_cv_prog_cc_c89" 3093 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3094echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3095esac 3096 3097 3098ac_ext=c 3099ac_cpp='$CPP $CPPFLAGS' 3100ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3101ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3102ac_compiler_gnu=$ac_cv_c_compiler_gnu 3103 3104 3105{ echo "$as_me:$LINENO: checking for library containing strerror" >&5 3106echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } 3107if test "${ac_cv_search_strerror+set}" = set; then 3108 echo $ECHO_N "(cached) $ECHO_C" >&6 3109else 3110 ac_func_search_save_LIBS=$LIBS 3111cat >conftest.$ac_ext <<_ACEOF 3112/* confdefs.h. */ 3113_ACEOF 3114cat confdefs.h >>conftest.$ac_ext 3115cat >>conftest.$ac_ext <<_ACEOF 3116/* end confdefs.h. */ 3117 3118/* Override any GCC internal prototype to avoid an error. 3119 Use char because int might match the return type of a GCC 3120 builtin and then its argument prototype would still apply. */ 3121#ifdef __cplusplus 3122extern "C" 3123#endif 3124char strerror (); 3125int 3126main () 3127{ 3128return strerror (); 3129 ; 3130 return 0; 3131} 3132_ACEOF 3133for ac_lib in '' cposix; do 3134 if test -z "$ac_lib"; then 3135 ac_res="none required" 3136 else 3137 ac_res=-l$ac_lib 3138 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3139 fi 3140 rm -f conftest.$ac_objext conftest$ac_exeext 3141if { (ac_try="$ac_link" 3142case "(($ac_try" in 3143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3144 *) ac_try_echo=$ac_try;; 3145esac 3146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3147 (eval "$ac_link") 2>conftest.er1 3148 ac_status=$? 3149 grep -v '^ *+' conftest.er1 >conftest.err 3150 rm -f conftest.er1 3151 cat conftest.err >&5 3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3153 (exit $ac_status); } && 3154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3155 { (case "(($ac_try" in 3156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3157 *) ac_try_echo=$ac_try;; 3158esac 3159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3160 (eval "$ac_try") 2>&5 3161 ac_status=$? 3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3163 (exit $ac_status); }; } && 3164 { ac_try='test -s conftest$ac_exeext' 3165 { (case "(($ac_try" in 3166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3167 *) ac_try_echo=$ac_try;; 3168esac 3169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3170 (eval "$ac_try") 2>&5 3171 ac_status=$? 3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3173 (exit $ac_status); }; }; then 3174 ac_cv_search_strerror=$ac_res 3175else 3176 echo "$as_me: failed program was:" >&5 3177sed 's/^/| /' conftest.$ac_ext >&5 3178 3179 3180fi 3181 3182rm -f core conftest.err conftest.$ac_objext \ 3183 conftest$ac_exeext 3184 if test "${ac_cv_search_strerror+set}" = set; then 3185 break 3186fi 3187done 3188if test "${ac_cv_search_strerror+set}" = set; then 3189 : 3190else 3191 ac_cv_search_strerror=no 3192fi 3193rm conftest.$ac_ext 3194LIBS=$ac_func_search_save_LIBS 3195fi 3196{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 3197echo "${ECHO_T}$ac_cv_search_strerror" >&6; } 3198ac_res=$ac_cv_search_strerror 3199if test "$ac_res" != no; then 3200 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 3201 3202fi 3203 3204 3205# We currently only use the version number for the name of any shared 3206# library. For user convenience, we always use the same version 3207# number that BFD is using. 3208BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in` 3209 3210am__api_version="1.9" 3211# Find a good install program. We prefer a C program (faster), 3212# so one script is as good as another. But avoid the broken or 3213# incompatible versions: 3214# SysV /etc/install, /usr/sbin/install 3215# SunOS /usr/etc/install 3216# IRIX /sbin/install 3217# AIX /bin/install 3218# AmigaOS /C/install, which installs bootblocks on floppy discs 3219# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3220# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3221# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3222# OS/2's system install, which has a completely different semantic 3223# ./install, which can be erroneously created by make from ./install.sh. 3224{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3225echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 3226if test -z "$INSTALL"; then 3227if test "${ac_cv_path_install+set}" = set; then 3228 echo $ECHO_N "(cached) $ECHO_C" >&6 3229else 3230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3231for as_dir in $PATH 3232do 3233 IFS=$as_save_IFS 3234 test -z "$as_dir" && as_dir=. 3235 # Account for people who put trailing slashes in PATH elements. 3236case $as_dir/ in 3237 ./ | .// | /cC/* | \ 3238 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3239 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3240 /usr/ucb/* ) ;; 3241 *) 3242 # OSF1 and SCO ODT 3.0 have their own names for install. 3243 # Don't use installbsd from OSF since it installs stuff as root 3244 # by default. 3245 for ac_prog in ginstall scoinst install; do 3246 for ac_exec_ext in '' $ac_executable_extensions; do 3247 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then 3248 if test $ac_prog = install && 3249 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3250 # AIX install. It has an incompatible calling convention. 3251 : 3252 elif test $ac_prog = install && 3253 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3254 # program-specific install script used by HP pwplus--don't use. 3255 : 3256 else 3257 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3258 break 3 3259 fi 3260 fi 3261 done 3262 done 3263 ;; 3264esac 3265done 3266IFS=$as_save_IFS 3267 3268 3269fi 3270 if test "${ac_cv_path_install+set}" = set; then 3271 INSTALL=$ac_cv_path_install 3272 else 3273 # As a last resort, use the slow shell script. Don't cache a 3274 # value for INSTALL within a source directory, because that will 3275 # break other packages using the cache if that directory is 3276 # removed, or if the value is a relative name. 3277 INSTALL="$SHELL $ac_install_sh" 3278 fi 3279fi 3280{ echo "$as_me:$LINENO: result: $INSTALL" >&5 3281echo "${ECHO_T}$INSTALL" >&6; } 3282 3283# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3284# It thinks the first close brace ends the variable substitution. 3285test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3286 3287test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3288 3289test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3290 3291{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 3292echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 3293# Just in case 3294sleep 1 3295echo timestamp > conftest.file 3296# Do `set' in a subshell so we don't clobber the current shell's 3297# arguments. Must try -L first in case configure is actually a 3298# symlink; some systems play weird games with the mod time of symlinks 3299# (eg FreeBSD returns the mod time of the symlink's containing 3300# directory). 3301if ( 3302 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 3303 if test "$*" = "X"; then 3304 # -L didn't work. 3305 set X `ls -t $srcdir/configure conftest.file` 3306 fi 3307 rm -f conftest.file 3308 if test "$*" != "X $srcdir/configure conftest.file" \ 3309 && test "$*" != "X conftest.file $srcdir/configure"; then 3310 3311 # If neither matched, then we have a broken ls. This can happen 3312 # if, for instance, CONFIG_SHELL is bash and it inherits a 3313 # broken ls alias from the environment. This has actually 3314 # happened. Such a system could not be considered "sane". 3315 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 3316alias in your environment" >&5 3317echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 3318alias in your environment" >&2;} 3319 { (exit 1); exit 1; }; } 3320 fi 3321 3322 test "$2" = conftest.file 3323 ) 3324then 3325 # Ok. 3326 : 3327else 3328 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 3329Check your system clock" >&5 3330echo "$as_me: error: newly created file is older than distributed files! 3331Check your system clock" >&2;} 3332 { (exit 1); exit 1; }; } 3333fi 3334{ echo "$as_me:$LINENO: result: yes" >&5 3335echo "${ECHO_T}yes" >&6; } 3336test "$program_prefix" != NONE && 3337 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3338# Use a double $ so make ignores it. 3339test "$program_suffix" != NONE && 3340 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3341# Double any \ or $. echo might interpret backslashes. 3342# By default was `s,x,x', remove it if useless. 3343cat <<\_ACEOF >conftest.sed 3344s/[\\$]/&&/g;s/;s,x,x,$// 3345_ACEOF 3346program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 3347rm -f conftest.sed 3348 3349# expand $ac_aux_dir to an absolute path 3350am_aux_dir=`cd $ac_aux_dir && pwd` 3351 3352test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 3353# Use eval to expand $SHELL 3354if eval "$MISSING --run true"; then 3355 am_missing_run="$MISSING --run " 3356else 3357 am_missing_run= 3358 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 3359echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 3360fi 3361 3362if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 3363 # We used to keeping the `.' as first argument, in order to 3364 # allow $(mkdir_p) to be used without argument. As in 3365 # $(mkdir_p) $(somedir) 3366 # where $(somedir) is conditionally defined. However this is wrong 3367 # for two reasons: 3368 # 1. if the package is installed by a user who cannot write `.' 3369 # make install will fail, 3370 # 2. the above comment should most certainly read 3371 # $(mkdir_p) $(DESTDIR)$(somedir) 3372 # so it does not work when $(somedir) is undefined and 3373 # $(DESTDIR) is not. 3374 # To support the latter case, we have to write 3375 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 3376 # so the `.' trick is pointless. 3377 mkdir_p='mkdir -p --' 3378else 3379 # On NextStep and OpenStep, the `mkdir' command does not 3380 # recognize any option. It will interpret all options as 3381 # directories to create, and then abort because `.' already 3382 # exists. 3383 for d in ./-p ./--version; 3384 do 3385 test -d $d && rmdir $d 3386 done 3387 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 3388 if test -f "$ac_aux_dir/mkinstalldirs"; then 3389 mkdir_p='$(mkinstalldirs)' 3390 else 3391 mkdir_p='$(install_sh) -d' 3392 fi 3393fi 3394 3395for ac_prog in gawk mawk nawk awk 3396do 3397 # Extract the first word of "$ac_prog", so it can be a program name with args. 3398set dummy $ac_prog; ac_word=$2 3399{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3400echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3401if test "${ac_cv_prog_AWK+set}" = set; then 3402 echo $ECHO_N "(cached) $ECHO_C" >&6 3403else 3404 if test -n "$AWK"; then 3405 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3406else 3407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3408for as_dir in $PATH 3409do 3410 IFS=$as_save_IFS 3411 test -z "$as_dir" && as_dir=. 3412 for ac_exec_ext in '' $ac_executable_extensions; do 3413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 3414 ac_cv_prog_AWK="$ac_prog" 3415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3416 break 2 3417 fi 3418done 3419done 3420IFS=$as_save_IFS 3421 3422fi 3423fi 3424AWK=$ac_cv_prog_AWK 3425if test -n "$AWK"; then 3426 { echo "$as_me:$LINENO: result: $AWK" >&5 3427echo "${ECHO_T}$AWK" >&6; } 3428else 3429 { echo "$as_me:$LINENO: result: no" >&5 3430echo "${ECHO_T}no" >&6; } 3431fi 3432 3433 3434 test -n "$AWK" && break 3435done 3436 3437{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3438echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 3439set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3440if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 3441 echo $ECHO_N "(cached) $ECHO_C" >&6 3442else 3443 cat >conftest.make <<\_ACEOF 3444SHELL = /bin/sh 3445all: 3446 @echo '@@@%%%=$(MAKE)=@@@%%%' 3447_ACEOF 3448# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3449case `${MAKE-make} -f conftest.make 2>/dev/null` in 3450 *@@@%%%=?*=@@@%%%*) 3451 eval ac_cv_prog_make_${ac_make}_set=yes;; 3452 *) 3453 eval ac_cv_prog_make_${ac_make}_set=no;; 3454esac 3455rm -f conftest.make 3456fi 3457if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3458 { echo "$as_me:$LINENO: result: yes" >&5 3459echo "${ECHO_T}yes" >&6; } 3460 SET_MAKE= 3461else 3462 { echo "$as_me:$LINENO: result: no" >&5 3463echo "${ECHO_T}no" >&6; } 3464 SET_MAKE="MAKE=${MAKE-make}" 3465fi 3466 3467rm -rf .tst 2>/dev/null 3468mkdir .tst 2>/dev/null 3469if test -d .tst; then 3470 am__leading_dot=. 3471else 3472 am__leading_dot=_ 3473fi 3474rmdir .tst 2>/dev/null 3475 3476DEPDIR="${am__leading_dot}deps" 3477 3478ac_config_commands="$ac_config_commands depfiles" 3479 3480 3481am_make=${MAKE-make} 3482cat > confinc << 'END' 3483am__doit: 3484 @echo done 3485.PHONY: am__doit 3486END 3487# If we don't find an include directive, just comment out the code. 3488{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3489echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 3490am__include="#" 3491am__quote= 3492_am_result=none 3493# First try GNU make style include. 3494echo "include confinc" > confmf 3495# We grep out `Entering directory' and `Leaving directory' 3496# messages which can occur if `w' ends up in MAKEFLAGS. 3497# In particular we don't look at `^make:' because GNU make might 3498# be invoked under some other name (usually "gmake"), in which 3499# case it prints its new name instead of `make'. 3500if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3501 am__include=include 3502 am__quote= 3503 _am_result=GNU 3504fi 3505# Now try BSD make style include. 3506if test "$am__include" = "#"; then 3507 echo '.include "confinc"' > confmf 3508 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3509 am__include=.include 3510 am__quote="\"" 3511 _am_result=BSD 3512 fi 3513fi 3514 3515 3516{ echo "$as_me:$LINENO: result: $_am_result" >&5 3517echo "${ECHO_T}$_am_result" >&6; } 3518rm -f confinc confmf 3519 3520# Check whether --enable-dependency-tracking was given. 3521if test "${enable_dependency_tracking+set}" = set; then 3522 enableval=$enable_dependency_tracking; 3523fi 3524 3525if test "x$enable_dependency_tracking" != xno; then 3526 am_depcomp="$ac_aux_dir/depcomp" 3527 AMDEPBACKSLASH='\' 3528fi 3529 3530 3531if test "x$enable_dependency_tracking" != xno; then 3532 AMDEP_TRUE= 3533 AMDEP_FALSE='#' 3534else 3535 AMDEP_TRUE='#' 3536 AMDEP_FALSE= 3537fi 3538 3539 3540 3541# test to see if srcdir already configured 3542if test "`cd $srcdir && pwd`" != "`pwd`" && 3543 test -f $srcdir/config.status; then 3544 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 3545echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 3546 { (exit 1); exit 1; }; } 3547fi 3548 3549# test whether we have cygpath 3550if test -z "$CYGPATH_W"; then 3551 if (cygpath --version) >/dev/null 2>/dev/null; then 3552 CYGPATH_W='cygpath -w' 3553 else 3554 CYGPATH_W=echo 3555 fi 3556fi 3557 3558 3559# Define the identity of the package. 3560 PACKAGE=opcodes 3561 VERSION=${BFD_VERSION} 3562 3563 3564cat >>confdefs.h <<_ACEOF 3565#define PACKAGE "$PACKAGE" 3566_ACEOF 3567 3568 3569cat >>confdefs.h <<_ACEOF 3570#define VERSION "$VERSION" 3571_ACEOF 3572 3573# Some tools Automake needs. 3574 3575ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3576 3577 3578AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3579 3580 3581AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3582 3583 3584AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3585 3586 3587MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3588 3589install_sh=${install_sh-"$am_aux_dir/install-sh"} 3590 3591# Installed binaries are usually stripped using `strip' when the user 3592# run `make install-strip'. However `strip' might not be the right 3593# tool to use in cross-compilation environments, therefore Automake 3594# will honor the `STRIP' environment variable to overrule this program. 3595if test "$cross_compiling" != no; then 3596 if test -n "$ac_tool_prefix"; then 3597 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3598set dummy ${ac_tool_prefix}strip; ac_word=$2 3599{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3601if test "${ac_cv_prog_STRIP+set}" = set; then 3602 echo $ECHO_N "(cached) $ECHO_C" >&6 3603else 3604 if test -n "$STRIP"; then 3605 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3606else 3607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3608for as_dir in $PATH 3609do 3610 IFS=$as_save_IFS 3611 test -z "$as_dir" && as_dir=. 3612 for ac_exec_ext in '' $ac_executable_extensions; do 3613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 3614 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3616 break 2 3617 fi 3618done 3619done 3620IFS=$as_save_IFS 3621 3622fi 3623fi 3624STRIP=$ac_cv_prog_STRIP 3625if test -n "$STRIP"; then 3626 { echo "$as_me:$LINENO: result: $STRIP" >&5 3627echo "${ECHO_T}$STRIP" >&6; } 3628else 3629 { echo "$as_me:$LINENO: result: no" >&5 3630echo "${ECHO_T}no" >&6; } 3631fi 3632 3633 3634fi 3635if test -z "$ac_cv_prog_STRIP"; then 3636 ac_ct_STRIP=$STRIP 3637 # Extract the first word of "strip", so it can be a program name with args. 3638set dummy strip; ac_word=$2 3639{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3640echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3641if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 3642 echo $ECHO_N "(cached) $ECHO_C" >&6 3643else 3644 if test -n "$ac_ct_STRIP"; then 3645 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3646else 3647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3648for as_dir in $PATH 3649do 3650 IFS=$as_save_IFS 3651 test -z "$as_dir" && as_dir=. 3652 for ac_exec_ext in '' $ac_executable_extensions; do 3653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 3654 ac_cv_prog_ac_ct_STRIP="strip" 3655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3656 break 2 3657 fi 3658done 3659done 3660IFS=$as_save_IFS 3661 3662fi 3663fi 3664ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3665if test -n "$ac_ct_STRIP"; then 3666 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 3667echo "${ECHO_T}$ac_ct_STRIP" >&6; } 3668else 3669 { echo "$as_me:$LINENO: result: no" >&5 3670echo "${ECHO_T}no" >&6; } 3671fi 3672 3673 if test "x$ac_ct_STRIP" = x; then 3674 STRIP=":" 3675 else 3676 case $cross_compiling:$ac_tool_warned in 3677yes:) 3678{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3679whose name does not start with the host triplet. If you think this 3680configuration is useful to you, please write to autoconf@gnu.org." >&5 3681echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3682whose name does not start with the host triplet. If you think this 3683configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3684ac_tool_warned=yes ;; 3685esac 3686 STRIP=$ac_ct_STRIP 3687 fi 3688else 3689 STRIP="$ac_cv_prog_STRIP" 3690fi 3691 3692fi 3693INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 3694 3695# We need awk for the "check" target. The system "awk" is bad on 3696# some platforms. 3697# Always define AMTAR for backward compatibility. 3698 3699AMTAR=${AMTAR-"${am_missing_run}tar"} 3700 3701am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 3702 3703 3704 3705 3706depcc="$CC" am_compiler_list= 3707 3708{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3709echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3710if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3711 echo $ECHO_N "(cached) $ECHO_C" >&6 3712else 3713 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3714 # We make a subdir and do the tests there. Otherwise we can end up 3715 # making bogus files that we don't know about and never remove. For 3716 # instance it was reported that on HP-UX the gcc test will end up 3717 # making a dummy file named `D' -- because `-MD' means `put the output 3718 # in D'. 3719 mkdir conftest.dir 3720 # Copy depcomp to subdir because otherwise we won't find it if we're 3721 # using a relative directory. 3722 cp "$am_depcomp" conftest.dir 3723 cd conftest.dir 3724 # We will build objects and dependencies in a subdirectory because 3725 # it helps to detect inapplicable dependency modes. For instance 3726 # both Tru64's cc and ICC support -MD to output dependencies as a 3727 # side effect of compilation, but ICC will put the dependencies in 3728 # the current directory while Tru64 will put them in the object 3729 # directory. 3730 mkdir sub 3731 3732 am_cv_CC_dependencies_compiler_type=none 3733 if test "$am_compiler_list" = ""; then 3734 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3735 fi 3736 for depmode in $am_compiler_list; do 3737 # Setup a source with many dependencies, because some compilers 3738 # like to wrap large dependency lists on column 80 (with \), and 3739 # we should not choose a depcomp mode which is confused by this. 3740 # 3741 # We need to recreate these files for each test, as the compiler may 3742 # overwrite some of them when testing with obscure command lines. 3743 # This happens at least with the AIX C compiler. 3744 : > sub/conftest.c 3745 for i in 1 2 3 4 5 6; do 3746 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3747 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3748 # Solaris 8's {/usr,}/bin/sh. 3749 touch sub/conftst$i.h 3750 done 3751 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3752 3753 case $depmode in 3754 nosideeffect) 3755 # after this tag, mechanisms are not by side-effect, so they'll 3756 # only be used when explicitly requested 3757 if test "x$enable_dependency_tracking" = xyes; then 3758 continue 3759 else 3760 break 3761 fi 3762 ;; 3763 none) break ;; 3764 esac 3765 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3766 # mode. It turns out that the SunPro C++ compiler does not properly 3767 # handle `-M -o', and we need to detect this. 3768 if depmode=$depmode \ 3769 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3770 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3771 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3772 >/dev/null 2>conftest.err && 3773 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3774 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3775 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3776 # icc doesn't choke on unknown options, it will just issue warnings 3777 # or remarks (even with -Werror). So we grep stderr for any message 3778 # that says an option was ignored or not supported. 3779 # When given -MP, icc 7.0 and 7.1 complain thusly: 3780 # icc: Command line warning: ignoring option '-M'; no argument required 3781 # The diagnosis changed in icc 8.0: 3782 # icc: Command line remark: option '-MP' not supported 3783 if (grep 'ignoring option' conftest.err || 3784 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3785 am_cv_CC_dependencies_compiler_type=$depmode 3786 break 3787 fi 3788 fi 3789 done 3790 3791 cd .. 3792 rm -rf conftest.dir 3793else 3794 am_cv_CC_dependencies_compiler_type=none 3795fi 3796 3797fi 3798{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3799echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 3800CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3801 3802 3803 3804if 3805 test "x$enable_dependency_tracking" != xno \ 3806 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3807 am__fastdepCC_TRUE= 3808 am__fastdepCC_FALSE='#' 3809else 3810 am__fastdepCC_TRUE='#' 3811 am__fastdepCC_FALSE= 3812fi 3813 3814 3815 3816 3817if test -n "$ac_tool_prefix"; then 3818 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 3819set dummy ${ac_tool_prefix}ar; ac_word=$2 3820{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3822if test "${ac_cv_prog_AR+set}" = set; then 3823 echo $ECHO_N "(cached) $ECHO_C" >&6 3824else 3825 if test -n "$AR"; then 3826 ac_cv_prog_AR="$AR" # Let the user override the test. 3827else 3828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3829for as_dir in $PATH 3830do 3831 IFS=$as_save_IFS 3832 test -z "$as_dir" && as_dir=. 3833 for ac_exec_ext in '' $ac_executable_extensions; do 3834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 3835 ac_cv_prog_AR="${ac_tool_prefix}ar" 3836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3837 break 2 3838 fi 3839done 3840done 3841IFS=$as_save_IFS 3842 3843fi 3844fi 3845AR=$ac_cv_prog_AR 3846if test -n "$AR"; then 3847 { echo "$as_me:$LINENO: result: $AR" >&5 3848echo "${ECHO_T}$AR" >&6; } 3849else 3850 { echo "$as_me:$LINENO: result: no" >&5 3851echo "${ECHO_T}no" >&6; } 3852fi 3853 3854 3855fi 3856if test -z "$ac_cv_prog_AR"; then 3857 ac_ct_AR=$AR 3858 # Extract the first word of "ar", so it can be a program name with args. 3859set dummy ar; ac_word=$2 3860{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3862if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 3863 echo $ECHO_N "(cached) $ECHO_C" >&6 3864else 3865 if test -n "$ac_ct_AR"; then 3866 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 3867else 3868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3869for as_dir in $PATH 3870do 3871 IFS=$as_save_IFS 3872 test -z "$as_dir" && as_dir=. 3873 for ac_exec_ext in '' $ac_executable_extensions; do 3874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 3875 ac_cv_prog_ac_ct_AR="ar" 3876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3877 break 2 3878 fi 3879done 3880done 3881IFS=$as_save_IFS 3882 3883fi 3884fi 3885ac_ct_AR=$ac_cv_prog_ac_ct_AR 3886if test -n "$ac_ct_AR"; then 3887 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 3888echo "${ECHO_T}$ac_ct_AR" >&6; } 3889else 3890 { echo "$as_me:$LINENO: result: no" >&5 3891echo "${ECHO_T}no" >&6; } 3892fi 3893 3894 if test "x$ac_ct_AR" = x; then 3895 AR="" 3896 else 3897 case $cross_compiling:$ac_tool_warned in 3898yes:) 3899{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3900whose name does not start with the host triplet. If you think this 3901configuration is useful to you, please write to autoconf@gnu.org." >&5 3902echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3903whose name does not start with the host triplet. If you think this 3904configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3905ac_tool_warned=yes ;; 3906esac 3907 AR=$ac_ct_AR 3908 fi 3909else 3910 AR="$ac_cv_prog_AR" 3911fi 3912 3913if test -n "$ac_tool_prefix"; then 3914 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3915set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3916{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3917echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3918if test "${ac_cv_prog_RANLIB+set}" = set; then 3919 echo $ECHO_N "(cached) $ECHO_C" >&6 3920else 3921 if test -n "$RANLIB"; then 3922 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3923else 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 ac_exec_ext in '' $ac_executable_extensions; do 3930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 3931 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3933 break 2 3934 fi 3935done 3936done 3937IFS=$as_save_IFS 3938 3939fi 3940fi 3941RANLIB=$ac_cv_prog_RANLIB 3942if test -n "$RANLIB"; then 3943 { echo "$as_me:$LINENO: result: $RANLIB" >&5 3944echo "${ECHO_T}$RANLIB" >&6; } 3945else 3946 { echo "$as_me:$LINENO: result: no" >&5 3947echo "${ECHO_T}no" >&6; } 3948fi 3949 3950 3951fi 3952if test -z "$ac_cv_prog_RANLIB"; then 3953 ac_ct_RANLIB=$RANLIB 3954 # Extract the first word of "ranlib", so it can be a program name with args. 3955set dummy ranlib; ac_word=$2 3956{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3957echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3958if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 3959 echo $ECHO_N "(cached) $ECHO_C" >&6 3960else 3961 if test -n "$ac_ct_RANLIB"; then 3962 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3963else 3964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3965for as_dir in $PATH 3966do 3967 IFS=$as_save_IFS 3968 test -z "$as_dir" && as_dir=. 3969 for ac_exec_ext in '' $ac_executable_extensions; do 3970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 3971 ac_cv_prog_ac_ct_RANLIB="ranlib" 3972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3973 break 2 3974 fi 3975done 3976done 3977IFS=$as_save_IFS 3978 3979fi 3980fi 3981ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3982if test -n "$ac_ct_RANLIB"; then 3983 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 3984echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 3985else 3986 { echo "$as_me:$LINENO: result: no" >&5 3987echo "${ECHO_T}no" >&6; } 3988fi 3989 3990 if test "x$ac_ct_RANLIB" = x; then 3991 RANLIB=":" 3992 else 3993 case $cross_compiling:$ac_tool_warned in 3994yes:) 3995{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3996whose name does not start with the host triplet. If you think this 3997configuration is useful to you, please write to autoconf@gnu.org." >&5 3998echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3999whose name does not start with the host triplet. If you think this 4000configuration is useful to you, please write to autoconf@gnu.org." >&2;} 4001ac_tool_warned=yes ;; 4002esac 4003 RANLIB=$ac_ct_RANLIB 4004 fi 4005else 4006 RANLIB="$ac_cv_prog_RANLIB" 4007fi 4008 4009 4010# Check whether --enable-shared was given. 4011if test "${enable_shared+set}" = set; then 4012 enableval=$enable_shared; p=${PACKAGE-default} 4013 case $enableval in 4014 yes) enable_shared=yes ;; 4015 no) enable_shared=no ;; 4016 *) 4017 enable_shared=no 4018 # Look at the argument we got. We use all the common list separators. 4019 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4020 for pkg in $enableval; do 4021 IFS="$lt_save_ifs" 4022 if test "X$pkg" = "X$p"; then 4023 enable_shared=yes 4024 fi 4025 done 4026 IFS="$lt_save_ifs" 4027 ;; 4028 esac 4029else 4030 enable_shared=no 4031fi 4032 4033 4034 4035 4036# Check whether --enable-static was given. 4037if test "${enable_static+set}" = set; then 4038 enableval=$enable_static; p=${PACKAGE-default} 4039 case $enableval in 4040 yes) enable_static=yes ;; 4041 no) enable_static=no ;; 4042 *) 4043 enable_static=no 4044 # Look at the argument we got. We use all the common list separators. 4045 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4046 for pkg in $enableval; do 4047 IFS="$lt_save_ifs" 4048 if test "X$pkg" = "X$p"; then 4049 enable_static=yes 4050 fi 4051 done 4052 IFS="$lt_save_ifs" 4053 ;; 4054 esac 4055else 4056 enable_static=yes 4057fi 4058 4059 4060# Check whether --enable-fast-install was given. 4061if test "${enable_fast_install+set}" = set; then 4062 enableval=$enable_fast_install; p=${PACKAGE-default} 4063 case $enableval in 4064 yes) enable_fast_install=yes ;; 4065 no) enable_fast_install=no ;; 4066 *) 4067 enable_fast_install=no 4068 # Look at the argument we got. We use all the common list separators. 4069 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4070 for pkg in $enableval; do 4071 IFS="$lt_save_ifs" 4072 if test "X$pkg" = "X$p"; then 4073 enable_fast_install=yes 4074 fi 4075 done 4076 IFS="$lt_save_ifs" 4077 ;; 4078 esac 4079else 4080 enable_fast_install=yes 4081fi 4082 4083 4084{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 4085echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } 4086if test "${lt_cv_path_SED+set}" = set; then 4087 echo $ECHO_N "(cached) $ECHO_C" >&6 4088else 4089 # Loop through the user's path and test for sed and gsed. 4090# Then use that list of seds as ones to test for truncation. 4091test -z "$as_executable_p" && as_executable_p="test -f" 4092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4093for as_dir in $PATH 4094do 4095 IFS=$as_save_IFS 4096 test -z "$as_dir" && as_dir=. 4097 for lt_ac_prog in sed gsed; do 4098 for ac_exec_ext in '' $ac_executable_extensions; do 4099 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 4100 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 4101 fi 4102 done 4103 done 4104done 4105IFS=$as_save_IFS 4106lt_ac_max=0 4107lt_ac_count=0 4108# Add /usr/xpg4/bin/sed as it is typically found on Solaris 4109# along with /bin/sed that truncates output. 4110for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 4111 test ! -f $lt_ac_sed && continue 4112 cat /dev/null > conftest.in 4113 lt_ac_count=0 4114 echo ${ECHO_N-$ac_n} "0123456789$ECHO_C" >conftest.in 4115 # Check for GNU sed and select it if it is found. 4116 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 4117 lt_cv_path_SED=$lt_ac_sed 4118 break 4119 fi 4120 while true; do 4121 cat conftest.in conftest.in >conftest.tmp 4122 mv conftest.tmp conftest.in 4123 cp conftest.in conftest.nl 4124 echo >>conftest.nl 4125 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 4126 cmp -s conftest.out conftest.nl || break 4127 # 10000 chars as input seems more than enough 4128 test $lt_ac_count -gt 10 && break 4129 lt_ac_count=`expr $lt_ac_count + 1` 4130 if test $lt_ac_count -gt $lt_ac_max; then 4131 lt_ac_max=$lt_ac_count 4132 lt_cv_path_SED=$lt_ac_sed 4133 fi 4134 done 4135done 4136 4137fi 4138 4139lt_cv_path_SED=${lt_cv_path_SED:-$SED} 4140SED=$lt_cv_path_SED 4141 4142{ echo "$as_me:$LINENO: result: $SED" >&5 4143echo "${ECHO_T}$SED" >&6; } 4144 4145{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 4146echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 4147if test "${ac_cv_path_GREP+set}" = set; then 4148 echo $ECHO_N "(cached) $ECHO_C" >&6 4149else 4150 # Extract the first word of "grep ggrep" to use in msg output 4151if test -z "$GREP"; then 4152set dummy grep ggrep; ac_prog_name=$2 4153if test "${ac_cv_path_GREP+set}" = set; then 4154 echo $ECHO_N "(cached) $ECHO_C" >&6 4155else 4156 ac_path_GREP_found=false 4157# Loop through the user's path and test for each of PROGNAME-LIST 4158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4159for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4160do 4161 IFS=$as_save_IFS 4162 test -z "$as_dir" && as_dir=. 4163 for ac_prog in grep ggrep; do 4164 for ac_exec_ext in '' $ac_executable_extensions; do 4165 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4166 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue 4167 # Check for GNU ac_path_GREP and select it if it is found. 4168 # Check for GNU $ac_path_GREP 4169case `"$ac_path_GREP" --version 2>&1` in 4170*GNU*) 4171 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4172*) 4173 ac_count=0 4174 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4175 while : 4176 do 4177 cat "conftest.in" "conftest.in" >"conftest.tmp" 4178 mv "conftest.tmp" "conftest.in" 4179 cp "conftest.in" "conftest.nl" 4180 echo 'GREP' >> "conftest.nl" 4181 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4182 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4183 ac_count=`expr $ac_count + 1` 4184 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4185 # Best one so far, save it but keep looking for a better one 4186 ac_cv_path_GREP="$ac_path_GREP" 4187 ac_path_GREP_max=$ac_count 4188 fi 4189 # 10*(2^10) chars as input seems more than enough 4190 test $ac_count -gt 10 && break 4191 done 4192 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4193esac 4194 4195 4196 $ac_path_GREP_found && break 3 4197 done 4198done 4199 4200done 4201IFS=$as_save_IFS 4202 4203 4204fi 4205 4206GREP="$ac_cv_path_GREP" 4207if test -z "$GREP"; then 4208 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4209echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4210 { (exit 1); exit 1; }; } 4211fi 4212 4213else 4214 ac_cv_path_GREP=$GREP 4215fi 4216 4217 4218fi 4219{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4220echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 4221 GREP="$ac_cv_path_GREP" 4222 4223 4224{ echo "$as_me:$LINENO: checking for egrep" >&5 4225echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 4226if test "${ac_cv_path_EGREP+set}" = set; then 4227 echo $ECHO_N "(cached) $ECHO_C" >&6 4228else 4229 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4230 then ac_cv_path_EGREP="$GREP -E" 4231 else 4232 # Extract the first word of "egrep" to use in msg output 4233if test -z "$EGREP"; then 4234set dummy egrep; ac_prog_name=$2 4235if test "${ac_cv_path_EGREP+set}" = set; then 4236 echo $ECHO_N "(cached) $ECHO_C" >&6 4237else 4238 ac_path_EGREP_found=false 4239# Loop through the user's path and test for each of PROGNAME-LIST 4240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4241for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4242do 4243 IFS=$as_save_IFS 4244 test -z "$as_dir" && as_dir=. 4245 for ac_prog in egrep; do 4246 for ac_exec_ext in '' $ac_executable_extensions; do 4247 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4248 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue 4249 # Check for GNU ac_path_EGREP and select it if it is found. 4250 # Check for GNU $ac_path_EGREP 4251case `"$ac_path_EGREP" --version 2>&1` in 4252*GNU*) 4253 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4254*) 4255 ac_count=0 4256 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4257 while : 4258 do 4259 cat "conftest.in" "conftest.in" >"conftest.tmp" 4260 mv "conftest.tmp" "conftest.in" 4261 cp "conftest.in" "conftest.nl" 4262 echo 'EGREP' >> "conftest.nl" 4263 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4264 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4265 ac_count=`expr $ac_count + 1` 4266 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4267 # Best one so far, save it but keep looking for a better one 4268 ac_cv_path_EGREP="$ac_path_EGREP" 4269 ac_path_EGREP_max=$ac_count 4270 fi 4271 # 10*(2^10) chars as input seems more than enough 4272 test $ac_count -gt 10 && break 4273 done 4274 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4275esac 4276 4277 4278 $ac_path_EGREP_found && break 3 4279 done 4280done 4281 4282done 4283IFS=$as_save_IFS 4284 4285 4286fi 4287 4288EGREP="$ac_cv_path_EGREP" 4289if test -z "$EGREP"; then 4290 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4291echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4292 { (exit 1); exit 1; }; } 4293fi 4294 4295else 4296 ac_cv_path_EGREP=$EGREP 4297fi 4298 4299 4300 fi 4301fi 4302{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4303echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 4304 EGREP="$ac_cv_path_EGREP" 4305 4306 4307 4308# Check whether --with-gnu-ld was given. 4309if test "${with_gnu_ld+set}" = set; then 4310 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4311else 4312 with_gnu_ld=no 4313fi 4314 4315ac_prog=ld 4316if test "$GCC" = yes; then 4317 # Check if gcc -print-prog-name=ld gives a path. 4318 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4319echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 4320 case $host in 4321 *-*-mingw*) 4322 # gcc leaves a trailing carriage return which upsets mingw 4323 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4324 *) 4325 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4326 esac 4327 case $ac_prog in 4328 # Accept absolute paths. 4329 [\\/]* | ?:[\\/]*) 4330 re_direlt='/[^/][^/]*/\.\./' 4331 # Canonicalize the pathname of ld 4332 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 4333 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 4334 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 4335 done 4336 test -z "$LD" && LD="$ac_prog" 4337 ;; 4338 "") 4339 # If it fails, then pretend we aren't using GCC. 4340 ac_prog=ld 4341 ;; 4342 *) 4343 # If it is relative, then search for the first ld in PATH. 4344 with_gnu_ld=unknown 4345 ;; 4346 esac 4347elif test "$with_gnu_ld" = yes; then 4348 { echo "$as_me:$LINENO: checking for GNU ld" >&5 4349echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 4350else 4351 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4352echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 4353fi 4354if test "${lt_cv_path_LD+set}" = set; then 4355 echo $ECHO_N "(cached) $ECHO_C" >&6 4356else 4357 if test -z "$LD"; then 4358 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4359 for ac_dir in $PATH; do 4360 IFS="$lt_save_ifs" 4361 test -z "$ac_dir" && ac_dir=. 4362 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4363 lt_cv_path_LD="$ac_dir/$ac_prog" 4364 # Check to see if the program is GNU ld. I'd rather use --version, 4365 # but apparently some variants of GNU ld only accept -v. 4366 # Break only if it was the GNU/non-GNU ld that we prefer. 4367 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4368 *GNU* | *'with BFD'*) 4369 test "$with_gnu_ld" != no && break 4370 ;; 4371 *) 4372 test "$with_gnu_ld" != yes && break 4373 ;; 4374 esac 4375 fi 4376 done 4377 IFS="$lt_save_ifs" 4378else 4379 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4380fi 4381fi 4382 4383LD="$lt_cv_path_LD" 4384if test -n "$LD"; then 4385 { echo "$as_me:$LINENO: result: $LD" >&5 4386echo "${ECHO_T}$LD" >&6; } 4387else 4388 { echo "$as_me:$LINENO: result: no" >&5 4389echo "${ECHO_T}no" >&6; } 4390fi 4391test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4392echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4393 { (exit 1); exit 1; }; } 4394{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4395echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 4396if test "${lt_cv_prog_gnu_ld+set}" = set; then 4397 echo $ECHO_N "(cached) $ECHO_C" >&6 4398else 4399 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4400case `$LD -v 2>&1 </dev/null` in 4401*GNU* | *'with BFD'*) 4402 lt_cv_prog_gnu_ld=yes 4403 ;; 4404*) 4405 lt_cv_prog_gnu_ld=no 4406 ;; 4407esac 4408fi 4409{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4410echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 4411with_gnu_ld=$lt_cv_prog_gnu_ld 4412 4413 4414{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4415echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } 4416if test "${lt_cv_ld_reload_flag+set}" = set; then 4417 echo $ECHO_N "(cached) $ECHO_C" >&6 4418else 4419 lt_cv_ld_reload_flag='-r' 4420fi 4421{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4422echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } 4423reload_flag=$lt_cv_ld_reload_flag 4424case $reload_flag in 4425"" | " "*) ;; 4426*) reload_flag=" $reload_flag" ;; 4427esac 4428reload_cmds='$LD$reload_flag -o $output$reload_objs' 4429case $host_os in 4430 darwin*) 4431 if test "$GCC" = yes; then 4432 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4433 else 4434 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4435 fi 4436 ;; 4437esac 4438 4439{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4440echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 4441if test "${lt_cv_path_NM+set}" = set; then 4442 echo $ECHO_N "(cached) $ECHO_C" >&6 4443else 4444 if test -n "$NM"; then 4445 # Let the user override the test. 4446 lt_cv_path_NM="$NM" 4447else 4448 lt_nm_to_check="${ac_tool_prefix}nm" 4449 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4450 lt_nm_to_check="$lt_nm_to_check nm" 4451 fi 4452 for lt_tmp_nm in $lt_nm_to_check; do 4453 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4454 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4455 IFS="$lt_save_ifs" 4456 test -z "$ac_dir" && ac_dir=. 4457 tmp_nm="$ac_dir/$lt_tmp_nm" 4458 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4459 # Check to see if the nm accepts a BSD-compat flag. 4460 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 4461 # nm: unknown option "B" ignored 4462 # Tru64's nm complains that /dev/null is an invalid object file 4463 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4464 */dev/null* | *'Invalid file or object type'*) 4465 lt_cv_path_NM="$tmp_nm -B" 4466 break 4467 ;; 4468 *) 4469 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4470 */dev/null*) 4471 lt_cv_path_NM="$tmp_nm -p" 4472 break 4473 ;; 4474 *) 4475 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4476 continue # so that we can try to find one that supports BSD flags 4477 ;; 4478 esac 4479 ;; 4480 esac 4481 fi 4482 done 4483 IFS="$lt_save_ifs" 4484 done 4485 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4486fi 4487fi 4488{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4489echo "${ECHO_T}$lt_cv_path_NM" >&6; } 4490NM="$lt_cv_path_NM" 4491 4492{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 4493echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 4494LN_S=$as_ln_s 4495if test "$LN_S" = "ln -s"; then 4496 { echo "$as_me:$LINENO: result: yes" >&5 4497echo "${ECHO_T}yes" >&6; } 4498else 4499 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4500echo "${ECHO_T}no, using $LN_S" >&6; } 4501fi 4502 4503{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 4504echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } 4505if test "${lt_cv_deplibs_check_method+set}" = set; then 4506 echo $ECHO_N "(cached) $ECHO_C" >&6 4507else 4508 lt_cv_file_magic_cmd='$MAGIC_CMD' 4509lt_cv_file_magic_test_file= 4510lt_cv_deplibs_check_method='unknown' 4511# Need to set the preceding variable on all platforms that support 4512# interlibrary dependencies. 4513# 'none' -- dependencies not supported. 4514# 'unknown' -- same as none, but documents that we really don't know. 4515# 'pass_all' -- all dependencies passed with no checks. 4516# 'test_compile' -- check by making test program. 4517# 'file_magic [[regex]]' -- check by looking for files in library path 4518# which responds to the $file_magic_cmd with a given extended regex. 4519# If you have 'file' or equivalent on your system and you're not sure 4520# whether 'pass_all' will *always* work, you probably want this one. 4521 4522case $host_os in 4523aix4* | aix5*) 4524 lt_cv_deplibs_check_method=pass_all 4525 ;; 4526 4527beos*) 4528 lt_cv_deplibs_check_method=pass_all 4529 ;; 4530 4531bsdi[45]*) 4532 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4533 lt_cv_file_magic_cmd='/usr/bin/file -L' 4534 lt_cv_file_magic_test_file=/shlib/libc.so 4535 ;; 4536 4537cygwin*) 4538 # func_win32_libid is a shell function defined in ltmain.sh 4539 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4540 lt_cv_file_magic_cmd='func_win32_libid' 4541 ;; 4542 4543mingw* | pw32*) 4544 # Base MSYS/MinGW do not provide the 'file' command needed by 4545 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 4546 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4547 lt_cv_file_magic_cmd='$OBJDUMP -f' 4548 ;; 4549 4550darwin* | rhapsody*) 4551 lt_cv_deplibs_check_method=pass_all 4552 ;; 4553 4554freebsd* | kfreebsd*-gnu | dragonfly*) 4555 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4556 case $host_cpu in 4557 i*86 ) 4558 # Not sure whether the presence of OpenBSD here was a mistake. 4559 # Let's accept both of them until this is cleared up. 4560 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4561 lt_cv_file_magic_cmd=/usr/bin/file 4562 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4563 ;; 4564 esac 4565 else 4566 lt_cv_deplibs_check_method=pass_all 4567 fi 4568 ;; 4569 4570gnu*) 4571 lt_cv_deplibs_check_method=pass_all 4572 ;; 4573 4574hpux10.20* | hpux11*) 4575 lt_cv_file_magic_cmd=/usr/bin/file 4576 case $host_cpu in 4577 ia64*) 4578 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4579 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4580 ;; 4581 hppa*64*) 4582 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]' 4583 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4584 ;; 4585 *) 4586 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4587 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4588 ;; 4589 esac 4590 ;; 4591 4592interix3*) 4593 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4594 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4595 ;; 4596 4597irix5* | irix6* | nonstopux*) 4598 case $LD in 4599 *-32|*"-32 ") libmagic=32-bit;; 4600 *-n32|*"-n32 ") libmagic=N32;; 4601 *-64|*"-64 ") libmagic=64-bit;; 4602 *) libmagic=never-match;; 4603 esac 4604 lt_cv_deplibs_check_method=pass_all 4605 ;; 4606 4607# This must be Linux ELF. 4608linux*) 4609 lt_cv_deplibs_check_method=pass_all 4610 ;; 4611 4612mirbsd*) 4613 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4614 ;; 4615 4616netbsd*) 4617 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4618 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4619 else 4620 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4621 fi 4622 ;; 4623 4624newos6*) 4625 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4626 lt_cv_file_magic_cmd=/usr/bin/file 4627 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4628 ;; 4629 4630nto-qnx*) 4631 lt_cv_deplibs_check_method=unknown 4632 ;; 4633 4634openbsd*) 4635 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4636 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4637 else 4638 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4639 fi 4640 ;; 4641 4642osf3* | osf4* | osf5*) 4643 lt_cv_deplibs_check_method=pass_all 4644 ;; 4645 4646rdos*) 4647 lt_cv_deplibs_check_method=pass_all 4648 ;; 4649 4650solaris*) 4651 lt_cv_deplibs_check_method=pass_all 4652 ;; 4653 4654sysv4 | sysv4.3*) 4655 case $host_vendor in 4656 motorola) 4657 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]' 4658 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4659 ;; 4660 ncr) 4661 lt_cv_deplibs_check_method=pass_all 4662 ;; 4663 sequent) 4664 lt_cv_file_magic_cmd='/bin/file' 4665 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4666 ;; 4667 sni) 4668 lt_cv_file_magic_cmd='/bin/file' 4669 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4670 lt_cv_file_magic_test_file=/lib/libc.so 4671 ;; 4672 siemens) 4673 lt_cv_deplibs_check_method=pass_all 4674 ;; 4675 pc) 4676 lt_cv_deplibs_check_method=pass_all 4677 ;; 4678 esac 4679 ;; 4680 4681sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4682 lt_cv_deplibs_check_method=pass_all 4683 ;; 4684esac 4685 4686fi 4687{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4688echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 4689file_magic_cmd=$lt_cv_file_magic_cmd 4690deplibs_check_method=$lt_cv_deplibs_check_method 4691test -z "$deplibs_check_method" && deplibs_check_method=unknown 4692 4693 4694 4695 4696# If no C compiler was specified, use CC. 4697LTCC=${LTCC-"$CC"} 4698 4699# If no C compiler flags were specified, use CFLAGS. 4700LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4701 4702# Allow CC to be a program name with arguments. 4703compiler=$CC 4704 4705# The user is always right. 4706if test "${PATH_SEPARATOR+set}" != set; then 4707 echo "#! /bin/sh" >conf$$.sh 4708 echo "exit 0" >>conf$$.sh 4709 chmod +x conf$$.sh 4710 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 4711 PATH_SEPARATOR=';' 4712 else 4713 PATH_SEPARATOR=: 4714 fi 4715 rm -f conf$$.sh 4716fi 4717 4718# Check whether --enable-libtool-lock was given. 4719if test "${enable_libtool_lock+set}" = set; then 4720 enableval=$enable_libtool_lock; 4721fi 4722 4723test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4724 4725# Some flags need to be propagated to the compiler or linker for good 4726# libtool support. 4727case $host in 4728ia64-*-hpux*) 4729 # Find out which ABI we are using. 4730 echo 'int i;' > conftest.$ac_ext 4731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4732 (eval $ac_compile) 2>&5 4733 ac_status=$? 4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4735 (exit $ac_status); }; then 4736 case `/usr/bin/file conftest.$ac_objext` in 4737 *ELF-32*) 4738 HPUX_IA64_MODE="32" 4739 ;; 4740 *ELF-64*) 4741 HPUX_IA64_MODE="64" 4742 ;; 4743 esac 4744 fi 4745 rm -rf conftest* 4746 ;; 4747*-*-irix6*) 4748 # Find out which ABI we are using. 4749 echo '#line 4749 "configure"' > conftest.$ac_ext 4750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4751 (eval $ac_compile) 2>&5 4752 ac_status=$? 4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4754 (exit $ac_status); }; then 4755 if test "$lt_cv_prog_gnu_ld" = yes; then 4756 case `/usr/bin/file conftest.$ac_objext` in 4757 *32-bit*) 4758 LD="${LD-ld} -melf32bsmip" 4759 ;; 4760 *N32*) 4761 LD="${LD-ld} -melf32bmipn32" 4762 ;; 4763 *64-bit*) 4764 LD="${LD-ld} -melf64bmip" 4765 ;; 4766 esac 4767 else 4768 case `/usr/bin/file conftest.$ac_objext` in 4769 *32-bit*) 4770 LD="${LD-ld} -32" 4771 ;; 4772 *N32*) 4773 LD="${LD-ld} -n32" 4774 ;; 4775 *64-bit*) 4776 LD="${LD-ld} -64" 4777 ;; 4778 esac 4779 fi 4780 fi 4781 rm -rf conftest* 4782 ;; 4783 4784x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 4785 # Find out which ABI we are using. 4786 echo 'int i;' > conftest.$ac_ext 4787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4788 (eval $ac_compile) 2>&5 4789 ac_status=$? 4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4791 (exit $ac_status); }; then 4792 case `/usr/bin/file conftest.o` in 4793 *32-bit*) 4794 case $host in 4795 x86_64-*linux*) 4796 LD="${LD-ld} -m elf_i386" 4797 ;; 4798 ppc64-*linux*|powerpc64-*linux*) 4799 LD="${LD-ld} -m elf32ppclinux" 4800 ;; 4801 s390x-*linux*) 4802 LD="${LD-ld} -m elf_s390" 4803 ;; 4804 sparc64-*linux*) 4805 LD="${LD-ld} -m elf32_sparc" 4806 ;; 4807 esac 4808 ;; 4809 *64-bit*) 4810 case $host in 4811 x86_64-*linux*) 4812 LD="${LD-ld} -m elf_x86_64" 4813 ;; 4814 ppc*-*linux*|powerpc*-*linux*) 4815 LD="${LD-ld} -m elf64ppc" 4816 ;; 4817 s390*-*linux*) 4818 LD="${LD-ld} -m elf64_s390" 4819 ;; 4820 sparc*-*linux*) 4821 LD="${LD-ld} -m elf64_sparc" 4822 ;; 4823 esac 4824 ;; 4825 esac 4826 fi 4827 rm -rf conftest* 4828 ;; 4829 4830*-*-sco3.2v5*) 4831 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4832 SAVE_CFLAGS="$CFLAGS" 4833 CFLAGS="$CFLAGS -belf" 4834 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4835echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } 4836if test "${lt_cv_cc_needs_belf+set}" = set; then 4837 echo $ECHO_N "(cached) $ECHO_C" >&6 4838else 4839 ac_ext=c 4840ac_cpp='$CPP $CPPFLAGS' 4841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4843ac_compiler_gnu=$ac_cv_c_compiler_gnu 4844 4845 cat >conftest.$ac_ext <<_ACEOF 4846/* confdefs.h. */ 4847_ACEOF 4848cat confdefs.h >>conftest.$ac_ext 4849cat >>conftest.$ac_ext <<_ACEOF 4850/* end confdefs.h. */ 4851 4852int 4853main () 4854{ 4855 4856 ; 4857 return 0; 4858} 4859_ACEOF 4860rm -f conftest.$ac_objext conftest$ac_exeext 4861if { (ac_try="$ac_link" 4862case "(($ac_try" in 4863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4864 *) ac_try_echo=$ac_try;; 4865esac 4866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4867 (eval "$ac_link") 2>conftest.er1 4868 ac_status=$? 4869 grep -v '^ *+' conftest.er1 >conftest.err 4870 rm -f conftest.er1 4871 cat conftest.err >&5 4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4873 (exit $ac_status); } && 4874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4875 { (case "(($ac_try" in 4876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4877 *) ac_try_echo=$ac_try;; 4878esac 4879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4880 (eval "$ac_try") 2>&5 4881 ac_status=$? 4882 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4883 (exit $ac_status); }; } && 4884 { ac_try='test -s conftest$ac_exeext' 4885 { (case "(($ac_try" in 4886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4887 *) ac_try_echo=$ac_try;; 4888esac 4889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4890 (eval "$ac_try") 2>&5 4891 ac_status=$? 4892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4893 (exit $ac_status); }; }; then 4894 lt_cv_cc_needs_belf=yes 4895else 4896 echo "$as_me: failed program was:" >&5 4897sed 's/^/| /' conftest.$ac_ext >&5 4898 4899 lt_cv_cc_needs_belf=no 4900fi 4901 4902rm -f core conftest.err conftest.$ac_objext \ 4903 conftest$ac_exeext conftest.$ac_ext 4904 ac_ext=c 4905ac_cpp='$CPP $CPPFLAGS' 4906ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4907ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4908ac_compiler_gnu=$ac_cv_c_compiler_gnu 4909 4910fi 4911{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4912echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } 4913 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4914 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4915 CFLAGS="$SAVE_CFLAGS" 4916 fi 4917 ;; 4918sparc*-*solaris*) 4919 # Find out which ABI we are using. 4920 echo 'int i;' > conftest.$ac_ext 4921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4922 (eval $ac_compile) 2>&5 4923 ac_status=$? 4924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4925 (exit $ac_status); }; then 4926 case `/usr/bin/file conftest.o` in 4927 *64-bit*) 4928 case $lt_cv_prog_gnu_ld in 4929 yes*) LD="${LD-ld} -m elf64_sparc" ;; 4930 *) LD="${LD-ld} -64" ;; 4931 esac 4932 ;; 4933 esac 4934 fi 4935 rm -rf conftest* 4936 ;; 4937 4938 4939esac 4940 4941need_locks="$enable_libtool_lock" 4942 4943 4944ac_ext=c 4945ac_cpp='$CPP $CPPFLAGS' 4946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4948ac_compiler_gnu=$ac_cv_c_compiler_gnu 4949{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4950echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 4951# On Suns, sometimes $CPP names a directory. 4952if test -n "$CPP" && test -d "$CPP"; then 4953 CPP= 4954fi 4955if test -z "$CPP"; then 4956 if test "${ac_cv_prog_CPP+set}" = set; then 4957 echo $ECHO_N "(cached) $ECHO_C" >&6 4958else 4959 # Double quotes because CPP needs to be expanded 4960 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4961 do 4962 ac_preproc_ok=false 4963for ac_c_preproc_warn_flag in '' yes 4964do 4965 # Use a header file that comes with gcc, so configuring glibc 4966 # with a fresh cross-compiler works. 4967 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4968 # <limits.h> exists even on freestanding compilers. 4969 # On the NeXT, cc -E runs the code through the compiler's parser, 4970 # not just through cpp. "Syntax error" is here to catch this case. 4971 cat >conftest.$ac_ext <<_ACEOF 4972/* confdefs.h. */ 4973_ACEOF 4974cat confdefs.h >>conftest.$ac_ext 4975cat >>conftest.$ac_ext <<_ACEOF 4976/* end confdefs.h. */ 4977#ifdef __STDC__ 4978# include <limits.h> 4979#else 4980# include <assert.h> 4981#endif 4982 Syntax error 4983_ACEOF 4984if { (ac_try="$ac_cpp conftest.$ac_ext" 4985case "(($ac_try" in 4986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4987 *) ac_try_echo=$ac_try;; 4988esac 4989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4991 ac_status=$? 4992 grep -v '^ *+' conftest.er1 >conftest.err 4993 rm -f conftest.er1 4994 cat conftest.err >&5 4995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4996 (exit $ac_status); } >/dev/null; then 4997 if test -s conftest.err; then 4998 ac_cpp_err=$ac_c_preproc_warn_flag 4999 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5000 else 5001 ac_cpp_err= 5002 fi 5003else 5004 ac_cpp_err=yes 5005fi 5006if test -z "$ac_cpp_err"; then 5007 : 5008else 5009 echo "$as_me: failed program was:" >&5 5010sed 's/^/| /' conftest.$ac_ext >&5 5011 5012 # Broken: fails on valid input. 5013continue 5014fi 5015 5016rm -f conftest.err conftest.$ac_ext 5017 5018 # OK, works on sane cases. Now check whether nonexistent headers 5019 # can be detected and how. 5020 cat >conftest.$ac_ext <<_ACEOF 5021/* confdefs.h. */ 5022_ACEOF 5023cat confdefs.h >>conftest.$ac_ext 5024cat >>conftest.$ac_ext <<_ACEOF 5025/* end confdefs.h. */ 5026#include <ac_nonexistent.h> 5027_ACEOF 5028if { (ac_try="$ac_cpp conftest.$ac_ext" 5029case "(($ac_try" in 5030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5031 *) ac_try_echo=$ac_try;; 5032esac 5033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5034 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5035 ac_status=$? 5036 grep -v '^ *+' conftest.er1 >conftest.err 5037 rm -f conftest.er1 5038 cat conftest.err >&5 5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5040 (exit $ac_status); } >/dev/null; then 5041 if test -s conftest.err; then 5042 ac_cpp_err=$ac_c_preproc_warn_flag 5043 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5044 else 5045 ac_cpp_err= 5046 fi 5047else 5048 ac_cpp_err=yes 5049fi 5050if test -z "$ac_cpp_err"; then 5051 # Broken: success on invalid input. 5052continue 5053else 5054 echo "$as_me: failed program was:" >&5 5055sed 's/^/| /' conftest.$ac_ext >&5 5056 5057 # Passes both tests. 5058ac_preproc_ok=: 5059break 5060fi 5061 5062rm -f conftest.err conftest.$ac_ext 5063 5064done 5065# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5066rm -f conftest.err conftest.$ac_ext 5067if $ac_preproc_ok; then 5068 break 5069fi 5070 5071 done 5072 ac_cv_prog_CPP=$CPP 5073 5074fi 5075 CPP=$ac_cv_prog_CPP 5076else 5077 ac_cv_prog_CPP=$CPP 5078fi 5079{ echo "$as_me:$LINENO: result: $CPP" >&5 5080echo "${ECHO_T}$CPP" >&6; } 5081ac_preproc_ok=false 5082for ac_c_preproc_warn_flag in '' yes 5083do 5084 # Use a header file that comes with gcc, so configuring glibc 5085 # with a fresh cross-compiler works. 5086 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5087 # <limits.h> exists even on freestanding compilers. 5088 # On the NeXT, cc -E runs the code through the compiler's parser, 5089 # not just through cpp. "Syntax error" is here to catch this case. 5090 cat >conftest.$ac_ext <<_ACEOF 5091/* confdefs.h. */ 5092_ACEOF 5093cat confdefs.h >>conftest.$ac_ext 5094cat >>conftest.$ac_ext <<_ACEOF 5095/* end confdefs.h. */ 5096#ifdef __STDC__ 5097# include <limits.h> 5098#else 5099# include <assert.h> 5100#endif 5101 Syntax error 5102_ACEOF 5103if { (ac_try="$ac_cpp conftest.$ac_ext" 5104case "(($ac_try" in 5105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5106 *) ac_try_echo=$ac_try;; 5107esac 5108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5109 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5110 ac_status=$? 5111 grep -v '^ *+' conftest.er1 >conftest.err 5112 rm -f conftest.er1 5113 cat conftest.err >&5 5114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5115 (exit $ac_status); } >/dev/null; then 5116 if test -s conftest.err; then 5117 ac_cpp_err=$ac_c_preproc_warn_flag 5118 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5119 else 5120 ac_cpp_err= 5121 fi 5122else 5123 ac_cpp_err=yes 5124fi 5125if test -z "$ac_cpp_err"; then 5126 : 5127else 5128 echo "$as_me: failed program was:" >&5 5129sed 's/^/| /' conftest.$ac_ext >&5 5130 5131 # Broken: fails on valid input. 5132continue 5133fi 5134 5135rm -f conftest.err conftest.$ac_ext 5136 5137 # OK, works on sane cases. Now check whether nonexistent headers 5138 # can be detected and how. 5139 cat >conftest.$ac_ext <<_ACEOF 5140/* confdefs.h. */ 5141_ACEOF 5142cat confdefs.h >>conftest.$ac_ext 5143cat >>conftest.$ac_ext <<_ACEOF 5144/* end confdefs.h. */ 5145#include <ac_nonexistent.h> 5146_ACEOF 5147if { (ac_try="$ac_cpp conftest.$ac_ext" 5148case "(($ac_try" in 5149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5150 *) ac_try_echo=$ac_try;; 5151esac 5152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5153 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5154 ac_status=$? 5155 grep -v '^ *+' conftest.er1 >conftest.err 5156 rm -f conftest.er1 5157 cat conftest.err >&5 5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5159 (exit $ac_status); } >/dev/null; then 5160 if test -s conftest.err; then 5161 ac_cpp_err=$ac_c_preproc_warn_flag 5162 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5163 else 5164 ac_cpp_err= 5165 fi 5166else 5167 ac_cpp_err=yes 5168fi 5169if test -z "$ac_cpp_err"; then 5170 # Broken: success on invalid input. 5171continue 5172else 5173 echo "$as_me: failed program was:" >&5 5174sed 's/^/| /' conftest.$ac_ext >&5 5175 5176 # Passes both tests. 5177ac_preproc_ok=: 5178break 5179fi 5180 5181rm -f conftest.err conftest.$ac_ext 5182 5183done 5184# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5185rm -f conftest.err conftest.$ac_ext 5186if $ac_preproc_ok; then 5187 : 5188else 5189 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 5190See \`config.log' for more details." >&5 5191echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 5192See \`config.log' for more details." >&2;} 5193 { (exit 1); exit 1; }; } 5194fi 5195 5196ac_ext=c 5197ac_cpp='$CPP $CPPFLAGS' 5198ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5199ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5200ac_compiler_gnu=$ac_cv_c_compiler_gnu 5201 5202 5203{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 5204echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 5205if test "${ac_cv_header_stdc+set}" = set; then 5206 echo $ECHO_N "(cached) $ECHO_C" >&6 5207else 5208 cat >conftest.$ac_ext <<_ACEOF 5209/* confdefs.h. */ 5210_ACEOF 5211cat confdefs.h >>conftest.$ac_ext 5212cat >>conftest.$ac_ext <<_ACEOF 5213/* end confdefs.h. */ 5214#include <stdlib.h> 5215#include <stdarg.h> 5216#include <string.h> 5217#include <float.h> 5218 5219int 5220main () 5221{ 5222 5223 ; 5224 return 0; 5225} 5226_ACEOF 5227rm -f conftest.$ac_objext 5228if { (ac_try="$ac_compile" 5229case "(($ac_try" in 5230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5231 *) ac_try_echo=$ac_try;; 5232esac 5233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5234 (eval "$ac_compile") 2>conftest.er1 5235 ac_status=$? 5236 grep -v '^ *+' conftest.er1 >conftest.err 5237 rm -f conftest.er1 5238 cat conftest.err >&5 5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5240 (exit $ac_status); } && 5241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5242 { (case "(($ac_try" in 5243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5244 *) ac_try_echo=$ac_try;; 5245esac 5246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5247 (eval "$ac_try") 2>&5 5248 ac_status=$? 5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5250 (exit $ac_status); }; } && 5251 { ac_try='test -s conftest.$ac_objext' 5252 { (case "(($ac_try" in 5253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5254 *) ac_try_echo=$ac_try;; 5255esac 5256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5257 (eval "$ac_try") 2>&5 5258 ac_status=$? 5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5260 (exit $ac_status); }; }; then 5261 ac_cv_header_stdc=yes 5262else 5263 echo "$as_me: failed program was:" >&5 5264sed 's/^/| /' conftest.$ac_ext >&5 5265 5266 ac_cv_header_stdc=no 5267fi 5268 5269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5270 5271if test $ac_cv_header_stdc = yes; then 5272 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5273 cat >conftest.$ac_ext <<_ACEOF 5274/* confdefs.h. */ 5275_ACEOF 5276cat confdefs.h >>conftest.$ac_ext 5277cat >>conftest.$ac_ext <<_ACEOF 5278/* end confdefs.h. */ 5279#include <string.h> 5280 5281_ACEOF 5282if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5283 $EGREP "memchr" >/dev/null 2>&1; then 5284 : 5285else 5286 ac_cv_header_stdc=no 5287fi 5288rm -f conftest* 5289 5290fi 5291 5292if test $ac_cv_header_stdc = yes; then 5293 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5294 cat >conftest.$ac_ext <<_ACEOF 5295/* confdefs.h. */ 5296_ACEOF 5297cat confdefs.h >>conftest.$ac_ext 5298cat >>conftest.$ac_ext <<_ACEOF 5299/* end confdefs.h. */ 5300#include <stdlib.h> 5301 5302_ACEOF 5303if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5304 $EGREP "free" >/dev/null 2>&1; then 5305 : 5306else 5307 ac_cv_header_stdc=no 5308fi 5309rm -f conftest* 5310 5311fi 5312 5313if test $ac_cv_header_stdc = yes; then 5314 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5315 if test "$cross_compiling" = yes; then 5316 : 5317else 5318 cat >conftest.$ac_ext <<_ACEOF 5319/* confdefs.h. */ 5320_ACEOF 5321cat confdefs.h >>conftest.$ac_ext 5322cat >>conftest.$ac_ext <<_ACEOF 5323/* end confdefs.h. */ 5324#include <ctype.h> 5325#include <stdlib.h> 5326#if ((' ' & 0x0FF) == 0x020) 5327# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5328# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5329#else 5330# define ISLOWER(c) \ 5331 (('a' <= (c) && (c) <= 'i') \ 5332 || ('j' <= (c) && (c) <= 'r') \ 5333 || ('s' <= (c) && (c) <= 'z')) 5334# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5335#endif 5336 5337#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5338int 5339main () 5340{ 5341 int i; 5342 for (i = 0; i < 256; i++) 5343 if (XOR (islower (i), ISLOWER (i)) 5344 || toupper (i) != TOUPPER (i)) 5345 return 2; 5346 return 0; 5347} 5348_ACEOF 5349rm -f conftest$ac_exeext 5350if { (ac_try="$ac_link" 5351case "(($ac_try" in 5352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5353 *) ac_try_echo=$ac_try;; 5354esac 5355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5356 (eval "$ac_link") 2>&5 5357 ac_status=$? 5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5359 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5360 { (case "(($ac_try" in 5361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5362 *) ac_try_echo=$ac_try;; 5363esac 5364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5365 (eval "$ac_try") 2>&5 5366 ac_status=$? 5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5368 (exit $ac_status); }; }; then 5369 : 5370else 5371 echo "$as_me: program exited with status $ac_status" >&5 5372echo "$as_me: failed program was:" >&5 5373sed 's/^/| /' conftest.$ac_ext >&5 5374 5375( exit $ac_status ) 5376ac_cv_header_stdc=no 5377fi 5378rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5379fi 5380 5381 5382fi 5383fi 5384{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5385echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 5386if test $ac_cv_header_stdc = yes; then 5387 5388cat >>confdefs.h <<\_ACEOF 5389#define STDC_HEADERS 1 5390_ACEOF 5391 5392fi 5393 5394# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5405 inttypes.h stdint.h unistd.h 5406do 5407as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5408{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5409echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5410if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5411 echo $ECHO_N "(cached) $ECHO_C" >&6 5412else 5413 cat >conftest.$ac_ext <<_ACEOF 5414/* confdefs.h. */ 5415_ACEOF 5416cat confdefs.h >>conftest.$ac_ext 5417cat >>conftest.$ac_ext <<_ACEOF 5418/* end confdefs.h. */ 5419$ac_includes_default 5420 5421#include <$ac_header> 5422_ACEOF 5423rm -f conftest.$ac_objext 5424if { (ac_try="$ac_compile" 5425case "(($ac_try" in 5426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5427 *) ac_try_echo=$ac_try;; 5428esac 5429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5430 (eval "$ac_compile") 2>conftest.er1 5431 ac_status=$? 5432 grep -v '^ *+' conftest.er1 >conftest.err 5433 rm -f conftest.er1 5434 cat conftest.err >&5 5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5436 (exit $ac_status); } && 5437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5438 { (case "(($ac_try" in 5439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5440 *) ac_try_echo=$ac_try;; 5441esac 5442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5443 (eval "$ac_try") 2>&5 5444 ac_status=$? 5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5446 (exit $ac_status); }; } && 5447 { ac_try='test -s conftest.$ac_objext' 5448 { (case "(($ac_try" in 5449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5450 *) ac_try_echo=$ac_try;; 5451esac 5452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5453 (eval "$ac_try") 2>&5 5454 ac_status=$? 5455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5456 (exit $ac_status); }; }; then 5457 eval "$as_ac_Header=yes" 5458else 5459 echo "$as_me: failed program was:" >&5 5460sed 's/^/| /' conftest.$ac_ext >&5 5461 5462 eval "$as_ac_Header=no" 5463fi 5464 5465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5466fi 5467ac_res=`eval echo '${'$as_ac_Header'}'` 5468 { echo "$as_me:$LINENO: result: $ac_res" >&5 5469echo "${ECHO_T}$ac_res" >&6; } 5470if test `eval echo '${'$as_ac_Header'}'` = yes; then 5471 cat >>confdefs.h <<_ACEOF 5472#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5473_ACEOF 5474 5475fi 5476 5477done 5478 5479 5480 5481for ac_header in dlfcn.h 5482do 5483as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5484if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5485 { echo "$as_me:$LINENO: checking for $ac_header" >&5 5486echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5487if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5488 echo $ECHO_N "(cached) $ECHO_C" >&6 5489fi 5490ac_res=`eval echo '${'$as_ac_Header'}'` 5491 { echo "$as_me:$LINENO: result: $ac_res" >&5 5492echo "${ECHO_T}$ac_res" >&6; } 5493else 5494 # Is the header compilable? 5495{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 5496echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 5497cat >conftest.$ac_ext <<_ACEOF 5498/* confdefs.h. */ 5499_ACEOF 5500cat confdefs.h >>conftest.$ac_ext 5501cat >>conftest.$ac_ext <<_ACEOF 5502/* end confdefs.h. */ 5503$ac_includes_default 5504#include <$ac_header> 5505_ACEOF 5506rm -f conftest.$ac_objext 5507if { (ac_try="$ac_compile" 5508case "(($ac_try" in 5509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5510 *) ac_try_echo=$ac_try;; 5511esac 5512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5513 (eval "$ac_compile") 2>conftest.er1 5514 ac_status=$? 5515 grep -v '^ *+' conftest.er1 >conftest.err 5516 rm -f conftest.er1 5517 cat conftest.err >&5 5518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5519 (exit $ac_status); } && 5520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5521 { (case "(($ac_try" in 5522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5523 *) ac_try_echo=$ac_try;; 5524esac 5525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5526 (eval "$ac_try") 2>&5 5527 ac_status=$? 5528 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5529 (exit $ac_status); }; } && 5530 { ac_try='test -s conftest.$ac_objext' 5531 { (case "(($ac_try" in 5532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5533 *) ac_try_echo=$ac_try;; 5534esac 5535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5536 (eval "$ac_try") 2>&5 5537 ac_status=$? 5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5539 (exit $ac_status); }; }; then 5540 ac_header_compiler=yes 5541else 5542 echo "$as_me: failed program was:" >&5 5543sed 's/^/| /' conftest.$ac_ext >&5 5544 5545 ac_header_compiler=no 5546fi 5547 5548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5549{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5550echo "${ECHO_T}$ac_header_compiler" >&6; } 5551 5552# Is the header present? 5553{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 5554echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 5555cat >conftest.$ac_ext <<_ACEOF 5556/* confdefs.h. */ 5557_ACEOF 5558cat confdefs.h >>conftest.$ac_ext 5559cat >>conftest.$ac_ext <<_ACEOF 5560/* end confdefs.h. */ 5561#include <$ac_header> 5562_ACEOF 5563if { (ac_try="$ac_cpp conftest.$ac_ext" 5564case "(($ac_try" in 5565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5566 *) ac_try_echo=$ac_try;; 5567esac 5568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5569 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5570 ac_status=$? 5571 grep -v '^ *+' conftest.er1 >conftest.err 5572 rm -f conftest.er1 5573 cat conftest.err >&5 5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5575 (exit $ac_status); } >/dev/null; then 5576 if test -s conftest.err; then 5577 ac_cpp_err=$ac_c_preproc_warn_flag 5578 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5579 else 5580 ac_cpp_err= 5581 fi 5582else 5583 ac_cpp_err=yes 5584fi 5585if test -z "$ac_cpp_err"; then 5586 ac_header_preproc=yes 5587else 5588 echo "$as_me: failed program was:" >&5 5589sed 's/^/| /' conftest.$ac_ext >&5 5590 5591 ac_header_preproc=no 5592fi 5593 5594rm -f conftest.err conftest.$ac_ext 5595{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5596echo "${ECHO_T}$ac_header_preproc" >&6; } 5597 5598# So? What about this header? 5599case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5600 yes:no: ) 5601 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5602echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5603 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5604echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5605 ac_header_preproc=yes 5606 ;; 5607 no:yes:* ) 5608 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5609echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5610 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5611echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5612 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5613echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5614 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5615echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5616 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5617echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5618 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5619echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5620 5621 ;; 5622esac 5623{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5624echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5625if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5626 echo $ECHO_N "(cached) $ECHO_C" >&6 5627else 5628 eval "$as_ac_Header=\$ac_header_preproc" 5629fi 5630ac_res=`eval echo '${'$as_ac_Header'}'` 5631 { echo "$as_me:$LINENO: result: $ac_res" >&5 5632echo "${ECHO_T}$ac_res" >&6; } 5633 5634fi 5635if test `eval echo '${'$as_ac_Header'}'` = yes; then 5636 cat >>confdefs.h <<_ACEOF 5637#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5638_ACEOF 5639 5640fi 5641 5642done 5643 5644ac_ext=cpp 5645ac_cpp='$CXXCPP $CPPFLAGS' 5646ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5647ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5648ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5649if test -z "$CXX"; then 5650 if test -n "$CCC"; then 5651 CXX=$CCC 5652 else 5653 if test -n "$ac_tool_prefix"; then 5654 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5655 do 5656 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5657set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5658{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5659echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5660if test "${ac_cv_prog_CXX+set}" = set; then 5661 echo $ECHO_N "(cached) $ECHO_C" >&6 5662else 5663 if test -n "$CXX"; then 5664 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5665else 5666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5667for as_dir in $PATH 5668do 5669 IFS=$as_save_IFS 5670 test -z "$as_dir" && as_dir=. 5671 for ac_exec_ext in '' $ac_executable_extensions; do 5672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5673 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5675 break 2 5676 fi 5677done 5678done 5679IFS=$as_save_IFS 5680 5681fi 5682fi 5683CXX=$ac_cv_prog_CXX 5684if test -n "$CXX"; then 5685 { echo "$as_me:$LINENO: result: $CXX" >&5 5686echo "${ECHO_T}$CXX" >&6; } 5687else 5688 { echo "$as_me:$LINENO: result: no" >&5 5689echo "${ECHO_T}no" >&6; } 5690fi 5691 5692 5693 test -n "$CXX" && break 5694 done 5695fi 5696if test -z "$CXX"; then 5697 ac_ct_CXX=$CXX 5698 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5699do 5700 # Extract the first word of "$ac_prog", so it can be a program name with args. 5701set dummy $ac_prog; ac_word=$2 5702{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5704if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 5705 echo $ECHO_N "(cached) $ECHO_C" >&6 5706else 5707 if test -n "$ac_ct_CXX"; then 5708 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5709else 5710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5711for as_dir in $PATH 5712do 5713 IFS=$as_save_IFS 5714 test -z "$as_dir" && as_dir=. 5715 for ac_exec_ext in '' $ac_executable_extensions; do 5716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5717 ac_cv_prog_ac_ct_CXX="$ac_prog" 5718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5719 break 2 5720 fi 5721done 5722done 5723IFS=$as_save_IFS 5724 5725fi 5726fi 5727ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5728if test -n "$ac_ct_CXX"; then 5729 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 5730echo "${ECHO_T}$ac_ct_CXX" >&6; } 5731else 5732 { echo "$as_me:$LINENO: result: no" >&5 5733echo "${ECHO_T}no" >&6; } 5734fi 5735 5736 5737 test -n "$ac_ct_CXX" && break 5738done 5739 5740 if test "x$ac_ct_CXX" = x; then 5741 CXX="g++" 5742 else 5743 case $cross_compiling:$ac_tool_warned in 5744yes:) 5745{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5746whose name does not start with the host triplet. If you think this 5747configuration is useful to you, please write to autoconf@gnu.org." >&5 5748echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5749whose name does not start with the host triplet. If you think this 5750configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5751ac_tool_warned=yes ;; 5752esac 5753 CXX=$ac_ct_CXX 5754 fi 5755fi 5756 5757 fi 5758fi 5759# Provide some information about the compiler. 5760echo "$as_me:$LINENO: checking for C++ compiler version" >&5 5761ac_compiler=`set X $ac_compile; echo $2` 5762{ (ac_try="$ac_compiler --version >&5" 5763case "(($ac_try" in 5764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5765 *) ac_try_echo=$ac_try;; 5766esac 5767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5768 (eval "$ac_compiler --version >&5") 2>&5 5769 ac_status=$? 5770 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5771 (exit $ac_status); } 5772{ (ac_try="$ac_compiler -v >&5" 5773case "(($ac_try" in 5774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5775 *) ac_try_echo=$ac_try;; 5776esac 5777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5778 (eval "$ac_compiler -v >&5") 2>&5 5779 ac_status=$? 5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5781 (exit $ac_status); } 5782{ (ac_try="$ac_compiler -V >&5" 5783case "(($ac_try" in 5784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5785 *) ac_try_echo=$ac_try;; 5786esac 5787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5788 (eval "$ac_compiler -V >&5") 2>&5 5789 ac_status=$? 5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5791 (exit $ac_status); } 5792 5793{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5794echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 5795if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5796 echo $ECHO_N "(cached) $ECHO_C" >&6 5797else 5798 cat >conftest.$ac_ext <<_ACEOF 5799/* confdefs.h. */ 5800_ACEOF 5801cat confdefs.h >>conftest.$ac_ext 5802cat >>conftest.$ac_ext <<_ACEOF 5803/* end confdefs.h. */ 5804 5805int 5806main () 5807{ 5808#ifndef __GNUC__ 5809 choke me 5810#endif 5811 5812 ; 5813 return 0; 5814} 5815_ACEOF 5816rm -f conftest.$ac_objext 5817if { (ac_try="$ac_compile" 5818case "(($ac_try" in 5819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5820 *) ac_try_echo=$ac_try;; 5821esac 5822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5823 (eval "$ac_compile") 2>conftest.er1 5824 ac_status=$? 5825 grep -v '^ *+' conftest.er1 >conftest.err 5826 rm -f conftest.er1 5827 cat conftest.err >&5 5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5829 (exit $ac_status); } && 5830 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5831 { (case "(($ac_try" in 5832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5833 *) ac_try_echo=$ac_try;; 5834esac 5835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5836 (eval "$ac_try") 2>&5 5837 ac_status=$? 5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5839 (exit $ac_status); }; } && 5840 { ac_try='test -s conftest.$ac_objext' 5841 { (case "(($ac_try" in 5842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5843 *) ac_try_echo=$ac_try;; 5844esac 5845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5846 (eval "$ac_try") 2>&5 5847 ac_status=$? 5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5849 (exit $ac_status); }; }; then 5850 ac_compiler_gnu=yes 5851else 5852 echo "$as_me: failed program was:" >&5 5853sed 's/^/| /' conftest.$ac_ext >&5 5854 5855 ac_compiler_gnu=no 5856fi 5857 5858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5859ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5860 5861fi 5862{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 5863echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 5864GXX=`test $ac_compiler_gnu = yes && echo yes` 5865ac_test_CXXFLAGS=${CXXFLAGS+set} 5866ac_save_CXXFLAGS=$CXXFLAGS 5867{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 5868echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 5869if test "${ac_cv_prog_cxx_g+set}" = set; then 5870 echo $ECHO_N "(cached) $ECHO_C" >&6 5871else 5872 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5873 ac_cxx_werror_flag=yes 5874 ac_cv_prog_cxx_g=no 5875 CXXFLAGS="-g" 5876 cat >conftest.$ac_ext <<_ACEOF 5877/* confdefs.h. */ 5878_ACEOF 5879cat confdefs.h >>conftest.$ac_ext 5880cat >>conftest.$ac_ext <<_ACEOF 5881/* end confdefs.h. */ 5882 5883int 5884main () 5885{ 5886 5887 ; 5888 return 0; 5889} 5890_ACEOF 5891rm -f conftest.$ac_objext 5892if { (ac_try="$ac_compile" 5893case "(($ac_try" in 5894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5895 *) ac_try_echo=$ac_try;; 5896esac 5897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5898 (eval "$ac_compile") 2>conftest.er1 5899 ac_status=$? 5900 grep -v '^ *+' conftest.er1 >conftest.err 5901 rm -f conftest.er1 5902 cat conftest.err >&5 5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5904 (exit $ac_status); } && 5905 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5906 { (case "(($ac_try" in 5907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5908 *) ac_try_echo=$ac_try;; 5909esac 5910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5911 (eval "$ac_try") 2>&5 5912 ac_status=$? 5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5914 (exit $ac_status); }; } && 5915 { ac_try='test -s conftest.$ac_objext' 5916 { (case "(($ac_try" in 5917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5918 *) ac_try_echo=$ac_try;; 5919esac 5920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5921 (eval "$ac_try") 2>&5 5922 ac_status=$? 5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5924 (exit $ac_status); }; }; then 5925 ac_cv_prog_cxx_g=yes 5926else 5927 echo "$as_me: failed program was:" >&5 5928sed 's/^/| /' conftest.$ac_ext >&5 5929 5930 CXXFLAGS="" 5931 cat >conftest.$ac_ext <<_ACEOF 5932/* confdefs.h. */ 5933_ACEOF 5934cat confdefs.h >>conftest.$ac_ext 5935cat >>conftest.$ac_ext <<_ACEOF 5936/* end confdefs.h. */ 5937 5938int 5939main () 5940{ 5941 5942 ; 5943 return 0; 5944} 5945_ACEOF 5946rm -f conftest.$ac_objext 5947if { (ac_try="$ac_compile" 5948case "(($ac_try" in 5949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5950 *) ac_try_echo=$ac_try;; 5951esac 5952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5953 (eval "$ac_compile") 2>conftest.er1 5954 ac_status=$? 5955 grep -v '^ *+' conftest.er1 >conftest.err 5956 rm -f conftest.er1 5957 cat conftest.err >&5 5958 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5959 (exit $ac_status); } && 5960 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5961 { (case "(($ac_try" in 5962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5963 *) ac_try_echo=$ac_try;; 5964esac 5965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5966 (eval "$ac_try") 2>&5 5967 ac_status=$? 5968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5969 (exit $ac_status); }; } && 5970 { ac_try='test -s conftest.$ac_objext' 5971 { (case "(($ac_try" in 5972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5973 *) ac_try_echo=$ac_try;; 5974esac 5975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5976 (eval "$ac_try") 2>&5 5977 ac_status=$? 5978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5979 (exit $ac_status); }; }; then 5980 : 5981else 5982 echo "$as_me: failed program was:" >&5 5983sed 's/^/| /' conftest.$ac_ext >&5 5984 5985 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5986 CXXFLAGS="-g" 5987 cat >conftest.$ac_ext <<_ACEOF 5988/* confdefs.h. */ 5989_ACEOF 5990cat confdefs.h >>conftest.$ac_ext 5991cat >>conftest.$ac_ext <<_ACEOF 5992/* end confdefs.h. */ 5993 5994int 5995main () 5996{ 5997 5998 ; 5999 return 0; 6000} 6001_ACEOF 6002rm -f conftest.$ac_objext 6003if { (ac_try="$ac_compile" 6004case "(($ac_try" in 6005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6006 *) ac_try_echo=$ac_try;; 6007esac 6008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6009 (eval "$ac_compile") 2>conftest.er1 6010 ac_status=$? 6011 grep -v '^ *+' conftest.er1 >conftest.err 6012 rm -f conftest.er1 6013 cat conftest.err >&5 6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6015 (exit $ac_status); } && 6016 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6017 { (case "(($ac_try" in 6018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6019 *) ac_try_echo=$ac_try;; 6020esac 6021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6022 (eval "$ac_try") 2>&5 6023 ac_status=$? 6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6025 (exit $ac_status); }; } && 6026 { ac_try='test -s conftest.$ac_objext' 6027 { (case "(($ac_try" in 6028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6029 *) ac_try_echo=$ac_try;; 6030esac 6031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6032 (eval "$ac_try") 2>&5 6033 ac_status=$? 6034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6035 (exit $ac_status); }; }; then 6036 ac_cv_prog_cxx_g=yes 6037else 6038 echo "$as_me: failed program was:" >&5 6039sed 's/^/| /' conftest.$ac_ext >&5 6040 6041 6042fi 6043 6044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6045fi 6046 6047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6048fi 6049 6050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6051 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6052fi 6053{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 6054echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 6055if test "$ac_test_CXXFLAGS" = set; then 6056 CXXFLAGS=$ac_save_CXXFLAGS 6057elif test $ac_cv_prog_cxx_g = yes; then 6058 if test "$GXX" = yes; then 6059 CXXFLAGS="-g -O2" 6060 else 6061 CXXFLAGS="-g" 6062 fi 6063else 6064 if test "$GXX" = yes; then 6065 CXXFLAGS="-O2" 6066 else 6067 CXXFLAGS= 6068 fi 6069fi 6070ac_ext=cpp 6071ac_cpp='$CXXCPP $CPPFLAGS' 6072ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6073ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6074ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6075 6076depcc="$CXX" am_compiler_list= 6077 6078{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 6079echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 6080if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 6081 echo $ECHO_N "(cached) $ECHO_C" >&6 6082else 6083 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 6084 # We make a subdir and do the tests there. Otherwise we can end up 6085 # making bogus files that we don't know about and never remove. For 6086 # instance it was reported that on HP-UX the gcc test will end up 6087 # making a dummy file named `D' -- because `-MD' means `put the output 6088 # in D'. 6089 mkdir conftest.dir 6090 # Copy depcomp to subdir because otherwise we won't find it if we're 6091 # using a relative directory. 6092 cp "$am_depcomp" conftest.dir 6093 cd conftest.dir 6094 # We will build objects and dependencies in a subdirectory because 6095 # it helps to detect inapplicable dependency modes. For instance 6096 # both Tru64's cc and ICC support -MD to output dependencies as a 6097 # side effect of compilation, but ICC will put the dependencies in 6098 # the current directory while Tru64 will put them in the object 6099 # directory. 6100 mkdir sub 6101 6102 am_cv_CXX_dependencies_compiler_type=none 6103 if test "$am_compiler_list" = ""; then 6104 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 6105 fi 6106 for depmode in $am_compiler_list; do 6107 # Setup a source with many dependencies, because some compilers 6108 # like to wrap large dependency lists on column 80 (with \), and 6109 # we should not choose a depcomp mode which is confused by this. 6110 # 6111 # We need to recreate these files for each test, as the compiler may 6112 # overwrite some of them when testing with obscure command lines. 6113 # This happens at least with the AIX C compiler. 6114 : > sub/conftest.c 6115 for i in 1 2 3 4 5 6; do 6116 echo '#include "conftst'$i'.h"' >> sub/conftest.c 6117 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 6118 # Solaris 8's {/usr,}/bin/sh. 6119 touch sub/conftst$i.h 6120 done 6121 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 6122 6123 case $depmode in 6124 nosideeffect) 6125 # after this tag, mechanisms are not by side-effect, so they'll 6126 # only be used when explicitly requested 6127 if test "x$enable_dependency_tracking" = xyes; then 6128 continue 6129 else 6130 break 6131 fi 6132 ;; 6133 none) break ;; 6134 esac 6135 # We check with `-c' and `-o' for the sake of the "dashmstdout" 6136 # mode. It turns out that the SunPro C++ compiler does not properly 6137 # handle `-M -o', and we need to detect this. 6138 if depmode=$depmode \ 6139 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 6140 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6141 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 6142 >/dev/null 2>conftest.err && 6143 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6144 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 6145 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6146 # icc doesn't choke on unknown options, it will just issue warnings 6147 # or remarks (even with -Werror). So we grep stderr for any message 6148 # that says an option was ignored or not supported. 6149 # When given -MP, icc 7.0 and 7.1 complain thusly: 6150 # icc: Command line warning: ignoring option '-M'; no argument required 6151 # The diagnosis changed in icc 8.0: 6152 # icc: Command line remark: option '-MP' not supported 6153 if (grep 'ignoring option' conftest.err || 6154 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6155 am_cv_CXX_dependencies_compiler_type=$depmode 6156 break 6157 fi 6158 fi 6159 done 6160 6161 cd .. 6162 rm -rf conftest.dir 6163else 6164 am_cv_CXX_dependencies_compiler_type=none 6165fi 6166 6167fi 6168{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 6169echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } 6170CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 6171 6172 6173 6174if 6175 test "x$enable_dependency_tracking" != xno \ 6176 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 6177 am__fastdepCXX_TRUE= 6178 am__fastdepCXX_FALSE='#' 6179else 6180 am__fastdepCXX_TRUE='#' 6181 am__fastdepCXX_FALSE= 6182fi 6183 6184 6185 6186 6187 6188if test -n "$CXX" && ( test "X$CXX" != "Xno" && 6189 test x"$CXX" != x"false" && 6190 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 6191 (test "X$CXX" != "Xg++"))) ; then 6192 ac_ext=cpp 6193ac_cpp='$CXXCPP $CPPFLAGS' 6194ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6195ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6196ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6197{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 6198echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 6199if test -z "$CXXCPP"; then 6200 if test "${ac_cv_prog_CXXCPP+set}" = set; then 6201 echo $ECHO_N "(cached) $ECHO_C" >&6 6202else 6203 # Double quotes because CXXCPP needs to be expanded 6204 for CXXCPP in "$CXX -E" "$CC -E" "/usr/libexec/cpp" "/lib/cpp" 6205 do 6206 ac_preproc_ok=false 6207for ac_cxx_preproc_warn_flag in '' yes 6208do 6209 # Use a header file that comes with gcc, so configuring glibc 6210 # with a fresh cross-compiler works. 6211 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6212 # <limits.h> exists even on freestanding compilers. 6213 # On the NeXT, cc -E runs the code through the compiler's parser, 6214 # not just through cpp. "Syntax error" is here to catch this case. 6215 cat >conftest.$ac_ext <<_ACEOF 6216/* confdefs.h. */ 6217_ACEOF 6218cat confdefs.h >>conftest.$ac_ext 6219cat >>conftest.$ac_ext <<_ACEOF 6220/* end confdefs.h. */ 6221#ifdef __STDC__ 6222# include <limits.h> 6223#else 6224# include <assert.h> 6225#endif 6226 Syntax error 6227_ACEOF 6228if { (ac_try="$ac_cpp conftest.$ac_ext" 6229case "(($ac_try" in 6230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6231 *) ac_try_echo=$ac_try;; 6232esac 6233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6234 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6235 ac_status=$? 6236 grep -v '^ *+' conftest.er1 >conftest.err 6237 rm -f conftest.er1 6238 cat conftest.err >&5 6239 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6240 (exit $ac_status); } >/dev/null; then 6241 if test -s conftest.err; then 6242 ac_cpp_err=$ac_cxx_preproc_warn_flag 6243 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 6244 else 6245 ac_cpp_err= 6246 fi 6247else 6248 ac_cpp_err=yes 6249fi 6250if test -z "$ac_cpp_err"; then 6251 : 6252else 6253 echo "$as_me: failed program was:" >&5 6254sed 's/^/| /' conftest.$ac_ext >&5 6255 6256 # Broken: fails on valid input. 6257continue 6258fi 6259 6260rm -f conftest.err conftest.$ac_ext 6261 6262 # OK, works on sane cases. Now check whether nonexistent headers 6263 # can be detected and how. 6264 cat >conftest.$ac_ext <<_ACEOF 6265/* confdefs.h. */ 6266_ACEOF 6267cat confdefs.h >>conftest.$ac_ext 6268cat >>conftest.$ac_ext <<_ACEOF 6269/* end confdefs.h. */ 6270#include <ac_nonexistent.h> 6271_ACEOF 6272if { (ac_try="$ac_cpp conftest.$ac_ext" 6273case "(($ac_try" in 6274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6275 *) ac_try_echo=$ac_try;; 6276esac 6277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6278 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6279 ac_status=$? 6280 grep -v '^ *+' conftest.er1 >conftest.err 6281 rm -f conftest.er1 6282 cat conftest.err >&5 6283 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6284 (exit $ac_status); } >/dev/null; then 6285 if test -s conftest.err; then 6286 ac_cpp_err=$ac_cxx_preproc_warn_flag 6287 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 6288 else 6289 ac_cpp_err= 6290 fi 6291else 6292 ac_cpp_err=yes 6293fi 6294if test -z "$ac_cpp_err"; then 6295 # Broken: success on invalid input. 6296continue 6297else 6298 echo "$as_me: failed program was:" >&5 6299sed 's/^/| /' conftest.$ac_ext >&5 6300 6301 # Passes both tests. 6302ac_preproc_ok=: 6303break 6304fi 6305 6306rm -f conftest.err conftest.$ac_ext 6307 6308done 6309# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6310rm -f conftest.err conftest.$ac_ext 6311if $ac_preproc_ok; then 6312 break 6313fi 6314 6315 done 6316 ac_cv_prog_CXXCPP=$CXXCPP 6317 6318fi 6319 CXXCPP=$ac_cv_prog_CXXCPP 6320else 6321 ac_cv_prog_CXXCPP=$CXXCPP 6322fi 6323{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 6324echo "${ECHO_T}$CXXCPP" >&6; } 6325ac_preproc_ok=false 6326for ac_cxx_preproc_warn_flag in '' yes 6327do 6328 # Use a header file that comes with gcc, so configuring glibc 6329 # with a fresh cross-compiler works. 6330 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6331 # <limits.h> exists even on freestanding compilers. 6332 # On the NeXT, cc -E runs the code through the compiler's parser, 6333 # not just through cpp. "Syntax error" is here to catch this case. 6334 cat >conftest.$ac_ext <<_ACEOF 6335/* confdefs.h. */ 6336_ACEOF 6337cat confdefs.h >>conftest.$ac_ext 6338cat >>conftest.$ac_ext <<_ACEOF 6339/* end confdefs.h. */ 6340#ifdef __STDC__ 6341# include <limits.h> 6342#else 6343# include <assert.h> 6344#endif 6345 Syntax error 6346_ACEOF 6347if { (ac_try="$ac_cpp conftest.$ac_ext" 6348case "(($ac_try" in 6349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6350 *) ac_try_echo=$ac_try;; 6351esac 6352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6353 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6354 ac_status=$? 6355 grep -v '^ *+' conftest.er1 >conftest.err 6356 rm -f conftest.er1 6357 cat conftest.err >&5 6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6359 (exit $ac_status); } >/dev/null; then 6360 if test -s conftest.err; then 6361 ac_cpp_err=$ac_cxx_preproc_warn_flag 6362 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 6363 else 6364 ac_cpp_err= 6365 fi 6366else 6367 ac_cpp_err=yes 6368fi 6369if test -z "$ac_cpp_err"; then 6370 : 6371else 6372 echo "$as_me: failed program was:" >&5 6373sed 's/^/| /' conftest.$ac_ext >&5 6374 6375 # Broken: fails on valid input. 6376continue 6377fi 6378 6379rm -f conftest.err conftest.$ac_ext 6380 6381 # OK, works on sane cases. Now check whether nonexistent headers 6382 # can be detected and how. 6383 cat >conftest.$ac_ext <<_ACEOF 6384/* confdefs.h. */ 6385_ACEOF 6386cat confdefs.h >>conftest.$ac_ext 6387cat >>conftest.$ac_ext <<_ACEOF 6388/* end confdefs.h. */ 6389#include <ac_nonexistent.h> 6390_ACEOF 6391if { (ac_try="$ac_cpp conftest.$ac_ext" 6392case "(($ac_try" in 6393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6394 *) ac_try_echo=$ac_try;; 6395esac 6396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6397 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6398 ac_status=$? 6399 grep -v '^ *+' conftest.er1 >conftest.err 6400 rm -f conftest.er1 6401 cat conftest.err >&5 6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6403 (exit $ac_status); } >/dev/null; then 6404 if test -s conftest.err; then 6405 ac_cpp_err=$ac_cxx_preproc_warn_flag 6406 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 6407 else 6408 ac_cpp_err= 6409 fi 6410else 6411 ac_cpp_err=yes 6412fi 6413if test -z "$ac_cpp_err"; then 6414 # Broken: success on invalid input. 6415continue 6416else 6417 echo "$as_me: failed program was:" >&5 6418sed 's/^/| /' conftest.$ac_ext >&5 6419 6420 # Passes both tests. 6421ac_preproc_ok=: 6422break 6423fi 6424 6425rm -f conftest.err conftest.$ac_ext 6426 6427done 6428# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6429rm -f conftest.err conftest.$ac_ext 6430if $ac_preproc_ok; then 6431 : 6432else 6433 { echo "$as_me:$LINENO: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5 6434echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;} 6435fi 6436 6437ac_ext=c 6438ac_cpp='$CPP $CPPFLAGS' 6439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6441ac_compiler_gnu=$ac_cv_c_compiler_gnu 6442 6443fi 6444 6445ac_ext=f 6446ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6447ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6448ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6449if test -n "$ac_tool_prefix"; then 6450 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn 6451 do 6452 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6453set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6454{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6455echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6456if test "${ac_cv_prog_F77+set}" = set; then 6457 echo $ECHO_N "(cached) $ECHO_C" >&6 6458else 6459 if test -n "$F77"; then 6460 ac_cv_prog_F77="$F77" # Let the user override the test. 6461else 6462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6463for as_dir in $PATH 6464do 6465 IFS=$as_save_IFS 6466 test -z "$as_dir" && as_dir=. 6467 for ac_exec_ext in '' $ac_executable_extensions; do 6468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6469 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 6470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6471 break 2 6472 fi 6473done 6474done 6475IFS=$as_save_IFS 6476 6477fi 6478fi 6479F77=$ac_cv_prog_F77 6480if test -n "$F77"; then 6481 { echo "$as_me:$LINENO: result: $F77" >&5 6482echo "${ECHO_T}$F77" >&6; } 6483else 6484 { echo "$as_me:$LINENO: result: no" >&5 6485echo "${ECHO_T}no" >&6; } 6486fi 6487 6488 6489 test -n "$F77" && break 6490 done 6491fi 6492if test -z "$F77"; then 6493 ac_ct_F77=$F77 6494 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn 6495do 6496 # Extract the first word of "$ac_prog", so it can be a program name with args. 6497set dummy $ac_prog; ac_word=$2 6498{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6499echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6500if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 6501 echo $ECHO_N "(cached) $ECHO_C" >&6 6502else 6503 if test -n "$ac_ct_F77"; then 6504 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 6505else 6506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6507for as_dir in $PATH 6508do 6509 IFS=$as_save_IFS 6510 test -z "$as_dir" && as_dir=. 6511 for ac_exec_ext in '' $ac_executable_extensions; do 6512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6513 ac_cv_prog_ac_ct_F77="$ac_prog" 6514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6515 break 2 6516 fi 6517done 6518done 6519IFS=$as_save_IFS 6520 6521fi 6522fi 6523ac_ct_F77=$ac_cv_prog_ac_ct_F77 6524if test -n "$ac_ct_F77"; then 6525 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 6526echo "${ECHO_T}$ac_ct_F77" >&6; } 6527else 6528 { echo "$as_me:$LINENO: result: no" >&5 6529echo "${ECHO_T}no" >&6; } 6530fi 6531 6532 6533 test -n "$ac_ct_F77" && break 6534done 6535 6536 if test "x$ac_ct_F77" = x; then 6537 F77="" 6538 else 6539 case $cross_compiling:$ac_tool_warned in 6540yes:) 6541{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6542whose name does not start with the host triplet. If you think this 6543configuration is useful to you, please write to autoconf@gnu.org." >&5 6544echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6545whose name does not start with the host triplet. If you think this 6546configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6547ac_tool_warned=yes ;; 6548esac 6549 F77=$ac_ct_F77 6550 fi 6551fi 6552 6553 6554# Provide some information about the compiler. 6555echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 6556ac_compiler=`set X $ac_compile; echo $2` 6557{ (ac_try="$ac_compiler --version >&5" 6558case "(($ac_try" in 6559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6560 *) ac_try_echo=$ac_try;; 6561esac 6562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6563 (eval "$ac_compiler --version >&5") 2>&5 6564 ac_status=$? 6565 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6566 (exit $ac_status); } 6567{ (ac_try="$ac_compiler -v >&5" 6568case "(($ac_try" in 6569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6570 *) ac_try_echo=$ac_try;; 6571esac 6572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6573 (eval "$ac_compiler -v >&5") 2>&5 6574 ac_status=$? 6575 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6576 (exit $ac_status); } 6577{ (ac_try="$ac_compiler -V >&5" 6578case "(($ac_try" in 6579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6580 *) ac_try_echo=$ac_try;; 6581esac 6582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6583 (eval "$ac_compiler -V >&5") 2>&5 6584 ac_status=$? 6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6586 (exit $ac_status); } 6587rm -f a.out 6588 6589# If we don't use `.F' as extension, the preprocessor is not run on the 6590# input file. (Note that this only needs to work for GNU compilers.) 6591ac_save_ext=$ac_ext 6592ac_ext=F 6593{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 6594echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } 6595if test "${ac_cv_f77_compiler_gnu+set}" = set; then 6596 echo $ECHO_N "(cached) $ECHO_C" >&6 6597else 6598 cat >conftest.$ac_ext <<_ACEOF 6599 program main 6600#ifndef __GNUC__ 6601 choke me 6602#endif 6603 6604 end 6605_ACEOF 6606rm -f conftest.$ac_objext 6607if { (ac_try="$ac_compile" 6608case "(($ac_try" in 6609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6610 *) ac_try_echo=$ac_try;; 6611esac 6612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6613 (eval "$ac_compile") 2>conftest.er1 6614 ac_status=$? 6615 grep -v '^ *+' conftest.er1 >conftest.err 6616 rm -f conftest.er1 6617 cat conftest.err >&5 6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6619 (exit $ac_status); } && 6620 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 6621 { (case "(($ac_try" in 6622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6623 *) ac_try_echo=$ac_try;; 6624esac 6625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6626 (eval "$ac_try") 2>&5 6627 ac_status=$? 6628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6629 (exit $ac_status); }; } && 6630 { ac_try='test -s conftest.$ac_objext' 6631 { (case "(($ac_try" in 6632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6633 *) ac_try_echo=$ac_try;; 6634esac 6635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6636 (eval "$ac_try") 2>&5 6637 ac_status=$? 6638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6639 (exit $ac_status); }; }; then 6640 ac_compiler_gnu=yes 6641else 6642 echo "$as_me: failed program was:" >&5 6643sed 's/^/| /' conftest.$ac_ext >&5 6644 6645 ac_compiler_gnu=no 6646fi 6647 6648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6649ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6650 6651fi 6652{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 6653echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } 6654ac_ext=$ac_save_ext 6655ac_test_FFLAGS=${FFLAGS+set} 6656ac_save_FFLAGS=$FFLAGS 6657FFLAGS= 6658{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 6659echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } 6660if test "${ac_cv_prog_f77_g+set}" = set; then 6661 echo $ECHO_N "(cached) $ECHO_C" >&6 6662else 6663 FFLAGS=-g 6664cat >conftest.$ac_ext <<_ACEOF 6665 program main 6666 6667 end 6668_ACEOF 6669rm -f conftest.$ac_objext 6670if { (ac_try="$ac_compile" 6671case "(($ac_try" in 6672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6673 *) ac_try_echo=$ac_try;; 6674esac 6675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6676 (eval "$ac_compile") 2>conftest.er1 6677 ac_status=$? 6678 grep -v '^ *+' conftest.er1 >conftest.err 6679 rm -f conftest.er1 6680 cat conftest.err >&5 6681 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6682 (exit $ac_status); } && 6683 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 6684 { (case "(($ac_try" in 6685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6686 *) ac_try_echo=$ac_try;; 6687esac 6688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6689 (eval "$ac_try") 2>&5 6690 ac_status=$? 6691 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6692 (exit $ac_status); }; } && 6693 { ac_try='test -s conftest.$ac_objext' 6694 { (case "(($ac_try" in 6695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6696 *) ac_try_echo=$ac_try;; 6697esac 6698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6699 (eval "$ac_try") 2>&5 6700 ac_status=$? 6701 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6702 (exit $ac_status); }; }; then 6703 ac_cv_prog_f77_g=yes 6704else 6705 echo "$as_me: failed program was:" >&5 6706sed 's/^/| /' conftest.$ac_ext >&5 6707 6708 ac_cv_prog_f77_g=no 6709fi 6710 6711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6712 6713fi 6714{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6715echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } 6716if test "$ac_test_FFLAGS" = set; then 6717 FFLAGS=$ac_save_FFLAGS 6718elif test $ac_cv_prog_f77_g = yes; then 6719 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6720 FFLAGS="-g -O2" 6721 else 6722 FFLAGS="-g" 6723 fi 6724else 6725 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6726 FFLAGS="-O2" 6727 else 6728 FFLAGS= 6729 fi 6730fi 6731 6732G77=`test $ac_compiler_gnu = yes && echo yes` 6733ac_ext=c 6734ac_cpp='$CPP $CPPFLAGS' 6735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6737ac_compiler_gnu=$ac_cv_c_compiler_gnu 6738 6739 6740# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6741 6742# find the maximum length of command line arguments 6743{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6744echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } 6745if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6746 echo $ECHO_N "(cached) $ECHO_C" >&6 6747else 6748 i=0 6749 teststring="ABCD" 6750 6751 case $build_os in 6752 msdosdjgpp*) 6753 # On DJGPP, this test can blow up pretty badly due to problems in libc 6754 # (any single argument exceeding 2000 bytes causes a buffer overrun 6755 # during glob expansion). Even if it were fixed, the result of this 6756 # check would be larger than it should be. 6757 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6758 ;; 6759 6760 gnu*) 6761 # Under GNU Hurd, this test is not required because there is 6762 # no limit to the length of command line arguments. 6763 # Libtool will interpret -1 as no limit whatsoever 6764 lt_cv_sys_max_cmd_len=-1; 6765 ;; 6766 6767 cygwin* | mingw*) 6768 # On Win9x/ME, this test blows up -- it succeeds, but takes 6769 # about 5 minutes as the teststring grows exponentially. 6770 # Worse, since 9x/ME are not pre-emptively multitasking, 6771 # you end up with a "frozen" computer, even though with patience 6772 # the test eventually succeeds (with a max line length of 256k). 6773 # Instead, let's just punt: use the minimum linelength reported by 6774 # all of the supported platforms: 8192 (on NT/2K/XP). 6775 lt_cv_sys_max_cmd_len=8192; 6776 ;; 6777 6778 amigaos*) 6779 # On AmigaOS with pdksh, this test takes hours, literally. 6780 # So we just punt and use a minimum line length of 8192. 6781 lt_cv_sys_max_cmd_len=8192; 6782 ;; 6783 6784 darwin* | dragonfly* | freebsd* | mirbsd* | netbsd* | openbsd*) 6785 # This has been around since 386BSD, at least. Likely further. 6786 if test -x /sbin/sysctl; then 6787 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6788 elif test -x /usr/sbin/sysctl; then 6789 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6790 else 6791 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6792 fi 6793 # And add a safety zone 6794 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6795 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6796 ;; 6797 6798 interix*) 6799 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6800 lt_cv_sys_max_cmd_len=196608 6801 ;; 6802 6803 osf*) 6804 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6805 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6806 # nice to cause kernel panics so lets avoid the loop below. 6807 # First set a reasonable default. 6808 lt_cv_sys_max_cmd_len=16384 6809 # 6810 if test -x /sbin/sysconfig; then 6811 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6812 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6813 esac 6814 fi 6815 ;; 6816 sco3.2v5*) 6817 lt_cv_sys_max_cmd_len=102400 6818 ;; 6819 sysv5* | sco5v6* | sysv4.2uw2*) 6820 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6821 if test -n "$kargmax"; then 6822 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6823 else 6824 lt_cv_sys_max_cmd_len=32768 6825 fi 6826 ;; 6827 *) 6828 # If test is not a shell built-in, we'll probably end up computing a 6829 # maximum length that is only half of the actual maximum length, but 6830 # we can't tell. 6831 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6832 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6833 = "XX$teststring") >/dev/null 2>&1 && 6834 new_result=`expr "X$teststring" : ".*" 2>&1` && 6835 lt_cv_sys_max_cmd_len=$new_result && 6836 test $i != 17 # 1/2 MB should be enough 6837 do 6838 i=`expr $i + 1` 6839 teststring=$teststring$teststring 6840 done 6841 teststring= 6842 # Add a significant safety factor because C++ compilers can tack on massive 6843 # amounts of additional arguments before passing them to the linker. 6844 # It appears as though 1/2 is a usable value. 6845 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6846 ;; 6847 esac 6848 6849fi 6850 6851if test -n $lt_cv_sys_max_cmd_len ; then 6852 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6853echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } 6854else 6855 { echo "$as_me:$LINENO: result: none" >&5 6856echo "${ECHO_T}none" >&6; } 6857fi 6858 6859 6860 6861 6862# Check for command to grab the raw symbol name followed by C symbol from nm. 6863{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6864echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 6865if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6866 echo $ECHO_N "(cached) $ECHO_C" >&6 6867else 6868 6869# These are sane defaults that work on at least a few old systems. 6870# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6871 6872# Character class describing NM global symbol codes. 6873symcode='[BCDEGRST]' 6874 6875# Regexp to match symbols that can be accessed directly from C. 6876sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6877 6878# Transform an extracted symbol line into a proper C declaration 6879lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6880 6881# Transform an extracted symbol line into symbol name and symbol address 6882lt_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'" 6883 6884# Define system-specific variables. 6885case $host_os in 6886aix*) 6887 symcode='[BCDT]' 6888 ;; 6889cygwin* | mingw* | pw32*) 6890 symcode='[ABCDGISTW]' 6891 ;; 6892hpux*) # Its linker distinguishes data from code symbols 6893 if test "$host_cpu" = ia64; then 6894 symcode='[ABCDEGRST]' 6895 fi 6896 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6897 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'" 6898 ;; 6899linux*) 6900 if test "$host_cpu" = ia64; then 6901 symcode='[ABCDGIRSTW]' 6902 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6903 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'" 6904 fi 6905 ;; 6906irix* | nonstopux*) 6907 symcode='[BCDEGRST]' 6908 ;; 6909osf*) 6910 symcode='[BCDEGQRST]' 6911 ;; 6912solaris*) 6913 symcode='[BDRT]' 6914 ;; 6915sco3.2v5*) 6916 symcode='[DT]' 6917 ;; 6918sysv4.2uw2*) 6919 symcode='[DT]' 6920 ;; 6921sysv5* | sco5v6* | unixware* | OpenUNIX*) 6922 symcode='[ABDT]' 6923 ;; 6924sysv4) 6925 symcode='[DFNSTU]' 6926 ;; 6927esac 6928 6929# Handle CRLF in mingw tool chain 6930opt_cr= 6931case $build_os in 6932mingw*) 6933 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6934 ;; 6935esac 6936 6937# If we're using GNU nm, then use its standard symbol codes. 6938case `$NM -V 2>&1` in 6939*GNU* | *'with BFD'*) 6940 symcode='[ABCDGIRSTW]' ;; 6941esac 6942 6943# Try without a prefix undercore, then with it. 6944for ac_symprfx in "" "_"; do 6945 6946 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6947 symxfrm="\\1 $ac_symprfx\\2 \\2" 6948 6949 # Write the raw and C identifiers. 6950 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6951 6952 # Check to see that the pipe works correctly. 6953 pipe_works=no 6954 6955 rm -f conftest* 6956 cat > conftest.$ac_ext <<EOF 6957#ifdef __cplusplus 6958extern "C" { 6959#endif 6960char nm_test_var; 6961void nm_test_func(){} 6962#ifdef __cplusplus 6963} 6964#endif 6965int main(){nm_test_var='a';nm_test_func();return(0);} 6966EOF 6967 6968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6969 (eval $ac_compile) 2>&5 6970 ac_status=$? 6971 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6972 (exit $ac_status); }; then 6973 # Now try to grab the symbols. 6974 nlist=conftest.nm 6975 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6976 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6977 ac_status=$? 6978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6979 (exit $ac_status); } && test -s "$nlist"; then 6980 # Try sorting and uniquifying the output. 6981 if sort "$nlist" | uniq > "$nlist"T; then 6982 mv -f "$nlist"T "$nlist" 6983 else 6984 rm -f "$nlist"T 6985 fi 6986 6987 # Make sure that we snagged all the symbols we need. 6988 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6989 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6990 cat <<EOF > conftest.$ac_ext 6991#ifdef __cplusplus 6992extern "C" { 6993#endif 6994 6995EOF 6996 # Now generate the symbol file. 6997 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6998 6999 cat <<EOF >> conftest.$ac_ext 7000#if defined (__STDC__) && __STDC__ 7001# define lt_ptr_t void * 7002#else 7003# define lt_ptr_t char * 7004# define const 7005#endif 7006 7007/* The mapping between symbol names and symbols. */ 7008const struct { 7009 const char *name; 7010 lt_ptr_t address; 7011} 7012lt_preloaded_symbols[] = 7013{ 7014EOF 7015 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 7016 cat <<\EOF >> conftest.$ac_ext 7017 {0, (lt_ptr_t) 0} 7018}; 7019 7020#ifdef __cplusplus 7021} 7022#endif 7023EOF 7024 # Now try linking the two files. 7025 mv conftest.$ac_objext conftstm.$ac_objext 7026 lt_save_LIBS="$LIBS" 7027 lt_save_CFLAGS="$CFLAGS" 7028 LIBS="conftstm.$ac_objext" 7029 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7031 (eval $ac_link) 2>&5 7032 ac_status=$? 7033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7034 (exit $ac_status); } && test -s conftest${ac_exeext}; then 7035 pipe_works=yes 7036 fi 7037 LIBS="$lt_save_LIBS" 7038 CFLAGS="$lt_save_CFLAGS" 7039 else 7040 echo "cannot find nm_test_func in $nlist" >&5 7041 fi 7042 else 7043 echo "cannot find nm_test_var in $nlist" >&5 7044 fi 7045 else 7046 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7047 fi 7048 else 7049 echo "$progname: failed program was:" >&5 7050 cat conftest.$ac_ext >&5 7051 fi 7052 rm -f conftest* conftst* 7053 7054 # Do not use the global_symbol_pipe unless it works. 7055 if test "$pipe_works" = yes; then 7056 break 7057 else 7058 lt_cv_sys_global_symbol_pipe= 7059 fi 7060done 7061 7062fi 7063 7064if test -z "$lt_cv_sys_global_symbol_pipe"; then 7065 lt_cv_sys_global_symbol_to_cdecl= 7066fi 7067if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7068 { echo "$as_me:$LINENO: result: failed" >&5 7069echo "${ECHO_T}failed" >&6; } 7070else 7071 { echo "$as_me:$LINENO: result: ok" >&5 7072echo "${ECHO_T}ok" >&6; } 7073fi 7074 7075{ echo "$as_me:$LINENO: checking for objdir" >&5 7076echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 7077if test "${lt_cv_objdir+set}" = set; then 7078 echo $ECHO_N "(cached) $ECHO_C" >&6 7079else 7080 rm -f .libs 2>/dev/null 7081mkdir .libs 2>/dev/null 7082if test -d .libs; then 7083 lt_cv_objdir=.libs 7084else 7085 # MS-DOS does not allow filenames that begin with a dot. 7086 lt_cv_objdir=_libs 7087fi 7088rmdir .libs 2>/dev/null 7089fi 7090{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 7091echo "${ECHO_T}$lt_cv_objdir" >&6; } 7092objdir=$lt_cv_objdir 7093 7094 7095 7096 7097 7098case $host_os in 7099aix3*) 7100 # AIX sometimes has problems with the GCC collect2 program. For some 7101 # reason, if we set the COLLECT_NAMES environment variable, the problems 7102 # vanish in a puff of smoke. 7103 if test "X${COLLECT_NAMES+set}" != Xset; then 7104 COLLECT_NAMES= 7105 export COLLECT_NAMES 7106 fi 7107 ;; 7108esac 7109 7110# Sed substitution that helps us do robust quoting. It backslashifies 7111# metacharacters that are still active within double-quoted strings. 7112Xsed='sed -e 1s/^X//' 7113sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 7114 7115# Same as above, but do not quote variable references. 7116double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 7117 7118# Sed substitution to delay expansion of an escaped shell variable in a 7119# double_quote_subst'ed string. 7120delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7121 7122# Sed substitution to avoid accidental globbing in evaled expressions 7123no_glob_subst='s/\*/\\\*/g' 7124 7125# Constants: 7126rm="rm -f" 7127 7128# Global variables: 7129default_ofile=libtool 7130can_build_shared=yes 7131 7132# All known linkers require a '.a' archive for static linking (except MSVC, 7133# which needs '.lib'). 7134libext=a 7135ltmain="$ac_aux_dir/ltmain.sh" 7136ofile="$default_ofile" 7137with_gnu_ld="$lt_cv_prog_gnu_ld" 7138 7139if test -n "$ac_tool_prefix"; then 7140 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 7141set dummy ${ac_tool_prefix}ar; ac_word=$2 7142{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7143echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7144if test "${ac_cv_prog_AR+set}" = set; then 7145 echo $ECHO_N "(cached) $ECHO_C" >&6 7146else 7147 if test -n "$AR"; then 7148 ac_cv_prog_AR="$AR" # Let the user override the test. 7149else 7150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7151for as_dir in $PATH 7152do 7153 IFS=$as_save_IFS 7154 test -z "$as_dir" && as_dir=. 7155 for ac_exec_ext in '' $ac_executable_extensions; do 7156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7157 ac_cv_prog_AR="${ac_tool_prefix}ar" 7158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7159 break 2 7160 fi 7161done 7162done 7163IFS=$as_save_IFS 7164 7165fi 7166fi 7167AR=$ac_cv_prog_AR 7168if test -n "$AR"; then 7169 { echo "$as_me:$LINENO: result: $AR" >&5 7170echo "${ECHO_T}$AR" >&6; } 7171else 7172 { echo "$as_me:$LINENO: result: no" >&5 7173echo "${ECHO_T}no" >&6; } 7174fi 7175 7176 7177fi 7178if test -z "$ac_cv_prog_AR"; then 7179 ac_ct_AR=$AR 7180 # Extract the first word of "ar", so it can be a program name with args. 7181set dummy ar; ac_word=$2 7182{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7183echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7184if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 7185 echo $ECHO_N "(cached) $ECHO_C" >&6 7186else 7187 if test -n "$ac_ct_AR"; then 7188 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7189else 7190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7191for as_dir in $PATH 7192do 7193 IFS=$as_save_IFS 7194 test -z "$as_dir" && as_dir=. 7195 for ac_exec_ext in '' $ac_executable_extensions; do 7196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7197 ac_cv_prog_ac_ct_AR="ar" 7198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7199 break 2 7200 fi 7201done 7202done 7203IFS=$as_save_IFS 7204 7205fi 7206fi 7207ac_ct_AR=$ac_cv_prog_ac_ct_AR 7208if test -n "$ac_ct_AR"; then 7209 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 7210echo "${ECHO_T}$ac_ct_AR" >&6; } 7211else 7212 { echo "$as_me:$LINENO: result: no" >&5 7213echo "${ECHO_T}no" >&6; } 7214fi 7215 7216 if test "x$ac_ct_AR" = x; then 7217 AR="false" 7218 else 7219 case $cross_compiling:$ac_tool_warned in 7220yes:) 7221{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7222whose name does not start with the host triplet. If you think this 7223configuration is useful to you, please write to autoconf@gnu.org." >&5 7224echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7225whose name does not start with the host triplet. If you think this 7226configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7227ac_tool_warned=yes ;; 7228esac 7229 AR=$ac_ct_AR 7230 fi 7231else 7232 AR="$ac_cv_prog_AR" 7233fi 7234 7235if test -n "$ac_tool_prefix"; then 7236 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7237set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7238{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7239echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7240if test "${ac_cv_prog_RANLIB+set}" = set; then 7241 echo $ECHO_N "(cached) $ECHO_C" >&6 7242else 7243 if test -n "$RANLIB"; then 7244 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7245else 7246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7247for as_dir in $PATH 7248do 7249 IFS=$as_save_IFS 7250 test -z "$as_dir" && as_dir=. 7251 for ac_exec_ext in '' $ac_executable_extensions; do 7252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7253 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7255 break 2 7256 fi 7257done 7258done 7259IFS=$as_save_IFS 7260 7261fi 7262fi 7263RANLIB=$ac_cv_prog_RANLIB 7264if test -n "$RANLIB"; then 7265 { echo "$as_me:$LINENO: result: $RANLIB" >&5 7266echo "${ECHO_T}$RANLIB" >&6; } 7267else 7268 { echo "$as_me:$LINENO: result: no" >&5 7269echo "${ECHO_T}no" >&6; } 7270fi 7271 7272 7273fi 7274if test -z "$ac_cv_prog_RANLIB"; then 7275 ac_ct_RANLIB=$RANLIB 7276 # Extract the first word of "ranlib", so it can be a program name with args. 7277set dummy ranlib; ac_word=$2 7278{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7279echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7280if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 7281 echo $ECHO_N "(cached) $ECHO_C" >&6 7282else 7283 if test -n "$ac_ct_RANLIB"; then 7284 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7285else 7286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7287for as_dir in $PATH 7288do 7289 IFS=$as_save_IFS 7290 test -z "$as_dir" && as_dir=. 7291 for ac_exec_ext in '' $ac_executable_extensions; do 7292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7293 ac_cv_prog_ac_ct_RANLIB="ranlib" 7294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7295 break 2 7296 fi 7297done 7298done 7299IFS=$as_save_IFS 7300 7301fi 7302fi 7303ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7304if test -n "$ac_ct_RANLIB"; then 7305 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 7306echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 7307else 7308 { echo "$as_me:$LINENO: result: no" >&5 7309echo "${ECHO_T}no" >&6; } 7310fi 7311 7312 if test "x$ac_ct_RANLIB" = x; then 7313 RANLIB=":" 7314 else 7315 case $cross_compiling:$ac_tool_warned in 7316yes:) 7317{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7318whose name does not start with the host triplet. If you think this 7319configuration is useful to you, please write to autoconf@gnu.org." >&5 7320echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7321whose name does not start with the host triplet. If you think this 7322configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7323ac_tool_warned=yes ;; 7324esac 7325 RANLIB=$ac_ct_RANLIB 7326 fi 7327else 7328 RANLIB="$ac_cv_prog_RANLIB" 7329fi 7330 7331if test -n "$ac_tool_prefix"; then 7332 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7333set dummy ${ac_tool_prefix}strip; ac_word=$2 7334{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7335echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7336if test "${ac_cv_prog_STRIP+set}" = set; then 7337 echo $ECHO_N "(cached) $ECHO_C" >&6 7338else 7339 if test -n "$STRIP"; then 7340 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7341else 7342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7343for as_dir in $PATH 7344do 7345 IFS=$as_save_IFS 7346 test -z "$as_dir" && as_dir=. 7347 for ac_exec_ext in '' $ac_executable_extensions; do 7348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7349 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7351 break 2 7352 fi 7353done 7354done 7355IFS=$as_save_IFS 7356 7357fi 7358fi 7359STRIP=$ac_cv_prog_STRIP 7360if test -n "$STRIP"; then 7361 { echo "$as_me:$LINENO: result: $STRIP" >&5 7362echo "${ECHO_T}$STRIP" >&6; } 7363else 7364 { echo "$as_me:$LINENO: result: no" >&5 7365echo "${ECHO_T}no" >&6; } 7366fi 7367 7368 7369fi 7370if test -z "$ac_cv_prog_STRIP"; then 7371 ac_ct_STRIP=$STRIP 7372 # Extract the first word of "strip", so it can be a program name with args. 7373set dummy strip; ac_word=$2 7374{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7375echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7376if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 7377 echo $ECHO_N "(cached) $ECHO_C" >&6 7378else 7379 if test -n "$ac_ct_STRIP"; then 7380 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7381else 7382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7383for as_dir in $PATH 7384do 7385 IFS=$as_save_IFS 7386 test -z "$as_dir" && as_dir=. 7387 for ac_exec_ext in '' $ac_executable_extensions; do 7388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7389 ac_cv_prog_ac_ct_STRIP="strip" 7390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7391 break 2 7392 fi 7393done 7394done 7395IFS=$as_save_IFS 7396 7397fi 7398fi 7399ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7400if test -n "$ac_ct_STRIP"; then 7401 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 7402echo "${ECHO_T}$ac_ct_STRIP" >&6; } 7403else 7404 { echo "$as_me:$LINENO: result: no" >&5 7405echo "${ECHO_T}no" >&6; } 7406fi 7407 7408 if test "x$ac_ct_STRIP" = x; then 7409 STRIP=":" 7410 else 7411 case $cross_compiling:$ac_tool_warned in 7412yes:) 7413{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7414whose name does not start with the host triplet. If you think this 7415configuration is useful to you, please write to autoconf@gnu.org." >&5 7416echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7417whose name does not start with the host triplet. If you think this 7418configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7419ac_tool_warned=yes ;; 7420esac 7421 STRIP=$ac_ct_STRIP 7422 fi 7423else 7424 STRIP="$ac_cv_prog_STRIP" 7425fi 7426 7427 7428old_CC="$CC" 7429old_CFLAGS="$CFLAGS" 7430 7431# Set sane defaults for various variables 7432test -z "$AR" && AR=ar 7433test -z "$AR_FLAGS" && AR_FLAGS=cru 7434test -z "$AS" && AS=as 7435test -z "$CC" && CC=cc 7436test -z "$LTCC" && LTCC=$CC 7437test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7438test -z "$DLLTOOL" && DLLTOOL=dlltool 7439test -z "$LD" && LD=ld 7440test -z "$LN_S" && LN_S="ln -s" 7441test -z "$MAGIC_CMD" && MAGIC_CMD=file 7442test -z "$NM" && NM=nm 7443test -z "$SED" && SED=sed 7444test -z "$OBJDUMP" && OBJDUMP=objdump 7445test -z "$RANLIB" && RANLIB=: 7446test -z "$STRIP" && STRIP=: 7447test -z "$ac_objext" && ac_objext=o 7448 7449# Determine commands to create old-style static archives. 7450old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 7451old_postinstall_cmds='chmod 644 $oldlib' 7452old_postuninstall_cmds= 7453 7454_lt_gnu_ar=no 7455case $host_os in 7456mirbsd*) 7457 _lt_gnu_ar=yes 7458 ;; 7459esac 7460 7461test $_lt_gnu_ar = no && if test -n "$RANLIB"; then 7462 case $host_os in 7463 openbsd*) 7464 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 7465 ;; 7466 *) 7467 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 7468 ;; 7469 esac 7470 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 7471fi 7472 7473for cc_temp in $compiler""; do 7474 case $cc_temp in 7475 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7476 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7477 \-*) ;; 7478 *) break;; 7479 esac 7480done 7481cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7482 7483 7484# Only perform the check for file, if the check method requires it 7485case $deplibs_check_method in 7486file_magic*) 7487 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7488 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7489echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } 7490if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7491 echo $ECHO_N "(cached) $ECHO_C" >&6 7492else 7493 case $MAGIC_CMD in 7494[\\/*] | ?:[\\/]*) 7495 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7496 ;; 7497*) 7498 lt_save_MAGIC_CMD="$MAGIC_CMD" 7499 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7500 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7501 for ac_dir in $ac_dummy; do 7502 IFS="$lt_save_ifs" 7503 test -z "$ac_dir" && ac_dir=. 7504 if test -f $ac_dir/${ac_tool_prefix}file; then 7505 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7506 if test -n "$file_magic_test_file"; then 7507 case $deplibs_check_method in 7508 "file_magic "*) 7509 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7510 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7511 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7512 $EGREP "$file_magic_regex" > /dev/null; then 7513 : 7514 else 7515 cat <<EOF 1>&2 7516 7517*** Warning: the command libtool uses to detect shared libraries, 7518*** $file_magic_cmd, produces output that libtool cannot recognize. 7519*** The result is that libtool may fail to recognize shared libraries 7520*** as such. This will affect the creation of libtool libraries that 7521*** depend on shared libraries, but programs linked with such libtool 7522*** libraries will work regardless of this problem. Nevertheless, you 7523*** may want to report the problem to your system manager and/or to 7524*** bug-libtool@gnu.org 7525 7526EOF 7527 fi ;; 7528 esac 7529 fi 7530 break 7531 fi 7532 done 7533 IFS="$lt_save_ifs" 7534 MAGIC_CMD="$lt_save_MAGIC_CMD" 7535 ;; 7536esac 7537fi 7538 7539MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7540if test -n "$MAGIC_CMD"; then 7541 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7542echo "${ECHO_T}$MAGIC_CMD" >&6; } 7543else 7544 { echo "$as_me:$LINENO: result: no" >&5 7545echo "${ECHO_T}no" >&6; } 7546fi 7547 7548if test -z "$lt_cv_path_MAGIC_CMD"; then 7549 if test -n "$ac_tool_prefix"; then 7550 { echo "$as_me:$LINENO: checking for file" >&5 7551echo $ECHO_N "checking for file... $ECHO_C" >&6; } 7552if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7553 echo $ECHO_N "(cached) $ECHO_C" >&6 7554else 7555 case $MAGIC_CMD in 7556[\\/*] | ?:[\\/]*) 7557 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7558 ;; 7559*) 7560 lt_save_MAGIC_CMD="$MAGIC_CMD" 7561 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7562 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7563 for ac_dir in $ac_dummy; do 7564 IFS="$lt_save_ifs" 7565 test -z "$ac_dir" && ac_dir=. 7566 if test -f $ac_dir/file; then 7567 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7568 if test -n "$file_magic_test_file"; then 7569 case $deplibs_check_method in 7570 "file_magic "*) 7571 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7572 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7573 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7574 $EGREP "$file_magic_regex" > /dev/null; then 7575 : 7576 else 7577 cat <<EOF 1>&2 7578 7579*** Warning: the command libtool uses to detect shared libraries, 7580*** $file_magic_cmd, produces output that libtool cannot recognize. 7581*** The result is that libtool may fail to recognize shared libraries 7582*** as such. This will affect the creation of libtool libraries that 7583*** depend on shared libraries, but programs linked with such libtool 7584*** libraries will work regardless of this problem. Nevertheless, you 7585*** may want to report the problem to your system manager and/or to 7586*** bug-libtool@gnu.org 7587 7588EOF 7589 fi ;; 7590 esac 7591 fi 7592 break 7593 fi 7594 done 7595 IFS="$lt_save_ifs" 7596 MAGIC_CMD="$lt_save_MAGIC_CMD" 7597 ;; 7598esac 7599fi 7600 7601MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7602if test -n "$MAGIC_CMD"; then 7603 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7604echo "${ECHO_T}$MAGIC_CMD" >&6; } 7605else 7606 { echo "$as_me:$LINENO: result: no" >&5 7607echo "${ECHO_T}no" >&6; } 7608fi 7609 7610 else 7611 MAGIC_CMD=: 7612 fi 7613fi 7614 7615 fi 7616 ;; 7617esac 7618 7619enable_dlopen=no 7620enable_win32_dll=no 7621 7622# Check whether --enable-libtool-lock was given. 7623if test "${enable_libtool_lock+set}" = set; then 7624 enableval=$enable_libtool_lock; 7625fi 7626 7627test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7628 7629 7630# Check whether --with-pic was given. 7631if test "${with_pic+set}" = set; then 7632 withval=$with_pic; pic_mode="$withval" 7633else 7634 pic_mode=default 7635fi 7636 7637test -z "$pic_mode" && pic_mode=default 7638 7639# Use C for the default configuration in the libtool script 7640tagname= 7641lt_save_CC="$CC" 7642ac_ext=c 7643ac_cpp='$CPP $CPPFLAGS' 7644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7646ac_compiler_gnu=$ac_cv_c_compiler_gnu 7647 7648 7649# Source file extension for C test sources. 7650ac_ext=c 7651 7652# Object file extension for compiled C test sources. 7653objext=o 7654objext=$objext 7655 7656# Code to be used in simple compile tests 7657lt_simple_compile_test_code="int some_variable = 0;\n" 7658 7659# Code to be used in simple link tests 7660lt_simple_link_test_code='int main(){return(0);}\n' 7661 7662 7663# If no C compiler was specified, use CC. 7664LTCC=${LTCC-"$CC"} 7665 7666# If no C compiler flags were specified, use CFLAGS. 7667LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7668 7669# Allow CC to be a program name with arguments. 7670compiler=$CC 7671 7672 7673# save warnings/boilerplate of simple test code 7674ac_outfile=conftest.$ac_objext 7675printf "$lt_simple_compile_test_code" >conftest.$ac_ext 7676eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7677_lt_compiler_boilerplate=`cat conftest.err` 7678$rm conftest* 7679 7680ac_outfile=conftest.$ac_objext 7681printf "$lt_simple_link_test_code" >conftest.$ac_ext 7682eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7683_lt_linker_boilerplate=`cat conftest.err` 7684$rm conftest* 7685 7686 7687## CAVEAT EMPTOR: 7688## There is no encapsulation within the following macros, do not change 7689## the running order or otherwise move them around unless you know exactly 7690## what you are doing... 7691 7692lt_prog_compiler_no_builtin_flag= 7693 7694if test "$GCC" = yes; then 7695 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7696 7697 7698{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7699echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 7700if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7701 echo $ECHO_N "(cached) $ECHO_C" >&6 7702else 7703 lt_cv_prog_compiler_rtti_exceptions=no 7704 ac_outfile=conftest.$ac_objext 7705 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7706 lt_compiler_flag="-fno-rtti -fno-exceptions" 7707 # Insert the option either (1) after the last *FLAGS variable, or 7708 # (2) before a word containing "conftest.", or (3) at the end. 7709 # Note that $ac_compile itself does not contain backslashes and begins 7710 # with a dollar sign (not a hyphen), so the echo should work correctly. 7711 # The option is referenced via a variable to avoid confusing sed. 7712 lt_compile=`echo "$ac_compile" | $SED \ 7713 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7714 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7715 -e 's:$: $lt_compiler_flag:'` 7716 (eval echo "\"\$as_me:7716: $lt_compile\"" >&5) 7717 (eval "$lt_compile" 2>conftest.err) 7718 ac_status=$? 7719 cat conftest.err >&5 7720 echo "$as_me:7720: \$? = $ac_status" >&5 7721 if (exit $ac_status) && test -s "$ac_outfile"; then 7722 # The compiler can only warn and ignore the option if not recognized 7723 # So say no if there are warnings other than the usual output. 7724 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7725 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7726 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7727 lt_cv_prog_compiler_rtti_exceptions=yes 7728 fi 7729 fi 7730 $rm conftest* 7731 7732fi 7733{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7734echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7735 7736if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7737 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7738else 7739 : 7740fi 7741 7742fi 7743 7744lt_prog_compiler_wl= 7745lt_prog_compiler_pic= 7746lt_prog_compiler_static= 7747 7748{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7749echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 7750 7751 if test "$GCC" = yes; then 7752 lt_prog_compiler_wl='-Wl,' 7753 lt_prog_compiler_static='-static' 7754 7755 case $host_os in 7756 aix*) 7757 # All AIX code is PIC. 7758 if test "$host_cpu" = ia64; then 7759 # AIX 5 now supports IA64 processor 7760 lt_prog_compiler_static='-Bstatic' 7761 fi 7762 ;; 7763 7764 amigaos*) 7765 # FIXME: we need at least 68020 code to build shared libraries, but 7766 # adding the '-m68020' flag to GCC prevents building anything better, 7767 # like '-m68040'. 7768 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7769 ;; 7770 7771 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7772 # PIC is the default for these OSes. 7773 ;; 7774 7775 mingw* | cygwin* | pw32* | os2*) 7776 # This hack is so that the source file can tell whether it is being 7777 # built for inclusion in a dll (and should export symbols for example). 7778 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7779 # (--disable-auto-import) libraries 7780 lt_prog_compiler_pic='-DDLL_EXPORT' 7781 ;; 7782 7783 darwin* | rhapsody*) 7784 # PIC is the default on this platform 7785 # Common symbols not allowed in MH_DYLIB files 7786 lt_prog_compiler_pic='-fno-common' 7787 ;; 7788 7789 interix3*) 7790 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7791 # Instead, we relocate shared libraries at runtime. 7792 ;; 7793 7794 msdosdjgpp*) 7795 # Just because we use GCC doesn't mean we suddenly get shared libraries 7796 # on systems that don't support them. 7797 lt_prog_compiler_can_build_shared=no 7798 enable_shared=no 7799 ;; 7800 7801 sysv4*MP*) 7802 if test -d /usr/nec; then 7803 lt_prog_compiler_pic=-Kconform_pic 7804 fi 7805 ;; 7806 7807 hpux*) 7808 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7809 # not for PA HP-UX. 7810 case $host_cpu in 7811 hppa*64*|ia64*) 7812 # +Z the default 7813 ;; 7814 *) 7815 lt_prog_compiler_pic='-fPIC' 7816 ;; 7817 esac 7818 ;; 7819 7820 *) 7821 lt_prog_compiler_pic='-fPIC' 7822 ;; 7823 esac 7824 else 7825 # PORTME Check for flag to pass linker flags through the system compiler. 7826 case $host_os in 7827 aix*) 7828 lt_prog_compiler_wl='-Wl,' 7829 if test "$host_cpu" = ia64; then 7830 # AIX 5 now supports IA64 processor 7831 lt_prog_compiler_static='-Bstatic' 7832 else 7833 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7834 fi 7835 ;; 7836 darwin*) 7837 # PIC is the default on this platform 7838 # Common symbols not allowed in MH_DYLIB files 7839 case $cc_basename in 7840 xlc*) 7841 lt_prog_compiler_pic='-qnocommon' 7842 lt_prog_compiler_wl='-Wl,' 7843 ;; 7844 esac 7845 ;; 7846 7847 mingw* | cygwin* | pw32* | os2*) 7848 # This hack is so that the source file can tell whether it is being 7849 # built for inclusion in a dll (and should export symbols for example). 7850 lt_prog_compiler_pic='-DDLL_EXPORT' 7851 ;; 7852 7853 hpux9* | hpux10* | hpux11*) 7854 lt_prog_compiler_wl='-Wl,' 7855 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7856 # not for PA HP-UX. 7857 case $host_cpu in 7858 hppa*64*|ia64*) 7859 # +Z the default 7860 ;; 7861 *) 7862 lt_prog_compiler_pic='+Z' 7863 ;; 7864 esac 7865 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7866 lt_prog_compiler_static='${wl}-a ${wl}archive' 7867 ;; 7868 7869 irix5* | irix6* | nonstopux*) 7870 lt_prog_compiler_wl='-Wl,' 7871 # PIC (with -KPIC) is the default. 7872 lt_prog_compiler_static='-non_shared' 7873 ;; 7874 7875 newsos6) 7876 lt_prog_compiler_pic='-KPIC' 7877 lt_prog_compiler_static='-Bstatic' 7878 ;; 7879 7880 linux*) 7881 case $cc_basename in 7882 icc* | ecc*) 7883 lt_prog_compiler_wl='-Wl,' 7884 lt_prog_compiler_pic='-KPIC' 7885 lt_prog_compiler_static='-static' 7886 ;; 7887 pgcc* | pgf77* | pgf90* | pgf95*) 7888 # Portland Group compilers (*not* the Pentium gcc compiler, 7889 # which looks to be a dead project) 7890 lt_prog_compiler_wl='-Wl,' 7891 lt_prog_compiler_pic='-fpic' 7892 lt_prog_compiler_static='-Bstatic' 7893 ;; 7894 ccc*) 7895 lt_prog_compiler_wl='-Wl,' 7896 # All Alpha code is PIC. 7897 lt_prog_compiler_static='-non_shared' 7898 ;; 7899 *) 7900 case `$CC -V 2>&1 | sed 5q` in 7901 *Sun\ C*) 7902 # Sun C 5.9 7903 lt_prog_compiler_pic='-KPIC' 7904 lt_prog_compiler_static='-Bstatic' 7905 lt_prog_compiler_wl='-Wl,' 7906 ;; 7907 *Sun\ F*) 7908 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7909 lt_prog_compiler_pic='-KPIC' 7910 lt_prog_compiler_static='-Bstatic' 7911 lt_prog_compiler_wl='' 7912 ;; 7913 esac 7914 ;; 7915 esac 7916 ;; 7917 7918 osf3* | osf4* | osf5*) 7919 lt_prog_compiler_wl='-Wl,' 7920 # All OSF/1 code is PIC. 7921 lt_prog_compiler_static='-non_shared' 7922 ;; 7923 7924 rdos*) 7925 lt_prog_compiler_static='-non_shared' 7926 ;; 7927 7928 solaris*) 7929 lt_prog_compiler_pic='-KPIC' 7930 lt_prog_compiler_static='-Bstatic' 7931 case $cc_basename in 7932 f77* | f90* | f95*) 7933 lt_prog_compiler_wl='-Qoption ld ';; 7934 *) 7935 lt_prog_compiler_wl='-Wl,';; 7936 esac 7937 ;; 7938 7939 sunos4*) 7940 lt_prog_compiler_wl='-Qoption ld ' 7941 lt_prog_compiler_pic='-PIC' 7942 lt_prog_compiler_static='-Bstatic' 7943 ;; 7944 7945 sysv4 | sysv4.2uw2* | sysv4.3*) 7946 lt_prog_compiler_wl='-Wl,' 7947 lt_prog_compiler_pic='-KPIC' 7948 lt_prog_compiler_static='-Bstatic' 7949 ;; 7950 7951 sysv4*MP*) 7952 if test -d /usr/nec ;then 7953 lt_prog_compiler_pic='-Kconform_pic' 7954 lt_prog_compiler_static='-Bstatic' 7955 fi 7956 ;; 7957 7958 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7959 lt_prog_compiler_wl='-Wl,' 7960 lt_prog_compiler_pic='-KPIC' 7961 lt_prog_compiler_static='-Bstatic' 7962 ;; 7963 7964 unicos*) 7965 lt_prog_compiler_wl='-Wl,' 7966 lt_prog_compiler_can_build_shared=no 7967 ;; 7968 7969 uts4*) 7970 lt_prog_compiler_pic='-pic' 7971 lt_prog_compiler_static='-Bstatic' 7972 ;; 7973 7974 *) 7975 lt_prog_compiler_can_build_shared=no 7976 ;; 7977 esac 7978 fi 7979 7980{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7981echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 7982 7983# 7984# Check to make sure the PIC flag actually works. 7985# 7986if test -n "$lt_prog_compiler_pic"; then 7987 7988{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7989echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 7990if test "${lt_prog_compiler_pic_works+set}" = set; then 7991 echo $ECHO_N "(cached) $ECHO_C" >&6 7992else 7993 lt_prog_compiler_pic_works=no 7994 ac_outfile=conftest.$ac_objext 7995 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7996 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7997 # Insert the option either (1) after the last *FLAGS variable, or 7998 # (2) before a word containing "conftest.", or (3) at the end. 7999 # Note that $ac_compile itself does not contain backslashes and begins 8000 # with a dollar sign (not a hyphen), so the echo should work correctly. 8001 # The option is referenced via a variable to avoid confusing sed. 8002 lt_compile=`echo "$ac_compile" | $SED \ 8003 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8004 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8005 -e 's:$: $lt_compiler_flag:'` 8006 (eval echo "\"\$as_me:8006: $lt_compile\"" >&5) 8007 (eval "$lt_compile" 2>conftest.err) 8008 ac_status=$? 8009 cat conftest.err >&5 8010 echo "$as_me:8010: \$? = $ac_status" >&5 8011 if (exit $ac_status) && test -s "$ac_outfile"; then 8012 # The compiler can only warn and ignore the option if not recognized 8013 # So say no if there are warnings other than the usual output. 8014 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8015 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8016 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8017 lt_prog_compiler_pic_works=yes 8018 fi 8019 fi 8020 $rm conftest* 8021 8022fi 8023{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 8024echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } 8025 8026if test x"$lt_prog_compiler_pic_works" = xyes; then 8027 case $lt_prog_compiler_pic in 8028 "" | " "*) ;; 8029 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8030 esac 8031else 8032 lt_prog_compiler_pic= 8033 lt_prog_compiler_can_build_shared=no 8034fi 8035 8036fi 8037case $host_os in 8038 # For platforms which do not support PIC, -DPIC is meaningless: 8039 *djgpp*) 8040 lt_prog_compiler_pic= 8041 ;; 8042 *) 8043 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8044 ;; 8045esac 8046 8047# 8048# Check to make sure the static flag actually works. 8049# 8050wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8051{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8052echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 8053if test "${lt_prog_compiler_static_works+set}" = set; then 8054 echo $ECHO_N "(cached) $ECHO_C" >&6 8055else 8056 lt_prog_compiler_static_works=no 8057 save_LDFLAGS="$LDFLAGS" 8058 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8059 printf "$lt_simple_link_test_code" > conftest.$ac_ext 8060 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8061 # The linker can only warn and ignore the option if not recognized 8062 # So say no if there are warnings 8063 if test -s conftest.err; then 8064 # Append any errors to the config.log. 8065 cat conftest.err 1>&5 8066 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 8067 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8068 if diff conftest.exp conftest.er2 >/dev/null; then 8069 lt_prog_compiler_static_works=yes 8070 fi 8071 else 8072 lt_prog_compiler_static_works=yes 8073 fi 8074 fi 8075 $rm conftest* 8076 LDFLAGS="$save_LDFLAGS" 8077 8078fi 8079{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 8080echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } 8081 8082if test x"$lt_prog_compiler_static_works" = xyes; then 8083 : 8084else 8085 lt_prog_compiler_static= 8086fi 8087 8088 8089{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 8090echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 8091if test "${lt_cv_prog_compiler_c_o+set}" = set; then 8092 echo $ECHO_N "(cached) $ECHO_C" >&6 8093else 8094 lt_cv_prog_compiler_c_o=no 8095 $rm -r conftest 2>/dev/null 8096 mkdir conftest 8097 cd conftest 8098 mkdir out 8099 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8100 8101 lt_compiler_flag="-o out/conftest2.$ac_objext" 8102 # Insert the option either (1) after the last *FLAGS variable, or 8103 # (2) before a word containing "conftest.", or (3) at the end. 8104 # Note that $ac_compile itself does not contain backslashes and begins 8105 # with a dollar sign (not a hyphen), so the echo should work correctly. 8106 lt_compile=`echo "$ac_compile" | $SED \ 8107 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8108 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8109 -e 's:$: $lt_compiler_flag:'` 8110 (eval echo "\"\$as_me:8110: $lt_compile\"" >&5) 8111 (eval "$lt_compile" 2>out/conftest.err) 8112 ac_status=$? 8113 cat out/conftest.err >&5 8114 echo "$as_me:8114: \$? = $ac_status" >&5 8115 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8116 then 8117 # The compiler can only warn and ignore the option if not recognized 8118 # So say no if there are warnings 8119 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8120 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8121 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8122 lt_cv_prog_compiler_c_o=yes 8123 fi 8124 fi 8125 chmod u+w . 2>&5 8126 $rm conftest* 8127 # SGI C++ compiler will create directory out/ii_files/ for 8128 # template instantiation 8129 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 8130 $rm out/* && rmdir out 8131 cd .. 8132 rmdir conftest 8133 $rm conftest* 8134 8135fi 8136{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8137echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 8138 8139 8140hard_links="nottested" 8141if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8142 # do not overwrite the value of need_locks provided by the user 8143 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 8144echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 8145 hard_links=yes 8146 $rm conftest* 8147 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8148 touch conftest.a 8149 ln conftest.a conftest.b 2>&5 || hard_links=no 8150 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8151 { echo "$as_me:$LINENO: result: $hard_links" >&5 8152echo "${ECHO_T}$hard_links" >&6; } 8153 if test "$hard_links" = no; then 8154 { echo "$as_me:$LINENO: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 8155echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 8156 need_locks=warn 8157 fi 8158else 8159 need_locks=no 8160fi 8161 8162{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8163echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 8164 8165 runpath_var= 8166 allow_undefined_flag= 8167 enable_shared_with_static_runtimes=no 8168 archive_cmds= 8169 archive_expsym_cmds= 8170 old_archive_From_new_cmds= 8171 old_archive_from_expsyms_cmds= 8172 export_dynamic_flag_spec= 8173 whole_archive_flag_spec= 8174 thread_safe_flag_spec= 8175 hardcode_libdir_flag_spec= 8176 hardcode_libdir_flag_spec_ld= 8177 hardcode_libdir_separator= 8178 hardcode_direct=no 8179 hardcode_minus_L=no 8180 hardcode_shlibpath_var=unsupported 8181 link_all_deplibs=unknown 8182 hardcode_automatic=no 8183 module_cmds= 8184 module_expsym_cmds= 8185 always_export_symbols=no 8186 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8187 # include_expsyms should be a list of space-separated symbols to be *always* 8188 # included in the symbol list 8189 include_expsyms= 8190 # exclude_expsyms can be an extended regexp of symbols to exclude 8191 # it will be wrapped by ' (' and ')$', so one must not match beginning or 8192 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 8193 # as well as any symbol that contains 'd'. 8194 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 8195 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8196 # platforms (ab)use it in PIC code, but their linkers get confused if 8197 # the symbol is explicitly referenced. Since portable code cannot 8198 # rely on this symbol name, it's probably fine to never include it in 8199 # preloaded symbol tables. 8200 extract_expsyms_cmds= 8201 # Just being paranoid about ensuring that cc_basename is set. 8202 for cc_temp in $compiler""; do 8203 case $cc_temp in 8204 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8205 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8206 \-*) ;; 8207 *) break;; 8208 esac 8209done 8210cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8211 8212 case $host_os in 8213 cygwin* | mingw* | pw32*) 8214 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8215 # When not using gcc, we currently assume that we are using 8216 # Microsoft Visual C++. 8217 if test "$GCC" != yes; then 8218 with_gnu_ld=no 8219 fi 8220 ;; 8221 interix*) 8222 # we just hope/assume this is gcc and not c89 (= MSVC++) 8223 with_gnu_ld=yes 8224 ;; 8225 mirbsd*) 8226 with_gnu_ld=yes 8227 ;; 8228 openbsd*) 8229 with_gnu_ld=no 8230 ;; 8231 esac 8232 8233 ld_shlibs=yes 8234 if test "$with_gnu_ld" = yes; then 8235 # If archive_cmds runs LD, not CC, wlarc should be empty 8236 wlarc='${wl}' 8237 8238 # Set some defaults for GNU ld with shared library support. These 8239 # are reset later if shared libraries are not supported. Putting them 8240 # here allows them to be overridden if necessary. 8241 runpath_var=LD_RUN_PATH 8242 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 8243 export_dynamic_flag_spec='${wl}--export-dynamic' 8244 # ancient GNU ld didn't support --whole-archive et. al. 8245 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 8246 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8247 else 8248 whole_archive_flag_spec= 8249 fi 8250 supports_anon_versioning=no 8251 case `$LD -v 2>/dev/null` in 8252 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8253 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8254 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8255 *\ 2.11.*) ;; # other 2.11 versions 8256 *) supports_anon_versioning=yes ;; 8257 esac 8258 8259 # See if GNU ld supports shared libraries. 8260 case $host_os in 8261 aix3* | aix4* | aix5*) 8262 # On AIX/PPC, the GNU linker is very broken 8263 if test "$host_cpu" != ia64; then 8264 ld_shlibs=no 8265 cat <<EOF 1>&2 8266 8267*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8268*** to be unable to reliably create shared libraries on AIX. 8269*** Therefore, libtool is disabling shared libraries support. If you 8270*** really care for shared libraries, you may want to modify your PATH 8271*** so that a non-GNU linker is found, and then restart. 8272 8273EOF 8274 fi 8275 ;; 8276 8277 amigaos*) 8278 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)' 8279 hardcode_libdir_flag_spec='-L$libdir' 8280 hardcode_minus_L=yes 8281 8282 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 8283 # that the semantics of dynamic libraries on AmigaOS, at least up 8284 # to version 4, is to share data among multiple programs linked 8285 # with the same dynamic library. Since this doesn't match the 8286 # behavior of shared libraries on other platforms, we can't use 8287 # them. 8288 ld_shlibs=no 8289 ;; 8290 8291 beos*) 8292 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8293 allow_undefined_flag=unsupported 8294 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8295 # support --undefined. This deserves some investigation. FIXME 8296 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8297 else 8298 ld_shlibs=no 8299 fi 8300 ;; 8301 8302 cygwin* | mingw* | pw32*) 8303 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8304 # as there is no search path for DLLs. 8305 hardcode_libdir_flag_spec='-L$libdir' 8306 allow_undefined_flag=unsupported 8307 always_export_symbols=no 8308 enable_shared_with_static_runtimes=yes 8309 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 8310 8311 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 8312 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8313 # If the export-symbols file already is a .def file (1st line 8314 # is EXPORTS), use it as is; otherwise, prepend... 8315 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8316 cp $export_symbols $output_objdir/$soname.def; 8317 else 8318 echo EXPORTS > $output_objdir/$soname.def; 8319 cat $export_symbols >> $output_objdir/$soname.def; 8320 fi~ 8321 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8322 else 8323 ld_shlibs=no 8324 fi 8325 ;; 8326 8327 interix3*) 8328 hardcode_direct=no 8329 hardcode_shlibpath_var=no 8330 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8331 export_dynamic_flag_spec='${wl}-E' 8332 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8333 # Instead, shared libraries are loaded at an image base (0x10000000 by 8334 # default) and relocated if they conflict, which is a slow very memory 8335 # consuming and fragmenting process. To avoid this, we pick a random, 8336 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8337 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8338 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8339 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' 8340 ;; 8341 8342 linux*) 8343 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8344 tmp_addflag= 8345 case $cc_basename,$host_cpu in 8346 pgcc*) # Portland Group C compiler 8347 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' 8348 tmp_addflag=' $pic_flag' 8349 ;; 8350 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8351 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' 8352 tmp_addflag=' $pic_flag -Mnomain' ;; 8353 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8354 tmp_addflag=' -i_dynamic' ;; 8355 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8356 tmp_addflag=' -i_dynamic -nofor_main' ;; 8357 ifc* | ifort*) # Intel Fortran compiler 8358 tmp_addflag=' -nofor_main' ;; 8359 esac 8360 case `$CC -V 2>&1 | sed 5q` in 8361 *Sun\ C*) # Sun C 5.9 8362 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 /dev/null' 8363 tmp_sharedflag='-G' ;; 8364 *Sun\ F*) # Sun Fortran 8.3 8365 tmp_sharedflag='-G' ;; 8366 *) 8367 tmp_sharedflag='-shared' ;; 8368 esac 8369 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8370 8371 if test $supports_anon_versioning = yes; then 8372 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 8373 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8374 $echo "local: *; };" >> $output_objdir/$libname.ver~ 8375 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8376 fi 8377 else 8378 ld_shlibs=no 8379 fi 8380 ;; 8381 8382 mirbsd*) 8383 hardcode_direct=yes 8384 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags -o $lib' 8385 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 8386 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8387 export_dynamic_flag_spec='${wl}-E' 8388 ;; 8389 8390 netbsd*) 8391 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8392 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8393 wlarc= 8394 else 8395 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8396 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8397 fi 8398 ;; 8399 8400 solaris*) 8401 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 8402 ld_shlibs=no 8403 cat <<EOF 1>&2 8404 8405*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8406*** create shared libraries on Solaris systems. Therefore, libtool 8407*** is disabling shared libraries support. We urge you to upgrade GNU 8408*** binutils to release 2.9.1 or newer. Another option is to modify 8409*** your PATH or compiler configuration so that the native linker is 8410*** used, and then restart. 8411 8412EOF 8413 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8414 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8415 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8416 else 8417 ld_shlibs=no 8418 fi 8419 ;; 8420 8421 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8422 case `$LD -v 2>&1` in 8423 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8424 ld_shlibs=no 8425 cat <<_LT_EOF 1>&2 8426 8427*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8428*** reliably create shared libraries on SCO systems. Therefore, libtool 8429*** is disabling shared libraries support. We urge you to upgrade GNU 8430*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8431*** your PATH or compiler configuration so that the native linker is 8432*** used, and then restart. 8433 8434_LT_EOF 8435 ;; 8436 *) 8437 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8438 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 8439 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 8440 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 8441 else 8442 ld_shlibs=no 8443 fi 8444 ;; 8445 esac 8446 ;; 8447 8448 sunos4*) 8449 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8450 wlarc= 8451 hardcode_direct=yes 8452 hardcode_shlibpath_var=no 8453 ;; 8454 8455 *) 8456 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8457 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8458 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8459 else 8460 ld_shlibs=no 8461 fi 8462 ;; 8463 esac 8464 8465 if test "$ld_shlibs" = no; then 8466 runpath_var= 8467 hardcode_libdir_flag_spec= 8468 export_dynamic_flag_spec= 8469 whole_archive_flag_spec= 8470 fi 8471 else 8472 # PORTME fill in a description of your system's linker (not GNU ld) 8473 case $host_os in 8474 aix3*) 8475 allow_undefined_flag=unsupported 8476 always_export_symbols=yes 8477 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' 8478 # Note: this linker hardcodes the directories in LIBPATH if there 8479 # are no directories specified by -L. 8480 hardcode_minus_L=yes 8481 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8482 # Neither direct hardcoding nor static linking is supported with a 8483 # broken collect2. 8484 hardcode_direct=unsupported 8485 fi 8486 ;; 8487 8488 aix4* | aix5*) 8489 if test "$host_cpu" = ia64; then 8490 # On IA64, the linker does run time linking by default, so we don't 8491 # have to do anything special. 8492 aix_use_runtimelinking=no 8493 exp_sym_flag='-Bexport' 8494 no_entry_flag="" 8495 else 8496 # If we're using GNU nm, then we don't want the "-C" option. 8497 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8498 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 8499 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' 8500 else 8501 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' 8502 fi 8503 aix_use_runtimelinking=no 8504 8505 # Test if we are trying to use run time linking or normal 8506 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8507 # need to do runtime linking. 8508 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 8509 for ld_flag in $LDFLAGS; do 8510 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8511 aix_use_runtimelinking=yes 8512 break 8513 fi 8514 done 8515 ;; 8516 esac 8517 8518 exp_sym_flag='-bexport' 8519 no_entry_flag='-bnoentry' 8520 fi 8521 8522 # When large executables or shared objects are built, AIX ld can 8523 # have problems creating the table of contents. If linking a library 8524 # or program results in "error TOC overflow" add -mminimal-toc to 8525 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8526 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8527 8528 archive_cmds='' 8529 hardcode_direct=yes 8530 hardcode_libdir_separator=':' 8531 link_all_deplibs=yes 8532 8533 if test "$GCC" = yes; then 8534 case $host_os in aix4.[012]|aix4.[012].*) 8535 # We only want to do this on AIX 4.2 and lower, the check 8536 # below for broken collect2 doesn't work under 4.3+ 8537 collect2name=`${CC} -print-prog-name=collect2` 8538 if test -f "$collect2name" && \ 8539 strings "$collect2name" | grep resolve_lib_name >/dev/null 8540 then 8541 # We have reworked collect2 8542 : 8543 else 8544 # We have old collect2 8545 hardcode_direct=unsupported 8546 # It fails to find uninstalled libraries when the uninstalled 8547 # path is not listed in the libpath. Setting hardcode_minus_L 8548 # to unsupported forces relinking 8549 hardcode_minus_L=yes 8550 hardcode_libdir_flag_spec='-L$libdir' 8551 hardcode_libdir_separator= 8552 fi 8553 ;; 8554 esac 8555 shared_flag='-shared' 8556 if test "$aix_use_runtimelinking" = yes; then 8557 shared_flag="$shared_flag "'${wl}-G' 8558 fi 8559 else 8560 # not using gcc 8561 if test "$host_cpu" = ia64; then 8562 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8563 # chokes on -Wl,-G. The following line is correct: 8564 shared_flag='-G' 8565 else 8566 if test "$aix_use_runtimelinking" = yes; then 8567 shared_flag='${wl}-G' 8568 else 8569 shared_flag='${wl}-bM:SRE' 8570 fi 8571 fi 8572 fi 8573 8574 # It seems that -bexpall does not export symbols beginning with 8575 # underscore (_), so it is better to generate a list of symbols to export. 8576 always_export_symbols=yes 8577 if test "$aix_use_runtimelinking" = yes; then 8578 # Warning - without using the other runtime loading flags (-brtl), 8579 # -berok will link without error, but may produce a broken library. 8580 allow_undefined_flag='-berok' 8581 # Determine the default libpath from the value encoded in an empty executable. 8582 aix_libpath="/usr/lib:/lib" 8583 8584 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8585 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" 8586 else 8587 if test "$host_cpu" = ia64; then 8588 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8589 allow_undefined_flag="-z nodefs" 8590 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" 8591 else 8592 # Determine the default libpath from the value encoded in an empty executable. 8593 aix_libpath="/usr/lib:/lib" 8594 8595 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8596 # Warning - without using the other run time loading flags, 8597 # -berok will link without error, but may produce a broken library. 8598 no_undefined_flag=' ${wl}-bernotok' 8599 allow_undefined_flag=' ${wl}-berok' 8600 # Exported symbols can be pulled into shared objects from archives 8601 whole_archive_flag_spec='$convenience' 8602 archive_cmds_need_lc=yes 8603 # This is similar to how AIX traditionally builds its shared libraries. 8604 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' 8605 fi 8606 fi 8607 ;; 8608 8609 amigaos*) 8610 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)' 8611 hardcode_libdir_flag_spec='-L$libdir' 8612 hardcode_minus_L=yes 8613 # see comment about different semantics on the GNU ld section 8614 ld_shlibs=no 8615 ;; 8616 8617 bsdi[45]*) 8618 export_dynamic_flag_spec=-rdynamic 8619 ;; 8620 8621 cygwin* | mingw* | pw32*) 8622 # When not using gcc, we currently assume that we are using 8623 # Microsoft Visual C++. 8624 # hardcode_libdir_flag_spec is actually meaningless, as there is 8625 # no search path for DLLs. 8626 hardcode_libdir_flag_spec=' ' 8627 allow_undefined_flag=unsupported 8628 # Tell ltmain to make .lib files, not .a files. 8629 libext=lib 8630 # Tell ltmain to make .dll files, not .so files. 8631 shrext_cmds=".dll" 8632 # FIXME: Setting linknames here is a bad hack. 8633 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8634 # The linker will automatically build a .lib file if we build a DLL. 8635 old_archive_From_new_cmds='true' 8636 # FIXME: Should let the user specify the lib program. 8637 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 8638 fix_srcfile_path='`cygpath -w "$srcfile"`' 8639 enable_shared_with_static_runtimes=yes 8640 ;; 8641 8642 darwin* | rhapsody*) 8643 case $host_os in 8644 rhapsody* | darwin1.[012]) 8645 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8646 ;; 8647 *) # Darwin 1.3 on 8648 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8649 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8650 else 8651 case ${MACOSX_DEPLOYMENT_TARGET} in 8652 10.[012]) 8653 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8654 ;; 8655 10.*) 8656 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8657 ;; 8658 esac 8659 fi 8660 ;; 8661 esac 8662 archive_cmds_need_lc=no 8663 hardcode_direct=no 8664 hardcode_automatic=yes 8665 hardcode_shlibpath_var=unsupported 8666 whole_archive_flag_spec='' 8667 link_all_deplibs=yes 8668 if test "$GCC" = yes ; then 8669 output_verbose_link_cmd='echo' 8670 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 8671 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8672 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8673 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8674 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}' 8675 else 8676 case $cc_basename in 8677 xlc*) 8678 output_verbose_link_cmd='echo' 8679 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 8680 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8681 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8682 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8683 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}' 8684 ;; 8685 *) 8686 ld_shlibs=no 8687 ;; 8688 esac 8689 fi 8690 ;; 8691 8692 dgux*) 8693 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8694 hardcode_libdir_flag_spec='-L$libdir' 8695 hardcode_shlibpath_var=no 8696 ;; 8697 8698 freebsd1*) 8699 ld_shlibs=no 8700 ;; 8701 8702 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8703 # support. Future versions do this automatically, but an explicit c++rt0.o 8704 # does not break anything, and helps significantly (at the cost of a little 8705 # extra space). 8706 freebsd2.2*) 8707 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8708 hardcode_libdir_flag_spec='-R$libdir' 8709 hardcode_direct=yes 8710 hardcode_shlibpath_var=no 8711 ;; 8712 8713 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8714 freebsd2*) 8715 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8716 hardcode_direct=yes 8717 hardcode_minus_L=yes 8718 hardcode_shlibpath_var=no 8719 ;; 8720 8721 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8722 freebsd* | kfreebsd*-gnu | dragonfly*) 8723 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8724 hardcode_libdir_flag_spec='-R$libdir' 8725 hardcode_direct=yes 8726 hardcode_shlibpath_var=no 8727 ;; 8728 8729 hpux9*) 8730 if test "$GCC" = yes; then 8731 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' 8732 else 8733 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' 8734 fi 8735 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8736 hardcode_libdir_separator=: 8737 hardcode_direct=yes 8738 8739 # hardcode_minus_L: Not really in the search PATH, 8740 # but as the default location of the library. 8741 hardcode_minus_L=yes 8742 export_dynamic_flag_spec='${wl}-E' 8743 ;; 8744 8745 hpux10*) 8746 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8747 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8748 else 8749 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8750 fi 8751 if test "$with_gnu_ld" = no; then 8752 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8753 hardcode_libdir_separator=: 8754 8755 hardcode_direct=yes 8756 export_dynamic_flag_spec='${wl}-E' 8757 8758 # hardcode_minus_L: Not really in the search PATH, 8759 # but as the default location of the library. 8760 hardcode_minus_L=yes 8761 fi 8762 ;; 8763 8764 hpux11*) 8765 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8766 case $host_cpu in 8767 hppa*64*) 8768 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8769 ;; 8770 ia64*) 8771 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8772 ;; 8773 *) 8774 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8775 ;; 8776 esac 8777 else 8778 case $host_cpu in 8779 hppa*64*) 8780 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8781 ;; 8782 ia64*) 8783 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8784 ;; 8785 *) 8786 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8787 ;; 8788 esac 8789 fi 8790 if test "$with_gnu_ld" = no; then 8791 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8792 hardcode_libdir_separator=: 8793 8794 case $host_cpu in 8795 hppa*64*|ia64*) 8796 hardcode_libdir_flag_spec_ld='+b $libdir' 8797 hardcode_direct=no 8798 hardcode_shlibpath_var=no 8799 ;; 8800 *) 8801 hardcode_direct=yes 8802 export_dynamic_flag_spec='${wl}-E' 8803 8804 # hardcode_minus_L: Not really in the search PATH, 8805 # but as the default location of the library. 8806 hardcode_minus_L=yes 8807 ;; 8808 esac 8809 fi 8810 ;; 8811 8812 irix5* | irix6* | nonstopux*) 8813 if test "$GCC" = yes; then 8814 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' 8815 else 8816 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' 8817 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8818 fi 8819 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8820 hardcode_libdir_separator=: 8821 link_all_deplibs=yes 8822 ;; 8823 8824 netbsd*) 8825 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8826 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8827 else 8828 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8829 fi 8830 hardcode_libdir_flag_spec='-R$libdir' 8831 hardcode_direct=yes 8832 hardcode_shlibpath_var=no 8833 ;; 8834 8835 newsos6) 8836 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8837 hardcode_direct=yes 8838 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8839 hardcode_libdir_separator=: 8840 hardcode_shlibpath_var=no 8841 ;; 8842 8843 openbsd*) 8844 hardcode_direct=yes 8845 hardcode_shlibpath_var=no 8846 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8847 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags -o $lib' 8848 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 8849 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8850 export_dynamic_flag_spec='${wl}-E' 8851 else 8852 case $host_os in 8853 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8854 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8855 hardcode_libdir_flag_spec='-R$libdir' 8856 ;; 8857 *) 8858 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8859 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8860 ;; 8861 esac 8862 fi 8863 ;; 8864 8865 os2*) 8866 hardcode_libdir_flag_spec='-L$libdir' 8867 hardcode_minus_L=yes 8868 allow_undefined_flag=unsupported 8869 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' 8870 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8871 ;; 8872 8873 osf3*) 8874 if test "$GCC" = yes; then 8875 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8876 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' 8877 else 8878 allow_undefined_flag=' -expect_unresolved \*' 8879 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' 8880 fi 8881 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8882 hardcode_libdir_separator=: 8883 ;; 8884 8885 osf4* | osf5*) # as osf3* with the addition of -msym flag 8886 if test "$GCC" = yes; then 8887 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8888 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' 8889 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8890 else 8891 allow_undefined_flag=' -expect_unresolved \*' 8892 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' 8893 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8894 $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' 8895 8896 # Both c and cxx compiler support -rpath directly 8897 hardcode_libdir_flag_spec='-rpath $libdir' 8898 fi 8899 hardcode_libdir_separator=: 8900 ;; 8901 8902 solaris*) 8903 no_undefined_flag=' -z text' 8904 if test "$GCC" = yes; then 8905 wlarc='${wl}' 8906 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8907 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8908 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8909 else 8910 wlarc='' 8911 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8912 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8913 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8914 fi 8915 hardcode_libdir_flag_spec='-R$libdir' 8916 hardcode_shlibpath_var=no 8917 case $host_os in 8918 solaris2.[0-5] | solaris2.[0-5].*) ;; 8919 *) 8920 # The compiler driver will combine and reorder linker options, 8921 # but understands `-z linker_flag'. GCC discards it without `$wl', 8922 # but is careful enough not to reorder. 8923 # Supported since Solaris 2.6 (maybe 2.5.1?) 8924 if test "$GCC" = yes; then 8925 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8926 else 8927 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8928 fi 8929 ;; 8930 esac 8931 link_all_deplibs=yes 8932 ;; 8933 8934 sunos4*) 8935 if test "x$host_vendor" = xsequent; then 8936 # Use $CC to link under sequent, because it throws in some extra .o 8937 # files that make .init and .fini sections work. 8938 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8939 else 8940 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8941 fi 8942 hardcode_libdir_flag_spec='-L$libdir' 8943 hardcode_direct=yes 8944 hardcode_minus_L=yes 8945 hardcode_shlibpath_var=no 8946 ;; 8947 8948 sysv4) 8949 case $host_vendor in 8950 sni) 8951 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8952 hardcode_direct=yes # is this really true??? 8953 ;; 8954 siemens) 8955 ## LD is ld it makes a PLAMLIB 8956 ## CC just makes a GrossModule. 8957 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8958 reload_cmds='$CC -r -o $output$reload_objs' 8959 hardcode_direct=no 8960 ;; 8961 motorola) 8962 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8963 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8964 ;; 8965 esac 8966 runpath_var='LD_RUN_PATH' 8967 hardcode_shlibpath_var=no 8968 ;; 8969 8970 sysv4.3*) 8971 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8972 hardcode_shlibpath_var=no 8973 export_dynamic_flag_spec='-Bexport' 8974 ;; 8975 8976 sysv4*MP*) 8977 if test -d /usr/nec; then 8978 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8979 hardcode_shlibpath_var=no 8980 runpath_var=LD_RUN_PATH 8981 hardcode_runpath_var=yes 8982 ld_shlibs=yes 8983 fi 8984 ;; 8985 8986 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 8987 no_undefined_flag='${wl}-z,text' 8988 archive_cmds_need_lc=no 8989 hardcode_shlibpath_var=no 8990 runpath_var='LD_RUN_PATH' 8991 8992 if test "$GCC" = yes; then 8993 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8994 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8995 else 8996 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8997 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8998 fi 8999 ;; 9000 9001 sysv5* | sco3.2v5* | sco5v6*) 9002 # Note: We can NOT use -z defs as we might desire, because we do not 9003 # link with -lc, and that would cause any symbols used from libc to 9004 # always be unresolved, which means just about no library would 9005 # ever link correctly. If we're not using GNU ld we use -z text 9006 # though, which does catch some bad symbols but isn't as heavy-handed 9007 # as -z defs. 9008 no_undefined_flag='${wl}-z,text' 9009 allow_undefined_flag='${wl}-z,nodefs' 9010 archive_cmds_need_lc=no 9011 hardcode_shlibpath_var=no 9012 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 9013 hardcode_libdir_separator=':' 9014 link_all_deplibs=yes 9015 export_dynamic_flag_spec='${wl}-Bexport' 9016 runpath_var='LD_RUN_PATH' 9017 9018 if test "$GCC" = yes; then 9019 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9020 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9021 else 9022 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9023 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9024 fi 9025 ;; 9026 9027 uts4*) 9028 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9029 hardcode_libdir_flag_spec='-L$libdir' 9030 hardcode_shlibpath_var=no 9031 ;; 9032 9033 *) 9034 ld_shlibs=no 9035 ;; 9036 esac 9037 fi 9038 9039{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 9040echo "${ECHO_T}$ld_shlibs" >&6; } 9041test "$ld_shlibs" = no && can_build_shared=no 9042 9043# 9044# Do we need to explicitly link libc? 9045# 9046case "x$archive_cmds_need_lc" in 9047x|xyes) 9048 # Assume -lc should be added 9049 archive_cmds_need_lc=yes 9050 9051 if test "$enable_shared" = yes && test "$GCC" = yes; then 9052 case $archive_cmds in 9053 *'~'*) 9054 # FIXME: we may have to deal with multi-command sequences. 9055 ;; 9056 '$CC '*) 9057 # Test whether the compiler implicitly links with -lc since on some 9058 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9059 # to ld, don't add -lc before -lgcc. 9060 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 9061echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 9062 $rm conftest* 9063 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 9064 9065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9066 (eval $ac_compile) 2>&5 9067 ac_status=$? 9068 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9069 (exit $ac_status); } 2>conftest.err; then 9070 soname=conftest 9071 lib=conftest 9072 libobjs=conftest.$ac_objext 9073 deplibs= 9074 wl=$lt_prog_compiler_wl 9075 pic_flag=$lt_prog_compiler_pic 9076 compiler_flags=-v 9077 linker_flags=-v 9078 verstring= 9079 output_objdir=. 9080 libname=conftest 9081 lt_save_allow_undefined_flag=$allow_undefined_flag 9082 allow_undefined_flag= 9083 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 9084 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 9085 ac_status=$? 9086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9087 (exit $ac_status); } 9088 then 9089 archive_cmds_need_lc=no 9090 else 9091 archive_cmds_need_lc=yes 9092 fi 9093 allow_undefined_flag=$lt_save_allow_undefined_flag 9094 else 9095 cat conftest.err 1>&5 9096 fi 9097 $rm conftest* 9098 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 9099echo "${ECHO_T}$archive_cmds_need_lc" >&6; } 9100 ;; 9101 esac 9102 fi 9103 ;; 9104esac 9105 9106{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9107echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 9108library_names_spec= 9109libname_spec='lib$name' 9110soname_spec= 9111shrext_cmds=".so" 9112postinstall_cmds= 9113postuninstall_cmds= 9114finish_cmds= 9115finish_eval= 9116shlibpath_var= 9117shlibpath_overrides_runpath=unknown 9118version_type=none 9119dynamic_linker="$host_os ld.so" 9120sys_lib_dlsearch_path_spec="/lib /usr/lib" 9121if test "$GCC" = yes; then 9122 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9123 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 9124 # if the path contains ";" then we assume it to be the separator 9125 # otherwise default to the standard path separator (i.e. ":") - it is 9126 # assumed that no part of a normal pathname contains ";" but that should 9127 # okay in the real world where ";" in dirpaths is itself problematic. 9128 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9129 else 9130 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9131 fi 9132else 9133 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9134fi 9135tmp="$sys_lib_search_path_spec" 9136sys_lib_search_path_spec= 9137sp= 9138for i in $tmp 9139do 9140 test -d $i && sys_lib_search_path_spec="$sys_lib_search_path_spec$sp$i" 9141 sp=" " 9142done 9143 9144need_lib_prefix=unknown 9145hardcode_into_libs=no 9146 9147# when you set need_version to no, make sure it does not cause -set_version 9148# flags to be left without arguments 9149need_version=unknown 9150 9151case $host_os in 9152aix3*) 9153 version_type=linux 9154 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9155 shlibpath_var=LIBPATH 9156 9157 # AIX 3 has no versioning support, so we append a major version to the name. 9158 soname_spec='${libname}${release}${shared_ext}$major' 9159 ;; 9160 9161aix4* | aix5*) 9162 version_type=linux 9163 need_lib_prefix=no 9164 need_version=no 9165 hardcode_into_libs=yes 9166 if test "$host_cpu" = ia64; then 9167 # AIX 5 supports IA64 9168 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9169 shlibpath_var=LD_LIBRARY_PATH 9170 else 9171 # With GCC up to 2.95.x, collect2 would create an import file 9172 # for dependence libraries. The import file would start with 9173 # the line '#! .'. This would cause the generated library to 9174 # depend on '.', always an invalid library. This was fixed in 9175 # development snapshots of GCC prior to 3.0. 9176 case $host_os in 9177 aix4 | aix4.[01] | aix4.[01].*) 9178 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9179 echo ' yes ' 9180 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 9181 : 9182 else 9183 can_build_shared=no 9184 fi 9185 ;; 9186 esac 9187 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9188 # soname into executable. Probably we can add versioning support to 9189 # collect2, so additional links can be useful in future. 9190 if test "$aix_use_runtimelinking" = yes; then 9191 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9192 # instead of lib<name>.a to let people know that these are not 9193 # typical AIX shared libraries. 9194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9195 else 9196 # We preserve .a as extension for shared libraries through AIX4.2 9197 # and later when we are not doing run time linking. 9198 library_names_spec='${libname}${release}.a $libname.a' 9199 soname_spec='${libname}${release}${shared_ext}$major' 9200 fi 9201 shlibpath_var=LIBPATH 9202 fi 9203 ;; 9204 9205amigaos*) 9206 library_names_spec='$libname.ixlibrary $libname.a' 9207 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9208 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' 9209 ;; 9210 9211beos*) 9212 library_names_spec='${libname}${shared_ext}' 9213 dynamic_linker="$host_os ld.so" 9214 shlibpath_var=LIBRARY_PATH 9215 ;; 9216 9217bsdi[45]*) 9218 version_type=linux 9219 need_version=no 9220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9221 soname_spec='${libname}${release}${shared_ext}$major' 9222 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9223 shlibpath_var=LD_LIBRARY_PATH 9224 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9225 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9226 # the default ld.so.conf also contains /usr/contrib/lib and 9227 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9228 # libtool to hard-code these into programs 9229 ;; 9230 9231cygwin* | mingw* | pw32*) 9232 version_type=windows 9233 shrext_cmds=".dll" 9234 need_version=no 9235 need_lib_prefix=no 9236 9237 case $GCC,$host_os in 9238 yes,cygwin* | yes,mingw* | yes,pw32*) 9239 library_names_spec='$libname.dll.a' 9240 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9241 postinstall_cmds='base_file=`basename \${file}`~ 9242 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 9243 dldir=$destdir/`dirname \$dlpath`~ 9244 test -d \$dldir || mkdir -p \$dldir~ 9245 $install_prog $dir/$dlname \$dldir/$dlname~ 9246 chmod a+x \$dldir/$dlname' 9247 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9248 dlpath=$dir/\$dldll~ 9249 $rm \$dlpath' 9250 shlibpath_overrides_runpath=yes 9251 9252 case $host_os in 9253 cygwin*) 9254 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9255 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9256 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9257 ;; 9258 mingw*) 9259 # MinGW DLLs use traditional 'lib' prefix 9260 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9261 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9262 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 9263 # It is most probably a Windows format PATH printed by 9264 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9265 # path with ; separators, and with drive letters. We can handle the 9266 # drive letters (cygwin fileutils understands them), so leave them, 9267 # especially as we might pass files found there to a mingw objdump, 9268 # which wouldn't understand a cygwinified path. Ahh. 9269 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9270 else 9271 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9272 fi 9273 ;; 9274 pw32*) 9275 # pw32 DLLs use 'pw' prefix rather than 'lib' 9276 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9277 ;; 9278 esac 9279 ;; 9280 9281 *) 9282 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9283 ;; 9284 esac 9285 dynamic_linker='Win32 ld.exe' 9286 # FIXME: first we should search . and the directory the executable is in 9287 shlibpath_var=PATH 9288 ;; 9289 9290darwin* | rhapsody*) 9291 dynamic_linker="$host_os dyld" 9292 version_type=darwin 9293 need_lib_prefix=no 9294 need_version=no 9295 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9296 soname_spec='${libname}${release}${major}$shared_ext' 9297 shlibpath_overrides_runpath=yes 9298 shlibpath_var=DYLD_LIBRARY_PATH 9299 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9300 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 9301 if test "$GCC" = yes; then 9302 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 9303 else 9304 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 9305 fi 9306 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9307 ;; 9308 9309dgux*) 9310 version_type=linux 9311 need_lib_prefix=no 9312 need_version=no 9313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9314 soname_spec='${libname}${release}${shared_ext}$major' 9315 shlibpath_var=LD_LIBRARY_PATH 9316 ;; 9317 9318freebsd1*) 9319 dynamic_linker=no 9320 ;; 9321 9322kfreebsd*-gnu) 9323 version_type=linux 9324 need_lib_prefix=no 9325 need_version=no 9326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9327 soname_spec='${libname}${release}${shared_ext}$major' 9328 shlibpath_var=LD_LIBRARY_PATH 9329 shlibpath_overrides_runpath=no 9330 hardcode_into_libs=yes 9331 dynamic_linker='GNU ld.so' 9332 ;; 9333 9334freebsd* | dragonfly*) 9335 # DragonFly does not have aout. When/if they implement a new 9336 # versioning mechanism, adjust this. 9337 if test -x /usr/bin/objformat; then 9338 objformat=`/usr/bin/objformat` 9339 else 9340 case $host_os in 9341 freebsd[123]*) objformat=aout ;; 9342 *) objformat=elf ;; 9343 esac 9344 fi 9345 version_type=freebsd-$objformat 9346 case $version_type in 9347 freebsd-elf*) 9348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9349 need_version=no 9350 need_lib_prefix=no 9351 ;; 9352 freebsd-*) 9353 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9354 need_version=yes 9355 ;; 9356 esac 9357 shlibpath_var=LD_LIBRARY_PATH 9358 case $host_os in 9359 freebsd2*) 9360 shlibpath_overrides_runpath=yes 9361 ;; 9362 freebsd3.[01]* | freebsdelf3.[01]*) 9363 shlibpath_overrides_runpath=yes 9364 hardcode_into_libs=yes 9365 ;; 9366 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9367 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9368 shlibpath_overrides_runpath=no 9369 hardcode_into_libs=yes 9370 ;; 9371 *) # from 4.6 on, and DragonFly 9372 shlibpath_overrides_runpath=yes 9373 hardcode_into_libs=yes 9374 ;; 9375 esac 9376 ;; 9377 9378gnu*) 9379 version_type=linux 9380 need_lib_prefix=no 9381 need_version=no 9382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9383 soname_spec='${libname}${release}${shared_ext}$major' 9384 shlibpath_var=LD_LIBRARY_PATH 9385 hardcode_into_libs=yes 9386 ;; 9387 9388hpux9* | hpux10* | hpux11*) 9389 # Give a soname corresponding to the major version so that dld.sl refuses to 9390 # link against other versions. 9391 version_type=sunos 9392 need_lib_prefix=no 9393 need_version=no 9394 case $host_cpu in 9395 ia64*) 9396 shrext_cmds='.so' 9397 hardcode_into_libs=yes 9398 dynamic_linker="$host_os dld.so" 9399 shlibpath_var=LD_LIBRARY_PATH 9400 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9402 soname_spec='${libname}${release}${shared_ext}$major' 9403 if test "X$HPUX_IA64_MODE" = X32; then 9404 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9405 else 9406 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9407 fi 9408 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9409 ;; 9410 hppa*64*) 9411 shrext_cmds='.sl' 9412 hardcode_into_libs=yes 9413 dynamic_linker="$host_os dld.sl" 9414 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9415 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9417 soname_spec='${libname}${release}${shared_ext}$major' 9418 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9419 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9420 ;; 9421 *) 9422 shrext_cmds='.sl' 9423 dynamic_linker="$host_os dld.sl" 9424 shlibpath_var=SHLIB_PATH 9425 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9427 soname_spec='${libname}${release}${shared_ext}$major' 9428 ;; 9429 esac 9430 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9431 postinstall_cmds='chmod 555 $lib' 9432 ;; 9433 9434interix3*) 9435 version_type=linux 9436 need_lib_prefix=no 9437 need_version=no 9438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9439 soname_spec='${libname}${release}${shared_ext}$major' 9440 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9441 shlibpath_var=LD_LIBRARY_PATH 9442 shlibpath_overrides_runpath=no 9443 hardcode_into_libs=yes 9444 ;; 9445 9446irix5* | irix6* | nonstopux*) 9447 case $host_os in 9448 nonstopux*) version_type=nonstopux ;; 9449 *) 9450 if test "$lt_cv_prog_gnu_ld" = yes; then 9451 version_type=linux 9452 else 9453 version_type=irix 9454 fi ;; 9455 esac 9456 need_lib_prefix=no 9457 need_version=no 9458 soname_spec='${libname}${release}${shared_ext}$major' 9459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9460 case $host_os in 9461 irix5* | nonstopux*) 9462 libsuff= shlibsuff= 9463 ;; 9464 *) 9465 case $LD in # libtool.m4 will add one of these switches to LD 9466 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9467 libsuff= shlibsuff= libmagic=32-bit;; 9468 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9469 libsuff=32 shlibsuff=N32 libmagic=N32;; 9470 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9471 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9472 *) libsuff= shlibsuff= libmagic=never-match;; 9473 esac 9474 ;; 9475 esac 9476 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9477 shlibpath_overrides_runpath=no 9478 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9479 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9480 hardcode_into_libs=yes 9481 ;; 9482 9483# No shared lib support for Linux oldld, aout, or coff. 9484linux*oldld* | linux*aout* | linux*coff*) 9485 dynamic_linker=no 9486 ;; 9487 9488# This must be Linux ELF. 9489linux*) 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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9496 shlibpath_var=LD_LIBRARY_PATH 9497 shlibpath_overrides_runpath=no 9498 # This implies no fast_install, which is unacceptable. 9499 # Some rework will be needed to allow for fast_install 9500 # before this can be enabled. 9501 hardcode_into_libs=yes 9502 9503 # Append ld.so.conf contents to the search path 9504 if test -f /etc/ld.so.conf; then 9505 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/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 9506 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9507 fi 9508 9509 # We used to test for /lib/ld.so.1 and disable shared libraries on 9510 # powerpc, because MkLinux only supported shared libraries with the 9511 # GNU dynamic linker. Since this was broken with cross compilers, 9512 # most powerpc-linux boxes support dynamic linking these days and 9513 # people can always --disable-shared, the test was removed, and we 9514 # assume the GNU/Linux dynamic linker is in use. 9515 dynamic_linker='GNU/Linux ld.so' 9516 ;; 9517 9518mirbsd*) 9519 version_type=linux 9520 sys_lib_dlsearch_path_spec="/usr/lib" 9521 need_lib_prefix=no 9522 need_version=no 9523 library_names_spec='${libname}${release}${shared_ext}$versuffix2 ${libname}${shared_ext}$versuffix2' 9524 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9525 shlibpath_var=LD_LIBRARY_PATH 9526 shlibpath_overrides_runpath=yes 9527 ;; 9528 9529knetbsd*-gnu) 9530 version_type=linux 9531 need_lib_prefix=no 9532 need_version=no 9533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9534 soname_spec='${libname}${release}${shared_ext}$major' 9535 shlibpath_var=LD_LIBRARY_PATH 9536 shlibpath_overrides_runpath=no 9537 hardcode_into_libs=yes 9538 dynamic_linker='GNU ld.so' 9539 ;; 9540 9541netbsd*) 9542 version_type=sunos 9543 need_lib_prefix=no 9544 need_version=no 9545 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9547 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9548 dynamic_linker='NetBSD (a.out) ld.so' 9549 else 9550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9551 soname_spec='${libname}${release}${shared_ext}$major' 9552 dynamic_linker='NetBSD ld.elf_so' 9553 fi 9554 shlibpath_var=LD_LIBRARY_PATH 9555 shlibpath_overrides_runpath=yes 9556 hardcode_into_libs=yes 9557 ;; 9558 9559newsos6) 9560 version_type=linux 9561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9562 shlibpath_var=LD_LIBRARY_PATH 9563 shlibpath_overrides_runpath=yes 9564 ;; 9565 9566nto-qnx*) 9567 version_type=linux 9568 need_lib_prefix=no 9569 need_version=no 9570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9571 soname_spec='${libname}${release}${shared_ext}$major' 9572 shlibpath_var=LD_LIBRARY_PATH 9573 shlibpath_overrides_runpath=yes 9574 ;; 9575 9576openbsd*) 9577 version_type=linux 9578 sys_lib_dlsearch_path_spec="/usr/lib" 9579 need_lib_prefix=no 9580 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9581 case $host_os in 9582 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9583 *) need_version=no ;; 9584 esac 9585 library_names_spec='${libname}${release}${shared_ext}$versuffix2 ${libname}${shared_ext}$versuffix2' 9586 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9587 shlibpath_var=LD_LIBRARY_PATH 9588 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9589 case $host_os in 9590 openbsd2.[89] | openbsd2.[89].*) 9591 shlibpath_overrides_runpath=no 9592 ;; 9593 *) 9594 shlibpath_overrides_runpath=yes 9595 ;; 9596 esac 9597 else 9598 shlibpath_overrides_runpath=yes 9599 fi 9600 ;; 9601 9602os2*) 9603 libname_spec='$name' 9604 shrext_cmds=".dll" 9605 need_lib_prefix=no 9606 library_names_spec='$libname${shared_ext} $libname.a' 9607 dynamic_linker='OS/2 ld.exe' 9608 shlibpath_var=LIBPATH 9609 ;; 9610 9611osf3* | osf4* | osf5*) 9612 version_type=osf 9613 need_lib_prefix=no 9614 need_version=no 9615 soname_spec='${libname}${release}${shared_ext}$major' 9616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9617 shlibpath_var=LD_LIBRARY_PATH 9618 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9619 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9620 ;; 9621 9622rdos*) 9623 dynamic_linker=no 9624 ;; 9625 9626solaris*) 9627 version_type=linux 9628 need_lib_prefix=no 9629 need_version=no 9630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9631 soname_spec='${libname}${release}${shared_ext}$major' 9632 shlibpath_var=LD_LIBRARY_PATH 9633 shlibpath_overrides_runpath=yes 9634 hardcode_into_libs=yes 9635 # ldd complains unless libraries are executable 9636 postinstall_cmds='chmod +x $lib' 9637 ;; 9638 9639sunos4*) 9640 version_type=sunos 9641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9642 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9643 shlibpath_var=LD_LIBRARY_PATH 9644 shlibpath_overrides_runpath=yes 9645 if test "$with_gnu_ld" = yes; then 9646 need_lib_prefix=no 9647 fi 9648 need_version=yes 9649 ;; 9650 9651sysv4 | sysv4.3*) 9652 version_type=linux 9653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9654 soname_spec='${libname}${release}${shared_ext}$major' 9655 shlibpath_var=LD_LIBRARY_PATH 9656 case $host_vendor in 9657 sni) 9658 shlibpath_overrides_runpath=no 9659 need_lib_prefix=no 9660 export_dynamic_flag_spec='${wl}-Blargedynsym' 9661 runpath_var=LD_RUN_PATH 9662 ;; 9663 siemens) 9664 need_lib_prefix=no 9665 ;; 9666 motorola) 9667 need_lib_prefix=no 9668 need_version=no 9669 shlibpath_overrides_runpath=no 9670 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9671 ;; 9672 esac 9673 ;; 9674 9675sysv4*MP*) 9676 if test -d /usr/nec ;then 9677 version_type=linux 9678 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9679 soname_spec='$libname${shared_ext}.$major' 9680 shlibpath_var=LD_LIBRARY_PATH 9681 fi 9682 ;; 9683 9684sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9685 version_type=freebsd-elf 9686 need_lib_prefix=no 9687 need_version=no 9688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9689 soname_spec='${libname}${release}${shared_ext}$major' 9690 shlibpath_var=LD_LIBRARY_PATH 9691 hardcode_into_libs=yes 9692 if test "$with_gnu_ld" = yes; then 9693 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9694 shlibpath_overrides_runpath=no 9695 else 9696 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9697 shlibpath_overrides_runpath=yes 9698 case $host_os in 9699 sco3.2v5*) 9700 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9701 ;; 9702 esac 9703 fi 9704 sys_lib_dlsearch_path_spec='/usr/lib' 9705 ;; 9706 9707uts4*) 9708 version_type=linux 9709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9710 soname_spec='${libname}${release}${shared_ext}$major' 9711 shlibpath_var=LD_LIBRARY_PATH 9712 ;; 9713 9714*) 9715 dynamic_linker=no 9716 ;; 9717esac 9718{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9719echo "${ECHO_T}$dynamic_linker" >&6; } 9720test "$dynamic_linker" = no && can_build_shared=no 9721 9722variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9723if test "$GCC" = yes; then 9724 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9725fi 9726 9727{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9728echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 9729hardcode_action= 9730if test -n "$hardcode_libdir_flag_spec" || \ 9731 test -n "$runpath_var" || \ 9732 test "X$hardcode_automatic" = "Xyes" ; then 9733 9734 # We can hardcode non-existant directories. 9735 if test "$hardcode_direct" != no && 9736 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9737 # have to relink, otherwise we might link with an installed library 9738 # when we should be linking with a yet-to-be-installed one 9739 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9740 test "$hardcode_minus_L" != no; then 9741 # Linking always hardcodes the temporary library directory. 9742 hardcode_action=relink 9743 else 9744 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9745 hardcode_action=immediate 9746 fi 9747else 9748 # We cannot hardcode anything, or else we can only hardcode existing 9749 # directories. 9750 hardcode_action=unsupported 9751fi 9752{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 9753echo "${ECHO_T}$hardcode_action" >&6; } 9754 9755if test "$hardcode_action" = relink; then 9756 # Fast installation is not supported 9757 enable_fast_install=no 9758elif test "$shlibpath_overrides_runpath" = yes || 9759 test "$enable_shared" = no; then 9760 # Fast installation is not necessary 9761 enable_fast_install=needless 9762fi 9763 9764striplib= 9765old_striplib= 9766{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9767echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } 9768if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9769 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9770 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9771 { echo "$as_me:$LINENO: result: yes" >&5 9772echo "${ECHO_T}yes" >&6; } 9773else 9774# FIXME - insert some real tests, host_os isn't really good enough 9775 case $host_os in 9776 darwin*) 9777 if test -n "$STRIP" ; then 9778 striplib="$STRIP -x" 9779 { echo "$as_me:$LINENO: result: yes" >&5 9780echo "${ECHO_T}yes" >&6; } 9781 else 9782 { echo "$as_me:$LINENO: result: no" >&5 9783echo "${ECHO_T}no" >&6; } 9784 fi 9785 ;; 9786 *) 9787 { echo "$as_me:$LINENO: result: no" >&5 9788echo "${ECHO_T}no" >&6; } 9789 ;; 9790 esac 9791fi 9792 9793if test "x$enable_dlopen" != xyes; then 9794 enable_dlopen=unknown 9795 enable_dlopen_self=unknown 9796 enable_dlopen_self_static=unknown 9797else 9798 lt_cv_dlopen=no 9799 lt_cv_dlopen_libs= 9800 9801 case $host_os in 9802 beos*) 9803 lt_cv_dlopen="load_add_on" 9804 lt_cv_dlopen_libs= 9805 lt_cv_dlopen_self=yes 9806 ;; 9807 9808 mingw* | pw32*) 9809 lt_cv_dlopen="LoadLibrary" 9810 lt_cv_dlopen_libs= 9811 ;; 9812 9813 cygwin*) 9814 lt_cv_dlopen="dlopen" 9815 lt_cv_dlopen_libs= 9816 ;; 9817 9818 darwin*) 9819 # if libdl is installed we need to link against it 9820 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9821echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9822if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9823 echo $ECHO_N "(cached) $ECHO_C" >&6 9824else 9825 ac_check_lib_save_LIBS=$LIBS 9826LIBS="-ldl $LIBS" 9827cat >conftest.$ac_ext <<_ACEOF 9828/* confdefs.h. */ 9829_ACEOF 9830cat confdefs.h >>conftest.$ac_ext 9831cat >>conftest.$ac_ext <<_ACEOF 9832/* end confdefs.h. */ 9833 9834/* Override any GCC internal prototype to avoid an error. 9835 Use char because int might match the return type of a GCC 9836 builtin and then its argument prototype would still apply. */ 9837#ifdef __cplusplus 9838extern "C" 9839#endif 9840char dlopen (); 9841int 9842main () 9843{ 9844return dlopen (); 9845 ; 9846 return 0; 9847} 9848_ACEOF 9849rm -f conftest.$ac_objext conftest$ac_exeext 9850if { (ac_try="$ac_link" 9851case "(($ac_try" in 9852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9853 *) ac_try_echo=$ac_try;; 9854esac 9855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9856 (eval "$ac_link") 2>conftest.er1 9857 ac_status=$? 9858 grep -v '^ *+' conftest.er1 >conftest.err 9859 rm -f conftest.er1 9860 cat conftest.err >&5 9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9862 (exit $ac_status); } && 9863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9864 { (case "(($ac_try" in 9865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9866 *) ac_try_echo=$ac_try;; 9867esac 9868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9869 (eval "$ac_try") 2>&5 9870 ac_status=$? 9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9872 (exit $ac_status); }; } && 9873 { ac_try='test -s conftest$ac_exeext' 9874 { (case "(($ac_try" in 9875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9876 *) ac_try_echo=$ac_try;; 9877esac 9878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9879 (eval "$ac_try") 2>&5 9880 ac_status=$? 9881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9882 (exit $ac_status); }; }; then 9883 ac_cv_lib_dl_dlopen=yes 9884else 9885 echo "$as_me: failed program was:" >&5 9886sed 's/^/| /' conftest.$ac_ext >&5 9887 9888 ac_cv_lib_dl_dlopen=no 9889fi 9890 9891rm -f core conftest.err conftest.$ac_objext \ 9892 conftest$ac_exeext conftest.$ac_ext 9893LIBS=$ac_check_lib_save_LIBS 9894fi 9895{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9896echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9897if test $ac_cv_lib_dl_dlopen = yes; then 9898 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9899else 9900 9901 lt_cv_dlopen="dyld" 9902 lt_cv_dlopen_libs= 9903 lt_cv_dlopen_self=yes 9904 9905fi 9906 9907 ;; 9908 9909 *) 9910 { echo "$as_me:$LINENO: checking for shl_load" >&5 9911echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 9912if test "${ac_cv_func_shl_load+set}" = set; then 9913 echo $ECHO_N "(cached) $ECHO_C" >&6 9914else 9915 cat >conftest.$ac_ext <<_ACEOF 9916/* confdefs.h. */ 9917_ACEOF 9918cat confdefs.h >>conftest.$ac_ext 9919cat >>conftest.$ac_ext <<_ACEOF 9920/* end confdefs.h. */ 9921/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9922 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9923#define shl_load innocuous_shl_load 9924 9925/* System header to define __stub macros and hopefully few prototypes, 9926 which can conflict with char shl_load (); below. 9927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9928 <limits.h> exists even on freestanding compilers. */ 9929 9930#ifdef __STDC__ 9931# include <limits.h> 9932#else 9933# include <assert.h> 9934#endif 9935 9936#undef shl_load 9937 9938/* Override any GCC internal prototype to avoid an error. 9939 Use char because int might match the return type of a GCC 9940 builtin and then its argument prototype would still apply. */ 9941#ifdef __cplusplus 9942extern "C" 9943#endif 9944char shl_load (); 9945/* The GNU C library defines this for functions which it implements 9946 to always fail with ENOSYS. Some functions are actually named 9947 something starting with __ and the normal name is an alias. */ 9948#if defined __stub_shl_load || defined __stub___shl_load 9949choke me 9950#endif 9951 9952int 9953main () 9954{ 9955return shl_load (); 9956 ; 9957 return 0; 9958} 9959_ACEOF 9960rm -f conftest.$ac_objext conftest$ac_exeext 9961if { (ac_try="$ac_link" 9962case "(($ac_try" in 9963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9964 *) ac_try_echo=$ac_try;; 9965esac 9966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9967 (eval "$ac_link") 2>conftest.er1 9968 ac_status=$? 9969 grep -v '^ *+' conftest.er1 >conftest.err 9970 rm -f conftest.er1 9971 cat conftest.err >&5 9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9973 (exit $ac_status); } && 9974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9975 { (case "(($ac_try" in 9976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9977 *) ac_try_echo=$ac_try;; 9978esac 9979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9980 (eval "$ac_try") 2>&5 9981 ac_status=$? 9982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9983 (exit $ac_status); }; } && 9984 { ac_try='test -s conftest$ac_exeext' 9985 { (case "(($ac_try" in 9986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9987 *) ac_try_echo=$ac_try;; 9988esac 9989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9990 (eval "$ac_try") 2>&5 9991 ac_status=$? 9992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9993 (exit $ac_status); }; }; then 9994 ac_cv_func_shl_load=yes 9995else 9996 echo "$as_me: failed program was:" >&5 9997sed 's/^/| /' conftest.$ac_ext >&5 9998 9999 ac_cv_func_shl_load=no 10000fi 10001 10002rm -f core conftest.err conftest.$ac_objext \ 10003 conftest$ac_exeext conftest.$ac_ext 10004fi 10005{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 10006echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 10007if test $ac_cv_func_shl_load = yes; then 10008 lt_cv_dlopen="shl_load" 10009else 10010 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 10011echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 10012if test "${ac_cv_lib_dld_shl_load+set}" = set; then 10013 echo $ECHO_N "(cached) $ECHO_C" >&6 10014else 10015 ac_check_lib_save_LIBS=$LIBS 10016LIBS="-ldld $LIBS" 10017cat >conftest.$ac_ext <<_ACEOF 10018/* confdefs.h. */ 10019_ACEOF 10020cat confdefs.h >>conftest.$ac_ext 10021cat >>conftest.$ac_ext <<_ACEOF 10022/* end confdefs.h. */ 10023 10024/* Override any GCC internal prototype to avoid an error. 10025 Use char because int might match the return type of a GCC 10026 builtin and then its argument prototype would still apply. */ 10027#ifdef __cplusplus 10028extern "C" 10029#endif 10030char shl_load (); 10031int 10032main () 10033{ 10034return shl_load (); 10035 ; 10036 return 0; 10037} 10038_ACEOF 10039rm -f conftest.$ac_objext conftest$ac_exeext 10040if { (ac_try="$ac_link" 10041case "(($ac_try" in 10042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10043 *) ac_try_echo=$ac_try;; 10044esac 10045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10046 (eval "$ac_link") 2>conftest.er1 10047 ac_status=$? 10048 grep -v '^ *+' conftest.er1 >conftest.err 10049 rm -f conftest.er1 10050 cat conftest.err >&5 10051 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10052 (exit $ac_status); } && 10053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10054 { (case "(($ac_try" in 10055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10056 *) ac_try_echo=$ac_try;; 10057esac 10058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10059 (eval "$ac_try") 2>&5 10060 ac_status=$? 10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10062 (exit $ac_status); }; } && 10063 { ac_try='test -s conftest$ac_exeext' 10064 { (case "(($ac_try" in 10065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10066 *) ac_try_echo=$ac_try;; 10067esac 10068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10069 (eval "$ac_try") 2>&5 10070 ac_status=$? 10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10072 (exit $ac_status); }; }; then 10073 ac_cv_lib_dld_shl_load=yes 10074else 10075 echo "$as_me: failed program was:" >&5 10076sed 's/^/| /' conftest.$ac_ext >&5 10077 10078 ac_cv_lib_dld_shl_load=no 10079fi 10080 10081rm -f core conftest.err conftest.$ac_objext \ 10082 conftest$ac_exeext conftest.$ac_ext 10083LIBS=$ac_check_lib_save_LIBS 10084fi 10085{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 10086echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 10087if test $ac_cv_lib_dld_shl_load = yes; then 10088 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 10089else 10090 { echo "$as_me:$LINENO: checking for dlopen" >&5 10091echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 10092if test "${ac_cv_func_dlopen+set}" = set; then 10093 echo $ECHO_N "(cached) $ECHO_C" >&6 10094else 10095 cat >conftest.$ac_ext <<_ACEOF 10096/* confdefs.h. */ 10097_ACEOF 10098cat confdefs.h >>conftest.$ac_ext 10099cat >>conftest.$ac_ext <<_ACEOF 10100/* end confdefs.h. */ 10101/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 10102 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10103#define dlopen innocuous_dlopen 10104 10105/* System header to define __stub macros and hopefully few prototypes, 10106 which can conflict with char dlopen (); below. 10107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10108 <limits.h> exists even on freestanding compilers. */ 10109 10110#ifdef __STDC__ 10111# include <limits.h> 10112#else 10113# include <assert.h> 10114#endif 10115 10116#undef dlopen 10117 10118/* Override any GCC internal prototype to avoid an error. 10119 Use char because int might match the return type of a GCC 10120 builtin and then its argument prototype would still apply. */ 10121#ifdef __cplusplus 10122extern "C" 10123#endif 10124char dlopen (); 10125/* The GNU C library defines this for functions which it implements 10126 to always fail with ENOSYS. Some functions are actually named 10127 something starting with __ and the normal name is an alias. */ 10128#if defined __stub_dlopen || defined __stub___dlopen 10129choke me 10130#endif 10131 10132int 10133main () 10134{ 10135return dlopen (); 10136 ; 10137 return 0; 10138} 10139_ACEOF 10140rm -f conftest.$ac_objext conftest$ac_exeext 10141if { (ac_try="$ac_link" 10142case "(($ac_try" in 10143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10144 *) ac_try_echo=$ac_try;; 10145esac 10146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10147 (eval "$ac_link") 2>conftest.er1 10148 ac_status=$? 10149 grep -v '^ *+' conftest.er1 >conftest.err 10150 rm -f conftest.er1 10151 cat conftest.err >&5 10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10153 (exit $ac_status); } && 10154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10155 { (case "(($ac_try" in 10156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10157 *) ac_try_echo=$ac_try;; 10158esac 10159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10160 (eval "$ac_try") 2>&5 10161 ac_status=$? 10162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10163 (exit $ac_status); }; } && 10164 { ac_try='test -s conftest$ac_exeext' 10165 { (case "(($ac_try" in 10166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10167 *) ac_try_echo=$ac_try;; 10168esac 10169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10170 (eval "$ac_try") 2>&5 10171 ac_status=$? 10172 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10173 (exit $ac_status); }; }; then 10174 ac_cv_func_dlopen=yes 10175else 10176 echo "$as_me: failed program was:" >&5 10177sed 's/^/| /' conftest.$ac_ext >&5 10178 10179 ac_cv_func_dlopen=no 10180fi 10181 10182rm -f core conftest.err conftest.$ac_objext \ 10183 conftest$ac_exeext conftest.$ac_ext 10184fi 10185{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 10186echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 10187if test $ac_cv_func_dlopen = yes; then 10188 lt_cv_dlopen="dlopen" 10189else 10190 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10191echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 10192if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10193 echo $ECHO_N "(cached) $ECHO_C" >&6 10194else 10195 ac_check_lib_save_LIBS=$LIBS 10196LIBS="-ldl $LIBS" 10197cat >conftest.$ac_ext <<_ACEOF 10198/* confdefs.h. */ 10199_ACEOF 10200cat confdefs.h >>conftest.$ac_ext 10201cat >>conftest.$ac_ext <<_ACEOF 10202/* end confdefs.h. */ 10203 10204/* Override any GCC internal prototype to avoid an error. 10205 Use char because int might match the return type of a GCC 10206 builtin and then its argument prototype would still apply. */ 10207#ifdef __cplusplus 10208extern "C" 10209#endif 10210char dlopen (); 10211int 10212main () 10213{ 10214return dlopen (); 10215 ; 10216 return 0; 10217} 10218_ACEOF 10219rm -f conftest.$ac_objext conftest$ac_exeext 10220if { (ac_try="$ac_link" 10221case "(($ac_try" in 10222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10223 *) ac_try_echo=$ac_try;; 10224esac 10225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10226 (eval "$ac_link") 2>conftest.er1 10227 ac_status=$? 10228 grep -v '^ *+' conftest.er1 >conftest.err 10229 rm -f conftest.er1 10230 cat conftest.err >&5 10231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10232 (exit $ac_status); } && 10233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10234 { (case "(($ac_try" in 10235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10236 *) ac_try_echo=$ac_try;; 10237esac 10238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10239 (eval "$ac_try") 2>&5 10240 ac_status=$? 10241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10242 (exit $ac_status); }; } && 10243 { ac_try='test -s conftest$ac_exeext' 10244 { (case "(($ac_try" in 10245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10246 *) ac_try_echo=$ac_try;; 10247esac 10248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10249 (eval "$ac_try") 2>&5 10250 ac_status=$? 10251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10252 (exit $ac_status); }; }; then 10253 ac_cv_lib_dl_dlopen=yes 10254else 10255 echo "$as_me: failed program was:" >&5 10256sed 's/^/| /' conftest.$ac_ext >&5 10257 10258 ac_cv_lib_dl_dlopen=no 10259fi 10260 10261rm -f core conftest.err conftest.$ac_objext \ 10262 conftest$ac_exeext conftest.$ac_ext 10263LIBS=$ac_check_lib_save_LIBS 10264fi 10265{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10266echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 10267if test $ac_cv_lib_dl_dlopen = yes; then 10268 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10269else 10270 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10271echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 10272if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10273 echo $ECHO_N "(cached) $ECHO_C" >&6 10274else 10275 ac_check_lib_save_LIBS=$LIBS 10276LIBS="-lsvld $LIBS" 10277cat >conftest.$ac_ext <<_ACEOF 10278/* confdefs.h. */ 10279_ACEOF 10280cat confdefs.h >>conftest.$ac_ext 10281cat >>conftest.$ac_ext <<_ACEOF 10282/* end confdefs.h. */ 10283 10284/* Override any GCC internal prototype to avoid an error. 10285 Use char because int might match the return type of a GCC 10286 builtin and then its argument prototype would still apply. */ 10287#ifdef __cplusplus 10288extern "C" 10289#endif 10290char dlopen (); 10291int 10292main () 10293{ 10294return dlopen (); 10295 ; 10296 return 0; 10297} 10298_ACEOF 10299rm -f conftest.$ac_objext conftest$ac_exeext 10300if { (ac_try="$ac_link" 10301case "(($ac_try" in 10302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10303 *) ac_try_echo=$ac_try;; 10304esac 10305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10306 (eval "$ac_link") 2>conftest.er1 10307 ac_status=$? 10308 grep -v '^ *+' conftest.er1 >conftest.err 10309 rm -f conftest.er1 10310 cat conftest.err >&5 10311 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10312 (exit $ac_status); } && 10313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10314 { (case "(($ac_try" in 10315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10316 *) ac_try_echo=$ac_try;; 10317esac 10318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10319 (eval "$ac_try") 2>&5 10320 ac_status=$? 10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10322 (exit $ac_status); }; } && 10323 { ac_try='test -s conftest$ac_exeext' 10324 { (case "(($ac_try" in 10325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10326 *) ac_try_echo=$ac_try;; 10327esac 10328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10329 (eval "$ac_try") 2>&5 10330 ac_status=$? 10331 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10332 (exit $ac_status); }; }; then 10333 ac_cv_lib_svld_dlopen=yes 10334else 10335 echo "$as_me: failed program was:" >&5 10336sed 's/^/| /' conftest.$ac_ext >&5 10337 10338 ac_cv_lib_svld_dlopen=no 10339fi 10340 10341rm -f core conftest.err conftest.$ac_objext \ 10342 conftest$ac_exeext conftest.$ac_ext 10343LIBS=$ac_check_lib_save_LIBS 10344fi 10345{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10346echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 10347if test $ac_cv_lib_svld_dlopen = yes; then 10348 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10349else 10350 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10351echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 10352if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10353 echo $ECHO_N "(cached) $ECHO_C" >&6 10354else 10355 ac_check_lib_save_LIBS=$LIBS 10356LIBS="-ldld $LIBS" 10357cat >conftest.$ac_ext <<_ACEOF 10358/* confdefs.h. */ 10359_ACEOF 10360cat confdefs.h >>conftest.$ac_ext 10361cat >>conftest.$ac_ext <<_ACEOF 10362/* end confdefs.h. */ 10363 10364/* Override any GCC internal prototype to avoid an error. 10365 Use char because int might match the return type of a GCC 10366 builtin and then its argument prototype would still apply. */ 10367#ifdef __cplusplus 10368extern "C" 10369#endif 10370char dld_link (); 10371int 10372main () 10373{ 10374return dld_link (); 10375 ; 10376 return 0; 10377} 10378_ACEOF 10379rm -f conftest.$ac_objext conftest$ac_exeext 10380if { (ac_try="$ac_link" 10381case "(($ac_try" in 10382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10383 *) ac_try_echo=$ac_try;; 10384esac 10385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10386 (eval "$ac_link") 2>conftest.er1 10387 ac_status=$? 10388 grep -v '^ *+' conftest.er1 >conftest.err 10389 rm -f conftest.er1 10390 cat conftest.err >&5 10391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10392 (exit $ac_status); } && 10393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10394 { (case "(($ac_try" in 10395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10396 *) ac_try_echo=$ac_try;; 10397esac 10398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10399 (eval "$ac_try") 2>&5 10400 ac_status=$? 10401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10402 (exit $ac_status); }; } && 10403 { ac_try='test -s conftest$ac_exeext' 10404 { (case "(($ac_try" in 10405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10406 *) ac_try_echo=$ac_try;; 10407esac 10408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10409 (eval "$ac_try") 2>&5 10410 ac_status=$? 10411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10412 (exit $ac_status); }; }; then 10413 ac_cv_lib_dld_dld_link=yes 10414else 10415 echo "$as_me: failed program was:" >&5 10416sed 's/^/| /' conftest.$ac_ext >&5 10417 10418 ac_cv_lib_dld_dld_link=no 10419fi 10420 10421rm -f core conftest.err conftest.$ac_objext \ 10422 conftest$ac_exeext conftest.$ac_ext 10423LIBS=$ac_check_lib_save_LIBS 10424fi 10425{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10426echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 10427if test $ac_cv_lib_dld_dld_link = yes; then 10428 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 10429fi 10430 10431 10432fi 10433 10434 10435fi 10436 10437 10438fi 10439 10440 10441fi 10442 10443 10444fi 10445 10446 ;; 10447 esac 10448 10449 if test "x$lt_cv_dlopen" != xno; then 10450 enable_dlopen=yes 10451 else 10452 enable_dlopen=no 10453 fi 10454 10455 case $lt_cv_dlopen in 10456 dlopen) 10457 save_CPPFLAGS="$CPPFLAGS" 10458 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10459 10460 save_LDFLAGS="$LDFLAGS" 10461 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10462 10463 save_LIBS="$LIBS" 10464 LIBS="$lt_cv_dlopen_libs $LIBS" 10465 10466 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10467echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } 10468if test "${lt_cv_dlopen_self+set}" = set; then 10469 echo $ECHO_N "(cached) $ECHO_C" >&6 10470else 10471 if test "$cross_compiling" = yes; then : 10472 lt_cv_dlopen_self=cross 10473else 10474 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10475 lt_status=$lt_dlunknown 10476 cat > conftest.$ac_ext <<EOF 10477#line 10477 "configure" 10478#include "confdefs.h" 10479 10480#if HAVE_DLFCN_H 10481#include <dlfcn.h> 10482#endif 10483 10484#include <stdio.h> 10485 10486#ifdef RTLD_GLOBAL 10487# define LT_DLGLOBAL RTLD_GLOBAL 10488#else 10489# ifdef DL_GLOBAL 10490# define LT_DLGLOBAL DL_GLOBAL 10491# else 10492# define LT_DLGLOBAL 0 10493# endif 10494#endif 10495 10496/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10497 find out it does not work in some platform. */ 10498#ifndef LT_DLLAZY_OR_NOW 10499# ifdef RTLD_LAZY 10500# define LT_DLLAZY_OR_NOW RTLD_LAZY 10501# else 10502# ifdef DL_LAZY 10503# define LT_DLLAZY_OR_NOW DL_LAZY 10504# else 10505# ifdef RTLD_NOW 10506# define LT_DLLAZY_OR_NOW RTLD_NOW 10507# else 10508# ifdef DL_NOW 10509# define LT_DLLAZY_OR_NOW DL_NOW 10510# else 10511# define LT_DLLAZY_OR_NOW 0 10512# endif 10513# endif 10514# endif 10515# endif 10516#endif 10517 10518#ifdef __cplusplus 10519extern "C" void exit (int); 10520#endif 10521 10522void fnord() { int i=42;} 10523int main () 10524{ 10525 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10526 int status = $lt_dlunknown; 10527 10528 if (self) 10529 { 10530 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10531 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10532 /* dlclose (self); */ 10533 } 10534 else 10535 puts (dlerror ()); 10536 10537 exit (status); 10538} 10539EOF 10540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10541 (eval $ac_link) 2>&5 10542 ac_status=$? 10543 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10544 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10545 (./conftest; exit; ) >&5 2>/dev/null 10546 lt_status=$? 10547 case x$lt_status in 10548 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10549 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10550 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10551 esac 10552 else : 10553 # compilation failed 10554 lt_cv_dlopen_self=no 10555 fi 10556fi 10557rm -fr conftest* 10558 10559 10560fi 10561{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10562echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } 10563 10564 if test "x$lt_cv_dlopen_self" = xyes; then 10565 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10566 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10567echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } 10568if test "${lt_cv_dlopen_self_static+set}" = set; then 10569 echo $ECHO_N "(cached) $ECHO_C" >&6 10570else 10571 if test "$cross_compiling" = yes; then : 10572 lt_cv_dlopen_self_static=cross 10573else 10574 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10575 lt_status=$lt_dlunknown 10576 cat > conftest.$ac_ext <<EOF 10577#line 10577 "configure" 10578#include "confdefs.h" 10579 10580#if HAVE_DLFCN_H 10581#include <dlfcn.h> 10582#endif 10583 10584#include <stdio.h> 10585 10586#ifdef RTLD_GLOBAL 10587# define LT_DLGLOBAL RTLD_GLOBAL 10588#else 10589# ifdef DL_GLOBAL 10590# define LT_DLGLOBAL DL_GLOBAL 10591# else 10592# define LT_DLGLOBAL 0 10593# endif 10594#endif 10595 10596/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10597 find out it does not work in some platform. */ 10598#ifndef LT_DLLAZY_OR_NOW 10599# ifdef RTLD_LAZY 10600# define LT_DLLAZY_OR_NOW RTLD_LAZY 10601# else 10602# ifdef DL_LAZY 10603# define LT_DLLAZY_OR_NOW DL_LAZY 10604# else 10605# ifdef RTLD_NOW 10606# define LT_DLLAZY_OR_NOW RTLD_NOW 10607# else 10608# ifdef DL_NOW 10609# define LT_DLLAZY_OR_NOW DL_NOW 10610# else 10611# define LT_DLLAZY_OR_NOW 0 10612# endif 10613# endif 10614# endif 10615# endif 10616#endif 10617 10618#ifdef __cplusplus 10619extern "C" void exit (int); 10620#endif 10621 10622void fnord() { int i=42;} 10623int main () 10624{ 10625 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10626 int status = $lt_dlunknown; 10627 10628 if (self) 10629 { 10630 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10631 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10632 /* dlclose (self); */ 10633 } 10634 else 10635 puts (dlerror ()); 10636 10637 exit (status); 10638} 10639EOF 10640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10641 (eval $ac_link) 2>&5 10642 ac_status=$? 10643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10644 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10645 (./conftest; exit; ) >&5 2>/dev/null 10646 lt_status=$? 10647 case x$lt_status in 10648 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10649 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10650 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10651 esac 10652 else : 10653 # compilation failed 10654 lt_cv_dlopen_self_static=no 10655 fi 10656fi 10657rm -fr conftest* 10658 10659 10660fi 10661{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10662echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } 10663 fi 10664 10665 CPPFLAGS="$save_CPPFLAGS" 10666 LDFLAGS="$save_LDFLAGS" 10667 LIBS="$save_LIBS" 10668 ;; 10669 esac 10670 10671 case $lt_cv_dlopen_self in 10672 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10673 *) enable_dlopen_self=unknown ;; 10674 esac 10675 10676 case $lt_cv_dlopen_self_static in 10677 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10678 *) enable_dlopen_self_static=unknown ;; 10679 esac 10680fi 10681 10682 10683# Report which library types will actually be built 10684{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10685echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 10686{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 10687echo "${ECHO_T}$can_build_shared" >&6; } 10688 10689{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10690echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 10691test "$can_build_shared" = "no" && enable_shared=no 10692 10693# On AIX, shared libraries and static libraries use the same namespace, and 10694# are all built from PIC. 10695case $host_os in 10696aix3*) 10697 test "$enable_shared" = yes && enable_static=no 10698 if test -n "$RANLIB"; then 10699 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10700 postinstall_cmds='$RANLIB $lib' 10701 fi 10702 ;; 10703 10704aix4* | aix5*) 10705 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10706 test "$enable_shared" = yes && enable_static=no 10707 fi 10708 ;; 10709esac 10710{ echo "$as_me:$LINENO: result: $enable_shared" >&5 10711echo "${ECHO_T}$enable_shared" >&6; } 10712 10713{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10714echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 10715# Make sure either enable_shared or enable_static is yes. 10716test "$enable_shared" = yes || enable_static=yes 10717{ echo "$as_me:$LINENO: result: $enable_static" >&5 10718echo "${ECHO_T}$enable_static" >&6; } 10719 10720# The else clause should only fire when bootstrapping the 10721# libtool distribution, otherwise you forgot to ship ltmain.sh 10722# with your package, and you will get complaints that there are 10723# no rules to generate ltmain.sh. 10724if test -f "$ltmain"; then 10725 # See if we are running on zsh, and set the options which allow our commands through 10726 # without removal of \ escapes. 10727 if test -n "${ZSH_VERSION+set}" ; then 10728 setopt NO_GLOB_SUBST 10729 fi 10730 # Now quote all the things that may contain metacharacters while being 10731 # careful not to overquote the AC_SUBSTed values. We take copies of the 10732 # variables and quote the copies for generation of the libtool script. 10733 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 10734 SED SHELL STRIP \ 10735 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10736 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10737 deplibs_check_method reload_flag reload_cmds need_locks \ 10738 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10739 lt_cv_sys_global_symbol_to_c_name_address \ 10740 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10741 old_postinstall_cmds old_postuninstall_cmds \ 10742 compiler \ 10743 CC \ 10744 LD \ 10745 lt_prog_compiler_wl \ 10746 lt_prog_compiler_pic \ 10747 lt_prog_compiler_static \ 10748 lt_prog_compiler_no_builtin_flag \ 10749 export_dynamic_flag_spec \ 10750 thread_safe_flag_spec \ 10751 whole_archive_flag_spec \ 10752 enable_shared_with_static_runtimes \ 10753 old_archive_cmds \ 10754 old_archive_from_new_cmds \ 10755 predep_objects \ 10756 postdep_objects \ 10757 predeps \ 10758 postdeps \ 10759 compiler_lib_search_path \ 10760 archive_cmds \ 10761 archive_expsym_cmds \ 10762 postinstall_cmds \ 10763 postuninstall_cmds \ 10764 old_archive_from_expsyms_cmds \ 10765 allow_undefined_flag \ 10766 no_undefined_flag \ 10767 export_symbols_cmds \ 10768 hardcode_libdir_flag_spec \ 10769 hardcode_libdir_flag_spec_ld \ 10770 hardcode_libdir_separator \ 10771 hardcode_automatic \ 10772 module_cmds \ 10773 module_expsym_cmds \ 10774 lt_cv_prog_compiler_c_o \ 10775 exclude_expsyms \ 10776 include_expsyms; do 10777 10778 case $var in 10779 old_archive_cmds | \ 10780 old_archive_from_new_cmds | \ 10781 archive_cmds | \ 10782 archive_expsym_cmds | \ 10783 module_cmds | \ 10784 module_expsym_cmds | \ 10785 old_archive_from_expsyms_cmds | \ 10786 export_symbols_cmds | \ 10787 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10788 postinstall_cmds | postuninstall_cmds | \ 10789 old_postinstall_cmds | old_postuninstall_cmds | \ 10790 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10791 # Double-quote double-evaled strings. 10792 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10793 ;; 10794 *) 10795 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10796 ;; 10797 esac 10798 done 10799 10800 case $lt_echo in 10801 *'\$0 --fallback-echo"') 10802 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10803 ;; 10804 esac 10805 10806cfgfile="${ofile}T" 10807 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10808 $rm -f "$cfgfile" 10809 echo "$as_me:10809: creating $ofile" >&5 10810 echo "$as_me: creating $ofile" >&6 10811 10812 cat <<__EOF__ >> "$cfgfile" 10813#! $SHELL 10814 10815# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10816# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10817# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10818# 10819# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 10820# Free Software Foundation, Inc. 10821# 10822# This file is part of MirLibtool, by The MirOS Project. 10823# It is derived from GNU Libtool: 10824# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10825# 10826# This program is free software; you can redistribute it and/or modify 10827# it under the terms of the GNU General Public License as published by 10828# the Free Software Foundation; either version 2 of the License, or 10829# (at your option) any later version. 10830# 10831# This program is distributed in the hope that it will be useful, but 10832# WITHOUT ANY WARRANTY; without even the implied warranty of 10833# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10834# General Public License for more details. 10835# 10836# You should have received a copy of the GNU General Public License 10837# along with this program; if not, write to the Free Software 10838# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10839# 10840# As a special exception to the GNU General Public License, if you 10841# distribute this file as part of a program that contains a 10842# configuration script generated by Autoconf, you may include it under 10843# the same distribution terms that you use for the rest of that program. 10844 10845# A sed program that does not truncate output. 10846SED=$lt_SED 10847 10848# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10849Xsed="$SED -e 1s/^X//" 10850 10851# The HP-UX ksh and POSIX shell print the target directory to stdout 10852# if CDPATH is set. 10853(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10854 10855# The names of the tagged configurations supported by this script. 10856available_tags= 10857 10858# ### BEGIN LIBTOOL CONFIG 10859 10860# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10861 10862# Shell to use when invoking shell scripts. 10863SHELL=$lt_SHELL 10864 10865# Whether or not to build shared libraries. 10866build_libtool_libs=$enable_shared 10867 10868# Whether or not to build static libraries. 10869build_old_libs=$enable_static 10870 10871# Whether or not to add -lc for building shared libraries. 10872build_libtool_need_lc=$archive_cmds_need_lc 10873 10874# Whether or not to disallow shared libs when runtime libs are static 10875allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10876 10877# Whether or not to optimize for fast installation. 10878fast_install=$enable_fast_install 10879 10880# The host system. 10881host_alias=$host_alias 10882host=$host 10883host_os=$host_os 10884 10885# The build system. 10886build_alias=$build_alias 10887build=$build 10888build_os=$build_os 10889 10890# An echo program that does not interpret backslashes. 10891echo=$lt_echo 10892 10893# The archiver. 10894AR=$lt_AR 10895AR_FLAGS=$lt_AR_FLAGS 10896 10897# A C compiler. 10898LTCC=$lt_LTCC 10899 10900# LTCC compiler flags. 10901LTCFLAGS=$lt_LTCFLAGS 10902 10903# A language-specific compiler. 10904CC=$lt_compiler 10905 10906# Is the compiler the GNU C compiler? 10907with_gcc=$GCC 10908 10909# An ERE matcher. 10910EGREP=$lt_EGREP 10911 10912# The linker used to build libraries. 10913LD=$lt_LD 10914 10915# Whether we need hard or soft links. 10916LN_S=$lt_LN_S 10917 10918# A BSD-compatible nm program. 10919NM=$lt_NM 10920 10921# A symbol stripping program 10922STRIP=$lt_STRIP 10923 10924# Used to examine libraries when file_magic_cmd begins "file" 10925MAGIC_CMD=$MAGIC_CMD 10926 10927# Used on cygwin: DLL creation program. 10928DLLTOOL="$DLLTOOL" 10929 10930# Used on cygwin: object dumper. 10931OBJDUMP="$OBJDUMP" 10932 10933# Used on cygwin: assembler. 10934AS="$AS" 10935 10936# The name of the directory that contains temporary libtool files. 10937objdir=$objdir 10938 10939# How to create reloadable object files. 10940reload_flag=$lt_reload_flag 10941reload_cmds=$lt_reload_cmds 10942 10943# How to pass a linker flag through the compiler. 10944wl=$lt_lt_prog_compiler_wl 10945 10946# Object file suffix (normally "o"). 10947objext="$ac_objext" 10948 10949# Old archive suffix (normally "a"). 10950libext="$libext" 10951 10952# Shared library suffix (normally ".so"). 10953shrext_cmds='$shrext_cmds' 10954 10955# Executable file suffix (normally ""). 10956exeext="$exeext" 10957 10958# Additional compiler flags for building library objects. 10959pic_flag=$lt_lt_prog_compiler_pic 10960pic_mode=$pic_mode 10961 10962# What is the maximum length of a command? 10963max_cmd_len=$lt_cv_sys_max_cmd_len 10964 10965# Does compiler simultaneously support -c and -o options? 10966compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10967 10968# Must we lock files when doing compilation? 10969need_locks=$lt_need_locks 10970 10971# Do we need the lib prefix for modules? 10972need_lib_prefix=$need_lib_prefix 10973 10974# Do we need a version for libraries? 10975need_version=$need_version 10976 10977# Whether dlopen is supported. 10978dlopen_support=$enable_dlopen 10979 10980# Whether dlopen of programs is supported. 10981dlopen_self=$enable_dlopen_self 10982 10983# Whether dlopen of statically linked programs is supported. 10984dlopen_self_static=$enable_dlopen_self_static 10985 10986# Compiler flag to prevent dynamic linking. 10987link_static_flag=$lt_lt_prog_compiler_static 10988 10989# Compiler flag to turn off builtin functions. 10990no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10991 10992# Compiler flag to allow reflexive dlopens. 10993export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10994 10995# Compiler flag to generate shared objects directly from archives. 10996whole_archive_flag_spec=$lt_whole_archive_flag_spec 10997 10998# Compiler flag to generate thread-safe objects. 10999thread_safe_flag_spec=$lt_thread_safe_flag_spec 11000 11001# Library versioning type. 11002version_type=$version_type 11003 11004# Format of library name prefix. 11005libname_spec=$lt_libname_spec 11006 11007# List of archive names. First name is the real one, the rest are links. 11008# The last name is the one that the linker finds with -lNAME. 11009library_names_spec=$lt_library_names_spec 11010 11011# The coded name of the library, if different from the real name. 11012soname_spec=$lt_soname_spec 11013 11014# Commands used to build and install an old-style archive. 11015RANLIB=$lt_RANLIB 11016old_archive_cmds=$lt_old_archive_cmds 11017old_postinstall_cmds=$lt_old_postinstall_cmds 11018old_postuninstall_cmds=$lt_old_postuninstall_cmds 11019 11020# Create an old-style archive from a shared archive. 11021old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 11022 11023# Create a temporary old-style archive to link instead of a shared archive. 11024old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 11025 11026# Commands used to build and install a shared archive. 11027archive_cmds=$lt_archive_cmds 11028archive_expsym_cmds=$lt_archive_expsym_cmds 11029postinstall_cmds=$lt_postinstall_cmds 11030postuninstall_cmds=$lt_postuninstall_cmds 11031 11032# Commands used to build a loadable module (assumed same as above if empty) 11033module_cmds=$lt_module_cmds 11034module_expsym_cmds=$lt_module_expsym_cmds 11035 11036# Commands to strip libraries. 11037old_striplib=$lt_old_striplib 11038striplib=$lt_striplib 11039 11040# Dependencies to place before the objects being linked to create a 11041# shared library. 11042predep_objects=$lt_predep_objects 11043 11044# Dependencies to place after the objects being linked to create a 11045# shared library. 11046postdep_objects=$lt_postdep_objects 11047 11048# Dependencies to place before the objects being linked to create a 11049# shared library. 11050predeps=$lt_predeps 11051 11052# Dependencies to place after the objects being linked to create a 11053# shared library. 11054postdeps=$lt_postdeps 11055 11056# The library search path used internally by the compiler when linking 11057# a shared library. 11058compiler_lib_search_path=$lt_compiler_lib_search_path 11059 11060# Method to check whether dependent libraries are shared objects. 11061deplibs_check_method=$lt_deplibs_check_method 11062 11063# Command to use when deplibs_check_method == file_magic. 11064file_magic_cmd=$lt_file_magic_cmd 11065 11066# Flag that allows shared libraries with undefined symbols to be built. 11067allow_undefined_flag=$lt_allow_undefined_flag 11068 11069# Flag that forces no undefined symbols. 11070no_undefined_flag=$lt_no_undefined_flag 11071 11072# Commands used to finish a libtool library installation in a directory. 11073finish_cmds=$lt_finish_cmds 11074 11075# Same as above, but a single script fragment to be evaled but not shown. 11076finish_eval=$lt_finish_eval 11077 11078# Take the output of nm and produce a listing of raw symbols and C names. 11079global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 11080 11081# Transform the output of nm in a proper C declaration 11082global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 11083 11084# Transform the output of nm in a C name address pair 11085global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 11086 11087# This is the shared library runtime path variable. 11088runpath_var=$runpath_var 11089 11090# This is the shared library path variable. 11091shlibpath_var=$shlibpath_var 11092 11093# Is shlibpath searched before the hard-coded library search path? 11094shlibpath_overrides_runpath=$shlibpath_overrides_runpath 11095 11096# How to hardcode a shared library path into an executable. 11097hardcode_action=$hardcode_action 11098 11099# Whether we should hardcode library paths into libraries. 11100hardcode_into_libs=$hardcode_into_libs 11101 11102# Flag to hardcode \$libdir into a binary during linking. 11103# This must work even if \$libdir does not exist. 11104hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 11105 11106# If ld is used when linking, flag to hardcode \$libdir into 11107# a binary during linking. This must work even if \$libdir does 11108# not exist. 11109hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 11110 11111# Whether we need a single -rpath flag with a separated argument. 11112hardcode_libdir_separator=$lt_hardcode_libdir_separator 11113 11114# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 11115# resulting binary. 11116hardcode_direct=$hardcode_direct 11117 11118# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 11119# resulting binary. 11120hardcode_minus_L=$hardcode_minus_L 11121 11122# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 11123# the resulting binary. 11124hardcode_shlibpath_var=$hardcode_shlibpath_var 11125 11126# Set to yes if building a shared library automatically hardcodes DIR into the library 11127# and all subsequent libraries and executables linked against it. 11128hardcode_automatic=$hardcode_automatic 11129 11130# Variables whose values should be saved in libtool wrapper scripts and 11131# restored at relink time. 11132variables_saved_for_relink="$variables_saved_for_relink" 11133 11134# Whether libtool must link a program against all its dependency libraries. 11135link_all_deplibs=$link_all_deplibs 11136 11137# Compile-time system search path for libraries 11138sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 11139 11140# Run-time system search path for libraries 11141sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 11142 11143# Fix the shell variable \$srcfile for the compiler. 11144fix_srcfile_path="$fix_srcfile_path" 11145 11146# Set to yes if exported symbols are required. 11147always_export_symbols=$always_export_symbols 11148 11149# The commands to list exported symbols. 11150export_symbols_cmds=$lt_export_symbols_cmds 11151 11152# The commands to extract the exported symbol list from a shared archive. 11153extract_expsyms_cmds=$lt_extract_expsyms_cmds 11154 11155# Symbols that should not be listed in the preloaded symbols. 11156exclude_expsyms=$lt_exclude_expsyms 11157 11158# Symbols that must always be exported. 11159include_expsyms=$lt_include_expsyms 11160 11161# ### END LIBTOOL CONFIG 11162 11163__EOF__ 11164 11165 11166 case $host_os in 11167 aix3*) 11168 cat <<\EOF >> "$cfgfile" 11169 11170# AIX sometimes has problems with the GCC collect2 program. For some 11171# reason, if we set the COLLECT_NAMES environment variable, the problems 11172# vanish in a puff of smoke. 11173if test "X${COLLECT_NAMES+set}" != Xset; then 11174 COLLECT_NAMES= 11175 export COLLECT_NAMES 11176fi 11177EOF 11178 ;; 11179 esac 11180 11181 # We use sed instead of cat because bash on DJGPP gets confused if 11182 # if finds mixed CR/LF and LF-only lines. Since sed operates in 11183 # text mode, it properly converts lines to CR/LF. This bash problem 11184 # is reportedly fixed, but why not run on old versions too? 11185 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 11186 11187 mv -f "$cfgfile" "$ofile" || \ 11188 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 11189 chmod +x "$ofile" 11190 11191else 11192 # If there is no Makefile yet, we rely on a make rule to execute 11193 # 'config.status --recheck' to rerun these tests and create the 11194 # libtool script then. 11195 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 11196 if test -f "$ltmain_in"; then 11197 test -f Makefile && make "$ltmain" 11198 fi 11199fi 11200 11201 11202ac_ext=c 11203ac_cpp='$CPP $CPPFLAGS' 11204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11206ac_compiler_gnu=$ac_cv_c_compiler_gnu 11207 11208CC="$lt_save_CC" 11209 11210 11211# Check whether --with-tags was given. 11212if test "${with_tags+set}" = set; then 11213 withval=$with_tags; tagnames="$withval" 11214fi 11215 11216 11217if test -f "$ltmain" && test -n "$tagnames"; then 11218 if test ! -f "${ofile}"; then 11219 { echo "$as_me:$LINENO: WARNING: output file '$ofile' does not exist" >&5 11220echo "$as_me: WARNING: output file '$ofile' does not exist" >&2;} 11221 fi 11222 11223 if test -z "$LTCC"; then 11224 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 11225 if test -z "$LTCC"; then 11226 { echo "$as_me:$LINENO: WARNING: output file '$ofile' does not look like a libtool script" >&5 11227echo "$as_me: WARNING: output file '$ofile' does not look like a libtool script" >&2;} 11228 else 11229 { echo "$as_me:$LINENO: WARNING: using 'LTCC=$LTCC', extracted from '$ofile'" >&5 11230echo "$as_me: WARNING: using 'LTCC=$LTCC', extracted from '$ofile'" >&2;} 11231 fi 11232 fi 11233 if test -z "$LTCFLAGS"; then 11234 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 11235 fi 11236 11237 # Extract list of available tagged configurations in $ofile. 11238 # Note that this assumes the entire list is on one line. 11239 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 11240 11241 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 11242 for tagname in $tagnames; do 11243 IFS="$lt_save_ifs" 11244 # Check whether tagname contains only valid characters 11245 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 11246 "") ;; 11247 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 11248echo "$as_me: error: invalid tag name: $tagname" >&2;} 11249 { (exit 1); exit 1; }; } 11250 ;; 11251 esac 11252 11253 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 11254 then 11255 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 11256echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 11257 { (exit 1); exit 1; }; } 11258 fi 11259 11260 # Update the list of available tags. 11261 if test -n "$tagname"; then 11262 echo appending configuration tag \"$tagname\" to $ofile 11263 11264 case $tagname in 11265 CXX) 11266 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 11267 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 11268 (test "X$CXX" != "Xg++"))) ; then 11269 ac_ext=cpp 11270ac_cpp='$CXXCPP $CPPFLAGS' 11271ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11272ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11273ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11274 11275 11276 11277 11278 11279 11280archive_cmds_need_lc_CXX=no 11281allow_undefined_flag_CXX= 11282always_export_symbols_CXX=no 11283archive_expsym_cmds_CXX= 11284export_dynamic_flag_spec_CXX= 11285hardcode_direct_CXX=no 11286hardcode_libdir_flag_spec_CXX= 11287hardcode_libdir_flag_spec_ld_CXX= 11288hardcode_libdir_separator_CXX= 11289hardcode_minus_L_CXX=no 11290hardcode_shlibpath_var_CXX=unsupported 11291hardcode_automatic_CXX=no 11292module_cmds_CXX= 11293module_expsym_cmds_CXX= 11294link_all_deplibs_CXX=unknown 11295old_archive_cmds_CXX=$old_archive_cmds 11296no_undefined_flag_CXX= 11297whole_archive_flag_spec_CXX= 11298enable_shared_with_static_runtimes_CXX=no 11299 11300# Dependencies to place before and after the object being linked: 11301predep_objects_CXX= 11302postdep_objects_CXX= 11303predeps_CXX= 11304postdeps_CXX= 11305compiler_lib_search_path_CXX= 11306 11307# Source file extension for C++ test sources. 11308ac_ext=cpp 11309 11310# Object file extension for compiled C++ test sources. 11311objext=o 11312objext_CXX=$objext 11313 11314# Code to be used in simple compile tests 11315lt_simple_compile_test_code="int some_variable = 0;\n" 11316 11317# Code to be used in simple link tests 11318lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 11319 11320# ltmain only uses $CC for tagged configurations so make sure $CC is set. 11321 11322# If no C compiler was specified, use CC. 11323LTCC=${LTCC-"$CC"} 11324 11325# If no C compiler flags were specified, use CFLAGS. 11326LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11327 11328# Allow CC to be a program name with arguments. 11329compiler=$CC 11330 11331 11332# save warnings/boilerplate of simple test code 11333ac_outfile=conftest.$ac_objext 11334printf "$lt_simple_compile_test_code" >conftest.$ac_ext 11335eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11336_lt_compiler_boilerplate=`cat conftest.err` 11337$rm conftest* 11338 11339ac_outfile=conftest.$ac_objext 11340printf "$lt_simple_link_test_code" >conftest.$ac_ext 11341eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11342_lt_linker_boilerplate=`cat conftest.err` 11343$rm conftest* 11344 11345 11346# Allow CC to be a program name with arguments. 11347lt_save_CC=$CC 11348lt_save_LD=$LD 11349lt_save_GCC=$GCC 11350GCC=$GXX 11351lt_save_with_gnu_ld=$with_gnu_ld 11352lt_save_path_LD=$lt_cv_path_LD 11353if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11354 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11355else 11356 $as_unset lt_cv_prog_gnu_ld 11357fi 11358if test -n "${lt_cv_path_LDCXX+set}"; then 11359 lt_cv_path_LD=$lt_cv_path_LDCXX 11360else 11361 $as_unset lt_cv_path_LD 11362fi 11363test -z "${LDCXX+set}" || LD=$LDCXX 11364CC=${CXX-"c++"} 11365compiler=$CC 11366compiler_CXX=$CC 11367for cc_temp in $compiler""; do 11368 case $cc_temp in 11369 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11370 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11371 \-*) ;; 11372 *) break;; 11373 esac 11374done 11375cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 11376 11377 11378# We don't want -fno-exception wen compiling C++ code, so set the 11379# no_builtin_flag separately 11380if test "$GXX" = yes; then 11381 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11382else 11383 lt_prog_compiler_no_builtin_flag_CXX= 11384fi 11385 11386if test "$GXX" = yes; then 11387 # Set up default GNU C++ configuration 11388 11389 11390# Check whether --with-gnu-ld was given. 11391if test "${with_gnu_ld+set}" = set; then 11392 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11393else 11394 with_gnu_ld=no 11395fi 11396 11397ac_prog=ld 11398if test "$GCC" = yes; then 11399 # Check if gcc -print-prog-name=ld gives a path. 11400 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 11401echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 11402 case $host in 11403 *-*-mingw*) 11404 # gcc leaves a trailing carriage return which upsets mingw 11405 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11406 *) 11407 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11408 esac 11409 case $ac_prog in 11410 # Accept absolute paths. 11411 [\\/]* | ?:[\\/]*) 11412 re_direlt='/[^/][^/]*/\.\./' 11413 # Canonicalize the pathname of ld 11414 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 11415 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 11416 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 11417 done 11418 test -z "$LD" && LD="$ac_prog" 11419 ;; 11420 "") 11421 # If it fails, then pretend we aren't using GCC. 11422 ac_prog=ld 11423 ;; 11424 *) 11425 # If it is relative, then search for the first ld in PATH. 11426 with_gnu_ld=unknown 11427 ;; 11428 esac 11429elif test "$with_gnu_ld" = yes; then 11430 { echo "$as_me:$LINENO: checking for GNU ld" >&5 11431echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 11432else 11433 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 11434echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 11435fi 11436if test "${lt_cv_path_LD+set}" = set; then 11437 echo $ECHO_N "(cached) $ECHO_C" >&6 11438else 11439 if test -z "$LD"; then 11440 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11441 for ac_dir in $PATH; do 11442 IFS="$lt_save_ifs" 11443 test -z "$ac_dir" && ac_dir=. 11444 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11445 lt_cv_path_LD="$ac_dir/$ac_prog" 11446 # Check to see if the program is GNU ld. I'd rather use --version, 11447 # but apparently some variants of GNU ld only accept -v. 11448 # Break only if it was the GNU/non-GNU ld that we prefer. 11449 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11450 *GNU* | *'with BFD'*) 11451 test "$with_gnu_ld" != no && break 11452 ;; 11453 *) 11454 test "$with_gnu_ld" != yes && break 11455 ;; 11456 esac 11457 fi 11458 done 11459 IFS="$lt_save_ifs" 11460else 11461 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11462fi 11463fi 11464 11465LD="$lt_cv_path_LD" 11466if test -n "$LD"; then 11467 { echo "$as_me:$LINENO: result: $LD" >&5 11468echo "${ECHO_T}$LD" >&6; } 11469else 11470 { echo "$as_me:$LINENO: result: no" >&5 11471echo "${ECHO_T}no" >&6; } 11472fi 11473test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 11474echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 11475 { (exit 1); exit 1; }; } 11476{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 11477echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 11478if test "${lt_cv_prog_gnu_ld+set}" = set; then 11479 echo $ECHO_N "(cached) $ECHO_C" >&6 11480else 11481 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11482case `$LD -v 2>&1 </dev/null` in 11483*GNU* | *'with BFD'*) 11484 lt_cv_prog_gnu_ld=yes 11485 ;; 11486*) 11487 lt_cv_prog_gnu_ld=no 11488 ;; 11489esac 11490fi 11491{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 11492echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 11493with_gnu_ld=$lt_cv_prog_gnu_ld 11494 11495 11496 11497 # Check if GNU C++ uses GNU ld as the underlying linker, since the 11498 # archiving commands below assume that GNU ld is being used. 11499 if test "$with_gnu_ld" = yes; then 11500 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11501 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' 11502 11503 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11504 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11505 11506 # If archive_cmds runs LD, not CC, wlarc should be empty 11507 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 11508 # investigate it a little bit more. (MM) 11509 wlarc='${wl}' 11510 11511 # ancient GNU ld didn't support --whole-archive et. al. 11512 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 11513 grep 'no-whole-archive' > /dev/null; then 11514 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11515 else 11516 whole_archive_flag_spec_CXX= 11517 fi 11518 else 11519 with_gnu_ld=no 11520 wlarc= 11521 11522 # A generic and very simple default shared library creation 11523 # command for GNU C++ for the case where it uses the native 11524 # linker, instead of GNU ld. If possible, this setting should 11525 # overridden to take advantage of the native linker features on 11526 # the platform it is being used on. 11527 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11528 fi 11529 11530 # Commands to make compiler produce verbose output that lists 11531 # what "hidden" libraries, object files and flags are used when 11532 # linking a shared library. 11533 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11534 11535else 11536 GXX=no 11537 with_gnu_ld=no 11538 wlarc= 11539fi 11540 11541# PORTME: fill in a description of your system's C++ link characteristics 11542{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11543echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 11544ld_shlibs_CXX=yes 11545case $host_os in 11546 aix3*) 11547 # FIXME: insert proper C++ library support 11548 ld_shlibs_CXX=no 11549 ;; 11550 aix4* | aix5*) 11551 if test "$host_cpu" = ia64; then 11552 # On IA64, the linker does run time linking by default, so we don't 11553 # have to do anything special. 11554 aix_use_runtimelinking=no 11555 exp_sym_flag='-Bexport' 11556 no_entry_flag="" 11557 else 11558 aix_use_runtimelinking=no 11559 11560 # Test if we are trying to use run time linking or normal 11561 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11562 # need to do runtime linking. 11563 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 11564 for ld_flag in $LDFLAGS; do 11565 case $ld_flag in 11566 *-brtl*) 11567 aix_use_runtimelinking=yes 11568 break 11569 ;; 11570 esac 11571 done 11572 ;; 11573 esac 11574 11575 exp_sym_flag='-bexport' 11576 no_entry_flag='-bnoentry' 11577 fi 11578 11579 # When large executables or shared objects are built, AIX ld can 11580 # have problems creating the table of contents. If linking a library 11581 # or program results in "error TOC overflow" add -mminimal-toc to 11582 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11583 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11584 11585 archive_cmds_CXX='' 11586 hardcode_direct_CXX=yes 11587 hardcode_libdir_separator_CXX=':' 11588 link_all_deplibs_CXX=yes 11589 11590 if test "$GXX" = yes; then 11591 case $host_os in aix4.[012]|aix4.[012].*) 11592 # We only want to do this on AIX 4.2 and lower, the check 11593 # below for broken collect2 doesn't work under 4.3+ 11594 collect2name=`${CC} -print-prog-name=collect2` 11595 if test -f "$collect2name" && \ 11596 strings "$collect2name" | grep resolve_lib_name >/dev/null 11597 then 11598 # We have reworked collect2 11599 : 11600 else 11601 # We have old collect2 11602 hardcode_direct_CXX=unsupported 11603 # It fails to find uninstalled libraries when the uninstalled 11604 # path is not listed in the libpath. Setting hardcode_minus_L 11605 # to unsupported forces relinking 11606 hardcode_minus_L_CXX=yes 11607 hardcode_libdir_flag_spec_CXX='-L$libdir' 11608 hardcode_libdir_separator_CXX= 11609 fi 11610 ;; 11611 esac 11612 shared_flag='-shared' 11613 if test "$aix_use_runtimelinking" = yes; then 11614 shared_flag="$shared_flag "'${wl}-G' 11615 fi 11616 else 11617 # not using gcc 11618 if test "$host_cpu" = ia64; then 11619 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11620 # chokes on -Wl,-G. The following line is correct: 11621 shared_flag='-G' 11622 else 11623 if test "$aix_use_runtimelinking" = yes; then 11624 shared_flag='${wl}-G' 11625 else 11626 shared_flag='${wl}-bM:SRE' 11627 fi 11628 fi 11629 fi 11630 11631 # It seems that -bexpall does not export symbols beginning with 11632 # underscore (_), so it is better to generate a list of symbols to export. 11633 always_export_symbols_CXX=yes 11634 if test "$aix_use_runtimelinking" = yes; then 11635 # Warning - without using the other runtime loading flags (-brtl), 11636 # -berok will link without error, but may produce a broken library. 11637 allow_undefined_flag_CXX='-berok' 11638 # Determine the default libpath from the value encoded in an empty executable. 11639 aix_libpath="/usr/lib:/lib" 11640 11641 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11642 11643 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" 11644 else 11645 if test "$host_cpu" = ia64; then 11646 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11647 allow_undefined_flag_CXX="-z nodefs" 11648 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" 11649 else 11650 # Determine the default libpath from the value encoded in an empty executable. 11651 aix_libpath="/usr/lib:/lib" 11652 11653 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11654 # Warning - without using the other run time loading flags, 11655 # -berok will link without error, but may produce a broken library. 11656 no_undefined_flag_CXX=' ${wl}-bernotok' 11657 allow_undefined_flag_CXX=' ${wl}-berok' 11658 # Exported symbols can be pulled into shared objects from archives 11659 whole_archive_flag_spec_CXX='$convenience' 11660 archive_cmds_need_lc_CXX=yes 11661 # This is similar to how AIX traditionally builds its shared libraries. 11662 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' 11663 fi 11664 fi 11665 ;; 11666 11667 beos*) 11668 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11669 allow_undefined_flag_CXX=unsupported 11670 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11671 # support --undefined. This deserves some investigation. FIXME 11672 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11673 else 11674 ld_shlibs_CXX=no 11675 fi 11676 ;; 11677 11678 chorus*) 11679 case $cc_basename in 11680 *) 11681 # FIXME: insert proper C++ library support 11682 ld_shlibs_CXX=no 11683 ;; 11684 esac 11685 ;; 11686 11687 cygwin* | mingw* | pw32*) 11688 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11689 # as there is no search path for DLLs. 11690 hardcode_libdir_flag_spec_CXX='-L$libdir' 11691 allow_undefined_flag_CXX=unsupported 11692 always_export_symbols_CXX=no 11693 enable_shared_with_static_runtimes_CXX=yes 11694 11695 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11696 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' 11697 # If the export-symbols file already is a .def file (1st line 11698 # is EXPORTS), use it as is; otherwise, prepend... 11699 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11700 cp $export_symbols $output_objdir/$soname.def; 11701 else 11702 echo EXPORTS > $output_objdir/$soname.def; 11703 cat $export_symbols >> $output_objdir/$soname.def; 11704 fi~ 11705 $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' 11706 else 11707 ld_shlibs_CXX=no 11708 fi 11709 ;; 11710 darwin* | rhapsody*) 11711 case $host_os in 11712 rhapsody* | darwin1.[012]) 11713 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 11714 ;; 11715 *) # Darwin 1.3 on 11716 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 11717 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11718 else 11719 case ${MACOSX_DEPLOYMENT_TARGET} in 11720 10.[012]) 11721 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11722 ;; 11723 10.*) 11724 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 11725 ;; 11726 esac 11727 fi 11728 ;; 11729 esac 11730 archive_cmds_need_lc_CXX=no 11731 hardcode_direct_CXX=no 11732 hardcode_automatic_CXX=yes 11733 hardcode_shlibpath_var_CXX=unsupported 11734 whole_archive_flag_spec_CXX='' 11735 link_all_deplibs_CXX=yes 11736 11737 if test "$GXX" = yes ; then 11738 lt_int_apple_cc_single_mod=no 11739 output_verbose_link_cmd='echo' 11740 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 11741 lt_int_apple_cc_single_mod=yes 11742 fi 11743 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11744 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 11745 else 11746 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' 11747 fi 11748 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11749 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11750 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11751 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11752 else 11753 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11754 fi 11755 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}' 11756 else 11757 case $cc_basename in 11758 xlc*) 11759 output_verbose_link_cmd='echo' 11760 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 11761 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11762 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11763 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11764 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}' 11765 ;; 11766 *) 11767 ld_shlibs_CXX=no 11768 ;; 11769 esac 11770 fi 11771 ;; 11772 11773 dgux*) 11774 case $cc_basename in 11775 ec++*) 11776 # FIXME: insert proper C++ library support 11777 ld_shlibs_CXX=no 11778 ;; 11779 ghcx*) 11780 # Green Hills C++ Compiler 11781 # FIXME: insert proper C++ library support 11782 ld_shlibs_CXX=no 11783 ;; 11784 *) 11785 # FIXME: insert proper C++ library support 11786 ld_shlibs_CXX=no 11787 ;; 11788 esac 11789 ;; 11790 freebsd[12]*) 11791 # C++ shared libraries reported to be fairly broken before switch to ELF 11792 ld_shlibs_CXX=no 11793 ;; 11794 freebsd-elf*) 11795 archive_cmds_need_lc_CXX=no 11796 ;; 11797 freebsd* | kfreebsd*-gnu | dragonfly*) 11798 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11799 # conventions 11800 ld_shlibs_CXX=yes 11801 ;; 11802 gnu*) 11803 ;; 11804 hpux9*) 11805 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11806 hardcode_libdir_separator_CXX=: 11807 export_dynamic_flag_spec_CXX='${wl}-E' 11808 hardcode_direct_CXX=yes 11809 hardcode_minus_L_CXX=yes # Not in the search PATH, 11810 # but as the default 11811 # location of the library. 11812 11813 case $cc_basename in 11814 CC*) 11815 # FIXME: insert proper C++ library support 11816 ld_shlibs_CXX=no 11817 ;; 11818 aCC*) 11819 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' 11820 # Commands to make compiler produce verbose output that lists 11821 # what "hidden" libraries, object files and flags are used when 11822 # linking a shared library. 11823 # 11824 # There doesn't appear to be a way to prevent this compiler from 11825 # explicitly linking system object files so we need to strip them 11826 # from the output so that they don't get included in the library 11827 # dependencies. 11828 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' 11829 ;; 11830 *) 11831 if test "$GXX" = yes; then 11832 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' 11833 else 11834 # FIXME: insert proper C++ library support 11835 ld_shlibs_CXX=no 11836 fi 11837 ;; 11838 esac 11839 ;; 11840 hpux10*|hpux11*) 11841 if test $with_gnu_ld = no; then 11842 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11843 hardcode_libdir_separator_CXX=: 11844 11845 case $host_cpu in 11846 hppa*64*|ia64*) 11847 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 11848 ;; 11849 *) 11850 export_dynamic_flag_spec_CXX='${wl}-E' 11851 ;; 11852 esac 11853 fi 11854 case $host_cpu in 11855 hppa*64*|ia64*) 11856 hardcode_direct_CXX=no 11857 hardcode_shlibpath_var_CXX=no 11858 ;; 11859 *) 11860 hardcode_direct_CXX=yes 11861 hardcode_minus_L_CXX=yes # Not in the search PATH, 11862 # but as the default 11863 # location of the library. 11864 ;; 11865 esac 11866 11867 case $cc_basename in 11868 CC*) 11869 # FIXME: insert proper C++ library support 11870 ld_shlibs_CXX=no 11871 ;; 11872 aCC*) 11873 case $host_cpu in 11874 hppa*64*) 11875 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11876 ;; 11877 ia64*) 11878 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11879 ;; 11880 *) 11881 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11882 ;; 11883 esac 11884 # Commands to make compiler produce verbose output that lists 11885 # what "hidden" libraries, object files and flags are used when 11886 # linking a shared library. 11887 # 11888 # There doesn't appear to be a way to prevent this compiler from 11889 # explicitly linking system object files so we need to strip them 11890 # from the output so that they don't get included in the library 11891 # dependencies. 11892 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' 11893 ;; 11894 *) 11895 if test "$GXX" = yes; then 11896 if test $with_gnu_ld = no; then 11897 case $host_cpu in 11898 hppa*64*) 11899 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11900 ;; 11901 ia64*) 11902 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11903 ;; 11904 *) 11905 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' 11906 ;; 11907 esac 11908 fi 11909 else 11910 # FIXME: insert proper C++ library support 11911 ld_shlibs_CXX=no 11912 fi 11913 ;; 11914 esac 11915 ;; 11916 interix3*) 11917 hardcode_direct_CXX=no 11918 hardcode_shlibpath_var_CXX=no 11919 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11920 export_dynamic_flag_spec_CXX='${wl}-E' 11921 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11922 # Instead, shared libraries are loaded at an image base (0x10000000 by 11923 # default) and relocated if they conflict, which is a slow very memory 11924 # consuming and fragmenting process. To avoid this, we pick a random, 11925 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11926 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11927 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' 11928 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' 11929 ;; 11930 irix5* | irix6*) 11931 case $cc_basename in 11932 CC*) 11933 # SGI C++ 11934 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' 11935 11936 # Archives containing C++ object files must be created using 11937 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11938 # necessary to make sure instantiated templates are included 11939 # in the archive. 11940 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11941 ;; 11942 *) 11943 if test "$GXX" = yes; then 11944 if test "$with_gnu_ld" = no; then 11945 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' 11946 else 11947 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' 11948 fi 11949 fi 11950 link_all_deplibs_CXX=yes 11951 ;; 11952 esac 11953 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11954 hardcode_libdir_separator_CXX=: 11955 ;; 11956 linux*) 11957 case $cc_basename in 11958 KCC*) 11959 # Kuck and Associates, Inc. (KAI) C++ Compiler 11960 11961 # KCC will only create a shared library if the output file 11962 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11963 # to its proper name (with version) after linking. 11964 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' 11965 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' 11966 # Commands to make compiler produce verbose output that lists 11967 # what "hidden" libraries, object files and flags are used when 11968 # linking a shared library. 11969 # 11970 # There doesn't appear to be a way to prevent this compiler from 11971 # explicitly linking system object files so we need to strip them 11972 # from the output so that they don't get included in the library 11973 # dependencies. 11974 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' 11975 11976 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 11977 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11978 11979 # Archives containing C++ object files must be created using 11980 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11981 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11982 ;; 11983 icpc*) 11984 # Intel C++ 11985 with_gnu_ld=yes 11986 # version 8.0 and above of icpc choke on multiply defined symbols 11987 # if we add $predep_objects and $postdep_objects, however 7.1 and 11988 # earlier do not add the objects themselves. 11989 case `$CC -V 2>&1` in 11990 *"Version 7."*) 11991 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11992 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' 11993 ;; 11994 *) # Version 8.0 or newer 11995 tmp_idyn= 11996 case $host_cpu in 11997 ia64*) tmp_idyn=' -i_dynamic';; 11998 esac 11999 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12000 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' 12001 ;; 12002 esac 12003 archive_cmds_need_lc_CXX=no 12004 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12005 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12006 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12007 ;; 12008 pgCC*) 12009 # Portland Group C++ compiler 12010 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12011 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' 12012 12013 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 12014 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12015 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' 12016 ;; 12017 cxx*) 12018 # Compaq C++ 12019 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12020 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' 12021 12022 runpath_var=LD_RUN_PATH 12023 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12024 hardcode_libdir_separator_CXX=: 12025 12026 # Commands to make compiler produce verbose output that lists 12027 # what "hidden" libraries, object files and flags are used when 12028 # linking a shared library. 12029 # 12030 # There doesn't appear to be a way to prevent this compiler from 12031 # explicitly linking system object files so we need to strip them 12032 # from the output so that they don't get included in the library 12033 # dependencies. 12034 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' 12035 ;; 12036 *) 12037 case `$CC -V 2>&1 | sed 5q` in 12038 *Sun\ C*) 12039 # Sun C++ 5.9 12040 no_undefined_flag_CXX=' -zdefs' 12041 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12042 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' 12043 hardcode_libdir_flag_spec_CXX='-R$libdir' 12044 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' 12045 12046 # Not sure whether something based on 12047 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 12048 # would be better. 12049 output_verbose_link_cmd='echo' 12050 12051 # Archives containing C++ object files must be created using 12052 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12053 # necessary to make sure instantiated templates are included 12054 # in the archive. 12055 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12056 ;; 12057 esac 12058 ;; 12059 esac 12060 ;; 12061 lynxos*) 12062 # FIXME: insert proper C++ library support 12063 ld_shlibs_CXX=no 12064 ;; 12065 m88k*) 12066 # FIXME: insert proper C++ library support 12067 ld_shlibs_CXX=no 12068 ;; 12069 mirbsd*) 12070 hardcode_direct_CXX=yes 12071 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12072 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12073 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 12074 export_dynamic_flag_spec_CXX='${wl}-E' 12075 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12076 output_verbose_link_cmd='echo' 12077 ;; 12078 mvs*) 12079 case $cc_basename in 12080 cxx*) 12081 # FIXME: insert proper C++ library support 12082 ld_shlibs_CXX=no 12083 ;; 12084 *) 12085 # FIXME: insert proper C++ library support 12086 ld_shlibs_CXX=no 12087 ;; 12088 esac 12089 ;; 12090 netbsd*) 12091 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12092 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 12093 wlarc= 12094 hardcode_libdir_flag_spec_CXX='-R$libdir' 12095 hardcode_direct_CXX=yes 12096 hardcode_shlibpath_var_CXX=no 12097 fi 12098 # Workaround some broken pre-1.5 toolchains 12099 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 12100 ;; 12101 openbsd2*) 12102 # C++ shared libraries are fairly broken 12103 ld_shlibs_CXX=no 12104 ;; 12105 openbsd*) 12106 hardcode_direct_CXX=yes 12107 hardcode_shlibpath_var_CXX=no 12108 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12109 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12110 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12111 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 12112 export_dynamic_flag_spec_CXX='${wl}-E' 12113 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12114 fi 12115 output_verbose_link_cmd='echo' 12116 ;; 12117 osf3*) 12118 case $cc_basename in 12119 KCC*) 12120 # Kuck and Associates, Inc. (KAI) C++ Compiler 12121 12122 # KCC will only create a shared library if the output file 12123 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12124 # to its proper name (with version) after linking. 12125 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' 12126 12127 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12128 hardcode_libdir_separator_CXX=: 12129 12130 # Archives containing C++ object files must be created using 12131 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12132 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12133 12134 ;; 12135 RCC*) 12136 # Rational C++ 2.4.1 12137 # FIXME: insert proper C++ library support 12138 ld_shlibs_CXX=no 12139 ;; 12140 cxx*) 12141 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12142 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' 12143 12144 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12145 hardcode_libdir_separator_CXX=: 12146 12147 # Commands to make compiler produce verbose output that lists 12148 # what "hidden" libraries, object files and flags are used when 12149 # linking a shared library. 12150 # 12151 # There doesn't appear to be a way to prevent this compiler from 12152 # explicitly linking system object files so we need to strip them 12153 # from the output so that they don't get included in the library 12154 # dependencies. 12155 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' 12156 ;; 12157 *) 12158 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12159 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12160 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' 12161 12162 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12163 hardcode_libdir_separator_CXX=: 12164 12165 # Commands to make compiler produce verbose output that lists 12166 # what "hidden" libraries, object files and flags are used when 12167 # linking a shared library. 12168 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12169 12170 else 12171 # FIXME: insert proper C++ library support 12172 ld_shlibs_CXX=no 12173 fi 12174 ;; 12175 esac 12176 ;; 12177 osf4* | osf5*) 12178 case $cc_basename in 12179 KCC*) 12180 # Kuck and Associates, Inc. (KAI) C++ Compiler 12181 12182 # KCC will only create a shared library if the output file 12183 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12184 # to its proper name (with version) after linking. 12185 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' 12186 12187 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12188 hardcode_libdir_separator_CXX=: 12189 12190 # Archives containing C++ object files must be created using 12191 # the KAI C++ compiler. 12192 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 12193 ;; 12194 RCC*) 12195 # Rational C++ 2.4.1 12196 # FIXME: insert proper C++ library support 12197 ld_shlibs_CXX=no 12198 ;; 12199 cxx*) 12200 allow_undefined_flag_CXX=' -expect_unresolved \*' 12201 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' 12202 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12203 echo "-hidden">> $lib.exp~ 12204 $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~ 12205 $rm $lib.exp' 12206 12207 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12208 hardcode_libdir_separator_CXX=: 12209 12210 # Commands to make compiler produce verbose output that lists 12211 # what "hidden" libraries, object files and flags are used when 12212 # linking a shared library. 12213 # 12214 # There doesn't appear to be a way to prevent this compiler from 12215 # explicitly linking system object files so we need to strip them 12216 # from the output so that they don't get included in the library 12217 # dependencies. 12218 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' 12219 ;; 12220 *) 12221 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12222 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12223 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' 12224 12225 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12226 hardcode_libdir_separator_CXX=: 12227 12228 # Commands to make compiler produce verbose output that lists 12229 # what "hidden" libraries, object files and flags are used when 12230 # linking a shared library. 12231 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12232 12233 else 12234 # FIXME: insert proper C++ library support 12235 ld_shlibs_CXX=no 12236 fi 12237 ;; 12238 esac 12239 ;; 12240 psos*) 12241 # FIXME: insert proper C++ library support 12242 ld_shlibs_CXX=no 12243 ;; 12244 sunos4*) 12245 case $cc_basename in 12246 CC*) 12247 # Sun C++ 4.x 12248 # FIXME: insert proper C++ library support 12249 ld_shlibs_CXX=no 12250 ;; 12251 lcc*) 12252 # Lucid 12253 # FIXME: insert proper C++ library support 12254 ld_shlibs_CXX=no 12255 ;; 12256 *) 12257 # FIXME: insert proper C++ library support 12258 ld_shlibs_CXX=no 12259 ;; 12260 esac 12261 ;; 12262 solaris*) 12263 case $cc_basename in 12264 CC*) 12265 # Sun C++ 4.2, 5.x and Centerline C++ 12266 archive_cmds_need_lc_CXX=yes 12267 no_undefined_flag_CXX=' -zdefs' 12268 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12269 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12270 $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' 12271 12272 hardcode_libdir_flag_spec_CXX='-R$libdir' 12273 hardcode_shlibpath_var_CXX=no 12274 case $host_os in 12275 solaris2.[0-5] | solaris2.[0-5].*) ;; 12276 *) 12277 # The compiler driver will combine and reorder linker options, 12278 # but understands `-z linker_flag'. 12279 # Supported since Solaris 2.6 (maybe 2.5.1?) 12280 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 12281 ;; 12282 esac 12283 link_all_deplibs_CXX=yes 12284 12285 output_verbose_link_cmd='echo' 12286 12287 # Archives containing C++ object files must be created using 12288 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12289 # necessary to make sure instantiated templates are included 12290 # in the archive. 12291 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12292 ;; 12293 gcx*) 12294 # Green Hills C++ Compiler 12295 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12296 12297 # The C++ compiler must be used to create the archive. 12298 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12299 ;; 12300 *) 12301 # GNU C++ compiler with Solaris linker 12302 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12303 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12304 if $CC --version | grep -v '^2\.7' > /dev/null; then 12305 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12306 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12307 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12308 12309 # Commands to make compiler produce verbose output that lists 12310 # what "hidden" libraries, object files and flags are used when 12311 # linking a shared library. 12312 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12313 else 12314 # g++ 2.7 appears to require '-G' NOT '-shared' on this 12315 # platform. 12316 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12317 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12318 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12319 12320 # Commands to make compiler produce verbose output that lists 12321 # what "hidden" libraries, object files and flags are used when 12322 # linking a shared library. 12323 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12324 fi 12325 12326 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12327 case $host_os in 12328 solaris2.[0-5] | solaris2.[0-5].*) ;; 12329 *) 12330 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 12331 ;; 12332 esac 12333 fi 12334 ;; 12335 esac 12336 ;; 12337 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12338 no_undefined_flag_CXX='${wl}-z,text' 12339 archive_cmds_need_lc_CXX=no 12340 hardcode_shlibpath_var_CXX=no 12341 runpath_var='LD_RUN_PATH' 12342 12343 case $cc_basename in 12344 CC*) 12345 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12346 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12347 ;; 12348 *) 12349 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12350 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12351 ;; 12352 esac 12353 ;; 12354 sysv5* | sco3.2v5* | sco5v6*) 12355 # Note: We can NOT use -z defs as we might desire, because we do not 12356 # link with -lc, and that would cause any symbols used from libc to 12357 # always be unresolved, which means just about no library would 12358 # ever link correctly. If we're not using GNU ld we use -z text 12359 # though, which does catch some bad symbols but isn't as heavy-handed 12360 # as -z defs. 12361 # For security reasons, it is highly recommended that you always 12362 # use absolute paths for naming shared libraries, and exclude the 12363 # DT_RUNPATH tag from executables and libraries. But doing so 12364 # requires that you compile everything twice, which is a pain. 12365 # So that behaviour is only enabled if SCOABSPATH is set to a 12366 # non-empty value in the environment. Most likely only useful for 12367 # creating official distributions of packages. 12368 # This is a hack until libtool officially supports absolute path 12369 # names for shared libraries. 12370 no_undefined_flag_CXX='${wl}-z,text' 12371 allow_undefined_flag_CXX='${wl}-z,nodefs' 12372 archive_cmds_need_lc_CXX=no 12373 hardcode_shlibpath_var_CXX=no 12374 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 12375 hardcode_libdir_separator_CXX=':' 12376 link_all_deplibs_CXX=yes 12377 export_dynamic_flag_spec_CXX='${wl}-Bexport' 12378 runpath_var='LD_RUN_PATH' 12379 12380 case $cc_basename in 12381 CC*) 12382 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12383 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12384 ;; 12385 *) 12386 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12387 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12388 ;; 12389 esac 12390 ;; 12391 tandem*) 12392 case $cc_basename in 12393 NCC*) 12394 # NonStop-UX NCC 3.20 12395 # FIXME: insert proper C++ library support 12396 ld_shlibs_CXX=no 12397 ;; 12398 *) 12399 # FIXME: insert proper C++ library support 12400 ld_shlibs_CXX=no 12401 ;; 12402 esac 12403 ;; 12404 vxworks*) 12405 # FIXME: insert proper C++ library support 12406 ld_shlibs_CXX=no 12407 ;; 12408 *) 12409 # FIXME: insert proper C++ library support 12410 ld_shlibs_CXX=no 12411 ;; 12412esac 12413{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12414echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12415test "$ld_shlibs_CXX" = no && can_build_shared=no 12416 12417GCC_CXX="$GXX" 12418LD_CXX="$LD" 12419 12420## CAVEAT EMPTOR: 12421## There is no encapsulation within the following macros, do not change 12422## the running order or otherwise move them around unless you know exactly 12423## what you are doing... 12424 12425cat > conftest.$ac_ext <<EOF 12426class Foo 12427{ 12428public: 12429 Foo (void) { a = 0; } 12430private: 12431 int a; 12432}; 12433EOF 12434 12435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12436 (eval $ac_compile) 2>&5 12437 ac_status=$? 12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12439 (exit $ac_status); }; then 12440 # Parse the compiler output and extract the necessary 12441 # objects, libraries and library flags. 12442 12443 # Sentinel used to keep track of whether or not we are before 12444 # the conftest object file. 12445 pre_test_object_deps_done=no 12446 12447 # The '*' in the case matches for architectures that use 'case' in 12448 # $output_verbose_cmd can trigger glob expansion during the loop 12449 # eval without this substitution. 12450 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 12451 12452 for p in `eval $output_verbose_link_cmd`; do 12453 case $p in 12454 12455 -L* | -R* | -l*) 12456 # Some compilers place space between "-{L,R}" and the path. 12457 # Remove the space. 12458 if test $p = "-L" \ 12459 || test $p = "-R"; then 12460 prev=$p 12461 continue 12462 else 12463 prev= 12464 fi 12465 12466 if test "$pre_test_object_deps_done" = no; then 12467 case $p in 12468 -L* | -R*) 12469 # Internal compiler library paths should come after those 12470 # provided the user. The postdeps already come after the 12471 # user supplied libs so there is no need to process them. 12472 if test -z "$compiler_lib_search_path_CXX"; then 12473 compiler_lib_search_path_CXX="${prev}${p}" 12474 else 12475 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 12476 fi 12477 ;; 12478 # The "-l" case would never come before the object being 12479 # linked, so don't bother handling this case. 12480 esac 12481 else 12482 if test -z "$postdeps_CXX"; then 12483 postdeps_CXX="${prev}${p}" 12484 else 12485 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 12486 fi 12487 fi 12488 ;; 12489 12490 *.$objext) 12491 # This assumes that the test object file only shows up 12492 # once in the compiler output. 12493 if test "$p" = "conftest.$objext"; then 12494 pre_test_object_deps_done=yes 12495 continue 12496 fi 12497 12498 if test "$pre_test_object_deps_done" = no; then 12499 if test -z "$predep_objects_CXX"; then 12500 predep_objects_CXX="$p" 12501 else 12502 predep_objects_CXX="$predep_objects_CXX $p" 12503 fi 12504 else 12505 if test -z "$postdep_objects_CXX"; then 12506 postdep_objects_CXX="$p" 12507 else 12508 postdep_objects_CXX="$postdep_objects_CXX $p" 12509 fi 12510 fi 12511 ;; 12512 12513 *) ;; # Ignore the rest. 12514 12515 esac 12516 done 12517 12518 # Clean up. 12519 rm -f a.out a.exe 12520else 12521 echo "libtool.m4: error: problem compiling CXX test program" 12522fi 12523 12524$rm -f confest.$objext 12525 12526# PORTME: override above test on systems where it is broken 12527case $host_os in 12528interix3*) 12529 # Interix 3.5 installs completely hosed .la files for C++, so rather than 12530 # hack all around it, let's just trust "g++" to DTRT. 12531 predep_objects_CXX= 12532 postdep_objects_CXX= 12533 postdeps_CXX= 12534 ;; 12535 12536linux*) 12537 case `$CC -V 2>&1 | sed 5q` in 12538 *Sun\ C*) 12539 # Sun C++ 5.9 12540 postdeps_CXX='-lCstd -lCrun' 12541 ;; 12542 esac 12543 ;; 12544 12545solaris*) 12546 case $cc_basename in 12547 CC*) 12548 # Adding this requires a known-good setup of shared libraries for 12549 # Sun compiler versions before 5.6, else PIC objects from an old 12550 # archive will be linked into the output, leading to subtle bugs. 12551 postdeps_CXX='-lCstd -lCrun' 12552 ;; 12553 esac 12554 ;; 12555esac 12556 12557 12558case " $postdeps_CXX " in 12559*" -lc "*) archive_cmds_need_lc_CXX=no ;; 12560esac 12561 12562lt_prog_compiler_wl_CXX= 12563lt_prog_compiler_pic_CXX= 12564lt_prog_compiler_static_CXX= 12565 12566{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12567echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 12568 12569 # C++ specific cases for pic, static, wl, etc. 12570 if test "$GXX" = yes; then 12571 lt_prog_compiler_wl_CXX='-Wl,' 12572 lt_prog_compiler_static_CXX='-static' 12573 12574 case $host_os in 12575 aix*) 12576 # All AIX code is PIC. 12577 if test "$host_cpu" = ia64; then 12578 # AIX 5 now supports IA64 processor 12579 lt_prog_compiler_static_CXX='-Bstatic' 12580 fi 12581 ;; 12582 amigaos*) 12583 # FIXME: we need at least 68020 code to build shared libraries, but 12584 # adding the '-m68020' flag to GCC prevents building anything better, 12585 # like '-m68040'. 12586 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12587 ;; 12588 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12589 # PIC is the default for these OSes. 12590 ;; 12591 mingw* | cygwin* | os2* | pw32*) 12592 # This hack is so that the source file can tell whether it is being 12593 # built for inclusion in a dll (and should export symbols for example). 12594 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12595 # (--disable-auto-import) libraries 12596 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 12597 ;; 12598 darwin* | rhapsody*) 12599 # PIC is the default on this platform 12600 # Common symbols not allowed in MH_DYLIB files 12601 lt_prog_compiler_pic_CXX='-fno-common' 12602 ;; 12603 *djgpp*) 12604 # DJGPP does not support shared libraries at all 12605 lt_prog_compiler_pic_CXX= 12606 ;; 12607 interix3*) 12608 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12609 # Instead, we relocate shared libraries at runtime. 12610 ;; 12611 sysv4*MP*) 12612 if test -d /usr/nec; then 12613 lt_prog_compiler_pic_CXX=-Kconform_pic 12614 fi 12615 ;; 12616 hpux*) 12617 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12618 # not for PA HP-UX. 12619 case $host_cpu in 12620 hppa*64*|ia64*) 12621 ;; 12622 *) 12623 lt_prog_compiler_pic_CXX='-fPIC' 12624 ;; 12625 esac 12626 ;; 12627 *) 12628 lt_prog_compiler_pic_CXX='-fPIC' 12629 ;; 12630 esac 12631 else 12632 case $host_os in 12633 aix4* | aix5*) 12634 # All AIX code is PIC. 12635 if test "$host_cpu" = ia64; then 12636 # AIX 5 now supports IA64 processor 12637 lt_prog_compiler_static_CXX='-Bstatic' 12638 else 12639 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12640 fi 12641 ;; 12642 chorus*) 12643 case $cc_basename in 12644 cxch68*) 12645 # Green Hills C++ Compiler 12646 # _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" 12647 ;; 12648 esac 12649 ;; 12650 darwin*) 12651 # PIC is the default on this platform 12652 # Common symbols not allowed in MH_DYLIB files 12653 case $cc_basename in 12654 xlc*) 12655 lt_prog_compiler_pic_CXX='-qnocommon' 12656 lt_prog_compiler_wl_CXX='-Wl,' 12657 ;; 12658 esac 12659 ;; 12660 dgux*) 12661 case $cc_basename in 12662 ec++*) 12663 lt_prog_compiler_pic_CXX='-KPIC' 12664 ;; 12665 ghcx*) 12666 # Green Hills C++ Compiler 12667 lt_prog_compiler_pic_CXX='-pic' 12668 ;; 12669 *) 12670 ;; 12671 esac 12672 ;; 12673 freebsd* | kfreebsd*-gnu | dragonfly*) 12674 # FreeBSD uses GNU C++ 12675 ;; 12676 hpux9* | hpux10* | hpux11*) 12677 case $cc_basename in 12678 CC*) 12679 lt_prog_compiler_wl_CXX='-Wl,' 12680 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12681 if test "$host_cpu" != ia64; then 12682 lt_prog_compiler_pic_CXX='+Z' 12683 fi 12684 ;; 12685 aCC*) 12686 lt_prog_compiler_wl_CXX='-Wl,' 12687 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12688 case $host_cpu in 12689 hppa*64*|ia64*) 12690 # +Z the default 12691 ;; 12692 *) 12693 lt_prog_compiler_pic_CXX='+Z' 12694 ;; 12695 esac 12696 ;; 12697 *) 12698 ;; 12699 esac 12700 ;; 12701 interix*) 12702 # This is c89, which is MS Visual C++ (no shared libs) 12703 # Anyone wants to do a port? (Not for MirPorts though.) 12704 ;; 12705 irix5* | irix6* | nonstopux*) 12706 case $cc_basename in 12707 CC*) 12708 lt_prog_compiler_wl_CXX='-Wl,' 12709 lt_prog_compiler_static_CXX='-non_shared' 12710 # CC pic flag -KPIC is the default. 12711 ;; 12712 *) 12713 ;; 12714 esac 12715 ;; 12716 linux*) 12717 case $cc_basename in 12718 KCC*) 12719 # KAI C++ Compiler 12720 lt_prog_compiler_wl_CXX='--backend -Wl,' 12721 lt_prog_compiler_pic_CXX='-fPIC' 12722 ;; 12723 icpc* | ecpc*) 12724 # Intel C++ 12725 lt_prog_compiler_wl_CXX='-Wl,' 12726 lt_prog_compiler_pic_CXX='-KPIC' 12727 lt_prog_compiler_static_CXX='-static' 12728 ;; 12729 pgCC*) 12730 # Portland Group C++ compiler. 12731 lt_prog_compiler_wl_CXX='-Wl,' 12732 lt_prog_compiler_pic_CXX='-fpic' 12733 lt_prog_compiler_static_CXX='-Bstatic' 12734 ;; 12735 cxx*) 12736 # Compaq C++ 12737 # Make sure the PIC flag is empty. It appears that all Alpha 12738 # Linux and Compaq Tru64 Unix objects are PIC. 12739 lt_prog_compiler_pic_CXX= 12740 lt_prog_compiler_static_CXX='-non_shared' 12741 ;; 12742 *) 12743 case `$CC -V 2>&1 | sed 5q` in 12744 *Sun\ C*) 12745 # Sun C++ 5.9 12746 lt_prog_compiler_pic_CXX='-KPIC' 12747 lt_prog_compiler_static_CXX='-Bstatic' 12748 lt_prog_compiler_wl_CXX='-Qoption ld ' 12749 ;; 12750 esac 12751 ;; 12752 esac 12753 ;; 12754 lynxos*) 12755 ;; 12756 m88k*) 12757 ;; 12758 mvs*) 12759 case $cc_basename in 12760 cxx*) 12761 lt_prog_compiler_pic_CXX='-W c,exportall' 12762 ;; 12763 *) 12764 ;; 12765 esac 12766 ;; 12767 netbsd*) 12768 ;; 12769 osf3* | osf4* | osf5*) 12770 case $cc_basename in 12771 KCC*) 12772 lt_prog_compiler_wl_CXX='--backend -Wl,' 12773 ;; 12774 RCC*) 12775 # Rational C++ 2.4.1 12776 lt_prog_compiler_pic_CXX='-pic' 12777 ;; 12778 cxx*) 12779 # Digital/Compaq C++ 12780 lt_prog_compiler_wl_CXX='-Wl,' 12781 # Make sure the PIC flag is empty. It appears that all Alpha 12782 # Linux and Compaq Tru64 Unix objects are PIC. 12783 lt_prog_compiler_pic_CXX= 12784 lt_prog_compiler_static_CXX='-non_shared' 12785 ;; 12786 *) 12787 ;; 12788 esac 12789 ;; 12790 psos*) 12791 ;; 12792 solaris*) 12793 case $cc_basename in 12794 CC*) 12795 # Sun C++ 4.2, 5.x and Centerline C++ 12796 lt_prog_compiler_pic_CXX='-KPIC' 12797 lt_prog_compiler_static_CXX='-Bstatic' 12798 lt_prog_compiler_wl_CXX='-Qoption ld ' 12799 ;; 12800 gcx*) 12801 # Green Hills C++ Compiler 12802 lt_prog_compiler_pic_CXX='-PIC' 12803 ;; 12804 *) 12805 ;; 12806 esac 12807 ;; 12808 sunos4*) 12809 case $cc_basename in 12810 CC*) 12811 # Sun C++ 4.x 12812 lt_prog_compiler_pic_CXX='-pic' 12813 lt_prog_compiler_static_CXX='-Bstatic' 12814 ;; 12815 lcc*) 12816 # Lucid 12817 lt_prog_compiler_pic_CXX='-pic' 12818 ;; 12819 *) 12820 ;; 12821 esac 12822 ;; 12823 tandem*) 12824 case $cc_basename in 12825 NCC*) 12826 # NonStop-UX NCC 3.20 12827 lt_prog_compiler_pic_CXX='-KPIC' 12828 ;; 12829 *) 12830 ;; 12831 esac 12832 ;; 12833 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12834 case $cc_basename in 12835 CC*) 12836 lt_prog_compiler_wl_CXX='-Wl,' 12837 lt_prog_compiler_pic_CXX='-KPIC' 12838 lt_prog_compiler_static_CXX='-Bstatic' 12839 ;; 12840 esac 12841 ;; 12842 vxworks*) 12843 ;; 12844 *) 12845 lt_prog_compiler_can_build_shared_CXX=no 12846 ;; 12847 esac 12848 fi 12849 12850{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12851echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } 12852 12853# 12854# Check to make sure the PIC flag actually works. 12855# 12856if test -n "$lt_prog_compiler_pic_CXX"; then 12857 12858{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12859echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } 12860if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 12861 echo $ECHO_N "(cached) $ECHO_C" >&6 12862else 12863 lt_prog_compiler_pic_works_CXX=no 12864 ac_outfile=conftest.$ac_objext 12865 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12866 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12867 # Insert the option either (1) after the last *FLAGS variable, or 12868 # (2) before a word containing "conftest.", or (3) at the end. 12869 # Note that $ac_compile itself does not contain backslashes and begins 12870 # with a dollar sign (not a hyphen), so the echo should work correctly. 12871 # The option is referenced via a variable to avoid confusing sed. 12872 lt_compile=`echo "$ac_compile" | $SED \ 12873 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12874 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12875 -e 's:$: $lt_compiler_flag:'` 12876 (eval echo "\"\$as_me:12876: $lt_compile\"" >&5) 12877 (eval "$lt_compile" 2>conftest.err) 12878 ac_status=$? 12879 cat conftest.err >&5 12880 echo "$as_me:12880: \$? = $ac_status" >&5 12881 if (exit $ac_status) && test -s "$ac_outfile"; then 12882 # The compiler can only warn and ignore the option if not recognized 12883 # So say no if there are warnings other than the usual output. 12884 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12885 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12886 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12887 lt_prog_compiler_pic_works_CXX=yes 12888 fi 12889 fi 12890 $rm conftest* 12891 12892fi 12893{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 12894echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } 12895 12896if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 12897 case $lt_prog_compiler_pic_CXX in 12898 "" | " "*) ;; 12899 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12900 esac 12901else 12902 lt_prog_compiler_pic_CXX= 12903 lt_prog_compiler_can_build_shared_CXX=no 12904fi 12905 12906fi 12907case $host_os in 12908 # For platforms which do not support PIC, -DPIC is meaningless: 12909 *djgpp*) 12910 lt_prog_compiler_pic_CXX= 12911 ;; 12912 *) 12913 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12914 ;; 12915esac 12916 12917# 12918# Check to make sure the static flag actually works. 12919# 12920wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 12921{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12922echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 12923if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 12924 echo $ECHO_N "(cached) $ECHO_C" >&6 12925else 12926 lt_prog_compiler_static_works_CXX=no 12927 save_LDFLAGS="$LDFLAGS" 12928 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12929 printf "$lt_simple_link_test_code" > conftest.$ac_ext 12930 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12931 # The linker can only warn and ignore the option if not recognized 12932 # So say no if there are warnings 12933 if test -s conftest.err; then 12934 # Append any errors to the config.log. 12935 cat conftest.err 1>&5 12936 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 12937 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12938 if diff conftest.exp conftest.er2 >/dev/null; then 12939 lt_prog_compiler_static_works_CXX=yes 12940 fi 12941 else 12942 lt_prog_compiler_static_works_CXX=yes 12943 fi 12944 fi 12945 $rm conftest* 12946 LDFLAGS="$save_LDFLAGS" 12947 12948fi 12949{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 12950echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } 12951 12952if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 12953 : 12954else 12955 lt_prog_compiler_static_CXX= 12956fi 12957 12958 12959{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12960echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 12961if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 12962 echo $ECHO_N "(cached) $ECHO_C" >&6 12963else 12964 lt_cv_prog_compiler_c_o_CXX=no 12965 $rm -r conftest 2>/dev/null 12966 mkdir conftest 12967 cd conftest 12968 mkdir out 12969 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12970 12971 lt_compiler_flag="-o out/conftest2.$ac_objext" 12972 # Insert the option either (1) after the last *FLAGS variable, or 12973 # (2) before a word containing "conftest.", or (3) at the end. 12974 # Note that $ac_compile itself does not contain backslashes and begins 12975 # with a dollar sign (not a hyphen), so the echo should work correctly. 12976 lt_compile=`echo "$ac_compile" | $SED \ 12977 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12978 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12979 -e 's:$: $lt_compiler_flag:'` 12980 (eval echo "\"\$as_me:12980: $lt_compile\"" >&5) 12981 (eval "$lt_compile" 2>out/conftest.err) 12982 ac_status=$? 12983 cat out/conftest.err >&5 12984 echo "$as_me:12984: \$? = $ac_status" >&5 12985 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12986 then 12987 # The compiler can only warn and ignore the option if not recognized 12988 # So say no if there are warnings 12989 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 12990 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12991 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12992 lt_cv_prog_compiler_c_o_CXX=yes 12993 fi 12994 fi 12995 chmod u+w . 2>&5 12996 $rm conftest* 12997 # SGI C++ compiler will create directory out/ii_files/ for 12998 # template instantiation 12999 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 13000 $rm out/* && rmdir out 13001 cd .. 13002 rmdir conftest 13003 $rm conftest* 13004 13005fi 13006{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 13007echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } 13008 13009 13010hard_links="nottested" 13011if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 13012 # do not overwrite the value of need_locks provided by the user 13013 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13014echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 13015 hard_links=yes 13016 $rm conftest* 13017 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13018 touch conftest.a 13019 ln conftest.a conftest.b 2>&5 || hard_links=no 13020 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13021 { echo "$as_me:$LINENO: result: $hard_links" >&5 13022echo "${ECHO_T}$hard_links" >&6; } 13023 if test "$hard_links" = no; then 13024 { echo "$as_me:$LINENO: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 13025echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 13026 need_locks=warn 13027 fi 13028else 13029 need_locks=no 13030fi 13031 13032{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13033echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 13034 13035 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13036 case $host_os in 13037 aix4* | aix5*) 13038 # If we're using GNU nm, then we don't want the "-C" option. 13039 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13040 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 13041 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' 13042 else 13043 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' 13044 fi 13045 ;; 13046 pw32*) 13047 export_symbols_cmds_CXX="$ltdll_cmds" 13048 ;; 13049 cygwin* | mingw*) 13050 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' 13051 ;; 13052 *) 13053 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13054 ;; 13055 esac 13056 13057{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 13058echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 13059test "$ld_shlibs_CXX" = no && can_build_shared=no 13060 13061# 13062# Do we need to explicitly link libc? 13063# 13064case "x$archive_cmds_need_lc_CXX" in 13065x|xyes) 13066 # Assume -lc should be added 13067 archive_cmds_need_lc_CXX=yes 13068 13069 if test "$enable_shared" = yes && test "$GCC" = yes; then 13070 case $archive_cmds_CXX in 13071 *'~'*) 13072 # FIXME: we may have to deal with multi-command sequences. 13073 ;; 13074 '$CC '*) 13075 # Test whether the compiler implicitly links with -lc since on some 13076 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13077 # to ld, don't add -lc before -lgcc. 13078 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 13079echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 13080 $rm conftest* 13081 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13082 13083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13084 (eval $ac_compile) 2>&5 13085 ac_status=$? 13086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13087 (exit $ac_status); } 2>conftest.err; then 13088 soname=conftest 13089 lib=conftest 13090 libobjs=conftest.$ac_objext 13091 deplibs= 13092 wl=$lt_prog_compiler_wl_CXX 13093 pic_flag=$lt_prog_compiler_pic_CXX 13094 compiler_flags=-v 13095 linker_flags=-v 13096 verstring= 13097 output_objdir=. 13098 libname=conftest 13099 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 13100 allow_undefined_flag_CXX= 13101 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 13102 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 13103 ac_status=$? 13104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13105 (exit $ac_status); } 13106 then 13107 archive_cmds_need_lc_CXX=no 13108 else 13109 archive_cmds_need_lc_CXX=yes 13110 fi 13111 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 13112 else 13113 cat conftest.err 1>&5 13114 fi 13115 $rm conftest* 13116 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 13117echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } 13118 ;; 13119 esac 13120 fi 13121 ;; 13122esac 13123 13124{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 13125echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 13126library_names_spec= 13127libname_spec='lib$name' 13128soname_spec= 13129shrext_cmds=".so" 13130postinstall_cmds= 13131postuninstall_cmds= 13132finish_cmds= 13133finish_eval= 13134shlibpath_var= 13135shlibpath_overrides_runpath=unknown 13136version_type=none 13137dynamic_linker="$host_os ld.so" 13138sys_lib_dlsearch_path_spec="/lib /usr/lib" 13139if test "$GCC" = yes; then 13140 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13141 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 13142 # if the path contains ";" then we assume it to be the separator 13143 # otherwise default to the standard path separator (i.e. ":") - it is 13144 # assumed that no part of a normal pathname contains ";" but that should 13145 # okay in the real world where ";" in dirpaths is itself problematic. 13146 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13147 else 13148 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13149 fi 13150else 13151 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13152fi 13153tmp="$sys_lib_search_path_spec" 13154sys_lib_search_path_spec= 13155sp= 13156for i in $tmp 13157do 13158 test -d $i && sys_lib_search_path_spec="$sys_lib_search_path_spec$sp$i" 13159 sp=" " 13160done 13161 13162need_lib_prefix=unknown 13163hardcode_into_libs=no 13164 13165# when you set need_version to no, make sure it does not cause -set_version 13166# flags to be left without arguments 13167need_version=unknown 13168 13169case $host_os in 13170aix3*) 13171 version_type=linux 13172 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13173 shlibpath_var=LIBPATH 13174 13175 # AIX 3 has no versioning support, so we append a major version to the name. 13176 soname_spec='${libname}${release}${shared_ext}$major' 13177 ;; 13178 13179aix4* | aix5*) 13180 version_type=linux 13181 need_lib_prefix=no 13182 need_version=no 13183 hardcode_into_libs=yes 13184 if test "$host_cpu" = ia64; then 13185 # AIX 5 supports IA64 13186 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13187 shlibpath_var=LD_LIBRARY_PATH 13188 else 13189 # With GCC up to 2.95.x, collect2 would create an import file 13190 # for dependence libraries. The import file would start with 13191 # the line '#! .'. This would cause the generated library to 13192 # depend on '.', always an invalid library. This was fixed in 13193 # development snapshots of GCC prior to 3.0. 13194 case $host_os in 13195 aix4 | aix4.[01] | aix4.[01].*) 13196 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13197 echo ' yes ' 13198 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 13199 : 13200 else 13201 can_build_shared=no 13202 fi 13203 ;; 13204 esac 13205 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13206 # soname into executable. Probably we can add versioning support to 13207 # collect2, so additional links can be useful in future. 13208 if test "$aix_use_runtimelinking" = yes; then 13209 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13210 # instead of lib<name>.a to let people know that these are not 13211 # typical AIX shared libraries. 13212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13213 else 13214 # We preserve .a as extension for shared libraries through AIX4.2 13215 # and later when we are not doing run time linking. 13216 library_names_spec='${libname}${release}.a $libname.a' 13217 soname_spec='${libname}${release}${shared_ext}$major' 13218 fi 13219 shlibpath_var=LIBPATH 13220 fi 13221 ;; 13222 13223amigaos*) 13224 library_names_spec='$libname.ixlibrary $libname.a' 13225 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13226 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' 13227 ;; 13228 13229beos*) 13230 library_names_spec='${libname}${shared_ext}' 13231 dynamic_linker="$host_os ld.so" 13232 shlibpath_var=LIBRARY_PATH 13233 ;; 13234 13235bsdi[45]*) 13236 version_type=linux 13237 need_version=no 13238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13239 soname_spec='${libname}${release}${shared_ext}$major' 13240 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13241 shlibpath_var=LD_LIBRARY_PATH 13242 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13243 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13244 # the default ld.so.conf also contains /usr/contrib/lib and 13245 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13246 # libtool to hard-code these into programs 13247 ;; 13248 13249cygwin* | mingw* | pw32*) 13250 version_type=windows 13251 shrext_cmds=".dll" 13252 need_version=no 13253 need_lib_prefix=no 13254 13255 case $GCC,$host_os in 13256 yes,cygwin* | yes,mingw* | yes,pw32*) 13257 library_names_spec='$libname.dll.a' 13258 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13259 postinstall_cmds='base_file=`basename \${file}`~ 13260 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 13261 dldir=$destdir/`dirname \$dlpath`~ 13262 test -d \$dldir || mkdir -p \$dldir~ 13263 $install_prog $dir/$dlname \$dldir/$dlname~ 13264 chmod a+x \$dldir/$dlname' 13265 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13266 dlpath=$dir/\$dldll~ 13267 $rm \$dlpath' 13268 shlibpath_overrides_runpath=yes 13269 13270 case $host_os in 13271 cygwin*) 13272 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13273 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13274 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 13275 ;; 13276 mingw*) 13277 # MinGW DLLs use traditional 'lib' prefix 13278 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13279 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13280 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 13281 # It is most probably a Windows format PATH printed by 13282 # mingw gcc, but we are running on Cygwin. Gcc prints its search 13283 # path with ; separators, and with drive letters. We can handle the 13284 # drive letters (cygwin fileutils understands them), so leave them, 13285 # especially as we might pass files found there to a mingw objdump, 13286 # which wouldn't understand a cygwinified path. Ahh. 13287 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13288 else 13289 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13290 fi 13291 ;; 13292 pw32*) 13293 # pw32 DLLs use 'pw' prefix rather than 'lib' 13294 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13295 ;; 13296 esac 13297 ;; 13298 13299 *) 13300 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13301 ;; 13302 esac 13303 dynamic_linker='Win32 ld.exe' 13304 # FIXME: first we should search . and the directory the executable is in 13305 shlibpath_var=PATH 13306 ;; 13307 13308darwin* | rhapsody*) 13309 dynamic_linker="$host_os dyld" 13310 version_type=darwin 13311 need_lib_prefix=no 13312 need_version=no 13313 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13314 soname_spec='${libname}${release}${major}$shared_ext' 13315 shlibpath_overrides_runpath=yes 13316 shlibpath_var=DYLD_LIBRARY_PATH 13317 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13318 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 13319 if test "$GCC" = yes; then 13320 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 13321 else 13322 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 13323 fi 13324 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13325 ;; 13326 13327dgux*) 13328 version_type=linux 13329 need_lib_prefix=no 13330 need_version=no 13331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13332 soname_spec='${libname}${release}${shared_ext}$major' 13333 shlibpath_var=LD_LIBRARY_PATH 13334 ;; 13335 13336freebsd1*) 13337 dynamic_linker=no 13338 ;; 13339 13340kfreebsd*-gnu) 13341 version_type=linux 13342 need_lib_prefix=no 13343 need_version=no 13344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13345 soname_spec='${libname}${release}${shared_ext}$major' 13346 shlibpath_var=LD_LIBRARY_PATH 13347 shlibpath_overrides_runpath=no 13348 hardcode_into_libs=yes 13349 dynamic_linker='GNU ld.so' 13350 ;; 13351 13352freebsd* | dragonfly*) 13353 # DragonFly does not have aout. When/if they implement a new 13354 # versioning mechanism, adjust this. 13355 if test -x /usr/bin/objformat; then 13356 objformat=`/usr/bin/objformat` 13357 else 13358 case $host_os in 13359 freebsd[123]*) objformat=aout ;; 13360 *) objformat=elf ;; 13361 esac 13362 fi 13363 version_type=freebsd-$objformat 13364 case $version_type in 13365 freebsd-elf*) 13366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13367 need_version=no 13368 need_lib_prefix=no 13369 ;; 13370 freebsd-*) 13371 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13372 need_version=yes 13373 ;; 13374 esac 13375 shlibpath_var=LD_LIBRARY_PATH 13376 case $host_os in 13377 freebsd2*) 13378 shlibpath_overrides_runpath=yes 13379 ;; 13380 freebsd3.[01]* | freebsdelf3.[01]*) 13381 shlibpath_overrides_runpath=yes 13382 hardcode_into_libs=yes 13383 ;; 13384 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13385 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13386 shlibpath_overrides_runpath=no 13387 hardcode_into_libs=yes 13388 ;; 13389 *) # from 4.6 on, and DragonFly 13390 shlibpath_overrides_runpath=yes 13391 hardcode_into_libs=yes 13392 ;; 13393 esac 13394 ;; 13395 13396gnu*) 13397 version_type=linux 13398 need_lib_prefix=no 13399 need_version=no 13400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13401 soname_spec='${libname}${release}${shared_ext}$major' 13402 shlibpath_var=LD_LIBRARY_PATH 13403 hardcode_into_libs=yes 13404 ;; 13405 13406hpux9* | hpux10* | hpux11*) 13407 # Give a soname corresponding to the major version so that dld.sl refuses to 13408 # link against other versions. 13409 version_type=sunos 13410 need_lib_prefix=no 13411 need_version=no 13412 case $host_cpu in 13413 ia64*) 13414 shrext_cmds='.so' 13415 hardcode_into_libs=yes 13416 dynamic_linker="$host_os dld.so" 13417 shlibpath_var=LD_LIBRARY_PATH 13418 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13420 soname_spec='${libname}${release}${shared_ext}$major' 13421 if test "X$HPUX_IA64_MODE" = X32; then 13422 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13423 else 13424 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13425 fi 13426 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13427 ;; 13428 hppa*64*) 13429 shrext_cmds='.sl' 13430 hardcode_into_libs=yes 13431 dynamic_linker="$host_os dld.sl" 13432 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13433 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13435 soname_spec='${libname}${release}${shared_ext}$major' 13436 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13437 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13438 ;; 13439 *) 13440 shrext_cmds='.sl' 13441 dynamic_linker="$host_os dld.sl" 13442 shlibpath_var=SHLIB_PATH 13443 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13445 soname_spec='${libname}${release}${shared_ext}$major' 13446 ;; 13447 esac 13448 # HP-UX runs *really* slowly unless shared libraries are mode 555. 13449 postinstall_cmds='chmod 555 $lib' 13450 ;; 13451 13452interix3*) 13453 version_type=linux 13454 need_lib_prefix=no 13455 need_version=no 13456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13457 soname_spec='${libname}${release}${shared_ext}$major' 13458 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13459 shlibpath_var=LD_LIBRARY_PATH 13460 shlibpath_overrides_runpath=no 13461 hardcode_into_libs=yes 13462 ;; 13463 13464irix5* | irix6* | nonstopux*) 13465 case $host_os in 13466 nonstopux*) version_type=nonstopux ;; 13467 *) 13468 if test "$lt_cv_prog_gnu_ld" = yes; then 13469 version_type=linux 13470 else 13471 version_type=irix 13472 fi ;; 13473 esac 13474 need_lib_prefix=no 13475 need_version=no 13476 soname_spec='${libname}${release}${shared_ext}$major' 13477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13478 case $host_os in 13479 irix5* | nonstopux*) 13480 libsuff= shlibsuff= 13481 ;; 13482 *) 13483 case $LD in # libtool.m4 will add one of these switches to LD 13484 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13485 libsuff= shlibsuff= libmagic=32-bit;; 13486 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13487 libsuff=32 shlibsuff=N32 libmagic=N32;; 13488 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13489 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13490 *) libsuff= shlibsuff= libmagic=never-match;; 13491 esac 13492 ;; 13493 esac 13494 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13495 shlibpath_overrides_runpath=no 13496 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13497 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13498 hardcode_into_libs=yes 13499 ;; 13500 13501# No shared lib support for Linux oldld, aout, or coff. 13502linux*oldld* | linux*aout* | linux*coff*) 13503 dynamic_linker=no 13504 ;; 13505 13506# This must be Linux ELF. 13507linux*) 13508 version_type=linux 13509 need_lib_prefix=no 13510 need_version=no 13511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13512 soname_spec='${libname}${release}${shared_ext}$major' 13513 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13514 shlibpath_var=LD_LIBRARY_PATH 13515 shlibpath_overrides_runpath=no 13516 # This implies no fast_install, which is unacceptable. 13517 # Some rework will be needed to allow for fast_install 13518 # before this can be enabled. 13519 hardcode_into_libs=yes 13520 13521 # Append ld.so.conf contents to the search path 13522 if test -f /etc/ld.so.conf; then 13523 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/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 13524 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 13525 fi 13526 13527 # We used to test for /lib/ld.so.1 and disable shared libraries on 13528 # powerpc, because MkLinux only supported shared libraries with the 13529 # GNU dynamic linker. Since this was broken with cross compilers, 13530 # most powerpc-linux boxes support dynamic linking these days and 13531 # people can always --disable-shared, the test was removed, and we 13532 # assume the GNU/Linux dynamic linker is in use. 13533 dynamic_linker='GNU/Linux ld.so' 13534 ;; 13535 13536mirbsd*) 13537 version_type=linux 13538 sys_lib_dlsearch_path_spec="/usr/lib" 13539 need_lib_prefix=no 13540 need_version=no 13541 library_names_spec='${libname}${release}${shared_ext}$versuffix2 ${libname}${shared_ext}$versuffix2' 13542 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13543 shlibpath_var=LD_LIBRARY_PATH 13544 shlibpath_overrides_runpath=yes 13545 ;; 13546 13547knetbsd*-gnu) 13548 version_type=linux 13549 need_lib_prefix=no 13550 need_version=no 13551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13552 soname_spec='${libname}${release}${shared_ext}$major' 13553 shlibpath_var=LD_LIBRARY_PATH 13554 shlibpath_overrides_runpath=no 13555 hardcode_into_libs=yes 13556 dynamic_linker='GNU ld.so' 13557 ;; 13558 13559netbsd*) 13560 version_type=sunos 13561 need_lib_prefix=no 13562 need_version=no 13563 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13565 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13566 dynamic_linker='NetBSD (a.out) ld.so' 13567 else 13568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13569 soname_spec='${libname}${release}${shared_ext}$major' 13570 dynamic_linker='NetBSD ld.elf_so' 13571 fi 13572 shlibpath_var=LD_LIBRARY_PATH 13573 shlibpath_overrides_runpath=yes 13574 hardcode_into_libs=yes 13575 ;; 13576 13577newsos6) 13578 version_type=linux 13579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13580 shlibpath_var=LD_LIBRARY_PATH 13581 shlibpath_overrides_runpath=yes 13582 ;; 13583 13584nto-qnx*) 13585 version_type=linux 13586 need_lib_prefix=no 13587 need_version=no 13588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13589 soname_spec='${libname}${release}${shared_ext}$major' 13590 shlibpath_var=LD_LIBRARY_PATH 13591 shlibpath_overrides_runpath=yes 13592 ;; 13593 13594openbsd*) 13595 version_type=linux 13596 sys_lib_dlsearch_path_spec="/usr/lib" 13597 need_lib_prefix=no 13598 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 13599 case $host_os in 13600 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 13601 *) need_version=no ;; 13602 esac 13603 library_names_spec='${libname}${release}${shared_ext}$versuffix2 ${libname}${shared_ext}$versuffix2' 13604 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13605 shlibpath_var=LD_LIBRARY_PATH 13606 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13607 case $host_os in 13608 openbsd2.[89] | openbsd2.[89].*) 13609 shlibpath_overrides_runpath=no 13610 ;; 13611 *) 13612 shlibpath_overrides_runpath=yes 13613 ;; 13614 esac 13615 else 13616 shlibpath_overrides_runpath=yes 13617 fi 13618 ;; 13619 13620os2*) 13621 libname_spec='$name' 13622 shrext_cmds=".dll" 13623 need_lib_prefix=no 13624 library_names_spec='$libname${shared_ext} $libname.a' 13625 dynamic_linker='OS/2 ld.exe' 13626 shlibpath_var=LIBPATH 13627 ;; 13628 13629osf3* | osf4* | osf5*) 13630 version_type=osf 13631 need_lib_prefix=no 13632 need_version=no 13633 soname_spec='${libname}${release}${shared_ext}$major' 13634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13635 shlibpath_var=LD_LIBRARY_PATH 13636 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13637 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13638 ;; 13639 13640rdos*) 13641 dynamic_linker=no 13642 ;; 13643 13644solaris*) 13645 version_type=linux 13646 need_lib_prefix=no 13647 need_version=no 13648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13649 soname_spec='${libname}${release}${shared_ext}$major' 13650 shlibpath_var=LD_LIBRARY_PATH 13651 shlibpath_overrides_runpath=yes 13652 hardcode_into_libs=yes 13653 # ldd complains unless libraries are executable 13654 postinstall_cmds='chmod +x $lib' 13655 ;; 13656 13657sunos4*) 13658 version_type=sunos 13659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13660 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13661 shlibpath_var=LD_LIBRARY_PATH 13662 shlibpath_overrides_runpath=yes 13663 if test "$with_gnu_ld" = yes; then 13664 need_lib_prefix=no 13665 fi 13666 need_version=yes 13667 ;; 13668 13669sysv4 | sysv4.3*) 13670 version_type=linux 13671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13672 soname_spec='${libname}${release}${shared_ext}$major' 13673 shlibpath_var=LD_LIBRARY_PATH 13674 case $host_vendor in 13675 sni) 13676 shlibpath_overrides_runpath=no 13677 need_lib_prefix=no 13678 export_dynamic_flag_spec='${wl}-Blargedynsym' 13679 runpath_var=LD_RUN_PATH 13680 ;; 13681 siemens) 13682 need_lib_prefix=no 13683 ;; 13684 motorola) 13685 need_lib_prefix=no 13686 need_version=no 13687 shlibpath_overrides_runpath=no 13688 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13689 ;; 13690 esac 13691 ;; 13692 13693sysv4*MP*) 13694 if test -d /usr/nec ;then 13695 version_type=linux 13696 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13697 soname_spec='$libname${shared_ext}.$major' 13698 shlibpath_var=LD_LIBRARY_PATH 13699 fi 13700 ;; 13701 13702sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13703 version_type=freebsd-elf 13704 need_lib_prefix=no 13705 need_version=no 13706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13707 soname_spec='${libname}${release}${shared_ext}$major' 13708 shlibpath_var=LD_LIBRARY_PATH 13709 hardcode_into_libs=yes 13710 if test "$with_gnu_ld" = yes; then 13711 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13712 shlibpath_overrides_runpath=no 13713 else 13714 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13715 shlibpath_overrides_runpath=yes 13716 case $host_os in 13717 sco3.2v5*) 13718 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13719 ;; 13720 esac 13721 fi 13722 sys_lib_dlsearch_path_spec='/usr/lib' 13723 ;; 13724 13725uts4*) 13726 version_type=linux 13727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13728 soname_spec='${libname}${release}${shared_ext}$major' 13729 shlibpath_var=LD_LIBRARY_PATH 13730 ;; 13731 13732*) 13733 dynamic_linker=no 13734 ;; 13735esac 13736{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13737echo "${ECHO_T}$dynamic_linker" >&6; } 13738test "$dynamic_linker" = no && can_build_shared=no 13739 13740variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13741if test "$GCC" = yes; then 13742 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13743fi 13744 13745{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13746echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 13747hardcode_action_CXX= 13748if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13749 test -n "$runpath_var_CXX" || \ 13750 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13751 13752 # We can hardcode non-existant directories. 13753 if test "$hardcode_direct_CXX" != no && 13754 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13755 # have to relink, otherwise we might link with an installed library 13756 # when we should be linking with a yet-to-be-installed one 13757 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13758 test "$hardcode_minus_L_CXX" != no; then 13759 # Linking always hardcodes the temporary library directory. 13760 hardcode_action_CXX=relink 13761 else 13762 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13763 hardcode_action_CXX=immediate 13764 fi 13765else 13766 # We cannot hardcode anything, or else we can only hardcode existing 13767 # directories. 13768 hardcode_action_CXX=unsupported 13769fi 13770{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13771echo "${ECHO_T}$hardcode_action_CXX" >&6; } 13772 13773if test "$hardcode_action_CXX" = relink; then 13774 # Fast installation is not supported 13775 enable_fast_install=no 13776elif test "$shlibpath_overrides_runpath" = yes || 13777 test "$enable_shared" = no; then 13778 # Fast installation is not necessary 13779 enable_fast_install=needless 13780fi 13781 13782 13783# The else clause should only fire when bootstrapping the 13784# libtool distribution, otherwise you forgot to ship ltmain.sh 13785# with your package, and you will get complaints that there are 13786# no rules to generate ltmain.sh. 13787if test -f "$ltmain"; then 13788 # See if we are running on zsh, and set the options which allow our commands through 13789 # without removal of \ escapes. 13790 if test -n "${ZSH_VERSION+set}" ; then 13791 setopt NO_GLOB_SUBST 13792 fi 13793 # Now quote all the things that may contain metacharacters while being 13794 # careful not to overquote the AC_SUBSTed values. We take copies of the 13795 # variables and quote the copies for generation of the libtool script. 13796 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13797 SED SHELL STRIP \ 13798 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13799 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13800 deplibs_check_method reload_flag reload_cmds need_locks \ 13801 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13802 lt_cv_sys_global_symbol_to_c_name_address \ 13803 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13804 old_postinstall_cmds old_postuninstall_cmds \ 13805 compiler_CXX \ 13806 CC_CXX \ 13807 LD_CXX \ 13808 lt_prog_compiler_wl_CXX \ 13809 lt_prog_compiler_pic_CXX \ 13810 lt_prog_compiler_static_CXX \ 13811 lt_prog_compiler_no_builtin_flag_CXX \ 13812 export_dynamic_flag_spec_CXX \ 13813 thread_safe_flag_spec_CXX \ 13814 whole_archive_flag_spec_CXX \ 13815 enable_shared_with_static_runtimes_CXX \ 13816 old_archive_cmds_CXX \ 13817 old_archive_from_new_cmds_CXX \ 13818 predep_objects_CXX \ 13819 postdep_objects_CXX \ 13820 predeps_CXX \ 13821 postdeps_CXX \ 13822 compiler_lib_search_path_CXX \ 13823 archive_cmds_CXX \ 13824 archive_expsym_cmds_CXX \ 13825 postinstall_cmds_CXX \ 13826 postuninstall_cmds_CXX \ 13827 old_archive_from_expsyms_cmds_CXX \ 13828 allow_undefined_flag_CXX \ 13829 no_undefined_flag_CXX \ 13830 export_symbols_cmds_CXX \ 13831 hardcode_libdir_flag_spec_CXX \ 13832 hardcode_libdir_flag_spec_ld_CXX \ 13833 hardcode_libdir_separator_CXX \ 13834 hardcode_automatic_CXX \ 13835 module_cmds_CXX \ 13836 module_expsym_cmds_CXX \ 13837 lt_cv_prog_compiler_c_o_CXX \ 13838 exclude_expsyms_CXX \ 13839 include_expsyms_CXX; do 13840 13841 case $var in 13842 old_archive_cmds_CXX | \ 13843 old_archive_from_new_cmds_CXX | \ 13844 archive_cmds_CXX | \ 13845 archive_expsym_cmds_CXX | \ 13846 module_cmds_CXX | \ 13847 module_expsym_cmds_CXX | \ 13848 old_archive_from_expsyms_cmds_CXX | \ 13849 export_symbols_cmds_CXX | \ 13850 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13851 postinstall_cmds | postuninstall_cmds | \ 13852 old_postinstall_cmds | old_postuninstall_cmds | \ 13853 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13854 # Double-quote double-evaled strings. 13855 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13856 ;; 13857 *) 13858 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13859 ;; 13860 esac 13861 done 13862 13863 case $lt_echo in 13864 *'\$0 --fallback-echo"') 13865 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13866 ;; 13867 esac 13868 13869cfgfile="$ofile" 13870 13871 cat <<__EOF__ >> "$cfgfile" 13872# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13873 13874# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13875 13876# Shell to use when invoking shell scripts. 13877SHELL=$lt_SHELL 13878 13879# Whether or not to build shared libraries. 13880build_libtool_libs=$enable_shared 13881 13882# Whether or not to build static libraries. 13883build_old_libs=$enable_static 13884 13885# Whether or not to add -lc for building shared libraries. 13886build_libtool_need_lc=$archive_cmds_need_lc_CXX 13887 13888# Whether or not to disallow shared libs when runtime libs are static 13889allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13890 13891# Whether or not to optimize for fast installation. 13892fast_install=$enable_fast_install 13893 13894# The host system. 13895host_alias=$host_alias 13896host=$host 13897host_os=$host_os 13898 13899# The build system. 13900build_alias=$build_alias 13901build=$build 13902build_os=$build_os 13903 13904# An echo program that does not interpret backslashes. 13905echo=$lt_echo 13906 13907# The archiver. 13908AR=$lt_AR 13909AR_FLAGS=$lt_AR_FLAGS 13910 13911# A C compiler. 13912LTCC=$lt_LTCC 13913 13914# LTCC compiler flags. 13915LTCFLAGS=$lt_LTCFLAGS 13916 13917# A language-specific compiler. 13918CC=$lt_compiler_CXX 13919 13920# Is the compiler the GNU C compiler? 13921with_gcc=$GCC_CXX 13922 13923# An ERE matcher. 13924EGREP=$lt_EGREP 13925 13926# The linker used to build libraries. 13927LD=$lt_LD_CXX 13928 13929# Whether we need hard or soft links. 13930LN_S=$lt_LN_S 13931 13932# A BSD-compatible nm program. 13933NM=$lt_NM 13934 13935# A symbol stripping program 13936STRIP=$lt_STRIP 13937 13938# Used to examine libraries when file_magic_cmd begins "file" 13939MAGIC_CMD=$MAGIC_CMD 13940 13941# Used on cygwin: DLL creation program. 13942DLLTOOL="$DLLTOOL" 13943 13944# Used on cygwin: object dumper. 13945OBJDUMP="$OBJDUMP" 13946 13947# Used on cygwin: assembler. 13948AS="$AS" 13949 13950# The name of the directory that contains temporary libtool files. 13951objdir=$objdir 13952 13953# How to create reloadable object files. 13954reload_flag=$lt_reload_flag 13955reload_cmds=$lt_reload_cmds 13956 13957# How to pass a linker flag through the compiler. 13958wl=$lt_lt_prog_compiler_wl_CXX 13959 13960# Object file suffix (normally "o"). 13961objext="$ac_objext" 13962 13963# Old archive suffix (normally "a"). 13964libext="$libext" 13965 13966# Shared library suffix (normally ".so"). 13967shrext_cmds='$shrext_cmds' 13968 13969# Executable file suffix (normally ""). 13970exeext="$exeext" 13971 13972# Additional compiler flags for building library objects. 13973pic_flag=$lt_lt_prog_compiler_pic_CXX 13974pic_mode=$pic_mode 13975 13976# What is the maximum length of a command? 13977max_cmd_len=$lt_cv_sys_max_cmd_len 13978 13979# Does compiler simultaneously support -c and -o options? 13980compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13981 13982# Must we lock files when doing compilation? 13983need_locks=$lt_need_locks 13984 13985# Do we need the lib prefix for modules? 13986need_lib_prefix=$need_lib_prefix 13987 13988# Do we need a version for libraries? 13989need_version=$need_version 13990 13991# Whether dlopen is supported. 13992dlopen_support=$enable_dlopen 13993 13994# Whether dlopen of programs is supported. 13995dlopen_self=$enable_dlopen_self 13996 13997# Whether dlopen of statically linked programs is supported. 13998dlopen_self_static=$enable_dlopen_self_static 13999 14000# Compiler flag to prevent dynamic linking. 14001link_static_flag=$lt_lt_prog_compiler_static_CXX 14002 14003# Compiler flag to turn off builtin functions. 14004no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 14005 14006# Compiler flag to allow reflexive dlopens. 14007export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 14008 14009# Compiler flag to generate shared objects directly from archives. 14010whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 14011 14012# Compiler flag to generate thread-safe objects. 14013thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 14014 14015# Library versioning type. 14016version_type=$version_type 14017 14018# Format of library name prefix. 14019libname_spec=$lt_libname_spec 14020 14021# List of archive names. First name is the real one, the rest are links. 14022# The last name is the one that the linker finds with -lNAME. 14023library_names_spec=$lt_library_names_spec 14024 14025# The coded name of the library, if different from the real name. 14026soname_spec=$lt_soname_spec 14027 14028# Commands used to build and install an old-style archive. 14029RANLIB=$lt_RANLIB 14030old_archive_cmds=$lt_old_archive_cmds_CXX 14031old_postinstall_cmds=$lt_old_postinstall_cmds 14032old_postuninstall_cmds=$lt_old_postuninstall_cmds 14033 14034# Create an old-style archive from a shared archive. 14035old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 14036 14037# Create a temporary old-style archive to link instead of a shared archive. 14038old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 14039 14040# Commands used to build and install a shared archive. 14041archive_cmds=$lt_archive_cmds_CXX 14042archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 14043postinstall_cmds=$lt_postinstall_cmds 14044postuninstall_cmds=$lt_postuninstall_cmds 14045 14046# Commands used to build a loadable module (assumed same as above if empty) 14047module_cmds=$lt_module_cmds_CXX 14048module_expsym_cmds=$lt_module_expsym_cmds_CXX 14049 14050# Commands to strip libraries. 14051old_striplib=$lt_old_striplib 14052striplib=$lt_striplib 14053 14054# Dependencies to place before the objects being linked to create a 14055# shared library. 14056predep_objects=$lt_predep_objects_CXX 14057 14058# Dependencies to place after the objects being linked to create a 14059# shared library. 14060postdep_objects=$lt_postdep_objects_CXX 14061 14062# Dependencies to place before the objects being linked to create a 14063# shared library. 14064predeps=$lt_predeps_CXX 14065 14066# Dependencies to place after the objects being linked to create a 14067# shared library. 14068postdeps=$lt_postdeps_CXX 14069 14070# The library search path used internally by the compiler when linking 14071# a shared library. 14072compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 14073 14074# Method to check whether dependent libraries are shared objects. 14075deplibs_check_method=$lt_deplibs_check_method 14076 14077# Command to use when deplibs_check_method == file_magic. 14078file_magic_cmd=$lt_file_magic_cmd 14079 14080# Flag that allows shared libraries with undefined symbols to be built. 14081allow_undefined_flag=$lt_allow_undefined_flag_CXX 14082 14083# Flag that forces no undefined symbols. 14084no_undefined_flag=$lt_no_undefined_flag_CXX 14085 14086# Commands used to finish a libtool library installation in a directory. 14087finish_cmds=$lt_finish_cmds 14088 14089# Same as above, but a single script fragment to be evaled but not shown. 14090finish_eval=$lt_finish_eval 14091 14092# Take the output of nm and produce a listing of raw symbols and C names. 14093global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14094 14095# Transform the output of nm in a proper C declaration 14096global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14097 14098# Transform the output of nm in a C name address pair 14099global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14100 14101# This is the shared library runtime path variable. 14102runpath_var=$runpath_var 14103 14104# This is the shared library path variable. 14105shlibpath_var=$shlibpath_var 14106 14107# Is shlibpath searched before the hard-coded library search path? 14108shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14109 14110# How to hardcode a shared library path into an executable. 14111hardcode_action=$hardcode_action_CXX 14112 14113# Whether we should hardcode library paths into libraries. 14114hardcode_into_libs=$hardcode_into_libs 14115 14116# Flag to hardcode \$libdir into a binary during linking. 14117# This must work even if \$libdir does not exist. 14118hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 14119 14120# If ld is used when linking, flag to hardcode \$libdir into 14121# a binary during linking. This must work even if \$libdir does 14122# not exist. 14123hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 14124 14125# Whether we need a single -rpath flag with a separated argument. 14126hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 14127 14128# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 14129# resulting binary. 14130hardcode_direct=$hardcode_direct_CXX 14131 14132# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 14133# resulting binary. 14134hardcode_minus_L=$hardcode_minus_L_CXX 14135 14136# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 14137# the resulting binary. 14138hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 14139 14140# Set to yes if building a shared library automatically hardcodes DIR into the library 14141# and all subsequent libraries and executables linked against it. 14142hardcode_automatic=$hardcode_automatic_CXX 14143 14144# Variables whose values should be saved in libtool wrapper scripts and 14145# restored at relink time. 14146variables_saved_for_relink="$variables_saved_for_relink" 14147 14148# Whether libtool must link a program against all its dependency libraries. 14149link_all_deplibs=$link_all_deplibs_CXX 14150 14151# Compile-time system search path for libraries 14152sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14153 14154# Run-time system search path for libraries 14155sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14156 14157# Fix the shell variable \$srcfile for the compiler. 14158fix_srcfile_path="$fix_srcfile_path_CXX" 14159 14160# Set to yes if exported symbols are required. 14161always_export_symbols=$always_export_symbols_CXX 14162 14163# The commands to list exported symbols. 14164export_symbols_cmds=$lt_export_symbols_cmds_CXX 14165 14166# The commands to extract the exported symbol list from a shared archive. 14167extract_expsyms_cmds=$lt_extract_expsyms_cmds 14168 14169# Symbols that should not be listed in the preloaded symbols. 14170exclude_expsyms=$lt_exclude_expsyms_CXX 14171 14172# Symbols that must always be exported. 14173include_expsyms=$lt_include_expsyms_CXX 14174 14175# ### END LIBTOOL TAG CONFIG: $tagname 14176 14177__EOF__ 14178 14179 14180else 14181 # If there is no Makefile yet, we rely on a make rule to execute 14182 # 'config.status --recheck' to rerun these tests and create the 14183 # libtool script then. 14184 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 14185 if test -f "$ltmain_in"; then 14186 test -f Makefile && make "$ltmain" 14187 fi 14188fi 14189 14190 14191ac_ext=c 14192ac_cpp='$CPP $CPPFLAGS' 14193ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14194ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14195ac_compiler_gnu=$ac_cv_c_compiler_gnu 14196 14197CC=$lt_save_CC 14198LDCXX=$LD 14199LD=$lt_save_LD 14200GCC=$lt_save_GCC 14201with_gnu_ldcxx=$with_gnu_ld 14202with_gnu_ld=$lt_save_with_gnu_ld 14203lt_cv_path_LDCXX=$lt_cv_path_LD 14204lt_cv_path_LD=$lt_save_path_LD 14205lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 14206lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 14207 14208 else 14209 tagname="" 14210 fi 14211 ;; 14212 14213 F77) 14214 if test -n "$F77" && test "X$F77" != "Xno"; then 14215 14216 14217 14218ac_ext=f 14219ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 14220ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14221ac_compiler_gnu=$ac_cv_f77_compiler_gnu 14222 14223 14224archive_cmds_need_lc_F77=no 14225allow_undefined_flag_F77= 14226always_export_symbols_F77=no 14227archive_expsym_cmds_F77= 14228export_dynamic_flag_spec_F77= 14229hardcode_direct_F77=no 14230hardcode_libdir_flag_spec_F77= 14231hardcode_libdir_flag_spec_ld_F77= 14232hardcode_libdir_separator_F77= 14233hardcode_minus_L_F77=no 14234hardcode_automatic_F77=no 14235module_cmds_F77= 14236module_expsym_cmds_F77= 14237link_all_deplibs_F77=unknown 14238old_archive_cmds_F77=$old_archive_cmds 14239no_undefined_flag_F77= 14240whole_archive_flag_spec_F77= 14241enable_shared_with_static_runtimes_F77=no 14242 14243# Source file extension for f77 test sources. 14244ac_ext=f 14245 14246# Object file extension for compiled f77 test sources. 14247objext=o 14248objext_F77=$objext 14249 14250# Code to be used in simple compile tests 14251lt_simple_compile_test_code=" subroutine t\n return\n end\n" 14252 14253# Code to be used in simple link tests 14254lt_simple_link_test_code=" program t\n end\n" 14255 14256# ltmain only uses $CC for tagged configurations so make sure $CC is set. 14257 14258# If no C compiler was specified, use CC. 14259LTCC=${LTCC-"$CC"} 14260 14261# If no C compiler flags were specified, use CFLAGS. 14262LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14263 14264# Allow CC to be a program name with arguments. 14265compiler=$CC 14266 14267 14268# save warnings/boilerplate of simple test code 14269ac_outfile=conftest.$ac_objext 14270printf "$lt_simple_compile_test_code" >conftest.$ac_ext 14271eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14272_lt_compiler_boilerplate=`cat conftest.err` 14273$rm conftest* 14274 14275ac_outfile=conftest.$ac_objext 14276printf "$lt_simple_link_test_code" >conftest.$ac_ext 14277eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14278_lt_linker_boilerplate=`cat conftest.err` 14279$rm conftest* 14280 14281 14282# Allow CC to be a program name with arguments. 14283lt_save_CC="$CC" 14284CC=${F77-"f77"} 14285compiler=$CC 14286compiler_F77=$CC 14287for cc_temp in $compiler""; do 14288 case $cc_temp in 14289 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14290 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14291 \-*) ;; 14292 *) break;; 14293 esac 14294done 14295cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14296 14297 14298{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 14299echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 14300{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 14301echo "${ECHO_T}$can_build_shared" >&6; } 14302 14303{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 14304echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 14305test "$can_build_shared" = "no" && enable_shared=no 14306 14307# On AIX, shared libraries and static libraries use the same namespace, and 14308# are all built from PIC. 14309case $host_os in 14310aix3*) 14311 test "$enable_shared" = yes && enable_static=no 14312 if test -n "$RANLIB"; then 14313 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14314 postinstall_cmds='$RANLIB $lib' 14315 fi 14316 ;; 14317aix4* | aix5*) 14318 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 14319 test "$enable_shared" = yes && enable_static=no 14320 fi 14321 ;; 14322esac 14323{ echo "$as_me:$LINENO: result: $enable_shared" >&5 14324echo "${ECHO_T}$enable_shared" >&6; } 14325 14326{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 14327echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 14328# Make sure either enable_shared or enable_static is yes. 14329test "$enable_shared" = yes || enable_static=yes 14330{ echo "$as_me:$LINENO: result: $enable_static" >&5 14331echo "${ECHO_T}$enable_static" >&6; } 14332 14333GCC_F77="$G77" 14334LD_F77="$LD" 14335 14336lt_prog_compiler_wl_F77= 14337lt_prog_compiler_pic_F77= 14338lt_prog_compiler_static_F77= 14339 14340{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14341echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 14342 14343 if test "$GCC" = yes; then 14344 lt_prog_compiler_wl_F77='-Wl,' 14345 lt_prog_compiler_static_F77='-static' 14346 14347 case $host_os in 14348 aix*) 14349 # All AIX code is PIC. 14350 if test "$host_cpu" = ia64; then 14351 # AIX 5 now supports IA64 processor 14352 lt_prog_compiler_static_F77='-Bstatic' 14353 fi 14354 ;; 14355 14356 amigaos*) 14357 # FIXME: we need at least 68020 code to build shared libraries, but 14358 # adding the '-m68020' flag to GCC prevents building anything better, 14359 # like '-m68040'. 14360 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 14361 ;; 14362 14363 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14364 # PIC is the default for these OSes. 14365 ;; 14366 14367 mingw* | cygwin* | pw32* | os2*) 14368 # This hack is so that the source file can tell whether it is being 14369 # built for inclusion in a dll (and should export symbols for example). 14370 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14371 # (--disable-auto-import) libraries 14372 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14373 ;; 14374 14375 darwin* | rhapsody*) 14376 # PIC is the default on this platform 14377 # Common symbols not allowed in MH_DYLIB files 14378 lt_prog_compiler_pic_F77='-fno-common' 14379 ;; 14380 14381 interix3*) 14382 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14383 # Instead, we relocate shared libraries at runtime. 14384 ;; 14385 14386 msdosdjgpp*) 14387 # Just because we use GCC doesn't mean we suddenly get shared libraries 14388 # on systems that don't support them. 14389 lt_prog_compiler_can_build_shared_F77=no 14390 enable_shared=no 14391 ;; 14392 14393 sysv4*MP*) 14394 if test -d /usr/nec; then 14395 lt_prog_compiler_pic_F77=-Kconform_pic 14396 fi 14397 ;; 14398 14399 hpux*) 14400 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14401 # not for PA HP-UX. 14402 case $host_cpu in 14403 hppa*64*|ia64*) 14404 # +Z the default 14405 ;; 14406 *) 14407 lt_prog_compiler_pic_F77='-fPIC' 14408 ;; 14409 esac 14410 ;; 14411 14412 *) 14413 lt_prog_compiler_pic_F77='-fPIC' 14414 ;; 14415 esac 14416 else 14417 # PORTME Check for flag to pass linker flags through the system compiler. 14418 case $host_os in 14419 aix*) 14420 lt_prog_compiler_wl_F77='-Wl,' 14421 if test "$host_cpu" = ia64; then 14422 # AIX 5 now supports IA64 processor 14423 lt_prog_compiler_static_F77='-Bstatic' 14424 else 14425 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 14426 fi 14427 ;; 14428 darwin*) 14429 # PIC is the default on this platform 14430 # Common symbols not allowed in MH_DYLIB files 14431 case $cc_basename in 14432 xlc*) 14433 lt_prog_compiler_pic_F77='-qnocommon' 14434 lt_prog_compiler_wl_F77='-Wl,' 14435 ;; 14436 esac 14437 ;; 14438 14439 mingw* | cygwin* | pw32* | os2*) 14440 # This hack is so that the source file can tell whether it is being 14441 # built for inclusion in a dll (and should export symbols for example). 14442 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14443 ;; 14444 14445 hpux9* | hpux10* | hpux11*) 14446 lt_prog_compiler_wl_F77='-Wl,' 14447 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14448 # not for PA HP-UX. 14449 case $host_cpu in 14450 hppa*64*|ia64*) 14451 # +Z the default 14452 ;; 14453 *) 14454 lt_prog_compiler_pic_F77='+Z' 14455 ;; 14456 esac 14457 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14458 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 14459 ;; 14460 14461 irix5* | irix6* | nonstopux*) 14462 lt_prog_compiler_wl_F77='-Wl,' 14463 # PIC (with -KPIC) is the default. 14464 lt_prog_compiler_static_F77='-non_shared' 14465 ;; 14466 14467 newsos6) 14468 lt_prog_compiler_pic_F77='-KPIC' 14469 lt_prog_compiler_static_F77='-Bstatic' 14470 ;; 14471 14472 linux*) 14473 case $cc_basename in 14474 icc* | ecc*) 14475 lt_prog_compiler_wl_F77='-Wl,' 14476 lt_prog_compiler_pic_F77='-KPIC' 14477 lt_prog_compiler_static_F77='-static' 14478 ;; 14479 pgcc* | pgf77* | pgf90* | pgf95*) 14480 # Portland Group compilers (*not* the Pentium gcc compiler, 14481 # which looks to be a dead project) 14482 lt_prog_compiler_wl_F77='-Wl,' 14483 lt_prog_compiler_pic_F77='-fpic' 14484 lt_prog_compiler_static_F77='-Bstatic' 14485 ;; 14486 ccc*) 14487 lt_prog_compiler_wl_F77='-Wl,' 14488 # All Alpha code is PIC. 14489 lt_prog_compiler_static_F77='-non_shared' 14490 ;; 14491 *) 14492 case `$CC -V 2>&1 | sed 5q` in 14493 *Sun\ C*) 14494 # Sun C 5.9 14495 lt_prog_compiler_pic_F77='-KPIC' 14496 lt_prog_compiler_static_F77='-Bstatic' 14497 lt_prog_compiler_wl_F77='-Wl,' 14498 ;; 14499 *Sun\ F*) 14500 # Sun Fortran 8.3 passes all unrecognized flags to the linker 14501 lt_prog_compiler_pic_F77='-KPIC' 14502 lt_prog_compiler_static_F77='-Bstatic' 14503 lt_prog_compiler_wl_F77='' 14504 ;; 14505 esac 14506 ;; 14507 esac 14508 ;; 14509 14510 osf3* | osf4* | osf5*) 14511 lt_prog_compiler_wl_F77='-Wl,' 14512 # All OSF/1 code is PIC. 14513 lt_prog_compiler_static_F77='-non_shared' 14514 ;; 14515 14516 rdos*) 14517 lt_prog_compiler_static_F77='-non_shared' 14518 ;; 14519 14520 solaris*) 14521 lt_prog_compiler_pic_F77='-KPIC' 14522 lt_prog_compiler_static_F77='-Bstatic' 14523 case $cc_basename in 14524 f77* | f90* | f95*) 14525 lt_prog_compiler_wl_F77='-Qoption ld ';; 14526 *) 14527 lt_prog_compiler_wl_F77='-Wl,';; 14528 esac 14529 ;; 14530 14531 sunos4*) 14532 lt_prog_compiler_wl_F77='-Qoption ld ' 14533 lt_prog_compiler_pic_F77='-PIC' 14534 lt_prog_compiler_static_F77='-Bstatic' 14535 ;; 14536 14537 sysv4 | sysv4.2uw2* | sysv4.3*) 14538 lt_prog_compiler_wl_F77='-Wl,' 14539 lt_prog_compiler_pic_F77='-KPIC' 14540 lt_prog_compiler_static_F77='-Bstatic' 14541 ;; 14542 14543 sysv4*MP*) 14544 if test -d /usr/nec ;then 14545 lt_prog_compiler_pic_F77='-Kconform_pic' 14546 lt_prog_compiler_static_F77='-Bstatic' 14547 fi 14548 ;; 14549 14550 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14551 lt_prog_compiler_wl_F77='-Wl,' 14552 lt_prog_compiler_pic_F77='-KPIC' 14553 lt_prog_compiler_static_F77='-Bstatic' 14554 ;; 14555 14556 unicos*) 14557 lt_prog_compiler_wl_F77='-Wl,' 14558 lt_prog_compiler_can_build_shared_F77=no 14559 ;; 14560 14561 uts4*) 14562 lt_prog_compiler_pic_F77='-pic' 14563 lt_prog_compiler_static_F77='-Bstatic' 14564 ;; 14565 14566 *) 14567 lt_prog_compiler_can_build_shared_F77=no 14568 ;; 14569 esac 14570 fi 14571 14572{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 14573echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } 14574 14575# 14576# Check to make sure the PIC flag actually works. 14577# 14578if test -n "$lt_prog_compiler_pic_F77"; then 14579 14580{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 14581echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } 14582if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 14583 echo $ECHO_N "(cached) $ECHO_C" >&6 14584else 14585 lt_prog_compiler_pic_works_F77=no 14586 ac_outfile=conftest.$ac_objext 14587 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14588 lt_compiler_flag="$lt_prog_compiler_pic_F77" 14589 # Insert the option either (1) after the last *FLAGS variable, or 14590 # (2) before a word containing "conftest.", or (3) at the end. 14591 # Note that $ac_compile itself does not contain backslashes and begins 14592 # with a dollar sign (not a hyphen), so the echo should work correctly. 14593 # The option is referenced via a variable to avoid confusing sed. 14594 lt_compile=`echo "$ac_compile" | $SED \ 14595 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14596 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14597 -e 's:$: $lt_compiler_flag:'` 14598 (eval echo "\"\$as_me:14598: $lt_compile\"" >&5) 14599 (eval "$lt_compile" 2>conftest.err) 14600 ac_status=$? 14601 cat conftest.err >&5 14602 echo "$as_me:14602: \$? = $ac_status" >&5 14603 if (exit $ac_status) && test -s "$ac_outfile"; then 14604 # The compiler can only warn and ignore the option if not recognized 14605 # So say no if there are warnings other than the usual output. 14606 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14607 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14608 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14609 lt_prog_compiler_pic_works_F77=yes 14610 fi 14611 fi 14612 $rm conftest* 14613 14614fi 14615{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 14616echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } 14617 14618if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 14619 case $lt_prog_compiler_pic_F77 in 14620 "" | " "*) ;; 14621 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 14622 esac 14623else 14624 lt_prog_compiler_pic_F77= 14625 lt_prog_compiler_can_build_shared_F77=no 14626fi 14627 14628fi 14629case $host_os in 14630 # For platforms which do not support PIC, -DPIC is meaningless: 14631 *djgpp*) 14632 lt_prog_compiler_pic_F77= 14633 ;; 14634 *) 14635 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 14636 ;; 14637esac 14638 14639# 14640# Check to make sure the static flag actually works. 14641# 14642wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 14643{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14644echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 14645if test "${lt_prog_compiler_static_works_F77+set}" = set; then 14646 echo $ECHO_N "(cached) $ECHO_C" >&6 14647else 14648 lt_prog_compiler_static_works_F77=no 14649 save_LDFLAGS="$LDFLAGS" 14650 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14651 printf "$lt_simple_link_test_code" > conftest.$ac_ext 14652 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14653 # The linker can only warn and ignore the option if not recognized 14654 # So say no if there are warnings 14655 if test -s conftest.err; then 14656 # Append any errors to the config.log. 14657 cat conftest.err 1>&5 14658 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14659 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14660 if diff conftest.exp conftest.er2 >/dev/null; then 14661 lt_prog_compiler_static_works_F77=yes 14662 fi 14663 else 14664 lt_prog_compiler_static_works_F77=yes 14665 fi 14666 fi 14667 $rm conftest* 14668 LDFLAGS="$save_LDFLAGS" 14669 14670fi 14671{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 14672echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } 14673 14674if test x"$lt_prog_compiler_static_works_F77" = xyes; then 14675 : 14676else 14677 lt_prog_compiler_static_F77= 14678fi 14679 14680 14681{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14682echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 14683if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 14684 echo $ECHO_N "(cached) $ECHO_C" >&6 14685else 14686 lt_cv_prog_compiler_c_o_F77=no 14687 $rm -r conftest 2>/dev/null 14688 mkdir conftest 14689 cd conftest 14690 mkdir out 14691 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14692 14693 lt_compiler_flag="-o out/conftest2.$ac_objext" 14694 # Insert the option either (1) after the last *FLAGS variable, or 14695 # (2) before a word containing "conftest.", or (3) at the end. 14696 # Note that $ac_compile itself does not contain backslashes and begins 14697 # with a dollar sign (not a hyphen), so the echo should work correctly. 14698 lt_compile=`echo "$ac_compile" | $SED \ 14699 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14700 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14701 -e 's:$: $lt_compiler_flag:'` 14702 (eval echo "\"\$as_me:14702: $lt_compile\"" >&5) 14703 (eval "$lt_compile" 2>out/conftest.err) 14704 ac_status=$? 14705 cat out/conftest.err >&5 14706 echo "$as_me:14706: \$? = $ac_status" >&5 14707 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14708 then 14709 # The compiler can only warn and ignore the option if not recognized 14710 # So say no if there are warnings 14711 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14712 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14713 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14714 lt_cv_prog_compiler_c_o_F77=yes 14715 fi 14716 fi 14717 chmod u+w . 2>&5 14718 $rm conftest* 14719 # SGI C++ compiler will create directory out/ii_files/ for 14720 # template instantiation 14721 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14722 $rm out/* && rmdir out 14723 cd .. 14724 rmdir conftest 14725 $rm conftest* 14726 14727fi 14728{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14729echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } 14730 14731 14732hard_links="nottested" 14733if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14734 # do not overwrite the value of need_locks provided by the user 14735 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14736echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 14737 hard_links=yes 14738 $rm conftest* 14739 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14740 touch conftest.a 14741 ln conftest.a conftest.b 2>&5 || hard_links=no 14742 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14743 { echo "$as_me:$LINENO: result: $hard_links" >&5 14744echo "${ECHO_T}$hard_links" >&6; } 14745 if test "$hard_links" = no; then 14746 { echo "$as_me:$LINENO: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 14747echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 14748 need_locks=warn 14749 fi 14750else 14751 need_locks=no 14752fi 14753 14754{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14755echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 14756 14757 runpath_var= 14758 allow_undefined_flag_F77= 14759 enable_shared_with_static_runtimes_F77=no 14760 archive_cmds_F77= 14761 archive_expsym_cmds_F77= 14762 old_archive_From_new_cmds_F77= 14763 old_archive_from_expsyms_cmds_F77= 14764 export_dynamic_flag_spec_F77= 14765 whole_archive_flag_spec_F77= 14766 thread_safe_flag_spec_F77= 14767 hardcode_libdir_flag_spec_F77= 14768 hardcode_libdir_flag_spec_ld_F77= 14769 hardcode_libdir_separator_F77= 14770 hardcode_direct_F77=no 14771 hardcode_minus_L_F77=no 14772 hardcode_shlibpath_var_F77=unsupported 14773 link_all_deplibs_F77=unknown 14774 hardcode_automatic_F77=no 14775 module_cmds_F77= 14776 module_expsym_cmds_F77= 14777 always_export_symbols_F77=no 14778 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14779 # include_expsyms should be a list of space-separated symbols to be *always* 14780 # included in the symbol list 14781 include_expsyms_F77= 14782 # exclude_expsyms can be an extended regexp of symbols to exclude 14783 # it will be wrapped by ' (' and ')$', so one must not match beginning or 14784 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 14785 # as well as any symbol that contains 'd'. 14786 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 14787 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14788 # platforms (ab)use it in PIC code, but their linkers get confused if 14789 # the symbol is explicitly referenced. Since portable code cannot 14790 # rely on this symbol name, it's probably fine to never include it in 14791 # preloaded symbol tables. 14792 extract_expsyms_cmds= 14793 # Just being paranoid about ensuring that cc_basename is set. 14794 for cc_temp in $compiler""; do 14795 case $cc_temp in 14796 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14797 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14798 \-*) ;; 14799 *) break;; 14800 esac 14801done 14802cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14803 14804 case $host_os in 14805 cygwin* | mingw* | pw32*) 14806 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14807 # When not using gcc, we currently assume that we are using 14808 # Microsoft Visual C++. 14809 if test "$GCC" != yes; then 14810 with_gnu_ld=no 14811 fi 14812 ;; 14813 interix*) 14814 # we just hope/assume this is gcc and not c89 (= MSVC++) 14815 with_gnu_ld=yes 14816 ;; 14817 mirbsd*) 14818 with_gnu_ld=yes 14819 ;; 14820 openbsd*) 14821 with_gnu_ld=no 14822 ;; 14823 esac 14824 14825 ld_shlibs_F77=yes 14826 if test "$with_gnu_ld" = yes; then 14827 # If archive_cmds runs LD, not CC, wlarc should be empty 14828 wlarc='${wl}' 14829 14830 # Set some defaults for GNU ld with shared library support. These 14831 # are reset later if shared libraries are not supported. Putting them 14832 # here allows them to be overridden if necessary. 14833 runpath_var=LD_RUN_PATH 14834 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14835 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14836 # ancient GNU ld didn't support --whole-archive et. al. 14837 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14838 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14839 else 14840 whole_archive_flag_spec_F77= 14841 fi 14842 supports_anon_versioning=no 14843 case `$LD -v 2>/dev/null` in 14844 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14845 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14846 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14847 *\ 2.11.*) ;; # other 2.11 versions 14848 *) supports_anon_versioning=yes ;; 14849 esac 14850 14851 # See if GNU ld supports shared libraries. 14852 case $host_os in 14853 aix3* | aix4* | aix5*) 14854 # On AIX/PPC, the GNU linker is very broken 14855 if test "$host_cpu" != ia64; then 14856 ld_shlibs_F77=no 14857 cat <<EOF 1>&2 14858 14859*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14860*** to be unable to reliably create shared libraries on AIX. 14861*** Therefore, libtool is disabling shared libraries support. If you 14862*** really care for shared libraries, you may want to modify your PATH 14863*** so that a non-GNU linker is found, and then restart. 14864 14865EOF 14866 fi 14867 ;; 14868 14869 amigaos*) 14870 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)' 14871 hardcode_libdir_flag_spec_F77='-L$libdir' 14872 hardcode_minus_L_F77=yes 14873 14874 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14875 # that the semantics of dynamic libraries on AmigaOS, at least up 14876 # to version 4, is to share data among multiple programs linked 14877 # with the same dynamic library. Since this doesn't match the 14878 # behavior of shared libraries on other platforms, we can't use 14879 # them. 14880 ld_shlibs_F77=no 14881 ;; 14882 14883 beos*) 14884 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14885 allow_undefined_flag_F77=unsupported 14886 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14887 # support --undefined. This deserves some investigation. FIXME 14888 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14889 else 14890 ld_shlibs_F77=no 14891 fi 14892 ;; 14893 14894 cygwin* | mingw* | pw32*) 14895 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14896 # as there is no search path for DLLs. 14897 hardcode_libdir_flag_spec_F77='-L$libdir' 14898 allow_undefined_flag_F77=unsupported 14899 always_export_symbols_F77=no 14900 enable_shared_with_static_runtimes_F77=yes 14901 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 14902 14903 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14904 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14905 # If the export-symbols file already is a .def file (1st line 14906 # is EXPORTS), use it as is; otherwise, prepend... 14907 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14908 cp $export_symbols $output_objdir/$soname.def; 14909 else 14910 echo EXPORTS > $output_objdir/$soname.def; 14911 cat $export_symbols >> $output_objdir/$soname.def; 14912 fi~ 14913 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14914 else 14915 ld_shlibs_F77=no 14916 fi 14917 ;; 14918 14919 interix3*) 14920 hardcode_direct_F77=no 14921 hardcode_shlibpath_var_F77=no 14922 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14923 export_dynamic_flag_spec_F77='${wl}-E' 14924 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14925 # Instead, shared libraries are loaded at an image base (0x10000000 by 14926 # default) and relocated if they conflict, which is a slow very memory 14927 # consuming and fragmenting process. To avoid this, we pick a random, 14928 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14929 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14930 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' 14931 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' 14932 ;; 14933 14934 linux*) 14935 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14936 tmp_addflag= 14937 case $cc_basename,$host_cpu in 14938 pgcc*) # Portland Group C compiler 14939 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' 14940 tmp_addflag=' $pic_flag' 14941 ;; 14942 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14943 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' 14944 tmp_addflag=' $pic_flag -Mnomain' ;; 14945 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14946 tmp_addflag=' -i_dynamic' ;; 14947 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14948 tmp_addflag=' -i_dynamic -nofor_main' ;; 14949 ifc* | ifort*) # Intel Fortran compiler 14950 tmp_addflag=' -nofor_main' ;; 14951 esac 14952 case `$CC -V 2>&1 | sed 5q` in 14953 *Sun\ C*) # Sun C 5.9 14954 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 /dev/null' 14955 tmp_sharedflag='-G' ;; 14956 *Sun\ F*) # Sun Fortran 8.3 14957 tmp_sharedflag='-G' ;; 14958 *) 14959 tmp_sharedflag='-shared' ;; 14960 esac 14961 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14962 14963 if test $supports_anon_versioning = yes; then 14964 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14965 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14966 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14967 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14968 fi 14969 else 14970 ld_shlibs_F77=no 14971 fi 14972 ;; 14973 14974 mirbsd*) 14975 hardcode_direct_F77=yes 14976 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags -o $lib' 14977 archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 14978 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14979 export_dynamic_flag_spec_F77='${wl}-E' 14980 ;; 14981 14982 netbsd*) 14983 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14984 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14985 wlarc= 14986 else 14987 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14988 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14989 fi 14990 ;; 14991 14992 solaris*) 14993 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14994 ld_shlibs_F77=no 14995 cat <<EOF 1>&2 14996 14997*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14998*** create shared libraries on Solaris systems. Therefore, libtool 14999*** is disabling shared libraries support. We urge you to upgrade GNU 15000*** binutils to release 2.9.1 or newer. Another option is to modify 15001*** your PATH or compiler configuration so that the native linker is 15002*** used, and then restart. 15003 15004EOF 15005 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15006 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15007 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15008 else 15009 ld_shlibs_F77=no 15010 fi 15011 ;; 15012 15013 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 15014 case `$LD -v 2>&1` in 15015 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 15016 ld_shlibs_F77=no 15017 cat <<_LT_EOF 1>&2 15018 15019*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 15020*** reliably create shared libraries on SCO systems. Therefore, libtool 15021*** is disabling shared libraries support. We urge you to upgrade GNU 15022*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 15023*** your PATH or compiler configuration so that the native linker is 15024*** used, and then restart. 15025 15026_LT_EOF 15027 ;; 15028 *) 15029 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15030 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 15031 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 15032 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 15033 else 15034 ld_shlibs_F77=no 15035 fi 15036 ;; 15037 esac 15038 ;; 15039 15040 sunos4*) 15041 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15042 wlarc= 15043 hardcode_direct_F77=yes 15044 hardcode_shlibpath_var_F77=no 15045 ;; 15046 15047 *) 15048 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15049 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15050 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15051 else 15052 ld_shlibs_F77=no 15053 fi 15054 ;; 15055 esac 15056 15057 if test "$ld_shlibs_F77" = no; then 15058 runpath_var= 15059 hardcode_libdir_flag_spec_F77= 15060 export_dynamic_flag_spec_F77= 15061 whole_archive_flag_spec_F77= 15062 fi 15063 else 15064 # PORTME fill in a description of your system's linker (not GNU ld) 15065 case $host_os in 15066 aix3*) 15067 allow_undefined_flag_F77=unsupported 15068 always_export_symbols_F77=yes 15069 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' 15070 # Note: this linker hardcodes the directories in LIBPATH if there 15071 # are no directories specified by -L. 15072 hardcode_minus_L_F77=yes 15073 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 15074 # Neither direct hardcoding nor static linking is supported with a 15075 # broken collect2. 15076 hardcode_direct_F77=unsupported 15077 fi 15078 ;; 15079 15080 aix4* | aix5*) 15081 if test "$host_cpu" = ia64; then 15082 # On IA64, the linker does run time linking by default, so we don't 15083 # have to do anything special. 15084 aix_use_runtimelinking=no 15085 exp_sym_flag='-Bexport' 15086 no_entry_flag="" 15087 else 15088 # If we're using GNU nm, then we don't want the "-C" option. 15089 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15090 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 15091 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' 15092 else 15093 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' 15094 fi 15095 aix_use_runtimelinking=no 15096 15097 # Test if we are trying to use run time linking or normal 15098 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15099 # need to do runtime linking. 15100 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 15101 for ld_flag in $LDFLAGS; do 15102 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 15103 aix_use_runtimelinking=yes 15104 break 15105 fi 15106 done 15107 ;; 15108 esac 15109 15110 exp_sym_flag='-bexport' 15111 no_entry_flag='-bnoentry' 15112 fi 15113 15114 # When large executables or shared objects are built, AIX ld can 15115 # have problems creating the table of contents. If linking a library 15116 # or program results in "error TOC overflow" add -mminimal-toc to 15117 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15118 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15119 15120 archive_cmds_F77='' 15121 hardcode_direct_F77=yes 15122 hardcode_libdir_separator_F77=':' 15123 link_all_deplibs_F77=yes 15124 15125 if test "$GCC" = yes; then 15126 case $host_os in aix4.[012]|aix4.[012].*) 15127 # We only want to do this on AIX 4.2 and lower, the check 15128 # below for broken collect2 doesn't work under 4.3+ 15129 collect2name=`${CC} -print-prog-name=collect2` 15130 if test -f "$collect2name" && \ 15131 strings "$collect2name" | grep resolve_lib_name >/dev/null 15132 then 15133 # We have reworked collect2 15134 : 15135 else 15136 # We have old collect2 15137 hardcode_direct_F77=unsupported 15138 # It fails to find uninstalled libraries when the uninstalled 15139 # path is not listed in the libpath. Setting hardcode_minus_L 15140 # to unsupported forces relinking 15141 hardcode_minus_L_F77=yes 15142 hardcode_libdir_flag_spec_F77='-L$libdir' 15143 hardcode_libdir_separator_F77= 15144 fi 15145 ;; 15146 esac 15147 shared_flag='-shared' 15148 if test "$aix_use_runtimelinking" = yes; then 15149 shared_flag="$shared_flag "'${wl}-G' 15150 fi 15151 else 15152 # not using gcc 15153 if test "$host_cpu" = ia64; then 15154 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15155 # chokes on -Wl,-G. The following line is correct: 15156 shared_flag='-G' 15157 else 15158 if test "$aix_use_runtimelinking" = yes; then 15159 shared_flag='${wl}-G' 15160 else 15161 shared_flag='${wl}-bM:SRE' 15162 fi 15163 fi 15164 fi 15165 15166 # It seems that -bexpall does not export symbols beginning with 15167 # underscore (_), so it is better to generate a list of symbols to export. 15168 always_export_symbols_F77=yes 15169 if test "$aix_use_runtimelinking" = yes; then 15170 # Warning - without using the other runtime loading flags (-brtl), 15171 # -berok will link without error, but may produce a broken library. 15172 allow_undefined_flag_F77='-berok' 15173 # Determine the default libpath from the value encoded in an empty executable. 15174 aix_libpath="/usr/lib:/lib" 15175 15176 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15177 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" 15178 else 15179 if test "$host_cpu" = ia64; then 15180 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 15181 allow_undefined_flag_F77="-z nodefs" 15182 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" 15183 else 15184 # Determine the default libpath from the value encoded in an empty executable. 15185 aix_libpath="/usr/lib:/lib" 15186 15187 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15188 # Warning - without using the other run time loading flags, 15189 # -berok will link without error, but may produce a broken library. 15190 no_undefined_flag_F77=' ${wl}-bernotok' 15191 allow_undefined_flag_F77=' ${wl}-berok' 15192 # Exported symbols can be pulled into shared objects from archives 15193 whole_archive_flag_spec_F77='$convenience' 15194 archive_cmds_need_lc_F77=yes 15195 # This is similar to how AIX traditionally builds its shared libraries. 15196 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' 15197 fi 15198 fi 15199 ;; 15200 15201 amigaos*) 15202 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)' 15203 hardcode_libdir_flag_spec_F77='-L$libdir' 15204 hardcode_minus_L_F77=yes 15205 # see comment about different semantics on the GNU ld section 15206 ld_shlibs_F77=no 15207 ;; 15208 15209 bsdi[45]*) 15210 export_dynamic_flag_spec_F77=-rdynamic 15211 ;; 15212 15213 cygwin* | mingw* | pw32*) 15214 # When not using gcc, we currently assume that we are using 15215 # Microsoft Visual C++. 15216 # hardcode_libdir_flag_spec is actually meaningless, as there is 15217 # no search path for DLLs. 15218 hardcode_libdir_flag_spec_F77=' ' 15219 allow_undefined_flag_F77=unsupported 15220 # Tell ltmain to make .lib files, not .a files. 15221 libext=lib 15222 # Tell ltmain to make .dll files, not .so files. 15223 shrext_cmds=".dll" 15224 # FIXME: Setting linknames here is a bad hack. 15225 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 15226 # The linker will automatically build a .lib file if we build a DLL. 15227 old_archive_From_new_cmds_F77='true' 15228 # FIXME: Should let the user specify the lib program. 15229 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 15230 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 15231 enable_shared_with_static_runtimes_F77=yes 15232 ;; 15233 15234 darwin* | rhapsody*) 15235 case $host_os in 15236 rhapsody* | darwin1.[012]) 15237 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 15238 ;; 15239 *) # Darwin 1.3 on 15240 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 15241 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15242 else 15243 case ${MACOSX_DEPLOYMENT_TARGET} in 15244 10.[012]) 15245 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15246 ;; 15247 10.*) 15248 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 15249 ;; 15250 esac 15251 fi 15252 ;; 15253 esac 15254 archive_cmds_need_lc_F77=no 15255 hardcode_direct_F77=no 15256 hardcode_automatic_F77=yes 15257 hardcode_shlibpath_var_F77=unsupported 15258 whole_archive_flag_spec_F77='' 15259 link_all_deplibs_F77=yes 15260 if test "$GCC" = yes ; then 15261 output_verbose_link_cmd='echo' 15262 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 15263 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15264 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15265 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 15266 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}' 15267 else 15268 case $cc_basename in 15269 xlc*) 15270 output_verbose_link_cmd='echo' 15271 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 15272 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15273 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15274 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 15275 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}' 15276 ;; 15277 *) 15278 ld_shlibs_F77=no 15279 ;; 15280 esac 15281 fi 15282 ;; 15283 15284 dgux*) 15285 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15286 hardcode_libdir_flag_spec_F77='-L$libdir' 15287 hardcode_shlibpath_var_F77=no 15288 ;; 15289 15290 freebsd1*) 15291 ld_shlibs_F77=no 15292 ;; 15293 15294 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15295 # support. Future versions do this automatically, but an explicit c++rt0.o 15296 # does not break anything, and helps significantly (at the cost of a little 15297 # extra space). 15298 freebsd2.2*) 15299 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15300 hardcode_libdir_flag_spec_F77='-R$libdir' 15301 hardcode_direct_F77=yes 15302 hardcode_shlibpath_var_F77=no 15303 ;; 15304 15305 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15306 freebsd2*) 15307 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15308 hardcode_direct_F77=yes 15309 hardcode_minus_L_F77=yes 15310 hardcode_shlibpath_var_F77=no 15311 ;; 15312 15313 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15314 freebsd* | kfreebsd*-gnu | dragonfly*) 15315 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 15316 hardcode_libdir_flag_spec_F77='-R$libdir' 15317 hardcode_direct_F77=yes 15318 hardcode_shlibpath_var_F77=no 15319 ;; 15320 15321 hpux9*) 15322 if test "$GCC" = yes; then 15323 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' 15324 else 15325 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' 15326 fi 15327 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15328 hardcode_libdir_separator_F77=: 15329 hardcode_direct_F77=yes 15330 15331 # hardcode_minus_L: Not really in the search PATH, 15332 # but as the default location of the library. 15333 hardcode_minus_L_F77=yes 15334 export_dynamic_flag_spec_F77='${wl}-E' 15335 ;; 15336 15337 hpux10*) 15338 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15339 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15340 else 15341 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15342 fi 15343 if test "$with_gnu_ld" = no; then 15344 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15345 hardcode_libdir_separator_F77=: 15346 15347 hardcode_direct_F77=yes 15348 export_dynamic_flag_spec_F77='${wl}-E' 15349 15350 # hardcode_minus_L: Not really in the search PATH, 15351 # but as the default location of the library. 15352 hardcode_minus_L_F77=yes 15353 fi 15354 ;; 15355 15356 hpux11*) 15357 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15358 case $host_cpu in 15359 hppa*64*) 15360 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15361 ;; 15362 ia64*) 15363 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15364 ;; 15365 *) 15366 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15367 ;; 15368 esac 15369 else 15370 case $host_cpu in 15371 hppa*64*) 15372 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15373 ;; 15374 ia64*) 15375 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15376 ;; 15377 *) 15378 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15379 ;; 15380 esac 15381 fi 15382 if test "$with_gnu_ld" = no; then 15383 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15384 hardcode_libdir_separator_F77=: 15385 15386 case $host_cpu in 15387 hppa*64*|ia64*) 15388 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 15389 hardcode_direct_F77=no 15390 hardcode_shlibpath_var_F77=no 15391 ;; 15392 *) 15393 hardcode_direct_F77=yes 15394 export_dynamic_flag_spec_F77='${wl}-E' 15395 15396 # hardcode_minus_L: Not really in the search PATH, 15397 # but as the default location of the library. 15398 hardcode_minus_L_F77=yes 15399 ;; 15400 esac 15401 fi 15402 ;; 15403 15404 irix5* | irix6* | nonstopux*) 15405 if test "$GCC" = yes; then 15406 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' 15407 else 15408 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' 15409 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 15410 fi 15411 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15412 hardcode_libdir_separator_F77=: 15413 link_all_deplibs_F77=yes 15414 ;; 15415 15416 netbsd*) 15417 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15418 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15419 else 15420 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15421 fi 15422 hardcode_libdir_flag_spec_F77='-R$libdir' 15423 hardcode_direct_F77=yes 15424 hardcode_shlibpath_var_F77=no 15425 ;; 15426 15427 newsos6) 15428 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15429 hardcode_direct_F77=yes 15430 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15431 hardcode_libdir_separator_F77=: 15432 hardcode_shlibpath_var_F77=no 15433 ;; 15434 15435 openbsd*) 15436 hardcode_direct_F77=yes 15437 hardcode_shlibpath_var_F77=no 15438 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15439 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags -o $lib' 15440 archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 15441 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15442 export_dynamic_flag_spec_F77='${wl}-E' 15443 else 15444 case $host_os in 15445 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15446 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15447 hardcode_libdir_flag_spec_F77='-R$libdir' 15448 ;; 15449 *) 15450 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15451 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15452 ;; 15453 esac 15454 fi 15455 ;; 15456 15457 os2*) 15458 hardcode_libdir_flag_spec_F77='-L$libdir' 15459 hardcode_minus_L_F77=yes 15460 allow_undefined_flag_F77=unsupported 15461 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' 15462 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15463 ;; 15464 15465 osf3*) 15466 if test "$GCC" = yes; then 15467 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15468 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' 15469 else 15470 allow_undefined_flag_F77=' -expect_unresolved \*' 15471 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' 15472 fi 15473 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15474 hardcode_libdir_separator_F77=: 15475 ;; 15476 15477 osf4* | osf5*) # as osf3* with the addition of -msym flag 15478 if test "$GCC" = yes; then 15479 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15480 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' 15481 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15482 else 15483 allow_undefined_flag_F77=' -expect_unresolved \*' 15484 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' 15485 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~ 15486 $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' 15487 15488 # Both c and cxx compiler support -rpath directly 15489 hardcode_libdir_flag_spec_F77='-rpath $libdir' 15490 fi 15491 hardcode_libdir_separator_F77=: 15492 ;; 15493 15494 solaris*) 15495 no_undefined_flag_F77=' -z text' 15496 if test "$GCC" = yes; then 15497 wlarc='${wl}' 15498 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15499 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15500 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15501 else 15502 wlarc='' 15503 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15504 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15505 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15506 fi 15507 hardcode_libdir_flag_spec_F77='-R$libdir' 15508 hardcode_shlibpath_var_F77=no 15509 case $host_os in 15510 solaris2.[0-5] | solaris2.[0-5].*) ;; 15511 *) 15512 # The compiler driver will combine and reorder linker options, 15513 # but understands `-z linker_flag'. GCC discards it without `$wl', 15514 # but is careful enough not to reorder. 15515 # Supported since Solaris 2.6 (maybe 2.5.1?) 15516 if test "$GCC" = yes; then 15517 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 15518 else 15519 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' 15520 fi 15521 ;; 15522 esac 15523 link_all_deplibs_F77=yes 15524 ;; 15525 15526 sunos4*) 15527 if test "x$host_vendor" = xsequent; then 15528 # Use $CC to link under sequent, because it throws in some extra .o 15529 # files that make .init and .fini sections work. 15530 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15531 else 15532 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15533 fi 15534 hardcode_libdir_flag_spec_F77='-L$libdir' 15535 hardcode_direct_F77=yes 15536 hardcode_minus_L_F77=yes 15537 hardcode_shlibpath_var_F77=no 15538 ;; 15539 15540 sysv4) 15541 case $host_vendor in 15542 sni) 15543 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15544 hardcode_direct_F77=yes # is this really true??? 15545 ;; 15546 siemens) 15547 ## LD is ld it makes a PLAMLIB 15548 ## CC just makes a GrossModule. 15549 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15550 reload_cmds_F77='$CC -r -o $output$reload_objs' 15551 hardcode_direct_F77=no 15552 ;; 15553 motorola) 15554 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15555 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 15556 ;; 15557 esac 15558 runpath_var='LD_RUN_PATH' 15559 hardcode_shlibpath_var_F77=no 15560 ;; 15561 15562 sysv4.3*) 15563 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15564 hardcode_shlibpath_var_F77=no 15565 export_dynamic_flag_spec_F77='-Bexport' 15566 ;; 15567 15568 sysv4*MP*) 15569 if test -d /usr/nec; then 15570 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15571 hardcode_shlibpath_var_F77=no 15572 runpath_var=LD_RUN_PATH 15573 hardcode_runpath_var=yes 15574 ld_shlibs_F77=yes 15575 fi 15576 ;; 15577 15578 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15579 no_undefined_flag_F77='${wl}-z,text' 15580 archive_cmds_need_lc_F77=no 15581 hardcode_shlibpath_var_F77=no 15582 runpath_var='LD_RUN_PATH' 15583 15584 if test "$GCC" = yes; then 15585 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15586 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15587 else 15588 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15589 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15590 fi 15591 ;; 15592 15593 sysv5* | sco3.2v5* | sco5v6*) 15594 # Note: We can NOT use -z defs as we might desire, because we do not 15595 # link with -lc, and that would cause any symbols used from libc to 15596 # always be unresolved, which means just about no library would 15597 # ever link correctly. If we're not using GNU ld we use -z text 15598 # though, which does catch some bad symbols but isn't as heavy-handed 15599 # as -z defs. 15600 no_undefined_flag_F77='${wl}-z,text' 15601 allow_undefined_flag_F77='${wl}-z,nodefs' 15602 archive_cmds_need_lc_F77=no 15603 hardcode_shlibpath_var_F77=no 15604 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 15605 hardcode_libdir_separator_F77=':' 15606 link_all_deplibs_F77=yes 15607 export_dynamic_flag_spec_F77='${wl}-Bexport' 15608 runpath_var='LD_RUN_PATH' 15609 15610 if test "$GCC" = yes; then 15611 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15612 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15613 else 15614 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15615 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15616 fi 15617 ;; 15618 15619 uts4*) 15620 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15621 hardcode_libdir_flag_spec_F77='-L$libdir' 15622 hardcode_shlibpath_var_F77=no 15623 ;; 15624 15625 *) 15626 ld_shlibs_F77=no 15627 ;; 15628 esac 15629 fi 15630 15631{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 15632echo "${ECHO_T}$ld_shlibs_F77" >&6; } 15633test "$ld_shlibs_F77" = no && can_build_shared=no 15634 15635# 15636# Do we need to explicitly link libc? 15637# 15638case "x$archive_cmds_need_lc_F77" in 15639x|xyes) 15640 # Assume -lc should be added 15641 archive_cmds_need_lc_F77=yes 15642 15643 if test "$enable_shared" = yes && test "$GCC" = yes; then 15644 case $archive_cmds_F77 in 15645 *'~'*) 15646 # FIXME: we may have to deal with multi-command sequences. 15647 ;; 15648 '$CC '*) 15649 # Test whether the compiler implicitly links with -lc since on some 15650 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15651 # to ld, don't add -lc before -lgcc. 15652 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15653echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 15654 $rm conftest* 15655 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15656 15657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15658 (eval $ac_compile) 2>&5 15659 ac_status=$? 15660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15661 (exit $ac_status); } 2>conftest.err; then 15662 soname=conftest 15663 lib=conftest 15664 libobjs=conftest.$ac_objext 15665 deplibs= 15666 wl=$lt_prog_compiler_wl_F77 15667 pic_flag=$lt_prog_compiler_pic_F77 15668 compiler_flags=-v 15669 linker_flags=-v 15670 verstring= 15671 output_objdir=. 15672 libname=conftest 15673 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15674 allow_undefined_flag_F77= 15675 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15676 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15677 ac_status=$? 15678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15679 (exit $ac_status); } 15680 then 15681 archive_cmds_need_lc_F77=no 15682 else 15683 archive_cmds_need_lc_F77=yes 15684 fi 15685 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15686 else 15687 cat conftest.err 1>&5 15688 fi 15689 $rm conftest* 15690 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15691echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } 15692 ;; 15693 esac 15694 fi 15695 ;; 15696esac 15697 15698{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15699echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 15700library_names_spec= 15701libname_spec='lib$name' 15702soname_spec= 15703shrext_cmds=".so" 15704postinstall_cmds= 15705postuninstall_cmds= 15706finish_cmds= 15707finish_eval= 15708shlibpath_var= 15709shlibpath_overrides_runpath=unknown 15710version_type=none 15711dynamic_linker="$host_os ld.so" 15712sys_lib_dlsearch_path_spec="/lib /usr/lib" 15713if test "$GCC" = yes; then 15714 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15715 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 15716 # if the path contains ";" then we assume it to be the separator 15717 # otherwise default to the standard path separator (i.e. ":") - it is 15718 # assumed that no part of a normal pathname contains ";" but that should 15719 # okay in the real world where ";" in dirpaths is itself problematic. 15720 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15721 else 15722 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15723 fi 15724else 15725 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15726fi 15727tmp="$sys_lib_search_path_spec" 15728sys_lib_search_path_spec= 15729sp= 15730for i in $tmp 15731do 15732 test -d $i && sys_lib_search_path_spec="$sys_lib_search_path_spec$sp$i" 15733 sp=" " 15734done 15735 15736need_lib_prefix=unknown 15737hardcode_into_libs=no 15738 15739# when you set need_version to no, make sure it does not cause -set_version 15740# flags to be left without arguments 15741need_version=unknown 15742 15743case $host_os in 15744aix3*) 15745 version_type=linux 15746 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15747 shlibpath_var=LIBPATH 15748 15749 # AIX 3 has no versioning support, so we append a major version to the name. 15750 soname_spec='${libname}${release}${shared_ext}$major' 15751 ;; 15752 15753aix4* | aix5*) 15754 version_type=linux 15755 need_lib_prefix=no 15756 need_version=no 15757 hardcode_into_libs=yes 15758 if test "$host_cpu" = ia64; then 15759 # AIX 5 supports IA64 15760 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15761 shlibpath_var=LD_LIBRARY_PATH 15762 else 15763 # With GCC up to 2.95.x, collect2 would create an import file 15764 # for dependence libraries. The import file would start with 15765 # the line '#! .'. This would cause the generated library to 15766 # depend on '.', always an invalid library. This was fixed in 15767 # development snapshots of GCC prior to 3.0. 15768 case $host_os in 15769 aix4 | aix4.[01] | aix4.[01].*) 15770 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15771 echo ' yes ' 15772 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15773 : 15774 else 15775 can_build_shared=no 15776 fi 15777 ;; 15778 esac 15779 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15780 # soname into executable. Probably we can add versioning support to 15781 # collect2, so additional links can be useful in future. 15782 if test "$aix_use_runtimelinking" = yes; then 15783 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15784 # instead of lib<name>.a to let people know that these are not 15785 # typical AIX shared libraries. 15786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15787 else 15788 # We preserve .a as extension for shared libraries through AIX4.2 15789 # and later when we are not doing run time linking. 15790 library_names_spec='${libname}${release}.a $libname.a' 15791 soname_spec='${libname}${release}${shared_ext}$major' 15792 fi 15793 shlibpath_var=LIBPATH 15794 fi 15795 ;; 15796 15797amigaos*) 15798 library_names_spec='$libname.ixlibrary $libname.a' 15799 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15800 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' 15801 ;; 15802 15803beos*) 15804 library_names_spec='${libname}${shared_ext}' 15805 dynamic_linker="$host_os ld.so" 15806 shlibpath_var=LIBRARY_PATH 15807 ;; 15808 15809bsdi[45]*) 15810 version_type=linux 15811 need_version=no 15812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15813 soname_spec='${libname}${release}${shared_ext}$major' 15814 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15815 shlibpath_var=LD_LIBRARY_PATH 15816 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15817 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15818 # the default ld.so.conf also contains /usr/contrib/lib and 15819 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15820 # libtool to hard-code these into programs 15821 ;; 15822 15823cygwin* | mingw* | pw32*) 15824 version_type=windows 15825 shrext_cmds=".dll" 15826 need_version=no 15827 need_lib_prefix=no 15828 15829 case $GCC,$host_os in 15830 yes,cygwin* | yes,mingw* | yes,pw32*) 15831 library_names_spec='$libname.dll.a' 15832 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15833 postinstall_cmds='base_file=`basename \${file}`~ 15834 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15835 dldir=$destdir/`dirname \$dlpath`~ 15836 test -d \$dldir || mkdir -p \$dldir~ 15837 $install_prog $dir/$dlname \$dldir/$dlname~ 15838 chmod a+x \$dldir/$dlname' 15839 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15840 dlpath=$dir/\$dldll~ 15841 $rm \$dlpath' 15842 shlibpath_overrides_runpath=yes 15843 15844 case $host_os in 15845 cygwin*) 15846 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15847 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15848 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15849 ;; 15850 mingw*) 15851 # MinGW DLLs use traditional 'lib' prefix 15852 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15853 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15854 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15855 # It is most probably a Windows format PATH printed by 15856 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15857 # path with ; separators, and with drive letters. We can handle the 15858 # drive letters (cygwin fileutils understands them), so leave them, 15859 # especially as we might pass files found there to a mingw objdump, 15860 # which wouldn't understand a cygwinified path. Ahh. 15861 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15862 else 15863 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15864 fi 15865 ;; 15866 pw32*) 15867 # pw32 DLLs use 'pw' prefix rather than 'lib' 15868 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15869 ;; 15870 esac 15871 ;; 15872 15873 *) 15874 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15875 ;; 15876 esac 15877 dynamic_linker='Win32 ld.exe' 15878 # FIXME: first we should search . and the directory the executable is in 15879 shlibpath_var=PATH 15880 ;; 15881 15882darwin* | rhapsody*) 15883 dynamic_linker="$host_os dyld" 15884 version_type=darwin 15885 need_lib_prefix=no 15886 need_version=no 15887 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15888 soname_spec='${libname}${release}${major}$shared_ext' 15889 shlibpath_overrides_runpath=yes 15890 shlibpath_var=DYLD_LIBRARY_PATH 15891 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15892 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 15893 if test "$GCC" = yes; then 15894 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 15895 else 15896 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 15897 fi 15898 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15899 ;; 15900 15901dgux*) 15902 version_type=linux 15903 need_lib_prefix=no 15904 need_version=no 15905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15906 soname_spec='${libname}${release}${shared_ext}$major' 15907 shlibpath_var=LD_LIBRARY_PATH 15908 ;; 15909 15910freebsd1*) 15911 dynamic_linker=no 15912 ;; 15913 15914kfreebsd*-gnu) 15915 version_type=linux 15916 need_lib_prefix=no 15917 need_version=no 15918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15919 soname_spec='${libname}${release}${shared_ext}$major' 15920 shlibpath_var=LD_LIBRARY_PATH 15921 shlibpath_overrides_runpath=no 15922 hardcode_into_libs=yes 15923 dynamic_linker='GNU ld.so' 15924 ;; 15925 15926freebsd* | dragonfly*) 15927 # DragonFly does not have aout. When/if they implement a new 15928 # versioning mechanism, adjust this. 15929 if test -x /usr/bin/objformat; then 15930 objformat=`/usr/bin/objformat` 15931 else 15932 case $host_os in 15933 freebsd[123]*) objformat=aout ;; 15934 *) objformat=elf ;; 15935 esac 15936 fi 15937 version_type=freebsd-$objformat 15938 case $version_type in 15939 freebsd-elf*) 15940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15941 need_version=no 15942 need_lib_prefix=no 15943 ;; 15944 freebsd-*) 15945 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15946 need_version=yes 15947 ;; 15948 esac 15949 shlibpath_var=LD_LIBRARY_PATH 15950 case $host_os in 15951 freebsd2*) 15952 shlibpath_overrides_runpath=yes 15953 ;; 15954 freebsd3.[01]* | freebsdelf3.[01]*) 15955 shlibpath_overrides_runpath=yes 15956 hardcode_into_libs=yes 15957 ;; 15958 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15959 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15960 shlibpath_overrides_runpath=no 15961 hardcode_into_libs=yes 15962 ;; 15963 *) # from 4.6 on, and DragonFly 15964 shlibpath_overrides_runpath=yes 15965 hardcode_into_libs=yes 15966 ;; 15967 esac 15968 ;; 15969 15970gnu*) 15971 version_type=linux 15972 need_lib_prefix=no 15973 need_version=no 15974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15975 soname_spec='${libname}${release}${shared_ext}$major' 15976 shlibpath_var=LD_LIBRARY_PATH 15977 hardcode_into_libs=yes 15978 ;; 15979 15980hpux9* | hpux10* | hpux11*) 15981 # Give a soname corresponding to the major version so that dld.sl refuses to 15982 # link against other versions. 15983 version_type=sunos 15984 need_lib_prefix=no 15985 need_version=no 15986 case $host_cpu in 15987 ia64*) 15988 shrext_cmds='.so' 15989 hardcode_into_libs=yes 15990 dynamic_linker="$host_os dld.so" 15991 shlibpath_var=LD_LIBRARY_PATH 15992 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15994 soname_spec='${libname}${release}${shared_ext}$major' 15995 if test "X$HPUX_IA64_MODE" = X32; then 15996 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15997 else 15998 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15999 fi 16000 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16001 ;; 16002 hppa*64*) 16003 shrext_cmds='.sl' 16004 hardcode_into_libs=yes 16005 dynamic_linker="$host_os dld.sl" 16006 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16007 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16009 soname_spec='${libname}${release}${shared_ext}$major' 16010 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16011 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16012 ;; 16013 *) 16014 shrext_cmds='.sl' 16015 dynamic_linker="$host_os dld.sl" 16016 shlibpath_var=SHLIB_PATH 16017 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16019 soname_spec='${libname}${release}${shared_ext}$major' 16020 ;; 16021 esac 16022 # HP-UX runs *really* slowly unless shared libraries are mode 555. 16023 postinstall_cmds='chmod 555 $lib' 16024 ;; 16025 16026interix3*) 16027 version_type=linux 16028 need_lib_prefix=no 16029 need_version=no 16030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16031 soname_spec='${libname}${release}${shared_ext}$major' 16032 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16033 shlibpath_var=LD_LIBRARY_PATH 16034 shlibpath_overrides_runpath=no 16035 hardcode_into_libs=yes 16036 ;; 16037 16038irix5* | irix6* | nonstopux*) 16039 case $host_os in 16040 nonstopux*) version_type=nonstopux ;; 16041 *) 16042 if test "$lt_cv_prog_gnu_ld" = yes; then 16043 version_type=linux 16044 else 16045 version_type=irix 16046 fi ;; 16047 esac 16048 need_lib_prefix=no 16049 need_version=no 16050 soname_spec='${libname}${release}${shared_ext}$major' 16051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16052 case $host_os in 16053 irix5* | nonstopux*) 16054 libsuff= shlibsuff= 16055 ;; 16056 *) 16057 case $LD in # libtool.m4 will add one of these switches to LD 16058 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16059 libsuff= shlibsuff= libmagic=32-bit;; 16060 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16061 libsuff=32 shlibsuff=N32 libmagic=N32;; 16062 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16063 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16064 *) libsuff= shlibsuff= libmagic=never-match;; 16065 esac 16066 ;; 16067 esac 16068 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16069 shlibpath_overrides_runpath=no 16070 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16071 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16072 hardcode_into_libs=yes 16073 ;; 16074 16075# No shared lib support for Linux oldld, aout, or coff. 16076linux*oldld* | linux*aout* | linux*coff*) 16077 dynamic_linker=no 16078 ;; 16079 16080# This must be Linux ELF. 16081linux*) 16082 version_type=linux 16083 need_lib_prefix=no 16084 need_version=no 16085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16086 soname_spec='${libname}${release}${shared_ext}$major' 16087 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16088 shlibpath_var=LD_LIBRARY_PATH 16089 shlibpath_overrides_runpath=no 16090 # This implies no fast_install, which is unacceptable. 16091 # Some rework will be needed to allow for fast_install 16092 # before this can be enabled. 16093 hardcode_into_libs=yes 16094 16095 # Append ld.so.conf contents to the search path 16096 if test -f /etc/ld.so.conf; then 16097 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/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 16098 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16099 fi 16100 16101 # We used to test for /lib/ld.so.1 and disable shared libraries on 16102 # powerpc, because MkLinux only supported shared libraries with the 16103 # GNU dynamic linker. Since this was broken with cross compilers, 16104 # most powerpc-linux boxes support dynamic linking these days and 16105 # people can always --disable-shared, the test was removed, and we 16106 # assume the GNU/Linux dynamic linker is in use. 16107 dynamic_linker='GNU/Linux ld.so' 16108 ;; 16109 16110mirbsd*) 16111 version_type=linux 16112 sys_lib_dlsearch_path_spec="/usr/lib" 16113 need_lib_prefix=no 16114 need_version=no 16115 library_names_spec='${libname}${release}${shared_ext}$versuffix2 ${libname}${shared_ext}$versuffix2' 16116 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16117 shlibpath_var=LD_LIBRARY_PATH 16118 shlibpath_overrides_runpath=yes 16119 ;; 16120 16121knetbsd*-gnu) 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 shlibpath_var=LD_LIBRARY_PATH 16128 shlibpath_overrides_runpath=no 16129 hardcode_into_libs=yes 16130 dynamic_linker='GNU ld.so' 16131 ;; 16132 16133netbsd*) 16134 version_type=sunos 16135 need_lib_prefix=no 16136 need_version=no 16137 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16139 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16140 dynamic_linker='NetBSD (a.out) ld.so' 16141 else 16142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16143 soname_spec='${libname}${release}${shared_ext}$major' 16144 dynamic_linker='NetBSD ld.elf_so' 16145 fi 16146 shlibpath_var=LD_LIBRARY_PATH 16147 shlibpath_overrides_runpath=yes 16148 hardcode_into_libs=yes 16149 ;; 16150 16151newsos6) 16152 version_type=linux 16153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16154 shlibpath_var=LD_LIBRARY_PATH 16155 shlibpath_overrides_runpath=yes 16156 ;; 16157 16158nto-qnx*) 16159 version_type=linux 16160 need_lib_prefix=no 16161 need_version=no 16162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16163 soname_spec='${libname}${release}${shared_ext}$major' 16164 shlibpath_var=LD_LIBRARY_PATH 16165 shlibpath_overrides_runpath=yes 16166 ;; 16167 16168openbsd*) 16169 version_type=linux 16170 sys_lib_dlsearch_path_spec="/usr/lib" 16171 need_lib_prefix=no 16172 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16173 case $host_os in 16174 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16175 *) need_version=no ;; 16176 esac 16177 library_names_spec='${libname}${release}${shared_ext}$versuffix2 ${libname}${shared_ext}$versuffix2' 16178 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16179 shlibpath_var=LD_LIBRARY_PATH 16180 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16181 case $host_os in 16182 openbsd2.[89] | openbsd2.[89].*) 16183 shlibpath_overrides_runpath=no 16184 ;; 16185 *) 16186 shlibpath_overrides_runpath=yes 16187 ;; 16188 esac 16189 else 16190 shlibpath_overrides_runpath=yes 16191 fi 16192 ;; 16193 16194os2*) 16195 libname_spec='$name' 16196 shrext_cmds=".dll" 16197 need_lib_prefix=no 16198 library_names_spec='$libname${shared_ext} $libname.a' 16199 dynamic_linker='OS/2 ld.exe' 16200 shlibpath_var=LIBPATH 16201 ;; 16202 16203osf3* | osf4* | osf5*) 16204 version_type=osf 16205 need_lib_prefix=no 16206 need_version=no 16207 soname_spec='${libname}${release}${shared_ext}$major' 16208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16209 shlibpath_var=LD_LIBRARY_PATH 16210 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16211 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16212 ;; 16213 16214rdos*) 16215 dynamic_linker=no 16216 ;; 16217 16218solaris*) 16219 version_type=linux 16220 need_lib_prefix=no 16221 need_version=no 16222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16223 soname_spec='${libname}${release}${shared_ext}$major' 16224 shlibpath_var=LD_LIBRARY_PATH 16225 shlibpath_overrides_runpath=yes 16226 hardcode_into_libs=yes 16227 # ldd complains unless libraries are executable 16228 postinstall_cmds='chmod +x $lib' 16229 ;; 16230 16231sunos4*) 16232 version_type=sunos 16233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16234 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16235 shlibpath_var=LD_LIBRARY_PATH 16236 shlibpath_overrides_runpath=yes 16237 if test "$with_gnu_ld" = yes; then 16238 need_lib_prefix=no 16239 fi 16240 need_version=yes 16241 ;; 16242 16243sysv4 | sysv4.3*) 16244 version_type=linux 16245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16246 soname_spec='${libname}${release}${shared_ext}$major' 16247 shlibpath_var=LD_LIBRARY_PATH 16248 case $host_vendor in 16249 sni) 16250 shlibpath_overrides_runpath=no 16251 need_lib_prefix=no 16252 export_dynamic_flag_spec='${wl}-Blargedynsym' 16253 runpath_var=LD_RUN_PATH 16254 ;; 16255 siemens) 16256 need_lib_prefix=no 16257 ;; 16258 motorola) 16259 need_lib_prefix=no 16260 need_version=no 16261 shlibpath_overrides_runpath=no 16262 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16263 ;; 16264 esac 16265 ;; 16266 16267sysv4*MP*) 16268 if test -d /usr/nec ;then 16269 version_type=linux 16270 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16271 soname_spec='$libname${shared_ext}.$major' 16272 shlibpath_var=LD_LIBRARY_PATH 16273 fi 16274 ;; 16275 16276sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16277 version_type=freebsd-elf 16278 need_lib_prefix=no 16279 need_version=no 16280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16281 soname_spec='${libname}${release}${shared_ext}$major' 16282 shlibpath_var=LD_LIBRARY_PATH 16283 hardcode_into_libs=yes 16284 if test "$with_gnu_ld" = yes; then 16285 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16286 shlibpath_overrides_runpath=no 16287 else 16288 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16289 shlibpath_overrides_runpath=yes 16290 case $host_os in 16291 sco3.2v5*) 16292 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16293 ;; 16294 esac 16295 fi 16296 sys_lib_dlsearch_path_spec='/usr/lib' 16297 ;; 16298 16299uts4*) 16300 version_type=linux 16301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16302 soname_spec='${libname}${release}${shared_ext}$major' 16303 shlibpath_var=LD_LIBRARY_PATH 16304 ;; 16305 16306*) 16307 dynamic_linker=no 16308 ;; 16309esac 16310{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 16311echo "${ECHO_T}$dynamic_linker" >&6; } 16312test "$dynamic_linker" = no && can_build_shared=no 16313 16314variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16315if test "$GCC" = yes; then 16316 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16317fi 16318 16319{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 16320echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 16321hardcode_action_F77= 16322if test -n "$hardcode_libdir_flag_spec_F77" || \ 16323 test -n "$runpath_var_F77" || \ 16324 test "X$hardcode_automatic_F77" = "Xyes" ; then 16325 16326 # We can hardcode non-existant directories. 16327 if test "$hardcode_direct_F77" != no && 16328 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16329 # have to relink, otherwise we might link with an installed library 16330 # when we should be linking with a yet-to-be-installed one 16331 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 16332 test "$hardcode_minus_L_F77" != no; then 16333 # Linking always hardcodes the temporary library directory. 16334 hardcode_action_F77=relink 16335 else 16336 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16337 hardcode_action_F77=immediate 16338 fi 16339else 16340 # We cannot hardcode anything, or else we can only hardcode existing 16341 # directories. 16342 hardcode_action_F77=unsupported 16343fi 16344{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 16345echo "${ECHO_T}$hardcode_action_F77" >&6; } 16346 16347if test "$hardcode_action_F77" = relink; then 16348 # Fast installation is not supported 16349 enable_fast_install=no 16350elif test "$shlibpath_overrides_runpath" = yes || 16351 test "$enable_shared" = no; then 16352 # Fast installation is not necessary 16353 enable_fast_install=needless 16354fi 16355 16356 16357# The else clause should only fire when bootstrapping the 16358# libtool distribution, otherwise you forgot to ship ltmain.sh 16359# with your package, and you will get complaints that there are 16360# no rules to generate ltmain.sh. 16361if test -f "$ltmain"; then 16362 # See if we are running on zsh, and set the options which allow our commands through 16363 # without removal of \ escapes. 16364 if test -n "${ZSH_VERSION+set}" ; then 16365 setopt NO_GLOB_SUBST 16366 fi 16367 # Now quote all the things that may contain metacharacters while being 16368 # careful not to overquote the AC_SUBSTed values. We take copies of the 16369 # variables and quote the copies for generation of the libtool script. 16370 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 16371 SED SHELL STRIP \ 16372 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 16373 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 16374 deplibs_check_method reload_flag reload_cmds need_locks \ 16375 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 16376 lt_cv_sys_global_symbol_to_c_name_address \ 16377 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 16378 old_postinstall_cmds old_postuninstall_cmds \ 16379 compiler_F77 \ 16380 CC_F77 \ 16381 LD_F77 \ 16382 lt_prog_compiler_wl_F77 \ 16383 lt_prog_compiler_pic_F77 \ 16384 lt_prog_compiler_static_F77 \ 16385 lt_prog_compiler_no_builtin_flag_F77 \ 16386 export_dynamic_flag_spec_F77 \ 16387 thread_safe_flag_spec_F77 \ 16388 whole_archive_flag_spec_F77 \ 16389 enable_shared_with_static_runtimes_F77 \ 16390 old_archive_cmds_F77 \ 16391 old_archive_from_new_cmds_F77 \ 16392 predep_objects_F77 \ 16393 postdep_objects_F77 \ 16394 predeps_F77 \ 16395 postdeps_F77 \ 16396 compiler_lib_search_path_F77 \ 16397 archive_cmds_F77 \ 16398 archive_expsym_cmds_F77 \ 16399 postinstall_cmds_F77 \ 16400 postuninstall_cmds_F77 \ 16401 old_archive_from_expsyms_cmds_F77 \ 16402 allow_undefined_flag_F77 \ 16403 no_undefined_flag_F77 \ 16404 export_symbols_cmds_F77 \ 16405 hardcode_libdir_flag_spec_F77 \ 16406 hardcode_libdir_flag_spec_ld_F77 \ 16407 hardcode_libdir_separator_F77 \ 16408 hardcode_automatic_F77 \ 16409 module_cmds_F77 \ 16410 module_expsym_cmds_F77 \ 16411 lt_cv_prog_compiler_c_o_F77 \ 16412 exclude_expsyms_F77 \ 16413 include_expsyms_F77; do 16414 16415 case $var in 16416 old_archive_cmds_F77 | \ 16417 old_archive_from_new_cmds_F77 | \ 16418 archive_cmds_F77 | \ 16419 archive_expsym_cmds_F77 | \ 16420 module_cmds_F77 | \ 16421 module_expsym_cmds_F77 | \ 16422 old_archive_from_expsyms_cmds_F77 | \ 16423 export_symbols_cmds_F77 | \ 16424 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 16425 postinstall_cmds | postuninstall_cmds | \ 16426 old_postinstall_cmds | old_postuninstall_cmds | \ 16427 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 16428 # Double-quote double-evaled strings. 16429 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 16430 ;; 16431 *) 16432 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 16433 ;; 16434 esac 16435 done 16436 16437 case $lt_echo in 16438 *'\$0 --fallback-echo"') 16439 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 16440 ;; 16441 esac 16442 16443cfgfile="$ofile" 16444 16445 cat <<__EOF__ >> "$cfgfile" 16446# ### BEGIN LIBTOOL TAG CONFIG: $tagname 16447 16448# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16449 16450# Shell to use when invoking shell scripts. 16451SHELL=$lt_SHELL 16452 16453# Whether or not to build shared libraries. 16454build_libtool_libs=$enable_shared 16455 16456# Whether or not to build static libraries. 16457build_old_libs=$enable_static 16458 16459# Whether or not to add -lc for building shared libraries. 16460build_libtool_need_lc=$archive_cmds_need_lc_F77 16461 16462# Whether or not to disallow shared libs when runtime libs are static 16463allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 16464 16465# Whether or not to optimize for fast installation. 16466fast_install=$enable_fast_install 16467 16468# The host system. 16469host_alias=$host_alias 16470host=$host 16471host_os=$host_os 16472 16473# The build system. 16474build_alias=$build_alias 16475build=$build 16476build_os=$build_os 16477 16478# An echo program that does not interpret backslashes. 16479echo=$lt_echo 16480 16481# The archiver. 16482AR=$lt_AR 16483AR_FLAGS=$lt_AR_FLAGS 16484 16485# A C compiler. 16486LTCC=$lt_LTCC 16487 16488# LTCC compiler flags. 16489LTCFLAGS=$lt_LTCFLAGS 16490 16491# A language-specific compiler. 16492CC=$lt_compiler_F77 16493 16494# Is the compiler the GNU C compiler? 16495with_gcc=$GCC_F77 16496 16497# An ERE matcher. 16498EGREP=$lt_EGREP 16499 16500# The linker used to build libraries. 16501LD=$lt_LD_F77 16502 16503# Whether we need hard or soft links. 16504LN_S=$lt_LN_S 16505 16506# A BSD-compatible nm program. 16507NM=$lt_NM 16508 16509# A symbol stripping program 16510STRIP=$lt_STRIP 16511 16512# Used to examine libraries when file_magic_cmd begins "file" 16513MAGIC_CMD=$MAGIC_CMD 16514 16515# Used on cygwin: DLL creation program. 16516DLLTOOL="$DLLTOOL" 16517 16518# Used on cygwin: object dumper. 16519OBJDUMP="$OBJDUMP" 16520 16521# Used on cygwin: assembler. 16522AS="$AS" 16523 16524# The name of the directory that contains temporary libtool files. 16525objdir=$objdir 16526 16527# How to create reloadable object files. 16528reload_flag=$lt_reload_flag 16529reload_cmds=$lt_reload_cmds 16530 16531# How to pass a linker flag through the compiler. 16532wl=$lt_lt_prog_compiler_wl_F77 16533 16534# Object file suffix (normally "o"). 16535objext="$ac_objext" 16536 16537# Old archive suffix (normally "a"). 16538libext="$libext" 16539 16540# Shared library suffix (normally ".so"). 16541shrext_cmds='$shrext_cmds' 16542 16543# Executable file suffix (normally ""). 16544exeext="$exeext" 16545 16546# Additional compiler flags for building library objects. 16547pic_flag=$lt_lt_prog_compiler_pic_F77 16548pic_mode=$pic_mode 16549 16550# What is the maximum length of a command? 16551max_cmd_len=$lt_cv_sys_max_cmd_len 16552 16553# Does compiler simultaneously support -c and -o options? 16554compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 16555 16556# Must we lock files when doing compilation? 16557need_locks=$lt_need_locks 16558 16559# Do we need the lib prefix for modules? 16560need_lib_prefix=$need_lib_prefix 16561 16562# Do we need a version for libraries? 16563need_version=$need_version 16564 16565# Whether dlopen is supported. 16566dlopen_support=$enable_dlopen 16567 16568# Whether dlopen of programs is supported. 16569dlopen_self=$enable_dlopen_self 16570 16571# Whether dlopen of statically linked programs is supported. 16572dlopen_self_static=$enable_dlopen_self_static 16573 16574# Compiler flag to prevent dynamic linking. 16575link_static_flag=$lt_lt_prog_compiler_static_F77 16576 16577# Compiler flag to turn off builtin functions. 16578no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 16579 16580# Compiler flag to allow reflexive dlopens. 16581export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 16582 16583# Compiler flag to generate shared objects directly from archives. 16584whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 16585 16586# Compiler flag to generate thread-safe objects. 16587thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 16588 16589# Library versioning type. 16590version_type=$version_type 16591 16592# Format of library name prefix. 16593libname_spec=$lt_libname_spec 16594 16595# List of archive names. First name is the real one, the rest are links. 16596# The last name is the one that the linker finds with -lNAME. 16597library_names_spec=$lt_library_names_spec 16598 16599# The coded name of the library, if different from the real name. 16600soname_spec=$lt_soname_spec 16601 16602# Commands used to build and install an old-style archive. 16603RANLIB=$lt_RANLIB 16604old_archive_cmds=$lt_old_archive_cmds_F77 16605old_postinstall_cmds=$lt_old_postinstall_cmds 16606old_postuninstall_cmds=$lt_old_postuninstall_cmds 16607 16608# Create an old-style archive from a shared archive. 16609old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 16610 16611# Create a temporary old-style archive to link instead of a shared archive. 16612old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 16613 16614# Commands used to build and install a shared archive. 16615archive_cmds=$lt_archive_cmds_F77 16616archive_expsym_cmds=$lt_archive_expsym_cmds_F77 16617postinstall_cmds=$lt_postinstall_cmds 16618postuninstall_cmds=$lt_postuninstall_cmds 16619 16620# Commands used to build a loadable module (assumed same as above if empty) 16621module_cmds=$lt_module_cmds_F77 16622module_expsym_cmds=$lt_module_expsym_cmds_F77 16623 16624# Commands to strip libraries. 16625old_striplib=$lt_old_striplib 16626striplib=$lt_striplib 16627 16628# Dependencies to place before the objects being linked to create a 16629# shared library. 16630predep_objects=$lt_predep_objects_F77 16631 16632# Dependencies to place after the objects being linked to create a 16633# shared library. 16634postdep_objects=$lt_postdep_objects_F77 16635 16636# Dependencies to place before the objects being linked to create a 16637# shared library. 16638predeps=$lt_predeps_F77 16639 16640# Dependencies to place after the objects being linked to create a 16641# shared library. 16642postdeps=$lt_postdeps_F77 16643 16644# The library search path used internally by the compiler when linking 16645# a shared library. 16646compiler_lib_search_path=$lt_compiler_lib_search_path_F77 16647 16648# Method to check whether dependent libraries are shared objects. 16649deplibs_check_method=$lt_deplibs_check_method 16650 16651# Command to use when deplibs_check_method == file_magic. 16652file_magic_cmd=$lt_file_magic_cmd 16653 16654# Flag that allows shared libraries with undefined symbols to be built. 16655allow_undefined_flag=$lt_allow_undefined_flag_F77 16656 16657# Flag that forces no undefined symbols. 16658no_undefined_flag=$lt_no_undefined_flag_F77 16659 16660# Commands used to finish a libtool library installation in a directory. 16661finish_cmds=$lt_finish_cmds 16662 16663# Same as above, but a single script fragment to be evaled but not shown. 16664finish_eval=$lt_finish_eval 16665 16666# Take the output of nm and produce a listing of raw symbols and C names. 16667global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16668 16669# Transform the output of nm in a proper C declaration 16670global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16671 16672# Transform the output of nm in a C name address pair 16673global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16674 16675# This is the shared library runtime path variable. 16676runpath_var=$runpath_var 16677 16678# This is the shared library path variable. 16679shlibpath_var=$shlibpath_var 16680 16681# Is shlibpath searched before the hard-coded library search path? 16682shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16683 16684# How to hardcode a shared library path into an executable. 16685hardcode_action=$hardcode_action_F77 16686 16687# Whether we should hardcode library paths into libraries. 16688hardcode_into_libs=$hardcode_into_libs 16689 16690# Flag to hardcode \$libdir into a binary during linking. 16691# This must work even if \$libdir does not exist. 16692hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16693 16694# If ld is used when linking, flag to hardcode \$libdir into 16695# a binary during linking. This must work even if \$libdir does 16696# not exist. 16697hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16698 16699# Whether we need a single -rpath flag with a separated argument. 16700hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16701 16702# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16703# resulting binary. 16704hardcode_direct=$hardcode_direct_F77 16705 16706# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16707# resulting binary. 16708hardcode_minus_L=$hardcode_minus_L_F77 16709 16710# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16711# the resulting binary. 16712hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16713 16714# Set to yes if building a shared library automatically hardcodes DIR into the library 16715# and all subsequent libraries and executables linked against it. 16716hardcode_automatic=$hardcode_automatic_F77 16717 16718# Variables whose values should be saved in libtool wrapper scripts and 16719# restored at relink time. 16720variables_saved_for_relink="$variables_saved_for_relink" 16721 16722# Whether libtool must link a program against all its dependency libraries. 16723link_all_deplibs=$link_all_deplibs_F77 16724 16725# Compile-time system search path for libraries 16726sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16727 16728# Run-time system search path for libraries 16729sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16730 16731# Fix the shell variable \$srcfile for the compiler. 16732fix_srcfile_path="$fix_srcfile_path_F77" 16733 16734# Set to yes if exported symbols are required. 16735always_export_symbols=$always_export_symbols_F77 16736 16737# The commands to list exported symbols. 16738export_symbols_cmds=$lt_export_symbols_cmds_F77 16739 16740# The commands to extract the exported symbol list from a shared archive. 16741extract_expsyms_cmds=$lt_extract_expsyms_cmds 16742 16743# Symbols that should not be listed in the preloaded symbols. 16744exclude_expsyms=$lt_exclude_expsyms_F77 16745 16746# Symbols that must always be exported. 16747include_expsyms=$lt_include_expsyms_F77 16748 16749# ### END LIBTOOL TAG CONFIG: $tagname 16750 16751__EOF__ 16752 16753 16754else 16755 # If there is no Makefile yet, we rely on a make rule to execute 16756 # 'config.status --recheck' to rerun these tests and create the 16757 # libtool script then. 16758 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16759 if test -f "$ltmain_in"; then 16760 test -f Makefile && make "$ltmain" 16761 fi 16762fi 16763 16764 16765ac_ext=c 16766ac_cpp='$CPP $CPPFLAGS' 16767ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16768ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16769ac_compiler_gnu=$ac_cv_c_compiler_gnu 16770 16771CC="$lt_save_CC" 16772 16773 else 16774 tagname="" 16775 fi 16776 ;; 16777 16778 GCJ) 16779 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16780 16781 16782# Source file extension for Java test sources. 16783ac_ext=java 16784 16785# Object file extension for compiled Java test sources. 16786objext=o 16787objext_GCJ=$objext 16788 16789# Code to be used in simple compile tests 16790lt_simple_compile_test_code="class foo {}\n" 16791 16792# Code to be used in simple link tests 16793lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 16794 16795# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16796 16797# If no C compiler was specified, use CC. 16798LTCC=${LTCC-"$CC"} 16799 16800# If no C compiler flags were specified, use CFLAGS. 16801LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16802 16803# Allow CC to be a program name with arguments. 16804compiler=$CC 16805 16806 16807# save warnings/boilerplate of simple test code 16808ac_outfile=conftest.$ac_objext 16809printf "$lt_simple_compile_test_code" >conftest.$ac_ext 16810eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16811_lt_compiler_boilerplate=`cat conftest.err` 16812$rm conftest* 16813 16814ac_outfile=conftest.$ac_objext 16815printf "$lt_simple_link_test_code" >conftest.$ac_ext 16816eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16817_lt_linker_boilerplate=`cat conftest.err` 16818$rm conftest* 16819 16820 16821# Allow CC to be a program name with arguments. 16822lt_save_CC="$CC" 16823CC=${GCJ-"gcj"} 16824compiler=$CC 16825compiler_GCJ=$CC 16826for cc_temp in $compiler""; do 16827 case $cc_temp in 16828 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16829 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16830 \-*) ;; 16831 *) break;; 16832 esac 16833done 16834cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16835 16836 16837# GCJ did not exist at the time GCC didn't implicitly link libc in. 16838archive_cmds_need_lc_GCJ=no 16839 16840old_archive_cmds_GCJ=$old_archive_cmds 16841 16842## CAVEAT EMPTOR: 16843## There is no encapsulation within the following macros, do not change 16844## the running order or otherwise move them around unless you know exactly 16845## what you are doing... 16846 16847lt_prog_compiler_no_builtin_flag_GCJ= 16848 16849if test "$GCC" = yes; then 16850 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16851 16852 16853{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16854echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 16855if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16856 echo $ECHO_N "(cached) $ECHO_C" >&6 16857else 16858 lt_cv_prog_compiler_rtti_exceptions=no 16859 ac_outfile=conftest.$ac_objext 16860 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16861 lt_compiler_flag="-fno-rtti -fno-exceptions" 16862 # Insert the option either (1) after the last *FLAGS variable, or 16863 # (2) before a word containing "conftest.", or (3) at the end. 16864 # Note that $ac_compile itself does not contain backslashes and begins 16865 # with a dollar sign (not a hyphen), so the echo should work correctly. 16866 # The option is referenced via a variable to avoid confusing sed. 16867 lt_compile=`echo "$ac_compile" | $SED \ 16868 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16869 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16870 -e 's:$: $lt_compiler_flag:'` 16871 (eval echo "\"\$as_me:16871: $lt_compile\"" >&5) 16872 (eval "$lt_compile" 2>conftest.err) 16873 ac_status=$? 16874 cat conftest.err >&5 16875 echo "$as_me:16875: \$? = $ac_status" >&5 16876 if (exit $ac_status) && test -s "$ac_outfile"; then 16877 # The compiler can only warn and ignore the option if not recognized 16878 # So say no if there are warnings other than the usual output. 16879 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16880 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16881 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16882 lt_cv_prog_compiler_rtti_exceptions=yes 16883 fi 16884 fi 16885 $rm conftest* 16886 16887fi 16888{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16889echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16890 16891if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16892 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16893else 16894 : 16895fi 16896 16897fi 16898 16899lt_prog_compiler_wl_GCJ= 16900lt_prog_compiler_pic_GCJ= 16901lt_prog_compiler_static_GCJ= 16902 16903{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16904echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 16905 16906 if test "$GCC" = yes; then 16907 lt_prog_compiler_wl_GCJ='-Wl,' 16908 lt_prog_compiler_static_GCJ='-static' 16909 16910 case $host_os in 16911 aix*) 16912 # All AIX code is PIC. 16913 if test "$host_cpu" = ia64; then 16914 # AIX 5 now supports IA64 processor 16915 lt_prog_compiler_static_GCJ='-Bstatic' 16916 fi 16917 ;; 16918 16919 amigaos*) 16920 # FIXME: we need at least 68020 code to build shared libraries, but 16921 # adding the '-m68020' flag to GCC prevents building anything better, 16922 # like '-m68040'. 16923 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16924 ;; 16925 16926 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16927 # PIC is the default for these OSes. 16928 ;; 16929 16930 mingw* | cygwin* | pw32* | os2*) 16931 # This hack is so that the source file can tell whether it is being 16932 # built for inclusion in a dll (and should export symbols for example). 16933 # Although the cygwin gcc ignores -fPIC, still need this for old-style 16934 # (--disable-auto-import) libraries 16935 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16936 ;; 16937 16938 darwin* | rhapsody*) 16939 # PIC is the default on this platform 16940 # Common symbols not allowed in MH_DYLIB files 16941 lt_prog_compiler_pic_GCJ='-fno-common' 16942 ;; 16943 16944 interix3*) 16945 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16946 # Instead, we relocate shared libraries at runtime. 16947 ;; 16948 16949 msdosdjgpp*) 16950 # Just because we use GCC doesn't mean we suddenly get shared libraries 16951 # on systems that don't support them. 16952 lt_prog_compiler_can_build_shared_GCJ=no 16953 enable_shared=no 16954 ;; 16955 16956 sysv4*MP*) 16957 if test -d /usr/nec; then 16958 lt_prog_compiler_pic_GCJ=-Kconform_pic 16959 fi 16960 ;; 16961 16962 hpux*) 16963 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16964 # not for PA HP-UX. 16965 case $host_cpu in 16966 hppa*64*|ia64*) 16967 # +Z the default 16968 ;; 16969 *) 16970 lt_prog_compiler_pic_GCJ='-fPIC' 16971 ;; 16972 esac 16973 ;; 16974 16975 *) 16976 lt_prog_compiler_pic_GCJ='-fPIC' 16977 ;; 16978 esac 16979 else 16980 # PORTME Check for flag to pass linker flags through the system compiler. 16981 case $host_os in 16982 aix*) 16983 lt_prog_compiler_wl_GCJ='-Wl,' 16984 if test "$host_cpu" = ia64; then 16985 # AIX 5 now supports IA64 processor 16986 lt_prog_compiler_static_GCJ='-Bstatic' 16987 else 16988 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16989 fi 16990 ;; 16991 darwin*) 16992 # PIC is the default on this platform 16993 # Common symbols not allowed in MH_DYLIB files 16994 case $cc_basename in 16995 xlc*) 16996 lt_prog_compiler_pic_GCJ='-qnocommon' 16997 lt_prog_compiler_wl_GCJ='-Wl,' 16998 ;; 16999 esac 17000 ;; 17001 17002 mingw* | cygwin* | pw32* | os2*) 17003 # This hack is so that the source file can tell whether it is being 17004 # built for inclusion in a dll (and should export symbols for example). 17005 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 17006 ;; 17007 17008 hpux9* | hpux10* | hpux11*) 17009 lt_prog_compiler_wl_GCJ='-Wl,' 17010 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 17011 # not for PA HP-UX. 17012 case $host_cpu in 17013 hppa*64*|ia64*) 17014 # +Z the default 17015 ;; 17016 *) 17017 lt_prog_compiler_pic_GCJ='+Z' 17018 ;; 17019 esac 17020 # Is there a better lt_prog_compiler_static that works with the bundled CC? 17021 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 17022 ;; 17023 17024 irix5* | irix6* | nonstopux*) 17025 lt_prog_compiler_wl_GCJ='-Wl,' 17026 # PIC (with -KPIC) is the default. 17027 lt_prog_compiler_static_GCJ='-non_shared' 17028 ;; 17029 17030 newsos6) 17031 lt_prog_compiler_pic_GCJ='-KPIC' 17032 lt_prog_compiler_static_GCJ='-Bstatic' 17033 ;; 17034 17035 linux*) 17036 case $cc_basename in 17037 icc* | ecc*) 17038 lt_prog_compiler_wl_GCJ='-Wl,' 17039 lt_prog_compiler_pic_GCJ='-KPIC' 17040 lt_prog_compiler_static_GCJ='-static' 17041 ;; 17042 pgcc* | pgf77* | pgf90* | pgf95*) 17043 # Portland Group compilers (*not* the Pentium gcc compiler, 17044 # which looks to be a dead project) 17045 lt_prog_compiler_wl_GCJ='-Wl,' 17046 lt_prog_compiler_pic_GCJ='-fpic' 17047 lt_prog_compiler_static_GCJ='-Bstatic' 17048 ;; 17049 ccc*) 17050 lt_prog_compiler_wl_GCJ='-Wl,' 17051 # All Alpha code is PIC. 17052 lt_prog_compiler_static_GCJ='-non_shared' 17053 ;; 17054 *) 17055 case `$CC -V 2>&1 | sed 5q` in 17056 *Sun\ C*) 17057 # Sun C 5.9 17058 lt_prog_compiler_pic_GCJ='-KPIC' 17059 lt_prog_compiler_static_GCJ='-Bstatic' 17060 lt_prog_compiler_wl_GCJ='-Wl,' 17061 ;; 17062 *Sun\ F*) 17063 # Sun Fortran 8.3 passes all unrecognized flags to the linker 17064 lt_prog_compiler_pic_GCJ='-KPIC' 17065 lt_prog_compiler_static_GCJ='-Bstatic' 17066 lt_prog_compiler_wl_GCJ='' 17067 ;; 17068 esac 17069 ;; 17070 esac 17071 ;; 17072 17073 osf3* | osf4* | osf5*) 17074 lt_prog_compiler_wl_GCJ='-Wl,' 17075 # All OSF/1 code is PIC. 17076 lt_prog_compiler_static_GCJ='-non_shared' 17077 ;; 17078 17079 rdos*) 17080 lt_prog_compiler_static_GCJ='-non_shared' 17081 ;; 17082 17083 solaris*) 17084 lt_prog_compiler_pic_GCJ='-KPIC' 17085 lt_prog_compiler_static_GCJ='-Bstatic' 17086 case $cc_basename in 17087 f77* | f90* | f95*) 17088 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 17089 *) 17090 lt_prog_compiler_wl_GCJ='-Wl,';; 17091 esac 17092 ;; 17093 17094 sunos4*) 17095 lt_prog_compiler_wl_GCJ='-Qoption ld ' 17096 lt_prog_compiler_pic_GCJ='-PIC' 17097 lt_prog_compiler_static_GCJ='-Bstatic' 17098 ;; 17099 17100 sysv4 | sysv4.2uw2* | sysv4.3*) 17101 lt_prog_compiler_wl_GCJ='-Wl,' 17102 lt_prog_compiler_pic_GCJ='-KPIC' 17103 lt_prog_compiler_static_GCJ='-Bstatic' 17104 ;; 17105 17106 sysv4*MP*) 17107 if test -d /usr/nec ;then 17108 lt_prog_compiler_pic_GCJ='-Kconform_pic' 17109 lt_prog_compiler_static_GCJ='-Bstatic' 17110 fi 17111 ;; 17112 17113 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 17114 lt_prog_compiler_wl_GCJ='-Wl,' 17115 lt_prog_compiler_pic_GCJ='-KPIC' 17116 lt_prog_compiler_static_GCJ='-Bstatic' 17117 ;; 17118 17119 unicos*) 17120 lt_prog_compiler_wl_GCJ='-Wl,' 17121 lt_prog_compiler_can_build_shared_GCJ=no 17122 ;; 17123 17124 uts4*) 17125 lt_prog_compiler_pic_GCJ='-pic' 17126 lt_prog_compiler_static_GCJ='-Bstatic' 17127 ;; 17128 17129 *) 17130 lt_prog_compiler_can_build_shared_GCJ=no 17131 ;; 17132 esac 17133 fi 17134 17135{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 17136echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } 17137 17138# 17139# Check to make sure the PIC flag actually works. 17140# 17141if test -n "$lt_prog_compiler_pic_GCJ"; then 17142 17143{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 17144echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } 17145if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 17146 echo $ECHO_N "(cached) $ECHO_C" >&6 17147else 17148 lt_prog_compiler_pic_works_GCJ=no 17149 ac_outfile=conftest.$ac_objext 17150 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17151 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 17152 # Insert the option either (1) after the last *FLAGS variable, or 17153 # (2) before a word containing "conftest.", or (3) at the end. 17154 # Note that $ac_compile itself does not contain backslashes and begins 17155 # with a dollar sign (not a hyphen), so the echo should work correctly. 17156 # The option is referenced via a variable to avoid confusing sed. 17157 lt_compile=`echo "$ac_compile" | $SED \ 17158 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17159 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17160 -e 's:$: $lt_compiler_flag:'` 17161 (eval echo "\"\$as_me:17161: $lt_compile\"" >&5) 17162 (eval "$lt_compile" 2>conftest.err) 17163 ac_status=$? 17164 cat conftest.err >&5 17165 echo "$as_me:17165: \$? = $ac_status" >&5 17166 if (exit $ac_status) && test -s "$ac_outfile"; then 17167 # The compiler can only warn and ignore the option if not recognized 17168 # So say no if there are warnings other than the usual output. 17169 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 17170 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17171 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17172 lt_prog_compiler_pic_works_GCJ=yes 17173 fi 17174 fi 17175 $rm conftest* 17176 17177fi 17178{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 17179echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } 17180 17181if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 17182 case $lt_prog_compiler_pic_GCJ in 17183 "" | " "*) ;; 17184 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 17185 esac 17186else 17187 lt_prog_compiler_pic_GCJ= 17188 lt_prog_compiler_can_build_shared_GCJ=no 17189fi 17190 17191fi 17192case $host_os in 17193 # For platforms which do not support PIC, -DPIC is meaningless: 17194 *djgpp*) 17195 lt_prog_compiler_pic_GCJ= 17196 ;; 17197 *) 17198 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 17199 ;; 17200esac 17201 17202# 17203# Check to make sure the static flag actually works. 17204# 17205wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 17206{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 17207echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 17208if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 17209 echo $ECHO_N "(cached) $ECHO_C" >&6 17210else 17211 lt_prog_compiler_static_works_GCJ=no 17212 save_LDFLAGS="$LDFLAGS" 17213 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17214 printf "$lt_simple_link_test_code" > conftest.$ac_ext 17215 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17216 # The linker can only warn and ignore the option if not recognized 17217 # So say no if there are warnings 17218 if test -s conftest.err; then 17219 # Append any errors to the config.log. 17220 cat conftest.err 1>&5 17221 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 17222 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17223 if diff conftest.exp conftest.er2 >/dev/null; then 17224 lt_prog_compiler_static_works_GCJ=yes 17225 fi 17226 else 17227 lt_prog_compiler_static_works_GCJ=yes 17228 fi 17229 fi 17230 $rm conftest* 17231 LDFLAGS="$save_LDFLAGS" 17232 17233fi 17234{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 17235echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } 17236 17237if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 17238 : 17239else 17240 lt_prog_compiler_static_GCJ= 17241fi 17242 17243 17244{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 17245echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 17246if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 17247 echo $ECHO_N "(cached) $ECHO_C" >&6 17248else 17249 lt_cv_prog_compiler_c_o_GCJ=no 17250 $rm -r conftest 2>/dev/null 17251 mkdir conftest 17252 cd conftest 17253 mkdir out 17254 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17255 17256 lt_compiler_flag="-o out/conftest2.$ac_objext" 17257 # Insert the option either (1) after the last *FLAGS variable, or 17258 # (2) before a word containing "conftest.", or (3) at the end. 17259 # Note that $ac_compile itself does not contain backslashes and begins 17260 # with a dollar sign (not a hyphen), so the echo should work correctly. 17261 lt_compile=`echo "$ac_compile" | $SED \ 17262 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17263 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17264 -e 's:$: $lt_compiler_flag:'` 17265 (eval echo "\"\$as_me:17265: $lt_compile\"" >&5) 17266 (eval "$lt_compile" 2>out/conftest.err) 17267 ac_status=$? 17268 cat out/conftest.err >&5 17269 echo "$as_me:17269: \$? = $ac_status" >&5 17270 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17271 then 17272 # The compiler can only warn and ignore the option if not recognized 17273 # So say no if there are warnings 17274 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 17275 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17276 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17277 lt_cv_prog_compiler_c_o_GCJ=yes 17278 fi 17279 fi 17280 chmod u+w . 2>&5 17281 $rm conftest* 17282 # SGI C++ compiler will create directory out/ii_files/ for 17283 # template instantiation 17284 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 17285 $rm out/* && rmdir out 17286 cd .. 17287 rmdir conftest 17288 $rm conftest* 17289 17290fi 17291{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 17292echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } 17293 17294 17295hard_links="nottested" 17296if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 17297 # do not overwrite the value of need_locks provided by the user 17298 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 17299echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 17300 hard_links=yes 17301 $rm conftest* 17302 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17303 touch conftest.a 17304 ln conftest.a conftest.b 2>&5 || hard_links=no 17305 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17306 { echo "$as_me:$LINENO: result: $hard_links" >&5 17307echo "${ECHO_T}$hard_links" >&6; } 17308 if test "$hard_links" = no; then 17309 { echo "$as_me:$LINENO: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 17310echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 17311 need_locks=warn 17312 fi 17313else 17314 need_locks=no 17315fi 17316 17317{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17318echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 17319 17320 runpath_var= 17321 allow_undefined_flag_GCJ= 17322 enable_shared_with_static_runtimes_GCJ=no 17323 archive_cmds_GCJ= 17324 archive_expsym_cmds_GCJ= 17325 old_archive_From_new_cmds_GCJ= 17326 old_archive_from_expsyms_cmds_GCJ= 17327 export_dynamic_flag_spec_GCJ= 17328 whole_archive_flag_spec_GCJ= 17329 thread_safe_flag_spec_GCJ= 17330 hardcode_libdir_flag_spec_GCJ= 17331 hardcode_libdir_flag_spec_ld_GCJ= 17332 hardcode_libdir_separator_GCJ= 17333 hardcode_direct_GCJ=no 17334 hardcode_minus_L_GCJ=no 17335 hardcode_shlibpath_var_GCJ=unsupported 17336 link_all_deplibs_GCJ=unknown 17337 hardcode_automatic_GCJ=no 17338 module_cmds_GCJ= 17339 module_expsym_cmds_GCJ= 17340 always_export_symbols_GCJ=no 17341 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17342 # include_expsyms should be a list of space-separated symbols to be *always* 17343 # included in the symbol list 17344 include_expsyms_GCJ= 17345 # exclude_expsyms can be an extended regexp of symbols to exclude 17346 # it will be wrapped by ' (' and ')$', so one must not match beginning or 17347 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 17348 # as well as any symbol that contains 'd'. 17349 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 17350 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 17351 # platforms (ab)use it in PIC code, but their linkers get confused if 17352 # the symbol is explicitly referenced. Since portable code cannot 17353 # rely on this symbol name, it's probably fine to never include it in 17354 # preloaded symbol tables. 17355 extract_expsyms_cmds= 17356 # Just being paranoid about ensuring that cc_basename is set. 17357 for cc_temp in $compiler""; do 17358 case $cc_temp in 17359 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17360 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17361 \-*) ;; 17362 *) break;; 17363 esac 17364done 17365cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17366 17367 case $host_os in 17368 cygwin* | mingw* | pw32*) 17369 # FIXME: the MSVC++ port hasn't been tested in a loooong time 17370 # When not using gcc, we currently assume that we are using 17371 # Microsoft Visual C++. 17372 if test "$GCC" != yes; then 17373 with_gnu_ld=no 17374 fi 17375 ;; 17376 interix*) 17377 # we just hope/assume this is gcc and not c89 (= MSVC++) 17378 with_gnu_ld=yes 17379 ;; 17380 mirbsd*) 17381 with_gnu_ld=yes 17382 ;; 17383 openbsd*) 17384 with_gnu_ld=no 17385 ;; 17386 esac 17387 17388 ld_shlibs_GCJ=yes 17389 if test "$with_gnu_ld" = yes; then 17390 # If archive_cmds runs LD, not CC, wlarc should be empty 17391 wlarc='${wl}' 17392 17393 # Set some defaults for GNU ld with shared library support. These 17394 # are reset later if shared libraries are not supported. Putting them 17395 # here allows them to be overridden if necessary. 17396 runpath_var=LD_RUN_PATH 17397 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 17398 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 17399 # ancient GNU ld didn't support --whole-archive et. al. 17400 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 17401 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 17402 else 17403 whole_archive_flag_spec_GCJ= 17404 fi 17405 supports_anon_versioning=no 17406 case `$LD -v 2>/dev/null` in 17407 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 17408 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 17409 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 17410 *\ 2.11.*) ;; # other 2.11 versions 17411 *) supports_anon_versioning=yes ;; 17412 esac 17413 17414 # See if GNU ld supports shared libraries. 17415 case $host_os in 17416 aix3* | aix4* | aix5*) 17417 # On AIX/PPC, the GNU linker is very broken 17418 if test "$host_cpu" != ia64; then 17419 ld_shlibs_GCJ=no 17420 cat <<EOF 1>&2 17421 17422*** Warning: the GNU linker, at least up to release 2.9.1, is reported 17423*** to be unable to reliably create shared libraries on AIX. 17424*** Therefore, libtool is disabling shared libraries support. If you 17425*** really care for shared libraries, you may want to modify your PATH 17426*** so that a non-GNU linker is found, and then restart. 17427 17428EOF 17429 fi 17430 ;; 17431 17432 amigaos*) 17433 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)' 17434 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17435 hardcode_minus_L_GCJ=yes 17436 17437 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 17438 # that the semantics of dynamic libraries on AmigaOS, at least up 17439 # to version 4, is to share data among multiple programs linked 17440 # with the same dynamic library. Since this doesn't match the 17441 # behavior of shared libraries on other platforms, we can't use 17442 # them. 17443 ld_shlibs_GCJ=no 17444 ;; 17445 17446 beos*) 17447 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17448 allow_undefined_flag_GCJ=unsupported 17449 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 17450 # support --undefined. This deserves some investigation. FIXME 17451 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17452 else 17453 ld_shlibs_GCJ=no 17454 fi 17455 ;; 17456 17457 cygwin* | mingw* | pw32*) 17458 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 17459 # as there is no search path for DLLs. 17460 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17461 allow_undefined_flag_GCJ=unsupported 17462 always_export_symbols_GCJ=no 17463 enable_shared_with_static_runtimes_GCJ=yes 17464 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 17465 17466 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 17467 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17468 # If the export-symbols file already is a .def file (1st line 17469 # is EXPORTS), use it as is; otherwise, prepend... 17470 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 17471 cp $export_symbols $output_objdir/$soname.def; 17472 else 17473 echo EXPORTS > $output_objdir/$soname.def; 17474 cat $export_symbols >> $output_objdir/$soname.def; 17475 fi~ 17476 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17477 else 17478 ld_shlibs_GCJ=no 17479 fi 17480 ;; 17481 17482 interix3*) 17483 hardcode_direct_GCJ=no 17484 hardcode_shlibpath_var_GCJ=no 17485 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17486 export_dynamic_flag_spec_GCJ='${wl}-E' 17487 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 17488 # Instead, shared libraries are loaded at an image base (0x10000000 by 17489 # default) and relocated if they conflict, which is a slow very memory 17490 # consuming and fragmenting process. To avoid this, we pick a random, 17491 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 17492 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 17493 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' 17494 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' 17495 ;; 17496 17497 linux*) 17498 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17499 tmp_addflag= 17500 case $cc_basename,$host_cpu in 17501 pgcc*) # Portland Group C compiler 17502 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' 17503 tmp_addflag=' $pic_flag' 17504 ;; 17505 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 17506 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' 17507 tmp_addflag=' $pic_flag -Mnomain' ;; 17508 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 17509 tmp_addflag=' -i_dynamic' ;; 17510 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 17511 tmp_addflag=' -i_dynamic -nofor_main' ;; 17512 ifc* | ifort*) # Intel Fortran compiler 17513 tmp_addflag=' -nofor_main' ;; 17514 esac 17515 case `$CC -V 2>&1 | sed 5q` in 17516 *Sun\ C*) # Sun C 5.9 17517 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 /dev/null' 17518 tmp_sharedflag='-G' ;; 17519 *Sun\ F*) # Sun Fortran 8.3 17520 tmp_sharedflag='-G' ;; 17521 *) 17522 tmp_sharedflag='-shared' ;; 17523 esac 17524 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17525 17526 if test $supports_anon_versioning = yes; then 17527 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 17528 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17529 $echo "local: *; };" >> $output_objdir/$libname.ver~ 17530 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17531 fi 17532 else 17533 ld_shlibs_GCJ=no 17534 fi 17535 ;; 17536 17537 mirbsd*) 17538 hardcode_direct_GCJ=yes 17539 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags -o $lib' 17540 archive_expsym_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 17541 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17542 export_dynamic_flag_spec_GCJ='${wl}-E' 17543 ;; 17544 17545 netbsd*) 17546 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17547 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17548 wlarc= 17549 else 17550 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17551 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17552 fi 17553 ;; 17554 17555 solaris*) 17556 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 17557 ld_shlibs_GCJ=no 17558 cat <<EOF 1>&2 17559 17560*** Warning: The releases 2.8.* of the GNU linker cannot reliably 17561*** create shared libraries on Solaris systems. Therefore, libtool 17562*** is disabling shared libraries support. We urge you to upgrade GNU 17563*** binutils to release 2.9.1 or newer. Another option is to modify 17564*** your PATH or compiler configuration so that the native linker is 17565*** used, and then restart. 17566 17567EOF 17568 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17569 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17570 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17571 else 17572 ld_shlibs_GCJ=no 17573 fi 17574 ;; 17575 17576 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 17577 case `$LD -v 2>&1` in 17578 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 17579 ld_shlibs_GCJ=no 17580 cat <<_LT_EOF 1>&2 17581 17582*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 17583*** reliably create shared libraries on SCO systems. Therefore, libtool 17584*** is disabling shared libraries support. We urge you to upgrade GNU 17585*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 17586*** your PATH or compiler configuration so that the native linker is 17587*** used, and then restart. 17588 17589_LT_EOF 17590 ;; 17591 *) 17592 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17593 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 17594 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 17595 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 17596 else 17597 ld_shlibs_GCJ=no 17598 fi 17599 ;; 17600 esac 17601 ;; 17602 17603 sunos4*) 17604 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17605 wlarc= 17606 hardcode_direct_GCJ=yes 17607 hardcode_shlibpath_var_GCJ=no 17608 ;; 17609 17610 *) 17611 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17612 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17613 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17614 else 17615 ld_shlibs_GCJ=no 17616 fi 17617 ;; 17618 esac 17619 17620 if test "$ld_shlibs_GCJ" = no; then 17621 runpath_var= 17622 hardcode_libdir_flag_spec_GCJ= 17623 export_dynamic_flag_spec_GCJ= 17624 whole_archive_flag_spec_GCJ= 17625 fi 17626 else 17627 # PORTME fill in a description of your system's linker (not GNU ld) 17628 case $host_os in 17629 aix3*) 17630 allow_undefined_flag_GCJ=unsupported 17631 always_export_symbols_GCJ=yes 17632 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' 17633 # Note: this linker hardcodes the directories in LIBPATH if there 17634 # are no directories specified by -L. 17635 hardcode_minus_L_GCJ=yes 17636 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 17637 # Neither direct hardcoding nor static linking is supported with a 17638 # broken collect2. 17639 hardcode_direct_GCJ=unsupported 17640 fi 17641 ;; 17642 17643 aix4* | aix5*) 17644 if test "$host_cpu" = ia64; then 17645 # On IA64, the linker does run time linking by default, so we don't 17646 # have to do anything special. 17647 aix_use_runtimelinking=no 17648 exp_sym_flag='-Bexport' 17649 no_entry_flag="" 17650 else 17651 # If we're using GNU nm, then we don't want the "-C" option. 17652 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17653 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 17654 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' 17655 else 17656 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' 17657 fi 17658 aix_use_runtimelinking=no 17659 17660 # Test if we are trying to use run time linking or normal 17661 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17662 # need to do runtime linking. 17663 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 17664 for ld_flag in $LDFLAGS; do 17665 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17666 aix_use_runtimelinking=yes 17667 break 17668 fi 17669 done 17670 ;; 17671 esac 17672 17673 exp_sym_flag='-bexport' 17674 no_entry_flag='-bnoentry' 17675 fi 17676 17677 # When large executables or shared objects are built, AIX ld can 17678 # have problems creating the table of contents. If linking a library 17679 # or program results in "error TOC overflow" add -mminimal-toc to 17680 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17681 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17682 17683 archive_cmds_GCJ='' 17684 hardcode_direct_GCJ=yes 17685 hardcode_libdir_separator_GCJ=':' 17686 link_all_deplibs_GCJ=yes 17687 17688 if test "$GCC" = yes; then 17689 case $host_os in aix4.[012]|aix4.[012].*) 17690 # We only want to do this on AIX 4.2 and lower, the check 17691 # below for broken collect2 doesn't work under 4.3+ 17692 collect2name=`${CC} -print-prog-name=collect2` 17693 if test -f "$collect2name" && \ 17694 strings "$collect2name" | grep resolve_lib_name >/dev/null 17695 then 17696 # We have reworked collect2 17697 : 17698 else 17699 # We have old collect2 17700 hardcode_direct_GCJ=unsupported 17701 # It fails to find uninstalled libraries when the uninstalled 17702 # path is not listed in the libpath. Setting hardcode_minus_L 17703 # to unsupported forces relinking 17704 hardcode_minus_L_GCJ=yes 17705 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17706 hardcode_libdir_separator_GCJ= 17707 fi 17708 ;; 17709 esac 17710 shared_flag='-shared' 17711 if test "$aix_use_runtimelinking" = yes; then 17712 shared_flag="$shared_flag "'${wl}-G' 17713 fi 17714 else 17715 # not using gcc 17716 if test "$host_cpu" = ia64; then 17717 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17718 # chokes on -Wl,-G. The following line is correct: 17719 shared_flag='-G' 17720 else 17721 if test "$aix_use_runtimelinking" = yes; then 17722 shared_flag='${wl}-G' 17723 else 17724 shared_flag='${wl}-bM:SRE' 17725 fi 17726 fi 17727 fi 17728 17729 # It seems that -bexpall does not export symbols beginning with 17730 # underscore (_), so it is better to generate a list of symbols to export. 17731 always_export_symbols_GCJ=yes 17732 if test "$aix_use_runtimelinking" = yes; then 17733 # Warning - without using the other runtime loading flags (-brtl), 17734 # -berok will link without error, but may produce a broken library. 17735 allow_undefined_flag_GCJ='-berok' 17736 # Determine the default libpath from the value encoded in an empty executable. 17737 aix_libpath="/usr/lib:/lib" 17738 17739 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17740 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" 17741 else 17742 if test "$host_cpu" = ia64; then 17743 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17744 allow_undefined_flag_GCJ="-z nodefs" 17745 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" 17746 else 17747 # Determine the default libpath from the value encoded in an empty executable. 17748 aix_libpath="/usr/lib:/lib" 17749 17750 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17751 # Warning - without using the other run time loading flags, 17752 # -berok will link without error, but may produce a broken library. 17753 no_undefined_flag_GCJ=' ${wl}-bernotok' 17754 allow_undefined_flag_GCJ=' ${wl}-berok' 17755 # Exported symbols can be pulled into shared objects from archives 17756 whole_archive_flag_spec_GCJ='$convenience' 17757 archive_cmds_need_lc_GCJ=yes 17758 # This is similar to how AIX traditionally builds its shared libraries. 17759 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' 17760 fi 17761 fi 17762 ;; 17763 17764 amigaos*) 17765 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)' 17766 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17767 hardcode_minus_L_GCJ=yes 17768 # see comment about different semantics on the GNU ld section 17769 ld_shlibs_GCJ=no 17770 ;; 17771 17772 bsdi[45]*) 17773 export_dynamic_flag_spec_GCJ=-rdynamic 17774 ;; 17775 17776 cygwin* | mingw* | pw32*) 17777 # When not using gcc, we currently assume that we are using 17778 # Microsoft Visual C++. 17779 # hardcode_libdir_flag_spec is actually meaningless, as there is 17780 # no search path for DLLs. 17781 hardcode_libdir_flag_spec_GCJ=' ' 17782 allow_undefined_flag_GCJ=unsupported 17783 # Tell ltmain to make .lib files, not .a files. 17784 libext=lib 17785 # Tell ltmain to make .dll files, not .so files. 17786 shrext_cmds=".dll" 17787 # FIXME: Setting linknames here is a bad hack. 17788 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17789 # The linker will automatically build a .lib file if we build a DLL. 17790 old_archive_From_new_cmds_GCJ='true' 17791 # FIXME: Should let the user specify the lib program. 17792 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 17793 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17794 enable_shared_with_static_runtimes_GCJ=yes 17795 ;; 17796 17797 darwin* | rhapsody*) 17798 case $host_os in 17799 rhapsody* | darwin1.[012]) 17800 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17801 ;; 17802 *) # Darwin 1.3 on 17803 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17804 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17805 else 17806 case ${MACOSX_DEPLOYMENT_TARGET} in 17807 10.[012]) 17808 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17809 ;; 17810 10.*) 17811 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17812 ;; 17813 esac 17814 fi 17815 ;; 17816 esac 17817 archive_cmds_need_lc_GCJ=no 17818 hardcode_direct_GCJ=no 17819 hardcode_automatic_GCJ=yes 17820 hardcode_shlibpath_var_GCJ=unsupported 17821 whole_archive_flag_spec_GCJ='' 17822 link_all_deplibs_GCJ=yes 17823 if test "$GCC" = yes ; then 17824 output_verbose_link_cmd='echo' 17825 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 17826 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17827 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17828 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17829 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}' 17830 else 17831 case $cc_basename in 17832 xlc*) 17833 output_verbose_link_cmd='echo' 17834 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 17835 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17836 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17837 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17838 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}' 17839 ;; 17840 *) 17841 ld_shlibs_GCJ=no 17842 ;; 17843 esac 17844 fi 17845 ;; 17846 17847 dgux*) 17848 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17849 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17850 hardcode_shlibpath_var_GCJ=no 17851 ;; 17852 17853 freebsd1*) 17854 ld_shlibs_GCJ=no 17855 ;; 17856 17857 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17858 # support. Future versions do this automatically, but an explicit c++rt0.o 17859 # does not break anything, and helps significantly (at the cost of a little 17860 # extra space). 17861 freebsd2.2*) 17862 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17863 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17864 hardcode_direct_GCJ=yes 17865 hardcode_shlibpath_var_GCJ=no 17866 ;; 17867 17868 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17869 freebsd2*) 17870 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17871 hardcode_direct_GCJ=yes 17872 hardcode_minus_L_GCJ=yes 17873 hardcode_shlibpath_var_GCJ=no 17874 ;; 17875 17876 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17877 freebsd* | kfreebsd*-gnu | dragonfly*) 17878 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17879 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17880 hardcode_direct_GCJ=yes 17881 hardcode_shlibpath_var_GCJ=no 17882 ;; 17883 17884 hpux9*) 17885 if test "$GCC" = yes; then 17886 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' 17887 else 17888 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' 17889 fi 17890 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17891 hardcode_libdir_separator_GCJ=: 17892 hardcode_direct_GCJ=yes 17893 17894 # hardcode_minus_L: Not really in the search PATH, 17895 # but as the default location of the library. 17896 hardcode_minus_L_GCJ=yes 17897 export_dynamic_flag_spec_GCJ='${wl}-E' 17898 ;; 17899 17900 hpux10*) 17901 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17902 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17903 else 17904 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17905 fi 17906 if test "$with_gnu_ld" = no; then 17907 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17908 hardcode_libdir_separator_GCJ=: 17909 17910 hardcode_direct_GCJ=yes 17911 export_dynamic_flag_spec_GCJ='${wl}-E' 17912 17913 # hardcode_minus_L: Not really in the search PATH, 17914 # but as the default location of the library. 17915 hardcode_minus_L_GCJ=yes 17916 fi 17917 ;; 17918 17919 hpux11*) 17920 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17921 case $host_cpu in 17922 hppa*64*) 17923 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17924 ;; 17925 ia64*) 17926 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17927 ;; 17928 *) 17929 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17930 ;; 17931 esac 17932 else 17933 case $host_cpu in 17934 hppa*64*) 17935 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17936 ;; 17937 ia64*) 17938 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17939 ;; 17940 *) 17941 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17942 ;; 17943 esac 17944 fi 17945 if test "$with_gnu_ld" = no; then 17946 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17947 hardcode_libdir_separator_GCJ=: 17948 17949 case $host_cpu in 17950 hppa*64*|ia64*) 17951 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 17952 hardcode_direct_GCJ=no 17953 hardcode_shlibpath_var_GCJ=no 17954 ;; 17955 *) 17956 hardcode_direct_GCJ=yes 17957 export_dynamic_flag_spec_GCJ='${wl}-E' 17958 17959 # hardcode_minus_L: Not really in the search PATH, 17960 # but as the default location of the library. 17961 hardcode_minus_L_GCJ=yes 17962 ;; 17963 esac 17964 fi 17965 ;; 17966 17967 irix5* | irix6* | nonstopux*) 17968 if test "$GCC" = yes; then 17969 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' 17970 else 17971 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' 17972 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 17973 fi 17974 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17975 hardcode_libdir_separator_GCJ=: 17976 link_all_deplibs_GCJ=yes 17977 ;; 17978 17979 netbsd*) 17980 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17981 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17982 else 17983 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17984 fi 17985 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17986 hardcode_direct_GCJ=yes 17987 hardcode_shlibpath_var_GCJ=no 17988 ;; 17989 17990 newsos6) 17991 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17992 hardcode_direct_GCJ=yes 17993 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17994 hardcode_libdir_separator_GCJ=: 17995 hardcode_shlibpath_var_GCJ=no 17996 ;; 17997 17998 openbsd*) 17999 hardcode_direct_GCJ=yes 18000 hardcode_shlibpath_var_GCJ=no 18001 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18002 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags -o $lib' 18003 archive_expsym_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 18004 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18005 export_dynamic_flag_spec_GCJ='${wl}-E' 18006 else 18007 case $host_os in 18008 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 18009 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18010 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18011 ;; 18012 *) 18013 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18014 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18015 ;; 18016 esac 18017 fi 18018 ;; 18019 18020 os2*) 18021 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18022 hardcode_minus_L_GCJ=yes 18023 allow_undefined_flag_GCJ=unsupported 18024 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' 18025 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 18026 ;; 18027 18028 osf3*) 18029 if test "$GCC" = yes; then 18030 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18031 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' 18032 else 18033 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18034 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' 18035 fi 18036 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18037 hardcode_libdir_separator_GCJ=: 18038 ;; 18039 18040 osf4* | osf5*) # as osf3* with the addition of -msym flag 18041 if test "$GCC" = yes; then 18042 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18043 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' 18044 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18045 else 18046 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18047 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' 18048 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~ 18049 $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' 18050 18051 # Both c and cxx compiler support -rpath directly 18052 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 18053 fi 18054 hardcode_libdir_separator_GCJ=: 18055 ;; 18056 18057 solaris*) 18058 no_undefined_flag_GCJ=' -z text' 18059 if test "$GCC" = yes; then 18060 wlarc='${wl}' 18061 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18062 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18063 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 18064 else 18065 wlarc='' 18066 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 18067 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18068 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 18069 fi 18070 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18071 hardcode_shlibpath_var_GCJ=no 18072 case $host_os in 18073 solaris2.[0-5] | solaris2.[0-5].*) ;; 18074 *) 18075 # The compiler driver will combine and reorder linker options, 18076 # but understands `-z linker_flag'. GCC discards it without `$wl', 18077 # but is careful enough not to reorder. 18078 # Supported since Solaris 2.6 (maybe 2.5.1?) 18079 if test "$GCC" = yes; then 18080 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 18081 else 18082 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' 18083 fi 18084 ;; 18085 esac 18086 link_all_deplibs_GCJ=yes 18087 ;; 18088 18089 sunos4*) 18090 if test "x$host_vendor" = xsequent; then 18091 # Use $CC to link under sequent, because it throws in some extra .o 18092 # files that make .init and .fini sections work. 18093 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 18094 else 18095 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 18096 fi 18097 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18098 hardcode_direct_GCJ=yes 18099 hardcode_minus_L_GCJ=yes 18100 hardcode_shlibpath_var_GCJ=no 18101 ;; 18102 18103 sysv4) 18104 case $host_vendor in 18105 sni) 18106 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18107 hardcode_direct_GCJ=yes # is this really true??? 18108 ;; 18109 siemens) 18110 ## LD is ld it makes a PLAMLIB 18111 ## CC just makes a GrossModule. 18112 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 18113 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 18114 hardcode_direct_GCJ=no 18115 ;; 18116 motorola) 18117 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18118 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 18119 ;; 18120 esac 18121 runpath_var='LD_RUN_PATH' 18122 hardcode_shlibpath_var_GCJ=no 18123 ;; 18124 18125 sysv4.3*) 18126 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18127 hardcode_shlibpath_var_GCJ=no 18128 export_dynamic_flag_spec_GCJ='-Bexport' 18129 ;; 18130 18131 sysv4*MP*) 18132 if test -d /usr/nec; then 18133 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18134 hardcode_shlibpath_var_GCJ=no 18135 runpath_var=LD_RUN_PATH 18136 hardcode_runpath_var=yes 18137 ld_shlibs_GCJ=yes 18138 fi 18139 ;; 18140 18141 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 18142 no_undefined_flag_GCJ='${wl}-z,text' 18143 archive_cmds_need_lc_GCJ=no 18144 hardcode_shlibpath_var_GCJ=no 18145 runpath_var='LD_RUN_PATH' 18146 18147 if test "$GCC" = yes; then 18148 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18149 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18150 else 18151 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18152 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18153 fi 18154 ;; 18155 18156 sysv5* | sco3.2v5* | sco5v6*) 18157 # Note: We can NOT use -z defs as we might desire, because we do not 18158 # link with -lc, and that would cause any symbols used from libc to 18159 # always be unresolved, which means just about no library would 18160 # ever link correctly. If we're not using GNU ld we use -z text 18161 # though, which does catch some bad symbols but isn't as heavy-handed 18162 # as -z defs. 18163 no_undefined_flag_GCJ='${wl}-z,text' 18164 allow_undefined_flag_GCJ='${wl}-z,nodefs' 18165 archive_cmds_need_lc_GCJ=no 18166 hardcode_shlibpath_var_GCJ=no 18167 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 18168 hardcode_libdir_separator_GCJ=':' 18169 link_all_deplibs_GCJ=yes 18170 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 18171 runpath_var='LD_RUN_PATH' 18172 18173 if test "$GCC" = yes; then 18174 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18175 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18176 else 18177 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18178 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18179 fi 18180 ;; 18181 18182 uts4*) 18183 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18184 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18185 hardcode_shlibpath_var_GCJ=no 18186 ;; 18187 18188 *) 18189 ld_shlibs_GCJ=no 18190 ;; 18191 esac 18192 fi 18193 18194{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 18195echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } 18196test "$ld_shlibs_GCJ" = no && can_build_shared=no 18197 18198# 18199# Do we need to explicitly link libc? 18200# 18201case "x$archive_cmds_need_lc_GCJ" in 18202x|xyes) 18203 # Assume -lc should be added 18204 archive_cmds_need_lc_GCJ=yes 18205 18206 if test "$enable_shared" = yes && test "$GCC" = yes; then 18207 case $archive_cmds_GCJ in 18208 *'~'*) 18209 # FIXME: we may have to deal with multi-command sequences. 18210 ;; 18211 '$CC '*) 18212 # Test whether the compiler implicitly links with -lc since on some 18213 # systems, -lgcc has to come before -lc. If gcc already passes -lc 18214 # to ld, don't add -lc before -lgcc. 18215 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 18216echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 18217 $rm conftest* 18218 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 18219 18220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18221 (eval $ac_compile) 2>&5 18222 ac_status=$? 18223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18224 (exit $ac_status); } 2>conftest.err; then 18225 soname=conftest 18226 lib=conftest 18227 libobjs=conftest.$ac_objext 18228 deplibs= 18229 wl=$lt_prog_compiler_wl_GCJ 18230 pic_flag=$lt_prog_compiler_pic_GCJ 18231 compiler_flags=-v 18232 linker_flags=-v 18233 verstring= 18234 output_objdir=. 18235 libname=conftest 18236 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 18237 allow_undefined_flag_GCJ= 18238 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 18239 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 18240 ac_status=$? 18241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18242 (exit $ac_status); } 18243 then 18244 archive_cmds_need_lc_GCJ=no 18245 else 18246 archive_cmds_need_lc_GCJ=yes 18247 fi 18248 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 18249 else 18250 cat conftest.err 1>&5 18251 fi 18252 $rm conftest* 18253 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 18254echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } 18255 ;; 18256 esac 18257 fi 18258 ;; 18259esac 18260 18261{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 18262echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 18263library_names_spec= 18264libname_spec='lib$name' 18265soname_spec= 18266shrext_cmds=".so" 18267postinstall_cmds= 18268postuninstall_cmds= 18269finish_cmds= 18270finish_eval= 18271shlibpath_var= 18272shlibpath_overrides_runpath=unknown 18273version_type=none 18274dynamic_linker="$host_os ld.so" 18275sys_lib_dlsearch_path_spec="/lib /usr/lib" 18276if test "$GCC" = yes; then 18277 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18278 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 18279 # if the path contains ";" then we assume it to be the separator 18280 # otherwise default to the standard path separator (i.e. ":") - it is 18281 # assumed that no part of a normal pathname contains ";" but that should 18282 # okay in the real world where ";" in dirpaths is itself problematic. 18283 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18284 else 18285 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18286 fi 18287else 18288 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18289fi 18290tmp="$sys_lib_search_path_spec" 18291sys_lib_search_path_spec= 18292sp= 18293for i in $tmp 18294do 18295 test -d $i && sys_lib_search_path_spec="$sys_lib_search_path_spec$sp$i" 18296 sp=" " 18297done 18298 18299need_lib_prefix=unknown 18300hardcode_into_libs=no 18301 18302# when you set need_version to no, make sure it does not cause -set_version 18303# flags to be left without arguments 18304need_version=unknown 18305 18306case $host_os in 18307aix3*) 18308 version_type=linux 18309 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 18310 shlibpath_var=LIBPATH 18311 18312 # AIX 3 has no versioning support, so we append a major version to the name. 18313 soname_spec='${libname}${release}${shared_ext}$major' 18314 ;; 18315 18316aix4* | aix5*) 18317 version_type=linux 18318 need_lib_prefix=no 18319 need_version=no 18320 hardcode_into_libs=yes 18321 if test "$host_cpu" = ia64; then 18322 # AIX 5 supports IA64 18323 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 18324 shlibpath_var=LD_LIBRARY_PATH 18325 else 18326 # With GCC up to 2.95.x, collect2 would create an import file 18327 # for dependence libraries. The import file would start with 18328 # the line '#! .'. This would cause the generated library to 18329 # depend on '.', always an invalid library. This was fixed in 18330 # development snapshots of GCC prior to 3.0. 18331 case $host_os in 18332 aix4 | aix4.[01] | aix4.[01].*) 18333 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18334 echo ' yes ' 18335 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 18336 : 18337 else 18338 can_build_shared=no 18339 fi 18340 ;; 18341 esac 18342 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 18343 # soname into executable. Probably we can add versioning support to 18344 # collect2, so additional links can be useful in future. 18345 if test "$aix_use_runtimelinking" = yes; then 18346 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18347 # instead of lib<name>.a to let people know that these are not 18348 # typical AIX shared libraries. 18349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18350 else 18351 # We preserve .a as extension for shared libraries through AIX4.2 18352 # and later when we are not doing run time linking. 18353 library_names_spec='${libname}${release}.a $libname.a' 18354 soname_spec='${libname}${release}${shared_ext}$major' 18355 fi 18356 shlibpath_var=LIBPATH 18357 fi 18358 ;; 18359 18360amigaos*) 18361 library_names_spec='$libname.ixlibrary $libname.a' 18362 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18363 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' 18364 ;; 18365 18366beos*) 18367 library_names_spec='${libname}${shared_ext}' 18368 dynamic_linker="$host_os ld.so" 18369 shlibpath_var=LIBRARY_PATH 18370 ;; 18371 18372bsdi[45]*) 18373 version_type=linux 18374 need_version=no 18375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18376 soname_spec='${libname}${release}${shared_ext}$major' 18377 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18378 shlibpath_var=LD_LIBRARY_PATH 18379 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18380 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18381 # the default ld.so.conf also contains /usr/contrib/lib and 18382 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18383 # libtool to hard-code these into programs 18384 ;; 18385 18386cygwin* | mingw* | pw32*) 18387 version_type=windows 18388 shrext_cmds=".dll" 18389 need_version=no 18390 need_lib_prefix=no 18391 18392 case $GCC,$host_os in 18393 yes,cygwin* | yes,mingw* | yes,pw32*) 18394 library_names_spec='$libname.dll.a' 18395 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18396 postinstall_cmds='base_file=`basename \${file}`~ 18397 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 18398 dldir=$destdir/`dirname \$dlpath`~ 18399 test -d \$dldir || mkdir -p \$dldir~ 18400 $install_prog $dir/$dlname \$dldir/$dlname~ 18401 chmod a+x \$dldir/$dlname' 18402 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18403 dlpath=$dir/\$dldll~ 18404 $rm \$dlpath' 18405 shlibpath_overrides_runpath=yes 18406 18407 case $host_os in 18408 cygwin*) 18409 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18410 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18411 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 18412 ;; 18413 mingw*) 18414 # MinGW DLLs use traditional 'lib' prefix 18415 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18416 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18417 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 18418 # It is most probably a Windows format PATH printed by 18419 # mingw gcc, but we are running on Cygwin. Gcc prints its search 18420 # path with ; separators, and with drive letters. We can handle the 18421 # drive letters (cygwin fileutils understands them), so leave them, 18422 # especially as we might pass files found there to a mingw objdump, 18423 # which wouldn't understand a cygwinified path. Ahh. 18424 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18425 else 18426 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18427 fi 18428 ;; 18429 pw32*) 18430 # pw32 DLLs use 'pw' prefix rather than 'lib' 18431 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18432 ;; 18433 esac 18434 ;; 18435 18436 *) 18437 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 18438 ;; 18439 esac 18440 dynamic_linker='Win32 ld.exe' 18441 # FIXME: first we should search . and the directory the executable is in 18442 shlibpath_var=PATH 18443 ;; 18444 18445darwin* | rhapsody*) 18446 dynamic_linker="$host_os dyld" 18447 version_type=darwin 18448 need_lib_prefix=no 18449 need_version=no 18450 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 18451 soname_spec='${libname}${release}${major}$shared_ext' 18452 shlibpath_overrides_runpath=yes 18453 shlibpath_var=DYLD_LIBRARY_PATH 18454 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18455 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 18456 if test "$GCC" = yes; then 18457 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 18458 else 18459 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 18460 fi 18461 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18462 ;; 18463 18464dgux*) 18465 version_type=linux 18466 need_lib_prefix=no 18467 need_version=no 18468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 18469 soname_spec='${libname}${release}${shared_ext}$major' 18470 shlibpath_var=LD_LIBRARY_PATH 18471 ;; 18472 18473freebsd1*) 18474 dynamic_linker=no 18475 ;; 18476 18477kfreebsd*-gnu) 18478 version_type=linux 18479 need_lib_prefix=no 18480 need_version=no 18481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18482 soname_spec='${libname}${release}${shared_ext}$major' 18483 shlibpath_var=LD_LIBRARY_PATH 18484 shlibpath_overrides_runpath=no 18485 hardcode_into_libs=yes 18486 dynamic_linker='GNU ld.so' 18487 ;; 18488 18489freebsd* | dragonfly*) 18490 # DragonFly does not have aout. When/if they implement a new 18491 # versioning mechanism, adjust this. 18492 if test -x /usr/bin/objformat; then 18493 objformat=`/usr/bin/objformat` 18494 else 18495 case $host_os in 18496 freebsd[123]*) objformat=aout ;; 18497 *) objformat=elf ;; 18498 esac 18499 fi 18500 version_type=freebsd-$objformat 18501 case $version_type in 18502 freebsd-elf*) 18503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18504 need_version=no 18505 need_lib_prefix=no 18506 ;; 18507 freebsd-*) 18508 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18509 need_version=yes 18510 ;; 18511 esac 18512 shlibpath_var=LD_LIBRARY_PATH 18513 case $host_os in 18514 freebsd2*) 18515 shlibpath_overrides_runpath=yes 18516 ;; 18517 freebsd3.[01]* | freebsdelf3.[01]*) 18518 shlibpath_overrides_runpath=yes 18519 hardcode_into_libs=yes 18520 ;; 18521 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18522 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18523 shlibpath_overrides_runpath=no 18524 hardcode_into_libs=yes 18525 ;; 18526 *) # from 4.6 on, and DragonFly 18527 shlibpath_overrides_runpath=yes 18528 hardcode_into_libs=yes 18529 ;; 18530 esac 18531 ;; 18532 18533gnu*) 18534 version_type=linux 18535 need_lib_prefix=no 18536 need_version=no 18537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18538 soname_spec='${libname}${release}${shared_ext}$major' 18539 shlibpath_var=LD_LIBRARY_PATH 18540 hardcode_into_libs=yes 18541 ;; 18542 18543hpux9* | hpux10* | hpux11*) 18544 # Give a soname corresponding to the major version so that dld.sl refuses to 18545 # link against other versions. 18546 version_type=sunos 18547 need_lib_prefix=no 18548 need_version=no 18549 case $host_cpu in 18550 ia64*) 18551 shrext_cmds='.so' 18552 hardcode_into_libs=yes 18553 dynamic_linker="$host_os dld.so" 18554 shlibpath_var=LD_LIBRARY_PATH 18555 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18557 soname_spec='${libname}${release}${shared_ext}$major' 18558 if test "X$HPUX_IA64_MODE" = X32; then 18559 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18560 else 18561 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18562 fi 18563 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18564 ;; 18565 hppa*64*) 18566 shrext_cmds='.sl' 18567 hardcode_into_libs=yes 18568 dynamic_linker="$host_os dld.sl" 18569 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18570 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18572 soname_spec='${libname}${release}${shared_ext}$major' 18573 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18574 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18575 ;; 18576 *) 18577 shrext_cmds='.sl' 18578 dynamic_linker="$host_os dld.sl" 18579 shlibpath_var=SHLIB_PATH 18580 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18582 soname_spec='${libname}${release}${shared_ext}$major' 18583 ;; 18584 esac 18585 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18586 postinstall_cmds='chmod 555 $lib' 18587 ;; 18588 18589interix3*) 18590 version_type=linux 18591 need_lib_prefix=no 18592 need_version=no 18593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18594 soname_spec='${libname}${release}${shared_ext}$major' 18595 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18596 shlibpath_var=LD_LIBRARY_PATH 18597 shlibpath_overrides_runpath=no 18598 hardcode_into_libs=yes 18599 ;; 18600 18601irix5* | irix6* | nonstopux*) 18602 case $host_os in 18603 nonstopux*) version_type=nonstopux ;; 18604 *) 18605 if test "$lt_cv_prog_gnu_ld" = yes; then 18606 version_type=linux 18607 else 18608 version_type=irix 18609 fi ;; 18610 esac 18611 need_lib_prefix=no 18612 need_version=no 18613 soname_spec='${libname}${release}${shared_ext}$major' 18614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18615 case $host_os in 18616 irix5* | nonstopux*) 18617 libsuff= shlibsuff= 18618 ;; 18619 *) 18620 case $LD in # libtool.m4 will add one of these switches to LD 18621 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18622 libsuff= shlibsuff= libmagic=32-bit;; 18623 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18624 libsuff=32 shlibsuff=N32 libmagic=N32;; 18625 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18626 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18627 *) libsuff= shlibsuff= libmagic=never-match;; 18628 esac 18629 ;; 18630 esac 18631 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18632 shlibpath_overrides_runpath=no 18633 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18634 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18635 hardcode_into_libs=yes 18636 ;; 18637 18638# No shared lib support for Linux oldld, aout, or coff. 18639linux*oldld* | linux*aout* | linux*coff*) 18640 dynamic_linker=no 18641 ;; 18642 18643# This must be Linux ELF. 18644linux*) 18645 version_type=linux 18646 need_lib_prefix=no 18647 need_version=no 18648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18649 soname_spec='${libname}${release}${shared_ext}$major' 18650 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18651 shlibpath_var=LD_LIBRARY_PATH 18652 shlibpath_overrides_runpath=no 18653 # This implies no fast_install, which is unacceptable. 18654 # Some rework will be needed to allow for fast_install 18655 # before this can be enabled. 18656 hardcode_into_libs=yes 18657 18658 # Append ld.so.conf contents to the search path 18659 if test -f /etc/ld.so.conf; then 18660 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/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 18661 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18662 fi 18663 18664 # We used to test for /lib/ld.so.1 and disable shared libraries on 18665 # powerpc, because MkLinux only supported shared libraries with the 18666 # GNU dynamic linker. Since this was broken with cross compilers, 18667 # most powerpc-linux boxes support dynamic linking these days and 18668 # people can always --disable-shared, the test was removed, and we 18669 # assume the GNU/Linux dynamic linker is in use. 18670 dynamic_linker='GNU/Linux ld.so' 18671 ;; 18672 18673mirbsd*) 18674 version_type=linux 18675 sys_lib_dlsearch_path_spec="/usr/lib" 18676 need_lib_prefix=no 18677 need_version=no 18678 library_names_spec='${libname}${release}${shared_ext}$versuffix2 ${libname}${shared_ext}$versuffix2' 18679 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18680 shlibpath_var=LD_LIBRARY_PATH 18681 shlibpath_overrides_runpath=yes 18682 ;; 18683 18684knetbsd*-gnu) 18685 version_type=linux 18686 need_lib_prefix=no 18687 need_version=no 18688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18689 soname_spec='${libname}${release}${shared_ext}$major' 18690 shlibpath_var=LD_LIBRARY_PATH 18691 shlibpath_overrides_runpath=no 18692 hardcode_into_libs=yes 18693 dynamic_linker='GNU ld.so' 18694 ;; 18695 18696netbsd*) 18697 version_type=sunos 18698 need_lib_prefix=no 18699 need_version=no 18700 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18702 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18703 dynamic_linker='NetBSD (a.out) ld.so' 18704 else 18705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18706 soname_spec='${libname}${release}${shared_ext}$major' 18707 dynamic_linker='NetBSD ld.elf_so' 18708 fi 18709 shlibpath_var=LD_LIBRARY_PATH 18710 shlibpath_overrides_runpath=yes 18711 hardcode_into_libs=yes 18712 ;; 18713 18714newsos6) 18715 version_type=linux 18716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18717 shlibpath_var=LD_LIBRARY_PATH 18718 shlibpath_overrides_runpath=yes 18719 ;; 18720 18721nto-qnx*) 18722 version_type=linux 18723 need_lib_prefix=no 18724 need_version=no 18725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18726 soname_spec='${libname}${release}${shared_ext}$major' 18727 shlibpath_var=LD_LIBRARY_PATH 18728 shlibpath_overrides_runpath=yes 18729 ;; 18730 18731openbsd*) 18732 version_type=linux 18733 sys_lib_dlsearch_path_spec="/usr/lib" 18734 need_lib_prefix=no 18735 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18736 case $host_os in 18737 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18738 *) need_version=no ;; 18739 esac 18740 library_names_spec='${libname}${release}${shared_ext}$versuffix2 ${libname}${shared_ext}$versuffix2' 18741 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18742 shlibpath_var=LD_LIBRARY_PATH 18743 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18744 case $host_os in 18745 openbsd2.[89] | openbsd2.[89].*) 18746 shlibpath_overrides_runpath=no 18747 ;; 18748 *) 18749 shlibpath_overrides_runpath=yes 18750 ;; 18751 esac 18752 else 18753 shlibpath_overrides_runpath=yes 18754 fi 18755 ;; 18756 18757os2*) 18758 libname_spec='$name' 18759 shrext_cmds=".dll" 18760 need_lib_prefix=no 18761 library_names_spec='$libname${shared_ext} $libname.a' 18762 dynamic_linker='OS/2 ld.exe' 18763 shlibpath_var=LIBPATH 18764 ;; 18765 18766osf3* | osf4* | osf5*) 18767 version_type=osf 18768 need_lib_prefix=no 18769 need_version=no 18770 soname_spec='${libname}${release}${shared_ext}$major' 18771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18772 shlibpath_var=LD_LIBRARY_PATH 18773 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18774 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18775 ;; 18776 18777rdos*) 18778 dynamic_linker=no 18779 ;; 18780 18781solaris*) 18782 version_type=linux 18783 need_lib_prefix=no 18784 need_version=no 18785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18786 soname_spec='${libname}${release}${shared_ext}$major' 18787 shlibpath_var=LD_LIBRARY_PATH 18788 shlibpath_overrides_runpath=yes 18789 hardcode_into_libs=yes 18790 # ldd complains unless libraries are executable 18791 postinstall_cmds='chmod +x $lib' 18792 ;; 18793 18794sunos4*) 18795 version_type=sunos 18796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18797 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18798 shlibpath_var=LD_LIBRARY_PATH 18799 shlibpath_overrides_runpath=yes 18800 if test "$with_gnu_ld" = yes; then 18801 need_lib_prefix=no 18802 fi 18803 need_version=yes 18804 ;; 18805 18806sysv4 | sysv4.3*) 18807 version_type=linux 18808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18809 soname_spec='${libname}${release}${shared_ext}$major' 18810 shlibpath_var=LD_LIBRARY_PATH 18811 case $host_vendor in 18812 sni) 18813 shlibpath_overrides_runpath=no 18814 need_lib_prefix=no 18815 export_dynamic_flag_spec='${wl}-Blargedynsym' 18816 runpath_var=LD_RUN_PATH 18817 ;; 18818 siemens) 18819 need_lib_prefix=no 18820 ;; 18821 motorola) 18822 need_lib_prefix=no 18823 need_version=no 18824 shlibpath_overrides_runpath=no 18825 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18826 ;; 18827 esac 18828 ;; 18829 18830sysv4*MP*) 18831 if test -d /usr/nec ;then 18832 version_type=linux 18833 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18834 soname_spec='$libname${shared_ext}.$major' 18835 shlibpath_var=LD_LIBRARY_PATH 18836 fi 18837 ;; 18838 18839sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18840 version_type=freebsd-elf 18841 need_lib_prefix=no 18842 need_version=no 18843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18844 soname_spec='${libname}${release}${shared_ext}$major' 18845 shlibpath_var=LD_LIBRARY_PATH 18846 hardcode_into_libs=yes 18847 if test "$with_gnu_ld" = yes; then 18848 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18849 shlibpath_overrides_runpath=no 18850 else 18851 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18852 shlibpath_overrides_runpath=yes 18853 case $host_os in 18854 sco3.2v5*) 18855 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18856 ;; 18857 esac 18858 fi 18859 sys_lib_dlsearch_path_spec='/usr/lib' 18860 ;; 18861 18862uts4*) 18863 version_type=linux 18864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18865 soname_spec='${libname}${release}${shared_ext}$major' 18866 shlibpath_var=LD_LIBRARY_PATH 18867 ;; 18868 18869*) 18870 dynamic_linker=no 18871 ;; 18872esac 18873{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18874echo "${ECHO_T}$dynamic_linker" >&6; } 18875test "$dynamic_linker" = no && can_build_shared=no 18876 18877variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18878if test "$GCC" = yes; then 18879 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18880fi 18881 18882{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18883echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 18884hardcode_action_GCJ= 18885if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18886 test -n "$runpath_var_GCJ" || \ 18887 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 18888 18889 # We can hardcode non-existant directories. 18890 if test "$hardcode_direct_GCJ" != no && 18891 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18892 # have to relink, otherwise we might link with an installed library 18893 # when we should be linking with a yet-to-be-installed one 18894 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 18895 test "$hardcode_minus_L_GCJ" != no; then 18896 # Linking always hardcodes the temporary library directory. 18897 hardcode_action_GCJ=relink 18898 else 18899 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18900 hardcode_action_GCJ=immediate 18901 fi 18902else 18903 # We cannot hardcode anything, or else we can only hardcode existing 18904 # directories. 18905 hardcode_action_GCJ=unsupported 18906fi 18907{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 18908echo "${ECHO_T}$hardcode_action_GCJ" >&6; } 18909 18910if test "$hardcode_action_GCJ" = relink; then 18911 # Fast installation is not supported 18912 enable_fast_install=no 18913elif test "$shlibpath_overrides_runpath" = yes || 18914 test "$enable_shared" = no; then 18915 # Fast installation is not necessary 18916 enable_fast_install=needless 18917fi 18918 18919 18920# The else clause should only fire when bootstrapping the 18921# libtool distribution, otherwise you forgot to ship ltmain.sh 18922# with your package, and you will get complaints that there are 18923# no rules to generate ltmain.sh. 18924if test -f "$ltmain"; then 18925 # See if we are running on zsh, and set the options which allow our commands through 18926 # without removal of \ escapes. 18927 if test -n "${ZSH_VERSION+set}" ; then 18928 setopt NO_GLOB_SUBST 18929 fi 18930 # Now quote all the things that may contain metacharacters while being 18931 # careful not to overquote the AC_SUBSTed values. We take copies of the 18932 # variables and quote the copies for generation of the libtool script. 18933 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18934 SED SHELL STRIP \ 18935 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18936 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18937 deplibs_check_method reload_flag reload_cmds need_locks \ 18938 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18939 lt_cv_sys_global_symbol_to_c_name_address \ 18940 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18941 old_postinstall_cmds old_postuninstall_cmds \ 18942 compiler_GCJ \ 18943 CC_GCJ \ 18944 LD_GCJ \ 18945 lt_prog_compiler_wl_GCJ \ 18946 lt_prog_compiler_pic_GCJ \ 18947 lt_prog_compiler_static_GCJ \ 18948 lt_prog_compiler_no_builtin_flag_GCJ \ 18949 export_dynamic_flag_spec_GCJ \ 18950 thread_safe_flag_spec_GCJ \ 18951 whole_archive_flag_spec_GCJ \ 18952 enable_shared_with_static_runtimes_GCJ \ 18953 old_archive_cmds_GCJ \ 18954 old_archive_from_new_cmds_GCJ \ 18955 predep_objects_GCJ \ 18956 postdep_objects_GCJ \ 18957 predeps_GCJ \ 18958 postdeps_GCJ \ 18959 compiler_lib_search_path_GCJ \ 18960 archive_cmds_GCJ \ 18961 archive_expsym_cmds_GCJ \ 18962 postinstall_cmds_GCJ \ 18963 postuninstall_cmds_GCJ \ 18964 old_archive_from_expsyms_cmds_GCJ \ 18965 allow_undefined_flag_GCJ \ 18966 no_undefined_flag_GCJ \ 18967 export_symbols_cmds_GCJ \ 18968 hardcode_libdir_flag_spec_GCJ \ 18969 hardcode_libdir_flag_spec_ld_GCJ \ 18970 hardcode_libdir_separator_GCJ \ 18971 hardcode_automatic_GCJ \ 18972 module_cmds_GCJ \ 18973 module_expsym_cmds_GCJ \ 18974 lt_cv_prog_compiler_c_o_GCJ \ 18975 exclude_expsyms_GCJ \ 18976 include_expsyms_GCJ; do 18977 18978 case $var in 18979 old_archive_cmds_GCJ | \ 18980 old_archive_from_new_cmds_GCJ | \ 18981 archive_cmds_GCJ | \ 18982 archive_expsym_cmds_GCJ | \ 18983 module_cmds_GCJ | \ 18984 module_expsym_cmds_GCJ | \ 18985 old_archive_from_expsyms_cmds_GCJ | \ 18986 export_symbols_cmds_GCJ | \ 18987 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18988 postinstall_cmds | postuninstall_cmds | \ 18989 old_postinstall_cmds | old_postuninstall_cmds | \ 18990 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18991 # Double-quote double-evaled strings. 18992 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18993 ;; 18994 *) 18995 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18996 ;; 18997 esac 18998 done 18999 19000 case $lt_echo in 19001 *'\$0 --fallback-echo"') 19002 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19003 ;; 19004 esac 19005 19006cfgfile="$ofile" 19007 19008 cat <<__EOF__ >> "$cfgfile" 19009# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19010 19011# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19012 19013# Shell to use when invoking shell scripts. 19014SHELL=$lt_SHELL 19015 19016# Whether or not to build shared libraries. 19017build_libtool_libs=$enable_shared 19018 19019# Whether or not to build static libraries. 19020build_old_libs=$enable_static 19021 19022# Whether or not to add -lc for building shared libraries. 19023build_libtool_need_lc=$archive_cmds_need_lc_GCJ 19024 19025# Whether or not to disallow shared libs when runtime libs are static 19026allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 19027 19028# Whether or not to optimize for fast installation. 19029fast_install=$enable_fast_install 19030 19031# The host system. 19032host_alias=$host_alias 19033host=$host 19034host_os=$host_os 19035 19036# The build system. 19037build_alias=$build_alias 19038build=$build 19039build_os=$build_os 19040 19041# An echo program that does not interpret backslashes. 19042echo=$lt_echo 19043 19044# The archiver. 19045AR=$lt_AR 19046AR_FLAGS=$lt_AR_FLAGS 19047 19048# A C compiler. 19049LTCC=$lt_LTCC 19050 19051# LTCC compiler flags. 19052LTCFLAGS=$lt_LTCFLAGS 19053 19054# A language-specific compiler. 19055CC=$lt_compiler_GCJ 19056 19057# Is the compiler the GNU C compiler? 19058with_gcc=$GCC_GCJ 19059 19060# An ERE matcher. 19061EGREP=$lt_EGREP 19062 19063# The linker used to build libraries. 19064LD=$lt_LD_GCJ 19065 19066# Whether we need hard or soft links. 19067LN_S=$lt_LN_S 19068 19069# A BSD-compatible nm program. 19070NM=$lt_NM 19071 19072# A symbol stripping program 19073STRIP=$lt_STRIP 19074 19075# Used to examine libraries when file_magic_cmd begins "file" 19076MAGIC_CMD=$MAGIC_CMD 19077 19078# Used on cygwin: DLL creation program. 19079DLLTOOL="$DLLTOOL" 19080 19081# Used on cygwin: object dumper. 19082OBJDUMP="$OBJDUMP" 19083 19084# Used on cygwin: assembler. 19085AS="$AS" 19086 19087# The name of the directory that contains temporary libtool files. 19088objdir=$objdir 19089 19090# How to create reloadable object files. 19091reload_flag=$lt_reload_flag 19092reload_cmds=$lt_reload_cmds 19093 19094# How to pass a linker flag through the compiler. 19095wl=$lt_lt_prog_compiler_wl_GCJ 19096 19097# Object file suffix (normally "o"). 19098objext="$ac_objext" 19099 19100# Old archive suffix (normally "a"). 19101libext="$libext" 19102 19103# Shared library suffix (normally ".so"). 19104shrext_cmds='$shrext_cmds' 19105 19106# Executable file suffix (normally ""). 19107exeext="$exeext" 19108 19109# Additional compiler flags for building library objects. 19110pic_flag=$lt_lt_prog_compiler_pic_GCJ 19111pic_mode=$pic_mode 19112 19113# What is the maximum length of a command? 19114max_cmd_len=$lt_cv_sys_max_cmd_len 19115 19116# Does compiler simultaneously support -c and -o options? 19117compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 19118 19119# Must we lock files when doing compilation? 19120need_locks=$lt_need_locks 19121 19122# Do we need the lib prefix for modules? 19123need_lib_prefix=$need_lib_prefix 19124 19125# Do we need a version for libraries? 19126need_version=$need_version 19127 19128# Whether dlopen is supported. 19129dlopen_support=$enable_dlopen 19130 19131# Whether dlopen of programs is supported. 19132dlopen_self=$enable_dlopen_self 19133 19134# Whether dlopen of statically linked programs is supported. 19135dlopen_self_static=$enable_dlopen_self_static 19136 19137# Compiler flag to prevent dynamic linking. 19138link_static_flag=$lt_lt_prog_compiler_static_GCJ 19139 19140# Compiler flag to turn off builtin functions. 19141no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 19142 19143# Compiler flag to allow reflexive dlopens. 19144export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 19145 19146# Compiler flag to generate shared objects directly from archives. 19147whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 19148 19149# Compiler flag to generate thread-safe objects. 19150thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 19151 19152# Library versioning type. 19153version_type=$version_type 19154 19155# Format of library name prefix. 19156libname_spec=$lt_libname_spec 19157 19158# List of archive names. First name is the real one, the rest are links. 19159# The last name is the one that the linker finds with -lNAME. 19160library_names_spec=$lt_library_names_spec 19161 19162# The coded name of the library, if different from the real name. 19163soname_spec=$lt_soname_spec 19164 19165# Commands used to build and install an old-style archive. 19166RANLIB=$lt_RANLIB 19167old_archive_cmds=$lt_old_archive_cmds_GCJ 19168old_postinstall_cmds=$lt_old_postinstall_cmds 19169old_postuninstall_cmds=$lt_old_postuninstall_cmds 19170 19171# Create an old-style archive from a shared archive. 19172old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 19173 19174# Create a temporary old-style archive to link instead of a shared archive. 19175old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 19176 19177# Commands used to build and install a shared archive. 19178archive_cmds=$lt_archive_cmds_GCJ 19179archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 19180postinstall_cmds=$lt_postinstall_cmds 19181postuninstall_cmds=$lt_postuninstall_cmds 19182 19183# Commands used to build a loadable module (assumed same as above if empty) 19184module_cmds=$lt_module_cmds_GCJ 19185module_expsym_cmds=$lt_module_expsym_cmds_GCJ 19186 19187# Commands to strip libraries. 19188old_striplib=$lt_old_striplib 19189striplib=$lt_striplib 19190 19191# Dependencies to place before the objects being linked to create a 19192# shared library. 19193predep_objects=$lt_predep_objects_GCJ 19194 19195# Dependencies to place after the objects being linked to create a 19196# shared library. 19197postdep_objects=$lt_postdep_objects_GCJ 19198 19199# Dependencies to place before the objects being linked to create a 19200# shared library. 19201predeps=$lt_predeps_GCJ 19202 19203# Dependencies to place after the objects being linked to create a 19204# shared library. 19205postdeps=$lt_postdeps_GCJ 19206 19207# The library search path used internally by the compiler when linking 19208# a shared library. 19209compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 19210 19211# Method to check whether dependent libraries are shared objects. 19212deplibs_check_method=$lt_deplibs_check_method 19213 19214# Command to use when deplibs_check_method == file_magic. 19215file_magic_cmd=$lt_file_magic_cmd 19216 19217# Flag that allows shared libraries with undefined symbols to be built. 19218allow_undefined_flag=$lt_allow_undefined_flag_GCJ 19219 19220# Flag that forces no undefined symbols. 19221no_undefined_flag=$lt_no_undefined_flag_GCJ 19222 19223# Commands used to finish a libtool library installation in a directory. 19224finish_cmds=$lt_finish_cmds 19225 19226# Same as above, but a single script fragment to be evaled but not shown. 19227finish_eval=$lt_finish_eval 19228 19229# Take the output of nm and produce a listing of raw symbols and C names. 19230global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19231 19232# Transform the output of nm in a proper C declaration 19233global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19234 19235# Transform the output of nm in a C name address pair 19236global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19237 19238# This is the shared library runtime path variable. 19239runpath_var=$runpath_var 19240 19241# This is the shared library path variable. 19242shlibpath_var=$shlibpath_var 19243 19244# Is shlibpath searched before the hard-coded library search path? 19245shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19246 19247# How to hardcode a shared library path into an executable. 19248hardcode_action=$hardcode_action_GCJ 19249 19250# Whether we should hardcode library paths into libraries. 19251hardcode_into_libs=$hardcode_into_libs 19252 19253# Flag to hardcode \$libdir into a binary during linking. 19254# This must work even if \$libdir does not exist. 19255hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 19256 19257# If ld is used when linking, flag to hardcode \$libdir into 19258# a binary during linking. This must work even if \$libdir does 19259# not exist. 19260hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 19261 19262# Whether we need a single -rpath flag with a separated argument. 19263hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 19264 19265# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19266# resulting binary. 19267hardcode_direct=$hardcode_direct_GCJ 19268 19269# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19270# resulting binary. 19271hardcode_minus_L=$hardcode_minus_L_GCJ 19272 19273# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19274# the resulting binary. 19275hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 19276 19277# Set to yes if building a shared library automatically hardcodes DIR into the library 19278# and all subsequent libraries and executables linked against it. 19279hardcode_automatic=$hardcode_automatic_GCJ 19280 19281# Variables whose values should be saved in libtool wrapper scripts and 19282# restored at relink time. 19283variables_saved_for_relink="$variables_saved_for_relink" 19284 19285# Whether libtool must link a program against all its dependency libraries. 19286link_all_deplibs=$link_all_deplibs_GCJ 19287 19288# Compile-time system search path for libraries 19289sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19290 19291# Run-time system search path for libraries 19292sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19293 19294# Fix the shell variable \$srcfile for the compiler. 19295fix_srcfile_path="$fix_srcfile_path_GCJ" 19296 19297# Set to yes if exported symbols are required. 19298always_export_symbols=$always_export_symbols_GCJ 19299 19300# The commands to list exported symbols. 19301export_symbols_cmds=$lt_export_symbols_cmds_GCJ 19302 19303# The commands to extract the exported symbol list from a shared archive. 19304extract_expsyms_cmds=$lt_extract_expsyms_cmds 19305 19306# Symbols that should not be listed in the preloaded symbols. 19307exclude_expsyms=$lt_exclude_expsyms_GCJ 19308 19309# Symbols that must always be exported. 19310include_expsyms=$lt_include_expsyms_GCJ 19311 19312# ### END LIBTOOL TAG CONFIG: $tagname 19313 19314__EOF__ 19315 19316 19317else 19318 # If there is no Makefile yet, we rely on a make rule to execute 19319 # 'config.status --recheck' to rerun these tests and create the 19320 # libtool script then. 19321 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19322 if test -f "$ltmain_in"; then 19323 test -f Makefile && make "$ltmain" 19324 fi 19325fi 19326 19327 19328ac_ext=c 19329ac_cpp='$CPP $CPPFLAGS' 19330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19332ac_compiler_gnu=$ac_cv_c_compiler_gnu 19333 19334CC="$lt_save_CC" 19335 19336 else 19337 tagname="" 19338 fi 19339 ;; 19340 19341 RC) 19342 19343 19344# Source file extension for RC test sources. 19345ac_ext=rc 19346 19347# Object file extension for compiled RC test sources. 19348objext=o 19349objext_RC=$objext 19350 19351# Code to be used in simple compile tests 19352lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 19353 19354# Code to be used in simple link tests 19355lt_simple_link_test_code="$lt_simple_compile_test_code" 19356 19357# ltmain only uses $CC for tagged configurations so make sure $CC is set. 19358 19359# If no C compiler was specified, use CC. 19360LTCC=${LTCC-"$CC"} 19361 19362# If no C compiler flags were specified, use CFLAGS. 19363LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 19364 19365# Allow CC to be a program name with arguments. 19366compiler=$CC 19367 19368 19369# save warnings/boilerplate of simple test code 19370ac_outfile=conftest.$ac_objext 19371printf "$lt_simple_compile_test_code" >conftest.$ac_ext 19372eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19373_lt_compiler_boilerplate=`cat conftest.err` 19374$rm conftest* 19375 19376ac_outfile=conftest.$ac_objext 19377printf "$lt_simple_link_test_code" >conftest.$ac_ext 19378eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19379_lt_linker_boilerplate=`cat conftest.err` 19380$rm conftest* 19381 19382 19383# Allow CC to be a program name with arguments. 19384lt_save_CC="$CC" 19385CC=${RC-"windres"} 19386compiler=$CC 19387compiler_RC=$CC 19388for cc_temp in $compiler""; do 19389 case $cc_temp in 19390 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19391 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19392 \-*) ;; 19393 *) break;; 19394 esac 19395done 19396cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 19397 19398lt_cv_prog_compiler_c_o_RC=yes 19399 19400# The else clause should only fire when bootstrapping the 19401# libtool distribution, otherwise you forgot to ship ltmain.sh 19402# with your package, and you will get complaints that there are 19403# no rules to generate ltmain.sh. 19404if test -f "$ltmain"; then 19405 # See if we are running on zsh, and set the options which allow our commands through 19406 # without removal of \ escapes. 19407 if test -n "${ZSH_VERSION+set}" ; then 19408 setopt NO_GLOB_SUBST 19409 fi 19410 # Now quote all the things that may contain metacharacters while being 19411 # careful not to overquote the AC_SUBSTed values. We take copies of the 19412 # variables and quote the copies for generation of the libtool script. 19413 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19414 SED SHELL STRIP \ 19415 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19416 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19417 deplibs_check_method reload_flag reload_cmds need_locks \ 19418 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19419 lt_cv_sys_global_symbol_to_c_name_address \ 19420 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19421 old_postinstall_cmds old_postuninstall_cmds \ 19422 compiler_RC \ 19423 CC_RC \ 19424 LD_RC \ 19425 lt_prog_compiler_wl_RC \ 19426 lt_prog_compiler_pic_RC \ 19427 lt_prog_compiler_static_RC \ 19428 lt_prog_compiler_no_builtin_flag_RC \ 19429 export_dynamic_flag_spec_RC \ 19430 thread_safe_flag_spec_RC \ 19431 whole_archive_flag_spec_RC \ 19432 enable_shared_with_static_runtimes_RC \ 19433 old_archive_cmds_RC \ 19434 old_archive_from_new_cmds_RC \ 19435 predep_objects_RC \ 19436 postdep_objects_RC \ 19437 predeps_RC \ 19438 postdeps_RC \ 19439 compiler_lib_search_path_RC \ 19440 archive_cmds_RC \ 19441 archive_expsym_cmds_RC \ 19442 postinstall_cmds_RC \ 19443 postuninstall_cmds_RC \ 19444 old_archive_from_expsyms_cmds_RC \ 19445 allow_undefined_flag_RC \ 19446 no_undefined_flag_RC \ 19447 export_symbols_cmds_RC \ 19448 hardcode_libdir_flag_spec_RC \ 19449 hardcode_libdir_flag_spec_ld_RC \ 19450 hardcode_libdir_separator_RC \ 19451 hardcode_automatic_RC \ 19452 module_cmds_RC \ 19453 module_expsym_cmds_RC \ 19454 lt_cv_prog_compiler_c_o_RC \ 19455 exclude_expsyms_RC \ 19456 include_expsyms_RC; do 19457 19458 case $var in 19459 old_archive_cmds_RC | \ 19460 old_archive_from_new_cmds_RC | \ 19461 archive_cmds_RC | \ 19462 archive_expsym_cmds_RC | \ 19463 module_cmds_RC | \ 19464 module_expsym_cmds_RC | \ 19465 old_archive_from_expsyms_cmds_RC | \ 19466 export_symbols_cmds_RC | \ 19467 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19468 postinstall_cmds | postuninstall_cmds | \ 19469 old_postinstall_cmds | old_postuninstall_cmds | \ 19470 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19471 # Double-quote double-evaled strings. 19472 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19473 ;; 19474 *) 19475 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19476 ;; 19477 esac 19478 done 19479 19480 case $lt_echo in 19481 *'\$0 --fallback-echo"') 19482 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19483 ;; 19484 esac 19485 19486cfgfile="$ofile" 19487 19488 cat <<__EOF__ >> "$cfgfile" 19489# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19490 19491# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19492 19493# Shell to use when invoking shell scripts. 19494SHELL=$lt_SHELL 19495 19496# Whether or not to build shared libraries. 19497build_libtool_libs=$enable_shared 19498 19499# Whether or not to build static libraries. 19500build_old_libs=$enable_static 19501 19502# Whether or not to add -lc for building shared libraries. 19503build_libtool_need_lc=$archive_cmds_need_lc_RC 19504 19505# Whether or not to disallow shared libs when runtime libs are static 19506allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19507 19508# Whether or not to optimize for fast installation. 19509fast_install=$enable_fast_install 19510 19511# The host system. 19512host_alias=$host_alias 19513host=$host 19514host_os=$host_os 19515 19516# The build system. 19517build_alias=$build_alias 19518build=$build 19519build_os=$build_os 19520 19521# An echo program that does not interpret backslashes. 19522echo=$lt_echo 19523 19524# The archiver. 19525AR=$lt_AR 19526AR_FLAGS=$lt_AR_FLAGS 19527 19528# A C compiler. 19529LTCC=$lt_LTCC 19530 19531# LTCC compiler flags. 19532LTCFLAGS=$lt_LTCFLAGS 19533 19534# A language-specific compiler. 19535CC=$lt_compiler_RC 19536 19537# Is the compiler the GNU C compiler? 19538with_gcc=$GCC_RC 19539 19540# An ERE matcher. 19541EGREP=$lt_EGREP 19542 19543# The linker used to build libraries. 19544LD=$lt_LD_RC 19545 19546# Whether we need hard or soft links. 19547LN_S=$lt_LN_S 19548 19549# A BSD-compatible nm program. 19550NM=$lt_NM 19551 19552# A symbol stripping program 19553STRIP=$lt_STRIP 19554 19555# Used to examine libraries when file_magic_cmd begins "file" 19556MAGIC_CMD=$MAGIC_CMD 19557 19558# Used on cygwin: DLL creation program. 19559DLLTOOL="$DLLTOOL" 19560 19561# Used on cygwin: object dumper. 19562OBJDUMP="$OBJDUMP" 19563 19564# Used on cygwin: assembler. 19565AS="$AS" 19566 19567# The name of the directory that contains temporary libtool files. 19568objdir=$objdir 19569 19570# How to create reloadable object files. 19571reload_flag=$lt_reload_flag 19572reload_cmds=$lt_reload_cmds 19573 19574# How to pass a linker flag through the compiler. 19575wl=$lt_lt_prog_compiler_wl_RC 19576 19577# Object file suffix (normally "o"). 19578objext="$ac_objext" 19579 19580# Old archive suffix (normally "a"). 19581libext="$libext" 19582 19583# Shared library suffix (normally ".so"). 19584shrext_cmds='$shrext_cmds' 19585 19586# Executable file suffix (normally ""). 19587exeext="$exeext" 19588 19589# Additional compiler flags for building library objects. 19590pic_flag=$lt_lt_prog_compiler_pic_RC 19591pic_mode=$pic_mode 19592 19593# What is the maximum length of a command? 19594max_cmd_len=$lt_cv_sys_max_cmd_len 19595 19596# Does compiler simultaneously support -c and -o options? 19597compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19598 19599# Must we lock files when doing compilation? 19600need_locks=$lt_need_locks 19601 19602# Do we need the lib prefix for modules? 19603need_lib_prefix=$need_lib_prefix 19604 19605# Do we need a version for libraries? 19606need_version=$need_version 19607 19608# Whether dlopen is supported. 19609dlopen_support=$enable_dlopen 19610 19611# Whether dlopen of programs is supported. 19612dlopen_self=$enable_dlopen_self 19613 19614# Whether dlopen of statically linked programs is supported. 19615dlopen_self_static=$enable_dlopen_self_static 19616 19617# Compiler flag to prevent dynamic linking. 19618link_static_flag=$lt_lt_prog_compiler_static_RC 19619 19620# Compiler flag to turn off builtin functions. 19621no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19622 19623# Compiler flag to allow reflexive dlopens. 19624export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19625 19626# Compiler flag to generate shared objects directly from archives. 19627whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19628 19629# Compiler flag to generate thread-safe objects. 19630thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19631 19632# Library versioning type. 19633version_type=$version_type 19634 19635# Format of library name prefix. 19636libname_spec=$lt_libname_spec 19637 19638# List of archive names. First name is the real one, the rest are links. 19639# The last name is the one that the linker finds with -lNAME. 19640library_names_spec=$lt_library_names_spec 19641 19642# The coded name of the library, if different from the real name. 19643soname_spec=$lt_soname_spec 19644 19645# Commands used to build and install an old-style archive. 19646RANLIB=$lt_RANLIB 19647old_archive_cmds=$lt_old_archive_cmds_RC 19648old_postinstall_cmds=$lt_old_postinstall_cmds 19649old_postuninstall_cmds=$lt_old_postuninstall_cmds 19650 19651# Create an old-style archive from a shared archive. 19652old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19653 19654# Create a temporary old-style archive to link instead of a shared archive. 19655old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19656 19657# Commands used to build and install a shared archive. 19658archive_cmds=$lt_archive_cmds_RC 19659archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19660postinstall_cmds=$lt_postinstall_cmds 19661postuninstall_cmds=$lt_postuninstall_cmds 19662 19663# Commands used to build a loadable module (assumed same as above if empty) 19664module_cmds=$lt_module_cmds_RC 19665module_expsym_cmds=$lt_module_expsym_cmds_RC 19666 19667# Commands to strip libraries. 19668old_striplib=$lt_old_striplib 19669striplib=$lt_striplib 19670 19671# Dependencies to place before the objects being linked to create a 19672# shared library. 19673predep_objects=$lt_predep_objects_RC 19674 19675# Dependencies to place after the objects being linked to create a 19676# shared library. 19677postdep_objects=$lt_postdep_objects_RC 19678 19679# Dependencies to place before the objects being linked to create a 19680# shared library. 19681predeps=$lt_predeps_RC 19682 19683# Dependencies to place after the objects being linked to create a 19684# shared library. 19685postdeps=$lt_postdeps_RC 19686 19687# The library search path used internally by the compiler when linking 19688# a shared library. 19689compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19690 19691# Method to check whether dependent libraries are shared objects. 19692deplibs_check_method=$lt_deplibs_check_method 19693 19694# Command to use when deplibs_check_method == file_magic. 19695file_magic_cmd=$lt_file_magic_cmd 19696 19697# Flag that allows shared libraries with undefined symbols to be built. 19698allow_undefined_flag=$lt_allow_undefined_flag_RC 19699 19700# Flag that forces no undefined symbols. 19701no_undefined_flag=$lt_no_undefined_flag_RC 19702 19703# Commands used to finish a libtool library installation in a directory. 19704finish_cmds=$lt_finish_cmds 19705 19706# Same as above, but a single script fragment to be evaled but not shown. 19707finish_eval=$lt_finish_eval 19708 19709# Take the output of nm and produce a listing of raw symbols and C names. 19710global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19711 19712# Transform the output of nm in a proper C declaration 19713global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19714 19715# Transform the output of nm in a C name address pair 19716global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19717 19718# This is the shared library runtime path variable. 19719runpath_var=$runpath_var 19720 19721# This is the shared library path variable. 19722shlibpath_var=$shlibpath_var 19723 19724# Is shlibpath searched before the hard-coded library search path? 19725shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19726 19727# How to hardcode a shared library path into an executable. 19728hardcode_action=$hardcode_action_RC 19729 19730# Whether we should hardcode library paths into libraries. 19731hardcode_into_libs=$hardcode_into_libs 19732 19733# Flag to hardcode \$libdir into a binary during linking. 19734# This must work even if \$libdir does not exist. 19735hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19736 19737# If ld is used when linking, flag to hardcode \$libdir into 19738# a binary during linking. This must work even if \$libdir does 19739# not exist. 19740hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19741 19742# Whether we need a single -rpath flag with a separated argument. 19743hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19744 19745# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19746# resulting binary. 19747hardcode_direct=$hardcode_direct_RC 19748 19749# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19750# resulting binary. 19751hardcode_minus_L=$hardcode_minus_L_RC 19752 19753# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19754# the resulting binary. 19755hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19756 19757# Set to yes if building a shared library automatically hardcodes DIR into the library 19758# and all subsequent libraries and executables linked against it. 19759hardcode_automatic=$hardcode_automatic_RC 19760 19761# Variables whose values should be saved in libtool wrapper scripts and 19762# restored at relink time. 19763variables_saved_for_relink="$variables_saved_for_relink" 19764 19765# Whether libtool must link a program against all its dependency libraries. 19766link_all_deplibs=$link_all_deplibs_RC 19767 19768# Compile-time system search path for libraries 19769sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19770 19771# Run-time system search path for libraries 19772sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19773 19774# Fix the shell variable \$srcfile for the compiler. 19775fix_srcfile_path="$fix_srcfile_path_RC" 19776 19777# Set to yes if exported symbols are required. 19778always_export_symbols=$always_export_symbols_RC 19779 19780# The commands to list exported symbols. 19781export_symbols_cmds=$lt_export_symbols_cmds_RC 19782 19783# The commands to extract the exported symbol list from a shared archive. 19784extract_expsyms_cmds=$lt_extract_expsyms_cmds 19785 19786# Symbols that should not be listed in the preloaded symbols. 19787exclude_expsyms=$lt_exclude_expsyms_RC 19788 19789# Symbols that must always be exported. 19790include_expsyms=$lt_include_expsyms_RC 19791 19792# ### END LIBTOOL TAG CONFIG: $tagname 19793 19794__EOF__ 19795 19796 19797else 19798 # If there is no Makefile yet, we rely on a make rule to execute 19799 # 'config.status --recheck' to rerun these tests and create the 19800 # libtool script then. 19801 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19802 if test -f "$ltmain_in"; then 19803 test -f Makefile && make "$ltmain" 19804 fi 19805fi 19806 19807 19808ac_ext=c 19809ac_cpp='$CPP $CPPFLAGS' 19810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19812ac_compiler_gnu=$ac_cv_c_compiler_gnu 19813 19814CC="$lt_save_CC" 19815 19816 ;; 19817 19818 *) 19819 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19820echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19821 { (exit 1); exit 1; }; } 19822 ;; 19823 esac 19824 19825 # Append the new tag name to the list of available tags. 19826 if test -n "$tagname" ; then 19827 available_tags="$available_tags $tagname" 19828 fi 19829 fi 19830 done 19831 IFS="$lt_save_ifs" 19832 19833 # Now substitute the updated list of available tags. 19834 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19835 mv "${ofile}T" "$ofile" 19836 chmod +x "$ofile" 19837 else 19838 rm -f "${ofile}T" 19839 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19840echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19841 { (exit 1); exit 1; }; } 19842 fi 19843fi 19844 19845 19846 19847# This can be used to rebuild libtool when needed 19848LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19849 19850# Always use our own libtool. 19851LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19852 19853# Prevent multiple expansion 19854 19855 19856 19857 19858 19859 19860 19861 19862 19863 19864 19865 19866 19867 19868 19869 19870 19871 19872 19873 19874 19875 19876 19877 19878 19879# Check whether --enable-targets was given. 19880if test "${enable_targets+set}" = set; then 19881 enableval=$enable_targets; case "${enableval}" in 19882 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5 19883echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;} 19884 { (exit 1); exit 1; }; } 19885 ;; 19886 no) enable_targets= ;; 19887 *) enable_targets=$enableval ;; 19888esac 19889fi 19890# Check whether --enable-commonbfdlib was given. 19891if test "${enable_commonbfdlib+set}" = set; then 19892 enableval=$enable_commonbfdlib; case "${enableval}" in 19893 yes) commonbfdlib=true ;; 19894 no) commonbfdlib=false ;; 19895 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for opcodes commonbfdlib option" >&5 19896echo "$as_me: error: bad value ${enableval} for opcodes commonbfdlib option" >&2;} 19897 { (exit 1); exit 1; }; } ;; 19898esac 19899fi 19900 19901 19902WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" 19903 19904# Check whether --enable-werror was given. 19905if test "${enable_werror+set}" = set; then 19906 enableval=$enable_werror; case "${enableval}" in 19907 yes | y) ERROR_ON_WARNING="yes" ;; 19908 no | n) ERROR_ON_WARNING="no" ;; 19909 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5 19910echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;} 19911 { (exit 1); exit 1; }; } ;; 19912 esac 19913fi 19914 19915 19916# Enable -Werror by default when using gcc 19917if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then 19918 ERROR_ON_WARNING=yes 19919fi 19920 19921NO_WERROR= 19922if test "${ERROR_ON_WARNING}" = yes ; then 19923 WARN_CFLAGS="$WARN_CFLAGS -Werror" 19924 NO_WERROR="-Wno-error" 19925fi 19926 19927# Check whether --enable-build-warnings was given. 19928if test "${enable_build_warnings+set}" = set; then 19929 enableval=$enable_build_warnings; case "${enableval}" in 19930 yes) ;; 19931 no) WARN_CFLAGS="-w";; 19932 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` 19933 WARN_CFLAGS="${WARN_CFLAGS} ${t}";; 19934 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` 19935 WARN_CFLAGS="${t} ${WARN_CFLAGS}";; 19936 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;; 19937esac 19938fi 19939 19940 19941if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then 19942 echo "Setting warning flags = $WARN_CFLAGS" 6>&1 19943fi 19944 19945 19946 19947 19948 19949ac_config_headers="$ac_config_headers config.h:config.in" 19950 19951 19952if test -z "$target" ; then 19953 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5 19954echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;} 19955 { (exit 1); exit 1; }; } 19956fi 19957 19958{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 19959echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; } 19960 # Check whether --enable-maintainer-mode was given. 19961if test "${enable_maintainer_mode+set}" = set; then 19962 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 19963else 19964 USE_MAINTAINER_MODE=no 19965fi 19966 19967 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 19968echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; } 19969 19970 19971if test $USE_MAINTAINER_MODE = yes; then 19972 MAINTAINER_MODE_TRUE= 19973 MAINTAINER_MODE_FALSE='#' 19974else 19975 MAINTAINER_MODE_TRUE='#' 19976 MAINTAINER_MODE_FALSE= 19977fi 19978 19979 MAINT=$MAINTAINER_MODE_TRUE 19980 19981 19982 case ${build_alias} in 19983 "") build_noncanonical=${build} ;; 19984 *) build_noncanonical=${build_alias} ;; 19985esac 19986 19987 case ${host_alias} in 19988 "") host_noncanonical=${build_noncanonical} ;; 19989 *) host_noncanonical=${host_alias} ;; 19990esac 19991 19992 case ${target_alias} in 19993 "") target_noncanonical=${host_noncanonical} ;; 19994 *) target_noncanonical=${target_alias} ;; 19995esac 19996 19997{ echo "$as_me:$LINENO: checking whether to install libbfd" >&5 19998echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6; } 19999 # Check whether --enable-install-libbfd was given. 20000if test "${enable_install_libbfd+set}" = set; then 20001 enableval=$enable_install_libbfd; install_libbfd_p=$enableval 20002else 20003 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then 20004 install_libbfd_p=yes 20005 else 20006 install_libbfd_p=no 20007 fi 20008fi 20009 20010 { echo "$as_me:$LINENO: result: $install_libbfd_p" >&5 20011echo "${ECHO_T}$install_libbfd_p" >&6; } 20012 20013 20014if test $install_libbfd_p = yes; then 20015 INSTALL_LIBBFD_TRUE= 20016 INSTALL_LIBBFD_FALSE='#' 20017else 20018 INSTALL_LIBBFD_TRUE='#' 20019 INSTALL_LIBBFD_FALSE= 20020fi 20021 20022 # Need _noncanonical variables for this. 20023 20024 20025 20026 20027 # libbfd.a is a host library containing target dependent code 20028 bfdlibdir='$(libdir)' 20029 bfdincludedir='$(includedir)' 20030 if test "${host}" != "${target}"; then 20031 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib' 20032 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include' 20033 fi 20034 20035 20036 20037 20038 20039 20040# host-specific stuff: 20041 20042ac_ext=c 20043ac_cpp='$CPP $CPPFLAGS' 20044ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20045ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20046ac_compiler_gnu=$ac_cv_c_compiler_gnu 20047if test -n "$ac_tool_prefix"; then 20048 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 20049set dummy ${ac_tool_prefix}gcc; ac_word=$2 20050{ echo "$as_me:$LINENO: checking for $ac_word" >&5 20051echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 20052if test "${ac_cv_prog_CC+set}" = set; then 20053 echo $ECHO_N "(cached) $ECHO_C" >&6 20054else 20055 if test -n "$CC"; then 20056 ac_cv_prog_CC="$CC" # Let the user override the test. 20057else 20058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20059for as_dir in $PATH 20060do 20061 IFS=$as_save_IFS 20062 test -z "$as_dir" && as_dir=. 20063 for ac_exec_ext in '' $ac_executable_extensions; do 20064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 20065 ac_cv_prog_CC="${ac_tool_prefix}gcc" 20066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20067 break 2 20068 fi 20069done 20070done 20071IFS=$as_save_IFS 20072 20073fi 20074fi 20075CC=$ac_cv_prog_CC 20076if test -n "$CC"; then 20077 { echo "$as_me:$LINENO: result: $CC" >&5 20078echo "${ECHO_T}$CC" >&6; } 20079else 20080 { echo "$as_me:$LINENO: result: no" >&5 20081echo "${ECHO_T}no" >&6; } 20082fi 20083 20084 20085fi 20086if test -z "$ac_cv_prog_CC"; then 20087 ac_ct_CC=$CC 20088 # Extract the first word of "gcc", so it can be a program name with args. 20089set dummy gcc; ac_word=$2 20090{ echo "$as_me:$LINENO: checking for $ac_word" >&5 20091echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 20092if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 20093 echo $ECHO_N "(cached) $ECHO_C" >&6 20094else 20095 if test -n "$ac_ct_CC"; then 20096 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 20097else 20098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20099for as_dir in $PATH 20100do 20101 IFS=$as_save_IFS 20102 test -z "$as_dir" && as_dir=. 20103 for ac_exec_ext in '' $ac_executable_extensions; do 20104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 20105 ac_cv_prog_ac_ct_CC="gcc" 20106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20107 break 2 20108 fi 20109done 20110done 20111IFS=$as_save_IFS 20112 20113fi 20114fi 20115ac_ct_CC=$ac_cv_prog_ac_ct_CC 20116if test -n "$ac_ct_CC"; then 20117 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 20118echo "${ECHO_T}$ac_ct_CC" >&6; } 20119else 20120 { echo "$as_me:$LINENO: result: no" >&5 20121echo "${ECHO_T}no" >&6; } 20122fi 20123 20124 if test "x$ac_ct_CC" = x; then 20125 CC="" 20126 else 20127 case $cross_compiling:$ac_tool_warned in 20128yes:) 20129{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 20130whose name does not start with the host triplet. If you think this 20131configuration is useful to you, please write to autoconf@gnu.org." >&5 20132echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 20133whose name does not start with the host triplet. If you think this 20134configuration is useful to you, please write to autoconf@gnu.org." >&2;} 20135ac_tool_warned=yes ;; 20136esac 20137 CC=$ac_ct_CC 20138 fi 20139else 20140 CC="$ac_cv_prog_CC" 20141fi 20142 20143if test -z "$CC"; then 20144 if test -n "$ac_tool_prefix"; then 20145 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 20146set dummy ${ac_tool_prefix}cc; ac_word=$2 20147{ echo "$as_me:$LINENO: checking for $ac_word" >&5 20148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 20149if test "${ac_cv_prog_CC+set}" = set; then 20150 echo $ECHO_N "(cached) $ECHO_C" >&6 20151else 20152 if test -n "$CC"; then 20153 ac_cv_prog_CC="$CC" # Let the user override the test. 20154else 20155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20156for as_dir in $PATH 20157do 20158 IFS=$as_save_IFS 20159 test -z "$as_dir" && as_dir=. 20160 for ac_exec_ext in '' $ac_executable_extensions; do 20161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 20162 ac_cv_prog_CC="${ac_tool_prefix}cc" 20163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20164 break 2 20165 fi 20166done 20167done 20168IFS=$as_save_IFS 20169 20170fi 20171fi 20172CC=$ac_cv_prog_CC 20173if test -n "$CC"; then 20174 { echo "$as_me:$LINENO: result: $CC" >&5 20175echo "${ECHO_T}$CC" >&6; } 20176else 20177 { echo "$as_me:$LINENO: result: no" >&5 20178echo "${ECHO_T}no" >&6; } 20179fi 20180 20181 20182 fi 20183fi 20184if test -z "$CC"; then 20185 # Extract the first word of "cc", so it can be a program name with args. 20186set dummy cc; ac_word=$2 20187{ echo "$as_me:$LINENO: checking for $ac_word" >&5 20188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 20189if test "${ac_cv_prog_CC+set}" = set; then 20190 echo $ECHO_N "(cached) $ECHO_C" >&6 20191else 20192 if test -n "$CC"; then 20193 ac_cv_prog_CC="$CC" # Let the user override the test. 20194else 20195 ac_prog_rejected=no 20196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20197for as_dir in $PATH 20198do 20199 IFS=$as_save_IFS 20200 test -z "$as_dir" && as_dir=. 20201 for ac_exec_ext in '' $ac_executable_extensions; do 20202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 20203 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 20204 ac_prog_rejected=yes 20205 continue 20206 fi 20207 ac_cv_prog_CC="cc" 20208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20209 break 2 20210 fi 20211done 20212done 20213IFS=$as_save_IFS 20214 20215if test $ac_prog_rejected = yes; then 20216 # We found a bogon in the path, so make sure we never use it. 20217 set dummy $ac_cv_prog_CC 20218 shift 20219 if test $# != 0; then 20220 # We chose a different compiler from the bogus one. 20221 # However, it has the same basename, so the bogon will be chosen 20222 # first if we set CC to just the basename; use the full file name. 20223 shift 20224 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 20225 fi 20226fi 20227fi 20228fi 20229CC=$ac_cv_prog_CC 20230if test -n "$CC"; then 20231 { echo "$as_me:$LINENO: result: $CC" >&5 20232echo "${ECHO_T}$CC" >&6; } 20233else 20234 { echo "$as_me:$LINENO: result: no" >&5 20235echo "${ECHO_T}no" >&6; } 20236fi 20237 20238 20239fi 20240if test -z "$CC"; then 20241 if test -n "$ac_tool_prefix"; then 20242 for ac_prog in cl.exe 20243 do 20244 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 20245set dummy $ac_tool_prefix$ac_prog; ac_word=$2 20246{ echo "$as_me:$LINENO: checking for $ac_word" >&5 20247echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 20248if test "${ac_cv_prog_CC+set}" = set; then 20249 echo $ECHO_N "(cached) $ECHO_C" >&6 20250else 20251 if test -n "$CC"; then 20252 ac_cv_prog_CC="$CC" # Let the user override the test. 20253else 20254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20255for as_dir in $PATH 20256do 20257 IFS=$as_save_IFS 20258 test -z "$as_dir" && as_dir=. 20259 for ac_exec_ext in '' $ac_executable_extensions; do 20260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 20261 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 20262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20263 break 2 20264 fi 20265done 20266done 20267IFS=$as_save_IFS 20268 20269fi 20270fi 20271CC=$ac_cv_prog_CC 20272if test -n "$CC"; then 20273 { echo "$as_me:$LINENO: result: $CC" >&5 20274echo "${ECHO_T}$CC" >&6; } 20275else 20276 { echo "$as_me:$LINENO: result: no" >&5 20277echo "${ECHO_T}no" >&6; } 20278fi 20279 20280 20281 test -n "$CC" && break 20282 done 20283fi 20284if test -z "$CC"; then 20285 ac_ct_CC=$CC 20286 for ac_prog in cl.exe 20287do 20288 # Extract the first word of "$ac_prog", so it can be a program name with args. 20289set dummy $ac_prog; ac_word=$2 20290{ echo "$as_me:$LINENO: checking for $ac_word" >&5 20291echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 20292if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 20293 echo $ECHO_N "(cached) $ECHO_C" >&6 20294else 20295 if test -n "$ac_ct_CC"; then 20296 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 20297else 20298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20299for as_dir in $PATH 20300do 20301 IFS=$as_save_IFS 20302 test -z "$as_dir" && as_dir=. 20303 for ac_exec_ext in '' $ac_executable_extensions; do 20304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 20305 ac_cv_prog_ac_ct_CC="$ac_prog" 20306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20307 break 2 20308 fi 20309done 20310done 20311IFS=$as_save_IFS 20312 20313fi 20314fi 20315ac_ct_CC=$ac_cv_prog_ac_ct_CC 20316if test -n "$ac_ct_CC"; then 20317 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 20318echo "${ECHO_T}$ac_ct_CC" >&6; } 20319else 20320 { echo "$as_me:$LINENO: result: no" >&5 20321echo "${ECHO_T}no" >&6; } 20322fi 20323 20324 20325 test -n "$ac_ct_CC" && break 20326done 20327 20328 if test "x$ac_ct_CC" = x; then 20329 CC="" 20330 else 20331 case $cross_compiling:$ac_tool_warned in 20332yes:) 20333{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 20334whose name does not start with the host triplet. If you think this 20335configuration is useful to you, please write to autoconf@gnu.org." >&5 20336echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 20337whose name does not start with the host triplet. If you think this 20338configuration is useful to you, please write to autoconf@gnu.org." >&2;} 20339ac_tool_warned=yes ;; 20340esac 20341 CC=$ac_ct_CC 20342 fi 20343fi 20344 20345fi 20346 20347 20348test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 20349See \`config.log' for more details." >&5 20350echo "$as_me: error: no acceptable C compiler found in \$PATH 20351See \`config.log' for more details." >&2;} 20352 { (exit 1); exit 1; }; } 20353 20354# Provide some information about the compiler. 20355echo "$as_me:$LINENO: checking for C compiler version" >&5 20356ac_compiler=`set X $ac_compile; echo $2` 20357{ (ac_try="$ac_compiler --version >&5" 20358case "(($ac_try" in 20359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20360 *) ac_try_echo=$ac_try;; 20361esac 20362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20363 (eval "$ac_compiler --version >&5") 2>&5 20364 ac_status=$? 20365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20366 (exit $ac_status); } 20367{ (ac_try="$ac_compiler -v >&5" 20368case "(($ac_try" in 20369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20370 *) ac_try_echo=$ac_try;; 20371esac 20372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20373 (eval "$ac_compiler -v >&5") 2>&5 20374 ac_status=$? 20375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20376 (exit $ac_status); } 20377{ (ac_try="$ac_compiler -V >&5" 20378case "(($ac_try" in 20379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20380 *) ac_try_echo=$ac_try;; 20381esac 20382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20383 (eval "$ac_compiler -V >&5") 2>&5 20384 ac_status=$? 20385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20386 (exit $ac_status); } 20387 20388{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 20389echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 20390if test "${ac_cv_c_compiler_gnu+set}" = set; then 20391 echo $ECHO_N "(cached) $ECHO_C" >&6 20392else 20393 cat >conftest.$ac_ext <<_ACEOF 20394/* confdefs.h. */ 20395_ACEOF 20396cat confdefs.h >>conftest.$ac_ext 20397cat >>conftest.$ac_ext <<_ACEOF 20398/* end confdefs.h. */ 20399 20400int 20401main () 20402{ 20403#ifndef __GNUC__ 20404 choke me 20405#endif 20406 20407 ; 20408 return 0; 20409} 20410_ACEOF 20411rm -f conftest.$ac_objext 20412if { (ac_try="$ac_compile" 20413case "(($ac_try" in 20414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20415 *) ac_try_echo=$ac_try;; 20416esac 20417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20418 (eval "$ac_compile") 2>conftest.er1 20419 ac_status=$? 20420 grep -v '^ *+' conftest.er1 >conftest.err 20421 rm -f conftest.er1 20422 cat conftest.err >&5 20423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20424 (exit $ac_status); } && 20425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20426 { (case "(($ac_try" in 20427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20428 *) ac_try_echo=$ac_try;; 20429esac 20430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20431 (eval "$ac_try") 2>&5 20432 ac_status=$? 20433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20434 (exit $ac_status); }; } && 20435 { ac_try='test -s conftest.$ac_objext' 20436 { (case "(($ac_try" in 20437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20438 *) ac_try_echo=$ac_try;; 20439esac 20440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20441 (eval "$ac_try") 2>&5 20442 ac_status=$? 20443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20444 (exit $ac_status); }; }; then 20445 ac_compiler_gnu=yes 20446else 20447 echo "$as_me: failed program was:" >&5 20448sed 's/^/| /' conftest.$ac_ext >&5 20449 20450 ac_compiler_gnu=no 20451fi 20452 20453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20454ac_cv_c_compiler_gnu=$ac_compiler_gnu 20455 20456fi 20457{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 20458echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 20459GCC=`test $ac_compiler_gnu = yes && echo yes` 20460ac_test_CFLAGS=${CFLAGS+set} 20461ac_save_CFLAGS=$CFLAGS 20462{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 20463echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 20464if test "${ac_cv_prog_cc_g+set}" = set; then 20465 echo $ECHO_N "(cached) $ECHO_C" >&6 20466else 20467 ac_save_c_werror_flag=$ac_c_werror_flag 20468 ac_c_werror_flag=yes 20469 ac_cv_prog_cc_g=no 20470 CFLAGS="-g" 20471 cat >conftest.$ac_ext <<_ACEOF 20472/* confdefs.h. */ 20473_ACEOF 20474cat confdefs.h >>conftest.$ac_ext 20475cat >>conftest.$ac_ext <<_ACEOF 20476/* end confdefs.h. */ 20477 20478int 20479main () 20480{ 20481 20482 ; 20483 return 0; 20484} 20485_ACEOF 20486rm -f conftest.$ac_objext 20487if { (ac_try="$ac_compile" 20488case "(($ac_try" in 20489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20490 *) ac_try_echo=$ac_try;; 20491esac 20492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20493 (eval "$ac_compile") 2>conftest.er1 20494 ac_status=$? 20495 grep -v '^ *+' conftest.er1 >conftest.err 20496 rm -f conftest.er1 20497 cat conftest.err >&5 20498 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20499 (exit $ac_status); } && 20500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20501 { (case "(($ac_try" in 20502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20503 *) ac_try_echo=$ac_try;; 20504esac 20505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20506 (eval "$ac_try") 2>&5 20507 ac_status=$? 20508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20509 (exit $ac_status); }; } && 20510 { ac_try='test -s conftest.$ac_objext' 20511 { (case "(($ac_try" in 20512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20513 *) ac_try_echo=$ac_try;; 20514esac 20515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20516 (eval "$ac_try") 2>&5 20517 ac_status=$? 20518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20519 (exit $ac_status); }; }; then 20520 ac_cv_prog_cc_g=yes 20521else 20522 echo "$as_me: failed program was:" >&5 20523sed 's/^/| /' conftest.$ac_ext >&5 20524 20525 CFLAGS="" 20526 cat >conftest.$ac_ext <<_ACEOF 20527/* confdefs.h. */ 20528_ACEOF 20529cat confdefs.h >>conftest.$ac_ext 20530cat >>conftest.$ac_ext <<_ACEOF 20531/* end confdefs.h. */ 20532 20533int 20534main () 20535{ 20536 20537 ; 20538 return 0; 20539} 20540_ACEOF 20541rm -f conftest.$ac_objext 20542if { (ac_try="$ac_compile" 20543case "(($ac_try" in 20544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20545 *) ac_try_echo=$ac_try;; 20546esac 20547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20548 (eval "$ac_compile") 2>conftest.er1 20549 ac_status=$? 20550 grep -v '^ *+' conftest.er1 >conftest.err 20551 rm -f conftest.er1 20552 cat conftest.err >&5 20553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20554 (exit $ac_status); } && 20555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20556 { (case "(($ac_try" in 20557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20558 *) ac_try_echo=$ac_try;; 20559esac 20560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20561 (eval "$ac_try") 2>&5 20562 ac_status=$? 20563 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20564 (exit $ac_status); }; } && 20565 { ac_try='test -s conftest.$ac_objext' 20566 { (case "(($ac_try" in 20567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20568 *) ac_try_echo=$ac_try;; 20569esac 20570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20571 (eval "$ac_try") 2>&5 20572 ac_status=$? 20573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20574 (exit $ac_status); }; }; then 20575 : 20576else 20577 echo "$as_me: failed program was:" >&5 20578sed 's/^/| /' conftest.$ac_ext >&5 20579 20580 ac_c_werror_flag=$ac_save_c_werror_flag 20581 CFLAGS="-g" 20582 cat >conftest.$ac_ext <<_ACEOF 20583/* confdefs.h. */ 20584_ACEOF 20585cat confdefs.h >>conftest.$ac_ext 20586cat >>conftest.$ac_ext <<_ACEOF 20587/* end confdefs.h. */ 20588 20589int 20590main () 20591{ 20592 20593 ; 20594 return 0; 20595} 20596_ACEOF 20597rm -f conftest.$ac_objext 20598if { (ac_try="$ac_compile" 20599case "(($ac_try" in 20600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20601 *) ac_try_echo=$ac_try;; 20602esac 20603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20604 (eval "$ac_compile") 2>conftest.er1 20605 ac_status=$? 20606 grep -v '^ *+' conftest.er1 >conftest.err 20607 rm -f conftest.er1 20608 cat conftest.err >&5 20609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20610 (exit $ac_status); } && 20611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20612 { (case "(($ac_try" in 20613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20614 *) ac_try_echo=$ac_try;; 20615esac 20616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20617 (eval "$ac_try") 2>&5 20618 ac_status=$? 20619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20620 (exit $ac_status); }; } && 20621 { ac_try='test -s conftest.$ac_objext' 20622 { (case "(($ac_try" in 20623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20624 *) ac_try_echo=$ac_try;; 20625esac 20626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20627 (eval "$ac_try") 2>&5 20628 ac_status=$? 20629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20630 (exit $ac_status); }; }; then 20631 ac_cv_prog_cc_g=yes 20632else 20633 echo "$as_me: failed program was:" >&5 20634sed 's/^/| /' conftest.$ac_ext >&5 20635 20636 20637fi 20638 20639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20640fi 20641 20642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20643fi 20644 20645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20646 ac_c_werror_flag=$ac_save_c_werror_flag 20647fi 20648{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 20649echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 20650if test "$ac_test_CFLAGS" = set; then 20651 CFLAGS=$ac_save_CFLAGS 20652elif test $ac_cv_prog_cc_g = yes; then 20653 if test "$GCC" = yes; then 20654 CFLAGS="-g -O2" 20655 else 20656 CFLAGS="-g" 20657 fi 20658else 20659 if test "$GCC" = yes; then 20660 CFLAGS="-O2" 20661 else 20662 CFLAGS= 20663 fi 20664fi 20665{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 20666echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 20667if test "${ac_cv_prog_cc_c89+set}" = set; then 20668 echo $ECHO_N "(cached) $ECHO_C" >&6 20669else 20670 ac_cv_prog_cc_c89=no 20671ac_save_CC=$CC 20672cat >conftest.$ac_ext <<_ACEOF 20673/* confdefs.h. */ 20674_ACEOF 20675cat confdefs.h >>conftest.$ac_ext 20676cat >>conftest.$ac_ext <<_ACEOF 20677/* end confdefs.h. */ 20678#include <stdarg.h> 20679#include <stdio.h> 20680#include <sys/types.h> 20681#include <sys/stat.h> 20682/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 20683struct buf { int x; }; 20684FILE * (*rcsopen) (struct buf *, struct stat *, int); 20685static char *e (p, i) 20686 char **p; 20687 int i; 20688{ 20689 return p[i]; 20690} 20691static char *f (char * (*g) (char **, int), char **p, ...) 20692{ 20693 char *s; 20694 va_list v; 20695 va_start (v,p); 20696 s = g (p, va_arg (v,int)); 20697 va_end (v); 20698 return s; 20699} 20700 20701/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 20702 function prototypes and stuff, but not '\xHH' hex character constants. 20703 These don't provoke an error unfortunately, instead are silently treated 20704 as 'x'. The following induces an error, until -std is added to get 20705 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 20706 array size at least. It's necessary to write '\x00'==0 to get something 20707 that's true only with -std. */ 20708int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 20709 20710/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 20711 inside strings and character constants. */ 20712#define FOO(x) 'x' 20713int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 20714 20715int test (int i, double x); 20716struct s1 {int (*f) (int a);}; 20717struct s2 {int (*f) (double a);}; 20718int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 20719int argc; 20720char **argv; 20721int 20722main () 20723{ 20724return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 20725 ; 20726 return 0; 20727} 20728_ACEOF 20729for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 20730 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 20731do 20732 CC="$ac_save_CC $ac_arg" 20733 rm -f conftest.$ac_objext 20734if { (ac_try="$ac_compile" 20735case "(($ac_try" in 20736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20737 *) ac_try_echo=$ac_try;; 20738esac 20739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20740 (eval "$ac_compile") 2>conftest.er1 20741 ac_status=$? 20742 grep -v '^ *+' conftest.er1 >conftest.err 20743 rm -f conftest.er1 20744 cat conftest.err >&5 20745 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20746 (exit $ac_status); } && 20747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20748 { (case "(($ac_try" in 20749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20750 *) ac_try_echo=$ac_try;; 20751esac 20752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20753 (eval "$ac_try") 2>&5 20754 ac_status=$? 20755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20756 (exit $ac_status); }; } && 20757 { ac_try='test -s conftest.$ac_objext' 20758 { (case "(($ac_try" in 20759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20760 *) ac_try_echo=$ac_try;; 20761esac 20762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20763 (eval "$ac_try") 2>&5 20764 ac_status=$? 20765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20766 (exit $ac_status); }; }; then 20767 ac_cv_prog_cc_c89=$ac_arg 20768else 20769 echo "$as_me: failed program was:" >&5 20770sed 's/^/| /' conftest.$ac_ext >&5 20771 20772 20773fi 20774 20775rm -f core conftest.err conftest.$ac_objext 20776 test "x$ac_cv_prog_cc_c89" != "xno" && break 20777done 20778rm -f conftest.$ac_ext 20779CC=$ac_save_CC 20780 20781fi 20782# AC_CACHE_VAL 20783case "x$ac_cv_prog_cc_c89" in 20784 x) 20785 { echo "$as_me:$LINENO: result: none needed" >&5 20786echo "${ECHO_T}none needed" >&6; } ;; 20787 xno) 20788 { echo "$as_me:$LINENO: result: unsupported" >&5 20789echo "${ECHO_T}unsupported" >&6; } ;; 20790 *) 20791 CC="$CC $ac_cv_prog_cc_c89" 20792 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 20793echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 20794esac 20795 20796 20797ac_ext=c 20798ac_cpp='$CPP $CPPFLAGS' 20799ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20800ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20801ac_compiler_gnu=$ac_cv_c_compiler_gnu 20802 20803 20804. ${srcdir}/../bfd/configure.host 20805 20806# Put a plausible default for CC_FOR_BUILD in Makefile. 20807if test -z "$CC_FOR_BUILD"; then 20808 if test "x$cross_compiling" = "xno"; then 20809 CC_FOR_BUILD='$(CC)' 20810 else 20811 CC_FOR_BUILD='$(HOSTCC)' 20812 fi 20813fi 20814 20815# Also set EXEEXT_FOR_BUILD. 20816if test "x$cross_compiling" = "xno"; then 20817 EXEEXT_FOR_BUILD='$(EXEEXT)' 20818else 20819 { echo "$as_me:$LINENO: checking for build system executable suffix" >&5 20820echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6; } 20821if test "${bfd_cv_build_exeext+set}" = set; then 20822 echo $ECHO_N "(cached) $ECHO_C" >&6 20823else 20824 rm -f conftest* 20825 echo 'int main () { return 0; }' > conftest.c 20826 bfd_cv_build_exeext= 20827 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5 20828 for file in conftest.*; do 20829 case $file in 20830 *.c | *.o | *.obj | *.ilk | *.pdb) ;; 20831 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; 20832 esac 20833 done 20834 rm -f conftest* 20835 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no 20836fi 20837{ echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5 20838echo "${ECHO_T}$bfd_cv_build_exeext" >&6; } 20839 EXEEXT_FOR_BUILD="" 20840 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext} 20841fi 20842 20843 20844 20845# Find a good install program. We prefer a C program (faster), 20846# so one script is as good as another. But avoid the broken or 20847# incompatible versions: 20848# SysV /etc/install, /usr/sbin/install 20849# SunOS /usr/etc/install 20850# IRIX /sbin/install 20851# AIX /bin/install 20852# AmigaOS /C/install, which installs bootblocks on floppy discs 20853# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 20854# AFS /usr/afsws/bin/install, which mishandles nonexistent args 20855# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 20856# OS/2's system install, which has a completely different semantic 20857# ./install, which can be erroneously created by make from ./install.sh. 20858{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 20859echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 20860if test -z "$INSTALL"; then 20861if test "${ac_cv_path_install+set}" = set; then 20862 echo $ECHO_N "(cached) $ECHO_C" >&6 20863else 20864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20865for as_dir in $PATH 20866do 20867 IFS=$as_save_IFS 20868 test -z "$as_dir" && as_dir=. 20869 # Account for people who put trailing slashes in PATH elements. 20870case $as_dir/ in 20871 ./ | .// | /cC/* | \ 20872 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 20873 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 20874 /usr/ucb/* ) ;; 20875 *) 20876 # OSF1 and SCO ODT 3.0 have their own names for install. 20877 # Don't use installbsd from OSF since it installs stuff as root 20878 # by default. 20879 for ac_prog in ginstall scoinst install; do 20880 for ac_exec_ext in '' $ac_executable_extensions; do 20881 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then 20882 if test $ac_prog = install && 20883 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 20884 # AIX install. It has an incompatible calling convention. 20885 : 20886 elif test $ac_prog = install && 20887 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 20888 # program-specific install script used by HP pwplus--don't use. 20889 : 20890 else 20891 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 20892 break 3 20893 fi 20894 fi 20895 done 20896 done 20897 ;; 20898esac 20899done 20900IFS=$as_save_IFS 20901 20902 20903fi 20904 if test "${ac_cv_path_install+set}" = set; then 20905 INSTALL=$ac_cv_path_install 20906 else 20907 # As a last resort, use the slow shell script. Don't cache a 20908 # value for INSTALL within a source directory, because that will 20909 # break other packages using the cache if that directory is 20910 # removed, or if the value is a relative name. 20911 INSTALL="$SHELL $ac_install_sh" 20912 fi 20913fi 20914{ echo "$as_me:$LINENO: result: $INSTALL" >&5 20915echo "${ECHO_T}$INSTALL" >&6; } 20916 20917# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 20918# It thinks the first close brace ends the variable substitution. 20919test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 20920 20921test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 20922 20923test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 20924 20925 20926 20927 20928 20929for ac_header in string.h strings.h stdlib.h 20930do 20931as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 20932if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20933 { echo "$as_me:$LINENO: checking for $ac_header" >&5 20934echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 20935if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20936 echo $ECHO_N "(cached) $ECHO_C" >&6 20937fi 20938ac_res=`eval echo '${'$as_ac_Header'}'` 20939 { echo "$as_me:$LINENO: result: $ac_res" >&5 20940echo "${ECHO_T}$ac_res" >&6; } 20941else 20942 # Is the header compilable? 20943{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 20944echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 20945cat >conftest.$ac_ext <<_ACEOF 20946/* confdefs.h. */ 20947_ACEOF 20948cat confdefs.h >>conftest.$ac_ext 20949cat >>conftest.$ac_ext <<_ACEOF 20950/* end confdefs.h. */ 20951$ac_includes_default 20952#include <$ac_header> 20953_ACEOF 20954rm -f conftest.$ac_objext 20955if { (ac_try="$ac_compile" 20956case "(($ac_try" in 20957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20958 *) ac_try_echo=$ac_try;; 20959esac 20960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20961 (eval "$ac_compile") 2>conftest.er1 20962 ac_status=$? 20963 grep -v '^ *+' conftest.er1 >conftest.err 20964 rm -f conftest.er1 20965 cat conftest.err >&5 20966 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20967 (exit $ac_status); } && 20968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20969 { (case "(($ac_try" in 20970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20971 *) ac_try_echo=$ac_try;; 20972esac 20973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20974 (eval "$ac_try") 2>&5 20975 ac_status=$? 20976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20977 (exit $ac_status); }; } && 20978 { ac_try='test -s conftest.$ac_objext' 20979 { (case "(($ac_try" in 20980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20981 *) ac_try_echo=$ac_try;; 20982esac 20983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20984 (eval "$ac_try") 2>&5 20985 ac_status=$? 20986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20987 (exit $ac_status); }; }; then 20988 ac_header_compiler=yes 20989else 20990 echo "$as_me: failed program was:" >&5 20991sed 's/^/| /' conftest.$ac_ext >&5 20992 20993 ac_header_compiler=no 20994fi 20995 20996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20997{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20998echo "${ECHO_T}$ac_header_compiler" >&6; } 20999 21000# Is the header present? 21001{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 21002echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 21003cat >conftest.$ac_ext <<_ACEOF 21004/* confdefs.h. */ 21005_ACEOF 21006cat confdefs.h >>conftest.$ac_ext 21007cat >>conftest.$ac_ext <<_ACEOF 21008/* end confdefs.h. */ 21009#include <$ac_header> 21010_ACEOF 21011if { (ac_try="$ac_cpp conftest.$ac_ext" 21012case "(($ac_try" in 21013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21014 *) ac_try_echo=$ac_try;; 21015esac 21016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21017 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 21018 ac_status=$? 21019 grep -v '^ *+' conftest.er1 >conftest.err 21020 rm -f conftest.er1 21021 cat conftest.err >&5 21022 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21023 (exit $ac_status); } >/dev/null; then 21024 if test -s conftest.err; then 21025 ac_cpp_err=$ac_c_preproc_warn_flag 21026 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 21027 else 21028 ac_cpp_err= 21029 fi 21030else 21031 ac_cpp_err=yes 21032fi 21033if test -z "$ac_cpp_err"; then 21034 ac_header_preproc=yes 21035else 21036 echo "$as_me: failed program was:" >&5 21037sed 's/^/| /' conftest.$ac_ext >&5 21038 21039 ac_header_preproc=no 21040fi 21041 21042rm -f conftest.err conftest.$ac_ext 21043{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21044echo "${ECHO_T}$ac_header_preproc" >&6; } 21045 21046# So? What about this header? 21047case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21048 yes:no: ) 21049 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 21050echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 21051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 21052echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 21053 ac_header_preproc=yes 21054 ;; 21055 no:yes:* ) 21056 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 21057echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 21058 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 21059echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 21060 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 21061echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 21062 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 21063echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 21064 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 21065echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 21066 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 21067echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 21068 21069 ;; 21070esac 21071{ echo "$as_me:$LINENO: checking for $ac_header" >&5 21072echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 21073if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21074 echo $ECHO_N "(cached) $ECHO_C" >&6 21075else 21076 eval "$as_ac_Header=\$ac_header_preproc" 21077fi 21078ac_res=`eval echo '${'$as_ac_Header'}'` 21079 { echo "$as_me:$LINENO: result: $ac_res" >&5 21080echo "${ECHO_T}$ac_res" >&6; } 21081 21082fi 21083if test `eval echo '${'$as_ac_Header'}'` = yes; then 21084 cat >>confdefs.h <<_ACEOF 21085#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 21086_ACEOF 21087 21088fi 21089 21090done 21091 21092 21093{ echo "$as_me:$LINENO: checking whether basename is declared" >&5 21094echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6; } 21095if test "${ac_cv_have_decl_basename+set}" = set; then 21096 echo $ECHO_N "(cached) $ECHO_C" >&6 21097else 21098 cat >conftest.$ac_ext <<_ACEOF 21099/* confdefs.h. */ 21100_ACEOF 21101cat confdefs.h >>conftest.$ac_ext 21102cat >>conftest.$ac_ext <<_ACEOF 21103/* end confdefs.h. */ 21104$ac_includes_default 21105int 21106main () 21107{ 21108#ifndef basename 21109 char *p = (char *) basename; 21110 return !p; 21111#endif 21112 21113 ; 21114 return 0; 21115} 21116_ACEOF 21117rm -f conftest.$ac_objext 21118if { (ac_try="$ac_compile" 21119case "(($ac_try" in 21120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21121 *) ac_try_echo=$ac_try;; 21122esac 21123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21124 (eval "$ac_compile") 2>conftest.er1 21125 ac_status=$? 21126 grep -v '^ *+' conftest.er1 >conftest.err 21127 rm -f conftest.er1 21128 cat conftest.err >&5 21129 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21130 (exit $ac_status); } && 21131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21132 { (case "(($ac_try" in 21133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21134 *) ac_try_echo=$ac_try;; 21135esac 21136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21137 (eval "$ac_try") 2>&5 21138 ac_status=$? 21139 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21140 (exit $ac_status); }; } && 21141 { ac_try='test -s conftest.$ac_objext' 21142 { (case "(($ac_try" in 21143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21144 *) ac_try_echo=$ac_try;; 21145esac 21146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21147 (eval "$ac_try") 2>&5 21148 ac_status=$? 21149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21150 (exit $ac_status); }; }; then 21151 ac_cv_have_decl_basename=yes 21152else 21153 echo "$as_me: failed program was:" >&5 21154sed 's/^/| /' conftest.$ac_ext >&5 21155 21156 ac_cv_have_decl_basename=no 21157fi 21158 21159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21160fi 21161{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5 21162echo "${ECHO_T}$ac_cv_have_decl_basename" >&6; } 21163if test $ac_cv_have_decl_basename = yes; then 21164 21165cat >>confdefs.h <<_ACEOF 21166#define HAVE_DECL_BASENAME 1 21167_ACEOF 21168 21169 21170else 21171 cat >>confdefs.h <<_ACEOF 21172#define HAVE_DECL_BASENAME 0 21173_ACEOF 21174 21175 21176fi 21177 21178 21179 21180cgen_maint=no 21181cgendir='$(srcdir)/../cgen' 21182 21183# Check whether --enable-cgen-maint was given. 21184if test "${enable_cgen_maint+set}" = set; then 21185 enableval=$enable_cgen_maint; case "${enableval}" in 21186 yes) cgen_maint=yes ;; 21187 no) cgen_maint=no ;; 21188 *) 21189 # argument is cgen install directory (not implemented yet). 21190 # Having a `share' directory might be more appropriate for the .scm, 21191 # .cpu, etc. files. 21192 cgen_maint=yes 21193 cgendir=${cgen_maint}/lib/cgen 21194 ;; 21195esac 21196fi 21197 21198 21199if test x${cgen_maint} = xyes; then 21200 CGEN_MAINT_TRUE= 21201 CGEN_MAINT_FALSE='#' 21202else 21203 CGEN_MAINT_TRUE='#' 21204 CGEN_MAINT_FALSE= 21205fi 21206 21207 21208 21209using_cgen=no 21210 21211# Horrible hacks to build DLLs on Windows. 21212WIN32LDFLAGS= 21213WIN32LIBADD= 21214case "${host}" in 21215*-*-cygwin*) 21216 if test "$enable_shared" = "yes"; then 21217 WIN32LDFLAGS="-no-undefined" 21218 WIN32LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin" 21219 fi 21220 ;; 21221esac 21222 21223 21224 21225# target-specific stuff: 21226 21227# Canonicalize the secondary target names. 21228if test -n "$enable_targets" ; then 21229 for targ in `echo $enable_targets | sed 's/,/ /g'` 21230 do 21231 result=`$ac_config_sub $targ 2>/dev/null` 21232 if test -n "$result" ; then 21233 canon_targets="$canon_targets $result" 21234 else 21235 # Allow targets that config.sub doesn't recognize, like "all". 21236 canon_targets="$canon_targets $targ" 21237 fi 21238 done 21239fi 21240 21241all_targets=false 21242selarchs= 21243for targ in $target $canon_targets 21244do 21245 if test "x$targ" = "xall" ; then 21246 all_targets=true 21247 else 21248 . $srcdir/../bfd/config.bfd 21249 selarchs="$selarchs $targ_archs" 21250 fi 21251done 21252 21253# Utility var, documents generic cgen support files. 21254 21255cgen_files="cgen-opc.lo cgen-asm.lo cgen-dis.lo" 21256 21257# We don't do any links based on the target system, just makefile config. 21258 21259if test x${all_targets} = xfalse ; then 21260 21261 # Target architecture .o files. 21262 ta= 21263 21264 for arch in $selarchs 21265 do 21266 ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g` 21267 archdefs="$archdefs -DARCH_$ad" 21268 case "$arch" in 21269 bfd_a29k_arch) ta="$ta a29k-dis.lo" ;; 21270 bfd_alliant_arch) ;; 21271 bfd_alpha_arch) ta="$ta alpha-dis.lo alpha-opc.lo" ;; 21272 bfd_arc_arch) ta="$ta arc-dis.lo arc-opc.lo arc-ext.lo" ;; 21273 bfd_arm_arch) ta="$ta arm-dis.lo" ;; 21274 bfd_avr_arch) ta="$ta avr-dis.lo" ;; 21275 bfd_convex_arch) ;; 21276 bfd_cris_arch) ta="$ta cris-dis.lo cris-opc.lo" ;; 21277 bfd_crx_arch) ta="$ta crx-dis.lo crx-opc.lo" ;; 21278 bfd_d10v_arch) ta="$ta d10v-dis.lo d10v-opc.lo" ;; 21279 bfd_d30v_arch) ta="$ta d30v-dis.lo d30v-opc.lo" ;; 21280 bfd_dlx_arch) ta="$ta dlx-dis.lo" ;; 21281 bfd_fr30_arch) ta="$ta fr30-asm.lo fr30-desc.lo fr30-dis.lo fr30-ibld.lo fr30-opc.lo" using_cgen=yes ;; 21282 bfd_h8300_arch) ta="$ta h8300-dis.lo" ;; 21283 bfd_h8500_arch) ta="$ta h8500-dis.lo" ;; 21284 bfd_hppa_arch) ta="$ta hppa-dis.lo" ;; 21285 bfd_i370_arch) ta="$ta i370-dis.lo i370-opc.lo" ;; 21286 bfd_i386_arch) ta="$ta i386-dis.lo" ;; 21287 bfd_i860_arch) ta="$ta i860-dis.lo" ;; 21288 bfd_i960_arch) ta="$ta i960-dis.lo" ;; 21289 bfd_ia64_arch) ta="$ta ia64-dis.lo ia64-opc.lo" ;; 21290 bfd_ip2k_arch) ta="$ta ip2k-asm.lo ip2k-desc.lo ip2k-dis.lo ip2k-ibld.lo ip2k-opc.lo" using_cgen=yes ;; 21291 bfd_iq2000_arch) ta="$ta iq2000-asm.lo iq2000-desc.lo iq2000-dis.lo iq2000-ibld.lo iq2000-opc.lo" using_cgen=yes ;; 21292 bfd_m32r_arch) ta="$ta m32r-asm.lo m32r-desc.lo m32r-dis.lo m32r-ibld.lo m32r-opc.lo m32r-opinst.lo" using_cgen=yes ;; 21293 bfd_m68hc11_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;; 21294 bfd_m68hc12_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;; 21295 bfd_m68k_arch) ta="$ta m68k-dis.lo m68k-opc.lo" ;; 21296 bfd_m88k_arch) ta="$ta m88k-dis.lo" ;; 21297 bfd_maxq_arch) ta="$ta maxq-dis.lo" ;; 21298 bfd_mcore_arch) ta="$ta mcore-dis.lo" ;; 21299 bfd_mips_arch) ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo" ;; 21300 bfd_mmix_arch) ta="$ta mmix-dis.lo mmix-opc.lo" ;; 21301 bfd_mn10200_arch) ta="$ta m10200-dis.lo m10200-opc.lo" ;; 21302 bfd_mn10300_arch) ta="$ta m10300-dis.lo m10300-opc.lo" ;; 21303 bfd_ms1_arch) ta="$ta ms1-asm.lo ms1-desc.lo ms1-dis.lo ms1-ibld.lo ms1-opc.lo" using_cgen=yes ;; 21304 bfd_msp430_arch) ta="$ta msp430-dis.lo" ;; 21305 bfd_ns32k_arch) ta="$ta ns32k-dis.lo" ;; 21306 bfd_openrisc_arch) ta="$ta openrisc-asm.lo openrisc-desc.lo openrisc-dis.lo openrisc-ibld.lo openrisc-opc.lo" using_cgen=yes ;; 21307 bfd_or32_arch) ta="$ta or32-dis.lo or32-opc.lo" using_cgen=yes ;; 21308 bfd_pdp11_arch) ta="$ta pdp11-dis.lo pdp11-opc.lo" ;; 21309 bfd_pj_arch) ta="$ta pj-dis.lo pj-opc.lo" ;; 21310 bfd_powerpc_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;; 21311 bfd_powerpc_64_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;; 21312 bfd_pyramid_arch) ;; 21313 bfd_romp_arch) ;; 21314 bfd_rs6000_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;; 21315 bfd_s390_arch) ta="$ta s390-dis.lo s390-opc.lo" ;; 21316 bfd_sh_arch) 21317 # We can't decide what we want just from the CPU family. 21318 # We want SH5 support unless a specific version of sh is 21319 # specified, as in sh3-elf, sh3b-linux-gnu, etc. 21320 # Include it just for ELF targets, since the SH5 bfd:s are ELF only. 21321 for t in $target $canon_targets; do 21322 case $t in 21323 all | sh5*-* | sh64*-* | sh-*-*elf* | shl*-*-*elf* | \ 21324 sh-*-linux* | shl-*-linux*) 21325 ta="$ta sh64-dis.lo sh64-opc.lo" 21326 archdefs="$archdefs -DINCLUDE_SHMEDIA" 21327 break;; 21328 esac; 21329 done 21330 ta="$ta sh-dis.lo" ;; 21331 bfd_sparc_arch) ta="$ta sparc-dis.lo sparc-opc.lo" ;; 21332 bfd_tahoe_arch) ;; 21333 bfd_tic30_arch) ta="$ta tic30-dis.lo" ;; 21334 bfd_tic4x_arch) ta="$ta tic4x-dis.lo" ;; 21335 bfd_tic54x_arch) ta="$ta tic54x-dis.lo tic54x-opc.lo" ;; 21336 bfd_tic80_arch) ta="$ta tic80-dis.lo tic80-opc.lo" ;; 21337 bfd_v850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;; 21338 bfd_v850e_arch) ta="$ta v850-opc.lo v850-dis.lo" ;; 21339 bfd_v850ea_arch) ta="$ta v850-opc.lo v850-dis.lo" ;; 21340 bfd_vax_arch) ta="$ta vax-dis.lo" ;; 21341 bfd_w65_arch) ta="$ta w65-dis.lo" ;; 21342 bfd_we32k_arch) ;; 21343 bfd_xstormy16_arch) ta="$ta xstormy16-asm.lo xstormy16-desc.lo xstormy16-dis.lo xstormy16-ibld.lo xstormy16-opc.lo" using_cgen=yes ;; 21344 bfd_xtensa_arch) ta="$ta xtensa-dis.lo" ;; 21345 bfd_z8k_arch) ta="$ta z8k-dis.lo" ;; 21346 bfd_frv_arch) ta="$ta frv-asm.lo frv-desc.lo frv-dis.lo frv-ibld.lo frv-opc.lo" using_cgen=yes ;; 21347 21348 "") ;; 21349 *) { { echo "$as_me:$LINENO: error: *** unknown target architecture $arch" >&5 21350echo "$as_me: error: *** unknown target architecture $arch" >&2;} 21351 { (exit 1); exit 1; }; } ;; 21352 esac 21353 done 21354 21355 if test $using_cgen = yes ; then 21356 ta="$ta $cgen_files" 21357 fi 21358 21359 # Weed out duplicate .o files. 21360 f="" 21361 for i in $ta ; do 21362 case " $f " in 21363 *" $i "*) ;; 21364 *) f="$f $i" ;; 21365 esac 21366 done 21367 ta="$f" 21368 21369 # And duplicate -D flags. 21370 f="" 21371 for i in $archdefs ; do 21372 case " $f " in 21373 *" $i "*) ;; 21374 *) f="$f $i" ;; 21375 esac 21376 done 21377 archdefs="$f" 21378 21379 BFD_MACHINES="$ta" 21380 21381else # all_targets is true 21382 archdefs=-DARCH_all 21383 BFD_MACHINES='$(ALL_MACHINES)' 21384fi 21385 21386 21387 21388 21389ac_config_files="$ac_config_files Makefile" 21390 21391cat >confcache <<\_ACEOF 21392# This file is a shell script that caches the results of configure 21393# tests run on this system so they can be shared between configure 21394# scripts and configure runs, see configure's option --config-cache. 21395# It is not useful on other systems. If it contains results you don't 21396# want to keep, you may remove or edit it. 21397# 21398# config.status only pays attention to the cache file if you give it 21399# the --recheck option to rerun configure. 21400# 21401# `ac_cv_env_foo' variables (set or unset) will be overridden when 21402# loading this file, other *unset* `ac_cv_foo' will be assigned the 21403# following values. 21404 21405_ACEOF 21406 21407# The following way of writing the cache mishandles newlines in values, 21408# but we know of no workaround that is simple, portable, and efficient. 21409# So, we kill variables containing newlines. 21410# Ultrix sh set writes to stderr and can't be redirected directly, 21411# and sets the high bit in the cache file unless we assign to the vars. 21412( 21413 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 21414 eval ac_val=\$$ac_var 21415 case $ac_val in #( 21416 *${as_nl}*) 21417 case $ac_var in #( 21418 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 21419echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 21420 esac 21421 case $ac_var in #( 21422 _ | IFS | as_nl) ;; #( 21423 *) $as_unset $ac_var ;; 21424 esac ;; 21425 esac 21426 done 21427 21428 (set) 2>&1 | 21429 case $as_nl`(ac_space=' '; set) 2>&1` in #( 21430 *${as_nl}ac_space=\ *) 21431 # `set' does not quote correctly, so add quotes (double-quote 21432 # substitution turns \\\\ into \\, and sed turns \\ into \). 21433 sed -n \ 21434 "s/'/'\\\\''/g; 21435 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21436 ;; #( 21437 *) 21438 # `set' quotes correctly as required by POSIX, so do not add quotes. 21439 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21440 ;; 21441 esac | 21442 sort 21443) | 21444 sed ' 21445 /^ac_cv_env_/b end 21446 t clear 21447 :clear 21448 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 21449 t end 21450 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21451 :end' >>confcache 21452if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 21453 if test -w "$cache_file"; then 21454 test "x$cache_file" != "x/dev/null" && 21455 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 21456echo "$as_me: updating cache $cache_file" >&6;} 21457 cat confcache >$cache_file 21458 else 21459 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 21460echo "$as_me: not updating unwritable cache $cache_file" >&6;} 21461 fi 21462fi 21463rm -f confcache 21464 21465test "x$prefix" = xNONE && prefix=$ac_default_prefix 21466# Let make expand exec_prefix. 21467test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21468 21469DEFS=-DHAVE_CONFIG_H 21470 21471ac_libobjs= 21472ac_ltlibobjs= 21473for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21474 # 1. Remove the extension, and $U if already installed. 21475 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21476 ac_i=`echo "$ac_i" | sed "$ac_script"` 21477 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21478 # will be set to the directory where LIBOBJS objects are built. 21479 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21480 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 21481done 21482LIBOBJS=$ac_libobjs 21483 21484LTLIBOBJS=$ac_ltlibobjs 21485 21486 21487if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 21488 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 21489Usually this means the macro was only invoked conditionally." >&5 21490echo "$as_me: error: conditional \"AMDEP\" was never defined. 21491Usually this means the macro was only invoked conditionally." >&2;} 21492 { (exit 1); exit 1; }; } 21493fi 21494if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21495 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 21496Usually this means the macro was only invoked conditionally." >&5 21497echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 21498Usually this means the macro was only invoked conditionally." >&2;} 21499 { (exit 1); exit 1; }; } 21500fi 21501if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 21502 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 21503Usually this means the macro was only invoked conditionally." >&5 21504echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 21505Usually this means the macro was only invoked conditionally." >&2;} 21506 { (exit 1); exit 1; }; } 21507fi 21508if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 21509 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 21510Usually this means the macro was only invoked conditionally." >&5 21511echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 21512Usually this means the macro was only invoked conditionally." >&2;} 21513 { (exit 1); exit 1; }; } 21514fi 21515if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then 21516 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined. 21517Usually this means the macro was only invoked conditionally." >&5 21518echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined. 21519Usually this means the macro was only invoked conditionally." >&2;} 21520 { (exit 1); exit 1; }; } 21521fi 21522if test -z "${CGEN_MAINT_TRUE}" && test -z "${CGEN_MAINT_FALSE}"; then 21523 { { echo "$as_me:$LINENO: error: conditional \"CGEN_MAINT\" was never defined. 21524Usually this means the macro was only invoked conditionally." >&5 21525echo "$as_me: error: conditional \"CGEN_MAINT\" was never defined. 21526Usually this means the macro was only invoked conditionally." >&2;} 21527 { (exit 1); exit 1; }; } 21528fi 21529 21530: ${CONFIG_STATUS=./config.status} 21531ac_clean_files_save=$ac_clean_files 21532ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21533{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 21534echo "$as_me: creating $CONFIG_STATUS" >&6;} 21535cat >$CONFIG_STATUS <<_ACEOF 21536#! $SHELL 21537# Generated by $as_me. 21538# Run this file to recreate the current configuration. 21539# Compiler output produced by configure, useful for debugging 21540# configure, is in config.log if it exists. 21541 21542debug=false 21543ac_cs_recheck=false 21544ac_cs_silent=false 21545SHELL=\${CONFIG_SHELL-$SHELL} 21546_ACEOF 21547 21548cat >>$CONFIG_STATUS <<\_ACEOF 21549## --------------------- ## 21550## M4sh Initialization. ## 21551## --------------------- ## 21552 21553# Be Bourne compatible 21554if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 21555 emulate sh 21556 NULLCMD=: 21557 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 21558 # is contrary to our usage. Disable this feature. 21559 alias -g '${1+"$@"}'='"$@"' 21560 setopt NO_GLOB_SUBST 21561else 21562 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 21563fi 21564BIN_SH=xpg4; export BIN_SH # for Tru64 21565DUALCASE=1; export DUALCASE # for MKS sh 21566 21567 21568# PATH needs CR 21569# Avoid depending upon Character Ranges. 21570as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21571as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21572as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21573as_cr_digits='0123456789' 21574as_cr_alnum=$as_cr_Letters$as_cr_digits 21575 21576# The user is always right. 21577if test "${PATH_SEPARATOR+set}" != set; then 21578 echo "#! /bin/sh" >conf$$.sh 21579 echo "exit 0" >>conf$$.sh 21580 chmod +x conf$$.sh 21581 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 21582 PATH_SEPARATOR=';' 21583 else 21584 PATH_SEPARATOR=: 21585 fi 21586 rm -f conf$$.sh 21587fi 21588 21589# Support unset when possible. 21590if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 21591 as_unset=unset 21592else 21593 as_unset=false 21594fi 21595 21596 21597# IFS 21598# We need space, tab and new line, in precisely that order. Quoting is 21599# there to prevent editors from complaining about space-tab. 21600# (If _AS_PATH_WALK were called with IFS unset, it would disable word 21601# splitting by setting IFS to empty value.) 21602as_nl=' 21603' 21604IFS=" "" $as_nl" 21605 21606# Find who we are. Look in the path if we contain no directory separator. 21607case $0 in 21608 *[\\/]* ) as_myself=$0 ;; 21609 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21610for as_dir in $PATH 21611do 21612 IFS=$as_save_IFS 21613 test -z "$as_dir" && as_dir=. 21614 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 21615done 21616IFS=$as_save_IFS 21617 21618 ;; 21619esac 21620# We did not find ourselves, most probably we were run as `sh COMMAND' 21621# in which case we are not to be found in the path. 21622if test "x$as_myself" = x; then 21623 as_myself=$0 21624fi 21625if test ! -f "$as_myself"; then 21626 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 21627 { (exit 1); exit 1; } 21628fi 21629 21630# Work around bugs in pre-3.0 UWIN ksh. 21631for as_var in ENV MAIL MAILPATH 21632do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 21633done 21634PS1='$ ' 21635PS2='> ' 21636PS4='+ ' 21637 21638# NLS nuisances. 21639for as_var in \ 21640 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 21641 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 21642 LC_TELEPHONE LC_TIME 21643do 21644 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 21645 eval $as_var=C; export $as_var 21646 else 21647 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 21648 fi 21649done 21650 21651# Required to use basename. 21652if expr a : '\(a\)' >/dev/null 2>&1 && 21653 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21654 as_expr=expr 21655else 21656 as_expr=false 21657fi 21658 21659if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21660 as_basename=basename 21661else 21662 as_basename=false 21663fi 21664 21665 21666# Name of the executable. 21667as_me=`$as_basename -- "$0" || 21668$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21669 X"$0" : 'X\(//\)$' \| \ 21670 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21671echo X/"$0" | 21672 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21673 s//\1/ 21674 q 21675 } 21676 /^X\/\(\/\/\)$/{ 21677 s//\1/ 21678 q 21679 } 21680 /^X\/\(\/\).*/{ 21681 s//\1/ 21682 q 21683 } 21684 s/.*/./; q'` 21685 21686# CDPATH. 21687$as_unset CDPATH 21688 21689 21690 21691 as_lineno_1=$LINENO 21692 as_lineno_2=$LINENO 21693 test "x$as_lineno_1" != "x$as_lineno_2" && 21694 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 21695 21696 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 21697 # uniformly replaced by the line number. The first 'sed' inserts a 21698 # line-number line after each line using $LINENO; the second 'sed' 21699 # does the real work. The second script uses 'N' to pair each 21700 # line-number line with the line containing $LINENO, and appends 21701 # trailing '-' during substitution so that $LINENO is not a special 21702 # case at line end. 21703 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 21704 # scripts with optimization help from Paolo Bonzini. Blame Lee 21705 # E. McMahon (1931-1989) for sed's syntax. :-) 21706 sed -n ' 21707 p 21708 /[$]LINENO/= 21709 ' <$as_myself | 21710 sed ' 21711 s/[$]LINENO.*/&-/ 21712 t lineno 21713 b 21714 :lineno 21715 N 21716 :loop 21717 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 21718 t loop 21719 s/-\n.*// 21720 ' >$as_me.lineno && 21721 chmod +x "$as_me.lineno" || 21722 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 21723 { (exit 1); exit 1; }; } 21724 21725 # Don't try to exec as it changes $[0], causing all sort of problems 21726 # (the dirname of $[0] is not the place where we might find the 21727 # original and so on. Autoconf is especially sensitive to this). 21728 . "./$as_me.lineno" 21729 # Exit status is that of the last command. 21730 exit 21731} 21732 21733 21734if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21735 as_dirname=dirname 21736else 21737 as_dirname=false 21738fi 21739 21740ECHO_C= ECHO_N= ECHO_T= 21741case `echo -n x` in 21742-n*) 21743 case `echo 'x\c'` in 21744 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21745 *) ECHO_C='\c';; 21746 esac;; 21747*) 21748 ECHO_N='-n';; 21749esac 21750 21751if expr a : '\(a\)' >/dev/null 2>&1 && 21752 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21753 as_expr=expr 21754else 21755 as_expr=false 21756fi 21757 21758rm -f conf$$ conf$$.exe conf$$.file 21759if test -d conf$$.dir; then 21760 rm -f conf$$.dir/conf$$.file 21761else 21762 rm -f conf$$.dir 21763 mkdir conf$$.dir 21764fi 21765echo >conf$$.file 21766if ln -s conf$$.file conf$$ 2>/dev/null; then 21767 as_ln_s='ln -s' 21768 # ... but there are two gotchas: 21769 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 21770 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 21771 # In both cases, we have to default to `cp -p'. 21772 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21773 as_ln_s='cp -p' 21774elif ln conf$$.file conf$$ 2>/dev/null; then 21775 as_ln_s=ln 21776else 21777 as_ln_s='cp -p' 21778fi 21779rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21780rmdir conf$$.dir 2>/dev/null 21781 21782if mkdir -p . 2>/dev/null; then 21783 as_mkdir_p=: 21784else 21785 test -d ./-p && rmdir ./-p 21786 as_mkdir_p=false 21787fi 21788 21789# Find out whether ``test -x'' works. Don't use a zero-byte file, as 21790# systems may use methods other than mode bits to determine executability. 21791cat >conf$$.file <<_ASEOF 21792#! /bin/sh 21793exit 0 21794_ASEOF 21795chmod +x conf$$.file 21796if test -x conf$$.file >/dev/null 2>&1; then 21797 as_executable_p="test -x" 21798else 21799 as_executable_p=: 21800fi 21801rm -f conf$$.file 21802 21803# Sed expression to map a string onto a valid CPP name. 21804as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21805 21806# Sed expression to map a string onto a valid variable name. 21807as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21808 21809 21810exec 6>&1 21811 21812# Save the log message, to keep $[0] and so on meaningful, and to 21813# report actual input values of CONFIG_FILES etc. instead of their 21814# values after options handling. 21815ac_log=" 21816This file was extended by $as_me, which was 21817generated by GNU Autoconf 2.60-MirPorts-2. Invocation command line was 21818 21819 CONFIG_FILES = $CONFIG_FILES 21820 CONFIG_HEADERS = $CONFIG_HEADERS 21821 CONFIG_LINKS = $CONFIG_LINKS 21822 CONFIG_COMMANDS = $CONFIG_COMMANDS 21823 $ $0 $@ 21824 21825on `(hostname || uname -n) 2>/dev/null | sed 1q` 21826" 21827 21828_ACEOF 21829 21830cat >>$CONFIG_STATUS <<_ACEOF 21831# Files that config.status was made for. 21832config_files="$ac_config_files" 21833config_headers="$ac_config_headers" 21834config_commands="$ac_config_commands" 21835 21836_ACEOF 21837 21838cat >>$CONFIG_STATUS <<\_ACEOF 21839ac_cs_usage="\ 21840\`$as_me' instantiates files from templates according to the 21841current configuration. 21842 21843Usage: $0 [OPTIONS] [FILE]... 21844 21845 -h, --help print this help, then exit 21846 -V, --version print version number, then exit 21847 -q, --quiet do not print progress messages 21848 -d, --debug don't remove temporary files 21849 --recheck update $as_me by reconfiguring in the same conditions 21850 --file=FILE[:TEMPLATE] 21851 instantiate the configuration file FILE 21852 --header=FILE[:TEMPLATE] 21853 instantiate the configuration header FILE 21854 21855Configuration files: 21856$config_files 21857 21858Configuration headers: 21859$config_headers 21860 21861Configuration commands: 21862$config_commands 21863 21864Report bugs to <bug-autoconf@gnu.org>." 21865 21866_ACEOF 21867cat >>$CONFIG_STATUS <<_ACEOF 21868ac_cs_version="\\ 21869config.status 21870configured by $0, generated by GNU Autoconf 2.60-MirPorts-2, 21871 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 21872 21873Copyright (C) 2006 Free Software Foundation, Inc. 21874This config.status script is free software; the Free Software Foundation 21875gives unlimited permission to copy, distribute and modify it." 21876 21877ac_pwd='$ac_pwd' 21878srcdir='$srcdir' 21879INSTALL='$INSTALL' 21880_ACEOF 21881 21882cat >>$CONFIG_STATUS <<\_ACEOF 21883# If no file are specified by the user, then we need to provide default 21884# value. By we need to know if files were specified by the user. 21885ac_need_defaults=: 21886while test $# != 0 21887do 21888 case $1 in 21889 --*=*) 21890 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21891 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21892 ac_shift=: 21893 ;; 21894 *) 21895 ac_option=$1 21896 ac_optarg=$2 21897 ac_shift=shift 21898 ;; 21899 esac 21900 21901 case $ac_option in 21902 # Handling of the options. 21903 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21904 ac_cs_recheck=: ;; 21905 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21906 echo "$ac_cs_version"; exit ;; 21907 --debug | --debu | --deb | --de | --d | -d ) 21908 debug=: ;; 21909 --file | --fil | --fi | --f ) 21910 $ac_shift 21911 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 21912 ac_need_defaults=false;; 21913 --header | --heade | --head | --hea ) 21914 $ac_shift 21915 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 21916 ac_need_defaults=false;; 21917 --he | --h) 21918 # Conflict between --help and --header 21919 { echo "$as_me: error: ambiguous option: $1 21920Try \`$0 --help' for more information." >&2 21921 { (exit 1); exit 1; }; };; 21922 --help | --hel | -h ) 21923 echo "$ac_cs_usage"; exit ;; 21924 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21925 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21926 ac_cs_silent=: ;; 21927 21928 # This is an error. 21929 -*) { echo "$as_me: error: unrecognized option: $1 21930Try \`$0 --help' for more information." >&2 21931 { (exit 1); exit 1; }; } ;; 21932 21933 *) ac_config_targets="$ac_config_targets $1" 21934 ac_need_defaults=false ;; 21935 21936 esac 21937 shift 21938done 21939 21940ac_configure_extra_args= 21941 21942if $ac_cs_silent; then 21943 exec 6>/dev/null 21944 ac_configure_extra_args="$ac_configure_extra_args --silent" 21945fi 21946 21947_ACEOF 21948cat >>$CONFIG_STATUS <<_ACEOF 21949if \$ac_cs_recheck; then 21950 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 21951 CONFIG_SHELL=$SHELL 21952 export CONFIG_SHELL 21953 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21954fi 21955 21956_ACEOF 21957cat >>$CONFIG_STATUS <<\_ACEOF 21958exec 5>>config.log 21959{ 21960 echo 21961 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21962## Running $as_me. ## 21963_ASBOX 21964 echo "$ac_log" 21965} >&5 21966 21967_ACEOF 21968cat >>$CONFIG_STATUS <<_ACEOF 21969# 21970# INIT-COMMANDS 21971# 21972AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 21973 21974_ACEOF 21975 21976cat >>$CONFIG_STATUS <<\_ACEOF 21977 21978# Handling of arguments. 21979for ac_config_target in $ac_config_targets 21980do 21981 case $ac_config_target in 21982 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21983 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; 21984 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21985 21986 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 21987echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 21988 { (exit 1); exit 1; }; };; 21989 esac 21990done 21991 21992 21993# If the user did not use the arguments to specify the items to instantiate, 21994# then the envvar interface is used. Set only those that are not. 21995# We use the long form for the default assignment because of an extremely 21996# bizarre bug on SunOS 4.1.3. 21997if $ac_need_defaults; then 21998 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 21999 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 22000 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 22001fi 22002 22003# Have a temporary directory for convenience. Make it in the build tree 22004# simply because there is no reason against having it here, and in addition, 22005# creating and moving files from /tmp can sometimes cause problems. 22006# Hook for its removal unless debugging. 22007# Note that there is a small window in which the directory will not be cleaned: 22008# after its creation but before its name has been assigned to `$tmp'. 22009$debug || 22010{ 22011 tmp= 22012 trap 'exit_status=$? 22013 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 22014' 0 22015 trap '{ (exit 1); exit 1; }' 1 2 13 15 22016} 22017# Create a (secure) tmp directory for tmp files. 22018 22019{ 22020 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 22021 test -n "$tmp" && test -d "$tmp" 22022} || 22023{ 22024 tmp=./conf$$-$RANDOM 22025 (umask 077 && mkdir "$tmp") 22026} || 22027{ 22028 echo "$me: cannot create a temporary directory in ." >&2 22029 { (exit 1); exit 1; } 22030} 22031 22032# 22033# Set up the sed scripts for CONFIG_FILES section. 22034# 22035 22036# No need to generate the scripts if there are no CONFIG_FILES. 22037# This happens for instance when ./config.status config.h 22038if test -n "$CONFIG_FILES"; then 22039 22040_ACEOF 22041 22042 22043 22044ac_delim='%!_!# ' 22045for ac_last_try in false false false false false :; do 22046 cat >conf$$subs.sed <<_ACEOF 22047SHELL!$SHELL$ac_delim 22048PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 22049PACKAGE_NAME!$PACKAGE_NAME$ac_delim 22050PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 22051PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 22052PACKAGE_STRING!$PACKAGE_STRING$ac_delim 22053PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 22054exec_prefix!$exec_prefix$ac_delim 22055prefix!$prefix$ac_delim 22056program_transform_name!$program_transform_name$ac_delim 22057bindir!$bindir$ac_delim 22058sbindir!$sbindir$ac_delim 22059libexecdir!$libexecdir$ac_delim 22060datarootdir!$datarootdir$ac_delim 22061datadir!$datadir$ac_delim 22062sysconfdir!$sysconfdir$ac_delim 22063sharedstatedir!$sharedstatedir$ac_delim 22064localstatedir!$localstatedir$ac_delim 22065includedir!$includedir$ac_delim 22066oldincludedir!$oldincludedir$ac_delim 22067docdir!$docdir$ac_delim 22068infodir!$infodir$ac_delim 22069htmldir!$htmldir$ac_delim 22070dvidir!$dvidir$ac_delim 22071pdfdir!$pdfdir$ac_delim 22072psdir!$psdir$ac_delim 22073libdir!$libdir$ac_delim 22074localedir!$localedir$ac_delim 22075mandir!$mandir$ac_delim 22076DEFS!$DEFS$ac_delim 22077ECHO_C!$ECHO_C$ac_delim 22078ECHO_N!$ECHO_N$ac_delim 22079ECHO_T!$ECHO_T$ac_delim 22080LIBS!$LIBS$ac_delim 22081build_alias!$build_alias$ac_delim 22082host_alias!$host_alias$ac_delim 22083target_alias!$target_alias$ac_delim 22084build!$build$ac_delim 22085build_cpu!$build_cpu$ac_delim 22086build_vendor!$build_vendor$ac_delim 22087build_os!$build_os$ac_delim 22088host!$host$ac_delim 22089host_cpu!$host_cpu$ac_delim 22090host_vendor!$host_vendor$ac_delim 22091host_os!$host_os$ac_delim 22092target!$target$ac_delim 22093target_cpu!$target_cpu$ac_delim 22094target_vendor!$target_vendor$ac_delim 22095target_os!$target_os$ac_delim 22096CC!$CC$ac_delim 22097CFLAGS!$CFLAGS$ac_delim 22098LDFLAGS!$LDFLAGS$ac_delim 22099CPPFLAGS!$CPPFLAGS$ac_delim 22100ac_ct_CC!$ac_ct_CC$ac_delim 22101EXEEXT!$EXEEXT$ac_delim 22102OBJEXT!$OBJEXT$ac_delim 22103INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 22104INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 22105INSTALL_DATA!$INSTALL_DATA$ac_delim 22106CYGPATH_W!$CYGPATH_W$ac_delim 22107PACKAGE!$PACKAGE$ac_delim 22108VERSION!$VERSION$ac_delim 22109ACLOCAL!$ACLOCAL$ac_delim 22110AUTOCONF!$AUTOCONF$ac_delim 22111AUTOMAKE!$AUTOMAKE$ac_delim 22112AUTOHEADER!$AUTOHEADER$ac_delim 22113MAKEINFO!$MAKEINFO$ac_delim 22114install_sh!$install_sh$ac_delim 22115STRIP!$STRIP$ac_delim 22116INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 22117mkdir_p!$mkdir_p$ac_delim 22118AWK!$AWK$ac_delim 22119SET_MAKE!$SET_MAKE$ac_delim 22120am__leading_dot!$am__leading_dot$ac_delim 22121AMTAR!$AMTAR$ac_delim 22122am__tar!$am__tar$ac_delim 22123am__untar!$am__untar$ac_delim 22124DEPDIR!$DEPDIR$ac_delim 22125am__include!$am__include$ac_delim 22126am__quote!$am__quote$ac_delim 22127AMDEP_TRUE!$AMDEP_TRUE$ac_delim 22128AMDEP_FALSE!$AMDEP_FALSE$ac_delim 22129AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 22130CCDEPMODE!$CCDEPMODE$ac_delim 22131am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 22132am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 22133AR!$AR$ac_delim 22134RANLIB!$RANLIB$ac_delim 22135SED!$SED$ac_delim 22136GREP!$GREP$ac_delim 22137EGREP!$EGREP$ac_delim 22138LN_S!$LN_S$ac_delim 22139ECHO!$ECHO$ac_delim 22140CPP!$CPP$ac_delim 22141CXX!$CXX$ac_delim 22142CXXFLAGS!$CXXFLAGS$ac_delim 22143ac_ct_CXX!$ac_ct_CXX$ac_delim 22144_ACEOF 22145 22146 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 22147 break 22148 elif $ac_last_try; then 22149 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22150echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22151 { (exit 1); exit 1; }; } 22152 else 22153 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22154 fi 22155done 22156 22157ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 22158if test -n "$ac_eof"; then 22159 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 22160 ac_eof=`expr $ac_eof + 1` 22161fi 22162 22163cat >>$CONFIG_STATUS <<_ACEOF 22164cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 22165/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22166_ACEOF 22167sed ' 22168s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 22169s/^/s,@/; s/!/@,|#_!!_#|/ 22170:n 22171t n 22172s/'"$ac_delim"'$/,g/; t 22173s/$/\\/; p 22174N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 22175' >>$CONFIG_STATUS <conf$$subs.sed 22176rm -f conf$$subs.sed 22177cat >>$CONFIG_STATUS <<_ACEOF 22178CEOF$ac_eof 22179_ACEOF 22180 22181 22182ac_delim='%!_!# ' 22183for ac_last_try in false false false false false :; do 22184 cat >conf$$subs.sed <<_ACEOF 22185CXXDEPMODE!$CXXDEPMODE$ac_delim 22186am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim 22187am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim 22188CXXCPP!$CXXCPP$ac_delim 22189F77!$F77$ac_delim 22190FFLAGS!$FFLAGS$ac_delim 22191ac_ct_F77!$ac_ct_F77$ac_delim 22192LIBTOOL!$LIBTOOL$ac_delim 22193WARN_CFLAGS!$WARN_CFLAGS$ac_delim 22194NO_WERROR!$NO_WERROR$ac_delim 22195MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim 22196MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim 22197MAINT!$MAINT$ac_delim 22198INSTALL_LIBBFD_TRUE!$INSTALL_LIBBFD_TRUE$ac_delim 22199INSTALL_LIBBFD_FALSE!$INSTALL_LIBBFD_FALSE$ac_delim 22200host_noncanonical!$host_noncanonical$ac_delim 22201target_noncanonical!$target_noncanonical$ac_delim 22202bfdlibdir!$bfdlibdir$ac_delim 22203bfdincludedir!$bfdincludedir$ac_delim 22204CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim 22205EXEEXT_FOR_BUILD!$EXEEXT_FOR_BUILD$ac_delim 22206HDEFINES!$HDEFINES$ac_delim 22207CGEN_MAINT_TRUE!$CGEN_MAINT_TRUE$ac_delim 22208CGEN_MAINT_FALSE!$CGEN_MAINT_FALSE$ac_delim 22209cgendir!$cgendir$ac_delim 22210WIN32LDFLAGS!$WIN32LDFLAGS$ac_delim 22211WIN32LIBADD!$WIN32LIBADD$ac_delim 22212archdefs!$archdefs$ac_delim 22213BFD_MACHINES!$BFD_MACHINES$ac_delim 22214LIBOBJS!$LIBOBJS$ac_delim 22215LTLIBOBJS!$LTLIBOBJS$ac_delim 22216_ACEOF 22217 22218 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 31; then 22219 break 22220 elif $ac_last_try; then 22221 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22222echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22223 { (exit 1); exit 1; }; } 22224 else 22225 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22226 fi 22227done 22228 22229ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 22230if test -n "$ac_eof"; then 22231 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 22232 ac_eof=`expr $ac_eof + 1` 22233fi 22234 22235cat >>$CONFIG_STATUS <<_ACEOF 22236cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 22237/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 22238_ACEOF 22239sed ' 22240s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 22241s/^/s,@/; s/!/@,|#_!!_#|/ 22242:n 22243t n 22244s/'"$ac_delim"'$/,g/; t 22245s/$/\\/; p 22246N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 22247' >>$CONFIG_STATUS <conf$$subs.sed 22248rm -f conf$$subs.sed 22249cat >>$CONFIG_STATUS <<_ACEOF 22250:end 22251s/|#_!!_#|//g 22252CEOF$ac_eof 22253_ACEOF 22254 22255 22256# VPATH may cause trouble with some makes, so we remove $(srcdir), 22257# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 22258# trailing colons and then remove the whole line if VPATH becomes empty 22259# (actually we leave an empty line to preserve line numbers). 22260if test "x$srcdir" = x.; then 22261 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 22262s/:*\$(srcdir):*/:/ 22263s/:*\${srcdir}:*/:/ 22264s/:*@srcdir@:*/:/ 22265s/^\([^=]*=[ ]*\):*/\1/ 22266s/:*$// 22267s/^[^=]*=[ ]*$// 22268}' 22269fi 22270 22271cat >>$CONFIG_STATUS <<\_ACEOF 22272fi # test -n "$CONFIG_FILES" 22273 22274 22275for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 22276do 22277 case $ac_tag in 22278 :[FHLC]) ac_mode=$ac_tag; continue;; 22279 esac 22280 case $ac_mode$ac_tag in 22281 :[FHL]*:*);; 22282 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 22283echo "$as_me: error: Invalid tag $ac_tag." >&2;} 22284 { (exit 1); exit 1; }; };; 22285 :[FH]-) ac_tag=-:-;; 22286 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 22287 esac 22288 ac_save_IFS=$IFS 22289 IFS=: 22290 set x $ac_tag 22291 IFS=$ac_save_IFS 22292 shift 22293 ac_file=$1 22294 shift 22295 22296 case $ac_mode in 22297 :L) ac_source=$1;; 22298 :[FH]) 22299 ac_file_inputs= 22300 for ac_f 22301 do 22302 case $ac_f in 22303 -) ac_f="$tmp/stdin";; 22304 *) # Look for the file first in the build tree, then in the source tree 22305 # (if the path is not absolute). The absolute path cannot be DOS-style, 22306 # because $ac_f cannot contain `:'. 22307 test -f "$ac_f" || 22308 case $ac_f in 22309 [\\/$]*) false;; 22310 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 22311 esac || 22312 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 22313echo "$as_me: error: cannot find input file: $ac_f" >&2;} 22314 { (exit 1); exit 1; }; };; 22315 esac 22316 ac_file_inputs="$ac_file_inputs $ac_f" 22317 done 22318 22319 # Let's still pretend it is `configure' which instantiates (i.e., don't 22320 # use $as_me), people would be surprised to read: 22321 # /* config.h. Generated by config.status. */ 22322 configure_input="Generated from "`IFS=: 22323 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 22324 if test x"$ac_file" != x-; then 22325 configure_input="$ac_file. $configure_input" 22326 { echo "$as_me:$LINENO: creating $ac_file" >&5 22327echo "$as_me: creating $ac_file" >&6;} 22328 fi 22329 22330 case $ac_tag in 22331 *:-:* | *:-) cat >"$tmp/stdin";; 22332 esac 22333 ;; 22334 esac 22335 22336 ac_dir=`$as_dirname -- "$ac_file" || 22337$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22338 X"$ac_file" : 'X\(//\)[^/]' \| \ 22339 X"$ac_file" : 'X\(//\)$' \| \ 22340 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 22341echo X"$ac_file" | 22342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22343 s//\1/ 22344 q 22345 } 22346 /^X\(\/\/\)[^/].*/{ 22347 s//\1/ 22348 q 22349 } 22350 /^X\(\/\/\)$/{ 22351 s//\1/ 22352 q 22353 } 22354 /^X\(\/\).*/{ 22355 s//\1/ 22356 q 22357 } 22358 s/.*/./; q'` 22359 { as_dir="$ac_dir" 22360 case $as_dir in #( 22361 -*) as_dir=./$as_dir;; 22362 esac 22363 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 22364 as_dirs= 22365 while :; do 22366 case $as_dir in #( 22367 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 22368 *) as_qdir=$as_dir;; 22369 esac 22370 as_dirs="'$as_qdir' $as_dirs" 22371 as_dir=`$as_dirname -- "$as_dir" || 22372$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22373 X"$as_dir" : 'X\(//\)[^/]' \| \ 22374 X"$as_dir" : 'X\(//\)$' \| \ 22375 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22376echo X"$as_dir" | 22377 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22378 s//\1/ 22379 q 22380 } 22381 /^X\(\/\/\)[^/].*/{ 22382 s//\1/ 22383 q 22384 } 22385 /^X\(\/\/\)$/{ 22386 s//\1/ 22387 q 22388 } 22389 /^X\(\/\).*/{ 22390 s//\1/ 22391 q 22392 } 22393 s/.*/./; q'` 22394 test -d "$as_dir" && break 22395 done 22396 test -z "$as_dirs" || eval "mkdir $as_dirs" 22397 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 22398echo "$as_me: error: cannot create directory $as_dir" >&2;} 22399 { (exit 1); exit 1; }; }; } 22400 ac_builddir=. 22401 22402case "$ac_dir" in 22403.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22404*) 22405 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 22406 # A ".." for each directory in $ac_dir_suffix. 22407 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 22408 case $ac_top_builddir_sub in 22409 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22410 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22411 esac ;; 22412esac 22413ac_abs_top_builddir=$ac_pwd 22414ac_abs_builddir=$ac_pwd$ac_dir_suffix 22415# for backward compatibility: 22416ac_top_builddir=$ac_top_build_prefix 22417 22418case $srcdir in 22419 .) # We are building in place. 22420 ac_srcdir=. 22421 ac_top_srcdir=$ac_top_builddir_sub 22422 ac_abs_top_srcdir=$ac_pwd ;; 22423 [\\/]* | ?:[\\/]* ) # Absolute name. 22424 ac_srcdir=$srcdir$ac_dir_suffix; 22425 ac_top_srcdir=$srcdir 22426 ac_abs_top_srcdir=$srcdir ;; 22427 *) # Relative name. 22428 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22429 ac_top_srcdir=$ac_top_build_prefix$srcdir 22430 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22431esac 22432ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22433 22434 22435 case $ac_mode in 22436 :F) 22437 # 22438 # CONFIG_FILE 22439 # 22440 22441 case $INSTALL in 22442 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22443 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22444 esac 22445_ACEOF 22446 22447cat >>$CONFIG_STATUS <<\_ACEOF 22448# If the template does not know about datarootdir, expand it. 22449# FIXME: This hack should be removed a few years after 2.60. 22450ac_datarootdir_hack=; ac_datarootdir_seen= 22451 22452case `sed -n '/datarootdir/ { 22453 p 22454 q 22455} 22456/@datadir@/p 22457/@docdir@/p 22458/@infodir@/p 22459/@localedir@/p 22460/@mandir@/p 22461' $ac_file_inputs` in 22462*datarootdir*) ac_datarootdir_seen=yes;; 22463*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22464 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22465echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22466_ACEOF 22467cat >>$CONFIG_STATUS <<_ACEOF 22468 ac_datarootdir_hack=' 22469 s&@datadir@&$datadir&g 22470 s&@docdir@&$docdir&g 22471 s&@infodir@&$infodir&g 22472 s&@localedir@&$localedir&g 22473 s&@mandir@&$mandir&g 22474 s&\\\${datarootdir}&$datarootdir&g' ;; 22475esac 22476_ACEOF 22477 22478# Neutralize VPATH when `$srcdir' = `.'. 22479# Shell code in configure.ac might set extrasub. 22480# FIXME: do we really want to maintain this feature? 22481cat >>$CONFIG_STATUS <<_ACEOF 22482 sed "$ac_vpsub 22483$extrasub 22484_ACEOF 22485cat >>$CONFIG_STATUS <<\_ACEOF 22486:t 22487/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22488s&@configure_input@&$configure_input&;t t 22489s&@top_builddir@&$ac_top_builddir_sub&;t t 22490s&@srcdir@&$ac_srcdir&;t t 22491s&@abs_srcdir@&$ac_abs_srcdir&;t t 22492s&@top_srcdir@&$ac_top_srcdir&;t t 22493s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22494s&@builddir@&$ac_builddir&;t t 22495s&@abs_builddir@&$ac_abs_builddir&;t t 22496s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22497s&@INSTALL@&$ac_INSTALL&;t t 22498$ac_datarootdir_hack 22499" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 22500 22501test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22502 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 22503 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 22504 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22505which seems to be undefined. Please make sure it is defined." >&5 22506echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22507which seems to be undefined. Please make sure it is defined." >&2;} 22508 22509 rm -f "$tmp/stdin" 22510 case $ac_file in 22511 -) cat "$tmp/out"; rm -f "$tmp/out";; 22512 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 22513 esac 22514 ;; 22515 :H) 22516 # 22517 # CONFIG_HEADER 22518 # 22519_ACEOF 22520 22521# Transform confdefs.h into a sed script `conftest.defines', that 22522# substitutes the proper values into config.h.in to produce config.h. 22523rm -f conftest.defines conftest.tail 22524# First, append a space to every undef/define line, to ease matching. 22525echo 's/$/ /' >conftest.defines 22526# Then, protect against being on the right side of a sed subst, or in 22527# an unquoted here document, in config.status. If some macros were 22528# called several times there might be several #defines for the same 22529# symbol, which is useless. But do not sort them, since the last 22530# AC_DEFINE must be honored. 22531ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 22532# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 22533# NAME is the cpp macro being defined, VALUE is the value it is being given. 22534# PARAMS is the parameter list in the macro definition--in most cases, it's 22535# just an empty string. 22536ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 22537ac_dB='\\)[ (].*,\\1define\\2' 22538ac_dC=' ' 22539ac_dD=' ,' 22540 22541uniq confdefs.h | 22542 sed -n ' 22543 t rset 22544 :rset 22545 s/^[ ]*#[ ]*define[ ][ ]*// 22546 t ok 22547 d 22548 :ok 22549 s/[\\&,]/\\&/g 22550 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 22551 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 22552 ' >>conftest.defines 22553 22554# Remove the space that was appended to ease matching. 22555# Then replace #undef with comments. This is necessary, for 22556# example, in the case of _POSIX_SOURCE, which is predefined and required 22557# on some systems where configure will not decide to define it. 22558# (The regexp can be short, since the line contains either #define or #undef.) 22559echo 's/ $// 22560s,^[ #]*u.*,/* & */,' >>conftest.defines 22561 22562# Break up conftest.defines: 22563ac_max_sed_lines=50 22564 22565# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 22566# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 22567# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 22568# et cetera. 22569ac_in='$ac_file_inputs' 22570ac_out='"$tmp/out1"' 22571ac_nxt='"$tmp/out2"' 22572 22573while : 22574do 22575 # Write a here document: 22576 cat >>$CONFIG_STATUS <<_ACEOF 22577 # First, check the format of the line: 22578 cat >"\$tmp/defines.sed" <<\\CEOF 22579/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 22580/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 22581b 22582:def 22583_ACEOF 22584 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 22585 echo 'CEOF 22586 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 22587 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 22588 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 22589 grep . conftest.tail >/dev/null || break 22590 rm -f conftest.defines 22591 mv conftest.tail conftest.defines 22592done 22593rm -f conftest.defines conftest.tail 22594 22595echo "ac_result=$ac_in" >>$CONFIG_STATUS 22596cat >>$CONFIG_STATUS <<\_ACEOF 22597 if test x"$ac_file" != x-; then 22598 echo "/* $configure_input */" >"$tmp/config.h" 22599 cat "$ac_result" >>"$tmp/config.h" 22600 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 22601 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 22602echo "$as_me: $ac_file is unchanged" >&6;} 22603 else 22604 rm -f $ac_file 22605 mv "$tmp/config.h" $ac_file 22606 fi 22607 else 22608 echo "/* $configure_input */" 22609 cat "$ac_result" 22610 fi 22611 rm -f "$tmp/out12" 22612# Compute $ac_file's index in $config_headers. 22613_am_stamp_count=1 22614for _am_header in $config_headers :; do 22615 case $_am_header in 22616 $ac_file | $ac_file:* ) 22617 break ;; 22618 * ) 22619 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22620 esac 22621done 22622echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || 22623$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22624 X$ac_file : 'X\(//\)[^/]' \| \ 22625 X$ac_file : 'X\(//\)$' \| \ 22626 X$ac_file : 'X\(/\)' \| . 2>/dev/null || 22627echo X$ac_file | 22628 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22629 s//\1/ 22630 q 22631 } 22632 /^X\(\/\/\)[^/].*/{ 22633 s//\1/ 22634 q 22635 } 22636 /^X\(\/\/\)$/{ 22637 s//\1/ 22638 q 22639 } 22640 /^X\(\/\).*/{ 22641 s//\1/ 22642 q 22643 } 22644 s/.*/./; q'`/stamp-h$_am_stamp_count 22645 ;; 22646 22647 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 22648echo "$as_me: executing $ac_file commands" >&6;} 22649 ;; 22650 esac 22651 22652 22653 case $ac_file$ac_mode in 22654 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 22655 # Strip MF so we end up with the name of the file. 22656 mf=`echo "$mf" | sed -e 's/:.*$//'` 22657 # Check whether this is an Automake generated Makefile or not. 22658 # We used to match only the files named `Makefile.in', but 22659 # some people rename them; so instead we look at the file content. 22660 # Grep'ing the first line is not enough: some people post-process 22661 # each Makefile.in and add a new line on top of each file to say so. 22662 # So let's grep whole file. 22663 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 22664 dirpart=`$as_dirname -- "$mf" || 22665$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22666 X"$mf" : 'X\(//\)[^/]' \| \ 22667 X"$mf" : 'X\(//\)$' \| \ 22668 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 22669echo X"$mf" | 22670 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22671 s//\1/ 22672 q 22673 } 22674 /^X\(\/\/\)[^/].*/{ 22675 s//\1/ 22676 q 22677 } 22678 /^X\(\/\/\)$/{ 22679 s//\1/ 22680 q 22681 } 22682 /^X\(\/\).*/{ 22683 s//\1/ 22684 q 22685 } 22686 s/.*/./; q'` 22687 else 22688 continue 22689 fi 22690 # Extract the definition of DEPDIR, am__include, and am__quote 22691 # from the Makefile without running `make'. 22692 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 22693 test -z "$DEPDIR" && continue 22694 am__include=`sed -n 's/^am__include = //p' < "$mf"` 22695 test -z "am__include" && continue 22696 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 22697 # When using ansi2knr, U may be empty or an underscore; expand it 22698 U=`sed -n 's/^U = //p' < "$mf"` 22699 # Find all dependency output files, they are included files with 22700 # $(DEPDIR) in their names. We invoke sed twice because it is the 22701 # simplest approach to changing $(DEPDIR) to its actual value in the 22702 # expansion. 22703 for file in `sed -n " 22704 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 22705 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 22706 # Make sure the directory exists. 22707 test -f "$dirpart/$file" && continue 22708 fdir=`$as_dirname -- "$file" || 22709$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22710 X"$file" : 'X\(//\)[^/]' \| \ 22711 X"$file" : 'X\(//\)$' \| \ 22712 X"$file" : 'X\(/\)' \| . 2>/dev/null || 22713echo X"$file" | 22714 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22715 s//\1/ 22716 q 22717 } 22718 /^X\(\/\/\)[^/].*/{ 22719 s//\1/ 22720 q 22721 } 22722 /^X\(\/\/\)$/{ 22723 s//\1/ 22724 q 22725 } 22726 /^X\(\/\).*/{ 22727 s//\1/ 22728 q 22729 } 22730 s/.*/./; q'` 22731 { as_dir=$dirpart/$fdir 22732 case $as_dir in #( 22733 -*) as_dir=./$as_dir;; 22734 esac 22735 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 22736 as_dirs= 22737 while :; do 22738 case $as_dir in #( 22739 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 22740 *) as_qdir=$as_dir;; 22741 esac 22742 as_dirs="'$as_qdir' $as_dirs" 22743 as_dir=`$as_dirname -- "$as_dir" || 22744$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22745 X"$as_dir" : 'X\(//\)[^/]' \| \ 22746 X"$as_dir" : 'X\(//\)$' \| \ 22747 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22748echo X"$as_dir" | 22749 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22750 s//\1/ 22751 q 22752 } 22753 /^X\(\/\/\)[^/].*/{ 22754 s//\1/ 22755 q 22756 } 22757 /^X\(\/\/\)$/{ 22758 s//\1/ 22759 q 22760 } 22761 /^X\(\/\).*/{ 22762 s//\1/ 22763 q 22764 } 22765 s/.*/./; q'` 22766 test -d "$as_dir" && break 22767 done 22768 test -z "$as_dirs" || eval "mkdir $as_dirs" 22769 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 22770echo "$as_me: error: cannot create directory $as_dir" >&2;} 22771 { (exit 1); exit 1; }; }; } 22772 # echo "creating $dirpart/$file" 22773 echo '# dummy' > "$dirpart/$file" 22774 done 22775done 22776 ;; 22777 22778 esac 22779done # for ac_tag 22780 22781 22782{ (exit 0); exit 0; } 22783_ACEOF 22784chmod +x $CONFIG_STATUS 22785ac_clean_files=$ac_clean_files_save 22786 22787 22788# configure is writing to config.log, and then calls config.status. 22789# config.status does its own redirection, appending to config.log. 22790# Unfortunately, on DOS this fails, as config.log is still kept open 22791# by configure, so config.status won't be able to write to it; its 22792# output is simply discarded. So we exec the FD to /dev/null, 22793# effectively closing config.log, so it can be properly (re)opened and 22794# appended to by config.status. When coming back to configure, we 22795# need to make the FD available again. 22796if test "$no_create" != yes; then 22797 ac_cs_success=: 22798 ac_config_status_args= 22799 test "$silent" = yes && 22800 ac_config_status_args="$ac_config_status_args --quiet" 22801 exec 5>/dev/null 22802 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22803 exec 5>>config.log 22804 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22805 # would make configure fail if this is the last instruction. 22806 $ac_cs_success || { (exit 1); exit 1; } 22807fi 22808 22809