1@%:@! /bin/sh 2@%:@ Guess values for system-dependent variables and create Makefiles. 3@%:@ Generated by GNU Autoconf 2.61 for ta-lib 0.4.0. 4@%:@ 5@%:@ Report bugs to <http://sourceforge.net/tracker/?group_id=8903&atid=108903>. 6@%:@ 7@%:@ (c) TicTacTec 2005, 2006 8@%:@ 9@%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 10@%:@ 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 11@%:@ This configure script is free software; the Free Software Foundation 12@%:@ gives unlimited permission to copy, distribute and modify it. 13## --------------------- ## 14## M4sh Initialization. ## 15## --------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 20 emulate sh 21 NULLCMD=: 22 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in 28 *posix*) set -o posix ;; 29esac 30 31fi 32 33 34 35 36# PATH needs CR 37# Avoid depending upon Character Ranges. 38as_cr_letters='abcdefghijklmnopqrstuvwxyz' 39as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 40as_cr_Letters=$as_cr_letters$as_cr_LETTERS 41as_cr_digits='0123456789' 42as_cr_alnum=$as_cr_Letters$as_cr_digits 43 44# The user is always right. 45if test "${PATH_SEPARATOR+set}" != set; then 46 echo "#! /bin/sh" >conf$$.sh 47 echo "exit 0" >>conf$$.sh 48 chmod +x conf$$.sh 49 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 50 PATH_SEPARATOR=';' 51 else 52 PATH_SEPARATOR=: 53 fi 54 rm -f conf$$.sh 55fi 56 57# Support unset when possible. 58if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 59 as_unset=unset 60else 61 as_unset=false 62fi 63 64 65# IFS 66# We need space, tab and new line, in precisely that order. Quoting is 67# there to prevent editors from complaining about space-tab. 68# (If _AS_PATH_WALK were called with IFS unset, it would disable word 69# splitting by setting IFS to empty value.) 70as_nl=' 71' 72IFS=" "" $as_nl" 73 74# Find who we are. Look in the path if we contain no directory separator. 75case $0 in 76 *[\\/]* ) as_myself=$0 ;; 77 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 78for as_dir in $PATH 79do 80 IFS=$as_save_IFS 81 test -z "$as_dir" && as_dir=. 82 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 83done 84IFS=$as_save_IFS 85 86 ;; 87esac 88# We did not find ourselves, most probably we were run as `sh COMMAND' 89# in which case we are not to be found in the path. 90if test "x$as_myself" = x; then 91 as_myself=$0 92fi 93if test ! -f "$as_myself"; then 94 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 95 { (exit 1); exit 1; } 96fi 97 98# Work around bugs in pre-3.0 UWIN ksh. 99for as_var in ENV MAIL MAILPATH 100do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 101done 102PS1='$ ' 103PS2='> ' 104PS4='+ ' 105 106# NLS nuisances. 107for as_var in \ 108 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 109 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 110 LC_TELEPHONE LC_TIME 111do 112 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 113 eval $as_var=C; export $as_var 114 else 115 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 116 fi 117done 118 119# Required to use basename. 120if expr a : '\(a\)' >/dev/null 2>&1 && 121 test "X`expr 00001 : '.*\(...\)'`" = X001; then 122 as_expr=expr 123else 124 as_expr=false 125fi 126 127if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 128 as_basename=basename 129else 130 as_basename=false 131fi 132 133 134# Name of the executable. 135as_me=`$as_basename -- "$0" || 136$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 137 X"$0" : 'X\(//\)$' \| \ 138 X"$0" : 'X\(/\)' \| . 2>/dev/null || 139echo X/"$0" | 140 sed '/^.*\/\([^/][^/]*\)\/*$/{ 141 s//\1/ 142 q 143 } 144 /^X\/\(\/\/\)$/{ 145 s//\1/ 146 q 147 } 148 /^X\/\(\/\).*/{ 149 s//\1/ 150 q 151 } 152 s/.*/./; q'` 153 154# CDPATH. 155$as_unset CDPATH 156 157 158if test "x$CONFIG_SHELL" = x; then 159 if (eval ":") 2>/dev/null; then 160 as_have_required=yes 161else 162 as_have_required=no 163fi 164 165 if test $as_have_required = yes && (eval ": 166(as_func_return () { 167 (exit \$1) 168} 169as_func_success () { 170 as_func_return 0 171} 172as_func_failure () { 173 as_func_return 1 174} 175as_func_ret_success () { 176 return 0 177} 178as_func_ret_failure () { 179 return 1 180} 181 182exitcode=0 183if as_func_success; then 184 : 185else 186 exitcode=1 187 echo as_func_success failed. 188fi 189 190if as_func_failure; then 191 exitcode=1 192 echo as_func_failure succeeded. 193fi 194 195if as_func_ret_success; then 196 : 197else 198 exitcode=1 199 echo as_func_ret_success failed. 200fi 201 202if as_func_ret_failure; then 203 exitcode=1 204 echo as_func_ret_failure succeeded. 205fi 206 207if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 208 : 209else 210 exitcode=1 211 echo positional parameters were not saved. 212fi 213 214test \$exitcode = 0) || { (exit 1); exit 1; } 215 216( 217 as_lineno_1=\$LINENO 218 as_lineno_2=\$LINENO 219 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 220 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 221") 2> /dev/null; then 222 : 223else 224 as_candidate_shells= 225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 226for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 227do 228 IFS=$as_save_IFS 229 test -z "$as_dir" && as_dir=. 230 case $as_dir in 231 /*) 232 for as_base in sh bash ksh sh5; do 233 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 234 done;; 235 esac 236done 237IFS=$as_save_IFS 238 239 240 for as_shell in $as_candidate_shells $SHELL; do 241 # Try only shells that exist, to save several forks. 242 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 243 { ("$as_shell") 2> /dev/null <<\_ASEOF 244if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 245 emulate sh 246 NULLCMD=: 247 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 248 # is contrary to our usage. Disable this feature. 249 alias -g '${1+"$@"}'='"$@"' 250 setopt NO_GLOB_SUBST 251else 252 case `(set -o) 2>/dev/null` in 253 *posix*) set -o posix ;; 254esac 255 256fi 257 258 259: 260_ASEOF 261}; then 262 CONFIG_SHELL=$as_shell 263 as_have_required=yes 264 if { "$as_shell" 2> /dev/null <<\_ASEOF 265if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 266 emulate sh 267 NULLCMD=: 268 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 269 # is contrary to our usage. Disable this feature. 270 alias -g '${1+"$@"}'='"$@"' 271 setopt NO_GLOB_SUBST 272else 273 case `(set -o) 2>/dev/null` in 274 *posix*) set -o posix ;; 275esac 276 277fi 278 279 280: 281(as_func_return () { 282 (exit $1) 283} 284as_func_success () { 285 as_func_return 0 286} 287as_func_failure () { 288 as_func_return 1 289} 290as_func_ret_success () { 291 return 0 292} 293as_func_ret_failure () { 294 return 1 295} 296 297exitcode=0 298if as_func_success; then 299 : 300else 301 exitcode=1 302 echo as_func_success failed. 303fi 304 305if as_func_failure; then 306 exitcode=1 307 echo as_func_failure succeeded. 308fi 309 310if as_func_ret_success; then 311 : 312else 313 exitcode=1 314 echo as_func_ret_success failed. 315fi 316 317if as_func_ret_failure; then 318 exitcode=1 319 echo as_func_ret_failure succeeded. 320fi 321 322if ( set x; as_func_ret_success y && test x = "$1" ); then 323 : 324else 325 exitcode=1 326 echo positional parameters were not saved. 327fi 328 329test $exitcode = 0) || { (exit 1); exit 1; } 330 331( 332 as_lineno_1=$LINENO 333 as_lineno_2=$LINENO 334 test "x$as_lineno_1" != "x$as_lineno_2" && 335 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 336 337_ASEOF 338}; then 339 break 340fi 341 342fi 343 344 done 345 346 if test "x$CONFIG_SHELL" != x; then 347 for as_var in BASH_ENV ENV 348 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 349 done 350 export CONFIG_SHELL 351 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 352fi 353 354 355 if test $as_have_required = no; then 356 echo This script requires a shell more modern than all the 357 echo shells that I found on your system. Please install a 358 echo modern shell, or manually run the script under such a 359 echo shell if you do have one. 360 { (exit 1); exit 1; } 361fi 362 363 364fi 365 366fi 367 368 369 370(eval "as_func_return () { 371 (exit \$1) 372} 373as_func_success () { 374 as_func_return 0 375} 376as_func_failure () { 377 as_func_return 1 378} 379as_func_ret_success () { 380 return 0 381} 382as_func_ret_failure () { 383 return 1 384} 385 386exitcode=0 387if as_func_success; then 388 : 389else 390 exitcode=1 391 echo as_func_success failed. 392fi 393 394if as_func_failure; then 395 exitcode=1 396 echo as_func_failure succeeded. 397fi 398 399if as_func_ret_success; then 400 : 401else 402 exitcode=1 403 echo as_func_ret_success failed. 404fi 405 406if as_func_ret_failure; then 407 exitcode=1 408 echo as_func_ret_failure succeeded. 409fi 410 411if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 412 : 413else 414 exitcode=1 415 echo positional parameters were not saved. 416fi 417 418test \$exitcode = 0") || { 419 echo No shell found that supports shell functions. 420 echo Please tell autoconf@gnu.org about your system, 421 echo including any error possibly output before this 422 echo message 423} 424 425 426 427 as_lineno_1=$LINENO 428 as_lineno_2=$LINENO 429 test "x$as_lineno_1" != "x$as_lineno_2" && 430 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 431 432 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 433 # uniformly replaced by the line number. The first 'sed' inserts a 434 # line-number line after each line using $LINENO; the second 'sed' 435 # does the real work. The second script uses 'N' to pair each 436 # line-number line with the line containing $LINENO, and appends 437 # trailing '-' during substitution so that $LINENO is not a special 438 # case at line end. 439 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 440 # scripts with optimization help from Paolo Bonzini. Blame Lee 441 # E. McMahon (1931-1989) for sed's syntax. :-) 442 sed -n ' 443 p 444 /[$]LINENO/= 445 ' <$as_myself | 446 sed ' 447 s/[$]LINENO.*/&-/ 448 t lineno 449 b 450 :lineno 451 N 452 :loop 453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 454 t loop 455 s/-\n.*// 456 ' >$as_me.lineno && 457 chmod +x "$as_me.lineno" || 458 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 459 { (exit 1); exit 1; }; } 460 461 # Don't try to exec as it changes $[0], causing all sort of problems 462 # (the dirname of $[0] is not the place where we might find the 463 # original and so on. Autoconf is especially sensitive to this). 464 . "./$as_me.lineno" 465 # Exit status is that of the last command. 466 exit 467} 468 469 470if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 471 as_dirname=dirname 472else 473 as_dirname=false 474fi 475 476ECHO_C= ECHO_N= ECHO_T= 477case `echo -n x` in 478-n*) 479 case `echo 'x\c'` in 480 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 481 *) ECHO_C='\c';; 482 esac;; 483*) 484 ECHO_N='-n';; 485esac 486 487if expr a : '\(a\)' >/dev/null 2>&1 && 488 test "X`expr 00001 : '.*\(...\)'`" = X001; then 489 as_expr=expr 490else 491 as_expr=false 492fi 493 494rm -f conf$$ conf$$.exe conf$$.file 495if test -d conf$$.dir; then 496 rm -f conf$$.dir/conf$$.file 497else 498 rm -f conf$$.dir 499 mkdir conf$$.dir 500fi 501echo >conf$$.file 502if ln -s conf$$.file conf$$ 2>/dev/null; then 503 as_ln_s='ln -s' 504 # ... but there are two gotchas: 505 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 506 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 507 # In both cases, we have to default to `cp -p'. 508 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 509 as_ln_s='cp -p' 510elif ln conf$$.file conf$$ 2>/dev/null; then 511 as_ln_s=ln 512else 513 as_ln_s='cp -p' 514fi 515rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 516rmdir conf$$.dir 2>/dev/null 517 518if mkdir -p . 2>/dev/null; then 519 as_mkdir_p=: 520else 521 test -d ./-p && rmdir ./-p 522 as_mkdir_p=false 523fi 524 525if test -x / >/dev/null 2>&1; then 526 as_test_x='test -x' 527else 528 if ls -dL / >/dev/null 2>&1; then 529 as_ls_L_option=L 530 else 531 as_ls_L_option= 532 fi 533 as_test_x=' 534 eval sh -c '\'' 535 if test -d "$1"; then 536 test -d "$1/."; 537 else 538 case $1 in 539 -*)set "./$1";; 540 esac; 541 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 542 ???[sx]*):;;*)false;;esac;fi 543 '\'' sh 544 ' 545fi 546as_executable_p=$as_test_x 547 548# Sed expression to map a string onto a valid CPP name. 549as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 550 551# Sed expression to map a string onto a valid variable name. 552as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 553 554 555 556 557# Check that we are running under the correct shell. 558SHELL=${CONFIG_SHELL-/bin/sh} 559 560case X$ECHO in 561X*--fallback-echo) 562 # Remove one level of quotation (which was required for Make). 563 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 564 ;; 565esac 566 567echo=${ECHO-echo} 568if test "X$1" = X--no-reexec; then 569 # Discard the --no-reexec flag, and continue. 570 shift 571elif test "X$1" = X--fallback-echo; then 572 # Avoid inline document here, it may be left over 573 : 574elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 575 # Yippee, $echo works! 576 : 577else 578 # Restart under the correct shell. 579 exec $SHELL "$0" --no-reexec ${1+"$@"} 580fi 581 582if test "X$1" = X--fallback-echo; then 583 # used as fallback echo 584 shift 585 cat <<EOF 586$* 587EOF 588 exit 0 589fi 590 591# The HP-UX ksh and POSIX shell print the target directory to stdout 592# if CDPATH is set. 593(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 594 595if test -z "$ECHO"; then 596if test "X${echo_test_string+set}" != Xset; then 597# find a string as large as possible, as long as the shell can cope with it 598 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 599 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 600 if (echo_test_string=`eval $cmd`) 2>/dev/null && 601 echo_test_string=`eval $cmd` && 602 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 603 then 604 break 605 fi 606 done 607fi 608 609if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 610 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 611 test "X$echo_testing_string" = "X$echo_test_string"; then 612 : 613else 614 # The Solaris, AIX, and Digital Unix default echo programs unquote 615 # backslashes. This makes it impossible to quote backslashes using 616 # echo "$something" | sed 's/\\/\\\\/g' 617 # 618 # So, first we look for a working echo in the user's PATH. 619 620 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 621 for dir in $PATH /usr/ucb; do 622 IFS="$lt_save_ifs" 623 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 624 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 625 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 626 test "X$echo_testing_string" = "X$echo_test_string"; then 627 echo="$dir/echo" 628 break 629 fi 630 done 631 IFS="$lt_save_ifs" 632 633 if test "X$echo" = Xecho; then 634 # We didn't find a better echo, so look for alternatives. 635 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 636 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 637 test "X$echo_testing_string" = "X$echo_test_string"; then 638 # This shell has a builtin print -r that does the trick. 639 echo='print -r' 640 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 641 test "X$CONFIG_SHELL" != X/bin/ksh; then 642 # If we have ksh, try running configure again with it. 643 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 644 export ORIGINAL_CONFIG_SHELL 645 CONFIG_SHELL=/bin/ksh 646 export CONFIG_SHELL 647 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 648 else 649 # Try using printf. 650 echo='printf %s\n' 651 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 652 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 653 test "X$echo_testing_string" = "X$echo_test_string"; then 654 # Cool, printf works 655 : 656 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 657 test "X$echo_testing_string" = 'X\t' && 658 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 659 test "X$echo_testing_string" = "X$echo_test_string"; then 660 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 661 export CONFIG_SHELL 662 SHELL="$CONFIG_SHELL" 663 export SHELL 664 echo="$CONFIG_SHELL $0 --fallback-echo" 665 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 666 test "X$echo_testing_string" = 'X\t' && 667 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 668 test "X$echo_testing_string" = "X$echo_test_string"; then 669 echo="$CONFIG_SHELL $0 --fallback-echo" 670 else 671 # maybe with a smaller string... 672 prev=: 673 674 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 675 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 676 then 677 break 678 fi 679 prev="$cmd" 680 done 681 682 if test "$prev" != 'sed 50q "$0"'; then 683 echo_test_string=`eval $prev` 684 export echo_test_string 685 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 686 else 687 # Oops. We lost completely, so just stick with echo. 688 echo=echo 689 fi 690 fi 691 fi 692 fi 693fi 694fi 695 696# Copy echo and quote the copy suitably for passing to libtool from 697# the Makefile, instead of quoting the original, which is used later. 698ECHO=$echo 699if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 700 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 701fi 702 703 704 705 706tagnames=${tagnames+${tagnames},}CXX 707 708tagnames=${tagnames+${tagnames},}F77 709 710exec 7<&0 </dev/null 6>&1 711 712# Name of the host. 713# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 714# so uname gets run too. 715ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 716 717# 718# Initializations. 719# 720ac_default_prefix=/usr/local 721ac_clean_files= 722ac_config_libobj_dir=. 723LIB@&t@OBJS= 724cross_compiling=no 725subdirs= 726MFLAGS= 727MAKEFLAGS= 728SHELL=${CONFIG_SHELL-/bin/sh} 729 730# Identity of this package. 731PACKAGE_NAME='ta-lib' 732PACKAGE_TARNAME='ta-lib' 733PACKAGE_VERSION='0.4.0' 734PACKAGE_STRING='ta-lib 0.4.0' 735PACKAGE_BUGREPORT='http://sourceforge.net/tracker/?group_id=8903&atid=108903' 736 737ac_unique_file="src/ta_func/ta_AD.c" 738# Factoring default headers for most tests. 739ac_includes_default="\ 740#include <stdio.h> 741#ifdef HAVE_SYS_TYPES_H 742# include <sys/types.h> 743#endif 744#ifdef HAVE_SYS_STAT_H 745# include <sys/stat.h> 746#endif 747#ifdef STDC_HEADERS 748# include <stdlib.h> 749# include <stddef.h> 750#else 751# ifdef HAVE_STDLIB_H 752# include <stdlib.h> 753# endif 754#endif 755#ifdef HAVE_STRING_H 756# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 757# include <memory.h> 758# endif 759# include <string.h> 760#endif 761#ifdef HAVE_STRINGS_H 762# include <strings.h> 763#endif 764#ifdef HAVE_INTTYPES_H 765# include <inttypes.h> 766#endif 767#ifdef HAVE_STDINT_H 768# include <stdint.h> 769#endif 770#ifdef HAVE_UNISTD_H 771# include <unistd.h> 772#endif" 773 774ac_subst_vars='SHELL 775PATH_SEPARATOR 776PACKAGE_NAME 777PACKAGE_TARNAME 778PACKAGE_VERSION 779PACKAGE_STRING 780PACKAGE_BUGREPORT 781exec_prefix 782prefix 783program_transform_name 784bindir 785sbindir 786libexecdir 787datarootdir 788datadir 789sysconfdir 790sharedstatedir 791localstatedir 792includedir 793oldincludedir 794docdir 795infodir 796htmldir 797dvidir 798pdfdir 799psdir 800libdir 801localedir 802mandir 803DEFS 804ECHO_C 805ECHO_N 806ECHO_T 807LIBS 808build_alias 809host_alias 810target_alias 811INSTALL_PROGRAM 812INSTALL_SCRIPT 813INSTALL_DATA 814am__isrc 815CYGPATH_W 816PACKAGE 817VERSION 818ACLOCAL 819AUTOCONF 820AUTOMAKE 821AUTOHEADER 822MAKEINFO 823install_sh 824STRIP 825INSTALL_STRIP_PROGRAM 826mkdir_p 827AWK 828SET_MAKE 829am__leading_dot 830AMTAR 831am__tar 832am__untar 833CC 834CFLAGS 835LDFLAGS 836CPPFLAGS 837ac_ct_CC 838EXEEXT 839OBJEXT 840DEPDIR 841am__include 842am__quote 843AMDEP_TRUE 844AMDEP_FALSE 845AMDEPBACKSLASH 846CCDEPMODE 847am__fastdepCC_TRUE 848am__fastdepCC_FALSE 849build 850build_cpu 851build_vendor 852build_os 853host 854host_cpu 855host_vendor 856host_os 857GREP 858EGREP 859LN_S 860ECHO 861AR 862RANLIB 863CPP 864CXX 865CXXFLAGS 866ac_ct_CXX 867CXXDEPMODE 868am__fastdepCXX_TRUE 869am__fastdepCXX_FALSE 870CXXCPP 871F77 872FFLAGS 873ac_ct_F77 874LIBTOOL 875POW_LIB 876LIB@&t@OBJS 877TALIB_LIBRARY_VERSION 878LTLIBOBJS' 879ac_subst_files='' 880 ac_precious_vars='build_alias 881host_alias 882target_alias 883CC 884CFLAGS 885LDFLAGS 886LIBS 887CPPFLAGS 888CPP 889CXX 890CXXFLAGS 891CCC 892CXXCPP 893F77 894FFLAGS' 895 896 897# Initialize some variables set by options. 898ac_init_help= 899ac_init_version=false 900# The variables have the same names as the options, with 901# dashes changed to underlines. 902cache_file=/dev/null 903exec_prefix=NONE 904no_create= 905no_recursion= 906prefix=NONE 907program_prefix=NONE 908program_suffix=NONE 909program_transform_name=s,x,x, 910silent= 911site= 912srcdir= 913verbose= 914x_includes=NONE 915x_libraries=NONE 916 917# Installation directory options. 918# These are left unexpanded so users can "make install exec_prefix=/foo" 919# and all the variables that are supposed to be based on exec_prefix 920# by default will actually change. 921# Use braces instead of parens because sh, perl, etc. also accept them. 922# (The list follows the same order as the GNU Coding Standards.) 923bindir='${exec_prefix}/bin' 924sbindir='${exec_prefix}/sbin' 925libexecdir='${exec_prefix}/libexec' 926datarootdir='${prefix}/share' 927datadir='${datarootdir}' 928sysconfdir='${prefix}/etc' 929sharedstatedir='${prefix}/com' 930localstatedir='${prefix}/var' 931includedir='${prefix}/include' 932oldincludedir='/usr/include' 933docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 934infodir='${datarootdir}/info' 935htmldir='${docdir}' 936dvidir='${docdir}' 937pdfdir='${docdir}' 938psdir='${docdir}' 939libdir='${exec_prefix}/lib' 940localedir='${datarootdir}/locale' 941mandir='${datarootdir}/man' 942 943ac_prev= 944ac_dashdash= 945for ac_option 946do 947 # If the previous option needs an argument, assign it. 948 if test -n "$ac_prev"; then 949 eval $ac_prev=\$ac_option 950 ac_prev= 951 continue 952 fi 953 954 case $ac_option in 955 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 956 *) ac_optarg=yes ;; 957 esac 958 959 # Accept the important Cygnus configure options, so we can diagnose typos. 960 961 case $ac_dashdash$ac_option in 962 --) 963 ac_dashdash=yes ;; 964 965 -bindir | --bindir | --bindi | --bind | --bin | --bi) 966 ac_prev=bindir ;; 967 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 968 bindir=$ac_optarg ;; 969 970 -build | --build | --buil | --bui | --bu) 971 ac_prev=build_alias ;; 972 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 973 build_alias=$ac_optarg ;; 974 975 -cache-file | --cache-file | --cache-fil | --cache-fi \ 976 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 977 ac_prev=cache_file ;; 978 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 979 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 980 cache_file=$ac_optarg ;; 981 982 --config-cache | -C) 983 cache_file=config.cache ;; 984 985 -datadir | --datadir | --datadi | --datad) 986 ac_prev=datadir ;; 987 -datadir=* | --datadir=* | --datadi=* | --datad=*) 988 datadir=$ac_optarg ;; 989 990 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 991 | --dataroo | --dataro | --datar) 992 ac_prev=datarootdir ;; 993 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 994 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 995 datarootdir=$ac_optarg ;; 996 997 -disable-* | --disable-*) 998 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 999 # Reject names that are not valid shell variable names. 1000 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1001 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1002 { (exit 1); exit 1; }; } 1003 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1004 eval enable_$ac_feature=no ;; 1005 1006 -docdir | --docdir | --docdi | --doc | --do) 1007 ac_prev=docdir ;; 1008 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1009 docdir=$ac_optarg ;; 1010 1011 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1012 ac_prev=dvidir ;; 1013 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1014 dvidir=$ac_optarg ;; 1015 1016 -enable-* | --enable-*) 1017 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1018 # Reject names that are not valid shell variable names. 1019 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1020 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1021 { (exit 1); exit 1; }; } 1022 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1023 eval enable_$ac_feature=\$ac_optarg ;; 1024 1025 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1026 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1027 | --exec | --exe | --ex) 1028 ac_prev=exec_prefix ;; 1029 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1030 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1031 | --exec=* | --exe=* | --ex=*) 1032 exec_prefix=$ac_optarg ;; 1033 1034 -gas | --gas | --ga | --g) 1035 # Obsolete; use --with-gas. 1036 with_gas=yes ;; 1037 1038 -help | --help | --hel | --he | -h) 1039 ac_init_help=long ;; 1040 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1041 ac_init_help=recursive ;; 1042 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1043 ac_init_help=short ;; 1044 1045 -host | --host | --hos | --ho) 1046 ac_prev=host_alias ;; 1047 -host=* | --host=* | --hos=* | --ho=*) 1048 host_alias=$ac_optarg ;; 1049 1050 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1051 ac_prev=htmldir ;; 1052 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1053 | --ht=*) 1054 htmldir=$ac_optarg ;; 1055 1056 -includedir | --includedir | --includedi | --included | --include \ 1057 | --includ | --inclu | --incl | --inc) 1058 ac_prev=includedir ;; 1059 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1060 | --includ=* | --inclu=* | --incl=* | --inc=*) 1061 includedir=$ac_optarg ;; 1062 1063 -infodir | --infodir | --infodi | --infod | --info | --inf) 1064 ac_prev=infodir ;; 1065 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1066 infodir=$ac_optarg ;; 1067 1068 -libdir | --libdir | --libdi | --libd) 1069 ac_prev=libdir ;; 1070 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1071 libdir=$ac_optarg ;; 1072 1073 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1074 | --libexe | --libex | --libe) 1075 ac_prev=libexecdir ;; 1076 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1077 | --libexe=* | --libex=* | --libe=*) 1078 libexecdir=$ac_optarg ;; 1079 1080 -localedir | --localedir | --localedi | --localed | --locale) 1081 ac_prev=localedir ;; 1082 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1083 localedir=$ac_optarg ;; 1084 1085 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1086 | --localstate | --localstat | --localsta | --localst | --locals) 1087 ac_prev=localstatedir ;; 1088 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1089 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1090 localstatedir=$ac_optarg ;; 1091 1092 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1093 ac_prev=mandir ;; 1094 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1095 mandir=$ac_optarg ;; 1096 1097 -nfp | --nfp | --nf) 1098 # Obsolete; use --without-fp. 1099 with_fp=no ;; 1100 1101 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1102 | --no-cr | --no-c | -n) 1103 no_create=yes ;; 1104 1105 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1106 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1107 no_recursion=yes ;; 1108 1109 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1110 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1111 | --oldin | --oldi | --old | --ol | --o) 1112 ac_prev=oldincludedir ;; 1113 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1114 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1115 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1116 oldincludedir=$ac_optarg ;; 1117 1118 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1119 ac_prev=prefix ;; 1120 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1121 prefix=$ac_optarg ;; 1122 1123 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1124 | --program-pre | --program-pr | --program-p) 1125 ac_prev=program_prefix ;; 1126 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1127 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1128 program_prefix=$ac_optarg ;; 1129 1130 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1131 | --program-suf | --program-su | --program-s) 1132 ac_prev=program_suffix ;; 1133 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1134 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1135 program_suffix=$ac_optarg ;; 1136 1137 -program-transform-name | --program-transform-name \ 1138 | --program-transform-nam | --program-transform-na \ 1139 | --program-transform-n | --program-transform- \ 1140 | --program-transform | --program-transfor \ 1141 | --program-transfo | --program-transf \ 1142 | --program-trans | --program-tran \ 1143 | --progr-tra | --program-tr | --program-t) 1144 ac_prev=program_transform_name ;; 1145 -program-transform-name=* | --program-transform-name=* \ 1146 | --program-transform-nam=* | --program-transform-na=* \ 1147 | --program-transform-n=* | --program-transform-=* \ 1148 | --program-transform=* | --program-transfor=* \ 1149 | --program-transfo=* | --program-transf=* \ 1150 | --program-trans=* | --program-tran=* \ 1151 | --progr-tra=* | --program-tr=* | --program-t=*) 1152 program_transform_name=$ac_optarg ;; 1153 1154 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1155 ac_prev=pdfdir ;; 1156 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1157 pdfdir=$ac_optarg ;; 1158 1159 -psdir | --psdir | --psdi | --psd | --ps) 1160 ac_prev=psdir ;; 1161 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1162 psdir=$ac_optarg ;; 1163 1164 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1165 | -silent | --silent | --silen | --sile | --sil) 1166 silent=yes ;; 1167 1168 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1169 ac_prev=sbindir ;; 1170 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1171 | --sbi=* | --sb=*) 1172 sbindir=$ac_optarg ;; 1173 1174 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1175 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1176 | --sharedst | --shareds | --shared | --share | --shar \ 1177 | --sha | --sh) 1178 ac_prev=sharedstatedir ;; 1179 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1180 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1181 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1182 | --sha=* | --sh=*) 1183 sharedstatedir=$ac_optarg ;; 1184 1185 -site | --site | --sit) 1186 ac_prev=site ;; 1187 -site=* | --site=* | --sit=*) 1188 site=$ac_optarg ;; 1189 1190 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1191 ac_prev=srcdir ;; 1192 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1193 srcdir=$ac_optarg ;; 1194 1195 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1196 | --syscon | --sysco | --sysc | --sys | --sy) 1197 ac_prev=sysconfdir ;; 1198 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1199 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1200 sysconfdir=$ac_optarg ;; 1201 1202 -target | --target | --targe | --targ | --tar | --ta | --t) 1203 ac_prev=target_alias ;; 1204 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1205 target_alias=$ac_optarg ;; 1206 1207 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1208 verbose=yes ;; 1209 1210 -version | --version | --versio | --versi | --vers | -V) 1211 ac_init_version=: ;; 1212 1213 -with-* | --with-*) 1214 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1215 # Reject names that are not valid shell variable names. 1216 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1217 { echo "$as_me: error: invalid package name: $ac_package" >&2 1218 { (exit 1); exit 1; }; } 1219 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1220 eval with_$ac_package=\$ac_optarg ;; 1221 1222 -without-* | --without-*) 1223 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1224 # Reject names that are not valid shell variable names. 1225 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1226 { echo "$as_me: error: invalid package name: $ac_package" >&2 1227 { (exit 1); exit 1; }; } 1228 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1229 eval with_$ac_package=no ;; 1230 1231 --x) 1232 # Obsolete; use --with-x. 1233 with_x=yes ;; 1234 1235 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1236 | --x-incl | --x-inc | --x-in | --x-i) 1237 ac_prev=x_includes ;; 1238 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1239 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1240 x_includes=$ac_optarg ;; 1241 1242 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1243 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1244 ac_prev=x_libraries ;; 1245 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1246 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1247 x_libraries=$ac_optarg ;; 1248 1249 -*) { echo "$as_me: error: unrecognized option: $ac_option 1250Try \`$0 --help' for more information." >&2 1251 { (exit 1); exit 1; }; } 1252 ;; 1253 1254 *=*) 1255 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1256 # Reject names that are not valid shell variable names. 1257 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1258 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1259 { (exit 1); exit 1; }; } 1260 eval $ac_envvar=\$ac_optarg 1261 export $ac_envvar ;; 1262 1263 *) 1264 # FIXME: should be removed in autoconf 3.0. 1265 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1266 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1267 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1268 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1269 ;; 1270 1271 esac 1272done 1273 1274if test -n "$ac_prev"; then 1275 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1276 { echo "$as_me: error: missing argument to $ac_option" >&2 1277 { (exit 1); exit 1; }; } 1278fi 1279 1280# Be sure to have absolute directory names. 1281for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1282 datadir sysconfdir sharedstatedir localstatedir includedir \ 1283 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1284 libdir localedir mandir 1285do 1286 eval ac_val=\$$ac_var 1287 case $ac_val in 1288 [\\/$]* | ?:[\\/]* ) continue;; 1289 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1290 esac 1291 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1292 { (exit 1); exit 1; }; } 1293done 1294 1295# There might be people who depend on the old broken behavior: `$host' 1296# used to hold the argument of --host etc. 1297# FIXME: To remove some day. 1298build=$build_alias 1299host=$host_alias 1300target=$target_alias 1301 1302# FIXME: To remove some day. 1303if test "x$host_alias" != x; then 1304 if test "x$build_alias" = x; then 1305 cross_compiling=maybe 1306 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1307 If a cross compiler is detected then cross compile mode will be used." >&2 1308 elif test "x$build_alias" != "x$host_alias"; then 1309 cross_compiling=yes 1310 fi 1311fi 1312 1313ac_tool_prefix= 1314test -n "$host_alias" && ac_tool_prefix=$host_alias- 1315 1316test "$silent" = yes && exec 6>/dev/null 1317 1318 1319ac_pwd=`pwd` && test -n "$ac_pwd" && 1320ac_ls_di=`ls -di .` && 1321ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1322 { echo "$as_me: error: Working directory cannot be determined" >&2 1323 { (exit 1); exit 1; }; } 1324test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1325 { echo "$as_me: error: pwd does not report name of working directory" >&2 1326 { (exit 1); exit 1; }; } 1327 1328 1329# Find the source files, if location was not specified. 1330if test -z "$srcdir"; then 1331 ac_srcdir_defaulted=yes 1332 # Try the directory containing this script, then the parent directory. 1333 ac_confdir=`$as_dirname -- "$0" || 1334$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1335 X"$0" : 'X\(//\)[^/]' \| \ 1336 X"$0" : 'X\(//\)$' \| \ 1337 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1338echo X"$0" | 1339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1340 s//\1/ 1341 q 1342 } 1343 /^X\(\/\/\)[^/].*/{ 1344 s//\1/ 1345 q 1346 } 1347 /^X\(\/\/\)$/{ 1348 s//\1/ 1349 q 1350 } 1351 /^X\(\/\).*/{ 1352 s//\1/ 1353 q 1354 } 1355 s/.*/./; q'` 1356 srcdir=$ac_confdir 1357 if test ! -r "$srcdir/$ac_unique_file"; then 1358 srcdir=.. 1359 fi 1360else 1361 ac_srcdir_defaulted=no 1362fi 1363if test ! -r "$srcdir/$ac_unique_file"; then 1364 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1365 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1366 { (exit 1); exit 1; }; } 1367fi 1368ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1369ac_abs_confdir=`( 1370 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1371 { (exit 1); exit 1; }; } 1372 pwd)` 1373# When building in place, set srcdir=. 1374if test "$ac_abs_confdir" = "$ac_pwd"; then 1375 srcdir=. 1376fi 1377# Remove unnecessary trailing slashes from srcdir. 1378# Double slashes in file names in object file debugging info 1379# mess up M-x gdb in Emacs. 1380case $srcdir in 1381*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1382esac 1383for ac_var in $ac_precious_vars; do 1384 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1385 eval ac_env_${ac_var}_value=\$${ac_var} 1386 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1387 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1388done 1389 1390# 1391# Report the --help message. 1392# 1393if test "$ac_init_help" = "long"; then 1394 # Omit some internal or obsolete options to make the list less imposing. 1395 # This message is too long to be a string in the A/UX 3.1 sh. 1396 cat <<_ACEOF 1397\`configure' configures ta-lib 0.4.0 to adapt to many kinds of systems. 1398 1399Usage: $0 [OPTION]... [VAR=VALUE]... 1400 1401To assign environment variables (e.g., CC, CFLAGS...), specify them as 1402VAR=VALUE. See below for descriptions of some of the useful variables. 1403 1404Defaults for the options are specified in brackets. 1405 1406Configuration: 1407 -h, --help display this help and exit 1408 --help=short display options specific to this package 1409 --help=recursive display the short help of all the included packages 1410 -V, --version display version information and exit 1411 -q, --quiet, --silent do not print \`checking...' messages 1412 --cache-file=FILE cache test results in FILE [disabled] 1413 -C, --config-cache alias for \`--cache-file=config.cache' 1414 -n, --no-create do not create output files 1415 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1416 1417Installation directories: 1418 --prefix=PREFIX install architecture-independent files in PREFIX 1419 [$ac_default_prefix] 1420 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1421 [PREFIX] 1422 1423By default, \`make install' will install all the files in 1424\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1425an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1426for instance \`--prefix=\$HOME'. 1427 1428For better control, use the options below. 1429 1430Fine tuning of the installation directories: 1431 --bindir=DIR user executables [EPREFIX/bin] 1432 --sbindir=DIR system admin executables [EPREFIX/sbin] 1433 --libexecdir=DIR program executables [EPREFIX/libexec] 1434 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1435 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1436 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1437 --libdir=DIR object code libraries [EPREFIX/lib] 1438 --includedir=DIR C header files [PREFIX/include] 1439 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1440 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1441 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1442 --infodir=DIR info documentation [DATAROOTDIR/info] 1443 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1444 --mandir=DIR man documentation [DATAROOTDIR/man] 1445 --docdir=DIR documentation root @<:@DATAROOTDIR/doc/ta-lib@:>@ 1446 --htmldir=DIR html documentation [DOCDIR] 1447 --dvidir=DIR dvi documentation [DOCDIR] 1448 --pdfdir=DIR pdf documentation [DOCDIR] 1449 --psdir=DIR ps documentation [DOCDIR] 1450_ACEOF 1451 1452 cat <<\_ACEOF 1453 1454Program names: 1455 --program-prefix=PREFIX prepend PREFIX to installed program names 1456 --program-suffix=SUFFIX append SUFFIX to installed program names 1457 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1458 1459System types: 1460 --build=BUILD configure for building on BUILD [guessed] 1461 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1462_ACEOF 1463fi 1464 1465if test -n "$ac_init_help"; then 1466 case $ac_init_help in 1467 short | recursive ) echo "Configuration of ta-lib 0.4.0:";; 1468 esac 1469 cat <<\_ACEOF 1470 1471Optional Features: 1472 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1473 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1474 --disable-dependency-tracking speeds up one-time build 1475 --enable-dependency-tracking do not reject slow dependency extractors 1476 --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@ 1477 --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@ 1478 --enable-fast-install@<:@=PKGS@:>@ 1479 optimize for fast installation @<:@default=yes@:>@ 1480 --disable-libtool-lock avoid locking (might break parallel builds) 1481 1482Optional Packages: 1483 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1484 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1485 --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@ 1486 --with-pic try to use only PIC/non-PIC objects @<:@default=use 1487 both@:>@ 1488 --with-tags@<:@=TAGS@:>@ include additional configurations @<:@automatic@:>@ 1489 1490Some influential environment variables: 1491 CC C compiler command 1492 CFLAGS C compiler flags 1493 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1494 nonstandard directory <lib dir> 1495 LIBS libraries to pass to the linker, e.g. -l<library> 1496 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1497 you have headers in a nonstandard directory <include dir> 1498 CPP C preprocessor 1499 CXX C++ compiler command 1500 CXXFLAGS C++ compiler flags 1501 CXXCPP C++ preprocessor 1502 F77 Fortran 77 compiler command 1503 FFLAGS Fortran 77 compiler flags 1504 1505Use these variables to override the choices made by `configure' or to help 1506it to find libraries and programs with nonstandard names/locations. 1507 1508Report bugs to <http://sourceforge.net/tracker/?group_id=8903&atid=108903>. 1509_ACEOF 1510ac_status=$? 1511fi 1512 1513if test "$ac_init_help" = "recursive"; then 1514 # If there are subdirs, report their specific --help. 1515 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1516 test -d "$ac_dir" || continue 1517 ac_builddir=. 1518 1519case "$ac_dir" in 1520.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1521*) 1522 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1523 # A ".." for each directory in $ac_dir_suffix. 1524 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1525 case $ac_top_builddir_sub in 1526 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1527 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1528 esac ;; 1529esac 1530ac_abs_top_builddir=$ac_pwd 1531ac_abs_builddir=$ac_pwd$ac_dir_suffix 1532# for backward compatibility: 1533ac_top_builddir=$ac_top_build_prefix 1534 1535case $srcdir in 1536 .) # We are building in place. 1537 ac_srcdir=. 1538 ac_top_srcdir=$ac_top_builddir_sub 1539 ac_abs_top_srcdir=$ac_pwd ;; 1540 [\\/]* | ?:[\\/]* ) # Absolute name. 1541 ac_srcdir=$srcdir$ac_dir_suffix; 1542 ac_top_srcdir=$srcdir 1543 ac_abs_top_srcdir=$srcdir ;; 1544 *) # Relative name. 1545 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1546 ac_top_srcdir=$ac_top_build_prefix$srcdir 1547 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1548esac 1549ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1550 1551 cd "$ac_dir" || { ac_status=$?; continue; } 1552 # Check for guested configure. 1553 if test -f "$ac_srcdir/configure.gnu"; then 1554 echo && 1555 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1556 elif test -f "$ac_srcdir/configure"; then 1557 echo && 1558 $SHELL "$ac_srcdir/configure" --help=recursive 1559 else 1560 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1561 fi || ac_status=$? 1562 cd "$ac_pwd" || { ac_status=$?; break; } 1563 done 1564fi 1565 1566test -n "$ac_init_help" && exit $ac_status 1567if $ac_init_version; then 1568 cat <<\_ACEOF 1569ta-lib configure 0.4.0 1570generated by GNU Autoconf 2.61 1571 1572Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 15732002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1574This configure script is free software; the Free Software Foundation 1575gives unlimited permission to copy, distribute and modify it. 1576 1577(c) TicTacTec 2005, 2006 1578_ACEOF 1579 exit 1580fi 1581cat >config.log <<_ACEOF 1582This file contains any messages produced by compilers while 1583running configure, to aid debugging if configure makes a mistake. 1584 1585It was created by ta-lib $as_me 0.4.0, which was 1586generated by GNU Autoconf 2.61. Invocation command line was 1587 1588 $ $0 $@ 1589 1590_ACEOF 1591exec 5>>config.log 1592{ 1593cat <<_ASUNAME 1594@%:@@%:@ --------- @%:@@%:@ 1595@%:@@%:@ Platform. @%:@@%:@ 1596@%:@@%:@ --------- @%:@@%:@ 1597 1598hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1599uname -m = `(uname -m) 2>/dev/null || echo unknown` 1600uname -r = `(uname -r) 2>/dev/null || echo unknown` 1601uname -s = `(uname -s) 2>/dev/null || echo unknown` 1602uname -v = `(uname -v) 2>/dev/null || echo unknown` 1603 1604/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1605/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1606 1607/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1608/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1609/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1610/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1611/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1612/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1613/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1614 1615_ASUNAME 1616 1617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1618for as_dir in $PATH 1619do 1620 IFS=$as_save_IFS 1621 test -z "$as_dir" && as_dir=. 1622 echo "PATH: $as_dir" 1623done 1624IFS=$as_save_IFS 1625 1626} >&5 1627 1628cat >&5 <<_ACEOF 1629 1630 1631@%:@@%:@ ----------- @%:@@%:@ 1632@%:@@%:@ Core tests. @%:@@%:@ 1633@%:@@%:@ ----------- @%:@@%:@ 1634 1635_ACEOF 1636 1637 1638# Keep a trace of the command line. 1639# Strip out --no-create and --no-recursion so they do not pile up. 1640# Strip out --silent because we don't want to record it for future runs. 1641# Also quote any args containing shell meta-characters. 1642# Make two passes to allow for proper duplicate-argument suppression. 1643ac_configure_args= 1644ac_configure_args0= 1645ac_configure_args1= 1646ac_must_keep_next=false 1647for ac_pass in 1 2 1648do 1649 for ac_arg 1650 do 1651 case $ac_arg in 1652 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1653 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1654 | -silent | --silent | --silen | --sile | --sil) 1655 continue ;; 1656 *\'*) 1657 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1658 esac 1659 case $ac_pass in 1660 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1661 2) 1662 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1663 if test $ac_must_keep_next = true; then 1664 ac_must_keep_next=false # Got value, back to normal. 1665 else 1666 case $ac_arg in 1667 *=* | --config-cache | -C | -disable-* | --disable-* \ 1668 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1669 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1670 | -with-* | --with-* | -without-* | --without-* | --x) 1671 case "$ac_configure_args0 " in 1672 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1673 esac 1674 ;; 1675 -* ) ac_must_keep_next=true ;; 1676 esac 1677 fi 1678 ac_configure_args="$ac_configure_args '$ac_arg'" 1679 ;; 1680 esac 1681 done 1682done 1683$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1684$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1685 1686# When interrupted or exit'd, cleanup temporary files, and complete 1687# config.log. We remove comments because anyway the quotes in there 1688# would cause problems or look ugly. 1689# WARNING: Use '\'' to represent an apostrophe within the trap. 1690# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1691trap 'exit_status=$? 1692 # Save into config.log some information that might help in debugging. 1693 { 1694 echo 1695 1696 cat <<\_ASBOX 1697@%:@@%:@ ---------------- @%:@@%:@ 1698@%:@@%:@ Cache variables. @%:@@%:@ 1699@%:@@%:@ ---------------- @%:@@%:@ 1700_ASBOX 1701 echo 1702 # The following way of writing the cache mishandles newlines in values, 1703( 1704 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1705 eval ac_val=\$$ac_var 1706 case $ac_val in #( 1707 *${as_nl}*) 1708 case $ac_var in #( 1709 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1710echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1711 esac 1712 case $ac_var in #( 1713 _ | IFS | as_nl) ;; #( 1714 *) $as_unset $ac_var ;; 1715 esac ;; 1716 esac 1717 done 1718 (set) 2>&1 | 1719 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1720 *${as_nl}ac_space=\ *) 1721 sed -n \ 1722 "s/'\''/'\''\\\\'\'''\''/g; 1723 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1724 ;; #( 1725 *) 1726 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1727 ;; 1728 esac | 1729 sort 1730) 1731 echo 1732 1733 cat <<\_ASBOX 1734@%:@@%:@ ----------------- @%:@@%:@ 1735@%:@@%:@ Output variables. @%:@@%:@ 1736@%:@@%:@ ----------------- @%:@@%:@ 1737_ASBOX 1738 echo 1739 for ac_var in $ac_subst_vars 1740 do 1741 eval ac_val=\$$ac_var 1742 case $ac_val in 1743 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1744 esac 1745 echo "$ac_var='\''$ac_val'\''" 1746 done | sort 1747 echo 1748 1749 if test -n "$ac_subst_files"; then 1750 cat <<\_ASBOX 1751@%:@@%:@ ------------------- @%:@@%:@ 1752@%:@@%:@ File substitutions. @%:@@%:@ 1753@%:@@%:@ ------------------- @%:@@%:@ 1754_ASBOX 1755 echo 1756 for ac_var in $ac_subst_files 1757 do 1758 eval ac_val=\$$ac_var 1759 case $ac_val in 1760 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1761 esac 1762 echo "$ac_var='\''$ac_val'\''" 1763 done | sort 1764 echo 1765 fi 1766 1767 if test -s confdefs.h; then 1768 cat <<\_ASBOX 1769@%:@@%:@ ----------- @%:@@%:@ 1770@%:@@%:@ confdefs.h. @%:@@%:@ 1771@%:@@%:@ ----------- @%:@@%:@ 1772_ASBOX 1773 echo 1774 cat confdefs.h 1775 echo 1776 fi 1777 test "$ac_signal" != 0 && 1778 echo "$as_me: caught signal $ac_signal" 1779 echo "$as_me: exit $exit_status" 1780 } >&5 1781 rm -f core *.core core.conftest.* && 1782 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1783 exit $exit_status 1784' 0 1785for ac_signal in 1 2 13 15; do 1786 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1787done 1788ac_signal=0 1789 1790# confdefs.h avoids OS command line length limits that DEFS can exceed. 1791rm -f -r conftest* confdefs.h 1792 1793# Predefined preprocessor variables. 1794 1795cat >>confdefs.h <<_ACEOF 1796@%:@define PACKAGE_NAME "$PACKAGE_NAME" 1797_ACEOF 1798 1799 1800cat >>confdefs.h <<_ACEOF 1801@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1802_ACEOF 1803 1804 1805cat >>confdefs.h <<_ACEOF 1806@%:@define PACKAGE_VERSION "$PACKAGE_VERSION" 1807_ACEOF 1808 1809 1810cat >>confdefs.h <<_ACEOF 1811@%:@define PACKAGE_STRING "$PACKAGE_STRING" 1812_ACEOF 1813 1814 1815cat >>confdefs.h <<_ACEOF 1816@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1817_ACEOF 1818 1819 1820# Let the site file select an alternate cache file if it wants to. 1821# Prefer explicitly selected file to automatically selected ones. 1822if test -n "$CONFIG_SITE"; then 1823 set x "$CONFIG_SITE" 1824elif test "x$prefix" != xNONE; then 1825 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1826else 1827 set x "$ac_default_prefix/share/config.site" \ 1828 "$ac_default_prefix/etc/config.site" 1829fi 1830shift 1831for ac_site_file 1832do 1833 if test -r "$ac_site_file"; then 1834 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1835echo "$as_me: loading site script $ac_site_file" >&6;} 1836 sed 's/^/| /' "$ac_site_file" >&5 1837 . "$ac_site_file" 1838 fi 1839done 1840 1841if test -r "$cache_file"; then 1842 # Some versions of bash will fail to source /dev/null (special 1843 # files actually), so we avoid doing that. 1844 if test -f "$cache_file"; then 1845 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1846echo "$as_me: loading cache $cache_file" >&6;} 1847 case $cache_file in 1848 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1849 *) . "./$cache_file";; 1850 esac 1851 fi 1852else 1853 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1854echo "$as_me: creating cache $cache_file" >&6;} 1855 >$cache_file 1856fi 1857 1858# Check that the precious variables saved in the cache have kept the same 1859# value. 1860ac_cache_corrupted=false 1861for ac_var in $ac_precious_vars; do 1862 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1863 eval ac_new_set=\$ac_env_${ac_var}_set 1864 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1865 eval ac_new_val=\$ac_env_${ac_var}_value 1866 case $ac_old_set,$ac_new_set in 1867 set,) 1868 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1869echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1870 ac_cache_corrupted=: ;; 1871 ,set) 1872 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1873echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1874 ac_cache_corrupted=: ;; 1875 ,);; 1876 *) 1877 if test "x$ac_old_val" != "x$ac_new_val"; then 1878 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1879echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1880 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1881echo "$as_me: former value: $ac_old_val" >&2;} 1882 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1883echo "$as_me: current value: $ac_new_val" >&2;} 1884 ac_cache_corrupted=: 1885 fi;; 1886 esac 1887 # Pass precious variables to config.status. 1888 if test "$ac_new_set" = set; then 1889 case $ac_new_val in 1890 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1891 *) ac_arg=$ac_var=$ac_new_val ;; 1892 esac 1893 case " $ac_configure_args " in 1894 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1895 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1896 esac 1897 fi 1898done 1899if $ac_cache_corrupted; then 1900 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1901echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1902 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1903echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1904 { (exit 1); exit 1; }; } 1905fi 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931ac_ext=c 1932ac_cpp='$CPP $CPPFLAGS' 1933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1935ac_compiler_gnu=$ac_cv_c_compiler_gnu 1936 1937 1938 1939ac_config_headers="$ac_config_headers include/ta_config.h" 1940 1941am__api_version='1.10' 1942 1943ac_aux_dir= 1944for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 1945 if test -f "$ac_dir/install-sh"; then 1946 ac_aux_dir=$ac_dir 1947 ac_install_sh="$ac_aux_dir/install-sh -c" 1948 break 1949 elif test -f "$ac_dir/install.sh"; then 1950 ac_aux_dir=$ac_dir 1951 ac_install_sh="$ac_aux_dir/install.sh -c" 1952 break 1953 elif test -f "$ac_dir/shtool"; then 1954 ac_aux_dir=$ac_dir 1955 ac_install_sh="$ac_aux_dir/shtool install -c" 1956 break 1957 fi 1958done 1959if test -z "$ac_aux_dir"; then 1960 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 1961echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 1962 { (exit 1); exit 1; }; } 1963fi 1964 1965# These three variables are undocumented and unsupported, 1966# and are intended to be withdrawn in a future Autoconf release. 1967# They can cause serious problems if a builder's source tree is in a directory 1968# whose full name contains unusual characters. 1969ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1970ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1971ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1972 1973 1974# Find a good install program. We prefer a C program (faster), 1975# so one script is as good as another. But avoid the broken or 1976# incompatible versions: 1977# SysV /etc/install, /usr/sbin/install 1978# SunOS /usr/etc/install 1979# IRIX /sbin/install 1980# AIX /bin/install 1981# AmigaOS /C/install, which installs bootblocks on floppy discs 1982# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1983# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1984# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1985# OS/2's system install, which has a completely different semantic 1986# ./install, which can be erroneously created by make from ./install.sh. 1987{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1988echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 1989if test -z "$INSTALL"; then 1990if test "${ac_cv_path_install+set}" = set; then 1991 echo $ECHO_N "(cached) $ECHO_C" >&6 1992else 1993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1994for as_dir in $PATH 1995do 1996 IFS=$as_save_IFS 1997 test -z "$as_dir" && as_dir=. 1998 # Account for people who put trailing slashes in PATH elements. 1999case $as_dir/ in 2000 ./ | .// | /cC/* | \ 2001 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2002 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2003 /usr/ucb/* ) ;; 2004 *) 2005 # OSF1 and SCO ODT 3.0 have their own names for install. 2006 # Don't use installbsd from OSF since it installs stuff as root 2007 # by default. 2008 for ac_prog in ginstall scoinst install; do 2009 for ac_exec_ext in '' $ac_executable_extensions; do 2010 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2011 if test $ac_prog = install && 2012 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2013 # AIX install. It has an incompatible calling convention. 2014 : 2015 elif test $ac_prog = install && 2016 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2017 # program-specific install script used by HP pwplus--don't use. 2018 : 2019 else 2020 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2021 break 3 2022 fi 2023 fi 2024 done 2025 done 2026 ;; 2027esac 2028done 2029IFS=$as_save_IFS 2030 2031 2032fi 2033 if test "${ac_cv_path_install+set}" = set; then 2034 INSTALL=$ac_cv_path_install 2035 else 2036 # As a last resort, use the slow shell script. Don't cache a 2037 # value for INSTALL within a source directory, because that will 2038 # break other packages using the cache if that directory is 2039 # removed, or if the value is a relative name. 2040 INSTALL=$ac_install_sh 2041 fi 2042fi 2043{ echo "$as_me:$LINENO: result: $INSTALL" >&5 2044echo "${ECHO_T}$INSTALL" >&6; } 2045 2046# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2047# It thinks the first close brace ends the variable substitution. 2048test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2049 2050test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2051 2052test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2053 2054{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2055echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 2056# Just in case 2057sleep 1 2058echo timestamp > conftest.file 2059# Do `set' in a subshell so we don't clobber the current shell's 2060# arguments. Must try -L first in case configure is actually a 2061# symlink; some systems play weird games with the mod time of symlinks 2062# (eg FreeBSD returns the mod time of the symlink's containing 2063# directory). 2064if ( 2065 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2066 if test "$*" = "X"; then 2067 # -L didn't work. 2068 set X `ls -t $srcdir/configure conftest.file` 2069 fi 2070 rm -f conftest.file 2071 if test "$*" != "X $srcdir/configure conftest.file" \ 2072 && test "$*" != "X conftest.file $srcdir/configure"; then 2073 2074 # If neither matched, then we have a broken ls. This can happen 2075 # if, for instance, CONFIG_SHELL is bash and it inherits a 2076 # broken ls alias from the environment. This has actually 2077 # happened. Such a system could not be considered "sane". 2078 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2079alias in your environment" >&5 2080echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2081alias in your environment" >&2;} 2082 { (exit 1); exit 1; }; } 2083 fi 2084 2085 test "$2" = conftest.file 2086 ) 2087then 2088 # Ok. 2089 : 2090else 2091 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2092Check your system clock" >&5 2093echo "$as_me: error: newly created file is older than distributed files! 2094Check your system clock" >&2;} 2095 { (exit 1); exit 1; }; } 2096fi 2097{ echo "$as_me:$LINENO: result: yes" >&5 2098echo "${ECHO_T}yes" >&6; } 2099test "$program_prefix" != NONE && 2100 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2101# Use a double $ so make ignores it. 2102test "$program_suffix" != NONE && 2103 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2104# Double any \ or $. echo might interpret backslashes. 2105# By default was `s,x,x', remove it if useless. 2106cat <<\_ACEOF >conftest.sed 2107s/[\\$]/&&/g;s/;s,x,x,$// 2108_ACEOF 2109program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2110rm -f conftest.sed 2111 2112# expand $ac_aux_dir to an absolute path 2113am_aux_dir=`cd $ac_aux_dir && pwd` 2114 2115test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2116# Use eval to expand $SHELL 2117if eval "$MISSING --run true"; then 2118 am_missing_run="$MISSING --run " 2119else 2120 am_missing_run= 2121 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2122echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2123fi 2124 2125{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2126echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } 2127if test -z "$MKDIR_P"; then 2128 if test "${ac_cv_path_mkdir+set}" = set; then 2129 echo $ECHO_N "(cached) $ECHO_C" >&6 2130else 2131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2132for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2133do 2134 IFS=$as_save_IFS 2135 test -z "$as_dir" && as_dir=. 2136 for ac_prog in mkdir gmkdir; do 2137 for ac_exec_ext in '' $ac_executable_extensions; do 2138 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2139 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2140 'mkdir (GNU coreutils) '* | \ 2141 'mkdir (coreutils) '* | \ 2142 'mkdir (fileutils) '4.1*) 2143 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2144 break 3;; 2145 esac 2146 done 2147 done 2148done 2149IFS=$as_save_IFS 2150 2151fi 2152 2153 if test "${ac_cv_path_mkdir+set}" = set; then 2154 MKDIR_P="$ac_cv_path_mkdir -p" 2155 else 2156 # As a last resort, use the slow shell script. Don't cache a 2157 # value for MKDIR_P within a source directory, because that will 2158 # break other packages using the cache if that directory is 2159 # removed, or if the value is a relative name. 2160 test -d ./--version && rmdir ./--version 2161 MKDIR_P="$ac_install_sh -d" 2162 fi 2163fi 2164{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2165echo "${ECHO_T}$MKDIR_P" >&6; } 2166 2167mkdir_p="$MKDIR_P" 2168case $mkdir_p in 2169 [\\/$]* | ?:[\\/]*) ;; 2170 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2171esac 2172 2173for ac_prog in gawk mawk nawk awk 2174do 2175 # Extract the first word of "$ac_prog", so it can be a program name with args. 2176set dummy $ac_prog; ac_word=$2 2177{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2178echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2179if test "${ac_cv_prog_AWK+set}" = set; then 2180 echo $ECHO_N "(cached) $ECHO_C" >&6 2181else 2182 if test -n "$AWK"; then 2183 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2184else 2185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2186for as_dir in $PATH 2187do 2188 IFS=$as_save_IFS 2189 test -z "$as_dir" && as_dir=. 2190 for ac_exec_ext in '' $ac_executable_extensions; do 2191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2192 ac_cv_prog_AWK="$ac_prog" 2193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2194 break 2 2195 fi 2196done 2197done 2198IFS=$as_save_IFS 2199 2200fi 2201fi 2202AWK=$ac_cv_prog_AWK 2203if test -n "$AWK"; then 2204 { echo "$as_me:$LINENO: result: $AWK" >&5 2205echo "${ECHO_T}$AWK" >&6; } 2206else 2207 { echo "$as_me:$LINENO: result: no" >&5 2208echo "${ECHO_T}no" >&6; } 2209fi 2210 2211 2212 test -n "$AWK" && break 2213done 2214 2215{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2216echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2217set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2218if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2219 echo $ECHO_N "(cached) $ECHO_C" >&6 2220else 2221 cat >conftest.make <<\_ACEOF 2222SHELL = /bin/sh 2223all: 2224 @echo '@@@%%%=$(MAKE)=@@@%%%' 2225_ACEOF 2226# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2227case `${MAKE-make} -f conftest.make 2>/dev/null` in 2228 *@@@%%%=?*=@@@%%%*) 2229 eval ac_cv_prog_make_${ac_make}_set=yes;; 2230 *) 2231 eval ac_cv_prog_make_${ac_make}_set=no;; 2232esac 2233rm -f conftest.make 2234fi 2235if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2236 { echo "$as_me:$LINENO: result: yes" >&5 2237echo "${ECHO_T}yes" >&6; } 2238 SET_MAKE= 2239else 2240 { echo "$as_me:$LINENO: result: no" >&5 2241echo "${ECHO_T}no" >&6; } 2242 SET_MAKE="MAKE=${MAKE-make}" 2243fi 2244 2245rm -rf .tst 2>/dev/null 2246mkdir .tst 2>/dev/null 2247if test -d .tst; then 2248 am__leading_dot=. 2249else 2250 am__leading_dot=_ 2251fi 2252rmdir .tst 2>/dev/null 2253 2254if test "`cd $srcdir && pwd`" != "`pwd`"; then 2255 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2256 # is not polluted with repeated "-I." 2257 am__isrc=' -I$(srcdir)' 2258 # test to see if srcdir already configured 2259 if test -f $srcdir/config.status; then 2260 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2261echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2262 { (exit 1); exit 1; }; } 2263 fi 2264fi 2265 2266# test whether we have cygpath 2267if test -z "$CYGPATH_W"; then 2268 if (cygpath --version) >/dev/null 2>/dev/null; then 2269 CYGPATH_W='cygpath -w' 2270 else 2271 CYGPATH_W=echo 2272 fi 2273fi 2274 2275 2276# Define the identity of the package. 2277 PACKAGE=ta-lib 2278 VERSION=0.4.0 2279 2280 2281cat >>confdefs.h <<_ACEOF 2282@%:@define PACKAGE "$PACKAGE" 2283_ACEOF 2284 2285 2286cat >>confdefs.h <<_ACEOF 2287@%:@define VERSION "$VERSION" 2288_ACEOF 2289 2290# Some tools Automake needs. 2291 2292ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2293 2294 2295AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2296 2297 2298AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2299 2300 2301AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2302 2303 2304MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2305 2306install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2307 2308# Installed binaries are usually stripped using `strip' when the user 2309# run `make install-strip'. However `strip' might not be the right 2310# tool to use in cross-compilation environments, therefore Automake 2311# will honor the `STRIP' environment variable to overrule this program. 2312if test "$cross_compiling" != no; then 2313 if test -n "$ac_tool_prefix"; then 2314 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2315set dummy ${ac_tool_prefix}strip; ac_word=$2 2316{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2317echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2318if test "${ac_cv_prog_STRIP+set}" = set; then 2319 echo $ECHO_N "(cached) $ECHO_C" >&6 2320else 2321 if test -n "$STRIP"; then 2322 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2323else 2324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2325for as_dir in $PATH 2326do 2327 IFS=$as_save_IFS 2328 test -z "$as_dir" && as_dir=. 2329 for ac_exec_ext in '' $ac_executable_extensions; do 2330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2331 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2333 break 2 2334 fi 2335done 2336done 2337IFS=$as_save_IFS 2338 2339fi 2340fi 2341STRIP=$ac_cv_prog_STRIP 2342if test -n "$STRIP"; then 2343 { echo "$as_me:$LINENO: result: $STRIP" >&5 2344echo "${ECHO_T}$STRIP" >&6; } 2345else 2346 { echo "$as_me:$LINENO: result: no" >&5 2347echo "${ECHO_T}no" >&6; } 2348fi 2349 2350 2351fi 2352if test -z "$ac_cv_prog_STRIP"; then 2353 ac_ct_STRIP=$STRIP 2354 # Extract the first word of "strip", so it can be a program name with args. 2355set dummy strip; ac_word=$2 2356{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2358if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2359 echo $ECHO_N "(cached) $ECHO_C" >&6 2360else 2361 if test -n "$ac_ct_STRIP"; then 2362 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2363else 2364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2365for as_dir in $PATH 2366do 2367 IFS=$as_save_IFS 2368 test -z "$as_dir" && as_dir=. 2369 for ac_exec_ext in '' $ac_executable_extensions; do 2370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2371 ac_cv_prog_ac_ct_STRIP="strip" 2372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2373 break 2 2374 fi 2375done 2376done 2377IFS=$as_save_IFS 2378 2379fi 2380fi 2381ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2382if test -n "$ac_ct_STRIP"; then 2383 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2384echo "${ECHO_T}$ac_ct_STRIP" >&6; } 2385else 2386 { echo "$as_me:$LINENO: result: no" >&5 2387echo "${ECHO_T}no" >&6; } 2388fi 2389 2390 if test "x$ac_ct_STRIP" = x; then 2391 STRIP=":" 2392 else 2393 case $cross_compiling:$ac_tool_warned in 2394yes:) 2395{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2396whose name does not start with the host triplet. If you think this 2397configuration is useful to you, please write to autoconf@gnu.org." >&5 2398echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2399whose name does not start with the host triplet. If you think this 2400configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2401ac_tool_warned=yes ;; 2402esac 2403 STRIP=$ac_ct_STRIP 2404 fi 2405else 2406 STRIP="$ac_cv_prog_STRIP" 2407fi 2408 2409fi 2410INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2411 2412# We need awk for the "check" target. The system "awk" is bad on 2413# some platforms. 2414# Always define AMTAR for backward compatibility. 2415 2416AMTAR=${AMTAR-"${am_missing_run}tar"} 2417 2418am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2419 2420 2421 2422 2423 2424 2425# Checks for programs. 2426ac_ext=c 2427ac_cpp='$CPP $CPPFLAGS' 2428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2430ac_compiler_gnu=$ac_cv_c_compiler_gnu 2431if test -n "$ac_tool_prefix"; then 2432 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2433set dummy ${ac_tool_prefix}gcc; ac_word=$2 2434{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2435echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2436if test "${ac_cv_prog_CC+set}" = set; then 2437 echo $ECHO_N "(cached) $ECHO_C" >&6 2438else 2439 if test -n "$CC"; then 2440 ac_cv_prog_CC="$CC" # Let the user override the test. 2441else 2442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2443for as_dir in $PATH 2444do 2445 IFS=$as_save_IFS 2446 test -z "$as_dir" && as_dir=. 2447 for ac_exec_ext in '' $ac_executable_extensions; do 2448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2449 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2451 break 2 2452 fi 2453done 2454done 2455IFS=$as_save_IFS 2456 2457fi 2458fi 2459CC=$ac_cv_prog_CC 2460if test -n "$CC"; then 2461 { echo "$as_me:$LINENO: result: $CC" >&5 2462echo "${ECHO_T}$CC" >&6; } 2463else 2464 { echo "$as_me:$LINENO: result: no" >&5 2465echo "${ECHO_T}no" >&6; } 2466fi 2467 2468 2469fi 2470if test -z "$ac_cv_prog_CC"; then 2471 ac_ct_CC=$CC 2472 # Extract the first word of "gcc", so it can be a program name with args. 2473set dummy gcc; ac_word=$2 2474{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2476if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2477 echo $ECHO_N "(cached) $ECHO_C" >&6 2478else 2479 if test -n "$ac_ct_CC"; then 2480 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2481else 2482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2483for as_dir in $PATH 2484do 2485 IFS=$as_save_IFS 2486 test -z "$as_dir" && as_dir=. 2487 for ac_exec_ext in '' $ac_executable_extensions; do 2488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2489 ac_cv_prog_ac_ct_CC="gcc" 2490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2491 break 2 2492 fi 2493done 2494done 2495IFS=$as_save_IFS 2496 2497fi 2498fi 2499ac_ct_CC=$ac_cv_prog_ac_ct_CC 2500if test -n "$ac_ct_CC"; then 2501 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2502echo "${ECHO_T}$ac_ct_CC" >&6; } 2503else 2504 { echo "$as_me:$LINENO: result: no" >&5 2505echo "${ECHO_T}no" >&6; } 2506fi 2507 2508 if test "x$ac_ct_CC" = x; then 2509 CC="" 2510 else 2511 case $cross_compiling:$ac_tool_warned in 2512yes:) 2513{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2514whose name does not start with the host triplet. If you think this 2515configuration is useful to you, please write to autoconf@gnu.org." >&5 2516echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2517whose name does not start with the host triplet. If you think this 2518configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2519ac_tool_warned=yes ;; 2520esac 2521 CC=$ac_ct_CC 2522 fi 2523else 2524 CC="$ac_cv_prog_CC" 2525fi 2526 2527if test -z "$CC"; then 2528 if test -n "$ac_tool_prefix"; then 2529 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2530set dummy ${ac_tool_prefix}cc; ac_word=$2 2531{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2533if test "${ac_cv_prog_CC+set}" = set; then 2534 echo $ECHO_N "(cached) $ECHO_C" >&6 2535else 2536 if test -n "$CC"; then 2537 ac_cv_prog_CC="$CC" # Let the user override the test. 2538else 2539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2540for as_dir in $PATH 2541do 2542 IFS=$as_save_IFS 2543 test -z "$as_dir" && as_dir=. 2544 for ac_exec_ext in '' $ac_executable_extensions; do 2545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2546 ac_cv_prog_CC="${ac_tool_prefix}cc" 2547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2548 break 2 2549 fi 2550done 2551done 2552IFS=$as_save_IFS 2553 2554fi 2555fi 2556CC=$ac_cv_prog_CC 2557if test -n "$CC"; then 2558 { echo "$as_me:$LINENO: result: $CC" >&5 2559echo "${ECHO_T}$CC" >&6; } 2560else 2561 { echo "$as_me:$LINENO: result: no" >&5 2562echo "${ECHO_T}no" >&6; } 2563fi 2564 2565 2566 fi 2567fi 2568if test -z "$CC"; then 2569 # Extract the first word of "cc", so it can be a program name with args. 2570set dummy cc; ac_word=$2 2571{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2572echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2573if test "${ac_cv_prog_CC+set}" = set; then 2574 echo $ECHO_N "(cached) $ECHO_C" >&6 2575else 2576 if test -n "$CC"; then 2577 ac_cv_prog_CC="$CC" # Let the user override the test. 2578else 2579 ac_prog_rejected=no 2580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2581for as_dir in $PATH 2582do 2583 IFS=$as_save_IFS 2584 test -z "$as_dir" && as_dir=. 2585 for ac_exec_ext in '' $ac_executable_extensions; do 2586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2587 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2588 ac_prog_rejected=yes 2589 continue 2590 fi 2591 ac_cv_prog_CC="cc" 2592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2593 break 2 2594 fi 2595done 2596done 2597IFS=$as_save_IFS 2598 2599if test $ac_prog_rejected = yes; then 2600 # We found a bogon in the path, so make sure we never use it. 2601 set dummy $ac_cv_prog_CC 2602 shift 2603 if test $@%:@ != 0; then 2604 # We chose a different compiler from the bogus one. 2605 # However, it has the same basename, so the bogon will be chosen 2606 # first if we set CC to just the basename; use the full file name. 2607 shift 2608 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2609 fi 2610fi 2611fi 2612fi 2613CC=$ac_cv_prog_CC 2614if test -n "$CC"; then 2615 { echo "$as_me:$LINENO: result: $CC" >&5 2616echo "${ECHO_T}$CC" >&6; } 2617else 2618 { echo "$as_me:$LINENO: result: no" >&5 2619echo "${ECHO_T}no" >&6; } 2620fi 2621 2622 2623fi 2624if test -z "$CC"; then 2625 if test -n "$ac_tool_prefix"; then 2626 for ac_prog in cl.exe 2627 do 2628 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2629set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2630{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2631echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2632if test "${ac_cv_prog_CC+set}" = set; then 2633 echo $ECHO_N "(cached) $ECHO_C" >&6 2634else 2635 if test -n "$CC"; then 2636 ac_cv_prog_CC="$CC" # Let the user override the test. 2637else 2638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2639for as_dir in $PATH 2640do 2641 IFS=$as_save_IFS 2642 test -z "$as_dir" && as_dir=. 2643 for ac_exec_ext in '' $ac_executable_extensions; do 2644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2645 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2647 break 2 2648 fi 2649done 2650done 2651IFS=$as_save_IFS 2652 2653fi 2654fi 2655CC=$ac_cv_prog_CC 2656if test -n "$CC"; then 2657 { echo "$as_me:$LINENO: result: $CC" >&5 2658echo "${ECHO_T}$CC" >&6; } 2659else 2660 { echo "$as_me:$LINENO: result: no" >&5 2661echo "${ECHO_T}no" >&6; } 2662fi 2663 2664 2665 test -n "$CC" && break 2666 done 2667fi 2668if test -z "$CC"; then 2669 ac_ct_CC=$CC 2670 for ac_prog in cl.exe 2671do 2672 # Extract the first word of "$ac_prog", so it can be a program name with args. 2673set dummy $ac_prog; ac_word=$2 2674{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2675echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2676if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2677 echo $ECHO_N "(cached) $ECHO_C" >&6 2678else 2679 if test -n "$ac_ct_CC"; then 2680 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2681else 2682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2683for as_dir in $PATH 2684do 2685 IFS=$as_save_IFS 2686 test -z "$as_dir" && as_dir=. 2687 for ac_exec_ext in '' $ac_executable_extensions; do 2688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2689 ac_cv_prog_ac_ct_CC="$ac_prog" 2690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2691 break 2 2692 fi 2693done 2694done 2695IFS=$as_save_IFS 2696 2697fi 2698fi 2699ac_ct_CC=$ac_cv_prog_ac_ct_CC 2700if test -n "$ac_ct_CC"; then 2701 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2702echo "${ECHO_T}$ac_ct_CC" >&6; } 2703else 2704 { echo "$as_me:$LINENO: result: no" >&5 2705echo "${ECHO_T}no" >&6; } 2706fi 2707 2708 2709 test -n "$ac_ct_CC" && break 2710done 2711 2712 if test "x$ac_ct_CC" = x; then 2713 CC="" 2714 else 2715 case $cross_compiling:$ac_tool_warned in 2716yes:) 2717{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2718whose name does not start with the host triplet. If you think this 2719configuration is useful to you, please write to autoconf@gnu.org." >&5 2720echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2721whose name does not start with the host triplet. If you think this 2722configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2723ac_tool_warned=yes ;; 2724esac 2725 CC=$ac_ct_CC 2726 fi 2727fi 2728 2729fi 2730 2731 2732test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2733See \`config.log' for more details." >&5 2734echo "$as_me: error: no acceptable C compiler found in \$PATH 2735See \`config.log' for more details." >&2;} 2736 { (exit 1); exit 1; }; } 2737 2738# Provide some information about the compiler. 2739echo "$as_me:$LINENO: checking for C compiler version" >&5 2740ac_compiler=`set X $ac_compile; echo $2` 2741{ (ac_try="$ac_compiler --version >&5" 2742case "(($ac_try" in 2743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2744 *) ac_try_echo=$ac_try;; 2745esac 2746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2747 (eval "$ac_compiler --version >&5") 2>&5 2748 ac_status=$? 2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2750 (exit $ac_status); } 2751{ (ac_try="$ac_compiler -v >&5" 2752case "(($ac_try" in 2753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2754 *) ac_try_echo=$ac_try;; 2755esac 2756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2757 (eval "$ac_compiler -v >&5") 2>&5 2758 ac_status=$? 2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2760 (exit $ac_status); } 2761{ (ac_try="$ac_compiler -V >&5" 2762case "(($ac_try" in 2763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2764 *) ac_try_echo=$ac_try;; 2765esac 2766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2767 (eval "$ac_compiler -V >&5") 2>&5 2768 ac_status=$? 2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2770 (exit $ac_status); } 2771 2772cat >conftest.$ac_ext <<_ACEOF 2773/* confdefs.h. */ 2774_ACEOF 2775cat confdefs.h >>conftest.$ac_ext 2776cat >>conftest.$ac_ext <<_ACEOF 2777/* end confdefs.h. */ 2778 2779int 2780main () 2781{ 2782 2783 ; 2784 return 0; 2785} 2786_ACEOF 2787ac_clean_files_save=$ac_clean_files 2788ac_clean_files="$ac_clean_files a.out a.exe b.out" 2789# Try to create an executable without -o first, disregard a.out. 2790# It will help us diagnose broken compilers, and finding out an intuition 2791# of exeext. 2792{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2793echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2794ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2795# 2796# List of possible output files, starting from the most likely. 2797# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2798# only as a last resort. b.out is created by i960 compilers. 2799ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2800# 2801# The IRIX 6 linker writes into existing files which may not be 2802# executable, retaining their permissions. Remove them first so a 2803# subsequent execution test works. 2804ac_rmfiles= 2805for ac_file in $ac_files 2806do 2807 case $ac_file in 2808 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2809 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2810 esac 2811done 2812rm -f $ac_rmfiles 2813 2814if { (ac_try="$ac_link_default" 2815case "(($ac_try" in 2816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2817 *) ac_try_echo=$ac_try;; 2818esac 2819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2820 (eval "$ac_link_default") 2>&5 2821 ac_status=$? 2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2823 (exit $ac_status); }; then 2824 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2825# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2826# in a Makefile. We should not override ac_cv_exeext if it was cached, 2827# so that the user can short-circuit this test for compilers unknown to 2828# Autoconf. 2829for ac_file in $ac_files '' 2830do 2831 test -f "$ac_file" || continue 2832 case $ac_file in 2833 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2834 ;; 2835 [ab].out ) 2836 # We found the default executable, but exeext='' is most 2837 # certainly right. 2838 break;; 2839 *.* ) 2840 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2841 then :; else 2842 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2843 fi 2844 # We set ac_cv_exeext here because the later test for it is not 2845 # safe: cross compilers may not add the suffix if given an `-o' 2846 # argument, so we may need to know it at that point already. 2847 # Even if this section looks crufty: it has the advantage of 2848 # actually working. 2849 break;; 2850 * ) 2851 break;; 2852 esac 2853done 2854test "$ac_cv_exeext" = no && ac_cv_exeext= 2855 2856else 2857 ac_file='' 2858fi 2859 2860{ echo "$as_me:$LINENO: result: $ac_file" >&5 2861echo "${ECHO_T}$ac_file" >&6; } 2862if test -z "$ac_file"; then 2863 echo "$as_me: failed program was:" >&5 2864sed 's/^/| /' conftest.$ac_ext >&5 2865 2866{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2867See \`config.log' for more details." >&5 2868echo "$as_me: error: C compiler cannot create executables 2869See \`config.log' for more details." >&2;} 2870 { (exit 77); exit 77; }; } 2871fi 2872 2873ac_exeext=$ac_cv_exeext 2874 2875# Check that the compiler produces executables we can run. If not, either 2876# the compiler is broken, or we cross compile. 2877{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2878echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2879# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2880# If not cross compiling, check that we can run a simple program. 2881if test "$cross_compiling" != yes; then 2882 if { ac_try='./$ac_file' 2883 { (case "(($ac_try" in 2884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2885 *) ac_try_echo=$ac_try;; 2886esac 2887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2888 (eval "$ac_try") 2>&5 2889 ac_status=$? 2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2891 (exit $ac_status); }; }; then 2892 cross_compiling=no 2893 else 2894 if test "$cross_compiling" = maybe; then 2895 cross_compiling=yes 2896 else 2897 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2898If you meant to cross compile, use \`--host'. 2899See \`config.log' for more details." >&5 2900echo "$as_me: error: cannot run C compiled programs. 2901If you meant to cross compile, use \`--host'. 2902See \`config.log' for more details." >&2;} 2903 { (exit 1); exit 1; }; } 2904 fi 2905 fi 2906fi 2907{ echo "$as_me:$LINENO: result: yes" >&5 2908echo "${ECHO_T}yes" >&6; } 2909 2910rm -f a.out a.exe conftest$ac_cv_exeext b.out 2911ac_clean_files=$ac_clean_files_save 2912# Check that the compiler produces executables we can run. If not, either 2913# the compiler is broken, or we cross compile. 2914{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2915echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2916{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2917echo "${ECHO_T}$cross_compiling" >&6; } 2918 2919{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2920echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2921if { (ac_try="$ac_link" 2922case "(($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_link") 2>&5 2928 ac_status=$? 2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2930 (exit $ac_status); }; then 2931 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2932# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2933# work properly (i.e., refer to `conftest.exe'), while it won't with 2934# `rm'. 2935for ac_file in conftest.exe conftest conftest.*; do 2936 test -f "$ac_file" || continue 2937 case $ac_file in 2938 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2939 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2940 break;; 2941 * ) break;; 2942 esac 2943done 2944else 2945 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2946See \`config.log' for more details." >&5 2947echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2948See \`config.log' for more details." >&2;} 2949 { (exit 1); exit 1; }; } 2950fi 2951 2952rm -f conftest$ac_cv_exeext 2953{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2954echo "${ECHO_T}$ac_cv_exeext" >&6; } 2955 2956rm -f conftest.$ac_ext 2957EXEEXT=$ac_cv_exeext 2958ac_exeext=$EXEEXT 2959{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2960echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2961if test "${ac_cv_objext+set}" = set; then 2962 echo $ECHO_N "(cached) $ECHO_C" >&6 2963else 2964 cat >conftest.$ac_ext <<_ACEOF 2965/* confdefs.h. */ 2966_ACEOF 2967cat confdefs.h >>conftest.$ac_ext 2968cat >>conftest.$ac_ext <<_ACEOF 2969/* end confdefs.h. */ 2970 2971int 2972main () 2973{ 2974 2975 ; 2976 return 0; 2977} 2978_ACEOF 2979rm -f conftest.o conftest.obj 2980if { (ac_try="$ac_compile" 2981case "(($ac_try" in 2982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2983 *) ac_try_echo=$ac_try;; 2984esac 2985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2986 (eval "$ac_compile") 2>&5 2987 ac_status=$? 2988 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2989 (exit $ac_status); }; then 2990 for ac_file in conftest.o conftest.obj conftest.*; do 2991 test -f "$ac_file" || continue; 2992 case $ac_file in 2993 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2994 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2995 break;; 2996 esac 2997done 2998else 2999 echo "$as_me: failed program was:" >&5 3000sed 's/^/| /' conftest.$ac_ext >&5 3001 3002{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3003See \`config.log' for more details." >&5 3004echo "$as_me: error: cannot compute suffix of object files: cannot compile 3005See \`config.log' for more details." >&2;} 3006 { (exit 1); exit 1; }; } 3007fi 3008 3009rm -f conftest.$ac_cv_objext conftest.$ac_ext 3010fi 3011{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3012echo "${ECHO_T}$ac_cv_objext" >&6; } 3013OBJEXT=$ac_cv_objext 3014ac_objext=$OBJEXT 3015{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3016echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3017if test "${ac_cv_c_compiler_gnu+set}" = set; then 3018 echo $ECHO_N "(cached) $ECHO_C" >&6 3019else 3020 cat >conftest.$ac_ext <<_ACEOF 3021/* confdefs.h. */ 3022_ACEOF 3023cat confdefs.h >>conftest.$ac_ext 3024cat >>conftest.$ac_ext <<_ACEOF 3025/* end confdefs.h. */ 3026 3027int 3028main () 3029{ 3030#ifndef __GNUC__ 3031 choke me 3032#endif 3033 3034 ; 3035 return 0; 3036} 3037_ACEOF 3038rm -f conftest.$ac_objext 3039if { (ac_try="$ac_compile" 3040case "(($ac_try" in 3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3042 *) ac_try_echo=$ac_try;; 3043esac 3044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3045 (eval "$ac_compile") 2>conftest.er1 3046 ac_status=$? 3047 grep -v '^ *+' conftest.er1 >conftest.err 3048 rm -f conftest.er1 3049 cat conftest.err >&5 3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3051 (exit $ac_status); } && { 3052 test -z "$ac_c_werror_flag" || 3053 test ! -s conftest.err 3054 } && test -s conftest.$ac_objext; then 3055 ac_compiler_gnu=yes 3056else 3057 echo "$as_me: failed program was:" >&5 3058sed 's/^/| /' conftest.$ac_ext >&5 3059 3060 ac_compiler_gnu=no 3061fi 3062 3063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3064ac_cv_c_compiler_gnu=$ac_compiler_gnu 3065 3066fi 3067{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3068echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3069GCC=`test $ac_compiler_gnu = yes && echo yes` 3070ac_test_CFLAGS=${CFLAGS+set} 3071ac_save_CFLAGS=$CFLAGS 3072{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3073echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3074if test "${ac_cv_prog_cc_g+set}" = set; then 3075 echo $ECHO_N "(cached) $ECHO_C" >&6 3076else 3077 ac_save_c_werror_flag=$ac_c_werror_flag 3078 ac_c_werror_flag=yes 3079 ac_cv_prog_cc_g=no 3080 CFLAGS="-g" 3081 cat >conftest.$ac_ext <<_ACEOF 3082/* confdefs.h. */ 3083_ACEOF 3084cat confdefs.h >>conftest.$ac_ext 3085cat >>conftest.$ac_ext <<_ACEOF 3086/* end confdefs.h. */ 3087 3088int 3089main () 3090{ 3091 3092 ; 3093 return 0; 3094} 3095_ACEOF 3096rm -f conftest.$ac_objext 3097if { (ac_try="$ac_compile" 3098case "(($ac_try" in 3099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3100 *) ac_try_echo=$ac_try;; 3101esac 3102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3103 (eval "$ac_compile") 2>conftest.er1 3104 ac_status=$? 3105 grep -v '^ *+' conftest.er1 >conftest.err 3106 rm -f conftest.er1 3107 cat conftest.err >&5 3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3109 (exit $ac_status); } && { 3110 test -z "$ac_c_werror_flag" || 3111 test ! -s conftest.err 3112 } && test -s conftest.$ac_objext; then 3113 ac_cv_prog_cc_g=yes 3114else 3115 echo "$as_me: failed program was:" >&5 3116sed 's/^/| /' conftest.$ac_ext >&5 3117 3118 CFLAGS="" 3119 cat >conftest.$ac_ext <<_ACEOF 3120/* confdefs.h. */ 3121_ACEOF 3122cat confdefs.h >>conftest.$ac_ext 3123cat >>conftest.$ac_ext <<_ACEOF 3124/* end confdefs.h. */ 3125 3126int 3127main () 3128{ 3129 3130 ; 3131 return 0; 3132} 3133_ACEOF 3134rm -f conftest.$ac_objext 3135if { (ac_try="$ac_compile" 3136case "(($ac_try" in 3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3138 *) ac_try_echo=$ac_try;; 3139esac 3140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3141 (eval "$ac_compile") 2>conftest.er1 3142 ac_status=$? 3143 grep -v '^ *+' conftest.er1 >conftest.err 3144 rm -f conftest.er1 3145 cat conftest.err >&5 3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3147 (exit $ac_status); } && { 3148 test -z "$ac_c_werror_flag" || 3149 test ! -s conftest.err 3150 } && test -s conftest.$ac_objext; then 3151 : 3152else 3153 echo "$as_me: failed program was:" >&5 3154sed 's/^/| /' conftest.$ac_ext >&5 3155 3156 ac_c_werror_flag=$ac_save_c_werror_flag 3157 CFLAGS="-g" 3158 cat >conftest.$ac_ext <<_ACEOF 3159/* confdefs.h. */ 3160_ACEOF 3161cat confdefs.h >>conftest.$ac_ext 3162cat >>conftest.$ac_ext <<_ACEOF 3163/* end confdefs.h. */ 3164 3165int 3166main () 3167{ 3168 3169 ; 3170 return 0; 3171} 3172_ACEOF 3173rm -f conftest.$ac_objext 3174if { (ac_try="$ac_compile" 3175case "(($ac_try" in 3176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3177 *) ac_try_echo=$ac_try;; 3178esac 3179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3180 (eval "$ac_compile") 2>conftest.er1 3181 ac_status=$? 3182 grep -v '^ *+' conftest.er1 >conftest.err 3183 rm -f conftest.er1 3184 cat conftest.err >&5 3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3186 (exit $ac_status); } && { 3187 test -z "$ac_c_werror_flag" || 3188 test ! -s conftest.err 3189 } && test -s conftest.$ac_objext; then 3190 ac_cv_prog_cc_g=yes 3191else 3192 echo "$as_me: failed program was:" >&5 3193sed 's/^/| /' conftest.$ac_ext >&5 3194 3195 3196fi 3197 3198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3199fi 3200 3201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3202fi 3203 3204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3205 ac_c_werror_flag=$ac_save_c_werror_flag 3206fi 3207{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3208echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3209if test "$ac_test_CFLAGS" = set; then 3210 CFLAGS=$ac_save_CFLAGS 3211elif test $ac_cv_prog_cc_g = yes; then 3212 if test "$GCC" = yes; then 3213 CFLAGS="-g -O2" 3214 else 3215 CFLAGS="-g" 3216 fi 3217else 3218 if test "$GCC" = yes; then 3219 CFLAGS="-O2" 3220 else 3221 CFLAGS= 3222 fi 3223fi 3224{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3225echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3226if test "${ac_cv_prog_cc_c89+set}" = set; then 3227 echo $ECHO_N "(cached) $ECHO_C" >&6 3228else 3229 ac_cv_prog_cc_c89=no 3230ac_save_CC=$CC 3231cat >conftest.$ac_ext <<_ACEOF 3232/* confdefs.h. */ 3233_ACEOF 3234cat confdefs.h >>conftest.$ac_ext 3235cat >>conftest.$ac_ext <<_ACEOF 3236/* end confdefs.h. */ 3237#include <stdarg.h> 3238#include <stdio.h> 3239#include <sys/types.h> 3240#include <sys/stat.h> 3241/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3242struct buf { int x; }; 3243FILE * (*rcsopen) (struct buf *, struct stat *, int); 3244static char *e (p, i) 3245 char **p; 3246 int i; 3247{ 3248 return p[i]; 3249} 3250static char *f (char * (*g) (char **, int), char **p, ...) 3251{ 3252 char *s; 3253 va_list v; 3254 va_start (v,p); 3255 s = g (p, va_arg (v,int)); 3256 va_end (v); 3257 return s; 3258} 3259 3260/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3261 function prototypes and stuff, but not '\xHH' hex character constants. 3262 These don't provoke an error unfortunately, instead are silently treated 3263 as 'x'. The following induces an error, until -std is added to get 3264 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3265 array size at least. It's necessary to write '\x00'==0 to get something 3266 that's true only with -std. */ 3267int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3268 3269/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3270 inside strings and character constants. */ 3271#define FOO(x) 'x' 3272int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3273 3274int test (int i, double x); 3275struct s1 {int (*f) (int a);}; 3276struct s2 {int (*f) (double a);}; 3277int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3278int argc; 3279char **argv; 3280int 3281main () 3282{ 3283return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3284 ; 3285 return 0; 3286} 3287_ACEOF 3288for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3289 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3290do 3291 CC="$ac_save_CC $ac_arg" 3292 rm -f conftest.$ac_objext 3293if { (ac_try="$ac_compile" 3294case "(($ac_try" in 3295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3296 *) ac_try_echo=$ac_try;; 3297esac 3298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3299 (eval "$ac_compile") 2>conftest.er1 3300 ac_status=$? 3301 grep -v '^ *+' conftest.er1 >conftest.err 3302 rm -f conftest.er1 3303 cat conftest.err >&5 3304 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3305 (exit $ac_status); } && { 3306 test -z "$ac_c_werror_flag" || 3307 test ! -s conftest.err 3308 } && test -s conftest.$ac_objext; then 3309 ac_cv_prog_cc_c89=$ac_arg 3310else 3311 echo "$as_me: failed program was:" >&5 3312sed 's/^/| /' conftest.$ac_ext >&5 3313 3314 3315fi 3316 3317rm -f core conftest.err conftest.$ac_objext 3318 test "x$ac_cv_prog_cc_c89" != "xno" && break 3319done 3320rm -f conftest.$ac_ext 3321CC=$ac_save_CC 3322 3323fi 3324# AC_CACHE_VAL 3325case "x$ac_cv_prog_cc_c89" in 3326 x) 3327 { echo "$as_me:$LINENO: result: none needed" >&5 3328echo "${ECHO_T}none needed" >&6; } ;; 3329 xno) 3330 { echo "$as_me:$LINENO: result: unsupported" >&5 3331echo "${ECHO_T}unsupported" >&6; } ;; 3332 *) 3333 CC="$CC $ac_cv_prog_cc_c89" 3334 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3335echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3336esac 3337 3338 3339ac_ext=c 3340ac_cpp='$CPP $CPPFLAGS' 3341ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3342ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3343ac_compiler_gnu=$ac_cv_c_compiler_gnu 3344DEPDIR="${am__leading_dot}deps" 3345 3346ac_config_commands="$ac_config_commands depfiles" 3347 3348 3349am_make=${MAKE-make} 3350cat > confinc << 'END' 3351am__doit: 3352 @echo done 3353.PHONY: am__doit 3354END 3355# If we don't find an include directive, just comment out the code. 3356{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3357echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 3358am__include="#" 3359am__quote= 3360_am_result=none 3361# First try GNU make style include. 3362echo "include confinc" > confmf 3363# We grep out `Entering directory' and `Leaving directory' 3364# messages which can occur if `w' ends up in MAKEFLAGS. 3365# In particular we don't look at `^make:' because GNU make might 3366# be invoked under some other name (usually "gmake"), in which 3367# case it prints its new name instead of `make'. 3368if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3369 am__include=include 3370 am__quote= 3371 _am_result=GNU 3372fi 3373# Now try BSD make style include. 3374if test "$am__include" = "#"; then 3375 echo '.include "confinc"' > confmf 3376 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3377 am__include=.include 3378 am__quote="\"" 3379 _am_result=BSD 3380 fi 3381fi 3382 3383 3384{ echo "$as_me:$LINENO: result: $_am_result" >&5 3385echo "${ECHO_T}$_am_result" >&6; } 3386rm -f confinc confmf 3387 3388# Check whether --enable-dependency-tracking was given. 3389if test "${enable_dependency_tracking+set}" = set; then 3390 enableval=$enable_dependency_tracking; 3391fi 3392 3393if test "x$enable_dependency_tracking" != xno; then 3394 am_depcomp="$ac_aux_dir/depcomp" 3395 AMDEPBACKSLASH='\' 3396fi 3397 if test "x$enable_dependency_tracking" != xno; then 3398 AMDEP_TRUE= 3399 AMDEP_FALSE='#' 3400else 3401 AMDEP_TRUE='#' 3402 AMDEP_FALSE= 3403fi 3404 3405 3406 3407depcc="$CC" am_compiler_list= 3408 3409{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3410echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3411if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3412 echo $ECHO_N "(cached) $ECHO_C" >&6 3413else 3414 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3415 # We make a subdir and do the tests there. Otherwise we can end up 3416 # making bogus files that we don't know about and never remove. For 3417 # instance it was reported that on HP-UX the gcc test will end up 3418 # making a dummy file named `D' -- because `-MD' means `put the output 3419 # in D'. 3420 mkdir conftest.dir 3421 # Copy depcomp to subdir because otherwise we won't find it if we're 3422 # using a relative directory. 3423 cp "$am_depcomp" conftest.dir 3424 cd conftest.dir 3425 # We will build objects and dependencies in a subdirectory because 3426 # it helps to detect inapplicable dependency modes. For instance 3427 # both Tru64's cc and ICC support -MD to output dependencies as a 3428 # side effect of compilation, but ICC will put the dependencies in 3429 # the current directory while Tru64 will put them in the object 3430 # directory. 3431 mkdir sub 3432 3433 am_cv_CC_dependencies_compiler_type=none 3434 if test "$am_compiler_list" = ""; then 3435 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3436 fi 3437 for depmode in $am_compiler_list; do 3438 # Setup a source with many dependencies, because some compilers 3439 # like to wrap large dependency lists on column 80 (with \), and 3440 # we should not choose a depcomp mode which is confused by this. 3441 # 3442 # We need to recreate these files for each test, as the compiler may 3443 # overwrite some of them when testing with obscure command lines. 3444 # This happens at least with the AIX C compiler. 3445 : > sub/conftest.c 3446 for i in 1 2 3 4 5 6; do 3447 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3448 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3449 # Solaris 8's {/usr,}/bin/sh. 3450 touch sub/conftst$i.h 3451 done 3452 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3453 3454 case $depmode in 3455 nosideeffect) 3456 # after this tag, mechanisms are not by side-effect, so they'll 3457 # only be used when explicitly requested 3458 if test "x$enable_dependency_tracking" = xyes; then 3459 continue 3460 else 3461 break 3462 fi 3463 ;; 3464 none) break ;; 3465 esac 3466 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3467 # mode. It turns out that the SunPro C++ compiler does not properly 3468 # handle `-M -o', and we need to detect this. 3469 if depmode=$depmode \ 3470 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3471 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3472 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3473 >/dev/null 2>conftest.err && 3474 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3475 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3476 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3477 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3478 # icc doesn't choke on unknown options, it will just issue warnings 3479 # or remarks (even with -Werror). So we grep stderr for any message 3480 # that says an option was ignored or not supported. 3481 # When given -MP, icc 7.0 and 7.1 complain thusly: 3482 # icc: Command line warning: ignoring option '-M'; no argument required 3483 # The diagnosis changed in icc 8.0: 3484 # icc: Command line remark: option '-MP' not supported 3485 if (grep 'ignoring option' conftest.err || 3486 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3487 am_cv_CC_dependencies_compiler_type=$depmode 3488 break 3489 fi 3490 fi 3491 done 3492 3493 cd .. 3494 rm -rf conftest.dir 3495else 3496 am_cv_CC_dependencies_compiler_type=none 3497fi 3498 3499fi 3500{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3501echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 3502CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3503 3504 if 3505 test "x$enable_dependency_tracking" != xno \ 3506 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3507 am__fastdepCC_TRUE= 3508 am__fastdepCC_FALSE='#' 3509else 3510 am__fastdepCC_TRUE='#' 3511 am__fastdepCC_FALSE= 3512fi 3513 3514 3515# Check whether --enable-shared was given. 3516if test "${enable_shared+set}" = set; then 3517 enableval=$enable_shared; p=${PACKAGE-default} 3518 case $enableval in 3519 yes) enable_shared=yes ;; 3520 no) enable_shared=no ;; 3521 *) 3522 enable_shared=no 3523 # Look at the argument we got. We use all the common list separators. 3524 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3525 for pkg in $enableval; do 3526 IFS="$lt_save_ifs" 3527 if test "X$pkg" = "X$p"; then 3528 enable_shared=yes 3529 fi 3530 done 3531 IFS="$lt_save_ifs" 3532 ;; 3533 esac 3534else 3535 enable_shared=yes 3536fi 3537 3538 3539# Check whether --enable-static was given. 3540if test "${enable_static+set}" = set; then 3541 enableval=$enable_static; p=${PACKAGE-default} 3542 case $enableval in 3543 yes) enable_static=yes ;; 3544 no) enable_static=no ;; 3545 *) 3546 enable_static=no 3547 # Look at the argument we got. We use all the common list separators. 3548 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3549 for pkg in $enableval; do 3550 IFS="$lt_save_ifs" 3551 if test "X$pkg" = "X$p"; then 3552 enable_static=yes 3553 fi 3554 done 3555 IFS="$lt_save_ifs" 3556 ;; 3557 esac 3558else 3559 enable_static=yes 3560fi 3561 3562 3563# Check whether --enable-fast-install was given. 3564if test "${enable_fast_install+set}" = set; then 3565 enableval=$enable_fast_install; p=${PACKAGE-default} 3566 case $enableval in 3567 yes) enable_fast_install=yes ;; 3568 no) enable_fast_install=no ;; 3569 *) 3570 enable_fast_install=no 3571 # Look at the argument we got. We use all the common list separators. 3572 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3573 for pkg in $enableval; do 3574 IFS="$lt_save_ifs" 3575 if test "X$pkg" = "X$p"; then 3576 enable_fast_install=yes 3577 fi 3578 done 3579 IFS="$lt_save_ifs" 3580 ;; 3581 esac 3582else 3583 enable_fast_install=yes 3584fi 3585 3586 3587# Make sure we can run config.sub. 3588$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3589 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 3590echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 3591 { (exit 1); exit 1; }; } 3592 3593{ echo "$as_me:$LINENO: checking build system type" >&5 3594echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 3595if test "${ac_cv_build+set}" = set; then 3596 echo $ECHO_N "(cached) $ECHO_C" >&6 3597else 3598 ac_build_alias=$build_alias 3599test "x$ac_build_alias" = x && 3600 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3601test "x$ac_build_alias" = x && 3602 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3603echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3604 { (exit 1); exit 1; }; } 3605ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3606 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 3607echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 3608 { (exit 1); exit 1; }; } 3609 3610fi 3611{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3612echo "${ECHO_T}$ac_cv_build" >&6; } 3613case $ac_cv_build in 3614*-*-*) ;; 3615*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 3616echo "$as_me: error: invalid value of canonical build" >&2;} 3617 { (exit 1); exit 1; }; };; 3618esac 3619build=$ac_cv_build 3620ac_save_IFS=$IFS; IFS='-' 3621set x $ac_cv_build 3622shift 3623build_cpu=$1 3624build_vendor=$2 3625shift; shift 3626# Remember, the first character of IFS is used to create $*, 3627# except with old shells: 3628build_os=$* 3629IFS=$ac_save_IFS 3630case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3631 3632 3633{ echo "$as_me:$LINENO: checking host system type" >&5 3634echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 3635if test "${ac_cv_host+set}" = set; then 3636 echo $ECHO_N "(cached) $ECHO_C" >&6 3637else 3638 if test "x$host_alias" = x; then 3639 ac_cv_host=$ac_cv_build 3640else 3641 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3642 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 3643echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 3644 { (exit 1); exit 1; }; } 3645fi 3646 3647fi 3648{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3649echo "${ECHO_T}$ac_cv_host" >&6; } 3650case $ac_cv_host in 3651*-*-*) ;; 3652*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 3653echo "$as_me: error: invalid value of canonical host" >&2;} 3654 { (exit 1); exit 1; }; };; 3655esac 3656host=$ac_cv_host 3657ac_save_IFS=$IFS; IFS='-' 3658set x $ac_cv_host 3659shift 3660host_cpu=$1 3661host_vendor=$2 3662shift; shift 3663# Remember, the first character of IFS is used to create $*, 3664# except with old shells: 3665host_os=$* 3666IFS=$ac_save_IFS 3667case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3668 3669 3670{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3671echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } 3672if test "${lt_cv_path_SED+set}" = set; then 3673 echo $ECHO_N "(cached) $ECHO_C" >&6 3674else 3675 # Loop through the user's path and test for sed and gsed. 3676# Then use that list of sed's as ones to test for truncation. 3677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3678for as_dir in $PATH 3679do 3680 IFS=$as_save_IFS 3681 test -z "$as_dir" && as_dir=. 3682 for lt_ac_prog in sed gsed; do 3683 for ac_exec_ext in '' $ac_executable_extensions; do 3684 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 3685 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3686 fi 3687 done 3688 done 3689done 3690lt_ac_max=0 3691lt_ac_count=0 3692# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3693# along with /bin/sed that truncates output. 3694for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3695 test ! -f $lt_ac_sed && continue 3696 cat /dev/null > conftest.in 3697 lt_ac_count=0 3698 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3699 # Check for GNU sed and select it if it is found. 3700 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3701 lt_cv_path_SED=$lt_ac_sed 3702 break 3703 fi 3704 while true; do 3705 cat conftest.in conftest.in >conftest.tmp 3706 mv conftest.tmp conftest.in 3707 cp conftest.in conftest.nl 3708 echo >>conftest.nl 3709 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3710 cmp -s conftest.out conftest.nl || break 3711 # 10000 chars as input seems more than enough 3712 test $lt_ac_count -gt 10 && break 3713 lt_ac_count=`expr $lt_ac_count + 1` 3714 if test $lt_ac_count -gt $lt_ac_max; then 3715 lt_ac_max=$lt_ac_count 3716 lt_cv_path_SED=$lt_ac_sed 3717 fi 3718 done 3719done 3720 3721fi 3722 3723SED=$lt_cv_path_SED 3724{ echo "$as_me:$LINENO: result: $SED" >&5 3725echo "${ECHO_T}$SED" >&6; } 3726 3727{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3728echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3729if test "${ac_cv_path_GREP+set}" = set; then 3730 echo $ECHO_N "(cached) $ECHO_C" >&6 3731else 3732 # Extract the first word of "grep ggrep" to use in msg output 3733if test -z "$GREP"; then 3734set dummy grep ggrep; ac_prog_name=$2 3735if test "${ac_cv_path_GREP+set}" = set; then 3736 echo $ECHO_N "(cached) $ECHO_C" >&6 3737else 3738 ac_path_GREP_found=false 3739# Loop through the user's path and test for each of PROGNAME-LIST 3740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3741for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3742do 3743 IFS=$as_save_IFS 3744 test -z "$as_dir" && as_dir=. 3745 for ac_prog in grep ggrep; do 3746 for ac_exec_ext in '' $ac_executable_extensions; do 3747 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3748 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3749 # Check for GNU ac_path_GREP and select it if it is found. 3750 # Check for GNU $ac_path_GREP 3751case `"$ac_path_GREP" --version 2>&1` in 3752*GNU*) 3753 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3754*) 3755 ac_count=0 3756 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3757 while : 3758 do 3759 cat "conftest.in" "conftest.in" >"conftest.tmp" 3760 mv "conftest.tmp" "conftest.in" 3761 cp "conftest.in" "conftest.nl" 3762 echo 'GREP' >> "conftest.nl" 3763 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3764 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3765 ac_count=`expr $ac_count + 1` 3766 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3767 # Best one so far, save it but keep looking for a better one 3768 ac_cv_path_GREP="$ac_path_GREP" 3769 ac_path_GREP_max=$ac_count 3770 fi 3771 # 10*(2^10) chars as input seems more than enough 3772 test $ac_count -gt 10 && break 3773 done 3774 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3775esac 3776 3777 3778 $ac_path_GREP_found && break 3 3779 done 3780done 3781 3782done 3783IFS=$as_save_IFS 3784 3785 3786fi 3787 3788GREP="$ac_cv_path_GREP" 3789if test -z "$GREP"; then 3790 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3791echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3792 { (exit 1); exit 1; }; } 3793fi 3794 3795else 3796 ac_cv_path_GREP=$GREP 3797fi 3798 3799 3800fi 3801{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3802echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3803 GREP="$ac_cv_path_GREP" 3804 3805 3806{ echo "$as_me:$LINENO: checking for egrep" >&5 3807echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3808if test "${ac_cv_path_EGREP+set}" = set; then 3809 echo $ECHO_N "(cached) $ECHO_C" >&6 3810else 3811 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3812 then ac_cv_path_EGREP="$GREP -E" 3813 else 3814 # Extract the first word of "egrep" to use in msg output 3815if test -z "$EGREP"; then 3816set dummy egrep; ac_prog_name=$2 3817if test "${ac_cv_path_EGREP+set}" = set; then 3818 echo $ECHO_N "(cached) $ECHO_C" >&6 3819else 3820 ac_path_EGREP_found=false 3821# Loop through the user's path and test for each of PROGNAME-LIST 3822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3823for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3824do 3825 IFS=$as_save_IFS 3826 test -z "$as_dir" && as_dir=. 3827 for ac_prog in egrep; do 3828 for ac_exec_ext in '' $ac_executable_extensions; do 3829 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3830 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3831 # Check for GNU ac_path_EGREP and select it if it is found. 3832 # Check for GNU $ac_path_EGREP 3833case `"$ac_path_EGREP" --version 2>&1` in 3834*GNU*) 3835 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3836*) 3837 ac_count=0 3838 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3839 while : 3840 do 3841 cat "conftest.in" "conftest.in" >"conftest.tmp" 3842 mv "conftest.tmp" "conftest.in" 3843 cp "conftest.in" "conftest.nl" 3844 echo 'EGREP' >> "conftest.nl" 3845 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3846 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3847 ac_count=`expr $ac_count + 1` 3848 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3849 # Best one so far, save it but keep looking for a better one 3850 ac_cv_path_EGREP="$ac_path_EGREP" 3851 ac_path_EGREP_max=$ac_count 3852 fi 3853 # 10*(2^10) chars as input seems more than enough 3854 test $ac_count -gt 10 && break 3855 done 3856 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3857esac 3858 3859 3860 $ac_path_EGREP_found && break 3 3861 done 3862done 3863 3864done 3865IFS=$as_save_IFS 3866 3867 3868fi 3869 3870EGREP="$ac_cv_path_EGREP" 3871if test -z "$EGREP"; then 3872 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3873echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3874 { (exit 1); exit 1; }; } 3875fi 3876 3877else 3878 ac_cv_path_EGREP=$EGREP 3879fi 3880 3881 3882 fi 3883fi 3884{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3885echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3886 EGREP="$ac_cv_path_EGREP" 3887 3888 3889 3890# Check whether --with-gnu-ld was given. 3891if test "${with_gnu_ld+set}" = set; then 3892 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 3893else 3894 with_gnu_ld=no 3895fi 3896 3897ac_prog=ld 3898if test "$GCC" = yes; then 3899 # Check if gcc -print-prog-name=ld gives a path. 3900 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3901echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 3902 case $host in 3903 *-*-mingw*) 3904 # gcc leaves a trailing carriage return which upsets mingw 3905 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3906 *) 3907 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3908 esac 3909 case $ac_prog in 3910 # Accept absolute paths. 3911 [\\/]* | ?:[\\/]*) 3912 re_direlt='/[^/][^/]*/\.\./' 3913 # Canonicalize the pathname of ld 3914 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 3915 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3916 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 3917 done 3918 test -z "$LD" && LD="$ac_prog" 3919 ;; 3920 "") 3921 # If it fails, then pretend we aren't using GCC. 3922 ac_prog=ld 3923 ;; 3924 *) 3925 # If it is relative, then search for the first ld in PATH. 3926 with_gnu_ld=unknown 3927 ;; 3928 esac 3929elif test "$with_gnu_ld" = yes; then 3930 { echo "$as_me:$LINENO: checking for GNU ld" >&5 3931echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 3932else 3933 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 3934echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 3935fi 3936if test "${lt_cv_path_LD+set}" = set; then 3937 echo $ECHO_N "(cached) $ECHO_C" >&6 3938else 3939 if test -z "$LD"; then 3940 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3941 for ac_dir in $PATH; do 3942 IFS="$lt_save_ifs" 3943 test -z "$ac_dir" && ac_dir=. 3944 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3945 lt_cv_path_LD="$ac_dir/$ac_prog" 3946 # Check to see if the program is GNU ld. I'd rather use --version, 3947 # but apparently some variants of GNU ld only accept -v. 3948 # Break only if it was the GNU/non-GNU ld that we prefer. 3949 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3950 *GNU* | *'with BFD'*) 3951 test "$with_gnu_ld" != no && break 3952 ;; 3953 *) 3954 test "$with_gnu_ld" != yes && break 3955 ;; 3956 esac 3957 fi 3958 done 3959 IFS="$lt_save_ifs" 3960else 3961 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3962fi 3963fi 3964 3965LD="$lt_cv_path_LD" 3966if test -n "$LD"; then 3967 { echo "$as_me:$LINENO: result: $LD" >&5 3968echo "${ECHO_T}$LD" >&6; } 3969else 3970 { echo "$as_me:$LINENO: result: no" >&5 3971echo "${ECHO_T}no" >&6; } 3972fi 3973test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 3974echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 3975 { (exit 1); exit 1; }; } 3976{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 3977echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 3978if test "${lt_cv_prog_gnu_ld+set}" = set; then 3979 echo $ECHO_N "(cached) $ECHO_C" >&6 3980else 3981 # I'd rather use --version here, but apparently some GNU lds only accept -v. 3982case `$LD -v 2>&1 </dev/null` in 3983*GNU* | *'with BFD'*) 3984 lt_cv_prog_gnu_ld=yes 3985 ;; 3986*) 3987 lt_cv_prog_gnu_ld=no 3988 ;; 3989esac 3990fi 3991{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 3992echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 3993with_gnu_ld=$lt_cv_prog_gnu_ld 3994 3995 3996{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 3997echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } 3998if test "${lt_cv_ld_reload_flag+set}" = set; then 3999 echo $ECHO_N "(cached) $ECHO_C" >&6 4000else 4001 lt_cv_ld_reload_flag='-r' 4002fi 4003{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4004echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } 4005reload_flag=$lt_cv_ld_reload_flag 4006case $reload_flag in 4007"" | " "*) ;; 4008*) reload_flag=" $reload_flag" ;; 4009esac 4010reload_cmds='$LD$reload_flag -o $output$reload_objs' 4011case $host_os in 4012 darwin*) 4013 if test "$GCC" = yes; then 4014 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4015 else 4016 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4017 fi 4018 ;; 4019esac 4020 4021{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4022echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 4023if test "${lt_cv_path_NM+set}" = set; then 4024 echo $ECHO_N "(cached) $ECHO_C" >&6 4025else 4026 if test -n "$NM"; then 4027 # Let the user override the test. 4028 lt_cv_path_NM="$NM" 4029else 4030 lt_nm_to_check="${ac_tool_prefix}nm" 4031 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4032 lt_nm_to_check="$lt_nm_to_check nm" 4033 fi 4034 for lt_tmp_nm in $lt_nm_to_check; do 4035 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4036 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4037 IFS="$lt_save_ifs" 4038 test -z "$ac_dir" && ac_dir=. 4039 tmp_nm="$ac_dir/$lt_tmp_nm" 4040 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4041 # Check to see if the nm accepts a BSD-compat flag. 4042 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4043 # nm: unknown option "B" ignored 4044 # Tru64's nm complains that /dev/null is an invalid object file 4045 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4046 */dev/null* | *'Invalid file or object type'*) 4047 lt_cv_path_NM="$tmp_nm -B" 4048 break 4049 ;; 4050 *) 4051 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4052 */dev/null*) 4053 lt_cv_path_NM="$tmp_nm -p" 4054 break 4055 ;; 4056 *) 4057 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4058 continue # so that we can try to find one that supports BSD flags 4059 ;; 4060 esac 4061 ;; 4062 esac 4063 fi 4064 done 4065 IFS="$lt_save_ifs" 4066 done 4067 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4068fi 4069fi 4070{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4071echo "${ECHO_T}$lt_cv_path_NM" >&6; } 4072NM="$lt_cv_path_NM" 4073 4074{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 4075echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 4076LN_S=$as_ln_s 4077if test "$LN_S" = "ln -s"; then 4078 { echo "$as_me:$LINENO: result: yes" >&5 4079echo "${ECHO_T}yes" >&6; } 4080else 4081 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4082echo "${ECHO_T}no, using $LN_S" >&6; } 4083fi 4084 4085{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 4086echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } 4087if test "${lt_cv_deplibs_check_method+set}" = set; then 4088 echo $ECHO_N "(cached) $ECHO_C" >&6 4089else 4090 lt_cv_file_magic_cmd='$MAGIC_CMD' 4091lt_cv_file_magic_test_file= 4092lt_cv_deplibs_check_method='unknown' 4093# Need to set the preceding variable on all platforms that support 4094# interlibrary dependencies. 4095# 'none' -- dependencies not supported. 4096# `unknown' -- same as none, but documents that we really don't know. 4097# 'pass_all' -- all dependencies passed with no checks. 4098# 'test_compile' -- check by making test program. 4099# 'file_magic [[regex]]' -- check by looking for files in library path 4100# which responds to the $file_magic_cmd with a given extended regex. 4101# If you have `file' or equivalent on your system and you're not sure 4102# whether `pass_all' will *always* work, you probably want this one. 4103 4104case $host_os in 4105aix4* | aix5*) 4106 lt_cv_deplibs_check_method=pass_all 4107 ;; 4108 4109beos*) 4110 lt_cv_deplibs_check_method=pass_all 4111 ;; 4112 4113bsdi[45]*) 4114 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4115 lt_cv_file_magic_cmd='/usr/bin/file -L' 4116 lt_cv_file_magic_test_file=/shlib/libc.so 4117 ;; 4118 4119cygwin*) 4120 # func_win32_libid is a shell function defined in ltmain.sh 4121 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4122 lt_cv_file_magic_cmd='func_win32_libid' 4123 ;; 4124 4125mingw* | pw32*) 4126 # Base MSYS/MinGW do not provide the 'file' command needed by 4127 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 4128 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4129 lt_cv_file_magic_cmd='$OBJDUMP -f' 4130 ;; 4131 4132darwin* | rhapsody*) 4133 lt_cv_deplibs_check_method=pass_all 4134 ;; 4135 4136freebsd* | dragonfly*) 4137 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4138 case $host_cpu in 4139 i*86 ) 4140 # Not sure whether the presence of OpenBSD here was a mistake. 4141 # Let's accept both of them until this is cleared up. 4142 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4143 lt_cv_file_magic_cmd=/usr/bin/file 4144 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4145 ;; 4146 esac 4147 else 4148 lt_cv_deplibs_check_method=pass_all 4149 fi 4150 ;; 4151 4152gnu*) 4153 lt_cv_deplibs_check_method=pass_all 4154 ;; 4155 4156hpux10.20* | hpux11*) 4157 lt_cv_file_magic_cmd=/usr/bin/file 4158 case $host_cpu in 4159 ia64*) 4160 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4161 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4162 ;; 4163 hppa*64*) 4164 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]' 4165 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4166 ;; 4167 *) 4168 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4169 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4170 ;; 4171 esac 4172 ;; 4173 4174interix3*) 4175 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4176 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4177 ;; 4178 4179irix5* | irix6* | nonstopux*) 4180 case $LD in 4181 *-32|*"-32 ") libmagic=32-bit;; 4182 *-n32|*"-n32 ") libmagic=N32;; 4183 *-64|*"-64 ") libmagic=64-bit;; 4184 *) libmagic=never-match;; 4185 esac 4186 lt_cv_deplibs_check_method=pass_all 4187 ;; 4188 4189# This must be Linux ELF. 4190linux* | k*bsd*-gnu) 4191 lt_cv_deplibs_check_method=pass_all 4192 ;; 4193 4194netbsd* | netbsdelf*-gnu) 4195 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4196 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4197 else 4198 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4199 fi 4200 ;; 4201 4202newos6*) 4203 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4204 lt_cv_file_magic_cmd=/usr/bin/file 4205 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4206 ;; 4207 4208nto-qnx*) 4209 lt_cv_deplibs_check_method=unknown 4210 ;; 4211 4212openbsd*) 4213 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4214 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4215 else 4216 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4217 fi 4218 ;; 4219 4220osf3* | osf4* | osf5*) 4221 lt_cv_deplibs_check_method=pass_all 4222 ;; 4223 4224solaris*) 4225 lt_cv_deplibs_check_method=pass_all 4226 ;; 4227 4228sysv4 | sysv4.3*) 4229 case $host_vendor in 4230 motorola) 4231 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]' 4232 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4233 ;; 4234 ncr) 4235 lt_cv_deplibs_check_method=pass_all 4236 ;; 4237 sequent) 4238 lt_cv_file_magic_cmd='/bin/file' 4239 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4240 ;; 4241 sni) 4242 lt_cv_file_magic_cmd='/bin/file' 4243 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4244 lt_cv_file_magic_test_file=/lib/libc.so 4245 ;; 4246 siemens) 4247 lt_cv_deplibs_check_method=pass_all 4248 ;; 4249 pc) 4250 lt_cv_deplibs_check_method=pass_all 4251 ;; 4252 esac 4253 ;; 4254 4255sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4256 lt_cv_deplibs_check_method=pass_all 4257 ;; 4258esac 4259 4260fi 4261{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4262echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 4263file_magic_cmd=$lt_cv_file_magic_cmd 4264deplibs_check_method=$lt_cv_deplibs_check_method 4265test -z "$deplibs_check_method" && deplibs_check_method=unknown 4266 4267 4268 4269 4270# If no C compiler was specified, use CC. 4271LTCC=${LTCC-"$CC"} 4272 4273# If no C compiler flags were specified, use CFLAGS. 4274LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4275 4276# Allow CC to be a program name with arguments. 4277compiler=$CC 4278 4279 4280# Check whether --enable-libtool-lock was given. 4281if test "${enable_libtool_lock+set}" = set; then 4282 enableval=$enable_libtool_lock; 4283fi 4284 4285test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4286 4287# Some flags need to be propagated to the compiler or linker for good 4288# libtool support. 4289case $host in 4290ia64-*-hpux*) 4291 # Find out which ABI we are using. 4292 echo 'int i;' > conftest.$ac_ext 4293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4294 (eval $ac_compile) 2>&5 4295 ac_status=$? 4296 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4297 (exit $ac_status); }; then 4298 case `/usr/bin/file conftest.$ac_objext` in 4299 *ELF-32*) 4300 HPUX_IA64_MODE="32" 4301 ;; 4302 *ELF-64*) 4303 HPUX_IA64_MODE="64" 4304 ;; 4305 esac 4306 fi 4307 rm -rf conftest* 4308 ;; 4309*-*-irix6*) 4310 # Find out which ABI we are using. 4311 echo '#line __oline__ "configure"' > conftest.$ac_ext 4312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4313 (eval $ac_compile) 2>&5 4314 ac_status=$? 4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4316 (exit $ac_status); }; then 4317 if test "$lt_cv_prog_gnu_ld" = yes; then 4318 case `/usr/bin/file conftest.$ac_objext` in 4319 *32-bit*) 4320 LD="${LD-ld} -melf32bsmip" 4321 ;; 4322 *N32*) 4323 LD="${LD-ld} -melf32bmipn32" 4324 ;; 4325 *64-bit*) 4326 LD="${LD-ld} -melf64bmip" 4327 ;; 4328 esac 4329 else 4330 case `/usr/bin/file conftest.$ac_objext` in 4331 *32-bit*) 4332 LD="${LD-ld} -32" 4333 ;; 4334 *N32*) 4335 LD="${LD-ld} -n32" 4336 ;; 4337 *64-bit*) 4338 LD="${LD-ld} -64" 4339 ;; 4340 esac 4341 fi 4342 fi 4343 rm -rf conftest* 4344 ;; 4345 4346x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 4347 # Find out which ABI we are using. 4348 echo 'int i;' > conftest.$ac_ext 4349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4350 (eval $ac_compile) 2>&5 4351 ac_status=$? 4352 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4353 (exit $ac_status); }; then 4354 case `/usr/bin/file conftest.o` in 4355 *32-bit*) 4356 case $host in 4357 x86_64-*linux*) 4358 LD="${LD-ld} -m elf_i386" 4359 ;; 4360 ppc64-*linux*|powerpc64-*linux*) 4361 LD="${LD-ld} -m elf32ppclinux" 4362 ;; 4363 s390x-*linux*) 4364 LD="${LD-ld} -m elf_s390" 4365 ;; 4366 sparc64-*linux*) 4367 LD="${LD-ld} -m elf32_sparc" 4368 ;; 4369 esac 4370 ;; 4371 *64-bit*) 4372 case $host in 4373 x86_64-*linux*) 4374 LD="${LD-ld} -m elf_x86_64" 4375 ;; 4376 ppc*-*linux*|powerpc*-*linux*) 4377 LD="${LD-ld} -m elf64ppc" 4378 ;; 4379 s390*-*linux*) 4380 LD="${LD-ld} -m elf64_s390" 4381 ;; 4382 sparc*-*linux*) 4383 LD="${LD-ld} -m elf64_sparc" 4384 ;; 4385 esac 4386 ;; 4387 esac 4388 fi 4389 rm -rf conftest* 4390 ;; 4391 4392*-*-sco3.2v5*) 4393 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4394 SAVE_CFLAGS="$CFLAGS" 4395 CFLAGS="$CFLAGS -belf" 4396 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4397echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } 4398if test "${lt_cv_cc_needs_belf+set}" = set; then 4399 echo $ECHO_N "(cached) $ECHO_C" >&6 4400else 4401 ac_ext=c 4402ac_cpp='$CPP $CPPFLAGS' 4403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4405ac_compiler_gnu=$ac_cv_c_compiler_gnu 4406 4407 cat >conftest.$ac_ext <<_ACEOF 4408/* confdefs.h. */ 4409_ACEOF 4410cat confdefs.h >>conftest.$ac_ext 4411cat >>conftest.$ac_ext <<_ACEOF 4412/* end confdefs.h. */ 4413 4414int 4415main () 4416{ 4417 4418 ; 4419 return 0; 4420} 4421_ACEOF 4422rm -f conftest.$ac_objext conftest$ac_exeext 4423if { (ac_try="$ac_link" 4424case "(($ac_try" in 4425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4426 *) ac_try_echo=$ac_try;; 4427esac 4428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4429 (eval "$ac_link") 2>conftest.er1 4430 ac_status=$? 4431 grep -v '^ *+' conftest.er1 >conftest.err 4432 rm -f conftest.er1 4433 cat conftest.err >&5 4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4435 (exit $ac_status); } && { 4436 test -z "$ac_c_werror_flag" || 4437 test ! -s conftest.err 4438 } && test -s conftest$ac_exeext && 4439 $as_test_x conftest$ac_exeext; then 4440 lt_cv_cc_needs_belf=yes 4441else 4442 echo "$as_me: failed program was:" >&5 4443sed 's/^/| /' conftest.$ac_ext >&5 4444 4445 lt_cv_cc_needs_belf=no 4446fi 4447 4448rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4449 conftest$ac_exeext conftest.$ac_ext 4450 ac_ext=c 4451ac_cpp='$CPP $CPPFLAGS' 4452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4454ac_compiler_gnu=$ac_cv_c_compiler_gnu 4455 4456fi 4457{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4458echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } 4459 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4460 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4461 CFLAGS="$SAVE_CFLAGS" 4462 fi 4463 ;; 4464sparc*-*solaris*) 4465 # Find out which ABI we are using. 4466 echo 'int i;' > conftest.$ac_ext 4467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4468 (eval $ac_compile) 2>&5 4469 ac_status=$? 4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4471 (exit $ac_status); }; then 4472 case `/usr/bin/file conftest.o` in 4473 *64-bit*) 4474 case $lt_cv_prog_gnu_ld in 4475 yes*) LD="${LD-ld} -m elf64_sparc" ;; 4476 *) LD="${LD-ld} -64" ;; 4477 esac 4478 ;; 4479 esac 4480 fi 4481 rm -rf conftest* 4482 ;; 4483 4484 4485esac 4486 4487need_locks="$enable_libtool_lock" 4488 4489 4490ac_ext=c 4491ac_cpp='$CPP $CPPFLAGS' 4492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4494ac_compiler_gnu=$ac_cv_c_compiler_gnu 4495{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4496echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 4497# On Suns, sometimes $CPP names a directory. 4498if test -n "$CPP" && test -d "$CPP"; then 4499 CPP= 4500fi 4501if test -z "$CPP"; then 4502 if test "${ac_cv_prog_CPP+set}" = set; then 4503 echo $ECHO_N "(cached) $ECHO_C" >&6 4504else 4505 # Double quotes because CPP needs to be expanded 4506 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4507 do 4508 ac_preproc_ok=false 4509for ac_c_preproc_warn_flag in '' yes 4510do 4511 # Use a header file that comes with gcc, so configuring glibc 4512 # with a fresh cross-compiler works. 4513 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4514 # <limits.h> exists even on freestanding compilers. 4515 # On the NeXT, cc -E runs the code through the compiler's parser, 4516 # not just through cpp. "Syntax error" is here to catch this case. 4517 cat >conftest.$ac_ext <<_ACEOF 4518/* confdefs.h. */ 4519_ACEOF 4520cat confdefs.h >>conftest.$ac_ext 4521cat >>conftest.$ac_ext <<_ACEOF 4522/* end confdefs.h. */ 4523@%:@ifdef __STDC__ 4524@%:@ include <limits.h> 4525@%:@else 4526@%:@ include <assert.h> 4527@%:@endif 4528 Syntax error 4529_ACEOF 4530if { (ac_try="$ac_cpp conftest.$ac_ext" 4531case "(($ac_try" in 4532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4533 *) ac_try_echo=$ac_try;; 4534esac 4535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4536 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4537 ac_status=$? 4538 grep -v '^ *+' conftest.er1 >conftest.err 4539 rm -f conftest.er1 4540 cat conftest.err >&5 4541 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4542 (exit $ac_status); } >/dev/null && { 4543 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4544 test ! -s conftest.err 4545 }; then 4546 : 4547else 4548 echo "$as_me: failed program was:" >&5 4549sed 's/^/| /' conftest.$ac_ext >&5 4550 4551 # Broken: fails on valid input. 4552continue 4553fi 4554 4555rm -f conftest.err conftest.$ac_ext 4556 4557 # OK, works on sane cases. Now check whether nonexistent headers 4558 # can be detected and how. 4559 cat >conftest.$ac_ext <<_ACEOF 4560/* confdefs.h. */ 4561_ACEOF 4562cat confdefs.h >>conftest.$ac_ext 4563cat >>conftest.$ac_ext <<_ACEOF 4564/* end confdefs.h. */ 4565@%:@include <ac_nonexistent.h> 4566_ACEOF 4567if { (ac_try="$ac_cpp conftest.$ac_ext" 4568case "(($ac_try" in 4569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4570 *) ac_try_echo=$ac_try;; 4571esac 4572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4573 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4574 ac_status=$? 4575 grep -v '^ *+' conftest.er1 >conftest.err 4576 rm -f conftest.er1 4577 cat conftest.err >&5 4578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4579 (exit $ac_status); } >/dev/null && { 4580 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4581 test ! -s conftest.err 4582 }; then 4583 # Broken: success on invalid input. 4584continue 4585else 4586 echo "$as_me: failed program was:" >&5 4587sed 's/^/| /' conftest.$ac_ext >&5 4588 4589 # Passes both tests. 4590ac_preproc_ok=: 4591break 4592fi 4593 4594rm -f conftest.err conftest.$ac_ext 4595 4596done 4597# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4598rm -f conftest.err conftest.$ac_ext 4599if $ac_preproc_ok; then 4600 break 4601fi 4602 4603 done 4604 ac_cv_prog_CPP=$CPP 4605 4606fi 4607 CPP=$ac_cv_prog_CPP 4608else 4609 ac_cv_prog_CPP=$CPP 4610fi 4611{ echo "$as_me:$LINENO: result: $CPP" >&5 4612echo "${ECHO_T}$CPP" >&6; } 4613ac_preproc_ok=false 4614for ac_c_preproc_warn_flag in '' yes 4615do 4616 # Use a header file that comes with gcc, so configuring glibc 4617 # with a fresh cross-compiler works. 4618 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4619 # <limits.h> exists even on freestanding compilers. 4620 # On the NeXT, cc -E runs the code through the compiler's parser, 4621 # not just through cpp. "Syntax error" is here to catch this case. 4622 cat >conftest.$ac_ext <<_ACEOF 4623/* confdefs.h. */ 4624_ACEOF 4625cat confdefs.h >>conftest.$ac_ext 4626cat >>conftest.$ac_ext <<_ACEOF 4627/* end confdefs.h. */ 4628@%:@ifdef __STDC__ 4629@%:@ include <limits.h> 4630@%:@else 4631@%:@ include <assert.h> 4632@%:@endif 4633 Syntax error 4634_ACEOF 4635if { (ac_try="$ac_cpp conftest.$ac_ext" 4636case "(($ac_try" in 4637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4638 *) ac_try_echo=$ac_try;; 4639esac 4640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4641 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4642 ac_status=$? 4643 grep -v '^ *+' conftest.er1 >conftest.err 4644 rm -f conftest.er1 4645 cat conftest.err >&5 4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4647 (exit $ac_status); } >/dev/null && { 4648 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4649 test ! -s conftest.err 4650 }; then 4651 : 4652else 4653 echo "$as_me: failed program was:" >&5 4654sed 's/^/| /' conftest.$ac_ext >&5 4655 4656 # Broken: fails on valid input. 4657continue 4658fi 4659 4660rm -f conftest.err conftest.$ac_ext 4661 4662 # OK, works on sane cases. Now check whether nonexistent headers 4663 # can be detected and how. 4664 cat >conftest.$ac_ext <<_ACEOF 4665/* confdefs.h. */ 4666_ACEOF 4667cat confdefs.h >>conftest.$ac_ext 4668cat >>conftest.$ac_ext <<_ACEOF 4669/* end confdefs.h. */ 4670@%:@include <ac_nonexistent.h> 4671_ACEOF 4672if { (ac_try="$ac_cpp conftest.$ac_ext" 4673case "(($ac_try" in 4674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4675 *) ac_try_echo=$ac_try;; 4676esac 4677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4678 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4679 ac_status=$? 4680 grep -v '^ *+' conftest.er1 >conftest.err 4681 rm -f conftest.er1 4682 cat conftest.err >&5 4683 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4684 (exit $ac_status); } >/dev/null && { 4685 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4686 test ! -s conftest.err 4687 }; then 4688 # Broken: success on invalid input. 4689continue 4690else 4691 echo "$as_me: failed program was:" >&5 4692sed 's/^/| /' conftest.$ac_ext >&5 4693 4694 # Passes both tests. 4695ac_preproc_ok=: 4696break 4697fi 4698 4699rm -f conftest.err conftest.$ac_ext 4700 4701done 4702# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4703rm -f conftest.err conftest.$ac_ext 4704if $ac_preproc_ok; then 4705 : 4706else 4707 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4708See \`config.log' for more details." >&5 4709echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4710See \`config.log' for more details." >&2;} 4711 { (exit 1); exit 1; }; } 4712fi 4713 4714ac_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 4720 4721{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4722echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4723if test "${ac_cv_header_stdc+set}" = set; then 4724 echo $ECHO_N "(cached) $ECHO_C" >&6 4725else 4726 cat >conftest.$ac_ext <<_ACEOF 4727/* confdefs.h. */ 4728_ACEOF 4729cat confdefs.h >>conftest.$ac_ext 4730cat >>conftest.$ac_ext <<_ACEOF 4731/* end confdefs.h. */ 4732#include <stdlib.h> 4733#include <stdarg.h> 4734#include <string.h> 4735#include <float.h> 4736 4737int 4738main () 4739{ 4740 4741 ; 4742 return 0; 4743} 4744_ACEOF 4745rm -f conftest.$ac_objext 4746if { (ac_try="$ac_compile" 4747case "(($ac_try" in 4748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4749 *) ac_try_echo=$ac_try;; 4750esac 4751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4752 (eval "$ac_compile") 2>conftest.er1 4753 ac_status=$? 4754 grep -v '^ *+' conftest.er1 >conftest.err 4755 rm -f conftest.er1 4756 cat conftest.err >&5 4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4758 (exit $ac_status); } && { 4759 test -z "$ac_c_werror_flag" || 4760 test ! -s conftest.err 4761 } && test -s conftest.$ac_objext; then 4762 ac_cv_header_stdc=yes 4763else 4764 echo "$as_me: failed program was:" >&5 4765sed 's/^/| /' conftest.$ac_ext >&5 4766 4767 ac_cv_header_stdc=no 4768fi 4769 4770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4771 4772if test $ac_cv_header_stdc = yes; then 4773 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4774 cat >conftest.$ac_ext <<_ACEOF 4775/* confdefs.h. */ 4776_ACEOF 4777cat confdefs.h >>conftest.$ac_ext 4778cat >>conftest.$ac_ext <<_ACEOF 4779/* end confdefs.h. */ 4780#include <string.h> 4781 4782_ACEOF 4783if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4784 $EGREP "memchr" >/dev/null 2>&1; then 4785 : 4786else 4787 ac_cv_header_stdc=no 4788fi 4789rm -f conftest* 4790 4791fi 4792 4793if test $ac_cv_header_stdc = yes; then 4794 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4795 cat >conftest.$ac_ext <<_ACEOF 4796/* confdefs.h. */ 4797_ACEOF 4798cat confdefs.h >>conftest.$ac_ext 4799cat >>conftest.$ac_ext <<_ACEOF 4800/* end confdefs.h. */ 4801#include <stdlib.h> 4802 4803_ACEOF 4804if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4805 $EGREP "free" >/dev/null 2>&1; then 4806 : 4807else 4808 ac_cv_header_stdc=no 4809fi 4810rm -f conftest* 4811 4812fi 4813 4814if test $ac_cv_header_stdc = yes; then 4815 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4816 if test "$cross_compiling" = yes; then 4817 : 4818else 4819 cat >conftest.$ac_ext <<_ACEOF 4820/* confdefs.h. */ 4821_ACEOF 4822cat confdefs.h >>conftest.$ac_ext 4823cat >>conftest.$ac_ext <<_ACEOF 4824/* end confdefs.h. */ 4825#include <ctype.h> 4826#include <stdlib.h> 4827#if ((' ' & 0x0FF) == 0x020) 4828# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4829# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4830#else 4831# define ISLOWER(c) \ 4832 (('a' <= (c) && (c) <= 'i') \ 4833 || ('j' <= (c) && (c) <= 'r') \ 4834 || ('s' <= (c) && (c) <= 'z')) 4835# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4836#endif 4837 4838#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4839int 4840main () 4841{ 4842 int i; 4843 for (i = 0; i < 256; i++) 4844 if (XOR (islower (i), ISLOWER (i)) 4845 || toupper (i) != TOUPPER (i)) 4846 return 2; 4847 return 0; 4848} 4849_ACEOF 4850rm -f conftest$ac_exeext 4851if { (ac_try="$ac_link" 4852case "(($ac_try" in 4853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4854 *) ac_try_echo=$ac_try;; 4855esac 4856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4857 (eval "$ac_link") 2>&5 4858 ac_status=$? 4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4860 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4861 { (case "(($ac_try" in 4862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4863 *) ac_try_echo=$ac_try;; 4864esac 4865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4866 (eval "$ac_try") 2>&5 4867 ac_status=$? 4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4869 (exit $ac_status); }; }; then 4870 : 4871else 4872 echo "$as_me: program exited with status $ac_status" >&5 4873echo "$as_me: failed program was:" >&5 4874sed 's/^/| /' conftest.$ac_ext >&5 4875 4876( exit $ac_status ) 4877ac_cv_header_stdc=no 4878fi 4879rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4880fi 4881 4882 4883fi 4884fi 4885{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4886echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 4887if test $ac_cv_header_stdc = yes; then 4888 4889cat >>confdefs.h <<\_ACEOF 4890@%:@define STDC_HEADERS 1 4891_ACEOF 4892 4893fi 4894 4895# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4906 inttypes.h stdint.h unistd.h 4907do 4908as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4909{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4910echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4911if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4912 echo $ECHO_N "(cached) $ECHO_C" >&6 4913else 4914 cat >conftest.$ac_ext <<_ACEOF 4915/* confdefs.h. */ 4916_ACEOF 4917cat confdefs.h >>conftest.$ac_ext 4918cat >>conftest.$ac_ext <<_ACEOF 4919/* end confdefs.h. */ 4920$ac_includes_default 4921 4922@%:@include <$ac_header> 4923_ACEOF 4924rm -f conftest.$ac_objext 4925if { (ac_try="$ac_compile" 4926case "(($ac_try" in 4927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4928 *) ac_try_echo=$ac_try;; 4929esac 4930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4931 (eval "$ac_compile") 2>conftest.er1 4932 ac_status=$? 4933 grep -v '^ *+' conftest.er1 >conftest.err 4934 rm -f conftest.er1 4935 cat conftest.err >&5 4936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4937 (exit $ac_status); } && { 4938 test -z "$ac_c_werror_flag" || 4939 test ! -s conftest.err 4940 } && test -s conftest.$ac_objext; then 4941 eval "$as_ac_Header=yes" 4942else 4943 echo "$as_me: failed program was:" >&5 4944sed 's/^/| /' conftest.$ac_ext >&5 4945 4946 eval "$as_ac_Header=no" 4947fi 4948 4949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4950fi 4951ac_res=`eval echo '${'$as_ac_Header'}'` 4952 { echo "$as_me:$LINENO: result: $ac_res" >&5 4953echo "${ECHO_T}$ac_res" >&6; } 4954if test `eval echo '${'$as_ac_Header'}'` = yes; then 4955 cat >>confdefs.h <<_ACEOF 4956@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4957_ACEOF 4958 4959fi 4960 4961done 4962 4963 4964 4965for ac_header in dlfcn.h 4966do 4967as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4968if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4969 { echo "$as_me:$LINENO: checking for $ac_header" >&5 4970echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4971if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4972 echo $ECHO_N "(cached) $ECHO_C" >&6 4973fi 4974ac_res=`eval echo '${'$as_ac_Header'}'` 4975 { echo "$as_me:$LINENO: result: $ac_res" >&5 4976echo "${ECHO_T}$ac_res" >&6; } 4977else 4978 # Is the header compilable? 4979{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 4980echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 4981cat >conftest.$ac_ext <<_ACEOF 4982/* confdefs.h. */ 4983_ACEOF 4984cat confdefs.h >>conftest.$ac_ext 4985cat >>conftest.$ac_ext <<_ACEOF 4986/* end confdefs.h. */ 4987$ac_includes_default 4988@%:@include <$ac_header> 4989_ACEOF 4990rm -f conftest.$ac_objext 4991if { (ac_try="$ac_compile" 4992case "(($ac_try" in 4993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4994 *) ac_try_echo=$ac_try;; 4995esac 4996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4997 (eval "$ac_compile") 2>conftest.er1 4998 ac_status=$? 4999 grep -v '^ *+' conftest.er1 >conftest.err 5000 rm -f conftest.er1 5001 cat conftest.err >&5 5002 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5003 (exit $ac_status); } && { 5004 test -z "$ac_c_werror_flag" || 5005 test ! -s conftest.err 5006 } && test -s conftest.$ac_objext; then 5007 ac_header_compiler=yes 5008else 5009 echo "$as_me: failed program was:" >&5 5010sed 's/^/| /' conftest.$ac_ext >&5 5011 5012 ac_header_compiler=no 5013fi 5014 5015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5016{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5017echo "${ECHO_T}$ac_header_compiler" >&6; } 5018 5019# Is the header present? 5020{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 5021echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 5022cat >conftest.$ac_ext <<_ACEOF 5023/* confdefs.h. */ 5024_ACEOF 5025cat confdefs.h >>conftest.$ac_ext 5026cat >>conftest.$ac_ext <<_ACEOF 5027/* end confdefs.h. */ 5028@%:@include <$ac_header> 5029_ACEOF 5030if { (ac_try="$ac_cpp conftest.$ac_ext" 5031case "(($ac_try" in 5032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5033 *) ac_try_echo=$ac_try;; 5034esac 5035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5036 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5037 ac_status=$? 5038 grep -v '^ *+' conftest.er1 >conftest.err 5039 rm -f conftest.er1 5040 cat conftest.err >&5 5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5042 (exit $ac_status); } >/dev/null && { 5043 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5044 test ! -s conftest.err 5045 }; then 5046 ac_header_preproc=yes 5047else 5048 echo "$as_me: failed program was:" >&5 5049sed 's/^/| /' conftest.$ac_ext >&5 5050 5051 ac_header_preproc=no 5052fi 5053 5054rm -f conftest.err conftest.$ac_ext 5055{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5056echo "${ECHO_T}$ac_header_preproc" >&6; } 5057 5058# So? What about this header? 5059case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5060 yes:no: ) 5061 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5062echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5063 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5064echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5065 ac_header_preproc=yes 5066 ;; 5067 no:yes:* ) 5068 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5069echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5070 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5071echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5072 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5073echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5074 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5075echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5077echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5078 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5079echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5080 ( cat <<\_ASBOX 5081@%:@@%:@ ------------------------------------------------------------------------ @%:@@%:@ 5082@%:@@%:@ Report this to http://sourceforge.net/tracker/?group_id=8903&atid=108903 @%:@@%:@ 5083@%:@@%:@ ------------------------------------------------------------------------ @%:@@%:@ 5084_ASBOX 5085 ) | sed "s/^/$as_me: WARNING: /" >&2 5086 ;; 5087esac 5088{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5089echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5090if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5091 echo $ECHO_N "(cached) $ECHO_C" >&6 5092else 5093 eval "$as_ac_Header=\$ac_header_preproc" 5094fi 5095ac_res=`eval echo '${'$as_ac_Header'}'` 5096 { echo "$as_me:$LINENO: result: $ac_res" >&5 5097echo "${ECHO_T}$ac_res" >&6; } 5098 5099fi 5100if test `eval echo '${'$as_ac_Header'}'` = yes; then 5101 cat >>confdefs.h <<_ACEOF 5102@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5103_ACEOF 5104 5105fi 5106 5107done 5108 5109ac_ext=cpp 5110ac_cpp='$CXXCPP $CPPFLAGS' 5111ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5112ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5113ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5114if test -z "$CXX"; then 5115 if test -n "$CCC"; then 5116 CXX=$CCC 5117 else 5118 if test -n "$ac_tool_prefix"; then 5119 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5120 do 5121 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5122set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5123{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5124echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5125if test "${ac_cv_prog_CXX+set}" = set; then 5126 echo $ECHO_N "(cached) $ECHO_C" >&6 5127else 5128 if test -n "$CXX"; then 5129 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5130else 5131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5132for as_dir in $PATH 5133do 5134 IFS=$as_save_IFS 5135 test -z "$as_dir" && as_dir=. 5136 for ac_exec_ext in '' $ac_executable_extensions; do 5137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5138 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5140 break 2 5141 fi 5142done 5143done 5144IFS=$as_save_IFS 5145 5146fi 5147fi 5148CXX=$ac_cv_prog_CXX 5149if test -n "$CXX"; then 5150 { echo "$as_me:$LINENO: result: $CXX" >&5 5151echo "${ECHO_T}$CXX" >&6; } 5152else 5153 { echo "$as_me:$LINENO: result: no" >&5 5154echo "${ECHO_T}no" >&6; } 5155fi 5156 5157 5158 test -n "$CXX" && break 5159 done 5160fi 5161if test -z "$CXX"; then 5162 ac_ct_CXX=$CXX 5163 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5164do 5165 # Extract the first word of "$ac_prog", so it can be a program name with args. 5166set dummy $ac_prog; ac_word=$2 5167{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5168echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5169if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 5170 echo $ECHO_N "(cached) $ECHO_C" >&6 5171else 5172 if test -n "$ac_ct_CXX"; then 5173 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5174else 5175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5176for as_dir in $PATH 5177do 5178 IFS=$as_save_IFS 5179 test -z "$as_dir" && as_dir=. 5180 for ac_exec_ext in '' $ac_executable_extensions; do 5181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5182 ac_cv_prog_ac_ct_CXX="$ac_prog" 5183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5184 break 2 5185 fi 5186done 5187done 5188IFS=$as_save_IFS 5189 5190fi 5191fi 5192ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5193if test -n "$ac_ct_CXX"; then 5194 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 5195echo "${ECHO_T}$ac_ct_CXX" >&6; } 5196else 5197 { echo "$as_me:$LINENO: result: no" >&5 5198echo "${ECHO_T}no" >&6; } 5199fi 5200 5201 5202 test -n "$ac_ct_CXX" && break 5203done 5204 5205 if test "x$ac_ct_CXX" = x; then 5206 CXX="g++" 5207 else 5208 case $cross_compiling:$ac_tool_warned in 5209yes:) 5210{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5211whose name does not start with the host triplet. If you think this 5212configuration is useful to you, please write to autoconf@gnu.org." >&5 5213echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5214whose name does not start with the host triplet. If you think this 5215configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5216ac_tool_warned=yes ;; 5217esac 5218 CXX=$ac_ct_CXX 5219 fi 5220fi 5221 5222 fi 5223fi 5224# Provide some information about the compiler. 5225echo "$as_me:$LINENO: checking for C++ compiler version" >&5 5226ac_compiler=`set X $ac_compile; echo $2` 5227{ (ac_try="$ac_compiler --version >&5" 5228case "(($ac_try" in 5229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5230 *) ac_try_echo=$ac_try;; 5231esac 5232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5233 (eval "$ac_compiler --version >&5") 2>&5 5234 ac_status=$? 5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5236 (exit $ac_status); } 5237{ (ac_try="$ac_compiler -v >&5" 5238case "(($ac_try" in 5239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5240 *) ac_try_echo=$ac_try;; 5241esac 5242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5243 (eval "$ac_compiler -v >&5") 2>&5 5244 ac_status=$? 5245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5246 (exit $ac_status); } 5247{ (ac_try="$ac_compiler -V >&5" 5248case "(($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_compiler -V >&5") 2>&5 5254 ac_status=$? 5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5256 (exit $ac_status); } 5257 5258{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5259echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 5260if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5261 echo $ECHO_N "(cached) $ECHO_C" >&6 5262else 5263 cat >conftest.$ac_ext <<_ACEOF 5264/* confdefs.h. */ 5265_ACEOF 5266cat confdefs.h >>conftest.$ac_ext 5267cat >>conftest.$ac_ext <<_ACEOF 5268/* end confdefs.h. */ 5269 5270int 5271main () 5272{ 5273#ifndef __GNUC__ 5274 choke me 5275#endif 5276 5277 ; 5278 return 0; 5279} 5280_ACEOF 5281rm -f conftest.$ac_objext 5282if { (ac_try="$ac_compile" 5283case "(($ac_try" in 5284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5285 *) ac_try_echo=$ac_try;; 5286esac 5287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5288 (eval "$ac_compile") 2>conftest.er1 5289 ac_status=$? 5290 grep -v '^ *+' conftest.er1 >conftest.err 5291 rm -f conftest.er1 5292 cat conftest.err >&5 5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5294 (exit $ac_status); } && { 5295 test -z "$ac_cxx_werror_flag" || 5296 test ! -s conftest.err 5297 } && test -s conftest.$ac_objext; then 5298 ac_compiler_gnu=yes 5299else 5300 echo "$as_me: failed program was:" >&5 5301sed 's/^/| /' conftest.$ac_ext >&5 5302 5303 ac_compiler_gnu=no 5304fi 5305 5306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5307ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5308 5309fi 5310{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 5311echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 5312GXX=`test $ac_compiler_gnu = yes && echo yes` 5313ac_test_CXXFLAGS=${CXXFLAGS+set} 5314ac_save_CXXFLAGS=$CXXFLAGS 5315{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 5316echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 5317if test "${ac_cv_prog_cxx_g+set}" = set; then 5318 echo $ECHO_N "(cached) $ECHO_C" >&6 5319else 5320 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5321 ac_cxx_werror_flag=yes 5322 ac_cv_prog_cxx_g=no 5323 CXXFLAGS="-g" 5324 cat >conftest.$ac_ext <<_ACEOF 5325/* confdefs.h. */ 5326_ACEOF 5327cat confdefs.h >>conftest.$ac_ext 5328cat >>conftest.$ac_ext <<_ACEOF 5329/* end confdefs.h. */ 5330 5331int 5332main () 5333{ 5334 5335 ; 5336 return 0; 5337} 5338_ACEOF 5339rm -f conftest.$ac_objext 5340if { (ac_try="$ac_compile" 5341case "(($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_compile") 2>conftest.er1 5347 ac_status=$? 5348 grep -v '^ *+' conftest.er1 >conftest.err 5349 rm -f conftest.er1 5350 cat conftest.err >&5 5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5352 (exit $ac_status); } && { 5353 test -z "$ac_cxx_werror_flag" || 5354 test ! -s conftest.err 5355 } && test -s conftest.$ac_objext; then 5356 ac_cv_prog_cxx_g=yes 5357else 5358 echo "$as_me: failed program was:" >&5 5359sed 's/^/| /' conftest.$ac_ext >&5 5360 5361 CXXFLAGS="" 5362 cat >conftest.$ac_ext <<_ACEOF 5363/* confdefs.h. */ 5364_ACEOF 5365cat confdefs.h >>conftest.$ac_ext 5366cat >>conftest.$ac_ext <<_ACEOF 5367/* end confdefs.h. */ 5368 5369int 5370main () 5371{ 5372 5373 ; 5374 return 0; 5375} 5376_ACEOF 5377rm -f conftest.$ac_objext 5378if { (ac_try="$ac_compile" 5379case "(($ac_try" in 5380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5381 *) ac_try_echo=$ac_try;; 5382esac 5383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5384 (eval "$ac_compile") 2>conftest.er1 5385 ac_status=$? 5386 grep -v '^ *+' conftest.er1 >conftest.err 5387 rm -f conftest.er1 5388 cat conftest.err >&5 5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5390 (exit $ac_status); } && { 5391 test -z "$ac_cxx_werror_flag" || 5392 test ! -s conftest.err 5393 } && test -s conftest.$ac_objext; then 5394 : 5395else 5396 echo "$as_me: failed program was:" >&5 5397sed 's/^/| /' conftest.$ac_ext >&5 5398 5399 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5400 CXXFLAGS="-g" 5401 cat >conftest.$ac_ext <<_ACEOF 5402/* confdefs.h. */ 5403_ACEOF 5404cat confdefs.h >>conftest.$ac_ext 5405cat >>conftest.$ac_ext <<_ACEOF 5406/* end confdefs.h. */ 5407 5408int 5409main () 5410{ 5411 5412 ; 5413 return 0; 5414} 5415_ACEOF 5416rm -f conftest.$ac_objext 5417if { (ac_try="$ac_compile" 5418case "(($ac_try" in 5419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5420 *) ac_try_echo=$ac_try;; 5421esac 5422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5423 (eval "$ac_compile") 2>conftest.er1 5424 ac_status=$? 5425 grep -v '^ *+' conftest.er1 >conftest.err 5426 rm -f conftest.er1 5427 cat conftest.err >&5 5428 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5429 (exit $ac_status); } && { 5430 test -z "$ac_cxx_werror_flag" || 5431 test ! -s conftest.err 5432 } && test -s conftest.$ac_objext; then 5433 ac_cv_prog_cxx_g=yes 5434else 5435 echo "$as_me: failed program was:" >&5 5436sed 's/^/| /' conftest.$ac_ext >&5 5437 5438 5439fi 5440 5441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5442fi 5443 5444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5445fi 5446 5447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5448 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5449fi 5450{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 5451echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 5452if test "$ac_test_CXXFLAGS" = set; then 5453 CXXFLAGS=$ac_save_CXXFLAGS 5454elif test $ac_cv_prog_cxx_g = yes; then 5455 if test "$GXX" = yes; then 5456 CXXFLAGS="-g -O2" 5457 else 5458 CXXFLAGS="-g" 5459 fi 5460else 5461 if test "$GXX" = yes; then 5462 CXXFLAGS="-O2" 5463 else 5464 CXXFLAGS= 5465 fi 5466fi 5467ac_ext=cpp 5468ac_cpp='$CXXCPP $CPPFLAGS' 5469ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5470ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5471ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5472 5473depcc="$CXX" am_compiler_list= 5474 5475{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5476echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 5477if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 5478 echo $ECHO_N "(cached) $ECHO_C" >&6 5479else 5480 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5481 # We make a subdir and do the tests there. Otherwise we can end up 5482 # making bogus files that we don't know about and never remove. For 5483 # instance it was reported that on HP-UX the gcc test will end up 5484 # making a dummy file named `D' -- because `-MD' means `put the output 5485 # in D'. 5486 mkdir conftest.dir 5487 # Copy depcomp to subdir because otherwise we won't find it if we're 5488 # using a relative directory. 5489 cp "$am_depcomp" conftest.dir 5490 cd conftest.dir 5491 # We will build objects and dependencies in a subdirectory because 5492 # it helps to detect inapplicable dependency modes. For instance 5493 # both Tru64's cc and ICC support -MD to output dependencies as a 5494 # side effect of compilation, but ICC will put the dependencies in 5495 # the current directory while Tru64 will put them in the object 5496 # directory. 5497 mkdir sub 5498 5499 am_cv_CXX_dependencies_compiler_type=none 5500 if test "$am_compiler_list" = ""; then 5501 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5502 fi 5503 for depmode in $am_compiler_list; do 5504 # Setup a source with many dependencies, because some compilers 5505 # like to wrap large dependency lists on column 80 (with \), and 5506 # we should not choose a depcomp mode which is confused by this. 5507 # 5508 # We need to recreate these files for each test, as the compiler may 5509 # overwrite some of them when testing with obscure command lines. 5510 # This happens at least with the AIX C compiler. 5511 : > sub/conftest.c 5512 for i in 1 2 3 4 5 6; do 5513 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5514 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5515 # Solaris 8's {/usr,}/bin/sh. 5516 touch sub/conftst$i.h 5517 done 5518 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5519 5520 case $depmode in 5521 nosideeffect) 5522 # after this tag, mechanisms are not by side-effect, so they'll 5523 # only be used when explicitly requested 5524 if test "x$enable_dependency_tracking" = xyes; then 5525 continue 5526 else 5527 break 5528 fi 5529 ;; 5530 none) break ;; 5531 esac 5532 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5533 # mode. It turns out that the SunPro C++ compiler does not properly 5534 # handle `-M -o', and we need to detect this. 5535 if depmode=$depmode \ 5536 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5537 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5538 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5539 >/dev/null 2>conftest.err && 5540 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5541 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5542 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5543 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5544 # icc doesn't choke on unknown options, it will just issue warnings 5545 # or remarks (even with -Werror). So we grep stderr for any message 5546 # that says an option was ignored or not supported. 5547 # When given -MP, icc 7.0 and 7.1 complain thusly: 5548 # icc: Command line warning: ignoring option '-M'; no argument required 5549 # The diagnosis changed in icc 8.0: 5550 # icc: Command line remark: option '-MP' not supported 5551 if (grep 'ignoring option' conftest.err || 5552 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5553 am_cv_CXX_dependencies_compiler_type=$depmode 5554 break 5555 fi 5556 fi 5557 done 5558 5559 cd .. 5560 rm -rf conftest.dir 5561else 5562 am_cv_CXX_dependencies_compiler_type=none 5563fi 5564 5565fi 5566{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 5567echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } 5568CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5569 5570 if 5571 test "x$enable_dependency_tracking" != xno \ 5572 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5573 am__fastdepCXX_TRUE= 5574 am__fastdepCXX_FALSE='#' 5575else 5576 am__fastdepCXX_TRUE='#' 5577 am__fastdepCXX_FALSE= 5578fi 5579 5580 5581 5582 5583if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5584 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5585 (test "X$CXX" != "Xg++"))) ; then 5586 ac_ext=cpp 5587ac_cpp='$CXXCPP $CPPFLAGS' 5588ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5589ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5590ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5591{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5592echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 5593if test -z "$CXXCPP"; then 5594 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5595 echo $ECHO_N "(cached) $ECHO_C" >&6 5596else 5597 # Double quotes because CXXCPP needs to be expanded 5598 for CXXCPP in "$CXX -E" "/lib/cpp" 5599 do 5600 ac_preproc_ok=false 5601for ac_cxx_preproc_warn_flag in '' yes 5602do 5603 # Use a header file that comes with gcc, so configuring glibc 5604 # with a fresh cross-compiler works. 5605 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5606 # <limits.h> exists even on freestanding compilers. 5607 # On the NeXT, cc -E runs the code through the compiler's parser, 5608 # not just through cpp. "Syntax error" is here to catch this case. 5609 cat >conftest.$ac_ext <<_ACEOF 5610/* confdefs.h. */ 5611_ACEOF 5612cat confdefs.h >>conftest.$ac_ext 5613cat >>conftest.$ac_ext <<_ACEOF 5614/* end confdefs.h. */ 5615@%:@ifdef __STDC__ 5616@%:@ include <limits.h> 5617@%:@else 5618@%:@ include <assert.h> 5619@%:@endif 5620 Syntax error 5621_ACEOF 5622if { (ac_try="$ac_cpp conftest.$ac_ext" 5623case "(($ac_try" in 5624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5625 *) ac_try_echo=$ac_try;; 5626esac 5627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5628 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5629 ac_status=$? 5630 grep -v '^ *+' conftest.er1 >conftest.err 5631 rm -f conftest.er1 5632 cat conftest.err >&5 5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5634 (exit $ac_status); } >/dev/null && { 5635 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5636 test ! -s conftest.err 5637 }; then 5638 : 5639else 5640 echo "$as_me: failed program was:" >&5 5641sed 's/^/| /' conftest.$ac_ext >&5 5642 5643 # Broken: fails on valid input. 5644continue 5645fi 5646 5647rm -f conftest.err conftest.$ac_ext 5648 5649 # OK, works on sane cases. Now check whether nonexistent headers 5650 # can be detected and how. 5651 cat >conftest.$ac_ext <<_ACEOF 5652/* confdefs.h. */ 5653_ACEOF 5654cat confdefs.h >>conftest.$ac_ext 5655cat >>conftest.$ac_ext <<_ACEOF 5656/* end confdefs.h. */ 5657@%:@include <ac_nonexistent.h> 5658_ACEOF 5659if { (ac_try="$ac_cpp conftest.$ac_ext" 5660case "(($ac_try" in 5661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5662 *) ac_try_echo=$ac_try;; 5663esac 5664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5666 ac_status=$? 5667 grep -v '^ *+' conftest.er1 >conftest.err 5668 rm -f conftest.er1 5669 cat conftest.err >&5 5670 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5671 (exit $ac_status); } >/dev/null && { 5672 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5673 test ! -s conftest.err 5674 }; then 5675 # Broken: success on invalid input. 5676continue 5677else 5678 echo "$as_me: failed program was:" >&5 5679sed 's/^/| /' conftest.$ac_ext >&5 5680 5681 # Passes both tests. 5682ac_preproc_ok=: 5683break 5684fi 5685 5686rm -f conftest.err conftest.$ac_ext 5687 5688done 5689# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5690rm -f conftest.err conftest.$ac_ext 5691if $ac_preproc_ok; then 5692 break 5693fi 5694 5695 done 5696 ac_cv_prog_CXXCPP=$CXXCPP 5697 5698fi 5699 CXXCPP=$ac_cv_prog_CXXCPP 5700else 5701 ac_cv_prog_CXXCPP=$CXXCPP 5702fi 5703{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 5704echo "${ECHO_T}$CXXCPP" >&6; } 5705ac_preproc_ok=false 5706for ac_cxx_preproc_warn_flag in '' yes 5707do 5708 # Use a header file that comes with gcc, so configuring glibc 5709 # with a fresh cross-compiler works. 5710 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5711 # <limits.h> exists even on freestanding compilers. 5712 # On the NeXT, cc -E runs the code through the compiler's parser, 5713 # not just through cpp. "Syntax error" is here to catch this case. 5714 cat >conftest.$ac_ext <<_ACEOF 5715/* confdefs.h. */ 5716_ACEOF 5717cat confdefs.h >>conftest.$ac_ext 5718cat >>conftest.$ac_ext <<_ACEOF 5719/* end confdefs.h. */ 5720@%:@ifdef __STDC__ 5721@%:@ include <limits.h> 5722@%:@else 5723@%:@ include <assert.h> 5724@%:@endif 5725 Syntax error 5726_ACEOF 5727if { (ac_try="$ac_cpp conftest.$ac_ext" 5728case "(($ac_try" in 5729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5730 *) ac_try_echo=$ac_try;; 5731esac 5732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5733 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5734 ac_status=$? 5735 grep -v '^ *+' conftest.er1 >conftest.err 5736 rm -f conftest.er1 5737 cat conftest.err >&5 5738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5739 (exit $ac_status); } >/dev/null && { 5740 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5741 test ! -s conftest.err 5742 }; then 5743 : 5744else 5745 echo "$as_me: failed program was:" >&5 5746sed 's/^/| /' conftest.$ac_ext >&5 5747 5748 # Broken: fails on valid input. 5749continue 5750fi 5751 5752rm -f conftest.err conftest.$ac_ext 5753 5754 # OK, works on sane cases. Now check whether nonexistent headers 5755 # can be detected and how. 5756 cat >conftest.$ac_ext <<_ACEOF 5757/* confdefs.h. */ 5758_ACEOF 5759cat confdefs.h >>conftest.$ac_ext 5760cat >>conftest.$ac_ext <<_ACEOF 5761/* end confdefs.h. */ 5762@%:@include <ac_nonexistent.h> 5763_ACEOF 5764if { (ac_try="$ac_cpp conftest.$ac_ext" 5765case "(($ac_try" in 5766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5767 *) ac_try_echo=$ac_try;; 5768esac 5769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5770 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5771 ac_status=$? 5772 grep -v '^ *+' conftest.er1 >conftest.err 5773 rm -f conftest.er1 5774 cat conftest.err >&5 5775 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5776 (exit $ac_status); } >/dev/null && { 5777 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5778 test ! -s conftest.err 5779 }; then 5780 # Broken: success on invalid input. 5781continue 5782else 5783 echo "$as_me: failed program was:" >&5 5784sed 's/^/| /' conftest.$ac_ext >&5 5785 5786 # Passes both tests. 5787ac_preproc_ok=: 5788break 5789fi 5790 5791rm -f conftest.err conftest.$ac_ext 5792 5793done 5794# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5795rm -f conftest.err conftest.$ac_ext 5796if $ac_preproc_ok; then 5797 : 5798else 5799 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5800See \`config.log' for more details." >&5 5801echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5802See \`config.log' for more details." >&2;} 5803 { (exit 1); exit 1; }; } 5804fi 5805 5806ac_ext=cpp 5807ac_cpp='$CXXCPP $CPPFLAGS' 5808ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5809ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5810ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5811 5812fi 5813 5814 5815ac_ext=f 5816ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5817ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5818ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5819if test -n "$ac_tool_prefix"; then 5820 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn 5821 do 5822 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5823set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5824{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5826if test "${ac_cv_prog_F77+set}" = set; then 5827 echo $ECHO_N "(cached) $ECHO_C" >&6 5828else 5829 if test -n "$F77"; then 5830 ac_cv_prog_F77="$F77" # Let the user override the test. 5831else 5832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5833for as_dir in $PATH 5834do 5835 IFS=$as_save_IFS 5836 test -z "$as_dir" && as_dir=. 5837 for ac_exec_ext in '' $ac_executable_extensions; do 5838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5839 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 5840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5841 break 2 5842 fi 5843done 5844done 5845IFS=$as_save_IFS 5846 5847fi 5848fi 5849F77=$ac_cv_prog_F77 5850if test -n "$F77"; then 5851 { echo "$as_me:$LINENO: result: $F77" >&5 5852echo "${ECHO_T}$F77" >&6; } 5853else 5854 { echo "$as_me:$LINENO: result: no" >&5 5855echo "${ECHO_T}no" >&6; } 5856fi 5857 5858 5859 test -n "$F77" && break 5860 done 5861fi 5862if test -z "$F77"; then 5863 ac_ct_F77=$F77 5864 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn 5865do 5866 # Extract the first word of "$ac_prog", so it can be a program name with args. 5867set dummy $ac_prog; ac_word=$2 5868{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5870if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 5871 echo $ECHO_N "(cached) $ECHO_C" >&6 5872else 5873 if test -n "$ac_ct_F77"; then 5874 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 5875else 5876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5877for as_dir in $PATH 5878do 5879 IFS=$as_save_IFS 5880 test -z "$as_dir" && as_dir=. 5881 for ac_exec_ext in '' $ac_executable_extensions; do 5882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5883 ac_cv_prog_ac_ct_F77="$ac_prog" 5884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5885 break 2 5886 fi 5887done 5888done 5889IFS=$as_save_IFS 5890 5891fi 5892fi 5893ac_ct_F77=$ac_cv_prog_ac_ct_F77 5894if test -n "$ac_ct_F77"; then 5895 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 5896echo "${ECHO_T}$ac_ct_F77" >&6; } 5897else 5898 { echo "$as_me:$LINENO: result: no" >&5 5899echo "${ECHO_T}no" >&6; } 5900fi 5901 5902 5903 test -n "$ac_ct_F77" && break 5904done 5905 5906 if test "x$ac_ct_F77" = x; then 5907 F77="" 5908 else 5909 case $cross_compiling:$ac_tool_warned in 5910yes:) 5911{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5912whose name does not start with the host triplet. If you think this 5913configuration is useful to you, please write to autoconf@gnu.org." >&5 5914echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5915whose name does not start with the host triplet. If you think this 5916configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5917ac_tool_warned=yes ;; 5918esac 5919 F77=$ac_ct_F77 5920 fi 5921fi 5922 5923 5924# Provide some information about the compiler. 5925echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 5926ac_compiler=`set X $ac_compile; echo $2` 5927{ (ac_try="$ac_compiler --version >&5" 5928case "(($ac_try" in 5929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5930 *) ac_try_echo=$ac_try;; 5931esac 5932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5933 (eval "$ac_compiler --version >&5") 2>&5 5934 ac_status=$? 5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5936 (exit $ac_status); } 5937{ (ac_try="$ac_compiler -v >&5" 5938case "(($ac_try" in 5939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5940 *) ac_try_echo=$ac_try;; 5941esac 5942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5943 (eval "$ac_compiler -v >&5") 2>&5 5944 ac_status=$? 5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5946 (exit $ac_status); } 5947{ (ac_try="$ac_compiler -V >&5" 5948case "(($ac_try" in 5949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5950 *) ac_try_echo=$ac_try;; 5951esac 5952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5953 (eval "$ac_compiler -V >&5") 2>&5 5954 ac_status=$? 5955 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5956 (exit $ac_status); } 5957rm -f a.out 5958 5959# If we don't use `.F' as extension, the preprocessor is not run on the 5960# input file. (Note that this only needs to work for GNU compilers.) 5961ac_save_ext=$ac_ext 5962ac_ext=F 5963{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 5964echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } 5965if test "${ac_cv_f77_compiler_gnu+set}" = set; then 5966 echo $ECHO_N "(cached) $ECHO_C" >&6 5967else 5968 cat >conftest.$ac_ext <<_ACEOF 5969 program main 5970#ifndef __GNUC__ 5971 choke me 5972#endif 5973 5974 end 5975_ACEOF 5976rm -f conftest.$ac_objext 5977if { (ac_try="$ac_compile" 5978case "(($ac_try" in 5979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5980 *) ac_try_echo=$ac_try;; 5981esac 5982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5983 (eval "$ac_compile") 2>conftest.er1 5984 ac_status=$? 5985 grep -v '^ *+' conftest.er1 >conftest.err 5986 rm -f conftest.er1 5987 cat conftest.err >&5 5988 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5989 (exit $ac_status); } && { 5990 test -z "$ac_f77_werror_flag" || 5991 test ! -s conftest.err 5992 } && test -s conftest.$ac_objext; then 5993 ac_compiler_gnu=yes 5994else 5995 echo "$as_me: failed program was:" >&5 5996sed 's/^/| /' conftest.$ac_ext >&5 5997 5998 ac_compiler_gnu=no 5999fi 6000 6001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6002ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6003 6004fi 6005{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 6006echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } 6007ac_ext=$ac_save_ext 6008ac_test_FFLAGS=${FFLAGS+set} 6009ac_save_FFLAGS=$FFLAGS 6010FFLAGS= 6011{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 6012echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } 6013if test "${ac_cv_prog_f77_g+set}" = set; then 6014 echo $ECHO_N "(cached) $ECHO_C" >&6 6015else 6016 FFLAGS=-g 6017cat >conftest.$ac_ext <<_ACEOF 6018 program main 6019 6020 end 6021_ACEOF 6022rm -f conftest.$ac_objext 6023if { (ac_try="$ac_compile" 6024case "(($ac_try" in 6025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6026 *) ac_try_echo=$ac_try;; 6027esac 6028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6029 (eval "$ac_compile") 2>conftest.er1 6030 ac_status=$? 6031 grep -v '^ *+' conftest.er1 >conftest.err 6032 rm -f conftest.er1 6033 cat conftest.err >&5 6034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6035 (exit $ac_status); } && { 6036 test -z "$ac_f77_werror_flag" || 6037 test ! -s conftest.err 6038 } && test -s conftest.$ac_objext; then 6039 ac_cv_prog_f77_g=yes 6040else 6041 echo "$as_me: failed program was:" >&5 6042sed 's/^/| /' conftest.$ac_ext >&5 6043 6044 ac_cv_prog_f77_g=no 6045fi 6046 6047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6048 6049fi 6050{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6051echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } 6052if test "$ac_test_FFLAGS" = set; then 6053 FFLAGS=$ac_save_FFLAGS 6054elif test $ac_cv_prog_f77_g = yes; then 6055 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6056 FFLAGS="-g -O2" 6057 else 6058 FFLAGS="-g" 6059 fi 6060else 6061 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6062 FFLAGS="-O2" 6063 else 6064 FFLAGS= 6065 fi 6066fi 6067 6068G77=`test $ac_compiler_gnu = yes && echo yes` 6069ac_ext=c 6070ac_cpp='$CPP $CPPFLAGS' 6071ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6072ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6073ac_compiler_gnu=$ac_cv_c_compiler_gnu 6074 6075 6076 6077# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6078 6079# find the maximum length of command line arguments 6080{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6081echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } 6082if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6083 echo $ECHO_N "(cached) $ECHO_C" >&6 6084else 6085 i=0 6086 teststring="ABCD" 6087 6088 case $build_os in 6089 msdosdjgpp*) 6090 # On DJGPP, this test can blow up pretty badly due to problems in libc 6091 # (any single argument exceeding 2000 bytes causes a buffer overrun 6092 # during glob expansion). Even if it were fixed, the result of this 6093 # check would be larger than it should be. 6094 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6095 ;; 6096 6097 gnu*) 6098 # Under GNU Hurd, this test is not required because there is 6099 # no limit to the length of command line arguments. 6100 # Libtool will interpret -1 as no limit whatsoever 6101 lt_cv_sys_max_cmd_len=-1; 6102 ;; 6103 6104 cygwin* | mingw*) 6105 # On Win9x/ME, this test blows up -- it succeeds, but takes 6106 # about 5 minutes as the teststring grows exponentially. 6107 # Worse, since 9x/ME are not pre-emptively multitasking, 6108 # you end up with a "frozen" computer, even though with patience 6109 # the test eventually succeeds (with a max line length of 256k). 6110 # Instead, let's just punt: use the minimum linelength reported by 6111 # all of the supported platforms: 8192 (on NT/2K/XP). 6112 lt_cv_sys_max_cmd_len=8192; 6113 ;; 6114 6115 amigaos*) 6116 # On AmigaOS with pdksh, this test takes hours, literally. 6117 # So we just punt and use a minimum line length of 8192. 6118 lt_cv_sys_max_cmd_len=8192; 6119 ;; 6120 6121 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6122 # This has been around since 386BSD, at least. Likely further. 6123 if test -x /sbin/sysctl; then 6124 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6125 elif test -x /usr/sbin/sysctl; then 6126 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6127 else 6128 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6129 fi 6130 # And add a safety zone 6131 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6132 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6133 ;; 6134 6135 interix*) 6136 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6137 lt_cv_sys_max_cmd_len=196608 6138 ;; 6139 6140 osf*) 6141 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6142 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6143 # nice to cause kernel panics so lets avoid the loop below. 6144 # First set a reasonable default. 6145 lt_cv_sys_max_cmd_len=16384 6146 # 6147 if test -x /sbin/sysconfig; then 6148 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6149 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6150 esac 6151 fi 6152 ;; 6153 sco3.2v5*) 6154 lt_cv_sys_max_cmd_len=102400 6155 ;; 6156 sysv5* | sco5v6* | sysv4.2uw2*) 6157 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6158 if test -n "$kargmax"; then 6159 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6160 else 6161 lt_cv_sys_max_cmd_len=32768 6162 fi 6163 ;; 6164 *) 6165 # If test is not a shell built-in, we'll probably end up computing a 6166 # maximum length that is only half of the actual maximum length, but 6167 # we can't tell. 6168 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6169 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6170 = "XX$teststring") >/dev/null 2>&1 && 6171 new_result=`expr "X$teststring" : ".*" 2>&1` && 6172 lt_cv_sys_max_cmd_len=$new_result && 6173 test $i != 17 # 1/2 MB should be enough 6174 do 6175 i=`expr $i + 1` 6176 teststring=$teststring$teststring 6177 done 6178 teststring= 6179 # Add a significant safety factor because C++ compilers can tack on massive 6180 # amounts of additional arguments before passing them to the linker. 6181 # It appears as though 1/2 is a usable value. 6182 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6183 ;; 6184 esac 6185 6186fi 6187 6188if test -n $lt_cv_sys_max_cmd_len ; then 6189 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6190echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } 6191else 6192 { echo "$as_me:$LINENO: result: none" >&5 6193echo "${ECHO_T}none" >&6; } 6194fi 6195 6196 6197 6198 6199# Check for command to grab the raw symbol name followed by C symbol from nm. 6200{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6201echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 6202if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6203 echo $ECHO_N "(cached) $ECHO_C" >&6 6204else 6205 6206# These are sane defaults that work on at least a few old systems. 6207# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6208 6209# Character class describing NM global symbol codes. 6210symcode='[BCDEGRST]' 6211 6212# Regexp to match symbols that can be accessed directly from C. 6213sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6214 6215# Transform an extracted symbol line into a proper C declaration 6216lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6217 6218# Transform an extracted symbol line into symbol name and symbol address 6219lt_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'" 6220 6221# Define system-specific variables. 6222case $host_os in 6223aix*) 6224 symcode='[BCDT]' 6225 ;; 6226cygwin* | mingw* | pw32*) 6227 symcode='[ABCDGISTW]' 6228 ;; 6229hpux*) # Its linker distinguishes data from code symbols 6230 if test "$host_cpu" = ia64; then 6231 symcode='[ABCDEGRST]' 6232 fi 6233 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6234 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'" 6235 ;; 6236linux* | k*bsd*-gnu) 6237 if test "$host_cpu" = ia64; then 6238 symcode='[ABCDGIRSTW]' 6239 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6240 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'" 6241 fi 6242 ;; 6243irix* | nonstopux*) 6244 symcode='[BCDEGRST]' 6245 ;; 6246osf*) 6247 symcode='[BCDEGQRST]' 6248 ;; 6249solaris*) 6250 symcode='[BDRT]' 6251 ;; 6252sco3.2v5*) 6253 symcode='[DT]' 6254 ;; 6255sysv4.2uw2*) 6256 symcode='[DT]' 6257 ;; 6258sysv5* | sco5v6* | unixware* | OpenUNIX*) 6259 symcode='[ABDT]' 6260 ;; 6261sysv4) 6262 symcode='[DFNSTU]' 6263 ;; 6264esac 6265 6266# Handle CRLF in mingw tool chain 6267opt_cr= 6268case $build_os in 6269mingw*) 6270 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6271 ;; 6272esac 6273 6274# If we're using GNU nm, then use its standard symbol codes. 6275case `$NM -V 2>&1` in 6276*GNU* | *'with BFD'*) 6277 symcode='[ABCDGIRSTW]' ;; 6278esac 6279 6280# Try without a prefix undercore, then with it. 6281for ac_symprfx in "" "_"; do 6282 6283 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6284 symxfrm="\\1 $ac_symprfx\\2 \\2" 6285 6286 # Write the raw and C identifiers. 6287 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6288 6289 # Check to see that the pipe works correctly. 6290 pipe_works=no 6291 6292 rm -f conftest* 6293 cat > conftest.$ac_ext <<EOF 6294#ifdef __cplusplus 6295extern "C" { 6296#endif 6297char nm_test_var; 6298void nm_test_func(){} 6299#ifdef __cplusplus 6300} 6301#endif 6302int main(){nm_test_var='a';nm_test_func();return(0);} 6303EOF 6304 6305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6306 (eval $ac_compile) 2>&5 6307 ac_status=$? 6308 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6309 (exit $ac_status); }; then 6310 # Now try to grab the symbols. 6311 nlist=conftest.nm 6312 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6313 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6314 ac_status=$? 6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6316 (exit $ac_status); } && test -s "$nlist"; then 6317 # Try sorting and uniquifying the output. 6318 if sort "$nlist" | uniq > "$nlist"T; then 6319 mv -f "$nlist"T "$nlist" 6320 else 6321 rm -f "$nlist"T 6322 fi 6323 6324 # Make sure that we snagged all the symbols we need. 6325 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6326 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6327 cat <<EOF > conftest.$ac_ext 6328#ifdef __cplusplus 6329extern "C" { 6330#endif 6331 6332EOF 6333 # Now generate the symbol file. 6334 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6335 6336 cat <<EOF >> conftest.$ac_ext 6337#if defined (__STDC__) && __STDC__ 6338# define lt_ptr_t void * 6339#else 6340# define lt_ptr_t char * 6341# define const 6342#endif 6343 6344/* The mapping between symbol names and symbols. */ 6345const struct { 6346 const char *name; 6347 lt_ptr_t address; 6348} 6349lt_preloaded_symbols[] = 6350{ 6351EOF 6352 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6353 cat <<\EOF >> conftest.$ac_ext 6354 {0, (lt_ptr_t) 0} 6355}; 6356 6357#ifdef __cplusplus 6358} 6359#endif 6360EOF 6361 # Now try linking the two files. 6362 mv conftest.$ac_objext conftstm.$ac_objext 6363 lt_save_LIBS="$LIBS" 6364 lt_save_CFLAGS="$CFLAGS" 6365 LIBS="conftstm.$ac_objext" 6366 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6368 (eval $ac_link) 2>&5 6369 ac_status=$? 6370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6371 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6372 pipe_works=yes 6373 fi 6374 LIBS="$lt_save_LIBS" 6375 CFLAGS="$lt_save_CFLAGS" 6376 else 6377 echo "cannot find nm_test_func in $nlist" >&5 6378 fi 6379 else 6380 echo "cannot find nm_test_var in $nlist" >&5 6381 fi 6382 else 6383 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6384 fi 6385 else 6386 echo "$progname: failed program was:" >&5 6387 cat conftest.$ac_ext >&5 6388 fi 6389 rm -f conftest* conftst* 6390 6391 # Do not use the global_symbol_pipe unless it works. 6392 if test "$pipe_works" = yes; then 6393 break 6394 else 6395 lt_cv_sys_global_symbol_pipe= 6396 fi 6397done 6398 6399fi 6400 6401if test -z "$lt_cv_sys_global_symbol_pipe"; then 6402 lt_cv_sys_global_symbol_to_cdecl= 6403fi 6404if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6405 { echo "$as_me:$LINENO: result: failed" >&5 6406echo "${ECHO_T}failed" >&6; } 6407else 6408 { echo "$as_me:$LINENO: result: ok" >&5 6409echo "${ECHO_T}ok" >&6; } 6410fi 6411 6412{ echo "$as_me:$LINENO: checking for objdir" >&5 6413echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 6414if test "${lt_cv_objdir+set}" = set; then 6415 echo $ECHO_N "(cached) $ECHO_C" >&6 6416else 6417 rm -f .libs 2>/dev/null 6418mkdir .libs 2>/dev/null 6419if test -d .libs; then 6420 lt_cv_objdir=.libs 6421else 6422 # MS-DOS does not allow filenames that begin with a dot. 6423 lt_cv_objdir=_libs 6424fi 6425rmdir .libs 2>/dev/null 6426fi 6427{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6428echo "${ECHO_T}$lt_cv_objdir" >&6; } 6429objdir=$lt_cv_objdir 6430 6431 6432 6433 6434 6435case $host_os in 6436aix3*) 6437 # AIX sometimes has problems with the GCC collect2 program. For some 6438 # reason, if we set the COLLECT_NAMES environment variable, the problems 6439 # vanish in a puff of smoke. 6440 if test "X${COLLECT_NAMES+set}" != Xset; then 6441 COLLECT_NAMES= 6442 export COLLECT_NAMES 6443 fi 6444 ;; 6445esac 6446 6447# Sed substitution that helps us do robust quoting. It backslashifies 6448# metacharacters that are still active within double-quoted strings. 6449Xsed='sed -e 1s/^X//' 6450sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6451 6452# Same as above, but do not quote variable references. 6453double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6454 6455# Sed substitution to delay expansion of an escaped shell variable in a 6456# double_quote_subst'ed string. 6457delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6458 6459# Sed substitution to avoid accidental globbing in evaled expressions 6460no_glob_subst='s/\*/\\\*/g' 6461 6462# Constants: 6463rm="rm -f" 6464 6465# Global variables: 6466default_ofile=libtool 6467can_build_shared=yes 6468 6469# All known linkers require a `.a' archive for static linking (except MSVC, 6470# which needs '.lib'). 6471libext=a 6472ltmain="$ac_aux_dir/ltmain.sh" 6473ofile="$default_ofile" 6474with_gnu_ld="$lt_cv_prog_gnu_ld" 6475 6476if test -n "$ac_tool_prefix"; then 6477 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6478set dummy ${ac_tool_prefix}ar; ac_word=$2 6479{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6480echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6481if test "${ac_cv_prog_AR+set}" = set; then 6482 echo $ECHO_N "(cached) $ECHO_C" >&6 6483else 6484 if test -n "$AR"; then 6485 ac_cv_prog_AR="$AR" # Let the user override the test. 6486else 6487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6488for as_dir in $PATH 6489do 6490 IFS=$as_save_IFS 6491 test -z "$as_dir" && as_dir=. 6492 for ac_exec_ext in '' $ac_executable_extensions; do 6493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6494 ac_cv_prog_AR="${ac_tool_prefix}ar" 6495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6496 break 2 6497 fi 6498done 6499done 6500IFS=$as_save_IFS 6501 6502fi 6503fi 6504AR=$ac_cv_prog_AR 6505if test -n "$AR"; then 6506 { echo "$as_me:$LINENO: result: $AR" >&5 6507echo "${ECHO_T}$AR" >&6; } 6508else 6509 { echo "$as_me:$LINENO: result: no" >&5 6510echo "${ECHO_T}no" >&6; } 6511fi 6512 6513 6514fi 6515if test -z "$ac_cv_prog_AR"; then 6516 ac_ct_AR=$AR 6517 # Extract the first word of "ar", so it can be a program name with args. 6518set dummy ar; ac_word=$2 6519{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6521if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6522 echo $ECHO_N "(cached) $ECHO_C" >&6 6523else 6524 if test -n "$ac_ct_AR"; then 6525 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6526else 6527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6528for as_dir in $PATH 6529do 6530 IFS=$as_save_IFS 6531 test -z "$as_dir" && as_dir=. 6532 for ac_exec_ext in '' $ac_executable_extensions; do 6533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6534 ac_cv_prog_ac_ct_AR="ar" 6535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6536 break 2 6537 fi 6538done 6539done 6540IFS=$as_save_IFS 6541 6542fi 6543fi 6544ac_ct_AR=$ac_cv_prog_ac_ct_AR 6545if test -n "$ac_ct_AR"; then 6546 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6547echo "${ECHO_T}$ac_ct_AR" >&6; } 6548else 6549 { echo "$as_me:$LINENO: result: no" >&5 6550echo "${ECHO_T}no" >&6; } 6551fi 6552 6553 if test "x$ac_ct_AR" = x; then 6554 AR="false" 6555 else 6556 case $cross_compiling:$ac_tool_warned in 6557yes:) 6558{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6559whose name does not start with the host triplet. If you think this 6560configuration is useful to you, please write to autoconf@gnu.org." >&5 6561echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6562whose name does not start with the host triplet. If you think this 6563configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6564ac_tool_warned=yes ;; 6565esac 6566 AR=$ac_ct_AR 6567 fi 6568else 6569 AR="$ac_cv_prog_AR" 6570fi 6571 6572if test -n "$ac_tool_prefix"; then 6573 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6574set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6575{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6576echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6577if test "${ac_cv_prog_RANLIB+set}" = set; then 6578 echo $ECHO_N "(cached) $ECHO_C" >&6 6579else 6580 if test -n "$RANLIB"; then 6581 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6582else 6583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6584for as_dir in $PATH 6585do 6586 IFS=$as_save_IFS 6587 test -z "$as_dir" && as_dir=. 6588 for ac_exec_ext in '' $ac_executable_extensions; do 6589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6590 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6592 break 2 6593 fi 6594done 6595done 6596IFS=$as_save_IFS 6597 6598fi 6599fi 6600RANLIB=$ac_cv_prog_RANLIB 6601if test -n "$RANLIB"; then 6602 { echo "$as_me:$LINENO: result: $RANLIB" >&5 6603echo "${ECHO_T}$RANLIB" >&6; } 6604else 6605 { echo "$as_me:$LINENO: result: no" >&5 6606echo "${ECHO_T}no" >&6; } 6607fi 6608 6609 6610fi 6611if test -z "$ac_cv_prog_RANLIB"; then 6612 ac_ct_RANLIB=$RANLIB 6613 # Extract the first word of "ranlib", so it can be a program name with args. 6614set dummy ranlib; ac_word=$2 6615{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6616echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6617if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6618 echo $ECHO_N "(cached) $ECHO_C" >&6 6619else 6620 if test -n "$ac_ct_RANLIB"; then 6621 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6622else 6623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6624for as_dir in $PATH 6625do 6626 IFS=$as_save_IFS 6627 test -z "$as_dir" && as_dir=. 6628 for ac_exec_ext in '' $ac_executable_extensions; do 6629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6630 ac_cv_prog_ac_ct_RANLIB="ranlib" 6631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6632 break 2 6633 fi 6634done 6635done 6636IFS=$as_save_IFS 6637 6638fi 6639fi 6640ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6641if test -n "$ac_ct_RANLIB"; then 6642 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6643echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 6644else 6645 { echo "$as_me:$LINENO: result: no" >&5 6646echo "${ECHO_T}no" >&6; } 6647fi 6648 6649 if test "x$ac_ct_RANLIB" = x; then 6650 RANLIB=":" 6651 else 6652 case $cross_compiling:$ac_tool_warned in 6653yes:) 6654{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6655whose name does not start with the host triplet. If you think this 6656configuration is useful to you, please write to autoconf@gnu.org." >&5 6657echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6658whose name does not start with the host triplet. If you think this 6659configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6660ac_tool_warned=yes ;; 6661esac 6662 RANLIB=$ac_ct_RANLIB 6663 fi 6664else 6665 RANLIB="$ac_cv_prog_RANLIB" 6666fi 6667 6668if test -n "$ac_tool_prefix"; then 6669 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6670set dummy ${ac_tool_prefix}strip; ac_word=$2 6671{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6672echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6673if test "${ac_cv_prog_STRIP+set}" = set; then 6674 echo $ECHO_N "(cached) $ECHO_C" >&6 6675else 6676 if test -n "$STRIP"; then 6677 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6678else 6679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6680for as_dir in $PATH 6681do 6682 IFS=$as_save_IFS 6683 test -z "$as_dir" && as_dir=. 6684 for ac_exec_ext in '' $ac_executable_extensions; do 6685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6686 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6688 break 2 6689 fi 6690done 6691done 6692IFS=$as_save_IFS 6693 6694fi 6695fi 6696STRIP=$ac_cv_prog_STRIP 6697if test -n "$STRIP"; then 6698 { echo "$as_me:$LINENO: result: $STRIP" >&5 6699echo "${ECHO_T}$STRIP" >&6; } 6700else 6701 { echo "$as_me:$LINENO: result: no" >&5 6702echo "${ECHO_T}no" >&6; } 6703fi 6704 6705 6706fi 6707if test -z "$ac_cv_prog_STRIP"; then 6708 ac_ct_STRIP=$STRIP 6709 # Extract the first word of "strip", so it can be a program name with args. 6710set dummy strip; ac_word=$2 6711{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6712echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6713if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6714 echo $ECHO_N "(cached) $ECHO_C" >&6 6715else 6716 if test -n "$ac_ct_STRIP"; then 6717 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6718else 6719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6720for as_dir in $PATH 6721do 6722 IFS=$as_save_IFS 6723 test -z "$as_dir" && as_dir=. 6724 for ac_exec_ext in '' $ac_executable_extensions; do 6725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6726 ac_cv_prog_ac_ct_STRIP="strip" 6727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6728 break 2 6729 fi 6730done 6731done 6732IFS=$as_save_IFS 6733 6734fi 6735fi 6736ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6737if test -n "$ac_ct_STRIP"; then 6738 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6739echo "${ECHO_T}$ac_ct_STRIP" >&6; } 6740else 6741 { echo "$as_me:$LINENO: result: no" >&5 6742echo "${ECHO_T}no" >&6; } 6743fi 6744 6745 if test "x$ac_ct_STRIP" = x; then 6746 STRIP=":" 6747 else 6748 case $cross_compiling:$ac_tool_warned in 6749yes:) 6750{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6751whose name does not start with the host triplet. If you think this 6752configuration is useful to you, please write to autoconf@gnu.org." >&5 6753echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6754whose name does not start with the host triplet. If you think this 6755configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6756ac_tool_warned=yes ;; 6757esac 6758 STRIP=$ac_ct_STRIP 6759 fi 6760else 6761 STRIP="$ac_cv_prog_STRIP" 6762fi 6763 6764 6765old_CC="$CC" 6766old_CFLAGS="$CFLAGS" 6767 6768# Set sane defaults for various variables 6769test -z "$AR" && AR=ar 6770test -z "$AR_FLAGS" && AR_FLAGS=cru 6771test -z "$AS" && AS=as 6772test -z "$CC" && CC=cc 6773test -z "$LTCC" && LTCC=$CC 6774test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 6775test -z "$DLLTOOL" && DLLTOOL=dlltool 6776test -z "$LD" && LD=ld 6777test -z "$LN_S" && LN_S="ln -s" 6778test -z "$MAGIC_CMD" && MAGIC_CMD=file 6779test -z "$NM" && NM=nm 6780test -z "$SED" && SED=sed 6781test -z "$OBJDUMP" && OBJDUMP=objdump 6782test -z "$RANLIB" && RANLIB=: 6783test -z "$STRIP" && STRIP=: 6784test -z "$ac_objext" && ac_objext=o 6785 6786# Determine commands to create old-style static archives. 6787old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 6788old_postinstall_cmds='chmod 644 $oldlib' 6789old_postuninstall_cmds= 6790 6791if test -n "$RANLIB"; then 6792 case $host_os in 6793 openbsd*) 6794 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6795 ;; 6796 *) 6797 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6798 ;; 6799 esac 6800 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6801fi 6802 6803for cc_temp in $compiler""; do 6804 case $cc_temp in 6805 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6806 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6807 \-*) ;; 6808 *) break;; 6809 esac 6810done 6811cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6812 6813 6814# Only perform the check for file, if the check method requires it 6815case $deplibs_check_method in 6816file_magic*) 6817 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6818 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 6819echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } 6820if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6821 echo $ECHO_N "(cached) $ECHO_C" >&6 6822else 6823 case $MAGIC_CMD in 6824[\\/*] | ?:[\\/]*) 6825 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6826 ;; 6827*) 6828 lt_save_MAGIC_CMD="$MAGIC_CMD" 6829 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6830 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6831 for ac_dir in $ac_dummy; do 6832 IFS="$lt_save_ifs" 6833 test -z "$ac_dir" && ac_dir=. 6834 if test -f $ac_dir/${ac_tool_prefix}file; then 6835 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6836 if test -n "$file_magic_test_file"; then 6837 case $deplibs_check_method in 6838 "file_magic "*) 6839 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6840 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6841 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6842 $EGREP "$file_magic_regex" > /dev/null; then 6843 : 6844 else 6845 cat <<EOF 1>&2 6846 6847*** Warning: the command libtool uses to detect shared libraries, 6848*** $file_magic_cmd, produces output that libtool cannot recognize. 6849*** The result is that libtool may fail to recognize shared libraries 6850*** as such. This will affect the creation of libtool libraries that 6851*** depend on shared libraries, but programs linked with such libtool 6852*** libraries will work regardless of this problem. Nevertheless, you 6853*** may want to report the problem to your system manager and/or to 6854*** bug-libtool@gnu.org 6855 6856EOF 6857 fi ;; 6858 esac 6859 fi 6860 break 6861 fi 6862 done 6863 IFS="$lt_save_ifs" 6864 MAGIC_CMD="$lt_save_MAGIC_CMD" 6865 ;; 6866esac 6867fi 6868 6869MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6870if test -n "$MAGIC_CMD"; then 6871 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6872echo "${ECHO_T}$MAGIC_CMD" >&6; } 6873else 6874 { echo "$as_me:$LINENO: result: no" >&5 6875echo "${ECHO_T}no" >&6; } 6876fi 6877 6878if test -z "$lt_cv_path_MAGIC_CMD"; then 6879 if test -n "$ac_tool_prefix"; then 6880 { echo "$as_me:$LINENO: checking for file" >&5 6881echo $ECHO_N "checking for file... $ECHO_C" >&6; } 6882if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6883 echo $ECHO_N "(cached) $ECHO_C" >&6 6884else 6885 case $MAGIC_CMD in 6886[\\/*] | ?:[\\/]*) 6887 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6888 ;; 6889*) 6890 lt_save_MAGIC_CMD="$MAGIC_CMD" 6891 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6892 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6893 for ac_dir in $ac_dummy; do 6894 IFS="$lt_save_ifs" 6895 test -z "$ac_dir" && ac_dir=. 6896 if test -f $ac_dir/file; then 6897 lt_cv_path_MAGIC_CMD="$ac_dir/file" 6898 if test -n "$file_magic_test_file"; then 6899 case $deplibs_check_method in 6900 "file_magic "*) 6901 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6902 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6903 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6904 $EGREP "$file_magic_regex" > /dev/null; then 6905 : 6906 else 6907 cat <<EOF 1>&2 6908 6909*** Warning: the command libtool uses to detect shared libraries, 6910*** $file_magic_cmd, produces output that libtool cannot recognize. 6911*** The result is that libtool may fail to recognize shared libraries 6912*** as such. This will affect the creation of libtool libraries that 6913*** depend on shared libraries, but programs linked with such libtool 6914*** libraries will work regardless of this problem. Nevertheless, you 6915*** may want to report the problem to your system manager and/or to 6916*** bug-libtool@gnu.org 6917 6918EOF 6919 fi ;; 6920 esac 6921 fi 6922 break 6923 fi 6924 done 6925 IFS="$lt_save_ifs" 6926 MAGIC_CMD="$lt_save_MAGIC_CMD" 6927 ;; 6928esac 6929fi 6930 6931MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6932if test -n "$MAGIC_CMD"; then 6933 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6934echo "${ECHO_T}$MAGIC_CMD" >&6; } 6935else 6936 { echo "$as_me:$LINENO: result: no" >&5 6937echo "${ECHO_T}no" >&6; } 6938fi 6939 6940 else 6941 MAGIC_CMD=: 6942 fi 6943fi 6944 6945 fi 6946 ;; 6947esac 6948 6949enable_dlopen=no 6950enable_win32_dll=no 6951 6952# Check whether --enable-libtool-lock was given. 6953if test "${enable_libtool_lock+set}" = set; then 6954 enableval=$enable_libtool_lock; 6955fi 6956 6957test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6958 6959 6960# Check whether --with-pic was given. 6961if test "${with_pic+set}" = set; then 6962 withval=$with_pic; pic_mode="$withval" 6963else 6964 pic_mode=default 6965fi 6966 6967test -z "$pic_mode" && pic_mode=default 6968 6969# Use C for the default configuration in the libtool script 6970tagname= 6971lt_save_CC="$CC" 6972ac_ext=c 6973ac_cpp='$CPP $CPPFLAGS' 6974ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6975ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6976ac_compiler_gnu=$ac_cv_c_compiler_gnu 6977 6978 6979# Source file extension for C test sources. 6980ac_ext=c 6981 6982# Object file extension for compiled C test sources. 6983objext=o 6984objext=$objext 6985 6986# Code to be used in simple compile tests 6987lt_simple_compile_test_code="int some_variable = 0;\n" 6988 6989# Code to be used in simple link tests 6990lt_simple_link_test_code='int main(){return(0);}\n' 6991 6992 6993# If no C compiler was specified, use CC. 6994LTCC=${LTCC-"$CC"} 6995 6996# If no C compiler flags were specified, use CFLAGS. 6997LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6998 6999# Allow CC to be a program name with arguments. 7000compiler=$CC 7001 7002 7003# save warnings/boilerplate of simple test code 7004ac_outfile=conftest.$ac_objext 7005printf "$lt_simple_compile_test_code" >conftest.$ac_ext 7006eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7007_lt_compiler_boilerplate=`cat conftest.err` 7008$rm conftest* 7009 7010ac_outfile=conftest.$ac_objext 7011printf "$lt_simple_link_test_code" >conftest.$ac_ext 7012eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7013_lt_linker_boilerplate=`cat conftest.err` 7014$rm conftest* 7015 7016 7017## CAVEAT EMPTOR: 7018## There is no encapsulation within the following macros, do not change 7019## the running order or otherwise move them around unless you know exactly 7020## what you are doing... 7021 7022lt_prog_compiler_no_builtin_flag= 7023 7024if test "$GCC" = yes; then 7025 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7026 7027 7028{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7029echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 7030if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7031 echo $ECHO_N "(cached) $ECHO_C" >&6 7032else 7033 lt_cv_prog_compiler_rtti_exceptions=no 7034 ac_outfile=conftest.$ac_objext 7035 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7036 lt_compiler_flag="-fno-rtti -fno-exceptions" 7037 # Insert the option either (1) after the last *FLAGS variable, or 7038 # (2) before a word containing "conftest.", or (3) at the end. 7039 # Note that $ac_compile itself does not contain backslashes and begins 7040 # with a dollar sign (not a hyphen), so the echo should work correctly. 7041 # The option is referenced via a variable to avoid confusing sed. 7042 lt_compile=`echo "$ac_compile" | $SED \ 7043 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7044 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7045 -e 's:$: $lt_compiler_flag:'` 7046 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 7047 (eval "$lt_compile" 2>conftest.err) 7048 ac_status=$? 7049 cat conftest.err >&5 7050 echo "$as_me:__oline__: \$? = $ac_status" >&5 7051 if (exit $ac_status) && test -s "$ac_outfile"; then 7052 # The compiler can only warn and ignore the option if not recognized 7053 # So say no if there are warnings other than the usual output. 7054 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7055 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7056 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7057 lt_cv_prog_compiler_rtti_exceptions=yes 7058 fi 7059 fi 7060 $rm conftest* 7061 7062fi 7063{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7064echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7065 7066if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7067 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7068else 7069 : 7070fi 7071 7072fi 7073 7074lt_prog_compiler_wl= 7075lt_prog_compiler_pic= 7076lt_prog_compiler_static= 7077 7078{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7079echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 7080 7081 if test "$GCC" = yes; then 7082 lt_prog_compiler_wl='-Wl,' 7083 lt_prog_compiler_static='-static' 7084 7085 case $host_os in 7086 aix*) 7087 # All AIX code is PIC. 7088 if test "$host_cpu" = ia64; then 7089 # AIX 5 now supports IA64 processor 7090 lt_prog_compiler_static='-Bstatic' 7091 fi 7092 ;; 7093 7094 amigaos*) 7095 # FIXME: we need at least 68020 code to build shared libraries, but 7096 # adding the `-m68020' flag to GCC prevents building anything better, 7097 # like `-m68040'. 7098 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7099 ;; 7100 7101 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7102 # PIC is the default for these OSes. 7103 ;; 7104 7105 mingw* | pw32* | os2*) 7106 # This hack is so that the source file can tell whether it is being 7107 # built for inclusion in a dll (and should export symbols for example). 7108 lt_prog_compiler_pic='-DDLL_EXPORT' 7109 ;; 7110 7111 darwin* | rhapsody*) 7112 # PIC is the default on this platform 7113 # Common symbols not allowed in MH_DYLIB files 7114 lt_prog_compiler_pic='-fno-common' 7115 ;; 7116 7117 interix3*) 7118 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7119 # Instead, we relocate shared libraries at runtime. 7120 ;; 7121 7122 msdosdjgpp*) 7123 # Just because we use GCC doesn't mean we suddenly get shared libraries 7124 # on systems that don't support them. 7125 lt_prog_compiler_can_build_shared=no 7126 enable_shared=no 7127 ;; 7128 7129 sysv4*MP*) 7130 if test -d /usr/nec; then 7131 lt_prog_compiler_pic=-Kconform_pic 7132 fi 7133 ;; 7134 7135 hpux*) 7136 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7137 # not for PA HP-UX. 7138 case $host_cpu in 7139 hppa*64*|ia64*) 7140 # +Z the default 7141 ;; 7142 *) 7143 lt_prog_compiler_pic='-fPIC' 7144 ;; 7145 esac 7146 ;; 7147 7148 *) 7149 lt_prog_compiler_pic='-fPIC' 7150 ;; 7151 esac 7152 else 7153 # PORTME Check for flag to pass linker flags through the system compiler. 7154 case $host_os in 7155 aix*) 7156 lt_prog_compiler_wl='-Wl,' 7157 if test "$host_cpu" = ia64; then 7158 # AIX 5 now supports IA64 processor 7159 lt_prog_compiler_static='-Bstatic' 7160 else 7161 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7162 fi 7163 ;; 7164 darwin*) 7165 # PIC is the default on this platform 7166 # Common symbols not allowed in MH_DYLIB files 7167 case $cc_basename in 7168 xlc*) 7169 lt_prog_compiler_pic='-qnocommon' 7170 lt_prog_compiler_wl='-Wl,' 7171 ;; 7172 esac 7173 ;; 7174 7175 mingw* | pw32* | os2*) 7176 # This hack is so that the source file can tell whether it is being 7177 # built for inclusion in a dll (and should export symbols for example). 7178 lt_prog_compiler_pic='-DDLL_EXPORT' 7179 ;; 7180 7181 hpux9* | hpux10* | hpux11*) 7182 lt_prog_compiler_wl='-Wl,' 7183 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7184 # not for PA HP-UX. 7185 case $host_cpu in 7186 hppa*64*|ia64*) 7187 # +Z the default 7188 ;; 7189 *) 7190 lt_prog_compiler_pic='+Z' 7191 ;; 7192 esac 7193 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7194 lt_prog_compiler_static='${wl}-a ${wl}archive' 7195 ;; 7196 7197 irix5* | irix6* | nonstopux*) 7198 lt_prog_compiler_wl='-Wl,' 7199 # PIC (with -KPIC) is the default. 7200 lt_prog_compiler_static='-non_shared' 7201 ;; 7202 7203 newsos6) 7204 lt_prog_compiler_pic='-KPIC' 7205 lt_prog_compiler_static='-Bstatic' 7206 ;; 7207 7208 linux* | k*bsd*-gnu) 7209 case $cc_basename in 7210 icc* | ecc*) 7211 lt_prog_compiler_wl='-Wl,' 7212 lt_prog_compiler_pic='-KPIC' 7213 lt_prog_compiler_static='-static' 7214 ;; 7215 pgcc* | pgf77* | pgf90* | pgf95*) 7216 # Portland Group compilers (*not* the Pentium gcc compiler, 7217 # which looks to be a dead project) 7218 lt_prog_compiler_wl='-Wl,' 7219 lt_prog_compiler_pic='-fpic' 7220 lt_prog_compiler_static='-Bstatic' 7221 ;; 7222 ccc*) 7223 lt_prog_compiler_wl='-Wl,' 7224 # All Alpha code is PIC. 7225 lt_prog_compiler_static='-non_shared' 7226 ;; 7227 esac 7228 ;; 7229 7230 osf3* | osf4* | osf5*) 7231 lt_prog_compiler_wl='-Wl,' 7232 # All OSF/1 code is PIC. 7233 lt_prog_compiler_static='-non_shared' 7234 ;; 7235 7236 solaris*) 7237 lt_prog_compiler_pic='-KPIC' 7238 lt_prog_compiler_static='-Bstatic' 7239 case $cc_basename in 7240 f77* | f90* | f95*) 7241 lt_prog_compiler_wl='-Qoption ld ';; 7242 *) 7243 lt_prog_compiler_wl='-Wl,';; 7244 esac 7245 ;; 7246 7247 sunos4*) 7248 lt_prog_compiler_wl='-Qoption ld ' 7249 lt_prog_compiler_pic='-PIC' 7250 lt_prog_compiler_static='-Bstatic' 7251 ;; 7252 7253 sysv4 | sysv4.2uw2* | sysv4.3*) 7254 lt_prog_compiler_wl='-Wl,' 7255 lt_prog_compiler_pic='-KPIC' 7256 lt_prog_compiler_static='-Bstatic' 7257 ;; 7258 7259 sysv4*MP*) 7260 if test -d /usr/nec ;then 7261 lt_prog_compiler_pic='-Kconform_pic' 7262 lt_prog_compiler_static='-Bstatic' 7263 fi 7264 ;; 7265 7266 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7267 lt_prog_compiler_wl='-Wl,' 7268 lt_prog_compiler_pic='-KPIC' 7269 lt_prog_compiler_static='-Bstatic' 7270 ;; 7271 7272 unicos*) 7273 lt_prog_compiler_wl='-Wl,' 7274 lt_prog_compiler_can_build_shared=no 7275 ;; 7276 7277 uts4*) 7278 lt_prog_compiler_pic='-pic' 7279 lt_prog_compiler_static='-Bstatic' 7280 ;; 7281 7282 *) 7283 lt_prog_compiler_can_build_shared=no 7284 ;; 7285 esac 7286 fi 7287 7288{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7289echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 7290 7291# 7292# Check to make sure the PIC flag actually works. 7293# 7294if test -n "$lt_prog_compiler_pic"; then 7295 7296{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7297echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 7298if test "${lt_prog_compiler_pic_works+set}" = set; then 7299 echo $ECHO_N "(cached) $ECHO_C" >&6 7300else 7301 lt_prog_compiler_pic_works=no 7302 ac_outfile=conftest.$ac_objext 7303 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7304 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7305 # Insert the option either (1) after the last *FLAGS variable, or 7306 # (2) before a word containing "conftest.", or (3) at the end. 7307 # Note that $ac_compile itself does not contain backslashes and begins 7308 # with a dollar sign (not a hyphen), so the echo should work correctly. 7309 # The option is referenced via a variable to avoid confusing sed. 7310 lt_compile=`echo "$ac_compile" | $SED \ 7311 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7312 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7313 -e 's:$: $lt_compiler_flag:'` 7314 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 7315 (eval "$lt_compile" 2>conftest.err) 7316 ac_status=$? 7317 cat conftest.err >&5 7318 echo "$as_me:__oline__: \$? = $ac_status" >&5 7319 if (exit $ac_status) && test -s "$ac_outfile"; then 7320 # The compiler can only warn and ignore the option if not recognized 7321 # So say no if there are warnings other than the usual output. 7322 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7323 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7324 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7325 lt_prog_compiler_pic_works=yes 7326 fi 7327 fi 7328 $rm conftest* 7329 7330fi 7331{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 7332echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } 7333 7334if test x"$lt_prog_compiler_pic_works" = xyes; then 7335 case $lt_prog_compiler_pic in 7336 "" | " "*) ;; 7337 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7338 esac 7339else 7340 lt_prog_compiler_pic= 7341 lt_prog_compiler_can_build_shared=no 7342fi 7343 7344fi 7345case $host_os in 7346 # For platforms which do not support PIC, -DPIC is meaningless: 7347 *djgpp*) 7348 lt_prog_compiler_pic= 7349 ;; 7350 *) 7351 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7352 ;; 7353esac 7354 7355# 7356# Check to make sure the static flag actually works. 7357# 7358wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7359{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7360echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 7361if test "${lt_prog_compiler_static_works+set}" = set; then 7362 echo $ECHO_N "(cached) $ECHO_C" >&6 7363else 7364 lt_prog_compiler_static_works=no 7365 save_LDFLAGS="$LDFLAGS" 7366 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7367 printf "$lt_simple_link_test_code" > conftest.$ac_ext 7368 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7369 # The linker can only warn and ignore the option if not recognized 7370 # So say no if there are warnings 7371 if test -s conftest.err; then 7372 # Append any errors to the config.log. 7373 cat conftest.err 1>&5 7374 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7375 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7376 if diff conftest.exp conftest.er2 >/dev/null; then 7377 lt_prog_compiler_static_works=yes 7378 fi 7379 else 7380 lt_prog_compiler_static_works=yes 7381 fi 7382 fi 7383 $rm conftest* 7384 LDFLAGS="$save_LDFLAGS" 7385 7386fi 7387{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 7388echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } 7389 7390if test x"$lt_prog_compiler_static_works" = xyes; then 7391 : 7392else 7393 lt_prog_compiler_static= 7394fi 7395 7396 7397{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7398echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 7399if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7400 echo $ECHO_N "(cached) $ECHO_C" >&6 7401else 7402 lt_cv_prog_compiler_c_o=no 7403 $rm -r conftest 2>/dev/null 7404 mkdir conftest 7405 cd conftest 7406 mkdir out 7407 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7408 7409 lt_compiler_flag="-o out/conftest2.$ac_objext" 7410 # Insert the option either (1) after the last *FLAGS variable, or 7411 # (2) before a word containing "conftest.", or (3) at the end. 7412 # Note that $ac_compile itself does not contain backslashes and begins 7413 # with a dollar sign (not a hyphen), so the echo should work correctly. 7414 lt_compile=`echo "$ac_compile" | $SED \ 7415 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7416 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7417 -e 's:$: $lt_compiler_flag:'` 7418 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 7419 (eval "$lt_compile" 2>out/conftest.err) 7420 ac_status=$? 7421 cat out/conftest.err >&5 7422 echo "$as_me:__oline__: \$? = $ac_status" >&5 7423 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7424 then 7425 # The compiler can only warn and ignore the option if not recognized 7426 # So say no if there are warnings 7427 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7428 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7429 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7430 lt_cv_prog_compiler_c_o=yes 7431 fi 7432 fi 7433 chmod u+w . 2>&5 7434 $rm conftest* 7435 # SGI C++ compiler will create directory out/ii_files/ for 7436 # template instantiation 7437 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 7438 $rm out/* && rmdir out 7439 cd .. 7440 rmdir conftest 7441 $rm conftest* 7442 7443fi 7444{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7445echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 7446 7447 7448hard_links="nottested" 7449if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7450 # do not overwrite the value of need_locks provided by the user 7451 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7452echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 7453 hard_links=yes 7454 $rm conftest* 7455 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7456 touch conftest.a 7457 ln conftest.a conftest.b 2>&5 || hard_links=no 7458 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7459 { echo "$as_me:$LINENO: result: $hard_links" >&5 7460echo "${ECHO_T}$hard_links" >&6; } 7461 if test "$hard_links" = no; then 7462 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7463echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7464 need_locks=warn 7465 fi 7466else 7467 need_locks=no 7468fi 7469 7470{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7471echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 7472 7473 runpath_var= 7474 allow_undefined_flag= 7475 enable_shared_with_static_runtimes=no 7476 archive_cmds= 7477 archive_expsym_cmds= 7478 old_archive_From_new_cmds= 7479 old_archive_from_expsyms_cmds= 7480 export_dynamic_flag_spec= 7481 whole_archive_flag_spec= 7482 thread_safe_flag_spec= 7483 hardcode_libdir_flag_spec= 7484 hardcode_libdir_flag_spec_ld= 7485 hardcode_libdir_separator= 7486 hardcode_direct=no 7487 hardcode_minus_L=no 7488 hardcode_shlibpath_var=unsupported 7489 link_all_deplibs=unknown 7490 hardcode_automatic=no 7491 module_cmds= 7492 module_expsym_cmds= 7493 always_export_symbols=no 7494 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7495 # include_expsyms should be a list of space-separated symbols to be *always* 7496 # included in the symbol list 7497 include_expsyms= 7498 # exclude_expsyms can be an extended regexp of symbols to exclude 7499 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7500 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7501 # as well as any symbol that contains `d'. 7502 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 7503 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7504 # platforms (ab)use it in PIC code, but their linkers get confused if 7505 # the symbol is explicitly referenced. Since portable code cannot 7506 # rely on this symbol name, it's probably fine to never include it in 7507 # preloaded symbol tables. 7508 extract_expsyms_cmds= 7509 # Just being paranoid about ensuring that cc_basename is set. 7510 for cc_temp in $compiler""; do 7511 case $cc_temp in 7512 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7513 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7514 \-*) ;; 7515 *) break;; 7516 esac 7517done 7518cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7519 7520 case $host_os in 7521 cygwin* | mingw* | pw32*) 7522 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7523 # When not using gcc, we currently assume that we are using 7524 # Microsoft Visual C++. 7525 if test "$GCC" != yes; then 7526 with_gnu_ld=no 7527 fi 7528 ;; 7529 interix*) 7530 # we just hope/assume this is gcc and not c89 (= MSVC++) 7531 with_gnu_ld=yes 7532 ;; 7533 openbsd*) 7534 with_gnu_ld=no 7535 ;; 7536 esac 7537 7538 ld_shlibs=yes 7539 if test "$with_gnu_ld" = yes; then 7540 # If archive_cmds runs LD, not CC, wlarc should be empty 7541 wlarc='${wl}' 7542 7543 # Set some defaults for GNU ld with shared library support. These 7544 # are reset later if shared libraries are not supported. Putting them 7545 # here allows them to be overridden if necessary. 7546 runpath_var=LD_RUN_PATH 7547 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 7548 export_dynamic_flag_spec='${wl}--export-dynamic' 7549 # ancient GNU ld didn't support --whole-archive et. al. 7550 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 7551 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7552 else 7553 whole_archive_flag_spec= 7554 fi 7555 supports_anon_versioning=no 7556 case `$LD -v 2>/dev/null` in 7557 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7558 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7559 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7560 *\ 2.11.*) ;; # other 2.11 versions 7561 *) supports_anon_versioning=yes ;; 7562 esac 7563 7564 # See if GNU ld supports shared libraries. 7565 case $host_os in 7566 aix3* | aix4* | aix5*) 7567 # On AIX/PPC, the GNU linker is very broken 7568 if test "$host_cpu" != ia64; then 7569 ld_shlibs=no 7570 cat <<EOF 1>&2 7571 7572*** Warning: the GNU linker, at least up to release 2.9.1, is reported 7573*** to be unable to reliably create shared libraries on AIX. 7574*** Therefore, libtool is disabling shared libraries support. If you 7575*** really care for shared libraries, you may want to modify your PATH 7576*** so that a non-GNU linker is found, and then restart. 7577 7578EOF 7579 fi 7580 ;; 7581 7582 amigaos*) 7583 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)' 7584 hardcode_libdir_flag_spec='-L$libdir' 7585 hardcode_minus_L=yes 7586 7587 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 7588 # that the semantics of dynamic libraries on AmigaOS, at least up 7589 # to version 4, is to share data among multiple programs linked 7590 # with the same dynamic library. Since this doesn't match the 7591 # behavior of shared libraries on other platforms, we can't use 7592 # them. 7593 ld_shlibs=no 7594 ;; 7595 7596 beos*) 7597 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7598 allow_undefined_flag=unsupported 7599 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 7600 # support --undefined. This deserves some investigation. FIXME 7601 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7602 else 7603 ld_shlibs=no 7604 fi 7605 ;; 7606 7607 cygwin* | mingw* | pw32*) 7608 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 7609 # as there is no search path for DLLs. 7610 hardcode_libdir_flag_spec='-L$libdir' 7611 allow_undefined_flag=unsupported 7612 always_export_symbols=no 7613 enable_shared_with_static_runtimes=yes 7614 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 7615 7616 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 7617 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7618 # If the export-symbols file already is a .def file (1st line 7619 # is EXPORTS), use it as is; otherwise, prepend... 7620 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7621 cp $export_symbols $output_objdir/$soname.def; 7622 else 7623 echo EXPORTS > $output_objdir/$soname.def; 7624 cat $export_symbols >> $output_objdir/$soname.def; 7625 fi~ 7626 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7627 else 7628 ld_shlibs=no 7629 fi 7630 ;; 7631 7632 interix3*) 7633 hardcode_direct=no 7634 hardcode_shlibpath_var=no 7635 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7636 export_dynamic_flag_spec='${wl}-E' 7637 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 7638 # Instead, shared libraries are loaded at an image base (0x10000000 by 7639 # default) and relocated if they conflict, which is a slow very memory 7640 # consuming and fragmenting process. To avoid this, we pick a random, 7641 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 7642 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 7643 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 7644 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' 7645 ;; 7646 7647 linux* | k*bsd*-gnu) 7648 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7649 tmp_addflag= 7650 case $cc_basename,$host_cpu in 7651 pgcc*) # Portland Group C compiler 7652 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' 7653 tmp_addflag=' $pic_flag' 7654 ;; 7655 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 7656 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' 7657 tmp_addflag=' $pic_flag -Mnomain' ;; 7658 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 7659 tmp_addflag=' -i_dynamic' ;; 7660 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 7661 tmp_addflag=' -i_dynamic -nofor_main' ;; 7662 ifc* | ifort*) # Intel Fortran compiler 7663 tmp_addflag=' -nofor_main' ;; 7664 esac 7665 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7666 7667 if test $supports_anon_versioning = yes; then 7668 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 7669 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7670 $echo "local: *; };" >> $output_objdir/$libname.ver~ 7671 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 7672 fi 7673 link_all_deplibs=no 7674 else 7675 ld_shlibs=no 7676 fi 7677 ;; 7678 7679 netbsd* | netbsdelf*-gnu) 7680 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7681 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 7682 wlarc= 7683 else 7684 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7685 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7686 fi 7687 ;; 7688 7689 solaris*) 7690 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 7691 ld_shlibs=no 7692 cat <<EOF 1>&2 7693 7694*** Warning: The releases 2.8.* of the GNU linker cannot reliably 7695*** create shared libraries on Solaris systems. Therefore, libtool 7696*** is disabling shared libraries support. We urge you to upgrade GNU 7697*** binutils to release 2.9.1 or newer. Another option is to modify 7698*** your PATH or compiler configuration so that the native linker is 7699*** used, and then restart. 7700 7701EOF 7702 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7703 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7704 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7705 else 7706 ld_shlibs=no 7707 fi 7708 ;; 7709 7710 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 7711 case `$LD -v 2>&1` in 7712 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 7713 ld_shlibs=no 7714 cat <<_LT_EOF 1>&2 7715 7716*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 7717*** reliably create shared libraries on SCO systems. Therefore, libtool 7718*** is disabling shared libraries support. We urge you to upgrade GNU 7719*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 7720*** your PATH or compiler configuration so that the native linker is 7721*** used, and then restart. 7722 7723_LT_EOF 7724 ;; 7725 *) 7726 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7727 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 7728 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 7729 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 7730 else 7731 ld_shlibs=no 7732 fi 7733 ;; 7734 esac 7735 ;; 7736 7737 sunos4*) 7738 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7739 wlarc= 7740 hardcode_direct=yes 7741 hardcode_shlibpath_var=no 7742 ;; 7743 7744 *) 7745 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7746 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7747 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7748 else 7749 ld_shlibs=no 7750 fi 7751 ;; 7752 esac 7753 7754 if test "$ld_shlibs" = no; then 7755 runpath_var= 7756 hardcode_libdir_flag_spec= 7757 export_dynamic_flag_spec= 7758 whole_archive_flag_spec= 7759 fi 7760 else 7761 # PORTME fill in a description of your system's linker (not GNU ld) 7762 case $host_os in 7763 aix3*) 7764 allow_undefined_flag=unsupported 7765 always_export_symbols=yes 7766 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' 7767 # Note: this linker hardcodes the directories in LIBPATH if there 7768 # are no directories specified by -L. 7769 hardcode_minus_L=yes 7770 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 7771 # Neither direct hardcoding nor static linking is supported with a 7772 # broken collect2. 7773 hardcode_direct=unsupported 7774 fi 7775 ;; 7776 7777 aix4* | aix5*) 7778 if test "$host_cpu" = ia64; then 7779 # On IA64, the linker does run time linking by default, so we don't 7780 # have to do anything special. 7781 aix_use_runtimelinking=no 7782 exp_sym_flag='-Bexport' 7783 no_entry_flag="" 7784 else 7785 # If we're using GNU nm, then we don't want the "-C" option. 7786 # -C means demangle to AIX nm, but means don't demangle with GNU nm 7787 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 7788 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' 7789 else 7790 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' 7791 fi 7792 aix_use_runtimelinking=no 7793 7794 # Test if we are trying to use run time linking or normal 7795 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7796 # need to do runtime linking. 7797 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 7798 for ld_flag in $LDFLAGS; do 7799 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 7800 aix_use_runtimelinking=yes 7801 break 7802 fi 7803 done 7804 ;; 7805 esac 7806 7807 exp_sym_flag='-bexport' 7808 no_entry_flag='-bnoentry' 7809 fi 7810 7811 # When large executables or shared objects are built, AIX ld can 7812 # have problems creating the table of contents. If linking a library 7813 # or program results in "error TOC overflow" add -mminimal-toc to 7814 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7815 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7816 7817 archive_cmds='' 7818 hardcode_direct=yes 7819 hardcode_libdir_separator=':' 7820 link_all_deplibs=yes 7821 7822 if test "$GCC" = yes; then 7823 case $host_os in aix4.[012]|aix4.[012].*) 7824 # We only want to do this on AIX 4.2 and lower, the check 7825 # below for broken collect2 doesn't work under 4.3+ 7826 collect2name=`${CC} -print-prog-name=collect2` 7827 if test -f "$collect2name" && \ 7828 strings "$collect2name" | grep resolve_lib_name >/dev/null 7829 then 7830 # We have reworked collect2 7831 hardcode_direct=yes 7832 else 7833 # We have old collect2 7834 hardcode_direct=unsupported 7835 # It fails to find uninstalled libraries when the uninstalled 7836 # path is not listed in the libpath. Setting hardcode_minus_L 7837 # to unsupported forces relinking 7838 hardcode_minus_L=yes 7839 hardcode_libdir_flag_spec='-L$libdir' 7840 hardcode_libdir_separator= 7841 fi 7842 ;; 7843 esac 7844 shared_flag='-shared' 7845 if test "$aix_use_runtimelinking" = yes; then 7846 shared_flag="$shared_flag "'${wl}-G' 7847 fi 7848 else 7849 # not using gcc 7850 if test "$host_cpu" = ia64; then 7851 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7852 # chokes on -Wl,-G. The following line is correct: 7853 shared_flag='-G' 7854 else 7855 if test "$aix_use_runtimelinking" = yes; then 7856 shared_flag='${wl}-G' 7857 else 7858 shared_flag='${wl}-bM:SRE' 7859 fi 7860 fi 7861 fi 7862 7863 # It seems that -bexpall does not export symbols beginning with 7864 # underscore (_), so it is better to generate a list of symbols to export. 7865 always_export_symbols=yes 7866 if test "$aix_use_runtimelinking" = yes; then 7867 # Warning - without using the other runtime loading flags (-brtl), 7868 # -berok will link without error, but may produce a broken library. 7869 allow_undefined_flag='-berok' 7870 # Determine the default libpath from the value encoded in an empty executable. 7871 cat >conftest.$ac_ext <<_ACEOF 7872/* confdefs.h. */ 7873_ACEOF 7874cat confdefs.h >>conftest.$ac_ext 7875cat >>conftest.$ac_ext <<_ACEOF 7876/* end confdefs.h. */ 7877 7878int 7879main () 7880{ 7881 7882 ; 7883 return 0; 7884} 7885_ACEOF 7886rm -f conftest.$ac_objext conftest$ac_exeext 7887if { (ac_try="$ac_link" 7888case "(($ac_try" in 7889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7890 *) ac_try_echo=$ac_try;; 7891esac 7892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7893 (eval "$ac_link") 2>conftest.er1 7894 ac_status=$? 7895 grep -v '^ *+' conftest.er1 >conftest.err 7896 rm -f conftest.er1 7897 cat conftest.err >&5 7898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7899 (exit $ac_status); } && { 7900 test -z "$ac_c_werror_flag" || 7901 test ! -s conftest.err 7902 } && test -s conftest$ac_exeext && 7903 $as_test_x conftest$ac_exeext; then 7904 7905aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7906}'` 7907# Check for a 64-bit object if we didn't find anything. 7908if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7909}'`; fi 7910else 7911 echo "$as_me: failed program was:" >&5 7912sed 's/^/| /' conftest.$ac_ext >&5 7913 7914 7915fi 7916 7917rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7918 conftest$ac_exeext conftest.$ac_ext 7919if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7920 7921 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7922 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" 7923 else 7924 if test "$host_cpu" = ia64; then 7925 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 7926 allow_undefined_flag="-z nodefs" 7927 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" 7928 else 7929 # Determine the default libpath from the value encoded in an empty executable. 7930 cat >conftest.$ac_ext <<_ACEOF 7931/* confdefs.h. */ 7932_ACEOF 7933cat confdefs.h >>conftest.$ac_ext 7934cat >>conftest.$ac_ext <<_ACEOF 7935/* end confdefs.h. */ 7936 7937int 7938main () 7939{ 7940 7941 ; 7942 return 0; 7943} 7944_ACEOF 7945rm -f conftest.$ac_objext conftest$ac_exeext 7946if { (ac_try="$ac_link" 7947case "(($ac_try" in 7948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7949 *) ac_try_echo=$ac_try;; 7950esac 7951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7952 (eval "$ac_link") 2>conftest.er1 7953 ac_status=$? 7954 grep -v '^ *+' conftest.er1 >conftest.err 7955 rm -f conftest.er1 7956 cat conftest.err >&5 7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7958 (exit $ac_status); } && { 7959 test -z "$ac_c_werror_flag" || 7960 test ! -s conftest.err 7961 } && test -s conftest$ac_exeext && 7962 $as_test_x conftest$ac_exeext; then 7963 7964aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7965}'` 7966# Check for a 64-bit object if we didn't find anything. 7967if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7968}'`; fi 7969else 7970 echo "$as_me: failed program was:" >&5 7971sed 's/^/| /' conftest.$ac_ext >&5 7972 7973 7974fi 7975 7976rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7977 conftest$ac_exeext conftest.$ac_ext 7978if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7979 7980 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7981 # Warning - without using the other run time loading flags, 7982 # -berok will link without error, but may produce a broken library. 7983 no_undefined_flag=' ${wl}-bernotok' 7984 allow_undefined_flag=' ${wl}-berok' 7985 # Exported symbols can be pulled into shared objects from archives 7986 whole_archive_flag_spec='$convenience' 7987 archive_cmds_need_lc=yes 7988 # This is similar to how AIX traditionally builds its shared libraries. 7989 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' 7990 fi 7991 fi 7992 ;; 7993 7994 amigaos*) 7995 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)' 7996 hardcode_libdir_flag_spec='-L$libdir' 7997 hardcode_minus_L=yes 7998 # see comment about different semantics on the GNU ld section 7999 ld_shlibs=no 8000 ;; 8001 8002 bsdi[45]*) 8003 export_dynamic_flag_spec=-rdynamic 8004 ;; 8005 8006 cygwin* | mingw* | pw32*) 8007 # When not using gcc, we currently assume that we are using 8008 # Microsoft Visual C++. 8009 # hardcode_libdir_flag_spec is actually meaningless, as there is 8010 # no search path for DLLs. 8011 hardcode_libdir_flag_spec=' ' 8012 allow_undefined_flag=unsupported 8013 # Tell ltmain to make .lib files, not .a files. 8014 libext=lib 8015 # Tell ltmain to make .dll files, not .so files. 8016 shrext_cmds=".dll" 8017 # FIXME: Setting linknames here is a bad hack. 8018 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8019 # The linker will automatically build a .lib file if we build a DLL. 8020 old_archive_From_new_cmds='true' 8021 # FIXME: Should let the user specify the lib program. 8022 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 8023 fix_srcfile_path='`cygpath -w "$srcfile"`' 8024 enable_shared_with_static_runtimes=yes 8025 ;; 8026 8027 darwin* | rhapsody*) 8028 case $host_os in 8029 rhapsody* | darwin1.[012]) 8030 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8031 ;; 8032 *) # Darwin 1.3 on 8033 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8034 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8035 else 8036 case ${MACOSX_DEPLOYMENT_TARGET} in 8037 10.[012]) 8038 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8039 ;; 8040 10.*) 8041 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8042 ;; 8043 esac 8044 fi 8045 ;; 8046 esac 8047 archive_cmds_need_lc=no 8048 hardcode_direct=no 8049 hardcode_automatic=yes 8050 hardcode_shlibpath_var=unsupported 8051 whole_archive_flag_spec='' 8052 link_all_deplibs=yes 8053 if test "$GCC" = yes ; then 8054 output_verbose_link_cmd='echo' 8055 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 8056 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8057 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8058 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}' 8059 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}' 8060 else 8061 case $cc_basename in 8062 xlc*) 8063 output_verbose_link_cmd='echo' 8064 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 8065 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8066 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8067 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}' 8068 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}' 8069 ;; 8070 *) 8071 ld_shlibs=no 8072 ;; 8073 esac 8074 fi 8075 ;; 8076 8077 dgux*) 8078 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8079 hardcode_libdir_flag_spec='-L$libdir' 8080 hardcode_shlibpath_var=no 8081 ;; 8082 8083 freebsd1*) 8084 ld_shlibs=no 8085 ;; 8086 8087 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8088 # support. Future versions do this automatically, but an explicit c++rt0.o 8089 # does not break anything, and helps significantly (at the cost of a little 8090 # extra space). 8091 freebsd2.2*) 8092 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8093 hardcode_libdir_flag_spec='-R$libdir' 8094 hardcode_direct=yes 8095 hardcode_shlibpath_var=no 8096 ;; 8097 8098 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8099 freebsd2*) 8100 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8101 hardcode_direct=yes 8102 hardcode_minus_L=yes 8103 hardcode_shlibpath_var=no 8104 ;; 8105 8106 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8107 freebsd* | dragonfly*) 8108 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8109 hardcode_libdir_flag_spec='-R$libdir' 8110 hardcode_direct=yes 8111 hardcode_shlibpath_var=no 8112 ;; 8113 8114 hpux9*) 8115 if test "$GCC" = yes; then 8116 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' 8117 else 8118 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' 8119 fi 8120 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8121 hardcode_libdir_separator=: 8122 hardcode_direct=yes 8123 8124 # hardcode_minus_L: Not really in the search PATH, 8125 # but as the default location of the library. 8126 hardcode_minus_L=yes 8127 export_dynamic_flag_spec='${wl}-E' 8128 ;; 8129 8130 hpux10*) 8131 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8132 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8133 else 8134 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8135 fi 8136 if test "$with_gnu_ld" = no; then 8137 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8138 hardcode_libdir_separator=: 8139 8140 hardcode_direct=yes 8141 export_dynamic_flag_spec='${wl}-E' 8142 8143 # hardcode_minus_L: Not really in the search PATH, 8144 # but as the default location of the library. 8145 hardcode_minus_L=yes 8146 fi 8147 ;; 8148 8149 hpux11*) 8150 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8151 case $host_cpu in 8152 hppa*64*) 8153 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8154 ;; 8155 ia64*) 8156 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8157 ;; 8158 *) 8159 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8160 ;; 8161 esac 8162 else 8163 case $host_cpu in 8164 hppa*64*) 8165 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8166 ;; 8167 ia64*) 8168 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8169 ;; 8170 *) 8171 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8172 ;; 8173 esac 8174 fi 8175 if test "$with_gnu_ld" = no; then 8176 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8177 hardcode_libdir_separator=: 8178 8179 case $host_cpu in 8180 hppa*64*|ia64*) 8181 hardcode_libdir_flag_spec_ld='+b $libdir' 8182 hardcode_direct=no 8183 hardcode_shlibpath_var=no 8184 ;; 8185 *) 8186 hardcode_direct=yes 8187 export_dynamic_flag_spec='${wl}-E' 8188 8189 # hardcode_minus_L: Not really in the search PATH, 8190 # but as the default location of the library. 8191 hardcode_minus_L=yes 8192 ;; 8193 esac 8194 fi 8195 ;; 8196 8197 irix5* | irix6* | nonstopux*) 8198 if test "$GCC" = yes; then 8199 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' 8200 else 8201 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' 8202 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8203 fi 8204 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8205 hardcode_libdir_separator=: 8206 link_all_deplibs=yes 8207 ;; 8208 8209 netbsd* | netbsdelf*-gnu) 8210 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8211 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8212 else 8213 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8214 fi 8215 hardcode_libdir_flag_spec='-R$libdir' 8216 hardcode_direct=yes 8217 hardcode_shlibpath_var=no 8218 ;; 8219 8220 newsos6) 8221 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8222 hardcode_direct=yes 8223 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8224 hardcode_libdir_separator=: 8225 hardcode_shlibpath_var=no 8226 ;; 8227 8228 openbsd*) 8229 hardcode_direct=yes 8230 hardcode_shlibpath_var=no 8231 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8232 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8233 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8234 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8235 export_dynamic_flag_spec='${wl}-E' 8236 else 8237 case $host_os in 8238 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8239 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8240 hardcode_libdir_flag_spec='-R$libdir' 8241 ;; 8242 *) 8243 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8244 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8245 ;; 8246 esac 8247 fi 8248 ;; 8249 8250 os2*) 8251 hardcode_libdir_flag_spec='-L$libdir' 8252 hardcode_minus_L=yes 8253 allow_undefined_flag=unsupported 8254 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' 8255 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8256 ;; 8257 8258 osf3*) 8259 if test "$GCC" = yes; then 8260 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8261 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' 8262 else 8263 allow_undefined_flag=' -expect_unresolved \*' 8264 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' 8265 fi 8266 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8267 hardcode_libdir_separator=: 8268 ;; 8269 8270 osf4* | osf5*) # as osf3* with the addition of -msym flag 8271 if test "$GCC" = yes; then 8272 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8273 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' 8274 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8275 else 8276 allow_undefined_flag=' -expect_unresolved \*' 8277 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' 8278 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8279 $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' 8280 8281 # Both c and cxx compiler support -rpath directly 8282 hardcode_libdir_flag_spec='-rpath $libdir' 8283 fi 8284 hardcode_libdir_separator=: 8285 ;; 8286 8287 solaris*) 8288 no_undefined_flag=' -z text' 8289 if test "$GCC" = yes; then 8290 wlarc='${wl}' 8291 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8292 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8293 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8294 else 8295 wlarc='' 8296 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8297 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8298 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8299 fi 8300 hardcode_libdir_flag_spec='-R$libdir' 8301 hardcode_shlibpath_var=no 8302 case $host_os in 8303 solaris2.[0-5] | solaris2.[0-5].*) ;; 8304 *) 8305 # The compiler driver will combine linker options so we 8306 # cannot just pass the convience library names through 8307 # without $wl, iff we do not link with $LD. 8308 # Luckily, gcc supports the same syntax we need for Sun Studio. 8309 # Supported since Solaris 2.6 (maybe 2.5.1?) 8310 case $wlarc in 8311 '') 8312 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 8313 *) 8314 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 8315 esac ;; 8316 esac 8317 link_all_deplibs=yes 8318 ;; 8319 8320 sunos4*) 8321 if test "x$host_vendor" = xsequent; then 8322 # Use $CC to link under sequent, because it throws in some extra .o 8323 # files that make .init and .fini sections work. 8324 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8325 else 8326 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8327 fi 8328 hardcode_libdir_flag_spec='-L$libdir' 8329 hardcode_direct=yes 8330 hardcode_minus_L=yes 8331 hardcode_shlibpath_var=no 8332 ;; 8333 8334 sysv4) 8335 case $host_vendor in 8336 sni) 8337 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8338 hardcode_direct=yes # is this really true??? 8339 ;; 8340 siemens) 8341 ## LD is ld it makes a PLAMLIB 8342 ## CC just makes a GrossModule. 8343 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8344 reload_cmds='$CC -r -o $output$reload_objs' 8345 hardcode_direct=no 8346 ;; 8347 motorola) 8348 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8349 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8350 ;; 8351 esac 8352 runpath_var='LD_RUN_PATH' 8353 hardcode_shlibpath_var=no 8354 ;; 8355 8356 sysv4.3*) 8357 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8358 hardcode_shlibpath_var=no 8359 export_dynamic_flag_spec='-Bexport' 8360 ;; 8361 8362 sysv4*MP*) 8363 if test -d /usr/nec; then 8364 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8365 hardcode_shlibpath_var=no 8366 runpath_var=LD_RUN_PATH 8367 hardcode_runpath_var=yes 8368 ld_shlibs=yes 8369 fi 8370 ;; 8371 8372 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 8373 no_undefined_flag='${wl}-z,text' 8374 archive_cmds_need_lc=no 8375 hardcode_shlibpath_var=no 8376 runpath_var='LD_RUN_PATH' 8377 8378 if test "$GCC" = yes; then 8379 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8380 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8381 else 8382 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8383 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8384 fi 8385 ;; 8386 8387 sysv5* | sco3.2v5* | sco5v6*) 8388 # Note: We can NOT use -z defs as we might desire, because we do not 8389 # link with -lc, and that would cause any symbols used from libc to 8390 # always be unresolved, which means just about no library would 8391 # ever link correctly. If we're not using GNU ld we use -z text 8392 # though, which does catch some bad symbols but isn't as heavy-handed 8393 # as -z defs. 8394 no_undefined_flag='${wl}-z,text' 8395 allow_undefined_flag='${wl}-z,nodefs' 8396 archive_cmds_need_lc=no 8397 hardcode_shlibpath_var=no 8398 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 8399 hardcode_libdir_separator=':' 8400 link_all_deplibs=yes 8401 export_dynamic_flag_spec='${wl}-Bexport' 8402 runpath_var='LD_RUN_PATH' 8403 8404 if test "$GCC" = yes; then 8405 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8406 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8407 else 8408 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8409 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8410 fi 8411 ;; 8412 8413 uts4*) 8414 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8415 hardcode_libdir_flag_spec='-L$libdir' 8416 hardcode_shlibpath_var=no 8417 ;; 8418 8419 *) 8420 ld_shlibs=no 8421 ;; 8422 esac 8423 fi 8424 8425{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 8426echo "${ECHO_T}$ld_shlibs" >&6; } 8427test "$ld_shlibs" = no && can_build_shared=no 8428 8429# 8430# Do we need to explicitly link libc? 8431# 8432case "x$archive_cmds_need_lc" in 8433x|xyes) 8434 # Assume -lc should be added 8435 archive_cmds_need_lc=yes 8436 8437 if test "$enable_shared" = yes && test "$GCC" = yes; then 8438 case $archive_cmds in 8439 *'~'*) 8440 # FIXME: we may have to deal with multi-command sequences. 8441 ;; 8442 '$CC '*) 8443 # Test whether the compiler implicitly links with -lc since on some 8444 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8445 # to ld, don't add -lc before -lgcc. 8446 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 8447echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 8448 $rm conftest* 8449 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8450 8451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8452 (eval $ac_compile) 2>&5 8453 ac_status=$? 8454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8455 (exit $ac_status); } 2>conftest.err; then 8456 soname=conftest 8457 lib=conftest 8458 libobjs=conftest.$ac_objext 8459 deplibs= 8460 wl=$lt_prog_compiler_wl 8461 pic_flag=$lt_prog_compiler_pic 8462 compiler_flags=-v 8463 linker_flags=-v 8464 verstring= 8465 output_objdir=. 8466 libname=conftest 8467 lt_save_allow_undefined_flag=$allow_undefined_flag 8468 allow_undefined_flag= 8469 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 8470 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 8471 ac_status=$? 8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8473 (exit $ac_status); } 8474 then 8475 archive_cmds_need_lc=no 8476 else 8477 archive_cmds_need_lc=yes 8478 fi 8479 allow_undefined_flag=$lt_save_allow_undefined_flag 8480 else 8481 cat conftest.err 1>&5 8482 fi 8483 $rm conftest* 8484 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 8485echo "${ECHO_T}$archive_cmds_need_lc" >&6; } 8486 ;; 8487 esac 8488 fi 8489 ;; 8490esac 8491 8492{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8493echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 8494library_names_spec= 8495libname_spec='lib$name' 8496soname_spec= 8497shrext_cmds=".so" 8498postinstall_cmds= 8499postuninstall_cmds= 8500finish_cmds= 8501finish_eval= 8502shlibpath_var= 8503shlibpath_overrides_runpath=unknown 8504version_type=none 8505dynamic_linker="$host_os ld.so" 8506sys_lib_dlsearch_path_spec="/lib /usr/lib" 8507if test "$GCC" = yes; then 8508 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8509 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 8510 # if the path contains ";" then we assume it to be the separator 8511 # otherwise default to the standard path separator (i.e. ":") - it is 8512 # assumed that no part of a normal pathname contains ";" but that should 8513 # okay in the real world where ";" in dirpaths is itself problematic. 8514 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8515 else 8516 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8517 fi 8518else 8519 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8520fi 8521need_lib_prefix=unknown 8522hardcode_into_libs=no 8523 8524# when you set need_version to no, make sure it does not cause -set_version 8525# flags to be left without arguments 8526need_version=unknown 8527 8528case $host_os in 8529aix3*) 8530 version_type=linux 8531 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8532 shlibpath_var=LIBPATH 8533 8534 # AIX 3 has no versioning support, so we append a major version to the name. 8535 soname_spec='${libname}${release}${shared_ext}$major' 8536 ;; 8537 8538aix4* | aix5*) 8539 version_type=linux 8540 need_lib_prefix=no 8541 need_version=no 8542 hardcode_into_libs=yes 8543 if test "$host_cpu" = ia64; then 8544 # AIX 5 supports IA64 8545 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8546 shlibpath_var=LD_LIBRARY_PATH 8547 else 8548 # With GCC up to 2.95.x, collect2 would create an import file 8549 # for dependence libraries. The import file would start with 8550 # the line `#! .'. This would cause the generated library to 8551 # depend on `.', always an invalid library. This was fixed in 8552 # development snapshots of GCC prior to 3.0. 8553 case $host_os in 8554 aix4 | aix4.[01] | aix4.[01].*) 8555 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8556 echo ' yes ' 8557 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 8558 : 8559 else 8560 can_build_shared=no 8561 fi 8562 ;; 8563 esac 8564 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8565 # soname into executable. Probably we can add versioning support to 8566 # collect2, so additional links can be useful in future. 8567 if test "$aix_use_runtimelinking" = yes; then 8568 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 8569 # instead of lib<name>.a to let people know that these are not 8570 # typical AIX shared libraries. 8571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8572 else 8573 # We preserve .a as extension for shared libraries through AIX4.2 8574 # and later when we are not doing run time linking. 8575 library_names_spec='${libname}${release}.a $libname.a' 8576 soname_spec='${libname}${release}${shared_ext}$major' 8577 fi 8578 shlibpath_var=LIBPATH 8579 fi 8580 ;; 8581 8582amigaos*) 8583 library_names_spec='$libname.ixlibrary $libname.a' 8584 # Create ${libname}_ixlibrary.a entries in /sys/libs. 8585 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' 8586 ;; 8587 8588beos*) 8589 library_names_spec='${libname}${shared_ext}' 8590 dynamic_linker="$host_os ld.so" 8591 shlibpath_var=LIBRARY_PATH 8592 ;; 8593 8594bsdi[45]*) 8595 version_type=linux 8596 need_version=no 8597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8598 soname_spec='${libname}${release}${shared_ext}$major' 8599 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 8600 shlibpath_var=LD_LIBRARY_PATH 8601 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 8602 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 8603 # the default ld.so.conf also contains /usr/contrib/lib and 8604 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 8605 # libtool to hard-code these into programs 8606 ;; 8607 8608cygwin* | mingw* | pw32*) 8609 version_type=windows 8610 shrext_cmds=".dll" 8611 need_version=no 8612 need_lib_prefix=no 8613 8614 case $GCC,$host_os in 8615 yes,cygwin* | yes,mingw* | yes,pw32*) 8616 library_names_spec='$libname.dll.a' 8617 # DLL is installed to $(libdir)/../bin by postinstall_cmds 8618 postinstall_cmds='base_file=`basename \${file}`~ 8619 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 8620 dldir=$destdir/`dirname \$dlpath`~ 8621 test -d \$dldir || mkdir -p \$dldir~ 8622 $install_prog $dir/$dlname \$dldir/$dlname~ 8623 chmod a+x \$dldir/$dlname' 8624 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 8625 dlpath=$dir/\$dldll~ 8626 $rm \$dlpath' 8627 shlibpath_overrides_runpath=yes 8628 8629 case $host_os in 8630 cygwin*) 8631 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 8632 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8633 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 8634 ;; 8635 mingw*) 8636 # MinGW DLLs use traditional 'lib' prefix 8637 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8638 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8639 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 8640 # It is most probably a Windows format PATH printed by 8641 # mingw gcc, but we are running on Cygwin. Gcc prints its search 8642 # path with ; separators, and with drive letters. We can handle the 8643 # drive letters (cygwin fileutils understands them), so leave them, 8644 # especially as we might pass files found there to a mingw objdump, 8645 # which wouldn't understand a cygwinified path. Ahh. 8646 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8647 else 8648 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8649 fi 8650 ;; 8651 pw32*) 8652 # pw32 DLLs use 'pw' prefix rather than 'lib' 8653 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8654 ;; 8655 esac 8656 ;; 8657 8658 *) 8659 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 8660 ;; 8661 esac 8662 dynamic_linker='Win32 ld.exe' 8663 # FIXME: first we should search . and the directory the executable is in 8664 shlibpath_var=PATH 8665 ;; 8666 8667darwin* | rhapsody*) 8668 dynamic_linker="$host_os dyld" 8669 version_type=darwin 8670 need_lib_prefix=no 8671 need_version=no 8672 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 8673 soname_spec='${libname}${release}${major}$shared_ext' 8674 shlibpath_overrides_runpath=yes 8675 shlibpath_var=DYLD_LIBRARY_PATH 8676 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 8677 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 8678 if test "$GCC" = yes; then 8679 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"` 8680 else 8681 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 8682 fi 8683 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 8684 ;; 8685 8686dgux*) 8687 version_type=linux 8688 need_lib_prefix=no 8689 need_version=no 8690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 8691 soname_spec='${libname}${release}${shared_ext}$major' 8692 shlibpath_var=LD_LIBRARY_PATH 8693 ;; 8694 8695freebsd1*) 8696 dynamic_linker=no 8697 ;; 8698 8699freebsd* | dragonfly*) 8700 # DragonFly does not have aout. When/if they implement a new 8701 # versioning mechanism, adjust this. 8702 if test -x /usr/bin/objformat; then 8703 objformat=`/usr/bin/objformat` 8704 else 8705 case $host_os in 8706 freebsd[123]*) objformat=aout ;; 8707 *) objformat=elf ;; 8708 esac 8709 fi 8710 version_type=freebsd-$objformat 8711 case $version_type in 8712 freebsd-elf*) 8713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8714 need_version=no 8715 need_lib_prefix=no 8716 ;; 8717 freebsd-*) 8718 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 8719 need_version=yes 8720 ;; 8721 esac 8722 shlibpath_var=LD_LIBRARY_PATH 8723 case $host_os in 8724 freebsd2*) 8725 shlibpath_overrides_runpath=yes 8726 ;; 8727 freebsd3.[01]* | freebsdelf3.[01]*) 8728 shlibpath_overrides_runpath=yes 8729 hardcode_into_libs=yes 8730 ;; 8731 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 8732 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 8733 shlibpath_overrides_runpath=no 8734 hardcode_into_libs=yes 8735 ;; 8736 freebsd*) # from 4.6 on 8737 shlibpath_overrides_runpath=yes 8738 hardcode_into_libs=yes 8739 ;; 8740 esac 8741 ;; 8742 8743gnu*) 8744 version_type=linux 8745 need_lib_prefix=no 8746 need_version=no 8747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 8748 soname_spec='${libname}${release}${shared_ext}$major' 8749 shlibpath_var=LD_LIBRARY_PATH 8750 hardcode_into_libs=yes 8751 ;; 8752 8753hpux9* | hpux10* | hpux11*) 8754 # Give a soname corresponding to the major version so that dld.sl refuses to 8755 # link against other versions. 8756 version_type=sunos 8757 need_lib_prefix=no 8758 need_version=no 8759 case $host_cpu in 8760 ia64*) 8761 shrext_cmds='.so' 8762 hardcode_into_libs=yes 8763 dynamic_linker="$host_os dld.so" 8764 shlibpath_var=LD_LIBRARY_PATH 8765 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8767 soname_spec='${libname}${release}${shared_ext}$major' 8768 if test "X$HPUX_IA64_MODE" = X32; then 8769 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 8770 else 8771 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 8772 fi 8773 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8774 ;; 8775 hppa*64*) 8776 shrext_cmds='.sl' 8777 hardcode_into_libs=yes 8778 dynamic_linker="$host_os dld.sl" 8779 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 8780 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8782 soname_spec='${libname}${release}${shared_ext}$major' 8783 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 8784 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8785 ;; 8786 *) 8787 shrext_cmds='.sl' 8788 dynamic_linker="$host_os dld.sl" 8789 shlibpath_var=SHLIB_PATH 8790 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 8791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8792 soname_spec='${libname}${release}${shared_ext}$major' 8793 ;; 8794 esac 8795 # HP-UX runs *really* slowly unless shared libraries are mode 555. 8796 postinstall_cmds='chmod 555 $lib' 8797 ;; 8798 8799interix3*) 8800 version_type=linux 8801 need_lib_prefix=no 8802 need_version=no 8803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8804 soname_spec='${libname}${release}${shared_ext}$major' 8805 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 8806 shlibpath_var=LD_LIBRARY_PATH 8807 shlibpath_overrides_runpath=no 8808 hardcode_into_libs=yes 8809 ;; 8810 8811irix5* | irix6* | nonstopux*) 8812 case $host_os in 8813 nonstopux*) version_type=nonstopux ;; 8814 *) 8815 if test "$lt_cv_prog_gnu_ld" = yes; then 8816 version_type=linux 8817 else 8818 version_type=irix 8819 fi ;; 8820 esac 8821 need_lib_prefix=no 8822 need_version=no 8823 soname_spec='${libname}${release}${shared_ext}$major' 8824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 8825 case $host_os in 8826 irix5* | nonstopux*) 8827 libsuff= shlibsuff= 8828 ;; 8829 *) 8830 case $LD in # libtool.m4 will add one of these switches to LD 8831 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 8832 libsuff= shlibsuff= libmagic=32-bit;; 8833 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 8834 libsuff=32 shlibsuff=N32 libmagic=N32;; 8835 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 8836 libsuff=64 shlibsuff=64 libmagic=64-bit;; 8837 *) libsuff= shlibsuff= libmagic=never-match;; 8838 esac 8839 ;; 8840 esac 8841 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 8842 shlibpath_overrides_runpath=no 8843 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 8844 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 8845 hardcode_into_libs=yes 8846 ;; 8847 8848# No shared lib support for Linux oldld, aout, or coff. 8849linux*oldld* | linux*aout* | linux*coff*) 8850 dynamic_linker=no 8851 ;; 8852 8853# This must be Linux ELF. 8854linux* | k*bsd*-gnu) 8855 version_type=linux 8856 need_lib_prefix=no 8857 need_version=no 8858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8859 soname_spec='${libname}${release}${shared_ext}$major' 8860 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 8861 shlibpath_var=LD_LIBRARY_PATH 8862 shlibpath_overrides_runpath=no 8863 # This implies no fast_install, which is unacceptable. 8864 # Some rework will be needed to allow for fast_install 8865 # before this can be enabled. 8866 hardcode_into_libs=yes 8867 8868 # Append ld.so.conf contents to the search path 8869 if test -f /etc/ld.so.conf; then 8870 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 8871 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 8872 fi 8873 8874 # We used to test for /lib/ld.so.1 and disable shared libraries on 8875 # powerpc, because MkLinux only supported shared libraries with the 8876 # GNU dynamic linker. Since this was broken with cross compilers, 8877 # most powerpc-linux boxes support dynamic linking these days and 8878 # people can always --disable-shared, the test was removed, and we 8879 # assume the GNU/Linux dynamic linker is in use. 8880 dynamic_linker='GNU/Linux ld.so' 8881 ;; 8882 8883netbsdelf*-gnu) 8884 version_type=linux 8885 need_lib_prefix=no 8886 need_version=no 8887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8888 soname_spec='${libname}${release}${shared_ext}$major' 8889 shlibpath_var=LD_LIBRARY_PATH 8890 shlibpath_overrides_runpath=no 8891 hardcode_into_libs=yes 8892 dynamic_linker='NetBSD ld.elf_so' 8893 ;; 8894 8895netbsd*) 8896 version_type=sunos 8897 need_lib_prefix=no 8898 need_version=no 8899 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8901 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8902 dynamic_linker='NetBSD (a.out) ld.so' 8903 else 8904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8905 soname_spec='${libname}${release}${shared_ext}$major' 8906 dynamic_linker='NetBSD ld.elf_so' 8907 fi 8908 shlibpath_var=LD_LIBRARY_PATH 8909 shlibpath_overrides_runpath=yes 8910 hardcode_into_libs=yes 8911 ;; 8912 8913newsos6) 8914 version_type=linux 8915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8916 shlibpath_var=LD_LIBRARY_PATH 8917 shlibpath_overrides_runpath=yes 8918 ;; 8919 8920nto-qnx*) 8921 version_type=linux 8922 need_lib_prefix=no 8923 need_version=no 8924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8925 soname_spec='${libname}${release}${shared_ext}$major' 8926 shlibpath_var=LD_LIBRARY_PATH 8927 shlibpath_overrides_runpath=yes 8928 ;; 8929 8930openbsd*) 8931 version_type=sunos 8932 sys_lib_dlsearch_path_spec="/usr/lib" 8933 need_lib_prefix=no 8934 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 8935 case $host_os in 8936 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 8937 *) need_version=no ;; 8938 esac 8939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8940 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8941 shlibpath_var=LD_LIBRARY_PATH 8942 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8943 case $host_os in 8944 openbsd2.[89] | openbsd2.[89].*) 8945 shlibpath_overrides_runpath=no 8946 ;; 8947 *) 8948 shlibpath_overrides_runpath=yes 8949 ;; 8950 esac 8951 else 8952 shlibpath_overrides_runpath=yes 8953 fi 8954 ;; 8955 8956os2*) 8957 libname_spec='$name' 8958 shrext_cmds=".dll" 8959 need_lib_prefix=no 8960 library_names_spec='$libname${shared_ext} $libname.a' 8961 dynamic_linker='OS/2 ld.exe' 8962 shlibpath_var=LIBPATH 8963 ;; 8964 8965osf3* | osf4* | osf5*) 8966 version_type=osf 8967 need_lib_prefix=no 8968 need_version=no 8969 soname_spec='${libname}${release}${shared_ext}$major' 8970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8971 shlibpath_var=LD_LIBRARY_PATH 8972 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 8973 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 8974 ;; 8975 8976solaris*) 8977 version_type=linux 8978 need_lib_prefix=no 8979 need_version=no 8980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8981 soname_spec='${libname}${release}${shared_ext}$major' 8982 shlibpath_var=LD_LIBRARY_PATH 8983 shlibpath_overrides_runpath=yes 8984 hardcode_into_libs=yes 8985 # ldd complains unless libraries are executable 8986 postinstall_cmds='chmod +x $lib' 8987 ;; 8988 8989sunos4*) 8990 version_type=sunos 8991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8992 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 8993 shlibpath_var=LD_LIBRARY_PATH 8994 shlibpath_overrides_runpath=yes 8995 if test "$with_gnu_ld" = yes; then 8996 need_lib_prefix=no 8997 fi 8998 need_version=yes 8999 ;; 9000 9001sysv4 | sysv4.3*) 9002 version_type=linux 9003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9004 soname_spec='${libname}${release}${shared_ext}$major' 9005 shlibpath_var=LD_LIBRARY_PATH 9006 case $host_vendor in 9007 sni) 9008 shlibpath_overrides_runpath=no 9009 need_lib_prefix=no 9010 export_dynamic_flag_spec='${wl}-Blargedynsym' 9011 runpath_var=LD_RUN_PATH 9012 ;; 9013 siemens) 9014 need_lib_prefix=no 9015 ;; 9016 motorola) 9017 need_lib_prefix=no 9018 need_version=no 9019 shlibpath_overrides_runpath=no 9020 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9021 ;; 9022 esac 9023 ;; 9024 9025sysv4*MP*) 9026 if test -d /usr/nec ;then 9027 version_type=linux 9028 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9029 soname_spec='$libname${shared_ext}.$major' 9030 shlibpath_var=LD_LIBRARY_PATH 9031 fi 9032 ;; 9033 9034sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9035 version_type=freebsd-elf 9036 need_lib_prefix=no 9037 need_version=no 9038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9039 soname_spec='${libname}${release}${shared_ext}$major' 9040 shlibpath_var=LD_LIBRARY_PATH 9041 hardcode_into_libs=yes 9042 if test "$with_gnu_ld" = yes; then 9043 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9044 shlibpath_overrides_runpath=no 9045 else 9046 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9047 shlibpath_overrides_runpath=yes 9048 case $host_os in 9049 sco3.2v5*) 9050 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9051 ;; 9052 esac 9053 fi 9054 sys_lib_dlsearch_path_spec='/usr/lib' 9055 ;; 9056 9057uts4*) 9058 version_type=linux 9059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9060 soname_spec='${libname}${release}${shared_ext}$major' 9061 shlibpath_var=LD_LIBRARY_PATH 9062 ;; 9063 9064*) 9065 dynamic_linker=no 9066 ;; 9067esac 9068{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9069echo "${ECHO_T}$dynamic_linker" >&6; } 9070test "$dynamic_linker" = no && can_build_shared=no 9071 9072variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9073if test "$GCC" = yes; then 9074 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9075fi 9076 9077{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9078echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 9079hardcode_action= 9080if test -n "$hardcode_libdir_flag_spec" || \ 9081 test -n "$runpath_var" || \ 9082 test "X$hardcode_automatic" = "Xyes" ; then 9083 9084 # We can hardcode non-existant directories. 9085 if test "$hardcode_direct" != no && 9086 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9087 # have to relink, otherwise we might link with an installed library 9088 # when we should be linking with a yet-to-be-installed one 9089 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9090 test "$hardcode_minus_L" != no; then 9091 # Linking always hardcodes the temporary library directory. 9092 hardcode_action=relink 9093 else 9094 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9095 hardcode_action=immediate 9096 fi 9097else 9098 # We cannot hardcode anything, or else we can only hardcode existing 9099 # directories. 9100 hardcode_action=unsupported 9101fi 9102{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 9103echo "${ECHO_T}$hardcode_action" >&6; } 9104 9105if test "$hardcode_action" = relink; then 9106 # Fast installation is not supported 9107 enable_fast_install=no 9108elif test "$shlibpath_overrides_runpath" = yes || 9109 test "$enable_shared" = no; then 9110 # Fast installation is not necessary 9111 enable_fast_install=needless 9112fi 9113 9114striplib= 9115old_striplib= 9116{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9117echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } 9118if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9119 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9120 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9121 { echo "$as_me:$LINENO: result: yes" >&5 9122echo "${ECHO_T}yes" >&6; } 9123else 9124# FIXME - insert some real tests, host_os isn't really good enough 9125 case $host_os in 9126 darwin*) 9127 if test -n "$STRIP" ; then 9128 striplib="$STRIP -x" 9129 { echo "$as_me:$LINENO: result: yes" >&5 9130echo "${ECHO_T}yes" >&6; } 9131 else 9132 { echo "$as_me:$LINENO: result: no" >&5 9133echo "${ECHO_T}no" >&6; } 9134fi 9135 ;; 9136 *) 9137 { echo "$as_me:$LINENO: result: no" >&5 9138echo "${ECHO_T}no" >&6; } 9139 ;; 9140 esac 9141fi 9142 9143if test "x$enable_dlopen" != xyes; then 9144 enable_dlopen=unknown 9145 enable_dlopen_self=unknown 9146 enable_dlopen_self_static=unknown 9147else 9148 lt_cv_dlopen=no 9149 lt_cv_dlopen_libs= 9150 9151 case $host_os in 9152 beos*) 9153 lt_cv_dlopen="load_add_on" 9154 lt_cv_dlopen_libs= 9155 lt_cv_dlopen_self=yes 9156 ;; 9157 9158 mingw* | pw32*) 9159 lt_cv_dlopen="LoadLibrary" 9160 lt_cv_dlopen_libs= 9161 ;; 9162 9163 cygwin*) 9164 lt_cv_dlopen="dlopen" 9165 lt_cv_dlopen_libs= 9166 ;; 9167 9168 darwin*) 9169 # if libdl is installed we need to link against it 9170 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9171echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9172if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9173 echo $ECHO_N "(cached) $ECHO_C" >&6 9174else 9175 ac_check_lib_save_LIBS=$LIBS 9176LIBS="-ldl $LIBS" 9177cat >conftest.$ac_ext <<_ACEOF 9178/* confdefs.h. */ 9179_ACEOF 9180cat confdefs.h >>conftest.$ac_ext 9181cat >>conftest.$ac_ext <<_ACEOF 9182/* end confdefs.h. */ 9183 9184/* Override any GCC internal prototype to avoid an error. 9185 Use char because int might match the return type of a GCC 9186 builtin and then its argument prototype would still apply. */ 9187#ifdef __cplusplus 9188extern "C" 9189#endif 9190char dlopen (); 9191int 9192main () 9193{ 9194return dlopen (); 9195 ; 9196 return 0; 9197} 9198_ACEOF 9199rm -f conftest.$ac_objext conftest$ac_exeext 9200if { (ac_try="$ac_link" 9201case "(($ac_try" in 9202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9203 *) ac_try_echo=$ac_try;; 9204esac 9205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9206 (eval "$ac_link") 2>conftest.er1 9207 ac_status=$? 9208 grep -v '^ *+' conftest.er1 >conftest.err 9209 rm -f conftest.er1 9210 cat conftest.err >&5 9211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9212 (exit $ac_status); } && { 9213 test -z "$ac_c_werror_flag" || 9214 test ! -s conftest.err 9215 } && test -s conftest$ac_exeext && 9216 $as_test_x conftest$ac_exeext; then 9217 ac_cv_lib_dl_dlopen=yes 9218else 9219 echo "$as_me: failed program was:" >&5 9220sed 's/^/| /' conftest.$ac_ext >&5 9221 9222 ac_cv_lib_dl_dlopen=no 9223fi 9224 9225rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9226 conftest$ac_exeext conftest.$ac_ext 9227LIBS=$ac_check_lib_save_LIBS 9228fi 9229{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9230echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9231if test $ac_cv_lib_dl_dlopen = yes; then 9232 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9233else 9234 9235 lt_cv_dlopen="dyld" 9236 lt_cv_dlopen_libs= 9237 lt_cv_dlopen_self=yes 9238 9239fi 9240 9241 ;; 9242 9243 *) 9244 { echo "$as_me:$LINENO: checking for shl_load" >&5 9245echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 9246if test "${ac_cv_func_shl_load+set}" = set; then 9247 echo $ECHO_N "(cached) $ECHO_C" >&6 9248else 9249 cat >conftest.$ac_ext <<_ACEOF 9250/* confdefs.h. */ 9251_ACEOF 9252cat confdefs.h >>conftest.$ac_ext 9253cat >>conftest.$ac_ext <<_ACEOF 9254/* end confdefs.h. */ 9255/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9256 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9257#define shl_load innocuous_shl_load 9258 9259/* System header to define __stub macros and hopefully few prototypes, 9260 which can conflict with char shl_load (); below. 9261 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9262 <limits.h> exists even on freestanding compilers. */ 9263 9264#ifdef __STDC__ 9265# include <limits.h> 9266#else 9267# include <assert.h> 9268#endif 9269 9270#undef shl_load 9271 9272/* Override any GCC internal prototype to avoid an error. 9273 Use char because int might match the return type of a GCC 9274 builtin and then its argument prototype would still apply. */ 9275#ifdef __cplusplus 9276extern "C" 9277#endif 9278char shl_load (); 9279/* The GNU C library defines this for functions which it implements 9280 to always fail with ENOSYS. Some functions are actually named 9281 something starting with __ and the normal name is an alias. */ 9282#if defined __stub_shl_load || defined __stub___shl_load 9283choke me 9284#endif 9285 9286int 9287main () 9288{ 9289return shl_load (); 9290 ; 9291 return 0; 9292} 9293_ACEOF 9294rm -f conftest.$ac_objext conftest$ac_exeext 9295if { (ac_try="$ac_link" 9296case "(($ac_try" in 9297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9298 *) ac_try_echo=$ac_try;; 9299esac 9300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9301 (eval "$ac_link") 2>conftest.er1 9302 ac_status=$? 9303 grep -v '^ *+' conftest.er1 >conftest.err 9304 rm -f conftest.er1 9305 cat conftest.err >&5 9306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9307 (exit $ac_status); } && { 9308 test -z "$ac_c_werror_flag" || 9309 test ! -s conftest.err 9310 } && test -s conftest$ac_exeext && 9311 $as_test_x conftest$ac_exeext; then 9312 ac_cv_func_shl_load=yes 9313else 9314 echo "$as_me: failed program was:" >&5 9315sed 's/^/| /' conftest.$ac_ext >&5 9316 9317 ac_cv_func_shl_load=no 9318fi 9319 9320rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9321 conftest$ac_exeext conftest.$ac_ext 9322fi 9323{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9324echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 9325if test $ac_cv_func_shl_load = yes; then 9326 lt_cv_dlopen="shl_load" 9327else 9328 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9329echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 9330if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9331 echo $ECHO_N "(cached) $ECHO_C" >&6 9332else 9333 ac_check_lib_save_LIBS=$LIBS 9334LIBS="-ldld $LIBS" 9335cat >conftest.$ac_ext <<_ACEOF 9336/* confdefs.h. */ 9337_ACEOF 9338cat confdefs.h >>conftest.$ac_ext 9339cat >>conftest.$ac_ext <<_ACEOF 9340/* end confdefs.h. */ 9341 9342/* Override any GCC internal prototype to avoid an error. 9343 Use char because int might match the return type of a GCC 9344 builtin and then its argument prototype would still apply. */ 9345#ifdef __cplusplus 9346extern "C" 9347#endif 9348char shl_load (); 9349int 9350main () 9351{ 9352return shl_load (); 9353 ; 9354 return 0; 9355} 9356_ACEOF 9357rm -f conftest.$ac_objext conftest$ac_exeext 9358if { (ac_try="$ac_link" 9359case "(($ac_try" in 9360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9361 *) ac_try_echo=$ac_try;; 9362esac 9363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9364 (eval "$ac_link") 2>conftest.er1 9365 ac_status=$? 9366 grep -v '^ *+' conftest.er1 >conftest.err 9367 rm -f conftest.er1 9368 cat conftest.err >&5 9369 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9370 (exit $ac_status); } && { 9371 test -z "$ac_c_werror_flag" || 9372 test ! -s conftest.err 9373 } && test -s conftest$ac_exeext && 9374 $as_test_x conftest$ac_exeext; then 9375 ac_cv_lib_dld_shl_load=yes 9376else 9377 echo "$as_me: failed program was:" >&5 9378sed 's/^/| /' conftest.$ac_ext >&5 9379 9380 ac_cv_lib_dld_shl_load=no 9381fi 9382 9383rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9384 conftest$ac_exeext conftest.$ac_ext 9385LIBS=$ac_check_lib_save_LIBS 9386fi 9387{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9388echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 9389if test $ac_cv_lib_dld_shl_load = yes; then 9390 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 9391else 9392 { echo "$as_me:$LINENO: checking for dlopen" >&5 9393echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 9394if test "${ac_cv_func_dlopen+set}" = set; then 9395 echo $ECHO_N "(cached) $ECHO_C" >&6 9396else 9397 cat >conftest.$ac_ext <<_ACEOF 9398/* confdefs.h. */ 9399_ACEOF 9400cat confdefs.h >>conftest.$ac_ext 9401cat >>conftest.$ac_ext <<_ACEOF 9402/* end confdefs.h. */ 9403/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 9404 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9405#define dlopen innocuous_dlopen 9406 9407/* System header to define __stub macros and hopefully few prototypes, 9408 which can conflict with char dlopen (); below. 9409 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9410 <limits.h> exists even on freestanding compilers. */ 9411 9412#ifdef __STDC__ 9413# include <limits.h> 9414#else 9415# include <assert.h> 9416#endif 9417 9418#undef dlopen 9419 9420/* Override any GCC internal prototype to avoid an error. 9421 Use char because int might match the return type of a GCC 9422 builtin and then its argument prototype would still apply. */ 9423#ifdef __cplusplus 9424extern "C" 9425#endif 9426char dlopen (); 9427/* The GNU C library defines this for functions which it implements 9428 to always fail with ENOSYS. Some functions are actually named 9429 something starting with __ and the normal name is an alias. */ 9430#if defined __stub_dlopen || defined __stub___dlopen 9431choke me 9432#endif 9433 9434int 9435main () 9436{ 9437return dlopen (); 9438 ; 9439 return 0; 9440} 9441_ACEOF 9442rm -f conftest.$ac_objext conftest$ac_exeext 9443if { (ac_try="$ac_link" 9444case "(($ac_try" in 9445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9446 *) ac_try_echo=$ac_try;; 9447esac 9448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9449 (eval "$ac_link") 2>conftest.er1 9450 ac_status=$? 9451 grep -v '^ *+' conftest.er1 >conftest.err 9452 rm -f conftest.er1 9453 cat conftest.err >&5 9454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9455 (exit $ac_status); } && { 9456 test -z "$ac_c_werror_flag" || 9457 test ! -s conftest.err 9458 } && test -s conftest$ac_exeext && 9459 $as_test_x conftest$ac_exeext; then 9460 ac_cv_func_dlopen=yes 9461else 9462 echo "$as_me: failed program was:" >&5 9463sed 's/^/| /' conftest.$ac_ext >&5 9464 9465 ac_cv_func_dlopen=no 9466fi 9467 9468rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9469 conftest$ac_exeext conftest.$ac_ext 9470fi 9471{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 9472echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 9473if test $ac_cv_func_dlopen = yes; then 9474 lt_cv_dlopen="dlopen" 9475else 9476 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9477echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9478if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9479 echo $ECHO_N "(cached) $ECHO_C" >&6 9480else 9481 ac_check_lib_save_LIBS=$LIBS 9482LIBS="-ldl $LIBS" 9483cat >conftest.$ac_ext <<_ACEOF 9484/* confdefs.h. */ 9485_ACEOF 9486cat confdefs.h >>conftest.$ac_ext 9487cat >>conftest.$ac_ext <<_ACEOF 9488/* end confdefs.h. */ 9489 9490/* Override any GCC internal prototype to avoid an error. 9491 Use char because int might match the return type of a GCC 9492 builtin and then its argument prototype would still apply. */ 9493#ifdef __cplusplus 9494extern "C" 9495#endif 9496char dlopen (); 9497int 9498main () 9499{ 9500return dlopen (); 9501 ; 9502 return 0; 9503} 9504_ACEOF 9505rm -f conftest.$ac_objext conftest$ac_exeext 9506if { (ac_try="$ac_link" 9507case "(($ac_try" in 9508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9509 *) ac_try_echo=$ac_try;; 9510esac 9511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9512 (eval "$ac_link") 2>conftest.er1 9513 ac_status=$? 9514 grep -v '^ *+' conftest.er1 >conftest.err 9515 rm -f conftest.er1 9516 cat conftest.err >&5 9517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9518 (exit $ac_status); } && { 9519 test -z "$ac_c_werror_flag" || 9520 test ! -s conftest.err 9521 } && test -s conftest$ac_exeext && 9522 $as_test_x conftest$ac_exeext; then 9523 ac_cv_lib_dl_dlopen=yes 9524else 9525 echo "$as_me: failed program was:" >&5 9526sed 's/^/| /' conftest.$ac_ext >&5 9527 9528 ac_cv_lib_dl_dlopen=no 9529fi 9530 9531rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9532 conftest$ac_exeext conftest.$ac_ext 9533LIBS=$ac_check_lib_save_LIBS 9534fi 9535{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9536echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9537if test $ac_cv_lib_dl_dlopen = yes; then 9538 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9539else 9540 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 9541echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 9542if test "${ac_cv_lib_svld_dlopen+set}" = set; then 9543 echo $ECHO_N "(cached) $ECHO_C" >&6 9544else 9545 ac_check_lib_save_LIBS=$LIBS 9546LIBS="-lsvld $LIBS" 9547cat >conftest.$ac_ext <<_ACEOF 9548/* confdefs.h. */ 9549_ACEOF 9550cat confdefs.h >>conftest.$ac_ext 9551cat >>conftest.$ac_ext <<_ACEOF 9552/* end confdefs.h. */ 9553 9554/* Override any GCC internal prototype to avoid an error. 9555 Use char because int might match the return type of a GCC 9556 builtin and then its argument prototype would still apply. */ 9557#ifdef __cplusplus 9558extern "C" 9559#endif 9560char dlopen (); 9561int 9562main () 9563{ 9564return dlopen (); 9565 ; 9566 return 0; 9567} 9568_ACEOF 9569rm -f conftest.$ac_objext conftest$ac_exeext 9570if { (ac_try="$ac_link" 9571case "(($ac_try" in 9572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9573 *) ac_try_echo=$ac_try;; 9574esac 9575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9576 (eval "$ac_link") 2>conftest.er1 9577 ac_status=$? 9578 grep -v '^ *+' conftest.er1 >conftest.err 9579 rm -f conftest.er1 9580 cat conftest.err >&5 9581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9582 (exit $ac_status); } && { 9583 test -z "$ac_c_werror_flag" || 9584 test ! -s conftest.err 9585 } && test -s conftest$ac_exeext && 9586 $as_test_x conftest$ac_exeext; then 9587 ac_cv_lib_svld_dlopen=yes 9588else 9589 echo "$as_me: failed program was:" >&5 9590sed 's/^/| /' conftest.$ac_ext >&5 9591 9592 ac_cv_lib_svld_dlopen=no 9593fi 9594 9595rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9596 conftest$ac_exeext conftest.$ac_ext 9597LIBS=$ac_check_lib_save_LIBS 9598fi 9599{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 9600echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 9601if test $ac_cv_lib_svld_dlopen = yes; then 9602 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 9603else 9604 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 9605echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 9606if test "${ac_cv_lib_dld_dld_link+set}" = set; then 9607 echo $ECHO_N "(cached) $ECHO_C" >&6 9608else 9609 ac_check_lib_save_LIBS=$LIBS 9610LIBS="-ldld $LIBS" 9611cat >conftest.$ac_ext <<_ACEOF 9612/* confdefs.h. */ 9613_ACEOF 9614cat confdefs.h >>conftest.$ac_ext 9615cat >>conftest.$ac_ext <<_ACEOF 9616/* end confdefs.h. */ 9617 9618/* Override any GCC internal prototype to avoid an error. 9619 Use char because int might match the return type of a GCC 9620 builtin and then its argument prototype would still apply. */ 9621#ifdef __cplusplus 9622extern "C" 9623#endif 9624char dld_link (); 9625int 9626main () 9627{ 9628return dld_link (); 9629 ; 9630 return 0; 9631} 9632_ACEOF 9633rm -f conftest.$ac_objext conftest$ac_exeext 9634if { (ac_try="$ac_link" 9635case "(($ac_try" in 9636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9637 *) ac_try_echo=$ac_try;; 9638esac 9639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9640 (eval "$ac_link") 2>conftest.er1 9641 ac_status=$? 9642 grep -v '^ *+' conftest.er1 >conftest.err 9643 rm -f conftest.er1 9644 cat conftest.err >&5 9645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9646 (exit $ac_status); } && { 9647 test -z "$ac_c_werror_flag" || 9648 test ! -s conftest.err 9649 } && test -s conftest$ac_exeext && 9650 $as_test_x conftest$ac_exeext; then 9651 ac_cv_lib_dld_dld_link=yes 9652else 9653 echo "$as_me: failed program was:" >&5 9654sed 's/^/| /' conftest.$ac_ext >&5 9655 9656 ac_cv_lib_dld_dld_link=no 9657fi 9658 9659rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9660 conftest$ac_exeext conftest.$ac_ext 9661LIBS=$ac_check_lib_save_LIBS 9662fi 9663{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 9664echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 9665if test $ac_cv_lib_dld_dld_link = yes; then 9666 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 9667fi 9668 9669 9670fi 9671 9672 9673fi 9674 9675 9676fi 9677 9678 9679fi 9680 9681 9682fi 9683 9684 ;; 9685 esac 9686 9687 if test "x$lt_cv_dlopen" != xno; then 9688 enable_dlopen=yes 9689 else 9690 enable_dlopen=no 9691 fi 9692 9693 case $lt_cv_dlopen in 9694 dlopen) 9695 save_CPPFLAGS="$CPPFLAGS" 9696 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 9697 9698 save_LDFLAGS="$LDFLAGS" 9699 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 9700 9701 save_LIBS="$LIBS" 9702 LIBS="$lt_cv_dlopen_libs $LIBS" 9703 9704 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 9705echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } 9706if test "${lt_cv_dlopen_self+set}" = set; then 9707 echo $ECHO_N "(cached) $ECHO_C" >&6 9708else 9709 if test "$cross_compiling" = yes; then : 9710 lt_cv_dlopen_self=cross 9711else 9712 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9713 lt_status=$lt_dlunknown 9714 cat > conftest.$ac_ext <<EOF 9715#line __oline__ "configure" 9716#include "confdefs.h" 9717 9718#if HAVE_DLFCN_H 9719#include <dlfcn.h> 9720#endif 9721 9722#include <stdio.h> 9723 9724#ifdef RTLD_GLOBAL 9725# define LT_DLGLOBAL RTLD_GLOBAL 9726#else 9727# ifdef DL_GLOBAL 9728# define LT_DLGLOBAL DL_GLOBAL 9729# else 9730# define LT_DLGLOBAL 0 9731# endif 9732#endif 9733 9734/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9735 find out it does not work in some platform. */ 9736#ifndef LT_DLLAZY_OR_NOW 9737# ifdef RTLD_LAZY 9738# define LT_DLLAZY_OR_NOW RTLD_LAZY 9739# else 9740# ifdef DL_LAZY 9741# define LT_DLLAZY_OR_NOW DL_LAZY 9742# else 9743# ifdef RTLD_NOW 9744# define LT_DLLAZY_OR_NOW RTLD_NOW 9745# else 9746# ifdef DL_NOW 9747# define LT_DLLAZY_OR_NOW DL_NOW 9748# else 9749# define LT_DLLAZY_OR_NOW 0 9750# endif 9751# endif 9752# endif 9753# endif 9754#endif 9755 9756#ifdef __cplusplus 9757extern "C" void exit (int); 9758#endif 9759 9760void fnord() { int i=42;} 9761int main () 9762{ 9763 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9764 int status = $lt_dlunknown; 9765 9766 if (self) 9767 { 9768 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9769 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9770 /* dlclose (self); */ 9771 } 9772 else 9773 puts (dlerror ()); 9774 9775 exit (status); 9776} 9777EOF 9778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9779 (eval $ac_link) 2>&5 9780 ac_status=$? 9781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9782 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9783 (./conftest; exit; ) >&5 2>/dev/null 9784 lt_status=$? 9785 case x$lt_status in 9786 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 9787 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 9788 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 9789 esac 9790 else : 9791 # compilation failed 9792 lt_cv_dlopen_self=no 9793 fi 9794fi 9795rm -fr conftest* 9796 9797 9798fi 9799{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 9800echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } 9801 9802 if test "x$lt_cv_dlopen_self" = xyes; then 9803 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 9804 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 9805echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } 9806if test "${lt_cv_dlopen_self_static+set}" = set; then 9807 echo $ECHO_N "(cached) $ECHO_C" >&6 9808else 9809 if test "$cross_compiling" = yes; then : 9810 lt_cv_dlopen_self_static=cross 9811else 9812 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9813 lt_status=$lt_dlunknown 9814 cat > conftest.$ac_ext <<EOF 9815#line __oline__ "configure" 9816#include "confdefs.h" 9817 9818#if HAVE_DLFCN_H 9819#include <dlfcn.h> 9820#endif 9821 9822#include <stdio.h> 9823 9824#ifdef RTLD_GLOBAL 9825# define LT_DLGLOBAL RTLD_GLOBAL 9826#else 9827# ifdef DL_GLOBAL 9828# define LT_DLGLOBAL DL_GLOBAL 9829# else 9830# define LT_DLGLOBAL 0 9831# endif 9832#endif 9833 9834/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9835 find out it does not work in some platform. */ 9836#ifndef LT_DLLAZY_OR_NOW 9837# ifdef RTLD_LAZY 9838# define LT_DLLAZY_OR_NOW RTLD_LAZY 9839# else 9840# ifdef DL_LAZY 9841# define LT_DLLAZY_OR_NOW DL_LAZY 9842# else 9843# ifdef RTLD_NOW 9844# define LT_DLLAZY_OR_NOW RTLD_NOW 9845# else 9846# ifdef DL_NOW 9847# define LT_DLLAZY_OR_NOW DL_NOW 9848# else 9849# define LT_DLLAZY_OR_NOW 0 9850# endif 9851# endif 9852# endif 9853# endif 9854#endif 9855 9856#ifdef __cplusplus 9857extern "C" void exit (int); 9858#endif 9859 9860void fnord() { int i=42;} 9861int main () 9862{ 9863 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9864 int status = $lt_dlunknown; 9865 9866 if (self) 9867 { 9868 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9869 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9870 /* dlclose (self); */ 9871 } 9872 else 9873 puts (dlerror ()); 9874 9875 exit (status); 9876} 9877EOF 9878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9879 (eval $ac_link) 2>&5 9880 ac_status=$? 9881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9882 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9883 (./conftest; exit; ) >&5 2>/dev/null 9884 lt_status=$? 9885 case x$lt_status in 9886 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 9887 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 9888 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 9889 esac 9890 else : 9891 # compilation failed 9892 lt_cv_dlopen_self_static=no 9893 fi 9894fi 9895rm -fr conftest* 9896 9897 9898fi 9899{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 9900echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } 9901 fi 9902 9903 CPPFLAGS="$save_CPPFLAGS" 9904 LDFLAGS="$save_LDFLAGS" 9905 LIBS="$save_LIBS" 9906 ;; 9907 esac 9908 9909 case $lt_cv_dlopen_self in 9910 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 9911 *) enable_dlopen_self=unknown ;; 9912 esac 9913 9914 case $lt_cv_dlopen_self_static in 9915 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 9916 *) enable_dlopen_self_static=unknown ;; 9917 esac 9918fi 9919 9920 9921# Report which library types will actually be built 9922{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 9923echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 9924{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 9925echo "${ECHO_T}$can_build_shared" >&6; } 9926 9927{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 9928echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 9929test "$can_build_shared" = "no" && enable_shared=no 9930 9931# On AIX, shared libraries and static libraries use the same namespace, and 9932# are all built from PIC. 9933case $host_os in 9934aix3*) 9935 test "$enable_shared" = yes && enable_static=no 9936 if test -n "$RANLIB"; then 9937 archive_cmds="$archive_cmds~\$RANLIB \$lib" 9938 postinstall_cmds='$RANLIB $lib' 9939 fi 9940 ;; 9941 9942aix4* | aix5*) 9943 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 9944 test "$enable_shared" = yes && enable_static=no 9945 fi 9946 ;; 9947esac 9948{ echo "$as_me:$LINENO: result: $enable_shared" >&5 9949echo "${ECHO_T}$enable_shared" >&6; } 9950 9951{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 9952echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 9953# Make sure either enable_shared or enable_static is yes. 9954test "$enable_shared" = yes || enable_static=yes 9955{ echo "$as_me:$LINENO: result: $enable_static" >&5 9956echo "${ECHO_T}$enable_static" >&6; } 9957 9958# The else clause should only fire when bootstrapping the 9959# libtool distribution, otherwise you forgot to ship ltmain.sh 9960# with your package, and you will get complaints that there are 9961# no rules to generate ltmain.sh. 9962if test -f "$ltmain"; then 9963 # See if we are running on zsh, and set the options which allow our commands through 9964 # without removal of \ escapes. 9965 if test -n "${ZSH_VERSION+set}" ; then 9966 setopt NO_GLOB_SUBST 9967 fi 9968 # Now quote all the things that may contain metacharacters while being 9969 # careful not to overquote the AC_SUBSTed values. We take copies of the 9970 # variables and quote the copies for generation of the libtool script. 9971 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 9972 SED SHELL STRIP \ 9973 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 9974 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 9975 deplibs_check_method reload_flag reload_cmds need_locks \ 9976 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 9977 lt_cv_sys_global_symbol_to_c_name_address \ 9978 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 9979 old_postinstall_cmds old_postuninstall_cmds \ 9980 compiler \ 9981 CC \ 9982 LD \ 9983 lt_prog_compiler_wl \ 9984 lt_prog_compiler_pic \ 9985 lt_prog_compiler_static \ 9986 lt_prog_compiler_no_builtin_flag \ 9987 export_dynamic_flag_spec \ 9988 thread_safe_flag_spec \ 9989 whole_archive_flag_spec \ 9990 enable_shared_with_static_runtimes \ 9991 old_archive_cmds \ 9992 old_archive_from_new_cmds \ 9993 predep_objects \ 9994 postdep_objects \ 9995 predeps \ 9996 postdeps \ 9997 compiler_lib_search_path \ 9998 archive_cmds \ 9999 archive_expsym_cmds \ 10000 postinstall_cmds \ 10001 postuninstall_cmds \ 10002 old_archive_from_expsyms_cmds \ 10003 allow_undefined_flag \ 10004 no_undefined_flag \ 10005 export_symbols_cmds \ 10006 hardcode_libdir_flag_spec \ 10007 hardcode_libdir_flag_spec_ld \ 10008 hardcode_libdir_separator \ 10009 hardcode_automatic \ 10010 module_cmds \ 10011 module_expsym_cmds \ 10012 lt_cv_prog_compiler_c_o \ 10013 exclude_expsyms \ 10014 include_expsyms; do 10015 10016 case $var in 10017 old_archive_cmds | \ 10018 old_archive_from_new_cmds | \ 10019 archive_cmds | \ 10020 archive_expsym_cmds | \ 10021 module_cmds | \ 10022 module_expsym_cmds | \ 10023 old_archive_from_expsyms_cmds | \ 10024 export_symbols_cmds | \ 10025 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10026 postinstall_cmds | postuninstall_cmds | \ 10027 old_postinstall_cmds | old_postuninstall_cmds | \ 10028 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10029 # Double-quote double-evaled strings. 10030 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10031 ;; 10032 *) 10033 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10034 ;; 10035 esac 10036 done 10037 10038 case $lt_echo in 10039 *'\$0 --fallback-echo"') 10040 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10041 ;; 10042 esac 10043 10044cfgfile="${ofile}T" 10045 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10046 $rm -f "$cfgfile" 10047 { echo "$as_me:$LINENO: creating $ofile" >&5 10048echo "$as_me: creating $ofile" >&6;} 10049 10050 cat <<__EOF__ >> "$cfgfile" 10051#! $SHELL 10052 10053# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10054# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10055# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10056# 10057# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 10058# Free Software Foundation, Inc. 10059# 10060# This file is part of GNU Libtool: 10061# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10062# 10063# This program is free software; you can redistribute it and/or modify 10064# it under the terms of the GNU General Public License as published by 10065# the Free Software Foundation; either version 2 of the License, or 10066# (at your option) any later version. 10067# 10068# This program is distributed in the hope that it will be useful, but 10069# WITHOUT ANY WARRANTY; without even the implied warranty of 10070# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10071# General Public License for more details. 10072# 10073# You should have received a copy of the GNU General Public License 10074# along with this program; if not, write to the Free Software 10075# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10076# 10077# As a special exception to the GNU General Public License, if you 10078# distribute this file as part of a program that contains a 10079# configuration script generated by Autoconf, you may include it under 10080# the same distribution terms that you use for the rest of that program. 10081 10082# A sed program that does not truncate output. 10083SED=$lt_SED 10084 10085# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10086Xsed="$SED -e 1s/^X//" 10087 10088# The HP-UX ksh and POSIX shell print the target directory to stdout 10089# if CDPATH is set. 10090(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10091 10092# The names of the tagged configurations supported by this script. 10093available_tags= 10094 10095# ### BEGIN LIBTOOL CONFIG 10096 10097# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10098 10099# Shell to use when invoking shell scripts. 10100SHELL=$lt_SHELL 10101 10102# Whether or not to build shared libraries. 10103build_libtool_libs=$enable_shared 10104 10105# Whether or not to build static libraries. 10106build_old_libs=$enable_static 10107 10108# Whether or not to add -lc for building shared libraries. 10109build_libtool_need_lc=$archive_cmds_need_lc 10110 10111# Whether or not to disallow shared libs when runtime libs are static 10112allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10113 10114# Whether or not to optimize for fast installation. 10115fast_install=$enable_fast_install 10116 10117# The host system. 10118host_alias=$host_alias 10119host=$host 10120host_os=$host_os 10121 10122# The build system. 10123build_alias=$build_alias 10124build=$build 10125build_os=$build_os 10126 10127# An echo program that does not interpret backslashes. 10128echo=$lt_echo 10129 10130# The archiver. 10131AR=$lt_AR 10132AR_FLAGS=$lt_AR_FLAGS 10133 10134# A C compiler. 10135LTCC=$lt_LTCC 10136 10137# LTCC compiler flags. 10138LTCFLAGS=$lt_LTCFLAGS 10139 10140# A language-specific compiler. 10141CC=$lt_compiler 10142 10143# Is the compiler the GNU C compiler? 10144with_gcc=$GCC 10145 10146# An ERE matcher. 10147EGREP=$lt_EGREP 10148 10149# The linker used to build libraries. 10150LD=$lt_LD 10151 10152# Whether we need hard or soft links. 10153LN_S=$lt_LN_S 10154 10155# A BSD-compatible nm program. 10156NM=$lt_NM 10157 10158# A symbol stripping program 10159STRIP=$lt_STRIP 10160 10161# Used to examine libraries when file_magic_cmd begins "file" 10162MAGIC_CMD=$MAGIC_CMD 10163 10164# Used on cygwin: DLL creation program. 10165DLLTOOL="$DLLTOOL" 10166 10167# Used on cygwin: object dumper. 10168OBJDUMP="$OBJDUMP" 10169 10170# Used on cygwin: assembler. 10171AS="$AS" 10172 10173# The name of the directory that contains temporary libtool files. 10174objdir=$objdir 10175 10176# How to create reloadable object files. 10177reload_flag=$lt_reload_flag 10178reload_cmds=$lt_reload_cmds 10179 10180# How to pass a linker flag through the compiler. 10181wl=$lt_lt_prog_compiler_wl 10182 10183# Object file suffix (normally "o"). 10184objext="$ac_objext" 10185 10186# Old archive suffix (normally "a"). 10187libext="$libext" 10188 10189# Shared library suffix (normally ".so"). 10190shrext_cmds='$shrext_cmds' 10191 10192# Executable file suffix (normally ""). 10193exeext="$exeext" 10194 10195# Additional compiler flags for building library objects. 10196pic_flag=$lt_lt_prog_compiler_pic 10197pic_mode=$pic_mode 10198 10199# What is the maximum length of a command? 10200max_cmd_len=$lt_cv_sys_max_cmd_len 10201 10202# Does compiler simultaneously support -c and -o options? 10203compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10204 10205# Must we lock files when doing compilation? 10206need_locks=$lt_need_locks 10207 10208# Do we need the lib prefix for modules? 10209need_lib_prefix=$need_lib_prefix 10210 10211# Do we need a version for libraries? 10212need_version=$need_version 10213 10214# Whether dlopen is supported. 10215dlopen_support=$enable_dlopen 10216 10217# Whether dlopen of programs is supported. 10218dlopen_self=$enable_dlopen_self 10219 10220# Whether dlopen of statically linked programs is supported. 10221dlopen_self_static=$enable_dlopen_self_static 10222 10223# Compiler flag to prevent dynamic linking. 10224link_static_flag=$lt_lt_prog_compiler_static 10225 10226# Compiler flag to turn off builtin functions. 10227no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10228 10229# Compiler flag to allow reflexive dlopens. 10230export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10231 10232# Compiler flag to generate shared objects directly from archives. 10233whole_archive_flag_spec=$lt_whole_archive_flag_spec 10234 10235# Compiler flag to generate thread-safe objects. 10236thread_safe_flag_spec=$lt_thread_safe_flag_spec 10237 10238# Library versioning type. 10239version_type=$version_type 10240 10241# Format of library name prefix. 10242libname_spec=$lt_libname_spec 10243 10244# List of archive names. First name is the real one, the rest are links. 10245# The last name is the one that the linker finds with -lNAME. 10246library_names_spec=$lt_library_names_spec 10247 10248# The coded name of the library, if different from the real name. 10249soname_spec=$lt_soname_spec 10250 10251# Commands used to build and install an old-style archive. 10252RANLIB=$lt_RANLIB 10253old_archive_cmds=$lt_old_archive_cmds 10254old_postinstall_cmds=$lt_old_postinstall_cmds 10255old_postuninstall_cmds=$lt_old_postuninstall_cmds 10256 10257# Create an old-style archive from a shared archive. 10258old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10259 10260# Create a temporary old-style archive to link instead of a shared archive. 10261old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10262 10263# Commands used to build and install a shared archive. 10264archive_cmds=$lt_archive_cmds 10265archive_expsym_cmds=$lt_archive_expsym_cmds 10266postinstall_cmds=$lt_postinstall_cmds 10267postuninstall_cmds=$lt_postuninstall_cmds 10268 10269# Commands used to build a loadable module (assumed same as above if empty) 10270module_cmds=$lt_module_cmds 10271module_expsym_cmds=$lt_module_expsym_cmds 10272 10273# Commands to strip libraries. 10274old_striplib=$lt_old_striplib 10275striplib=$lt_striplib 10276 10277# Dependencies to place before the objects being linked to create a 10278# shared library. 10279predep_objects=$lt_predep_objects 10280 10281# Dependencies to place after the objects being linked to create a 10282# shared library. 10283postdep_objects=$lt_postdep_objects 10284 10285# Dependencies to place before the objects being linked to create a 10286# shared library. 10287predeps=$lt_predeps 10288 10289# Dependencies to place after the objects being linked to create a 10290# shared library. 10291postdeps=$lt_postdeps 10292 10293# The library search path used internally by the compiler when linking 10294# a shared library. 10295compiler_lib_search_path=$lt_compiler_lib_search_path 10296 10297# Method to check whether dependent libraries are shared objects. 10298deplibs_check_method=$lt_deplibs_check_method 10299 10300# Command to use when deplibs_check_method == file_magic. 10301file_magic_cmd=$lt_file_magic_cmd 10302 10303# Flag that allows shared libraries with undefined symbols to be built. 10304allow_undefined_flag=$lt_allow_undefined_flag 10305 10306# Flag that forces no undefined symbols. 10307no_undefined_flag=$lt_no_undefined_flag 10308 10309# Commands used to finish a libtool library installation in a directory. 10310finish_cmds=$lt_finish_cmds 10311 10312# Same as above, but a single script fragment to be evaled but not shown. 10313finish_eval=$lt_finish_eval 10314 10315# Take the output of nm and produce a listing of raw symbols and C names. 10316global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 10317 10318# Transform the output of nm in a proper C declaration 10319global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 10320 10321# Transform the output of nm in a C name address pair 10322global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 10323 10324# This is the shared library runtime path variable. 10325runpath_var=$runpath_var 10326 10327# This is the shared library path variable. 10328shlibpath_var=$shlibpath_var 10329 10330# Is shlibpath searched before the hard-coded library search path? 10331shlibpath_overrides_runpath=$shlibpath_overrides_runpath 10332 10333# How to hardcode a shared library path into an executable. 10334hardcode_action=$hardcode_action 10335 10336# Whether we should hardcode library paths into libraries. 10337hardcode_into_libs=$hardcode_into_libs 10338 10339# Flag to hardcode \$libdir into a binary during linking. 10340# This must work even if \$libdir does not exist. 10341hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 10342 10343# If ld is used when linking, flag to hardcode \$libdir into 10344# a binary during linking. This must work even if \$libdir does 10345# not exist. 10346hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 10347 10348# Whether we need a single -rpath flag with a separated argument. 10349hardcode_libdir_separator=$lt_hardcode_libdir_separator 10350 10351# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 10352# resulting binary. 10353hardcode_direct=$hardcode_direct 10354 10355# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 10356# resulting binary. 10357hardcode_minus_L=$hardcode_minus_L 10358 10359# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 10360# the resulting binary. 10361hardcode_shlibpath_var=$hardcode_shlibpath_var 10362 10363# Set to yes if building a shared library automatically hardcodes DIR into the library 10364# and all subsequent libraries and executables linked against it. 10365hardcode_automatic=$hardcode_automatic 10366 10367# Variables whose values should be saved in libtool wrapper scripts and 10368# restored at relink time. 10369variables_saved_for_relink="$variables_saved_for_relink" 10370 10371# Whether libtool must link a program against all its dependency libraries. 10372link_all_deplibs=$link_all_deplibs 10373 10374# Compile-time system search path for libraries 10375sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 10376 10377# Run-time system search path for libraries 10378sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 10379 10380# Fix the shell variable \$srcfile for the compiler. 10381fix_srcfile_path="$fix_srcfile_path" 10382 10383# Set to yes if exported symbols are required. 10384always_export_symbols=$always_export_symbols 10385 10386# The commands to list exported symbols. 10387export_symbols_cmds=$lt_export_symbols_cmds 10388 10389# The commands to extract the exported symbol list from a shared archive. 10390extract_expsyms_cmds=$lt_extract_expsyms_cmds 10391 10392# Symbols that should not be listed in the preloaded symbols. 10393exclude_expsyms=$lt_exclude_expsyms 10394 10395# Symbols that must always be exported. 10396include_expsyms=$lt_include_expsyms 10397 10398# ### END LIBTOOL CONFIG 10399 10400__EOF__ 10401 10402 10403 case $host_os in 10404 aix3*) 10405 cat <<\EOF >> "$cfgfile" 10406 10407# AIX sometimes has problems with the GCC collect2 program. For some 10408# reason, if we set the COLLECT_NAMES environment variable, the problems 10409# vanish in a puff of smoke. 10410if test "X${COLLECT_NAMES+set}" != Xset; then 10411 COLLECT_NAMES= 10412 export COLLECT_NAMES 10413fi 10414EOF 10415 ;; 10416 esac 10417 10418 # We use sed instead of cat because bash on DJGPP gets confused if 10419 # if finds mixed CR/LF and LF-only lines. Since sed operates in 10420 # text mode, it properly converts lines to CR/LF. This bash problem 10421 # is reportedly fixed, but why not run on old versions too? 10422 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 10423 10424 mv -f "$cfgfile" "$ofile" || \ 10425 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 10426 chmod +x "$ofile" 10427 10428else 10429 # If there is no Makefile yet, we rely on a make rule to execute 10430 # `config.status --recheck' to rerun these tests and create the 10431 # libtool script then. 10432 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 10433 if test -f "$ltmain_in"; then 10434 test -f Makefile && make "$ltmain" 10435 fi 10436fi 10437 10438 10439ac_ext=c 10440ac_cpp='$CPP $CPPFLAGS' 10441ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10442ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10443ac_compiler_gnu=$ac_cv_c_compiler_gnu 10444 10445CC="$lt_save_CC" 10446 10447 10448# Check whether --with-tags was given. 10449if test "${with_tags+set}" = set; then 10450 withval=$with_tags; tagnames="$withval" 10451fi 10452 10453 10454if test -f "$ltmain" && test -n "$tagnames"; then 10455 if test ! -f "${ofile}"; then 10456 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 10457echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 10458 fi 10459 10460 if test -z "$LTCC"; then 10461 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 10462 if test -z "$LTCC"; then 10463 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 10464echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 10465 else 10466 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 10467echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 10468 fi 10469 fi 10470 if test -z "$LTCFLAGS"; then 10471 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 10472 fi 10473 10474 # Extract list of available tagged configurations in $ofile. 10475 # Note that this assumes the entire list is on one line. 10476 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 10477 10478 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10479 for tagname in $tagnames; do 10480 IFS="$lt_save_ifs" 10481 # Check whether tagname contains only valid characters 10482 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 10483 "") ;; 10484 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 10485echo "$as_me: error: invalid tag name: $tagname" >&2;} 10486 { (exit 1); exit 1; }; } 10487 ;; 10488 esac 10489 10490 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 10491 then 10492 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 10493echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 10494 { (exit 1); exit 1; }; } 10495 fi 10496 10497 # Update the list of available tags. 10498 if test -n "$tagname"; then 10499 echo appending configuration tag \"$tagname\" to $ofile 10500 10501 case $tagname in 10502 CXX) 10503 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 10504 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 10505 (test "X$CXX" != "Xg++"))) ; then 10506 ac_ext=cpp 10507ac_cpp='$CXXCPP $CPPFLAGS' 10508ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10509ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10510ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10511 10512 10513 10514 10515archive_cmds_need_lc_CXX=no 10516allow_undefined_flag_CXX= 10517always_export_symbols_CXX=no 10518archive_expsym_cmds_CXX= 10519export_dynamic_flag_spec_CXX= 10520hardcode_direct_CXX=no 10521hardcode_libdir_flag_spec_CXX= 10522hardcode_libdir_flag_spec_ld_CXX= 10523hardcode_libdir_separator_CXX= 10524hardcode_minus_L_CXX=no 10525hardcode_shlibpath_var_CXX=unsupported 10526hardcode_automatic_CXX=no 10527module_cmds_CXX= 10528module_expsym_cmds_CXX= 10529link_all_deplibs_CXX=unknown 10530old_archive_cmds_CXX=$old_archive_cmds 10531no_undefined_flag_CXX= 10532whole_archive_flag_spec_CXX= 10533enable_shared_with_static_runtimes_CXX=no 10534 10535# Dependencies to place before and after the object being linked: 10536predep_objects_CXX= 10537postdep_objects_CXX= 10538predeps_CXX= 10539postdeps_CXX= 10540compiler_lib_search_path_CXX= 10541 10542# Source file extension for C++ test sources. 10543ac_ext=cpp 10544 10545# Object file extension for compiled C++ test sources. 10546objext=o 10547objext_CXX=$objext 10548 10549# Code to be used in simple compile tests 10550lt_simple_compile_test_code="int some_variable = 0;\n" 10551 10552# Code to be used in simple link tests 10553lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 10554 10555# ltmain only uses $CC for tagged configurations so make sure $CC is set. 10556 10557# If no C compiler was specified, use CC. 10558LTCC=${LTCC-"$CC"} 10559 10560# If no C compiler flags were specified, use CFLAGS. 10561LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10562 10563# Allow CC to be a program name with arguments. 10564compiler=$CC 10565 10566 10567# save warnings/boilerplate of simple test code 10568ac_outfile=conftest.$ac_objext 10569printf "$lt_simple_compile_test_code" >conftest.$ac_ext 10570eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10571_lt_compiler_boilerplate=`cat conftest.err` 10572$rm conftest* 10573 10574ac_outfile=conftest.$ac_objext 10575printf "$lt_simple_link_test_code" >conftest.$ac_ext 10576eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10577_lt_linker_boilerplate=`cat conftest.err` 10578$rm conftest* 10579 10580 10581# Allow CC to be a program name with arguments. 10582lt_save_CC=$CC 10583lt_save_LD=$LD 10584lt_save_GCC=$GCC 10585GCC=$GXX 10586lt_save_with_gnu_ld=$with_gnu_ld 10587lt_save_path_LD=$lt_cv_path_LD 10588if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 10589 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 10590else 10591 $as_unset lt_cv_prog_gnu_ld 10592fi 10593if test -n "${lt_cv_path_LDCXX+set}"; then 10594 lt_cv_path_LD=$lt_cv_path_LDCXX 10595else 10596 $as_unset lt_cv_path_LD 10597fi 10598test -z "${LDCXX+set}" || LD=$LDCXX 10599CC=${CXX-"c++"} 10600compiler=$CC 10601compiler_CXX=$CC 10602for cc_temp in $compiler""; do 10603 case $cc_temp in 10604 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10605 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10606 \-*) ;; 10607 *) break;; 10608 esac 10609done 10610cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 10611 10612 10613# We don't want -fno-exception wen compiling C++ code, so set the 10614# no_builtin_flag separately 10615if test "$GXX" = yes; then 10616 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 10617else 10618 lt_prog_compiler_no_builtin_flag_CXX= 10619fi 10620 10621if test "$GXX" = yes; then 10622 # Set up default GNU C++ configuration 10623 10624 10625# Check whether --with-gnu-ld was given. 10626if test "${with_gnu_ld+set}" = set; then 10627 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 10628else 10629 with_gnu_ld=no 10630fi 10631 10632ac_prog=ld 10633if test "$GCC" = yes; then 10634 # Check if gcc -print-prog-name=ld gives a path. 10635 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 10636echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 10637 case $host in 10638 *-*-mingw*) 10639 # gcc leaves a trailing carriage return which upsets mingw 10640 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 10641 *) 10642 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 10643 esac 10644 case $ac_prog in 10645 # Accept absolute paths. 10646 [\\/]* | ?:[\\/]*) 10647 re_direlt='/[^/][^/]*/\.\./' 10648 # Canonicalize the pathname of ld 10649 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 10650 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 10651 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 10652 done 10653 test -z "$LD" && LD="$ac_prog" 10654 ;; 10655 "") 10656 # If it fails, then pretend we aren't using GCC. 10657 ac_prog=ld 10658 ;; 10659 *) 10660 # If it is relative, then search for the first ld in PATH. 10661 with_gnu_ld=unknown 10662 ;; 10663 esac 10664elif test "$with_gnu_ld" = yes; then 10665 { echo "$as_me:$LINENO: checking for GNU ld" >&5 10666echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 10667else 10668 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 10669echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 10670fi 10671if test "${lt_cv_path_LD+set}" = set; then 10672 echo $ECHO_N "(cached) $ECHO_C" >&6 10673else 10674 if test -z "$LD"; then 10675 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10676 for ac_dir in $PATH; do 10677 IFS="$lt_save_ifs" 10678 test -z "$ac_dir" && ac_dir=. 10679 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 10680 lt_cv_path_LD="$ac_dir/$ac_prog" 10681 # Check to see if the program is GNU ld. I'd rather use --version, 10682 # but apparently some variants of GNU ld only accept -v. 10683 # Break only if it was the GNU/non-GNU ld that we prefer. 10684 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 10685 *GNU* | *'with BFD'*) 10686 test "$with_gnu_ld" != no && break 10687 ;; 10688 *) 10689 test "$with_gnu_ld" != yes && break 10690 ;; 10691 esac 10692 fi 10693 done 10694 IFS="$lt_save_ifs" 10695else 10696 lt_cv_path_LD="$LD" # Let the user override the test with a path. 10697fi 10698fi 10699 10700LD="$lt_cv_path_LD" 10701if test -n "$LD"; then 10702 { echo "$as_me:$LINENO: result: $LD" >&5 10703echo "${ECHO_T}$LD" >&6; } 10704else 10705 { echo "$as_me:$LINENO: result: no" >&5 10706echo "${ECHO_T}no" >&6; } 10707fi 10708test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 10709echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 10710 { (exit 1); exit 1; }; } 10711{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 10712echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 10713if test "${lt_cv_prog_gnu_ld+set}" = set; then 10714 echo $ECHO_N "(cached) $ECHO_C" >&6 10715else 10716 # I'd rather use --version here, but apparently some GNU lds only accept -v. 10717case `$LD -v 2>&1 </dev/null` in 10718*GNU* | *'with BFD'*) 10719 lt_cv_prog_gnu_ld=yes 10720 ;; 10721*) 10722 lt_cv_prog_gnu_ld=no 10723 ;; 10724esac 10725fi 10726{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 10727echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 10728with_gnu_ld=$lt_cv_prog_gnu_ld 10729 10730 10731 10732 # Check if GNU C++ uses GNU ld as the underlying linker, since the 10733 # archiving commands below assume that GNU ld is being used. 10734 if test "$with_gnu_ld" = yes; then 10735 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10736 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' 10737 10738 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10739 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10740 10741 # If archive_cmds runs LD, not CC, wlarc should be empty 10742 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 10743 # investigate it a little bit more. (MM) 10744 wlarc='${wl}' 10745 10746 # ancient GNU ld didn't support --whole-archive et. al. 10747 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 10748 grep 'no-whole-archive' > /dev/null; then 10749 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10750 else 10751 whole_archive_flag_spec_CXX= 10752 fi 10753 else 10754 with_gnu_ld=no 10755 wlarc= 10756 10757 # A generic and very simple default shared library creation 10758 # command for GNU C++ for the case where it uses the native 10759 # linker, instead of GNU ld. If possible, this setting should 10760 # overridden to take advantage of the native linker features on 10761 # the platform it is being used on. 10762 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10763 fi 10764 10765 # Commands to make compiler produce verbose output that lists 10766 # what "hidden" libraries, object files and flags are used when 10767 # linking a shared library. 10768 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10769 10770else 10771 GXX=no 10772 with_gnu_ld=no 10773 wlarc= 10774fi 10775 10776# PORTME: fill in a description of your system's C++ link characteristics 10777{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10778echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 10779ld_shlibs_CXX=yes 10780case $host_os in 10781 aix3*) 10782 # FIXME: insert proper C++ library support 10783 ld_shlibs_CXX=no 10784 ;; 10785 aix4* | aix5*) 10786 if test "$host_cpu" = ia64; then 10787 # On IA64, the linker does run time linking by default, so we don't 10788 # have to do anything special. 10789 aix_use_runtimelinking=no 10790 exp_sym_flag='-Bexport' 10791 no_entry_flag="" 10792 else 10793 aix_use_runtimelinking=no 10794 10795 # Test if we are trying to use run time linking or normal 10796 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10797 # need to do runtime linking. 10798 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 10799 for ld_flag in $LDFLAGS; do 10800 case $ld_flag in 10801 *-brtl*) 10802 aix_use_runtimelinking=yes 10803 break 10804 ;; 10805 esac 10806 done 10807 ;; 10808 esac 10809 10810 exp_sym_flag='-bexport' 10811 no_entry_flag='-bnoentry' 10812 fi 10813 10814 # When large executables or shared objects are built, AIX ld can 10815 # have problems creating the table of contents. If linking a library 10816 # or program results in "error TOC overflow" add -mminimal-toc to 10817 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10818 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10819 10820 archive_cmds_CXX='' 10821 hardcode_direct_CXX=yes 10822 hardcode_libdir_separator_CXX=':' 10823 link_all_deplibs_CXX=yes 10824 10825 if test "$GXX" = yes; then 10826 case $host_os in aix4.[012]|aix4.[012].*) 10827 # We only want to do this on AIX 4.2 and lower, the check 10828 # below for broken collect2 doesn't work under 4.3+ 10829 collect2name=`${CC} -print-prog-name=collect2` 10830 if test -f "$collect2name" && \ 10831 strings "$collect2name" | grep resolve_lib_name >/dev/null 10832 then 10833 # We have reworked collect2 10834 hardcode_direct_CXX=yes 10835 else 10836 # We have old collect2 10837 hardcode_direct_CXX=unsupported 10838 # It fails to find uninstalled libraries when the uninstalled 10839 # path is not listed in the libpath. Setting hardcode_minus_L 10840 # to unsupported forces relinking 10841 hardcode_minus_L_CXX=yes 10842 hardcode_libdir_flag_spec_CXX='-L$libdir' 10843 hardcode_libdir_separator_CXX= 10844 fi 10845 ;; 10846 esac 10847 shared_flag='-shared' 10848 if test "$aix_use_runtimelinking" = yes; then 10849 shared_flag="$shared_flag "'${wl}-G' 10850 fi 10851 else 10852 # not using gcc 10853 if test "$host_cpu" = ia64; then 10854 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10855 # chokes on -Wl,-G. The following line is correct: 10856 shared_flag='-G' 10857 else 10858 if test "$aix_use_runtimelinking" = yes; then 10859 shared_flag='${wl}-G' 10860 else 10861 shared_flag='${wl}-bM:SRE' 10862 fi 10863 fi 10864 fi 10865 10866 # It seems that -bexpall does not export symbols beginning with 10867 # underscore (_), so it is better to generate a list of symbols to export. 10868 always_export_symbols_CXX=yes 10869 if test "$aix_use_runtimelinking" = yes; then 10870 # Warning - without using the other runtime loading flags (-brtl), 10871 # -berok will link without error, but may produce a broken library. 10872 allow_undefined_flag_CXX='-berok' 10873 # Determine the default libpath from the value encoded in an empty executable. 10874 cat >conftest.$ac_ext <<_ACEOF 10875/* confdefs.h. */ 10876_ACEOF 10877cat confdefs.h >>conftest.$ac_ext 10878cat >>conftest.$ac_ext <<_ACEOF 10879/* end confdefs.h. */ 10880 10881int 10882main () 10883{ 10884 10885 ; 10886 return 0; 10887} 10888_ACEOF 10889rm -f conftest.$ac_objext conftest$ac_exeext 10890if { (ac_try="$ac_link" 10891case "(($ac_try" in 10892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10893 *) ac_try_echo=$ac_try;; 10894esac 10895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10896 (eval "$ac_link") 2>conftest.er1 10897 ac_status=$? 10898 grep -v '^ *+' conftest.er1 >conftest.err 10899 rm -f conftest.er1 10900 cat conftest.err >&5 10901 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10902 (exit $ac_status); } && { 10903 test -z "$ac_cxx_werror_flag" || 10904 test ! -s conftest.err 10905 } && test -s conftest$ac_exeext && 10906 $as_test_x conftest$ac_exeext; then 10907 10908aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10909}'` 10910# Check for a 64-bit object if we didn't find anything. 10911if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10912}'`; fi 10913else 10914 echo "$as_me: failed program was:" >&5 10915sed 's/^/| /' conftest.$ac_ext >&5 10916 10917 10918fi 10919 10920rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10921 conftest$ac_exeext conftest.$ac_ext 10922if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10923 10924 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10925 10926 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" 10927 else 10928 if test "$host_cpu" = ia64; then 10929 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 10930 allow_undefined_flag_CXX="-z nodefs" 10931 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" 10932 else 10933 # Determine the default libpath from the value encoded in an empty executable. 10934 cat >conftest.$ac_ext <<_ACEOF 10935/* confdefs.h. */ 10936_ACEOF 10937cat confdefs.h >>conftest.$ac_ext 10938cat >>conftest.$ac_ext <<_ACEOF 10939/* end confdefs.h. */ 10940 10941int 10942main () 10943{ 10944 10945 ; 10946 return 0; 10947} 10948_ACEOF 10949rm -f conftest.$ac_objext conftest$ac_exeext 10950if { (ac_try="$ac_link" 10951case "(($ac_try" in 10952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10953 *) ac_try_echo=$ac_try;; 10954esac 10955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10956 (eval "$ac_link") 2>conftest.er1 10957 ac_status=$? 10958 grep -v '^ *+' conftest.er1 >conftest.err 10959 rm -f conftest.er1 10960 cat conftest.err >&5 10961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10962 (exit $ac_status); } && { 10963 test -z "$ac_cxx_werror_flag" || 10964 test ! -s conftest.err 10965 } && test -s conftest$ac_exeext && 10966 $as_test_x conftest$ac_exeext; then 10967 10968aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10969}'` 10970# Check for a 64-bit object if we didn't find anything. 10971if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10972}'`; fi 10973else 10974 echo "$as_me: failed program was:" >&5 10975sed 's/^/| /' conftest.$ac_ext >&5 10976 10977 10978fi 10979 10980rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10981 conftest$ac_exeext conftest.$ac_ext 10982if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10983 10984 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10985 # Warning - without using the other run time loading flags, 10986 # -berok will link without error, but may produce a broken library. 10987 no_undefined_flag_CXX=' ${wl}-bernotok' 10988 allow_undefined_flag_CXX=' ${wl}-berok' 10989 # Exported symbols can be pulled into shared objects from archives 10990 whole_archive_flag_spec_CXX='$convenience' 10991 archive_cmds_need_lc_CXX=yes 10992 # This is similar to how AIX traditionally builds its shared libraries. 10993 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' 10994 fi 10995 fi 10996 ;; 10997 10998 beos*) 10999 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11000 allow_undefined_flag_CXX=unsupported 11001 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11002 # support --undefined. This deserves some investigation. FIXME 11003 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11004 else 11005 ld_shlibs_CXX=no 11006 fi 11007 ;; 11008 11009 chorus*) 11010 case $cc_basename in 11011 *) 11012 # FIXME: insert proper C++ library support 11013 ld_shlibs_CXX=no 11014 ;; 11015 esac 11016 ;; 11017 11018 cygwin* | mingw* | pw32*) 11019 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11020 # as there is no search path for DLLs. 11021 hardcode_libdir_flag_spec_CXX='-L$libdir' 11022 allow_undefined_flag_CXX=unsupported 11023 always_export_symbols_CXX=no 11024 enable_shared_with_static_runtimes_CXX=yes 11025 11026 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11027 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' 11028 # If the export-symbols file already is a .def file (1st line 11029 # is EXPORTS), use it as is; otherwise, prepend... 11030 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11031 cp $export_symbols $output_objdir/$soname.def; 11032 else 11033 echo EXPORTS > $output_objdir/$soname.def; 11034 cat $export_symbols >> $output_objdir/$soname.def; 11035 fi~ 11036 $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' 11037 else 11038 ld_shlibs_CXX=no 11039 fi 11040 ;; 11041 darwin* | rhapsody*) 11042 case $host_os in 11043 rhapsody* | darwin1.[012]) 11044 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 11045 ;; 11046 *) # Darwin 1.3 on 11047 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 11048 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11049 else 11050 case ${MACOSX_DEPLOYMENT_TARGET} in 11051 10.[012]) 11052 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11053 ;; 11054 10.*) 11055 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 11056 ;; 11057 esac 11058 fi 11059 ;; 11060 esac 11061 archive_cmds_need_lc_CXX=no 11062 hardcode_direct_CXX=no 11063 hardcode_automatic_CXX=yes 11064 hardcode_shlibpath_var_CXX=unsupported 11065 whole_archive_flag_spec_CXX='' 11066 link_all_deplibs_CXX=yes 11067 11068 if test "$GXX" = yes ; then 11069 lt_int_apple_cc_single_mod=no 11070 output_verbose_link_cmd='echo' 11071 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 11072 lt_int_apple_cc_single_mod=yes 11073 fi 11074 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11075 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 11076 else 11077 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' 11078 fi 11079 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11080 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11081 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11082 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}' 11083 else 11084 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}' 11085 fi 11086 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}' 11087 else 11088 case $cc_basename in 11089 xlc*) 11090 output_verbose_link_cmd='echo' 11091 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' 11092 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11093 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11094 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}' 11095 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}' 11096 ;; 11097 *) 11098 ld_shlibs_CXX=no 11099 ;; 11100 esac 11101 fi 11102 ;; 11103 11104 dgux*) 11105 case $cc_basename in 11106 ec++*) 11107 # FIXME: insert proper C++ library support 11108 ld_shlibs_CXX=no 11109 ;; 11110 ghcx*) 11111 # Green Hills C++ Compiler 11112 # FIXME: insert proper C++ library support 11113 ld_shlibs_CXX=no 11114 ;; 11115 *) 11116 # FIXME: insert proper C++ library support 11117 ld_shlibs_CXX=no 11118 ;; 11119 esac 11120 ;; 11121 freebsd[12]*) 11122 # C++ shared libraries reported to be fairly broken before switch to ELF 11123 ld_shlibs_CXX=no 11124 ;; 11125 freebsd-elf*) 11126 archive_cmds_need_lc_CXX=no 11127 ;; 11128 freebsd* | dragonfly*) 11129 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11130 # conventions 11131 ld_shlibs_CXX=yes 11132 ;; 11133 gnu*) 11134 ;; 11135 hpux9*) 11136 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11137 hardcode_libdir_separator_CXX=: 11138 export_dynamic_flag_spec_CXX='${wl}-E' 11139 hardcode_direct_CXX=yes 11140 hardcode_minus_L_CXX=yes # Not in the search PATH, 11141 # but as the default 11142 # location of the library. 11143 11144 case $cc_basename in 11145 CC*) 11146 # FIXME: insert proper C++ library support 11147 ld_shlibs_CXX=no 11148 ;; 11149 aCC*) 11150 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' 11151 # Commands to make compiler produce verbose output that lists 11152 # what "hidden" libraries, object files and flags are used when 11153 # linking a shared library. 11154 # 11155 # There doesn't appear to be a way to prevent this compiler from 11156 # explicitly linking system object files so we need to strip them 11157 # from the output so that they don't get included in the library 11158 # dependencies. 11159 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' 11160 ;; 11161 *) 11162 if test "$GXX" = yes; then 11163 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' 11164 else 11165 # FIXME: insert proper C++ library support 11166 ld_shlibs_CXX=no 11167 fi 11168 ;; 11169 esac 11170 ;; 11171 hpux10*|hpux11*) 11172 if test $with_gnu_ld = no; then 11173 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11174 hardcode_libdir_separator_CXX=: 11175 11176 case $host_cpu in 11177 hppa*64*|ia64*) 11178 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 11179 ;; 11180 *) 11181 export_dynamic_flag_spec_CXX='${wl}-E' 11182 ;; 11183 esac 11184 fi 11185 case $host_cpu in 11186 hppa*64*|ia64*) 11187 hardcode_direct_CXX=no 11188 hardcode_shlibpath_var_CXX=no 11189 ;; 11190 *) 11191 hardcode_direct_CXX=yes 11192 hardcode_minus_L_CXX=yes # Not in the search PATH, 11193 # but as the default 11194 # location of the library. 11195 ;; 11196 esac 11197 11198 case $cc_basename in 11199 CC*) 11200 # FIXME: insert proper C++ library support 11201 ld_shlibs_CXX=no 11202 ;; 11203 aCC*) 11204 case $host_cpu in 11205 hppa*64*) 11206 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11207 ;; 11208 ia64*) 11209 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11210 ;; 11211 *) 11212 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11213 ;; 11214 esac 11215 # Commands to make compiler produce verbose output that lists 11216 # what "hidden" libraries, object files and flags are used when 11217 # linking a shared library. 11218 # 11219 # There doesn't appear to be a way to prevent this compiler from 11220 # explicitly linking system object files so we need to strip them 11221 # from the output so that they don't get included in the library 11222 # dependencies. 11223 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' 11224 ;; 11225 *) 11226 if test "$GXX" = yes; then 11227 if test $with_gnu_ld = no; then 11228 case $host_cpu in 11229 hppa*64*) 11230 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11231 ;; 11232 ia64*) 11233 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11234 ;; 11235 *) 11236 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' 11237 ;; 11238 esac 11239 fi 11240 else 11241 # FIXME: insert proper C++ library support 11242 ld_shlibs_CXX=no 11243 fi 11244 ;; 11245 esac 11246 ;; 11247 interix3*) 11248 hardcode_direct_CXX=no 11249 hardcode_shlibpath_var_CXX=no 11250 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11251 export_dynamic_flag_spec_CXX='${wl}-E' 11252 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11253 # Instead, shared libraries are loaded at an image base (0x10000000 by 11254 # default) and relocated if they conflict, which is a slow very memory 11255 # consuming and fragmenting process. To avoid this, we pick a random, 11256 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11257 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11258 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' 11259 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' 11260 ;; 11261 irix5* | irix6*) 11262 case $cc_basename in 11263 CC*) 11264 # SGI C++ 11265 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' 11266 11267 # Archives containing C++ object files must be created using 11268 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11269 # necessary to make sure instantiated templates are included 11270 # in the archive. 11271 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11272 ;; 11273 *) 11274 if test "$GXX" = yes; then 11275 if test "$with_gnu_ld" = no; then 11276 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' 11277 else 11278 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' 11279 fi 11280 fi 11281 link_all_deplibs_CXX=yes 11282 ;; 11283 esac 11284 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11285 hardcode_libdir_separator_CXX=: 11286 ;; 11287 linux* | k*bsd*-gnu) 11288 case $cc_basename in 11289 KCC*) 11290 # Kuck and Associates, Inc. (KAI) C++ Compiler 11291 11292 # KCC will only create a shared library if the output file 11293 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11294 # to its proper name (with version) after linking. 11295 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' 11296 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' 11297 # Commands to make compiler produce verbose output that lists 11298 # what "hidden" libraries, object files and flags are used when 11299 # linking a shared library. 11300 # 11301 # There doesn't appear to be a way to prevent this compiler from 11302 # explicitly linking system object files so we need to strip them 11303 # from the output so that they don't get included in the library 11304 # dependencies. 11305 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' 11306 11307 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 11308 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11309 11310 # Archives containing C++ object files must be created using 11311 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11312 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11313 ;; 11314 icpc*) 11315 # Intel C++ 11316 with_gnu_ld=yes 11317 # version 8.0 and above of icpc choke on multiply defined symbols 11318 # if we add $predep_objects and $postdep_objects, however 7.1 and 11319 # earlier do not add the objects themselves. 11320 case `$CC -V 2>&1` in 11321 *"Version 7."*) 11322 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11323 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' 11324 ;; 11325 *) # Version 8.0 or newer 11326 tmp_idyn= 11327 case $host_cpu in 11328 ia64*) tmp_idyn=' -i_dynamic';; 11329 esac 11330 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11331 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' 11332 ;; 11333 esac 11334 archive_cmds_need_lc_CXX=no 11335 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11336 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11337 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11338 ;; 11339 pgCC*) 11340 # Portland Group C++ compiler 11341 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 11342 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' 11343 11344 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11345 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11346 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' 11347 ;; 11348 cxx*) 11349 # Compaq C++ 11350 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11351 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' 11352 11353 runpath_var=LD_RUN_PATH 11354 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11355 hardcode_libdir_separator_CXX=: 11356 11357 # Commands to make compiler produce verbose output that lists 11358 # what "hidden" libraries, object files and flags are used when 11359 # linking a shared library. 11360 # 11361 # There doesn't appear to be a way to prevent this compiler from 11362 # explicitly linking system object files so we need to strip them 11363 # from the output so that they don't get included in the library 11364 # dependencies. 11365 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' 11366 ;; 11367 esac 11368 ;; 11369 lynxos*) 11370 # FIXME: insert proper C++ library support 11371 ld_shlibs_CXX=no 11372 ;; 11373 m88k*) 11374 # FIXME: insert proper C++ library support 11375 ld_shlibs_CXX=no 11376 ;; 11377 mvs*) 11378 case $cc_basename in 11379 cxx*) 11380 # FIXME: insert proper C++ library support 11381 ld_shlibs_CXX=no 11382 ;; 11383 *) 11384 # FIXME: insert proper C++ library support 11385 ld_shlibs_CXX=no 11386 ;; 11387 esac 11388 ;; 11389 netbsd* | netbsdelf*-gnu) 11390 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11391 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 11392 wlarc= 11393 hardcode_libdir_flag_spec_CXX='-R$libdir' 11394 hardcode_direct_CXX=yes 11395 hardcode_shlibpath_var_CXX=no 11396 fi 11397 # Workaround some broken pre-1.5 toolchains 11398 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 11399 ;; 11400 openbsd2*) 11401 # C++ shared libraries are fairly broken 11402 ld_shlibs_CXX=no 11403 ;; 11404 openbsd*) 11405 hardcode_direct_CXX=yes 11406 hardcode_shlibpath_var_CXX=no 11407 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11408 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11409 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11410 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 11411 export_dynamic_flag_spec_CXX='${wl}-E' 11412 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11413 fi 11414 output_verbose_link_cmd='echo' 11415 ;; 11416 osf3*) 11417 case $cc_basename in 11418 KCC*) 11419 # Kuck and Associates, Inc. (KAI) C++ Compiler 11420 11421 # KCC will only create a shared library if the output file 11422 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11423 # to its proper name (with version) after linking. 11424 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' 11425 11426 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11427 hardcode_libdir_separator_CXX=: 11428 11429 # Archives containing C++ object files must be created using 11430 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11431 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11432 11433 ;; 11434 RCC*) 11435 # Rational C++ 2.4.1 11436 # FIXME: insert proper C++ library support 11437 ld_shlibs_CXX=no 11438 ;; 11439 cxx*) 11440 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11441 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' 11442 11443 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11444 hardcode_libdir_separator_CXX=: 11445 11446 # Commands to make compiler produce verbose output that lists 11447 # what "hidden" libraries, object files and flags are used when 11448 # linking a shared library. 11449 # 11450 # There doesn't appear to be a way to prevent this compiler from 11451 # explicitly linking system object files so we need to strip them 11452 # from the output so that they don't get included in the library 11453 # dependencies. 11454 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' 11455 ;; 11456 *) 11457 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11458 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11459 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' 11460 11461 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11462 hardcode_libdir_separator_CXX=: 11463 11464 # Commands to make compiler produce verbose output that lists 11465 # what "hidden" libraries, object files and flags are used when 11466 # linking a shared library. 11467 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11468 11469 else 11470 # FIXME: insert proper C++ library support 11471 ld_shlibs_CXX=no 11472 fi 11473 ;; 11474 esac 11475 ;; 11476 osf4* | osf5*) 11477 case $cc_basename in 11478 KCC*) 11479 # Kuck and Associates, Inc. (KAI) C++ Compiler 11480 11481 # KCC will only create a shared library if the output file 11482 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11483 # to its proper name (with version) after linking. 11484 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' 11485 11486 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11487 hardcode_libdir_separator_CXX=: 11488 11489 # Archives containing C++ object files must be created using 11490 # the KAI C++ compiler. 11491 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 11492 ;; 11493 RCC*) 11494 # Rational C++ 2.4.1 11495 # FIXME: insert proper C++ library support 11496 ld_shlibs_CXX=no 11497 ;; 11498 cxx*) 11499 allow_undefined_flag_CXX=' -expect_unresolved \*' 11500 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' 11501 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 11502 echo "-hidden">> $lib.exp~ 11503 $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~ 11504 $rm $lib.exp' 11505 11506 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11507 hardcode_libdir_separator_CXX=: 11508 11509 # Commands to make compiler produce verbose output that lists 11510 # what "hidden" libraries, object files and flags are used when 11511 # linking a shared library. 11512 # 11513 # There doesn't appear to be a way to prevent this compiler from 11514 # explicitly linking system object files so we need to strip them 11515 # from the output so that they don't get included in the library 11516 # dependencies. 11517 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' 11518 ;; 11519 *) 11520 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11521 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11522 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' 11523 11524 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11525 hardcode_libdir_separator_CXX=: 11526 11527 # Commands to make compiler produce verbose output that lists 11528 # what "hidden" libraries, object files and flags are used when 11529 # linking a shared library. 11530 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11531 11532 else 11533 # FIXME: insert proper C++ library support 11534 ld_shlibs_CXX=no 11535 fi 11536 ;; 11537 esac 11538 ;; 11539 psos*) 11540 # FIXME: insert proper C++ library support 11541 ld_shlibs_CXX=no 11542 ;; 11543 sunos4*) 11544 case $cc_basename in 11545 CC*) 11546 # Sun C++ 4.x 11547 # FIXME: insert proper C++ library support 11548 ld_shlibs_CXX=no 11549 ;; 11550 lcc*) 11551 # Lucid 11552 # FIXME: insert proper C++ library support 11553 ld_shlibs_CXX=no 11554 ;; 11555 *) 11556 # FIXME: insert proper C++ library support 11557 ld_shlibs_CXX=no 11558 ;; 11559 esac 11560 ;; 11561 solaris*) 11562 case $cc_basename in 11563 CC*) 11564 # Sun C++ 4.2, 5.x and Centerline C++ 11565 archive_cmds_need_lc_CXX=yes 11566 no_undefined_flag_CXX=' -zdefs' 11567 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11568 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11569 $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' 11570 11571 hardcode_libdir_flag_spec_CXX='-R$libdir' 11572 hardcode_shlibpath_var_CXX=no 11573 case $host_os in 11574 solaris2.[0-5] | solaris2.[0-5].*) ;; 11575 *) 11576 # The C++ compiler is used as linker so we must use $wl 11577 # flag to pass the commands to the underlying system 11578 # linker. We must also pass each convience library through 11579 # to the system linker between allextract/defaultextract. 11580 # The C++ compiler will combine linker options so we 11581 # cannot just pass the convience library names through 11582 # without $wl. 11583 # Supported since Solaris 2.6 (maybe 2.5.1?) 11584 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' 11585 ;; 11586 esac 11587 link_all_deplibs_CXX=yes 11588 11589 output_verbose_link_cmd='echo' 11590 11591 # Archives containing C++ object files must be created using 11592 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11593 # necessary to make sure instantiated templates are included 11594 # in the archive. 11595 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11596 ;; 11597 gcx*) 11598 # Green Hills C++ Compiler 11599 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11600 11601 # The C++ compiler must be used to create the archive. 11602 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 11603 ;; 11604 *) 11605 # GNU C++ compiler with Solaris linker 11606 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11607 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 11608 if $CC --version | grep -v '^2\.7' > /dev/null; then 11609 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11610 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11611 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11612 11613 # Commands to make compiler produce verbose output that lists 11614 # what "hidden" libraries, object files and flags are used when 11615 # linking a shared library. 11616 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11617 else 11618 # g++ 2.7 appears to require `-G' NOT `-shared' on this 11619 # platform. 11620 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11621 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11622 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11623 11624 # Commands to make compiler produce verbose output that lists 11625 # what "hidden" libraries, object files and flags are used when 11626 # linking a shared library. 11627 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11628 fi 11629 11630 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 11631 fi 11632 ;; 11633 esac 11634 ;; 11635 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11636 no_undefined_flag_CXX='${wl}-z,text' 11637 archive_cmds_need_lc_CXX=no 11638 hardcode_shlibpath_var_CXX=no 11639 runpath_var='LD_RUN_PATH' 11640 11641 case $cc_basename in 11642 CC*) 11643 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11644 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11645 ;; 11646 *) 11647 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11648 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11649 ;; 11650 esac 11651 ;; 11652 sysv5* | sco3.2v5* | sco5v6*) 11653 # Note: We can NOT use -z defs as we might desire, because we do not 11654 # link with -lc, and that would cause any symbols used from libc to 11655 # always be unresolved, which means just about no library would 11656 # ever link correctly. If we're not using GNU ld we use -z text 11657 # though, which does catch some bad symbols but isn't as heavy-handed 11658 # as -z defs. 11659 # For security reasons, it is highly recommended that you always 11660 # use absolute paths for naming shared libraries, and exclude the 11661 # DT_RUNPATH tag from executables and libraries. But doing so 11662 # requires that you compile everything twice, which is a pain. 11663 # So that behaviour is only enabled if SCOABSPATH is set to a 11664 # non-empty value in the environment. Most likely only useful for 11665 # creating official distributions of packages. 11666 # This is a hack until libtool officially supports absolute path 11667 # names for shared libraries. 11668 no_undefined_flag_CXX='${wl}-z,text' 11669 allow_undefined_flag_CXX='${wl}-z,nodefs' 11670 archive_cmds_need_lc_CXX=no 11671 hardcode_shlibpath_var_CXX=no 11672 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 11673 hardcode_libdir_separator_CXX=':' 11674 link_all_deplibs_CXX=yes 11675 export_dynamic_flag_spec_CXX='${wl}-Bexport' 11676 runpath_var='LD_RUN_PATH' 11677 11678 case $cc_basename in 11679 CC*) 11680 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11681 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11682 ;; 11683 *) 11684 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11685 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11686 ;; 11687 esac 11688 ;; 11689 tandem*) 11690 case $cc_basename in 11691 NCC*) 11692 # NonStop-UX NCC 3.20 11693 # FIXME: insert proper C++ library support 11694 ld_shlibs_CXX=no 11695 ;; 11696 *) 11697 # FIXME: insert proper C++ library support 11698 ld_shlibs_CXX=no 11699 ;; 11700 esac 11701 ;; 11702 vxworks*) 11703 # FIXME: insert proper C++ library support 11704 ld_shlibs_CXX=no 11705 ;; 11706 *) 11707 # FIXME: insert proper C++ library support 11708 ld_shlibs_CXX=no 11709 ;; 11710esac 11711{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11712echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 11713test "$ld_shlibs_CXX" = no && can_build_shared=no 11714 11715GCC_CXX="$GXX" 11716LD_CXX="$LD" 11717 11718## CAVEAT EMPTOR: 11719## There is no encapsulation within the following macros, do not change 11720## the running order or otherwise move them around unless you know exactly 11721## what you are doing... 11722 11723cat > conftest.$ac_ext <<EOF 11724class Foo 11725{ 11726public: 11727 Foo (void) { a = 0; } 11728private: 11729 int a; 11730}; 11731EOF 11732 11733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11734 (eval $ac_compile) 2>&5 11735 ac_status=$? 11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11737 (exit $ac_status); }; then 11738 # Parse the compiler output and extract the necessary 11739 # objects, libraries and library flags. 11740 11741 # Sentinel used to keep track of whether or not we are before 11742 # the conftest object file. 11743 pre_test_object_deps_done=no 11744 11745 # The `*' in the case matches for architectures that use `case' in 11746 # $output_verbose_cmd can trigger glob expansion during the loop 11747 # eval without this substitution. 11748 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 11749 11750 for p in `eval $output_verbose_link_cmd`; do 11751 case $p in 11752 11753 -L* | -R* | -l*) 11754 # Some compilers place space between "-{L,R}" and the path. 11755 # Remove the space. 11756 if test $p = "-L" \ 11757 || test $p = "-R"; then 11758 prev=$p 11759 continue 11760 else 11761 prev= 11762 fi 11763 11764 if test "$pre_test_object_deps_done" = no; then 11765 case $p in 11766 -L* | -R*) 11767 # Internal compiler library paths should come after those 11768 # provided the user. The postdeps already come after the 11769 # user supplied libs so there is no need to process them. 11770 if test -z "$compiler_lib_search_path_CXX"; then 11771 compiler_lib_search_path_CXX="${prev}${p}" 11772 else 11773 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 11774 fi 11775 ;; 11776 # The "-l" case would never come before the object being 11777 # linked, so don't bother handling this case. 11778 esac 11779 else 11780 if test -z "$postdeps_CXX"; then 11781 postdeps_CXX="${prev}${p}" 11782 else 11783 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 11784 fi 11785 fi 11786 ;; 11787 11788 *.$objext) 11789 # This assumes that the test object file only shows up 11790 # once in the compiler output. 11791 if test "$p" = "conftest.$objext"; then 11792 pre_test_object_deps_done=yes 11793 continue 11794 fi 11795 11796 if test "$pre_test_object_deps_done" = no; then 11797 if test -z "$predep_objects_CXX"; then 11798 predep_objects_CXX="$p" 11799 else 11800 predep_objects_CXX="$predep_objects_CXX $p" 11801 fi 11802 else 11803 if test -z "$postdep_objects_CXX"; then 11804 postdep_objects_CXX="$p" 11805 else 11806 postdep_objects_CXX="$postdep_objects_CXX $p" 11807 fi 11808 fi 11809 ;; 11810 11811 *) ;; # Ignore the rest. 11812 11813 esac 11814 done 11815 11816 # Clean up. 11817 rm -f a.out a.exe 11818else 11819 echo "libtool.m4: error: problem compiling CXX test program" 11820fi 11821 11822$rm -f confest.$objext 11823 11824# PORTME: override above test on systems where it is broken 11825case $host_os in 11826interix3*) 11827 # Interix 3.5 installs completely hosed .la files for C++, so rather than 11828 # hack all around it, let's just trust "g++" to DTRT. 11829 predep_objects_CXX= 11830 postdep_objects_CXX= 11831 postdeps_CXX= 11832 ;; 11833 11834solaris*) 11835 case $cc_basename in 11836 CC*) 11837 # Adding this requires a known-good setup of shared libraries for 11838 # Sun compiler versions before 5.6, else PIC objects from an old 11839 # archive will be linked into the output, leading to subtle bugs. 11840 postdeps_CXX='-lCstd -lCrun' 11841 ;; 11842 esac 11843 ;; 11844esac 11845 11846 11847case " $postdeps_CXX " in 11848*" -lc "*) archive_cmds_need_lc_CXX=no ;; 11849esac 11850 11851lt_prog_compiler_wl_CXX= 11852lt_prog_compiler_pic_CXX= 11853lt_prog_compiler_static_CXX= 11854 11855{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 11856echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 11857 11858 # C++ specific cases for pic, static, wl, etc. 11859 if test "$GXX" = yes; then 11860 lt_prog_compiler_wl_CXX='-Wl,' 11861 lt_prog_compiler_static_CXX='-static' 11862 11863 case $host_os in 11864 aix*) 11865 # All AIX code is PIC. 11866 if test "$host_cpu" = ia64; then 11867 # AIX 5 now supports IA64 processor 11868 lt_prog_compiler_static_CXX='-Bstatic' 11869 fi 11870 ;; 11871 amigaos*) 11872 # FIXME: we need at least 68020 code to build shared libraries, but 11873 # adding the `-m68020' flag to GCC prevents building anything better, 11874 # like `-m68040'. 11875 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 11876 ;; 11877 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 11878 # PIC is the default for these OSes. 11879 ;; 11880 mingw* | os2* | pw32*) 11881 # This hack is so that the source file can tell whether it is being 11882 # built for inclusion in a dll (and should export symbols for example). 11883 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 11884 ;; 11885 darwin* | rhapsody*) 11886 # PIC is the default on this platform 11887 # Common symbols not allowed in MH_DYLIB files 11888 lt_prog_compiler_pic_CXX='-fno-common' 11889 ;; 11890 *djgpp*) 11891 # DJGPP does not support shared libraries at all 11892 lt_prog_compiler_pic_CXX= 11893 ;; 11894 interix3*) 11895 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 11896 # Instead, we relocate shared libraries at runtime. 11897 ;; 11898 sysv4*MP*) 11899 if test -d /usr/nec; then 11900 lt_prog_compiler_pic_CXX=-Kconform_pic 11901 fi 11902 ;; 11903 hpux*) 11904 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11905 # not for PA HP-UX. 11906 case $host_cpu in 11907 hppa*64*|ia64*) 11908 ;; 11909 *) 11910 lt_prog_compiler_pic_CXX='-fPIC' 11911 ;; 11912 esac 11913 ;; 11914 *) 11915 lt_prog_compiler_pic_CXX='-fPIC' 11916 ;; 11917 esac 11918 else 11919 case $host_os in 11920 aix4* | aix5*) 11921 # All AIX code is PIC. 11922 if test "$host_cpu" = ia64; then 11923 # AIX 5 now supports IA64 processor 11924 lt_prog_compiler_static_CXX='-Bstatic' 11925 else 11926 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 11927 fi 11928 ;; 11929 chorus*) 11930 case $cc_basename in 11931 cxch68*) 11932 # Green Hills C++ Compiler 11933 # _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" 11934 ;; 11935 esac 11936 ;; 11937 darwin*) 11938 # PIC is the default on this platform 11939 # Common symbols not allowed in MH_DYLIB files 11940 case $cc_basename in 11941 xlc*) 11942 lt_prog_compiler_pic_CXX='-qnocommon' 11943 lt_prog_compiler_wl_CXX='-Wl,' 11944 ;; 11945 esac 11946 ;; 11947 dgux*) 11948 case $cc_basename in 11949 ec++*) 11950 lt_prog_compiler_pic_CXX='-KPIC' 11951 ;; 11952 ghcx*) 11953 # Green Hills C++ Compiler 11954 lt_prog_compiler_pic_CXX='-pic' 11955 ;; 11956 *) 11957 ;; 11958 esac 11959 ;; 11960 freebsd* | dragonfly*) 11961 # FreeBSD uses GNU C++ 11962 ;; 11963 hpux9* | hpux10* | hpux11*) 11964 case $cc_basename in 11965 CC*) 11966 lt_prog_compiler_wl_CXX='-Wl,' 11967 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 11968 if test "$host_cpu" != ia64; then 11969 lt_prog_compiler_pic_CXX='+Z' 11970 fi 11971 ;; 11972 aCC*) 11973 lt_prog_compiler_wl_CXX='-Wl,' 11974 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 11975 case $host_cpu in 11976 hppa*64*|ia64*) 11977 # +Z the default 11978 ;; 11979 *) 11980 lt_prog_compiler_pic_CXX='+Z' 11981 ;; 11982 esac 11983 ;; 11984 *) 11985 ;; 11986 esac 11987 ;; 11988 interix*) 11989 # This is c89, which is MS Visual C++ (no shared libs) 11990 # Anyone wants to do a port? 11991 ;; 11992 irix5* | irix6* | nonstopux*) 11993 case $cc_basename in 11994 CC*) 11995 lt_prog_compiler_wl_CXX='-Wl,' 11996 lt_prog_compiler_static_CXX='-non_shared' 11997 # CC pic flag -KPIC is the default. 11998 ;; 11999 *) 12000 ;; 12001 esac 12002 ;; 12003 linux* | k*bsd*-gnu) 12004 case $cc_basename in 12005 KCC*) 12006 # KAI C++ Compiler 12007 lt_prog_compiler_wl_CXX='--backend -Wl,' 12008 lt_prog_compiler_pic_CXX='-fPIC' 12009 ;; 12010 icpc* | ecpc*) 12011 # Intel C++ 12012 lt_prog_compiler_wl_CXX='-Wl,' 12013 lt_prog_compiler_pic_CXX='-KPIC' 12014 lt_prog_compiler_static_CXX='-static' 12015 ;; 12016 pgCC*) 12017 # Portland Group C++ compiler. 12018 lt_prog_compiler_wl_CXX='-Wl,' 12019 lt_prog_compiler_pic_CXX='-fpic' 12020 lt_prog_compiler_static_CXX='-Bstatic' 12021 ;; 12022 cxx*) 12023 # Compaq C++ 12024 # Make sure the PIC flag is empty. It appears that all Alpha 12025 # Linux and Compaq Tru64 Unix objects are PIC. 12026 lt_prog_compiler_pic_CXX= 12027 lt_prog_compiler_static_CXX='-non_shared' 12028 ;; 12029 *) 12030 ;; 12031 esac 12032 ;; 12033 lynxos*) 12034 ;; 12035 m88k*) 12036 ;; 12037 mvs*) 12038 case $cc_basename in 12039 cxx*) 12040 lt_prog_compiler_pic_CXX='-W c,exportall' 12041 ;; 12042 *) 12043 ;; 12044 esac 12045 ;; 12046 netbsd* | netbsdelf*-gnu) 12047 ;; 12048 osf3* | osf4* | osf5*) 12049 case $cc_basename in 12050 KCC*) 12051 lt_prog_compiler_wl_CXX='--backend -Wl,' 12052 ;; 12053 RCC*) 12054 # Rational C++ 2.4.1 12055 lt_prog_compiler_pic_CXX='-pic' 12056 ;; 12057 cxx*) 12058 # Digital/Compaq C++ 12059 lt_prog_compiler_wl_CXX='-Wl,' 12060 # Make sure the PIC flag is empty. It appears that all Alpha 12061 # Linux and Compaq Tru64 Unix objects are PIC. 12062 lt_prog_compiler_pic_CXX= 12063 lt_prog_compiler_static_CXX='-non_shared' 12064 ;; 12065 *) 12066 ;; 12067 esac 12068 ;; 12069 psos*) 12070 ;; 12071 solaris*) 12072 case $cc_basename in 12073 CC*) 12074 # Sun C++ 4.2, 5.x and Centerline C++ 12075 lt_prog_compiler_pic_CXX='-KPIC' 12076 lt_prog_compiler_static_CXX='-Bstatic' 12077 lt_prog_compiler_wl_CXX='-Qoption ld ' 12078 ;; 12079 gcx*) 12080 # Green Hills C++ Compiler 12081 lt_prog_compiler_pic_CXX='-PIC' 12082 ;; 12083 *) 12084 ;; 12085 esac 12086 ;; 12087 sunos4*) 12088 case $cc_basename in 12089 CC*) 12090 # Sun C++ 4.x 12091 lt_prog_compiler_pic_CXX='-pic' 12092 lt_prog_compiler_static_CXX='-Bstatic' 12093 ;; 12094 lcc*) 12095 # Lucid 12096 lt_prog_compiler_pic_CXX='-pic' 12097 ;; 12098 *) 12099 ;; 12100 esac 12101 ;; 12102 tandem*) 12103 case $cc_basename in 12104 NCC*) 12105 # NonStop-UX NCC 3.20 12106 lt_prog_compiler_pic_CXX='-KPIC' 12107 ;; 12108 *) 12109 ;; 12110 esac 12111 ;; 12112 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12113 case $cc_basename in 12114 CC*) 12115 lt_prog_compiler_wl_CXX='-Wl,' 12116 lt_prog_compiler_pic_CXX='-KPIC' 12117 lt_prog_compiler_static_CXX='-Bstatic' 12118 ;; 12119 esac 12120 ;; 12121 vxworks*) 12122 ;; 12123 *) 12124 lt_prog_compiler_can_build_shared_CXX=no 12125 ;; 12126 esac 12127 fi 12128 12129{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12130echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } 12131 12132# 12133# Check to make sure the PIC flag actually works. 12134# 12135if test -n "$lt_prog_compiler_pic_CXX"; then 12136 12137{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12138echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } 12139if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 12140 echo $ECHO_N "(cached) $ECHO_C" >&6 12141else 12142 lt_prog_compiler_pic_works_CXX=no 12143 ac_outfile=conftest.$ac_objext 12144 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12145 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12146 # Insert the option either (1) after the last *FLAGS variable, or 12147 # (2) before a word containing "conftest.", or (3) at the end. 12148 # Note that $ac_compile itself does not contain backslashes and begins 12149 # with a dollar sign (not a hyphen), so the echo should work correctly. 12150 # The option is referenced via a variable to avoid confusing sed. 12151 lt_compile=`echo "$ac_compile" | $SED \ 12152 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12153 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12154 -e 's:$: $lt_compiler_flag:'` 12155 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 12156 (eval "$lt_compile" 2>conftest.err) 12157 ac_status=$? 12158 cat conftest.err >&5 12159 echo "$as_me:__oline__: \$? = $ac_status" >&5 12160 if (exit $ac_status) && test -s "$ac_outfile"; then 12161 # The compiler can only warn and ignore the option if not recognized 12162 # So say no if there are warnings other than the usual output. 12163 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12164 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12165 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12166 lt_prog_compiler_pic_works_CXX=yes 12167 fi 12168 fi 12169 $rm conftest* 12170 12171fi 12172{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 12173echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } 12174 12175if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 12176 case $lt_prog_compiler_pic_CXX in 12177 "" | " "*) ;; 12178 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12179 esac 12180else 12181 lt_prog_compiler_pic_CXX= 12182 lt_prog_compiler_can_build_shared_CXX=no 12183fi 12184 12185fi 12186case $host_os in 12187 # For platforms which do not support PIC, -DPIC is meaningless: 12188 *djgpp*) 12189 lt_prog_compiler_pic_CXX= 12190 ;; 12191 *) 12192 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12193 ;; 12194esac 12195 12196# 12197# Check to make sure the static flag actually works. 12198# 12199wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 12200{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12201echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 12202if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 12203 echo $ECHO_N "(cached) $ECHO_C" >&6 12204else 12205 lt_prog_compiler_static_works_CXX=no 12206 save_LDFLAGS="$LDFLAGS" 12207 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12208 printf "$lt_simple_link_test_code" > conftest.$ac_ext 12209 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12210 # The linker can only warn and ignore the option if not recognized 12211 # So say no if there are warnings 12212 if test -s conftest.err; then 12213 # Append any errors to the config.log. 12214 cat conftest.err 1>&5 12215 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 12216 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12217 if diff conftest.exp conftest.er2 >/dev/null; then 12218 lt_prog_compiler_static_works_CXX=yes 12219 fi 12220 else 12221 lt_prog_compiler_static_works_CXX=yes 12222 fi 12223 fi 12224 $rm conftest* 12225 LDFLAGS="$save_LDFLAGS" 12226 12227fi 12228{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 12229echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } 12230 12231if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 12232 : 12233else 12234 lt_prog_compiler_static_CXX= 12235fi 12236 12237 12238{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12239echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 12240if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 12241 echo $ECHO_N "(cached) $ECHO_C" >&6 12242else 12243 lt_cv_prog_compiler_c_o_CXX=no 12244 $rm -r conftest 2>/dev/null 12245 mkdir conftest 12246 cd conftest 12247 mkdir out 12248 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12249 12250 lt_compiler_flag="-o out/conftest2.$ac_objext" 12251 # Insert the option either (1) after the last *FLAGS variable, or 12252 # (2) before a word containing "conftest.", or (3) at the end. 12253 # Note that $ac_compile itself does not contain backslashes and begins 12254 # with a dollar sign (not a hyphen), so the echo should work correctly. 12255 lt_compile=`echo "$ac_compile" | $SED \ 12256 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12257 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12258 -e 's:$: $lt_compiler_flag:'` 12259 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 12260 (eval "$lt_compile" 2>out/conftest.err) 12261 ac_status=$? 12262 cat out/conftest.err >&5 12263 echo "$as_me:__oline__: \$? = $ac_status" >&5 12264 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12265 then 12266 # The compiler can only warn and ignore the option if not recognized 12267 # So say no if there are warnings 12268 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 12269 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12270 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12271 lt_cv_prog_compiler_c_o_CXX=yes 12272 fi 12273 fi 12274 chmod u+w . 2>&5 12275 $rm conftest* 12276 # SGI C++ compiler will create directory out/ii_files/ for 12277 # template instantiation 12278 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 12279 $rm out/* && rmdir out 12280 cd .. 12281 rmdir conftest 12282 $rm conftest* 12283 12284fi 12285{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 12286echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } 12287 12288 12289hard_links="nottested" 12290if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 12291 # do not overwrite the value of need_locks provided by the user 12292 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 12293echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 12294 hard_links=yes 12295 $rm conftest* 12296 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12297 touch conftest.a 12298 ln conftest.a conftest.b 2>&5 || hard_links=no 12299 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12300 { echo "$as_me:$LINENO: result: $hard_links" >&5 12301echo "${ECHO_T}$hard_links" >&6; } 12302 if test "$hard_links" = no; then 12303 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12304echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12305 need_locks=warn 12306 fi 12307else 12308 need_locks=no 12309fi 12310 12311{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12312echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 12313 12314 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12315 case $host_os in 12316 aix4* | aix5*) 12317 # If we're using GNU nm, then we don't want the "-C" option. 12318 # -C means demangle to AIX nm, but means don't demangle with GNU nm 12319 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 12320 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' 12321 else 12322 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' 12323 fi 12324 ;; 12325 pw32*) 12326 export_symbols_cmds_CXX="$ltdll_cmds" 12327 ;; 12328 cygwin* | mingw*) 12329 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' 12330 ;; 12331 linux* | k*bsd*-gnu) 12332 link_all_deplibs_CXX=no 12333 ;; 12334 *) 12335 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12336 ;; 12337 esac 12338 12339{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12340echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12341test "$ld_shlibs_CXX" = no && can_build_shared=no 12342 12343# 12344# Do we need to explicitly link libc? 12345# 12346case "x$archive_cmds_need_lc_CXX" in 12347x|xyes) 12348 # Assume -lc should be added 12349 archive_cmds_need_lc_CXX=yes 12350 12351 if test "$enable_shared" = yes && test "$GCC" = yes; then 12352 case $archive_cmds_CXX in 12353 *'~'*) 12354 # FIXME: we may have to deal with multi-command sequences. 12355 ;; 12356 '$CC '*) 12357 # Test whether the compiler implicitly links with -lc since on some 12358 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12359 # to ld, don't add -lc before -lgcc. 12360 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 12361echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 12362 $rm conftest* 12363 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12364 12365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12366 (eval $ac_compile) 2>&5 12367 ac_status=$? 12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12369 (exit $ac_status); } 2>conftest.err; then 12370 soname=conftest 12371 lib=conftest 12372 libobjs=conftest.$ac_objext 12373 deplibs= 12374 wl=$lt_prog_compiler_wl_CXX 12375 pic_flag=$lt_prog_compiler_pic_CXX 12376 compiler_flags=-v 12377 linker_flags=-v 12378 verstring= 12379 output_objdir=. 12380 libname=conftest 12381 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 12382 allow_undefined_flag_CXX= 12383 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 12384 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 12385 ac_status=$? 12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12387 (exit $ac_status); } 12388 then 12389 archive_cmds_need_lc_CXX=no 12390 else 12391 archive_cmds_need_lc_CXX=yes 12392 fi 12393 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 12394 else 12395 cat conftest.err 1>&5 12396 fi 12397 $rm conftest* 12398 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 12399echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } 12400 ;; 12401 esac 12402 fi 12403 ;; 12404esac 12405 12406{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 12407echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 12408library_names_spec= 12409libname_spec='lib$name' 12410soname_spec= 12411shrext_cmds=".so" 12412postinstall_cmds= 12413postuninstall_cmds= 12414finish_cmds= 12415finish_eval= 12416shlibpath_var= 12417shlibpath_overrides_runpath=unknown 12418version_type=none 12419dynamic_linker="$host_os ld.so" 12420sys_lib_dlsearch_path_spec="/lib /usr/lib" 12421if test "$GCC" = yes; then 12422 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12423 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 12424 # if the path contains ";" then we assume it to be the separator 12425 # otherwise default to the standard path separator (i.e. ":") - it is 12426 # assumed that no part of a normal pathname contains ";" but that should 12427 # okay in the real world where ";" in dirpaths is itself problematic. 12428 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12429 else 12430 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12431 fi 12432else 12433 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12434fi 12435need_lib_prefix=unknown 12436hardcode_into_libs=no 12437 12438# when you set need_version to no, make sure it does not cause -set_version 12439# flags to be left without arguments 12440need_version=unknown 12441 12442case $host_os in 12443aix3*) 12444 version_type=linux 12445 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12446 shlibpath_var=LIBPATH 12447 12448 # AIX 3 has no versioning support, so we append a major version to the name. 12449 soname_spec='${libname}${release}${shared_ext}$major' 12450 ;; 12451 12452aix4* | aix5*) 12453 version_type=linux 12454 need_lib_prefix=no 12455 need_version=no 12456 hardcode_into_libs=yes 12457 if test "$host_cpu" = ia64; then 12458 # AIX 5 supports IA64 12459 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 12460 shlibpath_var=LD_LIBRARY_PATH 12461 else 12462 # With GCC up to 2.95.x, collect2 would create an import file 12463 # for dependence libraries. The import file would start with 12464 # the line `#! .'. This would cause the generated library to 12465 # depend on `.', always an invalid library. This was fixed in 12466 # development snapshots of GCC prior to 3.0. 12467 case $host_os in 12468 aix4 | aix4.[01] | aix4.[01].*) 12469 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12470 echo ' yes ' 12471 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 12472 : 12473 else 12474 can_build_shared=no 12475 fi 12476 ;; 12477 esac 12478 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 12479 # soname into executable. Probably we can add versioning support to 12480 # collect2, so additional links can be useful in future. 12481 if test "$aix_use_runtimelinking" = yes; then 12482 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12483 # instead of lib<name>.a to let people know that these are not 12484 # typical AIX shared libraries. 12485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12486 else 12487 # We preserve .a as extension for shared libraries through AIX4.2 12488 # and later when we are not doing run time linking. 12489 library_names_spec='${libname}${release}.a $libname.a' 12490 soname_spec='${libname}${release}${shared_ext}$major' 12491 fi 12492 shlibpath_var=LIBPATH 12493 fi 12494 ;; 12495 12496amigaos*) 12497 library_names_spec='$libname.ixlibrary $libname.a' 12498 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12499 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' 12500 ;; 12501 12502beos*) 12503 library_names_spec='${libname}${shared_ext}' 12504 dynamic_linker="$host_os ld.so" 12505 shlibpath_var=LIBRARY_PATH 12506 ;; 12507 12508bsdi[45]*) 12509 version_type=linux 12510 need_version=no 12511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12512 soname_spec='${libname}${release}${shared_ext}$major' 12513 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12514 shlibpath_var=LD_LIBRARY_PATH 12515 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12516 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12517 # the default ld.so.conf also contains /usr/contrib/lib and 12518 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12519 # libtool to hard-code these into programs 12520 ;; 12521 12522cygwin* | mingw* | pw32*) 12523 version_type=windows 12524 shrext_cmds=".dll" 12525 need_version=no 12526 need_lib_prefix=no 12527 12528 case $GCC,$host_os in 12529 yes,cygwin* | yes,mingw* | yes,pw32*) 12530 library_names_spec='$libname.dll.a' 12531 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12532 postinstall_cmds='base_file=`basename \${file}`~ 12533 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 12534 dldir=$destdir/`dirname \$dlpath`~ 12535 test -d \$dldir || mkdir -p \$dldir~ 12536 $install_prog $dir/$dlname \$dldir/$dlname~ 12537 chmod a+x \$dldir/$dlname' 12538 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12539 dlpath=$dir/\$dldll~ 12540 $rm \$dlpath' 12541 shlibpath_overrides_runpath=yes 12542 12543 case $host_os in 12544 cygwin*) 12545 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12546 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12547 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 12548 ;; 12549 mingw*) 12550 # MinGW DLLs use traditional 'lib' prefix 12551 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12552 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12553 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 12554 # It is most probably a Windows format PATH printed by 12555 # mingw gcc, but we are running on Cygwin. Gcc prints its search 12556 # path with ; separators, and with drive letters. We can handle the 12557 # drive letters (cygwin fileutils understands them), so leave them, 12558 # especially as we might pass files found there to a mingw objdump, 12559 # which wouldn't understand a cygwinified path. Ahh. 12560 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12561 else 12562 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12563 fi 12564 ;; 12565 pw32*) 12566 # pw32 DLLs use 'pw' prefix rather than 'lib' 12567 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12568 ;; 12569 esac 12570 ;; 12571 12572 *) 12573 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 12574 ;; 12575 esac 12576 dynamic_linker='Win32 ld.exe' 12577 # FIXME: first we should search . and the directory the executable is in 12578 shlibpath_var=PATH 12579 ;; 12580 12581darwin* | rhapsody*) 12582 dynamic_linker="$host_os dyld" 12583 version_type=darwin 12584 need_lib_prefix=no 12585 need_version=no 12586 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 12587 soname_spec='${libname}${release}${major}$shared_ext' 12588 shlibpath_overrides_runpath=yes 12589 shlibpath_var=DYLD_LIBRARY_PATH 12590 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12591 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 12592 if test "$GCC" = yes; then 12593 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"` 12594 else 12595 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 12596 fi 12597 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12598 ;; 12599 12600dgux*) 12601 version_type=linux 12602 need_lib_prefix=no 12603 need_version=no 12604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 12605 soname_spec='${libname}${release}${shared_ext}$major' 12606 shlibpath_var=LD_LIBRARY_PATH 12607 ;; 12608 12609freebsd1*) 12610 dynamic_linker=no 12611 ;; 12612 12613freebsd* | dragonfly*) 12614 # DragonFly does not have aout. When/if they implement a new 12615 # versioning mechanism, adjust this. 12616 if test -x /usr/bin/objformat; then 12617 objformat=`/usr/bin/objformat` 12618 else 12619 case $host_os in 12620 freebsd[123]*) objformat=aout ;; 12621 *) objformat=elf ;; 12622 esac 12623 fi 12624 version_type=freebsd-$objformat 12625 case $version_type in 12626 freebsd-elf*) 12627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12628 need_version=no 12629 need_lib_prefix=no 12630 ;; 12631 freebsd-*) 12632 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 12633 need_version=yes 12634 ;; 12635 esac 12636 shlibpath_var=LD_LIBRARY_PATH 12637 case $host_os in 12638 freebsd2*) 12639 shlibpath_overrides_runpath=yes 12640 ;; 12641 freebsd3.[01]* | freebsdelf3.[01]*) 12642 shlibpath_overrides_runpath=yes 12643 hardcode_into_libs=yes 12644 ;; 12645 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12646 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12647 shlibpath_overrides_runpath=no 12648 hardcode_into_libs=yes 12649 ;; 12650 freebsd*) # from 4.6 on 12651 shlibpath_overrides_runpath=yes 12652 hardcode_into_libs=yes 12653 ;; 12654 esac 12655 ;; 12656 12657gnu*) 12658 version_type=linux 12659 need_lib_prefix=no 12660 need_version=no 12661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12662 soname_spec='${libname}${release}${shared_ext}$major' 12663 shlibpath_var=LD_LIBRARY_PATH 12664 hardcode_into_libs=yes 12665 ;; 12666 12667hpux9* | hpux10* | hpux11*) 12668 # Give a soname corresponding to the major version so that dld.sl refuses to 12669 # link against other versions. 12670 version_type=sunos 12671 need_lib_prefix=no 12672 need_version=no 12673 case $host_cpu in 12674 ia64*) 12675 shrext_cmds='.so' 12676 hardcode_into_libs=yes 12677 dynamic_linker="$host_os dld.so" 12678 shlibpath_var=LD_LIBRARY_PATH 12679 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12681 soname_spec='${libname}${release}${shared_ext}$major' 12682 if test "X$HPUX_IA64_MODE" = X32; then 12683 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12684 else 12685 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12686 fi 12687 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12688 ;; 12689 hppa*64*) 12690 shrext_cmds='.sl' 12691 hardcode_into_libs=yes 12692 dynamic_linker="$host_os dld.sl" 12693 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12694 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12696 soname_spec='${libname}${release}${shared_ext}$major' 12697 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12698 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12699 ;; 12700 *) 12701 shrext_cmds='.sl' 12702 dynamic_linker="$host_os dld.sl" 12703 shlibpath_var=SHLIB_PATH 12704 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12706 soname_spec='${libname}${release}${shared_ext}$major' 12707 ;; 12708 esac 12709 # HP-UX runs *really* slowly unless shared libraries are mode 555. 12710 postinstall_cmds='chmod 555 $lib' 12711 ;; 12712 12713interix3*) 12714 version_type=linux 12715 need_lib_prefix=no 12716 need_version=no 12717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12718 soname_spec='${libname}${release}${shared_ext}$major' 12719 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12720 shlibpath_var=LD_LIBRARY_PATH 12721 shlibpath_overrides_runpath=no 12722 hardcode_into_libs=yes 12723 ;; 12724 12725irix5* | irix6* | nonstopux*) 12726 case $host_os in 12727 nonstopux*) version_type=nonstopux ;; 12728 *) 12729 if test "$lt_cv_prog_gnu_ld" = yes; then 12730 version_type=linux 12731 else 12732 version_type=irix 12733 fi ;; 12734 esac 12735 need_lib_prefix=no 12736 need_version=no 12737 soname_spec='${libname}${release}${shared_ext}$major' 12738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 12739 case $host_os in 12740 irix5* | nonstopux*) 12741 libsuff= shlibsuff= 12742 ;; 12743 *) 12744 case $LD in # libtool.m4 will add one of these switches to LD 12745 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12746 libsuff= shlibsuff= libmagic=32-bit;; 12747 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12748 libsuff=32 shlibsuff=N32 libmagic=N32;; 12749 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12750 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12751 *) libsuff= shlibsuff= libmagic=never-match;; 12752 esac 12753 ;; 12754 esac 12755 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12756 shlibpath_overrides_runpath=no 12757 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12758 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12759 hardcode_into_libs=yes 12760 ;; 12761 12762# No shared lib support for Linux oldld, aout, or coff. 12763linux*oldld* | linux*aout* | linux*coff*) 12764 dynamic_linker=no 12765 ;; 12766 12767# This must be Linux ELF. 12768linux* | k*bsd*-gnu) 12769 version_type=linux 12770 need_lib_prefix=no 12771 need_version=no 12772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12773 soname_spec='${libname}${release}${shared_ext}$major' 12774 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12775 shlibpath_var=LD_LIBRARY_PATH 12776 shlibpath_overrides_runpath=no 12777 # This implies no fast_install, which is unacceptable. 12778 # Some rework will be needed to allow for fast_install 12779 # before this can be enabled. 12780 hardcode_into_libs=yes 12781 12782 # Append ld.so.conf contents to the search path 12783 if test -f /etc/ld.so.conf; then 12784 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 12785 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12786 fi 12787 12788 # We used to test for /lib/ld.so.1 and disable shared libraries on 12789 # powerpc, because MkLinux only supported shared libraries with the 12790 # GNU dynamic linker. Since this was broken with cross compilers, 12791 # most powerpc-linux boxes support dynamic linking these days and 12792 # people can always --disable-shared, the test was removed, and we 12793 # assume the GNU/Linux dynamic linker is in use. 12794 dynamic_linker='GNU/Linux ld.so' 12795 ;; 12796 12797netbsdelf*-gnu) 12798 version_type=linux 12799 need_lib_prefix=no 12800 need_version=no 12801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12802 soname_spec='${libname}${release}${shared_ext}$major' 12803 shlibpath_var=LD_LIBRARY_PATH 12804 shlibpath_overrides_runpath=no 12805 hardcode_into_libs=yes 12806 dynamic_linker='NetBSD ld.elf_so' 12807 ;; 12808 12809netbsd*) 12810 version_type=sunos 12811 need_lib_prefix=no 12812 need_version=no 12813 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12815 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12816 dynamic_linker='NetBSD (a.out) ld.so' 12817 else 12818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12819 soname_spec='${libname}${release}${shared_ext}$major' 12820 dynamic_linker='NetBSD ld.elf_so' 12821 fi 12822 shlibpath_var=LD_LIBRARY_PATH 12823 shlibpath_overrides_runpath=yes 12824 hardcode_into_libs=yes 12825 ;; 12826 12827newsos6) 12828 version_type=linux 12829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12830 shlibpath_var=LD_LIBRARY_PATH 12831 shlibpath_overrides_runpath=yes 12832 ;; 12833 12834nto-qnx*) 12835 version_type=linux 12836 need_lib_prefix=no 12837 need_version=no 12838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12839 soname_spec='${libname}${release}${shared_ext}$major' 12840 shlibpath_var=LD_LIBRARY_PATH 12841 shlibpath_overrides_runpath=yes 12842 ;; 12843 12844openbsd*) 12845 version_type=sunos 12846 sys_lib_dlsearch_path_spec="/usr/lib" 12847 need_lib_prefix=no 12848 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 12849 case $host_os in 12850 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 12851 *) need_version=no ;; 12852 esac 12853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12854 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12855 shlibpath_var=LD_LIBRARY_PATH 12856 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12857 case $host_os in 12858 openbsd2.[89] | openbsd2.[89].*) 12859 shlibpath_overrides_runpath=no 12860 ;; 12861 *) 12862 shlibpath_overrides_runpath=yes 12863 ;; 12864 esac 12865 else 12866 shlibpath_overrides_runpath=yes 12867 fi 12868 ;; 12869 12870os2*) 12871 libname_spec='$name' 12872 shrext_cmds=".dll" 12873 need_lib_prefix=no 12874 library_names_spec='$libname${shared_ext} $libname.a' 12875 dynamic_linker='OS/2 ld.exe' 12876 shlibpath_var=LIBPATH 12877 ;; 12878 12879osf3* | osf4* | osf5*) 12880 version_type=osf 12881 need_lib_prefix=no 12882 need_version=no 12883 soname_spec='${libname}${release}${shared_ext}$major' 12884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12885 shlibpath_var=LD_LIBRARY_PATH 12886 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12887 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 12888 ;; 12889 12890solaris*) 12891 version_type=linux 12892 need_lib_prefix=no 12893 need_version=no 12894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12895 soname_spec='${libname}${release}${shared_ext}$major' 12896 shlibpath_var=LD_LIBRARY_PATH 12897 shlibpath_overrides_runpath=yes 12898 hardcode_into_libs=yes 12899 # ldd complains unless libraries are executable 12900 postinstall_cmds='chmod +x $lib' 12901 ;; 12902 12903sunos4*) 12904 version_type=sunos 12905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12906 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12907 shlibpath_var=LD_LIBRARY_PATH 12908 shlibpath_overrides_runpath=yes 12909 if test "$with_gnu_ld" = yes; then 12910 need_lib_prefix=no 12911 fi 12912 need_version=yes 12913 ;; 12914 12915sysv4 | sysv4.3*) 12916 version_type=linux 12917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12918 soname_spec='${libname}${release}${shared_ext}$major' 12919 shlibpath_var=LD_LIBRARY_PATH 12920 case $host_vendor in 12921 sni) 12922 shlibpath_overrides_runpath=no 12923 need_lib_prefix=no 12924 export_dynamic_flag_spec='${wl}-Blargedynsym' 12925 runpath_var=LD_RUN_PATH 12926 ;; 12927 siemens) 12928 need_lib_prefix=no 12929 ;; 12930 motorola) 12931 need_lib_prefix=no 12932 need_version=no 12933 shlibpath_overrides_runpath=no 12934 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12935 ;; 12936 esac 12937 ;; 12938 12939sysv4*MP*) 12940 if test -d /usr/nec ;then 12941 version_type=linux 12942 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 12943 soname_spec='$libname${shared_ext}.$major' 12944 shlibpath_var=LD_LIBRARY_PATH 12945 fi 12946 ;; 12947 12948sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12949 version_type=freebsd-elf 12950 need_lib_prefix=no 12951 need_version=no 12952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12953 soname_spec='${libname}${release}${shared_ext}$major' 12954 shlibpath_var=LD_LIBRARY_PATH 12955 hardcode_into_libs=yes 12956 if test "$with_gnu_ld" = yes; then 12957 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12958 shlibpath_overrides_runpath=no 12959 else 12960 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12961 shlibpath_overrides_runpath=yes 12962 case $host_os in 12963 sco3.2v5*) 12964 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12965 ;; 12966 esac 12967 fi 12968 sys_lib_dlsearch_path_spec='/usr/lib' 12969 ;; 12970 12971uts4*) 12972 version_type=linux 12973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12974 soname_spec='${libname}${release}${shared_ext}$major' 12975 shlibpath_var=LD_LIBRARY_PATH 12976 ;; 12977 12978*) 12979 dynamic_linker=no 12980 ;; 12981esac 12982{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 12983echo "${ECHO_T}$dynamic_linker" >&6; } 12984test "$dynamic_linker" = no && can_build_shared=no 12985 12986variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12987if test "$GCC" = yes; then 12988 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12989fi 12990 12991{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 12992echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 12993hardcode_action_CXX= 12994if test -n "$hardcode_libdir_flag_spec_CXX" || \ 12995 test -n "$runpath_var_CXX" || \ 12996 test "X$hardcode_automatic_CXX" = "Xyes" ; then 12997 12998 # We can hardcode non-existant directories. 12999 if test "$hardcode_direct_CXX" != no && 13000 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13001 # have to relink, otherwise we might link with an installed library 13002 # when we should be linking with a yet-to-be-installed one 13003 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13004 test "$hardcode_minus_L_CXX" != no; then 13005 # Linking always hardcodes the temporary library directory. 13006 hardcode_action_CXX=relink 13007 else 13008 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13009 hardcode_action_CXX=immediate 13010 fi 13011else 13012 # We cannot hardcode anything, or else we can only hardcode existing 13013 # directories. 13014 hardcode_action_CXX=unsupported 13015fi 13016{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13017echo "${ECHO_T}$hardcode_action_CXX" >&6; } 13018 13019if test "$hardcode_action_CXX" = relink; then 13020 # Fast installation is not supported 13021 enable_fast_install=no 13022elif test "$shlibpath_overrides_runpath" = yes || 13023 test "$enable_shared" = no; then 13024 # Fast installation is not necessary 13025 enable_fast_install=needless 13026fi 13027 13028 13029# The else clause should only fire when bootstrapping the 13030# libtool distribution, otherwise you forgot to ship ltmain.sh 13031# with your package, and you will get complaints that there are 13032# no rules to generate ltmain.sh. 13033if test -f "$ltmain"; then 13034 # See if we are running on zsh, and set the options which allow our commands through 13035 # without removal of \ escapes. 13036 if test -n "${ZSH_VERSION+set}" ; then 13037 setopt NO_GLOB_SUBST 13038 fi 13039 # Now quote all the things that may contain metacharacters while being 13040 # careful not to overquote the AC_SUBSTed values. We take copies of the 13041 # variables and quote the copies for generation of the libtool script. 13042 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13043 SED SHELL STRIP \ 13044 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13045 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13046 deplibs_check_method reload_flag reload_cmds need_locks \ 13047 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13048 lt_cv_sys_global_symbol_to_c_name_address \ 13049 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13050 old_postinstall_cmds old_postuninstall_cmds \ 13051 compiler_CXX \ 13052 CC_CXX \ 13053 LD_CXX \ 13054 lt_prog_compiler_wl_CXX \ 13055 lt_prog_compiler_pic_CXX \ 13056 lt_prog_compiler_static_CXX \ 13057 lt_prog_compiler_no_builtin_flag_CXX \ 13058 export_dynamic_flag_spec_CXX \ 13059 thread_safe_flag_spec_CXX \ 13060 whole_archive_flag_spec_CXX \ 13061 enable_shared_with_static_runtimes_CXX \ 13062 old_archive_cmds_CXX \ 13063 old_archive_from_new_cmds_CXX \ 13064 predep_objects_CXX \ 13065 postdep_objects_CXX \ 13066 predeps_CXX \ 13067 postdeps_CXX \ 13068 compiler_lib_search_path_CXX \ 13069 archive_cmds_CXX \ 13070 archive_expsym_cmds_CXX \ 13071 postinstall_cmds_CXX \ 13072 postuninstall_cmds_CXX \ 13073 old_archive_from_expsyms_cmds_CXX \ 13074 allow_undefined_flag_CXX \ 13075 no_undefined_flag_CXX \ 13076 export_symbols_cmds_CXX \ 13077 hardcode_libdir_flag_spec_CXX \ 13078 hardcode_libdir_flag_spec_ld_CXX \ 13079 hardcode_libdir_separator_CXX \ 13080 hardcode_automatic_CXX \ 13081 module_cmds_CXX \ 13082 module_expsym_cmds_CXX \ 13083 lt_cv_prog_compiler_c_o_CXX \ 13084 exclude_expsyms_CXX \ 13085 include_expsyms_CXX; do 13086 13087 case $var in 13088 old_archive_cmds_CXX | \ 13089 old_archive_from_new_cmds_CXX | \ 13090 archive_cmds_CXX | \ 13091 archive_expsym_cmds_CXX | \ 13092 module_cmds_CXX | \ 13093 module_expsym_cmds_CXX | \ 13094 old_archive_from_expsyms_cmds_CXX | \ 13095 export_symbols_cmds_CXX | \ 13096 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13097 postinstall_cmds | postuninstall_cmds | \ 13098 old_postinstall_cmds | old_postuninstall_cmds | \ 13099 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13100 # Double-quote double-evaled strings. 13101 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13102 ;; 13103 *) 13104 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13105 ;; 13106 esac 13107 done 13108 13109 case $lt_echo in 13110 *'\$0 --fallback-echo"') 13111 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13112 ;; 13113 esac 13114 13115cfgfile="$ofile" 13116 13117 cat <<__EOF__ >> "$cfgfile" 13118# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13119 13120# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13121 13122# Shell to use when invoking shell scripts. 13123SHELL=$lt_SHELL 13124 13125# Whether or not to build shared libraries. 13126build_libtool_libs=$enable_shared 13127 13128# Whether or not to build static libraries. 13129build_old_libs=$enable_static 13130 13131# Whether or not to add -lc for building shared libraries. 13132build_libtool_need_lc=$archive_cmds_need_lc_CXX 13133 13134# Whether or not to disallow shared libs when runtime libs are static 13135allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13136 13137# Whether or not to optimize for fast installation. 13138fast_install=$enable_fast_install 13139 13140# The host system. 13141host_alias=$host_alias 13142host=$host 13143host_os=$host_os 13144 13145# The build system. 13146build_alias=$build_alias 13147build=$build 13148build_os=$build_os 13149 13150# An echo program that does not interpret backslashes. 13151echo=$lt_echo 13152 13153# The archiver. 13154AR=$lt_AR 13155AR_FLAGS=$lt_AR_FLAGS 13156 13157# A C compiler. 13158LTCC=$lt_LTCC 13159 13160# LTCC compiler flags. 13161LTCFLAGS=$lt_LTCFLAGS 13162 13163# A language-specific compiler. 13164CC=$lt_compiler_CXX 13165 13166# Is the compiler the GNU C compiler? 13167with_gcc=$GCC_CXX 13168 13169# An ERE matcher. 13170EGREP=$lt_EGREP 13171 13172# The linker used to build libraries. 13173LD=$lt_LD_CXX 13174 13175# Whether we need hard or soft links. 13176LN_S=$lt_LN_S 13177 13178# A BSD-compatible nm program. 13179NM=$lt_NM 13180 13181# A symbol stripping program 13182STRIP=$lt_STRIP 13183 13184# Used to examine libraries when file_magic_cmd begins "file" 13185MAGIC_CMD=$MAGIC_CMD 13186 13187# Used on cygwin: DLL creation program. 13188DLLTOOL="$DLLTOOL" 13189 13190# Used on cygwin: object dumper. 13191OBJDUMP="$OBJDUMP" 13192 13193# Used on cygwin: assembler. 13194AS="$AS" 13195 13196# The name of the directory that contains temporary libtool files. 13197objdir=$objdir 13198 13199# How to create reloadable object files. 13200reload_flag=$lt_reload_flag 13201reload_cmds=$lt_reload_cmds 13202 13203# How to pass a linker flag through the compiler. 13204wl=$lt_lt_prog_compiler_wl_CXX 13205 13206# Object file suffix (normally "o"). 13207objext="$ac_objext" 13208 13209# Old archive suffix (normally "a"). 13210libext="$libext" 13211 13212# Shared library suffix (normally ".so"). 13213shrext_cmds='$shrext_cmds' 13214 13215# Executable file suffix (normally ""). 13216exeext="$exeext" 13217 13218# Additional compiler flags for building library objects. 13219pic_flag=$lt_lt_prog_compiler_pic_CXX 13220pic_mode=$pic_mode 13221 13222# What is the maximum length of a command? 13223max_cmd_len=$lt_cv_sys_max_cmd_len 13224 13225# Does compiler simultaneously support -c and -o options? 13226compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13227 13228# Must we lock files when doing compilation? 13229need_locks=$lt_need_locks 13230 13231# Do we need the lib prefix for modules? 13232need_lib_prefix=$need_lib_prefix 13233 13234# Do we need a version for libraries? 13235need_version=$need_version 13236 13237# Whether dlopen is supported. 13238dlopen_support=$enable_dlopen 13239 13240# Whether dlopen of programs is supported. 13241dlopen_self=$enable_dlopen_self 13242 13243# Whether dlopen of statically linked programs is supported. 13244dlopen_self_static=$enable_dlopen_self_static 13245 13246# Compiler flag to prevent dynamic linking. 13247link_static_flag=$lt_lt_prog_compiler_static_CXX 13248 13249# Compiler flag to turn off builtin functions. 13250no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13251 13252# Compiler flag to allow reflexive dlopens. 13253export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13254 13255# Compiler flag to generate shared objects directly from archives. 13256whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13257 13258# Compiler flag to generate thread-safe objects. 13259thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13260 13261# Library versioning type. 13262version_type=$version_type 13263 13264# Format of library name prefix. 13265libname_spec=$lt_libname_spec 13266 13267# List of archive names. First name is the real one, the rest are links. 13268# The last name is the one that the linker finds with -lNAME. 13269library_names_spec=$lt_library_names_spec 13270 13271# The coded name of the library, if different from the real name. 13272soname_spec=$lt_soname_spec 13273 13274# Commands used to build and install an old-style archive. 13275RANLIB=$lt_RANLIB 13276old_archive_cmds=$lt_old_archive_cmds_CXX 13277old_postinstall_cmds=$lt_old_postinstall_cmds 13278old_postuninstall_cmds=$lt_old_postuninstall_cmds 13279 13280# Create an old-style archive from a shared archive. 13281old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13282 13283# Create a temporary old-style archive to link instead of a shared archive. 13284old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13285 13286# Commands used to build and install a shared archive. 13287archive_cmds=$lt_archive_cmds_CXX 13288archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13289postinstall_cmds=$lt_postinstall_cmds 13290postuninstall_cmds=$lt_postuninstall_cmds 13291 13292# Commands used to build a loadable module (assumed same as above if empty) 13293module_cmds=$lt_module_cmds_CXX 13294module_expsym_cmds=$lt_module_expsym_cmds_CXX 13295 13296# Commands to strip libraries. 13297old_striplib=$lt_old_striplib 13298striplib=$lt_striplib 13299 13300# Dependencies to place before the objects being linked to create a 13301# shared library. 13302predep_objects=$lt_predep_objects_CXX 13303 13304# Dependencies to place after the objects being linked to create a 13305# shared library. 13306postdep_objects=$lt_postdep_objects_CXX 13307 13308# Dependencies to place before the objects being linked to create a 13309# shared library. 13310predeps=$lt_predeps_CXX 13311 13312# Dependencies to place after the objects being linked to create a 13313# shared library. 13314postdeps=$lt_postdeps_CXX 13315 13316# The library search path used internally by the compiler when linking 13317# a shared library. 13318compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 13319 13320# Method to check whether dependent libraries are shared objects. 13321deplibs_check_method=$lt_deplibs_check_method 13322 13323# Command to use when deplibs_check_method == file_magic. 13324file_magic_cmd=$lt_file_magic_cmd 13325 13326# Flag that allows shared libraries with undefined symbols to be built. 13327allow_undefined_flag=$lt_allow_undefined_flag_CXX 13328 13329# Flag that forces no undefined symbols. 13330no_undefined_flag=$lt_no_undefined_flag_CXX 13331 13332# Commands used to finish a libtool library installation in a directory. 13333finish_cmds=$lt_finish_cmds 13334 13335# Same as above, but a single script fragment to be evaled but not shown. 13336finish_eval=$lt_finish_eval 13337 13338# Take the output of nm and produce a listing of raw symbols and C names. 13339global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13340 13341# Transform the output of nm in a proper C declaration 13342global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13343 13344# Transform the output of nm in a C name address pair 13345global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13346 13347# This is the shared library runtime path variable. 13348runpath_var=$runpath_var 13349 13350# This is the shared library path variable. 13351shlibpath_var=$shlibpath_var 13352 13353# Is shlibpath searched before the hard-coded library search path? 13354shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13355 13356# How to hardcode a shared library path into an executable. 13357hardcode_action=$hardcode_action_CXX 13358 13359# Whether we should hardcode library paths into libraries. 13360hardcode_into_libs=$hardcode_into_libs 13361 13362# Flag to hardcode \$libdir into a binary during linking. 13363# This must work even if \$libdir does not exist. 13364hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 13365 13366# If ld is used when linking, flag to hardcode \$libdir into 13367# a binary during linking. This must work even if \$libdir does 13368# not exist. 13369hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 13370 13371# Whether we need a single -rpath flag with a separated argument. 13372hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 13373 13374# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13375# resulting binary. 13376hardcode_direct=$hardcode_direct_CXX 13377 13378# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13379# resulting binary. 13380hardcode_minus_L=$hardcode_minus_L_CXX 13381 13382# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13383# the resulting binary. 13384hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 13385 13386# Set to yes if building a shared library automatically hardcodes DIR into the library 13387# and all subsequent libraries and executables linked against it. 13388hardcode_automatic=$hardcode_automatic_CXX 13389 13390# Variables whose values should be saved in libtool wrapper scripts and 13391# restored at relink time. 13392variables_saved_for_relink="$variables_saved_for_relink" 13393 13394# Whether libtool must link a program against all its dependency libraries. 13395link_all_deplibs=$link_all_deplibs_CXX 13396 13397# Compile-time system search path for libraries 13398sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13399 13400# Run-time system search path for libraries 13401sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13402 13403# Fix the shell variable \$srcfile for the compiler. 13404fix_srcfile_path="$fix_srcfile_path_CXX" 13405 13406# Set to yes if exported symbols are required. 13407always_export_symbols=$always_export_symbols_CXX 13408 13409# The commands to list exported symbols. 13410export_symbols_cmds=$lt_export_symbols_cmds_CXX 13411 13412# The commands to extract the exported symbol list from a shared archive. 13413extract_expsyms_cmds=$lt_extract_expsyms_cmds 13414 13415# Symbols that should not be listed in the preloaded symbols. 13416exclude_expsyms=$lt_exclude_expsyms_CXX 13417 13418# Symbols that must always be exported. 13419include_expsyms=$lt_include_expsyms_CXX 13420 13421# ### END LIBTOOL TAG CONFIG: $tagname 13422 13423__EOF__ 13424 13425 13426else 13427 # If there is no Makefile yet, we rely on a make rule to execute 13428 # `config.status --recheck' to rerun these tests and create the 13429 # libtool script then. 13430 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 13431 if test -f "$ltmain_in"; then 13432 test -f Makefile && make "$ltmain" 13433 fi 13434fi 13435 13436 13437ac_ext=c 13438ac_cpp='$CPP $CPPFLAGS' 13439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13441ac_compiler_gnu=$ac_cv_c_compiler_gnu 13442 13443CC=$lt_save_CC 13444LDCXX=$LD 13445LD=$lt_save_LD 13446GCC=$lt_save_GCC 13447with_gnu_ldcxx=$with_gnu_ld 13448with_gnu_ld=$lt_save_with_gnu_ld 13449lt_cv_path_LDCXX=$lt_cv_path_LD 13450lt_cv_path_LD=$lt_save_path_LD 13451lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 13452lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 13453 13454 else 13455 tagname="" 13456 fi 13457 ;; 13458 13459 F77) 13460 if test -n "$F77" && test "X$F77" != "Xno"; then 13461 13462ac_ext=f 13463ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 13464ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13465ac_compiler_gnu=$ac_cv_f77_compiler_gnu 13466 13467 13468archive_cmds_need_lc_F77=no 13469allow_undefined_flag_F77= 13470always_export_symbols_F77=no 13471archive_expsym_cmds_F77= 13472export_dynamic_flag_spec_F77= 13473hardcode_direct_F77=no 13474hardcode_libdir_flag_spec_F77= 13475hardcode_libdir_flag_spec_ld_F77= 13476hardcode_libdir_separator_F77= 13477hardcode_minus_L_F77=no 13478hardcode_automatic_F77=no 13479module_cmds_F77= 13480module_expsym_cmds_F77= 13481link_all_deplibs_F77=unknown 13482old_archive_cmds_F77=$old_archive_cmds 13483no_undefined_flag_F77= 13484whole_archive_flag_spec_F77= 13485enable_shared_with_static_runtimes_F77=no 13486 13487# Source file extension for f77 test sources. 13488ac_ext=f 13489 13490# Object file extension for compiled f77 test sources. 13491objext=o 13492objext_F77=$objext 13493 13494# Code to be used in simple compile tests 13495lt_simple_compile_test_code=" subroutine t\n return\n end\n" 13496 13497# Code to be used in simple link tests 13498lt_simple_link_test_code=" program t\n end\n" 13499 13500# ltmain only uses $CC for tagged configurations so make sure $CC is set. 13501 13502# If no C compiler was specified, use CC. 13503LTCC=${LTCC-"$CC"} 13504 13505# If no C compiler flags were specified, use CFLAGS. 13506LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13507 13508# Allow CC to be a program name with arguments. 13509compiler=$CC 13510 13511 13512# save warnings/boilerplate of simple test code 13513ac_outfile=conftest.$ac_objext 13514printf "$lt_simple_compile_test_code" >conftest.$ac_ext 13515eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13516_lt_compiler_boilerplate=`cat conftest.err` 13517$rm conftest* 13518 13519ac_outfile=conftest.$ac_objext 13520printf "$lt_simple_link_test_code" >conftest.$ac_ext 13521eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13522_lt_linker_boilerplate=`cat conftest.err` 13523$rm conftest* 13524 13525 13526# Allow CC to be a program name with arguments. 13527lt_save_CC="$CC" 13528CC=${F77-"f77"} 13529compiler=$CC 13530compiler_F77=$CC 13531for cc_temp in $compiler""; do 13532 case $cc_temp in 13533 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13534 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13535 \-*) ;; 13536 *) break;; 13537 esac 13538done 13539cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13540 13541 13542{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 13543echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 13544{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 13545echo "${ECHO_T}$can_build_shared" >&6; } 13546 13547{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 13548echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 13549test "$can_build_shared" = "no" && enable_shared=no 13550 13551# On AIX, shared libraries and static libraries use the same namespace, and 13552# are all built from PIC. 13553case $host_os in 13554aix3*) 13555 test "$enable_shared" = yes && enable_static=no 13556 if test -n "$RANLIB"; then 13557 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13558 postinstall_cmds='$RANLIB $lib' 13559 fi 13560 ;; 13561aix4* | aix5*) 13562 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13563 test "$enable_shared" = yes && enable_static=no 13564 fi 13565 ;; 13566esac 13567{ echo "$as_me:$LINENO: result: $enable_shared" >&5 13568echo "${ECHO_T}$enable_shared" >&6; } 13569 13570{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 13571echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 13572# Make sure either enable_shared or enable_static is yes. 13573test "$enable_shared" = yes || enable_static=yes 13574{ echo "$as_me:$LINENO: result: $enable_static" >&5 13575echo "${ECHO_T}$enable_static" >&6; } 13576 13577GCC_F77="$G77" 13578LD_F77="$LD" 13579 13580lt_prog_compiler_wl_F77= 13581lt_prog_compiler_pic_F77= 13582lt_prog_compiler_static_F77= 13583 13584{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13585echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 13586 13587 if test "$GCC" = yes; then 13588 lt_prog_compiler_wl_F77='-Wl,' 13589 lt_prog_compiler_static_F77='-static' 13590 13591 case $host_os in 13592 aix*) 13593 # All AIX code is PIC. 13594 if test "$host_cpu" = ia64; then 13595 # AIX 5 now supports IA64 processor 13596 lt_prog_compiler_static_F77='-Bstatic' 13597 fi 13598 ;; 13599 13600 amigaos*) 13601 # FIXME: we need at least 68020 code to build shared libraries, but 13602 # adding the `-m68020' flag to GCC prevents building anything better, 13603 # like `-m68040'. 13604 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 13605 ;; 13606 13607 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13608 # PIC is the default for these OSes. 13609 ;; 13610 13611 mingw* | pw32* | os2*) 13612 # This hack is so that the source file can tell whether it is being 13613 # built for inclusion in a dll (and should export symbols for example). 13614 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13615 ;; 13616 13617 darwin* | rhapsody*) 13618 # PIC is the default on this platform 13619 # Common symbols not allowed in MH_DYLIB files 13620 lt_prog_compiler_pic_F77='-fno-common' 13621 ;; 13622 13623 interix3*) 13624 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13625 # Instead, we relocate shared libraries at runtime. 13626 ;; 13627 13628 msdosdjgpp*) 13629 # Just because we use GCC doesn't mean we suddenly get shared libraries 13630 # on systems that don't support them. 13631 lt_prog_compiler_can_build_shared_F77=no 13632 enable_shared=no 13633 ;; 13634 13635 sysv4*MP*) 13636 if test -d /usr/nec; then 13637 lt_prog_compiler_pic_F77=-Kconform_pic 13638 fi 13639 ;; 13640 13641 hpux*) 13642 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13643 # not for PA HP-UX. 13644 case $host_cpu in 13645 hppa*64*|ia64*) 13646 # +Z the default 13647 ;; 13648 *) 13649 lt_prog_compiler_pic_F77='-fPIC' 13650 ;; 13651 esac 13652 ;; 13653 13654 *) 13655 lt_prog_compiler_pic_F77='-fPIC' 13656 ;; 13657 esac 13658 else 13659 # PORTME Check for flag to pass linker flags through the system compiler. 13660 case $host_os in 13661 aix*) 13662 lt_prog_compiler_wl_F77='-Wl,' 13663 if test "$host_cpu" = ia64; then 13664 # AIX 5 now supports IA64 processor 13665 lt_prog_compiler_static_F77='-Bstatic' 13666 else 13667 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 13668 fi 13669 ;; 13670 darwin*) 13671 # PIC is the default on this platform 13672 # Common symbols not allowed in MH_DYLIB files 13673 case $cc_basename in 13674 xlc*) 13675 lt_prog_compiler_pic_F77='-qnocommon' 13676 lt_prog_compiler_wl_F77='-Wl,' 13677 ;; 13678 esac 13679 ;; 13680 13681 mingw* | pw32* | os2*) 13682 # This hack is so that the source file can tell whether it is being 13683 # built for inclusion in a dll (and should export symbols for example). 13684 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13685 ;; 13686 13687 hpux9* | hpux10* | hpux11*) 13688 lt_prog_compiler_wl_F77='-Wl,' 13689 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13690 # not for PA HP-UX. 13691 case $host_cpu in 13692 hppa*64*|ia64*) 13693 # +Z the default 13694 ;; 13695 *) 13696 lt_prog_compiler_pic_F77='+Z' 13697 ;; 13698 esac 13699 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13700 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 13701 ;; 13702 13703 irix5* | irix6* | nonstopux*) 13704 lt_prog_compiler_wl_F77='-Wl,' 13705 # PIC (with -KPIC) is the default. 13706 lt_prog_compiler_static_F77='-non_shared' 13707 ;; 13708 13709 newsos6) 13710 lt_prog_compiler_pic_F77='-KPIC' 13711 lt_prog_compiler_static_F77='-Bstatic' 13712 ;; 13713 13714 linux* | k*bsd*-gnu) 13715 case $cc_basename in 13716 icc* | ecc*) 13717 lt_prog_compiler_wl_F77='-Wl,' 13718 lt_prog_compiler_pic_F77='-KPIC' 13719 lt_prog_compiler_static_F77='-static' 13720 ;; 13721 pgcc* | pgf77* | pgf90* | pgf95*) 13722 # Portland Group compilers (*not* the Pentium gcc compiler, 13723 # which looks to be a dead project) 13724 lt_prog_compiler_wl_F77='-Wl,' 13725 lt_prog_compiler_pic_F77='-fpic' 13726 lt_prog_compiler_static_F77='-Bstatic' 13727 ;; 13728 ccc*) 13729 lt_prog_compiler_wl_F77='-Wl,' 13730 # All Alpha code is PIC. 13731 lt_prog_compiler_static_F77='-non_shared' 13732 ;; 13733 esac 13734 ;; 13735 13736 osf3* | osf4* | osf5*) 13737 lt_prog_compiler_wl_F77='-Wl,' 13738 # All OSF/1 code is PIC. 13739 lt_prog_compiler_static_F77='-non_shared' 13740 ;; 13741 13742 solaris*) 13743 lt_prog_compiler_pic_F77='-KPIC' 13744 lt_prog_compiler_static_F77='-Bstatic' 13745 case $cc_basename in 13746 f77* | f90* | f95*) 13747 lt_prog_compiler_wl_F77='-Qoption ld ';; 13748 *) 13749 lt_prog_compiler_wl_F77='-Wl,';; 13750 esac 13751 ;; 13752 13753 sunos4*) 13754 lt_prog_compiler_wl_F77='-Qoption ld ' 13755 lt_prog_compiler_pic_F77='-PIC' 13756 lt_prog_compiler_static_F77='-Bstatic' 13757 ;; 13758 13759 sysv4 | sysv4.2uw2* | sysv4.3*) 13760 lt_prog_compiler_wl_F77='-Wl,' 13761 lt_prog_compiler_pic_F77='-KPIC' 13762 lt_prog_compiler_static_F77='-Bstatic' 13763 ;; 13764 13765 sysv4*MP*) 13766 if test -d /usr/nec ;then 13767 lt_prog_compiler_pic_F77='-Kconform_pic' 13768 lt_prog_compiler_static_F77='-Bstatic' 13769 fi 13770 ;; 13771 13772 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13773 lt_prog_compiler_wl_F77='-Wl,' 13774 lt_prog_compiler_pic_F77='-KPIC' 13775 lt_prog_compiler_static_F77='-Bstatic' 13776 ;; 13777 13778 unicos*) 13779 lt_prog_compiler_wl_F77='-Wl,' 13780 lt_prog_compiler_can_build_shared_F77=no 13781 ;; 13782 13783 uts4*) 13784 lt_prog_compiler_pic_F77='-pic' 13785 lt_prog_compiler_static_F77='-Bstatic' 13786 ;; 13787 13788 *) 13789 lt_prog_compiler_can_build_shared_F77=no 13790 ;; 13791 esac 13792 fi 13793 13794{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 13795echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } 13796 13797# 13798# Check to make sure the PIC flag actually works. 13799# 13800if test -n "$lt_prog_compiler_pic_F77"; then 13801 13802{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 13803echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } 13804if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 13805 echo $ECHO_N "(cached) $ECHO_C" >&6 13806else 13807 lt_prog_compiler_pic_works_F77=no 13808 ac_outfile=conftest.$ac_objext 13809 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13810 lt_compiler_flag="$lt_prog_compiler_pic_F77" 13811 # Insert the option either (1) after the last *FLAGS variable, or 13812 # (2) before a word containing "conftest.", or (3) at the end. 13813 # Note that $ac_compile itself does not contain backslashes and begins 13814 # with a dollar sign (not a hyphen), so the echo should work correctly. 13815 # The option is referenced via a variable to avoid confusing sed. 13816 lt_compile=`echo "$ac_compile" | $SED \ 13817 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13818 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13819 -e 's:$: $lt_compiler_flag:'` 13820 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 13821 (eval "$lt_compile" 2>conftest.err) 13822 ac_status=$? 13823 cat conftest.err >&5 13824 echo "$as_me:__oline__: \$? = $ac_status" >&5 13825 if (exit $ac_status) && test -s "$ac_outfile"; then 13826 # The compiler can only warn and ignore the option if not recognized 13827 # So say no if there are warnings other than the usual output. 13828 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 13829 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13830 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13831 lt_prog_compiler_pic_works_F77=yes 13832 fi 13833 fi 13834 $rm conftest* 13835 13836fi 13837{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 13838echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } 13839 13840if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 13841 case $lt_prog_compiler_pic_F77 in 13842 "" | " "*) ;; 13843 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 13844 esac 13845else 13846 lt_prog_compiler_pic_F77= 13847 lt_prog_compiler_can_build_shared_F77=no 13848fi 13849 13850fi 13851case $host_os in 13852 # For platforms which do not support PIC, -DPIC is meaningless: 13853 *djgpp*) 13854 lt_prog_compiler_pic_F77= 13855 ;; 13856 *) 13857 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 13858 ;; 13859esac 13860 13861# 13862# Check to make sure the static flag actually works. 13863# 13864wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 13865{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13866echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 13867if test "${lt_prog_compiler_static_works_F77+set}" = set; then 13868 echo $ECHO_N "(cached) $ECHO_C" >&6 13869else 13870 lt_prog_compiler_static_works_F77=no 13871 save_LDFLAGS="$LDFLAGS" 13872 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13873 printf "$lt_simple_link_test_code" > conftest.$ac_ext 13874 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13875 # The linker can only warn and ignore the option if not recognized 13876 # So say no if there are warnings 13877 if test -s conftest.err; then 13878 # Append any errors to the config.log. 13879 cat conftest.err 1>&5 13880 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 13881 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13882 if diff conftest.exp conftest.er2 >/dev/null; then 13883 lt_prog_compiler_static_works_F77=yes 13884 fi 13885 else 13886 lt_prog_compiler_static_works_F77=yes 13887 fi 13888 fi 13889 $rm conftest* 13890 LDFLAGS="$save_LDFLAGS" 13891 13892fi 13893{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 13894echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } 13895 13896if test x"$lt_prog_compiler_static_works_F77" = xyes; then 13897 : 13898else 13899 lt_prog_compiler_static_F77= 13900fi 13901 13902 13903{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13904echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 13905if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 13906 echo $ECHO_N "(cached) $ECHO_C" >&6 13907else 13908 lt_cv_prog_compiler_c_o_F77=no 13909 $rm -r conftest 2>/dev/null 13910 mkdir conftest 13911 cd conftest 13912 mkdir out 13913 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13914 13915 lt_compiler_flag="-o out/conftest2.$ac_objext" 13916 # Insert the option either (1) after the last *FLAGS variable, or 13917 # (2) before a word containing "conftest.", or (3) at the end. 13918 # Note that $ac_compile itself does not contain backslashes and begins 13919 # with a dollar sign (not a hyphen), so the echo should work correctly. 13920 lt_compile=`echo "$ac_compile" | $SED \ 13921 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13922 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13923 -e 's:$: $lt_compiler_flag:'` 13924 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 13925 (eval "$lt_compile" 2>out/conftest.err) 13926 ac_status=$? 13927 cat out/conftest.err >&5 13928 echo "$as_me:__oline__: \$? = $ac_status" >&5 13929 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13930 then 13931 # The compiler can only warn and ignore the option if not recognized 13932 # So say no if there are warnings 13933 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 13934 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13935 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13936 lt_cv_prog_compiler_c_o_F77=yes 13937 fi 13938 fi 13939 chmod u+w . 2>&5 13940 $rm conftest* 13941 # SGI C++ compiler will create directory out/ii_files/ for 13942 # template instantiation 13943 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 13944 $rm out/* && rmdir out 13945 cd .. 13946 rmdir conftest 13947 $rm conftest* 13948 13949fi 13950{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 13951echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } 13952 13953 13954hard_links="nottested" 13955if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 13956 # do not overwrite the value of need_locks provided by the user 13957 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13958echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 13959 hard_links=yes 13960 $rm conftest* 13961 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13962 touch conftest.a 13963 ln conftest.a conftest.b 2>&5 || hard_links=no 13964 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13965 { echo "$as_me:$LINENO: result: $hard_links" >&5 13966echo "${ECHO_T}$hard_links" >&6; } 13967 if test "$hard_links" = no; then 13968 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13969echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13970 need_locks=warn 13971 fi 13972else 13973 need_locks=no 13974fi 13975 13976{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13977echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 13978 13979 runpath_var= 13980 allow_undefined_flag_F77= 13981 enable_shared_with_static_runtimes_F77=no 13982 archive_cmds_F77= 13983 archive_expsym_cmds_F77= 13984 old_archive_From_new_cmds_F77= 13985 old_archive_from_expsyms_cmds_F77= 13986 export_dynamic_flag_spec_F77= 13987 whole_archive_flag_spec_F77= 13988 thread_safe_flag_spec_F77= 13989 hardcode_libdir_flag_spec_F77= 13990 hardcode_libdir_flag_spec_ld_F77= 13991 hardcode_libdir_separator_F77= 13992 hardcode_direct_F77=no 13993 hardcode_minus_L_F77=no 13994 hardcode_shlibpath_var_F77=unsupported 13995 link_all_deplibs_F77=unknown 13996 hardcode_automatic_F77=no 13997 module_cmds_F77= 13998 module_expsym_cmds_F77= 13999 always_export_symbols_F77=no 14000 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14001 # include_expsyms should be a list of space-separated symbols to be *always* 14002 # included in the symbol list 14003 include_expsyms_F77= 14004 # exclude_expsyms can be an extended regexp of symbols to exclude 14005 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14006 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14007 # as well as any symbol that contains `d'. 14008 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 14009 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14010 # platforms (ab)use it in PIC code, but their linkers get confused if 14011 # the symbol is explicitly referenced. Since portable code cannot 14012 # rely on this symbol name, it's probably fine to never include it in 14013 # preloaded symbol tables. 14014 extract_expsyms_cmds= 14015 # Just being paranoid about ensuring that cc_basename is set. 14016 for cc_temp in $compiler""; do 14017 case $cc_temp in 14018 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14019 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14020 \-*) ;; 14021 *) break;; 14022 esac 14023done 14024cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14025 14026 case $host_os in 14027 cygwin* | mingw* | pw32*) 14028 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14029 # When not using gcc, we currently assume that we are using 14030 # Microsoft Visual C++. 14031 if test "$GCC" != yes; then 14032 with_gnu_ld=no 14033 fi 14034 ;; 14035 interix*) 14036 # we just hope/assume this is gcc and not c89 (= MSVC++) 14037 with_gnu_ld=yes 14038 ;; 14039 openbsd*) 14040 with_gnu_ld=no 14041 ;; 14042 esac 14043 14044 ld_shlibs_F77=yes 14045 if test "$with_gnu_ld" = yes; then 14046 # If archive_cmds runs LD, not CC, wlarc should be empty 14047 wlarc='${wl}' 14048 14049 # Set some defaults for GNU ld with shared library support. These 14050 # are reset later if shared libraries are not supported. Putting them 14051 # here allows them to be overridden if necessary. 14052 runpath_var=LD_RUN_PATH 14053 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14054 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14055 # ancient GNU ld didn't support --whole-archive et. al. 14056 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14057 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14058 else 14059 whole_archive_flag_spec_F77= 14060 fi 14061 supports_anon_versioning=no 14062 case `$LD -v 2>/dev/null` in 14063 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14064 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14065 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14066 *\ 2.11.*) ;; # other 2.11 versions 14067 *) supports_anon_versioning=yes ;; 14068 esac 14069 14070 # See if GNU ld supports shared libraries. 14071 case $host_os in 14072 aix3* | aix4* | aix5*) 14073 # On AIX/PPC, the GNU linker is very broken 14074 if test "$host_cpu" != ia64; then 14075 ld_shlibs_F77=no 14076 cat <<EOF 1>&2 14077 14078*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14079*** to be unable to reliably create shared libraries on AIX. 14080*** Therefore, libtool is disabling shared libraries support. If you 14081*** really care for shared libraries, you may want to modify your PATH 14082*** so that a non-GNU linker is found, and then restart. 14083 14084EOF 14085 fi 14086 ;; 14087 14088 amigaos*) 14089 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)' 14090 hardcode_libdir_flag_spec_F77='-L$libdir' 14091 hardcode_minus_L_F77=yes 14092 14093 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14094 # that the semantics of dynamic libraries on AmigaOS, at least up 14095 # to version 4, is to share data among multiple programs linked 14096 # with the same dynamic library. Since this doesn't match the 14097 # behavior of shared libraries on other platforms, we can't use 14098 # them. 14099 ld_shlibs_F77=no 14100 ;; 14101 14102 beos*) 14103 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14104 allow_undefined_flag_F77=unsupported 14105 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14106 # support --undefined. This deserves some investigation. FIXME 14107 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14108 else 14109 ld_shlibs_F77=no 14110 fi 14111 ;; 14112 14113 cygwin* | mingw* | pw32*) 14114 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14115 # as there is no search path for DLLs. 14116 hardcode_libdir_flag_spec_F77='-L$libdir' 14117 allow_undefined_flag_F77=unsupported 14118 always_export_symbols_F77=no 14119 enable_shared_with_static_runtimes_F77=yes 14120 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 14121 14122 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14123 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14124 # If the export-symbols file already is a .def file (1st line 14125 # is EXPORTS), use it as is; otherwise, prepend... 14126 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14127 cp $export_symbols $output_objdir/$soname.def; 14128 else 14129 echo EXPORTS > $output_objdir/$soname.def; 14130 cat $export_symbols >> $output_objdir/$soname.def; 14131 fi~ 14132 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14133 else 14134 ld_shlibs_F77=no 14135 fi 14136 ;; 14137 14138 interix3*) 14139 hardcode_direct_F77=no 14140 hardcode_shlibpath_var_F77=no 14141 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14142 export_dynamic_flag_spec_F77='${wl}-E' 14143 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14144 # Instead, shared libraries are loaded at an image base (0x10000000 by 14145 # default) and relocated if they conflict, which is a slow very memory 14146 # consuming and fragmenting process. To avoid this, we pick a random, 14147 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14148 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14149 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' 14150 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' 14151 ;; 14152 14153 linux* | k*bsd*-gnu) 14154 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14155 tmp_addflag= 14156 case $cc_basename,$host_cpu in 14157 pgcc*) # Portland Group C compiler 14158 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' 14159 tmp_addflag=' $pic_flag' 14160 ;; 14161 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14162 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' 14163 tmp_addflag=' $pic_flag -Mnomain' ;; 14164 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14165 tmp_addflag=' -i_dynamic' ;; 14166 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14167 tmp_addflag=' -i_dynamic -nofor_main' ;; 14168 ifc* | ifort*) # Intel Fortran compiler 14169 tmp_addflag=' -nofor_main' ;; 14170 esac 14171 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14172 14173 if test $supports_anon_versioning = yes; then 14174 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14175 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14176 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14177 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14178 fi 14179 link_all_deplibs_F77=no 14180 else 14181 ld_shlibs_F77=no 14182 fi 14183 ;; 14184 14185 netbsd* | netbsdelf*-gnu) 14186 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14187 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14188 wlarc= 14189 else 14190 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14191 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14192 fi 14193 ;; 14194 14195 solaris*) 14196 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14197 ld_shlibs_F77=no 14198 cat <<EOF 1>&2 14199 14200*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14201*** create shared libraries on Solaris systems. Therefore, libtool 14202*** is disabling shared libraries support. We urge you to upgrade GNU 14203*** binutils to release 2.9.1 or newer. Another option is to modify 14204*** your PATH or compiler configuration so that the native linker is 14205*** used, and then restart. 14206 14207EOF 14208 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14209 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14210 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14211 else 14212 ld_shlibs_F77=no 14213 fi 14214 ;; 14215 14216 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14217 case `$LD -v 2>&1` in 14218 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14219 ld_shlibs_F77=no 14220 cat <<_LT_EOF 1>&2 14221 14222*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 14223*** reliably create shared libraries on SCO systems. Therefore, libtool 14224*** is disabling shared libraries support. We urge you to upgrade GNU 14225*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14226*** your PATH or compiler configuration so that the native linker is 14227*** used, and then restart. 14228 14229_LT_EOF 14230 ;; 14231 *) 14232 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14233 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 14234 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 14235 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 14236 else 14237 ld_shlibs_F77=no 14238 fi 14239 ;; 14240 esac 14241 ;; 14242 14243 sunos4*) 14244 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14245 wlarc= 14246 hardcode_direct_F77=yes 14247 hardcode_shlibpath_var_F77=no 14248 ;; 14249 14250 *) 14251 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14252 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14253 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14254 else 14255 ld_shlibs_F77=no 14256 fi 14257 ;; 14258 esac 14259 14260 if test "$ld_shlibs_F77" = no; then 14261 runpath_var= 14262 hardcode_libdir_flag_spec_F77= 14263 export_dynamic_flag_spec_F77= 14264 whole_archive_flag_spec_F77= 14265 fi 14266 else 14267 # PORTME fill in a description of your system's linker (not GNU ld) 14268 case $host_os in 14269 aix3*) 14270 allow_undefined_flag_F77=unsupported 14271 always_export_symbols_F77=yes 14272 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' 14273 # Note: this linker hardcodes the directories in LIBPATH if there 14274 # are no directories specified by -L. 14275 hardcode_minus_L_F77=yes 14276 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 14277 # Neither direct hardcoding nor static linking is supported with a 14278 # broken collect2. 14279 hardcode_direct_F77=unsupported 14280 fi 14281 ;; 14282 14283 aix4* | aix5*) 14284 if test "$host_cpu" = ia64; then 14285 # On IA64, the linker does run time linking by default, so we don't 14286 # have to do anything special. 14287 aix_use_runtimelinking=no 14288 exp_sym_flag='-Bexport' 14289 no_entry_flag="" 14290 else 14291 # If we're using GNU nm, then we don't want the "-C" option. 14292 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14293 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14294 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' 14295 else 14296 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' 14297 fi 14298 aix_use_runtimelinking=no 14299 14300 # Test if we are trying to use run time linking or normal 14301 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14302 # need to do runtime linking. 14303 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 14304 for ld_flag in $LDFLAGS; do 14305 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14306 aix_use_runtimelinking=yes 14307 break 14308 fi 14309 done 14310 ;; 14311 esac 14312 14313 exp_sym_flag='-bexport' 14314 no_entry_flag='-bnoentry' 14315 fi 14316 14317 # When large executables or shared objects are built, AIX ld can 14318 # have problems creating the table of contents. If linking a library 14319 # or program results in "error TOC overflow" add -mminimal-toc to 14320 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14321 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14322 14323 archive_cmds_F77='' 14324 hardcode_direct_F77=yes 14325 hardcode_libdir_separator_F77=':' 14326 link_all_deplibs_F77=yes 14327 14328 if test "$GCC" = yes; then 14329 case $host_os in aix4.[012]|aix4.[012].*) 14330 # We only want to do this on AIX 4.2 and lower, the check 14331 # below for broken collect2 doesn't work under 4.3+ 14332 collect2name=`${CC} -print-prog-name=collect2` 14333 if test -f "$collect2name" && \ 14334 strings "$collect2name" | grep resolve_lib_name >/dev/null 14335 then 14336 # We have reworked collect2 14337 hardcode_direct_F77=yes 14338 else 14339 # We have old collect2 14340 hardcode_direct_F77=unsupported 14341 # It fails to find uninstalled libraries when the uninstalled 14342 # path is not listed in the libpath. Setting hardcode_minus_L 14343 # to unsupported forces relinking 14344 hardcode_minus_L_F77=yes 14345 hardcode_libdir_flag_spec_F77='-L$libdir' 14346 hardcode_libdir_separator_F77= 14347 fi 14348 ;; 14349 esac 14350 shared_flag='-shared' 14351 if test "$aix_use_runtimelinking" = yes; then 14352 shared_flag="$shared_flag "'${wl}-G' 14353 fi 14354 else 14355 # not using gcc 14356 if test "$host_cpu" = ia64; then 14357 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14358 # chokes on -Wl,-G. The following line is correct: 14359 shared_flag='-G' 14360 else 14361 if test "$aix_use_runtimelinking" = yes; then 14362 shared_flag='${wl}-G' 14363 else 14364 shared_flag='${wl}-bM:SRE' 14365 fi 14366 fi 14367 fi 14368 14369 # It seems that -bexpall does not export symbols beginning with 14370 # underscore (_), so it is better to generate a list of symbols to export. 14371 always_export_symbols_F77=yes 14372 if test "$aix_use_runtimelinking" = yes; then 14373 # Warning - without using the other runtime loading flags (-brtl), 14374 # -berok will link without error, but may produce a broken library. 14375 allow_undefined_flag_F77='-berok' 14376 # Determine the default libpath from the value encoded in an empty executable. 14377 cat >conftest.$ac_ext <<_ACEOF 14378 program main 14379 14380 end 14381_ACEOF 14382rm -f conftest.$ac_objext conftest$ac_exeext 14383if { (ac_try="$ac_link" 14384case "(($ac_try" in 14385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14386 *) ac_try_echo=$ac_try;; 14387esac 14388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14389 (eval "$ac_link") 2>conftest.er1 14390 ac_status=$? 14391 grep -v '^ *+' conftest.er1 >conftest.err 14392 rm -f conftest.er1 14393 cat conftest.err >&5 14394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14395 (exit $ac_status); } && { 14396 test -z "$ac_f77_werror_flag" || 14397 test ! -s conftest.err 14398 } && test -s conftest$ac_exeext && 14399 $as_test_x conftest$ac_exeext; then 14400 14401aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14402}'` 14403# Check for a 64-bit object if we didn't find anything. 14404if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14405}'`; fi 14406else 14407 echo "$as_me: failed program was:" >&5 14408sed 's/^/| /' conftest.$ac_ext >&5 14409 14410 14411fi 14412 14413rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14414 conftest$ac_exeext conftest.$ac_ext 14415if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14416 14417 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14418 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" 14419 else 14420 if test "$host_cpu" = ia64; then 14421 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 14422 allow_undefined_flag_F77="-z nodefs" 14423 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" 14424 else 14425 # Determine the default libpath from the value encoded in an empty executable. 14426 cat >conftest.$ac_ext <<_ACEOF 14427 program main 14428 14429 end 14430_ACEOF 14431rm -f conftest.$ac_objext conftest$ac_exeext 14432if { (ac_try="$ac_link" 14433case "(($ac_try" in 14434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14435 *) ac_try_echo=$ac_try;; 14436esac 14437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14438 (eval "$ac_link") 2>conftest.er1 14439 ac_status=$? 14440 grep -v '^ *+' conftest.er1 >conftest.err 14441 rm -f conftest.er1 14442 cat conftest.err >&5 14443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14444 (exit $ac_status); } && { 14445 test -z "$ac_f77_werror_flag" || 14446 test ! -s conftest.err 14447 } && test -s conftest$ac_exeext && 14448 $as_test_x conftest$ac_exeext; then 14449 14450aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14451}'` 14452# Check for a 64-bit object if we didn't find anything. 14453if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14454}'`; fi 14455else 14456 echo "$as_me: failed program was:" >&5 14457sed 's/^/| /' conftest.$ac_ext >&5 14458 14459 14460fi 14461 14462rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14463 conftest$ac_exeext conftest.$ac_ext 14464if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14465 14466 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14467 # Warning - without using the other run time loading flags, 14468 # -berok will link without error, but may produce a broken library. 14469 no_undefined_flag_F77=' ${wl}-bernotok' 14470 allow_undefined_flag_F77=' ${wl}-berok' 14471 # Exported symbols can be pulled into shared objects from archives 14472 whole_archive_flag_spec_F77='$convenience' 14473 archive_cmds_need_lc_F77=yes 14474 # This is similar to how AIX traditionally builds its shared libraries. 14475 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' 14476 fi 14477 fi 14478 ;; 14479 14480 amigaos*) 14481 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)' 14482 hardcode_libdir_flag_spec_F77='-L$libdir' 14483 hardcode_minus_L_F77=yes 14484 # see comment about different semantics on the GNU ld section 14485 ld_shlibs_F77=no 14486 ;; 14487 14488 bsdi[45]*) 14489 export_dynamic_flag_spec_F77=-rdynamic 14490 ;; 14491 14492 cygwin* | mingw* | pw32*) 14493 # When not using gcc, we currently assume that we are using 14494 # Microsoft Visual C++. 14495 # hardcode_libdir_flag_spec is actually meaningless, as there is 14496 # no search path for DLLs. 14497 hardcode_libdir_flag_spec_F77=' ' 14498 allow_undefined_flag_F77=unsupported 14499 # Tell ltmain to make .lib files, not .a files. 14500 libext=lib 14501 # Tell ltmain to make .dll files, not .so files. 14502 shrext_cmds=".dll" 14503 # FIXME: Setting linknames here is a bad hack. 14504 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 14505 # The linker will automatically build a .lib file if we build a DLL. 14506 old_archive_From_new_cmds_F77='true' 14507 # FIXME: Should let the user specify the lib program. 14508 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 14509 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 14510 enable_shared_with_static_runtimes_F77=yes 14511 ;; 14512 14513 darwin* | rhapsody*) 14514 case $host_os in 14515 rhapsody* | darwin1.[012]) 14516 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 14517 ;; 14518 *) # Darwin 1.3 on 14519 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 14520 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14521 else 14522 case ${MACOSX_DEPLOYMENT_TARGET} in 14523 10.[012]) 14524 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14525 ;; 14526 10.*) 14527 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 14528 ;; 14529 esac 14530 fi 14531 ;; 14532 esac 14533 archive_cmds_need_lc_F77=no 14534 hardcode_direct_F77=no 14535 hardcode_automatic_F77=yes 14536 hardcode_shlibpath_var_F77=unsupported 14537 whole_archive_flag_spec_F77='' 14538 link_all_deplibs_F77=yes 14539 if test "$GCC" = yes ; then 14540 output_verbose_link_cmd='echo' 14541 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 14542 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14543 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14544 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}' 14545 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}' 14546 else 14547 case $cc_basename in 14548 xlc*) 14549 output_verbose_link_cmd='echo' 14550 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 14551 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14552 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14553 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}' 14554 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}' 14555 ;; 14556 *) 14557 ld_shlibs_F77=no 14558 ;; 14559 esac 14560 fi 14561 ;; 14562 14563 dgux*) 14564 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14565 hardcode_libdir_flag_spec_F77='-L$libdir' 14566 hardcode_shlibpath_var_F77=no 14567 ;; 14568 14569 freebsd1*) 14570 ld_shlibs_F77=no 14571 ;; 14572 14573 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14574 # support. Future versions do this automatically, but an explicit c++rt0.o 14575 # does not break anything, and helps significantly (at the cost of a little 14576 # extra space). 14577 freebsd2.2*) 14578 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14579 hardcode_libdir_flag_spec_F77='-R$libdir' 14580 hardcode_direct_F77=yes 14581 hardcode_shlibpath_var_F77=no 14582 ;; 14583 14584 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14585 freebsd2*) 14586 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14587 hardcode_direct_F77=yes 14588 hardcode_minus_L_F77=yes 14589 hardcode_shlibpath_var_F77=no 14590 ;; 14591 14592 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14593 freebsd* | dragonfly*) 14594 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 14595 hardcode_libdir_flag_spec_F77='-R$libdir' 14596 hardcode_direct_F77=yes 14597 hardcode_shlibpath_var_F77=no 14598 ;; 14599 14600 hpux9*) 14601 if test "$GCC" = yes; then 14602 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' 14603 else 14604 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' 14605 fi 14606 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14607 hardcode_libdir_separator_F77=: 14608 hardcode_direct_F77=yes 14609 14610 # hardcode_minus_L: Not really in the search PATH, 14611 # but as the default location of the library. 14612 hardcode_minus_L_F77=yes 14613 export_dynamic_flag_spec_F77='${wl}-E' 14614 ;; 14615 14616 hpux10*) 14617 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14618 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14619 else 14620 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14621 fi 14622 if test "$with_gnu_ld" = no; then 14623 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14624 hardcode_libdir_separator_F77=: 14625 14626 hardcode_direct_F77=yes 14627 export_dynamic_flag_spec_F77='${wl}-E' 14628 14629 # hardcode_minus_L: Not really in the search PATH, 14630 # but as the default location of the library. 14631 hardcode_minus_L_F77=yes 14632 fi 14633 ;; 14634 14635 hpux11*) 14636 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14637 case $host_cpu in 14638 hppa*64*) 14639 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14640 ;; 14641 ia64*) 14642 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14643 ;; 14644 *) 14645 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14646 ;; 14647 esac 14648 else 14649 case $host_cpu in 14650 hppa*64*) 14651 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14652 ;; 14653 ia64*) 14654 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14655 ;; 14656 *) 14657 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14658 ;; 14659 esac 14660 fi 14661 if test "$with_gnu_ld" = no; then 14662 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14663 hardcode_libdir_separator_F77=: 14664 14665 case $host_cpu in 14666 hppa*64*|ia64*) 14667 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 14668 hardcode_direct_F77=no 14669 hardcode_shlibpath_var_F77=no 14670 ;; 14671 *) 14672 hardcode_direct_F77=yes 14673 export_dynamic_flag_spec_F77='${wl}-E' 14674 14675 # hardcode_minus_L: Not really in the search PATH, 14676 # but as the default location of the library. 14677 hardcode_minus_L_F77=yes 14678 ;; 14679 esac 14680 fi 14681 ;; 14682 14683 irix5* | irix6* | nonstopux*) 14684 if test "$GCC" = yes; then 14685 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' 14686 else 14687 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' 14688 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 14689 fi 14690 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14691 hardcode_libdir_separator_F77=: 14692 link_all_deplibs_F77=yes 14693 ;; 14694 14695 netbsd* | netbsdelf*-gnu) 14696 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14697 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14698 else 14699 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14700 fi 14701 hardcode_libdir_flag_spec_F77='-R$libdir' 14702 hardcode_direct_F77=yes 14703 hardcode_shlibpath_var_F77=no 14704 ;; 14705 14706 newsos6) 14707 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14708 hardcode_direct_F77=yes 14709 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14710 hardcode_libdir_separator_F77=: 14711 hardcode_shlibpath_var_F77=no 14712 ;; 14713 14714 openbsd*) 14715 hardcode_direct_F77=yes 14716 hardcode_shlibpath_var_F77=no 14717 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14718 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14719 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 14720 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14721 export_dynamic_flag_spec_F77='${wl}-E' 14722 else 14723 case $host_os in 14724 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 14725 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14726 hardcode_libdir_flag_spec_F77='-R$libdir' 14727 ;; 14728 *) 14729 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14730 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14731 ;; 14732 esac 14733 fi 14734 ;; 14735 14736 os2*) 14737 hardcode_libdir_flag_spec_F77='-L$libdir' 14738 hardcode_minus_L_F77=yes 14739 allow_undefined_flag_F77=unsupported 14740 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' 14741 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 14742 ;; 14743 14744 osf3*) 14745 if test "$GCC" = yes; then 14746 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14747 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 14748 else 14749 allow_undefined_flag_F77=' -expect_unresolved \*' 14750 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' 14751 fi 14752 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14753 hardcode_libdir_separator_F77=: 14754 ;; 14755 14756 osf4* | osf5*) # as osf3* with the addition of -msym flag 14757 if test "$GCC" = yes; then 14758 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14759 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' 14760 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14761 else 14762 allow_undefined_flag_F77=' -expect_unresolved \*' 14763 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' 14764 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~ 14765 $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' 14766 14767 # Both c and cxx compiler support -rpath directly 14768 hardcode_libdir_flag_spec_F77='-rpath $libdir' 14769 fi 14770 hardcode_libdir_separator_F77=: 14771 ;; 14772 14773 solaris*) 14774 no_undefined_flag_F77=' -z text' 14775 if test "$GCC" = yes; then 14776 wlarc='${wl}' 14777 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14778 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14779 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 14780 else 14781 wlarc='' 14782 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14783 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14784 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14785 fi 14786 hardcode_libdir_flag_spec_F77='-R$libdir' 14787 hardcode_shlibpath_var_F77=no 14788 case $host_os in 14789 solaris2.[0-5] | solaris2.[0-5].*) ;; 14790 *) 14791 # The compiler driver will combine linker options so we 14792 # cannot just pass the convience library names through 14793 # without $wl, iff we do not link with $LD. 14794 # Luckily, gcc supports the same syntax we need for Sun Studio. 14795 # Supported since Solaris 2.6 (maybe 2.5.1?) 14796 case $wlarc in 14797 '') 14798 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 14799 *) 14800 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 14801 esac ;; 14802 esac 14803 link_all_deplibs_F77=yes 14804 ;; 14805 14806 sunos4*) 14807 if test "x$host_vendor" = xsequent; then 14808 # Use $CC to link under sequent, because it throws in some extra .o 14809 # files that make .init and .fini sections work. 14810 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 14811 else 14812 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 14813 fi 14814 hardcode_libdir_flag_spec_F77='-L$libdir' 14815 hardcode_direct_F77=yes 14816 hardcode_minus_L_F77=yes 14817 hardcode_shlibpath_var_F77=no 14818 ;; 14819 14820 sysv4) 14821 case $host_vendor in 14822 sni) 14823 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14824 hardcode_direct_F77=yes # is this really true??? 14825 ;; 14826 siemens) 14827 ## LD is ld it makes a PLAMLIB 14828 ## CC just makes a GrossModule. 14829 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14830 reload_cmds_F77='$CC -r -o $output$reload_objs' 14831 hardcode_direct_F77=no 14832 ;; 14833 motorola) 14834 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14835 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 14836 ;; 14837 esac 14838 runpath_var='LD_RUN_PATH' 14839 hardcode_shlibpath_var_F77=no 14840 ;; 14841 14842 sysv4.3*) 14843 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14844 hardcode_shlibpath_var_F77=no 14845 export_dynamic_flag_spec_F77='-Bexport' 14846 ;; 14847 14848 sysv4*MP*) 14849 if test -d /usr/nec; then 14850 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14851 hardcode_shlibpath_var_F77=no 14852 runpath_var=LD_RUN_PATH 14853 hardcode_runpath_var=yes 14854 ld_shlibs_F77=yes 14855 fi 14856 ;; 14857 14858 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 14859 no_undefined_flag_F77='${wl}-z,text' 14860 archive_cmds_need_lc_F77=no 14861 hardcode_shlibpath_var_F77=no 14862 runpath_var='LD_RUN_PATH' 14863 14864 if test "$GCC" = yes; then 14865 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14866 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14867 else 14868 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14869 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14870 fi 14871 ;; 14872 14873 sysv5* | sco3.2v5* | sco5v6*) 14874 # Note: We can NOT use -z defs as we might desire, because we do not 14875 # link with -lc, and that would cause any symbols used from libc to 14876 # always be unresolved, which means just about no library would 14877 # ever link correctly. If we're not using GNU ld we use -z text 14878 # though, which does catch some bad symbols but isn't as heavy-handed 14879 # as -z defs. 14880 no_undefined_flag_F77='${wl}-z,text' 14881 allow_undefined_flag_F77='${wl}-z,nodefs' 14882 archive_cmds_need_lc_F77=no 14883 hardcode_shlibpath_var_F77=no 14884 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 14885 hardcode_libdir_separator_F77=':' 14886 link_all_deplibs_F77=yes 14887 export_dynamic_flag_spec_F77='${wl}-Bexport' 14888 runpath_var='LD_RUN_PATH' 14889 14890 if test "$GCC" = yes; then 14891 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14892 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14893 else 14894 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14895 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14896 fi 14897 ;; 14898 14899 uts4*) 14900 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14901 hardcode_libdir_flag_spec_F77='-L$libdir' 14902 hardcode_shlibpath_var_F77=no 14903 ;; 14904 14905 *) 14906 ld_shlibs_F77=no 14907 ;; 14908 esac 14909 fi 14910 14911{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 14912echo "${ECHO_T}$ld_shlibs_F77" >&6; } 14913test "$ld_shlibs_F77" = no && can_build_shared=no 14914 14915# 14916# Do we need to explicitly link libc? 14917# 14918case "x$archive_cmds_need_lc_F77" in 14919x|xyes) 14920 # Assume -lc should be added 14921 archive_cmds_need_lc_F77=yes 14922 14923 if test "$enable_shared" = yes && test "$GCC" = yes; then 14924 case $archive_cmds_F77 in 14925 *'~'*) 14926 # FIXME: we may have to deal with multi-command sequences. 14927 ;; 14928 '$CC '*) 14929 # Test whether the compiler implicitly links with -lc since on some 14930 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14931 # to ld, don't add -lc before -lgcc. 14932 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 14933echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 14934 $rm conftest* 14935 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14936 14937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14938 (eval $ac_compile) 2>&5 14939 ac_status=$? 14940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14941 (exit $ac_status); } 2>conftest.err; then 14942 soname=conftest 14943 lib=conftest 14944 libobjs=conftest.$ac_objext 14945 deplibs= 14946 wl=$lt_prog_compiler_wl_F77 14947 pic_flag=$lt_prog_compiler_pic_F77 14948 compiler_flags=-v 14949 linker_flags=-v 14950 verstring= 14951 output_objdir=. 14952 libname=conftest 14953 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 14954 allow_undefined_flag_F77= 14955 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 14956 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 14957 ac_status=$? 14958 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14959 (exit $ac_status); } 14960 then 14961 archive_cmds_need_lc_F77=no 14962 else 14963 archive_cmds_need_lc_F77=yes 14964 fi 14965 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 14966 else 14967 cat conftest.err 1>&5 14968 fi 14969 $rm conftest* 14970 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 14971echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } 14972 ;; 14973 esac 14974 fi 14975 ;; 14976esac 14977 14978{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 14979echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 14980library_names_spec= 14981libname_spec='lib$name' 14982soname_spec= 14983shrext_cmds=".so" 14984postinstall_cmds= 14985postuninstall_cmds= 14986finish_cmds= 14987finish_eval= 14988shlibpath_var= 14989shlibpath_overrides_runpath=unknown 14990version_type=none 14991dynamic_linker="$host_os ld.so" 14992sys_lib_dlsearch_path_spec="/lib /usr/lib" 14993if test "$GCC" = yes; then 14994 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14995 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 14996 # if the path contains ";" then we assume it to be the separator 14997 # otherwise default to the standard path separator (i.e. ":") - it is 14998 # assumed that no part of a normal pathname contains ";" but that should 14999 # okay in the real world where ";" in dirpaths is itself problematic. 15000 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15001 else 15002 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15003 fi 15004else 15005 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15006fi 15007need_lib_prefix=unknown 15008hardcode_into_libs=no 15009 15010# when you set need_version to no, make sure it does not cause -set_version 15011# flags to be left without arguments 15012need_version=unknown 15013 15014case $host_os in 15015aix3*) 15016 version_type=linux 15017 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15018 shlibpath_var=LIBPATH 15019 15020 # AIX 3 has no versioning support, so we append a major version to the name. 15021 soname_spec='${libname}${release}${shared_ext}$major' 15022 ;; 15023 15024aix4* | aix5*) 15025 version_type=linux 15026 need_lib_prefix=no 15027 need_version=no 15028 hardcode_into_libs=yes 15029 if test "$host_cpu" = ia64; then 15030 # AIX 5 supports IA64 15031 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15032 shlibpath_var=LD_LIBRARY_PATH 15033 else 15034 # With GCC up to 2.95.x, collect2 would create an import file 15035 # for dependence libraries. The import file would start with 15036 # the line `#! .'. This would cause the generated library to 15037 # depend on `.', always an invalid library. This was fixed in 15038 # development snapshots of GCC prior to 3.0. 15039 case $host_os in 15040 aix4 | aix4.[01] | aix4.[01].*) 15041 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15042 echo ' yes ' 15043 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15044 : 15045 else 15046 can_build_shared=no 15047 fi 15048 ;; 15049 esac 15050 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15051 # soname into executable. Probably we can add versioning support to 15052 # collect2, so additional links can be useful in future. 15053 if test "$aix_use_runtimelinking" = yes; then 15054 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15055 # instead of lib<name>.a to let people know that these are not 15056 # typical AIX shared libraries. 15057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15058 else 15059 # We preserve .a as extension for shared libraries through AIX4.2 15060 # and later when we are not doing run time linking. 15061 library_names_spec='${libname}${release}.a $libname.a' 15062 soname_spec='${libname}${release}${shared_ext}$major' 15063 fi 15064 shlibpath_var=LIBPATH 15065 fi 15066 ;; 15067 15068amigaos*) 15069 library_names_spec='$libname.ixlibrary $libname.a' 15070 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15071 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' 15072 ;; 15073 15074beos*) 15075 library_names_spec='${libname}${shared_ext}' 15076 dynamic_linker="$host_os ld.so" 15077 shlibpath_var=LIBRARY_PATH 15078 ;; 15079 15080bsdi[45]*) 15081 version_type=linux 15082 need_version=no 15083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15084 soname_spec='${libname}${release}${shared_ext}$major' 15085 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15086 shlibpath_var=LD_LIBRARY_PATH 15087 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15088 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15089 # the default ld.so.conf also contains /usr/contrib/lib and 15090 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15091 # libtool to hard-code these into programs 15092 ;; 15093 15094cygwin* | mingw* | pw32*) 15095 version_type=windows 15096 shrext_cmds=".dll" 15097 need_version=no 15098 need_lib_prefix=no 15099 15100 case $GCC,$host_os in 15101 yes,cygwin* | yes,mingw* | yes,pw32*) 15102 library_names_spec='$libname.dll.a' 15103 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15104 postinstall_cmds='base_file=`basename \${file}`~ 15105 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15106 dldir=$destdir/`dirname \$dlpath`~ 15107 test -d \$dldir || mkdir -p \$dldir~ 15108 $install_prog $dir/$dlname \$dldir/$dlname~ 15109 chmod a+x \$dldir/$dlname' 15110 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15111 dlpath=$dir/\$dldll~ 15112 $rm \$dlpath' 15113 shlibpath_overrides_runpath=yes 15114 15115 case $host_os in 15116 cygwin*) 15117 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15118 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15119 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15120 ;; 15121 mingw*) 15122 # MinGW DLLs use traditional 'lib' prefix 15123 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15124 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15125 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15126 # It is most probably a Windows format PATH printed by 15127 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15128 # path with ; separators, and with drive letters. We can handle the 15129 # drive letters (cygwin fileutils understands them), so leave them, 15130 # especially as we might pass files found there to a mingw objdump, 15131 # which wouldn't understand a cygwinified path. Ahh. 15132 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15133 else 15134 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15135 fi 15136 ;; 15137 pw32*) 15138 # pw32 DLLs use 'pw' prefix rather than 'lib' 15139 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15140 ;; 15141 esac 15142 ;; 15143 15144 *) 15145 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15146 ;; 15147 esac 15148 dynamic_linker='Win32 ld.exe' 15149 # FIXME: first we should search . and the directory the executable is in 15150 shlibpath_var=PATH 15151 ;; 15152 15153darwin* | rhapsody*) 15154 dynamic_linker="$host_os dyld" 15155 version_type=darwin 15156 need_lib_prefix=no 15157 need_version=no 15158 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15159 soname_spec='${libname}${release}${major}$shared_ext' 15160 shlibpath_overrides_runpath=yes 15161 shlibpath_var=DYLD_LIBRARY_PATH 15162 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15163 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 15164 if test "$GCC" = yes; then 15165 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"` 15166 else 15167 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 15168 fi 15169 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15170 ;; 15171 15172dgux*) 15173 version_type=linux 15174 need_lib_prefix=no 15175 need_version=no 15176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15177 soname_spec='${libname}${release}${shared_ext}$major' 15178 shlibpath_var=LD_LIBRARY_PATH 15179 ;; 15180 15181freebsd1*) 15182 dynamic_linker=no 15183 ;; 15184 15185freebsd* | dragonfly*) 15186 # DragonFly does not have aout. When/if they implement a new 15187 # versioning mechanism, adjust this. 15188 if test -x /usr/bin/objformat; then 15189 objformat=`/usr/bin/objformat` 15190 else 15191 case $host_os in 15192 freebsd[123]*) objformat=aout ;; 15193 *) objformat=elf ;; 15194 esac 15195 fi 15196 version_type=freebsd-$objformat 15197 case $version_type in 15198 freebsd-elf*) 15199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15200 need_version=no 15201 need_lib_prefix=no 15202 ;; 15203 freebsd-*) 15204 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15205 need_version=yes 15206 ;; 15207 esac 15208 shlibpath_var=LD_LIBRARY_PATH 15209 case $host_os in 15210 freebsd2*) 15211 shlibpath_overrides_runpath=yes 15212 ;; 15213 freebsd3.[01]* | freebsdelf3.[01]*) 15214 shlibpath_overrides_runpath=yes 15215 hardcode_into_libs=yes 15216 ;; 15217 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15218 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15219 shlibpath_overrides_runpath=no 15220 hardcode_into_libs=yes 15221 ;; 15222 freebsd*) # from 4.6 on 15223 shlibpath_overrides_runpath=yes 15224 hardcode_into_libs=yes 15225 ;; 15226 esac 15227 ;; 15228 15229gnu*) 15230 version_type=linux 15231 need_lib_prefix=no 15232 need_version=no 15233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15234 soname_spec='${libname}${release}${shared_ext}$major' 15235 shlibpath_var=LD_LIBRARY_PATH 15236 hardcode_into_libs=yes 15237 ;; 15238 15239hpux9* | hpux10* | hpux11*) 15240 # Give a soname corresponding to the major version so that dld.sl refuses to 15241 # link against other versions. 15242 version_type=sunos 15243 need_lib_prefix=no 15244 need_version=no 15245 case $host_cpu in 15246 ia64*) 15247 shrext_cmds='.so' 15248 hardcode_into_libs=yes 15249 dynamic_linker="$host_os dld.so" 15250 shlibpath_var=LD_LIBRARY_PATH 15251 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15253 soname_spec='${libname}${release}${shared_ext}$major' 15254 if test "X$HPUX_IA64_MODE" = X32; then 15255 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15256 else 15257 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15258 fi 15259 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15260 ;; 15261 hppa*64*) 15262 shrext_cmds='.sl' 15263 hardcode_into_libs=yes 15264 dynamic_linker="$host_os dld.sl" 15265 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15266 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15268 soname_spec='${libname}${release}${shared_ext}$major' 15269 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15270 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15271 ;; 15272 *) 15273 shrext_cmds='.sl' 15274 dynamic_linker="$host_os dld.sl" 15275 shlibpath_var=SHLIB_PATH 15276 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15278 soname_spec='${libname}${release}${shared_ext}$major' 15279 ;; 15280 esac 15281 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15282 postinstall_cmds='chmod 555 $lib' 15283 ;; 15284 15285interix3*) 15286 version_type=linux 15287 need_lib_prefix=no 15288 need_version=no 15289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15290 soname_spec='${libname}${release}${shared_ext}$major' 15291 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15292 shlibpath_var=LD_LIBRARY_PATH 15293 shlibpath_overrides_runpath=no 15294 hardcode_into_libs=yes 15295 ;; 15296 15297irix5* | irix6* | nonstopux*) 15298 case $host_os in 15299 nonstopux*) version_type=nonstopux ;; 15300 *) 15301 if test "$lt_cv_prog_gnu_ld" = yes; then 15302 version_type=linux 15303 else 15304 version_type=irix 15305 fi ;; 15306 esac 15307 need_lib_prefix=no 15308 need_version=no 15309 soname_spec='${libname}${release}${shared_ext}$major' 15310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15311 case $host_os in 15312 irix5* | nonstopux*) 15313 libsuff= shlibsuff= 15314 ;; 15315 *) 15316 case $LD in # libtool.m4 will add one of these switches to LD 15317 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15318 libsuff= shlibsuff= libmagic=32-bit;; 15319 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15320 libsuff=32 shlibsuff=N32 libmagic=N32;; 15321 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15322 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15323 *) libsuff= shlibsuff= libmagic=never-match;; 15324 esac 15325 ;; 15326 esac 15327 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15328 shlibpath_overrides_runpath=no 15329 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15330 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15331 hardcode_into_libs=yes 15332 ;; 15333 15334# No shared lib support for Linux oldld, aout, or coff. 15335linux*oldld* | linux*aout* | linux*coff*) 15336 dynamic_linker=no 15337 ;; 15338 15339# This must be Linux ELF. 15340linux* | k*bsd*-gnu) 15341 version_type=linux 15342 need_lib_prefix=no 15343 need_version=no 15344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15345 soname_spec='${libname}${release}${shared_ext}$major' 15346 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15347 shlibpath_var=LD_LIBRARY_PATH 15348 shlibpath_overrides_runpath=no 15349 # This implies no fast_install, which is unacceptable. 15350 # Some rework will be needed to allow for fast_install 15351 # before this can be enabled. 15352 hardcode_into_libs=yes 15353 15354 # Append ld.so.conf contents to the search path 15355 if test -f /etc/ld.so.conf; then 15356 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 15357 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15358 fi 15359 15360 # We used to test for /lib/ld.so.1 and disable shared libraries on 15361 # powerpc, because MkLinux only supported shared libraries with the 15362 # GNU dynamic linker. Since this was broken with cross compilers, 15363 # most powerpc-linux boxes support dynamic linking these days and 15364 # people can always --disable-shared, the test was removed, and we 15365 # assume the GNU/Linux dynamic linker is in use. 15366 dynamic_linker='GNU/Linux ld.so' 15367 ;; 15368 15369netbsdelf*-gnu) 15370 version_type=linux 15371 need_lib_prefix=no 15372 need_version=no 15373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15374 soname_spec='${libname}${release}${shared_ext}$major' 15375 shlibpath_var=LD_LIBRARY_PATH 15376 shlibpath_overrides_runpath=no 15377 hardcode_into_libs=yes 15378 dynamic_linker='NetBSD ld.elf_so' 15379 ;; 15380 15381netbsd*) 15382 version_type=sunos 15383 need_lib_prefix=no 15384 need_version=no 15385 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15387 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15388 dynamic_linker='NetBSD (a.out) ld.so' 15389 else 15390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15391 soname_spec='${libname}${release}${shared_ext}$major' 15392 dynamic_linker='NetBSD ld.elf_so' 15393 fi 15394 shlibpath_var=LD_LIBRARY_PATH 15395 shlibpath_overrides_runpath=yes 15396 hardcode_into_libs=yes 15397 ;; 15398 15399newsos6) 15400 version_type=linux 15401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15402 shlibpath_var=LD_LIBRARY_PATH 15403 shlibpath_overrides_runpath=yes 15404 ;; 15405 15406nto-qnx*) 15407 version_type=linux 15408 need_lib_prefix=no 15409 need_version=no 15410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15411 soname_spec='${libname}${release}${shared_ext}$major' 15412 shlibpath_var=LD_LIBRARY_PATH 15413 shlibpath_overrides_runpath=yes 15414 ;; 15415 15416openbsd*) 15417 version_type=sunos 15418 sys_lib_dlsearch_path_spec="/usr/lib" 15419 need_lib_prefix=no 15420 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15421 case $host_os in 15422 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15423 *) need_version=no ;; 15424 esac 15425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15426 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15427 shlibpath_var=LD_LIBRARY_PATH 15428 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15429 case $host_os in 15430 openbsd2.[89] | openbsd2.[89].*) 15431 shlibpath_overrides_runpath=no 15432 ;; 15433 *) 15434 shlibpath_overrides_runpath=yes 15435 ;; 15436 esac 15437 else 15438 shlibpath_overrides_runpath=yes 15439 fi 15440 ;; 15441 15442os2*) 15443 libname_spec='$name' 15444 shrext_cmds=".dll" 15445 need_lib_prefix=no 15446 library_names_spec='$libname${shared_ext} $libname.a' 15447 dynamic_linker='OS/2 ld.exe' 15448 shlibpath_var=LIBPATH 15449 ;; 15450 15451osf3* | osf4* | osf5*) 15452 version_type=osf 15453 need_lib_prefix=no 15454 need_version=no 15455 soname_spec='${libname}${release}${shared_ext}$major' 15456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15457 shlibpath_var=LD_LIBRARY_PATH 15458 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15459 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15460 ;; 15461 15462solaris*) 15463 version_type=linux 15464 need_lib_prefix=no 15465 need_version=no 15466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15467 soname_spec='${libname}${release}${shared_ext}$major' 15468 shlibpath_var=LD_LIBRARY_PATH 15469 shlibpath_overrides_runpath=yes 15470 hardcode_into_libs=yes 15471 # ldd complains unless libraries are executable 15472 postinstall_cmds='chmod +x $lib' 15473 ;; 15474 15475sunos4*) 15476 version_type=sunos 15477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15478 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15479 shlibpath_var=LD_LIBRARY_PATH 15480 shlibpath_overrides_runpath=yes 15481 if test "$with_gnu_ld" = yes; then 15482 need_lib_prefix=no 15483 fi 15484 need_version=yes 15485 ;; 15486 15487sysv4 | sysv4.3*) 15488 version_type=linux 15489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15490 soname_spec='${libname}${release}${shared_ext}$major' 15491 shlibpath_var=LD_LIBRARY_PATH 15492 case $host_vendor in 15493 sni) 15494 shlibpath_overrides_runpath=no 15495 need_lib_prefix=no 15496 export_dynamic_flag_spec='${wl}-Blargedynsym' 15497 runpath_var=LD_RUN_PATH 15498 ;; 15499 siemens) 15500 need_lib_prefix=no 15501 ;; 15502 motorola) 15503 need_lib_prefix=no 15504 need_version=no 15505 shlibpath_overrides_runpath=no 15506 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15507 ;; 15508 esac 15509 ;; 15510 15511sysv4*MP*) 15512 if test -d /usr/nec ;then 15513 version_type=linux 15514 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15515 soname_spec='$libname${shared_ext}.$major' 15516 shlibpath_var=LD_LIBRARY_PATH 15517 fi 15518 ;; 15519 15520sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15521 version_type=freebsd-elf 15522 need_lib_prefix=no 15523 need_version=no 15524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15525 soname_spec='${libname}${release}${shared_ext}$major' 15526 shlibpath_var=LD_LIBRARY_PATH 15527 hardcode_into_libs=yes 15528 if test "$with_gnu_ld" = yes; then 15529 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15530 shlibpath_overrides_runpath=no 15531 else 15532 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15533 shlibpath_overrides_runpath=yes 15534 case $host_os in 15535 sco3.2v5*) 15536 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15537 ;; 15538 esac 15539 fi 15540 sys_lib_dlsearch_path_spec='/usr/lib' 15541 ;; 15542 15543uts4*) 15544 version_type=linux 15545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15546 soname_spec='${libname}${release}${shared_ext}$major' 15547 shlibpath_var=LD_LIBRARY_PATH 15548 ;; 15549 15550*) 15551 dynamic_linker=no 15552 ;; 15553esac 15554{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 15555echo "${ECHO_T}$dynamic_linker" >&6; } 15556test "$dynamic_linker" = no && can_build_shared=no 15557 15558variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15559if test "$GCC" = yes; then 15560 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15561fi 15562 15563{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 15564echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 15565hardcode_action_F77= 15566if test -n "$hardcode_libdir_flag_spec_F77" || \ 15567 test -n "$runpath_var_F77" || \ 15568 test "X$hardcode_automatic_F77" = "Xyes" ; then 15569 15570 # We can hardcode non-existant directories. 15571 if test "$hardcode_direct_F77" != no && 15572 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15573 # have to relink, otherwise we might link with an installed library 15574 # when we should be linking with a yet-to-be-installed one 15575 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 15576 test "$hardcode_minus_L_F77" != no; then 15577 # Linking always hardcodes the temporary library directory. 15578 hardcode_action_F77=relink 15579 else 15580 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15581 hardcode_action_F77=immediate 15582 fi 15583else 15584 # We cannot hardcode anything, or else we can only hardcode existing 15585 # directories. 15586 hardcode_action_F77=unsupported 15587fi 15588{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 15589echo "${ECHO_T}$hardcode_action_F77" >&6; } 15590 15591if test "$hardcode_action_F77" = relink; then 15592 # Fast installation is not supported 15593 enable_fast_install=no 15594elif test "$shlibpath_overrides_runpath" = yes || 15595 test "$enable_shared" = no; then 15596 # Fast installation is not necessary 15597 enable_fast_install=needless 15598fi 15599 15600 15601# The else clause should only fire when bootstrapping the 15602# libtool distribution, otherwise you forgot to ship ltmain.sh 15603# with your package, and you will get complaints that there are 15604# no rules to generate ltmain.sh. 15605if test -f "$ltmain"; then 15606 # See if we are running on zsh, and set the options which allow our commands through 15607 # without removal of \ escapes. 15608 if test -n "${ZSH_VERSION+set}" ; then 15609 setopt NO_GLOB_SUBST 15610 fi 15611 # Now quote all the things that may contain metacharacters while being 15612 # careful not to overquote the AC_SUBSTed values. We take copies of the 15613 # variables and quote the copies for generation of the libtool script. 15614 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 15615 SED SHELL STRIP \ 15616 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 15617 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 15618 deplibs_check_method reload_flag reload_cmds need_locks \ 15619 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 15620 lt_cv_sys_global_symbol_to_c_name_address \ 15621 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 15622 old_postinstall_cmds old_postuninstall_cmds \ 15623 compiler_F77 \ 15624 CC_F77 \ 15625 LD_F77 \ 15626 lt_prog_compiler_wl_F77 \ 15627 lt_prog_compiler_pic_F77 \ 15628 lt_prog_compiler_static_F77 \ 15629 lt_prog_compiler_no_builtin_flag_F77 \ 15630 export_dynamic_flag_spec_F77 \ 15631 thread_safe_flag_spec_F77 \ 15632 whole_archive_flag_spec_F77 \ 15633 enable_shared_with_static_runtimes_F77 \ 15634 old_archive_cmds_F77 \ 15635 old_archive_from_new_cmds_F77 \ 15636 predep_objects_F77 \ 15637 postdep_objects_F77 \ 15638 predeps_F77 \ 15639 postdeps_F77 \ 15640 compiler_lib_search_path_F77 \ 15641 archive_cmds_F77 \ 15642 archive_expsym_cmds_F77 \ 15643 postinstall_cmds_F77 \ 15644 postuninstall_cmds_F77 \ 15645 old_archive_from_expsyms_cmds_F77 \ 15646 allow_undefined_flag_F77 \ 15647 no_undefined_flag_F77 \ 15648 export_symbols_cmds_F77 \ 15649 hardcode_libdir_flag_spec_F77 \ 15650 hardcode_libdir_flag_spec_ld_F77 \ 15651 hardcode_libdir_separator_F77 \ 15652 hardcode_automatic_F77 \ 15653 module_cmds_F77 \ 15654 module_expsym_cmds_F77 \ 15655 lt_cv_prog_compiler_c_o_F77 \ 15656 exclude_expsyms_F77 \ 15657 include_expsyms_F77; do 15658 15659 case $var in 15660 old_archive_cmds_F77 | \ 15661 old_archive_from_new_cmds_F77 | \ 15662 archive_cmds_F77 | \ 15663 archive_expsym_cmds_F77 | \ 15664 module_cmds_F77 | \ 15665 module_expsym_cmds_F77 | \ 15666 old_archive_from_expsyms_cmds_F77 | \ 15667 export_symbols_cmds_F77 | \ 15668 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 15669 postinstall_cmds | postuninstall_cmds | \ 15670 old_postinstall_cmds | old_postuninstall_cmds | \ 15671 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 15672 # Double-quote double-evaled strings. 15673 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 15674 ;; 15675 *) 15676 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 15677 ;; 15678 esac 15679 done 15680 15681 case $lt_echo in 15682 *'\$0 --fallback-echo"') 15683 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 15684 ;; 15685 esac 15686 15687cfgfile="$ofile" 15688 15689 cat <<__EOF__ >> "$cfgfile" 15690# ### BEGIN LIBTOOL TAG CONFIG: $tagname 15691 15692# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15693 15694# Shell to use when invoking shell scripts. 15695SHELL=$lt_SHELL 15696 15697# Whether or not to build shared libraries. 15698build_libtool_libs=$enable_shared 15699 15700# Whether or not to build static libraries. 15701build_old_libs=$enable_static 15702 15703# Whether or not to add -lc for building shared libraries. 15704build_libtool_need_lc=$archive_cmds_need_lc_F77 15705 15706# Whether or not to disallow shared libs when runtime libs are static 15707allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 15708 15709# Whether or not to optimize for fast installation. 15710fast_install=$enable_fast_install 15711 15712# The host system. 15713host_alias=$host_alias 15714host=$host 15715host_os=$host_os 15716 15717# The build system. 15718build_alias=$build_alias 15719build=$build 15720build_os=$build_os 15721 15722# An echo program that does not interpret backslashes. 15723echo=$lt_echo 15724 15725# The archiver. 15726AR=$lt_AR 15727AR_FLAGS=$lt_AR_FLAGS 15728 15729# A C compiler. 15730LTCC=$lt_LTCC 15731 15732# LTCC compiler flags. 15733LTCFLAGS=$lt_LTCFLAGS 15734 15735# A language-specific compiler. 15736CC=$lt_compiler_F77 15737 15738# Is the compiler the GNU C compiler? 15739with_gcc=$GCC_F77 15740 15741# An ERE matcher. 15742EGREP=$lt_EGREP 15743 15744# The linker used to build libraries. 15745LD=$lt_LD_F77 15746 15747# Whether we need hard or soft links. 15748LN_S=$lt_LN_S 15749 15750# A BSD-compatible nm program. 15751NM=$lt_NM 15752 15753# A symbol stripping program 15754STRIP=$lt_STRIP 15755 15756# Used to examine libraries when file_magic_cmd begins "file" 15757MAGIC_CMD=$MAGIC_CMD 15758 15759# Used on cygwin: DLL creation program. 15760DLLTOOL="$DLLTOOL" 15761 15762# Used on cygwin: object dumper. 15763OBJDUMP="$OBJDUMP" 15764 15765# Used on cygwin: assembler. 15766AS="$AS" 15767 15768# The name of the directory that contains temporary libtool files. 15769objdir=$objdir 15770 15771# How to create reloadable object files. 15772reload_flag=$lt_reload_flag 15773reload_cmds=$lt_reload_cmds 15774 15775# How to pass a linker flag through the compiler. 15776wl=$lt_lt_prog_compiler_wl_F77 15777 15778# Object file suffix (normally "o"). 15779objext="$ac_objext" 15780 15781# Old archive suffix (normally "a"). 15782libext="$libext" 15783 15784# Shared library suffix (normally ".so"). 15785shrext_cmds='$shrext_cmds' 15786 15787# Executable file suffix (normally ""). 15788exeext="$exeext" 15789 15790# Additional compiler flags for building library objects. 15791pic_flag=$lt_lt_prog_compiler_pic_F77 15792pic_mode=$pic_mode 15793 15794# What is the maximum length of a command? 15795max_cmd_len=$lt_cv_sys_max_cmd_len 15796 15797# Does compiler simultaneously support -c and -o options? 15798compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 15799 15800# Must we lock files when doing compilation? 15801need_locks=$lt_need_locks 15802 15803# Do we need the lib prefix for modules? 15804need_lib_prefix=$need_lib_prefix 15805 15806# Do we need a version for libraries? 15807need_version=$need_version 15808 15809# Whether dlopen is supported. 15810dlopen_support=$enable_dlopen 15811 15812# Whether dlopen of programs is supported. 15813dlopen_self=$enable_dlopen_self 15814 15815# Whether dlopen of statically linked programs is supported. 15816dlopen_self_static=$enable_dlopen_self_static 15817 15818# Compiler flag to prevent dynamic linking. 15819link_static_flag=$lt_lt_prog_compiler_static_F77 15820 15821# Compiler flag to turn off builtin functions. 15822no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 15823 15824# Compiler flag to allow reflexive dlopens. 15825export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 15826 15827# Compiler flag to generate shared objects directly from archives. 15828whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 15829 15830# Compiler flag to generate thread-safe objects. 15831thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 15832 15833# Library versioning type. 15834version_type=$version_type 15835 15836# Format of library name prefix. 15837libname_spec=$lt_libname_spec 15838 15839# List of archive names. First name is the real one, the rest are links. 15840# The last name is the one that the linker finds with -lNAME. 15841library_names_spec=$lt_library_names_spec 15842 15843# The coded name of the library, if different from the real name. 15844soname_spec=$lt_soname_spec 15845 15846# Commands used to build and install an old-style archive. 15847RANLIB=$lt_RANLIB 15848old_archive_cmds=$lt_old_archive_cmds_F77 15849old_postinstall_cmds=$lt_old_postinstall_cmds 15850old_postuninstall_cmds=$lt_old_postuninstall_cmds 15851 15852# Create an old-style archive from a shared archive. 15853old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 15854 15855# Create a temporary old-style archive to link instead of a shared archive. 15856old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 15857 15858# Commands used to build and install a shared archive. 15859archive_cmds=$lt_archive_cmds_F77 15860archive_expsym_cmds=$lt_archive_expsym_cmds_F77 15861postinstall_cmds=$lt_postinstall_cmds 15862postuninstall_cmds=$lt_postuninstall_cmds 15863 15864# Commands used to build a loadable module (assumed same as above if empty) 15865module_cmds=$lt_module_cmds_F77 15866module_expsym_cmds=$lt_module_expsym_cmds_F77 15867 15868# Commands to strip libraries. 15869old_striplib=$lt_old_striplib 15870striplib=$lt_striplib 15871 15872# Dependencies to place before the objects being linked to create a 15873# shared library. 15874predep_objects=$lt_predep_objects_F77 15875 15876# Dependencies to place after the objects being linked to create a 15877# shared library. 15878postdep_objects=$lt_postdep_objects_F77 15879 15880# Dependencies to place before the objects being linked to create a 15881# shared library. 15882predeps=$lt_predeps_F77 15883 15884# Dependencies to place after the objects being linked to create a 15885# shared library. 15886postdeps=$lt_postdeps_F77 15887 15888# The library search path used internally by the compiler when linking 15889# a shared library. 15890compiler_lib_search_path=$lt_compiler_lib_search_path_F77 15891 15892# Method to check whether dependent libraries are shared objects. 15893deplibs_check_method=$lt_deplibs_check_method 15894 15895# Command to use when deplibs_check_method == file_magic. 15896file_magic_cmd=$lt_file_magic_cmd 15897 15898# Flag that allows shared libraries with undefined symbols to be built. 15899allow_undefined_flag=$lt_allow_undefined_flag_F77 15900 15901# Flag that forces no undefined symbols. 15902no_undefined_flag=$lt_no_undefined_flag_F77 15903 15904# Commands used to finish a libtool library installation in a directory. 15905finish_cmds=$lt_finish_cmds 15906 15907# Same as above, but a single script fragment to be evaled but not shown. 15908finish_eval=$lt_finish_eval 15909 15910# Take the output of nm and produce a listing of raw symbols and C names. 15911global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15912 15913# Transform the output of nm in a proper C declaration 15914global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15915 15916# Transform the output of nm in a C name address pair 15917global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15918 15919# This is the shared library runtime path variable. 15920runpath_var=$runpath_var 15921 15922# This is the shared library path variable. 15923shlibpath_var=$shlibpath_var 15924 15925# Is shlibpath searched before the hard-coded library search path? 15926shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15927 15928# How to hardcode a shared library path into an executable. 15929hardcode_action=$hardcode_action_F77 15930 15931# Whether we should hardcode library paths into libraries. 15932hardcode_into_libs=$hardcode_into_libs 15933 15934# Flag to hardcode \$libdir into a binary during linking. 15935# This must work even if \$libdir does not exist. 15936hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 15937 15938# If ld is used when linking, flag to hardcode \$libdir into 15939# a binary during linking. This must work even if \$libdir does 15940# not exist. 15941hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 15942 15943# Whether we need a single -rpath flag with a separated argument. 15944hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 15945 15946# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 15947# resulting binary. 15948hardcode_direct=$hardcode_direct_F77 15949 15950# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 15951# resulting binary. 15952hardcode_minus_L=$hardcode_minus_L_F77 15953 15954# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 15955# the resulting binary. 15956hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 15957 15958# Set to yes if building a shared library automatically hardcodes DIR into the library 15959# and all subsequent libraries and executables linked against it. 15960hardcode_automatic=$hardcode_automatic_F77 15961 15962# Variables whose values should be saved in libtool wrapper scripts and 15963# restored at relink time. 15964variables_saved_for_relink="$variables_saved_for_relink" 15965 15966# Whether libtool must link a program against all its dependency libraries. 15967link_all_deplibs=$link_all_deplibs_F77 15968 15969# Compile-time system search path for libraries 15970sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15971 15972# Run-time system search path for libraries 15973sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15974 15975# Fix the shell variable \$srcfile for the compiler. 15976fix_srcfile_path="$fix_srcfile_path_F77" 15977 15978# Set to yes if exported symbols are required. 15979always_export_symbols=$always_export_symbols_F77 15980 15981# The commands to list exported symbols. 15982export_symbols_cmds=$lt_export_symbols_cmds_F77 15983 15984# The commands to extract the exported symbol list from a shared archive. 15985extract_expsyms_cmds=$lt_extract_expsyms_cmds 15986 15987# Symbols that should not be listed in the preloaded symbols. 15988exclude_expsyms=$lt_exclude_expsyms_F77 15989 15990# Symbols that must always be exported. 15991include_expsyms=$lt_include_expsyms_F77 15992 15993# ### END LIBTOOL TAG CONFIG: $tagname 15994 15995__EOF__ 15996 15997 15998else 15999 # If there is no Makefile yet, we rely on a make rule to execute 16000 # `config.status --recheck' to rerun these tests and create the 16001 # libtool script then. 16002 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16003 if test -f "$ltmain_in"; then 16004 test -f Makefile && make "$ltmain" 16005 fi 16006fi 16007 16008 16009ac_ext=c 16010ac_cpp='$CPP $CPPFLAGS' 16011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16013ac_compiler_gnu=$ac_cv_c_compiler_gnu 16014 16015CC="$lt_save_CC" 16016 16017 else 16018 tagname="" 16019 fi 16020 ;; 16021 16022 GCJ) 16023 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16024 16025 16026# Source file extension for Java test sources. 16027ac_ext=java 16028 16029# Object file extension for compiled Java test sources. 16030objext=o 16031objext_GCJ=$objext 16032 16033# Code to be used in simple compile tests 16034lt_simple_compile_test_code="class foo {}\n" 16035 16036# Code to be used in simple link tests 16037lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 16038 16039# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16040 16041# If no C compiler was specified, use CC. 16042LTCC=${LTCC-"$CC"} 16043 16044# If no C compiler flags were specified, use CFLAGS. 16045LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16046 16047# Allow CC to be a program name with arguments. 16048compiler=$CC 16049 16050 16051# save warnings/boilerplate of simple test code 16052ac_outfile=conftest.$ac_objext 16053printf "$lt_simple_compile_test_code" >conftest.$ac_ext 16054eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16055_lt_compiler_boilerplate=`cat conftest.err` 16056$rm conftest* 16057 16058ac_outfile=conftest.$ac_objext 16059printf "$lt_simple_link_test_code" >conftest.$ac_ext 16060eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16061_lt_linker_boilerplate=`cat conftest.err` 16062$rm conftest* 16063 16064 16065# Allow CC to be a program name with arguments. 16066lt_save_CC="$CC" 16067CC=${GCJ-"gcj"} 16068compiler=$CC 16069compiler_GCJ=$CC 16070for cc_temp in $compiler""; do 16071 case $cc_temp in 16072 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16073 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16074 \-*) ;; 16075 *) break;; 16076 esac 16077done 16078cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16079 16080 16081# GCJ did not exist at the time GCC didn't implicitly link libc in. 16082archive_cmds_need_lc_GCJ=no 16083 16084old_archive_cmds_GCJ=$old_archive_cmds 16085 16086## CAVEAT EMPTOR: 16087## There is no encapsulation within the following macros, do not change 16088## the running order or otherwise move them around unless you know exactly 16089## what you are doing... 16090 16091lt_prog_compiler_no_builtin_flag_GCJ= 16092 16093if test "$GCC" = yes; then 16094 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16095 16096 16097{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16098echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 16099if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16100 echo $ECHO_N "(cached) $ECHO_C" >&6 16101else 16102 lt_cv_prog_compiler_rtti_exceptions=no 16103 ac_outfile=conftest.$ac_objext 16104 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16105 lt_compiler_flag="-fno-rtti -fno-exceptions" 16106 # Insert the option either (1) after the last *FLAGS variable, or 16107 # (2) before a word containing "conftest.", or (3) at the end. 16108 # Note that $ac_compile itself does not contain backslashes and begins 16109 # with a dollar sign (not a hyphen), so the echo should work correctly. 16110 # The option is referenced via a variable to avoid confusing sed. 16111 lt_compile=`echo "$ac_compile" | $SED \ 16112 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16113 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16114 -e 's:$: $lt_compiler_flag:'` 16115 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 16116 (eval "$lt_compile" 2>conftest.err) 16117 ac_status=$? 16118 cat conftest.err >&5 16119 echo "$as_me:__oline__: \$? = $ac_status" >&5 16120 if (exit $ac_status) && test -s "$ac_outfile"; then 16121 # The compiler can only warn and ignore the option if not recognized 16122 # So say no if there are warnings other than the usual output. 16123 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16124 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16125 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16126 lt_cv_prog_compiler_rtti_exceptions=yes 16127 fi 16128 fi 16129 $rm conftest* 16130 16131fi 16132{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16133echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16134 16135if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16136 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16137else 16138 : 16139fi 16140 16141fi 16142 16143lt_prog_compiler_wl_GCJ= 16144lt_prog_compiler_pic_GCJ= 16145lt_prog_compiler_static_GCJ= 16146 16147{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16148echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 16149 16150 if test "$GCC" = yes; then 16151 lt_prog_compiler_wl_GCJ='-Wl,' 16152 lt_prog_compiler_static_GCJ='-static' 16153 16154 case $host_os in 16155 aix*) 16156 # All AIX code is PIC. 16157 if test "$host_cpu" = ia64; then 16158 # AIX 5 now supports IA64 processor 16159 lt_prog_compiler_static_GCJ='-Bstatic' 16160 fi 16161 ;; 16162 16163 amigaos*) 16164 # FIXME: we need at least 68020 code to build shared libraries, but 16165 # adding the `-m68020' flag to GCC prevents building anything better, 16166 # like `-m68040'. 16167 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16168 ;; 16169 16170 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16171 # PIC is the default for these OSes. 16172 ;; 16173 16174 mingw* | pw32* | os2*) 16175 # This hack is so that the source file can tell whether it is being 16176 # built for inclusion in a dll (and should export symbols for example). 16177 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16178 ;; 16179 16180 darwin* | rhapsody*) 16181 # PIC is the default on this platform 16182 # Common symbols not allowed in MH_DYLIB files 16183 lt_prog_compiler_pic_GCJ='-fno-common' 16184 ;; 16185 16186 interix3*) 16187 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16188 # Instead, we relocate shared libraries at runtime. 16189 ;; 16190 16191 msdosdjgpp*) 16192 # Just because we use GCC doesn't mean we suddenly get shared libraries 16193 # on systems that don't support them. 16194 lt_prog_compiler_can_build_shared_GCJ=no 16195 enable_shared=no 16196 ;; 16197 16198 sysv4*MP*) 16199 if test -d /usr/nec; then 16200 lt_prog_compiler_pic_GCJ=-Kconform_pic 16201 fi 16202 ;; 16203 16204 hpux*) 16205 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16206 # not for PA HP-UX. 16207 case $host_cpu in 16208 hppa*64*|ia64*) 16209 # +Z the default 16210 ;; 16211 *) 16212 lt_prog_compiler_pic_GCJ='-fPIC' 16213 ;; 16214 esac 16215 ;; 16216 16217 *) 16218 lt_prog_compiler_pic_GCJ='-fPIC' 16219 ;; 16220 esac 16221 else 16222 # PORTME Check for flag to pass linker flags through the system compiler. 16223 case $host_os in 16224 aix*) 16225 lt_prog_compiler_wl_GCJ='-Wl,' 16226 if test "$host_cpu" = ia64; then 16227 # AIX 5 now supports IA64 processor 16228 lt_prog_compiler_static_GCJ='-Bstatic' 16229 else 16230 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16231 fi 16232 ;; 16233 darwin*) 16234 # PIC is the default on this platform 16235 # Common symbols not allowed in MH_DYLIB files 16236 case $cc_basename in 16237 xlc*) 16238 lt_prog_compiler_pic_GCJ='-qnocommon' 16239 lt_prog_compiler_wl_GCJ='-Wl,' 16240 ;; 16241 esac 16242 ;; 16243 16244 mingw* | pw32* | os2*) 16245 # This hack is so that the source file can tell whether it is being 16246 # built for inclusion in a dll (and should export symbols for example). 16247 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16248 ;; 16249 16250 hpux9* | hpux10* | hpux11*) 16251 lt_prog_compiler_wl_GCJ='-Wl,' 16252 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16253 # not for PA HP-UX. 16254 case $host_cpu in 16255 hppa*64*|ia64*) 16256 # +Z the default 16257 ;; 16258 *) 16259 lt_prog_compiler_pic_GCJ='+Z' 16260 ;; 16261 esac 16262 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16263 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 16264 ;; 16265 16266 irix5* | irix6* | nonstopux*) 16267 lt_prog_compiler_wl_GCJ='-Wl,' 16268 # PIC (with -KPIC) is the default. 16269 lt_prog_compiler_static_GCJ='-non_shared' 16270 ;; 16271 16272 newsos6) 16273 lt_prog_compiler_pic_GCJ='-KPIC' 16274 lt_prog_compiler_static_GCJ='-Bstatic' 16275 ;; 16276 16277 linux* | k*bsd*-gnu) 16278 case $cc_basename in 16279 icc* | ecc*) 16280 lt_prog_compiler_wl_GCJ='-Wl,' 16281 lt_prog_compiler_pic_GCJ='-KPIC' 16282 lt_prog_compiler_static_GCJ='-static' 16283 ;; 16284 pgcc* | pgf77* | pgf90* | pgf95*) 16285 # Portland Group compilers (*not* the Pentium gcc compiler, 16286 # which looks to be a dead project) 16287 lt_prog_compiler_wl_GCJ='-Wl,' 16288 lt_prog_compiler_pic_GCJ='-fpic' 16289 lt_prog_compiler_static_GCJ='-Bstatic' 16290 ;; 16291 ccc*) 16292 lt_prog_compiler_wl_GCJ='-Wl,' 16293 # All Alpha code is PIC. 16294 lt_prog_compiler_static_GCJ='-non_shared' 16295 ;; 16296 esac 16297 ;; 16298 16299 osf3* | osf4* | osf5*) 16300 lt_prog_compiler_wl_GCJ='-Wl,' 16301 # All OSF/1 code is PIC. 16302 lt_prog_compiler_static_GCJ='-non_shared' 16303 ;; 16304 16305 solaris*) 16306 lt_prog_compiler_pic_GCJ='-KPIC' 16307 lt_prog_compiler_static_GCJ='-Bstatic' 16308 case $cc_basename in 16309 f77* | f90* | f95*) 16310 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 16311 *) 16312 lt_prog_compiler_wl_GCJ='-Wl,';; 16313 esac 16314 ;; 16315 16316 sunos4*) 16317 lt_prog_compiler_wl_GCJ='-Qoption ld ' 16318 lt_prog_compiler_pic_GCJ='-PIC' 16319 lt_prog_compiler_static_GCJ='-Bstatic' 16320 ;; 16321 16322 sysv4 | sysv4.2uw2* | sysv4.3*) 16323 lt_prog_compiler_wl_GCJ='-Wl,' 16324 lt_prog_compiler_pic_GCJ='-KPIC' 16325 lt_prog_compiler_static_GCJ='-Bstatic' 16326 ;; 16327 16328 sysv4*MP*) 16329 if test -d /usr/nec ;then 16330 lt_prog_compiler_pic_GCJ='-Kconform_pic' 16331 lt_prog_compiler_static_GCJ='-Bstatic' 16332 fi 16333 ;; 16334 16335 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16336 lt_prog_compiler_wl_GCJ='-Wl,' 16337 lt_prog_compiler_pic_GCJ='-KPIC' 16338 lt_prog_compiler_static_GCJ='-Bstatic' 16339 ;; 16340 16341 unicos*) 16342 lt_prog_compiler_wl_GCJ='-Wl,' 16343 lt_prog_compiler_can_build_shared_GCJ=no 16344 ;; 16345 16346 uts4*) 16347 lt_prog_compiler_pic_GCJ='-pic' 16348 lt_prog_compiler_static_GCJ='-Bstatic' 16349 ;; 16350 16351 *) 16352 lt_prog_compiler_can_build_shared_GCJ=no 16353 ;; 16354 esac 16355 fi 16356 16357{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 16358echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } 16359 16360# 16361# Check to make sure the PIC flag actually works. 16362# 16363if test -n "$lt_prog_compiler_pic_GCJ"; then 16364 16365{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 16366echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } 16367if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 16368 echo $ECHO_N "(cached) $ECHO_C" >&6 16369else 16370 lt_prog_compiler_pic_works_GCJ=no 16371 ac_outfile=conftest.$ac_objext 16372 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16373 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 16374 # Insert the option either (1) after the last *FLAGS variable, or 16375 # (2) before a word containing "conftest.", or (3) at the end. 16376 # Note that $ac_compile itself does not contain backslashes and begins 16377 # with a dollar sign (not a hyphen), so the echo should work correctly. 16378 # The option is referenced via a variable to avoid confusing sed. 16379 lt_compile=`echo "$ac_compile" | $SED \ 16380 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16381 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16382 -e 's:$: $lt_compiler_flag:'` 16383 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 16384 (eval "$lt_compile" 2>conftest.err) 16385 ac_status=$? 16386 cat conftest.err >&5 16387 echo "$as_me:__oline__: \$? = $ac_status" >&5 16388 if (exit $ac_status) && test -s "$ac_outfile"; then 16389 # The compiler can only warn and ignore the option if not recognized 16390 # So say no if there are warnings other than the usual output. 16391 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16392 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16393 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16394 lt_prog_compiler_pic_works_GCJ=yes 16395 fi 16396 fi 16397 $rm conftest* 16398 16399fi 16400{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 16401echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } 16402 16403if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 16404 case $lt_prog_compiler_pic_GCJ in 16405 "" | " "*) ;; 16406 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 16407 esac 16408else 16409 lt_prog_compiler_pic_GCJ= 16410 lt_prog_compiler_can_build_shared_GCJ=no 16411fi 16412 16413fi 16414case $host_os in 16415 # For platforms which do not support PIC, -DPIC is meaningless: 16416 *djgpp*) 16417 lt_prog_compiler_pic_GCJ= 16418 ;; 16419 *) 16420 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 16421 ;; 16422esac 16423 16424# 16425# Check to make sure the static flag actually works. 16426# 16427wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 16428{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16429echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 16430if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 16431 echo $ECHO_N "(cached) $ECHO_C" >&6 16432else 16433 lt_prog_compiler_static_works_GCJ=no 16434 save_LDFLAGS="$LDFLAGS" 16435 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16436 printf "$lt_simple_link_test_code" > conftest.$ac_ext 16437 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16438 # The linker can only warn and ignore the option if not recognized 16439 # So say no if there are warnings 16440 if test -s conftest.err; then 16441 # Append any errors to the config.log. 16442 cat conftest.err 1>&5 16443 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 16444 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16445 if diff conftest.exp conftest.er2 >/dev/null; then 16446 lt_prog_compiler_static_works_GCJ=yes 16447 fi 16448 else 16449 lt_prog_compiler_static_works_GCJ=yes 16450 fi 16451 fi 16452 $rm conftest* 16453 LDFLAGS="$save_LDFLAGS" 16454 16455fi 16456{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 16457echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } 16458 16459if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 16460 : 16461else 16462 lt_prog_compiler_static_GCJ= 16463fi 16464 16465 16466{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 16467echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 16468if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 16469 echo $ECHO_N "(cached) $ECHO_C" >&6 16470else 16471 lt_cv_prog_compiler_c_o_GCJ=no 16472 $rm -r conftest 2>/dev/null 16473 mkdir conftest 16474 cd conftest 16475 mkdir out 16476 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16477 16478 lt_compiler_flag="-o out/conftest2.$ac_objext" 16479 # Insert the option either (1) after the last *FLAGS variable, or 16480 # (2) before a word containing "conftest.", or (3) at the end. 16481 # Note that $ac_compile itself does not contain backslashes and begins 16482 # with a dollar sign (not a hyphen), so the echo should work correctly. 16483 lt_compile=`echo "$ac_compile" | $SED \ 16484 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16485 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16486 -e 's:$: $lt_compiler_flag:'` 16487 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 16488 (eval "$lt_compile" 2>out/conftest.err) 16489 ac_status=$? 16490 cat out/conftest.err >&5 16491 echo "$as_me:__oline__: \$? = $ac_status" >&5 16492 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16493 then 16494 # The compiler can only warn and ignore the option if not recognized 16495 # So say no if there are warnings 16496 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 16497 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16498 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16499 lt_cv_prog_compiler_c_o_GCJ=yes 16500 fi 16501 fi 16502 chmod u+w . 2>&5 16503 $rm conftest* 16504 # SGI C++ compiler will create directory out/ii_files/ for 16505 # template instantiation 16506 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 16507 $rm out/* && rmdir out 16508 cd .. 16509 rmdir conftest 16510 $rm conftest* 16511 16512fi 16513{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 16514echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } 16515 16516 16517hard_links="nottested" 16518if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 16519 # do not overwrite the value of need_locks provided by the user 16520 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 16521echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 16522 hard_links=yes 16523 $rm conftest* 16524 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16525 touch conftest.a 16526 ln conftest.a conftest.b 2>&5 || hard_links=no 16527 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16528 { echo "$as_me:$LINENO: result: $hard_links" >&5 16529echo "${ECHO_T}$hard_links" >&6; } 16530 if test "$hard_links" = no; then 16531 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 16532echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 16533 need_locks=warn 16534 fi 16535else 16536 need_locks=no 16537fi 16538 16539{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16540echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 16541 16542 runpath_var= 16543 allow_undefined_flag_GCJ= 16544 enable_shared_with_static_runtimes_GCJ=no 16545 archive_cmds_GCJ= 16546 archive_expsym_cmds_GCJ= 16547 old_archive_From_new_cmds_GCJ= 16548 old_archive_from_expsyms_cmds_GCJ= 16549 export_dynamic_flag_spec_GCJ= 16550 whole_archive_flag_spec_GCJ= 16551 thread_safe_flag_spec_GCJ= 16552 hardcode_libdir_flag_spec_GCJ= 16553 hardcode_libdir_flag_spec_ld_GCJ= 16554 hardcode_libdir_separator_GCJ= 16555 hardcode_direct_GCJ=no 16556 hardcode_minus_L_GCJ=no 16557 hardcode_shlibpath_var_GCJ=unsupported 16558 link_all_deplibs_GCJ=unknown 16559 hardcode_automatic_GCJ=no 16560 module_cmds_GCJ= 16561 module_expsym_cmds_GCJ= 16562 always_export_symbols_GCJ=no 16563 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16564 # include_expsyms should be a list of space-separated symbols to be *always* 16565 # included in the symbol list 16566 include_expsyms_GCJ= 16567 # exclude_expsyms can be an extended regexp of symbols to exclude 16568 # it will be wrapped by ` (' and `)$', so one must not match beginning or 16569 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 16570 # as well as any symbol that contains `d'. 16571 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 16572 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16573 # platforms (ab)use it in PIC code, but their linkers get confused if 16574 # the symbol is explicitly referenced. Since portable code cannot 16575 # rely on this symbol name, it's probably fine to never include it in 16576 # preloaded symbol tables. 16577 extract_expsyms_cmds= 16578 # Just being paranoid about ensuring that cc_basename is set. 16579 for cc_temp in $compiler""; do 16580 case $cc_temp in 16581 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16582 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16583 \-*) ;; 16584 *) break;; 16585 esac 16586done 16587cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16588 16589 case $host_os in 16590 cygwin* | mingw* | pw32*) 16591 # FIXME: the MSVC++ port hasn't been tested in a loooong time 16592 # When not using gcc, we currently assume that we are using 16593 # Microsoft Visual C++. 16594 if test "$GCC" != yes; then 16595 with_gnu_ld=no 16596 fi 16597 ;; 16598 interix*) 16599 # we just hope/assume this is gcc and not c89 (= MSVC++) 16600 with_gnu_ld=yes 16601 ;; 16602 openbsd*) 16603 with_gnu_ld=no 16604 ;; 16605 esac 16606 16607 ld_shlibs_GCJ=yes 16608 if test "$with_gnu_ld" = yes; then 16609 # If archive_cmds runs LD, not CC, wlarc should be empty 16610 wlarc='${wl}' 16611 16612 # Set some defaults for GNU ld with shared library support. These 16613 # are reset later if shared libraries are not supported. Putting them 16614 # here allows them to be overridden if necessary. 16615 runpath_var=LD_RUN_PATH 16616 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 16617 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 16618 # ancient GNU ld didn't support --whole-archive et. al. 16619 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 16620 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 16621 else 16622 whole_archive_flag_spec_GCJ= 16623 fi 16624 supports_anon_versioning=no 16625 case `$LD -v 2>/dev/null` in 16626 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16627 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16628 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16629 *\ 2.11.*) ;; # other 2.11 versions 16630 *) supports_anon_versioning=yes ;; 16631 esac 16632 16633 # See if GNU ld supports shared libraries. 16634 case $host_os in 16635 aix3* | aix4* | aix5*) 16636 # On AIX/PPC, the GNU linker is very broken 16637 if test "$host_cpu" != ia64; then 16638 ld_shlibs_GCJ=no 16639 cat <<EOF 1>&2 16640 16641*** Warning: the GNU linker, at least up to release 2.9.1, is reported 16642*** to be unable to reliably create shared libraries on AIX. 16643*** Therefore, libtool is disabling shared libraries support. If you 16644*** really care for shared libraries, you may want to modify your PATH 16645*** so that a non-GNU linker is found, and then restart. 16646 16647EOF 16648 fi 16649 ;; 16650 16651 amigaos*) 16652 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)' 16653 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16654 hardcode_minus_L_GCJ=yes 16655 16656 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 16657 # that the semantics of dynamic libraries on AmigaOS, at least up 16658 # to version 4, is to share data among multiple programs linked 16659 # with the same dynamic library. Since this doesn't match the 16660 # behavior of shared libraries on other platforms, we can't use 16661 # them. 16662 ld_shlibs_GCJ=no 16663 ;; 16664 16665 beos*) 16666 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16667 allow_undefined_flag_GCJ=unsupported 16668 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16669 # support --undefined. This deserves some investigation. FIXME 16670 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16671 else 16672 ld_shlibs_GCJ=no 16673 fi 16674 ;; 16675 16676 cygwin* | mingw* | pw32*) 16677 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 16678 # as there is no search path for DLLs. 16679 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16680 allow_undefined_flag_GCJ=unsupported 16681 always_export_symbols_GCJ=no 16682 enable_shared_with_static_runtimes_GCJ=yes 16683 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 16684 16685 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 16686 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16687 # If the export-symbols file already is a .def file (1st line 16688 # is EXPORTS), use it as is; otherwise, prepend... 16689 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16690 cp $export_symbols $output_objdir/$soname.def; 16691 else 16692 echo EXPORTS > $output_objdir/$soname.def; 16693 cat $export_symbols >> $output_objdir/$soname.def; 16694 fi~ 16695 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16696 else 16697 ld_shlibs_GCJ=no 16698 fi 16699 ;; 16700 16701 interix3*) 16702 hardcode_direct_GCJ=no 16703 hardcode_shlibpath_var_GCJ=no 16704 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16705 export_dynamic_flag_spec_GCJ='${wl}-E' 16706 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16707 # Instead, shared libraries are loaded at an image base (0x10000000 by 16708 # default) and relocated if they conflict, which is a slow very memory 16709 # consuming and fragmenting process. To avoid this, we pick a random, 16710 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16711 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16712 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' 16713 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' 16714 ;; 16715 16716 linux* | k*bsd*-gnu) 16717 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16718 tmp_addflag= 16719 case $cc_basename,$host_cpu in 16720 pgcc*) # Portland Group C compiler 16721 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' 16722 tmp_addflag=' $pic_flag' 16723 ;; 16724 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 16725 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' 16726 tmp_addflag=' $pic_flag -Mnomain' ;; 16727 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16728 tmp_addflag=' -i_dynamic' ;; 16729 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16730 tmp_addflag=' -i_dynamic -nofor_main' ;; 16731 ifc* | ifort*) # Intel Fortran compiler 16732 tmp_addflag=' -nofor_main' ;; 16733 esac 16734 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16735 16736 if test $supports_anon_versioning = yes; then 16737 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 16738 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16739 $echo "local: *; };" >> $output_objdir/$libname.ver~ 16740 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 16741 fi 16742 link_all_deplibs_GCJ=no 16743 else 16744 ld_shlibs_GCJ=no 16745 fi 16746 ;; 16747 16748 netbsd* | netbsdelf*-gnu) 16749 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16750 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16751 wlarc= 16752 else 16753 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16754 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16755 fi 16756 ;; 16757 16758 solaris*) 16759 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 16760 ld_shlibs_GCJ=no 16761 cat <<EOF 1>&2 16762 16763*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16764*** create shared libraries on Solaris systems. Therefore, libtool 16765*** is disabling shared libraries support. We urge you to upgrade GNU 16766*** binutils to release 2.9.1 or newer. Another option is to modify 16767*** your PATH or compiler configuration so that the native linker is 16768*** used, and then restart. 16769 16770EOF 16771 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16772 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16773 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16774 else 16775 ld_shlibs_GCJ=no 16776 fi 16777 ;; 16778 16779 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 16780 case `$LD -v 2>&1` in 16781 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 16782 ld_shlibs_GCJ=no 16783 cat <<_LT_EOF 1>&2 16784 16785*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 16786*** reliably create shared libraries on SCO systems. Therefore, libtool 16787*** is disabling shared libraries support. We urge you to upgrade GNU 16788*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 16789*** your PATH or compiler configuration so that the native linker is 16790*** used, and then restart. 16791 16792_LT_EOF 16793 ;; 16794 *) 16795 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16796 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 16797 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 16798 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 16799 else 16800 ld_shlibs_GCJ=no 16801 fi 16802 ;; 16803 esac 16804 ;; 16805 16806 sunos4*) 16807 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16808 wlarc= 16809 hardcode_direct_GCJ=yes 16810 hardcode_shlibpath_var_GCJ=no 16811 ;; 16812 16813 *) 16814 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16815 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16816 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16817 else 16818 ld_shlibs_GCJ=no 16819 fi 16820 ;; 16821 esac 16822 16823 if test "$ld_shlibs_GCJ" = no; then 16824 runpath_var= 16825 hardcode_libdir_flag_spec_GCJ= 16826 export_dynamic_flag_spec_GCJ= 16827 whole_archive_flag_spec_GCJ= 16828 fi 16829 else 16830 # PORTME fill in a description of your system's linker (not GNU ld) 16831 case $host_os in 16832 aix3*) 16833 allow_undefined_flag_GCJ=unsupported 16834 always_export_symbols_GCJ=yes 16835 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' 16836 # Note: this linker hardcodes the directories in LIBPATH if there 16837 # are no directories specified by -L. 16838 hardcode_minus_L_GCJ=yes 16839 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 16840 # Neither direct hardcoding nor static linking is supported with a 16841 # broken collect2. 16842 hardcode_direct_GCJ=unsupported 16843 fi 16844 ;; 16845 16846 aix4* | aix5*) 16847 if test "$host_cpu" = ia64; then 16848 # On IA64, the linker does run time linking by default, so we don't 16849 # have to do anything special. 16850 aix_use_runtimelinking=no 16851 exp_sym_flag='-Bexport' 16852 no_entry_flag="" 16853 else 16854 # If we're using GNU nm, then we don't want the "-C" option. 16855 # -C means demangle to AIX nm, but means don't demangle with GNU nm 16856 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 16857 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' 16858 else 16859 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' 16860 fi 16861 aix_use_runtimelinking=no 16862 16863 # Test if we are trying to use run time linking or normal 16864 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16865 # need to do runtime linking. 16866 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 16867 for ld_flag in $LDFLAGS; do 16868 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 16869 aix_use_runtimelinking=yes 16870 break 16871 fi 16872 done 16873 ;; 16874 esac 16875 16876 exp_sym_flag='-bexport' 16877 no_entry_flag='-bnoentry' 16878 fi 16879 16880 # When large executables or shared objects are built, AIX ld can 16881 # have problems creating the table of contents. If linking a library 16882 # or program results in "error TOC overflow" add -mminimal-toc to 16883 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16884 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16885 16886 archive_cmds_GCJ='' 16887 hardcode_direct_GCJ=yes 16888 hardcode_libdir_separator_GCJ=':' 16889 link_all_deplibs_GCJ=yes 16890 16891 if test "$GCC" = yes; then 16892 case $host_os in aix4.[012]|aix4.[012].*) 16893 # We only want to do this on AIX 4.2 and lower, the check 16894 # below for broken collect2 doesn't work under 4.3+ 16895 collect2name=`${CC} -print-prog-name=collect2` 16896 if test -f "$collect2name" && \ 16897 strings "$collect2name" | grep resolve_lib_name >/dev/null 16898 then 16899 # We have reworked collect2 16900 hardcode_direct_GCJ=yes 16901 else 16902 # We have old collect2 16903 hardcode_direct_GCJ=unsupported 16904 # It fails to find uninstalled libraries when the uninstalled 16905 # path is not listed in the libpath. Setting hardcode_minus_L 16906 # to unsupported forces relinking 16907 hardcode_minus_L_GCJ=yes 16908 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16909 hardcode_libdir_separator_GCJ= 16910 fi 16911 ;; 16912 esac 16913 shared_flag='-shared' 16914 if test "$aix_use_runtimelinking" = yes; then 16915 shared_flag="$shared_flag "'${wl}-G' 16916 fi 16917 else 16918 # not using gcc 16919 if test "$host_cpu" = ia64; then 16920 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16921 # chokes on -Wl,-G. The following line is correct: 16922 shared_flag='-G' 16923 else 16924 if test "$aix_use_runtimelinking" = yes; then 16925 shared_flag='${wl}-G' 16926 else 16927 shared_flag='${wl}-bM:SRE' 16928 fi 16929 fi 16930 fi 16931 16932 # It seems that -bexpall does not export symbols beginning with 16933 # underscore (_), so it is better to generate a list of symbols to export. 16934 always_export_symbols_GCJ=yes 16935 if test "$aix_use_runtimelinking" = yes; then 16936 # Warning - without using the other runtime loading flags (-brtl), 16937 # -berok will link without error, but may produce a broken library. 16938 allow_undefined_flag_GCJ='-berok' 16939 # Determine the default libpath from the value encoded in an empty executable. 16940 cat >conftest.$ac_ext <<_ACEOF 16941/* confdefs.h. */ 16942_ACEOF 16943cat confdefs.h >>conftest.$ac_ext 16944cat >>conftest.$ac_ext <<_ACEOF 16945/* end confdefs.h. */ 16946 16947int 16948main () 16949{ 16950 16951 ; 16952 return 0; 16953} 16954_ACEOF 16955rm -f conftest.$ac_objext conftest$ac_exeext 16956if { (ac_try="$ac_link" 16957case "(($ac_try" in 16958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16959 *) ac_try_echo=$ac_try;; 16960esac 16961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16962 (eval "$ac_link") 2>conftest.er1 16963 ac_status=$? 16964 grep -v '^ *+' conftest.er1 >conftest.err 16965 rm -f conftest.er1 16966 cat conftest.err >&5 16967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16968 (exit $ac_status); } && { 16969 test -z "$ac_c_werror_flag" || 16970 test ! -s conftest.err 16971 } && test -s conftest$ac_exeext && 16972 $as_test_x conftest$ac_exeext; then 16973 16974aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16975}'` 16976# Check for a 64-bit object if we didn't find anything. 16977if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16978}'`; fi 16979else 16980 echo "$as_me: failed program was:" >&5 16981sed 's/^/| /' conftest.$ac_ext >&5 16982 16983 16984fi 16985 16986rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16987 conftest$ac_exeext conftest.$ac_ext 16988if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16989 16990 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 16991 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" 16992 else 16993 if test "$host_cpu" = ia64; then 16994 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 16995 allow_undefined_flag_GCJ="-z nodefs" 16996 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" 16997 else 16998 # Determine the default libpath from the value encoded in an empty executable. 16999 cat >conftest.$ac_ext <<_ACEOF 17000/* confdefs.h. */ 17001_ACEOF 17002cat confdefs.h >>conftest.$ac_ext 17003cat >>conftest.$ac_ext <<_ACEOF 17004/* end confdefs.h. */ 17005 17006int 17007main () 17008{ 17009 17010 ; 17011 return 0; 17012} 17013_ACEOF 17014rm -f conftest.$ac_objext conftest$ac_exeext 17015if { (ac_try="$ac_link" 17016case "(($ac_try" in 17017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17018 *) ac_try_echo=$ac_try;; 17019esac 17020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17021 (eval "$ac_link") 2>conftest.er1 17022 ac_status=$? 17023 grep -v '^ *+' conftest.er1 >conftest.err 17024 rm -f conftest.er1 17025 cat conftest.err >&5 17026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17027 (exit $ac_status); } && { 17028 test -z "$ac_c_werror_flag" || 17029 test ! -s conftest.err 17030 } && test -s conftest$ac_exeext && 17031 $as_test_x conftest$ac_exeext; then 17032 17033aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17034}'` 17035# Check for a 64-bit object if we didn't find anything. 17036if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17037}'`; fi 17038else 17039 echo "$as_me: failed program was:" >&5 17040sed 's/^/| /' conftest.$ac_ext >&5 17041 17042 17043fi 17044 17045rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17046 conftest$ac_exeext conftest.$ac_ext 17047if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17048 17049 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17050 # Warning - without using the other run time loading flags, 17051 # -berok will link without error, but may produce a broken library. 17052 no_undefined_flag_GCJ=' ${wl}-bernotok' 17053 allow_undefined_flag_GCJ=' ${wl}-berok' 17054 # Exported symbols can be pulled into shared objects from archives 17055 whole_archive_flag_spec_GCJ='$convenience' 17056 archive_cmds_need_lc_GCJ=yes 17057 # This is similar to how AIX traditionally builds its shared libraries. 17058 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' 17059 fi 17060 fi 17061 ;; 17062 17063 amigaos*) 17064 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)' 17065 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17066 hardcode_minus_L_GCJ=yes 17067 # see comment about different semantics on the GNU ld section 17068 ld_shlibs_GCJ=no 17069 ;; 17070 17071 bsdi[45]*) 17072 export_dynamic_flag_spec_GCJ=-rdynamic 17073 ;; 17074 17075 cygwin* | mingw* | pw32*) 17076 # When not using gcc, we currently assume that we are using 17077 # Microsoft Visual C++. 17078 # hardcode_libdir_flag_spec is actually meaningless, as there is 17079 # no search path for DLLs. 17080 hardcode_libdir_flag_spec_GCJ=' ' 17081 allow_undefined_flag_GCJ=unsupported 17082 # Tell ltmain to make .lib files, not .a files. 17083 libext=lib 17084 # Tell ltmain to make .dll files, not .so files. 17085 shrext_cmds=".dll" 17086 # FIXME: Setting linknames here is a bad hack. 17087 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17088 # The linker will automatically build a .lib file if we build a DLL. 17089 old_archive_From_new_cmds_GCJ='true' 17090 # FIXME: Should let the user specify the lib program. 17091 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 17092 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17093 enable_shared_with_static_runtimes_GCJ=yes 17094 ;; 17095 17096 darwin* | rhapsody*) 17097 case $host_os in 17098 rhapsody* | darwin1.[012]) 17099 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17100 ;; 17101 *) # Darwin 1.3 on 17102 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17103 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17104 else 17105 case ${MACOSX_DEPLOYMENT_TARGET} in 17106 10.[012]) 17107 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17108 ;; 17109 10.*) 17110 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17111 ;; 17112 esac 17113 fi 17114 ;; 17115 esac 17116 archive_cmds_need_lc_GCJ=no 17117 hardcode_direct_GCJ=no 17118 hardcode_automatic_GCJ=yes 17119 hardcode_shlibpath_var_GCJ=unsupported 17120 whole_archive_flag_spec_GCJ='' 17121 link_all_deplibs_GCJ=yes 17122 if test "$GCC" = yes ; then 17123 output_verbose_link_cmd='echo' 17124 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 17125 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17126 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17127 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}' 17128 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}' 17129 else 17130 case $cc_basename in 17131 xlc*) 17132 output_verbose_link_cmd='echo' 17133 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 17134 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17135 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17136 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}' 17137 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}' 17138 ;; 17139 *) 17140 ld_shlibs_GCJ=no 17141 ;; 17142 esac 17143 fi 17144 ;; 17145 17146 dgux*) 17147 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17148 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17149 hardcode_shlibpath_var_GCJ=no 17150 ;; 17151 17152 freebsd1*) 17153 ld_shlibs_GCJ=no 17154 ;; 17155 17156 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17157 # support. Future versions do this automatically, but an explicit c++rt0.o 17158 # does not break anything, and helps significantly (at the cost of a little 17159 # extra space). 17160 freebsd2.2*) 17161 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17162 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17163 hardcode_direct_GCJ=yes 17164 hardcode_shlibpath_var_GCJ=no 17165 ;; 17166 17167 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17168 freebsd2*) 17169 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17170 hardcode_direct_GCJ=yes 17171 hardcode_minus_L_GCJ=yes 17172 hardcode_shlibpath_var_GCJ=no 17173 ;; 17174 17175 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17176 freebsd* | dragonfly*) 17177 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17178 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17179 hardcode_direct_GCJ=yes 17180 hardcode_shlibpath_var_GCJ=no 17181 ;; 17182 17183 hpux9*) 17184 if test "$GCC" = yes; then 17185 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' 17186 else 17187 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' 17188 fi 17189 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17190 hardcode_libdir_separator_GCJ=: 17191 hardcode_direct_GCJ=yes 17192 17193 # hardcode_minus_L: Not really in the search PATH, 17194 # but as the default location of the library. 17195 hardcode_minus_L_GCJ=yes 17196 export_dynamic_flag_spec_GCJ='${wl}-E' 17197 ;; 17198 17199 hpux10*) 17200 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17201 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17202 else 17203 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17204 fi 17205 if test "$with_gnu_ld" = no; then 17206 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17207 hardcode_libdir_separator_GCJ=: 17208 17209 hardcode_direct_GCJ=yes 17210 export_dynamic_flag_spec_GCJ='${wl}-E' 17211 17212 # hardcode_minus_L: Not really in the search PATH, 17213 # but as the default location of the library. 17214 hardcode_minus_L_GCJ=yes 17215 fi 17216 ;; 17217 17218 hpux11*) 17219 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17220 case $host_cpu in 17221 hppa*64*) 17222 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17223 ;; 17224 ia64*) 17225 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17226 ;; 17227 *) 17228 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17229 ;; 17230 esac 17231 else 17232 case $host_cpu in 17233 hppa*64*) 17234 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17235 ;; 17236 ia64*) 17237 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17238 ;; 17239 *) 17240 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17241 ;; 17242 esac 17243 fi 17244 if test "$with_gnu_ld" = no; then 17245 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17246 hardcode_libdir_separator_GCJ=: 17247 17248 case $host_cpu in 17249 hppa*64*|ia64*) 17250 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 17251 hardcode_direct_GCJ=no 17252 hardcode_shlibpath_var_GCJ=no 17253 ;; 17254 *) 17255 hardcode_direct_GCJ=yes 17256 export_dynamic_flag_spec_GCJ='${wl}-E' 17257 17258 # hardcode_minus_L: Not really in the search PATH, 17259 # but as the default location of the library. 17260 hardcode_minus_L_GCJ=yes 17261 ;; 17262 esac 17263 fi 17264 ;; 17265 17266 irix5* | irix6* | nonstopux*) 17267 if test "$GCC" = yes; then 17268 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' 17269 else 17270 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' 17271 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 17272 fi 17273 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17274 hardcode_libdir_separator_GCJ=: 17275 link_all_deplibs_GCJ=yes 17276 ;; 17277 17278 netbsd* | netbsdelf*-gnu) 17279 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17280 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17281 else 17282 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17283 fi 17284 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17285 hardcode_direct_GCJ=yes 17286 hardcode_shlibpath_var_GCJ=no 17287 ;; 17288 17289 newsos6) 17290 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17291 hardcode_direct_GCJ=yes 17292 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17293 hardcode_libdir_separator_GCJ=: 17294 hardcode_shlibpath_var_GCJ=no 17295 ;; 17296 17297 openbsd*) 17298 hardcode_direct_GCJ=yes 17299 hardcode_shlibpath_var_GCJ=no 17300 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17301 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17302 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 17303 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17304 export_dynamic_flag_spec_GCJ='${wl}-E' 17305 else 17306 case $host_os in 17307 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 17308 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17309 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17310 ;; 17311 *) 17312 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17313 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17314 ;; 17315 esac 17316 fi 17317 ;; 17318 17319 os2*) 17320 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17321 hardcode_minus_L_GCJ=yes 17322 allow_undefined_flag_GCJ=unsupported 17323 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' 17324 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 17325 ;; 17326 17327 osf3*) 17328 if test "$GCC" = yes; then 17329 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17330 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' 17331 else 17332 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17333 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' 17334 fi 17335 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17336 hardcode_libdir_separator_GCJ=: 17337 ;; 17338 17339 osf4* | osf5*) # as osf3* with the addition of -msym flag 17340 if test "$GCC" = yes; then 17341 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17342 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' 17343 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17344 else 17345 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17346 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' 17347 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~ 17348 $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' 17349 17350 # Both c and cxx compiler support -rpath directly 17351 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 17352 fi 17353 hardcode_libdir_separator_GCJ=: 17354 ;; 17355 17356 solaris*) 17357 no_undefined_flag_GCJ=' -z text' 17358 if test "$GCC" = yes; then 17359 wlarc='${wl}' 17360 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17361 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17362 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 17363 else 17364 wlarc='' 17365 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17366 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17367 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17368 fi 17369 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17370 hardcode_shlibpath_var_GCJ=no 17371 case $host_os in 17372 solaris2.[0-5] | solaris2.[0-5].*) ;; 17373 *) 17374 # The compiler driver will combine linker options so we 17375 # cannot just pass the convience library names through 17376 # without $wl, iff we do not link with $LD. 17377 # Luckily, gcc supports the same syntax we need for Sun Studio. 17378 # Supported since Solaris 2.6 (maybe 2.5.1?) 17379 case $wlarc in 17380 '') 17381 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 17382 *) 17383 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 17384 esac ;; 17385 esac 17386 link_all_deplibs_GCJ=yes 17387 ;; 17388 17389 sunos4*) 17390 if test "x$host_vendor" = xsequent; then 17391 # Use $CC to link under sequent, because it throws in some extra .o 17392 # files that make .init and .fini sections work. 17393 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17394 else 17395 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17396 fi 17397 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17398 hardcode_direct_GCJ=yes 17399 hardcode_minus_L_GCJ=yes 17400 hardcode_shlibpath_var_GCJ=no 17401 ;; 17402 17403 sysv4) 17404 case $host_vendor in 17405 sni) 17406 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17407 hardcode_direct_GCJ=yes # is this really true??? 17408 ;; 17409 siemens) 17410 ## LD is ld it makes a PLAMLIB 17411 ## CC just makes a GrossModule. 17412 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17413 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 17414 hardcode_direct_GCJ=no 17415 ;; 17416 motorola) 17417 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17418 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 17419 ;; 17420 esac 17421 runpath_var='LD_RUN_PATH' 17422 hardcode_shlibpath_var_GCJ=no 17423 ;; 17424 17425 sysv4.3*) 17426 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17427 hardcode_shlibpath_var_GCJ=no 17428 export_dynamic_flag_spec_GCJ='-Bexport' 17429 ;; 17430 17431 sysv4*MP*) 17432 if test -d /usr/nec; then 17433 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17434 hardcode_shlibpath_var_GCJ=no 17435 runpath_var=LD_RUN_PATH 17436 hardcode_runpath_var=yes 17437 ld_shlibs_GCJ=yes 17438 fi 17439 ;; 17440 17441 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 17442 no_undefined_flag_GCJ='${wl}-z,text' 17443 archive_cmds_need_lc_GCJ=no 17444 hardcode_shlibpath_var_GCJ=no 17445 runpath_var='LD_RUN_PATH' 17446 17447 if test "$GCC" = yes; then 17448 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17449 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17450 else 17451 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17452 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17453 fi 17454 ;; 17455 17456 sysv5* | sco3.2v5* | sco5v6*) 17457 # Note: We can NOT use -z defs as we might desire, because we do not 17458 # link with -lc, and that would cause any symbols used from libc to 17459 # always be unresolved, which means just about no library would 17460 # ever link correctly. If we're not using GNU ld we use -z text 17461 # though, which does catch some bad symbols but isn't as heavy-handed 17462 # as -z defs. 17463 no_undefined_flag_GCJ='${wl}-z,text' 17464 allow_undefined_flag_GCJ='${wl}-z,nodefs' 17465 archive_cmds_need_lc_GCJ=no 17466 hardcode_shlibpath_var_GCJ=no 17467 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 17468 hardcode_libdir_separator_GCJ=':' 17469 link_all_deplibs_GCJ=yes 17470 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 17471 runpath_var='LD_RUN_PATH' 17472 17473 if test "$GCC" = yes; then 17474 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17475 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17476 else 17477 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17478 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17479 fi 17480 ;; 17481 17482 uts4*) 17483 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17484 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17485 hardcode_shlibpath_var_GCJ=no 17486 ;; 17487 17488 *) 17489 ld_shlibs_GCJ=no 17490 ;; 17491 esac 17492 fi 17493 17494{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 17495echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } 17496test "$ld_shlibs_GCJ" = no && can_build_shared=no 17497 17498# 17499# Do we need to explicitly link libc? 17500# 17501case "x$archive_cmds_need_lc_GCJ" in 17502x|xyes) 17503 # Assume -lc should be added 17504 archive_cmds_need_lc_GCJ=yes 17505 17506 if test "$enable_shared" = yes && test "$GCC" = yes; then 17507 case $archive_cmds_GCJ in 17508 *'~'*) 17509 # FIXME: we may have to deal with multi-command sequences. 17510 ;; 17511 '$CC '*) 17512 # Test whether the compiler implicitly links with -lc since on some 17513 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17514 # to ld, don't add -lc before -lgcc. 17515 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 17516echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 17517 $rm conftest* 17518 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17519 17520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17521 (eval $ac_compile) 2>&5 17522 ac_status=$? 17523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17524 (exit $ac_status); } 2>conftest.err; then 17525 soname=conftest 17526 lib=conftest 17527 libobjs=conftest.$ac_objext 17528 deplibs= 17529 wl=$lt_prog_compiler_wl_GCJ 17530 pic_flag=$lt_prog_compiler_pic_GCJ 17531 compiler_flags=-v 17532 linker_flags=-v 17533 verstring= 17534 output_objdir=. 17535 libname=conftest 17536 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 17537 allow_undefined_flag_GCJ= 17538 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 17539 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 17540 ac_status=$? 17541 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17542 (exit $ac_status); } 17543 then 17544 archive_cmds_need_lc_GCJ=no 17545 else 17546 archive_cmds_need_lc_GCJ=yes 17547 fi 17548 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 17549 else 17550 cat conftest.err 1>&5 17551 fi 17552 $rm conftest* 17553 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 17554echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } 17555 ;; 17556 esac 17557 fi 17558 ;; 17559esac 17560 17561{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 17562echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 17563library_names_spec= 17564libname_spec='lib$name' 17565soname_spec= 17566shrext_cmds=".so" 17567postinstall_cmds= 17568postuninstall_cmds= 17569finish_cmds= 17570finish_eval= 17571shlibpath_var= 17572shlibpath_overrides_runpath=unknown 17573version_type=none 17574dynamic_linker="$host_os ld.so" 17575sys_lib_dlsearch_path_spec="/lib /usr/lib" 17576if test "$GCC" = yes; then 17577 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17578 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 17579 # if the path contains ";" then we assume it to be the separator 17580 # otherwise default to the standard path separator (i.e. ":") - it is 17581 # assumed that no part of a normal pathname contains ";" but that should 17582 # okay in the real world where ";" in dirpaths is itself problematic. 17583 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17584 else 17585 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17586 fi 17587else 17588 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17589fi 17590need_lib_prefix=unknown 17591hardcode_into_libs=no 17592 17593# when you set need_version to no, make sure it does not cause -set_version 17594# flags to be left without arguments 17595need_version=unknown 17596 17597case $host_os in 17598aix3*) 17599 version_type=linux 17600 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 17601 shlibpath_var=LIBPATH 17602 17603 # AIX 3 has no versioning support, so we append a major version to the name. 17604 soname_spec='${libname}${release}${shared_ext}$major' 17605 ;; 17606 17607aix4* | aix5*) 17608 version_type=linux 17609 need_lib_prefix=no 17610 need_version=no 17611 hardcode_into_libs=yes 17612 if test "$host_cpu" = ia64; then 17613 # AIX 5 supports IA64 17614 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 17615 shlibpath_var=LD_LIBRARY_PATH 17616 else 17617 # With GCC up to 2.95.x, collect2 would create an import file 17618 # for dependence libraries. The import file would start with 17619 # the line `#! .'. This would cause the generated library to 17620 # depend on `.', always an invalid library. This was fixed in 17621 # development snapshots of GCC prior to 3.0. 17622 case $host_os in 17623 aix4 | aix4.[01] | aix4.[01].*) 17624 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17625 echo ' yes ' 17626 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 17627 : 17628 else 17629 can_build_shared=no 17630 fi 17631 ;; 17632 esac 17633 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 17634 # soname into executable. Probably we can add versioning support to 17635 # collect2, so additional links can be useful in future. 17636 if test "$aix_use_runtimelinking" = yes; then 17637 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17638 # instead of lib<name>.a to let people know that these are not 17639 # typical AIX shared libraries. 17640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17641 else 17642 # We preserve .a as extension for shared libraries through AIX4.2 17643 # and later when we are not doing run time linking. 17644 library_names_spec='${libname}${release}.a $libname.a' 17645 soname_spec='${libname}${release}${shared_ext}$major' 17646 fi 17647 shlibpath_var=LIBPATH 17648 fi 17649 ;; 17650 17651amigaos*) 17652 library_names_spec='$libname.ixlibrary $libname.a' 17653 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17654 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' 17655 ;; 17656 17657beos*) 17658 library_names_spec='${libname}${shared_ext}' 17659 dynamic_linker="$host_os ld.so" 17660 shlibpath_var=LIBRARY_PATH 17661 ;; 17662 17663bsdi[45]*) 17664 version_type=linux 17665 need_version=no 17666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17667 soname_spec='${libname}${release}${shared_ext}$major' 17668 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17669 shlibpath_var=LD_LIBRARY_PATH 17670 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17671 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17672 # the default ld.so.conf also contains /usr/contrib/lib and 17673 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17674 # libtool to hard-code these into programs 17675 ;; 17676 17677cygwin* | mingw* | pw32*) 17678 version_type=windows 17679 shrext_cmds=".dll" 17680 need_version=no 17681 need_lib_prefix=no 17682 17683 case $GCC,$host_os in 17684 yes,cygwin* | yes,mingw* | yes,pw32*) 17685 library_names_spec='$libname.dll.a' 17686 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17687 postinstall_cmds='base_file=`basename \${file}`~ 17688 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 17689 dldir=$destdir/`dirname \$dlpath`~ 17690 test -d \$dldir || mkdir -p \$dldir~ 17691 $install_prog $dir/$dlname \$dldir/$dlname~ 17692 chmod a+x \$dldir/$dlname' 17693 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17694 dlpath=$dir/\$dldll~ 17695 $rm \$dlpath' 17696 shlibpath_overrides_runpath=yes 17697 17698 case $host_os in 17699 cygwin*) 17700 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17701 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17702 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 17703 ;; 17704 mingw*) 17705 # MinGW DLLs use traditional 'lib' prefix 17706 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17707 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17708 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 17709 # It is most probably a Windows format PATH printed by 17710 # mingw gcc, but we are running on Cygwin. Gcc prints its search 17711 # path with ; separators, and with drive letters. We can handle the 17712 # drive letters (cygwin fileutils understands them), so leave them, 17713 # especially as we might pass files found there to a mingw objdump, 17714 # which wouldn't understand a cygwinified path. Ahh. 17715 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17716 else 17717 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17718 fi 17719 ;; 17720 pw32*) 17721 # pw32 DLLs use 'pw' prefix rather than 'lib' 17722 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17723 ;; 17724 esac 17725 ;; 17726 17727 *) 17728 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 17729 ;; 17730 esac 17731 dynamic_linker='Win32 ld.exe' 17732 # FIXME: first we should search . and the directory the executable is in 17733 shlibpath_var=PATH 17734 ;; 17735 17736darwin* | rhapsody*) 17737 dynamic_linker="$host_os dyld" 17738 version_type=darwin 17739 need_lib_prefix=no 17740 need_version=no 17741 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 17742 soname_spec='${libname}${release}${major}$shared_ext' 17743 shlibpath_overrides_runpath=yes 17744 shlibpath_var=DYLD_LIBRARY_PATH 17745 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17746 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 17747 if test "$GCC" = yes; then 17748 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"` 17749 else 17750 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 17751 fi 17752 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17753 ;; 17754 17755dgux*) 17756 version_type=linux 17757 need_lib_prefix=no 17758 need_version=no 17759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 17760 soname_spec='${libname}${release}${shared_ext}$major' 17761 shlibpath_var=LD_LIBRARY_PATH 17762 ;; 17763 17764freebsd1*) 17765 dynamic_linker=no 17766 ;; 17767 17768freebsd* | dragonfly*) 17769 # DragonFly does not have aout. When/if they implement a new 17770 # versioning mechanism, adjust this. 17771 if test -x /usr/bin/objformat; then 17772 objformat=`/usr/bin/objformat` 17773 else 17774 case $host_os in 17775 freebsd[123]*) objformat=aout ;; 17776 *) objformat=elf ;; 17777 esac 17778 fi 17779 version_type=freebsd-$objformat 17780 case $version_type in 17781 freebsd-elf*) 17782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17783 need_version=no 17784 need_lib_prefix=no 17785 ;; 17786 freebsd-*) 17787 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 17788 need_version=yes 17789 ;; 17790 esac 17791 shlibpath_var=LD_LIBRARY_PATH 17792 case $host_os in 17793 freebsd2*) 17794 shlibpath_overrides_runpath=yes 17795 ;; 17796 freebsd3.[01]* | freebsdelf3.[01]*) 17797 shlibpath_overrides_runpath=yes 17798 hardcode_into_libs=yes 17799 ;; 17800 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17801 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17802 shlibpath_overrides_runpath=no 17803 hardcode_into_libs=yes 17804 ;; 17805 freebsd*) # from 4.6 on 17806 shlibpath_overrides_runpath=yes 17807 hardcode_into_libs=yes 17808 ;; 17809 esac 17810 ;; 17811 17812gnu*) 17813 version_type=linux 17814 need_lib_prefix=no 17815 need_version=no 17816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17817 soname_spec='${libname}${release}${shared_ext}$major' 17818 shlibpath_var=LD_LIBRARY_PATH 17819 hardcode_into_libs=yes 17820 ;; 17821 17822hpux9* | hpux10* | hpux11*) 17823 # Give a soname corresponding to the major version so that dld.sl refuses to 17824 # link against other versions. 17825 version_type=sunos 17826 need_lib_prefix=no 17827 need_version=no 17828 case $host_cpu in 17829 ia64*) 17830 shrext_cmds='.so' 17831 hardcode_into_libs=yes 17832 dynamic_linker="$host_os dld.so" 17833 shlibpath_var=LD_LIBRARY_PATH 17834 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17836 soname_spec='${libname}${release}${shared_ext}$major' 17837 if test "X$HPUX_IA64_MODE" = X32; then 17838 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17839 else 17840 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17841 fi 17842 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17843 ;; 17844 hppa*64*) 17845 shrext_cmds='.sl' 17846 hardcode_into_libs=yes 17847 dynamic_linker="$host_os dld.sl" 17848 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17849 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17851 soname_spec='${libname}${release}${shared_ext}$major' 17852 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17853 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17854 ;; 17855 *) 17856 shrext_cmds='.sl' 17857 dynamic_linker="$host_os dld.sl" 17858 shlibpath_var=SHLIB_PATH 17859 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17861 soname_spec='${libname}${release}${shared_ext}$major' 17862 ;; 17863 esac 17864 # HP-UX runs *really* slowly unless shared libraries are mode 555. 17865 postinstall_cmds='chmod 555 $lib' 17866 ;; 17867 17868interix3*) 17869 version_type=linux 17870 need_lib_prefix=no 17871 need_version=no 17872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17873 soname_spec='${libname}${release}${shared_ext}$major' 17874 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17875 shlibpath_var=LD_LIBRARY_PATH 17876 shlibpath_overrides_runpath=no 17877 hardcode_into_libs=yes 17878 ;; 17879 17880irix5* | irix6* | nonstopux*) 17881 case $host_os in 17882 nonstopux*) version_type=nonstopux ;; 17883 *) 17884 if test "$lt_cv_prog_gnu_ld" = yes; then 17885 version_type=linux 17886 else 17887 version_type=irix 17888 fi ;; 17889 esac 17890 need_lib_prefix=no 17891 need_version=no 17892 soname_spec='${libname}${release}${shared_ext}$major' 17893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 17894 case $host_os in 17895 irix5* | nonstopux*) 17896 libsuff= shlibsuff= 17897 ;; 17898 *) 17899 case $LD in # libtool.m4 will add one of these switches to LD 17900 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17901 libsuff= shlibsuff= libmagic=32-bit;; 17902 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17903 libsuff=32 shlibsuff=N32 libmagic=N32;; 17904 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17905 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17906 *) libsuff= shlibsuff= libmagic=never-match;; 17907 esac 17908 ;; 17909 esac 17910 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17911 shlibpath_overrides_runpath=no 17912 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 17913 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 17914 hardcode_into_libs=yes 17915 ;; 17916 17917# No shared lib support for Linux oldld, aout, or coff. 17918linux*oldld* | linux*aout* | linux*coff*) 17919 dynamic_linker=no 17920 ;; 17921 17922# This must be Linux ELF. 17923linux* | k*bsd*-gnu) 17924 version_type=linux 17925 need_lib_prefix=no 17926 need_version=no 17927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17928 soname_spec='${libname}${release}${shared_ext}$major' 17929 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17930 shlibpath_var=LD_LIBRARY_PATH 17931 shlibpath_overrides_runpath=no 17932 # This implies no fast_install, which is unacceptable. 17933 # Some rework will be needed to allow for fast_install 17934 # before this can be enabled. 17935 hardcode_into_libs=yes 17936 17937 # Append ld.so.conf contents to the search path 17938 if test -f /etc/ld.so.conf; then 17939 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 17940 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 17941 fi 17942 17943 # We used to test for /lib/ld.so.1 and disable shared libraries on 17944 # powerpc, because MkLinux only supported shared libraries with the 17945 # GNU dynamic linker. Since this was broken with cross compilers, 17946 # most powerpc-linux boxes support dynamic linking these days and 17947 # people can always --disable-shared, the test was removed, and we 17948 # assume the GNU/Linux dynamic linker is in use. 17949 dynamic_linker='GNU/Linux ld.so' 17950 ;; 17951 17952netbsdelf*-gnu) 17953 version_type=linux 17954 need_lib_prefix=no 17955 need_version=no 17956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17957 soname_spec='${libname}${release}${shared_ext}$major' 17958 shlibpath_var=LD_LIBRARY_PATH 17959 shlibpath_overrides_runpath=no 17960 hardcode_into_libs=yes 17961 dynamic_linker='NetBSD ld.elf_so' 17962 ;; 17963 17964netbsd*) 17965 version_type=sunos 17966 need_lib_prefix=no 17967 need_version=no 17968 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17970 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17971 dynamic_linker='NetBSD (a.out) ld.so' 17972 else 17973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17974 soname_spec='${libname}${release}${shared_ext}$major' 17975 dynamic_linker='NetBSD ld.elf_so' 17976 fi 17977 shlibpath_var=LD_LIBRARY_PATH 17978 shlibpath_overrides_runpath=yes 17979 hardcode_into_libs=yes 17980 ;; 17981 17982newsos6) 17983 version_type=linux 17984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17985 shlibpath_var=LD_LIBRARY_PATH 17986 shlibpath_overrides_runpath=yes 17987 ;; 17988 17989nto-qnx*) 17990 version_type=linux 17991 need_lib_prefix=no 17992 need_version=no 17993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17994 soname_spec='${libname}${release}${shared_ext}$major' 17995 shlibpath_var=LD_LIBRARY_PATH 17996 shlibpath_overrides_runpath=yes 17997 ;; 17998 17999openbsd*) 18000 version_type=sunos 18001 sys_lib_dlsearch_path_spec="/usr/lib" 18002 need_lib_prefix=no 18003 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18004 case $host_os in 18005 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18006 *) need_version=no ;; 18007 esac 18008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18009 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18010 shlibpath_var=LD_LIBRARY_PATH 18011 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18012 case $host_os in 18013 openbsd2.[89] | openbsd2.[89].*) 18014 shlibpath_overrides_runpath=no 18015 ;; 18016 *) 18017 shlibpath_overrides_runpath=yes 18018 ;; 18019 esac 18020 else 18021 shlibpath_overrides_runpath=yes 18022 fi 18023 ;; 18024 18025os2*) 18026 libname_spec='$name' 18027 shrext_cmds=".dll" 18028 need_lib_prefix=no 18029 library_names_spec='$libname${shared_ext} $libname.a' 18030 dynamic_linker='OS/2 ld.exe' 18031 shlibpath_var=LIBPATH 18032 ;; 18033 18034osf3* | osf4* | osf5*) 18035 version_type=osf 18036 need_lib_prefix=no 18037 need_version=no 18038 soname_spec='${libname}${release}${shared_ext}$major' 18039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18040 shlibpath_var=LD_LIBRARY_PATH 18041 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18042 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18043 ;; 18044 18045solaris*) 18046 version_type=linux 18047 need_lib_prefix=no 18048 need_version=no 18049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18050 soname_spec='${libname}${release}${shared_ext}$major' 18051 shlibpath_var=LD_LIBRARY_PATH 18052 shlibpath_overrides_runpath=yes 18053 hardcode_into_libs=yes 18054 # ldd complains unless libraries are executable 18055 postinstall_cmds='chmod +x $lib' 18056 ;; 18057 18058sunos4*) 18059 version_type=sunos 18060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18061 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18062 shlibpath_var=LD_LIBRARY_PATH 18063 shlibpath_overrides_runpath=yes 18064 if test "$with_gnu_ld" = yes; then 18065 need_lib_prefix=no 18066 fi 18067 need_version=yes 18068 ;; 18069 18070sysv4 | sysv4.3*) 18071 version_type=linux 18072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18073 soname_spec='${libname}${release}${shared_ext}$major' 18074 shlibpath_var=LD_LIBRARY_PATH 18075 case $host_vendor in 18076 sni) 18077 shlibpath_overrides_runpath=no 18078 need_lib_prefix=no 18079 export_dynamic_flag_spec='${wl}-Blargedynsym' 18080 runpath_var=LD_RUN_PATH 18081 ;; 18082 siemens) 18083 need_lib_prefix=no 18084 ;; 18085 motorola) 18086 need_lib_prefix=no 18087 need_version=no 18088 shlibpath_overrides_runpath=no 18089 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18090 ;; 18091 esac 18092 ;; 18093 18094sysv4*MP*) 18095 if test -d /usr/nec ;then 18096 version_type=linux 18097 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18098 soname_spec='$libname${shared_ext}.$major' 18099 shlibpath_var=LD_LIBRARY_PATH 18100 fi 18101 ;; 18102 18103sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18104 version_type=freebsd-elf 18105 need_lib_prefix=no 18106 need_version=no 18107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18108 soname_spec='${libname}${release}${shared_ext}$major' 18109 shlibpath_var=LD_LIBRARY_PATH 18110 hardcode_into_libs=yes 18111 if test "$with_gnu_ld" = yes; then 18112 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18113 shlibpath_overrides_runpath=no 18114 else 18115 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18116 shlibpath_overrides_runpath=yes 18117 case $host_os in 18118 sco3.2v5*) 18119 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18120 ;; 18121 esac 18122 fi 18123 sys_lib_dlsearch_path_spec='/usr/lib' 18124 ;; 18125 18126uts4*) 18127 version_type=linux 18128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18129 soname_spec='${libname}${release}${shared_ext}$major' 18130 shlibpath_var=LD_LIBRARY_PATH 18131 ;; 18132 18133*) 18134 dynamic_linker=no 18135 ;; 18136esac 18137{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18138echo "${ECHO_T}$dynamic_linker" >&6; } 18139test "$dynamic_linker" = no && can_build_shared=no 18140 18141variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18142if test "$GCC" = yes; then 18143 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18144fi 18145 18146{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18147echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 18148hardcode_action_GCJ= 18149if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18150 test -n "$runpath_var_GCJ" || \ 18151 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 18152 18153 # We can hardcode non-existant directories. 18154 if test "$hardcode_direct_GCJ" != no && 18155 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18156 # have to relink, otherwise we might link with an installed library 18157 # when we should be linking with a yet-to-be-installed one 18158 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 18159 test "$hardcode_minus_L_GCJ" != no; then 18160 # Linking always hardcodes the temporary library directory. 18161 hardcode_action_GCJ=relink 18162 else 18163 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18164 hardcode_action_GCJ=immediate 18165 fi 18166else 18167 # We cannot hardcode anything, or else we can only hardcode existing 18168 # directories. 18169 hardcode_action_GCJ=unsupported 18170fi 18171{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 18172echo "${ECHO_T}$hardcode_action_GCJ" >&6; } 18173 18174if test "$hardcode_action_GCJ" = relink; then 18175 # Fast installation is not supported 18176 enable_fast_install=no 18177elif test "$shlibpath_overrides_runpath" = yes || 18178 test "$enable_shared" = no; then 18179 # Fast installation is not necessary 18180 enable_fast_install=needless 18181fi 18182 18183 18184# The else clause should only fire when bootstrapping the 18185# libtool distribution, otherwise you forgot to ship ltmain.sh 18186# with your package, and you will get complaints that there are 18187# no rules to generate ltmain.sh. 18188if test -f "$ltmain"; then 18189 # See if we are running on zsh, and set the options which allow our commands through 18190 # without removal of \ escapes. 18191 if test -n "${ZSH_VERSION+set}" ; then 18192 setopt NO_GLOB_SUBST 18193 fi 18194 # Now quote all the things that may contain metacharacters while being 18195 # careful not to overquote the AC_SUBSTed values. We take copies of the 18196 # variables and quote the copies for generation of the libtool script. 18197 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18198 SED SHELL STRIP \ 18199 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18200 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18201 deplibs_check_method reload_flag reload_cmds need_locks \ 18202 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18203 lt_cv_sys_global_symbol_to_c_name_address \ 18204 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18205 old_postinstall_cmds old_postuninstall_cmds \ 18206 compiler_GCJ \ 18207 CC_GCJ \ 18208 LD_GCJ \ 18209 lt_prog_compiler_wl_GCJ \ 18210 lt_prog_compiler_pic_GCJ \ 18211 lt_prog_compiler_static_GCJ \ 18212 lt_prog_compiler_no_builtin_flag_GCJ \ 18213 export_dynamic_flag_spec_GCJ \ 18214 thread_safe_flag_spec_GCJ \ 18215 whole_archive_flag_spec_GCJ \ 18216 enable_shared_with_static_runtimes_GCJ \ 18217 old_archive_cmds_GCJ \ 18218 old_archive_from_new_cmds_GCJ \ 18219 predep_objects_GCJ \ 18220 postdep_objects_GCJ \ 18221 predeps_GCJ \ 18222 postdeps_GCJ \ 18223 compiler_lib_search_path_GCJ \ 18224 archive_cmds_GCJ \ 18225 archive_expsym_cmds_GCJ \ 18226 postinstall_cmds_GCJ \ 18227 postuninstall_cmds_GCJ \ 18228 old_archive_from_expsyms_cmds_GCJ \ 18229 allow_undefined_flag_GCJ \ 18230 no_undefined_flag_GCJ \ 18231 export_symbols_cmds_GCJ \ 18232 hardcode_libdir_flag_spec_GCJ \ 18233 hardcode_libdir_flag_spec_ld_GCJ \ 18234 hardcode_libdir_separator_GCJ \ 18235 hardcode_automatic_GCJ \ 18236 module_cmds_GCJ \ 18237 module_expsym_cmds_GCJ \ 18238 lt_cv_prog_compiler_c_o_GCJ \ 18239 exclude_expsyms_GCJ \ 18240 include_expsyms_GCJ; do 18241 18242 case $var in 18243 old_archive_cmds_GCJ | \ 18244 old_archive_from_new_cmds_GCJ | \ 18245 archive_cmds_GCJ | \ 18246 archive_expsym_cmds_GCJ | \ 18247 module_cmds_GCJ | \ 18248 module_expsym_cmds_GCJ | \ 18249 old_archive_from_expsyms_cmds_GCJ | \ 18250 export_symbols_cmds_GCJ | \ 18251 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18252 postinstall_cmds | postuninstall_cmds | \ 18253 old_postinstall_cmds | old_postuninstall_cmds | \ 18254 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18255 # Double-quote double-evaled strings. 18256 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18257 ;; 18258 *) 18259 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18260 ;; 18261 esac 18262 done 18263 18264 case $lt_echo in 18265 *'\$0 --fallback-echo"') 18266 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18267 ;; 18268 esac 18269 18270cfgfile="$ofile" 18271 18272 cat <<__EOF__ >> "$cfgfile" 18273# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18274 18275# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18276 18277# Shell to use when invoking shell scripts. 18278SHELL=$lt_SHELL 18279 18280# Whether or not to build shared libraries. 18281build_libtool_libs=$enable_shared 18282 18283# Whether or not to build static libraries. 18284build_old_libs=$enable_static 18285 18286# Whether or not to add -lc for building shared libraries. 18287build_libtool_need_lc=$archive_cmds_need_lc_GCJ 18288 18289# Whether or not to disallow shared libs when runtime libs are static 18290allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 18291 18292# Whether or not to optimize for fast installation. 18293fast_install=$enable_fast_install 18294 18295# The host system. 18296host_alias=$host_alias 18297host=$host 18298host_os=$host_os 18299 18300# The build system. 18301build_alias=$build_alias 18302build=$build 18303build_os=$build_os 18304 18305# An echo program that does not interpret backslashes. 18306echo=$lt_echo 18307 18308# The archiver. 18309AR=$lt_AR 18310AR_FLAGS=$lt_AR_FLAGS 18311 18312# A C compiler. 18313LTCC=$lt_LTCC 18314 18315# LTCC compiler flags. 18316LTCFLAGS=$lt_LTCFLAGS 18317 18318# A language-specific compiler. 18319CC=$lt_compiler_GCJ 18320 18321# Is the compiler the GNU C compiler? 18322with_gcc=$GCC_GCJ 18323 18324# An ERE matcher. 18325EGREP=$lt_EGREP 18326 18327# The linker used to build libraries. 18328LD=$lt_LD_GCJ 18329 18330# Whether we need hard or soft links. 18331LN_S=$lt_LN_S 18332 18333# A BSD-compatible nm program. 18334NM=$lt_NM 18335 18336# A symbol stripping program 18337STRIP=$lt_STRIP 18338 18339# Used to examine libraries when file_magic_cmd begins "file" 18340MAGIC_CMD=$MAGIC_CMD 18341 18342# Used on cygwin: DLL creation program. 18343DLLTOOL="$DLLTOOL" 18344 18345# Used on cygwin: object dumper. 18346OBJDUMP="$OBJDUMP" 18347 18348# Used on cygwin: assembler. 18349AS="$AS" 18350 18351# The name of the directory that contains temporary libtool files. 18352objdir=$objdir 18353 18354# How to create reloadable object files. 18355reload_flag=$lt_reload_flag 18356reload_cmds=$lt_reload_cmds 18357 18358# How to pass a linker flag through the compiler. 18359wl=$lt_lt_prog_compiler_wl_GCJ 18360 18361# Object file suffix (normally "o"). 18362objext="$ac_objext" 18363 18364# Old archive suffix (normally "a"). 18365libext="$libext" 18366 18367# Shared library suffix (normally ".so"). 18368shrext_cmds='$shrext_cmds' 18369 18370# Executable file suffix (normally ""). 18371exeext="$exeext" 18372 18373# Additional compiler flags for building library objects. 18374pic_flag=$lt_lt_prog_compiler_pic_GCJ 18375pic_mode=$pic_mode 18376 18377# What is the maximum length of a command? 18378max_cmd_len=$lt_cv_sys_max_cmd_len 18379 18380# Does compiler simultaneously support -c and -o options? 18381compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 18382 18383# Must we lock files when doing compilation? 18384need_locks=$lt_need_locks 18385 18386# Do we need the lib prefix for modules? 18387need_lib_prefix=$need_lib_prefix 18388 18389# Do we need a version for libraries? 18390need_version=$need_version 18391 18392# Whether dlopen is supported. 18393dlopen_support=$enable_dlopen 18394 18395# Whether dlopen of programs is supported. 18396dlopen_self=$enable_dlopen_self 18397 18398# Whether dlopen of statically linked programs is supported. 18399dlopen_self_static=$enable_dlopen_self_static 18400 18401# Compiler flag to prevent dynamic linking. 18402link_static_flag=$lt_lt_prog_compiler_static_GCJ 18403 18404# Compiler flag to turn off builtin functions. 18405no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 18406 18407# Compiler flag to allow reflexive dlopens. 18408export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 18409 18410# Compiler flag to generate shared objects directly from archives. 18411whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 18412 18413# Compiler flag to generate thread-safe objects. 18414thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 18415 18416# Library versioning type. 18417version_type=$version_type 18418 18419# Format of library name prefix. 18420libname_spec=$lt_libname_spec 18421 18422# List of archive names. First name is the real one, the rest are links. 18423# The last name is the one that the linker finds with -lNAME. 18424library_names_spec=$lt_library_names_spec 18425 18426# The coded name of the library, if different from the real name. 18427soname_spec=$lt_soname_spec 18428 18429# Commands used to build and install an old-style archive. 18430RANLIB=$lt_RANLIB 18431old_archive_cmds=$lt_old_archive_cmds_GCJ 18432old_postinstall_cmds=$lt_old_postinstall_cmds 18433old_postuninstall_cmds=$lt_old_postuninstall_cmds 18434 18435# Create an old-style archive from a shared archive. 18436old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 18437 18438# Create a temporary old-style archive to link instead of a shared archive. 18439old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 18440 18441# Commands used to build and install a shared archive. 18442archive_cmds=$lt_archive_cmds_GCJ 18443archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 18444postinstall_cmds=$lt_postinstall_cmds 18445postuninstall_cmds=$lt_postuninstall_cmds 18446 18447# Commands used to build a loadable module (assumed same as above if empty) 18448module_cmds=$lt_module_cmds_GCJ 18449module_expsym_cmds=$lt_module_expsym_cmds_GCJ 18450 18451# Commands to strip libraries. 18452old_striplib=$lt_old_striplib 18453striplib=$lt_striplib 18454 18455# Dependencies to place before the objects being linked to create a 18456# shared library. 18457predep_objects=$lt_predep_objects_GCJ 18458 18459# Dependencies to place after the objects being linked to create a 18460# shared library. 18461postdep_objects=$lt_postdep_objects_GCJ 18462 18463# Dependencies to place before the objects being linked to create a 18464# shared library. 18465predeps=$lt_predeps_GCJ 18466 18467# Dependencies to place after the objects being linked to create a 18468# shared library. 18469postdeps=$lt_postdeps_GCJ 18470 18471# The library search path used internally by the compiler when linking 18472# a shared library. 18473compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 18474 18475# Method to check whether dependent libraries are shared objects. 18476deplibs_check_method=$lt_deplibs_check_method 18477 18478# Command to use when deplibs_check_method == file_magic. 18479file_magic_cmd=$lt_file_magic_cmd 18480 18481# Flag that allows shared libraries with undefined symbols to be built. 18482allow_undefined_flag=$lt_allow_undefined_flag_GCJ 18483 18484# Flag that forces no undefined symbols. 18485no_undefined_flag=$lt_no_undefined_flag_GCJ 18486 18487# Commands used to finish a libtool library installation in a directory. 18488finish_cmds=$lt_finish_cmds 18489 18490# Same as above, but a single script fragment to be evaled but not shown. 18491finish_eval=$lt_finish_eval 18492 18493# Take the output of nm and produce a listing of raw symbols and C names. 18494global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18495 18496# Transform the output of nm in a proper C declaration 18497global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18498 18499# Transform the output of nm in a C name address pair 18500global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18501 18502# This is the shared library runtime path variable. 18503runpath_var=$runpath_var 18504 18505# This is the shared library path variable. 18506shlibpath_var=$shlibpath_var 18507 18508# Is shlibpath searched before the hard-coded library search path? 18509shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18510 18511# How to hardcode a shared library path into an executable. 18512hardcode_action=$hardcode_action_GCJ 18513 18514# Whether we should hardcode library paths into libraries. 18515hardcode_into_libs=$hardcode_into_libs 18516 18517# Flag to hardcode \$libdir into a binary during linking. 18518# This must work even if \$libdir does not exist. 18519hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 18520 18521# If ld is used when linking, flag to hardcode \$libdir into 18522# a binary during linking. This must work even if \$libdir does 18523# not exist. 18524hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 18525 18526# Whether we need a single -rpath flag with a separated argument. 18527hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 18528 18529# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18530# resulting binary. 18531hardcode_direct=$hardcode_direct_GCJ 18532 18533# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18534# resulting binary. 18535hardcode_minus_L=$hardcode_minus_L_GCJ 18536 18537# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18538# the resulting binary. 18539hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 18540 18541# Set to yes if building a shared library automatically hardcodes DIR into the library 18542# and all subsequent libraries and executables linked against it. 18543hardcode_automatic=$hardcode_automatic_GCJ 18544 18545# Variables whose values should be saved in libtool wrapper scripts and 18546# restored at relink time. 18547variables_saved_for_relink="$variables_saved_for_relink" 18548 18549# Whether libtool must link a program against all its dependency libraries. 18550link_all_deplibs=$link_all_deplibs_GCJ 18551 18552# Compile-time system search path for libraries 18553sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18554 18555# Run-time system search path for libraries 18556sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18557 18558# Fix the shell variable \$srcfile for the compiler. 18559fix_srcfile_path="$fix_srcfile_path_GCJ" 18560 18561# Set to yes if exported symbols are required. 18562always_export_symbols=$always_export_symbols_GCJ 18563 18564# The commands to list exported symbols. 18565export_symbols_cmds=$lt_export_symbols_cmds_GCJ 18566 18567# The commands to extract the exported symbol list from a shared archive. 18568extract_expsyms_cmds=$lt_extract_expsyms_cmds 18569 18570# Symbols that should not be listed in the preloaded symbols. 18571exclude_expsyms=$lt_exclude_expsyms_GCJ 18572 18573# Symbols that must always be exported. 18574include_expsyms=$lt_include_expsyms_GCJ 18575 18576# ### END LIBTOOL TAG CONFIG: $tagname 18577 18578__EOF__ 18579 18580 18581else 18582 # If there is no Makefile yet, we rely on a make rule to execute 18583 # `config.status --recheck' to rerun these tests and create the 18584 # libtool script then. 18585 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18586 if test -f "$ltmain_in"; then 18587 test -f Makefile && make "$ltmain" 18588 fi 18589fi 18590 18591 18592ac_ext=c 18593ac_cpp='$CPP $CPPFLAGS' 18594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18596ac_compiler_gnu=$ac_cv_c_compiler_gnu 18597 18598CC="$lt_save_CC" 18599 18600 else 18601 tagname="" 18602 fi 18603 ;; 18604 18605 RC) 18606 18607 18608# Source file extension for RC test sources. 18609ac_ext=rc 18610 18611# Object file extension for compiled RC test sources. 18612objext=o 18613objext_RC=$objext 18614 18615# Code to be used in simple compile tests 18616lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 18617 18618# Code to be used in simple link tests 18619lt_simple_link_test_code="$lt_simple_compile_test_code" 18620 18621# ltmain only uses $CC for tagged configurations so make sure $CC is set. 18622 18623# If no C compiler was specified, use CC. 18624LTCC=${LTCC-"$CC"} 18625 18626# If no C compiler flags were specified, use CFLAGS. 18627LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 18628 18629# Allow CC to be a program name with arguments. 18630compiler=$CC 18631 18632 18633# save warnings/boilerplate of simple test code 18634ac_outfile=conftest.$ac_objext 18635printf "$lt_simple_compile_test_code" >conftest.$ac_ext 18636eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18637_lt_compiler_boilerplate=`cat conftest.err` 18638$rm conftest* 18639 18640ac_outfile=conftest.$ac_objext 18641printf "$lt_simple_link_test_code" >conftest.$ac_ext 18642eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18643_lt_linker_boilerplate=`cat conftest.err` 18644$rm conftest* 18645 18646 18647# Allow CC to be a program name with arguments. 18648lt_save_CC="$CC" 18649CC=${RC-"windres"} 18650compiler=$CC 18651compiler_RC=$CC 18652for cc_temp in $compiler""; do 18653 case $cc_temp in 18654 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18655 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18656 \-*) ;; 18657 *) break;; 18658 esac 18659done 18660cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 18661 18662lt_cv_prog_compiler_c_o_RC=yes 18663 18664# The else clause should only fire when bootstrapping the 18665# libtool distribution, otherwise you forgot to ship ltmain.sh 18666# with your package, and you will get complaints that there are 18667# no rules to generate ltmain.sh. 18668if test -f "$ltmain"; then 18669 # See if we are running on zsh, and set the options which allow our commands through 18670 # without removal of \ escapes. 18671 if test -n "${ZSH_VERSION+set}" ; then 18672 setopt NO_GLOB_SUBST 18673 fi 18674 # Now quote all the things that may contain metacharacters while being 18675 # careful not to overquote the AC_SUBSTed values. We take copies of the 18676 # variables and quote the copies for generation of the libtool script. 18677 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18678 SED SHELL STRIP \ 18679 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18680 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18681 deplibs_check_method reload_flag reload_cmds need_locks \ 18682 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18683 lt_cv_sys_global_symbol_to_c_name_address \ 18684 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18685 old_postinstall_cmds old_postuninstall_cmds \ 18686 compiler_RC \ 18687 CC_RC \ 18688 LD_RC \ 18689 lt_prog_compiler_wl_RC \ 18690 lt_prog_compiler_pic_RC \ 18691 lt_prog_compiler_static_RC \ 18692 lt_prog_compiler_no_builtin_flag_RC \ 18693 export_dynamic_flag_spec_RC \ 18694 thread_safe_flag_spec_RC \ 18695 whole_archive_flag_spec_RC \ 18696 enable_shared_with_static_runtimes_RC \ 18697 old_archive_cmds_RC \ 18698 old_archive_from_new_cmds_RC \ 18699 predep_objects_RC \ 18700 postdep_objects_RC \ 18701 predeps_RC \ 18702 postdeps_RC \ 18703 compiler_lib_search_path_RC \ 18704 archive_cmds_RC \ 18705 archive_expsym_cmds_RC \ 18706 postinstall_cmds_RC \ 18707 postuninstall_cmds_RC \ 18708 old_archive_from_expsyms_cmds_RC \ 18709 allow_undefined_flag_RC \ 18710 no_undefined_flag_RC \ 18711 export_symbols_cmds_RC \ 18712 hardcode_libdir_flag_spec_RC \ 18713 hardcode_libdir_flag_spec_ld_RC \ 18714 hardcode_libdir_separator_RC \ 18715 hardcode_automatic_RC \ 18716 module_cmds_RC \ 18717 module_expsym_cmds_RC \ 18718 lt_cv_prog_compiler_c_o_RC \ 18719 exclude_expsyms_RC \ 18720 include_expsyms_RC; do 18721 18722 case $var in 18723 old_archive_cmds_RC | \ 18724 old_archive_from_new_cmds_RC | \ 18725 archive_cmds_RC | \ 18726 archive_expsym_cmds_RC | \ 18727 module_cmds_RC | \ 18728 module_expsym_cmds_RC | \ 18729 old_archive_from_expsyms_cmds_RC | \ 18730 export_symbols_cmds_RC | \ 18731 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18732 postinstall_cmds | postuninstall_cmds | \ 18733 old_postinstall_cmds | old_postuninstall_cmds | \ 18734 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18735 # Double-quote double-evaled strings. 18736 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18737 ;; 18738 *) 18739 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18740 ;; 18741 esac 18742 done 18743 18744 case $lt_echo in 18745 *'\$0 --fallback-echo"') 18746 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18747 ;; 18748 esac 18749 18750cfgfile="$ofile" 18751 18752 cat <<__EOF__ >> "$cfgfile" 18753# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18754 18755# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18756 18757# Shell to use when invoking shell scripts. 18758SHELL=$lt_SHELL 18759 18760# Whether or not to build shared libraries. 18761build_libtool_libs=$enable_shared 18762 18763# Whether or not to build static libraries. 18764build_old_libs=$enable_static 18765 18766# Whether or not to add -lc for building shared libraries. 18767build_libtool_need_lc=$archive_cmds_need_lc_RC 18768 18769# Whether or not to disallow shared libs when runtime libs are static 18770allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 18771 18772# Whether or not to optimize for fast installation. 18773fast_install=$enable_fast_install 18774 18775# The host system. 18776host_alias=$host_alias 18777host=$host 18778host_os=$host_os 18779 18780# The build system. 18781build_alias=$build_alias 18782build=$build 18783build_os=$build_os 18784 18785# An echo program that does not interpret backslashes. 18786echo=$lt_echo 18787 18788# The archiver. 18789AR=$lt_AR 18790AR_FLAGS=$lt_AR_FLAGS 18791 18792# A C compiler. 18793LTCC=$lt_LTCC 18794 18795# LTCC compiler flags. 18796LTCFLAGS=$lt_LTCFLAGS 18797 18798# A language-specific compiler. 18799CC=$lt_compiler_RC 18800 18801# Is the compiler the GNU C compiler? 18802with_gcc=$GCC_RC 18803 18804# An ERE matcher. 18805EGREP=$lt_EGREP 18806 18807# The linker used to build libraries. 18808LD=$lt_LD_RC 18809 18810# Whether we need hard or soft links. 18811LN_S=$lt_LN_S 18812 18813# A BSD-compatible nm program. 18814NM=$lt_NM 18815 18816# A symbol stripping program 18817STRIP=$lt_STRIP 18818 18819# Used to examine libraries when file_magic_cmd begins "file" 18820MAGIC_CMD=$MAGIC_CMD 18821 18822# Used on cygwin: DLL creation program. 18823DLLTOOL="$DLLTOOL" 18824 18825# Used on cygwin: object dumper. 18826OBJDUMP="$OBJDUMP" 18827 18828# Used on cygwin: assembler. 18829AS="$AS" 18830 18831# The name of the directory that contains temporary libtool files. 18832objdir=$objdir 18833 18834# How to create reloadable object files. 18835reload_flag=$lt_reload_flag 18836reload_cmds=$lt_reload_cmds 18837 18838# How to pass a linker flag through the compiler. 18839wl=$lt_lt_prog_compiler_wl_RC 18840 18841# Object file suffix (normally "o"). 18842objext="$ac_objext" 18843 18844# Old archive suffix (normally "a"). 18845libext="$libext" 18846 18847# Shared library suffix (normally ".so"). 18848shrext_cmds='$shrext_cmds' 18849 18850# Executable file suffix (normally ""). 18851exeext="$exeext" 18852 18853# Additional compiler flags for building library objects. 18854pic_flag=$lt_lt_prog_compiler_pic_RC 18855pic_mode=$pic_mode 18856 18857# What is the maximum length of a command? 18858max_cmd_len=$lt_cv_sys_max_cmd_len 18859 18860# Does compiler simultaneously support -c and -o options? 18861compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 18862 18863# Must we lock files when doing compilation? 18864need_locks=$lt_need_locks 18865 18866# Do we need the lib prefix for modules? 18867need_lib_prefix=$need_lib_prefix 18868 18869# Do we need a version for libraries? 18870need_version=$need_version 18871 18872# Whether dlopen is supported. 18873dlopen_support=$enable_dlopen 18874 18875# Whether dlopen of programs is supported. 18876dlopen_self=$enable_dlopen_self 18877 18878# Whether dlopen of statically linked programs is supported. 18879dlopen_self_static=$enable_dlopen_self_static 18880 18881# Compiler flag to prevent dynamic linking. 18882link_static_flag=$lt_lt_prog_compiler_static_RC 18883 18884# Compiler flag to turn off builtin functions. 18885no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 18886 18887# Compiler flag to allow reflexive dlopens. 18888export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 18889 18890# Compiler flag to generate shared objects directly from archives. 18891whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 18892 18893# Compiler flag to generate thread-safe objects. 18894thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 18895 18896# Library versioning type. 18897version_type=$version_type 18898 18899# Format of library name prefix. 18900libname_spec=$lt_libname_spec 18901 18902# List of archive names. First name is the real one, the rest are links. 18903# The last name is the one that the linker finds with -lNAME. 18904library_names_spec=$lt_library_names_spec 18905 18906# The coded name of the library, if different from the real name. 18907soname_spec=$lt_soname_spec 18908 18909# Commands used to build and install an old-style archive. 18910RANLIB=$lt_RANLIB 18911old_archive_cmds=$lt_old_archive_cmds_RC 18912old_postinstall_cmds=$lt_old_postinstall_cmds 18913old_postuninstall_cmds=$lt_old_postuninstall_cmds 18914 18915# Create an old-style archive from a shared archive. 18916old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 18917 18918# Create a temporary old-style archive to link instead of a shared archive. 18919old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 18920 18921# Commands used to build and install a shared archive. 18922archive_cmds=$lt_archive_cmds_RC 18923archive_expsym_cmds=$lt_archive_expsym_cmds_RC 18924postinstall_cmds=$lt_postinstall_cmds 18925postuninstall_cmds=$lt_postuninstall_cmds 18926 18927# Commands used to build a loadable module (assumed same as above if empty) 18928module_cmds=$lt_module_cmds_RC 18929module_expsym_cmds=$lt_module_expsym_cmds_RC 18930 18931# Commands to strip libraries. 18932old_striplib=$lt_old_striplib 18933striplib=$lt_striplib 18934 18935# Dependencies to place before the objects being linked to create a 18936# shared library. 18937predep_objects=$lt_predep_objects_RC 18938 18939# Dependencies to place after the objects being linked to create a 18940# shared library. 18941postdep_objects=$lt_postdep_objects_RC 18942 18943# Dependencies to place before the objects being linked to create a 18944# shared library. 18945predeps=$lt_predeps_RC 18946 18947# Dependencies to place after the objects being linked to create a 18948# shared library. 18949postdeps=$lt_postdeps_RC 18950 18951# The library search path used internally by the compiler when linking 18952# a shared library. 18953compiler_lib_search_path=$lt_compiler_lib_search_path_RC 18954 18955# Method to check whether dependent libraries are shared objects. 18956deplibs_check_method=$lt_deplibs_check_method 18957 18958# Command to use when deplibs_check_method == file_magic. 18959file_magic_cmd=$lt_file_magic_cmd 18960 18961# Flag that allows shared libraries with undefined symbols to be built. 18962allow_undefined_flag=$lt_allow_undefined_flag_RC 18963 18964# Flag that forces no undefined symbols. 18965no_undefined_flag=$lt_no_undefined_flag_RC 18966 18967# Commands used to finish a libtool library installation in a directory. 18968finish_cmds=$lt_finish_cmds 18969 18970# Same as above, but a single script fragment to be evaled but not shown. 18971finish_eval=$lt_finish_eval 18972 18973# Take the output of nm and produce a listing of raw symbols and C names. 18974global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18975 18976# Transform the output of nm in a proper C declaration 18977global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18978 18979# Transform the output of nm in a C name address pair 18980global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18981 18982# This is the shared library runtime path variable. 18983runpath_var=$runpath_var 18984 18985# This is the shared library path variable. 18986shlibpath_var=$shlibpath_var 18987 18988# Is shlibpath searched before the hard-coded library search path? 18989shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18990 18991# How to hardcode a shared library path into an executable. 18992hardcode_action=$hardcode_action_RC 18993 18994# Whether we should hardcode library paths into libraries. 18995hardcode_into_libs=$hardcode_into_libs 18996 18997# Flag to hardcode \$libdir into a binary during linking. 18998# This must work even if \$libdir does not exist. 18999hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19000 19001# If ld is used when linking, flag to hardcode \$libdir into 19002# a binary during linking. This must work even if \$libdir does 19003# not exist. 19004hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19005 19006# Whether we need a single -rpath flag with a separated argument. 19007hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19008 19009# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19010# resulting binary. 19011hardcode_direct=$hardcode_direct_RC 19012 19013# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19014# resulting binary. 19015hardcode_minus_L=$hardcode_minus_L_RC 19016 19017# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19018# the resulting binary. 19019hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19020 19021# Set to yes if building a shared library automatically hardcodes DIR into the library 19022# and all subsequent libraries and executables linked against it. 19023hardcode_automatic=$hardcode_automatic_RC 19024 19025# Variables whose values should be saved in libtool wrapper scripts and 19026# restored at relink time. 19027variables_saved_for_relink="$variables_saved_for_relink" 19028 19029# Whether libtool must link a program against all its dependency libraries. 19030link_all_deplibs=$link_all_deplibs_RC 19031 19032# Compile-time system search path for libraries 19033sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19034 19035# Run-time system search path for libraries 19036sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19037 19038# Fix the shell variable \$srcfile for the compiler. 19039fix_srcfile_path="$fix_srcfile_path_RC" 19040 19041# Set to yes if exported symbols are required. 19042always_export_symbols=$always_export_symbols_RC 19043 19044# The commands to list exported symbols. 19045export_symbols_cmds=$lt_export_symbols_cmds_RC 19046 19047# The commands to extract the exported symbol list from a shared archive. 19048extract_expsyms_cmds=$lt_extract_expsyms_cmds 19049 19050# Symbols that should not be listed in the preloaded symbols. 19051exclude_expsyms=$lt_exclude_expsyms_RC 19052 19053# Symbols that must always be exported. 19054include_expsyms=$lt_include_expsyms_RC 19055 19056# ### END LIBTOOL TAG CONFIG: $tagname 19057 19058__EOF__ 19059 19060 19061else 19062 # If there is no Makefile yet, we rely on a make rule to execute 19063 # `config.status --recheck' to rerun these tests and create the 19064 # libtool script then. 19065 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19066 if test -f "$ltmain_in"; then 19067 test -f Makefile && make "$ltmain" 19068 fi 19069fi 19070 19071 19072ac_ext=c 19073ac_cpp='$CPP $CPPFLAGS' 19074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19076ac_compiler_gnu=$ac_cv_c_compiler_gnu 19077 19078CC="$lt_save_CC" 19079 19080 ;; 19081 19082 *) 19083 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19084echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19085 { (exit 1); exit 1; }; } 19086 ;; 19087 esac 19088 19089 # Append the new tag name to the list of available tags. 19090 if test -n "$tagname" ; then 19091 available_tags="$available_tags $tagname" 19092 fi 19093 fi 19094 done 19095 IFS="$lt_save_ifs" 19096 19097 # Now substitute the updated list of available tags. 19098 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19099 mv "${ofile}T" "$ofile" 19100 chmod +x "$ofile" 19101 else 19102 rm -f "${ofile}T" 19103 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19104echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19105 { (exit 1); exit 1; }; } 19106 fi 19107fi 19108 19109 19110 19111# This can be used to rebuild libtool when needed 19112LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19113 19114# Always use our own libtool. 19115LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19116 19117# Prevent multiple expansion 19118 19119 19120 19121 19122 19123 19124 19125 19126 19127 19128 19129 19130 19131 19132 19133 19134 19135 19136 19137 19138 19139# Checks for libraries. 19140 19141{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 19142echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 19143if test "${ac_cv_lib_dl_dlopen+set}" = set; then 19144 echo $ECHO_N "(cached) $ECHO_C" >&6 19145else 19146 ac_check_lib_save_LIBS=$LIBS 19147LIBS="-ldl $LIBS" 19148cat >conftest.$ac_ext <<_ACEOF 19149/* confdefs.h. */ 19150_ACEOF 19151cat confdefs.h >>conftest.$ac_ext 19152cat >>conftest.$ac_ext <<_ACEOF 19153/* end confdefs.h. */ 19154 19155/* Override any GCC internal prototype to avoid an error. 19156 Use char because int might match the return type of a GCC 19157 builtin and then its argument prototype would still apply. */ 19158#ifdef __cplusplus 19159extern "C" 19160#endif 19161char dlopen (); 19162int 19163main () 19164{ 19165return dlopen (); 19166 ; 19167 return 0; 19168} 19169_ACEOF 19170rm -f conftest.$ac_objext conftest$ac_exeext 19171if { (ac_try="$ac_link" 19172case "(($ac_try" in 19173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19174 *) ac_try_echo=$ac_try;; 19175esac 19176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19177 (eval "$ac_link") 2>conftest.er1 19178 ac_status=$? 19179 grep -v '^ *+' conftest.er1 >conftest.err 19180 rm -f conftest.er1 19181 cat conftest.err >&5 19182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19183 (exit $ac_status); } && { 19184 test -z "$ac_c_werror_flag" || 19185 test ! -s conftest.err 19186 } && test -s conftest$ac_exeext && 19187 $as_test_x conftest$ac_exeext; then 19188 ac_cv_lib_dl_dlopen=yes 19189else 19190 echo "$as_me: failed program was:" >&5 19191sed 's/^/| /' conftest.$ac_ext >&5 19192 19193 ac_cv_lib_dl_dlopen=no 19194fi 19195 19196rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 19197 conftest$ac_exeext conftest.$ac_ext 19198LIBS=$ac_check_lib_save_LIBS 19199fi 19200{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 19201echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 19202if test $ac_cv_lib_dl_dlopen = yes; then 19203 cat >>confdefs.h <<_ACEOF 19204@%:@define HAVE_LIBDL 1 19205_ACEOF 19206 19207 LIBS="-ldl $LIBS" 19208 19209fi 19210 19211 19212{ echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 19213echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; } 19214if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then 19215 echo $ECHO_N "(cached) $ECHO_C" >&6 19216else 19217 ac_check_lib_save_LIBS=$LIBS 19218LIBS="-lpthread $LIBS" 19219cat >conftest.$ac_ext <<_ACEOF 19220/* confdefs.h. */ 19221_ACEOF 19222cat confdefs.h >>conftest.$ac_ext 19223cat >>conftest.$ac_ext <<_ACEOF 19224/* end confdefs.h. */ 19225 19226/* Override any GCC internal prototype to avoid an error. 19227 Use char because int might match the return type of a GCC 19228 builtin and then its argument prototype would still apply. */ 19229#ifdef __cplusplus 19230extern "C" 19231#endif 19232char pthread_create (); 19233int 19234main () 19235{ 19236return pthread_create (); 19237 ; 19238 return 0; 19239} 19240_ACEOF 19241rm -f conftest.$ac_objext conftest$ac_exeext 19242if { (ac_try="$ac_link" 19243case "(($ac_try" in 19244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19245 *) ac_try_echo=$ac_try;; 19246esac 19247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19248 (eval "$ac_link") 2>conftest.er1 19249 ac_status=$? 19250 grep -v '^ *+' conftest.er1 >conftest.err 19251 rm -f conftest.er1 19252 cat conftest.err >&5 19253 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19254 (exit $ac_status); } && { 19255 test -z "$ac_c_werror_flag" || 19256 test ! -s conftest.err 19257 } && test -s conftest$ac_exeext && 19258 $as_test_x conftest$ac_exeext; then 19259 ac_cv_lib_pthread_pthread_create=yes 19260else 19261 echo "$as_me: failed program was:" >&5 19262sed 's/^/| /' conftest.$ac_ext >&5 19263 19264 ac_cv_lib_pthread_pthread_create=no 19265fi 19266 19267rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 19268 conftest$ac_exeext conftest.$ac_ext 19269LIBS=$ac_check_lib_save_LIBS 19270fi 19271{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5 19272echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; } 19273if test $ac_cv_lib_pthread_pthread_create = yes; then 19274 cat >>confdefs.h <<_ACEOF 19275@%:@define HAVE_LIBPTHREAD 1 19276_ACEOF 19277 19278 LIBS="-lpthread $LIBS" 19279 19280fi 19281 19282 19283# Checks for header files. 19284{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 19285echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 19286if test "${ac_cv_header_stdc+set}" = set; then 19287 echo $ECHO_N "(cached) $ECHO_C" >&6 19288else 19289 cat >conftest.$ac_ext <<_ACEOF 19290/* confdefs.h. */ 19291_ACEOF 19292cat confdefs.h >>conftest.$ac_ext 19293cat >>conftest.$ac_ext <<_ACEOF 19294/* end confdefs.h. */ 19295#include <stdlib.h> 19296#include <stdarg.h> 19297#include <string.h> 19298#include <float.h> 19299 19300int 19301main () 19302{ 19303 19304 ; 19305 return 0; 19306} 19307_ACEOF 19308rm -f conftest.$ac_objext 19309if { (ac_try="$ac_compile" 19310case "(($ac_try" in 19311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19312 *) ac_try_echo=$ac_try;; 19313esac 19314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19315 (eval "$ac_compile") 2>conftest.er1 19316 ac_status=$? 19317 grep -v '^ *+' conftest.er1 >conftest.err 19318 rm -f conftest.er1 19319 cat conftest.err >&5 19320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19321 (exit $ac_status); } && { 19322 test -z "$ac_c_werror_flag" || 19323 test ! -s conftest.err 19324 } && test -s conftest.$ac_objext; then 19325 ac_cv_header_stdc=yes 19326else 19327 echo "$as_me: failed program was:" >&5 19328sed 's/^/| /' conftest.$ac_ext >&5 19329 19330 ac_cv_header_stdc=no 19331fi 19332 19333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19334 19335if test $ac_cv_header_stdc = yes; then 19336 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 19337 cat >conftest.$ac_ext <<_ACEOF 19338/* confdefs.h. */ 19339_ACEOF 19340cat confdefs.h >>conftest.$ac_ext 19341cat >>conftest.$ac_ext <<_ACEOF 19342/* end confdefs.h. */ 19343#include <string.h> 19344 19345_ACEOF 19346if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19347 $EGREP "memchr" >/dev/null 2>&1; then 19348 : 19349else 19350 ac_cv_header_stdc=no 19351fi 19352rm -f conftest* 19353 19354fi 19355 19356if test $ac_cv_header_stdc = yes; then 19357 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 19358 cat >conftest.$ac_ext <<_ACEOF 19359/* confdefs.h. */ 19360_ACEOF 19361cat confdefs.h >>conftest.$ac_ext 19362cat >>conftest.$ac_ext <<_ACEOF 19363/* end confdefs.h. */ 19364#include <stdlib.h> 19365 19366_ACEOF 19367if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19368 $EGREP "free" >/dev/null 2>&1; then 19369 : 19370else 19371 ac_cv_header_stdc=no 19372fi 19373rm -f conftest* 19374 19375fi 19376 19377if test $ac_cv_header_stdc = yes; then 19378 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 19379 if test "$cross_compiling" = yes; then 19380 : 19381else 19382 cat >conftest.$ac_ext <<_ACEOF 19383/* confdefs.h. */ 19384_ACEOF 19385cat confdefs.h >>conftest.$ac_ext 19386cat >>conftest.$ac_ext <<_ACEOF 19387/* end confdefs.h. */ 19388#include <ctype.h> 19389#include <stdlib.h> 19390#if ((' ' & 0x0FF) == 0x020) 19391# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 19392# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 19393#else 19394# define ISLOWER(c) \ 19395 (('a' <= (c) && (c) <= 'i') \ 19396 || ('j' <= (c) && (c) <= 'r') \ 19397 || ('s' <= (c) && (c) <= 'z')) 19398# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 19399#endif 19400 19401#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 19402int 19403main () 19404{ 19405 int i; 19406 for (i = 0; i < 256; i++) 19407 if (XOR (islower (i), ISLOWER (i)) 19408 || toupper (i) != TOUPPER (i)) 19409 return 2; 19410 return 0; 19411} 19412_ACEOF 19413rm -f conftest$ac_exeext 19414if { (ac_try="$ac_link" 19415case "(($ac_try" in 19416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19417 *) ac_try_echo=$ac_try;; 19418esac 19419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19420 (eval "$ac_link") 2>&5 19421 ac_status=$? 19422 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19423 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 19424 { (case "(($ac_try" in 19425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19426 *) ac_try_echo=$ac_try;; 19427esac 19428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19429 (eval "$ac_try") 2>&5 19430 ac_status=$? 19431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19432 (exit $ac_status); }; }; then 19433 : 19434else 19435 echo "$as_me: program exited with status $ac_status" >&5 19436echo "$as_me: failed program was:" >&5 19437sed 's/^/| /' conftest.$ac_ext >&5 19438 19439( exit $ac_status ) 19440ac_cv_header_stdc=no 19441fi 19442rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 19443fi 19444 19445 19446fi 19447fi 19448{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 19449echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 19450if test $ac_cv_header_stdc = yes; then 19451 19452cat >>confdefs.h <<\_ACEOF 19453@%:@define STDC_HEADERS 1 19454_ACEOF 19455 19456fi 19457 19458 19459 19460 19461 19462 19463 19464 19465 19466 19467 19468 19469for ac_header in float.h inttypes.h limits.h locale.h stddef.h stdint.h stdlib.h string.h unistd.h wchar.h wctype.h 19470do 19471as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 19472if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 19473 { echo "$as_me:$LINENO: checking for $ac_header" >&5 19474echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 19475if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 19476 echo $ECHO_N "(cached) $ECHO_C" >&6 19477fi 19478ac_res=`eval echo '${'$as_ac_Header'}'` 19479 { echo "$as_me:$LINENO: result: $ac_res" >&5 19480echo "${ECHO_T}$ac_res" >&6; } 19481else 19482 # Is the header compilable? 19483{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 19484echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 19485cat >conftest.$ac_ext <<_ACEOF 19486/* confdefs.h. */ 19487_ACEOF 19488cat confdefs.h >>conftest.$ac_ext 19489cat >>conftest.$ac_ext <<_ACEOF 19490/* end confdefs.h. */ 19491$ac_includes_default 19492@%:@include <$ac_header> 19493_ACEOF 19494rm -f conftest.$ac_objext 19495if { (ac_try="$ac_compile" 19496case "(($ac_try" in 19497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19498 *) ac_try_echo=$ac_try;; 19499esac 19500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19501 (eval "$ac_compile") 2>conftest.er1 19502 ac_status=$? 19503 grep -v '^ *+' conftest.er1 >conftest.err 19504 rm -f conftest.er1 19505 cat conftest.err >&5 19506 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19507 (exit $ac_status); } && { 19508 test -z "$ac_c_werror_flag" || 19509 test ! -s conftest.err 19510 } && test -s conftest.$ac_objext; then 19511 ac_header_compiler=yes 19512else 19513 echo "$as_me: failed program was:" >&5 19514sed 's/^/| /' conftest.$ac_ext >&5 19515 19516 ac_header_compiler=no 19517fi 19518 19519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19520{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 19521echo "${ECHO_T}$ac_header_compiler" >&6; } 19522 19523# Is the header present? 19524{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 19525echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 19526cat >conftest.$ac_ext <<_ACEOF 19527/* confdefs.h. */ 19528_ACEOF 19529cat confdefs.h >>conftest.$ac_ext 19530cat >>conftest.$ac_ext <<_ACEOF 19531/* end confdefs.h. */ 19532@%:@include <$ac_header> 19533_ACEOF 19534if { (ac_try="$ac_cpp conftest.$ac_ext" 19535case "(($ac_try" in 19536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19537 *) ac_try_echo=$ac_try;; 19538esac 19539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 19541 ac_status=$? 19542 grep -v '^ *+' conftest.er1 >conftest.err 19543 rm -f conftest.er1 19544 cat conftest.err >&5 19545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19546 (exit $ac_status); } >/dev/null && { 19547 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 19548 test ! -s conftest.err 19549 }; then 19550 ac_header_preproc=yes 19551else 19552 echo "$as_me: failed program was:" >&5 19553sed 's/^/| /' conftest.$ac_ext >&5 19554 19555 ac_header_preproc=no 19556fi 19557 19558rm -f conftest.err conftest.$ac_ext 19559{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 19560echo "${ECHO_T}$ac_header_preproc" >&6; } 19561 19562# So? What about this header? 19563case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 19564 yes:no: ) 19565 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 19566echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 19567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 19568echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 19569 ac_header_preproc=yes 19570 ;; 19571 no:yes:* ) 19572 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 19573echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 19574 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 19575echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 19576 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 19577echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 19578 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 19579echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 19580 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 19581echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 19582 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 19583echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 19584 ( cat <<\_ASBOX 19585@%:@@%:@ ------------------------------------------------------------------------ @%:@@%:@ 19586@%:@@%:@ Report this to http://sourceforge.net/tracker/?group_id=8903&atid=108903 @%:@@%:@ 19587@%:@@%:@ ------------------------------------------------------------------------ @%:@@%:@ 19588_ASBOX 19589 ) | sed "s/^/$as_me: WARNING: /" >&2 19590 ;; 19591esac 19592{ echo "$as_me:$LINENO: checking for $ac_header" >&5 19593echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 19594if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 19595 echo $ECHO_N "(cached) $ECHO_C" >&6 19596else 19597 eval "$as_ac_Header=\$ac_header_preproc" 19598fi 19599ac_res=`eval echo '${'$as_ac_Header'}'` 19600 { echo "$as_me:$LINENO: result: $ac_res" >&5 19601echo "${ECHO_T}$ac_res" >&6; } 19602 19603fi 19604if test `eval echo '${'$as_ac_Header'}'` = yes; then 19605 cat >>confdefs.h <<_ACEOF 19606@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 19607_ACEOF 19608 19609fi 19610 19611done 19612 19613 19614# Checks for typedefs, structures, and compiler characteristics. 19615{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 19616echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } 19617if test "${ac_cv_c_const+set}" = set; then 19618 echo $ECHO_N "(cached) $ECHO_C" >&6 19619else 19620 cat >conftest.$ac_ext <<_ACEOF 19621/* confdefs.h. */ 19622_ACEOF 19623cat confdefs.h >>conftest.$ac_ext 19624cat >>conftest.$ac_ext <<_ACEOF 19625/* end confdefs.h. */ 19626 19627int 19628main () 19629{ 19630/* FIXME: Include the comments suggested by Paul. */ 19631#ifndef __cplusplus 19632 /* Ultrix mips cc rejects this. */ 19633 typedef int charset[2]; 19634 const charset cs; 19635 /* SunOS 4.1.1 cc rejects this. */ 19636 char const *const *pcpcc; 19637 char **ppc; 19638 /* NEC SVR4.0.2 mips cc rejects this. */ 19639 struct point {int x, y;}; 19640 static struct point const zero = {0,0}; 19641 /* AIX XL C 1.02.0.0 rejects this. 19642 It does not let you subtract one const X* pointer from another in 19643 an arm of an if-expression whose if-part is not a constant 19644 expression */ 19645 const char *g = "string"; 19646 pcpcc = &g + (g ? g-g : 0); 19647 /* HPUX 7.0 cc rejects these. */ 19648 ++pcpcc; 19649 ppc = (char**) pcpcc; 19650 pcpcc = (char const *const *) ppc; 19651 { /* SCO 3.2v4 cc rejects this. */ 19652 char *t; 19653 char const *s = 0 ? (char *) 0 : (char const *) 0; 19654 19655 *t++ = 0; 19656 if (s) return 0; 19657 } 19658 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 19659 int x[] = {25, 17}; 19660 const int *foo = &x[0]; 19661 ++foo; 19662 } 19663 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 19664 typedef const int *iptr; 19665 iptr p = 0; 19666 ++p; 19667 } 19668 { /* AIX XL C 1.02.0.0 rejects this saying 19669 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 19670 struct s { int j; const int *ap[3]; }; 19671 struct s *b; b->j = 5; 19672 } 19673 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 19674 const int foo = 10; 19675 if (!foo) return 0; 19676 } 19677 return !cs[0] && !zero.x; 19678#endif 19679 19680 ; 19681 return 0; 19682} 19683_ACEOF 19684rm -f conftest.$ac_objext 19685if { (ac_try="$ac_compile" 19686case "(($ac_try" in 19687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19688 *) ac_try_echo=$ac_try;; 19689esac 19690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19691 (eval "$ac_compile") 2>conftest.er1 19692 ac_status=$? 19693 grep -v '^ *+' conftest.er1 >conftest.err 19694 rm -f conftest.er1 19695 cat conftest.err >&5 19696 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19697 (exit $ac_status); } && { 19698 test -z "$ac_c_werror_flag" || 19699 test ! -s conftest.err 19700 } && test -s conftest.$ac_objext; then 19701 ac_cv_c_const=yes 19702else 19703 echo "$as_me: failed program was:" >&5 19704sed 's/^/| /' conftest.$ac_ext >&5 19705 19706 ac_cv_c_const=no 19707fi 19708 19709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19710fi 19711{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 19712echo "${ECHO_T}$ac_cv_c_const" >&6; } 19713if test $ac_cv_c_const = no; then 19714 19715cat >>confdefs.h <<\_ACEOF 19716@%:@define const 19717_ACEOF 19718 19719fi 19720 19721{ echo "$as_me:$LINENO: checking for size_t" >&5 19722echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } 19723if test "${ac_cv_type_size_t+set}" = set; then 19724 echo $ECHO_N "(cached) $ECHO_C" >&6 19725else 19726 cat >conftest.$ac_ext <<_ACEOF 19727/* confdefs.h. */ 19728_ACEOF 19729cat confdefs.h >>conftest.$ac_ext 19730cat >>conftest.$ac_ext <<_ACEOF 19731/* end confdefs.h. */ 19732$ac_includes_default 19733typedef size_t ac__type_new_; 19734int 19735main () 19736{ 19737if ((ac__type_new_ *) 0) 19738 return 0; 19739if (sizeof (ac__type_new_)) 19740 return 0; 19741 ; 19742 return 0; 19743} 19744_ACEOF 19745rm -f conftest.$ac_objext 19746if { (ac_try="$ac_compile" 19747case "(($ac_try" in 19748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19749 *) ac_try_echo=$ac_try;; 19750esac 19751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19752 (eval "$ac_compile") 2>conftest.er1 19753 ac_status=$? 19754 grep -v '^ *+' conftest.er1 >conftest.err 19755 rm -f conftest.er1 19756 cat conftest.err >&5 19757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19758 (exit $ac_status); } && { 19759 test -z "$ac_c_werror_flag" || 19760 test ! -s conftest.err 19761 } && test -s conftest.$ac_objext; then 19762 ac_cv_type_size_t=yes 19763else 19764 echo "$as_me: failed program was:" >&5 19765sed 's/^/| /' conftest.$ac_ext >&5 19766 19767 ac_cv_type_size_t=no 19768fi 19769 19770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19771fi 19772{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 19773echo "${ECHO_T}$ac_cv_type_size_t" >&6; } 19774if test $ac_cv_type_size_t = yes; then 19775 : 19776else 19777 19778cat >>confdefs.h <<_ACEOF 19779@%:@define size_t unsigned int 19780_ACEOF 19781 19782fi 19783 19784{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 19785echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } 19786if test "${ac_cv_struct_tm+set}" = set; then 19787 echo $ECHO_N "(cached) $ECHO_C" >&6 19788else 19789 cat >conftest.$ac_ext <<_ACEOF 19790/* confdefs.h. */ 19791_ACEOF 19792cat confdefs.h >>conftest.$ac_ext 19793cat >>conftest.$ac_ext <<_ACEOF 19794/* end confdefs.h. */ 19795#include <sys/types.h> 19796#include <time.h> 19797 19798int 19799main () 19800{ 19801struct tm tm; 19802 int *p = &tm.tm_sec; 19803 return !p; 19804 ; 19805 return 0; 19806} 19807_ACEOF 19808rm -f conftest.$ac_objext 19809if { (ac_try="$ac_compile" 19810case "(($ac_try" in 19811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19812 *) ac_try_echo=$ac_try;; 19813esac 19814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19815 (eval "$ac_compile") 2>conftest.er1 19816 ac_status=$? 19817 grep -v '^ *+' conftest.er1 >conftest.err 19818 rm -f conftest.er1 19819 cat conftest.err >&5 19820 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19821 (exit $ac_status); } && { 19822 test -z "$ac_c_werror_flag" || 19823 test ! -s conftest.err 19824 } && test -s conftest.$ac_objext; then 19825 ac_cv_struct_tm=time.h 19826else 19827 echo "$as_me: failed program was:" >&5 19828sed 's/^/| /' conftest.$ac_ext >&5 19829 19830 ac_cv_struct_tm=sys/time.h 19831fi 19832 19833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19834fi 19835{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 19836echo "${ECHO_T}$ac_cv_struct_tm" >&6; } 19837if test $ac_cv_struct_tm = sys/time.h; then 19838 19839cat >>confdefs.h <<\_ACEOF 19840@%:@define TM_IN_SYS_TIME 1 19841_ACEOF 19842 19843fi 19844 19845{ echo "$as_me:$LINENO: checking for working volatile" >&5 19846echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; } 19847if test "${ac_cv_c_volatile+set}" = set; then 19848 echo $ECHO_N "(cached) $ECHO_C" >&6 19849else 19850 cat >conftest.$ac_ext <<_ACEOF 19851/* confdefs.h. */ 19852_ACEOF 19853cat confdefs.h >>conftest.$ac_ext 19854cat >>conftest.$ac_ext <<_ACEOF 19855/* end confdefs.h. */ 19856 19857int 19858main () 19859{ 19860 19861volatile int x; 19862int * volatile y = (int *) 0; 19863return !x && !y; 19864 ; 19865 return 0; 19866} 19867_ACEOF 19868rm -f conftest.$ac_objext 19869if { (ac_try="$ac_compile" 19870case "(($ac_try" in 19871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19872 *) ac_try_echo=$ac_try;; 19873esac 19874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19875 (eval "$ac_compile") 2>conftest.er1 19876 ac_status=$? 19877 grep -v '^ *+' conftest.er1 >conftest.err 19878 rm -f conftest.er1 19879 cat conftest.err >&5 19880 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19881 (exit $ac_status); } && { 19882 test -z "$ac_c_werror_flag" || 19883 test ! -s conftest.err 19884 } && test -s conftest.$ac_objext; then 19885 ac_cv_c_volatile=yes 19886else 19887 echo "$as_me: failed program was:" >&5 19888sed 's/^/| /' conftest.$ac_ext >&5 19889 19890 ac_cv_c_volatile=no 19891fi 19892 19893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19894fi 19895{ echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5 19896echo "${ECHO_T}$ac_cv_c_volatile" >&6; } 19897if test $ac_cv_c_volatile = no; then 19898 19899cat >>confdefs.h <<\_ACEOF 19900@%:@define volatile 19901_ACEOF 19902 19903fi 19904 19905{ echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 19906echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; } 19907if test "${ac_cv_type_ptrdiff_t+set}" = set; then 19908 echo $ECHO_N "(cached) $ECHO_C" >&6 19909else 19910 cat >conftest.$ac_ext <<_ACEOF 19911/* confdefs.h. */ 19912_ACEOF 19913cat confdefs.h >>conftest.$ac_ext 19914cat >>conftest.$ac_ext <<_ACEOF 19915/* end confdefs.h. */ 19916$ac_includes_default 19917typedef ptrdiff_t ac__type_new_; 19918int 19919main () 19920{ 19921if ((ac__type_new_ *) 0) 19922 return 0; 19923if (sizeof (ac__type_new_)) 19924 return 0; 19925 ; 19926 return 0; 19927} 19928_ACEOF 19929rm -f conftest.$ac_objext 19930if { (ac_try="$ac_compile" 19931case "(($ac_try" in 19932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19933 *) ac_try_echo=$ac_try;; 19934esac 19935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19936 (eval "$ac_compile") 2>conftest.er1 19937 ac_status=$? 19938 grep -v '^ *+' conftest.er1 >conftest.err 19939 rm -f conftest.er1 19940 cat conftest.err >&5 19941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19942 (exit $ac_status); } && { 19943 test -z "$ac_c_werror_flag" || 19944 test ! -s conftest.err 19945 } && test -s conftest.$ac_objext; then 19946 ac_cv_type_ptrdiff_t=yes 19947else 19948 echo "$as_me: failed program was:" >&5 19949sed 's/^/| /' conftest.$ac_ext >&5 19950 19951 ac_cv_type_ptrdiff_t=no 19952fi 19953 19954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19955fi 19956{ echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 19957echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; } 19958if test $ac_cv_type_ptrdiff_t = yes; then 19959 19960cat >>confdefs.h <<_ACEOF 19961@%:@define HAVE_PTRDIFF_T 1 19962_ACEOF 19963 19964 19965fi 19966 19967 19968# Checks for library functions. 19969{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5 19970echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } 19971if test "${ac_cv_type_signal+set}" = set; then 19972 echo $ECHO_N "(cached) $ECHO_C" >&6 19973else 19974 cat >conftest.$ac_ext <<_ACEOF 19975/* confdefs.h. */ 19976_ACEOF 19977cat confdefs.h >>conftest.$ac_ext 19978cat >>conftest.$ac_ext <<_ACEOF 19979/* end confdefs.h. */ 19980#include <sys/types.h> 19981#include <signal.h> 19982 19983int 19984main () 19985{ 19986return *(signal (0, 0)) (0) == 1; 19987 ; 19988 return 0; 19989} 19990_ACEOF 19991rm -f conftest.$ac_objext 19992if { (ac_try="$ac_compile" 19993case "(($ac_try" in 19994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19995 *) ac_try_echo=$ac_try;; 19996esac 19997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19998 (eval "$ac_compile") 2>conftest.er1 19999 ac_status=$? 20000 grep -v '^ *+' conftest.er1 >conftest.err 20001 rm -f conftest.er1 20002 cat conftest.err >&5 20003 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20004 (exit $ac_status); } && { 20005 test -z "$ac_c_werror_flag" || 20006 test ! -s conftest.err 20007 } && test -s conftest.$ac_objext; then 20008 ac_cv_type_signal=int 20009else 20010 echo "$as_me: failed program was:" >&5 20011sed 's/^/| /' conftest.$ac_ext >&5 20012 20013 ac_cv_type_signal=void 20014fi 20015 20016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20017fi 20018{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 20019echo "${ECHO_T}$ac_cv_type_signal" >&6; } 20020 20021cat >>confdefs.h <<_ACEOF 20022@%:@define RETSIGTYPE $ac_cv_type_signal 20023_ACEOF 20024 20025 20026{ echo "$as_me:$LINENO: checking for working strcoll" >&5 20027echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6; } 20028if test "${ac_cv_func_strcoll_works+set}" = set; then 20029 echo $ECHO_N "(cached) $ECHO_C" >&6 20030else 20031 if test "$cross_compiling" = yes; then 20032 ac_cv_func_strcoll_works=no 20033else 20034 cat >conftest.$ac_ext <<_ACEOF 20035/* confdefs.h. */ 20036_ACEOF 20037cat confdefs.h >>conftest.$ac_ext 20038cat >>conftest.$ac_ext <<_ACEOF 20039/* end confdefs.h. */ 20040$ac_includes_default 20041int 20042main () 20043{ 20044return (strcoll ("abc", "def") >= 0 || 20045 strcoll ("ABC", "DEF") >= 0 || 20046 strcoll ("123", "456") >= 0) 20047 ; 20048 return 0; 20049} 20050_ACEOF 20051rm -f conftest$ac_exeext 20052if { (ac_try="$ac_link" 20053case "(($ac_try" in 20054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20055 *) ac_try_echo=$ac_try;; 20056esac 20057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20058 (eval "$ac_link") 2>&5 20059 ac_status=$? 20060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20061 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20062 { (case "(($ac_try" in 20063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20064 *) ac_try_echo=$ac_try;; 20065esac 20066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20067 (eval "$ac_try") 2>&5 20068 ac_status=$? 20069 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20070 (exit $ac_status); }; }; then 20071 ac_cv_func_strcoll_works=yes 20072else 20073 echo "$as_me: program exited with status $ac_status" >&5 20074echo "$as_me: failed program was:" >&5 20075sed 's/^/| /' conftest.$ac_ext >&5 20076 20077( exit $ac_status ) 20078ac_cv_func_strcoll_works=no 20079fi 20080rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20081fi 20082 20083 20084fi 20085{ echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5 20086echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; } 20087if test $ac_cv_func_strcoll_works = yes; then 20088 20089cat >>confdefs.h <<\_ACEOF 20090@%:@define HAVE_STRCOLL 1 20091_ACEOF 20092 20093fi 20094 20095 20096for ac_func in strftime 20097do 20098as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 20099{ echo "$as_me:$LINENO: checking for $ac_func" >&5 20100echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 20101if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 20102 echo $ECHO_N "(cached) $ECHO_C" >&6 20103else 20104 cat >conftest.$ac_ext <<_ACEOF 20105/* confdefs.h. */ 20106_ACEOF 20107cat confdefs.h >>conftest.$ac_ext 20108cat >>conftest.$ac_ext <<_ACEOF 20109/* end confdefs.h. */ 20110/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 20111 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20112#define $ac_func innocuous_$ac_func 20113 20114/* System header to define __stub macros and hopefully few prototypes, 20115 which can conflict with char $ac_func (); below. 20116 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20117 <limits.h> exists even on freestanding compilers. */ 20118 20119#ifdef __STDC__ 20120# include <limits.h> 20121#else 20122# include <assert.h> 20123#endif 20124 20125#undef $ac_func 20126 20127/* Override any GCC internal prototype to avoid an error. 20128 Use char because int might match the return type of a GCC 20129 builtin and then its argument prototype would still apply. */ 20130#ifdef __cplusplus 20131extern "C" 20132#endif 20133char $ac_func (); 20134/* The GNU C library defines this for functions which it implements 20135 to always fail with ENOSYS. Some functions are actually named 20136 something starting with __ and the normal name is an alias. */ 20137#if defined __stub_$ac_func || defined __stub___$ac_func 20138choke me 20139#endif 20140 20141int 20142main () 20143{ 20144return $ac_func (); 20145 ; 20146 return 0; 20147} 20148_ACEOF 20149rm -f conftest.$ac_objext conftest$ac_exeext 20150if { (ac_try="$ac_link" 20151case "(($ac_try" in 20152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20153 *) ac_try_echo=$ac_try;; 20154esac 20155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20156 (eval "$ac_link") 2>conftest.er1 20157 ac_status=$? 20158 grep -v '^ *+' conftest.er1 >conftest.err 20159 rm -f conftest.er1 20160 cat conftest.err >&5 20161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20162 (exit $ac_status); } && { 20163 test -z "$ac_c_werror_flag" || 20164 test ! -s conftest.err 20165 } && test -s conftest$ac_exeext && 20166 $as_test_x conftest$ac_exeext; then 20167 eval "$as_ac_var=yes" 20168else 20169 echo "$as_me: failed program was:" >&5 20170sed 's/^/| /' conftest.$ac_ext >&5 20171 20172 eval "$as_ac_var=no" 20173fi 20174 20175rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20176 conftest$ac_exeext conftest.$ac_ext 20177fi 20178ac_res=`eval echo '${'$as_ac_var'}'` 20179 { echo "$as_me:$LINENO: result: $ac_res" >&5 20180echo "${ECHO_T}$ac_res" >&6; } 20181if test `eval echo '${'$as_ac_var'}'` = yes; then 20182 cat >>confdefs.h <<_ACEOF 20183@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 20184_ACEOF 20185 20186else 20187 # strftime is in -lintl on SCO UNIX. 20188{ echo "$as_me:$LINENO: checking for strftime in -lintl" >&5 20189echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; } 20190if test "${ac_cv_lib_intl_strftime+set}" = set; then 20191 echo $ECHO_N "(cached) $ECHO_C" >&6 20192else 20193 ac_check_lib_save_LIBS=$LIBS 20194LIBS="-lintl $LIBS" 20195cat >conftest.$ac_ext <<_ACEOF 20196/* confdefs.h. */ 20197_ACEOF 20198cat confdefs.h >>conftest.$ac_ext 20199cat >>conftest.$ac_ext <<_ACEOF 20200/* end confdefs.h. */ 20201 20202/* Override any GCC internal prototype to avoid an error. 20203 Use char because int might match the return type of a GCC 20204 builtin and then its argument prototype would still apply. */ 20205#ifdef __cplusplus 20206extern "C" 20207#endif 20208char strftime (); 20209int 20210main () 20211{ 20212return strftime (); 20213 ; 20214 return 0; 20215} 20216_ACEOF 20217rm -f conftest.$ac_objext conftest$ac_exeext 20218if { (ac_try="$ac_link" 20219case "(($ac_try" in 20220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20221 *) ac_try_echo=$ac_try;; 20222esac 20223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20224 (eval "$ac_link") 2>conftest.er1 20225 ac_status=$? 20226 grep -v '^ *+' conftest.er1 >conftest.err 20227 rm -f conftest.er1 20228 cat conftest.err >&5 20229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20230 (exit $ac_status); } && { 20231 test -z "$ac_c_werror_flag" || 20232 test ! -s conftest.err 20233 } && test -s conftest$ac_exeext && 20234 $as_test_x conftest$ac_exeext; then 20235 ac_cv_lib_intl_strftime=yes 20236else 20237 echo "$as_me: failed program was:" >&5 20238sed 's/^/| /' conftest.$ac_ext >&5 20239 20240 ac_cv_lib_intl_strftime=no 20241fi 20242 20243rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20244 conftest$ac_exeext conftest.$ac_ext 20245LIBS=$ac_check_lib_save_LIBS 20246fi 20247{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5 20248echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; } 20249if test $ac_cv_lib_intl_strftime = yes; then 20250 cat >>confdefs.h <<\_ACEOF 20251@%:@define HAVE_STRFTIME 1 20252_ACEOF 20253 20254LIBS="-lintl $LIBS" 20255fi 20256 20257fi 20258done 20259 20260{ echo "$as_me:$LINENO: checking for working strtod" >&5 20261echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; } 20262if test "${ac_cv_func_strtod+set}" = set; then 20263 echo $ECHO_N "(cached) $ECHO_C" >&6 20264else 20265 if test "$cross_compiling" = yes; then 20266 ac_cv_func_strtod=no 20267else 20268 cat >conftest.$ac_ext <<_ACEOF 20269/* confdefs.h. */ 20270_ACEOF 20271cat confdefs.h >>conftest.$ac_ext 20272cat >>conftest.$ac_ext <<_ACEOF 20273/* end confdefs.h. */ 20274 20275$ac_includes_default 20276#ifndef strtod 20277double strtod (); 20278#endif 20279int 20280main() 20281{ 20282 { 20283 /* Some versions of Linux strtod mis-parse strings with leading '+'. */ 20284 char *string = " +69"; 20285 char *term; 20286 double value; 20287 value = strtod (string, &term); 20288 if (value != 69 || term != (string + 4)) 20289 return 1; 20290 } 20291 20292 { 20293 /* Under Solaris 2.4, strtod returns the wrong value for the 20294 terminating character under some conditions. */ 20295 char *string = "NaN"; 20296 char *term; 20297 strtod (string, &term); 20298 if (term != string && *(term - 1) == 0) 20299 return 1; 20300 } 20301 return 0; 20302} 20303 20304_ACEOF 20305rm -f conftest$ac_exeext 20306if { (ac_try="$ac_link" 20307case "(($ac_try" in 20308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20309 *) ac_try_echo=$ac_try;; 20310esac 20311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20312 (eval "$ac_link") 2>&5 20313 ac_status=$? 20314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20315 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20316 { (case "(($ac_try" in 20317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20318 *) ac_try_echo=$ac_try;; 20319esac 20320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20321 (eval "$ac_try") 2>&5 20322 ac_status=$? 20323 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20324 (exit $ac_status); }; }; then 20325 ac_cv_func_strtod=yes 20326else 20327 echo "$as_me: program exited with status $ac_status" >&5 20328echo "$as_me: failed program was:" >&5 20329sed 's/^/| /' conftest.$ac_ext >&5 20330 20331( exit $ac_status ) 20332ac_cv_func_strtod=no 20333fi 20334rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20335fi 20336 20337 20338fi 20339{ echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5 20340echo "${ECHO_T}$ac_cv_func_strtod" >&6; } 20341if test $ac_cv_func_strtod = no; then 20342 case " $LIB@&t@OBJS " in 20343 *" strtod.$ac_objext "* ) ;; 20344 *) LIB@&t@OBJS="$LIB@&t@OBJS strtod.$ac_objext" 20345 ;; 20346esac 20347 20348{ echo "$as_me:$LINENO: checking for pow" >&5 20349echo $ECHO_N "checking for pow... $ECHO_C" >&6; } 20350if test "${ac_cv_func_pow+set}" = set; then 20351 echo $ECHO_N "(cached) $ECHO_C" >&6 20352else 20353 cat >conftest.$ac_ext <<_ACEOF 20354/* confdefs.h. */ 20355_ACEOF 20356cat confdefs.h >>conftest.$ac_ext 20357cat >>conftest.$ac_ext <<_ACEOF 20358/* end confdefs.h. */ 20359/* Define pow to an innocuous variant, in case <limits.h> declares pow. 20360 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20361#define pow innocuous_pow 20362 20363/* System header to define __stub macros and hopefully few prototypes, 20364 which can conflict with char pow (); below. 20365 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20366 <limits.h> exists even on freestanding compilers. */ 20367 20368#ifdef __STDC__ 20369# include <limits.h> 20370#else 20371# include <assert.h> 20372#endif 20373 20374#undef pow 20375 20376/* Override any GCC internal prototype to avoid an error. 20377 Use char because int might match the return type of a GCC 20378 builtin and then its argument prototype would still apply. */ 20379#ifdef __cplusplus 20380extern "C" 20381#endif 20382char pow (); 20383/* The GNU C library defines this for functions which it implements 20384 to always fail with ENOSYS. Some functions are actually named 20385 something starting with __ and the normal name is an alias. */ 20386#if defined __stub_pow || defined __stub___pow 20387choke me 20388#endif 20389 20390int 20391main () 20392{ 20393return pow (); 20394 ; 20395 return 0; 20396} 20397_ACEOF 20398rm -f conftest.$ac_objext conftest$ac_exeext 20399if { (ac_try="$ac_link" 20400case "(($ac_try" in 20401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20402 *) ac_try_echo=$ac_try;; 20403esac 20404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20405 (eval "$ac_link") 2>conftest.er1 20406 ac_status=$? 20407 grep -v '^ *+' conftest.er1 >conftest.err 20408 rm -f conftest.er1 20409 cat conftest.err >&5 20410 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20411 (exit $ac_status); } && { 20412 test -z "$ac_c_werror_flag" || 20413 test ! -s conftest.err 20414 } && test -s conftest$ac_exeext && 20415 $as_test_x conftest$ac_exeext; then 20416 ac_cv_func_pow=yes 20417else 20418 echo "$as_me: failed program was:" >&5 20419sed 's/^/| /' conftest.$ac_ext >&5 20420 20421 ac_cv_func_pow=no 20422fi 20423 20424rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20425 conftest$ac_exeext conftest.$ac_ext 20426fi 20427{ echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5 20428echo "${ECHO_T}$ac_cv_func_pow" >&6; } 20429 20430if test $ac_cv_func_pow = no; then 20431 { echo "$as_me:$LINENO: checking for pow in -lm" >&5 20432echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; } 20433if test "${ac_cv_lib_m_pow+set}" = set; then 20434 echo $ECHO_N "(cached) $ECHO_C" >&6 20435else 20436 ac_check_lib_save_LIBS=$LIBS 20437LIBS="-lm $LIBS" 20438cat >conftest.$ac_ext <<_ACEOF 20439/* confdefs.h. */ 20440_ACEOF 20441cat confdefs.h >>conftest.$ac_ext 20442cat >>conftest.$ac_ext <<_ACEOF 20443/* end confdefs.h. */ 20444 20445/* Override any GCC internal prototype to avoid an error. 20446 Use char because int might match the return type of a GCC 20447 builtin and then its argument prototype would still apply. */ 20448#ifdef __cplusplus 20449extern "C" 20450#endif 20451char pow (); 20452int 20453main () 20454{ 20455return pow (); 20456 ; 20457 return 0; 20458} 20459_ACEOF 20460rm -f conftest.$ac_objext conftest$ac_exeext 20461if { (ac_try="$ac_link" 20462case "(($ac_try" in 20463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20464 *) ac_try_echo=$ac_try;; 20465esac 20466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20467 (eval "$ac_link") 2>conftest.er1 20468 ac_status=$? 20469 grep -v '^ *+' conftest.er1 >conftest.err 20470 rm -f conftest.er1 20471 cat conftest.err >&5 20472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20473 (exit $ac_status); } && { 20474 test -z "$ac_c_werror_flag" || 20475 test ! -s conftest.err 20476 } && test -s conftest$ac_exeext && 20477 $as_test_x conftest$ac_exeext; then 20478 ac_cv_lib_m_pow=yes 20479else 20480 echo "$as_me: failed program was:" >&5 20481sed 's/^/| /' conftest.$ac_ext >&5 20482 20483 ac_cv_lib_m_pow=no 20484fi 20485 20486rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20487 conftest$ac_exeext conftest.$ac_ext 20488LIBS=$ac_check_lib_save_LIBS 20489fi 20490{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 20491echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; } 20492if test $ac_cv_lib_m_pow = yes; then 20493 POW_LIB=-lm 20494else 20495 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5 20496echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} 20497fi 20498 20499fi 20500 20501fi 20502 20503 20504for ac_func in vprintf 20505do 20506as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 20507{ echo "$as_me:$LINENO: checking for $ac_func" >&5 20508echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 20509if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 20510 echo $ECHO_N "(cached) $ECHO_C" >&6 20511else 20512 cat >conftest.$ac_ext <<_ACEOF 20513/* confdefs.h. */ 20514_ACEOF 20515cat confdefs.h >>conftest.$ac_ext 20516cat >>conftest.$ac_ext <<_ACEOF 20517/* end confdefs.h. */ 20518/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 20519 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20520#define $ac_func innocuous_$ac_func 20521 20522/* System header to define __stub macros and hopefully few prototypes, 20523 which can conflict with char $ac_func (); below. 20524 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20525 <limits.h> exists even on freestanding compilers. */ 20526 20527#ifdef __STDC__ 20528# include <limits.h> 20529#else 20530# include <assert.h> 20531#endif 20532 20533#undef $ac_func 20534 20535/* Override any GCC internal prototype to avoid an error. 20536 Use char because int might match the return type of a GCC 20537 builtin and then its argument prototype would still apply. */ 20538#ifdef __cplusplus 20539extern "C" 20540#endif 20541char $ac_func (); 20542/* The GNU C library defines this for functions which it implements 20543 to always fail with ENOSYS. Some functions are actually named 20544 something starting with __ and the normal name is an alias. */ 20545#if defined __stub_$ac_func || defined __stub___$ac_func 20546choke me 20547#endif 20548 20549int 20550main () 20551{ 20552return $ac_func (); 20553 ; 20554 return 0; 20555} 20556_ACEOF 20557rm -f conftest.$ac_objext conftest$ac_exeext 20558if { (ac_try="$ac_link" 20559case "(($ac_try" in 20560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20561 *) ac_try_echo=$ac_try;; 20562esac 20563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20564 (eval "$ac_link") 2>conftest.er1 20565 ac_status=$? 20566 grep -v '^ *+' conftest.er1 >conftest.err 20567 rm -f conftest.er1 20568 cat conftest.err >&5 20569 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20570 (exit $ac_status); } && { 20571 test -z "$ac_c_werror_flag" || 20572 test ! -s conftest.err 20573 } && test -s conftest$ac_exeext && 20574 $as_test_x conftest$ac_exeext; then 20575 eval "$as_ac_var=yes" 20576else 20577 echo "$as_me: failed program was:" >&5 20578sed 's/^/| /' conftest.$ac_ext >&5 20579 20580 eval "$as_ac_var=no" 20581fi 20582 20583rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20584 conftest$ac_exeext conftest.$ac_ext 20585fi 20586ac_res=`eval echo '${'$as_ac_var'}'` 20587 { echo "$as_me:$LINENO: result: $ac_res" >&5 20588echo "${ECHO_T}$ac_res" >&6; } 20589if test `eval echo '${'$as_ac_var'}'` = yes; then 20590 cat >>confdefs.h <<_ACEOF 20591@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 20592_ACEOF 20593 20594{ echo "$as_me:$LINENO: checking for _doprnt" >&5 20595echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; } 20596if test "${ac_cv_func__doprnt+set}" = set; then 20597 echo $ECHO_N "(cached) $ECHO_C" >&6 20598else 20599 cat >conftest.$ac_ext <<_ACEOF 20600/* confdefs.h. */ 20601_ACEOF 20602cat confdefs.h >>conftest.$ac_ext 20603cat >>conftest.$ac_ext <<_ACEOF 20604/* end confdefs.h. */ 20605/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. 20606 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20607#define _doprnt innocuous__doprnt 20608 20609/* System header to define __stub macros and hopefully few prototypes, 20610 which can conflict with char _doprnt (); below. 20611 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20612 <limits.h> exists even on freestanding compilers. */ 20613 20614#ifdef __STDC__ 20615# include <limits.h> 20616#else 20617# include <assert.h> 20618#endif 20619 20620#undef _doprnt 20621 20622/* Override any GCC internal prototype to avoid an error. 20623 Use char because int might match the return type of a GCC 20624 builtin and then its argument prototype would still apply. */ 20625#ifdef __cplusplus 20626extern "C" 20627#endif 20628char _doprnt (); 20629/* The GNU C library defines this for functions which it implements 20630 to always fail with ENOSYS. Some functions are actually named 20631 something starting with __ and the normal name is an alias. */ 20632#if defined __stub__doprnt || defined __stub____doprnt 20633choke me 20634#endif 20635 20636int 20637main () 20638{ 20639return _doprnt (); 20640 ; 20641 return 0; 20642} 20643_ACEOF 20644rm -f conftest.$ac_objext conftest$ac_exeext 20645if { (ac_try="$ac_link" 20646case "(($ac_try" in 20647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20648 *) ac_try_echo=$ac_try;; 20649esac 20650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20651 (eval "$ac_link") 2>conftest.er1 20652 ac_status=$? 20653 grep -v '^ *+' conftest.er1 >conftest.err 20654 rm -f conftest.er1 20655 cat conftest.err >&5 20656 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20657 (exit $ac_status); } && { 20658 test -z "$ac_c_werror_flag" || 20659 test ! -s conftest.err 20660 } && test -s conftest$ac_exeext && 20661 $as_test_x conftest$ac_exeext; then 20662 ac_cv_func__doprnt=yes 20663else 20664 echo "$as_me: failed program was:" >&5 20665sed 's/^/| /' conftest.$ac_ext >&5 20666 20667 ac_cv_func__doprnt=no 20668fi 20669 20670rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20671 conftest$ac_exeext conftest.$ac_ext 20672fi 20673{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 20674echo "${ECHO_T}$ac_cv_func__doprnt" >&6; } 20675if test $ac_cv_func__doprnt = yes; then 20676 20677cat >>confdefs.h <<\_ACEOF 20678@%:@define HAVE_DOPRNT 1 20679_ACEOF 20680 20681fi 20682 20683fi 20684done 20685 20686 20687 20688 20689 20690 20691 20692 20693 20694 20695 20696 20697 20698 20699 20700 20701 20702 20703 20704for ac_func in floor isascii localeconv mblen memmove memset modf pow sqrt strcasecmp strchr strerror strncasecmp strrchr strstr strtol strtoul 20705do 20706as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 20707{ echo "$as_me:$LINENO: checking for $ac_func" >&5 20708echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 20709if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 20710 echo $ECHO_N "(cached) $ECHO_C" >&6 20711else 20712 cat >conftest.$ac_ext <<_ACEOF 20713/* confdefs.h. */ 20714_ACEOF 20715cat confdefs.h >>conftest.$ac_ext 20716cat >>conftest.$ac_ext <<_ACEOF 20717/* end confdefs.h. */ 20718/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 20719 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20720#define $ac_func innocuous_$ac_func 20721 20722/* System header to define __stub macros and hopefully few prototypes, 20723 which can conflict with char $ac_func (); below. 20724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20725 <limits.h> exists even on freestanding compilers. */ 20726 20727#ifdef __STDC__ 20728# include <limits.h> 20729#else 20730# include <assert.h> 20731#endif 20732 20733#undef $ac_func 20734 20735/* Override any GCC internal prototype to avoid an error. 20736 Use char because int might match the return type of a GCC 20737 builtin and then its argument prototype would still apply. */ 20738#ifdef __cplusplus 20739extern "C" 20740#endif 20741char $ac_func (); 20742/* The GNU C library defines this for functions which it implements 20743 to always fail with ENOSYS. Some functions are actually named 20744 something starting with __ and the normal name is an alias. */ 20745#if defined __stub_$ac_func || defined __stub___$ac_func 20746choke me 20747#endif 20748 20749int 20750main () 20751{ 20752return $ac_func (); 20753 ; 20754 return 0; 20755} 20756_ACEOF 20757rm -f conftest.$ac_objext conftest$ac_exeext 20758if { (ac_try="$ac_link" 20759case "(($ac_try" in 20760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20761 *) ac_try_echo=$ac_try;; 20762esac 20763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20764 (eval "$ac_link") 2>conftest.er1 20765 ac_status=$? 20766 grep -v '^ *+' conftest.er1 >conftest.err 20767 rm -f conftest.er1 20768 cat conftest.err >&5 20769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20770 (exit $ac_status); } && { 20771 test -z "$ac_c_werror_flag" || 20772 test ! -s conftest.err 20773 } && test -s conftest$ac_exeext && 20774 $as_test_x conftest$ac_exeext; then 20775 eval "$as_ac_var=yes" 20776else 20777 echo "$as_me: failed program was:" >&5 20778sed 's/^/| /' conftest.$ac_ext >&5 20779 20780 eval "$as_ac_var=no" 20781fi 20782 20783rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20784 conftest$ac_exeext conftest.$ac_ext 20785fi 20786ac_res=`eval echo '${'$as_ac_var'}'` 20787 { echo "$as_me:$LINENO: result: $ac_res" >&5 20788echo "${ECHO_T}$ac_res" >&6; } 20789if test `eval echo '${'$as_ac_var'}'` = yes; then 20790 cat >>confdefs.h <<_ACEOF 20791@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 20792_ACEOF 20793 20794fi 20795done 20796 20797 20798# Versioning: 20799# Only change this if library is no longer 20800# ABI compatible with previous version 20801# (e.g. function declaration changed) 20802TALIB_LIBRARY_VERSION=0:0:0 20803 20804 20805 20806ac_config_files="$ac_config_files Makefile src/Makefile src/ta_abstract/Makefile src/ta_common/Makefile src/ta_func/Makefile src/tools/Makefile src/tools/gen_code/Makefile src/tools/ta_regtest/Makefile ta-lib-config ta-lib.spec ta-lib.dpkg" 20807 20808cat >confcache <<\_ACEOF 20809# This file is a shell script that caches the results of configure 20810# tests run on this system so they can be shared between configure 20811# scripts and configure runs, see configure's option --config-cache. 20812# It is not useful on other systems. If it contains results you don't 20813# want to keep, you may remove or edit it. 20814# 20815# config.status only pays attention to the cache file if you give it 20816# the --recheck option to rerun configure. 20817# 20818# `ac_cv_env_foo' variables (set or unset) will be overridden when 20819# loading this file, other *unset* `ac_cv_foo' will be assigned the 20820# following values. 20821 20822_ACEOF 20823 20824# The following way of writing the cache mishandles newlines in values, 20825# but we know of no workaround that is simple, portable, and efficient. 20826# So, we kill variables containing newlines. 20827# Ultrix sh set writes to stderr and can't be redirected directly, 20828# and sets the high bit in the cache file unless we assign to the vars. 20829( 20830 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20831 eval ac_val=\$$ac_var 20832 case $ac_val in #( 20833 *${as_nl}*) 20834 case $ac_var in #( 20835 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 20836echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 20837 esac 20838 case $ac_var in #( 20839 _ | IFS | as_nl) ;; #( 20840 *) $as_unset $ac_var ;; 20841 esac ;; 20842 esac 20843 done 20844 20845 (set) 2>&1 | 20846 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20847 *${as_nl}ac_space=\ *) 20848 # `set' does not quote correctly, so add quotes (double-quote 20849 # substitution turns \\\\ into \\, and sed turns \\ into \). 20850 sed -n \ 20851 "s/'/'\\\\''/g; 20852 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20853 ;; #( 20854 *) 20855 # `set' quotes correctly as required by POSIX, so do not add quotes. 20856 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20857 ;; 20858 esac | 20859 sort 20860) | 20861 sed ' 20862 /^ac_cv_env_/b end 20863 t clear 20864 :clear 20865 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 20866 t end 20867 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20868 :end' >>confcache 20869if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20870 if test -w "$cache_file"; then 20871 test "x$cache_file" != "x/dev/null" && 20872 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 20873echo "$as_me: updating cache $cache_file" >&6;} 20874 cat confcache >$cache_file 20875 else 20876 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 20877echo "$as_me: not updating unwritable cache $cache_file" >&6;} 20878 fi 20879fi 20880rm -f confcache 20881 20882test "x$prefix" = xNONE && prefix=$ac_default_prefix 20883# Let make expand exec_prefix. 20884test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20885 20886DEFS=-DHAVE_CONFIG_H 20887 20888ac_libobjs= 20889ac_ltlibobjs= 20890for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue 20891 # 1. Remove the extension, and $U if already installed. 20892 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20893 ac_i=`echo "$ac_i" | sed "$ac_script"` 20894 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20895 # will be set to the directory where LIBOBJS objects are built. 20896 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20897 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 20898done 20899LIB@&t@OBJS=$ac_libobjs 20900 20901LTLIBOBJS=$ac_ltlibobjs 20902 20903 20904if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20905 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 20906Usually this means the macro was only invoked conditionally." >&5 20907echo "$as_me: error: conditional \"AMDEP\" was never defined. 20908Usually this means the macro was only invoked conditionally." >&2;} 20909 { (exit 1); exit 1; }; } 20910fi 20911if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20912 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 20913Usually this means the macro was only invoked conditionally." >&5 20914echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 20915Usually this means the macro was only invoked conditionally." >&2;} 20916 { (exit 1); exit 1; }; } 20917fi 20918if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 20919 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 20920Usually this means the macro was only invoked conditionally." >&5 20921echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 20922Usually this means the macro was only invoked conditionally." >&2;} 20923 { (exit 1); exit 1; }; } 20924fi 20925 20926: ${CONFIG_STATUS=./config.status} 20927ac_clean_files_save=$ac_clean_files 20928ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20929{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 20930echo "$as_me: creating $CONFIG_STATUS" >&6;} 20931cat >$CONFIG_STATUS <<_ACEOF 20932#! $SHELL 20933# Generated by $as_me. 20934# Run this file to recreate the current configuration. 20935# Compiler output produced by configure, useful for debugging 20936# configure, is in config.log if it exists. 20937 20938debug=false 20939ac_cs_recheck=false 20940ac_cs_silent=false 20941SHELL=\${CONFIG_SHELL-$SHELL} 20942_ACEOF 20943 20944cat >>$CONFIG_STATUS <<\_ACEOF 20945## --------------------- ## 20946## M4sh Initialization. ## 20947## --------------------- ## 20948 20949# Be more Bourne compatible 20950DUALCASE=1; export DUALCASE # for MKS sh 20951if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 20952 emulate sh 20953 NULLCMD=: 20954 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 20955 # is contrary to our usage. Disable this feature. 20956 alias -g '${1+"$@"}'='"$@"' 20957 setopt NO_GLOB_SUBST 20958else 20959 case `(set -o) 2>/dev/null` in 20960 *posix*) set -o posix ;; 20961esac 20962 20963fi 20964 20965 20966 20967 20968# PATH needs CR 20969# Avoid depending upon Character Ranges. 20970as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20971as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20972as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20973as_cr_digits='0123456789' 20974as_cr_alnum=$as_cr_Letters$as_cr_digits 20975 20976# The user is always right. 20977if test "${PATH_SEPARATOR+set}" != set; then 20978 echo "#! /bin/sh" >conf$$.sh 20979 echo "exit 0" >>conf$$.sh 20980 chmod +x conf$$.sh 20981 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 20982 PATH_SEPARATOR=';' 20983 else 20984 PATH_SEPARATOR=: 20985 fi 20986 rm -f conf$$.sh 20987fi 20988 20989# Support unset when possible. 20990if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 20991 as_unset=unset 20992else 20993 as_unset=false 20994fi 20995 20996 20997# IFS 20998# We need space, tab and new line, in precisely that order. Quoting is 20999# there to prevent editors from complaining about space-tab. 21000# (If _AS_PATH_WALK were called with IFS unset, it would disable word 21001# splitting by setting IFS to empty value.) 21002as_nl=' 21003' 21004IFS=" "" $as_nl" 21005 21006# Find who we are. Look in the path if we contain no directory separator. 21007case $0 in 21008 *[\\/]* ) as_myself=$0 ;; 21009 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21010for as_dir in $PATH 21011do 21012 IFS=$as_save_IFS 21013 test -z "$as_dir" && as_dir=. 21014 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 21015done 21016IFS=$as_save_IFS 21017 21018 ;; 21019esac 21020# We did not find ourselves, most probably we were run as `sh COMMAND' 21021# in which case we are not to be found in the path. 21022if test "x$as_myself" = x; then 21023 as_myself=$0 21024fi 21025if test ! -f "$as_myself"; then 21026 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 21027 { (exit 1); exit 1; } 21028fi 21029 21030# Work around bugs in pre-3.0 UWIN ksh. 21031for as_var in ENV MAIL MAILPATH 21032do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 21033done 21034PS1='$ ' 21035PS2='> ' 21036PS4='+ ' 21037 21038# NLS nuisances. 21039for as_var in \ 21040 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 21041 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 21042 LC_TELEPHONE LC_TIME 21043do 21044 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 21045 eval $as_var=C; export $as_var 21046 else 21047 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 21048 fi 21049done 21050 21051# Required to use basename. 21052if expr a : '\(a\)' >/dev/null 2>&1 && 21053 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21054 as_expr=expr 21055else 21056 as_expr=false 21057fi 21058 21059if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21060 as_basename=basename 21061else 21062 as_basename=false 21063fi 21064 21065 21066# Name of the executable. 21067as_me=`$as_basename -- "$0" || 21068$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21069 X"$0" : 'X\(//\)$' \| \ 21070 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21071echo X/"$0" | 21072 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21073 s//\1/ 21074 q 21075 } 21076 /^X\/\(\/\/\)$/{ 21077 s//\1/ 21078 q 21079 } 21080 /^X\/\(\/\).*/{ 21081 s//\1/ 21082 q 21083 } 21084 s/.*/./; q'` 21085 21086# CDPATH. 21087$as_unset CDPATH 21088 21089 21090 21091 as_lineno_1=$LINENO 21092 as_lineno_2=$LINENO 21093 test "x$as_lineno_1" != "x$as_lineno_2" && 21094 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 21095 21096 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 21097 # uniformly replaced by the line number. The first 'sed' inserts a 21098 # line-number line after each line using $LINENO; the second 'sed' 21099 # does the real work. The second script uses 'N' to pair each 21100 # line-number line with the line containing $LINENO, and appends 21101 # trailing '-' during substitution so that $LINENO is not a special 21102 # case at line end. 21103 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 21104 # scripts with optimization help from Paolo Bonzini. Blame Lee 21105 # E. McMahon (1931-1989) for sed's syntax. :-) 21106 sed -n ' 21107 p 21108 /[$]LINENO/= 21109 ' <$as_myself | 21110 sed ' 21111 s/[$]LINENO.*/&-/ 21112 t lineno 21113 b 21114 :lineno 21115 N 21116 :loop 21117 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 21118 t loop 21119 s/-\n.*// 21120 ' >$as_me.lineno && 21121 chmod +x "$as_me.lineno" || 21122 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 21123 { (exit 1); exit 1; }; } 21124 21125 # Don't try to exec as it changes $[0], causing all sort of problems 21126 # (the dirname of $[0] is not the place where we might find the 21127 # original and so on. Autoconf is especially sensitive to this). 21128 . "./$as_me.lineno" 21129 # Exit status is that of the last command. 21130 exit 21131} 21132 21133 21134if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21135 as_dirname=dirname 21136else 21137 as_dirname=false 21138fi 21139 21140ECHO_C= ECHO_N= ECHO_T= 21141case `echo -n x` in 21142-n*) 21143 case `echo 'x\c'` in 21144 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21145 *) ECHO_C='\c';; 21146 esac;; 21147*) 21148 ECHO_N='-n';; 21149esac 21150 21151if expr a : '\(a\)' >/dev/null 2>&1 && 21152 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21153 as_expr=expr 21154else 21155 as_expr=false 21156fi 21157 21158rm -f conf$$ conf$$.exe conf$$.file 21159if test -d conf$$.dir; then 21160 rm -f conf$$.dir/conf$$.file 21161else 21162 rm -f conf$$.dir 21163 mkdir conf$$.dir 21164fi 21165echo >conf$$.file 21166if ln -s conf$$.file conf$$ 2>/dev/null; then 21167 as_ln_s='ln -s' 21168 # ... but there are two gotchas: 21169 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 21170 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 21171 # In both cases, we have to default to `cp -p'. 21172 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21173 as_ln_s='cp -p' 21174elif ln conf$$.file conf$$ 2>/dev/null; then 21175 as_ln_s=ln 21176else 21177 as_ln_s='cp -p' 21178fi 21179rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21180rmdir conf$$.dir 2>/dev/null 21181 21182if mkdir -p . 2>/dev/null; then 21183 as_mkdir_p=: 21184else 21185 test -d ./-p && rmdir ./-p 21186 as_mkdir_p=false 21187fi 21188 21189if test -x / >/dev/null 2>&1; then 21190 as_test_x='test -x' 21191else 21192 if ls -dL / >/dev/null 2>&1; then 21193 as_ls_L_option=L 21194 else 21195 as_ls_L_option= 21196 fi 21197 as_test_x=' 21198 eval sh -c '\'' 21199 if test -d "$1"; then 21200 test -d "$1/."; 21201 else 21202 case $1 in 21203 -*)set "./$1";; 21204 esac; 21205 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 21206 ???[sx]*):;;*)false;;esac;fi 21207 '\'' sh 21208 ' 21209fi 21210as_executable_p=$as_test_x 21211 21212# Sed expression to map a string onto a valid CPP name. 21213as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21214 21215# Sed expression to map a string onto a valid variable name. 21216as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21217 21218 21219exec 6>&1 21220 21221# Save the log message, to keep $[0] and so on meaningful, and to 21222# report actual input values of CONFIG_FILES etc. instead of their 21223# values after options handling. 21224ac_log=" 21225This file was extended by ta-lib $as_me 0.4.0, which was 21226generated by GNU Autoconf 2.61. Invocation command line was 21227 21228 CONFIG_FILES = $CONFIG_FILES 21229 CONFIG_HEADERS = $CONFIG_HEADERS 21230 CONFIG_LINKS = $CONFIG_LINKS 21231 CONFIG_COMMANDS = $CONFIG_COMMANDS 21232 $ $0 $@ 21233 21234on `(hostname || uname -n) 2>/dev/null | sed 1q` 21235" 21236 21237_ACEOF 21238 21239cat >>$CONFIG_STATUS <<_ACEOF 21240# Files that config.status was made for. 21241config_files="$ac_config_files" 21242config_headers="$ac_config_headers" 21243config_commands="$ac_config_commands" 21244 21245_ACEOF 21246 21247cat >>$CONFIG_STATUS <<\_ACEOF 21248ac_cs_usage="\ 21249\`$as_me' instantiates files from templates according to the 21250current configuration. 21251 21252Usage: $0 [OPTIONS] [FILE]... 21253 21254 -h, --help print this help, then exit 21255 -V, --version print version number and configuration settings, then exit 21256 -q, --quiet do not print progress messages 21257 -d, --debug don't remove temporary files 21258 --recheck update $as_me by reconfiguring in the same conditions 21259 --file=FILE[:TEMPLATE] 21260 instantiate the configuration file FILE 21261 --header=FILE[:TEMPLATE] 21262 instantiate the configuration header FILE 21263 21264Configuration files: 21265$config_files 21266 21267Configuration headers: 21268$config_headers 21269 21270Configuration commands: 21271$config_commands 21272 21273Report bugs to <bug-autoconf@gnu.org>." 21274 21275_ACEOF 21276cat >>$CONFIG_STATUS <<_ACEOF 21277ac_cs_version="\\ 21278ta-lib config.status 0.4.0 21279configured by $0, generated by GNU Autoconf 2.61, 21280 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 21281 21282Copyright (C) 2006 Free Software Foundation, Inc. 21283This config.status script is free software; the Free Software Foundation 21284gives unlimited permission to copy, distribute and modify it." 21285 21286ac_pwd='$ac_pwd' 21287srcdir='$srcdir' 21288INSTALL='$INSTALL' 21289MKDIR_P='$MKDIR_P' 21290_ACEOF 21291 21292cat >>$CONFIG_STATUS <<\_ACEOF 21293# If no file are specified by the user, then we need to provide default 21294# value. By we need to know if files were specified by the user. 21295ac_need_defaults=: 21296while test $# != 0 21297do 21298 case $1 in 21299 --*=*) 21300 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21301 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21302 ac_shift=: 21303 ;; 21304 *) 21305 ac_option=$1 21306 ac_optarg=$2 21307 ac_shift=shift 21308 ;; 21309 esac 21310 21311 case $ac_option in 21312 # Handling of the options. 21313 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21314 ac_cs_recheck=: ;; 21315 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21316 echo "$ac_cs_version"; exit ;; 21317 --debug | --debu | --deb | --de | --d | -d ) 21318 debug=: ;; 21319 --file | --fil | --fi | --f ) 21320 $ac_shift 21321 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 21322 ac_need_defaults=false;; 21323 --header | --heade | --head | --hea ) 21324 $ac_shift 21325 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 21326 ac_need_defaults=false;; 21327 --he | --h) 21328 # Conflict between --help and --header 21329 { echo "$as_me: error: ambiguous option: $1 21330Try \`$0 --help' for more information." >&2 21331 { (exit 1); exit 1; }; };; 21332 --help | --hel | -h ) 21333 echo "$ac_cs_usage"; exit ;; 21334 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21335 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21336 ac_cs_silent=: ;; 21337 21338 # This is an error. 21339 -*) { echo "$as_me: error: unrecognized option: $1 21340Try \`$0 --help' for more information." >&2 21341 { (exit 1); exit 1; }; } ;; 21342 21343 *) ac_config_targets="$ac_config_targets $1" 21344 ac_need_defaults=false ;; 21345 21346 esac 21347 shift 21348done 21349 21350ac_configure_extra_args= 21351 21352if $ac_cs_silent; then 21353 exec 6>/dev/null 21354 ac_configure_extra_args="$ac_configure_extra_args --silent" 21355fi 21356 21357_ACEOF 21358cat >>$CONFIG_STATUS <<_ACEOF 21359if \$ac_cs_recheck; then 21360 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 21361 CONFIG_SHELL=$SHELL 21362 export CONFIG_SHELL 21363 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21364fi 21365 21366_ACEOF 21367cat >>$CONFIG_STATUS <<\_ACEOF 21368exec 5>>config.log 21369{ 21370 echo 21371 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX 21372@%:@@%:@ Running $as_me. @%:@@%:@ 21373_ASBOX 21374 echo "$ac_log" 21375} >&5 21376 21377_ACEOF 21378cat >>$CONFIG_STATUS <<_ACEOF 21379# 21380# INIT-COMMANDS 21381# 21382AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 21383 21384_ACEOF 21385 21386cat >>$CONFIG_STATUS <<\_ACEOF 21387 21388# Handling of arguments. 21389for ac_config_target in $ac_config_targets 21390do 21391 case $ac_config_target in 21392 "include/ta_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/ta_config.h" ;; 21393 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21394 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21395 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 21396 "src/ta_abstract/Makefile") CONFIG_FILES="$CONFIG_FILES src/ta_abstract/Makefile" ;; 21397 "src/ta_common/Makefile") CONFIG_FILES="$CONFIG_FILES src/ta_common/Makefile" ;; 21398 "src/ta_func/Makefile") CONFIG_FILES="$CONFIG_FILES src/ta_func/Makefile" ;; 21399 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;; 21400 "src/tools/gen_code/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/gen_code/Makefile" ;; 21401 "src/tools/ta_regtest/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/ta_regtest/Makefile" ;; 21402 "ta-lib-config") CONFIG_FILES="$CONFIG_FILES ta-lib-config" ;; 21403 "ta-lib.spec") CONFIG_FILES="$CONFIG_FILES ta-lib.spec" ;; 21404 "ta-lib.dpkg") CONFIG_FILES="$CONFIG_FILES ta-lib.dpkg" ;; 21405 21406 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 21407echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 21408 { (exit 1); exit 1; }; };; 21409 esac 21410done 21411 21412 21413# If the user did not use the arguments to specify the items to instantiate, 21414# then the envvar interface is used. Set only those that are not. 21415# We use the long form for the default assignment because of an extremely 21416# bizarre bug on SunOS 4.1.3. 21417if $ac_need_defaults; then 21418 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 21419 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 21420 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 21421fi 21422 21423# Have a temporary directory for convenience. Make it in the build tree 21424# simply because there is no reason against having it here, and in addition, 21425# creating and moving files from /tmp can sometimes cause problems. 21426# Hook for its removal unless debugging. 21427# Note that there is a small window in which the directory will not be cleaned: 21428# after its creation but before its name has been assigned to `$tmp'. 21429$debug || 21430{ 21431 tmp= 21432 trap 'exit_status=$? 21433 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 21434' 0 21435 trap '{ (exit 1); exit 1; }' 1 2 13 15 21436} 21437# Create a (secure) tmp directory for tmp files. 21438 21439{ 21440 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21441 test -n "$tmp" && test -d "$tmp" 21442} || 21443{ 21444 tmp=./conf$$-$RANDOM 21445 (umask 077 && mkdir "$tmp") 21446} || 21447{ 21448 echo "$me: cannot create a temporary directory in ." >&2 21449 { (exit 1); exit 1; } 21450} 21451 21452# 21453# Set up the sed scripts for CONFIG_FILES section. 21454# 21455 21456# No need to generate the scripts if there are no CONFIG_FILES. 21457# This happens for instance when ./config.status config.h 21458if test -n "$CONFIG_FILES"; then 21459 21460_ACEOF 21461 21462 21463 21464ac_delim='%!_!# ' 21465for ac_last_try in false false false false false :; do 21466 cat >conf$$subs.sed <<_ACEOF 21467SHELL!$SHELL$ac_delim 21468PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 21469PACKAGE_NAME!$PACKAGE_NAME$ac_delim 21470PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 21471PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 21472PACKAGE_STRING!$PACKAGE_STRING$ac_delim 21473PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 21474exec_prefix!$exec_prefix$ac_delim 21475prefix!$prefix$ac_delim 21476program_transform_name!$program_transform_name$ac_delim 21477bindir!$bindir$ac_delim 21478sbindir!$sbindir$ac_delim 21479libexecdir!$libexecdir$ac_delim 21480datarootdir!$datarootdir$ac_delim 21481datadir!$datadir$ac_delim 21482sysconfdir!$sysconfdir$ac_delim 21483sharedstatedir!$sharedstatedir$ac_delim 21484localstatedir!$localstatedir$ac_delim 21485includedir!$includedir$ac_delim 21486oldincludedir!$oldincludedir$ac_delim 21487docdir!$docdir$ac_delim 21488infodir!$infodir$ac_delim 21489htmldir!$htmldir$ac_delim 21490dvidir!$dvidir$ac_delim 21491pdfdir!$pdfdir$ac_delim 21492psdir!$psdir$ac_delim 21493libdir!$libdir$ac_delim 21494localedir!$localedir$ac_delim 21495mandir!$mandir$ac_delim 21496DEFS!$DEFS$ac_delim 21497ECHO_C!$ECHO_C$ac_delim 21498ECHO_N!$ECHO_N$ac_delim 21499ECHO_T!$ECHO_T$ac_delim 21500LIBS!$LIBS$ac_delim 21501build_alias!$build_alias$ac_delim 21502host_alias!$host_alias$ac_delim 21503target_alias!$target_alias$ac_delim 21504INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 21505INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 21506INSTALL_DATA!$INSTALL_DATA$ac_delim 21507am__isrc!$am__isrc$ac_delim 21508CYGPATH_W!$CYGPATH_W$ac_delim 21509PACKAGE!$PACKAGE$ac_delim 21510VERSION!$VERSION$ac_delim 21511ACLOCAL!$ACLOCAL$ac_delim 21512AUTOCONF!$AUTOCONF$ac_delim 21513AUTOMAKE!$AUTOMAKE$ac_delim 21514AUTOHEADER!$AUTOHEADER$ac_delim 21515MAKEINFO!$MAKEINFO$ac_delim 21516install_sh!$install_sh$ac_delim 21517STRIP!$STRIP$ac_delim 21518INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 21519mkdir_p!$mkdir_p$ac_delim 21520AWK!$AWK$ac_delim 21521SET_MAKE!$SET_MAKE$ac_delim 21522am__leading_dot!$am__leading_dot$ac_delim 21523AMTAR!$AMTAR$ac_delim 21524am__tar!$am__tar$ac_delim 21525am__untar!$am__untar$ac_delim 21526CC!$CC$ac_delim 21527CFLAGS!$CFLAGS$ac_delim 21528LDFLAGS!$LDFLAGS$ac_delim 21529CPPFLAGS!$CPPFLAGS$ac_delim 21530ac_ct_CC!$ac_ct_CC$ac_delim 21531EXEEXT!$EXEEXT$ac_delim 21532OBJEXT!$OBJEXT$ac_delim 21533DEPDIR!$DEPDIR$ac_delim 21534am__include!$am__include$ac_delim 21535am__quote!$am__quote$ac_delim 21536AMDEP_TRUE!$AMDEP_TRUE$ac_delim 21537AMDEP_FALSE!$AMDEP_FALSE$ac_delim 21538AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 21539CCDEPMODE!$CCDEPMODE$ac_delim 21540am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 21541am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 21542build!$build$ac_delim 21543build_cpu!$build_cpu$ac_delim 21544build_vendor!$build_vendor$ac_delim 21545build_os!$build_os$ac_delim 21546host!$host$ac_delim 21547host_cpu!$host_cpu$ac_delim 21548host_vendor!$host_vendor$ac_delim 21549host_os!$host_os$ac_delim 21550GREP!$GREP$ac_delim 21551EGREP!$EGREP$ac_delim 21552LN_S!$LN_S$ac_delim 21553ECHO!$ECHO$ac_delim 21554AR!$AR$ac_delim 21555RANLIB!$RANLIB$ac_delim 21556CPP!$CPP$ac_delim 21557CXX!$CXX$ac_delim 21558CXXFLAGS!$CXXFLAGS$ac_delim 21559ac_ct_CXX!$ac_ct_CXX$ac_delim 21560CXXDEPMODE!$CXXDEPMODE$ac_delim 21561am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim 21562am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim 21563CXXCPP!$CXXCPP$ac_delim 21564_ACEOF 21565 21566 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 21567 break 21568 elif $ac_last_try; then 21569 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 21570echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 21571 { (exit 1); exit 1; }; } 21572 else 21573 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21574 fi 21575done 21576 21577ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 21578if test -n "$ac_eof"; then 21579 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 21580 ac_eof=`expr $ac_eof + 1` 21581fi 21582 21583cat >>$CONFIG_STATUS <<_ACEOF 21584cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 21585/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21586_ACEOF 21587sed ' 21588s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 21589s/^/s,@/; s/!/@,|#_!!_#|/ 21590:n 21591t n 21592s/'"$ac_delim"'$/,g/; t 21593s/$/\\/; p 21594N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 21595' >>$CONFIG_STATUS <conf$$subs.sed 21596rm -f conf$$subs.sed 21597cat >>$CONFIG_STATUS <<_ACEOF 21598CEOF$ac_eof 21599_ACEOF 21600 21601 21602ac_delim='%!_!# ' 21603for ac_last_try in false false false false false :; do 21604 cat >conf$$subs.sed <<_ACEOF 21605F77!$F77$ac_delim 21606FFLAGS!$FFLAGS$ac_delim 21607ac_ct_F77!$ac_ct_F77$ac_delim 21608LIBTOOL!$LIBTOOL$ac_delim 21609POW_LIB!$POW_LIB$ac_delim 21610LIB@&t@OBJS!$LIB@&t@OBJS$ac_delim 21611TALIB_LIBRARY_VERSION!$TALIB_LIBRARY_VERSION$ac_delim 21612LTLIBOBJS!$LTLIBOBJS$ac_delim 21613_ACEOF 21614 21615 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 8; then 21616 break 21617 elif $ac_last_try; then 21618 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 21619echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 21620 { (exit 1); exit 1; }; } 21621 else 21622 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21623 fi 21624done 21625 21626ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 21627if test -n "$ac_eof"; then 21628 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 21629 ac_eof=`expr $ac_eof + 1` 21630fi 21631 21632cat >>$CONFIG_STATUS <<_ACEOF 21633cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 21634/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 21635_ACEOF 21636sed ' 21637s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 21638s/^/s,@/; s/!/@,|#_!!_#|/ 21639:n 21640t n 21641s/'"$ac_delim"'$/,g/; t 21642s/$/\\/; p 21643N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 21644' >>$CONFIG_STATUS <conf$$subs.sed 21645rm -f conf$$subs.sed 21646cat >>$CONFIG_STATUS <<_ACEOF 21647:end 21648s/|#_!!_#|//g 21649CEOF$ac_eof 21650_ACEOF 21651 21652 21653# VPATH may cause trouble with some makes, so we remove $(srcdir), 21654# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 21655# trailing colons and then remove the whole line if VPATH becomes empty 21656# (actually we leave an empty line to preserve line numbers). 21657if test "x$srcdir" = x.; then 21658 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 21659s/:*\$(srcdir):*/:/ 21660s/:*\${srcdir}:*/:/ 21661s/:*@srcdir@:*/:/ 21662s/^\([^=]*=[ ]*\):*/\1/ 21663s/:*$// 21664s/^[^=]*=[ ]*$// 21665}' 21666fi 21667 21668cat >>$CONFIG_STATUS <<\_ACEOF 21669fi # test -n "$CONFIG_FILES" 21670 21671 21672for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 21673do 21674 case $ac_tag in 21675 :[FHLC]) ac_mode=$ac_tag; continue;; 21676 esac 21677 case $ac_mode$ac_tag in 21678 :[FHL]*:*);; 21679 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 21680echo "$as_me: error: Invalid tag $ac_tag." >&2;} 21681 { (exit 1); exit 1; }; };; 21682 :[FH]-) ac_tag=-:-;; 21683 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21684 esac 21685 ac_save_IFS=$IFS 21686 IFS=: 21687 set x $ac_tag 21688 IFS=$ac_save_IFS 21689 shift 21690 ac_file=$1 21691 shift 21692 21693 case $ac_mode in 21694 :L) ac_source=$1;; 21695 :[FH]) 21696 ac_file_inputs= 21697 for ac_f 21698 do 21699 case $ac_f in 21700 -) ac_f="$tmp/stdin";; 21701 *) # Look for the file first in the build tree, then in the source tree 21702 # (if the path is not absolute). The absolute path cannot be DOS-style, 21703 # because $ac_f cannot contain `:'. 21704 test -f "$ac_f" || 21705 case $ac_f in 21706 [\\/$]*) false;; 21707 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21708 esac || 21709 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 21710echo "$as_me: error: cannot find input file: $ac_f" >&2;} 21711 { (exit 1); exit 1; }; };; 21712 esac 21713 ac_file_inputs="$ac_file_inputs $ac_f" 21714 done 21715 21716 # Let's still pretend it is `configure' which instantiates (i.e., don't 21717 # use $as_me), people would be surprised to read: 21718 # /* config.h. Generated by config.status. */ 21719 configure_input="Generated from "`IFS=: 21720 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 21721 if test x"$ac_file" != x-; then 21722 configure_input="$ac_file. $configure_input" 21723 { echo "$as_me:$LINENO: creating $ac_file" >&5 21724echo "$as_me: creating $ac_file" >&6;} 21725 fi 21726 21727 case $ac_tag in 21728 *:-:* | *:-) cat >"$tmp/stdin";; 21729 esac 21730 ;; 21731 esac 21732 21733 ac_dir=`$as_dirname -- "$ac_file" || 21734$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21735 X"$ac_file" : 'X\(//\)[^/]' \| \ 21736 X"$ac_file" : 'X\(//\)$' \| \ 21737 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21738echo X"$ac_file" | 21739 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21740 s//\1/ 21741 q 21742 } 21743 /^X\(\/\/\)[^/].*/{ 21744 s//\1/ 21745 q 21746 } 21747 /^X\(\/\/\)$/{ 21748 s//\1/ 21749 q 21750 } 21751 /^X\(\/\).*/{ 21752 s//\1/ 21753 q 21754 } 21755 s/.*/./; q'` 21756 { as_dir="$ac_dir" 21757 case $as_dir in #( 21758 -*) as_dir=./$as_dir;; 21759 esac 21760 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 21761 as_dirs= 21762 while :; do 21763 case $as_dir in #( 21764 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 21765 *) as_qdir=$as_dir;; 21766 esac 21767 as_dirs="'$as_qdir' $as_dirs" 21768 as_dir=`$as_dirname -- "$as_dir" || 21769$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21770 X"$as_dir" : 'X\(//\)[^/]' \| \ 21771 X"$as_dir" : 'X\(//\)$' \| \ 21772 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21773echo X"$as_dir" | 21774 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21775 s//\1/ 21776 q 21777 } 21778 /^X\(\/\/\)[^/].*/{ 21779 s//\1/ 21780 q 21781 } 21782 /^X\(\/\/\)$/{ 21783 s//\1/ 21784 q 21785 } 21786 /^X\(\/\).*/{ 21787 s//\1/ 21788 q 21789 } 21790 s/.*/./; q'` 21791 test -d "$as_dir" && break 21792 done 21793 test -z "$as_dirs" || eval "mkdir $as_dirs" 21794 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 21795echo "$as_me: error: cannot create directory $as_dir" >&2;} 21796 { (exit 1); exit 1; }; }; } 21797 ac_builddir=. 21798 21799case "$ac_dir" in 21800.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21801*) 21802 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 21803 # A ".." for each directory in $ac_dir_suffix. 21804 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 21805 case $ac_top_builddir_sub in 21806 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21807 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21808 esac ;; 21809esac 21810ac_abs_top_builddir=$ac_pwd 21811ac_abs_builddir=$ac_pwd$ac_dir_suffix 21812# for backward compatibility: 21813ac_top_builddir=$ac_top_build_prefix 21814 21815case $srcdir in 21816 .) # We are building in place. 21817 ac_srcdir=. 21818 ac_top_srcdir=$ac_top_builddir_sub 21819 ac_abs_top_srcdir=$ac_pwd ;; 21820 [\\/]* | ?:[\\/]* ) # Absolute name. 21821 ac_srcdir=$srcdir$ac_dir_suffix; 21822 ac_top_srcdir=$srcdir 21823 ac_abs_top_srcdir=$srcdir ;; 21824 *) # Relative name. 21825 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21826 ac_top_srcdir=$ac_top_build_prefix$srcdir 21827 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21828esac 21829ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21830 21831 21832 case $ac_mode in 21833 :F) 21834 # 21835 # CONFIG_FILE 21836 # 21837 21838 case $INSTALL in 21839 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21840 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21841 esac 21842 ac_MKDIR_P=$MKDIR_P 21843 case $MKDIR_P in 21844 [\\/$]* | ?:[\\/]* ) ;; 21845 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21846 esac 21847_ACEOF 21848 21849cat >>$CONFIG_STATUS <<\_ACEOF 21850# If the template does not know about datarootdir, expand it. 21851# FIXME: This hack should be removed a few years after 2.60. 21852ac_datarootdir_hack=; ac_datarootdir_seen= 21853 21854case `sed -n '/datarootdir/ { 21855 p 21856 q 21857} 21858/@datadir@/p 21859/@docdir@/p 21860/@infodir@/p 21861/@localedir@/p 21862/@mandir@/p 21863' $ac_file_inputs` in 21864*datarootdir*) ac_datarootdir_seen=yes;; 21865*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21866 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21867echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21868_ACEOF 21869cat >>$CONFIG_STATUS <<_ACEOF 21870 ac_datarootdir_hack=' 21871 s&@datadir@&$datadir&g 21872 s&@docdir@&$docdir&g 21873 s&@infodir@&$infodir&g 21874 s&@localedir@&$localedir&g 21875 s&@mandir@&$mandir&g 21876 s&\\\${datarootdir}&$datarootdir&g' ;; 21877esac 21878_ACEOF 21879 21880# Neutralize VPATH when `$srcdir' = `.'. 21881# Shell code in configure.ac might set extrasub. 21882# FIXME: do we really want to maintain this feature? 21883cat >>$CONFIG_STATUS <<_ACEOF 21884 sed "$ac_vpsub 21885$extrasub 21886_ACEOF 21887cat >>$CONFIG_STATUS <<\_ACEOF 21888:t 21889/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21890s&@configure_input@&$configure_input&;t t 21891s&@top_builddir@&$ac_top_builddir_sub&;t t 21892s&@srcdir@&$ac_srcdir&;t t 21893s&@abs_srcdir@&$ac_abs_srcdir&;t t 21894s&@top_srcdir@&$ac_top_srcdir&;t t 21895s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21896s&@builddir@&$ac_builddir&;t t 21897s&@abs_builddir@&$ac_abs_builddir&;t t 21898s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21899s&@INSTALL@&$ac_INSTALL&;t t 21900s&@MKDIR_P@&$ac_MKDIR_P&;t t 21901$ac_datarootdir_hack 21902" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 21903 21904test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21905 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 21906 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 21907 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21908which seems to be undefined. Please make sure it is defined." >&5 21909echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21910which seems to be undefined. Please make sure it is defined." >&2;} 21911 21912 rm -f "$tmp/stdin" 21913 case $ac_file in 21914 -) cat "$tmp/out"; rm -f "$tmp/out";; 21915 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 21916 esac 21917 ;; 21918 :H) 21919 # 21920 # CONFIG_HEADER 21921 # 21922_ACEOF 21923 21924# Transform confdefs.h into a sed script `conftest.defines', that 21925# substitutes the proper values into config.h.in to produce config.h. 21926rm -f conftest.defines conftest.tail 21927# First, append a space to every undef/define line, to ease matching. 21928echo 's/$/ /' >conftest.defines 21929# Then, protect against being on the right side of a sed subst, or in 21930# an unquoted here document, in config.status. If some macros were 21931# called several times there might be several #defines for the same 21932# symbol, which is useless. But do not sort them, since the last 21933# AC_DEFINE must be honored. 21934ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21935# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 21936# NAME is the cpp macro being defined, VALUE is the value it is being given. 21937# PARAMS is the parameter list in the macro definition--in most cases, it's 21938# just an empty string. 21939ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 21940ac_dB='\\)[ (].*,\\1define\\2' 21941ac_dC=' ' 21942ac_dD=' ,' 21943 21944uniq confdefs.h | 21945 sed -n ' 21946 t rset 21947 :rset 21948 s/^[ ]*#[ ]*define[ ][ ]*// 21949 t ok 21950 d 21951 :ok 21952 s/[\\&,]/\\&/g 21953 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 21954 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 21955 ' >>conftest.defines 21956 21957# Remove the space that was appended to ease matching. 21958# Then replace #undef with comments. This is necessary, for 21959# example, in the case of _POSIX_SOURCE, which is predefined and required 21960# on some systems where configure will not decide to define it. 21961# (The regexp can be short, since the line contains either #define or #undef.) 21962echo 's/ $// 21963s,^[ #]*u.*,/* & */,' >>conftest.defines 21964 21965# Break up conftest.defines: 21966ac_max_sed_lines=50 21967 21968# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 21969# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 21970# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 21971# et cetera. 21972ac_in='$ac_file_inputs' 21973ac_out='"$tmp/out1"' 21974ac_nxt='"$tmp/out2"' 21975 21976while : 21977do 21978 # Write a here document: 21979 cat >>$CONFIG_STATUS <<_ACEOF 21980 # First, check the format of the line: 21981 cat >"\$tmp/defines.sed" <<\\CEOF 21982/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 21983/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 21984b 21985:def 21986_ACEOF 21987 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 21988 echo 'CEOF 21989 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 21990 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 21991 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 21992 grep . conftest.tail >/dev/null || break 21993 rm -f conftest.defines 21994 mv conftest.tail conftest.defines 21995done 21996rm -f conftest.defines conftest.tail 21997 21998echo "ac_result=$ac_in" >>$CONFIG_STATUS 21999cat >>$CONFIG_STATUS <<\_ACEOF 22000 if test x"$ac_file" != x-; then 22001 echo "/* $configure_input */" >"$tmp/config.h" 22002 cat "$ac_result" >>"$tmp/config.h" 22003 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 22004 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 22005echo "$as_me: $ac_file is unchanged" >&6;} 22006 else 22007 rm -f $ac_file 22008 mv "$tmp/config.h" $ac_file 22009 fi 22010 else 22011 echo "/* $configure_input */" 22012 cat "$ac_result" 22013 fi 22014 rm -f "$tmp/out12" 22015# Compute $ac_file's index in $config_headers. 22016_am_stamp_count=1 22017for _am_header in $config_headers :; do 22018 case $_am_header in 22019 $ac_file | $ac_file:* ) 22020 break ;; 22021 * ) 22022 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22023 esac 22024done 22025echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || 22026$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22027 X$ac_file : 'X\(//\)[^/]' \| \ 22028 X$ac_file : 'X\(//\)$' \| \ 22029 X$ac_file : 'X\(/\)' \| . 2>/dev/null || 22030echo X$ac_file | 22031 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22032 s//\1/ 22033 q 22034 } 22035 /^X\(\/\/\)[^/].*/{ 22036 s//\1/ 22037 q 22038 } 22039 /^X\(\/\/\)$/{ 22040 s//\1/ 22041 q 22042 } 22043 /^X\(\/\).*/{ 22044 s//\1/ 22045 q 22046 } 22047 s/.*/./; q'`/stamp-h$_am_stamp_count 22048 ;; 22049 22050 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 22051echo "$as_me: executing $ac_file commands" >&6;} 22052 ;; 22053 esac 22054 22055 22056 case $ac_file$ac_mode in 22057 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 22058 # Strip MF so we end up with the name of the file. 22059 mf=`echo "$mf" | sed -e 's/:.*$//'` 22060 # Check whether this is an Automake generated Makefile or not. 22061 # We used to match only the files named `Makefile.in', but 22062 # some people rename them; so instead we look at the file content. 22063 # Grep'ing the first line is not enough: some people post-process 22064 # each Makefile.in and add a new line on top of each file to say so. 22065 # Grep'ing the whole file is not good either: AIX grep has a line 22066 # limit of 2048, but all sed's we know have understand at least 4000. 22067 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then 22068 dirpart=`$as_dirname -- "$mf" || 22069$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22070 X"$mf" : 'X\(//\)[^/]' \| \ 22071 X"$mf" : 'X\(//\)$' \| \ 22072 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 22073echo X"$mf" | 22074 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22075 s//\1/ 22076 q 22077 } 22078 /^X\(\/\/\)[^/].*/{ 22079 s//\1/ 22080 q 22081 } 22082 /^X\(\/\/\)$/{ 22083 s//\1/ 22084 q 22085 } 22086 /^X\(\/\).*/{ 22087 s//\1/ 22088 q 22089 } 22090 s/.*/./; q'` 22091 else 22092 continue 22093 fi 22094 # Extract the definition of DEPDIR, am__include, and am__quote 22095 # from the Makefile without running `make'. 22096 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 22097 test -z "$DEPDIR" && continue 22098 am__include=`sed -n 's/^am__include = //p' < "$mf"` 22099 test -z "am__include" && continue 22100 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 22101 # When using ansi2knr, U may be empty or an underscore; expand it 22102 U=`sed -n 's/^U = //p' < "$mf"` 22103 # Find all dependency output files, they are included files with 22104 # $(DEPDIR) in their names. We invoke sed twice because it is the 22105 # simplest approach to changing $(DEPDIR) to its actual value in the 22106 # expansion. 22107 for file in `sed -n " 22108 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 22109 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 22110 # Make sure the directory exists. 22111 test -f "$dirpart/$file" && continue 22112 fdir=`$as_dirname -- "$file" || 22113$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22114 X"$file" : 'X\(//\)[^/]' \| \ 22115 X"$file" : 'X\(//\)$' \| \ 22116 X"$file" : 'X\(/\)' \| . 2>/dev/null || 22117echo X"$file" | 22118 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22119 s//\1/ 22120 q 22121 } 22122 /^X\(\/\/\)[^/].*/{ 22123 s//\1/ 22124 q 22125 } 22126 /^X\(\/\/\)$/{ 22127 s//\1/ 22128 q 22129 } 22130 /^X\(\/\).*/{ 22131 s//\1/ 22132 q 22133 } 22134 s/.*/./; q'` 22135 { as_dir=$dirpart/$fdir 22136 case $as_dir in #( 22137 -*) as_dir=./$as_dir;; 22138 esac 22139 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 22140 as_dirs= 22141 while :; do 22142 case $as_dir in #( 22143 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 22144 *) as_qdir=$as_dir;; 22145 esac 22146 as_dirs="'$as_qdir' $as_dirs" 22147 as_dir=`$as_dirname -- "$as_dir" || 22148$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22149 X"$as_dir" : 'X\(//\)[^/]' \| \ 22150 X"$as_dir" : 'X\(//\)$' \| \ 22151 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22152echo X"$as_dir" | 22153 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22154 s//\1/ 22155 q 22156 } 22157 /^X\(\/\/\)[^/].*/{ 22158 s//\1/ 22159 q 22160 } 22161 /^X\(\/\/\)$/{ 22162 s//\1/ 22163 q 22164 } 22165 /^X\(\/\).*/{ 22166 s//\1/ 22167 q 22168 } 22169 s/.*/./; q'` 22170 test -d "$as_dir" && break 22171 done 22172 test -z "$as_dirs" || eval "mkdir $as_dirs" 22173 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 22174echo "$as_me: error: cannot create directory $as_dir" >&2;} 22175 { (exit 1); exit 1; }; }; } 22176 # echo "creating $dirpart/$file" 22177 echo '# dummy' > "$dirpart/$file" 22178 done 22179done 22180 ;; 22181 22182 esac 22183done # for ac_tag 22184 22185 22186{ (exit 0); exit 0; } 22187_ACEOF 22188chmod +x $CONFIG_STATUS 22189ac_clean_files=$ac_clean_files_save 22190 22191 22192# configure is writing to config.log, and then calls config.status. 22193# config.status does its own redirection, appending to config.log. 22194# Unfortunately, on DOS this fails, as config.log is still kept open 22195# by configure, so config.status won't be able to write to it; its 22196# output is simply discarded. So we exec the FD to /dev/null, 22197# effectively closing config.log, so it can be properly (re)opened and 22198# appended to by config.status. When coming back to configure, we 22199# need to make the FD available again. 22200if test "$no_create" != yes; then 22201 ac_cs_success=: 22202 ac_config_status_args= 22203 test "$silent" = yes && 22204 ac_config_status_args="$ac_config_status_args --quiet" 22205 exec 5>/dev/null 22206 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22207 exec 5>>config.log 22208 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22209 # would make configure fail if this is the last instruction. 22210 $ac_cs_success || { (exit 1); exit 1; } 22211fi 22212 22213