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="ldmain.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 850SED 851GREP 852EGREP 853LN_S 854ECHO 855AR 856RANLIB 857CPP 858CXX 859CXXFLAGS 860ac_ct_CXX 861CXXDEPMODE 862am__fastdepCXX_TRUE 863am__fastdepCXX_FALSE 864CXXCPP 865F77 866FFLAGS 867ac_ct_F77 868LIBTOOL 869use_sysroot 870TARGET_SYSTEM_ROOT 871TARGET_SYSTEM_ROOT_DEFINE 872WARN_CFLAGS 873NO_WERROR 874YACC 875YFLAGS 876LEX 877LEXLIB 878LEX_OUTPUT_ROOT 879MAINTAINER_MODE_TRUE 880MAINTAINER_MODE_FALSE 881MAINT 882HDEFINES 883HOSTING_CRT0 884HOSTING_LIBS 885NATIVE_LIB_DIRS 886STRINGIFY 887EMUL 888EMULATION_OFILES 889EMUL_EXTRA_OFILES 890LIB_PATH 891EMULATION_LIBPATH 892TESTBFDLIB 893LIBOBJS 894LTLIBOBJS' 895ac_subst_files='TDIRS' 896 ac_precious_vars='build_alias 897host_alias 898target_alias 899CC 900CFLAGS 901LDFLAGS 902CPPFLAGS 903CPP 904CXX 905CXXFLAGS 906CCC 907CXXCPP 908F77 909FFLAGS 910YACC 911YFLAGS' 912 913 914# Initialize some variables set by options. 915ac_init_help= 916ac_init_version=false 917# The variables have the same names as the options, with 918# dashes changed to underlines. 919cache_file=/dev/null 920exec_prefix=NONE 921no_create= 922no_recursion= 923prefix=NONE 924program_prefix=NONE 925program_suffix=NONE 926program_transform_name=s,x,x, 927silent= 928site= 929srcdir= 930verbose= 931x_includes=NONE 932x_libraries=NONE 933 934# Installation directory options. 935# These are left unexpanded so users can "make install exec_prefix=/foo" 936# and all the variables that are supposed to be based on exec_prefix 937# by default will actually change. 938# Use braces instead of parens because sh, perl, etc. also accept them. 939# (The list follows the same order as the GNU Coding Standards.) 940bindir='${exec_prefix}/bin' 941sbindir='${exec_prefix}/sbin' 942libexecdir='${exec_prefix}/libexec' 943datarootdir='${prefix}/share' 944datadir='${datarootdir}' 945sysconfdir='${prefix}/etc' 946sharedstatedir='${prefix}/com' 947localstatedir='${prefix}/var' 948includedir='${prefix}/include' 949oldincludedir='/usr/include' 950docdir='${datarootdir}/doc/${PACKAGE}' 951infodir='${datarootdir}/info' 952htmldir='${docdir}' 953dvidir='${docdir}' 954pdfdir='${docdir}' 955psdir='${docdir}' 956libdir='${exec_prefix}/lib' 957localedir='${datarootdir}/locale' 958mandir='${datarootdir}/man' 959 960ac_prev= 961ac_dashdash= 962for ac_option 963do 964 # If the previous option needs an argument, assign it. 965 if test -n "$ac_prev"; then 966 eval $ac_prev=\$ac_option 967 ac_prev= 968 continue 969 fi 970 971 case $ac_option in 972 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 973 *) ac_optarg=yes ;; 974 esac 975 976 # Accept the important Cygnus configure options, so we can diagnose typos. 977 978 case $ac_dashdash$ac_option in 979 --) 980 ac_dashdash=yes ;; 981 982 -bindir | --bindir | --bindi | --bind | --bin | --bi) 983 ac_prev=bindir ;; 984 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 985 bindir=$ac_optarg ;; 986 987 -build | --build | --buil | --bui | --bu) 988 ac_prev=build_alias ;; 989 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 990 build_alias=$ac_optarg ;; 991 992 -cache-file | --cache-file | --cache-fil | --cache-fi \ 993 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 994 ac_prev=cache_file ;; 995 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 996 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 997 cache_file=$ac_optarg ;; 998 999 --config-cache | -C) 1000 cache_file=config.cache ;; 1001 1002 -datadir | --datadir | --datadi | --datad) 1003 ac_prev=datadir ;; 1004 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1005 datadir=$ac_optarg ;; 1006 1007 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1008 | --dataroo | --dataro | --datar) 1009 ac_prev=datarootdir ;; 1010 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1011 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1012 datarootdir=$ac_optarg ;; 1013 1014 -disable-* | --disable-*) 1015 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1016 # Reject names that are not valid shell variable names. 1017 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 1018 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1019 { (exit 1); exit 1; }; } 1020 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 1021 eval enable_$ac_feature=no ;; 1022 1023 -docdir | --docdir | --docdi | --doc | --do) 1024 ac_prev=docdir ;; 1025 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1026 docdir=$ac_optarg ;; 1027 1028 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1029 ac_prev=dvidir ;; 1030 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1031 dvidir=$ac_optarg ;; 1032 1033 -enable-* | --enable-*) 1034 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1035 # Reject names that are not valid shell variable names. 1036 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 1037 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1038 { (exit 1); exit 1; }; } 1039 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 1040 eval enable_$ac_feature=\$ac_optarg ;; 1041 1042 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1043 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1044 | --exec | --exe | --ex) 1045 ac_prev=exec_prefix ;; 1046 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1047 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1048 | --exec=* | --exe=* | --ex=*) 1049 exec_prefix=$ac_optarg ;; 1050 1051 -gas | --gas | --ga | --g) 1052 # Obsolete; use --with-gas. 1053 with_gas=yes ;; 1054 1055 -help | --help | --hel | --he | -h) 1056 ac_init_help=long ;; 1057 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1058 ac_init_help=recursive ;; 1059 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1060 ac_init_help=short ;; 1061 1062 -host | --host | --hos | --ho) 1063 ac_prev=host_alias ;; 1064 -host=* | --host=* | --hos=* | --ho=*) 1065 host_alias=$ac_optarg ;; 1066 1067 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1068 ac_prev=htmldir ;; 1069 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1070 | --ht=*) 1071 htmldir=$ac_optarg ;; 1072 1073 -includedir | --includedir | --includedi | --included | --include \ 1074 | --includ | --inclu | --incl | --inc) 1075 ac_prev=includedir ;; 1076 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1077 | --includ=* | --inclu=* | --incl=* | --inc=*) 1078 includedir=$ac_optarg ;; 1079 1080 -infodir | --infodir | --infodi | --infod | --info | --inf) 1081 ac_prev=infodir ;; 1082 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1083 infodir=$ac_optarg ;; 1084 1085 -libdir | --libdir | --libdi | --libd) 1086 ac_prev=libdir ;; 1087 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1088 libdir=$ac_optarg ;; 1089 1090 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1091 | --libexe | --libex | --libe) 1092 ac_prev=libexecdir ;; 1093 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1094 | --libexe=* | --libex=* | --libe=*) 1095 libexecdir=$ac_optarg ;; 1096 1097 -localedir | --localedir | --localedi | --localed | --locale) 1098 ac_prev=localedir ;; 1099 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1100 localedir=$ac_optarg ;; 1101 1102 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1103 | --localstate | --localstat | --localsta | --localst | --locals) 1104 ac_prev=localstatedir ;; 1105 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1106 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1107 localstatedir=$ac_optarg ;; 1108 1109 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1110 ac_prev=mandir ;; 1111 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1112 mandir=$ac_optarg ;; 1113 1114 -nfp | --nfp | --nf) 1115 # Obsolete; use --without-fp. 1116 with_fp=no ;; 1117 1118 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1119 | --no-cr | --no-c | -n) 1120 no_create=yes ;; 1121 1122 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1123 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1124 no_recursion=yes ;; 1125 1126 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1127 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1128 | --oldin | --oldi | --old | --ol | --o) 1129 ac_prev=oldincludedir ;; 1130 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1131 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1132 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1133 oldincludedir=$ac_optarg ;; 1134 1135 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1136 ac_prev=prefix ;; 1137 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1138 prefix=$ac_optarg ;; 1139 1140 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1141 | --program-pre | --program-pr | --program-p) 1142 ac_prev=program_prefix ;; 1143 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1144 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1145 program_prefix=$ac_optarg ;; 1146 1147 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1148 | --program-suf | --program-su | --program-s) 1149 ac_prev=program_suffix ;; 1150 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1151 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1152 program_suffix=$ac_optarg ;; 1153 1154 -program-transform-name | --program-transform-name \ 1155 | --program-transform-nam | --program-transform-na \ 1156 | --program-transform-n | --program-transform- \ 1157 | --program-transform | --program-transfor \ 1158 | --program-transfo | --program-transf \ 1159 | --program-trans | --program-tran \ 1160 | --progr-tra | --program-tr | --program-t) 1161 ac_prev=program_transform_name ;; 1162 -program-transform-name=* | --program-transform-name=* \ 1163 | --program-transform-nam=* | --program-transform-na=* \ 1164 | --program-transform-n=* | --program-transform-=* \ 1165 | --program-transform=* | --program-transfor=* \ 1166 | --program-transfo=* | --program-transf=* \ 1167 | --program-trans=* | --program-tran=* \ 1168 | --progr-tra=* | --program-tr=* | --program-t=*) 1169 program_transform_name=$ac_optarg ;; 1170 1171 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1172 ac_prev=pdfdir ;; 1173 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1174 pdfdir=$ac_optarg ;; 1175 1176 -psdir | --psdir | --psdi | --psd | --ps) 1177 ac_prev=psdir ;; 1178 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1179 psdir=$ac_optarg ;; 1180 1181 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1182 | -silent | --silent | --silen | --sile | --sil) 1183 silent=yes ;; 1184 1185 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1186 ac_prev=sbindir ;; 1187 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1188 | --sbi=* | --sb=*) 1189 sbindir=$ac_optarg ;; 1190 1191 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1192 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1193 | --sharedst | --shareds | --shared | --share | --shar \ 1194 | --sha | --sh) 1195 ac_prev=sharedstatedir ;; 1196 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1197 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1198 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1199 | --sha=* | --sh=*) 1200 sharedstatedir=$ac_optarg ;; 1201 1202 -site | --site | --sit) 1203 ac_prev=site ;; 1204 -site=* | --site=* | --sit=*) 1205 site=$ac_optarg ;; 1206 1207 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1208 ac_prev=srcdir ;; 1209 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1210 srcdir=$ac_optarg ;; 1211 1212 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1213 | --syscon | --sysco | --sysc | --sys | --sy) 1214 ac_prev=sysconfdir ;; 1215 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1216 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1217 sysconfdir=$ac_optarg ;; 1218 1219 -target | --target | --targe | --targ | --tar | --ta | --t) 1220 ac_prev=target_alias ;; 1221 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1222 target_alias=$ac_optarg ;; 1223 1224 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1225 verbose=yes ;; 1226 1227 -version | --version | --versio | --versi | --vers | -V) 1228 ac_init_version=: ;; 1229 1230 -with-* | --with-*) 1231 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1232 # Reject names that are not valid shell variable names. 1233 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1234 { echo "$as_me: error: invalid package name: $ac_package" >&2 1235 { (exit 1); exit 1; }; } 1236 ac_package=`echo $ac_package| sed 's/-/_/g'` 1237 eval with_$ac_package=\$ac_optarg ;; 1238 1239 -without-* | --without-*) 1240 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1241 # Reject names that are not valid shell variable names. 1242 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1243 { echo "$as_me: error: invalid package name: $ac_package" >&2 1244 { (exit 1); exit 1; }; } 1245 ac_package=`echo $ac_package | sed 's/-/_/g'` 1246 eval with_$ac_package=no ;; 1247 1248 --x) 1249 # Obsolete; use --with-x. 1250 with_x=yes ;; 1251 1252 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1253 | --x-incl | --x-inc | --x-in | --x-i) 1254 ac_prev=x_includes ;; 1255 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1256 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1257 x_includes=$ac_optarg ;; 1258 1259 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1260 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1261 ac_prev=x_libraries ;; 1262 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1263 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1264 x_libraries=$ac_optarg ;; 1265 1266 -*) { echo "$as_me: error: unrecognized option: $ac_option 1267Try \`$0 --help' for more information." >&2 1268 { (exit 1); exit 1; }; } 1269 ;; 1270 1271 *=*) 1272 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1273 # Reject names that are not valid shell variable names. 1274 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1275 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1276 { (exit 1); exit 1; }; } 1277 eval $ac_envvar=\$ac_optarg 1278 export $ac_envvar ;; 1279 1280 *) 1281 # FIXME: should be removed in autoconf 3.0. 1282 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1283 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1284 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1285 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1286 ;; 1287 1288 esac 1289done 1290 1291if test -n "$ac_prev"; then 1292 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1293 { echo "$as_me: error: missing argument to $ac_option" >&2 1294 { (exit 1); exit 1; }; } 1295fi 1296 1297# Be sure to have absolute directory names. 1298for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1299 datadir sysconfdir sharedstatedir localstatedir includedir \ 1300 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1301 libdir localedir mandir 1302do 1303 eval ac_val=\$$ac_var 1304 case $ac_val in 1305 [\\/$]* | ?:[\\/]* ) continue;; 1306 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1307 esac 1308 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1309 { (exit 1); exit 1; }; } 1310done 1311 1312# There might be people who depend on the old broken behavior: `$host' 1313# used to hold the argument of --host etc. 1314# FIXME: To remove some day. 1315build=$build_alias 1316host=$host_alias 1317target=$target_alias 1318 1319# FIXME: To remove some day. 1320if test "x$host_alias" != x; then 1321 if test "x$build_alias" = x; then 1322 cross_compiling=maybe 1323 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1324 If a cross compiler is detected then cross compile mode will be used." >&2 1325 elif test "x$build_alias" != "x$host_alias"; then 1326 cross_compiling=yes 1327 fi 1328fi 1329 1330ac_tool_prefix= 1331test -n "$host_alias" && ac_tool_prefix=$host_alias- 1332 1333test "$silent" = yes && exec 6>/dev/null 1334 1335 1336ac_pwd=`pwd` && test -n "$ac_pwd" && 1337ac_ls_di=`ls -di .` && 1338ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1339 { echo "$as_me: error: Working directory cannot be determined" >&2 1340 { (exit 1); exit 1; }; } 1341test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1342 { echo "$as_me: error: pwd does not report name of working directory" >&2 1343 { (exit 1); exit 1; }; } 1344 1345 1346# Find the source files, if location was not specified. 1347if test -z "$srcdir"; then 1348 ac_srcdir_defaulted=yes 1349 # Try the directory containing this script, then the parent directory. 1350 ac_confdir=`$as_dirname -- "$0" || 1351$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1352 X"$0" : 'X\(//\)[^/]' \| \ 1353 X"$0" : 'X\(//\)$' \| \ 1354 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1355echo X"$0" | 1356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1357 s//\1/ 1358 q 1359 } 1360 /^X\(\/\/\)[^/].*/{ 1361 s//\1/ 1362 q 1363 } 1364 /^X\(\/\/\)$/{ 1365 s//\1/ 1366 q 1367 } 1368 /^X\(\/\).*/{ 1369 s//\1/ 1370 q 1371 } 1372 s/.*/./; q'` 1373 srcdir=$ac_confdir 1374 if test ! -r "$srcdir/$ac_unique_file"; then 1375 srcdir=.. 1376 fi 1377else 1378 ac_srcdir_defaulted=no 1379fi 1380if test ! -r "$srcdir/$ac_unique_file"; then 1381 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1382 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1383 { (exit 1); exit 1; }; } 1384fi 1385ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1386ac_abs_confdir=`( 1387 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1388 { (exit 1); exit 1; }; } 1389 pwd)` 1390# When building in place, set srcdir=. 1391if test "$ac_abs_confdir" = "$ac_pwd"; then 1392 srcdir=. 1393fi 1394# Remove unnecessary trailing slashes from srcdir. 1395# Double slashes in file names in object file debugging info 1396# mess up M-x gdb in Emacs. 1397case $srcdir in 1398*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1399esac 1400for ac_var in $ac_precious_vars; do 1401 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1402 eval ac_env_${ac_var}_value=\$${ac_var} 1403 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1404 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1405done 1406 1407# 1408# Report the --help message. 1409# 1410if test "$ac_init_help" = "long"; then 1411 # Omit some internal or obsolete options to make the list less imposing. 1412 # This message is too long to be a string in the A/UX 3.1 sh. 1413 cat <<_ACEOF 1414\`configure' configures this package to adapt to many kinds of systems. 1415 1416Usage: $0 [OPTION]... [VAR=VALUE]... 1417 1418To assign environment variables (e.g., CC, CFLAGS...), specify them as 1419VAR=VALUE. See below for descriptions of some of the useful variables. 1420 1421Defaults for the options are specified in brackets. 1422 1423Configuration: 1424 -h, --help display this help and exit 1425 --help=short display options specific to this package 1426 --help=recursive display the short help of all the included packages 1427 -V, --version display version information and exit 1428 -q, --quiet, --silent do not print \`checking...' messages 1429 --cache-file=FILE cache test results in FILE [disabled] 1430 -C, --config-cache alias for \`--cache-file=config.cache' 1431 -n, --no-create do not create output files 1432 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1433 1434Installation directories: 1435 --prefix=PREFIX install architecture-independent files in PREFIX 1436 [$ac_default_prefix] 1437 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1438 [PREFIX] 1439 1440By default, \`make install' will install all the files in 1441\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1442an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1443for instance \`--prefix=\$HOME'. 1444 1445For better control, use the options below. 1446 1447Fine tuning of the installation directories: 1448 --bindir=DIR user executables [EPREFIX/bin] 1449 --sbindir=DIR system admin executables [EPREFIX/sbin] 1450 --libexecdir=DIR program executables [EPREFIX/libexec] 1451 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1452 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1453 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1454 --libdir=DIR object code libraries [EPREFIX/lib] 1455 --includedir=DIR C header files [PREFIX/include] 1456 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1457 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1458 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1459 --infodir=DIR info documentation [DATAROOTDIR/info] 1460 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1461 --mandir=DIR man documentation [DATAROOTDIR/man] 1462 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1463 --htmldir=DIR html documentation [DOCDIR] 1464 --dvidir=DIR dvi documentation [DOCDIR] 1465 --pdfdir=DIR pdf documentation [DOCDIR] 1466 --psdir=DIR ps documentation [DOCDIR] 1467_ACEOF 1468 1469 cat <<\_ACEOF 1470 1471Program names: 1472 --program-prefix=PREFIX prepend PREFIX to installed program names 1473 --program-suffix=SUFFIX append SUFFIX to installed program names 1474 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1475 1476System types: 1477 --build=BUILD configure for building on BUILD [guessed] 1478 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1479 --target=TARGET configure for building compilers for TARGET [HOST] 1480_ACEOF 1481fi 1482 1483if test -n "$ac_init_help"; then 1484 1485 cat <<\_ACEOF 1486 1487Optional Features: 1488 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1489 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1490 --disable-dependency-tracking speeds up one-time build 1491 --enable-dependency-tracking do not reject slow dependency extractors 1492 --enable-shared[=PKGS] build shared libraries [default=yes] 1493 --enable-static[=PKGS] build static libraries [default=yes] 1494 --enable-fast-install[=PKGS] 1495 optimize for fast installation [default=yes] 1496 --disable-libtool-lock avoid locking (might break parallel builds) 1497 --enable-targets alternative target configurations 1498 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes) 1499 --enable-werror treat compile warnings as errors 1500 --enable-build-warnings Enable build-time compiler warnings 1501 --enable-maintainer-mode enable make rules and dependencies not useful 1502 (and sometimes confusing) to the casual installer 1503 1504Optional Packages: 1505 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1506 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1507 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1508 --with-pic try to use only PIC/non-PIC objects [default=use 1509 both] 1510 --with-tags[=TAGS] include additional configurations [automatic] 1511 --with-lib-path=dir1:dir2... set default LIB_PATH 1512 --with-sysroot=DIR Search for usr/lib et al within DIR. 1513 1514Some influential environment variables: 1515 CC C compiler command 1516 CFLAGS C compiler flags 1517 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1518 nonstandard directory <lib dir> 1519 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1520 you have headers in a nonstandard directory <include dir> 1521 CPP C preprocessor 1522 CXX C++ compiler command 1523 CXXFLAGS C++ compiler flags 1524 CXXCPP C++ preprocessor 1525 F77 Fortran 77 compiler command 1526 FFLAGS Fortran 77 compiler flags 1527 YACC The `Yet Another C Compiler' implementation to use. Defaults to 1528 the first program found out of: `bison -y', `byacc', `yacc'. 1529 YFLAGS The list of arguments that will be passed by default to $YACC. 1530 This script will default YFLAGS to the empty string to avoid a 1531 default value of `-d' given by some make applications. 1532 1533Use these variables to override the choices made by `configure' or to help 1534it to find libraries and programs with nonstandard names/locations. 1535 1536_ACEOF 1537ac_status=$? 1538fi 1539 1540if test "$ac_init_help" = "recursive"; then 1541 # If there are subdirs, report their specific --help. 1542 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1543 test -d "$ac_dir" || continue 1544 ac_builddir=. 1545 1546case "$ac_dir" in 1547.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1548*) 1549 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1550 # A ".." for each directory in $ac_dir_suffix. 1551 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1552 case $ac_top_builddir_sub in 1553 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1554 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1555 esac ;; 1556esac 1557ac_abs_top_builddir=$ac_pwd 1558ac_abs_builddir=$ac_pwd$ac_dir_suffix 1559# for backward compatibility: 1560ac_top_builddir=$ac_top_build_prefix 1561 1562case $srcdir in 1563 .) # We are building in place. 1564 ac_srcdir=. 1565 ac_top_srcdir=$ac_top_builddir_sub 1566 ac_abs_top_srcdir=$ac_pwd ;; 1567 [\\/]* | ?:[\\/]* ) # Absolute name. 1568 ac_srcdir=$srcdir$ac_dir_suffix; 1569 ac_top_srcdir=$srcdir 1570 ac_abs_top_srcdir=$srcdir ;; 1571 *) # Relative name. 1572 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1573 ac_top_srcdir=$ac_top_build_prefix$srcdir 1574 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1575esac 1576ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1577 1578 cd "$ac_dir" || { ac_status=$?; continue; } 1579 # Check for guested configure. 1580 if test -f "$ac_srcdir/configure.gnu"; then 1581 echo && 1582 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1583 elif test -f "$ac_srcdir/configure"; then 1584 echo && 1585 $SHELL "$ac_srcdir/configure" --help=recursive 1586 else 1587 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1588 fi || ac_status=$? 1589 cd "$ac_pwd" || { ac_status=$?; break; } 1590 done 1591fi 1592 1593test -n "$ac_init_help" && exit $ac_status 1594if $ac_init_version; then 1595 cat <<\_ACEOF 1596configure 1597generated by GNU Autoconf 2.60-MirPorts-2 1598 1599Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 16002002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1601This configure script is free software; the Free Software Foundation 1602gives unlimited permission to copy, distribute and modify it. 1603_ACEOF 1604 exit 1605fi 1606cat >config.log <<_ACEOF 1607This file contains any messages produced by compilers while 1608running configure, to aid debugging if configure makes a mistake. 1609 1610It was created by $as_me, which was 1611generated by GNU Autoconf 2.60-MirPorts-2. Invocation command line was 1612 1613 $ $0 $@ 1614 1615_ACEOF 1616exec 5>>config.log 1617{ 1618cat <<_ASUNAME 1619## --------- ## 1620## Platform. ## 1621## --------- ## 1622 1623hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1624uname -m = `(uname -m) 2>/dev/null || echo unknown` 1625uname -r = `(uname -r) 2>/dev/null || echo unknown` 1626uname -s = `(uname -s) 2>/dev/null || echo unknown` 1627uname -v = `(uname -v) 2>/dev/null || echo unknown` 1628 1629/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1630/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1631 1632/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1633/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1634/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1635/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1636/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1637/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1638/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1639 1640_ASUNAME 1641 1642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1643for as_dir in $PATH 1644do 1645 IFS=$as_save_IFS 1646 test -z "$as_dir" && as_dir=. 1647 echo "PATH: $as_dir" 1648done 1649IFS=$as_save_IFS 1650 1651} >&5 1652 1653cat >&5 <<_ACEOF 1654 1655 1656## ----------- ## 1657## Core tests. ## 1658## ----------- ## 1659 1660_ACEOF 1661 1662 1663# Keep a trace of the command line. 1664# Strip out --no-create and --no-recursion so they do not pile up. 1665# Strip out --silent because we don't want to record it for future runs. 1666# Also quote any args containing shell meta-characters. 1667# Make two passes to allow for proper duplicate-argument suppression. 1668ac_configure_args= 1669ac_configure_args0= 1670ac_configure_args1= 1671ac_must_keep_next=false 1672for ac_pass in 1 2 1673do 1674 for ac_arg 1675 do 1676 case $ac_arg in 1677 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1678 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1679 | -silent | --silent | --silen | --sile | --sil) 1680 continue ;; 1681 *\'*) 1682 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1683 esac 1684 case $ac_pass in 1685 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1686 2) 1687 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1688 if test $ac_must_keep_next = true; then 1689 ac_must_keep_next=false # Got value, back to normal. 1690 else 1691 case $ac_arg in 1692 *=* | --config-cache | -C | -disable-* | --disable-* \ 1693 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1694 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1695 | -with-* | --with-* | -without-* | --without-* | --x) 1696 case "$ac_configure_args0 " in 1697 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1698 esac 1699 ;; 1700 -* ) ac_must_keep_next=true ;; 1701 esac 1702 fi 1703 ac_configure_args="$ac_configure_args '$ac_arg'" 1704 ;; 1705 esac 1706 done 1707done 1708$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1709$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1710 1711# When interrupted or exit'd, cleanup temporary files, and complete 1712# config.log. We remove comments because anyway the quotes in there 1713# would cause problems or look ugly. 1714# WARNING: Use '\'' to represent an apostrophe within the trap. 1715# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1716trap 'exit_status=$? 1717 # Save into config.log some information that might help in debugging. 1718 { 1719 echo 1720 1721 cat <<\_ASBOX 1722## ---------------- ## 1723## Cache variables. ## 1724## ---------------- ## 1725_ASBOX 1726 echo 1727 # The following way of writing the cache mishandles newlines in values, 1728( 1729 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1730 eval ac_val=\$$ac_var 1731 case $ac_val in #( 1732 *${as_nl}*) 1733 case $ac_var in #( 1734 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1735echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1736 esac 1737 case $ac_var in #( 1738 _ | IFS | as_nl) ;; #( 1739 *) $as_unset $ac_var ;; 1740 esac ;; 1741 esac 1742 done 1743 (set) 2>&1 | 1744 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1745 *${as_nl}ac_space=\ *) 1746 sed -n \ 1747 "s/'\''/'\''\\\\'\'''\''/g; 1748 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1749 ;; #( 1750 *) 1751 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1752 ;; 1753 esac | 1754 sort 1755) 1756 echo 1757 1758 cat <<\_ASBOX 1759## ----------------- ## 1760## Output variables. ## 1761## ----------------- ## 1762_ASBOX 1763 echo 1764 for ac_var in $ac_subst_vars 1765 do 1766 eval ac_val=\$$ac_var 1767 case $ac_val in 1768 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1769 esac 1770 echo "$ac_var='\''$ac_val'\''" 1771 done | sort 1772 echo 1773 1774 if test -n "$ac_subst_files"; then 1775 cat <<\_ASBOX 1776## ------------------- ## 1777## File substitutions. ## 1778## ------------------- ## 1779_ASBOX 1780 echo 1781 for ac_var in $ac_subst_files 1782 do 1783 eval ac_val=\$$ac_var 1784 case $ac_val in 1785 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1786 esac 1787 echo "$ac_var='\''$ac_val'\''" 1788 done | sort 1789 echo 1790 fi 1791 1792 if test -s confdefs.h; then 1793 cat <<\_ASBOX 1794## ----------- ## 1795## confdefs.h. ## 1796## ----------- ## 1797_ASBOX 1798 echo 1799 cat confdefs.h 1800 echo 1801 fi 1802 test "$ac_signal" != 0 && 1803 echo "$as_me: caught signal $ac_signal" 1804 echo "$as_me: exit $exit_status" 1805 } >&5 1806 rm -f core *.core core.conftest.* && 1807 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1808 exit $exit_status 1809' 0 1810for ac_signal in 1 2 13 15; do 1811 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1812done 1813ac_signal=0 1814 1815# confdefs.h avoids OS command line length limits that DEFS can exceed. 1816rm -f -r conftest* confdefs.h 1817 1818# Predefined preprocessor variables. 1819 1820cat >>confdefs.h <<_ACEOF 1821#define PACKAGE_NAME "$PACKAGE_NAME" 1822_ACEOF 1823 1824 1825cat >>confdefs.h <<_ACEOF 1826#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1827_ACEOF 1828 1829 1830cat >>confdefs.h <<_ACEOF 1831#define PACKAGE_VERSION "$PACKAGE_VERSION" 1832_ACEOF 1833 1834 1835cat >>confdefs.h <<_ACEOF 1836#define PACKAGE_STRING "$PACKAGE_STRING" 1837_ACEOF 1838 1839 1840cat >>confdefs.h <<_ACEOF 1841#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1842_ACEOF 1843 1844 1845# Let the site file select an alternate cache file if it wants to. 1846# Prefer explicitly selected file to automatically selected ones. 1847if test -n "$CONFIG_SITE"; then 1848 set x "$CONFIG_SITE" 1849elif test "x$prefix" != xNONE; then 1850 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1851else 1852 set x "$ac_default_prefix/share/config.site" \ 1853 "$ac_default_prefix/etc/config.site" 1854fi 1855shift 1856for ac_site_file 1857do 1858 if test -r "$ac_site_file"; then 1859 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1860echo "$as_me: loading site script $ac_site_file" >&6;} 1861 sed 's/^/| /' "$ac_site_file" >&5 1862 . "$ac_site_file" 1863 fi 1864done 1865 1866if test -r "$cache_file"; then 1867 # Some versions of bash will fail to source /dev/null (special 1868 # files actually), so we avoid doing that. 1869 if test -f "$cache_file"; then 1870 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1871echo "$as_me: loading cache $cache_file" >&6;} 1872 case $cache_file in 1873 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1874 *) . "./$cache_file";; 1875 esac 1876 fi 1877else 1878 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1879echo "$as_me: creating cache $cache_file" >&6;} 1880 >$cache_file 1881fi 1882 1883# Check that the precious variables saved in the cache have kept the same 1884# value. 1885ac_cache_corrupted=false 1886for ac_var in $ac_precious_vars; do 1887 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1888 eval ac_new_set=\$ac_env_${ac_var}_set 1889 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1890 eval ac_new_val=\$ac_env_${ac_var}_value 1891 case $ac_old_set,$ac_new_set in 1892 set,) 1893 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1894echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1895 ac_cache_corrupted=: ;; 1896 ,set) 1897 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1898echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1899 ac_cache_corrupted=: ;; 1900 ,);; 1901 *) 1902 if test "x$ac_old_val" != "x$ac_new_val"; then 1903 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1904echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1905 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1906echo "$as_me: former value: $ac_old_val" >&2;} 1907 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1908echo "$as_me: current value: $ac_new_val" >&2;} 1909 ac_cache_corrupted=: 1910 fi;; 1911 esac 1912 # Pass precious variables to config.status. 1913 if test "$ac_new_set" = set; then 1914 case $ac_new_val in 1915 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1916 *) ac_arg=$ac_var=$ac_new_val ;; 1917 esac 1918 case " $ac_configure_args " in 1919 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1920 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1921 esac 1922 fi 1923done 1924if $ac_cache_corrupted; then 1925 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1926echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1927 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1928echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1929 { (exit 1); exit 1; }; } 1930fi 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948ac_ext=c 1949ac_cpp='$CPP $CPPFLAGS' 1950ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1951ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1952ac_compiler_gnu=$ac_cv_c_compiler_gnu 1953 1954 1955 1956ac_aux_dir= 1957for ac_dir in $GNUSYSTEM_AUX_DIR "$srcdir" "$srcdir/.." "$srcdir/../.."; do 1958 if test -f "$ac_dir/install-sh"; then 1959 ac_aux_dir=$ac_dir 1960 ac_install_sh="$ac_aux_dir/install-sh -c" 1961 break 1962 elif test -f "$ac_dir/install.sh"; then 1963 ac_aux_dir=$ac_dir 1964 ac_install_sh="$ac_aux_dir/install.sh -c" 1965 break 1966 elif test -f "$ac_dir/shtool"; then 1967 ac_aux_dir=$ac_dir 1968 ac_install_sh="$ac_aux_dir/shtool install -c" 1969 break 1970 fi 1971done 1972if test -z "$ac_aux_dir"; then 1973 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 1974echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 1975 { (exit 1); exit 1; }; } 1976fi 1977 1978# These three variables are undocumented and unsupported, 1979# and are intended to be withdrawn in a future Autoconf release. 1980# They can cause serious problems if a builder's source tree is in a directory 1981# whose full name contains unusual characters. 1982ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1983ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1984ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1985 1986 1987# Make sure we can run config.sub. 1988$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 1989 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 1990echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 1991 { (exit 1); exit 1; }; } 1992 1993{ echo "$as_me:$LINENO: checking build system type" >&5 1994echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 1995if test "${ac_cv_build+set}" = set; then 1996 echo $ECHO_N "(cached) $ECHO_C" >&6 1997else 1998 ac_build_alias=$build_alias 1999test "x$ac_build_alias" = x && 2000 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2001test "x$ac_build_alias" = x && 2002 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2003echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2004 { (exit 1); exit 1; }; } 2005ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2006 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 2007echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2008 { (exit 1); exit 1; }; } 2009 2010fi 2011{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2012echo "${ECHO_T}$ac_cv_build" >&6; } 2013case $ac_cv_build in 2014*-*-*) ;; 2015*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2016echo "$as_me: error: invalid value of canonical build" >&2;} 2017 { (exit 1); exit 1; }; };; 2018esac 2019build=$ac_cv_build 2020ac_save_IFS=$IFS; IFS='-' 2021set x $ac_cv_build 2022shift 2023build_cpu=$1 2024build_vendor=$2 2025shift; shift 2026# Remember, the first character of IFS is used to create $*, 2027# except with old shells: 2028build_os=$* 2029IFS=$ac_save_IFS 2030case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2031 2032 2033{ echo "$as_me:$LINENO: checking host system type" >&5 2034echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 2035if test "${ac_cv_host+set}" = set; then 2036 echo $ECHO_N "(cached) $ECHO_C" >&6 2037else 2038 if test "x$host_alias" = x; then 2039 ac_cv_host=$ac_cv_build 2040else 2041 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2042 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2043echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2044 { (exit 1); exit 1; }; } 2045fi 2046 2047fi 2048{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2049echo "${ECHO_T}$ac_cv_host" >&6; } 2050case $ac_cv_host in 2051*-*-*) ;; 2052*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2053echo "$as_me: error: invalid value of canonical host" >&2;} 2054 { (exit 1); exit 1; }; };; 2055esac 2056host=$ac_cv_host 2057ac_save_IFS=$IFS; IFS='-' 2058set x $ac_cv_host 2059shift 2060host_cpu=$1 2061host_vendor=$2 2062shift; shift 2063# Remember, the first character of IFS is used to create $*, 2064# except with old shells: 2065host_os=$* 2066IFS=$ac_save_IFS 2067case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2068 2069 2070{ echo "$as_me:$LINENO: checking target system type" >&5 2071echo $ECHO_N "checking target system type... $ECHO_C" >&6; } 2072if test "${ac_cv_target+set}" = set; then 2073 echo $ECHO_N "(cached) $ECHO_C" >&6 2074else 2075 if test "x$target_alias" = x; then 2076 ac_cv_target=$ac_cv_host 2077else 2078 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2079 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 2080echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} 2081 { (exit 1); exit 1; }; } 2082fi 2083 2084fi 2085{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5 2086echo "${ECHO_T}$ac_cv_target" >&6; } 2087case $ac_cv_target in 2088*-*-*) ;; 2089*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 2090echo "$as_me: error: invalid value of canonical target" >&2;} 2091 { (exit 1); exit 1; }; };; 2092esac 2093target=$ac_cv_target 2094ac_save_IFS=$IFS; IFS='-' 2095set x $ac_cv_target 2096shift 2097target_cpu=$1 2098target_vendor=$2 2099shift; shift 2100# Remember, the first character of IFS is used to create $*, 2101# except with old shells: 2102target_os=$* 2103IFS=$ac_save_IFS 2104case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2105 2106 2107# The aliases save the names the user supplied, while $host etc. 2108# will get canonicalized. 2109test -n "$target_alias" && 2110 test "$program_prefix$program_suffix$program_transform_name" = \ 2111 NONENONEs,x,x, && 2112 program_prefix=${target_alias}- 2113ac_ext=c 2114ac_cpp='$CPP $CPPFLAGS' 2115ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2116ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2117ac_compiler_gnu=$ac_cv_c_compiler_gnu 2118if test -n "$ac_tool_prefix"; then 2119 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2120set dummy ${ac_tool_prefix}gcc; ac_word=$2 2121{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2122echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2123if test "${ac_cv_prog_CC+set}" = set; then 2124 echo $ECHO_N "(cached) $ECHO_C" >&6 2125else 2126 if test -n "$CC"; then 2127 ac_cv_prog_CC="$CC" # Let the user override the test. 2128else 2129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2130for as_dir in $PATH 2131do 2132 IFS=$as_save_IFS 2133 test -z "$as_dir" && as_dir=. 2134 for ac_exec_ext in '' $ac_executable_extensions; do 2135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2136 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2138 break 2 2139 fi 2140done 2141done 2142IFS=$as_save_IFS 2143 2144fi 2145fi 2146CC=$ac_cv_prog_CC 2147if test -n "$CC"; then 2148 { echo "$as_me:$LINENO: result: $CC" >&5 2149echo "${ECHO_T}$CC" >&6; } 2150else 2151 { echo "$as_me:$LINENO: result: no" >&5 2152echo "${ECHO_T}no" >&6; } 2153fi 2154 2155 2156fi 2157if test -z "$ac_cv_prog_CC"; then 2158 ac_ct_CC=$CC 2159 # Extract the first word of "gcc", so it can be a program name with args. 2160set dummy gcc; ac_word=$2 2161{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2162echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2163if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2164 echo $ECHO_N "(cached) $ECHO_C" >&6 2165else 2166 if test -n "$ac_ct_CC"; then 2167 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2168else 2169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2170for as_dir in $PATH 2171do 2172 IFS=$as_save_IFS 2173 test -z "$as_dir" && as_dir=. 2174 for ac_exec_ext in '' $ac_executable_extensions; do 2175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2176 ac_cv_prog_ac_ct_CC="gcc" 2177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2178 break 2 2179 fi 2180done 2181done 2182IFS=$as_save_IFS 2183 2184fi 2185fi 2186ac_ct_CC=$ac_cv_prog_ac_ct_CC 2187if test -n "$ac_ct_CC"; then 2188 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2189echo "${ECHO_T}$ac_ct_CC" >&6; } 2190else 2191 { echo "$as_me:$LINENO: result: no" >&5 2192echo "${ECHO_T}no" >&6; } 2193fi 2194 2195 if test "x$ac_ct_CC" = x; then 2196 CC="" 2197 else 2198 case $cross_compiling:$ac_tool_warned in 2199yes:) 2200{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2201whose name does not start with the host triplet. If you think this 2202configuration is useful to you, please write to autoconf@gnu.org." >&5 2203echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2204whose name does not start with the host triplet. If you think this 2205configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2206ac_tool_warned=yes ;; 2207esac 2208 CC=$ac_ct_CC 2209 fi 2210else 2211 CC="$ac_cv_prog_CC" 2212fi 2213 2214if test -z "$CC"; then 2215 if test -n "$ac_tool_prefix"; then 2216 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2217set dummy ${ac_tool_prefix}cc; ac_word=$2 2218{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2219echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2220if test "${ac_cv_prog_CC+set}" = set; then 2221 echo $ECHO_N "(cached) $ECHO_C" >&6 2222else 2223 if test -n "$CC"; then 2224 ac_cv_prog_CC="$CC" # Let the user override the test. 2225else 2226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2227for as_dir in $PATH 2228do 2229 IFS=$as_save_IFS 2230 test -z "$as_dir" && as_dir=. 2231 for ac_exec_ext in '' $ac_executable_extensions; do 2232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2233 ac_cv_prog_CC="${ac_tool_prefix}cc" 2234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2235 break 2 2236 fi 2237done 2238done 2239IFS=$as_save_IFS 2240 2241fi 2242fi 2243CC=$ac_cv_prog_CC 2244if test -n "$CC"; then 2245 { echo "$as_me:$LINENO: result: $CC" >&5 2246echo "${ECHO_T}$CC" >&6; } 2247else 2248 { echo "$as_me:$LINENO: result: no" >&5 2249echo "${ECHO_T}no" >&6; } 2250fi 2251 2252 2253 fi 2254fi 2255if test -z "$CC"; then 2256 # Extract the first word of "cc", so it can be a program name with args. 2257set dummy cc; ac_word=$2 2258{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2259echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2260if test "${ac_cv_prog_CC+set}" = set; then 2261 echo $ECHO_N "(cached) $ECHO_C" >&6 2262else 2263 if test -n "$CC"; then 2264 ac_cv_prog_CC="$CC" # Let the user override the test. 2265else 2266 ac_prog_rejected=no 2267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2268for as_dir in $PATH 2269do 2270 IFS=$as_save_IFS 2271 test -z "$as_dir" && as_dir=. 2272 for ac_exec_ext in '' $ac_executable_extensions; do 2273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2274 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2275 ac_prog_rejected=yes 2276 continue 2277 fi 2278 ac_cv_prog_CC="cc" 2279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2280 break 2 2281 fi 2282done 2283done 2284IFS=$as_save_IFS 2285 2286if test $ac_prog_rejected = yes; then 2287 # We found a bogon in the path, so make sure we never use it. 2288 set dummy $ac_cv_prog_CC 2289 shift 2290 if test $# != 0; then 2291 # We chose a different compiler from the bogus one. 2292 # However, it has the same basename, so the bogon will be chosen 2293 # first if we set CC to just the basename; use the full file name. 2294 shift 2295 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2296 fi 2297fi 2298fi 2299fi 2300CC=$ac_cv_prog_CC 2301if test -n "$CC"; then 2302 { echo "$as_me:$LINENO: result: $CC" >&5 2303echo "${ECHO_T}$CC" >&6; } 2304else 2305 { echo "$as_me:$LINENO: result: no" >&5 2306echo "${ECHO_T}no" >&6; } 2307fi 2308 2309 2310fi 2311if test -z "$CC"; then 2312 if test -n "$ac_tool_prefix"; then 2313 for ac_prog in cl.exe 2314 do 2315 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2316set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2317{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2318echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2319if test "${ac_cv_prog_CC+set}" = set; then 2320 echo $ECHO_N "(cached) $ECHO_C" >&6 2321else 2322 if test -n "$CC"; then 2323 ac_cv_prog_CC="$CC" # Let the user override the test. 2324else 2325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2326for as_dir in $PATH 2327do 2328 IFS=$as_save_IFS 2329 test -z "$as_dir" && as_dir=. 2330 for ac_exec_ext in '' $ac_executable_extensions; do 2331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2332 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2334 break 2 2335 fi 2336done 2337done 2338IFS=$as_save_IFS 2339 2340fi 2341fi 2342CC=$ac_cv_prog_CC 2343if test -n "$CC"; then 2344 { echo "$as_me:$LINENO: result: $CC" >&5 2345echo "${ECHO_T}$CC" >&6; } 2346else 2347 { echo "$as_me:$LINENO: result: no" >&5 2348echo "${ECHO_T}no" >&6; } 2349fi 2350 2351 2352 test -n "$CC" && break 2353 done 2354fi 2355if test -z "$CC"; then 2356 ac_ct_CC=$CC 2357 for ac_prog in cl.exe 2358do 2359 # Extract the first word of "$ac_prog", so it can be a program name with args. 2360set dummy $ac_prog; ac_word=$2 2361{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2362echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2363if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2364 echo $ECHO_N "(cached) $ECHO_C" >&6 2365else 2366 if test -n "$ac_ct_CC"; then 2367 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2368else 2369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2370for as_dir in $PATH 2371do 2372 IFS=$as_save_IFS 2373 test -z "$as_dir" && as_dir=. 2374 for ac_exec_ext in '' $ac_executable_extensions; do 2375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2376 ac_cv_prog_ac_ct_CC="$ac_prog" 2377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2378 break 2 2379 fi 2380done 2381done 2382IFS=$as_save_IFS 2383 2384fi 2385fi 2386ac_ct_CC=$ac_cv_prog_ac_ct_CC 2387if test -n "$ac_ct_CC"; then 2388 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2389echo "${ECHO_T}$ac_ct_CC" >&6; } 2390else 2391 { echo "$as_me:$LINENO: result: no" >&5 2392echo "${ECHO_T}no" >&6; } 2393fi 2394 2395 2396 test -n "$ac_ct_CC" && break 2397done 2398 2399 if test "x$ac_ct_CC" = x; then 2400 CC="" 2401 else 2402 case $cross_compiling:$ac_tool_warned in 2403yes:) 2404{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2405whose name does not start with the host triplet. If you think this 2406configuration is useful to you, please write to autoconf@gnu.org." >&5 2407echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2408whose name does not start with the host triplet. If you think this 2409configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2410ac_tool_warned=yes ;; 2411esac 2412 CC=$ac_ct_CC 2413 fi 2414fi 2415 2416fi 2417 2418 2419test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2420See \`config.log' for more details." >&5 2421echo "$as_me: error: no acceptable C compiler found in \$PATH 2422See \`config.log' for more details." >&2;} 2423 { (exit 1); exit 1; }; } 2424 2425# Provide some information about the compiler. 2426echo "$as_me:$LINENO: checking for C compiler version" >&5 2427ac_compiler=`set X $ac_compile; echo $2` 2428{ (ac_try="$ac_compiler --version >&5" 2429case "(($ac_try" in 2430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2431 *) ac_try_echo=$ac_try;; 2432esac 2433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2434 (eval "$ac_compiler --version >&5") 2>&5 2435 ac_status=$? 2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2437 (exit $ac_status); } 2438{ (ac_try="$ac_compiler -v >&5" 2439case "(($ac_try" in 2440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2441 *) ac_try_echo=$ac_try;; 2442esac 2443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2444 (eval "$ac_compiler -v >&5") 2>&5 2445 ac_status=$? 2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2447 (exit $ac_status); } 2448{ (ac_try="$ac_compiler -V >&5" 2449case "(($ac_try" in 2450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2451 *) ac_try_echo=$ac_try;; 2452esac 2453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2454 (eval "$ac_compiler -V >&5") 2>&5 2455 ac_status=$? 2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2457 (exit $ac_status); } 2458 2459cat >conftest.$ac_ext <<_ACEOF 2460/* confdefs.h. */ 2461_ACEOF 2462cat confdefs.h >>conftest.$ac_ext 2463cat >>conftest.$ac_ext <<_ACEOF 2464/* end confdefs.h. */ 2465 2466int 2467main () 2468{ 2469 2470 ; 2471 return 0; 2472} 2473_ACEOF 2474ac_clean_files_save=$ac_clean_files 2475ac_clean_files="$ac_clean_files a.out a.exe b.out" 2476# Try to create an executable without -o first, disregard a.out. 2477# It will help us diagnose broken compilers, and finding out an intuition 2478# of exeext. 2479{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2480echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2481ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2482# 2483# List of possible output files, starting from the most likely. 2484# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2485# only as a last resort. b.out is created by i960 compilers. 2486ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2487# 2488# The IRIX 6 linker writes into existing files which may not be 2489# executable, retaining their permissions. Remove them first so a 2490# subsequent execution test works. 2491ac_rmfiles= 2492for ac_file in $ac_files 2493do 2494 case $ac_file in 2495 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2496 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2497 esac 2498done 2499rm -f $ac_rmfiles 2500 2501if { (ac_try="$ac_link_default" 2502case "(($ac_try" in 2503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2504 *) ac_try_echo=$ac_try;; 2505esac 2506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2507 (eval "$ac_link_default") 2>&5 2508 ac_status=$? 2509 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2510 (exit $ac_status); }; then 2511 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2512# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2513# in a Makefile. We should not override ac_cv_exeext if it was cached, 2514# so that the user can short-circuit this test for compilers unknown to 2515# Autoconf. 2516for ac_file in $ac_files 2517do 2518 test -f "$ac_file" || continue 2519 case $ac_file in 2520 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2521 ;; 2522 [ab].out ) 2523 # We found the default executable, but exeext='' is most 2524 # certainly right. 2525 break;; 2526 *.* ) 2527 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2528 then :; else 2529 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2530 fi 2531 # We set ac_cv_exeext here because the later test for it is not 2532 # safe: cross compilers may not add the suffix if given an `-o' 2533 # argument, so we may need to know it at that point already. 2534 # Even if this section looks crufty: it has the advantage of 2535 # actually working. 2536 break;; 2537 * ) 2538 break;; 2539 esac 2540done 2541test "$ac_cv_exeext" = no && ac_cv_exeext= 2542 2543else 2544 echo "$as_me: failed program was:" >&5 2545sed 's/^/| /' conftest.$ac_ext >&5 2546 2547{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2548See \`config.log' for more details." >&5 2549echo "$as_me: error: C compiler cannot create executables 2550See \`config.log' for more details." >&2;} 2551 { (exit 77); exit 77; }; } 2552fi 2553 2554ac_exeext=$ac_cv_exeext 2555{ echo "$as_me:$LINENO: result: $ac_file" >&5 2556echo "${ECHO_T}$ac_file" >&6; } 2557 2558# Check that the compiler produces executables we can run. If not, either 2559# the compiler is broken, or we cross compile. 2560{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2561echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2562# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2563# If not cross compiling, check that we can run a simple program. 2564if test "$cross_compiling" != yes; then 2565 if { ac_try='./$ac_file' 2566 { (case "(($ac_try" in 2567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2568 *) ac_try_echo=$ac_try;; 2569esac 2570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2571 (eval "$ac_try") 2>&5 2572 ac_status=$? 2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2574 (exit $ac_status); }; }; then 2575 cross_compiling=no 2576 else 2577 if test "$cross_compiling" = maybe; then 2578 cross_compiling=yes 2579 else 2580 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2581If you meant to cross compile, use \`--host'. 2582See \`config.log' for more details." >&5 2583echo "$as_me: error: cannot run C compiled programs. 2584If you meant to cross compile, use \`--host'. 2585See \`config.log' for more details." >&2;} 2586 { (exit 1); exit 1; }; } 2587 fi 2588 fi 2589fi 2590{ echo "$as_me:$LINENO: result: yes" >&5 2591echo "${ECHO_T}yes" >&6; } 2592 2593rm -f a.out a.exe conftest$ac_cv_exeext b.out 2594ac_clean_files=$ac_clean_files_save 2595# Check that the compiler produces executables we can run. If not, either 2596# the compiler is broken, or we cross compile. 2597{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2598echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2599{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2600echo "${ECHO_T}$cross_compiling" >&6; } 2601 2602{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2603echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2604if { (ac_try="$ac_link" 2605case "(($ac_try" in 2606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2607 *) ac_try_echo=$ac_try;; 2608esac 2609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2610 (eval "$ac_link") 2>&5 2611 ac_status=$? 2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2613 (exit $ac_status); }; then 2614 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2615# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2616# work properly (i.e., refer to `conftest.exe'), while it won't with 2617# `rm'. 2618for ac_file in conftest.exe conftest conftest.*; do 2619 test -f "$ac_file" || continue 2620 case $ac_file in 2621 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2622 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2623 break;; 2624 * ) break;; 2625 esac 2626done 2627else 2628 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2629See \`config.log' for more details." >&5 2630echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2631See \`config.log' for more details." >&2;} 2632 { (exit 1); exit 1; }; } 2633fi 2634 2635rm -f conftest$ac_cv_exeext 2636{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2637echo "${ECHO_T}$ac_cv_exeext" >&6; } 2638 2639rm -f conftest.$ac_ext 2640EXEEXT=$ac_cv_exeext 2641ac_exeext=$EXEEXT 2642{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2643echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2644if test "${ac_cv_objext+set}" = set; then 2645 echo $ECHO_N "(cached) $ECHO_C" >&6 2646else 2647 cat >conftest.$ac_ext <<_ACEOF 2648/* confdefs.h. */ 2649_ACEOF 2650cat confdefs.h >>conftest.$ac_ext 2651cat >>conftest.$ac_ext <<_ACEOF 2652/* end confdefs.h. */ 2653 2654int 2655main () 2656{ 2657 2658 ; 2659 return 0; 2660} 2661_ACEOF 2662rm -f conftest.o conftest.obj 2663if { (ac_try="$ac_compile" 2664case "(($ac_try" in 2665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2666 *) ac_try_echo=$ac_try;; 2667esac 2668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2669 (eval "$ac_compile") 2>&5 2670 ac_status=$? 2671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2672 (exit $ac_status); }; then 2673 for ac_file in conftest.o conftest.obj conftest.*; do 2674 test -f "$ac_file" || continue; 2675 case $ac_file in 2676 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2677 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2678 break;; 2679 esac 2680done 2681else 2682 echo "$as_me: failed program was:" >&5 2683sed 's/^/| /' conftest.$ac_ext >&5 2684 2685{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2686See \`config.log' for more details." >&5 2687echo "$as_me: error: cannot compute suffix of object files: cannot compile 2688See \`config.log' for more details." >&2;} 2689 { (exit 1); exit 1; }; } 2690fi 2691 2692rm -f conftest.$ac_cv_objext conftest.$ac_ext 2693fi 2694{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2695echo "${ECHO_T}$ac_cv_objext" >&6; } 2696OBJEXT=$ac_cv_objext 2697ac_objext=$OBJEXT 2698{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2699echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2700if test "${ac_cv_c_compiler_gnu+set}" = set; then 2701 echo $ECHO_N "(cached) $ECHO_C" >&6 2702else 2703 cat >conftest.$ac_ext <<_ACEOF 2704/* confdefs.h. */ 2705_ACEOF 2706cat confdefs.h >>conftest.$ac_ext 2707cat >>conftest.$ac_ext <<_ACEOF 2708/* end confdefs.h. */ 2709 2710int 2711main () 2712{ 2713#ifndef __GNUC__ 2714 choke me 2715#endif 2716 2717 ; 2718 return 0; 2719} 2720_ACEOF 2721rm -f conftest.$ac_objext 2722if { (ac_try="$ac_compile" 2723case "(($ac_try" in 2724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2725 *) ac_try_echo=$ac_try;; 2726esac 2727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2728 (eval "$ac_compile") 2>conftest.er1 2729 ac_status=$? 2730 grep -v '^ *+' conftest.er1 >conftest.err 2731 rm -f conftest.er1 2732 cat conftest.err >&5 2733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2734 (exit $ac_status); } && 2735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2736 { (case "(($ac_try" in 2737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2738 *) ac_try_echo=$ac_try;; 2739esac 2740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2741 (eval "$ac_try") 2>&5 2742 ac_status=$? 2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2744 (exit $ac_status); }; } && 2745 { ac_try='test -s conftest.$ac_objext' 2746 { (case "(($ac_try" in 2747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2748 *) ac_try_echo=$ac_try;; 2749esac 2750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2751 (eval "$ac_try") 2>&5 2752 ac_status=$? 2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2754 (exit $ac_status); }; }; then 2755 ac_compiler_gnu=yes 2756else 2757 echo "$as_me: failed program was:" >&5 2758sed 's/^/| /' conftest.$ac_ext >&5 2759 2760 ac_compiler_gnu=no 2761fi 2762 2763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2764ac_cv_c_compiler_gnu=$ac_compiler_gnu 2765 2766fi 2767{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2768echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 2769GCC=`test $ac_compiler_gnu = yes && echo yes` 2770ac_test_CFLAGS=${CFLAGS+set} 2771ac_save_CFLAGS=$CFLAGS 2772{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2773echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 2774if test "${ac_cv_prog_cc_g+set}" = set; then 2775 echo $ECHO_N "(cached) $ECHO_C" >&6 2776else 2777 ac_save_c_werror_flag=$ac_c_werror_flag 2778 ac_c_werror_flag=yes 2779 ac_cv_prog_cc_g=no 2780 CFLAGS="-g" 2781 cat >conftest.$ac_ext <<_ACEOF 2782/* confdefs.h. */ 2783_ACEOF 2784cat confdefs.h >>conftest.$ac_ext 2785cat >>conftest.$ac_ext <<_ACEOF 2786/* end confdefs.h. */ 2787 2788int 2789main () 2790{ 2791 2792 ; 2793 return 0; 2794} 2795_ACEOF 2796rm -f conftest.$ac_objext 2797if { (ac_try="$ac_compile" 2798case "(($ac_try" in 2799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2800 *) ac_try_echo=$ac_try;; 2801esac 2802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2803 (eval "$ac_compile") 2>conftest.er1 2804 ac_status=$? 2805 grep -v '^ *+' conftest.er1 >conftest.err 2806 rm -f conftest.er1 2807 cat conftest.err >&5 2808 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2809 (exit $ac_status); } && 2810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2811 { (case "(($ac_try" in 2812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2813 *) ac_try_echo=$ac_try;; 2814esac 2815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2816 (eval "$ac_try") 2>&5 2817 ac_status=$? 2818 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2819 (exit $ac_status); }; } && 2820 { ac_try='test -s conftest.$ac_objext' 2821 { (case "(($ac_try" in 2822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2823 *) ac_try_echo=$ac_try;; 2824esac 2825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2826 (eval "$ac_try") 2>&5 2827 ac_status=$? 2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2829 (exit $ac_status); }; }; then 2830 ac_cv_prog_cc_g=yes 2831else 2832 echo "$as_me: failed program was:" >&5 2833sed 's/^/| /' conftest.$ac_ext >&5 2834 2835 CFLAGS="" 2836 cat >conftest.$ac_ext <<_ACEOF 2837/* confdefs.h. */ 2838_ACEOF 2839cat confdefs.h >>conftest.$ac_ext 2840cat >>conftest.$ac_ext <<_ACEOF 2841/* end confdefs.h. */ 2842 2843int 2844main () 2845{ 2846 2847 ; 2848 return 0; 2849} 2850_ACEOF 2851rm -f conftest.$ac_objext 2852if { (ac_try="$ac_compile" 2853case "(($ac_try" in 2854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2855 *) ac_try_echo=$ac_try;; 2856esac 2857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2858 (eval "$ac_compile") 2>conftest.er1 2859 ac_status=$? 2860 grep -v '^ *+' conftest.er1 >conftest.err 2861 rm -f conftest.er1 2862 cat conftest.err >&5 2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2864 (exit $ac_status); } && 2865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2866 { (case "(($ac_try" in 2867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2868 *) ac_try_echo=$ac_try;; 2869esac 2870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2871 (eval "$ac_try") 2>&5 2872 ac_status=$? 2873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2874 (exit $ac_status); }; } && 2875 { ac_try='test -s conftest.$ac_objext' 2876 { (case "(($ac_try" in 2877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2878 *) ac_try_echo=$ac_try;; 2879esac 2880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2881 (eval "$ac_try") 2>&5 2882 ac_status=$? 2883 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2884 (exit $ac_status); }; }; then 2885 : 2886else 2887 echo "$as_me: failed program was:" >&5 2888sed 's/^/| /' conftest.$ac_ext >&5 2889 2890 ac_c_werror_flag=$ac_save_c_werror_flag 2891 CFLAGS="-g" 2892 cat >conftest.$ac_ext <<_ACEOF 2893/* confdefs.h. */ 2894_ACEOF 2895cat confdefs.h >>conftest.$ac_ext 2896cat >>conftest.$ac_ext <<_ACEOF 2897/* end confdefs.h. */ 2898 2899int 2900main () 2901{ 2902 2903 ; 2904 return 0; 2905} 2906_ACEOF 2907rm -f conftest.$ac_objext 2908if { (ac_try="$ac_compile" 2909case "(($ac_try" in 2910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2911 *) ac_try_echo=$ac_try;; 2912esac 2913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2914 (eval "$ac_compile") 2>conftest.er1 2915 ac_status=$? 2916 grep -v '^ *+' conftest.er1 >conftest.err 2917 rm -f conftest.er1 2918 cat conftest.err >&5 2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2920 (exit $ac_status); } && 2921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2922 { (case "(($ac_try" in 2923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2924 *) ac_try_echo=$ac_try;; 2925esac 2926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2927 (eval "$ac_try") 2>&5 2928 ac_status=$? 2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2930 (exit $ac_status); }; } && 2931 { ac_try='test -s conftest.$ac_objext' 2932 { (case "(($ac_try" in 2933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2934 *) ac_try_echo=$ac_try;; 2935esac 2936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2937 (eval "$ac_try") 2>&5 2938 ac_status=$? 2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2940 (exit $ac_status); }; }; then 2941 ac_cv_prog_cc_g=yes 2942else 2943 echo "$as_me: failed program was:" >&5 2944sed 's/^/| /' conftest.$ac_ext >&5 2945 2946 2947fi 2948 2949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2950fi 2951 2952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2953fi 2954 2955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2956 ac_c_werror_flag=$ac_save_c_werror_flag 2957fi 2958{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2959echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 2960if test "$ac_test_CFLAGS" = set; then 2961 CFLAGS=$ac_save_CFLAGS 2962elif test $ac_cv_prog_cc_g = yes; then 2963 if test "$GCC" = yes; then 2964 CFLAGS="-g -O2" 2965 else 2966 CFLAGS="-g" 2967 fi 2968else 2969 if test "$GCC" = yes; then 2970 CFLAGS="-O2" 2971 else 2972 CFLAGS= 2973 fi 2974fi 2975{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 2976echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 2977if test "${ac_cv_prog_cc_c89+set}" = set; then 2978 echo $ECHO_N "(cached) $ECHO_C" >&6 2979else 2980 ac_cv_prog_cc_c89=no 2981ac_save_CC=$CC 2982cat >conftest.$ac_ext <<_ACEOF 2983/* confdefs.h. */ 2984_ACEOF 2985cat confdefs.h >>conftest.$ac_ext 2986cat >>conftest.$ac_ext <<_ACEOF 2987/* end confdefs.h. */ 2988#include <stdarg.h> 2989#include <stdio.h> 2990#include <sys/types.h> 2991#include <sys/stat.h> 2992/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2993struct buf { int x; }; 2994FILE * (*rcsopen) (struct buf *, struct stat *, int); 2995static char *e (p, i) 2996 char **p; 2997 int i; 2998{ 2999 return p[i]; 3000} 3001static char *f (char * (*g) (char **, int), char **p, ...) 3002{ 3003 char *s; 3004 va_list v; 3005 va_start (v,p); 3006 s = g (p, va_arg (v,int)); 3007 va_end (v); 3008 return s; 3009} 3010 3011/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3012 function prototypes and stuff, but not '\xHH' hex character constants. 3013 These don't provoke an error unfortunately, instead are silently treated 3014 as 'x'. The following induces an error, until -std is added to get 3015 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3016 array size at least. It's necessary to write '\x00'==0 to get something 3017 that's true only with -std. */ 3018int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3019 3020/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3021 inside strings and character constants. */ 3022#define FOO(x) 'x' 3023int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3024 3025int test (int i, double x); 3026struct s1 {int (*f) (int a);}; 3027struct s2 {int (*f) (double a);}; 3028int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3029int argc; 3030char **argv; 3031int 3032main () 3033{ 3034return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3035 ; 3036 return 0; 3037} 3038_ACEOF 3039for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3040 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3041do 3042 CC="$ac_save_CC $ac_arg" 3043 rm -f conftest.$ac_objext 3044if { (ac_try="$ac_compile" 3045case "(($ac_try" in 3046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3047 *) ac_try_echo=$ac_try;; 3048esac 3049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3050 (eval "$ac_compile") 2>conftest.er1 3051 ac_status=$? 3052 grep -v '^ *+' conftest.er1 >conftest.err 3053 rm -f conftest.er1 3054 cat conftest.err >&5 3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3056 (exit $ac_status); } && 3057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3058 { (case "(($ac_try" in 3059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3060 *) ac_try_echo=$ac_try;; 3061esac 3062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3063 (eval "$ac_try") 2>&5 3064 ac_status=$? 3065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3066 (exit $ac_status); }; } && 3067 { ac_try='test -s conftest.$ac_objext' 3068 { (case "(($ac_try" in 3069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3070 *) ac_try_echo=$ac_try;; 3071esac 3072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3073 (eval "$ac_try") 2>&5 3074 ac_status=$? 3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3076 (exit $ac_status); }; }; then 3077 ac_cv_prog_cc_c89=$ac_arg 3078else 3079 echo "$as_me: failed program was:" >&5 3080sed 's/^/| /' conftest.$ac_ext >&5 3081 3082 3083fi 3084 3085rm -f core conftest.err conftest.$ac_objext 3086 test "x$ac_cv_prog_cc_c89" != "xno" && break 3087done 3088rm -f conftest.$ac_ext 3089CC=$ac_save_CC 3090 3091fi 3092# AC_CACHE_VAL 3093case "x$ac_cv_prog_cc_c89" in 3094 x) 3095 { echo "$as_me:$LINENO: result: none needed" >&5 3096echo "${ECHO_T}none needed" >&6; } ;; 3097 xno) 3098 { echo "$as_me:$LINENO: result: unsupported" >&5 3099echo "${ECHO_T}unsupported" >&6; } ;; 3100 *) 3101 CC="$CC $ac_cv_prog_cc_c89" 3102 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3103echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3104esac 3105 3106 3107ac_ext=c 3108ac_cpp='$CPP $CPPFLAGS' 3109ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3110ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3111ac_compiler_gnu=$ac_cv_c_compiler_gnu 3112 3113 3114{ echo "$as_me:$LINENO: checking for library containing strerror" >&5 3115echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } 3116if test "${ac_cv_search_strerror+set}" = set; then 3117 echo $ECHO_N "(cached) $ECHO_C" >&6 3118else 3119 ac_func_search_save_LIBS=$LIBS 3120cat >conftest.$ac_ext <<_ACEOF 3121/* confdefs.h. */ 3122_ACEOF 3123cat confdefs.h >>conftest.$ac_ext 3124cat >>conftest.$ac_ext <<_ACEOF 3125/* end confdefs.h. */ 3126 3127/* Override any GCC internal prototype to avoid an error. 3128 Use char because int might match the return type of a GCC 3129 builtin and then its argument prototype would still apply. */ 3130#ifdef __cplusplus 3131extern "C" 3132#endif 3133char strerror (); 3134int 3135main () 3136{ 3137return strerror (); 3138 ; 3139 return 0; 3140} 3141_ACEOF 3142for ac_lib in '' cposix; do 3143 if test -z "$ac_lib"; then 3144 ac_res="none required" 3145 else 3146 ac_res=-l$ac_lib 3147 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3148 fi 3149 rm -f conftest.$ac_objext conftest$ac_exeext 3150if { (ac_try="$ac_link" 3151case "(($ac_try" in 3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3153 *) ac_try_echo=$ac_try;; 3154esac 3155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3156 (eval "$ac_link") 2>conftest.er1 3157 ac_status=$? 3158 grep -v '^ *+' conftest.er1 >conftest.err 3159 rm -f conftest.er1 3160 cat conftest.err >&5 3161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3162 (exit $ac_status); } && 3163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3164 { (case "(($ac_try" in 3165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3166 *) ac_try_echo=$ac_try;; 3167esac 3168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3169 (eval "$ac_try") 2>&5 3170 ac_status=$? 3171 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3172 (exit $ac_status); }; } && 3173 { ac_try='test -s conftest$ac_exeext' 3174 { (case "(($ac_try" in 3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3176 *) ac_try_echo=$ac_try;; 3177esac 3178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3179 (eval "$ac_try") 2>&5 3180 ac_status=$? 3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3182 (exit $ac_status); }; }; then 3183 ac_cv_search_strerror=$ac_res 3184else 3185 echo "$as_me: failed program was:" >&5 3186sed 's/^/| /' conftest.$ac_ext >&5 3187 3188 3189fi 3190 3191rm -f core conftest.err conftest.$ac_objext \ 3192 conftest$ac_exeext 3193 if test "${ac_cv_search_strerror+set}" = set; then 3194 break 3195fi 3196done 3197if test "${ac_cv_search_strerror+set}" = set; then 3198 : 3199else 3200 ac_cv_search_strerror=no 3201fi 3202rm conftest.$ac_ext 3203LIBS=$ac_func_search_save_LIBS 3204fi 3205{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 3206echo "${ECHO_T}$ac_cv_search_strerror" >&6; } 3207ac_res=$ac_cv_search_strerror 3208if test "$ac_res" != no; then 3209 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 3210 3211fi 3212 3213 3214BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in` 3215am__api_version="1.9" 3216# Find a good install program. We prefer a C program (faster), 3217# so one script is as good as another. But avoid the broken or 3218# incompatible versions: 3219# SysV /etc/install, /usr/sbin/install 3220# SunOS /usr/etc/install 3221# IRIX /sbin/install 3222# AIX /bin/install 3223# AmigaOS /C/install, which installs bootblocks on floppy discs 3224# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3225# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3226# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3227# OS/2's system install, which has a completely different semantic 3228# ./install, which can be erroneously created by make from ./install.sh. 3229{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3230echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 3231if test -z "$INSTALL"; then 3232if test "${ac_cv_path_install+set}" = set; then 3233 echo $ECHO_N "(cached) $ECHO_C" >&6 3234else 3235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3236for as_dir in $PATH 3237do 3238 IFS=$as_save_IFS 3239 test -z "$as_dir" && as_dir=. 3240 # Account for people who put trailing slashes in PATH elements. 3241case $as_dir/ in 3242 ./ | .// | /cC/* | \ 3243 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3244 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3245 /usr/ucb/* ) ;; 3246 *) 3247 # OSF1 and SCO ODT 3.0 have their own names for install. 3248 # Don't use installbsd from OSF since it installs stuff as root 3249 # by default. 3250 for ac_prog in ginstall scoinst install; do 3251 for ac_exec_ext in '' $ac_executable_extensions; do 3252 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then 3253 if test $ac_prog = install && 3254 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3255 # AIX install. It has an incompatible calling convention. 3256 : 3257 elif test $ac_prog = install && 3258 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3259 # program-specific install script used by HP pwplus--don't use. 3260 : 3261 else 3262 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3263 break 3 3264 fi 3265 fi 3266 done 3267 done 3268 ;; 3269esac 3270done 3271IFS=$as_save_IFS 3272 3273 3274fi 3275 if test "${ac_cv_path_install+set}" = set; then 3276 INSTALL=$ac_cv_path_install 3277 else 3278 # As a last resort, use the slow shell script. Don't cache a 3279 # value for INSTALL within a source directory, because that will 3280 # break other packages using the cache if that directory is 3281 # removed, or if the value is a relative name. 3282 INSTALL="$SHELL $ac_install_sh" 3283 fi 3284fi 3285{ echo "$as_me:$LINENO: result: $INSTALL" >&5 3286echo "${ECHO_T}$INSTALL" >&6; } 3287 3288# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3289# It thinks the first close brace ends the variable substitution. 3290test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3291 3292test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3293 3294test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3295 3296{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 3297echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 3298# Just in case 3299sleep 1 3300echo timestamp > conftest.file 3301# Do `set' in a subshell so we don't clobber the current shell's 3302# arguments. Must try -L first in case configure is actually a 3303# symlink; some systems play weird games with the mod time of symlinks 3304# (eg FreeBSD returns the mod time of the symlink's containing 3305# directory). 3306if ( 3307 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 3308 if test "$*" = "X"; then 3309 # -L didn't work. 3310 set X `ls -t $srcdir/configure conftest.file` 3311 fi 3312 rm -f conftest.file 3313 if test "$*" != "X $srcdir/configure conftest.file" \ 3314 && test "$*" != "X conftest.file $srcdir/configure"; then 3315 3316 # If neither matched, then we have a broken ls. This can happen 3317 # if, for instance, CONFIG_SHELL is bash and it inherits a 3318 # broken ls alias from the environment. This has actually 3319 # happened. Such a system could not be considered "sane". 3320 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 3321alias in your environment" >&5 3322echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 3323alias in your environment" >&2;} 3324 { (exit 1); exit 1; }; } 3325 fi 3326 3327 test "$2" = conftest.file 3328 ) 3329then 3330 # Ok. 3331 : 3332else 3333 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 3334Check your system clock" >&5 3335echo "$as_me: error: newly created file is older than distributed files! 3336Check your system clock" >&2;} 3337 { (exit 1); exit 1; }; } 3338fi 3339{ echo "$as_me:$LINENO: result: yes" >&5 3340echo "${ECHO_T}yes" >&6; } 3341test "$program_prefix" != NONE && 3342 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3343# Use a double $ so make ignores it. 3344test "$program_suffix" != NONE && 3345 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3346# Double any \ or $. echo might interpret backslashes. 3347# By default was `s,x,x', remove it if useless. 3348cat <<\_ACEOF >conftest.sed 3349s/[\\$]/&&/g;s/;s,x,x,$// 3350_ACEOF 3351program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 3352rm -f conftest.sed 3353 3354# expand $ac_aux_dir to an absolute path 3355am_aux_dir=`cd $ac_aux_dir && pwd` 3356 3357test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 3358# Use eval to expand $SHELL 3359if eval "$MISSING --run true"; then 3360 am_missing_run="$MISSING --run " 3361else 3362 am_missing_run= 3363 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 3364echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 3365fi 3366 3367if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 3368 # We used to keeping the `.' as first argument, in order to 3369 # allow $(mkdir_p) to be used without argument. As in 3370 # $(mkdir_p) $(somedir) 3371 # where $(somedir) is conditionally defined. However this is wrong 3372 # for two reasons: 3373 # 1. if the package is installed by a user who cannot write `.' 3374 # make install will fail, 3375 # 2. the above comment should most certainly read 3376 # $(mkdir_p) $(DESTDIR)$(somedir) 3377 # so it does not work when $(somedir) is undefined and 3378 # $(DESTDIR) is not. 3379 # To support the latter case, we have to write 3380 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 3381 # so the `.' trick is pointless. 3382 mkdir_p='mkdir -p --' 3383else 3384 # On NextStep and OpenStep, the `mkdir' command does not 3385 # recognize any option. It will interpret all options as 3386 # directories to create, and then abort because `.' already 3387 # exists. 3388 for d in ./-p ./--version; 3389 do 3390 test -d $d && rmdir $d 3391 done 3392 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 3393 if test -f "$ac_aux_dir/mkinstalldirs"; then 3394 mkdir_p='$(mkinstalldirs)' 3395 else 3396 mkdir_p='$(install_sh) -d' 3397 fi 3398fi 3399 3400for ac_prog in gawk mawk nawk awk 3401do 3402 # Extract the first word of "$ac_prog", so it can be a program name with args. 3403set dummy $ac_prog; ac_word=$2 3404{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3405echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3406if test "${ac_cv_prog_AWK+set}" = set; then 3407 echo $ECHO_N "(cached) $ECHO_C" >&6 3408else 3409 if test -n "$AWK"; then 3410 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3411else 3412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3413for as_dir in $PATH 3414do 3415 IFS=$as_save_IFS 3416 test -z "$as_dir" && as_dir=. 3417 for ac_exec_ext in '' $ac_executable_extensions; do 3418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 3419 ac_cv_prog_AWK="$ac_prog" 3420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3421 break 2 3422 fi 3423done 3424done 3425IFS=$as_save_IFS 3426 3427fi 3428fi 3429AWK=$ac_cv_prog_AWK 3430if test -n "$AWK"; then 3431 { echo "$as_me:$LINENO: result: $AWK" >&5 3432echo "${ECHO_T}$AWK" >&6; } 3433else 3434 { echo "$as_me:$LINENO: result: no" >&5 3435echo "${ECHO_T}no" >&6; } 3436fi 3437 3438 3439 test -n "$AWK" && break 3440done 3441 3442{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3443echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 3444set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3445if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 3446 echo $ECHO_N "(cached) $ECHO_C" >&6 3447else 3448 cat >conftest.make <<\_ACEOF 3449SHELL = /bin/sh 3450all: 3451 @echo '@@@%%%=$(MAKE)=@@@%%%' 3452_ACEOF 3453# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3454case `${MAKE-make} -f conftest.make 2>/dev/null` in 3455 *@@@%%%=?*=@@@%%%*) 3456 eval ac_cv_prog_make_${ac_make}_set=yes;; 3457 *) 3458 eval ac_cv_prog_make_${ac_make}_set=no;; 3459esac 3460rm -f conftest.make 3461fi 3462if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3463 { echo "$as_me:$LINENO: result: yes" >&5 3464echo "${ECHO_T}yes" >&6; } 3465 SET_MAKE= 3466else 3467 { echo "$as_me:$LINENO: result: no" >&5 3468echo "${ECHO_T}no" >&6; } 3469 SET_MAKE="MAKE=${MAKE-make}" 3470fi 3471 3472rm -rf .tst 2>/dev/null 3473mkdir .tst 2>/dev/null 3474if test -d .tst; then 3475 am__leading_dot=. 3476else 3477 am__leading_dot=_ 3478fi 3479rmdir .tst 2>/dev/null 3480 3481DEPDIR="${am__leading_dot}deps" 3482 3483ac_config_commands="$ac_config_commands depfiles" 3484 3485 3486am_make=${MAKE-make} 3487cat > confinc << 'END' 3488am__doit: 3489 @echo done 3490.PHONY: am__doit 3491END 3492# If we don't find an include directive, just comment out the code. 3493{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3494echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 3495am__include="#" 3496am__quote= 3497_am_result=none 3498# First try GNU make style include. 3499echo "include confinc" > confmf 3500# We grep out `Entering directory' and `Leaving directory' 3501# messages which can occur if `w' ends up in MAKEFLAGS. 3502# In particular we don't look at `^make:' because GNU make might 3503# be invoked under some other name (usually "gmake"), in which 3504# case it prints its new name instead of `make'. 3505if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3506 am__include=include 3507 am__quote= 3508 _am_result=GNU 3509fi 3510# Now try BSD make style include. 3511if test "$am__include" = "#"; then 3512 echo '.include "confinc"' > confmf 3513 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3514 am__include=.include 3515 am__quote="\"" 3516 _am_result=BSD 3517 fi 3518fi 3519 3520 3521{ echo "$as_me:$LINENO: result: $_am_result" >&5 3522echo "${ECHO_T}$_am_result" >&6; } 3523rm -f confinc confmf 3524 3525# Check whether --enable-dependency-tracking was given. 3526if test "${enable_dependency_tracking+set}" = set; then 3527 enableval=$enable_dependency_tracking; 3528fi 3529 3530if test "x$enable_dependency_tracking" != xno; then 3531 am_depcomp="$ac_aux_dir/depcomp" 3532 AMDEPBACKSLASH='\' 3533fi 3534 3535 3536if test "x$enable_dependency_tracking" != xno; then 3537 AMDEP_TRUE= 3538 AMDEP_FALSE='#' 3539else 3540 AMDEP_TRUE='#' 3541 AMDEP_FALSE= 3542fi 3543 3544 3545 3546# test to see if srcdir already configured 3547if test "`cd $srcdir && pwd`" != "`pwd`" && 3548 test -f $srcdir/config.status; then 3549 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 3550echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 3551 { (exit 1); exit 1; }; } 3552fi 3553 3554# test whether we have cygpath 3555if test -z "$CYGPATH_W"; then 3556 if (cygpath --version) >/dev/null 2>/dev/null; then 3557 CYGPATH_W='cygpath -w' 3558 else 3559 CYGPATH_W=echo 3560 fi 3561fi 3562 3563 3564# Define the identity of the package. 3565 PACKAGE=ld 3566 VERSION=${BFD_VERSION} 3567 3568 3569cat >>confdefs.h <<_ACEOF 3570#define PACKAGE "$PACKAGE" 3571_ACEOF 3572 3573 3574cat >>confdefs.h <<_ACEOF 3575#define VERSION "$VERSION" 3576_ACEOF 3577 3578# Some tools Automake needs. 3579 3580ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3581 3582 3583AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3584 3585 3586AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3587 3588 3589AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3590 3591 3592MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3593 3594install_sh=${install_sh-"$am_aux_dir/install-sh"} 3595 3596# Installed binaries are usually stripped using `strip' when the user 3597# run `make install-strip'. However `strip' might not be the right 3598# tool to use in cross-compilation environments, therefore Automake 3599# will honor the `STRIP' environment variable to overrule this program. 3600if test "$cross_compiling" != no; then 3601 if test -n "$ac_tool_prefix"; then 3602 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3603set dummy ${ac_tool_prefix}strip; ac_word=$2 3604{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3606if test "${ac_cv_prog_STRIP+set}" = set; then 3607 echo $ECHO_N "(cached) $ECHO_C" >&6 3608else 3609 if test -n "$STRIP"; then 3610 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3611else 3612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3613for as_dir in $PATH 3614do 3615 IFS=$as_save_IFS 3616 test -z "$as_dir" && as_dir=. 3617 for ac_exec_ext in '' $ac_executable_extensions; do 3618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 3619 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3621 break 2 3622 fi 3623done 3624done 3625IFS=$as_save_IFS 3626 3627fi 3628fi 3629STRIP=$ac_cv_prog_STRIP 3630if test -n "$STRIP"; then 3631 { echo "$as_me:$LINENO: result: $STRIP" >&5 3632echo "${ECHO_T}$STRIP" >&6; } 3633else 3634 { echo "$as_me:$LINENO: result: no" >&5 3635echo "${ECHO_T}no" >&6; } 3636fi 3637 3638 3639fi 3640if test -z "$ac_cv_prog_STRIP"; then 3641 ac_ct_STRIP=$STRIP 3642 # Extract the first word of "strip", so it can be a program name with args. 3643set dummy strip; ac_word=$2 3644{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3645echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3646if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 3647 echo $ECHO_N "(cached) $ECHO_C" >&6 3648else 3649 if test -n "$ac_ct_STRIP"; then 3650 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3651else 3652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3653for as_dir in $PATH 3654do 3655 IFS=$as_save_IFS 3656 test -z "$as_dir" && as_dir=. 3657 for ac_exec_ext in '' $ac_executable_extensions; do 3658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 3659 ac_cv_prog_ac_ct_STRIP="strip" 3660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3661 break 2 3662 fi 3663done 3664done 3665IFS=$as_save_IFS 3666 3667fi 3668fi 3669ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3670if test -n "$ac_ct_STRIP"; then 3671 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 3672echo "${ECHO_T}$ac_ct_STRIP" >&6; } 3673else 3674 { echo "$as_me:$LINENO: result: no" >&5 3675echo "${ECHO_T}no" >&6; } 3676fi 3677 3678 if test "x$ac_ct_STRIP" = x; then 3679 STRIP=":" 3680 else 3681 case $cross_compiling:$ac_tool_warned in 3682yes:) 3683{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3684whose name does not start with the host triplet. If you think this 3685configuration is useful to you, please write to autoconf@gnu.org." >&5 3686echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3687whose name does not start with the host triplet. If you think this 3688configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3689ac_tool_warned=yes ;; 3690esac 3691 STRIP=$ac_ct_STRIP 3692 fi 3693else 3694 STRIP="$ac_cv_prog_STRIP" 3695fi 3696 3697fi 3698INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 3699 3700# We need awk for the "check" target. The system "awk" is bad on 3701# some platforms. 3702# Always define AMTAR for backward compatibility. 3703 3704AMTAR=${AMTAR-"${am_missing_run}tar"} 3705 3706am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 3707 3708 3709 3710 3711depcc="$CC" am_compiler_list= 3712 3713{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3714echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3715if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3716 echo $ECHO_N "(cached) $ECHO_C" >&6 3717else 3718 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3719 # We make a subdir and do the tests there. Otherwise we can end up 3720 # making bogus files that we don't know about and never remove. For 3721 # instance it was reported that on HP-UX the gcc test will end up 3722 # making a dummy file named `D' -- because `-MD' means `put the output 3723 # in D'. 3724 mkdir conftest.dir 3725 # Copy depcomp to subdir because otherwise we won't find it if we're 3726 # using a relative directory. 3727 cp "$am_depcomp" conftest.dir 3728 cd conftest.dir 3729 # We will build objects and dependencies in a subdirectory because 3730 # it helps to detect inapplicable dependency modes. For instance 3731 # both Tru64's cc and ICC support -MD to output dependencies as a 3732 # side effect of compilation, but ICC will put the dependencies in 3733 # the current directory while Tru64 will put them in the object 3734 # directory. 3735 mkdir sub 3736 3737 am_cv_CC_dependencies_compiler_type=none 3738 if test "$am_compiler_list" = ""; then 3739 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3740 fi 3741 for depmode in $am_compiler_list; do 3742 # Setup a source with many dependencies, because some compilers 3743 # like to wrap large dependency lists on column 80 (with \), and 3744 # we should not choose a depcomp mode which is confused by this. 3745 # 3746 # We need to recreate these files for each test, as the compiler may 3747 # overwrite some of them when testing with obscure command lines. 3748 # This happens at least with the AIX C compiler. 3749 : > sub/conftest.c 3750 for i in 1 2 3 4 5 6; do 3751 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3752 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3753 # Solaris 8's {/usr,}/bin/sh. 3754 touch sub/conftst$i.h 3755 done 3756 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3757 3758 case $depmode in 3759 nosideeffect) 3760 # after this tag, mechanisms are not by side-effect, so they'll 3761 # only be used when explicitly requested 3762 if test "x$enable_dependency_tracking" = xyes; then 3763 continue 3764 else 3765 break 3766 fi 3767 ;; 3768 none) break ;; 3769 esac 3770 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3771 # mode. It turns out that the SunPro C++ compiler does not properly 3772 # handle `-M -o', and we need to detect this. 3773 if depmode=$depmode \ 3774 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3775 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3776 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3777 >/dev/null 2>conftest.err && 3778 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3779 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3780 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3781 # icc doesn't choke on unknown options, it will just issue warnings 3782 # or remarks (even with -Werror). So we grep stderr for any message 3783 # that says an option was ignored or not supported. 3784 # When given -MP, icc 7.0 and 7.1 complain thusly: 3785 # icc: Command line warning: ignoring option '-M'; no argument required 3786 # The diagnosis changed in icc 8.0: 3787 # icc: Command line remark: option '-MP' not supported 3788 if (grep 'ignoring option' conftest.err || 3789 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3790 am_cv_CC_dependencies_compiler_type=$depmode 3791 break 3792 fi 3793 fi 3794 done 3795 3796 cd .. 3797 rm -rf conftest.dir 3798else 3799 am_cv_CC_dependencies_compiler_type=none 3800fi 3801 3802fi 3803{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3804echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 3805CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3806 3807 3808 3809if 3810 test "x$enable_dependency_tracking" != xno \ 3811 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3812 am__fastdepCC_TRUE= 3813 am__fastdepCC_FALSE='#' 3814else 3815 am__fastdepCC_TRUE='#' 3816 am__fastdepCC_FALSE= 3817fi 3818 3819 3820 3821 3822# Check whether --enable-shared was given. 3823if test "${enable_shared+set}" = set; then 3824 enableval=$enable_shared; p=${PACKAGE-default} 3825 case $enableval in 3826 yes) enable_shared=yes ;; 3827 no) enable_shared=no ;; 3828 *) 3829 enable_shared=no 3830 # Look at the argument we got. We use all the common list separators. 3831 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3832 for pkg in $enableval; do 3833 IFS="$lt_save_ifs" 3834 if test "X$pkg" = "X$p"; then 3835 enable_shared=yes 3836 fi 3837 done 3838 IFS="$lt_save_ifs" 3839 ;; 3840 esac 3841else 3842 enable_shared=yes 3843fi 3844 3845 3846# Check whether --enable-static was given. 3847if test "${enable_static+set}" = set; then 3848 enableval=$enable_static; p=${PACKAGE-default} 3849 case $enableval in 3850 yes) enable_static=yes ;; 3851 no) enable_static=no ;; 3852 *) 3853 enable_static=no 3854 # Look at the argument we got. We use all the common list separators. 3855 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3856 for pkg in $enableval; do 3857 IFS="$lt_save_ifs" 3858 if test "X$pkg" = "X$p"; then 3859 enable_static=yes 3860 fi 3861 done 3862 IFS="$lt_save_ifs" 3863 ;; 3864 esac 3865else 3866 enable_static=yes 3867fi 3868 3869 3870# Check whether --enable-fast-install was given. 3871if test "${enable_fast_install+set}" = set; then 3872 enableval=$enable_fast_install; p=${PACKAGE-default} 3873 case $enableval in 3874 yes) enable_fast_install=yes ;; 3875 no) enable_fast_install=no ;; 3876 *) 3877 enable_fast_install=no 3878 # Look at the argument we got. We use all the common list separators. 3879 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3880 for pkg in $enableval; do 3881 IFS="$lt_save_ifs" 3882 if test "X$pkg" = "X$p"; then 3883 enable_fast_install=yes 3884 fi 3885 done 3886 IFS="$lt_save_ifs" 3887 ;; 3888 esac 3889else 3890 enable_fast_install=yes 3891fi 3892 3893 3894{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3895echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } 3896if test "${lt_cv_path_SED+set}" = set; then 3897 echo $ECHO_N "(cached) $ECHO_C" >&6 3898else 3899 # Loop through the user's path and test for sed and gsed. 3900# Then use that list of seds as ones to test for truncation. 3901test -z "$as_executable_p" && as_executable_p="test -f" 3902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3903for as_dir in $PATH 3904do 3905 IFS=$as_save_IFS 3906 test -z "$as_dir" && as_dir=. 3907 for lt_ac_prog in sed gsed; do 3908 for ac_exec_ext in '' $ac_executable_extensions; do 3909 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 3910 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3911 fi 3912 done 3913 done 3914done 3915IFS=$as_save_IFS 3916lt_ac_max=0 3917lt_ac_count=0 3918# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3919# along with /bin/sed that truncates output. 3920for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3921 test ! -f $lt_ac_sed && continue 3922 cat /dev/null > conftest.in 3923 lt_ac_count=0 3924 echo ${ECHO_N-$ac_n} "0123456789$ECHO_C" >conftest.in 3925 # Check for GNU sed and select it if it is found. 3926 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3927 lt_cv_path_SED=$lt_ac_sed 3928 break 3929 fi 3930 while true; do 3931 cat conftest.in conftest.in >conftest.tmp 3932 mv conftest.tmp conftest.in 3933 cp conftest.in conftest.nl 3934 echo >>conftest.nl 3935 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3936 cmp -s conftest.out conftest.nl || break 3937 # 10000 chars as input seems more than enough 3938 test $lt_ac_count -gt 10 && break 3939 lt_ac_count=`expr $lt_ac_count + 1` 3940 if test $lt_ac_count -gt $lt_ac_max; then 3941 lt_ac_max=$lt_ac_count 3942 lt_cv_path_SED=$lt_ac_sed 3943 fi 3944 done 3945done 3946 3947fi 3948 3949lt_cv_path_SED=${lt_cv_path_SED:-$SED} 3950SED=$lt_cv_path_SED 3951 3952{ echo "$as_me:$LINENO: result: $SED" >&5 3953echo "${ECHO_T}$SED" >&6; } 3954 3955{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3956echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3957if test "${ac_cv_path_GREP+set}" = set; then 3958 echo $ECHO_N "(cached) $ECHO_C" >&6 3959else 3960 # Extract the first word of "grep ggrep" to use in msg output 3961if test -z "$GREP"; then 3962set dummy grep ggrep; ac_prog_name=$2 3963if test "${ac_cv_path_GREP+set}" = set; then 3964 echo $ECHO_N "(cached) $ECHO_C" >&6 3965else 3966 ac_path_GREP_found=false 3967# Loop through the user's path and test for each of PROGNAME-LIST 3968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3969for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3970do 3971 IFS=$as_save_IFS 3972 test -z "$as_dir" && as_dir=. 3973 for ac_prog in grep ggrep; do 3974 for ac_exec_ext in '' $ac_executable_extensions; do 3975 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3976 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue 3977 # Check for GNU ac_path_GREP and select it if it is found. 3978 # Check for GNU $ac_path_GREP 3979case `"$ac_path_GREP" --version 2>&1` in 3980*GNU*) 3981 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3982*) 3983 ac_count=0 3984 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3985 while : 3986 do 3987 cat "conftest.in" "conftest.in" >"conftest.tmp" 3988 mv "conftest.tmp" "conftest.in" 3989 cp "conftest.in" "conftest.nl" 3990 echo 'GREP' >> "conftest.nl" 3991 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3992 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3993 ac_count=`expr $ac_count + 1` 3994 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3995 # Best one so far, save it but keep looking for a better one 3996 ac_cv_path_GREP="$ac_path_GREP" 3997 ac_path_GREP_max=$ac_count 3998 fi 3999 # 10*(2^10) chars as input seems more than enough 4000 test $ac_count -gt 10 && break 4001 done 4002 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4003esac 4004 4005 4006 $ac_path_GREP_found && break 3 4007 done 4008done 4009 4010done 4011IFS=$as_save_IFS 4012 4013 4014fi 4015 4016GREP="$ac_cv_path_GREP" 4017if test -z "$GREP"; then 4018 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4019echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4020 { (exit 1); exit 1; }; } 4021fi 4022 4023else 4024 ac_cv_path_GREP=$GREP 4025fi 4026 4027 4028fi 4029{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4030echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 4031 GREP="$ac_cv_path_GREP" 4032 4033 4034{ echo "$as_me:$LINENO: checking for egrep" >&5 4035echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 4036if test "${ac_cv_path_EGREP+set}" = set; then 4037 echo $ECHO_N "(cached) $ECHO_C" >&6 4038else 4039 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4040 then ac_cv_path_EGREP="$GREP -E" 4041 else 4042 # Extract the first word of "egrep" to use in msg output 4043if test -z "$EGREP"; then 4044set dummy egrep; ac_prog_name=$2 4045if test "${ac_cv_path_EGREP+set}" = set; then 4046 echo $ECHO_N "(cached) $ECHO_C" >&6 4047else 4048 ac_path_EGREP_found=false 4049# Loop through the user's path and test for each of PROGNAME-LIST 4050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4051for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4052do 4053 IFS=$as_save_IFS 4054 test -z "$as_dir" && as_dir=. 4055 for ac_prog in egrep; do 4056 for ac_exec_ext in '' $ac_executable_extensions; do 4057 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4058 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue 4059 # Check for GNU ac_path_EGREP and select it if it is found. 4060 # Check for GNU $ac_path_EGREP 4061case `"$ac_path_EGREP" --version 2>&1` in 4062*GNU*) 4063 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4064*) 4065 ac_count=0 4066 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4067 while : 4068 do 4069 cat "conftest.in" "conftest.in" >"conftest.tmp" 4070 mv "conftest.tmp" "conftest.in" 4071 cp "conftest.in" "conftest.nl" 4072 echo 'EGREP' >> "conftest.nl" 4073 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4074 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4075 ac_count=`expr $ac_count + 1` 4076 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4077 # Best one so far, save it but keep looking for a better one 4078 ac_cv_path_EGREP="$ac_path_EGREP" 4079 ac_path_EGREP_max=$ac_count 4080 fi 4081 # 10*(2^10) chars as input seems more than enough 4082 test $ac_count -gt 10 && break 4083 done 4084 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4085esac 4086 4087 4088 $ac_path_EGREP_found && break 3 4089 done 4090done 4091 4092done 4093IFS=$as_save_IFS 4094 4095 4096fi 4097 4098EGREP="$ac_cv_path_EGREP" 4099if test -z "$EGREP"; then 4100 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4101echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4102 { (exit 1); exit 1; }; } 4103fi 4104 4105else 4106 ac_cv_path_EGREP=$EGREP 4107fi 4108 4109 4110 fi 4111fi 4112{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4113echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 4114 EGREP="$ac_cv_path_EGREP" 4115 4116 4117 4118# Check whether --with-gnu-ld was given. 4119if test "${with_gnu_ld+set}" = set; then 4120 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4121else 4122 with_gnu_ld=no 4123fi 4124 4125ac_prog=ld 4126if test "$GCC" = yes; then 4127 # Check if gcc -print-prog-name=ld gives a path. 4128 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4129echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 4130 case $host in 4131 *-*-mingw*) 4132 # gcc leaves a trailing carriage return which upsets mingw 4133 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4134 *) 4135 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4136 esac 4137 case $ac_prog in 4138 # Accept absolute paths. 4139 [\\/]* | ?:[\\/]*) 4140 re_direlt='/[^/][^/]*/\.\./' 4141 # Canonicalize the pathname of ld 4142 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 4143 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 4144 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 4145 done 4146 test -z "$LD" && LD="$ac_prog" 4147 ;; 4148 "") 4149 # If it fails, then pretend we aren't using GCC. 4150 ac_prog=ld 4151 ;; 4152 *) 4153 # If it is relative, then search for the first ld in PATH. 4154 with_gnu_ld=unknown 4155 ;; 4156 esac 4157elif test "$with_gnu_ld" = yes; then 4158 { echo "$as_me:$LINENO: checking for GNU ld" >&5 4159echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 4160else 4161 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4162echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 4163fi 4164if test "${lt_cv_path_LD+set}" = set; then 4165 echo $ECHO_N "(cached) $ECHO_C" >&6 4166else 4167 if test -z "$LD"; then 4168 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4169 for ac_dir in $PATH; do 4170 IFS="$lt_save_ifs" 4171 test -z "$ac_dir" && ac_dir=. 4172 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4173 lt_cv_path_LD="$ac_dir/$ac_prog" 4174 # Check to see if the program is GNU ld. I'd rather use --version, 4175 # but apparently some variants of GNU ld only accept -v. 4176 # Break only if it was the GNU/non-GNU ld that we prefer. 4177 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4178 *GNU* | *'with BFD'*) 4179 test "$with_gnu_ld" != no && break 4180 ;; 4181 *) 4182 test "$with_gnu_ld" != yes && break 4183 ;; 4184 esac 4185 fi 4186 done 4187 IFS="$lt_save_ifs" 4188else 4189 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4190fi 4191fi 4192 4193LD="$lt_cv_path_LD" 4194if test -n "$LD"; then 4195 { echo "$as_me:$LINENO: result: $LD" >&5 4196echo "${ECHO_T}$LD" >&6; } 4197else 4198 { echo "$as_me:$LINENO: result: no" >&5 4199echo "${ECHO_T}no" >&6; } 4200fi 4201test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4202echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4203 { (exit 1); exit 1; }; } 4204{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4205echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 4206if test "${lt_cv_prog_gnu_ld+set}" = set; then 4207 echo $ECHO_N "(cached) $ECHO_C" >&6 4208else 4209 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4210case `$LD -v 2>&1 </dev/null` in 4211*GNU* | *'with BFD'*) 4212 lt_cv_prog_gnu_ld=yes 4213 ;; 4214*) 4215 lt_cv_prog_gnu_ld=no 4216 ;; 4217esac 4218fi 4219{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4220echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 4221with_gnu_ld=$lt_cv_prog_gnu_ld 4222 4223 4224{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4225echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } 4226if test "${lt_cv_ld_reload_flag+set}" = set; then 4227 echo $ECHO_N "(cached) $ECHO_C" >&6 4228else 4229 lt_cv_ld_reload_flag='-r' 4230fi 4231{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4232echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } 4233reload_flag=$lt_cv_ld_reload_flag 4234case $reload_flag in 4235"" | " "*) ;; 4236*) reload_flag=" $reload_flag" ;; 4237esac 4238reload_cmds='$LD$reload_flag -o $output$reload_objs' 4239case $host_os in 4240 darwin*) 4241 if test "$GCC" = yes; then 4242 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4243 else 4244 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4245 fi 4246 ;; 4247esac 4248 4249{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4250echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 4251if test "${lt_cv_path_NM+set}" = set; then 4252 echo $ECHO_N "(cached) $ECHO_C" >&6 4253else 4254 if test -n "$NM"; then 4255 # Let the user override the test. 4256 lt_cv_path_NM="$NM" 4257else 4258 lt_nm_to_check="${ac_tool_prefix}nm" 4259 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4260 lt_nm_to_check="$lt_nm_to_check nm" 4261 fi 4262 for lt_tmp_nm in $lt_nm_to_check; do 4263 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4264 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4265 IFS="$lt_save_ifs" 4266 test -z "$ac_dir" && ac_dir=. 4267 tmp_nm="$ac_dir/$lt_tmp_nm" 4268 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4269 # Check to see if the nm accepts a BSD-compat flag. 4270 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 4271 # nm: unknown option "B" ignored 4272 # Tru64's nm complains that /dev/null is an invalid object file 4273 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4274 */dev/null* | *'Invalid file or object type'*) 4275 lt_cv_path_NM="$tmp_nm -B" 4276 break 4277 ;; 4278 *) 4279 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4280 */dev/null*) 4281 lt_cv_path_NM="$tmp_nm -p" 4282 break 4283 ;; 4284 *) 4285 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4286 continue # so that we can try to find one that supports BSD flags 4287 ;; 4288 esac 4289 ;; 4290 esac 4291 fi 4292 done 4293 IFS="$lt_save_ifs" 4294 done 4295 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4296fi 4297fi 4298{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4299echo "${ECHO_T}$lt_cv_path_NM" >&6; } 4300NM="$lt_cv_path_NM" 4301 4302{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 4303echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 4304LN_S=$as_ln_s 4305if test "$LN_S" = "ln -s"; then 4306 { echo "$as_me:$LINENO: result: yes" >&5 4307echo "${ECHO_T}yes" >&6; } 4308else 4309 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4310echo "${ECHO_T}no, using $LN_S" >&6; } 4311fi 4312 4313{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 4314echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } 4315if test "${lt_cv_deplibs_check_method+set}" = set; then 4316 echo $ECHO_N "(cached) $ECHO_C" >&6 4317else 4318 lt_cv_file_magic_cmd='$MAGIC_CMD' 4319lt_cv_file_magic_test_file= 4320lt_cv_deplibs_check_method='unknown' 4321# Need to set the preceding variable on all platforms that support 4322# interlibrary dependencies. 4323# 'none' -- dependencies not supported. 4324# 'unknown' -- same as none, but documents that we really don't know. 4325# 'pass_all' -- all dependencies passed with no checks. 4326# 'test_compile' -- check by making test program. 4327# 'file_magic [[regex]]' -- check by looking for files in library path 4328# which responds to the $file_magic_cmd with a given extended regex. 4329# If you have 'file' or equivalent on your system and you're not sure 4330# whether 'pass_all' will *always* work, you probably want this one. 4331 4332case $host_os in 4333aix4* | aix5*) 4334 lt_cv_deplibs_check_method=pass_all 4335 ;; 4336 4337beos*) 4338 lt_cv_deplibs_check_method=pass_all 4339 ;; 4340 4341bsdi[45]*) 4342 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4343 lt_cv_file_magic_cmd='/usr/bin/file -L' 4344 lt_cv_file_magic_test_file=/shlib/libc.so 4345 ;; 4346 4347cygwin*) 4348 # func_win32_libid is a shell function defined in ltmain.sh 4349 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4350 lt_cv_file_magic_cmd='func_win32_libid' 4351 ;; 4352 4353mingw* | pw32*) 4354 # Base MSYS/MinGW do not provide the 'file' command needed by 4355 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 4356 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4357 lt_cv_file_magic_cmd='$OBJDUMP -f' 4358 ;; 4359 4360darwin* | rhapsody*) 4361 lt_cv_deplibs_check_method=pass_all 4362 ;; 4363 4364freebsd* | kfreebsd*-gnu | dragonfly*) 4365 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4366 case $host_cpu in 4367 i*86 ) 4368 # Not sure whether the presence of OpenBSD here was a mistake. 4369 # Let's accept both of them until this is cleared up. 4370 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4371 lt_cv_file_magic_cmd=/usr/bin/file 4372 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4373 ;; 4374 esac 4375 else 4376 lt_cv_deplibs_check_method=pass_all 4377 fi 4378 ;; 4379 4380gnu*) 4381 lt_cv_deplibs_check_method=pass_all 4382 ;; 4383 4384hpux10.20* | hpux11*) 4385 lt_cv_file_magic_cmd=/usr/bin/file 4386 case $host_cpu in 4387 ia64*) 4388 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4389 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4390 ;; 4391 hppa*64*) 4392 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]' 4393 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4394 ;; 4395 *) 4396 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4397 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4398 ;; 4399 esac 4400 ;; 4401 4402interix3*) 4403 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4404 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4405 ;; 4406 4407irix5* | irix6* | nonstopux*) 4408 case $LD in 4409 *-32|*"-32 ") libmagic=32-bit;; 4410 *-n32|*"-n32 ") libmagic=N32;; 4411 *-64|*"-64 ") libmagic=64-bit;; 4412 *) libmagic=never-match;; 4413 esac 4414 lt_cv_deplibs_check_method=pass_all 4415 ;; 4416 4417# This must be Linux ELF. 4418linux*) 4419 lt_cv_deplibs_check_method=pass_all 4420 ;; 4421 4422mirbsd*) 4423 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4424 ;; 4425 4426netbsd*) 4427 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4428 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4429 else 4430 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4431 fi 4432 ;; 4433 4434newos6*) 4435 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4436 lt_cv_file_magic_cmd=/usr/bin/file 4437 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4438 ;; 4439 4440nto-qnx*) 4441 lt_cv_deplibs_check_method=unknown 4442 ;; 4443 4444openbsd*) 4445 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4446 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4447 else 4448 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4449 fi 4450 ;; 4451 4452osf3* | osf4* | osf5*) 4453 lt_cv_deplibs_check_method=pass_all 4454 ;; 4455 4456rdos*) 4457 lt_cv_deplibs_check_method=pass_all 4458 ;; 4459 4460solaris*) 4461 lt_cv_deplibs_check_method=pass_all 4462 ;; 4463 4464sysv4 | sysv4.3*) 4465 case $host_vendor in 4466 motorola) 4467 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]' 4468 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4469 ;; 4470 ncr) 4471 lt_cv_deplibs_check_method=pass_all 4472 ;; 4473 sequent) 4474 lt_cv_file_magic_cmd='/bin/file' 4475 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4476 ;; 4477 sni) 4478 lt_cv_file_magic_cmd='/bin/file' 4479 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4480 lt_cv_file_magic_test_file=/lib/libc.so 4481 ;; 4482 siemens) 4483 lt_cv_deplibs_check_method=pass_all 4484 ;; 4485 pc) 4486 lt_cv_deplibs_check_method=pass_all 4487 ;; 4488 esac 4489 ;; 4490 4491sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4492 lt_cv_deplibs_check_method=pass_all 4493 ;; 4494esac 4495 4496fi 4497{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4498echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 4499file_magic_cmd=$lt_cv_file_magic_cmd 4500deplibs_check_method=$lt_cv_deplibs_check_method 4501test -z "$deplibs_check_method" && deplibs_check_method=unknown 4502 4503 4504 4505 4506# If no C compiler was specified, use CC. 4507LTCC=${LTCC-"$CC"} 4508 4509# If no C compiler flags were specified, use CFLAGS. 4510LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4511 4512# Allow CC to be a program name with arguments. 4513compiler=$CC 4514 4515# The user is always right. 4516if test "${PATH_SEPARATOR+set}" != set; then 4517 echo "#! /bin/sh" >conf$$.sh 4518 echo "exit 0" >>conf$$.sh 4519 chmod +x conf$$.sh 4520 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 4521 PATH_SEPARATOR=';' 4522 else 4523 PATH_SEPARATOR=: 4524 fi 4525 rm -f conf$$.sh 4526fi 4527 4528# Check whether --enable-libtool-lock was given. 4529if test "${enable_libtool_lock+set}" = set; then 4530 enableval=$enable_libtool_lock; 4531fi 4532 4533test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4534 4535# Some flags need to be propagated to the compiler or linker for good 4536# libtool support. 4537case $host in 4538ia64-*-hpux*) 4539 # Find out which ABI we are using. 4540 echo 'int i;' > conftest.$ac_ext 4541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4542 (eval $ac_compile) 2>&5 4543 ac_status=$? 4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4545 (exit $ac_status); }; then 4546 case `/usr/bin/file conftest.$ac_objext` in 4547 *ELF-32*) 4548 HPUX_IA64_MODE="32" 4549 ;; 4550 *ELF-64*) 4551 HPUX_IA64_MODE="64" 4552 ;; 4553 esac 4554 fi 4555 rm -rf conftest* 4556 ;; 4557*-*-irix6*) 4558 # Find out which ABI we are using. 4559 echo '#line 4559 "configure"' > conftest.$ac_ext 4560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4561 (eval $ac_compile) 2>&5 4562 ac_status=$? 4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4564 (exit $ac_status); }; then 4565 if test "$lt_cv_prog_gnu_ld" = yes; then 4566 case `/usr/bin/file conftest.$ac_objext` in 4567 *32-bit*) 4568 LD="${LD-ld} -melf32bsmip" 4569 ;; 4570 *N32*) 4571 LD="${LD-ld} -melf32bmipn32" 4572 ;; 4573 *64-bit*) 4574 LD="${LD-ld} -melf64bmip" 4575 ;; 4576 esac 4577 else 4578 case `/usr/bin/file conftest.$ac_objext` in 4579 *32-bit*) 4580 LD="${LD-ld} -32" 4581 ;; 4582 *N32*) 4583 LD="${LD-ld} -n32" 4584 ;; 4585 *64-bit*) 4586 LD="${LD-ld} -64" 4587 ;; 4588 esac 4589 fi 4590 fi 4591 rm -rf conftest* 4592 ;; 4593 4594x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 4595 # Find out which ABI we are using. 4596 echo 'int i;' > conftest.$ac_ext 4597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4598 (eval $ac_compile) 2>&5 4599 ac_status=$? 4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4601 (exit $ac_status); }; then 4602 case `/usr/bin/file conftest.o` in 4603 *32-bit*) 4604 case $host in 4605 x86_64-*linux*) 4606 LD="${LD-ld} -m elf_i386" 4607 ;; 4608 ppc64-*linux*|powerpc64-*linux*) 4609 LD="${LD-ld} -m elf32ppclinux" 4610 ;; 4611 s390x-*linux*) 4612 LD="${LD-ld} -m elf_s390" 4613 ;; 4614 sparc64-*linux*) 4615 LD="${LD-ld} -m elf32_sparc" 4616 ;; 4617 esac 4618 ;; 4619 *64-bit*) 4620 case $host in 4621 x86_64-*linux*) 4622 LD="${LD-ld} -m elf_x86_64" 4623 ;; 4624 ppc*-*linux*|powerpc*-*linux*) 4625 LD="${LD-ld} -m elf64ppc" 4626 ;; 4627 s390*-*linux*) 4628 LD="${LD-ld} -m elf64_s390" 4629 ;; 4630 sparc*-*linux*) 4631 LD="${LD-ld} -m elf64_sparc" 4632 ;; 4633 esac 4634 ;; 4635 esac 4636 fi 4637 rm -rf conftest* 4638 ;; 4639 4640*-*-sco3.2v5*) 4641 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4642 SAVE_CFLAGS="$CFLAGS" 4643 CFLAGS="$CFLAGS -belf" 4644 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4645echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } 4646if test "${lt_cv_cc_needs_belf+set}" = set; then 4647 echo $ECHO_N "(cached) $ECHO_C" >&6 4648else 4649 ac_ext=c 4650ac_cpp='$CPP $CPPFLAGS' 4651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4653ac_compiler_gnu=$ac_cv_c_compiler_gnu 4654 4655 cat >conftest.$ac_ext <<_ACEOF 4656/* confdefs.h. */ 4657_ACEOF 4658cat confdefs.h >>conftest.$ac_ext 4659cat >>conftest.$ac_ext <<_ACEOF 4660/* end confdefs.h. */ 4661 4662int 4663main () 4664{ 4665 4666 ; 4667 return 0; 4668} 4669_ACEOF 4670rm -f conftest.$ac_objext conftest$ac_exeext 4671if { (ac_try="$ac_link" 4672case "(($ac_try" in 4673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4674 *) ac_try_echo=$ac_try;; 4675esac 4676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4677 (eval "$ac_link") 2>conftest.er1 4678 ac_status=$? 4679 grep -v '^ *+' conftest.er1 >conftest.err 4680 rm -f conftest.er1 4681 cat conftest.err >&5 4682 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4683 (exit $ac_status); } && 4684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4685 { (case "(($ac_try" in 4686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4687 *) ac_try_echo=$ac_try;; 4688esac 4689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4690 (eval "$ac_try") 2>&5 4691 ac_status=$? 4692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4693 (exit $ac_status); }; } && 4694 { ac_try='test -s conftest$ac_exeext' 4695 { (case "(($ac_try" in 4696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4697 *) ac_try_echo=$ac_try;; 4698esac 4699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4700 (eval "$ac_try") 2>&5 4701 ac_status=$? 4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4703 (exit $ac_status); }; }; then 4704 lt_cv_cc_needs_belf=yes 4705else 4706 echo "$as_me: failed program was:" >&5 4707sed 's/^/| /' conftest.$ac_ext >&5 4708 4709 lt_cv_cc_needs_belf=no 4710fi 4711 4712rm -f core conftest.err conftest.$ac_objext \ 4713 conftest$ac_exeext conftest.$ac_ext 4714 ac_ext=c 4715ac_cpp='$CPP $CPPFLAGS' 4716ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4717ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4718ac_compiler_gnu=$ac_cv_c_compiler_gnu 4719 4720fi 4721{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4722echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } 4723 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4724 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4725 CFLAGS="$SAVE_CFLAGS" 4726 fi 4727 ;; 4728sparc*-*solaris*) 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.o` in 4737 *64-bit*) 4738 case $lt_cv_prog_gnu_ld in 4739 yes*) LD="${LD-ld} -m elf64_sparc" ;; 4740 *) LD="${LD-ld} -64" ;; 4741 esac 4742 ;; 4743 esac 4744 fi 4745 rm -rf conftest* 4746 ;; 4747 4748 4749esac 4750 4751need_locks="$enable_libtool_lock" 4752 4753 4754ac_ext=c 4755ac_cpp='$CPP $CPPFLAGS' 4756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4758ac_compiler_gnu=$ac_cv_c_compiler_gnu 4759{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4760echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 4761# On Suns, sometimes $CPP names a directory. 4762if test -n "$CPP" && test -d "$CPP"; then 4763 CPP= 4764fi 4765if test -z "$CPP"; then 4766 if test "${ac_cv_prog_CPP+set}" = set; then 4767 echo $ECHO_N "(cached) $ECHO_C" >&6 4768else 4769 # Double quotes because CPP needs to be expanded 4770 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4771 do 4772 ac_preproc_ok=false 4773for ac_c_preproc_warn_flag in '' yes 4774do 4775 # Use a header file that comes with gcc, so configuring glibc 4776 # with a fresh cross-compiler works. 4777 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4778 # <limits.h> exists even on freestanding compilers. 4779 # On the NeXT, cc -E runs the code through the compiler's parser, 4780 # not just through cpp. "Syntax error" is here to catch this case. 4781 cat >conftest.$ac_ext <<_ACEOF 4782/* confdefs.h. */ 4783_ACEOF 4784cat confdefs.h >>conftest.$ac_ext 4785cat >>conftest.$ac_ext <<_ACEOF 4786/* end confdefs.h. */ 4787#ifdef __STDC__ 4788# include <limits.h> 4789#else 4790# include <assert.h> 4791#endif 4792 Syntax error 4793_ACEOF 4794if { (ac_try="$ac_cpp conftest.$ac_ext" 4795case "(($ac_try" in 4796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4797 *) ac_try_echo=$ac_try;; 4798esac 4799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4800 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4801 ac_status=$? 4802 grep -v '^ *+' conftest.er1 >conftest.err 4803 rm -f conftest.er1 4804 cat conftest.err >&5 4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4806 (exit $ac_status); } >/dev/null; then 4807 if test -s conftest.err; then 4808 ac_cpp_err=$ac_c_preproc_warn_flag 4809 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4810 else 4811 ac_cpp_err= 4812 fi 4813else 4814 ac_cpp_err=yes 4815fi 4816if test -z "$ac_cpp_err"; then 4817 : 4818else 4819 echo "$as_me: failed program was:" >&5 4820sed 's/^/| /' conftest.$ac_ext >&5 4821 4822 # Broken: fails on valid input. 4823continue 4824fi 4825 4826rm -f conftest.err conftest.$ac_ext 4827 4828 # OK, works on sane cases. Now check whether nonexistent headers 4829 # can be detected and how. 4830 cat >conftest.$ac_ext <<_ACEOF 4831/* confdefs.h. */ 4832_ACEOF 4833cat confdefs.h >>conftest.$ac_ext 4834cat >>conftest.$ac_ext <<_ACEOF 4835/* end confdefs.h. */ 4836#include <ac_nonexistent.h> 4837_ACEOF 4838if { (ac_try="$ac_cpp conftest.$ac_ext" 4839case "(($ac_try" in 4840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4841 *) ac_try_echo=$ac_try;; 4842esac 4843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4844 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4845 ac_status=$? 4846 grep -v '^ *+' conftest.er1 >conftest.err 4847 rm -f conftest.er1 4848 cat conftest.err >&5 4849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4850 (exit $ac_status); } >/dev/null; then 4851 if test -s conftest.err; then 4852 ac_cpp_err=$ac_c_preproc_warn_flag 4853 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4854 else 4855 ac_cpp_err= 4856 fi 4857else 4858 ac_cpp_err=yes 4859fi 4860if test -z "$ac_cpp_err"; then 4861 # Broken: success on invalid input. 4862continue 4863else 4864 echo "$as_me: failed program was:" >&5 4865sed 's/^/| /' conftest.$ac_ext >&5 4866 4867 # Passes both tests. 4868ac_preproc_ok=: 4869break 4870fi 4871 4872rm -f conftest.err conftest.$ac_ext 4873 4874done 4875# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4876rm -f conftest.err conftest.$ac_ext 4877if $ac_preproc_ok; then 4878 break 4879fi 4880 4881 done 4882 ac_cv_prog_CPP=$CPP 4883 4884fi 4885 CPP=$ac_cv_prog_CPP 4886else 4887 ac_cv_prog_CPP=$CPP 4888fi 4889{ echo "$as_me:$LINENO: result: $CPP" >&5 4890echo "${ECHO_T}$CPP" >&6; } 4891ac_preproc_ok=false 4892for ac_c_preproc_warn_flag in '' yes 4893do 4894 # Use a header file that comes with gcc, so configuring glibc 4895 # with a fresh cross-compiler works. 4896 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4897 # <limits.h> exists even on freestanding compilers. 4898 # On the NeXT, cc -E runs the code through the compiler's parser, 4899 # not just through cpp. "Syntax error" is here to catch this case. 4900 cat >conftest.$ac_ext <<_ACEOF 4901/* confdefs.h. */ 4902_ACEOF 4903cat confdefs.h >>conftest.$ac_ext 4904cat >>conftest.$ac_ext <<_ACEOF 4905/* end confdefs.h. */ 4906#ifdef __STDC__ 4907# include <limits.h> 4908#else 4909# include <assert.h> 4910#endif 4911 Syntax error 4912_ACEOF 4913if { (ac_try="$ac_cpp conftest.$ac_ext" 4914case "(($ac_try" in 4915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4916 *) ac_try_echo=$ac_try;; 4917esac 4918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4919 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4920 ac_status=$? 4921 grep -v '^ *+' conftest.er1 >conftest.err 4922 rm -f conftest.er1 4923 cat conftest.err >&5 4924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4925 (exit $ac_status); } >/dev/null; then 4926 if test -s conftest.err; then 4927 ac_cpp_err=$ac_c_preproc_warn_flag 4928 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4929 else 4930 ac_cpp_err= 4931 fi 4932else 4933 ac_cpp_err=yes 4934fi 4935if test -z "$ac_cpp_err"; then 4936 : 4937else 4938 echo "$as_me: failed program was:" >&5 4939sed 's/^/| /' conftest.$ac_ext >&5 4940 4941 # Broken: fails on valid input. 4942continue 4943fi 4944 4945rm -f conftest.err conftest.$ac_ext 4946 4947 # OK, works on sane cases. Now check whether nonexistent headers 4948 # can be detected and how. 4949 cat >conftest.$ac_ext <<_ACEOF 4950/* confdefs.h. */ 4951_ACEOF 4952cat confdefs.h >>conftest.$ac_ext 4953cat >>conftest.$ac_ext <<_ACEOF 4954/* end confdefs.h. */ 4955#include <ac_nonexistent.h> 4956_ACEOF 4957if { (ac_try="$ac_cpp conftest.$ac_ext" 4958case "(($ac_try" in 4959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4960 *) ac_try_echo=$ac_try;; 4961esac 4962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4963 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4964 ac_status=$? 4965 grep -v '^ *+' conftest.er1 >conftest.err 4966 rm -f conftest.er1 4967 cat conftest.err >&5 4968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4969 (exit $ac_status); } >/dev/null; then 4970 if test -s conftest.err; then 4971 ac_cpp_err=$ac_c_preproc_warn_flag 4972 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4973 else 4974 ac_cpp_err= 4975 fi 4976else 4977 ac_cpp_err=yes 4978fi 4979if test -z "$ac_cpp_err"; then 4980 # Broken: success on invalid input. 4981continue 4982else 4983 echo "$as_me: failed program was:" >&5 4984sed 's/^/| /' conftest.$ac_ext >&5 4985 4986 # Passes both tests. 4987ac_preproc_ok=: 4988break 4989fi 4990 4991rm -f conftest.err conftest.$ac_ext 4992 4993done 4994# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4995rm -f conftest.err conftest.$ac_ext 4996if $ac_preproc_ok; then 4997 : 4998else 4999 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 5000See \`config.log' for more details." >&5 5001echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 5002See \`config.log' for more details." >&2;} 5003 { (exit 1); exit 1; }; } 5004fi 5005 5006ac_ext=c 5007ac_cpp='$CPP $CPPFLAGS' 5008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5010ac_compiler_gnu=$ac_cv_c_compiler_gnu 5011 5012 5013{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 5014echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 5015if test "${ac_cv_header_stdc+set}" = set; then 5016 echo $ECHO_N "(cached) $ECHO_C" >&6 5017else 5018 cat >conftest.$ac_ext <<_ACEOF 5019/* confdefs.h. */ 5020_ACEOF 5021cat confdefs.h >>conftest.$ac_ext 5022cat >>conftest.$ac_ext <<_ACEOF 5023/* end confdefs.h. */ 5024#include <stdlib.h> 5025#include <stdarg.h> 5026#include <string.h> 5027#include <float.h> 5028 5029int 5030main () 5031{ 5032 5033 ; 5034 return 0; 5035} 5036_ACEOF 5037rm -f conftest.$ac_objext 5038if { (ac_try="$ac_compile" 5039case "(($ac_try" in 5040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5041 *) ac_try_echo=$ac_try;; 5042esac 5043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5044 (eval "$ac_compile") 2>conftest.er1 5045 ac_status=$? 5046 grep -v '^ *+' conftest.er1 >conftest.err 5047 rm -f conftest.er1 5048 cat conftest.err >&5 5049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5050 (exit $ac_status); } && 5051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5052 { (case "(($ac_try" in 5053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5054 *) ac_try_echo=$ac_try;; 5055esac 5056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5057 (eval "$ac_try") 2>&5 5058 ac_status=$? 5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5060 (exit $ac_status); }; } && 5061 { ac_try='test -s conftest.$ac_objext' 5062 { (case "(($ac_try" in 5063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5064 *) ac_try_echo=$ac_try;; 5065esac 5066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5067 (eval "$ac_try") 2>&5 5068 ac_status=$? 5069 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5070 (exit $ac_status); }; }; then 5071 ac_cv_header_stdc=yes 5072else 5073 echo "$as_me: failed program was:" >&5 5074sed 's/^/| /' conftest.$ac_ext >&5 5075 5076 ac_cv_header_stdc=no 5077fi 5078 5079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5080 5081if test $ac_cv_header_stdc = yes; then 5082 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5083 cat >conftest.$ac_ext <<_ACEOF 5084/* confdefs.h. */ 5085_ACEOF 5086cat confdefs.h >>conftest.$ac_ext 5087cat >>conftest.$ac_ext <<_ACEOF 5088/* end confdefs.h. */ 5089#include <string.h> 5090 5091_ACEOF 5092if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5093 $EGREP "memchr" >/dev/null 2>&1; then 5094 : 5095else 5096 ac_cv_header_stdc=no 5097fi 5098rm -f conftest* 5099 5100fi 5101 5102if test $ac_cv_header_stdc = yes; then 5103 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5104 cat >conftest.$ac_ext <<_ACEOF 5105/* confdefs.h. */ 5106_ACEOF 5107cat confdefs.h >>conftest.$ac_ext 5108cat >>conftest.$ac_ext <<_ACEOF 5109/* end confdefs.h. */ 5110#include <stdlib.h> 5111 5112_ACEOF 5113if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5114 $EGREP "free" >/dev/null 2>&1; then 5115 : 5116else 5117 ac_cv_header_stdc=no 5118fi 5119rm -f conftest* 5120 5121fi 5122 5123if test $ac_cv_header_stdc = yes; then 5124 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5125 if test "$cross_compiling" = yes; then 5126 : 5127else 5128 cat >conftest.$ac_ext <<_ACEOF 5129/* confdefs.h. */ 5130_ACEOF 5131cat confdefs.h >>conftest.$ac_ext 5132cat >>conftest.$ac_ext <<_ACEOF 5133/* end confdefs.h. */ 5134#include <ctype.h> 5135#include <stdlib.h> 5136#if ((' ' & 0x0FF) == 0x020) 5137# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5138# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5139#else 5140# define ISLOWER(c) \ 5141 (('a' <= (c) && (c) <= 'i') \ 5142 || ('j' <= (c) && (c) <= 'r') \ 5143 || ('s' <= (c) && (c) <= 'z')) 5144# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5145#endif 5146 5147#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5148int 5149main () 5150{ 5151 int i; 5152 for (i = 0; i < 256; i++) 5153 if (XOR (islower (i), ISLOWER (i)) 5154 || toupper (i) != TOUPPER (i)) 5155 return 2; 5156 return 0; 5157} 5158_ACEOF 5159rm -f conftest$ac_exeext 5160if { (ac_try="$ac_link" 5161case "(($ac_try" in 5162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5163 *) ac_try_echo=$ac_try;; 5164esac 5165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5166 (eval "$ac_link") 2>&5 5167 ac_status=$? 5168 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5169 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5170 { (case "(($ac_try" in 5171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5172 *) ac_try_echo=$ac_try;; 5173esac 5174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5175 (eval "$ac_try") 2>&5 5176 ac_status=$? 5177 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5178 (exit $ac_status); }; }; then 5179 : 5180else 5181 echo "$as_me: program exited with status $ac_status" >&5 5182echo "$as_me: failed program was:" >&5 5183sed 's/^/| /' conftest.$ac_ext >&5 5184 5185( exit $ac_status ) 5186ac_cv_header_stdc=no 5187fi 5188rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5189fi 5190 5191 5192fi 5193fi 5194{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5195echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 5196if test $ac_cv_header_stdc = yes; then 5197 5198cat >>confdefs.h <<\_ACEOF 5199#define STDC_HEADERS 1 5200_ACEOF 5201 5202fi 5203 5204# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5215 inttypes.h stdint.h unistd.h 5216do 5217as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5218{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5219echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5220if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5221 echo $ECHO_N "(cached) $ECHO_C" >&6 5222else 5223 cat >conftest.$ac_ext <<_ACEOF 5224/* confdefs.h. */ 5225_ACEOF 5226cat confdefs.h >>conftest.$ac_ext 5227cat >>conftest.$ac_ext <<_ACEOF 5228/* end confdefs.h. */ 5229$ac_includes_default 5230 5231#include <$ac_header> 5232_ACEOF 5233rm -f conftest.$ac_objext 5234if { (ac_try="$ac_compile" 5235case "(($ac_try" in 5236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5237 *) ac_try_echo=$ac_try;; 5238esac 5239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5240 (eval "$ac_compile") 2>conftest.er1 5241 ac_status=$? 5242 grep -v '^ *+' conftest.er1 >conftest.err 5243 rm -f conftest.er1 5244 cat conftest.err >&5 5245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5246 (exit $ac_status); } && 5247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5248 { (case "(($ac_try" in 5249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5250 *) ac_try_echo=$ac_try;; 5251esac 5252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5253 (eval "$ac_try") 2>&5 5254 ac_status=$? 5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5256 (exit $ac_status); }; } && 5257 { ac_try='test -s conftest.$ac_objext' 5258 { (case "(($ac_try" in 5259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5260 *) ac_try_echo=$ac_try;; 5261esac 5262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5263 (eval "$ac_try") 2>&5 5264 ac_status=$? 5265 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5266 (exit $ac_status); }; }; then 5267 eval "$as_ac_Header=yes" 5268else 5269 echo "$as_me: failed program was:" >&5 5270sed 's/^/| /' conftest.$ac_ext >&5 5271 5272 eval "$as_ac_Header=no" 5273fi 5274 5275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5276fi 5277ac_res=`eval echo '${'$as_ac_Header'}'` 5278 { echo "$as_me:$LINENO: result: $ac_res" >&5 5279echo "${ECHO_T}$ac_res" >&6; } 5280if test `eval echo '${'$as_ac_Header'}'` = yes; then 5281 cat >>confdefs.h <<_ACEOF 5282#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5283_ACEOF 5284 5285fi 5286 5287done 5288 5289 5290 5291for ac_header in dlfcn.h 5292do 5293as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5294if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5295 { echo "$as_me:$LINENO: checking for $ac_header" >&5 5296echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5297if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5298 echo $ECHO_N "(cached) $ECHO_C" >&6 5299fi 5300ac_res=`eval echo '${'$as_ac_Header'}'` 5301 { echo "$as_me:$LINENO: result: $ac_res" >&5 5302echo "${ECHO_T}$ac_res" >&6; } 5303else 5304 # Is the header compilable? 5305{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 5306echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 5307cat >conftest.$ac_ext <<_ACEOF 5308/* confdefs.h. */ 5309_ACEOF 5310cat confdefs.h >>conftest.$ac_ext 5311cat >>conftest.$ac_ext <<_ACEOF 5312/* end confdefs.h. */ 5313$ac_includes_default 5314#include <$ac_header> 5315_ACEOF 5316rm -f conftest.$ac_objext 5317if { (ac_try="$ac_compile" 5318case "(($ac_try" in 5319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5320 *) ac_try_echo=$ac_try;; 5321esac 5322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5323 (eval "$ac_compile") 2>conftest.er1 5324 ac_status=$? 5325 grep -v '^ *+' conftest.er1 >conftest.err 5326 rm -f conftest.er1 5327 cat conftest.err >&5 5328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5329 (exit $ac_status); } && 5330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5331 { (case "(($ac_try" in 5332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5333 *) ac_try_echo=$ac_try;; 5334esac 5335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5336 (eval "$ac_try") 2>&5 5337 ac_status=$? 5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5339 (exit $ac_status); }; } && 5340 { ac_try='test -s conftest.$ac_objext' 5341 { (case "(($ac_try" in 5342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5343 *) ac_try_echo=$ac_try;; 5344esac 5345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5346 (eval "$ac_try") 2>&5 5347 ac_status=$? 5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5349 (exit $ac_status); }; }; then 5350 ac_header_compiler=yes 5351else 5352 echo "$as_me: failed program was:" >&5 5353sed 's/^/| /' conftest.$ac_ext >&5 5354 5355 ac_header_compiler=no 5356fi 5357 5358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5359{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5360echo "${ECHO_T}$ac_header_compiler" >&6; } 5361 5362# Is the header present? 5363{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 5364echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 5365cat >conftest.$ac_ext <<_ACEOF 5366/* confdefs.h. */ 5367_ACEOF 5368cat confdefs.h >>conftest.$ac_ext 5369cat >>conftest.$ac_ext <<_ACEOF 5370/* end confdefs.h. */ 5371#include <$ac_header> 5372_ACEOF 5373if { (ac_try="$ac_cpp conftest.$ac_ext" 5374case "(($ac_try" in 5375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5376 *) ac_try_echo=$ac_try;; 5377esac 5378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5379 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5380 ac_status=$? 5381 grep -v '^ *+' conftest.er1 >conftest.err 5382 rm -f conftest.er1 5383 cat conftest.err >&5 5384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5385 (exit $ac_status); } >/dev/null; then 5386 if test -s conftest.err; then 5387 ac_cpp_err=$ac_c_preproc_warn_flag 5388 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5389 else 5390 ac_cpp_err= 5391 fi 5392else 5393 ac_cpp_err=yes 5394fi 5395if test -z "$ac_cpp_err"; then 5396 ac_header_preproc=yes 5397else 5398 echo "$as_me: failed program was:" >&5 5399sed 's/^/| /' conftest.$ac_ext >&5 5400 5401 ac_header_preproc=no 5402fi 5403 5404rm -f conftest.err conftest.$ac_ext 5405{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5406echo "${ECHO_T}$ac_header_preproc" >&6; } 5407 5408# So? What about this header? 5409case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5410 yes:no: ) 5411 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5412echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5414echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5415 ac_header_preproc=yes 5416 ;; 5417 no:yes:* ) 5418 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5419echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5420 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5421echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5422 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5423echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5424 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5425echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5426 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5427echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5428 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5429echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5430 5431 ;; 5432esac 5433{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5434echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5435if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5436 echo $ECHO_N "(cached) $ECHO_C" >&6 5437else 5438 eval "$as_ac_Header=\$ac_header_preproc" 5439fi 5440ac_res=`eval echo '${'$as_ac_Header'}'` 5441 { echo "$as_me:$LINENO: result: $ac_res" >&5 5442echo "${ECHO_T}$ac_res" >&6; } 5443 5444fi 5445if test `eval echo '${'$as_ac_Header'}'` = yes; then 5446 cat >>confdefs.h <<_ACEOF 5447#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5448_ACEOF 5449 5450fi 5451 5452done 5453 5454ac_ext=cpp 5455ac_cpp='$CXXCPP $CPPFLAGS' 5456ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5457ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5458ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5459if test -z "$CXX"; then 5460 if test -n "$CCC"; then 5461 CXX=$CCC 5462 else 5463 if test -n "$ac_tool_prefix"; then 5464 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5465 do 5466 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5467set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5468{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5470if test "${ac_cv_prog_CXX+set}" = set; then 5471 echo $ECHO_N "(cached) $ECHO_C" >&6 5472else 5473 if test -n "$CXX"; then 5474 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5475else 5476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5477for as_dir in $PATH 5478do 5479 IFS=$as_save_IFS 5480 test -z "$as_dir" && as_dir=. 5481 for ac_exec_ext in '' $ac_executable_extensions; do 5482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5483 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5485 break 2 5486 fi 5487done 5488done 5489IFS=$as_save_IFS 5490 5491fi 5492fi 5493CXX=$ac_cv_prog_CXX 5494if test -n "$CXX"; then 5495 { echo "$as_me:$LINENO: result: $CXX" >&5 5496echo "${ECHO_T}$CXX" >&6; } 5497else 5498 { echo "$as_me:$LINENO: result: no" >&5 5499echo "${ECHO_T}no" >&6; } 5500fi 5501 5502 5503 test -n "$CXX" && break 5504 done 5505fi 5506if test -z "$CXX"; then 5507 ac_ct_CXX=$CXX 5508 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5509do 5510 # Extract the first word of "$ac_prog", so it can be a program name with args. 5511set dummy $ac_prog; ac_word=$2 5512{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5514if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 5515 echo $ECHO_N "(cached) $ECHO_C" >&6 5516else 5517 if test -n "$ac_ct_CXX"; then 5518 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5519else 5520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5521for as_dir in $PATH 5522do 5523 IFS=$as_save_IFS 5524 test -z "$as_dir" && as_dir=. 5525 for ac_exec_ext in '' $ac_executable_extensions; do 5526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5527 ac_cv_prog_ac_ct_CXX="$ac_prog" 5528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5529 break 2 5530 fi 5531done 5532done 5533IFS=$as_save_IFS 5534 5535fi 5536fi 5537ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5538if test -n "$ac_ct_CXX"; then 5539 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 5540echo "${ECHO_T}$ac_ct_CXX" >&6; } 5541else 5542 { echo "$as_me:$LINENO: result: no" >&5 5543echo "${ECHO_T}no" >&6; } 5544fi 5545 5546 5547 test -n "$ac_ct_CXX" && break 5548done 5549 5550 if test "x$ac_ct_CXX" = x; then 5551 CXX="g++" 5552 else 5553 case $cross_compiling:$ac_tool_warned in 5554yes:) 5555{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5556whose name does not start with the host triplet. If you think this 5557configuration is useful to you, please write to autoconf@gnu.org." >&5 5558echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5559whose name does not start with the host triplet. If you think this 5560configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5561ac_tool_warned=yes ;; 5562esac 5563 CXX=$ac_ct_CXX 5564 fi 5565fi 5566 5567 fi 5568fi 5569# Provide some information about the compiler. 5570echo "$as_me:$LINENO: checking for C++ compiler version" >&5 5571ac_compiler=`set X $ac_compile; echo $2` 5572{ (ac_try="$ac_compiler --version >&5" 5573case "(($ac_try" in 5574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5575 *) ac_try_echo=$ac_try;; 5576esac 5577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5578 (eval "$ac_compiler --version >&5") 2>&5 5579 ac_status=$? 5580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5581 (exit $ac_status); } 5582{ (ac_try="$ac_compiler -v >&5" 5583case "(($ac_try" in 5584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5585 *) ac_try_echo=$ac_try;; 5586esac 5587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5588 (eval "$ac_compiler -v >&5") 2>&5 5589 ac_status=$? 5590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5591 (exit $ac_status); } 5592{ (ac_try="$ac_compiler -V >&5" 5593case "(($ac_try" in 5594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5595 *) ac_try_echo=$ac_try;; 5596esac 5597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5598 (eval "$ac_compiler -V >&5") 2>&5 5599 ac_status=$? 5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5601 (exit $ac_status); } 5602 5603{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5604echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 5605if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5606 echo $ECHO_N "(cached) $ECHO_C" >&6 5607else 5608 cat >conftest.$ac_ext <<_ACEOF 5609/* confdefs.h. */ 5610_ACEOF 5611cat confdefs.h >>conftest.$ac_ext 5612cat >>conftest.$ac_ext <<_ACEOF 5613/* end confdefs.h. */ 5614 5615int 5616main () 5617{ 5618#ifndef __GNUC__ 5619 choke me 5620#endif 5621 5622 ; 5623 return 0; 5624} 5625_ACEOF 5626rm -f conftest.$ac_objext 5627if { (ac_try="$ac_compile" 5628case "(($ac_try" in 5629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5630 *) ac_try_echo=$ac_try;; 5631esac 5632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5633 (eval "$ac_compile") 2>conftest.er1 5634 ac_status=$? 5635 grep -v '^ *+' conftest.er1 >conftest.err 5636 rm -f conftest.er1 5637 cat conftest.err >&5 5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5639 (exit $ac_status); } && 5640 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5641 { (case "(($ac_try" in 5642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5643 *) ac_try_echo=$ac_try;; 5644esac 5645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5646 (eval "$ac_try") 2>&5 5647 ac_status=$? 5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5649 (exit $ac_status); }; } && 5650 { ac_try='test -s conftest.$ac_objext' 5651 { (case "(($ac_try" in 5652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5653 *) ac_try_echo=$ac_try;; 5654esac 5655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5656 (eval "$ac_try") 2>&5 5657 ac_status=$? 5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5659 (exit $ac_status); }; }; then 5660 ac_compiler_gnu=yes 5661else 5662 echo "$as_me: failed program was:" >&5 5663sed 's/^/| /' conftest.$ac_ext >&5 5664 5665 ac_compiler_gnu=no 5666fi 5667 5668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5669ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5670 5671fi 5672{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 5673echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 5674GXX=`test $ac_compiler_gnu = yes && echo yes` 5675ac_test_CXXFLAGS=${CXXFLAGS+set} 5676ac_save_CXXFLAGS=$CXXFLAGS 5677{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 5678echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 5679if test "${ac_cv_prog_cxx_g+set}" = set; then 5680 echo $ECHO_N "(cached) $ECHO_C" >&6 5681else 5682 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5683 ac_cxx_werror_flag=yes 5684 ac_cv_prog_cxx_g=no 5685 CXXFLAGS="-g" 5686 cat >conftest.$ac_ext <<_ACEOF 5687/* confdefs.h. */ 5688_ACEOF 5689cat confdefs.h >>conftest.$ac_ext 5690cat >>conftest.$ac_ext <<_ACEOF 5691/* end confdefs.h. */ 5692 5693int 5694main () 5695{ 5696 5697 ; 5698 return 0; 5699} 5700_ACEOF 5701rm -f conftest.$ac_objext 5702if { (ac_try="$ac_compile" 5703case "(($ac_try" in 5704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5705 *) ac_try_echo=$ac_try;; 5706esac 5707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5708 (eval "$ac_compile") 2>conftest.er1 5709 ac_status=$? 5710 grep -v '^ *+' conftest.er1 >conftest.err 5711 rm -f conftest.er1 5712 cat conftest.err >&5 5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5714 (exit $ac_status); } && 5715 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5716 { (case "(($ac_try" in 5717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5718 *) ac_try_echo=$ac_try;; 5719esac 5720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5721 (eval "$ac_try") 2>&5 5722 ac_status=$? 5723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5724 (exit $ac_status); }; } && 5725 { ac_try='test -s conftest.$ac_objext' 5726 { (case "(($ac_try" in 5727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5728 *) ac_try_echo=$ac_try;; 5729esac 5730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5731 (eval "$ac_try") 2>&5 5732 ac_status=$? 5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5734 (exit $ac_status); }; }; then 5735 ac_cv_prog_cxx_g=yes 5736else 5737 echo "$as_me: failed program was:" >&5 5738sed 's/^/| /' conftest.$ac_ext >&5 5739 5740 CXXFLAGS="" 5741 cat >conftest.$ac_ext <<_ACEOF 5742/* confdefs.h. */ 5743_ACEOF 5744cat confdefs.h >>conftest.$ac_ext 5745cat >>conftest.$ac_ext <<_ACEOF 5746/* end confdefs.h. */ 5747 5748int 5749main () 5750{ 5751 5752 ; 5753 return 0; 5754} 5755_ACEOF 5756rm -f conftest.$ac_objext 5757if { (ac_try="$ac_compile" 5758case "(($ac_try" in 5759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5760 *) ac_try_echo=$ac_try;; 5761esac 5762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5763 (eval "$ac_compile") 2>conftest.er1 5764 ac_status=$? 5765 grep -v '^ *+' conftest.er1 >conftest.err 5766 rm -f conftest.er1 5767 cat conftest.err >&5 5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5769 (exit $ac_status); } && 5770 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5771 { (case "(($ac_try" in 5772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5773 *) ac_try_echo=$ac_try;; 5774esac 5775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5776 (eval "$ac_try") 2>&5 5777 ac_status=$? 5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5779 (exit $ac_status); }; } && 5780 { ac_try='test -s conftest.$ac_objext' 5781 { (case "(($ac_try" in 5782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5783 *) ac_try_echo=$ac_try;; 5784esac 5785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5786 (eval "$ac_try") 2>&5 5787 ac_status=$? 5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5789 (exit $ac_status); }; }; then 5790 : 5791else 5792 echo "$as_me: failed program was:" >&5 5793sed 's/^/| /' conftest.$ac_ext >&5 5794 5795 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5796 CXXFLAGS="-g" 5797 cat >conftest.$ac_ext <<_ACEOF 5798/* confdefs.h. */ 5799_ACEOF 5800cat confdefs.h >>conftest.$ac_ext 5801cat >>conftest.$ac_ext <<_ACEOF 5802/* end confdefs.h. */ 5803 5804int 5805main () 5806{ 5807 5808 ; 5809 return 0; 5810} 5811_ACEOF 5812rm -f conftest.$ac_objext 5813if { (ac_try="$ac_compile" 5814case "(($ac_try" in 5815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5816 *) ac_try_echo=$ac_try;; 5817esac 5818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5819 (eval "$ac_compile") 2>conftest.er1 5820 ac_status=$? 5821 grep -v '^ *+' conftest.er1 >conftest.err 5822 rm -f conftest.er1 5823 cat conftest.err >&5 5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5825 (exit $ac_status); } && 5826 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5827 { (case "(($ac_try" in 5828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5829 *) ac_try_echo=$ac_try;; 5830esac 5831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5832 (eval "$ac_try") 2>&5 5833 ac_status=$? 5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5835 (exit $ac_status); }; } && 5836 { ac_try='test -s conftest.$ac_objext' 5837 { (case "(($ac_try" in 5838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5839 *) ac_try_echo=$ac_try;; 5840esac 5841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5842 (eval "$ac_try") 2>&5 5843 ac_status=$? 5844 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5845 (exit $ac_status); }; }; then 5846 ac_cv_prog_cxx_g=yes 5847else 5848 echo "$as_me: failed program was:" >&5 5849sed 's/^/| /' conftest.$ac_ext >&5 5850 5851 5852fi 5853 5854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5855fi 5856 5857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5858fi 5859 5860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5861 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5862fi 5863{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 5864echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 5865if test "$ac_test_CXXFLAGS" = set; then 5866 CXXFLAGS=$ac_save_CXXFLAGS 5867elif test $ac_cv_prog_cxx_g = yes; then 5868 if test "$GXX" = yes; then 5869 CXXFLAGS="-g -O2" 5870 else 5871 CXXFLAGS="-g" 5872 fi 5873else 5874 if test "$GXX" = yes; then 5875 CXXFLAGS="-O2" 5876 else 5877 CXXFLAGS= 5878 fi 5879fi 5880ac_ext=cpp 5881ac_cpp='$CXXCPP $CPPFLAGS' 5882ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5883ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5884ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5885 5886depcc="$CXX" am_compiler_list= 5887 5888{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5889echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 5890if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 5891 echo $ECHO_N "(cached) $ECHO_C" >&6 5892else 5893 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5894 # We make a subdir and do the tests there. Otherwise we can end up 5895 # making bogus files that we don't know about and never remove. For 5896 # instance it was reported that on HP-UX the gcc test will end up 5897 # making a dummy file named `D' -- because `-MD' means `put the output 5898 # in D'. 5899 mkdir conftest.dir 5900 # Copy depcomp to subdir because otherwise we won't find it if we're 5901 # using a relative directory. 5902 cp "$am_depcomp" conftest.dir 5903 cd conftest.dir 5904 # We will build objects and dependencies in a subdirectory because 5905 # it helps to detect inapplicable dependency modes. For instance 5906 # both Tru64's cc and ICC support -MD to output dependencies as a 5907 # side effect of compilation, but ICC will put the dependencies in 5908 # the current directory while Tru64 will put them in the object 5909 # directory. 5910 mkdir sub 5911 5912 am_cv_CXX_dependencies_compiler_type=none 5913 if test "$am_compiler_list" = ""; then 5914 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5915 fi 5916 for depmode in $am_compiler_list; do 5917 # Setup a source with many dependencies, because some compilers 5918 # like to wrap large dependency lists on column 80 (with \), and 5919 # we should not choose a depcomp mode which is confused by this. 5920 # 5921 # We need to recreate these files for each test, as the compiler may 5922 # overwrite some of them when testing with obscure command lines. 5923 # This happens at least with the AIX C compiler. 5924 : > sub/conftest.c 5925 for i in 1 2 3 4 5 6; do 5926 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5927 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5928 # Solaris 8's {/usr,}/bin/sh. 5929 touch sub/conftst$i.h 5930 done 5931 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5932 5933 case $depmode in 5934 nosideeffect) 5935 # after this tag, mechanisms are not by side-effect, so they'll 5936 # only be used when explicitly requested 5937 if test "x$enable_dependency_tracking" = xyes; then 5938 continue 5939 else 5940 break 5941 fi 5942 ;; 5943 none) break ;; 5944 esac 5945 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5946 # mode. It turns out that the SunPro C++ compiler does not properly 5947 # handle `-M -o', and we need to detect this. 5948 if depmode=$depmode \ 5949 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5950 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5951 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5952 >/dev/null 2>conftest.err && 5953 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5954 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5955 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5956 # icc doesn't choke on unknown options, it will just issue warnings 5957 # or remarks (even with -Werror). So we grep stderr for any message 5958 # that says an option was ignored or not supported. 5959 # When given -MP, icc 7.0 and 7.1 complain thusly: 5960 # icc: Command line warning: ignoring option '-M'; no argument required 5961 # The diagnosis changed in icc 8.0: 5962 # icc: Command line remark: option '-MP' not supported 5963 if (grep 'ignoring option' conftest.err || 5964 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5965 am_cv_CXX_dependencies_compiler_type=$depmode 5966 break 5967 fi 5968 fi 5969 done 5970 5971 cd .. 5972 rm -rf conftest.dir 5973else 5974 am_cv_CXX_dependencies_compiler_type=none 5975fi 5976 5977fi 5978{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 5979echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } 5980CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5981 5982 5983 5984if 5985 test "x$enable_dependency_tracking" != xno \ 5986 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5987 am__fastdepCXX_TRUE= 5988 am__fastdepCXX_FALSE='#' 5989else 5990 am__fastdepCXX_TRUE='#' 5991 am__fastdepCXX_FALSE= 5992fi 5993 5994 5995 5996 5997 5998if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5999 test x"$CXX" != x"false" && 6000 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 6001 (test "X$CXX" != "Xg++"))) ; then 6002 ac_ext=cpp 6003ac_cpp='$CXXCPP $CPPFLAGS' 6004ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6005ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6006ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6007{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 6008echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 6009if test -z "$CXXCPP"; then 6010 if test "${ac_cv_prog_CXXCPP+set}" = set; then 6011 echo $ECHO_N "(cached) $ECHO_C" >&6 6012else 6013 # Double quotes because CXXCPP needs to be expanded 6014 for CXXCPP in "$CXX -E" "$CC -E" "/usr/libexec/cpp" "/lib/cpp" 6015 do 6016 ac_preproc_ok=false 6017for ac_cxx_preproc_warn_flag in '' yes 6018do 6019 # Use a header file that comes with gcc, so configuring glibc 6020 # with a fresh cross-compiler works. 6021 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6022 # <limits.h> exists even on freestanding compilers. 6023 # On the NeXT, cc -E runs the code through the compiler's parser, 6024 # not just through cpp. "Syntax error" is here to catch this case. 6025 cat >conftest.$ac_ext <<_ACEOF 6026/* confdefs.h. */ 6027_ACEOF 6028cat confdefs.h >>conftest.$ac_ext 6029cat >>conftest.$ac_ext <<_ACEOF 6030/* end confdefs.h. */ 6031#ifdef __STDC__ 6032# include <limits.h> 6033#else 6034# include <assert.h> 6035#endif 6036 Syntax error 6037_ACEOF 6038if { (ac_try="$ac_cpp conftest.$ac_ext" 6039case "(($ac_try" in 6040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6041 *) ac_try_echo=$ac_try;; 6042esac 6043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6044 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6045 ac_status=$? 6046 grep -v '^ *+' conftest.er1 >conftest.err 6047 rm -f conftest.er1 6048 cat conftest.err >&5 6049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6050 (exit $ac_status); } >/dev/null; then 6051 if test -s conftest.err; then 6052 ac_cpp_err=$ac_cxx_preproc_warn_flag 6053 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 6054 else 6055 ac_cpp_err= 6056 fi 6057else 6058 ac_cpp_err=yes 6059fi 6060if test -z "$ac_cpp_err"; then 6061 : 6062else 6063 echo "$as_me: failed program was:" >&5 6064sed 's/^/| /' conftest.$ac_ext >&5 6065 6066 # Broken: fails on valid input. 6067continue 6068fi 6069 6070rm -f conftest.err conftest.$ac_ext 6071 6072 # OK, works on sane cases. Now check whether nonexistent headers 6073 # can be detected and how. 6074 cat >conftest.$ac_ext <<_ACEOF 6075/* confdefs.h. */ 6076_ACEOF 6077cat confdefs.h >>conftest.$ac_ext 6078cat >>conftest.$ac_ext <<_ACEOF 6079/* end confdefs.h. */ 6080#include <ac_nonexistent.h> 6081_ACEOF 6082if { (ac_try="$ac_cpp conftest.$ac_ext" 6083case "(($ac_try" in 6084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6085 *) ac_try_echo=$ac_try;; 6086esac 6087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6088 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6089 ac_status=$? 6090 grep -v '^ *+' conftest.er1 >conftest.err 6091 rm -f conftest.er1 6092 cat conftest.err >&5 6093 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6094 (exit $ac_status); } >/dev/null; then 6095 if test -s conftest.err; then 6096 ac_cpp_err=$ac_cxx_preproc_warn_flag 6097 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 6098 else 6099 ac_cpp_err= 6100 fi 6101else 6102 ac_cpp_err=yes 6103fi 6104if test -z "$ac_cpp_err"; then 6105 # Broken: success on invalid input. 6106continue 6107else 6108 echo "$as_me: failed program was:" >&5 6109sed 's/^/| /' conftest.$ac_ext >&5 6110 6111 # Passes both tests. 6112ac_preproc_ok=: 6113break 6114fi 6115 6116rm -f conftest.err conftest.$ac_ext 6117 6118done 6119# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6120rm -f conftest.err conftest.$ac_ext 6121if $ac_preproc_ok; then 6122 break 6123fi 6124 6125 done 6126 ac_cv_prog_CXXCPP=$CXXCPP 6127 6128fi 6129 CXXCPP=$ac_cv_prog_CXXCPP 6130else 6131 ac_cv_prog_CXXCPP=$CXXCPP 6132fi 6133{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 6134echo "${ECHO_T}$CXXCPP" >&6; } 6135ac_preproc_ok=false 6136for ac_cxx_preproc_warn_flag in '' yes 6137do 6138 # Use a header file that comes with gcc, so configuring glibc 6139 # with a fresh cross-compiler works. 6140 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6141 # <limits.h> exists even on freestanding compilers. 6142 # On the NeXT, cc -E runs the code through the compiler's parser, 6143 # not just through cpp. "Syntax error" is here to catch this case. 6144 cat >conftest.$ac_ext <<_ACEOF 6145/* confdefs.h. */ 6146_ACEOF 6147cat confdefs.h >>conftest.$ac_ext 6148cat >>conftest.$ac_ext <<_ACEOF 6149/* end confdefs.h. */ 6150#ifdef __STDC__ 6151# include <limits.h> 6152#else 6153# include <assert.h> 6154#endif 6155 Syntax error 6156_ACEOF 6157if { (ac_try="$ac_cpp conftest.$ac_ext" 6158case "(($ac_try" in 6159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6160 *) ac_try_echo=$ac_try;; 6161esac 6162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6163 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6164 ac_status=$? 6165 grep -v '^ *+' conftest.er1 >conftest.err 6166 rm -f conftest.er1 6167 cat conftest.err >&5 6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6169 (exit $ac_status); } >/dev/null; then 6170 if test -s conftest.err; then 6171 ac_cpp_err=$ac_cxx_preproc_warn_flag 6172 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 6173 else 6174 ac_cpp_err= 6175 fi 6176else 6177 ac_cpp_err=yes 6178fi 6179if test -z "$ac_cpp_err"; then 6180 : 6181else 6182 echo "$as_me: failed program was:" >&5 6183sed 's/^/| /' conftest.$ac_ext >&5 6184 6185 # Broken: fails on valid input. 6186continue 6187fi 6188 6189rm -f conftest.err conftest.$ac_ext 6190 6191 # OK, works on sane cases. Now check whether nonexistent headers 6192 # can be detected and how. 6193 cat >conftest.$ac_ext <<_ACEOF 6194/* confdefs.h. */ 6195_ACEOF 6196cat confdefs.h >>conftest.$ac_ext 6197cat >>conftest.$ac_ext <<_ACEOF 6198/* end confdefs.h. */ 6199#include <ac_nonexistent.h> 6200_ACEOF 6201if { (ac_try="$ac_cpp conftest.$ac_ext" 6202case "(($ac_try" in 6203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6204 *) ac_try_echo=$ac_try;; 6205esac 6206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6207 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6208 ac_status=$? 6209 grep -v '^ *+' conftest.er1 >conftest.err 6210 rm -f conftest.er1 6211 cat conftest.err >&5 6212 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6213 (exit $ac_status); } >/dev/null; then 6214 if test -s conftest.err; then 6215 ac_cpp_err=$ac_cxx_preproc_warn_flag 6216 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 6217 else 6218 ac_cpp_err= 6219 fi 6220else 6221 ac_cpp_err=yes 6222fi 6223if test -z "$ac_cpp_err"; then 6224 # Broken: success on invalid input. 6225continue 6226else 6227 echo "$as_me: failed program was:" >&5 6228sed 's/^/| /' conftest.$ac_ext >&5 6229 6230 # Passes both tests. 6231ac_preproc_ok=: 6232break 6233fi 6234 6235rm -f conftest.err conftest.$ac_ext 6236 6237done 6238# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6239rm -f conftest.err conftest.$ac_ext 6240if $ac_preproc_ok; then 6241 : 6242else 6243 { echo "$as_me:$LINENO: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5 6244echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;} 6245fi 6246 6247ac_ext=c 6248ac_cpp='$CPP $CPPFLAGS' 6249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6251ac_compiler_gnu=$ac_cv_c_compiler_gnu 6252 6253fi 6254 6255ac_ext=f 6256ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6257ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6258ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6259if test -n "$ac_tool_prefix"; then 6260 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 6261 do 6262 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6263set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6264{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6265echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6266if test "${ac_cv_prog_F77+set}" = set; then 6267 echo $ECHO_N "(cached) $ECHO_C" >&6 6268else 6269 if test -n "$F77"; then 6270 ac_cv_prog_F77="$F77" # Let the user override the test. 6271else 6272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6273for as_dir in $PATH 6274do 6275 IFS=$as_save_IFS 6276 test -z "$as_dir" && as_dir=. 6277 for ac_exec_ext in '' $ac_executable_extensions; do 6278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6279 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 6280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6281 break 2 6282 fi 6283done 6284done 6285IFS=$as_save_IFS 6286 6287fi 6288fi 6289F77=$ac_cv_prog_F77 6290if test -n "$F77"; then 6291 { echo "$as_me:$LINENO: result: $F77" >&5 6292echo "${ECHO_T}$F77" >&6; } 6293else 6294 { echo "$as_me:$LINENO: result: no" >&5 6295echo "${ECHO_T}no" >&6; } 6296fi 6297 6298 6299 test -n "$F77" && break 6300 done 6301fi 6302if test -z "$F77"; then 6303 ac_ct_F77=$F77 6304 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 6305do 6306 # Extract the first word of "$ac_prog", so it can be a program name with args. 6307set dummy $ac_prog; ac_word=$2 6308{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6309echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6310if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 6311 echo $ECHO_N "(cached) $ECHO_C" >&6 6312else 6313 if test -n "$ac_ct_F77"; then 6314 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 6315else 6316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6317for as_dir in $PATH 6318do 6319 IFS=$as_save_IFS 6320 test -z "$as_dir" && as_dir=. 6321 for ac_exec_ext in '' $ac_executable_extensions; do 6322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6323 ac_cv_prog_ac_ct_F77="$ac_prog" 6324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6325 break 2 6326 fi 6327done 6328done 6329IFS=$as_save_IFS 6330 6331fi 6332fi 6333ac_ct_F77=$ac_cv_prog_ac_ct_F77 6334if test -n "$ac_ct_F77"; then 6335 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 6336echo "${ECHO_T}$ac_ct_F77" >&6; } 6337else 6338 { echo "$as_me:$LINENO: result: no" >&5 6339echo "${ECHO_T}no" >&6; } 6340fi 6341 6342 6343 test -n "$ac_ct_F77" && break 6344done 6345 6346 if test "x$ac_ct_F77" = x; then 6347 F77="" 6348 else 6349 case $cross_compiling:$ac_tool_warned in 6350yes:) 6351{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6352whose name does not start with the host triplet. If you think this 6353configuration is useful to you, please write to autoconf@gnu.org." >&5 6354echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6355whose name does not start with the host triplet. If you think this 6356configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6357ac_tool_warned=yes ;; 6358esac 6359 F77=$ac_ct_F77 6360 fi 6361fi 6362 6363 6364# Provide some information about the compiler. 6365echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 6366ac_compiler=`set X $ac_compile; echo $2` 6367{ (ac_try="$ac_compiler --version >&5" 6368case "(($ac_try" in 6369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6370 *) ac_try_echo=$ac_try;; 6371esac 6372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6373 (eval "$ac_compiler --version >&5") 2>&5 6374 ac_status=$? 6375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6376 (exit $ac_status); } 6377{ (ac_try="$ac_compiler -v >&5" 6378case "(($ac_try" in 6379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6380 *) ac_try_echo=$ac_try;; 6381esac 6382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6383 (eval "$ac_compiler -v >&5") 2>&5 6384 ac_status=$? 6385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6386 (exit $ac_status); } 6387{ (ac_try="$ac_compiler -V >&5" 6388case "(($ac_try" in 6389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6390 *) ac_try_echo=$ac_try;; 6391esac 6392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6393 (eval "$ac_compiler -V >&5") 2>&5 6394 ac_status=$? 6395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6396 (exit $ac_status); } 6397rm -f a.out 6398 6399# If we don't use `.F' as extension, the preprocessor is not run on the 6400# input file. (Note that this only needs to work for GNU compilers.) 6401ac_save_ext=$ac_ext 6402ac_ext=F 6403{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 6404echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } 6405if test "${ac_cv_f77_compiler_gnu+set}" = set; then 6406 echo $ECHO_N "(cached) $ECHO_C" >&6 6407else 6408 cat >conftest.$ac_ext <<_ACEOF 6409 program main 6410#ifndef __GNUC__ 6411 choke me 6412#endif 6413 6414 end 6415_ACEOF 6416rm -f conftest.$ac_objext 6417if { (ac_try="$ac_compile" 6418case "(($ac_try" in 6419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6420 *) ac_try_echo=$ac_try;; 6421esac 6422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6423 (eval "$ac_compile") 2>conftest.er1 6424 ac_status=$? 6425 grep -v '^ *+' conftest.er1 >conftest.err 6426 rm -f conftest.er1 6427 cat conftest.err >&5 6428 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6429 (exit $ac_status); } && 6430 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 6431 { (case "(($ac_try" in 6432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6433 *) ac_try_echo=$ac_try;; 6434esac 6435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6436 (eval "$ac_try") 2>&5 6437 ac_status=$? 6438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6439 (exit $ac_status); }; } && 6440 { ac_try='test -s conftest.$ac_objext' 6441 { (case "(($ac_try" in 6442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6443 *) ac_try_echo=$ac_try;; 6444esac 6445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6446 (eval "$ac_try") 2>&5 6447 ac_status=$? 6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6449 (exit $ac_status); }; }; then 6450 ac_compiler_gnu=yes 6451else 6452 echo "$as_me: failed program was:" >&5 6453sed 's/^/| /' conftest.$ac_ext >&5 6454 6455 ac_compiler_gnu=no 6456fi 6457 6458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6459ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6460 6461fi 6462{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 6463echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } 6464ac_ext=$ac_save_ext 6465ac_test_FFLAGS=${FFLAGS+set} 6466ac_save_FFLAGS=$FFLAGS 6467FFLAGS= 6468{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 6469echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } 6470if test "${ac_cv_prog_f77_g+set}" = set; then 6471 echo $ECHO_N "(cached) $ECHO_C" >&6 6472else 6473 FFLAGS=-g 6474cat >conftest.$ac_ext <<_ACEOF 6475 program main 6476 6477 end 6478_ACEOF 6479rm -f conftest.$ac_objext 6480if { (ac_try="$ac_compile" 6481case "(($ac_try" in 6482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6483 *) ac_try_echo=$ac_try;; 6484esac 6485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6486 (eval "$ac_compile") 2>conftest.er1 6487 ac_status=$? 6488 grep -v '^ *+' conftest.er1 >conftest.err 6489 rm -f conftest.er1 6490 cat conftest.err >&5 6491 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6492 (exit $ac_status); } && 6493 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 6494 { (case "(($ac_try" in 6495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6496 *) ac_try_echo=$ac_try;; 6497esac 6498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6499 (eval "$ac_try") 2>&5 6500 ac_status=$? 6501 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6502 (exit $ac_status); }; } && 6503 { ac_try='test -s conftest.$ac_objext' 6504 { (case "(($ac_try" in 6505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6506 *) ac_try_echo=$ac_try;; 6507esac 6508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6509 (eval "$ac_try") 2>&5 6510 ac_status=$? 6511 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6512 (exit $ac_status); }; }; then 6513 ac_cv_prog_f77_g=yes 6514else 6515 echo "$as_me: failed program was:" >&5 6516sed 's/^/| /' conftest.$ac_ext >&5 6517 6518 ac_cv_prog_f77_g=no 6519fi 6520 6521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6522 6523fi 6524{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6525echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } 6526if test "$ac_test_FFLAGS" = set; then 6527 FFLAGS=$ac_save_FFLAGS 6528elif test $ac_cv_prog_f77_g = yes; then 6529 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6530 FFLAGS="-g -O2" 6531 else 6532 FFLAGS="-g" 6533 fi 6534else 6535 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6536 FFLAGS="-O2" 6537 else 6538 FFLAGS= 6539 fi 6540fi 6541 6542G77=`test $ac_compiler_gnu = yes && echo yes` 6543ac_ext=c 6544ac_cpp='$CPP $CPPFLAGS' 6545ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6546ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6547ac_compiler_gnu=$ac_cv_c_compiler_gnu 6548 6549 6550# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6551 6552# find the maximum length of command line arguments 6553{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6554echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } 6555if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6556 echo $ECHO_N "(cached) $ECHO_C" >&6 6557else 6558 i=0 6559 teststring="ABCD" 6560 6561 case $build_os in 6562 msdosdjgpp*) 6563 # On DJGPP, this test can blow up pretty badly due to problems in libc 6564 # (any single argument exceeding 2000 bytes causes a buffer overrun 6565 # during glob expansion). Even if it were fixed, the result of this 6566 # check would be larger than it should be. 6567 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6568 ;; 6569 6570 gnu*) 6571 # Under GNU Hurd, this test is not required because there is 6572 # no limit to the length of command line arguments. 6573 # Libtool will interpret -1 as no limit whatsoever 6574 lt_cv_sys_max_cmd_len=-1; 6575 ;; 6576 6577 cygwin* | mingw*) 6578 # On Win9x/ME, this test blows up -- it succeeds, but takes 6579 # about 5 minutes as the teststring grows exponentially. 6580 # Worse, since 9x/ME are not pre-emptively multitasking, 6581 # you end up with a "frozen" computer, even though with patience 6582 # the test eventually succeeds (with a max line length of 256k). 6583 # Instead, let's just punt: use the minimum linelength reported by 6584 # all of the supported platforms: 8192 (on NT/2K/XP). 6585 lt_cv_sys_max_cmd_len=8192; 6586 ;; 6587 6588 amigaos*) 6589 # On AmigaOS with pdksh, this test takes hours, literally. 6590 # So we just punt and use a minimum line length of 8192. 6591 lt_cv_sys_max_cmd_len=8192; 6592 ;; 6593 6594 darwin* | dragonfly* | freebsd* | mirbsd* | netbsd* | openbsd*) 6595 # This has been around since 386BSD, at least. Likely further. 6596 if test -x /sbin/sysctl; then 6597 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6598 elif test -x /usr/sbin/sysctl; then 6599 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6600 else 6601 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6602 fi 6603 # And add a safety zone 6604 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6605 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6606 ;; 6607 6608 interix*) 6609 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6610 lt_cv_sys_max_cmd_len=196608 6611 ;; 6612 6613 osf*) 6614 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6615 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6616 # nice to cause kernel panics so lets avoid the loop below. 6617 # First set a reasonable default. 6618 lt_cv_sys_max_cmd_len=16384 6619 # 6620 if test -x /sbin/sysconfig; then 6621 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6622 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6623 esac 6624 fi 6625 ;; 6626 sco3.2v5*) 6627 lt_cv_sys_max_cmd_len=102400 6628 ;; 6629 sysv5* | sco5v6* | sysv4.2uw2*) 6630 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6631 if test -n "$kargmax"; then 6632 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6633 else 6634 lt_cv_sys_max_cmd_len=32768 6635 fi 6636 ;; 6637 *) 6638 # If test is not a shell built-in, we'll probably end up computing a 6639 # maximum length that is only half of the actual maximum length, but 6640 # we can't tell. 6641 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6642 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6643 = "XX$teststring") >/dev/null 2>&1 && 6644 new_result=`expr "X$teststring" : ".*" 2>&1` && 6645 lt_cv_sys_max_cmd_len=$new_result && 6646 test $i != 17 # 1/2 MB should be enough 6647 do 6648 i=`expr $i + 1` 6649 teststring=$teststring$teststring 6650 done 6651 teststring= 6652 # Add a significant safety factor because C++ compilers can tack on massive 6653 # amounts of additional arguments before passing them to the linker. 6654 # It appears as though 1/2 is a usable value. 6655 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6656 ;; 6657 esac 6658 6659fi 6660 6661if test -n $lt_cv_sys_max_cmd_len ; then 6662 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6663echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } 6664else 6665 { echo "$as_me:$LINENO: result: none" >&5 6666echo "${ECHO_T}none" >&6; } 6667fi 6668 6669 6670 6671 6672# Check for command to grab the raw symbol name followed by C symbol from nm. 6673{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6674echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 6675if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6676 echo $ECHO_N "(cached) $ECHO_C" >&6 6677else 6678 6679# These are sane defaults that work on at least a few old systems. 6680# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6681 6682# Character class describing NM global symbol codes. 6683symcode='[BCDEGRST]' 6684 6685# Regexp to match symbols that can be accessed directly from C. 6686sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6687 6688# Transform an extracted symbol line into a proper C declaration 6689lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6690 6691# Transform an extracted symbol line into symbol name and symbol address 6692lt_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'" 6693 6694# Define system-specific variables. 6695case $host_os in 6696aix*) 6697 symcode='[BCDT]' 6698 ;; 6699cygwin* | mingw* | pw32*) 6700 symcode='[ABCDGISTW]' 6701 ;; 6702hpux*) # Its linker distinguishes data from code symbols 6703 if test "$host_cpu" = ia64; then 6704 symcode='[ABCDEGRST]' 6705 fi 6706 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6707 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'" 6708 ;; 6709linux*) 6710 if test "$host_cpu" = ia64; then 6711 symcode='[ABCDGIRSTW]' 6712 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6713 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'" 6714 fi 6715 ;; 6716irix* | nonstopux*) 6717 symcode='[BCDEGRST]' 6718 ;; 6719osf*) 6720 symcode='[BCDEGQRST]' 6721 ;; 6722solaris*) 6723 symcode='[BDRT]' 6724 ;; 6725sco3.2v5*) 6726 symcode='[DT]' 6727 ;; 6728sysv4.2uw2*) 6729 symcode='[DT]' 6730 ;; 6731sysv5* | sco5v6* | unixware* | OpenUNIX*) 6732 symcode='[ABDT]' 6733 ;; 6734sysv4) 6735 symcode='[DFNSTU]' 6736 ;; 6737esac 6738 6739# Handle CRLF in mingw tool chain 6740opt_cr= 6741case $build_os in 6742mingw*) 6743 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6744 ;; 6745esac 6746 6747# If we're using GNU nm, then use its standard symbol codes. 6748case `$NM -V 2>&1` in 6749*GNU* | *'with BFD'*) 6750 symcode='[ABCDGIRSTW]' ;; 6751esac 6752 6753# Try without a prefix undercore, then with it. 6754for ac_symprfx in "" "_"; do 6755 6756 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6757 symxfrm="\\1 $ac_symprfx\\2 \\2" 6758 6759 # Write the raw and C identifiers. 6760 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6761 6762 # Check to see that the pipe works correctly. 6763 pipe_works=no 6764 6765 rm -f conftest* 6766 cat > conftest.$ac_ext <<EOF 6767#ifdef __cplusplus 6768extern "C" { 6769#endif 6770char nm_test_var; 6771void nm_test_func(){} 6772#ifdef __cplusplus 6773} 6774#endif 6775int main(){nm_test_var='a';nm_test_func();return(0);} 6776EOF 6777 6778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6779 (eval $ac_compile) 2>&5 6780 ac_status=$? 6781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6782 (exit $ac_status); }; then 6783 # Now try to grab the symbols. 6784 nlist=conftest.nm 6785 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6786 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6787 ac_status=$? 6788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6789 (exit $ac_status); } && test -s "$nlist"; then 6790 # Try sorting and uniquifying the output. 6791 if sort "$nlist" | uniq > "$nlist"T; then 6792 mv -f "$nlist"T "$nlist" 6793 else 6794 rm -f "$nlist"T 6795 fi 6796 6797 # Make sure that we snagged all the symbols we need. 6798 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6799 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6800 cat <<EOF > conftest.$ac_ext 6801#ifdef __cplusplus 6802extern "C" { 6803#endif 6804 6805EOF 6806 # Now generate the symbol file. 6807 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6808 6809 cat <<EOF >> conftest.$ac_ext 6810#if defined (__STDC__) && __STDC__ 6811# define lt_ptr_t void * 6812#else 6813# define lt_ptr_t char * 6814# define const 6815#endif 6816 6817/* The mapping between symbol names and symbols. */ 6818const struct { 6819 const char *name; 6820 lt_ptr_t address; 6821} 6822lt_preloaded_symbols[] = 6823{ 6824EOF 6825 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6826 cat <<\EOF >> conftest.$ac_ext 6827 {0, (lt_ptr_t) 0} 6828}; 6829 6830#ifdef __cplusplus 6831} 6832#endif 6833EOF 6834 # Now try linking the two files. 6835 mv conftest.$ac_objext conftstm.$ac_objext 6836 lt_save_LIBS="$LIBS" 6837 lt_save_CFLAGS="$CFLAGS" 6838 LIBS="conftstm.$ac_objext" 6839 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6841 (eval $ac_link) 2>&5 6842 ac_status=$? 6843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6844 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6845 pipe_works=yes 6846 fi 6847 LIBS="$lt_save_LIBS" 6848 CFLAGS="$lt_save_CFLAGS" 6849 else 6850 echo "cannot find nm_test_func in $nlist" >&5 6851 fi 6852 else 6853 echo "cannot find nm_test_var in $nlist" >&5 6854 fi 6855 else 6856 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6857 fi 6858 else 6859 echo "$progname: failed program was:" >&5 6860 cat conftest.$ac_ext >&5 6861 fi 6862 rm -f conftest* conftst* 6863 6864 # Do not use the global_symbol_pipe unless it works. 6865 if test "$pipe_works" = yes; then 6866 break 6867 else 6868 lt_cv_sys_global_symbol_pipe= 6869 fi 6870done 6871 6872fi 6873 6874if test -z "$lt_cv_sys_global_symbol_pipe"; then 6875 lt_cv_sys_global_symbol_to_cdecl= 6876fi 6877if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6878 { echo "$as_me:$LINENO: result: failed" >&5 6879echo "${ECHO_T}failed" >&6; } 6880else 6881 { echo "$as_me:$LINENO: result: ok" >&5 6882echo "${ECHO_T}ok" >&6; } 6883fi 6884 6885{ echo "$as_me:$LINENO: checking for objdir" >&5 6886echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 6887if test "${lt_cv_objdir+set}" = set; then 6888 echo $ECHO_N "(cached) $ECHO_C" >&6 6889else 6890 rm -f .libs 2>/dev/null 6891mkdir .libs 2>/dev/null 6892if test -d .libs; then 6893 lt_cv_objdir=.libs 6894else 6895 # MS-DOS does not allow filenames that begin with a dot. 6896 lt_cv_objdir=_libs 6897fi 6898rmdir .libs 2>/dev/null 6899fi 6900{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6901echo "${ECHO_T}$lt_cv_objdir" >&6; } 6902objdir=$lt_cv_objdir 6903 6904 6905 6906 6907 6908case $host_os in 6909aix3*) 6910 # AIX sometimes has problems with the GCC collect2 program. For some 6911 # reason, if we set the COLLECT_NAMES environment variable, the problems 6912 # vanish in a puff of smoke. 6913 if test "X${COLLECT_NAMES+set}" != Xset; then 6914 COLLECT_NAMES= 6915 export COLLECT_NAMES 6916 fi 6917 ;; 6918esac 6919 6920# Sed substitution that helps us do robust quoting. It backslashifies 6921# metacharacters that are still active within double-quoted strings. 6922Xsed='sed -e 1s/^X//' 6923sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6924 6925# Same as above, but do not quote variable references. 6926double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6927 6928# Sed substitution to delay expansion of an escaped shell variable in a 6929# double_quote_subst'ed string. 6930delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6931 6932# Sed substitution to avoid accidental globbing in evaled expressions 6933no_glob_subst='s/\*/\\\*/g' 6934 6935# Constants: 6936rm="rm -f" 6937 6938# Global variables: 6939default_ofile=libtool 6940can_build_shared=yes 6941 6942# All known linkers require a '.a' archive for static linking (except MSVC, 6943# which needs '.lib'). 6944libext=a 6945ltmain="$ac_aux_dir/ltmain.sh" 6946ofile="$default_ofile" 6947with_gnu_ld="$lt_cv_prog_gnu_ld" 6948 6949if test -n "$ac_tool_prefix"; then 6950 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6951set dummy ${ac_tool_prefix}ar; ac_word=$2 6952{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6954if test "${ac_cv_prog_AR+set}" = set; then 6955 echo $ECHO_N "(cached) $ECHO_C" >&6 6956else 6957 if test -n "$AR"; then 6958 ac_cv_prog_AR="$AR" # Let the user override the test. 6959else 6960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6961for as_dir in $PATH 6962do 6963 IFS=$as_save_IFS 6964 test -z "$as_dir" && as_dir=. 6965 for ac_exec_ext in '' $ac_executable_extensions; do 6966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6967 ac_cv_prog_AR="${ac_tool_prefix}ar" 6968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6969 break 2 6970 fi 6971done 6972done 6973IFS=$as_save_IFS 6974 6975fi 6976fi 6977AR=$ac_cv_prog_AR 6978if test -n "$AR"; then 6979 { echo "$as_me:$LINENO: result: $AR" >&5 6980echo "${ECHO_T}$AR" >&6; } 6981else 6982 { echo "$as_me:$LINENO: result: no" >&5 6983echo "${ECHO_T}no" >&6; } 6984fi 6985 6986 6987fi 6988if test -z "$ac_cv_prog_AR"; then 6989 ac_ct_AR=$AR 6990 # Extract the first word of "ar", so it can be a program name with args. 6991set dummy ar; ac_word=$2 6992{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6994if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6995 echo $ECHO_N "(cached) $ECHO_C" >&6 6996else 6997 if test -n "$ac_ct_AR"; then 6998 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6999else 7000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7001for as_dir in $PATH 7002do 7003 IFS=$as_save_IFS 7004 test -z "$as_dir" && as_dir=. 7005 for ac_exec_ext in '' $ac_executable_extensions; do 7006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7007 ac_cv_prog_ac_ct_AR="ar" 7008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7009 break 2 7010 fi 7011done 7012done 7013IFS=$as_save_IFS 7014 7015fi 7016fi 7017ac_ct_AR=$ac_cv_prog_ac_ct_AR 7018if test -n "$ac_ct_AR"; then 7019 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 7020echo "${ECHO_T}$ac_ct_AR" >&6; } 7021else 7022 { echo "$as_me:$LINENO: result: no" >&5 7023echo "${ECHO_T}no" >&6; } 7024fi 7025 7026 if test "x$ac_ct_AR" = x; then 7027 AR="false" 7028 else 7029 case $cross_compiling:$ac_tool_warned in 7030yes:) 7031{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7032whose name does not start with the host triplet. If you think this 7033configuration is useful to you, please write to autoconf@gnu.org." >&5 7034echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7035whose name does not start with the host triplet. If you think this 7036configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7037ac_tool_warned=yes ;; 7038esac 7039 AR=$ac_ct_AR 7040 fi 7041else 7042 AR="$ac_cv_prog_AR" 7043fi 7044 7045if test -n "$ac_tool_prefix"; then 7046 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7047set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7048{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7050if test "${ac_cv_prog_RANLIB+set}" = set; then 7051 echo $ECHO_N "(cached) $ECHO_C" >&6 7052else 7053 if test -n "$RANLIB"; then 7054 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7055else 7056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7057for as_dir in $PATH 7058do 7059 IFS=$as_save_IFS 7060 test -z "$as_dir" && as_dir=. 7061 for ac_exec_ext in '' $ac_executable_extensions; do 7062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7063 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7065 break 2 7066 fi 7067done 7068done 7069IFS=$as_save_IFS 7070 7071fi 7072fi 7073RANLIB=$ac_cv_prog_RANLIB 7074if test -n "$RANLIB"; then 7075 { echo "$as_me:$LINENO: result: $RANLIB" >&5 7076echo "${ECHO_T}$RANLIB" >&6; } 7077else 7078 { echo "$as_me:$LINENO: result: no" >&5 7079echo "${ECHO_T}no" >&6; } 7080fi 7081 7082 7083fi 7084if test -z "$ac_cv_prog_RANLIB"; then 7085 ac_ct_RANLIB=$RANLIB 7086 # Extract the first word of "ranlib", so it can be a program name with args. 7087set dummy ranlib; ac_word=$2 7088{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7090if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 7091 echo $ECHO_N "(cached) $ECHO_C" >&6 7092else 7093 if test -n "$ac_ct_RANLIB"; then 7094 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7095else 7096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7097for as_dir in $PATH 7098do 7099 IFS=$as_save_IFS 7100 test -z "$as_dir" && as_dir=. 7101 for ac_exec_ext in '' $ac_executable_extensions; do 7102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7103 ac_cv_prog_ac_ct_RANLIB="ranlib" 7104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7105 break 2 7106 fi 7107done 7108done 7109IFS=$as_save_IFS 7110 7111fi 7112fi 7113ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7114if test -n "$ac_ct_RANLIB"; then 7115 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 7116echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 7117else 7118 { echo "$as_me:$LINENO: result: no" >&5 7119echo "${ECHO_T}no" >&6; } 7120fi 7121 7122 if test "x$ac_ct_RANLIB" = x; then 7123 RANLIB=":" 7124 else 7125 case $cross_compiling:$ac_tool_warned in 7126yes:) 7127{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7128whose name does not start with the host triplet. If you think this 7129configuration is useful to you, please write to autoconf@gnu.org." >&5 7130echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7131whose name does not start with the host triplet. If you think this 7132configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7133ac_tool_warned=yes ;; 7134esac 7135 RANLIB=$ac_ct_RANLIB 7136 fi 7137else 7138 RANLIB="$ac_cv_prog_RANLIB" 7139fi 7140 7141if test -n "$ac_tool_prefix"; then 7142 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7143set dummy ${ac_tool_prefix}strip; ac_word=$2 7144{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7145echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7146if test "${ac_cv_prog_STRIP+set}" = set; then 7147 echo $ECHO_N "(cached) $ECHO_C" >&6 7148else 7149 if test -n "$STRIP"; then 7150 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7151else 7152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7153for as_dir in $PATH 7154do 7155 IFS=$as_save_IFS 7156 test -z "$as_dir" && as_dir=. 7157 for ac_exec_ext in '' $ac_executable_extensions; do 7158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7159 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7161 break 2 7162 fi 7163done 7164done 7165IFS=$as_save_IFS 7166 7167fi 7168fi 7169STRIP=$ac_cv_prog_STRIP 7170if test -n "$STRIP"; then 7171 { echo "$as_me:$LINENO: result: $STRIP" >&5 7172echo "${ECHO_T}$STRIP" >&6; } 7173else 7174 { echo "$as_me:$LINENO: result: no" >&5 7175echo "${ECHO_T}no" >&6; } 7176fi 7177 7178 7179fi 7180if test -z "$ac_cv_prog_STRIP"; then 7181 ac_ct_STRIP=$STRIP 7182 # Extract the first word of "strip", so it can be a program name with args. 7183set dummy strip; ac_word=$2 7184{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7186if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 7187 echo $ECHO_N "(cached) $ECHO_C" >&6 7188else 7189 if test -n "$ac_ct_STRIP"; then 7190 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7191else 7192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7193for as_dir in $PATH 7194do 7195 IFS=$as_save_IFS 7196 test -z "$as_dir" && as_dir=. 7197 for ac_exec_ext in '' $ac_executable_extensions; do 7198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7199 ac_cv_prog_ac_ct_STRIP="strip" 7200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7201 break 2 7202 fi 7203done 7204done 7205IFS=$as_save_IFS 7206 7207fi 7208fi 7209ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7210if test -n "$ac_ct_STRIP"; then 7211 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 7212echo "${ECHO_T}$ac_ct_STRIP" >&6; } 7213else 7214 { echo "$as_me:$LINENO: result: no" >&5 7215echo "${ECHO_T}no" >&6; } 7216fi 7217 7218 if test "x$ac_ct_STRIP" = x; then 7219 STRIP=":" 7220 else 7221 case $cross_compiling:$ac_tool_warned in 7222yes:) 7223{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7224whose name does not start with the host triplet. If you think this 7225configuration is useful to you, please write to autoconf@gnu.org." >&5 7226echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7227whose name does not start with the host triplet. If you think this 7228configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7229ac_tool_warned=yes ;; 7230esac 7231 STRIP=$ac_ct_STRIP 7232 fi 7233else 7234 STRIP="$ac_cv_prog_STRIP" 7235fi 7236 7237 7238old_CC="$CC" 7239old_CFLAGS="$CFLAGS" 7240 7241# Set sane defaults for various variables 7242test -z "$AR" && AR=ar 7243test -z "$AR_FLAGS" && AR_FLAGS=cru 7244test -z "$AS" && AS=as 7245test -z "$CC" && CC=cc 7246test -z "$LTCC" && LTCC=$CC 7247test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7248test -z "$DLLTOOL" && DLLTOOL=dlltool 7249test -z "$LD" && LD=ld 7250test -z "$LN_S" && LN_S="ln -s" 7251test -z "$MAGIC_CMD" && MAGIC_CMD=file 7252test -z "$NM" && NM=nm 7253test -z "$SED" && SED=sed 7254test -z "$OBJDUMP" && OBJDUMP=objdump 7255test -z "$RANLIB" && RANLIB=: 7256test -z "$STRIP" && STRIP=: 7257test -z "$ac_objext" && ac_objext=o 7258 7259# Determine commands to create old-style static archives. 7260old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 7261old_postinstall_cmds='chmod 644 $oldlib' 7262old_postuninstall_cmds= 7263 7264_lt_gnu_ar=no 7265case $host_os in 7266mirbsd*) 7267 _lt_gnu_ar=yes 7268 ;; 7269esac 7270 7271test $_lt_gnu_ar = no && if test -n "$RANLIB"; then 7272 case $host_os in 7273 openbsd*) 7274 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 7275 ;; 7276 *) 7277 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 7278 ;; 7279 esac 7280 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 7281fi 7282 7283for cc_temp in $compiler""; do 7284 case $cc_temp in 7285 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7286 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7287 \-*) ;; 7288 *) break;; 7289 esac 7290done 7291cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7292 7293 7294# Only perform the check for file, if the check method requires it 7295case $deplibs_check_method in 7296file_magic*) 7297 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7298 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7299echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } 7300if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7301 echo $ECHO_N "(cached) $ECHO_C" >&6 7302else 7303 case $MAGIC_CMD in 7304[\\/*] | ?:[\\/]*) 7305 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7306 ;; 7307*) 7308 lt_save_MAGIC_CMD="$MAGIC_CMD" 7309 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7310 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7311 for ac_dir in $ac_dummy; do 7312 IFS="$lt_save_ifs" 7313 test -z "$ac_dir" && ac_dir=. 7314 if test -f $ac_dir/${ac_tool_prefix}file; then 7315 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7316 if test -n "$file_magic_test_file"; then 7317 case $deplibs_check_method in 7318 "file_magic "*) 7319 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7320 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7321 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7322 $EGREP "$file_magic_regex" > /dev/null; then 7323 : 7324 else 7325 cat <<EOF 1>&2 7326 7327*** Warning: the command libtool uses to detect shared libraries, 7328*** $file_magic_cmd, produces output that libtool cannot recognize. 7329*** The result is that libtool may fail to recognize shared libraries 7330*** as such. This will affect the creation of libtool libraries that 7331*** depend on shared libraries, but programs linked with such libtool 7332*** libraries will work regardless of this problem. Nevertheless, you 7333*** may want to report the problem to your system manager and/or to 7334*** bug-libtool@gnu.org 7335 7336EOF 7337 fi ;; 7338 esac 7339 fi 7340 break 7341 fi 7342 done 7343 IFS="$lt_save_ifs" 7344 MAGIC_CMD="$lt_save_MAGIC_CMD" 7345 ;; 7346esac 7347fi 7348 7349MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7350if test -n "$MAGIC_CMD"; then 7351 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7352echo "${ECHO_T}$MAGIC_CMD" >&6; } 7353else 7354 { echo "$as_me:$LINENO: result: no" >&5 7355echo "${ECHO_T}no" >&6; } 7356fi 7357 7358if test -z "$lt_cv_path_MAGIC_CMD"; then 7359 if test -n "$ac_tool_prefix"; then 7360 { echo "$as_me:$LINENO: checking for file" >&5 7361echo $ECHO_N "checking for file... $ECHO_C" >&6; } 7362if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7363 echo $ECHO_N "(cached) $ECHO_C" >&6 7364else 7365 case $MAGIC_CMD in 7366[\\/*] | ?:[\\/]*) 7367 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7368 ;; 7369*) 7370 lt_save_MAGIC_CMD="$MAGIC_CMD" 7371 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7372 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7373 for ac_dir in $ac_dummy; do 7374 IFS="$lt_save_ifs" 7375 test -z "$ac_dir" && ac_dir=. 7376 if test -f $ac_dir/file; then 7377 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7378 if test -n "$file_magic_test_file"; then 7379 case $deplibs_check_method in 7380 "file_magic "*) 7381 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7382 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7383 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7384 $EGREP "$file_magic_regex" > /dev/null; then 7385 : 7386 else 7387 cat <<EOF 1>&2 7388 7389*** Warning: the command libtool uses to detect shared libraries, 7390*** $file_magic_cmd, produces output that libtool cannot recognize. 7391*** The result is that libtool may fail to recognize shared libraries 7392*** as such. This will affect the creation of libtool libraries that 7393*** depend on shared libraries, but programs linked with such libtool 7394*** libraries will work regardless of this problem. Nevertheless, you 7395*** may want to report the problem to your system manager and/or to 7396*** bug-libtool@gnu.org 7397 7398EOF 7399 fi ;; 7400 esac 7401 fi 7402 break 7403 fi 7404 done 7405 IFS="$lt_save_ifs" 7406 MAGIC_CMD="$lt_save_MAGIC_CMD" 7407 ;; 7408esac 7409fi 7410 7411MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7412if test -n "$MAGIC_CMD"; then 7413 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7414echo "${ECHO_T}$MAGIC_CMD" >&6; } 7415else 7416 { echo "$as_me:$LINENO: result: no" >&5 7417echo "${ECHO_T}no" >&6; } 7418fi 7419 7420 else 7421 MAGIC_CMD=: 7422 fi 7423fi 7424 7425 fi 7426 ;; 7427esac 7428 7429enable_dlopen=no 7430enable_win32_dll=no 7431 7432# Check whether --enable-libtool-lock was given. 7433if test "${enable_libtool_lock+set}" = set; then 7434 enableval=$enable_libtool_lock; 7435fi 7436 7437test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7438 7439 7440# Check whether --with-pic was given. 7441if test "${with_pic+set}" = set; then 7442 withval=$with_pic; pic_mode="$withval" 7443else 7444 pic_mode=default 7445fi 7446 7447test -z "$pic_mode" && pic_mode=default 7448 7449# Use C for the default configuration in the libtool script 7450tagname= 7451lt_save_CC="$CC" 7452ac_ext=c 7453ac_cpp='$CPP $CPPFLAGS' 7454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7456ac_compiler_gnu=$ac_cv_c_compiler_gnu 7457 7458 7459# Source file extension for C test sources. 7460ac_ext=c 7461 7462# Object file extension for compiled C test sources. 7463objext=o 7464objext=$objext 7465 7466# Code to be used in simple compile tests 7467lt_simple_compile_test_code="int some_variable = 0;\n" 7468 7469# Code to be used in simple link tests 7470lt_simple_link_test_code='int main(){return(0);}\n' 7471 7472 7473# If no C compiler was specified, use CC. 7474LTCC=${LTCC-"$CC"} 7475 7476# If no C compiler flags were specified, use CFLAGS. 7477LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7478 7479# Allow CC to be a program name with arguments. 7480compiler=$CC 7481 7482 7483# save warnings/boilerplate of simple test code 7484ac_outfile=conftest.$ac_objext 7485printf "$lt_simple_compile_test_code" >conftest.$ac_ext 7486eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7487_lt_compiler_boilerplate=`cat conftest.err` 7488$rm conftest* 7489 7490ac_outfile=conftest.$ac_objext 7491printf "$lt_simple_link_test_code" >conftest.$ac_ext 7492eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7493_lt_linker_boilerplate=`cat conftest.err` 7494$rm conftest* 7495 7496 7497## CAVEAT EMPTOR: 7498## There is no encapsulation within the following macros, do not change 7499## the running order or otherwise move them around unless you know exactly 7500## what you are doing... 7501 7502lt_prog_compiler_no_builtin_flag= 7503 7504if test "$GCC" = yes; then 7505 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7506 7507 7508{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7509echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 7510if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7511 echo $ECHO_N "(cached) $ECHO_C" >&6 7512else 7513 lt_cv_prog_compiler_rtti_exceptions=no 7514 ac_outfile=conftest.$ac_objext 7515 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7516 lt_compiler_flag="-fno-rtti -fno-exceptions" 7517 # Insert the option either (1) after the last *FLAGS variable, or 7518 # (2) before a word containing "conftest.", or (3) at the end. 7519 # Note that $ac_compile itself does not contain backslashes and begins 7520 # with a dollar sign (not a hyphen), so the echo should work correctly. 7521 # The option is referenced via a variable to avoid confusing sed. 7522 lt_compile=`echo "$ac_compile" | $SED \ 7523 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7524 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7525 -e 's:$: $lt_compiler_flag:'` 7526 (eval echo "\"\$as_me:7526: $lt_compile\"" >&5) 7527 (eval "$lt_compile" 2>conftest.err) 7528 ac_status=$? 7529 cat conftest.err >&5 7530 echo "$as_me:7530: \$? = $ac_status" >&5 7531 if (exit $ac_status) && test -s "$ac_outfile"; then 7532 # The compiler can only warn and ignore the option if not recognized 7533 # So say no if there are warnings other than the usual output. 7534 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7535 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7536 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7537 lt_cv_prog_compiler_rtti_exceptions=yes 7538 fi 7539 fi 7540 $rm conftest* 7541 7542fi 7543{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7544echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7545 7546if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7547 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7548else 7549 : 7550fi 7551 7552fi 7553 7554lt_prog_compiler_wl= 7555lt_prog_compiler_pic= 7556lt_prog_compiler_static= 7557 7558{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7559echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 7560 7561 if test "$GCC" = yes; then 7562 lt_prog_compiler_wl='-Wl,' 7563 lt_prog_compiler_static='-static' 7564 7565 case $host_os in 7566 aix*) 7567 # All AIX code is PIC. 7568 if test "$host_cpu" = ia64; then 7569 # AIX 5 now supports IA64 processor 7570 lt_prog_compiler_static='-Bstatic' 7571 fi 7572 ;; 7573 7574 amigaos*) 7575 # FIXME: we need at least 68020 code to build shared libraries, but 7576 # adding the '-m68020' flag to GCC prevents building anything better, 7577 # like '-m68040'. 7578 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7579 ;; 7580 7581 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7582 # PIC is the default for these OSes. 7583 ;; 7584 7585 mingw* | cygwin* | pw32* | os2*) 7586 # This hack is so that the source file can tell whether it is being 7587 # built for inclusion in a dll (and should export symbols for example). 7588 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7589 # (--disable-auto-import) libraries 7590 lt_prog_compiler_pic='-DDLL_EXPORT' 7591 ;; 7592 7593 darwin* | rhapsody*) 7594 # PIC is the default on this platform 7595 # Common symbols not allowed in MH_DYLIB files 7596 lt_prog_compiler_pic='-fno-common' 7597 ;; 7598 7599 interix3*) 7600 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7601 # Instead, we relocate shared libraries at runtime. 7602 ;; 7603 7604 msdosdjgpp*) 7605 # Just because we use GCC doesn't mean we suddenly get shared libraries 7606 # on systems that don't support them. 7607 lt_prog_compiler_can_build_shared=no 7608 enable_shared=no 7609 ;; 7610 7611 sysv4*MP*) 7612 if test -d /usr/nec; then 7613 lt_prog_compiler_pic=-Kconform_pic 7614 fi 7615 ;; 7616 7617 hpux*) 7618 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7619 # not for PA HP-UX. 7620 case $host_cpu in 7621 hppa*64*|ia64*) 7622 # +Z the default 7623 ;; 7624 *) 7625 lt_prog_compiler_pic='-fPIC' 7626 ;; 7627 esac 7628 ;; 7629 7630 *) 7631 lt_prog_compiler_pic='-fPIC' 7632 ;; 7633 esac 7634 else 7635 # PORTME Check for flag to pass linker flags through the system compiler. 7636 case $host_os in 7637 aix*) 7638 lt_prog_compiler_wl='-Wl,' 7639 if test "$host_cpu" = ia64; then 7640 # AIX 5 now supports IA64 processor 7641 lt_prog_compiler_static='-Bstatic' 7642 else 7643 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7644 fi 7645 ;; 7646 darwin*) 7647 # PIC is the default on this platform 7648 # Common symbols not allowed in MH_DYLIB files 7649 case $cc_basename in 7650 xlc*) 7651 lt_prog_compiler_pic='-qnocommon' 7652 lt_prog_compiler_wl='-Wl,' 7653 ;; 7654 esac 7655 ;; 7656 7657 mingw* | cygwin* | pw32* | os2*) 7658 # This hack is so that the source file can tell whether it is being 7659 # built for inclusion in a dll (and should export symbols for example). 7660 lt_prog_compiler_pic='-DDLL_EXPORT' 7661 ;; 7662 7663 hpux9* | hpux10* | hpux11*) 7664 lt_prog_compiler_wl='-Wl,' 7665 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7666 # not for PA HP-UX. 7667 case $host_cpu in 7668 hppa*64*|ia64*) 7669 # +Z the default 7670 ;; 7671 *) 7672 lt_prog_compiler_pic='+Z' 7673 ;; 7674 esac 7675 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7676 lt_prog_compiler_static='${wl}-a ${wl}archive' 7677 ;; 7678 7679 irix5* | irix6* | nonstopux*) 7680 lt_prog_compiler_wl='-Wl,' 7681 # PIC (with -KPIC) is the default. 7682 lt_prog_compiler_static='-non_shared' 7683 ;; 7684 7685 newsos6) 7686 lt_prog_compiler_pic='-KPIC' 7687 lt_prog_compiler_static='-Bstatic' 7688 ;; 7689 7690 linux*) 7691 case $cc_basename in 7692 icc* | ecc*) 7693 lt_prog_compiler_wl='-Wl,' 7694 lt_prog_compiler_pic='-KPIC' 7695 lt_prog_compiler_static='-static' 7696 ;; 7697 pgcc* | pgf77* | pgf90* | pgf95*) 7698 # Portland Group compilers (*not* the Pentium gcc compiler, 7699 # which looks to be a dead project) 7700 lt_prog_compiler_wl='-Wl,' 7701 lt_prog_compiler_pic='-fpic' 7702 lt_prog_compiler_static='-Bstatic' 7703 ;; 7704 ccc*) 7705 lt_prog_compiler_wl='-Wl,' 7706 # All Alpha code is PIC. 7707 lt_prog_compiler_static='-non_shared' 7708 ;; 7709 *) 7710 case `$CC -V 2>&1 | sed 5q` in 7711 *Sun\ C*) 7712 # Sun C 5.9 7713 lt_prog_compiler_pic='-KPIC' 7714 lt_prog_compiler_static='-Bstatic' 7715 lt_prog_compiler_wl='-Wl,' 7716 ;; 7717 *Sun\ F*) 7718 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7719 lt_prog_compiler_pic='-KPIC' 7720 lt_prog_compiler_static='-Bstatic' 7721 lt_prog_compiler_wl='' 7722 ;; 7723 esac 7724 ;; 7725 esac 7726 ;; 7727 7728 osf3* | osf4* | osf5*) 7729 lt_prog_compiler_wl='-Wl,' 7730 # All OSF/1 code is PIC. 7731 lt_prog_compiler_static='-non_shared' 7732 ;; 7733 7734 rdos*) 7735 lt_prog_compiler_static='-non_shared' 7736 ;; 7737 7738 solaris*) 7739 lt_prog_compiler_pic='-KPIC' 7740 lt_prog_compiler_static='-Bstatic' 7741 case $cc_basename in 7742 f77* | f90* | f95*) 7743 lt_prog_compiler_wl='-Qoption ld ';; 7744 *) 7745 lt_prog_compiler_wl='-Wl,';; 7746 esac 7747 ;; 7748 7749 sunos4*) 7750 lt_prog_compiler_wl='-Qoption ld ' 7751 lt_prog_compiler_pic='-PIC' 7752 lt_prog_compiler_static='-Bstatic' 7753 ;; 7754 7755 sysv4 | sysv4.2uw2* | sysv4.3*) 7756 lt_prog_compiler_wl='-Wl,' 7757 lt_prog_compiler_pic='-KPIC' 7758 lt_prog_compiler_static='-Bstatic' 7759 ;; 7760 7761 sysv4*MP*) 7762 if test -d /usr/nec ;then 7763 lt_prog_compiler_pic='-Kconform_pic' 7764 lt_prog_compiler_static='-Bstatic' 7765 fi 7766 ;; 7767 7768 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7769 lt_prog_compiler_wl='-Wl,' 7770 lt_prog_compiler_pic='-KPIC' 7771 lt_prog_compiler_static='-Bstatic' 7772 ;; 7773 7774 unicos*) 7775 lt_prog_compiler_wl='-Wl,' 7776 lt_prog_compiler_can_build_shared=no 7777 ;; 7778 7779 uts4*) 7780 lt_prog_compiler_pic='-pic' 7781 lt_prog_compiler_static='-Bstatic' 7782 ;; 7783 7784 *) 7785 lt_prog_compiler_can_build_shared=no 7786 ;; 7787 esac 7788 fi 7789 7790{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7791echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 7792 7793# 7794# Check to make sure the PIC flag actually works. 7795# 7796if test -n "$lt_prog_compiler_pic"; then 7797 7798{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7799echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 7800if test "${lt_prog_compiler_pic_works+set}" = set; then 7801 echo $ECHO_N "(cached) $ECHO_C" >&6 7802else 7803 lt_prog_compiler_pic_works=no 7804 ac_outfile=conftest.$ac_objext 7805 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7806 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7807 # Insert the option either (1) after the last *FLAGS variable, or 7808 # (2) before a word containing "conftest.", or (3) at the end. 7809 # Note that $ac_compile itself does not contain backslashes and begins 7810 # with a dollar sign (not a hyphen), so the echo should work correctly. 7811 # The option is referenced via a variable to avoid confusing sed. 7812 lt_compile=`echo "$ac_compile" | $SED \ 7813 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7814 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7815 -e 's:$: $lt_compiler_flag:'` 7816 (eval echo "\"\$as_me:7816: $lt_compile\"" >&5) 7817 (eval "$lt_compile" 2>conftest.err) 7818 ac_status=$? 7819 cat conftest.err >&5 7820 echo "$as_me:7820: \$? = $ac_status" >&5 7821 if (exit $ac_status) && test -s "$ac_outfile"; then 7822 # The compiler can only warn and ignore the option if not recognized 7823 # So say no if there are warnings other than the usual output. 7824 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7825 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7826 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7827 lt_prog_compiler_pic_works=yes 7828 fi 7829 fi 7830 $rm conftest* 7831 7832fi 7833{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 7834echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } 7835 7836if test x"$lt_prog_compiler_pic_works" = xyes; then 7837 case $lt_prog_compiler_pic in 7838 "" | " "*) ;; 7839 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7840 esac 7841else 7842 lt_prog_compiler_pic= 7843 lt_prog_compiler_can_build_shared=no 7844fi 7845 7846fi 7847case $host_os in 7848 # For platforms which do not support PIC, -DPIC is meaningless: 7849 *djgpp*) 7850 lt_prog_compiler_pic= 7851 ;; 7852 *) 7853 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7854 ;; 7855esac 7856 7857# 7858# Check to make sure the static flag actually works. 7859# 7860wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7861{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7862echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 7863if test "${lt_prog_compiler_static_works+set}" = set; then 7864 echo $ECHO_N "(cached) $ECHO_C" >&6 7865else 7866 lt_prog_compiler_static_works=no 7867 save_LDFLAGS="$LDFLAGS" 7868 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7869 printf "$lt_simple_link_test_code" > conftest.$ac_ext 7870 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7871 # The linker can only warn and ignore the option if not recognized 7872 # So say no if there are warnings 7873 if test -s conftest.err; then 7874 # Append any errors to the config.log. 7875 cat conftest.err 1>&5 7876 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7877 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7878 if diff conftest.exp conftest.er2 >/dev/null; then 7879 lt_prog_compiler_static_works=yes 7880 fi 7881 else 7882 lt_prog_compiler_static_works=yes 7883 fi 7884 fi 7885 $rm conftest* 7886 LDFLAGS="$save_LDFLAGS" 7887 7888fi 7889{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 7890echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } 7891 7892if test x"$lt_prog_compiler_static_works" = xyes; then 7893 : 7894else 7895 lt_prog_compiler_static= 7896fi 7897 7898 7899{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7900echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 7901if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7902 echo $ECHO_N "(cached) $ECHO_C" >&6 7903else 7904 lt_cv_prog_compiler_c_o=no 7905 $rm -r conftest 2>/dev/null 7906 mkdir conftest 7907 cd conftest 7908 mkdir out 7909 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7910 7911 lt_compiler_flag="-o out/conftest2.$ac_objext" 7912 # Insert the option either (1) after the last *FLAGS variable, or 7913 # (2) before a word containing "conftest.", or (3) at the end. 7914 # Note that $ac_compile itself does not contain backslashes and begins 7915 # with a dollar sign (not a hyphen), so the echo should work correctly. 7916 lt_compile=`echo "$ac_compile" | $SED \ 7917 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7918 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7919 -e 's:$: $lt_compiler_flag:'` 7920 (eval echo "\"\$as_me:7920: $lt_compile\"" >&5) 7921 (eval "$lt_compile" 2>out/conftest.err) 7922 ac_status=$? 7923 cat out/conftest.err >&5 7924 echo "$as_me:7924: \$? = $ac_status" >&5 7925 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7926 then 7927 # The compiler can only warn and ignore the option if not recognized 7928 # So say no if there are warnings 7929 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7930 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7931 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7932 lt_cv_prog_compiler_c_o=yes 7933 fi 7934 fi 7935 chmod u+w . 2>&5 7936 $rm conftest* 7937 # SGI C++ compiler will create directory out/ii_files/ for 7938 # template instantiation 7939 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 7940 $rm out/* && rmdir out 7941 cd .. 7942 rmdir conftest 7943 $rm conftest* 7944 7945fi 7946{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7947echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 7948 7949 7950hard_links="nottested" 7951if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7952 # do not overwrite the value of need_locks provided by the user 7953 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7954echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 7955 hard_links=yes 7956 $rm conftest* 7957 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7958 touch conftest.a 7959 ln conftest.a conftest.b 2>&5 || hard_links=no 7960 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7961 { echo "$as_me:$LINENO: result: $hard_links" >&5 7962echo "${ECHO_T}$hard_links" >&6; } 7963 if test "$hard_links" = no; then 7964 { echo "$as_me:$LINENO: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 7965echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 7966 need_locks=warn 7967 fi 7968else 7969 need_locks=no 7970fi 7971 7972{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7973echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 7974 7975 runpath_var= 7976 allow_undefined_flag= 7977 enable_shared_with_static_runtimes=no 7978 archive_cmds= 7979 archive_expsym_cmds= 7980 old_archive_From_new_cmds= 7981 old_archive_from_expsyms_cmds= 7982 export_dynamic_flag_spec= 7983 whole_archive_flag_spec= 7984 thread_safe_flag_spec= 7985 hardcode_libdir_flag_spec= 7986 hardcode_libdir_flag_spec_ld= 7987 hardcode_libdir_separator= 7988 hardcode_direct=no 7989 hardcode_minus_L=no 7990 hardcode_shlibpath_var=unsupported 7991 link_all_deplibs=unknown 7992 hardcode_automatic=no 7993 module_cmds= 7994 module_expsym_cmds= 7995 always_export_symbols=no 7996 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7997 # include_expsyms should be a list of space-separated symbols to be *always* 7998 # included in the symbol list 7999 include_expsyms= 8000 # exclude_expsyms can be an extended regexp of symbols to exclude 8001 # it will be wrapped by ' (' and ')$', so one must not match beginning or 8002 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 8003 # as well as any symbol that contains 'd'. 8004 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 8005 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8006 # platforms (ab)use it in PIC code, but their linkers get confused if 8007 # the symbol is explicitly referenced. Since portable code cannot 8008 # rely on this symbol name, it's probably fine to never include it in 8009 # preloaded symbol tables. 8010 extract_expsyms_cmds= 8011 # Just being paranoid about ensuring that cc_basename is set. 8012 for cc_temp in $compiler""; do 8013 case $cc_temp in 8014 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8015 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8016 \-*) ;; 8017 *) break;; 8018 esac 8019done 8020cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8021 8022 case $host_os in 8023 cygwin* | mingw* | pw32*) 8024 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8025 # When not using gcc, we currently assume that we are using 8026 # Microsoft Visual C++. 8027 if test "$GCC" != yes; then 8028 with_gnu_ld=no 8029 fi 8030 ;; 8031 interix*) 8032 # we just hope/assume this is gcc and not c89 (= MSVC++) 8033 with_gnu_ld=yes 8034 ;; 8035 mirbsd*) 8036 with_gnu_ld=yes 8037 ;; 8038 openbsd*) 8039 with_gnu_ld=no 8040 ;; 8041 esac 8042 8043 ld_shlibs=yes 8044 if test "$with_gnu_ld" = yes; then 8045 # If archive_cmds runs LD, not CC, wlarc should be empty 8046 wlarc='${wl}' 8047 8048 # Set some defaults for GNU ld with shared library support. These 8049 # are reset later if shared libraries are not supported. Putting them 8050 # here allows them to be overridden if necessary. 8051 runpath_var=LD_RUN_PATH 8052 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 8053 export_dynamic_flag_spec='${wl}--export-dynamic' 8054 # ancient GNU ld didn't support --whole-archive et. al. 8055 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 8056 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8057 else 8058 whole_archive_flag_spec= 8059 fi 8060 supports_anon_versioning=no 8061 case `$LD -v 2>/dev/null` in 8062 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8063 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8064 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8065 *\ 2.11.*) ;; # other 2.11 versions 8066 *) supports_anon_versioning=yes ;; 8067 esac 8068 8069 # See if GNU ld supports shared libraries. 8070 case $host_os in 8071 aix3* | aix4* | aix5*) 8072 # On AIX/PPC, the GNU linker is very broken 8073 if test "$host_cpu" != ia64; then 8074 ld_shlibs=no 8075 cat <<EOF 1>&2 8076 8077*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8078*** to be unable to reliably create shared libraries on AIX. 8079*** Therefore, libtool is disabling shared libraries support. If you 8080*** really care for shared libraries, you may want to modify your PATH 8081*** so that a non-GNU linker is found, and then restart. 8082 8083EOF 8084 fi 8085 ;; 8086 8087 amigaos*) 8088 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)' 8089 hardcode_libdir_flag_spec='-L$libdir' 8090 hardcode_minus_L=yes 8091 8092 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 8093 # that the semantics of dynamic libraries on AmigaOS, at least up 8094 # to version 4, is to share data among multiple programs linked 8095 # with the same dynamic library. Since this doesn't match the 8096 # behavior of shared libraries on other platforms, we can't use 8097 # them. 8098 ld_shlibs=no 8099 ;; 8100 8101 beos*) 8102 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8103 allow_undefined_flag=unsupported 8104 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8105 # support --undefined. This deserves some investigation. FIXME 8106 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8107 else 8108 ld_shlibs=no 8109 fi 8110 ;; 8111 8112 cygwin* | mingw* | pw32*) 8113 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8114 # as there is no search path for DLLs. 8115 hardcode_libdir_flag_spec='-L$libdir' 8116 allow_undefined_flag=unsupported 8117 always_export_symbols=no 8118 enable_shared_with_static_runtimes=yes 8119 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 8120 8121 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 8122 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8123 # If the export-symbols file already is a .def file (1st line 8124 # is EXPORTS), use it as is; otherwise, prepend... 8125 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8126 cp $export_symbols $output_objdir/$soname.def; 8127 else 8128 echo EXPORTS > $output_objdir/$soname.def; 8129 cat $export_symbols >> $output_objdir/$soname.def; 8130 fi~ 8131 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8132 else 8133 ld_shlibs=no 8134 fi 8135 ;; 8136 8137 interix3*) 8138 hardcode_direct=no 8139 hardcode_shlibpath_var=no 8140 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8141 export_dynamic_flag_spec='${wl}-E' 8142 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8143 # Instead, shared libraries are loaded at an image base (0x10000000 by 8144 # default) and relocated if they conflict, which is a slow very memory 8145 # consuming and fragmenting process. To avoid this, we pick a random, 8146 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8147 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8148 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8149 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' 8150 ;; 8151 8152 linux*) 8153 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8154 tmp_addflag= 8155 case $cc_basename,$host_cpu in 8156 pgcc*) # Portland Group C compiler 8157 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' 8158 tmp_addflag=' $pic_flag' 8159 ;; 8160 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8161 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' 8162 tmp_addflag=' $pic_flag -Mnomain' ;; 8163 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8164 tmp_addflag=' -i_dynamic' ;; 8165 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8166 tmp_addflag=' -i_dynamic -nofor_main' ;; 8167 ifc* | ifort*) # Intel Fortran compiler 8168 tmp_addflag=' -nofor_main' ;; 8169 esac 8170 case `$CC -V 2>&1 | sed 5q` in 8171 *Sun\ C*) # Sun C 5.9 8172 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' 8173 tmp_sharedflag='-G' ;; 8174 *Sun\ F*) # Sun Fortran 8.3 8175 tmp_sharedflag='-G' ;; 8176 *) 8177 tmp_sharedflag='-shared' ;; 8178 esac 8179 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8180 8181 if test $supports_anon_versioning = yes; then 8182 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 8183 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8184 $echo "local: *; };" >> $output_objdir/$libname.ver~ 8185 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8186 fi 8187 else 8188 ld_shlibs=no 8189 fi 8190 ;; 8191 8192 mirbsd*) 8193 hardcode_direct=yes 8194 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags -o $lib' 8195 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 8196 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8197 export_dynamic_flag_spec='${wl}-E' 8198 ;; 8199 8200 netbsd*) 8201 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8202 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8203 wlarc= 8204 else 8205 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8206 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8207 fi 8208 ;; 8209 8210 solaris*) 8211 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 8212 ld_shlibs=no 8213 cat <<EOF 1>&2 8214 8215*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8216*** create shared libraries on Solaris systems. Therefore, libtool 8217*** is disabling shared libraries support. We urge you to upgrade GNU 8218*** binutils to release 2.9.1 or newer. Another option is to modify 8219*** your PATH or compiler configuration so that the native linker is 8220*** used, and then restart. 8221 8222EOF 8223 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8224 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8225 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8226 else 8227 ld_shlibs=no 8228 fi 8229 ;; 8230 8231 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8232 case `$LD -v 2>&1` in 8233 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8234 ld_shlibs=no 8235 cat <<_LT_EOF 1>&2 8236 8237*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8238*** reliably create shared libraries on SCO systems. Therefore, libtool 8239*** is disabling shared libraries support. We urge you to upgrade GNU 8240*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8241*** your PATH or compiler configuration so that the native linker is 8242*** used, and then restart. 8243 8244_LT_EOF 8245 ;; 8246 *) 8247 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8248 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 8249 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 8250 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 8251 else 8252 ld_shlibs=no 8253 fi 8254 ;; 8255 esac 8256 ;; 8257 8258 sunos4*) 8259 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8260 wlarc= 8261 hardcode_direct=yes 8262 hardcode_shlibpath_var=no 8263 ;; 8264 8265 *) 8266 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8267 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8268 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8269 else 8270 ld_shlibs=no 8271 fi 8272 ;; 8273 esac 8274 8275 if test "$ld_shlibs" = no; then 8276 runpath_var= 8277 hardcode_libdir_flag_spec= 8278 export_dynamic_flag_spec= 8279 whole_archive_flag_spec= 8280 fi 8281 else 8282 # PORTME fill in a description of your system's linker (not GNU ld) 8283 case $host_os in 8284 aix3*) 8285 allow_undefined_flag=unsupported 8286 always_export_symbols=yes 8287 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' 8288 # Note: this linker hardcodes the directories in LIBPATH if there 8289 # are no directories specified by -L. 8290 hardcode_minus_L=yes 8291 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8292 # Neither direct hardcoding nor static linking is supported with a 8293 # broken collect2. 8294 hardcode_direct=unsupported 8295 fi 8296 ;; 8297 8298 aix4* | aix5*) 8299 if test "$host_cpu" = ia64; then 8300 # On IA64, the linker does run time linking by default, so we don't 8301 # have to do anything special. 8302 aix_use_runtimelinking=no 8303 exp_sym_flag='-Bexport' 8304 no_entry_flag="" 8305 else 8306 # If we're using GNU nm, then we don't want the "-C" option. 8307 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8308 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 8309 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' 8310 else 8311 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' 8312 fi 8313 aix_use_runtimelinking=no 8314 8315 # Test if we are trying to use run time linking or normal 8316 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8317 # need to do runtime linking. 8318 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 8319 for ld_flag in $LDFLAGS; do 8320 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8321 aix_use_runtimelinking=yes 8322 break 8323 fi 8324 done 8325 ;; 8326 esac 8327 8328 exp_sym_flag='-bexport' 8329 no_entry_flag='-bnoentry' 8330 fi 8331 8332 # When large executables or shared objects are built, AIX ld can 8333 # have problems creating the table of contents. If linking a library 8334 # or program results in "error TOC overflow" add -mminimal-toc to 8335 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8336 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8337 8338 archive_cmds='' 8339 hardcode_direct=yes 8340 hardcode_libdir_separator=':' 8341 link_all_deplibs=yes 8342 8343 if test "$GCC" = yes; then 8344 case $host_os in aix4.[012]|aix4.[012].*) 8345 # We only want to do this on AIX 4.2 and lower, the check 8346 # below for broken collect2 doesn't work under 4.3+ 8347 collect2name=`${CC} -print-prog-name=collect2` 8348 if test -f "$collect2name" && \ 8349 strings "$collect2name" | grep resolve_lib_name >/dev/null 8350 then 8351 # We have reworked collect2 8352 : 8353 else 8354 # We have old collect2 8355 hardcode_direct=unsupported 8356 # It fails to find uninstalled libraries when the uninstalled 8357 # path is not listed in the libpath. Setting hardcode_minus_L 8358 # to unsupported forces relinking 8359 hardcode_minus_L=yes 8360 hardcode_libdir_flag_spec='-L$libdir' 8361 hardcode_libdir_separator= 8362 fi 8363 ;; 8364 esac 8365 shared_flag='-shared' 8366 if test "$aix_use_runtimelinking" = yes; then 8367 shared_flag="$shared_flag "'${wl}-G' 8368 fi 8369 else 8370 # not using gcc 8371 if test "$host_cpu" = ia64; then 8372 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8373 # chokes on -Wl,-G. The following line is correct: 8374 shared_flag='-G' 8375 else 8376 if test "$aix_use_runtimelinking" = yes; then 8377 shared_flag='${wl}-G' 8378 else 8379 shared_flag='${wl}-bM:SRE' 8380 fi 8381 fi 8382 fi 8383 8384 # It seems that -bexpall does not export symbols beginning with 8385 # underscore (_), so it is better to generate a list of symbols to export. 8386 always_export_symbols=yes 8387 if test "$aix_use_runtimelinking" = yes; then 8388 # Warning - without using the other runtime loading flags (-brtl), 8389 # -berok will link without error, but may produce a broken library. 8390 allow_undefined_flag='-berok' 8391 # Determine the default libpath from the value encoded in an empty executable. 8392 aix_libpath="/usr/lib:/lib" 8393 8394 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8395 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" 8396 else 8397 if test "$host_cpu" = ia64; then 8398 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8399 allow_undefined_flag="-z nodefs" 8400 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" 8401 else 8402 # Determine the default libpath from the value encoded in an empty executable. 8403 aix_libpath="/usr/lib:/lib" 8404 8405 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8406 # Warning - without using the other run time loading flags, 8407 # -berok will link without error, but may produce a broken library. 8408 no_undefined_flag=' ${wl}-bernotok' 8409 allow_undefined_flag=' ${wl}-berok' 8410 # Exported symbols can be pulled into shared objects from archives 8411 whole_archive_flag_spec='$convenience' 8412 archive_cmds_need_lc=yes 8413 # This is similar to how AIX traditionally builds its shared libraries. 8414 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' 8415 fi 8416 fi 8417 ;; 8418 8419 amigaos*) 8420 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)' 8421 hardcode_libdir_flag_spec='-L$libdir' 8422 hardcode_minus_L=yes 8423 # see comment about different semantics on the GNU ld section 8424 ld_shlibs=no 8425 ;; 8426 8427 bsdi[45]*) 8428 export_dynamic_flag_spec=-rdynamic 8429 ;; 8430 8431 cygwin* | mingw* | pw32*) 8432 # When not using gcc, we currently assume that we are using 8433 # Microsoft Visual C++. 8434 # hardcode_libdir_flag_spec is actually meaningless, as there is 8435 # no search path for DLLs. 8436 hardcode_libdir_flag_spec=' ' 8437 allow_undefined_flag=unsupported 8438 # Tell ltmain to make .lib files, not .a files. 8439 libext=lib 8440 # Tell ltmain to make .dll files, not .so files. 8441 shrext_cmds=".dll" 8442 # FIXME: Setting linknames here is a bad hack. 8443 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8444 # The linker will automatically build a .lib file if we build a DLL. 8445 old_archive_From_new_cmds='true' 8446 # FIXME: Should let the user specify the lib program. 8447 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 8448 fix_srcfile_path='`cygpath -w "$srcfile"`' 8449 enable_shared_with_static_runtimes=yes 8450 ;; 8451 8452 darwin* | rhapsody*) 8453 case $host_os in 8454 rhapsody* | darwin1.[012]) 8455 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8456 ;; 8457 *) # Darwin 1.3 on 8458 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8459 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8460 else 8461 case ${MACOSX_DEPLOYMENT_TARGET} in 8462 10.[012]) 8463 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8464 ;; 8465 10.*) 8466 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8467 ;; 8468 esac 8469 fi 8470 ;; 8471 esac 8472 archive_cmds_need_lc=no 8473 hardcode_direct=no 8474 hardcode_automatic=yes 8475 hardcode_shlibpath_var=unsupported 8476 whole_archive_flag_spec='' 8477 link_all_deplibs=yes 8478 if test "$GCC" = yes ; then 8479 output_verbose_link_cmd='echo' 8480 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 8481 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8482 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8483 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}' 8484 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}' 8485 else 8486 case $cc_basename in 8487 xlc*) 8488 output_verbose_link_cmd='echo' 8489 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 8490 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8491 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8492 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}' 8493 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}' 8494 ;; 8495 *) 8496 ld_shlibs=no 8497 ;; 8498 esac 8499 fi 8500 ;; 8501 8502 dgux*) 8503 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8504 hardcode_libdir_flag_spec='-L$libdir' 8505 hardcode_shlibpath_var=no 8506 ;; 8507 8508 freebsd1*) 8509 ld_shlibs=no 8510 ;; 8511 8512 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8513 # support. Future versions do this automatically, but an explicit c++rt0.o 8514 # does not break anything, and helps significantly (at the cost of a little 8515 # extra space). 8516 freebsd2.2*) 8517 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8518 hardcode_libdir_flag_spec='-R$libdir' 8519 hardcode_direct=yes 8520 hardcode_shlibpath_var=no 8521 ;; 8522 8523 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8524 freebsd2*) 8525 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8526 hardcode_direct=yes 8527 hardcode_minus_L=yes 8528 hardcode_shlibpath_var=no 8529 ;; 8530 8531 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8532 freebsd* | kfreebsd*-gnu | dragonfly*) 8533 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8534 hardcode_libdir_flag_spec='-R$libdir' 8535 hardcode_direct=yes 8536 hardcode_shlibpath_var=no 8537 ;; 8538 8539 hpux9*) 8540 if test "$GCC" = yes; then 8541 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' 8542 else 8543 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' 8544 fi 8545 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8546 hardcode_libdir_separator=: 8547 hardcode_direct=yes 8548 8549 # hardcode_minus_L: Not really in the search PATH, 8550 # but as the default location of the library. 8551 hardcode_minus_L=yes 8552 export_dynamic_flag_spec='${wl}-E' 8553 ;; 8554 8555 hpux10*) 8556 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8557 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8558 else 8559 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8560 fi 8561 if test "$with_gnu_ld" = no; then 8562 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8563 hardcode_libdir_separator=: 8564 8565 hardcode_direct=yes 8566 export_dynamic_flag_spec='${wl}-E' 8567 8568 # hardcode_minus_L: Not really in the search PATH, 8569 # but as the default location of the library. 8570 hardcode_minus_L=yes 8571 fi 8572 ;; 8573 8574 hpux11*) 8575 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8576 case $host_cpu in 8577 hppa*64*) 8578 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8579 ;; 8580 ia64*) 8581 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8582 ;; 8583 *) 8584 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8585 ;; 8586 esac 8587 else 8588 case $host_cpu in 8589 hppa*64*) 8590 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8591 ;; 8592 ia64*) 8593 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8594 ;; 8595 *) 8596 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8597 ;; 8598 esac 8599 fi 8600 if test "$with_gnu_ld" = no; then 8601 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8602 hardcode_libdir_separator=: 8603 8604 case $host_cpu in 8605 hppa*64*|ia64*) 8606 hardcode_libdir_flag_spec_ld='+b $libdir' 8607 hardcode_direct=no 8608 hardcode_shlibpath_var=no 8609 ;; 8610 *) 8611 hardcode_direct=yes 8612 export_dynamic_flag_spec='${wl}-E' 8613 8614 # hardcode_minus_L: Not really in the search PATH, 8615 # but as the default location of the library. 8616 hardcode_minus_L=yes 8617 ;; 8618 esac 8619 fi 8620 ;; 8621 8622 irix5* | irix6* | nonstopux*) 8623 if test "$GCC" = yes; then 8624 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' 8625 else 8626 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' 8627 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8628 fi 8629 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8630 hardcode_libdir_separator=: 8631 link_all_deplibs=yes 8632 ;; 8633 8634 netbsd*) 8635 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8636 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8637 else 8638 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8639 fi 8640 hardcode_libdir_flag_spec='-R$libdir' 8641 hardcode_direct=yes 8642 hardcode_shlibpath_var=no 8643 ;; 8644 8645 newsos6) 8646 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8647 hardcode_direct=yes 8648 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8649 hardcode_libdir_separator=: 8650 hardcode_shlibpath_var=no 8651 ;; 8652 8653 openbsd*) 8654 hardcode_direct=yes 8655 hardcode_shlibpath_var=no 8656 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8657 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags -o $lib' 8658 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 8659 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8660 export_dynamic_flag_spec='${wl}-E' 8661 else 8662 case $host_os in 8663 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8664 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8665 hardcode_libdir_flag_spec='-R$libdir' 8666 ;; 8667 *) 8668 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8669 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8670 ;; 8671 esac 8672 fi 8673 ;; 8674 8675 os2*) 8676 hardcode_libdir_flag_spec='-L$libdir' 8677 hardcode_minus_L=yes 8678 allow_undefined_flag=unsupported 8679 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' 8680 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8681 ;; 8682 8683 osf3*) 8684 if test "$GCC" = yes; then 8685 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8686 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' 8687 else 8688 allow_undefined_flag=' -expect_unresolved \*' 8689 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' 8690 fi 8691 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8692 hardcode_libdir_separator=: 8693 ;; 8694 8695 osf4* | osf5*) # as osf3* with the addition of -msym flag 8696 if test "$GCC" = yes; then 8697 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8698 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' 8699 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8700 else 8701 allow_undefined_flag=' -expect_unresolved \*' 8702 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' 8703 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8704 $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' 8705 8706 # Both c and cxx compiler support -rpath directly 8707 hardcode_libdir_flag_spec='-rpath $libdir' 8708 fi 8709 hardcode_libdir_separator=: 8710 ;; 8711 8712 solaris*) 8713 no_undefined_flag=' -z text' 8714 if test "$GCC" = yes; then 8715 wlarc='${wl}' 8716 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8717 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8718 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8719 else 8720 wlarc='' 8721 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8722 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8723 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8724 fi 8725 hardcode_libdir_flag_spec='-R$libdir' 8726 hardcode_shlibpath_var=no 8727 case $host_os in 8728 solaris2.[0-5] | solaris2.[0-5].*) ;; 8729 *) 8730 # The compiler driver will combine and reorder linker options, 8731 # but understands `-z linker_flag'. GCC discards it without `$wl', 8732 # but is careful enough not to reorder. 8733 # Supported since Solaris 2.6 (maybe 2.5.1?) 8734 if test "$GCC" = yes; then 8735 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8736 else 8737 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8738 fi 8739 ;; 8740 esac 8741 link_all_deplibs=yes 8742 ;; 8743 8744 sunos4*) 8745 if test "x$host_vendor" = xsequent; then 8746 # Use $CC to link under sequent, because it throws in some extra .o 8747 # files that make .init and .fini sections work. 8748 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8749 else 8750 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8751 fi 8752 hardcode_libdir_flag_spec='-L$libdir' 8753 hardcode_direct=yes 8754 hardcode_minus_L=yes 8755 hardcode_shlibpath_var=no 8756 ;; 8757 8758 sysv4) 8759 case $host_vendor in 8760 sni) 8761 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8762 hardcode_direct=yes # is this really true??? 8763 ;; 8764 siemens) 8765 ## LD is ld it makes a PLAMLIB 8766 ## CC just makes a GrossModule. 8767 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8768 reload_cmds='$CC -r -o $output$reload_objs' 8769 hardcode_direct=no 8770 ;; 8771 motorola) 8772 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8773 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8774 ;; 8775 esac 8776 runpath_var='LD_RUN_PATH' 8777 hardcode_shlibpath_var=no 8778 ;; 8779 8780 sysv4.3*) 8781 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8782 hardcode_shlibpath_var=no 8783 export_dynamic_flag_spec='-Bexport' 8784 ;; 8785 8786 sysv4*MP*) 8787 if test -d /usr/nec; then 8788 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8789 hardcode_shlibpath_var=no 8790 runpath_var=LD_RUN_PATH 8791 hardcode_runpath_var=yes 8792 ld_shlibs=yes 8793 fi 8794 ;; 8795 8796 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 8797 no_undefined_flag='${wl}-z,text' 8798 archive_cmds_need_lc=no 8799 hardcode_shlibpath_var=no 8800 runpath_var='LD_RUN_PATH' 8801 8802 if test "$GCC" = yes; then 8803 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8804 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8805 else 8806 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8807 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8808 fi 8809 ;; 8810 8811 sysv5* | sco3.2v5* | sco5v6*) 8812 # Note: We can NOT use -z defs as we might desire, because we do not 8813 # link with -lc, and that would cause any symbols used from libc to 8814 # always be unresolved, which means just about no library would 8815 # ever link correctly. If we're not using GNU ld we use -z text 8816 # though, which does catch some bad symbols but isn't as heavy-handed 8817 # as -z defs. 8818 no_undefined_flag='${wl}-z,text' 8819 allow_undefined_flag='${wl}-z,nodefs' 8820 archive_cmds_need_lc=no 8821 hardcode_shlibpath_var=no 8822 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 8823 hardcode_libdir_separator=':' 8824 link_all_deplibs=yes 8825 export_dynamic_flag_spec='${wl}-Bexport' 8826 runpath_var='LD_RUN_PATH' 8827 8828 if test "$GCC" = yes; then 8829 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8830 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8831 else 8832 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8833 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8834 fi 8835 ;; 8836 8837 uts4*) 8838 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8839 hardcode_libdir_flag_spec='-L$libdir' 8840 hardcode_shlibpath_var=no 8841 ;; 8842 8843 *) 8844 ld_shlibs=no 8845 ;; 8846 esac 8847 fi 8848 8849{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 8850echo "${ECHO_T}$ld_shlibs" >&6; } 8851test "$ld_shlibs" = no && can_build_shared=no 8852 8853# 8854# Do we need to explicitly link libc? 8855# 8856case "x$archive_cmds_need_lc" in 8857x|xyes) 8858 # Assume -lc should be added 8859 archive_cmds_need_lc=yes 8860 8861 if test "$enable_shared" = yes && test "$GCC" = yes; then 8862 case $archive_cmds in 8863 *'~'*) 8864 # FIXME: we may have to deal with multi-command sequences. 8865 ;; 8866 '$CC '*) 8867 # Test whether the compiler implicitly links with -lc since on some 8868 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8869 # to ld, don't add -lc before -lgcc. 8870 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 8871echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 8872 $rm conftest* 8873 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8874 8875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8876 (eval $ac_compile) 2>&5 8877 ac_status=$? 8878 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8879 (exit $ac_status); } 2>conftest.err; then 8880 soname=conftest 8881 lib=conftest 8882 libobjs=conftest.$ac_objext 8883 deplibs= 8884 wl=$lt_prog_compiler_wl 8885 pic_flag=$lt_prog_compiler_pic 8886 compiler_flags=-v 8887 linker_flags=-v 8888 verstring= 8889 output_objdir=. 8890 libname=conftest 8891 lt_save_allow_undefined_flag=$allow_undefined_flag 8892 allow_undefined_flag= 8893 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 8894 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 8895 ac_status=$? 8896 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8897 (exit $ac_status); } 8898 then 8899 archive_cmds_need_lc=no 8900 else 8901 archive_cmds_need_lc=yes 8902 fi 8903 allow_undefined_flag=$lt_save_allow_undefined_flag 8904 else 8905 cat conftest.err 1>&5 8906 fi 8907 $rm conftest* 8908 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 8909echo "${ECHO_T}$archive_cmds_need_lc" >&6; } 8910 ;; 8911 esac 8912 fi 8913 ;; 8914esac 8915 8916{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8917echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 8918library_names_spec= 8919libname_spec='lib$name' 8920soname_spec= 8921shrext_cmds=".so" 8922postinstall_cmds= 8923postuninstall_cmds= 8924finish_cmds= 8925finish_eval= 8926shlibpath_var= 8927shlibpath_overrides_runpath=unknown 8928version_type=none 8929dynamic_linker="$host_os ld.so" 8930sys_lib_dlsearch_path_spec="/lib /usr/lib" 8931if test "$GCC" = yes; then 8932 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8933 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 8934 # if the path contains ";" then we assume it to be the separator 8935 # otherwise default to the standard path separator (i.e. ":") - it is 8936 # assumed that no part of a normal pathname contains ";" but that should 8937 # okay in the real world where ";" in dirpaths is itself problematic. 8938 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8939 else 8940 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8941 fi 8942else 8943 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8944fi 8945tmp="$sys_lib_search_path_spec" 8946sys_lib_search_path_spec= 8947sp= 8948for i in $tmp 8949do 8950 test -d $i && sys_lib_search_path_spec="$sys_lib_search_path_spec$sp$i" 8951 sp=" " 8952done 8953 8954need_lib_prefix=unknown 8955hardcode_into_libs=no 8956 8957# when you set need_version to no, make sure it does not cause -set_version 8958# flags to be left without arguments 8959need_version=unknown 8960 8961case $host_os in 8962aix3*) 8963 version_type=linux 8964 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8965 shlibpath_var=LIBPATH 8966 8967 # AIX 3 has no versioning support, so we append a major version to the name. 8968 soname_spec='${libname}${release}${shared_ext}$major' 8969 ;; 8970 8971aix4* | aix5*) 8972 version_type=linux 8973 need_lib_prefix=no 8974 need_version=no 8975 hardcode_into_libs=yes 8976 if test "$host_cpu" = ia64; then 8977 # AIX 5 supports IA64 8978 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8979 shlibpath_var=LD_LIBRARY_PATH 8980 else 8981 # With GCC up to 2.95.x, collect2 would create an import file 8982 # for dependence libraries. The import file would start with 8983 # the line '#! .'. This would cause the generated library to 8984 # depend on '.', always an invalid library. This was fixed in 8985 # development snapshots of GCC prior to 3.0. 8986 case $host_os in 8987 aix4 | aix4.[01] | aix4.[01].*) 8988 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8989 echo ' yes ' 8990 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 8991 : 8992 else 8993 can_build_shared=no 8994 fi 8995 ;; 8996 esac 8997 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8998 # soname into executable. Probably we can add versioning support to 8999 # collect2, so additional links can be useful in future. 9000 if test "$aix_use_runtimelinking" = yes; then 9001 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9002 # instead of lib<name>.a to let people know that these are not 9003 # typical AIX shared libraries. 9004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9005 else 9006 # We preserve .a as extension for shared libraries through AIX4.2 9007 # and later when we are not doing run time linking. 9008 library_names_spec='${libname}${release}.a $libname.a' 9009 soname_spec='${libname}${release}${shared_ext}$major' 9010 fi 9011 shlibpath_var=LIBPATH 9012 fi 9013 ;; 9014 9015amigaos*) 9016 library_names_spec='$libname.ixlibrary $libname.a' 9017 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9018 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' 9019 ;; 9020 9021beos*) 9022 library_names_spec='${libname}${shared_ext}' 9023 dynamic_linker="$host_os ld.so" 9024 shlibpath_var=LIBRARY_PATH 9025 ;; 9026 9027bsdi[45]*) 9028 version_type=linux 9029 need_version=no 9030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9031 soname_spec='${libname}${release}${shared_ext}$major' 9032 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9033 shlibpath_var=LD_LIBRARY_PATH 9034 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9035 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9036 # the default ld.so.conf also contains /usr/contrib/lib and 9037 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9038 # libtool to hard-code these into programs 9039 ;; 9040 9041cygwin* | mingw* | pw32*) 9042 version_type=windows 9043 shrext_cmds=".dll" 9044 need_version=no 9045 need_lib_prefix=no 9046 9047 case $GCC,$host_os in 9048 yes,cygwin* | yes,mingw* | yes,pw32*) 9049 library_names_spec='$libname.dll.a' 9050 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9051 postinstall_cmds='base_file=`basename \${file}`~ 9052 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 9053 dldir=$destdir/`dirname \$dlpath`~ 9054 test -d \$dldir || mkdir -p \$dldir~ 9055 $install_prog $dir/$dlname \$dldir/$dlname~ 9056 chmod a+x \$dldir/$dlname' 9057 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9058 dlpath=$dir/\$dldll~ 9059 $rm \$dlpath' 9060 shlibpath_overrides_runpath=yes 9061 9062 case $host_os in 9063 cygwin*) 9064 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9065 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9066 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9067 ;; 9068 mingw*) 9069 # MinGW DLLs use traditional 'lib' prefix 9070 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9071 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9072 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 9073 # It is most probably a Windows format PATH printed by 9074 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9075 # path with ; separators, and with drive letters. We can handle the 9076 # drive letters (cygwin fileutils understands them), so leave them, 9077 # especially as we might pass files found there to a mingw objdump, 9078 # which wouldn't understand a cygwinified path. Ahh. 9079 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9080 else 9081 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9082 fi 9083 ;; 9084 pw32*) 9085 # pw32 DLLs use 'pw' prefix rather than 'lib' 9086 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9087 ;; 9088 esac 9089 ;; 9090 9091 *) 9092 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9093 ;; 9094 esac 9095 dynamic_linker='Win32 ld.exe' 9096 # FIXME: first we should search . and the directory the executable is in 9097 shlibpath_var=PATH 9098 ;; 9099 9100darwin* | rhapsody*) 9101 dynamic_linker="$host_os dyld" 9102 version_type=darwin 9103 need_lib_prefix=no 9104 need_version=no 9105 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9106 soname_spec='${libname}${release}${major}$shared_ext' 9107 shlibpath_overrides_runpath=yes 9108 shlibpath_var=DYLD_LIBRARY_PATH 9109 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9110 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 9111 if test "$GCC" = yes; then 9112 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"` 9113 else 9114 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 9115 fi 9116 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9117 ;; 9118 9119dgux*) 9120 version_type=linux 9121 need_lib_prefix=no 9122 need_version=no 9123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9124 soname_spec='${libname}${release}${shared_ext}$major' 9125 shlibpath_var=LD_LIBRARY_PATH 9126 ;; 9127 9128freebsd1*) 9129 dynamic_linker=no 9130 ;; 9131 9132kfreebsd*-gnu) 9133 version_type=linux 9134 need_lib_prefix=no 9135 need_version=no 9136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9137 soname_spec='${libname}${release}${shared_ext}$major' 9138 shlibpath_var=LD_LIBRARY_PATH 9139 shlibpath_overrides_runpath=no 9140 hardcode_into_libs=yes 9141 dynamic_linker='GNU ld.so' 9142 ;; 9143 9144freebsd* | dragonfly*) 9145 # DragonFly does not have aout. When/if they implement a new 9146 # versioning mechanism, adjust this. 9147 if test -x /usr/bin/objformat; then 9148 objformat=`/usr/bin/objformat` 9149 else 9150 case $host_os in 9151 freebsd[123]*) objformat=aout ;; 9152 *) objformat=elf ;; 9153 esac 9154 fi 9155 version_type=freebsd-$objformat 9156 case $version_type in 9157 freebsd-elf*) 9158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9159 need_version=no 9160 need_lib_prefix=no 9161 ;; 9162 freebsd-*) 9163 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9164 need_version=yes 9165 ;; 9166 esac 9167 shlibpath_var=LD_LIBRARY_PATH 9168 case $host_os in 9169 freebsd2*) 9170 shlibpath_overrides_runpath=yes 9171 ;; 9172 freebsd3.[01]* | freebsdelf3.[01]*) 9173 shlibpath_overrides_runpath=yes 9174 hardcode_into_libs=yes 9175 ;; 9176 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9177 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9178 shlibpath_overrides_runpath=no 9179 hardcode_into_libs=yes 9180 ;; 9181 *) # from 4.6 on, and DragonFly 9182 shlibpath_overrides_runpath=yes 9183 hardcode_into_libs=yes 9184 ;; 9185 esac 9186 ;; 9187 9188gnu*) 9189 version_type=linux 9190 need_lib_prefix=no 9191 need_version=no 9192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9193 soname_spec='${libname}${release}${shared_ext}$major' 9194 shlibpath_var=LD_LIBRARY_PATH 9195 hardcode_into_libs=yes 9196 ;; 9197 9198hpux9* | hpux10* | hpux11*) 9199 # Give a soname corresponding to the major version so that dld.sl refuses to 9200 # link against other versions. 9201 version_type=sunos 9202 need_lib_prefix=no 9203 need_version=no 9204 case $host_cpu in 9205 ia64*) 9206 shrext_cmds='.so' 9207 hardcode_into_libs=yes 9208 dynamic_linker="$host_os dld.so" 9209 shlibpath_var=LD_LIBRARY_PATH 9210 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9212 soname_spec='${libname}${release}${shared_ext}$major' 9213 if test "X$HPUX_IA64_MODE" = X32; then 9214 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9215 else 9216 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9217 fi 9218 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9219 ;; 9220 hppa*64*) 9221 shrext_cmds='.sl' 9222 hardcode_into_libs=yes 9223 dynamic_linker="$host_os dld.sl" 9224 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9225 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9227 soname_spec='${libname}${release}${shared_ext}$major' 9228 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9229 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9230 ;; 9231 *) 9232 shrext_cmds='.sl' 9233 dynamic_linker="$host_os dld.sl" 9234 shlibpath_var=SHLIB_PATH 9235 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9237 soname_spec='${libname}${release}${shared_ext}$major' 9238 ;; 9239 esac 9240 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9241 postinstall_cmds='chmod 555 $lib' 9242 ;; 9243 9244interix3*) 9245 version_type=linux 9246 need_lib_prefix=no 9247 need_version=no 9248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9249 soname_spec='${libname}${release}${shared_ext}$major' 9250 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9251 shlibpath_var=LD_LIBRARY_PATH 9252 shlibpath_overrides_runpath=no 9253 hardcode_into_libs=yes 9254 ;; 9255 9256irix5* | irix6* | nonstopux*) 9257 case $host_os in 9258 nonstopux*) version_type=nonstopux ;; 9259 *) 9260 if test "$lt_cv_prog_gnu_ld" = yes; then 9261 version_type=linux 9262 else 9263 version_type=irix 9264 fi ;; 9265 esac 9266 need_lib_prefix=no 9267 need_version=no 9268 soname_spec='${libname}${release}${shared_ext}$major' 9269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9270 case $host_os in 9271 irix5* | nonstopux*) 9272 libsuff= shlibsuff= 9273 ;; 9274 *) 9275 case $LD in # libtool.m4 will add one of these switches to LD 9276 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9277 libsuff= shlibsuff= libmagic=32-bit;; 9278 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9279 libsuff=32 shlibsuff=N32 libmagic=N32;; 9280 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9281 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9282 *) libsuff= shlibsuff= libmagic=never-match;; 9283 esac 9284 ;; 9285 esac 9286 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9287 shlibpath_overrides_runpath=no 9288 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9289 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9290 hardcode_into_libs=yes 9291 ;; 9292 9293# No shared lib support for Linux oldld, aout, or coff. 9294linux*oldld* | linux*aout* | linux*coff*) 9295 dynamic_linker=no 9296 ;; 9297 9298# This must be Linux ELF. 9299linux*) 9300 version_type=linux 9301 need_lib_prefix=no 9302 need_version=no 9303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9304 soname_spec='${libname}${release}${shared_ext}$major' 9305 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9306 shlibpath_var=LD_LIBRARY_PATH 9307 shlibpath_overrides_runpath=no 9308 # This implies no fast_install, which is unacceptable. 9309 # Some rework will be needed to allow for fast_install 9310 # before this can be enabled. 9311 hardcode_into_libs=yes 9312 9313 # Append ld.so.conf contents to the search path 9314 if test -f /etc/ld.so.conf; then 9315 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' ' '` 9316 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9317 fi 9318 9319 # We used to test for /lib/ld.so.1 and disable shared libraries on 9320 # powerpc, because MkLinux only supported shared libraries with the 9321 # GNU dynamic linker. Since this was broken with cross compilers, 9322 # most powerpc-linux boxes support dynamic linking these days and 9323 # people can always --disable-shared, the test was removed, and we 9324 # assume the GNU/Linux dynamic linker is in use. 9325 dynamic_linker='GNU/Linux ld.so' 9326 ;; 9327 9328mirbsd*) 9329 version_type=linux 9330 sys_lib_dlsearch_path_spec="/usr/lib" 9331 need_lib_prefix=no 9332 need_version=no 9333 library_names_spec='${libname}${release}${shared_ext}$versuffix2 ${libname}${shared_ext}$versuffix2' 9334 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9335 shlibpath_var=LD_LIBRARY_PATH 9336 shlibpath_overrides_runpath=yes 9337 ;; 9338 9339knetbsd*-gnu) 9340 version_type=linux 9341 need_lib_prefix=no 9342 need_version=no 9343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9344 soname_spec='${libname}${release}${shared_ext}$major' 9345 shlibpath_var=LD_LIBRARY_PATH 9346 shlibpath_overrides_runpath=no 9347 hardcode_into_libs=yes 9348 dynamic_linker='GNU ld.so' 9349 ;; 9350 9351netbsd*) 9352 version_type=sunos 9353 need_lib_prefix=no 9354 need_version=no 9355 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9357 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9358 dynamic_linker='NetBSD (a.out) ld.so' 9359 else 9360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9361 soname_spec='${libname}${release}${shared_ext}$major' 9362 dynamic_linker='NetBSD ld.elf_so' 9363 fi 9364 shlibpath_var=LD_LIBRARY_PATH 9365 shlibpath_overrides_runpath=yes 9366 hardcode_into_libs=yes 9367 ;; 9368 9369newsos6) 9370 version_type=linux 9371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9372 shlibpath_var=LD_LIBRARY_PATH 9373 shlibpath_overrides_runpath=yes 9374 ;; 9375 9376nto-qnx*) 9377 version_type=linux 9378 need_lib_prefix=no 9379 need_version=no 9380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9381 soname_spec='${libname}${release}${shared_ext}$major' 9382 shlibpath_var=LD_LIBRARY_PATH 9383 shlibpath_overrides_runpath=yes 9384 ;; 9385 9386openbsd*) 9387 version_type=linux 9388 sys_lib_dlsearch_path_spec="/usr/lib" 9389 need_lib_prefix=no 9390 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9391 case $host_os in 9392 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9393 *) need_version=no ;; 9394 esac 9395 library_names_spec='${libname}${release}${shared_ext}$versuffix2 ${libname}${shared_ext}$versuffix2' 9396 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9397 shlibpath_var=LD_LIBRARY_PATH 9398 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9399 case $host_os in 9400 openbsd2.[89] | openbsd2.[89].*) 9401 shlibpath_overrides_runpath=no 9402 ;; 9403 *) 9404 shlibpath_overrides_runpath=yes 9405 ;; 9406 esac 9407 else 9408 shlibpath_overrides_runpath=yes 9409 fi 9410 ;; 9411 9412os2*) 9413 libname_spec='$name' 9414 shrext_cmds=".dll" 9415 need_lib_prefix=no 9416 library_names_spec='$libname${shared_ext} $libname.a' 9417 dynamic_linker='OS/2 ld.exe' 9418 shlibpath_var=LIBPATH 9419 ;; 9420 9421osf3* | osf4* | osf5*) 9422 version_type=osf 9423 need_lib_prefix=no 9424 need_version=no 9425 soname_spec='${libname}${release}${shared_ext}$major' 9426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9427 shlibpath_var=LD_LIBRARY_PATH 9428 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9429 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9430 ;; 9431 9432rdos*) 9433 dynamic_linker=no 9434 ;; 9435 9436solaris*) 9437 version_type=linux 9438 need_lib_prefix=no 9439 need_version=no 9440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9441 soname_spec='${libname}${release}${shared_ext}$major' 9442 shlibpath_var=LD_LIBRARY_PATH 9443 shlibpath_overrides_runpath=yes 9444 hardcode_into_libs=yes 9445 # ldd complains unless libraries are executable 9446 postinstall_cmds='chmod +x $lib' 9447 ;; 9448 9449sunos4*) 9450 version_type=sunos 9451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9452 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9453 shlibpath_var=LD_LIBRARY_PATH 9454 shlibpath_overrides_runpath=yes 9455 if test "$with_gnu_ld" = yes; then 9456 need_lib_prefix=no 9457 fi 9458 need_version=yes 9459 ;; 9460 9461sysv4 | sysv4.3*) 9462 version_type=linux 9463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9464 soname_spec='${libname}${release}${shared_ext}$major' 9465 shlibpath_var=LD_LIBRARY_PATH 9466 case $host_vendor in 9467 sni) 9468 shlibpath_overrides_runpath=no 9469 need_lib_prefix=no 9470 export_dynamic_flag_spec='${wl}-Blargedynsym' 9471 runpath_var=LD_RUN_PATH 9472 ;; 9473 siemens) 9474 need_lib_prefix=no 9475 ;; 9476 motorola) 9477 need_lib_prefix=no 9478 need_version=no 9479 shlibpath_overrides_runpath=no 9480 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9481 ;; 9482 esac 9483 ;; 9484 9485sysv4*MP*) 9486 if test -d /usr/nec ;then 9487 version_type=linux 9488 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9489 soname_spec='$libname${shared_ext}.$major' 9490 shlibpath_var=LD_LIBRARY_PATH 9491 fi 9492 ;; 9493 9494sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9495 version_type=freebsd-elf 9496 need_lib_prefix=no 9497 need_version=no 9498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9499 soname_spec='${libname}${release}${shared_ext}$major' 9500 shlibpath_var=LD_LIBRARY_PATH 9501 hardcode_into_libs=yes 9502 if test "$with_gnu_ld" = yes; then 9503 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9504 shlibpath_overrides_runpath=no 9505 else 9506 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9507 shlibpath_overrides_runpath=yes 9508 case $host_os in 9509 sco3.2v5*) 9510 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9511 ;; 9512 esac 9513 fi 9514 sys_lib_dlsearch_path_spec='/usr/lib' 9515 ;; 9516 9517uts4*) 9518 version_type=linux 9519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9520 soname_spec='${libname}${release}${shared_ext}$major' 9521 shlibpath_var=LD_LIBRARY_PATH 9522 ;; 9523 9524*) 9525 dynamic_linker=no 9526 ;; 9527esac 9528{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9529echo "${ECHO_T}$dynamic_linker" >&6; } 9530test "$dynamic_linker" = no && can_build_shared=no 9531 9532variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9533if test "$GCC" = yes; then 9534 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9535fi 9536 9537{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9538echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 9539hardcode_action= 9540if test -n "$hardcode_libdir_flag_spec" || \ 9541 test -n "$runpath_var" || \ 9542 test "X$hardcode_automatic" = "Xyes" ; then 9543 9544 # We can hardcode non-existant directories. 9545 if test "$hardcode_direct" != no && 9546 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9547 # have to relink, otherwise we might link with an installed library 9548 # when we should be linking with a yet-to-be-installed one 9549 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9550 test "$hardcode_minus_L" != no; then 9551 # Linking always hardcodes the temporary library directory. 9552 hardcode_action=relink 9553 else 9554 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9555 hardcode_action=immediate 9556 fi 9557else 9558 # We cannot hardcode anything, or else we can only hardcode existing 9559 # directories. 9560 hardcode_action=unsupported 9561fi 9562{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 9563echo "${ECHO_T}$hardcode_action" >&6; } 9564 9565if test "$hardcode_action" = relink; then 9566 # Fast installation is not supported 9567 enable_fast_install=no 9568elif test "$shlibpath_overrides_runpath" = yes || 9569 test "$enable_shared" = no; then 9570 # Fast installation is not necessary 9571 enable_fast_install=needless 9572fi 9573 9574striplib= 9575old_striplib= 9576{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9577echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } 9578if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9579 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9580 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9581 { echo "$as_me:$LINENO: result: yes" >&5 9582echo "${ECHO_T}yes" >&6; } 9583else 9584# FIXME - insert some real tests, host_os isn't really good enough 9585 case $host_os in 9586 darwin*) 9587 if test -n "$STRIP" ; then 9588 striplib="$STRIP -x" 9589 { echo "$as_me:$LINENO: result: yes" >&5 9590echo "${ECHO_T}yes" >&6; } 9591 else 9592 { echo "$as_me:$LINENO: result: no" >&5 9593echo "${ECHO_T}no" >&6; } 9594 fi 9595 ;; 9596 *) 9597 { echo "$as_me:$LINENO: result: no" >&5 9598echo "${ECHO_T}no" >&6; } 9599 ;; 9600 esac 9601fi 9602 9603if test "x$enable_dlopen" != xyes; then 9604 enable_dlopen=unknown 9605 enable_dlopen_self=unknown 9606 enable_dlopen_self_static=unknown 9607else 9608 lt_cv_dlopen=no 9609 lt_cv_dlopen_libs= 9610 9611 case $host_os in 9612 beos*) 9613 lt_cv_dlopen="load_add_on" 9614 lt_cv_dlopen_libs= 9615 lt_cv_dlopen_self=yes 9616 ;; 9617 9618 mingw* | pw32*) 9619 lt_cv_dlopen="LoadLibrary" 9620 lt_cv_dlopen_libs= 9621 ;; 9622 9623 cygwin*) 9624 lt_cv_dlopen="dlopen" 9625 lt_cv_dlopen_libs= 9626 ;; 9627 9628 darwin*) 9629 # if libdl is installed we need to link against it 9630 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9631echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9632if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9633 echo $ECHO_N "(cached) $ECHO_C" >&6 9634else 9635 ac_check_lib_save_LIBS=$LIBS 9636LIBS="-ldl $LIBS" 9637cat >conftest.$ac_ext <<_ACEOF 9638/* confdefs.h. */ 9639_ACEOF 9640cat confdefs.h >>conftest.$ac_ext 9641cat >>conftest.$ac_ext <<_ACEOF 9642/* end confdefs.h. */ 9643 9644/* Override any GCC internal prototype to avoid an error. 9645 Use char because int might match the return type of a GCC 9646 builtin and then its argument prototype would still apply. */ 9647#ifdef __cplusplus 9648extern "C" 9649#endif 9650char dlopen (); 9651int 9652main () 9653{ 9654return dlopen (); 9655 ; 9656 return 0; 9657} 9658_ACEOF 9659rm -f conftest.$ac_objext conftest$ac_exeext 9660if { (ac_try="$ac_link" 9661case "(($ac_try" in 9662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9663 *) ac_try_echo=$ac_try;; 9664esac 9665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9666 (eval "$ac_link") 2>conftest.er1 9667 ac_status=$? 9668 grep -v '^ *+' conftest.er1 >conftest.err 9669 rm -f conftest.er1 9670 cat conftest.err >&5 9671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9672 (exit $ac_status); } && 9673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9674 { (case "(($ac_try" in 9675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9676 *) ac_try_echo=$ac_try;; 9677esac 9678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9679 (eval "$ac_try") 2>&5 9680 ac_status=$? 9681 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9682 (exit $ac_status); }; } && 9683 { ac_try='test -s conftest$ac_exeext' 9684 { (case "(($ac_try" in 9685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9686 *) ac_try_echo=$ac_try;; 9687esac 9688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9689 (eval "$ac_try") 2>&5 9690 ac_status=$? 9691 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9692 (exit $ac_status); }; }; then 9693 ac_cv_lib_dl_dlopen=yes 9694else 9695 echo "$as_me: failed program was:" >&5 9696sed 's/^/| /' conftest.$ac_ext >&5 9697 9698 ac_cv_lib_dl_dlopen=no 9699fi 9700 9701rm -f core conftest.err conftest.$ac_objext \ 9702 conftest$ac_exeext conftest.$ac_ext 9703LIBS=$ac_check_lib_save_LIBS 9704fi 9705{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9706echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9707if test $ac_cv_lib_dl_dlopen = yes; then 9708 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9709else 9710 9711 lt_cv_dlopen="dyld" 9712 lt_cv_dlopen_libs= 9713 lt_cv_dlopen_self=yes 9714 9715fi 9716 9717 ;; 9718 9719 *) 9720 { echo "$as_me:$LINENO: checking for shl_load" >&5 9721echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 9722if test "${ac_cv_func_shl_load+set}" = set; then 9723 echo $ECHO_N "(cached) $ECHO_C" >&6 9724else 9725 cat >conftest.$ac_ext <<_ACEOF 9726/* confdefs.h. */ 9727_ACEOF 9728cat confdefs.h >>conftest.$ac_ext 9729cat >>conftest.$ac_ext <<_ACEOF 9730/* end confdefs.h. */ 9731/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9732 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9733#define shl_load innocuous_shl_load 9734 9735/* System header to define __stub macros and hopefully few prototypes, 9736 which can conflict with char shl_load (); below. 9737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9738 <limits.h> exists even on freestanding compilers. */ 9739 9740#ifdef __STDC__ 9741# include <limits.h> 9742#else 9743# include <assert.h> 9744#endif 9745 9746#undef shl_load 9747 9748/* Override any GCC internal prototype to avoid an error. 9749 Use char because int might match the return type of a GCC 9750 builtin and then its argument prototype would still apply. */ 9751#ifdef __cplusplus 9752extern "C" 9753#endif 9754char shl_load (); 9755/* The GNU C library defines this for functions which it implements 9756 to always fail with ENOSYS. Some functions are actually named 9757 something starting with __ and the normal name is an alias. */ 9758#if defined __stub_shl_load || defined __stub___shl_load 9759choke me 9760#endif 9761 9762int 9763main () 9764{ 9765return shl_load (); 9766 ; 9767 return 0; 9768} 9769_ACEOF 9770rm -f conftest.$ac_objext conftest$ac_exeext 9771if { (ac_try="$ac_link" 9772case "(($ac_try" in 9773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9774 *) ac_try_echo=$ac_try;; 9775esac 9776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9777 (eval "$ac_link") 2>conftest.er1 9778 ac_status=$? 9779 grep -v '^ *+' conftest.er1 >conftest.err 9780 rm -f conftest.er1 9781 cat conftest.err >&5 9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9783 (exit $ac_status); } && 9784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9785 { (case "(($ac_try" in 9786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9787 *) ac_try_echo=$ac_try;; 9788esac 9789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9790 (eval "$ac_try") 2>&5 9791 ac_status=$? 9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9793 (exit $ac_status); }; } && 9794 { ac_try='test -s conftest$ac_exeext' 9795 { (case "(($ac_try" in 9796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9797 *) ac_try_echo=$ac_try;; 9798esac 9799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9800 (eval "$ac_try") 2>&5 9801 ac_status=$? 9802 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9803 (exit $ac_status); }; }; then 9804 ac_cv_func_shl_load=yes 9805else 9806 echo "$as_me: failed program was:" >&5 9807sed 's/^/| /' conftest.$ac_ext >&5 9808 9809 ac_cv_func_shl_load=no 9810fi 9811 9812rm -f core conftest.err conftest.$ac_objext \ 9813 conftest$ac_exeext conftest.$ac_ext 9814fi 9815{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9816echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 9817if test $ac_cv_func_shl_load = yes; then 9818 lt_cv_dlopen="shl_load" 9819else 9820 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9821echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 9822if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9823 echo $ECHO_N "(cached) $ECHO_C" >&6 9824else 9825 ac_check_lib_save_LIBS=$LIBS 9826LIBS="-ldld $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 shl_load (); 9841int 9842main () 9843{ 9844return shl_load (); 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_dld_shl_load=yes 9884else 9885 echo "$as_me: failed program was:" >&5 9886sed 's/^/| /' conftest.$ac_ext >&5 9887 9888 ac_cv_lib_dld_shl_load=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_dld_shl_load" >&5 9896echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 9897if test $ac_cv_lib_dld_shl_load = yes; then 9898 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 9899else 9900 { echo "$as_me:$LINENO: checking for dlopen" >&5 9901echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 9902if test "${ac_cv_func_dlopen+set}" = set; then 9903 echo $ECHO_N "(cached) $ECHO_C" >&6 9904else 9905 cat >conftest.$ac_ext <<_ACEOF 9906/* confdefs.h. */ 9907_ACEOF 9908cat confdefs.h >>conftest.$ac_ext 9909cat >>conftest.$ac_ext <<_ACEOF 9910/* end confdefs.h. */ 9911/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 9912 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9913#define dlopen innocuous_dlopen 9914 9915/* System header to define __stub macros and hopefully few prototypes, 9916 which can conflict with char dlopen (); below. 9917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9918 <limits.h> exists even on freestanding compilers. */ 9919 9920#ifdef __STDC__ 9921# include <limits.h> 9922#else 9923# include <assert.h> 9924#endif 9925 9926#undef dlopen 9927 9928/* Override any GCC internal prototype to avoid an error. 9929 Use char because int might match the return type of a GCC 9930 builtin and then its argument prototype would still apply. */ 9931#ifdef __cplusplus 9932extern "C" 9933#endif 9934char dlopen (); 9935/* The GNU C library defines this for functions which it implements 9936 to always fail with ENOSYS. Some functions are actually named 9937 something starting with __ and the normal name is an alias. */ 9938#if defined __stub_dlopen || defined __stub___dlopen 9939choke me 9940#endif 9941 9942int 9943main () 9944{ 9945return dlopen (); 9946 ; 9947 return 0; 9948} 9949_ACEOF 9950rm -f conftest.$ac_objext conftest$ac_exeext 9951if { (ac_try="$ac_link" 9952case "(($ac_try" in 9953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9954 *) ac_try_echo=$ac_try;; 9955esac 9956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9957 (eval "$ac_link") 2>conftest.er1 9958 ac_status=$? 9959 grep -v '^ *+' conftest.er1 >conftest.err 9960 rm -f conftest.er1 9961 cat conftest.err >&5 9962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9963 (exit $ac_status); } && 9964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9965 { (case "(($ac_try" in 9966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9967 *) ac_try_echo=$ac_try;; 9968esac 9969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9970 (eval "$ac_try") 2>&5 9971 ac_status=$? 9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9973 (exit $ac_status); }; } && 9974 { ac_try='test -s conftest$ac_exeext' 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); }; }; then 9984 ac_cv_func_dlopen=yes 9985else 9986 echo "$as_me: failed program was:" >&5 9987sed 's/^/| /' conftest.$ac_ext >&5 9988 9989 ac_cv_func_dlopen=no 9990fi 9991 9992rm -f core conftest.err conftest.$ac_objext \ 9993 conftest$ac_exeext conftest.$ac_ext 9994fi 9995{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 9996echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 9997if test $ac_cv_func_dlopen = yes; then 9998 lt_cv_dlopen="dlopen" 9999else 10000 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10001echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 10002if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10003 echo $ECHO_N "(cached) $ECHO_C" >&6 10004else 10005 ac_check_lib_save_LIBS=$LIBS 10006LIBS="-ldl $LIBS" 10007cat >conftest.$ac_ext <<_ACEOF 10008/* confdefs.h. */ 10009_ACEOF 10010cat confdefs.h >>conftest.$ac_ext 10011cat >>conftest.$ac_ext <<_ACEOF 10012/* end confdefs.h. */ 10013 10014/* Override any GCC internal prototype to avoid an error. 10015 Use char because int might match the return type of a GCC 10016 builtin and then its argument prototype would still apply. */ 10017#ifdef __cplusplus 10018extern "C" 10019#endif 10020char dlopen (); 10021int 10022main () 10023{ 10024return dlopen (); 10025 ; 10026 return 0; 10027} 10028_ACEOF 10029rm -f conftest.$ac_objext conftest$ac_exeext 10030if { (ac_try="$ac_link" 10031case "(($ac_try" in 10032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10033 *) ac_try_echo=$ac_try;; 10034esac 10035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10036 (eval "$ac_link") 2>conftest.er1 10037 ac_status=$? 10038 grep -v '^ *+' conftest.er1 >conftest.err 10039 rm -f conftest.er1 10040 cat conftest.err >&5 10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10042 (exit $ac_status); } && 10043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10044 { (case "(($ac_try" in 10045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10046 *) ac_try_echo=$ac_try;; 10047esac 10048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10049 (eval "$ac_try") 2>&5 10050 ac_status=$? 10051 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10052 (exit $ac_status); }; } && 10053 { ac_try='test -s conftest$ac_exeext' 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); }; }; then 10063 ac_cv_lib_dl_dlopen=yes 10064else 10065 echo "$as_me: failed program was:" >&5 10066sed 's/^/| /' conftest.$ac_ext >&5 10067 10068 ac_cv_lib_dl_dlopen=no 10069fi 10070 10071rm -f core conftest.err conftest.$ac_objext \ 10072 conftest$ac_exeext conftest.$ac_ext 10073LIBS=$ac_check_lib_save_LIBS 10074fi 10075{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10076echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 10077if test $ac_cv_lib_dl_dlopen = yes; then 10078 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10079else 10080 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10081echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 10082if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10083 echo $ECHO_N "(cached) $ECHO_C" >&6 10084else 10085 ac_check_lib_save_LIBS=$LIBS 10086LIBS="-lsvld $LIBS" 10087cat >conftest.$ac_ext <<_ACEOF 10088/* confdefs.h. */ 10089_ACEOF 10090cat confdefs.h >>conftest.$ac_ext 10091cat >>conftest.$ac_ext <<_ACEOF 10092/* end confdefs.h. */ 10093 10094/* Override any GCC internal prototype to avoid an error. 10095 Use char because int might match the return type of a GCC 10096 builtin and then its argument prototype would still apply. */ 10097#ifdef __cplusplus 10098extern "C" 10099#endif 10100char dlopen (); 10101int 10102main () 10103{ 10104return dlopen (); 10105 ; 10106 return 0; 10107} 10108_ACEOF 10109rm -f conftest.$ac_objext conftest$ac_exeext 10110if { (ac_try="$ac_link" 10111case "(($ac_try" in 10112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10113 *) ac_try_echo=$ac_try;; 10114esac 10115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10116 (eval "$ac_link") 2>conftest.er1 10117 ac_status=$? 10118 grep -v '^ *+' conftest.er1 >conftest.err 10119 rm -f conftest.er1 10120 cat conftest.err >&5 10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10122 (exit $ac_status); } && 10123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10124 { (case "(($ac_try" in 10125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10126 *) ac_try_echo=$ac_try;; 10127esac 10128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10129 (eval "$ac_try") 2>&5 10130 ac_status=$? 10131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10132 (exit $ac_status); }; } && 10133 { ac_try='test -s conftest$ac_exeext' 10134 { (case "(($ac_try" in 10135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10136 *) ac_try_echo=$ac_try;; 10137esac 10138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10139 (eval "$ac_try") 2>&5 10140 ac_status=$? 10141 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10142 (exit $ac_status); }; }; then 10143 ac_cv_lib_svld_dlopen=yes 10144else 10145 echo "$as_me: failed program was:" >&5 10146sed 's/^/| /' conftest.$ac_ext >&5 10147 10148 ac_cv_lib_svld_dlopen=no 10149fi 10150 10151rm -f core conftest.err conftest.$ac_objext \ 10152 conftest$ac_exeext conftest.$ac_ext 10153LIBS=$ac_check_lib_save_LIBS 10154fi 10155{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10156echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 10157if test $ac_cv_lib_svld_dlopen = yes; then 10158 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10159else 10160 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10161echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 10162if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10163 echo $ECHO_N "(cached) $ECHO_C" >&6 10164else 10165 ac_check_lib_save_LIBS=$LIBS 10166LIBS="-ldld $LIBS" 10167cat >conftest.$ac_ext <<_ACEOF 10168/* confdefs.h. */ 10169_ACEOF 10170cat confdefs.h >>conftest.$ac_ext 10171cat >>conftest.$ac_ext <<_ACEOF 10172/* end confdefs.h. */ 10173 10174/* Override any GCC internal prototype to avoid an error. 10175 Use char because int might match the return type of a GCC 10176 builtin and then its argument prototype would still apply. */ 10177#ifdef __cplusplus 10178extern "C" 10179#endif 10180char dld_link (); 10181int 10182main () 10183{ 10184return dld_link (); 10185 ; 10186 return 0; 10187} 10188_ACEOF 10189rm -f conftest.$ac_objext conftest$ac_exeext 10190if { (ac_try="$ac_link" 10191case "(($ac_try" in 10192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10193 *) ac_try_echo=$ac_try;; 10194esac 10195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10196 (eval "$ac_link") 2>conftest.er1 10197 ac_status=$? 10198 grep -v '^ *+' conftest.er1 >conftest.err 10199 rm -f conftest.er1 10200 cat conftest.err >&5 10201 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10202 (exit $ac_status); } && 10203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10204 { (case "(($ac_try" in 10205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10206 *) ac_try_echo=$ac_try;; 10207esac 10208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10209 (eval "$ac_try") 2>&5 10210 ac_status=$? 10211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10212 (exit $ac_status); }; } && 10213 { ac_try='test -s conftest$ac_exeext' 10214 { (case "(($ac_try" in 10215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10216 *) ac_try_echo=$ac_try;; 10217esac 10218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10219 (eval "$ac_try") 2>&5 10220 ac_status=$? 10221 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10222 (exit $ac_status); }; }; then 10223 ac_cv_lib_dld_dld_link=yes 10224else 10225 echo "$as_me: failed program was:" >&5 10226sed 's/^/| /' conftest.$ac_ext >&5 10227 10228 ac_cv_lib_dld_dld_link=no 10229fi 10230 10231rm -f core conftest.err conftest.$ac_objext \ 10232 conftest$ac_exeext conftest.$ac_ext 10233LIBS=$ac_check_lib_save_LIBS 10234fi 10235{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10236echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 10237if test $ac_cv_lib_dld_dld_link = yes; then 10238 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 10239fi 10240 10241 10242fi 10243 10244 10245fi 10246 10247 10248fi 10249 10250 10251fi 10252 10253 10254fi 10255 10256 ;; 10257 esac 10258 10259 if test "x$lt_cv_dlopen" != xno; then 10260 enable_dlopen=yes 10261 else 10262 enable_dlopen=no 10263 fi 10264 10265 case $lt_cv_dlopen in 10266 dlopen) 10267 save_CPPFLAGS="$CPPFLAGS" 10268 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10269 10270 save_LDFLAGS="$LDFLAGS" 10271 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10272 10273 save_LIBS="$LIBS" 10274 LIBS="$lt_cv_dlopen_libs $LIBS" 10275 10276 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10277echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } 10278if test "${lt_cv_dlopen_self+set}" = set; then 10279 echo $ECHO_N "(cached) $ECHO_C" >&6 10280else 10281 if test "$cross_compiling" = yes; then : 10282 lt_cv_dlopen_self=cross 10283else 10284 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10285 lt_status=$lt_dlunknown 10286 cat > conftest.$ac_ext <<EOF 10287#line 10287 "configure" 10288#include "confdefs.h" 10289 10290#if HAVE_DLFCN_H 10291#include <dlfcn.h> 10292#endif 10293 10294#include <stdio.h> 10295 10296#ifdef RTLD_GLOBAL 10297# define LT_DLGLOBAL RTLD_GLOBAL 10298#else 10299# ifdef DL_GLOBAL 10300# define LT_DLGLOBAL DL_GLOBAL 10301# else 10302# define LT_DLGLOBAL 0 10303# endif 10304#endif 10305 10306/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10307 find out it does not work in some platform. */ 10308#ifndef LT_DLLAZY_OR_NOW 10309# ifdef RTLD_LAZY 10310# define LT_DLLAZY_OR_NOW RTLD_LAZY 10311# else 10312# ifdef DL_LAZY 10313# define LT_DLLAZY_OR_NOW DL_LAZY 10314# else 10315# ifdef RTLD_NOW 10316# define LT_DLLAZY_OR_NOW RTLD_NOW 10317# else 10318# ifdef DL_NOW 10319# define LT_DLLAZY_OR_NOW DL_NOW 10320# else 10321# define LT_DLLAZY_OR_NOW 0 10322# endif 10323# endif 10324# endif 10325# endif 10326#endif 10327 10328#ifdef __cplusplus 10329extern "C" void exit (int); 10330#endif 10331 10332void fnord() { int i=42;} 10333int main () 10334{ 10335 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10336 int status = $lt_dlunknown; 10337 10338 if (self) 10339 { 10340 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10341 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10342 /* dlclose (self); */ 10343 } 10344 else 10345 puts (dlerror ()); 10346 10347 exit (status); 10348} 10349EOF 10350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10351 (eval $ac_link) 2>&5 10352 ac_status=$? 10353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10354 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10355 (./conftest; exit; ) >&5 2>/dev/null 10356 lt_status=$? 10357 case x$lt_status in 10358 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10359 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10360 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10361 esac 10362 else : 10363 # compilation failed 10364 lt_cv_dlopen_self=no 10365 fi 10366fi 10367rm -fr conftest* 10368 10369 10370fi 10371{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10372echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } 10373 10374 if test "x$lt_cv_dlopen_self" = xyes; then 10375 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10376 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10377echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } 10378if test "${lt_cv_dlopen_self_static+set}" = set; then 10379 echo $ECHO_N "(cached) $ECHO_C" >&6 10380else 10381 if test "$cross_compiling" = yes; then : 10382 lt_cv_dlopen_self_static=cross 10383else 10384 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10385 lt_status=$lt_dlunknown 10386 cat > conftest.$ac_ext <<EOF 10387#line 10387 "configure" 10388#include "confdefs.h" 10389 10390#if HAVE_DLFCN_H 10391#include <dlfcn.h> 10392#endif 10393 10394#include <stdio.h> 10395 10396#ifdef RTLD_GLOBAL 10397# define LT_DLGLOBAL RTLD_GLOBAL 10398#else 10399# ifdef DL_GLOBAL 10400# define LT_DLGLOBAL DL_GLOBAL 10401# else 10402# define LT_DLGLOBAL 0 10403# endif 10404#endif 10405 10406/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10407 find out it does not work in some platform. */ 10408#ifndef LT_DLLAZY_OR_NOW 10409# ifdef RTLD_LAZY 10410# define LT_DLLAZY_OR_NOW RTLD_LAZY 10411# else 10412# ifdef DL_LAZY 10413# define LT_DLLAZY_OR_NOW DL_LAZY 10414# else 10415# ifdef RTLD_NOW 10416# define LT_DLLAZY_OR_NOW RTLD_NOW 10417# else 10418# ifdef DL_NOW 10419# define LT_DLLAZY_OR_NOW DL_NOW 10420# else 10421# define LT_DLLAZY_OR_NOW 0 10422# endif 10423# endif 10424# endif 10425# endif 10426#endif 10427 10428#ifdef __cplusplus 10429extern "C" void exit (int); 10430#endif 10431 10432void fnord() { int i=42;} 10433int main () 10434{ 10435 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10436 int status = $lt_dlunknown; 10437 10438 if (self) 10439 { 10440 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10441 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10442 /* dlclose (self); */ 10443 } 10444 else 10445 puts (dlerror ()); 10446 10447 exit (status); 10448} 10449EOF 10450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10451 (eval $ac_link) 2>&5 10452 ac_status=$? 10453 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10454 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10455 (./conftest; exit; ) >&5 2>/dev/null 10456 lt_status=$? 10457 case x$lt_status in 10458 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10459 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10460 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10461 esac 10462 else : 10463 # compilation failed 10464 lt_cv_dlopen_self_static=no 10465 fi 10466fi 10467rm -fr conftest* 10468 10469 10470fi 10471{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10472echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } 10473 fi 10474 10475 CPPFLAGS="$save_CPPFLAGS" 10476 LDFLAGS="$save_LDFLAGS" 10477 LIBS="$save_LIBS" 10478 ;; 10479 esac 10480 10481 case $lt_cv_dlopen_self in 10482 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10483 *) enable_dlopen_self=unknown ;; 10484 esac 10485 10486 case $lt_cv_dlopen_self_static in 10487 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10488 *) enable_dlopen_self_static=unknown ;; 10489 esac 10490fi 10491 10492 10493# Report which library types will actually be built 10494{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10495echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 10496{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 10497echo "${ECHO_T}$can_build_shared" >&6; } 10498 10499{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10500echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 10501test "$can_build_shared" = "no" && enable_shared=no 10502 10503# On AIX, shared libraries and static libraries use the same namespace, and 10504# are all built from PIC. 10505case $host_os in 10506aix3*) 10507 test "$enable_shared" = yes && enable_static=no 10508 if test -n "$RANLIB"; then 10509 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10510 postinstall_cmds='$RANLIB $lib' 10511 fi 10512 ;; 10513 10514aix4* | aix5*) 10515 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10516 test "$enable_shared" = yes && enable_static=no 10517 fi 10518 ;; 10519esac 10520{ echo "$as_me:$LINENO: result: $enable_shared" >&5 10521echo "${ECHO_T}$enable_shared" >&6; } 10522 10523{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10524echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 10525# Make sure either enable_shared or enable_static is yes. 10526test "$enable_shared" = yes || enable_static=yes 10527{ echo "$as_me:$LINENO: result: $enable_static" >&5 10528echo "${ECHO_T}$enable_static" >&6; } 10529 10530# The else clause should only fire when bootstrapping the 10531# libtool distribution, otherwise you forgot to ship ltmain.sh 10532# with your package, and you will get complaints that there are 10533# no rules to generate ltmain.sh. 10534if test -f "$ltmain"; then 10535 # See if we are running on zsh, and set the options which allow our commands through 10536 # without removal of \ escapes. 10537 if test -n "${ZSH_VERSION+set}" ; then 10538 setopt NO_GLOB_SUBST 10539 fi 10540 # Now quote all the things that may contain metacharacters while being 10541 # careful not to overquote the AC_SUBSTed values. We take copies of the 10542 # variables and quote the copies for generation of the libtool script. 10543 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 10544 SED SHELL STRIP \ 10545 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10546 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10547 deplibs_check_method reload_flag reload_cmds need_locks \ 10548 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10549 lt_cv_sys_global_symbol_to_c_name_address \ 10550 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10551 old_postinstall_cmds old_postuninstall_cmds \ 10552 compiler \ 10553 CC \ 10554 LD \ 10555 lt_prog_compiler_wl \ 10556 lt_prog_compiler_pic \ 10557 lt_prog_compiler_static \ 10558 lt_prog_compiler_no_builtin_flag \ 10559 export_dynamic_flag_spec \ 10560 thread_safe_flag_spec \ 10561 whole_archive_flag_spec \ 10562 enable_shared_with_static_runtimes \ 10563 old_archive_cmds \ 10564 old_archive_from_new_cmds \ 10565 predep_objects \ 10566 postdep_objects \ 10567 predeps \ 10568 postdeps \ 10569 compiler_lib_search_path \ 10570 archive_cmds \ 10571 archive_expsym_cmds \ 10572 postinstall_cmds \ 10573 postuninstall_cmds \ 10574 old_archive_from_expsyms_cmds \ 10575 allow_undefined_flag \ 10576 no_undefined_flag \ 10577 export_symbols_cmds \ 10578 hardcode_libdir_flag_spec \ 10579 hardcode_libdir_flag_spec_ld \ 10580 hardcode_libdir_separator \ 10581 hardcode_automatic \ 10582 module_cmds \ 10583 module_expsym_cmds \ 10584 lt_cv_prog_compiler_c_o \ 10585 exclude_expsyms \ 10586 include_expsyms; do 10587 10588 case $var in 10589 old_archive_cmds | \ 10590 old_archive_from_new_cmds | \ 10591 archive_cmds | \ 10592 archive_expsym_cmds | \ 10593 module_cmds | \ 10594 module_expsym_cmds | \ 10595 old_archive_from_expsyms_cmds | \ 10596 export_symbols_cmds | \ 10597 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10598 postinstall_cmds | postuninstall_cmds | \ 10599 old_postinstall_cmds | old_postuninstall_cmds | \ 10600 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10601 # Double-quote double-evaled strings. 10602 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10603 ;; 10604 *) 10605 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10606 ;; 10607 esac 10608 done 10609 10610 case $lt_echo in 10611 *'\$0 --fallback-echo"') 10612 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10613 ;; 10614 esac 10615 10616cfgfile="${ofile}T" 10617 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10618 $rm -f "$cfgfile" 10619 echo "$as_me:10619: creating $ofile" >&5 10620 echo "$as_me: creating $ofile" >&6 10621 10622 cat <<__EOF__ >> "$cfgfile" 10623#! $SHELL 10624 10625# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10626# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10627# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10628# 10629# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 10630# Free Software Foundation, Inc. 10631# 10632# This file is part of MirLibtool, by The MirOS Project. 10633# It is derived from GNU Libtool: 10634# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10635# 10636# This program is free software; you can redistribute it and/or modify 10637# it under the terms of the GNU General Public License as published by 10638# the Free Software Foundation; either version 2 of the License, or 10639# (at your option) any later version. 10640# 10641# This program is distributed in the hope that it will be useful, but 10642# WITHOUT ANY WARRANTY; without even the implied warranty of 10643# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10644# General Public License for more details. 10645# 10646# You should have received a copy of the GNU General Public License 10647# along with this program; if not, write to the Free Software 10648# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10649# 10650# As a special exception to the GNU General Public License, if you 10651# distribute this file as part of a program that contains a 10652# configuration script generated by Autoconf, you may include it under 10653# the same distribution terms that you use for the rest of that program. 10654 10655# A sed program that does not truncate output. 10656SED=$lt_SED 10657 10658# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10659Xsed="$SED -e 1s/^X//" 10660 10661# The HP-UX ksh and POSIX shell print the target directory to stdout 10662# if CDPATH is set. 10663(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10664 10665# The names of the tagged configurations supported by this script. 10666available_tags= 10667 10668# ### BEGIN LIBTOOL CONFIG 10669 10670# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10671 10672# Shell to use when invoking shell scripts. 10673SHELL=$lt_SHELL 10674 10675# Whether or not to build shared libraries. 10676build_libtool_libs=$enable_shared 10677 10678# Whether or not to build static libraries. 10679build_old_libs=$enable_static 10680 10681# Whether or not to add -lc for building shared libraries. 10682build_libtool_need_lc=$archive_cmds_need_lc 10683 10684# Whether or not to disallow shared libs when runtime libs are static 10685allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10686 10687# Whether or not to optimize for fast installation. 10688fast_install=$enable_fast_install 10689 10690# The host system. 10691host_alias=$host_alias 10692host=$host 10693host_os=$host_os 10694 10695# The build system. 10696build_alias=$build_alias 10697build=$build 10698build_os=$build_os 10699 10700# An echo program that does not interpret backslashes. 10701echo=$lt_echo 10702 10703# The archiver. 10704AR=$lt_AR 10705AR_FLAGS=$lt_AR_FLAGS 10706 10707# A C compiler. 10708LTCC=$lt_LTCC 10709 10710# LTCC compiler flags. 10711LTCFLAGS=$lt_LTCFLAGS 10712 10713# A language-specific compiler. 10714CC=$lt_compiler 10715 10716# Is the compiler the GNU C compiler? 10717with_gcc=$GCC 10718 10719# An ERE matcher. 10720EGREP=$lt_EGREP 10721 10722# The linker used to build libraries. 10723LD=$lt_LD 10724 10725# Whether we need hard or soft links. 10726LN_S=$lt_LN_S 10727 10728# A BSD-compatible nm program. 10729NM=$lt_NM 10730 10731# A symbol stripping program 10732STRIP=$lt_STRIP 10733 10734# Used to examine libraries when file_magic_cmd begins "file" 10735MAGIC_CMD=$MAGIC_CMD 10736 10737# Used on cygwin: DLL creation program. 10738DLLTOOL="$DLLTOOL" 10739 10740# Used on cygwin: object dumper. 10741OBJDUMP="$OBJDUMP" 10742 10743# Used on cygwin: assembler. 10744AS="$AS" 10745 10746# The name of the directory that contains temporary libtool files. 10747objdir=$objdir 10748 10749# How to create reloadable object files. 10750reload_flag=$lt_reload_flag 10751reload_cmds=$lt_reload_cmds 10752 10753# How to pass a linker flag through the compiler. 10754wl=$lt_lt_prog_compiler_wl 10755 10756# Object file suffix (normally "o"). 10757objext="$ac_objext" 10758 10759# Old archive suffix (normally "a"). 10760libext="$libext" 10761 10762# Shared library suffix (normally ".so"). 10763shrext_cmds='$shrext_cmds' 10764 10765# Executable file suffix (normally ""). 10766exeext="$exeext" 10767 10768# Additional compiler flags for building library objects. 10769pic_flag=$lt_lt_prog_compiler_pic 10770pic_mode=$pic_mode 10771 10772# What is the maximum length of a command? 10773max_cmd_len=$lt_cv_sys_max_cmd_len 10774 10775# Does compiler simultaneously support -c and -o options? 10776compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10777 10778# Must we lock files when doing compilation? 10779need_locks=$lt_need_locks 10780 10781# Do we need the lib prefix for modules? 10782need_lib_prefix=$need_lib_prefix 10783 10784# Do we need a version for libraries? 10785need_version=$need_version 10786 10787# Whether dlopen is supported. 10788dlopen_support=$enable_dlopen 10789 10790# Whether dlopen of programs is supported. 10791dlopen_self=$enable_dlopen_self 10792 10793# Whether dlopen of statically linked programs is supported. 10794dlopen_self_static=$enable_dlopen_self_static 10795 10796# Compiler flag to prevent dynamic linking. 10797link_static_flag=$lt_lt_prog_compiler_static 10798 10799# Compiler flag to turn off builtin functions. 10800no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10801 10802# Compiler flag to allow reflexive dlopens. 10803export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10804 10805# Compiler flag to generate shared objects directly from archives. 10806whole_archive_flag_spec=$lt_whole_archive_flag_spec 10807 10808# Compiler flag to generate thread-safe objects. 10809thread_safe_flag_spec=$lt_thread_safe_flag_spec 10810 10811# Library versioning type. 10812version_type=$version_type 10813 10814# Format of library name prefix. 10815libname_spec=$lt_libname_spec 10816 10817# List of archive names. First name is the real one, the rest are links. 10818# The last name is the one that the linker finds with -lNAME. 10819library_names_spec=$lt_library_names_spec 10820 10821# The coded name of the library, if different from the real name. 10822soname_spec=$lt_soname_spec 10823 10824# Commands used to build and install an old-style archive. 10825RANLIB=$lt_RANLIB 10826old_archive_cmds=$lt_old_archive_cmds 10827old_postinstall_cmds=$lt_old_postinstall_cmds 10828old_postuninstall_cmds=$lt_old_postuninstall_cmds 10829 10830# Create an old-style archive from a shared archive. 10831old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10832 10833# Create a temporary old-style archive to link instead of a shared archive. 10834old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10835 10836# Commands used to build and install a shared archive. 10837archive_cmds=$lt_archive_cmds 10838archive_expsym_cmds=$lt_archive_expsym_cmds 10839postinstall_cmds=$lt_postinstall_cmds 10840postuninstall_cmds=$lt_postuninstall_cmds 10841 10842# Commands used to build a loadable module (assumed same as above if empty) 10843module_cmds=$lt_module_cmds 10844module_expsym_cmds=$lt_module_expsym_cmds 10845 10846# Commands to strip libraries. 10847old_striplib=$lt_old_striplib 10848striplib=$lt_striplib 10849 10850# Dependencies to place before the objects being linked to create a 10851# shared library. 10852predep_objects=$lt_predep_objects 10853 10854# Dependencies to place after the objects being linked to create a 10855# shared library. 10856postdep_objects=$lt_postdep_objects 10857 10858# Dependencies to place before the objects being linked to create a 10859# shared library. 10860predeps=$lt_predeps 10861 10862# Dependencies to place after the objects being linked to create a 10863# shared library. 10864postdeps=$lt_postdeps 10865 10866# The library search path used internally by the compiler when linking 10867# a shared library. 10868compiler_lib_search_path=$lt_compiler_lib_search_path 10869 10870# Method to check whether dependent libraries are shared objects. 10871deplibs_check_method=$lt_deplibs_check_method 10872 10873# Command to use when deplibs_check_method == file_magic. 10874file_magic_cmd=$lt_file_magic_cmd 10875 10876# Flag that allows shared libraries with undefined symbols to be built. 10877allow_undefined_flag=$lt_allow_undefined_flag 10878 10879# Flag that forces no undefined symbols. 10880no_undefined_flag=$lt_no_undefined_flag 10881 10882# Commands used to finish a libtool library installation in a directory. 10883finish_cmds=$lt_finish_cmds 10884 10885# Same as above, but a single script fragment to be evaled but not shown. 10886finish_eval=$lt_finish_eval 10887 10888# Take the output of nm and produce a listing of raw symbols and C names. 10889global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 10890 10891# Transform the output of nm in a proper C declaration 10892global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 10893 10894# Transform the output of nm in a C name address pair 10895global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 10896 10897# This is the shared library runtime path variable. 10898runpath_var=$runpath_var 10899 10900# This is the shared library path variable. 10901shlibpath_var=$shlibpath_var 10902 10903# Is shlibpath searched before the hard-coded library search path? 10904shlibpath_overrides_runpath=$shlibpath_overrides_runpath 10905 10906# How to hardcode a shared library path into an executable. 10907hardcode_action=$hardcode_action 10908 10909# Whether we should hardcode library paths into libraries. 10910hardcode_into_libs=$hardcode_into_libs 10911 10912# Flag to hardcode \$libdir into a binary during linking. 10913# This must work even if \$libdir does not exist. 10914hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 10915 10916# If ld is used when linking, flag to hardcode \$libdir into 10917# a binary during linking. This must work even if \$libdir does 10918# not exist. 10919hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 10920 10921# Whether we need a single -rpath flag with a separated argument. 10922hardcode_libdir_separator=$lt_hardcode_libdir_separator 10923 10924# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 10925# resulting binary. 10926hardcode_direct=$hardcode_direct 10927 10928# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 10929# resulting binary. 10930hardcode_minus_L=$hardcode_minus_L 10931 10932# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 10933# the resulting binary. 10934hardcode_shlibpath_var=$hardcode_shlibpath_var 10935 10936# Set to yes if building a shared library automatically hardcodes DIR into the library 10937# and all subsequent libraries and executables linked against it. 10938hardcode_automatic=$hardcode_automatic 10939 10940# Variables whose values should be saved in libtool wrapper scripts and 10941# restored at relink time. 10942variables_saved_for_relink="$variables_saved_for_relink" 10943 10944# Whether libtool must link a program against all its dependency libraries. 10945link_all_deplibs=$link_all_deplibs 10946 10947# Compile-time system search path for libraries 10948sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 10949 10950# Run-time system search path for libraries 10951sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 10952 10953# Fix the shell variable \$srcfile for the compiler. 10954fix_srcfile_path="$fix_srcfile_path" 10955 10956# Set to yes if exported symbols are required. 10957always_export_symbols=$always_export_symbols 10958 10959# The commands to list exported symbols. 10960export_symbols_cmds=$lt_export_symbols_cmds 10961 10962# The commands to extract the exported symbol list from a shared archive. 10963extract_expsyms_cmds=$lt_extract_expsyms_cmds 10964 10965# Symbols that should not be listed in the preloaded symbols. 10966exclude_expsyms=$lt_exclude_expsyms 10967 10968# Symbols that must always be exported. 10969include_expsyms=$lt_include_expsyms 10970 10971# ### END LIBTOOL CONFIG 10972 10973__EOF__ 10974 10975 10976 case $host_os in 10977 aix3*) 10978 cat <<\EOF >> "$cfgfile" 10979 10980# AIX sometimes has problems with the GCC collect2 program. For some 10981# reason, if we set the COLLECT_NAMES environment variable, the problems 10982# vanish in a puff of smoke. 10983if test "X${COLLECT_NAMES+set}" != Xset; then 10984 COLLECT_NAMES= 10985 export COLLECT_NAMES 10986fi 10987EOF 10988 ;; 10989 esac 10990 10991 # We use sed instead of cat because bash on DJGPP gets confused if 10992 # if finds mixed CR/LF and LF-only lines. Since sed operates in 10993 # text mode, it properly converts lines to CR/LF. This bash problem 10994 # is reportedly fixed, but why not run on old versions too? 10995 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 10996 10997 mv -f "$cfgfile" "$ofile" || \ 10998 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 10999 chmod +x "$ofile" 11000 11001else 11002 # If there is no Makefile yet, we rely on a make rule to execute 11003 # 'config.status --recheck' to rerun these tests and create the 11004 # libtool script then. 11005 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 11006 if test -f "$ltmain_in"; then 11007 test -f Makefile && make "$ltmain" 11008 fi 11009fi 11010 11011 11012ac_ext=c 11013ac_cpp='$CPP $CPPFLAGS' 11014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11016ac_compiler_gnu=$ac_cv_c_compiler_gnu 11017 11018CC="$lt_save_CC" 11019 11020 11021# Check whether --with-tags was given. 11022if test "${with_tags+set}" = set; then 11023 withval=$with_tags; tagnames="$withval" 11024fi 11025 11026 11027if test -f "$ltmain" && test -n "$tagnames"; then 11028 if test ! -f "${ofile}"; then 11029 { echo "$as_me:$LINENO: WARNING: output file '$ofile' does not exist" >&5 11030echo "$as_me: WARNING: output file '$ofile' does not exist" >&2;} 11031 fi 11032 11033 if test -z "$LTCC"; then 11034 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 11035 if test -z "$LTCC"; then 11036 { echo "$as_me:$LINENO: WARNING: output file '$ofile' does not look like a libtool script" >&5 11037echo "$as_me: WARNING: output file '$ofile' does not look like a libtool script" >&2;} 11038 else 11039 { echo "$as_me:$LINENO: WARNING: using 'LTCC=$LTCC', extracted from '$ofile'" >&5 11040echo "$as_me: WARNING: using 'LTCC=$LTCC', extracted from '$ofile'" >&2;} 11041 fi 11042 fi 11043 if test -z "$LTCFLAGS"; then 11044 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 11045 fi 11046 11047 # Extract list of available tagged configurations in $ofile. 11048 # Note that this assumes the entire list is on one line. 11049 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 11050 11051 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 11052 for tagname in $tagnames; do 11053 IFS="$lt_save_ifs" 11054 # Check whether tagname contains only valid characters 11055 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 11056 "") ;; 11057 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 11058echo "$as_me: error: invalid tag name: $tagname" >&2;} 11059 { (exit 1); exit 1; }; } 11060 ;; 11061 esac 11062 11063 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 11064 then 11065 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 11066echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 11067 { (exit 1); exit 1; }; } 11068 fi 11069 11070 # Update the list of available tags. 11071 if test -n "$tagname"; then 11072 echo appending configuration tag \"$tagname\" to $ofile 11073 11074 case $tagname in 11075 CXX) 11076 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 11077 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 11078 (test "X$CXX" != "Xg++"))) ; then 11079 ac_ext=cpp 11080ac_cpp='$CXXCPP $CPPFLAGS' 11081ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11082ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11083ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11084 11085 11086 11087 11088 11089 11090archive_cmds_need_lc_CXX=no 11091allow_undefined_flag_CXX= 11092always_export_symbols_CXX=no 11093archive_expsym_cmds_CXX= 11094export_dynamic_flag_spec_CXX= 11095hardcode_direct_CXX=no 11096hardcode_libdir_flag_spec_CXX= 11097hardcode_libdir_flag_spec_ld_CXX= 11098hardcode_libdir_separator_CXX= 11099hardcode_minus_L_CXX=no 11100hardcode_shlibpath_var_CXX=unsupported 11101hardcode_automatic_CXX=no 11102module_cmds_CXX= 11103module_expsym_cmds_CXX= 11104link_all_deplibs_CXX=unknown 11105old_archive_cmds_CXX=$old_archive_cmds 11106no_undefined_flag_CXX= 11107whole_archive_flag_spec_CXX= 11108enable_shared_with_static_runtimes_CXX=no 11109 11110# Dependencies to place before and after the object being linked: 11111predep_objects_CXX= 11112postdep_objects_CXX= 11113predeps_CXX= 11114postdeps_CXX= 11115compiler_lib_search_path_CXX= 11116 11117# Source file extension for C++ test sources. 11118ac_ext=cpp 11119 11120# Object file extension for compiled C++ test sources. 11121objext=o 11122objext_CXX=$objext 11123 11124# Code to be used in simple compile tests 11125lt_simple_compile_test_code="int some_variable = 0;\n" 11126 11127# Code to be used in simple link tests 11128lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 11129 11130# ltmain only uses $CC for tagged configurations so make sure $CC is set. 11131 11132# If no C compiler was specified, use CC. 11133LTCC=${LTCC-"$CC"} 11134 11135# If no C compiler flags were specified, use CFLAGS. 11136LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11137 11138# Allow CC to be a program name with arguments. 11139compiler=$CC 11140 11141 11142# save warnings/boilerplate of simple test code 11143ac_outfile=conftest.$ac_objext 11144printf "$lt_simple_compile_test_code" >conftest.$ac_ext 11145eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11146_lt_compiler_boilerplate=`cat conftest.err` 11147$rm conftest* 11148 11149ac_outfile=conftest.$ac_objext 11150printf "$lt_simple_link_test_code" >conftest.$ac_ext 11151eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11152_lt_linker_boilerplate=`cat conftest.err` 11153$rm conftest* 11154 11155 11156# Allow CC to be a program name with arguments. 11157lt_save_CC=$CC 11158lt_save_LD=$LD 11159lt_save_GCC=$GCC 11160GCC=$GXX 11161lt_save_with_gnu_ld=$with_gnu_ld 11162lt_save_path_LD=$lt_cv_path_LD 11163if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11164 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11165else 11166 $as_unset lt_cv_prog_gnu_ld 11167fi 11168if test -n "${lt_cv_path_LDCXX+set}"; then 11169 lt_cv_path_LD=$lt_cv_path_LDCXX 11170else 11171 $as_unset lt_cv_path_LD 11172fi 11173test -z "${LDCXX+set}" || LD=$LDCXX 11174CC=${CXX-"c++"} 11175compiler=$CC 11176compiler_CXX=$CC 11177for cc_temp in $compiler""; do 11178 case $cc_temp in 11179 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11180 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11181 \-*) ;; 11182 *) break;; 11183 esac 11184done 11185cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 11186 11187 11188# We don't want -fno-exception wen compiling C++ code, so set the 11189# no_builtin_flag separately 11190if test "$GXX" = yes; then 11191 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11192else 11193 lt_prog_compiler_no_builtin_flag_CXX= 11194fi 11195 11196if test "$GXX" = yes; then 11197 # Set up default GNU C++ configuration 11198 11199 11200# Check whether --with-gnu-ld was given. 11201if test "${with_gnu_ld+set}" = set; then 11202 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11203else 11204 with_gnu_ld=no 11205fi 11206 11207ac_prog=ld 11208if test "$GCC" = yes; then 11209 # Check if gcc -print-prog-name=ld gives a path. 11210 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 11211echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 11212 case $host in 11213 *-*-mingw*) 11214 # gcc leaves a trailing carriage return which upsets mingw 11215 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11216 *) 11217 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11218 esac 11219 case $ac_prog in 11220 # Accept absolute paths. 11221 [\\/]* | ?:[\\/]*) 11222 re_direlt='/[^/][^/]*/\.\./' 11223 # Canonicalize the pathname of ld 11224 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 11225 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 11226 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 11227 done 11228 test -z "$LD" && LD="$ac_prog" 11229 ;; 11230 "") 11231 # If it fails, then pretend we aren't using GCC. 11232 ac_prog=ld 11233 ;; 11234 *) 11235 # If it is relative, then search for the first ld in PATH. 11236 with_gnu_ld=unknown 11237 ;; 11238 esac 11239elif test "$with_gnu_ld" = yes; then 11240 { echo "$as_me:$LINENO: checking for GNU ld" >&5 11241echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 11242else 11243 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 11244echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 11245fi 11246if test "${lt_cv_path_LD+set}" = set; then 11247 echo $ECHO_N "(cached) $ECHO_C" >&6 11248else 11249 if test -z "$LD"; then 11250 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11251 for ac_dir in $PATH; do 11252 IFS="$lt_save_ifs" 11253 test -z "$ac_dir" && ac_dir=. 11254 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11255 lt_cv_path_LD="$ac_dir/$ac_prog" 11256 # Check to see if the program is GNU ld. I'd rather use --version, 11257 # but apparently some variants of GNU ld only accept -v. 11258 # Break only if it was the GNU/non-GNU ld that we prefer. 11259 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11260 *GNU* | *'with BFD'*) 11261 test "$with_gnu_ld" != no && break 11262 ;; 11263 *) 11264 test "$with_gnu_ld" != yes && break 11265 ;; 11266 esac 11267 fi 11268 done 11269 IFS="$lt_save_ifs" 11270else 11271 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11272fi 11273fi 11274 11275LD="$lt_cv_path_LD" 11276if test -n "$LD"; then 11277 { echo "$as_me:$LINENO: result: $LD" >&5 11278echo "${ECHO_T}$LD" >&6; } 11279else 11280 { echo "$as_me:$LINENO: result: no" >&5 11281echo "${ECHO_T}no" >&6; } 11282fi 11283test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 11284echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 11285 { (exit 1); exit 1; }; } 11286{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 11287echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 11288if test "${lt_cv_prog_gnu_ld+set}" = set; then 11289 echo $ECHO_N "(cached) $ECHO_C" >&6 11290else 11291 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11292case `$LD -v 2>&1 </dev/null` in 11293*GNU* | *'with BFD'*) 11294 lt_cv_prog_gnu_ld=yes 11295 ;; 11296*) 11297 lt_cv_prog_gnu_ld=no 11298 ;; 11299esac 11300fi 11301{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 11302echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 11303with_gnu_ld=$lt_cv_prog_gnu_ld 11304 11305 11306 11307 # Check if GNU C++ uses GNU ld as the underlying linker, since the 11308 # archiving commands below assume that GNU ld is being used. 11309 if test "$with_gnu_ld" = yes; then 11310 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11311 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' 11312 11313 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11314 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11315 11316 # If archive_cmds runs LD, not CC, wlarc should be empty 11317 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 11318 # investigate it a little bit more. (MM) 11319 wlarc='${wl}' 11320 11321 # ancient GNU ld didn't support --whole-archive et. al. 11322 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 11323 grep 'no-whole-archive' > /dev/null; then 11324 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11325 else 11326 whole_archive_flag_spec_CXX= 11327 fi 11328 else 11329 with_gnu_ld=no 11330 wlarc= 11331 11332 # A generic and very simple default shared library creation 11333 # command for GNU C++ for the case where it uses the native 11334 # linker, instead of GNU ld. If possible, this setting should 11335 # overridden to take advantage of the native linker features on 11336 # the platform it is being used on. 11337 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11338 fi 11339 11340 # Commands to make compiler produce verbose output that lists 11341 # what "hidden" libraries, object files and flags are used when 11342 # linking a shared library. 11343 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11344 11345else 11346 GXX=no 11347 with_gnu_ld=no 11348 wlarc= 11349fi 11350 11351# PORTME: fill in a description of your system's C++ link characteristics 11352{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11353echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 11354ld_shlibs_CXX=yes 11355case $host_os in 11356 aix3*) 11357 # FIXME: insert proper C++ library support 11358 ld_shlibs_CXX=no 11359 ;; 11360 aix4* | aix5*) 11361 if test "$host_cpu" = ia64; then 11362 # On IA64, the linker does run time linking by default, so we don't 11363 # have to do anything special. 11364 aix_use_runtimelinking=no 11365 exp_sym_flag='-Bexport' 11366 no_entry_flag="" 11367 else 11368 aix_use_runtimelinking=no 11369 11370 # Test if we are trying to use run time linking or normal 11371 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11372 # need to do runtime linking. 11373 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 11374 for ld_flag in $LDFLAGS; do 11375 case $ld_flag in 11376 *-brtl*) 11377 aix_use_runtimelinking=yes 11378 break 11379 ;; 11380 esac 11381 done 11382 ;; 11383 esac 11384 11385 exp_sym_flag='-bexport' 11386 no_entry_flag='-bnoentry' 11387 fi 11388 11389 # When large executables or shared objects are built, AIX ld can 11390 # have problems creating the table of contents. If linking a library 11391 # or program results in "error TOC overflow" add -mminimal-toc to 11392 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11393 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11394 11395 archive_cmds_CXX='' 11396 hardcode_direct_CXX=yes 11397 hardcode_libdir_separator_CXX=':' 11398 link_all_deplibs_CXX=yes 11399 11400 if test "$GXX" = yes; then 11401 case $host_os in aix4.[012]|aix4.[012].*) 11402 # We only want to do this on AIX 4.2 and lower, the check 11403 # below for broken collect2 doesn't work under 4.3+ 11404 collect2name=`${CC} -print-prog-name=collect2` 11405 if test -f "$collect2name" && \ 11406 strings "$collect2name" | grep resolve_lib_name >/dev/null 11407 then 11408 # We have reworked collect2 11409 : 11410 else 11411 # We have old collect2 11412 hardcode_direct_CXX=unsupported 11413 # It fails to find uninstalled libraries when the uninstalled 11414 # path is not listed in the libpath. Setting hardcode_minus_L 11415 # to unsupported forces relinking 11416 hardcode_minus_L_CXX=yes 11417 hardcode_libdir_flag_spec_CXX='-L$libdir' 11418 hardcode_libdir_separator_CXX= 11419 fi 11420 ;; 11421 esac 11422 shared_flag='-shared' 11423 if test "$aix_use_runtimelinking" = yes; then 11424 shared_flag="$shared_flag "'${wl}-G' 11425 fi 11426 else 11427 # not using gcc 11428 if test "$host_cpu" = ia64; then 11429 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11430 # chokes on -Wl,-G. The following line is correct: 11431 shared_flag='-G' 11432 else 11433 if test "$aix_use_runtimelinking" = yes; then 11434 shared_flag='${wl}-G' 11435 else 11436 shared_flag='${wl}-bM:SRE' 11437 fi 11438 fi 11439 fi 11440 11441 # It seems that -bexpall does not export symbols beginning with 11442 # underscore (_), so it is better to generate a list of symbols to export. 11443 always_export_symbols_CXX=yes 11444 if test "$aix_use_runtimelinking" = yes; then 11445 # Warning - without using the other runtime loading flags (-brtl), 11446 # -berok will link without error, but may produce a broken library. 11447 allow_undefined_flag_CXX='-berok' 11448 # Determine the default libpath from the value encoded in an empty executable. 11449 aix_libpath="/usr/lib:/lib" 11450 11451 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11452 11453 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" 11454 else 11455 if test "$host_cpu" = ia64; then 11456 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11457 allow_undefined_flag_CXX="-z nodefs" 11458 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" 11459 else 11460 # Determine the default libpath from the value encoded in an empty executable. 11461 aix_libpath="/usr/lib:/lib" 11462 11463 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11464 # Warning - without using the other run time loading flags, 11465 # -berok will link without error, but may produce a broken library. 11466 no_undefined_flag_CXX=' ${wl}-bernotok' 11467 allow_undefined_flag_CXX=' ${wl}-berok' 11468 # Exported symbols can be pulled into shared objects from archives 11469 whole_archive_flag_spec_CXX='$convenience' 11470 archive_cmds_need_lc_CXX=yes 11471 # This is similar to how AIX traditionally builds its shared libraries. 11472 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' 11473 fi 11474 fi 11475 ;; 11476 11477 beos*) 11478 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11479 allow_undefined_flag_CXX=unsupported 11480 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11481 # support --undefined. This deserves some investigation. FIXME 11482 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11483 else 11484 ld_shlibs_CXX=no 11485 fi 11486 ;; 11487 11488 chorus*) 11489 case $cc_basename in 11490 *) 11491 # FIXME: insert proper C++ library support 11492 ld_shlibs_CXX=no 11493 ;; 11494 esac 11495 ;; 11496 11497 cygwin* | mingw* | pw32*) 11498 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11499 # as there is no search path for DLLs. 11500 hardcode_libdir_flag_spec_CXX='-L$libdir' 11501 allow_undefined_flag_CXX=unsupported 11502 always_export_symbols_CXX=no 11503 enable_shared_with_static_runtimes_CXX=yes 11504 11505 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11506 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' 11507 # If the export-symbols file already is a .def file (1st line 11508 # is EXPORTS), use it as is; otherwise, prepend... 11509 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11510 cp $export_symbols $output_objdir/$soname.def; 11511 else 11512 echo EXPORTS > $output_objdir/$soname.def; 11513 cat $export_symbols >> $output_objdir/$soname.def; 11514 fi~ 11515 $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' 11516 else 11517 ld_shlibs_CXX=no 11518 fi 11519 ;; 11520 darwin* | rhapsody*) 11521 case $host_os in 11522 rhapsody* | darwin1.[012]) 11523 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 11524 ;; 11525 *) # Darwin 1.3 on 11526 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 11527 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11528 else 11529 case ${MACOSX_DEPLOYMENT_TARGET} in 11530 10.[012]) 11531 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11532 ;; 11533 10.*) 11534 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 11535 ;; 11536 esac 11537 fi 11538 ;; 11539 esac 11540 archive_cmds_need_lc_CXX=no 11541 hardcode_direct_CXX=no 11542 hardcode_automatic_CXX=yes 11543 hardcode_shlibpath_var_CXX=unsupported 11544 whole_archive_flag_spec_CXX='' 11545 link_all_deplibs_CXX=yes 11546 11547 if test "$GXX" = yes ; then 11548 lt_int_apple_cc_single_mod=no 11549 output_verbose_link_cmd='echo' 11550 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 11551 lt_int_apple_cc_single_mod=yes 11552 fi 11553 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11554 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 11555 else 11556 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' 11557 fi 11558 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11559 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11560 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11561 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}' 11562 else 11563 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}' 11564 fi 11565 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}' 11566 else 11567 case $cc_basename in 11568 xlc*) 11569 output_verbose_link_cmd='echo' 11570 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' 11571 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11572 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11573 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}' 11574 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}' 11575 ;; 11576 *) 11577 ld_shlibs_CXX=no 11578 ;; 11579 esac 11580 fi 11581 ;; 11582 11583 dgux*) 11584 case $cc_basename in 11585 ec++*) 11586 # FIXME: insert proper C++ library support 11587 ld_shlibs_CXX=no 11588 ;; 11589 ghcx*) 11590 # Green Hills C++ Compiler 11591 # FIXME: insert proper C++ library support 11592 ld_shlibs_CXX=no 11593 ;; 11594 *) 11595 # FIXME: insert proper C++ library support 11596 ld_shlibs_CXX=no 11597 ;; 11598 esac 11599 ;; 11600 freebsd[12]*) 11601 # C++ shared libraries reported to be fairly broken before switch to ELF 11602 ld_shlibs_CXX=no 11603 ;; 11604 freebsd-elf*) 11605 archive_cmds_need_lc_CXX=no 11606 ;; 11607 freebsd* | kfreebsd*-gnu | dragonfly*) 11608 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11609 # conventions 11610 ld_shlibs_CXX=yes 11611 ;; 11612 gnu*) 11613 ;; 11614 hpux9*) 11615 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11616 hardcode_libdir_separator_CXX=: 11617 export_dynamic_flag_spec_CXX='${wl}-E' 11618 hardcode_direct_CXX=yes 11619 hardcode_minus_L_CXX=yes # Not in the search PATH, 11620 # but as the default 11621 # location of the library. 11622 11623 case $cc_basename in 11624 CC*) 11625 # FIXME: insert proper C++ library support 11626 ld_shlibs_CXX=no 11627 ;; 11628 aCC*) 11629 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' 11630 # Commands to make compiler produce verbose output that lists 11631 # what "hidden" libraries, object files and flags are used when 11632 # linking a shared library. 11633 # 11634 # There doesn't appear to be a way to prevent this compiler from 11635 # explicitly linking system object files so we need to strip them 11636 # from the output so that they don't get included in the library 11637 # dependencies. 11638 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' 11639 ;; 11640 *) 11641 if test "$GXX" = yes; then 11642 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' 11643 else 11644 # FIXME: insert proper C++ library support 11645 ld_shlibs_CXX=no 11646 fi 11647 ;; 11648 esac 11649 ;; 11650 hpux10*|hpux11*) 11651 if test $with_gnu_ld = no; then 11652 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11653 hardcode_libdir_separator_CXX=: 11654 11655 case $host_cpu in 11656 hppa*64*|ia64*) 11657 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 11658 ;; 11659 *) 11660 export_dynamic_flag_spec_CXX='${wl}-E' 11661 ;; 11662 esac 11663 fi 11664 case $host_cpu in 11665 hppa*64*|ia64*) 11666 hardcode_direct_CXX=no 11667 hardcode_shlibpath_var_CXX=no 11668 ;; 11669 *) 11670 hardcode_direct_CXX=yes 11671 hardcode_minus_L_CXX=yes # Not in the search PATH, 11672 # but as the default 11673 # location of the library. 11674 ;; 11675 esac 11676 11677 case $cc_basename in 11678 CC*) 11679 # FIXME: insert proper C++ library support 11680 ld_shlibs_CXX=no 11681 ;; 11682 aCC*) 11683 case $host_cpu in 11684 hppa*64*) 11685 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11686 ;; 11687 ia64*) 11688 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11689 ;; 11690 *) 11691 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11692 ;; 11693 esac 11694 # Commands to make compiler produce verbose output that lists 11695 # what "hidden" libraries, object files and flags are used when 11696 # linking a shared library. 11697 # 11698 # There doesn't appear to be a way to prevent this compiler from 11699 # explicitly linking system object files so we need to strip them 11700 # from the output so that they don't get included in the library 11701 # dependencies. 11702 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' 11703 ;; 11704 *) 11705 if test "$GXX" = yes; then 11706 if test $with_gnu_ld = no; then 11707 case $host_cpu in 11708 hppa*64*) 11709 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11710 ;; 11711 ia64*) 11712 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11713 ;; 11714 *) 11715 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' 11716 ;; 11717 esac 11718 fi 11719 else 11720 # FIXME: insert proper C++ library support 11721 ld_shlibs_CXX=no 11722 fi 11723 ;; 11724 esac 11725 ;; 11726 interix3*) 11727 hardcode_direct_CXX=no 11728 hardcode_shlibpath_var_CXX=no 11729 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11730 export_dynamic_flag_spec_CXX='${wl}-E' 11731 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11732 # Instead, shared libraries are loaded at an image base (0x10000000 by 11733 # default) and relocated if they conflict, which is a slow very memory 11734 # consuming and fragmenting process. To avoid this, we pick a random, 11735 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11736 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11737 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' 11738 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' 11739 ;; 11740 irix5* | irix6*) 11741 case $cc_basename in 11742 CC*) 11743 # SGI C++ 11744 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' 11745 11746 # Archives containing C++ object files must be created using 11747 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11748 # necessary to make sure instantiated templates are included 11749 # in the archive. 11750 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11751 ;; 11752 *) 11753 if test "$GXX" = yes; then 11754 if test "$with_gnu_ld" = no; then 11755 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' 11756 else 11757 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' 11758 fi 11759 fi 11760 link_all_deplibs_CXX=yes 11761 ;; 11762 esac 11763 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11764 hardcode_libdir_separator_CXX=: 11765 ;; 11766 linux*) 11767 case $cc_basename in 11768 KCC*) 11769 # Kuck and Associates, Inc. (KAI) C++ Compiler 11770 11771 # KCC will only create a shared library if the output file 11772 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11773 # to its proper name (with version) after linking. 11774 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' 11775 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' 11776 # Commands to make compiler produce verbose output that lists 11777 # what "hidden" libraries, object files and flags are used when 11778 # linking a shared library. 11779 # 11780 # There doesn't appear to be a way to prevent this compiler from 11781 # explicitly linking system object files so we need to strip them 11782 # from the output so that they don't get included in the library 11783 # dependencies. 11784 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' 11785 11786 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 11787 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11788 11789 # Archives containing C++ object files must be created using 11790 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11791 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11792 ;; 11793 icpc*) 11794 # Intel C++ 11795 with_gnu_ld=yes 11796 # version 8.0 and above of icpc choke on multiply defined symbols 11797 # if we add $predep_objects and $postdep_objects, however 7.1 and 11798 # earlier do not add the objects themselves. 11799 case `$CC -V 2>&1` in 11800 *"Version 7."*) 11801 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11802 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' 11803 ;; 11804 *) # Version 8.0 or newer 11805 tmp_idyn= 11806 case $host_cpu in 11807 ia64*) tmp_idyn=' -i_dynamic';; 11808 esac 11809 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11810 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' 11811 ;; 11812 esac 11813 archive_cmds_need_lc_CXX=no 11814 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11815 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11816 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11817 ;; 11818 pgCC*) 11819 # Portland Group C++ compiler 11820 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 11821 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' 11822 11823 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11824 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11825 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' 11826 ;; 11827 cxx*) 11828 # Compaq C++ 11829 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11830 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' 11831 11832 runpath_var=LD_RUN_PATH 11833 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11834 hardcode_libdir_separator_CXX=: 11835 11836 # Commands to make compiler produce verbose output that lists 11837 # what "hidden" libraries, object files and flags are used when 11838 # linking a shared library. 11839 # 11840 # There doesn't appear to be a way to prevent this compiler from 11841 # explicitly linking system object files so we need to strip them 11842 # from the output so that they don't get included in the library 11843 # dependencies. 11844 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' 11845 ;; 11846 *) 11847 case `$CC -V 2>&1 | sed 5q` in 11848 *Sun\ C*) 11849 # Sun C++ 5.9 11850 no_undefined_flag_CXX=' -zdefs' 11851 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11852 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' 11853 hardcode_libdir_flag_spec_CXX='-R$libdir' 11854 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' 11855 11856 # Not sure whether something based on 11857 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 11858 # would be better. 11859 output_verbose_link_cmd='echo' 11860 11861 # Archives containing C++ object files must be created using 11862 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11863 # necessary to make sure instantiated templates are included 11864 # in the archive. 11865 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11866 ;; 11867 esac 11868 ;; 11869 esac 11870 ;; 11871 lynxos*) 11872 # FIXME: insert proper C++ library support 11873 ld_shlibs_CXX=no 11874 ;; 11875 m88k*) 11876 # FIXME: insert proper C++ library support 11877 ld_shlibs_CXX=no 11878 ;; 11879 mirbsd*) 11880 hardcode_direct_CXX=yes 11881 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11882 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11883 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 11884 export_dynamic_flag_spec_CXX='${wl}-E' 11885 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11886 output_verbose_link_cmd='echo' 11887 ;; 11888 mvs*) 11889 case $cc_basename in 11890 cxx*) 11891 # FIXME: insert proper C++ library support 11892 ld_shlibs_CXX=no 11893 ;; 11894 *) 11895 # FIXME: insert proper C++ library support 11896 ld_shlibs_CXX=no 11897 ;; 11898 esac 11899 ;; 11900 netbsd*) 11901 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11902 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 11903 wlarc= 11904 hardcode_libdir_flag_spec_CXX='-R$libdir' 11905 hardcode_direct_CXX=yes 11906 hardcode_shlibpath_var_CXX=no 11907 fi 11908 # Workaround some broken pre-1.5 toolchains 11909 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 11910 ;; 11911 openbsd2*) 11912 # C++ shared libraries are fairly broken 11913 ld_shlibs_CXX=no 11914 ;; 11915 openbsd*) 11916 hardcode_direct_CXX=yes 11917 hardcode_shlibpath_var_CXX=no 11918 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11919 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11920 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11921 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 11922 export_dynamic_flag_spec_CXX='${wl}-E' 11923 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11924 fi 11925 output_verbose_link_cmd='echo' 11926 ;; 11927 osf3*) 11928 case $cc_basename in 11929 KCC*) 11930 # Kuck and Associates, Inc. (KAI) C++ Compiler 11931 11932 # KCC will only create a shared library if the output file 11933 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11934 # to its proper name (with version) after linking. 11935 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' 11936 11937 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11938 hardcode_libdir_separator_CXX=: 11939 11940 # Archives containing C++ object files must be created using 11941 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11942 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11943 11944 ;; 11945 RCC*) 11946 # Rational C++ 2.4.1 11947 # FIXME: insert proper C++ library support 11948 ld_shlibs_CXX=no 11949 ;; 11950 cxx*) 11951 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11952 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' 11953 11954 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11955 hardcode_libdir_separator_CXX=: 11956 11957 # Commands to make compiler produce verbose output that lists 11958 # what "hidden" libraries, object files and flags are used when 11959 # linking a shared library. 11960 # 11961 # There doesn't appear to be a way to prevent this compiler from 11962 # explicitly linking system object files so we need to strip them 11963 # from the output so that they don't get included in the library 11964 # dependencies. 11965 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' 11966 ;; 11967 *) 11968 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11969 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11970 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' 11971 11972 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11973 hardcode_libdir_separator_CXX=: 11974 11975 # Commands to make compiler produce verbose output that lists 11976 # what "hidden" libraries, object files and flags are used when 11977 # linking a shared library. 11978 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11979 11980 else 11981 # FIXME: insert proper C++ library support 11982 ld_shlibs_CXX=no 11983 fi 11984 ;; 11985 esac 11986 ;; 11987 osf4* | osf5*) 11988 case $cc_basename in 11989 KCC*) 11990 # Kuck and Associates, Inc. (KAI) C++ Compiler 11991 11992 # KCC will only create a shared library if the output file 11993 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11994 # to its proper name (with version) after linking. 11995 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' 11996 11997 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11998 hardcode_libdir_separator_CXX=: 11999 12000 # Archives containing C++ object files must be created using 12001 # the KAI C++ compiler. 12002 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 12003 ;; 12004 RCC*) 12005 # Rational C++ 2.4.1 12006 # FIXME: insert proper C++ library support 12007 ld_shlibs_CXX=no 12008 ;; 12009 cxx*) 12010 allow_undefined_flag_CXX=' -expect_unresolved \*' 12011 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' 12012 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12013 echo "-hidden">> $lib.exp~ 12014 $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~ 12015 $rm $lib.exp' 12016 12017 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12018 hardcode_libdir_separator_CXX=: 12019 12020 # Commands to make compiler produce verbose output that lists 12021 # what "hidden" libraries, object files and flags are used when 12022 # linking a shared library. 12023 # 12024 # There doesn't appear to be a way to prevent this compiler from 12025 # explicitly linking system object files so we need to strip them 12026 # from the output so that they don't get included in the library 12027 # dependencies. 12028 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' 12029 ;; 12030 *) 12031 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12032 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12033 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' 12034 12035 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12036 hardcode_libdir_separator_CXX=: 12037 12038 # Commands to make compiler produce verbose output that lists 12039 # what "hidden" libraries, object files and flags are used when 12040 # linking a shared library. 12041 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12042 12043 else 12044 # FIXME: insert proper C++ library support 12045 ld_shlibs_CXX=no 12046 fi 12047 ;; 12048 esac 12049 ;; 12050 psos*) 12051 # FIXME: insert proper C++ library support 12052 ld_shlibs_CXX=no 12053 ;; 12054 sunos4*) 12055 case $cc_basename in 12056 CC*) 12057 # Sun C++ 4.x 12058 # FIXME: insert proper C++ library support 12059 ld_shlibs_CXX=no 12060 ;; 12061 lcc*) 12062 # Lucid 12063 # FIXME: insert proper C++ library support 12064 ld_shlibs_CXX=no 12065 ;; 12066 *) 12067 # FIXME: insert proper C++ library support 12068 ld_shlibs_CXX=no 12069 ;; 12070 esac 12071 ;; 12072 solaris*) 12073 case $cc_basename in 12074 CC*) 12075 # Sun C++ 4.2, 5.x and Centerline C++ 12076 archive_cmds_need_lc_CXX=yes 12077 no_undefined_flag_CXX=' -zdefs' 12078 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12079 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12080 $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' 12081 12082 hardcode_libdir_flag_spec_CXX='-R$libdir' 12083 hardcode_shlibpath_var_CXX=no 12084 case $host_os in 12085 solaris2.[0-5] | solaris2.[0-5].*) ;; 12086 *) 12087 # The compiler driver will combine and reorder linker options, 12088 # but understands `-z linker_flag'. 12089 # Supported since Solaris 2.6 (maybe 2.5.1?) 12090 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 12091 ;; 12092 esac 12093 link_all_deplibs_CXX=yes 12094 12095 output_verbose_link_cmd='echo' 12096 12097 # Archives containing C++ object files must be created using 12098 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12099 # necessary to make sure instantiated templates are included 12100 # in the archive. 12101 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12102 ;; 12103 gcx*) 12104 # Green Hills C++ Compiler 12105 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12106 12107 # The C++ compiler must be used to create the archive. 12108 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12109 ;; 12110 *) 12111 # GNU C++ compiler with Solaris linker 12112 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12113 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12114 if $CC --version | grep -v '^2\.7' > /dev/null; then 12115 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12116 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12117 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12118 12119 # Commands to make compiler produce verbose output that lists 12120 # what "hidden" libraries, object files and flags are used when 12121 # linking a shared library. 12122 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12123 else 12124 # g++ 2.7 appears to require '-G' NOT '-shared' on this 12125 # platform. 12126 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12127 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12128 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12129 12130 # Commands to make compiler produce verbose output that lists 12131 # what "hidden" libraries, object files and flags are used when 12132 # linking a shared library. 12133 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12134 fi 12135 12136 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12137 case $host_os in 12138 solaris2.[0-5] | solaris2.[0-5].*) ;; 12139 *) 12140 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 12141 ;; 12142 esac 12143 fi 12144 ;; 12145 esac 12146 ;; 12147 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12148 no_undefined_flag_CXX='${wl}-z,text' 12149 archive_cmds_need_lc_CXX=no 12150 hardcode_shlibpath_var_CXX=no 12151 runpath_var='LD_RUN_PATH' 12152 12153 case $cc_basename in 12154 CC*) 12155 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12156 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12157 ;; 12158 *) 12159 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12160 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12161 ;; 12162 esac 12163 ;; 12164 sysv5* | sco3.2v5* | sco5v6*) 12165 # Note: We can NOT use -z defs as we might desire, because we do not 12166 # link with -lc, and that would cause any symbols used from libc to 12167 # always be unresolved, which means just about no library would 12168 # ever link correctly. If we're not using GNU ld we use -z text 12169 # though, which does catch some bad symbols but isn't as heavy-handed 12170 # as -z defs. 12171 # For security reasons, it is highly recommended that you always 12172 # use absolute paths for naming shared libraries, and exclude the 12173 # DT_RUNPATH tag from executables and libraries. But doing so 12174 # requires that you compile everything twice, which is a pain. 12175 # So that behaviour is only enabled if SCOABSPATH is set to a 12176 # non-empty value in the environment. Most likely only useful for 12177 # creating official distributions of packages. 12178 # This is a hack until libtool officially supports absolute path 12179 # names for shared libraries. 12180 no_undefined_flag_CXX='${wl}-z,text' 12181 allow_undefined_flag_CXX='${wl}-z,nodefs' 12182 archive_cmds_need_lc_CXX=no 12183 hardcode_shlibpath_var_CXX=no 12184 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 12185 hardcode_libdir_separator_CXX=':' 12186 link_all_deplibs_CXX=yes 12187 export_dynamic_flag_spec_CXX='${wl}-Bexport' 12188 runpath_var='LD_RUN_PATH' 12189 12190 case $cc_basename in 12191 CC*) 12192 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12193 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12194 ;; 12195 *) 12196 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12197 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12198 ;; 12199 esac 12200 ;; 12201 tandem*) 12202 case $cc_basename in 12203 NCC*) 12204 # NonStop-UX NCC 3.20 12205 # FIXME: insert proper C++ library support 12206 ld_shlibs_CXX=no 12207 ;; 12208 *) 12209 # FIXME: insert proper C++ library support 12210 ld_shlibs_CXX=no 12211 ;; 12212 esac 12213 ;; 12214 vxworks*) 12215 # FIXME: insert proper C++ library support 12216 ld_shlibs_CXX=no 12217 ;; 12218 *) 12219 # FIXME: insert proper C++ library support 12220 ld_shlibs_CXX=no 12221 ;; 12222esac 12223{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12224echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12225test "$ld_shlibs_CXX" = no && can_build_shared=no 12226 12227GCC_CXX="$GXX" 12228LD_CXX="$LD" 12229 12230## CAVEAT EMPTOR: 12231## There is no encapsulation within the following macros, do not change 12232## the running order or otherwise move them around unless you know exactly 12233## what you are doing... 12234 12235cat > conftest.$ac_ext <<EOF 12236class Foo 12237{ 12238public: 12239 Foo (void) { a = 0; } 12240private: 12241 int a; 12242}; 12243EOF 12244 12245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12246 (eval $ac_compile) 2>&5 12247 ac_status=$? 12248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12249 (exit $ac_status); }; then 12250 # Parse the compiler output and extract the necessary 12251 # objects, libraries and library flags. 12252 12253 # Sentinel used to keep track of whether or not we are before 12254 # the conftest object file. 12255 pre_test_object_deps_done=no 12256 12257 # The '*' in the case matches for architectures that use 'case' in 12258 # $output_verbose_cmd can trigger glob expansion during the loop 12259 # eval without this substitution. 12260 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 12261 12262 for p in `eval $output_verbose_link_cmd`; do 12263 case $p in 12264 12265 -L* | -R* | -l*) 12266 # Some compilers place space between "-{L,R}" and the path. 12267 # Remove the space. 12268 if test $p = "-L" \ 12269 || test $p = "-R"; then 12270 prev=$p 12271 continue 12272 else 12273 prev= 12274 fi 12275 12276 if test "$pre_test_object_deps_done" = no; then 12277 case $p in 12278 -L* | -R*) 12279 # Internal compiler library paths should come after those 12280 # provided the user. The postdeps already come after the 12281 # user supplied libs so there is no need to process them. 12282 if test -z "$compiler_lib_search_path_CXX"; then 12283 compiler_lib_search_path_CXX="${prev}${p}" 12284 else 12285 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 12286 fi 12287 ;; 12288 # The "-l" case would never come before the object being 12289 # linked, so don't bother handling this case. 12290 esac 12291 else 12292 if test -z "$postdeps_CXX"; then 12293 postdeps_CXX="${prev}${p}" 12294 else 12295 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 12296 fi 12297 fi 12298 ;; 12299 12300 *.$objext) 12301 # This assumes that the test object file only shows up 12302 # once in the compiler output. 12303 if test "$p" = "conftest.$objext"; then 12304 pre_test_object_deps_done=yes 12305 continue 12306 fi 12307 12308 if test "$pre_test_object_deps_done" = no; then 12309 if test -z "$predep_objects_CXX"; then 12310 predep_objects_CXX="$p" 12311 else 12312 predep_objects_CXX="$predep_objects_CXX $p" 12313 fi 12314 else 12315 if test -z "$postdep_objects_CXX"; then 12316 postdep_objects_CXX="$p" 12317 else 12318 postdep_objects_CXX="$postdep_objects_CXX $p" 12319 fi 12320 fi 12321 ;; 12322 12323 *) ;; # Ignore the rest. 12324 12325 esac 12326 done 12327 12328 # Clean up. 12329 rm -f a.out a.exe 12330else 12331 echo "libtool.m4: error: problem compiling CXX test program" 12332fi 12333 12334$rm -f confest.$objext 12335 12336# PORTME: override above test on systems where it is broken 12337case $host_os in 12338interix3*) 12339 # Interix 3.5 installs completely hosed .la files for C++, so rather than 12340 # hack all around it, let's just trust "g++" to DTRT. 12341 predep_objects_CXX= 12342 postdep_objects_CXX= 12343 postdeps_CXX= 12344 ;; 12345 12346linux*) 12347 case `$CC -V 2>&1 | sed 5q` in 12348 *Sun\ C*) 12349 # Sun C++ 5.9 12350 postdeps_CXX='-lCstd -lCrun' 12351 ;; 12352 esac 12353 ;; 12354 12355solaris*) 12356 case $cc_basename in 12357 CC*) 12358 # Adding this requires a known-good setup of shared libraries for 12359 # Sun compiler versions before 5.6, else PIC objects from an old 12360 # archive will be linked into the output, leading to subtle bugs. 12361 postdeps_CXX='-lCstd -lCrun' 12362 ;; 12363 esac 12364 ;; 12365esac 12366 12367 12368case " $postdeps_CXX " in 12369*" -lc "*) archive_cmds_need_lc_CXX=no ;; 12370esac 12371 12372lt_prog_compiler_wl_CXX= 12373lt_prog_compiler_pic_CXX= 12374lt_prog_compiler_static_CXX= 12375 12376{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12377echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 12378 12379 # C++ specific cases for pic, static, wl, etc. 12380 if test "$GXX" = yes; then 12381 lt_prog_compiler_wl_CXX='-Wl,' 12382 lt_prog_compiler_static_CXX='-static' 12383 12384 case $host_os in 12385 aix*) 12386 # All AIX code is PIC. 12387 if test "$host_cpu" = ia64; then 12388 # AIX 5 now supports IA64 processor 12389 lt_prog_compiler_static_CXX='-Bstatic' 12390 fi 12391 ;; 12392 amigaos*) 12393 # FIXME: we need at least 68020 code to build shared libraries, but 12394 # adding the '-m68020' flag to GCC prevents building anything better, 12395 # like '-m68040'. 12396 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12397 ;; 12398 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12399 # PIC is the default for these OSes. 12400 ;; 12401 mingw* | cygwin* | os2* | pw32*) 12402 # This hack is so that the source file can tell whether it is being 12403 # built for inclusion in a dll (and should export symbols for example). 12404 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12405 # (--disable-auto-import) libraries 12406 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 12407 ;; 12408 darwin* | rhapsody*) 12409 # PIC is the default on this platform 12410 # Common symbols not allowed in MH_DYLIB files 12411 lt_prog_compiler_pic_CXX='-fno-common' 12412 ;; 12413 *djgpp*) 12414 # DJGPP does not support shared libraries at all 12415 lt_prog_compiler_pic_CXX= 12416 ;; 12417 interix3*) 12418 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12419 # Instead, we relocate shared libraries at runtime. 12420 ;; 12421 sysv4*MP*) 12422 if test -d /usr/nec; then 12423 lt_prog_compiler_pic_CXX=-Kconform_pic 12424 fi 12425 ;; 12426 hpux*) 12427 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12428 # not for PA HP-UX. 12429 case $host_cpu in 12430 hppa*64*|ia64*) 12431 ;; 12432 *) 12433 lt_prog_compiler_pic_CXX='-fPIC' 12434 ;; 12435 esac 12436 ;; 12437 *) 12438 lt_prog_compiler_pic_CXX='-fPIC' 12439 ;; 12440 esac 12441 else 12442 case $host_os in 12443 aix4* | aix5*) 12444 # All AIX code is PIC. 12445 if test "$host_cpu" = ia64; then 12446 # AIX 5 now supports IA64 processor 12447 lt_prog_compiler_static_CXX='-Bstatic' 12448 else 12449 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12450 fi 12451 ;; 12452 chorus*) 12453 case $cc_basename in 12454 cxch68*) 12455 # Green Hills C++ Compiler 12456 # _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" 12457 ;; 12458 esac 12459 ;; 12460 darwin*) 12461 # PIC is the default on this platform 12462 # Common symbols not allowed in MH_DYLIB files 12463 case $cc_basename in 12464 xlc*) 12465 lt_prog_compiler_pic_CXX='-qnocommon' 12466 lt_prog_compiler_wl_CXX='-Wl,' 12467 ;; 12468 esac 12469 ;; 12470 dgux*) 12471 case $cc_basename in 12472 ec++*) 12473 lt_prog_compiler_pic_CXX='-KPIC' 12474 ;; 12475 ghcx*) 12476 # Green Hills C++ Compiler 12477 lt_prog_compiler_pic_CXX='-pic' 12478 ;; 12479 *) 12480 ;; 12481 esac 12482 ;; 12483 freebsd* | kfreebsd*-gnu | dragonfly*) 12484 # FreeBSD uses GNU C++ 12485 ;; 12486 hpux9* | hpux10* | hpux11*) 12487 case $cc_basename in 12488 CC*) 12489 lt_prog_compiler_wl_CXX='-Wl,' 12490 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12491 if test "$host_cpu" != ia64; then 12492 lt_prog_compiler_pic_CXX='+Z' 12493 fi 12494 ;; 12495 aCC*) 12496 lt_prog_compiler_wl_CXX='-Wl,' 12497 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12498 case $host_cpu in 12499 hppa*64*|ia64*) 12500 # +Z the default 12501 ;; 12502 *) 12503 lt_prog_compiler_pic_CXX='+Z' 12504 ;; 12505 esac 12506 ;; 12507 *) 12508 ;; 12509 esac 12510 ;; 12511 interix*) 12512 # This is c89, which is MS Visual C++ (no shared libs) 12513 # Anyone wants to do a port? (Not for MirPorts though.) 12514 ;; 12515 irix5* | irix6* | nonstopux*) 12516 case $cc_basename in 12517 CC*) 12518 lt_prog_compiler_wl_CXX='-Wl,' 12519 lt_prog_compiler_static_CXX='-non_shared' 12520 # CC pic flag -KPIC is the default. 12521 ;; 12522 *) 12523 ;; 12524 esac 12525 ;; 12526 linux*) 12527 case $cc_basename in 12528 KCC*) 12529 # KAI C++ Compiler 12530 lt_prog_compiler_wl_CXX='--backend -Wl,' 12531 lt_prog_compiler_pic_CXX='-fPIC' 12532 ;; 12533 icpc* | ecpc*) 12534 # Intel C++ 12535 lt_prog_compiler_wl_CXX='-Wl,' 12536 lt_prog_compiler_pic_CXX='-KPIC' 12537 lt_prog_compiler_static_CXX='-static' 12538 ;; 12539 pgCC*) 12540 # Portland Group C++ compiler. 12541 lt_prog_compiler_wl_CXX='-Wl,' 12542 lt_prog_compiler_pic_CXX='-fpic' 12543 lt_prog_compiler_static_CXX='-Bstatic' 12544 ;; 12545 cxx*) 12546 # Compaq C++ 12547 # Make sure the PIC flag is empty. It appears that all Alpha 12548 # Linux and Compaq Tru64 Unix objects are PIC. 12549 lt_prog_compiler_pic_CXX= 12550 lt_prog_compiler_static_CXX='-non_shared' 12551 ;; 12552 *) 12553 case `$CC -V 2>&1 | sed 5q` in 12554 *Sun\ C*) 12555 # Sun C++ 5.9 12556 lt_prog_compiler_pic_CXX='-KPIC' 12557 lt_prog_compiler_static_CXX='-Bstatic' 12558 lt_prog_compiler_wl_CXX='-Qoption ld ' 12559 ;; 12560 esac 12561 ;; 12562 esac 12563 ;; 12564 lynxos*) 12565 ;; 12566 m88k*) 12567 ;; 12568 mvs*) 12569 case $cc_basename in 12570 cxx*) 12571 lt_prog_compiler_pic_CXX='-W c,exportall' 12572 ;; 12573 *) 12574 ;; 12575 esac 12576 ;; 12577 netbsd*) 12578 ;; 12579 osf3* | osf4* | osf5*) 12580 case $cc_basename in 12581 KCC*) 12582 lt_prog_compiler_wl_CXX='--backend -Wl,' 12583 ;; 12584 RCC*) 12585 # Rational C++ 2.4.1 12586 lt_prog_compiler_pic_CXX='-pic' 12587 ;; 12588 cxx*) 12589 # Digital/Compaq C++ 12590 lt_prog_compiler_wl_CXX='-Wl,' 12591 # Make sure the PIC flag is empty. It appears that all Alpha 12592 # Linux and Compaq Tru64 Unix objects are PIC. 12593 lt_prog_compiler_pic_CXX= 12594 lt_prog_compiler_static_CXX='-non_shared' 12595 ;; 12596 *) 12597 ;; 12598 esac 12599 ;; 12600 psos*) 12601 ;; 12602 solaris*) 12603 case $cc_basename in 12604 CC*) 12605 # Sun C++ 4.2, 5.x and Centerline C++ 12606 lt_prog_compiler_pic_CXX='-KPIC' 12607 lt_prog_compiler_static_CXX='-Bstatic' 12608 lt_prog_compiler_wl_CXX='-Qoption ld ' 12609 ;; 12610 gcx*) 12611 # Green Hills C++ Compiler 12612 lt_prog_compiler_pic_CXX='-PIC' 12613 ;; 12614 *) 12615 ;; 12616 esac 12617 ;; 12618 sunos4*) 12619 case $cc_basename in 12620 CC*) 12621 # Sun C++ 4.x 12622 lt_prog_compiler_pic_CXX='-pic' 12623 lt_prog_compiler_static_CXX='-Bstatic' 12624 ;; 12625 lcc*) 12626 # Lucid 12627 lt_prog_compiler_pic_CXX='-pic' 12628 ;; 12629 *) 12630 ;; 12631 esac 12632 ;; 12633 tandem*) 12634 case $cc_basename in 12635 NCC*) 12636 # NonStop-UX NCC 3.20 12637 lt_prog_compiler_pic_CXX='-KPIC' 12638 ;; 12639 *) 12640 ;; 12641 esac 12642 ;; 12643 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12644 case $cc_basename in 12645 CC*) 12646 lt_prog_compiler_wl_CXX='-Wl,' 12647 lt_prog_compiler_pic_CXX='-KPIC' 12648 lt_prog_compiler_static_CXX='-Bstatic' 12649 ;; 12650 esac 12651 ;; 12652 vxworks*) 12653 ;; 12654 *) 12655 lt_prog_compiler_can_build_shared_CXX=no 12656 ;; 12657 esac 12658 fi 12659 12660{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12661echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } 12662 12663# 12664# Check to make sure the PIC flag actually works. 12665# 12666if test -n "$lt_prog_compiler_pic_CXX"; then 12667 12668{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12669echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } 12670if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 12671 echo $ECHO_N "(cached) $ECHO_C" >&6 12672else 12673 lt_prog_compiler_pic_works_CXX=no 12674 ac_outfile=conftest.$ac_objext 12675 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12676 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12677 # Insert the option either (1) after the last *FLAGS variable, or 12678 # (2) before a word containing "conftest.", or (3) at the end. 12679 # Note that $ac_compile itself does not contain backslashes and begins 12680 # with a dollar sign (not a hyphen), so the echo should work correctly. 12681 # The option is referenced via a variable to avoid confusing sed. 12682 lt_compile=`echo "$ac_compile" | $SED \ 12683 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12684 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12685 -e 's:$: $lt_compiler_flag:'` 12686 (eval echo "\"\$as_me:12686: $lt_compile\"" >&5) 12687 (eval "$lt_compile" 2>conftest.err) 12688 ac_status=$? 12689 cat conftest.err >&5 12690 echo "$as_me:12690: \$? = $ac_status" >&5 12691 if (exit $ac_status) && test -s "$ac_outfile"; then 12692 # The compiler can only warn and ignore the option if not recognized 12693 # So say no if there are warnings other than the usual output. 12694 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12695 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12696 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12697 lt_prog_compiler_pic_works_CXX=yes 12698 fi 12699 fi 12700 $rm conftest* 12701 12702fi 12703{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 12704echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } 12705 12706if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 12707 case $lt_prog_compiler_pic_CXX in 12708 "" | " "*) ;; 12709 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12710 esac 12711else 12712 lt_prog_compiler_pic_CXX= 12713 lt_prog_compiler_can_build_shared_CXX=no 12714fi 12715 12716fi 12717case $host_os in 12718 # For platforms which do not support PIC, -DPIC is meaningless: 12719 *djgpp*) 12720 lt_prog_compiler_pic_CXX= 12721 ;; 12722 *) 12723 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12724 ;; 12725esac 12726 12727# 12728# Check to make sure the static flag actually works. 12729# 12730wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 12731{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12732echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 12733if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 12734 echo $ECHO_N "(cached) $ECHO_C" >&6 12735else 12736 lt_prog_compiler_static_works_CXX=no 12737 save_LDFLAGS="$LDFLAGS" 12738 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12739 printf "$lt_simple_link_test_code" > conftest.$ac_ext 12740 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12741 # The linker can only warn and ignore the option if not recognized 12742 # So say no if there are warnings 12743 if test -s conftest.err; then 12744 # Append any errors to the config.log. 12745 cat conftest.err 1>&5 12746 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 12747 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12748 if diff conftest.exp conftest.er2 >/dev/null; then 12749 lt_prog_compiler_static_works_CXX=yes 12750 fi 12751 else 12752 lt_prog_compiler_static_works_CXX=yes 12753 fi 12754 fi 12755 $rm conftest* 12756 LDFLAGS="$save_LDFLAGS" 12757 12758fi 12759{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 12760echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } 12761 12762if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 12763 : 12764else 12765 lt_prog_compiler_static_CXX= 12766fi 12767 12768 12769{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12770echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 12771if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 12772 echo $ECHO_N "(cached) $ECHO_C" >&6 12773else 12774 lt_cv_prog_compiler_c_o_CXX=no 12775 $rm -r conftest 2>/dev/null 12776 mkdir conftest 12777 cd conftest 12778 mkdir out 12779 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12780 12781 lt_compiler_flag="-o out/conftest2.$ac_objext" 12782 # Insert the option either (1) after the last *FLAGS variable, or 12783 # (2) before a word containing "conftest.", or (3) at the end. 12784 # Note that $ac_compile itself does not contain backslashes and begins 12785 # with a dollar sign (not a hyphen), so the echo should work correctly. 12786 lt_compile=`echo "$ac_compile" | $SED \ 12787 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12788 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12789 -e 's:$: $lt_compiler_flag:'` 12790 (eval echo "\"\$as_me:12790: $lt_compile\"" >&5) 12791 (eval "$lt_compile" 2>out/conftest.err) 12792 ac_status=$? 12793 cat out/conftest.err >&5 12794 echo "$as_me:12794: \$? = $ac_status" >&5 12795 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12796 then 12797 # The compiler can only warn and ignore the option if not recognized 12798 # So say no if there are warnings 12799 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 12800 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12801 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12802 lt_cv_prog_compiler_c_o_CXX=yes 12803 fi 12804 fi 12805 chmod u+w . 2>&5 12806 $rm conftest* 12807 # SGI C++ compiler will create directory out/ii_files/ for 12808 # template instantiation 12809 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 12810 $rm out/* && rmdir out 12811 cd .. 12812 rmdir conftest 12813 $rm conftest* 12814 12815fi 12816{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 12817echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } 12818 12819 12820hard_links="nottested" 12821if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 12822 # do not overwrite the value of need_locks provided by the user 12823 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 12824echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 12825 hard_links=yes 12826 $rm conftest* 12827 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12828 touch conftest.a 12829 ln conftest.a conftest.b 2>&5 || hard_links=no 12830 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12831 { echo "$as_me:$LINENO: result: $hard_links" >&5 12832echo "${ECHO_T}$hard_links" >&6; } 12833 if test "$hard_links" = no; then 12834 { echo "$as_me:$LINENO: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 12835echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 12836 need_locks=warn 12837 fi 12838else 12839 need_locks=no 12840fi 12841 12842{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12843echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 12844 12845 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12846 case $host_os in 12847 aix4* | aix5*) 12848 # If we're using GNU nm, then we don't want the "-C" option. 12849 # -C means demangle to AIX nm, but means don't demangle with GNU nm 12850 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 12851 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' 12852 else 12853 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' 12854 fi 12855 ;; 12856 pw32*) 12857 export_symbols_cmds_CXX="$ltdll_cmds" 12858 ;; 12859 cygwin* | mingw*) 12860 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' 12861 ;; 12862 *) 12863 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12864 ;; 12865 esac 12866 12867{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12868echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12869test "$ld_shlibs_CXX" = no && can_build_shared=no 12870 12871# 12872# Do we need to explicitly link libc? 12873# 12874case "x$archive_cmds_need_lc_CXX" in 12875x|xyes) 12876 # Assume -lc should be added 12877 archive_cmds_need_lc_CXX=yes 12878 12879 if test "$enable_shared" = yes && test "$GCC" = yes; then 12880 case $archive_cmds_CXX in 12881 *'~'*) 12882 # FIXME: we may have to deal with multi-command sequences. 12883 ;; 12884 '$CC '*) 12885 # Test whether the compiler implicitly links with -lc since on some 12886 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12887 # to ld, don't add -lc before -lgcc. 12888 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 12889echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 12890 $rm conftest* 12891 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12892 12893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12894 (eval $ac_compile) 2>&5 12895 ac_status=$? 12896 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12897 (exit $ac_status); } 2>conftest.err; then 12898 soname=conftest 12899 lib=conftest 12900 libobjs=conftest.$ac_objext 12901 deplibs= 12902 wl=$lt_prog_compiler_wl_CXX 12903 pic_flag=$lt_prog_compiler_pic_CXX 12904 compiler_flags=-v 12905 linker_flags=-v 12906 verstring= 12907 output_objdir=. 12908 libname=conftest 12909 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 12910 allow_undefined_flag_CXX= 12911 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 12912 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 12913 ac_status=$? 12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12915 (exit $ac_status); } 12916 then 12917 archive_cmds_need_lc_CXX=no 12918 else 12919 archive_cmds_need_lc_CXX=yes 12920 fi 12921 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 12922 else 12923 cat conftest.err 1>&5 12924 fi 12925 $rm conftest* 12926 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 12927echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } 12928 ;; 12929 esac 12930 fi 12931 ;; 12932esac 12933 12934{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 12935echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 12936library_names_spec= 12937libname_spec='lib$name' 12938soname_spec= 12939shrext_cmds=".so" 12940postinstall_cmds= 12941postuninstall_cmds= 12942finish_cmds= 12943finish_eval= 12944shlibpath_var= 12945shlibpath_overrides_runpath=unknown 12946version_type=none 12947dynamic_linker="$host_os ld.so" 12948sys_lib_dlsearch_path_spec="/lib /usr/lib" 12949if test "$GCC" = yes; then 12950 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12951 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 12952 # if the path contains ";" then we assume it to be the separator 12953 # otherwise default to the standard path separator (i.e. ":") - it is 12954 # assumed that no part of a normal pathname contains ";" but that should 12955 # okay in the real world where ";" in dirpaths is itself problematic. 12956 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12957 else 12958 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12959 fi 12960else 12961 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12962fi 12963tmp="$sys_lib_search_path_spec" 12964sys_lib_search_path_spec= 12965sp= 12966for i in $tmp 12967do 12968 test -d $i && sys_lib_search_path_spec="$sys_lib_search_path_spec$sp$i" 12969 sp=" " 12970done 12971 12972need_lib_prefix=unknown 12973hardcode_into_libs=no 12974 12975# when you set need_version to no, make sure it does not cause -set_version 12976# flags to be left without arguments 12977need_version=unknown 12978 12979case $host_os in 12980aix3*) 12981 version_type=linux 12982 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12983 shlibpath_var=LIBPATH 12984 12985 # AIX 3 has no versioning support, so we append a major version to the name. 12986 soname_spec='${libname}${release}${shared_ext}$major' 12987 ;; 12988 12989aix4* | aix5*) 12990 version_type=linux 12991 need_lib_prefix=no 12992 need_version=no 12993 hardcode_into_libs=yes 12994 if test "$host_cpu" = ia64; then 12995 # AIX 5 supports IA64 12996 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 12997 shlibpath_var=LD_LIBRARY_PATH 12998 else 12999 # With GCC up to 2.95.x, collect2 would create an import file 13000 # for dependence libraries. The import file would start with 13001 # the line '#! .'. This would cause the generated library to 13002 # depend on '.', always an invalid library. This was fixed in 13003 # development snapshots of GCC prior to 3.0. 13004 case $host_os in 13005 aix4 | aix4.[01] | aix4.[01].*) 13006 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13007 echo ' yes ' 13008 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 13009 : 13010 else 13011 can_build_shared=no 13012 fi 13013 ;; 13014 esac 13015 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13016 # soname into executable. Probably we can add versioning support to 13017 # collect2, so additional links can be useful in future. 13018 if test "$aix_use_runtimelinking" = yes; then 13019 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13020 # instead of lib<name>.a to let people know that these are not 13021 # typical AIX shared libraries. 13022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13023 else 13024 # We preserve .a as extension for shared libraries through AIX4.2 13025 # and later when we are not doing run time linking. 13026 library_names_spec='${libname}${release}.a $libname.a' 13027 soname_spec='${libname}${release}${shared_ext}$major' 13028 fi 13029 shlibpath_var=LIBPATH 13030 fi 13031 ;; 13032 13033amigaos*) 13034 library_names_spec='$libname.ixlibrary $libname.a' 13035 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13036 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' 13037 ;; 13038 13039beos*) 13040 library_names_spec='${libname}${shared_ext}' 13041 dynamic_linker="$host_os ld.so" 13042 shlibpath_var=LIBRARY_PATH 13043 ;; 13044 13045bsdi[45]*) 13046 version_type=linux 13047 need_version=no 13048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13049 soname_spec='${libname}${release}${shared_ext}$major' 13050 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13051 shlibpath_var=LD_LIBRARY_PATH 13052 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13053 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13054 # the default ld.so.conf also contains /usr/contrib/lib and 13055 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13056 # libtool to hard-code these into programs 13057 ;; 13058 13059cygwin* | mingw* | pw32*) 13060 version_type=windows 13061 shrext_cmds=".dll" 13062 need_version=no 13063 need_lib_prefix=no 13064 13065 case $GCC,$host_os in 13066 yes,cygwin* | yes,mingw* | yes,pw32*) 13067 library_names_spec='$libname.dll.a' 13068 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13069 postinstall_cmds='base_file=`basename \${file}`~ 13070 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 13071 dldir=$destdir/`dirname \$dlpath`~ 13072 test -d \$dldir || mkdir -p \$dldir~ 13073 $install_prog $dir/$dlname \$dldir/$dlname~ 13074 chmod a+x \$dldir/$dlname' 13075 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13076 dlpath=$dir/\$dldll~ 13077 $rm \$dlpath' 13078 shlibpath_overrides_runpath=yes 13079 13080 case $host_os in 13081 cygwin*) 13082 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13083 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13084 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 13085 ;; 13086 mingw*) 13087 # MinGW DLLs use traditional 'lib' prefix 13088 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13089 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13090 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 13091 # It is most probably a Windows format PATH printed by 13092 # mingw gcc, but we are running on Cygwin. Gcc prints its search 13093 # path with ; separators, and with drive letters. We can handle the 13094 # drive letters (cygwin fileutils understands them), so leave them, 13095 # especially as we might pass files found there to a mingw objdump, 13096 # which wouldn't understand a cygwinified path. Ahh. 13097 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13098 else 13099 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13100 fi 13101 ;; 13102 pw32*) 13103 # pw32 DLLs use 'pw' prefix rather than 'lib' 13104 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13105 ;; 13106 esac 13107 ;; 13108 13109 *) 13110 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13111 ;; 13112 esac 13113 dynamic_linker='Win32 ld.exe' 13114 # FIXME: first we should search . and the directory the executable is in 13115 shlibpath_var=PATH 13116 ;; 13117 13118darwin* | rhapsody*) 13119 dynamic_linker="$host_os dyld" 13120 version_type=darwin 13121 need_lib_prefix=no 13122 need_version=no 13123 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13124 soname_spec='${libname}${release}${major}$shared_ext' 13125 shlibpath_overrides_runpath=yes 13126 shlibpath_var=DYLD_LIBRARY_PATH 13127 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13128 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 13129 if test "$GCC" = yes; then 13130 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"` 13131 else 13132 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 13133 fi 13134 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13135 ;; 13136 13137dgux*) 13138 version_type=linux 13139 need_lib_prefix=no 13140 need_version=no 13141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13142 soname_spec='${libname}${release}${shared_ext}$major' 13143 shlibpath_var=LD_LIBRARY_PATH 13144 ;; 13145 13146freebsd1*) 13147 dynamic_linker=no 13148 ;; 13149 13150kfreebsd*-gnu) 13151 version_type=linux 13152 need_lib_prefix=no 13153 need_version=no 13154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13155 soname_spec='${libname}${release}${shared_ext}$major' 13156 shlibpath_var=LD_LIBRARY_PATH 13157 shlibpath_overrides_runpath=no 13158 hardcode_into_libs=yes 13159 dynamic_linker='GNU ld.so' 13160 ;; 13161 13162freebsd* | dragonfly*) 13163 # DragonFly does not have aout. When/if they implement a new 13164 # versioning mechanism, adjust this. 13165 if test -x /usr/bin/objformat; then 13166 objformat=`/usr/bin/objformat` 13167 else 13168 case $host_os in 13169 freebsd[123]*) objformat=aout ;; 13170 *) objformat=elf ;; 13171 esac 13172 fi 13173 version_type=freebsd-$objformat 13174 case $version_type in 13175 freebsd-elf*) 13176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13177 need_version=no 13178 need_lib_prefix=no 13179 ;; 13180 freebsd-*) 13181 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13182 need_version=yes 13183 ;; 13184 esac 13185 shlibpath_var=LD_LIBRARY_PATH 13186 case $host_os in 13187 freebsd2*) 13188 shlibpath_overrides_runpath=yes 13189 ;; 13190 freebsd3.[01]* | freebsdelf3.[01]*) 13191 shlibpath_overrides_runpath=yes 13192 hardcode_into_libs=yes 13193 ;; 13194 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13195 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13196 shlibpath_overrides_runpath=no 13197 hardcode_into_libs=yes 13198 ;; 13199 *) # from 4.6 on, and DragonFly 13200 shlibpath_overrides_runpath=yes 13201 hardcode_into_libs=yes 13202 ;; 13203 esac 13204 ;; 13205 13206gnu*) 13207 version_type=linux 13208 need_lib_prefix=no 13209 need_version=no 13210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13211 soname_spec='${libname}${release}${shared_ext}$major' 13212 shlibpath_var=LD_LIBRARY_PATH 13213 hardcode_into_libs=yes 13214 ;; 13215 13216hpux9* | hpux10* | hpux11*) 13217 # Give a soname corresponding to the major version so that dld.sl refuses to 13218 # link against other versions. 13219 version_type=sunos 13220 need_lib_prefix=no 13221 need_version=no 13222 case $host_cpu in 13223 ia64*) 13224 shrext_cmds='.so' 13225 hardcode_into_libs=yes 13226 dynamic_linker="$host_os dld.so" 13227 shlibpath_var=LD_LIBRARY_PATH 13228 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13230 soname_spec='${libname}${release}${shared_ext}$major' 13231 if test "X$HPUX_IA64_MODE" = X32; then 13232 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13233 else 13234 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13235 fi 13236 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13237 ;; 13238 hppa*64*) 13239 shrext_cmds='.sl' 13240 hardcode_into_libs=yes 13241 dynamic_linker="$host_os dld.sl" 13242 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13243 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13245 soname_spec='${libname}${release}${shared_ext}$major' 13246 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13247 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13248 ;; 13249 *) 13250 shrext_cmds='.sl' 13251 dynamic_linker="$host_os dld.sl" 13252 shlibpath_var=SHLIB_PATH 13253 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13255 soname_spec='${libname}${release}${shared_ext}$major' 13256 ;; 13257 esac 13258 # HP-UX runs *really* slowly unless shared libraries are mode 555. 13259 postinstall_cmds='chmod 555 $lib' 13260 ;; 13261 13262interix3*) 13263 version_type=linux 13264 need_lib_prefix=no 13265 need_version=no 13266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13267 soname_spec='${libname}${release}${shared_ext}$major' 13268 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13269 shlibpath_var=LD_LIBRARY_PATH 13270 shlibpath_overrides_runpath=no 13271 hardcode_into_libs=yes 13272 ;; 13273 13274irix5* | irix6* | nonstopux*) 13275 case $host_os in 13276 nonstopux*) version_type=nonstopux ;; 13277 *) 13278 if test "$lt_cv_prog_gnu_ld" = yes; then 13279 version_type=linux 13280 else 13281 version_type=irix 13282 fi ;; 13283 esac 13284 need_lib_prefix=no 13285 need_version=no 13286 soname_spec='${libname}${release}${shared_ext}$major' 13287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13288 case $host_os in 13289 irix5* | nonstopux*) 13290 libsuff= shlibsuff= 13291 ;; 13292 *) 13293 case $LD in # libtool.m4 will add one of these switches to LD 13294 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13295 libsuff= shlibsuff= libmagic=32-bit;; 13296 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13297 libsuff=32 shlibsuff=N32 libmagic=N32;; 13298 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13299 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13300 *) libsuff= shlibsuff= libmagic=never-match;; 13301 esac 13302 ;; 13303 esac 13304 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13305 shlibpath_overrides_runpath=no 13306 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13307 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13308 hardcode_into_libs=yes 13309 ;; 13310 13311# No shared lib support for Linux oldld, aout, or coff. 13312linux*oldld* | linux*aout* | linux*coff*) 13313 dynamic_linker=no 13314 ;; 13315 13316# This must be Linux ELF. 13317linux*) 13318 version_type=linux 13319 need_lib_prefix=no 13320 need_version=no 13321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13322 soname_spec='${libname}${release}${shared_ext}$major' 13323 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13324 shlibpath_var=LD_LIBRARY_PATH 13325 shlibpath_overrides_runpath=no 13326 # This implies no fast_install, which is unacceptable. 13327 # Some rework will be needed to allow for fast_install 13328 # before this can be enabled. 13329 hardcode_into_libs=yes 13330 13331 # Append ld.so.conf contents to the search path 13332 if test -f /etc/ld.so.conf; then 13333 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' ' '` 13334 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 13335 fi 13336 13337 # We used to test for /lib/ld.so.1 and disable shared libraries on 13338 # powerpc, because MkLinux only supported shared libraries with the 13339 # GNU dynamic linker. Since this was broken with cross compilers, 13340 # most powerpc-linux boxes support dynamic linking these days and 13341 # people can always --disable-shared, the test was removed, and we 13342 # assume the GNU/Linux dynamic linker is in use. 13343 dynamic_linker='GNU/Linux ld.so' 13344 ;; 13345 13346mirbsd*) 13347 version_type=linux 13348 sys_lib_dlsearch_path_spec="/usr/lib" 13349 need_lib_prefix=no 13350 need_version=no 13351 library_names_spec='${libname}${release}${shared_ext}$versuffix2 ${libname}${shared_ext}$versuffix2' 13352 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13353 shlibpath_var=LD_LIBRARY_PATH 13354 shlibpath_overrides_runpath=yes 13355 ;; 13356 13357knetbsd*-gnu) 13358 version_type=linux 13359 need_lib_prefix=no 13360 need_version=no 13361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13362 soname_spec='${libname}${release}${shared_ext}$major' 13363 shlibpath_var=LD_LIBRARY_PATH 13364 shlibpath_overrides_runpath=no 13365 hardcode_into_libs=yes 13366 dynamic_linker='GNU ld.so' 13367 ;; 13368 13369netbsd*) 13370 version_type=sunos 13371 need_lib_prefix=no 13372 need_version=no 13373 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13375 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13376 dynamic_linker='NetBSD (a.out) ld.so' 13377 else 13378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13379 soname_spec='${libname}${release}${shared_ext}$major' 13380 dynamic_linker='NetBSD ld.elf_so' 13381 fi 13382 shlibpath_var=LD_LIBRARY_PATH 13383 shlibpath_overrides_runpath=yes 13384 hardcode_into_libs=yes 13385 ;; 13386 13387newsos6) 13388 version_type=linux 13389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13390 shlibpath_var=LD_LIBRARY_PATH 13391 shlibpath_overrides_runpath=yes 13392 ;; 13393 13394nto-qnx*) 13395 version_type=linux 13396 need_lib_prefix=no 13397 need_version=no 13398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13399 soname_spec='${libname}${release}${shared_ext}$major' 13400 shlibpath_var=LD_LIBRARY_PATH 13401 shlibpath_overrides_runpath=yes 13402 ;; 13403 13404openbsd*) 13405 version_type=linux 13406 sys_lib_dlsearch_path_spec="/usr/lib" 13407 need_lib_prefix=no 13408 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 13409 case $host_os in 13410 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 13411 *) need_version=no ;; 13412 esac 13413 library_names_spec='${libname}${release}${shared_ext}$versuffix2 ${libname}${shared_ext}$versuffix2' 13414 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13415 shlibpath_var=LD_LIBRARY_PATH 13416 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13417 case $host_os in 13418 openbsd2.[89] | openbsd2.[89].*) 13419 shlibpath_overrides_runpath=no 13420 ;; 13421 *) 13422 shlibpath_overrides_runpath=yes 13423 ;; 13424 esac 13425 else 13426 shlibpath_overrides_runpath=yes 13427 fi 13428 ;; 13429 13430os2*) 13431 libname_spec='$name' 13432 shrext_cmds=".dll" 13433 need_lib_prefix=no 13434 library_names_spec='$libname${shared_ext} $libname.a' 13435 dynamic_linker='OS/2 ld.exe' 13436 shlibpath_var=LIBPATH 13437 ;; 13438 13439osf3* | osf4* | osf5*) 13440 version_type=osf 13441 need_lib_prefix=no 13442 need_version=no 13443 soname_spec='${libname}${release}${shared_ext}$major' 13444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13445 shlibpath_var=LD_LIBRARY_PATH 13446 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13447 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13448 ;; 13449 13450rdos*) 13451 dynamic_linker=no 13452 ;; 13453 13454solaris*) 13455 version_type=linux 13456 need_lib_prefix=no 13457 need_version=no 13458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13459 soname_spec='${libname}${release}${shared_ext}$major' 13460 shlibpath_var=LD_LIBRARY_PATH 13461 shlibpath_overrides_runpath=yes 13462 hardcode_into_libs=yes 13463 # ldd complains unless libraries are executable 13464 postinstall_cmds='chmod +x $lib' 13465 ;; 13466 13467sunos4*) 13468 version_type=sunos 13469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13470 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13471 shlibpath_var=LD_LIBRARY_PATH 13472 shlibpath_overrides_runpath=yes 13473 if test "$with_gnu_ld" = yes; then 13474 need_lib_prefix=no 13475 fi 13476 need_version=yes 13477 ;; 13478 13479sysv4 | sysv4.3*) 13480 version_type=linux 13481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13482 soname_spec='${libname}${release}${shared_ext}$major' 13483 shlibpath_var=LD_LIBRARY_PATH 13484 case $host_vendor in 13485 sni) 13486 shlibpath_overrides_runpath=no 13487 need_lib_prefix=no 13488 export_dynamic_flag_spec='${wl}-Blargedynsym' 13489 runpath_var=LD_RUN_PATH 13490 ;; 13491 siemens) 13492 need_lib_prefix=no 13493 ;; 13494 motorola) 13495 need_lib_prefix=no 13496 need_version=no 13497 shlibpath_overrides_runpath=no 13498 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13499 ;; 13500 esac 13501 ;; 13502 13503sysv4*MP*) 13504 if test -d /usr/nec ;then 13505 version_type=linux 13506 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13507 soname_spec='$libname${shared_ext}.$major' 13508 shlibpath_var=LD_LIBRARY_PATH 13509 fi 13510 ;; 13511 13512sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13513 version_type=freebsd-elf 13514 need_lib_prefix=no 13515 need_version=no 13516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13517 soname_spec='${libname}${release}${shared_ext}$major' 13518 shlibpath_var=LD_LIBRARY_PATH 13519 hardcode_into_libs=yes 13520 if test "$with_gnu_ld" = yes; then 13521 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13522 shlibpath_overrides_runpath=no 13523 else 13524 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13525 shlibpath_overrides_runpath=yes 13526 case $host_os in 13527 sco3.2v5*) 13528 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13529 ;; 13530 esac 13531 fi 13532 sys_lib_dlsearch_path_spec='/usr/lib' 13533 ;; 13534 13535uts4*) 13536 version_type=linux 13537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13538 soname_spec='${libname}${release}${shared_ext}$major' 13539 shlibpath_var=LD_LIBRARY_PATH 13540 ;; 13541 13542*) 13543 dynamic_linker=no 13544 ;; 13545esac 13546{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13547echo "${ECHO_T}$dynamic_linker" >&6; } 13548test "$dynamic_linker" = no && can_build_shared=no 13549 13550variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13551if test "$GCC" = yes; then 13552 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13553fi 13554 13555{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13556echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 13557hardcode_action_CXX= 13558if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13559 test -n "$runpath_var_CXX" || \ 13560 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13561 13562 # We can hardcode non-existant directories. 13563 if test "$hardcode_direct_CXX" != no && 13564 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13565 # have to relink, otherwise we might link with an installed library 13566 # when we should be linking with a yet-to-be-installed one 13567 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13568 test "$hardcode_minus_L_CXX" != no; then 13569 # Linking always hardcodes the temporary library directory. 13570 hardcode_action_CXX=relink 13571 else 13572 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13573 hardcode_action_CXX=immediate 13574 fi 13575else 13576 # We cannot hardcode anything, or else we can only hardcode existing 13577 # directories. 13578 hardcode_action_CXX=unsupported 13579fi 13580{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13581echo "${ECHO_T}$hardcode_action_CXX" >&6; } 13582 13583if test "$hardcode_action_CXX" = relink; then 13584 # Fast installation is not supported 13585 enable_fast_install=no 13586elif test "$shlibpath_overrides_runpath" = yes || 13587 test "$enable_shared" = no; then 13588 # Fast installation is not necessary 13589 enable_fast_install=needless 13590fi 13591 13592 13593# The else clause should only fire when bootstrapping the 13594# libtool distribution, otherwise you forgot to ship ltmain.sh 13595# with your package, and you will get complaints that there are 13596# no rules to generate ltmain.sh. 13597if test -f "$ltmain"; then 13598 # See if we are running on zsh, and set the options which allow our commands through 13599 # without removal of \ escapes. 13600 if test -n "${ZSH_VERSION+set}" ; then 13601 setopt NO_GLOB_SUBST 13602 fi 13603 # Now quote all the things that may contain metacharacters while being 13604 # careful not to overquote the AC_SUBSTed values. We take copies of the 13605 # variables and quote the copies for generation of the libtool script. 13606 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13607 SED SHELL STRIP \ 13608 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13609 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13610 deplibs_check_method reload_flag reload_cmds need_locks \ 13611 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13612 lt_cv_sys_global_symbol_to_c_name_address \ 13613 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13614 old_postinstall_cmds old_postuninstall_cmds \ 13615 compiler_CXX \ 13616 CC_CXX \ 13617 LD_CXX \ 13618 lt_prog_compiler_wl_CXX \ 13619 lt_prog_compiler_pic_CXX \ 13620 lt_prog_compiler_static_CXX \ 13621 lt_prog_compiler_no_builtin_flag_CXX \ 13622 export_dynamic_flag_spec_CXX \ 13623 thread_safe_flag_spec_CXX \ 13624 whole_archive_flag_spec_CXX \ 13625 enable_shared_with_static_runtimes_CXX \ 13626 old_archive_cmds_CXX \ 13627 old_archive_from_new_cmds_CXX \ 13628 predep_objects_CXX \ 13629 postdep_objects_CXX \ 13630 predeps_CXX \ 13631 postdeps_CXX \ 13632 compiler_lib_search_path_CXX \ 13633 archive_cmds_CXX \ 13634 archive_expsym_cmds_CXX \ 13635 postinstall_cmds_CXX \ 13636 postuninstall_cmds_CXX \ 13637 old_archive_from_expsyms_cmds_CXX \ 13638 allow_undefined_flag_CXX \ 13639 no_undefined_flag_CXX \ 13640 export_symbols_cmds_CXX \ 13641 hardcode_libdir_flag_spec_CXX \ 13642 hardcode_libdir_flag_spec_ld_CXX \ 13643 hardcode_libdir_separator_CXX \ 13644 hardcode_automatic_CXX \ 13645 module_cmds_CXX \ 13646 module_expsym_cmds_CXX \ 13647 lt_cv_prog_compiler_c_o_CXX \ 13648 exclude_expsyms_CXX \ 13649 include_expsyms_CXX; do 13650 13651 case $var in 13652 old_archive_cmds_CXX | \ 13653 old_archive_from_new_cmds_CXX | \ 13654 archive_cmds_CXX | \ 13655 archive_expsym_cmds_CXX | \ 13656 module_cmds_CXX | \ 13657 module_expsym_cmds_CXX | \ 13658 old_archive_from_expsyms_cmds_CXX | \ 13659 export_symbols_cmds_CXX | \ 13660 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13661 postinstall_cmds | postuninstall_cmds | \ 13662 old_postinstall_cmds | old_postuninstall_cmds | \ 13663 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13664 # Double-quote double-evaled strings. 13665 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13666 ;; 13667 *) 13668 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13669 ;; 13670 esac 13671 done 13672 13673 case $lt_echo in 13674 *'\$0 --fallback-echo"') 13675 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13676 ;; 13677 esac 13678 13679cfgfile="$ofile" 13680 13681 cat <<__EOF__ >> "$cfgfile" 13682# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13683 13684# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13685 13686# Shell to use when invoking shell scripts. 13687SHELL=$lt_SHELL 13688 13689# Whether or not to build shared libraries. 13690build_libtool_libs=$enable_shared 13691 13692# Whether or not to build static libraries. 13693build_old_libs=$enable_static 13694 13695# Whether or not to add -lc for building shared libraries. 13696build_libtool_need_lc=$archive_cmds_need_lc_CXX 13697 13698# Whether or not to disallow shared libs when runtime libs are static 13699allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13700 13701# Whether or not to optimize for fast installation. 13702fast_install=$enable_fast_install 13703 13704# The host system. 13705host_alias=$host_alias 13706host=$host 13707host_os=$host_os 13708 13709# The build system. 13710build_alias=$build_alias 13711build=$build 13712build_os=$build_os 13713 13714# An echo program that does not interpret backslashes. 13715echo=$lt_echo 13716 13717# The archiver. 13718AR=$lt_AR 13719AR_FLAGS=$lt_AR_FLAGS 13720 13721# A C compiler. 13722LTCC=$lt_LTCC 13723 13724# LTCC compiler flags. 13725LTCFLAGS=$lt_LTCFLAGS 13726 13727# A language-specific compiler. 13728CC=$lt_compiler_CXX 13729 13730# Is the compiler the GNU C compiler? 13731with_gcc=$GCC_CXX 13732 13733# An ERE matcher. 13734EGREP=$lt_EGREP 13735 13736# The linker used to build libraries. 13737LD=$lt_LD_CXX 13738 13739# Whether we need hard or soft links. 13740LN_S=$lt_LN_S 13741 13742# A BSD-compatible nm program. 13743NM=$lt_NM 13744 13745# A symbol stripping program 13746STRIP=$lt_STRIP 13747 13748# Used to examine libraries when file_magic_cmd begins "file" 13749MAGIC_CMD=$MAGIC_CMD 13750 13751# Used on cygwin: DLL creation program. 13752DLLTOOL="$DLLTOOL" 13753 13754# Used on cygwin: object dumper. 13755OBJDUMP="$OBJDUMP" 13756 13757# Used on cygwin: assembler. 13758AS="$AS" 13759 13760# The name of the directory that contains temporary libtool files. 13761objdir=$objdir 13762 13763# How to create reloadable object files. 13764reload_flag=$lt_reload_flag 13765reload_cmds=$lt_reload_cmds 13766 13767# How to pass a linker flag through the compiler. 13768wl=$lt_lt_prog_compiler_wl_CXX 13769 13770# Object file suffix (normally "o"). 13771objext="$ac_objext" 13772 13773# Old archive suffix (normally "a"). 13774libext="$libext" 13775 13776# Shared library suffix (normally ".so"). 13777shrext_cmds='$shrext_cmds' 13778 13779# Executable file suffix (normally ""). 13780exeext="$exeext" 13781 13782# Additional compiler flags for building library objects. 13783pic_flag=$lt_lt_prog_compiler_pic_CXX 13784pic_mode=$pic_mode 13785 13786# What is the maximum length of a command? 13787max_cmd_len=$lt_cv_sys_max_cmd_len 13788 13789# Does compiler simultaneously support -c and -o options? 13790compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13791 13792# Must we lock files when doing compilation? 13793need_locks=$lt_need_locks 13794 13795# Do we need the lib prefix for modules? 13796need_lib_prefix=$need_lib_prefix 13797 13798# Do we need a version for libraries? 13799need_version=$need_version 13800 13801# Whether dlopen is supported. 13802dlopen_support=$enable_dlopen 13803 13804# Whether dlopen of programs is supported. 13805dlopen_self=$enable_dlopen_self 13806 13807# Whether dlopen of statically linked programs is supported. 13808dlopen_self_static=$enable_dlopen_self_static 13809 13810# Compiler flag to prevent dynamic linking. 13811link_static_flag=$lt_lt_prog_compiler_static_CXX 13812 13813# Compiler flag to turn off builtin functions. 13814no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13815 13816# Compiler flag to allow reflexive dlopens. 13817export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13818 13819# Compiler flag to generate shared objects directly from archives. 13820whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13821 13822# Compiler flag to generate thread-safe objects. 13823thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13824 13825# Library versioning type. 13826version_type=$version_type 13827 13828# Format of library name prefix. 13829libname_spec=$lt_libname_spec 13830 13831# List of archive names. First name is the real one, the rest are links. 13832# The last name is the one that the linker finds with -lNAME. 13833library_names_spec=$lt_library_names_spec 13834 13835# The coded name of the library, if different from the real name. 13836soname_spec=$lt_soname_spec 13837 13838# Commands used to build and install an old-style archive. 13839RANLIB=$lt_RANLIB 13840old_archive_cmds=$lt_old_archive_cmds_CXX 13841old_postinstall_cmds=$lt_old_postinstall_cmds 13842old_postuninstall_cmds=$lt_old_postuninstall_cmds 13843 13844# Create an old-style archive from a shared archive. 13845old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13846 13847# Create a temporary old-style archive to link instead of a shared archive. 13848old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13849 13850# Commands used to build and install a shared archive. 13851archive_cmds=$lt_archive_cmds_CXX 13852archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13853postinstall_cmds=$lt_postinstall_cmds 13854postuninstall_cmds=$lt_postuninstall_cmds 13855 13856# Commands used to build a loadable module (assumed same as above if empty) 13857module_cmds=$lt_module_cmds_CXX 13858module_expsym_cmds=$lt_module_expsym_cmds_CXX 13859 13860# Commands to strip libraries. 13861old_striplib=$lt_old_striplib 13862striplib=$lt_striplib 13863 13864# Dependencies to place before the objects being linked to create a 13865# shared library. 13866predep_objects=$lt_predep_objects_CXX 13867 13868# Dependencies to place after the objects being linked to create a 13869# shared library. 13870postdep_objects=$lt_postdep_objects_CXX 13871 13872# Dependencies to place before the objects being linked to create a 13873# shared library. 13874predeps=$lt_predeps_CXX 13875 13876# Dependencies to place after the objects being linked to create a 13877# shared library. 13878postdeps=$lt_postdeps_CXX 13879 13880# The library search path used internally by the compiler when linking 13881# a shared library. 13882compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 13883 13884# Method to check whether dependent libraries are shared objects. 13885deplibs_check_method=$lt_deplibs_check_method 13886 13887# Command to use when deplibs_check_method == file_magic. 13888file_magic_cmd=$lt_file_magic_cmd 13889 13890# Flag that allows shared libraries with undefined symbols to be built. 13891allow_undefined_flag=$lt_allow_undefined_flag_CXX 13892 13893# Flag that forces no undefined symbols. 13894no_undefined_flag=$lt_no_undefined_flag_CXX 13895 13896# Commands used to finish a libtool library installation in a directory. 13897finish_cmds=$lt_finish_cmds 13898 13899# Same as above, but a single script fragment to be evaled but not shown. 13900finish_eval=$lt_finish_eval 13901 13902# Take the output of nm and produce a listing of raw symbols and C names. 13903global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13904 13905# Transform the output of nm in a proper C declaration 13906global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13907 13908# Transform the output of nm in a C name address pair 13909global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13910 13911# This is the shared library runtime path variable. 13912runpath_var=$runpath_var 13913 13914# This is the shared library path variable. 13915shlibpath_var=$shlibpath_var 13916 13917# Is shlibpath searched before the hard-coded library search path? 13918shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13919 13920# How to hardcode a shared library path into an executable. 13921hardcode_action=$hardcode_action_CXX 13922 13923# Whether we should hardcode library paths into libraries. 13924hardcode_into_libs=$hardcode_into_libs 13925 13926# Flag to hardcode \$libdir into a binary during linking. 13927# This must work even if \$libdir does not exist. 13928hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 13929 13930# If ld is used when linking, flag to hardcode \$libdir into 13931# a binary during linking. This must work even if \$libdir does 13932# not exist. 13933hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 13934 13935# Whether we need a single -rpath flag with a separated argument. 13936hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 13937 13938# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13939# resulting binary. 13940hardcode_direct=$hardcode_direct_CXX 13941 13942# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13943# resulting binary. 13944hardcode_minus_L=$hardcode_minus_L_CXX 13945 13946# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13947# the resulting binary. 13948hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 13949 13950# Set to yes if building a shared library automatically hardcodes DIR into the library 13951# and all subsequent libraries and executables linked against it. 13952hardcode_automatic=$hardcode_automatic_CXX 13953 13954# Variables whose values should be saved in libtool wrapper scripts and 13955# restored at relink time. 13956variables_saved_for_relink="$variables_saved_for_relink" 13957 13958# Whether libtool must link a program against all its dependency libraries. 13959link_all_deplibs=$link_all_deplibs_CXX 13960 13961# Compile-time system search path for libraries 13962sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13963 13964# Run-time system search path for libraries 13965sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13966 13967# Fix the shell variable \$srcfile for the compiler. 13968fix_srcfile_path="$fix_srcfile_path_CXX" 13969 13970# Set to yes if exported symbols are required. 13971always_export_symbols=$always_export_symbols_CXX 13972 13973# The commands to list exported symbols. 13974export_symbols_cmds=$lt_export_symbols_cmds_CXX 13975 13976# The commands to extract the exported symbol list from a shared archive. 13977extract_expsyms_cmds=$lt_extract_expsyms_cmds 13978 13979# Symbols that should not be listed in the preloaded symbols. 13980exclude_expsyms=$lt_exclude_expsyms_CXX 13981 13982# Symbols that must always be exported. 13983include_expsyms=$lt_include_expsyms_CXX 13984 13985# ### END LIBTOOL TAG CONFIG: $tagname 13986 13987__EOF__ 13988 13989 13990else 13991 # If there is no Makefile yet, we rely on a make rule to execute 13992 # 'config.status --recheck' to rerun these tests and create the 13993 # libtool script then. 13994 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 13995 if test -f "$ltmain_in"; then 13996 test -f Makefile && make "$ltmain" 13997 fi 13998fi 13999 14000 14001ac_ext=c 14002ac_cpp='$CPP $CPPFLAGS' 14003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14005ac_compiler_gnu=$ac_cv_c_compiler_gnu 14006 14007CC=$lt_save_CC 14008LDCXX=$LD 14009LD=$lt_save_LD 14010GCC=$lt_save_GCC 14011with_gnu_ldcxx=$with_gnu_ld 14012with_gnu_ld=$lt_save_with_gnu_ld 14013lt_cv_path_LDCXX=$lt_cv_path_LD 14014lt_cv_path_LD=$lt_save_path_LD 14015lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 14016lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 14017 14018 else 14019 tagname="" 14020 fi 14021 ;; 14022 14023 F77) 14024 if test -n "$F77" && test "X$F77" != "Xno"; then 14025 14026 14027 14028ac_ext=f 14029ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 14030ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14031ac_compiler_gnu=$ac_cv_f77_compiler_gnu 14032 14033 14034archive_cmds_need_lc_F77=no 14035allow_undefined_flag_F77= 14036always_export_symbols_F77=no 14037archive_expsym_cmds_F77= 14038export_dynamic_flag_spec_F77= 14039hardcode_direct_F77=no 14040hardcode_libdir_flag_spec_F77= 14041hardcode_libdir_flag_spec_ld_F77= 14042hardcode_libdir_separator_F77= 14043hardcode_minus_L_F77=no 14044hardcode_automatic_F77=no 14045module_cmds_F77= 14046module_expsym_cmds_F77= 14047link_all_deplibs_F77=unknown 14048old_archive_cmds_F77=$old_archive_cmds 14049no_undefined_flag_F77= 14050whole_archive_flag_spec_F77= 14051enable_shared_with_static_runtimes_F77=no 14052 14053# Source file extension for f77 test sources. 14054ac_ext=f 14055 14056# Object file extension for compiled f77 test sources. 14057objext=o 14058objext_F77=$objext 14059 14060# Code to be used in simple compile tests 14061lt_simple_compile_test_code=" subroutine t\n return\n end\n" 14062 14063# Code to be used in simple link tests 14064lt_simple_link_test_code=" program t\n end\n" 14065 14066# ltmain only uses $CC for tagged configurations so make sure $CC is set. 14067 14068# If no C compiler was specified, use CC. 14069LTCC=${LTCC-"$CC"} 14070 14071# If no C compiler flags were specified, use CFLAGS. 14072LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14073 14074# Allow CC to be a program name with arguments. 14075compiler=$CC 14076 14077 14078# save warnings/boilerplate of simple test code 14079ac_outfile=conftest.$ac_objext 14080printf "$lt_simple_compile_test_code" >conftest.$ac_ext 14081eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14082_lt_compiler_boilerplate=`cat conftest.err` 14083$rm conftest* 14084 14085ac_outfile=conftest.$ac_objext 14086printf "$lt_simple_link_test_code" >conftest.$ac_ext 14087eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14088_lt_linker_boilerplate=`cat conftest.err` 14089$rm conftest* 14090 14091 14092# Allow CC to be a program name with arguments. 14093lt_save_CC="$CC" 14094CC=${F77-"f77"} 14095compiler=$CC 14096compiler_F77=$CC 14097for cc_temp in $compiler""; do 14098 case $cc_temp in 14099 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14100 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14101 \-*) ;; 14102 *) break;; 14103 esac 14104done 14105cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14106 14107 14108{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 14109echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 14110{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 14111echo "${ECHO_T}$can_build_shared" >&6; } 14112 14113{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 14114echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 14115test "$can_build_shared" = "no" && enable_shared=no 14116 14117# On AIX, shared libraries and static libraries use the same namespace, and 14118# are all built from PIC. 14119case $host_os in 14120aix3*) 14121 test "$enable_shared" = yes && enable_static=no 14122 if test -n "$RANLIB"; then 14123 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14124 postinstall_cmds='$RANLIB $lib' 14125 fi 14126 ;; 14127aix4* | aix5*) 14128 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 14129 test "$enable_shared" = yes && enable_static=no 14130 fi 14131 ;; 14132esac 14133{ echo "$as_me:$LINENO: result: $enable_shared" >&5 14134echo "${ECHO_T}$enable_shared" >&6; } 14135 14136{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 14137echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 14138# Make sure either enable_shared or enable_static is yes. 14139test "$enable_shared" = yes || enable_static=yes 14140{ echo "$as_me:$LINENO: result: $enable_static" >&5 14141echo "${ECHO_T}$enable_static" >&6; } 14142 14143GCC_F77="$G77" 14144LD_F77="$LD" 14145 14146lt_prog_compiler_wl_F77= 14147lt_prog_compiler_pic_F77= 14148lt_prog_compiler_static_F77= 14149 14150{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14151echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 14152 14153 if test "$GCC" = yes; then 14154 lt_prog_compiler_wl_F77='-Wl,' 14155 lt_prog_compiler_static_F77='-static' 14156 14157 case $host_os in 14158 aix*) 14159 # All AIX code is PIC. 14160 if test "$host_cpu" = ia64; then 14161 # AIX 5 now supports IA64 processor 14162 lt_prog_compiler_static_F77='-Bstatic' 14163 fi 14164 ;; 14165 14166 amigaos*) 14167 # FIXME: we need at least 68020 code to build shared libraries, but 14168 # adding the '-m68020' flag to GCC prevents building anything better, 14169 # like '-m68040'. 14170 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 14171 ;; 14172 14173 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14174 # PIC is the default for these OSes. 14175 ;; 14176 14177 mingw* | cygwin* | pw32* | os2*) 14178 # This hack is so that the source file can tell whether it is being 14179 # built for inclusion in a dll (and should export symbols for example). 14180 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14181 # (--disable-auto-import) libraries 14182 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14183 ;; 14184 14185 darwin* | rhapsody*) 14186 # PIC is the default on this platform 14187 # Common symbols not allowed in MH_DYLIB files 14188 lt_prog_compiler_pic_F77='-fno-common' 14189 ;; 14190 14191 interix3*) 14192 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14193 # Instead, we relocate shared libraries at runtime. 14194 ;; 14195 14196 msdosdjgpp*) 14197 # Just because we use GCC doesn't mean we suddenly get shared libraries 14198 # on systems that don't support them. 14199 lt_prog_compiler_can_build_shared_F77=no 14200 enable_shared=no 14201 ;; 14202 14203 sysv4*MP*) 14204 if test -d /usr/nec; then 14205 lt_prog_compiler_pic_F77=-Kconform_pic 14206 fi 14207 ;; 14208 14209 hpux*) 14210 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14211 # not for PA HP-UX. 14212 case $host_cpu in 14213 hppa*64*|ia64*) 14214 # +Z the default 14215 ;; 14216 *) 14217 lt_prog_compiler_pic_F77='-fPIC' 14218 ;; 14219 esac 14220 ;; 14221 14222 *) 14223 lt_prog_compiler_pic_F77='-fPIC' 14224 ;; 14225 esac 14226 else 14227 # PORTME Check for flag to pass linker flags through the system compiler. 14228 case $host_os in 14229 aix*) 14230 lt_prog_compiler_wl_F77='-Wl,' 14231 if test "$host_cpu" = ia64; then 14232 # AIX 5 now supports IA64 processor 14233 lt_prog_compiler_static_F77='-Bstatic' 14234 else 14235 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 14236 fi 14237 ;; 14238 darwin*) 14239 # PIC is the default on this platform 14240 # Common symbols not allowed in MH_DYLIB files 14241 case $cc_basename in 14242 xlc*) 14243 lt_prog_compiler_pic_F77='-qnocommon' 14244 lt_prog_compiler_wl_F77='-Wl,' 14245 ;; 14246 esac 14247 ;; 14248 14249 mingw* | cygwin* | pw32* | os2*) 14250 # This hack is so that the source file can tell whether it is being 14251 # built for inclusion in a dll (and should export symbols for example). 14252 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14253 ;; 14254 14255 hpux9* | hpux10* | hpux11*) 14256 lt_prog_compiler_wl_F77='-Wl,' 14257 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14258 # not for PA HP-UX. 14259 case $host_cpu in 14260 hppa*64*|ia64*) 14261 # +Z the default 14262 ;; 14263 *) 14264 lt_prog_compiler_pic_F77='+Z' 14265 ;; 14266 esac 14267 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14268 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 14269 ;; 14270 14271 irix5* | irix6* | nonstopux*) 14272 lt_prog_compiler_wl_F77='-Wl,' 14273 # PIC (with -KPIC) is the default. 14274 lt_prog_compiler_static_F77='-non_shared' 14275 ;; 14276 14277 newsos6) 14278 lt_prog_compiler_pic_F77='-KPIC' 14279 lt_prog_compiler_static_F77='-Bstatic' 14280 ;; 14281 14282 linux*) 14283 case $cc_basename in 14284 icc* | ecc*) 14285 lt_prog_compiler_wl_F77='-Wl,' 14286 lt_prog_compiler_pic_F77='-KPIC' 14287 lt_prog_compiler_static_F77='-static' 14288 ;; 14289 pgcc* | pgf77* | pgf90* | pgf95*) 14290 # Portland Group compilers (*not* the Pentium gcc compiler, 14291 # which looks to be a dead project) 14292 lt_prog_compiler_wl_F77='-Wl,' 14293 lt_prog_compiler_pic_F77='-fpic' 14294 lt_prog_compiler_static_F77='-Bstatic' 14295 ;; 14296 ccc*) 14297 lt_prog_compiler_wl_F77='-Wl,' 14298 # All Alpha code is PIC. 14299 lt_prog_compiler_static_F77='-non_shared' 14300 ;; 14301 *) 14302 case `$CC -V 2>&1 | sed 5q` in 14303 *Sun\ C*) 14304 # Sun C 5.9 14305 lt_prog_compiler_pic_F77='-KPIC' 14306 lt_prog_compiler_static_F77='-Bstatic' 14307 lt_prog_compiler_wl_F77='-Wl,' 14308 ;; 14309 *Sun\ F*) 14310 # Sun Fortran 8.3 passes all unrecognized flags to the linker 14311 lt_prog_compiler_pic_F77='-KPIC' 14312 lt_prog_compiler_static_F77='-Bstatic' 14313 lt_prog_compiler_wl_F77='' 14314 ;; 14315 esac 14316 ;; 14317 esac 14318 ;; 14319 14320 osf3* | osf4* | osf5*) 14321 lt_prog_compiler_wl_F77='-Wl,' 14322 # All OSF/1 code is PIC. 14323 lt_prog_compiler_static_F77='-non_shared' 14324 ;; 14325 14326 rdos*) 14327 lt_prog_compiler_static_F77='-non_shared' 14328 ;; 14329 14330 solaris*) 14331 lt_prog_compiler_pic_F77='-KPIC' 14332 lt_prog_compiler_static_F77='-Bstatic' 14333 case $cc_basename in 14334 f77* | f90* | f95*) 14335 lt_prog_compiler_wl_F77='-Qoption ld ';; 14336 *) 14337 lt_prog_compiler_wl_F77='-Wl,';; 14338 esac 14339 ;; 14340 14341 sunos4*) 14342 lt_prog_compiler_wl_F77='-Qoption ld ' 14343 lt_prog_compiler_pic_F77='-PIC' 14344 lt_prog_compiler_static_F77='-Bstatic' 14345 ;; 14346 14347 sysv4 | sysv4.2uw2* | sysv4.3*) 14348 lt_prog_compiler_wl_F77='-Wl,' 14349 lt_prog_compiler_pic_F77='-KPIC' 14350 lt_prog_compiler_static_F77='-Bstatic' 14351 ;; 14352 14353 sysv4*MP*) 14354 if test -d /usr/nec ;then 14355 lt_prog_compiler_pic_F77='-Kconform_pic' 14356 lt_prog_compiler_static_F77='-Bstatic' 14357 fi 14358 ;; 14359 14360 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14361 lt_prog_compiler_wl_F77='-Wl,' 14362 lt_prog_compiler_pic_F77='-KPIC' 14363 lt_prog_compiler_static_F77='-Bstatic' 14364 ;; 14365 14366 unicos*) 14367 lt_prog_compiler_wl_F77='-Wl,' 14368 lt_prog_compiler_can_build_shared_F77=no 14369 ;; 14370 14371 uts4*) 14372 lt_prog_compiler_pic_F77='-pic' 14373 lt_prog_compiler_static_F77='-Bstatic' 14374 ;; 14375 14376 *) 14377 lt_prog_compiler_can_build_shared_F77=no 14378 ;; 14379 esac 14380 fi 14381 14382{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 14383echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } 14384 14385# 14386# Check to make sure the PIC flag actually works. 14387# 14388if test -n "$lt_prog_compiler_pic_F77"; then 14389 14390{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 14391echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } 14392if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 14393 echo $ECHO_N "(cached) $ECHO_C" >&6 14394else 14395 lt_prog_compiler_pic_works_F77=no 14396 ac_outfile=conftest.$ac_objext 14397 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14398 lt_compiler_flag="$lt_prog_compiler_pic_F77" 14399 # Insert the option either (1) after the last *FLAGS variable, or 14400 # (2) before a word containing "conftest.", or (3) at the end. 14401 # Note that $ac_compile itself does not contain backslashes and begins 14402 # with a dollar sign (not a hyphen), so the echo should work correctly. 14403 # The option is referenced via a variable to avoid confusing sed. 14404 lt_compile=`echo "$ac_compile" | $SED \ 14405 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14406 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14407 -e 's:$: $lt_compiler_flag:'` 14408 (eval echo "\"\$as_me:14408: $lt_compile\"" >&5) 14409 (eval "$lt_compile" 2>conftest.err) 14410 ac_status=$? 14411 cat conftest.err >&5 14412 echo "$as_me:14412: \$? = $ac_status" >&5 14413 if (exit $ac_status) && test -s "$ac_outfile"; then 14414 # The compiler can only warn and ignore the option if not recognized 14415 # So say no if there are warnings other than the usual output. 14416 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14417 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14418 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14419 lt_prog_compiler_pic_works_F77=yes 14420 fi 14421 fi 14422 $rm conftest* 14423 14424fi 14425{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 14426echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } 14427 14428if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 14429 case $lt_prog_compiler_pic_F77 in 14430 "" | " "*) ;; 14431 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 14432 esac 14433else 14434 lt_prog_compiler_pic_F77= 14435 lt_prog_compiler_can_build_shared_F77=no 14436fi 14437 14438fi 14439case $host_os in 14440 # For platforms which do not support PIC, -DPIC is meaningless: 14441 *djgpp*) 14442 lt_prog_compiler_pic_F77= 14443 ;; 14444 *) 14445 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 14446 ;; 14447esac 14448 14449# 14450# Check to make sure the static flag actually works. 14451# 14452wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 14453{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14454echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 14455if test "${lt_prog_compiler_static_works_F77+set}" = set; then 14456 echo $ECHO_N "(cached) $ECHO_C" >&6 14457else 14458 lt_prog_compiler_static_works_F77=no 14459 save_LDFLAGS="$LDFLAGS" 14460 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14461 printf "$lt_simple_link_test_code" > conftest.$ac_ext 14462 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14463 # The linker can only warn and ignore the option if not recognized 14464 # So say no if there are warnings 14465 if test -s conftest.err; then 14466 # Append any errors to the config.log. 14467 cat conftest.err 1>&5 14468 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14469 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14470 if diff conftest.exp conftest.er2 >/dev/null; then 14471 lt_prog_compiler_static_works_F77=yes 14472 fi 14473 else 14474 lt_prog_compiler_static_works_F77=yes 14475 fi 14476 fi 14477 $rm conftest* 14478 LDFLAGS="$save_LDFLAGS" 14479 14480fi 14481{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 14482echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } 14483 14484if test x"$lt_prog_compiler_static_works_F77" = xyes; then 14485 : 14486else 14487 lt_prog_compiler_static_F77= 14488fi 14489 14490 14491{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14492echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 14493if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 14494 echo $ECHO_N "(cached) $ECHO_C" >&6 14495else 14496 lt_cv_prog_compiler_c_o_F77=no 14497 $rm -r conftest 2>/dev/null 14498 mkdir conftest 14499 cd conftest 14500 mkdir out 14501 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14502 14503 lt_compiler_flag="-o out/conftest2.$ac_objext" 14504 # Insert the option either (1) after the last *FLAGS variable, or 14505 # (2) before a word containing "conftest.", or (3) at the end. 14506 # Note that $ac_compile itself does not contain backslashes and begins 14507 # with a dollar sign (not a hyphen), so the echo should work correctly. 14508 lt_compile=`echo "$ac_compile" | $SED \ 14509 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14510 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14511 -e 's:$: $lt_compiler_flag:'` 14512 (eval echo "\"\$as_me:14512: $lt_compile\"" >&5) 14513 (eval "$lt_compile" 2>out/conftest.err) 14514 ac_status=$? 14515 cat out/conftest.err >&5 14516 echo "$as_me:14516: \$? = $ac_status" >&5 14517 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14518 then 14519 # The compiler can only warn and ignore the option if not recognized 14520 # So say no if there are warnings 14521 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14522 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14523 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14524 lt_cv_prog_compiler_c_o_F77=yes 14525 fi 14526 fi 14527 chmod u+w . 2>&5 14528 $rm conftest* 14529 # SGI C++ compiler will create directory out/ii_files/ for 14530 # template instantiation 14531 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14532 $rm out/* && rmdir out 14533 cd .. 14534 rmdir conftest 14535 $rm conftest* 14536 14537fi 14538{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14539echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } 14540 14541 14542hard_links="nottested" 14543if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14544 # do not overwrite the value of need_locks provided by the user 14545 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14546echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 14547 hard_links=yes 14548 $rm conftest* 14549 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14550 touch conftest.a 14551 ln conftest.a conftest.b 2>&5 || hard_links=no 14552 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14553 { echo "$as_me:$LINENO: result: $hard_links" >&5 14554echo "${ECHO_T}$hard_links" >&6; } 14555 if test "$hard_links" = no; then 14556 { echo "$as_me:$LINENO: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 14557echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 14558 need_locks=warn 14559 fi 14560else 14561 need_locks=no 14562fi 14563 14564{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14565echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 14566 14567 runpath_var= 14568 allow_undefined_flag_F77= 14569 enable_shared_with_static_runtimes_F77=no 14570 archive_cmds_F77= 14571 archive_expsym_cmds_F77= 14572 old_archive_From_new_cmds_F77= 14573 old_archive_from_expsyms_cmds_F77= 14574 export_dynamic_flag_spec_F77= 14575 whole_archive_flag_spec_F77= 14576 thread_safe_flag_spec_F77= 14577 hardcode_libdir_flag_spec_F77= 14578 hardcode_libdir_flag_spec_ld_F77= 14579 hardcode_libdir_separator_F77= 14580 hardcode_direct_F77=no 14581 hardcode_minus_L_F77=no 14582 hardcode_shlibpath_var_F77=unsupported 14583 link_all_deplibs_F77=unknown 14584 hardcode_automatic_F77=no 14585 module_cmds_F77= 14586 module_expsym_cmds_F77= 14587 always_export_symbols_F77=no 14588 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14589 # include_expsyms should be a list of space-separated symbols to be *always* 14590 # included in the symbol list 14591 include_expsyms_F77= 14592 # exclude_expsyms can be an extended regexp of symbols to exclude 14593 # it will be wrapped by ' (' and ')$', so one must not match beginning or 14594 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 14595 # as well as any symbol that contains 'd'. 14596 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 14597 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14598 # platforms (ab)use it in PIC code, but their linkers get confused if 14599 # the symbol is explicitly referenced. Since portable code cannot 14600 # rely on this symbol name, it's probably fine to never include it in 14601 # preloaded symbol tables. 14602 extract_expsyms_cmds= 14603 # Just being paranoid about ensuring that cc_basename is set. 14604 for cc_temp in $compiler""; do 14605 case $cc_temp in 14606 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14607 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14608 \-*) ;; 14609 *) break;; 14610 esac 14611done 14612cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14613 14614 case $host_os in 14615 cygwin* | mingw* | pw32*) 14616 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14617 # When not using gcc, we currently assume that we are using 14618 # Microsoft Visual C++. 14619 if test "$GCC" != yes; then 14620 with_gnu_ld=no 14621 fi 14622 ;; 14623 interix*) 14624 # we just hope/assume this is gcc and not c89 (= MSVC++) 14625 with_gnu_ld=yes 14626 ;; 14627 mirbsd*) 14628 with_gnu_ld=yes 14629 ;; 14630 openbsd*) 14631 with_gnu_ld=no 14632 ;; 14633 esac 14634 14635 ld_shlibs_F77=yes 14636 if test "$with_gnu_ld" = yes; then 14637 # If archive_cmds runs LD, not CC, wlarc should be empty 14638 wlarc='${wl}' 14639 14640 # Set some defaults for GNU ld with shared library support. These 14641 # are reset later if shared libraries are not supported. Putting them 14642 # here allows them to be overridden if necessary. 14643 runpath_var=LD_RUN_PATH 14644 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14645 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14646 # ancient GNU ld didn't support --whole-archive et. al. 14647 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14648 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14649 else 14650 whole_archive_flag_spec_F77= 14651 fi 14652 supports_anon_versioning=no 14653 case `$LD -v 2>/dev/null` in 14654 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14655 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14656 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14657 *\ 2.11.*) ;; # other 2.11 versions 14658 *) supports_anon_versioning=yes ;; 14659 esac 14660 14661 # See if GNU ld supports shared libraries. 14662 case $host_os in 14663 aix3* | aix4* | aix5*) 14664 # On AIX/PPC, the GNU linker is very broken 14665 if test "$host_cpu" != ia64; then 14666 ld_shlibs_F77=no 14667 cat <<EOF 1>&2 14668 14669*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14670*** to be unable to reliably create shared libraries on AIX. 14671*** Therefore, libtool is disabling shared libraries support. If you 14672*** really care for shared libraries, you may want to modify your PATH 14673*** so that a non-GNU linker is found, and then restart. 14674 14675EOF 14676 fi 14677 ;; 14678 14679 amigaos*) 14680 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)' 14681 hardcode_libdir_flag_spec_F77='-L$libdir' 14682 hardcode_minus_L_F77=yes 14683 14684 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14685 # that the semantics of dynamic libraries on AmigaOS, at least up 14686 # to version 4, is to share data among multiple programs linked 14687 # with the same dynamic library. Since this doesn't match the 14688 # behavior of shared libraries on other platforms, we can't use 14689 # them. 14690 ld_shlibs_F77=no 14691 ;; 14692 14693 beos*) 14694 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14695 allow_undefined_flag_F77=unsupported 14696 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14697 # support --undefined. This deserves some investigation. FIXME 14698 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14699 else 14700 ld_shlibs_F77=no 14701 fi 14702 ;; 14703 14704 cygwin* | mingw* | pw32*) 14705 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14706 # as there is no search path for DLLs. 14707 hardcode_libdir_flag_spec_F77='-L$libdir' 14708 allow_undefined_flag_F77=unsupported 14709 always_export_symbols_F77=no 14710 enable_shared_with_static_runtimes_F77=yes 14711 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 14712 14713 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14714 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14715 # If the export-symbols file already is a .def file (1st line 14716 # is EXPORTS), use it as is; otherwise, prepend... 14717 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14718 cp $export_symbols $output_objdir/$soname.def; 14719 else 14720 echo EXPORTS > $output_objdir/$soname.def; 14721 cat $export_symbols >> $output_objdir/$soname.def; 14722 fi~ 14723 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14724 else 14725 ld_shlibs_F77=no 14726 fi 14727 ;; 14728 14729 interix3*) 14730 hardcode_direct_F77=no 14731 hardcode_shlibpath_var_F77=no 14732 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14733 export_dynamic_flag_spec_F77='${wl}-E' 14734 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14735 # Instead, shared libraries are loaded at an image base (0x10000000 by 14736 # default) and relocated if they conflict, which is a slow very memory 14737 # consuming and fragmenting process. To avoid this, we pick a random, 14738 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14739 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14740 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' 14741 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' 14742 ;; 14743 14744 linux*) 14745 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14746 tmp_addflag= 14747 case $cc_basename,$host_cpu in 14748 pgcc*) # Portland Group C compiler 14749 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' 14750 tmp_addflag=' $pic_flag' 14751 ;; 14752 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14753 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' 14754 tmp_addflag=' $pic_flag -Mnomain' ;; 14755 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14756 tmp_addflag=' -i_dynamic' ;; 14757 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14758 tmp_addflag=' -i_dynamic -nofor_main' ;; 14759 ifc* | ifort*) # Intel Fortran compiler 14760 tmp_addflag=' -nofor_main' ;; 14761 esac 14762 case `$CC -V 2>&1 | sed 5q` in 14763 *Sun\ C*) # Sun C 5.9 14764 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' 14765 tmp_sharedflag='-G' ;; 14766 *Sun\ F*) # Sun Fortran 8.3 14767 tmp_sharedflag='-G' ;; 14768 *) 14769 tmp_sharedflag='-shared' ;; 14770 esac 14771 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14772 14773 if test $supports_anon_versioning = yes; then 14774 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14775 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14776 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14777 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14778 fi 14779 else 14780 ld_shlibs_F77=no 14781 fi 14782 ;; 14783 14784 mirbsd*) 14785 hardcode_direct_F77=yes 14786 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags -o $lib' 14787 archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 14788 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14789 export_dynamic_flag_spec_F77='${wl}-E' 14790 ;; 14791 14792 netbsd*) 14793 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14794 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14795 wlarc= 14796 else 14797 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14798 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14799 fi 14800 ;; 14801 14802 solaris*) 14803 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14804 ld_shlibs_F77=no 14805 cat <<EOF 1>&2 14806 14807*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14808*** create shared libraries on Solaris systems. Therefore, libtool 14809*** is disabling shared libraries support. We urge you to upgrade GNU 14810*** binutils to release 2.9.1 or newer. Another option is to modify 14811*** your PATH or compiler configuration so that the native linker is 14812*** used, and then restart. 14813 14814EOF 14815 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14816 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14817 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14818 else 14819 ld_shlibs_F77=no 14820 fi 14821 ;; 14822 14823 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14824 case `$LD -v 2>&1` in 14825 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14826 ld_shlibs_F77=no 14827 cat <<_LT_EOF 1>&2 14828 14829*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 14830*** reliably create shared libraries on SCO systems. Therefore, libtool 14831*** is disabling shared libraries support. We urge you to upgrade GNU 14832*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14833*** your PATH or compiler configuration so that the native linker is 14834*** used, and then restart. 14835 14836_LT_EOF 14837 ;; 14838 *) 14839 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14840 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 14841 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 14842 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 14843 else 14844 ld_shlibs_F77=no 14845 fi 14846 ;; 14847 esac 14848 ;; 14849 14850 sunos4*) 14851 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14852 wlarc= 14853 hardcode_direct_F77=yes 14854 hardcode_shlibpath_var_F77=no 14855 ;; 14856 14857 *) 14858 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14859 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14860 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14861 else 14862 ld_shlibs_F77=no 14863 fi 14864 ;; 14865 esac 14866 14867 if test "$ld_shlibs_F77" = no; then 14868 runpath_var= 14869 hardcode_libdir_flag_spec_F77= 14870 export_dynamic_flag_spec_F77= 14871 whole_archive_flag_spec_F77= 14872 fi 14873 else 14874 # PORTME fill in a description of your system's linker (not GNU ld) 14875 case $host_os in 14876 aix3*) 14877 allow_undefined_flag_F77=unsupported 14878 always_export_symbols_F77=yes 14879 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' 14880 # Note: this linker hardcodes the directories in LIBPATH if there 14881 # are no directories specified by -L. 14882 hardcode_minus_L_F77=yes 14883 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 14884 # Neither direct hardcoding nor static linking is supported with a 14885 # broken collect2. 14886 hardcode_direct_F77=unsupported 14887 fi 14888 ;; 14889 14890 aix4* | aix5*) 14891 if test "$host_cpu" = ia64; then 14892 # On IA64, the linker does run time linking by default, so we don't 14893 # have to do anything special. 14894 aix_use_runtimelinking=no 14895 exp_sym_flag='-Bexport' 14896 no_entry_flag="" 14897 else 14898 # If we're using GNU nm, then we don't want the "-C" option. 14899 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14900 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14901 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' 14902 else 14903 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' 14904 fi 14905 aix_use_runtimelinking=no 14906 14907 # Test if we are trying to use run time linking or normal 14908 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14909 # need to do runtime linking. 14910 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 14911 for ld_flag in $LDFLAGS; do 14912 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14913 aix_use_runtimelinking=yes 14914 break 14915 fi 14916 done 14917 ;; 14918 esac 14919 14920 exp_sym_flag='-bexport' 14921 no_entry_flag='-bnoentry' 14922 fi 14923 14924 # When large executables or shared objects are built, AIX ld can 14925 # have problems creating the table of contents. If linking a library 14926 # or program results in "error TOC overflow" add -mminimal-toc to 14927 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14928 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14929 14930 archive_cmds_F77='' 14931 hardcode_direct_F77=yes 14932 hardcode_libdir_separator_F77=':' 14933 link_all_deplibs_F77=yes 14934 14935 if test "$GCC" = yes; then 14936 case $host_os in aix4.[012]|aix4.[012].*) 14937 # We only want to do this on AIX 4.2 and lower, the check 14938 # below for broken collect2 doesn't work under 4.3+ 14939 collect2name=`${CC} -print-prog-name=collect2` 14940 if test -f "$collect2name" && \ 14941 strings "$collect2name" | grep resolve_lib_name >/dev/null 14942 then 14943 # We have reworked collect2 14944 : 14945 else 14946 # We have old collect2 14947 hardcode_direct_F77=unsupported 14948 # It fails to find uninstalled libraries when the uninstalled 14949 # path is not listed in the libpath. Setting hardcode_minus_L 14950 # to unsupported forces relinking 14951 hardcode_minus_L_F77=yes 14952 hardcode_libdir_flag_spec_F77='-L$libdir' 14953 hardcode_libdir_separator_F77= 14954 fi 14955 ;; 14956 esac 14957 shared_flag='-shared' 14958 if test "$aix_use_runtimelinking" = yes; then 14959 shared_flag="$shared_flag "'${wl}-G' 14960 fi 14961 else 14962 # not using gcc 14963 if test "$host_cpu" = ia64; then 14964 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14965 # chokes on -Wl,-G. The following line is correct: 14966 shared_flag='-G' 14967 else 14968 if test "$aix_use_runtimelinking" = yes; then 14969 shared_flag='${wl}-G' 14970 else 14971 shared_flag='${wl}-bM:SRE' 14972 fi 14973 fi 14974 fi 14975 14976 # It seems that -bexpall does not export symbols beginning with 14977 # underscore (_), so it is better to generate a list of symbols to export. 14978 always_export_symbols_F77=yes 14979 if test "$aix_use_runtimelinking" = yes; then 14980 # Warning - without using the other runtime loading flags (-brtl), 14981 # -berok will link without error, but may produce a broken library. 14982 allow_undefined_flag_F77='-berok' 14983 # Determine the default libpath from the value encoded in an empty executable. 14984 aix_libpath="/usr/lib:/lib" 14985 14986 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14987 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" 14988 else 14989 if test "$host_cpu" = ia64; then 14990 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 14991 allow_undefined_flag_F77="-z nodefs" 14992 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" 14993 else 14994 # Determine the default libpath from the value encoded in an empty executable. 14995 aix_libpath="/usr/lib:/lib" 14996 14997 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14998 # Warning - without using the other run time loading flags, 14999 # -berok will link without error, but may produce a broken library. 15000 no_undefined_flag_F77=' ${wl}-bernotok' 15001 allow_undefined_flag_F77=' ${wl}-berok' 15002 # Exported symbols can be pulled into shared objects from archives 15003 whole_archive_flag_spec_F77='$convenience' 15004 archive_cmds_need_lc_F77=yes 15005 # This is similar to how AIX traditionally builds its shared libraries. 15006 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' 15007 fi 15008 fi 15009 ;; 15010 15011 amigaos*) 15012 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)' 15013 hardcode_libdir_flag_spec_F77='-L$libdir' 15014 hardcode_minus_L_F77=yes 15015 # see comment about different semantics on the GNU ld section 15016 ld_shlibs_F77=no 15017 ;; 15018 15019 bsdi[45]*) 15020 export_dynamic_flag_spec_F77=-rdynamic 15021 ;; 15022 15023 cygwin* | mingw* | pw32*) 15024 # When not using gcc, we currently assume that we are using 15025 # Microsoft Visual C++. 15026 # hardcode_libdir_flag_spec is actually meaningless, as there is 15027 # no search path for DLLs. 15028 hardcode_libdir_flag_spec_F77=' ' 15029 allow_undefined_flag_F77=unsupported 15030 # Tell ltmain to make .lib files, not .a files. 15031 libext=lib 15032 # Tell ltmain to make .dll files, not .so files. 15033 shrext_cmds=".dll" 15034 # FIXME: Setting linknames here is a bad hack. 15035 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 15036 # The linker will automatically build a .lib file if we build a DLL. 15037 old_archive_From_new_cmds_F77='true' 15038 # FIXME: Should let the user specify the lib program. 15039 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 15040 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 15041 enable_shared_with_static_runtimes_F77=yes 15042 ;; 15043 15044 darwin* | rhapsody*) 15045 case $host_os in 15046 rhapsody* | darwin1.[012]) 15047 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 15048 ;; 15049 *) # Darwin 1.3 on 15050 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 15051 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15052 else 15053 case ${MACOSX_DEPLOYMENT_TARGET} in 15054 10.[012]) 15055 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15056 ;; 15057 10.*) 15058 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 15059 ;; 15060 esac 15061 fi 15062 ;; 15063 esac 15064 archive_cmds_need_lc_F77=no 15065 hardcode_direct_F77=no 15066 hardcode_automatic_F77=yes 15067 hardcode_shlibpath_var_F77=unsupported 15068 whole_archive_flag_spec_F77='' 15069 link_all_deplibs_F77=yes 15070 if test "$GCC" = yes ; then 15071 output_verbose_link_cmd='echo' 15072 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 15073 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15074 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15075 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}' 15076 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}' 15077 else 15078 case $cc_basename in 15079 xlc*) 15080 output_verbose_link_cmd='echo' 15081 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 15082 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15083 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15084 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}' 15085 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}' 15086 ;; 15087 *) 15088 ld_shlibs_F77=no 15089 ;; 15090 esac 15091 fi 15092 ;; 15093 15094 dgux*) 15095 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15096 hardcode_libdir_flag_spec_F77='-L$libdir' 15097 hardcode_shlibpath_var_F77=no 15098 ;; 15099 15100 freebsd1*) 15101 ld_shlibs_F77=no 15102 ;; 15103 15104 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15105 # support. Future versions do this automatically, but an explicit c++rt0.o 15106 # does not break anything, and helps significantly (at the cost of a little 15107 # extra space). 15108 freebsd2.2*) 15109 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15110 hardcode_libdir_flag_spec_F77='-R$libdir' 15111 hardcode_direct_F77=yes 15112 hardcode_shlibpath_var_F77=no 15113 ;; 15114 15115 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15116 freebsd2*) 15117 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15118 hardcode_direct_F77=yes 15119 hardcode_minus_L_F77=yes 15120 hardcode_shlibpath_var_F77=no 15121 ;; 15122 15123 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15124 freebsd* | kfreebsd*-gnu | dragonfly*) 15125 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 15126 hardcode_libdir_flag_spec_F77='-R$libdir' 15127 hardcode_direct_F77=yes 15128 hardcode_shlibpath_var_F77=no 15129 ;; 15130 15131 hpux9*) 15132 if test "$GCC" = yes; then 15133 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' 15134 else 15135 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' 15136 fi 15137 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15138 hardcode_libdir_separator_F77=: 15139 hardcode_direct_F77=yes 15140 15141 # hardcode_minus_L: Not really in the search PATH, 15142 # but as the default location of the library. 15143 hardcode_minus_L_F77=yes 15144 export_dynamic_flag_spec_F77='${wl}-E' 15145 ;; 15146 15147 hpux10*) 15148 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15149 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15150 else 15151 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15152 fi 15153 if test "$with_gnu_ld" = no; then 15154 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15155 hardcode_libdir_separator_F77=: 15156 15157 hardcode_direct_F77=yes 15158 export_dynamic_flag_spec_F77='${wl}-E' 15159 15160 # hardcode_minus_L: Not really in the search PATH, 15161 # but as the default location of the library. 15162 hardcode_minus_L_F77=yes 15163 fi 15164 ;; 15165 15166 hpux11*) 15167 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15168 case $host_cpu in 15169 hppa*64*) 15170 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15171 ;; 15172 ia64*) 15173 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15174 ;; 15175 *) 15176 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15177 ;; 15178 esac 15179 else 15180 case $host_cpu in 15181 hppa*64*) 15182 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15183 ;; 15184 ia64*) 15185 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15186 ;; 15187 *) 15188 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15189 ;; 15190 esac 15191 fi 15192 if test "$with_gnu_ld" = no; then 15193 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15194 hardcode_libdir_separator_F77=: 15195 15196 case $host_cpu in 15197 hppa*64*|ia64*) 15198 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 15199 hardcode_direct_F77=no 15200 hardcode_shlibpath_var_F77=no 15201 ;; 15202 *) 15203 hardcode_direct_F77=yes 15204 export_dynamic_flag_spec_F77='${wl}-E' 15205 15206 # hardcode_minus_L: Not really in the search PATH, 15207 # but as the default location of the library. 15208 hardcode_minus_L_F77=yes 15209 ;; 15210 esac 15211 fi 15212 ;; 15213 15214 irix5* | irix6* | nonstopux*) 15215 if test "$GCC" = yes; then 15216 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' 15217 else 15218 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' 15219 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 15220 fi 15221 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15222 hardcode_libdir_separator_F77=: 15223 link_all_deplibs_F77=yes 15224 ;; 15225 15226 netbsd*) 15227 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15228 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15229 else 15230 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15231 fi 15232 hardcode_libdir_flag_spec_F77='-R$libdir' 15233 hardcode_direct_F77=yes 15234 hardcode_shlibpath_var_F77=no 15235 ;; 15236 15237 newsos6) 15238 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15239 hardcode_direct_F77=yes 15240 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15241 hardcode_libdir_separator_F77=: 15242 hardcode_shlibpath_var_F77=no 15243 ;; 15244 15245 openbsd*) 15246 hardcode_direct_F77=yes 15247 hardcode_shlibpath_var_F77=no 15248 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15249 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags -o $lib' 15250 archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 15251 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15252 export_dynamic_flag_spec_F77='${wl}-E' 15253 else 15254 case $host_os in 15255 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15256 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15257 hardcode_libdir_flag_spec_F77='-R$libdir' 15258 ;; 15259 *) 15260 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15261 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15262 ;; 15263 esac 15264 fi 15265 ;; 15266 15267 os2*) 15268 hardcode_libdir_flag_spec_F77='-L$libdir' 15269 hardcode_minus_L_F77=yes 15270 allow_undefined_flag_F77=unsupported 15271 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' 15272 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15273 ;; 15274 15275 osf3*) 15276 if test "$GCC" = yes; then 15277 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15278 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' 15279 else 15280 allow_undefined_flag_F77=' -expect_unresolved \*' 15281 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' 15282 fi 15283 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15284 hardcode_libdir_separator_F77=: 15285 ;; 15286 15287 osf4* | osf5*) # as osf3* with the addition of -msym flag 15288 if test "$GCC" = yes; then 15289 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15290 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' 15291 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15292 else 15293 allow_undefined_flag_F77=' -expect_unresolved \*' 15294 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' 15295 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~ 15296 $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' 15297 15298 # Both c and cxx compiler support -rpath directly 15299 hardcode_libdir_flag_spec_F77='-rpath $libdir' 15300 fi 15301 hardcode_libdir_separator_F77=: 15302 ;; 15303 15304 solaris*) 15305 no_undefined_flag_F77=' -z text' 15306 if test "$GCC" = yes; then 15307 wlarc='${wl}' 15308 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15309 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15310 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15311 else 15312 wlarc='' 15313 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15314 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15315 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15316 fi 15317 hardcode_libdir_flag_spec_F77='-R$libdir' 15318 hardcode_shlibpath_var_F77=no 15319 case $host_os in 15320 solaris2.[0-5] | solaris2.[0-5].*) ;; 15321 *) 15322 # The compiler driver will combine and reorder linker options, 15323 # but understands `-z linker_flag'. GCC discards it without `$wl', 15324 # but is careful enough not to reorder. 15325 # Supported since Solaris 2.6 (maybe 2.5.1?) 15326 if test "$GCC" = yes; then 15327 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 15328 else 15329 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' 15330 fi 15331 ;; 15332 esac 15333 link_all_deplibs_F77=yes 15334 ;; 15335 15336 sunos4*) 15337 if test "x$host_vendor" = xsequent; then 15338 # Use $CC to link under sequent, because it throws in some extra .o 15339 # files that make .init and .fini sections work. 15340 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15341 else 15342 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15343 fi 15344 hardcode_libdir_flag_spec_F77='-L$libdir' 15345 hardcode_direct_F77=yes 15346 hardcode_minus_L_F77=yes 15347 hardcode_shlibpath_var_F77=no 15348 ;; 15349 15350 sysv4) 15351 case $host_vendor in 15352 sni) 15353 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15354 hardcode_direct_F77=yes # is this really true??? 15355 ;; 15356 siemens) 15357 ## LD is ld it makes a PLAMLIB 15358 ## CC just makes a GrossModule. 15359 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15360 reload_cmds_F77='$CC -r -o $output$reload_objs' 15361 hardcode_direct_F77=no 15362 ;; 15363 motorola) 15364 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15365 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 15366 ;; 15367 esac 15368 runpath_var='LD_RUN_PATH' 15369 hardcode_shlibpath_var_F77=no 15370 ;; 15371 15372 sysv4.3*) 15373 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15374 hardcode_shlibpath_var_F77=no 15375 export_dynamic_flag_spec_F77='-Bexport' 15376 ;; 15377 15378 sysv4*MP*) 15379 if test -d /usr/nec; then 15380 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15381 hardcode_shlibpath_var_F77=no 15382 runpath_var=LD_RUN_PATH 15383 hardcode_runpath_var=yes 15384 ld_shlibs_F77=yes 15385 fi 15386 ;; 15387 15388 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15389 no_undefined_flag_F77='${wl}-z,text' 15390 archive_cmds_need_lc_F77=no 15391 hardcode_shlibpath_var_F77=no 15392 runpath_var='LD_RUN_PATH' 15393 15394 if test "$GCC" = yes; then 15395 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15396 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15397 else 15398 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15399 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15400 fi 15401 ;; 15402 15403 sysv5* | sco3.2v5* | sco5v6*) 15404 # Note: We can NOT use -z defs as we might desire, because we do not 15405 # link with -lc, and that would cause any symbols used from libc to 15406 # always be unresolved, which means just about no library would 15407 # ever link correctly. If we're not using GNU ld we use -z text 15408 # though, which does catch some bad symbols but isn't as heavy-handed 15409 # as -z defs. 15410 no_undefined_flag_F77='${wl}-z,text' 15411 allow_undefined_flag_F77='${wl}-z,nodefs' 15412 archive_cmds_need_lc_F77=no 15413 hardcode_shlibpath_var_F77=no 15414 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 15415 hardcode_libdir_separator_F77=':' 15416 link_all_deplibs_F77=yes 15417 export_dynamic_flag_spec_F77='${wl}-Bexport' 15418 runpath_var='LD_RUN_PATH' 15419 15420 if test "$GCC" = yes; then 15421 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15422 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15423 else 15424 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15425 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15426 fi 15427 ;; 15428 15429 uts4*) 15430 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15431 hardcode_libdir_flag_spec_F77='-L$libdir' 15432 hardcode_shlibpath_var_F77=no 15433 ;; 15434 15435 *) 15436 ld_shlibs_F77=no 15437 ;; 15438 esac 15439 fi 15440 15441{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 15442echo "${ECHO_T}$ld_shlibs_F77" >&6; } 15443test "$ld_shlibs_F77" = no && can_build_shared=no 15444 15445# 15446# Do we need to explicitly link libc? 15447# 15448case "x$archive_cmds_need_lc_F77" in 15449x|xyes) 15450 # Assume -lc should be added 15451 archive_cmds_need_lc_F77=yes 15452 15453 if test "$enable_shared" = yes && test "$GCC" = yes; then 15454 case $archive_cmds_F77 in 15455 *'~'*) 15456 # FIXME: we may have to deal with multi-command sequences. 15457 ;; 15458 '$CC '*) 15459 # Test whether the compiler implicitly links with -lc since on some 15460 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15461 # to ld, don't add -lc before -lgcc. 15462 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15463echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 15464 $rm conftest* 15465 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15466 15467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15468 (eval $ac_compile) 2>&5 15469 ac_status=$? 15470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15471 (exit $ac_status); } 2>conftest.err; then 15472 soname=conftest 15473 lib=conftest 15474 libobjs=conftest.$ac_objext 15475 deplibs= 15476 wl=$lt_prog_compiler_wl_F77 15477 pic_flag=$lt_prog_compiler_pic_F77 15478 compiler_flags=-v 15479 linker_flags=-v 15480 verstring= 15481 output_objdir=. 15482 libname=conftest 15483 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15484 allow_undefined_flag_F77= 15485 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15486 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15487 ac_status=$? 15488 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15489 (exit $ac_status); } 15490 then 15491 archive_cmds_need_lc_F77=no 15492 else 15493 archive_cmds_need_lc_F77=yes 15494 fi 15495 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15496 else 15497 cat conftest.err 1>&5 15498 fi 15499 $rm conftest* 15500 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15501echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } 15502 ;; 15503 esac 15504 fi 15505 ;; 15506esac 15507 15508{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15509echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 15510library_names_spec= 15511libname_spec='lib$name' 15512soname_spec= 15513shrext_cmds=".so" 15514postinstall_cmds= 15515postuninstall_cmds= 15516finish_cmds= 15517finish_eval= 15518shlibpath_var= 15519shlibpath_overrides_runpath=unknown 15520version_type=none 15521dynamic_linker="$host_os ld.so" 15522sys_lib_dlsearch_path_spec="/lib /usr/lib" 15523if test "$GCC" = yes; then 15524 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15525 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 15526 # if the path contains ";" then we assume it to be the separator 15527 # otherwise default to the standard path separator (i.e. ":") - it is 15528 # assumed that no part of a normal pathname contains ";" but that should 15529 # okay in the real world where ";" in dirpaths is itself problematic. 15530 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15531 else 15532 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15533 fi 15534else 15535 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15536fi 15537tmp="$sys_lib_search_path_spec" 15538sys_lib_search_path_spec= 15539sp= 15540for i in $tmp 15541do 15542 test -d $i && sys_lib_search_path_spec="$sys_lib_search_path_spec$sp$i" 15543 sp=" " 15544done 15545 15546need_lib_prefix=unknown 15547hardcode_into_libs=no 15548 15549# when you set need_version to no, make sure it does not cause -set_version 15550# flags to be left without arguments 15551need_version=unknown 15552 15553case $host_os in 15554aix3*) 15555 version_type=linux 15556 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15557 shlibpath_var=LIBPATH 15558 15559 # AIX 3 has no versioning support, so we append a major version to the name. 15560 soname_spec='${libname}${release}${shared_ext}$major' 15561 ;; 15562 15563aix4* | aix5*) 15564 version_type=linux 15565 need_lib_prefix=no 15566 need_version=no 15567 hardcode_into_libs=yes 15568 if test "$host_cpu" = ia64; then 15569 # AIX 5 supports IA64 15570 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15571 shlibpath_var=LD_LIBRARY_PATH 15572 else 15573 # With GCC up to 2.95.x, collect2 would create an import file 15574 # for dependence libraries. The import file would start with 15575 # the line '#! .'. This would cause the generated library to 15576 # depend on '.', always an invalid library. This was fixed in 15577 # development snapshots of GCC prior to 3.0. 15578 case $host_os in 15579 aix4 | aix4.[01] | aix4.[01].*) 15580 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15581 echo ' yes ' 15582 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15583 : 15584 else 15585 can_build_shared=no 15586 fi 15587 ;; 15588 esac 15589 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15590 # soname into executable. Probably we can add versioning support to 15591 # collect2, so additional links can be useful in future. 15592 if test "$aix_use_runtimelinking" = yes; then 15593 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15594 # instead of lib<name>.a to let people know that these are not 15595 # typical AIX shared libraries. 15596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15597 else 15598 # We preserve .a as extension for shared libraries through AIX4.2 15599 # and later when we are not doing run time linking. 15600 library_names_spec='${libname}${release}.a $libname.a' 15601 soname_spec='${libname}${release}${shared_ext}$major' 15602 fi 15603 shlibpath_var=LIBPATH 15604 fi 15605 ;; 15606 15607amigaos*) 15608 library_names_spec='$libname.ixlibrary $libname.a' 15609 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15610 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' 15611 ;; 15612 15613beos*) 15614 library_names_spec='${libname}${shared_ext}' 15615 dynamic_linker="$host_os ld.so" 15616 shlibpath_var=LIBRARY_PATH 15617 ;; 15618 15619bsdi[45]*) 15620 version_type=linux 15621 need_version=no 15622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15623 soname_spec='${libname}${release}${shared_ext}$major' 15624 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15625 shlibpath_var=LD_LIBRARY_PATH 15626 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15627 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15628 # the default ld.so.conf also contains /usr/contrib/lib and 15629 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15630 # libtool to hard-code these into programs 15631 ;; 15632 15633cygwin* | mingw* | pw32*) 15634 version_type=windows 15635 shrext_cmds=".dll" 15636 need_version=no 15637 need_lib_prefix=no 15638 15639 case $GCC,$host_os in 15640 yes,cygwin* | yes,mingw* | yes,pw32*) 15641 library_names_spec='$libname.dll.a' 15642 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15643 postinstall_cmds='base_file=`basename \${file}`~ 15644 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15645 dldir=$destdir/`dirname \$dlpath`~ 15646 test -d \$dldir || mkdir -p \$dldir~ 15647 $install_prog $dir/$dlname \$dldir/$dlname~ 15648 chmod a+x \$dldir/$dlname' 15649 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15650 dlpath=$dir/\$dldll~ 15651 $rm \$dlpath' 15652 shlibpath_overrides_runpath=yes 15653 15654 case $host_os in 15655 cygwin*) 15656 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15657 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15658 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15659 ;; 15660 mingw*) 15661 # MinGW DLLs use traditional 'lib' prefix 15662 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15663 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15664 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15665 # It is most probably a Windows format PATH printed by 15666 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15667 # path with ; separators, and with drive letters. We can handle the 15668 # drive letters (cygwin fileutils understands them), so leave them, 15669 # especially as we might pass files found there to a mingw objdump, 15670 # which wouldn't understand a cygwinified path. Ahh. 15671 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15672 else 15673 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15674 fi 15675 ;; 15676 pw32*) 15677 # pw32 DLLs use 'pw' prefix rather than 'lib' 15678 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15679 ;; 15680 esac 15681 ;; 15682 15683 *) 15684 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15685 ;; 15686 esac 15687 dynamic_linker='Win32 ld.exe' 15688 # FIXME: first we should search . and the directory the executable is in 15689 shlibpath_var=PATH 15690 ;; 15691 15692darwin* | rhapsody*) 15693 dynamic_linker="$host_os dyld" 15694 version_type=darwin 15695 need_lib_prefix=no 15696 need_version=no 15697 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15698 soname_spec='${libname}${release}${major}$shared_ext' 15699 shlibpath_overrides_runpath=yes 15700 shlibpath_var=DYLD_LIBRARY_PATH 15701 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15702 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 15703 if test "$GCC" = yes; then 15704 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"` 15705 else 15706 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 15707 fi 15708 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15709 ;; 15710 15711dgux*) 15712 version_type=linux 15713 need_lib_prefix=no 15714 need_version=no 15715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15716 soname_spec='${libname}${release}${shared_ext}$major' 15717 shlibpath_var=LD_LIBRARY_PATH 15718 ;; 15719 15720freebsd1*) 15721 dynamic_linker=no 15722 ;; 15723 15724kfreebsd*-gnu) 15725 version_type=linux 15726 need_lib_prefix=no 15727 need_version=no 15728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15729 soname_spec='${libname}${release}${shared_ext}$major' 15730 shlibpath_var=LD_LIBRARY_PATH 15731 shlibpath_overrides_runpath=no 15732 hardcode_into_libs=yes 15733 dynamic_linker='GNU ld.so' 15734 ;; 15735 15736freebsd* | dragonfly*) 15737 # DragonFly does not have aout. When/if they implement a new 15738 # versioning mechanism, adjust this. 15739 if test -x /usr/bin/objformat; then 15740 objformat=`/usr/bin/objformat` 15741 else 15742 case $host_os in 15743 freebsd[123]*) objformat=aout ;; 15744 *) objformat=elf ;; 15745 esac 15746 fi 15747 version_type=freebsd-$objformat 15748 case $version_type in 15749 freebsd-elf*) 15750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15751 need_version=no 15752 need_lib_prefix=no 15753 ;; 15754 freebsd-*) 15755 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15756 need_version=yes 15757 ;; 15758 esac 15759 shlibpath_var=LD_LIBRARY_PATH 15760 case $host_os in 15761 freebsd2*) 15762 shlibpath_overrides_runpath=yes 15763 ;; 15764 freebsd3.[01]* | freebsdelf3.[01]*) 15765 shlibpath_overrides_runpath=yes 15766 hardcode_into_libs=yes 15767 ;; 15768 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15769 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15770 shlibpath_overrides_runpath=no 15771 hardcode_into_libs=yes 15772 ;; 15773 *) # from 4.6 on, and DragonFly 15774 shlibpath_overrides_runpath=yes 15775 hardcode_into_libs=yes 15776 ;; 15777 esac 15778 ;; 15779 15780gnu*) 15781 version_type=linux 15782 need_lib_prefix=no 15783 need_version=no 15784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15785 soname_spec='${libname}${release}${shared_ext}$major' 15786 shlibpath_var=LD_LIBRARY_PATH 15787 hardcode_into_libs=yes 15788 ;; 15789 15790hpux9* | hpux10* | hpux11*) 15791 # Give a soname corresponding to the major version so that dld.sl refuses to 15792 # link against other versions. 15793 version_type=sunos 15794 need_lib_prefix=no 15795 need_version=no 15796 case $host_cpu in 15797 ia64*) 15798 shrext_cmds='.so' 15799 hardcode_into_libs=yes 15800 dynamic_linker="$host_os dld.so" 15801 shlibpath_var=LD_LIBRARY_PATH 15802 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15804 soname_spec='${libname}${release}${shared_ext}$major' 15805 if test "X$HPUX_IA64_MODE" = X32; then 15806 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15807 else 15808 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15809 fi 15810 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15811 ;; 15812 hppa*64*) 15813 shrext_cmds='.sl' 15814 hardcode_into_libs=yes 15815 dynamic_linker="$host_os dld.sl" 15816 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15817 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15819 soname_spec='${libname}${release}${shared_ext}$major' 15820 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15821 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15822 ;; 15823 *) 15824 shrext_cmds='.sl' 15825 dynamic_linker="$host_os dld.sl" 15826 shlibpath_var=SHLIB_PATH 15827 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15829 soname_spec='${libname}${release}${shared_ext}$major' 15830 ;; 15831 esac 15832 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15833 postinstall_cmds='chmod 555 $lib' 15834 ;; 15835 15836interix3*) 15837 version_type=linux 15838 need_lib_prefix=no 15839 need_version=no 15840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15841 soname_spec='${libname}${release}${shared_ext}$major' 15842 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15843 shlibpath_var=LD_LIBRARY_PATH 15844 shlibpath_overrides_runpath=no 15845 hardcode_into_libs=yes 15846 ;; 15847 15848irix5* | irix6* | nonstopux*) 15849 case $host_os in 15850 nonstopux*) version_type=nonstopux ;; 15851 *) 15852 if test "$lt_cv_prog_gnu_ld" = yes; then 15853 version_type=linux 15854 else 15855 version_type=irix 15856 fi ;; 15857 esac 15858 need_lib_prefix=no 15859 need_version=no 15860 soname_spec='${libname}${release}${shared_ext}$major' 15861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15862 case $host_os in 15863 irix5* | nonstopux*) 15864 libsuff= shlibsuff= 15865 ;; 15866 *) 15867 case $LD in # libtool.m4 will add one of these switches to LD 15868 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15869 libsuff= shlibsuff= libmagic=32-bit;; 15870 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15871 libsuff=32 shlibsuff=N32 libmagic=N32;; 15872 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15873 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15874 *) libsuff= shlibsuff= libmagic=never-match;; 15875 esac 15876 ;; 15877 esac 15878 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15879 shlibpath_overrides_runpath=no 15880 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15881 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15882 hardcode_into_libs=yes 15883 ;; 15884 15885# No shared lib support for Linux oldld, aout, or coff. 15886linux*oldld* | linux*aout* | linux*coff*) 15887 dynamic_linker=no 15888 ;; 15889 15890# This must be Linux ELF. 15891linux*) 15892 version_type=linux 15893 need_lib_prefix=no 15894 need_version=no 15895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15896 soname_spec='${libname}${release}${shared_ext}$major' 15897 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15898 shlibpath_var=LD_LIBRARY_PATH 15899 shlibpath_overrides_runpath=no 15900 # This implies no fast_install, which is unacceptable. 15901 # Some rework will be needed to allow for fast_install 15902 # before this can be enabled. 15903 hardcode_into_libs=yes 15904 15905 # Append ld.so.conf contents to the search path 15906 if test -f /etc/ld.so.conf; then 15907 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' ' '` 15908 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15909 fi 15910 15911 # We used to test for /lib/ld.so.1 and disable shared libraries on 15912 # powerpc, because MkLinux only supported shared libraries with the 15913 # GNU dynamic linker. Since this was broken with cross compilers, 15914 # most powerpc-linux boxes support dynamic linking these days and 15915 # people can always --disable-shared, the test was removed, and we 15916 # assume the GNU/Linux dynamic linker is in use. 15917 dynamic_linker='GNU/Linux ld.so' 15918 ;; 15919 15920mirbsd*) 15921 version_type=linux 15922 sys_lib_dlsearch_path_spec="/usr/lib" 15923 need_lib_prefix=no 15924 need_version=no 15925 library_names_spec='${libname}${release}${shared_ext}$versuffix2 ${libname}${shared_ext}$versuffix2' 15926 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15927 shlibpath_var=LD_LIBRARY_PATH 15928 shlibpath_overrides_runpath=yes 15929 ;; 15930 15931knetbsd*-gnu) 15932 version_type=linux 15933 need_lib_prefix=no 15934 need_version=no 15935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15936 soname_spec='${libname}${release}${shared_ext}$major' 15937 shlibpath_var=LD_LIBRARY_PATH 15938 shlibpath_overrides_runpath=no 15939 hardcode_into_libs=yes 15940 dynamic_linker='GNU ld.so' 15941 ;; 15942 15943netbsd*) 15944 version_type=sunos 15945 need_lib_prefix=no 15946 need_version=no 15947 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15949 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15950 dynamic_linker='NetBSD (a.out) ld.so' 15951 else 15952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15953 soname_spec='${libname}${release}${shared_ext}$major' 15954 dynamic_linker='NetBSD ld.elf_so' 15955 fi 15956 shlibpath_var=LD_LIBRARY_PATH 15957 shlibpath_overrides_runpath=yes 15958 hardcode_into_libs=yes 15959 ;; 15960 15961newsos6) 15962 version_type=linux 15963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15964 shlibpath_var=LD_LIBRARY_PATH 15965 shlibpath_overrides_runpath=yes 15966 ;; 15967 15968nto-qnx*) 15969 version_type=linux 15970 need_lib_prefix=no 15971 need_version=no 15972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15973 soname_spec='${libname}${release}${shared_ext}$major' 15974 shlibpath_var=LD_LIBRARY_PATH 15975 shlibpath_overrides_runpath=yes 15976 ;; 15977 15978openbsd*) 15979 version_type=linux 15980 sys_lib_dlsearch_path_spec="/usr/lib" 15981 need_lib_prefix=no 15982 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15983 case $host_os in 15984 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15985 *) need_version=no ;; 15986 esac 15987 library_names_spec='${libname}${release}${shared_ext}$versuffix2 ${libname}${shared_ext}$versuffix2' 15988 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15989 shlibpath_var=LD_LIBRARY_PATH 15990 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15991 case $host_os in 15992 openbsd2.[89] | openbsd2.[89].*) 15993 shlibpath_overrides_runpath=no 15994 ;; 15995 *) 15996 shlibpath_overrides_runpath=yes 15997 ;; 15998 esac 15999 else 16000 shlibpath_overrides_runpath=yes 16001 fi 16002 ;; 16003 16004os2*) 16005 libname_spec='$name' 16006 shrext_cmds=".dll" 16007 need_lib_prefix=no 16008 library_names_spec='$libname${shared_ext} $libname.a' 16009 dynamic_linker='OS/2 ld.exe' 16010 shlibpath_var=LIBPATH 16011 ;; 16012 16013osf3* | osf4* | osf5*) 16014 version_type=osf 16015 need_lib_prefix=no 16016 need_version=no 16017 soname_spec='${libname}${release}${shared_ext}$major' 16018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16019 shlibpath_var=LD_LIBRARY_PATH 16020 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16021 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16022 ;; 16023 16024rdos*) 16025 dynamic_linker=no 16026 ;; 16027 16028solaris*) 16029 version_type=linux 16030 need_lib_prefix=no 16031 need_version=no 16032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16033 soname_spec='${libname}${release}${shared_ext}$major' 16034 shlibpath_var=LD_LIBRARY_PATH 16035 shlibpath_overrides_runpath=yes 16036 hardcode_into_libs=yes 16037 # ldd complains unless libraries are executable 16038 postinstall_cmds='chmod +x $lib' 16039 ;; 16040 16041sunos4*) 16042 version_type=sunos 16043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16044 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16045 shlibpath_var=LD_LIBRARY_PATH 16046 shlibpath_overrides_runpath=yes 16047 if test "$with_gnu_ld" = yes; then 16048 need_lib_prefix=no 16049 fi 16050 need_version=yes 16051 ;; 16052 16053sysv4 | sysv4.3*) 16054 version_type=linux 16055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16056 soname_spec='${libname}${release}${shared_ext}$major' 16057 shlibpath_var=LD_LIBRARY_PATH 16058 case $host_vendor in 16059 sni) 16060 shlibpath_overrides_runpath=no 16061 need_lib_prefix=no 16062 export_dynamic_flag_spec='${wl}-Blargedynsym' 16063 runpath_var=LD_RUN_PATH 16064 ;; 16065 siemens) 16066 need_lib_prefix=no 16067 ;; 16068 motorola) 16069 need_lib_prefix=no 16070 need_version=no 16071 shlibpath_overrides_runpath=no 16072 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16073 ;; 16074 esac 16075 ;; 16076 16077sysv4*MP*) 16078 if test -d /usr/nec ;then 16079 version_type=linux 16080 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16081 soname_spec='$libname${shared_ext}.$major' 16082 shlibpath_var=LD_LIBRARY_PATH 16083 fi 16084 ;; 16085 16086sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16087 version_type=freebsd-elf 16088 need_lib_prefix=no 16089 need_version=no 16090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16091 soname_spec='${libname}${release}${shared_ext}$major' 16092 shlibpath_var=LD_LIBRARY_PATH 16093 hardcode_into_libs=yes 16094 if test "$with_gnu_ld" = yes; then 16095 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16096 shlibpath_overrides_runpath=no 16097 else 16098 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16099 shlibpath_overrides_runpath=yes 16100 case $host_os in 16101 sco3.2v5*) 16102 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16103 ;; 16104 esac 16105 fi 16106 sys_lib_dlsearch_path_spec='/usr/lib' 16107 ;; 16108 16109uts4*) 16110 version_type=linux 16111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16112 soname_spec='${libname}${release}${shared_ext}$major' 16113 shlibpath_var=LD_LIBRARY_PATH 16114 ;; 16115 16116*) 16117 dynamic_linker=no 16118 ;; 16119esac 16120{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 16121echo "${ECHO_T}$dynamic_linker" >&6; } 16122test "$dynamic_linker" = no && can_build_shared=no 16123 16124variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16125if test "$GCC" = yes; then 16126 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16127fi 16128 16129{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 16130echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 16131hardcode_action_F77= 16132if test -n "$hardcode_libdir_flag_spec_F77" || \ 16133 test -n "$runpath_var_F77" || \ 16134 test "X$hardcode_automatic_F77" = "Xyes" ; then 16135 16136 # We can hardcode non-existant directories. 16137 if test "$hardcode_direct_F77" != no && 16138 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16139 # have to relink, otherwise we might link with an installed library 16140 # when we should be linking with a yet-to-be-installed one 16141 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 16142 test "$hardcode_minus_L_F77" != no; then 16143 # Linking always hardcodes the temporary library directory. 16144 hardcode_action_F77=relink 16145 else 16146 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16147 hardcode_action_F77=immediate 16148 fi 16149else 16150 # We cannot hardcode anything, or else we can only hardcode existing 16151 # directories. 16152 hardcode_action_F77=unsupported 16153fi 16154{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 16155echo "${ECHO_T}$hardcode_action_F77" >&6; } 16156 16157if test "$hardcode_action_F77" = relink; then 16158 # Fast installation is not supported 16159 enable_fast_install=no 16160elif test "$shlibpath_overrides_runpath" = yes || 16161 test "$enable_shared" = no; then 16162 # Fast installation is not necessary 16163 enable_fast_install=needless 16164fi 16165 16166 16167# The else clause should only fire when bootstrapping the 16168# libtool distribution, otherwise you forgot to ship ltmain.sh 16169# with your package, and you will get complaints that there are 16170# no rules to generate ltmain.sh. 16171if test -f "$ltmain"; then 16172 # See if we are running on zsh, and set the options which allow our commands through 16173 # without removal of \ escapes. 16174 if test -n "${ZSH_VERSION+set}" ; then 16175 setopt NO_GLOB_SUBST 16176 fi 16177 # Now quote all the things that may contain metacharacters while being 16178 # careful not to overquote the AC_SUBSTed values. We take copies of the 16179 # variables and quote the copies for generation of the libtool script. 16180 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 16181 SED SHELL STRIP \ 16182 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 16183 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 16184 deplibs_check_method reload_flag reload_cmds need_locks \ 16185 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 16186 lt_cv_sys_global_symbol_to_c_name_address \ 16187 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 16188 old_postinstall_cmds old_postuninstall_cmds \ 16189 compiler_F77 \ 16190 CC_F77 \ 16191 LD_F77 \ 16192 lt_prog_compiler_wl_F77 \ 16193 lt_prog_compiler_pic_F77 \ 16194 lt_prog_compiler_static_F77 \ 16195 lt_prog_compiler_no_builtin_flag_F77 \ 16196 export_dynamic_flag_spec_F77 \ 16197 thread_safe_flag_spec_F77 \ 16198 whole_archive_flag_spec_F77 \ 16199 enable_shared_with_static_runtimes_F77 \ 16200 old_archive_cmds_F77 \ 16201 old_archive_from_new_cmds_F77 \ 16202 predep_objects_F77 \ 16203 postdep_objects_F77 \ 16204 predeps_F77 \ 16205 postdeps_F77 \ 16206 compiler_lib_search_path_F77 \ 16207 archive_cmds_F77 \ 16208 archive_expsym_cmds_F77 \ 16209 postinstall_cmds_F77 \ 16210 postuninstall_cmds_F77 \ 16211 old_archive_from_expsyms_cmds_F77 \ 16212 allow_undefined_flag_F77 \ 16213 no_undefined_flag_F77 \ 16214 export_symbols_cmds_F77 \ 16215 hardcode_libdir_flag_spec_F77 \ 16216 hardcode_libdir_flag_spec_ld_F77 \ 16217 hardcode_libdir_separator_F77 \ 16218 hardcode_automatic_F77 \ 16219 module_cmds_F77 \ 16220 module_expsym_cmds_F77 \ 16221 lt_cv_prog_compiler_c_o_F77 \ 16222 exclude_expsyms_F77 \ 16223 include_expsyms_F77; do 16224 16225 case $var in 16226 old_archive_cmds_F77 | \ 16227 old_archive_from_new_cmds_F77 | \ 16228 archive_cmds_F77 | \ 16229 archive_expsym_cmds_F77 | \ 16230 module_cmds_F77 | \ 16231 module_expsym_cmds_F77 | \ 16232 old_archive_from_expsyms_cmds_F77 | \ 16233 export_symbols_cmds_F77 | \ 16234 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 16235 postinstall_cmds | postuninstall_cmds | \ 16236 old_postinstall_cmds | old_postuninstall_cmds | \ 16237 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 16238 # Double-quote double-evaled strings. 16239 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 16240 ;; 16241 *) 16242 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 16243 ;; 16244 esac 16245 done 16246 16247 case $lt_echo in 16248 *'\$0 --fallback-echo"') 16249 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 16250 ;; 16251 esac 16252 16253cfgfile="$ofile" 16254 16255 cat <<__EOF__ >> "$cfgfile" 16256# ### BEGIN LIBTOOL TAG CONFIG: $tagname 16257 16258# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16259 16260# Shell to use when invoking shell scripts. 16261SHELL=$lt_SHELL 16262 16263# Whether or not to build shared libraries. 16264build_libtool_libs=$enable_shared 16265 16266# Whether or not to build static libraries. 16267build_old_libs=$enable_static 16268 16269# Whether or not to add -lc for building shared libraries. 16270build_libtool_need_lc=$archive_cmds_need_lc_F77 16271 16272# Whether or not to disallow shared libs when runtime libs are static 16273allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 16274 16275# Whether or not to optimize for fast installation. 16276fast_install=$enable_fast_install 16277 16278# The host system. 16279host_alias=$host_alias 16280host=$host 16281host_os=$host_os 16282 16283# The build system. 16284build_alias=$build_alias 16285build=$build 16286build_os=$build_os 16287 16288# An echo program that does not interpret backslashes. 16289echo=$lt_echo 16290 16291# The archiver. 16292AR=$lt_AR 16293AR_FLAGS=$lt_AR_FLAGS 16294 16295# A C compiler. 16296LTCC=$lt_LTCC 16297 16298# LTCC compiler flags. 16299LTCFLAGS=$lt_LTCFLAGS 16300 16301# A language-specific compiler. 16302CC=$lt_compiler_F77 16303 16304# Is the compiler the GNU C compiler? 16305with_gcc=$GCC_F77 16306 16307# An ERE matcher. 16308EGREP=$lt_EGREP 16309 16310# The linker used to build libraries. 16311LD=$lt_LD_F77 16312 16313# Whether we need hard or soft links. 16314LN_S=$lt_LN_S 16315 16316# A BSD-compatible nm program. 16317NM=$lt_NM 16318 16319# A symbol stripping program 16320STRIP=$lt_STRIP 16321 16322# Used to examine libraries when file_magic_cmd begins "file" 16323MAGIC_CMD=$MAGIC_CMD 16324 16325# Used on cygwin: DLL creation program. 16326DLLTOOL="$DLLTOOL" 16327 16328# Used on cygwin: object dumper. 16329OBJDUMP="$OBJDUMP" 16330 16331# Used on cygwin: assembler. 16332AS="$AS" 16333 16334# The name of the directory that contains temporary libtool files. 16335objdir=$objdir 16336 16337# How to create reloadable object files. 16338reload_flag=$lt_reload_flag 16339reload_cmds=$lt_reload_cmds 16340 16341# How to pass a linker flag through the compiler. 16342wl=$lt_lt_prog_compiler_wl_F77 16343 16344# Object file suffix (normally "o"). 16345objext="$ac_objext" 16346 16347# Old archive suffix (normally "a"). 16348libext="$libext" 16349 16350# Shared library suffix (normally ".so"). 16351shrext_cmds='$shrext_cmds' 16352 16353# Executable file suffix (normally ""). 16354exeext="$exeext" 16355 16356# Additional compiler flags for building library objects. 16357pic_flag=$lt_lt_prog_compiler_pic_F77 16358pic_mode=$pic_mode 16359 16360# What is the maximum length of a command? 16361max_cmd_len=$lt_cv_sys_max_cmd_len 16362 16363# Does compiler simultaneously support -c and -o options? 16364compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 16365 16366# Must we lock files when doing compilation? 16367need_locks=$lt_need_locks 16368 16369# Do we need the lib prefix for modules? 16370need_lib_prefix=$need_lib_prefix 16371 16372# Do we need a version for libraries? 16373need_version=$need_version 16374 16375# Whether dlopen is supported. 16376dlopen_support=$enable_dlopen 16377 16378# Whether dlopen of programs is supported. 16379dlopen_self=$enable_dlopen_self 16380 16381# Whether dlopen of statically linked programs is supported. 16382dlopen_self_static=$enable_dlopen_self_static 16383 16384# Compiler flag to prevent dynamic linking. 16385link_static_flag=$lt_lt_prog_compiler_static_F77 16386 16387# Compiler flag to turn off builtin functions. 16388no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 16389 16390# Compiler flag to allow reflexive dlopens. 16391export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 16392 16393# Compiler flag to generate shared objects directly from archives. 16394whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 16395 16396# Compiler flag to generate thread-safe objects. 16397thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 16398 16399# Library versioning type. 16400version_type=$version_type 16401 16402# Format of library name prefix. 16403libname_spec=$lt_libname_spec 16404 16405# List of archive names. First name is the real one, the rest are links. 16406# The last name is the one that the linker finds with -lNAME. 16407library_names_spec=$lt_library_names_spec 16408 16409# The coded name of the library, if different from the real name. 16410soname_spec=$lt_soname_spec 16411 16412# Commands used to build and install an old-style archive. 16413RANLIB=$lt_RANLIB 16414old_archive_cmds=$lt_old_archive_cmds_F77 16415old_postinstall_cmds=$lt_old_postinstall_cmds 16416old_postuninstall_cmds=$lt_old_postuninstall_cmds 16417 16418# Create an old-style archive from a shared archive. 16419old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 16420 16421# Create a temporary old-style archive to link instead of a shared archive. 16422old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 16423 16424# Commands used to build and install a shared archive. 16425archive_cmds=$lt_archive_cmds_F77 16426archive_expsym_cmds=$lt_archive_expsym_cmds_F77 16427postinstall_cmds=$lt_postinstall_cmds 16428postuninstall_cmds=$lt_postuninstall_cmds 16429 16430# Commands used to build a loadable module (assumed same as above if empty) 16431module_cmds=$lt_module_cmds_F77 16432module_expsym_cmds=$lt_module_expsym_cmds_F77 16433 16434# Commands to strip libraries. 16435old_striplib=$lt_old_striplib 16436striplib=$lt_striplib 16437 16438# Dependencies to place before the objects being linked to create a 16439# shared library. 16440predep_objects=$lt_predep_objects_F77 16441 16442# Dependencies to place after the objects being linked to create a 16443# shared library. 16444postdep_objects=$lt_postdep_objects_F77 16445 16446# Dependencies to place before the objects being linked to create a 16447# shared library. 16448predeps=$lt_predeps_F77 16449 16450# Dependencies to place after the objects being linked to create a 16451# shared library. 16452postdeps=$lt_postdeps_F77 16453 16454# The library search path used internally by the compiler when linking 16455# a shared library. 16456compiler_lib_search_path=$lt_compiler_lib_search_path_F77 16457 16458# Method to check whether dependent libraries are shared objects. 16459deplibs_check_method=$lt_deplibs_check_method 16460 16461# Command to use when deplibs_check_method == file_magic. 16462file_magic_cmd=$lt_file_magic_cmd 16463 16464# Flag that allows shared libraries with undefined symbols to be built. 16465allow_undefined_flag=$lt_allow_undefined_flag_F77 16466 16467# Flag that forces no undefined symbols. 16468no_undefined_flag=$lt_no_undefined_flag_F77 16469 16470# Commands used to finish a libtool library installation in a directory. 16471finish_cmds=$lt_finish_cmds 16472 16473# Same as above, but a single script fragment to be evaled but not shown. 16474finish_eval=$lt_finish_eval 16475 16476# Take the output of nm and produce a listing of raw symbols and C names. 16477global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16478 16479# Transform the output of nm in a proper C declaration 16480global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16481 16482# Transform the output of nm in a C name address pair 16483global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16484 16485# This is the shared library runtime path variable. 16486runpath_var=$runpath_var 16487 16488# This is the shared library path variable. 16489shlibpath_var=$shlibpath_var 16490 16491# Is shlibpath searched before the hard-coded library search path? 16492shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16493 16494# How to hardcode a shared library path into an executable. 16495hardcode_action=$hardcode_action_F77 16496 16497# Whether we should hardcode library paths into libraries. 16498hardcode_into_libs=$hardcode_into_libs 16499 16500# Flag to hardcode \$libdir into a binary during linking. 16501# This must work even if \$libdir does not exist. 16502hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16503 16504# If ld is used when linking, flag to hardcode \$libdir into 16505# a binary during linking. This must work even if \$libdir does 16506# not exist. 16507hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16508 16509# Whether we need a single -rpath flag with a separated argument. 16510hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16511 16512# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16513# resulting binary. 16514hardcode_direct=$hardcode_direct_F77 16515 16516# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16517# resulting binary. 16518hardcode_minus_L=$hardcode_minus_L_F77 16519 16520# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16521# the resulting binary. 16522hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16523 16524# Set to yes if building a shared library automatically hardcodes DIR into the library 16525# and all subsequent libraries and executables linked against it. 16526hardcode_automatic=$hardcode_automatic_F77 16527 16528# Variables whose values should be saved in libtool wrapper scripts and 16529# restored at relink time. 16530variables_saved_for_relink="$variables_saved_for_relink" 16531 16532# Whether libtool must link a program against all its dependency libraries. 16533link_all_deplibs=$link_all_deplibs_F77 16534 16535# Compile-time system search path for libraries 16536sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16537 16538# Run-time system search path for libraries 16539sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16540 16541# Fix the shell variable \$srcfile for the compiler. 16542fix_srcfile_path="$fix_srcfile_path_F77" 16543 16544# Set to yes if exported symbols are required. 16545always_export_symbols=$always_export_symbols_F77 16546 16547# The commands to list exported symbols. 16548export_symbols_cmds=$lt_export_symbols_cmds_F77 16549 16550# The commands to extract the exported symbol list from a shared archive. 16551extract_expsyms_cmds=$lt_extract_expsyms_cmds 16552 16553# Symbols that should not be listed in the preloaded symbols. 16554exclude_expsyms=$lt_exclude_expsyms_F77 16555 16556# Symbols that must always be exported. 16557include_expsyms=$lt_include_expsyms_F77 16558 16559# ### END LIBTOOL TAG CONFIG: $tagname 16560 16561__EOF__ 16562 16563 16564else 16565 # If there is no Makefile yet, we rely on a make rule to execute 16566 # 'config.status --recheck' to rerun these tests and create the 16567 # libtool script then. 16568 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16569 if test -f "$ltmain_in"; then 16570 test -f Makefile && make "$ltmain" 16571 fi 16572fi 16573 16574 16575ac_ext=c 16576ac_cpp='$CPP $CPPFLAGS' 16577ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16578ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16579ac_compiler_gnu=$ac_cv_c_compiler_gnu 16580 16581CC="$lt_save_CC" 16582 16583 else 16584 tagname="" 16585 fi 16586 ;; 16587 16588 GCJ) 16589 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16590 16591 16592# Source file extension for Java test sources. 16593ac_ext=java 16594 16595# Object file extension for compiled Java test sources. 16596objext=o 16597objext_GCJ=$objext 16598 16599# Code to be used in simple compile tests 16600lt_simple_compile_test_code="class foo {}\n" 16601 16602# Code to be used in simple link tests 16603lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 16604 16605# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16606 16607# If no C compiler was specified, use CC. 16608LTCC=${LTCC-"$CC"} 16609 16610# If no C compiler flags were specified, use CFLAGS. 16611LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16612 16613# Allow CC to be a program name with arguments. 16614compiler=$CC 16615 16616 16617# save warnings/boilerplate of simple test code 16618ac_outfile=conftest.$ac_objext 16619printf "$lt_simple_compile_test_code" >conftest.$ac_ext 16620eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16621_lt_compiler_boilerplate=`cat conftest.err` 16622$rm conftest* 16623 16624ac_outfile=conftest.$ac_objext 16625printf "$lt_simple_link_test_code" >conftest.$ac_ext 16626eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16627_lt_linker_boilerplate=`cat conftest.err` 16628$rm conftest* 16629 16630 16631# Allow CC to be a program name with arguments. 16632lt_save_CC="$CC" 16633CC=${GCJ-"gcj"} 16634compiler=$CC 16635compiler_GCJ=$CC 16636for cc_temp in $compiler""; do 16637 case $cc_temp in 16638 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16639 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16640 \-*) ;; 16641 *) break;; 16642 esac 16643done 16644cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16645 16646 16647# GCJ did not exist at the time GCC didn't implicitly link libc in. 16648archive_cmds_need_lc_GCJ=no 16649 16650old_archive_cmds_GCJ=$old_archive_cmds 16651 16652## CAVEAT EMPTOR: 16653## There is no encapsulation within the following macros, do not change 16654## the running order or otherwise move them around unless you know exactly 16655## what you are doing... 16656 16657lt_prog_compiler_no_builtin_flag_GCJ= 16658 16659if test "$GCC" = yes; then 16660 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16661 16662 16663{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16664echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 16665if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16666 echo $ECHO_N "(cached) $ECHO_C" >&6 16667else 16668 lt_cv_prog_compiler_rtti_exceptions=no 16669 ac_outfile=conftest.$ac_objext 16670 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16671 lt_compiler_flag="-fno-rtti -fno-exceptions" 16672 # Insert the option either (1) after the last *FLAGS variable, or 16673 # (2) before a word containing "conftest.", or (3) at the end. 16674 # Note that $ac_compile itself does not contain backslashes and begins 16675 # with a dollar sign (not a hyphen), so the echo should work correctly. 16676 # The option is referenced via a variable to avoid confusing sed. 16677 lt_compile=`echo "$ac_compile" | $SED \ 16678 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16679 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16680 -e 's:$: $lt_compiler_flag:'` 16681 (eval echo "\"\$as_me:16681: $lt_compile\"" >&5) 16682 (eval "$lt_compile" 2>conftest.err) 16683 ac_status=$? 16684 cat conftest.err >&5 16685 echo "$as_me:16685: \$? = $ac_status" >&5 16686 if (exit $ac_status) && test -s "$ac_outfile"; then 16687 # The compiler can only warn and ignore the option if not recognized 16688 # So say no if there are warnings other than the usual output. 16689 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16690 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16691 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16692 lt_cv_prog_compiler_rtti_exceptions=yes 16693 fi 16694 fi 16695 $rm conftest* 16696 16697fi 16698{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16699echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16700 16701if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16702 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16703else 16704 : 16705fi 16706 16707fi 16708 16709lt_prog_compiler_wl_GCJ= 16710lt_prog_compiler_pic_GCJ= 16711lt_prog_compiler_static_GCJ= 16712 16713{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16714echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 16715 16716 if test "$GCC" = yes; then 16717 lt_prog_compiler_wl_GCJ='-Wl,' 16718 lt_prog_compiler_static_GCJ='-static' 16719 16720 case $host_os in 16721 aix*) 16722 # All AIX code is PIC. 16723 if test "$host_cpu" = ia64; then 16724 # AIX 5 now supports IA64 processor 16725 lt_prog_compiler_static_GCJ='-Bstatic' 16726 fi 16727 ;; 16728 16729 amigaos*) 16730 # FIXME: we need at least 68020 code to build shared libraries, but 16731 # adding the '-m68020' flag to GCC prevents building anything better, 16732 # like '-m68040'. 16733 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16734 ;; 16735 16736 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16737 # PIC is the default for these OSes. 16738 ;; 16739 16740 mingw* | cygwin* | pw32* | os2*) 16741 # This hack is so that the source file can tell whether it is being 16742 # built for inclusion in a dll (and should export symbols for example). 16743 # Although the cygwin gcc ignores -fPIC, still need this for old-style 16744 # (--disable-auto-import) libraries 16745 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16746 ;; 16747 16748 darwin* | rhapsody*) 16749 # PIC is the default on this platform 16750 # Common symbols not allowed in MH_DYLIB files 16751 lt_prog_compiler_pic_GCJ='-fno-common' 16752 ;; 16753 16754 interix3*) 16755 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16756 # Instead, we relocate shared libraries at runtime. 16757 ;; 16758 16759 msdosdjgpp*) 16760 # Just because we use GCC doesn't mean we suddenly get shared libraries 16761 # on systems that don't support them. 16762 lt_prog_compiler_can_build_shared_GCJ=no 16763 enable_shared=no 16764 ;; 16765 16766 sysv4*MP*) 16767 if test -d /usr/nec; then 16768 lt_prog_compiler_pic_GCJ=-Kconform_pic 16769 fi 16770 ;; 16771 16772 hpux*) 16773 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16774 # not for PA HP-UX. 16775 case $host_cpu in 16776 hppa*64*|ia64*) 16777 # +Z the default 16778 ;; 16779 *) 16780 lt_prog_compiler_pic_GCJ='-fPIC' 16781 ;; 16782 esac 16783 ;; 16784 16785 *) 16786 lt_prog_compiler_pic_GCJ='-fPIC' 16787 ;; 16788 esac 16789 else 16790 # PORTME Check for flag to pass linker flags through the system compiler. 16791 case $host_os in 16792 aix*) 16793 lt_prog_compiler_wl_GCJ='-Wl,' 16794 if test "$host_cpu" = ia64; then 16795 # AIX 5 now supports IA64 processor 16796 lt_prog_compiler_static_GCJ='-Bstatic' 16797 else 16798 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16799 fi 16800 ;; 16801 darwin*) 16802 # PIC is the default on this platform 16803 # Common symbols not allowed in MH_DYLIB files 16804 case $cc_basename in 16805 xlc*) 16806 lt_prog_compiler_pic_GCJ='-qnocommon' 16807 lt_prog_compiler_wl_GCJ='-Wl,' 16808 ;; 16809 esac 16810 ;; 16811 16812 mingw* | cygwin* | pw32* | os2*) 16813 # This hack is so that the source file can tell whether it is being 16814 # built for inclusion in a dll (and should export symbols for example). 16815 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16816 ;; 16817 16818 hpux9* | hpux10* | hpux11*) 16819 lt_prog_compiler_wl_GCJ='-Wl,' 16820 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16821 # not for PA HP-UX. 16822 case $host_cpu in 16823 hppa*64*|ia64*) 16824 # +Z the default 16825 ;; 16826 *) 16827 lt_prog_compiler_pic_GCJ='+Z' 16828 ;; 16829 esac 16830 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16831 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 16832 ;; 16833 16834 irix5* | irix6* | nonstopux*) 16835 lt_prog_compiler_wl_GCJ='-Wl,' 16836 # PIC (with -KPIC) is the default. 16837 lt_prog_compiler_static_GCJ='-non_shared' 16838 ;; 16839 16840 newsos6) 16841 lt_prog_compiler_pic_GCJ='-KPIC' 16842 lt_prog_compiler_static_GCJ='-Bstatic' 16843 ;; 16844 16845 linux*) 16846 case $cc_basename in 16847 icc* | ecc*) 16848 lt_prog_compiler_wl_GCJ='-Wl,' 16849 lt_prog_compiler_pic_GCJ='-KPIC' 16850 lt_prog_compiler_static_GCJ='-static' 16851 ;; 16852 pgcc* | pgf77* | pgf90* | pgf95*) 16853 # Portland Group compilers (*not* the Pentium gcc compiler, 16854 # which looks to be a dead project) 16855 lt_prog_compiler_wl_GCJ='-Wl,' 16856 lt_prog_compiler_pic_GCJ='-fpic' 16857 lt_prog_compiler_static_GCJ='-Bstatic' 16858 ;; 16859 ccc*) 16860 lt_prog_compiler_wl_GCJ='-Wl,' 16861 # All Alpha code is PIC. 16862 lt_prog_compiler_static_GCJ='-non_shared' 16863 ;; 16864 *) 16865 case `$CC -V 2>&1 | sed 5q` in 16866 *Sun\ C*) 16867 # Sun C 5.9 16868 lt_prog_compiler_pic_GCJ='-KPIC' 16869 lt_prog_compiler_static_GCJ='-Bstatic' 16870 lt_prog_compiler_wl_GCJ='-Wl,' 16871 ;; 16872 *Sun\ F*) 16873 # Sun Fortran 8.3 passes all unrecognized flags to the linker 16874 lt_prog_compiler_pic_GCJ='-KPIC' 16875 lt_prog_compiler_static_GCJ='-Bstatic' 16876 lt_prog_compiler_wl_GCJ='' 16877 ;; 16878 esac 16879 ;; 16880 esac 16881 ;; 16882 16883 osf3* | osf4* | osf5*) 16884 lt_prog_compiler_wl_GCJ='-Wl,' 16885 # All OSF/1 code is PIC. 16886 lt_prog_compiler_static_GCJ='-non_shared' 16887 ;; 16888 16889 rdos*) 16890 lt_prog_compiler_static_GCJ='-non_shared' 16891 ;; 16892 16893 solaris*) 16894 lt_prog_compiler_pic_GCJ='-KPIC' 16895 lt_prog_compiler_static_GCJ='-Bstatic' 16896 case $cc_basename in 16897 f77* | f90* | f95*) 16898 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 16899 *) 16900 lt_prog_compiler_wl_GCJ='-Wl,';; 16901 esac 16902 ;; 16903 16904 sunos4*) 16905 lt_prog_compiler_wl_GCJ='-Qoption ld ' 16906 lt_prog_compiler_pic_GCJ='-PIC' 16907 lt_prog_compiler_static_GCJ='-Bstatic' 16908 ;; 16909 16910 sysv4 | sysv4.2uw2* | sysv4.3*) 16911 lt_prog_compiler_wl_GCJ='-Wl,' 16912 lt_prog_compiler_pic_GCJ='-KPIC' 16913 lt_prog_compiler_static_GCJ='-Bstatic' 16914 ;; 16915 16916 sysv4*MP*) 16917 if test -d /usr/nec ;then 16918 lt_prog_compiler_pic_GCJ='-Kconform_pic' 16919 lt_prog_compiler_static_GCJ='-Bstatic' 16920 fi 16921 ;; 16922 16923 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16924 lt_prog_compiler_wl_GCJ='-Wl,' 16925 lt_prog_compiler_pic_GCJ='-KPIC' 16926 lt_prog_compiler_static_GCJ='-Bstatic' 16927 ;; 16928 16929 unicos*) 16930 lt_prog_compiler_wl_GCJ='-Wl,' 16931 lt_prog_compiler_can_build_shared_GCJ=no 16932 ;; 16933 16934 uts4*) 16935 lt_prog_compiler_pic_GCJ='-pic' 16936 lt_prog_compiler_static_GCJ='-Bstatic' 16937 ;; 16938 16939 *) 16940 lt_prog_compiler_can_build_shared_GCJ=no 16941 ;; 16942 esac 16943 fi 16944 16945{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 16946echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } 16947 16948# 16949# Check to make sure the PIC flag actually works. 16950# 16951if test -n "$lt_prog_compiler_pic_GCJ"; then 16952 16953{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 16954echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } 16955if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 16956 echo $ECHO_N "(cached) $ECHO_C" >&6 16957else 16958 lt_prog_compiler_pic_works_GCJ=no 16959 ac_outfile=conftest.$ac_objext 16960 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16961 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 16962 # Insert the option either (1) after the last *FLAGS variable, or 16963 # (2) before a word containing "conftest.", or (3) at the end. 16964 # Note that $ac_compile itself does not contain backslashes and begins 16965 # with a dollar sign (not a hyphen), so the echo should work correctly. 16966 # The option is referenced via a variable to avoid confusing sed. 16967 lt_compile=`echo "$ac_compile" | $SED \ 16968 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16969 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16970 -e 's:$: $lt_compiler_flag:'` 16971 (eval echo "\"\$as_me:16971: $lt_compile\"" >&5) 16972 (eval "$lt_compile" 2>conftest.err) 16973 ac_status=$? 16974 cat conftest.err >&5 16975 echo "$as_me:16975: \$? = $ac_status" >&5 16976 if (exit $ac_status) && test -s "$ac_outfile"; then 16977 # The compiler can only warn and ignore the option if not recognized 16978 # So say no if there are warnings other than the usual output. 16979 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16980 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16981 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16982 lt_prog_compiler_pic_works_GCJ=yes 16983 fi 16984 fi 16985 $rm conftest* 16986 16987fi 16988{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 16989echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } 16990 16991if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 16992 case $lt_prog_compiler_pic_GCJ in 16993 "" | " "*) ;; 16994 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 16995 esac 16996else 16997 lt_prog_compiler_pic_GCJ= 16998 lt_prog_compiler_can_build_shared_GCJ=no 16999fi 17000 17001fi 17002case $host_os in 17003 # For platforms which do not support PIC, -DPIC is meaningless: 17004 *djgpp*) 17005 lt_prog_compiler_pic_GCJ= 17006 ;; 17007 *) 17008 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 17009 ;; 17010esac 17011 17012# 17013# Check to make sure the static flag actually works. 17014# 17015wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 17016{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 17017echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 17018if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 17019 echo $ECHO_N "(cached) $ECHO_C" >&6 17020else 17021 lt_prog_compiler_static_works_GCJ=no 17022 save_LDFLAGS="$LDFLAGS" 17023 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17024 printf "$lt_simple_link_test_code" > conftest.$ac_ext 17025 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17026 # The linker can only warn and ignore the option if not recognized 17027 # So say no if there are warnings 17028 if test -s conftest.err; then 17029 # Append any errors to the config.log. 17030 cat conftest.err 1>&5 17031 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 17032 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17033 if diff conftest.exp conftest.er2 >/dev/null; then 17034 lt_prog_compiler_static_works_GCJ=yes 17035 fi 17036 else 17037 lt_prog_compiler_static_works_GCJ=yes 17038 fi 17039 fi 17040 $rm conftest* 17041 LDFLAGS="$save_LDFLAGS" 17042 17043fi 17044{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 17045echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } 17046 17047if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 17048 : 17049else 17050 lt_prog_compiler_static_GCJ= 17051fi 17052 17053 17054{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 17055echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 17056if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 17057 echo $ECHO_N "(cached) $ECHO_C" >&6 17058else 17059 lt_cv_prog_compiler_c_o_GCJ=no 17060 $rm -r conftest 2>/dev/null 17061 mkdir conftest 17062 cd conftest 17063 mkdir out 17064 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17065 17066 lt_compiler_flag="-o out/conftest2.$ac_objext" 17067 # Insert the option either (1) after the last *FLAGS variable, or 17068 # (2) before a word containing "conftest.", or (3) at the end. 17069 # Note that $ac_compile itself does not contain backslashes and begins 17070 # with a dollar sign (not a hyphen), so the echo should work correctly. 17071 lt_compile=`echo "$ac_compile" | $SED \ 17072 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17073 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17074 -e 's:$: $lt_compiler_flag:'` 17075 (eval echo "\"\$as_me:17075: $lt_compile\"" >&5) 17076 (eval "$lt_compile" 2>out/conftest.err) 17077 ac_status=$? 17078 cat out/conftest.err >&5 17079 echo "$as_me:17079: \$? = $ac_status" >&5 17080 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17081 then 17082 # The compiler can only warn and ignore the option if not recognized 17083 # So say no if there are warnings 17084 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 17085 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17086 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17087 lt_cv_prog_compiler_c_o_GCJ=yes 17088 fi 17089 fi 17090 chmod u+w . 2>&5 17091 $rm conftest* 17092 # SGI C++ compiler will create directory out/ii_files/ for 17093 # template instantiation 17094 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 17095 $rm out/* && rmdir out 17096 cd .. 17097 rmdir conftest 17098 $rm conftest* 17099 17100fi 17101{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 17102echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } 17103 17104 17105hard_links="nottested" 17106if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 17107 # do not overwrite the value of need_locks provided by the user 17108 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 17109echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 17110 hard_links=yes 17111 $rm conftest* 17112 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17113 touch conftest.a 17114 ln conftest.a conftest.b 2>&5 || hard_links=no 17115 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17116 { echo "$as_me:$LINENO: result: $hard_links" >&5 17117echo "${ECHO_T}$hard_links" >&6; } 17118 if test "$hard_links" = no; then 17119 { echo "$as_me:$LINENO: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 17120echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 17121 need_locks=warn 17122 fi 17123else 17124 need_locks=no 17125fi 17126 17127{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17128echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 17129 17130 runpath_var= 17131 allow_undefined_flag_GCJ= 17132 enable_shared_with_static_runtimes_GCJ=no 17133 archive_cmds_GCJ= 17134 archive_expsym_cmds_GCJ= 17135 old_archive_From_new_cmds_GCJ= 17136 old_archive_from_expsyms_cmds_GCJ= 17137 export_dynamic_flag_spec_GCJ= 17138 whole_archive_flag_spec_GCJ= 17139 thread_safe_flag_spec_GCJ= 17140 hardcode_libdir_flag_spec_GCJ= 17141 hardcode_libdir_flag_spec_ld_GCJ= 17142 hardcode_libdir_separator_GCJ= 17143 hardcode_direct_GCJ=no 17144 hardcode_minus_L_GCJ=no 17145 hardcode_shlibpath_var_GCJ=unsupported 17146 link_all_deplibs_GCJ=unknown 17147 hardcode_automatic_GCJ=no 17148 module_cmds_GCJ= 17149 module_expsym_cmds_GCJ= 17150 always_export_symbols_GCJ=no 17151 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17152 # include_expsyms should be a list of space-separated symbols to be *always* 17153 # included in the symbol list 17154 include_expsyms_GCJ= 17155 # exclude_expsyms can be an extended regexp of symbols to exclude 17156 # it will be wrapped by ' (' and ')$', so one must not match beginning or 17157 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 17158 # as well as any symbol that contains 'd'. 17159 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 17160 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 17161 # platforms (ab)use it in PIC code, but their linkers get confused if 17162 # the symbol is explicitly referenced. Since portable code cannot 17163 # rely on this symbol name, it's probably fine to never include it in 17164 # preloaded symbol tables. 17165 extract_expsyms_cmds= 17166 # Just being paranoid about ensuring that cc_basename is set. 17167 for cc_temp in $compiler""; do 17168 case $cc_temp in 17169 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17170 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17171 \-*) ;; 17172 *) break;; 17173 esac 17174done 17175cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17176 17177 case $host_os in 17178 cygwin* | mingw* | pw32*) 17179 # FIXME: the MSVC++ port hasn't been tested in a loooong time 17180 # When not using gcc, we currently assume that we are using 17181 # Microsoft Visual C++. 17182 if test "$GCC" != yes; then 17183 with_gnu_ld=no 17184 fi 17185 ;; 17186 interix*) 17187 # we just hope/assume this is gcc and not c89 (= MSVC++) 17188 with_gnu_ld=yes 17189 ;; 17190 mirbsd*) 17191 with_gnu_ld=yes 17192 ;; 17193 openbsd*) 17194 with_gnu_ld=no 17195 ;; 17196 esac 17197 17198 ld_shlibs_GCJ=yes 17199 if test "$with_gnu_ld" = yes; then 17200 # If archive_cmds runs LD, not CC, wlarc should be empty 17201 wlarc='${wl}' 17202 17203 # Set some defaults for GNU ld with shared library support. These 17204 # are reset later if shared libraries are not supported. Putting them 17205 # here allows them to be overridden if necessary. 17206 runpath_var=LD_RUN_PATH 17207 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 17208 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 17209 # ancient GNU ld didn't support --whole-archive et. al. 17210 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 17211 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 17212 else 17213 whole_archive_flag_spec_GCJ= 17214 fi 17215 supports_anon_versioning=no 17216 case `$LD -v 2>/dev/null` in 17217 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 17218 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 17219 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 17220 *\ 2.11.*) ;; # other 2.11 versions 17221 *) supports_anon_versioning=yes ;; 17222 esac 17223 17224 # See if GNU ld supports shared libraries. 17225 case $host_os in 17226 aix3* | aix4* | aix5*) 17227 # On AIX/PPC, the GNU linker is very broken 17228 if test "$host_cpu" != ia64; then 17229 ld_shlibs_GCJ=no 17230 cat <<EOF 1>&2 17231 17232*** Warning: the GNU linker, at least up to release 2.9.1, is reported 17233*** to be unable to reliably create shared libraries on AIX. 17234*** Therefore, libtool is disabling shared libraries support. If you 17235*** really care for shared libraries, you may want to modify your PATH 17236*** so that a non-GNU linker is found, and then restart. 17237 17238EOF 17239 fi 17240 ;; 17241 17242 amigaos*) 17243 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)' 17244 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17245 hardcode_minus_L_GCJ=yes 17246 17247 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 17248 # that the semantics of dynamic libraries on AmigaOS, at least up 17249 # to version 4, is to share data among multiple programs linked 17250 # with the same dynamic library. Since this doesn't match the 17251 # behavior of shared libraries on other platforms, we can't use 17252 # them. 17253 ld_shlibs_GCJ=no 17254 ;; 17255 17256 beos*) 17257 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17258 allow_undefined_flag_GCJ=unsupported 17259 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 17260 # support --undefined. This deserves some investigation. FIXME 17261 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17262 else 17263 ld_shlibs_GCJ=no 17264 fi 17265 ;; 17266 17267 cygwin* | mingw* | pw32*) 17268 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 17269 # as there is no search path for DLLs. 17270 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17271 allow_undefined_flag_GCJ=unsupported 17272 always_export_symbols_GCJ=no 17273 enable_shared_with_static_runtimes_GCJ=yes 17274 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 17275 17276 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 17277 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17278 # If the export-symbols file already is a .def file (1st line 17279 # is EXPORTS), use it as is; otherwise, prepend... 17280 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 17281 cp $export_symbols $output_objdir/$soname.def; 17282 else 17283 echo EXPORTS > $output_objdir/$soname.def; 17284 cat $export_symbols >> $output_objdir/$soname.def; 17285 fi~ 17286 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17287 else 17288 ld_shlibs_GCJ=no 17289 fi 17290 ;; 17291 17292 interix3*) 17293 hardcode_direct_GCJ=no 17294 hardcode_shlibpath_var_GCJ=no 17295 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17296 export_dynamic_flag_spec_GCJ='${wl}-E' 17297 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 17298 # Instead, shared libraries are loaded at an image base (0x10000000 by 17299 # default) and relocated if they conflict, which is a slow very memory 17300 # consuming and fragmenting process. To avoid this, we pick a random, 17301 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 17302 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 17303 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' 17304 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' 17305 ;; 17306 17307 linux*) 17308 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17309 tmp_addflag= 17310 case $cc_basename,$host_cpu in 17311 pgcc*) # Portland Group C compiler 17312 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' 17313 tmp_addflag=' $pic_flag' 17314 ;; 17315 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 17316 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' 17317 tmp_addflag=' $pic_flag -Mnomain' ;; 17318 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 17319 tmp_addflag=' -i_dynamic' ;; 17320 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 17321 tmp_addflag=' -i_dynamic -nofor_main' ;; 17322 ifc* | ifort*) # Intel Fortran compiler 17323 tmp_addflag=' -nofor_main' ;; 17324 esac 17325 case `$CC -V 2>&1 | sed 5q` in 17326 *Sun\ C*) # Sun C 5.9 17327 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' 17328 tmp_sharedflag='-G' ;; 17329 *Sun\ F*) # Sun Fortran 8.3 17330 tmp_sharedflag='-G' ;; 17331 *) 17332 tmp_sharedflag='-shared' ;; 17333 esac 17334 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17335 17336 if test $supports_anon_versioning = yes; then 17337 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 17338 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17339 $echo "local: *; };" >> $output_objdir/$libname.ver~ 17340 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17341 fi 17342 else 17343 ld_shlibs_GCJ=no 17344 fi 17345 ;; 17346 17347 mirbsd*) 17348 hardcode_direct_GCJ=yes 17349 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags -o $lib' 17350 archive_expsym_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 17351 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17352 export_dynamic_flag_spec_GCJ='${wl}-E' 17353 ;; 17354 17355 netbsd*) 17356 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17357 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17358 wlarc= 17359 else 17360 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17361 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17362 fi 17363 ;; 17364 17365 solaris*) 17366 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 17367 ld_shlibs_GCJ=no 17368 cat <<EOF 1>&2 17369 17370*** Warning: The releases 2.8.* of the GNU linker cannot reliably 17371*** create shared libraries on Solaris systems. Therefore, libtool 17372*** is disabling shared libraries support. We urge you to upgrade GNU 17373*** binutils to release 2.9.1 or newer. Another option is to modify 17374*** your PATH or compiler configuration so that the native linker is 17375*** used, and then restart. 17376 17377EOF 17378 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17379 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17380 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17381 else 17382 ld_shlibs_GCJ=no 17383 fi 17384 ;; 17385 17386 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 17387 case `$LD -v 2>&1` in 17388 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 17389 ld_shlibs_GCJ=no 17390 cat <<_LT_EOF 1>&2 17391 17392*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 17393*** reliably create shared libraries on SCO systems. Therefore, libtool 17394*** is disabling shared libraries support. We urge you to upgrade GNU 17395*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 17396*** your PATH or compiler configuration so that the native linker is 17397*** used, and then restart. 17398 17399_LT_EOF 17400 ;; 17401 *) 17402 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17403 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 17404 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 17405 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 17406 else 17407 ld_shlibs_GCJ=no 17408 fi 17409 ;; 17410 esac 17411 ;; 17412 17413 sunos4*) 17414 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17415 wlarc= 17416 hardcode_direct_GCJ=yes 17417 hardcode_shlibpath_var_GCJ=no 17418 ;; 17419 17420 *) 17421 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17422 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17423 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17424 else 17425 ld_shlibs_GCJ=no 17426 fi 17427 ;; 17428 esac 17429 17430 if test "$ld_shlibs_GCJ" = no; then 17431 runpath_var= 17432 hardcode_libdir_flag_spec_GCJ= 17433 export_dynamic_flag_spec_GCJ= 17434 whole_archive_flag_spec_GCJ= 17435 fi 17436 else 17437 # PORTME fill in a description of your system's linker (not GNU ld) 17438 case $host_os in 17439 aix3*) 17440 allow_undefined_flag_GCJ=unsupported 17441 always_export_symbols_GCJ=yes 17442 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' 17443 # Note: this linker hardcodes the directories in LIBPATH if there 17444 # are no directories specified by -L. 17445 hardcode_minus_L_GCJ=yes 17446 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 17447 # Neither direct hardcoding nor static linking is supported with a 17448 # broken collect2. 17449 hardcode_direct_GCJ=unsupported 17450 fi 17451 ;; 17452 17453 aix4* | aix5*) 17454 if test "$host_cpu" = ia64; then 17455 # On IA64, the linker does run time linking by default, so we don't 17456 # have to do anything special. 17457 aix_use_runtimelinking=no 17458 exp_sym_flag='-Bexport' 17459 no_entry_flag="" 17460 else 17461 # If we're using GNU nm, then we don't want the "-C" option. 17462 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17463 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 17464 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' 17465 else 17466 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' 17467 fi 17468 aix_use_runtimelinking=no 17469 17470 # Test if we are trying to use run time linking or normal 17471 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17472 # need to do runtime linking. 17473 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 17474 for ld_flag in $LDFLAGS; do 17475 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17476 aix_use_runtimelinking=yes 17477 break 17478 fi 17479 done 17480 ;; 17481 esac 17482 17483 exp_sym_flag='-bexport' 17484 no_entry_flag='-bnoentry' 17485 fi 17486 17487 # When large executables or shared objects are built, AIX ld can 17488 # have problems creating the table of contents. If linking a library 17489 # or program results in "error TOC overflow" add -mminimal-toc to 17490 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17491 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17492 17493 archive_cmds_GCJ='' 17494 hardcode_direct_GCJ=yes 17495 hardcode_libdir_separator_GCJ=':' 17496 link_all_deplibs_GCJ=yes 17497 17498 if test "$GCC" = yes; then 17499 case $host_os in aix4.[012]|aix4.[012].*) 17500 # We only want to do this on AIX 4.2 and lower, the check 17501 # below for broken collect2 doesn't work under 4.3+ 17502 collect2name=`${CC} -print-prog-name=collect2` 17503 if test -f "$collect2name" && \ 17504 strings "$collect2name" | grep resolve_lib_name >/dev/null 17505 then 17506 # We have reworked collect2 17507 : 17508 else 17509 # We have old collect2 17510 hardcode_direct_GCJ=unsupported 17511 # It fails to find uninstalled libraries when the uninstalled 17512 # path is not listed in the libpath. Setting hardcode_minus_L 17513 # to unsupported forces relinking 17514 hardcode_minus_L_GCJ=yes 17515 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17516 hardcode_libdir_separator_GCJ= 17517 fi 17518 ;; 17519 esac 17520 shared_flag='-shared' 17521 if test "$aix_use_runtimelinking" = yes; then 17522 shared_flag="$shared_flag "'${wl}-G' 17523 fi 17524 else 17525 # not using gcc 17526 if test "$host_cpu" = ia64; then 17527 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17528 # chokes on -Wl,-G. The following line is correct: 17529 shared_flag='-G' 17530 else 17531 if test "$aix_use_runtimelinking" = yes; then 17532 shared_flag='${wl}-G' 17533 else 17534 shared_flag='${wl}-bM:SRE' 17535 fi 17536 fi 17537 fi 17538 17539 # It seems that -bexpall does not export symbols beginning with 17540 # underscore (_), so it is better to generate a list of symbols to export. 17541 always_export_symbols_GCJ=yes 17542 if test "$aix_use_runtimelinking" = yes; then 17543 # Warning - without using the other runtime loading flags (-brtl), 17544 # -berok will link without error, but may produce a broken library. 17545 allow_undefined_flag_GCJ='-berok' 17546 # Determine the default libpath from the value encoded in an empty executable. 17547 aix_libpath="/usr/lib:/lib" 17548 17549 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17550 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" 17551 else 17552 if test "$host_cpu" = ia64; then 17553 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17554 allow_undefined_flag_GCJ="-z nodefs" 17555 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" 17556 else 17557 # Determine the default libpath from the value encoded in an empty executable. 17558 aix_libpath="/usr/lib:/lib" 17559 17560 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17561 # Warning - without using the other run time loading flags, 17562 # -berok will link without error, but may produce a broken library. 17563 no_undefined_flag_GCJ=' ${wl}-bernotok' 17564 allow_undefined_flag_GCJ=' ${wl}-berok' 17565 # Exported symbols can be pulled into shared objects from archives 17566 whole_archive_flag_spec_GCJ='$convenience' 17567 archive_cmds_need_lc_GCJ=yes 17568 # This is similar to how AIX traditionally builds its shared libraries. 17569 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' 17570 fi 17571 fi 17572 ;; 17573 17574 amigaos*) 17575 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)' 17576 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17577 hardcode_minus_L_GCJ=yes 17578 # see comment about different semantics on the GNU ld section 17579 ld_shlibs_GCJ=no 17580 ;; 17581 17582 bsdi[45]*) 17583 export_dynamic_flag_spec_GCJ=-rdynamic 17584 ;; 17585 17586 cygwin* | mingw* | pw32*) 17587 # When not using gcc, we currently assume that we are using 17588 # Microsoft Visual C++. 17589 # hardcode_libdir_flag_spec is actually meaningless, as there is 17590 # no search path for DLLs. 17591 hardcode_libdir_flag_spec_GCJ=' ' 17592 allow_undefined_flag_GCJ=unsupported 17593 # Tell ltmain to make .lib files, not .a files. 17594 libext=lib 17595 # Tell ltmain to make .dll files, not .so files. 17596 shrext_cmds=".dll" 17597 # FIXME: Setting linknames here is a bad hack. 17598 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17599 # The linker will automatically build a .lib file if we build a DLL. 17600 old_archive_From_new_cmds_GCJ='true' 17601 # FIXME: Should let the user specify the lib program. 17602 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 17603 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17604 enable_shared_with_static_runtimes_GCJ=yes 17605 ;; 17606 17607 darwin* | rhapsody*) 17608 case $host_os in 17609 rhapsody* | darwin1.[012]) 17610 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17611 ;; 17612 *) # Darwin 1.3 on 17613 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17614 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17615 else 17616 case ${MACOSX_DEPLOYMENT_TARGET} in 17617 10.[012]) 17618 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17619 ;; 17620 10.*) 17621 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17622 ;; 17623 esac 17624 fi 17625 ;; 17626 esac 17627 archive_cmds_need_lc_GCJ=no 17628 hardcode_direct_GCJ=no 17629 hardcode_automatic_GCJ=yes 17630 hardcode_shlibpath_var_GCJ=unsupported 17631 whole_archive_flag_spec_GCJ='' 17632 link_all_deplibs_GCJ=yes 17633 if test "$GCC" = yes ; then 17634 output_verbose_link_cmd='echo' 17635 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 17636 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17637 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17638 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}' 17639 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}' 17640 else 17641 case $cc_basename in 17642 xlc*) 17643 output_verbose_link_cmd='echo' 17644 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 17645 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17646 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17647 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}' 17648 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}' 17649 ;; 17650 *) 17651 ld_shlibs_GCJ=no 17652 ;; 17653 esac 17654 fi 17655 ;; 17656 17657 dgux*) 17658 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17659 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17660 hardcode_shlibpath_var_GCJ=no 17661 ;; 17662 17663 freebsd1*) 17664 ld_shlibs_GCJ=no 17665 ;; 17666 17667 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17668 # support. Future versions do this automatically, but an explicit c++rt0.o 17669 # does not break anything, and helps significantly (at the cost of a little 17670 # extra space). 17671 freebsd2.2*) 17672 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17673 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17674 hardcode_direct_GCJ=yes 17675 hardcode_shlibpath_var_GCJ=no 17676 ;; 17677 17678 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17679 freebsd2*) 17680 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17681 hardcode_direct_GCJ=yes 17682 hardcode_minus_L_GCJ=yes 17683 hardcode_shlibpath_var_GCJ=no 17684 ;; 17685 17686 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17687 freebsd* | kfreebsd*-gnu | dragonfly*) 17688 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17689 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17690 hardcode_direct_GCJ=yes 17691 hardcode_shlibpath_var_GCJ=no 17692 ;; 17693 17694 hpux9*) 17695 if test "$GCC" = yes; then 17696 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' 17697 else 17698 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' 17699 fi 17700 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17701 hardcode_libdir_separator_GCJ=: 17702 hardcode_direct_GCJ=yes 17703 17704 # hardcode_minus_L: Not really in the search PATH, 17705 # but as the default location of the library. 17706 hardcode_minus_L_GCJ=yes 17707 export_dynamic_flag_spec_GCJ='${wl}-E' 17708 ;; 17709 17710 hpux10*) 17711 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17712 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17713 else 17714 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17715 fi 17716 if test "$with_gnu_ld" = no; then 17717 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17718 hardcode_libdir_separator_GCJ=: 17719 17720 hardcode_direct_GCJ=yes 17721 export_dynamic_flag_spec_GCJ='${wl}-E' 17722 17723 # hardcode_minus_L: Not really in the search PATH, 17724 # but as the default location of the library. 17725 hardcode_minus_L_GCJ=yes 17726 fi 17727 ;; 17728 17729 hpux11*) 17730 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17731 case $host_cpu in 17732 hppa*64*) 17733 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17734 ;; 17735 ia64*) 17736 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17737 ;; 17738 *) 17739 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17740 ;; 17741 esac 17742 else 17743 case $host_cpu in 17744 hppa*64*) 17745 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17746 ;; 17747 ia64*) 17748 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17749 ;; 17750 *) 17751 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17752 ;; 17753 esac 17754 fi 17755 if test "$with_gnu_ld" = no; then 17756 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17757 hardcode_libdir_separator_GCJ=: 17758 17759 case $host_cpu in 17760 hppa*64*|ia64*) 17761 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 17762 hardcode_direct_GCJ=no 17763 hardcode_shlibpath_var_GCJ=no 17764 ;; 17765 *) 17766 hardcode_direct_GCJ=yes 17767 export_dynamic_flag_spec_GCJ='${wl}-E' 17768 17769 # hardcode_minus_L: Not really in the search PATH, 17770 # but as the default location of the library. 17771 hardcode_minus_L_GCJ=yes 17772 ;; 17773 esac 17774 fi 17775 ;; 17776 17777 irix5* | irix6* | nonstopux*) 17778 if test "$GCC" = yes; then 17779 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' 17780 else 17781 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' 17782 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 17783 fi 17784 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17785 hardcode_libdir_separator_GCJ=: 17786 link_all_deplibs_GCJ=yes 17787 ;; 17788 17789 netbsd*) 17790 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17791 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17792 else 17793 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17794 fi 17795 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17796 hardcode_direct_GCJ=yes 17797 hardcode_shlibpath_var_GCJ=no 17798 ;; 17799 17800 newsos6) 17801 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17802 hardcode_direct_GCJ=yes 17803 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17804 hardcode_libdir_separator_GCJ=: 17805 hardcode_shlibpath_var_GCJ=no 17806 ;; 17807 17808 openbsd*) 17809 hardcode_direct_GCJ=yes 17810 hardcode_shlibpath_var_GCJ=no 17811 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17812 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags -o $lib' 17813 archive_expsym_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 17814 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17815 export_dynamic_flag_spec_GCJ='${wl}-E' 17816 else 17817 case $host_os in 17818 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 17819 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17820 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17821 ;; 17822 *) 17823 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17824 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17825 ;; 17826 esac 17827 fi 17828 ;; 17829 17830 os2*) 17831 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17832 hardcode_minus_L_GCJ=yes 17833 allow_undefined_flag_GCJ=unsupported 17834 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' 17835 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 17836 ;; 17837 17838 osf3*) 17839 if test "$GCC" = yes; then 17840 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17841 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' 17842 else 17843 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17844 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' 17845 fi 17846 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17847 hardcode_libdir_separator_GCJ=: 17848 ;; 17849 17850 osf4* | osf5*) # as osf3* with the addition of -msym flag 17851 if test "$GCC" = yes; then 17852 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17853 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' 17854 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17855 else 17856 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17857 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' 17858 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~ 17859 $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' 17860 17861 # Both c and cxx compiler support -rpath directly 17862 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 17863 fi 17864 hardcode_libdir_separator_GCJ=: 17865 ;; 17866 17867 solaris*) 17868 no_undefined_flag_GCJ=' -z text' 17869 if test "$GCC" = yes; then 17870 wlarc='${wl}' 17871 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17872 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17873 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 17874 else 17875 wlarc='' 17876 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17877 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17878 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17879 fi 17880 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17881 hardcode_shlibpath_var_GCJ=no 17882 case $host_os in 17883 solaris2.[0-5] | solaris2.[0-5].*) ;; 17884 *) 17885 # The compiler driver will combine and reorder linker options, 17886 # but understands `-z linker_flag'. GCC discards it without `$wl', 17887 # but is careful enough not to reorder. 17888 # Supported since Solaris 2.6 (maybe 2.5.1?) 17889 if test "$GCC" = yes; then 17890 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 17891 else 17892 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' 17893 fi 17894 ;; 17895 esac 17896 link_all_deplibs_GCJ=yes 17897 ;; 17898 17899 sunos4*) 17900 if test "x$host_vendor" = xsequent; then 17901 # Use $CC to link under sequent, because it throws in some extra .o 17902 # files that make .init and .fini sections work. 17903 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17904 else 17905 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17906 fi 17907 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17908 hardcode_direct_GCJ=yes 17909 hardcode_minus_L_GCJ=yes 17910 hardcode_shlibpath_var_GCJ=no 17911 ;; 17912 17913 sysv4) 17914 case $host_vendor in 17915 sni) 17916 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17917 hardcode_direct_GCJ=yes # is this really true??? 17918 ;; 17919 siemens) 17920 ## LD is ld it makes a PLAMLIB 17921 ## CC just makes a GrossModule. 17922 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17923 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 17924 hardcode_direct_GCJ=no 17925 ;; 17926 motorola) 17927 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17928 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 17929 ;; 17930 esac 17931 runpath_var='LD_RUN_PATH' 17932 hardcode_shlibpath_var_GCJ=no 17933 ;; 17934 17935 sysv4.3*) 17936 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17937 hardcode_shlibpath_var_GCJ=no 17938 export_dynamic_flag_spec_GCJ='-Bexport' 17939 ;; 17940 17941 sysv4*MP*) 17942 if test -d /usr/nec; then 17943 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17944 hardcode_shlibpath_var_GCJ=no 17945 runpath_var=LD_RUN_PATH 17946 hardcode_runpath_var=yes 17947 ld_shlibs_GCJ=yes 17948 fi 17949 ;; 17950 17951 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 17952 no_undefined_flag_GCJ='${wl}-z,text' 17953 archive_cmds_need_lc_GCJ=no 17954 hardcode_shlibpath_var_GCJ=no 17955 runpath_var='LD_RUN_PATH' 17956 17957 if test "$GCC" = yes; then 17958 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17959 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17960 else 17961 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17962 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17963 fi 17964 ;; 17965 17966 sysv5* | sco3.2v5* | sco5v6*) 17967 # Note: We can NOT use -z defs as we might desire, because we do not 17968 # link with -lc, and that would cause any symbols used from libc to 17969 # always be unresolved, which means just about no library would 17970 # ever link correctly. If we're not using GNU ld we use -z text 17971 # though, which does catch some bad symbols but isn't as heavy-handed 17972 # as -z defs. 17973 no_undefined_flag_GCJ='${wl}-z,text' 17974 allow_undefined_flag_GCJ='${wl}-z,nodefs' 17975 archive_cmds_need_lc_GCJ=no 17976 hardcode_shlibpath_var_GCJ=no 17977 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 17978 hardcode_libdir_separator_GCJ=':' 17979 link_all_deplibs_GCJ=yes 17980 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 17981 runpath_var='LD_RUN_PATH' 17982 17983 if test "$GCC" = yes; then 17984 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17985 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17986 else 17987 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17988 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17989 fi 17990 ;; 17991 17992 uts4*) 17993 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17994 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17995 hardcode_shlibpath_var_GCJ=no 17996 ;; 17997 17998 *) 17999 ld_shlibs_GCJ=no 18000 ;; 18001 esac 18002 fi 18003 18004{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 18005echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } 18006test "$ld_shlibs_GCJ" = no && can_build_shared=no 18007 18008# 18009# Do we need to explicitly link libc? 18010# 18011case "x$archive_cmds_need_lc_GCJ" in 18012x|xyes) 18013 # Assume -lc should be added 18014 archive_cmds_need_lc_GCJ=yes 18015 18016 if test "$enable_shared" = yes && test "$GCC" = yes; then 18017 case $archive_cmds_GCJ in 18018 *'~'*) 18019 # FIXME: we may have to deal with multi-command sequences. 18020 ;; 18021 '$CC '*) 18022 # Test whether the compiler implicitly links with -lc since on some 18023 # systems, -lgcc has to come before -lc. If gcc already passes -lc 18024 # to ld, don't add -lc before -lgcc. 18025 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 18026echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 18027 $rm conftest* 18028 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 18029 18030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18031 (eval $ac_compile) 2>&5 18032 ac_status=$? 18033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18034 (exit $ac_status); } 2>conftest.err; then 18035 soname=conftest 18036 lib=conftest 18037 libobjs=conftest.$ac_objext 18038 deplibs= 18039 wl=$lt_prog_compiler_wl_GCJ 18040 pic_flag=$lt_prog_compiler_pic_GCJ 18041 compiler_flags=-v 18042 linker_flags=-v 18043 verstring= 18044 output_objdir=. 18045 libname=conftest 18046 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 18047 allow_undefined_flag_GCJ= 18048 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 18049 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 18050 ac_status=$? 18051 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18052 (exit $ac_status); } 18053 then 18054 archive_cmds_need_lc_GCJ=no 18055 else 18056 archive_cmds_need_lc_GCJ=yes 18057 fi 18058 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 18059 else 18060 cat conftest.err 1>&5 18061 fi 18062 $rm conftest* 18063 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 18064echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } 18065 ;; 18066 esac 18067 fi 18068 ;; 18069esac 18070 18071{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 18072echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 18073library_names_spec= 18074libname_spec='lib$name' 18075soname_spec= 18076shrext_cmds=".so" 18077postinstall_cmds= 18078postuninstall_cmds= 18079finish_cmds= 18080finish_eval= 18081shlibpath_var= 18082shlibpath_overrides_runpath=unknown 18083version_type=none 18084dynamic_linker="$host_os ld.so" 18085sys_lib_dlsearch_path_spec="/lib /usr/lib" 18086if test "$GCC" = yes; then 18087 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18088 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 18089 # if the path contains ";" then we assume it to be the separator 18090 # otherwise default to the standard path separator (i.e. ":") - it is 18091 # assumed that no part of a normal pathname contains ";" but that should 18092 # okay in the real world where ";" in dirpaths is itself problematic. 18093 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18094 else 18095 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18096 fi 18097else 18098 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18099fi 18100tmp="$sys_lib_search_path_spec" 18101sys_lib_search_path_spec= 18102sp= 18103for i in $tmp 18104do 18105 test -d $i && sys_lib_search_path_spec="$sys_lib_search_path_spec$sp$i" 18106 sp=" " 18107done 18108 18109need_lib_prefix=unknown 18110hardcode_into_libs=no 18111 18112# when you set need_version to no, make sure it does not cause -set_version 18113# flags to be left without arguments 18114need_version=unknown 18115 18116case $host_os in 18117aix3*) 18118 version_type=linux 18119 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 18120 shlibpath_var=LIBPATH 18121 18122 # AIX 3 has no versioning support, so we append a major version to the name. 18123 soname_spec='${libname}${release}${shared_ext}$major' 18124 ;; 18125 18126aix4* | aix5*) 18127 version_type=linux 18128 need_lib_prefix=no 18129 need_version=no 18130 hardcode_into_libs=yes 18131 if test "$host_cpu" = ia64; then 18132 # AIX 5 supports IA64 18133 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 18134 shlibpath_var=LD_LIBRARY_PATH 18135 else 18136 # With GCC up to 2.95.x, collect2 would create an import file 18137 # for dependence libraries. The import file would start with 18138 # the line '#! .'. This would cause the generated library to 18139 # depend on '.', always an invalid library. This was fixed in 18140 # development snapshots of GCC prior to 3.0. 18141 case $host_os in 18142 aix4 | aix4.[01] | aix4.[01].*) 18143 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18144 echo ' yes ' 18145 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 18146 : 18147 else 18148 can_build_shared=no 18149 fi 18150 ;; 18151 esac 18152 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 18153 # soname into executable. Probably we can add versioning support to 18154 # collect2, so additional links can be useful in future. 18155 if test "$aix_use_runtimelinking" = yes; then 18156 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18157 # instead of lib<name>.a to let people know that these are not 18158 # typical AIX shared libraries. 18159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18160 else 18161 # We preserve .a as extension for shared libraries through AIX4.2 18162 # and later when we are not doing run time linking. 18163 library_names_spec='${libname}${release}.a $libname.a' 18164 soname_spec='${libname}${release}${shared_ext}$major' 18165 fi 18166 shlibpath_var=LIBPATH 18167 fi 18168 ;; 18169 18170amigaos*) 18171 library_names_spec='$libname.ixlibrary $libname.a' 18172 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18173 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' 18174 ;; 18175 18176beos*) 18177 library_names_spec='${libname}${shared_ext}' 18178 dynamic_linker="$host_os ld.so" 18179 shlibpath_var=LIBRARY_PATH 18180 ;; 18181 18182bsdi[45]*) 18183 version_type=linux 18184 need_version=no 18185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18186 soname_spec='${libname}${release}${shared_ext}$major' 18187 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18188 shlibpath_var=LD_LIBRARY_PATH 18189 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18190 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18191 # the default ld.so.conf also contains /usr/contrib/lib and 18192 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18193 # libtool to hard-code these into programs 18194 ;; 18195 18196cygwin* | mingw* | pw32*) 18197 version_type=windows 18198 shrext_cmds=".dll" 18199 need_version=no 18200 need_lib_prefix=no 18201 18202 case $GCC,$host_os in 18203 yes,cygwin* | yes,mingw* | yes,pw32*) 18204 library_names_spec='$libname.dll.a' 18205 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18206 postinstall_cmds='base_file=`basename \${file}`~ 18207 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 18208 dldir=$destdir/`dirname \$dlpath`~ 18209 test -d \$dldir || mkdir -p \$dldir~ 18210 $install_prog $dir/$dlname \$dldir/$dlname~ 18211 chmod a+x \$dldir/$dlname' 18212 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18213 dlpath=$dir/\$dldll~ 18214 $rm \$dlpath' 18215 shlibpath_overrides_runpath=yes 18216 18217 case $host_os in 18218 cygwin*) 18219 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18220 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18221 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 18222 ;; 18223 mingw*) 18224 # MinGW DLLs use traditional 'lib' prefix 18225 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18226 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18227 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 18228 # It is most probably a Windows format PATH printed by 18229 # mingw gcc, but we are running on Cygwin. Gcc prints its search 18230 # path with ; separators, and with drive letters. We can handle the 18231 # drive letters (cygwin fileutils understands them), so leave them, 18232 # especially as we might pass files found there to a mingw objdump, 18233 # which wouldn't understand a cygwinified path. Ahh. 18234 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18235 else 18236 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18237 fi 18238 ;; 18239 pw32*) 18240 # pw32 DLLs use 'pw' prefix rather than 'lib' 18241 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18242 ;; 18243 esac 18244 ;; 18245 18246 *) 18247 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 18248 ;; 18249 esac 18250 dynamic_linker='Win32 ld.exe' 18251 # FIXME: first we should search . and the directory the executable is in 18252 shlibpath_var=PATH 18253 ;; 18254 18255darwin* | rhapsody*) 18256 dynamic_linker="$host_os dyld" 18257 version_type=darwin 18258 need_lib_prefix=no 18259 need_version=no 18260 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 18261 soname_spec='${libname}${release}${major}$shared_ext' 18262 shlibpath_overrides_runpath=yes 18263 shlibpath_var=DYLD_LIBRARY_PATH 18264 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18265 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 18266 if test "$GCC" = yes; then 18267 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"` 18268 else 18269 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 18270 fi 18271 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18272 ;; 18273 18274dgux*) 18275 version_type=linux 18276 need_lib_prefix=no 18277 need_version=no 18278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 18279 soname_spec='${libname}${release}${shared_ext}$major' 18280 shlibpath_var=LD_LIBRARY_PATH 18281 ;; 18282 18283freebsd1*) 18284 dynamic_linker=no 18285 ;; 18286 18287kfreebsd*-gnu) 18288 version_type=linux 18289 need_lib_prefix=no 18290 need_version=no 18291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18292 soname_spec='${libname}${release}${shared_ext}$major' 18293 shlibpath_var=LD_LIBRARY_PATH 18294 shlibpath_overrides_runpath=no 18295 hardcode_into_libs=yes 18296 dynamic_linker='GNU ld.so' 18297 ;; 18298 18299freebsd* | dragonfly*) 18300 # DragonFly does not have aout. When/if they implement a new 18301 # versioning mechanism, adjust this. 18302 if test -x /usr/bin/objformat; then 18303 objformat=`/usr/bin/objformat` 18304 else 18305 case $host_os in 18306 freebsd[123]*) objformat=aout ;; 18307 *) objformat=elf ;; 18308 esac 18309 fi 18310 version_type=freebsd-$objformat 18311 case $version_type in 18312 freebsd-elf*) 18313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18314 need_version=no 18315 need_lib_prefix=no 18316 ;; 18317 freebsd-*) 18318 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18319 need_version=yes 18320 ;; 18321 esac 18322 shlibpath_var=LD_LIBRARY_PATH 18323 case $host_os in 18324 freebsd2*) 18325 shlibpath_overrides_runpath=yes 18326 ;; 18327 freebsd3.[01]* | freebsdelf3.[01]*) 18328 shlibpath_overrides_runpath=yes 18329 hardcode_into_libs=yes 18330 ;; 18331 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18332 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18333 shlibpath_overrides_runpath=no 18334 hardcode_into_libs=yes 18335 ;; 18336 *) # from 4.6 on, and DragonFly 18337 shlibpath_overrides_runpath=yes 18338 hardcode_into_libs=yes 18339 ;; 18340 esac 18341 ;; 18342 18343gnu*) 18344 version_type=linux 18345 need_lib_prefix=no 18346 need_version=no 18347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18348 soname_spec='${libname}${release}${shared_ext}$major' 18349 shlibpath_var=LD_LIBRARY_PATH 18350 hardcode_into_libs=yes 18351 ;; 18352 18353hpux9* | hpux10* | hpux11*) 18354 # Give a soname corresponding to the major version so that dld.sl refuses to 18355 # link against other versions. 18356 version_type=sunos 18357 need_lib_prefix=no 18358 need_version=no 18359 case $host_cpu in 18360 ia64*) 18361 shrext_cmds='.so' 18362 hardcode_into_libs=yes 18363 dynamic_linker="$host_os dld.so" 18364 shlibpath_var=LD_LIBRARY_PATH 18365 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18367 soname_spec='${libname}${release}${shared_ext}$major' 18368 if test "X$HPUX_IA64_MODE" = X32; then 18369 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18370 else 18371 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18372 fi 18373 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18374 ;; 18375 hppa*64*) 18376 shrext_cmds='.sl' 18377 hardcode_into_libs=yes 18378 dynamic_linker="$host_os dld.sl" 18379 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18380 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18382 soname_spec='${libname}${release}${shared_ext}$major' 18383 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18384 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18385 ;; 18386 *) 18387 shrext_cmds='.sl' 18388 dynamic_linker="$host_os dld.sl" 18389 shlibpath_var=SHLIB_PATH 18390 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18392 soname_spec='${libname}${release}${shared_ext}$major' 18393 ;; 18394 esac 18395 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18396 postinstall_cmds='chmod 555 $lib' 18397 ;; 18398 18399interix3*) 18400 version_type=linux 18401 need_lib_prefix=no 18402 need_version=no 18403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18404 soname_spec='${libname}${release}${shared_ext}$major' 18405 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18406 shlibpath_var=LD_LIBRARY_PATH 18407 shlibpath_overrides_runpath=no 18408 hardcode_into_libs=yes 18409 ;; 18410 18411irix5* | irix6* | nonstopux*) 18412 case $host_os in 18413 nonstopux*) version_type=nonstopux ;; 18414 *) 18415 if test "$lt_cv_prog_gnu_ld" = yes; then 18416 version_type=linux 18417 else 18418 version_type=irix 18419 fi ;; 18420 esac 18421 need_lib_prefix=no 18422 need_version=no 18423 soname_spec='${libname}${release}${shared_ext}$major' 18424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18425 case $host_os in 18426 irix5* | nonstopux*) 18427 libsuff= shlibsuff= 18428 ;; 18429 *) 18430 case $LD in # libtool.m4 will add one of these switches to LD 18431 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18432 libsuff= shlibsuff= libmagic=32-bit;; 18433 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18434 libsuff=32 shlibsuff=N32 libmagic=N32;; 18435 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18436 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18437 *) libsuff= shlibsuff= libmagic=never-match;; 18438 esac 18439 ;; 18440 esac 18441 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18442 shlibpath_overrides_runpath=no 18443 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18444 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18445 hardcode_into_libs=yes 18446 ;; 18447 18448# No shared lib support for Linux oldld, aout, or coff. 18449linux*oldld* | linux*aout* | linux*coff*) 18450 dynamic_linker=no 18451 ;; 18452 18453# This must be Linux ELF. 18454linux*) 18455 version_type=linux 18456 need_lib_prefix=no 18457 need_version=no 18458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18459 soname_spec='${libname}${release}${shared_ext}$major' 18460 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18461 shlibpath_var=LD_LIBRARY_PATH 18462 shlibpath_overrides_runpath=no 18463 # This implies no fast_install, which is unacceptable. 18464 # Some rework will be needed to allow for fast_install 18465 # before this can be enabled. 18466 hardcode_into_libs=yes 18467 18468 # Append ld.so.conf contents to the search path 18469 if test -f /etc/ld.so.conf; then 18470 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' ' '` 18471 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18472 fi 18473 18474 # We used to test for /lib/ld.so.1 and disable shared libraries on 18475 # powerpc, because MkLinux only supported shared libraries with the 18476 # GNU dynamic linker. Since this was broken with cross compilers, 18477 # most powerpc-linux boxes support dynamic linking these days and 18478 # people can always --disable-shared, the test was removed, and we 18479 # assume the GNU/Linux dynamic linker is in use. 18480 dynamic_linker='GNU/Linux ld.so' 18481 ;; 18482 18483mirbsd*) 18484 version_type=linux 18485 sys_lib_dlsearch_path_spec="/usr/lib" 18486 need_lib_prefix=no 18487 need_version=no 18488 library_names_spec='${libname}${release}${shared_ext}$versuffix2 ${libname}${shared_ext}$versuffix2' 18489 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18490 shlibpath_var=LD_LIBRARY_PATH 18491 shlibpath_overrides_runpath=yes 18492 ;; 18493 18494knetbsd*-gnu) 18495 version_type=linux 18496 need_lib_prefix=no 18497 need_version=no 18498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18499 soname_spec='${libname}${release}${shared_ext}$major' 18500 shlibpath_var=LD_LIBRARY_PATH 18501 shlibpath_overrides_runpath=no 18502 hardcode_into_libs=yes 18503 dynamic_linker='GNU ld.so' 18504 ;; 18505 18506netbsd*) 18507 version_type=sunos 18508 need_lib_prefix=no 18509 need_version=no 18510 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18512 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18513 dynamic_linker='NetBSD (a.out) ld.so' 18514 else 18515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18516 soname_spec='${libname}${release}${shared_ext}$major' 18517 dynamic_linker='NetBSD ld.elf_so' 18518 fi 18519 shlibpath_var=LD_LIBRARY_PATH 18520 shlibpath_overrides_runpath=yes 18521 hardcode_into_libs=yes 18522 ;; 18523 18524newsos6) 18525 version_type=linux 18526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18527 shlibpath_var=LD_LIBRARY_PATH 18528 shlibpath_overrides_runpath=yes 18529 ;; 18530 18531nto-qnx*) 18532 version_type=linux 18533 need_lib_prefix=no 18534 need_version=no 18535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18536 soname_spec='${libname}${release}${shared_ext}$major' 18537 shlibpath_var=LD_LIBRARY_PATH 18538 shlibpath_overrides_runpath=yes 18539 ;; 18540 18541openbsd*) 18542 version_type=linux 18543 sys_lib_dlsearch_path_spec="/usr/lib" 18544 need_lib_prefix=no 18545 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18546 case $host_os in 18547 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18548 *) need_version=no ;; 18549 esac 18550 library_names_spec='${libname}${release}${shared_ext}$versuffix2 ${libname}${shared_ext}$versuffix2' 18551 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18552 shlibpath_var=LD_LIBRARY_PATH 18553 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18554 case $host_os in 18555 openbsd2.[89] | openbsd2.[89].*) 18556 shlibpath_overrides_runpath=no 18557 ;; 18558 *) 18559 shlibpath_overrides_runpath=yes 18560 ;; 18561 esac 18562 else 18563 shlibpath_overrides_runpath=yes 18564 fi 18565 ;; 18566 18567os2*) 18568 libname_spec='$name' 18569 shrext_cmds=".dll" 18570 need_lib_prefix=no 18571 library_names_spec='$libname${shared_ext} $libname.a' 18572 dynamic_linker='OS/2 ld.exe' 18573 shlibpath_var=LIBPATH 18574 ;; 18575 18576osf3* | osf4* | osf5*) 18577 version_type=osf 18578 need_lib_prefix=no 18579 need_version=no 18580 soname_spec='${libname}${release}${shared_ext}$major' 18581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18582 shlibpath_var=LD_LIBRARY_PATH 18583 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18584 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18585 ;; 18586 18587rdos*) 18588 dynamic_linker=no 18589 ;; 18590 18591solaris*) 18592 version_type=linux 18593 need_lib_prefix=no 18594 need_version=no 18595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18596 soname_spec='${libname}${release}${shared_ext}$major' 18597 shlibpath_var=LD_LIBRARY_PATH 18598 shlibpath_overrides_runpath=yes 18599 hardcode_into_libs=yes 18600 # ldd complains unless libraries are executable 18601 postinstall_cmds='chmod +x $lib' 18602 ;; 18603 18604sunos4*) 18605 version_type=sunos 18606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18607 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18608 shlibpath_var=LD_LIBRARY_PATH 18609 shlibpath_overrides_runpath=yes 18610 if test "$with_gnu_ld" = yes; then 18611 need_lib_prefix=no 18612 fi 18613 need_version=yes 18614 ;; 18615 18616sysv4 | sysv4.3*) 18617 version_type=linux 18618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18619 soname_spec='${libname}${release}${shared_ext}$major' 18620 shlibpath_var=LD_LIBRARY_PATH 18621 case $host_vendor in 18622 sni) 18623 shlibpath_overrides_runpath=no 18624 need_lib_prefix=no 18625 export_dynamic_flag_spec='${wl}-Blargedynsym' 18626 runpath_var=LD_RUN_PATH 18627 ;; 18628 siemens) 18629 need_lib_prefix=no 18630 ;; 18631 motorola) 18632 need_lib_prefix=no 18633 need_version=no 18634 shlibpath_overrides_runpath=no 18635 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18636 ;; 18637 esac 18638 ;; 18639 18640sysv4*MP*) 18641 if test -d /usr/nec ;then 18642 version_type=linux 18643 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18644 soname_spec='$libname${shared_ext}.$major' 18645 shlibpath_var=LD_LIBRARY_PATH 18646 fi 18647 ;; 18648 18649sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18650 version_type=freebsd-elf 18651 need_lib_prefix=no 18652 need_version=no 18653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18654 soname_spec='${libname}${release}${shared_ext}$major' 18655 shlibpath_var=LD_LIBRARY_PATH 18656 hardcode_into_libs=yes 18657 if test "$with_gnu_ld" = yes; then 18658 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18659 shlibpath_overrides_runpath=no 18660 else 18661 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18662 shlibpath_overrides_runpath=yes 18663 case $host_os in 18664 sco3.2v5*) 18665 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18666 ;; 18667 esac 18668 fi 18669 sys_lib_dlsearch_path_spec='/usr/lib' 18670 ;; 18671 18672uts4*) 18673 version_type=linux 18674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18675 soname_spec='${libname}${release}${shared_ext}$major' 18676 shlibpath_var=LD_LIBRARY_PATH 18677 ;; 18678 18679*) 18680 dynamic_linker=no 18681 ;; 18682esac 18683{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18684echo "${ECHO_T}$dynamic_linker" >&6; } 18685test "$dynamic_linker" = no && can_build_shared=no 18686 18687variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18688if test "$GCC" = yes; then 18689 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18690fi 18691 18692{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18693echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 18694hardcode_action_GCJ= 18695if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18696 test -n "$runpath_var_GCJ" || \ 18697 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 18698 18699 # We can hardcode non-existant directories. 18700 if test "$hardcode_direct_GCJ" != no && 18701 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18702 # have to relink, otherwise we might link with an installed library 18703 # when we should be linking with a yet-to-be-installed one 18704 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 18705 test "$hardcode_minus_L_GCJ" != no; then 18706 # Linking always hardcodes the temporary library directory. 18707 hardcode_action_GCJ=relink 18708 else 18709 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18710 hardcode_action_GCJ=immediate 18711 fi 18712else 18713 # We cannot hardcode anything, or else we can only hardcode existing 18714 # directories. 18715 hardcode_action_GCJ=unsupported 18716fi 18717{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 18718echo "${ECHO_T}$hardcode_action_GCJ" >&6; } 18719 18720if test "$hardcode_action_GCJ" = relink; then 18721 # Fast installation is not supported 18722 enable_fast_install=no 18723elif test "$shlibpath_overrides_runpath" = yes || 18724 test "$enable_shared" = no; then 18725 # Fast installation is not necessary 18726 enable_fast_install=needless 18727fi 18728 18729 18730# The else clause should only fire when bootstrapping the 18731# libtool distribution, otherwise you forgot to ship ltmain.sh 18732# with your package, and you will get complaints that there are 18733# no rules to generate ltmain.sh. 18734if test -f "$ltmain"; then 18735 # See if we are running on zsh, and set the options which allow our commands through 18736 # without removal of \ escapes. 18737 if test -n "${ZSH_VERSION+set}" ; then 18738 setopt NO_GLOB_SUBST 18739 fi 18740 # Now quote all the things that may contain metacharacters while being 18741 # careful not to overquote the AC_SUBSTed values. We take copies of the 18742 # variables and quote the copies for generation of the libtool script. 18743 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18744 SED SHELL STRIP \ 18745 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18746 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18747 deplibs_check_method reload_flag reload_cmds need_locks \ 18748 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18749 lt_cv_sys_global_symbol_to_c_name_address \ 18750 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18751 old_postinstall_cmds old_postuninstall_cmds \ 18752 compiler_GCJ \ 18753 CC_GCJ \ 18754 LD_GCJ \ 18755 lt_prog_compiler_wl_GCJ \ 18756 lt_prog_compiler_pic_GCJ \ 18757 lt_prog_compiler_static_GCJ \ 18758 lt_prog_compiler_no_builtin_flag_GCJ \ 18759 export_dynamic_flag_spec_GCJ \ 18760 thread_safe_flag_spec_GCJ \ 18761 whole_archive_flag_spec_GCJ \ 18762 enable_shared_with_static_runtimes_GCJ \ 18763 old_archive_cmds_GCJ \ 18764 old_archive_from_new_cmds_GCJ \ 18765 predep_objects_GCJ \ 18766 postdep_objects_GCJ \ 18767 predeps_GCJ \ 18768 postdeps_GCJ \ 18769 compiler_lib_search_path_GCJ \ 18770 archive_cmds_GCJ \ 18771 archive_expsym_cmds_GCJ \ 18772 postinstall_cmds_GCJ \ 18773 postuninstall_cmds_GCJ \ 18774 old_archive_from_expsyms_cmds_GCJ \ 18775 allow_undefined_flag_GCJ \ 18776 no_undefined_flag_GCJ \ 18777 export_symbols_cmds_GCJ \ 18778 hardcode_libdir_flag_spec_GCJ \ 18779 hardcode_libdir_flag_spec_ld_GCJ \ 18780 hardcode_libdir_separator_GCJ \ 18781 hardcode_automatic_GCJ \ 18782 module_cmds_GCJ \ 18783 module_expsym_cmds_GCJ \ 18784 lt_cv_prog_compiler_c_o_GCJ \ 18785 exclude_expsyms_GCJ \ 18786 include_expsyms_GCJ; do 18787 18788 case $var in 18789 old_archive_cmds_GCJ | \ 18790 old_archive_from_new_cmds_GCJ | \ 18791 archive_cmds_GCJ | \ 18792 archive_expsym_cmds_GCJ | \ 18793 module_cmds_GCJ | \ 18794 module_expsym_cmds_GCJ | \ 18795 old_archive_from_expsyms_cmds_GCJ | \ 18796 export_symbols_cmds_GCJ | \ 18797 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18798 postinstall_cmds | postuninstall_cmds | \ 18799 old_postinstall_cmds | old_postuninstall_cmds | \ 18800 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18801 # Double-quote double-evaled strings. 18802 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18803 ;; 18804 *) 18805 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18806 ;; 18807 esac 18808 done 18809 18810 case $lt_echo in 18811 *'\$0 --fallback-echo"') 18812 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18813 ;; 18814 esac 18815 18816cfgfile="$ofile" 18817 18818 cat <<__EOF__ >> "$cfgfile" 18819# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18820 18821# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18822 18823# Shell to use when invoking shell scripts. 18824SHELL=$lt_SHELL 18825 18826# Whether or not to build shared libraries. 18827build_libtool_libs=$enable_shared 18828 18829# Whether or not to build static libraries. 18830build_old_libs=$enable_static 18831 18832# Whether or not to add -lc for building shared libraries. 18833build_libtool_need_lc=$archive_cmds_need_lc_GCJ 18834 18835# Whether or not to disallow shared libs when runtime libs are static 18836allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 18837 18838# Whether or not to optimize for fast installation. 18839fast_install=$enable_fast_install 18840 18841# The host system. 18842host_alias=$host_alias 18843host=$host 18844host_os=$host_os 18845 18846# The build system. 18847build_alias=$build_alias 18848build=$build 18849build_os=$build_os 18850 18851# An echo program that does not interpret backslashes. 18852echo=$lt_echo 18853 18854# The archiver. 18855AR=$lt_AR 18856AR_FLAGS=$lt_AR_FLAGS 18857 18858# A C compiler. 18859LTCC=$lt_LTCC 18860 18861# LTCC compiler flags. 18862LTCFLAGS=$lt_LTCFLAGS 18863 18864# A language-specific compiler. 18865CC=$lt_compiler_GCJ 18866 18867# Is the compiler the GNU C compiler? 18868with_gcc=$GCC_GCJ 18869 18870# An ERE matcher. 18871EGREP=$lt_EGREP 18872 18873# The linker used to build libraries. 18874LD=$lt_LD_GCJ 18875 18876# Whether we need hard or soft links. 18877LN_S=$lt_LN_S 18878 18879# A BSD-compatible nm program. 18880NM=$lt_NM 18881 18882# A symbol stripping program 18883STRIP=$lt_STRIP 18884 18885# Used to examine libraries when file_magic_cmd begins "file" 18886MAGIC_CMD=$MAGIC_CMD 18887 18888# Used on cygwin: DLL creation program. 18889DLLTOOL="$DLLTOOL" 18890 18891# Used on cygwin: object dumper. 18892OBJDUMP="$OBJDUMP" 18893 18894# Used on cygwin: assembler. 18895AS="$AS" 18896 18897# The name of the directory that contains temporary libtool files. 18898objdir=$objdir 18899 18900# How to create reloadable object files. 18901reload_flag=$lt_reload_flag 18902reload_cmds=$lt_reload_cmds 18903 18904# How to pass a linker flag through the compiler. 18905wl=$lt_lt_prog_compiler_wl_GCJ 18906 18907# Object file suffix (normally "o"). 18908objext="$ac_objext" 18909 18910# Old archive suffix (normally "a"). 18911libext="$libext" 18912 18913# Shared library suffix (normally ".so"). 18914shrext_cmds='$shrext_cmds' 18915 18916# Executable file suffix (normally ""). 18917exeext="$exeext" 18918 18919# Additional compiler flags for building library objects. 18920pic_flag=$lt_lt_prog_compiler_pic_GCJ 18921pic_mode=$pic_mode 18922 18923# What is the maximum length of a command? 18924max_cmd_len=$lt_cv_sys_max_cmd_len 18925 18926# Does compiler simultaneously support -c and -o options? 18927compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 18928 18929# Must we lock files when doing compilation? 18930need_locks=$lt_need_locks 18931 18932# Do we need the lib prefix for modules? 18933need_lib_prefix=$need_lib_prefix 18934 18935# Do we need a version for libraries? 18936need_version=$need_version 18937 18938# Whether dlopen is supported. 18939dlopen_support=$enable_dlopen 18940 18941# Whether dlopen of programs is supported. 18942dlopen_self=$enable_dlopen_self 18943 18944# Whether dlopen of statically linked programs is supported. 18945dlopen_self_static=$enable_dlopen_self_static 18946 18947# Compiler flag to prevent dynamic linking. 18948link_static_flag=$lt_lt_prog_compiler_static_GCJ 18949 18950# Compiler flag to turn off builtin functions. 18951no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 18952 18953# Compiler flag to allow reflexive dlopens. 18954export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 18955 18956# Compiler flag to generate shared objects directly from archives. 18957whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 18958 18959# Compiler flag to generate thread-safe objects. 18960thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 18961 18962# Library versioning type. 18963version_type=$version_type 18964 18965# Format of library name prefix. 18966libname_spec=$lt_libname_spec 18967 18968# List of archive names. First name is the real one, the rest are links. 18969# The last name is the one that the linker finds with -lNAME. 18970library_names_spec=$lt_library_names_spec 18971 18972# The coded name of the library, if different from the real name. 18973soname_spec=$lt_soname_spec 18974 18975# Commands used to build and install an old-style archive. 18976RANLIB=$lt_RANLIB 18977old_archive_cmds=$lt_old_archive_cmds_GCJ 18978old_postinstall_cmds=$lt_old_postinstall_cmds 18979old_postuninstall_cmds=$lt_old_postuninstall_cmds 18980 18981# Create an old-style archive from a shared archive. 18982old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 18983 18984# Create a temporary old-style archive to link instead of a shared archive. 18985old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 18986 18987# Commands used to build and install a shared archive. 18988archive_cmds=$lt_archive_cmds_GCJ 18989archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 18990postinstall_cmds=$lt_postinstall_cmds 18991postuninstall_cmds=$lt_postuninstall_cmds 18992 18993# Commands used to build a loadable module (assumed same as above if empty) 18994module_cmds=$lt_module_cmds_GCJ 18995module_expsym_cmds=$lt_module_expsym_cmds_GCJ 18996 18997# Commands to strip libraries. 18998old_striplib=$lt_old_striplib 18999striplib=$lt_striplib 19000 19001# Dependencies to place before the objects being linked to create a 19002# shared library. 19003predep_objects=$lt_predep_objects_GCJ 19004 19005# Dependencies to place after the objects being linked to create a 19006# shared library. 19007postdep_objects=$lt_postdep_objects_GCJ 19008 19009# Dependencies to place before the objects being linked to create a 19010# shared library. 19011predeps=$lt_predeps_GCJ 19012 19013# Dependencies to place after the objects being linked to create a 19014# shared library. 19015postdeps=$lt_postdeps_GCJ 19016 19017# The library search path used internally by the compiler when linking 19018# a shared library. 19019compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 19020 19021# Method to check whether dependent libraries are shared objects. 19022deplibs_check_method=$lt_deplibs_check_method 19023 19024# Command to use when deplibs_check_method == file_magic. 19025file_magic_cmd=$lt_file_magic_cmd 19026 19027# Flag that allows shared libraries with undefined symbols to be built. 19028allow_undefined_flag=$lt_allow_undefined_flag_GCJ 19029 19030# Flag that forces no undefined symbols. 19031no_undefined_flag=$lt_no_undefined_flag_GCJ 19032 19033# Commands used to finish a libtool library installation in a directory. 19034finish_cmds=$lt_finish_cmds 19035 19036# Same as above, but a single script fragment to be evaled but not shown. 19037finish_eval=$lt_finish_eval 19038 19039# Take the output of nm and produce a listing of raw symbols and C names. 19040global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19041 19042# Transform the output of nm in a proper C declaration 19043global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19044 19045# Transform the output of nm in a C name address pair 19046global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19047 19048# This is the shared library runtime path variable. 19049runpath_var=$runpath_var 19050 19051# This is the shared library path variable. 19052shlibpath_var=$shlibpath_var 19053 19054# Is shlibpath searched before the hard-coded library search path? 19055shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19056 19057# How to hardcode a shared library path into an executable. 19058hardcode_action=$hardcode_action_GCJ 19059 19060# Whether we should hardcode library paths into libraries. 19061hardcode_into_libs=$hardcode_into_libs 19062 19063# Flag to hardcode \$libdir into a binary during linking. 19064# This must work even if \$libdir does not exist. 19065hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 19066 19067# If ld is used when linking, flag to hardcode \$libdir into 19068# a binary during linking. This must work even if \$libdir does 19069# not exist. 19070hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 19071 19072# Whether we need a single -rpath flag with a separated argument. 19073hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 19074 19075# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19076# resulting binary. 19077hardcode_direct=$hardcode_direct_GCJ 19078 19079# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19080# resulting binary. 19081hardcode_minus_L=$hardcode_minus_L_GCJ 19082 19083# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19084# the resulting binary. 19085hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 19086 19087# Set to yes if building a shared library automatically hardcodes DIR into the library 19088# and all subsequent libraries and executables linked against it. 19089hardcode_automatic=$hardcode_automatic_GCJ 19090 19091# Variables whose values should be saved in libtool wrapper scripts and 19092# restored at relink time. 19093variables_saved_for_relink="$variables_saved_for_relink" 19094 19095# Whether libtool must link a program against all its dependency libraries. 19096link_all_deplibs=$link_all_deplibs_GCJ 19097 19098# Compile-time system search path for libraries 19099sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19100 19101# Run-time system search path for libraries 19102sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19103 19104# Fix the shell variable \$srcfile for the compiler. 19105fix_srcfile_path="$fix_srcfile_path_GCJ" 19106 19107# Set to yes if exported symbols are required. 19108always_export_symbols=$always_export_symbols_GCJ 19109 19110# The commands to list exported symbols. 19111export_symbols_cmds=$lt_export_symbols_cmds_GCJ 19112 19113# The commands to extract the exported symbol list from a shared archive. 19114extract_expsyms_cmds=$lt_extract_expsyms_cmds 19115 19116# Symbols that should not be listed in the preloaded symbols. 19117exclude_expsyms=$lt_exclude_expsyms_GCJ 19118 19119# Symbols that must always be exported. 19120include_expsyms=$lt_include_expsyms_GCJ 19121 19122# ### END LIBTOOL TAG CONFIG: $tagname 19123 19124__EOF__ 19125 19126 19127else 19128 # If there is no Makefile yet, we rely on a make rule to execute 19129 # 'config.status --recheck' to rerun these tests and create the 19130 # libtool script then. 19131 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19132 if test -f "$ltmain_in"; then 19133 test -f Makefile && make "$ltmain" 19134 fi 19135fi 19136 19137 19138ac_ext=c 19139ac_cpp='$CPP $CPPFLAGS' 19140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19141ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19142ac_compiler_gnu=$ac_cv_c_compiler_gnu 19143 19144CC="$lt_save_CC" 19145 19146 else 19147 tagname="" 19148 fi 19149 ;; 19150 19151 RC) 19152 19153 19154# Source file extension for RC test sources. 19155ac_ext=rc 19156 19157# Object file extension for compiled RC test sources. 19158objext=o 19159objext_RC=$objext 19160 19161# Code to be used in simple compile tests 19162lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 19163 19164# Code to be used in simple link tests 19165lt_simple_link_test_code="$lt_simple_compile_test_code" 19166 19167# ltmain only uses $CC for tagged configurations so make sure $CC is set. 19168 19169# If no C compiler was specified, use CC. 19170LTCC=${LTCC-"$CC"} 19171 19172# If no C compiler flags were specified, use CFLAGS. 19173LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 19174 19175# Allow CC to be a program name with arguments. 19176compiler=$CC 19177 19178 19179# save warnings/boilerplate of simple test code 19180ac_outfile=conftest.$ac_objext 19181printf "$lt_simple_compile_test_code" >conftest.$ac_ext 19182eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19183_lt_compiler_boilerplate=`cat conftest.err` 19184$rm conftest* 19185 19186ac_outfile=conftest.$ac_objext 19187printf "$lt_simple_link_test_code" >conftest.$ac_ext 19188eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19189_lt_linker_boilerplate=`cat conftest.err` 19190$rm conftest* 19191 19192 19193# Allow CC to be a program name with arguments. 19194lt_save_CC="$CC" 19195CC=${RC-"windres"} 19196compiler=$CC 19197compiler_RC=$CC 19198for cc_temp in $compiler""; do 19199 case $cc_temp in 19200 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19201 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19202 \-*) ;; 19203 *) break;; 19204 esac 19205done 19206cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 19207 19208lt_cv_prog_compiler_c_o_RC=yes 19209 19210# The else clause should only fire when bootstrapping the 19211# libtool distribution, otherwise you forgot to ship ltmain.sh 19212# with your package, and you will get complaints that there are 19213# no rules to generate ltmain.sh. 19214if test -f "$ltmain"; then 19215 # See if we are running on zsh, and set the options which allow our commands through 19216 # without removal of \ escapes. 19217 if test -n "${ZSH_VERSION+set}" ; then 19218 setopt NO_GLOB_SUBST 19219 fi 19220 # Now quote all the things that may contain metacharacters while being 19221 # careful not to overquote the AC_SUBSTed values. We take copies of the 19222 # variables and quote the copies for generation of the libtool script. 19223 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19224 SED SHELL STRIP \ 19225 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19226 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19227 deplibs_check_method reload_flag reload_cmds need_locks \ 19228 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19229 lt_cv_sys_global_symbol_to_c_name_address \ 19230 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19231 old_postinstall_cmds old_postuninstall_cmds \ 19232 compiler_RC \ 19233 CC_RC \ 19234 LD_RC \ 19235 lt_prog_compiler_wl_RC \ 19236 lt_prog_compiler_pic_RC \ 19237 lt_prog_compiler_static_RC \ 19238 lt_prog_compiler_no_builtin_flag_RC \ 19239 export_dynamic_flag_spec_RC \ 19240 thread_safe_flag_spec_RC \ 19241 whole_archive_flag_spec_RC \ 19242 enable_shared_with_static_runtimes_RC \ 19243 old_archive_cmds_RC \ 19244 old_archive_from_new_cmds_RC \ 19245 predep_objects_RC \ 19246 postdep_objects_RC \ 19247 predeps_RC \ 19248 postdeps_RC \ 19249 compiler_lib_search_path_RC \ 19250 archive_cmds_RC \ 19251 archive_expsym_cmds_RC \ 19252 postinstall_cmds_RC \ 19253 postuninstall_cmds_RC \ 19254 old_archive_from_expsyms_cmds_RC \ 19255 allow_undefined_flag_RC \ 19256 no_undefined_flag_RC \ 19257 export_symbols_cmds_RC \ 19258 hardcode_libdir_flag_spec_RC \ 19259 hardcode_libdir_flag_spec_ld_RC \ 19260 hardcode_libdir_separator_RC \ 19261 hardcode_automatic_RC \ 19262 module_cmds_RC \ 19263 module_expsym_cmds_RC \ 19264 lt_cv_prog_compiler_c_o_RC \ 19265 exclude_expsyms_RC \ 19266 include_expsyms_RC; do 19267 19268 case $var in 19269 old_archive_cmds_RC | \ 19270 old_archive_from_new_cmds_RC | \ 19271 archive_cmds_RC | \ 19272 archive_expsym_cmds_RC | \ 19273 module_cmds_RC | \ 19274 module_expsym_cmds_RC | \ 19275 old_archive_from_expsyms_cmds_RC | \ 19276 export_symbols_cmds_RC | \ 19277 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19278 postinstall_cmds | postuninstall_cmds | \ 19279 old_postinstall_cmds | old_postuninstall_cmds | \ 19280 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19281 # Double-quote double-evaled strings. 19282 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19283 ;; 19284 *) 19285 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19286 ;; 19287 esac 19288 done 19289 19290 case $lt_echo in 19291 *'\$0 --fallback-echo"') 19292 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19293 ;; 19294 esac 19295 19296cfgfile="$ofile" 19297 19298 cat <<__EOF__ >> "$cfgfile" 19299# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19300 19301# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19302 19303# Shell to use when invoking shell scripts. 19304SHELL=$lt_SHELL 19305 19306# Whether or not to build shared libraries. 19307build_libtool_libs=$enable_shared 19308 19309# Whether or not to build static libraries. 19310build_old_libs=$enable_static 19311 19312# Whether or not to add -lc for building shared libraries. 19313build_libtool_need_lc=$archive_cmds_need_lc_RC 19314 19315# Whether or not to disallow shared libs when runtime libs are static 19316allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19317 19318# Whether or not to optimize for fast installation. 19319fast_install=$enable_fast_install 19320 19321# The host system. 19322host_alias=$host_alias 19323host=$host 19324host_os=$host_os 19325 19326# The build system. 19327build_alias=$build_alias 19328build=$build 19329build_os=$build_os 19330 19331# An echo program that does not interpret backslashes. 19332echo=$lt_echo 19333 19334# The archiver. 19335AR=$lt_AR 19336AR_FLAGS=$lt_AR_FLAGS 19337 19338# A C compiler. 19339LTCC=$lt_LTCC 19340 19341# LTCC compiler flags. 19342LTCFLAGS=$lt_LTCFLAGS 19343 19344# A language-specific compiler. 19345CC=$lt_compiler_RC 19346 19347# Is the compiler the GNU C compiler? 19348with_gcc=$GCC_RC 19349 19350# An ERE matcher. 19351EGREP=$lt_EGREP 19352 19353# The linker used to build libraries. 19354LD=$lt_LD_RC 19355 19356# Whether we need hard or soft links. 19357LN_S=$lt_LN_S 19358 19359# A BSD-compatible nm program. 19360NM=$lt_NM 19361 19362# A symbol stripping program 19363STRIP=$lt_STRIP 19364 19365# Used to examine libraries when file_magic_cmd begins "file" 19366MAGIC_CMD=$MAGIC_CMD 19367 19368# Used on cygwin: DLL creation program. 19369DLLTOOL="$DLLTOOL" 19370 19371# Used on cygwin: object dumper. 19372OBJDUMP="$OBJDUMP" 19373 19374# Used on cygwin: assembler. 19375AS="$AS" 19376 19377# The name of the directory that contains temporary libtool files. 19378objdir=$objdir 19379 19380# How to create reloadable object files. 19381reload_flag=$lt_reload_flag 19382reload_cmds=$lt_reload_cmds 19383 19384# How to pass a linker flag through the compiler. 19385wl=$lt_lt_prog_compiler_wl_RC 19386 19387# Object file suffix (normally "o"). 19388objext="$ac_objext" 19389 19390# Old archive suffix (normally "a"). 19391libext="$libext" 19392 19393# Shared library suffix (normally ".so"). 19394shrext_cmds='$shrext_cmds' 19395 19396# Executable file suffix (normally ""). 19397exeext="$exeext" 19398 19399# Additional compiler flags for building library objects. 19400pic_flag=$lt_lt_prog_compiler_pic_RC 19401pic_mode=$pic_mode 19402 19403# What is the maximum length of a command? 19404max_cmd_len=$lt_cv_sys_max_cmd_len 19405 19406# Does compiler simultaneously support -c and -o options? 19407compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19408 19409# Must we lock files when doing compilation? 19410need_locks=$lt_need_locks 19411 19412# Do we need the lib prefix for modules? 19413need_lib_prefix=$need_lib_prefix 19414 19415# Do we need a version for libraries? 19416need_version=$need_version 19417 19418# Whether dlopen is supported. 19419dlopen_support=$enable_dlopen 19420 19421# Whether dlopen of programs is supported. 19422dlopen_self=$enable_dlopen_self 19423 19424# Whether dlopen of statically linked programs is supported. 19425dlopen_self_static=$enable_dlopen_self_static 19426 19427# Compiler flag to prevent dynamic linking. 19428link_static_flag=$lt_lt_prog_compiler_static_RC 19429 19430# Compiler flag to turn off builtin functions. 19431no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19432 19433# Compiler flag to allow reflexive dlopens. 19434export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19435 19436# Compiler flag to generate shared objects directly from archives. 19437whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19438 19439# Compiler flag to generate thread-safe objects. 19440thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19441 19442# Library versioning type. 19443version_type=$version_type 19444 19445# Format of library name prefix. 19446libname_spec=$lt_libname_spec 19447 19448# List of archive names. First name is the real one, the rest are links. 19449# The last name is the one that the linker finds with -lNAME. 19450library_names_spec=$lt_library_names_spec 19451 19452# The coded name of the library, if different from the real name. 19453soname_spec=$lt_soname_spec 19454 19455# Commands used to build and install an old-style archive. 19456RANLIB=$lt_RANLIB 19457old_archive_cmds=$lt_old_archive_cmds_RC 19458old_postinstall_cmds=$lt_old_postinstall_cmds 19459old_postuninstall_cmds=$lt_old_postuninstall_cmds 19460 19461# Create an old-style archive from a shared archive. 19462old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19463 19464# Create a temporary old-style archive to link instead of a shared archive. 19465old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19466 19467# Commands used to build and install a shared archive. 19468archive_cmds=$lt_archive_cmds_RC 19469archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19470postinstall_cmds=$lt_postinstall_cmds 19471postuninstall_cmds=$lt_postuninstall_cmds 19472 19473# Commands used to build a loadable module (assumed same as above if empty) 19474module_cmds=$lt_module_cmds_RC 19475module_expsym_cmds=$lt_module_expsym_cmds_RC 19476 19477# Commands to strip libraries. 19478old_striplib=$lt_old_striplib 19479striplib=$lt_striplib 19480 19481# Dependencies to place before the objects being linked to create a 19482# shared library. 19483predep_objects=$lt_predep_objects_RC 19484 19485# Dependencies to place after the objects being linked to create a 19486# shared library. 19487postdep_objects=$lt_postdep_objects_RC 19488 19489# Dependencies to place before the objects being linked to create a 19490# shared library. 19491predeps=$lt_predeps_RC 19492 19493# Dependencies to place after the objects being linked to create a 19494# shared library. 19495postdeps=$lt_postdeps_RC 19496 19497# The library search path used internally by the compiler when linking 19498# a shared library. 19499compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19500 19501# Method to check whether dependent libraries are shared objects. 19502deplibs_check_method=$lt_deplibs_check_method 19503 19504# Command to use when deplibs_check_method == file_magic. 19505file_magic_cmd=$lt_file_magic_cmd 19506 19507# Flag that allows shared libraries with undefined symbols to be built. 19508allow_undefined_flag=$lt_allow_undefined_flag_RC 19509 19510# Flag that forces no undefined symbols. 19511no_undefined_flag=$lt_no_undefined_flag_RC 19512 19513# Commands used to finish a libtool library installation in a directory. 19514finish_cmds=$lt_finish_cmds 19515 19516# Same as above, but a single script fragment to be evaled but not shown. 19517finish_eval=$lt_finish_eval 19518 19519# Take the output of nm and produce a listing of raw symbols and C names. 19520global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19521 19522# Transform the output of nm in a proper C declaration 19523global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19524 19525# Transform the output of nm in a C name address pair 19526global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19527 19528# This is the shared library runtime path variable. 19529runpath_var=$runpath_var 19530 19531# This is the shared library path variable. 19532shlibpath_var=$shlibpath_var 19533 19534# Is shlibpath searched before the hard-coded library search path? 19535shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19536 19537# How to hardcode a shared library path into an executable. 19538hardcode_action=$hardcode_action_RC 19539 19540# Whether we should hardcode library paths into libraries. 19541hardcode_into_libs=$hardcode_into_libs 19542 19543# Flag to hardcode \$libdir into a binary during linking. 19544# This must work even if \$libdir does not exist. 19545hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19546 19547# If ld is used when linking, flag to hardcode \$libdir into 19548# a binary during linking. This must work even if \$libdir does 19549# not exist. 19550hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19551 19552# Whether we need a single -rpath flag with a separated argument. 19553hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19554 19555# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19556# resulting binary. 19557hardcode_direct=$hardcode_direct_RC 19558 19559# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19560# resulting binary. 19561hardcode_minus_L=$hardcode_minus_L_RC 19562 19563# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19564# the resulting binary. 19565hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19566 19567# Set to yes if building a shared library automatically hardcodes DIR into the library 19568# and all subsequent libraries and executables linked against it. 19569hardcode_automatic=$hardcode_automatic_RC 19570 19571# Variables whose values should be saved in libtool wrapper scripts and 19572# restored at relink time. 19573variables_saved_for_relink="$variables_saved_for_relink" 19574 19575# Whether libtool must link a program against all its dependency libraries. 19576link_all_deplibs=$link_all_deplibs_RC 19577 19578# Compile-time system search path for libraries 19579sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19580 19581# Run-time system search path for libraries 19582sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19583 19584# Fix the shell variable \$srcfile for the compiler. 19585fix_srcfile_path="$fix_srcfile_path_RC" 19586 19587# Set to yes if exported symbols are required. 19588always_export_symbols=$always_export_symbols_RC 19589 19590# The commands to list exported symbols. 19591export_symbols_cmds=$lt_export_symbols_cmds_RC 19592 19593# The commands to extract the exported symbol list from a shared archive. 19594extract_expsyms_cmds=$lt_extract_expsyms_cmds 19595 19596# Symbols that should not be listed in the preloaded symbols. 19597exclude_expsyms=$lt_exclude_expsyms_RC 19598 19599# Symbols that must always be exported. 19600include_expsyms=$lt_include_expsyms_RC 19601 19602# ### END LIBTOOL TAG CONFIG: $tagname 19603 19604__EOF__ 19605 19606 19607else 19608 # If there is no Makefile yet, we rely on a make rule to execute 19609 # 'config.status --recheck' to rerun these tests and create the 19610 # libtool script then. 19611 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19612 if test -f "$ltmain_in"; then 19613 test -f Makefile && make "$ltmain" 19614 fi 19615fi 19616 19617 19618ac_ext=c 19619ac_cpp='$CPP $CPPFLAGS' 19620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19622ac_compiler_gnu=$ac_cv_c_compiler_gnu 19623 19624CC="$lt_save_CC" 19625 19626 ;; 19627 19628 *) 19629 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19630echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19631 { (exit 1); exit 1; }; } 19632 ;; 19633 esac 19634 19635 # Append the new tag name to the list of available tags. 19636 if test -n "$tagname" ; then 19637 available_tags="$available_tags $tagname" 19638 fi 19639 fi 19640 done 19641 IFS="$lt_save_ifs" 19642 19643 # Now substitute the updated list of available tags. 19644 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19645 mv "${ofile}T" "$ofile" 19646 chmod +x "$ofile" 19647 else 19648 rm -f "${ofile}T" 19649 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19650echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19651 { (exit 1); exit 1; }; } 19652 fi 19653fi 19654 19655 19656 19657# This can be used to rebuild libtool when needed 19658LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19659 19660# Always use our own libtool. 19661LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19662 19663# Prevent multiple expansion 19664 19665 19666 19667 19668 19669 19670 19671 19672 19673 19674 19675 19676 19677 19678 19679 19680 19681 19682 19683 19684 19685 19686 19687 19688 19689 19690# Check whether --with-lib-path was given. 19691if test "${with_lib_path+set}" = set; then 19692 withval=$with_lib_path; LIB_PATH=$withval 19693fi 19694 19695# Check whether --enable-targets was given. 19696if test "${enable_targets+set}" = set; then 19697 enableval=$enable_targets; case "${enableval}" in 19698 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5 19699echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;} 19700 { (exit 1); exit 1; }; } 19701 ;; 19702 no) enable_targets= ;; 19703 *) enable_targets=$enableval ;; 19704esac 19705fi 19706# Check whether --enable-64-bit-bfd was given. 19707if test "${enable_64_bit_bfd+set}" = set; then 19708 enableval=$enable_64_bit_bfd; case "${enableval}" in 19709 yes) want64=true ;; 19710 no) want64=false ;; 19711 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5 19712echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;} 19713 { (exit 1); exit 1; }; } ;; 19714esac 19715else 19716 want64=false 19717fi 19718 19719 19720# Check whether --with-sysroot was given. 19721if test "${with_sysroot+set}" = set; then 19722 withval=$with_sysroot; 19723 case ${with_sysroot} in 19724 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;; 19725 *) TARGET_SYSTEM_ROOT=$with_sysroot ;; 19726 esac 19727 19728 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"' 19729 use_sysroot=yes 19730 19731 if test "x$exec_prefix" = xNONE; then 19732 if test "x$prefix" = xNONE; then 19733 test_prefix=/usr/local 19734 else 19735 test_prefix=$prefix 19736 fi 19737 else 19738 test_prefix=$exec_prefix 19739 fi 19740 case ${TARGET_SYSTEM_ROOT} in 19741 "${test_prefix}"|"${test_prefix}/"*|\ 19742 '${exec_prefix}'|'${exec_prefix}/'*) 19743 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE" 19744 TARGET_SYSTEM_ROOT_DEFINE="$t" 19745 ;; 19746 esac 19747 19748else 19749 19750 use_sysroot=no 19751 TARGET_SYSTEM_ROOT= 19752 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"' 19753 19754fi 19755 19756 19757 19758 19759 19760 19761WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" 19762 19763# Check whether --enable-werror was given. 19764if test "${enable_werror+set}" = set; then 19765 enableval=$enable_werror; case "${enableval}" in 19766 yes | y) ERROR_ON_WARNING="yes" ;; 19767 no | n) ERROR_ON_WARNING="no" ;; 19768 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5 19769echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;} 19770 { (exit 1); exit 1; }; } ;; 19771 esac 19772fi 19773 19774 19775# Enable -Werror by default when using gcc 19776if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then 19777 ERROR_ON_WARNING=yes 19778fi 19779 19780NO_WERROR= 19781if test "${ERROR_ON_WARNING}" = yes ; then 19782 WARN_CFLAGS="$WARN_CFLAGS -Werror" 19783 NO_WERROR="-Wno-error" 19784fi 19785 19786# Check whether --enable-build-warnings was given. 19787if test "${enable_build_warnings+set}" = set; then 19788 enableval=$enable_build_warnings; case "${enableval}" in 19789 yes) ;; 19790 no) WARN_CFLAGS="-w";; 19791 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` 19792 WARN_CFLAGS="${WARN_CFLAGS} ${t}";; 19793 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` 19794 WARN_CFLAGS="${t} ${WARN_CFLAGS}";; 19795 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;; 19796esac 19797fi 19798 19799 19800if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then 19801 echo "Setting warning flags = $WARN_CFLAGS" 6>&1 19802fi 19803 19804 19805 19806 19807 19808ac_config_headers="$ac_config_headers config.h:config.in" 19809 19810 19811if test -z "$target" ; then 19812 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5 19813echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;} 19814 { (exit 1); exit 1; }; } 19815fi 19816if test -z "$host" ; then 19817 { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5 19818echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;} 19819 { (exit 1); exit 1; }; } 19820fi 19821 19822# host-specific stuff: 19823 19824ac_ext=c 19825ac_cpp='$CPP $CPPFLAGS' 19826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19828ac_compiler_gnu=$ac_cv_c_compiler_gnu 19829if test -n "$ac_tool_prefix"; then 19830 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 19831set dummy ${ac_tool_prefix}gcc; ac_word=$2 19832{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19833echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19834if test "${ac_cv_prog_CC+set}" = set; then 19835 echo $ECHO_N "(cached) $ECHO_C" >&6 19836else 19837 if test -n "$CC"; then 19838 ac_cv_prog_CC="$CC" # Let the user override the test. 19839else 19840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19841for as_dir in $PATH 19842do 19843 IFS=$as_save_IFS 19844 test -z "$as_dir" && as_dir=. 19845 for ac_exec_ext in '' $ac_executable_extensions; do 19846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 19847 ac_cv_prog_CC="${ac_tool_prefix}gcc" 19848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19849 break 2 19850 fi 19851done 19852done 19853IFS=$as_save_IFS 19854 19855fi 19856fi 19857CC=$ac_cv_prog_CC 19858if test -n "$CC"; then 19859 { echo "$as_me:$LINENO: result: $CC" >&5 19860echo "${ECHO_T}$CC" >&6; } 19861else 19862 { echo "$as_me:$LINENO: result: no" >&5 19863echo "${ECHO_T}no" >&6; } 19864fi 19865 19866 19867fi 19868if test -z "$ac_cv_prog_CC"; then 19869 ac_ct_CC=$CC 19870 # Extract the first word of "gcc", so it can be a program name with args. 19871set dummy gcc; ac_word=$2 19872{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19874if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 19875 echo $ECHO_N "(cached) $ECHO_C" >&6 19876else 19877 if test -n "$ac_ct_CC"; then 19878 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 19879else 19880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19881for as_dir in $PATH 19882do 19883 IFS=$as_save_IFS 19884 test -z "$as_dir" && as_dir=. 19885 for ac_exec_ext in '' $ac_executable_extensions; do 19886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 19887 ac_cv_prog_ac_ct_CC="gcc" 19888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19889 break 2 19890 fi 19891done 19892done 19893IFS=$as_save_IFS 19894 19895fi 19896fi 19897ac_ct_CC=$ac_cv_prog_ac_ct_CC 19898if test -n "$ac_ct_CC"; then 19899 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 19900echo "${ECHO_T}$ac_ct_CC" >&6; } 19901else 19902 { echo "$as_me:$LINENO: result: no" >&5 19903echo "${ECHO_T}no" >&6; } 19904fi 19905 19906 if test "x$ac_ct_CC" = x; then 19907 CC="" 19908 else 19909 case $cross_compiling:$ac_tool_warned in 19910yes:) 19911{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 19912whose name does not start with the host triplet. If you think this 19913configuration is useful to you, please write to autoconf@gnu.org." >&5 19914echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 19915whose name does not start with the host triplet. If you think this 19916configuration is useful to you, please write to autoconf@gnu.org." >&2;} 19917ac_tool_warned=yes ;; 19918esac 19919 CC=$ac_ct_CC 19920 fi 19921else 19922 CC="$ac_cv_prog_CC" 19923fi 19924 19925if test -z "$CC"; then 19926 if test -n "$ac_tool_prefix"; then 19927 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 19928set dummy ${ac_tool_prefix}cc; ac_word=$2 19929{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19930echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19931if test "${ac_cv_prog_CC+set}" = set; then 19932 echo $ECHO_N "(cached) $ECHO_C" >&6 19933else 19934 if test -n "$CC"; then 19935 ac_cv_prog_CC="$CC" # Let the user override the test. 19936else 19937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19938for as_dir in $PATH 19939do 19940 IFS=$as_save_IFS 19941 test -z "$as_dir" && as_dir=. 19942 for ac_exec_ext in '' $ac_executable_extensions; do 19943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 19944 ac_cv_prog_CC="${ac_tool_prefix}cc" 19945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19946 break 2 19947 fi 19948done 19949done 19950IFS=$as_save_IFS 19951 19952fi 19953fi 19954CC=$ac_cv_prog_CC 19955if test -n "$CC"; then 19956 { echo "$as_me:$LINENO: result: $CC" >&5 19957echo "${ECHO_T}$CC" >&6; } 19958else 19959 { echo "$as_me:$LINENO: result: no" >&5 19960echo "${ECHO_T}no" >&6; } 19961fi 19962 19963 19964 fi 19965fi 19966if test -z "$CC"; then 19967 # Extract the first word of "cc", so it can be a program name with args. 19968set dummy cc; ac_word=$2 19969{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19970echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19971if test "${ac_cv_prog_CC+set}" = set; then 19972 echo $ECHO_N "(cached) $ECHO_C" >&6 19973else 19974 if test -n "$CC"; then 19975 ac_cv_prog_CC="$CC" # Let the user override the test. 19976else 19977 ac_prog_rejected=no 19978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19979for as_dir in $PATH 19980do 19981 IFS=$as_save_IFS 19982 test -z "$as_dir" && as_dir=. 19983 for ac_exec_ext in '' $ac_executable_extensions; do 19984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 19985 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 19986 ac_prog_rejected=yes 19987 continue 19988 fi 19989 ac_cv_prog_CC="cc" 19990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19991 break 2 19992 fi 19993done 19994done 19995IFS=$as_save_IFS 19996 19997if test $ac_prog_rejected = yes; then 19998 # We found a bogon in the path, so make sure we never use it. 19999 set dummy $ac_cv_prog_CC 20000 shift 20001 if test $# != 0; then 20002 # We chose a different compiler from the bogus one. 20003 # However, it has the same basename, so the bogon will be chosen 20004 # first if we set CC to just the basename; use the full file name. 20005 shift 20006 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 20007 fi 20008fi 20009fi 20010fi 20011CC=$ac_cv_prog_CC 20012if test -n "$CC"; then 20013 { echo "$as_me:$LINENO: result: $CC" >&5 20014echo "${ECHO_T}$CC" >&6; } 20015else 20016 { echo "$as_me:$LINENO: result: no" >&5 20017echo "${ECHO_T}no" >&6; } 20018fi 20019 20020 20021fi 20022if test -z "$CC"; then 20023 if test -n "$ac_tool_prefix"; then 20024 for ac_prog in cl.exe 20025 do 20026 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 20027set dummy $ac_tool_prefix$ac_prog; ac_word=$2 20028{ echo "$as_me:$LINENO: checking for $ac_word" >&5 20029echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 20030if test "${ac_cv_prog_CC+set}" = set; then 20031 echo $ECHO_N "(cached) $ECHO_C" >&6 20032else 20033 if test -n "$CC"; then 20034 ac_cv_prog_CC="$CC" # Let the user override the test. 20035else 20036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20037for as_dir in $PATH 20038do 20039 IFS=$as_save_IFS 20040 test -z "$as_dir" && as_dir=. 20041 for ac_exec_ext in '' $ac_executable_extensions; do 20042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 20043 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 20044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20045 break 2 20046 fi 20047done 20048done 20049IFS=$as_save_IFS 20050 20051fi 20052fi 20053CC=$ac_cv_prog_CC 20054if test -n "$CC"; then 20055 { echo "$as_me:$LINENO: result: $CC" >&5 20056echo "${ECHO_T}$CC" >&6; } 20057else 20058 { echo "$as_me:$LINENO: result: no" >&5 20059echo "${ECHO_T}no" >&6; } 20060fi 20061 20062 20063 test -n "$CC" && break 20064 done 20065fi 20066if test -z "$CC"; then 20067 ac_ct_CC=$CC 20068 for ac_prog in cl.exe 20069do 20070 # Extract the first word of "$ac_prog", so it can be a program name with args. 20071set dummy $ac_prog; ac_word=$2 20072{ echo "$as_me:$LINENO: checking for $ac_word" >&5 20073echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 20074if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 20075 echo $ECHO_N "(cached) $ECHO_C" >&6 20076else 20077 if test -n "$ac_ct_CC"; then 20078 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 20079else 20080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20081for as_dir in $PATH 20082do 20083 IFS=$as_save_IFS 20084 test -z "$as_dir" && as_dir=. 20085 for ac_exec_ext in '' $ac_executable_extensions; do 20086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 20087 ac_cv_prog_ac_ct_CC="$ac_prog" 20088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20089 break 2 20090 fi 20091done 20092done 20093IFS=$as_save_IFS 20094 20095fi 20096fi 20097ac_ct_CC=$ac_cv_prog_ac_ct_CC 20098if test -n "$ac_ct_CC"; then 20099 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 20100echo "${ECHO_T}$ac_ct_CC" >&6; } 20101else 20102 { echo "$as_me:$LINENO: result: no" >&5 20103echo "${ECHO_T}no" >&6; } 20104fi 20105 20106 20107 test -n "$ac_ct_CC" && break 20108done 20109 20110 if test "x$ac_ct_CC" = x; then 20111 CC="" 20112 else 20113 case $cross_compiling:$ac_tool_warned in 20114yes:) 20115{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 20116whose name does not start with the host triplet. If you think this 20117configuration is useful to you, please write to autoconf@gnu.org." >&5 20118echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 20119whose name does not start with the host triplet. If you think this 20120configuration is useful to you, please write to autoconf@gnu.org." >&2;} 20121ac_tool_warned=yes ;; 20122esac 20123 CC=$ac_ct_CC 20124 fi 20125fi 20126 20127fi 20128 20129 20130test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 20131See \`config.log' for more details." >&5 20132echo "$as_me: error: no acceptable C compiler found in \$PATH 20133See \`config.log' for more details." >&2;} 20134 { (exit 1); exit 1; }; } 20135 20136# Provide some information about the compiler. 20137echo "$as_me:$LINENO: checking for C compiler version" >&5 20138ac_compiler=`set X $ac_compile; echo $2` 20139{ (ac_try="$ac_compiler --version >&5" 20140case "(($ac_try" in 20141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20142 *) ac_try_echo=$ac_try;; 20143esac 20144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20145 (eval "$ac_compiler --version >&5") 2>&5 20146 ac_status=$? 20147 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20148 (exit $ac_status); } 20149{ (ac_try="$ac_compiler -v >&5" 20150case "(($ac_try" in 20151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20152 *) ac_try_echo=$ac_try;; 20153esac 20154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20155 (eval "$ac_compiler -v >&5") 2>&5 20156 ac_status=$? 20157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20158 (exit $ac_status); } 20159{ (ac_try="$ac_compiler -V >&5" 20160case "(($ac_try" in 20161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20162 *) ac_try_echo=$ac_try;; 20163esac 20164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20165 (eval "$ac_compiler -V >&5") 2>&5 20166 ac_status=$? 20167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20168 (exit $ac_status); } 20169 20170{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 20171echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 20172if test "${ac_cv_c_compiler_gnu+set}" = set; then 20173 echo $ECHO_N "(cached) $ECHO_C" >&6 20174else 20175 cat >conftest.$ac_ext <<_ACEOF 20176/* confdefs.h. */ 20177_ACEOF 20178cat confdefs.h >>conftest.$ac_ext 20179cat >>conftest.$ac_ext <<_ACEOF 20180/* end confdefs.h. */ 20181 20182int 20183main () 20184{ 20185#ifndef __GNUC__ 20186 choke me 20187#endif 20188 20189 ; 20190 return 0; 20191} 20192_ACEOF 20193rm -f conftest.$ac_objext 20194if { (ac_try="$ac_compile" 20195case "(($ac_try" in 20196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20197 *) ac_try_echo=$ac_try;; 20198esac 20199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20200 (eval "$ac_compile") 2>conftest.er1 20201 ac_status=$? 20202 grep -v '^ *+' conftest.er1 >conftest.err 20203 rm -f conftest.er1 20204 cat conftest.err >&5 20205 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20206 (exit $ac_status); } && 20207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20208 { (case "(($ac_try" in 20209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20210 *) ac_try_echo=$ac_try;; 20211esac 20212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20213 (eval "$ac_try") 2>&5 20214 ac_status=$? 20215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20216 (exit $ac_status); }; } && 20217 { ac_try='test -s conftest.$ac_objext' 20218 { (case "(($ac_try" in 20219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20220 *) ac_try_echo=$ac_try;; 20221esac 20222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20223 (eval "$ac_try") 2>&5 20224 ac_status=$? 20225 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20226 (exit $ac_status); }; }; then 20227 ac_compiler_gnu=yes 20228else 20229 echo "$as_me: failed program was:" >&5 20230sed 's/^/| /' conftest.$ac_ext >&5 20231 20232 ac_compiler_gnu=no 20233fi 20234 20235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20236ac_cv_c_compiler_gnu=$ac_compiler_gnu 20237 20238fi 20239{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 20240echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 20241GCC=`test $ac_compiler_gnu = yes && echo yes` 20242ac_test_CFLAGS=${CFLAGS+set} 20243ac_save_CFLAGS=$CFLAGS 20244{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 20245echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 20246if test "${ac_cv_prog_cc_g+set}" = set; then 20247 echo $ECHO_N "(cached) $ECHO_C" >&6 20248else 20249 ac_save_c_werror_flag=$ac_c_werror_flag 20250 ac_c_werror_flag=yes 20251 ac_cv_prog_cc_g=no 20252 CFLAGS="-g" 20253 cat >conftest.$ac_ext <<_ACEOF 20254/* confdefs.h. */ 20255_ACEOF 20256cat confdefs.h >>conftest.$ac_ext 20257cat >>conftest.$ac_ext <<_ACEOF 20258/* end confdefs.h. */ 20259 20260int 20261main () 20262{ 20263 20264 ; 20265 return 0; 20266} 20267_ACEOF 20268rm -f conftest.$ac_objext 20269if { (ac_try="$ac_compile" 20270case "(($ac_try" in 20271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20272 *) ac_try_echo=$ac_try;; 20273esac 20274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20275 (eval "$ac_compile") 2>conftest.er1 20276 ac_status=$? 20277 grep -v '^ *+' conftest.er1 >conftest.err 20278 rm -f conftest.er1 20279 cat conftest.err >&5 20280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20281 (exit $ac_status); } && 20282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20283 { (case "(($ac_try" in 20284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20285 *) ac_try_echo=$ac_try;; 20286esac 20287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20288 (eval "$ac_try") 2>&5 20289 ac_status=$? 20290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20291 (exit $ac_status); }; } && 20292 { ac_try='test -s conftest.$ac_objext' 20293 { (case "(($ac_try" in 20294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20295 *) ac_try_echo=$ac_try;; 20296esac 20297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20298 (eval "$ac_try") 2>&5 20299 ac_status=$? 20300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20301 (exit $ac_status); }; }; then 20302 ac_cv_prog_cc_g=yes 20303else 20304 echo "$as_me: failed program was:" >&5 20305sed 's/^/| /' conftest.$ac_ext >&5 20306 20307 CFLAGS="" 20308 cat >conftest.$ac_ext <<_ACEOF 20309/* confdefs.h. */ 20310_ACEOF 20311cat confdefs.h >>conftest.$ac_ext 20312cat >>conftest.$ac_ext <<_ACEOF 20313/* end confdefs.h. */ 20314 20315int 20316main () 20317{ 20318 20319 ; 20320 return 0; 20321} 20322_ACEOF 20323rm -f conftest.$ac_objext 20324if { (ac_try="$ac_compile" 20325case "(($ac_try" in 20326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20327 *) ac_try_echo=$ac_try;; 20328esac 20329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20330 (eval "$ac_compile") 2>conftest.er1 20331 ac_status=$? 20332 grep -v '^ *+' conftest.er1 >conftest.err 20333 rm -f conftest.er1 20334 cat conftest.err >&5 20335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20336 (exit $ac_status); } && 20337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20338 { (case "(($ac_try" in 20339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20340 *) ac_try_echo=$ac_try;; 20341esac 20342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20343 (eval "$ac_try") 2>&5 20344 ac_status=$? 20345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20346 (exit $ac_status); }; } && 20347 { ac_try='test -s conftest.$ac_objext' 20348 { (case "(($ac_try" in 20349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20350 *) ac_try_echo=$ac_try;; 20351esac 20352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20353 (eval "$ac_try") 2>&5 20354 ac_status=$? 20355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20356 (exit $ac_status); }; }; then 20357 : 20358else 20359 echo "$as_me: failed program was:" >&5 20360sed 's/^/| /' conftest.$ac_ext >&5 20361 20362 ac_c_werror_flag=$ac_save_c_werror_flag 20363 CFLAGS="-g" 20364 cat >conftest.$ac_ext <<_ACEOF 20365/* confdefs.h. */ 20366_ACEOF 20367cat confdefs.h >>conftest.$ac_ext 20368cat >>conftest.$ac_ext <<_ACEOF 20369/* end confdefs.h. */ 20370 20371int 20372main () 20373{ 20374 20375 ; 20376 return 0; 20377} 20378_ACEOF 20379rm -f conftest.$ac_objext 20380if { (ac_try="$ac_compile" 20381case "(($ac_try" in 20382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20383 *) ac_try_echo=$ac_try;; 20384esac 20385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20386 (eval "$ac_compile") 2>conftest.er1 20387 ac_status=$? 20388 grep -v '^ *+' conftest.er1 >conftest.err 20389 rm -f conftest.er1 20390 cat conftest.err >&5 20391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20392 (exit $ac_status); } && 20393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20394 { (case "(($ac_try" in 20395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20396 *) ac_try_echo=$ac_try;; 20397esac 20398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20399 (eval "$ac_try") 2>&5 20400 ac_status=$? 20401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20402 (exit $ac_status); }; } && 20403 { ac_try='test -s conftest.$ac_objext' 20404 { (case "(($ac_try" in 20405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20406 *) ac_try_echo=$ac_try;; 20407esac 20408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20409 (eval "$ac_try") 2>&5 20410 ac_status=$? 20411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20412 (exit $ac_status); }; }; then 20413 ac_cv_prog_cc_g=yes 20414else 20415 echo "$as_me: failed program was:" >&5 20416sed 's/^/| /' conftest.$ac_ext >&5 20417 20418 20419fi 20420 20421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20422fi 20423 20424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20425fi 20426 20427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20428 ac_c_werror_flag=$ac_save_c_werror_flag 20429fi 20430{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 20431echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 20432if test "$ac_test_CFLAGS" = set; then 20433 CFLAGS=$ac_save_CFLAGS 20434elif test $ac_cv_prog_cc_g = yes; then 20435 if test "$GCC" = yes; then 20436 CFLAGS="-g -O2" 20437 else 20438 CFLAGS="-g" 20439 fi 20440else 20441 if test "$GCC" = yes; then 20442 CFLAGS="-O2" 20443 else 20444 CFLAGS= 20445 fi 20446fi 20447{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 20448echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 20449if test "${ac_cv_prog_cc_c89+set}" = set; then 20450 echo $ECHO_N "(cached) $ECHO_C" >&6 20451else 20452 ac_cv_prog_cc_c89=no 20453ac_save_CC=$CC 20454cat >conftest.$ac_ext <<_ACEOF 20455/* confdefs.h. */ 20456_ACEOF 20457cat confdefs.h >>conftest.$ac_ext 20458cat >>conftest.$ac_ext <<_ACEOF 20459/* end confdefs.h. */ 20460#include <stdarg.h> 20461#include <stdio.h> 20462#include <sys/types.h> 20463#include <sys/stat.h> 20464/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 20465struct buf { int x; }; 20466FILE * (*rcsopen) (struct buf *, struct stat *, int); 20467static char *e (p, i) 20468 char **p; 20469 int i; 20470{ 20471 return p[i]; 20472} 20473static char *f (char * (*g) (char **, int), char **p, ...) 20474{ 20475 char *s; 20476 va_list v; 20477 va_start (v,p); 20478 s = g (p, va_arg (v,int)); 20479 va_end (v); 20480 return s; 20481} 20482 20483/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 20484 function prototypes and stuff, but not '\xHH' hex character constants. 20485 These don't provoke an error unfortunately, instead are silently treated 20486 as 'x'. The following induces an error, until -std is added to get 20487 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 20488 array size at least. It's necessary to write '\x00'==0 to get something 20489 that's true only with -std. */ 20490int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 20491 20492/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 20493 inside strings and character constants. */ 20494#define FOO(x) 'x' 20495int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 20496 20497int test (int i, double x); 20498struct s1 {int (*f) (int a);}; 20499struct s2 {int (*f) (double a);}; 20500int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 20501int argc; 20502char **argv; 20503int 20504main () 20505{ 20506return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 20507 ; 20508 return 0; 20509} 20510_ACEOF 20511for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 20512 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 20513do 20514 CC="$ac_save_CC $ac_arg" 20515 rm -f conftest.$ac_objext 20516if { (ac_try="$ac_compile" 20517case "(($ac_try" in 20518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20519 *) ac_try_echo=$ac_try;; 20520esac 20521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20522 (eval "$ac_compile") 2>conftest.er1 20523 ac_status=$? 20524 grep -v '^ *+' conftest.er1 >conftest.err 20525 rm -f conftest.er1 20526 cat conftest.err >&5 20527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20528 (exit $ac_status); } && 20529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20530 { (case "(($ac_try" in 20531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20532 *) ac_try_echo=$ac_try;; 20533esac 20534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20535 (eval "$ac_try") 2>&5 20536 ac_status=$? 20537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20538 (exit $ac_status); }; } && 20539 { ac_try='test -s conftest.$ac_objext' 20540 { (case "(($ac_try" in 20541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20542 *) ac_try_echo=$ac_try;; 20543esac 20544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20545 (eval "$ac_try") 2>&5 20546 ac_status=$? 20547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20548 (exit $ac_status); }; }; then 20549 ac_cv_prog_cc_c89=$ac_arg 20550else 20551 echo "$as_me: failed program was:" >&5 20552sed 's/^/| /' conftest.$ac_ext >&5 20553 20554 20555fi 20556 20557rm -f core conftest.err conftest.$ac_objext 20558 test "x$ac_cv_prog_cc_c89" != "xno" && break 20559done 20560rm -f conftest.$ac_ext 20561CC=$ac_save_CC 20562 20563fi 20564# AC_CACHE_VAL 20565case "x$ac_cv_prog_cc_c89" in 20566 x) 20567 { echo "$as_me:$LINENO: result: none needed" >&5 20568echo "${ECHO_T}none needed" >&6; } ;; 20569 xno) 20570 { echo "$as_me:$LINENO: result: unsupported" >&5 20571echo "${ECHO_T}unsupported" >&6; } ;; 20572 *) 20573 CC="$CC $ac_cv_prog_cc_c89" 20574 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 20575echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 20576esac 20577 20578 20579ac_ext=c 20580ac_cpp='$CPP $CPPFLAGS' 20581ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20582ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20583ac_compiler_gnu=$ac_cv_c_compiler_gnu 20584 20585# Find a good install program. We prefer a C program (faster), 20586# so one script is as good as another. But avoid the broken or 20587# incompatible versions: 20588# SysV /etc/install, /usr/sbin/install 20589# SunOS /usr/etc/install 20590# IRIX /sbin/install 20591# AIX /bin/install 20592# AmigaOS /C/install, which installs bootblocks on floppy discs 20593# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 20594# AFS /usr/afsws/bin/install, which mishandles nonexistent args 20595# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 20596# OS/2's system install, which has a completely different semantic 20597# ./install, which can be erroneously created by make from ./install.sh. 20598{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 20599echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 20600if test -z "$INSTALL"; then 20601if test "${ac_cv_path_install+set}" = set; then 20602 echo $ECHO_N "(cached) $ECHO_C" >&6 20603else 20604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20605for as_dir in $PATH 20606do 20607 IFS=$as_save_IFS 20608 test -z "$as_dir" && as_dir=. 20609 # Account for people who put trailing slashes in PATH elements. 20610case $as_dir/ in 20611 ./ | .// | /cC/* | \ 20612 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 20613 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 20614 /usr/ucb/* ) ;; 20615 *) 20616 # OSF1 and SCO ODT 3.0 have their own names for install. 20617 # Don't use installbsd from OSF since it installs stuff as root 20618 # by default. 20619 for ac_prog in ginstall scoinst install; do 20620 for ac_exec_ext in '' $ac_executable_extensions; do 20621 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then 20622 if test $ac_prog = install && 20623 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 20624 # AIX install. It has an incompatible calling convention. 20625 : 20626 elif test $ac_prog = install && 20627 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 20628 # program-specific install script used by HP pwplus--don't use. 20629 : 20630 else 20631 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 20632 break 3 20633 fi 20634 fi 20635 done 20636 done 20637 ;; 20638esac 20639done 20640IFS=$as_save_IFS 20641 20642 20643fi 20644 if test "${ac_cv_path_install+set}" = set; then 20645 INSTALL=$ac_cv_path_install 20646 else 20647 # As a last resort, use the slow shell script. Don't cache a 20648 # value for INSTALL within a source directory, because that will 20649 # break other packages using the cache if that directory is 20650 # removed, or if the value is a relative name. 20651 INSTALL="$SHELL $ac_install_sh" 20652 fi 20653fi 20654{ echo "$as_me:$LINENO: result: $INSTALL" >&5 20655echo "${ECHO_T}$INSTALL" >&6; } 20656 20657# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 20658# It thinks the first close brace ends the variable substitution. 20659test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 20660 20661test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 20662 20663test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 20664 20665 20666 20667 20668for ac_prog in 'bison -y' byacc 20669do 20670 # Extract the first word of "$ac_prog", so it can be a program name with args. 20671set dummy $ac_prog; ac_word=$2 20672{ echo "$as_me:$LINENO: checking for $ac_word" >&5 20673echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 20674if test "${ac_cv_prog_YACC+set}" = set; then 20675 echo $ECHO_N "(cached) $ECHO_C" >&6 20676else 20677 if test -n "$YACC"; then 20678 ac_cv_prog_YACC="$YACC" # Let the user override the test. 20679else 20680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20681for as_dir in $PATH 20682do 20683 IFS=$as_save_IFS 20684 test -z "$as_dir" && as_dir=. 20685 for ac_exec_ext in '' $ac_executable_extensions; do 20686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 20687 ac_cv_prog_YACC="$ac_prog" 20688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20689 break 2 20690 fi 20691done 20692done 20693IFS=$as_save_IFS 20694 20695fi 20696fi 20697YACC=$ac_cv_prog_YACC 20698if test -n "$YACC"; then 20699 { echo "$as_me:$LINENO: result: $YACC" >&5 20700echo "${ECHO_T}$YACC" >&6; } 20701else 20702 { echo "$as_me:$LINENO: result: no" >&5 20703echo "${ECHO_T}no" >&6; } 20704fi 20705 20706 20707 test -n "$YACC" && break 20708done 20709test -n "$YACC" || YACC="yacc" 20710 20711for ac_prog in flex lex 20712do 20713 # Extract the first word of "$ac_prog", so it can be a program name with args. 20714set dummy $ac_prog; ac_word=$2 20715{ echo "$as_me:$LINENO: checking for $ac_word" >&5 20716echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 20717if test "${ac_cv_prog_LEX+set}" = set; then 20718 echo $ECHO_N "(cached) $ECHO_C" >&6 20719else 20720 if test -n "$LEX"; then 20721 ac_cv_prog_LEX="$LEX" # Let the user override the test. 20722else 20723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20724for as_dir in $PATH 20725do 20726 IFS=$as_save_IFS 20727 test -z "$as_dir" && as_dir=. 20728 for ac_exec_ext in '' $ac_executable_extensions; do 20729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 20730 ac_cv_prog_LEX="$ac_prog" 20731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20732 break 2 20733 fi 20734done 20735done 20736IFS=$as_save_IFS 20737 20738fi 20739fi 20740LEX=$ac_cv_prog_LEX 20741if test -n "$LEX"; then 20742 { echo "$as_me:$LINENO: result: $LEX" >&5 20743echo "${ECHO_T}$LEX" >&6; } 20744else 20745 { echo "$as_me:$LINENO: result: no" >&5 20746echo "${ECHO_T}no" >&6; } 20747fi 20748 20749 20750 test -n "$LEX" && break 20751done 20752test -n "$LEX" || LEX=":" 20753 20754if test -z "$LEXLIB" 20755then 20756 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 20757echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; } 20758if test "${ac_cv_lib_fl_yywrap+set}" = set; then 20759 echo $ECHO_N "(cached) $ECHO_C" >&6 20760else 20761 ac_check_lib_save_LIBS=$LIBS 20762LIBS="-lfl $LIBS" 20763cat >conftest.$ac_ext <<_ACEOF 20764/* confdefs.h. */ 20765_ACEOF 20766cat confdefs.h >>conftest.$ac_ext 20767cat >>conftest.$ac_ext <<_ACEOF 20768/* end confdefs.h. */ 20769 20770/* Override any GCC internal prototype to avoid an error. 20771 Use char because int might match the return type of a GCC 20772 builtin and then its argument prototype would still apply. */ 20773#ifdef __cplusplus 20774extern "C" 20775#endif 20776char yywrap (); 20777int 20778main () 20779{ 20780return yywrap (); 20781 ; 20782 return 0; 20783} 20784_ACEOF 20785rm -f conftest.$ac_objext conftest$ac_exeext 20786if { (ac_try="$ac_link" 20787case "(($ac_try" in 20788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20789 *) ac_try_echo=$ac_try;; 20790esac 20791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20792 (eval "$ac_link") 2>conftest.er1 20793 ac_status=$? 20794 grep -v '^ *+' conftest.er1 >conftest.err 20795 rm -f conftest.er1 20796 cat conftest.err >&5 20797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20798 (exit $ac_status); } && 20799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20800 { (case "(($ac_try" in 20801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20802 *) ac_try_echo=$ac_try;; 20803esac 20804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20805 (eval "$ac_try") 2>&5 20806 ac_status=$? 20807 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20808 (exit $ac_status); }; } && 20809 { ac_try='test -s conftest$ac_exeext' 20810 { (case "(($ac_try" in 20811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20812 *) ac_try_echo=$ac_try;; 20813esac 20814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20815 (eval "$ac_try") 2>&5 20816 ac_status=$? 20817 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20818 (exit $ac_status); }; }; then 20819 ac_cv_lib_fl_yywrap=yes 20820else 20821 echo "$as_me: failed program was:" >&5 20822sed 's/^/| /' conftest.$ac_ext >&5 20823 20824 ac_cv_lib_fl_yywrap=no 20825fi 20826 20827rm -f core conftest.err conftest.$ac_objext \ 20828 conftest$ac_exeext conftest.$ac_ext 20829LIBS=$ac_check_lib_save_LIBS 20830fi 20831{ echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 20832echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; } 20833if test $ac_cv_lib_fl_yywrap = yes; then 20834 LEXLIB="-lfl" 20835else 20836 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 20837echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; } 20838if test "${ac_cv_lib_l_yywrap+set}" = set; then 20839 echo $ECHO_N "(cached) $ECHO_C" >&6 20840else 20841 ac_check_lib_save_LIBS=$LIBS 20842LIBS="-ll $LIBS" 20843cat >conftest.$ac_ext <<_ACEOF 20844/* confdefs.h. */ 20845_ACEOF 20846cat confdefs.h >>conftest.$ac_ext 20847cat >>conftest.$ac_ext <<_ACEOF 20848/* end confdefs.h. */ 20849 20850/* Override any GCC internal prototype to avoid an error. 20851 Use char because int might match the return type of a GCC 20852 builtin and then its argument prototype would still apply. */ 20853#ifdef __cplusplus 20854extern "C" 20855#endif 20856char yywrap (); 20857int 20858main () 20859{ 20860return yywrap (); 20861 ; 20862 return 0; 20863} 20864_ACEOF 20865rm -f conftest.$ac_objext conftest$ac_exeext 20866if { (ac_try="$ac_link" 20867case "(($ac_try" in 20868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20869 *) ac_try_echo=$ac_try;; 20870esac 20871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20872 (eval "$ac_link") 2>conftest.er1 20873 ac_status=$? 20874 grep -v '^ *+' conftest.er1 >conftest.err 20875 rm -f conftest.er1 20876 cat conftest.err >&5 20877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20878 (exit $ac_status); } && 20879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20880 { (case "(($ac_try" in 20881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20882 *) ac_try_echo=$ac_try;; 20883esac 20884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20885 (eval "$ac_try") 2>&5 20886 ac_status=$? 20887 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20888 (exit $ac_status); }; } && 20889 { ac_try='test -s conftest$ac_exeext' 20890 { (case "(($ac_try" in 20891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20892 *) ac_try_echo=$ac_try;; 20893esac 20894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20895 (eval "$ac_try") 2>&5 20896 ac_status=$? 20897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20898 (exit $ac_status); }; }; then 20899 ac_cv_lib_l_yywrap=yes 20900else 20901 echo "$as_me: failed program was:" >&5 20902sed 's/^/| /' conftest.$ac_ext >&5 20903 20904 ac_cv_lib_l_yywrap=no 20905fi 20906 20907rm -f core conftest.err conftest.$ac_objext \ 20908 conftest$ac_exeext conftest.$ac_ext 20909LIBS=$ac_check_lib_save_LIBS 20910fi 20911{ echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 20912echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; } 20913if test $ac_cv_lib_l_yywrap = yes; then 20914 LEXLIB="-ll" 20915fi 20916 20917fi 20918 20919fi 20920 20921if test "x$LEX" != "x:"; then 20922 { echo "$as_me:$LINENO: checking lex output file root" >&5 20923echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; } 20924if test "${ac_cv_prog_lex_root+set}" = set; then 20925 echo $ECHO_N "(cached) $ECHO_C" >&6 20926else 20927 # The minimal lex program is just a single line: %%. But some broken lexes 20928# (Solaris, I think it was) want two %% lines, so accommodate them. 20929cat >conftest.l <<_ACEOF 20930%% 20931%% 20932_ACEOF 20933{ (ac_try="$LEX conftest.l" 20934case "(($ac_try" in 20935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20936 *) ac_try_echo=$ac_try;; 20937esac 20938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20939 (eval "$LEX conftest.l") 2>&5 20940 ac_status=$? 20941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20942 (exit $ac_status); } 20943if test -f lex.yy.c; then 20944 ac_cv_prog_lex_root=lex.yy 20945elif test -f lexyy.c; then 20946 ac_cv_prog_lex_root=lexyy 20947else 20948 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 20949echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} 20950 { (exit 1); exit 1; }; } 20951fi 20952fi 20953{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 20954echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; } 20955rm -f conftest.l 20956LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 20957 20958{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 20959echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; } 20960if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then 20961 echo $ECHO_N "(cached) $ECHO_C" >&6 20962else 20963 # POSIX says lex can declare yytext either as a pointer or an array; the 20964# default is implementation-dependent. Figure out which it is, since 20965# not all implementations provide the %pointer and %array declarations. 20966ac_cv_prog_lex_yytext_pointer=no 20967echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c 20968ac_save_LIBS=$LIBS 20969LIBS="$LIBS $LEXLIB" 20970cat >conftest.$ac_ext <<_ACEOF 20971`cat $LEX_OUTPUT_ROOT.c` 20972_ACEOF 20973rm -f conftest.$ac_objext conftest$ac_exeext 20974if { (ac_try="$ac_link" 20975case "(($ac_try" in 20976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20977 *) ac_try_echo=$ac_try;; 20978esac 20979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20980 (eval "$ac_link") 2>conftest.er1 20981 ac_status=$? 20982 grep -v '^ *+' conftest.er1 >conftest.err 20983 rm -f conftest.er1 20984 cat conftest.err >&5 20985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20986 (exit $ac_status); } && 20987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20988 { (case "(($ac_try" in 20989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20990 *) ac_try_echo=$ac_try;; 20991esac 20992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20993 (eval "$ac_try") 2>&5 20994 ac_status=$? 20995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20996 (exit $ac_status); }; } && 20997 { ac_try='test -s conftest$ac_exeext' 20998 { (case "(($ac_try" in 20999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21000 *) ac_try_echo=$ac_try;; 21001esac 21002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21003 (eval "$ac_try") 2>&5 21004 ac_status=$? 21005 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21006 (exit $ac_status); }; }; then 21007 ac_cv_prog_lex_yytext_pointer=yes 21008else 21009 echo "$as_me: failed program was:" >&5 21010sed 's/^/| /' conftest.$ac_ext >&5 21011 21012 21013fi 21014 21015rm -f core conftest.err conftest.$ac_objext \ 21016 conftest$ac_exeext conftest.$ac_ext 21017LIBS=$ac_save_LIBS 21018rm -f "${LEX_OUTPUT_ROOT}.c" 21019 21020fi 21021{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 21022echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; } 21023if test $ac_cv_prog_lex_yytext_pointer = yes; then 21024 21025cat >>confdefs.h <<\_ACEOF 21026#define YYTEXT_POINTER 1 21027_ACEOF 21028 21029fi 21030 21031fi 21032if test "$LEX" = :; then 21033 LEX=${am_missing_run}flex 21034fi 21035 21036{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 21037echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; } 21038 # Check whether --enable-maintainer-mode was given. 21039if test "${enable_maintainer_mode+set}" = set; then 21040 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 21041else 21042 USE_MAINTAINER_MODE=no 21043fi 21044 21045 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 21046echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; } 21047 21048 21049if test $USE_MAINTAINER_MODE = yes; then 21050 MAINTAINER_MODE_TRUE= 21051 MAINTAINER_MODE_FALSE='#' 21052else 21053 MAINTAINER_MODE_TRUE='#' 21054 MAINTAINER_MODE_FALSE= 21055fi 21056 21057 MAINT=$MAINTAINER_MODE_TRUE 21058 21059 21060 21061. ${srcdir}/configure.host 21062 21063 21064 21065 21066 21067 21068 21069 21070 21071 21072 21073for ac_header in string.h strings.h stdlib.h unistd.h stdbool.h 21074do 21075as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 21076if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21077 { echo "$as_me:$LINENO: checking for $ac_header" >&5 21078echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 21079if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21080 echo $ECHO_N "(cached) $ECHO_C" >&6 21081fi 21082ac_res=`eval echo '${'$as_ac_Header'}'` 21083 { echo "$as_me:$LINENO: result: $ac_res" >&5 21084echo "${ECHO_T}$ac_res" >&6; } 21085else 21086 # Is the header compilable? 21087{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 21088echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 21089cat >conftest.$ac_ext <<_ACEOF 21090/* confdefs.h. */ 21091_ACEOF 21092cat confdefs.h >>conftest.$ac_ext 21093cat >>conftest.$ac_ext <<_ACEOF 21094/* end confdefs.h. */ 21095$ac_includes_default 21096#include <$ac_header> 21097_ACEOF 21098rm -f conftest.$ac_objext 21099if { (ac_try="$ac_compile" 21100case "(($ac_try" in 21101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21102 *) ac_try_echo=$ac_try;; 21103esac 21104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21105 (eval "$ac_compile") 2>conftest.er1 21106 ac_status=$? 21107 grep -v '^ *+' conftest.er1 >conftest.err 21108 rm -f conftest.er1 21109 cat conftest.err >&5 21110 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21111 (exit $ac_status); } && 21112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21113 { (case "(($ac_try" in 21114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21115 *) ac_try_echo=$ac_try;; 21116esac 21117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21118 (eval "$ac_try") 2>&5 21119 ac_status=$? 21120 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21121 (exit $ac_status); }; } && 21122 { ac_try='test -s conftest.$ac_objext' 21123 { (case "(($ac_try" in 21124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21125 *) ac_try_echo=$ac_try;; 21126esac 21127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21128 (eval "$ac_try") 2>&5 21129 ac_status=$? 21130 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21131 (exit $ac_status); }; }; then 21132 ac_header_compiler=yes 21133else 21134 echo "$as_me: failed program was:" >&5 21135sed 's/^/| /' conftest.$ac_ext >&5 21136 21137 ac_header_compiler=no 21138fi 21139 21140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21141{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21142echo "${ECHO_T}$ac_header_compiler" >&6; } 21143 21144# Is the header present? 21145{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 21146echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 21147cat >conftest.$ac_ext <<_ACEOF 21148/* confdefs.h. */ 21149_ACEOF 21150cat confdefs.h >>conftest.$ac_ext 21151cat >>conftest.$ac_ext <<_ACEOF 21152/* end confdefs.h. */ 21153#include <$ac_header> 21154_ACEOF 21155if { (ac_try="$ac_cpp conftest.$ac_ext" 21156case "(($ac_try" in 21157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21158 *) ac_try_echo=$ac_try;; 21159esac 21160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21161 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 21162 ac_status=$? 21163 grep -v '^ *+' conftest.er1 >conftest.err 21164 rm -f conftest.er1 21165 cat conftest.err >&5 21166 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21167 (exit $ac_status); } >/dev/null; then 21168 if test -s conftest.err; then 21169 ac_cpp_err=$ac_c_preproc_warn_flag 21170 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 21171 else 21172 ac_cpp_err= 21173 fi 21174else 21175 ac_cpp_err=yes 21176fi 21177if test -z "$ac_cpp_err"; then 21178 ac_header_preproc=yes 21179else 21180 echo "$as_me: failed program was:" >&5 21181sed 's/^/| /' conftest.$ac_ext >&5 21182 21183 ac_header_preproc=no 21184fi 21185 21186rm -f conftest.err conftest.$ac_ext 21187{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21188echo "${ECHO_T}$ac_header_preproc" >&6; } 21189 21190# So? What about this header? 21191case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21192 yes:no: ) 21193 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 21194echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 21195 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 21196echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 21197 ac_header_preproc=yes 21198 ;; 21199 no:yes:* ) 21200 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 21201echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 21202 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 21203echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 21204 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 21205echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 21206 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 21207echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 21208 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 21209echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 21210 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 21211echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 21212 21213 ;; 21214esac 21215{ echo "$as_me:$LINENO: checking for $ac_header" >&5 21216echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 21217if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21218 echo $ECHO_N "(cached) $ECHO_C" >&6 21219else 21220 eval "$as_ac_Header=\$ac_header_preproc" 21221fi 21222ac_res=`eval echo '${'$as_ac_Header'}'` 21223 { echo "$as_me:$LINENO: result: $ac_res" >&5 21224echo "${ECHO_T}$ac_res" >&6; } 21225 21226fi 21227if test `eval echo '${'$as_ac_Header'}'` = yes; then 21228 cat >>confdefs.h <<_ACEOF 21229#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 21230_ACEOF 21231 21232fi 21233 21234done 21235 21236 21237 21238 21239for ac_func in sbrk realpath glob 21240do 21241as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 21242{ echo "$as_me:$LINENO: checking for $ac_func" >&5 21243echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 21244if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 21245 echo $ECHO_N "(cached) $ECHO_C" >&6 21246else 21247 cat >conftest.$ac_ext <<_ACEOF 21248/* confdefs.h. */ 21249_ACEOF 21250cat confdefs.h >>conftest.$ac_ext 21251cat >>conftest.$ac_ext <<_ACEOF 21252/* end confdefs.h. */ 21253/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 21254 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 21255#define $ac_func innocuous_$ac_func 21256 21257/* System header to define __stub macros and hopefully few prototypes, 21258 which can conflict with char $ac_func (); below. 21259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21260 <limits.h> exists even on freestanding compilers. */ 21261 21262#ifdef __STDC__ 21263# include <limits.h> 21264#else 21265# include <assert.h> 21266#endif 21267 21268#undef $ac_func 21269 21270/* Override any GCC internal prototype to avoid an error. 21271 Use char because int might match the return type of a GCC 21272 builtin and then its argument prototype would still apply. */ 21273#ifdef __cplusplus 21274extern "C" 21275#endif 21276char $ac_func (); 21277/* The GNU C library defines this for functions which it implements 21278 to always fail with ENOSYS. Some functions are actually named 21279 something starting with __ and the normal name is an alias. */ 21280#if defined __stub_$ac_func || defined __stub___$ac_func 21281choke me 21282#endif 21283 21284int 21285main () 21286{ 21287return $ac_func (); 21288 ; 21289 return 0; 21290} 21291_ACEOF 21292rm -f conftest.$ac_objext conftest$ac_exeext 21293if { (ac_try="$ac_link" 21294case "(($ac_try" in 21295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21296 *) ac_try_echo=$ac_try;; 21297esac 21298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21299 (eval "$ac_link") 2>conftest.er1 21300 ac_status=$? 21301 grep -v '^ *+' conftest.er1 >conftest.err 21302 rm -f conftest.er1 21303 cat conftest.err >&5 21304 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21305 (exit $ac_status); } && 21306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21307 { (case "(($ac_try" in 21308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21309 *) ac_try_echo=$ac_try;; 21310esac 21311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21312 (eval "$ac_try") 2>&5 21313 ac_status=$? 21314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21315 (exit $ac_status); }; } && 21316 { ac_try='test -s conftest$ac_exeext' 21317 { (case "(($ac_try" in 21318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21319 *) ac_try_echo=$ac_try;; 21320esac 21321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21322 (eval "$ac_try") 2>&5 21323 ac_status=$? 21324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21325 (exit $ac_status); }; }; then 21326 eval "$as_ac_var=yes" 21327else 21328 echo "$as_me: failed program was:" >&5 21329sed 's/^/| /' conftest.$ac_ext >&5 21330 21331 eval "$as_ac_var=no" 21332fi 21333 21334rm -f core conftest.err conftest.$ac_objext \ 21335 conftest$ac_exeext conftest.$ac_ext 21336fi 21337ac_res=`eval echo '${'$as_ac_var'}'` 21338 { echo "$as_me:$LINENO: result: $ac_res" >&5 21339echo "${ECHO_T}$ac_res" >&6; } 21340if test `eval echo '${'$as_ac_var'}'` = yes; then 21341 cat >>confdefs.h <<_ACEOF 21342#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 21343_ACEOF 21344 21345fi 21346done 21347 21348 21349 21350 21351 21352 21353ac_header_dirent=no 21354for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 21355 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 21356{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 21357echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } 21358if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21359 echo $ECHO_N "(cached) $ECHO_C" >&6 21360else 21361 cat >conftest.$ac_ext <<_ACEOF 21362/* confdefs.h. */ 21363_ACEOF 21364cat confdefs.h >>conftest.$ac_ext 21365cat >>conftest.$ac_ext <<_ACEOF 21366/* end confdefs.h. */ 21367#include <sys/types.h> 21368#include <$ac_hdr> 21369 21370int 21371main () 21372{ 21373if ((DIR *) 0) 21374return 0; 21375 ; 21376 return 0; 21377} 21378_ACEOF 21379rm -f conftest.$ac_objext 21380if { (ac_try="$ac_compile" 21381case "(($ac_try" in 21382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21383 *) ac_try_echo=$ac_try;; 21384esac 21385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21386 (eval "$ac_compile") 2>conftest.er1 21387 ac_status=$? 21388 grep -v '^ *+' conftest.er1 >conftest.err 21389 rm -f conftest.er1 21390 cat conftest.err >&5 21391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21392 (exit $ac_status); } && 21393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21394 { (case "(($ac_try" in 21395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21396 *) ac_try_echo=$ac_try;; 21397esac 21398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21399 (eval "$ac_try") 2>&5 21400 ac_status=$? 21401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21402 (exit $ac_status); }; } && 21403 { ac_try='test -s conftest.$ac_objext' 21404 { (case "(($ac_try" in 21405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21406 *) ac_try_echo=$ac_try;; 21407esac 21408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21409 (eval "$ac_try") 2>&5 21410 ac_status=$? 21411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21412 (exit $ac_status); }; }; then 21413 eval "$as_ac_Header=yes" 21414else 21415 echo "$as_me: failed program was:" >&5 21416sed 's/^/| /' conftest.$ac_ext >&5 21417 21418 eval "$as_ac_Header=no" 21419fi 21420 21421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21422fi 21423ac_res=`eval echo '${'$as_ac_Header'}'` 21424 { echo "$as_me:$LINENO: result: $ac_res" >&5 21425echo "${ECHO_T}$ac_res" >&6; } 21426if test `eval echo '${'$as_ac_Header'}'` = yes; then 21427 cat >>confdefs.h <<_ACEOF 21428#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 21429_ACEOF 21430 21431ac_header_dirent=$ac_hdr; break 21432fi 21433 21434done 21435# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 21436if test $ac_header_dirent = dirent.h; then 21437 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 21438echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 21439if test "${ac_cv_search_opendir+set}" = set; then 21440 echo $ECHO_N "(cached) $ECHO_C" >&6 21441else 21442 ac_func_search_save_LIBS=$LIBS 21443cat >conftest.$ac_ext <<_ACEOF 21444/* confdefs.h. */ 21445_ACEOF 21446cat confdefs.h >>conftest.$ac_ext 21447cat >>conftest.$ac_ext <<_ACEOF 21448/* end confdefs.h. */ 21449 21450/* Override any GCC internal prototype to avoid an error. 21451 Use char because int might match the return type of a GCC 21452 builtin and then its argument prototype would still apply. */ 21453#ifdef __cplusplus 21454extern "C" 21455#endif 21456char opendir (); 21457int 21458main () 21459{ 21460return opendir (); 21461 ; 21462 return 0; 21463} 21464_ACEOF 21465for ac_lib in '' dir; do 21466 if test -z "$ac_lib"; then 21467 ac_res="none required" 21468 else 21469 ac_res=-l$ac_lib 21470 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21471 fi 21472 rm -f conftest.$ac_objext conftest$ac_exeext 21473if { (ac_try="$ac_link" 21474case "(($ac_try" in 21475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21476 *) ac_try_echo=$ac_try;; 21477esac 21478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21479 (eval "$ac_link") 2>conftest.er1 21480 ac_status=$? 21481 grep -v '^ *+' conftest.er1 >conftest.err 21482 rm -f conftest.er1 21483 cat conftest.err >&5 21484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21485 (exit $ac_status); } && 21486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21487 { (case "(($ac_try" in 21488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21489 *) ac_try_echo=$ac_try;; 21490esac 21491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21492 (eval "$ac_try") 2>&5 21493 ac_status=$? 21494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21495 (exit $ac_status); }; } && 21496 { ac_try='test -s conftest$ac_exeext' 21497 { (case "(($ac_try" in 21498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21499 *) ac_try_echo=$ac_try;; 21500esac 21501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21502 (eval "$ac_try") 2>&5 21503 ac_status=$? 21504 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21505 (exit $ac_status); }; }; then 21506 ac_cv_search_opendir=$ac_res 21507else 21508 echo "$as_me: failed program was:" >&5 21509sed 's/^/| /' conftest.$ac_ext >&5 21510 21511 21512fi 21513 21514rm -f core conftest.err conftest.$ac_objext \ 21515 conftest$ac_exeext 21516 if test "${ac_cv_search_opendir+set}" = set; then 21517 break 21518fi 21519done 21520if test "${ac_cv_search_opendir+set}" = set; then 21521 : 21522else 21523 ac_cv_search_opendir=no 21524fi 21525rm conftest.$ac_ext 21526LIBS=$ac_func_search_save_LIBS 21527fi 21528{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 21529echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 21530ac_res=$ac_cv_search_opendir 21531if test "$ac_res" != no; then 21532 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21533 21534fi 21535 21536else 21537 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 21538echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 21539if test "${ac_cv_search_opendir+set}" = set; then 21540 echo $ECHO_N "(cached) $ECHO_C" >&6 21541else 21542 ac_func_search_save_LIBS=$LIBS 21543cat >conftest.$ac_ext <<_ACEOF 21544/* confdefs.h. */ 21545_ACEOF 21546cat confdefs.h >>conftest.$ac_ext 21547cat >>conftest.$ac_ext <<_ACEOF 21548/* end confdefs.h. */ 21549 21550/* Override any GCC internal prototype to avoid an error. 21551 Use char because int might match the return type of a GCC 21552 builtin and then its argument prototype would still apply. */ 21553#ifdef __cplusplus 21554extern "C" 21555#endif 21556char opendir (); 21557int 21558main () 21559{ 21560return opendir (); 21561 ; 21562 return 0; 21563} 21564_ACEOF 21565for ac_lib in '' x; do 21566 if test -z "$ac_lib"; then 21567 ac_res="none required" 21568 else 21569 ac_res=-l$ac_lib 21570 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21571 fi 21572 rm -f conftest.$ac_objext conftest$ac_exeext 21573if { (ac_try="$ac_link" 21574case "(($ac_try" in 21575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21576 *) ac_try_echo=$ac_try;; 21577esac 21578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21579 (eval "$ac_link") 2>conftest.er1 21580 ac_status=$? 21581 grep -v '^ *+' conftest.er1 >conftest.err 21582 rm -f conftest.er1 21583 cat conftest.err >&5 21584 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21585 (exit $ac_status); } && 21586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21587 { (case "(($ac_try" in 21588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21589 *) ac_try_echo=$ac_try;; 21590esac 21591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21592 (eval "$ac_try") 2>&5 21593 ac_status=$? 21594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21595 (exit $ac_status); }; } && 21596 { ac_try='test -s conftest$ac_exeext' 21597 { (case "(($ac_try" in 21598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21599 *) ac_try_echo=$ac_try;; 21600esac 21601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21602 (eval "$ac_try") 2>&5 21603 ac_status=$? 21604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21605 (exit $ac_status); }; }; then 21606 ac_cv_search_opendir=$ac_res 21607else 21608 echo "$as_me: failed program was:" >&5 21609sed 's/^/| /' conftest.$ac_ext >&5 21610 21611 21612fi 21613 21614rm -f core conftest.err conftest.$ac_objext \ 21615 conftest$ac_exeext 21616 if test "${ac_cv_search_opendir+set}" = set; then 21617 break 21618fi 21619done 21620if test "${ac_cv_search_opendir+set}" = set; then 21621 : 21622else 21623 ac_cv_search_opendir=no 21624fi 21625rm conftest.$ac_ext 21626LIBS=$ac_func_search_save_LIBS 21627fi 21628{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 21629echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 21630ac_res=$ac_cv_search_opendir 21631if test "$ac_res" != no; then 21632 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21633 21634fi 21635 21636fi 21637 21638 21639{ echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5 21640echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6; } 21641if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then 21642 echo $ECHO_N "(cached) $ECHO_C" >&6 21643else 21644 cat >conftest.$ac_ext <<_ACEOF 21645/* confdefs.h. */ 21646_ACEOF 21647cat confdefs.h >>conftest.$ac_ext 21648cat >>conftest.$ac_ext <<_ACEOF 21649/* end confdefs.h. */ 21650#include <unistd.h> 21651int 21652main () 21653{ 21654extern int getopt (int, char *const*, const char *); 21655 ; 21656 return 0; 21657} 21658_ACEOF 21659rm -f conftest.$ac_objext 21660if { (ac_try="$ac_compile" 21661case "(($ac_try" in 21662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21663 *) ac_try_echo=$ac_try;; 21664esac 21665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21666 (eval "$ac_compile") 2>conftest.er1 21667 ac_status=$? 21668 grep -v '^ *+' conftest.er1 >conftest.err 21669 rm -f conftest.er1 21670 cat conftest.err >&5 21671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21672 (exit $ac_status); } && 21673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21674 { (case "(($ac_try" in 21675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21676 *) ac_try_echo=$ac_try;; 21677esac 21678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21679 (eval "$ac_try") 2>&5 21680 ac_status=$? 21681 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21682 (exit $ac_status); }; } && 21683 { ac_try='test -s conftest.$ac_objext' 21684 { (case "(($ac_try" in 21685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21686 *) ac_try_echo=$ac_try;; 21687esac 21688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21689 (eval "$ac_try") 2>&5 21690 ac_status=$? 21691 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21692 (exit $ac_status); }; }; then 21693 ld_cv_decl_getopt_unistd_h=yes 21694else 21695 echo "$as_me: failed program was:" >&5 21696sed 's/^/| /' conftest.$ac_ext >&5 21697 21698 ld_cv_decl_getopt_unistd_h=no 21699fi 21700 21701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21702fi 21703 21704{ echo "$as_me:$LINENO: result: $ld_cv_decl_getopt_unistd_h" >&5 21705echo "${ECHO_T}$ld_cv_decl_getopt_unistd_h" >&6; } 21706if test $ld_cv_decl_getopt_unistd_h = yes; then 21707 21708cat >>confdefs.h <<\_ACEOF 21709#define HAVE_DECL_GETOPT 1 21710_ACEOF 21711 21712fi 21713 21714 21715case "${host}" in 21716*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*) 21717 21718cat >>confdefs.h <<\_ACEOF 21719#define USE_BINARY_FOPEN 1 21720_ACEOF 21721 ;; 21722esac 21723 21724{ echo "$as_me:$LINENO: checking whether strstr is declared" >&5 21725echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6; } 21726if test "${ac_cv_have_decl_strstr+set}" = set; then 21727 echo $ECHO_N "(cached) $ECHO_C" >&6 21728else 21729 cat >conftest.$ac_ext <<_ACEOF 21730/* confdefs.h. */ 21731_ACEOF 21732cat confdefs.h >>conftest.$ac_ext 21733cat >>conftest.$ac_ext <<_ACEOF 21734/* end confdefs.h. */ 21735$ac_includes_default 21736int 21737main () 21738{ 21739#ifndef strstr 21740 char *p = (char *) strstr; 21741 return !p; 21742#endif 21743 21744 ; 21745 return 0; 21746} 21747_ACEOF 21748rm -f conftest.$ac_objext 21749if { (ac_try="$ac_compile" 21750case "(($ac_try" in 21751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21752 *) ac_try_echo=$ac_try;; 21753esac 21754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21755 (eval "$ac_compile") 2>conftest.er1 21756 ac_status=$? 21757 grep -v '^ *+' conftest.er1 >conftest.err 21758 rm -f conftest.er1 21759 cat conftest.err >&5 21760 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21761 (exit $ac_status); } && 21762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21763 { (case "(($ac_try" in 21764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21765 *) ac_try_echo=$ac_try;; 21766esac 21767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21768 (eval "$ac_try") 2>&5 21769 ac_status=$? 21770 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21771 (exit $ac_status); }; } && 21772 { ac_try='test -s conftest.$ac_objext' 21773 { (case "(($ac_try" in 21774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21775 *) ac_try_echo=$ac_try;; 21776esac 21777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21778 (eval "$ac_try") 2>&5 21779 ac_status=$? 21780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21781 (exit $ac_status); }; }; then 21782 ac_cv_have_decl_strstr=yes 21783else 21784 echo "$as_me: failed program was:" >&5 21785sed 's/^/| /' conftest.$ac_ext >&5 21786 21787 ac_cv_have_decl_strstr=no 21788fi 21789 21790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21791fi 21792{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5 21793echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6; } 21794if test $ac_cv_have_decl_strstr = yes; then 21795 21796cat >>confdefs.h <<_ACEOF 21797#define HAVE_DECL_STRSTR 1 21798_ACEOF 21799 21800 21801else 21802 cat >>confdefs.h <<_ACEOF 21803#define HAVE_DECL_STRSTR 0 21804_ACEOF 21805 21806 21807fi 21808{ echo "$as_me:$LINENO: checking whether free is declared" >&5 21809echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6; } 21810if test "${ac_cv_have_decl_free+set}" = set; then 21811 echo $ECHO_N "(cached) $ECHO_C" >&6 21812else 21813 cat >conftest.$ac_ext <<_ACEOF 21814/* confdefs.h. */ 21815_ACEOF 21816cat confdefs.h >>conftest.$ac_ext 21817cat >>conftest.$ac_ext <<_ACEOF 21818/* end confdefs.h. */ 21819$ac_includes_default 21820int 21821main () 21822{ 21823#ifndef free 21824 char *p = (char *) free; 21825 return !p; 21826#endif 21827 21828 ; 21829 return 0; 21830} 21831_ACEOF 21832rm -f conftest.$ac_objext 21833if { (ac_try="$ac_compile" 21834case "(($ac_try" in 21835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21836 *) ac_try_echo=$ac_try;; 21837esac 21838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21839 (eval "$ac_compile") 2>conftest.er1 21840 ac_status=$? 21841 grep -v '^ *+' conftest.er1 >conftest.err 21842 rm -f conftest.er1 21843 cat conftest.err >&5 21844 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21845 (exit $ac_status); } && 21846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21847 { (case "(($ac_try" in 21848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21849 *) ac_try_echo=$ac_try;; 21850esac 21851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21852 (eval "$ac_try") 2>&5 21853 ac_status=$? 21854 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21855 (exit $ac_status); }; } && 21856 { ac_try='test -s conftest.$ac_objext' 21857 { (case "(($ac_try" in 21858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21859 *) ac_try_echo=$ac_try;; 21860esac 21861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21862 (eval "$ac_try") 2>&5 21863 ac_status=$? 21864 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21865 (exit $ac_status); }; }; then 21866 ac_cv_have_decl_free=yes 21867else 21868 echo "$as_me: failed program was:" >&5 21869sed 's/^/| /' conftest.$ac_ext >&5 21870 21871 ac_cv_have_decl_free=no 21872fi 21873 21874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21875fi 21876{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5 21877echo "${ECHO_T}$ac_cv_have_decl_free" >&6; } 21878if test $ac_cv_have_decl_free = yes; then 21879 21880cat >>confdefs.h <<_ACEOF 21881#define HAVE_DECL_FREE 1 21882_ACEOF 21883 21884 21885else 21886 cat >>confdefs.h <<_ACEOF 21887#define HAVE_DECL_FREE 0 21888_ACEOF 21889 21890 21891fi 21892{ echo "$as_me:$LINENO: checking whether sbrk is declared" >&5 21893echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6; } 21894if test "${ac_cv_have_decl_sbrk+set}" = set; then 21895 echo $ECHO_N "(cached) $ECHO_C" >&6 21896else 21897 cat >conftest.$ac_ext <<_ACEOF 21898/* confdefs.h. */ 21899_ACEOF 21900cat confdefs.h >>conftest.$ac_ext 21901cat >>conftest.$ac_ext <<_ACEOF 21902/* end confdefs.h. */ 21903$ac_includes_default 21904int 21905main () 21906{ 21907#ifndef sbrk 21908 char *p = (char *) sbrk; 21909 return !p; 21910#endif 21911 21912 ; 21913 return 0; 21914} 21915_ACEOF 21916rm -f conftest.$ac_objext 21917if { (ac_try="$ac_compile" 21918case "(($ac_try" in 21919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21920 *) ac_try_echo=$ac_try;; 21921esac 21922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21923 (eval "$ac_compile") 2>conftest.er1 21924 ac_status=$? 21925 grep -v '^ *+' conftest.er1 >conftest.err 21926 rm -f conftest.er1 21927 cat conftest.err >&5 21928 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21929 (exit $ac_status); } && 21930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21931 { (case "(($ac_try" in 21932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21933 *) ac_try_echo=$ac_try;; 21934esac 21935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21936 (eval "$ac_try") 2>&5 21937 ac_status=$? 21938 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21939 (exit $ac_status); }; } && 21940 { ac_try='test -s conftest.$ac_objext' 21941 { (case "(($ac_try" in 21942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21943 *) ac_try_echo=$ac_try;; 21944esac 21945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21946 (eval "$ac_try") 2>&5 21947 ac_status=$? 21948 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21949 (exit $ac_status); }; }; then 21950 ac_cv_have_decl_sbrk=yes 21951else 21952 echo "$as_me: failed program was:" >&5 21953sed 's/^/| /' conftest.$ac_ext >&5 21954 21955 ac_cv_have_decl_sbrk=no 21956fi 21957 21958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21959fi 21960{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5 21961echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6; } 21962if test $ac_cv_have_decl_sbrk = yes; then 21963 21964cat >>confdefs.h <<_ACEOF 21965#define HAVE_DECL_SBRK 1 21966_ACEOF 21967 21968 21969else 21970 cat >>confdefs.h <<_ACEOF 21971#define HAVE_DECL_SBRK 0 21972_ACEOF 21973 21974 21975fi 21976{ echo "$as_me:$LINENO: checking whether getenv is declared" >&5 21977echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6; } 21978if test "${ac_cv_have_decl_getenv+set}" = set; then 21979 echo $ECHO_N "(cached) $ECHO_C" >&6 21980else 21981 cat >conftest.$ac_ext <<_ACEOF 21982/* confdefs.h. */ 21983_ACEOF 21984cat confdefs.h >>conftest.$ac_ext 21985cat >>conftest.$ac_ext <<_ACEOF 21986/* end confdefs.h. */ 21987$ac_includes_default 21988int 21989main () 21990{ 21991#ifndef getenv 21992 char *p = (char *) getenv; 21993 return !p; 21994#endif 21995 21996 ; 21997 return 0; 21998} 21999_ACEOF 22000rm -f conftest.$ac_objext 22001if { (ac_try="$ac_compile" 22002case "(($ac_try" in 22003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22004 *) ac_try_echo=$ac_try;; 22005esac 22006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22007 (eval "$ac_compile") 2>conftest.er1 22008 ac_status=$? 22009 grep -v '^ *+' conftest.er1 >conftest.err 22010 rm -f conftest.er1 22011 cat conftest.err >&5 22012 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22013 (exit $ac_status); } && 22014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22015 { (case "(($ac_try" in 22016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22017 *) ac_try_echo=$ac_try;; 22018esac 22019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22020 (eval "$ac_try") 2>&5 22021 ac_status=$? 22022 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22023 (exit $ac_status); }; } && 22024 { ac_try='test -s conftest.$ac_objext' 22025 { (case "(($ac_try" in 22026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22027 *) ac_try_echo=$ac_try;; 22028esac 22029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22030 (eval "$ac_try") 2>&5 22031 ac_status=$? 22032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22033 (exit $ac_status); }; }; then 22034 ac_cv_have_decl_getenv=yes 22035else 22036 echo "$as_me: failed program was:" >&5 22037sed 's/^/| /' conftest.$ac_ext >&5 22038 22039 ac_cv_have_decl_getenv=no 22040fi 22041 22042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22043fi 22044{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5 22045echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6; } 22046if test $ac_cv_have_decl_getenv = yes; then 22047 22048cat >>confdefs.h <<_ACEOF 22049#define HAVE_DECL_GETENV 1 22050_ACEOF 22051 22052 22053else 22054 cat >>confdefs.h <<_ACEOF 22055#define HAVE_DECL_GETENV 0 22056_ACEOF 22057 22058 22059fi 22060{ echo "$as_me:$LINENO: checking whether environ is declared" >&5 22061echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6; } 22062if test "${ac_cv_have_decl_environ+set}" = set; then 22063 echo $ECHO_N "(cached) $ECHO_C" >&6 22064else 22065 cat >conftest.$ac_ext <<_ACEOF 22066/* confdefs.h. */ 22067_ACEOF 22068cat confdefs.h >>conftest.$ac_ext 22069cat >>conftest.$ac_ext <<_ACEOF 22070/* end confdefs.h. */ 22071$ac_includes_default 22072int 22073main () 22074{ 22075#ifndef environ 22076 char *p = (char *) environ; 22077 return !p; 22078#endif 22079 22080 ; 22081 return 0; 22082} 22083_ACEOF 22084rm -f conftest.$ac_objext 22085if { (ac_try="$ac_compile" 22086case "(($ac_try" in 22087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22088 *) ac_try_echo=$ac_try;; 22089esac 22090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22091 (eval "$ac_compile") 2>conftest.er1 22092 ac_status=$? 22093 grep -v '^ *+' conftest.er1 >conftest.err 22094 rm -f conftest.er1 22095 cat conftest.err >&5 22096 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22097 (exit $ac_status); } && 22098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22099 { (case "(($ac_try" in 22100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22101 *) ac_try_echo=$ac_try;; 22102esac 22103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22104 (eval "$ac_try") 2>&5 22105 ac_status=$? 22106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22107 (exit $ac_status); }; } && 22108 { ac_try='test -s conftest.$ac_objext' 22109 { (case "(($ac_try" in 22110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22111 *) ac_try_echo=$ac_try;; 22112esac 22113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22114 (eval "$ac_try") 2>&5 22115 ac_status=$? 22116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22117 (exit $ac_status); }; }; then 22118 ac_cv_have_decl_environ=yes 22119else 22120 echo "$as_me: failed program was:" >&5 22121sed 's/^/| /' conftest.$ac_ext >&5 22122 22123 ac_cv_have_decl_environ=no 22124fi 22125 22126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22127fi 22128{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5 22129echo "${ECHO_T}$ac_cv_have_decl_environ" >&6; } 22130if test $ac_cv_have_decl_environ = yes; then 22131 22132cat >>confdefs.h <<_ACEOF 22133#define HAVE_DECL_ENVIRON 1 22134_ACEOF 22135 22136 22137else 22138 cat >>confdefs.h <<_ACEOF 22139#define HAVE_DECL_ENVIRON 0 22140_ACEOF 22141 22142 22143fi 22144 22145 22146 22147# These look needed for ../bfd/sysdep.h 22148{ echo "$as_me:$LINENO: checking whether malloc is declared" >&5 22149echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6; } 22150if test "${ac_cv_have_decl_malloc+set}" = set; then 22151 echo $ECHO_N "(cached) $ECHO_C" >&6 22152else 22153 cat >conftest.$ac_ext <<_ACEOF 22154/* confdefs.h. */ 22155_ACEOF 22156cat confdefs.h >>conftest.$ac_ext 22157cat >>conftest.$ac_ext <<_ACEOF 22158/* end confdefs.h. */ 22159$ac_includes_default 22160int 22161main () 22162{ 22163#ifndef malloc 22164 char *p = (char *) malloc; 22165 return !p; 22166#endif 22167 22168 ; 22169 return 0; 22170} 22171_ACEOF 22172rm -f conftest.$ac_objext 22173if { (ac_try="$ac_compile" 22174case "(($ac_try" in 22175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22176 *) ac_try_echo=$ac_try;; 22177esac 22178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22179 (eval "$ac_compile") 2>conftest.er1 22180 ac_status=$? 22181 grep -v '^ *+' conftest.er1 >conftest.err 22182 rm -f conftest.er1 22183 cat conftest.err >&5 22184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22185 (exit $ac_status); } && 22186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22187 { (case "(($ac_try" in 22188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22189 *) ac_try_echo=$ac_try;; 22190esac 22191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22192 (eval "$ac_try") 2>&5 22193 ac_status=$? 22194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22195 (exit $ac_status); }; } && 22196 { ac_try='test -s conftest.$ac_objext' 22197 { (case "(($ac_try" in 22198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22199 *) ac_try_echo=$ac_try;; 22200esac 22201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22202 (eval "$ac_try") 2>&5 22203 ac_status=$? 22204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22205 (exit $ac_status); }; }; then 22206 ac_cv_have_decl_malloc=yes 22207else 22208 echo "$as_me: failed program was:" >&5 22209sed 's/^/| /' conftest.$ac_ext >&5 22210 22211 ac_cv_have_decl_malloc=no 22212fi 22213 22214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22215fi 22216{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5 22217echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6; } 22218if test $ac_cv_have_decl_malloc = yes; then 22219 22220cat >>confdefs.h <<_ACEOF 22221#define HAVE_DECL_MALLOC 1 22222_ACEOF 22223 22224 22225else 22226 cat >>confdefs.h <<_ACEOF 22227#define HAVE_DECL_MALLOC 0 22228_ACEOF 22229 22230 22231fi 22232{ echo "$as_me:$LINENO: checking whether realloc is declared" >&5 22233echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6; } 22234if test "${ac_cv_have_decl_realloc+set}" = set; then 22235 echo $ECHO_N "(cached) $ECHO_C" >&6 22236else 22237 cat >conftest.$ac_ext <<_ACEOF 22238/* confdefs.h. */ 22239_ACEOF 22240cat confdefs.h >>conftest.$ac_ext 22241cat >>conftest.$ac_ext <<_ACEOF 22242/* end confdefs.h. */ 22243$ac_includes_default 22244int 22245main () 22246{ 22247#ifndef realloc 22248 char *p = (char *) realloc; 22249 return !p; 22250#endif 22251 22252 ; 22253 return 0; 22254} 22255_ACEOF 22256rm -f conftest.$ac_objext 22257if { (ac_try="$ac_compile" 22258case "(($ac_try" in 22259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22260 *) ac_try_echo=$ac_try;; 22261esac 22262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22263 (eval "$ac_compile") 2>conftest.er1 22264 ac_status=$? 22265 grep -v '^ *+' conftest.er1 >conftest.err 22266 rm -f conftest.er1 22267 cat conftest.err >&5 22268 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22269 (exit $ac_status); } && 22270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22271 { (case "(($ac_try" in 22272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22273 *) ac_try_echo=$ac_try;; 22274esac 22275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22276 (eval "$ac_try") 2>&5 22277 ac_status=$? 22278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22279 (exit $ac_status); }; } && 22280 { ac_try='test -s conftest.$ac_objext' 22281 { (case "(($ac_try" in 22282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22283 *) ac_try_echo=$ac_try;; 22284esac 22285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22286 (eval "$ac_try") 2>&5 22287 ac_status=$? 22288 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22289 (exit $ac_status); }; }; then 22290 ac_cv_have_decl_realloc=yes 22291else 22292 echo "$as_me: failed program was:" >&5 22293sed 's/^/| /' conftest.$ac_ext >&5 22294 22295 ac_cv_have_decl_realloc=no 22296fi 22297 22298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22299fi 22300{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5 22301echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6; } 22302if test $ac_cv_have_decl_realloc = yes; then 22303 22304cat >>confdefs.h <<_ACEOF 22305#define HAVE_DECL_REALLOC 1 22306_ACEOF 22307 22308 22309else 22310 cat >>confdefs.h <<_ACEOF 22311#define HAVE_DECL_REALLOC 0 22312_ACEOF 22313 22314 22315fi 22316 22317 22318 22319# When converting linker scripts into strings for use in emulation 22320# files, use astring.sed if the compiler supports ANSI string 22321# concatenation, or ostring.sed otherwise. This is to support the 22322# broken Microsoft MSVC compiler, which limits the length of string 22323# constants, while still supporting pre-ANSI compilers which do not 22324# support string concatenation. 22325{ echo "$as_me:$LINENO: checking whether ANSI C string concatenation works" >&5 22326echo $ECHO_N "checking whether ANSI C string concatenation works... $ECHO_C" >&6; } 22327if test "${ld_cv_string_concatenation+set}" = set; then 22328 echo $ECHO_N "(cached) $ECHO_C" >&6 22329else 22330 cat >conftest.$ac_ext <<_ACEOF 22331/* confdefs.h. */ 22332_ACEOF 22333cat confdefs.h >>conftest.$ac_ext 22334cat >>conftest.$ac_ext <<_ACEOF 22335/* end confdefs.h. */ 22336 22337int 22338main () 22339{ 22340char *a = "a" "a"; 22341 ; 22342 return 0; 22343} 22344_ACEOF 22345rm -f conftest.$ac_objext 22346if { (ac_try="$ac_compile" 22347case "(($ac_try" in 22348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22349 *) ac_try_echo=$ac_try;; 22350esac 22351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22352 (eval "$ac_compile") 2>conftest.er1 22353 ac_status=$? 22354 grep -v '^ *+' conftest.er1 >conftest.err 22355 rm -f conftest.er1 22356 cat conftest.err >&5 22357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22358 (exit $ac_status); } && 22359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22360 { (case "(($ac_try" in 22361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22362 *) ac_try_echo=$ac_try;; 22363esac 22364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22365 (eval "$ac_try") 2>&5 22366 ac_status=$? 22367 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22368 (exit $ac_status); }; } && 22369 { ac_try='test -s conftest.$ac_objext' 22370 { (case "(($ac_try" in 22371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22372 *) ac_try_echo=$ac_try;; 22373esac 22374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22375 (eval "$ac_try") 2>&5 22376 ac_status=$? 22377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22378 (exit $ac_status); }; }; then 22379 ld_cv_string_concatenation=yes 22380else 22381 echo "$as_me: failed program was:" >&5 22382sed 's/^/| /' conftest.$ac_ext >&5 22383 22384 ld_cv_string_concatenation=no 22385fi 22386 22387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22388fi 22389 22390{ echo "$as_me:$LINENO: result: $ld_cv_string_concatenation" >&5 22391echo "${ECHO_T}$ld_cv_string_concatenation" >&6; } 22392if test "$ld_cv_string_concatenation" = "yes"; then 22393 STRINGIFY=astring.sed 22394else 22395 STRINGIFY=ostring.sed 22396fi 22397 22398 22399# target-specific stuff: 22400 22401all_targets= 22402EMUL= 22403all_emuls= 22404all_emul_extras= 22405all_libpath= 22406 22407rm -f tdirs 22408 22409for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'` 22410do 22411 if test "$targ_alias" = "all"; then 22412 all_targets=true 22413 else 22414 # Canonicalize the secondary target names. 22415 result=`$ac_config_sub $targ_alias 2>/dev/null` 22416 if test -n "$result"; then 22417 targ=$result 22418 else 22419 targ=$targ_alias 22420 fi 22421 22422 . ${srcdir}/configure.tgt 22423 22424 if test "$targ" = "$target"; then 22425 EMUL=$targ_emul 22426 fi 22427 22428 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do 22429 case " $all_emuls " in 22430 *" e${i}.o "*) ;; 22431 *) 22432 all_emuls="$all_emuls e${i}.o" 22433 eval result=\$tdir_$i 22434 test -z "$result" && result=$targ_alias 22435 echo tdir_$i=$result >> tdirs 22436 ;; 22437 esac 22438 done 22439 22440 for i in $targ_emul $targ_extra_libpath; do 22441 case " $all_libpath " in 22442 *" ${i} "*) ;; 22443 *) 22444 if test -z "$all_libpath"; then 22445 all_libpath=${i} 22446 else 22447 all_libpath="$all_libpath ${i}" 22448 fi 22449 ;; 22450 esac 22451 done 22452 22453 for i in $targ_extra_ofiles; do 22454 case " $all_emul_extras " in 22455 *" ${i} "*) ;; 22456 *) 22457 all_emul_extras="$all_emul_extras ${i}" 22458 ;; 22459 esac 22460 done 22461 fi 22462done 22463 22464 22465 22466TDIRS=tdirs 22467 22468 22469if test x${all_targets} = xtrue; then 22470 if test x${want64} = xtrue; then 22471 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)' 22472 else 22473 EMULATION_OFILES='$(ALL_EMULATIONS)' 22474 fi 22475 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)' 22476else 22477 EMULATION_OFILES=$all_emuls 22478 EMUL_EXTRA_OFILES=$all_emul_extras 22479fi 22480 22481 22482 22483 22484EMULATION_LIBPATH=$all_libpath 22485 22486 22487if test x${enable_static} = xno; then 22488 TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so" 22489else 22490 TESTBFDLIB="../bfd/.libs/libbfd.a" 22491fi 22492 22493 22494target_vendor=${target_vendor=$host_vendor} 22495case "$target_vendor" in 22496 hp) EXTRA_SHLIB_EXTENSION=".sl" ;; 22497 *) EXTRA_SHLIB_EXTENSION= ;; 22498esac 22499 22500case "$target_os" in 22501 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;; 22502esac 22503 22504if test x${EXTRA_SHLIB_EXTENSION} != x ; then 22505 22506cat >>confdefs.h <<_ACEOF 22507#define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION" 22508_ACEOF 22509 22510fi 22511 22512ac_config_files="$ac_config_files Makefile" 22513 22514cat >confcache <<\_ACEOF 22515# This file is a shell script that caches the results of configure 22516# tests run on this system so they can be shared between configure 22517# scripts and configure runs, see configure's option --config-cache. 22518# It is not useful on other systems. If it contains results you don't 22519# want to keep, you may remove or edit it. 22520# 22521# config.status only pays attention to the cache file if you give it 22522# the --recheck option to rerun configure. 22523# 22524# `ac_cv_env_foo' variables (set or unset) will be overridden when 22525# loading this file, other *unset* `ac_cv_foo' will be assigned the 22526# following values. 22527 22528_ACEOF 22529 22530# The following way of writing the cache mishandles newlines in values, 22531# but we know of no workaround that is simple, portable, and efficient. 22532# So, we kill variables containing newlines. 22533# Ultrix sh set writes to stderr and can't be redirected directly, 22534# and sets the high bit in the cache file unless we assign to the vars. 22535( 22536 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 22537 eval ac_val=\$$ac_var 22538 case $ac_val in #( 22539 *${as_nl}*) 22540 case $ac_var in #( 22541 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 22542echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 22543 esac 22544 case $ac_var in #( 22545 _ | IFS | as_nl) ;; #( 22546 *) $as_unset $ac_var ;; 22547 esac ;; 22548 esac 22549 done 22550 22551 (set) 2>&1 | 22552 case $as_nl`(ac_space=' '; set) 2>&1` in #( 22553 *${as_nl}ac_space=\ *) 22554 # `set' does not quote correctly, so add quotes (double-quote 22555 # substitution turns \\\\ into \\, and sed turns \\ into \). 22556 sed -n \ 22557 "s/'/'\\\\''/g; 22558 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 22559 ;; #( 22560 *) 22561 # `set' quotes correctly as required by POSIX, so do not add quotes. 22562 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 22563 ;; 22564 esac | 22565 sort 22566) | 22567 sed ' 22568 /^ac_cv_env_/b end 22569 t clear 22570 :clear 22571 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 22572 t end 22573 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 22574 :end' >>confcache 22575if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 22576 if test -w "$cache_file"; then 22577 test "x$cache_file" != "x/dev/null" && 22578 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 22579echo "$as_me: updating cache $cache_file" >&6;} 22580 cat confcache >$cache_file 22581 else 22582 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 22583echo "$as_me: not updating unwritable cache $cache_file" >&6;} 22584 fi 22585fi 22586rm -f confcache 22587 22588test "x$prefix" = xNONE && prefix=$ac_default_prefix 22589# Let make expand exec_prefix. 22590test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 22591 22592DEFS=-DHAVE_CONFIG_H 22593 22594ac_libobjs= 22595ac_ltlibobjs= 22596for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 22597 # 1. Remove the extension, and $U if already installed. 22598 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 22599 ac_i=`echo "$ac_i" | sed "$ac_script"` 22600 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 22601 # will be set to the directory where LIBOBJS objects are built. 22602 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 22603 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 22604done 22605LIBOBJS=$ac_libobjs 22606 22607LTLIBOBJS=$ac_ltlibobjs 22608 22609 22610if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 22611 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 22612Usually this means the macro was only invoked conditionally." >&5 22613echo "$as_me: error: conditional \"AMDEP\" was never defined. 22614Usually this means the macro was only invoked conditionally." >&2;} 22615 { (exit 1); exit 1; }; } 22616fi 22617if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 22618 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 22619Usually this means the macro was only invoked conditionally." >&5 22620echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 22621Usually this means the macro was only invoked conditionally." >&2;} 22622 { (exit 1); exit 1; }; } 22623fi 22624if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 22625 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 22626Usually this means the macro was only invoked conditionally." >&5 22627echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 22628Usually this means the macro was only invoked conditionally." >&2;} 22629 { (exit 1); exit 1; }; } 22630fi 22631if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 22632 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 22633Usually this means the macro was only invoked conditionally." >&5 22634echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 22635Usually this means the macro was only invoked conditionally." >&2;} 22636 { (exit 1); exit 1; }; } 22637fi 22638 22639: ${CONFIG_STATUS=./config.status} 22640ac_clean_files_save=$ac_clean_files 22641ac_clean_files="$ac_clean_files $CONFIG_STATUS" 22642{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 22643echo "$as_me: creating $CONFIG_STATUS" >&6;} 22644cat >$CONFIG_STATUS <<_ACEOF 22645#! $SHELL 22646# Generated by $as_me. 22647# Run this file to recreate the current configuration. 22648# Compiler output produced by configure, useful for debugging 22649# configure, is in config.log if it exists. 22650 22651debug=false 22652ac_cs_recheck=false 22653ac_cs_silent=false 22654SHELL=\${CONFIG_SHELL-$SHELL} 22655_ACEOF 22656 22657cat >>$CONFIG_STATUS <<\_ACEOF 22658## --------------------- ## 22659## M4sh Initialization. ## 22660## --------------------- ## 22661 22662# Be Bourne compatible 22663if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 22664 emulate sh 22665 NULLCMD=: 22666 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 22667 # is contrary to our usage. Disable this feature. 22668 alias -g '${1+"$@"}'='"$@"' 22669 setopt NO_GLOB_SUBST 22670else 22671 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 22672fi 22673BIN_SH=xpg4; export BIN_SH # for Tru64 22674DUALCASE=1; export DUALCASE # for MKS sh 22675 22676 22677# PATH needs CR 22678# Avoid depending upon Character Ranges. 22679as_cr_letters='abcdefghijklmnopqrstuvwxyz' 22680as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 22681as_cr_Letters=$as_cr_letters$as_cr_LETTERS 22682as_cr_digits='0123456789' 22683as_cr_alnum=$as_cr_Letters$as_cr_digits 22684 22685# The user is always right. 22686if test "${PATH_SEPARATOR+set}" != set; then 22687 echo "#! /bin/sh" >conf$$.sh 22688 echo "exit 0" >>conf$$.sh 22689 chmod +x conf$$.sh 22690 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 22691 PATH_SEPARATOR=';' 22692 else 22693 PATH_SEPARATOR=: 22694 fi 22695 rm -f conf$$.sh 22696fi 22697 22698# Support unset when possible. 22699if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 22700 as_unset=unset 22701else 22702 as_unset=false 22703fi 22704 22705 22706# IFS 22707# We need space, tab and new line, in precisely that order. Quoting is 22708# there to prevent editors from complaining about space-tab. 22709# (If _AS_PATH_WALK were called with IFS unset, it would disable word 22710# splitting by setting IFS to empty value.) 22711as_nl=' 22712' 22713IFS=" "" $as_nl" 22714 22715# Find who we are. Look in the path if we contain no directory separator. 22716case $0 in 22717 *[\\/]* ) as_myself=$0 ;; 22718 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22719for as_dir in $PATH 22720do 22721 IFS=$as_save_IFS 22722 test -z "$as_dir" && as_dir=. 22723 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 22724done 22725IFS=$as_save_IFS 22726 22727 ;; 22728esac 22729# We did not find ourselves, most probably we were run as `sh COMMAND' 22730# in which case we are not to be found in the path. 22731if test "x$as_myself" = x; then 22732 as_myself=$0 22733fi 22734if test ! -f "$as_myself"; then 22735 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 22736 { (exit 1); exit 1; } 22737fi 22738 22739# Work around bugs in pre-3.0 UWIN ksh. 22740for as_var in ENV MAIL MAILPATH 22741do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 22742done 22743PS1='$ ' 22744PS2='> ' 22745PS4='+ ' 22746 22747# NLS nuisances. 22748for as_var in \ 22749 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 22750 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 22751 LC_TELEPHONE LC_TIME 22752do 22753 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 22754 eval $as_var=C; export $as_var 22755 else 22756 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 22757 fi 22758done 22759 22760# Required to use basename. 22761if expr a : '\(a\)' >/dev/null 2>&1 && 22762 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22763 as_expr=expr 22764else 22765 as_expr=false 22766fi 22767 22768if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 22769 as_basename=basename 22770else 22771 as_basename=false 22772fi 22773 22774 22775# Name of the executable. 22776as_me=`$as_basename -- "$0" || 22777$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 22778 X"$0" : 'X\(//\)$' \| \ 22779 X"$0" : 'X\(/\)' \| . 2>/dev/null || 22780echo X/"$0" | 22781 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22782 s//\1/ 22783 q 22784 } 22785 /^X\/\(\/\/\)$/{ 22786 s//\1/ 22787 q 22788 } 22789 /^X\/\(\/\).*/{ 22790 s//\1/ 22791 q 22792 } 22793 s/.*/./; q'` 22794 22795# CDPATH. 22796$as_unset CDPATH 22797 22798 22799 22800 as_lineno_1=$LINENO 22801 as_lineno_2=$LINENO 22802 test "x$as_lineno_1" != "x$as_lineno_2" && 22803 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 22804 22805 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 22806 # uniformly replaced by the line number. The first 'sed' inserts a 22807 # line-number line after each line using $LINENO; the second 'sed' 22808 # does the real work. The second script uses 'N' to pair each 22809 # line-number line with the line containing $LINENO, and appends 22810 # trailing '-' during substitution so that $LINENO is not a special 22811 # case at line end. 22812 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 22813 # scripts with optimization help from Paolo Bonzini. Blame Lee 22814 # E. McMahon (1931-1989) for sed's syntax. :-) 22815 sed -n ' 22816 p 22817 /[$]LINENO/= 22818 ' <$as_myself | 22819 sed ' 22820 s/[$]LINENO.*/&-/ 22821 t lineno 22822 b 22823 :lineno 22824 N 22825 :loop 22826 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 22827 t loop 22828 s/-\n.*// 22829 ' >$as_me.lineno && 22830 chmod +x "$as_me.lineno" || 22831 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 22832 { (exit 1); exit 1; }; } 22833 22834 # Don't try to exec as it changes $[0], causing all sort of problems 22835 # (the dirname of $[0] is not the place where we might find the 22836 # original and so on. Autoconf is especially sensitive to this). 22837 . "./$as_me.lineno" 22838 # Exit status is that of the last command. 22839 exit 22840} 22841 22842 22843if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 22844 as_dirname=dirname 22845else 22846 as_dirname=false 22847fi 22848 22849ECHO_C= ECHO_N= ECHO_T= 22850case `echo -n x` in 22851-n*) 22852 case `echo 'x\c'` in 22853 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 22854 *) ECHO_C='\c';; 22855 esac;; 22856*) 22857 ECHO_N='-n';; 22858esac 22859 22860if expr a : '\(a\)' >/dev/null 2>&1 && 22861 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22862 as_expr=expr 22863else 22864 as_expr=false 22865fi 22866 22867rm -f conf$$ conf$$.exe conf$$.file 22868if test -d conf$$.dir; then 22869 rm -f conf$$.dir/conf$$.file 22870else 22871 rm -f conf$$.dir 22872 mkdir conf$$.dir 22873fi 22874echo >conf$$.file 22875if ln -s conf$$.file conf$$ 2>/dev/null; then 22876 as_ln_s='ln -s' 22877 # ... but there are two gotchas: 22878 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 22879 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 22880 # In both cases, we have to default to `cp -p'. 22881 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 22882 as_ln_s='cp -p' 22883elif ln conf$$.file conf$$ 2>/dev/null; then 22884 as_ln_s=ln 22885else 22886 as_ln_s='cp -p' 22887fi 22888rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 22889rmdir conf$$.dir 2>/dev/null 22890 22891if mkdir -p . 2>/dev/null; then 22892 as_mkdir_p=: 22893else 22894 test -d ./-p && rmdir ./-p 22895 as_mkdir_p=false 22896fi 22897 22898# Find out whether ``test -x'' works. Don't use a zero-byte file, as 22899# systems may use methods other than mode bits to determine executability. 22900cat >conf$$.file <<_ASEOF 22901#! /bin/sh 22902exit 0 22903_ASEOF 22904chmod +x conf$$.file 22905if test -x conf$$.file >/dev/null 2>&1; then 22906 as_executable_p="test -x" 22907else 22908 as_executable_p=: 22909fi 22910rm -f conf$$.file 22911 22912# Sed expression to map a string onto a valid CPP name. 22913as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 22914 22915# Sed expression to map a string onto a valid variable name. 22916as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 22917 22918 22919exec 6>&1 22920 22921# Save the log message, to keep $[0] and so on meaningful, and to 22922# report actual input values of CONFIG_FILES etc. instead of their 22923# values after options handling. 22924ac_log=" 22925This file was extended by $as_me, which was 22926generated by GNU Autoconf 2.60-MirPorts-2. Invocation command line was 22927 22928 CONFIG_FILES = $CONFIG_FILES 22929 CONFIG_HEADERS = $CONFIG_HEADERS 22930 CONFIG_LINKS = $CONFIG_LINKS 22931 CONFIG_COMMANDS = $CONFIG_COMMANDS 22932 $ $0 $@ 22933 22934on `(hostname || uname -n) 2>/dev/null | sed 1q` 22935" 22936 22937_ACEOF 22938 22939cat >>$CONFIG_STATUS <<_ACEOF 22940# Files that config.status was made for. 22941config_files="$ac_config_files" 22942config_headers="$ac_config_headers" 22943config_commands="$ac_config_commands" 22944 22945_ACEOF 22946 22947cat >>$CONFIG_STATUS <<\_ACEOF 22948ac_cs_usage="\ 22949\`$as_me' instantiates files from templates according to the 22950current configuration. 22951 22952Usage: $0 [OPTIONS] [FILE]... 22953 22954 -h, --help print this help, then exit 22955 -V, --version print version number, then exit 22956 -q, --quiet do not print progress messages 22957 -d, --debug don't remove temporary files 22958 --recheck update $as_me by reconfiguring in the same conditions 22959 --file=FILE[:TEMPLATE] 22960 instantiate the configuration file FILE 22961 --header=FILE[:TEMPLATE] 22962 instantiate the configuration header FILE 22963 22964Configuration files: 22965$config_files 22966 22967Configuration headers: 22968$config_headers 22969 22970Configuration commands: 22971$config_commands 22972 22973Report bugs to <bug-autoconf@gnu.org>." 22974 22975_ACEOF 22976cat >>$CONFIG_STATUS <<_ACEOF 22977ac_cs_version="\\ 22978config.status 22979configured by $0, generated by GNU Autoconf 2.60-MirPorts-2, 22980 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 22981 22982Copyright (C) 2006 Free Software Foundation, Inc. 22983This config.status script is free software; the Free Software Foundation 22984gives unlimited permission to copy, distribute and modify it." 22985 22986ac_pwd='$ac_pwd' 22987srcdir='$srcdir' 22988INSTALL='$INSTALL' 22989_ACEOF 22990 22991cat >>$CONFIG_STATUS <<\_ACEOF 22992# If no file are specified by the user, then we need to provide default 22993# value. By we need to know if files were specified by the user. 22994ac_need_defaults=: 22995while test $# != 0 22996do 22997 case $1 in 22998 --*=*) 22999 ac_option=`expr "X$1" : 'X\([^=]*\)='` 23000 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 23001 ac_shift=: 23002 ;; 23003 *) 23004 ac_option=$1 23005 ac_optarg=$2 23006 ac_shift=shift 23007 ;; 23008 esac 23009 23010 case $ac_option in 23011 # Handling of the options. 23012 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 23013 ac_cs_recheck=: ;; 23014 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 23015 echo "$ac_cs_version"; exit ;; 23016 --debug | --debu | --deb | --de | --d | -d ) 23017 debug=: ;; 23018 --file | --fil | --fi | --f ) 23019 $ac_shift 23020 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 23021 ac_need_defaults=false;; 23022 --header | --heade | --head | --hea ) 23023 $ac_shift 23024 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 23025 ac_need_defaults=false;; 23026 --he | --h) 23027 # Conflict between --help and --header 23028 { echo "$as_me: error: ambiguous option: $1 23029Try \`$0 --help' for more information." >&2 23030 { (exit 1); exit 1; }; };; 23031 --help | --hel | -h ) 23032 echo "$ac_cs_usage"; exit ;; 23033 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 23034 | -silent | --silent | --silen | --sile | --sil | --si | --s) 23035 ac_cs_silent=: ;; 23036 23037 # This is an error. 23038 -*) { echo "$as_me: error: unrecognized option: $1 23039Try \`$0 --help' for more information." >&2 23040 { (exit 1); exit 1; }; } ;; 23041 23042 *) ac_config_targets="$ac_config_targets $1" 23043 ac_need_defaults=false ;; 23044 23045 esac 23046 shift 23047done 23048 23049ac_configure_extra_args= 23050 23051if $ac_cs_silent; then 23052 exec 6>/dev/null 23053 ac_configure_extra_args="$ac_configure_extra_args --silent" 23054fi 23055 23056_ACEOF 23057cat >>$CONFIG_STATUS <<_ACEOF 23058if \$ac_cs_recheck; then 23059 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 23060 CONFIG_SHELL=$SHELL 23061 export CONFIG_SHELL 23062 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 23063fi 23064 23065_ACEOF 23066cat >>$CONFIG_STATUS <<\_ACEOF 23067exec 5>>config.log 23068{ 23069 echo 23070 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 23071## Running $as_me. ## 23072_ASBOX 23073 echo "$ac_log" 23074} >&5 23075 23076_ACEOF 23077cat >>$CONFIG_STATUS <<_ACEOF 23078# 23079# INIT-COMMANDS 23080# 23081AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 23082 23083_ACEOF 23084 23085cat >>$CONFIG_STATUS <<\_ACEOF 23086 23087# Handling of arguments. 23088for ac_config_target in $ac_config_targets 23089do 23090 case $ac_config_target in 23091 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 23092 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; 23093 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 23094 23095 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 23096echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 23097 { (exit 1); exit 1; }; };; 23098 esac 23099done 23100 23101 23102# If the user did not use the arguments to specify the items to instantiate, 23103# then the envvar interface is used. Set only those that are not. 23104# We use the long form for the default assignment because of an extremely 23105# bizarre bug on SunOS 4.1.3. 23106if $ac_need_defaults; then 23107 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 23108 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 23109 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 23110fi 23111 23112# Have a temporary directory for convenience. Make it in the build tree 23113# simply because there is no reason against having it here, and in addition, 23114# creating and moving files from /tmp can sometimes cause problems. 23115# Hook for its removal unless debugging. 23116# Note that there is a small window in which the directory will not be cleaned: 23117# after its creation but before its name has been assigned to `$tmp'. 23118$debug || 23119{ 23120 tmp= 23121 trap 'exit_status=$? 23122 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 23123' 0 23124 trap '{ (exit 1); exit 1; }' 1 2 13 15 23125} 23126# Create a (secure) tmp directory for tmp files. 23127 23128{ 23129 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 23130 test -n "$tmp" && test -d "$tmp" 23131} || 23132{ 23133 tmp=./conf$$-$RANDOM 23134 (umask 077 && mkdir "$tmp") 23135} || 23136{ 23137 echo "$me: cannot create a temporary directory in ." >&2 23138 { (exit 1); exit 1; } 23139} 23140 23141# 23142# Set up the sed scripts for CONFIG_FILES section. 23143# 23144 23145# No need to generate the scripts if there are no CONFIG_FILES. 23146# This happens for instance when ./config.status config.h 23147if test -n "$CONFIG_FILES"; then 23148 23149_ACEOF 23150 23151# Create sed commands to just substitute file output variables. 23152 23153# Remaining file output variables are in a fragment that also has non-file 23154# output varibles. 23155 23156 23157 23158ac_delim='%!_!# ' 23159for ac_last_try in false false false false false :; do 23160 cat >conf$$subs.sed <<_ACEOF 23161SHELL!$SHELL$ac_delim 23162PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 23163PACKAGE_NAME!$PACKAGE_NAME$ac_delim 23164PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 23165PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 23166PACKAGE_STRING!$PACKAGE_STRING$ac_delim 23167PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 23168exec_prefix!$exec_prefix$ac_delim 23169prefix!$prefix$ac_delim 23170program_transform_name!$program_transform_name$ac_delim 23171bindir!$bindir$ac_delim 23172sbindir!$sbindir$ac_delim 23173libexecdir!$libexecdir$ac_delim 23174datarootdir!$datarootdir$ac_delim 23175datadir!$datadir$ac_delim 23176sysconfdir!$sysconfdir$ac_delim 23177sharedstatedir!$sharedstatedir$ac_delim 23178localstatedir!$localstatedir$ac_delim 23179includedir!$includedir$ac_delim 23180oldincludedir!$oldincludedir$ac_delim 23181docdir!$docdir$ac_delim 23182infodir!$infodir$ac_delim 23183htmldir!$htmldir$ac_delim 23184dvidir!$dvidir$ac_delim 23185pdfdir!$pdfdir$ac_delim 23186psdir!$psdir$ac_delim 23187libdir!$libdir$ac_delim 23188localedir!$localedir$ac_delim 23189mandir!$mandir$ac_delim 23190DEFS!$DEFS$ac_delim 23191ECHO_C!$ECHO_C$ac_delim 23192ECHO_N!$ECHO_N$ac_delim 23193ECHO_T!$ECHO_T$ac_delim 23194LIBS!$LIBS$ac_delim 23195build_alias!$build_alias$ac_delim 23196host_alias!$host_alias$ac_delim 23197target_alias!$target_alias$ac_delim 23198build!$build$ac_delim 23199build_cpu!$build_cpu$ac_delim 23200build_vendor!$build_vendor$ac_delim 23201build_os!$build_os$ac_delim 23202host!$host$ac_delim 23203host_cpu!$host_cpu$ac_delim 23204host_vendor!$host_vendor$ac_delim 23205host_os!$host_os$ac_delim 23206target!$target$ac_delim 23207target_cpu!$target_cpu$ac_delim 23208target_vendor!$target_vendor$ac_delim 23209target_os!$target_os$ac_delim 23210CC!$CC$ac_delim 23211CFLAGS!$CFLAGS$ac_delim 23212LDFLAGS!$LDFLAGS$ac_delim 23213CPPFLAGS!$CPPFLAGS$ac_delim 23214ac_ct_CC!$ac_ct_CC$ac_delim 23215EXEEXT!$EXEEXT$ac_delim 23216OBJEXT!$OBJEXT$ac_delim 23217INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 23218INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 23219INSTALL_DATA!$INSTALL_DATA$ac_delim 23220CYGPATH_W!$CYGPATH_W$ac_delim 23221PACKAGE!$PACKAGE$ac_delim 23222VERSION!$VERSION$ac_delim 23223ACLOCAL!$ACLOCAL$ac_delim 23224AUTOCONF!$AUTOCONF$ac_delim 23225AUTOMAKE!$AUTOMAKE$ac_delim 23226AUTOHEADER!$AUTOHEADER$ac_delim 23227MAKEINFO!$MAKEINFO$ac_delim 23228install_sh!$install_sh$ac_delim 23229STRIP!$STRIP$ac_delim 23230INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 23231mkdir_p!$mkdir_p$ac_delim 23232AWK!$AWK$ac_delim 23233SET_MAKE!$SET_MAKE$ac_delim 23234am__leading_dot!$am__leading_dot$ac_delim 23235AMTAR!$AMTAR$ac_delim 23236am__tar!$am__tar$ac_delim 23237am__untar!$am__untar$ac_delim 23238DEPDIR!$DEPDIR$ac_delim 23239am__include!$am__include$ac_delim 23240am__quote!$am__quote$ac_delim 23241AMDEP_TRUE!$AMDEP_TRUE$ac_delim 23242AMDEP_FALSE!$AMDEP_FALSE$ac_delim 23243AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 23244CCDEPMODE!$CCDEPMODE$ac_delim 23245am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 23246am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 23247SED!$SED$ac_delim 23248GREP!$GREP$ac_delim 23249EGREP!$EGREP$ac_delim 23250LN_S!$LN_S$ac_delim 23251ECHO!$ECHO$ac_delim 23252AR!$AR$ac_delim 23253RANLIB!$RANLIB$ac_delim 23254CPP!$CPP$ac_delim 23255_ACEOF 23256 23257 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then 23258 break 23259 elif $ac_last_try; then 23260 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 23261echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 23262 { (exit 1); exit 1; }; } 23263 else 23264 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23265 fi 23266done 23267 23268ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 23269if test -n "$ac_eof"; then 23270 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 23271 ac_eof=`expr $ac_eof + 1` 23272fi 23273 23274cat >>$CONFIG_STATUS <<_ACEOF 23275cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 23276/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23277/^[ ]*@TDIRS@[ ]*$/{ 23278r $TDIRS 23279d 23280} 23281_ACEOF 23282sed ' 23283s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 23284s/^/s,@/; s/!/@,|#_!!_#|/ 23285:n 23286t n 23287s/'"$ac_delim"'$/,g/; t 23288s/$/\\/; p 23289N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 23290' >>$CONFIG_STATUS <conf$$subs.sed 23291rm -f conf$$subs.sed 23292cat >>$CONFIG_STATUS <<_ACEOF 23293CEOF$ac_eof 23294_ACEOF 23295 23296 23297ac_delim='%!_!# ' 23298for ac_last_try in false false false false false :; do 23299 cat >conf$$subs.sed <<_ACEOF 23300CXX!$CXX$ac_delim 23301CXXFLAGS!$CXXFLAGS$ac_delim 23302ac_ct_CXX!$ac_ct_CXX$ac_delim 23303CXXDEPMODE!$CXXDEPMODE$ac_delim 23304am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim 23305am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim 23306CXXCPP!$CXXCPP$ac_delim 23307F77!$F77$ac_delim 23308FFLAGS!$FFLAGS$ac_delim 23309ac_ct_F77!$ac_ct_F77$ac_delim 23310LIBTOOL!$LIBTOOL$ac_delim 23311use_sysroot!$use_sysroot$ac_delim 23312TARGET_SYSTEM_ROOT!$TARGET_SYSTEM_ROOT$ac_delim 23313TARGET_SYSTEM_ROOT_DEFINE!$TARGET_SYSTEM_ROOT_DEFINE$ac_delim 23314WARN_CFLAGS!$WARN_CFLAGS$ac_delim 23315NO_WERROR!$NO_WERROR$ac_delim 23316YACC!$YACC$ac_delim 23317YFLAGS!$YFLAGS$ac_delim 23318LEX!$LEX$ac_delim 23319LEXLIB!$LEXLIB$ac_delim 23320LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim 23321MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim 23322MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim 23323MAINT!$MAINT$ac_delim 23324HDEFINES!$HDEFINES$ac_delim 23325HOSTING_CRT0!$HOSTING_CRT0$ac_delim 23326HOSTING_LIBS!$HOSTING_LIBS$ac_delim 23327NATIVE_LIB_DIRS!$NATIVE_LIB_DIRS$ac_delim 23328STRINGIFY!$STRINGIFY$ac_delim 23329EMUL!$EMUL$ac_delim 23330EMULATION_OFILES!$EMULATION_OFILES$ac_delim 23331EMUL_EXTRA_OFILES!$EMUL_EXTRA_OFILES$ac_delim 23332LIB_PATH!$LIB_PATH$ac_delim 23333EMULATION_LIBPATH!$EMULATION_LIBPATH$ac_delim 23334TESTBFDLIB!$TESTBFDLIB$ac_delim 23335LIBOBJS!$LIBOBJS$ac_delim 23336LTLIBOBJS!$LTLIBOBJS$ac_delim 23337_ACEOF 23338 23339 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 37; then 23340 break 23341 elif $ac_last_try; then 23342 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 23343echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 23344 { (exit 1); exit 1; }; } 23345 else 23346 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23347 fi 23348done 23349 23350ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 23351if test -n "$ac_eof"; then 23352 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 23353 ac_eof=`expr $ac_eof + 1` 23354fi 23355 23356cat >>$CONFIG_STATUS <<_ACEOF 23357cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 23358/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 23359_ACEOF 23360sed ' 23361s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 23362s/^/s,@/; s/!/@,|#_!!_#|/ 23363:n 23364t n 23365s/'"$ac_delim"'$/,g/; t 23366s/$/\\/; p 23367N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 23368' >>$CONFIG_STATUS <conf$$subs.sed 23369rm -f conf$$subs.sed 23370cat >>$CONFIG_STATUS <<_ACEOF 23371:end 23372s/|#_!!_#|//g 23373CEOF$ac_eof 23374_ACEOF 23375 23376 23377# VPATH may cause trouble with some makes, so we remove $(srcdir), 23378# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 23379# trailing colons and then remove the whole line if VPATH becomes empty 23380# (actually we leave an empty line to preserve line numbers). 23381if test "x$srcdir" = x.; then 23382 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 23383s/:*\$(srcdir):*/:/ 23384s/:*\${srcdir}:*/:/ 23385s/:*@srcdir@:*/:/ 23386s/^\([^=]*=[ ]*\):*/\1/ 23387s/:*$// 23388s/^[^=]*=[ ]*$// 23389}' 23390fi 23391 23392cat >>$CONFIG_STATUS <<\_ACEOF 23393fi # test -n "$CONFIG_FILES" 23394 23395 23396for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 23397do 23398 case $ac_tag in 23399 :[FHLC]) ac_mode=$ac_tag; continue;; 23400 esac 23401 case $ac_mode$ac_tag in 23402 :[FHL]*:*);; 23403 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 23404echo "$as_me: error: Invalid tag $ac_tag." >&2;} 23405 { (exit 1); exit 1; }; };; 23406 :[FH]-) ac_tag=-:-;; 23407 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 23408 esac 23409 ac_save_IFS=$IFS 23410 IFS=: 23411 set x $ac_tag 23412 IFS=$ac_save_IFS 23413 shift 23414 ac_file=$1 23415 shift 23416 23417 case $ac_mode in 23418 :L) ac_source=$1;; 23419 :[FH]) 23420 ac_file_inputs= 23421 for ac_f 23422 do 23423 case $ac_f in 23424 -) ac_f="$tmp/stdin";; 23425 *) # Look for the file first in the build tree, then in the source tree 23426 # (if the path is not absolute). The absolute path cannot be DOS-style, 23427 # because $ac_f cannot contain `:'. 23428 test -f "$ac_f" || 23429 case $ac_f in 23430 [\\/$]*) false;; 23431 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 23432 esac || 23433 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 23434echo "$as_me: error: cannot find input file: $ac_f" >&2;} 23435 { (exit 1); exit 1; }; };; 23436 esac 23437 ac_file_inputs="$ac_file_inputs $ac_f" 23438 done 23439 23440 # Let's still pretend it is `configure' which instantiates (i.e., don't 23441 # use $as_me), people would be surprised to read: 23442 # /* config.h. Generated by config.status. */ 23443 configure_input="Generated from "`IFS=: 23444 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 23445 if test x"$ac_file" != x-; then 23446 configure_input="$ac_file. $configure_input" 23447 { echo "$as_me:$LINENO: creating $ac_file" >&5 23448echo "$as_me: creating $ac_file" >&6;} 23449 fi 23450 23451 case $ac_tag in 23452 *:-:* | *:-) cat >"$tmp/stdin";; 23453 esac 23454 ;; 23455 esac 23456 23457 ac_dir=`$as_dirname -- "$ac_file" || 23458$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23459 X"$ac_file" : 'X\(//\)[^/]' \| \ 23460 X"$ac_file" : 'X\(//\)$' \| \ 23461 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 23462echo X"$ac_file" | 23463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23464 s//\1/ 23465 q 23466 } 23467 /^X\(\/\/\)[^/].*/{ 23468 s//\1/ 23469 q 23470 } 23471 /^X\(\/\/\)$/{ 23472 s//\1/ 23473 q 23474 } 23475 /^X\(\/\).*/{ 23476 s//\1/ 23477 q 23478 } 23479 s/.*/./; q'` 23480 { as_dir="$ac_dir" 23481 case $as_dir in #( 23482 -*) as_dir=./$as_dir;; 23483 esac 23484 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 23485 as_dirs= 23486 while :; do 23487 case $as_dir in #( 23488 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 23489 *) as_qdir=$as_dir;; 23490 esac 23491 as_dirs="'$as_qdir' $as_dirs" 23492 as_dir=`$as_dirname -- "$as_dir" || 23493$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23494 X"$as_dir" : 'X\(//\)[^/]' \| \ 23495 X"$as_dir" : 'X\(//\)$' \| \ 23496 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 23497echo X"$as_dir" | 23498 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23499 s//\1/ 23500 q 23501 } 23502 /^X\(\/\/\)[^/].*/{ 23503 s//\1/ 23504 q 23505 } 23506 /^X\(\/\/\)$/{ 23507 s//\1/ 23508 q 23509 } 23510 /^X\(\/\).*/{ 23511 s//\1/ 23512 q 23513 } 23514 s/.*/./; q'` 23515 test -d "$as_dir" && break 23516 done 23517 test -z "$as_dirs" || eval "mkdir $as_dirs" 23518 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 23519echo "$as_me: error: cannot create directory $as_dir" >&2;} 23520 { (exit 1); exit 1; }; }; } 23521 ac_builddir=. 23522 23523case "$ac_dir" in 23524.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 23525*) 23526 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 23527 # A ".." for each directory in $ac_dir_suffix. 23528 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 23529 case $ac_top_builddir_sub in 23530 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 23531 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 23532 esac ;; 23533esac 23534ac_abs_top_builddir=$ac_pwd 23535ac_abs_builddir=$ac_pwd$ac_dir_suffix 23536# for backward compatibility: 23537ac_top_builddir=$ac_top_build_prefix 23538 23539case $srcdir in 23540 .) # We are building in place. 23541 ac_srcdir=. 23542 ac_top_srcdir=$ac_top_builddir_sub 23543 ac_abs_top_srcdir=$ac_pwd ;; 23544 [\\/]* | ?:[\\/]* ) # Absolute name. 23545 ac_srcdir=$srcdir$ac_dir_suffix; 23546 ac_top_srcdir=$srcdir 23547 ac_abs_top_srcdir=$srcdir ;; 23548 *) # Relative name. 23549 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 23550 ac_top_srcdir=$ac_top_build_prefix$srcdir 23551 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 23552esac 23553ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 23554 23555 23556 case $ac_mode in 23557 :F) 23558 # 23559 # CONFIG_FILE 23560 # 23561 23562 case $INSTALL in 23563 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 23564 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 23565 esac 23566_ACEOF 23567 23568cat >>$CONFIG_STATUS <<\_ACEOF 23569# If the template does not know about datarootdir, expand it. 23570# FIXME: This hack should be removed a few years after 2.60. 23571ac_datarootdir_hack=; ac_datarootdir_seen= 23572 23573case `sed -n '/datarootdir/ { 23574 p 23575 q 23576} 23577/@datadir@/p 23578/@docdir@/p 23579/@infodir@/p 23580/@localedir@/p 23581/@mandir@/p 23582' $ac_file_inputs` in 23583*datarootdir*) ac_datarootdir_seen=yes;; 23584*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 23585 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 23586echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 23587_ACEOF 23588cat >>$CONFIG_STATUS <<_ACEOF 23589 ac_datarootdir_hack=' 23590 s&@datadir@&$datadir&g 23591 s&@docdir@&$docdir&g 23592 s&@infodir@&$infodir&g 23593 s&@localedir@&$localedir&g 23594 s&@mandir@&$mandir&g 23595 s&\\\${datarootdir}&$datarootdir&g' ;; 23596esac 23597_ACEOF 23598 23599# Neutralize VPATH when `$srcdir' = `.'. 23600# Shell code in configure.ac might set extrasub. 23601# FIXME: do we really want to maintain this feature? 23602cat >>$CONFIG_STATUS <<_ACEOF 23603 sed "$ac_vpsub 23604$extrasub 23605_ACEOF 23606cat >>$CONFIG_STATUS <<\_ACEOF 23607:t 23608/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23609s&@configure_input@&$configure_input&;t t 23610s&@top_builddir@&$ac_top_builddir_sub&;t t 23611s&@srcdir@&$ac_srcdir&;t t 23612s&@abs_srcdir@&$ac_abs_srcdir&;t t 23613s&@top_srcdir@&$ac_top_srcdir&;t t 23614s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 23615s&@builddir@&$ac_builddir&;t t 23616s&@abs_builddir@&$ac_abs_builddir&;t t 23617s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 23618s&@INSTALL@&$ac_INSTALL&;t t 23619$ac_datarootdir_hack 23620" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 23621 23622test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 23623 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 23624 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 23625 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23626which seems to be undefined. Please make sure it is defined." >&5 23627echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23628which seems to be undefined. Please make sure it is defined." >&2;} 23629 23630 rm -f "$tmp/stdin" 23631 case $ac_file in 23632 -) cat "$tmp/out"; rm -f "$tmp/out";; 23633 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 23634 esac 23635 ;; 23636 :H) 23637 # 23638 # CONFIG_HEADER 23639 # 23640_ACEOF 23641 23642# Transform confdefs.h into a sed script `conftest.defines', that 23643# substitutes the proper values into config.h.in to produce config.h. 23644rm -f conftest.defines conftest.tail 23645# First, append a space to every undef/define line, to ease matching. 23646echo 's/$/ /' >conftest.defines 23647# Then, protect against being on the right side of a sed subst, or in 23648# an unquoted here document, in config.status. If some macros were 23649# called several times there might be several #defines for the same 23650# symbol, which is useless. But do not sort them, since the last 23651# AC_DEFINE must be honored. 23652ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 23653# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 23654# NAME is the cpp macro being defined, VALUE is the value it is being given. 23655# PARAMS is the parameter list in the macro definition--in most cases, it's 23656# just an empty string. 23657ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 23658ac_dB='\\)[ (].*,\\1define\\2' 23659ac_dC=' ' 23660ac_dD=' ,' 23661 23662uniq confdefs.h | 23663 sed -n ' 23664 t rset 23665 :rset 23666 s/^[ ]*#[ ]*define[ ][ ]*// 23667 t ok 23668 d 23669 :ok 23670 s/[\\&,]/\\&/g 23671 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 23672 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 23673 ' >>conftest.defines 23674 23675# Remove the space that was appended to ease matching. 23676# Then replace #undef with comments. This is necessary, for 23677# example, in the case of _POSIX_SOURCE, which is predefined and required 23678# on some systems where configure will not decide to define it. 23679# (The regexp can be short, since the line contains either #define or #undef.) 23680echo 's/ $// 23681s,^[ #]*u.*,/* & */,' >>conftest.defines 23682 23683# Break up conftest.defines: 23684ac_max_sed_lines=50 23685 23686# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 23687# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 23688# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 23689# et cetera. 23690ac_in='$ac_file_inputs' 23691ac_out='"$tmp/out1"' 23692ac_nxt='"$tmp/out2"' 23693 23694while : 23695do 23696 # Write a here document: 23697 cat >>$CONFIG_STATUS <<_ACEOF 23698 # First, check the format of the line: 23699 cat >"\$tmp/defines.sed" <<\\CEOF 23700/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 23701/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 23702b 23703:def 23704_ACEOF 23705 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 23706 echo 'CEOF 23707 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 23708 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 23709 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 23710 grep . conftest.tail >/dev/null || break 23711 rm -f conftest.defines 23712 mv conftest.tail conftest.defines 23713done 23714rm -f conftest.defines conftest.tail 23715 23716echo "ac_result=$ac_in" >>$CONFIG_STATUS 23717cat >>$CONFIG_STATUS <<\_ACEOF 23718 if test x"$ac_file" != x-; then 23719 echo "/* $configure_input */" >"$tmp/config.h" 23720 cat "$ac_result" >>"$tmp/config.h" 23721 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 23722 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 23723echo "$as_me: $ac_file is unchanged" >&6;} 23724 else 23725 rm -f $ac_file 23726 mv "$tmp/config.h" $ac_file 23727 fi 23728 else 23729 echo "/* $configure_input */" 23730 cat "$ac_result" 23731 fi 23732 rm -f "$tmp/out12" 23733# Compute $ac_file's index in $config_headers. 23734_am_stamp_count=1 23735for _am_header in $config_headers :; do 23736 case $_am_header in 23737 $ac_file | $ac_file:* ) 23738 break ;; 23739 * ) 23740 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 23741 esac 23742done 23743echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || 23744$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23745 X$ac_file : 'X\(//\)[^/]' \| \ 23746 X$ac_file : 'X\(//\)$' \| \ 23747 X$ac_file : 'X\(/\)' \| . 2>/dev/null || 23748echo X$ac_file | 23749 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23750 s//\1/ 23751 q 23752 } 23753 /^X\(\/\/\)[^/].*/{ 23754 s//\1/ 23755 q 23756 } 23757 /^X\(\/\/\)$/{ 23758 s//\1/ 23759 q 23760 } 23761 /^X\(\/\).*/{ 23762 s//\1/ 23763 q 23764 } 23765 s/.*/./; q'`/stamp-h$_am_stamp_count 23766 ;; 23767 23768 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 23769echo "$as_me: executing $ac_file commands" >&6;} 23770 ;; 23771 esac 23772 23773 23774 case $ac_file$ac_mode in 23775 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 23776 # Strip MF so we end up with the name of the file. 23777 mf=`echo "$mf" | sed -e 's/:.*$//'` 23778 # Check whether this is an Automake generated Makefile or not. 23779 # We used to match only the files named `Makefile.in', but 23780 # some people rename them; so instead we look at the file content. 23781 # Grep'ing the first line is not enough: some people post-process 23782 # each Makefile.in and add a new line on top of each file to say so. 23783 # So let's grep whole file. 23784 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 23785 dirpart=`$as_dirname -- "$mf" || 23786$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23787 X"$mf" : 'X\(//\)[^/]' \| \ 23788 X"$mf" : 'X\(//\)$' \| \ 23789 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 23790echo X"$mf" | 23791 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23792 s//\1/ 23793 q 23794 } 23795 /^X\(\/\/\)[^/].*/{ 23796 s//\1/ 23797 q 23798 } 23799 /^X\(\/\/\)$/{ 23800 s//\1/ 23801 q 23802 } 23803 /^X\(\/\).*/{ 23804 s//\1/ 23805 q 23806 } 23807 s/.*/./; q'` 23808 else 23809 continue 23810 fi 23811 # Extract the definition of DEPDIR, am__include, and am__quote 23812 # from the Makefile without running `make'. 23813 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 23814 test -z "$DEPDIR" && continue 23815 am__include=`sed -n 's/^am__include = //p' < "$mf"` 23816 test -z "am__include" && continue 23817 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 23818 # When using ansi2knr, U may be empty or an underscore; expand it 23819 U=`sed -n 's/^U = //p' < "$mf"` 23820 # Find all dependency output files, they are included files with 23821 # $(DEPDIR) in their names. We invoke sed twice because it is the 23822 # simplest approach to changing $(DEPDIR) to its actual value in the 23823 # expansion. 23824 for file in `sed -n " 23825 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 23826 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 23827 # Make sure the directory exists. 23828 test -f "$dirpart/$file" && continue 23829 fdir=`$as_dirname -- "$file" || 23830$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23831 X"$file" : 'X\(//\)[^/]' \| \ 23832 X"$file" : 'X\(//\)$' \| \ 23833 X"$file" : 'X\(/\)' \| . 2>/dev/null || 23834echo X"$file" | 23835 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23836 s//\1/ 23837 q 23838 } 23839 /^X\(\/\/\)[^/].*/{ 23840 s//\1/ 23841 q 23842 } 23843 /^X\(\/\/\)$/{ 23844 s//\1/ 23845 q 23846 } 23847 /^X\(\/\).*/{ 23848 s//\1/ 23849 q 23850 } 23851 s/.*/./; q'` 23852 { as_dir=$dirpart/$fdir 23853 case $as_dir in #( 23854 -*) as_dir=./$as_dir;; 23855 esac 23856 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 23857 as_dirs= 23858 while :; do 23859 case $as_dir in #( 23860 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 23861 *) as_qdir=$as_dir;; 23862 esac 23863 as_dirs="'$as_qdir' $as_dirs" 23864 as_dir=`$as_dirname -- "$as_dir" || 23865$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23866 X"$as_dir" : 'X\(//\)[^/]' \| \ 23867 X"$as_dir" : 'X\(//\)$' \| \ 23868 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 23869echo X"$as_dir" | 23870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23871 s//\1/ 23872 q 23873 } 23874 /^X\(\/\/\)[^/].*/{ 23875 s//\1/ 23876 q 23877 } 23878 /^X\(\/\/\)$/{ 23879 s//\1/ 23880 q 23881 } 23882 /^X\(\/\).*/{ 23883 s//\1/ 23884 q 23885 } 23886 s/.*/./; q'` 23887 test -d "$as_dir" && break 23888 done 23889 test -z "$as_dirs" || eval "mkdir $as_dirs" 23890 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 23891echo "$as_me: error: cannot create directory $as_dir" >&2;} 23892 { (exit 1); exit 1; }; }; } 23893 # echo "creating $dirpart/$file" 23894 echo '# dummy' > "$dirpart/$file" 23895 done 23896done 23897 ;; 23898 23899 esac 23900done # for ac_tag 23901 23902 23903{ (exit 0); exit 0; } 23904_ACEOF 23905chmod +x $CONFIG_STATUS 23906ac_clean_files=$ac_clean_files_save 23907 23908 23909# configure is writing to config.log, and then calls config.status. 23910# config.status does its own redirection, appending to config.log. 23911# Unfortunately, on DOS this fails, as config.log is still kept open 23912# by configure, so config.status won't be able to write to it; its 23913# output is simply discarded. So we exec the FD to /dev/null, 23914# effectively closing config.log, so it can be properly (re)opened and 23915# appended to by config.status. When coming back to configure, we 23916# need to make the FD available again. 23917if test "$no_create" != yes; then 23918 ac_cs_success=: 23919 ac_config_status_args= 23920 test "$silent" = yes && 23921 ac_config_status_args="$ac_config_status_args --quiet" 23922 exec 5>/dev/null 23923 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23924 exec 5>>config.log 23925 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23926 # would make configure fail if this is the last instruction. 23927 $ac_cs_success || { (exit 1); exit 1; } 23928fi 23929 23930