1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.61 for sablevm 1.13. 4# 5# Report bugs to <http://sablevm.org/>. 6# 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## --------------------- ## 12## M4sh Initialization. ## 13## --------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 18 emulate sh 19 NULLCMD=: 20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in 26 *posix*) set -o posix ;; 27esac 28 29fi 30 31 32 33 34# PATH needs CR 35# Avoid depending upon Character Ranges. 36as_cr_letters='abcdefghijklmnopqrstuvwxyz' 37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 38as_cr_Letters=$as_cr_letters$as_cr_LETTERS 39as_cr_digits='0123456789' 40as_cr_alnum=$as_cr_Letters$as_cr_digits 41 42# The user is always right. 43if test "${PATH_SEPARATOR+set}" != set; then 44 echo "#! /bin/sh" >conf$$.sh 45 echo "exit 0" >>conf$$.sh 46 chmod +x conf$$.sh 47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 48 PATH_SEPARATOR=';' 49 else 50 PATH_SEPARATOR=: 51 fi 52 rm -f conf$$.sh 53fi 54 55# Support unset when possible. 56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 57 as_unset=unset 58else 59 as_unset=false 60fi 61 62 63# IFS 64# We need space, tab and new line, in precisely that order. Quoting is 65# there to prevent editors from complaining about space-tab. 66# (If _AS_PATH_WALK were called with IFS unset, it would disable word 67# splitting by setting IFS to empty value.) 68as_nl=' 69' 70IFS=" "" $as_nl" 71 72# Find who we are. Look in the path if we contain no directory separator. 73case $0 in 74 *[\\/]* ) as_myself=$0 ;; 75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 76for as_dir in $PATH 77do 78 IFS=$as_save_IFS 79 test -z "$as_dir" && as_dir=. 80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 81done 82IFS=$as_save_IFS 83 84 ;; 85esac 86# We did not find ourselves, most probably we were run as `sh COMMAND' 87# in which case we are not to be found in the path. 88if test "x$as_myself" = x; then 89 as_myself=$0 90fi 91if test ! -f "$as_myself"; then 92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 93 { (exit 1); exit 1; } 94fi 95 96# Work around bugs in pre-3.0 UWIN ksh. 97for as_var in ENV MAIL MAILPATH 98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 99done 100PS1='$ ' 101PS2='> ' 102PS4='+ ' 103 104# NLS nuisances. 105for as_var in \ 106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 108 LC_TELEPHONE LC_TIME 109do 110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 111 eval $as_var=C; export $as_var 112 else 113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 114 fi 115done 116 117# Required to use basename. 118if expr a : '\(a\)' >/dev/null 2>&1 && 119 test "X`expr 00001 : '.*\(...\)'`" = X001; then 120 as_expr=expr 121else 122 as_expr=false 123fi 124 125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 126 as_basename=basename 127else 128 as_basename=false 129fi 130 131 132# Name of the executable. 133as_me=`$as_basename -- "$0" || 134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 135 X"$0" : 'X\(//\)$' \| \ 136 X"$0" : 'X\(/\)' \| . 2>/dev/null || 137echo X/"$0" | 138 sed '/^.*\/\([^/][^/]*\)\/*$/{ 139 s//\1/ 140 q 141 } 142 /^X\/\(\/\/\)$/{ 143 s//\1/ 144 q 145 } 146 /^X\/\(\/\).*/{ 147 s//\1/ 148 q 149 } 150 s/.*/./; q'` 151 152# CDPATH. 153$as_unset CDPATH 154 155 156if test "x$CONFIG_SHELL" = x; then 157 if (eval ":") 2>/dev/null; then 158 as_have_required=yes 159else 160 as_have_required=no 161fi 162 163 if test $as_have_required = yes && (eval ": 164(as_func_return () { 165 (exit \$1) 166} 167as_func_success () { 168 as_func_return 0 169} 170as_func_failure () { 171 as_func_return 1 172} 173as_func_ret_success () { 174 return 0 175} 176as_func_ret_failure () { 177 return 1 178} 179 180exitcode=0 181if as_func_success; then 182 : 183else 184 exitcode=1 185 echo as_func_success failed. 186fi 187 188if as_func_failure; then 189 exitcode=1 190 echo as_func_failure succeeded. 191fi 192 193if as_func_ret_success; then 194 : 195else 196 exitcode=1 197 echo as_func_ret_success failed. 198fi 199 200if as_func_ret_failure; then 201 exitcode=1 202 echo as_func_ret_failure succeeded. 203fi 204 205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 206 : 207else 208 exitcode=1 209 echo positional parameters were not saved. 210fi 211 212test \$exitcode = 0) || { (exit 1); exit 1; } 213 214( 215 as_lineno_1=\$LINENO 216 as_lineno_2=\$LINENO 217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 219") 2> /dev/null; then 220 : 221else 222 as_candidate_shells= 223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 225do 226 IFS=$as_save_IFS 227 test -z "$as_dir" && as_dir=. 228 case $as_dir in 229 /*) 230 for as_base in sh bash ksh sh5; do 231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 232 done;; 233 esac 234done 235IFS=$as_save_IFS 236 237 238 for as_shell in $as_candidate_shells $SHELL; do 239 # Try only shells that exist, to save several forks. 240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 241 { ("$as_shell") 2> /dev/null <<\_ASEOF 242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 243 emulate sh 244 NULLCMD=: 245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 246 # is contrary to our usage. Disable this feature. 247 alias -g '${1+"$@"}'='"$@"' 248 setopt NO_GLOB_SUBST 249else 250 case `(set -o) 2>/dev/null` in 251 *posix*) set -o posix ;; 252esac 253 254fi 255 256 257: 258_ASEOF 259}; then 260 CONFIG_SHELL=$as_shell 261 as_have_required=yes 262 if { "$as_shell" 2> /dev/null <<\_ASEOF 263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 264 emulate sh 265 NULLCMD=: 266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 267 # is contrary to our usage. Disable this feature. 268 alias -g '${1+"$@"}'='"$@"' 269 setopt NO_GLOB_SUBST 270else 271 case `(set -o) 2>/dev/null` in 272 *posix*) set -o posix ;; 273esac 274 275fi 276 277 278: 279(as_func_return () { 280 (exit $1) 281} 282as_func_success () { 283 as_func_return 0 284} 285as_func_failure () { 286 as_func_return 1 287} 288as_func_ret_success () { 289 return 0 290} 291as_func_ret_failure () { 292 return 1 293} 294 295exitcode=0 296if as_func_success; then 297 : 298else 299 exitcode=1 300 echo as_func_success failed. 301fi 302 303if as_func_failure; then 304 exitcode=1 305 echo as_func_failure succeeded. 306fi 307 308if as_func_ret_success; then 309 : 310else 311 exitcode=1 312 echo as_func_ret_success failed. 313fi 314 315if as_func_ret_failure; then 316 exitcode=1 317 echo as_func_ret_failure succeeded. 318fi 319 320if ( set x; as_func_ret_success y && test x = "$1" ); then 321 : 322else 323 exitcode=1 324 echo positional parameters were not saved. 325fi 326 327test $exitcode = 0) || { (exit 1); exit 1; } 328 329( 330 as_lineno_1=$LINENO 331 as_lineno_2=$LINENO 332 test "x$as_lineno_1" != "x$as_lineno_2" && 333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 334 335_ASEOF 336}; then 337 break 338fi 339 340fi 341 342 done 343 344 if test "x$CONFIG_SHELL" != x; then 345 for as_var in BASH_ENV ENV 346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 347 done 348 export CONFIG_SHELL 349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 350fi 351 352 353 if test $as_have_required = no; then 354 echo This script requires a shell more modern than all the 355 echo shells that I found on your system. Please install a 356 echo modern shell, or manually run the script under such a 357 echo shell if you do have one. 358 { (exit 1); exit 1; } 359fi 360 361 362fi 363 364fi 365 366 367 368(eval "as_func_return () { 369 (exit \$1) 370} 371as_func_success () { 372 as_func_return 0 373} 374as_func_failure () { 375 as_func_return 1 376} 377as_func_ret_success () { 378 return 0 379} 380as_func_ret_failure () { 381 return 1 382} 383 384exitcode=0 385if as_func_success; then 386 : 387else 388 exitcode=1 389 echo as_func_success failed. 390fi 391 392if as_func_failure; then 393 exitcode=1 394 echo as_func_failure succeeded. 395fi 396 397if as_func_ret_success; then 398 : 399else 400 exitcode=1 401 echo as_func_ret_success failed. 402fi 403 404if as_func_ret_failure; then 405 exitcode=1 406 echo as_func_ret_failure succeeded. 407fi 408 409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 410 : 411else 412 exitcode=1 413 echo positional parameters were not saved. 414fi 415 416test \$exitcode = 0") || { 417 echo No shell found that supports shell functions. 418 echo Please tell autoconf@gnu.org about your system, 419 echo including any error possibly output before this 420 echo message 421} 422 423 424 425 as_lineno_1=$LINENO 426 as_lineno_2=$LINENO 427 test "x$as_lineno_1" != "x$as_lineno_2" && 428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 429 430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 431 # uniformly replaced by the line number. The first 'sed' inserts a 432 # line-number line after each line using $LINENO; the second 'sed' 433 # does the real work. The second script uses 'N' to pair each 434 # line-number line with the line containing $LINENO, and appends 435 # trailing '-' during substitution so that $LINENO is not a special 436 # case at line end. 437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 438 # scripts with optimization help from Paolo Bonzini. Blame Lee 439 # E. McMahon (1931-1989) for sed's syntax. :-) 440 sed -n ' 441 p 442 /[$]LINENO/= 443 ' <$as_myself | 444 sed ' 445 s/[$]LINENO.*/&-/ 446 t lineno 447 b 448 :lineno 449 N 450 :loop 451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 452 t loop 453 s/-\n.*// 454 ' >$as_me.lineno && 455 chmod +x "$as_me.lineno" || 456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 457 { (exit 1); exit 1; }; } 458 459 # Don't try to exec as it changes $[0], causing all sort of problems 460 # (the dirname of $[0] is not the place where we might find the 461 # original and so on. Autoconf is especially sensitive to this). 462 . "./$as_me.lineno" 463 # Exit status is that of the last command. 464 exit 465} 466 467 468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 469 as_dirname=dirname 470else 471 as_dirname=false 472fi 473 474ECHO_C= ECHO_N= ECHO_T= 475case `echo -n x` in 476-n*) 477 case `echo 'x\c'` in 478 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 479 *) ECHO_C='\c';; 480 esac;; 481*) 482 ECHO_N='-n';; 483esac 484 485if expr a : '\(a\)' >/dev/null 2>&1 && 486 test "X`expr 00001 : '.*\(...\)'`" = X001; then 487 as_expr=expr 488else 489 as_expr=false 490fi 491 492rm -f conf$$ conf$$.exe conf$$.file 493if test -d conf$$.dir; then 494 rm -f conf$$.dir/conf$$.file 495else 496 rm -f conf$$.dir 497 mkdir conf$$.dir 498fi 499echo >conf$$.file 500if ln -s conf$$.file conf$$ 2>/dev/null; then 501 as_ln_s='ln -s' 502 # ... but there are two gotchas: 503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 505 # In both cases, we have to default to `cp -p'. 506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 507 as_ln_s='cp -p' 508elif ln conf$$.file conf$$ 2>/dev/null; then 509 as_ln_s=ln 510else 511 as_ln_s='cp -p' 512fi 513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 514rmdir conf$$.dir 2>/dev/null 515 516if mkdir -p . 2>/dev/null; then 517 as_mkdir_p=: 518else 519 test -d ./-p && rmdir ./-p 520 as_mkdir_p=false 521fi 522 523if test -x / >/dev/null 2>&1; then 524 as_test_x='test -x' 525else 526 if ls -dL / >/dev/null 2>&1; then 527 as_ls_L_option=L 528 else 529 as_ls_L_option= 530 fi 531 as_test_x=' 532 eval sh -c '\'' 533 if test -d "$1"; then 534 test -d "$1/."; 535 else 536 case $1 in 537 -*)set "./$1";; 538 esac; 539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 540 ???[sx]*):;;*)false;;esac;fi 541 '\'' sh 542 ' 543fi 544as_executable_p=$as_test_x 545 546# Sed expression to map a string onto a valid CPP name. 547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 548 549# Sed expression to map a string onto a valid variable name. 550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 551 552 553 554 555# Check that we are running under the correct shell. 556SHELL=${CONFIG_SHELL-/bin/sh} 557 558case X$ECHO in 559X*--fallback-echo) 560 # Remove one level of quotation (which was required for Make). 561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 562 ;; 563esac 564 565echo=${ECHO-echo} 566if test "X$1" = X--no-reexec; then 567 # Discard the --no-reexec flag, and continue. 568 shift 569elif test "X$1" = X--fallback-echo; then 570 # Avoid inline document here, it may be left over 571 : 572elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 573 # Yippee, $echo works! 574 : 575else 576 # Restart under the correct shell. 577 exec $SHELL "$0" --no-reexec ${1+"$@"} 578fi 579 580if test "X$1" = X--fallback-echo; then 581 # used as fallback echo 582 shift 583 cat <<EOF 584$* 585EOF 586 exit 0 587fi 588 589# The HP-UX ksh and POSIX shell print the target directory to stdout 590# if CDPATH is set. 591(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 592 593if test -z "$ECHO"; then 594if test "X${echo_test_string+set}" != Xset; then 595# find a string as large as possible, as long as the shell can cope with it 596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 598 if (echo_test_string=`eval $cmd`) 2>/dev/null && 599 echo_test_string=`eval $cmd` && 600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 601 then 602 break 603 fi 604 done 605fi 606 607if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 609 test "X$echo_testing_string" = "X$echo_test_string"; then 610 : 611else 612 # The Solaris, AIX, and Digital Unix default echo programs unquote 613 # backslashes. This makes it impossible to quote backslashes using 614 # echo "$something" | sed 's/\\/\\\\/g' 615 # 616 # So, first we look for a working echo in the user's PATH. 617 618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 619 for dir in $PATH /usr/ucb; do 620 IFS="$lt_save_ifs" 621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 624 test "X$echo_testing_string" = "X$echo_test_string"; then 625 echo="$dir/echo" 626 break 627 fi 628 done 629 IFS="$lt_save_ifs" 630 631 if test "X$echo" = Xecho; then 632 # We didn't find a better echo, so look for alternatives. 633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 635 test "X$echo_testing_string" = "X$echo_test_string"; then 636 # This shell has a builtin print -r that does the trick. 637 echo='print -r' 638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 639 test "X$CONFIG_SHELL" != X/bin/ksh; then 640 # If we have ksh, try running configure again with it. 641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 642 export ORIGINAL_CONFIG_SHELL 643 CONFIG_SHELL=/bin/ksh 644 export CONFIG_SHELL 645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 646 else 647 # Try using printf. 648 echo='printf %s\n' 649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 651 test "X$echo_testing_string" = "X$echo_test_string"; then 652 # Cool, printf works 653 : 654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 655 test "X$echo_testing_string" = 'X\t' && 656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 657 test "X$echo_testing_string" = "X$echo_test_string"; then 658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 659 export CONFIG_SHELL 660 SHELL="$CONFIG_SHELL" 661 export SHELL 662 echo="$CONFIG_SHELL $0 --fallback-echo" 663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 664 test "X$echo_testing_string" = 'X\t' && 665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 666 test "X$echo_testing_string" = "X$echo_test_string"; then 667 echo="$CONFIG_SHELL $0 --fallback-echo" 668 else 669 # maybe with a smaller string... 670 prev=: 671 672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 674 then 675 break 676 fi 677 prev="$cmd" 678 done 679 680 if test "$prev" != 'sed 50q "$0"'; then 681 echo_test_string=`eval $prev` 682 export echo_test_string 683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 684 else 685 # Oops. We lost completely, so just stick with echo. 686 echo=echo 687 fi 688 fi 689 fi 690 fi 691fi 692fi 693 694# Copy echo and quote the copy suitably for passing to libtool from 695# the Makefile, instead of quoting the original, which is used later. 696ECHO=$echo 697if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 699fi 700 701 702 703 704tagnames=${tagnames+${tagnames},}CXX 705 706tagnames=${tagnames+${tagnames},}F77 707 708exec 7<&0 </dev/null 6>&1 709 710# Name of the host. 711# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 712# so uname gets run too. 713ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 714 715# 716# Initializations. 717# 718ac_default_prefix=/usr/local 719ac_clean_files= 720ac_config_libobj_dir=. 721LIBOBJS= 722cross_compiling=no 723subdirs= 724MFLAGS= 725MAKEFLAGS= 726SHELL=${CONFIG_SHELL-/bin/sh} 727 728# Identity of this package. 729PACKAGE_NAME='sablevm' 730PACKAGE_TARNAME='sablevm' 731PACKAGE_VERSION='1.13' 732PACKAGE_STRING='sablevm 1.13' 733PACKAGE_BUGREPORT='http://sablevm.org/' 734 735ac_unique_file="src/sablevm/sablevm.c" 736# Factoring default headers for most tests. 737ac_includes_default="\ 738#include <stdio.h> 739#ifdef HAVE_SYS_TYPES_H 740# include <sys/types.h> 741#endif 742#ifdef HAVE_SYS_STAT_H 743# include <sys/stat.h> 744#endif 745#ifdef STDC_HEADERS 746# include <stdlib.h> 747# include <stddef.h> 748#else 749# ifdef HAVE_STDLIB_H 750# include <stdlib.h> 751# endif 752#endif 753#ifdef HAVE_STRING_H 754# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 755# include <memory.h> 756# endif 757# include <string.h> 758#endif 759#ifdef HAVE_STRINGS_H 760# include <strings.h> 761#endif 762#ifdef HAVE_INTTYPES_H 763# include <inttypes.h> 764#endif 765#ifdef HAVE_STDINT_H 766# include <stdint.h> 767#endif 768#ifdef HAVE_UNISTD_H 769# include <unistd.h> 770#endif" 771 772ac_subst_vars='SHELL 773PATH_SEPARATOR 774PACKAGE_NAME 775PACKAGE_TARNAME 776PACKAGE_VERSION 777PACKAGE_STRING 778PACKAGE_BUGREPORT 779exec_prefix 780prefix 781program_transform_name 782bindir 783sbindir 784libexecdir 785datarootdir 786datadir 787sysconfdir 788sharedstatedir 789localstatedir 790includedir 791oldincludedir 792docdir 793infodir 794htmldir 795dvidir 796pdfdir 797psdir 798libdir 799localedir 800mandir 801DEFS 802ECHO_C 803ECHO_N 804ECHO_T 805LIBS 806build_alias 807host_alias 808target_alias 809INSTALL_PROGRAM 810INSTALL_SCRIPT 811INSTALL_DATA 812CYGPATH_W 813PACKAGE 814VERSION 815ACLOCAL 816AUTOCONF 817AUTOMAKE 818AUTOHEADER 819MAKEINFO 820install_sh 821STRIP 822INSTALL_STRIP_PROGRAM 823mkdir_p 824AWK 825SET_MAKE 826am__leading_dot 827AMTAR 828am__tar 829am__untar 830LIBRELEASE 831RELEASE 832build 833build_cpu 834build_vendor 835build_os 836host 837host_cpu 838host_vendor 839host_os 840inlinability_testing 841JIKES 842FASTJAR 843CC 844CFLAGS 845LDFLAGS 846CPPFLAGS 847ac_ct_CC 848EXEEXT 849OBJEXT 850DEPDIR 851am__include 852am__quote 853AMDEP_TRUE 854AMDEP_FALSE 855AMDEPBACKSLASH 856CCDEPMODE 857am__fastdepCC_TRUE 858am__fastdepCC_FALSE 859CPP 860LN_S 861GREP 862EGREP 863ECHO 864AR 865RANLIB 866CXX 867CXXFLAGS 868ac_ct_CXX 869CXXDEPMODE 870am__fastdepCXX_TRUE 871am__fastdepCXX_FALSE 872CXXCPP 873F77 874FFLAGS 875ac_ct_F77 876LIBTOOL 877subdirs 878CONV_LIBFFI_TRUE 879CONV_LIBFFI_FALSE 880CONV_LIBPOPT_TRUE 881CONV_LIBPOPT_FALSE 882LIBSVMADD 883LIBSVMINCLUDE 884SVMADD 885SVMINCLUDE 886NO_UNDEFINED 887M4 888LIBOBJS 889LTLIBOBJS' 890ac_subst_files='' 891 ac_precious_vars='build_alias 892host_alias 893target_alias 894CC 895CFLAGS 896LDFLAGS 897LIBS 898CPPFLAGS 899CPP 900CXX 901CXXFLAGS 902CCC 903CXXCPP 904F77 905FFLAGS' 906ac_subdirs_all='src/libffi 907src/libpopt' 908 909# Initialize some variables set by options. 910ac_init_help= 911ac_init_version=false 912# The variables have the same names as the options, with 913# dashes changed to underlines. 914cache_file=/dev/null 915exec_prefix=NONE 916no_create= 917no_recursion= 918prefix=NONE 919program_prefix=NONE 920program_suffix=NONE 921program_transform_name=s,x,x, 922silent= 923site= 924srcdir= 925verbose= 926x_includes=NONE 927x_libraries=NONE 928 929# Installation directory options. 930# These are left unexpanded so users can "make install exec_prefix=/foo" 931# and all the variables that are supposed to be based on exec_prefix 932# by default will actually change. 933# Use braces instead of parens because sh, perl, etc. also accept them. 934# (The list follows the same order as the GNU Coding Standards.) 935bindir='${exec_prefix}/bin' 936sbindir='${exec_prefix}/sbin' 937libexecdir='${exec_prefix}/libexec' 938datarootdir='${prefix}/share' 939datadir='${datarootdir}' 940sysconfdir='${prefix}/etc' 941sharedstatedir='${prefix}/com' 942localstatedir='${prefix}/var' 943includedir='${prefix}/include' 944oldincludedir='/usr/include' 945docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 946infodir='${datarootdir}/info' 947htmldir='${docdir}' 948dvidir='${docdir}' 949pdfdir='${docdir}' 950psdir='${docdir}' 951libdir='${exec_prefix}/lib' 952localedir='${datarootdir}/locale' 953mandir='${datarootdir}/man' 954 955ac_prev= 956ac_dashdash= 957for ac_option 958do 959 # If the previous option needs an argument, assign it. 960 if test -n "$ac_prev"; then 961 eval $ac_prev=\$ac_option 962 ac_prev= 963 continue 964 fi 965 966 case $ac_option in 967 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 968 *) ac_optarg=yes ;; 969 esac 970 971 # Accept the important Cygnus configure options, so we can diagnose typos. 972 973 case $ac_dashdash$ac_option in 974 --) 975 ac_dashdash=yes ;; 976 977 -bindir | --bindir | --bindi | --bind | --bin | --bi) 978 ac_prev=bindir ;; 979 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 980 bindir=$ac_optarg ;; 981 982 -build | --build | --buil | --bui | --bu) 983 ac_prev=build_alias ;; 984 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 985 build_alias=$ac_optarg ;; 986 987 -cache-file | --cache-file | --cache-fil | --cache-fi \ 988 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 989 ac_prev=cache_file ;; 990 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 991 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 992 cache_file=$ac_optarg ;; 993 994 --config-cache | -C) 995 cache_file=config.cache ;; 996 997 -datadir | --datadir | --datadi | --datad) 998 ac_prev=datadir ;; 999 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1000 datadir=$ac_optarg ;; 1001 1002 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1003 | --dataroo | --dataro | --datar) 1004 ac_prev=datarootdir ;; 1005 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1006 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1007 datarootdir=$ac_optarg ;; 1008 1009 -disable-* | --disable-*) 1010 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1011 # Reject names that are not valid shell variable names. 1012 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1013 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1014 { (exit 1); exit 1; }; } 1015 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1016 eval enable_$ac_feature=no ;; 1017 1018 -docdir | --docdir | --docdi | --doc | --do) 1019 ac_prev=docdir ;; 1020 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1021 docdir=$ac_optarg ;; 1022 1023 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1024 ac_prev=dvidir ;; 1025 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1026 dvidir=$ac_optarg ;; 1027 1028 -enable-* | --enable-*) 1029 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1030 # Reject names that are not valid shell variable names. 1031 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1032 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1033 { (exit 1); exit 1; }; } 1034 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1035 eval enable_$ac_feature=\$ac_optarg ;; 1036 1037 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1038 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1039 | --exec | --exe | --ex) 1040 ac_prev=exec_prefix ;; 1041 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1042 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1043 | --exec=* | --exe=* | --ex=*) 1044 exec_prefix=$ac_optarg ;; 1045 1046 -gas | --gas | --ga | --g) 1047 # Obsolete; use --with-gas. 1048 with_gas=yes ;; 1049 1050 -help | --help | --hel | --he | -h) 1051 ac_init_help=long ;; 1052 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1053 ac_init_help=recursive ;; 1054 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1055 ac_init_help=short ;; 1056 1057 -host | --host | --hos | --ho) 1058 ac_prev=host_alias ;; 1059 -host=* | --host=* | --hos=* | --ho=*) 1060 host_alias=$ac_optarg ;; 1061 1062 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1063 ac_prev=htmldir ;; 1064 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1065 | --ht=*) 1066 htmldir=$ac_optarg ;; 1067 1068 -includedir | --includedir | --includedi | --included | --include \ 1069 | --includ | --inclu | --incl | --inc) 1070 ac_prev=includedir ;; 1071 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1072 | --includ=* | --inclu=* | --incl=* | --inc=*) 1073 includedir=$ac_optarg ;; 1074 1075 -infodir | --infodir | --infodi | --infod | --info | --inf) 1076 ac_prev=infodir ;; 1077 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1078 infodir=$ac_optarg ;; 1079 1080 -libdir | --libdir | --libdi | --libd) 1081 ac_prev=libdir ;; 1082 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1083 libdir=$ac_optarg ;; 1084 1085 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1086 | --libexe | --libex | --libe) 1087 ac_prev=libexecdir ;; 1088 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1089 | --libexe=* | --libex=* | --libe=*) 1090 libexecdir=$ac_optarg ;; 1091 1092 -localedir | --localedir | --localedi | --localed | --locale) 1093 ac_prev=localedir ;; 1094 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1095 localedir=$ac_optarg ;; 1096 1097 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1098 | --localstate | --localstat | --localsta | --localst | --locals) 1099 ac_prev=localstatedir ;; 1100 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1101 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1102 localstatedir=$ac_optarg ;; 1103 1104 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1105 ac_prev=mandir ;; 1106 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1107 mandir=$ac_optarg ;; 1108 1109 -nfp | --nfp | --nf) 1110 # Obsolete; use --without-fp. 1111 with_fp=no ;; 1112 1113 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1114 | --no-cr | --no-c | -n) 1115 no_create=yes ;; 1116 1117 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1118 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1119 no_recursion=yes ;; 1120 1121 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1122 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1123 | --oldin | --oldi | --old | --ol | --o) 1124 ac_prev=oldincludedir ;; 1125 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1126 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1127 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1128 oldincludedir=$ac_optarg ;; 1129 1130 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1131 ac_prev=prefix ;; 1132 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1133 prefix=$ac_optarg ;; 1134 1135 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1136 | --program-pre | --program-pr | --program-p) 1137 ac_prev=program_prefix ;; 1138 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1139 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1140 program_prefix=$ac_optarg ;; 1141 1142 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1143 | --program-suf | --program-su | --program-s) 1144 ac_prev=program_suffix ;; 1145 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1146 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1147 program_suffix=$ac_optarg ;; 1148 1149 -program-transform-name | --program-transform-name \ 1150 | --program-transform-nam | --program-transform-na \ 1151 | --program-transform-n | --program-transform- \ 1152 | --program-transform | --program-transfor \ 1153 | --program-transfo | --program-transf \ 1154 | --program-trans | --program-tran \ 1155 | --progr-tra | --program-tr | --program-t) 1156 ac_prev=program_transform_name ;; 1157 -program-transform-name=* | --program-transform-name=* \ 1158 | --program-transform-nam=* | --program-transform-na=* \ 1159 | --program-transform-n=* | --program-transform-=* \ 1160 | --program-transform=* | --program-transfor=* \ 1161 | --program-transfo=* | --program-transf=* \ 1162 | --program-trans=* | --program-tran=* \ 1163 | --progr-tra=* | --program-tr=* | --program-t=*) 1164 program_transform_name=$ac_optarg ;; 1165 1166 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1167 ac_prev=pdfdir ;; 1168 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1169 pdfdir=$ac_optarg ;; 1170 1171 -psdir | --psdir | --psdi | --psd | --ps) 1172 ac_prev=psdir ;; 1173 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1174 psdir=$ac_optarg ;; 1175 1176 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1177 | -silent | --silent | --silen | --sile | --sil) 1178 silent=yes ;; 1179 1180 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1181 ac_prev=sbindir ;; 1182 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1183 | --sbi=* | --sb=*) 1184 sbindir=$ac_optarg ;; 1185 1186 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1187 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1188 | --sharedst | --shareds | --shared | --share | --shar \ 1189 | --sha | --sh) 1190 ac_prev=sharedstatedir ;; 1191 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1192 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1193 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1194 | --sha=* | --sh=*) 1195 sharedstatedir=$ac_optarg ;; 1196 1197 -site | --site | --sit) 1198 ac_prev=site ;; 1199 -site=* | --site=* | --sit=*) 1200 site=$ac_optarg ;; 1201 1202 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1203 ac_prev=srcdir ;; 1204 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1205 srcdir=$ac_optarg ;; 1206 1207 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1208 | --syscon | --sysco | --sysc | --sys | --sy) 1209 ac_prev=sysconfdir ;; 1210 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1211 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1212 sysconfdir=$ac_optarg ;; 1213 1214 -target | --target | --targe | --targ | --tar | --ta | --t) 1215 ac_prev=target_alias ;; 1216 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1217 target_alias=$ac_optarg ;; 1218 1219 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1220 verbose=yes ;; 1221 1222 -version | --version | --versio | --versi | --vers | -V) 1223 ac_init_version=: ;; 1224 1225 -with-* | --with-*) 1226 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1227 # Reject names that are not valid shell variable names. 1228 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1229 { echo "$as_me: error: invalid package name: $ac_package" >&2 1230 { (exit 1); exit 1; }; } 1231 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1232 eval with_$ac_package=\$ac_optarg ;; 1233 1234 -without-* | --without-*) 1235 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1236 # Reject names that are not valid shell variable names. 1237 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1238 { echo "$as_me: error: invalid package name: $ac_package" >&2 1239 { (exit 1); exit 1; }; } 1240 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1241 eval with_$ac_package=no ;; 1242 1243 --x) 1244 # Obsolete; use --with-x. 1245 with_x=yes ;; 1246 1247 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1248 | --x-incl | --x-inc | --x-in | --x-i) 1249 ac_prev=x_includes ;; 1250 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1251 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1252 x_includes=$ac_optarg ;; 1253 1254 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1255 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1256 ac_prev=x_libraries ;; 1257 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1258 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1259 x_libraries=$ac_optarg ;; 1260 1261 -*) { echo "$as_me: error: unrecognized option: $ac_option 1262Try \`$0 --help' for more information." >&2 1263 { (exit 1); exit 1; }; } 1264 ;; 1265 1266 *=*) 1267 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1268 # Reject names that are not valid shell variable names. 1269 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1270 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1271 { (exit 1); exit 1; }; } 1272 eval $ac_envvar=\$ac_optarg 1273 export $ac_envvar ;; 1274 1275 *) 1276 # FIXME: should be removed in autoconf 3.0. 1277 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1278 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1279 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1280 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1281 ;; 1282 1283 esac 1284done 1285 1286if test -n "$ac_prev"; then 1287 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1288 { echo "$as_me: error: missing argument to $ac_option" >&2 1289 { (exit 1); exit 1; }; } 1290fi 1291 1292# Be sure to have absolute directory names. 1293for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1294 datadir sysconfdir sharedstatedir localstatedir includedir \ 1295 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1296 libdir localedir mandir 1297do 1298 eval ac_val=\$$ac_var 1299 case $ac_val in 1300 [\\/$]* | ?:[\\/]* ) continue;; 1301 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1302 esac 1303 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1304 { (exit 1); exit 1; }; } 1305done 1306 1307# There might be people who depend on the old broken behavior: `$host' 1308# used to hold the argument of --host etc. 1309# FIXME: To remove some day. 1310build=$build_alias 1311host=$host_alias 1312target=$target_alias 1313 1314# FIXME: To remove some day. 1315if test "x$host_alias" != x; then 1316 if test "x$build_alias" = x; then 1317 cross_compiling=maybe 1318 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1319 If a cross compiler is detected then cross compile mode will be used." >&2 1320 elif test "x$build_alias" != "x$host_alias"; then 1321 cross_compiling=yes 1322 fi 1323fi 1324 1325ac_tool_prefix= 1326test -n "$host_alias" && ac_tool_prefix=$host_alias- 1327 1328test "$silent" = yes && exec 6>/dev/null 1329 1330 1331ac_pwd=`pwd` && test -n "$ac_pwd" && 1332ac_ls_di=`ls -di .` && 1333ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1334 { echo "$as_me: error: Working directory cannot be determined" >&2 1335 { (exit 1); exit 1; }; } 1336test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1337 { echo "$as_me: error: pwd does not report name of working directory" >&2 1338 { (exit 1); exit 1; }; } 1339 1340 1341# Find the source files, if location was not specified. 1342if test -z "$srcdir"; then 1343 ac_srcdir_defaulted=yes 1344 # Try the directory containing this script, then the parent directory. 1345 ac_confdir=`$as_dirname -- "$0" || 1346$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1347 X"$0" : 'X\(//\)[^/]' \| \ 1348 X"$0" : 'X\(//\)$' \| \ 1349 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1350echo X"$0" | 1351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1352 s//\1/ 1353 q 1354 } 1355 /^X\(\/\/\)[^/].*/{ 1356 s//\1/ 1357 q 1358 } 1359 /^X\(\/\/\)$/{ 1360 s//\1/ 1361 q 1362 } 1363 /^X\(\/\).*/{ 1364 s//\1/ 1365 q 1366 } 1367 s/.*/./; q'` 1368 srcdir=$ac_confdir 1369 if test ! -r "$srcdir/$ac_unique_file"; then 1370 srcdir=.. 1371 fi 1372else 1373 ac_srcdir_defaulted=no 1374fi 1375if test ! -r "$srcdir/$ac_unique_file"; then 1376 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1377 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1378 { (exit 1); exit 1; }; } 1379fi 1380ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1381ac_abs_confdir=`( 1382 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1383 { (exit 1); exit 1; }; } 1384 pwd)` 1385# When building in place, set srcdir=. 1386if test "$ac_abs_confdir" = "$ac_pwd"; then 1387 srcdir=. 1388fi 1389# Remove unnecessary trailing slashes from srcdir. 1390# Double slashes in file names in object file debugging info 1391# mess up M-x gdb in Emacs. 1392case $srcdir in 1393*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1394esac 1395for ac_var in $ac_precious_vars; do 1396 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1397 eval ac_env_${ac_var}_value=\$${ac_var} 1398 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1399 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1400done 1401 1402# 1403# Report the --help message. 1404# 1405if test "$ac_init_help" = "long"; then 1406 # Omit some internal or obsolete options to make the list less imposing. 1407 # This message is too long to be a string in the A/UX 3.1 sh. 1408 cat <<_ACEOF 1409\`configure' configures sablevm 1.13 to adapt to many kinds of systems. 1410 1411Usage: $0 [OPTION]... [VAR=VALUE]... 1412 1413To assign environment variables (e.g., CC, CFLAGS...), specify them as 1414VAR=VALUE. See below for descriptions of some of the useful variables. 1415 1416Defaults for the options are specified in brackets. 1417 1418Configuration: 1419 -h, --help display this help and exit 1420 --help=short display options specific to this package 1421 --help=recursive display the short help of all the included packages 1422 -V, --version display version information and exit 1423 -q, --quiet, --silent do not print \`checking...' messages 1424 --cache-file=FILE cache test results in FILE [disabled] 1425 -C, --config-cache alias for \`--cache-file=config.cache' 1426 -n, --no-create do not create output files 1427 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1428 1429Installation directories: 1430 --prefix=PREFIX install architecture-independent files in PREFIX 1431 [$ac_default_prefix] 1432 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1433 [PREFIX] 1434 1435By default, \`make install' will install all the files in 1436\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1437an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1438for instance \`--prefix=\$HOME'. 1439 1440For better control, use the options below. 1441 1442Fine tuning of the installation directories: 1443 --bindir=DIR user executables [EPREFIX/bin] 1444 --sbindir=DIR system admin executables [EPREFIX/sbin] 1445 --libexecdir=DIR program executables [EPREFIX/libexec] 1446 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1447 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1448 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1449 --libdir=DIR object code libraries [EPREFIX/lib] 1450 --includedir=DIR C header files [PREFIX/include] 1451 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1452 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1453 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1454 --infodir=DIR info documentation [DATAROOTDIR/info] 1455 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1456 --mandir=DIR man documentation [DATAROOTDIR/man] 1457 --docdir=DIR documentation root [DATAROOTDIR/doc/sablevm] 1458 --htmldir=DIR html documentation [DOCDIR] 1459 --dvidir=DIR dvi documentation [DOCDIR] 1460 --pdfdir=DIR pdf documentation [DOCDIR] 1461 --psdir=DIR ps documentation [DOCDIR] 1462_ACEOF 1463 1464 cat <<\_ACEOF 1465 1466Program names: 1467 --program-prefix=PREFIX prepend PREFIX to installed program names 1468 --program-suffix=SUFFIX append SUFFIX to installed program names 1469 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1470 1471System types: 1472 --build=BUILD configure for building on BUILD [guessed] 1473 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1474_ACEOF 1475fi 1476 1477if test -n "$ac_init_help"; then 1478 case $ac_init_help in 1479 short | recursive ) echo "Configuration of sablevm 1.13:";; 1480 esac 1481 cat <<\_ACEOF 1482 1483Optional Features: 1484 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1485 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1486 --enable-static[=PKGS] build static libraries [default=no] 1487 --enable-magic 1488 put "SableVM" in every object instance header 1489 --enable-statistics 1490 print statistics on VM exit 1491 --enable-real-life-brokenness 1492 enable things we don't support well and/or we don't 1493 want to support (because of their broken nature) 1494 --enable-inlinability-testing 1495 special mode to catch non-inlinable instructions 1496 --enable-debugging-features 1497 add compiler and runtime checks 1498 --disable-signals-for-exceptions 1499 do not use signals to detect some exceptions 1500 (NullPointerException, ArithmeticException, etc.) 1501 --disable-no-reorder-blocks 1502 do not use -fno-reorder-blocks (useful with gcc 2.95) 1503 --disable-errors-on-warnings 1504 do not issue an error on warnings 1505 --disable-dependency-tracking speeds up one-time build 1506 --enable-dependency-tracking do not reject slow dependency extractors 1507 --enable-shared[=PKGS] build shared libraries [default=yes] 1508 --enable-fast-install[=PKGS] 1509 optimize for fast installation [default=yes] 1510 --disable-libtool-lock avoid locking (might break parallel builds) 1511 1512Optional Packages: 1513 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1514 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1515 --with-gc=TYPE use given garbage collector (none,copying,gencopy) 1516 --with-obj-layout=TYPE use given object layout (bidirectional,traditional) 1517 --with-threading=TYPE use given interpreter threading flavor 1518 (inlined,direct,switch) 1519 --with-profiling=TYPE enable profiling (nostatic,gprof) 1520 --with-internal-libffi use built-in libffi(auto,yes,no) 1521 --with-internal-libpopt use built-in libpopt(auto,yes,no) 1522 --with-jikes=/path/to/jikes use specified jikes as javac 1523 --with-fastjar=/path/to/fastjar use specified fastjar 1524 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1525 --with-pic try to use only PIC/non-PIC objects [default=use 1526 both] 1527 --with-tags[=TAGS] include additional configurations [automatic] 1528 1529Some influential environment variables: 1530 CC C compiler command 1531 CFLAGS C compiler flags 1532 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1533 nonstandard directory <lib dir> 1534 LIBS libraries to pass to the linker, e.g. -l<library> 1535 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1536 you have headers in a nonstandard directory <include dir> 1537 CPP C preprocessor 1538 CXX C++ compiler command 1539 CXXFLAGS C++ compiler flags 1540 CXXCPP C++ preprocessor 1541 F77 Fortran 77 compiler command 1542 FFLAGS Fortran 77 compiler flags 1543 1544Use these variables to override the choices made by `configure' or to help 1545it to find libraries and programs with nonstandard names/locations. 1546 1547Report bugs to <http://sablevm.org/>. 1548_ACEOF 1549ac_status=$? 1550fi 1551 1552if test "$ac_init_help" = "recursive"; then 1553 # If there are subdirs, report their specific --help. 1554 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1555 test -d "$ac_dir" || continue 1556 ac_builddir=. 1557 1558case "$ac_dir" in 1559.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1560*) 1561 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1562 # A ".." for each directory in $ac_dir_suffix. 1563 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1564 case $ac_top_builddir_sub in 1565 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1566 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1567 esac ;; 1568esac 1569ac_abs_top_builddir=$ac_pwd 1570ac_abs_builddir=$ac_pwd$ac_dir_suffix 1571# for backward compatibility: 1572ac_top_builddir=$ac_top_build_prefix 1573 1574case $srcdir in 1575 .) # We are building in place. 1576 ac_srcdir=. 1577 ac_top_srcdir=$ac_top_builddir_sub 1578 ac_abs_top_srcdir=$ac_pwd ;; 1579 [\\/]* | ?:[\\/]* ) # Absolute name. 1580 ac_srcdir=$srcdir$ac_dir_suffix; 1581 ac_top_srcdir=$srcdir 1582 ac_abs_top_srcdir=$srcdir ;; 1583 *) # Relative name. 1584 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1585 ac_top_srcdir=$ac_top_build_prefix$srcdir 1586 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1587esac 1588ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1589 1590 cd "$ac_dir" || { ac_status=$?; continue; } 1591 # Check for guested configure. 1592 if test -f "$ac_srcdir/configure.gnu"; then 1593 echo && 1594 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1595 elif test -f "$ac_srcdir/configure"; then 1596 echo && 1597 $SHELL "$ac_srcdir/configure" --help=recursive 1598 else 1599 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1600 fi || ac_status=$? 1601 cd "$ac_pwd" || { ac_status=$?; break; } 1602 done 1603fi 1604 1605test -n "$ac_init_help" && exit $ac_status 1606if $ac_init_version; then 1607 cat <<\_ACEOF 1608sablevm configure 1.13 1609generated by GNU Autoconf 2.61 1610 1611Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 16122002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1613This configure script is free software; the Free Software Foundation 1614gives unlimited permission to copy, distribute and modify it. 1615_ACEOF 1616 exit 1617fi 1618cat >config.log <<_ACEOF 1619This file contains any messages produced by compilers while 1620running configure, to aid debugging if configure makes a mistake. 1621 1622It was created by sablevm $as_me 1.13, which was 1623generated by GNU Autoconf 2.61. Invocation command line was 1624 1625 $ $0 $@ 1626 1627_ACEOF 1628exec 5>>config.log 1629{ 1630cat <<_ASUNAME 1631## --------- ## 1632## Platform. ## 1633## --------- ## 1634 1635hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1636uname -m = `(uname -m) 2>/dev/null || echo unknown` 1637uname -r = `(uname -r) 2>/dev/null || echo unknown` 1638uname -s = `(uname -s) 2>/dev/null || echo unknown` 1639uname -v = `(uname -v) 2>/dev/null || echo unknown` 1640 1641/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1642/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1643 1644/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1645/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1646/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1647/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1648/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1649/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1650/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1651 1652_ASUNAME 1653 1654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1655for as_dir in $PATH 1656do 1657 IFS=$as_save_IFS 1658 test -z "$as_dir" && as_dir=. 1659 echo "PATH: $as_dir" 1660done 1661IFS=$as_save_IFS 1662 1663} >&5 1664 1665cat >&5 <<_ACEOF 1666 1667 1668## ----------- ## 1669## Core tests. ## 1670## ----------- ## 1671 1672_ACEOF 1673 1674 1675# Keep a trace of the command line. 1676# Strip out --no-create and --no-recursion so they do not pile up. 1677# Strip out --silent because we don't want to record it for future runs. 1678# Also quote any args containing shell meta-characters. 1679# Make two passes to allow for proper duplicate-argument suppression. 1680ac_configure_args= 1681ac_configure_args0= 1682ac_configure_args1= 1683ac_must_keep_next=false 1684for ac_pass in 1 2 1685do 1686 for ac_arg 1687 do 1688 case $ac_arg in 1689 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1690 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1691 | -silent | --silent | --silen | --sile | --sil) 1692 continue ;; 1693 *\'*) 1694 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1695 esac 1696 case $ac_pass in 1697 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1698 2) 1699 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1700 if test $ac_must_keep_next = true; then 1701 ac_must_keep_next=false # Got value, back to normal. 1702 else 1703 case $ac_arg in 1704 *=* | --config-cache | -C | -disable-* | --disable-* \ 1705 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1706 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1707 | -with-* | --with-* | -without-* | --without-* | --x) 1708 case "$ac_configure_args0 " in 1709 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1710 esac 1711 ;; 1712 -* ) ac_must_keep_next=true ;; 1713 esac 1714 fi 1715 ac_configure_args="$ac_configure_args '$ac_arg'" 1716 ;; 1717 esac 1718 done 1719done 1720$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1721$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1722 1723# When interrupted or exit'd, cleanup temporary files, and complete 1724# config.log. We remove comments because anyway the quotes in there 1725# would cause problems or look ugly. 1726# WARNING: Use '\'' to represent an apostrophe within the trap. 1727# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1728trap 'exit_status=$? 1729 # Save into config.log some information that might help in debugging. 1730 { 1731 echo 1732 1733 cat <<\_ASBOX 1734## ---------------- ## 1735## Cache variables. ## 1736## ---------------- ## 1737_ASBOX 1738 echo 1739 # The following way of writing the cache mishandles newlines in values, 1740( 1741 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1742 eval ac_val=\$$ac_var 1743 case $ac_val in #( 1744 *${as_nl}*) 1745 case $ac_var in #( 1746 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1747echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1748 esac 1749 case $ac_var in #( 1750 _ | IFS | as_nl) ;; #( 1751 *) $as_unset $ac_var ;; 1752 esac ;; 1753 esac 1754 done 1755 (set) 2>&1 | 1756 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1757 *${as_nl}ac_space=\ *) 1758 sed -n \ 1759 "s/'\''/'\''\\\\'\'''\''/g; 1760 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1761 ;; #( 1762 *) 1763 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1764 ;; 1765 esac | 1766 sort 1767) 1768 echo 1769 1770 cat <<\_ASBOX 1771## ----------------- ## 1772## Output variables. ## 1773## ----------------- ## 1774_ASBOX 1775 echo 1776 for ac_var in $ac_subst_vars 1777 do 1778 eval ac_val=\$$ac_var 1779 case $ac_val in 1780 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1781 esac 1782 echo "$ac_var='\''$ac_val'\''" 1783 done | sort 1784 echo 1785 1786 if test -n "$ac_subst_files"; then 1787 cat <<\_ASBOX 1788## ------------------- ## 1789## File substitutions. ## 1790## ------------------- ## 1791_ASBOX 1792 echo 1793 for ac_var in $ac_subst_files 1794 do 1795 eval ac_val=\$$ac_var 1796 case $ac_val in 1797 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1798 esac 1799 echo "$ac_var='\''$ac_val'\''" 1800 done | sort 1801 echo 1802 fi 1803 1804 if test -s confdefs.h; then 1805 cat <<\_ASBOX 1806## ----------- ## 1807## confdefs.h. ## 1808## ----------- ## 1809_ASBOX 1810 echo 1811 cat confdefs.h 1812 echo 1813 fi 1814 test "$ac_signal" != 0 && 1815 echo "$as_me: caught signal $ac_signal" 1816 echo "$as_me: exit $exit_status" 1817 } >&5 1818 rm -f core *.core core.conftest.* && 1819 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1820 exit $exit_status 1821' 0 1822for ac_signal in 1 2 13 15; do 1823 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1824done 1825ac_signal=0 1826 1827# confdefs.h avoids OS command line length limits that DEFS can exceed. 1828rm -f -r conftest* confdefs.h 1829 1830# Predefined preprocessor variables. 1831 1832cat >>confdefs.h <<_ACEOF 1833#define PACKAGE_NAME "$PACKAGE_NAME" 1834_ACEOF 1835 1836 1837cat >>confdefs.h <<_ACEOF 1838#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1839_ACEOF 1840 1841 1842cat >>confdefs.h <<_ACEOF 1843#define PACKAGE_VERSION "$PACKAGE_VERSION" 1844_ACEOF 1845 1846 1847cat >>confdefs.h <<_ACEOF 1848#define PACKAGE_STRING "$PACKAGE_STRING" 1849_ACEOF 1850 1851 1852cat >>confdefs.h <<_ACEOF 1853#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1854_ACEOF 1855 1856 1857# Let the site file select an alternate cache file if it wants to. 1858# Prefer explicitly selected file to automatically selected ones. 1859if test -n "$CONFIG_SITE"; then 1860 set x "$CONFIG_SITE" 1861elif test "x$prefix" != xNONE; then 1862 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1863else 1864 set x "$ac_default_prefix/share/config.site" \ 1865 "$ac_default_prefix/etc/config.site" 1866fi 1867shift 1868for ac_site_file 1869do 1870 if test -r "$ac_site_file"; then 1871 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1872echo "$as_me: loading site script $ac_site_file" >&6;} 1873 sed 's/^/| /' "$ac_site_file" >&5 1874 . "$ac_site_file" 1875 fi 1876done 1877 1878if test -r "$cache_file"; then 1879 # Some versions of bash will fail to source /dev/null (special 1880 # files actually), so we avoid doing that. 1881 if test -f "$cache_file"; then 1882 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1883echo "$as_me: loading cache $cache_file" >&6;} 1884 case $cache_file in 1885 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1886 *) . "./$cache_file";; 1887 esac 1888 fi 1889else 1890 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1891echo "$as_me: creating cache $cache_file" >&6;} 1892 >$cache_file 1893fi 1894 1895# Check that the precious variables saved in the cache have kept the same 1896# value. 1897ac_cache_corrupted=false 1898for ac_var in $ac_precious_vars; do 1899 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1900 eval ac_new_set=\$ac_env_${ac_var}_set 1901 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1902 eval ac_new_val=\$ac_env_${ac_var}_value 1903 case $ac_old_set,$ac_new_set in 1904 set,) 1905 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1906echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1907 ac_cache_corrupted=: ;; 1908 ,set) 1909 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1910echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1911 ac_cache_corrupted=: ;; 1912 ,);; 1913 *) 1914 if test "x$ac_old_val" != "x$ac_new_val"; then 1915 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1916echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1917 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1918echo "$as_me: former value: $ac_old_val" >&2;} 1919 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1920echo "$as_me: current value: $ac_new_val" >&2;} 1921 ac_cache_corrupted=: 1922 fi;; 1923 esac 1924 # Pass precious variables to config.status. 1925 if test "$ac_new_set" = set; then 1926 case $ac_new_val in 1927 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1928 *) ac_arg=$ac_var=$ac_new_val ;; 1929 esac 1930 case " $ac_configure_args " in 1931 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1932 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1933 esac 1934 fi 1935done 1936if $ac_cache_corrupted; then 1937 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1938echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1939 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1940echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1941 { (exit 1); exit 1; }; } 1942fi 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968ac_ext=c 1969ac_cpp='$CPP $CPPFLAGS' 1970ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1971ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1972ac_compiler_gnu=$ac_cv_c_compiler_gnu 1973 1974 1975if test -d .svn ; then 1976 SVN_URL=`svn info | grep ^URL\: | cut -c6- | grep -v '/sablevm/trunk$' | grep -v '/tags/'` 1977 if test "x$SVN_URL" != "x" ; then 1978 case $PACKAGE_VERSION in 1979 trunk+*) echo "$PACKAGE_VERSION is not an appropriate branch version" 1980 echo "Please uncomment appropatiate AC INIT macro in configure.ac" 1981 exit 1 ;; 1982 *+*) ;; 1983 *) echo "$PACKAGE_VERSION is not an appropriate branch version" 1984 echo "Please uncomment appropatiate AC INIT macro in configure.ac" 1985 exit 1 ;; 1986 esac 1987 fi 1988fi 1989 1990ac_aux_dir= 1991for ac_dir in . "$srcdir"/.; do 1992 if test -f "$ac_dir/install-sh"; then 1993 ac_aux_dir=$ac_dir 1994 ac_install_sh="$ac_aux_dir/install-sh -c" 1995 break 1996 elif test -f "$ac_dir/install.sh"; then 1997 ac_aux_dir=$ac_dir 1998 ac_install_sh="$ac_aux_dir/install.sh -c" 1999 break 2000 elif test -f "$ac_dir/shtool"; then 2001 ac_aux_dir=$ac_dir 2002 ac_install_sh="$ac_aux_dir/shtool install -c" 2003 break 2004 fi 2005done 2006if test -z "$ac_aux_dir"; then 2007 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5 2008echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;} 2009 { (exit 1); exit 1; }; } 2010fi 2011 2012# These three variables are undocumented and unsupported, 2013# and are intended to be withdrawn in a future Autoconf release. 2014# They can cause serious problems if a builder's source tree is in a directory 2015# whose full name contains unusual characters. 2016ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2017ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2018ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2019 2020 2021 2022am__api_version="1.9" 2023# Find a good install program. We prefer a C program (faster), 2024# so one script is as good as another. But avoid the broken or 2025# incompatible versions: 2026# SysV /etc/install, /usr/sbin/install 2027# SunOS /usr/etc/install 2028# IRIX /sbin/install 2029# AIX /bin/install 2030# AmigaOS /C/install, which installs bootblocks on floppy discs 2031# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2032# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2033# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2034# OS/2's system install, which has a completely different semantic 2035# ./install, which can be erroneously created by make from ./install.sh. 2036{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2037echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 2038if test -z "$INSTALL"; then 2039if test "${ac_cv_path_install+set}" = set; then 2040 echo $ECHO_N "(cached) $ECHO_C" >&6 2041else 2042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2043for as_dir in $PATH 2044do 2045 IFS=$as_save_IFS 2046 test -z "$as_dir" && as_dir=. 2047 # Account for people who put trailing slashes in PATH elements. 2048case $as_dir/ in 2049 ./ | .// | /cC/* | \ 2050 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2051 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2052 /usr/ucb/* ) ;; 2053 *) 2054 # OSF1 and SCO ODT 3.0 have their own names for install. 2055 # Don't use installbsd from OSF since it installs stuff as root 2056 # by default. 2057 for ac_prog in ginstall scoinst install; do 2058 for ac_exec_ext in '' $ac_executable_extensions; do 2059 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2060 if test $ac_prog = install && 2061 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2062 # AIX install. It has an incompatible calling convention. 2063 : 2064 elif test $ac_prog = install && 2065 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2066 # program-specific install script used by HP pwplus--don't use. 2067 : 2068 else 2069 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2070 break 3 2071 fi 2072 fi 2073 done 2074 done 2075 ;; 2076esac 2077done 2078IFS=$as_save_IFS 2079 2080 2081fi 2082 if test "${ac_cv_path_install+set}" = set; then 2083 INSTALL=$ac_cv_path_install 2084 else 2085 # As a last resort, use the slow shell script. Don't cache a 2086 # value for INSTALL within a source directory, because that will 2087 # break other packages using the cache if that directory is 2088 # removed, or if the value is a relative name. 2089 INSTALL=$ac_install_sh 2090 fi 2091fi 2092{ echo "$as_me:$LINENO: result: $INSTALL" >&5 2093echo "${ECHO_T}$INSTALL" >&6; } 2094 2095# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2096# It thinks the first close brace ends the variable substitution. 2097test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2098 2099test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2100 2101test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2102 2103{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2104echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 2105# Just in case 2106sleep 1 2107echo timestamp > conftest.file 2108# Do `set' in a subshell so we don't clobber the current shell's 2109# arguments. Must try -L first in case configure is actually a 2110# symlink; some systems play weird games with the mod time of symlinks 2111# (eg FreeBSD returns the mod time of the symlink's containing 2112# directory). 2113if ( 2114 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2115 if test "$*" = "X"; then 2116 # -L didn't work. 2117 set X `ls -t $srcdir/configure conftest.file` 2118 fi 2119 rm -f conftest.file 2120 if test "$*" != "X $srcdir/configure conftest.file" \ 2121 && test "$*" != "X conftest.file $srcdir/configure"; then 2122 2123 # If neither matched, then we have a broken ls. This can happen 2124 # if, for instance, CONFIG_SHELL is bash and it inherits a 2125 # broken ls alias from the environment. This has actually 2126 # happened. Such a system could not be considered "sane". 2127 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2128alias in your environment" >&5 2129echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2130alias in your environment" >&2;} 2131 { (exit 1); exit 1; }; } 2132 fi 2133 2134 test "$2" = conftest.file 2135 ) 2136then 2137 # Ok. 2138 : 2139else 2140 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2141Check your system clock" >&5 2142echo "$as_me: error: newly created file is older than distributed files! 2143Check your system clock" >&2;} 2144 { (exit 1); exit 1; }; } 2145fi 2146{ echo "$as_me:$LINENO: result: yes" >&5 2147echo "${ECHO_T}yes" >&6; } 2148test "$program_prefix" != NONE && 2149 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2150# Use a double $ so make ignores it. 2151test "$program_suffix" != NONE && 2152 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2153# Double any \ or $. echo might interpret backslashes. 2154# By default was `s,x,x', remove it if useless. 2155cat <<\_ACEOF >conftest.sed 2156s/[\\$]/&&/g;s/;s,x,x,$// 2157_ACEOF 2158program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2159rm -f conftest.sed 2160 2161# expand $ac_aux_dir to an absolute path 2162am_aux_dir=`cd $ac_aux_dir && pwd` 2163 2164test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2165# Use eval to expand $SHELL 2166if eval "$MISSING --run true"; then 2167 am_missing_run="$MISSING --run " 2168else 2169 am_missing_run= 2170 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2171echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2172fi 2173 2174if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 2175 # We used to keeping the `.' as first argument, in order to 2176 # allow $(mkdir_p) to be used without argument. As in 2177 # $(mkdir_p) $(somedir) 2178 # where $(somedir) is conditionally defined. However this is wrong 2179 # for two reasons: 2180 # 1. if the package is installed by a user who cannot write `.' 2181 # make install will fail, 2182 # 2. the above comment should most certainly read 2183 # $(mkdir_p) $(DESTDIR)$(somedir) 2184 # so it does not work when $(somedir) is undefined and 2185 # $(DESTDIR) is not. 2186 # To support the latter case, we have to write 2187 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 2188 # so the `.' trick is pointless. 2189 mkdir_p='mkdir -p --' 2190else 2191 # On NextStep and OpenStep, the `mkdir' command does not 2192 # recognize any option. It will interpret all options as 2193 # directories to create, and then abort because `.' already 2194 # exists. 2195 for d in ./-p ./--version; 2196 do 2197 test -d $d && rmdir $d 2198 done 2199 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 2200 if test -f "$ac_aux_dir/mkinstalldirs"; then 2201 mkdir_p='$(mkinstalldirs)' 2202 else 2203 mkdir_p='$(install_sh) -d' 2204 fi 2205fi 2206 2207for ac_prog in gawk mawk nawk awk 2208do 2209 # Extract the first word of "$ac_prog", so it can be a program name with args. 2210set dummy $ac_prog; ac_word=$2 2211{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2212echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2213if test "${ac_cv_prog_AWK+set}" = set; then 2214 echo $ECHO_N "(cached) $ECHO_C" >&6 2215else 2216 if test -n "$AWK"; then 2217 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2218else 2219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2220for as_dir in $PATH 2221do 2222 IFS=$as_save_IFS 2223 test -z "$as_dir" && as_dir=. 2224 for ac_exec_ext in '' $ac_executable_extensions; do 2225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2226 ac_cv_prog_AWK="$ac_prog" 2227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2228 break 2 2229 fi 2230done 2231done 2232IFS=$as_save_IFS 2233 2234fi 2235fi 2236AWK=$ac_cv_prog_AWK 2237if test -n "$AWK"; then 2238 { echo "$as_me:$LINENO: result: $AWK" >&5 2239echo "${ECHO_T}$AWK" >&6; } 2240else 2241 { echo "$as_me:$LINENO: result: no" >&5 2242echo "${ECHO_T}no" >&6; } 2243fi 2244 2245 2246 test -n "$AWK" && break 2247done 2248 2249{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2250echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2251set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2252if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2253 echo $ECHO_N "(cached) $ECHO_C" >&6 2254else 2255 cat >conftest.make <<\_ACEOF 2256SHELL = /bin/sh 2257all: 2258 @echo '@@@%%%=$(MAKE)=@@@%%%' 2259_ACEOF 2260# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2261case `${MAKE-make} -f conftest.make 2>/dev/null` in 2262 *@@@%%%=?*=@@@%%%*) 2263 eval ac_cv_prog_make_${ac_make}_set=yes;; 2264 *) 2265 eval ac_cv_prog_make_${ac_make}_set=no;; 2266esac 2267rm -f conftest.make 2268fi 2269if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2270 { echo "$as_me:$LINENO: result: yes" >&5 2271echo "${ECHO_T}yes" >&6; } 2272 SET_MAKE= 2273else 2274 { echo "$as_me:$LINENO: result: no" >&5 2275echo "${ECHO_T}no" >&6; } 2276 SET_MAKE="MAKE=${MAKE-make}" 2277fi 2278 2279rm -rf .tst 2>/dev/null 2280mkdir .tst 2>/dev/null 2281if test -d .tst; then 2282 am__leading_dot=. 2283else 2284 am__leading_dot=_ 2285fi 2286rmdir .tst 2>/dev/null 2287 2288# test to see if srcdir already configured 2289if test "`cd $srcdir && pwd`" != "`pwd`" && 2290 test -f $srcdir/config.status; then 2291 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2292echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2293 { (exit 1); exit 1; }; } 2294fi 2295 2296# test whether we have cygpath 2297if test -z "$CYGPATH_W"; then 2298 if (cygpath --version) >/dev/null 2>/dev/null; then 2299 CYGPATH_W='cygpath -w' 2300 else 2301 CYGPATH_W=echo 2302 fi 2303fi 2304 2305 2306# Define the identity of the package. 2307 PACKAGE='sablevm' 2308 VERSION='1.13' 2309 2310 2311cat >>confdefs.h <<_ACEOF 2312#define PACKAGE "$PACKAGE" 2313_ACEOF 2314 2315 2316cat >>confdefs.h <<_ACEOF 2317#define VERSION "$VERSION" 2318_ACEOF 2319 2320# Some tools Automake needs. 2321 2322ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2323 2324 2325AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2326 2327 2328AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2329 2330 2331AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2332 2333 2334MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2335 2336install_sh=${install_sh-"$am_aux_dir/install-sh"} 2337 2338# Installed binaries are usually stripped using `strip' when the user 2339# run `make install-strip'. However `strip' might not be the right 2340# tool to use in cross-compilation environments, therefore Automake 2341# will honor the `STRIP' environment variable to overrule this program. 2342if test "$cross_compiling" != no; then 2343 if test -n "$ac_tool_prefix"; then 2344 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2345set dummy ${ac_tool_prefix}strip; ac_word=$2 2346{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2348if test "${ac_cv_prog_STRIP+set}" = set; then 2349 echo $ECHO_N "(cached) $ECHO_C" >&6 2350else 2351 if test -n "$STRIP"; then 2352 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2353else 2354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2355for as_dir in $PATH 2356do 2357 IFS=$as_save_IFS 2358 test -z "$as_dir" && as_dir=. 2359 for ac_exec_ext in '' $ac_executable_extensions; do 2360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2361 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2363 break 2 2364 fi 2365done 2366done 2367IFS=$as_save_IFS 2368 2369fi 2370fi 2371STRIP=$ac_cv_prog_STRIP 2372if test -n "$STRIP"; then 2373 { echo "$as_me:$LINENO: result: $STRIP" >&5 2374echo "${ECHO_T}$STRIP" >&6; } 2375else 2376 { echo "$as_me:$LINENO: result: no" >&5 2377echo "${ECHO_T}no" >&6; } 2378fi 2379 2380 2381fi 2382if test -z "$ac_cv_prog_STRIP"; then 2383 ac_ct_STRIP=$STRIP 2384 # Extract the first word of "strip", so it can be a program name with args. 2385set dummy strip; ac_word=$2 2386{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2387echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2388if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2389 echo $ECHO_N "(cached) $ECHO_C" >&6 2390else 2391 if test -n "$ac_ct_STRIP"; then 2392 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2393else 2394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2395for as_dir in $PATH 2396do 2397 IFS=$as_save_IFS 2398 test -z "$as_dir" && as_dir=. 2399 for ac_exec_ext in '' $ac_executable_extensions; do 2400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2401 ac_cv_prog_ac_ct_STRIP="strip" 2402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2403 break 2 2404 fi 2405done 2406done 2407IFS=$as_save_IFS 2408 2409fi 2410fi 2411ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2412if test -n "$ac_ct_STRIP"; then 2413 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2414echo "${ECHO_T}$ac_ct_STRIP" >&6; } 2415else 2416 { echo "$as_me:$LINENO: result: no" >&5 2417echo "${ECHO_T}no" >&6; } 2418fi 2419 2420 if test "x$ac_ct_STRIP" = x; then 2421 STRIP=":" 2422 else 2423 case $cross_compiling:$ac_tool_warned in 2424yes:) 2425{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2426whose name does not start with the host triplet. If you think this 2427configuration is useful to you, please write to autoconf@gnu.org." >&5 2428echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2429whose name does not start with the host triplet. If you think this 2430configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2431ac_tool_warned=yes ;; 2432esac 2433 STRIP=$ac_ct_STRIP 2434 fi 2435else 2436 STRIP="$ac_cv_prog_STRIP" 2437fi 2438 2439fi 2440INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 2441 2442# We need awk for the "check" target. The system "awk" is bad on 2443# some platforms. 2444# Always define AMTAR for backward compatibility. 2445 2446AMTAR=${AMTAR-"${am_missing_run}tar"} 2447 2448am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2449 2450 2451 2452 2453 2454 2455ac_config_headers="$ac_config_headers src/include/config.h" 2456 2457 2458 2459LIBRELEASE="1.13" 2460 2461RELEASE=1.13 2462 2463 2464 2465cat >>confdefs.h <<_ACEOF 2466#define _SABLEVM_PACKAGE_NAME "sablevm" 2467_ACEOF 2468 2469 2470cat >>confdefs.h <<_ACEOF 2471#define _SABLEVM_PACKAGE_VERSION "1.13" 2472_ACEOF 2473 2474 2475# TODO: will this parameter be useful? 2476#DISTCHECK_CONFIGURE_FLAGS = --with-internal-libffi 2477 2478 2479cat >>confdefs.h <<\_ACEOF 2480#define _REENTRANT 1 2481_ACEOF 2482 2483 2484cat >>confdefs.h <<\_ACEOF 2485#define _POSIX_C_SOURCE 199506L 2486_ACEOF 2487 2488 2489 2490cat >>confdefs.h <<\_ACEOF 2491#define _XOPEN_SOURCE 500 2492_ACEOF 2493 2494 2495 2496# Check whether --enable-static was given. 2497if test "${enable_static+set}" = set; then 2498 enableval=$enable_static; p=${PACKAGE-default} 2499 case $enableval in 2500 yes) enable_static=yes ;; 2501 no) enable_static=no ;; 2502 *) 2503 enable_static=no 2504 # Look at the argument we got. We use all the common list separators. 2505 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2506 for pkg in $enableval; do 2507 IFS="$lt_save_ifs" 2508 if test "X$pkg" = "X$p"; then 2509 enable_static=yes 2510 fi 2511 done 2512 IFS="$lt_save_ifs" 2513 ;; 2514 esac 2515else 2516 enable_static=no 2517fi 2518 2519 2520 2521# Make sure we can run config.sub. 2522$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2523 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 2524echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 2525 { (exit 1); exit 1; }; } 2526 2527{ echo "$as_me:$LINENO: checking build system type" >&5 2528echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 2529if test "${ac_cv_build+set}" = set; then 2530 echo $ECHO_N "(cached) $ECHO_C" >&6 2531else 2532 ac_build_alias=$build_alias 2533test "x$ac_build_alias" = x && 2534 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2535test "x$ac_build_alias" = x && 2536 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2537echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2538 { (exit 1); exit 1; }; } 2539ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2540 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 2541echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2542 { (exit 1); exit 1; }; } 2543 2544fi 2545{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2546echo "${ECHO_T}$ac_cv_build" >&6; } 2547case $ac_cv_build in 2548*-*-*) ;; 2549*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2550echo "$as_me: error: invalid value of canonical build" >&2;} 2551 { (exit 1); exit 1; }; };; 2552esac 2553build=$ac_cv_build 2554ac_save_IFS=$IFS; IFS='-' 2555set x $ac_cv_build 2556shift 2557build_cpu=$1 2558build_vendor=$2 2559shift; shift 2560# Remember, the first character of IFS is used to create $*, 2561# except with old shells: 2562build_os=$* 2563IFS=$ac_save_IFS 2564case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2565 2566 2567{ echo "$as_me:$LINENO: checking host system type" >&5 2568echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 2569if test "${ac_cv_host+set}" = set; then 2570 echo $ECHO_N "(cached) $ECHO_C" >&6 2571else 2572 if test "x$host_alias" = x; then 2573 ac_cv_host=$ac_cv_build 2574else 2575 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2576 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2577echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2578 { (exit 1); exit 1; }; } 2579fi 2580 2581fi 2582{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2583echo "${ECHO_T}$ac_cv_host" >&6; } 2584case $ac_cv_host in 2585*-*-*) ;; 2586*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2587echo "$as_me: error: invalid value of canonical host" >&2;} 2588 { (exit 1); exit 1; }; };; 2589esac 2590host=$ac_cv_host 2591ac_save_IFS=$IFS; IFS='-' 2592set x $ac_cv_host 2593shift 2594host_cpu=$1 2595host_vendor=$2 2596shift; shift 2597# Remember, the first character of IFS is used to create $*, 2598# except with old shells: 2599host_os=$* 2600IFS=$ac_save_IFS 2601case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2602 2603 2604 2605case $host in 2606 sparc-sun-solaris*) 2607cat >>confdefs.h <<\_ACEOF 2608#define _XPG4_2 1 2609_ACEOF 2610 ;; 2611 *) ;; 2612esac 2613 2614# Check whether --enable-magic was given. 2615if test "${enable_magic+set}" = set; then 2616 enableval=$enable_magic; 2617else 2618 enable_magic=no 2619fi 2620 2621 2622case "$enable_magic" in 2623 no) ;; 2624 yes) 2625cat >>confdefs.h <<\_ACEOF 2626#define MAGIC 1 2627_ACEOF 2628 ;; 2629 *) { { echo "$as_me:$LINENO: error: bad value \"${enable_magic}\" for --enable-magic" >&5 2630echo "$as_me: error: bad value \"${enable_magic}\" for --enable-magic" >&2;} 2631 { (exit 1); exit 1; }; } ;; 2632esac 2633 2634# Check whether --enable-statistics was given. 2635if test "${enable_statistics+set}" = set; then 2636 enableval=$enable_statistics; 2637else 2638 enable_statistics=no 2639fi 2640 2641 2642case "$enable_statistics" in 2643 no) ;; 2644 yes) 2645cat >>confdefs.h <<\_ACEOF 2646#define STATISTICS 1 2647_ACEOF 2648 ;; 2649 *) { { echo "$as_me:$LINENO: error: bad value \"${enable_statistics}\" for --enable-statistics" >&5 2650echo "$as_me: error: bad value \"${enable_statistics}\" for --enable-statistics" >&2;} 2651 { (exit 1); exit 1; }; } ;; 2652esac 2653 2654# Check whether --enable-real-life-brokenness was given. 2655if test "${enable_real_life_brokenness+set}" = set; then 2656 enableval=$enable_real_life_brokenness; real_life_brokenness=$enableval 2657else 2658 real_life_brokenness=yes 2659fi 2660 2661 2662case "$real_life_brokenness" in 2663 yes) 2664cat >>confdefs.h <<\_ACEOF 2665#define _SABLEVM_REAL_LIFE_BROKENNESS 1 2666_ACEOF 2667 ;; 2668 no) ;; 2669 *) { { echo "$as_me:$LINENO: error: "bad value \"${real_life_brokenness}\"for --enable-real-life-brokenness"" >&5 2670echo "$as_me: error: "bad value \"${real_life_brokenness}\"for --enable-real-life-brokenness"" >&2;} 2671 { (exit 1); exit 1; }; } ;; 2672esac 2673 2674# Check whether --enable-inlinability-testing was given. 2675if test "${enable_inlinability_testing+set}" = set; then 2676 enableval=$enable_inlinability_testing; enable_inlinability_testing=$enableval 2677else 2678 enable_inlinability_testing=no 2679fi 2680 2681 2682case "$enable_inlinability_testing" in 2683 yes) inlinability_testing="-Dm4svm_inlinability_testing_mode=1" 2684 2685 2686cat >>confdefs.h <<\_ACEOF 2687#define _SABLEVM_INLINABILITY_TESTING 1 2688_ACEOF 2689 2690 ;; 2691 no) inlinability_testing="" 2692 ;; 2693 *) { { echo "$as_me:$LINENO: error: "bad value \"${enable_inlinability_testing}\"for --enable-inlinability-testing"" >&5 2694echo "$as_me: error: "bad value \"${enable_inlinability_testing}\"for --enable-inlinability-testing"" >&2;} 2695 { (exit 1); exit 1; }; } ;; 2696esac 2697 2698# Check whether --enable-debugging-features was given. 2699if test "${enable_debugging_features+set}" = set; then 2700 enableval=$enable_debugging_features; 2701else 2702 enable_debugging_features=no 2703fi 2704 2705 2706case "$enable_debugging_features" in 2707 no) 2708cat >>confdefs.h <<\_ACEOF 2709#define NDEBUG 1 2710_ACEOF 2711 ;; 2712 yes) ;; 2713 *) { { echo "$as_me:$LINENO: error: "bad value \"${enable_debugging_features}\" for --enable-debugging-features"" >&5 2714echo "$as_me: error: "bad value \"${enable_debugging_features}\" for --enable-debugging-features"" >&2;} 2715 { (exit 1); exit 1; }; } ;; 2716esac 2717 2718# Check whether --enable-signals-for-exceptions was given. 2719if test "${enable_signals_for_exceptions+set}" = set; then 2720 enableval=$enable_signals_for_exceptions; 2721else 2722 if test "$enable_debugging_features" = no; then 2723 case $host in 2724 alpha*-gnu) enable_signals_for_exceptions=yes ;; 2725 arm*-gnu) enable_signals_for_exceptions=yes ;; 2726 hppa*-gnu) enable_signals_for_exceptions=no ;; 2727 i*86-*-gnu) enable_signals_for_exceptions=yes ;; 2728 i386-*-freebsd*)enable_signals_for_exceptions=yes ;; 2729 ia64*) enable_signals_for_exceptions=yes ;; 2730 m68k*-gnu) enable_signals_for_exceptions=yes ;; 2731 powerpc-*-gnu) enable_signals_for_exceptions=yes ;; 2732 powerpc-apple-darwin*) 2733 enable_signals_for_exceptions=no ;; 2734 sparc*-gnu) enable_signals_for_exceptions=yes ;; 2735 s390*-gnu) enable_signals_for_exceptions=yes ;; 2736 *) enable_signals_for_exceptions=no ;; 2737 esac 2738 else 2739 enable_signals_for_exceptions=no 2740 fi 2741fi 2742 2743 2744 2745# Check whether --with-gc was given. 2746if test "${with_gc+set}" = set; then 2747 withval=$with_gc; 2748else 2749 with_gc=copying 2750fi 2751 2752 2753case "$with_gc" in 2754 none) 2755cat >>confdefs.h <<\_ACEOF 2756#define _SABLEVM_NO_GC 1 2757_ACEOF 2758 ;; 2759 copying) 2760cat >>confdefs.h <<\_ACEOF 2761#define _SABLEVM_COPY_GC 1 2762_ACEOF 2763 ;; 2764 gencopy) 2765cat >>confdefs.h <<\_ACEOF 2766#define _SABLEVM_GENCOPY_GC 1 2767_ACEOF 2768 ;; 2769 *) { { echo "$as_me:$LINENO: error: bad value \"${with_gc}\" for --with-gc" >&5 2770echo "$as_me: error: bad value \"${with_gc}\" for --with-gc" >&2;} 2771 { (exit 1); exit 1; }; } ;; 2772esac 2773 2774 2775# Check whether --with-obj-layout was given. 2776if test "${with_obj_layout+set}" = set; then 2777 withval=$with_obj_layout; 2778else 2779 with_obj_layout=bidirectional 2780fi 2781 2782 2783case "$with_obj_layout" in 2784 traditional) 2785cat >>confdefs.h <<\_ACEOF 2786#define _SABLEVM_TRADITIONAL_OBJECT_LAYOUT 1 2787_ACEOF 2788 ;; 2789 bidirectional) 2790cat >>confdefs.h <<\_ACEOF 2791#define _SABLEVM_BIDIRECTIONAL_OBJECT_LAYOUT 1 2792_ACEOF 2793 ;; 2794 *) { { echo "$as_me:$LINENO: error: bad value \"${with_obj_layout}\" for --with-obj-layout" >&5 2795echo "$as_me: error: bad value \"${with_obj_layout}\" for --with-obj-layout" >&2;} 2796 { (exit 1); exit 1; }; } ;; 2797esac 2798 2799 2800# Check whether --with-threading was given. 2801if test "${with_threading+set}" = set; then 2802 withval=$with_threading; 2803else 2804 if test "$enable_debugging_features" = no; then 2805 case $host in 2806 alpha*-gnu) with_threading=direct ;; 2807 arm*-gnu) with_threading=direct ;; 2808 hppa*-gnu) with_threading=direct ;; 2809 i*86-*-gnu) with_threading=inlined ;; 2810 ia64*) with_threading=direct ;; 2811 m68k*-gnu) with_threading=inlined ;; 2812 powerpc-*) with_threading=inlined ;; 2813 sparc*-gnu) with_threading=inlined ;; 2814 s390*-gnu) with_threading=direct ;; 2815 x86_64*-gnu) with_threading=direct ;; 2816 *) with_threading=direct ;; 2817 esac 2818 else 2819 with_threading=switch 2820 fi 2821 if test "$enable_inlinability_testing" = yes; then 2822 with_threading=inlined 2823 fi 2824fi 2825 2826 2827case "$with_threading" in 2828 switch) 2829cat >>confdefs.h <<\_ACEOF 2830#define _SABLEVM_SWITCH_THREADED_INTERPRETER 1 2831_ACEOF 2832 ;; 2833 direct) 2834cat >>confdefs.h <<\_ACEOF 2835#define _SABLEVM_DIRECT_THREADED_INTERPRETER 1 2836_ACEOF 2837 ;; 2838 inlined) 2839cat >>confdefs.h <<\_ACEOF 2840#define _SABLEVM_INLINED_THREADED_INTERPRETER 1 2841_ACEOF 2842 ;; 2843 *) { { echo "$as_me:$LINENO: error: bad value \"${with_threading}\" for --with-threading" >&5 2844echo "$as_me: error: bad value \"${with_threading}\" for --with-threading" >&2;} 2845 { (exit 1); exit 1; }; } ;; 2846esac 2847 2848# Check whether --enable-no-reorder-blocks was given. 2849if test "${enable_no_reorder_blocks+set}" = set; then 2850 enableval=$enable_no_reorder_blocks; enable_no_reorder_blocks=$enableval 2851else 2852 if test "$with_threading" = inlined; then 2853 enable_no_reorder_blocks=yes 2854 fi 2855fi 2856 2857 2858# Check whether --enable-errors-on-warnings was given. 2859if test "${enable_errors_on_warnings+set}" = set; then 2860 enableval=$enable_errors_on_warnings; 2861else 2862 case $PACKAGE_VERSION in 2863 *+*) enable_errors_on_warnings=yes ;; 2864 *) enable_errors_on_warnings=no ;; 2865 esac 2866fi 2867 2868 2869 2870# Check whether --with-profiling was given. 2871if test "${with_profiling+set}" = set; then 2872 withval=$with_profiling; 2873else 2874 with_profiling=no 2875fi 2876 2877 2878case "$with_profiling" in 2879 no) 2880cat >>confdefs.h <<\_ACEOF 2881#define svm_static static 2882_ACEOF 2883 ;; 2884 yes|nostatic) 2885cat >>confdefs.h <<\_ACEOF 2886#define svm_static 2887_ACEOF 2888 ;; 2889 gprof) 2890cat >>confdefs.h <<\_ACEOF 2891#define svm_static 2892_ACEOF 2893 2894 CFLAGS="$CFLAGS -pg" ;; 2895 *) { { echo "$as_me:$LINENO: error: bad value \"${with_profiling}\" for --with-profiling" >&5 2896echo "$as_me: error: bad value \"${with_profiling}\" for --with-profiling" >&2;} 2897 { (exit 1); exit 1; }; } ;; 2898esac 2899 2900 2901# Check whether --with-internal-libffi was given. 2902if test "${with_internal_libffi+set}" = set; then 2903 withval=$with_internal_libffi; 2904else 2905 case "$host" in 2906 *-*-mingw*|*-*-cygwin*) with_internal_libffi=yes ;; 2907 *) with_internal_libffi=auto ;; 2908 esac 2909 2910fi 2911 2912 2913case "$with_internal_libffi" in 2914 yes|no|auto) ;; 2915 *) { { echo "$as_me:$LINENO: error: bad value \"${with_internal_libffi}\" for --with-internal-libffi" >&5 2916echo "$as_me: error: bad value \"${with_internal_libffi}\" for --with-internal-libffi" >&2;} 2917 { (exit 1); exit 1; }; } ;; 2918esac 2919 2920 2921# Check whether --with-internal-libpopt was given. 2922if test "${with_internal_libpopt+set}" = set; then 2923 withval=$with_internal_libpopt; 2924else 2925 with_internal_libpopt=auto 2926fi 2927 2928 2929case "$with_internal_libpopt" in 2930 yes|no|auto) ;; 2931 *) { { echo "$as_me:$LINENO: error: bad value \"${with_internal_libpopt}\" for --with-internal-libpopt" >&5 2932echo "$as_me: error: bad value \"${with_internal_libpopt}\" for --with-internal-libpopt" >&2;} 2933 { (exit 1); exit 1; }; } ;; 2934esac 2935 2936 2937# Check whether --with-jikes was given. 2938if test "${with_jikes+set}" = set; then 2939 withval=$with_jikes; 2940else 2941 with_jikes=jikes 2942fi 2943 2944{ echo "$as_me:$LINENO: checking for jikes" >&5 2945echo $ECHO_N "checking for jikes... $ECHO_C" >&6; } 2946case "$with_jikes" in 2947 yes|no|jikes) 2948 # Extract the first word of ""jikes"", so it can be a program name with args. 2949set dummy "jikes"; ac_word=$2 2950{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2951echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2952if test "${ac_cv_path_JIKES+set}" = set; then 2953 echo $ECHO_N "(cached) $ECHO_C" >&6 2954else 2955 case $JIKES in 2956 [\\/]* | ?:[\\/]*) 2957 ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path. 2958 ;; 2959 *) 2960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2961for as_dir in $PATH 2962do 2963 IFS=$as_save_IFS 2964 test -z "$as_dir" && as_dir=. 2965 for ac_exec_ext in '' $ac_executable_extensions; do 2966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2967 ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext" 2968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2969 break 2 2970 fi 2971done 2972done 2973IFS=$as_save_IFS 2974 2975 ;; 2976esac 2977fi 2978JIKES=$ac_cv_path_JIKES 2979if test -n "$JIKES"; then 2980 { echo "$as_me:$LINENO: result: $JIKES" >&5 2981echo "${ECHO_T}$JIKES" >&6; } 2982else 2983 { echo "$as_me:$LINENO: result: no" >&5 2984echo "${ECHO_T}no" >&6; } 2985fi 2986 2987 2988 if test "X$JIKES" = "X"; then 2989 JIKES=jikes 2990 fi 2991 ;; 2992 /*|*\$*_prefix*) { echo "$as_me:$LINENO: result: Will use $JIKES." >&5 2993echo "${ECHO_T}Will use $JIKES." >&6; }; JIKES=$with_jikes ;; 2994 *) { { echo "$as_me:$LINENO: error: bad value \"${with_jikes}\" for --with-jikes" >&5 2995echo "$as_me: error: bad value \"${with_jikes}\" for --with-jikes" >&2;} 2996 { (exit 1); exit 1; }; } ;; 2997esac 2998JIKES=$JIKES 2999 3000 3001 3002# Check whether --with-fastjar was given. 3003if test "${with_fastjar+set}" = set; then 3004 withval=$with_fastjar; 3005else 3006 with_fastjar=fastjar 3007fi 3008 3009{ echo "$as_me:$LINENO: checking for fastjar" >&5 3010echo $ECHO_N "checking for fastjar... $ECHO_C" >&6; } 3011case "$with_fastjar" in 3012 yes|no|fastjar) 3013 # Extract the first word of ""fastjar"", so it can be a program name with args. 3014set dummy "fastjar"; ac_word=$2 3015{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3016echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3017if test "${ac_cv_path_FASTJAR+set}" = set; then 3018 echo $ECHO_N "(cached) $ECHO_C" >&6 3019else 3020 case $FASTJAR in 3021 [\\/]* | ?:[\\/]*) 3022 ac_cv_path_FASTJAR="$FASTJAR" # Let the user override the test with a path. 3023 ;; 3024 *) 3025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3026for as_dir in $PATH 3027do 3028 IFS=$as_save_IFS 3029 test -z "$as_dir" && as_dir=. 3030 for ac_exec_ext in '' $ac_executable_extensions; do 3031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3032 ac_cv_path_FASTJAR="$as_dir/$ac_word$ac_exec_ext" 3033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3034 break 2 3035 fi 3036done 3037done 3038IFS=$as_save_IFS 3039 3040 ;; 3041esac 3042fi 3043FASTJAR=$ac_cv_path_FASTJAR 3044if test -n "$FASTJAR"; then 3045 { echo "$as_me:$LINENO: result: $FASTJAR" >&5 3046echo "${ECHO_T}$FASTJAR" >&6; } 3047else 3048 { echo "$as_me:$LINENO: result: no" >&5 3049echo "${ECHO_T}no" >&6; } 3050fi 3051 3052 3053 if test "X$FASTJAR" = "X"; then 3054 FASTJAR=fastjar 3055 fi 3056 ;; 3057 /*|*\$*_prefix*) { echo "$as_me:$LINENO: result: Will use $FASTJAR." >&5 3058echo "${ECHO_T}Will use $FASTJAR." >&6; }; FASTJAR=$with_fastjar ;; 3059 *) { { echo "$as_me:$LINENO: error: bad value \"${with_fastjar}\" for --with-fastjar" >&5 3060echo "$as_me: error: bad value \"${with_fastjar}\" for --with-fastjar" >&2;} 3061 { (exit 1); exit 1; }; } ;; 3062esac 3063FASTJAR=$FASTJAR 3064 3065 3066for ac_prog in gawk mawk nawk awk 3067do 3068 # Extract the first word of "$ac_prog", so it can be a program name with args. 3069set dummy $ac_prog; ac_word=$2 3070{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3071echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3072if test "${ac_cv_prog_AWK+set}" = set; then 3073 echo $ECHO_N "(cached) $ECHO_C" >&6 3074else 3075 if test -n "$AWK"; then 3076 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3077else 3078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3079for as_dir in $PATH 3080do 3081 IFS=$as_save_IFS 3082 test -z "$as_dir" && as_dir=. 3083 for ac_exec_ext in '' $ac_executable_extensions; do 3084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3085 ac_cv_prog_AWK="$ac_prog" 3086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3087 break 2 3088 fi 3089done 3090done 3091IFS=$as_save_IFS 3092 3093fi 3094fi 3095AWK=$ac_cv_prog_AWK 3096if test -n "$AWK"; then 3097 { echo "$as_me:$LINENO: result: $AWK" >&5 3098echo "${ECHO_T}$AWK" >&6; } 3099else 3100 { echo "$as_me:$LINENO: result: no" >&5 3101echo "${ECHO_T}no" >&6; } 3102fi 3103 3104 3105 test -n "$AWK" && break 3106done 3107 3108ac_ext=c 3109ac_cpp='$CPP $CPPFLAGS' 3110ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3111ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3112ac_compiler_gnu=$ac_cv_c_compiler_gnu 3113if test -n "$ac_tool_prefix"; then 3114 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3115set dummy ${ac_tool_prefix}gcc; ac_word=$2 3116{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3117echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3118if test "${ac_cv_prog_CC+set}" = set; then 3119 echo $ECHO_N "(cached) $ECHO_C" >&6 3120else 3121 if test -n "$CC"; then 3122 ac_cv_prog_CC="$CC" # Let the user override the test. 3123else 3124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3125for as_dir in $PATH 3126do 3127 IFS=$as_save_IFS 3128 test -z "$as_dir" && as_dir=. 3129 for ac_exec_ext in '' $ac_executable_extensions; do 3130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3131 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3133 break 2 3134 fi 3135done 3136done 3137IFS=$as_save_IFS 3138 3139fi 3140fi 3141CC=$ac_cv_prog_CC 3142if test -n "$CC"; then 3143 { echo "$as_me:$LINENO: result: $CC" >&5 3144echo "${ECHO_T}$CC" >&6; } 3145else 3146 { echo "$as_me:$LINENO: result: no" >&5 3147echo "${ECHO_T}no" >&6; } 3148fi 3149 3150 3151fi 3152if test -z "$ac_cv_prog_CC"; then 3153 ac_ct_CC=$CC 3154 # Extract the first word of "gcc", so it can be a program name with args. 3155set dummy gcc; ac_word=$2 3156{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3157echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3158if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3159 echo $ECHO_N "(cached) $ECHO_C" >&6 3160else 3161 if test -n "$ac_ct_CC"; then 3162 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3163else 3164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3165for as_dir in $PATH 3166do 3167 IFS=$as_save_IFS 3168 test -z "$as_dir" && as_dir=. 3169 for ac_exec_ext in '' $ac_executable_extensions; do 3170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3171 ac_cv_prog_ac_ct_CC="gcc" 3172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3173 break 2 3174 fi 3175done 3176done 3177IFS=$as_save_IFS 3178 3179fi 3180fi 3181ac_ct_CC=$ac_cv_prog_ac_ct_CC 3182if test -n "$ac_ct_CC"; then 3183 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3184echo "${ECHO_T}$ac_ct_CC" >&6; } 3185else 3186 { echo "$as_me:$LINENO: result: no" >&5 3187echo "${ECHO_T}no" >&6; } 3188fi 3189 3190 if test "x$ac_ct_CC" = x; then 3191 CC="" 3192 else 3193 case $cross_compiling:$ac_tool_warned in 3194yes:) 3195{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3196whose name does not start with the host triplet. If you think this 3197configuration is useful to you, please write to autoconf@gnu.org." >&5 3198echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3199whose name does not start with the host triplet. If you think this 3200configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3201ac_tool_warned=yes ;; 3202esac 3203 CC=$ac_ct_CC 3204 fi 3205else 3206 CC="$ac_cv_prog_CC" 3207fi 3208 3209if test -z "$CC"; then 3210 if test -n "$ac_tool_prefix"; then 3211 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3212set dummy ${ac_tool_prefix}cc; ac_word=$2 3213{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3214echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3215if test "${ac_cv_prog_CC+set}" = set; then 3216 echo $ECHO_N "(cached) $ECHO_C" >&6 3217else 3218 if test -n "$CC"; then 3219 ac_cv_prog_CC="$CC" # Let the user override the test. 3220else 3221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3222for as_dir in $PATH 3223do 3224 IFS=$as_save_IFS 3225 test -z "$as_dir" && as_dir=. 3226 for ac_exec_ext in '' $ac_executable_extensions; do 3227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3228 ac_cv_prog_CC="${ac_tool_prefix}cc" 3229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3230 break 2 3231 fi 3232done 3233done 3234IFS=$as_save_IFS 3235 3236fi 3237fi 3238CC=$ac_cv_prog_CC 3239if test -n "$CC"; then 3240 { echo "$as_me:$LINENO: result: $CC" >&5 3241echo "${ECHO_T}$CC" >&6; } 3242else 3243 { echo "$as_me:$LINENO: result: no" >&5 3244echo "${ECHO_T}no" >&6; } 3245fi 3246 3247 3248 fi 3249fi 3250if test -z "$CC"; then 3251 # Extract the first word of "cc", so it can be a program name with args. 3252set dummy cc; ac_word=$2 3253{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3254echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3255if test "${ac_cv_prog_CC+set}" = set; then 3256 echo $ECHO_N "(cached) $ECHO_C" >&6 3257else 3258 if test -n "$CC"; then 3259 ac_cv_prog_CC="$CC" # Let the user override the test. 3260else 3261 ac_prog_rejected=no 3262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3263for as_dir in $PATH 3264do 3265 IFS=$as_save_IFS 3266 test -z "$as_dir" && as_dir=. 3267 for ac_exec_ext in '' $ac_executable_extensions; do 3268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3269 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3270 ac_prog_rejected=yes 3271 continue 3272 fi 3273 ac_cv_prog_CC="cc" 3274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3275 break 2 3276 fi 3277done 3278done 3279IFS=$as_save_IFS 3280 3281if test $ac_prog_rejected = yes; then 3282 # We found a bogon in the path, so make sure we never use it. 3283 set dummy $ac_cv_prog_CC 3284 shift 3285 if test $# != 0; then 3286 # We chose a different compiler from the bogus one. 3287 # However, it has the same basename, so the bogon will be chosen 3288 # first if we set CC to just the basename; use the full file name. 3289 shift 3290 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3291 fi 3292fi 3293fi 3294fi 3295CC=$ac_cv_prog_CC 3296if test -n "$CC"; then 3297 { echo "$as_me:$LINENO: result: $CC" >&5 3298echo "${ECHO_T}$CC" >&6; } 3299else 3300 { echo "$as_me:$LINENO: result: no" >&5 3301echo "${ECHO_T}no" >&6; } 3302fi 3303 3304 3305fi 3306if test -z "$CC"; then 3307 if test -n "$ac_tool_prefix"; then 3308 for ac_prog in cl.exe 3309 do 3310 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3311set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3312{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3313echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3314if test "${ac_cv_prog_CC+set}" = set; then 3315 echo $ECHO_N "(cached) $ECHO_C" >&6 3316else 3317 if test -n "$CC"; then 3318 ac_cv_prog_CC="$CC" # Let the user override the test. 3319else 3320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3321for as_dir in $PATH 3322do 3323 IFS=$as_save_IFS 3324 test -z "$as_dir" && as_dir=. 3325 for ac_exec_ext in '' $ac_executable_extensions; do 3326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3327 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3329 break 2 3330 fi 3331done 3332done 3333IFS=$as_save_IFS 3334 3335fi 3336fi 3337CC=$ac_cv_prog_CC 3338if test -n "$CC"; then 3339 { echo "$as_me:$LINENO: result: $CC" >&5 3340echo "${ECHO_T}$CC" >&6; } 3341else 3342 { echo "$as_me:$LINENO: result: no" >&5 3343echo "${ECHO_T}no" >&6; } 3344fi 3345 3346 3347 test -n "$CC" && break 3348 done 3349fi 3350if test -z "$CC"; then 3351 ac_ct_CC=$CC 3352 for ac_prog in cl.exe 3353do 3354 # Extract the first word of "$ac_prog", so it can be a program name with args. 3355set dummy $ac_prog; ac_word=$2 3356{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3358if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3359 echo $ECHO_N "(cached) $ECHO_C" >&6 3360else 3361 if test -n "$ac_ct_CC"; then 3362 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3363else 3364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3365for as_dir in $PATH 3366do 3367 IFS=$as_save_IFS 3368 test -z "$as_dir" && as_dir=. 3369 for ac_exec_ext in '' $ac_executable_extensions; do 3370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3371 ac_cv_prog_ac_ct_CC="$ac_prog" 3372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3373 break 2 3374 fi 3375done 3376done 3377IFS=$as_save_IFS 3378 3379fi 3380fi 3381ac_ct_CC=$ac_cv_prog_ac_ct_CC 3382if test -n "$ac_ct_CC"; then 3383 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3384echo "${ECHO_T}$ac_ct_CC" >&6; } 3385else 3386 { echo "$as_me:$LINENO: result: no" >&5 3387echo "${ECHO_T}no" >&6; } 3388fi 3389 3390 3391 test -n "$ac_ct_CC" && break 3392done 3393 3394 if test "x$ac_ct_CC" = x; then 3395 CC="" 3396 else 3397 case $cross_compiling:$ac_tool_warned in 3398yes:) 3399{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3400whose name does not start with the host triplet. If you think this 3401configuration is useful to you, please write to autoconf@gnu.org." >&5 3402echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3403whose name does not start with the host triplet. If you think this 3404configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3405ac_tool_warned=yes ;; 3406esac 3407 CC=$ac_ct_CC 3408 fi 3409fi 3410 3411fi 3412 3413 3414test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 3415See \`config.log' for more details." >&5 3416echo "$as_me: error: no acceptable C compiler found in \$PATH 3417See \`config.log' for more details." >&2;} 3418 { (exit 1); exit 1; }; } 3419 3420# Provide some information about the compiler. 3421echo "$as_me:$LINENO: checking for C compiler version" >&5 3422ac_compiler=`set X $ac_compile; echo $2` 3423{ (ac_try="$ac_compiler --version >&5" 3424case "(($ac_try" in 3425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3426 *) ac_try_echo=$ac_try;; 3427esac 3428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3429 (eval "$ac_compiler --version >&5") 2>&5 3430 ac_status=$? 3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3432 (exit $ac_status); } 3433{ (ac_try="$ac_compiler -v >&5" 3434case "(($ac_try" in 3435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3436 *) ac_try_echo=$ac_try;; 3437esac 3438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3439 (eval "$ac_compiler -v >&5") 2>&5 3440 ac_status=$? 3441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3442 (exit $ac_status); } 3443{ (ac_try="$ac_compiler -V >&5" 3444case "(($ac_try" in 3445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3446 *) ac_try_echo=$ac_try;; 3447esac 3448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3449 (eval "$ac_compiler -V >&5") 2>&5 3450 ac_status=$? 3451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3452 (exit $ac_status); } 3453 3454cat >conftest.$ac_ext <<_ACEOF 3455/* confdefs.h. */ 3456_ACEOF 3457cat confdefs.h >>conftest.$ac_ext 3458cat >>conftest.$ac_ext <<_ACEOF 3459/* end confdefs.h. */ 3460 3461int 3462main () 3463{ 3464 3465 ; 3466 return 0; 3467} 3468_ACEOF 3469ac_clean_files_save=$ac_clean_files 3470ac_clean_files="$ac_clean_files a.out a.exe b.out" 3471# Try to create an executable without -o first, disregard a.out. 3472# It will help us diagnose broken compilers, and finding out an intuition 3473# of exeext. 3474{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 3475echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 3476ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3477# 3478# List of possible output files, starting from the most likely. 3479# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 3480# only as a last resort. b.out is created by i960 compilers. 3481ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 3482# 3483# The IRIX 6 linker writes into existing files which may not be 3484# executable, retaining their permissions. Remove them first so a 3485# subsequent execution test works. 3486ac_rmfiles= 3487for ac_file in $ac_files 3488do 3489 case $ac_file in 3490 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3491 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3492 esac 3493done 3494rm -f $ac_rmfiles 3495 3496if { (ac_try="$ac_link_default" 3497case "(($ac_try" in 3498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3499 *) ac_try_echo=$ac_try;; 3500esac 3501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3502 (eval "$ac_link_default") 2>&5 3503 ac_status=$? 3504 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3505 (exit $ac_status); }; then 3506 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3507# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3508# in a Makefile. We should not override ac_cv_exeext if it was cached, 3509# so that the user can short-circuit this test for compilers unknown to 3510# Autoconf. 3511for ac_file in $ac_files '' 3512do 3513 test -f "$ac_file" || continue 3514 case $ac_file in 3515 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 3516 ;; 3517 [ab].out ) 3518 # We found the default executable, but exeext='' is most 3519 # certainly right. 3520 break;; 3521 *.* ) 3522 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3523 then :; else 3524 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3525 fi 3526 # We set ac_cv_exeext here because the later test for it is not 3527 # safe: cross compilers may not add the suffix if given an `-o' 3528 # argument, so we may need to know it at that point already. 3529 # Even if this section looks crufty: it has the advantage of 3530 # actually working. 3531 break;; 3532 * ) 3533 break;; 3534 esac 3535done 3536test "$ac_cv_exeext" = no && ac_cv_exeext= 3537 3538else 3539 ac_file='' 3540fi 3541 3542{ echo "$as_me:$LINENO: result: $ac_file" >&5 3543echo "${ECHO_T}$ac_file" >&6; } 3544if test -z "$ac_file"; then 3545 echo "$as_me: failed program was:" >&5 3546sed 's/^/| /' conftest.$ac_ext >&5 3547 3548{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 3549See \`config.log' for more details." >&5 3550echo "$as_me: error: C compiler cannot create executables 3551See \`config.log' for more details." >&2;} 3552 { (exit 77); exit 77; }; } 3553fi 3554 3555ac_exeext=$ac_cv_exeext 3556 3557# Check that the compiler produces executables we can run. If not, either 3558# the compiler is broken, or we cross compile. 3559{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3560echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 3561# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3562# If not cross compiling, check that we can run a simple program. 3563if test "$cross_compiling" != yes; then 3564 if { ac_try='./$ac_file' 3565 { (case "(($ac_try" in 3566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3567 *) ac_try_echo=$ac_try;; 3568esac 3569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3570 (eval "$ac_try") 2>&5 3571 ac_status=$? 3572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3573 (exit $ac_status); }; }; then 3574 cross_compiling=no 3575 else 3576 if test "$cross_compiling" = maybe; then 3577 cross_compiling=yes 3578 else 3579 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 3580If you meant to cross compile, use \`--host'. 3581See \`config.log' for more details." >&5 3582echo "$as_me: error: cannot run C compiled programs. 3583If you meant to cross compile, use \`--host'. 3584See \`config.log' for more details." >&2;} 3585 { (exit 1); exit 1; }; } 3586 fi 3587 fi 3588fi 3589{ echo "$as_me:$LINENO: result: yes" >&5 3590echo "${ECHO_T}yes" >&6; } 3591 3592rm -f a.out a.exe conftest$ac_cv_exeext b.out 3593ac_clean_files=$ac_clean_files_save 3594# Check that the compiler produces executables we can run. If not, either 3595# the compiler is broken, or we cross compile. 3596{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3597echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 3598{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 3599echo "${ECHO_T}$cross_compiling" >&6; } 3600 3601{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 3602echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 3603if { (ac_try="$ac_link" 3604case "(($ac_try" in 3605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3606 *) ac_try_echo=$ac_try;; 3607esac 3608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3609 (eval "$ac_link") 2>&5 3610 ac_status=$? 3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3612 (exit $ac_status); }; then 3613 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3614# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3615# work properly (i.e., refer to `conftest.exe'), while it won't with 3616# `rm'. 3617for ac_file in conftest.exe conftest conftest.*; do 3618 test -f "$ac_file" || continue 3619 case $ac_file in 3620 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3621 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3622 break;; 3623 * ) break;; 3624 esac 3625done 3626else 3627 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3628See \`config.log' for more details." >&5 3629echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3630See \`config.log' for more details." >&2;} 3631 { (exit 1); exit 1; }; } 3632fi 3633 3634rm -f conftest$ac_cv_exeext 3635{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3636echo "${ECHO_T}$ac_cv_exeext" >&6; } 3637 3638rm -f conftest.$ac_ext 3639EXEEXT=$ac_cv_exeext 3640ac_exeext=$EXEEXT 3641{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 3642echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 3643if test "${ac_cv_objext+set}" = set; then 3644 echo $ECHO_N "(cached) $ECHO_C" >&6 3645else 3646 cat >conftest.$ac_ext <<_ACEOF 3647/* confdefs.h. */ 3648_ACEOF 3649cat confdefs.h >>conftest.$ac_ext 3650cat >>conftest.$ac_ext <<_ACEOF 3651/* end confdefs.h. */ 3652 3653int 3654main () 3655{ 3656 3657 ; 3658 return 0; 3659} 3660_ACEOF 3661rm -f conftest.o conftest.obj 3662if { (ac_try="$ac_compile" 3663case "(($ac_try" in 3664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3665 *) ac_try_echo=$ac_try;; 3666esac 3667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3668 (eval "$ac_compile") 2>&5 3669 ac_status=$? 3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3671 (exit $ac_status); }; then 3672 for ac_file in conftest.o conftest.obj conftest.*; do 3673 test -f "$ac_file" || continue; 3674 case $ac_file in 3675 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 3676 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3677 break;; 3678 esac 3679done 3680else 3681 echo "$as_me: failed program was:" >&5 3682sed 's/^/| /' conftest.$ac_ext >&5 3683 3684{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3685See \`config.log' for more details." >&5 3686echo "$as_me: error: cannot compute suffix of object files: cannot compile 3687See \`config.log' for more details." >&2;} 3688 { (exit 1); exit 1; }; } 3689fi 3690 3691rm -f conftest.$ac_cv_objext conftest.$ac_ext 3692fi 3693{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3694echo "${ECHO_T}$ac_cv_objext" >&6; } 3695OBJEXT=$ac_cv_objext 3696ac_objext=$OBJEXT 3697{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3698echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3699if test "${ac_cv_c_compiler_gnu+set}" = set; then 3700 echo $ECHO_N "(cached) $ECHO_C" >&6 3701else 3702 cat >conftest.$ac_ext <<_ACEOF 3703/* confdefs.h. */ 3704_ACEOF 3705cat confdefs.h >>conftest.$ac_ext 3706cat >>conftest.$ac_ext <<_ACEOF 3707/* end confdefs.h. */ 3708 3709int 3710main () 3711{ 3712#ifndef __GNUC__ 3713 choke me 3714#endif 3715 3716 ; 3717 return 0; 3718} 3719_ACEOF 3720rm -f conftest.$ac_objext 3721if { (ac_try="$ac_compile" 3722case "(($ac_try" in 3723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3724 *) ac_try_echo=$ac_try;; 3725esac 3726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3727 (eval "$ac_compile") 2>conftest.er1 3728 ac_status=$? 3729 grep -v '^ *+' conftest.er1 >conftest.err 3730 rm -f conftest.er1 3731 cat conftest.err >&5 3732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3733 (exit $ac_status); } && { 3734 test -z "$ac_c_werror_flag" || 3735 test ! -s conftest.err 3736 } && test -s conftest.$ac_objext; then 3737 ac_compiler_gnu=yes 3738else 3739 echo "$as_me: failed program was:" >&5 3740sed 's/^/| /' conftest.$ac_ext >&5 3741 3742 ac_compiler_gnu=no 3743fi 3744 3745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3746ac_cv_c_compiler_gnu=$ac_compiler_gnu 3747 3748fi 3749{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3750echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3751GCC=`test $ac_compiler_gnu = yes && echo yes` 3752ac_test_CFLAGS=${CFLAGS+set} 3753ac_save_CFLAGS=$CFLAGS 3754{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3755echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3756if test "${ac_cv_prog_cc_g+set}" = set; then 3757 echo $ECHO_N "(cached) $ECHO_C" >&6 3758else 3759 ac_save_c_werror_flag=$ac_c_werror_flag 3760 ac_c_werror_flag=yes 3761 ac_cv_prog_cc_g=no 3762 CFLAGS="-g" 3763 cat >conftest.$ac_ext <<_ACEOF 3764/* confdefs.h. */ 3765_ACEOF 3766cat confdefs.h >>conftest.$ac_ext 3767cat >>conftest.$ac_ext <<_ACEOF 3768/* end confdefs.h. */ 3769 3770int 3771main () 3772{ 3773 3774 ; 3775 return 0; 3776} 3777_ACEOF 3778rm -f conftest.$ac_objext 3779if { (ac_try="$ac_compile" 3780case "(($ac_try" in 3781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3782 *) ac_try_echo=$ac_try;; 3783esac 3784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3785 (eval "$ac_compile") 2>conftest.er1 3786 ac_status=$? 3787 grep -v '^ *+' conftest.er1 >conftest.err 3788 rm -f conftest.er1 3789 cat conftest.err >&5 3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3791 (exit $ac_status); } && { 3792 test -z "$ac_c_werror_flag" || 3793 test ! -s conftest.err 3794 } && test -s conftest.$ac_objext; then 3795 ac_cv_prog_cc_g=yes 3796else 3797 echo "$as_me: failed program was:" >&5 3798sed 's/^/| /' conftest.$ac_ext >&5 3799 3800 CFLAGS="" 3801 cat >conftest.$ac_ext <<_ACEOF 3802/* confdefs.h. */ 3803_ACEOF 3804cat confdefs.h >>conftest.$ac_ext 3805cat >>conftest.$ac_ext <<_ACEOF 3806/* end confdefs.h. */ 3807 3808int 3809main () 3810{ 3811 3812 ; 3813 return 0; 3814} 3815_ACEOF 3816rm -f conftest.$ac_objext 3817if { (ac_try="$ac_compile" 3818case "(($ac_try" in 3819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3820 *) ac_try_echo=$ac_try;; 3821esac 3822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3823 (eval "$ac_compile") 2>conftest.er1 3824 ac_status=$? 3825 grep -v '^ *+' conftest.er1 >conftest.err 3826 rm -f conftest.er1 3827 cat conftest.err >&5 3828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3829 (exit $ac_status); } && { 3830 test -z "$ac_c_werror_flag" || 3831 test ! -s conftest.err 3832 } && test -s conftest.$ac_objext; then 3833 : 3834else 3835 echo "$as_me: failed program was:" >&5 3836sed 's/^/| /' conftest.$ac_ext >&5 3837 3838 ac_c_werror_flag=$ac_save_c_werror_flag 3839 CFLAGS="-g" 3840 cat >conftest.$ac_ext <<_ACEOF 3841/* confdefs.h. */ 3842_ACEOF 3843cat confdefs.h >>conftest.$ac_ext 3844cat >>conftest.$ac_ext <<_ACEOF 3845/* end confdefs.h. */ 3846 3847int 3848main () 3849{ 3850 3851 ; 3852 return 0; 3853} 3854_ACEOF 3855rm -f conftest.$ac_objext 3856if { (ac_try="$ac_compile" 3857case "(($ac_try" in 3858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3859 *) ac_try_echo=$ac_try;; 3860esac 3861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3862 (eval "$ac_compile") 2>conftest.er1 3863 ac_status=$? 3864 grep -v '^ *+' conftest.er1 >conftest.err 3865 rm -f conftest.er1 3866 cat conftest.err >&5 3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3868 (exit $ac_status); } && { 3869 test -z "$ac_c_werror_flag" || 3870 test ! -s conftest.err 3871 } && test -s conftest.$ac_objext; then 3872 ac_cv_prog_cc_g=yes 3873else 3874 echo "$as_me: failed program was:" >&5 3875sed 's/^/| /' conftest.$ac_ext >&5 3876 3877 3878fi 3879 3880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3881fi 3882 3883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3884fi 3885 3886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3887 ac_c_werror_flag=$ac_save_c_werror_flag 3888fi 3889{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3890echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3891if test "$ac_test_CFLAGS" = set; then 3892 CFLAGS=$ac_save_CFLAGS 3893elif test $ac_cv_prog_cc_g = yes; then 3894 if test "$GCC" = yes; then 3895 CFLAGS="-g -O2" 3896 else 3897 CFLAGS="-g" 3898 fi 3899else 3900 if test "$GCC" = yes; then 3901 CFLAGS="-O2" 3902 else 3903 CFLAGS= 3904 fi 3905fi 3906{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3907echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3908if test "${ac_cv_prog_cc_c89+set}" = set; then 3909 echo $ECHO_N "(cached) $ECHO_C" >&6 3910else 3911 ac_cv_prog_cc_c89=no 3912ac_save_CC=$CC 3913cat >conftest.$ac_ext <<_ACEOF 3914/* confdefs.h. */ 3915_ACEOF 3916cat confdefs.h >>conftest.$ac_ext 3917cat >>conftest.$ac_ext <<_ACEOF 3918/* end confdefs.h. */ 3919#include <stdarg.h> 3920#include <stdio.h> 3921#include <sys/types.h> 3922#include <sys/stat.h> 3923/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3924struct buf { int x; }; 3925FILE * (*rcsopen) (struct buf *, struct stat *, int); 3926static char *e (p, i) 3927 char **p; 3928 int i; 3929{ 3930 return p[i]; 3931} 3932static char *f (char * (*g) (char **, int), char **p, ...) 3933{ 3934 char *s; 3935 va_list v; 3936 va_start (v,p); 3937 s = g (p, va_arg (v,int)); 3938 va_end (v); 3939 return s; 3940} 3941 3942/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3943 function prototypes and stuff, but not '\xHH' hex character constants. 3944 These don't provoke an error unfortunately, instead are silently treated 3945 as 'x'. The following induces an error, until -std is added to get 3946 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3947 array size at least. It's necessary to write '\x00'==0 to get something 3948 that's true only with -std. */ 3949int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3950 3951/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3952 inside strings and character constants. */ 3953#define FOO(x) 'x' 3954int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3955 3956int test (int i, double x); 3957struct s1 {int (*f) (int a);}; 3958struct s2 {int (*f) (double a);}; 3959int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3960int argc; 3961char **argv; 3962int 3963main () 3964{ 3965return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3966 ; 3967 return 0; 3968} 3969_ACEOF 3970for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3971 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3972do 3973 CC="$ac_save_CC $ac_arg" 3974 rm -f conftest.$ac_objext 3975if { (ac_try="$ac_compile" 3976case "(($ac_try" in 3977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3978 *) ac_try_echo=$ac_try;; 3979esac 3980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3981 (eval "$ac_compile") 2>conftest.er1 3982 ac_status=$? 3983 grep -v '^ *+' conftest.er1 >conftest.err 3984 rm -f conftest.er1 3985 cat conftest.err >&5 3986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3987 (exit $ac_status); } && { 3988 test -z "$ac_c_werror_flag" || 3989 test ! -s conftest.err 3990 } && test -s conftest.$ac_objext; then 3991 ac_cv_prog_cc_c89=$ac_arg 3992else 3993 echo "$as_me: failed program was:" >&5 3994sed 's/^/| /' conftest.$ac_ext >&5 3995 3996 3997fi 3998 3999rm -f core conftest.err conftest.$ac_objext 4000 test "x$ac_cv_prog_cc_c89" != "xno" && break 4001done 4002rm -f conftest.$ac_ext 4003CC=$ac_save_CC 4004 4005fi 4006# AC_CACHE_VAL 4007case "x$ac_cv_prog_cc_c89" in 4008 x) 4009 { echo "$as_me:$LINENO: result: none needed" >&5 4010echo "${ECHO_T}none needed" >&6; } ;; 4011 xno) 4012 { echo "$as_me:$LINENO: result: unsupported" >&5 4013echo "${ECHO_T}unsupported" >&6; } ;; 4014 *) 4015 CC="$CC $ac_cv_prog_cc_c89" 4016 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 4017echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 4018esac 4019 4020 4021ac_ext=c 4022ac_cpp='$CPP $CPPFLAGS' 4023ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4024ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4025ac_compiler_gnu=$ac_cv_c_compiler_gnu 4026DEPDIR="${am__leading_dot}deps" 4027 4028ac_config_commands="$ac_config_commands depfiles" 4029 4030 4031am_make=${MAKE-make} 4032cat > confinc << 'END' 4033am__doit: 4034 @echo done 4035.PHONY: am__doit 4036END 4037# If we don't find an include directive, just comment out the code. 4038{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 4039echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 4040am__include="#" 4041am__quote= 4042_am_result=none 4043# First try GNU make style include. 4044echo "include confinc" > confmf 4045# We grep out `Entering directory' and `Leaving directory' 4046# messages which can occur if `w' ends up in MAKEFLAGS. 4047# In particular we don't look at `^make:' because GNU make might 4048# be invoked under some other name (usually "gmake"), in which 4049# case it prints its new name instead of `make'. 4050if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 4051 am__include=include 4052 am__quote= 4053 _am_result=GNU 4054fi 4055# Now try BSD make style include. 4056if test "$am__include" = "#"; then 4057 echo '.include "confinc"' > confmf 4058 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 4059 am__include=.include 4060 am__quote="\"" 4061 _am_result=BSD 4062 fi 4063fi 4064 4065 4066{ echo "$as_me:$LINENO: result: $_am_result" >&5 4067echo "${ECHO_T}$_am_result" >&6; } 4068rm -f confinc confmf 4069 4070# Check whether --enable-dependency-tracking was given. 4071if test "${enable_dependency_tracking+set}" = set; then 4072 enableval=$enable_dependency_tracking; 4073fi 4074 4075if test "x$enable_dependency_tracking" != xno; then 4076 am_depcomp="$ac_aux_dir/depcomp" 4077 AMDEPBACKSLASH='\' 4078fi 4079 4080 4081if test "x$enable_dependency_tracking" != xno; then 4082 AMDEP_TRUE= 4083 AMDEP_FALSE='#' 4084else 4085 AMDEP_TRUE='#' 4086 AMDEP_FALSE= 4087fi 4088 4089 4090 4091 4092depcc="$CC" am_compiler_list= 4093 4094{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 4095echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 4096if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 4097 echo $ECHO_N "(cached) $ECHO_C" >&6 4098else 4099 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4100 # We make a subdir and do the tests there. Otherwise we can end up 4101 # making bogus files that we don't know about and never remove. For 4102 # instance it was reported that on HP-UX the gcc test will end up 4103 # making a dummy file named `D' -- because `-MD' means `put the output 4104 # in D'. 4105 mkdir conftest.dir 4106 # Copy depcomp to subdir because otherwise we won't find it if we're 4107 # using a relative directory. 4108 cp "$am_depcomp" conftest.dir 4109 cd conftest.dir 4110 # We will build objects and dependencies in a subdirectory because 4111 # it helps to detect inapplicable dependency modes. For instance 4112 # both Tru64's cc and ICC support -MD to output dependencies as a 4113 # side effect of compilation, but ICC will put the dependencies in 4114 # the current directory while Tru64 will put them in the object 4115 # directory. 4116 mkdir sub 4117 4118 am_cv_CC_dependencies_compiler_type=none 4119 if test "$am_compiler_list" = ""; then 4120 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4121 fi 4122 for depmode in $am_compiler_list; do 4123 # Setup a source with many dependencies, because some compilers 4124 # like to wrap large dependency lists on column 80 (with \), and 4125 # we should not choose a depcomp mode which is confused by this. 4126 # 4127 # We need to recreate these files for each test, as the compiler may 4128 # overwrite some of them when testing with obscure command lines. 4129 # This happens at least with the AIX C compiler. 4130 : > sub/conftest.c 4131 for i in 1 2 3 4 5 6; do 4132 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4133 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4134 # Solaris 8's {/usr,}/bin/sh. 4135 touch sub/conftst$i.h 4136 done 4137 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4138 4139 case $depmode in 4140 nosideeffect) 4141 # after this tag, mechanisms are not by side-effect, so they'll 4142 # only be used when explicitly requested 4143 if test "x$enable_dependency_tracking" = xyes; then 4144 continue 4145 else 4146 break 4147 fi 4148 ;; 4149 none) break ;; 4150 esac 4151 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4152 # mode. It turns out that the SunPro C++ compiler does not properly 4153 # handle `-M -o', and we need to detect this. 4154 if depmode=$depmode \ 4155 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 4156 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4157 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 4158 >/dev/null 2>conftest.err && 4159 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4160 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 4161 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4162 # icc doesn't choke on unknown options, it will just issue warnings 4163 # or remarks (even with -Werror). So we grep stderr for any message 4164 # that says an option was ignored or not supported. 4165 # When given -MP, icc 7.0 and 7.1 complain thusly: 4166 # icc: Command line warning: ignoring option '-M'; no argument required 4167 # The diagnosis changed in icc 8.0: 4168 # icc: Command line remark: option '-MP' not supported 4169 if (grep 'ignoring option' conftest.err || 4170 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4171 am_cv_CC_dependencies_compiler_type=$depmode 4172 break 4173 fi 4174 fi 4175 done 4176 4177 cd .. 4178 rm -rf conftest.dir 4179else 4180 am_cv_CC_dependencies_compiler_type=none 4181fi 4182 4183fi 4184{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 4185echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 4186CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4187 4188 4189 4190if 4191 test "x$enable_dependency_tracking" != xno \ 4192 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4193 am__fastdepCC_TRUE= 4194 am__fastdepCC_FALSE='#' 4195else 4196 am__fastdepCC_TRUE='#' 4197 am__fastdepCC_FALSE= 4198fi 4199 4200 4201ac_ext=c 4202ac_cpp='$CPP $CPPFLAGS' 4203ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4204ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4205ac_compiler_gnu=$ac_cv_c_compiler_gnu 4206{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4207echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 4208# On Suns, sometimes $CPP names a directory. 4209if test -n "$CPP" && test -d "$CPP"; then 4210 CPP= 4211fi 4212if test -z "$CPP"; then 4213 if test "${ac_cv_prog_CPP+set}" = set; then 4214 echo $ECHO_N "(cached) $ECHO_C" >&6 4215else 4216 # Double quotes because CPP needs to be expanded 4217 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4218 do 4219 ac_preproc_ok=false 4220for ac_c_preproc_warn_flag in '' yes 4221do 4222 # Use a header file that comes with gcc, so configuring glibc 4223 # with a fresh cross-compiler works. 4224 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4225 # <limits.h> exists even on freestanding compilers. 4226 # On the NeXT, cc -E runs the code through the compiler's parser, 4227 # not just through cpp. "Syntax error" is here to catch this case. 4228 cat >conftest.$ac_ext <<_ACEOF 4229/* confdefs.h. */ 4230_ACEOF 4231cat confdefs.h >>conftest.$ac_ext 4232cat >>conftest.$ac_ext <<_ACEOF 4233/* end confdefs.h. */ 4234#ifdef __STDC__ 4235# include <limits.h> 4236#else 4237# include <assert.h> 4238#endif 4239 Syntax error 4240_ACEOF 4241if { (ac_try="$ac_cpp conftest.$ac_ext" 4242case "(($ac_try" in 4243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4244 *) ac_try_echo=$ac_try;; 4245esac 4246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4247 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4248 ac_status=$? 4249 grep -v '^ *+' conftest.er1 >conftest.err 4250 rm -f conftest.er1 4251 cat conftest.err >&5 4252 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4253 (exit $ac_status); } >/dev/null && { 4254 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4255 test ! -s conftest.err 4256 }; then 4257 : 4258else 4259 echo "$as_me: failed program was:" >&5 4260sed 's/^/| /' conftest.$ac_ext >&5 4261 4262 # Broken: fails on valid input. 4263continue 4264fi 4265 4266rm -f conftest.err conftest.$ac_ext 4267 4268 # OK, works on sane cases. Now check whether nonexistent headers 4269 # can be detected and how. 4270 cat >conftest.$ac_ext <<_ACEOF 4271/* confdefs.h. */ 4272_ACEOF 4273cat confdefs.h >>conftest.$ac_ext 4274cat >>conftest.$ac_ext <<_ACEOF 4275/* end confdefs.h. */ 4276#include <ac_nonexistent.h> 4277_ACEOF 4278if { (ac_try="$ac_cpp conftest.$ac_ext" 4279case "(($ac_try" in 4280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4281 *) ac_try_echo=$ac_try;; 4282esac 4283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4284 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4285 ac_status=$? 4286 grep -v '^ *+' conftest.er1 >conftest.err 4287 rm -f conftest.er1 4288 cat conftest.err >&5 4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4290 (exit $ac_status); } >/dev/null && { 4291 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4292 test ! -s conftest.err 4293 }; then 4294 # Broken: success on invalid input. 4295continue 4296else 4297 echo "$as_me: failed program was:" >&5 4298sed 's/^/| /' conftest.$ac_ext >&5 4299 4300 # Passes both tests. 4301ac_preproc_ok=: 4302break 4303fi 4304 4305rm -f conftest.err conftest.$ac_ext 4306 4307done 4308# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4309rm -f conftest.err conftest.$ac_ext 4310if $ac_preproc_ok; then 4311 break 4312fi 4313 4314 done 4315 ac_cv_prog_CPP=$CPP 4316 4317fi 4318 CPP=$ac_cv_prog_CPP 4319else 4320 ac_cv_prog_CPP=$CPP 4321fi 4322{ echo "$as_me:$LINENO: result: $CPP" >&5 4323echo "${ECHO_T}$CPP" >&6; } 4324ac_preproc_ok=false 4325for ac_c_preproc_warn_flag in '' yes 4326do 4327 # Use a header file that comes with gcc, so configuring glibc 4328 # with a fresh cross-compiler works. 4329 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4330 # <limits.h> exists even on freestanding compilers. 4331 # On the NeXT, cc -E runs the code through the compiler's parser, 4332 # not just through cpp. "Syntax error" is here to catch this case. 4333 cat >conftest.$ac_ext <<_ACEOF 4334/* confdefs.h. */ 4335_ACEOF 4336cat confdefs.h >>conftest.$ac_ext 4337cat >>conftest.$ac_ext <<_ACEOF 4338/* end confdefs.h. */ 4339#ifdef __STDC__ 4340# include <limits.h> 4341#else 4342# include <assert.h> 4343#endif 4344 Syntax error 4345_ACEOF 4346if { (ac_try="$ac_cpp conftest.$ac_ext" 4347case "(($ac_try" in 4348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4349 *) ac_try_echo=$ac_try;; 4350esac 4351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4352 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4353 ac_status=$? 4354 grep -v '^ *+' conftest.er1 >conftest.err 4355 rm -f conftest.er1 4356 cat conftest.err >&5 4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4358 (exit $ac_status); } >/dev/null && { 4359 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4360 test ! -s conftest.err 4361 }; then 4362 : 4363else 4364 echo "$as_me: failed program was:" >&5 4365sed 's/^/| /' conftest.$ac_ext >&5 4366 4367 # Broken: fails on valid input. 4368continue 4369fi 4370 4371rm -f conftest.err conftest.$ac_ext 4372 4373 # OK, works on sane cases. Now check whether nonexistent headers 4374 # can be detected and how. 4375 cat >conftest.$ac_ext <<_ACEOF 4376/* confdefs.h. */ 4377_ACEOF 4378cat confdefs.h >>conftest.$ac_ext 4379cat >>conftest.$ac_ext <<_ACEOF 4380/* end confdefs.h. */ 4381#include <ac_nonexistent.h> 4382_ACEOF 4383if { (ac_try="$ac_cpp conftest.$ac_ext" 4384case "(($ac_try" in 4385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4386 *) ac_try_echo=$ac_try;; 4387esac 4388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4389 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4390 ac_status=$? 4391 grep -v '^ *+' conftest.er1 >conftest.err 4392 rm -f conftest.er1 4393 cat conftest.err >&5 4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4395 (exit $ac_status); } >/dev/null && { 4396 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4397 test ! -s conftest.err 4398 }; then 4399 # Broken: success on invalid input. 4400continue 4401else 4402 echo "$as_me: failed program was:" >&5 4403sed 's/^/| /' conftest.$ac_ext >&5 4404 4405 # Passes both tests. 4406ac_preproc_ok=: 4407break 4408fi 4409 4410rm -f conftest.err conftest.$ac_ext 4411 4412done 4413# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4414rm -f conftest.err conftest.$ac_ext 4415if $ac_preproc_ok; then 4416 : 4417else 4418 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4419See \`config.log' for more details." >&5 4420echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4421See \`config.log' for more details." >&2;} 4422 { (exit 1); exit 1; }; } 4423fi 4424 4425ac_ext=c 4426ac_cpp='$CPP $CPPFLAGS' 4427ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4428ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4429ac_compiler_gnu=$ac_cv_c_compiler_gnu 4430 4431# Find a good install program. We prefer a C program (faster), 4432# so one script is as good as another. But avoid the broken or 4433# incompatible versions: 4434# SysV /etc/install, /usr/sbin/install 4435# SunOS /usr/etc/install 4436# IRIX /sbin/install 4437# AIX /bin/install 4438# AmigaOS /C/install, which installs bootblocks on floppy discs 4439# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4440# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4441# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4442# OS/2's system install, which has a completely different semantic 4443# ./install, which can be erroneously created by make from ./install.sh. 4444{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 4445echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 4446if test -z "$INSTALL"; then 4447if test "${ac_cv_path_install+set}" = set; then 4448 echo $ECHO_N "(cached) $ECHO_C" >&6 4449else 4450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4451for as_dir in $PATH 4452do 4453 IFS=$as_save_IFS 4454 test -z "$as_dir" && as_dir=. 4455 # Account for people who put trailing slashes in PATH elements. 4456case $as_dir/ in 4457 ./ | .// | /cC/* | \ 4458 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4459 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 4460 /usr/ucb/* ) ;; 4461 *) 4462 # OSF1 and SCO ODT 3.0 have their own names for install. 4463 # Don't use installbsd from OSF since it installs stuff as root 4464 # by default. 4465 for ac_prog in ginstall scoinst install; do 4466 for ac_exec_ext in '' $ac_executable_extensions; do 4467 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 4468 if test $ac_prog = install && 4469 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4470 # AIX install. It has an incompatible calling convention. 4471 : 4472 elif test $ac_prog = install && 4473 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4474 # program-specific install script used by HP pwplus--don't use. 4475 : 4476 else 4477 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 4478 break 3 4479 fi 4480 fi 4481 done 4482 done 4483 ;; 4484esac 4485done 4486IFS=$as_save_IFS 4487 4488 4489fi 4490 if test "${ac_cv_path_install+set}" = set; then 4491 INSTALL=$ac_cv_path_install 4492 else 4493 # As a last resort, use the slow shell script. Don't cache a 4494 # value for INSTALL within a source directory, because that will 4495 # break other packages using the cache if that directory is 4496 # removed, or if the value is a relative name. 4497 INSTALL=$ac_install_sh 4498 fi 4499fi 4500{ echo "$as_me:$LINENO: result: $INSTALL" >&5 4501echo "${ECHO_T}$INSTALL" >&6; } 4502 4503# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4504# It thinks the first close brace ends the variable substitution. 4505test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4506 4507test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4508 4509test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4510 4511{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 4512echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 4513LN_S=$as_ln_s 4514if test "$LN_S" = "ln -s"; then 4515 { echo "$as_me:$LINENO: result: yes" >&5 4516echo "${ECHO_T}yes" >&6; } 4517else 4518 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4519echo "${ECHO_T}no, using $LN_S" >&6; } 4520fi 4521 4522{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4523echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 4524set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4525if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 4526 echo $ECHO_N "(cached) $ECHO_C" >&6 4527else 4528 cat >conftest.make <<\_ACEOF 4529SHELL = /bin/sh 4530all: 4531 @echo '@@@%%%=$(MAKE)=@@@%%%' 4532_ACEOF 4533# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 4534case `${MAKE-make} -f conftest.make 2>/dev/null` in 4535 *@@@%%%=?*=@@@%%%*) 4536 eval ac_cv_prog_make_${ac_make}_set=yes;; 4537 *) 4538 eval ac_cv_prog_make_${ac_make}_set=no;; 4539esac 4540rm -f conftest.make 4541fi 4542if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4543 { echo "$as_me:$LINENO: result: yes" >&5 4544echo "${ECHO_T}yes" >&6; } 4545 SET_MAKE= 4546else 4547 { echo "$as_me:$LINENO: result: no" >&5 4548echo "${ECHO_T}no" >&6; } 4549 SET_MAKE="MAKE=${MAKE-make}" 4550fi 4551 4552 4553 4554 4555# Check whether --enable-shared was given. 4556if test "${enable_shared+set}" = set; then 4557 enableval=$enable_shared; p=${PACKAGE-default} 4558 case $enableval in 4559 yes) enable_shared=yes ;; 4560 no) enable_shared=no ;; 4561 *) 4562 enable_shared=no 4563 # Look at the argument we got. We use all the common list separators. 4564 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4565 for pkg in $enableval; do 4566 IFS="$lt_save_ifs" 4567 if test "X$pkg" = "X$p"; then 4568 enable_shared=yes 4569 fi 4570 done 4571 IFS="$lt_save_ifs" 4572 ;; 4573 esac 4574else 4575 enable_shared=yes 4576fi 4577 4578 4579# Check whether --enable-fast-install was given. 4580if test "${enable_fast_install+set}" = set; then 4581 enableval=$enable_fast_install; p=${PACKAGE-default} 4582 case $enableval in 4583 yes) enable_fast_install=yes ;; 4584 no) enable_fast_install=no ;; 4585 *) 4586 enable_fast_install=no 4587 # Look at the argument we got. We use all the common list separators. 4588 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4589 for pkg in $enableval; do 4590 IFS="$lt_save_ifs" 4591 if test "X$pkg" = "X$p"; then 4592 enable_fast_install=yes 4593 fi 4594 done 4595 IFS="$lt_save_ifs" 4596 ;; 4597 esac 4598else 4599 enable_fast_install=yes 4600fi 4601 4602 4603{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 4604echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } 4605if test "${lt_cv_path_SED+set}" = set; then 4606 echo $ECHO_N "(cached) $ECHO_C" >&6 4607else 4608 # Loop through the user's path and test for sed and gsed. 4609# Then use that list of sed's as ones to test for truncation. 4610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4611for as_dir in $PATH 4612do 4613 IFS=$as_save_IFS 4614 test -z "$as_dir" && as_dir=. 4615 for lt_ac_prog in sed gsed; do 4616 for ac_exec_ext in '' $ac_executable_extensions; do 4617 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 4618 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 4619 fi 4620 done 4621 done 4622done 4623lt_ac_max=0 4624lt_ac_count=0 4625# Add /usr/xpg4/bin/sed as it is typically found on Solaris 4626# along with /bin/sed that truncates output. 4627for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 4628 test ! -f $lt_ac_sed && continue 4629 cat /dev/null > conftest.in 4630 lt_ac_count=0 4631 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 4632 # Check for GNU sed and select it if it is found. 4633 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 4634 lt_cv_path_SED=$lt_ac_sed 4635 break 4636 fi 4637 while true; do 4638 cat conftest.in conftest.in >conftest.tmp 4639 mv conftest.tmp conftest.in 4640 cp conftest.in conftest.nl 4641 echo >>conftest.nl 4642 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 4643 cmp -s conftest.out conftest.nl || break 4644 # 10000 chars as input seems more than enough 4645 test $lt_ac_count -gt 10 && break 4646 lt_ac_count=`expr $lt_ac_count + 1` 4647 if test $lt_ac_count -gt $lt_ac_max; then 4648 lt_ac_max=$lt_ac_count 4649 lt_cv_path_SED=$lt_ac_sed 4650 fi 4651 done 4652done 4653 4654fi 4655 4656SED=$lt_cv_path_SED 4657{ echo "$as_me:$LINENO: result: $SED" >&5 4658echo "${ECHO_T}$SED" >&6; } 4659 4660{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 4661echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 4662if test "${ac_cv_path_GREP+set}" = set; then 4663 echo $ECHO_N "(cached) $ECHO_C" >&6 4664else 4665 # Extract the first word of "grep ggrep" to use in msg output 4666if test -z "$GREP"; then 4667set dummy grep ggrep; ac_prog_name=$2 4668if test "${ac_cv_path_GREP+set}" = set; then 4669 echo $ECHO_N "(cached) $ECHO_C" >&6 4670else 4671 ac_path_GREP_found=false 4672# Loop through the user's path and test for each of PROGNAME-LIST 4673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4674for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4675do 4676 IFS=$as_save_IFS 4677 test -z "$as_dir" && as_dir=. 4678 for ac_prog in grep ggrep; do 4679 for ac_exec_ext in '' $ac_executable_extensions; do 4680 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4681 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4682 # Check for GNU ac_path_GREP and select it if it is found. 4683 # Check for GNU $ac_path_GREP 4684case `"$ac_path_GREP" --version 2>&1` in 4685*GNU*) 4686 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4687*) 4688 ac_count=0 4689 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4690 while : 4691 do 4692 cat "conftest.in" "conftest.in" >"conftest.tmp" 4693 mv "conftest.tmp" "conftest.in" 4694 cp "conftest.in" "conftest.nl" 4695 echo 'GREP' >> "conftest.nl" 4696 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4697 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4698 ac_count=`expr $ac_count + 1` 4699 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4700 # Best one so far, save it but keep looking for a better one 4701 ac_cv_path_GREP="$ac_path_GREP" 4702 ac_path_GREP_max=$ac_count 4703 fi 4704 # 10*(2^10) chars as input seems more than enough 4705 test $ac_count -gt 10 && break 4706 done 4707 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4708esac 4709 4710 4711 $ac_path_GREP_found && break 3 4712 done 4713done 4714 4715done 4716IFS=$as_save_IFS 4717 4718 4719fi 4720 4721GREP="$ac_cv_path_GREP" 4722if test -z "$GREP"; then 4723 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4724echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4725 { (exit 1); exit 1; }; } 4726fi 4727 4728else 4729 ac_cv_path_GREP=$GREP 4730fi 4731 4732 4733fi 4734{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4735echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 4736 GREP="$ac_cv_path_GREP" 4737 4738 4739{ echo "$as_me:$LINENO: checking for egrep" >&5 4740echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 4741if test "${ac_cv_path_EGREP+set}" = set; then 4742 echo $ECHO_N "(cached) $ECHO_C" >&6 4743else 4744 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4745 then ac_cv_path_EGREP="$GREP -E" 4746 else 4747 # Extract the first word of "egrep" to use in msg output 4748if test -z "$EGREP"; then 4749set dummy egrep; ac_prog_name=$2 4750if test "${ac_cv_path_EGREP+set}" = set; then 4751 echo $ECHO_N "(cached) $ECHO_C" >&6 4752else 4753 ac_path_EGREP_found=false 4754# Loop through the user's path and test for each of PROGNAME-LIST 4755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4756for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4757do 4758 IFS=$as_save_IFS 4759 test -z "$as_dir" && as_dir=. 4760 for ac_prog in egrep; do 4761 for ac_exec_ext in '' $ac_executable_extensions; do 4762 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4763 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4764 # Check for GNU ac_path_EGREP and select it if it is found. 4765 # Check for GNU $ac_path_EGREP 4766case `"$ac_path_EGREP" --version 2>&1` in 4767*GNU*) 4768 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4769*) 4770 ac_count=0 4771 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4772 while : 4773 do 4774 cat "conftest.in" "conftest.in" >"conftest.tmp" 4775 mv "conftest.tmp" "conftest.in" 4776 cp "conftest.in" "conftest.nl" 4777 echo 'EGREP' >> "conftest.nl" 4778 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4779 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4780 ac_count=`expr $ac_count + 1` 4781 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4782 # Best one so far, save it but keep looking for a better one 4783 ac_cv_path_EGREP="$ac_path_EGREP" 4784 ac_path_EGREP_max=$ac_count 4785 fi 4786 # 10*(2^10) chars as input seems more than enough 4787 test $ac_count -gt 10 && break 4788 done 4789 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4790esac 4791 4792 4793 $ac_path_EGREP_found && break 3 4794 done 4795done 4796 4797done 4798IFS=$as_save_IFS 4799 4800 4801fi 4802 4803EGREP="$ac_cv_path_EGREP" 4804if test -z "$EGREP"; then 4805 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4806echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4807 { (exit 1); exit 1; }; } 4808fi 4809 4810else 4811 ac_cv_path_EGREP=$EGREP 4812fi 4813 4814 4815 fi 4816fi 4817{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4818echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 4819 EGREP="$ac_cv_path_EGREP" 4820 4821 4822 4823# Check whether --with-gnu-ld was given. 4824if test "${with_gnu_ld+set}" = set; then 4825 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4826else 4827 with_gnu_ld=no 4828fi 4829 4830ac_prog=ld 4831if test "$GCC" = yes; then 4832 # Check if gcc -print-prog-name=ld gives a path. 4833 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4834echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 4835 case $host in 4836 *-*-mingw*) 4837 # gcc leaves a trailing carriage return which upsets mingw 4838 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4839 *) 4840 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4841 esac 4842 case $ac_prog in 4843 # Accept absolute paths. 4844 [\\/]* | ?:[\\/]*) 4845 re_direlt='/[^/][^/]*/\.\./' 4846 # Canonicalize the pathname of ld 4847 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 4848 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 4849 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 4850 done 4851 test -z "$LD" && LD="$ac_prog" 4852 ;; 4853 "") 4854 # If it fails, then pretend we aren't using GCC. 4855 ac_prog=ld 4856 ;; 4857 *) 4858 # If it is relative, then search for the first ld in PATH. 4859 with_gnu_ld=unknown 4860 ;; 4861 esac 4862elif test "$with_gnu_ld" = yes; then 4863 { echo "$as_me:$LINENO: checking for GNU ld" >&5 4864echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 4865else 4866 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4867echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 4868fi 4869if test "${lt_cv_path_LD+set}" = set; then 4870 echo $ECHO_N "(cached) $ECHO_C" >&6 4871else 4872 if test -z "$LD"; then 4873 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4874 for ac_dir in $PATH; do 4875 IFS="$lt_save_ifs" 4876 test -z "$ac_dir" && ac_dir=. 4877 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4878 lt_cv_path_LD="$ac_dir/$ac_prog" 4879 # Check to see if the program is GNU ld. I'd rather use --version, 4880 # but apparently some variants of GNU ld only accept -v. 4881 # Break only if it was the GNU/non-GNU ld that we prefer. 4882 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4883 *GNU* | *'with BFD'*) 4884 test "$with_gnu_ld" != no && break 4885 ;; 4886 *) 4887 test "$with_gnu_ld" != yes && break 4888 ;; 4889 esac 4890 fi 4891 done 4892 IFS="$lt_save_ifs" 4893else 4894 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4895fi 4896fi 4897 4898LD="$lt_cv_path_LD" 4899if test -n "$LD"; then 4900 { echo "$as_me:$LINENO: result: $LD" >&5 4901echo "${ECHO_T}$LD" >&6; } 4902else 4903 { echo "$as_me:$LINENO: result: no" >&5 4904echo "${ECHO_T}no" >&6; } 4905fi 4906test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4907echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4908 { (exit 1); exit 1; }; } 4909{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4910echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 4911if test "${lt_cv_prog_gnu_ld+set}" = set; then 4912 echo $ECHO_N "(cached) $ECHO_C" >&6 4913else 4914 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4915case `$LD -v 2>&1 </dev/null` in 4916*GNU* | *'with BFD'*) 4917 lt_cv_prog_gnu_ld=yes 4918 ;; 4919*) 4920 lt_cv_prog_gnu_ld=no 4921 ;; 4922esac 4923fi 4924{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4925echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 4926with_gnu_ld=$lt_cv_prog_gnu_ld 4927 4928 4929{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4930echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } 4931if test "${lt_cv_ld_reload_flag+set}" = set; then 4932 echo $ECHO_N "(cached) $ECHO_C" >&6 4933else 4934 lt_cv_ld_reload_flag='-r' 4935fi 4936{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4937echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } 4938reload_flag=$lt_cv_ld_reload_flag 4939case $reload_flag in 4940"" | " "*) ;; 4941*) reload_flag=" $reload_flag" ;; 4942esac 4943reload_cmds='$LD$reload_flag -o $output$reload_objs' 4944case $host_os in 4945 darwin*) 4946 if test "$GCC" = yes; then 4947 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4948 else 4949 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4950 fi 4951 ;; 4952esac 4953 4954{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4955echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 4956if test "${lt_cv_path_NM+set}" = set; then 4957 echo $ECHO_N "(cached) $ECHO_C" >&6 4958else 4959 if test -n "$NM"; then 4960 # Let the user override the test. 4961 lt_cv_path_NM="$NM" 4962else 4963 lt_nm_to_check="${ac_tool_prefix}nm" 4964 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4965 lt_nm_to_check="$lt_nm_to_check nm" 4966 fi 4967 for lt_tmp_nm in $lt_nm_to_check; do 4968 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4969 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4970 IFS="$lt_save_ifs" 4971 test -z "$ac_dir" && ac_dir=. 4972 tmp_nm="$ac_dir/$lt_tmp_nm" 4973 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4974 # Check to see if the nm accepts a BSD-compat flag. 4975 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4976 # nm: unknown option "B" ignored 4977 # Tru64's nm complains that /dev/null is an invalid object file 4978 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4979 */dev/null* | *'Invalid file or object type'*) 4980 lt_cv_path_NM="$tmp_nm -B" 4981 break 4982 ;; 4983 *) 4984 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4985 */dev/null*) 4986 lt_cv_path_NM="$tmp_nm -p" 4987 break 4988 ;; 4989 *) 4990 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4991 continue # so that we can try to find one that supports BSD flags 4992 ;; 4993 esac 4994 ;; 4995 esac 4996 fi 4997 done 4998 IFS="$lt_save_ifs" 4999 done 5000 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 5001fi 5002fi 5003{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 5004echo "${ECHO_T}$lt_cv_path_NM" >&6; } 5005NM="$lt_cv_path_NM" 5006 5007{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 5008echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } 5009if test "${lt_cv_deplibs_check_method+set}" = set; then 5010 echo $ECHO_N "(cached) $ECHO_C" >&6 5011else 5012 lt_cv_file_magic_cmd='$MAGIC_CMD' 5013lt_cv_file_magic_test_file= 5014lt_cv_deplibs_check_method='unknown' 5015# Need to set the preceding variable on all platforms that support 5016# interlibrary dependencies. 5017# 'none' -- dependencies not supported. 5018# `unknown' -- same as none, but documents that we really don't know. 5019# 'pass_all' -- all dependencies passed with no checks. 5020# 'test_compile' -- check by making test program. 5021# 'file_magic [[regex]]' -- check by looking for files in library path 5022# which responds to the $file_magic_cmd with a given extended regex. 5023# If you have `file' or equivalent on your system and you're not sure 5024# whether `pass_all' will *always* work, you probably want this one. 5025 5026case $host_os in 5027aix4* | aix5*) 5028 lt_cv_deplibs_check_method=pass_all 5029 ;; 5030 5031beos*) 5032 lt_cv_deplibs_check_method=pass_all 5033 ;; 5034 5035bsdi[45]*) 5036 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5037 lt_cv_file_magic_cmd='/usr/bin/file -L' 5038 lt_cv_file_magic_test_file=/shlib/libc.so 5039 ;; 5040 5041cygwin*) 5042 # func_win32_libid is a shell function defined in ltmain.sh 5043 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5044 lt_cv_file_magic_cmd='func_win32_libid' 5045 ;; 5046 5047mingw* | pw32*) 5048 # Base MSYS/MinGW do not provide the 'file' command needed by 5049 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 5050 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 5051 lt_cv_file_magic_cmd='$OBJDUMP -f' 5052 ;; 5053 5054darwin* | rhapsody*) 5055 lt_cv_deplibs_check_method=pass_all 5056 ;; 5057 5058freebsd* | dragonfly*) 5059 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 5060 case $host_cpu in 5061 i*86 ) 5062 # Not sure whether the presence of OpenBSD here was a mistake. 5063 # Let's accept both of them until this is cleared up. 5064 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5065 lt_cv_file_magic_cmd=/usr/bin/file 5066 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5067 ;; 5068 esac 5069 else 5070 lt_cv_deplibs_check_method=pass_all 5071 fi 5072 ;; 5073 5074gnu*) 5075 lt_cv_deplibs_check_method=pass_all 5076 ;; 5077 5078hpux10.20* | hpux11*) 5079 lt_cv_file_magic_cmd=/usr/bin/file 5080 case $host_cpu in 5081 ia64*) 5082 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5083 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5084 ;; 5085 hppa*64*) 5086 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]' 5087 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5088 ;; 5089 *) 5090 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 5091 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5092 ;; 5093 esac 5094 ;; 5095 5096interix3*) 5097 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5098 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5099 ;; 5100 5101irix5* | irix6* | nonstopux*) 5102 case $LD in 5103 *-32|*"-32 ") libmagic=32-bit;; 5104 *-n32|*"-n32 ") libmagic=N32;; 5105 *-64|*"-64 ") libmagic=64-bit;; 5106 *) libmagic=never-match;; 5107 esac 5108 lt_cv_deplibs_check_method=pass_all 5109 ;; 5110 5111# This must be Linux ELF. 5112linux* | k*bsd*-gnu) 5113 lt_cv_deplibs_check_method=pass_all 5114 ;; 5115 5116netbsd* | netbsdelf*-gnu) 5117 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 5118 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5119 else 5120 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5121 fi 5122 ;; 5123 5124newos6*) 5125 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5126 lt_cv_file_magic_cmd=/usr/bin/file 5127 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5128 ;; 5129 5130nto-qnx*) 5131 lt_cv_deplibs_check_method=unknown 5132 ;; 5133 5134openbsd*) 5135 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5136 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5137 else 5138 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5139 fi 5140 ;; 5141 5142osf3* | osf4* | osf5*) 5143 lt_cv_deplibs_check_method=pass_all 5144 ;; 5145 5146solaris*) 5147 lt_cv_deplibs_check_method=pass_all 5148 ;; 5149 5150sysv4 | sysv4.3*) 5151 case $host_vendor in 5152 motorola) 5153 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]' 5154 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5155 ;; 5156 ncr) 5157 lt_cv_deplibs_check_method=pass_all 5158 ;; 5159 sequent) 5160 lt_cv_file_magic_cmd='/bin/file' 5161 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5162 ;; 5163 sni) 5164 lt_cv_file_magic_cmd='/bin/file' 5165 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5166 lt_cv_file_magic_test_file=/lib/libc.so 5167 ;; 5168 siemens) 5169 lt_cv_deplibs_check_method=pass_all 5170 ;; 5171 pc) 5172 lt_cv_deplibs_check_method=pass_all 5173 ;; 5174 esac 5175 ;; 5176 5177sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5178 lt_cv_deplibs_check_method=pass_all 5179 ;; 5180esac 5181 5182fi 5183{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 5184echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 5185file_magic_cmd=$lt_cv_file_magic_cmd 5186deplibs_check_method=$lt_cv_deplibs_check_method 5187test -z "$deplibs_check_method" && deplibs_check_method=unknown 5188 5189 5190 5191 5192# If no C compiler was specified, use CC. 5193LTCC=${LTCC-"$CC"} 5194 5195# If no C compiler flags were specified, use CFLAGS. 5196LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5197 5198# Allow CC to be a program name with arguments. 5199compiler=$CC 5200 5201 5202# Check whether --enable-libtool-lock was given. 5203if test "${enable_libtool_lock+set}" = set; then 5204 enableval=$enable_libtool_lock; 5205fi 5206 5207test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5208 5209# Some flags need to be propagated to the compiler or linker for good 5210# libtool support. 5211case $host in 5212ia64-*-hpux*) 5213 # Find out which ABI we are using. 5214 echo 'int i;' > conftest.$ac_ext 5215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5216 (eval $ac_compile) 2>&5 5217 ac_status=$? 5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5219 (exit $ac_status); }; then 5220 case `/usr/bin/file conftest.$ac_objext` in 5221 *ELF-32*) 5222 HPUX_IA64_MODE="32" 5223 ;; 5224 *ELF-64*) 5225 HPUX_IA64_MODE="64" 5226 ;; 5227 esac 5228 fi 5229 rm -rf conftest* 5230 ;; 5231*-*-irix6*) 5232 # Find out which ABI we are using. 5233 echo '#line 5233 "configure"' > conftest.$ac_ext 5234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5235 (eval $ac_compile) 2>&5 5236 ac_status=$? 5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5238 (exit $ac_status); }; then 5239 if test "$lt_cv_prog_gnu_ld" = yes; then 5240 case `/usr/bin/file conftest.$ac_objext` in 5241 *32-bit*) 5242 LD="${LD-ld} -melf32bsmip" 5243 ;; 5244 *N32*) 5245 LD="${LD-ld} -melf32bmipn32" 5246 ;; 5247 *64-bit*) 5248 LD="${LD-ld} -melf64bmip" 5249 ;; 5250 esac 5251 else 5252 case `/usr/bin/file conftest.$ac_objext` in 5253 *32-bit*) 5254 LD="${LD-ld} -32" 5255 ;; 5256 *N32*) 5257 LD="${LD-ld} -n32" 5258 ;; 5259 *64-bit*) 5260 LD="${LD-ld} -64" 5261 ;; 5262 esac 5263 fi 5264 fi 5265 rm -rf conftest* 5266 ;; 5267 5268x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 5269 # Find out which ABI we are using. 5270 echo 'int i;' > conftest.$ac_ext 5271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5272 (eval $ac_compile) 2>&5 5273 ac_status=$? 5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5275 (exit $ac_status); }; then 5276 case `/usr/bin/file conftest.o` in 5277 *32-bit*) 5278 case $host in 5279 x86_64-*linux*) 5280 LD="${LD-ld} -m elf_i386" 5281 ;; 5282 ppc64-*linux*|powerpc64-*linux*) 5283 LD="${LD-ld} -m elf32ppclinux" 5284 ;; 5285 s390x-*linux*) 5286 LD="${LD-ld} -m elf_s390" 5287 ;; 5288 sparc64-*linux*) 5289 LD="${LD-ld} -m elf32_sparc" 5290 ;; 5291 esac 5292 ;; 5293 *64-bit*) 5294 case $host in 5295 x86_64-*linux*) 5296 LD="${LD-ld} -m elf_x86_64" 5297 ;; 5298 ppc*-*linux*|powerpc*-*linux*) 5299 LD="${LD-ld} -m elf64ppc" 5300 ;; 5301 s390*-*linux*) 5302 LD="${LD-ld} -m elf64_s390" 5303 ;; 5304 sparc*-*linux*) 5305 LD="${LD-ld} -m elf64_sparc" 5306 ;; 5307 esac 5308 ;; 5309 esac 5310 fi 5311 rm -rf conftest* 5312 ;; 5313 5314*-*-sco3.2v5*) 5315 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5316 SAVE_CFLAGS="$CFLAGS" 5317 CFLAGS="$CFLAGS -belf" 5318 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 5319echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } 5320if test "${lt_cv_cc_needs_belf+set}" = set; then 5321 echo $ECHO_N "(cached) $ECHO_C" >&6 5322else 5323 ac_ext=c 5324ac_cpp='$CPP $CPPFLAGS' 5325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5327ac_compiler_gnu=$ac_cv_c_compiler_gnu 5328 5329 cat >conftest.$ac_ext <<_ACEOF 5330/* confdefs.h. */ 5331_ACEOF 5332cat confdefs.h >>conftest.$ac_ext 5333cat >>conftest.$ac_ext <<_ACEOF 5334/* end confdefs.h. */ 5335 5336int 5337main () 5338{ 5339 5340 ; 5341 return 0; 5342} 5343_ACEOF 5344rm -f conftest.$ac_objext conftest$ac_exeext 5345if { (ac_try="$ac_link" 5346case "(($ac_try" in 5347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5348 *) ac_try_echo=$ac_try;; 5349esac 5350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5351 (eval "$ac_link") 2>conftest.er1 5352 ac_status=$? 5353 grep -v '^ *+' conftest.er1 >conftest.err 5354 rm -f conftest.er1 5355 cat conftest.err >&5 5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5357 (exit $ac_status); } && { 5358 test -z "$ac_c_werror_flag" || 5359 test ! -s conftest.err 5360 } && test -s conftest$ac_exeext && 5361 $as_test_x conftest$ac_exeext; then 5362 lt_cv_cc_needs_belf=yes 5363else 5364 echo "$as_me: failed program was:" >&5 5365sed 's/^/| /' conftest.$ac_ext >&5 5366 5367 lt_cv_cc_needs_belf=no 5368fi 5369 5370rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5371 conftest$ac_exeext conftest.$ac_ext 5372 ac_ext=c 5373ac_cpp='$CPP $CPPFLAGS' 5374ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5375ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5376ac_compiler_gnu=$ac_cv_c_compiler_gnu 5377 5378fi 5379{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 5380echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } 5381 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5382 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 5383 CFLAGS="$SAVE_CFLAGS" 5384 fi 5385 ;; 5386sparc*-*solaris*) 5387 # Find out which ABI we are using. 5388 echo 'int i;' > conftest.$ac_ext 5389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5390 (eval $ac_compile) 2>&5 5391 ac_status=$? 5392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5393 (exit $ac_status); }; then 5394 case `/usr/bin/file conftest.o` in 5395 *64-bit*) 5396 case $lt_cv_prog_gnu_ld in 5397 yes*) LD="${LD-ld} -m elf64_sparc" ;; 5398 *) LD="${LD-ld} -64" ;; 5399 esac 5400 ;; 5401 esac 5402 fi 5403 rm -rf conftest* 5404 ;; 5405 5406 5407esac 5408 5409need_locks="$enable_libtool_lock" 5410 5411 5412 5413{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 5414echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 5415if test "${ac_cv_header_stdc+set}" = set; then 5416 echo $ECHO_N "(cached) $ECHO_C" >&6 5417else 5418 cat >conftest.$ac_ext <<_ACEOF 5419/* confdefs.h. */ 5420_ACEOF 5421cat confdefs.h >>conftest.$ac_ext 5422cat >>conftest.$ac_ext <<_ACEOF 5423/* end confdefs.h. */ 5424#include <stdlib.h> 5425#include <stdarg.h> 5426#include <string.h> 5427#include <float.h> 5428 5429int 5430main () 5431{ 5432 5433 ; 5434 return 0; 5435} 5436_ACEOF 5437rm -f conftest.$ac_objext 5438if { (ac_try="$ac_compile" 5439case "(($ac_try" in 5440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5441 *) ac_try_echo=$ac_try;; 5442esac 5443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5444 (eval "$ac_compile") 2>conftest.er1 5445 ac_status=$? 5446 grep -v '^ *+' conftest.er1 >conftest.err 5447 rm -f conftest.er1 5448 cat conftest.err >&5 5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5450 (exit $ac_status); } && { 5451 test -z "$ac_c_werror_flag" || 5452 test ! -s conftest.err 5453 } && test -s conftest.$ac_objext; then 5454 ac_cv_header_stdc=yes 5455else 5456 echo "$as_me: failed program was:" >&5 5457sed 's/^/| /' conftest.$ac_ext >&5 5458 5459 ac_cv_header_stdc=no 5460fi 5461 5462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5463 5464if test $ac_cv_header_stdc = yes; then 5465 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5466 cat >conftest.$ac_ext <<_ACEOF 5467/* confdefs.h. */ 5468_ACEOF 5469cat confdefs.h >>conftest.$ac_ext 5470cat >>conftest.$ac_ext <<_ACEOF 5471/* end confdefs.h. */ 5472#include <string.h> 5473 5474_ACEOF 5475if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5476 $EGREP "memchr" >/dev/null 2>&1; then 5477 : 5478else 5479 ac_cv_header_stdc=no 5480fi 5481rm -f conftest* 5482 5483fi 5484 5485if test $ac_cv_header_stdc = yes; then 5486 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5487 cat >conftest.$ac_ext <<_ACEOF 5488/* confdefs.h. */ 5489_ACEOF 5490cat confdefs.h >>conftest.$ac_ext 5491cat >>conftest.$ac_ext <<_ACEOF 5492/* end confdefs.h. */ 5493#include <stdlib.h> 5494 5495_ACEOF 5496if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5497 $EGREP "free" >/dev/null 2>&1; then 5498 : 5499else 5500 ac_cv_header_stdc=no 5501fi 5502rm -f conftest* 5503 5504fi 5505 5506if test $ac_cv_header_stdc = yes; then 5507 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5508 if test "$cross_compiling" = yes; then 5509 : 5510else 5511 cat >conftest.$ac_ext <<_ACEOF 5512/* confdefs.h. */ 5513_ACEOF 5514cat confdefs.h >>conftest.$ac_ext 5515cat >>conftest.$ac_ext <<_ACEOF 5516/* end confdefs.h. */ 5517#include <ctype.h> 5518#include <stdlib.h> 5519#if ((' ' & 0x0FF) == 0x020) 5520# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5521# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5522#else 5523# define ISLOWER(c) \ 5524 (('a' <= (c) && (c) <= 'i') \ 5525 || ('j' <= (c) && (c) <= 'r') \ 5526 || ('s' <= (c) && (c) <= 'z')) 5527# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5528#endif 5529 5530#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5531int 5532main () 5533{ 5534 int i; 5535 for (i = 0; i < 256; i++) 5536 if (XOR (islower (i), ISLOWER (i)) 5537 || toupper (i) != TOUPPER (i)) 5538 return 2; 5539 return 0; 5540} 5541_ACEOF 5542rm -f conftest$ac_exeext 5543if { (ac_try="$ac_link" 5544case "(($ac_try" in 5545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5546 *) ac_try_echo=$ac_try;; 5547esac 5548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5549 (eval "$ac_link") 2>&5 5550 ac_status=$? 5551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5552 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5553 { (case "(($ac_try" in 5554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5555 *) ac_try_echo=$ac_try;; 5556esac 5557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5558 (eval "$ac_try") 2>&5 5559 ac_status=$? 5560 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5561 (exit $ac_status); }; }; then 5562 : 5563else 5564 echo "$as_me: program exited with status $ac_status" >&5 5565echo "$as_me: failed program was:" >&5 5566sed 's/^/| /' conftest.$ac_ext >&5 5567 5568( exit $ac_status ) 5569ac_cv_header_stdc=no 5570fi 5571rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5572fi 5573 5574 5575fi 5576fi 5577{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5578echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 5579if test $ac_cv_header_stdc = yes; then 5580 5581cat >>confdefs.h <<\_ACEOF 5582#define STDC_HEADERS 1 5583_ACEOF 5584 5585fi 5586 5587# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5598 inttypes.h stdint.h unistd.h 5599do 5600as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5601{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5602echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5603if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5604 echo $ECHO_N "(cached) $ECHO_C" >&6 5605else 5606 cat >conftest.$ac_ext <<_ACEOF 5607/* confdefs.h. */ 5608_ACEOF 5609cat confdefs.h >>conftest.$ac_ext 5610cat >>conftest.$ac_ext <<_ACEOF 5611/* end confdefs.h. */ 5612$ac_includes_default 5613 5614#include <$ac_header> 5615_ACEOF 5616rm -f conftest.$ac_objext 5617if { (ac_try="$ac_compile" 5618case "(($ac_try" in 5619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5620 *) ac_try_echo=$ac_try;; 5621esac 5622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5623 (eval "$ac_compile") 2>conftest.er1 5624 ac_status=$? 5625 grep -v '^ *+' conftest.er1 >conftest.err 5626 rm -f conftest.er1 5627 cat conftest.err >&5 5628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5629 (exit $ac_status); } && { 5630 test -z "$ac_c_werror_flag" || 5631 test ! -s conftest.err 5632 } && test -s conftest.$ac_objext; then 5633 eval "$as_ac_Header=yes" 5634else 5635 echo "$as_me: failed program was:" >&5 5636sed 's/^/| /' conftest.$ac_ext >&5 5637 5638 eval "$as_ac_Header=no" 5639fi 5640 5641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5642fi 5643ac_res=`eval echo '${'$as_ac_Header'}'` 5644 { echo "$as_me:$LINENO: result: $ac_res" >&5 5645echo "${ECHO_T}$ac_res" >&6; } 5646if test `eval echo '${'$as_ac_Header'}'` = yes; then 5647 cat >>confdefs.h <<_ACEOF 5648#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5649_ACEOF 5650 5651fi 5652 5653done 5654 5655 5656 5657for ac_header in dlfcn.h 5658do 5659as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5660if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5661 { echo "$as_me:$LINENO: checking for $ac_header" >&5 5662echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5663if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5664 echo $ECHO_N "(cached) $ECHO_C" >&6 5665fi 5666ac_res=`eval echo '${'$as_ac_Header'}'` 5667 { echo "$as_me:$LINENO: result: $ac_res" >&5 5668echo "${ECHO_T}$ac_res" >&6; } 5669else 5670 # Is the header compilable? 5671{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 5672echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 5673cat >conftest.$ac_ext <<_ACEOF 5674/* confdefs.h. */ 5675_ACEOF 5676cat confdefs.h >>conftest.$ac_ext 5677cat >>conftest.$ac_ext <<_ACEOF 5678/* end confdefs.h. */ 5679$ac_includes_default 5680#include <$ac_header> 5681_ACEOF 5682rm -f conftest.$ac_objext 5683if { (ac_try="$ac_compile" 5684case "(($ac_try" in 5685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5686 *) ac_try_echo=$ac_try;; 5687esac 5688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5689 (eval "$ac_compile") 2>conftest.er1 5690 ac_status=$? 5691 grep -v '^ *+' conftest.er1 >conftest.err 5692 rm -f conftest.er1 5693 cat conftest.err >&5 5694 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5695 (exit $ac_status); } && { 5696 test -z "$ac_c_werror_flag" || 5697 test ! -s conftest.err 5698 } && test -s conftest.$ac_objext; then 5699 ac_header_compiler=yes 5700else 5701 echo "$as_me: failed program was:" >&5 5702sed 's/^/| /' conftest.$ac_ext >&5 5703 5704 ac_header_compiler=no 5705fi 5706 5707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5708{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5709echo "${ECHO_T}$ac_header_compiler" >&6; } 5710 5711# Is the header present? 5712{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 5713echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 5714cat >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#include <$ac_header> 5721_ACEOF 5722if { (ac_try="$ac_cpp conftest.$ac_ext" 5723case "(($ac_try" in 5724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5725 *) ac_try_echo=$ac_try;; 5726esac 5727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5728 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5729 ac_status=$? 5730 grep -v '^ *+' conftest.er1 >conftest.err 5731 rm -f conftest.er1 5732 cat conftest.err >&5 5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5734 (exit $ac_status); } >/dev/null && { 5735 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5736 test ! -s conftest.err 5737 }; then 5738 ac_header_preproc=yes 5739else 5740 echo "$as_me: failed program was:" >&5 5741sed 's/^/| /' conftest.$ac_ext >&5 5742 5743 ac_header_preproc=no 5744fi 5745 5746rm -f conftest.err conftest.$ac_ext 5747{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5748echo "${ECHO_T}$ac_header_preproc" >&6; } 5749 5750# So? What about this header? 5751case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5752 yes:no: ) 5753 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5754echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5756echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5757 ac_header_preproc=yes 5758 ;; 5759 no:yes:* ) 5760 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5761echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5762 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5763echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5764 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5765echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5766 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5767echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5768 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5769echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5770 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5771echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5772 ( cat <<\_ASBOX 5773## ---------------------------------- ## 5774## Report this to http://sablevm.org/ ## 5775## ---------------------------------- ## 5776_ASBOX 5777 ) | sed "s/^/$as_me: WARNING: /" >&2 5778 ;; 5779esac 5780{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5781echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5782if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5783 echo $ECHO_N "(cached) $ECHO_C" >&6 5784else 5785 eval "$as_ac_Header=\$ac_header_preproc" 5786fi 5787ac_res=`eval echo '${'$as_ac_Header'}'` 5788 { echo "$as_me:$LINENO: result: $ac_res" >&5 5789echo "${ECHO_T}$ac_res" >&6; } 5790 5791fi 5792if test `eval echo '${'$as_ac_Header'}'` = yes; then 5793 cat >>confdefs.h <<_ACEOF 5794#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5795_ACEOF 5796 5797fi 5798 5799done 5800 5801ac_ext=cpp 5802ac_cpp='$CXXCPP $CPPFLAGS' 5803ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5804ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5805ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5806if test -z "$CXX"; then 5807 if test -n "$CCC"; then 5808 CXX=$CCC 5809 else 5810 if test -n "$ac_tool_prefix"; then 5811 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5812 do 5813 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5814set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5815{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5817if test "${ac_cv_prog_CXX+set}" = set; then 5818 echo $ECHO_N "(cached) $ECHO_C" >&6 5819else 5820 if test -n "$CXX"; then 5821 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5822else 5823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5824for as_dir in $PATH 5825do 5826 IFS=$as_save_IFS 5827 test -z "$as_dir" && as_dir=. 5828 for ac_exec_ext in '' $ac_executable_extensions; do 5829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5830 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5832 break 2 5833 fi 5834done 5835done 5836IFS=$as_save_IFS 5837 5838fi 5839fi 5840CXX=$ac_cv_prog_CXX 5841if test -n "$CXX"; then 5842 { echo "$as_me:$LINENO: result: $CXX" >&5 5843echo "${ECHO_T}$CXX" >&6; } 5844else 5845 { echo "$as_me:$LINENO: result: no" >&5 5846echo "${ECHO_T}no" >&6; } 5847fi 5848 5849 5850 test -n "$CXX" && break 5851 done 5852fi 5853if test -z "$CXX"; then 5854 ac_ct_CXX=$CXX 5855 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5856do 5857 # Extract the first word of "$ac_prog", so it can be a program name with args. 5858set dummy $ac_prog; ac_word=$2 5859{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5860echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5861if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 5862 echo $ECHO_N "(cached) $ECHO_C" >&6 5863else 5864 if test -n "$ac_ct_CXX"; then 5865 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5866else 5867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5868for as_dir in $PATH 5869do 5870 IFS=$as_save_IFS 5871 test -z "$as_dir" && as_dir=. 5872 for ac_exec_ext in '' $ac_executable_extensions; do 5873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5874 ac_cv_prog_ac_ct_CXX="$ac_prog" 5875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5876 break 2 5877 fi 5878done 5879done 5880IFS=$as_save_IFS 5881 5882fi 5883fi 5884ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5885if test -n "$ac_ct_CXX"; then 5886 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 5887echo "${ECHO_T}$ac_ct_CXX" >&6; } 5888else 5889 { echo "$as_me:$LINENO: result: no" >&5 5890echo "${ECHO_T}no" >&6; } 5891fi 5892 5893 5894 test -n "$ac_ct_CXX" && break 5895done 5896 5897 if test "x$ac_ct_CXX" = x; then 5898 CXX="g++" 5899 else 5900 case $cross_compiling:$ac_tool_warned in 5901yes:) 5902{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5903whose name does not start with the host triplet. If you think this 5904configuration is useful to you, please write to autoconf@gnu.org." >&5 5905echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5906whose name does not start with the host triplet. If you think this 5907configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5908ac_tool_warned=yes ;; 5909esac 5910 CXX=$ac_ct_CXX 5911 fi 5912fi 5913 5914 fi 5915fi 5916# Provide some information about the compiler. 5917echo "$as_me:$LINENO: checking for C++ compiler version" >&5 5918ac_compiler=`set X $ac_compile; echo $2` 5919{ (ac_try="$ac_compiler --version >&5" 5920case "(($ac_try" in 5921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5922 *) ac_try_echo=$ac_try;; 5923esac 5924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5925 (eval "$ac_compiler --version >&5") 2>&5 5926 ac_status=$? 5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5928 (exit $ac_status); } 5929{ (ac_try="$ac_compiler -v >&5" 5930case "(($ac_try" in 5931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5932 *) ac_try_echo=$ac_try;; 5933esac 5934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5935 (eval "$ac_compiler -v >&5") 2>&5 5936 ac_status=$? 5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5938 (exit $ac_status); } 5939{ (ac_try="$ac_compiler -V >&5" 5940case "(($ac_try" in 5941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5942 *) ac_try_echo=$ac_try;; 5943esac 5944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5945 (eval "$ac_compiler -V >&5") 2>&5 5946 ac_status=$? 5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5948 (exit $ac_status); } 5949 5950{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5951echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 5952if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5953 echo $ECHO_N "(cached) $ECHO_C" >&6 5954else 5955 cat >conftest.$ac_ext <<_ACEOF 5956/* confdefs.h. */ 5957_ACEOF 5958cat confdefs.h >>conftest.$ac_ext 5959cat >>conftest.$ac_ext <<_ACEOF 5960/* end confdefs.h. */ 5961 5962int 5963main () 5964{ 5965#ifndef __GNUC__ 5966 choke me 5967#endif 5968 5969 ; 5970 return 0; 5971} 5972_ACEOF 5973rm -f conftest.$ac_objext 5974if { (ac_try="$ac_compile" 5975case "(($ac_try" in 5976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5977 *) ac_try_echo=$ac_try;; 5978esac 5979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5980 (eval "$ac_compile") 2>conftest.er1 5981 ac_status=$? 5982 grep -v '^ *+' conftest.er1 >conftest.err 5983 rm -f conftest.er1 5984 cat conftest.err >&5 5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5986 (exit $ac_status); } && { 5987 test -z "$ac_cxx_werror_flag" || 5988 test ! -s conftest.err 5989 } && test -s conftest.$ac_objext; then 5990 ac_compiler_gnu=yes 5991else 5992 echo "$as_me: failed program was:" >&5 5993sed 's/^/| /' conftest.$ac_ext >&5 5994 5995 ac_compiler_gnu=no 5996fi 5997 5998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5999ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 6000 6001fi 6002{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 6003echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 6004GXX=`test $ac_compiler_gnu = yes && echo yes` 6005ac_test_CXXFLAGS=${CXXFLAGS+set} 6006ac_save_CXXFLAGS=$CXXFLAGS 6007{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 6008echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 6009if test "${ac_cv_prog_cxx_g+set}" = set; then 6010 echo $ECHO_N "(cached) $ECHO_C" >&6 6011else 6012 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 6013 ac_cxx_werror_flag=yes 6014 ac_cv_prog_cxx_g=no 6015 CXXFLAGS="-g" 6016 cat >conftest.$ac_ext <<_ACEOF 6017/* confdefs.h. */ 6018_ACEOF 6019cat confdefs.h >>conftest.$ac_ext 6020cat >>conftest.$ac_ext <<_ACEOF 6021/* end confdefs.h. */ 6022 6023int 6024main () 6025{ 6026 6027 ; 6028 return 0; 6029} 6030_ACEOF 6031rm -f conftest.$ac_objext 6032if { (ac_try="$ac_compile" 6033case "(($ac_try" in 6034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6035 *) ac_try_echo=$ac_try;; 6036esac 6037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6038 (eval "$ac_compile") 2>conftest.er1 6039 ac_status=$? 6040 grep -v '^ *+' conftest.er1 >conftest.err 6041 rm -f conftest.er1 6042 cat conftest.err >&5 6043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6044 (exit $ac_status); } && { 6045 test -z "$ac_cxx_werror_flag" || 6046 test ! -s conftest.err 6047 } && test -s conftest.$ac_objext; then 6048 ac_cv_prog_cxx_g=yes 6049else 6050 echo "$as_me: failed program was:" >&5 6051sed 's/^/| /' conftest.$ac_ext >&5 6052 6053 CXXFLAGS="" 6054 cat >conftest.$ac_ext <<_ACEOF 6055/* confdefs.h. */ 6056_ACEOF 6057cat confdefs.h >>conftest.$ac_ext 6058cat >>conftest.$ac_ext <<_ACEOF 6059/* end confdefs.h. */ 6060 6061int 6062main () 6063{ 6064 6065 ; 6066 return 0; 6067} 6068_ACEOF 6069rm -f conftest.$ac_objext 6070if { (ac_try="$ac_compile" 6071case "(($ac_try" in 6072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6073 *) ac_try_echo=$ac_try;; 6074esac 6075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6076 (eval "$ac_compile") 2>conftest.er1 6077 ac_status=$? 6078 grep -v '^ *+' conftest.er1 >conftest.err 6079 rm -f conftest.er1 6080 cat conftest.err >&5 6081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6082 (exit $ac_status); } && { 6083 test -z "$ac_cxx_werror_flag" || 6084 test ! -s conftest.err 6085 } && test -s conftest.$ac_objext; then 6086 : 6087else 6088 echo "$as_me: failed program was:" >&5 6089sed 's/^/| /' conftest.$ac_ext >&5 6090 6091 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6092 CXXFLAGS="-g" 6093 cat >conftest.$ac_ext <<_ACEOF 6094/* confdefs.h. */ 6095_ACEOF 6096cat confdefs.h >>conftest.$ac_ext 6097cat >>conftest.$ac_ext <<_ACEOF 6098/* end confdefs.h. */ 6099 6100int 6101main () 6102{ 6103 6104 ; 6105 return 0; 6106} 6107_ACEOF 6108rm -f conftest.$ac_objext 6109if { (ac_try="$ac_compile" 6110case "(($ac_try" in 6111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6112 *) ac_try_echo=$ac_try;; 6113esac 6114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6115 (eval "$ac_compile") 2>conftest.er1 6116 ac_status=$? 6117 grep -v '^ *+' conftest.er1 >conftest.err 6118 rm -f conftest.er1 6119 cat conftest.err >&5 6120 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6121 (exit $ac_status); } && { 6122 test -z "$ac_cxx_werror_flag" || 6123 test ! -s conftest.err 6124 } && test -s conftest.$ac_objext; then 6125 ac_cv_prog_cxx_g=yes 6126else 6127 echo "$as_me: failed program was:" >&5 6128sed 's/^/| /' conftest.$ac_ext >&5 6129 6130 6131fi 6132 6133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6134fi 6135 6136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6137fi 6138 6139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6140 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6141fi 6142{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 6143echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 6144if test "$ac_test_CXXFLAGS" = set; then 6145 CXXFLAGS=$ac_save_CXXFLAGS 6146elif test $ac_cv_prog_cxx_g = yes; then 6147 if test "$GXX" = yes; then 6148 CXXFLAGS="-g -O2" 6149 else 6150 CXXFLAGS="-g" 6151 fi 6152else 6153 if test "$GXX" = yes; then 6154 CXXFLAGS="-O2" 6155 else 6156 CXXFLAGS= 6157 fi 6158fi 6159ac_ext=cpp 6160ac_cpp='$CXXCPP $CPPFLAGS' 6161ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6162ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6163ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6164 6165depcc="$CXX" am_compiler_list= 6166 6167{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 6168echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 6169if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 6170 echo $ECHO_N "(cached) $ECHO_C" >&6 6171else 6172 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 6173 # We make a subdir and do the tests there. Otherwise we can end up 6174 # making bogus files that we don't know about and never remove. For 6175 # instance it was reported that on HP-UX the gcc test will end up 6176 # making a dummy file named `D' -- because `-MD' means `put the output 6177 # in D'. 6178 mkdir conftest.dir 6179 # Copy depcomp to subdir because otherwise we won't find it if we're 6180 # using a relative directory. 6181 cp "$am_depcomp" conftest.dir 6182 cd conftest.dir 6183 # We will build objects and dependencies in a subdirectory because 6184 # it helps to detect inapplicable dependency modes. For instance 6185 # both Tru64's cc and ICC support -MD to output dependencies as a 6186 # side effect of compilation, but ICC will put the dependencies in 6187 # the current directory while Tru64 will put them in the object 6188 # directory. 6189 mkdir sub 6190 6191 am_cv_CXX_dependencies_compiler_type=none 6192 if test "$am_compiler_list" = ""; then 6193 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 6194 fi 6195 for depmode in $am_compiler_list; do 6196 # Setup a source with many dependencies, because some compilers 6197 # like to wrap large dependency lists on column 80 (with \), and 6198 # we should not choose a depcomp mode which is confused by this. 6199 # 6200 # We need to recreate these files for each test, as the compiler may 6201 # overwrite some of them when testing with obscure command lines. 6202 # This happens at least with the AIX C compiler. 6203 : > sub/conftest.c 6204 for i in 1 2 3 4 5 6; do 6205 echo '#include "conftst'$i'.h"' >> sub/conftest.c 6206 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 6207 # Solaris 8's {/usr,}/bin/sh. 6208 touch sub/conftst$i.h 6209 done 6210 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 6211 6212 case $depmode in 6213 nosideeffect) 6214 # after this tag, mechanisms are not by side-effect, so they'll 6215 # only be used when explicitly requested 6216 if test "x$enable_dependency_tracking" = xyes; then 6217 continue 6218 else 6219 break 6220 fi 6221 ;; 6222 none) break ;; 6223 esac 6224 # We check with `-c' and `-o' for the sake of the "dashmstdout" 6225 # mode. It turns out that the SunPro C++ compiler does not properly 6226 # handle `-M -o', and we need to detect this. 6227 if depmode=$depmode \ 6228 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 6229 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6230 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 6231 >/dev/null 2>conftest.err && 6232 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6233 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 6234 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6235 # icc doesn't choke on unknown options, it will just issue warnings 6236 # or remarks (even with -Werror). So we grep stderr for any message 6237 # that says an option was ignored or not supported. 6238 # When given -MP, icc 7.0 and 7.1 complain thusly: 6239 # icc: Command line warning: ignoring option '-M'; no argument required 6240 # The diagnosis changed in icc 8.0: 6241 # icc: Command line remark: option '-MP' not supported 6242 if (grep 'ignoring option' conftest.err || 6243 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6244 am_cv_CXX_dependencies_compiler_type=$depmode 6245 break 6246 fi 6247 fi 6248 done 6249 6250 cd .. 6251 rm -rf conftest.dir 6252else 6253 am_cv_CXX_dependencies_compiler_type=none 6254fi 6255 6256fi 6257{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 6258echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } 6259CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 6260 6261 6262 6263if 6264 test "x$enable_dependency_tracking" != xno \ 6265 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 6266 am__fastdepCXX_TRUE= 6267 am__fastdepCXX_FALSE='#' 6268else 6269 am__fastdepCXX_TRUE='#' 6270 am__fastdepCXX_FALSE= 6271fi 6272 6273 6274 6275 6276if test -n "$CXX" && ( test "X$CXX" != "Xno" && 6277 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 6278 (test "X$CXX" != "Xg++"))) ; then 6279 ac_ext=cpp 6280ac_cpp='$CXXCPP $CPPFLAGS' 6281ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6282ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6283ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6284{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 6285echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 6286if test -z "$CXXCPP"; then 6287 if test "${ac_cv_prog_CXXCPP+set}" = set; then 6288 echo $ECHO_N "(cached) $ECHO_C" >&6 6289else 6290 # Double quotes because CXXCPP needs to be expanded 6291 for CXXCPP in "$CXX -E" "/lib/cpp" 6292 do 6293 ac_preproc_ok=false 6294for ac_cxx_preproc_warn_flag in '' yes 6295do 6296 # Use a header file that comes with gcc, so configuring glibc 6297 # with a fresh cross-compiler works. 6298 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6299 # <limits.h> exists even on freestanding compilers. 6300 # On the NeXT, cc -E runs the code through the compiler's parser, 6301 # not just through cpp. "Syntax error" is here to catch this case. 6302 cat >conftest.$ac_ext <<_ACEOF 6303/* confdefs.h. */ 6304_ACEOF 6305cat confdefs.h >>conftest.$ac_ext 6306cat >>conftest.$ac_ext <<_ACEOF 6307/* end confdefs.h. */ 6308#ifdef __STDC__ 6309# include <limits.h> 6310#else 6311# include <assert.h> 6312#endif 6313 Syntax error 6314_ACEOF 6315if { (ac_try="$ac_cpp conftest.$ac_ext" 6316case "(($ac_try" in 6317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6318 *) ac_try_echo=$ac_try;; 6319esac 6320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6321 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6322 ac_status=$? 6323 grep -v '^ *+' conftest.er1 >conftest.err 6324 rm -f conftest.er1 6325 cat conftest.err >&5 6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6327 (exit $ac_status); } >/dev/null && { 6328 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6329 test ! -s conftest.err 6330 }; then 6331 : 6332else 6333 echo "$as_me: failed program was:" >&5 6334sed 's/^/| /' conftest.$ac_ext >&5 6335 6336 # Broken: fails on valid input. 6337continue 6338fi 6339 6340rm -f conftest.err conftest.$ac_ext 6341 6342 # OK, works on sane cases. Now check whether nonexistent headers 6343 # can be detected and how. 6344 cat >conftest.$ac_ext <<_ACEOF 6345/* confdefs.h. */ 6346_ACEOF 6347cat confdefs.h >>conftest.$ac_ext 6348cat >>conftest.$ac_ext <<_ACEOF 6349/* end confdefs.h. */ 6350#include <ac_nonexistent.h> 6351_ACEOF 6352if { (ac_try="$ac_cpp conftest.$ac_ext" 6353case "(($ac_try" in 6354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6355 *) ac_try_echo=$ac_try;; 6356esac 6357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6358 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6359 ac_status=$? 6360 grep -v '^ *+' conftest.er1 >conftest.err 6361 rm -f conftest.er1 6362 cat conftest.err >&5 6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6364 (exit $ac_status); } >/dev/null && { 6365 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6366 test ! -s conftest.err 6367 }; then 6368 # Broken: success on invalid input. 6369continue 6370else 6371 echo "$as_me: failed program was:" >&5 6372sed 's/^/| /' conftest.$ac_ext >&5 6373 6374 # Passes both tests. 6375ac_preproc_ok=: 6376break 6377fi 6378 6379rm -f conftest.err conftest.$ac_ext 6380 6381done 6382# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6383rm -f conftest.err conftest.$ac_ext 6384if $ac_preproc_ok; then 6385 break 6386fi 6387 6388 done 6389 ac_cv_prog_CXXCPP=$CXXCPP 6390 6391fi 6392 CXXCPP=$ac_cv_prog_CXXCPP 6393else 6394 ac_cv_prog_CXXCPP=$CXXCPP 6395fi 6396{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 6397echo "${ECHO_T}$CXXCPP" >&6; } 6398ac_preproc_ok=false 6399for ac_cxx_preproc_warn_flag in '' yes 6400do 6401 # Use a header file that comes with gcc, so configuring glibc 6402 # with a fresh cross-compiler works. 6403 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6404 # <limits.h> exists even on freestanding compilers. 6405 # On the NeXT, cc -E runs the code through the compiler's parser, 6406 # not just through cpp. "Syntax error" is here to catch this case. 6407 cat >conftest.$ac_ext <<_ACEOF 6408/* confdefs.h. */ 6409_ACEOF 6410cat confdefs.h >>conftest.$ac_ext 6411cat >>conftest.$ac_ext <<_ACEOF 6412/* end confdefs.h. */ 6413#ifdef __STDC__ 6414# include <limits.h> 6415#else 6416# include <assert.h> 6417#endif 6418 Syntax error 6419_ACEOF 6420if { (ac_try="$ac_cpp conftest.$ac_ext" 6421case "(($ac_try" in 6422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6423 *) ac_try_echo=$ac_try;; 6424esac 6425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6426 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6427 ac_status=$? 6428 grep -v '^ *+' conftest.er1 >conftest.err 6429 rm -f conftest.er1 6430 cat conftest.err >&5 6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6432 (exit $ac_status); } >/dev/null && { 6433 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6434 test ! -s conftest.err 6435 }; then 6436 : 6437else 6438 echo "$as_me: failed program was:" >&5 6439sed 's/^/| /' conftest.$ac_ext >&5 6440 6441 # Broken: fails on valid input. 6442continue 6443fi 6444 6445rm -f conftest.err conftest.$ac_ext 6446 6447 # OK, works on sane cases. Now check whether nonexistent headers 6448 # can be detected and how. 6449 cat >conftest.$ac_ext <<_ACEOF 6450/* confdefs.h. */ 6451_ACEOF 6452cat confdefs.h >>conftest.$ac_ext 6453cat >>conftest.$ac_ext <<_ACEOF 6454/* end confdefs.h. */ 6455#include <ac_nonexistent.h> 6456_ACEOF 6457if { (ac_try="$ac_cpp conftest.$ac_ext" 6458case "(($ac_try" in 6459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6460 *) ac_try_echo=$ac_try;; 6461esac 6462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6464 ac_status=$? 6465 grep -v '^ *+' conftest.er1 >conftest.err 6466 rm -f conftest.er1 6467 cat conftest.err >&5 6468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6469 (exit $ac_status); } >/dev/null && { 6470 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6471 test ! -s conftest.err 6472 }; then 6473 # Broken: success on invalid input. 6474continue 6475else 6476 echo "$as_me: failed program was:" >&5 6477sed 's/^/| /' conftest.$ac_ext >&5 6478 6479 # Passes both tests. 6480ac_preproc_ok=: 6481break 6482fi 6483 6484rm -f conftest.err conftest.$ac_ext 6485 6486done 6487# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6488rm -f conftest.err conftest.$ac_ext 6489if $ac_preproc_ok; then 6490 : 6491else 6492 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6493See \`config.log' for more details." >&5 6494echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6495See \`config.log' for more details." >&2;} 6496 { (exit 1); exit 1; }; } 6497fi 6498 6499ac_ext=cpp 6500ac_cpp='$CXXCPP $CPPFLAGS' 6501ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6502ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6503ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6504 6505fi 6506 6507 6508ac_ext=f 6509ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6510ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6511ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6512if test -n "$ac_tool_prefix"; then 6513 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 6514 do 6515 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6516set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6517{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6518echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6519if test "${ac_cv_prog_F77+set}" = set; then 6520 echo $ECHO_N "(cached) $ECHO_C" >&6 6521else 6522 if test -n "$F77"; then 6523 ac_cv_prog_F77="$F77" # Let the user override the test. 6524else 6525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6526for as_dir in $PATH 6527do 6528 IFS=$as_save_IFS 6529 test -z "$as_dir" && as_dir=. 6530 for ac_exec_ext in '' $ac_executable_extensions; do 6531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6532 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 6533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6534 break 2 6535 fi 6536done 6537done 6538IFS=$as_save_IFS 6539 6540fi 6541fi 6542F77=$ac_cv_prog_F77 6543if test -n "$F77"; then 6544 { echo "$as_me:$LINENO: result: $F77" >&5 6545echo "${ECHO_T}$F77" >&6; } 6546else 6547 { echo "$as_me:$LINENO: result: no" >&5 6548echo "${ECHO_T}no" >&6; } 6549fi 6550 6551 6552 test -n "$F77" && break 6553 done 6554fi 6555if test -z "$F77"; then 6556 ac_ct_F77=$F77 6557 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 6558do 6559 # Extract the first word of "$ac_prog", so it can be a program name with args. 6560set dummy $ac_prog; ac_word=$2 6561{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6562echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6563if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 6564 echo $ECHO_N "(cached) $ECHO_C" >&6 6565else 6566 if test -n "$ac_ct_F77"; then 6567 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 6568else 6569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6570for as_dir in $PATH 6571do 6572 IFS=$as_save_IFS 6573 test -z "$as_dir" && as_dir=. 6574 for ac_exec_ext in '' $ac_executable_extensions; do 6575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6576 ac_cv_prog_ac_ct_F77="$ac_prog" 6577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6578 break 2 6579 fi 6580done 6581done 6582IFS=$as_save_IFS 6583 6584fi 6585fi 6586ac_ct_F77=$ac_cv_prog_ac_ct_F77 6587if test -n "$ac_ct_F77"; then 6588 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 6589echo "${ECHO_T}$ac_ct_F77" >&6; } 6590else 6591 { echo "$as_me:$LINENO: result: no" >&5 6592echo "${ECHO_T}no" >&6; } 6593fi 6594 6595 6596 test -n "$ac_ct_F77" && break 6597done 6598 6599 if test "x$ac_ct_F77" = x; then 6600 F77="" 6601 else 6602 case $cross_compiling:$ac_tool_warned in 6603yes:) 6604{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6605whose name does not start with the host triplet. If you think this 6606configuration is useful to you, please write to autoconf@gnu.org." >&5 6607echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6608whose name does not start with the host triplet. If you think this 6609configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6610ac_tool_warned=yes ;; 6611esac 6612 F77=$ac_ct_F77 6613 fi 6614fi 6615 6616 6617# Provide some information about the compiler. 6618echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 6619ac_compiler=`set X $ac_compile; echo $2` 6620{ (ac_try="$ac_compiler --version >&5" 6621case "(($ac_try" in 6622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6623 *) ac_try_echo=$ac_try;; 6624esac 6625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6626 (eval "$ac_compiler --version >&5") 2>&5 6627 ac_status=$? 6628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6629 (exit $ac_status); } 6630{ (ac_try="$ac_compiler -v >&5" 6631case "(($ac_try" in 6632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6633 *) ac_try_echo=$ac_try;; 6634esac 6635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6636 (eval "$ac_compiler -v >&5") 2>&5 6637 ac_status=$? 6638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6639 (exit $ac_status); } 6640{ (ac_try="$ac_compiler -V >&5" 6641case "(($ac_try" in 6642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6643 *) ac_try_echo=$ac_try;; 6644esac 6645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6646 (eval "$ac_compiler -V >&5") 2>&5 6647 ac_status=$? 6648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6649 (exit $ac_status); } 6650rm -f a.out 6651 6652# If we don't use `.F' as extension, the preprocessor is not run on the 6653# input file. (Note that this only needs to work for GNU compilers.) 6654ac_save_ext=$ac_ext 6655ac_ext=F 6656{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 6657echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } 6658if test "${ac_cv_f77_compiler_gnu+set}" = set; then 6659 echo $ECHO_N "(cached) $ECHO_C" >&6 6660else 6661 cat >conftest.$ac_ext <<_ACEOF 6662 program main 6663#ifndef __GNUC__ 6664 choke me 6665#endif 6666 6667 end 6668_ACEOF 6669rm -f conftest.$ac_objext 6670if { (ac_try="$ac_compile" 6671case "(($ac_try" in 6672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6673 *) ac_try_echo=$ac_try;; 6674esac 6675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6676 (eval "$ac_compile") 2>conftest.er1 6677 ac_status=$? 6678 grep -v '^ *+' conftest.er1 >conftest.err 6679 rm -f conftest.er1 6680 cat conftest.err >&5 6681 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6682 (exit $ac_status); } && { 6683 test -z "$ac_f77_werror_flag" || 6684 test ! -s conftest.err 6685 } && test -s conftest.$ac_objext; then 6686 ac_compiler_gnu=yes 6687else 6688 echo "$as_me: failed program was:" >&5 6689sed 's/^/| /' conftest.$ac_ext >&5 6690 6691 ac_compiler_gnu=no 6692fi 6693 6694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6695ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6696 6697fi 6698{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 6699echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } 6700ac_ext=$ac_save_ext 6701ac_test_FFLAGS=${FFLAGS+set} 6702ac_save_FFLAGS=$FFLAGS 6703FFLAGS= 6704{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 6705echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } 6706if test "${ac_cv_prog_f77_g+set}" = set; then 6707 echo $ECHO_N "(cached) $ECHO_C" >&6 6708else 6709 FFLAGS=-g 6710cat >conftest.$ac_ext <<_ACEOF 6711 program main 6712 6713 end 6714_ACEOF 6715rm -f conftest.$ac_objext 6716if { (ac_try="$ac_compile" 6717case "(($ac_try" in 6718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6719 *) ac_try_echo=$ac_try;; 6720esac 6721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6722 (eval "$ac_compile") 2>conftest.er1 6723 ac_status=$? 6724 grep -v '^ *+' conftest.er1 >conftest.err 6725 rm -f conftest.er1 6726 cat conftest.err >&5 6727 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6728 (exit $ac_status); } && { 6729 test -z "$ac_f77_werror_flag" || 6730 test ! -s conftest.err 6731 } && test -s conftest.$ac_objext; then 6732 ac_cv_prog_f77_g=yes 6733else 6734 echo "$as_me: failed program was:" >&5 6735sed 's/^/| /' conftest.$ac_ext >&5 6736 6737 ac_cv_prog_f77_g=no 6738fi 6739 6740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6741 6742fi 6743{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6744echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } 6745if test "$ac_test_FFLAGS" = set; then 6746 FFLAGS=$ac_save_FFLAGS 6747elif test $ac_cv_prog_f77_g = yes; then 6748 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6749 FFLAGS="-g -O2" 6750 else 6751 FFLAGS="-g" 6752 fi 6753else 6754 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6755 FFLAGS="-O2" 6756 else 6757 FFLAGS= 6758 fi 6759fi 6760 6761G77=`test $ac_compiler_gnu = yes && echo yes` 6762ac_ext=c 6763ac_cpp='$CPP $CPPFLAGS' 6764ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6765ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6766ac_compiler_gnu=$ac_cv_c_compiler_gnu 6767 6768 6769 6770# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6771 6772# find the maximum length of command line arguments 6773{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6774echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } 6775if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6776 echo $ECHO_N "(cached) $ECHO_C" >&6 6777else 6778 i=0 6779 teststring="ABCD" 6780 6781 case $build_os in 6782 msdosdjgpp*) 6783 # On DJGPP, this test can blow up pretty badly due to problems in libc 6784 # (any single argument exceeding 2000 bytes causes a buffer overrun 6785 # during glob expansion). Even if it were fixed, the result of this 6786 # check would be larger than it should be. 6787 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6788 ;; 6789 6790 gnu*) 6791 # Under GNU Hurd, this test is not required because there is 6792 # no limit to the length of command line arguments. 6793 # Libtool will interpret -1 as no limit whatsoever 6794 lt_cv_sys_max_cmd_len=-1; 6795 ;; 6796 6797 cygwin* | mingw*) 6798 # On Win9x/ME, this test blows up -- it succeeds, but takes 6799 # about 5 minutes as the teststring grows exponentially. 6800 # Worse, since 9x/ME are not pre-emptively multitasking, 6801 # you end up with a "frozen" computer, even though with patience 6802 # the test eventually succeeds (with a max line length of 256k). 6803 # Instead, let's just punt: use the minimum linelength reported by 6804 # all of the supported platforms: 8192 (on NT/2K/XP). 6805 lt_cv_sys_max_cmd_len=8192; 6806 ;; 6807 6808 amigaos*) 6809 # On AmigaOS with pdksh, this test takes hours, literally. 6810 # So we just punt and use a minimum line length of 8192. 6811 lt_cv_sys_max_cmd_len=8192; 6812 ;; 6813 6814 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6815 # This has been around since 386BSD, at least. Likely further. 6816 if test -x /sbin/sysctl; then 6817 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6818 elif test -x /usr/sbin/sysctl; then 6819 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6820 else 6821 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6822 fi 6823 # And add a safety zone 6824 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6825 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6826 ;; 6827 6828 interix*) 6829 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6830 lt_cv_sys_max_cmd_len=196608 6831 ;; 6832 6833 osf*) 6834 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6835 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6836 # nice to cause kernel panics so lets avoid the loop below. 6837 # First set a reasonable default. 6838 lt_cv_sys_max_cmd_len=16384 6839 # 6840 if test -x /sbin/sysconfig; then 6841 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6842 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6843 esac 6844 fi 6845 ;; 6846 sco3.2v5*) 6847 lt_cv_sys_max_cmd_len=102400 6848 ;; 6849 sysv5* | sco5v6* | sysv4.2uw2*) 6850 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6851 if test -n "$kargmax"; then 6852 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6853 else 6854 lt_cv_sys_max_cmd_len=32768 6855 fi 6856 ;; 6857 *) 6858 # If test is not a shell built-in, we'll probably end up computing a 6859 # maximum length that is only half of the actual maximum length, but 6860 # we can't tell. 6861 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6862 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6863 = "XX$teststring") >/dev/null 2>&1 && 6864 new_result=`expr "X$teststring" : ".*" 2>&1` && 6865 lt_cv_sys_max_cmd_len=$new_result && 6866 test $i != 17 # 1/2 MB should be enough 6867 do 6868 i=`expr $i + 1` 6869 teststring=$teststring$teststring 6870 done 6871 teststring= 6872 # Add a significant safety factor because C++ compilers can tack on massive 6873 # amounts of additional arguments before passing them to the linker. 6874 # It appears as though 1/2 is a usable value. 6875 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6876 ;; 6877 esac 6878 6879fi 6880 6881if test -n $lt_cv_sys_max_cmd_len ; then 6882 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6883echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } 6884else 6885 { echo "$as_me:$LINENO: result: none" >&5 6886echo "${ECHO_T}none" >&6; } 6887fi 6888 6889 6890 6891 6892# Check for command to grab the raw symbol name followed by C symbol from nm. 6893{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6894echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 6895if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6896 echo $ECHO_N "(cached) $ECHO_C" >&6 6897else 6898 6899# These are sane defaults that work on at least a few old systems. 6900# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6901 6902# Character class describing NM global symbol codes. 6903symcode='[BCDEGRST]' 6904 6905# Regexp to match symbols that can be accessed directly from C. 6906sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6907 6908# Transform an extracted symbol line into a proper C declaration 6909lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6910 6911# Transform an extracted symbol line into symbol name and symbol address 6912lt_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'" 6913 6914# Define system-specific variables. 6915case $host_os in 6916aix*) 6917 symcode='[BCDT]' 6918 ;; 6919cygwin* | mingw* | pw32*) 6920 symcode='[ABCDGISTW]' 6921 ;; 6922hpux*) # Its linker distinguishes data from code symbols 6923 if test "$host_cpu" = ia64; then 6924 symcode='[ABCDEGRST]' 6925 fi 6926 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6927 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'" 6928 ;; 6929linux* | k*bsd*-gnu) 6930 if test "$host_cpu" = ia64; then 6931 symcode='[ABCDGIRSTW]' 6932 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6933 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'" 6934 fi 6935 ;; 6936irix* | nonstopux*) 6937 symcode='[BCDEGRST]' 6938 ;; 6939osf*) 6940 symcode='[BCDEGQRST]' 6941 ;; 6942solaris*) 6943 symcode='[BDRT]' 6944 ;; 6945sco3.2v5*) 6946 symcode='[DT]' 6947 ;; 6948sysv4.2uw2*) 6949 symcode='[DT]' 6950 ;; 6951sysv5* | sco5v6* | unixware* | OpenUNIX*) 6952 symcode='[ABDT]' 6953 ;; 6954sysv4) 6955 symcode='[DFNSTU]' 6956 ;; 6957esac 6958 6959# Handle CRLF in mingw tool chain 6960opt_cr= 6961case $build_os in 6962mingw*) 6963 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6964 ;; 6965esac 6966 6967# If we're using GNU nm, then use its standard symbol codes. 6968case `$NM -V 2>&1` in 6969*GNU* | *'with BFD'*) 6970 symcode='[ABCDGIRSTW]' ;; 6971esac 6972 6973# Try without a prefix undercore, then with it. 6974for ac_symprfx in "" "_"; do 6975 6976 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6977 symxfrm="\\1 $ac_symprfx\\2 \\2" 6978 6979 # Write the raw and C identifiers. 6980 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6981 6982 # Check to see that the pipe works correctly. 6983 pipe_works=no 6984 6985 rm -f conftest* 6986 cat > conftest.$ac_ext <<EOF 6987#ifdef __cplusplus 6988extern "C" { 6989#endif 6990char nm_test_var; 6991void nm_test_func(){} 6992#ifdef __cplusplus 6993} 6994#endif 6995int main(){nm_test_var='a';nm_test_func();return(0);} 6996EOF 6997 6998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6999 (eval $ac_compile) 2>&5 7000 ac_status=$? 7001 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7002 (exit $ac_status); }; then 7003 # Now try to grab the symbols. 7004 nlist=conftest.nm 7005 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 7006 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 7007 ac_status=$? 7008 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7009 (exit $ac_status); } && test -s "$nlist"; then 7010 # Try sorting and uniquifying the output. 7011 if sort "$nlist" | uniq > "$nlist"T; then 7012 mv -f "$nlist"T "$nlist" 7013 else 7014 rm -f "$nlist"T 7015 fi 7016 7017 # Make sure that we snagged all the symbols we need. 7018 if grep ' nm_test_var$' "$nlist" >/dev/null; then 7019 if grep ' nm_test_func$' "$nlist" >/dev/null; then 7020 cat <<EOF > conftest.$ac_ext 7021#ifdef __cplusplus 7022extern "C" { 7023#endif 7024 7025EOF 7026 # Now generate the symbol file. 7027 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 7028 7029 cat <<EOF >> conftest.$ac_ext 7030#if defined (__STDC__) && __STDC__ 7031# define lt_ptr_t void * 7032#else 7033# define lt_ptr_t char * 7034# define const 7035#endif 7036 7037/* The mapping between symbol names and symbols. */ 7038const struct { 7039 const char *name; 7040 lt_ptr_t address; 7041} 7042lt_preloaded_symbols[] = 7043{ 7044EOF 7045 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 7046 cat <<\EOF >> conftest.$ac_ext 7047 {0, (lt_ptr_t) 0} 7048}; 7049 7050#ifdef __cplusplus 7051} 7052#endif 7053EOF 7054 # Now try linking the two files. 7055 mv conftest.$ac_objext conftstm.$ac_objext 7056 lt_save_LIBS="$LIBS" 7057 lt_save_CFLAGS="$CFLAGS" 7058 LIBS="conftstm.$ac_objext" 7059 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7061 (eval $ac_link) 2>&5 7062 ac_status=$? 7063 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7064 (exit $ac_status); } && test -s conftest${ac_exeext}; then 7065 pipe_works=yes 7066 fi 7067 LIBS="$lt_save_LIBS" 7068 CFLAGS="$lt_save_CFLAGS" 7069 else 7070 echo "cannot find nm_test_func in $nlist" >&5 7071 fi 7072 else 7073 echo "cannot find nm_test_var in $nlist" >&5 7074 fi 7075 else 7076 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7077 fi 7078 else 7079 echo "$progname: failed program was:" >&5 7080 cat conftest.$ac_ext >&5 7081 fi 7082 rm -f conftest* conftst* 7083 7084 # Do not use the global_symbol_pipe unless it works. 7085 if test "$pipe_works" = yes; then 7086 break 7087 else 7088 lt_cv_sys_global_symbol_pipe= 7089 fi 7090done 7091 7092fi 7093 7094if test -z "$lt_cv_sys_global_symbol_pipe"; then 7095 lt_cv_sys_global_symbol_to_cdecl= 7096fi 7097if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7098 { echo "$as_me:$LINENO: result: failed" >&5 7099echo "${ECHO_T}failed" >&6; } 7100else 7101 { echo "$as_me:$LINENO: result: ok" >&5 7102echo "${ECHO_T}ok" >&6; } 7103fi 7104 7105{ echo "$as_me:$LINENO: checking for objdir" >&5 7106echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 7107if test "${lt_cv_objdir+set}" = set; then 7108 echo $ECHO_N "(cached) $ECHO_C" >&6 7109else 7110 rm -f .libs 2>/dev/null 7111mkdir .libs 2>/dev/null 7112if test -d .libs; then 7113 lt_cv_objdir=.libs 7114else 7115 # MS-DOS does not allow filenames that begin with a dot. 7116 lt_cv_objdir=_libs 7117fi 7118rmdir .libs 2>/dev/null 7119fi 7120{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 7121echo "${ECHO_T}$lt_cv_objdir" >&6; } 7122objdir=$lt_cv_objdir 7123 7124 7125 7126 7127 7128case $host_os in 7129aix3*) 7130 # AIX sometimes has problems with the GCC collect2 program. For some 7131 # reason, if we set the COLLECT_NAMES environment variable, the problems 7132 # vanish in a puff of smoke. 7133 if test "X${COLLECT_NAMES+set}" != Xset; then 7134 COLLECT_NAMES= 7135 export COLLECT_NAMES 7136 fi 7137 ;; 7138esac 7139 7140# Sed substitution that helps us do robust quoting. It backslashifies 7141# metacharacters that are still active within double-quoted strings. 7142Xsed='sed -e 1s/^X//' 7143sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 7144 7145# Same as above, but do not quote variable references. 7146double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 7147 7148# Sed substitution to delay expansion of an escaped shell variable in a 7149# double_quote_subst'ed string. 7150delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7151 7152# Sed substitution to avoid accidental globbing in evaled expressions 7153no_glob_subst='s/\*/\\\*/g' 7154 7155# Constants: 7156rm="rm -f" 7157 7158# Global variables: 7159default_ofile=libtool 7160can_build_shared=yes 7161 7162# All known linkers require a `.a' archive for static linking (except MSVC, 7163# which needs '.lib'). 7164libext=a 7165ltmain="$ac_aux_dir/ltmain.sh" 7166ofile="$default_ofile" 7167with_gnu_ld="$lt_cv_prog_gnu_ld" 7168 7169if test -n "$ac_tool_prefix"; then 7170 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 7171set dummy ${ac_tool_prefix}ar; ac_word=$2 7172{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7174if test "${ac_cv_prog_AR+set}" = set; then 7175 echo $ECHO_N "(cached) $ECHO_C" >&6 7176else 7177 if test -n "$AR"; then 7178 ac_cv_prog_AR="$AR" # Let the user override the test. 7179else 7180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7181for as_dir in $PATH 7182do 7183 IFS=$as_save_IFS 7184 test -z "$as_dir" && as_dir=. 7185 for ac_exec_ext in '' $ac_executable_extensions; do 7186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7187 ac_cv_prog_AR="${ac_tool_prefix}ar" 7188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7189 break 2 7190 fi 7191done 7192done 7193IFS=$as_save_IFS 7194 7195fi 7196fi 7197AR=$ac_cv_prog_AR 7198if test -n "$AR"; then 7199 { echo "$as_me:$LINENO: result: $AR" >&5 7200echo "${ECHO_T}$AR" >&6; } 7201else 7202 { echo "$as_me:$LINENO: result: no" >&5 7203echo "${ECHO_T}no" >&6; } 7204fi 7205 7206 7207fi 7208if test -z "$ac_cv_prog_AR"; then 7209 ac_ct_AR=$AR 7210 # Extract the first word of "ar", so it can be a program name with args. 7211set dummy ar; ac_word=$2 7212{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7213echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7214if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 7215 echo $ECHO_N "(cached) $ECHO_C" >&6 7216else 7217 if test -n "$ac_ct_AR"; then 7218 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7219else 7220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7221for as_dir in $PATH 7222do 7223 IFS=$as_save_IFS 7224 test -z "$as_dir" && as_dir=. 7225 for ac_exec_ext in '' $ac_executable_extensions; do 7226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7227 ac_cv_prog_ac_ct_AR="ar" 7228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7229 break 2 7230 fi 7231done 7232done 7233IFS=$as_save_IFS 7234 7235fi 7236fi 7237ac_ct_AR=$ac_cv_prog_ac_ct_AR 7238if test -n "$ac_ct_AR"; then 7239 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 7240echo "${ECHO_T}$ac_ct_AR" >&6; } 7241else 7242 { echo "$as_me:$LINENO: result: no" >&5 7243echo "${ECHO_T}no" >&6; } 7244fi 7245 7246 if test "x$ac_ct_AR" = x; then 7247 AR="false" 7248 else 7249 case $cross_compiling:$ac_tool_warned in 7250yes:) 7251{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7252whose name does not start with the host triplet. If you think this 7253configuration is useful to you, please write to autoconf@gnu.org." >&5 7254echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7255whose name does not start with the host triplet. If you think this 7256configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7257ac_tool_warned=yes ;; 7258esac 7259 AR=$ac_ct_AR 7260 fi 7261else 7262 AR="$ac_cv_prog_AR" 7263fi 7264 7265if test -n "$ac_tool_prefix"; then 7266 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7267set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7268{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7270if test "${ac_cv_prog_RANLIB+set}" = set; then 7271 echo $ECHO_N "(cached) $ECHO_C" >&6 7272else 7273 if test -n "$RANLIB"; then 7274 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7275else 7276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7277for as_dir in $PATH 7278do 7279 IFS=$as_save_IFS 7280 test -z "$as_dir" && as_dir=. 7281 for ac_exec_ext in '' $ac_executable_extensions; do 7282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7283 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7285 break 2 7286 fi 7287done 7288done 7289IFS=$as_save_IFS 7290 7291fi 7292fi 7293RANLIB=$ac_cv_prog_RANLIB 7294if test -n "$RANLIB"; then 7295 { echo "$as_me:$LINENO: result: $RANLIB" >&5 7296echo "${ECHO_T}$RANLIB" >&6; } 7297else 7298 { echo "$as_me:$LINENO: result: no" >&5 7299echo "${ECHO_T}no" >&6; } 7300fi 7301 7302 7303fi 7304if test -z "$ac_cv_prog_RANLIB"; then 7305 ac_ct_RANLIB=$RANLIB 7306 # Extract the first word of "ranlib", so it can be a program name with args. 7307set dummy ranlib; ac_word=$2 7308{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7309echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7310if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 7311 echo $ECHO_N "(cached) $ECHO_C" >&6 7312else 7313 if test -n "$ac_ct_RANLIB"; then 7314 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7315else 7316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7317for as_dir in $PATH 7318do 7319 IFS=$as_save_IFS 7320 test -z "$as_dir" && as_dir=. 7321 for ac_exec_ext in '' $ac_executable_extensions; do 7322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7323 ac_cv_prog_ac_ct_RANLIB="ranlib" 7324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7325 break 2 7326 fi 7327done 7328done 7329IFS=$as_save_IFS 7330 7331fi 7332fi 7333ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7334if test -n "$ac_ct_RANLIB"; then 7335 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 7336echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 7337else 7338 { echo "$as_me:$LINENO: result: no" >&5 7339echo "${ECHO_T}no" >&6; } 7340fi 7341 7342 if test "x$ac_ct_RANLIB" = x; then 7343 RANLIB=":" 7344 else 7345 case $cross_compiling:$ac_tool_warned in 7346yes:) 7347{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7348whose name does not start with the host triplet. If you think this 7349configuration is useful to you, please write to autoconf@gnu.org." >&5 7350echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7351whose name does not start with the host triplet. If you think this 7352configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7353ac_tool_warned=yes ;; 7354esac 7355 RANLIB=$ac_ct_RANLIB 7356 fi 7357else 7358 RANLIB="$ac_cv_prog_RANLIB" 7359fi 7360 7361if test -n "$ac_tool_prefix"; then 7362 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7363set dummy ${ac_tool_prefix}strip; ac_word=$2 7364{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7365echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7366if test "${ac_cv_prog_STRIP+set}" = set; then 7367 echo $ECHO_N "(cached) $ECHO_C" >&6 7368else 7369 if test -n "$STRIP"; then 7370 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7371else 7372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7373for as_dir in $PATH 7374do 7375 IFS=$as_save_IFS 7376 test -z "$as_dir" && as_dir=. 7377 for ac_exec_ext in '' $ac_executable_extensions; do 7378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7379 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7381 break 2 7382 fi 7383done 7384done 7385IFS=$as_save_IFS 7386 7387fi 7388fi 7389STRIP=$ac_cv_prog_STRIP 7390if test -n "$STRIP"; then 7391 { echo "$as_me:$LINENO: result: $STRIP" >&5 7392echo "${ECHO_T}$STRIP" >&6; } 7393else 7394 { echo "$as_me:$LINENO: result: no" >&5 7395echo "${ECHO_T}no" >&6; } 7396fi 7397 7398 7399fi 7400if test -z "$ac_cv_prog_STRIP"; then 7401 ac_ct_STRIP=$STRIP 7402 # Extract the first word of "strip", so it can be a program name with args. 7403set dummy strip; ac_word=$2 7404{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7405echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7406if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 7407 echo $ECHO_N "(cached) $ECHO_C" >&6 7408else 7409 if test -n "$ac_ct_STRIP"; then 7410 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7411else 7412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7413for as_dir in $PATH 7414do 7415 IFS=$as_save_IFS 7416 test -z "$as_dir" && as_dir=. 7417 for ac_exec_ext in '' $ac_executable_extensions; do 7418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7419 ac_cv_prog_ac_ct_STRIP="strip" 7420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7421 break 2 7422 fi 7423done 7424done 7425IFS=$as_save_IFS 7426 7427fi 7428fi 7429ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7430if test -n "$ac_ct_STRIP"; then 7431 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 7432echo "${ECHO_T}$ac_ct_STRIP" >&6; } 7433else 7434 { echo "$as_me:$LINENO: result: no" >&5 7435echo "${ECHO_T}no" >&6; } 7436fi 7437 7438 if test "x$ac_ct_STRIP" = x; then 7439 STRIP=":" 7440 else 7441 case $cross_compiling:$ac_tool_warned in 7442yes:) 7443{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7444whose name does not start with the host triplet. If you think this 7445configuration is useful to you, please write to autoconf@gnu.org." >&5 7446echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7447whose name does not start with the host triplet. If you think this 7448configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7449ac_tool_warned=yes ;; 7450esac 7451 STRIP=$ac_ct_STRIP 7452 fi 7453else 7454 STRIP="$ac_cv_prog_STRIP" 7455fi 7456 7457 7458old_CC="$CC" 7459old_CFLAGS="$CFLAGS" 7460 7461# Set sane defaults for various variables 7462test -z "$AR" && AR=ar 7463test -z "$AR_FLAGS" && AR_FLAGS=cru 7464test -z "$AS" && AS=as 7465test -z "$CC" && CC=cc 7466test -z "$LTCC" && LTCC=$CC 7467test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7468test -z "$DLLTOOL" && DLLTOOL=dlltool 7469test -z "$LD" && LD=ld 7470test -z "$LN_S" && LN_S="ln -s" 7471test -z "$MAGIC_CMD" && MAGIC_CMD=file 7472test -z "$NM" && NM=nm 7473test -z "$SED" && SED=sed 7474test -z "$OBJDUMP" && OBJDUMP=objdump 7475test -z "$RANLIB" && RANLIB=: 7476test -z "$STRIP" && STRIP=: 7477test -z "$ac_objext" && ac_objext=o 7478 7479# Determine commands to create old-style static archives. 7480old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 7481old_postinstall_cmds='chmod 644 $oldlib' 7482old_postuninstall_cmds= 7483 7484if test -n "$RANLIB"; then 7485 case $host_os in 7486 openbsd*) 7487 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 7488 ;; 7489 *) 7490 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 7491 ;; 7492 esac 7493 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 7494fi 7495 7496for cc_temp in $compiler""; do 7497 case $cc_temp in 7498 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7499 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7500 \-*) ;; 7501 *) break;; 7502 esac 7503done 7504cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7505 7506 7507# Only perform the check for file, if the check method requires it 7508case $deplibs_check_method in 7509file_magic*) 7510 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7511 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7512echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } 7513if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7514 echo $ECHO_N "(cached) $ECHO_C" >&6 7515else 7516 case $MAGIC_CMD in 7517[\\/*] | ?:[\\/]*) 7518 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7519 ;; 7520*) 7521 lt_save_MAGIC_CMD="$MAGIC_CMD" 7522 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7523 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7524 for ac_dir in $ac_dummy; do 7525 IFS="$lt_save_ifs" 7526 test -z "$ac_dir" && ac_dir=. 7527 if test -f $ac_dir/${ac_tool_prefix}file; then 7528 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7529 if test -n "$file_magic_test_file"; then 7530 case $deplibs_check_method in 7531 "file_magic "*) 7532 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7533 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7534 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7535 $EGREP "$file_magic_regex" > /dev/null; then 7536 : 7537 else 7538 cat <<EOF 1>&2 7539 7540*** Warning: the command libtool uses to detect shared libraries, 7541*** $file_magic_cmd, produces output that libtool cannot recognize. 7542*** The result is that libtool may fail to recognize shared libraries 7543*** as such. This will affect the creation of libtool libraries that 7544*** depend on shared libraries, but programs linked with such libtool 7545*** libraries will work regardless of this problem. Nevertheless, you 7546*** may want to report the problem to your system manager and/or to 7547*** bug-libtool@gnu.org 7548 7549EOF 7550 fi ;; 7551 esac 7552 fi 7553 break 7554 fi 7555 done 7556 IFS="$lt_save_ifs" 7557 MAGIC_CMD="$lt_save_MAGIC_CMD" 7558 ;; 7559esac 7560fi 7561 7562MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7563if test -n "$MAGIC_CMD"; then 7564 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7565echo "${ECHO_T}$MAGIC_CMD" >&6; } 7566else 7567 { echo "$as_me:$LINENO: result: no" >&5 7568echo "${ECHO_T}no" >&6; } 7569fi 7570 7571if test -z "$lt_cv_path_MAGIC_CMD"; then 7572 if test -n "$ac_tool_prefix"; then 7573 { echo "$as_me:$LINENO: checking for file" >&5 7574echo $ECHO_N "checking for file... $ECHO_C" >&6; } 7575if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7576 echo $ECHO_N "(cached) $ECHO_C" >&6 7577else 7578 case $MAGIC_CMD in 7579[\\/*] | ?:[\\/]*) 7580 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7581 ;; 7582*) 7583 lt_save_MAGIC_CMD="$MAGIC_CMD" 7584 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7585 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7586 for ac_dir in $ac_dummy; do 7587 IFS="$lt_save_ifs" 7588 test -z "$ac_dir" && ac_dir=. 7589 if test -f $ac_dir/file; then 7590 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7591 if test -n "$file_magic_test_file"; then 7592 case $deplibs_check_method in 7593 "file_magic "*) 7594 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7595 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7596 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7597 $EGREP "$file_magic_regex" > /dev/null; then 7598 : 7599 else 7600 cat <<EOF 1>&2 7601 7602*** Warning: the command libtool uses to detect shared libraries, 7603*** $file_magic_cmd, produces output that libtool cannot recognize. 7604*** The result is that libtool may fail to recognize shared libraries 7605*** as such. This will affect the creation of libtool libraries that 7606*** depend on shared libraries, but programs linked with such libtool 7607*** libraries will work regardless of this problem. Nevertheless, you 7608*** may want to report the problem to your system manager and/or to 7609*** bug-libtool@gnu.org 7610 7611EOF 7612 fi ;; 7613 esac 7614 fi 7615 break 7616 fi 7617 done 7618 IFS="$lt_save_ifs" 7619 MAGIC_CMD="$lt_save_MAGIC_CMD" 7620 ;; 7621esac 7622fi 7623 7624MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7625if test -n "$MAGIC_CMD"; then 7626 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7627echo "${ECHO_T}$MAGIC_CMD" >&6; } 7628else 7629 { echo "$as_me:$LINENO: result: no" >&5 7630echo "${ECHO_T}no" >&6; } 7631fi 7632 7633 else 7634 MAGIC_CMD=: 7635 fi 7636fi 7637 7638 fi 7639 ;; 7640esac 7641 7642enable_dlopen=yes 7643enable_win32_dll=no 7644 7645# Check whether --enable-libtool-lock was given. 7646if test "${enable_libtool_lock+set}" = set; then 7647 enableval=$enable_libtool_lock; 7648fi 7649 7650test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7651 7652 7653# Check whether --with-pic was given. 7654if test "${with_pic+set}" = set; then 7655 withval=$with_pic; pic_mode="$withval" 7656else 7657 pic_mode=default 7658fi 7659 7660test -z "$pic_mode" && pic_mode=default 7661 7662# Use C for the default configuration in the libtool script 7663tagname= 7664lt_save_CC="$CC" 7665ac_ext=c 7666ac_cpp='$CPP $CPPFLAGS' 7667ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7668ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7669ac_compiler_gnu=$ac_cv_c_compiler_gnu 7670 7671 7672# Source file extension for C test sources. 7673ac_ext=c 7674 7675# Object file extension for compiled C test sources. 7676objext=o 7677objext=$objext 7678 7679# Code to be used in simple compile tests 7680lt_simple_compile_test_code="int some_variable = 0;\n" 7681 7682# Code to be used in simple link tests 7683lt_simple_link_test_code='int main(){return(0);}\n' 7684 7685 7686# If no C compiler was specified, use CC. 7687LTCC=${LTCC-"$CC"} 7688 7689# If no C compiler flags were specified, use CFLAGS. 7690LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7691 7692# Allow CC to be a program name with arguments. 7693compiler=$CC 7694 7695 7696# save warnings/boilerplate of simple test code 7697ac_outfile=conftest.$ac_objext 7698printf "$lt_simple_compile_test_code" >conftest.$ac_ext 7699eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7700_lt_compiler_boilerplate=`cat conftest.err` 7701$rm conftest* 7702 7703ac_outfile=conftest.$ac_objext 7704printf "$lt_simple_link_test_code" >conftest.$ac_ext 7705eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7706_lt_linker_boilerplate=`cat conftest.err` 7707$rm conftest* 7708 7709 7710 7711lt_prog_compiler_no_builtin_flag= 7712 7713if test "$GCC" = yes; then 7714 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7715 7716 7717{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7718echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 7719if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7720 echo $ECHO_N "(cached) $ECHO_C" >&6 7721else 7722 lt_cv_prog_compiler_rtti_exceptions=no 7723 ac_outfile=conftest.$ac_objext 7724 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7725 lt_compiler_flag="-fno-rtti -fno-exceptions" 7726 # Insert the option either (1) after the last *FLAGS variable, or 7727 # (2) before a word containing "conftest.", or (3) at the end. 7728 # Note that $ac_compile itself does not contain backslashes and begins 7729 # with a dollar sign (not a hyphen), so the echo should work correctly. 7730 # The option is referenced via a variable to avoid confusing sed. 7731 lt_compile=`echo "$ac_compile" | $SED \ 7732 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7733 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7734 -e 's:$: $lt_compiler_flag:'` 7735 (eval echo "\"\$as_me:7735: $lt_compile\"" >&5) 7736 (eval "$lt_compile" 2>conftest.err) 7737 ac_status=$? 7738 cat conftest.err >&5 7739 echo "$as_me:7739: \$? = $ac_status" >&5 7740 if (exit $ac_status) && test -s "$ac_outfile"; then 7741 # The compiler can only warn and ignore the option if not recognized 7742 # So say no if there are warnings other than the usual output. 7743 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7744 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7745 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7746 lt_cv_prog_compiler_rtti_exceptions=yes 7747 fi 7748 fi 7749 $rm conftest* 7750 7751fi 7752{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7753echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7754 7755if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7756 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7757else 7758 : 7759fi 7760 7761fi 7762 7763lt_prog_compiler_wl= 7764lt_prog_compiler_pic= 7765lt_prog_compiler_static= 7766 7767{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7768echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 7769 7770 if test "$GCC" = yes; then 7771 lt_prog_compiler_wl='-Wl,' 7772 lt_prog_compiler_static='-static' 7773 7774 case $host_os in 7775 aix*) 7776 # All AIX code is PIC. 7777 if test "$host_cpu" = ia64; then 7778 # AIX 5 now supports IA64 processor 7779 lt_prog_compiler_static='-Bstatic' 7780 fi 7781 ;; 7782 7783 amigaos*) 7784 # FIXME: we need at least 68020 code to build shared libraries, but 7785 # adding the `-m68020' flag to GCC prevents building anything better, 7786 # like `-m68040'. 7787 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7788 ;; 7789 7790 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7791 # PIC is the default for these OSes. 7792 ;; 7793 7794 mingw* | pw32* | os2*) 7795 # This hack is so that the source file can tell whether it is being 7796 # built for inclusion in a dll (and should export symbols for example). 7797 lt_prog_compiler_pic='-DDLL_EXPORT' 7798 ;; 7799 7800 darwin* | rhapsody*) 7801 # PIC is the default on this platform 7802 # Common symbols not allowed in MH_DYLIB files 7803 lt_prog_compiler_pic='-fno-common' 7804 ;; 7805 7806 interix3*) 7807 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7808 # Instead, we relocate shared libraries at runtime. 7809 ;; 7810 7811 msdosdjgpp*) 7812 # Just because we use GCC doesn't mean we suddenly get shared libraries 7813 # on systems that don't support them. 7814 lt_prog_compiler_can_build_shared=no 7815 enable_shared=no 7816 ;; 7817 7818 sysv4*MP*) 7819 if test -d /usr/nec; then 7820 lt_prog_compiler_pic=-Kconform_pic 7821 fi 7822 ;; 7823 7824 hpux*) 7825 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7826 # not for PA HP-UX. 7827 case $host_cpu in 7828 hppa*64*|ia64*) 7829 # +Z the default 7830 ;; 7831 *) 7832 lt_prog_compiler_pic='-fPIC' 7833 ;; 7834 esac 7835 ;; 7836 7837 *) 7838 lt_prog_compiler_pic='-fPIC' 7839 ;; 7840 esac 7841 else 7842 # PORTME Check for flag to pass linker flags through the system compiler. 7843 case $host_os in 7844 aix*) 7845 lt_prog_compiler_wl='-Wl,' 7846 if test "$host_cpu" = ia64; then 7847 # AIX 5 now supports IA64 processor 7848 lt_prog_compiler_static='-Bstatic' 7849 else 7850 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7851 fi 7852 ;; 7853 darwin*) 7854 # PIC is the default on this platform 7855 # Common symbols not allowed in MH_DYLIB files 7856 case $cc_basename in 7857 xlc*) 7858 lt_prog_compiler_pic='-qnocommon' 7859 lt_prog_compiler_wl='-Wl,' 7860 ;; 7861 esac 7862 ;; 7863 7864 mingw* | pw32* | os2*) 7865 # This hack is so that the source file can tell whether it is being 7866 # built for inclusion in a dll (and should export symbols for example). 7867 lt_prog_compiler_pic='-DDLL_EXPORT' 7868 ;; 7869 7870 hpux9* | hpux10* | hpux11*) 7871 lt_prog_compiler_wl='-Wl,' 7872 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7873 # not for PA HP-UX. 7874 case $host_cpu in 7875 hppa*64*|ia64*) 7876 # +Z the default 7877 ;; 7878 *) 7879 lt_prog_compiler_pic='+Z' 7880 ;; 7881 esac 7882 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7883 lt_prog_compiler_static='${wl}-a ${wl}archive' 7884 ;; 7885 7886 irix5* | irix6* | nonstopux*) 7887 lt_prog_compiler_wl='-Wl,' 7888 # PIC (with -KPIC) is the default. 7889 lt_prog_compiler_static='-non_shared' 7890 ;; 7891 7892 newsos6) 7893 lt_prog_compiler_pic='-KPIC' 7894 lt_prog_compiler_static='-Bstatic' 7895 ;; 7896 7897 linux* | k*bsd*-gnu) 7898 case $cc_basename in 7899 icc* | ecc*) 7900 lt_prog_compiler_wl='-Wl,' 7901 lt_prog_compiler_pic='-KPIC' 7902 lt_prog_compiler_static='-static' 7903 ;; 7904 pgcc* | pgf77* | pgf90* | pgf95*) 7905 # Portland Group compilers (*not* the Pentium gcc compiler, 7906 # which looks to be a dead project) 7907 lt_prog_compiler_wl='-Wl,' 7908 lt_prog_compiler_pic='-fpic' 7909 lt_prog_compiler_static='-Bstatic' 7910 ;; 7911 ccc*) 7912 lt_prog_compiler_wl='-Wl,' 7913 # All Alpha code is PIC. 7914 lt_prog_compiler_static='-non_shared' 7915 ;; 7916 esac 7917 ;; 7918 7919 osf3* | osf4* | osf5*) 7920 lt_prog_compiler_wl='-Wl,' 7921 # All OSF/1 code is PIC. 7922 lt_prog_compiler_static='-non_shared' 7923 ;; 7924 7925 solaris*) 7926 lt_prog_compiler_pic='-KPIC' 7927 lt_prog_compiler_static='-Bstatic' 7928 case $cc_basename in 7929 f77* | f90* | f95*) 7930 lt_prog_compiler_wl='-Qoption ld ';; 7931 *) 7932 lt_prog_compiler_wl='-Wl,';; 7933 esac 7934 ;; 7935 7936 sunos4*) 7937 lt_prog_compiler_wl='-Qoption ld ' 7938 lt_prog_compiler_pic='-PIC' 7939 lt_prog_compiler_static='-Bstatic' 7940 ;; 7941 7942 sysv4 | sysv4.2uw2* | sysv4.3*) 7943 lt_prog_compiler_wl='-Wl,' 7944 lt_prog_compiler_pic='-KPIC' 7945 lt_prog_compiler_static='-Bstatic' 7946 ;; 7947 7948 sysv4*MP*) 7949 if test -d /usr/nec ;then 7950 lt_prog_compiler_pic='-Kconform_pic' 7951 lt_prog_compiler_static='-Bstatic' 7952 fi 7953 ;; 7954 7955 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7956 lt_prog_compiler_wl='-Wl,' 7957 lt_prog_compiler_pic='-KPIC' 7958 lt_prog_compiler_static='-Bstatic' 7959 ;; 7960 7961 unicos*) 7962 lt_prog_compiler_wl='-Wl,' 7963 lt_prog_compiler_can_build_shared=no 7964 ;; 7965 7966 uts4*) 7967 lt_prog_compiler_pic='-pic' 7968 lt_prog_compiler_static='-Bstatic' 7969 ;; 7970 7971 *) 7972 lt_prog_compiler_can_build_shared=no 7973 ;; 7974 esac 7975 fi 7976 7977{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7978echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 7979 7980# 7981# Check to make sure the PIC flag actually works. 7982# 7983if test -n "$lt_prog_compiler_pic"; then 7984 7985{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7986echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 7987if test "${lt_prog_compiler_pic_works+set}" = set; then 7988 echo $ECHO_N "(cached) $ECHO_C" >&6 7989else 7990 lt_prog_compiler_pic_works=no 7991 ac_outfile=conftest.$ac_objext 7992 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7993 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7994 # Insert the option either (1) after the last *FLAGS variable, or 7995 # (2) before a word containing "conftest.", or (3) at the end. 7996 # Note that $ac_compile itself does not contain backslashes and begins 7997 # with a dollar sign (not a hyphen), so the echo should work correctly. 7998 # The option is referenced via a variable to avoid confusing sed. 7999 lt_compile=`echo "$ac_compile" | $SED \ 8000 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8001 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8002 -e 's:$: $lt_compiler_flag:'` 8003 (eval echo "\"\$as_me:8003: $lt_compile\"" >&5) 8004 (eval "$lt_compile" 2>conftest.err) 8005 ac_status=$? 8006 cat conftest.err >&5 8007 echo "$as_me:8007: \$? = $ac_status" >&5 8008 if (exit $ac_status) && test -s "$ac_outfile"; then 8009 # The compiler can only warn and ignore the option if not recognized 8010 # So say no if there are warnings other than the usual output. 8011 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8012 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8013 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8014 lt_prog_compiler_pic_works=yes 8015 fi 8016 fi 8017 $rm conftest* 8018 8019fi 8020{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 8021echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } 8022 8023if test x"$lt_prog_compiler_pic_works" = xyes; then 8024 case $lt_prog_compiler_pic in 8025 "" | " "*) ;; 8026 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8027 esac 8028else 8029 lt_prog_compiler_pic= 8030 lt_prog_compiler_can_build_shared=no 8031fi 8032 8033fi 8034case $host_os in 8035 # For platforms which do not support PIC, -DPIC is meaningless: 8036 *djgpp*) 8037 lt_prog_compiler_pic= 8038 ;; 8039 *) 8040 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8041 ;; 8042esac 8043 8044# 8045# Check to make sure the static flag actually works. 8046# 8047wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8048{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8049echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 8050if test "${lt_prog_compiler_static_works+set}" = set; then 8051 echo $ECHO_N "(cached) $ECHO_C" >&6 8052else 8053 lt_prog_compiler_static_works=no 8054 save_LDFLAGS="$LDFLAGS" 8055 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8056 printf "$lt_simple_link_test_code" > conftest.$ac_ext 8057 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8058 # The linker can only warn and ignore the option if not recognized 8059 # So say no if there are warnings 8060 if test -s conftest.err; then 8061 # Append any errors to the config.log. 8062 cat conftest.err 1>&5 8063 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 8064 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8065 if diff conftest.exp conftest.er2 >/dev/null; then 8066 lt_prog_compiler_static_works=yes 8067 fi 8068 else 8069 lt_prog_compiler_static_works=yes 8070 fi 8071 fi 8072 $rm conftest* 8073 LDFLAGS="$save_LDFLAGS" 8074 8075fi 8076{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 8077echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } 8078 8079if test x"$lt_prog_compiler_static_works" = xyes; then 8080 : 8081else 8082 lt_prog_compiler_static= 8083fi 8084 8085 8086{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 8087echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 8088if test "${lt_cv_prog_compiler_c_o+set}" = set; then 8089 echo $ECHO_N "(cached) $ECHO_C" >&6 8090else 8091 lt_cv_prog_compiler_c_o=no 8092 $rm -r conftest 2>/dev/null 8093 mkdir conftest 8094 cd conftest 8095 mkdir out 8096 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8097 8098 lt_compiler_flag="-o out/conftest2.$ac_objext" 8099 # Insert the option either (1) after the last *FLAGS variable, or 8100 # (2) before a word containing "conftest.", or (3) at the end. 8101 # Note that $ac_compile itself does not contain backslashes and begins 8102 # with a dollar sign (not a hyphen), so the echo should work correctly. 8103 lt_compile=`echo "$ac_compile" | $SED \ 8104 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8105 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8106 -e 's:$: $lt_compiler_flag:'` 8107 (eval echo "\"\$as_me:8107: $lt_compile\"" >&5) 8108 (eval "$lt_compile" 2>out/conftest.err) 8109 ac_status=$? 8110 cat out/conftest.err >&5 8111 echo "$as_me:8111: \$? = $ac_status" >&5 8112 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8113 then 8114 # The compiler can only warn and ignore the option if not recognized 8115 # So say no if there are warnings 8116 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8117 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8118 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8119 lt_cv_prog_compiler_c_o=yes 8120 fi 8121 fi 8122 chmod u+w . 2>&5 8123 $rm conftest* 8124 # SGI C++ compiler will create directory out/ii_files/ for 8125 # template instantiation 8126 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 8127 $rm out/* && rmdir out 8128 cd .. 8129 rmdir conftest 8130 $rm conftest* 8131 8132fi 8133{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8134echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 8135 8136 8137hard_links="nottested" 8138if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8139 # do not overwrite the value of need_locks provided by the user 8140 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 8141echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 8142 hard_links=yes 8143 $rm conftest* 8144 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8145 touch conftest.a 8146 ln conftest.a conftest.b 2>&5 || hard_links=no 8147 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8148 { echo "$as_me:$LINENO: result: $hard_links" >&5 8149echo "${ECHO_T}$hard_links" >&6; } 8150 if test "$hard_links" = no; then 8151 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8152echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8153 need_locks=warn 8154 fi 8155else 8156 need_locks=no 8157fi 8158 8159{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8160echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 8161 8162 runpath_var= 8163 allow_undefined_flag= 8164 enable_shared_with_static_runtimes=no 8165 archive_cmds= 8166 archive_expsym_cmds= 8167 old_archive_From_new_cmds= 8168 old_archive_from_expsyms_cmds= 8169 export_dynamic_flag_spec= 8170 whole_archive_flag_spec= 8171 thread_safe_flag_spec= 8172 hardcode_libdir_flag_spec= 8173 hardcode_libdir_flag_spec_ld= 8174 hardcode_libdir_separator= 8175 hardcode_direct=no 8176 hardcode_minus_L=no 8177 hardcode_shlibpath_var=unsupported 8178 link_all_deplibs=unknown 8179 hardcode_automatic=no 8180 module_cmds= 8181 module_expsym_cmds= 8182 always_export_symbols=no 8183 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8184 # include_expsyms should be a list of space-separated symbols to be *always* 8185 # included in the symbol list 8186 include_expsyms= 8187 # exclude_expsyms can be an extended regexp of symbols to exclude 8188 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8189 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8190 # as well as any symbol that contains `d'. 8191 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 8192 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8193 # platforms (ab)use it in PIC code, but their linkers get confused if 8194 # the symbol is explicitly referenced. Since portable code cannot 8195 # rely on this symbol name, it's probably fine to never include it in 8196 # preloaded symbol tables. 8197 extract_expsyms_cmds= 8198 # Just being paranoid about ensuring that cc_basename is set. 8199 for cc_temp in $compiler""; do 8200 case $cc_temp in 8201 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8202 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8203 \-*) ;; 8204 *) break;; 8205 esac 8206done 8207cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8208 8209 case $host_os in 8210 cygwin* | mingw* | pw32*) 8211 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8212 # When not using gcc, we currently assume that we are using 8213 # Microsoft Visual C++. 8214 if test "$GCC" != yes; then 8215 with_gnu_ld=no 8216 fi 8217 ;; 8218 interix*) 8219 # we just hope/assume this is gcc and not c89 (= MSVC++) 8220 with_gnu_ld=yes 8221 ;; 8222 openbsd*) 8223 with_gnu_ld=no 8224 ;; 8225 esac 8226 8227 ld_shlibs=yes 8228 if test "$with_gnu_ld" = yes; then 8229 # If archive_cmds runs LD, not CC, wlarc should be empty 8230 wlarc='${wl}' 8231 8232 # Set some defaults for GNU ld with shared library support. These 8233 # are reset later if shared libraries are not supported. Putting them 8234 # here allows them to be overridden if necessary. 8235 runpath_var=LD_RUN_PATH 8236 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 8237 export_dynamic_flag_spec='${wl}--export-dynamic' 8238 # ancient GNU ld didn't support --whole-archive et. al. 8239 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 8240 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8241 else 8242 whole_archive_flag_spec= 8243 fi 8244 supports_anon_versioning=no 8245 case `$LD -v 2>/dev/null` in 8246 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8247 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8248 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8249 *\ 2.11.*) ;; # other 2.11 versions 8250 *) supports_anon_versioning=yes ;; 8251 esac 8252 8253 # See if GNU ld supports shared libraries. 8254 case $host_os in 8255 aix3* | aix4* | aix5*) 8256 # On AIX/PPC, the GNU linker is very broken 8257 if test "$host_cpu" != ia64; then 8258 ld_shlibs=no 8259 cat <<EOF 1>&2 8260 8261*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8262*** to be unable to reliably create shared libraries on AIX. 8263*** Therefore, libtool is disabling shared libraries support. If you 8264*** really care for shared libraries, you may want to modify your PATH 8265*** so that a non-GNU linker is found, and then restart. 8266 8267EOF 8268 fi 8269 ;; 8270 8271 amigaos*) 8272 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)' 8273 hardcode_libdir_flag_spec='-L$libdir' 8274 hardcode_minus_L=yes 8275 8276 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 8277 # that the semantics of dynamic libraries on AmigaOS, at least up 8278 # to version 4, is to share data among multiple programs linked 8279 # with the same dynamic library. Since this doesn't match the 8280 # behavior of shared libraries on other platforms, we can't use 8281 # them. 8282 ld_shlibs=no 8283 ;; 8284 8285 beos*) 8286 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8287 allow_undefined_flag=unsupported 8288 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8289 # support --undefined. This deserves some investigation. FIXME 8290 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8291 else 8292 ld_shlibs=no 8293 fi 8294 ;; 8295 8296 cygwin* | mingw* | pw32*) 8297 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8298 # as there is no search path for DLLs. 8299 hardcode_libdir_flag_spec='-L$libdir' 8300 allow_undefined_flag=unsupported 8301 always_export_symbols=no 8302 enable_shared_with_static_runtimes=yes 8303 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 8304 8305 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 8306 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8307 # If the export-symbols file already is a .def file (1st line 8308 # is EXPORTS), use it as is; otherwise, prepend... 8309 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8310 cp $export_symbols $output_objdir/$soname.def; 8311 else 8312 echo EXPORTS > $output_objdir/$soname.def; 8313 cat $export_symbols >> $output_objdir/$soname.def; 8314 fi~ 8315 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8316 else 8317 ld_shlibs=no 8318 fi 8319 ;; 8320 8321 interix3*) 8322 hardcode_direct=no 8323 hardcode_shlibpath_var=no 8324 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8325 export_dynamic_flag_spec='${wl}-E' 8326 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8327 # Instead, shared libraries are loaded at an image base (0x10000000 by 8328 # default) and relocated if they conflict, which is a slow very memory 8329 # consuming and fragmenting process. To avoid this, we pick a random, 8330 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8331 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8332 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8333 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' 8334 ;; 8335 8336 linux* | k*bsd*-gnu) 8337 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8338 tmp_addflag= 8339 case $cc_basename,$host_cpu in 8340 pgcc*) # Portland Group C compiler 8341 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' 8342 tmp_addflag=' $pic_flag' 8343 ;; 8344 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8345 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' 8346 tmp_addflag=' $pic_flag -Mnomain' ;; 8347 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8348 tmp_addflag=' -i_dynamic' ;; 8349 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8350 tmp_addflag=' -i_dynamic -nofor_main' ;; 8351 ifc* | ifort*) # Intel Fortran compiler 8352 tmp_addflag=' -nofor_main' ;; 8353 esac 8354 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8355 8356 if test $supports_anon_versioning = yes; then 8357 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 8358 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8359 $echo "local: *; };" >> $output_objdir/$libname.ver~ 8360 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8361 fi 8362 link_all_deplibs=no 8363 else 8364 ld_shlibs=no 8365 fi 8366 ;; 8367 8368 netbsd* | netbsdelf*-gnu) 8369 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8370 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8371 wlarc= 8372 else 8373 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8374 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8375 fi 8376 ;; 8377 8378 solaris*) 8379 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 8380 ld_shlibs=no 8381 cat <<EOF 1>&2 8382 8383*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8384*** create shared libraries on Solaris systems. Therefore, libtool 8385*** is disabling shared libraries support. We urge you to upgrade GNU 8386*** binutils to release 2.9.1 or newer. Another option is to modify 8387*** your PATH or compiler configuration so that the native linker is 8388*** used, and then restart. 8389 8390EOF 8391 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8392 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8393 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8394 else 8395 ld_shlibs=no 8396 fi 8397 ;; 8398 8399 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8400 case `$LD -v 2>&1` in 8401 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8402 ld_shlibs=no 8403 cat <<_LT_EOF 1>&2 8404 8405*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8406*** reliably create shared libraries on SCO systems. Therefore, libtool 8407*** is disabling shared libraries support. We urge you to upgrade GNU 8408*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8409*** your PATH or compiler configuration so that the native linker is 8410*** used, and then restart. 8411 8412_LT_EOF 8413 ;; 8414 *) 8415 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8416 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 8417 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 8418 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 8419 else 8420 ld_shlibs=no 8421 fi 8422 ;; 8423 esac 8424 ;; 8425 8426 sunos4*) 8427 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8428 wlarc= 8429 hardcode_direct=yes 8430 hardcode_shlibpath_var=no 8431 ;; 8432 8433 *) 8434 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8435 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8436 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8437 else 8438 ld_shlibs=no 8439 fi 8440 ;; 8441 esac 8442 8443 if test "$ld_shlibs" = no; then 8444 runpath_var= 8445 hardcode_libdir_flag_spec= 8446 export_dynamic_flag_spec= 8447 whole_archive_flag_spec= 8448 fi 8449 else 8450 # PORTME fill in a description of your system's linker (not GNU ld) 8451 case $host_os in 8452 aix3*) 8453 allow_undefined_flag=unsupported 8454 always_export_symbols=yes 8455 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' 8456 # Note: this linker hardcodes the directories in LIBPATH if there 8457 # are no directories specified by -L. 8458 hardcode_minus_L=yes 8459 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8460 # Neither direct hardcoding nor static linking is supported with a 8461 # broken collect2. 8462 hardcode_direct=unsupported 8463 fi 8464 ;; 8465 8466 aix4* | aix5*) 8467 if test "$host_cpu" = ia64; then 8468 # On IA64, the linker does run time linking by default, so we don't 8469 # have to do anything special. 8470 aix_use_runtimelinking=no 8471 exp_sym_flag='-Bexport' 8472 no_entry_flag="" 8473 else 8474 # If we're using GNU nm, then we don't want the "-C" option. 8475 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8476 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 8477 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' 8478 else 8479 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' 8480 fi 8481 aix_use_runtimelinking=no 8482 8483 # Test if we are trying to use run time linking or normal 8484 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8485 # need to do runtime linking. 8486 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 8487 for ld_flag in $LDFLAGS; do 8488 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8489 aix_use_runtimelinking=yes 8490 break 8491 fi 8492 done 8493 ;; 8494 esac 8495 8496 exp_sym_flag='-bexport' 8497 no_entry_flag='-bnoentry' 8498 fi 8499 8500 # When large executables or shared objects are built, AIX ld can 8501 # have problems creating the table of contents. If linking a library 8502 # or program results in "error TOC overflow" add -mminimal-toc to 8503 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8504 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8505 8506 archive_cmds='' 8507 hardcode_direct=yes 8508 hardcode_libdir_separator=':' 8509 link_all_deplibs=yes 8510 8511 if test "$GCC" = yes; then 8512 case $host_os in aix4.[012]|aix4.[012].*) 8513 # We only want to do this on AIX 4.2 and lower, the check 8514 # below for broken collect2 doesn't work under 4.3+ 8515 collect2name=`${CC} -print-prog-name=collect2` 8516 if test -f "$collect2name" && \ 8517 strings "$collect2name" | grep resolve_lib_name >/dev/null 8518 then 8519 # We have reworked collect2 8520 hardcode_direct=yes 8521 else 8522 # We have old collect2 8523 hardcode_direct=unsupported 8524 # It fails to find uninstalled libraries when the uninstalled 8525 # path is not listed in the libpath. Setting hardcode_minus_L 8526 # to unsupported forces relinking 8527 hardcode_minus_L=yes 8528 hardcode_libdir_flag_spec='-L$libdir' 8529 hardcode_libdir_separator= 8530 fi 8531 ;; 8532 esac 8533 shared_flag='-shared' 8534 if test "$aix_use_runtimelinking" = yes; then 8535 shared_flag="$shared_flag "'${wl}-G' 8536 fi 8537 else 8538 # not using gcc 8539 if test "$host_cpu" = ia64; then 8540 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8541 # chokes on -Wl,-G. The following line is correct: 8542 shared_flag='-G' 8543 else 8544 if test "$aix_use_runtimelinking" = yes; then 8545 shared_flag='${wl}-G' 8546 else 8547 shared_flag='${wl}-bM:SRE' 8548 fi 8549 fi 8550 fi 8551 8552 # It seems that -bexpall does not export symbols beginning with 8553 # underscore (_), so it is better to generate a list of symbols to export. 8554 always_export_symbols=yes 8555 if test "$aix_use_runtimelinking" = yes; then 8556 # Warning - without using the other runtime loading flags (-brtl), 8557 # -berok will link without error, but may produce a broken library. 8558 allow_undefined_flag='-berok' 8559 # Determine the default libpath from the value encoded in an empty executable. 8560 cat >conftest.$ac_ext <<_ACEOF 8561/* confdefs.h. */ 8562_ACEOF 8563cat confdefs.h >>conftest.$ac_ext 8564cat >>conftest.$ac_ext <<_ACEOF 8565/* end confdefs.h. */ 8566 8567int 8568main () 8569{ 8570 8571 ; 8572 return 0; 8573} 8574_ACEOF 8575rm -f conftest.$ac_objext conftest$ac_exeext 8576if { (ac_try="$ac_link" 8577case "(($ac_try" in 8578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8579 *) ac_try_echo=$ac_try;; 8580esac 8581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8582 (eval "$ac_link") 2>conftest.er1 8583 ac_status=$? 8584 grep -v '^ *+' conftest.er1 >conftest.err 8585 rm -f conftest.er1 8586 cat conftest.err >&5 8587 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8588 (exit $ac_status); } && { 8589 test -z "$ac_c_werror_flag" || 8590 test ! -s conftest.err 8591 } && test -s conftest$ac_exeext && 8592 $as_test_x conftest$ac_exeext; then 8593 8594aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8595}'` 8596# Check for a 64-bit object if we didn't find anything. 8597if 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; } 8598}'`; fi 8599else 8600 echo "$as_me: failed program was:" >&5 8601sed 's/^/| /' conftest.$ac_ext >&5 8602 8603 8604fi 8605 8606rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8607 conftest$ac_exeext conftest.$ac_ext 8608if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8609 8610 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8611 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" 8612 else 8613 if test "$host_cpu" = ia64; then 8614 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8615 allow_undefined_flag="-z nodefs" 8616 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" 8617 else 8618 # Determine the default libpath from the value encoded in an empty executable. 8619 cat >conftest.$ac_ext <<_ACEOF 8620/* confdefs.h. */ 8621_ACEOF 8622cat confdefs.h >>conftest.$ac_ext 8623cat >>conftest.$ac_ext <<_ACEOF 8624/* end confdefs.h. */ 8625 8626int 8627main () 8628{ 8629 8630 ; 8631 return 0; 8632} 8633_ACEOF 8634rm -f conftest.$ac_objext conftest$ac_exeext 8635if { (ac_try="$ac_link" 8636case "(($ac_try" in 8637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8638 *) ac_try_echo=$ac_try;; 8639esac 8640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8641 (eval "$ac_link") 2>conftest.er1 8642 ac_status=$? 8643 grep -v '^ *+' conftest.er1 >conftest.err 8644 rm -f conftest.er1 8645 cat conftest.err >&5 8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8647 (exit $ac_status); } && { 8648 test -z "$ac_c_werror_flag" || 8649 test ! -s conftest.err 8650 } && test -s conftest$ac_exeext && 8651 $as_test_x conftest$ac_exeext; then 8652 8653aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8654}'` 8655# Check for a 64-bit object if we didn't find anything. 8656if 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; } 8657}'`; fi 8658else 8659 echo "$as_me: failed program was:" >&5 8660sed 's/^/| /' conftest.$ac_ext >&5 8661 8662 8663fi 8664 8665rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8666 conftest$ac_exeext conftest.$ac_ext 8667if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8668 8669 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8670 # Warning - without using the other run time loading flags, 8671 # -berok will link without error, but may produce a broken library. 8672 no_undefined_flag=' ${wl}-bernotok' 8673 allow_undefined_flag=' ${wl}-berok' 8674 # Exported symbols can be pulled into shared objects from archives 8675 whole_archive_flag_spec='$convenience' 8676 archive_cmds_need_lc=yes 8677 # This is similar to how AIX traditionally builds its shared libraries. 8678 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' 8679 fi 8680 fi 8681 ;; 8682 8683 amigaos*) 8684 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)' 8685 hardcode_libdir_flag_spec='-L$libdir' 8686 hardcode_minus_L=yes 8687 # see comment about different semantics on the GNU ld section 8688 ld_shlibs=no 8689 ;; 8690 8691 bsdi[45]*) 8692 export_dynamic_flag_spec=-rdynamic 8693 ;; 8694 8695 cygwin* | mingw* | pw32*) 8696 # When not using gcc, we currently assume that we are using 8697 # Microsoft Visual C++. 8698 # hardcode_libdir_flag_spec is actually meaningless, as there is 8699 # no search path for DLLs. 8700 hardcode_libdir_flag_spec=' ' 8701 allow_undefined_flag=unsupported 8702 # Tell ltmain to make .lib files, not .a files. 8703 libext=lib 8704 # Tell ltmain to make .dll files, not .so files. 8705 shrext_cmds=".dll" 8706 # FIXME: Setting linknames here is a bad hack. 8707 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8708 # The linker will automatically build a .lib file if we build a DLL. 8709 old_archive_From_new_cmds='true' 8710 # FIXME: Should let the user specify the lib program. 8711 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 8712 fix_srcfile_path='`cygpath -w "$srcfile"`' 8713 enable_shared_with_static_runtimes=yes 8714 ;; 8715 8716 darwin* | rhapsody*) 8717 case $host_os in 8718 rhapsody* | darwin1.[012]) 8719 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8720 ;; 8721 *) # Darwin 1.3 on 8722 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8723 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8724 else 8725 case ${MACOSX_DEPLOYMENT_TARGET} in 8726 10.[012]) 8727 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8728 ;; 8729 10.*) 8730 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8731 ;; 8732 esac 8733 fi 8734 ;; 8735 esac 8736 archive_cmds_need_lc=no 8737 hardcode_direct=no 8738 hardcode_automatic=yes 8739 hardcode_shlibpath_var=unsupported 8740 whole_archive_flag_spec='' 8741 link_all_deplibs=yes 8742 if test "$GCC" = yes ; then 8743 output_verbose_link_cmd='echo' 8744 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 8745 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8746 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8747 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}' 8748 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}' 8749 else 8750 case $cc_basename in 8751 xlc*) 8752 output_verbose_link_cmd='echo' 8753 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 8754 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8755 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8756 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}' 8757 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}' 8758 ;; 8759 *) 8760 ld_shlibs=no 8761 ;; 8762 esac 8763 fi 8764 ;; 8765 8766 dgux*) 8767 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8768 hardcode_libdir_flag_spec='-L$libdir' 8769 hardcode_shlibpath_var=no 8770 ;; 8771 8772 freebsd1*) 8773 ld_shlibs=no 8774 ;; 8775 8776 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8777 # support. Future versions do this automatically, but an explicit c++rt0.o 8778 # does not break anything, and helps significantly (at the cost of a little 8779 # extra space). 8780 freebsd2.2*) 8781 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8782 hardcode_libdir_flag_spec='-R$libdir' 8783 hardcode_direct=yes 8784 hardcode_shlibpath_var=no 8785 ;; 8786 8787 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8788 freebsd2*) 8789 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8790 hardcode_direct=yes 8791 hardcode_minus_L=yes 8792 hardcode_shlibpath_var=no 8793 ;; 8794 8795 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8796 freebsd* | dragonfly*) 8797 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8798 hardcode_libdir_flag_spec='-R$libdir' 8799 hardcode_direct=yes 8800 hardcode_shlibpath_var=no 8801 ;; 8802 8803 hpux9*) 8804 if test "$GCC" = yes; then 8805 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' 8806 else 8807 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' 8808 fi 8809 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8810 hardcode_libdir_separator=: 8811 hardcode_direct=yes 8812 8813 # hardcode_minus_L: Not really in the search PATH, 8814 # but as the default location of the library. 8815 hardcode_minus_L=yes 8816 export_dynamic_flag_spec='${wl}-E' 8817 ;; 8818 8819 hpux10*) 8820 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8821 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8822 else 8823 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8824 fi 8825 if test "$with_gnu_ld" = no; then 8826 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8827 hardcode_libdir_separator=: 8828 8829 hardcode_direct=yes 8830 export_dynamic_flag_spec='${wl}-E' 8831 8832 # hardcode_minus_L: Not really in the search PATH, 8833 # but as the default location of the library. 8834 hardcode_minus_L=yes 8835 fi 8836 ;; 8837 8838 hpux11*) 8839 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8840 case $host_cpu in 8841 hppa*64*) 8842 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8843 ;; 8844 ia64*) 8845 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8846 ;; 8847 *) 8848 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8849 ;; 8850 esac 8851 else 8852 case $host_cpu in 8853 hppa*64*) 8854 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8855 ;; 8856 ia64*) 8857 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8858 ;; 8859 *) 8860 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8861 ;; 8862 esac 8863 fi 8864 if test "$with_gnu_ld" = no; then 8865 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8866 hardcode_libdir_separator=: 8867 8868 case $host_cpu in 8869 hppa*64*|ia64*) 8870 hardcode_libdir_flag_spec_ld='+b $libdir' 8871 hardcode_direct=no 8872 hardcode_shlibpath_var=no 8873 ;; 8874 *) 8875 hardcode_direct=yes 8876 export_dynamic_flag_spec='${wl}-E' 8877 8878 # hardcode_minus_L: Not really in the search PATH, 8879 # but as the default location of the library. 8880 hardcode_minus_L=yes 8881 ;; 8882 esac 8883 fi 8884 ;; 8885 8886 irix5* | irix6* | nonstopux*) 8887 if test "$GCC" = yes; then 8888 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' 8889 else 8890 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' 8891 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8892 fi 8893 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8894 hardcode_libdir_separator=: 8895 link_all_deplibs=yes 8896 ;; 8897 8898 netbsd* | netbsdelf*-gnu) 8899 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8900 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8901 else 8902 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8903 fi 8904 hardcode_libdir_flag_spec='-R$libdir' 8905 hardcode_direct=yes 8906 hardcode_shlibpath_var=no 8907 ;; 8908 8909 newsos6) 8910 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8911 hardcode_direct=yes 8912 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8913 hardcode_libdir_separator=: 8914 hardcode_shlibpath_var=no 8915 ;; 8916 8917 openbsd*) 8918 hardcode_direct=yes 8919 hardcode_shlibpath_var=no 8920 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8921 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8922 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8923 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8924 export_dynamic_flag_spec='${wl}-E' 8925 else 8926 case $host_os in 8927 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8928 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8929 hardcode_libdir_flag_spec='-R$libdir' 8930 ;; 8931 *) 8932 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8933 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8934 ;; 8935 esac 8936 fi 8937 ;; 8938 8939 os2*) 8940 hardcode_libdir_flag_spec='-L$libdir' 8941 hardcode_minus_L=yes 8942 allow_undefined_flag=unsupported 8943 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' 8944 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8945 ;; 8946 8947 osf3*) 8948 if test "$GCC" = yes; then 8949 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8950 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' 8951 else 8952 allow_undefined_flag=' -expect_unresolved \*' 8953 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' 8954 fi 8955 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8956 hardcode_libdir_separator=: 8957 ;; 8958 8959 osf4* | osf5*) # as osf3* with the addition of -msym flag 8960 if test "$GCC" = yes; then 8961 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8962 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' 8963 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8964 else 8965 allow_undefined_flag=' -expect_unresolved \*' 8966 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' 8967 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8968 $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' 8969 8970 # Both c and cxx compiler support -rpath directly 8971 hardcode_libdir_flag_spec='-rpath $libdir' 8972 fi 8973 hardcode_libdir_separator=: 8974 ;; 8975 8976 solaris*) 8977 no_undefined_flag=' -z text' 8978 if test "$GCC" = yes; then 8979 wlarc='${wl}' 8980 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8981 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8982 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8983 else 8984 wlarc='' 8985 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8986 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8987 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8988 fi 8989 hardcode_libdir_flag_spec='-R$libdir' 8990 hardcode_shlibpath_var=no 8991 case $host_os in 8992 solaris2.[0-5] | solaris2.[0-5].*) ;; 8993 *) 8994 # The compiler driver will combine linker options so we 8995 # cannot just pass the convience library names through 8996 # without $wl, iff we do not link with $LD. 8997 # Luckily, gcc supports the same syntax we need for Sun Studio. 8998 # Supported since Solaris 2.6 (maybe 2.5.1?) 8999 case $wlarc in 9000 '') 9001 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 9002 *) 9003 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' ;; 9004 esac ;; 9005 esac 9006 link_all_deplibs=yes 9007 ;; 9008 9009 sunos4*) 9010 if test "x$host_vendor" = xsequent; then 9011 # Use $CC to link under sequent, because it throws in some extra .o 9012 # files that make .init and .fini sections work. 9013 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9014 else 9015 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9016 fi 9017 hardcode_libdir_flag_spec='-L$libdir' 9018 hardcode_direct=yes 9019 hardcode_minus_L=yes 9020 hardcode_shlibpath_var=no 9021 ;; 9022 9023 sysv4) 9024 case $host_vendor in 9025 sni) 9026 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9027 hardcode_direct=yes # is this really true??? 9028 ;; 9029 siemens) 9030 ## LD is ld it makes a PLAMLIB 9031 ## CC just makes a GrossModule. 9032 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9033 reload_cmds='$CC -r -o $output$reload_objs' 9034 hardcode_direct=no 9035 ;; 9036 motorola) 9037 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9038 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9039 ;; 9040 esac 9041 runpath_var='LD_RUN_PATH' 9042 hardcode_shlibpath_var=no 9043 ;; 9044 9045 sysv4.3*) 9046 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9047 hardcode_shlibpath_var=no 9048 export_dynamic_flag_spec='-Bexport' 9049 ;; 9050 9051 sysv4*MP*) 9052 if test -d /usr/nec; then 9053 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9054 hardcode_shlibpath_var=no 9055 runpath_var=LD_RUN_PATH 9056 hardcode_runpath_var=yes 9057 ld_shlibs=yes 9058 fi 9059 ;; 9060 9061 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 9062 no_undefined_flag='${wl}-z,text' 9063 archive_cmds_need_lc=no 9064 hardcode_shlibpath_var=no 9065 runpath_var='LD_RUN_PATH' 9066 9067 if test "$GCC" = yes; then 9068 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9069 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9070 else 9071 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9072 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9073 fi 9074 ;; 9075 9076 sysv5* | sco3.2v5* | sco5v6*) 9077 # Note: We can NOT use -z defs as we might desire, because we do not 9078 # link with -lc, and that would cause any symbols used from libc to 9079 # always be unresolved, which means just about no library would 9080 # ever link correctly. If we're not using GNU ld we use -z text 9081 # though, which does catch some bad symbols but isn't as heavy-handed 9082 # as -z defs. 9083 no_undefined_flag='${wl}-z,text' 9084 allow_undefined_flag='${wl}-z,nodefs' 9085 archive_cmds_need_lc=no 9086 hardcode_shlibpath_var=no 9087 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 9088 hardcode_libdir_separator=':' 9089 link_all_deplibs=yes 9090 export_dynamic_flag_spec='${wl}-Bexport' 9091 runpath_var='LD_RUN_PATH' 9092 9093 if test "$GCC" = yes; then 9094 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9095 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9096 else 9097 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9098 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9099 fi 9100 ;; 9101 9102 uts4*) 9103 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9104 hardcode_libdir_flag_spec='-L$libdir' 9105 hardcode_shlibpath_var=no 9106 ;; 9107 9108 *) 9109 ld_shlibs=no 9110 ;; 9111 esac 9112 fi 9113 9114{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 9115echo "${ECHO_T}$ld_shlibs" >&6; } 9116test "$ld_shlibs" = no && can_build_shared=no 9117 9118# 9119# Do we need to explicitly link libc? 9120# 9121case "x$archive_cmds_need_lc" in 9122x|xyes) 9123 # Assume -lc should be added 9124 archive_cmds_need_lc=yes 9125 9126 if test "$enable_shared" = yes && test "$GCC" = yes; then 9127 case $archive_cmds in 9128 *'~'*) 9129 # FIXME: we may have to deal with multi-command sequences. 9130 ;; 9131 '$CC '*) 9132 # Test whether the compiler implicitly links with -lc since on some 9133 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9134 # to ld, don't add -lc before -lgcc. 9135 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 9136echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 9137 $rm conftest* 9138 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 9139 9140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9141 (eval $ac_compile) 2>&5 9142 ac_status=$? 9143 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9144 (exit $ac_status); } 2>conftest.err; then 9145 soname=conftest 9146 lib=conftest 9147 libobjs=conftest.$ac_objext 9148 deplibs= 9149 wl=$lt_prog_compiler_wl 9150 pic_flag=$lt_prog_compiler_pic 9151 compiler_flags=-v 9152 linker_flags=-v 9153 verstring= 9154 output_objdir=. 9155 libname=conftest 9156 lt_save_allow_undefined_flag=$allow_undefined_flag 9157 allow_undefined_flag= 9158 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 9159 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 9160 ac_status=$? 9161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9162 (exit $ac_status); } 9163 then 9164 archive_cmds_need_lc=no 9165 else 9166 archive_cmds_need_lc=yes 9167 fi 9168 allow_undefined_flag=$lt_save_allow_undefined_flag 9169 else 9170 cat conftest.err 1>&5 9171 fi 9172 $rm conftest* 9173 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 9174echo "${ECHO_T}$archive_cmds_need_lc" >&6; } 9175 ;; 9176 esac 9177 fi 9178 ;; 9179esac 9180 9181{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9182echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 9183library_names_spec= 9184libname_spec='lib$name' 9185soname_spec= 9186shrext_cmds=".so" 9187postinstall_cmds= 9188postuninstall_cmds= 9189finish_cmds= 9190finish_eval= 9191shlibpath_var= 9192shlibpath_overrides_runpath=unknown 9193version_type=none 9194dynamic_linker="$host_os ld.so" 9195sys_lib_dlsearch_path_spec="/lib /usr/lib" 9196if test "$GCC" = yes; then 9197 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9198 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 9199 # if the path contains ";" then we assume it to be the separator 9200 # otherwise default to the standard path separator (i.e. ":") - it is 9201 # assumed that no part of a normal pathname contains ";" but that should 9202 # okay in the real world where ";" in dirpaths is itself problematic. 9203 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9204 else 9205 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9206 fi 9207else 9208 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9209fi 9210need_lib_prefix=unknown 9211hardcode_into_libs=no 9212 9213# when you set need_version to no, make sure it does not cause -set_version 9214# flags to be left without arguments 9215need_version=unknown 9216 9217case $host_os in 9218aix3*) 9219 version_type=linux 9220 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9221 shlibpath_var=LIBPATH 9222 9223 # AIX 3 has no versioning support, so we append a major version to the name. 9224 soname_spec='${libname}${release}${shared_ext}$major' 9225 ;; 9226 9227aix4* | aix5*) 9228 version_type=linux 9229 need_lib_prefix=no 9230 need_version=no 9231 hardcode_into_libs=yes 9232 if test "$host_cpu" = ia64; then 9233 # AIX 5 supports IA64 9234 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9235 shlibpath_var=LD_LIBRARY_PATH 9236 else 9237 # With GCC up to 2.95.x, collect2 would create an import file 9238 # for dependence libraries. The import file would start with 9239 # the line `#! .'. This would cause the generated library to 9240 # depend on `.', always an invalid library. This was fixed in 9241 # development snapshots of GCC prior to 3.0. 9242 case $host_os in 9243 aix4 | aix4.[01] | aix4.[01].*) 9244 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9245 echo ' yes ' 9246 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 9247 : 9248 else 9249 can_build_shared=no 9250 fi 9251 ;; 9252 esac 9253 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9254 # soname into executable. Probably we can add versioning support to 9255 # collect2, so additional links can be useful in future. 9256 if test "$aix_use_runtimelinking" = yes; then 9257 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9258 # instead of lib<name>.a to let people know that these are not 9259 # typical AIX shared libraries. 9260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9261 else 9262 # We preserve .a as extension for shared libraries through AIX4.2 9263 # and later when we are not doing run time linking. 9264 library_names_spec='${libname}${release}.a $libname.a' 9265 soname_spec='${libname}${release}${shared_ext}$major' 9266 fi 9267 shlibpath_var=LIBPATH 9268 fi 9269 ;; 9270 9271amigaos*) 9272 library_names_spec='$libname.ixlibrary $libname.a' 9273 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9274 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' 9275 ;; 9276 9277beos*) 9278 library_names_spec='${libname}${shared_ext}' 9279 dynamic_linker="$host_os ld.so" 9280 shlibpath_var=LIBRARY_PATH 9281 ;; 9282 9283bsdi[45]*) 9284 version_type=linux 9285 need_version=no 9286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9287 soname_spec='${libname}${release}${shared_ext}$major' 9288 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9289 shlibpath_var=LD_LIBRARY_PATH 9290 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9291 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9292 # the default ld.so.conf also contains /usr/contrib/lib and 9293 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9294 # libtool to hard-code these into programs 9295 ;; 9296 9297cygwin* | mingw* | pw32*) 9298 version_type=windows 9299 shrext_cmds=".dll" 9300 need_version=no 9301 need_lib_prefix=no 9302 9303 case $GCC,$host_os in 9304 yes,cygwin* | yes,mingw* | yes,pw32*) 9305 library_names_spec='$libname.dll.a' 9306 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9307 postinstall_cmds='base_file=`basename \${file}`~ 9308 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 9309 dldir=$destdir/`dirname \$dlpath`~ 9310 test -d \$dldir || mkdir -p \$dldir~ 9311 $install_prog $dir/$dlname \$dldir/$dlname~ 9312 chmod a+x \$dldir/$dlname' 9313 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9314 dlpath=$dir/\$dldll~ 9315 $rm \$dlpath' 9316 shlibpath_overrides_runpath=yes 9317 9318 case $host_os in 9319 cygwin*) 9320 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9321 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9322 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9323 ;; 9324 mingw*) 9325 # MinGW DLLs use traditional 'lib' prefix 9326 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9327 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9328 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 9329 # It is most probably a Windows format PATH printed by 9330 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9331 # path with ; separators, and with drive letters. We can handle the 9332 # drive letters (cygwin fileutils understands them), so leave them, 9333 # especially as we might pass files found there to a mingw objdump, 9334 # which wouldn't understand a cygwinified path. Ahh. 9335 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9336 else 9337 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9338 fi 9339 ;; 9340 pw32*) 9341 # pw32 DLLs use 'pw' prefix rather than 'lib' 9342 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9343 ;; 9344 esac 9345 ;; 9346 9347 *) 9348 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9349 ;; 9350 esac 9351 dynamic_linker='Win32 ld.exe' 9352 # FIXME: first we should search . and the directory the executable is in 9353 shlibpath_var=PATH 9354 ;; 9355 9356darwin* | rhapsody*) 9357 dynamic_linker="$host_os dyld" 9358 version_type=darwin 9359 need_lib_prefix=no 9360 need_version=no 9361 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9362 soname_spec='${libname}${release}${major}$shared_ext' 9363 shlibpath_overrides_runpath=yes 9364 shlibpath_var=DYLD_LIBRARY_PATH 9365 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9366 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 9367 if test "$GCC" = yes; then 9368 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"` 9369 else 9370 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 9371 fi 9372 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9373 ;; 9374 9375dgux*) 9376 version_type=linux 9377 need_lib_prefix=no 9378 need_version=no 9379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9380 soname_spec='${libname}${release}${shared_ext}$major' 9381 shlibpath_var=LD_LIBRARY_PATH 9382 ;; 9383 9384freebsd1*) 9385 dynamic_linker=no 9386 ;; 9387 9388freebsd* | dragonfly*) 9389 # DragonFly does not have aout. When/if they implement a new 9390 # versioning mechanism, adjust this. 9391 if test -x /usr/bin/objformat; then 9392 objformat=`/usr/bin/objformat` 9393 else 9394 case $host_os in 9395 freebsd[123]*) objformat=aout ;; 9396 *) objformat=elf ;; 9397 esac 9398 fi 9399 version_type=freebsd-$objformat 9400 case $version_type in 9401 freebsd-elf*) 9402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9403 need_version=no 9404 need_lib_prefix=no 9405 ;; 9406 freebsd-*) 9407 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9408 need_version=yes 9409 ;; 9410 esac 9411 shlibpath_var=LD_LIBRARY_PATH 9412 case $host_os in 9413 freebsd2*) 9414 shlibpath_overrides_runpath=yes 9415 ;; 9416 freebsd3.[01]* | freebsdelf3.[01]*) 9417 shlibpath_overrides_runpath=yes 9418 hardcode_into_libs=yes 9419 ;; 9420 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9421 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9422 shlibpath_overrides_runpath=no 9423 hardcode_into_libs=yes 9424 ;; 9425 freebsd*) # from 4.6 on 9426 shlibpath_overrides_runpath=yes 9427 hardcode_into_libs=yes 9428 ;; 9429 esac 9430 ;; 9431 9432gnu*) 9433 version_type=linux 9434 need_lib_prefix=no 9435 need_version=no 9436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9437 soname_spec='${libname}${release}${shared_ext}$major' 9438 shlibpath_var=LD_LIBRARY_PATH 9439 hardcode_into_libs=yes 9440 ;; 9441 9442hpux9* | hpux10* | hpux11*) 9443 # Give a soname corresponding to the major version so that dld.sl refuses to 9444 # link against other versions. 9445 version_type=sunos 9446 need_lib_prefix=no 9447 need_version=no 9448 case $host_cpu in 9449 ia64*) 9450 shrext_cmds='.so' 9451 hardcode_into_libs=yes 9452 dynamic_linker="$host_os dld.so" 9453 shlibpath_var=LD_LIBRARY_PATH 9454 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9456 soname_spec='${libname}${release}${shared_ext}$major' 9457 if test "X$HPUX_IA64_MODE" = X32; then 9458 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9459 else 9460 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9461 fi 9462 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9463 ;; 9464 hppa*64*) 9465 shrext_cmds='.sl' 9466 hardcode_into_libs=yes 9467 dynamic_linker="$host_os dld.sl" 9468 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9469 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9471 soname_spec='${libname}${release}${shared_ext}$major' 9472 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9473 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9474 ;; 9475 *) 9476 shrext_cmds='.sl' 9477 dynamic_linker="$host_os dld.sl" 9478 shlibpath_var=SHLIB_PATH 9479 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9481 soname_spec='${libname}${release}${shared_ext}$major' 9482 ;; 9483 esac 9484 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9485 postinstall_cmds='chmod 555 $lib' 9486 ;; 9487 9488interix3*) 9489 version_type=linux 9490 need_lib_prefix=no 9491 need_version=no 9492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9493 soname_spec='${libname}${release}${shared_ext}$major' 9494 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9495 shlibpath_var=LD_LIBRARY_PATH 9496 shlibpath_overrides_runpath=no 9497 hardcode_into_libs=yes 9498 ;; 9499 9500irix5* | irix6* | nonstopux*) 9501 case $host_os in 9502 nonstopux*) version_type=nonstopux ;; 9503 *) 9504 if test "$lt_cv_prog_gnu_ld" = yes; then 9505 version_type=linux 9506 else 9507 version_type=irix 9508 fi ;; 9509 esac 9510 need_lib_prefix=no 9511 need_version=no 9512 soname_spec='${libname}${release}${shared_ext}$major' 9513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9514 case $host_os in 9515 irix5* | nonstopux*) 9516 libsuff= shlibsuff= 9517 ;; 9518 *) 9519 case $LD in # libtool.m4 will add one of these switches to LD 9520 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9521 libsuff= shlibsuff= libmagic=32-bit;; 9522 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9523 libsuff=32 shlibsuff=N32 libmagic=N32;; 9524 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9525 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9526 *) libsuff= shlibsuff= libmagic=never-match;; 9527 esac 9528 ;; 9529 esac 9530 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9531 shlibpath_overrides_runpath=no 9532 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9533 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9534 hardcode_into_libs=yes 9535 ;; 9536 9537# No shared lib support for Linux oldld, aout, or coff. 9538linux*oldld* | linux*aout* | linux*coff*) 9539 dynamic_linker=no 9540 ;; 9541 9542# This must be Linux ELF. 9543linux* | k*bsd*-gnu) 9544 version_type=linux 9545 need_lib_prefix=no 9546 need_version=no 9547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9548 soname_spec='${libname}${release}${shared_ext}$major' 9549 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9550 shlibpath_var=LD_LIBRARY_PATH 9551 shlibpath_overrides_runpath=no 9552 # This implies no fast_install, which is unacceptable. 9553 # Some rework will be needed to allow for fast_install 9554 # before this can be enabled. 9555 hardcode_into_libs=yes 9556 9557 # Append ld.so.conf contents to the search path 9558 if test -f /etc/ld.so.conf; then 9559 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' ' '` 9560 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9561 fi 9562 9563 # We used to test for /lib/ld.so.1 and disable shared libraries on 9564 # powerpc, because MkLinux only supported shared libraries with the 9565 # GNU dynamic linker. Since this was broken with cross compilers, 9566 # most powerpc-linux boxes support dynamic linking these days and 9567 # people can always --disable-shared, the test was removed, and we 9568 # assume the GNU/Linux dynamic linker is in use. 9569 dynamic_linker='GNU/Linux ld.so' 9570 ;; 9571 9572netbsdelf*-gnu) 9573 version_type=linux 9574 need_lib_prefix=no 9575 need_version=no 9576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9577 soname_spec='${libname}${release}${shared_ext}$major' 9578 shlibpath_var=LD_LIBRARY_PATH 9579 shlibpath_overrides_runpath=no 9580 hardcode_into_libs=yes 9581 dynamic_linker='NetBSD ld.elf_so' 9582 ;; 9583 9584netbsd*) 9585 version_type=sunos 9586 need_lib_prefix=no 9587 need_version=no 9588 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9590 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9591 dynamic_linker='NetBSD (a.out) ld.so' 9592 else 9593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9594 soname_spec='${libname}${release}${shared_ext}$major' 9595 dynamic_linker='NetBSD ld.elf_so' 9596 fi 9597 shlibpath_var=LD_LIBRARY_PATH 9598 shlibpath_overrides_runpath=yes 9599 hardcode_into_libs=yes 9600 ;; 9601 9602newsos6) 9603 version_type=linux 9604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9605 shlibpath_var=LD_LIBRARY_PATH 9606 shlibpath_overrides_runpath=yes 9607 ;; 9608 9609nto-qnx*) 9610 version_type=linux 9611 need_lib_prefix=no 9612 need_version=no 9613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9614 soname_spec='${libname}${release}${shared_ext}$major' 9615 shlibpath_var=LD_LIBRARY_PATH 9616 shlibpath_overrides_runpath=yes 9617 ;; 9618 9619openbsd*) 9620 version_type=sunos 9621 sys_lib_dlsearch_path_spec="/usr/lib" 9622 need_lib_prefix=no 9623 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9624 case $host_os in 9625 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9626 *) need_version=no ;; 9627 esac 9628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9629 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9630 shlibpath_var=LD_LIBRARY_PATH 9631 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9632 case $host_os in 9633 openbsd2.[89] | openbsd2.[89].*) 9634 shlibpath_overrides_runpath=no 9635 ;; 9636 *) 9637 shlibpath_overrides_runpath=yes 9638 ;; 9639 esac 9640 else 9641 shlibpath_overrides_runpath=yes 9642 fi 9643 ;; 9644 9645os2*) 9646 libname_spec='$name' 9647 shrext_cmds=".dll" 9648 need_lib_prefix=no 9649 library_names_spec='$libname${shared_ext} $libname.a' 9650 dynamic_linker='OS/2 ld.exe' 9651 shlibpath_var=LIBPATH 9652 ;; 9653 9654osf3* | osf4* | osf5*) 9655 version_type=osf 9656 need_lib_prefix=no 9657 need_version=no 9658 soname_spec='${libname}${release}${shared_ext}$major' 9659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9660 shlibpath_var=LD_LIBRARY_PATH 9661 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9662 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9663 ;; 9664 9665solaris*) 9666 version_type=linux 9667 need_lib_prefix=no 9668 need_version=no 9669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9670 soname_spec='${libname}${release}${shared_ext}$major' 9671 shlibpath_var=LD_LIBRARY_PATH 9672 shlibpath_overrides_runpath=yes 9673 hardcode_into_libs=yes 9674 # ldd complains unless libraries are executable 9675 postinstall_cmds='chmod +x $lib' 9676 ;; 9677 9678sunos4*) 9679 version_type=sunos 9680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9681 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9682 shlibpath_var=LD_LIBRARY_PATH 9683 shlibpath_overrides_runpath=yes 9684 if test "$with_gnu_ld" = yes; then 9685 need_lib_prefix=no 9686 fi 9687 need_version=yes 9688 ;; 9689 9690sysv4 | sysv4.3*) 9691 version_type=linux 9692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9693 soname_spec='${libname}${release}${shared_ext}$major' 9694 shlibpath_var=LD_LIBRARY_PATH 9695 case $host_vendor in 9696 sni) 9697 shlibpath_overrides_runpath=no 9698 need_lib_prefix=no 9699 export_dynamic_flag_spec='${wl}-Blargedynsym' 9700 runpath_var=LD_RUN_PATH 9701 ;; 9702 siemens) 9703 need_lib_prefix=no 9704 ;; 9705 motorola) 9706 need_lib_prefix=no 9707 need_version=no 9708 shlibpath_overrides_runpath=no 9709 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9710 ;; 9711 esac 9712 ;; 9713 9714sysv4*MP*) 9715 if test -d /usr/nec ;then 9716 version_type=linux 9717 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9718 soname_spec='$libname${shared_ext}.$major' 9719 shlibpath_var=LD_LIBRARY_PATH 9720 fi 9721 ;; 9722 9723sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9724 version_type=freebsd-elf 9725 need_lib_prefix=no 9726 need_version=no 9727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9728 soname_spec='${libname}${release}${shared_ext}$major' 9729 shlibpath_var=LD_LIBRARY_PATH 9730 hardcode_into_libs=yes 9731 if test "$with_gnu_ld" = yes; then 9732 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9733 shlibpath_overrides_runpath=no 9734 else 9735 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9736 shlibpath_overrides_runpath=yes 9737 case $host_os in 9738 sco3.2v5*) 9739 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9740 ;; 9741 esac 9742 fi 9743 sys_lib_dlsearch_path_spec='/usr/lib' 9744 ;; 9745 9746uts4*) 9747 version_type=linux 9748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9749 soname_spec='${libname}${release}${shared_ext}$major' 9750 shlibpath_var=LD_LIBRARY_PATH 9751 ;; 9752 9753*) 9754 dynamic_linker=no 9755 ;; 9756esac 9757{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9758echo "${ECHO_T}$dynamic_linker" >&6; } 9759test "$dynamic_linker" = no && can_build_shared=no 9760 9761variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9762if test "$GCC" = yes; then 9763 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9764fi 9765 9766{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9767echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 9768hardcode_action= 9769if test -n "$hardcode_libdir_flag_spec" || \ 9770 test -n "$runpath_var" || \ 9771 test "X$hardcode_automatic" = "Xyes" ; then 9772 9773 # We can hardcode non-existant directories. 9774 if test "$hardcode_direct" != no && 9775 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9776 # have to relink, otherwise we might link with an installed library 9777 # when we should be linking with a yet-to-be-installed one 9778 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9779 test "$hardcode_minus_L" != no; then 9780 # Linking always hardcodes the temporary library directory. 9781 hardcode_action=relink 9782 else 9783 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9784 hardcode_action=immediate 9785 fi 9786else 9787 # We cannot hardcode anything, or else we can only hardcode existing 9788 # directories. 9789 hardcode_action=unsupported 9790fi 9791{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 9792echo "${ECHO_T}$hardcode_action" >&6; } 9793 9794if test "$hardcode_action" = relink; then 9795 # Fast installation is not supported 9796 enable_fast_install=no 9797elif test "$shlibpath_overrides_runpath" = yes || 9798 test "$enable_shared" = no; then 9799 # Fast installation is not necessary 9800 enable_fast_install=needless 9801fi 9802 9803striplib= 9804old_striplib= 9805{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9806echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } 9807if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9808 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9809 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9810 { echo "$as_me:$LINENO: result: yes" >&5 9811echo "${ECHO_T}yes" >&6; } 9812else 9813# FIXME - insert some real tests, host_os isn't really good enough 9814 case $host_os in 9815 darwin*) 9816 if test -n "$STRIP" ; then 9817 striplib="$STRIP -x" 9818 { echo "$as_me:$LINENO: result: yes" >&5 9819echo "${ECHO_T}yes" >&6; } 9820 else 9821 { echo "$as_me:$LINENO: result: no" >&5 9822echo "${ECHO_T}no" >&6; } 9823fi 9824 ;; 9825 *) 9826 { echo "$as_me:$LINENO: result: no" >&5 9827echo "${ECHO_T}no" >&6; } 9828 ;; 9829 esac 9830fi 9831 9832if test "x$enable_dlopen" != xyes; then 9833 enable_dlopen=unknown 9834 enable_dlopen_self=unknown 9835 enable_dlopen_self_static=unknown 9836else 9837 lt_cv_dlopen=no 9838 lt_cv_dlopen_libs= 9839 9840 case $host_os in 9841 beos*) 9842 lt_cv_dlopen="load_add_on" 9843 lt_cv_dlopen_libs= 9844 lt_cv_dlopen_self=yes 9845 ;; 9846 9847 mingw* | pw32*) 9848 lt_cv_dlopen="LoadLibrary" 9849 lt_cv_dlopen_libs= 9850 ;; 9851 9852 cygwin*) 9853 lt_cv_dlopen="dlopen" 9854 lt_cv_dlopen_libs= 9855 ;; 9856 9857 darwin*) 9858 # if libdl is installed we need to link against it 9859 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9860echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9861if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9862 echo $ECHO_N "(cached) $ECHO_C" >&6 9863else 9864 ac_check_lib_save_LIBS=$LIBS 9865LIBS="-ldl $LIBS" 9866cat >conftest.$ac_ext <<_ACEOF 9867/* confdefs.h. */ 9868_ACEOF 9869cat confdefs.h >>conftest.$ac_ext 9870cat >>conftest.$ac_ext <<_ACEOF 9871/* end confdefs.h. */ 9872 9873/* Override any GCC internal prototype to avoid an error. 9874 Use char because int might match the return type of a GCC 9875 builtin and then its argument prototype would still apply. */ 9876#ifdef __cplusplus 9877extern "C" 9878#endif 9879char dlopen (); 9880int 9881main () 9882{ 9883return dlopen (); 9884 ; 9885 return 0; 9886} 9887_ACEOF 9888rm -f conftest.$ac_objext conftest$ac_exeext 9889if { (ac_try="$ac_link" 9890case "(($ac_try" in 9891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9892 *) ac_try_echo=$ac_try;; 9893esac 9894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9895 (eval "$ac_link") 2>conftest.er1 9896 ac_status=$? 9897 grep -v '^ *+' conftest.er1 >conftest.err 9898 rm -f conftest.er1 9899 cat conftest.err >&5 9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9901 (exit $ac_status); } && { 9902 test -z "$ac_c_werror_flag" || 9903 test ! -s conftest.err 9904 } && test -s conftest$ac_exeext && 9905 $as_test_x conftest$ac_exeext; then 9906 ac_cv_lib_dl_dlopen=yes 9907else 9908 echo "$as_me: failed program was:" >&5 9909sed 's/^/| /' conftest.$ac_ext >&5 9910 9911 ac_cv_lib_dl_dlopen=no 9912fi 9913 9914rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9915 conftest$ac_exeext conftest.$ac_ext 9916LIBS=$ac_check_lib_save_LIBS 9917fi 9918{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9919echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9920if test $ac_cv_lib_dl_dlopen = yes; then 9921 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9922else 9923 9924 lt_cv_dlopen="dyld" 9925 lt_cv_dlopen_libs= 9926 lt_cv_dlopen_self=yes 9927 9928fi 9929 9930 ;; 9931 9932 *) 9933 { echo "$as_me:$LINENO: checking for shl_load" >&5 9934echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 9935if test "${ac_cv_func_shl_load+set}" = set; then 9936 echo $ECHO_N "(cached) $ECHO_C" >&6 9937else 9938 cat >conftest.$ac_ext <<_ACEOF 9939/* confdefs.h. */ 9940_ACEOF 9941cat confdefs.h >>conftest.$ac_ext 9942cat >>conftest.$ac_ext <<_ACEOF 9943/* end confdefs.h. */ 9944/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9945 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9946#define shl_load innocuous_shl_load 9947 9948/* System header to define __stub macros and hopefully few prototypes, 9949 which can conflict with char shl_load (); below. 9950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9951 <limits.h> exists even on freestanding compilers. */ 9952 9953#ifdef __STDC__ 9954# include <limits.h> 9955#else 9956# include <assert.h> 9957#endif 9958 9959#undef shl_load 9960 9961/* Override any GCC internal prototype to avoid an error. 9962 Use char because int might match the return type of a GCC 9963 builtin and then its argument prototype would still apply. */ 9964#ifdef __cplusplus 9965extern "C" 9966#endif 9967char shl_load (); 9968/* The GNU C library defines this for functions which it implements 9969 to always fail with ENOSYS. Some functions are actually named 9970 something starting with __ and the normal name is an alias. */ 9971#if defined __stub_shl_load || defined __stub___shl_load 9972choke me 9973#endif 9974 9975int 9976main () 9977{ 9978return shl_load (); 9979 ; 9980 return 0; 9981} 9982_ACEOF 9983rm -f conftest.$ac_objext conftest$ac_exeext 9984if { (ac_try="$ac_link" 9985case "(($ac_try" in 9986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9987 *) ac_try_echo=$ac_try;; 9988esac 9989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9990 (eval "$ac_link") 2>conftest.er1 9991 ac_status=$? 9992 grep -v '^ *+' conftest.er1 >conftest.err 9993 rm -f conftest.er1 9994 cat conftest.err >&5 9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9996 (exit $ac_status); } && { 9997 test -z "$ac_c_werror_flag" || 9998 test ! -s conftest.err 9999 } && test -s conftest$ac_exeext && 10000 $as_test_x conftest$ac_exeext; then 10001 ac_cv_func_shl_load=yes 10002else 10003 echo "$as_me: failed program was:" >&5 10004sed 's/^/| /' conftest.$ac_ext >&5 10005 10006 ac_cv_func_shl_load=no 10007fi 10008 10009rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10010 conftest$ac_exeext conftest.$ac_ext 10011fi 10012{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 10013echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 10014if test $ac_cv_func_shl_load = yes; then 10015 lt_cv_dlopen="shl_load" 10016else 10017 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 10018echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 10019if test "${ac_cv_lib_dld_shl_load+set}" = set; then 10020 echo $ECHO_N "(cached) $ECHO_C" >&6 10021else 10022 ac_check_lib_save_LIBS=$LIBS 10023LIBS="-ldld $LIBS" 10024cat >conftest.$ac_ext <<_ACEOF 10025/* confdefs.h. */ 10026_ACEOF 10027cat confdefs.h >>conftest.$ac_ext 10028cat >>conftest.$ac_ext <<_ACEOF 10029/* end confdefs.h. */ 10030 10031/* Override any GCC internal prototype to avoid an error. 10032 Use char because int might match the return type of a GCC 10033 builtin and then its argument prototype would still apply. */ 10034#ifdef __cplusplus 10035extern "C" 10036#endif 10037char shl_load (); 10038int 10039main () 10040{ 10041return shl_load (); 10042 ; 10043 return 0; 10044} 10045_ACEOF 10046rm -f conftest.$ac_objext conftest$ac_exeext 10047if { (ac_try="$ac_link" 10048case "(($ac_try" in 10049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10050 *) ac_try_echo=$ac_try;; 10051esac 10052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10053 (eval "$ac_link") 2>conftest.er1 10054 ac_status=$? 10055 grep -v '^ *+' conftest.er1 >conftest.err 10056 rm -f conftest.er1 10057 cat conftest.err >&5 10058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10059 (exit $ac_status); } && { 10060 test -z "$ac_c_werror_flag" || 10061 test ! -s conftest.err 10062 } && test -s conftest$ac_exeext && 10063 $as_test_x conftest$ac_exeext; then 10064 ac_cv_lib_dld_shl_load=yes 10065else 10066 echo "$as_me: failed program was:" >&5 10067sed 's/^/| /' conftest.$ac_ext >&5 10068 10069 ac_cv_lib_dld_shl_load=no 10070fi 10071 10072rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10073 conftest$ac_exeext conftest.$ac_ext 10074LIBS=$ac_check_lib_save_LIBS 10075fi 10076{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 10077echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 10078if test $ac_cv_lib_dld_shl_load = yes; then 10079 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 10080else 10081 { echo "$as_me:$LINENO: checking for dlopen" >&5 10082echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 10083if test "${ac_cv_func_dlopen+set}" = set; then 10084 echo $ECHO_N "(cached) $ECHO_C" >&6 10085else 10086 cat >conftest.$ac_ext <<_ACEOF 10087/* confdefs.h. */ 10088_ACEOF 10089cat confdefs.h >>conftest.$ac_ext 10090cat >>conftest.$ac_ext <<_ACEOF 10091/* end confdefs.h. */ 10092/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 10093 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10094#define dlopen innocuous_dlopen 10095 10096/* System header to define __stub macros and hopefully few prototypes, 10097 which can conflict with char dlopen (); below. 10098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10099 <limits.h> exists even on freestanding compilers. */ 10100 10101#ifdef __STDC__ 10102# include <limits.h> 10103#else 10104# include <assert.h> 10105#endif 10106 10107#undef dlopen 10108 10109/* Override any GCC internal prototype to avoid an error. 10110 Use char because int might match the return type of a GCC 10111 builtin and then its argument prototype would still apply. */ 10112#ifdef __cplusplus 10113extern "C" 10114#endif 10115char dlopen (); 10116/* The GNU C library defines this for functions which it implements 10117 to always fail with ENOSYS. Some functions are actually named 10118 something starting with __ and the normal name is an alias. */ 10119#if defined __stub_dlopen || defined __stub___dlopen 10120choke me 10121#endif 10122 10123int 10124main () 10125{ 10126return dlopen (); 10127 ; 10128 return 0; 10129} 10130_ACEOF 10131rm -f conftest.$ac_objext conftest$ac_exeext 10132if { (ac_try="$ac_link" 10133case "(($ac_try" in 10134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10135 *) ac_try_echo=$ac_try;; 10136esac 10137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10138 (eval "$ac_link") 2>conftest.er1 10139 ac_status=$? 10140 grep -v '^ *+' conftest.er1 >conftest.err 10141 rm -f conftest.er1 10142 cat conftest.err >&5 10143 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10144 (exit $ac_status); } && { 10145 test -z "$ac_c_werror_flag" || 10146 test ! -s conftest.err 10147 } && test -s conftest$ac_exeext && 10148 $as_test_x conftest$ac_exeext; then 10149 ac_cv_func_dlopen=yes 10150else 10151 echo "$as_me: failed program was:" >&5 10152sed 's/^/| /' conftest.$ac_ext >&5 10153 10154 ac_cv_func_dlopen=no 10155fi 10156 10157rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10158 conftest$ac_exeext conftest.$ac_ext 10159fi 10160{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 10161echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 10162if test $ac_cv_func_dlopen = yes; then 10163 lt_cv_dlopen="dlopen" 10164else 10165 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10166echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 10167if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10168 echo $ECHO_N "(cached) $ECHO_C" >&6 10169else 10170 ac_check_lib_save_LIBS=$LIBS 10171LIBS="-ldl $LIBS" 10172cat >conftest.$ac_ext <<_ACEOF 10173/* confdefs.h. */ 10174_ACEOF 10175cat confdefs.h >>conftest.$ac_ext 10176cat >>conftest.$ac_ext <<_ACEOF 10177/* end confdefs.h. */ 10178 10179/* Override any GCC internal prototype to avoid an error. 10180 Use char because int might match the return type of a GCC 10181 builtin and then its argument prototype would still apply. */ 10182#ifdef __cplusplus 10183extern "C" 10184#endif 10185char dlopen (); 10186int 10187main () 10188{ 10189return dlopen (); 10190 ; 10191 return 0; 10192} 10193_ACEOF 10194rm -f conftest.$ac_objext conftest$ac_exeext 10195if { (ac_try="$ac_link" 10196case "(($ac_try" in 10197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10198 *) ac_try_echo=$ac_try;; 10199esac 10200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10201 (eval "$ac_link") 2>conftest.er1 10202 ac_status=$? 10203 grep -v '^ *+' conftest.er1 >conftest.err 10204 rm -f conftest.er1 10205 cat conftest.err >&5 10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10207 (exit $ac_status); } && { 10208 test -z "$ac_c_werror_flag" || 10209 test ! -s conftest.err 10210 } && test -s conftest$ac_exeext && 10211 $as_test_x conftest$ac_exeext; then 10212 ac_cv_lib_dl_dlopen=yes 10213else 10214 echo "$as_me: failed program was:" >&5 10215sed 's/^/| /' conftest.$ac_ext >&5 10216 10217 ac_cv_lib_dl_dlopen=no 10218fi 10219 10220rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10221 conftest$ac_exeext conftest.$ac_ext 10222LIBS=$ac_check_lib_save_LIBS 10223fi 10224{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10225echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 10226if test $ac_cv_lib_dl_dlopen = yes; then 10227 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10228else 10229 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10230echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 10231if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10232 echo $ECHO_N "(cached) $ECHO_C" >&6 10233else 10234 ac_check_lib_save_LIBS=$LIBS 10235LIBS="-lsvld $LIBS" 10236cat >conftest.$ac_ext <<_ACEOF 10237/* confdefs.h. */ 10238_ACEOF 10239cat confdefs.h >>conftest.$ac_ext 10240cat >>conftest.$ac_ext <<_ACEOF 10241/* end confdefs.h. */ 10242 10243/* Override any GCC internal prototype to avoid an error. 10244 Use char because int might match the return type of a GCC 10245 builtin and then its argument prototype would still apply. */ 10246#ifdef __cplusplus 10247extern "C" 10248#endif 10249char dlopen (); 10250int 10251main () 10252{ 10253return dlopen (); 10254 ; 10255 return 0; 10256} 10257_ACEOF 10258rm -f conftest.$ac_objext conftest$ac_exeext 10259if { (ac_try="$ac_link" 10260case "(($ac_try" in 10261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10262 *) ac_try_echo=$ac_try;; 10263esac 10264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10265 (eval "$ac_link") 2>conftest.er1 10266 ac_status=$? 10267 grep -v '^ *+' conftest.er1 >conftest.err 10268 rm -f conftest.er1 10269 cat conftest.err >&5 10270 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10271 (exit $ac_status); } && { 10272 test -z "$ac_c_werror_flag" || 10273 test ! -s conftest.err 10274 } && test -s conftest$ac_exeext && 10275 $as_test_x conftest$ac_exeext; then 10276 ac_cv_lib_svld_dlopen=yes 10277else 10278 echo "$as_me: failed program was:" >&5 10279sed 's/^/| /' conftest.$ac_ext >&5 10280 10281 ac_cv_lib_svld_dlopen=no 10282fi 10283 10284rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10285 conftest$ac_exeext conftest.$ac_ext 10286LIBS=$ac_check_lib_save_LIBS 10287fi 10288{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10289echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 10290if test $ac_cv_lib_svld_dlopen = yes; then 10291 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10292else 10293 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10294echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 10295if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10296 echo $ECHO_N "(cached) $ECHO_C" >&6 10297else 10298 ac_check_lib_save_LIBS=$LIBS 10299LIBS="-ldld $LIBS" 10300cat >conftest.$ac_ext <<_ACEOF 10301/* confdefs.h. */ 10302_ACEOF 10303cat confdefs.h >>conftest.$ac_ext 10304cat >>conftest.$ac_ext <<_ACEOF 10305/* end confdefs.h. */ 10306 10307/* Override any GCC internal prototype to avoid an error. 10308 Use char because int might match the return type of a GCC 10309 builtin and then its argument prototype would still apply. */ 10310#ifdef __cplusplus 10311extern "C" 10312#endif 10313char dld_link (); 10314int 10315main () 10316{ 10317return dld_link (); 10318 ; 10319 return 0; 10320} 10321_ACEOF 10322rm -f conftest.$ac_objext conftest$ac_exeext 10323if { (ac_try="$ac_link" 10324case "(($ac_try" in 10325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10326 *) ac_try_echo=$ac_try;; 10327esac 10328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10329 (eval "$ac_link") 2>conftest.er1 10330 ac_status=$? 10331 grep -v '^ *+' conftest.er1 >conftest.err 10332 rm -f conftest.er1 10333 cat conftest.err >&5 10334 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10335 (exit $ac_status); } && { 10336 test -z "$ac_c_werror_flag" || 10337 test ! -s conftest.err 10338 } && test -s conftest$ac_exeext && 10339 $as_test_x conftest$ac_exeext; then 10340 ac_cv_lib_dld_dld_link=yes 10341else 10342 echo "$as_me: failed program was:" >&5 10343sed 's/^/| /' conftest.$ac_ext >&5 10344 10345 ac_cv_lib_dld_dld_link=no 10346fi 10347 10348rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10349 conftest$ac_exeext conftest.$ac_ext 10350LIBS=$ac_check_lib_save_LIBS 10351fi 10352{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10353echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 10354if test $ac_cv_lib_dld_dld_link = yes; then 10355 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 10356fi 10357 10358 10359fi 10360 10361 10362fi 10363 10364 10365fi 10366 10367 10368fi 10369 10370 10371fi 10372 10373 ;; 10374 esac 10375 10376 if test "x$lt_cv_dlopen" != xno; then 10377 enable_dlopen=yes 10378 else 10379 enable_dlopen=no 10380 fi 10381 10382 case $lt_cv_dlopen in 10383 dlopen) 10384 save_CPPFLAGS="$CPPFLAGS" 10385 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10386 10387 save_LDFLAGS="$LDFLAGS" 10388 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10389 10390 save_LIBS="$LIBS" 10391 LIBS="$lt_cv_dlopen_libs $LIBS" 10392 10393 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10394echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } 10395if test "${lt_cv_dlopen_self+set}" = set; then 10396 echo $ECHO_N "(cached) $ECHO_C" >&6 10397else 10398 if test "$cross_compiling" = yes; then : 10399 lt_cv_dlopen_self=cross 10400else 10401 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10402 lt_status=$lt_dlunknown 10403 cat > conftest.$ac_ext <<EOF 10404#line 10404 "configure" 10405#include "confdefs.h" 10406 10407#if HAVE_DLFCN_H 10408#include <dlfcn.h> 10409#endif 10410 10411#include <stdio.h> 10412 10413#ifdef RTLD_GLOBAL 10414# define LT_DLGLOBAL RTLD_GLOBAL 10415#else 10416# ifdef DL_GLOBAL 10417# define LT_DLGLOBAL DL_GLOBAL 10418# else 10419# define LT_DLGLOBAL 0 10420# endif 10421#endif 10422 10423/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10424 find out it does not work in some platform. */ 10425#ifndef LT_DLLAZY_OR_NOW 10426# ifdef RTLD_LAZY 10427# define LT_DLLAZY_OR_NOW RTLD_LAZY 10428# else 10429# ifdef DL_LAZY 10430# define LT_DLLAZY_OR_NOW DL_LAZY 10431# else 10432# ifdef RTLD_NOW 10433# define LT_DLLAZY_OR_NOW RTLD_NOW 10434# else 10435# ifdef DL_NOW 10436# define LT_DLLAZY_OR_NOW DL_NOW 10437# else 10438# define LT_DLLAZY_OR_NOW 0 10439# endif 10440# endif 10441# endif 10442# endif 10443#endif 10444 10445#ifdef __cplusplus 10446extern "C" void exit (int); 10447#endif 10448 10449void fnord() { int i=42;} 10450int main () 10451{ 10452 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10453 int status = $lt_dlunknown; 10454 10455 if (self) 10456 { 10457 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10458 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10459 /* dlclose (self); */ 10460 } 10461 else 10462 puts (dlerror ()); 10463 10464 exit (status); 10465} 10466EOF 10467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10468 (eval $ac_link) 2>&5 10469 ac_status=$? 10470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10471 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10472 (./conftest; exit; ) >&5 2>/dev/null 10473 lt_status=$? 10474 case x$lt_status in 10475 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10476 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10477 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10478 esac 10479 else : 10480 # compilation failed 10481 lt_cv_dlopen_self=no 10482 fi 10483fi 10484rm -fr conftest* 10485 10486 10487fi 10488{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10489echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } 10490 10491 if test "x$lt_cv_dlopen_self" = xyes; then 10492 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10493 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10494echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } 10495if test "${lt_cv_dlopen_self_static+set}" = set; then 10496 echo $ECHO_N "(cached) $ECHO_C" >&6 10497else 10498 if test "$cross_compiling" = yes; then : 10499 lt_cv_dlopen_self_static=cross 10500else 10501 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10502 lt_status=$lt_dlunknown 10503 cat > conftest.$ac_ext <<EOF 10504#line 10504 "configure" 10505#include "confdefs.h" 10506 10507#if HAVE_DLFCN_H 10508#include <dlfcn.h> 10509#endif 10510 10511#include <stdio.h> 10512 10513#ifdef RTLD_GLOBAL 10514# define LT_DLGLOBAL RTLD_GLOBAL 10515#else 10516# ifdef DL_GLOBAL 10517# define LT_DLGLOBAL DL_GLOBAL 10518# else 10519# define LT_DLGLOBAL 0 10520# endif 10521#endif 10522 10523/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10524 find out it does not work in some platform. */ 10525#ifndef LT_DLLAZY_OR_NOW 10526# ifdef RTLD_LAZY 10527# define LT_DLLAZY_OR_NOW RTLD_LAZY 10528# else 10529# ifdef DL_LAZY 10530# define LT_DLLAZY_OR_NOW DL_LAZY 10531# else 10532# ifdef RTLD_NOW 10533# define LT_DLLAZY_OR_NOW RTLD_NOW 10534# else 10535# ifdef DL_NOW 10536# define LT_DLLAZY_OR_NOW DL_NOW 10537# else 10538# define LT_DLLAZY_OR_NOW 0 10539# endif 10540# endif 10541# endif 10542# endif 10543#endif 10544 10545#ifdef __cplusplus 10546extern "C" void exit (int); 10547#endif 10548 10549void fnord() { int i=42;} 10550int main () 10551{ 10552 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10553 int status = $lt_dlunknown; 10554 10555 if (self) 10556 { 10557 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10558 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10559 /* dlclose (self); */ 10560 } 10561 else 10562 puts (dlerror ()); 10563 10564 exit (status); 10565} 10566EOF 10567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10568 (eval $ac_link) 2>&5 10569 ac_status=$? 10570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10571 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10572 (./conftest; exit; ) >&5 2>/dev/null 10573 lt_status=$? 10574 case x$lt_status in 10575 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10576 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10577 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10578 esac 10579 else : 10580 # compilation failed 10581 lt_cv_dlopen_self_static=no 10582 fi 10583fi 10584rm -fr conftest* 10585 10586 10587fi 10588{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10589echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } 10590 fi 10591 10592 CPPFLAGS="$save_CPPFLAGS" 10593 LDFLAGS="$save_LDFLAGS" 10594 LIBS="$save_LIBS" 10595 ;; 10596 esac 10597 10598 case $lt_cv_dlopen_self in 10599 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10600 *) enable_dlopen_self=unknown ;; 10601 esac 10602 10603 case $lt_cv_dlopen_self_static in 10604 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10605 *) enable_dlopen_self_static=unknown ;; 10606 esac 10607fi 10608 10609 10610# Report which library types will actually be built 10611{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10612echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 10613{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 10614echo "${ECHO_T}$can_build_shared" >&6; } 10615 10616{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10617echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 10618test "$can_build_shared" = "no" && enable_shared=no 10619 10620# On AIX, shared libraries and static libraries use the same namespace, and 10621# are all built from PIC. 10622case $host_os in 10623aix3*) 10624 test "$enable_shared" = yes && enable_static=no 10625 if test -n "$RANLIB"; then 10626 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10627 postinstall_cmds='$RANLIB $lib' 10628 fi 10629 ;; 10630 10631aix4* | aix5*) 10632 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10633 test "$enable_shared" = yes && enable_static=no 10634 fi 10635 ;; 10636esac 10637{ echo "$as_me:$LINENO: result: $enable_shared" >&5 10638echo "${ECHO_T}$enable_shared" >&6; } 10639 10640{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10641echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 10642# Make sure either enable_shared or enable_static is yes. 10643test "$enable_shared" = yes || enable_static=yes 10644{ echo "$as_me:$LINENO: result: $enable_static" >&5 10645echo "${ECHO_T}$enable_static" >&6; } 10646 10647# The else clause should only fire when bootstrapping the 10648# libtool distribution, otherwise you forgot to ship ltmain.sh 10649# with your package, and you will get complaints that there are 10650# no rules to generate ltmain.sh. 10651if test -f "$ltmain"; then 10652 # See if we are running on zsh, and set the options which allow our commands through 10653 # without removal of \ escapes. 10654 if test -n "${ZSH_VERSION+set}" ; then 10655 setopt NO_GLOB_SUBST 10656 fi 10657 # Now quote all the things that may contain metacharacters while being 10658 # careful not to overquote the AC_SUBSTed values. We take copies of the 10659 # variables and quote the copies for generation of the libtool script. 10660 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 10661 SED SHELL STRIP \ 10662 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10663 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10664 deplibs_check_method reload_flag reload_cmds need_locks \ 10665 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10666 lt_cv_sys_global_symbol_to_c_name_address \ 10667 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10668 old_postinstall_cmds old_postuninstall_cmds \ 10669 compiler \ 10670 CC \ 10671 LD \ 10672 lt_prog_compiler_wl \ 10673 lt_prog_compiler_pic \ 10674 lt_prog_compiler_static \ 10675 lt_prog_compiler_no_builtin_flag \ 10676 export_dynamic_flag_spec \ 10677 thread_safe_flag_spec \ 10678 whole_archive_flag_spec \ 10679 enable_shared_with_static_runtimes \ 10680 old_archive_cmds \ 10681 old_archive_from_new_cmds \ 10682 predep_objects \ 10683 postdep_objects \ 10684 predeps \ 10685 postdeps \ 10686 compiler_lib_search_path \ 10687 archive_cmds \ 10688 archive_expsym_cmds \ 10689 postinstall_cmds \ 10690 postuninstall_cmds \ 10691 old_archive_from_expsyms_cmds \ 10692 allow_undefined_flag \ 10693 no_undefined_flag \ 10694 export_symbols_cmds \ 10695 hardcode_libdir_flag_spec \ 10696 hardcode_libdir_flag_spec_ld \ 10697 hardcode_libdir_separator \ 10698 hardcode_automatic \ 10699 module_cmds \ 10700 module_expsym_cmds \ 10701 lt_cv_prog_compiler_c_o \ 10702 exclude_expsyms \ 10703 include_expsyms; do 10704 10705 case $var in 10706 old_archive_cmds | \ 10707 old_archive_from_new_cmds | \ 10708 archive_cmds | \ 10709 archive_expsym_cmds | \ 10710 module_cmds | \ 10711 module_expsym_cmds | \ 10712 old_archive_from_expsyms_cmds | \ 10713 export_symbols_cmds | \ 10714 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10715 postinstall_cmds | postuninstall_cmds | \ 10716 old_postinstall_cmds | old_postuninstall_cmds | \ 10717 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10718 # Double-quote double-evaled strings. 10719 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10720 ;; 10721 *) 10722 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10723 ;; 10724 esac 10725 done 10726 10727 case $lt_echo in 10728 *'\$0 --fallback-echo"') 10729 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10730 ;; 10731 esac 10732 10733cfgfile="${ofile}T" 10734 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10735 $rm -f "$cfgfile" 10736 { echo "$as_me:$LINENO: creating $ofile" >&5 10737echo "$as_me: creating $ofile" >&6;} 10738 10739 cat <<__EOF__ >> "$cfgfile" 10740#! $SHELL 10741 10742# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10743# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10744# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10745# 10746# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 10747# Free Software Foundation, Inc. 10748# 10749# This file is part of GNU Libtool: 10750# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10751# 10752# This program is free software; you can redistribute it and/or modify 10753# it under the terms of the GNU General Public License as published by 10754# the Free Software Foundation; either version 2 of the License, or 10755# (at your option) any later version. 10756# 10757# This program is distributed in the hope that it will be useful, but 10758# WITHOUT ANY WARRANTY; without even the implied warranty of 10759# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10760# General Public License for more details. 10761# 10762# You should have received a copy of the GNU General Public License 10763# along with this program; if not, write to the Free Software 10764# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10765# 10766# As a special exception to the GNU General Public License, if you 10767# distribute this file as part of a program that contains a 10768# configuration script generated by Autoconf, you may include it under 10769# the same distribution terms that you use for the rest of that program. 10770 10771# A sed program that does not truncate output. 10772SED=$lt_SED 10773 10774# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10775Xsed="$SED -e 1s/^X//" 10776 10777# The HP-UX ksh and POSIX shell print the target directory to stdout 10778# if CDPATH is set. 10779(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10780 10781# The names of the tagged configurations supported by this script. 10782available_tags= 10783 10784# ### BEGIN LIBTOOL CONFIG 10785 10786# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10787 10788# Shell to use when invoking shell scripts. 10789SHELL=$lt_SHELL 10790 10791# Whether or not to build shared libraries. 10792build_libtool_libs=$enable_shared 10793 10794# Whether or not to build static libraries. 10795build_old_libs=$enable_static 10796 10797# Whether or not to add -lc for building shared libraries. 10798build_libtool_need_lc=$archive_cmds_need_lc 10799 10800# Whether or not to disallow shared libs when runtime libs are static 10801allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10802 10803# Whether or not to optimize for fast installation. 10804fast_install=$enable_fast_install 10805 10806# The host system. 10807host_alias=$host_alias 10808host=$host 10809host_os=$host_os 10810 10811# The build system. 10812build_alias=$build_alias 10813build=$build 10814build_os=$build_os 10815 10816# An echo program that does not interpret backslashes. 10817echo=$lt_echo 10818 10819# The archiver. 10820AR=$lt_AR 10821AR_FLAGS=$lt_AR_FLAGS 10822 10823# A C compiler. 10824LTCC=$lt_LTCC 10825 10826# LTCC compiler flags. 10827LTCFLAGS=$lt_LTCFLAGS 10828 10829# A language-specific compiler. 10830CC=$lt_compiler 10831 10832# Is the compiler the GNU C compiler? 10833with_gcc=$GCC 10834 10835# An ERE matcher. 10836EGREP=$lt_EGREP 10837 10838# The linker used to build libraries. 10839LD=$lt_LD 10840 10841# Whether we need hard or soft links. 10842LN_S=$lt_LN_S 10843 10844# A BSD-compatible nm program. 10845NM=$lt_NM 10846 10847# A symbol stripping program 10848STRIP=$lt_STRIP 10849 10850# Used to examine libraries when file_magic_cmd begins "file" 10851MAGIC_CMD=$MAGIC_CMD 10852 10853# Used on cygwin: DLL creation program. 10854DLLTOOL="$DLLTOOL" 10855 10856# Used on cygwin: object dumper. 10857OBJDUMP="$OBJDUMP" 10858 10859# Used on cygwin: assembler. 10860AS="$AS" 10861 10862# The name of the directory that contains temporary libtool files. 10863objdir=$objdir 10864 10865# How to create reloadable object files. 10866reload_flag=$lt_reload_flag 10867reload_cmds=$lt_reload_cmds 10868 10869# How to pass a linker flag through the compiler. 10870wl=$lt_lt_prog_compiler_wl 10871 10872# Object file suffix (normally "o"). 10873objext="$ac_objext" 10874 10875# Old archive suffix (normally "a"). 10876libext="$libext" 10877 10878# Shared library suffix (normally ".so"). 10879shrext_cmds='$shrext_cmds' 10880 10881# Executable file suffix (normally ""). 10882exeext="$exeext" 10883 10884# Additional compiler flags for building library objects. 10885pic_flag=$lt_lt_prog_compiler_pic 10886pic_mode=$pic_mode 10887 10888# What is the maximum length of a command? 10889max_cmd_len=$lt_cv_sys_max_cmd_len 10890 10891# Does compiler simultaneously support -c and -o options? 10892compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10893 10894# Must we lock files when doing compilation? 10895need_locks=$lt_need_locks 10896 10897# Do we need the lib prefix for modules? 10898need_lib_prefix=$need_lib_prefix 10899 10900# Do we need a version for libraries? 10901need_version=$need_version 10902 10903# Whether dlopen is supported. 10904dlopen_support=$enable_dlopen 10905 10906# Whether dlopen of programs is supported. 10907dlopen_self=$enable_dlopen_self 10908 10909# Whether dlopen of statically linked programs is supported. 10910dlopen_self_static=$enable_dlopen_self_static 10911 10912# Compiler flag to prevent dynamic linking. 10913link_static_flag=$lt_lt_prog_compiler_static 10914 10915# Compiler flag to turn off builtin functions. 10916no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10917 10918# Compiler flag to allow reflexive dlopens. 10919export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10920 10921# Compiler flag to generate shared objects directly from archives. 10922whole_archive_flag_spec=$lt_whole_archive_flag_spec 10923 10924# Compiler flag to generate thread-safe objects. 10925thread_safe_flag_spec=$lt_thread_safe_flag_spec 10926 10927# Library versioning type. 10928version_type=$version_type 10929 10930# Format of library name prefix. 10931libname_spec=$lt_libname_spec 10932 10933# List of archive names. First name is the real one, the rest are links. 10934# The last name is the one that the linker finds with -lNAME. 10935library_names_spec=$lt_library_names_spec 10936 10937# The coded name of the library, if different from the real name. 10938soname_spec=$lt_soname_spec 10939 10940# Commands used to build and install an old-style archive. 10941RANLIB=$lt_RANLIB 10942old_archive_cmds=$lt_old_archive_cmds 10943old_postinstall_cmds=$lt_old_postinstall_cmds 10944old_postuninstall_cmds=$lt_old_postuninstall_cmds 10945 10946# Create an old-style archive from a shared archive. 10947old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10948 10949# Create a temporary old-style archive to link instead of a shared archive. 10950old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10951 10952# Commands used to build and install a shared archive. 10953archive_cmds=$lt_archive_cmds 10954archive_expsym_cmds=$lt_archive_expsym_cmds 10955postinstall_cmds=$lt_postinstall_cmds 10956postuninstall_cmds=$lt_postuninstall_cmds 10957 10958# Commands used to build a loadable module (assumed same as above if empty) 10959module_cmds=$lt_module_cmds 10960module_expsym_cmds=$lt_module_expsym_cmds 10961 10962# Commands to strip libraries. 10963old_striplib=$lt_old_striplib 10964striplib=$lt_striplib 10965 10966# Dependencies to place before the objects being linked to create a 10967# shared library. 10968predep_objects=$lt_predep_objects 10969 10970# Dependencies to place after the objects being linked to create a 10971# shared library. 10972postdep_objects=$lt_postdep_objects 10973 10974# Dependencies to place before the objects being linked to create a 10975# shared library. 10976predeps=$lt_predeps 10977 10978# Dependencies to place after the objects being linked to create a 10979# shared library. 10980postdeps=$lt_postdeps 10981 10982# The library search path used internally by the compiler when linking 10983# a shared library. 10984compiler_lib_search_path=$lt_compiler_lib_search_path 10985 10986# Method to check whether dependent libraries are shared objects. 10987deplibs_check_method=$lt_deplibs_check_method 10988 10989# Command to use when deplibs_check_method == file_magic. 10990file_magic_cmd=$lt_file_magic_cmd 10991 10992# Flag that allows shared libraries with undefined symbols to be built. 10993allow_undefined_flag=$lt_allow_undefined_flag 10994 10995# Flag that forces no undefined symbols. 10996no_undefined_flag=$lt_no_undefined_flag 10997 10998# Commands used to finish a libtool library installation in a directory. 10999finish_cmds=$lt_finish_cmds 11000 11001# Same as above, but a single script fragment to be evaled but not shown. 11002finish_eval=$lt_finish_eval 11003 11004# Take the output of nm and produce a listing of raw symbols and C names. 11005global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 11006 11007# Transform the output of nm in a proper C declaration 11008global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 11009 11010# Transform the output of nm in a C name address pair 11011global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 11012 11013# This is the shared library runtime path variable. 11014runpath_var=$runpath_var 11015 11016# This is the shared library path variable. 11017shlibpath_var=$shlibpath_var 11018 11019# Is shlibpath searched before the hard-coded library search path? 11020shlibpath_overrides_runpath=$shlibpath_overrides_runpath 11021 11022# How to hardcode a shared library path into an executable. 11023hardcode_action=$hardcode_action 11024 11025# Whether we should hardcode library paths into libraries. 11026hardcode_into_libs=$hardcode_into_libs 11027 11028# Flag to hardcode \$libdir into a binary during linking. 11029# This must work even if \$libdir does not exist. 11030hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 11031 11032# If ld is used when linking, flag to hardcode \$libdir into 11033# a binary during linking. This must work even if \$libdir does 11034# not exist. 11035hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 11036 11037# Whether we need a single -rpath flag with a separated argument. 11038hardcode_libdir_separator=$lt_hardcode_libdir_separator 11039 11040# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 11041# resulting binary. 11042hardcode_direct=$hardcode_direct 11043 11044# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 11045# resulting binary. 11046hardcode_minus_L=$hardcode_minus_L 11047 11048# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 11049# the resulting binary. 11050hardcode_shlibpath_var=$hardcode_shlibpath_var 11051 11052# Set to yes if building a shared library automatically hardcodes DIR into the library 11053# and all subsequent libraries and executables linked against it. 11054hardcode_automatic=$hardcode_automatic 11055 11056# Variables whose values should be saved in libtool wrapper scripts and 11057# restored at relink time. 11058variables_saved_for_relink="$variables_saved_for_relink" 11059 11060# Whether libtool must link a program against all its dependency libraries. 11061link_all_deplibs=$link_all_deplibs 11062 11063# Compile-time system search path for libraries 11064sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 11065 11066# Run-time system search path for libraries 11067sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 11068 11069# Fix the shell variable \$srcfile for the compiler. 11070fix_srcfile_path="$fix_srcfile_path" 11071 11072# Set to yes if exported symbols are required. 11073always_export_symbols=$always_export_symbols 11074 11075# The commands to list exported symbols. 11076export_symbols_cmds=$lt_export_symbols_cmds 11077 11078# The commands to extract the exported symbol list from a shared archive. 11079extract_expsyms_cmds=$lt_extract_expsyms_cmds 11080 11081# Symbols that should not be listed in the preloaded symbols. 11082exclude_expsyms=$lt_exclude_expsyms 11083 11084# Symbols that must always be exported. 11085include_expsyms=$lt_include_expsyms 11086 11087# ### END LIBTOOL CONFIG 11088 11089__EOF__ 11090 11091 11092 case $host_os in 11093 aix3*) 11094 cat <<\EOF >> "$cfgfile" 11095 11096# AIX sometimes has problems with the GCC collect2 program. For some 11097# reason, if we set the COLLECT_NAMES environment variable, the problems 11098# vanish in a puff of smoke. 11099if test "X${COLLECT_NAMES+set}" != Xset; then 11100 COLLECT_NAMES= 11101 export COLLECT_NAMES 11102fi 11103EOF 11104 ;; 11105 esac 11106 11107 # We use sed instead of cat because bash on DJGPP gets confused if 11108 # if finds mixed CR/LF and LF-only lines. Since sed operates in 11109 # text mode, it properly converts lines to CR/LF. This bash problem 11110 # is reportedly fixed, but why not run on old versions too? 11111 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 11112 11113 mv -f "$cfgfile" "$ofile" || \ 11114 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 11115 chmod +x "$ofile" 11116 11117else 11118 # If there is no Makefile yet, we rely on a make rule to execute 11119 # `config.status --recheck' to rerun these tests and create the 11120 # libtool script then. 11121 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 11122 if test -f "$ltmain_in"; then 11123 test -f Makefile && make "$ltmain" 11124 fi 11125fi 11126 11127 11128ac_ext=c 11129ac_cpp='$CPP $CPPFLAGS' 11130ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11131ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11132ac_compiler_gnu=$ac_cv_c_compiler_gnu 11133 11134CC="$lt_save_CC" 11135 11136 11137# Check whether --with-tags was given. 11138if test "${with_tags+set}" = set; then 11139 withval=$with_tags; tagnames="$withval" 11140fi 11141 11142 11143if test -f "$ltmain" && test -n "$tagnames"; then 11144 if test ! -f "${ofile}"; then 11145 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 11146echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 11147 fi 11148 11149 if test -z "$LTCC"; then 11150 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 11151 if test -z "$LTCC"; then 11152 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 11153echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 11154 else 11155 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 11156echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 11157 fi 11158 fi 11159 if test -z "$LTCFLAGS"; then 11160 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 11161 fi 11162 11163 # Extract list of available tagged configurations in $ofile. 11164 # Note that this assumes the entire list is on one line. 11165 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 11166 11167 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 11168 for tagname in $tagnames; do 11169 IFS="$lt_save_ifs" 11170 # Check whether tagname contains only valid characters 11171 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 11172 "") ;; 11173 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 11174echo "$as_me: error: invalid tag name: $tagname" >&2;} 11175 { (exit 1); exit 1; }; } 11176 ;; 11177 esac 11178 11179 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 11180 then 11181 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 11182echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 11183 { (exit 1); exit 1; }; } 11184 fi 11185 11186 # Update the list of available tags. 11187 if test -n "$tagname"; then 11188 echo appending configuration tag \"$tagname\" to $ofile 11189 11190 case $tagname in 11191 CXX) 11192 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 11193 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 11194 (test "X$CXX" != "Xg++"))) ; then 11195 ac_ext=cpp 11196ac_cpp='$CXXCPP $CPPFLAGS' 11197ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11198ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11199ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11200 11201 11202 11203 11204archive_cmds_need_lc_CXX=no 11205allow_undefined_flag_CXX= 11206always_export_symbols_CXX=no 11207archive_expsym_cmds_CXX= 11208export_dynamic_flag_spec_CXX= 11209hardcode_direct_CXX=no 11210hardcode_libdir_flag_spec_CXX= 11211hardcode_libdir_flag_spec_ld_CXX= 11212hardcode_libdir_separator_CXX= 11213hardcode_minus_L_CXX=no 11214hardcode_shlibpath_var_CXX=unsupported 11215hardcode_automatic_CXX=no 11216module_cmds_CXX= 11217module_expsym_cmds_CXX= 11218link_all_deplibs_CXX=unknown 11219old_archive_cmds_CXX=$old_archive_cmds 11220no_undefined_flag_CXX= 11221whole_archive_flag_spec_CXX= 11222enable_shared_with_static_runtimes_CXX=no 11223 11224# Dependencies to place before and after the object being linked: 11225predep_objects_CXX= 11226postdep_objects_CXX= 11227predeps_CXX= 11228postdeps_CXX= 11229compiler_lib_search_path_CXX= 11230 11231# Source file extension for C++ test sources. 11232ac_ext=cpp 11233 11234# Object file extension for compiled C++ test sources. 11235objext=o 11236objext_CXX=$objext 11237 11238# Code to be used in simple compile tests 11239lt_simple_compile_test_code="int some_variable = 0;\n" 11240 11241# Code to be used in simple link tests 11242lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 11243 11244# ltmain only uses $CC for tagged configurations so make sure $CC is set. 11245 11246# If no C compiler was specified, use CC. 11247LTCC=${LTCC-"$CC"} 11248 11249# If no C compiler flags were specified, use CFLAGS. 11250LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11251 11252# Allow CC to be a program name with arguments. 11253compiler=$CC 11254 11255 11256# save warnings/boilerplate of simple test code 11257ac_outfile=conftest.$ac_objext 11258printf "$lt_simple_compile_test_code" >conftest.$ac_ext 11259eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11260_lt_compiler_boilerplate=`cat conftest.err` 11261$rm conftest* 11262 11263ac_outfile=conftest.$ac_objext 11264printf "$lt_simple_link_test_code" >conftest.$ac_ext 11265eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11266_lt_linker_boilerplate=`cat conftest.err` 11267$rm conftest* 11268 11269 11270# Allow CC to be a program name with arguments. 11271lt_save_CC=$CC 11272lt_save_LD=$LD 11273lt_save_GCC=$GCC 11274GCC=$GXX 11275lt_save_with_gnu_ld=$with_gnu_ld 11276lt_save_path_LD=$lt_cv_path_LD 11277if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11278 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11279else 11280 $as_unset lt_cv_prog_gnu_ld 11281fi 11282if test -n "${lt_cv_path_LDCXX+set}"; then 11283 lt_cv_path_LD=$lt_cv_path_LDCXX 11284else 11285 $as_unset lt_cv_path_LD 11286fi 11287test -z "${LDCXX+set}" || LD=$LDCXX 11288CC=${CXX-"c++"} 11289compiler=$CC 11290compiler_CXX=$CC 11291for cc_temp in $compiler""; do 11292 case $cc_temp in 11293 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11294 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11295 \-*) ;; 11296 *) break;; 11297 esac 11298done 11299cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 11300 11301 11302# We don't want -fno-exception wen compiling C++ code, so set the 11303# no_builtin_flag separately 11304if test "$GXX" = yes; then 11305 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11306else 11307 lt_prog_compiler_no_builtin_flag_CXX= 11308fi 11309 11310if test "$GXX" = yes; then 11311 # Set up default GNU C++ configuration 11312 11313 11314# Check whether --with-gnu-ld was given. 11315if test "${with_gnu_ld+set}" = set; then 11316 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11317else 11318 with_gnu_ld=no 11319fi 11320 11321ac_prog=ld 11322if test "$GCC" = yes; then 11323 # Check if gcc -print-prog-name=ld gives a path. 11324 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 11325echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 11326 case $host in 11327 *-*-mingw*) 11328 # gcc leaves a trailing carriage return which upsets mingw 11329 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11330 *) 11331 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11332 esac 11333 case $ac_prog in 11334 # Accept absolute paths. 11335 [\\/]* | ?:[\\/]*) 11336 re_direlt='/[^/][^/]*/\.\./' 11337 # Canonicalize the pathname of ld 11338 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 11339 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 11340 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 11341 done 11342 test -z "$LD" && LD="$ac_prog" 11343 ;; 11344 "") 11345 # If it fails, then pretend we aren't using GCC. 11346 ac_prog=ld 11347 ;; 11348 *) 11349 # If it is relative, then search for the first ld in PATH. 11350 with_gnu_ld=unknown 11351 ;; 11352 esac 11353elif test "$with_gnu_ld" = yes; then 11354 { echo "$as_me:$LINENO: checking for GNU ld" >&5 11355echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 11356else 11357 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 11358echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 11359fi 11360if test "${lt_cv_path_LD+set}" = set; then 11361 echo $ECHO_N "(cached) $ECHO_C" >&6 11362else 11363 if test -z "$LD"; then 11364 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11365 for ac_dir in $PATH; do 11366 IFS="$lt_save_ifs" 11367 test -z "$ac_dir" && ac_dir=. 11368 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11369 lt_cv_path_LD="$ac_dir/$ac_prog" 11370 # Check to see if the program is GNU ld. I'd rather use --version, 11371 # but apparently some variants of GNU ld only accept -v. 11372 # Break only if it was the GNU/non-GNU ld that we prefer. 11373 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11374 *GNU* | *'with BFD'*) 11375 test "$with_gnu_ld" != no && break 11376 ;; 11377 *) 11378 test "$with_gnu_ld" != yes && break 11379 ;; 11380 esac 11381 fi 11382 done 11383 IFS="$lt_save_ifs" 11384else 11385 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11386fi 11387fi 11388 11389LD="$lt_cv_path_LD" 11390if test -n "$LD"; then 11391 { echo "$as_me:$LINENO: result: $LD" >&5 11392echo "${ECHO_T}$LD" >&6; } 11393else 11394 { echo "$as_me:$LINENO: result: no" >&5 11395echo "${ECHO_T}no" >&6; } 11396fi 11397test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 11398echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 11399 { (exit 1); exit 1; }; } 11400{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 11401echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 11402if test "${lt_cv_prog_gnu_ld+set}" = set; then 11403 echo $ECHO_N "(cached) $ECHO_C" >&6 11404else 11405 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11406case `$LD -v 2>&1 </dev/null` in 11407*GNU* | *'with BFD'*) 11408 lt_cv_prog_gnu_ld=yes 11409 ;; 11410*) 11411 lt_cv_prog_gnu_ld=no 11412 ;; 11413esac 11414fi 11415{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 11416echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 11417with_gnu_ld=$lt_cv_prog_gnu_ld 11418 11419 11420 11421 # Check if GNU C++ uses GNU ld as the underlying linker, since the 11422 # archiving commands below assume that GNU ld is being used. 11423 if test "$with_gnu_ld" = yes; then 11424 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11425 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' 11426 11427 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11428 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11429 11430 # If archive_cmds runs LD, not CC, wlarc should be empty 11431 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 11432 # investigate it a little bit more. (MM) 11433 wlarc='${wl}' 11434 11435 # ancient GNU ld didn't support --whole-archive et. al. 11436 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 11437 grep 'no-whole-archive' > /dev/null; then 11438 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11439 else 11440 whole_archive_flag_spec_CXX= 11441 fi 11442 else 11443 with_gnu_ld=no 11444 wlarc= 11445 11446 # A generic and very simple default shared library creation 11447 # command for GNU C++ for the case where it uses the native 11448 # linker, instead of GNU ld. If possible, this setting should 11449 # overridden to take advantage of the native linker features on 11450 # the platform it is being used on. 11451 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11452 fi 11453 11454 # Commands to make compiler produce verbose output that lists 11455 # what "hidden" libraries, object files and flags are used when 11456 # linking a shared library. 11457 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11458 11459else 11460 GXX=no 11461 with_gnu_ld=no 11462 wlarc= 11463fi 11464 11465# PORTME: fill in a description of your system's C++ link characteristics 11466{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11467echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 11468ld_shlibs_CXX=yes 11469case $host_os in 11470 aix3*) 11471 # FIXME: insert proper C++ library support 11472 ld_shlibs_CXX=no 11473 ;; 11474 aix4* | aix5*) 11475 if test "$host_cpu" = ia64; then 11476 # On IA64, the linker does run time linking by default, so we don't 11477 # have to do anything special. 11478 aix_use_runtimelinking=no 11479 exp_sym_flag='-Bexport' 11480 no_entry_flag="" 11481 else 11482 aix_use_runtimelinking=no 11483 11484 # Test if we are trying to use run time linking or normal 11485 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11486 # need to do runtime linking. 11487 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 11488 for ld_flag in $LDFLAGS; do 11489 case $ld_flag in 11490 *-brtl*) 11491 aix_use_runtimelinking=yes 11492 break 11493 ;; 11494 esac 11495 done 11496 ;; 11497 esac 11498 11499 exp_sym_flag='-bexport' 11500 no_entry_flag='-bnoentry' 11501 fi 11502 11503 # When large executables or shared objects are built, AIX ld can 11504 # have problems creating the table of contents. If linking a library 11505 # or program results in "error TOC overflow" add -mminimal-toc to 11506 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11507 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11508 11509 archive_cmds_CXX='' 11510 hardcode_direct_CXX=yes 11511 hardcode_libdir_separator_CXX=':' 11512 link_all_deplibs_CXX=yes 11513 11514 if test "$GXX" = yes; then 11515 case $host_os in aix4.[012]|aix4.[012].*) 11516 # We only want to do this on AIX 4.2 and lower, the check 11517 # below for broken collect2 doesn't work under 4.3+ 11518 collect2name=`${CC} -print-prog-name=collect2` 11519 if test -f "$collect2name" && \ 11520 strings "$collect2name" | grep resolve_lib_name >/dev/null 11521 then 11522 # We have reworked collect2 11523 hardcode_direct_CXX=yes 11524 else 11525 # We have old collect2 11526 hardcode_direct_CXX=unsupported 11527 # It fails to find uninstalled libraries when the uninstalled 11528 # path is not listed in the libpath. Setting hardcode_minus_L 11529 # to unsupported forces relinking 11530 hardcode_minus_L_CXX=yes 11531 hardcode_libdir_flag_spec_CXX='-L$libdir' 11532 hardcode_libdir_separator_CXX= 11533 fi 11534 ;; 11535 esac 11536 shared_flag='-shared' 11537 if test "$aix_use_runtimelinking" = yes; then 11538 shared_flag="$shared_flag "'${wl}-G' 11539 fi 11540 else 11541 # not using gcc 11542 if test "$host_cpu" = ia64; then 11543 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11544 # chokes on -Wl,-G. The following line is correct: 11545 shared_flag='-G' 11546 else 11547 if test "$aix_use_runtimelinking" = yes; then 11548 shared_flag='${wl}-G' 11549 else 11550 shared_flag='${wl}-bM:SRE' 11551 fi 11552 fi 11553 fi 11554 11555 # It seems that -bexpall does not export symbols beginning with 11556 # underscore (_), so it is better to generate a list of symbols to export. 11557 always_export_symbols_CXX=yes 11558 if test "$aix_use_runtimelinking" = yes; then 11559 # Warning - without using the other runtime loading flags (-brtl), 11560 # -berok will link without error, but may produce a broken library. 11561 allow_undefined_flag_CXX='-berok' 11562 # Determine the default libpath from the value encoded in an empty executable. 11563 cat >conftest.$ac_ext <<_ACEOF 11564/* confdefs.h. */ 11565_ACEOF 11566cat confdefs.h >>conftest.$ac_ext 11567cat >>conftest.$ac_ext <<_ACEOF 11568/* end confdefs.h. */ 11569 11570int 11571main () 11572{ 11573 11574 ; 11575 return 0; 11576} 11577_ACEOF 11578rm -f conftest.$ac_objext conftest$ac_exeext 11579if { (ac_try="$ac_link" 11580case "(($ac_try" in 11581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11582 *) ac_try_echo=$ac_try;; 11583esac 11584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11585 (eval "$ac_link") 2>conftest.er1 11586 ac_status=$? 11587 grep -v '^ *+' conftest.er1 >conftest.err 11588 rm -f conftest.er1 11589 cat conftest.err >&5 11590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11591 (exit $ac_status); } && { 11592 test -z "$ac_cxx_werror_flag" || 11593 test ! -s conftest.err 11594 } && test -s conftest$ac_exeext && 11595 $as_test_x conftest$ac_exeext; then 11596 11597aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11598}'` 11599# Check for a 64-bit object if we didn't find anything. 11600if 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; } 11601}'`; fi 11602else 11603 echo "$as_me: failed program was:" >&5 11604sed 's/^/| /' conftest.$ac_ext >&5 11605 11606 11607fi 11608 11609rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11610 conftest$ac_exeext conftest.$ac_ext 11611if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11612 11613 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11614 11615 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" 11616 else 11617 if test "$host_cpu" = ia64; then 11618 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11619 allow_undefined_flag_CXX="-z nodefs" 11620 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" 11621 else 11622 # Determine the default libpath from the value encoded in an empty executable. 11623 cat >conftest.$ac_ext <<_ACEOF 11624/* confdefs.h. */ 11625_ACEOF 11626cat confdefs.h >>conftest.$ac_ext 11627cat >>conftest.$ac_ext <<_ACEOF 11628/* end confdefs.h. */ 11629 11630int 11631main () 11632{ 11633 11634 ; 11635 return 0; 11636} 11637_ACEOF 11638rm -f conftest.$ac_objext conftest$ac_exeext 11639if { (ac_try="$ac_link" 11640case "(($ac_try" in 11641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11642 *) ac_try_echo=$ac_try;; 11643esac 11644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11645 (eval "$ac_link") 2>conftest.er1 11646 ac_status=$? 11647 grep -v '^ *+' conftest.er1 >conftest.err 11648 rm -f conftest.er1 11649 cat conftest.err >&5 11650 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11651 (exit $ac_status); } && { 11652 test -z "$ac_cxx_werror_flag" || 11653 test ! -s conftest.err 11654 } && test -s conftest$ac_exeext && 11655 $as_test_x conftest$ac_exeext; then 11656 11657aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11658}'` 11659# Check for a 64-bit object if we didn't find anything. 11660if 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; } 11661}'`; fi 11662else 11663 echo "$as_me: failed program was:" >&5 11664sed 's/^/| /' conftest.$ac_ext >&5 11665 11666 11667fi 11668 11669rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11670 conftest$ac_exeext conftest.$ac_ext 11671if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11672 11673 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11674 # Warning - without using the other run time loading flags, 11675 # -berok will link without error, but may produce a broken library. 11676 no_undefined_flag_CXX=' ${wl}-bernotok' 11677 allow_undefined_flag_CXX=' ${wl}-berok' 11678 # Exported symbols can be pulled into shared objects from archives 11679 whole_archive_flag_spec_CXX='$convenience' 11680 archive_cmds_need_lc_CXX=yes 11681 # This is similar to how AIX traditionally builds its shared libraries. 11682 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' 11683 fi 11684 fi 11685 ;; 11686 11687 beos*) 11688 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11689 allow_undefined_flag_CXX=unsupported 11690 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11691 # support --undefined. This deserves some investigation. FIXME 11692 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11693 else 11694 ld_shlibs_CXX=no 11695 fi 11696 ;; 11697 11698 chorus*) 11699 case $cc_basename in 11700 *) 11701 # FIXME: insert proper C++ library support 11702 ld_shlibs_CXX=no 11703 ;; 11704 esac 11705 ;; 11706 11707 cygwin* | mingw* | pw32*) 11708 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11709 # as there is no search path for DLLs. 11710 hardcode_libdir_flag_spec_CXX='-L$libdir' 11711 allow_undefined_flag_CXX=unsupported 11712 always_export_symbols_CXX=no 11713 enable_shared_with_static_runtimes_CXX=yes 11714 11715 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11716 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' 11717 # If the export-symbols file already is a .def file (1st line 11718 # is EXPORTS), use it as is; otherwise, prepend... 11719 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11720 cp $export_symbols $output_objdir/$soname.def; 11721 else 11722 echo EXPORTS > $output_objdir/$soname.def; 11723 cat $export_symbols >> $output_objdir/$soname.def; 11724 fi~ 11725 $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' 11726 else 11727 ld_shlibs_CXX=no 11728 fi 11729 ;; 11730 darwin* | rhapsody*) 11731 case $host_os in 11732 rhapsody* | darwin1.[012]) 11733 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 11734 ;; 11735 *) # Darwin 1.3 on 11736 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 11737 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11738 else 11739 case ${MACOSX_DEPLOYMENT_TARGET} in 11740 10.[012]) 11741 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11742 ;; 11743 10.*) 11744 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 11745 ;; 11746 esac 11747 fi 11748 ;; 11749 esac 11750 archive_cmds_need_lc_CXX=no 11751 hardcode_direct_CXX=no 11752 hardcode_automatic_CXX=yes 11753 hardcode_shlibpath_var_CXX=unsupported 11754 whole_archive_flag_spec_CXX='' 11755 link_all_deplibs_CXX=yes 11756 11757 if test "$GXX" = yes ; then 11758 lt_int_apple_cc_single_mod=no 11759 output_verbose_link_cmd='echo' 11760 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 11761 lt_int_apple_cc_single_mod=yes 11762 fi 11763 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11764 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 11765 else 11766 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' 11767 fi 11768 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11769 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11770 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11771 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}' 11772 else 11773 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}' 11774 fi 11775 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}' 11776 else 11777 case $cc_basename in 11778 xlc*) 11779 output_verbose_link_cmd='echo' 11780 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' 11781 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11782 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11783 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}' 11784 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}' 11785 ;; 11786 *) 11787 ld_shlibs_CXX=no 11788 ;; 11789 esac 11790 fi 11791 ;; 11792 11793 dgux*) 11794 case $cc_basename in 11795 ec++*) 11796 # FIXME: insert proper C++ library support 11797 ld_shlibs_CXX=no 11798 ;; 11799 ghcx*) 11800 # Green Hills C++ Compiler 11801 # FIXME: insert proper C++ library support 11802 ld_shlibs_CXX=no 11803 ;; 11804 *) 11805 # FIXME: insert proper C++ library support 11806 ld_shlibs_CXX=no 11807 ;; 11808 esac 11809 ;; 11810 freebsd[12]*) 11811 # C++ shared libraries reported to be fairly broken before switch to ELF 11812 ld_shlibs_CXX=no 11813 ;; 11814 freebsd-elf*) 11815 archive_cmds_need_lc_CXX=no 11816 ;; 11817 freebsd* | dragonfly*) 11818 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11819 # conventions 11820 ld_shlibs_CXX=yes 11821 ;; 11822 gnu*) 11823 ;; 11824 hpux9*) 11825 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11826 hardcode_libdir_separator_CXX=: 11827 export_dynamic_flag_spec_CXX='${wl}-E' 11828 hardcode_direct_CXX=yes 11829 hardcode_minus_L_CXX=yes # Not in the search PATH, 11830 # but as the default 11831 # location of the library. 11832 11833 case $cc_basename in 11834 CC*) 11835 # FIXME: insert proper C++ library support 11836 ld_shlibs_CXX=no 11837 ;; 11838 aCC*) 11839 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' 11840 # Commands to make compiler produce verbose output that lists 11841 # what "hidden" libraries, object files and flags are used when 11842 # linking a shared library. 11843 # 11844 # There doesn't appear to be a way to prevent this compiler from 11845 # explicitly linking system object files so we need to strip them 11846 # from the output so that they don't get included in the library 11847 # dependencies. 11848 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' 11849 ;; 11850 *) 11851 if test "$GXX" = yes; then 11852 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' 11853 else 11854 # FIXME: insert proper C++ library support 11855 ld_shlibs_CXX=no 11856 fi 11857 ;; 11858 esac 11859 ;; 11860 hpux10*|hpux11*) 11861 if test $with_gnu_ld = no; then 11862 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11863 hardcode_libdir_separator_CXX=: 11864 11865 case $host_cpu in 11866 hppa*64*|ia64*) 11867 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 11868 ;; 11869 *) 11870 export_dynamic_flag_spec_CXX='${wl}-E' 11871 ;; 11872 esac 11873 fi 11874 case $host_cpu in 11875 hppa*64*|ia64*) 11876 hardcode_direct_CXX=no 11877 hardcode_shlibpath_var_CXX=no 11878 ;; 11879 *) 11880 hardcode_direct_CXX=yes 11881 hardcode_minus_L_CXX=yes # Not in the search PATH, 11882 # but as the default 11883 # location of the library. 11884 ;; 11885 esac 11886 11887 case $cc_basename in 11888 CC*) 11889 # FIXME: insert proper C++ library support 11890 ld_shlibs_CXX=no 11891 ;; 11892 aCC*) 11893 case $host_cpu in 11894 hppa*64*) 11895 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11896 ;; 11897 ia64*) 11898 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11899 ;; 11900 *) 11901 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11902 ;; 11903 esac 11904 # Commands to make compiler produce verbose output that lists 11905 # what "hidden" libraries, object files and flags are used when 11906 # linking a shared library. 11907 # 11908 # There doesn't appear to be a way to prevent this compiler from 11909 # explicitly linking system object files so we need to strip them 11910 # from the output so that they don't get included in the library 11911 # dependencies. 11912 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' 11913 ;; 11914 *) 11915 if test "$GXX" = yes; then 11916 if test $with_gnu_ld = no; then 11917 case $host_cpu in 11918 hppa*64*) 11919 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11920 ;; 11921 ia64*) 11922 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11923 ;; 11924 *) 11925 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' 11926 ;; 11927 esac 11928 fi 11929 else 11930 # FIXME: insert proper C++ library support 11931 ld_shlibs_CXX=no 11932 fi 11933 ;; 11934 esac 11935 ;; 11936 interix3*) 11937 hardcode_direct_CXX=no 11938 hardcode_shlibpath_var_CXX=no 11939 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11940 export_dynamic_flag_spec_CXX='${wl}-E' 11941 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11942 # Instead, shared libraries are loaded at an image base (0x10000000 by 11943 # default) and relocated if they conflict, which is a slow very memory 11944 # consuming and fragmenting process. To avoid this, we pick a random, 11945 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11946 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11947 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' 11948 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' 11949 ;; 11950 irix5* | irix6*) 11951 case $cc_basename in 11952 CC*) 11953 # SGI C++ 11954 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' 11955 11956 # Archives containing C++ object files must be created using 11957 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11958 # necessary to make sure instantiated templates are included 11959 # in the archive. 11960 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11961 ;; 11962 *) 11963 if test "$GXX" = yes; then 11964 if test "$with_gnu_ld" = no; then 11965 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' 11966 else 11967 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' 11968 fi 11969 fi 11970 link_all_deplibs_CXX=yes 11971 ;; 11972 esac 11973 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11974 hardcode_libdir_separator_CXX=: 11975 ;; 11976 linux* | k*bsd*-gnu) 11977 case $cc_basename in 11978 KCC*) 11979 # Kuck and Associates, Inc. (KAI) C++ Compiler 11980 11981 # KCC will only create a shared library if the output file 11982 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11983 # to its proper name (with version) after linking. 11984 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' 11985 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' 11986 # Commands to make compiler produce verbose output that lists 11987 # what "hidden" libraries, object files and flags are used when 11988 # linking a shared library. 11989 # 11990 # There doesn't appear to be a way to prevent this compiler from 11991 # explicitly linking system object files so we need to strip them 11992 # from the output so that they don't get included in the library 11993 # dependencies. 11994 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' 11995 11996 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 11997 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11998 11999 # Archives containing C++ object files must be created using 12000 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12001 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12002 ;; 12003 icpc*) 12004 # Intel C++ 12005 with_gnu_ld=yes 12006 # version 8.0 and above of icpc choke on multiply defined symbols 12007 # if we add $predep_objects and $postdep_objects, however 7.1 and 12008 # earlier do not add the objects themselves. 12009 case `$CC -V 2>&1` in 12010 *"Version 7."*) 12011 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12012 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' 12013 ;; 12014 *) # Version 8.0 or newer 12015 tmp_idyn= 12016 case $host_cpu in 12017 ia64*) tmp_idyn=' -i_dynamic';; 12018 esac 12019 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12020 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' 12021 ;; 12022 esac 12023 archive_cmds_need_lc_CXX=no 12024 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12025 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12026 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12027 ;; 12028 pgCC*) 12029 # Portland Group C++ compiler 12030 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12031 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' 12032 12033 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 12034 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12035 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' 12036 ;; 12037 cxx*) 12038 # Compaq C++ 12039 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12040 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' 12041 12042 runpath_var=LD_RUN_PATH 12043 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12044 hardcode_libdir_separator_CXX=: 12045 12046 # Commands to make compiler produce verbose output that lists 12047 # what "hidden" libraries, object files and flags are used when 12048 # linking a shared library. 12049 # 12050 # There doesn't appear to be a way to prevent this compiler from 12051 # explicitly linking system object files so we need to strip them 12052 # from the output so that they don't get included in the library 12053 # dependencies. 12054 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' 12055 ;; 12056 esac 12057 ;; 12058 lynxos*) 12059 # FIXME: insert proper C++ library support 12060 ld_shlibs_CXX=no 12061 ;; 12062 m88k*) 12063 # FIXME: insert proper C++ library support 12064 ld_shlibs_CXX=no 12065 ;; 12066 mvs*) 12067 case $cc_basename in 12068 cxx*) 12069 # FIXME: insert proper C++ library support 12070 ld_shlibs_CXX=no 12071 ;; 12072 *) 12073 # FIXME: insert proper C++ library support 12074 ld_shlibs_CXX=no 12075 ;; 12076 esac 12077 ;; 12078 netbsd* | netbsdelf*-gnu) 12079 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12080 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 12081 wlarc= 12082 hardcode_libdir_flag_spec_CXX='-R$libdir' 12083 hardcode_direct_CXX=yes 12084 hardcode_shlibpath_var_CXX=no 12085 fi 12086 # Workaround some broken pre-1.5 toolchains 12087 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 12088 ;; 12089 openbsd2*) 12090 # C++ shared libraries are fairly broken 12091 ld_shlibs_CXX=no 12092 ;; 12093 openbsd*) 12094 hardcode_direct_CXX=yes 12095 hardcode_shlibpath_var_CXX=no 12096 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12097 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12098 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12099 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 12100 export_dynamic_flag_spec_CXX='${wl}-E' 12101 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12102 fi 12103 output_verbose_link_cmd='echo' 12104 ;; 12105 osf3*) 12106 case $cc_basename in 12107 KCC*) 12108 # Kuck and Associates, Inc. (KAI) C++ Compiler 12109 12110 # KCC will only create a shared library if the output file 12111 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12112 # to its proper name (with version) after linking. 12113 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' 12114 12115 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12116 hardcode_libdir_separator_CXX=: 12117 12118 # Archives containing C++ object files must be created using 12119 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12120 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12121 12122 ;; 12123 RCC*) 12124 # Rational C++ 2.4.1 12125 # FIXME: insert proper C++ library support 12126 ld_shlibs_CXX=no 12127 ;; 12128 cxx*) 12129 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12130 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' 12131 12132 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12133 hardcode_libdir_separator_CXX=: 12134 12135 # Commands to make compiler produce verbose output that lists 12136 # what "hidden" libraries, object files and flags are used when 12137 # linking a shared library. 12138 # 12139 # There doesn't appear to be a way to prevent this compiler from 12140 # explicitly linking system object files so we need to strip them 12141 # from the output so that they don't get included in the library 12142 # dependencies. 12143 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' 12144 ;; 12145 *) 12146 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12147 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12148 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' 12149 12150 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12151 hardcode_libdir_separator_CXX=: 12152 12153 # Commands to make compiler produce verbose output that lists 12154 # what "hidden" libraries, object files and flags are used when 12155 # linking a shared library. 12156 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12157 12158 else 12159 # FIXME: insert proper C++ library support 12160 ld_shlibs_CXX=no 12161 fi 12162 ;; 12163 esac 12164 ;; 12165 osf4* | osf5*) 12166 case $cc_basename in 12167 KCC*) 12168 # Kuck and Associates, Inc. (KAI) C++ Compiler 12169 12170 # KCC will only create a shared library if the output file 12171 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12172 # to its proper name (with version) after linking. 12173 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' 12174 12175 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12176 hardcode_libdir_separator_CXX=: 12177 12178 # Archives containing C++ object files must be created using 12179 # the KAI C++ compiler. 12180 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 12181 ;; 12182 RCC*) 12183 # Rational C++ 2.4.1 12184 # FIXME: insert proper C++ library support 12185 ld_shlibs_CXX=no 12186 ;; 12187 cxx*) 12188 allow_undefined_flag_CXX=' -expect_unresolved \*' 12189 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' 12190 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12191 echo "-hidden">> $lib.exp~ 12192 $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~ 12193 $rm $lib.exp' 12194 12195 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12196 hardcode_libdir_separator_CXX=: 12197 12198 # Commands to make compiler produce verbose output that lists 12199 # what "hidden" libraries, object files and flags are used when 12200 # linking a shared library. 12201 # 12202 # There doesn't appear to be a way to prevent this compiler from 12203 # explicitly linking system object files so we need to strip them 12204 # from the output so that they don't get included in the library 12205 # dependencies. 12206 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' 12207 ;; 12208 *) 12209 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12210 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12211 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' 12212 12213 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12214 hardcode_libdir_separator_CXX=: 12215 12216 # Commands to make compiler produce verbose output that lists 12217 # what "hidden" libraries, object files and flags are used when 12218 # linking a shared library. 12219 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12220 12221 else 12222 # FIXME: insert proper C++ library support 12223 ld_shlibs_CXX=no 12224 fi 12225 ;; 12226 esac 12227 ;; 12228 psos*) 12229 # FIXME: insert proper C++ library support 12230 ld_shlibs_CXX=no 12231 ;; 12232 sunos4*) 12233 case $cc_basename in 12234 CC*) 12235 # Sun C++ 4.x 12236 # FIXME: insert proper C++ library support 12237 ld_shlibs_CXX=no 12238 ;; 12239 lcc*) 12240 # Lucid 12241 # FIXME: insert proper C++ library support 12242 ld_shlibs_CXX=no 12243 ;; 12244 *) 12245 # FIXME: insert proper C++ library support 12246 ld_shlibs_CXX=no 12247 ;; 12248 esac 12249 ;; 12250 solaris*) 12251 case $cc_basename in 12252 CC*) 12253 # Sun C++ 4.2, 5.x and Centerline C++ 12254 archive_cmds_need_lc_CXX=yes 12255 no_undefined_flag_CXX=' -zdefs' 12256 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12257 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12258 $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' 12259 12260 hardcode_libdir_flag_spec_CXX='-R$libdir' 12261 hardcode_shlibpath_var_CXX=no 12262 case $host_os in 12263 solaris2.[0-5] | solaris2.[0-5].*) ;; 12264 *) 12265 # The C++ compiler is used as linker so we must use $wl 12266 # flag to pass the commands to the underlying system 12267 # linker. We must also pass each convience library through 12268 # to the system linker between allextract/defaultextract. 12269 # The C++ compiler will combine linker options so we 12270 # cannot just pass the convience library names through 12271 # without $wl. 12272 # Supported since Solaris 2.6 (maybe 2.5.1?) 12273 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' 12274 ;; 12275 esac 12276 link_all_deplibs_CXX=yes 12277 12278 output_verbose_link_cmd='echo' 12279 12280 # Archives containing C++ object files must be created using 12281 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12282 # necessary to make sure instantiated templates are included 12283 # in the archive. 12284 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12285 ;; 12286 gcx*) 12287 # Green Hills C++ Compiler 12288 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12289 12290 # The C++ compiler must be used to create the archive. 12291 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12292 ;; 12293 *) 12294 # GNU C++ compiler with Solaris linker 12295 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12296 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12297 if $CC --version | grep -v '^2\.7' > /dev/null; then 12298 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12299 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12300 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12301 12302 # Commands to make compiler produce verbose output that lists 12303 # what "hidden" libraries, object files and flags are used when 12304 # linking a shared library. 12305 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12306 else 12307 # g++ 2.7 appears to require `-G' NOT `-shared' on this 12308 # platform. 12309 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12310 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12311 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12312 12313 # Commands to make compiler produce verbose output that lists 12314 # what "hidden" libraries, object files and flags are used when 12315 # linking a shared library. 12316 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12317 fi 12318 12319 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12320 fi 12321 ;; 12322 esac 12323 ;; 12324 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12325 no_undefined_flag_CXX='${wl}-z,text' 12326 archive_cmds_need_lc_CXX=no 12327 hardcode_shlibpath_var_CXX=no 12328 runpath_var='LD_RUN_PATH' 12329 12330 case $cc_basename in 12331 CC*) 12332 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12333 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12334 ;; 12335 *) 12336 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12337 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12338 ;; 12339 esac 12340 ;; 12341 sysv5* | sco3.2v5* | sco5v6*) 12342 # Note: We can NOT use -z defs as we might desire, because we do not 12343 # link with -lc, and that would cause any symbols used from libc to 12344 # always be unresolved, which means just about no library would 12345 # ever link correctly. If we're not using GNU ld we use -z text 12346 # though, which does catch some bad symbols but isn't as heavy-handed 12347 # as -z defs. 12348 # For security reasons, it is highly recommended that you always 12349 # use absolute paths for naming shared libraries, and exclude the 12350 # DT_RUNPATH tag from executables and libraries. But doing so 12351 # requires that you compile everything twice, which is a pain. 12352 # So that behaviour is only enabled if SCOABSPATH is set to a 12353 # non-empty value in the environment. Most likely only useful for 12354 # creating official distributions of packages. 12355 # This is a hack until libtool officially supports absolute path 12356 # names for shared libraries. 12357 no_undefined_flag_CXX='${wl}-z,text' 12358 allow_undefined_flag_CXX='${wl}-z,nodefs' 12359 archive_cmds_need_lc_CXX=no 12360 hardcode_shlibpath_var_CXX=no 12361 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 12362 hardcode_libdir_separator_CXX=':' 12363 link_all_deplibs_CXX=yes 12364 export_dynamic_flag_spec_CXX='${wl}-Bexport' 12365 runpath_var='LD_RUN_PATH' 12366 12367 case $cc_basename in 12368 CC*) 12369 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12370 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12371 ;; 12372 *) 12373 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12374 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12375 ;; 12376 esac 12377 ;; 12378 tandem*) 12379 case $cc_basename in 12380 NCC*) 12381 # NonStop-UX NCC 3.20 12382 # FIXME: insert proper C++ library support 12383 ld_shlibs_CXX=no 12384 ;; 12385 *) 12386 # FIXME: insert proper C++ library support 12387 ld_shlibs_CXX=no 12388 ;; 12389 esac 12390 ;; 12391 vxworks*) 12392 # FIXME: insert proper C++ library support 12393 ld_shlibs_CXX=no 12394 ;; 12395 *) 12396 # FIXME: insert proper C++ library support 12397 ld_shlibs_CXX=no 12398 ;; 12399esac 12400{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12401echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12402test "$ld_shlibs_CXX" = no && can_build_shared=no 12403 12404GCC_CXX="$GXX" 12405LD_CXX="$LD" 12406 12407 12408cat > conftest.$ac_ext <<EOF 12409class Foo 12410{ 12411public: 12412 Foo (void) { a = 0; } 12413private: 12414 int a; 12415}; 12416EOF 12417 12418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12419 (eval $ac_compile) 2>&5 12420 ac_status=$? 12421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12422 (exit $ac_status); }; then 12423 # Parse the compiler output and extract the necessary 12424 # objects, libraries and library flags. 12425 12426 # Sentinel used to keep track of whether or not we are before 12427 # the conftest object file. 12428 pre_test_object_deps_done=no 12429 12430 # The `*' in the case matches for architectures that use `case' in 12431 # $output_verbose_cmd can trigger glob expansion during the loop 12432 # eval without this substitution. 12433 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 12434 12435 for p in `eval $output_verbose_link_cmd`; do 12436 case $p in 12437 12438 -L* | -R* | -l*) 12439 # Some compilers place space between "-{L,R}" and the path. 12440 # Remove the space. 12441 if test $p = "-L" \ 12442 || test $p = "-R"; then 12443 prev=$p 12444 continue 12445 else 12446 prev= 12447 fi 12448 12449 if test "$pre_test_object_deps_done" = no; then 12450 case $p in 12451 -L* | -R*) 12452 # Internal compiler library paths should come after those 12453 # provided the user. The postdeps already come after the 12454 # user supplied libs so there is no need to process them. 12455 if test -z "$compiler_lib_search_path_CXX"; then 12456 compiler_lib_search_path_CXX="${prev}${p}" 12457 else 12458 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 12459 fi 12460 ;; 12461 # The "-l" case would never come before the object being 12462 # linked, so don't bother handling this case. 12463 esac 12464 else 12465 if test -z "$postdeps_CXX"; then 12466 postdeps_CXX="${prev}${p}" 12467 else 12468 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 12469 fi 12470 fi 12471 ;; 12472 12473 *.$objext) 12474 # This assumes that the test object file only shows up 12475 # once in the compiler output. 12476 if test "$p" = "conftest.$objext"; then 12477 pre_test_object_deps_done=yes 12478 continue 12479 fi 12480 12481 if test "$pre_test_object_deps_done" = no; then 12482 if test -z "$predep_objects_CXX"; then 12483 predep_objects_CXX="$p" 12484 else 12485 predep_objects_CXX="$predep_objects_CXX $p" 12486 fi 12487 else 12488 if test -z "$postdep_objects_CXX"; then 12489 postdep_objects_CXX="$p" 12490 else 12491 postdep_objects_CXX="$postdep_objects_CXX $p" 12492 fi 12493 fi 12494 ;; 12495 12496 *) ;; # Ignore the rest. 12497 12498 esac 12499 done 12500 12501 # Clean up. 12502 rm -f a.out a.exe 12503else 12504 echo "libtool.m4: error: problem compiling CXX test program" 12505fi 12506 12507$rm -f confest.$objext 12508 12509# PORTME: override above test on systems where it is broken 12510case $host_os in 12511interix3*) 12512 # Interix 3.5 installs completely hosed .la files for C++, so rather than 12513 # hack all around it, let's just trust "g++" to DTRT. 12514 predep_objects_CXX= 12515 postdep_objects_CXX= 12516 postdeps_CXX= 12517 ;; 12518 12519solaris*) 12520 case $cc_basename in 12521 CC*) 12522 # Adding this requires a known-good setup of shared libraries for 12523 # Sun compiler versions before 5.6, else PIC objects from an old 12524 # archive will be linked into the output, leading to subtle bugs. 12525 postdeps_CXX='-lCstd -lCrun' 12526 ;; 12527 esac 12528 ;; 12529esac 12530 12531 12532case " $postdeps_CXX " in 12533*" -lc "*) archive_cmds_need_lc_CXX=no ;; 12534esac 12535 12536lt_prog_compiler_wl_CXX= 12537lt_prog_compiler_pic_CXX= 12538lt_prog_compiler_static_CXX= 12539 12540{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12541echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 12542 12543 # C++ specific cases for pic, static, wl, etc. 12544 if test "$GXX" = yes; then 12545 lt_prog_compiler_wl_CXX='-Wl,' 12546 lt_prog_compiler_static_CXX='-static' 12547 12548 case $host_os in 12549 aix*) 12550 # All AIX code is PIC. 12551 if test "$host_cpu" = ia64; then 12552 # AIX 5 now supports IA64 processor 12553 lt_prog_compiler_static_CXX='-Bstatic' 12554 fi 12555 ;; 12556 amigaos*) 12557 # FIXME: we need at least 68020 code to build shared libraries, but 12558 # adding the `-m68020' flag to GCC prevents building anything better, 12559 # like `-m68040'. 12560 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12561 ;; 12562 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12563 # PIC is the default for these OSes. 12564 ;; 12565 mingw* | os2* | pw32*) 12566 # This hack is so that the source file can tell whether it is being 12567 # built for inclusion in a dll (and should export symbols for example). 12568 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 12569 ;; 12570 darwin* | rhapsody*) 12571 # PIC is the default on this platform 12572 # Common symbols not allowed in MH_DYLIB files 12573 lt_prog_compiler_pic_CXX='-fno-common' 12574 ;; 12575 *djgpp*) 12576 # DJGPP does not support shared libraries at all 12577 lt_prog_compiler_pic_CXX= 12578 ;; 12579 interix3*) 12580 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12581 # Instead, we relocate shared libraries at runtime. 12582 ;; 12583 sysv4*MP*) 12584 if test -d /usr/nec; then 12585 lt_prog_compiler_pic_CXX=-Kconform_pic 12586 fi 12587 ;; 12588 hpux*) 12589 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12590 # not for PA HP-UX. 12591 case $host_cpu in 12592 hppa*64*|ia64*) 12593 ;; 12594 *) 12595 lt_prog_compiler_pic_CXX='-fPIC' 12596 ;; 12597 esac 12598 ;; 12599 *) 12600 lt_prog_compiler_pic_CXX='-fPIC' 12601 ;; 12602 esac 12603 else 12604 case $host_os in 12605 aix4* | aix5*) 12606 # All AIX code is PIC. 12607 if test "$host_cpu" = ia64; then 12608 # AIX 5 now supports IA64 processor 12609 lt_prog_compiler_static_CXX='-Bstatic' 12610 else 12611 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12612 fi 12613 ;; 12614 chorus*) 12615 case $cc_basename in 12616 cxch68*) 12617 # Green Hills C++ Compiler 12618 # _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" 12619 ;; 12620 esac 12621 ;; 12622 darwin*) 12623 # PIC is the default on this platform 12624 # Common symbols not allowed in MH_DYLIB files 12625 case $cc_basename in 12626 xlc*) 12627 lt_prog_compiler_pic_CXX='-qnocommon' 12628 lt_prog_compiler_wl_CXX='-Wl,' 12629 ;; 12630 esac 12631 ;; 12632 dgux*) 12633 case $cc_basename in 12634 ec++*) 12635 lt_prog_compiler_pic_CXX='-KPIC' 12636 ;; 12637 ghcx*) 12638 # Green Hills C++ Compiler 12639 lt_prog_compiler_pic_CXX='-pic' 12640 ;; 12641 *) 12642 ;; 12643 esac 12644 ;; 12645 freebsd* | dragonfly*) 12646 # FreeBSD uses GNU C++ 12647 ;; 12648 hpux9* | hpux10* | hpux11*) 12649 case $cc_basename in 12650 CC*) 12651 lt_prog_compiler_wl_CXX='-Wl,' 12652 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12653 if test "$host_cpu" != ia64; then 12654 lt_prog_compiler_pic_CXX='+Z' 12655 fi 12656 ;; 12657 aCC*) 12658 lt_prog_compiler_wl_CXX='-Wl,' 12659 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12660 case $host_cpu in 12661 hppa*64*|ia64*) 12662 # +Z the default 12663 ;; 12664 *) 12665 lt_prog_compiler_pic_CXX='+Z' 12666 ;; 12667 esac 12668 ;; 12669 *) 12670 ;; 12671 esac 12672 ;; 12673 interix*) 12674 # This is c89, which is MS Visual C++ (no shared libs) 12675 # Anyone wants to do a port? 12676 ;; 12677 irix5* | irix6* | nonstopux*) 12678 case $cc_basename in 12679 CC*) 12680 lt_prog_compiler_wl_CXX='-Wl,' 12681 lt_prog_compiler_static_CXX='-non_shared' 12682 # CC pic flag -KPIC is the default. 12683 ;; 12684 *) 12685 ;; 12686 esac 12687 ;; 12688 linux* | k*bsd*-gnu) 12689 case $cc_basename in 12690 KCC*) 12691 # KAI C++ Compiler 12692 lt_prog_compiler_wl_CXX='--backend -Wl,' 12693 lt_prog_compiler_pic_CXX='-fPIC' 12694 ;; 12695 icpc* | ecpc*) 12696 # Intel C++ 12697 lt_prog_compiler_wl_CXX='-Wl,' 12698 lt_prog_compiler_pic_CXX='-KPIC' 12699 lt_prog_compiler_static_CXX='-static' 12700 ;; 12701 pgCC*) 12702 # Portland Group C++ compiler. 12703 lt_prog_compiler_wl_CXX='-Wl,' 12704 lt_prog_compiler_pic_CXX='-fpic' 12705 lt_prog_compiler_static_CXX='-Bstatic' 12706 ;; 12707 cxx*) 12708 # Compaq C++ 12709 # Make sure the PIC flag is empty. It appears that all Alpha 12710 # Linux and Compaq Tru64 Unix objects are PIC. 12711 lt_prog_compiler_pic_CXX= 12712 lt_prog_compiler_static_CXX='-non_shared' 12713 ;; 12714 *) 12715 ;; 12716 esac 12717 ;; 12718 lynxos*) 12719 ;; 12720 m88k*) 12721 ;; 12722 mvs*) 12723 case $cc_basename in 12724 cxx*) 12725 lt_prog_compiler_pic_CXX='-W c,exportall' 12726 ;; 12727 *) 12728 ;; 12729 esac 12730 ;; 12731 netbsd* | netbsdelf*-gnu) 12732 ;; 12733 osf3* | osf4* | osf5*) 12734 case $cc_basename in 12735 KCC*) 12736 lt_prog_compiler_wl_CXX='--backend -Wl,' 12737 ;; 12738 RCC*) 12739 # Rational C++ 2.4.1 12740 lt_prog_compiler_pic_CXX='-pic' 12741 ;; 12742 cxx*) 12743 # Digital/Compaq C++ 12744 lt_prog_compiler_wl_CXX='-Wl,' 12745 # Make sure the PIC flag is empty. It appears that all Alpha 12746 # Linux and Compaq Tru64 Unix objects are PIC. 12747 lt_prog_compiler_pic_CXX= 12748 lt_prog_compiler_static_CXX='-non_shared' 12749 ;; 12750 *) 12751 ;; 12752 esac 12753 ;; 12754 psos*) 12755 ;; 12756 solaris*) 12757 case $cc_basename in 12758 CC*) 12759 # Sun C++ 4.2, 5.x and Centerline C++ 12760 lt_prog_compiler_pic_CXX='-KPIC' 12761 lt_prog_compiler_static_CXX='-Bstatic' 12762 lt_prog_compiler_wl_CXX='-Qoption ld ' 12763 ;; 12764 gcx*) 12765 # Green Hills C++ Compiler 12766 lt_prog_compiler_pic_CXX='-PIC' 12767 ;; 12768 *) 12769 ;; 12770 esac 12771 ;; 12772 sunos4*) 12773 case $cc_basename in 12774 CC*) 12775 # Sun C++ 4.x 12776 lt_prog_compiler_pic_CXX='-pic' 12777 lt_prog_compiler_static_CXX='-Bstatic' 12778 ;; 12779 lcc*) 12780 # Lucid 12781 lt_prog_compiler_pic_CXX='-pic' 12782 ;; 12783 *) 12784 ;; 12785 esac 12786 ;; 12787 tandem*) 12788 case $cc_basename in 12789 NCC*) 12790 # NonStop-UX NCC 3.20 12791 lt_prog_compiler_pic_CXX='-KPIC' 12792 ;; 12793 *) 12794 ;; 12795 esac 12796 ;; 12797 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12798 case $cc_basename in 12799 CC*) 12800 lt_prog_compiler_wl_CXX='-Wl,' 12801 lt_prog_compiler_pic_CXX='-KPIC' 12802 lt_prog_compiler_static_CXX='-Bstatic' 12803 ;; 12804 esac 12805 ;; 12806 vxworks*) 12807 ;; 12808 *) 12809 lt_prog_compiler_can_build_shared_CXX=no 12810 ;; 12811 esac 12812 fi 12813 12814{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12815echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } 12816 12817# 12818# Check to make sure the PIC flag actually works. 12819# 12820if test -n "$lt_prog_compiler_pic_CXX"; then 12821 12822{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12823echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } 12824if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 12825 echo $ECHO_N "(cached) $ECHO_C" >&6 12826else 12827 lt_prog_compiler_pic_works_CXX=no 12828 ac_outfile=conftest.$ac_objext 12829 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12830 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12831 # Insert the option either (1) after the last *FLAGS variable, or 12832 # (2) before a word containing "conftest.", or (3) at the end. 12833 # Note that $ac_compile itself does not contain backslashes and begins 12834 # with a dollar sign (not a hyphen), so the echo should work correctly. 12835 # The option is referenced via a variable to avoid confusing sed. 12836 lt_compile=`echo "$ac_compile" | $SED \ 12837 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12838 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12839 -e 's:$: $lt_compiler_flag:'` 12840 (eval echo "\"\$as_me:12840: $lt_compile\"" >&5) 12841 (eval "$lt_compile" 2>conftest.err) 12842 ac_status=$? 12843 cat conftest.err >&5 12844 echo "$as_me:12844: \$? = $ac_status" >&5 12845 if (exit $ac_status) && test -s "$ac_outfile"; then 12846 # The compiler can only warn and ignore the option if not recognized 12847 # So say no if there are warnings other than the usual output. 12848 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12849 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12850 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12851 lt_prog_compiler_pic_works_CXX=yes 12852 fi 12853 fi 12854 $rm conftest* 12855 12856fi 12857{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 12858echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } 12859 12860if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 12861 case $lt_prog_compiler_pic_CXX in 12862 "" | " "*) ;; 12863 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12864 esac 12865else 12866 lt_prog_compiler_pic_CXX= 12867 lt_prog_compiler_can_build_shared_CXX=no 12868fi 12869 12870fi 12871case $host_os in 12872 # For platforms which do not support PIC, -DPIC is meaningless: 12873 *djgpp*) 12874 lt_prog_compiler_pic_CXX= 12875 ;; 12876 *) 12877 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12878 ;; 12879esac 12880 12881# 12882# Check to make sure the static flag actually works. 12883# 12884wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 12885{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12886echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 12887if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 12888 echo $ECHO_N "(cached) $ECHO_C" >&6 12889else 12890 lt_prog_compiler_static_works_CXX=no 12891 save_LDFLAGS="$LDFLAGS" 12892 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12893 printf "$lt_simple_link_test_code" > conftest.$ac_ext 12894 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12895 # The linker can only warn and ignore the option if not recognized 12896 # So say no if there are warnings 12897 if test -s conftest.err; then 12898 # Append any errors to the config.log. 12899 cat conftest.err 1>&5 12900 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 12901 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12902 if diff conftest.exp conftest.er2 >/dev/null; then 12903 lt_prog_compiler_static_works_CXX=yes 12904 fi 12905 else 12906 lt_prog_compiler_static_works_CXX=yes 12907 fi 12908 fi 12909 $rm conftest* 12910 LDFLAGS="$save_LDFLAGS" 12911 12912fi 12913{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 12914echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } 12915 12916if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 12917 : 12918else 12919 lt_prog_compiler_static_CXX= 12920fi 12921 12922 12923{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12924echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 12925if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 12926 echo $ECHO_N "(cached) $ECHO_C" >&6 12927else 12928 lt_cv_prog_compiler_c_o_CXX=no 12929 $rm -r conftest 2>/dev/null 12930 mkdir conftest 12931 cd conftest 12932 mkdir out 12933 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12934 12935 lt_compiler_flag="-o out/conftest2.$ac_objext" 12936 # Insert the option either (1) after the last *FLAGS variable, or 12937 # (2) before a word containing "conftest.", or (3) at the end. 12938 # Note that $ac_compile itself does not contain backslashes and begins 12939 # with a dollar sign (not a hyphen), so the echo should work correctly. 12940 lt_compile=`echo "$ac_compile" | $SED \ 12941 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12942 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12943 -e 's:$: $lt_compiler_flag:'` 12944 (eval echo "\"\$as_me:12944: $lt_compile\"" >&5) 12945 (eval "$lt_compile" 2>out/conftest.err) 12946 ac_status=$? 12947 cat out/conftest.err >&5 12948 echo "$as_me:12948: \$? = $ac_status" >&5 12949 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12950 then 12951 # The compiler can only warn and ignore the option if not recognized 12952 # So say no if there are warnings 12953 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 12954 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12955 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12956 lt_cv_prog_compiler_c_o_CXX=yes 12957 fi 12958 fi 12959 chmod u+w . 2>&5 12960 $rm conftest* 12961 # SGI C++ compiler will create directory out/ii_files/ for 12962 # template instantiation 12963 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 12964 $rm out/* && rmdir out 12965 cd .. 12966 rmdir conftest 12967 $rm conftest* 12968 12969fi 12970{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 12971echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } 12972 12973 12974hard_links="nottested" 12975if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 12976 # do not overwrite the value of need_locks provided by the user 12977 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 12978echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 12979 hard_links=yes 12980 $rm conftest* 12981 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12982 touch conftest.a 12983 ln conftest.a conftest.b 2>&5 || hard_links=no 12984 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12985 { echo "$as_me:$LINENO: result: $hard_links" >&5 12986echo "${ECHO_T}$hard_links" >&6; } 12987 if test "$hard_links" = no; then 12988 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12989echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12990 need_locks=warn 12991 fi 12992else 12993 need_locks=no 12994fi 12995 12996{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12997echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 12998 12999 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13000 case $host_os in 13001 aix4* | aix5*) 13002 # If we're using GNU nm, then we don't want the "-C" option. 13003 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13004 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 13005 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' 13006 else 13007 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' 13008 fi 13009 ;; 13010 pw32*) 13011 export_symbols_cmds_CXX="$ltdll_cmds" 13012 ;; 13013 cygwin* | mingw*) 13014 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' 13015 ;; 13016 linux* | k*bsd*-gnu) 13017 link_all_deplibs_CXX=no 13018 ;; 13019 *) 13020 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13021 ;; 13022 esac 13023 13024{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 13025echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 13026test "$ld_shlibs_CXX" = no && can_build_shared=no 13027 13028# 13029# Do we need to explicitly link libc? 13030# 13031case "x$archive_cmds_need_lc_CXX" in 13032x|xyes) 13033 # Assume -lc should be added 13034 archive_cmds_need_lc_CXX=yes 13035 13036 if test "$enable_shared" = yes && test "$GCC" = yes; then 13037 case $archive_cmds_CXX in 13038 *'~'*) 13039 # FIXME: we may have to deal with multi-command sequences. 13040 ;; 13041 '$CC '*) 13042 # Test whether the compiler implicitly links with -lc since on some 13043 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13044 # to ld, don't add -lc before -lgcc. 13045 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 13046echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 13047 $rm conftest* 13048 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13049 13050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13051 (eval $ac_compile) 2>&5 13052 ac_status=$? 13053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13054 (exit $ac_status); } 2>conftest.err; then 13055 soname=conftest 13056 lib=conftest 13057 libobjs=conftest.$ac_objext 13058 deplibs= 13059 wl=$lt_prog_compiler_wl_CXX 13060 pic_flag=$lt_prog_compiler_pic_CXX 13061 compiler_flags=-v 13062 linker_flags=-v 13063 verstring= 13064 output_objdir=. 13065 libname=conftest 13066 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 13067 allow_undefined_flag_CXX= 13068 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 13069 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 13070 ac_status=$? 13071 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13072 (exit $ac_status); } 13073 then 13074 archive_cmds_need_lc_CXX=no 13075 else 13076 archive_cmds_need_lc_CXX=yes 13077 fi 13078 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 13079 else 13080 cat conftest.err 1>&5 13081 fi 13082 $rm conftest* 13083 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 13084echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } 13085 ;; 13086 esac 13087 fi 13088 ;; 13089esac 13090 13091{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 13092echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 13093library_names_spec= 13094libname_spec='lib$name' 13095soname_spec= 13096shrext_cmds=".so" 13097postinstall_cmds= 13098postuninstall_cmds= 13099finish_cmds= 13100finish_eval= 13101shlibpath_var= 13102shlibpath_overrides_runpath=unknown 13103version_type=none 13104dynamic_linker="$host_os ld.so" 13105sys_lib_dlsearch_path_spec="/lib /usr/lib" 13106if test "$GCC" = yes; then 13107 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13108 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 13109 # if the path contains ";" then we assume it to be the separator 13110 # otherwise default to the standard path separator (i.e. ":") - it is 13111 # assumed that no part of a normal pathname contains ";" but that should 13112 # okay in the real world where ";" in dirpaths is itself problematic. 13113 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13114 else 13115 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13116 fi 13117else 13118 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13119fi 13120need_lib_prefix=unknown 13121hardcode_into_libs=no 13122 13123# when you set need_version to no, make sure it does not cause -set_version 13124# flags to be left without arguments 13125need_version=unknown 13126 13127case $host_os in 13128aix3*) 13129 version_type=linux 13130 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13131 shlibpath_var=LIBPATH 13132 13133 # AIX 3 has no versioning support, so we append a major version to the name. 13134 soname_spec='${libname}${release}${shared_ext}$major' 13135 ;; 13136 13137aix4* | aix5*) 13138 version_type=linux 13139 need_lib_prefix=no 13140 need_version=no 13141 hardcode_into_libs=yes 13142 if test "$host_cpu" = ia64; then 13143 # AIX 5 supports IA64 13144 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13145 shlibpath_var=LD_LIBRARY_PATH 13146 else 13147 # With GCC up to 2.95.x, collect2 would create an import file 13148 # for dependence libraries. The import file would start with 13149 # the line `#! .'. This would cause the generated library to 13150 # depend on `.', always an invalid library. This was fixed in 13151 # development snapshots of GCC prior to 3.0. 13152 case $host_os in 13153 aix4 | aix4.[01] | aix4.[01].*) 13154 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13155 echo ' yes ' 13156 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 13157 : 13158 else 13159 can_build_shared=no 13160 fi 13161 ;; 13162 esac 13163 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13164 # soname into executable. Probably we can add versioning support to 13165 # collect2, so additional links can be useful in future. 13166 if test "$aix_use_runtimelinking" = yes; then 13167 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13168 # instead of lib<name>.a to let people know that these are not 13169 # typical AIX shared libraries. 13170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13171 else 13172 # We preserve .a as extension for shared libraries through AIX4.2 13173 # and later when we are not doing run time linking. 13174 library_names_spec='${libname}${release}.a $libname.a' 13175 soname_spec='${libname}${release}${shared_ext}$major' 13176 fi 13177 shlibpath_var=LIBPATH 13178 fi 13179 ;; 13180 13181amigaos*) 13182 library_names_spec='$libname.ixlibrary $libname.a' 13183 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13184 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' 13185 ;; 13186 13187beos*) 13188 library_names_spec='${libname}${shared_ext}' 13189 dynamic_linker="$host_os ld.so" 13190 shlibpath_var=LIBRARY_PATH 13191 ;; 13192 13193bsdi[45]*) 13194 version_type=linux 13195 need_version=no 13196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13197 soname_spec='${libname}${release}${shared_ext}$major' 13198 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13199 shlibpath_var=LD_LIBRARY_PATH 13200 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13201 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13202 # the default ld.so.conf also contains /usr/contrib/lib and 13203 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13204 # libtool to hard-code these into programs 13205 ;; 13206 13207cygwin* | mingw* | pw32*) 13208 version_type=windows 13209 shrext_cmds=".dll" 13210 need_version=no 13211 need_lib_prefix=no 13212 13213 case $GCC,$host_os in 13214 yes,cygwin* | yes,mingw* | yes,pw32*) 13215 library_names_spec='$libname.dll.a' 13216 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13217 postinstall_cmds='base_file=`basename \${file}`~ 13218 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 13219 dldir=$destdir/`dirname \$dlpath`~ 13220 test -d \$dldir || mkdir -p \$dldir~ 13221 $install_prog $dir/$dlname \$dldir/$dlname~ 13222 chmod a+x \$dldir/$dlname' 13223 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13224 dlpath=$dir/\$dldll~ 13225 $rm \$dlpath' 13226 shlibpath_overrides_runpath=yes 13227 13228 case $host_os in 13229 cygwin*) 13230 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13231 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13232 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 13233 ;; 13234 mingw*) 13235 # MinGW DLLs use traditional 'lib' prefix 13236 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13237 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13238 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 13239 # It is most probably a Windows format PATH printed by 13240 # mingw gcc, but we are running on Cygwin. Gcc prints its search 13241 # path with ; separators, and with drive letters. We can handle the 13242 # drive letters (cygwin fileutils understands them), so leave them, 13243 # especially as we might pass files found there to a mingw objdump, 13244 # which wouldn't understand a cygwinified path. Ahh. 13245 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13246 else 13247 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13248 fi 13249 ;; 13250 pw32*) 13251 # pw32 DLLs use 'pw' prefix rather than 'lib' 13252 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13253 ;; 13254 esac 13255 ;; 13256 13257 *) 13258 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13259 ;; 13260 esac 13261 dynamic_linker='Win32 ld.exe' 13262 # FIXME: first we should search . and the directory the executable is in 13263 shlibpath_var=PATH 13264 ;; 13265 13266darwin* | rhapsody*) 13267 dynamic_linker="$host_os dyld" 13268 version_type=darwin 13269 need_lib_prefix=no 13270 need_version=no 13271 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13272 soname_spec='${libname}${release}${major}$shared_ext' 13273 shlibpath_overrides_runpath=yes 13274 shlibpath_var=DYLD_LIBRARY_PATH 13275 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13276 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 13277 if test "$GCC" = yes; then 13278 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"` 13279 else 13280 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 13281 fi 13282 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13283 ;; 13284 13285dgux*) 13286 version_type=linux 13287 need_lib_prefix=no 13288 need_version=no 13289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13290 soname_spec='${libname}${release}${shared_ext}$major' 13291 shlibpath_var=LD_LIBRARY_PATH 13292 ;; 13293 13294freebsd1*) 13295 dynamic_linker=no 13296 ;; 13297 13298freebsd* | dragonfly*) 13299 # DragonFly does not have aout. When/if they implement a new 13300 # versioning mechanism, adjust this. 13301 if test -x /usr/bin/objformat; then 13302 objformat=`/usr/bin/objformat` 13303 else 13304 case $host_os in 13305 freebsd[123]*) objformat=aout ;; 13306 *) objformat=elf ;; 13307 esac 13308 fi 13309 version_type=freebsd-$objformat 13310 case $version_type in 13311 freebsd-elf*) 13312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13313 need_version=no 13314 need_lib_prefix=no 13315 ;; 13316 freebsd-*) 13317 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13318 need_version=yes 13319 ;; 13320 esac 13321 shlibpath_var=LD_LIBRARY_PATH 13322 case $host_os in 13323 freebsd2*) 13324 shlibpath_overrides_runpath=yes 13325 ;; 13326 freebsd3.[01]* | freebsdelf3.[01]*) 13327 shlibpath_overrides_runpath=yes 13328 hardcode_into_libs=yes 13329 ;; 13330 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13331 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13332 shlibpath_overrides_runpath=no 13333 hardcode_into_libs=yes 13334 ;; 13335 freebsd*) # from 4.6 on 13336 shlibpath_overrides_runpath=yes 13337 hardcode_into_libs=yes 13338 ;; 13339 esac 13340 ;; 13341 13342gnu*) 13343 version_type=linux 13344 need_lib_prefix=no 13345 need_version=no 13346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13347 soname_spec='${libname}${release}${shared_ext}$major' 13348 shlibpath_var=LD_LIBRARY_PATH 13349 hardcode_into_libs=yes 13350 ;; 13351 13352hpux9* | hpux10* | hpux11*) 13353 # Give a soname corresponding to the major version so that dld.sl refuses to 13354 # link against other versions. 13355 version_type=sunos 13356 need_lib_prefix=no 13357 need_version=no 13358 case $host_cpu in 13359 ia64*) 13360 shrext_cmds='.so' 13361 hardcode_into_libs=yes 13362 dynamic_linker="$host_os dld.so" 13363 shlibpath_var=LD_LIBRARY_PATH 13364 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13366 soname_spec='${libname}${release}${shared_ext}$major' 13367 if test "X$HPUX_IA64_MODE" = X32; then 13368 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13369 else 13370 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13371 fi 13372 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13373 ;; 13374 hppa*64*) 13375 shrext_cmds='.sl' 13376 hardcode_into_libs=yes 13377 dynamic_linker="$host_os dld.sl" 13378 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13379 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13381 soname_spec='${libname}${release}${shared_ext}$major' 13382 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13383 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13384 ;; 13385 *) 13386 shrext_cmds='.sl' 13387 dynamic_linker="$host_os dld.sl" 13388 shlibpath_var=SHLIB_PATH 13389 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13391 soname_spec='${libname}${release}${shared_ext}$major' 13392 ;; 13393 esac 13394 # HP-UX runs *really* slowly unless shared libraries are mode 555. 13395 postinstall_cmds='chmod 555 $lib' 13396 ;; 13397 13398interix3*) 13399 version_type=linux 13400 need_lib_prefix=no 13401 need_version=no 13402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13403 soname_spec='${libname}${release}${shared_ext}$major' 13404 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13405 shlibpath_var=LD_LIBRARY_PATH 13406 shlibpath_overrides_runpath=no 13407 hardcode_into_libs=yes 13408 ;; 13409 13410irix5* | irix6* | nonstopux*) 13411 case $host_os in 13412 nonstopux*) version_type=nonstopux ;; 13413 *) 13414 if test "$lt_cv_prog_gnu_ld" = yes; then 13415 version_type=linux 13416 else 13417 version_type=irix 13418 fi ;; 13419 esac 13420 need_lib_prefix=no 13421 need_version=no 13422 soname_spec='${libname}${release}${shared_ext}$major' 13423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13424 case $host_os in 13425 irix5* | nonstopux*) 13426 libsuff= shlibsuff= 13427 ;; 13428 *) 13429 case $LD in # libtool.m4 will add one of these switches to LD 13430 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13431 libsuff= shlibsuff= libmagic=32-bit;; 13432 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13433 libsuff=32 shlibsuff=N32 libmagic=N32;; 13434 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13435 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13436 *) libsuff= shlibsuff= libmagic=never-match;; 13437 esac 13438 ;; 13439 esac 13440 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13441 shlibpath_overrides_runpath=no 13442 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13443 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13444 hardcode_into_libs=yes 13445 ;; 13446 13447# No shared lib support for Linux oldld, aout, or coff. 13448linux*oldld* | linux*aout* | linux*coff*) 13449 dynamic_linker=no 13450 ;; 13451 13452# This must be Linux ELF. 13453linux* | k*bsd*-gnu) 13454 version_type=linux 13455 need_lib_prefix=no 13456 need_version=no 13457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13458 soname_spec='${libname}${release}${shared_ext}$major' 13459 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13460 shlibpath_var=LD_LIBRARY_PATH 13461 shlibpath_overrides_runpath=no 13462 # This implies no fast_install, which is unacceptable. 13463 # Some rework will be needed to allow for fast_install 13464 # before this can be enabled. 13465 hardcode_into_libs=yes 13466 13467 # Append ld.so.conf contents to the search path 13468 if test -f /etc/ld.so.conf; then 13469 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' ' '` 13470 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 13471 fi 13472 13473 # We used to test for /lib/ld.so.1 and disable shared libraries on 13474 # powerpc, because MkLinux only supported shared libraries with the 13475 # GNU dynamic linker. Since this was broken with cross compilers, 13476 # most powerpc-linux boxes support dynamic linking these days and 13477 # people can always --disable-shared, the test was removed, and we 13478 # assume the GNU/Linux dynamic linker is in use. 13479 dynamic_linker='GNU/Linux ld.so' 13480 ;; 13481 13482netbsdelf*-gnu) 13483 version_type=linux 13484 need_lib_prefix=no 13485 need_version=no 13486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13487 soname_spec='${libname}${release}${shared_ext}$major' 13488 shlibpath_var=LD_LIBRARY_PATH 13489 shlibpath_overrides_runpath=no 13490 hardcode_into_libs=yes 13491 dynamic_linker='NetBSD ld.elf_so' 13492 ;; 13493 13494netbsd*) 13495 version_type=sunos 13496 need_lib_prefix=no 13497 need_version=no 13498 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13500 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13501 dynamic_linker='NetBSD (a.out) ld.so' 13502 else 13503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13504 soname_spec='${libname}${release}${shared_ext}$major' 13505 dynamic_linker='NetBSD ld.elf_so' 13506 fi 13507 shlibpath_var=LD_LIBRARY_PATH 13508 shlibpath_overrides_runpath=yes 13509 hardcode_into_libs=yes 13510 ;; 13511 13512newsos6) 13513 version_type=linux 13514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13515 shlibpath_var=LD_LIBRARY_PATH 13516 shlibpath_overrides_runpath=yes 13517 ;; 13518 13519nto-qnx*) 13520 version_type=linux 13521 need_lib_prefix=no 13522 need_version=no 13523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13524 soname_spec='${libname}${release}${shared_ext}$major' 13525 shlibpath_var=LD_LIBRARY_PATH 13526 shlibpath_overrides_runpath=yes 13527 ;; 13528 13529openbsd*) 13530 version_type=sunos 13531 sys_lib_dlsearch_path_spec="/usr/lib" 13532 need_lib_prefix=no 13533 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 13534 case $host_os in 13535 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 13536 *) need_version=no ;; 13537 esac 13538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13539 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13540 shlibpath_var=LD_LIBRARY_PATH 13541 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13542 case $host_os in 13543 openbsd2.[89] | openbsd2.[89].*) 13544 shlibpath_overrides_runpath=no 13545 ;; 13546 *) 13547 shlibpath_overrides_runpath=yes 13548 ;; 13549 esac 13550 else 13551 shlibpath_overrides_runpath=yes 13552 fi 13553 ;; 13554 13555os2*) 13556 libname_spec='$name' 13557 shrext_cmds=".dll" 13558 need_lib_prefix=no 13559 library_names_spec='$libname${shared_ext} $libname.a' 13560 dynamic_linker='OS/2 ld.exe' 13561 shlibpath_var=LIBPATH 13562 ;; 13563 13564osf3* | osf4* | osf5*) 13565 version_type=osf 13566 need_lib_prefix=no 13567 need_version=no 13568 soname_spec='${libname}${release}${shared_ext}$major' 13569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13570 shlibpath_var=LD_LIBRARY_PATH 13571 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13572 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13573 ;; 13574 13575solaris*) 13576 version_type=linux 13577 need_lib_prefix=no 13578 need_version=no 13579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13580 soname_spec='${libname}${release}${shared_ext}$major' 13581 shlibpath_var=LD_LIBRARY_PATH 13582 shlibpath_overrides_runpath=yes 13583 hardcode_into_libs=yes 13584 # ldd complains unless libraries are executable 13585 postinstall_cmds='chmod +x $lib' 13586 ;; 13587 13588sunos4*) 13589 version_type=sunos 13590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13591 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13592 shlibpath_var=LD_LIBRARY_PATH 13593 shlibpath_overrides_runpath=yes 13594 if test "$with_gnu_ld" = yes; then 13595 need_lib_prefix=no 13596 fi 13597 need_version=yes 13598 ;; 13599 13600sysv4 | sysv4.3*) 13601 version_type=linux 13602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13603 soname_spec='${libname}${release}${shared_ext}$major' 13604 shlibpath_var=LD_LIBRARY_PATH 13605 case $host_vendor in 13606 sni) 13607 shlibpath_overrides_runpath=no 13608 need_lib_prefix=no 13609 export_dynamic_flag_spec='${wl}-Blargedynsym' 13610 runpath_var=LD_RUN_PATH 13611 ;; 13612 siemens) 13613 need_lib_prefix=no 13614 ;; 13615 motorola) 13616 need_lib_prefix=no 13617 need_version=no 13618 shlibpath_overrides_runpath=no 13619 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13620 ;; 13621 esac 13622 ;; 13623 13624sysv4*MP*) 13625 if test -d /usr/nec ;then 13626 version_type=linux 13627 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13628 soname_spec='$libname${shared_ext}.$major' 13629 shlibpath_var=LD_LIBRARY_PATH 13630 fi 13631 ;; 13632 13633sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13634 version_type=freebsd-elf 13635 need_lib_prefix=no 13636 need_version=no 13637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13638 soname_spec='${libname}${release}${shared_ext}$major' 13639 shlibpath_var=LD_LIBRARY_PATH 13640 hardcode_into_libs=yes 13641 if test "$with_gnu_ld" = yes; then 13642 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13643 shlibpath_overrides_runpath=no 13644 else 13645 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13646 shlibpath_overrides_runpath=yes 13647 case $host_os in 13648 sco3.2v5*) 13649 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13650 ;; 13651 esac 13652 fi 13653 sys_lib_dlsearch_path_spec='/usr/lib' 13654 ;; 13655 13656uts4*) 13657 version_type=linux 13658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13659 soname_spec='${libname}${release}${shared_ext}$major' 13660 shlibpath_var=LD_LIBRARY_PATH 13661 ;; 13662 13663*) 13664 dynamic_linker=no 13665 ;; 13666esac 13667{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13668echo "${ECHO_T}$dynamic_linker" >&6; } 13669test "$dynamic_linker" = no && can_build_shared=no 13670 13671variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13672if test "$GCC" = yes; then 13673 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13674fi 13675 13676{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13677echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 13678hardcode_action_CXX= 13679if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13680 test -n "$runpath_var_CXX" || \ 13681 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13682 13683 # We can hardcode non-existant directories. 13684 if test "$hardcode_direct_CXX" != no && 13685 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13686 # have to relink, otherwise we might link with an installed library 13687 # when we should be linking with a yet-to-be-installed one 13688 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13689 test "$hardcode_minus_L_CXX" != no; then 13690 # Linking always hardcodes the temporary library directory. 13691 hardcode_action_CXX=relink 13692 else 13693 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13694 hardcode_action_CXX=immediate 13695 fi 13696else 13697 # We cannot hardcode anything, or else we can only hardcode existing 13698 # directories. 13699 hardcode_action_CXX=unsupported 13700fi 13701{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13702echo "${ECHO_T}$hardcode_action_CXX" >&6; } 13703 13704if test "$hardcode_action_CXX" = relink; then 13705 # Fast installation is not supported 13706 enable_fast_install=no 13707elif test "$shlibpath_overrides_runpath" = yes || 13708 test "$enable_shared" = no; then 13709 # Fast installation is not necessary 13710 enable_fast_install=needless 13711fi 13712 13713 13714# The else clause should only fire when bootstrapping the 13715# libtool distribution, otherwise you forgot to ship ltmain.sh 13716# with your package, and you will get complaints that there are 13717# no rules to generate ltmain.sh. 13718if test -f "$ltmain"; then 13719 # See if we are running on zsh, and set the options which allow our commands through 13720 # without removal of \ escapes. 13721 if test -n "${ZSH_VERSION+set}" ; then 13722 setopt NO_GLOB_SUBST 13723 fi 13724 # Now quote all the things that may contain metacharacters while being 13725 # careful not to overquote the AC_SUBSTed values. We take copies of the 13726 # variables and quote the copies for generation of the libtool script. 13727 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13728 SED SHELL STRIP \ 13729 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13730 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13731 deplibs_check_method reload_flag reload_cmds need_locks \ 13732 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13733 lt_cv_sys_global_symbol_to_c_name_address \ 13734 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13735 old_postinstall_cmds old_postuninstall_cmds \ 13736 compiler_CXX \ 13737 CC_CXX \ 13738 LD_CXX \ 13739 lt_prog_compiler_wl_CXX \ 13740 lt_prog_compiler_pic_CXX \ 13741 lt_prog_compiler_static_CXX \ 13742 lt_prog_compiler_no_builtin_flag_CXX \ 13743 export_dynamic_flag_spec_CXX \ 13744 thread_safe_flag_spec_CXX \ 13745 whole_archive_flag_spec_CXX \ 13746 enable_shared_with_static_runtimes_CXX \ 13747 old_archive_cmds_CXX \ 13748 old_archive_from_new_cmds_CXX \ 13749 predep_objects_CXX \ 13750 postdep_objects_CXX \ 13751 predeps_CXX \ 13752 postdeps_CXX \ 13753 compiler_lib_search_path_CXX \ 13754 archive_cmds_CXX \ 13755 archive_expsym_cmds_CXX \ 13756 postinstall_cmds_CXX \ 13757 postuninstall_cmds_CXX \ 13758 old_archive_from_expsyms_cmds_CXX \ 13759 allow_undefined_flag_CXX \ 13760 no_undefined_flag_CXX \ 13761 export_symbols_cmds_CXX \ 13762 hardcode_libdir_flag_spec_CXX \ 13763 hardcode_libdir_flag_spec_ld_CXX \ 13764 hardcode_libdir_separator_CXX \ 13765 hardcode_automatic_CXX \ 13766 module_cmds_CXX \ 13767 module_expsym_cmds_CXX \ 13768 lt_cv_prog_compiler_c_o_CXX \ 13769 exclude_expsyms_CXX \ 13770 include_expsyms_CXX; do 13771 13772 case $var in 13773 old_archive_cmds_CXX | \ 13774 old_archive_from_new_cmds_CXX | \ 13775 archive_cmds_CXX | \ 13776 archive_expsym_cmds_CXX | \ 13777 module_cmds_CXX | \ 13778 module_expsym_cmds_CXX | \ 13779 old_archive_from_expsyms_cmds_CXX | \ 13780 export_symbols_cmds_CXX | \ 13781 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13782 postinstall_cmds | postuninstall_cmds | \ 13783 old_postinstall_cmds | old_postuninstall_cmds | \ 13784 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13785 # Double-quote double-evaled strings. 13786 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13787 ;; 13788 *) 13789 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13790 ;; 13791 esac 13792 done 13793 13794 case $lt_echo in 13795 *'\$0 --fallback-echo"') 13796 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13797 ;; 13798 esac 13799 13800cfgfile="$ofile" 13801 13802 cat <<__EOF__ >> "$cfgfile" 13803# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13804 13805# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13806 13807# Shell to use when invoking shell scripts. 13808SHELL=$lt_SHELL 13809 13810# Whether or not to build shared libraries. 13811build_libtool_libs=$enable_shared 13812 13813# Whether or not to build static libraries. 13814build_old_libs=$enable_static 13815 13816# Whether or not to add -lc for building shared libraries. 13817build_libtool_need_lc=$archive_cmds_need_lc_CXX 13818 13819# Whether or not to disallow shared libs when runtime libs are static 13820allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13821 13822# Whether or not to optimize for fast installation. 13823fast_install=$enable_fast_install 13824 13825# The host system. 13826host_alias=$host_alias 13827host=$host 13828host_os=$host_os 13829 13830# The build system. 13831build_alias=$build_alias 13832build=$build 13833build_os=$build_os 13834 13835# An echo program that does not interpret backslashes. 13836echo=$lt_echo 13837 13838# The archiver. 13839AR=$lt_AR 13840AR_FLAGS=$lt_AR_FLAGS 13841 13842# A C compiler. 13843LTCC=$lt_LTCC 13844 13845# LTCC compiler flags. 13846LTCFLAGS=$lt_LTCFLAGS 13847 13848# A language-specific compiler. 13849CC=$lt_compiler_CXX 13850 13851# Is the compiler the GNU C compiler? 13852with_gcc=$GCC_CXX 13853 13854# An ERE matcher. 13855EGREP=$lt_EGREP 13856 13857# The linker used to build libraries. 13858LD=$lt_LD_CXX 13859 13860# Whether we need hard or soft links. 13861LN_S=$lt_LN_S 13862 13863# A BSD-compatible nm program. 13864NM=$lt_NM 13865 13866# A symbol stripping program 13867STRIP=$lt_STRIP 13868 13869# Used to examine libraries when file_magic_cmd begins "file" 13870MAGIC_CMD=$MAGIC_CMD 13871 13872# Used on cygwin: DLL creation program. 13873DLLTOOL="$DLLTOOL" 13874 13875# Used on cygwin: object dumper. 13876OBJDUMP="$OBJDUMP" 13877 13878# Used on cygwin: assembler. 13879AS="$AS" 13880 13881# The name of the directory that contains temporary libtool files. 13882objdir=$objdir 13883 13884# How to create reloadable object files. 13885reload_flag=$lt_reload_flag 13886reload_cmds=$lt_reload_cmds 13887 13888# How to pass a linker flag through the compiler. 13889wl=$lt_lt_prog_compiler_wl_CXX 13890 13891# Object file suffix (normally "o"). 13892objext="$ac_objext" 13893 13894# Old archive suffix (normally "a"). 13895libext="$libext" 13896 13897# Shared library suffix (normally ".so"). 13898shrext_cmds='$shrext_cmds' 13899 13900# Executable file suffix (normally ""). 13901exeext="$exeext" 13902 13903# Additional compiler flags for building library objects. 13904pic_flag=$lt_lt_prog_compiler_pic_CXX 13905pic_mode=$pic_mode 13906 13907# What is the maximum length of a command? 13908max_cmd_len=$lt_cv_sys_max_cmd_len 13909 13910# Does compiler simultaneously support -c and -o options? 13911compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13912 13913# Must we lock files when doing compilation? 13914need_locks=$lt_need_locks 13915 13916# Do we need the lib prefix for modules? 13917need_lib_prefix=$need_lib_prefix 13918 13919# Do we need a version for libraries? 13920need_version=$need_version 13921 13922# Whether dlopen is supported. 13923dlopen_support=$enable_dlopen 13924 13925# Whether dlopen of programs is supported. 13926dlopen_self=$enable_dlopen_self 13927 13928# Whether dlopen of statically linked programs is supported. 13929dlopen_self_static=$enable_dlopen_self_static 13930 13931# Compiler flag to prevent dynamic linking. 13932link_static_flag=$lt_lt_prog_compiler_static_CXX 13933 13934# Compiler flag to turn off builtin functions. 13935no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13936 13937# Compiler flag to allow reflexive dlopens. 13938export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13939 13940# Compiler flag to generate shared objects directly from archives. 13941whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13942 13943# Compiler flag to generate thread-safe objects. 13944thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13945 13946# Library versioning type. 13947version_type=$version_type 13948 13949# Format of library name prefix. 13950libname_spec=$lt_libname_spec 13951 13952# List of archive names. First name is the real one, the rest are links. 13953# The last name is the one that the linker finds with -lNAME. 13954library_names_spec=$lt_library_names_spec 13955 13956# The coded name of the library, if different from the real name. 13957soname_spec=$lt_soname_spec 13958 13959# Commands used to build and install an old-style archive. 13960RANLIB=$lt_RANLIB 13961old_archive_cmds=$lt_old_archive_cmds_CXX 13962old_postinstall_cmds=$lt_old_postinstall_cmds 13963old_postuninstall_cmds=$lt_old_postuninstall_cmds 13964 13965# Create an old-style archive from a shared archive. 13966old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13967 13968# Create a temporary old-style archive to link instead of a shared archive. 13969old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13970 13971# Commands used to build and install a shared archive. 13972archive_cmds=$lt_archive_cmds_CXX 13973archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13974postinstall_cmds=$lt_postinstall_cmds 13975postuninstall_cmds=$lt_postuninstall_cmds 13976 13977# Commands used to build a loadable module (assumed same as above if empty) 13978module_cmds=$lt_module_cmds_CXX 13979module_expsym_cmds=$lt_module_expsym_cmds_CXX 13980 13981# Commands to strip libraries. 13982old_striplib=$lt_old_striplib 13983striplib=$lt_striplib 13984 13985# Dependencies to place before the objects being linked to create a 13986# shared library. 13987predep_objects=$lt_predep_objects_CXX 13988 13989# Dependencies to place after the objects being linked to create a 13990# shared library. 13991postdep_objects=$lt_postdep_objects_CXX 13992 13993# Dependencies to place before the objects being linked to create a 13994# shared library. 13995predeps=$lt_predeps_CXX 13996 13997# Dependencies to place after the objects being linked to create a 13998# shared library. 13999postdeps=$lt_postdeps_CXX 14000 14001# The library search path used internally by the compiler when linking 14002# a shared library. 14003compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 14004 14005# Method to check whether dependent libraries are shared objects. 14006deplibs_check_method=$lt_deplibs_check_method 14007 14008# Command to use when deplibs_check_method == file_magic. 14009file_magic_cmd=$lt_file_magic_cmd 14010 14011# Flag that allows shared libraries with undefined symbols to be built. 14012allow_undefined_flag=$lt_allow_undefined_flag_CXX 14013 14014# Flag that forces no undefined symbols. 14015no_undefined_flag=$lt_no_undefined_flag_CXX 14016 14017# Commands used to finish a libtool library installation in a directory. 14018finish_cmds=$lt_finish_cmds 14019 14020# Same as above, but a single script fragment to be evaled but not shown. 14021finish_eval=$lt_finish_eval 14022 14023# Take the output of nm and produce a listing of raw symbols and C names. 14024global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14025 14026# Transform the output of nm in a proper C declaration 14027global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14028 14029# Transform the output of nm in a C name address pair 14030global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14031 14032# This is the shared library runtime path variable. 14033runpath_var=$runpath_var 14034 14035# This is the shared library path variable. 14036shlibpath_var=$shlibpath_var 14037 14038# Is shlibpath searched before the hard-coded library search path? 14039shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14040 14041# How to hardcode a shared library path into an executable. 14042hardcode_action=$hardcode_action_CXX 14043 14044# Whether we should hardcode library paths into libraries. 14045hardcode_into_libs=$hardcode_into_libs 14046 14047# Flag to hardcode \$libdir into a binary during linking. 14048# This must work even if \$libdir does not exist. 14049hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 14050 14051# If ld is used when linking, flag to hardcode \$libdir into 14052# a binary during linking. This must work even if \$libdir does 14053# not exist. 14054hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 14055 14056# Whether we need a single -rpath flag with a separated argument. 14057hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 14058 14059# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 14060# resulting binary. 14061hardcode_direct=$hardcode_direct_CXX 14062 14063# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 14064# resulting binary. 14065hardcode_minus_L=$hardcode_minus_L_CXX 14066 14067# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 14068# the resulting binary. 14069hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 14070 14071# Set to yes if building a shared library automatically hardcodes DIR into the library 14072# and all subsequent libraries and executables linked against it. 14073hardcode_automatic=$hardcode_automatic_CXX 14074 14075# Variables whose values should be saved in libtool wrapper scripts and 14076# restored at relink time. 14077variables_saved_for_relink="$variables_saved_for_relink" 14078 14079# Whether libtool must link a program against all its dependency libraries. 14080link_all_deplibs=$link_all_deplibs_CXX 14081 14082# Compile-time system search path for libraries 14083sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14084 14085# Run-time system search path for libraries 14086sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14087 14088# Fix the shell variable \$srcfile for the compiler. 14089fix_srcfile_path="$fix_srcfile_path_CXX" 14090 14091# Set to yes if exported symbols are required. 14092always_export_symbols=$always_export_symbols_CXX 14093 14094# The commands to list exported symbols. 14095export_symbols_cmds=$lt_export_symbols_cmds_CXX 14096 14097# The commands to extract the exported symbol list from a shared archive. 14098extract_expsyms_cmds=$lt_extract_expsyms_cmds 14099 14100# Symbols that should not be listed in the preloaded symbols. 14101exclude_expsyms=$lt_exclude_expsyms_CXX 14102 14103# Symbols that must always be exported. 14104include_expsyms=$lt_include_expsyms_CXX 14105 14106# ### END LIBTOOL TAG CONFIG: $tagname 14107 14108__EOF__ 14109 14110 14111else 14112 # If there is no Makefile yet, we rely on a make rule to execute 14113 # `config.status --recheck' to rerun these tests and create the 14114 # libtool script then. 14115 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 14116 if test -f "$ltmain_in"; then 14117 test -f Makefile && make "$ltmain" 14118 fi 14119fi 14120 14121 14122ac_ext=c 14123ac_cpp='$CPP $CPPFLAGS' 14124ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14125ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14126ac_compiler_gnu=$ac_cv_c_compiler_gnu 14127 14128CC=$lt_save_CC 14129LDCXX=$LD 14130LD=$lt_save_LD 14131GCC=$lt_save_GCC 14132with_gnu_ldcxx=$with_gnu_ld 14133with_gnu_ld=$lt_save_with_gnu_ld 14134lt_cv_path_LDCXX=$lt_cv_path_LD 14135lt_cv_path_LD=$lt_save_path_LD 14136lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 14137lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 14138 14139 else 14140 tagname="" 14141 fi 14142 ;; 14143 14144 F77) 14145 if test -n "$F77" && test "X$F77" != "Xno"; then 14146 14147ac_ext=f 14148ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 14149ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14150ac_compiler_gnu=$ac_cv_f77_compiler_gnu 14151 14152 14153archive_cmds_need_lc_F77=no 14154allow_undefined_flag_F77= 14155always_export_symbols_F77=no 14156archive_expsym_cmds_F77= 14157export_dynamic_flag_spec_F77= 14158hardcode_direct_F77=no 14159hardcode_libdir_flag_spec_F77= 14160hardcode_libdir_flag_spec_ld_F77= 14161hardcode_libdir_separator_F77= 14162hardcode_minus_L_F77=no 14163hardcode_automatic_F77=no 14164module_cmds_F77= 14165module_expsym_cmds_F77= 14166link_all_deplibs_F77=unknown 14167old_archive_cmds_F77=$old_archive_cmds 14168no_undefined_flag_F77= 14169whole_archive_flag_spec_F77= 14170enable_shared_with_static_runtimes_F77=no 14171 14172# Source file extension for f77 test sources. 14173ac_ext=f 14174 14175# Object file extension for compiled f77 test sources. 14176objext=o 14177objext_F77=$objext 14178 14179# Code to be used in simple compile tests 14180lt_simple_compile_test_code=" subroutine t\n return\n end\n" 14181 14182# Code to be used in simple link tests 14183lt_simple_link_test_code=" program t\n end\n" 14184 14185# ltmain only uses $CC for tagged configurations so make sure $CC is set. 14186 14187# If no C compiler was specified, use CC. 14188LTCC=${LTCC-"$CC"} 14189 14190# If no C compiler flags were specified, use CFLAGS. 14191LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14192 14193# Allow CC to be a program name with arguments. 14194compiler=$CC 14195 14196 14197# save warnings/boilerplate of simple test code 14198ac_outfile=conftest.$ac_objext 14199printf "$lt_simple_compile_test_code" >conftest.$ac_ext 14200eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14201_lt_compiler_boilerplate=`cat conftest.err` 14202$rm conftest* 14203 14204ac_outfile=conftest.$ac_objext 14205printf "$lt_simple_link_test_code" >conftest.$ac_ext 14206eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14207_lt_linker_boilerplate=`cat conftest.err` 14208$rm conftest* 14209 14210 14211# Allow CC to be a program name with arguments. 14212lt_save_CC="$CC" 14213CC=${F77-"f77"} 14214compiler=$CC 14215compiler_F77=$CC 14216for cc_temp in $compiler""; do 14217 case $cc_temp in 14218 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14219 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14220 \-*) ;; 14221 *) break;; 14222 esac 14223done 14224cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14225 14226 14227{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 14228echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 14229{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 14230echo "${ECHO_T}$can_build_shared" >&6; } 14231 14232{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 14233echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 14234test "$can_build_shared" = "no" && enable_shared=no 14235 14236# On AIX, shared libraries and static libraries use the same namespace, and 14237# are all built from PIC. 14238case $host_os in 14239aix3*) 14240 test "$enable_shared" = yes && enable_static=no 14241 if test -n "$RANLIB"; then 14242 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14243 postinstall_cmds='$RANLIB $lib' 14244 fi 14245 ;; 14246aix4* | aix5*) 14247 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 14248 test "$enable_shared" = yes && enable_static=no 14249 fi 14250 ;; 14251esac 14252{ echo "$as_me:$LINENO: result: $enable_shared" >&5 14253echo "${ECHO_T}$enable_shared" >&6; } 14254 14255{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 14256echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 14257# Make sure either enable_shared or enable_static is yes. 14258test "$enable_shared" = yes || enable_static=yes 14259{ echo "$as_me:$LINENO: result: $enable_static" >&5 14260echo "${ECHO_T}$enable_static" >&6; } 14261 14262GCC_F77="$G77" 14263LD_F77="$LD" 14264 14265lt_prog_compiler_wl_F77= 14266lt_prog_compiler_pic_F77= 14267lt_prog_compiler_static_F77= 14268 14269{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14270echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 14271 14272 if test "$GCC" = yes; then 14273 lt_prog_compiler_wl_F77='-Wl,' 14274 lt_prog_compiler_static_F77='-static' 14275 14276 case $host_os in 14277 aix*) 14278 # All AIX code is PIC. 14279 if test "$host_cpu" = ia64; then 14280 # AIX 5 now supports IA64 processor 14281 lt_prog_compiler_static_F77='-Bstatic' 14282 fi 14283 ;; 14284 14285 amigaos*) 14286 # FIXME: we need at least 68020 code to build shared libraries, but 14287 # adding the `-m68020' flag to GCC prevents building anything better, 14288 # like `-m68040'. 14289 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 14290 ;; 14291 14292 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14293 # PIC is the default for these OSes. 14294 ;; 14295 14296 mingw* | pw32* | os2*) 14297 # This hack is so that the source file can tell whether it is being 14298 # built for inclusion in a dll (and should export symbols for example). 14299 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14300 ;; 14301 14302 darwin* | rhapsody*) 14303 # PIC is the default on this platform 14304 # Common symbols not allowed in MH_DYLIB files 14305 lt_prog_compiler_pic_F77='-fno-common' 14306 ;; 14307 14308 interix3*) 14309 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14310 # Instead, we relocate shared libraries at runtime. 14311 ;; 14312 14313 msdosdjgpp*) 14314 # Just because we use GCC doesn't mean we suddenly get shared libraries 14315 # on systems that don't support them. 14316 lt_prog_compiler_can_build_shared_F77=no 14317 enable_shared=no 14318 ;; 14319 14320 sysv4*MP*) 14321 if test -d /usr/nec; then 14322 lt_prog_compiler_pic_F77=-Kconform_pic 14323 fi 14324 ;; 14325 14326 hpux*) 14327 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14328 # not for PA HP-UX. 14329 case $host_cpu in 14330 hppa*64*|ia64*) 14331 # +Z the default 14332 ;; 14333 *) 14334 lt_prog_compiler_pic_F77='-fPIC' 14335 ;; 14336 esac 14337 ;; 14338 14339 *) 14340 lt_prog_compiler_pic_F77='-fPIC' 14341 ;; 14342 esac 14343 else 14344 # PORTME Check for flag to pass linker flags through the system compiler. 14345 case $host_os in 14346 aix*) 14347 lt_prog_compiler_wl_F77='-Wl,' 14348 if test "$host_cpu" = ia64; then 14349 # AIX 5 now supports IA64 processor 14350 lt_prog_compiler_static_F77='-Bstatic' 14351 else 14352 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 14353 fi 14354 ;; 14355 darwin*) 14356 # PIC is the default on this platform 14357 # Common symbols not allowed in MH_DYLIB files 14358 case $cc_basename in 14359 xlc*) 14360 lt_prog_compiler_pic_F77='-qnocommon' 14361 lt_prog_compiler_wl_F77='-Wl,' 14362 ;; 14363 esac 14364 ;; 14365 14366 mingw* | pw32* | os2*) 14367 # This hack is so that the source file can tell whether it is being 14368 # built for inclusion in a dll (and should export symbols for example). 14369 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14370 ;; 14371 14372 hpux9* | hpux10* | hpux11*) 14373 lt_prog_compiler_wl_F77='-Wl,' 14374 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14375 # not for PA HP-UX. 14376 case $host_cpu in 14377 hppa*64*|ia64*) 14378 # +Z the default 14379 ;; 14380 *) 14381 lt_prog_compiler_pic_F77='+Z' 14382 ;; 14383 esac 14384 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14385 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 14386 ;; 14387 14388 irix5* | irix6* | nonstopux*) 14389 lt_prog_compiler_wl_F77='-Wl,' 14390 # PIC (with -KPIC) is the default. 14391 lt_prog_compiler_static_F77='-non_shared' 14392 ;; 14393 14394 newsos6) 14395 lt_prog_compiler_pic_F77='-KPIC' 14396 lt_prog_compiler_static_F77='-Bstatic' 14397 ;; 14398 14399 linux* | k*bsd*-gnu) 14400 case $cc_basename in 14401 icc* | ecc*) 14402 lt_prog_compiler_wl_F77='-Wl,' 14403 lt_prog_compiler_pic_F77='-KPIC' 14404 lt_prog_compiler_static_F77='-static' 14405 ;; 14406 pgcc* | pgf77* | pgf90* | pgf95*) 14407 # Portland Group compilers (*not* the Pentium gcc compiler, 14408 # which looks to be a dead project) 14409 lt_prog_compiler_wl_F77='-Wl,' 14410 lt_prog_compiler_pic_F77='-fpic' 14411 lt_prog_compiler_static_F77='-Bstatic' 14412 ;; 14413 ccc*) 14414 lt_prog_compiler_wl_F77='-Wl,' 14415 # All Alpha code is PIC. 14416 lt_prog_compiler_static_F77='-non_shared' 14417 ;; 14418 esac 14419 ;; 14420 14421 osf3* | osf4* | osf5*) 14422 lt_prog_compiler_wl_F77='-Wl,' 14423 # All OSF/1 code is PIC. 14424 lt_prog_compiler_static_F77='-non_shared' 14425 ;; 14426 14427 solaris*) 14428 lt_prog_compiler_pic_F77='-KPIC' 14429 lt_prog_compiler_static_F77='-Bstatic' 14430 case $cc_basename in 14431 f77* | f90* | f95*) 14432 lt_prog_compiler_wl_F77='-Qoption ld ';; 14433 *) 14434 lt_prog_compiler_wl_F77='-Wl,';; 14435 esac 14436 ;; 14437 14438 sunos4*) 14439 lt_prog_compiler_wl_F77='-Qoption ld ' 14440 lt_prog_compiler_pic_F77='-PIC' 14441 lt_prog_compiler_static_F77='-Bstatic' 14442 ;; 14443 14444 sysv4 | sysv4.2uw2* | sysv4.3*) 14445 lt_prog_compiler_wl_F77='-Wl,' 14446 lt_prog_compiler_pic_F77='-KPIC' 14447 lt_prog_compiler_static_F77='-Bstatic' 14448 ;; 14449 14450 sysv4*MP*) 14451 if test -d /usr/nec ;then 14452 lt_prog_compiler_pic_F77='-Kconform_pic' 14453 lt_prog_compiler_static_F77='-Bstatic' 14454 fi 14455 ;; 14456 14457 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14458 lt_prog_compiler_wl_F77='-Wl,' 14459 lt_prog_compiler_pic_F77='-KPIC' 14460 lt_prog_compiler_static_F77='-Bstatic' 14461 ;; 14462 14463 unicos*) 14464 lt_prog_compiler_wl_F77='-Wl,' 14465 lt_prog_compiler_can_build_shared_F77=no 14466 ;; 14467 14468 uts4*) 14469 lt_prog_compiler_pic_F77='-pic' 14470 lt_prog_compiler_static_F77='-Bstatic' 14471 ;; 14472 14473 *) 14474 lt_prog_compiler_can_build_shared_F77=no 14475 ;; 14476 esac 14477 fi 14478 14479{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 14480echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } 14481 14482# 14483# Check to make sure the PIC flag actually works. 14484# 14485if test -n "$lt_prog_compiler_pic_F77"; then 14486 14487{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 14488echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } 14489if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 14490 echo $ECHO_N "(cached) $ECHO_C" >&6 14491else 14492 lt_prog_compiler_pic_works_F77=no 14493 ac_outfile=conftest.$ac_objext 14494 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14495 lt_compiler_flag="$lt_prog_compiler_pic_F77" 14496 # Insert the option either (1) after the last *FLAGS variable, or 14497 # (2) before a word containing "conftest.", or (3) at the end. 14498 # Note that $ac_compile itself does not contain backslashes and begins 14499 # with a dollar sign (not a hyphen), so the echo should work correctly. 14500 # The option is referenced via a variable to avoid confusing sed. 14501 lt_compile=`echo "$ac_compile" | $SED \ 14502 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14503 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14504 -e 's:$: $lt_compiler_flag:'` 14505 (eval echo "\"\$as_me:14505: $lt_compile\"" >&5) 14506 (eval "$lt_compile" 2>conftest.err) 14507 ac_status=$? 14508 cat conftest.err >&5 14509 echo "$as_me:14509: \$? = $ac_status" >&5 14510 if (exit $ac_status) && test -s "$ac_outfile"; then 14511 # The compiler can only warn and ignore the option if not recognized 14512 # So say no if there are warnings other than the usual output. 14513 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14514 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14515 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14516 lt_prog_compiler_pic_works_F77=yes 14517 fi 14518 fi 14519 $rm conftest* 14520 14521fi 14522{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 14523echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } 14524 14525if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 14526 case $lt_prog_compiler_pic_F77 in 14527 "" | " "*) ;; 14528 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 14529 esac 14530else 14531 lt_prog_compiler_pic_F77= 14532 lt_prog_compiler_can_build_shared_F77=no 14533fi 14534 14535fi 14536case $host_os in 14537 # For platforms which do not support PIC, -DPIC is meaningless: 14538 *djgpp*) 14539 lt_prog_compiler_pic_F77= 14540 ;; 14541 *) 14542 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 14543 ;; 14544esac 14545 14546# 14547# Check to make sure the static flag actually works. 14548# 14549wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 14550{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14551echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 14552if test "${lt_prog_compiler_static_works_F77+set}" = set; then 14553 echo $ECHO_N "(cached) $ECHO_C" >&6 14554else 14555 lt_prog_compiler_static_works_F77=no 14556 save_LDFLAGS="$LDFLAGS" 14557 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14558 printf "$lt_simple_link_test_code" > conftest.$ac_ext 14559 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14560 # The linker can only warn and ignore the option if not recognized 14561 # So say no if there are warnings 14562 if test -s conftest.err; then 14563 # Append any errors to the config.log. 14564 cat conftest.err 1>&5 14565 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14566 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14567 if diff conftest.exp conftest.er2 >/dev/null; then 14568 lt_prog_compiler_static_works_F77=yes 14569 fi 14570 else 14571 lt_prog_compiler_static_works_F77=yes 14572 fi 14573 fi 14574 $rm conftest* 14575 LDFLAGS="$save_LDFLAGS" 14576 14577fi 14578{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 14579echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } 14580 14581if test x"$lt_prog_compiler_static_works_F77" = xyes; then 14582 : 14583else 14584 lt_prog_compiler_static_F77= 14585fi 14586 14587 14588{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14589echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 14590if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 14591 echo $ECHO_N "(cached) $ECHO_C" >&6 14592else 14593 lt_cv_prog_compiler_c_o_F77=no 14594 $rm -r conftest 2>/dev/null 14595 mkdir conftest 14596 cd conftest 14597 mkdir out 14598 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14599 14600 lt_compiler_flag="-o out/conftest2.$ac_objext" 14601 # Insert the option either (1) after the last *FLAGS variable, or 14602 # (2) before a word containing "conftest.", or (3) at the end. 14603 # Note that $ac_compile itself does not contain backslashes and begins 14604 # with a dollar sign (not a hyphen), so the echo should work correctly. 14605 lt_compile=`echo "$ac_compile" | $SED \ 14606 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14607 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14608 -e 's:$: $lt_compiler_flag:'` 14609 (eval echo "\"\$as_me:14609: $lt_compile\"" >&5) 14610 (eval "$lt_compile" 2>out/conftest.err) 14611 ac_status=$? 14612 cat out/conftest.err >&5 14613 echo "$as_me:14613: \$? = $ac_status" >&5 14614 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14615 then 14616 # The compiler can only warn and ignore the option if not recognized 14617 # So say no if there are warnings 14618 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14619 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14620 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14621 lt_cv_prog_compiler_c_o_F77=yes 14622 fi 14623 fi 14624 chmod u+w . 2>&5 14625 $rm conftest* 14626 # SGI C++ compiler will create directory out/ii_files/ for 14627 # template instantiation 14628 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14629 $rm out/* && rmdir out 14630 cd .. 14631 rmdir conftest 14632 $rm conftest* 14633 14634fi 14635{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14636echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } 14637 14638 14639hard_links="nottested" 14640if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14641 # do not overwrite the value of need_locks provided by the user 14642 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14643echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 14644 hard_links=yes 14645 $rm conftest* 14646 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14647 touch conftest.a 14648 ln conftest.a conftest.b 2>&5 || hard_links=no 14649 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14650 { echo "$as_me:$LINENO: result: $hard_links" >&5 14651echo "${ECHO_T}$hard_links" >&6; } 14652 if test "$hard_links" = no; then 14653 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14654echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14655 need_locks=warn 14656 fi 14657else 14658 need_locks=no 14659fi 14660 14661{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14662echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 14663 14664 runpath_var= 14665 allow_undefined_flag_F77= 14666 enable_shared_with_static_runtimes_F77=no 14667 archive_cmds_F77= 14668 archive_expsym_cmds_F77= 14669 old_archive_From_new_cmds_F77= 14670 old_archive_from_expsyms_cmds_F77= 14671 export_dynamic_flag_spec_F77= 14672 whole_archive_flag_spec_F77= 14673 thread_safe_flag_spec_F77= 14674 hardcode_libdir_flag_spec_F77= 14675 hardcode_libdir_flag_spec_ld_F77= 14676 hardcode_libdir_separator_F77= 14677 hardcode_direct_F77=no 14678 hardcode_minus_L_F77=no 14679 hardcode_shlibpath_var_F77=unsupported 14680 link_all_deplibs_F77=unknown 14681 hardcode_automatic_F77=no 14682 module_cmds_F77= 14683 module_expsym_cmds_F77= 14684 always_export_symbols_F77=no 14685 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14686 # include_expsyms should be a list of space-separated symbols to be *always* 14687 # included in the symbol list 14688 include_expsyms_F77= 14689 # exclude_expsyms can be an extended regexp of symbols to exclude 14690 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14691 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14692 # as well as any symbol that contains `d'. 14693 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 14694 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14695 # platforms (ab)use it in PIC code, but their linkers get confused if 14696 # the symbol is explicitly referenced. Since portable code cannot 14697 # rely on this symbol name, it's probably fine to never include it in 14698 # preloaded symbol tables. 14699 extract_expsyms_cmds= 14700 # Just being paranoid about ensuring that cc_basename is set. 14701 for cc_temp in $compiler""; do 14702 case $cc_temp in 14703 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14704 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14705 \-*) ;; 14706 *) break;; 14707 esac 14708done 14709cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14710 14711 case $host_os in 14712 cygwin* | mingw* | pw32*) 14713 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14714 # When not using gcc, we currently assume that we are using 14715 # Microsoft Visual C++. 14716 if test "$GCC" != yes; then 14717 with_gnu_ld=no 14718 fi 14719 ;; 14720 interix*) 14721 # we just hope/assume this is gcc and not c89 (= MSVC++) 14722 with_gnu_ld=yes 14723 ;; 14724 openbsd*) 14725 with_gnu_ld=no 14726 ;; 14727 esac 14728 14729 ld_shlibs_F77=yes 14730 if test "$with_gnu_ld" = yes; then 14731 # If archive_cmds runs LD, not CC, wlarc should be empty 14732 wlarc='${wl}' 14733 14734 # Set some defaults for GNU ld with shared library support. These 14735 # are reset later if shared libraries are not supported. Putting them 14736 # here allows them to be overridden if necessary. 14737 runpath_var=LD_RUN_PATH 14738 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14739 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14740 # ancient GNU ld didn't support --whole-archive et. al. 14741 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14742 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14743 else 14744 whole_archive_flag_spec_F77= 14745 fi 14746 supports_anon_versioning=no 14747 case `$LD -v 2>/dev/null` in 14748 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14749 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14750 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14751 *\ 2.11.*) ;; # other 2.11 versions 14752 *) supports_anon_versioning=yes ;; 14753 esac 14754 14755 # See if GNU ld supports shared libraries. 14756 case $host_os in 14757 aix3* | aix4* | aix5*) 14758 # On AIX/PPC, the GNU linker is very broken 14759 if test "$host_cpu" != ia64; then 14760 ld_shlibs_F77=no 14761 cat <<EOF 1>&2 14762 14763*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14764*** to be unable to reliably create shared libraries on AIX. 14765*** Therefore, libtool is disabling shared libraries support. If you 14766*** really care for shared libraries, you may want to modify your PATH 14767*** so that a non-GNU linker is found, and then restart. 14768 14769EOF 14770 fi 14771 ;; 14772 14773 amigaos*) 14774 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)' 14775 hardcode_libdir_flag_spec_F77='-L$libdir' 14776 hardcode_minus_L_F77=yes 14777 14778 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14779 # that the semantics of dynamic libraries on AmigaOS, at least up 14780 # to version 4, is to share data among multiple programs linked 14781 # with the same dynamic library. Since this doesn't match the 14782 # behavior of shared libraries on other platforms, we can't use 14783 # them. 14784 ld_shlibs_F77=no 14785 ;; 14786 14787 beos*) 14788 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14789 allow_undefined_flag_F77=unsupported 14790 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14791 # support --undefined. This deserves some investigation. FIXME 14792 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14793 else 14794 ld_shlibs_F77=no 14795 fi 14796 ;; 14797 14798 cygwin* | mingw* | pw32*) 14799 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14800 # as there is no search path for DLLs. 14801 hardcode_libdir_flag_spec_F77='-L$libdir' 14802 allow_undefined_flag_F77=unsupported 14803 always_export_symbols_F77=no 14804 enable_shared_with_static_runtimes_F77=yes 14805 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 14806 14807 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14808 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14809 # If the export-symbols file already is a .def file (1st line 14810 # is EXPORTS), use it as is; otherwise, prepend... 14811 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14812 cp $export_symbols $output_objdir/$soname.def; 14813 else 14814 echo EXPORTS > $output_objdir/$soname.def; 14815 cat $export_symbols >> $output_objdir/$soname.def; 14816 fi~ 14817 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14818 else 14819 ld_shlibs_F77=no 14820 fi 14821 ;; 14822 14823 interix3*) 14824 hardcode_direct_F77=no 14825 hardcode_shlibpath_var_F77=no 14826 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14827 export_dynamic_flag_spec_F77='${wl}-E' 14828 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14829 # Instead, shared libraries are loaded at an image base (0x10000000 by 14830 # default) and relocated if they conflict, which is a slow very memory 14831 # consuming and fragmenting process. To avoid this, we pick a random, 14832 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14833 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14834 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' 14835 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' 14836 ;; 14837 14838 linux* | k*bsd*-gnu) 14839 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14840 tmp_addflag= 14841 case $cc_basename,$host_cpu in 14842 pgcc*) # Portland Group C compiler 14843 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' 14844 tmp_addflag=' $pic_flag' 14845 ;; 14846 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14847 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' 14848 tmp_addflag=' $pic_flag -Mnomain' ;; 14849 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14850 tmp_addflag=' -i_dynamic' ;; 14851 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14852 tmp_addflag=' -i_dynamic -nofor_main' ;; 14853 ifc* | ifort*) # Intel Fortran compiler 14854 tmp_addflag=' -nofor_main' ;; 14855 esac 14856 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14857 14858 if test $supports_anon_versioning = yes; then 14859 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14860 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14861 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14862 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14863 fi 14864 link_all_deplibs_F77=no 14865 else 14866 ld_shlibs_F77=no 14867 fi 14868 ;; 14869 14870 netbsd* | netbsdelf*-gnu) 14871 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14872 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14873 wlarc= 14874 else 14875 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14876 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14877 fi 14878 ;; 14879 14880 solaris*) 14881 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14882 ld_shlibs_F77=no 14883 cat <<EOF 1>&2 14884 14885*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14886*** create shared libraries on Solaris systems. Therefore, libtool 14887*** is disabling shared libraries support. We urge you to upgrade GNU 14888*** binutils to release 2.9.1 or newer. Another option is to modify 14889*** your PATH or compiler configuration so that the native linker is 14890*** used, and then restart. 14891 14892EOF 14893 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14894 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14895 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14896 else 14897 ld_shlibs_F77=no 14898 fi 14899 ;; 14900 14901 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14902 case `$LD -v 2>&1` in 14903 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14904 ld_shlibs_F77=no 14905 cat <<_LT_EOF 1>&2 14906 14907*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 14908*** reliably create shared libraries on SCO systems. Therefore, libtool 14909*** is disabling shared libraries support. We urge you to upgrade GNU 14910*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14911*** your PATH or compiler configuration so that the native linker is 14912*** used, and then restart. 14913 14914_LT_EOF 14915 ;; 14916 *) 14917 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14918 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 14919 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 14920 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 14921 else 14922 ld_shlibs_F77=no 14923 fi 14924 ;; 14925 esac 14926 ;; 14927 14928 sunos4*) 14929 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14930 wlarc= 14931 hardcode_direct_F77=yes 14932 hardcode_shlibpath_var_F77=no 14933 ;; 14934 14935 *) 14936 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14937 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14938 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14939 else 14940 ld_shlibs_F77=no 14941 fi 14942 ;; 14943 esac 14944 14945 if test "$ld_shlibs_F77" = no; then 14946 runpath_var= 14947 hardcode_libdir_flag_spec_F77= 14948 export_dynamic_flag_spec_F77= 14949 whole_archive_flag_spec_F77= 14950 fi 14951 else 14952 # PORTME fill in a description of your system's linker (not GNU ld) 14953 case $host_os in 14954 aix3*) 14955 allow_undefined_flag_F77=unsupported 14956 always_export_symbols_F77=yes 14957 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' 14958 # Note: this linker hardcodes the directories in LIBPATH if there 14959 # are no directories specified by -L. 14960 hardcode_minus_L_F77=yes 14961 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 14962 # Neither direct hardcoding nor static linking is supported with a 14963 # broken collect2. 14964 hardcode_direct_F77=unsupported 14965 fi 14966 ;; 14967 14968 aix4* | aix5*) 14969 if test "$host_cpu" = ia64; then 14970 # On IA64, the linker does run time linking by default, so we don't 14971 # have to do anything special. 14972 aix_use_runtimelinking=no 14973 exp_sym_flag='-Bexport' 14974 no_entry_flag="" 14975 else 14976 # If we're using GNU nm, then we don't want the "-C" option. 14977 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14978 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14979 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' 14980 else 14981 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' 14982 fi 14983 aix_use_runtimelinking=no 14984 14985 # Test if we are trying to use run time linking or normal 14986 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14987 # need to do runtime linking. 14988 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 14989 for ld_flag in $LDFLAGS; do 14990 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14991 aix_use_runtimelinking=yes 14992 break 14993 fi 14994 done 14995 ;; 14996 esac 14997 14998 exp_sym_flag='-bexport' 14999 no_entry_flag='-bnoentry' 15000 fi 15001 15002 # When large executables or shared objects are built, AIX ld can 15003 # have problems creating the table of contents. If linking a library 15004 # or program results in "error TOC overflow" add -mminimal-toc to 15005 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15006 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15007 15008 archive_cmds_F77='' 15009 hardcode_direct_F77=yes 15010 hardcode_libdir_separator_F77=':' 15011 link_all_deplibs_F77=yes 15012 15013 if test "$GCC" = yes; then 15014 case $host_os in aix4.[012]|aix4.[012].*) 15015 # We only want to do this on AIX 4.2 and lower, the check 15016 # below for broken collect2 doesn't work under 4.3+ 15017 collect2name=`${CC} -print-prog-name=collect2` 15018 if test -f "$collect2name" && \ 15019 strings "$collect2name" | grep resolve_lib_name >/dev/null 15020 then 15021 # We have reworked collect2 15022 hardcode_direct_F77=yes 15023 else 15024 # We have old collect2 15025 hardcode_direct_F77=unsupported 15026 # It fails to find uninstalled libraries when the uninstalled 15027 # path is not listed in the libpath. Setting hardcode_minus_L 15028 # to unsupported forces relinking 15029 hardcode_minus_L_F77=yes 15030 hardcode_libdir_flag_spec_F77='-L$libdir' 15031 hardcode_libdir_separator_F77= 15032 fi 15033 ;; 15034 esac 15035 shared_flag='-shared' 15036 if test "$aix_use_runtimelinking" = yes; then 15037 shared_flag="$shared_flag "'${wl}-G' 15038 fi 15039 else 15040 # not using gcc 15041 if test "$host_cpu" = ia64; then 15042 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15043 # chokes on -Wl,-G. The following line is correct: 15044 shared_flag='-G' 15045 else 15046 if test "$aix_use_runtimelinking" = yes; then 15047 shared_flag='${wl}-G' 15048 else 15049 shared_flag='${wl}-bM:SRE' 15050 fi 15051 fi 15052 fi 15053 15054 # It seems that -bexpall does not export symbols beginning with 15055 # underscore (_), so it is better to generate a list of symbols to export. 15056 always_export_symbols_F77=yes 15057 if test "$aix_use_runtimelinking" = yes; then 15058 # Warning - without using the other runtime loading flags (-brtl), 15059 # -berok will link without error, but may produce a broken library. 15060 allow_undefined_flag_F77='-berok' 15061 # Determine the default libpath from the value encoded in an empty executable. 15062 cat >conftest.$ac_ext <<_ACEOF 15063 program main 15064 15065 end 15066_ACEOF 15067rm -f conftest.$ac_objext conftest$ac_exeext 15068if { (ac_try="$ac_link" 15069case "(($ac_try" in 15070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15071 *) ac_try_echo=$ac_try;; 15072esac 15073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15074 (eval "$ac_link") 2>conftest.er1 15075 ac_status=$? 15076 grep -v '^ *+' conftest.er1 >conftest.err 15077 rm -f conftest.er1 15078 cat conftest.err >&5 15079 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15080 (exit $ac_status); } && { 15081 test -z "$ac_f77_werror_flag" || 15082 test ! -s conftest.err 15083 } && test -s conftest$ac_exeext && 15084 $as_test_x conftest$ac_exeext; then 15085 15086aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15087}'` 15088# Check for a 64-bit object if we didn't find anything. 15089if 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; } 15090}'`; fi 15091else 15092 echo "$as_me: failed program was:" >&5 15093sed 's/^/| /' conftest.$ac_ext >&5 15094 15095 15096fi 15097 15098rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15099 conftest$ac_exeext conftest.$ac_ext 15100if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15101 15102 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15103 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" 15104 else 15105 if test "$host_cpu" = ia64; then 15106 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 15107 allow_undefined_flag_F77="-z nodefs" 15108 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" 15109 else 15110 # Determine the default libpath from the value encoded in an empty executable. 15111 cat >conftest.$ac_ext <<_ACEOF 15112 program main 15113 15114 end 15115_ACEOF 15116rm -f conftest.$ac_objext conftest$ac_exeext 15117if { (ac_try="$ac_link" 15118case "(($ac_try" in 15119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15120 *) ac_try_echo=$ac_try;; 15121esac 15122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15123 (eval "$ac_link") 2>conftest.er1 15124 ac_status=$? 15125 grep -v '^ *+' conftest.er1 >conftest.err 15126 rm -f conftest.er1 15127 cat conftest.err >&5 15128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15129 (exit $ac_status); } && { 15130 test -z "$ac_f77_werror_flag" || 15131 test ! -s conftest.err 15132 } && test -s conftest$ac_exeext && 15133 $as_test_x conftest$ac_exeext; then 15134 15135aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15136}'` 15137# Check for a 64-bit object if we didn't find anything. 15138if 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; } 15139}'`; fi 15140else 15141 echo "$as_me: failed program was:" >&5 15142sed 's/^/| /' conftest.$ac_ext >&5 15143 15144 15145fi 15146 15147rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15148 conftest$ac_exeext conftest.$ac_ext 15149if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15150 15151 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15152 # Warning - without using the other run time loading flags, 15153 # -berok will link without error, but may produce a broken library. 15154 no_undefined_flag_F77=' ${wl}-bernotok' 15155 allow_undefined_flag_F77=' ${wl}-berok' 15156 # Exported symbols can be pulled into shared objects from archives 15157 whole_archive_flag_spec_F77='$convenience' 15158 archive_cmds_need_lc_F77=yes 15159 # This is similar to how AIX traditionally builds its shared libraries. 15160 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' 15161 fi 15162 fi 15163 ;; 15164 15165 amigaos*) 15166 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)' 15167 hardcode_libdir_flag_spec_F77='-L$libdir' 15168 hardcode_minus_L_F77=yes 15169 # see comment about different semantics on the GNU ld section 15170 ld_shlibs_F77=no 15171 ;; 15172 15173 bsdi[45]*) 15174 export_dynamic_flag_spec_F77=-rdynamic 15175 ;; 15176 15177 cygwin* | mingw* | pw32*) 15178 # When not using gcc, we currently assume that we are using 15179 # Microsoft Visual C++. 15180 # hardcode_libdir_flag_spec is actually meaningless, as there is 15181 # no search path for DLLs. 15182 hardcode_libdir_flag_spec_F77=' ' 15183 allow_undefined_flag_F77=unsupported 15184 # Tell ltmain to make .lib files, not .a files. 15185 libext=lib 15186 # Tell ltmain to make .dll files, not .so files. 15187 shrext_cmds=".dll" 15188 # FIXME: Setting linknames here is a bad hack. 15189 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 15190 # The linker will automatically build a .lib file if we build a DLL. 15191 old_archive_From_new_cmds_F77='true' 15192 # FIXME: Should let the user specify the lib program. 15193 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 15194 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 15195 enable_shared_with_static_runtimes_F77=yes 15196 ;; 15197 15198 darwin* | rhapsody*) 15199 case $host_os in 15200 rhapsody* | darwin1.[012]) 15201 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 15202 ;; 15203 *) # Darwin 1.3 on 15204 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 15205 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15206 else 15207 case ${MACOSX_DEPLOYMENT_TARGET} in 15208 10.[012]) 15209 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15210 ;; 15211 10.*) 15212 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 15213 ;; 15214 esac 15215 fi 15216 ;; 15217 esac 15218 archive_cmds_need_lc_F77=no 15219 hardcode_direct_F77=no 15220 hardcode_automatic_F77=yes 15221 hardcode_shlibpath_var_F77=unsupported 15222 whole_archive_flag_spec_F77='' 15223 link_all_deplibs_F77=yes 15224 if test "$GCC" = yes ; then 15225 output_verbose_link_cmd='echo' 15226 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 15227 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15228 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15229 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}' 15230 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}' 15231 else 15232 case $cc_basename in 15233 xlc*) 15234 output_verbose_link_cmd='echo' 15235 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 15236 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15237 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15238 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}' 15239 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}' 15240 ;; 15241 *) 15242 ld_shlibs_F77=no 15243 ;; 15244 esac 15245 fi 15246 ;; 15247 15248 dgux*) 15249 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15250 hardcode_libdir_flag_spec_F77='-L$libdir' 15251 hardcode_shlibpath_var_F77=no 15252 ;; 15253 15254 freebsd1*) 15255 ld_shlibs_F77=no 15256 ;; 15257 15258 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15259 # support. Future versions do this automatically, but an explicit c++rt0.o 15260 # does not break anything, and helps significantly (at the cost of a little 15261 # extra space). 15262 freebsd2.2*) 15263 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15264 hardcode_libdir_flag_spec_F77='-R$libdir' 15265 hardcode_direct_F77=yes 15266 hardcode_shlibpath_var_F77=no 15267 ;; 15268 15269 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15270 freebsd2*) 15271 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15272 hardcode_direct_F77=yes 15273 hardcode_minus_L_F77=yes 15274 hardcode_shlibpath_var_F77=no 15275 ;; 15276 15277 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15278 freebsd* | dragonfly*) 15279 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 15280 hardcode_libdir_flag_spec_F77='-R$libdir' 15281 hardcode_direct_F77=yes 15282 hardcode_shlibpath_var_F77=no 15283 ;; 15284 15285 hpux9*) 15286 if test "$GCC" = yes; then 15287 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' 15288 else 15289 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' 15290 fi 15291 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15292 hardcode_libdir_separator_F77=: 15293 hardcode_direct_F77=yes 15294 15295 # hardcode_minus_L: Not really in the search PATH, 15296 # but as the default location of the library. 15297 hardcode_minus_L_F77=yes 15298 export_dynamic_flag_spec_F77='${wl}-E' 15299 ;; 15300 15301 hpux10*) 15302 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15303 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15304 else 15305 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15306 fi 15307 if test "$with_gnu_ld" = no; then 15308 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15309 hardcode_libdir_separator_F77=: 15310 15311 hardcode_direct_F77=yes 15312 export_dynamic_flag_spec_F77='${wl}-E' 15313 15314 # hardcode_minus_L: Not really in the search PATH, 15315 # but as the default location of the library. 15316 hardcode_minus_L_F77=yes 15317 fi 15318 ;; 15319 15320 hpux11*) 15321 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15322 case $host_cpu in 15323 hppa*64*) 15324 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15325 ;; 15326 ia64*) 15327 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15328 ;; 15329 *) 15330 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15331 ;; 15332 esac 15333 else 15334 case $host_cpu in 15335 hppa*64*) 15336 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15337 ;; 15338 ia64*) 15339 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15340 ;; 15341 *) 15342 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15343 ;; 15344 esac 15345 fi 15346 if test "$with_gnu_ld" = no; then 15347 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15348 hardcode_libdir_separator_F77=: 15349 15350 case $host_cpu in 15351 hppa*64*|ia64*) 15352 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 15353 hardcode_direct_F77=no 15354 hardcode_shlibpath_var_F77=no 15355 ;; 15356 *) 15357 hardcode_direct_F77=yes 15358 export_dynamic_flag_spec_F77='${wl}-E' 15359 15360 # hardcode_minus_L: Not really in the search PATH, 15361 # but as the default location of the library. 15362 hardcode_minus_L_F77=yes 15363 ;; 15364 esac 15365 fi 15366 ;; 15367 15368 irix5* | irix6* | nonstopux*) 15369 if test "$GCC" = yes; then 15370 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' 15371 else 15372 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' 15373 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 15374 fi 15375 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15376 hardcode_libdir_separator_F77=: 15377 link_all_deplibs_F77=yes 15378 ;; 15379 15380 netbsd* | netbsdelf*-gnu) 15381 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15382 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15383 else 15384 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15385 fi 15386 hardcode_libdir_flag_spec_F77='-R$libdir' 15387 hardcode_direct_F77=yes 15388 hardcode_shlibpath_var_F77=no 15389 ;; 15390 15391 newsos6) 15392 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15393 hardcode_direct_F77=yes 15394 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15395 hardcode_libdir_separator_F77=: 15396 hardcode_shlibpath_var_F77=no 15397 ;; 15398 15399 openbsd*) 15400 hardcode_direct_F77=yes 15401 hardcode_shlibpath_var_F77=no 15402 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15403 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15404 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 15405 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15406 export_dynamic_flag_spec_F77='${wl}-E' 15407 else 15408 case $host_os in 15409 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15410 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15411 hardcode_libdir_flag_spec_F77='-R$libdir' 15412 ;; 15413 *) 15414 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15415 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15416 ;; 15417 esac 15418 fi 15419 ;; 15420 15421 os2*) 15422 hardcode_libdir_flag_spec_F77='-L$libdir' 15423 hardcode_minus_L_F77=yes 15424 allow_undefined_flag_F77=unsupported 15425 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' 15426 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15427 ;; 15428 15429 osf3*) 15430 if test "$GCC" = yes; then 15431 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15432 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' 15433 else 15434 allow_undefined_flag_F77=' -expect_unresolved \*' 15435 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' 15436 fi 15437 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15438 hardcode_libdir_separator_F77=: 15439 ;; 15440 15441 osf4* | osf5*) # as osf3* with the addition of -msym flag 15442 if test "$GCC" = yes; then 15443 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15444 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' 15445 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15446 else 15447 allow_undefined_flag_F77=' -expect_unresolved \*' 15448 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' 15449 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~ 15450 $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' 15451 15452 # Both c and cxx compiler support -rpath directly 15453 hardcode_libdir_flag_spec_F77='-rpath $libdir' 15454 fi 15455 hardcode_libdir_separator_F77=: 15456 ;; 15457 15458 solaris*) 15459 no_undefined_flag_F77=' -z text' 15460 if test "$GCC" = yes; then 15461 wlarc='${wl}' 15462 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15463 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15464 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15465 else 15466 wlarc='' 15467 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15468 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15469 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15470 fi 15471 hardcode_libdir_flag_spec_F77='-R$libdir' 15472 hardcode_shlibpath_var_F77=no 15473 case $host_os in 15474 solaris2.[0-5] | solaris2.[0-5].*) ;; 15475 *) 15476 # The compiler driver will combine linker options so we 15477 # cannot just pass the convience library names through 15478 # without $wl, iff we do not link with $LD. 15479 # Luckily, gcc supports the same syntax we need for Sun Studio. 15480 # Supported since Solaris 2.6 (maybe 2.5.1?) 15481 case $wlarc in 15482 '') 15483 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 15484 *) 15485 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' ;; 15486 esac ;; 15487 esac 15488 link_all_deplibs_F77=yes 15489 ;; 15490 15491 sunos4*) 15492 if test "x$host_vendor" = xsequent; then 15493 # Use $CC to link under sequent, because it throws in some extra .o 15494 # files that make .init and .fini sections work. 15495 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15496 else 15497 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15498 fi 15499 hardcode_libdir_flag_spec_F77='-L$libdir' 15500 hardcode_direct_F77=yes 15501 hardcode_minus_L_F77=yes 15502 hardcode_shlibpath_var_F77=no 15503 ;; 15504 15505 sysv4) 15506 case $host_vendor in 15507 sni) 15508 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15509 hardcode_direct_F77=yes # is this really true??? 15510 ;; 15511 siemens) 15512 ## LD is ld it makes a PLAMLIB 15513 ## CC just makes a GrossModule. 15514 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15515 reload_cmds_F77='$CC -r -o $output$reload_objs' 15516 hardcode_direct_F77=no 15517 ;; 15518 motorola) 15519 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15520 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 15521 ;; 15522 esac 15523 runpath_var='LD_RUN_PATH' 15524 hardcode_shlibpath_var_F77=no 15525 ;; 15526 15527 sysv4.3*) 15528 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15529 hardcode_shlibpath_var_F77=no 15530 export_dynamic_flag_spec_F77='-Bexport' 15531 ;; 15532 15533 sysv4*MP*) 15534 if test -d /usr/nec; then 15535 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15536 hardcode_shlibpath_var_F77=no 15537 runpath_var=LD_RUN_PATH 15538 hardcode_runpath_var=yes 15539 ld_shlibs_F77=yes 15540 fi 15541 ;; 15542 15543 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 15544 no_undefined_flag_F77='${wl}-z,text' 15545 archive_cmds_need_lc_F77=no 15546 hardcode_shlibpath_var_F77=no 15547 runpath_var='LD_RUN_PATH' 15548 15549 if test "$GCC" = yes; then 15550 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15551 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15552 else 15553 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15554 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15555 fi 15556 ;; 15557 15558 sysv5* | sco3.2v5* | sco5v6*) 15559 # Note: We can NOT use -z defs as we might desire, because we do not 15560 # link with -lc, and that would cause any symbols used from libc to 15561 # always be unresolved, which means just about no library would 15562 # ever link correctly. If we're not using GNU ld we use -z text 15563 # though, which does catch some bad symbols but isn't as heavy-handed 15564 # as -z defs. 15565 no_undefined_flag_F77='${wl}-z,text' 15566 allow_undefined_flag_F77='${wl}-z,nodefs' 15567 archive_cmds_need_lc_F77=no 15568 hardcode_shlibpath_var_F77=no 15569 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 15570 hardcode_libdir_separator_F77=':' 15571 link_all_deplibs_F77=yes 15572 export_dynamic_flag_spec_F77='${wl}-Bexport' 15573 runpath_var='LD_RUN_PATH' 15574 15575 if test "$GCC" = yes; then 15576 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15577 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15578 else 15579 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15580 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15581 fi 15582 ;; 15583 15584 uts4*) 15585 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15586 hardcode_libdir_flag_spec_F77='-L$libdir' 15587 hardcode_shlibpath_var_F77=no 15588 ;; 15589 15590 *) 15591 ld_shlibs_F77=no 15592 ;; 15593 esac 15594 fi 15595 15596{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 15597echo "${ECHO_T}$ld_shlibs_F77" >&6; } 15598test "$ld_shlibs_F77" = no && can_build_shared=no 15599 15600# 15601# Do we need to explicitly link libc? 15602# 15603case "x$archive_cmds_need_lc_F77" in 15604x|xyes) 15605 # Assume -lc should be added 15606 archive_cmds_need_lc_F77=yes 15607 15608 if test "$enable_shared" = yes && test "$GCC" = yes; then 15609 case $archive_cmds_F77 in 15610 *'~'*) 15611 # FIXME: we may have to deal with multi-command sequences. 15612 ;; 15613 '$CC '*) 15614 # Test whether the compiler implicitly links with -lc since on some 15615 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15616 # to ld, don't add -lc before -lgcc. 15617 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15618echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 15619 $rm conftest* 15620 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15621 15622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15623 (eval $ac_compile) 2>&5 15624 ac_status=$? 15625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15626 (exit $ac_status); } 2>conftest.err; then 15627 soname=conftest 15628 lib=conftest 15629 libobjs=conftest.$ac_objext 15630 deplibs= 15631 wl=$lt_prog_compiler_wl_F77 15632 pic_flag=$lt_prog_compiler_pic_F77 15633 compiler_flags=-v 15634 linker_flags=-v 15635 verstring= 15636 output_objdir=. 15637 libname=conftest 15638 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15639 allow_undefined_flag_F77= 15640 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15641 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15642 ac_status=$? 15643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15644 (exit $ac_status); } 15645 then 15646 archive_cmds_need_lc_F77=no 15647 else 15648 archive_cmds_need_lc_F77=yes 15649 fi 15650 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15651 else 15652 cat conftest.err 1>&5 15653 fi 15654 $rm conftest* 15655 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15656echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } 15657 ;; 15658 esac 15659 fi 15660 ;; 15661esac 15662 15663{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15664echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 15665library_names_spec= 15666libname_spec='lib$name' 15667soname_spec= 15668shrext_cmds=".so" 15669postinstall_cmds= 15670postuninstall_cmds= 15671finish_cmds= 15672finish_eval= 15673shlibpath_var= 15674shlibpath_overrides_runpath=unknown 15675version_type=none 15676dynamic_linker="$host_os ld.so" 15677sys_lib_dlsearch_path_spec="/lib /usr/lib" 15678if test "$GCC" = yes; then 15679 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15680 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 15681 # if the path contains ";" then we assume it to be the separator 15682 # otherwise default to the standard path separator (i.e. ":") - it is 15683 # assumed that no part of a normal pathname contains ";" but that should 15684 # okay in the real world where ";" in dirpaths is itself problematic. 15685 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15686 else 15687 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15688 fi 15689else 15690 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15691fi 15692need_lib_prefix=unknown 15693hardcode_into_libs=no 15694 15695# when you set need_version to no, make sure it does not cause -set_version 15696# flags to be left without arguments 15697need_version=unknown 15698 15699case $host_os in 15700aix3*) 15701 version_type=linux 15702 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15703 shlibpath_var=LIBPATH 15704 15705 # AIX 3 has no versioning support, so we append a major version to the name. 15706 soname_spec='${libname}${release}${shared_ext}$major' 15707 ;; 15708 15709aix4* | aix5*) 15710 version_type=linux 15711 need_lib_prefix=no 15712 need_version=no 15713 hardcode_into_libs=yes 15714 if test "$host_cpu" = ia64; then 15715 # AIX 5 supports IA64 15716 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15717 shlibpath_var=LD_LIBRARY_PATH 15718 else 15719 # With GCC up to 2.95.x, collect2 would create an import file 15720 # for dependence libraries. The import file would start with 15721 # the line `#! .'. This would cause the generated library to 15722 # depend on `.', always an invalid library. This was fixed in 15723 # development snapshots of GCC prior to 3.0. 15724 case $host_os in 15725 aix4 | aix4.[01] | aix4.[01].*) 15726 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15727 echo ' yes ' 15728 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15729 : 15730 else 15731 can_build_shared=no 15732 fi 15733 ;; 15734 esac 15735 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15736 # soname into executable. Probably we can add versioning support to 15737 # collect2, so additional links can be useful in future. 15738 if test "$aix_use_runtimelinking" = yes; then 15739 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15740 # instead of lib<name>.a to let people know that these are not 15741 # typical AIX shared libraries. 15742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15743 else 15744 # We preserve .a as extension for shared libraries through AIX4.2 15745 # and later when we are not doing run time linking. 15746 library_names_spec='${libname}${release}.a $libname.a' 15747 soname_spec='${libname}${release}${shared_ext}$major' 15748 fi 15749 shlibpath_var=LIBPATH 15750 fi 15751 ;; 15752 15753amigaos*) 15754 library_names_spec='$libname.ixlibrary $libname.a' 15755 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15756 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' 15757 ;; 15758 15759beos*) 15760 library_names_spec='${libname}${shared_ext}' 15761 dynamic_linker="$host_os ld.so" 15762 shlibpath_var=LIBRARY_PATH 15763 ;; 15764 15765bsdi[45]*) 15766 version_type=linux 15767 need_version=no 15768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15769 soname_spec='${libname}${release}${shared_ext}$major' 15770 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15771 shlibpath_var=LD_LIBRARY_PATH 15772 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15773 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15774 # the default ld.so.conf also contains /usr/contrib/lib and 15775 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15776 # libtool to hard-code these into programs 15777 ;; 15778 15779cygwin* | mingw* | pw32*) 15780 version_type=windows 15781 shrext_cmds=".dll" 15782 need_version=no 15783 need_lib_prefix=no 15784 15785 case $GCC,$host_os in 15786 yes,cygwin* | yes,mingw* | yes,pw32*) 15787 library_names_spec='$libname.dll.a' 15788 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15789 postinstall_cmds='base_file=`basename \${file}`~ 15790 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15791 dldir=$destdir/`dirname \$dlpath`~ 15792 test -d \$dldir || mkdir -p \$dldir~ 15793 $install_prog $dir/$dlname \$dldir/$dlname~ 15794 chmod a+x \$dldir/$dlname' 15795 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15796 dlpath=$dir/\$dldll~ 15797 $rm \$dlpath' 15798 shlibpath_overrides_runpath=yes 15799 15800 case $host_os in 15801 cygwin*) 15802 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15803 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15804 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15805 ;; 15806 mingw*) 15807 # MinGW DLLs use traditional 'lib' prefix 15808 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15809 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15810 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15811 # It is most probably a Windows format PATH printed by 15812 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15813 # path with ; separators, and with drive letters. We can handle the 15814 # drive letters (cygwin fileutils understands them), so leave them, 15815 # especially as we might pass files found there to a mingw objdump, 15816 # which wouldn't understand a cygwinified path. Ahh. 15817 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15818 else 15819 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15820 fi 15821 ;; 15822 pw32*) 15823 # pw32 DLLs use 'pw' prefix rather than 'lib' 15824 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15825 ;; 15826 esac 15827 ;; 15828 15829 *) 15830 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15831 ;; 15832 esac 15833 dynamic_linker='Win32 ld.exe' 15834 # FIXME: first we should search . and the directory the executable is in 15835 shlibpath_var=PATH 15836 ;; 15837 15838darwin* | rhapsody*) 15839 dynamic_linker="$host_os dyld" 15840 version_type=darwin 15841 need_lib_prefix=no 15842 need_version=no 15843 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15844 soname_spec='${libname}${release}${major}$shared_ext' 15845 shlibpath_overrides_runpath=yes 15846 shlibpath_var=DYLD_LIBRARY_PATH 15847 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15848 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 15849 if test "$GCC" = yes; then 15850 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"` 15851 else 15852 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 15853 fi 15854 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15855 ;; 15856 15857dgux*) 15858 version_type=linux 15859 need_lib_prefix=no 15860 need_version=no 15861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15862 soname_spec='${libname}${release}${shared_ext}$major' 15863 shlibpath_var=LD_LIBRARY_PATH 15864 ;; 15865 15866freebsd1*) 15867 dynamic_linker=no 15868 ;; 15869 15870freebsd* | dragonfly*) 15871 # DragonFly does not have aout. When/if they implement a new 15872 # versioning mechanism, adjust this. 15873 if test -x /usr/bin/objformat; then 15874 objformat=`/usr/bin/objformat` 15875 else 15876 case $host_os in 15877 freebsd[123]*) objformat=aout ;; 15878 *) objformat=elf ;; 15879 esac 15880 fi 15881 version_type=freebsd-$objformat 15882 case $version_type in 15883 freebsd-elf*) 15884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15885 need_version=no 15886 need_lib_prefix=no 15887 ;; 15888 freebsd-*) 15889 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15890 need_version=yes 15891 ;; 15892 esac 15893 shlibpath_var=LD_LIBRARY_PATH 15894 case $host_os in 15895 freebsd2*) 15896 shlibpath_overrides_runpath=yes 15897 ;; 15898 freebsd3.[01]* | freebsdelf3.[01]*) 15899 shlibpath_overrides_runpath=yes 15900 hardcode_into_libs=yes 15901 ;; 15902 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15903 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15904 shlibpath_overrides_runpath=no 15905 hardcode_into_libs=yes 15906 ;; 15907 freebsd*) # from 4.6 on 15908 shlibpath_overrides_runpath=yes 15909 hardcode_into_libs=yes 15910 ;; 15911 esac 15912 ;; 15913 15914gnu*) 15915 version_type=linux 15916 need_lib_prefix=no 15917 need_version=no 15918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15919 soname_spec='${libname}${release}${shared_ext}$major' 15920 shlibpath_var=LD_LIBRARY_PATH 15921 hardcode_into_libs=yes 15922 ;; 15923 15924hpux9* | hpux10* | hpux11*) 15925 # Give a soname corresponding to the major version so that dld.sl refuses to 15926 # link against other versions. 15927 version_type=sunos 15928 need_lib_prefix=no 15929 need_version=no 15930 case $host_cpu in 15931 ia64*) 15932 shrext_cmds='.so' 15933 hardcode_into_libs=yes 15934 dynamic_linker="$host_os dld.so" 15935 shlibpath_var=LD_LIBRARY_PATH 15936 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15938 soname_spec='${libname}${release}${shared_ext}$major' 15939 if test "X$HPUX_IA64_MODE" = X32; then 15940 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15941 else 15942 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15943 fi 15944 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15945 ;; 15946 hppa*64*) 15947 shrext_cmds='.sl' 15948 hardcode_into_libs=yes 15949 dynamic_linker="$host_os dld.sl" 15950 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15951 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15953 soname_spec='${libname}${release}${shared_ext}$major' 15954 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15955 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15956 ;; 15957 *) 15958 shrext_cmds='.sl' 15959 dynamic_linker="$host_os dld.sl" 15960 shlibpath_var=SHLIB_PATH 15961 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15963 soname_spec='${libname}${release}${shared_ext}$major' 15964 ;; 15965 esac 15966 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15967 postinstall_cmds='chmod 555 $lib' 15968 ;; 15969 15970interix3*) 15971 version_type=linux 15972 need_lib_prefix=no 15973 need_version=no 15974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15975 soname_spec='${libname}${release}${shared_ext}$major' 15976 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15977 shlibpath_var=LD_LIBRARY_PATH 15978 shlibpath_overrides_runpath=no 15979 hardcode_into_libs=yes 15980 ;; 15981 15982irix5* | irix6* | nonstopux*) 15983 case $host_os in 15984 nonstopux*) version_type=nonstopux ;; 15985 *) 15986 if test "$lt_cv_prog_gnu_ld" = yes; then 15987 version_type=linux 15988 else 15989 version_type=irix 15990 fi ;; 15991 esac 15992 need_lib_prefix=no 15993 need_version=no 15994 soname_spec='${libname}${release}${shared_ext}$major' 15995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15996 case $host_os in 15997 irix5* | nonstopux*) 15998 libsuff= shlibsuff= 15999 ;; 16000 *) 16001 case $LD in # libtool.m4 will add one of these switches to LD 16002 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16003 libsuff= shlibsuff= libmagic=32-bit;; 16004 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16005 libsuff=32 shlibsuff=N32 libmagic=N32;; 16006 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16007 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16008 *) libsuff= shlibsuff= libmagic=never-match;; 16009 esac 16010 ;; 16011 esac 16012 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16013 shlibpath_overrides_runpath=no 16014 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16015 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16016 hardcode_into_libs=yes 16017 ;; 16018 16019# No shared lib support for Linux oldld, aout, or coff. 16020linux*oldld* | linux*aout* | linux*coff*) 16021 dynamic_linker=no 16022 ;; 16023 16024# This must be Linux ELF. 16025linux* | k*bsd*-gnu) 16026 version_type=linux 16027 need_lib_prefix=no 16028 need_version=no 16029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16030 soname_spec='${libname}${release}${shared_ext}$major' 16031 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16032 shlibpath_var=LD_LIBRARY_PATH 16033 shlibpath_overrides_runpath=no 16034 # This implies no fast_install, which is unacceptable. 16035 # Some rework will be needed to allow for fast_install 16036 # before this can be enabled. 16037 hardcode_into_libs=yes 16038 16039 # Append ld.so.conf contents to the search path 16040 if test -f /etc/ld.so.conf; then 16041 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' ' '` 16042 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16043 fi 16044 16045 # We used to test for /lib/ld.so.1 and disable shared libraries on 16046 # powerpc, because MkLinux only supported shared libraries with the 16047 # GNU dynamic linker. Since this was broken with cross compilers, 16048 # most powerpc-linux boxes support dynamic linking these days and 16049 # people can always --disable-shared, the test was removed, and we 16050 # assume the GNU/Linux dynamic linker is in use. 16051 dynamic_linker='GNU/Linux ld.so' 16052 ;; 16053 16054netbsdelf*-gnu) 16055 version_type=linux 16056 need_lib_prefix=no 16057 need_version=no 16058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16059 soname_spec='${libname}${release}${shared_ext}$major' 16060 shlibpath_var=LD_LIBRARY_PATH 16061 shlibpath_overrides_runpath=no 16062 hardcode_into_libs=yes 16063 dynamic_linker='NetBSD ld.elf_so' 16064 ;; 16065 16066netbsd*) 16067 version_type=sunos 16068 need_lib_prefix=no 16069 need_version=no 16070 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16072 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16073 dynamic_linker='NetBSD (a.out) ld.so' 16074 else 16075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16076 soname_spec='${libname}${release}${shared_ext}$major' 16077 dynamic_linker='NetBSD ld.elf_so' 16078 fi 16079 shlibpath_var=LD_LIBRARY_PATH 16080 shlibpath_overrides_runpath=yes 16081 hardcode_into_libs=yes 16082 ;; 16083 16084newsos6) 16085 version_type=linux 16086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16087 shlibpath_var=LD_LIBRARY_PATH 16088 shlibpath_overrides_runpath=yes 16089 ;; 16090 16091nto-qnx*) 16092 version_type=linux 16093 need_lib_prefix=no 16094 need_version=no 16095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16096 soname_spec='${libname}${release}${shared_ext}$major' 16097 shlibpath_var=LD_LIBRARY_PATH 16098 shlibpath_overrides_runpath=yes 16099 ;; 16100 16101openbsd*) 16102 version_type=sunos 16103 sys_lib_dlsearch_path_spec="/usr/lib" 16104 need_lib_prefix=no 16105 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16106 case $host_os in 16107 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16108 *) need_version=no ;; 16109 esac 16110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16111 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16112 shlibpath_var=LD_LIBRARY_PATH 16113 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16114 case $host_os in 16115 openbsd2.[89] | openbsd2.[89].*) 16116 shlibpath_overrides_runpath=no 16117 ;; 16118 *) 16119 shlibpath_overrides_runpath=yes 16120 ;; 16121 esac 16122 else 16123 shlibpath_overrides_runpath=yes 16124 fi 16125 ;; 16126 16127os2*) 16128 libname_spec='$name' 16129 shrext_cmds=".dll" 16130 need_lib_prefix=no 16131 library_names_spec='$libname${shared_ext} $libname.a' 16132 dynamic_linker='OS/2 ld.exe' 16133 shlibpath_var=LIBPATH 16134 ;; 16135 16136osf3* | osf4* | osf5*) 16137 version_type=osf 16138 need_lib_prefix=no 16139 need_version=no 16140 soname_spec='${libname}${release}${shared_ext}$major' 16141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16142 shlibpath_var=LD_LIBRARY_PATH 16143 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16144 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16145 ;; 16146 16147solaris*) 16148 version_type=linux 16149 need_lib_prefix=no 16150 need_version=no 16151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16152 soname_spec='${libname}${release}${shared_ext}$major' 16153 shlibpath_var=LD_LIBRARY_PATH 16154 shlibpath_overrides_runpath=yes 16155 hardcode_into_libs=yes 16156 # ldd complains unless libraries are executable 16157 postinstall_cmds='chmod +x $lib' 16158 ;; 16159 16160sunos4*) 16161 version_type=sunos 16162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16163 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16164 shlibpath_var=LD_LIBRARY_PATH 16165 shlibpath_overrides_runpath=yes 16166 if test "$with_gnu_ld" = yes; then 16167 need_lib_prefix=no 16168 fi 16169 need_version=yes 16170 ;; 16171 16172sysv4 | sysv4.3*) 16173 version_type=linux 16174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16175 soname_spec='${libname}${release}${shared_ext}$major' 16176 shlibpath_var=LD_LIBRARY_PATH 16177 case $host_vendor in 16178 sni) 16179 shlibpath_overrides_runpath=no 16180 need_lib_prefix=no 16181 export_dynamic_flag_spec='${wl}-Blargedynsym' 16182 runpath_var=LD_RUN_PATH 16183 ;; 16184 siemens) 16185 need_lib_prefix=no 16186 ;; 16187 motorola) 16188 need_lib_prefix=no 16189 need_version=no 16190 shlibpath_overrides_runpath=no 16191 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16192 ;; 16193 esac 16194 ;; 16195 16196sysv4*MP*) 16197 if test -d /usr/nec ;then 16198 version_type=linux 16199 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16200 soname_spec='$libname${shared_ext}.$major' 16201 shlibpath_var=LD_LIBRARY_PATH 16202 fi 16203 ;; 16204 16205sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16206 version_type=freebsd-elf 16207 need_lib_prefix=no 16208 need_version=no 16209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16210 soname_spec='${libname}${release}${shared_ext}$major' 16211 shlibpath_var=LD_LIBRARY_PATH 16212 hardcode_into_libs=yes 16213 if test "$with_gnu_ld" = yes; then 16214 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16215 shlibpath_overrides_runpath=no 16216 else 16217 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16218 shlibpath_overrides_runpath=yes 16219 case $host_os in 16220 sco3.2v5*) 16221 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16222 ;; 16223 esac 16224 fi 16225 sys_lib_dlsearch_path_spec='/usr/lib' 16226 ;; 16227 16228uts4*) 16229 version_type=linux 16230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16231 soname_spec='${libname}${release}${shared_ext}$major' 16232 shlibpath_var=LD_LIBRARY_PATH 16233 ;; 16234 16235*) 16236 dynamic_linker=no 16237 ;; 16238esac 16239{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 16240echo "${ECHO_T}$dynamic_linker" >&6; } 16241test "$dynamic_linker" = no && can_build_shared=no 16242 16243variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16244if test "$GCC" = yes; then 16245 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16246fi 16247 16248{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 16249echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 16250hardcode_action_F77= 16251if test -n "$hardcode_libdir_flag_spec_F77" || \ 16252 test -n "$runpath_var_F77" || \ 16253 test "X$hardcode_automatic_F77" = "Xyes" ; then 16254 16255 # We can hardcode non-existant directories. 16256 if test "$hardcode_direct_F77" != no && 16257 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16258 # have to relink, otherwise we might link with an installed library 16259 # when we should be linking with a yet-to-be-installed one 16260 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 16261 test "$hardcode_minus_L_F77" != no; then 16262 # Linking always hardcodes the temporary library directory. 16263 hardcode_action_F77=relink 16264 else 16265 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16266 hardcode_action_F77=immediate 16267 fi 16268else 16269 # We cannot hardcode anything, or else we can only hardcode existing 16270 # directories. 16271 hardcode_action_F77=unsupported 16272fi 16273{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 16274echo "${ECHO_T}$hardcode_action_F77" >&6; } 16275 16276if test "$hardcode_action_F77" = relink; then 16277 # Fast installation is not supported 16278 enable_fast_install=no 16279elif test "$shlibpath_overrides_runpath" = yes || 16280 test "$enable_shared" = no; then 16281 # Fast installation is not necessary 16282 enable_fast_install=needless 16283fi 16284 16285 16286# The else clause should only fire when bootstrapping the 16287# libtool distribution, otherwise you forgot to ship ltmain.sh 16288# with your package, and you will get complaints that there are 16289# no rules to generate ltmain.sh. 16290if test -f "$ltmain"; then 16291 # See if we are running on zsh, and set the options which allow our commands through 16292 # without removal of \ escapes. 16293 if test -n "${ZSH_VERSION+set}" ; then 16294 setopt NO_GLOB_SUBST 16295 fi 16296 # Now quote all the things that may contain metacharacters while being 16297 # careful not to overquote the AC_SUBSTed values. We take copies of the 16298 # variables and quote the copies for generation of the libtool script. 16299 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 16300 SED SHELL STRIP \ 16301 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 16302 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 16303 deplibs_check_method reload_flag reload_cmds need_locks \ 16304 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 16305 lt_cv_sys_global_symbol_to_c_name_address \ 16306 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 16307 old_postinstall_cmds old_postuninstall_cmds \ 16308 compiler_F77 \ 16309 CC_F77 \ 16310 LD_F77 \ 16311 lt_prog_compiler_wl_F77 \ 16312 lt_prog_compiler_pic_F77 \ 16313 lt_prog_compiler_static_F77 \ 16314 lt_prog_compiler_no_builtin_flag_F77 \ 16315 export_dynamic_flag_spec_F77 \ 16316 thread_safe_flag_spec_F77 \ 16317 whole_archive_flag_spec_F77 \ 16318 enable_shared_with_static_runtimes_F77 \ 16319 old_archive_cmds_F77 \ 16320 old_archive_from_new_cmds_F77 \ 16321 predep_objects_F77 \ 16322 postdep_objects_F77 \ 16323 predeps_F77 \ 16324 postdeps_F77 \ 16325 compiler_lib_search_path_F77 \ 16326 archive_cmds_F77 \ 16327 archive_expsym_cmds_F77 \ 16328 postinstall_cmds_F77 \ 16329 postuninstall_cmds_F77 \ 16330 old_archive_from_expsyms_cmds_F77 \ 16331 allow_undefined_flag_F77 \ 16332 no_undefined_flag_F77 \ 16333 export_symbols_cmds_F77 \ 16334 hardcode_libdir_flag_spec_F77 \ 16335 hardcode_libdir_flag_spec_ld_F77 \ 16336 hardcode_libdir_separator_F77 \ 16337 hardcode_automatic_F77 \ 16338 module_cmds_F77 \ 16339 module_expsym_cmds_F77 \ 16340 lt_cv_prog_compiler_c_o_F77 \ 16341 exclude_expsyms_F77 \ 16342 include_expsyms_F77; do 16343 16344 case $var in 16345 old_archive_cmds_F77 | \ 16346 old_archive_from_new_cmds_F77 | \ 16347 archive_cmds_F77 | \ 16348 archive_expsym_cmds_F77 | \ 16349 module_cmds_F77 | \ 16350 module_expsym_cmds_F77 | \ 16351 old_archive_from_expsyms_cmds_F77 | \ 16352 export_symbols_cmds_F77 | \ 16353 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 16354 postinstall_cmds | postuninstall_cmds | \ 16355 old_postinstall_cmds | old_postuninstall_cmds | \ 16356 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 16357 # Double-quote double-evaled strings. 16358 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 16359 ;; 16360 *) 16361 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 16362 ;; 16363 esac 16364 done 16365 16366 case $lt_echo in 16367 *'\$0 --fallback-echo"') 16368 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 16369 ;; 16370 esac 16371 16372cfgfile="$ofile" 16373 16374 cat <<__EOF__ >> "$cfgfile" 16375# ### BEGIN LIBTOOL TAG CONFIG: $tagname 16376 16377# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16378 16379# Shell to use when invoking shell scripts. 16380SHELL=$lt_SHELL 16381 16382# Whether or not to build shared libraries. 16383build_libtool_libs=$enable_shared 16384 16385# Whether or not to build static libraries. 16386build_old_libs=$enable_static 16387 16388# Whether or not to add -lc for building shared libraries. 16389build_libtool_need_lc=$archive_cmds_need_lc_F77 16390 16391# Whether or not to disallow shared libs when runtime libs are static 16392allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 16393 16394# Whether or not to optimize for fast installation. 16395fast_install=$enable_fast_install 16396 16397# The host system. 16398host_alias=$host_alias 16399host=$host 16400host_os=$host_os 16401 16402# The build system. 16403build_alias=$build_alias 16404build=$build 16405build_os=$build_os 16406 16407# An echo program that does not interpret backslashes. 16408echo=$lt_echo 16409 16410# The archiver. 16411AR=$lt_AR 16412AR_FLAGS=$lt_AR_FLAGS 16413 16414# A C compiler. 16415LTCC=$lt_LTCC 16416 16417# LTCC compiler flags. 16418LTCFLAGS=$lt_LTCFLAGS 16419 16420# A language-specific compiler. 16421CC=$lt_compiler_F77 16422 16423# Is the compiler the GNU C compiler? 16424with_gcc=$GCC_F77 16425 16426# An ERE matcher. 16427EGREP=$lt_EGREP 16428 16429# The linker used to build libraries. 16430LD=$lt_LD_F77 16431 16432# Whether we need hard or soft links. 16433LN_S=$lt_LN_S 16434 16435# A BSD-compatible nm program. 16436NM=$lt_NM 16437 16438# A symbol stripping program 16439STRIP=$lt_STRIP 16440 16441# Used to examine libraries when file_magic_cmd begins "file" 16442MAGIC_CMD=$MAGIC_CMD 16443 16444# Used on cygwin: DLL creation program. 16445DLLTOOL="$DLLTOOL" 16446 16447# Used on cygwin: object dumper. 16448OBJDUMP="$OBJDUMP" 16449 16450# Used on cygwin: assembler. 16451AS="$AS" 16452 16453# The name of the directory that contains temporary libtool files. 16454objdir=$objdir 16455 16456# How to create reloadable object files. 16457reload_flag=$lt_reload_flag 16458reload_cmds=$lt_reload_cmds 16459 16460# How to pass a linker flag through the compiler. 16461wl=$lt_lt_prog_compiler_wl_F77 16462 16463# Object file suffix (normally "o"). 16464objext="$ac_objext" 16465 16466# Old archive suffix (normally "a"). 16467libext="$libext" 16468 16469# Shared library suffix (normally ".so"). 16470shrext_cmds='$shrext_cmds' 16471 16472# Executable file suffix (normally ""). 16473exeext="$exeext" 16474 16475# Additional compiler flags for building library objects. 16476pic_flag=$lt_lt_prog_compiler_pic_F77 16477pic_mode=$pic_mode 16478 16479# What is the maximum length of a command? 16480max_cmd_len=$lt_cv_sys_max_cmd_len 16481 16482# Does compiler simultaneously support -c and -o options? 16483compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 16484 16485# Must we lock files when doing compilation? 16486need_locks=$lt_need_locks 16487 16488# Do we need the lib prefix for modules? 16489need_lib_prefix=$need_lib_prefix 16490 16491# Do we need a version for libraries? 16492need_version=$need_version 16493 16494# Whether dlopen is supported. 16495dlopen_support=$enable_dlopen 16496 16497# Whether dlopen of programs is supported. 16498dlopen_self=$enable_dlopen_self 16499 16500# Whether dlopen of statically linked programs is supported. 16501dlopen_self_static=$enable_dlopen_self_static 16502 16503# Compiler flag to prevent dynamic linking. 16504link_static_flag=$lt_lt_prog_compiler_static_F77 16505 16506# Compiler flag to turn off builtin functions. 16507no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 16508 16509# Compiler flag to allow reflexive dlopens. 16510export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 16511 16512# Compiler flag to generate shared objects directly from archives. 16513whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 16514 16515# Compiler flag to generate thread-safe objects. 16516thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 16517 16518# Library versioning type. 16519version_type=$version_type 16520 16521# Format of library name prefix. 16522libname_spec=$lt_libname_spec 16523 16524# List of archive names. First name is the real one, the rest are links. 16525# The last name is the one that the linker finds with -lNAME. 16526library_names_spec=$lt_library_names_spec 16527 16528# The coded name of the library, if different from the real name. 16529soname_spec=$lt_soname_spec 16530 16531# Commands used to build and install an old-style archive. 16532RANLIB=$lt_RANLIB 16533old_archive_cmds=$lt_old_archive_cmds_F77 16534old_postinstall_cmds=$lt_old_postinstall_cmds 16535old_postuninstall_cmds=$lt_old_postuninstall_cmds 16536 16537# Create an old-style archive from a shared archive. 16538old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 16539 16540# Create a temporary old-style archive to link instead of a shared archive. 16541old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 16542 16543# Commands used to build and install a shared archive. 16544archive_cmds=$lt_archive_cmds_F77 16545archive_expsym_cmds=$lt_archive_expsym_cmds_F77 16546postinstall_cmds=$lt_postinstall_cmds 16547postuninstall_cmds=$lt_postuninstall_cmds 16548 16549# Commands used to build a loadable module (assumed same as above if empty) 16550module_cmds=$lt_module_cmds_F77 16551module_expsym_cmds=$lt_module_expsym_cmds_F77 16552 16553# Commands to strip libraries. 16554old_striplib=$lt_old_striplib 16555striplib=$lt_striplib 16556 16557# Dependencies to place before the objects being linked to create a 16558# shared library. 16559predep_objects=$lt_predep_objects_F77 16560 16561# Dependencies to place after the objects being linked to create a 16562# shared library. 16563postdep_objects=$lt_postdep_objects_F77 16564 16565# Dependencies to place before the objects being linked to create a 16566# shared library. 16567predeps=$lt_predeps_F77 16568 16569# Dependencies to place after the objects being linked to create a 16570# shared library. 16571postdeps=$lt_postdeps_F77 16572 16573# The library search path used internally by the compiler when linking 16574# a shared library. 16575compiler_lib_search_path=$lt_compiler_lib_search_path_F77 16576 16577# Method to check whether dependent libraries are shared objects. 16578deplibs_check_method=$lt_deplibs_check_method 16579 16580# Command to use when deplibs_check_method == file_magic. 16581file_magic_cmd=$lt_file_magic_cmd 16582 16583# Flag that allows shared libraries with undefined symbols to be built. 16584allow_undefined_flag=$lt_allow_undefined_flag_F77 16585 16586# Flag that forces no undefined symbols. 16587no_undefined_flag=$lt_no_undefined_flag_F77 16588 16589# Commands used to finish a libtool library installation in a directory. 16590finish_cmds=$lt_finish_cmds 16591 16592# Same as above, but a single script fragment to be evaled but not shown. 16593finish_eval=$lt_finish_eval 16594 16595# Take the output of nm and produce a listing of raw symbols and C names. 16596global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16597 16598# Transform the output of nm in a proper C declaration 16599global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16600 16601# Transform the output of nm in a C name address pair 16602global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16603 16604# This is the shared library runtime path variable. 16605runpath_var=$runpath_var 16606 16607# This is the shared library path variable. 16608shlibpath_var=$shlibpath_var 16609 16610# Is shlibpath searched before the hard-coded library search path? 16611shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16612 16613# How to hardcode a shared library path into an executable. 16614hardcode_action=$hardcode_action_F77 16615 16616# Whether we should hardcode library paths into libraries. 16617hardcode_into_libs=$hardcode_into_libs 16618 16619# Flag to hardcode \$libdir into a binary during linking. 16620# This must work even if \$libdir does not exist. 16621hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16622 16623# If ld is used when linking, flag to hardcode \$libdir into 16624# a binary during linking. This must work even if \$libdir does 16625# not exist. 16626hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16627 16628# Whether we need a single -rpath flag with a separated argument. 16629hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16630 16631# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16632# resulting binary. 16633hardcode_direct=$hardcode_direct_F77 16634 16635# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16636# resulting binary. 16637hardcode_minus_L=$hardcode_minus_L_F77 16638 16639# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16640# the resulting binary. 16641hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16642 16643# Set to yes if building a shared library automatically hardcodes DIR into the library 16644# and all subsequent libraries and executables linked against it. 16645hardcode_automatic=$hardcode_automatic_F77 16646 16647# Variables whose values should be saved in libtool wrapper scripts and 16648# restored at relink time. 16649variables_saved_for_relink="$variables_saved_for_relink" 16650 16651# Whether libtool must link a program against all its dependency libraries. 16652link_all_deplibs=$link_all_deplibs_F77 16653 16654# Compile-time system search path for libraries 16655sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16656 16657# Run-time system search path for libraries 16658sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16659 16660# Fix the shell variable \$srcfile for the compiler. 16661fix_srcfile_path="$fix_srcfile_path_F77" 16662 16663# Set to yes if exported symbols are required. 16664always_export_symbols=$always_export_symbols_F77 16665 16666# The commands to list exported symbols. 16667export_symbols_cmds=$lt_export_symbols_cmds_F77 16668 16669# The commands to extract the exported symbol list from a shared archive. 16670extract_expsyms_cmds=$lt_extract_expsyms_cmds 16671 16672# Symbols that should not be listed in the preloaded symbols. 16673exclude_expsyms=$lt_exclude_expsyms_F77 16674 16675# Symbols that must always be exported. 16676include_expsyms=$lt_include_expsyms_F77 16677 16678# ### END LIBTOOL TAG CONFIG: $tagname 16679 16680__EOF__ 16681 16682 16683else 16684 # If there is no Makefile yet, we rely on a make rule to execute 16685 # `config.status --recheck' to rerun these tests and create the 16686 # libtool script then. 16687 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16688 if test -f "$ltmain_in"; then 16689 test -f Makefile && make "$ltmain" 16690 fi 16691fi 16692 16693 16694ac_ext=c 16695ac_cpp='$CPP $CPPFLAGS' 16696ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16697ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16698ac_compiler_gnu=$ac_cv_c_compiler_gnu 16699 16700CC="$lt_save_CC" 16701 16702 else 16703 tagname="" 16704 fi 16705 ;; 16706 16707 GCJ) 16708 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16709 16710 16711# Source file extension for Java test sources. 16712ac_ext=java 16713 16714# Object file extension for compiled Java test sources. 16715objext=o 16716objext_GCJ=$objext 16717 16718# Code to be used in simple compile tests 16719lt_simple_compile_test_code="class foo {}\n" 16720 16721# Code to be used in simple link tests 16722lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 16723 16724# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16725 16726# If no C compiler was specified, use CC. 16727LTCC=${LTCC-"$CC"} 16728 16729# If no C compiler flags were specified, use CFLAGS. 16730LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16731 16732# Allow CC to be a program name with arguments. 16733compiler=$CC 16734 16735 16736# save warnings/boilerplate of simple test code 16737ac_outfile=conftest.$ac_objext 16738printf "$lt_simple_compile_test_code" >conftest.$ac_ext 16739eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16740_lt_compiler_boilerplate=`cat conftest.err` 16741$rm conftest* 16742 16743ac_outfile=conftest.$ac_objext 16744printf "$lt_simple_link_test_code" >conftest.$ac_ext 16745eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16746_lt_linker_boilerplate=`cat conftest.err` 16747$rm conftest* 16748 16749 16750# Allow CC to be a program name with arguments. 16751lt_save_CC="$CC" 16752CC=${GCJ-"gcj"} 16753compiler=$CC 16754compiler_GCJ=$CC 16755for cc_temp in $compiler""; do 16756 case $cc_temp in 16757 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16758 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16759 \-*) ;; 16760 *) break;; 16761 esac 16762done 16763cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16764 16765 16766# GCJ did not exist at the time GCC didn't implicitly link libc in. 16767archive_cmds_need_lc_GCJ=no 16768 16769old_archive_cmds_GCJ=$old_archive_cmds 16770 16771 16772lt_prog_compiler_no_builtin_flag_GCJ= 16773 16774if test "$GCC" = yes; then 16775 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16776 16777 16778{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16779echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 16780if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16781 echo $ECHO_N "(cached) $ECHO_C" >&6 16782else 16783 lt_cv_prog_compiler_rtti_exceptions=no 16784 ac_outfile=conftest.$ac_objext 16785 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16786 lt_compiler_flag="-fno-rtti -fno-exceptions" 16787 # Insert the option either (1) after the last *FLAGS variable, or 16788 # (2) before a word containing "conftest.", or (3) at the end. 16789 # Note that $ac_compile itself does not contain backslashes and begins 16790 # with a dollar sign (not a hyphen), so the echo should work correctly. 16791 # The option is referenced via a variable to avoid confusing sed. 16792 lt_compile=`echo "$ac_compile" | $SED \ 16793 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16794 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16795 -e 's:$: $lt_compiler_flag:'` 16796 (eval echo "\"\$as_me:16796: $lt_compile\"" >&5) 16797 (eval "$lt_compile" 2>conftest.err) 16798 ac_status=$? 16799 cat conftest.err >&5 16800 echo "$as_me:16800: \$? = $ac_status" >&5 16801 if (exit $ac_status) && test -s "$ac_outfile"; then 16802 # The compiler can only warn and ignore the option if not recognized 16803 # So say no if there are warnings other than the usual output. 16804 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16805 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16806 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16807 lt_cv_prog_compiler_rtti_exceptions=yes 16808 fi 16809 fi 16810 $rm conftest* 16811 16812fi 16813{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16814echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16815 16816if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16817 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16818else 16819 : 16820fi 16821 16822fi 16823 16824lt_prog_compiler_wl_GCJ= 16825lt_prog_compiler_pic_GCJ= 16826lt_prog_compiler_static_GCJ= 16827 16828{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16829echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 16830 16831 if test "$GCC" = yes; then 16832 lt_prog_compiler_wl_GCJ='-Wl,' 16833 lt_prog_compiler_static_GCJ='-static' 16834 16835 case $host_os in 16836 aix*) 16837 # All AIX code is PIC. 16838 if test "$host_cpu" = ia64; then 16839 # AIX 5 now supports IA64 processor 16840 lt_prog_compiler_static_GCJ='-Bstatic' 16841 fi 16842 ;; 16843 16844 amigaos*) 16845 # FIXME: we need at least 68020 code to build shared libraries, but 16846 # adding the `-m68020' flag to GCC prevents building anything better, 16847 # like `-m68040'. 16848 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16849 ;; 16850 16851 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16852 # PIC is the default for these OSes. 16853 ;; 16854 16855 mingw* | pw32* | os2*) 16856 # This hack is so that the source file can tell whether it is being 16857 # built for inclusion in a dll (and should export symbols for example). 16858 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16859 ;; 16860 16861 darwin* | rhapsody*) 16862 # PIC is the default on this platform 16863 # Common symbols not allowed in MH_DYLIB files 16864 lt_prog_compiler_pic_GCJ='-fno-common' 16865 ;; 16866 16867 interix3*) 16868 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16869 # Instead, we relocate shared libraries at runtime. 16870 ;; 16871 16872 msdosdjgpp*) 16873 # Just because we use GCC doesn't mean we suddenly get shared libraries 16874 # on systems that don't support them. 16875 lt_prog_compiler_can_build_shared_GCJ=no 16876 enable_shared=no 16877 ;; 16878 16879 sysv4*MP*) 16880 if test -d /usr/nec; then 16881 lt_prog_compiler_pic_GCJ=-Kconform_pic 16882 fi 16883 ;; 16884 16885 hpux*) 16886 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16887 # not for PA HP-UX. 16888 case $host_cpu in 16889 hppa*64*|ia64*) 16890 # +Z the default 16891 ;; 16892 *) 16893 lt_prog_compiler_pic_GCJ='-fPIC' 16894 ;; 16895 esac 16896 ;; 16897 16898 *) 16899 lt_prog_compiler_pic_GCJ='-fPIC' 16900 ;; 16901 esac 16902 else 16903 # PORTME Check for flag to pass linker flags through the system compiler. 16904 case $host_os in 16905 aix*) 16906 lt_prog_compiler_wl_GCJ='-Wl,' 16907 if test "$host_cpu" = ia64; then 16908 # AIX 5 now supports IA64 processor 16909 lt_prog_compiler_static_GCJ='-Bstatic' 16910 else 16911 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16912 fi 16913 ;; 16914 darwin*) 16915 # PIC is the default on this platform 16916 # Common symbols not allowed in MH_DYLIB files 16917 case $cc_basename in 16918 xlc*) 16919 lt_prog_compiler_pic_GCJ='-qnocommon' 16920 lt_prog_compiler_wl_GCJ='-Wl,' 16921 ;; 16922 esac 16923 ;; 16924 16925 mingw* | pw32* | os2*) 16926 # This hack is so that the source file can tell whether it is being 16927 # built for inclusion in a dll (and should export symbols for example). 16928 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16929 ;; 16930 16931 hpux9* | hpux10* | hpux11*) 16932 lt_prog_compiler_wl_GCJ='-Wl,' 16933 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16934 # not for PA HP-UX. 16935 case $host_cpu in 16936 hppa*64*|ia64*) 16937 # +Z the default 16938 ;; 16939 *) 16940 lt_prog_compiler_pic_GCJ='+Z' 16941 ;; 16942 esac 16943 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16944 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 16945 ;; 16946 16947 irix5* | irix6* | nonstopux*) 16948 lt_prog_compiler_wl_GCJ='-Wl,' 16949 # PIC (with -KPIC) is the default. 16950 lt_prog_compiler_static_GCJ='-non_shared' 16951 ;; 16952 16953 newsos6) 16954 lt_prog_compiler_pic_GCJ='-KPIC' 16955 lt_prog_compiler_static_GCJ='-Bstatic' 16956 ;; 16957 16958 linux* | k*bsd*-gnu) 16959 case $cc_basename in 16960 icc* | ecc*) 16961 lt_prog_compiler_wl_GCJ='-Wl,' 16962 lt_prog_compiler_pic_GCJ='-KPIC' 16963 lt_prog_compiler_static_GCJ='-static' 16964 ;; 16965 pgcc* | pgf77* | pgf90* | pgf95*) 16966 # Portland Group compilers (*not* the Pentium gcc compiler, 16967 # which looks to be a dead project) 16968 lt_prog_compiler_wl_GCJ='-Wl,' 16969 lt_prog_compiler_pic_GCJ='-fpic' 16970 lt_prog_compiler_static_GCJ='-Bstatic' 16971 ;; 16972 ccc*) 16973 lt_prog_compiler_wl_GCJ='-Wl,' 16974 # All Alpha code is PIC. 16975 lt_prog_compiler_static_GCJ='-non_shared' 16976 ;; 16977 esac 16978 ;; 16979 16980 osf3* | osf4* | osf5*) 16981 lt_prog_compiler_wl_GCJ='-Wl,' 16982 # All OSF/1 code is PIC. 16983 lt_prog_compiler_static_GCJ='-non_shared' 16984 ;; 16985 16986 solaris*) 16987 lt_prog_compiler_pic_GCJ='-KPIC' 16988 lt_prog_compiler_static_GCJ='-Bstatic' 16989 case $cc_basename in 16990 f77* | f90* | f95*) 16991 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 16992 *) 16993 lt_prog_compiler_wl_GCJ='-Wl,';; 16994 esac 16995 ;; 16996 16997 sunos4*) 16998 lt_prog_compiler_wl_GCJ='-Qoption ld ' 16999 lt_prog_compiler_pic_GCJ='-PIC' 17000 lt_prog_compiler_static_GCJ='-Bstatic' 17001 ;; 17002 17003 sysv4 | sysv4.2uw2* | sysv4.3*) 17004 lt_prog_compiler_wl_GCJ='-Wl,' 17005 lt_prog_compiler_pic_GCJ='-KPIC' 17006 lt_prog_compiler_static_GCJ='-Bstatic' 17007 ;; 17008 17009 sysv4*MP*) 17010 if test -d /usr/nec ;then 17011 lt_prog_compiler_pic_GCJ='-Kconform_pic' 17012 lt_prog_compiler_static_GCJ='-Bstatic' 17013 fi 17014 ;; 17015 17016 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 17017 lt_prog_compiler_wl_GCJ='-Wl,' 17018 lt_prog_compiler_pic_GCJ='-KPIC' 17019 lt_prog_compiler_static_GCJ='-Bstatic' 17020 ;; 17021 17022 unicos*) 17023 lt_prog_compiler_wl_GCJ='-Wl,' 17024 lt_prog_compiler_can_build_shared_GCJ=no 17025 ;; 17026 17027 uts4*) 17028 lt_prog_compiler_pic_GCJ='-pic' 17029 lt_prog_compiler_static_GCJ='-Bstatic' 17030 ;; 17031 17032 *) 17033 lt_prog_compiler_can_build_shared_GCJ=no 17034 ;; 17035 esac 17036 fi 17037 17038{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 17039echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } 17040 17041# 17042# Check to make sure the PIC flag actually works. 17043# 17044if test -n "$lt_prog_compiler_pic_GCJ"; then 17045 17046{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 17047echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } 17048if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 17049 echo $ECHO_N "(cached) $ECHO_C" >&6 17050else 17051 lt_prog_compiler_pic_works_GCJ=no 17052 ac_outfile=conftest.$ac_objext 17053 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17054 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 17055 # Insert the option either (1) after the last *FLAGS variable, or 17056 # (2) before a word containing "conftest.", or (3) at the end. 17057 # Note that $ac_compile itself does not contain backslashes and begins 17058 # with a dollar sign (not a hyphen), so the echo should work correctly. 17059 # The option is referenced via a variable to avoid confusing sed. 17060 lt_compile=`echo "$ac_compile" | $SED \ 17061 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17062 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17063 -e 's:$: $lt_compiler_flag:'` 17064 (eval echo "\"\$as_me:17064: $lt_compile\"" >&5) 17065 (eval "$lt_compile" 2>conftest.err) 17066 ac_status=$? 17067 cat conftest.err >&5 17068 echo "$as_me:17068: \$? = $ac_status" >&5 17069 if (exit $ac_status) && test -s "$ac_outfile"; then 17070 # The compiler can only warn and ignore the option if not recognized 17071 # So say no if there are warnings other than the usual output. 17072 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 17073 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17074 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17075 lt_prog_compiler_pic_works_GCJ=yes 17076 fi 17077 fi 17078 $rm conftest* 17079 17080fi 17081{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 17082echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } 17083 17084if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 17085 case $lt_prog_compiler_pic_GCJ in 17086 "" | " "*) ;; 17087 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 17088 esac 17089else 17090 lt_prog_compiler_pic_GCJ= 17091 lt_prog_compiler_can_build_shared_GCJ=no 17092fi 17093 17094fi 17095case $host_os in 17096 # For platforms which do not support PIC, -DPIC is meaningless: 17097 *djgpp*) 17098 lt_prog_compiler_pic_GCJ= 17099 ;; 17100 *) 17101 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 17102 ;; 17103esac 17104 17105# 17106# Check to make sure the static flag actually works. 17107# 17108wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 17109{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 17110echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 17111if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 17112 echo $ECHO_N "(cached) $ECHO_C" >&6 17113else 17114 lt_prog_compiler_static_works_GCJ=no 17115 save_LDFLAGS="$LDFLAGS" 17116 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17117 printf "$lt_simple_link_test_code" > conftest.$ac_ext 17118 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17119 # The linker can only warn and ignore the option if not recognized 17120 # So say no if there are warnings 17121 if test -s conftest.err; then 17122 # Append any errors to the config.log. 17123 cat conftest.err 1>&5 17124 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 17125 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17126 if diff conftest.exp conftest.er2 >/dev/null; then 17127 lt_prog_compiler_static_works_GCJ=yes 17128 fi 17129 else 17130 lt_prog_compiler_static_works_GCJ=yes 17131 fi 17132 fi 17133 $rm conftest* 17134 LDFLAGS="$save_LDFLAGS" 17135 17136fi 17137{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 17138echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } 17139 17140if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 17141 : 17142else 17143 lt_prog_compiler_static_GCJ= 17144fi 17145 17146 17147{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 17148echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 17149if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 17150 echo $ECHO_N "(cached) $ECHO_C" >&6 17151else 17152 lt_cv_prog_compiler_c_o_GCJ=no 17153 $rm -r conftest 2>/dev/null 17154 mkdir conftest 17155 cd conftest 17156 mkdir out 17157 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17158 17159 lt_compiler_flag="-o out/conftest2.$ac_objext" 17160 # Insert the option either (1) after the last *FLAGS variable, or 17161 # (2) before a word containing "conftest.", or (3) at the end. 17162 # Note that $ac_compile itself does not contain backslashes and begins 17163 # with a dollar sign (not a hyphen), so the echo should work correctly. 17164 lt_compile=`echo "$ac_compile" | $SED \ 17165 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17166 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17167 -e 's:$: $lt_compiler_flag:'` 17168 (eval echo "\"\$as_me:17168: $lt_compile\"" >&5) 17169 (eval "$lt_compile" 2>out/conftest.err) 17170 ac_status=$? 17171 cat out/conftest.err >&5 17172 echo "$as_me:17172: \$? = $ac_status" >&5 17173 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17174 then 17175 # The compiler can only warn and ignore the option if not recognized 17176 # So say no if there are warnings 17177 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 17178 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17179 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17180 lt_cv_prog_compiler_c_o_GCJ=yes 17181 fi 17182 fi 17183 chmod u+w . 2>&5 17184 $rm conftest* 17185 # SGI C++ compiler will create directory out/ii_files/ for 17186 # template instantiation 17187 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 17188 $rm out/* && rmdir out 17189 cd .. 17190 rmdir conftest 17191 $rm conftest* 17192 17193fi 17194{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 17195echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } 17196 17197 17198hard_links="nottested" 17199if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 17200 # do not overwrite the value of need_locks provided by the user 17201 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 17202echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 17203 hard_links=yes 17204 $rm conftest* 17205 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17206 touch conftest.a 17207 ln conftest.a conftest.b 2>&5 || hard_links=no 17208 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17209 { echo "$as_me:$LINENO: result: $hard_links" >&5 17210echo "${ECHO_T}$hard_links" >&6; } 17211 if test "$hard_links" = no; then 17212 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 17213echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 17214 need_locks=warn 17215 fi 17216else 17217 need_locks=no 17218fi 17219 17220{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17221echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 17222 17223 runpath_var= 17224 allow_undefined_flag_GCJ= 17225 enable_shared_with_static_runtimes_GCJ=no 17226 archive_cmds_GCJ= 17227 archive_expsym_cmds_GCJ= 17228 old_archive_From_new_cmds_GCJ= 17229 old_archive_from_expsyms_cmds_GCJ= 17230 export_dynamic_flag_spec_GCJ= 17231 whole_archive_flag_spec_GCJ= 17232 thread_safe_flag_spec_GCJ= 17233 hardcode_libdir_flag_spec_GCJ= 17234 hardcode_libdir_flag_spec_ld_GCJ= 17235 hardcode_libdir_separator_GCJ= 17236 hardcode_direct_GCJ=no 17237 hardcode_minus_L_GCJ=no 17238 hardcode_shlibpath_var_GCJ=unsupported 17239 link_all_deplibs_GCJ=unknown 17240 hardcode_automatic_GCJ=no 17241 module_cmds_GCJ= 17242 module_expsym_cmds_GCJ= 17243 always_export_symbols_GCJ=no 17244 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17245 # include_expsyms should be a list of space-separated symbols to be *always* 17246 # included in the symbol list 17247 include_expsyms_GCJ= 17248 # exclude_expsyms can be an extended regexp of symbols to exclude 17249 # it will be wrapped by ` (' and `)$', so one must not match beginning or 17250 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 17251 # as well as any symbol that contains `d'. 17252 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 17253 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 17254 # platforms (ab)use it in PIC code, but their linkers get confused if 17255 # the symbol is explicitly referenced. Since portable code cannot 17256 # rely on this symbol name, it's probably fine to never include it in 17257 # preloaded symbol tables. 17258 extract_expsyms_cmds= 17259 # Just being paranoid about ensuring that cc_basename is set. 17260 for cc_temp in $compiler""; do 17261 case $cc_temp in 17262 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17263 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17264 \-*) ;; 17265 *) break;; 17266 esac 17267done 17268cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17269 17270 case $host_os in 17271 cygwin* | mingw* | pw32*) 17272 # FIXME: the MSVC++ port hasn't been tested in a loooong time 17273 # When not using gcc, we currently assume that we are using 17274 # Microsoft Visual C++. 17275 if test "$GCC" != yes; then 17276 with_gnu_ld=no 17277 fi 17278 ;; 17279 interix*) 17280 # we just hope/assume this is gcc and not c89 (= MSVC++) 17281 with_gnu_ld=yes 17282 ;; 17283 openbsd*) 17284 with_gnu_ld=no 17285 ;; 17286 esac 17287 17288 ld_shlibs_GCJ=yes 17289 if test "$with_gnu_ld" = yes; then 17290 # If archive_cmds runs LD, not CC, wlarc should be empty 17291 wlarc='${wl}' 17292 17293 # Set some defaults for GNU ld with shared library support. These 17294 # are reset later if shared libraries are not supported. Putting them 17295 # here allows them to be overridden if necessary. 17296 runpath_var=LD_RUN_PATH 17297 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 17298 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 17299 # ancient GNU ld didn't support --whole-archive et. al. 17300 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 17301 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 17302 else 17303 whole_archive_flag_spec_GCJ= 17304 fi 17305 supports_anon_versioning=no 17306 case `$LD -v 2>/dev/null` in 17307 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 17308 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 17309 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 17310 *\ 2.11.*) ;; # other 2.11 versions 17311 *) supports_anon_versioning=yes ;; 17312 esac 17313 17314 # See if GNU ld supports shared libraries. 17315 case $host_os in 17316 aix3* | aix4* | aix5*) 17317 # On AIX/PPC, the GNU linker is very broken 17318 if test "$host_cpu" != ia64; then 17319 ld_shlibs_GCJ=no 17320 cat <<EOF 1>&2 17321 17322*** Warning: the GNU linker, at least up to release 2.9.1, is reported 17323*** to be unable to reliably create shared libraries on AIX. 17324*** Therefore, libtool is disabling shared libraries support. If you 17325*** really care for shared libraries, you may want to modify your PATH 17326*** so that a non-GNU linker is found, and then restart. 17327 17328EOF 17329 fi 17330 ;; 17331 17332 amigaos*) 17333 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)' 17334 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17335 hardcode_minus_L_GCJ=yes 17336 17337 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 17338 # that the semantics of dynamic libraries on AmigaOS, at least up 17339 # to version 4, is to share data among multiple programs linked 17340 # with the same dynamic library. Since this doesn't match the 17341 # behavior of shared libraries on other platforms, we can't use 17342 # them. 17343 ld_shlibs_GCJ=no 17344 ;; 17345 17346 beos*) 17347 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17348 allow_undefined_flag_GCJ=unsupported 17349 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 17350 # support --undefined. This deserves some investigation. FIXME 17351 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17352 else 17353 ld_shlibs_GCJ=no 17354 fi 17355 ;; 17356 17357 cygwin* | mingw* | pw32*) 17358 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 17359 # as there is no search path for DLLs. 17360 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17361 allow_undefined_flag_GCJ=unsupported 17362 always_export_symbols_GCJ=no 17363 enable_shared_with_static_runtimes_GCJ=yes 17364 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 17365 17366 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 17367 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17368 # If the export-symbols file already is a .def file (1st line 17369 # is EXPORTS), use it as is; otherwise, prepend... 17370 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 17371 cp $export_symbols $output_objdir/$soname.def; 17372 else 17373 echo EXPORTS > $output_objdir/$soname.def; 17374 cat $export_symbols >> $output_objdir/$soname.def; 17375 fi~ 17376 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17377 else 17378 ld_shlibs_GCJ=no 17379 fi 17380 ;; 17381 17382 interix3*) 17383 hardcode_direct_GCJ=no 17384 hardcode_shlibpath_var_GCJ=no 17385 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17386 export_dynamic_flag_spec_GCJ='${wl}-E' 17387 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 17388 # Instead, shared libraries are loaded at an image base (0x10000000 by 17389 # default) and relocated if they conflict, which is a slow very memory 17390 # consuming and fragmenting process. To avoid this, we pick a random, 17391 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 17392 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 17393 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' 17394 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' 17395 ;; 17396 17397 linux* | k*bsd*-gnu) 17398 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17399 tmp_addflag= 17400 case $cc_basename,$host_cpu in 17401 pgcc*) # Portland Group C compiler 17402 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' 17403 tmp_addflag=' $pic_flag' 17404 ;; 17405 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 17406 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' 17407 tmp_addflag=' $pic_flag -Mnomain' ;; 17408 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 17409 tmp_addflag=' -i_dynamic' ;; 17410 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 17411 tmp_addflag=' -i_dynamic -nofor_main' ;; 17412 ifc* | ifort*) # Intel Fortran compiler 17413 tmp_addflag=' -nofor_main' ;; 17414 esac 17415 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17416 17417 if test $supports_anon_versioning = yes; then 17418 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 17419 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17420 $echo "local: *; };" >> $output_objdir/$libname.ver~ 17421 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17422 fi 17423 link_all_deplibs_GCJ=no 17424 else 17425 ld_shlibs_GCJ=no 17426 fi 17427 ;; 17428 17429 netbsd* | netbsdelf*-gnu) 17430 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17431 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17432 wlarc= 17433 else 17434 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17435 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17436 fi 17437 ;; 17438 17439 solaris*) 17440 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 17441 ld_shlibs_GCJ=no 17442 cat <<EOF 1>&2 17443 17444*** Warning: The releases 2.8.* of the GNU linker cannot reliably 17445*** create shared libraries on Solaris systems. Therefore, libtool 17446*** is disabling shared libraries support. We urge you to upgrade GNU 17447*** binutils to release 2.9.1 or newer. Another option is to modify 17448*** your PATH or compiler configuration so that the native linker is 17449*** used, and then restart. 17450 17451EOF 17452 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17453 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17454 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17455 else 17456 ld_shlibs_GCJ=no 17457 fi 17458 ;; 17459 17460 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 17461 case `$LD -v 2>&1` in 17462 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 17463 ld_shlibs_GCJ=no 17464 cat <<_LT_EOF 1>&2 17465 17466*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 17467*** reliably create shared libraries on SCO systems. Therefore, libtool 17468*** is disabling shared libraries support. We urge you to upgrade GNU 17469*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 17470*** your PATH or compiler configuration so that the native linker is 17471*** used, and then restart. 17472 17473_LT_EOF 17474 ;; 17475 *) 17476 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17477 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 17478 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 17479 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 17480 else 17481 ld_shlibs_GCJ=no 17482 fi 17483 ;; 17484 esac 17485 ;; 17486 17487 sunos4*) 17488 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17489 wlarc= 17490 hardcode_direct_GCJ=yes 17491 hardcode_shlibpath_var_GCJ=no 17492 ;; 17493 17494 *) 17495 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17496 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17497 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17498 else 17499 ld_shlibs_GCJ=no 17500 fi 17501 ;; 17502 esac 17503 17504 if test "$ld_shlibs_GCJ" = no; then 17505 runpath_var= 17506 hardcode_libdir_flag_spec_GCJ= 17507 export_dynamic_flag_spec_GCJ= 17508 whole_archive_flag_spec_GCJ= 17509 fi 17510 else 17511 # PORTME fill in a description of your system's linker (not GNU ld) 17512 case $host_os in 17513 aix3*) 17514 allow_undefined_flag_GCJ=unsupported 17515 always_export_symbols_GCJ=yes 17516 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' 17517 # Note: this linker hardcodes the directories in LIBPATH if there 17518 # are no directories specified by -L. 17519 hardcode_minus_L_GCJ=yes 17520 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 17521 # Neither direct hardcoding nor static linking is supported with a 17522 # broken collect2. 17523 hardcode_direct_GCJ=unsupported 17524 fi 17525 ;; 17526 17527 aix4* | aix5*) 17528 if test "$host_cpu" = ia64; then 17529 # On IA64, the linker does run time linking by default, so we don't 17530 # have to do anything special. 17531 aix_use_runtimelinking=no 17532 exp_sym_flag='-Bexport' 17533 no_entry_flag="" 17534 else 17535 # If we're using GNU nm, then we don't want the "-C" option. 17536 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17537 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 17538 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' 17539 else 17540 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' 17541 fi 17542 aix_use_runtimelinking=no 17543 17544 # Test if we are trying to use run time linking or normal 17545 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17546 # need to do runtime linking. 17547 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 17548 for ld_flag in $LDFLAGS; do 17549 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17550 aix_use_runtimelinking=yes 17551 break 17552 fi 17553 done 17554 ;; 17555 esac 17556 17557 exp_sym_flag='-bexport' 17558 no_entry_flag='-bnoentry' 17559 fi 17560 17561 # When large executables or shared objects are built, AIX ld can 17562 # have problems creating the table of contents. If linking a library 17563 # or program results in "error TOC overflow" add -mminimal-toc to 17564 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17565 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17566 17567 archive_cmds_GCJ='' 17568 hardcode_direct_GCJ=yes 17569 hardcode_libdir_separator_GCJ=':' 17570 link_all_deplibs_GCJ=yes 17571 17572 if test "$GCC" = yes; then 17573 case $host_os in aix4.[012]|aix4.[012].*) 17574 # We only want to do this on AIX 4.2 and lower, the check 17575 # below for broken collect2 doesn't work under 4.3+ 17576 collect2name=`${CC} -print-prog-name=collect2` 17577 if test -f "$collect2name" && \ 17578 strings "$collect2name" | grep resolve_lib_name >/dev/null 17579 then 17580 # We have reworked collect2 17581 hardcode_direct_GCJ=yes 17582 else 17583 # We have old collect2 17584 hardcode_direct_GCJ=unsupported 17585 # It fails to find uninstalled libraries when the uninstalled 17586 # path is not listed in the libpath. Setting hardcode_minus_L 17587 # to unsupported forces relinking 17588 hardcode_minus_L_GCJ=yes 17589 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17590 hardcode_libdir_separator_GCJ= 17591 fi 17592 ;; 17593 esac 17594 shared_flag='-shared' 17595 if test "$aix_use_runtimelinking" = yes; then 17596 shared_flag="$shared_flag "'${wl}-G' 17597 fi 17598 else 17599 # not using gcc 17600 if test "$host_cpu" = ia64; then 17601 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17602 # chokes on -Wl,-G. The following line is correct: 17603 shared_flag='-G' 17604 else 17605 if test "$aix_use_runtimelinking" = yes; then 17606 shared_flag='${wl}-G' 17607 else 17608 shared_flag='${wl}-bM:SRE' 17609 fi 17610 fi 17611 fi 17612 17613 # It seems that -bexpall does not export symbols beginning with 17614 # underscore (_), so it is better to generate a list of symbols to export. 17615 always_export_symbols_GCJ=yes 17616 if test "$aix_use_runtimelinking" = yes; then 17617 # Warning - without using the other runtime loading flags (-brtl), 17618 # -berok will link without error, but may produce a broken library. 17619 allow_undefined_flag_GCJ='-berok' 17620 # Determine the default libpath from the value encoded in an empty executable. 17621 cat >conftest.$ac_ext <<_ACEOF 17622/* confdefs.h. */ 17623_ACEOF 17624cat confdefs.h >>conftest.$ac_ext 17625cat >>conftest.$ac_ext <<_ACEOF 17626/* end confdefs.h. */ 17627 17628int 17629main () 17630{ 17631 17632 ; 17633 return 0; 17634} 17635_ACEOF 17636rm -f conftest.$ac_objext conftest$ac_exeext 17637if { (ac_try="$ac_link" 17638case "(($ac_try" in 17639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17640 *) ac_try_echo=$ac_try;; 17641esac 17642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17643 (eval "$ac_link") 2>conftest.er1 17644 ac_status=$? 17645 grep -v '^ *+' conftest.er1 >conftest.err 17646 rm -f conftest.er1 17647 cat conftest.err >&5 17648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17649 (exit $ac_status); } && { 17650 test -z "$ac_c_werror_flag" || 17651 test ! -s conftest.err 17652 } && test -s conftest$ac_exeext && 17653 $as_test_x conftest$ac_exeext; then 17654 17655aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17656}'` 17657# Check for a 64-bit object if we didn't find anything. 17658if 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; } 17659}'`; fi 17660else 17661 echo "$as_me: failed program was:" >&5 17662sed 's/^/| /' conftest.$ac_ext >&5 17663 17664 17665fi 17666 17667rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17668 conftest$ac_exeext conftest.$ac_ext 17669if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17670 17671 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17672 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" 17673 else 17674 if test "$host_cpu" = ia64; then 17675 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17676 allow_undefined_flag_GCJ="-z nodefs" 17677 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" 17678 else 17679 # Determine the default libpath from the value encoded in an empty executable. 17680 cat >conftest.$ac_ext <<_ACEOF 17681/* confdefs.h. */ 17682_ACEOF 17683cat confdefs.h >>conftest.$ac_ext 17684cat >>conftest.$ac_ext <<_ACEOF 17685/* end confdefs.h. */ 17686 17687int 17688main () 17689{ 17690 17691 ; 17692 return 0; 17693} 17694_ACEOF 17695rm -f conftest.$ac_objext conftest$ac_exeext 17696if { (ac_try="$ac_link" 17697case "(($ac_try" in 17698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17699 *) ac_try_echo=$ac_try;; 17700esac 17701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17702 (eval "$ac_link") 2>conftest.er1 17703 ac_status=$? 17704 grep -v '^ *+' conftest.er1 >conftest.err 17705 rm -f conftest.er1 17706 cat conftest.err >&5 17707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17708 (exit $ac_status); } && { 17709 test -z "$ac_c_werror_flag" || 17710 test ! -s conftest.err 17711 } && test -s conftest$ac_exeext && 17712 $as_test_x conftest$ac_exeext; then 17713 17714aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17715}'` 17716# Check for a 64-bit object if we didn't find anything. 17717if 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; } 17718}'`; fi 17719else 17720 echo "$as_me: failed program was:" >&5 17721sed 's/^/| /' conftest.$ac_ext >&5 17722 17723 17724fi 17725 17726rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17727 conftest$ac_exeext conftest.$ac_ext 17728if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17729 17730 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17731 # Warning - without using the other run time loading flags, 17732 # -berok will link without error, but may produce a broken library. 17733 no_undefined_flag_GCJ=' ${wl}-bernotok' 17734 allow_undefined_flag_GCJ=' ${wl}-berok' 17735 # Exported symbols can be pulled into shared objects from archives 17736 whole_archive_flag_spec_GCJ='$convenience' 17737 archive_cmds_need_lc_GCJ=yes 17738 # This is similar to how AIX traditionally builds its shared libraries. 17739 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' 17740 fi 17741 fi 17742 ;; 17743 17744 amigaos*) 17745 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)' 17746 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17747 hardcode_minus_L_GCJ=yes 17748 # see comment about different semantics on the GNU ld section 17749 ld_shlibs_GCJ=no 17750 ;; 17751 17752 bsdi[45]*) 17753 export_dynamic_flag_spec_GCJ=-rdynamic 17754 ;; 17755 17756 cygwin* | mingw* | pw32*) 17757 # When not using gcc, we currently assume that we are using 17758 # Microsoft Visual C++. 17759 # hardcode_libdir_flag_spec is actually meaningless, as there is 17760 # no search path for DLLs. 17761 hardcode_libdir_flag_spec_GCJ=' ' 17762 allow_undefined_flag_GCJ=unsupported 17763 # Tell ltmain to make .lib files, not .a files. 17764 libext=lib 17765 # Tell ltmain to make .dll files, not .so files. 17766 shrext_cmds=".dll" 17767 # FIXME: Setting linknames here is a bad hack. 17768 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17769 # The linker will automatically build a .lib file if we build a DLL. 17770 old_archive_From_new_cmds_GCJ='true' 17771 # FIXME: Should let the user specify the lib program. 17772 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 17773 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17774 enable_shared_with_static_runtimes_GCJ=yes 17775 ;; 17776 17777 darwin* | rhapsody*) 17778 case $host_os in 17779 rhapsody* | darwin1.[012]) 17780 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17781 ;; 17782 *) # Darwin 1.3 on 17783 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17784 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17785 else 17786 case ${MACOSX_DEPLOYMENT_TARGET} in 17787 10.[012]) 17788 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17789 ;; 17790 10.*) 17791 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17792 ;; 17793 esac 17794 fi 17795 ;; 17796 esac 17797 archive_cmds_need_lc_GCJ=no 17798 hardcode_direct_GCJ=no 17799 hardcode_automatic_GCJ=yes 17800 hardcode_shlibpath_var_GCJ=unsupported 17801 whole_archive_flag_spec_GCJ='' 17802 link_all_deplibs_GCJ=yes 17803 if test "$GCC" = yes ; then 17804 output_verbose_link_cmd='echo' 17805 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 17806 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17807 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17808 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}' 17809 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}' 17810 else 17811 case $cc_basename in 17812 xlc*) 17813 output_verbose_link_cmd='echo' 17814 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 17815 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17816 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17817 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}' 17818 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}' 17819 ;; 17820 *) 17821 ld_shlibs_GCJ=no 17822 ;; 17823 esac 17824 fi 17825 ;; 17826 17827 dgux*) 17828 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17829 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17830 hardcode_shlibpath_var_GCJ=no 17831 ;; 17832 17833 freebsd1*) 17834 ld_shlibs_GCJ=no 17835 ;; 17836 17837 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17838 # support. Future versions do this automatically, but an explicit c++rt0.o 17839 # does not break anything, and helps significantly (at the cost of a little 17840 # extra space). 17841 freebsd2.2*) 17842 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17843 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17844 hardcode_direct_GCJ=yes 17845 hardcode_shlibpath_var_GCJ=no 17846 ;; 17847 17848 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17849 freebsd2*) 17850 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17851 hardcode_direct_GCJ=yes 17852 hardcode_minus_L_GCJ=yes 17853 hardcode_shlibpath_var_GCJ=no 17854 ;; 17855 17856 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17857 freebsd* | dragonfly*) 17858 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17859 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17860 hardcode_direct_GCJ=yes 17861 hardcode_shlibpath_var_GCJ=no 17862 ;; 17863 17864 hpux9*) 17865 if test "$GCC" = yes; then 17866 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' 17867 else 17868 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' 17869 fi 17870 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17871 hardcode_libdir_separator_GCJ=: 17872 hardcode_direct_GCJ=yes 17873 17874 # hardcode_minus_L: Not really in the search PATH, 17875 # but as the default location of the library. 17876 hardcode_minus_L_GCJ=yes 17877 export_dynamic_flag_spec_GCJ='${wl}-E' 17878 ;; 17879 17880 hpux10*) 17881 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17882 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17883 else 17884 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17885 fi 17886 if test "$with_gnu_ld" = no; then 17887 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17888 hardcode_libdir_separator_GCJ=: 17889 17890 hardcode_direct_GCJ=yes 17891 export_dynamic_flag_spec_GCJ='${wl}-E' 17892 17893 # hardcode_minus_L: Not really in the search PATH, 17894 # but as the default location of the library. 17895 hardcode_minus_L_GCJ=yes 17896 fi 17897 ;; 17898 17899 hpux11*) 17900 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17901 case $host_cpu in 17902 hppa*64*) 17903 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17904 ;; 17905 ia64*) 17906 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17907 ;; 17908 *) 17909 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17910 ;; 17911 esac 17912 else 17913 case $host_cpu in 17914 hppa*64*) 17915 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17916 ;; 17917 ia64*) 17918 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17919 ;; 17920 *) 17921 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17922 ;; 17923 esac 17924 fi 17925 if test "$with_gnu_ld" = no; then 17926 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17927 hardcode_libdir_separator_GCJ=: 17928 17929 case $host_cpu in 17930 hppa*64*|ia64*) 17931 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 17932 hardcode_direct_GCJ=no 17933 hardcode_shlibpath_var_GCJ=no 17934 ;; 17935 *) 17936 hardcode_direct_GCJ=yes 17937 export_dynamic_flag_spec_GCJ='${wl}-E' 17938 17939 # hardcode_minus_L: Not really in the search PATH, 17940 # but as the default location of the library. 17941 hardcode_minus_L_GCJ=yes 17942 ;; 17943 esac 17944 fi 17945 ;; 17946 17947 irix5* | irix6* | nonstopux*) 17948 if test "$GCC" = yes; then 17949 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' 17950 else 17951 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' 17952 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 17953 fi 17954 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17955 hardcode_libdir_separator_GCJ=: 17956 link_all_deplibs_GCJ=yes 17957 ;; 17958 17959 netbsd* | netbsdelf*-gnu) 17960 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17961 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17962 else 17963 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17964 fi 17965 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17966 hardcode_direct_GCJ=yes 17967 hardcode_shlibpath_var_GCJ=no 17968 ;; 17969 17970 newsos6) 17971 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17972 hardcode_direct_GCJ=yes 17973 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17974 hardcode_libdir_separator_GCJ=: 17975 hardcode_shlibpath_var_GCJ=no 17976 ;; 17977 17978 openbsd*) 17979 hardcode_direct_GCJ=yes 17980 hardcode_shlibpath_var_GCJ=no 17981 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17982 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17983 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 17984 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17985 export_dynamic_flag_spec_GCJ='${wl}-E' 17986 else 17987 case $host_os in 17988 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 17989 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17990 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17991 ;; 17992 *) 17993 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17994 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17995 ;; 17996 esac 17997 fi 17998 ;; 17999 18000 os2*) 18001 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18002 hardcode_minus_L_GCJ=yes 18003 allow_undefined_flag_GCJ=unsupported 18004 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' 18005 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 18006 ;; 18007 18008 osf3*) 18009 if test "$GCC" = yes; then 18010 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18011 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' 18012 else 18013 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18014 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' 18015 fi 18016 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18017 hardcode_libdir_separator_GCJ=: 18018 ;; 18019 18020 osf4* | osf5*) # as osf3* with the addition of -msym flag 18021 if test "$GCC" = yes; then 18022 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18023 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' 18024 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18025 else 18026 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18027 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' 18028 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~ 18029 $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' 18030 18031 # Both c and cxx compiler support -rpath directly 18032 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 18033 fi 18034 hardcode_libdir_separator_GCJ=: 18035 ;; 18036 18037 solaris*) 18038 no_undefined_flag_GCJ=' -z text' 18039 if test "$GCC" = yes; then 18040 wlarc='${wl}' 18041 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18042 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18043 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 18044 else 18045 wlarc='' 18046 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 18047 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18048 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 18049 fi 18050 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18051 hardcode_shlibpath_var_GCJ=no 18052 case $host_os in 18053 solaris2.[0-5] | solaris2.[0-5].*) ;; 18054 *) 18055 # The compiler driver will combine linker options so we 18056 # cannot just pass the convience library names through 18057 # without $wl, iff we do not link with $LD. 18058 # Luckily, gcc supports the same syntax we need for Sun Studio. 18059 # Supported since Solaris 2.6 (maybe 2.5.1?) 18060 case $wlarc in 18061 '') 18062 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 18063 *) 18064 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' ;; 18065 esac ;; 18066 esac 18067 link_all_deplibs_GCJ=yes 18068 ;; 18069 18070 sunos4*) 18071 if test "x$host_vendor" = xsequent; then 18072 # Use $CC to link under sequent, because it throws in some extra .o 18073 # files that make .init and .fini sections work. 18074 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 18075 else 18076 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 18077 fi 18078 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18079 hardcode_direct_GCJ=yes 18080 hardcode_minus_L_GCJ=yes 18081 hardcode_shlibpath_var_GCJ=no 18082 ;; 18083 18084 sysv4) 18085 case $host_vendor in 18086 sni) 18087 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18088 hardcode_direct_GCJ=yes # is this really true??? 18089 ;; 18090 siemens) 18091 ## LD is ld it makes a PLAMLIB 18092 ## CC just makes a GrossModule. 18093 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 18094 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 18095 hardcode_direct_GCJ=no 18096 ;; 18097 motorola) 18098 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18099 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 18100 ;; 18101 esac 18102 runpath_var='LD_RUN_PATH' 18103 hardcode_shlibpath_var_GCJ=no 18104 ;; 18105 18106 sysv4.3*) 18107 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18108 hardcode_shlibpath_var_GCJ=no 18109 export_dynamic_flag_spec_GCJ='-Bexport' 18110 ;; 18111 18112 sysv4*MP*) 18113 if test -d /usr/nec; then 18114 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18115 hardcode_shlibpath_var_GCJ=no 18116 runpath_var=LD_RUN_PATH 18117 hardcode_runpath_var=yes 18118 ld_shlibs_GCJ=yes 18119 fi 18120 ;; 18121 18122 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 18123 no_undefined_flag_GCJ='${wl}-z,text' 18124 archive_cmds_need_lc_GCJ=no 18125 hardcode_shlibpath_var_GCJ=no 18126 runpath_var='LD_RUN_PATH' 18127 18128 if test "$GCC" = yes; then 18129 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18130 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18131 else 18132 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18133 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18134 fi 18135 ;; 18136 18137 sysv5* | sco3.2v5* | sco5v6*) 18138 # Note: We can NOT use -z defs as we might desire, because we do not 18139 # link with -lc, and that would cause any symbols used from libc to 18140 # always be unresolved, which means just about no library would 18141 # ever link correctly. If we're not using GNU ld we use -z text 18142 # though, which does catch some bad symbols but isn't as heavy-handed 18143 # as -z defs. 18144 no_undefined_flag_GCJ='${wl}-z,text' 18145 allow_undefined_flag_GCJ='${wl}-z,nodefs' 18146 archive_cmds_need_lc_GCJ=no 18147 hardcode_shlibpath_var_GCJ=no 18148 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 18149 hardcode_libdir_separator_GCJ=':' 18150 link_all_deplibs_GCJ=yes 18151 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 18152 runpath_var='LD_RUN_PATH' 18153 18154 if test "$GCC" = yes; then 18155 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18156 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18157 else 18158 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18159 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18160 fi 18161 ;; 18162 18163 uts4*) 18164 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18165 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18166 hardcode_shlibpath_var_GCJ=no 18167 ;; 18168 18169 *) 18170 ld_shlibs_GCJ=no 18171 ;; 18172 esac 18173 fi 18174 18175{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 18176echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } 18177test "$ld_shlibs_GCJ" = no && can_build_shared=no 18178 18179# 18180# Do we need to explicitly link libc? 18181# 18182case "x$archive_cmds_need_lc_GCJ" in 18183x|xyes) 18184 # Assume -lc should be added 18185 archive_cmds_need_lc_GCJ=yes 18186 18187 if test "$enable_shared" = yes && test "$GCC" = yes; then 18188 case $archive_cmds_GCJ in 18189 *'~'*) 18190 # FIXME: we may have to deal with multi-command sequences. 18191 ;; 18192 '$CC '*) 18193 # Test whether the compiler implicitly links with -lc since on some 18194 # systems, -lgcc has to come before -lc. If gcc already passes -lc 18195 # to ld, don't add -lc before -lgcc. 18196 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 18197echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 18198 $rm conftest* 18199 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 18200 18201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18202 (eval $ac_compile) 2>&5 18203 ac_status=$? 18204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18205 (exit $ac_status); } 2>conftest.err; then 18206 soname=conftest 18207 lib=conftest 18208 libobjs=conftest.$ac_objext 18209 deplibs= 18210 wl=$lt_prog_compiler_wl_GCJ 18211 pic_flag=$lt_prog_compiler_pic_GCJ 18212 compiler_flags=-v 18213 linker_flags=-v 18214 verstring= 18215 output_objdir=. 18216 libname=conftest 18217 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 18218 allow_undefined_flag_GCJ= 18219 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 18220 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 18221 ac_status=$? 18222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18223 (exit $ac_status); } 18224 then 18225 archive_cmds_need_lc_GCJ=no 18226 else 18227 archive_cmds_need_lc_GCJ=yes 18228 fi 18229 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 18230 else 18231 cat conftest.err 1>&5 18232 fi 18233 $rm conftest* 18234 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 18235echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } 18236 ;; 18237 esac 18238 fi 18239 ;; 18240esac 18241 18242{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 18243echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 18244library_names_spec= 18245libname_spec='lib$name' 18246soname_spec= 18247shrext_cmds=".so" 18248postinstall_cmds= 18249postuninstall_cmds= 18250finish_cmds= 18251finish_eval= 18252shlibpath_var= 18253shlibpath_overrides_runpath=unknown 18254version_type=none 18255dynamic_linker="$host_os ld.so" 18256sys_lib_dlsearch_path_spec="/lib /usr/lib" 18257if test "$GCC" = yes; then 18258 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18259 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 18260 # if the path contains ";" then we assume it to be the separator 18261 # otherwise default to the standard path separator (i.e. ":") - it is 18262 # assumed that no part of a normal pathname contains ";" but that should 18263 # okay in the real world where ";" in dirpaths is itself problematic. 18264 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18265 else 18266 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18267 fi 18268else 18269 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18270fi 18271need_lib_prefix=unknown 18272hardcode_into_libs=no 18273 18274# when you set need_version to no, make sure it does not cause -set_version 18275# flags to be left without arguments 18276need_version=unknown 18277 18278case $host_os in 18279aix3*) 18280 version_type=linux 18281 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 18282 shlibpath_var=LIBPATH 18283 18284 # AIX 3 has no versioning support, so we append a major version to the name. 18285 soname_spec='${libname}${release}${shared_ext}$major' 18286 ;; 18287 18288aix4* | aix5*) 18289 version_type=linux 18290 need_lib_prefix=no 18291 need_version=no 18292 hardcode_into_libs=yes 18293 if test "$host_cpu" = ia64; then 18294 # AIX 5 supports IA64 18295 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 18296 shlibpath_var=LD_LIBRARY_PATH 18297 else 18298 # With GCC up to 2.95.x, collect2 would create an import file 18299 # for dependence libraries. The import file would start with 18300 # the line `#! .'. This would cause the generated library to 18301 # depend on `.', always an invalid library. This was fixed in 18302 # development snapshots of GCC prior to 3.0. 18303 case $host_os in 18304 aix4 | aix4.[01] | aix4.[01].*) 18305 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18306 echo ' yes ' 18307 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 18308 : 18309 else 18310 can_build_shared=no 18311 fi 18312 ;; 18313 esac 18314 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 18315 # soname into executable. Probably we can add versioning support to 18316 # collect2, so additional links can be useful in future. 18317 if test "$aix_use_runtimelinking" = yes; then 18318 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18319 # instead of lib<name>.a to let people know that these are not 18320 # typical AIX shared libraries. 18321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18322 else 18323 # We preserve .a as extension for shared libraries through AIX4.2 18324 # and later when we are not doing run time linking. 18325 library_names_spec='${libname}${release}.a $libname.a' 18326 soname_spec='${libname}${release}${shared_ext}$major' 18327 fi 18328 shlibpath_var=LIBPATH 18329 fi 18330 ;; 18331 18332amigaos*) 18333 library_names_spec='$libname.ixlibrary $libname.a' 18334 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18335 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' 18336 ;; 18337 18338beos*) 18339 library_names_spec='${libname}${shared_ext}' 18340 dynamic_linker="$host_os ld.so" 18341 shlibpath_var=LIBRARY_PATH 18342 ;; 18343 18344bsdi[45]*) 18345 version_type=linux 18346 need_version=no 18347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18348 soname_spec='${libname}${release}${shared_ext}$major' 18349 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18350 shlibpath_var=LD_LIBRARY_PATH 18351 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18352 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18353 # the default ld.so.conf also contains /usr/contrib/lib and 18354 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18355 # libtool to hard-code these into programs 18356 ;; 18357 18358cygwin* | mingw* | pw32*) 18359 version_type=windows 18360 shrext_cmds=".dll" 18361 need_version=no 18362 need_lib_prefix=no 18363 18364 case $GCC,$host_os in 18365 yes,cygwin* | yes,mingw* | yes,pw32*) 18366 library_names_spec='$libname.dll.a' 18367 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18368 postinstall_cmds='base_file=`basename \${file}`~ 18369 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 18370 dldir=$destdir/`dirname \$dlpath`~ 18371 test -d \$dldir || mkdir -p \$dldir~ 18372 $install_prog $dir/$dlname \$dldir/$dlname~ 18373 chmod a+x \$dldir/$dlname' 18374 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18375 dlpath=$dir/\$dldll~ 18376 $rm \$dlpath' 18377 shlibpath_overrides_runpath=yes 18378 18379 case $host_os in 18380 cygwin*) 18381 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18382 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18383 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 18384 ;; 18385 mingw*) 18386 # MinGW DLLs use traditional 'lib' prefix 18387 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18388 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18389 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 18390 # It is most probably a Windows format PATH printed by 18391 # mingw gcc, but we are running on Cygwin. Gcc prints its search 18392 # path with ; separators, and with drive letters. We can handle the 18393 # drive letters (cygwin fileutils understands them), so leave them, 18394 # especially as we might pass files found there to a mingw objdump, 18395 # which wouldn't understand a cygwinified path. Ahh. 18396 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18397 else 18398 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18399 fi 18400 ;; 18401 pw32*) 18402 # pw32 DLLs use 'pw' prefix rather than 'lib' 18403 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18404 ;; 18405 esac 18406 ;; 18407 18408 *) 18409 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 18410 ;; 18411 esac 18412 dynamic_linker='Win32 ld.exe' 18413 # FIXME: first we should search . and the directory the executable is in 18414 shlibpath_var=PATH 18415 ;; 18416 18417darwin* | rhapsody*) 18418 dynamic_linker="$host_os dyld" 18419 version_type=darwin 18420 need_lib_prefix=no 18421 need_version=no 18422 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 18423 soname_spec='${libname}${release}${major}$shared_ext' 18424 shlibpath_overrides_runpath=yes 18425 shlibpath_var=DYLD_LIBRARY_PATH 18426 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18427 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 18428 if test "$GCC" = yes; then 18429 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"` 18430 else 18431 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 18432 fi 18433 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18434 ;; 18435 18436dgux*) 18437 version_type=linux 18438 need_lib_prefix=no 18439 need_version=no 18440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 18441 soname_spec='${libname}${release}${shared_ext}$major' 18442 shlibpath_var=LD_LIBRARY_PATH 18443 ;; 18444 18445freebsd1*) 18446 dynamic_linker=no 18447 ;; 18448 18449freebsd* | dragonfly*) 18450 # DragonFly does not have aout. When/if they implement a new 18451 # versioning mechanism, adjust this. 18452 if test -x /usr/bin/objformat; then 18453 objformat=`/usr/bin/objformat` 18454 else 18455 case $host_os in 18456 freebsd[123]*) objformat=aout ;; 18457 *) objformat=elf ;; 18458 esac 18459 fi 18460 version_type=freebsd-$objformat 18461 case $version_type in 18462 freebsd-elf*) 18463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18464 need_version=no 18465 need_lib_prefix=no 18466 ;; 18467 freebsd-*) 18468 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18469 need_version=yes 18470 ;; 18471 esac 18472 shlibpath_var=LD_LIBRARY_PATH 18473 case $host_os in 18474 freebsd2*) 18475 shlibpath_overrides_runpath=yes 18476 ;; 18477 freebsd3.[01]* | freebsdelf3.[01]*) 18478 shlibpath_overrides_runpath=yes 18479 hardcode_into_libs=yes 18480 ;; 18481 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18482 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18483 shlibpath_overrides_runpath=no 18484 hardcode_into_libs=yes 18485 ;; 18486 freebsd*) # from 4.6 on 18487 shlibpath_overrides_runpath=yes 18488 hardcode_into_libs=yes 18489 ;; 18490 esac 18491 ;; 18492 18493gnu*) 18494 version_type=linux 18495 need_lib_prefix=no 18496 need_version=no 18497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18498 soname_spec='${libname}${release}${shared_ext}$major' 18499 shlibpath_var=LD_LIBRARY_PATH 18500 hardcode_into_libs=yes 18501 ;; 18502 18503hpux9* | hpux10* | hpux11*) 18504 # Give a soname corresponding to the major version so that dld.sl refuses to 18505 # link against other versions. 18506 version_type=sunos 18507 need_lib_prefix=no 18508 need_version=no 18509 case $host_cpu in 18510 ia64*) 18511 shrext_cmds='.so' 18512 hardcode_into_libs=yes 18513 dynamic_linker="$host_os dld.so" 18514 shlibpath_var=LD_LIBRARY_PATH 18515 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18517 soname_spec='${libname}${release}${shared_ext}$major' 18518 if test "X$HPUX_IA64_MODE" = X32; then 18519 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18520 else 18521 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18522 fi 18523 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18524 ;; 18525 hppa*64*) 18526 shrext_cmds='.sl' 18527 hardcode_into_libs=yes 18528 dynamic_linker="$host_os dld.sl" 18529 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18530 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18532 soname_spec='${libname}${release}${shared_ext}$major' 18533 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18534 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18535 ;; 18536 *) 18537 shrext_cmds='.sl' 18538 dynamic_linker="$host_os dld.sl" 18539 shlibpath_var=SHLIB_PATH 18540 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18542 soname_spec='${libname}${release}${shared_ext}$major' 18543 ;; 18544 esac 18545 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18546 postinstall_cmds='chmod 555 $lib' 18547 ;; 18548 18549interix3*) 18550 version_type=linux 18551 need_lib_prefix=no 18552 need_version=no 18553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18554 soname_spec='${libname}${release}${shared_ext}$major' 18555 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18556 shlibpath_var=LD_LIBRARY_PATH 18557 shlibpath_overrides_runpath=no 18558 hardcode_into_libs=yes 18559 ;; 18560 18561irix5* | irix6* | nonstopux*) 18562 case $host_os in 18563 nonstopux*) version_type=nonstopux ;; 18564 *) 18565 if test "$lt_cv_prog_gnu_ld" = yes; then 18566 version_type=linux 18567 else 18568 version_type=irix 18569 fi ;; 18570 esac 18571 need_lib_prefix=no 18572 need_version=no 18573 soname_spec='${libname}${release}${shared_ext}$major' 18574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18575 case $host_os in 18576 irix5* | nonstopux*) 18577 libsuff= shlibsuff= 18578 ;; 18579 *) 18580 case $LD in # libtool.m4 will add one of these switches to LD 18581 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18582 libsuff= shlibsuff= libmagic=32-bit;; 18583 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18584 libsuff=32 shlibsuff=N32 libmagic=N32;; 18585 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18586 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18587 *) libsuff= shlibsuff= libmagic=never-match;; 18588 esac 18589 ;; 18590 esac 18591 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18592 shlibpath_overrides_runpath=no 18593 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18594 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18595 hardcode_into_libs=yes 18596 ;; 18597 18598# No shared lib support for Linux oldld, aout, or coff. 18599linux*oldld* | linux*aout* | linux*coff*) 18600 dynamic_linker=no 18601 ;; 18602 18603# This must be Linux ELF. 18604linux* | k*bsd*-gnu) 18605 version_type=linux 18606 need_lib_prefix=no 18607 need_version=no 18608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18609 soname_spec='${libname}${release}${shared_ext}$major' 18610 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18611 shlibpath_var=LD_LIBRARY_PATH 18612 shlibpath_overrides_runpath=no 18613 # This implies no fast_install, which is unacceptable. 18614 # Some rework will be needed to allow for fast_install 18615 # before this can be enabled. 18616 hardcode_into_libs=yes 18617 18618 # Append ld.so.conf contents to the search path 18619 if test -f /etc/ld.so.conf; then 18620 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' ' '` 18621 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18622 fi 18623 18624 # We used to test for /lib/ld.so.1 and disable shared libraries on 18625 # powerpc, because MkLinux only supported shared libraries with the 18626 # GNU dynamic linker. Since this was broken with cross compilers, 18627 # most powerpc-linux boxes support dynamic linking these days and 18628 # people can always --disable-shared, the test was removed, and we 18629 # assume the GNU/Linux dynamic linker is in use. 18630 dynamic_linker='GNU/Linux ld.so' 18631 ;; 18632 18633netbsdelf*-gnu) 18634 version_type=linux 18635 need_lib_prefix=no 18636 need_version=no 18637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18638 soname_spec='${libname}${release}${shared_ext}$major' 18639 shlibpath_var=LD_LIBRARY_PATH 18640 shlibpath_overrides_runpath=no 18641 hardcode_into_libs=yes 18642 dynamic_linker='NetBSD ld.elf_so' 18643 ;; 18644 18645netbsd*) 18646 version_type=sunos 18647 need_lib_prefix=no 18648 need_version=no 18649 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18651 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18652 dynamic_linker='NetBSD (a.out) ld.so' 18653 else 18654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18655 soname_spec='${libname}${release}${shared_ext}$major' 18656 dynamic_linker='NetBSD ld.elf_so' 18657 fi 18658 shlibpath_var=LD_LIBRARY_PATH 18659 shlibpath_overrides_runpath=yes 18660 hardcode_into_libs=yes 18661 ;; 18662 18663newsos6) 18664 version_type=linux 18665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18666 shlibpath_var=LD_LIBRARY_PATH 18667 shlibpath_overrides_runpath=yes 18668 ;; 18669 18670nto-qnx*) 18671 version_type=linux 18672 need_lib_prefix=no 18673 need_version=no 18674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18675 soname_spec='${libname}${release}${shared_ext}$major' 18676 shlibpath_var=LD_LIBRARY_PATH 18677 shlibpath_overrides_runpath=yes 18678 ;; 18679 18680openbsd*) 18681 version_type=sunos 18682 sys_lib_dlsearch_path_spec="/usr/lib" 18683 need_lib_prefix=no 18684 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18685 case $host_os in 18686 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18687 *) need_version=no ;; 18688 esac 18689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18690 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18691 shlibpath_var=LD_LIBRARY_PATH 18692 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18693 case $host_os in 18694 openbsd2.[89] | openbsd2.[89].*) 18695 shlibpath_overrides_runpath=no 18696 ;; 18697 *) 18698 shlibpath_overrides_runpath=yes 18699 ;; 18700 esac 18701 else 18702 shlibpath_overrides_runpath=yes 18703 fi 18704 ;; 18705 18706os2*) 18707 libname_spec='$name' 18708 shrext_cmds=".dll" 18709 need_lib_prefix=no 18710 library_names_spec='$libname${shared_ext} $libname.a' 18711 dynamic_linker='OS/2 ld.exe' 18712 shlibpath_var=LIBPATH 18713 ;; 18714 18715osf3* | osf4* | osf5*) 18716 version_type=osf 18717 need_lib_prefix=no 18718 need_version=no 18719 soname_spec='${libname}${release}${shared_ext}$major' 18720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18721 shlibpath_var=LD_LIBRARY_PATH 18722 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18723 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18724 ;; 18725 18726solaris*) 18727 version_type=linux 18728 need_lib_prefix=no 18729 need_version=no 18730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18731 soname_spec='${libname}${release}${shared_ext}$major' 18732 shlibpath_var=LD_LIBRARY_PATH 18733 shlibpath_overrides_runpath=yes 18734 hardcode_into_libs=yes 18735 # ldd complains unless libraries are executable 18736 postinstall_cmds='chmod +x $lib' 18737 ;; 18738 18739sunos4*) 18740 version_type=sunos 18741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18742 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18743 shlibpath_var=LD_LIBRARY_PATH 18744 shlibpath_overrides_runpath=yes 18745 if test "$with_gnu_ld" = yes; then 18746 need_lib_prefix=no 18747 fi 18748 need_version=yes 18749 ;; 18750 18751sysv4 | sysv4.3*) 18752 version_type=linux 18753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18754 soname_spec='${libname}${release}${shared_ext}$major' 18755 shlibpath_var=LD_LIBRARY_PATH 18756 case $host_vendor in 18757 sni) 18758 shlibpath_overrides_runpath=no 18759 need_lib_prefix=no 18760 export_dynamic_flag_spec='${wl}-Blargedynsym' 18761 runpath_var=LD_RUN_PATH 18762 ;; 18763 siemens) 18764 need_lib_prefix=no 18765 ;; 18766 motorola) 18767 need_lib_prefix=no 18768 need_version=no 18769 shlibpath_overrides_runpath=no 18770 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18771 ;; 18772 esac 18773 ;; 18774 18775sysv4*MP*) 18776 if test -d /usr/nec ;then 18777 version_type=linux 18778 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18779 soname_spec='$libname${shared_ext}.$major' 18780 shlibpath_var=LD_LIBRARY_PATH 18781 fi 18782 ;; 18783 18784sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18785 version_type=freebsd-elf 18786 need_lib_prefix=no 18787 need_version=no 18788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18789 soname_spec='${libname}${release}${shared_ext}$major' 18790 shlibpath_var=LD_LIBRARY_PATH 18791 hardcode_into_libs=yes 18792 if test "$with_gnu_ld" = yes; then 18793 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18794 shlibpath_overrides_runpath=no 18795 else 18796 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18797 shlibpath_overrides_runpath=yes 18798 case $host_os in 18799 sco3.2v5*) 18800 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18801 ;; 18802 esac 18803 fi 18804 sys_lib_dlsearch_path_spec='/usr/lib' 18805 ;; 18806 18807uts4*) 18808 version_type=linux 18809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18810 soname_spec='${libname}${release}${shared_ext}$major' 18811 shlibpath_var=LD_LIBRARY_PATH 18812 ;; 18813 18814*) 18815 dynamic_linker=no 18816 ;; 18817esac 18818{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18819echo "${ECHO_T}$dynamic_linker" >&6; } 18820test "$dynamic_linker" = no && can_build_shared=no 18821 18822variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18823if test "$GCC" = yes; then 18824 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18825fi 18826 18827{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18828echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 18829hardcode_action_GCJ= 18830if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18831 test -n "$runpath_var_GCJ" || \ 18832 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 18833 18834 # We can hardcode non-existant directories. 18835 if test "$hardcode_direct_GCJ" != no && 18836 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18837 # have to relink, otherwise we might link with an installed library 18838 # when we should be linking with a yet-to-be-installed one 18839 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 18840 test "$hardcode_minus_L_GCJ" != no; then 18841 # Linking always hardcodes the temporary library directory. 18842 hardcode_action_GCJ=relink 18843 else 18844 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18845 hardcode_action_GCJ=immediate 18846 fi 18847else 18848 # We cannot hardcode anything, or else we can only hardcode existing 18849 # directories. 18850 hardcode_action_GCJ=unsupported 18851fi 18852{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 18853echo "${ECHO_T}$hardcode_action_GCJ" >&6; } 18854 18855if test "$hardcode_action_GCJ" = relink; then 18856 # Fast installation is not supported 18857 enable_fast_install=no 18858elif test "$shlibpath_overrides_runpath" = yes || 18859 test "$enable_shared" = no; then 18860 # Fast installation is not necessary 18861 enable_fast_install=needless 18862fi 18863 18864 18865# The else clause should only fire when bootstrapping the 18866# libtool distribution, otherwise you forgot to ship ltmain.sh 18867# with your package, and you will get complaints that there are 18868# no rules to generate ltmain.sh. 18869if test -f "$ltmain"; then 18870 # See if we are running on zsh, and set the options which allow our commands through 18871 # without removal of \ escapes. 18872 if test -n "${ZSH_VERSION+set}" ; then 18873 setopt NO_GLOB_SUBST 18874 fi 18875 # Now quote all the things that may contain metacharacters while being 18876 # careful not to overquote the AC_SUBSTed values. We take copies of the 18877 # variables and quote the copies for generation of the libtool script. 18878 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18879 SED SHELL STRIP \ 18880 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18881 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18882 deplibs_check_method reload_flag reload_cmds need_locks \ 18883 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18884 lt_cv_sys_global_symbol_to_c_name_address \ 18885 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18886 old_postinstall_cmds old_postuninstall_cmds \ 18887 compiler_GCJ \ 18888 CC_GCJ \ 18889 LD_GCJ \ 18890 lt_prog_compiler_wl_GCJ \ 18891 lt_prog_compiler_pic_GCJ \ 18892 lt_prog_compiler_static_GCJ \ 18893 lt_prog_compiler_no_builtin_flag_GCJ \ 18894 export_dynamic_flag_spec_GCJ \ 18895 thread_safe_flag_spec_GCJ \ 18896 whole_archive_flag_spec_GCJ \ 18897 enable_shared_with_static_runtimes_GCJ \ 18898 old_archive_cmds_GCJ \ 18899 old_archive_from_new_cmds_GCJ \ 18900 predep_objects_GCJ \ 18901 postdep_objects_GCJ \ 18902 predeps_GCJ \ 18903 postdeps_GCJ \ 18904 compiler_lib_search_path_GCJ \ 18905 archive_cmds_GCJ \ 18906 archive_expsym_cmds_GCJ \ 18907 postinstall_cmds_GCJ \ 18908 postuninstall_cmds_GCJ \ 18909 old_archive_from_expsyms_cmds_GCJ \ 18910 allow_undefined_flag_GCJ \ 18911 no_undefined_flag_GCJ \ 18912 export_symbols_cmds_GCJ \ 18913 hardcode_libdir_flag_spec_GCJ \ 18914 hardcode_libdir_flag_spec_ld_GCJ \ 18915 hardcode_libdir_separator_GCJ \ 18916 hardcode_automatic_GCJ \ 18917 module_cmds_GCJ \ 18918 module_expsym_cmds_GCJ \ 18919 lt_cv_prog_compiler_c_o_GCJ \ 18920 exclude_expsyms_GCJ \ 18921 include_expsyms_GCJ; do 18922 18923 case $var in 18924 old_archive_cmds_GCJ | \ 18925 old_archive_from_new_cmds_GCJ | \ 18926 archive_cmds_GCJ | \ 18927 archive_expsym_cmds_GCJ | \ 18928 module_cmds_GCJ | \ 18929 module_expsym_cmds_GCJ | \ 18930 old_archive_from_expsyms_cmds_GCJ | \ 18931 export_symbols_cmds_GCJ | \ 18932 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18933 postinstall_cmds | postuninstall_cmds | \ 18934 old_postinstall_cmds | old_postuninstall_cmds | \ 18935 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18936 # Double-quote double-evaled strings. 18937 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18938 ;; 18939 *) 18940 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18941 ;; 18942 esac 18943 done 18944 18945 case $lt_echo in 18946 *'\$0 --fallback-echo"') 18947 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18948 ;; 18949 esac 18950 18951cfgfile="$ofile" 18952 18953 cat <<__EOF__ >> "$cfgfile" 18954# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18955 18956# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18957 18958# Shell to use when invoking shell scripts. 18959SHELL=$lt_SHELL 18960 18961# Whether or not to build shared libraries. 18962build_libtool_libs=$enable_shared 18963 18964# Whether or not to build static libraries. 18965build_old_libs=$enable_static 18966 18967# Whether or not to add -lc for building shared libraries. 18968build_libtool_need_lc=$archive_cmds_need_lc_GCJ 18969 18970# Whether or not to disallow shared libs when runtime libs are static 18971allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 18972 18973# Whether or not to optimize for fast installation. 18974fast_install=$enable_fast_install 18975 18976# The host system. 18977host_alias=$host_alias 18978host=$host 18979host_os=$host_os 18980 18981# The build system. 18982build_alias=$build_alias 18983build=$build 18984build_os=$build_os 18985 18986# An echo program that does not interpret backslashes. 18987echo=$lt_echo 18988 18989# The archiver. 18990AR=$lt_AR 18991AR_FLAGS=$lt_AR_FLAGS 18992 18993# A C compiler. 18994LTCC=$lt_LTCC 18995 18996# LTCC compiler flags. 18997LTCFLAGS=$lt_LTCFLAGS 18998 18999# A language-specific compiler. 19000CC=$lt_compiler_GCJ 19001 19002# Is the compiler the GNU C compiler? 19003with_gcc=$GCC_GCJ 19004 19005# An ERE matcher. 19006EGREP=$lt_EGREP 19007 19008# The linker used to build libraries. 19009LD=$lt_LD_GCJ 19010 19011# Whether we need hard or soft links. 19012LN_S=$lt_LN_S 19013 19014# A BSD-compatible nm program. 19015NM=$lt_NM 19016 19017# A symbol stripping program 19018STRIP=$lt_STRIP 19019 19020# Used to examine libraries when file_magic_cmd begins "file" 19021MAGIC_CMD=$MAGIC_CMD 19022 19023# Used on cygwin: DLL creation program. 19024DLLTOOL="$DLLTOOL" 19025 19026# Used on cygwin: object dumper. 19027OBJDUMP="$OBJDUMP" 19028 19029# Used on cygwin: assembler. 19030AS="$AS" 19031 19032# The name of the directory that contains temporary libtool files. 19033objdir=$objdir 19034 19035# How to create reloadable object files. 19036reload_flag=$lt_reload_flag 19037reload_cmds=$lt_reload_cmds 19038 19039# How to pass a linker flag through the compiler. 19040wl=$lt_lt_prog_compiler_wl_GCJ 19041 19042# Object file suffix (normally "o"). 19043objext="$ac_objext" 19044 19045# Old archive suffix (normally "a"). 19046libext="$libext" 19047 19048# Shared library suffix (normally ".so"). 19049shrext_cmds='$shrext_cmds' 19050 19051# Executable file suffix (normally ""). 19052exeext="$exeext" 19053 19054# Additional compiler flags for building library objects. 19055pic_flag=$lt_lt_prog_compiler_pic_GCJ 19056pic_mode=$pic_mode 19057 19058# What is the maximum length of a command? 19059max_cmd_len=$lt_cv_sys_max_cmd_len 19060 19061# Does compiler simultaneously support -c and -o options? 19062compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 19063 19064# Must we lock files when doing compilation? 19065need_locks=$lt_need_locks 19066 19067# Do we need the lib prefix for modules? 19068need_lib_prefix=$need_lib_prefix 19069 19070# Do we need a version for libraries? 19071need_version=$need_version 19072 19073# Whether dlopen is supported. 19074dlopen_support=$enable_dlopen 19075 19076# Whether dlopen of programs is supported. 19077dlopen_self=$enable_dlopen_self 19078 19079# Whether dlopen of statically linked programs is supported. 19080dlopen_self_static=$enable_dlopen_self_static 19081 19082# Compiler flag to prevent dynamic linking. 19083link_static_flag=$lt_lt_prog_compiler_static_GCJ 19084 19085# Compiler flag to turn off builtin functions. 19086no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 19087 19088# Compiler flag to allow reflexive dlopens. 19089export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 19090 19091# Compiler flag to generate shared objects directly from archives. 19092whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 19093 19094# Compiler flag to generate thread-safe objects. 19095thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 19096 19097# Library versioning type. 19098version_type=$version_type 19099 19100# Format of library name prefix. 19101libname_spec=$lt_libname_spec 19102 19103# List of archive names. First name is the real one, the rest are links. 19104# The last name is the one that the linker finds with -lNAME. 19105library_names_spec=$lt_library_names_spec 19106 19107# The coded name of the library, if different from the real name. 19108soname_spec=$lt_soname_spec 19109 19110# Commands used to build and install an old-style archive. 19111RANLIB=$lt_RANLIB 19112old_archive_cmds=$lt_old_archive_cmds_GCJ 19113old_postinstall_cmds=$lt_old_postinstall_cmds 19114old_postuninstall_cmds=$lt_old_postuninstall_cmds 19115 19116# Create an old-style archive from a shared archive. 19117old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 19118 19119# Create a temporary old-style archive to link instead of a shared archive. 19120old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 19121 19122# Commands used to build and install a shared archive. 19123archive_cmds=$lt_archive_cmds_GCJ 19124archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 19125postinstall_cmds=$lt_postinstall_cmds 19126postuninstall_cmds=$lt_postuninstall_cmds 19127 19128# Commands used to build a loadable module (assumed same as above if empty) 19129module_cmds=$lt_module_cmds_GCJ 19130module_expsym_cmds=$lt_module_expsym_cmds_GCJ 19131 19132# Commands to strip libraries. 19133old_striplib=$lt_old_striplib 19134striplib=$lt_striplib 19135 19136# Dependencies to place before the objects being linked to create a 19137# shared library. 19138predep_objects=$lt_predep_objects_GCJ 19139 19140# Dependencies to place after the objects being linked to create a 19141# shared library. 19142postdep_objects=$lt_postdep_objects_GCJ 19143 19144# Dependencies to place before the objects being linked to create a 19145# shared library. 19146predeps=$lt_predeps_GCJ 19147 19148# Dependencies to place after the objects being linked to create a 19149# shared library. 19150postdeps=$lt_postdeps_GCJ 19151 19152# The library search path used internally by the compiler when linking 19153# a shared library. 19154compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 19155 19156# Method to check whether dependent libraries are shared objects. 19157deplibs_check_method=$lt_deplibs_check_method 19158 19159# Command to use when deplibs_check_method == file_magic. 19160file_magic_cmd=$lt_file_magic_cmd 19161 19162# Flag that allows shared libraries with undefined symbols to be built. 19163allow_undefined_flag=$lt_allow_undefined_flag_GCJ 19164 19165# Flag that forces no undefined symbols. 19166no_undefined_flag=$lt_no_undefined_flag_GCJ 19167 19168# Commands used to finish a libtool library installation in a directory. 19169finish_cmds=$lt_finish_cmds 19170 19171# Same as above, but a single script fragment to be evaled but not shown. 19172finish_eval=$lt_finish_eval 19173 19174# Take the output of nm and produce a listing of raw symbols and C names. 19175global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19176 19177# Transform the output of nm in a proper C declaration 19178global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19179 19180# Transform the output of nm in a C name address pair 19181global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19182 19183# This is the shared library runtime path variable. 19184runpath_var=$runpath_var 19185 19186# This is the shared library path variable. 19187shlibpath_var=$shlibpath_var 19188 19189# Is shlibpath searched before the hard-coded library search path? 19190shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19191 19192# How to hardcode a shared library path into an executable. 19193hardcode_action=$hardcode_action_GCJ 19194 19195# Whether we should hardcode library paths into libraries. 19196hardcode_into_libs=$hardcode_into_libs 19197 19198# Flag to hardcode \$libdir into a binary during linking. 19199# This must work even if \$libdir does not exist. 19200hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 19201 19202# If ld is used when linking, flag to hardcode \$libdir into 19203# a binary during linking. This must work even if \$libdir does 19204# not exist. 19205hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 19206 19207# Whether we need a single -rpath flag with a separated argument. 19208hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 19209 19210# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19211# resulting binary. 19212hardcode_direct=$hardcode_direct_GCJ 19213 19214# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19215# resulting binary. 19216hardcode_minus_L=$hardcode_minus_L_GCJ 19217 19218# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19219# the resulting binary. 19220hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 19221 19222# Set to yes if building a shared library automatically hardcodes DIR into the library 19223# and all subsequent libraries and executables linked against it. 19224hardcode_automatic=$hardcode_automatic_GCJ 19225 19226# Variables whose values should be saved in libtool wrapper scripts and 19227# restored at relink time. 19228variables_saved_for_relink="$variables_saved_for_relink" 19229 19230# Whether libtool must link a program against all its dependency libraries. 19231link_all_deplibs=$link_all_deplibs_GCJ 19232 19233# Compile-time system search path for libraries 19234sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19235 19236# Run-time system search path for libraries 19237sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19238 19239# Fix the shell variable \$srcfile for the compiler. 19240fix_srcfile_path="$fix_srcfile_path_GCJ" 19241 19242# Set to yes if exported symbols are required. 19243always_export_symbols=$always_export_symbols_GCJ 19244 19245# The commands to list exported symbols. 19246export_symbols_cmds=$lt_export_symbols_cmds_GCJ 19247 19248# The commands to extract the exported symbol list from a shared archive. 19249extract_expsyms_cmds=$lt_extract_expsyms_cmds 19250 19251# Symbols that should not be listed in the preloaded symbols. 19252exclude_expsyms=$lt_exclude_expsyms_GCJ 19253 19254# Symbols that must always be exported. 19255include_expsyms=$lt_include_expsyms_GCJ 19256 19257# ### END LIBTOOL TAG CONFIG: $tagname 19258 19259__EOF__ 19260 19261 19262else 19263 # If there is no Makefile yet, we rely on a make rule to execute 19264 # `config.status --recheck' to rerun these tests and create the 19265 # libtool script then. 19266 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19267 if test -f "$ltmain_in"; then 19268 test -f Makefile && make "$ltmain" 19269 fi 19270fi 19271 19272 19273ac_ext=c 19274ac_cpp='$CPP $CPPFLAGS' 19275ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19276ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19277ac_compiler_gnu=$ac_cv_c_compiler_gnu 19278 19279CC="$lt_save_CC" 19280 19281 else 19282 tagname="" 19283 fi 19284 ;; 19285 19286 RC) 19287 19288 19289# Source file extension for RC test sources. 19290ac_ext=rc 19291 19292# Object file extension for compiled RC test sources. 19293objext=o 19294objext_RC=$objext 19295 19296# Code to be used in simple compile tests 19297lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 19298 19299# Code to be used in simple link tests 19300lt_simple_link_test_code="$lt_simple_compile_test_code" 19301 19302# ltmain only uses $CC for tagged configurations so make sure $CC is set. 19303 19304# If no C compiler was specified, use CC. 19305LTCC=${LTCC-"$CC"} 19306 19307# If no C compiler flags were specified, use CFLAGS. 19308LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 19309 19310# Allow CC to be a program name with arguments. 19311compiler=$CC 19312 19313 19314# save warnings/boilerplate of simple test code 19315ac_outfile=conftest.$ac_objext 19316printf "$lt_simple_compile_test_code" >conftest.$ac_ext 19317eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19318_lt_compiler_boilerplate=`cat conftest.err` 19319$rm conftest* 19320 19321ac_outfile=conftest.$ac_objext 19322printf "$lt_simple_link_test_code" >conftest.$ac_ext 19323eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19324_lt_linker_boilerplate=`cat conftest.err` 19325$rm conftest* 19326 19327 19328# Allow CC to be a program name with arguments. 19329lt_save_CC="$CC" 19330CC=${RC-"windres"} 19331compiler=$CC 19332compiler_RC=$CC 19333for cc_temp in $compiler""; do 19334 case $cc_temp in 19335 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19336 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19337 \-*) ;; 19338 *) break;; 19339 esac 19340done 19341cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 19342 19343lt_cv_prog_compiler_c_o_RC=yes 19344 19345# The else clause should only fire when bootstrapping the 19346# libtool distribution, otherwise you forgot to ship ltmain.sh 19347# with your package, and you will get complaints that there are 19348# no rules to generate ltmain.sh. 19349if test -f "$ltmain"; then 19350 # See if we are running on zsh, and set the options which allow our commands through 19351 # without removal of \ escapes. 19352 if test -n "${ZSH_VERSION+set}" ; then 19353 setopt NO_GLOB_SUBST 19354 fi 19355 # Now quote all the things that may contain metacharacters while being 19356 # careful not to overquote the AC_SUBSTed values. We take copies of the 19357 # variables and quote the copies for generation of the libtool script. 19358 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19359 SED SHELL STRIP \ 19360 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19361 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19362 deplibs_check_method reload_flag reload_cmds need_locks \ 19363 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19364 lt_cv_sys_global_symbol_to_c_name_address \ 19365 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19366 old_postinstall_cmds old_postuninstall_cmds \ 19367 compiler_RC \ 19368 CC_RC \ 19369 LD_RC \ 19370 lt_prog_compiler_wl_RC \ 19371 lt_prog_compiler_pic_RC \ 19372 lt_prog_compiler_static_RC \ 19373 lt_prog_compiler_no_builtin_flag_RC \ 19374 export_dynamic_flag_spec_RC \ 19375 thread_safe_flag_spec_RC \ 19376 whole_archive_flag_spec_RC \ 19377 enable_shared_with_static_runtimes_RC \ 19378 old_archive_cmds_RC \ 19379 old_archive_from_new_cmds_RC \ 19380 predep_objects_RC \ 19381 postdep_objects_RC \ 19382 predeps_RC \ 19383 postdeps_RC \ 19384 compiler_lib_search_path_RC \ 19385 archive_cmds_RC \ 19386 archive_expsym_cmds_RC \ 19387 postinstall_cmds_RC \ 19388 postuninstall_cmds_RC \ 19389 old_archive_from_expsyms_cmds_RC \ 19390 allow_undefined_flag_RC \ 19391 no_undefined_flag_RC \ 19392 export_symbols_cmds_RC \ 19393 hardcode_libdir_flag_spec_RC \ 19394 hardcode_libdir_flag_spec_ld_RC \ 19395 hardcode_libdir_separator_RC \ 19396 hardcode_automatic_RC \ 19397 module_cmds_RC \ 19398 module_expsym_cmds_RC \ 19399 lt_cv_prog_compiler_c_o_RC \ 19400 exclude_expsyms_RC \ 19401 include_expsyms_RC; do 19402 19403 case $var in 19404 old_archive_cmds_RC | \ 19405 old_archive_from_new_cmds_RC | \ 19406 archive_cmds_RC | \ 19407 archive_expsym_cmds_RC | \ 19408 module_cmds_RC | \ 19409 module_expsym_cmds_RC | \ 19410 old_archive_from_expsyms_cmds_RC | \ 19411 export_symbols_cmds_RC | \ 19412 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19413 postinstall_cmds | postuninstall_cmds | \ 19414 old_postinstall_cmds | old_postuninstall_cmds | \ 19415 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19416 # Double-quote double-evaled strings. 19417 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19418 ;; 19419 *) 19420 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19421 ;; 19422 esac 19423 done 19424 19425 case $lt_echo in 19426 *'\$0 --fallback-echo"') 19427 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19428 ;; 19429 esac 19430 19431cfgfile="$ofile" 19432 19433 cat <<__EOF__ >> "$cfgfile" 19434# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19435 19436# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19437 19438# Shell to use when invoking shell scripts. 19439SHELL=$lt_SHELL 19440 19441# Whether or not to build shared libraries. 19442build_libtool_libs=$enable_shared 19443 19444# Whether or not to build static libraries. 19445build_old_libs=$enable_static 19446 19447# Whether or not to add -lc for building shared libraries. 19448build_libtool_need_lc=$archive_cmds_need_lc_RC 19449 19450# Whether or not to disallow shared libs when runtime libs are static 19451allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19452 19453# Whether or not to optimize for fast installation. 19454fast_install=$enable_fast_install 19455 19456# The host system. 19457host_alias=$host_alias 19458host=$host 19459host_os=$host_os 19460 19461# The build system. 19462build_alias=$build_alias 19463build=$build 19464build_os=$build_os 19465 19466# An echo program that does not interpret backslashes. 19467echo=$lt_echo 19468 19469# The archiver. 19470AR=$lt_AR 19471AR_FLAGS=$lt_AR_FLAGS 19472 19473# A C compiler. 19474LTCC=$lt_LTCC 19475 19476# LTCC compiler flags. 19477LTCFLAGS=$lt_LTCFLAGS 19478 19479# A language-specific compiler. 19480CC=$lt_compiler_RC 19481 19482# Is the compiler the GNU C compiler? 19483with_gcc=$GCC_RC 19484 19485# An ERE matcher. 19486EGREP=$lt_EGREP 19487 19488# The linker used to build libraries. 19489LD=$lt_LD_RC 19490 19491# Whether we need hard or soft links. 19492LN_S=$lt_LN_S 19493 19494# A BSD-compatible nm program. 19495NM=$lt_NM 19496 19497# A symbol stripping program 19498STRIP=$lt_STRIP 19499 19500# Used to examine libraries when file_magic_cmd begins "file" 19501MAGIC_CMD=$MAGIC_CMD 19502 19503# Used on cygwin: DLL creation program. 19504DLLTOOL="$DLLTOOL" 19505 19506# Used on cygwin: object dumper. 19507OBJDUMP="$OBJDUMP" 19508 19509# Used on cygwin: assembler. 19510AS="$AS" 19511 19512# The name of the directory that contains temporary libtool files. 19513objdir=$objdir 19514 19515# How to create reloadable object files. 19516reload_flag=$lt_reload_flag 19517reload_cmds=$lt_reload_cmds 19518 19519# How to pass a linker flag through the compiler. 19520wl=$lt_lt_prog_compiler_wl_RC 19521 19522# Object file suffix (normally "o"). 19523objext="$ac_objext" 19524 19525# Old archive suffix (normally "a"). 19526libext="$libext" 19527 19528# Shared library suffix (normally ".so"). 19529shrext_cmds='$shrext_cmds' 19530 19531# Executable file suffix (normally ""). 19532exeext="$exeext" 19533 19534# Additional compiler flags for building library objects. 19535pic_flag=$lt_lt_prog_compiler_pic_RC 19536pic_mode=$pic_mode 19537 19538# What is the maximum length of a command? 19539max_cmd_len=$lt_cv_sys_max_cmd_len 19540 19541# Does compiler simultaneously support -c and -o options? 19542compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19543 19544# Must we lock files when doing compilation? 19545need_locks=$lt_need_locks 19546 19547# Do we need the lib prefix for modules? 19548need_lib_prefix=$need_lib_prefix 19549 19550# Do we need a version for libraries? 19551need_version=$need_version 19552 19553# Whether dlopen is supported. 19554dlopen_support=$enable_dlopen 19555 19556# Whether dlopen of programs is supported. 19557dlopen_self=$enable_dlopen_self 19558 19559# Whether dlopen of statically linked programs is supported. 19560dlopen_self_static=$enable_dlopen_self_static 19561 19562# Compiler flag to prevent dynamic linking. 19563link_static_flag=$lt_lt_prog_compiler_static_RC 19564 19565# Compiler flag to turn off builtin functions. 19566no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19567 19568# Compiler flag to allow reflexive dlopens. 19569export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19570 19571# Compiler flag to generate shared objects directly from archives. 19572whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19573 19574# Compiler flag to generate thread-safe objects. 19575thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19576 19577# Library versioning type. 19578version_type=$version_type 19579 19580# Format of library name prefix. 19581libname_spec=$lt_libname_spec 19582 19583# List of archive names. First name is the real one, the rest are links. 19584# The last name is the one that the linker finds with -lNAME. 19585library_names_spec=$lt_library_names_spec 19586 19587# The coded name of the library, if different from the real name. 19588soname_spec=$lt_soname_spec 19589 19590# Commands used to build and install an old-style archive. 19591RANLIB=$lt_RANLIB 19592old_archive_cmds=$lt_old_archive_cmds_RC 19593old_postinstall_cmds=$lt_old_postinstall_cmds 19594old_postuninstall_cmds=$lt_old_postuninstall_cmds 19595 19596# Create an old-style archive from a shared archive. 19597old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19598 19599# Create a temporary old-style archive to link instead of a shared archive. 19600old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19601 19602# Commands used to build and install a shared archive. 19603archive_cmds=$lt_archive_cmds_RC 19604archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19605postinstall_cmds=$lt_postinstall_cmds 19606postuninstall_cmds=$lt_postuninstall_cmds 19607 19608# Commands used to build a loadable module (assumed same as above if empty) 19609module_cmds=$lt_module_cmds_RC 19610module_expsym_cmds=$lt_module_expsym_cmds_RC 19611 19612# Commands to strip libraries. 19613old_striplib=$lt_old_striplib 19614striplib=$lt_striplib 19615 19616# Dependencies to place before the objects being linked to create a 19617# shared library. 19618predep_objects=$lt_predep_objects_RC 19619 19620# Dependencies to place after the objects being linked to create a 19621# shared library. 19622postdep_objects=$lt_postdep_objects_RC 19623 19624# Dependencies to place before the objects being linked to create a 19625# shared library. 19626predeps=$lt_predeps_RC 19627 19628# Dependencies to place after the objects being linked to create a 19629# shared library. 19630postdeps=$lt_postdeps_RC 19631 19632# The library search path used internally by the compiler when linking 19633# a shared library. 19634compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19635 19636# Method to check whether dependent libraries are shared objects. 19637deplibs_check_method=$lt_deplibs_check_method 19638 19639# Command to use when deplibs_check_method == file_magic. 19640file_magic_cmd=$lt_file_magic_cmd 19641 19642# Flag that allows shared libraries with undefined symbols to be built. 19643allow_undefined_flag=$lt_allow_undefined_flag_RC 19644 19645# Flag that forces no undefined symbols. 19646no_undefined_flag=$lt_no_undefined_flag_RC 19647 19648# Commands used to finish a libtool library installation in a directory. 19649finish_cmds=$lt_finish_cmds 19650 19651# Same as above, but a single script fragment to be evaled but not shown. 19652finish_eval=$lt_finish_eval 19653 19654# Take the output of nm and produce a listing of raw symbols and C names. 19655global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19656 19657# Transform the output of nm in a proper C declaration 19658global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19659 19660# Transform the output of nm in a C name address pair 19661global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19662 19663# This is the shared library runtime path variable. 19664runpath_var=$runpath_var 19665 19666# This is the shared library path variable. 19667shlibpath_var=$shlibpath_var 19668 19669# Is shlibpath searched before the hard-coded library search path? 19670shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19671 19672# How to hardcode a shared library path into an executable. 19673hardcode_action=$hardcode_action_RC 19674 19675# Whether we should hardcode library paths into libraries. 19676hardcode_into_libs=$hardcode_into_libs 19677 19678# Flag to hardcode \$libdir into a binary during linking. 19679# This must work even if \$libdir does not exist. 19680hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19681 19682# If ld is used when linking, flag to hardcode \$libdir into 19683# a binary during linking. This must work even if \$libdir does 19684# not exist. 19685hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19686 19687# Whether we need a single -rpath flag with a separated argument. 19688hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19689 19690# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19691# resulting binary. 19692hardcode_direct=$hardcode_direct_RC 19693 19694# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19695# resulting binary. 19696hardcode_minus_L=$hardcode_minus_L_RC 19697 19698# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19699# the resulting binary. 19700hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19701 19702# Set to yes if building a shared library automatically hardcodes DIR into the library 19703# and all subsequent libraries and executables linked against it. 19704hardcode_automatic=$hardcode_automatic_RC 19705 19706# Variables whose values should be saved in libtool wrapper scripts and 19707# restored at relink time. 19708variables_saved_for_relink="$variables_saved_for_relink" 19709 19710# Whether libtool must link a program against all its dependency libraries. 19711link_all_deplibs=$link_all_deplibs_RC 19712 19713# Compile-time system search path for libraries 19714sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19715 19716# Run-time system search path for libraries 19717sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19718 19719# Fix the shell variable \$srcfile for the compiler. 19720fix_srcfile_path="$fix_srcfile_path_RC" 19721 19722# Set to yes if exported symbols are required. 19723always_export_symbols=$always_export_symbols_RC 19724 19725# The commands to list exported symbols. 19726export_symbols_cmds=$lt_export_symbols_cmds_RC 19727 19728# The commands to extract the exported symbol list from a shared archive. 19729extract_expsyms_cmds=$lt_extract_expsyms_cmds 19730 19731# Symbols that should not be listed in the preloaded symbols. 19732exclude_expsyms=$lt_exclude_expsyms_RC 19733 19734# Symbols that must always be exported. 19735include_expsyms=$lt_include_expsyms_RC 19736 19737# ### END LIBTOOL TAG CONFIG: $tagname 19738 19739__EOF__ 19740 19741 19742else 19743 # If there is no Makefile yet, we rely on a make rule to execute 19744 # `config.status --recheck' to rerun these tests and create the 19745 # libtool script then. 19746 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19747 if test -f "$ltmain_in"; then 19748 test -f Makefile && make "$ltmain" 19749 fi 19750fi 19751 19752 19753ac_ext=c 19754ac_cpp='$CPP $CPPFLAGS' 19755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19757ac_compiler_gnu=$ac_cv_c_compiler_gnu 19758 19759CC="$lt_save_CC" 19760 19761 ;; 19762 19763 *) 19764 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19765echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19766 { (exit 1); exit 1; }; } 19767 ;; 19768 esac 19769 19770 # Append the new tag name to the list of available tags. 19771 if test -n "$tagname" ; then 19772 available_tags="$available_tags $tagname" 19773 fi 19774 fi 19775 done 19776 IFS="$lt_save_ifs" 19777 19778 # Now substitute the updated list of available tags. 19779 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19780 mv "${ofile}T" "$ofile" 19781 chmod +x "$ofile" 19782 else 19783 rm -f "${ofile}T" 19784 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19785echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19786 { (exit 1); exit 1; }; } 19787 fi 19788fi 19789 19790 19791 19792# This can be used to rebuild libtool when needed 19793LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19794 19795# Always use our own libtool. 19796LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19797 19798# Prevent multiple expansion 19799 19800 19801 19802 19803 19804 19805 19806 19807 19808 19809 19810 19811 19812 19813 19814 19815 19816 19817 19818 19819 19820LIBSVMADD="-lm -lltdl -lz" 19821{ echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5 19822echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; } 19823if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then 19824 echo $ECHO_N "(cached) $ECHO_C" >&6 19825else 19826 ac_check_lib_save_LIBS=$LIBS 19827LIBS="-lltdl $LIBS" 19828cat >conftest.$ac_ext <<_ACEOF 19829/* confdefs.h. */ 19830_ACEOF 19831cat confdefs.h >>conftest.$ac_ext 19832cat >>conftest.$ac_ext <<_ACEOF 19833/* end confdefs.h. */ 19834 19835/* Override any GCC internal prototype to avoid an error. 19836 Use char because int might match the return type of a GCC 19837 builtin and then its argument prototype would still apply. */ 19838#ifdef __cplusplus 19839extern "C" 19840#endif 19841char lt_dlinit (); 19842int 19843main () 19844{ 19845return lt_dlinit (); 19846 ; 19847 return 0; 19848} 19849_ACEOF 19850rm -f conftest.$ac_objext conftest$ac_exeext 19851if { (ac_try="$ac_link" 19852case "(($ac_try" in 19853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19854 *) ac_try_echo=$ac_try;; 19855esac 19856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19857 (eval "$ac_link") 2>conftest.er1 19858 ac_status=$? 19859 grep -v '^ *+' conftest.er1 >conftest.err 19860 rm -f conftest.er1 19861 cat conftest.err >&5 19862 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19863 (exit $ac_status); } && { 19864 test -z "$ac_c_werror_flag" || 19865 test ! -s conftest.err 19866 } && test -s conftest$ac_exeext && 19867 $as_test_x conftest$ac_exeext; then 19868 ac_cv_lib_ltdl_lt_dlinit=yes 19869else 19870 echo "$as_me: failed program was:" >&5 19871sed 's/^/| /' conftest.$ac_ext >&5 19872 19873 ac_cv_lib_ltdl_lt_dlinit=no 19874fi 19875 19876rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 19877 conftest$ac_exeext conftest.$ac_ext 19878LIBS=$ac_check_lib_save_LIBS 19879fi 19880{ echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5 19881echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; } 19882if test $ac_cv_lib_ltdl_lt_dlinit = yes; then 19883 echo -n 19884else 19885 echo ***ERROR: libltdl is missing; exit 1 19886fi 19887 19888{ echo "$as_me:$LINENO: checking for fmod in -lm" >&5 19889echo $ECHO_N "checking for fmod in -lm... $ECHO_C" >&6; } 19890if test "${ac_cv_lib_m_fmod+set}" = set; then 19891 echo $ECHO_N "(cached) $ECHO_C" >&6 19892else 19893 ac_check_lib_save_LIBS=$LIBS 19894LIBS="-lm $LIBS" 19895cat >conftest.$ac_ext <<_ACEOF 19896/* confdefs.h. */ 19897_ACEOF 19898cat confdefs.h >>conftest.$ac_ext 19899cat >>conftest.$ac_ext <<_ACEOF 19900/* end confdefs.h. */ 19901 19902/* Override any GCC internal prototype to avoid an error. 19903 Use char because int might match the return type of a GCC 19904 builtin and then its argument prototype would still apply. */ 19905#ifdef __cplusplus 19906extern "C" 19907#endif 19908char fmod (); 19909int 19910main () 19911{ 19912return fmod (); 19913 ; 19914 return 0; 19915} 19916_ACEOF 19917rm -f conftest.$ac_objext conftest$ac_exeext 19918if { (ac_try="$ac_link" 19919case "(($ac_try" in 19920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19921 *) ac_try_echo=$ac_try;; 19922esac 19923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19924 (eval "$ac_link") 2>conftest.er1 19925 ac_status=$? 19926 grep -v '^ *+' conftest.er1 >conftest.err 19927 rm -f conftest.er1 19928 cat conftest.err >&5 19929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19930 (exit $ac_status); } && { 19931 test -z "$ac_c_werror_flag" || 19932 test ! -s conftest.err 19933 } && test -s conftest$ac_exeext && 19934 $as_test_x conftest$ac_exeext; then 19935 ac_cv_lib_m_fmod=yes 19936else 19937 echo "$as_me: failed program was:" >&5 19938sed 's/^/| /' conftest.$ac_ext >&5 19939 19940 ac_cv_lib_m_fmod=no 19941fi 19942 19943rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 19944 conftest$ac_exeext conftest.$ac_ext 19945LIBS=$ac_check_lib_save_LIBS 19946fi 19947{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_fmod" >&5 19948echo "${ECHO_T}$ac_cv_lib_m_fmod" >&6; } 19949if test $ac_cv_lib_m_fmod = yes; then 19950 echo -n 19951else 19952 echo ***ERROR: libm is missing; exit 1 19953fi 19954 19955{ echo "$as_me:$LINENO: checking for inflate in -lz" >&5 19956echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6; } 19957if test "${ac_cv_lib_z_inflate+set}" = set; then 19958 echo $ECHO_N "(cached) $ECHO_C" >&6 19959else 19960 ac_check_lib_save_LIBS=$LIBS 19961LIBS="-lz $LIBS" 19962cat >conftest.$ac_ext <<_ACEOF 19963/* confdefs.h. */ 19964_ACEOF 19965cat confdefs.h >>conftest.$ac_ext 19966cat >>conftest.$ac_ext <<_ACEOF 19967/* end confdefs.h. */ 19968 19969/* Override any GCC internal prototype to avoid an error. 19970 Use char because int might match the return type of a GCC 19971 builtin and then its argument prototype would still apply. */ 19972#ifdef __cplusplus 19973extern "C" 19974#endif 19975char inflate (); 19976int 19977main () 19978{ 19979return inflate (); 19980 ; 19981 return 0; 19982} 19983_ACEOF 19984rm -f conftest.$ac_objext conftest$ac_exeext 19985if { (ac_try="$ac_link" 19986case "(($ac_try" in 19987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19988 *) ac_try_echo=$ac_try;; 19989esac 19990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19991 (eval "$ac_link") 2>conftest.er1 19992 ac_status=$? 19993 grep -v '^ *+' conftest.er1 >conftest.err 19994 rm -f conftest.er1 19995 cat conftest.err >&5 19996 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19997 (exit $ac_status); } && { 19998 test -z "$ac_c_werror_flag" || 19999 test ! -s conftest.err 20000 } && test -s conftest$ac_exeext && 20001 $as_test_x conftest$ac_exeext; then 20002 ac_cv_lib_z_inflate=yes 20003else 20004 echo "$as_me: failed program was:" >&5 20005sed 's/^/| /' conftest.$ac_ext >&5 20006 20007 ac_cv_lib_z_inflate=no 20008fi 20009 20010rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20011 conftest$ac_exeext conftest.$ac_ext 20012LIBS=$ac_check_lib_save_LIBS 20013fi 20014{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5 20015echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6; } 20016if test $ac_cv_lib_z_inflate = yes; then 20017 echo -n 20018else 20019 echo ***ERROR: zlib/libz is missing; exit 1 20020fi 20021 20022 20023case $host in 20024 *-sun-solaris*) 20025 LIBSVMADD="$LIBSVMADD -lrt" 20026 ;; 20027 *) ;; 20028esac 20029 20030case $host in 20031 *-freebsd*) 20032 ;; 20033 *) 20034 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5 20035echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; } 20036if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then 20037 echo $ECHO_N "(cached) $ECHO_C" >&6 20038else 20039 ac_check_lib_save_LIBS=$LIBS 20040LIBS="-lpthread $LIBS" 20041cat >conftest.$ac_ext <<_ACEOF 20042/* confdefs.h. */ 20043_ACEOF 20044cat confdefs.h >>conftest.$ac_ext 20045cat >>conftest.$ac_ext <<_ACEOF 20046/* end confdefs.h. */ 20047 20048/* Override any GCC internal prototype to avoid an error. 20049 Use char because int might match the return type of a GCC 20050 builtin and then its argument prototype would still apply. */ 20051#ifdef __cplusplus 20052extern "C" 20053#endif 20054char pthread_self (); 20055int 20056main () 20057{ 20058return pthread_self (); 20059 ; 20060 return 0; 20061} 20062_ACEOF 20063rm -f conftest.$ac_objext conftest$ac_exeext 20064if { (ac_try="$ac_link" 20065case "(($ac_try" in 20066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20067 *) ac_try_echo=$ac_try;; 20068esac 20069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20070 (eval "$ac_link") 2>conftest.er1 20071 ac_status=$? 20072 grep -v '^ *+' conftest.er1 >conftest.err 20073 rm -f conftest.er1 20074 cat conftest.err >&5 20075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20076 (exit $ac_status); } && { 20077 test -z "$ac_c_werror_flag" || 20078 test ! -s conftest.err 20079 } && test -s conftest$ac_exeext && 20080 $as_test_x conftest$ac_exeext; then 20081 ac_cv_lib_pthread_pthread_self=yes 20082else 20083 echo "$as_me: failed program was:" >&5 20084sed 's/^/| /' conftest.$ac_ext >&5 20085 20086 ac_cv_lib_pthread_pthread_self=no 20087fi 20088 20089rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20090 conftest$ac_exeext conftest.$ac_ext 20091LIBS=$ac_check_lib_save_LIBS 20092fi 20093{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5 20094echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; } 20095if test $ac_cv_lib_pthread_pthread_self = yes; then 20096 echo -n 20097else 20098 echo ***ERROR: libpthread is missing; exit 1 20099fi 20100 20101 LIBSVMADD="$LIBSVMADD -lpthread" 20102 ;; 20103esac 20104 20105if test "$with_internal_libffi" = "auto"; then 20106 { echo "$as_me:$LINENO: checking for ffi_prep_cif in -lffi" >&5 20107echo $ECHO_N "checking for ffi_prep_cif in -lffi... $ECHO_C" >&6; } 20108if test "${ac_cv_lib_ffi_ffi_prep_cif+set}" = set; then 20109 echo $ECHO_N "(cached) $ECHO_C" >&6 20110else 20111 ac_check_lib_save_LIBS=$LIBS 20112LIBS="-lffi $LIBS" 20113cat >conftest.$ac_ext <<_ACEOF 20114/* confdefs.h. */ 20115_ACEOF 20116cat confdefs.h >>conftest.$ac_ext 20117cat >>conftest.$ac_ext <<_ACEOF 20118/* end confdefs.h. */ 20119 20120/* Override any GCC internal prototype to avoid an error. 20121 Use char because int might match the return type of a GCC 20122 builtin and then its argument prototype would still apply. */ 20123#ifdef __cplusplus 20124extern "C" 20125#endif 20126char ffi_prep_cif (); 20127int 20128main () 20129{ 20130return ffi_prep_cif (); 20131 ; 20132 return 0; 20133} 20134_ACEOF 20135rm -f conftest.$ac_objext conftest$ac_exeext 20136if { (ac_try="$ac_link" 20137case "(($ac_try" in 20138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20139 *) ac_try_echo=$ac_try;; 20140esac 20141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20142 (eval "$ac_link") 2>conftest.er1 20143 ac_status=$? 20144 grep -v '^ *+' conftest.er1 >conftest.err 20145 rm -f conftest.er1 20146 cat conftest.err >&5 20147 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20148 (exit $ac_status); } && { 20149 test -z "$ac_c_werror_flag" || 20150 test ! -s conftest.err 20151 } && test -s conftest$ac_exeext && 20152 $as_test_x conftest$ac_exeext; then 20153 ac_cv_lib_ffi_ffi_prep_cif=yes 20154else 20155 echo "$as_me: failed program was:" >&5 20156sed 's/^/| /' conftest.$ac_ext >&5 20157 20158 ac_cv_lib_ffi_ffi_prep_cif=no 20159fi 20160 20161rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20162 conftest$ac_exeext conftest.$ac_ext 20163LIBS=$ac_check_lib_save_LIBS 20164fi 20165{ echo "$as_me:$LINENO: result: $ac_cv_lib_ffi_ffi_prep_cif" >&5 20166echo "${ECHO_T}$ac_cv_lib_ffi_ffi_prep_cif" >&6; } 20167if test $ac_cv_lib_ffi_ffi_prep_cif = yes; then 20168 with_internal_libffi=no2 20169else 20170 echo "system-wide libffi is missing, use the built-in one" 20171 with_internal_libffi=yes 20172fi 20173 20174fi 20175case "$with_internal_libffi" in 20176 no) { echo "$as_me:$LINENO: checking for ffi_prep_cif in -lffi" >&5 20177echo $ECHO_N "checking for ffi_prep_cif in -lffi... $ECHO_C" >&6; } 20178if test "${ac_cv_lib_ffi_ffi_prep_cif+set}" = set; then 20179 echo $ECHO_N "(cached) $ECHO_C" >&6 20180else 20181 ac_check_lib_save_LIBS=$LIBS 20182LIBS="-lffi $LIBS" 20183cat >conftest.$ac_ext <<_ACEOF 20184/* confdefs.h. */ 20185_ACEOF 20186cat confdefs.h >>conftest.$ac_ext 20187cat >>conftest.$ac_ext <<_ACEOF 20188/* end confdefs.h. */ 20189 20190/* Override any GCC internal prototype to avoid an error. 20191 Use char because int might match the return type of a GCC 20192 builtin and then its argument prototype would still apply. */ 20193#ifdef __cplusplus 20194extern "C" 20195#endif 20196char ffi_prep_cif (); 20197int 20198main () 20199{ 20200return ffi_prep_cif (); 20201 ; 20202 return 0; 20203} 20204_ACEOF 20205rm -f conftest.$ac_objext conftest$ac_exeext 20206if { (ac_try="$ac_link" 20207case "(($ac_try" in 20208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20209 *) ac_try_echo=$ac_try;; 20210esac 20211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20212 (eval "$ac_link") 2>conftest.er1 20213 ac_status=$? 20214 grep -v '^ *+' conftest.er1 >conftest.err 20215 rm -f conftest.er1 20216 cat conftest.err >&5 20217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20218 (exit $ac_status); } && { 20219 test -z "$ac_c_werror_flag" || 20220 test ! -s conftest.err 20221 } && test -s conftest$ac_exeext && 20222 $as_test_x conftest$ac_exeext; then 20223 ac_cv_lib_ffi_ffi_prep_cif=yes 20224else 20225 echo "$as_me: failed program was:" >&5 20226sed 's/^/| /' conftest.$ac_ext >&5 20227 20228 ac_cv_lib_ffi_ffi_prep_cif=no 20229fi 20230 20231rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20232 conftest$ac_exeext conftest.$ac_ext 20233LIBS=$ac_check_lib_save_LIBS 20234fi 20235{ echo "$as_me:$LINENO: result: $ac_cv_lib_ffi_ffi_prep_cif" >&5 20236echo "${ECHO_T}$ac_cv_lib_ffi_ffi_prep_cif" >&6; } 20237if test $ac_cv_lib_ffi_ffi_prep_cif = yes; then 20238 echo -n 20239else 20240 echo ***ERROR: libffi is missing; exit 1 20241fi 20242 20243 LIBSVMADD="$LIBSVMADD -lffi";; 20244 no2) LIBSVMADD="$LIBSVMADD -lffi";; yes) ac_configure_args="$ac_configure_args --enable-convenience-only-libffi" 20245 LIBSVMADD="$LIBSVMADD ../libffi/libffi_convenience.la" 20246 LIBSVMINCLUDE="-I../libffi -I../libffi/include" 20247 { echo "$as_me:$LINENO: checking which libffi to use" >&5 20248echo $ECHO_N "checking which libffi to use... $ECHO_C" >&6; } 20249 { echo "$as_me:$LINENO: result: internal." >&5 20250echo "${ECHO_T}internal." >&6; } 20251 ;; 20252esac 20253{ echo "$as_me:$LINENO: checking which libffi to use" >&5 20254echo $ECHO_N "checking which libffi to use... $ECHO_C" >&6; } 20255case "$with_internal_libffi" in 20256 no*) { echo "$as_me:$LINENO: result: system-wide." >&5 20257echo "${ECHO_T}system-wide." >&6; };; 20258 yes) { echo "$as_me:$LINENO: result: internal." >&5 20259echo "${ECHO_T}internal." >&6; };; 20260esac 20261 20262if test "$with_internal_libpopt" = "auto"; then 20263 { echo "$as_me:$LINENO: checking for poptGetContext in -lpopt" >&5 20264echo $ECHO_N "checking for poptGetContext in -lpopt... $ECHO_C" >&6; } 20265if test "${ac_cv_lib_popt_poptGetContext+set}" = set; then 20266 echo $ECHO_N "(cached) $ECHO_C" >&6 20267else 20268 ac_check_lib_save_LIBS=$LIBS 20269LIBS="-lpopt $LIBS" 20270cat >conftest.$ac_ext <<_ACEOF 20271/* confdefs.h. */ 20272_ACEOF 20273cat confdefs.h >>conftest.$ac_ext 20274cat >>conftest.$ac_ext <<_ACEOF 20275/* end confdefs.h. */ 20276 20277/* Override any GCC internal prototype to avoid an error. 20278 Use char because int might match the return type of a GCC 20279 builtin and then its argument prototype would still apply. */ 20280#ifdef __cplusplus 20281extern "C" 20282#endif 20283char poptGetContext (); 20284int 20285main () 20286{ 20287return poptGetContext (); 20288 ; 20289 return 0; 20290} 20291_ACEOF 20292rm -f conftest.$ac_objext conftest$ac_exeext 20293if { (ac_try="$ac_link" 20294case "(($ac_try" in 20295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20296 *) ac_try_echo=$ac_try;; 20297esac 20298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20299 (eval "$ac_link") 2>conftest.er1 20300 ac_status=$? 20301 grep -v '^ *+' conftest.er1 >conftest.err 20302 rm -f conftest.er1 20303 cat conftest.err >&5 20304 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20305 (exit $ac_status); } && { 20306 test -z "$ac_c_werror_flag" || 20307 test ! -s conftest.err 20308 } && test -s conftest$ac_exeext && 20309 $as_test_x conftest$ac_exeext; then 20310 ac_cv_lib_popt_poptGetContext=yes 20311else 20312 echo "$as_me: failed program was:" >&5 20313sed 's/^/| /' conftest.$ac_ext >&5 20314 20315 ac_cv_lib_popt_poptGetContext=no 20316fi 20317 20318rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20319 conftest$ac_exeext conftest.$ac_ext 20320LIBS=$ac_check_lib_save_LIBS 20321fi 20322{ echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptGetContext" >&5 20323echo "${ECHO_T}$ac_cv_lib_popt_poptGetContext" >&6; } 20324if test $ac_cv_lib_popt_poptGetContext = yes; then 20325 with_internal_libpopt=no2 20326else 20327 echo "system-wide libpopt is missing, use the built-in one" 20328 with_internal_libpopt=yes 20329fi 20330 20331fi 20332case "$with_internal_libpopt" in 20333 no) { echo "$as_me:$LINENO: checking for poptGetContext in -lpopt" >&5 20334echo $ECHO_N "checking for poptGetContext in -lpopt... $ECHO_C" >&6; } 20335if test "${ac_cv_lib_popt_poptGetContext+set}" = set; then 20336 echo $ECHO_N "(cached) $ECHO_C" >&6 20337else 20338 ac_check_lib_save_LIBS=$LIBS 20339LIBS="-lpopt $LIBS" 20340cat >conftest.$ac_ext <<_ACEOF 20341/* confdefs.h. */ 20342_ACEOF 20343cat confdefs.h >>conftest.$ac_ext 20344cat >>conftest.$ac_ext <<_ACEOF 20345/* end confdefs.h. */ 20346 20347/* Override any GCC internal prototype to avoid an error. 20348 Use char because int might match the return type of a GCC 20349 builtin and then its argument prototype would still apply. */ 20350#ifdef __cplusplus 20351extern "C" 20352#endif 20353char poptGetContext (); 20354int 20355main () 20356{ 20357return poptGetContext (); 20358 ; 20359 return 0; 20360} 20361_ACEOF 20362rm -f conftest.$ac_objext conftest$ac_exeext 20363if { (ac_try="$ac_link" 20364case "(($ac_try" in 20365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20366 *) ac_try_echo=$ac_try;; 20367esac 20368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20369 (eval "$ac_link") 2>conftest.er1 20370 ac_status=$? 20371 grep -v '^ *+' conftest.er1 >conftest.err 20372 rm -f conftest.er1 20373 cat conftest.err >&5 20374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20375 (exit $ac_status); } && { 20376 test -z "$ac_c_werror_flag" || 20377 test ! -s conftest.err 20378 } && test -s conftest$ac_exeext && 20379 $as_test_x conftest$ac_exeext; then 20380 ac_cv_lib_popt_poptGetContext=yes 20381else 20382 echo "$as_me: failed program was:" >&5 20383sed 's/^/| /' conftest.$ac_ext >&5 20384 20385 ac_cv_lib_popt_poptGetContext=no 20386fi 20387 20388rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20389 conftest$ac_exeext conftest.$ac_ext 20390LIBS=$ac_check_lib_save_LIBS 20391fi 20392{ echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptGetContext" >&5 20393echo "${ECHO_T}$ac_cv_lib_popt_poptGetContext" >&6; } 20394if test $ac_cv_lib_popt_poptGetContext = yes; then 20395 echo -n 20396else 20397 echo ***ERROR: libpopt is missing; exit 1 20398fi 20399 20400 LIBSVMADD="$LIBSVMADD -lpopt";; 20401 no2) LIBSVMADD="$LIBSVMADD -lpopt";; yes) ac_configure_args="$ac_configure_args --enable-convenience-only-libpopt" 20402 SVMADD="$LIBSVMADD ../libpopt/libpopt_convenience.la" 20403 SVMINCLUDE='-I../libpopt -I$(srcdir)/../libpopt' 20404 ;; 20405esac 20406{ echo "$as_me:$LINENO: checking which libpopt to use" >&5 20407echo $ECHO_N "checking which libpopt to use... $ECHO_C" >&6; } 20408case "$with_internal_libpopt" in 20409 no*) { echo "$as_me:$LINENO: result: system-wide." >&5 20410echo "${ECHO_T}system-wide." >&6; };; 20411 yes) { echo "$as_me:$LINENO: result: internal." >&5 20412echo "${ECHO_T}internal." >&6; };; 20413esac 20414 20415 20416 20417 20418 20419 20420 20421 20422if test "$with_internal_libffi" = "yes"; then 20423 CONV_LIBFFI_TRUE= 20424 CONV_LIBFFI_FALSE='#' 20425else 20426 CONV_LIBFFI_TRUE='#' 20427 CONV_LIBFFI_FALSE= 20428fi 20429 20430 20431 20432if test "$with_internal_libpopt" = "yes"; then 20433 CONV_LIBPOPT_TRUE= 20434 CONV_LIBPOPT_FALSE='#' 20435else 20436 CONV_LIBPOPT_TRUE='#' 20437 CONV_LIBPOPT_FALSE= 20438fi 20439 20440 20441LIBSVMADD=$LIBSVMADD 20442 20443LIBSVMINCLUDE=$LIBSVMINCLUDE 20444 20445SVMADD=$SVMADD 20446 20447SVMINCLUDE=$SVMINCLUDE 20448 20449 20450 20451case "$host" in 20452 *-*-mingw*|*-*-cygwin*) NO_UNDEFINED=-no-undefined 20453 ;; 20454 *) ;; 20455esac 20456 20457if test "x$M4" = "x"; then 20458 # Extract the first word of ""gm4"", so it can be a program name with args. 20459set dummy "gm4"; ac_word=$2 20460{ echo "$as_me:$LINENO: checking for $ac_word" >&5 20461echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 20462if test "${ac_cv_path_M4+set}" = set; then 20463 echo $ECHO_N "(cached) $ECHO_C" >&6 20464else 20465 case $M4 in 20466 [\\/]* | ?:[\\/]*) 20467 ac_cv_path_M4="$M4" # Let the user override the test with a path. 20468 ;; 20469 *) 20470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20471for as_dir in $PATH 20472do 20473 IFS=$as_save_IFS 20474 test -z "$as_dir" && as_dir=. 20475 for ac_exec_ext in '' $ac_executable_extensions; do 20476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20477 ac_cv_path_M4="$as_dir/$ac_word$ac_exec_ext" 20478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20479 break 2 20480 fi 20481done 20482done 20483IFS=$as_save_IFS 20484 20485 ;; 20486esac 20487fi 20488M4=$ac_cv_path_M4 20489if test -n "$M4"; then 20490 { echo "$as_me:$LINENO: result: $M4" >&5 20491echo "${ECHO_T}$M4" >&6; } 20492else 20493 { echo "$as_me:$LINENO: result: no" >&5 20494echo "${ECHO_T}no" >&6; } 20495fi 20496 20497 20498 if test "x$M4" = "x"; then 20499 # Extract the first word of ""m4"", so it can be a program name with args. 20500set dummy "m4"; ac_word=$2 20501{ echo "$as_me:$LINENO: checking for $ac_word" >&5 20502echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 20503if test "${ac_cv_path_M4+set}" = set; then 20504 echo $ECHO_N "(cached) $ECHO_C" >&6 20505else 20506 case $M4 in 20507 [\\/]* | ?:[\\/]*) 20508 ac_cv_path_M4="$M4" # Let the user override the test with a path. 20509 ;; 20510 *) 20511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20512for as_dir in $PATH 20513do 20514 IFS=$as_save_IFS 20515 test -z "$as_dir" && as_dir=. 20516 for ac_exec_ext in '' $ac_executable_extensions; do 20517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20518 ac_cv_path_M4="$as_dir/$ac_word$ac_exec_ext" 20519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20520 break 2 20521 fi 20522done 20523done 20524IFS=$as_save_IFS 20525 20526 ;; 20527esac 20528fi 20529M4=$ac_cv_path_M4 20530if test -n "$M4"; then 20531 { echo "$as_me:$LINENO: result: $M4" >&5 20532echo "${ECHO_T}$M4" >&6; } 20533else 20534 { echo "$as_me:$LINENO: result: no" >&5 20535echo "${ECHO_T}no" >&6; } 20536fi 20537 20538 20539 fi 20540fi 20541 20542if test "x$M4" = "x"; then 20543 { echo "$as_me:$LINENO: WARNING: 'Unable to find operational m4 preprocessor. You might be unable to regenerate some source files.'" >&5 20544echo "$as_me: WARNING: 'Unable to find operational m4 preprocessor. You might be unable to regenerate some source files.'" >&2;} 20545 M4=m4 20546else 20547 echo -n | $M4 -P || \ 20548 ({ echo "$as_me:$LINENO: WARNING: 'Unable to find operational GNU-compatible m4 preprocessor. You might be unable to regenerate some source files.'" >&5 20549echo "$as_me: WARNING: 'Unable to find operational GNU-compatible m4 preprocessor. You might be unable to regenerate some source files.'" >&2;} ) 20550fi 20551 20552 20553 20554 20555{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 20556echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 20557if test "${ac_cv_header_stdc+set}" = set; then 20558 echo $ECHO_N "(cached) $ECHO_C" >&6 20559else 20560 cat >conftest.$ac_ext <<_ACEOF 20561/* confdefs.h. */ 20562_ACEOF 20563cat confdefs.h >>conftest.$ac_ext 20564cat >>conftest.$ac_ext <<_ACEOF 20565/* end confdefs.h. */ 20566#include <stdlib.h> 20567#include <stdarg.h> 20568#include <string.h> 20569#include <float.h> 20570 20571int 20572main () 20573{ 20574 20575 ; 20576 return 0; 20577} 20578_ACEOF 20579rm -f conftest.$ac_objext 20580if { (ac_try="$ac_compile" 20581case "(($ac_try" in 20582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20583 *) ac_try_echo=$ac_try;; 20584esac 20585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20586 (eval "$ac_compile") 2>conftest.er1 20587 ac_status=$? 20588 grep -v '^ *+' conftest.er1 >conftest.err 20589 rm -f conftest.er1 20590 cat conftest.err >&5 20591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20592 (exit $ac_status); } && { 20593 test -z "$ac_c_werror_flag" || 20594 test ! -s conftest.err 20595 } && test -s conftest.$ac_objext; then 20596 ac_cv_header_stdc=yes 20597else 20598 echo "$as_me: failed program was:" >&5 20599sed 's/^/| /' conftest.$ac_ext >&5 20600 20601 ac_cv_header_stdc=no 20602fi 20603 20604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20605 20606if test $ac_cv_header_stdc = yes; then 20607 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 20608 cat >conftest.$ac_ext <<_ACEOF 20609/* confdefs.h. */ 20610_ACEOF 20611cat confdefs.h >>conftest.$ac_ext 20612cat >>conftest.$ac_ext <<_ACEOF 20613/* end confdefs.h. */ 20614#include <string.h> 20615 20616_ACEOF 20617if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20618 $EGREP "memchr" >/dev/null 2>&1; then 20619 : 20620else 20621 ac_cv_header_stdc=no 20622fi 20623rm -f conftest* 20624 20625fi 20626 20627if test $ac_cv_header_stdc = yes; then 20628 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 20629 cat >conftest.$ac_ext <<_ACEOF 20630/* confdefs.h. */ 20631_ACEOF 20632cat confdefs.h >>conftest.$ac_ext 20633cat >>conftest.$ac_ext <<_ACEOF 20634/* end confdefs.h. */ 20635#include <stdlib.h> 20636 20637_ACEOF 20638if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20639 $EGREP "free" >/dev/null 2>&1; then 20640 : 20641else 20642 ac_cv_header_stdc=no 20643fi 20644rm -f conftest* 20645 20646fi 20647 20648if test $ac_cv_header_stdc = yes; then 20649 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 20650 if test "$cross_compiling" = yes; then 20651 : 20652else 20653 cat >conftest.$ac_ext <<_ACEOF 20654/* confdefs.h. */ 20655_ACEOF 20656cat confdefs.h >>conftest.$ac_ext 20657cat >>conftest.$ac_ext <<_ACEOF 20658/* end confdefs.h. */ 20659#include <ctype.h> 20660#include <stdlib.h> 20661#if ((' ' & 0x0FF) == 0x020) 20662# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 20663# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 20664#else 20665# define ISLOWER(c) \ 20666 (('a' <= (c) && (c) <= 'i') \ 20667 || ('j' <= (c) && (c) <= 'r') \ 20668 || ('s' <= (c) && (c) <= 'z')) 20669# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 20670#endif 20671 20672#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 20673int 20674main () 20675{ 20676 int i; 20677 for (i = 0; i < 256; i++) 20678 if (XOR (islower (i), ISLOWER (i)) 20679 || toupper (i) != TOUPPER (i)) 20680 return 2; 20681 return 0; 20682} 20683_ACEOF 20684rm -f conftest$ac_exeext 20685if { (ac_try="$ac_link" 20686case "(($ac_try" in 20687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20688 *) ac_try_echo=$ac_try;; 20689esac 20690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20691 (eval "$ac_link") 2>&5 20692 ac_status=$? 20693 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20694 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20695 { (case "(($ac_try" in 20696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20697 *) ac_try_echo=$ac_try;; 20698esac 20699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20700 (eval "$ac_try") 2>&5 20701 ac_status=$? 20702 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20703 (exit $ac_status); }; }; then 20704 : 20705else 20706 echo "$as_me: program exited with status $ac_status" >&5 20707echo "$as_me: failed program was:" >&5 20708sed 's/^/| /' conftest.$ac_ext >&5 20709 20710( exit $ac_status ) 20711ac_cv_header_stdc=no 20712fi 20713rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20714fi 20715 20716 20717fi 20718fi 20719{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 20720echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 20721if test $ac_cv_header_stdc = yes; then 20722 20723cat >>confdefs.h <<\_ACEOF 20724#define STDC_HEADERS 1 20725_ACEOF 20726 20727fi 20728 20729 20730 20731 20732 20733 20734 20735 20736for ac_header in errno.h fcntl.h stdlib.h string.h sys/time.h unistd.h ctype.h 20737do 20738as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 20739if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20740 { echo "$as_me:$LINENO: checking for $ac_header" >&5 20741echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 20742if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20743 echo $ECHO_N "(cached) $ECHO_C" >&6 20744fi 20745ac_res=`eval echo '${'$as_ac_Header'}'` 20746 { echo "$as_me:$LINENO: result: $ac_res" >&5 20747echo "${ECHO_T}$ac_res" >&6; } 20748else 20749 # Is the header compilable? 20750{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 20751echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 20752cat >conftest.$ac_ext <<_ACEOF 20753/* confdefs.h. */ 20754_ACEOF 20755cat confdefs.h >>conftest.$ac_ext 20756cat >>conftest.$ac_ext <<_ACEOF 20757/* end confdefs.h. */ 20758$ac_includes_default 20759#include <$ac_header> 20760_ACEOF 20761rm -f conftest.$ac_objext 20762if { (ac_try="$ac_compile" 20763case "(($ac_try" in 20764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20765 *) ac_try_echo=$ac_try;; 20766esac 20767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20768 (eval "$ac_compile") 2>conftest.er1 20769 ac_status=$? 20770 grep -v '^ *+' conftest.er1 >conftest.err 20771 rm -f conftest.er1 20772 cat conftest.err >&5 20773 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20774 (exit $ac_status); } && { 20775 test -z "$ac_c_werror_flag" || 20776 test ! -s conftest.err 20777 } && test -s conftest.$ac_objext; then 20778 ac_header_compiler=yes 20779else 20780 echo "$as_me: failed program was:" >&5 20781sed 's/^/| /' conftest.$ac_ext >&5 20782 20783 ac_header_compiler=no 20784fi 20785 20786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20787{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20788echo "${ECHO_T}$ac_header_compiler" >&6; } 20789 20790# Is the header present? 20791{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 20792echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 20793cat >conftest.$ac_ext <<_ACEOF 20794/* confdefs.h. */ 20795_ACEOF 20796cat confdefs.h >>conftest.$ac_ext 20797cat >>conftest.$ac_ext <<_ACEOF 20798/* end confdefs.h. */ 20799#include <$ac_header> 20800_ACEOF 20801if { (ac_try="$ac_cpp conftest.$ac_ext" 20802case "(($ac_try" in 20803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20804 *) ac_try_echo=$ac_try;; 20805esac 20806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20807 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 20808 ac_status=$? 20809 grep -v '^ *+' conftest.er1 >conftest.err 20810 rm -f conftest.er1 20811 cat conftest.err >&5 20812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20813 (exit $ac_status); } >/dev/null && { 20814 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 20815 test ! -s conftest.err 20816 }; then 20817 ac_header_preproc=yes 20818else 20819 echo "$as_me: failed program was:" >&5 20820sed 's/^/| /' conftest.$ac_ext >&5 20821 20822 ac_header_preproc=no 20823fi 20824 20825rm -f conftest.err conftest.$ac_ext 20826{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20827echo "${ECHO_T}$ac_header_preproc" >&6; } 20828 20829# So? What about this header? 20830case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20831 yes:no: ) 20832 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 20833echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 20834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 20835echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 20836 ac_header_preproc=yes 20837 ;; 20838 no:yes:* ) 20839 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 20840echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 20841 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 20842echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 20843 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 20844echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 20845 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 20846echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 20847 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 20848echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 20849 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 20850echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 20851 ( cat <<\_ASBOX 20852## ---------------------------------- ## 20853## Report this to http://sablevm.org/ ## 20854## ---------------------------------- ## 20855_ASBOX 20856 ) | sed "s/^/$as_me: WARNING: /" >&2 20857 ;; 20858esac 20859{ echo "$as_me:$LINENO: checking for $ac_header" >&5 20860echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 20861if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20862 echo $ECHO_N "(cached) $ECHO_C" >&6 20863else 20864 eval "$as_ac_Header=\$ac_header_preproc" 20865fi 20866ac_res=`eval echo '${'$as_ac_Header'}'` 20867 { echo "$as_me:$LINENO: result: $ac_res" >&5 20868echo "${ECHO_T}$ac_res" >&6; } 20869 20870fi 20871if test `eval echo '${'$as_ac_Header'}'` = yes; then 20872 cat >>confdefs.h <<_ACEOF 20873#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 20874_ACEOF 20875 echo -n 20876else 20877 echo ***ERROR: missing header file; exit 1 20878fi 20879 20880done 20881 20882 20883{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 20884echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } 20885if test "${ac_cv_c_const+set}" = set; then 20886 echo $ECHO_N "(cached) $ECHO_C" >&6 20887else 20888 cat >conftest.$ac_ext <<_ACEOF 20889/* confdefs.h. */ 20890_ACEOF 20891cat confdefs.h >>conftest.$ac_ext 20892cat >>conftest.$ac_ext <<_ACEOF 20893/* end confdefs.h. */ 20894 20895int 20896main () 20897{ 20898/* FIXME: Include the comments suggested by Paul. */ 20899#ifndef __cplusplus 20900 /* Ultrix mips cc rejects this. */ 20901 typedef int charset[2]; 20902 const charset cs; 20903 /* SunOS 4.1.1 cc rejects this. */ 20904 char const *const *pcpcc; 20905 char **ppc; 20906 /* NEC SVR4.0.2 mips cc rejects this. */ 20907 struct point {int x, y;}; 20908 static struct point const zero = {0,0}; 20909 /* AIX XL C 1.02.0.0 rejects this. 20910 It does not let you subtract one const X* pointer from another in 20911 an arm of an if-expression whose if-part is not a constant 20912 expression */ 20913 const char *g = "string"; 20914 pcpcc = &g + (g ? g-g : 0); 20915 /* HPUX 7.0 cc rejects these. */ 20916 ++pcpcc; 20917 ppc = (char**) pcpcc; 20918 pcpcc = (char const *const *) ppc; 20919 { /* SCO 3.2v4 cc rejects this. */ 20920 char *t; 20921 char const *s = 0 ? (char *) 0 : (char const *) 0; 20922 20923 *t++ = 0; 20924 if (s) return 0; 20925 } 20926 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 20927 int x[] = {25, 17}; 20928 const int *foo = &x[0]; 20929 ++foo; 20930 } 20931 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 20932 typedef const int *iptr; 20933 iptr p = 0; 20934 ++p; 20935 } 20936 { /* AIX XL C 1.02.0.0 rejects this saying 20937 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 20938 struct s { int j; const int *ap[3]; }; 20939 struct s *b; b->j = 5; 20940 } 20941 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 20942 const int foo = 10; 20943 if (!foo) return 0; 20944 } 20945 return !cs[0] && !zero.x; 20946#endif 20947 20948 ; 20949 return 0; 20950} 20951_ACEOF 20952rm -f conftest.$ac_objext 20953if { (ac_try="$ac_compile" 20954case "(($ac_try" in 20955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20956 *) ac_try_echo=$ac_try;; 20957esac 20958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20959 (eval "$ac_compile") 2>conftest.er1 20960 ac_status=$? 20961 grep -v '^ *+' conftest.er1 >conftest.err 20962 rm -f conftest.er1 20963 cat conftest.err >&5 20964 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20965 (exit $ac_status); } && { 20966 test -z "$ac_c_werror_flag" || 20967 test ! -s conftest.err 20968 } && test -s conftest.$ac_objext; then 20969 ac_cv_c_const=yes 20970else 20971 echo "$as_me: failed program was:" >&5 20972sed 's/^/| /' conftest.$ac_ext >&5 20973 20974 ac_cv_c_const=no 20975fi 20976 20977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20978fi 20979{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 20980echo "${ECHO_T}$ac_cv_c_const" >&6; } 20981if test $ac_cv_c_const = no; then 20982 20983cat >>confdefs.h <<\_ACEOF 20984#define const 20985_ACEOF 20986 20987fi 20988 20989{ echo "$as_me:$LINENO: checking for inline" >&5 20990echo $ECHO_N "checking for inline... $ECHO_C" >&6; } 20991if test "${ac_cv_c_inline+set}" = set; then 20992 echo $ECHO_N "(cached) $ECHO_C" >&6 20993else 20994 ac_cv_c_inline=no 20995for ac_kw in inline __inline__ __inline; do 20996 cat >conftest.$ac_ext <<_ACEOF 20997/* confdefs.h. */ 20998_ACEOF 20999cat confdefs.h >>conftest.$ac_ext 21000cat >>conftest.$ac_ext <<_ACEOF 21001/* end confdefs.h. */ 21002#ifndef __cplusplus 21003typedef int foo_t; 21004static $ac_kw foo_t static_foo () {return 0; } 21005$ac_kw foo_t foo () {return 0; } 21006#endif 21007 21008_ACEOF 21009rm -f conftest.$ac_objext 21010if { (ac_try="$ac_compile" 21011case "(($ac_try" in 21012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21013 *) ac_try_echo=$ac_try;; 21014esac 21015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21016 (eval "$ac_compile") 2>conftest.er1 21017 ac_status=$? 21018 grep -v '^ *+' conftest.er1 >conftest.err 21019 rm -f conftest.er1 21020 cat conftest.err >&5 21021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21022 (exit $ac_status); } && { 21023 test -z "$ac_c_werror_flag" || 21024 test ! -s conftest.err 21025 } && test -s conftest.$ac_objext; then 21026 ac_cv_c_inline=$ac_kw 21027else 21028 echo "$as_me: failed program was:" >&5 21029sed 's/^/| /' conftest.$ac_ext >&5 21030 21031 21032fi 21033 21034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21035 test "$ac_cv_c_inline" != no && break 21036done 21037 21038fi 21039{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 21040echo "${ECHO_T}$ac_cv_c_inline" >&6; } 21041 21042 21043case $ac_cv_c_inline in 21044 inline | yes) ;; 21045 *) 21046 case $ac_cv_c_inline in 21047 no) ac_val=;; 21048 *) ac_val=$ac_cv_c_inline;; 21049 esac 21050 cat >>confdefs.h <<_ACEOF 21051#ifndef __cplusplus 21052#define inline $ac_val 21053#endif 21054_ACEOF 21055 ;; 21056esac 21057 21058{ echo "$as_me:$LINENO: checking for size_t" >&5 21059echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } 21060if test "${ac_cv_type_size_t+set}" = set; then 21061 echo $ECHO_N "(cached) $ECHO_C" >&6 21062else 21063 cat >conftest.$ac_ext <<_ACEOF 21064/* confdefs.h. */ 21065_ACEOF 21066cat confdefs.h >>conftest.$ac_ext 21067cat >>conftest.$ac_ext <<_ACEOF 21068/* end confdefs.h. */ 21069$ac_includes_default 21070typedef size_t ac__type_new_; 21071int 21072main () 21073{ 21074if ((ac__type_new_ *) 0) 21075 return 0; 21076if (sizeof (ac__type_new_)) 21077 return 0; 21078 ; 21079 return 0; 21080} 21081_ACEOF 21082rm -f conftest.$ac_objext 21083if { (ac_try="$ac_compile" 21084case "(($ac_try" in 21085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21086 *) ac_try_echo=$ac_try;; 21087esac 21088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21089 (eval "$ac_compile") 2>conftest.er1 21090 ac_status=$? 21091 grep -v '^ *+' conftest.er1 >conftest.err 21092 rm -f conftest.er1 21093 cat conftest.err >&5 21094 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21095 (exit $ac_status); } && { 21096 test -z "$ac_c_werror_flag" || 21097 test ! -s conftest.err 21098 } && test -s conftest.$ac_objext; then 21099 ac_cv_type_size_t=yes 21100else 21101 echo "$as_me: failed program was:" >&5 21102sed 's/^/| /' conftest.$ac_ext >&5 21103 21104 ac_cv_type_size_t=no 21105fi 21106 21107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21108fi 21109{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 21110echo "${ECHO_T}$ac_cv_type_size_t" >&6; } 21111if test $ac_cv_type_size_t = yes; then 21112 : 21113else 21114 21115cat >>confdefs.h <<_ACEOF 21116#define size_t unsigned int 21117_ACEOF 21118 21119fi 21120 21121{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 21122echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } 21123if test "${ac_cv_header_time+set}" = set; then 21124 echo $ECHO_N "(cached) $ECHO_C" >&6 21125else 21126 cat >conftest.$ac_ext <<_ACEOF 21127/* confdefs.h. */ 21128_ACEOF 21129cat confdefs.h >>conftest.$ac_ext 21130cat >>conftest.$ac_ext <<_ACEOF 21131/* end confdefs.h. */ 21132#include <sys/types.h> 21133#include <sys/time.h> 21134#include <time.h> 21135 21136int 21137main () 21138{ 21139if ((struct tm *) 0) 21140return 0; 21141 ; 21142 return 0; 21143} 21144_ACEOF 21145rm -f conftest.$ac_objext 21146if { (ac_try="$ac_compile" 21147case "(($ac_try" in 21148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21149 *) ac_try_echo=$ac_try;; 21150esac 21151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21152 (eval "$ac_compile") 2>conftest.er1 21153 ac_status=$? 21154 grep -v '^ *+' conftest.er1 >conftest.err 21155 rm -f conftest.er1 21156 cat conftest.err >&5 21157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21158 (exit $ac_status); } && { 21159 test -z "$ac_c_werror_flag" || 21160 test ! -s conftest.err 21161 } && test -s conftest.$ac_objext; then 21162 ac_cv_header_time=yes 21163else 21164 echo "$as_me: failed program was:" >&5 21165sed 's/^/| /' conftest.$ac_ext >&5 21166 21167 ac_cv_header_time=no 21168fi 21169 21170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21171fi 21172{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 21173echo "${ECHO_T}$ac_cv_header_time" >&6; } 21174if test $ac_cv_header_time = yes; then 21175 21176cat >>confdefs.h <<\_ACEOF 21177#define TIME_WITH_SYS_TIME 1 21178_ACEOF 21179 21180fi 21181 21182{ echo "$as_me:$LINENO: checking for siginfo_t" >&5 21183echo $ECHO_N "checking for siginfo_t... $ECHO_C" >&6; } 21184if test "${ac_cv_type_siginfo_t+set}" = set; then 21185 echo $ECHO_N "(cached) $ECHO_C" >&6 21186else 21187 cat >conftest.$ac_ext <<_ACEOF 21188/* confdefs.h. */ 21189_ACEOF 21190cat confdefs.h >>conftest.$ac_ext 21191cat >>conftest.$ac_ext <<_ACEOF 21192/* end confdefs.h. */ 21193 21194#include <signal.h> 21195 21196 21197typedef siginfo_t ac__type_new_; 21198int 21199main () 21200{ 21201if ((ac__type_new_ *) 0) 21202 return 0; 21203if (sizeof (ac__type_new_)) 21204 return 0; 21205 ; 21206 return 0; 21207} 21208_ACEOF 21209rm -f conftest.$ac_objext 21210if { (ac_try="$ac_compile" 21211case "(($ac_try" in 21212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21213 *) ac_try_echo=$ac_try;; 21214esac 21215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21216 (eval "$ac_compile") 2>conftest.er1 21217 ac_status=$? 21218 grep -v '^ *+' conftest.er1 >conftest.err 21219 rm -f conftest.er1 21220 cat conftest.err >&5 21221 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21222 (exit $ac_status); } && { 21223 test -z "$ac_c_werror_flag" || 21224 test ! -s conftest.err 21225 } && test -s conftest.$ac_objext; then 21226 ac_cv_type_siginfo_t=yes 21227else 21228 echo "$as_me: failed program was:" >&5 21229sed 's/^/| /' conftest.$ac_ext >&5 21230 21231 ac_cv_type_siginfo_t=no 21232fi 21233 21234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21235fi 21236{ echo "$as_me:$LINENO: result: $ac_cv_type_siginfo_t" >&5 21237echo "${ECHO_T}$ac_cv_type_siginfo_t" >&6; } 21238if test $ac_cv_type_siginfo_t = yes; then 21239 has_siginfo=yes; 21240cat >>confdefs.h <<\_ACEOF 21241#define _SABLEVM_HAS_SIGINFO 1 21242_ACEOF 21243 21244else 21245 has_siginfo=no 21246fi 21247 21248 21249if test "$has_siginfo" = no; then 21250 enable_signals_for_exceptions=no 21251 { echo "$as_me:$LINENO: WARNING: siginfo is not available; use of signals has been disabled" >&5 21252echo "$as_me: WARNING: siginfo is not available; use of signals has been disabled" >&2;} 21253fi 21254 21255case "$enable_signals_for_exceptions" in 21256 no) ;; 21257 yes) 21258cat >>confdefs.h <<\_ACEOF 21259#define _SABLEVM_SIGNALS_FOR_EXCEPTIONS 1 21260_ACEOF 21261 ;; 21262 *) { { echo "$as_me:$LINENO: error: bad value \"${enable_signals_for_exceptions}\" for --enable-signals-for-exceptions" >&5 21263echo "$as_me: error: bad value \"${enable_signals_for_exceptions}\" for --enable-signals-for-exceptions" >&2;} 21264 { (exit 1); exit 1; }; } ;; 21265esac 21266 21267if test x$cross_compiling = xno ; then 21268 21269for ac_header in stdlib.h 21270do 21271as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 21272if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21273 { echo "$as_me:$LINENO: checking for $ac_header" >&5 21274echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 21275if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21276 echo $ECHO_N "(cached) $ECHO_C" >&6 21277fi 21278ac_res=`eval echo '${'$as_ac_Header'}'` 21279 { echo "$as_me:$LINENO: result: $ac_res" >&5 21280echo "${ECHO_T}$ac_res" >&6; } 21281else 21282 # Is the header compilable? 21283{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 21284echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 21285cat >conftest.$ac_ext <<_ACEOF 21286/* confdefs.h. */ 21287_ACEOF 21288cat confdefs.h >>conftest.$ac_ext 21289cat >>conftest.$ac_ext <<_ACEOF 21290/* end confdefs.h. */ 21291$ac_includes_default 21292#include <$ac_header> 21293_ACEOF 21294rm -f conftest.$ac_objext 21295if { (ac_try="$ac_compile" 21296case "(($ac_try" in 21297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21298 *) ac_try_echo=$ac_try;; 21299esac 21300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21301 (eval "$ac_compile") 2>conftest.er1 21302 ac_status=$? 21303 grep -v '^ *+' conftest.er1 >conftest.err 21304 rm -f conftest.er1 21305 cat conftest.err >&5 21306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21307 (exit $ac_status); } && { 21308 test -z "$ac_c_werror_flag" || 21309 test ! -s conftest.err 21310 } && test -s conftest.$ac_objext; then 21311 ac_header_compiler=yes 21312else 21313 echo "$as_me: failed program was:" >&5 21314sed 's/^/| /' conftest.$ac_ext >&5 21315 21316 ac_header_compiler=no 21317fi 21318 21319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21320{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21321echo "${ECHO_T}$ac_header_compiler" >&6; } 21322 21323# Is the header present? 21324{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 21325echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 21326cat >conftest.$ac_ext <<_ACEOF 21327/* confdefs.h. */ 21328_ACEOF 21329cat confdefs.h >>conftest.$ac_ext 21330cat >>conftest.$ac_ext <<_ACEOF 21331/* end confdefs.h. */ 21332#include <$ac_header> 21333_ACEOF 21334if { (ac_try="$ac_cpp conftest.$ac_ext" 21335case "(($ac_try" in 21336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21337 *) ac_try_echo=$ac_try;; 21338esac 21339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21340 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 21341 ac_status=$? 21342 grep -v '^ *+' conftest.er1 >conftest.err 21343 rm -f conftest.er1 21344 cat conftest.err >&5 21345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21346 (exit $ac_status); } >/dev/null && { 21347 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 21348 test ! -s conftest.err 21349 }; then 21350 ac_header_preproc=yes 21351else 21352 echo "$as_me: failed program was:" >&5 21353sed 's/^/| /' conftest.$ac_ext >&5 21354 21355 ac_header_preproc=no 21356fi 21357 21358rm -f conftest.err conftest.$ac_ext 21359{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21360echo "${ECHO_T}$ac_header_preproc" >&6; } 21361 21362# So? What about this header? 21363case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21364 yes:no: ) 21365 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 21366echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 21367 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 21368echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 21369 ac_header_preproc=yes 21370 ;; 21371 no:yes:* ) 21372 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 21373echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 21374 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 21375echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 21376 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 21377echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 21378 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 21379echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 21380 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 21381echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 21382 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 21383echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 21384 ( cat <<\_ASBOX 21385## ---------------------------------- ## 21386## Report this to http://sablevm.org/ ## 21387## ---------------------------------- ## 21388_ASBOX 21389 ) | sed "s/^/$as_me: WARNING: /" >&2 21390 ;; 21391esac 21392{ echo "$as_me:$LINENO: checking for $ac_header" >&5 21393echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 21394if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21395 echo $ECHO_N "(cached) $ECHO_C" >&6 21396else 21397 eval "$as_ac_Header=\$ac_header_preproc" 21398fi 21399ac_res=`eval echo '${'$as_ac_Header'}'` 21400 { echo "$as_me:$LINENO: result: $ac_res" >&5 21401echo "${ECHO_T}$ac_res" >&6; } 21402 21403fi 21404if test `eval echo '${'$as_ac_Header'}'` = yes; then 21405 cat >>confdefs.h <<_ACEOF 21406#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 21407_ACEOF 21408 21409fi 21410 21411done 21412 21413{ echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 21414echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; } 21415if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then 21416 echo $ECHO_N "(cached) $ECHO_C" >&6 21417else 21418 if test "$cross_compiling" = yes; then 21419 ac_cv_func_malloc_0_nonnull=no 21420else 21421 cat >conftest.$ac_ext <<_ACEOF 21422/* confdefs.h. */ 21423_ACEOF 21424cat confdefs.h >>conftest.$ac_ext 21425cat >>conftest.$ac_ext <<_ACEOF 21426/* end confdefs.h. */ 21427#if defined STDC_HEADERS || defined HAVE_STDLIB_H 21428# include <stdlib.h> 21429#else 21430char *malloc (); 21431#endif 21432 21433int 21434main () 21435{ 21436return ! malloc (0); 21437 ; 21438 return 0; 21439} 21440_ACEOF 21441rm -f conftest$ac_exeext 21442if { (ac_try="$ac_link" 21443case "(($ac_try" in 21444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21445 *) ac_try_echo=$ac_try;; 21446esac 21447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21448 (eval "$ac_link") 2>&5 21449 ac_status=$? 21450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21451 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21452 { (case "(($ac_try" in 21453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21454 *) ac_try_echo=$ac_try;; 21455esac 21456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21457 (eval "$ac_try") 2>&5 21458 ac_status=$? 21459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21460 (exit $ac_status); }; }; then 21461 ac_cv_func_malloc_0_nonnull=yes 21462else 21463 echo "$as_me: program exited with status $ac_status" >&5 21464echo "$as_me: failed program was:" >&5 21465sed 's/^/| /' conftest.$ac_ext >&5 21466 21467( exit $ac_status ) 21468ac_cv_func_malloc_0_nonnull=no 21469fi 21470rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21471fi 21472 21473 21474fi 21475{ echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 21476echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; } 21477if test $ac_cv_func_malloc_0_nonnull = yes; then 21478 21479cat >>confdefs.h <<\_ACEOF 21480#define HAVE_MALLOC 1 21481_ACEOF 21482 21483else 21484 cat >>confdefs.h <<\_ACEOF 21485#define HAVE_MALLOC 0 21486_ACEOF 21487 21488 case " $LIBOBJS " in 21489 *" malloc.$ac_objext "* ) ;; 21490 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 21491 ;; 21492esac 21493 21494 21495cat >>confdefs.h <<\_ACEOF 21496#define malloc rpl_malloc 21497_ACEOF 21498 21499fi 21500 21501 21502 21503fi 21504 21505 21506for ac_header in stdlib.h unistd.h 21507do 21508as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 21509if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21510 { echo "$as_me:$LINENO: checking for $ac_header" >&5 21511echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 21512if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21513 echo $ECHO_N "(cached) $ECHO_C" >&6 21514fi 21515ac_res=`eval echo '${'$as_ac_Header'}'` 21516 { echo "$as_me:$LINENO: result: $ac_res" >&5 21517echo "${ECHO_T}$ac_res" >&6; } 21518else 21519 # Is the header compilable? 21520{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 21521echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 21522cat >conftest.$ac_ext <<_ACEOF 21523/* confdefs.h. */ 21524_ACEOF 21525cat confdefs.h >>conftest.$ac_ext 21526cat >>conftest.$ac_ext <<_ACEOF 21527/* end confdefs.h. */ 21528$ac_includes_default 21529#include <$ac_header> 21530_ACEOF 21531rm -f conftest.$ac_objext 21532if { (ac_try="$ac_compile" 21533case "(($ac_try" in 21534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21535 *) ac_try_echo=$ac_try;; 21536esac 21537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21538 (eval "$ac_compile") 2>conftest.er1 21539 ac_status=$? 21540 grep -v '^ *+' conftest.er1 >conftest.err 21541 rm -f conftest.er1 21542 cat conftest.err >&5 21543 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21544 (exit $ac_status); } && { 21545 test -z "$ac_c_werror_flag" || 21546 test ! -s conftest.err 21547 } && test -s conftest.$ac_objext; then 21548 ac_header_compiler=yes 21549else 21550 echo "$as_me: failed program was:" >&5 21551sed 's/^/| /' conftest.$ac_ext >&5 21552 21553 ac_header_compiler=no 21554fi 21555 21556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21557{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21558echo "${ECHO_T}$ac_header_compiler" >&6; } 21559 21560# Is the header present? 21561{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 21562echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 21563cat >conftest.$ac_ext <<_ACEOF 21564/* confdefs.h. */ 21565_ACEOF 21566cat confdefs.h >>conftest.$ac_ext 21567cat >>conftest.$ac_ext <<_ACEOF 21568/* end confdefs.h. */ 21569#include <$ac_header> 21570_ACEOF 21571if { (ac_try="$ac_cpp conftest.$ac_ext" 21572case "(($ac_try" in 21573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21574 *) ac_try_echo=$ac_try;; 21575esac 21576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 21578 ac_status=$? 21579 grep -v '^ *+' conftest.er1 >conftest.err 21580 rm -f conftest.er1 21581 cat conftest.err >&5 21582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21583 (exit $ac_status); } >/dev/null && { 21584 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 21585 test ! -s conftest.err 21586 }; then 21587 ac_header_preproc=yes 21588else 21589 echo "$as_me: failed program was:" >&5 21590sed 's/^/| /' conftest.$ac_ext >&5 21591 21592 ac_header_preproc=no 21593fi 21594 21595rm -f conftest.err conftest.$ac_ext 21596{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21597echo "${ECHO_T}$ac_header_preproc" >&6; } 21598 21599# So? What about this header? 21600case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21601 yes:no: ) 21602 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 21603echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 21604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 21605echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 21606 ac_header_preproc=yes 21607 ;; 21608 no:yes:* ) 21609 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 21610echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 21611 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 21612echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 21613 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 21614echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 21615 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 21616echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 21617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 21618echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 21619 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 21620echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 21621 ( cat <<\_ASBOX 21622## ---------------------------------- ## 21623## Report this to http://sablevm.org/ ## 21624## ---------------------------------- ## 21625_ASBOX 21626 ) | sed "s/^/$as_me: WARNING: /" >&2 21627 ;; 21628esac 21629{ echo "$as_me:$LINENO: checking for $ac_header" >&5 21630echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 21631if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21632 echo $ECHO_N "(cached) $ECHO_C" >&6 21633else 21634 eval "$as_ac_Header=\$ac_header_preproc" 21635fi 21636ac_res=`eval echo '${'$as_ac_Header'}'` 21637 { echo "$as_me:$LINENO: result: $ac_res" >&5 21638echo "${ECHO_T}$ac_res" >&6; } 21639 21640fi 21641if test `eval echo '${'$as_ac_Header'}'` = yes; then 21642 cat >>confdefs.h <<_ACEOF 21643#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 21644_ACEOF 21645 21646fi 21647 21648done 21649 21650 21651for ac_func in getpagesize 21652do 21653as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 21654{ echo "$as_me:$LINENO: checking for $ac_func" >&5 21655echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 21656if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 21657 echo $ECHO_N "(cached) $ECHO_C" >&6 21658else 21659 cat >conftest.$ac_ext <<_ACEOF 21660/* confdefs.h. */ 21661_ACEOF 21662cat confdefs.h >>conftest.$ac_ext 21663cat >>conftest.$ac_ext <<_ACEOF 21664/* end confdefs.h. */ 21665/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 21666 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 21667#define $ac_func innocuous_$ac_func 21668 21669/* System header to define __stub macros and hopefully few prototypes, 21670 which can conflict with char $ac_func (); below. 21671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21672 <limits.h> exists even on freestanding compilers. */ 21673 21674#ifdef __STDC__ 21675# include <limits.h> 21676#else 21677# include <assert.h> 21678#endif 21679 21680#undef $ac_func 21681 21682/* Override any GCC internal prototype to avoid an error. 21683 Use char because int might match the return type of a GCC 21684 builtin and then its argument prototype would still apply. */ 21685#ifdef __cplusplus 21686extern "C" 21687#endif 21688char $ac_func (); 21689/* The GNU C library defines this for functions which it implements 21690 to always fail with ENOSYS. Some functions are actually named 21691 something starting with __ and the normal name is an alias. */ 21692#if defined __stub_$ac_func || defined __stub___$ac_func 21693choke me 21694#endif 21695 21696int 21697main () 21698{ 21699return $ac_func (); 21700 ; 21701 return 0; 21702} 21703_ACEOF 21704rm -f conftest.$ac_objext conftest$ac_exeext 21705if { (ac_try="$ac_link" 21706case "(($ac_try" in 21707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21708 *) ac_try_echo=$ac_try;; 21709esac 21710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21711 (eval "$ac_link") 2>conftest.er1 21712 ac_status=$? 21713 grep -v '^ *+' conftest.er1 >conftest.err 21714 rm -f conftest.er1 21715 cat conftest.err >&5 21716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21717 (exit $ac_status); } && { 21718 test -z "$ac_c_werror_flag" || 21719 test ! -s conftest.err 21720 } && test -s conftest$ac_exeext && 21721 $as_test_x conftest$ac_exeext; then 21722 eval "$as_ac_var=yes" 21723else 21724 echo "$as_me: failed program was:" >&5 21725sed 's/^/| /' conftest.$ac_ext >&5 21726 21727 eval "$as_ac_var=no" 21728fi 21729 21730rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21731 conftest$ac_exeext conftest.$ac_ext 21732fi 21733ac_res=`eval echo '${'$as_ac_var'}'` 21734 { echo "$as_me:$LINENO: result: $ac_res" >&5 21735echo "${ECHO_T}$ac_res" >&6; } 21736if test `eval echo '${'$as_ac_var'}'` = yes; then 21737 cat >>confdefs.h <<_ACEOF 21738#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 21739_ACEOF 21740 21741fi 21742done 21743 21744{ echo "$as_me:$LINENO: checking for working mmap" >&5 21745echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } 21746if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then 21747 echo $ECHO_N "(cached) $ECHO_C" >&6 21748else 21749 if test "$cross_compiling" = yes; then 21750 ac_cv_func_mmap_fixed_mapped=no 21751else 21752 cat >conftest.$ac_ext <<_ACEOF 21753/* confdefs.h. */ 21754_ACEOF 21755cat confdefs.h >>conftest.$ac_ext 21756cat >>conftest.$ac_ext <<_ACEOF 21757/* end confdefs.h. */ 21758$ac_includes_default 21759/* malloc might have been renamed as rpl_malloc. */ 21760#undef malloc 21761 21762/* Thanks to Mike Haertel and Jim Avera for this test. 21763 Here is a matrix of mmap possibilities: 21764 mmap private not fixed 21765 mmap private fixed at somewhere currently unmapped 21766 mmap private fixed at somewhere already mapped 21767 mmap shared not fixed 21768 mmap shared fixed at somewhere currently unmapped 21769 mmap shared fixed at somewhere already mapped 21770 For private mappings, we should verify that changes cannot be read() 21771 back from the file, nor mmap's back from the file at a different 21772 address. (There have been systems where private was not correctly 21773 implemented like the infamous i386 svr4.0, and systems where the 21774 VM page cache was not coherent with the file system buffer cache 21775 like early versions of FreeBSD and possibly contemporary NetBSD.) 21776 For shared mappings, we should conversely verify that changes get 21777 propagated back to all the places they're supposed to be. 21778 21779 Grep wants private fixed already mapped. 21780 The main things grep needs to know about mmap are: 21781 * does it exist and is it safe to write into the mmap'd area 21782 * how to use it (BSD variants) */ 21783 21784#include <fcntl.h> 21785#include <sys/mman.h> 21786 21787#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 21788char *malloc (); 21789#endif 21790 21791/* This mess was copied from the GNU getpagesize.h. */ 21792#ifndef HAVE_GETPAGESIZE 21793/* Assume that all systems that can run configure have sys/param.h. */ 21794# ifndef HAVE_SYS_PARAM_H 21795# define HAVE_SYS_PARAM_H 1 21796# endif 21797 21798# ifdef _SC_PAGESIZE 21799# define getpagesize() sysconf(_SC_PAGESIZE) 21800# else /* no _SC_PAGESIZE */ 21801# ifdef HAVE_SYS_PARAM_H 21802# include <sys/param.h> 21803# ifdef EXEC_PAGESIZE 21804# define getpagesize() EXEC_PAGESIZE 21805# else /* no EXEC_PAGESIZE */ 21806# ifdef NBPG 21807# define getpagesize() NBPG * CLSIZE 21808# ifndef CLSIZE 21809# define CLSIZE 1 21810# endif /* no CLSIZE */ 21811# else /* no NBPG */ 21812# ifdef NBPC 21813# define getpagesize() NBPC 21814# else /* no NBPC */ 21815# ifdef PAGESIZE 21816# define getpagesize() PAGESIZE 21817# endif /* PAGESIZE */ 21818# endif /* no NBPC */ 21819# endif /* no NBPG */ 21820# endif /* no EXEC_PAGESIZE */ 21821# else /* no HAVE_SYS_PARAM_H */ 21822# define getpagesize() 8192 /* punt totally */ 21823# endif /* no HAVE_SYS_PARAM_H */ 21824# endif /* no _SC_PAGESIZE */ 21825 21826#endif /* no HAVE_GETPAGESIZE */ 21827 21828int 21829main () 21830{ 21831 char *data, *data2, *data3; 21832 int i, pagesize; 21833 int fd; 21834 21835 pagesize = getpagesize (); 21836 21837 /* First, make a file with some known garbage in it. */ 21838 data = (char *) malloc (pagesize); 21839 if (!data) 21840 return 1; 21841 for (i = 0; i < pagesize; ++i) 21842 *(data + i) = rand (); 21843 umask (0); 21844 fd = creat ("conftest.mmap", 0600); 21845 if (fd < 0) 21846 return 1; 21847 if (write (fd, data, pagesize) != pagesize) 21848 return 1; 21849 close (fd); 21850 21851 /* Next, try to mmap the file at a fixed address which already has 21852 something else allocated at it. If we can, also make sure that 21853 we see the same garbage. */ 21854 fd = open ("conftest.mmap", O_RDWR); 21855 if (fd < 0) 21856 return 1; 21857 data2 = (char *) malloc (2 * pagesize); 21858 if (!data2) 21859 return 1; 21860 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); 21861 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 21862 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 21863 return 1; 21864 for (i = 0; i < pagesize; ++i) 21865 if (*(data + i) != *(data2 + i)) 21866 return 1; 21867 21868 /* Finally, make sure that changes to the mapped area do not 21869 percolate back to the file as seen by read(). (This is a bug on 21870 some variants of i386 svr4.0.) */ 21871 for (i = 0; i < pagesize; ++i) 21872 *(data2 + i) = *(data2 + i) + 1; 21873 data3 = (char *) malloc (pagesize); 21874 if (!data3) 21875 return 1; 21876 if (read (fd, data3, pagesize) != pagesize) 21877 return 1; 21878 for (i = 0; i < pagesize; ++i) 21879 if (*(data + i) != *(data3 + i)) 21880 return 1; 21881 close (fd); 21882 return 0; 21883} 21884_ACEOF 21885rm -f conftest$ac_exeext 21886if { (ac_try="$ac_link" 21887case "(($ac_try" in 21888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21889 *) ac_try_echo=$ac_try;; 21890esac 21891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21892 (eval "$ac_link") 2>&5 21893 ac_status=$? 21894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21895 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21896 { (case "(($ac_try" in 21897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21898 *) ac_try_echo=$ac_try;; 21899esac 21900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21901 (eval "$ac_try") 2>&5 21902 ac_status=$? 21903 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21904 (exit $ac_status); }; }; then 21905 ac_cv_func_mmap_fixed_mapped=yes 21906else 21907 echo "$as_me: program exited with status $ac_status" >&5 21908echo "$as_me: failed program was:" >&5 21909sed 's/^/| /' conftest.$ac_ext >&5 21910 21911( exit $ac_status ) 21912ac_cv_func_mmap_fixed_mapped=no 21913fi 21914rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21915fi 21916 21917 21918fi 21919{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 21920echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } 21921if test $ac_cv_func_mmap_fixed_mapped = yes; then 21922 21923cat >>confdefs.h <<\_ACEOF 21924#define HAVE_MMAP 1 21925_ACEOF 21926 21927fi 21928rm -f conftest.mmap 21929 21930 21931 21932 21933 21934 21935 21936for ac_func in getcwd gettimeofday memmove memset munmap strchr 21937do 21938as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 21939{ echo "$as_me:$LINENO: checking for $ac_func" >&5 21940echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 21941if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 21942 echo $ECHO_N "(cached) $ECHO_C" >&6 21943else 21944 cat >conftest.$ac_ext <<_ACEOF 21945/* confdefs.h. */ 21946_ACEOF 21947cat confdefs.h >>conftest.$ac_ext 21948cat >>conftest.$ac_ext <<_ACEOF 21949/* end confdefs.h. */ 21950/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 21951 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 21952#define $ac_func innocuous_$ac_func 21953 21954/* System header to define __stub macros and hopefully few prototypes, 21955 which can conflict with char $ac_func (); below. 21956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21957 <limits.h> exists even on freestanding compilers. */ 21958 21959#ifdef __STDC__ 21960# include <limits.h> 21961#else 21962# include <assert.h> 21963#endif 21964 21965#undef $ac_func 21966 21967/* Override any GCC internal prototype to avoid an error. 21968 Use char because int might match the return type of a GCC 21969 builtin and then its argument prototype would still apply. */ 21970#ifdef __cplusplus 21971extern "C" 21972#endif 21973char $ac_func (); 21974/* The GNU C library defines this for functions which it implements 21975 to always fail with ENOSYS. Some functions are actually named 21976 something starting with __ and the normal name is an alias. */ 21977#if defined __stub_$ac_func || defined __stub___$ac_func 21978choke me 21979#endif 21980 21981int 21982main () 21983{ 21984return $ac_func (); 21985 ; 21986 return 0; 21987} 21988_ACEOF 21989rm -f conftest.$ac_objext conftest$ac_exeext 21990if { (ac_try="$ac_link" 21991case "(($ac_try" in 21992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21993 *) ac_try_echo=$ac_try;; 21994esac 21995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21996 (eval "$ac_link") 2>conftest.er1 21997 ac_status=$? 21998 grep -v '^ *+' conftest.er1 >conftest.err 21999 rm -f conftest.er1 22000 cat conftest.err >&5 22001 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22002 (exit $ac_status); } && { 22003 test -z "$ac_c_werror_flag" || 22004 test ! -s conftest.err 22005 } && test -s conftest$ac_exeext && 22006 $as_test_x conftest$ac_exeext; then 22007 eval "$as_ac_var=yes" 22008else 22009 echo "$as_me: failed program was:" >&5 22010sed 's/^/| /' conftest.$ac_ext >&5 22011 22012 eval "$as_ac_var=no" 22013fi 22014 22015rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22016 conftest$ac_exeext conftest.$ac_ext 22017fi 22018ac_res=`eval echo '${'$as_ac_var'}'` 22019 { echo "$as_me:$LINENO: result: $ac_res" >&5 22020echo "${ECHO_T}$ac_res" >&6; } 22021if test `eval echo '${'$as_ac_var'}'` = yes; then 22022 cat >>confdefs.h <<_ACEOF 22023#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 22024_ACEOF 22025 echo -n 22026else 22027 echo ***ERROR: missing library function; exit 1 22028fi 22029done 22030 22031 22032if test "$GCC" = "yes"; then 22033 CFLAGS="$CFLAGS -Wall -fno-gcse -fno-strict-aliasing" 22034 22035 if test "$enable_no_reorder_blocks" = "yes"; then 22036 CFLAGS="$CFLAGS -fno-reorder-blocks -finline-limit=60000" 22037 fi 22038 22039 22040 22041 if test "$with_threading" = "switch"; then 22042 CFLAGS="$CFLAGS -std=iso9899:1990 -pedantic" 22043 fi 22044 22045 if test "$enable_debugging_features" = "yes"; then 22046 if test "$enable_errors_on_warnings" = "yes"; then 22047 CFLAGS="$CFLAGS -Werror" 22048 fi 22049 CFLAGS="$CFLAGS -O0 -W \ 22050 -fno-builtin -Wshadow \ 22051 -Wpointer-arith -Wbad-function-cast \ 22052 -Wundef -Wcast-align -Wwrite-strings \ 22053 -Wsign-compare -Wstrict-prototypes \ 22054 -Wmissing-prototypes \ 22055 -Wmissing-declarations \ 22056 -Wnested-externs -Wlong-long" 22057 22058 elif test "$enable_errors_on_warnings" = "yes"; then 22059 enforce_errors_on_warnings=no 22060 case $PACKAGE_VERSION in 22061 *+*) 22062 case $host in 22063 i*86*-*-gnu) enforce_errors_on_warnings=yes ;; 22064 powerpc-*-gnu) enforce_errors_on_warnings=yes ;; 22065 esac 22066 ;; 22067 esac 22068 if test "$enforce_errors_on_warnings" = "yes"; then 22069 CFLAGS="$CFLAGS -Werror" 22070 fi 22071 fi 22072 22073 if test "$with_threading" = "inlined"; then 22074 CFLAGS="$CFLAGS -O2" 22075 fi 22076 22077 case $host in 22078 powerpc-apple-darwin*) CFLAGS="$CFLAGS -no-cpp-precomp" 22079 CPPFLAGS="$CPPFLAGS -D__powerpc__" 22080 ;; 22081 esac 22082 22083 case $host in 22084 *-freebsd*) CFLAGS="$CFLAGS -pthread -D__BSD_VISIBLE" 22085 ;; 22086 esac 22087fi 22088 22089{ echo "$as_me:$LINENO: checking for __func__ availability" >&5 22090echo $ECHO_N "checking for __func__ availability... $ECHO_C" >&6; } 22091cat >conftest.$ac_ext <<_ACEOF 22092/* confdefs.h. */ 22093_ACEOF 22094cat confdefs.h >>conftest.$ac_ext 22095cat >>conftest.$ac_ext <<_ACEOF 22096/* end confdefs.h. */ 22097 22098 #include <stdio.h> 22099 void func() { printf("%s", __func__); } 22100int 22101main () 22102{ 22103 22104 ; 22105 return 0; 22106} 22107_ACEOF 22108rm -f conftest.$ac_objext 22109if { (ac_try="$ac_compile" 22110case "(($ac_try" in 22111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22112 *) ac_try_echo=$ac_try;; 22113esac 22114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22115 (eval "$ac_compile") 2>conftest.er1 22116 ac_status=$? 22117 grep -v '^ *+' conftest.er1 >conftest.err 22118 rm -f conftest.er1 22119 cat conftest.err >&5 22120 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22121 (exit $ac_status); } && { 22122 test -z "$ac_c_werror_flag" || 22123 test ! -s conftest.err 22124 } && test -s conftest.$ac_objext; then 22125 { echo "$as_me:$LINENO: result: yes" >&5 22126echo "${ECHO_T}yes" >&6; } 22127 22128cat >>confdefs.h <<\_ACEOF 22129#define HAVE___func__ 1 22130_ACEOF 22131 22132else 22133 echo "$as_me: failed program was:" >&5 22134sed 's/^/| /' conftest.$ac_ext >&5 22135 22136 { echo "$as_me:$LINENO: result: no" >&5 22137echo "${ECHO_T}no" >&6; } 22138 22139fi 22140 22141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22142 22143 22144{ echo "$as_me:$LINENO: checking for __clear_cache availability" >&5 22145echo $ECHO_N "checking for __clear_cache availability... $ECHO_C" >&6; } 22146cat >conftest.$ac_ext <<_ACEOF 22147/* confdefs.h. */ 22148_ACEOF 22149cat confdefs.h >>conftest.$ac_ext 22150cat >>conftest.$ac_ext <<_ACEOF 22151/* end confdefs.h. */ 22152 22153#include <unistd.h> 22154extern void __clear_cache (char *beg, char *end); 22155void func(void) { 22156 char i = 0; 22157 __clear_cache(&i, (&i)+sizeof(i)); 22158} 22159int 22160main () 22161{ 22162 22163 ; 22164 return 0; 22165} 22166_ACEOF 22167rm -f conftest.$ac_objext conftest$ac_exeext 22168if { (ac_try="$ac_link" 22169case "(($ac_try" in 22170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22171 *) ac_try_echo=$ac_try;; 22172esac 22173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22174 (eval "$ac_link") 2>conftest.er1 22175 ac_status=$? 22176 grep -v '^ *+' conftest.er1 >conftest.err 22177 rm -f conftest.er1 22178 cat conftest.err >&5 22179 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22180 (exit $ac_status); } && { 22181 test -z "$ac_c_werror_flag" || 22182 test ! -s conftest.err 22183 } && test -s conftest$ac_exeext && 22184 $as_test_x conftest$ac_exeext; then 22185 { echo "$as_me:$LINENO: result: yes" >&5 22186echo "${ECHO_T}yes" >&6; } 22187 22188cat >>confdefs.h <<\_ACEOF 22189#define HAS_SYSTEM_CLEAR_CACHE 1 22190_ACEOF 22191 22192else 22193 echo "$as_me: failed program was:" >&5 22194sed 's/^/| /' conftest.$ac_ext >&5 22195 22196 { echo "$as_me:$LINENO: result: no" >&5 22197echo "${ECHO_T}no" >&6; } 22198 22199fi 22200 22201rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22202 conftest$ac_exeext conftest.$ac_ext 22203 22204 22205ac_config_files="$ac_config_files Makefile doc/Makefile doc/java-sablevm.1 doc/sablevm.1 src/Makefile src/include/Makefile src/libsablevm/Makefile src/libsablevm/include/Makefile src/libsablevm/inlinability/Makefile src/sablevm/Makefile" 22206 22207 22208cat >confcache <<\_ACEOF 22209# This file is a shell script that caches the results of configure 22210# tests run on this system so they can be shared between configure 22211# scripts and configure runs, see configure's option --config-cache. 22212# It is not useful on other systems. If it contains results you don't 22213# want to keep, you may remove or edit it. 22214# 22215# config.status only pays attention to the cache file if you give it 22216# the --recheck option to rerun configure. 22217# 22218# `ac_cv_env_foo' variables (set or unset) will be overridden when 22219# loading this file, other *unset* `ac_cv_foo' will be assigned the 22220# following values. 22221 22222_ACEOF 22223 22224# The following way of writing the cache mishandles newlines in values, 22225# but we know of no workaround that is simple, portable, and efficient. 22226# So, we kill variables containing newlines. 22227# Ultrix sh set writes to stderr and can't be redirected directly, 22228# and sets the high bit in the cache file unless we assign to the vars. 22229( 22230 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 22231 eval ac_val=\$$ac_var 22232 case $ac_val in #( 22233 *${as_nl}*) 22234 case $ac_var in #( 22235 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 22236echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 22237 esac 22238 case $ac_var in #( 22239 _ | IFS | as_nl) ;; #( 22240 *) $as_unset $ac_var ;; 22241 esac ;; 22242 esac 22243 done 22244 22245 (set) 2>&1 | 22246 case $as_nl`(ac_space=' '; set) 2>&1` in #( 22247 *${as_nl}ac_space=\ *) 22248 # `set' does not quote correctly, so add quotes (double-quote 22249 # substitution turns \\\\ into \\, and sed turns \\ into \). 22250 sed -n \ 22251 "s/'/'\\\\''/g; 22252 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 22253 ;; #( 22254 *) 22255 # `set' quotes correctly as required by POSIX, so do not add quotes. 22256 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 22257 ;; 22258 esac | 22259 sort 22260) | 22261 sed ' 22262 /^ac_cv_env_/b end 22263 t clear 22264 :clear 22265 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 22266 t end 22267 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 22268 :end' >>confcache 22269if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 22270 if test -w "$cache_file"; then 22271 test "x$cache_file" != "x/dev/null" && 22272 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 22273echo "$as_me: updating cache $cache_file" >&6;} 22274 cat confcache >$cache_file 22275 else 22276 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 22277echo "$as_me: not updating unwritable cache $cache_file" >&6;} 22278 fi 22279fi 22280rm -f confcache 22281 22282test "x$prefix" = xNONE && prefix=$ac_default_prefix 22283# Let make expand exec_prefix. 22284test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 22285 22286DEFS=-DHAVE_CONFIG_H 22287 22288ac_libobjs= 22289ac_ltlibobjs= 22290for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 22291 # 1. Remove the extension, and $U if already installed. 22292 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 22293 ac_i=`echo "$ac_i" | sed "$ac_script"` 22294 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 22295 # will be set to the directory where LIBOBJS objects are built. 22296 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 22297 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 22298done 22299LIBOBJS=$ac_libobjs 22300 22301LTLIBOBJS=$ac_ltlibobjs 22302 22303 22304if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 22305 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 22306Usually this means the macro was only invoked conditionally." >&5 22307echo "$as_me: error: conditional \"AMDEP\" was never defined. 22308Usually this means the macro was only invoked conditionally." >&2;} 22309 { (exit 1); exit 1; }; } 22310fi 22311if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 22312 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 22313Usually this means the macro was only invoked conditionally." >&5 22314echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 22315Usually this means the macro was only invoked conditionally." >&2;} 22316 { (exit 1); exit 1; }; } 22317fi 22318if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 22319 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 22320Usually this means the macro was only invoked conditionally." >&5 22321echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 22322Usually this means the macro was only invoked conditionally." >&2;} 22323 { (exit 1); exit 1; }; } 22324fi 22325if test -z "${CONV_LIBFFI_TRUE}" && test -z "${CONV_LIBFFI_FALSE}"; then 22326 { { echo "$as_me:$LINENO: error: conditional \"CONV_LIBFFI\" was never defined. 22327Usually this means the macro was only invoked conditionally." >&5 22328echo "$as_me: error: conditional \"CONV_LIBFFI\" was never defined. 22329Usually this means the macro was only invoked conditionally." >&2;} 22330 { (exit 1); exit 1; }; } 22331fi 22332if test -z "${CONV_LIBPOPT_TRUE}" && test -z "${CONV_LIBPOPT_FALSE}"; then 22333 { { echo "$as_me:$LINENO: error: conditional \"CONV_LIBPOPT\" was never defined. 22334Usually this means the macro was only invoked conditionally." >&5 22335echo "$as_me: error: conditional \"CONV_LIBPOPT\" was never defined. 22336Usually this means the macro was only invoked conditionally." >&2;} 22337 { (exit 1); exit 1; }; } 22338fi 22339 22340: ${CONFIG_STATUS=./config.status} 22341ac_clean_files_save=$ac_clean_files 22342ac_clean_files="$ac_clean_files $CONFIG_STATUS" 22343{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 22344echo "$as_me: creating $CONFIG_STATUS" >&6;} 22345cat >$CONFIG_STATUS <<_ACEOF 22346#! $SHELL 22347# Generated by $as_me. 22348# Run this file to recreate the current configuration. 22349# Compiler output produced by configure, useful for debugging 22350# configure, is in config.log if it exists. 22351 22352debug=false 22353ac_cs_recheck=false 22354ac_cs_silent=false 22355SHELL=\${CONFIG_SHELL-$SHELL} 22356_ACEOF 22357 22358cat >>$CONFIG_STATUS <<\_ACEOF 22359## --------------------- ## 22360## M4sh Initialization. ## 22361## --------------------- ## 22362 22363# Be more Bourne compatible 22364DUALCASE=1; export DUALCASE # for MKS sh 22365if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 22366 emulate sh 22367 NULLCMD=: 22368 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 22369 # is contrary to our usage. Disable this feature. 22370 alias -g '${1+"$@"}'='"$@"' 22371 setopt NO_GLOB_SUBST 22372else 22373 case `(set -o) 2>/dev/null` in 22374 *posix*) set -o posix ;; 22375esac 22376 22377fi 22378 22379 22380 22381 22382# PATH needs CR 22383# Avoid depending upon Character Ranges. 22384as_cr_letters='abcdefghijklmnopqrstuvwxyz' 22385as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 22386as_cr_Letters=$as_cr_letters$as_cr_LETTERS 22387as_cr_digits='0123456789' 22388as_cr_alnum=$as_cr_Letters$as_cr_digits 22389 22390# The user is always right. 22391if test "${PATH_SEPARATOR+set}" != set; then 22392 echo "#! /bin/sh" >conf$$.sh 22393 echo "exit 0" >>conf$$.sh 22394 chmod +x conf$$.sh 22395 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 22396 PATH_SEPARATOR=';' 22397 else 22398 PATH_SEPARATOR=: 22399 fi 22400 rm -f conf$$.sh 22401fi 22402 22403# Support unset when possible. 22404if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 22405 as_unset=unset 22406else 22407 as_unset=false 22408fi 22409 22410 22411# IFS 22412# We need space, tab and new line, in precisely that order. Quoting is 22413# there to prevent editors from complaining about space-tab. 22414# (If _AS_PATH_WALK were called with IFS unset, it would disable word 22415# splitting by setting IFS to empty value.) 22416as_nl=' 22417' 22418IFS=" "" $as_nl" 22419 22420# Find who we are. Look in the path if we contain no directory separator. 22421case $0 in 22422 *[\\/]* ) as_myself=$0 ;; 22423 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22424for as_dir in $PATH 22425do 22426 IFS=$as_save_IFS 22427 test -z "$as_dir" && as_dir=. 22428 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 22429done 22430IFS=$as_save_IFS 22431 22432 ;; 22433esac 22434# We did not find ourselves, most probably we were run as `sh COMMAND' 22435# in which case we are not to be found in the path. 22436if test "x$as_myself" = x; then 22437 as_myself=$0 22438fi 22439if test ! -f "$as_myself"; then 22440 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 22441 { (exit 1); exit 1; } 22442fi 22443 22444# Work around bugs in pre-3.0 UWIN ksh. 22445for as_var in ENV MAIL MAILPATH 22446do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 22447done 22448PS1='$ ' 22449PS2='> ' 22450PS4='+ ' 22451 22452# NLS nuisances. 22453for as_var in \ 22454 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 22455 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 22456 LC_TELEPHONE LC_TIME 22457do 22458 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 22459 eval $as_var=C; export $as_var 22460 else 22461 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 22462 fi 22463done 22464 22465# Required to use basename. 22466if expr a : '\(a\)' >/dev/null 2>&1 && 22467 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22468 as_expr=expr 22469else 22470 as_expr=false 22471fi 22472 22473if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 22474 as_basename=basename 22475else 22476 as_basename=false 22477fi 22478 22479 22480# Name of the executable. 22481as_me=`$as_basename -- "$0" || 22482$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 22483 X"$0" : 'X\(//\)$' \| \ 22484 X"$0" : 'X\(/\)' \| . 2>/dev/null || 22485echo X/"$0" | 22486 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22487 s//\1/ 22488 q 22489 } 22490 /^X\/\(\/\/\)$/{ 22491 s//\1/ 22492 q 22493 } 22494 /^X\/\(\/\).*/{ 22495 s//\1/ 22496 q 22497 } 22498 s/.*/./; q'` 22499 22500# CDPATH. 22501$as_unset CDPATH 22502 22503 22504 22505 as_lineno_1=$LINENO 22506 as_lineno_2=$LINENO 22507 test "x$as_lineno_1" != "x$as_lineno_2" && 22508 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 22509 22510 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 22511 # uniformly replaced by the line number. The first 'sed' inserts a 22512 # line-number line after each line using $LINENO; the second 'sed' 22513 # does the real work. The second script uses 'N' to pair each 22514 # line-number line with the line containing $LINENO, and appends 22515 # trailing '-' during substitution so that $LINENO is not a special 22516 # case at line end. 22517 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 22518 # scripts with optimization help from Paolo Bonzini. Blame Lee 22519 # E. McMahon (1931-1989) for sed's syntax. :-) 22520 sed -n ' 22521 p 22522 /[$]LINENO/= 22523 ' <$as_myself | 22524 sed ' 22525 s/[$]LINENO.*/&-/ 22526 t lineno 22527 b 22528 :lineno 22529 N 22530 :loop 22531 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 22532 t loop 22533 s/-\n.*// 22534 ' >$as_me.lineno && 22535 chmod +x "$as_me.lineno" || 22536 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 22537 { (exit 1); exit 1; }; } 22538 22539 # Don't try to exec as it changes $[0], causing all sort of problems 22540 # (the dirname of $[0] is not the place where we might find the 22541 # original and so on. Autoconf is especially sensitive to this). 22542 . "./$as_me.lineno" 22543 # Exit status is that of the last command. 22544 exit 22545} 22546 22547 22548if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 22549 as_dirname=dirname 22550else 22551 as_dirname=false 22552fi 22553 22554ECHO_C= ECHO_N= ECHO_T= 22555case `echo -n x` in 22556-n*) 22557 case `echo 'x\c'` in 22558 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 22559 *) ECHO_C='\c';; 22560 esac;; 22561*) 22562 ECHO_N='-n';; 22563esac 22564 22565if expr a : '\(a\)' >/dev/null 2>&1 && 22566 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22567 as_expr=expr 22568else 22569 as_expr=false 22570fi 22571 22572rm -f conf$$ conf$$.exe conf$$.file 22573if test -d conf$$.dir; then 22574 rm -f conf$$.dir/conf$$.file 22575else 22576 rm -f conf$$.dir 22577 mkdir conf$$.dir 22578fi 22579echo >conf$$.file 22580if ln -s conf$$.file conf$$ 2>/dev/null; then 22581 as_ln_s='ln -s' 22582 # ... but there are two gotchas: 22583 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 22584 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 22585 # In both cases, we have to default to `cp -p'. 22586 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 22587 as_ln_s='cp -p' 22588elif ln conf$$.file conf$$ 2>/dev/null; then 22589 as_ln_s=ln 22590else 22591 as_ln_s='cp -p' 22592fi 22593rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 22594rmdir conf$$.dir 2>/dev/null 22595 22596if mkdir -p . 2>/dev/null; then 22597 as_mkdir_p=: 22598else 22599 test -d ./-p && rmdir ./-p 22600 as_mkdir_p=false 22601fi 22602 22603if test -x / >/dev/null 2>&1; then 22604 as_test_x='test -x' 22605else 22606 if ls -dL / >/dev/null 2>&1; then 22607 as_ls_L_option=L 22608 else 22609 as_ls_L_option= 22610 fi 22611 as_test_x=' 22612 eval sh -c '\'' 22613 if test -d "$1"; then 22614 test -d "$1/."; 22615 else 22616 case $1 in 22617 -*)set "./$1";; 22618 esac; 22619 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 22620 ???[sx]*):;;*)false;;esac;fi 22621 '\'' sh 22622 ' 22623fi 22624as_executable_p=$as_test_x 22625 22626# Sed expression to map a string onto a valid CPP name. 22627as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 22628 22629# Sed expression to map a string onto a valid variable name. 22630as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 22631 22632 22633exec 6>&1 22634 22635# Save the log message, to keep $[0] and so on meaningful, and to 22636# report actual input values of CONFIG_FILES etc. instead of their 22637# values after options handling. 22638ac_log=" 22639This file was extended by sablevm $as_me 1.13, which was 22640generated by GNU Autoconf 2.61. Invocation command line was 22641 22642 CONFIG_FILES = $CONFIG_FILES 22643 CONFIG_HEADERS = $CONFIG_HEADERS 22644 CONFIG_LINKS = $CONFIG_LINKS 22645 CONFIG_COMMANDS = $CONFIG_COMMANDS 22646 $ $0 $@ 22647 22648on `(hostname || uname -n) 2>/dev/null | sed 1q` 22649" 22650 22651_ACEOF 22652 22653cat >>$CONFIG_STATUS <<_ACEOF 22654# Files that config.status was made for. 22655config_files="$ac_config_files" 22656config_headers="$ac_config_headers" 22657config_commands="$ac_config_commands" 22658 22659_ACEOF 22660 22661cat >>$CONFIG_STATUS <<\_ACEOF 22662ac_cs_usage="\ 22663\`$as_me' instantiates files from templates according to the 22664current configuration. 22665 22666Usage: $0 [OPTIONS] [FILE]... 22667 22668 -h, --help print this help, then exit 22669 -V, --version print version number and configuration settings, then exit 22670 -q, --quiet do not print progress messages 22671 -d, --debug don't remove temporary files 22672 --recheck update $as_me by reconfiguring in the same conditions 22673 --file=FILE[:TEMPLATE] 22674 instantiate the configuration file FILE 22675 --header=FILE[:TEMPLATE] 22676 instantiate the configuration header FILE 22677 22678Configuration files: 22679$config_files 22680 22681Configuration headers: 22682$config_headers 22683 22684Configuration commands: 22685$config_commands 22686 22687Report bugs to <bug-autoconf@gnu.org>." 22688 22689_ACEOF 22690cat >>$CONFIG_STATUS <<_ACEOF 22691ac_cs_version="\\ 22692sablevm config.status 1.13 22693configured by $0, generated by GNU Autoconf 2.61, 22694 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 22695 22696Copyright (C) 2006 Free Software Foundation, Inc. 22697This config.status script is free software; the Free Software Foundation 22698gives unlimited permission to copy, distribute and modify it." 22699 22700ac_pwd='$ac_pwd' 22701srcdir='$srcdir' 22702INSTALL='$INSTALL' 22703_ACEOF 22704 22705cat >>$CONFIG_STATUS <<\_ACEOF 22706# If no file are specified by the user, then we need to provide default 22707# value. By we need to know if files were specified by the user. 22708ac_need_defaults=: 22709while test $# != 0 22710do 22711 case $1 in 22712 --*=*) 22713 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22714 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 22715 ac_shift=: 22716 ;; 22717 *) 22718 ac_option=$1 22719 ac_optarg=$2 22720 ac_shift=shift 22721 ;; 22722 esac 22723 22724 case $ac_option in 22725 # Handling of the options. 22726 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 22727 ac_cs_recheck=: ;; 22728 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 22729 echo "$ac_cs_version"; exit ;; 22730 --debug | --debu | --deb | --de | --d | -d ) 22731 debug=: ;; 22732 --file | --fil | --fi | --f ) 22733 $ac_shift 22734 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 22735 ac_need_defaults=false;; 22736 --header | --heade | --head | --hea ) 22737 $ac_shift 22738 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 22739 ac_need_defaults=false;; 22740 --he | --h) 22741 # Conflict between --help and --header 22742 { echo "$as_me: error: ambiguous option: $1 22743Try \`$0 --help' for more information." >&2 22744 { (exit 1); exit 1; }; };; 22745 --help | --hel | -h ) 22746 echo "$ac_cs_usage"; exit ;; 22747 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 22748 | -silent | --silent | --silen | --sile | --sil | --si | --s) 22749 ac_cs_silent=: ;; 22750 22751 # This is an error. 22752 -*) { echo "$as_me: error: unrecognized option: $1 22753Try \`$0 --help' for more information." >&2 22754 { (exit 1); exit 1; }; } ;; 22755 22756 *) ac_config_targets="$ac_config_targets $1" 22757 ac_need_defaults=false ;; 22758 22759 esac 22760 shift 22761done 22762 22763ac_configure_extra_args= 22764 22765if $ac_cs_silent; then 22766 exec 6>/dev/null 22767 ac_configure_extra_args="$ac_configure_extra_args --silent" 22768fi 22769 22770_ACEOF 22771cat >>$CONFIG_STATUS <<_ACEOF 22772if \$ac_cs_recheck; then 22773 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 22774 CONFIG_SHELL=$SHELL 22775 export CONFIG_SHELL 22776 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 22777fi 22778 22779_ACEOF 22780cat >>$CONFIG_STATUS <<\_ACEOF 22781exec 5>>config.log 22782{ 22783 echo 22784 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 22785## Running $as_me. ## 22786_ASBOX 22787 echo "$ac_log" 22788} >&5 22789 22790_ACEOF 22791cat >>$CONFIG_STATUS <<_ACEOF 22792# 22793# INIT-COMMANDS 22794# 22795AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 22796 22797_ACEOF 22798 22799cat >>$CONFIG_STATUS <<\_ACEOF 22800 22801# Handling of arguments. 22802for ac_config_target in $ac_config_targets 22803do 22804 case $ac_config_target in 22805 "src/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/config.h" ;; 22806 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 22807 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 22808 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 22809 "doc/java-sablevm.1") CONFIG_FILES="$CONFIG_FILES doc/java-sablevm.1" ;; 22810 "doc/sablevm.1") CONFIG_FILES="$CONFIG_FILES doc/sablevm.1" ;; 22811 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 22812 "src/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;; 22813 "src/libsablevm/Makefile") CONFIG_FILES="$CONFIG_FILES src/libsablevm/Makefile" ;; 22814 "src/libsablevm/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/libsablevm/include/Makefile" ;; 22815 "src/libsablevm/inlinability/Makefile") CONFIG_FILES="$CONFIG_FILES src/libsablevm/inlinability/Makefile" ;; 22816 "src/sablevm/Makefile") CONFIG_FILES="$CONFIG_FILES src/sablevm/Makefile" ;; 22817 22818 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 22819echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 22820 { (exit 1); exit 1; }; };; 22821 esac 22822done 22823 22824 22825# If the user did not use the arguments to specify the items to instantiate, 22826# then the envvar interface is used. Set only those that are not. 22827# We use the long form for the default assignment because of an extremely 22828# bizarre bug on SunOS 4.1.3. 22829if $ac_need_defaults; then 22830 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 22831 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 22832 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 22833fi 22834 22835# Have a temporary directory for convenience. Make it in the build tree 22836# simply because there is no reason against having it here, and in addition, 22837# creating and moving files from /tmp can sometimes cause problems. 22838# Hook for its removal unless debugging. 22839# Note that there is a small window in which the directory will not be cleaned: 22840# after its creation but before its name has been assigned to `$tmp'. 22841$debug || 22842{ 22843 tmp= 22844 trap 'exit_status=$? 22845 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 22846' 0 22847 trap '{ (exit 1); exit 1; }' 1 2 13 15 22848} 22849# Create a (secure) tmp directory for tmp files. 22850 22851{ 22852 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 22853 test -n "$tmp" && test -d "$tmp" 22854} || 22855{ 22856 tmp=./conf$$-$RANDOM 22857 (umask 077 && mkdir "$tmp") 22858} || 22859{ 22860 echo "$me: cannot create a temporary directory in ." >&2 22861 { (exit 1); exit 1; } 22862} 22863 22864# 22865# Set up the sed scripts for CONFIG_FILES section. 22866# 22867 22868# No need to generate the scripts if there are no CONFIG_FILES. 22869# This happens for instance when ./config.status config.h 22870if test -n "$CONFIG_FILES"; then 22871 22872_ACEOF 22873 22874 22875 22876ac_delim='%!_!# ' 22877for ac_last_try in false false false false false :; do 22878 cat >conf$$subs.sed <<_ACEOF 22879SHELL!$SHELL$ac_delim 22880PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 22881PACKAGE_NAME!$PACKAGE_NAME$ac_delim 22882PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 22883PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 22884PACKAGE_STRING!$PACKAGE_STRING$ac_delim 22885PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 22886exec_prefix!$exec_prefix$ac_delim 22887prefix!$prefix$ac_delim 22888program_transform_name!$program_transform_name$ac_delim 22889bindir!$bindir$ac_delim 22890sbindir!$sbindir$ac_delim 22891libexecdir!$libexecdir$ac_delim 22892datarootdir!$datarootdir$ac_delim 22893datadir!$datadir$ac_delim 22894sysconfdir!$sysconfdir$ac_delim 22895sharedstatedir!$sharedstatedir$ac_delim 22896localstatedir!$localstatedir$ac_delim 22897includedir!$includedir$ac_delim 22898oldincludedir!$oldincludedir$ac_delim 22899docdir!$docdir$ac_delim 22900infodir!$infodir$ac_delim 22901htmldir!$htmldir$ac_delim 22902dvidir!$dvidir$ac_delim 22903pdfdir!$pdfdir$ac_delim 22904psdir!$psdir$ac_delim 22905libdir!$libdir$ac_delim 22906localedir!$localedir$ac_delim 22907mandir!$mandir$ac_delim 22908DEFS!$DEFS$ac_delim 22909ECHO_C!$ECHO_C$ac_delim 22910ECHO_N!$ECHO_N$ac_delim 22911ECHO_T!$ECHO_T$ac_delim 22912LIBS!$LIBS$ac_delim 22913build_alias!$build_alias$ac_delim 22914host_alias!$host_alias$ac_delim 22915target_alias!$target_alias$ac_delim 22916INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 22917INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 22918INSTALL_DATA!$INSTALL_DATA$ac_delim 22919CYGPATH_W!$CYGPATH_W$ac_delim 22920PACKAGE!$PACKAGE$ac_delim 22921VERSION!$VERSION$ac_delim 22922ACLOCAL!$ACLOCAL$ac_delim 22923AUTOCONF!$AUTOCONF$ac_delim 22924AUTOMAKE!$AUTOMAKE$ac_delim 22925AUTOHEADER!$AUTOHEADER$ac_delim 22926MAKEINFO!$MAKEINFO$ac_delim 22927install_sh!$install_sh$ac_delim 22928STRIP!$STRIP$ac_delim 22929INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 22930mkdir_p!$mkdir_p$ac_delim 22931AWK!$AWK$ac_delim 22932SET_MAKE!$SET_MAKE$ac_delim 22933am__leading_dot!$am__leading_dot$ac_delim 22934AMTAR!$AMTAR$ac_delim 22935am__tar!$am__tar$ac_delim 22936am__untar!$am__untar$ac_delim 22937LIBRELEASE!$LIBRELEASE$ac_delim 22938RELEASE!$RELEASE$ac_delim 22939build!$build$ac_delim 22940build_cpu!$build_cpu$ac_delim 22941build_vendor!$build_vendor$ac_delim 22942build_os!$build_os$ac_delim 22943host!$host$ac_delim 22944host_cpu!$host_cpu$ac_delim 22945host_vendor!$host_vendor$ac_delim 22946host_os!$host_os$ac_delim 22947inlinability_testing!$inlinability_testing$ac_delim 22948JIKES!$JIKES$ac_delim 22949FASTJAR!$FASTJAR$ac_delim 22950CC!$CC$ac_delim 22951CFLAGS!$CFLAGS$ac_delim 22952LDFLAGS!$LDFLAGS$ac_delim 22953CPPFLAGS!$CPPFLAGS$ac_delim 22954ac_ct_CC!$ac_ct_CC$ac_delim 22955EXEEXT!$EXEEXT$ac_delim 22956OBJEXT!$OBJEXT$ac_delim 22957DEPDIR!$DEPDIR$ac_delim 22958am__include!$am__include$ac_delim 22959am__quote!$am__quote$ac_delim 22960AMDEP_TRUE!$AMDEP_TRUE$ac_delim 22961AMDEP_FALSE!$AMDEP_FALSE$ac_delim 22962AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 22963CCDEPMODE!$CCDEPMODE$ac_delim 22964am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 22965am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 22966CPP!$CPP$ac_delim 22967LN_S!$LN_S$ac_delim 22968GREP!$GREP$ac_delim 22969EGREP!$EGREP$ac_delim 22970ECHO!$ECHO$ac_delim 22971AR!$AR$ac_delim 22972RANLIB!$RANLIB$ac_delim 22973CXX!$CXX$ac_delim 22974CXXFLAGS!$CXXFLAGS$ac_delim 22975ac_ct_CXX!$ac_ct_CXX$ac_delim 22976_ACEOF 22977 22978 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 22979 break 22980 elif $ac_last_try; then 22981 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22982echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22983 { (exit 1); exit 1; }; } 22984 else 22985 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22986 fi 22987done 22988 22989ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 22990if test -n "$ac_eof"; then 22991 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 22992 ac_eof=`expr $ac_eof + 1` 22993fi 22994 22995cat >>$CONFIG_STATUS <<_ACEOF 22996cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 22997/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22998_ACEOF 22999sed ' 23000s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 23001s/^/s,@/; s/!/@,|#_!!_#|/ 23002:n 23003t n 23004s/'"$ac_delim"'$/,g/; t 23005s/$/\\/; p 23006N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 23007' >>$CONFIG_STATUS <conf$$subs.sed 23008rm -f conf$$subs.sed 23009cat >>$CONFIG_STATUS <<_ACEOF 23010CEOF$ac_eof 23011_ACEOF 23012 23013 23014ac_delim='%!_!# ' 23015for ac_last_try in false false false false false :; do 23016 cat >conf$$subs.sed <<_ACEOF 23017CXXDEPMODE!$CXXDEPMODE$ac_delim 23018am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim 23019am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim 23020CXXCPP!$CXXCPP$ac_delim 23021F77!$F77$ac_delim 23022FFLAGS!$FFLAGS$ac_delim 23023ac_ct_F77!$ac_ct_F77$ac_delim 23024LIBTOOL!$LIBTOOL$ac_delim 23025subdirs!$subdirs$ac_delim 23026CONV_LIBFFI_TRUE!$CONV_LIBFFI_TRUE$ac_delim 23027CONV_LIBFFI_FALSE!$CONV_LIBFFI_FALSE$ac_delim 23028CONV_LIBPOPT_TRUE!$CONV_LIBPOPT_TRUE$ac_delim 23029CONV_LIBPOPT_FALSE!$CONV_LIBPOPT_FALSE$ac_delim 23030LIBSVMADD!$LIBSVMADD$ac_delim 23031LIBSVMINCLUDE!$LIBSVMINCLUDE$ac_delim 23032SVMADD!$SVMADD$ac_delim 23033SVMINCLUDE!$SVMINCLUDE$ac_delim 23034NO_UNDEFINED!$NO_UNDEFINED$ac_delim 23035M4!$M4$ac_delim 23036LIBOBJS!$LIBOBJS$ac_delim 23037LTLIBOBJS!$LTLIBOBJS$ac_delim 23038_ACEOF 23039 23040 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 21; then 23041 break 23042 elif $ac_last_try; then 23043 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 23044echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 23045 { (exit 1); exit 1; }; } 23046 else 23047 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23048 fi 23049done 23050 23051ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 23052if test -n "$ac_eof"; then 23053 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 23054 ac_eof=`expr $ac_eof + 1` 23055fi 23056 23057cat >>$CONFIG_STATUS <<_ACEOF 23058cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 23059/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 23060_ACEOF 23061sed ' 23062s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 23063s/^/s,@/; s/!/@,|#_!!_#|/ 23064:n 23065t n 23066s/'"$ac_delim"'$/,g/; t 23067s/$/\\/; p 23068N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 23069' >>$CONFIG_STATUS <conf$$subs.sed 23070rm -f conf$$subs.sed 23071cat >>$CONFIG_STATUS <<_ACEOF 23072:end 23073s/|#_!!_#|//g 23074CEOF$ac_eof 23075_ACEOF 23076 23077 23078# VPATH may cause trouble with some makes, so we remove $(srcdir), 23079# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 23080# trailing colons and then remove the whole line if VPATH becomes empty 23081# (actually we leave an empty line to preserve line numbers). 23082if test "x$srcdir" = x.; then 23083 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 23084s/:*\$(srcdir):*/:/ 23085s/:*\${srcdir}:*/:/ 23086s/:*@srcdir@:*/:/ 23087s/^\([^=]*=[ ]*\):*/\1/ 23088s/:*$// 23089s/^[^=]*=[ ]*$// 23090}' 23091fi 23092 23093cat >>$CONFIG_STATUS <<\_ACEOF 23094fi # test -n "$CONFIG_FILES" 23095 23096 23097for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 23098do 23099 case $ac_tag in 23100 :[FHLC]) ac_mode=$ac_tag; continue;; 23101 esac 23102 case $ac_mode$ac_tag in 23103 :[FHL]*:*);; 23104 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 23105echo "$as_me: error: Invalid tag $ac_tag." >&2;} 23106 { (exit 1); exit 1; }; };; 23107 :[FH]-) ac_tag=-:-;; 23108 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 23109 esac 23110 ac_save_IFS=$IFS 23111 IFS=: 23112 set x $ac_tag 23113 IFS=$ac_save_IFS 23114 shift 23115 ac_file=$1 23116 shift 23117 23118 case $ac_mode in 23119 :L) ac_source=$1;; 23120 :[FH]) 23121 ac_file_inputs= 23122 for ac_f 23123 do 23124 case $ac_f in 23125 -) ac_f="$tmp/stdin";; 23126 *) # Look for the file first in the build tree, then in the source tree 23127 # (if the path is not absolute). The absolute path cannot be DOS-style, 23128 # because $ac_f cannot contain `:'. 23129 test -f "$ac_f" || 23130 case $ac_f in 23131 [\\/$]*) false;; 23132 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 23133 esac || 23134 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 23135echo "$as_me: error: cannot find input file: $ac_f" >&2;} 23136 { (exit 1); exit 1; }; };; 23137 esac 23138 ac_file_inputs="$ac_file_inputs $ac_f" 23139 done 23140 23141 # Let's still pretend it is `configure' which instantiates (i.e., don't 23142 # use $as_me), people would be surprised to read: 23143 # /* config.h. Generated by config.status. */ 23144 configure_input="Generated from "`IFS=: 23145 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 23146 if test x"$ac_file" != x-; then 23147 configure_input="$ac_file. $configure_input" 23148 { echo "$as_me:$LINENO: creating $ac_file" >&5 23149echo "$as_me: creating $ac_file" >&6;} 23150 fi 23151 23152 case $ac_tag in 23153 *:-:* | *:-) cat >"$tmp/stdin";; 23154 esac 23155 ;; 23156 esac 23157 23158 ac_dir=`$as_dirname -- "$ac_file" || 23159$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23160 X"$ac_file" : 'X\(//\)[^/]' \| \ 23161 X"$ac_file" : 'X\(//\)$' \| \ 23162 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 23163echo X"$ac_file" | 23164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23165 s//\1/ 23166 q 23167 } 23168 /^X\(\/\/\)[^/].*/{ 23169 s//\1/ 23170 q 23171 } 23172 /^X\(\/\/\)$/{ 23173 s//\1/ 23174 q 23175 } 23176 /^X\(\/\).*/{ 23177 s//\1/ 23178 q 23179 } 23180 s/.*/./; q'` 23181 { as_dir="$ac_dir" 23182 case $as_dir in #( 23183 -*) as_dir=./$as_dir;; 23184 esac 23185 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 23186 as_dirs= 23187 while :; do 23188 case $as_dir in #( 23189 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 23190 *) as_qdir=$as_dir;; 23191 esac 23192 as_dirs="'$as_qdir' $as_dirs" 23193 as_dir=`$as_dirname -- "$as_dir" || 23194$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23195 X"$as_dir" : 'X\(//\)[^/]' \| \ 23196 X"$as_dir" : 'X\(//\)$' \| \ 23197 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 23198echo X"$as_dir" | 23199 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23200 s//\1/ 23201 q 23202 } 23203 /^X\(\/\/\)[^/].*/{ 23204 s//\1/ 23205 q 23206 } 23207 /^X\(\/\/\)$/{ 23208 s//\1/ 23209 q 23210 } 23211 /^X\(\/\).*/{ 23212 s//\1/ 23213 q 23214 } 23215 s/.*/./; q'` 23216 test -d "$as_dir" && break 23217 done 23218 test -z "$as_dirs" || eval "mkdir $as_dirs" 23219 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 23220echo "$as_me: error: cannot create directory $as_dir" >&2;} 23221 { (exit 1); exit 1; }; }; } 23222 ac_builddir=. 23223 23224case "$ac_dir" in 23225.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 23226*) 23227 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 23228 # A ".." for each directory in $ac_dir_suffix. 23229 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 23230 case $ac_top_builddir_sub in 23231 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 23232 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 23233 esac ;; 23234esac 23235ac_abs_top_builddir=$ac_pwd 23236ac_abs_builddir=$ac_pwd$ac_dir_suffix 23237# for backward compatibility: 23238ac_top_builddir=$ac_top_build_prefix 23239 23240case $srcdir in 23241 .) # We are building in place. 23242 ac_srcdir=. 23243 ac_top_srcdir=$ac_top_builddir_sub 23244 ac_abs_top_srcdir=$ac_pwd ;; 23245 [\\/]* | ?:[\\/]* ) # Absolute name. 23246 ac_srcdir=$srcdir$ac_dir_suffix; 23247 ac_top_srcdir=$srcdir 23248 ac_abs_top_srcdir=$srcdir ;; 23249 *) # Relative name. 23250 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 23251 ac_top_srcdir=$ac_top_build_prefix$srcdir 23252 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 23253esac 23254ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 23255 23256 23257 case $ac_mode in 23258 :F) 23259 # 23260 # CONFIG_FILE 23261 # 23262 23263 case $INSTALL in 23264 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 23265 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 23266 esac 23267_ACEOF 23268 23269cat >>$CONFIG_STATUS <<\_ACEOF 23270# If the template does not know about datarootdir, expand it. 23271# FIXME: This hack should be removed a few years after 2.60. 23272ac_datarootdir_hack=; ac_datarootdir_seen= 23273 23274case `sed -n '/datarootdir/ { 23275 p 23276 q 23277} 23278/@datadir@/p 23279/@docdir@/p 23280/@infodir@/p 23281/@localedir@/p 23282/@mandir@/p 23283' $ac_file_inputs` in 23284*datarootdir*) ac_datarootdir_seen=yes;; 23285*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 23286 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 23287echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 23288_ACEOF 23289cat >>$CONFIG_STATUS <<_ACEOF 23290 ac_datarootdir_hack=' 23291 s&@datadir@&$datadir&g 23292 s&@docdir@&$docdir&g 23293 s&@infodir@&$infodir&g 23294 s&@localedir@&$localedir&g 23295 s&@mandir@&$mandir&g 23296 s&\\\${datarootdir}&$datarootdir&g' ;; 23297esac 23298_ACEOF 23299 23300# Neutralize VPATH when `$srcdir' = `.'. 23301# Shell code in configure.ac might set extrasub. 23302# FIXME: do we really want to maintain this feature? 23303cat >>$CONFIG_STATUS <<_ACEOF 23304 sed "$ac_vpsub 23305$extrasub 23306_ACEOF 23307cat >>$CONFIG_STATUS <<\_ACEOF 23308:t 23309/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23310s&@configure_input@&$configure_input&;t t 23311s&@top_builddir@&$ac_top_builddir_sub&;t t 23312s&@srcdir@&$ac_srcdir&;t t 23313s&@abs_srcdir@&$ac_abs_srcdir&;t t 23314s&@top_srcdir@&$ac_top_srcdir&;t t 23315s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 23316s&@builddir@&$ac_builddir&;t t 23317s&@abs_builddir@&$ac_abs_builddir&;t t 23318s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 23319s&@INSTALL@&$ac_INSTALL&;t t 23320$ac_datarootdir_hack 23321" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 23322 23323test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 23324 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 23325 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 23326 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23327which seems to be undefined. Please make sure it is defined." >&5 23328echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23329which seems to be undefined. Please make sure it is defined." >&2;} 23330 23331 rm -f "$tmp/stdin" 23332 case $ac_file in 23333 -) cat "$tmp/out"; rm -f "$tmp/out";; 23334 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 23335 esac 23336 ;; 23337 :H) 23338 # 23339 # CONFIG_HEADER 23340 # 23341_ACEOF 23342 23343# Transform confdefs.h into a sed script `conftest.defines', that 23344# substitutes the proper values into config.h.in to produce config.h. 23345rm -f conftest.defines conftest.tail 23346# First, append a space to every undef/define line, to ease matching. 23347echo 's/$/ /' >conftest.defines 23348# Then, protect against being on the right side of a sed subst, or in 23349# an unquoted here document, in config.status. If some macros were 23350# called several times there might be several #defines for the same 23351# symbol, which is useless. But do not sort them, since the last 23352# AC_DEFINE must be honored. 23353ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 23354# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 23355# NAME is the cpp macro being defined, VALUE is the value it is being given. 23356# PARAMS is the parameter list in the macro definition--in most cases, it's 23357# just an empty string. 23358ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 23359ac_dB='\\)[ (].*,\\1define\\2' 23360ac_dC=' ' 23361ac_dD=' ,' 23362 23363uniq confdefs.h | 23364 sed -n ' 23365 t rset 23366 :rset 23367 s/^[ ]*#[ ]*define[ ][ ]*// 23368 t ok 23369 d 23370 :ok 23371 s/[\\&,]/\\&/g 23372 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 23373 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 23374 ' >>conftest.defines 23375 23376# Remove the space that was appended to ease matching. 23377# Then replace #undef with comments. This is necessary, for 23378# example, in the case of _POSIX_SOURCE, which is predefined and required 23379# on some systems where configure will not decide to define it. 23380# (The regexp can be short, since the line contains either #define or #undef.) 23381echo 's/ $// 23382s,^[ #]*u.*,/* & */,' >>conftest.defines 23383 23384# Break up conftest.defines: 23385ac_max_sed_lines=50 23386 23387# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 23388# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 23389# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 23390# et cetera. 23391ac_in='$ac_file_inputs' 23392ac_out='"$tmp/out1"' 23393ac_nxt='"$tmp/out2"' 23394 23395while : 23396do 23397 # Write a here document: 23398 cat >>$CONFIG_STATUS <<_ACEOF 23399 # First, check the format of the line: 23400 cat >"\$tmp/defines.sed" <<\\CEOF 23401/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 23402/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 23403b 23404:def 23405_ACEOF 23406 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 23407 echo 'CEOF 23408 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 23409 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 23410 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 23411 grep . conftest.tail >/dev/null || break 23412 rm -f conftest.defines 23413 mv conftest.tail conftest.defines 23414done 23415rm -f conftest.defines conftest.tail 23416 23417echo "ac_result=$ac_in" >>$CONFIG_STATUS 23418cat >>$CONFIG_STATUS <<\_ACEOF 23419 if test x"$ac_file" != x-; then 23420 echo "/* $configure_input */" >"$tmp/config.h" 23421 cat "$ac_result" >>"$tmp/config.h" 23422 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 23423 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 23424echo "$as_me: $ac_file is unchanged" >&6;} 23425 else 23426 rm -f $ac_file 23427 mv "$tmp/config.h" $ac_file 23428 fi 23429 else 23430 echo "/* $configure_input */" 23431 cat "$ac_result" 23432 fi 23433 rm -f "$tmp/out12" 23434# Compute $ac_file's index in $config_headers. 23435_am_stamp_count=1 23436for _am_header in $config_headers :; do 23437 case $_am_header in 23438 $ac_file | $ac_file:* ) 23439 break ;; 23440 * ) 23441 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 23442 esac 23443done 23444echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || 23445$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23446 X$ac_file : 'X\(//\)[^/]' \| \ 23447 X$ac_file : 'X\(//\)$' \| \ 23448 X$ac_file : 'X\(/\)' \| . 2>/dev/null || 23449echo X$ac_file | 23450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23451 s//\1/ 23452 q 23453 } 23454 /^X\(\/\/\)[^/].*/{ 23455 s//\1/ 23456 q 23457 } 23458 /^X\(\/\/\)$/{ 23459 s//\1/ 23460 q 23461 } 23462 /^X\(\/\).*/{ 23463 s//\1/ 23464 q 23465 } 23466 s/.*/./; q'`/stamp-h$_am_stamp_count 23467 ;; 23468 23469 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 23470echo "$as_me: executing $ac_file commands" >&6;} 23471 ;; 23472 esac 23473 23474 23475 case $ac_file$ac_mode in 23476 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 23477 # Strip MF so we end up with the name of the file. 23478 mf=`echo "$mf" | sed -e 's/:.*$//'` 23479 # Check whether this is an Automake generated Makefile or not. 23480 # We used to match only the files named `Makefile.in', but 23481 # some people rename them; so instead we look at the file content. 23482 # Grep'ing the first line is not enough: some people post-process 23483 # each Makefile.in and add a new line on top of each file to say so. 23484 # So let's grep whole file. 23485 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 23486 dirpart=`$as_dirname -- "$mf" || 23487$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23488 X"$mf" : 'X\(//\)[^/]' \| \ 23489 X"$mf" : 'X\(//\)$' \| \ 23490 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 23491echo X"$mf" | 23492 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23493 s//\1/ 23494 q 23495 } 23496 /^X\(\/\/\)[^/].*/{ 23497 s//\1/ 23498 q 23499 } 23500 /^X\(\/\/\)$/{ 23501 s//\1/ 23502 q 23503 } 23504 /^X\(\/\).*/{ 23505 s//\1/ 23506 q 23507 } 23508 s/.*/./; q'` 23509 else 23510 continue 23511 fi 23512 # Extract the definition of DEPDIR, am__include, and am__quote 23513 # from the Makefile without running `make'. 23514 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 23515 test -z "$DEPDIR" && continue 23516 am__include=`sed -n 's/^am__include = //p' < "$mf"` 23517 test -z "am__include" && continue 23518 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 23519 # When using ansi2knr, U may be empty or an underscore; expand it 23520 U=`sed -n 's/^U = //p' < "$mf"` 23521 # Find all dependency output files, they are included files with 23522 # $(DEPDIR) in their names. We invoke sed twice because it is the 23523 # simplest approach to changing $(DEPDIR) to its actual value in the 23524 # expansion. 23525 for file in `sed -n " 23526 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 23527 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 23528 # Make sure the directory exists. 23529 test -f "$dirpart/$file" && continue 23530 fdir=`$as_dirname -- "$file" || 23531$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23532 X"$file" : 'X\(//\)[^/]' \| \ 23533 X"$file" : 'X\(//\)$' \| \ 23534 X"$file" : 'X\(/\)' \| . 2>/dev/null || 23535echo X"$file" | 23536 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23537 s//\1/ 23538 q 23539 } 23540 /^X\(\/\/\)[^/].*/{ 23541 s//\1/ 23542 q 23543 } 23544 /^X\(\/\/\)$/{ 23545 s//\1/ 23546 q 23547 } 23548 /^X\(\/\).*/{ 23549 s//\1/ 23550 q 23551 } 23552 s/.*/./; q'` 23553 { as_dir=$dirpart/$fdir 23554 case $as_dir in #( 23555 -*) as_dir=./$as_dir;; 23556 esac 23557 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 23558 as_dirs= 23559 while :; do 23560 case $as_dir in #( 23561 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 23562 *) as_qdir=$as_dir;; 23563 esac 23564 as_dirs="'$as_qdir' $as_dirs" 23565 as_dir=`$as_dirname -- "$as_dir" || 23566$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23567 X"$as_dir" : 'X\(//\)[^/]' \| \ 23568 X"$as_dir" : 'X\(//\)$' \| \ 23569 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 23570echo X"$as_dir" | 23571 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23572 s//\1/ 23573 q 23574 } 23575 /^X\(\/\/\)[^/].*/{ 23576 s//\1/ 23577 q 23578 } 23579 /^X\(\/\/\)$/{ 23580 s//\1/ 23581 q 23582 } 23583 /^X\(\/\).*/{ 23584 s//\1/ 23585 q 23586 } 23587 s/.*/./; q'` 23588 test -d "$as_dir" && break 23589 done 23590 test -z "$as_dirs" || eval "mkdir $as_dirs" 23591 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 23592echo "$as_me: error: cannot create directory $as_dir" >&2;} 23593 { (exit 1); exit 1; }; }; } 23594 # echo "creating $dirpart/$file" 23595 echo '# dummy' > "$dirpart/$file" 23596 done 23597done 23598 ;; 23599 23600 esac 23601done # for ac_tag 23602 23603 23604{ (exit 0); exit 0; } 23605_ACEOF 23606chmod +x $CONFIG_STATUS 23607ac_clean_files=$ac_clean_files_save 23608 23609 23610# configure is writing to config.log, and then calls config.status. 23611# config.status does its own redirection, appending to config.log. 23612# Unfortunately, on DOS this fails, as config.log is still kept open 23613# by configure, so config.status won't be able to write to it; its 23614# output is simply discarded. So we exec the FD to /dev/null, 23615# effectively closing config.log, so it can be properly (re)opened and 23616# appended to by config.status. When coming back to configure, we 23617# need to make the FD available again. 23618if test "$no_create" != yes; then 23619 ac_cs_success=: 23620 ac_config_status_args= 23621 test "$silent" = yes && 23622 ac_config_status_args="$ac_config_status_args --quiet" 23623 exec 5>/dev/null 23624 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23625 exec 5>>config.log 23626 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23627 # would make configure fail if this is the last instruction. 23628 $ac_cs_success || { (exit 1); exit 1; } 23629fi 23630 23631# 23632# CONFIG_SUBDIRS section. 23633# 23634if test "$no_recursion" != yes; then 23635 23636 # Remove --cache-file and --srcdir arguments so they do not pile up. 23637 ac_sub_configure_args= 23638 ac_prev= 23639 eval "set x $ac_configure_args" 23640 shift 23641 for ac_arg 23642 do 23643 if test -n "$ac_prev"; then 23644 ac_prev= 23645 continue 23646 fi 23647 case $ac_arg in 23648 -cache-file | --cache-file | --cache-fil | --cache-fi \ 23649 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 23650 ac_prev=cache_file ;; 23651 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 23652 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 23653 | --c=*) 23654 ;; 23655 --config-cache | -C) 23656 ;; 23657 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 23658 ac_prev=srcdir ;; 23659 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 23660 ;; 23661 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 23662 ac_prev=prefix ;; 23663 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 23664 ;; 23665 *) 23666 case $ac_arg in 23667 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 23668 esac 23669 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; 23670 esac 23671 done 23672 23673 # Always prepend --prefix to ensure using the same prefix 23674 # in subdir configurations. 23675 ac_arg="--prefix=$prefix" 23676 case $ac_arg in 23677 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 23678 esac 23679 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" 23680 23681 # Pass --silent 23682 if test "$silent" = yes; then 23683 ac_sub_configure_args="--silent $ac_sub_configure_args" 23684 fi 23685 23686 ac_popdir=`pwd` 23687 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 23688 23689 # Do not complain, so a configure script can configure whichever 23690 # parts of a large source tree are present. 23691 test -d "$srcdir/$ac_dir" || continue 23692 23693 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 23694 echo "$as_me:$LINENO: $ac_msg" >&5 23695 echo "$ac_msg" >&6 23696 { as_dir="$ac_dir" 23697 case $as_dir in #( 23698 -*) as_dir=./$as_dir;; 23699 esac 23700 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 23701 as_dirs= 23702 while :; do 23703 case $as_dir in #( 23704 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 23705 *) as_qdir=$as_dir;; 23706 esac 23707 as_dirs="'$as_qdir' $as_dirs" 23708 as_dir=`$as_dirname -- "$as_dir" || 23709$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23710 X"$as_dir" : 'X\(//\)[^/]' \| \ 23711 X"$as_dir" : 'X\(//\)$' \| \ 23712 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 23713echo X"$as_dir" | 23714 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23715 s//\1/ 23716 q 23717 } 23718 /^X\(\/\/\)[^/].*/{ 23719 s//\1/ 23720 q 23721 } 23722 /^X\(\/\/\)$/{ 23723 s//\1/ 23724 q 23725 } 23726 /^X\(\/\).*/{ 23727 s//\1/ 23728 q 23729 } 23730 s/.*/./; q'` 23731 test -d "$as_dir" && break 23732 done 23733 test -z "$as_dirs" || eval "mkdir $as_dirs" 23734 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 23735echo "$as_me: error: cannot create directory $as_dir" >&2;} 23736 { (exit 1); exit 1; }; }; } 23737 ac_builddir=. 23738 23739case "$ac_dir" in 23740.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 23741*) 23742 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 23743 # A ".." for each directory in $ac_dir_suffix. 23744 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 23745 case $ac_top_builddir_sub in 23746 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 23747 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 23748 esac ;; 23749esac 23750ac_abs_top_builddir=$ac_pwd 23751ac_abs_builddir=$ac_pwd$ac_dir_suffix 23752# for backward compatibility: 23753ac_top_builddir=$ac_top_build_prefix 23754 23755case $srcdir in 23756 .) # We are building in place. 23757 ac_srcdir=. 23758 ac_top_srcdir=$ac_top_builddir_sub 23759 ac_abs_top_srcdir=$ac_pwd ;; 23760 [\\/]* | ?:[\\/]* ) # Absolute name. 23761 ac_srcdir=$srcdir$ac_dir_suffix; 23762 ac_top_srcdir=$srcdir 23763 ac_abs_top_srcdir=$srcdir ;; 23764 *) # Relative name. 23765 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 23766 ac_top_srcdir=$ac_top_build_prefix$srcdir 23767 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 23768esac 23769ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 23770 23771 23772 cd "$ac_dir" 23773 23774 # Check for guested configure; otherwise get Cygnus style configure. 23775 if test -f "$ac_srcdir/configure.gnu"; then 23776 ac_sub_configure=$ac_srcdir/configure.gnu 23777 elif test -f "$ac_srcdir/configure"; then 23778 ac_sub_configure=$ac_srcdir/configure 23779 elif test -f "$ac_srcdir/configure.in"; then 23780 # This should be Cygnus configure. 23781 ac_sub_configure=$ac_aux_dir/configure 23782 else 23783 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 23784echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 23785 ac_sub_configure= 23786 fi 23787 23788 # The recursion is here. 23789 if test -n "$ac_sub_configure"; then 23790 # Make the cache file name correct relative to the subdirectory. 23791 case $cache_file in 23792 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 23793 *) # Relative name. 23794 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 23795 esac 23796 23797 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 23798echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 23799 # The eval makes quoting arguments work. 23800 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 23801 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 23802 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 23803echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} 23804 { (exit 1); exit 1; }; } 23805 fi 23806 23807 cd "$ac_popdir" 23808 done 23809fi 23810 23811