1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.61. 4# 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9## --------------------- ## 10## M4sh Initialization. ## 11## --------------------- ## 12 13# Be more Bourne compatible 14DUALCASE=1; export DUALCASE # for MKS sh 15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 16 emulate sh 17 NULLCMD=: 18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19 # is contrary to our usage. Disable this feature. 20 alias -g '${1+"$@"}'='"$@"' 21 setopt NO_GLOB_SUBST 22else 23 case `(set -o) 2>/dev/null` in 24 *posix*) set -o posix ;; 25esac 26 27fi 28 29 30 31 32# PATH needs CR 33# Avoid depending upon Character Ranges. 34as_cr_letters='abcdefghijklmnopqrstuvwxyz' 35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 36as_cr_Letters=$as_cr_letters$as_cr_LETTERS 37as_cr_digits='0123456789' 38as_cr_alnum=$as_cr_Letters$as_cr_digits 39 40# The user is always right. 41if test "${PATH_SEPARATOR+set}" != set; then 42 echo "#! /bin/sh" >conf$$.sh 43 echo "exit 0" >>conf$$.sh 44 chmod +x conf$$.sh 45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 46 PATH_SEPARATOR=';' 47 else 48 PATH_SEPARATOR=: 49 fi 50 rm -f conf$$.sh 51fi 52 53# Support unset when possible. 54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 55 as_unset=unset 56else 57 as_unset=false 58fi 59 60 61# IFS 62# We need space, tab and new line, in precisely that order. Quoting is 63# there to prevent editors from complaining about space-tab. 64# (If _AS_PATH_WALK were called with IFS unset, it would disable word 65# splitting by setting IFS to empty value.) 66as_nl=' 67' 68IFS=" "" $as_nl" 69 70# Find who we are. Look in the path if we contain no directory separator. 71case $0 in 72 *[\\/]* ) as_myself=$0 ;; 73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 74for as_dir in $PATH 75do 76 IFS=$as_save_IFS 77 test -z "$as_dir" && as_dir=. 78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 79done 80IFS=$as_save_IFS 81 82 ;; 83esac 84# We did not find ourselves, most probably we were run as `sh COMMAND' 85# in which case we are not to be found in the path. 86if test "x$as_myself" = x; then 87 as_myself=$0 88fi 89if test ! -f "$as_myself"; then 90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 91 { (exit 1); exit 1; } 92fi 93 94# Work around bugs in pre-3.0 UWIN ksh. 95for as_var in ENV MAIL MAILPATH 96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 97done 98PS1='$ ' 99PS2='> ' 100PS4='+ ' 101 102# NLS nuisances. 103for as_var in \ 104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 106 LC_TELEPHONE LC_TIME 107do 108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 109 eval $as_var=C; export $as_var 110 else 111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 112 fi 113done 114 115# Required to use basename. 116if expr a : '\(a\)' >/dev/null 2>&1 && 117 test "X`expr 00001 : '.*\(...\)'`" = X001; then 118 as_expr=expr 119else 120 as_expr=false 121fi 122 123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 124 as_basename=basename 125else 126 as_basename=false 127fi 128 129 130# Name of the executable. 131as_me=`$as_basename -- "$0" || 132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 133 X"$0" : 'X\(//\)$' \| \ 134 X"$0" : 'X\(/\)' \| . 2>/dev/null || 135echo X/"$0" | 136 sed '/^.*\/\([^/][^/]*\)\/*$/{ 137 s//\1/ 138 q 139 } 140 /^X\/\(\/\/\)$/{ 141 s//\1/ 142 q 143 } 144 /^X\/\(\/\).*/{ 145 s//\1/ 146 q 147 } 148 s/.*/./; q'` 149 150# CDPATH. 151$as_unset CDPATH 152 153 154if test "x$CONFIG_SHELL" = x; then 155 if (eval ":") 2>/dev/null; then 156 as_have_required=yes 157else 158 as_have_required=no 159fi 160 161 if test $as_have_required = yes && (eval ": 162(as_func_return () { 163 (exit \$1) 164} 165as_func_success () { 166 as_func_return 0 167} 168as_func_failure () { 169 as_func_return 1 170} 171as_func_ret_success () { 172 return 0 173} 174as_func_ret_failure () { 175 return 1 176} 177 178exitcode=0 179if as_func_success; then 180 : 181else 182 exitcode=1 183 echo as_func_success failed. 184fi 185 186if as_func_failure; then 187 exitcode=1 188 echo as_func_failure succeeded. 189fi 190 191if as_func_ret_success; then 192 : 193else 194 exitcode=1 195 echo as_func_ret_success failed. 196fi 197 198if as_func_ret_failure; then 199 exitcode=1 200 echo as_func_ret_failure succeeded. 201fi 202 203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 204 : 205else 206 exitcode=1 207 echo positional parameters were not saved. 208fi 209 210test \$exitcode = 0) || { (exit 1); exit 1; } 211 212( 213 as_lineno_1=\$LINENO 214 as_lineno_2=\$LINENO 215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 217") 2> /dev/null; then 218 : 219else 220 as_candidate_shells= 221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 223do 224 IFS=$as_save_IFS 225 test -z "$as_dir" && as_dir=. 226 case $as_dir in 227 /*) 228 for as_base in sh bash ksh sh5; do 229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 230 done;; 231 esac 232done 233IFS=$as_save_IFS 234 235 236 for as_shell in $as_candidate_shells $SHELL; do 237 # Try only shells that exist, to save several forks. 238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 239 { ("$as_shell") 2> /dev/null <<\_ASEOF 240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 241 emulate sh 242 NULLCMD=: 243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 244 # is contrary to our usage. Disable this feature. 245 alias -g '${1+"$@"}'='"$@"' 246 setopt NO_GLOB_SUBST 247else 248 case `(set -o) 2>/dev/null` in 249 *posix*) set -o posix ;; 250esac 251 252fi 253 254 255: 256_ASEOF 257}; then 258 CONFIG_SHELL=$as_shell 259 as_have_required=yes 260 if { "$as_shell" 2> /dev/null <<\_ASEOF 261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 262 emulate sh 263 NULLCMD=: 264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 265 # is contrary to our usage. Disable this feature. 266 alias -g '${1+"$@"}'='"$@"' 267 setopt NO_GLOB_SUBST 268else 269 case `(set -o) 2>/dev/null` in 270 *posix*) set -o posix ;; 271esac 272 273fi 274 275 276: 277(as_func_return () { 278 (exit $1) 279} 280as_func_success () { 281 as_func_return 0 282} 283as_func_failure () { 284 as_func_return 1 285} 286as_func_ret_success () { 287 return 0 288} 289as_func_ret_failure () { 290 return 1 291} 292 293exitcode=0 294if as_func_success; then 295 : 296else 297 exitcode=1 298 echo as_func_success failed. 299fi 300 301if as_func_failure; then 302 exitcode=1 303 echo as_func_failure succeeded. 304fi 305 306if as_func_ret_success; then 307 : 308else 309 exitcode=1 310 echo as_func_ret_success failed. 311fi 312 313if as_func_ret_failure; then 314 exitcode=1 315 echo as_func_ret_failure succeeded. 316fi 317 318if ( set x; as_func_ret_success y && test x = "$1" ); then 319 : 320else 321 exitcode=1 322 echo positional parameters were not saved. 323fi 324 325test $exitcode = 0) || { (exit 1); exit 1; } 326 327( 328 as_lineno_1=$LINENO 329 as_lineno_2=$LINENO 330 test "x$as_lineno_1" != "x$as_lineno_2" && 331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 332 333_ASEOF 334}; then 335 break 336fi 337 338fi 339 340 done 341 342 if test "x$CONFIG_SHELL" != x; then 343 for as_var in BASH_ENV ENV 344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 345 done 346 export CONFIG_SHELL 347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 348fi 349 350 351 if test $as_have_required = no; then 352 echo This script requires a shell more modern than all the 353 echo shells that I found on your system. Please install a 354 echo modern shell, or manually run the script under such a 355 echo shell if you do have one. 356 { (exit 1); exit 1; } 357fi 358 359 360fi 361 362fi 363 364 365 366(eval "as_func_return () { 367 (exit \$1) 368} 369as_func_success () { 370 as_func_return 0 371} 372as_func_failure () { 373 as_func_return 1 374} 375as_func_ret_success () { 376 return 0 377} 378as_func_ret_failure () { 379 return 1 380} 381 382exitcode=0 383if as_func_success; then 384 : 385else 386 exitcode=1 387 echo as_func_success failed. 388fi 389 390if as_func_failure; then 391 exitcode=1 392 echo as_func_failure succeeded. 393fi 394 395if as_func_ret_success; then 396 : 397else 398 exitcode=1 399 echo as_func_ret_success failed. 400fi 401 402if as_func_ret_failure; then 403 exitcode=1 404 echo as_func_ret_failure succeeded. 405fi 406 407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 408 : 409else 410 exitcode=1 411 echo positional parameters were not saved. 412fi 413 414test \$exitcode = 0") || { 415 echo No shell found that supports shell functions. 416 echo Please tell autoconf@gnu.org about your system, 417 echo including any error possibly output before this 418 echo message 419} 420 421 422 423 as_lineno_1=$LINENO 424 as_lineno_2=$LINENO 425 test "x$as_lineno_1" != "x$as_lineno_2" && 426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 427 428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 429 # uniformly replaced by the line number. The first 'sed' inserts a 430 # line-number line after each line using $LINENO; the second 'sed' 431 # does the real work. The second script uses 'N' to pair each 432 # line-number line with the line containing $LINENO, and appends 433 # trailing '-' during substitution so that $LINENO is not a special 434 # case at line end. 435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 436 # scripts with optimization help from Paolo Bonzini. Blame Lee 437 # E. McMahon (1931-1989) for sed's syntax. :-) 438 sed -n ' 439 p 440 /[$]LINENO/= 441 ' <$as_myself | 442 sed ' 443 s/[$]LINENO.*/&-/ 444 t lineno 445 b 446 :lineno 447 N 448 :loop 449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 450 t loop 451 s/-\n.*// 452 ' >$as_me.lineno && 453 chmod +x "$as_me.lineno" || 454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 455 { (exit 1); exit 1; }; } 456 457 # Don't try to exec as it changes $[0], causing all sort of problems 458 # (the dirname of $[0] is not the place where we might find the 459 # original and so on. Autoconf is especially sensitive to this). 460 . "./$as_me.lineno" 461 # Exit status is that of the last command. 462 exit 463} 464 465 466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 467 as_dirname=dirname 468else 469 as_dirname=false 470fi 471 472ECHO_C= ECHO_N= ECHO_T= 473case `echo -n x` in 474-n*) 475 case `echo 'x\c'` in 476 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 477 *) ECHO_C='\c';; 478 esac;; 479*) 480 ECHO_N='-n';; 481esac 482 483if expr a : '\(a\)' >/dev/null 2>&1 && 484 test "X`expr 00001 : '.*\(...\)'`" = X001; then 485 as_expr=expr 486else 487 as_expr=false 488fi 489 490rm -f conf$$ conf$$.exe conf$$.file 491if test -d conf$$.dir; then 492 rm -f conf$$.dir/conf$$.file 493else 494 rm -f conf$$.dir 495 mkdir conf$$.dir 496fi 497echo >conf$$.file 498if ln -s conf$$.file conf$$ 2>/dev/null; then 499 as_ln_s='ln -s' 500 # ... but there are two gotchas: 501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 503 # In both cases, we have to default to `cp -p'. 504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 505 as_ln_s='cp -p' 506elif ln conf$$.file conf$$ 2>/dev/null; then 507 as_ln_s=ln 508else 509 as_ln_s='cp -p' 510fi 511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 512rmdir conf$$.dir 2>/dev/null 513 514if mkdir -p . 2>/dev/null; then 515 as_mkdir_p=: 516else 517 test -d ./-p && rmdir ./-p 518 as_mkdir_p=false 519fi 520 521if test -x / >/dev/null 2>&1; then 522 as_test_x='test -x' 523else 524 if ls -dL / >/dev/null 2>&1; then 525 as_ls_L_option=L 526 else 527 as_ls_L_option= 528 fi 529 as_test_x=' 530 eval sh -c '\'' 531 if test -d "$1"; then 532 test -d "$1/."; 533 else 534 case $1 in 535 -*)set "./$1";; 536 esac; 537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 538 ???[sx]*):;;*)false;;esac;fi 539 '\'' sh 540 ' 541fi 542as_executable_p=$as_test_x 543 544# Sed expression to map a string onto a valid CPP name. 545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 546 547# Sed expression to map a string onto a valid variable name. 548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 549 550 551 552 553# Check that we are running under the correct shell. 554SHELL=${CONFIG_SHELL-/bin/sh} 555 556case X$ECHO in 557X*--fallback-echo) 558 # Remove one level of quotation (which was required for Make). 559 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 560 ;; 561esac 562 563echo=${ECHO-echo} 564if test "X$1" = X--no-reexec; then 565 # Discard the --no-reexec flag, and continue. 566 shift 567elif test "X$1" = X--fallback-echo; then 568 # Avoid inline document here, it may be left over 569 : 570elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 571 # Yippee, $echo works! 572 : 573else 574 # Restart under the correct shell. 575 exec $SHELL "$0" --no-reexec ${1+"$@"} 576fi 577 578if test "X$1" = X--fallback-echo; then 579 # used as fallback echo 580 shift 581 cat <<EOF 582$* 583EOF 584 exit 0 585fi 586 587# The HP-UX ksh and POSIX shell print the target directory to stdout 588# if CDPATH is set. 589(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 590 591if test -z "$ECHO"; then 592if test "X${echo_test_string+set}" != Xset; then 593# find a string as large as possible, as long as the shell can cope with it 594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 596 if (echo_test_string=`eval $cmd`) 2>/dev/null && 597 echo_test_string=`eval $cmd` && 598 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 599 then 600 break 601 fi 602 done 603fi 604 605if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 606 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 607 test "X$echo_testing_string" = "X$echo_test_string"; then 608 : 609else 610 # The Solaris, AIX, and Digital Unix default echo programs unquote 611 # backslashes. This makes it impossible to quote backslashes using 612 # echo "$something" | sed 's/\\/\\\\/g' 613 # 614 # So, first we look for a working echo in the user's PATH. 615 616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 617 for dir in $PATH /usr/ucb; do 618 IFS="$lt_save_ifs" 619 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 620 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 621 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 622 test "X$echo_testing_string" = "X$echo_test_string"; then 623 echo="$dir/echo" 624 break 625 fi 626 done 627 IFS="$lt_save_ifs" 628 629 if test "X$echo" = Xecho; then 630 # We didn't find a better echo, so look for alternatives. 631 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 632 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 633 test "X$echo_testing_string" = "X$echo_test_string"; then 634 # This shell has a builtin print -r that does the trick. 635 echo='print -r' 636 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 637 test "X$CONFIG_SHELL" != X/bin/ksh; then 638 # If we have ksh, try running configure again with it. 639 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 640 export ORIGINAL_CONFIG_SHELL 641 CONFIG_SHELL=/bin/ksh 642 export CONFIG_SHELL 643 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 644 else 645 # Try using printf. 646 echo='printf %s\n' 647 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 648 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 649 test "X$echo_testing_string" = "X$echo_test_string"; then 650 # Cool, printf works 651 : 652 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 653 test "X$echo_testing_string" = 'X\t' && 654 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 655 test "X$echo_testing_string" = "X$echo_test_string"; then 656 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 657 export CONFIG_SHELL 658 SHELL="$CONFIG_SHELL" 659 export SHELL 660 echo="$CONFIG_SHELL $0 --fallback-echo" 661 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 662 test "X$echo_testing_string" = 'X\t' && 663 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 664 test "X$echo_testing_string" = "X$echo_test_string"; then 665 echo="$CONFIG_SHELL $0 --fallback-echo" 666 else 667 # maybe with a smaller string... 668 prev=: 669 670 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 671 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 672 then 673 break 674 fi 675 prev="$cmd" 676 done 677 678 if test "$prev" != 'sed 50q "$0"'; then 679 echo_test_string=`eval $prev` 680 export echo_test_string 681 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 682 else 683 # Oops. We lost completely, so just stick with echo. 684 echo=echo 685 fi 686 fi 687 fi 688 fi 689fi 690fi 691 692# Copy echo and quote the copy suitably for passing to libtool from 693# the Makefile, instead of quoting the original, which is used later. 694ECHO=$echo 695if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 696 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 697fi 698 699 700 701 702tagnames=${tagnames+${tagnames},}CXX 703 704tagnames=${tagnames+${tagnames},}F77 705 706exec 7<&0 </dev/null 6>&1 707 708# Name of the host. 709# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 710# so uname gets run too. 711ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 712 713# 714# Initializations. 715# 716ac_default_prefix=/usr/local 717ac_clean_files= 718ac_config_libobj_dir=. 719LIBOBJS= 720cross_compiling=no 721subdirs= 722MFLAGS= 723MAKEFLAGS= 724SHELL=${CONFIG_SHELL-/bin/sh} 725 726# Identity of this package. 727PACKAGE_NAME= 728PACKAGE_TARNAME= 729PACKAGE_VERSION= 730PACKAGE_STRING= 731PACKAGE_BUGREPORT= 732 733ac_unique_file="configure.ac" 734# Factoring default headers for most tests. 735ac_includes_default="\ 736#include <stdio.h> 737#ifdef HAVE_SYS_TYPES_H 738# include <sys/types.h> 739#endif 740#ifdef HAVE_SYS_STAT_H 741# include <sys/stat.h> 742#endif 743#ifdef STDC_HEADERS 744# include <stdlib.h> 745# include <stddef.h> 746#else 747# ifdef HAVE_STDLIB_H 748# include <stdlib.h> 749# endif 750#endif 751#ifdef HAVE_STRING_H 752# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 753# include <memory.h> 754# endif 755# include <string.h> 756#endif 757#ifdef HAVE_STRINGS_H 758# include <strings.h> 759#endif 760#ifdef HAVE_INTTYPES_H 761# include <inttypes.h> 762#endif 763#ifdef HAVE_STDINT_H 764# include <stdint.h> 765#endif 766#ifdef HAVE_UNISTD_H 767# include <unistd.h> 768#endif" 769 770ac_subst_vars='SHELL 771PATH_SEPARATOR 772PACKAGE_NAME 773PACKAGE_TARNAME 774PACKAGE_VERSION 775PACKAGE_STRING 776PACKAGE_BUGREPORT 777exec_prefix 778prefix 779program_transform_name 780bindir 781sbindir 782libexecdir 783datarootdir 784datadir 785sysconfdir 786sharedstatedir 787localstatedir 788includedir 789oldincludedir 790docdir 791infodir 792htmldir 793dvidir 794pdfdir 795psdir 796libdir 797localedir 798mandir 799DEFS 800ECHO_C 801ECHO_N 802ECHO_T 803LIBS 804build_alias 805host_alias 806target_alias 807INSTALL_PROGRAM 808INSTALL_SCRIPT 809INSTALL_DATA 810am__isrc 811CYGPATH_W 812PACKAGE 813VERSION 814ACLOCAL 815AUTOCONF 816AUTOMAKE 817AUTOHEADER 818MAKEINFO 819install_sh 820STRIP 821INSTALL_STRIP_PROGRAM 822mkdir_p 823AWK 824SET_MAKE 825am__leading_dot 826AMTAR 827am__tar 828am__untar 829CC 830CFLAGS 831LDFLAGS 832CPPFLAGS 833ac_ct_CC 834EXEEXT 835OBJEXT 836DEPDIR 837am__include 838am__quote 839AMDEP_TRUE 840AMDEP_FALSE 841AMDEPBACKSLASH 842CCDEPMODE 843am__fastdepCC_TRUE 844am__fastdepCC_FALSE 845build 846build_cpu 847build_vendor 848build_os 849host 850host_cpu 851host_vendor 852host_os 853GREP 854EGREP 855LN_S 856ECHO 857AR 858RANLIB 859CPP 860CXX 861CXXFLAGS 862ac_ct_CXX 863CXXDEPMODE 864am__fastdepCXX_TRUE 865am__fastdepCXX_FALSE 866CXXCPP 867F77 868FFLAGS 869ac_ct_F77 870LIBTOOL 871LIBRPATHX 872LTLIBRPATHX 873global_top_auxdir 874LIBOBJS 875LTLIBOBJS' 876ac_subst_files='' 877 ac_precious_vars='build_alias 878host_alias 879target_alias 880CC 881CFLAGS 882LDFLAGS 883LIBS 884CPPFLAGS 885CPP 886CXX 887CXXFLAGS 888CCC 889CXXCPP 890F77 891FFLAGS' 892 893 894# Initialize some variables set by options. 895ac_init_help= 896ac_init_version=false 897# The variables have the same names as the options, with 898# dashes changed to underlines. 899cache_file=/dev/null 900exec_prefix=NONE 901no_create= 902no_recursion= 903prefix=NONE 904program_prefix=NONE 905program_suffix=NONE 906program_transform_name=s,x,x, 907silent= 908site= 909srcdir= 910verbose= 911x_includes=NONE 912x_libraries=NONE 913 914# Installation directory options. 915# These are left unexpanded so users can "make install exec_prefix=/foo" 916# and all the variables that are supposed to be based on exec_prefix 917# by default will actually change. 918# Use braces instead of parens because sh, perl, etc. also accept them. 919# (The list follows the same order as the GNU Coding Standards.) 920bindir='${exec_prefix}/bin' 921sbindir='${exec_prefix}/sbin' 922libexecdir='${exec_prefix}/libexec' 923datarootdir='${prefix}/share' 924datadir='${datarootdir}' 925sysconfdir='${prefix}/etc' 926sharedstatedir='${prefix}/com' 927localstatedir='${prefix}/var' 928includedir='${prefix}/include' 929oldincludedir='/usr/include' 930docdir='${datarootdir}/doc/${PACKAGE}' 931infodir='${datarootdir}/info' 932htmldir='${docdir}' 933dvidir='${docdir}' 934pdfdir='${docdir}' 935psdir='${docdir}' 936libdir='${exec_prefix}/lib' 937localedir='${datarootdir}/locale' 938mandir='${datarootdir}/man' 939 940ac_prev= 941ac_dashdash= 942for ac_option 943do 944 # If the previous option needs an argument, assign it. 945 if test -n "$ac_prev"; then 946 eval $ac_prev=\$ac_option 947 ac_prev= 948 continue 949 fi 950 951 case $ac_option in 952 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 953 *) ac_optarg=yes ;; 954 esac 955 956 # Accept the important Cygnus configure options, so we can diagnose typos. 957 958 case $ac_dashdash$ac_option in 959 --) 960 ac_dashdash=yes ;; 961 962 -bindir | --bindir | --bindi | --bind | --bin | --bi) 963 ac_prev=bindir ;; 964 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 965 bindir=$ac_optarg ;; 966 967 -build | --build | --buil | --bui | --bu) 968 ac_prev=build_alias ;; 969 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 970 build_alias=$ac_optarg ;; 971 972 -cache-file | --cache-file | --cache-fil | --cache-fi \ 973 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 974 ac_prev=cache_file ;; 975 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 976 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 977 cache_file=$ac_optarg ;; 978 979 --config-cache | -C) 980 cache_file=config.cache ;; 981 982 -datadir | --datadir | --datadi | --datad) 983 ac_prev=datadir ;; 984 -datadir=* | --datadir=* | --datadi=* | --datad=*) 985 datadir=$ac_optarg ;; 986 987 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 988 | --dataroo | --dataro | --datar) 989 ac_prev=datarootdir ;; 990 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 991 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 992 datarootdir=$ac_optarg ;; 993 994 -disable-* | --disable-*) 995 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 996 # Reject names that are not valid shell variable names. 997 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 998 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 999 { (exit 1); exit 1; }; } 1000 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1001 eval enable_$ac_feature=no ;; 1002 1003 -docdir | --docdir | --docdi | --doc | --do) 1004 ac_prev=docdir ;; 1005 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1006 docdir=$ac_optarg ;; 1007 1008 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1009 ac_prev=dvidir ;; 1010 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1011 dvidir=$ac_optarg ;; 1012 1013 -enable-* | --enable-*) 1014 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1015 # Reject names that are not valid shell variable names. 1016 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1017 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1018 { (exit 1); exit 1; }; } 1019 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1020 eval enable_$ac_feature=\$ac_optarg ;; 1021 1022 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1023 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1024 | --exec | --exe | --ex) 1025 ac_prev=exec_prefix ;; 1026 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1027 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1028 | --exec=* | --exe=* | --ex=*) 1029 exec_prefix=$ac_optarg ;; 1030 1031 -gas | --gas | --ga | --g) 1032 # Obsolete; use --with-gas. 1033 with_gas=yes ;; 1034 1035 -help | --help | --hel | --he | -h) 1036 ac_init_help=long ;; 1037 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1038 ac_init_help=recursive ;; 1039 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1040 ac_init_help=short ;; 1041 1042 -host | --host | --hos | --ho) 1043 ac_prev=host_alias ;; 1044 -host=* | --host=* | --hos=* | --ho=*) 1045 host_alias=$ac_optarg ;; 1046 1047 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1048 ac_prev=htmldir ;; 1049 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1050 | --ht=*) 1051 htmldir=$ac_optarg ;; 1052 1053 -includedir | --includedir | --includedi | --included | --include \ 1054 | --includ | --inclu | --incl | --inc) 1055 ac_prev=includedir ;; 1056 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1057 | --includ=* | --inclu=* | --incl=* | --inc=*) 1058 includedir=$ac_optarg ;; 1059 1060 -infodir | --infodir | --infodi | --infod | --info | --inf) 1061 ac_prev=infodir ;; 1062 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1063 infodir=$ac_optarg ;; 1064 1065 -libdir | --libdir | --libdi | --libd) 1066 ac_prev=libdir ;; 1067 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1068 libdir=$ac_optarg ;; 1069 1070 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1071 | --libexe | --libex | --libe) 1072 ac_prev=libexecdir ;; 1073 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1074 | --libexe=* | --libex=* | --libe=*) 1075 libexecdir=$ac_optarg ;; 1076 1077 -localedir | --localedir | --localedi | --localed | --locale) 1078 ac_prev=localedir ;; 1079 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1080 localedir=$ac_optarg ;; 1081 1082 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1083 | --localstate | --localstat | --localsta | --localst | --locals) 1084 ac_prev=localstatedir ;; 1085 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1086 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1087 localstatedir=$ac_optarg ;; 1088 1089 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1090 ac_prev=mandir ;; 1091 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1092 mandir=$ac_optarg ;; 1093 1094 -nfp | --nfp | --nf) 1095 # Obsolete; use --without-fp. 1096 with_fp=no ;; 1097 1098 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1099 | --no-cr | --no-c | -n) 1100 no_create=yes ;; 1101 1102 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1103 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1104 no_recursion=yes ;; 1105 1106 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1107 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1108 | --oldin | --oldi | --old | --ol | --o) 1109 ac_prev=oldincludedir ;; 1110 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1111 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1112 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1113 oldincludedir=$ac_optarg ;; 1114 1115 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1116 ac_prev=prefix ;; 1117 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1118 prefix=$ac_optarg ;; 1119 1120 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1121 | --program-pre | --program-pr | --program-p) 1122 ac_prev=program_prefix ;; 1123 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1124 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1125 program_prefix=$ac_optarg ;; 1126 1127 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1128 | --program-suf | --program-su | --program-s) 1129 ac_prev=program_suffix ;; 1130 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1131 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1132 program_suffix=$ac_optarg ;; 1133 1134 -program-transform-name | --program-transform-name \ 1135 | --program-transform-nam | --program-transform-na \ 1136 | --program-transform-n | --program-transform- \ 1137 | --program-transform | --program-transfor \ 1138 | --program-transfo | --program-transf \ 1139 | --program-trans | --program-tran \ 1140 | --progr-tra | --program-tr | --program-t) 1141 ac_prev=program_transform_name ;; 1142 -program-transform-name=* | --program-transform-name=* \ 1143 | --program-transform-nam=* | --program-transform-na=* \ 1144 | --program-transform-n=* | --program-transform-=* \ 1145 | --program-transform=* | --program-transfor=* \ 1146 | --program-transfo=* | --program-transf=* \ 1147 | --program-trans=* | --program-tran=* \ 1148 | --progr-tra=* | --program-tr=* | --program-t=*) 1149 program_transform_name=$ac_optarg ;; 1150 1151 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1152 ac_prev=pdfdir ;; 1153 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1154 pdfdir=$ac_optarg ;; 1155 1156 -psdir | --psdir | --psdi | --psd | --ps) 1157 ac_prev=psdir ;; 1158 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1159 psdir=$ac_optarg ;; 1160 1161 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1162 | -silent | --silent | --silen | --sile | --sil) 1163 silent=yes ;; 1164 1165 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1166 ac_prev=sbindir ;; 1167 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1168 | --sbi=* | --sb=*) 1169 sbindir=$ac_optarg ;; 1170 1171 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1172 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1173 | --sharedst | --shareds | --shared | --share | --shar \ 1174 | --sha | --sh) 1175 ac_prev=sharedstatedir ;; 1176 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1177 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1178 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1179 | --sha=* | --sh=*) 1180 sharedstatedir=$ac_optarg ;; 1181 1182 -site | --site | --sit) 1183 ac_prev=site ;; 1184 -site=* | --site=* | --sit=*) 1185 site=$ac_optarg ;; 1186 1187 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1188 ac_prev=srcdir ;; 1189 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1190 srcdir=$ac_optarg ;; 1191 1192 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1193 | --syscon | --sysco | --sysc | --sys | --sy) 1194 ac_prev=sysconfdir ;; 1195 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1196 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1197 sysconfdir=$ac_optarg ;; 1198 1199 -target | --target | --targe | --targ | --tar | --ta | --t) 1200 ac_prev=target_alias ;; 1201 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1202 target_alias=$ac_optarg ;; 1203 1204 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1205 verbose=yes ;; 1206 1207 -version | --version | --versio | --versi | --vers | -V) 1208 ac_init_version=: ;; 1209 1210 -with-* | --with-*) 1211 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1212 # Reject names that are not valid shell variable names. 1213 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1214 { echo "$as_me: error: invalid package name: $ac_package" >&2 1215 { (exit 1); exit 1; }; } 1216 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1217 eval with_$ac_package=\$ac_optarg ;; 1218 1219 -without-* | --without-*) 1220 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1221 # Reject names that are not valid shell variable names. 1222 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1223 { echo "$as_me: error: invalid package name: $ac_package" >&2 1224 { (exit 1); exit 1; }; } 1225 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1226 eval with_$ac_package=no ;; 1227 1228 --x) 1229 # Obsolete; use --with-x. 1230 with_x=yes ;; 1231 1232 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1233 | --x-incl | --x-inc | --x-in | --x-i) 1234 ac_prev=x_includes ;; 1235 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1236 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1237 x_includes=$ac_optarg ;; 1238 1239 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1240 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1241 ac_prev=x_libraries ;; 1242 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1243 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1244 x_libraries=$ac_optarg ;; 1245 1246 -*) { echo "$as_me: error: unrecognized option: $ac_option 1247Try \`$0 --help' for more information." >&2 1248 { (exit 1); exit 1; }; } 1249 ;; 1250 1251 *=*) 1252 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1253 # Reject names that are not valid shell variable names. 1254 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1255 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1256 { (exit 1); exit 1; }; } 1257 eval $ac_envvar=\$ac_optarg 1258 export $ac_envvar ;; 1259 1260 *) 1261 # FIXME: should be removed in autoconf 3.0. 1262 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1263 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1264 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1265 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1266 ;; 1267 1268 esac 1269done 1270 1271if test -n "$ac_prev"; then 1272 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1273 { echo "$as_me: error: missing argument to $ac_option" >&2 1274 { (exit 1); exit 1; }; } 1275fi 1276 1277# Be sure to have absolute directory names. 1278for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1279 datadir sysconfdir sharedstatedir localstatedir includedir \ 1280 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1281 libdir localedir mandir 1282do 1283 eval ac_val=\$$ac_var 1284 case $ac_val in 1285 [\\/$]* | ?:[\\/]* ) continue;; 1286 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1287 esac 1288 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1289 { (exit 1); exit 1; }; } 1290done 1291 1292# There might be people who depend on the old broken behavior: `$host' 1293# used to hold the argument of --host etc. 1294# FIXME: To remove some day. 1295build=$build_alias 1296host=$host_alias 1297target=$target_alias 1298 1299# FIXME: To remove some day. 1300if test "x$host_alias" != x; then 1301 if test "x$build_alias" = x; then 1302 cross_compiling=maybe 1303 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1304 If a cross compiler is detected then cross compile mode will be used." >&2 1305 elif test "x$build_alias" != "x$host_alias"; then 1306 cross_compiling=yes 1307 fi 1308fi 1309 1310ac_tool_prefix= 1311test -n "$host_alias" && ac_tool_prefix=$host_alias- 1312 1313test "$silent" = yes && exec 6>/dev/null 1314 1315 1316ac_pwd=`pwd` && test -n "$ac_pwd" && 1317ac_ls_di=`ls -di .` && 1318ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1319 { echo "$as_me: error: Working directory cannot be determined" >&2 1320 { (exit 1); exit 1; }; } 1321test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1322 { echo "$as_me: error: pwd does not report name of working directory" >&2 1323 { (exit 1); exit 1; }; } 1324 1325 1326# Find the source files, if location was not specified. 1327if test -z "$srcdir"; then 1328 ac_srcdir_defaulted=yes 1329 # Try the directory containing this script, then the parent directory. 1330 ac_confdir=`$as_dirname -- "$0" || 1331$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1332 X"$0" : 'X\(//\)[^/]' \| \ 1333 X"$0" : 'X\(//\)$' \| \ 1334 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1335echo X"$0" | 1336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1337 s//\1/ 1338 q 1339 } 1340 /^X\(\/\/\)[^/].*/{ 1341 s//\1/ 1342 q 1343 } 1344 /^X\(\/\/\)$/{ 1345 s//\1/ 1346 q 1347 } 1348 /^X\(\/\).*/{ 1349 s//\1/ 1350 q 1351 } 1352 s/.*/./; q'` 1353 srcdir=$ac_confdir 1354 if test ! -r "$srcdir/$ac_unique_file"; then 1355 srcdir=.. 1356 fi 1357else 1358 ac_srcdir_defaulted=no 1359fi 1360if test ! -r "$srcdir/$ac_unique_file"; then 1361 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1362 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1363 { (exit 1); exit 1; }; } 1364fi 1365ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1366ac_abs_confdir=`( 1367 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1368 { (exit 1); exit 1; }; } 1369 pwd)` 1370# When building in place, set srcdir=. 1371if test "$ac_abs_confdir" = "$ac_pwd"; then 1372 srcdir=. 1373fi 1374# Remove unnecessary trailing slashes from srcdir. 1375# Double slashes in file names in object file debugging info 1376# mess up M-x gdb in Emacs. 1377case $srcdir in 1378*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1379esac 1380for ac_var in $ac_precious_vars; do 1381 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1382 eval ac_env_${ac_var}_value=\$${ac_var} 1383 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1384 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1385done 1386 1387# 1388# Report the --help message. 1389# 1390if test "$ac_init_help" = "long"; then 1391 # Omit some internal or obsolete options to make the list less imposing. 1392 # This message is too long to be a string in the A/UX 3.1 sh. 1393 cat <<_ACEOF 1394\`configure' configures this package to adapt to many kinds of systems. 1395 1396Usage: $0 [OPTION]... [VAR=VALUE]... 1397 1398To assign environment variables (e.g., CC, CFLAGS...), specify them as 1399VAR=VALUE. See below for descriptions of some of the useful variables. 1400 1401Defaults for the options are specified in brackets. 1402 1403Configuration: 1404 -h, --help display this help and exit 1405 --help=short display options specific to this package 1406 --help=recursive display the short help of all the included packages 1407 -V, --version display version information and exit 1408 -q, --quiet, --silent do not print \`checking...' messages 1409 --cache-file=FILE cache test results in FILE [disabled] 1410 -C, --config-cache alias for \`--cache-file=config.cache' 1411 -n, --no-create do not create output files 1412 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1413 1414Installation directories: 1415 --prefix=PREFIX install architecture-independent files in PREFIX 1416 [$ac_default_prefix] 1417 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1418 [PREFIX] 1419 1420By default, \`make install' will install all the files in 1421\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1422an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1423for instance \`--prefix=\$HOME'. 1424 1425For better control, use the options below. 1426 1427Fine tuning of the installation directories: 1428 --bindir=DIR user executables [EPREFIX/bin] 1429 --sbindir=DIR system admin executables [EPREFIX/sbin] 1430 --libexecdir=DIR program executables [EPREFIX/libexec] 1431 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1432 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1433 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1434 --libdir=DIR object code libraries [EPREFIX/lib] 1435 --includedir=DIR C header files [PREFIX/include] 1436 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1437 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1438 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1439 --infodir=DIR info documentation [DATAROOTDIR/info] 1440 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1441 --mandir=DIR man documentation [DATAROOTDIR/man] 1442 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1443 --htmldir=DIR html documentation [DOCDIR] 1444 --dvidir=DIR dvi documentation [DOCDIR] 1445 --pdfdir=DIR pdf documentation [DOCDIR] 1446 --psdir=DIR ps documentation [DOCDIR] 1447_ACEOF 1448 1449 cat <<\_ACEOF 1450 1451Program names: 1452 --program-prefix=PREFIX prepend PREFIX to installed program names 1453 --program-suffix=SUFFIX append SUFFIX to installed program names 1454 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1455 1456System types: 1457 --build=BUILD configure for building on BUILD [guessed] 1458 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1459_ACEOF 1460fi 1461 1462if test -n "$ac_init_help"; then 1463 1464 cat <<\_ACEOF 1465 1466Optional Features: 1467 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1468 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1469 --disable-dependency-tracking speeds up one-time build 1470 --enable-dependency-tracking do not reject slow dependency extractors 1471 --enable-shared[=PKGS] build shared libraries [default=yes] 1472 --enable-static[=PKGS] build static libraries [default=yes] 1473 --enable-fast-install[=PKGS] 1474 optimize for fast installation [default=yes] 1475 --disable-libtool-lock avoid locking (might break parallel builds) 1476 --disable-rpath do not hardcode runtime library paths 1477 1478Optional Packages: 1479 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1480 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1481 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1482 --with-pic try to use only PIC/non-PIC objects [default=use 1483 both] 1484 --with-tags[=TAGS] include additional configurations [automatic] 1485 --with-gnu-ld assume the C compiler uses GNU ld default=no 1486 --with-librpathx-prefix[=DIR] search for librpathx in DIR/include and DIR/lib 1487 --without-librpathx-prefix don't search for librpathx in includedir and libdir 1488 1489Some influential environment variables: 1490 CC C compiler command 1491 CFLAGS C compiler flags 1492 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1493 nonstandard directory <lib dir> 1494 LIBS libraries to pass to the linker, e.g. -l<library> 1495 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1496 you have headers in a nonstandard directory <include dir> 1497 CPP C preprocessor 1498 CXX C++ compiler command 1499 CXXFLAGS C++ compiler flags 1500 CXXCPP C++ preprocessor 1501 F77 Fortran 77 compiler command 1502 FFLAGS Fortran 77 compiler flags 1503 1504Use these variables to override the choices made by `configure' or to help 1505it to find libraries and programs with nonstandard names/locations. 1506 1507_ACEOF 1508ac_status=$? 1509fi 1510 1511if test "$ac_init_help" = "recursive"; then 1512 # If there are subdirs, report their specific --help. 1513 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1514 test -d "$ac_dir" || continue 1515 ac_builddir=. 1516 1517case "$ac_dir" in 1518.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1519*) 1520 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1521 # A ".." for each directory in $ac_dir_suffix. 1522 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1523 case $ac_top_builddir_sub in 1524 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1525 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1526 esac ;; 1527esac 1528ac_abs_top_builddir=$ac_pwd 1529ac_abs_builddir=$ac_pwd$ac_dir_suffix 1530# for backward compatibility: 1531ac_top_builddir=$ac_top_build_prefix 1532 1533case $srcdir in 1534 .) # We are building in place. 1535 ac_srcdir=. 1536 ac_top_srcdir=$ac_top_builddir_sub 1537 ac_abs_top_srcdir=$ac_pwd ;; 1538 [\\/]* | ?:[\\/]* ) # Absolute name. 1539 ac_srcdir=$srcdir$ac_dir_suffix; 1540 ac_top_srcdir=$srcdir 1541 ac_abs_top_srcdir=$srcdir ;; 1542 *) # Relative name. 1543 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1544 ac_top_srcdir=$ac_top_build_prefix$srcdir 1545 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1546esac 1547ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1548 1549 cd "$ac_dir" || { ac_status=$?; continue; } 1550 # Check for guested configure. 1551 if test -f "$ac_srcdir/configure.gnu"; then 1552 echo && 1553 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1554 elif test -f "$ac_srcdir/configure"; then 1555 echo && 1556 $SHELL "$ac_srcdir/configure" --help=recursive 1557 else 1558 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1559 fi || ac_status=$? 1560 cd "$ac_pwd" || { ac_status=$?; break; } 1561 done 1562fi 1563 1564test -n "$ac_init_help" && exit $ac_status 1565if $ac_init_version; then 1566 cat <<\_ACEOF 1567configure 1568generated by GNU Autoconf 2.61 1569 1570Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 15712002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1572This configure script is free software; the Free Software Foundation 1573gives unlimited permission to copy, distribute and modify it. 1574_ACEOF 1575 exit 1576fi 1577cat >config.log <<_ACEOF 1578This file contains any messages produced by compilers while 1579running configure, to aid debugging if configure makes a mistake. 1580 1581It was created by $as_me, which was 1582generated by GNU Autoconf 2.61. Invocation command line was 1583 1584 $ $0 $@ 1585 1586_ACEOF 1587exec 5>>config.log 1588{ 1589cat <<_ASUNAME 1590## --------- ## 1591## Platform. ## 1592## --------- ## 1593 1594hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1595uname -m = `(uname -m) 2>/dev/null || echo unknown` 1596uname -r = `(uname -r) 2>/dev/null || echo unknown` 1597uname -s = `(uname -s) 2>/dev/null || echo unknown` 1598uname -v = `(uname -v) 2>/dev/null || echo unknown` 1599 1600/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1601/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1602 1603/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1604/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1605/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1606/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1607/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1608/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1609/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1610 1611_ASUNAME 1612 1613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1614for as_dir in $PATH 1615do 1616 IFS=$as_save_IFS 1617 test -z "$as_dir" && as_dir=. 1618 echo "PATH: $as_dir" 1619done 1620IFS=$as_save_IFS 1621 1622} >&5 1623 1624cat >&5 <<_ACEOF 1625 1626 1627## ----------- ## 1628## Core tests. ## 1629## ----------- ## 1630 1631_ACEOF 1632 1633 1634# Keep a trace of the command line. 1635# Strip out --no-create and --no-recursion so they do not pile up. 1636# Strip out --silent because we don't want to record it for future runs. 1637# Also quote any args containing shell meta-characters. 1638# Make two passes to allow for proper duplicate-argument suppression. 1639ac_configure_args= 1640ac_configure_args0= 1641ac_configure_args1= 1642ac_must_keep_next=false 1643for ac_pass in 1 2 1644do 1645 for ac_arg 1646 do 1647 case $ac_arg in 1648 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1649 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1650 | -silent | --silent | --silen | --sile | --sil) 1651 continue ;; 1652 *\'*) 1653 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1654 esac 1655 case $ac_pass in 1656 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1657 2) 1658 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1659 if test $ac_must_keep_next = true; then 1660 ac_must_keep_next=false # Got value, back to normal. 1661 else 1662 case $ac_arg in 1663 *=* | --config-cache | -C | -disable-* | --disable-* \ 1664 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1665 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1666 | -with-* | --with-* | -without-* | --without-* | --x) 1667 case "$ac_configure_args0 " in 1668 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1669 esac 1670 ;; 1671 -* ) ac_must_keep_next=true ;; 1672 esac 1673 fi 1674 ac_configure_args="$ac_configure_args '$ac_arg'" 1675 ;; 1676 esac 1677 done 1678done 1679$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1680$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1681 1682# When interrupted or exit'd, cleanup temporary files, and complete 1683# config.log. We remove comments because anyway the quotes in there 1684# would cause problems or look ugly. 1685# WARNING: Use '\'' to represent an apostrophe within the trap. 1686# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1687trap 'exit_status=$? 1688 # Save into config.log some information that might help in debugging. 1689 { 1690 echo 1691 1692 cat <<\_ASBOX 1693## ---------------- ## 1694## Cache variables. ## 1695## ---------------- ## 1696_ASBOX 1697 echo 1698 # The following way of writing the cache mishandles newlines in values, 1699( 1700 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1701 eval ac_val=\$$ac_var 1702 case $ac_val in #( 1703 *${as_nl}*) 1704 case $ac_var in #( 1705 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1706echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1707 esac 1708 case $ac_var in #( 1709 _ | IFS | as_nl) ;; #( 1710 *) $as_unset $ac_var ;; 1711 esac ;; 1712 esac 1713 done 1714 (set) 2>&1 | 1715 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1716 *${as_nl}ac_space=\ *) 1717 sed -n \ 1718 "s/'\''/'\''\\\\'\'''\''/g; 1719 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1720 ;; #( 1721 *) 1722 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1723 ;; 1724 esac | 1725 sort 1726) 1727 echo 1728 1729 cat <<\_ASBOX 1730## ----------------- ## 1731## Output variables. ## 1732## ----------------- ## 1733_ASBOX 1734 echo 1735 for ac_var in $ac_subst_vars 1736 do 1737 eval ac_val=\$$ac_var 1738 case $ac_val in 1739 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1740 esac 1741 echo "$ac_var='\''$ac_val'\''" 1742 done | sort 1743 echo 1744 1745 if test -n "$ac_subst_files"; then 1746 cat <<\_ASBOX 1747## ------------------- ## 1748## File substitutions. ## 1749## ------------------- ## 1750_ASBOX 1751 echo 1752 for ac_var in $ac_subst_files 1753 do 1754 eval ac_val=\$$ac_var 1755 case $ac_val in 1756 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1757 esac 1758 echo "$ac_var='\''$ac_val'\''" 1759 done | sort 1760 echo 1761 fi 1762 1763 if test -s confdefs.h; then 1764 cat <<\_ASBOX 1765## ----------- ## 1766## confdefs.h. ## 1767## ----------- ## 1768_ASBOX 1769 echo 1770 cat confdefs.h 1771 echo 1772 fi 1773 test "$ac_signal" != 0 && 1774 echo "$as_me: caught signal $ac_signal" 1775 echo "$as_me: exit $exit_status" 1776 } >&5 1777 rm -f core *.core core.conftest.* && 1778 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1779 exit $exit_status 1780' 0 1781for ac_signal in 1 2 13 15; do 1782 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1783done 1784ac_signal=0 1785 1786# confdefs.h avoids OS command line length limits that DEFS can exceed. 1787rm -f -r conftest* confdefs.h 1788 1789# Predefined preprocessor variables. 1790 1791cat >>confdefs.h <<_ACEOF 1792#define PACKAGE_NAME "$PACKAGE_NAME" 1793_ACEOF 1794 1795 1796cat >>confdefs.h <<_ACEOF 1797#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1798_ACEOF 1799 1800 1801cat >>confdefs.h <<_ACEOF 1802#define PACKAGE_VERSION "$PACKAGE_VERSION" 1803_ACEOF 1804 1805 1806cat >>confdefs.h <<_ACEOF 1807#define PACKAGE_STRING "$PACKAGE_STRING" 1808_ACEOF 1809 1810 1811cat >>confdefs.h <<_ACEOF 1812#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1813_ACEOF 1814 1815 1816# Let the site file select an alternate cache file if it wants to. 1817# Prefer explicitly selected file to automatically selected ones. 1818if test -n "$CONFIG_SITE"; then 1819 set x "$CONFIG_SITE" 1820elif test "x$prefix" != xNONE; then 1821 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1822else 1823 set x "$ac_default_prefix/share/config.site" \ 1824 "$ac_default_prefix/etc/config.site" 1825fi 1826shift 1827for ac_site_file 1828do 1829 if test -r "$ac_site_file"; then 1830 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1831echo "$as_me: loading site script $ac_site_file" >&6;} 1832 sed 's/^/| /' "$ac_site_file" >&5 1833 . "$ac_site_file" 1834 fi 1835done 1836 1837if test -r "$cache_file"; then 1838 # Some versions of bash will fail to source /dev/null (special 1839 # files actually), so we avoid doing that. 1840 if test -f "$cache_file"; then 1841 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1842echo "$as_me: loading cache $cache_file" >&6;} 1843 case $cache_file in 1844 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1845 *) . "./$cache_file";; 1846 esac 1847 fi 1848else 1849 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1850echo "$as_me: creating cache $cache_file" >&6;} 1851 >$cache_file 1852fi 1853 1854# Check that the precious variables saved in the cache have kept the same 1855# value. 1856ac_cache_corrupted=false 1857for ac_var in $ac_precious_vars; do 1858 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1859 eval ac_new_set=\$ac_env_${ac_var}_set 1860 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1861 eval ac_new_val=\$ac_env_${ac_var}_value 1862 case $ac_old_set,$ac_new_set in 1863 set,) 1864 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1865echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1866 ac_cache_corrupted=: ;; 1867 ,set) 1868 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1869echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1870 ac_cache_corrupted=: ;; 1871 ,);; 1872 *) 1873 if test "x$ac_old_val" != "x$ac_new_val"; then 1874 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1875echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1876 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1877echo "$as_me: former value: $ac_old_val" >&2;} 1878 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1879echo "$as_me: current value: $ac_new_val" >&2;} 1880 ac_cache_corrupted=: 1881 fi;; 1882 esac 1883 # Pass precious variables to config.status. 1884 if test "$ac_new_set" = set; then 1885 case $ac_new_val in 1886 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1887 *) ac_arg=$ac_var=$ac_new_val ;; 1888 esac 1889 case " $ac_configure_args " in 1890 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1891 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1892 esac 1893 fi 1894done 1895if $ac_cache_corrupted; then 1896 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1897echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1898 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1899echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1900 { (exit 1); exit 1; }; } 1901fi 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919ac_ext=c 1920ac_cpp='$CPP $CPPFLAGS' 1921ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1922ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1923ac_compiler_gnu=$ac_cv_c_compiler_gnu 1924 1925 1926ac_aux_dir= 1927for ac_dir in ../../../build-aux "$srcdir"/../../../build-aux; do 1928 if test -f "$ac_dir/install-sh"; then 1929 ac_aux_dir=$ac_dir 1930 ac_install_sh="$ac_aux_dir/install-sh -c" 1931 break 1932 elif test -f "$ac_dir/install.sh"; then 1933 ac_aux_dir=$ac_dir 1934 ac_install_sh="$ac_aux_dir/install.sh -c" 1935 break 1936 elif test -f "$ac_dir/shtool"; then 1937 ac_aux_dir=$ac_dir 1938 ac_install_sh="$ac_aux_dir/shtool install -c" 1939 break 1940 fi 1941done 1942if test -z "$ac_aux_dir"; then 1943 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../../../build-aux \"$srcdir\"/../../../build-aux" >&5 1944echo "$as_me: error: cannot find install-sh or install.sh in ../../../build-aux \"$srcdir\"/../../../build-aux" >&2;} 1945 { (exit 1); exit 1; }; } 1946fi 1947 1948# These three variables are undocumented and unsupported, 1949# and are intended to be withdrawn in a future Autoconf release. 1950# They can cause serious problems if a builder's source tree is in a directory 1951# whose full name contains unusual characters. 1952ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1953ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1954ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1955 1956 1957am__api_version='1.10' 1958 1959# Find a good install program. We prefer a C program (faster), 1960# so one script is as good as another. But avoid the broken or 1961# incompatible versions: 1962# SysV /etc/install, /usr/sbin/install 1963# SunOS /usr/etc/install 1964# IRIX /sbin/install 1965# AIX /bin/install 1966# AmigaOS /C/install, which installs bootblocks on floppy discs 1967# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1968# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1969# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1970# OS/2's system install, which has a completely different semantic 1971# ./install, which can be erroneously created by make from ./install.sh. 1972{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1973echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 1974if test -z "$INSTALL"; then 1975if test "${ac_cv_path_install+set}" = set; then 1976 echo $ECHO_N "(cached) $ECHO_C" >&6 1977else 1978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1979for as_dir in $PATH 1980do 1981 IFS=$as_save_IFS 1982 test -z "$as_dir" && as_dir=. 1983 # Account for people who put trailing slashes in PATH elements. 1984case $as_dir/ in 1985 ./ | .// | /cC/* | \ 1986 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1987 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1988 /usr/ucb/* ) ;; 1989 *) 1990 # OSF1 and SCO ODT 3.0 have their own names for install. 1991 # Don't use installbsd from OSF since it installs stuff as root 1992 # by default. 1993 for ac_prog in ginstall scoinst install; do 1994 for ac_exec_ext in '' $ac_executable_extensions; do 1995 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 1996 if test $ac_prog = install && 1997 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1998 # AIX install. It has an incompatible calling convention. 1999 : 2000 elif test $ac_prog = install && 2001 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2002 # program-specific install script used by HP pwplus--don't use. 2003 : 2004 else 2005 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2006 break 3 2007 fi 2008 fi 2009 done 2010 done 2011 ;; 2012esac 2013done 2014IFS=$as_save_IFS 2015 2016 2017fi 2018 if test "${ac_cv_path_install+set}" = set; then 2019 INSTALL=$ac_cv_path_install 2020 else 2021 # As a last resort, use the slow shell script. Don't cache a 2022 # value for INSTALL within a source directory, because that will 2023 # break other packages using the cache if that directory is 2024 # removed, or if the value is a relative name. 2025 INSTALL=$ac_install_sh 2026 fi 2027fi 2028{ echo "$as_me:$LINENO: result: $INSTALL" >&5 2029echo "${ECHO_T}$INSTALL" >&6; } 2030 2031# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2032# It thinks the first close brace ends the variable substitution. 2033test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2034 2035test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2036 2037test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2038 2039{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2040echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 2041# Just in case 2042sleep 1 2043echo timestamp > conftest.file 2044# Do `set' in a subshell so we don't clobber the current shell's 2045# arguments. Must try -L first in case configure is actually a 2046# symlink; some systems play weird games with the mod time of symlinks 2047# (eg FreeBSD returns the mod time of the symlink's containing 2048# directory). 2049if ( 2050 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2051 if test "$*" = "X"; then 2052 # -L didn't work. 2053 set X `ls -t $srcdir/configure conftest.file` 2054 fi 2055 rm -f conftest.file 2056 if test "$*" != "X $srcdir/configure conftest.file" \ 2057 && test "$*" != "X conftest.file $srcdir/configure"; then 2058 2059 # If neither matched, then we have a broken ls. This can happen 2060 # if, for instance, CONFIG_SHELL is bash and it inherits a 2061 # broken ls alias from the environment. This has actually 2062 # happened. Such a system could not be considered "sane". 2063 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2064alias in your environment" >&5 2065echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2066alias in your environment" >&2;} 2067 { (exit 1); exit 1; }; } 2068 fi 2069 2070 test "$2" = conftest.file 2071 ) 2072then 2073 # Ok. 2074 : 2075else 2076 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2077Check your system clock" >&5 2078echo "$as_me: error: newly created file is older than distributed files! 2079Check your system clock" >&2;} 2080 { (exit 1); exit 1; }; } 2081fi 2082{ echo "$as_me:$LINENO: result: yes" >&5 2083echo "${ECHO_T}yes" >&6; } 2084test "$program_prefix" != NONE && 2085 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2086# Use a double $ so make ignores it. 2087test "$program_suffix" != NONE && 2088 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2089# Double any \ or $. echo might interpret backslashes. 2090# By default was `s,x,x', remove it if useless. 2091cat <<\_ACEOF >conftest.sed 2092s/[\\$]/&&/g;s/;s,x,x,$// 2093_ACEOF 2094program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2095rm -f conftest.sed 2096 2097# expand $ac_aux_dir to an absolute path 2098am_aux_dir=`cd $ac_aux_dir && pwd` 2099 2100test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2101# Use eval to expand $SHELL 2102if eval "$MISSING --run true"; then 2103 am_missing_run="$MISSING --run " 2104else 2105 am_missing_run= 2106 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2107echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2108fi 2109 2110{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2111echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } 2112if test -z "$MKDIR_P"; then 2113 if test "${ac_cv_path_mkdir+set}" = set; then 2114 echo $ECHO_N "(cached) $ECHO_C" >&6 2115else 2116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2117for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2118do 2119 IFS=$as_save_IFS 2120 test -z "$as_dir" && as_dir=. 2121 for ac_prog in mkdir gmkdir; do 2122 for ac_exec_ext in '' $ac_executable_extensions; do 2123 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2124 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2125 'mkdir (GNU coreutils) '* | \ 2126 'mkdir (coreutils) '* | \ 2127 'mkdir (fileutils) '4.1*) 2128 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2129 break 3;; 2130 esac 2131 done 2132 done 2133done 2134IFS=$as_save_IFS 2135 2136fi 2137 2138 if test "${ac_cv_path_mkdir+set}" = set; then 2139 MKDIR_P="$ac_cv_path_mkdir -p" 2140 else 2141 # As a last resort, use the slow shell script. Don't cache a 2142 # value for MKDIR_P within a source directory, because that will 2143 # break other packages using the cache if that directory is 2144 # removed, or if the value is a relative name. 2145 test -d ./--version && rmdir ./--version 2146 MKDIR_P="$ac_install_sh -d" 2147 fi 2148fi 2149{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2150echo "${ECHO_T}$MKDIR_P" >&6; } 2151 2152mkdir_p="$MKDIR_P" 2153case $mkdir_p in 2154 [\\/$]* | ?:[\\/]*) ;; 2155 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2156esac 2157 2158for ac_prog in gawk mawk nawk awk 2159do 2160 # Extract the first word of "$ac_prog", so it can be a program name with args. 2161set dummy $ac_prog; ac_word=$2 2162{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2163echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2164if test "${ac_cv_prog_AWK+set}" = set; then 2165 echo $ECHO_N "(cached) $ECHO_C" >&6 2166else 2167 if test -n "$AWK"; then 2168 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2169else 2170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2171for as_dir in $PATH 2172do 2173 IFS=$as_save_IFS 2174 test -z "$as_dir" && as_dir=. 2175 for ac_exec_ext in '' $ac_executable_extensions; do 2176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2177 ac_cv_prog_AWK="$ac_prog" 2178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2179 break 2 2180 fi 2181done 2182done 2183IFS=$as_save_IFS 2184 2185fi 2186fi 2187AWK=$ac_cv_prog_AWK 2188if test -n "$AWK"; then 2189 { echo "$as_me:$LINENO: result: $AWK" >&5 2190echo "${ECHO_T}$AWK" >&6; } 2191else 2192 { echo "$as_me:$LINENO: result: no" >&5 2193echo "${ECHO_T}no" >&6; } 2194fi 2195 2196 2197 test -n "$AWK" && break 2198done 2199 2200{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2201echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2202set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2203if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2204 echo $ECHO_N "(cached) $ECHO_C" >&6 2205else 2206 cat >conftest.make <<\_ACEOF 2207SHELL = /bin/sh 2208all: 2209 @echo '@@@%%%=$(MAKE)=@@@%%%' 2210_ACEOF 2211# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2212case `${MAKE-make} -f conftest.make 2>/dev/null` in 2213 *@@@%%%=?*=@@@%%%*) 2214 eval ac_cv_prog_make_${ac_make}_set=yes;; 2215 *) 2216 eval ac_cv_prog_make_${ac_make}_set=no;; 2217esac 2218rm -f conftest.make 2219fi 2220if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2221 { echo "$as_me:$LINENO: result: yes" >&5 2222echo "${ECHO_T}yes" >&6; } 2223 SET_MAKE= 2224else 2225 { echo "$as_me:$LINENO: result: no" >&5 2226echo "${ECHO_T}no" >&6; } 2227 SET_MAKE="MAKE=${MAKE-make}" 2228fi 2229 2230rm -rf .tst 2>/dev/null 2231mkdir .tst 2>/dev/null 2232if test -d .tst; then 2233 am__leading_dot=. 2234else 2235 am__leading_dot=_ 2236fi 2237rmdir .tst 2>/dev/null 2238 2239if test "`cd $srcdir && pwd`" != "`pwd`"; then 2240 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2241 # is not polluted with repeated "-I." 2242 am__isrc=' -I$(srcdir)' 2243 # test to see if srcdir already configured 2244 if test -f $srcdir/config.status; then 2245 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2246echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2247 { (exit 1); exit 1; }; } 2248 fi 2249fi 2250 2251# test whether we have cygpath 2252if test -z "$CYGPATH_W"; then 2253 if (cygpath --version) >/dev/null 2>/dev/null; then 2254 CYGPATH_W='cygpath -w' 2255 else 2256 CYGPATH_W=echo 2257 fi 2258fi 2259 2260 2261# Define the identity of the package. 2262 PACKAGE=gettext_rpathy 2263 VERSION=0 2264 2265 2266cat >>confdefs.h <<_ACEOF 2267#define PACKAGE "$PACKAGE" 2268_ACEOF 2269 2270 2271cat >>confdefs.h <<_ACEOF 2272#define VERSION "$VERSION" 2273_ACEOF 2274 2275# Some tools Automake needs. 2276 2277ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2278 2279 2280AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2281 2282 2283AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2284 2285 2286AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2287 2288 2289MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2290 2291install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2292 2293# Installed binaries are usually stripped using `strip' when the user 2294# run `make install-strip'. However `strip' might not be the right 2295# tool to use in cross-compilation environments, therefore Automake 2296# will honor the `STRIP' environment variable to overrule this program. 2297if test "$cross_compiling" != no; then 2298 if test -n "$ac_tool_prefix"; then 2299 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2300set dummy ${ac_tool_prefix}strip; ac_word=$2 2301{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2302echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2303if test "${ac_cv_prog_STRIP+set}" = set; then 2304 echo $ECHO_N "(cached) $ECHO_C" >&6 2305else 2306 if test -n "$STRIP"; then 2307 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2308else 2309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2310for as_dir in $PATH 2311do 2312 IFS=$as_save_IFS 2313 test -z "$as_dir" && as_dir=. 2314 for ac_exec_ext in '' $ac_executable_extensions; do 2315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2316 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2318 break 2 2319 fi 2320done 2321done 2322IFS=$as_save_IFS 2323 2324fi 2325fi 2326STRIP=$ac_cv_prog_STRIP 2327if test -n "$STRIP"; then 2328 { echo "$as_me:$LINENO: result: $STRIP" >&5 2329echo "${ECHO_T}$STRIP" >&6; } 2330else 2331 { echo "$as_me:$LINENO: result: no" >&5 2332echo "${ECHO_T}no" >&6; } 2333fi 2334 2335 2336fi 2337if test -z "$ac_cv_prog_STRIP"; then 2338 ac_ct_STRIP=$STRIP 2339 # Extract the first word of "strip", so it can be a program name with args. 2340set dummy strip; ac_word=$2 2341{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2342echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2343if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2344 echo $ECHO_N "(cached) $ECHO_C" >&6 2345else 2346 if test -n "$ac_ct_STRIP"; then 2347 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2348else 2349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2350for as_dir in $PATH 2351do 2352 IFS=$as_save_IFS 2353 test -z "$as_dir" && as_dir=. 2354 for ac_exec_ext in '' $ac_executable_extensions; do 2355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2356 ac_cv_prog_ac_ct_STRIP="strip" 2357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2358 break 2 2359 fi 2360done 2361done 2362IFS=$as_save_IFS 2363 2364fi 2365fi 2366ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2367if test -n "$ac_ct_STRIP"; then 2368 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2369echo "${ECHO_T}$ac_ct_STRIP" >&6; } 2370else 2371 { echo "$as_me:$LINENO: result: no" >&5 2372echo "${ECHO_T}no" >&6; } 2373fi 2374 2375 if test "x$ac_ct_STRIP" = x; then 2376 STRIP=":" 2377 else 2378 case $cross_compiling:$ac_tool_warned in 2379yes:) 2380{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2381whose name does not start with the host triplet. If you think this 2382configuration is useful to you, please write to autoconf@gnu.org." >&5 2383echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2384whose name does not start with the host triplet. If you think this 2385configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2386ac_tool_warned=yes ;; 2387esac 2388 STRIP=$ac_ct_STRIP 2389 fi 2390else 2391 STRIP="$ac_cv_prog_STRIP" 2392fi 2393 2394fi 2395INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2396 2397# We need awk for the "check" target. The system "awk" is bad on 2398# some platforms. 2399# Always define AMTAR for backward compatibility. 2400 2401AMTAR=${AMTAR-"${am_missing_run}tar"} 2402 2403am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2404 2405 2406 2407 2408 2409ac_ext=c 2410ac_cpp='$CPP $CPPFLAGS' 2411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2413ac_compiler_gnu=$ac_cv_c_compiler_gnu 2414if test -n "$ac_tool_prefix"; then 2415 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2416set dummy ${ac_tool_prefix}gcc; ac_word=$2 2417{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2418echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2419if test "${ac_cv_prog_CC+set}" = set; then 2420 echo $ECHO_N "(cached) $ECHO_C" >&6 2421else 2422 if test -n "$CC"; then 2423 ac_cv_prog_CC="$CC" # Let the user override the test. 2424else 2425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2426for as_dir in $PATH 2427do 2428 IFS=$as_save_IFS 2429 test -z "$as_dir" && as_dir=. 2430 for ac_exec_ext in '' $ac_executable_extensions; do 2431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2432 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2434 break 2 2435 fi 2436done 2437done 2438IFS=$as_save_IFS 2439 2440fi 2441fi 2442CC=$ac_cv_prog_CC 2443if test -n "$CC"; then 2444 { echo "$as_me:$LINENO: result: $CC" >&5 2445echo "${ECHO_T}$CC" >&6; } 2446else 2447 { echo "$as_me:$LINENO: result: no" >&5 2448echo "${ECHO_T}no" >&6; } 2449fi 2450 2451 2452fi 2453if test -z "$ac_cv_prog_CC"; then 2454 ac_ct_CC=$CC 2455 # Extract the first word of "gcc", so it can be a program name with args. 2456set dummy gcc; ac_word=$2 2457{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2458echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2459if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2460 echo $ECHO_N "(cached) $ECHO_C" >&6 2461else 2462 if test -n "$ac_ct_CC"; then 2463 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2464else 2465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2466for as_dir in $PATH 2467do 2468 IFS=$as_save_IFS 2469 test -z "$as_dir" && as_dir=. 2470 for ac_exec_ext in '' $ac_executable_extensions; do 2471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2472 ac_cv_prog_ac_ct_CC="gcc" 2473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2474 break 2 2475 fi 2476done 2477done 2478IFS=$as_save_IFS 2479 2480fi 2481fi 2482ac_ct_CC=$ac_cv_prog_ac_ct_CC 2483if test -n "$ac_ct_CC"; then 2484 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2485echo "${ECHO_T}$ac_ct_CC" >&6; } 2486else 2487 { echo "$as_me:$LINENO: result: no" >&5 2488echo "${ECHO_T}no" >&6; } 2489fi 2490 2491 if test "x$ac_ct_CC" = x; then 2492 CC="" 2493 else 2494 case $cross_compiling:$ac_tool_warned in 2495yes:) 2496{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2497whose name does not start with the host triplet. If you think this 2498configuration is useful to you, please write to autoconf@gnu.org." >&5 2499echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2500whose name does not start with the host triplet. If you think this 2501configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2502ac_tool_warned=yes ;; 2503esac 2504 CC=$ac_ct_CC 2505 fi 2506else 2507 CC="$ac_cv_prog_CC" 2508fi 2509 2510if test -z "$CC"; then 2511 if test -n "$ac_tool_prefix"; then 2512 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2513set dummy ${ac_tool_prefix}cc; ac_word=$2 2514{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2515echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2516if test "${ac_cv_prog_CC+set}" = set; then 2517 echo $ECHO_N "(cached) $ECHO_C" >&6 2518else 2519 if test -n "$CC"; then 2520 ac_cv_prog_CC="$CC" # Let the user override the test. 2521else 2522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2523for as_dir in $PATH 2524do 2525 IFS=$as_save_IFS 2526 test -z "$as_dir" && as_dir=. 2527 for ac_exec_ext in '' $ac_executable_extensions; do 2528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2529 ac_cv_prog_CC="${ac_tool_prefix}cc" 2530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2531 break 2 2532 fi 2533done 2534done 2535IFS=$as_save_IFS 2536 2537fi 2538fi 2539CC=$ac_cv_prog_CC 2540if test -n "$CC"; then 2541 { echo "$as_me:$LINENO: result: $CC" >&5 2542echo "${ECHO_T}$CC" >&6; } 2543else 2544 { echo "$as_me:$LINENO: result: no" >&5 2545echo "${ECHO_T}no" >&6; } 2546fi 2547 2548 2549 fi 2550fi 2551if test -z "$CC"; then 2552 # Extract the first word of "cc", so it can be a program name with args. 2553set dummy cc; ac_word=$2 2554{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2555echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2556if test "${ac_cv_prog_CC+set}" = set; then 2557 echo $ECHO_N "(cached) $ECHO_C" >&6 2558else 2559 if test -n "$CC"; then 2560 ac_cv_prog_CC="$CC" # Let the user override the test. 2561else 2562 ac_prog_rejected=no 2563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2564for as_dir in $PATH 2565do 2566 IFS=$as_save_IFS 2567 test -z "$as_dir" && as_dir=. 2568 for ac_exec_ext in '' $ac_executable_extensions; do 2569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2570 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2571 ac_prog_rejected=yes 2572 continue 2573 fi 2574 ac_cv_prog_CC="cc" 2575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2576 break 2 2577 fi 2578done 2579done 2580IFS=$as_save_IFS 2581 2582if test $ac_prog_rejected = yes; then 2583 # We found a bogon in the path, so make sure we never use it. 2584 set dummy $ac_cv_prog_CC 2585 shift 2586 if test $# != 0; then 2587 # We chose a different compiler from the bogus one. 2588 # However, it has the same basename, so the bogon will be chosen 2589 # first if we set CC to just the basename; use the full file name. 2590 shift 2591 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2592 fi 2593fi 2594fi 2595fi 2596CC=$ac_cv_prog_CC 2597if test -n "$CC"; then 2598 { echo "$as_me:$LINENO: result: $CC" >&5 2599echo "${ECHO_T}$CC" >&6; } 2600else 2601 { echo "$as_me:$LINENO: result: no" >&5 2602echo "${ECHO_T}no" >&6; } 2603fi 2604 2605 2606fi 2607if test -z "$CC"; then 2608 if test -n "$ac_tool_prefix"; then 2609 for ac_prog in cl.exe 2610 do 2611 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2612set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2613{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2614echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2615if test "${ac_cv_prog_CC+set}" = set; then 2616 echo $ECHO_N "(cached) $ECHO_C" >&6 2617else 2618 if test -n "$CC"; then 2619 ac_cv_prog_CC="$CC" # Let the user override the test. 2620else 2621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2622for as_dir in $PATH 2623do 2624 IFS=$as_save_IFS 2625 test -z "$as_dir" && as_dir=. 2626 for ac_exec_ext in '' $ac_executable_extensions; do 2627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2628 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2630 break 2 2631 fi 2632done 2633done 2634IFS=$as_save_IFS 2635 2636fi 2637fi 2638CC=$ac_cv_prog_CC 2639if test -n "$CC"; then 2640 { echo "$as_me:$LINENO: result: $CC" >&5 2641echo "${ECHO_T}$CC" >&6; } 2642else 2643 { echo "$as_me:$LINENO: result: no" >&5 2644echo "${ECHO_T}no" >&6; } 2645fi 2646 2647 2648 test -n "$CC" && break 2649 done 2650fi 2651if test -z "$CC"; then 2652 ac_ct_CC=$CC 2653 for ac_prog in cl.exe 2654do 2655 # Extract the first word of "$ac_prog", so it can be a program name with args. 2656set dummy $ac_prog; ac_word=$2 2657{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2658echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2659if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2660 echo $ECHO_N "(cached) $ECHO_C" >&6 2661else 2662 if test -n "$ac_ct_CC"; then 2663 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2664else 2665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2666for as_dir in $PATH 2667do 2668 IFS=$as_save_IFS 2669 test -z "$as_dir" && as_dir=. 2670 for ac_exec_ext in '' $ac_executable_extensions; do 2671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2672 ac_cv_prog_ac_ct_CC="$ac_prog" 2673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2674 break 2 2675 fi 2676done 2677done 2678IFS=$as_save_IFS 2679 2680fi 2681fi 2682ac_ct_CC=$ac_cv_prog_ac_ct_CC 2683if test -n "$ac_ct_CC"; then 2684 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2685echo "${ECHO_T}$ac_ct_CC" >&6; } 2686else 2687 { echo "$as_me:$LINENO: result: no" >&5 2688echo "${ECHO_T}no" >&6; } 2689fi 2690 2691 2692 test -n "$ac_ct_CC" && break 2693done 2694 2695 if test "x$ac_ct_CC" = x; then 2696 CC="" 2697 else 2698 case $cross_compiling:$ac_tool_warned in 2699yes:) 2700{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2701whose name does not start with the host triplet. If you think this 2702configuration is useful to you, please write to autoconf@gnu.org." >&5 2703echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2704whose name does not start with the host triplet. If you think this 2705configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2706ac_tool_warned=yes ;; 2707esac 2708 CC=$ac_ct_CC 2709 fi 2710fi 2711 2712fi 2713 2714 2715test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2716See \`config.log' for more details." >&5 2717echo "$as_me: error: no acceptable C compiler found in \$PATH 2718See \`config.log' for more details." >&2;} 2719 { (exit 1); exit 1; }; } 2720 2721# Provide some information about the compiler. 2722echo "$as_me:$LINENO: checking for C compiler version" >&5 2723ac_compiler=`set X $ac_compile; echo $2` 2724{ (ac_try="$ac_compiler --version >&5" 2725case "(($ac_try" in 2726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2727 *) ac_try_echo=$ac_try;; 2728esac 2729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2730 (eval "$ac_compiler --version >&5") 2>&5 2731 ac_status=$? 2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2733 (exit $ac_status); } 2734{ (ac_try="$ac_compiler -v >&5" 2735case "(($ac_try" in 2736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2737 *) ac_try_echo=$ac_try;; 2738esac 2739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2740 (eval "$ac_compiler -v >&5") 2>&5 2741 ac_status=$? 2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2743 (exit $ac_status); } 2744{ (ac_try="$ac_compiler -V >&5" 2745case "(($ac_try" in 2746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2747 *) ac_try_echo=$ac_try;; 2748esac 2749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2750 (eval "$ac_compiler -V >&5") 2>&5 2751 ac_status=$? 2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2753 (exit $ac_status); } 2754 2755cat >conftest.$ac_ext <<_ACEOF 2756/* confdefs.h. */ 2757_ACEOF 2758cat confdefs.h >>conftest.$ac_ext 2759cat >>conftest.$ac_ext <<_ACEOF 2760/* end confdefs.h. */ 2761 2762int 2763main () 2764{ 2765 2766 ; 2767 return 0; 2768} 2769_ACEOF 2770ac_clean_files_save=$ac_clean_files 2771ac_clean_files="$ac_clean_files a.out a.exe b.out" 2772# Try to create an executable without -o first, disregard a.out. 2773# It will help us diagnose broken compilers, and finding out an intuition 2774# of exeext. 2775{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2776echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2777ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2778# 2779# List of possible output files, starting from the most likely. 2780# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2781# only as a last resort. b.out is created by i960 compilers. 2782ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2783# 2784# The IRIX 6 linker writes into existing files which may not be 2785# executable, retaining their permissions. Remove them first so a 2786# subsequent execution test works. 2787ac_rmfiles= 2788for ac_file in $ac_files 2789do 2790 case $ac_file in 2791 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2792 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2793 esac 2794done 2795rm -f $ac_rmfiles 2796 2797if { (ac_try="$ac_link_default" 2798case "(($ac_try" in 2799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2800 *) ac_try_echo=$ac_try;; 2801esac 2802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2803 (eval "$ac_link_default") 2>&5 2804 ac_status=$? 2805 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2806 (exit $ac_status); }; then 2807 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2808# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2809# in a Makefile. We should not override ac_cv_exeext if it was cached, 2810# so that the user can short-circuit this test for compilers unknown to 2811# Autoconf. 2812for ac_file in $ac_files '' 2813do 2814 test -f "$ac_file" || continue 2815 case $ac_file in 2816 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2817 ;; 2818 [ab].out ) 2819 # We found the default executable, but exeext='' is most 2820 # certainly right. 2821 break;; 2822 *.* ) 2823 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2824 then :; else 2825 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2826 fi 2827 # We set ac_cv_exeext here because the later test for it is not 2828 # safe: cross compilers may not add the suffix if given an `-o' 2829 # argument, so we may need to know it at that point already. 2830 # Even if this section looks crufty: it has the advantage of 2831 # actually working. 2832 break;; 2833 * ) 2834 break;; 2835 esac 2836done 2837test "$ac_cv_exeext" = no && ac_cv_exeext= 2838 2839else 2840 ac_file='' 2841fi 2842 2843{ echo "$as_me:$LINENO: result: $ac_file" >&5 2844echo "${ECHO_T}$ac_file" >&6; } 2845if test -z "$ac_file"; then 2846 echo "$as_me: failed program was:" >&5 2847sed 's/^/| /' conftest.$ac_ext >&5 2848 2849{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2850See \`config.log' for more details." >&5 2851echo "$as_me: error: C compiler cannot create executables 2852See \`config.log' for more details." >&2;} 2853 { (exit 77); exit 77; }; } 2854fi 2855 2856ac_exeext=$ac_cv_exeext 2857 2858# Check that the compiler produces executables we can run. If not, either 2859# the compiler is broken, or we cross compile. 2860{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2861echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2862# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2863# If not cross compiling, check that we can run a simple program. 2864if test "$cross_compiling" != yes; then 2865 if { ac_try='./$ac_file' 2866 { (case "(($ac_try" in 2867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2868 *) ac_try_echo=$ac_try;; 2869esac 2870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2871 (eval "$ac_try") 2>&5 2872 ac_status=$? 2873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2874 (exit $ac_status); }; }; then 2875 cross_compiling=no 2876 else 2877 if test "$cross_compiling" = maybe; then 2878 cross_compiling=yes 2879 else 2880 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2881If you meant to cross compile, use \`--host'. 2882See \`config.log' for more details." >&5 2883echo "$as_me: error: cannot run C compiled programs. 2884If you meant to cross compile, use \`--host'. 2885See \`config.log' for more details." >&2;} 2886 { (exit 1); exit 1; }; } 2887 fi 2888 fi 2889fi 2890{ echo "$as_me:$LINENO: result: yes" >&5 2891echo "${ECHO_T}yes" >&6; } 2892 2893rm -f a.out a.exe conftest$ac_cv_exeext b.out 2894ac_clean_files=$ac_clean_files_save 2895# Check that the compiler produces executables we can run. If not, either 2896# the compiler is broken, or we cross compile. 2897{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2898echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2899{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2900echo "${ECHO_T}$cross_compiling" >&6; } 2901 2902{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2903echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2904if { (ac_try="$ac_link" 2905case "(($ac_try" in 2906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2907 *) ac_try_echo=$ac_try;; 2908esac 2909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2910 (eval "$ac_link") 2>&5 2911 ac_status=$? 2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2913 (exit $ac_status); }; then 2914 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2915# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2916# work properly (i.e., refer to `conftest.exe'), while it won't with 2917# `rm'. 2918for ac_file in conftest.exe conftest conftest.*; do 2919 test -f "$ac_file" || continue 2920 case $ac_file in 2921 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2922 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2923 break;; 2924 * ) break;; 2925 esac 2926done 2927else 2928 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2929See \`config.log' for more details." >&5 2930echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2931See \`config.log' for more details." >&2;} 2932 { (exit 1); exit 1; }; } 2933fi 2934 2935rm -f conftest$ac_cv_exeext 2936{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2937echo "${ECHO_T}$ac_cv_exeext" >&6; } 2938 2939rm -f conftest.$ac_ext 2940EXEEXT=$ac_cv_exeext 2941ac_exeext=$EXEEXT 2942{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2943echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2944if test "${ac_cv_objext+set}" = set; then 2945 echo $ECHO_N "(cached) $ECHO_C" >&6 2946else 2947 cat >conftest.$ac_ext <<_ACEOF 2948/* confdefs.h. */ 2949_ACEOF 2950cat confdefs.h >>conftest.$ac_ext 2951cat >>conftest.$ac_ext <<_ACEOF 2952/* end confdefs.h. */ 2953 2954int 2955main () 2956{ 2957 2958 ; 2959 return 0; 2960} 2961_ACEOF 2962rm -f conftest.o conftest.obj 2963if { (ac_try="$ac_compile" 2964case "(($ac_try" in 2965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2966 *) ac_try_echo=$ac_try;; 2967esac 2968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2969 (eval "$ac_compile") 2>&5 2970 ac_status=$? 2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2972 (exit $ac_status); }; then 2973 for ac_file in conftest.o conftest.obj conftest.*; do 2974 test -f "$ac_file" || continue; 2975 case $ac_file in 2976 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2977 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2978 break;; 2979 esac 2980done 2981else 2982 echo "$as_me: failed program was:" >&5 2983sed 's/^/| /' conftest.$ac_ext >&5 2984 2985{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2986See \`config.log' for more details." >&5 2987echo "$as_me: error: cannot compute suffix of object files: cannot compile 2988See \`config.log' for more details." >&2;} 2989 { (exit 1); exit 1; }; } 2990fi 2991 2992rm -f conftest.$ac_cv_objext conftest.$ac_ext 2993fi 2994{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2995echo "${ECHO_T}$ac_cv_objext" >&6; } 2996OBJEXT=$ac_cv_objext 2997ac_objext=$OBJEXT 2998{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2999echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3000if test "${ac_cv_c_compiler_gnu+set}" = set; then 3001 echo $ECHO_N "(cached) $ECHO_C" >&6 3002else 3003 cat >conftest.$ac_ext <<_ACEOF 3004/* confdefs.h. */ 3005_ACEOF 3006cat confdefs.h >>conftest.$ac_ext 3007cat >>conftest.$ac_ext <<_ACEOF 3008/* end confdefs.h. */ 3009 3010int 3011main () 3012{ 3013#ifndef __GNUC__ 3014 choke me 3015#endif 3016 3017 ; 3018 return 0; 3019} 3020_ACEOF 3021rm -f conftest.$ac_objext 3022if { (ac_try="$ac_compile" 3023case "(($ac_try" in 3024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3025 *) ac_try_echo=$ac_try;; 3026esac 3027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3028 (eval "$ac_compile") 2>conftest.er1 3029 ac_status=$? 3030 grep -v '^ *+' conftest.er1 >conftest.err 3031 rm -f conftest.er1 3032 cat conftest.err >&5 3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3034 (exit $ac_status); } && { 3035 test -z "$ac_c_werror_flag" || 3036 test ! -s conftest.err 3037 } && test -s conftest.$ac_objext; then 3038 ac_compiler_gnu=yes 3039else 3040 echo "$as_me: failed program was:" >&5 3041sed 's/^/| /' conftest.$ac_ext >&5 3042 3043 ac_compiler_gnu=no 3044fi 3045 3046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3047ac_cv_c_compiler_gnu=$ac_compiler_gnu 3048 3049fi 3050{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3051echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3052GCC=`test $ac_compiler_gnu = yes && echo yes` 3053ac_test_CFLAGS=${CFLAGS+set} 3054ac_save_CFLAGS=$CFLAGS 3055{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3056echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3057if test "${ac_cv_prog_cc_g+set}" = set; then 3058 echo $ECHO_N "(cached) $ECHO_C" >&6 3059else 3060 ac_save_c_werror_flag=$ac_c_werror_flag 3061 ac_c_werror_flag=yes 3062 ac_cv_prog_cc_g=no 3063 CFLAGS="-g" 3064 cat >conftest.$ac_ext <<_ACEOF 3065/* confdefs.h. */ 3066_ACEOF 3067cat confdefs.h >>conftest.$ac_ext 3068cat >>conftest.$ac_ext <<_ACEOF 3069/* end confdefs.h. */ 3070 3071int 3072main () 3073{ 3074 3075 ; 3076 return 0; 3077} 3078_ACEOF 3079rm -f conftest.$ac_objext 3080if { (ac_try="$ac_compile" 3081case "(($ac_try" in 3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3083 *) ac_try_echo=$ac_try;; 3084esac 3085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3086 (eval "$ac_compile") 2>conftest.er1 3087 ac_status=$? 3088 grep -v '^ *+' conftest.er1 >conftest.err 3089 rm -f conftest.er1 3090 cat conftest.err >&5 3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3092 (exit $ac_status); } && { 3093 test -z "$ac_c_werror_flag" || 3094 test ! -s conftest.err 3095 } && test -s conftest.$ac_objext; then 3096 ac_cv_prog_cc_g=yes 3097else 3098 echo "$as_me: failed program was:" >&5 3099sed 's/^/| /' conftest.$ac_ext >&5 3100 3101 CFLAGS="" 3102 cat >conftest.$ac_ext <<_ACEOF 3103/* confdefs.h. */ 3104_ACEOF 3105cat confdefs.h >>conftest.$ac_ext 3106cat >>conftest.$ac_ext <<_ACEOF 3107/* end confdefs.h. */ 3108 3109int 3110main () 3111{ 3112 3113 ; 3114 return 0; 3115} 3116_ACEOF 3117rm -f conftest.$ac_objext 3118if { (ac_try="$ac_compile" 3119case "(($ac_try" in 3120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3121 *) ac_try_echo=$ac_try;; 3122esac 3123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3124 (eval "$ac_compile") 2>conftest.er1 3125 ac_status=$? 3126 grep -v '^ *+' conftest.er1 >conftest.err 3127 rm -f conftest.er1 3128 cat conftest.err >&5 3129 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3130 (exit $ac_status); } && { 3131 test -z "$ac_c_werror_flag" || 3132 test ! -s conftest.err 3133 } && test -s conftest.$ac_objext; then 3134 : 3135else 3136 echo "$as_me: failed program was:" >&5 3137sed 's/^/| /' conftest.$ac_ext >&5 3138 3139 ac_c_werror_flag=$ac_save_c_werror_flag 3140 CFLAGS="-g" 3141 cat >conftest.$ac_ext <<_ACEOF 3142/* confdefs.h. */ 3143_ACEOF 3144cat confdefs.h >>conftest.$ac_ext 3145cat >>conftest.$ac_ext <<_ACEOF 3146/* end confdefs.h. */ 3147 3148int 3149main () 3150{ 3151 3152 ; 3153 return 0; 3154} 3155_ACEOF 3156rm -f conftest.$ac_objext 3157if { (ac_try="$ac_compile" 3158case "(($ac_try" in 3159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3160 *) ac_try_echo=$ac_try;; 3161esac 3162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3163 (eval "$ac_compile") 2>conftest.er1 3164 ac_status=$? 3165 grep -v '^ *+' conftest.er1 >conftest.err 3166 rm -f conftest.er1 3167 cat conftest.err >&5 3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3169 (exit $ac_status); } && { 3170 test -z "$ac_c_werror_flag" || 3171 test ! -s conftest.err 3172 } && test -s conftest.$ac_objext; then 3173 ac_cv_prog_cc_g=yes 3174else 3175 echo "$as_me: failed program was:" >&5 3176sed 's/^/| /' conftest.$ac_ext >&5 3177 3178 3179fi 3180 3181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3182fi 3183 3184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3185fi 3186 3187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3188 ac_c_werror_flag=$ac_save_c_werror_flag 3189fi 3190{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3191echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3192if test "$ac_test_CFLAGS" = set; then 3193 CFLAGS=$ac_save_CFLAGS 3194elif test $ac_cv_prog_cc_g = yes; then 3195 if test "$GCC" = yes; then 3196 CFLAGS="-g -O2" 3197 else 3198 CFLAGS="-g" 3199 fi 3200else 3201 if test "$GCC" = yes; then 3202 CFLAGS="-O2" 3203 else 3204 CFLAGS= 3205 fi 3206fi 3207{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3208echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3209if test "${ac_cv_prog_cc_c89+set}" = set; then 3210 echo $ECHO_N "(cached) $ECHO_C" >&6 3211else 3212 ac_cv_prog_cc_c89=no 3213ac_save_CC=$CC 3214cat >conftest.$ac_ext <<_ACEOF 3215/* confdefs.h. */ 3216_ACEOF 3217cat confdefs.h >>conftest.$ac_ext 3218cat >>conftest.$ac_ext <<_ACEOF 3219/* end confdefs.h. */ 3220#include <stdarg.h> 3221#include <stdio.h> 3222#include <sys/types.h> 3223#include <sys/stat.h> 3224/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3225struct buf { int x; }; 3226FILE * (*rcsopen) (struct buf *, struct stat *, int); 3227static char *e (p, i) 3228 char **p; 3229 int i; 3230{ 3231 return p[i]; 3232} 3233static char *f (char * (*g) (char **, int), char **p, ...) 3234{ 3235 char *s; 3236 va_list v; 3237 va_start (v,p); 3238 s = g (p, va_arg (v,int)); 3239 va_end (v); 3240 return s; 3241} 3242 3243/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3244 function prototypes and stuff, but not '\xHH' hex character constants. 3245 These don't provoke an error unfortunately, instead are silently treated 3246 as 'x'. The following induces an error, until -std is added to get 3247 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3248 array size at least. It's necessary to write '\x00'==0 to get something 3249 that's true only with -std. */ 3250int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3251 3252/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3253 inside strings and character constants. */ 3254#define FOO(x) 'x' 3255int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3256 3257int test (int i, double x); 3258struct s1 {int (*f) (int a);}; 3259struct s2 {int (*f) (double a);}; 3260int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3261int argc; 3262char **argv; 3263int 3264main () 3265{ 3266return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3267 ; 3268 return 0; 3269} 3270_ACEOF 3271for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3272 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3273do 3274 CC="$ac_save_CC $ac_arg" 3275 rm -f conftest.$ac_objext 3276if { (ac_try="$ac_compile" 3277case "(($ac_try" in 3278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3279 *) ac_try_echo=$ac_try;; 3280esac 3281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3282 (eval "$ac_compile") 2>conftest.er1 3283 ac_status=$? 3284 grep -v '^ *+' conftest.er1 >conftest.err 3285 rm -f conftest.er1 3286 cat conftest.err >&5 3287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3288 (exit $ac_status); } && { 3289 test -z "$ac_c_werror_flag" || 3290 test ! -s conftest.err 3291 } && test -s conftest.$ac_objext; then 3292 ac_cv_prog_cc_c89=$ac_arg 3293else 3294 echo "$as_me: failed program was:" >&5 3295sed 's/^/| /' conftest.$ac_ext >&5 3296 3297 3298fi 3299 3300rm -f core conftest.err conftest.$ac_objext 3301 test "x$ac_cv_prog_cc_c89" != "xno" && break 3302done 3303rm -f conftest.$ac_ext 3304CC=$ac_save_CC 3305 3306fi 3307# AC_CACHE_VAL 3308case "x$ac_cv_prog_cc_c89" in 3309 x) 3310 { echo "$as_me:$LINENO: result: none needed" >&5 3311echo "${ECHO_T}none needed" >&6; } ;; 3312 xno) 3313 { echo "$as_me:$LINENO: result: unsupported" >&5 3314echo "${ECHO_T}unsupported" >&6; } ;; 3315 *) 3316 CC="$CC $ac_cv_prog_cc_c89" 3317 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3318echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3319esac 3320 3321 3322ac_ext=c 3323ac_cpp='$CPP $CPPFLAGS' 3324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3326ac_compiler_gnu=$ac_cv_c_compiler_gnu 3327DEPDIR="${am__leading_dot}deps" 3328 3329ac_config_commands="$ac_config_commands depfiles" 3330 3331 3332am_make=${MAKE-make} 3333cat > confinc << 'END' 3334am__doit: 3335 @echo done 3336.PHONY: am__doit 3337END 3338# If we don't find an include directive, just comment out the code. 3339{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3340echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 3341am__include="#" 3342am__quote= 3343_am_result=none 3344# First try GNU make style include. 3345echo "include confinc" > confmf 3346# We grep out `Entering directory' and `Leaving directory' 3347# messages which can occur if `w' ends up in MAKEFLAGS. 3348# In particular we don't look at `^make:' because GNU make might 3349# be invoked under some other name (usually "gmake"), in which 3350# case it prints its new name instead of `make'. 3351if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3352 am__include=include 3353 am__quote= 3354 _am_result=GNU 3355fi 3356# Now try BSD make style include. 3357if test "$am__include" = "#"; then 3358 echo '.include "confinc"' > confmf 3359 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3360 am__include=.include 3361 am__quote="\"" 3362 _am_result=BSD 3363 fi 3364fi 3365 3366 3367{ echo "$as_me:$LINENO: result: $_am_result" >&5 3368echo "${ECHO_T}$_am_result" >&6; } 3369rm -f confinc confmf 3370 3371# Check whether --enable-dependency-tracking was given. 3372if test "${enable_dependency_tracking+set}" = set; then 3373 enableval=$enable_dependency_tracking; 3374fi 3375 3376if test "x$enable_dependency_tracking" != xno; then 3377 am_depcomp="$ac_aux_dir/depcomp" 3378 AMDEPBACKSLASH='\' 3379fi 3380 if test "x$enable_dependency_tracking" != xno; then 3381 AMDEP_TRUE= 3382 AMDEP_FALSE='#' 3383else 3384 AMDEP_TRUE='#' 3385 AMDEP_FALSE= 3386fi 3387 3388 3389 3390depcc="$CC" am_compiler_list= 3391 3392{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3393echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3394if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3395 echo $ECHO_N "(cached) $ECHO_C" >&6 3396else 3397 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3398 # We make a subdir and do the tests there. Otherwise we can end up 3399 # making bogus files that we don't know about and never remove. For 3400 # instance it was reported that on HP-UX the gcc test will end up 3401 # making a dummy file named `D' -- because `-MD' means `put the output 3402 # in D'. 3403 mkdir conftest.dir 3404 # Copy depcomp to subdir because otherwise we won't find it if we're 3405 # using a relative directory. 3406 cp "$am_depcomp" conftest.dir 3407 cd conftest.dir 3408 # We will build objects and dependencies in a subdirectory because 3409 # it helps to detect inapplicable dependency modes. For instance 3410 # both Tru64's cc and ICC support -MD to output dependencies as a 3411 # side effect of compilation, but ICC will put the dependencies in 3412 # the current directory while Tru64 will put them in the object 3413 # directory. 3414 mkdir sub 3415 3416 am_cv_CC_dependencies_compiler_type=none 3417 if test "$am_compiler_list" = ""; then 3418 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3419 fi 3420 for depmode in $am_compiler_list; do 3421 # Setup a source with many dependencies, because some compilers 3422 # like to wrap large dependency lists on column 80 (with \), and 3423 # we should not choose a depcomp mode which is confused by this. 3424 # 3425 # We need to recreate these files for each test, as the compiler may 3426 # overwrite some of them when testing with obscure command lines. 3427 # This happens at least with the AIX C compiler. 3428 : > sub/conftest.c 3429 for i in 1 2 3 4 5 6; do 3430 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3431 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3432 # Solaris 8's {/usr,}/bin/sh. 3433 touch sub/conftst$i.h 3434 done 3435 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3436 3437 case $depmode in 3438 nosideeffect) 3439 # after this tag, mechanisms are not by side-effect, so they'll 3440 # only be used when explicitly requested 3441 if test "x$enable_dependency_tracking" = xyes; then 3442 continue 3443 else 3444 break 3445 fi 3446 ;; 3447 none) break ;; 3448 esac 3449 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3450 # mode. It turns out that the SunPro C++ compiler does not properly 3451 # handle `-M -o', and we need to detect this. 3452 if depmode=$depmode \ 3453 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3454 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3455 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3456 >/dev/null 2>conftest.err && 3457 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3458 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3459 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3460 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3461 # icc doesn't choke on unknown options, it will just issue warnings 3462 # or remarks (even with -Werror). So we grep stderr for any message 3463 # that says an option was ignored or not supported. 3464 # When given -MP, icc 7.0 and 7.1 complain thusly: 3465 # icc: Command line warning: ignoring option '-M'; no argument required 3466 # The diagnosis changed in icc 8.0: 3467 # icc: Command line remark: option '-MP' not supported 3468 if (grep 'ignoring option' conftest.err || 3469 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3470 am_cv_CC_dependencies_compiler_type=$depmode 3471 break 3472 fi 3473 fi 3474 done 3475 3476 cd .. 3477 rm -rf conftest.dir 3478else 3479 am_cv_CC_dependencies_compiler_type=none 3480fi 3481 3482fi 3483{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3484echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 3485CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3486 3487 if 3488 test "x$enable_dependency_tracking" != xno \ 3489 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3490 am__fastdepCC_TRUE= 3491 am__fastdepCC_FALSE='#' 3492else 3493 am__fastdepCC_TRUE='#' 3494 am__fastdepCC_FALSE= 3495fi 3496 3497 3498# Check whether --enable-shared was given. 3499if test "${enable_shared+set}" = set; then 3500 enableval=$enable_shared; p=${PACKAGE-default} 3501 case $enableval in 3502 yes) enable_shared=yes ;; 3503 no) enable_shared=no ;; 3504 *) 3505 enable_shared=no 3506 # Look at the argument we got. We use all the common list separators. 3507 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3508 for pkg in $enableval; do 3509 IFS="$lt_save_ifs" 3510 if test "X$pkg" = "X$p"; then 3511 enable_shared=yes 3512 fi 3513 done 3514 IFS="$lt_save_ifs" 3515 ;; 3516 esac 3517else 3518 enable_shared=yes 3519fi 3520 3521 3522# Check whether --enable-static was given. 3523if test "${enable_static+set}" = set; then 3524 enableval=$enable_static; p=${PACKAGE-default} 3525 case $enableval in 3526 yes) enable_static=yes ;; 3527 no) enable_static=no ;; 3528 *) 3529 enable_static=no 3530 # Look at the argument we got. We use all the common list separators. 3531 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3532 for pkg in $enableval; do 3533 IFS="$lt_save_ifs" 3534 if test "X$pkg" = "X$p"; then 3535 enable_static=yes 3536 fi 3537 done 3538 IFS="$lt_save_ifs" 3539 ;; 3540 esac 3541else 3542 enable_static=yes 3543fi 3544 3545 3546# Check whether --enable-fast-install was given. 3547if test "${enable_fast_install+set}" = set; then 3548 enableval=$enable_fast_install; p=${PACKAGE-default} 3549 case $enableval in 3550 yes) enable_fast_install=yes ;; 3551 no) enable_fast_install=no ;; 3552 *) 3553 enable_fast_install=no 3554 # Look at the argument we got. We use all the common list separators. 3555 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3556 for pkg in $enableval; do 3557 IFS="$lt_save_ifs" 3558 if test "X$pkg" = "X$p"; then 3559 enable_fast_install=yes 3560 fi 3561 done 3562 IFS="$lt_save_ifs" 3563 ;; 3564 esac 3565else 3566 enable_fast_install=yes 3567fi 3568 3569 3570# Make sure we can run config.sub. 3571$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3572 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 3573echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 3574 { (exit 1); exit 1; }; } 3575 3576{ echo "$as_me:$LINENO: checking build system type" >&5 3577echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 3578if test "${ac_cv_build+set}" = set; then 3579 echo $ECHO_N "(cached) $ECHO_C" >&6 3580else 3581 ac_build_alias=$build_alias 3582test "x$ac_build_alias" = x && 3583 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3584test "x$ac_build_alias" = x && 3585 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3586echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3587 { (exit 1); exit 1; }; } 3588ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3589 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 3590echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 3591 { (exit 1); exit 1; }; } 3592 3593fi 3594{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3595echo "${ECHO_T}$ac_cv_build" >&6; } 3596case $ac_cv_build in 3597*-*-*) ;; 3598*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 3599echo "$as_me: error: invalid value of canonical build" >&2;} 3600 { (exit 1); exit 1; }; };; 3601esac 3602build=$ac_cv_build 3603ac_save_IFS=$IFS; IFS='-' 3604set x $ac_cv_build 3605shift 3606build_cpu=$1 3607build_vendor=$2 3608shift; shift 3609# Remember, the first character of IFS is used to create $*, 3610# except with old shells: 3611build_os=$* 3612IFS=$ac_save_IFS 3613case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3614 3615 3616{ echo "$as_me:$LINENO: checking host system type" >&5 3617echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 3618if test "${ac_cv_host+set}" = set; then 3619 echo $ECHO_N "(cached) $ECHO_C" >&6 3620else 3621 if test "x$host_alias" = x; then 3622 ac_cv_host=$ac_cv_build 3623else 3624 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3625 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 3626echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 3627 { (exit 1); exit 1; }; } 3628fi 3629 3630fi 3631{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3632echo "${ECHO_T}$ac_cv_host" >&6; } 3633case $ac_cv_host in 3634*-*-*) ;; 3635*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 3636echo "$as_me: error: invalid value of canonical host" >&2;} 3637 { (exit 1); exit 1; }; };; 3638esac 3639host=$ac_cv_host 3640ac_save_IFS=$IFS; IFS='-' 3641set x $ac_cv_host 3642shift 3643host_cpu=$1 3644host_vendor=$2 3645shift; shift 3646# Remember, the first character of IFS is used to create $*, 3647# except with old shells: 3648host_os=$* 3649IFS=$ac_save_IFS 3650case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3651 3652 3653{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3654echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } 3655if test "${lt_cv_path_SED+set}" = set; then 3656 echo $ECHO_N "(cached) $ECHO_C" >&6 3657else 3658 # Loop through the user's path and test for sed and gsed. 3659# Then use that list of sed's as ones to test for truncation. 3660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3661for as_dir in $PATH 3662do 3663 IFS=$as_save_IFS 3664 test -z "$as_dir" && as_dir=. 3665 for lt_ac_prog in sed gsed; do 3666 for ac_exec_ext in '' $ac_executable_extensions; do 3667 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 3668 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3669 fi 3670 done 3671 done 3672done 3673lt_ac_max=0 3674lt_ac_count=0 3675# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3676# along with /bin/sed that truncates output. 3677for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3678 test ! -f $lt_ac_sed && continue 3679 cat /dev/null > conftest.in 3680 lt_ac_count=0 3681 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3682 # Check for GNU sed and select it if it is found. 3683 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3684 lt_cv_path_SED=$lt_ac_sed 3685 break 3686 fi 3687 while true; do 3688 cat conftest.in conftest.in >conftest.tmp 3689 mv conftest.tmp conftest.in 3690 cp conftest.in conftest.nl 3691 echo >>conftest.nl 3692 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3693 cmp -s conftest.out conftest.nl || break 3694 # 10000 chars as input seems more than enough 3695 test $lt_ac_count -gt 10 && break 3696 lt_ac_count=`expr $lt_ac_count + 1` 3697 if test $lt_ac_count -gt $lt_ac_max; then 3698 lt_ac_max=$lt_ac_count 3699 lt_cv_path_SED=$lt_ac_sed 3700 fi 3701 done 3702done 3703 3704fi 3705 3706SED=$lt_cv_path_SED 3707{ echo "$as_me:$LINENO: result: $SED" >&5 3708echo "${ECHO_T}$SED" >&6; } 3709 3710{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3711echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3712if test "${ac_cv_path_GREP+set}" = set; then 3713 echo $ECHO_N "(cached) $ECHO_C" >&6 3714else 3715 # Extract the first word of "grep ggrep" to use in msg output 3716if test -z "$GREP"; then 3717set dummy grep ggrep; ac_prog_name=$2 3718if test "${ac_cv_path_GREP+set}" = set; then 3719 echo $ECHO_N "(cached) $ECHO_C" >&6 3720else 3721 ac_path_GREP_found=false 3722# Loop through the user's path and test for each of PROGNAME-LIST 3723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3724for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3725do 3726 IFS=$as_save_IFS 3727 test -z "$as_dir" && as_dir=. 3728 for ac_prog in grep ggrep; do 3729 for ac_exec_ext in '' $ac_executable_extensions; do 3730 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3731 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3732 # Check for GNU ac_path_GREP and select it if it is found. 3733 # Check for GNU $ac_path_GREP 3734case `"$ac_path_GREP" --version 2>&1` in 3735*GNU*) 3736 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3737*) 3738 ac_count=0 3739 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3740 while : 3741 do 3742 cat "conftest.in" "conftest.in" >"conftest.tmp" 3743 mv "conftest.tmp" "conftest.in" 3744 cp "conftest.in" "conftest.nl" 3745 echo 'GREP' >> "conftest.nl" 3746 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3747 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3748 ac_count=`expr $ac_count + 1` 3749 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3750 # Best one so far, save it but keep looking for a better one 3751 ac_cv_path_GREP="$ac_path_GREP" 3752 ac_path_GREP_max=$ac_count 3753 fi 3754 # 10*(2^10) chars as input seems more than enough 3755 test $ac_count -gt 10 && break 3756 done 3757 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3758esac 3759 3760 3761 $ac_path_GREP_found && break 3 3762 done 3763done 3764 3765done 3766IFS=$as_save_IFS 3767 3768 3769fi 3770 3771GREP="$ac_cv_path_GREP" 3772if test -z "$GREP"; then 3773 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3774echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3775 { (exit 1); exit 1; }; } 3776fi 3777 3778else 3779 ac_cv_path_GREP=$GREP 3780fi 3781 3782 3783fi 3784{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3785echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3786 GREP="$ac_cv_path_GREP" 3787 3788 3789{ echo "$as_me:$LINENO: checking for egrep" >&5 3790echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3791if test "${ac_cv_path_EGREP+set}" = set; then 3792 echo $ECHO_N "(cached) $ECHO_C" >&6 3793else 3794 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3795 then ac_cv_path_EGREP="$GREP -E" 3796 else 3797 # Extract the first word of "egrep" to use in msg output 3798if test -z "$EGREP"; then 3799set dummy egrep; ac_prog_name=$2 3800if test "${ac_cv_path_EGREP+set}" = set; then 3801 echo $ECHO_N "(cached) $ECHO_C" >&6 3802else 3803 ac_path_EGREP_found=false 3804# Loop through the user's path and test for each of PROGNAME-LIST 3805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3806for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3807do 3808 IFS=$as_save_IFS 3809 test -z "$as_dir" && as_dir=. 3810 for ac_prog in egrep; do 3811 for ac_exec_ext in '' $ac_executable_extensions; do 3812 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3813 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3814 # Check for GNU ac_path_EGREP and select it if it is found. 3815 # Check for GNU $ac_path_EGREP 3816case `"$ac_path_EGREP" --version 2>&1` in 3817*GNU*) 3818 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3819*) 3820 ac_count=0 3821 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3822 while : 3823 do 3824 cat "conftest.in" "conftest.in" >"conftest.tmp" 3825 mv "conftest.tmp" "conftest.in" 3826 cp "conftest.in" "conftest.nl" 3827 echo 'EGREP' >> "conftest.nl" 3828 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3829 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3830 ac_count=`expr $ac_count + 1` 3831 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3832 # Best one so far, save it but keep looking for a better one 3833 ac_cv_path_EGREP="$ac_path_EGREP" 3834 ac_path_EGREP_max=$ac_count 3835 fi 3836 # 10*(2^10) chars as input seems more than enough 3837 test $ac_count -gt 10 && break 3838 done 3839 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3840esac 3841 3842 3843 $ac_path_EGREP_found && break 3 3844 done 3845done 3846 3847done 3848IFS=$as_save_IFS 3849 3850 3851fi 3852 3853EGREP="$ac_cv_path_EGREP" 3854if test -z "$EGREP"; then 3855 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3856echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3857 { (exit 1); exit 1; }; } 3858fi 3859 3860else 3861 ac_cv_path_EGREP=$EGREP 3862fi 3863 3864 3865 fi 3866fi 3867{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3868echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3869 EGREP="$ac_cv_path_EGREP" 3870 3871 3872 3873# Check whether --with-gnu-ld was given. 3874if test "${with_gnu_ld+set}" = set; then 3875 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 3876else 3877 with_gnu_ld=no 3878fi 3879 3880ac_prog=ld 3881if test "$GCC" = yes; then 3882 # Check if gcc -print-prog-name=ld gives a path. 3883 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3884echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 3885 case $host in 3886 *-*-mingw*) 3887 # gcc leaves a trailing carriage return which upsets mingw 3888 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3889 *) 3890 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3891 esac 3892 case $ac_prog in 3893 # Accept absolute paths. 3894 [\\/]* | ?:[\\/]*) 3895 re_direlt='/[^/][^/]*/\.\./' 3896 # Canonicalize the pathname of ld 3897 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 3898 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3899 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 3900 done 3901 test -z "$LD" && LD="$ac_prog" 3902 ;; 3903 "") 3904 # If it fails, then pretend we aren't using GCC. 3905 ac_prog=ld 3906 ;; 3907 *) 3908 # If it is relative, then search for the first ld in PATH. 3909 with_gnu_ld=unknown 3910 ;; 3911 esac 3912elif test "$with_gnu_ld" = yes; then 3913 { echo "$as_me:$LINENO: checking for GNU ld" >&5 3914echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 3915else 3916 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 3917echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 3918fi 3919if test "${lt_cv_path_LD+set}" = set; then 3920 echo $ECHO_N "(cached) $ECHO_C" >&6 3921else 3922 if test -z "$LD"; then 3923 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3924 for ac_dir in $PATH; do 3925 IFS="$lt_save_ifs" 3926 test -z "$ac_dir" && ac_dir=. 3927 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3928 lt_cv_path_LD="$ac_dir/$ac_prog" 3929 # Check to see if the program is GNU ld. I'd rather use --version, 3930 # but apparently some variants of GNU ld only accept -v. 3931 # Break only if it was the GNU/non-GNU ld that we prefer. 3932 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3933 *GNU* | *'with BFD'*) 3934 test "$with_gnu_ld" != no && break 3935 ;; 3936 *) 3937 test "$with_gnu_ld" != yes && break 3938 ;; 3939 esac 3940 fi 3941 done 3942 IFS="$lt_save_ifs" 3943else 3944 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3945fi 3946fi 3947 3948LD="$lt_cv_path_LD" 3949if test -n "$LD"; then 3950 { echo "$as_me:$LINENO: result: $LD" >&5 3951echo "${ECHO_T}$LD" >&6; } 3952else 3953 { echo "$as_me:$LINENO: result: no" >&5 3954echo "${ECHO_T}no" >&6; } 3955fi 3956test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 3957echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 3958 { (exit 1); exit 1; }; } 3959{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 3960echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 3961if test "${lt_cv_prog_gnu_ld+set}" = set; then 3962 echo $ECHO_N "(cached) $ECHO_C" >&6 3963else 3964 # I'd rather use --version here, but apparently some GNU lds only accept -v. 3965case `$LD -v 2>&1 </dev/null` in 3966*GNU* | *'with BFD'*) 3967 lt_cv_prog_gnu_ld=yes 3968 ;; 3969*) 3970 lt_cv_prog_gnu_ld=no 3971 ;; 3972esac 3973fi 3974{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 3975echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 3976with_gnu_ld=$lt_cv_prog_gnu_ld 3977 3978 3979{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 3980echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } 3981if test "${lt_cv_ld_reload_flag+set}" = set; then 3982 echo $ECHO_N "(cached) $ECHO_C" >&6 3983else 3984 lt_cv_ld_reload_flag='-r' 3985fi 3986{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 3987echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } 3988reload_flag=$lt_cv_ld_reload_flag 3989case $reload_flag in 3990"" | " "*) ;; 3991*) reload_flag=" $reload_flag" ;; 3992esac 3993reload_cmds='$LD$reload_flag -o $output$reload_objs' 3994case $host_os in 3995 darwin*) 3996 if test "$GCC" = yes; then 3997 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 3998 else 3999 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4000 fi 4001 ;; 4002esac 4003 4004{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4005echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 4006if test "${lt_cv_path_NM+set}" = set; then 4007 echo $ECHO_N "(cached) $ECHO_C" >&6 4008else 4009 if test -n "$NM"; then 4010 # Let the user override the test. 4011 lt_cv_path_NM="$NM" 4012else 4013 lt_nm_to_check="${ac_tool_prefix}nm" 4014 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4015 lt_nm_to_check="$lt_nm_to_check nm" 4016 fi 4017 for lt_tmp_nm in $lt_nm_to_check; do 4018 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4019 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4020 IFS="$lt_save_ifs" 4021 test -z "$ac_dir" && ac_dir=. 4022 tmp_nm="$ac_dir/$lt_tmp_nm" 4023 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4024 # Check to see if the nm accepts a BSD-compat flag. 4025 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4026 # nm: unknown option "B" ignored 4027 # Tru64's nm complains that /dev/null is an invalid object file 4028 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4029 */dev/null* | *'Invalid file or object type'*) 4030 lt_cv_path_NM="$tmp_nm -B" 4031 break 4032 ;; 4033 *) 4034 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4035 */dev/null*) 4036 lt_cv_path_NM="$tmp_nm -p" 4037 break 4038 ;; 4039 *) 4040 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4041 continue # so that we can try to find one that supports BSD flags 4042 ;; 4043 esac 4044 ;; 4045 esac 4046 fi 4047 done 4048 IFS="$lt_save_ifs" 4049 done 4050 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4051fi 4052fi 4053{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4054echo "${ECHO_T}$lt_cv_path_NM" >&6; } 4055NM="$lt_cv_path_NM" 4056 4057{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 4058echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 4059LN_S=$as_ln_s 4060if test "$LN_S" = "ln -s"; then 4061 { echo "$as_me:$LINENO: result: yes" >&5 4062echo "${ECHO_T}yes" >&6; } 4063else 4064 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4065echo "${ECHO_T}no, using $LN_S" >&6; } 4066fi 4067 4068{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 4069echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } 4070if test "${lt_cv_deplibs_check_method+set}" = set; then 4071 echo $ECHO_N "(cached) $ECHO_C" >&6 4072else 4073 lt_cv_file_magic_cmd='$MAGIC_CMD' 4074lt_cv_file_magic_test_file= 4075lt_cv_deplibs_check_method='unknown' 4076# Need to set the preceding variable on all platforms that support 4077# interlibrary dependencies. 4078# 'none' -- dependencies not supported. 4079# `unknown' -- same as none, but documents that we really don't know. 4080# 'pass_all' -- all dependencies passed with no checks. 4081# 'test_compile' -- check by making test program. 4082# 'file_magic [[regex]]' -- check by looking for files in library path 4083# which responds to the $file_magic_cmd with a given extended regex. 4084# If you have `file' or equivalent on your system and you're not sure 4085# whether `pass_all' will *always* work, you probably want this one. 4086 4087case $host_os in 4088aix4* | aix5*) 4089 lt_cv_deplibs_check_method=pass_all 4090 ;; 4091 4092beos*) 4093 lt_cv_deplibs_check_method=pass_all 4094 ;; 4095 4096bsdi[45]*) 4097 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4098 lt_cv_file_magic_cmd='/usr/bin/file -L' 4099 lt_cv_file_magic_test_file=/shlib/libc.so 4100 ;; 4101 4102cygwin*) 4103 # func_win32_libid is a shell function defined in ltmain.sh 4104 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4105 lt_cv_file_magic_cmd='func_win32_libid' 4106 ;; 4107 4108mingw* | pw32*) 4109 # Base MSYS/MinGW do not provide the 'file' command needed by 4110 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 4111 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4112 lt_cv_file_magic_cmd='$OBJDUMP -f' 4113 ;; 4114 4115darwin* | rhapsody*) 4116 lt_cv_deplibs_check_method=pass_all 4117 ;; 4118 4119freebsd* | kfreebsd*-gnu | dragonfly*) 4120 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4121 case $host_cpu in 4122 i*86 ) 4123 # Not sure whether the presence of OpenBSD here was a mistake. 4124 # Let's accept both of them until this is cleared up. 4125 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4126 lt_cv_file_magic_cmd=/usr/bin/file 4127 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4128 ;; 4129 esac 4130 else 4131 lt_cv_deplibs_check_method=pass_all 4132 fi 4133 ;; 4134 4135gnu*) 4136 lt_cv_deplibs_check_method=pass_all 4137 ;; 4138 4139hpux10.20* | hpux11*) 4140 lt_cv_file_magic_cmd=/usr/bin/file 4141 case $host_cpu in 4142 ia64*) 4143 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4144 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4145 ;; 4146 hppa*64*) 4147 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]' 4148 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4149 ;; 4150 *) 4151 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4152 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4153 ;; 4154 esac 4155 ;; 4156 4157interix3*) 4158 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4159 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4160 ;; 4161 4162irix5* | irix6* | nonstopux*) 4163 case $LD in 4164 *-32|*"-32 ") libmagic=32-bit;; 4165 *-n32|*"-n32 ") libmagic=N32;; 4166 *-64|*"-64 ") libmagic=64-bit;; 4167 *) libmagic=never-match;; 4168 esac 4169 lt_cv_deplibs_check_method=pass_all 4170 ;; 4171 4172# This must be Linux ELF. 4173linux*) 4174 lt_cv_deplibs_check_method=pass_all 4175 ;; 4176 4177netbsd*) 4178 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4179 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4180 else 4181 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4182 fi 4183 ;; 4184 4185newos6*) 4186 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4187 lt_cv_file_magic_cmd=/usr/bin/file 4188 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4189 ;; 4190 4191nto-qnx*) 4192 lt_cv_deplibs_check_method=unknown 4193 ;; 4194 4195openbsd*) 4196 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4197 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4198 else 4199 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4200 fi 4201 ;; 4202 4203osf3* | osf4* | osf5*) 4204 lt_cv_deplibs_check_method=pass_all 4205 ;; 4206 4207solaris*) 4208 lt_cv_deplibs_check_method=pass_all 4209 ;; 4210 4211sysv4 | sysv4.3*) 4212 case $host_vendor in 4213 motorola) 4214 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]' 4215 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4216 ;; 4217 ncr) 4218 lt_cv_deplibs_check_method=pass_all 4219 ;; 4220 sequent) 4221 lt_cv_file_magic_cmd='/bin/file' 4222 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4223 ;; 4224 sni) 4225 lt_cv_file_magic_cmd='/bin/file' 4226 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4227 lt_cv_file_magic_test_file=/lib/libc.so 4228 ;; 4229 siemens) 4230 lt_cv_deplibs_check_method=pass_all 4231 ;; 4232 pc) 4233 lt_cv_deplibs_check_method=pass_all 4234 ;; 4235 esac 4236 ;; 4237 4238sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4239 lt_cv_deplibs_check_method=pass_all 4240 ;; 4241esac 4242 4243fi 4244{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4245echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 4246file_magic_cmd=$lt_cv_file_magic_cmd 4247deplibs_check_method=$lt_cv_deplibs_check_method 4248test -z "$deplibs_check_method" && deplibs_check_method=unknown 4249 4250 4251 4252 4253# If no C compiler was specified, use CC. 4254LTCC=${LTCC-"$CC"} 4255 4256# If no C compiler flags were specified, use CFLAGS. 4257LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4258 4259# Allow CC to be a program name with arguments. 4260compiler=$CC 4261 4262 4263# Check whether --enable-libtool-lock was given. 4264if test "${enable_libtool_lock+set}" = set; then 4265 enableval=$enable_libtool_lock; 4266fi 4267 4268test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4269 4270# Some flags need to be propagated to the compiler or linker for good 4271# libtool support. 4272case $host in 4273ia64-*-hpux*) 4274 # Find out which ABI we are using. 4275 echo 'int i;' > conftest.$ac_ext 4276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4277 (eval $ac_compile) 2>&5 4278 ac_status=$? 4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4280 (exit $ac_status); }; then 4281 case `/usr/bin/file conftest.$ac_objext` in 4282 *ELF-32*) 4283 HPUX_IA64_MODE="32" 4284 ;; 4285 *ELF-64*) 4286 HPUX_IA64_MODE="64" 4287 ;; 4288 esac 4289 fi 4290 rm -rf conftest* 4291 ;; 4292*-*-irix6*) 4293 # Find out which ABI we are using. 4294 echo '#line 4294 "configure"' > conftest.$ac_ext 4295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4296 (eval $ac_compile) 2>&5 4297 ac_status=$? 4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4299 (exit $ac_status); }; then 4300 if test "$lt_cv_prog_gnu_ld" = yes; then 4301 case `/usr/bin/file conftest.$ac_objext` in 4302 *32-bit*) 4303 LD="${LD-ld} -melf32bsmip" 4304 ;; 4305 *N32*) 4306 LD="${LD-ld} -melf32bmipn32" 4307 ;; 4308 *64-bit*) 4309 LD="${LD-ld} -melf64bmip" 4310 ;; 4311 esac 4312 else 4313 case `/usr/bin/file conftest.$ac_objext` in 4314 *32-bit*) 4315 LD="${LD-ld} -32" 4316 ;; 4317 *N32*) 4318 LD="${LD-ld} -n32" 4319 ;; 4320 *64-bit*) 4321 LD="${LD-ld} -64" 4322 ;; 4323 esac 4324 fi 4325 fi 4326 rm -rf conftest* 4327 ;; 4328 4329x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 4330 # Find out which ABI we are using. 4331 echo 'int i;' > conftest.$ac_ext 4332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4333 (eval $ac_compile) 2>&5 4334 ac_status=$? 4335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4336 (exit $ac_status); }; then 4337 case `/usr/bin/file conftest.o` in 4338 *32-bit*) 4339 case $host in 4340 x86_64-*linux*) 4341 LD="${LD-ld} -m elf_i386" 4342 ;; 4343 ppc64-*linux*|powerpc64-*linux*) 4344 LD="${LD-ld} -m elf32ppclinux" 4345 ;; 4346 s390x-*linux*) 4347 LD="${LD-ld} -m elf_s390" 4348 ;; 4349 sparc64-*linux*) 4350 LD="${LD-ld} -m elf32_sparc" 4351 ;; 4352 esac 4353 ;; 4354 *64-bit*) 4355 case $host in 4356 x86_64-*linux*) 4357 LD="${LD-ld} -m elf_x86_64" 4358 ;; 4359 ppc*-*linux*|powerpc*-*linux*) 4360 LD="${LD-ld} -m elf64ppc" 4361 ;; 4362 s390*-*linux*) 4363 LD="${LD-ld} -m elf64_s390" 4364 ;; 4365 sparc*-*linux*) 4366 LD="${LD-ld} -m elf64_sparc" 4367 ;; 4368 esac 4369 ;; 4370 esac 4371 fi 4372 rm -rf conftest* 4373 ;; 4374 4375*-*-sco3.2v5*) 4376 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4377 SAVE_CFLAGS="$CFLAGS" 4378 CFLAGS="$CFLAGS -belf" 4379 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4380echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } 4381if test "${lt_cv_cc_needs_belf+set}" = set; then 4382 echo $ECHO_N "(cached) $ECHO_C" >&6 4383else 4384 ac_ext=c 4385ac_cpp='$CPP $CPPFLAGS' 4386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4388ac_compiler_gnu=$ac_cv_c_compiler_gnu 4389 4390 cat >conftest.$ac_ext <<_ACEOF 4391/* confdefs.h. */ 4392_ACEOF 4393cat confdefs.h >>conftest.$ac_ext 4394cat >>conftest.$ac_ext <<_ACEOF 4395/* end confdefs.h. */ 4396 4397int 4398main () 4399{ 4400 4401 ; 4402 return 0; 4403} 4404_ACEOF 4405rm -f conftest.$ac_objext conftest$ac_exeext 4406if { (ac_try="$ac_link" 4407case "(($ac_try" in 4408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4409 *) ac_try_echo=$ac_try;; 4410esac 4411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4412 (eval "$ac_link") 2>conftest.er1 4413 ac_status=$? 4414 grep -v '^ *+' conftest.er1 >conftest.err 4415 rm -f conftest.er1 4416 cat conftest.err >&5 4417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4418 (exit $ac_status); } && { 4419 test -z "$ac_c_werror_flag" || 4420 test ! -s conftest.err 4421 } && test -s conftest$ac_exeext && 4422 $as_test_x conftest$ac_exeext; then 4423 lt_cv_cc_needs_belf=yes 4424else 4425 echo "$as_me: failed program was:" >&5 4426sed 's/^/| /' conftest.$ac_ext >&5 4427 4428 lt_cv_cc_needs_belf=no 4429fi 4430 4431rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4432 conftest$ac_exeext conftest.$ac_ext 4433 ac_ext=c 4434ac_cpp='$CPP $CPPFLAGS' 4435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4437ac_compiler_gnu=$ac_cv_c_compiler_gnu 4438 4439fi 4440{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4441echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } 4442 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4443 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4444 CFLAGS="$SAVE_CFLAGS" 4445 fi 4446 ;; 4447sparc*-*solaris*) 4448 # Find out which ABI we are using. 4449 echo 'int i;' > conftest.$ac_ext 4450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4451 (eval $ac_compile) 2>&5 4452 ac_status=$? 4453 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4454 (exit $ac_status); }; then 4455 case `/usr/bin/file conftest.o` in 4456 *64-bit*) 4457 case $lt_cv_prog_gnu_ld in 4458 yes*) LD="${LD-ld} -m elf64_sparc" ;; 4459 *) LD="${LD-ld} -64" ;; 4460 esac 4461 ;; 4462 esac 4463 fi 4464 rm -rf conftest* 4465 ;; 4466 4467 4468esac 4469 4470need_locks="$enable_libtool_lock" 4471 4472 4473ac_ext=c 4474ac_cpp='$CPP $CPPFLAGS' 4475ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4476ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4477ac_compiler_gnu=$ac_cv_c_compiler_gnu 4478{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4479echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 4480# On Suns, sometimes $CPP names a directory. 4481if test -n "$CPP" && test -d "$CPP"; then 4482 CPP= 4483fi 4484if test -z "$CPP"; then 4485 if test "${ac_cv_prog_CPP+set}" = set; then 4486 echo $ECHO_N "(cached) $ECHO_C" >&6 4487else 4488 # Double quotes because CPP needs to be expanded 4489 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4490 do 4491 ac_preproc_ok=false 4492for ac_c_preproc_warn_flag in '' yes 4493do 4494 # Use a header file that comes with gcc, so configuring glibc 4495 # with a fresh cross-compiler works. 4496 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4497 # <limits.h> exists even on freestanding compilers. 4498 # On the NeXT, cc -E runs the code through the compiler's parser, 4499 # not just through cpp. "Syntax error" is here to catch this case. 4500 cat >conftest.$ac_ext <<_ACEOF 4501/* confdefs.h. */ 4502_ACEOF 4503cat confdefs.h >>conftest.$ac_ext 4504cat >>conftest.$ac_ext <<_ACEOF 4505/* end confdefs.h. */ 4506#ifdef __STDC__ 4507# include <limits.h> 4508#else 4509# include <assert.h> 4510#endif 4511 Syntax error 4512_ACEOF 4513if { (ac_try="$ac_cpp conftest.$ac_ext" 4514case "(($ac_try" in 4515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4516 *) ac_try_echo=$ac_try;; 4517esac 4518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4519 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4520 ac_status=$? 4521 grep -v '^ *+' conftest.er1 >conftest.err 4522 rm -f conftest.er1 4523 cat conftest.err >&5 4524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4525 (exit $ac_status); } >/dev/null && { 4526 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4527 test ! -s conftest.err 4528 }; then 4529 : 4530else 4531 echo "$as_me: failed program was:" >&5 4532sed 's/^/| /' conftest.$ac_ext >&5 4533 4534 # Broken: fails on valid input. 4535continue 4536fi 4537 4538rm -f conftest.err conftest.$ac_ext 4539 4540 # OK, works on sane cases. Now check whether nonexistent headers 4541 # can be detected and how. 4542 cat >conftest.$ac_ext <<_ACEOF 4543/* confdefs.h. */ 4544_ACEOF 4545cat confdefs.h >>conftest.$ac_ext 4546cat >>conftest.$ac_ext <<_ACEOF 4547/* end confdefs.h. */ 4548#include <ac_nonexistent.h> 4549_ACEOF 4550if { (ac_try="$ac_cpp conftest.$ac_ext" 4551case "(($ac_try" in 4552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4553 *) ac_try_echo=$ac_try;; 4554esac 4555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4556 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4557 ac_status=$? 4558 grep -v '^ *+' conftest.er1 >conftest.err 4559 rm -f conftest.er1 4560 cat conftest.err >&5 4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4562 (exit $ac_status); } >/dev/null && { 4563 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4564 test ! -s conftest.err 4565 }; then 4566 # Broken: success on invalid input. 4567continue 4568else 4569 echo "$as_me: failed program was:" >&5 4570sed 's/^/| /' conftest.$ac_ext >&5 4571 4572 # Passes both tests. 4573ac_preproc_ok=: 4574break 4575fi 4576 4577rm -f conftest.err conftest.$ac_ext 4578 4579done 4580# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4581rm -f conftest.err conftest.$ac_ext 4582if $ac_preproc_ok; then 4583 break 4584fi 4585 4586 done 4587 ac_cv_prog_CPP=$CPP 4588 4589fi 4590 CPP=$ac_cv_prog_CPP 4591else 4592 ac_cv_prog_CPP=$CPP 4593fi 4594{ echo "$as_me:$LINENO: result: $CPP" >&5 4595echo "${ECHO_T}$CPP" >&6; } 4596ac_preproc_ok=false 4597for ac_c_preproc_warn_flag in '' yes 4598do 4599 # Use a header file that comes with gcc, so configuring glibc 4600 # with a fresh cross-compiler works. 4601 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4602 # <limits.h> exists even on freestanding compilers. 4603 # On the NeXT, cc -E runs the code through the compiler's parser, 4604 # not just through cpp. "Syntax error" is here to catch this case. 4605 cat >conftest.$ac_ext <<_ACEOF 4606/* confdefs.h. */ 4607_ACEOF 4608cat confdefs.h >>conftest.$ac_ext 4609cat >>conftest.$ac_ext <<_ACEOF 4610/* end confdefs.h. */ 4611#ifdef __STDC__ 4612# include <limits.h> 4613#else 4614# include <assert.h> 4615#endif 4616 Syntax error 4617_ACEOF 4618if { (ac_try="$ac_cpp conftest.$ac_ext" 4619case "(($ac_try" in 4620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4621 *) ac_try_echo=$ac_try;; 4622esac 4623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4624 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4625 ac_status=$? 4626 grep -v '^ *+' conftest.er1 >conftest.err 4627 rm -f conftest.er1 4628 cat conftest.err >&5 4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4630 (exit $ac_status); } >/dev/null && { 4631 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4632 test ! -s conftest.err 4633 }; then 4634 : 4635else 4636 echo "$as_me: failed program was:" >&5 4637sed 's/^/| /' conftest.$ac_ext >&5 4638 4639 # Broken: fails on valid input. 4640continue 4641fi 4642 4643rm -f conftest.err conftest.$ac_ext 4644 4645 # OK, works on sane cases. Now check whether nonexistent headers 4646 # can be detected and how. 4647 cat >conftest.$ac_ext <<_ACEOF 4648/* confdefs.h. */ 4649_ACEOF 4650cat confdefs.h >>conftest.$ac_ext 4651cat >>conftest.$ac_ext <<_ACEOF 4652/* end confdefs.h. */ 4653#include <ac_nonexistent.h> 4654_ACEOF 4655if { (ac_try="$ac_cpp conftest.$ac_ext" 4656case "(($ac_try" in 4657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4658 *) ac_try_echo=$ac_try;; 4659esac 4660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4661 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4662 ac_status=$? 4663 grep -v '^ *+' conftest.er1 >conftest.err 4664 rm -f conftest.er1 4665 cat conftest.err >&5 4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4667 (exit $ac_status); } >/dev/null && { 4668 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4669 test ! -s conftest.err 4670 }; then 4671 # Broken: success on invalid input. 4672continue 4673else 4674 echo "$as_me: failed program was:" >&5 4675sed 's/^/| /' conftest.$ac_ext >&5 4676 4677 # Passes both tests. 4678ac_preproc_ok=: 4679break 4680fi 4681 4682rm -f conftest.err conftest.$ac_ext 4683 4684done 4685# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4686rm -f conftest.err conftest.$ac_ext 4687if $ac_preproc_ok; then 4688 : 4689else 4690 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4691See \`config.log' for more details." >&5 4692echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4693See \`config.log' for more details." >&2;} 4694 { (exit 1); exit 1; }; } 4695fi 4696 4697ac_ext=c 4698ac_cpp='$CPP $CPPFLAGS' 4699ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4700ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4701ac_compiler_gnu=$ac_cv_c_compiler_gnu 4702 4703 4704{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4705echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4706if test "${ac_cv_header_stdc+set}" = set; then 4707 echo $ECHO_N "(cached) $ECHO_C" >&6 4708else 4709 cat >conftest.$ac_ext <<_ACEOF 4710/* confdefs.h. */ 4711_ACEOF 4712cat confdefs.h >>conftest.$ac_ext 4713cat >>conftest.$ac_ext <<_ACEOF 4714/* end confdefs.h. */ 4715#include <stdlib.h> 4716#include <stdarg.h> 4717#include <string.h> 4718#include <float.h> 4719 4720int 4721main () 4722{ 4723 4724 ; 4725 return 0; 4726} 4727_ACEOF 4728rm -f conftest.$ac_objext 4729if { (ac_try="$ac_compile" 4730case "(($ac_try" in 4731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4732 *) ac_try_echo=$ac_try;; 4733esac 4734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4735 (eval "$ac_compile") 2>conftest.er1 4736 ac_status=$? 4737 grep -v '^ *+' conftest.er1 >conftest.err 4738 rm -f conftest.er1 4739 cat conftest.err >&5 4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4741 (exit $ac_status); } && { 4742 test -z "$ac_c_werror_flag" || 4743 test ! -s conftest.err 4744 } && test -s conftest.$ac_objext; then 4745 ac_cv_header_stdc=yes 4746else 4747 echo "$as_me: failed program was:" >&5 4748sed 's/^/| /' conftest.$ac_ext >&5 4749 4750 ac_cv_header_stdc=no 4751fi 4752 4753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4754 4755if test $ac_cv_header_stdc = yes; then 4756 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4757 cat >conftest.$ac_ext <<_ACEOF 4758/* confdefs.h. */ 4759_ACEOF 4760cat confdefs.h >>conftest.$ac_ext 4761cat >>conftest.$ac_ext <<_ACEOF 4762/* end confdefs.h. */ 4763#include <string.h> 4764 4765_ACEOF 4766if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4767 $EGREP "memchr" >/dev/null 2>&1; then 4768 : 4769else 4770 ac_cv_header_stdc=no 4771fi 4772rm -f conftest* 4773 4774fi 4775 4776if test $ac_cv_header_stdc = yes; then 4777 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4778 cat >conftest.$ac_ext <<_ACEOF 4779/* confdefs.h. */ 4780_ACEOF 4781cat confdefs.h >>conftest.$ac_ext 4782cat >>conftest.$ac_ext <<_ACEOF 4783/* end confdefs.h. */ 4784#include <stdlib.h> 4785 4786_ACEOF 4787if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4788 $EGREP "free" >/dev/null 2>&1; then 4789 : 4790else 4791 ac_cv_header_stdc=no 4792fi 4793rm -f conftest* 4794 4795fi 4796 4797if test $ac_cv_header_stdc = yes; then 4798 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4799 if test "$cross_compiling" = yes; then 4800 : 4801else 4802 cat >conftest.$ac_ext <<_ACEOF 4803/* confdefs.h. */ 4804_ACEOF 4805cat confdefs.h >>conftest.$ac_ext 4806cat >>conftest.$ac_ext <<_ACEOF 4807/* end confdefs.h. */ 4808#include <ctype.h> 4809#include <stdlib.h> 4810#if ((' ' & 0x0FF) == 0x020) 4811# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4812# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4813#else 4814# define ISLOWER(c) \ 4815 (('a' <= (c) && (c) <= 'i') \ 4816 || ('j' <= (c) && (c) <= 'r') \ 4817 || ('s' <= (c) && (c) <= 'z')) 4818# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4819#endif 4820 4821#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4822int 4823main () 4824{ 4825 int i; 4826 for (i = 0; i < 256; i++) 4827 if (XOR (islower (i), ISLOWER (i)) 4828 || toupper (i) != TOUPPER (i)) 4829 return 2; 4830 return 0; 4831} 4832_ACEOF 4833rm -f conftest$ac_exeext 4834if { (ac_try="$ac_link" 4835case "(($ac_try" in 4836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4837 *) ac_try_echo=$ac_try;; 4838esac 4839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4840 (eval "$ac_link") 2>&5 4841 ac_status=$? 4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4843 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4844 { (case "(($ac_try" in 4845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4846 *) ac_try_echo=$ac_try;; 4847esac 4848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4849 (eval "$ac_try") 2>&5 4850 ac_status=$? 4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4852 (exit $ac_status); }; }; then 4853 : 4854else 4855 echo "$as_me: program exited with status $ac_status" >&5 4856echo "$as_me: failed program was:" >&5 4857sed 's/^/| /' conftest.$ac_ext >&5 4858 4859( exit $ac_status ) 4860ac_cv_header_stdc=no 4861fi 4862rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4863fi 4864 4865 4866fi 4867fi 4868{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4869echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 4870if test $ac_cv_header_stdc = yes; then 4871 4872cat >>confdefs.h <<\_ACEOF 4873#define STDC_HEADERS 1 4874_ACEOF 4875 4876fi 4877 4878# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4889 inttypes.h stdint.h unistd.h 4890do 4891as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4892{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4893echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4894if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4895 echo $ECHO_N "(cached) $ECHO_C" >&6 4896else 4897 cat >conftest.$ac_ext <<_ACEOF 4898/* confdefs.h. */ 4899_ACEOF 4900cat confdefs.h >>conftest.$ac_ext 4901cat >>conftest.$ac_ext <<_ACEOF 4902/* end confdefs.h. */ 4903$ac_includes_default 4904 4905#include <$ac_header> 4906_ACEOF 4907rm -f conftest.$ac_objext 4908if { (ac_try="$ac_compile" 4909case "(($ac_try" in 4910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4911 *) ac_try_echo=$ac_try;; 4912esac 4913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4914 (eval "$ac_compile") 2>conftest.er1 4915 ac_status=$? 4916 grep -v '^ *+' conftest.er1 >conftest.err 4917 rm -f conftest.er1 4918 cat conftest.err >&5 4919 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4920 (exit $ac_status); } && { 4921 test -z "$ac_c_werror_flag" || 4922 test ! -s conftest.err 4923 } && test -s conftest.$ac_objext; then 4924 eval "$as_ac_Header=yes" 4925else 4926 echo "$as_me: failed program was:" >&5 4927sed 's/^/| /' conftest.$ac_ext >&5 4928 4929 eval "$as_ac_Header=no" 4930fi 4931 4932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4933fi 4934ac_res=`eval echo '${'$as_ac_Header'}'` 4935 { echo "$as_me:$LINENO: result: $ac_res" >&5 4936echo "${ECHO_T}$ac_res" >&6; } 4937if test `eval echo '${'$as_ac_Header'}'` = yes; then 4938 cat >>confdefs.h <<_ACEOF 4939#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4940_ACEOF 4941 4942fi 4943 4944done 4945 4946 4947 4948for ac_header in dlfcn.h 4949do 4950as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4951if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4952 { echo "$as_me:$LINENO: checking for $ac_header" >&5 4953echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4954if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4955 echo $ECHO_N "(cached) $ECHO_C" >&6 4956fi 4957ac_res=`eval echo '${'$as_ac_Header'}'` 4958 { echo "$as_me:$LINENO: result: $ac_res" >&5 4959echo "${ECHO_T}$ac_res" >&6; } 4960else 4961 # Is the header compilable? 4962{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 4963echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 4964cat >conftest.$ac_ext <<_ACEOF 4965/* confdefs.h. */ 4966_ACEOF 4967cat confdefs.h >>conftest.$ac_ext 4968cat >>conftest.$ac_ext <<_ACEOF 4969/* end confdefs.h. */ 4970$ac_includes_default 4971#include <$ac_header> 4972_ACEOF 4973rm -f conftest.$ac_objext 4974if { (ac_try="$ac_compile" 4975case "(($ac_try" in 4976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4977 *) ac_try_echo=$ac_try;; 4978esac 4979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4980 (eval "$ac_compile") 2>conftest.er1 4981 ac_status=$? 4982 grep -v '^ *+' conftest.er1 >conftest.err 4983 rm -f conftest.er1 4984 cat conftest.err >&5 4985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4986 (exit $ac_status); } && { 4987 test -z "$ac_c_werror_flag" || 4988 test ! -s conftest.err 4989 } && test -s conftest.$ac_objext; then 4990 ac_header_compiler=yes 4991else 4992 echo "$as_me: failed program was:" >&5 4993sed 's/^/| /' conftest.$ac_ext >&5 4994 4995 ac_header_compiler=no 4996fi 4997 4998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4999{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5000echo "${ECHO_T}$ac_header_compiler" >&6; } 5001 5002# Is the header present? 5003{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 5004echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 5005cat >conftest.$ac_ext <<_ACEOF 5006/* confdefs.h. */ 5007_ACEOF 5008cat confdefs.h >>conftest.$ac_ext 5009cat >>conftest.$ac_ext <<_ACEOF 5010/* end confdefs.h. */ 5011#include <$ac_header> 5012_ACEOF 5013if { (ac_try="$ac_cpp conftest.$ac_ext" 5014case "(($ac_try" in 5015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5016 *) ac_try_echo=$ac_try;; 5017esac 5018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5019 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5020 ac_status=$? 5021 grep -v '^ *+' conftest.er1 >conftest.err 5022 rm -f conftest.er1 5023 cat conftest.err >&5 5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5025 (exit $ac_status); } >/dev/null && { 5026 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5027 test ! -s conftest.err 5028 }; then 5029 ac_header_preproc=yes 5030else 5031 echo "$as_me: failed program was:" >&5 5032sed 's/^/| /' conftest.$ac_ext >&5 5033 5034 ac_header_preproc=no 5035fi 5036 5037rm -f conftest.err conftest.$ac_ext 5038{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5039echo "${ECHO_T}$ac_header_preproc" >&6; } 5040 5041# So? What about this header? 5042case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5043 yes:no: ) 5044 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5045echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5046 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5047echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5048 ac_header_preproc=yes 5049 ;; 5050 no:yes:* ) 5051 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5052echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5053 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5054echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5055 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5056echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5057 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5058echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5059 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5060echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5061 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5062echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5063 5064 ;; 5065esac 5066{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5067echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5068if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5069 echo $ECHO_N "(cached) $ECHO_C" >&6 5070else 5071 eval "$as_ac_Header=\$ac_header_preproc" 5072fi 5073ac_res=`eval echo '${'$as_ac_Header'}'` 5074 { echo "$as_me:$LINENO: result: $ac_res" >&5 5075echo "${ECHO_T}$ac_res" >&6; } 5076 5077fi 5078if test `eval echo '${'$as_ac_Header'}'` = yes; then 5079 cat >>confdefs.h <<_ACEOF 5080#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5081_ACEOF 5082 5083fi 5084 5085done 5086 5087ac_ext=cpp 5088ac_cpp='$CXXCPP $CPPFLAGS' 5089ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5090ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5091ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5092if test -z "$CXX"; then 5093 if test -n "$CCC"; then 5094 CXX=$CCC 5095 else 5096 if test -n "$ac_tool_prefix"; then 5097 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5098 do 5099 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5100set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5101{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5102echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5103if test "${ac_cv_prog_CXX+set}" = set; then 5104 echo $ECHO_N "(cached) $ECHO_C" >&6 5105else 5106 if test -n "$CXX"; then 5107 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5108else 5109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5110for as_dir in $PATH 5111do 5112 IFS=$as_save_IFS 5113 test -z "$as_dir" && as_dir=. 5114 for ac_exec_ext in '' $ac_executable_extensions; do 5115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5116 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5118 break 2 5119 fi 5120done 5121done 5122IFS=$as_save_IFS 5123 5124fi 5125fi 5126CXX=$ac_cv_prog_CXX 5127if test -n "$CXX"; then 5128 { echo "$as_me:$LINENO: result: $CXX" >&5 5129echo "${ECHO_T}$CXX" >&6; } 5130else 5131 { echo "$as_me:$LINENO: result: no" >&5 5132echo "${ECHO_T}no" >&6; } 5133fi 5134 5135 5136 test -n "$CXX" && break 5137 done 5138fi 5139if test -z "$CXX"; then 5140 ac_ct_CXX=$CXX 5141 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5142do 5143 # Extract the first word of "$ac_prog", so it can be a program name with args. 5144set dummy $ac_prog; ac_word=$2 5145{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5146echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5147if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 5148 echo $ECHO_N "(cached) $ECHO_C" >&6 5149else 5150 if test -n "$ac_ct_CXX"; then 5151 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5152else 5153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5154for as_dir in $PATH 5155do 5156 IFS=$as_save_IFS 5157 test -z "$as_dir" && as_dir=. 5158 for ac_exec_ext in '' $ac_executable_extensions; do 5159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5160 ac_cv_prog_ac_ct_CXX="$ac_prog" 5161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5162 break 2 5163 fi 5164done 5165done 5166IFS=$as_save_IFS 5167 5168fi 5169fi 5170ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5171if test -n "$ac_ct_CXX"; then 5172 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 5173echo "${ECHO_T}$ac_ct_CXX" >&6; } 5174else 5175 { echo "$as_me:$LINENO: result: no" >&5 5176echo "${ECHO_T}no" >&6; } 5177fi 5178 5179 5180 test -n "$ac_ct_CXX" && break 5181done 5182 5183 if test "x$ac_ct_CXX" = x; then 5184 CXX="g++" 5185 else 5186 case $cross_compiling:$ac_tool_warned in 5187yes:) 5188{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5189whose name does not start with the host triplet. If you think this 5190configuration is useful to you, please write to autoconf@gnu.org." >&5 5191echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5192whose name does not start with the host triplet. If you think this 5193configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5194ac_tool_warned=yes ;; 5195esac 5196 CXX=$ac_ct_CXX 5197 fi 5198fi 5199 5200 fi 5201fi 5202# Provide some information about the compiler. 5203echo "$as_me:$LINENO: checking for C++ compiler version" >&5 5204ac_compiler=`set X $ac_compile; echo $2` 5205{ (ac_try="$ac_compiler --version >&5" 5206case "(($ac_try" in 5207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5208 *) ac_try_echo=$ac_try;; 5209esac 5210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5211 (eval "$ac_compiler --version >&5") 2>&5 5212 ac_status=$? 5213 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5214 (exit $ac_status); } 5215{ (ac_try="$ac_compiler -v >&5" 5216case "(($ac_try" in 5217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5218 *) ac_try_echo=$ac_try;; 5219esac 5220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5221 (eval "$ac_compiler -v >&5") 2>&5 5222 ac_status=$? 5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5224 (exit $ac_status); } 5225{ (ac_try="$ac_compiler -V >&5" 5226case "(($ac_try" in 5227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5228 *) ac_try_echo=$ac_try;; 5229esac 5230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5231 (eval "$ac_compiler -V >&5") 2>&5 5232 ac_status=$? 5233 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5234 (exit $ac_status); } 5235 5236{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5237echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 5238if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5239 echo $ECHO_N "(cached) $ECHO_C" >&6 5240else 5241 cat >conftest.$ac_ext <<_ACEOF 5242/* confdefs.h. */ 5243_ACEOF 5244cat confdefs.h >>conftest.$ac_ext 5245cat >>conftest.$ac_ext <<_ACEOF 5246/* end confdefs.h. */ 5247 5248int 5249main () 5250{ 5251#ifndef __GNUC__ 5252 choke me 5253#endif 5254 5255 ; 5256 return 0; 5257} 5258_ACEOF 5259rm -f conftest.$ac_objext 5260if { (ac_try="$ac_compile" 5261case "(($ac_try" in 5262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5263 *) ac_try_echo=$ac_try;; 5264esac 5265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5266 (eval "$ac_compile") 2>conftest.er1 5267 ac_status=$? 5268 grep -v '^ *+' conftest.er1 >conftest.err 5269 rm -f conftest.er1 5270 cat conftest.err >&5 5271 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5272 (exit $ac_status); } && { 5273 test -z "$ac_cxx_werror_flag" || 5274 test ! -s conftest.err 5275 } && test -s conftest.$ac_objext; then 5276 ac_compiler_gnu=yes 5277else 5278 echo "$as_me: failed program was:" >&5 5279sed 's/^/| /' conftest.$ac_ext >&5 5280 5281 ac_compiler_gnu=no 5282fi 5283 5284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5285ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5286 5287fi 5288{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 5289echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 5290GXX=`test $ac_compiler_gnu = yes && echo yes` 5291ac_test_CXXFLAGS=${CXXFLAGS+set} 5292ac_save_CXXFLAGS=$CXXFLAGS 5293{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 5294echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 5295if test "${ac_cv_prog_cxx_g+set}" = set; then 5296 echo $ECHO_N "(cached) $ECHO_C" >&6 5297else 5298 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5299 ac_cxx_werror_flag=yes 5300 ac_cv_prog_cxx_g=no 5301 CXXFLAGS="-g" 5302 cat >conftest.$ac_ext <<_ACEOF 5303/* confdefs.h. */ 5304_ACEOF 5305cat confdefs.h >>conftest.$ac_ext 5306cat >>conftest.$ac_ext <<_ACEOF 5307/* end confdefs.h. */ 5308 5309int 5310main () 5311{ 5312 5313 ; 5314 return 0; 5315} 5316_ACEOF 5317rm -f conftest.$ac_objext 5318if { (ac_try="$ac_compile" 5319case "(($ac_try" in 5320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5321 *) ac_try_echo=$ac_try;; 5322esac 5323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5324 (eval "$ac_compile") 2>conftest.er1 5325 ac_status=$? 5326 grep -v '^ *+' conftest.er1 >conftest.err 5327 rm -f conftest.er1 5328 cat conftest.err >&5 5329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5330 (exit $ac_status); } && { 5331 test -z "$ac_cxx_werror_flag" || 5332 test ! -s conftest.err 5333 } && test -s conftest.$ac_objext; then 5334 ac_cv_prog_cxx_g=yes 5335else 5336 echo "$as_me: failed program was:" >&5 5337sed 's/^/| /' conftest.$ac_ext >&5 5338 5339 CXXFLAGS="" 5340 cat >conftest.$ac_ext <<_ACEOF 5341/* confdefs.h. */ 5342_ACEOF 5343cat confdefs.h >>conftest.$ac_ext 5344cat >>conftest.$ac_ext <<_ACEOF 5345/* end confdefs.h. */ 5346 5347int 5348main () 5349{ 5350 5351 ; 5352 return 0; 5353} 5354_ACEOF 5355rm -f conftest.$ac_objext 5356if { (ac_try="$ac_compile" 5357case "(($ac_try" in 5358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5359 *) ac_try_echo=$ac_try;; 5360esac 5361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5362 (eval "$ac_compile") 2>conftest.er1 5363 ac_status=$? 5364 grep -v '^ *+' conftest.er1 >conftest.err 5365 rm -f conftest.er1 5366 cat conftest.err >&5 5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5368 (exit $ac_status); } && { 5369 test -z "$ac_cxx_werror_flag" || 5370 test ! -s conftest.err 5371 } && test -s conftest.$ac_objext; then 5372 : 5373else 5374 echo "$as_me: failed program was:" >&5 5375sed 's/^/| /' conftest.$ac_ext >&5 5376 5377 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5378 CXXFLAGS="-g" 5379 cat >conftest.$ac_ext <<_ACEOF 5380/* confdefs.h. */ 5381_ACEOF 5382cat confdefs.h >>conftest.$ac_ext 5383cat >>conftest.$ac_ext <<_ACEOF 5384/* end confdefs.h. */ 5385 5386int 5387main () 5388{ 5389 5390 ; 5391 return 0; 5392} 5393_ACEOF 5394rm -f conftest.$ac_objext 5395if { (ac_try="$ac_compile" 5396case "(($ac_try" in 5397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5398 *) ac_try_echo=$ac_try;; 5399esac 5400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5401 (eval "$ac_compile") 2>conftest.er1 5402 ac_status=$? 5403 grep -v '^ *+' conftest.er1 >conftest.err 5404 rm -f conftest.er1 5405 cat conftest.err >&5 5406 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5407 (exit $ac_status); } && { 5408 test -z "$ac_cxx_werror_flag" || 5409 test ! -s conftest.err 5410 } && test -s conftest.$ac_objext; then 5411 ac_cv_prog_cxx_g=yes 5412else 5413 echo "$as_me: failed program was:" >&5 5414sed 's/^/| /' conftest.$ac_ext >&5 5415 5416 5417fi 5418 5419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5420fi 5421 5422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5423fi 5424 5425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5426 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5427fi 5428{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 5429echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 5430if test "$ac_test_CXXFLAGS" = set; then 5431 CXXFLAGS=$ac_save_CXXFLAGS 5432elif test $ac_cv_prog_cxx_g = yes; then 5433 if test "$GXX" = yes; then 5434 CXXFLAGS="-g -O2" 5435 else 5436 CXXFLAGS="-g" 5437 fi 5438else 5439 if test "$GXX" = yes; then 5440 CXXFLAGS="-O2" 5441 else 5442 CXXFLAGS= 5443 fi 5444fi 5445ac_ext=cpp 5446ac_cpp='$CXXCPP $CPPFLAGS' 5447ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5448ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5449ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5450 5451depcc="$CXX" am_compiler_list= 5452 5453{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5454echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 5455if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 5456 echo $ECHO_N "(cached) $ECHO_C" >&6 5457else 5458 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5459 # We make a subdir and do the tests there. Otherwise we can end up 5460 # making bogus files that we don't know about and never remove. For 5461 # instance it was reported that on HP-UX the gcc test will end up 5462 # making a dummy file named `D' -- because `-MD' means `put the output 5463 # in D'. 5464 mkdir conftest.dir 5465 # Copy depcomp to subdir because otherwise we won't find it if we're 5466 # using a relative directory. 5467 cp "$am_depcomp" conftest.dir 5468 cd conftest.dir 5469 # We will build objects and dependencies in a subdirectory because 5470 # it helps to detect inapplicable dependency modes. For instance 5471 # both Tru64's cc and ICC support -MD to output dependencies as a 5472 # side effect of compilation, but ICC will put the dependencies in 5473 # the current directory while Tru64 will put them in the object 5474 # directory. 5475 mkdir sub 5476 5477 am_cv_CXX_dependencies_compiler_type=none 5478 if test "$am_compiler_list" = ""; then 5479 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5480 fi 5481 for depmode in $am_compiler_list; do 5482 # Setup a source with many dependencies, because some compilers 5483 # like to wrap large dependency lists on column 80 (with \), and 5484 # we should not choose a depcomp mode which is confused by this. 5485 # 5486 # We need to recreate these files for each test, as the compiler may 5487 # overwrite some of them when testing with obscure command lines. 5488 # This happens at least with the AIX C compiler. 5489 : > sub/conftest.c 5490 for i in 1 2 3 4 5 6; do 5491 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5492 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5493 # Solaris 8's {/usr,}/bin/sh. 5494 touch sub/conftst$i.h 5495 done 5496 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5497 5498 case $depmode in 5499 nosideeffect) 5500 # after this tag, mechanisms are not by side-effect, so they'll 5501 # only be used when explicitly requested 5502 if test "x$enable_dependency_tracking" = xyes; then 5503 continue 5504 else 5505 break 5506 fi 5507 ;; 5508 none) break ;; 5509 esac 5510 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5511 # mode. It turns out that the SunPro C++ compiler does not properly 5512 # handle `-M -o', and we need to detect this. 5513 if depmode=$depmode \ 5514 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5515 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5516 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5517 >/dev/null 2>conftest.err && 5518 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5519 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5520 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5521 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5522 # icc doesn't choke on unknown options, it will just issue warnings 5523 # or remarks (even with -Werror). So we grep stderr for any message 5524 # that says an option was ignored or not supported. 5525 # When given -MP, icc 7.0 and 7.1 complain thusly: 5526 # icc: Command line warning: ignoring option '-M'; no argument required 5527 # The diagnosis changed in icc 8.0: 5528 # icc: Command line remark: option '-MP' not supported 5529 if (grep 'ignoring option' conftest.err || 5530 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5531 am_cv_CXX_dependencies_compiler_type=$depmode 5532 break 5533 fi 5534 fi 5535 done 5536 5537 cd .. 5538 rm -rf conftest.dir 5539else 5540 am_cv_CXX_dependencies_compiler_type=none 5541fi 5542 5543fi 5544{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 5545echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } 5546CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5547 5548 if 5549 test "x$enable_dependency_tracking" != xno \ 5550 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5551 am__fastdepCXX_TRUE= 5552 am__fastdepCXX_FALSE='#' 5553else 5554 am__fastdepCXX_TRUE='#' 5555 am__fastdepCXX_FALSE= 5556fi 5557 5558 5559 5560 5561if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5562 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5563 (test "X$CXX" != "Xg++"))) ; then 5564 ac_ext=cpp 5565ac_cpp='$CXXCPP $CPPFLAGS' 5566ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5567ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5568ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5569{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5570echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 5571if test -z "$CXXCPP"; then 5572 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5573 echo $ECHO_N "(cached) $ECHO_C" >&6 5574else 5575 # Double quotes because CXXCPP needs to be expanded 5576 for CXXCPP in "$CXX -E" "/lib/cpp" 5577 do 5578 ac_preproc_ok=false 5579for ac_cxx_preproc_warn_flag in '' yes 5580do 5581 # Use a header file that comes with gcc, so configuring glibc 5582 # with a fresh cross-compiler works. 5583 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5584 # <limits.h> exists even on freestanding compilers. 5585 # On the NeXT, cc -E runs the code through the compiler's parser, 5586 # not just through cpp. "Syntax error" is here to catch this case. 5587 cat >conftest.$ac_ext <<_ACEOF 5588/* confdefs.h. */ 5589_ACEOF 5590cat confdefs.h >>conftest.$ac_ext 5591cat >>conftest.$ac_ext <<_ACEOF 5592/* end confdefs.h. */ 5593#ifdef __STDC__ 5594# include <limits.h> 5595#else 5596# include <assert.h> 5597#endif 5598 Syntax error 5599_ACEOF 5600if { (ac_try="$ac_cpp conftest.$ac_ext" 5601case "(($ac_try" in 5602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5603 *) ac_try_echo=$ac_try;; 5604esac 5605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5606 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5607 ac_status=$? 5608 grep -v '^ *+' conftest.er1 >conftest.err 5609 rm -f conftest.er1 5610 cat conftest.err >&5 5611 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5612 (exit $ac_status); } >/dev/null && { 5613 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5614 test ! -s conftest.err 5615 }; then 5616 : 5617else 5618 echo "$as_me: failed program was:" >&5 5619sed 's/^/| /' conftest.$ac_ext >&5 5620 5621 # Broken: fails on valid input. 5622continue 5623fi 5624 5625rm -f conftest.err conftest.$ac_ext 5626 5627 # OK, works on sane cases. Now check whether nonexistent headers 5628 # can be detected and how. 5629 cat >conftest.$ac_ext <<_ACEOF 5630/* confdefs.h. */ 5631_ACEOF 5632cat confdefs.h >>conftest.$ac_ext 5633cat >>conftest.$ac_ext <<_ACEOF 5634/* end confdefs.h. */ 5635#include <ac_nonexistent.h> 5636_ACEOF 5637if { (ac_try="$ac_cpp conftest.$ac_ext" 5638case "(($ac_try" in 5639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5640 *) ac_try_echo=$ac_try;; 5641esac 5642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5643 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5644 ac_status=$? 5645 grep -v '^ *+' conftest.er1 >conftest.err 5646 rm -f conftest.er1 5647 cat conftest.err >&5 5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5649 (exit $ac_status); } >/dev/null && { 5650 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5651 test ! -s conftest.err 5652 }; then 5653 # Broken: success on invalid input. 5654continue 5655else 5656 echo "$as_me: failed program was:" >&5 5657sed 's/^/| /' conftest.$ac_ext >&5 5658 5659 # Passes both tests. 5660ac_preproc_ok=: 5661break 5662fi 5663 5664rm -f conftest.err conftest.$ac_ext 5665 5666done 5667# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5668rm -f conftest.err conftest.$ac_ext 5669if $ac_preproc_ok; then 5670 break 5671fi 5672 5673 done 5674 ac_cv_prog_CXXCPP=$CXXCPP 5675 5676fi 5677 CXXCPP=$ac_cv_prog_CXXCPP 5678else 5679 ac_cv_prog_CXXCPP=$CXXCPP 5680fi 5681{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 5682echo "${ECHO_T}$CXXCPP" >&6; } 5683ac_preproc_ok=false 5684for ac_cxx_preproc_warn_flag in '' yes 5685do 5686 # Use a header file that comes with gcc, so configuring glibc 5687 # with a fresh cross-compiler works. 5688 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5689 # <limits.h> exists even on freestanding compilers. 5690 # On the NeXT, cc -E runs the code through the compiler's parser, 5691 # not just through cpp. "Syntax error" is here to catch this case. 5692 cat >conftest.$ac_ext <<_ACEOF 5693/* confdefs.h. */ 5694_ACEOF 5695cat confdefs.h >>conftest.$ac_ext 5696cat >>conftest.$ac_ext <<_ACEOF 5697/* end confdefs.h. */ 5698#ifdef __STDC__ 5699# include <limits.h> 5700#else 5701# include <assert.h> 5702#endif 5703 Syntax error 5704_ACEOF 5705if { (ac_try="$ac_cpp conftest.$ac_ext" 5706case "(($ac_try" in 5707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5708 *) ac_try_echo=$ac_try;; 5709esac 5710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5712 ac_status=$? 5713 grep -v '^ *+' conftest.er1 >conftest.err 5714 rm -f conftest.er1 5715 cat conftest.err >&5 5716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5717 (exit $ac_status); } >/dev/null && { 5718 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5719 test ! -s conftest.err 5720 }; then 5721 : 5722else 5723 echo "$as_me: failed program was:" >&5 5724sed 's/^/| /' conftest.$ac_ext >&5 5725 5726 # Broken: fails on valid input. 5727continue 5728fi 5729 5730rm -f conftest.err conftest.$ac_ext 5731 5732 # OK, works on sane cases. Now check whether nonexistent headers 5733 # can be detected and how. 5734 cat >conftest.$ac_ext <<_ACEOF 5735/* confdefs.h. */ 5736_ACEOF 5737cat confdefs.h >>conftest.$ac_ext 5738cat >>conftest.$ac_ext <<_ACEOF 5739/* end confdefs.h. */ 5740#include <ac_nonexistent.h> 5741_ACEOF 5742if { (ac_try="$ac_cpp conftest.$ac_ext" 5743case "(($ac_try" in 5744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5745 *) ac_try_echo=$ac_try;; 5746esac 5747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5748 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5749 ac_status=$? 5750 grep -v '^ *+' conftest.er1 >conftest.err 5751 rm -f conftest.er1 5752 cat conftest.err >&5 5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5754 (exit $ac_status); } >/dev/null && { 5755 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5756 test ! -s conftest.err 5757 }; then 5758 # Broken: success on invalid input. 5759continue 5760else 5761 echo "$as_me: failed program was:" >&5 5762sed 's/^/| /' conftest.$ac_ext >&5 5763 5764 # Passes both tests. 5765ac_preproc_ok=: 5766break 5767fi 5768 5769rm -f conftest.err conftest.$ac_ext 5770 5771done 5772# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5773rm -f conftest.err conftest.$ac_ext 5774if $ac_preproc_ok; then 5775 : 5776else 5777 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5778See \`config.log' for more details." >&5 5779echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5780See \`config.log' for more details." >&2;} 5781 { (exit 1); exit 1; }; } 5782fi 5783 5784ac_ext=cpp 5785ac_cpp='$CXXCPP $CPPFLAGS' 5786ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5787ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5788ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5789 5790fi 5791 5792 5793ac_ext=f 5794ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5795ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5796ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5797if test -n "$ac_tool_prefix"; then 5798 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 5799 do 5800 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5801set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5802{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5803echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5804if test "${ac_cv_prog_F77+set}" = set; then 5805 echo $ECHO_N "(cached) $ECHO_C" >&6 5806else 5807 if test -n "$F77"; then 5808 ac_cv_prog_F77="$F77" # Let the user override the test. 5809else 5810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5811for as_dir in $PATH 5812do 5813 IFS=$as_save_IFS 5814 test -z "$as_dir" && as_dir=. 5815 for ac_exec_ext in '' $ac_executable_extensions; do 5816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5817 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 5818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5819 break 2 5820 fi 5821done 5822done 5823IFS=$as_save_IFS 5824 5825fi 5826fi 5827F77=$ac_cv_prog_F77 5828if test -n "$F77"; then 5829 { echo "$as_me:$LINENO: result: $F77" >&5 5830echo "${ECHO_T}$F77" >&6; } 5831else 5832 { echo "$as_me:$LINENO: result: no" >&5 5833echo "${ECHO_T}no" >&6; } 5834fi 5835 5836 5837 test -n "$F77" && break 5838 done 5839fi 5840if test -z "$F77"; then 5841 ac_ct_F77=$F77 5842 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 5843do 5844 # Extract the first word of "$ac_prog", so it can be a program name with args. 5845set dummy $ac_prog; ac_word=$2 5846{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5847echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5848if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 5849 echo $ECHO_N "(cached) $ECHO_C" >&6 5850else 5851 if test -n "$ac_ct_F77"; then 5852 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 5853else 5854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5855for as_dir in $PATH 5856do 5857 IFS=$as_save_IFS 5858 test -z "$as_dir" && as_dir=. 5859 for ac_exec_ext in '' $ac_executable_extensions; do 5860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5861 ac_cv_prog_ac_ct_F77="$ac_prog" 5862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5863 break 2 5864 fi 5865done 5866done 5867IFS=$as_save_IFS 5868 5869fi 5870fi 5871ac_ct_F77=$ac_cv_prog_ac_ct_F77 5872if test -n "$ac_ct_F77"; then 5873 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 5874echo "${ECHO_T}$ac_ct_F77" >&6; } 5875else 5876 { echo "$as_me:$LINENO: result: no" >&5 5877echo "${ECHO_T}no" >&6; } 5878fi 5879 5880 5881 test -n "$ac_ct_F77" && break 5882done 5883 5884 if test "x$ac_ct_F77" = x; then 5885 F77="" 5886 else 5887 case $cross_compiling:$ac_tool_warned in 5888yes:) 5889{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5890whose name does not start with the host triplet. If you think this 5891configuration is useful to you, please write to autoconf@gnu.org." >&5 5892echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5893whose name does not start with the host triplet. If you think this 5894configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5895ac_tool_warned=yes ;; 5896esac 5897 F77=$ac_ct_F77 5898 fi 5899fi 5900 5901 5902# Provide some information about the compiler. 5903echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 5904ac_compiler=`set X $ac_compile; echo $2` 5905{ (ac_try="$ac_compiler --version >&5" 5906case "(($ac_try" in 5907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5908 *) ac_try_echo=$ac_try;; 5909esac 5910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5911 (eval "$ac_compiler --version >&5") 2>&5 5912 ac_status=$? 5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5914 (exit $ac_status); } 5915{ (ac_try="$ac_compiler -v >&5" 5916case "(($ac_try" in 5917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5918 *) ac_try_echo=$ac_try;; 5919esac 5920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5921 (eval "$ac_compiler -v >&5") 2>&5 5922 ac_status=$? 5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5924 (exit $ac_status); } 5925{ (ac_try="$ac_compiler -V >&5" 5926case "(($ac_try" in 5927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5928 *) ac_try_echo=$ac_try;; 5929esac 5930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5931 (eval "$ac_compiler -V >&5") 2>&5 5932 ac_status=$? 5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5934 (exit $ac_status); } 5935rm -f a.out 5936 5937# If we don't use `.F' as extension, the preprocessor is not run on the 5938# input file. (Note that this only needs to work for GNU compilers.) 5939ac_save_ext=$ac_ext 5940ac_ext=F 5941{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 5942echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } 5943if test "${ac_cv_f77_compiler_gnu+set}" = set; then 5944 echo $ECHO_N "(cached) $ECHO_C" >&6 5945else 5946 cat >conftest.$ac_ext <<_ACEOF 5947 program main 5948#ifndef __GNUC__ 5949 choke me 5950#endif 5951 5952 end 5953_ACEOF 5954rm -f conftest.$ac_objext 5955if { (ac_try="$ac_compile" 5956case "(($ac_try" in 5957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5958 *) ac_try_echo=$ac_try;; 5959esac 5960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5961 (eval "$ac_compile") 2>conftest.er1 5962 ac_status=$? 5963 grep -v '^ *+' conftest.er1 >conftest.err 5964 rm -f conftest.er1 5965 cat conftest.err >&5 5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5967 (exit $ac_status); } && { 5968 test -z "$ac_f77_werror_flag" || 5969 test ! -s conftest.err 5970 } && test -s conftest.$ac_objext; then 5971 ac_compiler_gnu=yes 5972else 5973 echo "$as_me: failed program was:" >&5 5974sed 's/^/| /' conftest.$ac_ext >&5 5975 5976 ac_compiler_gnu=no 5977fi 5978 5979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5980ac_cv_f77_compiler_gnu=$ac_compiler_gnu 5981 5982fi 5983{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 5984echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } 5985ac_ext=$ac_save_ext 5986ac_test_FFLAGS=${FFLAGS+set} 5987ac_save_FFLAGS=$FFLAGS 5988FFLAGS= 5989{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 5990echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } 5991if test "${ac_cv_prog_f77_g+set}" = set; then 5992 echo $ECHO_N "(cached) $ECHO_C" >&6 5993else 5994 FFLAGS=-g 5995cat >conftest.$ac_ext <<_ACEOF 5996 program main 5997 5998 end 5999_ACEOF 6000rm -f conftest.$ac_objext 6001if { (ac_try="$ac_compile" 6002case "(($ac_try" in 6003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6004 *) ac_try_echo=$ac_try;; 6005esac 6006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6007 (eval "$ac_compile") 2>conftest.er1 6008 ac_status=$? 6009 grep -v '^ *+' conftest.er1 >conftest.err 6010 rm -f conftest.er1 6011 cat conftest.err >&5 6012 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6013 (exit $ac_status); } && { 6014 test -z "$ac_f77_werror_flag" || 6015 test ! -s conftest.err 6016 } && test -s conftest.$ac_objext; then 6017 ac_cv_prog_f77_g=yes 6018else 6019 echo "$as_me: failed program was:" >&5 6020sed 's/^/| /' conftest.$ac_ext >&5 6021 6022 ac_cv_prog_f77_g=no 6023fi 6024 6025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6026 6027fi 6028{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6029echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } 6030if test "$ac_test_FFLAGS" = set; then 6031 FFLAGS=$ac_save_FFLAGS 6032elif test $ac_cv_prog_f77_g = yes; then 6033 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6034 FFLAGS="-g -O2" 6035 else 6036 FFLAGS="-g" 6037 fi 6038else 6039 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6040 FFLAGS="-O2" 6041 else 6042 FFLAGS= 6043 fi 6044fi 6045 6046G77=`test $ac_compiler_gnu = yes && echo yes` 6047ac_ext=c 6048ac_cpp='$CPP $CPPFLAGS' 6049ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6050ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6051ac_compiler_gnu=$ac_cv_c_compiler_gnu 6052 6053 6054 6055# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6056 6057# find the maximum length of command line arguments 6058{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6059echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } 6060if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6061 echo $ECHO_N "(cached) $ECHO_C" >&6 6062else 6063 i=0 6064 teststring="ABCD" 6065 6066 case $build_os in 6067 msdosdjgpp*) 6068 # On DJGPP, this test can blow up pretty badly due to problems in libc 6069 # (any single argument exceeding 2000 bytes causes a buffer overrun 6070 # during glob expansion). Even if it were fixed, the result of this 6071 # check would be larger than it should be. 6072 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6073 ;; 6074 6075 gnu*) 6076 # Under GNU Hurd, this test is not required because there is 6077 # no limit to the length of command line arguments. 6078 # Libtool will interpret -1 as no limit whatsoever 6079 lt_cv_sys_max_cmd_len=-1; 6080 ;; 6081 6082 cygwin* | mingw*) 6083 # On Win9x/ME, this test blows up -- it succeeds, but takes 6084 # about 5 minutes as the teststring grows exponentially. 6085 # Worse, since 9x/ME are not pre-emptively multitasking, 6086 # you end up with a "frozen" computer, even though with patience 6087 # the test eventually succeeds (with a max line length of 256k). 6088 # Instead, let's just punt: use the minimum linelength reported by 6089 # all of the supported platforms: 8192 (on NT/2K/XP). 6090 lt_cv_sys_max_cmd_len=8192; 6091 ;; 6092 6093 amigaos*) 6094 # On AmigaOS with pdksh, this test takes hours, literally. 6095 # So we just punt and use a minimum line length of 8192. 6096 lt_cv_sys_max_cmd_len=8192; 6097 ;; 6098 6099 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6100 # This has been around since 386BSD, at least. Likely further. 6101 if test -x /sbin/sysctl; then 6102 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6103 elif test -x /usr/sbin/sysctl; then 6104 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6105 else 6106 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6107 fi 6108 # And add a safety zone 6109 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6110 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6111 ;; 6112 6113 interix*) 6114 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6115 lt_cv_sys_max_cmd_len=196608 6116 ;; 6117 6118 osf*) 6119 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6120 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6121 # nice to cause kernel panics so lets avoid the loop below. 6122 # First set a reasonable default. 6123 lt_cv_sys_max_cmd_len=16384 6124 # 6125 if test -x /sbin/sysconfig; then 6126 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6127 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6128 esac 6129 fi 6130 ;; 6131 sco3.2v5*) 6132 lt_cv_sys_max_cmd_len=102400 6133 ;; 6134 sysv5* | sco5v6* | sysv4.2uw2*) 6135 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6136 if test -n "$kargmax"; then 6137 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6138 else 6139 lt_cv_sys_max_cmd_len=32768 6140 fi 6141 ;; 6142 *) 6143 # If test is not a shell built-in, we'll probably end up computing a 6144 # maximum length that is only half of the actual maximum length, but 6145 # we can't tell. 6146 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6147 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6148 = "XX$teststring") >/dev/null 2>&1 && 6149 new_result=`expr "X$teststring" : ".*" 2>&1` && 6150 lt_cv_sys_max_cmd_len=$new_result && 6151 test $i != 17 # 1/2 MB should be enough 6152 do 6153 i=`expr $i + 1` 6154 teststring=$teststring$teststring 6155 done 6156 teststring= 6157 # Add a significant safety factor because C++ compilers can tack on massive 6158 # amounts of additional arguments before passing them to the linker. 6159 # It appears as though 1/2 is a usable value. 6160 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6161 ;; 6162 esac 6163 6164fi 6165 6166if test -n $lt_cv_sys_max_cmd_len ; then 6167 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6168echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } 6169else 6170 { echo "$as_me:$LINENO: result: none" >&5 6171echo "${ECHO_T}none" >&6; } 6172fi 6173 6174 6175 6176 6177# Check for command to grab the raw symbol name followed by C symbol from nm. 6178{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6179echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 6180if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6181 echo $ECHO_N "(cached) $ECHO_C" >&6 6182else 6183 6184# These are sane defaults that work on at least a few old systems. 6185# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6186 6187# Character class describing NM global symbol codes. 6188symcode='[BCDEGRST]' 6189 6190# Regexp to match symbols that can be accessed directly from C. 6191sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6192 6193# Transform an extracted symbol line into a proper C declaration 6194lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6195 6196# Transform an extracted symbol line into symbol name and symbol address 6197lt_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'" 6198 6199# Define system-specific variables. 6200case $host_os in 6201aix*) 6202 symcode='[BCDT]' 6203 ;; 6204cygwin* | mingw* | pw32*) 6205 symcode='[ABCDGISTW]' 6206 ;; 6207hpux*) # Its linker distinguishes data from code symbols 6208 if test "$host_cpu" = ia64; then 6209 symcode='[ABCDEGRST]' 6210 fi 6211 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6212 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'" 6213 ;; 6214linux*) 6215 if test "$host_cpu" = ia64; then 6216 symcode='[ABCDGIRSTW]' 6217 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6218 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'" 6219 fi 6220 ;; 6221irix* | nonstopux*) 6222 symcode='[BCDEGRST]' 6223 ;; 6224osf*) 6225 symcode='[BCDEGQRST]' 6226 ;; 6227solaris*) 6228 symcode='[BDRT]' 6229 ;; 6230sco3.2v5*) 6231 symcode='[DT]' 6232 ;; 6233sysv4.2uw2*) 6234 symcode='[DT]' 6235 ;; 6236sysv5* | sco5v6* | unixware* | OpenUNIX*) 6237 symcode='[ABDT]' 6238 ;; 6239sysv4) 6240 symcode='[DFNSTU]' 6241 ;; 6242esac 6243 6244# Handle CRLF in mingw tool chain 6245opt_cr= 6246case $build_os in 6247mingw*) 6248 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6249 ;; 6250esac 6251 6252# If we're using GNU nm, then use its standard symbol codes. 6253case `$NM -V 2>&1` in 6254*GNU* | *'with BFD'*) 6255 symcode='[ABCDGIRSTW]' ;; 6256esac 6257 6258# Try without a prefix undercore, then with it. 6259for ac_symprfx in "" "_"; do 6260 6261 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6262 symxfrm="\\1 $ac_symprfx\\2 \\2" 6263 6264 # Write the raw and C identifiers. 6265 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6266 6267 # Check to see that the pipe works correctly. 6268 pipe_works=no 6269 6270 rm -f conftest* 6271 cat > conftest.$ac_ext <<EOF 6272#ifdef __cplusplus 6273extern "C" { 6274#endif 6275char nm_test_var; 6276void nm_test_func(){} 6277#ifdef __cplusplus 6278} 6279#endif 6280int main(){nm_test_var='a';nm_test_func();return(0);} 6281EOF 6282 6283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6284 (eval $ac_compile) 2>&5 6285 ac_status=$? 6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6287 (exit $ac_status); }; then 6288 # Now try to grab the symbols. 6289 nlist=conftest.nm 6290 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6291 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6292 ac_status=$? 6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6294 (exit $ac_status); } && test -s "$nlist"; then 6295 # Try sorting and uniquifying the output. 6296 if sort "$nlist" | uniq > "$nlist"T; then 6297 mv -f "$nlist"T "$nlist" 6298 else 6299 rm -f "$nlist"T 6300 fi 6301 6302 # Make sure that we snagged all the symbols we need. 6303 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6304 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6305 cat <<EOF > conftest.$ac_ext 6306#ifdef __cplusplus 6307extern "C" { 6308#endif 6309 6310EOF 6311 # Now generate the symbol file. 6312 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6313 6314 cat <<EOF >> conftest.$ac_ext 6315#if defined (__STDC__) && __STDC__ 6316# define lt_ptr_t void * 6317#else 6318# define lt_ptr_t char * 6319# define const 6320#endif 6321 6322/* The mapping between symbol names and symbols. */ 6323const struct { 6324 const char *name; 6325 lt_ptr_t address; 6326} 6327lt_preloaded_symbols[] = 6328{ 6329EOF 6330 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6331 cat <<\EOF >> conftest.$ac_ext 6332 {0, (lt_ptr_t) 0} 6333}; 6334 6335#ifdef __cplusplus 6336} 6337#endif 6338EOF 6339 # Now try linking the two files. 6340 mv conftest.$ac_objext conftstm.$ac_objext 6341 lt_save_LIBS="$LIBS" 6342 lt_save_CFLAGS="$CFLAGS" 6343 LIBS="conftstm.$ac_objext" 6344 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6346 (eval $ac_link) 2>&5 6347 ac_status=$? 6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6349 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6350 pipe_works=yes 6351 fi 6352 LIBS="$lt_save_LIBS" 6353 CFLAGS="$lt_save_CFLAGS" 6354 else 6355 echo "cannot find nm_test_func in $nlist" >&5 6356 fi 6357 else 6358 echo "cannot find nm_test_var in $nlist" >&5 6359 fi 6360 else 6361 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6362 fi 6363 else 6364 echo "$progname: failed program was:" >&5 6365 cat conftest.$ac_ext >&5 6366 fi 6367 rm -f conftest* conftst* 6368 6369 # Do not use the global_symbol_pipe unless it works. 6370 if test "$pipe_works" = yes; then 6371 break 6372 else 6373 lt_cv_sys_global_symbol_pipe= 6374 fi 6375done 6376 6377fi 6378 6379if test -z "$lt_cv_sys_global_symbol_pipe"; then 6380 lt_cv_sys_global_symbol_to_cdecl= 6381fi 6382if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6383 { echo "$as_me:$LINENO: result: failed" >&5 6384echo "${ECHO_T}failed" >&6; } 6385else 6386 { echo "$as_me:$LINENO: result: ok" >&5 6387echo "${ECHO_T}ok" >&6; } 6388fi 6389 6390{ echo "$as_me:$LINENO: checking for objdir" >&5 6391echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 6392if test "${lt_cv_objdir+set}" = set; then 6393 echo $ECHO_N "(cached) $ECHO_C" >&6 6394else 6395 rm -f .libs 2>/dev/null 6396mkdir .libs 2>/dev/null 6397if test -d .libs; then 6398 lt_cv_objdir=.libs 6399else 6400 # MS-DOS does not allow filenames that begin with a dot. 6401 lt_cv_objdir=_libs 6402fi 6403rmdir .libs 2>/dev/null 6404fi 6405{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6406echo "${ECHO_T}$lt_cv_objdir" >&6; } 6407objdir=$lt_cv_objdir 6408 6409 6410 6411 6412 6413case $host_os in 6414aix3*) 6415 # AIX sometimes has problems with the GCC collect2 program. For some 6416 # reason, if we set the COLLECT_NAMES environment variable, the problems 6417 # vanish in a puff of smoke. 6418 if test "X${COLLECT_NAMES+set}" != Xset; then 6419 COLLECT_NAMES= 6420 export COLLECT_NAMES 6421 fi 6422 ;; 6423esac 6424 6425# Sed substitution that helps us do robust quoting. It backslashifies 6426# metacharacters that are still active within double-quoted strings. 6427Xsed='sed -e 1s/^X//' 6428sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6429 6430# Same as above, but do not quote variable references. 6431double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6432 6433# Sed substitution to delay expansion of an escaped shell variable in a 6434# double_quote_subst'ed string. 6435delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6436 6437# Sed substitution to avoid accidental globbing in evaled expressions 6438no_glob_subst='s/\*/\\\*/g' 6439 6440# Constants: 6441rm="rm -f" 6442 6443# Global variables: 6444default_ofile=libtool 6445can_build_shared=yes 6446 6447# All known linkers require a `.a' archive for static linking (except MSVC, 6448# which needs '.lib'). 6449libext=a 6450ltmain="$ac_aux_dir/ltmain.sh" 6451ofile="$default_ofile" 6452with_gnu_ld="$lt_cv_prog_gnu_ld" 6453 6454if test -n "$ac_tool_prefix"; then 6455 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6456set dummy ${ac_tool_prefix}ar; ac_word=$2 6457{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6458echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6459if test "${ac_cv_prog_AR+set}" = set; then 6460 echo $ECHO_N "(cached) $ECHO_C" >&6 6461else 6462 if test -n "$AR"; then 6463 ac_cv_prog_AR="$AR" # Let the user override the test. 6464else 6465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6466for as_dir in $PATH 6467do 6468 IFS=$as_save_IFS 6469 test -z "$as_dir" && as_dir=. 6470 for ac_exec_ext in '' $ac_executable_extensions; do 6471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6472 ac_cv_prog_AR="${ac_tool_prefix}ar" 6473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6474 break 2 6475 fi 6476done 6477done 6478IFS=$as_save_IFS 6479 6480fi 6481fi 6482AR=$ac_cv_prog_AR 6483if test -n "$AR"; then 6484 { echo "$as_me:$LINENO: result: $AR" >&5 6485echo "${ECHO_T}$AR" >&6; } 6486else 6487 { echo "$as_me:$LINENO: result: no" >&5 6488echo "${ECHO_T}no" >&6; } 6489fi 6490 6491 6492fi 6493if test -z "$ac_cv_prog_AR"; then 6494 ac_ct_AR=$AR 6495 # Extract the first word of "ar", so it can be a program name with args. 6496set dummy ar; ac_word=$2 6497{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6498echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6499if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6500 echo $ECHO_N "(cached) $ECHO_C" >&6 6501else 6502 if test -n "$ac_ct_AR"; then 6503 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6504else 6505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6506for as_dir in $PATH 6507do 6508 IFS=$as_save_IFS 6509 test -z "$as_dir" && as_dir=. 6510 for ac_exec_ext in '' $ac_executable_extensions; do 6511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6512 ac_cv_prog_ac_ct_AR="ar" 6513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6514 break 2 6515 fi 6516done 6517done 6518IFS=$as_save_IFS 6519 6520fi 6521fi 6522ac_ct_AR=$ac_cv_prog_ac_ct_AR 6523if test -n "$ac_ct_AR"; then 6524 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6525echo "${ECHO_T}$ac_ct_AR" >&6; } 6526else 6527 { echo "$as_me:$LINENO: result: no" >&5 6528echo "${ECHO_T}no" >&6; } 6529fi 6530 6531 if test "x$ac_ct_AR" = x; then 6532 AR="false" 6533 else 6534 case $cross_compiling:$ac_tool_warned in 6535yes:) 6536{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6537whose name does not start with the host triplet. If you think this 6538configuration is useful to you, please write to autoconf@gnu.org." >&5 6539echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6540whose name does not start with the host triplet. If you think this 6541configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6542ac_tool_warned=yes ;; 6543esac 6544 AR=$ac_ct_AR 6545 fi 6546else 6547 AR="$ac_cv_prog_AR" 6548fi 6549 6550if test -n "$ac_tool_prefix"; then 6551 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6552set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6553{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6554echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6555if test "${ac_cv_prog_RANLIB+set}" = set; then 6556 echo $ECHO_N "(cached) $ECHO_C" >&6 6557else 6558 if test -n "$RANLIB"; then 6559 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6560else 6561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6562for as_dir in $PATH 6563do 6564 IFS=$as_save_IFS 6565 test -z "$as_dir" && as_dir=. 6566 for ac_exec_ext in '' $ac_executable_extensions; do 6567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6568 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6570 break 2 6571 fi 6572done 6573done 6574IFS=$as_save_IFS 6575 6576fi 6577fi 6578RANLIB=$ac_cv_prog_RANLIB 6579if test -n "$RANLIB"; then 6580 { echo "$as_me:$LINENO: result: $RANLIB" >&5 6581echo "${ECHO_T}$RANLIB" >&6; } 6582else 6583 { echo "$as_me:$LINENO: result: no" >&5 6584echo "${ECHO_T}no" >&6; } 6585fi 6586 6587 6588fi 6589if test -z "$ac_cv_prog_RANLIB"; then 6590 ac_ct_RANLIB=$RANLIB 6591 # Extract the first word of "ranlib", so it can be a program name with args. 6592set dummy ranlib; ac_word=$2 6593{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6594echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6595if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6596 echo $ECHO_N "(cached) $ECHO_C" >&6 6597else 6598 if test -n "$ac_ct_RANLIB"; then 6599 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6600else 6601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6602for as_dir in $PATH 6603do 6604 IFS=$as_save_IFS 6605 test -z "$as_dir" && as_dir=. 6606 for ac_exec_ext in '' $ac_executable_extensions; do 6607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6608 ac_cv_prog_ac_ct_RANLIB="ranlib" 6609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6610 break 2 6611 fi 6612done 6613done 6614IFS=$as_save_IFS 6615 6616fi 6617fi 6618ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6619if test -n "$ac_ct_RANLIB"; then 6620 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6621echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 6622else 6623 { echo "$as_me:$LINENO: result: no" >&5 6624echo "${ECHO_T}no" >&6; } 6625fi 6626 6627 if test "x$ac_ct_RANLIB" = x; then 6628 RANLIB=":" 6629 else 6630 case $cross_compiling:$ac_tool_warned in 6631yes:) 6632{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6633whose name does not start with the host triplet. If you think this 6634configuration is useful to you, please write to autoconf@gnu.org." >&5 6635echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6636whose name does not start with the host triplet. If you think this 6637configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6638ac_tool_warned=yes ;; 6639esac 6640 RANLIB=$ac_ct_RANLIB 6641 fi 6642else 6643 RANLIB="$ac_cv_prog_RANLIB" 6644fi 6645 6646if test -n "$ac_tool_prefix"; then 6647 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6648set dummy ${ac_tool_prefix}strip; ac_word=$2 6649{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6651if test "${ac_cv_prog_STRIP+set}" = set; then 6652 echo $ECHO_N "(cached) $ECHO_C" >&6 6653else 6654 if test -n "$STRIP"; then 6655 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6656else 6657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6658for as_dir in $PATH 6659do 6660 IFS=$as_save_IFS 6661 test -z "$as_dir" && as_dir=. 6662 for ac_exec_ext in '' $ac_executable_extensions; do 6663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6664 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6666 break 2 6667 fi 6668done 6669done 6670IFS=$as_save_IFS 6671 6672fi 6673fi 6674STRIP=$ac_cv_prog_STRIP 6675if test -n "$STRIP"; then 6676 { echo "$as_me:$LINENO: result: $STRIP" >&5 6677echo "${ECHO_T}$STRIP" >&6; } 6678else 6679 { echo "$as_me:$LINENO: result: no" >&5 6680echo "${ECHO_T}no" >&6; } 6681fi 6682 6683 6684fi 6685if test -z "$ac_cv_prog_STRIP"; then 6686 ac_ct_STRIP=$STRIP 6687 # Extract the first word of "strip", so it can be a program name with args. 6688set dummy strip; ac_word=$2 6689{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6690echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6691if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6692 echo $ECHO_N "(cached) $ECHO_C" >&6 6693else 6694 if test -n "$ac_ct_STRIP"; then 6695 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6696else 6697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6698for as_dir in $PATH 6699do 6700 IFS=$as_save_IFS 6701 test -z "$as_dir" && as_dir=. 6702 for ac_exec_ext in '' $ac_executable_extensions; do 6703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6704 ac_cv_prog_ac_ct_STRIP="strip" 6705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6706 break 2 6707 fi 6708done 6709done 6710IFS=$as_save_IFS 6711 6712fi 6713fi 6714ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6715if test -n "$ac_ct_STRIP"; then 6716 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6717echo "${ECHO_T}$ac_ct_STRIP" >&6; } 6718else 6719 { echo "$as_me:$LINENO: result: no" >&5 6720echo "${ECHO_T}no" >&6; } 6721fi 6722 6723 if test "x$ac_ct_STRIP" = x; then 6724 STRIP=":" 6725 else 6726 case $cross_compiling:$ac_tool_warned in 6727yes:) 6728{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6729whose name does not start with the host triplet. If you think this 6730configuration is useful to you, please write to autoconf@gnu.org." >&5 6731echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6732whose name does not start with the host triplet. If you think this 6733configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6734ac_tool_warned=yes ;; 6735esac 6736 STRIP=$ac_ct_STRIP 6737 fi 6738else 6739 STRIP="$ac_cv_prog_STRIP" 6740fi 6741 6742 6743old_CC="$CC" 6744old_CFLAGS="$CFLAGS" 6745 6746# Set sane defaults for various variables 6747test -z "$AR" && AR=ar 6748test -z "$AR_FLAGS" && AR_FLAGS=cru 6749test -z "$AS" && AS=as 6750test -z "$CC" && CC=cc 6751test -z "$LTCC" && LTCC=$CC 6752test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 6753test -z "$DLLTOOL" && DLLTOOL=dlltool 6754test -z "$LD" && LD=ld 6755test -z "$LN_S" && LN_S="ln -s" 6756test -z "$MAGIC_CMD" && MAGIC_CMD=file 6757test -z "$NM" && NM=nm 6758test -z "$SED" && SED=sed 6759test -z "$OBJDUMP" && OBJDUMP=objdump 6760test -z "$RANLIB" && RANLIB=: 6761test -z "$STRIP" && STRIP=: 6762test -z "$ac_objext" && ac_objext=o 6763 6764# Determine commands to create old-style static archives. 6765old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 6766old_postinstall_cmds='chmod 644 $oldlib' 6767old_postuninstall_cmds= 6768 6769if test -n "$RANLIB"; then 6770 case $host_os in 6771 openbsd*) 6772 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6773 ;; 6774 *) 6775 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6776 ;; 6777 esac 6778 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6779fi 6780 6781for cc_temp in $compiler""; do 6782 case $cc_temp in 6783 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6784 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6785 \-*) ;; 6786 *) break;; 6787 esac 6788done 6789cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6790 6791 6792# Only perform the check for file, if the check method requires it 6793case $deplibs_check_method in 6794file_magic*) 6795 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6796 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 6797echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } 6798if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6799 echo $ECHO_N "(cached) $ECHO_C" >&6 6800else 6801 case $MAGIC_CMD in 6802[\\/*] | ?:[\\/]*) 6803 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6804 ;; 6805*) 6806 lt_save_MAGIC_CMD="$MAGIC_CMD" 6807 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6808 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6809 for ac_dir in $ac_dummy; do 6810 IFS="$lt_save_ifs" 6811 test -z "$ac_dir" && ac_dir=. 6812 if test -f $ac_dir/${ac_tool_prefix}file; then 6813 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6814 if test -n "$file_magic_test_file"; then 6815 case $deplibs_check_method in 6816 "file_magic "*) 6817 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6818 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6819 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6820 $EGREP "$file_magic_regex" > /dev/null; then 6821 : 6822 else 6823 cat <<EOF 1>&2 6824 6825*** Warning: the command libtool uses to detect shared libraries, 6826*** $file_magic_cmd, produces output that libtool cannot recognize. 6827*** The result is that libtool may fail to recognize shared libraries 6828*** as such. This will affect the creation of libtool libraries that 6829*** depend on shared libraries, but programs linked with such libtool 6830*** libraries will work regardless of this problem. Nevertheless, you 6831*** may want to report the problem to your system manager and/or to 6832*** bug-libtool@gnu.org 6833 6834EOF 6835 fi ;; 6836 esac 6837 fi 6838 break 6839 fi 6840 done 6841 IFS="$lt_save_ifs" 6842 MAGIC_CMD="$lt_save_MAGIC_CMD" 6843 ;; 6844esac 6845fi 6846 6847MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6848if test -n "$MAGIC_CMD"; then 6849 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6850echo "${ECHO_T}$MAGIC_CMD" >&6; } 6851else 6852 { echo "$as_me:$LINENO: result: no" >&5 6853echo "${ECHO_T}no" >&6; } 6854fi 6855 6856if test -z "$lt_cv_path_MAGIC_CMD"; then 6857 if test -n "$ac_tool_prefix"; then 6858 { echo "$as_me:$LINENO: checking for file" >&5 6859echo $ECHO_N "checking for file... $ECHO_C" >&6; } 6860if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6861 echo $ECHO_N "(cached) $ECHO_C" >&6 6862else 6863 case $MAGIC_CMD in 6864[\\/*] | ?:[\\/]*) 6865 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6866 ;; 6867*) 6868 lt_save_MAGIC_CMD="$MAGIC_CMD" 6869 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6870 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6871 for ac_dir in $ac_dummy; do 6872 IFS="$lt_save_ifs" 6873 test -z "$ac_dir" && ac_dir=. 6874 if test -f $ac_dir/file; then 6875 lt_cv_path_MAGIC_CMD="$ac_dir/file" 6876 if test -n "$file_magic_test_file"; then 6877 case $deplibs_check_method in 6878 "file_magic "*) 6879 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6880 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6881 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6882 $EGREP "$file_magic_regex" > /dev/null; then 6883 : 6884 else 6885 cat <<EOF 1>&2 6886 6887*** Warning: the command libtool uses to detect shared libraries, 6888*** $file_magic_cmd, produces output that libtool cannot recognize. 6889*** The result is that libtool may fail to recognize shared libraries 6890*** as such. This will affect the creation of libtool libraries that 6891*** depend on shared libraries, but programs linked with such libtool 6892*** libraries will work regardless of this problem. Nevertheless, you 6893*** may want to report the problem to your system manager and/or to 6894*** bug-libtool@gnu.org 6895 6896EOF 6897 fi ;; 6898 esac 6899 fi 6900 break 6901 fi 6902 done 6903 IFS="$lt_save_ifs" 6904 MAGIC_CMD="$lt_save_MAGIC_CMD" 6905 ;; 6906esac 6907fi 6908 6909MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6910if test -n "$MAGIC_CMD"; then 6911 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6912echo "${ECHO_T}$MAGIC_CMD" >&6; } 6913else 6914 { echo "$as_me:$LINENO: result: no" >&5 6915echo "${ECHO_T}no" >&6; } 6916fi 6917 6918 else 6919 MAGIC_CMD=: 6920 fi 6921fi 6922 6923 fi 6924 ;; 6925esac 6926 6927enable_dlopen=no 6928enable_win32_dll=no 6929 6930# Check whether --enable-libtool-lock was given. 6931if test "${enable_libtool_lock+set}" = set; then 6932 enableval=$enable_libtool_lock; 6933fi 6934 6935test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6936 6937 6938# Check whether --with-pic was given. 6939if test "${with_pic+set}" = set; then 6940 withval=$with_pic; pic_mode="$withval" 6941else 6942 pic_mode=default 6943fi 6944 6945test -z "$pic_mode" && pic_mode=default 6946 6947# Use C for the default configuration in the libtool script 6948tagname= 6949lt_save_CC="$CC" 6950ac_ext=c 6951ac_cpp='$CPP $CPPFLAGS' 6952ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6953ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6954ac_compiler_gnu=$ac_cv_c_compiler_gnu 6955 6956 6957# Source file extension for C test sources. 6958ac_ext=c 6959 6960# Object file extension for compiled C test sources. 6961objext=o 6962objext=$objext 6963 6964# Code to be used in simple compile tests 6965lt_simple_compile_test_code="int some_variable = 0;\n" 6966 6967# Code to be used in simple link tests 6968lt_simple_link_test_code='int main(){return(0);}\n' 6969 6970 6971# If no C compiler was specified, use CC. 6972LTCC=${LTCC-"$CC"} 6973 6974# If no C compiler flags were specified, use CFLAGS. 6975LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6976 6977# Allow CC to be a program name with arguments. 6978compiler=$CC 6979 6980 6981# save warnings/boilerplate of simple test code 6982ac_outfile=conftest.$ac_objext 6983printf "$lt_simple_compile_test_code" >conftest.$ac_ext 6984eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 6985_lt_compiler_boilerplate=`cat conftest.err` 6986$rm conftest* 6987 6988ac_outfile=conftest.$ac_objext 6989printf "$lt_simple_link_test_code" >conftest.$ac_ext 6990eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 6991_lt_linker_boilerplate=`cat conftest.err` 6992$rm conftest* 6993 6994 6995 6996lt_prog_compiler_no_builtin_flag= 6997 6998if test "$GCC" = yes; then 6999 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7000 7001 7002{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7003echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 7004if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7005 echo $ECHO_N "(cached) $ECHO_C" >&6 7006else 7007 lt_cv_prog_compiler_rtti_exceptions=no 7008 ac_outfile=conftest.$ac_objext 7009 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7010 lt_compiler_flag="-fno-rtti -fno-exceptions" 7011 # Insert the option either (1) after the last *FLAGS variable, or 7012 # (2) before a word containing "conftest.", or (3) at the end. 7013 # Note that $ac_compile itself does not contain backslashes and begins 7014 # with a dollar sign (not a hyphen), so the echo should work correctly. 7015 # The option is referenced via a variable to avoid confusing sed. 7016 lt_compile=`echo "$ac_compile" | $SED \ 7017 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7018 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7019 -e 's:$: $lt_compiler_flag:'` 7020 (eval echo "\"\$as_me:7020: $lt_compile\"" >&5) 7021 (eval "$lt_compile" 2>conftest.err) 7022 ac_status=$? 7023 cat conftest.err >&5 7024 echo "$as_me:7024: \$? = $ac_status" >&5 7025 if (exit $ac_status) && test -s "$ac_outfile"; then 7026 # The compiler can only warn and ignore the option if not recognized 7027 # So say no if there are warnings other than the usual output. 7028 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7029 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7030 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7031 lt_cv_prog_compiler_rtti_exceptions=yes 7032 fi 7033 fi 7034 $rm conftest* 7035 7036fi 7037{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7038echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7039 7040if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7041 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7042else 7043 : 7044fi 7045 7046fi 7047 7048lt_prog_compiler_wl= 7049lt_prog_compiler_pic= 7050lt_prog_compiler_static= 7051 7052{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7053echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 7054 7055 if test "$GCC" = yes; then 7056 lt_prog_compiler_wl='-Wl,' 7057 lt_prog_compiler_static='-static' 7058 7059 case $host_os in 7060 aix*) 7061 # All AIX code is PIC. 7062 if test "$host_cpu" = ia64; then 7063 # AIX 5 now supports IA64 processor 7064 lt_prog_compiler_static='-Bstatic' 7065 fi 7066 ;; 7067 7068 amigaos*) 7069 # FIXME: we need at least 68020 code to build shared libraries, but 7070 # adding the `-m68020' flag to GCC prevents building anything better, 7071 # like `-m68040'. 7072 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7073 ;; 7074 7075 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7076 # PIC is the default for these OSes. 7077 ;; 7078 7079 mingw* | cygwin* | pw32* | os2*) 7080 # This hack is so that the source file can tell whether it is being 7081 # built for inclusion in a dll (and should export symbols for example). 7082 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7083 # (--disable-auto-import) libraries 7084 lt_prog_compiler_pic='-DDLL_EXPORT' 7085 ;; 7086 7087 darwin* | rhapsody*) 7088 # PIC is the default on this platform 7089 # Common symbols not allowed in MH_DYLIB files 7090 lt_prog_compiler_pic='-fno-common' 7091 ;; 7092 7093 interix3*) 7094 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7095 # Instead, we relocate shared libraries at runtime. 7096 ;; 7097 7098 msdosdjgpp*) 7099 # Just because we use GCC doesn't mean we suddenly get shared libraries 7100 # on systems that don't support them. 7101 lt_prog_compiler_can_build_shared=no 7102 enable_shared=no 7103 ;; 7104 7105 sysv4*MP*) 7106 if test -d /usr/nec; then 7107 lt_prog_compiler_pic=-Kconform_pic 7108 fi 7109 ;; 7110 7111 hpux*) 7112 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7113 # not for PA HP-UX. 7114 case $host_cpu in 7115 hppa*64*|ia64*) 7116 # +Z the default 7117 ;; 7118 *) 7119 lt_prog_compiler_pic='-fPIC' 7120 ;; 7121 esac 7122 ;; 7123 7124 *) 7125 lt_prog_compiler_pic='-fPIC' 7126 ;; 7127 esac 7128 else 7129 # PORTME Check for flag to pass linker flags through the system compiler. 7130 case $host_os in 7131 aix*) 7132 lt_prog_compiler_wl='-Wl,' 7133 if test "$host_cpu" = ia64; then 7134 # AIX 5 now supports IA64 processor 7135 lt_prog_compiler_static='-Bstatic' 7136 else 7137 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7138 fi 7139 ;; 7140 darwin*) 7141 # PIC is the default on this platform 7142 # Common symbols not allowed in MH_DYLIB files 7143 case $cc_basename in 7144 xlc*) 7145 lt_prog_compiler_pic='-qnocommon' 7146 lt_prog_compiler_wl='-Wl,' 7147 ;; 7148 esac 7149 ;; 7150 7151 mingw* | cygwin* | pw32* | os2*) 7152 # This hack is so that the source file can tell whether it is being 7153 # built for inclusion in a dll (and should export symbols for example). 7154 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7155 # (--disable-auto-import) libraries 7156 lt_prog_compiler_pic='-DDLL_EXPORT' 7157 ;; 7158 7159 hpux9* | hpux10* | hpux11*) 7160 lt_prog_compiler_wl='-Wl,' 7161 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7162 # not for PA HP-UX. 7163 case $host_cpu in 7164 hppa*64*|ia64*) 7165 # +Z the default 7166 ;; 7167 *) 7168 lt_prog_compiler_pic='+Z' 7169 ;; 7170 esac 7171 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7172 lt_prog_compiler_static='${wl}-a ${wl}archive' 7173 ;; 7174 7175 irix5* | irix6* | nonstopux*) 7176 lt_prog_compiler_wl='-Wl,' 7177 # PIC (with -KPIC) is the default. 7178 lt_prog_compiler_static='-non_shared' 7179 ;; 7180 7181 newsos6) 7182 lt_prog_compiler_pic='-KPIC' 7183 lt_prog_compiler_static='-Bstatic' 7184 ;; 7185 7186 linux*) 7187 case $cc_basename in 7188 icc* | ecc*) 7189 lt_prog_compiler_wl='-Wl,' 7190 lt_prog_compiler_pic='-KPIC' 7191 lt_prog_compiler_static='-static' 7192 ;; 7193 pgcc* | pgf77* | pgf90* | pgf95*) 7194 # Portland Group compilers (*not* the Pentium gcc compiler, 7195 # which looks to be a dead project) 7196 lt_prog_compiler_wl='-Wl,' 7197 lt_prog_compiler_pic='-fpic' 7198 lt_prog_compiler_static='-Bstatic' 7199 ;; 7200 ccc*) 7201 lt_prog_compiler_wl='-Wl,' 7202 # All Alpha code is PIC. 7203 lt_prog_compiler_static='-non_shared' 7204 ;; 7205 como) 7206 lt_prog_compiler_wl='-lopt=' 7207 ;; 7208 *) 7209 case `$CC -V 2>&1 | sed 5q` in 7210 *Sun\ C*) 7211 # Sun C 5.9 7212 lt_prog_compiler_pic='-KPIC' 7213 lt_prog_compiler_static='-Bstatic' 7214 lt_prog_compiler_wl='-Wl,' 7215 ;; 7216 *Sun\ F*) 7217 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7218 lt_prog_compiler_pic='-KPIC' 7219 lt_prog_compiler_static='-Bstatic' 7220 lt_prog_compiler_wl='' 7221 ;; 7222 esac 7223 ;; 7224 esac 7225 ;; 7226 7227 osf3* | osf4* | osf5*) 7228 lt_prog_compiler_wl='-Wl,' 7229 # All OSF/1 code is PIC. 7230 lt_prog_compiler_static='-non_shared' 7231 ;; 7232 7233 solaris*) 7234 lt_prog_compiler_pic='-KPIC' 7235 lt_prog_compiler_static='-Bstatic' 7236 case $cc_basename in 7237 f77* | f90* | f95*) 7238 lt_prog_compiler_wl='-Qoption ld ';; 7239 *) 7240 lt_prog_compiler_wl='-Wl,';; 7241 esac 7242 ;; 7243 7244 sunos4*) 7245 lt_prog_compiler_wl='-Qoption ld ' 7246 lt_prog_compiler_pic='-PIC' 7247 lt_prog_compiler_static='-Bstatic' 7248 ;; 7249 7250 sysv4 | sysv4.2uw2* | sysv4.3*) 7251 lt_prog_compiler_wl='-Wl,' 7252 lt_prog_compiler_pic='-KPIC' 7253 lt_prog_compiler_static='-Bstatic' 7254 ;; 7255 7256 sysv4*MP*) 7257 if test -d /usr/nec ;then 7258 lt_prog_compiler_pic='-Kconform_pic' 7259 lt_prog_compiler_static='-Bstatic' 7260 fi 7261 ;; 7262 7263 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7264 lt_prog_compiler_wl='-Wl,' 7265 lt_prog_compiler_pic='-KPIC' 7266 lt_prog_compiler_static='-Bstatic' 7267 ;; 7268 7269 unicos*) 7270 lt_prog_compiler_wl='-Wl,' 7271 lt_prog_compiler_can_build_shared=no 7272 ;; 7273 7274 uts4*) 7275 lt_prog_compiler_pic='-pic' 7276 lt_prog_compiler_static='-Bstatic' 7277 ;; 7278 7279 *) 7280 lt_prog_compiler_can_build_shared=no 7281 ;; 7282 esac 7283 fi 7284 7285{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7286echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 7287 7288# 7289# Check to make sure the PIC flag actually works. 7290# 7291if test -n "$lt_prog_compiler_pic"; then 7292 7293{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7294echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 7295if test "${lt_prog_compiler_pic_works+set}" = set; then 7296 echo $ECHO_N "(cached) $ECHO_C" >&6 7297else 7298 lt_prog_compiler_pic_works=no 7299 ac_outfile=conftest.$ac_objext 7300 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7301 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7302 # Insert the option either (1) after the last *FLAGS variable, or 7303 # (2) before a word containing "conftest.", or (3) at the end. 7304 # Note that $ac_compile itself does not contain backslashes and begins 7305 # with a dollar sign (not a hyphen), so the echo should work correctly. 7306 # The option is referenced via a variable to avoid confusing sed. 7307 lt_compile=`echo "$ac_compile" | $SED \ 7308 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7309 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7310 -e 's:$: $lt_compiler_flag:'` 7311 (eval echo "\"\$as_me:7311: $lt_compile\"" >&5) 7312 (eval "$lt_compile" 2>conftest.err) 7313 ac_status=$? 7314 cat conftest.err >&5 7315 echo "$as_me:7315: \$? = $ac_status" >&5 7316 if (exit $ac_status) && test -s "$ac_outfile"; then 7317 # The compiler can only warn and ignore the option if not recognized 7318 # So say no if there are warnings other than the usual output. 7319 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7320 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7321 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7322 lt_prog_compiler_pic_works=yes 7323 fi 7324 fi 7325 $rm conftest* 7326 7327fi 7328{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 7329echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } 7330 7331if test x"$lt_prog_compiler_pic_works" = xyes; then 7332 case $lt_prog_compiler_pic in 7333 "" | " "*) ;; 7334 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7335 esac 7336else 7337 lt_prog_compiler_pic= 7338 lt_prog_compiler_can_build_shared=no 7339fi 7340 7341fi 7342case $host_os in 7343 # For platforms which do not support PIC, -DPIC is meaningless: 7344 *djgpp*) 7345 lt_prog_compiler_pic= 7346 ;; 7347 *) 7348 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7349 ;; 7350esac 7351 7352# 7353# Check to make sure the static flag actually works. 7354# 7355wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7356{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7357echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 7358if test "${lt_prog_compiler_static_works+set}" = set; then 7359 echo $ECHO_N "(cached) $ECHO_C" >&6 7360else 7361 lt_prog_compiler_static_works=no 7362 save_LDFLAGS="$LDFLAGS" 7363 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7364 printf "$lt_simple_link_test_code" > conftest.$ac_ext 7365 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7366 # The linker can only warn and ignore the option if not recognized 7367 # So say no if there are warnings 7368 if test -s conftest.err; then 7369 # Append any errors to the config.log. 7370 cat conftest.err 1>&5 7371 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7372 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7373 if diff conftest.exp conftest.er2 >/dev/null; then 7374 lt_prog_compiler_static_works=yes 7375 fi 7376 else 7377 lt_prog_compiler_static_works=yes 7378 fi 7379 fi 7380 $rm conftest* 7381 LDFLAGS="$save_LDFLAGS" 7382 7383fi 7384{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 7385echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } 7386 7387if test x"$lt_prog_compiler_static_works" = xyes; then 7388 : 7389else 7390 lt_prog_compiler_static= 7391fi 7392 7393 7394{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7395echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 7396if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7397 echo $ECHO_N "(cached) $ECHO_C" >&6 7398else 7399 lt_cv_prog_compiler_c_o=no 7400 $rm -r conftest 2>/dev/null 7401 mkdir conftest 7402 cd conftest 7403 mkdir out 7404 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7405 7406 lt_compiler_flag="-o out/conftest2.$ac_objext" 7407 # Insert the option either (1) after the last *FLAGS variable, or 7408 # (2) before a word containing "conftest.", or (3) at the end. 7409 # Note that $ac_compile itself does not contain backslashes and begins 7410 # with a dollar sign (not a hyphen), so the echo should work correctly. 7411 lt_compile=`echo "$ac_compile" | $SED \ 7412 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7413 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7414 -e 's:$: $lt_compiler_flag:'` 7415 (eval echo "\"\$as_me:7415: $lt_compile\"" >&5) 7416 (eval "$lt_compile" 2>out/conftest.err) 7417 ac_status=$? 7418 cat out/conftest.err >&5 7419 echo "$as_me:7419: \$? = $ac_status" >&5 7420 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7421 then 7422 # The compiler can only warn and ignore the option if not recognized 7423 # So say no if there are warnings 7424 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7425 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7426 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7427 lt_cv_prog_compiler_c_o=yes 7428 fi 7429 fi 7430 chmod u+w . 2>&5 7431 $rm conftest* 7432 # SGI C++ compiler will create directory out/ii_files/ for 7433 # template instantiation 7434 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 7435 $rm out/* && rmdir out 7436 cd .. 7437 rmdir conftest 7438 $rm conftest* 7439 7440fi 7441{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7442echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 7443 7444 7445hard_links="nottested" 7446if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7447 # do not overwrite the value of need_locks provided by the user 7448 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7449echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 7450 hard_links=yes 7451 $rm conftest* 7452 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7453 touch conftest.a 7454 ln conftest.a conftest.b 2>&5 || hard_links=no 7455 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7456 { echo "$as_me:$LINENO: result: $hard_links" >&5 7457echo "${ECHO_T}$hard_links" >&6; } 7458 if test "$hard_links" = no; then 7459 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7460echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7461 need_locks=warn 7462 fi 7463else 7464 need_locks=no 7465fi 7466 7467{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7468echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 7469 7470 runpath_var= 7471 allow_undefined_flag= 7472 enable_shared_with_static_runtimes=no 7473 archive_cmds= 7474 archive_expsym_cmds= 7475 old_archive_From_new_cmds= 7476 old_archive_from_expsyms_cmds= 7477 export_dynamic_flag_spec= 7478 whole_archive_flag_spec= 7479 thread_safe_flag_spec= 7480 hardcode_libdir_flag_spec= 7481 hardcode_libdir_flag_spec_ld= 7482 hardcode_libdir_separator= 7483 hardcode_direct=no 7484 hardcode_minus_L=no 7485 hardcode_shlibpath_var=unsupported 7486 link_all_deplibs=unknown 7487 hardcode_automatic=no 7488 module_cmds= 7489 module_expsym_cmds= 7490 always_export_symbols=no 7491 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7492 # include_expsyms should be a list of space-separated symbols to be *always* 7493 # included in the symbol list 7494 include_expsyms= 7495 # exclude_expsyms can be an extended regexp of symbols to exclude 7496 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7497 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7498 # as well as any symbol that contains `d'. 7499 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 7500 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7501 # platforms (ab)use it in PIC code, but their linkers get confused if 7502 # the symbol is explicitly referenced. Since portable code cannot 7503 # rely on this symbol name, it's probably fine to never include it in 7504 # preloaded symbol tables. 7505 extract_expsyms_cmds= 7506 # Just being paranoid about ensuring that cc_basename is set. 7507 for cc_temp in $compiler""; do 7508 case $cc_temp in 7509 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7510 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7511 \-*) ;; 7512 *) break;; 7513 esac 7514done 7515cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7516 7517 case $host_os in 7518 cygwin* | mingw* | pw32*) 7519 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7520 # When not using gcc, we currently assume that we are using 7521 # Microsoft Visual C++. 7522 if test "$GCC" != yes; then 7523 with_gnu_ld=no 7524 fi 7525 ;; 7526 interix*) 7527 # we just hope/assume this is gcc and not c89 (= MSVC++) 7528 with_gnu_ld=yes 7529 ;; 7530 openbsd*) 7531 with_gnu_ld=no 7532 ;; 7533 esac 7534 7535 ld_shlibs=yes 7536 if test "$with_gnu_ld" = yes; then 7537 # If archive_cmds runs LD, not CC, wlarc should be empty 7538 wlarc='${wl}' 7539 7540 # Set some defaults for GNU ld with shared library support. These 7541 # are reset later if shared libraries are not supported. Putting them 7542 # here allows them to be overridden if necessary. 7543 runpath_var=LD_RUN_PATH 7544 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 7545 export_dynamic_flag_spec='${wl}--export-dynamic' 7546 # ancient GNU ld didn't support --whole-archive et. al. 7547 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 7548 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7549 else 7550 whole_archive_flag_spec= 7551 fi 7552 supports_anon_versioning=no 7553 case `$LD -v 2>/dev/null` in 7554 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7555 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7556 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7557 *\ 2.11.*) ;; # other 2.11 versions 7558 *) supports_anon_versioning=yes ;; 7559 esac 7560 7561 # See if GNU ld supports shared libraries. 7562 case $host_os in 7563 aix3* | aix4* | aix5*) 7564 # On AIX/PPC, the GNU linker is very broken 7565 if test "$host_cpu" != ia64; then 7566 ld_shlibs=no 7567 cat <<EOF 1>&2 7568 7569*** Warning: the GNU linker, at least up to release 2.9.1, is reported 7570*** to be unable to reliably create shared libraries on AIX. 7571*** Therefore, libtool is disabling shared libraries support. If you 7572*** really care for shared libraries, you may want to modify your PATH 7573*** so that a non-GNU linker is found, and then restart. 7574 7575EOF 7576 fi 7577 ;; 7578 7579 amigaos*) 7580 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)' 7581 hardcode_libdir_flag_spec='-L$libdir' 7582 hardcode_minus_L=yes 7583 7584 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 7585 # that the semantics of dynamic libraries on AmigaOS, at least up 7586 # to version 4, is to share data among multiple programs linked 7587 # with the same dynamic library. Since this doesn't match the 7588 # behavior of shared libraries on other platforms, we can't use 7589 # them. 7590 ld_shlibs=no 7591 ;; 7592 7593 beos*) 7594 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7595 allow_undefined_flag=unsupported 7596 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 7597 # support --undefined. This deserves some investigation. FIXME 7598 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7599 else 7600 ld_shlibs=no 7601 fi 7602 ;; 7603 7604 cygwin* | mingw* | pw32*) 7605 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 7606 # as there is no search path for DLLs. 7607 hardcode_libdir_flag_spec='-L$libdir' 7608 allow_undefined_flag=unsupported 7609 always_export_symbols=no 7610 enable_shared_with_static_runtimes=yes 7611 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 7612 7613 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 7614 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7615 # If the export-symbols file already is a .def file (1st line 7616 # is EXPORTS), use it as is; otherwise, prepend... 7617 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7618 cp $export_symbols $output_objdir/$soname.def; 7619 else 7620 echo EXPORTS > $output_objdir/$soname.def; 7621 cat $export_symbols >> $output_objdir/$soname.def; 7622 fi~ 7623 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7624 else 7625 ld_shlibs=no 7626 fi 7627 ;; 7628 7629 interix3*) 7630 hardcode_direct=no 7631 hardcode_shlibpath_var=no 7632 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7633 export_dynamic_flag_spec='${wl}-E' 7634 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 7635 # Instead, shared libraries are loaded at an image base (0x10000000 by 7636 # default) and relocated if they conflict, which is a slow very memory 7637 # consuming and fragmenting process. To avoid this, we pick a random, 7638 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 7639 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 7640 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 7641 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' 7642 ;; 7643 7644 linux*) 7645 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7646 tmp_addflag= 7647 case $cc_basename,$host_cpu in 7648 pgcc*) # Portland Group C compiler 7649 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' 7650 tmp_addflag=' $pic_flag' 7651 ;; 7652 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 7653 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' 7654 tmp_addflag=' $pic_flag -Mnomain' ;; 7655 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 7656 tmp_addflag=' -i_dynamic' ;; 7657 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 7658 tmp_addflag=' -i_dynamic -nofor_main' ;; 7659 ifc* | ifort*) # Intel Fortran compiler 7660 tmp_addflag=' -nofor_main' ;; 7661 esac 7662 case `$CC -V 2>&1 | sed 5q` in 7663 *Sun\ C*) # Sun C 5.9 7664 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive /dev/null' 7665 tmp_sharedflag='-G' ;; 7666 *Sun\ F*) # Sun Fortran 8.3 7667 tmp_sharedflag='-G' ;; 7668 *) 7669 tmp_sharedflag='-shared' ;; 7670 esac 7671 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7672 7673 if test $supports_anon_versioning = yes; then 7674 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 7675 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7676 $echo "local: *; };" >> $output_objdir/$libname.ver~ 7677 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 7678 fi 7679 else 7680 ld_shlibs=no 7681 fi 7682 ;; 7683 7684 netbsd*) 7685 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7686 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 7687 wlarc= 7688 else 7689 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7690 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7691 fi 7692 ;; 7693 7694 solaris*) 7695 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 7696 ld_shlibs=no 7697 cat <<EOF 1>&2 7698 7699*** Warning: The releases 2.8.* of the GNU linker cannot reliably 7700*** create shared libraries on Solaris systems. Therefore, libtool 7701*** is disabling shared libraries support. We urge you to upgrade GNU 7702*** binutils to release 2.9.1 or newer. Another option is to modify 7703*** your PATH or compiler configuration so that the native linker is 7704*** used, and then restart. 7705 7706EOF 7707 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7708 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7709 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7710 else 7711 ld_shlibs=no 7712 fi 7713 ;; 7714 7715 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 7716 case `$LD -v 2>&1` in 7717 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 7718 ld_shlibs=no 7719 cat <<_LT_EOF 1>&2 7720 7721*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 7722*** reliably create shared libraries on SCO systems. Therefore, libtool 7723*** is disabling shared libraries support. We urge you to upgrade GNU 7724*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 7725*** your PATH or compiler configuration so that the native linker is 7726*** used, and then restart. 7727 7728_LT_EOF 7729 ;; 7730 *) 7731 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7732 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 7733 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 7734 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 7735 else 7736 ld_shlibs=no 7737 fi 7738 ;; 7739 esac 7740 ;; 7741 7742 sunos4*) 7743 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7744 wlarc= 7745 hardcode_direct=yes 7746 hardcode_shlibpath_var=no 7747 ;; 7748 7749 *) 7750 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7751 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7752 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7753 else 7754 ld_shlibs=no 7755 fi 7756 ;; 7757 esac 7758 7759 if test "$ld_shlibs" = no; then 7760 runpath_var= 7761 hardcode_libdir_flag_spec= 7762 export_dynamic_flag_spec= 7763 whole_archive_flag_spec= 7764 fi 7765 else 7766 # PORTME fill in a description of your system's linker (not GNU ld) 7767 case $host_os in 7768 aix3*) 7769 allow_undefined_flag=unsupported 7770 always_export_symbols=yes 7771 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' 7772 # Note: this linker hardcodes the directories in LIBPATH if there 7773 # are no directories specified by -L. 7774 hardcode_minus_L=yes 7775 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 7776 # Neither direct hardcoding nor static linking is supported with a 7777 # broken collect2. 7778 hardcode_direct=unsupported 7779 fi 7780 ;; 7781 7782 aix4* | aix5*) 7783 if test "$host_cpu" = ia64; then 7784 # On IA64, the linker does run time linking by default, so we don't 7785 # have to do anything special. 7786 aix_use_runtimelinking=no 7787 exp_sym_flag='-Bexport' 7788 no_entry_flag="" 7789 else 7790 # If we're using GNU nm, then we don't want the "-C" option. 7791 # -C means demangle to AIX nm, but means don't demangle with GNU nm 7792 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 7793 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' 7794 else 7795 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' 7796 fi 7797 aix_use_runtimelinking=no 7798 7799 # Test if we are trying to use run time linking or normal 7800 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7801 # need to do runtime linking. 7802 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 7803 for ld_flag in $LDFLAGS; do 7804 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 7805 aix_use_runtimelinking=yes 7806 break 7807 fi 7808 done 7809 ;; 7810 esac 7811 7812 exp_sym_flag='-bexport' 7813 no_entry_flag='-bnoentry' 7814 fi 7815 7816 # When large executables or shared objects are built, AIX ld can 7817 # have problems creating the table of contents. If linking a library 7818 # or program results in "error TOC overflow" add -mminimal-toc to 7819 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7820 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7821 7822 archive_cmds='' 7823 hardcode_direct=yes 7824 hardcode_libdir_separator=':' 7825 link_all_deplibs=yes 7826 7827 if test "$GCC" = yes; then 7828 case $host_os in aix4.[012]|aix4.[012].*) 7829 # We only want to do this on AIX 4.2 and lower, the check 7830 # below for broken collect2 doesn't work under 4.3+ 7831 collect2name=`${CC} -print-prog-name=collect2` 7832 if test -f "$collect2name" && \ 7833 strings "$collect2name" | grep resolve_lib_name >/dev/null 7834 then 7835 # We have reworked collect2 7836 hardcode_direct=yes 7837 else 7838 # We have old collect2 7839 hardcode_direct=unsupported 7840 # It fails to find uninstalled libraries when the uninstalled 7841 # path is not listed in the libpath. Setting hardcode_minus_L 7842 # to unsupported forces relinking 7843 hardcode_minus_L=yes 7844 hardcode_libdir_flag_spec='-L$libdir' 7845 hardcode_libdir_separator= 7846 fi 7847 ;; 7848 esac 7849 shared_flag='-shared' 7850 if test "$aix_use_runtimelinking" = yes; then 7851 shared_flag="$shared_flag "'${wl}-G' 7852 fi 7853 else 7854 # not using gcc 7855 if test "$host_cpu" = ia64; then 7856 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7857 # chokes on -Wl,-G. The following line is correct: 7858 shared_flag='-G' 7859 else 7860 if test "$aix_use_runtimelinking" = yes; then 7861 shared_flag='${wl}-G' 7862 else 7863 shared_flag='${wl}-bM:SRE' 7864 fi 7865 fi 7866 fi 7867 7868 # It seems that -bexpall does not export symbols beginning with 7869 # underscore (_), so it is better to generate a list of symbols to export. 7870 always_export_symbols=yes 7871 if test "$aix_use_runtimelinking" = yes; then 7872 # Warning - without using the other runtime loading flags (-brtl), 7873 # -berok will link without error, but may produce a broken library. 7874 allow_undefined_flag='-berok' 7875 # Determine the default libpath from the value encoded in an empty executable. 7876 cat >conftest.$ac_ext <<_ACEOF 7877/* confdefs.h. */ 7878_ACEOF 7879cat confdefs.h >>conftest.$ac_ext 7880cat >>conftest.$ac_ext <<_ACEOF 7881/* end confdefs.h. */ 7882 7883int 7884main () 7885{ 7886 7887 ; 7888 return 0; 7889} 7890_ACEOF 7891rm -f conftest.$ac_objext conftest$ac_exeext 7892if { (ac_try="$ac_link" 7893case "(($ac_try" in 7894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7895 *) ac_try_echo=$ac_try;; 7896esac 7897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7898 (eval "$ac_link") 2>conftest.er1 7899 ac_status=$? 7900 grep -v '^ *+' conftest.er1 >conftest.err 7901 rm -f conftest.er1 7902 cat conftest.err >&5 7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7904 (exit $ac_status); } && { 7905 test -z "$ac_c_werror_flag" || 7906 test ! -s conftest.err 7907 } && test -s conftest$ac_exeext && 7908 $as_test_x conftest$ac_exeext; then 7909 7910aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7911}'` 7912# Check for a 64-bit object if we didn't find anything. 7913if 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; } 7914}'`; fi 7915else 7916 echo "$as_me: failed program was:" >&5 7917sed 's/^/| /' conftest.$ac_ext >&5 7918 7919 7920fi 7921 7922rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7923 conftest$ac_exeext conftest.$ac_ext 7924if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7925 7926 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7927 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" 7928 else 7929 if test "$host_cpu" = ia64; then 7930 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 7931 allow_undefined_flag="-z nodefs" 7932 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" 7933 else 7934 # Determine the default libpath from the value encoded in an empty executable. 7935 cat >conftest.$ac_ext <<_ACEOF 7936/* confdefs.h. */ 7937_ACEOF 7938cat confdefs.h >>conftest.$ac_ext 7939cat >>conftest.$ac_ext <<_ACEOF 7940/* end confdefs.h. */ 7941 7942int 7943main () 7944{ 7945 7946 ; 7947 return 0; 7948} 7949_ACEOF 7950rm -f conftest.$ac_objext conftest$ac_exeext 7951if { (ac_try="$ac_link" 7952case "(($ac_try" in 7953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7954 *) ac_try_echo=$ac_try;; 7955esac 7956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7957 (eval "$ac_link") 2>conftest.er1 7958 ac_status=$? 7959 grep -v '^ *+' conftest.er1 >conftest.err 7960 rm -f conftest.er1 7961 cat conftest.err >&5 7962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7963 (exit $ac_status); } && { 7964 test -z "$ac_c_werror_flag" || 7965 test ! -s conftest.err 7966 } && test -s conftest$ac_exeext && 7967 $as_test_x conftest$ac_exeext; then 7968 7969aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7970}'` 7971# Check for a 64-bit object if we didn't find anything. 7972if 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; } 7973}'`; fi 7974else 7975 echo "$as_me: failed program was:" >&5 7976sed 's/^/| /' conftest.$ac_ext >&5 7977 7978 7979fi 7980 7981rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7982 conftest$ac_exeext conftest.$ac_ext 7983if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7984 7985 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7986 # Warning - without using the other run time loading flags, 7987 # -berok will link without error, but may produce a broken library. 7988 no_undefined_flag=' ${wl}-bernotok' 7989 allow_undefined_flag=' ${wl}-berok' 7990 # Exported symbols can be pulled into shared objects from archives 7991 whole_archive_flag_spec='$convenience' 7992 archive_cmds_need_lc=yes 7993 # This is similar to how AIX traditionally builds its shared libraries. 7994 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' 7995 fi 7996 fi 7997 ;; 7998 7999 amigaos*) 8000 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)' 8001 hardcode_libdir_flag_spec='-L$libdir' 8002 hardcode_minus_L=yes 8003 # see comment about different semantics on the GNU ld section 8004 ld_shlibs=no 8005 ;; 8006 8007 bsdi[45]*) 8008 export_dynamic_flag_spec=-rdynamic 8009 ;; 8010 8011 cygwin* | mingw* | pw32*) 8012 # When not using gcc, we currently assume that we are using 8013 # Microsoft Visual C++. 8014 # hardcode_libdir_flag_spec is actually meaningless, as there is 8015 # no search path for DLLs. 8016 hardcode_libdir_flag_spec=' ' 8017 allow_undefined_flag=unsupported 8018 # Tell ltmain to make .lib files, not .a files. 8019 libext=lib 8020 # Tell ltmain to make .dll files, not .so files. 8021 shrext_cmds=".dll" 8022 # FIXME: Setting linknames here is a bad hack. 8023 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8024 # The linker will automatically build a .lib file if we build a DLL. 8025 old_archive_From_new_cmds='true' 8026 # FIXME: Should let the user specify the lib program. 8027 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 8028 fix_srcfile_path='`cygpath -w "$srcfile"`' 8029 enable_shared_with_static_runtimes=yes 8030 ;; 8031 8032 darwin* | rhapsody*) 8033 case $host_os in 8034 rhapsody* | darwin1.[012]) 8035 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8036 ;; 8037 *) # Darwin 1.3 on 8038 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8039 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8040 else 8041 case ${MACOSX_DEPLOYMENT_TARGET} in 8042 10.[012]) 8043 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8044 ;; 8045 10.*) 8046 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8047 ;; 8048 esac 8049 fi 8050 ;; 8051 esac 8052 archive_cmds_need_lc=no 8053 hardcode_direct=no 8054 hardcode_automatic=yes 8055 hardcode_shlibpath_var=unsupported 8056 whole_archive_flag_spec='' 8057 link_all_deplibs=yes 8058 if test "$GCC" = yes ; then 8059 output_verbose_link_cmd='echo' 8060 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 8061 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8062 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8063 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}' 8064 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}' 8065 else 8066 case $cc_basename in 8067 xlc*) 8068 output_verbose_link_cmd='echo' 8069 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 8070 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8071 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8072 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}' 8073 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}' 8074 ;; 8075 *) 8076 ld_shlibs=no 8077 ;; 8078 esac 8079 fi 8080 ;; 8081 8082 dgux*) 8083 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8084 hardcode_libdir_flag_spec='-L$libdir' 8085 hardcode_shlibpath_var=no 8086 ;; 8087 8088 freebsd1*) 8089 ld_shlibs=no 8090 ;; 8091 8092 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8093 # support. Future versions do this automatically, but an explicit c++rt0.o 8094 # does not break anything, and helps significantly (at the cost of a little 8095 # extra space). 8096 freebsd2.2*) 8097 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8098 hardcode_libdir_flag_spec='-R$libdir' 8099 hardcode_direct=yes 8100 hardcode_shlibpath_var=no 8101 ;; 8102 8103 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8104 freebsd2*) 8105 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8106 hardcode_direct=yes 8107 hardcode_minus_L=yes 8108 hardcode_shlibpath_var=no 8109 ;; 8110 8111 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8112 freebsd* | kfreebsd*-gnu | dragonfly*) 8113 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8114 hardcode_libdir_flag_spec='-R$libdir' 8115 hardcode_direct=yes 8116 hardcode_shlibpath_var=no 8117 ;; 8118 8119 hpux9*) 8120 if test "$GCC" = yes; then 8121 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' 8122 else 8123 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' 8124 fi 8125 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8126 hardcode_libdir_separator=: 8127 hardcode_direct=yes 8128 8129 # hardcode_minus_L: Not really in the search PATH, 8130 # but as the default location of the library. 8131 hardcode_minus_L=yes 8132 export_dynamic_flag_spec='${wl}-E' 8133 ;; 8134 8135 hpux10*) 8136 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8137 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8138 else 8139 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8140 fi 8141 if test "$with_gnu_ld" = no; then 8142 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8143 hardcode_libdir_separator=: 8144 8145 hardcode_direct=yes 8146 export_dynamic_flag_spec='${wl}-E' 8147 8148 # hardcode_minus_L: Not really in the search PATH, 8149 # but as the default location of the library. 8150 hardcode_minus_L=yes 8151 fi 8152 ;; 8153 8154 hpux11*) 8155 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8156 case $host_cpu in 8157 hppa*64*) 8158 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8159 ;; 8160 ia64*) 8161 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8162 ;; 8163 *) 8164 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8165 ;; 8166 esac 8167 else 8168 case $host_cpu in 8169 hppa*64*) 8170 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8171 ;; 8172 ia64*) 8173 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8174 ;; 8175 *) 8176 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8177 ;; 8178 esac 8179 fi 8180 if test "$with_gnu_ld" = no; then 8181 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8182 hardcode_libdir_separator=: 8183 8184 case $host_cpu in 8185 hppa*64*|ia64*) 8186 hardcode_libdir_flag_spec_ld='+b $libdir' 8187 hardcode_direct=no 8188 hardcode_shlibpath_var=no 8189 ;; 8190 *) 8191 hardcode_direct=yes 8192 export_dynamic_flag_spec='${wl}-E' 8193 8194 # hardcode_minus_L: Not really in the search PATH, 8195 # but as the default location of the library. 8196 hardcode_minus_L=yes 8197 ;; 8198 esac 8199 fi 8200 ;; 8201 8202 irix5* | irix6* | nonstopux*) 8203 if test "$GCC" = yes; then 8204 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' 8205 else 8206 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' 8207 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8208 fi 8209 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8210 hardcode_libdir_separator=: 8211 link_all_deplibs=yes 8212 ;; 8213 8214 netbsd*) 8215 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8216 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8217 else 8218 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8219 fi 8220 hardcode_libdir_flag_spec='-R$libdir' 8221 hardcode_direct=yes 8222 hardcode_shlibpath_var=no 8223 ;; 8224 8225 newsos6) 8226 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8227 hardcode_direct=yes 8228 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8229 hardcode_libdir_separator=: 8230 hardcode_shlibpath_var=no 8231 ;; 8232 8233 openbsd*) 8234 hardcode_direct=yes 8235 hardcode_shlibpath_var=no 8236 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8237 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8238 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8239 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8240 export_dynamic_flag_spec='${wl}-E' 8241 else 8242 case $host_os in 8243 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8244 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8245 hardcode_libdir_flag_spec='-R$libdir' 8246 ;; 8247 *) 8248 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8249 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8250 ;; 8251 esac 8252 fi 8253 ;; 8254 8255 os2*) 8256 hardcode_libdir_flag_spec='-L$libdir' 8257 hardcode_minus_L=yes 8258 allow_undefined_flag=unsupported 8259 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' 8260 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8261 ;; 8262 8263 osf3*) 8264 if test "$GCC" = yes; then 8265 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8266 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' 8267 else 8268 allow_undefined_flag=' -expect_unresolved \*' 8269 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' 8270 fi 8271 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8272 hardcode_libdir_separator=: 8273 ;; 8274 8275 osf4* | osf5*) # as osf3* with the addition of -msym flag 8276 if test "$GCC" = yes; then 8277 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8278 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' 8279 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8280 else 8281 allow_undefined_flag=' -expect_unresolved \*' 8282 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' 8283 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8284 $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' 8285 8286 # Both c and cxx compiler support -rpath directly 8287 hardcode_libdir_flag_spec='-rpath $libdir' 8288 fi 8289 hardcode_libdir_separator=: 8290 ;; 8291 8292 solaris*) 8293 no_undefined_flag=' -z text' 8294 if test "$GCC" = yes; then 8295 wlarc='${wl}' 8296 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8297 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8298 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8299 else 8300 wlarc='' 8301 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8302 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8303 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8304 fi 8305 hardcode_libdir_flag_spec='-R$libdir' 8306 hardcode_shlibpath_var=no 8307 case $host_os in 8308 solaris2.[0-5] | solaris2.[0-5].*) ;; 8309 *) 8310 # The compiler driver will combine linker options so we 8311 # cannot just pass the convience library names through 8312 # without $wl, iff we do not link with $LD. 8313 # Luckily, gcc supports the same syntax we need for Sun Studio. 8314 # Supported since Solaris 2.6 (maybe 2.5.1?) 8315 case $wlarc in 8316 '') 8317 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 8318 *) 8319 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' ;; 8320 esac ;; 8321 esac 8322 link_all_deplibs=yes 8323 ;; 8324 8325 sunos4*) 8326 if test "x$host_vendor" = xsequent; then 8327 # Use $CC to link under sequent, because it throws in some extra .o 8328 # files that make .init and .fini sections work. 8329 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8330 else 8331 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8332 fi 8333 hardcode_libdir_flag_spec='-L$libdir' 8334 hardcode_direct=yes 8335 hardcode_minus_L=yes 8336 hardcode_shlibpath_var=no 8337 ;; 8338 8339 sysv4) 8340 case $host_vendor in 8341 sni) 8342 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8343 hardcode_direct=yes # is this really true??? 8344 ;; 8345 siemens) 8346 ## LD is ld it makes a PLAMLIB 8347 ## CC just makes a GrossModule. 8348 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8349 reload_cmds='$CC -r -o $output$reload_objs' 8350 hardcode_direct=no 8351 ;; 8352 motorola) 8353 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8354 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8355 ;; 8356 esac 8357 runpath_var='LD_RUN_PATH' 8358 hardcode_shlibpath_var=no 8359 ;; 8360 8361 sysv4.3*) 8362 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8363 hardcode_shlibpath_var=no 8364 export_dynamic_flag_spec='-Bexport' 8365 ;; 8366 8367 sysv4*MP*) 8368 if test -d /usr/nec; then 8369 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8370 hardcode_shlibpath_var=no 8371 runpath_var=LD_RUN_PATH 8372 hardcode_runpath_var=yes 8373 ld_shlibs=yes 8374 fi 8375 ;; 8376 8377 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 8378 no_undefined_flag='${wl}-z,text' 8379 archive_cmds_need_lc=no 8380 hardcode_shlibpath_var=no 8381 runpath_var='LD_RUN_PATH' 8382 8383 if test "$GCC" = yes; then 8384 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8385 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8386 else 8387 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8388 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8389 fi 8390 ;; 8391 8392 sysv5* | sco3.2v5* | sco5v6*) 8393 # Note: We can NOT use -z defs as we might desire, because we do not 8394 # link with -lc, and that would cause any symbols used from libc to 8395 # always be unresolved, which means just about no library would 8396 # ever link correctly. If we're not using GNU ld we use -z text 8397 # though, which does catch some bad symbols but isn't as heavy-handed 8398 # as -z defs. 8399 no_undefined_flag='${wl}-z,text' 8400 allow_undefined_flag='${wl}-z,nodefs' 8401 archive_cmds_need_lc=no 8402 hardcode_shlibpath_var=no 8403 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 8404 hardcode_libdir_separator=':' 8405 link_all_deplibs=yes 8406 export_dynamic_flag_spec='${wl}-Bexport' 8407 runpath_var='LD_RUN_PATH' 8408 8409 if test "$GCC" = yes; then 8410 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8411 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8412 else 8413 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8414 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8415 fi 8416 ;; 8417 8418 uts4*) 8419 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8420 hardcode_libdir_flag_spec='-L$libdir' 8421 hardcode_shlibpath_var=no 8422 ;; 8423 8424 *) 8425 ld_shlibs=no 8426 ;; 8427 esac 8428 fi 8429 8430{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 8431echo "${ECHO_T}$ld_shlibs" >&6; } 8432test "$ld_shlibs" = no && can_build_shared=no 8433 8434# 8435# Do we need to explicitly link libc? 8436# 8437case "x$archive_cmds_need_lc" in 8438x|xyes) 8439 # Assume -lc should be added 8440 archive_cmds_need_lc=yes 8441 8442 if test "$enable_shared" = yes && test "$GCC" = yes; then 8443 case $archive_cmds in 8444 *'~'*) 8445 # FIXME: we may have to deal with multi-command sequences. 8446 ;; 8447 '$CC '*) 8448 # Test whether the compiler implicitly links with -lc since on some 8449 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8450 # to ld, don't add -lc before -lgcc. 8451 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 8452echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 8453 $rm conftest* 8454 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8455 8456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8457 (eval $ac_compile) 2>&5 8458 ac_status=$? 8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8460 (exit $ac_status); } 2>conftest.err; then 8461 soname=conftest 8462 lib=conftest 8463 libobjs=conftest.$ac_objext 8464 deplibs= 8465 wl=$lt_prog_compiler_wl 8466 pic_flag=$lt_prog_compiler_pic 8467 compiler_flags=-v 8468 linker_flags=-v 8469 verstring= 8470 output_objdir=. 8471 libname=conftest 8472 lt_save_allow_undefined_flag=$allow_undefined_flag 8473 allow_undefined_flag= 8474 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 8475 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 8476 ac_status=$? 8477 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8478 (exit $ac_status); } 8479 then 8480 archive_cmds_need_lc=no 8481 else 8482 archive_cmds_need_lc=yes 8483 fi 8484 allow_undefined_flag=$lt_save_allow_undefined_flag 8485 else 8486 cat conftest.err 1>&5 8487 fi 8488 $rm conftest* 8489 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 8490echo "${ECHO_T}$archive_cmds_need_lc" >&6; } 8491 ;; 8492 esac 8493 fi 8494 ;; 8495esac 8496 8497{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8498echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 8499library_names_spec= 8500libname_spec='lib$name' 8501soname_spec= 8502shrext_cmds=".so" 8503postinstall_cmds= 8504postuninstall_cmds= 8505finish_cmds= 8506finish_eval= 8507shlibpath_var= 8508shlibpath_overrides_runpath=unknown 8509version_type=none 8510dynamic_linker="$host_os ld.so" 8511sys_lib_dlsearch_path_spec="/lib /usr/lib" 8512if test "$GCC" = yes; then 8513 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8514 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 8515 # if the path contains ";" then we assume it to be the separator 8516 # otherwise default to the standard path separator (i.e. ":") - it is 8517 # assumed that no part of a normal pathname contains ";" but that should 8518 # okay in the real world where ";" in dirpaths is itself problematic. 8519 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8520 else 8521 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8522 fi 8523else 8524 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8525fi 8526need_lib_prefix=unknown 8527hardcode_into_libs=no 8528 8529# when you set need_version to no, make sure it does not cause -set_version 8530# flags to be left without arguments 8531need_version=unknown 8532 8533case $host_os in 8534aix3*) 8535 version_type=linux 8536 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8537 shlibpath_var=LIBPATH 8538 8539 # AIX 3 has no versioning support, so we append a major version to the name. 8540 soname_spec='${libname}${release}${shared_ext}$major' 8541 ;; 8542 8543aix4* | aix5*) 8544 version_type=linux 8545 need_lib_prefix=no 8546 need_version=no 8547 hardcode_into_libs=yes 8548 if test "$host_cpu" = ia64; then 8549 # AIX 5 supports IA64 8550 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8551 shlibpath_var=LD_LIBRARY_PATH 8552 else 8553 # With GCC up to 2.95.x, collect2 would create an import file 8554 # for dependence libraries. The import file would start with 8555 # the line `#! .'. This would cause the generated library to 8556 # depend on `.', always an invalid library. This was fixed in 8557 # development snapshots of GCC prior to 3.0. 8558 case $host_os in 8559 aix4 | aix4.[01] | aix4.[01].*) 8560 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8561 echo ' yes ' 8562 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 8563 : 8564 else 8565 can_build_shared=no 8566 fi 8567 ;; 8568 esac 8569 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8570 # soname into executable. Probably we can add versioning support to 8571 # collect2, so additional links can be useful in future. 8572 if test "$aix_use_runtimelinking" = yes; then 8573 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 8574 # instead of lib<name>.a to let people know that these are not 8575 # typical AIX shared libraries. 8576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8577 else 8578 # We preserve .a as extension for shared libraries through AIX4.2 8579 # and later when we are not doing run time linking. 8580 library_names_spec='${libname}${release}.a $libname.a' 8581 soname_spec='${libname}${release}${shared_ext}$major' 8582 fi 8583 shlibpath_var=LIBPATH 8584 fi 8585 ;; 8586 8587amigaos*) 8588 library_names_spec='$libname.ixlibrary $libname.a' 8589 # Create ${libname}_ixlibrary.a entries in /sys/libs. 8590 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' 8591 ;; 8592 8593beos*) 8594 library_names_spec='${libname}${shared_ext}' 8595 dynamic_linker="$host_os ld.so" 8596 shlibpath_var=LIBRARY_PATH 8597 ;; 8598 8599bsdi[45]*) 8600 version_type=linux 8601 need_version=no 8602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8603 soname_spec='${libname}${release}${shared_ext}$major' 8604 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 8605 shlibpath_var=LD_LIBRARY_PATH 8606 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 8607 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 8608 # the default ld.so.conf also contains /usr/contrib/lib and 8609 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 8610 # libtool to hard-code these into programs 8611 ;; 8612 8613cygwin* | mingw* | pw32*) 8614 version_type=windows 8615 shrext_cmds=".dll" 8616 need_version=no 8617 need_lib_prefix=no 8618 8619 case $GCC,$host_os in 8620 yes,cygwin* | yes,mingw* | yes,pw32*) 8621 library_names_spec='$libname.dll.a' 8622 # DLL is installed to $(libdir)/../bin by postinstall_cmds 8623 postinstall_cmds='base_file=`basename \${file}`~ 8624 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 8625 dldir=$destdir/`dirname \$dlpath`~ 8626 test -d \$dldir || mkdir -p \$dldir~ 8627 $install_prog $dir/$dlname \$dldir/$dlname~ 8628 chmod a+x \$dldir/$dlname' 8629 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 8630 dlpath=$dir/\$dldll~ 8631 $rm \$dlpath' 8632 shlibpath_overrides_runpath=yes 8633 8634 case $host_os in 8635 cygwin*) 8636 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 8637 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8638 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 8639 ;; 8640 mingw*) 8641 # MinGW DLLs use traditional 'lib' prefix 8642 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8643 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8644 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 8645 # It is most probably a Windows format PATH printed by 8646 # mingw gcc, but we are running on Cygwin. Gcc prints its search 8647 # path with ; separators, and with drive letters. We can handle the 8648 # drive letters (cygwin fileutils understands them), so leave them, 8649 # especially as we might pass files found there to a mingw objdump, 8650 # which wouldn't understand a cygwinified path. Ahh. 8651 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8652 else 8653 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8654 fi 8655 ;; 8656 pw32*) 8657 # pw32 DLLs use 'pw' prefix rather than 'lib' 8658 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8659 ;; 8660 esac 8661 ;; 8662 8663 *) 8664 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 8665 ;; 8666 esac 8667 dynamic_linker='Win32 ld.exe' 8668 # FIXME: first we should search . and the directory the executable is in 8669 shlibpath_var=PATH 8670 ;; 8671 8672darwin* | rhapsody*) 8673 dynamic_linker="$host_os dyld" 8674 version_type=darwin 8675 need_lib_prefix=no 8676 need_version=no 8677 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 8678 soname_spec='${libname}${release}${major}$shared_ext' 8679 shlibpath_overrides_runpath=yes 8680 shlibpath_var=DYLD_LIBRARY_PATH 8681 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 8682 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 8683 if test "$GCC" = yes; then 8684 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"` 8685 else 8686 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 8687 fi 8688 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 8689 ;; 8690 8691dgux*) 8692 version_type=linux 8693 need_lib_prefix=no 8694 need_version=no 8695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 8696 soname_spec='${libname}${release}${shared_ext}$major' 8697 shlibpath_var=LD_LIBRARY_PATH 8698 ;; 8699 8700freebsd1*) 8701 dynamic_linker=no 8702 ;; 8703 8704kfreebsd*-gnu) 8705 version_type=linux 8706 need_lib_prefix=no 8707 need_version=no 8708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8709 soname_spec='${libname}${release}${shared_ext}$major' 8710 shlibpath_var=LD_LIBRARY_PATH 8711 shlibpath_overrides_runpath=no 8712 hardcode_into_libs=yes 8713 dynamic_linker='GNU ld.so' 8714 ;; 8715 8716freebsd* | dragonfly*) 8717 # DragonFly does not have aout. When/if they implement a new 8718 # versioning mechanism, adjust this. 8719 if test -x /usr/bin/objformat; then 8720 objformat=`/usr/bin/objformat` 8721 else 8722 case $host_os in 8723 freebsd[123]*) objformat=aout ;; 8724 *) objformat=elf ;; 8725 esac 8726 fi 8727 version_type=freebsd-$objformat 8728 case $version_type in 8729 freebsd-elf*) 8730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8731 need_version=no 8732 need_lib_prefix=no 8733 ;; 8734 freebsd-*) 8735 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 8736 need_version=yes 8737 ;; 8738 esac 8739 shlibpath_var=LD_LIBRARY_PATH 8740 case $host_os in 8741 freebsd2*) 8742 shlibpath_overrides_runpath=yes 8743 ;; 8744 freebsd3.[01]* | freebsdelf3.[01]*) 8745 shlibpath_overrides_runpath=yes 8746 hardcode_into_libs=yes 8747 ;; 8748 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 8749 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 8750 shlibpath_overrides_runpath=no 8751 hardcode_into_libs=yes 8752 ;; 8753 freebsd*) # from 4.6 on 8754 shlibpath_overrides_runpath=yes 8755 hardcode_into_libs=yes 8756 ;; 8757 esac 8758 ;; 8759 8760gnu*) 8761 version_type=linux 8762 need_lib_prefix=no 8763 need_version=no 8764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 8765 soname_spec='${libname}${release}${shared_ext}$major' 8766 shlibpath_var=LD_LIBRARY_PATH 8767 hardcode_into_libs=yes 8768 ;; 8769 8770hpux9* | hpux10* | hpux11*) 8771 # Give a soname corresponding to the major version so that dld.sl refuses to 8772 # link against other versions. 8773 version_type=sunos 8774 need_lib_prefix=no 8775 need_version=no 8776 case $host_cpu in 8777 ia64*) 8778 shrext_cmds='.so' 8779 hardcode_into_libs=yes 8780 dynamic_linker="$host_os dld.so" 8781 shlibpath_var=LD_LIBRARY_PATH 8782 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8784 soname_spec='${libname}${release}${shared_ext}$major' 8785 if test "X$HPUX_IA64_MODE" = X32; then 8786 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 8787 else 8788 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 8789 fi 8790 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8791 ;; 8792 hppa*64*) 8793 shrext_cmds='.sl' 8794 hardcode_into_libs=yes 8795 dynamic_linker="$host_os dld.sl" 8796 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 8797 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8799 soname_spec='${libname}${release}${shared_ext}$major' 8800 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 8801 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8802 ;; 8803 *) 8804 shrext_cmds='.sl' 8805 dynamic_linker="$host_os dld.sl" 8806 shlibpath_var=SHLIB_PATH 8807 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 8808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8809 soname_spec='${libname}${release}${shared_ext}$major' 8810 ;; 8811 esac 8812 # HP-UX runs *really* slowly unless shared libraries are mode 555. 8813 postinstall_cmds='chmod 555 $lib' 8814 ;; 8815 8816interix3*) 8817 version_type=linux 8818 need_lib_prefix=no 8819 need_version=no 8820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8821 soname_spec='${libname}${release}${shared_ext}$major' 8822 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 8823 shlibpath_var=LD_LIBRARY_PATH 8824 shlibpath_overrides_runpath=no 8825 hardcode_into_libs=yes 8826 ;; 8827 8828irix5* | irix6* | nonstopux*) 8829 case $host_os in 8830 nonstopux*) version_type=nonstopux ;; 8831 *) 8832 if test "$lt_cv_prog_gnu_ld" = yes; then 8833 version_type=linux 8834 else 8835 version_type=irix 8836 fi ;; 8837 esac 8838 need_lib_prefix=no 8839 need_version=no 8840 soname_spec='${libname}${release}${shared_ext}$major' 8841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 8842 case $host_os in 8843 irix5* | nonstopux*) 8844 libsuff= shlibsuff= 8845 ;; 8846 *) 8847 case $LD in # libtool.m4 will add one of these switches to LD 8848 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 8849 libsuff= shlibsuff= libmagic=32-bit;; 8850 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 8851 libsuff=32 shlibsuff=N32 libmagic=N32;; 8852 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 8853 libsuff=64 shlibsuff=64 libmagic=64-bit;; 8854 *) libsuff= shlibsuff= libmagic=never-match;; 8855 esac 8856 ;; 8857 esac 8858 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 8859 shlibpath_overrides_runpath=no 8860 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 8861 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 8862 hardcode_into_libs=yes 8863 ;; 8864 8865# No shared lib support for Linux oldld, aout, or coff. 8866linux*oldld* | linux*aout* | linux*coff*) 8867 dynamic_linker=no 8868 ;; 8869 8870# This must be Linux ELF. 8871linux*) 8872 version_type=linux 8873 need_lib_prefix=no 8874 need_version=no 8875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8876 soname_spec='${libname}${release}${shared_ext}$major' 8877 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 8878 shlibpath_var=LD_LIBRARY_PATH 8879 shlibpath_overrides_runpath=no 8880 # This implies no fast_install, which is unacceptable. 8881 # Some rework will be needed to allow for fast_install 8882 # before this can be enabled. 8883 hardcode_into_libs=yes 8884 8885 # Append ld.so.conf contents to the search path 8886 if test -f /etc/ld.so.conf; then 8887 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 8888 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 8889 fi 8890 8891 # We used to test for /lib/ld.so.1 and disable shared libraries on 8892 # powerpc, because MkLinux only supported shared libraries with the 8893 # GNU dynamic linker. Since this was broken with cross compilers, 8894 # most powerpc-linux boxes support dynamic linking these days and 8895 # people can always --disable-shared, the test was removed, and we 8896 # assume the GNU/Linux dynamic linker is in use. 8897 dynamic_linker='GNU/Linux ld.so' 8898 ;; 8899 8900knetbsd*-gnu) 8901 version_type=linux 8902 need_lib_prefix=no 8903 need_version=no 8904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8905 soname_spec='${libname}${release}${shared_ext}$major' 8906 shlibpath_var=LD_LIBRARY_PATH 8907 shlibpath_overrides_runpath=no 8908 hardcode_into_libs=yes 8909 dynamic_linker='GNU ld.so' 8910 ;; 8911 8912netbsd*) 8913 version_type=sunos 8914 need_lib_prefix=no 8915 need_version=no 8916 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8918 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8919 dynamic_linker='NetBSD (a.out) ld.so' 8920 else 8921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8922 soname_spec='${libname}${release}${shared_ext}$major' 8923 dynamic_linker='NetBSD ld.elf_so' 8924 fi 8925 shlibpath_var=LD_LIBRARY_PATH 8926 shlibpath_overrides_runpath=yes 8927 hardcode_into_libs=yes 8928 ;; 8929 8930newsos6) 8931 version_type=linux 8932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8933 shlibpath_var=LD_LIBRARY_PATH 8934 shlibpath_overrides_runpath=yes 8935 ;; 8936 8937nto-qnx*) 8938 version_type=linux 8939 need_lib_prefix=no 8940 need_version=no 8941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8942 soname_spec='${libname}${release}${shared_ext}$major' 8943 shlibpath_var=LD_LIBRARY_PATH 8944 shlibpath_overrides_runpath=yes 8945 ;; 8946 8947openbsd*) 8948 version_type=sunos 8949 sys_lib_dlsearch_path_spec="/usr/lib" 8950 need_lib_prefix=no 8951 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 8952 case $host_os in 8953 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 8954 *) need_version=no ;; 8955 esac 8956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8957 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8958 shlibpath_var=LD_LIBRARY_PATH 8959 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8960 case $host_os in 8961 openbsd2.[89] | openbsd2.[89].*) 8962 shlibpath_overrides_runpath=no 8963 ;; 8964 *) 8965 shlibpath_overrides_runpath=yes 8966 ;; 8967 esac 8968 else 8969 shlibpath_overrides_runpath=yes 8970 fi 8971 ;; 8972 8973os2*) 8974 libname_spec='$name' 8975 shrext_cmds=".dll" 8976 need_lib_prefix=no 8977 library_names_spec='$libname${shared_ext} $libname.a' 8978 dynamic_linker='OS/2 ld.exe' 8979 shlibpath_var=LIBPATH 8980 ;; 8981 8982osf3* | osf4* | osf5*) 8983 version_type=osf 8984 need_lib_prefix=no 8985 need_version=no 8986 soname_spec='${libname}${release}${shared_ext}$major' 8987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8988 shlibpath_var=LD_LIBRARY_PATH 8989 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 8990 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 8991 ;; 8992 8993solaris*) 8994 version_type=linux 8995 need_lib_prefix=no 8996 need_version=no 8997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8998 soname_spec='${libname}${release}${shared_ext}$major' 8999 shlibpath_var=LD_LIBRARY_PATH 9000 shlibpath_overrides_runpath=yes 9001 hardcode_into_libs=yes 9002 # ldd complains unless libraries are executable 9003 postinstall_cmds='chmod +x $lib' 9004 ;; 9005 9006sunos4*) 9007 version_type=sunos 9008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9009 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9010 shlibpath_var=LD_LIBRARY_PATH 9011 shlibpath_overrides_runpath=yes 9012 if test "$with_gnu_ld" = yes; then 9013 need_lib_prefix=no 9014 fi 9015 need_version=yes 9016 ;; 9017 9018sysv4 | sysv4.3*) 9019 version_type=linux 9020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9021 soname_spec='${libname}${release}${shared_ext}$major' 9022 shlibpath_var=LD_LIBRARY_PATH 9023 case $host_vendor in 9024 sni) 9025 shlibpath_overrides_runpath=no 9026 need_lib_prefix=no 9027 export_dynamic_flag_spec='${wl}-Blargedynsym' 9028 runpath_var=LD_RUN_PATH 9029 ;; 9030 siemens) 9031 need_lib_prefix=no 9032 ;; 9033 motorola) 9034 need_lib_prefix=no 9035 need_version=no 9036 shlibpath_overrides_runpath=no 9037 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9038 ;; 9039 esac 9040 ;; 9041 9042sysv4*MP*) 9043 if test -d /usr/nec ;then 9044 version_type=linux 9045 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9046 soname_spec='$libname${shared_ext}.$major' 9047 shlibpath_var=LD_LIBRARY_PATH 9048 fi 9049 ;; 9050 9051sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9052 version_type=freebsd-elf 9053 need_lib_prefix=no 9054 need_version=no 9055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9056 soname_spec='${libname}${release}${shared_ext}$major' 9057 shlibpath_var=LD_LIBRARY_PATH 9058 hardcode_into_libs=yes 9059 if test "$with_gnu_ld" = yes; then 9060 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9061 shlibpath_overrides_runpath=no 9062 else 9063 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9064 shlibpath_overrides_runpath=yes 9065 case $host_os in 9066 sco3.2v5*) 9067 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9068 ;; 9069 esac 9070 fi 9071 sys_lib_dlsearch_path_spec='/usr/lib' 9072 ;; 9073 9074uts4*) 9075 version_type=linux 9076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9077 soname_spec='${libname}${release}${shared_ext}$major' 9078 shlibpath_var=LD_LIBRARY_PATH 9079 ;; 9080 9081*) 9082 dynamic_linker=no 9083 ;; 9084esac 9085{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9086echo "${ECHO_T}$dynamic_linker" >&6; } 9087test "$dynamic_linker" = no && can_build_shared=no 9088 9089variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9090if test "$GCC" = yes; then 9091 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9092fi 9093 9094{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9095echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 9096hardcode_action= 9097if test -n "$hardcode_libdir_flag_spec" || \ 9098 test -n "$runpath_var" || \ 9099 test "X$hardcode_automatic" = "Xyes" ; then 9100 9101 # We can hardcode non-existant directories. 9102 if test "$hardcode_direct" != no && 9103 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9104 # have to relink, otherwise we might link with an installed library 9105 # when we should be linking with a yet-to-be-installed one 9106 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9107 test "$hardcode_minus_L" != no; then 9108 # Linking always hardcodes the temporary library directory. 9109 hardcode_action=relink 9110 else 9111 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9112 hardcode_action=immediate 9113 fi 9114else 9115 # We cannot hardcode anything, or else we can only hardcode existing 9116 # directories. 9117 hardcode_action=unsupported 9118fi 9119{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 9120echo "${ECHO_T}$hardcode_action" >&6; } 9121 9122if test "$hardcode_action" = relink; then 9123 # Fast installation is not supported 9124 enable_fast_install=no 9125elif test "$shlibpath_overrides_runpath" = yes || 9126 test "$enable_shared" = no; then 9127 # Fast installation is not necessary 9128 enable_fast_install=needless 9129fi 9130 9131striplib= 9132old_striplib= 9133{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9134echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } 9135if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9136 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9137 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9138 { echo "$as_me:$LINENO: result: yes" >&5 9139echo "${ECHO_T}yes" >&6; } 9140else 9141# FIXME - insert some real tests, host_os isn't really good enough 9142 case $host_os in 9143 darwin*) 9144 if test -n "$STRIP" ; then 9145 striplib="$STRIP -x" 9146 { echo "$as_me:$LINENO: result: yes" >&5 9147echo "${ECHO_T}yes" >&6; } 9148 else 9149 { echo "$as_me:$LINENO: result: no" >&5 9150echo "${ECHO_T}no" >&6; } 9151fi 9152 ;; 9153 *) 9154 { echo "$as_me:$LINENO: result: no" >&5 9155echo "${ECHO_T}no" >&6; } 9156 ;; 9157 esac 9158fi 9159 9160if test "x$enable_dlopen" != xyes; then 9161 enable_dlopen=unknown 9162 enable_dlopen_self=unknown 9163 enable_dlopen_self_static=unknown 9164else 9165 lt_cv_dlopen=no 9166 lt_cv_dlopen_libs= 9167 9168 case $host_os in 9169 beos*) 9170 lt_cv_dlopen="load_add_on" 9171 lt_cv_dlopen_libs= 9172 lt_cv_dlopen_self=yes 9173 ;; 9174 9175 mingw* | pw32*) 9176 lt_cv_dlopen="LoadLibrary" 9177 lt_cv_dlopen_libs= 9178 ;; 9179 9180 cygwin*) 9181 lt_cv_dlopen="dlopen" 9182 lt_cv_dlopen_libs= 9183 ;; 9184 9185 darwin*) 9186 # if libdl is installed we need to link against it 9187 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9188echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9189if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9190 echo $ECHO_N "(cached) $ECHO_C" >&6 9191else 9192 ac_check_lib_save_LIBS=$LIBS 9193LIBS="-ldl $LIBS" 9194cat >conftest.$ac_ext <<_ACEOF 9195/* confdefs.h. */ 9196_ACEOF 9197cat confdefs.h >>conftest.$ac_ext 9198cat >>conftest.$ac_ext <<_ACEOF 9199/* end confdefs.h. */ 9200 9201/* Override any GCC internal prototype to avoid an error. 9202 Use char because int might match the return type of a GCC 9203 builtin and then its argument prototype would still apply. */ 9204#ifdef __cplusplus 9205extern "C" 9206#endif 9207char dlopen (); 9208int 9209main () 9210{ 9211return dlopen (); 9212 ; 9213 return 0; 9214} 9215_ACEOF 9216rm -f conftest.$ac_objext conftest$ac_exeext 9217if { (ac_try="$ac_link" 9218case "(($ac_try" in 9219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9220 *) ac_try_echo=$ac_try;; 9221esac 9222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9223 (eval "$ac_link") 2>conftest.er1 9224 ac_status=$? 9225 grep -v '^ *+' conftest.er1 >conftest.err 9226 rm -f conftest.er1 9227 cat conftest.err >&5 9228 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9229 (exit $ac_status); } && { 9230 test -z "$ac_c_werror_flag" || 9231 test ! -s conftest.err 9232 } && test -s conftest$ac_exeext && 9233 $as_test_x conftest$ac_exeext; then 9234 ac_cv_lib_dl_dlopen=yes 9235else 9236 echo "$as_me: failed program was:" >&5 9237sed 's/^/| /' conftest.$ac_ext >&5 9238 9239 ac_cv_lib_dl_dlopen=no 9240fi 9241 9242rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9243 conftest$ac_exeext conftest.$ac_ext 9244LIBS=$ac_check_lib_save_LIBS 9245fi 9246{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9247echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9248if test $ac_cv_lib_dl_dlopen = yes; then 9249 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9250else 9251 9252 lt_cv_dlopen="dyld" 9253 lt_cv_dlopen_libs= 9254 lt_cv_dlopen_self=yes 9255 9256fi 9257 9258 ;; 9259 9260 *) 9261 { echo "$as_me:$LINENO: checking for shl_load" >&5 9262echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 9263if test "${ac_cv_func_shl_load+set}" = set; then 9264 echo $ECHO_N "(cached) $ECHO_C" >&6 9265else 9266 cat >conftest.$ac_ext <<_ACEOF 9267/* confdefs.h. */ 9268_ACEOF 9269cat confdefs.h >>conftest.$ac_ext 9270cat >>conftest.$ac_ext <<_ACEOF 9271/* end confdefs.h. */ 9272/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9273 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9274#define shl_load innocuous_shl_load 9275 9276/* System header to define __stub macros and hopefully few prototypes, 9277 which can conflict with char shl_load (); below. 9278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9279 <limits.h> exists even on freestanding compilers. */ 9280 9281#ifdef __STDC__ 9282# include <limits.h> 9283#else 9284# include <assert.h> 9285#endif 9286 9287#undef shl_load 9288 9289/* Override any GCC internal prototype to avoid an error. 9290 Use char because int might match the return type of a GCC 9291 builtin and then its argument prototype would still apply. */ 9292#ifdef __cplusplus 9293extern "C" 9294#endif 9295char shl_load (); 9296/* The GNU C library defines this for functions which it implements 9297 to always fail with ENOSYS. Some functions are actually named 9298 something starting with __ and the normal name is an alias. */ 9299#if defined __stub_shl_load || defined __stub___shl_load 9300choke me 9301#endif 9302 9303int 9304main () 9305{ 9306return shl_load (); 9307 ; 9308 return 0; 9309} 9310_ACEOF 9311rm -f conftest.$ac_objext conftest$ac_exeext 9312if { (ac_try="$ac_link" 9313case "(($ac_try" in 9314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9315 *) ac_try_echo=$ac_try;; 9316esac 9317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9318 (eval "$ac_link") 2>conftest.er1 9319 ac_status=$? 9320 grep -v '^ *+' conftest.er1 >conftest.err 9321 rm -f conftest.er1 9322 cat conftest.err >&5 9323 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9324 (exit $ac_status); } && { 9325 test -z "$ac_c_werror_flag" || 9326 test ! -s conftest.err 9327 } && test -s conftest$ac_exeext && 9328 $as_test_x conftest$ac_exeext; then 9329 ac_cv_func_shl_load=yes 9330else 9331 echo "$as_me: failed program was:" >&5 9332sed 's/^/| /' conftest.$ac_ext >&5 9333 9334 ac_cv_func_shl_load=no 9335fi 9336 9337rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9338 conftest$ac_exeext conftest.$ac_ext 9339fi 9340{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9341echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 9342if test $ac_cv_func_shl_load = yes; then 9343 lt_cv_dlopen="shl_load" 9344else 9345 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9346echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 9347if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9348 echo $ECHO_N "(cached) $ECHO_C" >&6 9349else 9350 ac_check_lib_save_LIBS=$LIBS 9351LIBS="-ldld $LIBS" 9352cat >conftest.$ac_ext <<_ACEOF 9353/* confdefs.h. */ 9354_ACEOF 9355cat confdefs.h >>conftest.$ac_ext 9356cat >>conftest.$ac_ext <<_ACEOF 9357/* end confdefs.h. */ 9358 9359/* Override any GCC internal prototype to avoid an error. 9360 Use char because int might match the return type of a GCC 9361 builtin and then its argument prototype would still apply. */ 9362#ifdef __cplusplus 9363extern "C" 9364#endif 9365char shl_load (); 9366int 9367main () 9368{ 9369return shl_load (); 9370 ; 9371 return 0; 9372} 9373_ACEOF 9374rm -f conftest.$ac_objext conftest$ac_exeext 9375if { (ac_try="$ac_link" 9376case "(($ac_try" in 9377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9378 *) ac_try_echo=$ac_try;; 9379esac 9380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9381 (eval "$ac_link") 2>conftest.er1 9382 ac_status=$? 9383 grep -v '^ *+' conftest.er1 >conftest.err 9384 rm -f conftest.er1 9385 cat conftest.err >&5 9386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9387 (exit $ac_status); } && { 9388 test -z "$ac_c_werror_flag" || 9389 test ! -s conftest.err 9390 } && test -s conftest$ac_exeext && 9391 $as_test_x conftest$ac_exeext; then 9392 ac_cv_lib_dld_shl_load=yes 9393else 9394 echo "$as_me: failed program was:" >&5 9395sed 's/^/| /' conftest.$ac_ext >&5 9396 9397 ac_cv_lib_dld_shl_load=no 9398fi 9399 9400rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9401 conftest$ac_exeext conftest.$ac_ext 9402LIBS=$ac_check_lib_save_LIBS 9403fi 9404{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9405echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 9406if test $ac_cv_lib_dld_shl_load = yes; then 9407 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 9408else 9409 { echo "$as_me:$LINENO: checking for dlopen" >&5 9410echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 9411if test "${ac_cv_func_dlopen+set}" = set; then 9412 echo $ECHO_N "(cached) $ECHO_C" >&6 9413else 9414 cat >conftest.$ac_ext <<_ACEOF 9415/* confdefs.h. */ 9416_ACEOF 9417cat confdefs.h >>conftest.$ac_ext 9418cat >>conftest.$ac_ext <<_ACEOF 9419/* end confdefs.h. */ 9420/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 9421 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9422#define dlopen innocuous_dlopen 9423 9424/* System header to define __stub macros and hopefully few prototypes, 9425 which can conflict with char dlopen (); below. 9426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9427 <limits.h> exists even on freestanding compilers. */ 9428 9429#ifdef __STDC__ 9430# include <limits.h> 9431#else 9432# include <assert.h> 9433#endif 9434 9435#undef dlopen 9436 9437/* Override any GCC internal prototype to avoid an error. 9438 Use char because int might match the return type of a GCC 9439 builtin and then its argument prototype would still apply. */ 9440#ifdef __cplusplus 9441extern "C" 9442#endif 9443char dlopen (); 9444/* The GNU C library defines this for functions which it implements 9445 to always fail with ENOSYS. Some functions are actually named 9446 something starting with __ and the normal name is an alias. */ 9447#if defined __stub_dlopen || defined __stub___dlopen 9448choke me 9449#endif 9450 9451int 9452main () 9453{ 9454return dlopen (); 9455 ; 9456 return 0; 9457} 9458_ACEOF 9459rm -f conftest.$ac_objext conftest$ac_exeext 9460if { (ac_try="$ac_link" 9461case "(($ac_try" in 9462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9463 *) ac_try_echo=$ac_try;; 9464esac 9465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9466 (eval "$ac_link") 2>conftest.er1 9467 ac_status=$? 9468 grep -v '^ *+' conftest.er1 >conftest.err 9469 rm -f conftest.er1 9470 cat conftest.err >&5 9471 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9472 (exit $ac_status); } && { 9473 test -z "$ac_c_werror_flag" || 9474 test ! -s conftest.err 9475 } && test -s conftest$ac_exeext && 9476 $as_test_x conftest$ac_exeext; then 9477 ac_cv_func_dlopen=yes 9478else 9479 echo "$as_me: failed program was:" >&5 9480sed 's/^/| /' conftest.$ac_ext >&5 9481 9482 ac_cv_func_dlopen=no 9483fi 9484 9485rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9486 conftest$ac_exeext conftest.$ac_ext 9487fi 9488{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 9489echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 9490if test $ac_cv_func_dlopen = yes; then 9491 lt_cv_dlopen="dlopen" 9492else 9493 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9494echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9495if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9496 echo $ECHO_N "(cached) $ECHO_C" >&6 9497else 9498 ac_check_lib_save_LIBS=$LIBS 9499LIBS="-ldl $LIBS" 9500cat >conftest.$ac_ext <<_ACEOF 9501/* confdefs.h. */ 9502_ACEOF 9503cat confdefs.h >>conftest.$ac_ext 9504cat >>conftest.$ac_ext <<_ACEOF 9505/* end confdefs.h. */ 9506 9507/* Override any GCC internal prototype to avoid an error. 9508 Use char because int might match the return type of a GCC 9509 builtin and then its argument prototype would still apply. */ 9510#ifdef __cplusplus 9511extern "C" 9512#endif 9513char dlopen (); 9514int 9515main () 9516{ 9517return dlopen (); 9518 ; 9519 return 0; 9520} 9521_ACEOF 9522rm -f conftest.$ac_objext conftest$ac_exeext 9523if { (ac_try="$ac_link" 9524case "(($ac_try" in 9525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9526 *) ac_try_echo=$ac_try;; 9527esac 9528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9529 (eval "$ac_link") 2>conftest.er1 9530 ac_status=$? 9531 grep -v '^ *+' conftest.er1 >conftest.err 9532 rm -f conftest.er1 9533 cat conftest.err >&5 9534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9535 (exit $ac_status); } && { 9536 test -z "$ac_c_werror_flag" || 9537 test ! -s conftest.err 9538 } && test -s conftest$ac_exeext && 9539 $as_test_x conftest$ac_exeext; then 9540 ac_cv_lib_dl_dlopen=yes 9541else 9542 echo "$as_me: failed program was:" >&5 9543sed 's/^/| /' conftest.$ac_ext >&5 9544 9545 ac_cv_lib_dl_dlopen=no 9546fi 9547 9548rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9549 conftest$ac_exeext conftest.$ac_ext 9550LIBS=$ac_check_lib_save_LIBS 9551fi 9552{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9553echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9554if test $ac_cv_lib_dl_dlopen = yes; then 9555 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9556else 9557 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 9558echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 9559if test "${ac_cv_lib_svld_dlopen+set}" = set; then 9560 echo $ECHO_N "(cached) $ECHO_C" >&6 9561else 9562 ac_check_lib_save_LIBS=$LIBS 9563LIBS="-lsvld $LIBS" 9564cat >conftest.$ac_ext <<_ACEOF 9565/* confdefs.h. */ 9566_ACEOF 9567cat confdefs.h >>conftest.$ac_ext 9568cat >>conftest.$ac_ext <<_ACEOF 9569/* end confdefs.h. */ 9570 9571/* Override any GCC internal prototype to avoid an error. 9572 Use char because int might match the return type of a GCC 9573 builtin and then its argument prototype would still apply. */ 9574#ifdef __cplusplus 9575extern "C" 9576#endif 9577char dlopen (); 9578int 9579main () 9580{ 9581return dlopen (); 9582 ; 9583 return 0; 9584} 9585_ACEOF 9586rm -f conftest.$ac_objext conftest$ac_exeext 9587if { (ac_try="$ac_link" 9588case "(($ac_try" in 9589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9590 *) ac_try_echo=$ac_try;; 9591esac 9592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9593 (eval "$ac_link") 2>conftest.er1 9594 ac_status=$? 9595 grep -v '^ *+' conftest.er1 >conftest.err 9596 rm -f conftest.er1 9597 cat conftest.err >&5 9598 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9599 (exit $ac_status); } && { 9600 test -z "$ac_c_werror_flag" || 9601 test ! -s conftest.err 9602 } && test -s conftest$ac_exeext && 9603 $as_test_x conftest$ac_exeext; then 9604 ac_cv_lib_svld_dlopen=yes 9605else 9606 echo "$as_me: failed program was:" >&5 9607sed 's/^/| /' conftest.$ac_ext >&5 9608 9609 ac_cv_lib_svld_dlopen=no 9610fi 9611 9612rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9613 conftest$ac_exeext conftest.$ac_ext 9614LIBS=$ac_check_lib_save_LIBS 9615fi 9616{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 9617echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 9618if test $ac_cv_lib_svld_dlopen = yes; then 9619 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 9620else 9621 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 9622echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 9623if test "${ac_cv_lib_dld_dld_link+set}" = set; then 9624 echo $ECHO_N "(cached) $ECHO_C" >&6 9625else 9626 ac_check_lib_save_LIBS=$LIBS 9627LIBS="-ldld $LIBS" 9628cat >conftest.$ac_ext <<_ACEOF 9629/* confdefs.h. */ 9630_ACEOF 9631cat confdefs.h >>conftest.$ac_ext 9632cat >>conftest.$ac_ext <<_ACEOF 9633/* end confdefs.h. */ 9634 9635/* Override any GCC internal prototype to avoid an error. 9636 Use char because int might match the return type of a GCC 9637 builtin and then its argument prototype would still apply. */ 9638#ifdef __cplusplus 9639extern "C" 9640#endif 9641char dld_link (); 9642int 9643main () 9644{ 9645return dld_link (); 9646 ; 9647 return 0; 9648} 9649_ACEOF 9650rm -f conftest.$ac_objext conftest$ac_exeext 9651if { (ac_try="$ac_link" 9652case "(($ac_try" in 9653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9654 *) ac_try_echo=$ac_try;; 9655esac 9656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9657 (eval "$ac_link") 2>conftest.er1 9658 ac_status=$? 9659 grep -v '^ *+' conftest.er1 >conftest.err 9660 rm -f conftest.er1 9661 cat conftest.err >&5 9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9663 (exit $ac_status); } && { 9664 test -z "$ac_c_werror_flag" || 9665 test ! -s conftest.err 9666 } && test -s conftest$ac_exeext && 9667 $as_test_x conftest$ac_exeext; then 9668 ac_cv_lib_dld_dld_link=yes 9669else 9670 echo "$as_me: failed program was:" >&5 9671sed 's/^/| /' conftest.$ac_ext >&5 9672 9673 ac_cv_lib_dld_dld_link=no 9674fi 9675 9676rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9677 conftest$ac_exeext conftest.$ac_ext 9678LIBS=$ac_check_lib_save_LIBS 9679fi 9680{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 9681echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 9682if test $ac_cv_lib_dld_dld_link = yes; then 9683 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 9684fi 9685 9686 9687fi 9688 9689 9690fi 9691 9692 9693fi 9694 9695 9696fi 9697 9698 9699fi 9700 9701 ;; 9702 esac 9703 9704 if test "x$lt_cv_dlopen" != xno; then 9705 enable_dlopen=yes 9706 else 9707 enable_dlopen=no 9708 fi 9709 9710 case $lt_cv_dlopen in 9711 dlopen) 9712 save_CPPFLAGS="$CPPFLAGS" 9713 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 9714 9715 save_LDFLAGS="$LDFLAGS" 9716 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 9717 9718 save_LIBS="$LIBS" 9719 LIBS="$lt_cv_dlopen_libs $LIBS" 9720 9721 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 9722echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } 9723if test "${lt_cv_dlopen_self+set}" = set; then 9724 echo $ECHO_N "(cached) $ECHO_C" >&6 9725else 9726 if test "$cross_compiling" = yes; then : 9727 lt_cv_dlopen_self=cross 9728else 9729 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9730 lt_status=$lt_dlunknown 9731 cat > conftest.$ac_ext <<EOF 9732#line 9732 "configure" 9733#include "confdefs.h" 9734 9735#if HAVE_DLFCN_H 9736#include <dlfcn.h> 9737#endif 9738 9739#include <stdio.h> 9740 9741#ifdef RTLD_GLOBAL 9742# define LT_DLGLOBAL RTLD_GLOBAL 9743#else 9744# ifdef DL_GLOBAL 9745# define LT_DLGLOBAL DL_GLOBAL 9746# else 9747# define LT_DLGLOBAL 0 9748# endif 9749#endif 9750 9751/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9752 find out it does not work in some platform. */ 9753#ifndef LT_DLLAZY_OR_NOW 9754# ifdef RTLD_LAZY 9755# define LT_DLLAZY_OR_NOW RTLD_LAZY 9756# else 9757# ifdef DL_LAZY 9758# define LT_DLLAZY_OR_NOW DL_LAZY 9759# else 9760# ifdef RTLD_NOW 9761# define LT_DLLAZY_OR_NOW RTLD_NOW 9762# else 9763# ifdef DL_NOW 9764# define LT_DLLAZY_OR_NOW DL_NOW 9765# else 9766# define LT_DLLAZY_OR_NOW 0 9767# endif 9768# endif 9769# endif 9770# endif 9771#endif 9772 9773#ifdef __cplusplus 9774extern "C" void exit (int); 9775#endif 9776 9777void fnord() { int i=42;} 9778int main () 9779{ 9780 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9781 int status = $lt_dlunknown; 9782 9783 if (self) 9784 { 9785 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9786 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9787 /* dlclose (self); */ 9788 } 9789 else 9790 puts (dlerror ()); 9791 9792 exit (status); 9793} 9794EOF 9795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9796 (eval $ac_link) 2>&5 9797 ac_status=$? 9798 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9799 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9800 (./conftest; exit; ) >&5 2>/dev/null 9801 lt_status=$? 9802 case x$lt_status in 9803 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 9804 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 9805 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 9806 esac 9807 else : 9808 # compilation failed 9809 lt_cv_dlopen_self=no 9810 fi 9811fi 9812rm -fr conftest* 9813 9814 9815fi 9816{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 9817echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } 9818 9819 if test "x$lt_cv_dlopen_self" = xyes; then 9820 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 9821 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 9822echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } 9823if test "${lt_cv_dlopen_self_static+set}" = set; then 9824 echo $ECHO_N "(cached) $ECHO_C" >&6 9825else 9826 if test "$cross_compiling" = yes; then : 9827 lt_cv_dlopen_self_static=cross 9828else 9829 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9830 lt_status=$lt_dlunknown 9831 cat > conftest.$ac_ext <<EOF 9832#line 9832 "configure" 9833#include "confdefs.h" 9834 9835#if HAVE_DLFCN_H 9836#include <dlfcn.h> 9837#endif 9838 9839#include <stdio.h> 9840 9841#ifdef RTLD_GLOBAL 9842# define LT_DLGLOBAL RTLD_GLOBAL 9843#else 9844# ifdef DL_GLOBAL 9845# define LT_DLGLOBAL DL_GLOBAL 9846# else 9847# define LT_DLGLOBAL 0 9848# endif 9849#endif 9850 9851/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9852 find out it does not work in some platform. */ 9853#ifndef LT_DLLAZY_OR_NOW 9854# ifdef RTLD_LAZY 9855# define LT_DLLAZY_OR_NOW RTLD_LAZY 9856# else 9857# ifdef DL_LAZY 9858# define LT_DLLAZY_OR_NOW DL_LAZY 9859# else 9860# ifdef RTLD_NOW 9861# define LT_DLLAZY_OR_NOW RTLD_NOW 9862# else 9863# ifdef DL_NOW 9864# define LT_DLLAZY_OR_NOW DL_NOW 9865# else 9866# define LT_DLLAZY_OR_NOW 0 9867# endif 9868# endif 9869# endif 9870# endif 9871#endif 9872 9873#ifdef __cplusplus 9874extern "C" void exit (int); 9875#endif 9876 9877void fnord() { int i=42;} 9878int main () 9879{ 9880 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9881 int status = $lt_dlunknown; 9882 9883 if (self) 9884 { 9885 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9886 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9887 /* dlclose (self); */ 9888 } 9889 else 9890 puts (dlerror ()); 9891 9892 exit (status); 9893} 9894EOF 9895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9896 (eval $ac_link) 2>&5 9897 ac_status=$? 9898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9899 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9900 (./conftest; exit; ) >&5 2>/dev/null 9901 lt_status=$? 9902 case x$lt_status in 9903 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 9904 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 9905 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 9906 esac 9907 else : 9908 # compilation failed 9909 lt_cv_dlopen_self_static=no 9910 fi 9911fi 9912rm -fr conftest* 9913 9914 9915fi 9916{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 9917echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } 9918 fi 9919 9920 CPPFLAGS="$save_CPPFLAGS" 9921 LDFLAGS="$save_LDFLAGS" 9922 LIBS="$save_LIBS" 9923 ;; 9924 esac 9925 9926 case $lt_cv_dlopen_self in 9927 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 9928 *) enable_dlopen_self=unknown ;; 9929 esac 9930 9931 case $lt_cv_dlopen_self_static in 9932 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 9933 *) enable_dlopen_self_static=unknown ;; 9934 esac 9935fi 9936 9937 9938# Report which library types will actually be built 9939{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 9940echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 9941{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 9942echo "${ECHO_T}$can_build_shared" >&6; } 9943 9944{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 9945echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 9946test "$can_build_shared" = "no" && enable_shared=no 9947 9948# On AIX, shared libraries and static libraries use the same namespace, and 9949# are all built from PIC. 9950case $host_os in 9951aix3*) 9952 test "$enable_shared" = yes && enable_static=no 9953 if test -n "$RANLIB"; then 9954 archive_cmds="$archive_cmds~\$RANLIB \$lib" 9955 postinstall_cmds='$RANLIB $lib' 9956 fi 9957 ;; 9958 9959aix4* | aix5*) 9960 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 9961 test "$enable_shared" = yes && enable_static=no 9962 fi 9963 ;; 9964esac 9965{ echo "$as_me:$LINENO: result: $enable_shared" >&5 9966echo "${ECHO_T}$enable_shared" >&6; } 9967 9968{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 9969echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 9970# Make sure either enable_shared or enable_static is yes. 9971test "$enable_shared" = yes || enable_static=yes 9972{ echo "$as_me:$LINENO: result: $enable_static" >&5 9973echo "${ECHO_T}$enable_static" >&6; } 9974 9975# The else clause should only fire when bootstrapping the 9976# libtool distribution, otherwise you forgot to ship ltmain.sh 9977# with your package, and you will get complaints that there are 9978# no rules to generate ltmain.sh. 9979if test -f "$ltmain"; then 9980 # See if we are running on zsh, and set the options which allow our commands through 9981 # without removal of \ escapes. 9982 if test -n "${ZSH_VERSION+set}" ; then 9983 setopt NO_GLOB_SUBST 9984 fi 9985 # Now quote all the things that may contain metacharacters while being 9986 # careful not to overquote the AC_SUBSTed values. We take copies of the 9987 # variables and quote the copies for generation of the libtool script. 9988 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 9989 SED SHELL STRIP \ 9990 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 9991 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 9992 deplibs_check_method reload_flag reload_cmds need_locks \ 9993 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 9994 lt_cv_sys_global_symbol_to_c_name_address \ 9995 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 9996 old_postinstall_cmds old_postuninstall_cmds \ 9997 compiler \ 9998 CC \ 9999 LD \ 10000 lt_prog_compiler_wl \ 10001 lt_prog_compiler_pic \ 10002 lt_prog_compiler_static \ 10003 lt_prog_compiler_no_builtin_flag \ 10004 export_dynamic_flag_spec \ 10005 thread_safe_flag_spec \ 10006 whole_archive_flag_spec \ 10007 enable_shared_with_static_runtimes \ 10008 old_archive_cmds \ 10009 old_archive_from_new_cmds \ 10010 predep_objects \ 10011 postdep_objects \ 10012 predeps \ 10013 postdeps \ 10014 compiler_lib_search_path \ 10015 archive_cmds \ 10016 archive_expsym_cmds \ 10017 postinstall_cmds \ 10018 postuninstall_cmds \ 10019 old_archive_from_expsyms_cmds \ 10020 allow_undefined_flag \ 10021 no_undefined_flag \ 10022 export_symbols_cmds \ 10023 hardcode_libdir_flag_spec \ 10024 hardcode_libdir_flag_spec_ld \ 10025 hardcode_libdir_separator \ 10026 hardcode_automatic \ 10027 module_cmds \ 10028 module_expsym_cmds \ 10029 lt_cv_prog_compiler_c_o \ 10030 exclude_expsyms \ 10031 include_expsyms; do 10032 10033 case $var in 10034 old_archive_cmds | \ 10035 old_archive_from_new_cmds | \ 10036 archive_cmds | \ 10037 archive_expsym_cmds | \ 10038 module_cmds | \ 10039 module_expsym_cmds | \ 10040 old_archive_from_expsyms_cmds | \ 10041 export_symbols_cmds | \ 10042 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10043 postinstall_cmds | postuninstall_cmds | \ 10044 old_postinstall_cmds | old_postuninstall_cmds | \ 10045 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10046 # Double-quote double-evaled strings. 10047 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10048 ;; 10049 *) 10050 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10051 ;; 10052 esac 10053 done 10054 10055 case $lt_echo in 10056 *'\$0 --fallback-echo"') 10057 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10058 ;; 10059 esac 10060 10061cfgfile="${ofile}T" 10062 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10063 $rm -f "$cfgfile" 10064 { echo "$as_me:$LINENO: creating $ofile" >&5 10065echo "$as_me: creating $ofile" >&6;} 10066 10067 cat <<__EOF__ >> "$cfgfile" 10068#! $SHELL 10069 10070# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10071# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10072# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10073# 10074# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 10075# Free Software Foundation, Inc. 10076# 10077# This file is part of GNU Libtool: 10078# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10079# 10080# This program is free software; you can redistribute it and/or modify 10081# it under the terms of the GNU General Public License as published by 10082# the Free Software Foundation; either version 2 of the License, or 10083# (at your option) any later version. 10084# 10085# This program is distributed in the hope that it will be useful, but 10086# WITHOUT ANY WARRANTY; without even the implied warranty of 10087# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10088# General Public License for more details. 10089# 10090# You should have received a copy of the GNU General Public License 10091# along with this program; if not, write to the Free Software 10092# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10093# 10094# As a special exception to the GNU General Public License, if you 10095# distribute this file as part of a program that contains a 10096# configuration script generated by Autoconf, you may include it under 10097# the same distribution terms that you use for the rest of that program. 10098 10099# A sed program that does not truncate output. 10100SED=$lt_SED 10101 10102# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10103Xsed="$SED -e 1s/^X//" 10104 10105# The HP-UX ksh and POSIX shell print the target directory to stdout 10106# if CDPATH is set. 10107(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10108 10109# The names of the tagged configurations supported by this script. 10110available_tags= 10111 10112# ### BEGIN LIBTOOL CONFIG 10113 10114# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10115 10116# Shell to use when invoking shell scripts. 10117SHELL=$lt_SHELL 10118 10119# Whether or not to build shared libraries. 10120build_libtool_libs=$enable_shared 10121 10122# Whether or not to build static libraries. 10123build_old_libs=$enable_static 10124 10125# Whether or not to add -lc for building shared libraries. 10126build_libtool_need_lc=$archive_cmds_need_lc 10127 10128# Whether or not to disallow shared libs when runtime libs are static 10129allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10130 10131# Whether or not to optimize for fast installation. 10132fast_install=$enable_fast_install 10133 10134# The host system. 10135host_alias=$host_alias 10136host=$host 10137host_os=$host_os 10138 10139# The build system. 10140build_alias=$build_alias 10141build=$build 10142build_os=$build_os 10143 10144# An echo program that does not interpret backslashes. 10145echo=$lt_echo 10146 10147# The archiver. 10148AR=$lt_AR 10149AR_FLAGS=$lt_AR_FLAGS 10150 10151# A C compiler. 10152LTCC=$lt_LTCC 10153 10154# LTCC compiler flags. 10155LTCFLAGS=$lt_LTCFLAGS 10156 10157# A language-specific compiler. 10158CC=$lt_compiler 10159 10160# Is the compiler the GNU C compiler? 10161with_gcc=$GCC 10162 10163# An ERE matcher. 10164EGREP=$lt_EGREP 10165 10166# The linker used to build libraries. 10167LD=$lt_LD 10168 10169# Whether we need hard or soft links. 10170LN_S=$lt_LN_S 10171 10172# A BSD-compatible nm program. 10173NM=$lt_NM 10174 10175# A symbol stripping program 10176STRIP=$lt_STRIP 10177 10178# Used to examine libraries when file_magic_cmd begins "file" 10179MAGIC_CMD=$MAGIC_CMD 10180 10181# Used on cygwin: DLL creation program. 10182DLLTOOL="$DLLTOOL" 10183 10184# Used on cygwin: object dumper. 10185OBJDUMP="$OBJDUMP" 10186 10187# Used on cygwin: assembler. 10188AS="$AS" 10189 10190# The name of the directory that contains temporary libtool files. 10191objdir=$objdir 10192 10193# How to create reloadable object files. 10194reload_flag=$lt_reload_flag 10195reload_cmds=$lt_reload_cmds 10196 10197# How to pass a linker flag through the compiler. 10198wl=$lt_lt_prog_compiler_wl 10199 10200# Object file suffix (normally "o"). 10201objext="$ac_objext" 10202 10203# Old archive suffix (normally "a"). 10204libext="$libext" 10205 10206# Shared library suffix (normally ".so"). 10207shrext_cmds='$shrext_cmds' 10208 10209# Executable file suffix (normally ""). 10210exeext="$exeext" 10211 10212# Additional compiler flags for building library objects. 10213pic_flag=$lt_lt_prog_compiler_pic 10214pic_mode=$pic_mode 10215 10216# What is the maximum length of a command? 10217max_cmd_len=$lt_cv_sys_max_cmd_len 10218 10219# Does compiler simultaneously support -c and -o options? 10220compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10221 10222# Must we lock files when doing compilation? 10223need_locks=$lt_need_locks 10224 10225# Do we need the lib prefix for modules? 10226need_lib_prefix=$need_lib_prefix 10227 10228# Do we need a version for libraries? 10229need_version=$need_version 10230 10231# Whether dlopen is supported. 10232dlopen_support=$enable_dlopen 10233 10234# Whether dlopen of programs is supported. 10235dlopen_self=$enable_dlopen_self 10236 10237# Whether dlopen of statically linked programs is supported. 10238dlopen_self_static=$enable_dlopen_self_static 10239 10240# Compiler flag to prevent dynamic linking. 10241link_static_flag=$lt_lt_prog_compiler_static 10242 10243# Compiler flag to turn off builtin functions. 10244no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10245 10246# Compiler flag to allow reflexive dlopens. 10247export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10248 10249# Compiler flag to generate shared objects directly from archives. 10250whole_archive_flag_spec=$lt_whole_archive_flag_spec 10251 10252# Compiler flag to generate thread-safe objects. 10253thread_safe_flag_spec=$lt_thread_safe_flag_spec 10254 10255# Library versioning type. 10256version_type=$version_type 10257 10258# Format of library name prefix. 10259libname_spec=$lt_libname_spec 10260 10261# List of archive names. First name is the real one, the rest are links. 10262# The last name is the one that the linker finds with -lNAME. 10263library_names_spec=$lt_library_names_spec 10264 10265# The coded name of the library, if different from the real name. 10266soname_spec=$lt_soname_spec 10267 10268# Commands used to build and install an old-style archive. 10269RANLIB=$lt_RANLIB 10270old_archive_cmds=$lt_old_archive_cmds 10271old_postinstall_cmds=$lt_old_postinstall_cmds 10272old_postuninstall_cmds=$lt_old_postuninstall_cmds 10273 10274# Create an old-style archive from a shared archive. 10275old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10276 10277# Create a temporary old-style archive to link instead of a shared archive. 10278old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10279 10280# Commands used to build and install a shared archive. 10281archive_cmds=$lt_archive_cmds 10282archive_expsym_cmds=$lt_archive_expsym_cmds 10283postinstall_cmds=$lt_postinstall_cmds 10284postuninstall_cmds=$lt_postuninstall_cmds 10285 10286# Commands used to build a loadable module (assumed same as above if empty) 10287module_cmds=$lt_module_cmds 10288module_expsym_cmds=$lt_module_expsym_cmds 10289 10290# Commands to strip libraries. 10291old_striplib=$lt_old_striplib 10292striplib=$lt_striplib 10293 10294# Dependencies to place before the objects being linked to create a 10295# shared library. 10296predep_objects=$lt_predep_objects 10297 10298# Dependencies to place after the objects being linked to create a 10299# shared library. 10300postdep_objects=$lt_postdep_objects 10301 10302# Dependencies to place before the objects being linked to create a 10303# shared library. 10304predeps=$lt_predeps 10305 10306# Dependencies to place after the objects being linked to create a 10307# shared library. 10308postdeps=$lt_postdeps 10309 10310# The library search path used internally by the compiler when linking 10311# a shared library. 10312compiler_lib_search_path=$lt_compiler_lib_search_path 10313 10314# Method to check whether dependent libraries are shared objects. 10315deplibs_check_method=$lt_deplibs_check_method 10316 10317# Command to use when deplibs_check_method == file_magic. 10318file_magic_cmd=$lt_file_magic_cmd 10319 10320# Flag that allows shared libraries with undefined symbols to be built. 10321allow_undefined_flag=$lt_allow_undefined_flag 10322 10323# Flag that forces no undefined symbols. 10324no_undefined_flag=$lt_no_undefined_flag 10325 10326# Commands used to finish a libtool library installation in a directory. 10327finish_cmds=$lt_finish_cmds 10328 10329# Same as above, but a single script fragment to be evaled but not shown. 10330finish_eval=$lt_finish_eval 10331 10332# Take the output of nm and produce a listing of raw symbols and C names. 10333global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 10334 10335# Transform the output of nm in a proper C declaration 10336global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 10337 10338# Transform the output of nm in a C name address pair 10339global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 10340 10341# This is the shared library runtime path variable. 10342runpath_var=$runpath_var 10343 10344# This is the shared library path variable. 10345shlibpath_var=$shlibpath_var 10346 10347# Is shlibpath searched before the hard-coded library search path? 10348shlibpath_overrides_runpath=$shlibpath_overrides_runpath 10349 10350# How to hardcode a shared library path into an executable. 10351hardcode_action=$hardcode_action 10352 10353# Whether we should hardcode library paths into libraries. 10354hardcode_into_libs=$hardcode_into_libs 10355 10356# Flag to hardcode \$libdir into a binary during linking. 10357# This must work even if \$libdir does not exist. 10358hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 10359 10360# If ld is used when linking, flag to hardcode \$libdir into 10361# a binary during linking. This must work even if \$libdir does 10362# not exist. 10363hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 10364 10365# Whether we need a single -rpath flag with a separated argument. 10366hardcode_libdir_separator=$lt_hardcode_libdir_separator 10367 10368# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 10369# resulting binary. 10370hardcode_direct=$hardcode_direct 10371 10372# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 10373# resulting binary. 10374hardcode_minus_L=$hardcode_minus_L 10375 10376# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 10377# the resulting binary. 10378hardcode_shlibpath_var=$hardcode_shlibpath_var 10379 10380# Set to yes if building a shared library automatically hardcodes DIR into the library 10381# and all subsequent libraries and executables linked against it. 10382hardcode_automatic=$hardcode_automatic 10383 10384# Variables whose values should be saved in libtool wrapper scripts and 10385# restored at relink time. 10386variables_saved_for_relink="$variables_saved_for_relink" 10387 10388# Whether libtool must link a program against all its dependency libraries. 10389link_all_deplibs=$link_all_deplibs 10390 10391# Compile-time system search path for libraries 10392sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 10393 10394# Run-time system search path for libraries 10395sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 10396 10397# Fix the shell variable \$srcfile for the compiler. 10398fix_srcfile_path="$fix_srcfile_path" 10399 10400# Set to yes if exported symbols are required. 10401always_export_symbols=$always_export_symbols 10402 10403# The commands to list exported symbols. 10404export_symbols_cmds=$lt_export_symbols_cmds 10405 10406# The commands to extract the exported symbol list from a shared archive. 10407extract_expsyms_cmds=$lt_extract_expsyms_cmds 10408 10409# Symbols that should not be listed in the preloaded symbols. 10410exclude_expsyms=$lt_exclude_expsyms 10411 10412# Symbols that must always be exported. 10413include_expsyms=$lt_include_expsyms 10414 10415# ### END LIBTOOL CONFIG 10416 10417__EOF__ 10418 10419 10420 case $host_os in 10421 aix3*) 10422 cat <<\EOF >> "$cfgfile" 10423 10424# AIX sometimes has problems with the GCC collect2 program. For some 10425# reason, if we set the COLLECT_NAMES environment variable, the problems 10426# vanish in a puff of smoke. 10427if test "X${COLLECT_NAMES+set}" != Xset; then 10428 COLLECT_NAMES= 10429 export COLLECT_NAMES 10430fi 10431EOF 10432 ;; 10433 esac 10434 10435 # We use sed instead of cat because bash on DJGPP gets confused if 10436 # if finds mixed CR/LF and LF-only lines. Since sed operates in 10437 # text mode, it properly converts lines to CR/LF. This bash problem 10438 # is reportedly fixed, but why not run on old versions too? 10439 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 10440 10441 mv -f "$cfgfile" "$ofile" || \ 10442 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 10443 chmod +x "$ofile" 10444 10445else 10446 # If there is no Makefile yet, we rely on a make rule to execute 10447 # `config.status --recheck' to rerun these tests and create the 10448 # libtool script then. 10449 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 10450 if test -f "$ltmain_in"; then 10451 test -f Makefile && make "$ltmain" 10452 fi 10453fi 10454 10455 10456ac_ext=c 10457ac_cpp='$CPP $CPPFLAGS' 10458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10460ac_compiler_gnu=$ac_cv_c_compiler_gnu 10461 10462CC="$lt_save_CC" 10463 10464 10465# Check whether --with-tags was given. 10466if test "${with_tags+set}" = set; then 10467 withval=$with_tags; tagnames="$withval" 10468fi 10469 10470 10471if test -f "$ltmain" && test -n "$tagnames"; then 10472 if test ! -f "${ofile}"; then 10473 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 10474echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 10475 fi 10476 10477 if test -z "$LTCC"; then 10478 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 10479 if test -z "$LTCC"; then 10480 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 10481echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 10482 else 10483 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 10484echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 10485 fi 10486 fi 10487 if test -z "$LTCFLAGS"; then 10488 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 10489 fi 10490 10491 # Extract list of available tagged configurations in $ofile. 10492 # Note that this assumes the entire list is on one line. 10493 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 10494 10495 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10496 for tagname in $tagnames; do 10497 IFS="$lt_save_ifs" 10498 # Check whether tagname contains only valid characters 10499 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 10500 "") ;; 10501 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 10502echo "$as_me: error: invalid tag name: $tagname" >&2;} 10503 { (exit 1); exit 1; }; } 10504 ;; 10505 esac 10506 10507 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 10508 then 10509 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 10510echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 10511 { (exit 1); exit 1; }; } 10512 fi 10513 10514 # Update the list of available tags. 10515 if test -n "$tagname"; then 10516 echo appending configuration tag \"$tagname\" to $ofile 10517 10518 case $tagname in 10519 CXX) 10520 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 10521 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 10522 (test "X$CXX" != "Xg++"))) ; then 10523 ac_ext=cpp 10524ac_cpp='$CXXCPP $CPPFLAGS' 10525ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10526ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10527ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10528 10529 10530 10531 10532archive_cmds_need_lc_CXX=no 10533allow_undefined_flag_CXX= 10534always_export_symbols_CXX=no 10535archive_expsym_cmds_CXX= 10536export_dynamic_flag_spec_CXX= 10537hardcode_direct_CXX=no 10538hardcode_libdir_flag_spec_CXX= 10539hardcode_libdir_flag_spec_ld_CXX= 10540hardcode_libdir_separator_CXX= 10541hardcode_minus_L_CXX=no 10542hardcode_shlibpath_var_CXX=unsupported 10543hardcode_automatic_CXX=no 10544module_cmds_CXX= 10545module_expsym_cmds_CXX= 10546link_all_deplibs_CXX=unknown 10547old_archive_cmds_CXX=$old_archive_cmds 10548no_undefined_flag_CXX= 10549whole_archive_flag_spec_CXX= 10550enable_shared_with_static_runtimes_CXX=no 10551 10552# Dependencies to place before and after the object being linked: 10553predep_objects_CXX= 10554postdep_objects_CXX= 10555predeps_CXX= 10556postdeps_CXX= 10557compiler_lib_search_path_CXX= 10558 10559# Source file extension for C++ test sources. 10560ac_ext=cpp 10561 10562# Object file extension for compiled C++ test sources. 10563objext=o 10564objext_CXX=$objext 10565 10566# Code to be used in simple compile tests 10567lt_simple_compile_test_code="int some_variable = 0;\n" 10568 10569# Code to be used in simple link tests 10570lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 10571 10572# ltmain only uses $CC for tagged configurations so make sure $CC is set. 10573 10574# If no C compiler was specified, use CC. 10575LTCC=${LTCC-"$CC"} 10576 10577# If no C compiler flags were specified, use CFLAGS. 10578LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10579 10580# Allow CC to be a program name with arguments. 10581compiler=$CC 10582 10583 10584# save warnings/boilerplate of simple test code 10585ac_outfile=conftest.$ac_objext 10586printf "$lt_simple_compile_test_code" >conftest.$ac_ext 10587eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10588_lt_compiler_boilerplate=`cat conftest.err` 10589$rm conftest* 10590 10591ac_outfile=conftest.$ac_objext 10592printf "$lt_simple_link_test_code" >conftest.$ac_ext 10593eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10594_lt_linker_boilerplate=`cat conftest.err` 10595$rm conftest* 10596 10597 10598# Allow CC to be a program name with arguments. 10599lt_save_CC=$CC 10600lt_save_LD=$LD 10601lt_save_GCC=$GCC 10602GCC=$GXX 10603lt_save_with_gnu_ld=$with_gnu_ld 10604lt_save_path_LD=$lt_cv_path_LD 10605if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 10606 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 10607else 10608 $as_unset lt_cv_prog_gnu_ld 10609fi 10610if test -n "${lt_cv_path_LDCXX+set}"; then 10611 lt_cv_path_LD=$lt_cv_path_LDCXX 10612else 10613 $as_unset lt_cv_path_LD 10614fi 10615test -z "${LDCXX+set}" || LD=$LDCXX 10616CC=${CXX-"c++"} 10617compiler=$CC 10618compiler_CXX=$CC 10619for cc_temp in $compiler""; do 10620 case $cc_temp in 10621 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10622 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10623 \-*) ;; 10624 *) break;; 10625 esac 10626done 10627cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 10628 10629 10630# We don't want -fno-exception wen compiling C++ code, so set the 10631# no_builtin_flag separately 10632if test "$GXX" = yes; then 10633 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 10634else 10635 lt_prog_compiler_no_builtin_flag_CXX= 10636fi 10637 10638if test "$GXX" = yes; then 10639 # Set up default GNU C++ configuration 10640 10641 10642# Check whether --with-gnu-ld was given. 10643if test "${with_gnu_ld+set}" = set; then 10644 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 10645else 10646 with_gnu_ld=no 10647fi 10648 10649ac_prog=ld 10650if test "$GCC" = yes; then 10651 # Check if gcc -print-prog-name=ld gives a path. 10652 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 10653echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 10654 case $host in 10655 *-*-mingw*) 10656 # gcc leaves a trailing carriage return which upsets mingw 10657 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 10658 *) 10659 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 10660 esac 10661 case $ac_prog in 10662 # Accept absolute paths. 10663 [\\/]* | ?:[\\/]*) 10664 re_direlt='/[^/][^/]*/\.\./' 10665 # Canonicalize the pathname of ld 10666 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 10667 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 10668 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 10669 done 10670 test -z "$LD" && LD="$ac_prog" 10671 ;; 10672 "") 10673 # If it fails, then pretend we aren't using GCC. 10674 ac_prog=ld 10675 ;; 10676 *) 10677 # If it is relative, then search for the first ld in PATH. 10678 with_gnu_ld=unknown 10679 ;; 10680 esac 10681elif test "$with_gnu_ld" = yes; then 10682 { echo "$as_me:$LINENO: checking for GNU ld" >&5 10683echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 10684else 10685 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 10686echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 10687fi 10688if test "${lt_cv_path_LD+set}" = set; then 10689 echo $ECHO_N "(cached) $ECHO_C" >&6 10690else 10691 if test -z "$LD"; then 10692 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10693 for ac_dir in $PATH; do 10694 IFS="$lt_save_ifs" 10695 test -z "$ac_dir" && ac_dir=. 10696 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 10697 lt_cv_path_LD="$ac_dir/$ac_prog" 10698 # Check to see if the program is GNU ld. I'd rather use --version, 10699 # but apparently some variants of GNU ld only accept -v. 10700 # Break only if it was the GNU/non-GNU ld that we prefer. 10701 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 10702 *GNU* | *'with BFD'*) 10703 test "$with_gnu_ld" != no && break 10704 ;; 10705 *) 10706 test "$with_gnu_ld" != yes && break 10707 ;; 10708 esac 10709 fi 10710 done 10711 IFS="$lt_save_ifs" 10712else 10713 lt_cv_path_LD="$LD" # Let the user override the test with a path. 10714fi 10715fi 10716 10717LD="$lt_cv_path_LD" 10718if test -n "$LD"; then 10719 { echo "$as_me:$LINENO: result: $LD" >&5 10720echo "${ECHO_T}$LD" >&6; } 10721else 10722 { echo "$as_me:$LINENO: result: no" >&5 10723echo "${ECHO_T}no" >&6; } 10724fi 10725test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 10726echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 10727 { (exit 1); exit 1; }; } 10728{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 10729echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 10730if test "${lt_cv_prog_gnu_ld+set}" = set; then 10731 echo $ECHO_N "(cached) $ECHO_C" >&6 10732else 10733 # I'd rather use --version here, but apparently some GNU lds only accept -v. 10734case `$LD -v 2>&1 </dev/null` in 10735*GNU* | *'with BFD'*) 10736 lt_cv_prog_gnu_ld=yes 10737 ;; 10738*) 10739 lt_cv_prog_gnu_ld=no 10740 ;; 10741esac 10742fi 10743{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 10744echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 10745with_gnu_ld=$lt_cv_prog_gnu_ld 10746 10747 10748 10749 # Check if GNU C++ uses GNU ld as the underlying linker, since the 10750 # archiving commands below assume that GNU ld is being used. 10751 if test "$with_gnu_ld" = yes; then 10752 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10753 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' 10754 10755 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10756 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10757 10758 # If archive_cmds runs LD, not CC, wlarc should be empty 10759 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 10760 # investigate it a little bit more. (MM) 10761 wlarc='${wl}' 10762 10763 # ancient GNU ld didn't support --whole-archive et. al. 10764 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 10765 grep 'no-whole-archive' > /dev/null; then 10766 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10767 else 10768 whole_archive_flag_spec_CXX= 10769 fi 10770 else 10771 with_gnu_ld=no 10772 wlarc= 10773 10774 # A generic and very simple default shared library creation 10775 # command for GNU C++ for the case where it uses the native 10776 # linker, instead of GNU ld. If possible, this setting should 10777 # overridden to take advantage of the native linker features on 10778 # the platform it is being used on. 10779 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10780 fi 10781 10782 # Commands to make compiler produce verbose output that lists 10783 # what "hidden" libraries, object files and flags are used when 10784 # linking a shared library. 10785 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10786 10787else 10788 GXX=no 10789 with_gnu_ld=no 10790 wlarc= 10791fi 10792 10793# PORTME: fill in a description of your system's C++ link characteristics 10794{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10795echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 10796ld_shlibs_CXX=yes 10797case $host_os in 10798 aix3*) 10799 # FIXME: insert proper C++ library support 10800 ld_shlibs_CXX=no 10801 ;; 10802 aix4* | aix5*) 10803 if test "$host_cpu" = ia64; then 10804 # On IA64, the linker does run time linking by default, so we don't 10805 # have to do anything special. 10806 aix_use_runtimelinking=no 10807 exp_sym_flag='-Bexport' 10808 no_entry_flag="" 10809 else 10810 aix_use_runtimelinking=no 10811 10812 # Test if we are trying to use run time linking or normal 10813 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10814 # need to do runtime linking. 10815 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 10816 for ld_flag in $LDFLAGS; do 10817 case $ld_flag in 10818 *-brtl*) 10819 aix_use_runtimelinking=yes 10820 break 10821 ;; 10822 esac 10823 done 10824 ;; 10825 esac 10826 10827 exp_sym_flag='-bexport' 10828 no_entry_flag='-bnoentry' 10829 fi 10830 10831 # When large executables or shared objects are built, AIX ld can 10832 # have problems creating the table of contents. If linking a library 10833 # or program results in "error TOC overflow" add -mminimal-toc to 10834 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10835 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10836 10837 archive_cmds_CXX='' 10838 hardcode_direct_CXX=yes 10839 hardcode_libdir_separator_CXX=':' 10840 link_all_deplibs_CXX=yes 10841 10842 if test "$GXX" = yes; then 10843 case $host_os in aix4.[012]|aix4.[012].*) 10844 # We only want to do this on AIX 4.2 and lower, the check 10845 # below for broken collect2 doesn't work under 4.3+ 10846 collect2name=`${CC} -print-prog-name=collect2` 10847 if test -f "$collect2name" && \ 10848 strings "$collect2name" | grep resolve_lib_name >/dev/null 10849 then 10850 # We have reworked collect2 10851 hardcode_direct_CXX=yes 10852 else 10853 # We have old collect2 10854 hardcode_direct_CXX=unsupported 10855 # It fails to find uninstalled libraries when the uninstalled 10856 # path is not listed in the libpath. Setting hardcode_minus_L 10857 # to unsupported forces relinking 10858 hardcode_minus_L_CXX=yes 10859 hardcode_libdir_flag_spec_CXX='-L$libdir' 10860 hardcode_libdir_separator_CXX= 10861 fi 10862 ;; 10863 esac 10864 shared_flag='-shared' 10865 if test "$aix_use_runtimelinking" = yes; then 10866 shared_flag="$shared_flag "'${wl}-G' 10867 fi 10868 else 10869 # not using gcc 10870 if test "$host_cpu" = ia64; then 10871 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10872 # chokes on -Wl,-G. The following line is correct: 10873 shared_flag='-G' 10874 else 10875 if test "$aix_use_runtimelinking" = yes; then 10876 shared_flag='${wl}-G' 10877 else 10878 shared_flag='${wl}-bM:SRE' 10879 fi 10880 fi 10881 fi 10882 10883 # It seems that -bexpall does not export symbols beginning with 10884 # underscore (_), so it is better to generate a list of symbols to export. 10885 always_export_symbols_CXX=yes 10886 if test "$aix_use_runtimelinking" = yes; then 10887 # Warning - without using the other runtime loading flags (-brtl), 10888 # -berok will link without error, but may produce a broken library. 10889 allow_undefined_flag_CXX='-berok' 10890 # Determine the default libpath from the value encoded in an empty executable. 10891 cat >conftest.$ac_ext <<_ACEOF 10892/* confdefs.h. */ 10893_ACEOF 10894cat confdefs.h >>conftest.$ac_ext 10895cat >>conftest.$ac_ext <<_ACEOF 10896/* end confdefs.h. */ 10897 10898int 10899main () 10900{ 10901 10902 ; 10903 return 0; 10904} 10905_ACEOF 10906rm -f conftest.$ac_objext conftest$ac_exeext 10907if { (ac_try="$ac_link" 10908case "(($ac_try" in 10909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10910 *) ac_try_echo=$ac_try;; 10911esac 10912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10913 (eval "$ac_link") 2>conftest.er1 10914 ac_status=$? 10915 grep -v '^ *+' conftest.er1 >conftest.err 10916 rm -f conftest.er1 10917 cat conftest.err >&5 10918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10919 (exit $ac_status); } && { 10920 test -z "$ac_cxx_werror_flag" || 10921 test ! -s conftest.err 10922 } && test -s conftest$ac_exeext && 10923 $as_test_x conftest$ac_exeext; then 10924 10925aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10926}'` 10927# Check for a 64-bit object if we didn't find anything. 10928if 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; } 10929}'`; fi 10930else 10931 echo "$as_me: failed program was:" >&5 10932sed 's/^/| /' conftest.$ac_ext >&5 10933 10934 10935fi 10936 10937rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10938 conftest$ac_exeext conftest.$ac_ext 10939if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10940 10941 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10942 10943 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" 10944 else 10945 if test "$host_cpu" = ia64; then 10946 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 10947 allow_undefined_flag_CXX="-z nodefs" 10948 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" 10949 else 10950 # Determine the default libpath from the value encoded in an empty executable. 10951 cat >conftest.$ac_ext <<_ACEOF 10952/* confdefs.h. */ 10953_ACEOF 10954cat confdefs.h >>conftest.$ac_ext 10955cat >>conftest.$ac_ext <<_ACEOF 10956/* end confdefs.h. */ 10957 10958int 10959main () 10960{ 10961 10962 ; 10963 return 0; 10964} 10965_ACEOF 10966rm -f conftest.$ac_objext conftest$ac_exeext 10967if { (ac_try="$ac_link" 10968case "(($ac_try" in 10969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10970 *) ac_try_echo=$ac_try;; 10971esac 10972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10973 (eval "$ac_link") 2>conftest.er1 10974 ac_status=$? 10975 grep -v '^ *+' conftest.er1 >conftest.err 10976 rm -f conftest.er1 10977 cat conftest.err >&5 10978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10979 (exit $ac_status); } && { 10980 test -z "$ac_cxx_werror_flag" || 10981 test ! -s conftest.err 10982 } && test -s conftest$ac_exeext && 10983 $as_test_x conftest$ac_exeext; then 10984 10985aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10986}'` 10987# Check for a 64-bit object if we didn't find anything. 10988if 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; } 10989}'`; fi 10990else 10991 echo "$as_me: failed program was:" >&5 10992sed 's/^/| /' conftest.$ac_ext >&5 10993 10994 10995fi 10996 10997rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10998 conftest$ac_exeext conftest.$ac_ext 10999if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11000 11001 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11002 # Warning - without using the other run time loading flags, 11003 # -berok will link without error, but may produce a broken library. 11004 no_undefined_flag_CXX=' ${wl}-bernotok' 11005 allow_undefined_flag_CXX=' ${wl}-berok' 11006 # Exported symbols can be pulled into shared objects from archives 11007 whole_archive_flag_spec_CXX='$convenience' 11008 archive_cmds_need_lc_CXX=yes 11009 # This is similar to how AIX traditionally builds its shared libraries. 11010 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' 11011 fi 11012 fi 11013 ;; 11014 11015 beos*) 11016 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11017 allow_undefined_flag_CXX=unsupported 11018 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11019 # support --undefined. This deserves some investigation. FIXME 11020 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11021 else 11022 ld_shlibs_CXX=no 11023 fi 11024 ;; 11025 11026 chorus*) 11027 case $cc_basename in 11028 *) 11029 # FIXME: insert proper C++ library support 11030 ld_shlibs_CXX=no 11031 ;; 11032 esac 11033 ;; 11034 11035 cygwin* | mingw* | pw32*) 11036 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11037 # as there is no search path for DLLs. 11038 hardcode_libdir_flag_spec_CXX='-L$libdir' 11039 allow_undefined_flag_CXX=unsupported 11040 always_export_symbols_CXX=no 11041 enable_shared_with_static_runtimes_CXX=yes 11042 11043 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11044 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' 11045 # If the export-symbols file already is a .def file (1st line 11046 # is EXPORTS), use it as is; otherwise, prepend... 11047 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11048 cp $export_symbols $output_objdir/$soname.def; 11049 else 11050 echo EXPORTS > $output_objdir/$soname.def; 11051 cat $export_symbols >> $output_objdir/$soname.def; 11052 fi~ 11053 $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' 11054 else 11055 ld_shlibs_CXX=no 11056 fi 11057 ;; 11058 darwin* | rhapsody*) 11059 case $host_os in 11060 rhapsody* | darwin1.[012]) 11061 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 11062 ;; 11063 *) # Darwin 1.3 on 11064 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 11065 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11066 else 11067 case ${MACOSX_DEPLOYMENT_TARGET} in 11068 10.[012]) 11069 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11070 ;; 11071 10.*) 11072 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 11073 ;; 11074 esac 11075 fi 11076 ;; 11077 esac 11078 archive_cmds_need_lc_CXX=no 11079 hardcode_direct_CXX=no 11080 hardcode_automatic_CXX=yes 11081 hardcode_shlibpath_var_CXX=unsupported 11082 whole_archive_flag_spec_CXX='' 11083 link_all_deplibs_CXX=yes 11084 11085 if test "$GXX" = yes ; then 11086 lt_int_apple_cc_single_mod=no 11087 output_verbose_link_cmd='echo' 11088 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 11089 lt_int_apple_cc_single_mod=yes 11090 fi 11091 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11092 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 11093 else 11094 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' 11095 fi 11096 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11097 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11098 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11099 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}' 11100 else 11101 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}' 11102 fi 11103 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}' 11104 else 11105 case $cc_basename in 11106 xlc*) 11107 output_verbose_link_cmd='echo' 11108 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' 11109 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11110 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11111 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}' 11112 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}' 11113 ;; 11114 *) 11115 ld_shlibs_CXX=no 11116 ;; 11117 esac 11118 fi 11119 ;; 11120 11121 dgux*) 11122 case $cc_basename in 11123 ec++*) 11124 # FIXME: insert proper C++ library support 11125 ld_shlibs_CXX=no 11126 ;; 11127 ghcx*) 11128 # Green Hills C++ Compiler 11129 # FIXME: insert proper C++ library support 11130 ld_shlibs_CXX=no 11131 ;; 11132 *) 11133 # FIXME: insert proper C++ library support 11134 ld_shlibs_CXX=no 11135 ;; 11136 esac 11137 ;; 11138 freebsd[12]*) 11139 # C++ shared libraries reported to be fairly broken before switch to ELF 11140 ld_shlibs_CXX=no 11141 ;; 11142 freebsd-elf*) 11143 archive_cmds_need_lc_CXX=no 11144 ;; 11145 freebsd* | kfreebsd*-gnu | dragonfly*) 11146 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11147 # conventions 11148 ld_shlibs_CXX=yes 11149 ;; 11150 gnu*) 11151 ;; 11152 hpux9*) 11153 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11154 hardcode_libdir_separator_CXX=: 11155 export_dynamic_flag_spec_CXX='${wl}-E' 11156 hardcode_direct_CXX=yes 11157 hardcode_minus_L_CXX=yes # Not in the search PATH, 11158 # but as the default 11159 # location of the library. 11160 11161 case $cc_basename in 11162 CC*) 11163 # FIXME: insert proper C++ library support 11164 ld_shlibs_CXX=no 11165 ;; 11166 aCC*) 11167 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' 11168 # Commands to make compiler produce verbose output that lists 11169 # what "hidden" libraries, object files and flags are used when 11170 # linking a shared library. 11171 # 11172 # There doesn't appear to be a way to prevent this compiler from 11173 # explicitly linking system object files so we need to strip them 11174 # from the output so that they don't get included in the library 11175 # dependencies. 11176 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' 11177 ;; 11178 *) 11179 if test "$GXX" = yes; then 11180 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' 11181 else 11182 # FIXME: insert proper C++ library support 11183 ld_shlibs_CXX=no 11184 fi 11185 ;; 11186 esac 11187 ;; 11188 hpux10*|hpux11*) 11189 if test $with_gnu_ld = no; then 11190 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11191 hardcode_libdir_separator_CXX=: 11192 11193 case $host_cpu in 11194 hppa*64*|ia64*) 11195 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 11196 ;; 11197 *) 11198 export_dynamic_flag_spec_CXX='${wl}-E' 11199 ;; 11200 esac 11201 fi 11202 case $host_cpu in 11203 hppa*64*|ia64*) 11204 hardcode_direct_CXX=no 11205 hardcode_shlibpath_var_CXX=no 11206 ;; 11207 *) 11208 hardcode_direct_CXX=yes 11209 hardcode_minus_L_CXX=yes # Not in the search PATH, 11210 # but as the default 11211 # location of the library. 11212 ;; 11213 esac 11214 11215 case $cc_basename in 11216 CC*) 11217 # FIXME: insert proper C++ library support 11218 ld_shlibs_CXX=no 11219 ;; 11220 aCC*) 11221 case $host_cpu in 11222 hppa*64*) 11223 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11224 ;; 11225 ia64*) 11226 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11227 ;; 11228 *) 11229 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11230 ;; 11231 esac 11232 # Commands to make compiler produce verbose output that lists 11233 # what "hidden" libraries, object files and flags are used when 11234 # linking a shared library. 11235 # 11236 # There doesn't appear to be a way to prevent this compiler from 11237 # explicitly linking system object files so we need to strip them 11238 # from the output so that they don't get included in the library 11239 # dependencies. 11240 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' 11241 ;; 11242 *) 11243 if test "$GXX" = yes; then 11244 if test $with_gnu_ld = no; then 11245 case $host_cpu in 11246 hppa*64*) 11247 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11248 ;; 11249 ia64*) 11250 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11251 ;; 11252 *) 11253 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' 11254 ;; 11255 esac 11256 fi 11257 else 11258 # FIXME: insert proper C++ library support 11259 ld_shlibs_CXX=no 11260 fi 11261 ;; 11262 esac 11263 ;; 11264 interix3*) 11265 hardcode_direct_CXX=no 11266 hardcode_shlibpath_var_CXX=no 11267 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11268 export_dynamic_flag_spec_CXX='${wl}-E' 11269 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11270 # Instead, shared libraries are loaded at an image base (0x10000000 by 11271 # default) and relocated if they conflict, which is a slow very memory 11272 # consuming and fragmenting process. To avoid this, we pick a random, 11273 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11274 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11275 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' 11276 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' 11277 ;; 11278 irix5* | irix6*) 11279 case $cc_basename in 11280 CC*) 11281 # SGI C++ 11282 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' 11283 11284 # Archives containing C++ object files must be created using 11285 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11286 # necessary to make sure instantiated templates are included 11287 # in the archive. 11288 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11289 ;; 11290 *) 11291 if test "$GXX" = yes; then 11292 if test "$with_gnu_ld" = no; then 11293 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' 11294 else 11295 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' 11296 fi 11297 fi 11298 link_all_deplibs_CXX=yes 11299 ;; 11300 esac 11301 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11302 hardcode_libdir_separator_CXX=: 11303 ;; 11304 linux*) 11305 case $cc_basename in 11306 KCC*) 11307 # Kuck and Associates, Inc. (KAI) C++ Compiler 11308 11309 # KCC will only create a shared library if the output file 11310 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11311 # to its proper name (with version) after linking. 11312 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' 11313 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' 11314 # Commands to make compiler produce verbose output that lists 11315 # what "hidden" libraries, object files and flags are used when 11316 # linking a shared library. 11317 # 11318 # There doesn't appear to be a way to prevent this compiler from 11319 # explicitly linking system object files so we need to strip them 11320 # from the output so that they don't get included in the library 11321 # dependencies. 11322 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' 11323 11324 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 11325 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11326 11327 # Archives containing C++ object files must be created using 11328 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11329 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11330 ;; 11331 icpc*) 11332 # Intel C++ 11333 with_gnu_ld=yes 11334 # version 8.0 and above of icpc choke on multiply defined symbols 11335 # if we add $predep_objects and $postdep_objects, however 7.1 and 11336 # earlier do not add the objects themselves. 11337 case `$CC -V 2>&1` in 11338 *"Version 7."*) 11339 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11340 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' 11341 ;; 11342 *) # Version 8.0 or newer 11343 tmp_idyn= 11344 case $host_cpu in 11345 ia64*) tmp_idyn=' -i_dynamic';; 11346 esac 11347 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11348 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' 11349 ;; 11350 esac 11351 archive_cmds_need_lc_CXX=no 11352 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11353 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11354 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11355 ;; 11356 pgCC*) 11357 # Portland Group C++ compiler 11358 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 11359 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' 11360 11361 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11362 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11363 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' 11364 ;; 11365 cxx*) 11366 # Compaq C++ 11367 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11368 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' 11369 11370 runpath_var=LD_RUN_PATH 11371 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11372 hardcode_libdir_separator_CXX=: 11373 11374 # Commands to make compiler produce verbose output that lists 11375 # what "hidden" libraries, object files and flags are used when 11376 # linking a shared library. 11377 # 11378 # There doesn't appear to be a way to prevent this compiler from 11379 # explicitly linking system object files so we need to strip them 11380 # from the output so that they don't get included in the library 11381 # dependencies. 11382 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' 11383 ;; 11384 *) 11385 case `$CC -V 2>&1 | sed 5q` in 11386 *Sun\ C*) 11387 # Sun C++ 5.9 11388 no_undefined_flag_CXX=' -zdefs' 11389 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11390 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' 11391 hardcode_libdir_flag_spec_CXX='-R$libdir' 11392 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 11393 11394 # Not sure whether something based on 11395 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 11396 # would be better. 11397 output_verbose_link_cmd='echo' 11398 11399 # Archives containing C++ object files must be created using 11400 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11401 # necessary to make sure instantiated templates are included 11402 # in the archive. 11403 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11404 ;; 11405 esac 11406 ;; 11407 esac 11408 ;; 11409 lynxos*) 11410 # FIXME: insert proper C++ library support 11411 ld_shlibs_CXX=no 11412 ;; 11413 m88k*) 11414 # FIXME: insert proper C++ library support 11415 ld_shlibs_CXX=no 11416 ;; 11417 mvs*) 11418 case $cc_basename in 11419 cxx*) 11420 # FIXME: insert proper C++ library support 11421 ld_shlibs_CXX=no 11422 ;; 11423 *) 11424 # FIXME: insert proper C++ library support 11425 ld_shlibs_CXX=no 11426 ;; 11427 esac 11428 ;; 11429 netbsd*) 11430 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11431 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 11432 wlarc= 11433 hardcode_libdir_flag_spec_CXX='-R$libdir' 11434 hardcode_direct_CXX=yes 11435 hardcode_shlibpath_var_CXX=no 11436 fi 11437 # Workaround some broken pre-1.5 toolchains 11438 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 11439 ;; 11440 openbsd2*) 11441 # C++ shared libraries are fairly broken 11442 ld_shlibs_CXX=no 11443 ;; 11444 openbsd*) 11445 hardcode_direct_CXX=yes 11446 hardcode_shlibpath_var_CXX=no 11447 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11448 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11449 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11450 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 11451 export_dynamic_flag_spec_CXX='${wl}-E' 11452 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11453 fi 11454 output_verbose_link_cmd='echo' 11455 ;; 11456 osf3*) 11457 case $cc_basename in 11458 KCC*) 11459 # Kuck and Associates, Inc. (KAI) C++ Compiler 11460 11461 # KCC will only create a shared library if the output file 11462 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11463 # to its proper name (with version) after linking. 11464 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' 11465 11466 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11467 hardcode_libdir_separator_CXX=: 11468 11469 # Archives containing C++ object files must be created using 11470 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11471 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11472 11473 ;; 11474 RCC*) 11475 # Rational C++ 2.4.1 11476 # FIXME: insert proper C++ library support 11477 ld_shlibs_CXX=no 11478 ;; 11479 cxx*) 11480 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11481 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' 11482 11483 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11484 hardcode_libdir_separator_CXX=: 11485 11486 # Commands to make compiler produce verbose output that lists 11487 # what "hidden" libraries, object files and flags are used when 11488 # linking a shared library. 11489 # 11490 # There doesn't appear to be a way to prevent this compiler from 11491 # explicitly linking system object files so we need to strip them 11492 # from the output so that they don't get included in the library 11493 # dependencies. 11494 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' 11495 ;; 11496 *) 11497 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11498 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11499 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' 11500 11501 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11502 hardcode_libdir_separator_CXX=: 11503 11504 # Commands to make compiler produce verbose output that lists 11505 # what "hidden" libraries, object files and flags are used when 11506 # linking a shared library. 11507 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11508 11509 else 11510 # FIXME: insert proper C++ library support 11511 ld_shlibs_CXX=no 11512 fi 11513 ;; 11514 esac 11515 ;; 11516 osf4* | osf5*) 11517 case $cc_basename in 11518 KCC*) 11519 # Kuck and Associates, Inc. (KAI) C++ Compiler 11520 11521 # KCC will only create a shared library if the output file 11522 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11523 # to its proper name (with version) after linking. 11524 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' 11525 11526 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11527 hardcode_libdir_separator_CXX=: 11528 11529 # Archives containing C++ object files must be created using 11530 # the KAI C++ compiler. 11531 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 11532 ;; 11533 RCC*) 11534 # Rational C++ 2.4.1 11535 # FIXME: insert proper C++ library support 11536 ld_shlibs_CXX=no 11537 ;; 11538 cxx*) 11539 allow_undefined_flag_CXX=' -expect_unresolved \*' 11540 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' 11541 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 11542 echo "-hidden">> $lib.exp~ 11543 $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~ 11544 $rm $lib.exp' 11545 11546 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11547 hardcode_libdir_separator_CXX=: 11548 11549 # Commands to make compiler produce verbose output that lists 11550 # what "hidden" libraries, object files and flags are used when 11551 # linking a shared library. 11552 # 11553 # There doesn't appear to be a way to prevent this compiler from 11554 # explicitly linking system object files so we need to strip them 11555 # from the output so that they don't get included in the library 11556 # dependencies. 11557 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' 11558 ;; 11559 *) 11560 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11561 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11562 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' 11563 11564 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11565 hardcode_libdir_separator_CXX=: 11566 11567 # Commands to make compiler produce verbose output that lists 11568 # what "hidden" libraries, object files and flags are used when 11569 # linking a shared library. 11570 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11571 11572 else 11573 # FIXME: insert proper C++ library support 11574 ld_shlibs_CXX=no 11575 fi 11576 ;; 11577 esac 11578 ;; 11579 psos*) 11580 # FIXME: insert proper C++ library support 11581 ld_shlibs_CXX=no 11582 ;; 11583 sunos4*) 11584 case $cc_basename in 11585 CC*) 11586 # Sun C++ 4.x 11587 # FIXME: insert proper C++ library support 11588 ld_shlibs_CXX=no 11589 ;; 11590 lcc*) 11591 # Lucid 11592 # FIXME: insert proper C++ library support 11593 ld_shlibs_CXX=no 11594 ;; 11595 *) 11596 # FIXME: insert proper C++ library support 11597 ld_shlibs_CXX=no 11598 ;; 11599 esac 11600 ;; 11601 solaris*) 11602 case $cc_basename in 11603 CC*) 11604 # Sun C++ 4.2, 5.x and Centerline C++ 11605 archive_cmds_need_lc_CXX=yes 11606 no_undefined_flag_CXX=' -zdefs' 11607 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11608 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11609 $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' 11610 11611 hardcode_libdir_flag_spec_CXX='-R$libdir' 11612 hardcode_shlibpath_var_CXX=no 11613 case $host_os in 11614 solaris2.[0-5] | solaris2.[0-5].*) ;; 11615 *) 11616 # The C++ compiler is used as linker so we must use $wl 11617 # flag to pass the commands to the underlying system 11618 # linker. We must also pass each convience library through 11619 # to the system linker between allextract/defaultextract. 11620 # The C++ compiler will combine linker options so we 11621 # cannot just pass the convience library names through 11622 # without $wl. 11623 # Supported since Solaris 2.6 (maybe 2.5.1?) 11624 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' 11625 ;; 11626 esac 11627 link_all_deplibs_CXX=yes 11628 11629 output_verbose_link_cmd='echo' 11630 11631 # Archives containing C++ object files must be created using 11632 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11633 # necessary to make sure instantiated templates are included 11634 # in the archive. 11635 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11636 ;; 11637 gcx*) 11638 # Green Hills C++ Compiler 11639 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11640 11641 # The C++ compiler must be used to create the archive. 11642 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 11643 ;; 11644 *) 11645 # GNU C++ compiler with Solaris linker 11646 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11647 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 11648 if $CC --version | grep -v '^2\.7' > /dev/null; then 11649 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11650 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11651 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11652 11653 # Commands to make compiler produce verbose output that lists 11654 # what "hidden" libraries, object files and flags are used when 11655 # linking a shared library. 11656 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11657 else 11658 # g++ 2.7 appears to require `-G' NOT `-shared' on this 11659 # platform. 11660 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11661 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11662 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11663 11664 # Commands to make compiler produce verbose output that lists 11665 # what "hidden" libraries, object files and flags are used when 11666 # linking a shared library. 11667 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11668 fi 11669 11670 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 11671 fi 11672 ;; 11673 esac 11674 ;; 11675 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11676 no_undefined_flag_CXX='${wl}-z,text' 11677 archive_cmds_need_lc_CXX=no 11678 hardcode_shlibpath_var_CXX=no 11679 runpath_var='LD_RUN_PATH' 11680 11681 case $cc_basename in 11682 CC*) 11683 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11684 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11685 ;; 11686 *) 11687 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11688 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11689 ;; 11690 esac 11691 ;; 11692 sysv5* | sco3.2v5* | sco5v6*) 11693 # Note: We can NOT use -z defs as we might desire, because we do not 11694 # link with -lc, and that would cause any symbols used from libc to 11695 # always be unresolved, which means just about no library would 11696 # ever link correctly. If we're not using GNU ld we use -z text 11697 # though, which does catch some bad symbols but isn't as heavy-handed 11698 # as -z defs. 11699 # For security reasons, it is highly recommended that you always 11700 # use absolute paths for naming shared libraries, and exclude the 11701 # DT_RUNPATH tag from executables and libraries. But doing so 11702 # requires that you compile everything twice, which is a pain. 11703 # So that behaviour is only enabled if SCOABSPATH is set to a 11704 # non-empty value in the environment. Most likely only useful for 11705 # creating official distributions of packages. 11706 # This is a hack until libtool officially supports absolute path 11707 # names for shared libraries. 11708 no_undefined_flag_CXX='${wl}-z,text' 11709 allow_undefined_flag_CXX='${wl}-z,nodefs' 11710 archive_cmds_need_lc_CXX=no 11711 hardcode_shlibpath_var_CXX=no 11712 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 11713 hardcode_libdir_separator_CXX=':' 11714 link_all_deplibs_CXX=yes 11715 export_dynamic_flag_spec_CXX='${wl}-Bexport' 11716 runpath_var='LD_RUN_PATH' 11717 11718 case $cc_basename in 11719 CC*) 11720 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11721 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11722 ;; 11723 *) 11724 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11725 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11726 ;; 11727 esac 11728 ;; 11729 tandem*) 11730 case $cc_basename in 11731 NCC*) 11732 # NonStop-UX NCC 3.20 11733 # FIXME: insert proper C++ library support 11734 ld_shlibs_CXX=no 11735 ;; 11736 *) 11737 # FIXME: insert proper C++ library support 11738 ld_shlibs_CXX=no 11739 ;; 11740 esac 11741 ;; 11742 vxworks*) 11743 # FIXME: insert proper C++ library support 11744 ld_shlibs_CXX=no 11745 ;; 11746 *) 11747 # FIXME: insert proper C++ library support 11748 ld_shlibs_CXX=no 11749 ;; 11750esac 11751{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11752echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 11753test "$ld_shlibs_CXX" = no && can_build_shared=no 11754 11755GCC_CXX="$GXX" 11756LD_CXX="$LD" 11757 11758 11759cat > conftest.$ac_ext <<EOF 11760class Foo 11761{ 11762public: 11763 Foo (void) { a = 0; } 11764private: 11765 int a; 11766}; 11767EOF 11768 11769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11770 (eval $ac_compile) 2>&5 11771 ac_status=$? 11772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11773 (exit $ac_status); }; then 11774 # Parse the compiler output and extract the necessary 11775 # objects, libraries and library flags. 11776 11777 # Sentinel used to keep track of whether or not we are before 11778 # the conftest object file. 11779 pre_test_object_deps_done=no 11780 11781 # The `*' in the case matches for architectures that use `case' in 11782 # $output_verbose_cmd can trigger glob expansion during the loop 11783 # eval without this substitution. 11784 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 11785 11786 for p in `eval $output_verbose_link_cmd`; do 11787 case $p in 11788 11789 -L* | -R* | -l*) 11790 # Some compilers place space between "-{L,R}" and the path. 11791 # Remove the space. 11792 if test $p = "-L" \ 11793 || test $p = "-R"; then 11794 prev=$p 11795 continue 11796 else 11797 prev= 11798 fi 11799 11800 if test "$pre_test_object_deps_done" = no; then 11801 case $p in 11802 -L* | -R*) 11803 # Internal compiler library paths should come after those 11804 # provided the user. The postdeps already come after the 11805 # user supplied libs so there is no need to process them. 11806 if test -z "$compiler_lib_search_path_CXX"; then 11807 compiler_lib_search_path_CXX="${prev}${p}" 11808 else 11809 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 11810 fi 11811 ;; 11812 # The "-l" case would never come before the object being 11813 # linked, so don't bother handling this case. 11814 esac 11815 else 11816 if test -z "$postdeps_CXX"; then 11817 postdeps_CXX="${prev}${p}" 11818 else 11819 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 11820 fi 11821 fi 11822 ;; 11823 11824 *.$objext) 11825 # This assumes that the test object file only shows up 11826 # once in the compiler output. 11827 if test "$p" = "conftest.$objext"; then 11828 pre_test_object_deps_done=yes 11829 continue 11830 fi 11831 11832 if test "$pre_test_object_deps_done" = no; then 11833 if test -z "$predep_objects_CXX"; then 11834 predep_objects_CXX="$p" 11835 else 11836 predep_objects_CXX="$predep_objects_CXX $p" 11837 fi 11838 else 11839 if test -z "$postdep_objects_CXX"; then 11840 postdep_objects_CXX="$p" 11841 else 11842 postdep_objects_CXX="$postdep_objects_CXX $p" 11843 fi 11844 fi 11845 ;; 11846 11847 *) ;; # Ignore the rest. 11848 11849 esac 11850 done 11851 11852 # Clean up. 11853 rm -f a.out a.exe 11854else 11855 echo "libtool.m4: error: problem compiling CXX test program" 11856fi 11857 11858$rm -f confest.$objext 11859 11860# PORTME: override above test on systems where it is broken 11861case $host_os in 11862interix3*) 11863 # Interix 3.5 installs completely hosed .la files for C++, so rather than 11864 # hack all around it, let's just trust "g++" to DTRT. 11865 predep_objects_CXX= 11866 postdep_objects_CXX= 11867 postdeps_CXX= 11868 ;; 11869 11870linux*) 11871 case `$CC -V 2>&1 | sed 5q` in 11872 *Sun\ C*) 11873 # Sun C++ 5.9 11874 postdeps_CXX='-lCstd -lCrun' 11875 ;; 11876 esac 11877 ;; 11878 11879solaris*) 11880 case $cc_basename in 11881 CC*) 11882 # Adding this requires a known-good setup of shared libraries for 11883 # Sun compiler versions before 5.6, else PIC objects from an old 11884 # archive will be linked into the output, leading to subtle bugs. 11885 postdeps_CXX='-lCstd -lCrun' 11886 ;; 11887 esac 11888 ;; 11889esac 11890 11891 11892case " $postdeps_CXX " in 11893*" -lc "*) archive_cmds_need_lc_CXX=no ;; 11894esac 11895 11896lt_prog_compiler_wl_CXX= 11897lt_prog_compiler_pic_CXX= 11898lt_prog_compiler_static_CXX= 11899 11900{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 11901echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 11902 11903 # C++ specific cases for pic, static, wl, etc. 11904 if test "$GXX" = yes; then 11905 lt_prog_compiler_wl_CXX='-Wl,' 11906 lt_prog_compiler_static_CXX='-static' 11907 11908 case $host_os in 11909 aix*) 11910 # All AIX code is PIC. 11911 if test "$host_cpu" = ia64; then 11912 # AIX 5 now supports IA64 processor 11913 lt_prog_compiler_static_CXX='-Bstatic' 11914 fi 11915 ;; 11916 amigaos*) 11917 # FIXME: we need at least 68020 code to build shared libraries, but 11918 # adding the `-m68020' flag to GCC prevents building anything better, 11919 # like `-m68040'. 11920 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 11921 ;; 11922 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 11923 # PIC is the default for these OSes. 11924 ;; 11925 mingw* | cygwin* | os2* | pw32*) 11926 # This hack is so that the source file can tell whether it is being 11927 # built for inclusion in a dll (and should export symbols for example). 11928 # Although the cygwin gcc ignores -fPIC, still need this for old-style 11929 # (--disable-auto-import) libraries 11930 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 11931 ;; 11932 darwin* | rhapsody*) 11933 # PIC is the default on this platform 11934 # Common symbols not allowed in MH_DYLIB files 11935 lt_prog_compiler_pic_CXX='-fno-common' 11936 ;; 11937 *djgpp*) 11938 # DJGPP does not support shared libraries at all 11939 lt_prog_compiler_pic_CXX= 11940 ;; 11941 interix3*) 11942 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 11943 # Instead, we relocate shared libraries at runtime. 11944 ;; 11945 sysv4*MP*) 11946 if test -d /usr/nec; then 11947 lt_prog_compiler_pic_CXX=-Kconform_pic 11948 fi 11949 ;; 11950 hpux*) 11951 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11952 # not for PA HP-UX. 11953 case $host_cpu in 11954 hppa*64*|ia64*) 11955 ;; 11956 *) 11957 lt_prog_compiler_pic_CXX='-fPIC' 11958 ;; 11959 esac 11960 ;; 11961 *) 11962 lt_prog_compiler_pic_CXX='-fPIC' 11963 ;; 11964 esac 11965 else 11966 case $host_os in 11967 aix4* | aix5*) 11968 # All AIX code is PIC. 11969 if test "$host_cpu" = ia64; then 11970 # AIX 5 now supports IA64 processor 11971 lt_prog_compiler_static_CXX='-Bstatic' 11972 else 11973 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 11974 fi 11975 ;; 11976 chorus*) 11977 case $cc_basename in 11978 cxch68*) 11979 # Green Hills C++ Compiler 11980 # _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" 11981 ;; 11982 esac 11983 ;; 11984 darwin*) 11985 # PIC is the default on this platform 11986 # Common symbols not allowed in MH_DYLIB files 11987 case $cc_basename in 11988 xlc*) 11989 lt_prog_compiler_pic_CXX='-qnocommon' 11990 lt_prog_compiler_wl_CXX='-Wl,' 11991 ;; 11992 esac 11993 ;; 11994 dgux*) 11995 case $cc_basename in 11996 ec++*) 11997 lt_prog_compiler_pic_CXX='-KPIC' 11998 ;; 11999 ghcx*) 12000 # Green Hills C++ Compiler 12001 lt_prog_compiler_pic_CXX='-pic' 12002 ;; 12003 *) 12004 ;; 12005 esac 12006 ;; 12007 freebsd* | kfreebsd*-gnu | dragonfly*) 12008 # FreeBSD uses GNU C++ 12009 ;; 12010 hpux9* | hpux10* | hpux11*) 12011 case $cc_basename in 12012 CC*) 12013 lt_prog_compiler_wl_CXX='-Wl,' 12014 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12015 if test "$host_cpu" != ia64; then 12016 lt_prog_compiler_pic_CXX='+Z' 12017 fi 12018 ;; 12019 aCC*) 12020 lt_prog_compiler_wl_CXX='-Wl,' 12021 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12022 case $host_cpu in 12023 hppa*64*|ia64*) 12024 # +Z the default 12025 ;; 12026 *) 12027 lt_prog_compiler_pic_CXX='+Z' 12028 ;; 12029 esac 12030 ;; 12031 *) 12032 ;; 12033 esac 12034 ;; 12035 interix*) 12036 # This is c89, which is MS Visual C++ (no shared libs) 12037 # Anyone wants to do a port? 12038 ;; 12039 irix5* | irix6* | nonstopux*) 12040 case $cc_basename in 12041 CC*) 12042 lt_prog_compiler_wl_CXX='-Wl,' 12043 lt_prog_compiler_static_CXX='-non_shared' 12044 # CC pic flag -KPIC is the default. 12045 ;; 12046 *) 12047 ;; 12048 esac 12049 ;; 12050 linux*) 12051 case $cc_basename in 12052 KCC*) 12053 # KAI C++ Compiler 12054 lt_prog_compiler_wl_CXX='--backend -Wl,' 12055 lt_prog_compiler_pic_CXX='-fPIC' 12056 ;; 12057 icpc* | ecpc*) 12058 # Intel C++ 12059 lt_prog_compiler_wl_CXX='-Wl,' 12060 lt_prog_compiler_pic_CXX='-KPIC' 12061 lt_prog_compiler_static_CXX='-static' 12062 ;; 12063 pgCC*) 12064 # Portland Group C++ compiler. 12065 lt_prog_compiler_wl_CXX='-Wl,' 12066 lt_prog_compiler_pic_CXX='-fpic' 12067 lt_prog_compiler_static_CXX='-Bstatic' 12068 ;; 12069 cxx*) 12070 # Compaq C++ 12071 # Make sure the PIC flag is empty. It appears that all Alpha 12072 # Linux and Compaq Tru64 Unix objects are PIC. 12073 lt_prog_compiler_pic_CXX= 12074 lt_prog_compiler_static_CXX='-non_shared' 12075 ;; 12076 *) 12077 case `$CC -V 2>&1 | sed 5q` in 12078 *Sun\ C*) 12079 # Sun C++ 5.9 12080 lt_prog_compiler_pic_CXX='-KPIC' 12081 lt_prog_compiler_static_CXX='-Bstatic' 12082 lt_prog_compiler_wl_CXX='-Qoption ld ' 12083 ;; 12084 esac 12085 ;; 12086 esac 12087 ;; 12088 lynxos*) 12089 ;; 12090 m88k*) 12091 ;; 12092 mvs*) 12093 case $cc_basename in 12094 cxx*) 12095 lt_prog_compiler_pic_CXX='-W c,exportall' 12096 ;; 12097 *) 12098 ;; 12099 esac 12100 ;; 12101 netbsd*) 12102 ;; 12103 osf3* | osf4* | osf5*) 12104 case $cc_basename in 12105 KCC*) 12106 lt_prog_compiler_wl_CXX='--backend -Wl,' 12107 ;; 12108 RCC*) 12109 # Rational C++ 2.4.1 12110 lt_prog_compiler_pic_CXX='-pic' 12111 ;; 12112 cxx*) 12113 # Digital/Compaq C++ 12114 lt_prog_compiler_wl_CXX='-Wl,' 12115 # Make sure the PIC flag is empty. It appears that all Alpha 12116 # Linux and Compaq Tru64 Unix objects are PIC. 12117 lt_prog_compiler_pic_CXX= 12118 lt_prog_compiler_static_CXX='-non_shared' 12119 ;; 12120 *) 12121 ;; 12122 esac 12123 ;; 12124 psos*) 12125 ;; 12126 solaris*) 12127 case $cc_basename in 12128 CC*) 12129 # Sun C++ 4.2, 5.x and Centerline C++ 12130 lt_prog_compiler_pic_CXX='-KPIC' 12131 lt_prog_compiler_static_CXX='-Bstatic' 12132 lt_prog_compiler_wl_CXX='-Qoption ld ' 12133 ;; 12134 gcx*) 12135 # Green Hills C++ Compiler 12136 lt_prog_compiler_pic_CXX='-PIC' 12137 ;; 12138 *) 12139 ;; 12140 esac 12141 ;; 12142 sunos4*) 12143 case $cc_basename in 12144 CC*) 12145 # Sun C++ 4.x 12146 lt_prog_compiler_pic_CXX='-pic' 12147 lt_prog_compiler_static_CXX='-Bstatic' 12148 ;; 12149 lcc*) 12150 # Lucid 12151 lt_prog_compiler_pic_CXX='-pic' 12152 ;; 12153 *) 12154 ;; 12155 esac 12156 ;; 12157 tandem*) 12158 case $cc_basename in 12159 NCC*) 12160 # NonStop-UX NCC 3.20 12161 lt_prog_compiler_pic_CXX='-KPIC' 12162 ;; 12163 *) 12164 ;; 12165 esac 12166 ;; 12167 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12168 case $cc_basename in 12169 CC*) 12170 lt_prog_compiler_wl_CXX='-Wl,' 12171 lt_prog_compiler_pic_CXX='-KPIC' 12172 lt_prog_compiler_static_CXX='-Bstatic' 12173 ;; 12174 esac 12175 ;; 12176 vxworks*) 12177 ;; 12178 *) 12179 lt_prog_compiler_can_build_shared_CXX=no 12180 ;; 12181 esac 12182 fi 12183 12184{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12185echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } 12186 12187# 12188# Check to make sure the PIC flag actually works. 12189# 12190if test -n "$lt_prog_compiler_pic_CXX"; then 12191 12192{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12193echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } 12194if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 12195 echo $ECHO_N "(cached) $ECHO_C" >&6 12196else 12197 lt_prog_compiler_pic_works_CXX=no 12198 ac_outfile=conftest.$ac_objext 12199 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12200 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12201 # Insert the option either (1) after the last *FLAGS variable, or 12202 # (2) before a word containing "conftest.", or (3) at the end. 12203 # Note that $ac_compile itself does not contain backslashes and begins 12204 # with a dollar sign (not a hyphen), so the echo should work correctly. 12205 # The option is referenced via a variable to avoid confusing sed. 12206 lt_compile=`echo "$ac_compile" | $SED \ 12207 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12208 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12209 -e 's:$: $lt_compiler_flag:'` 12210 (eval echo "\"\$as_me:12210: $lt_compile\"" >&5) 12211 (eval "$lt_compile" 2>conftest.err) 12212 ac_status=$? 12213 cat conftest.err >&5 12214 echo "$as_me:12214: \$? = $ac_status" >&5 12215 if (exit $ac_status) && test -s "$ac_outfile"; then 12216 # The compiler can only warn and ignore the option if not recognized 12217 # So say no if there are warnings other than the usual output. 12218 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12219 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12220 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12221 lt_prog_compiler_pic_works_CXX=yes 12222 fi 12223 fi 12224 $rm conftest* 12225 12226fi 12227{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 12228echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } 12229 12230if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 12231 case $lt_prog_compiler_pic_CXX in 12232 "" | " "*) ;; 12233 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12234 esac 12235else 12236 lt_prog_compiler_pic_CXX= 12237 lt_prog_compiler_can_build_shared_CXX=no 12238fi 12239 12240fi 12241case $host_os in 12242 # For platforms which do not support PIC, -DPIC is meaningless: 12243 *djgpp*) 12244 lt_prog_compiler_pic_CXX= 12245 ;; 12246 *) 12247 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12248 ;; 12249esac 12250 12251# 12252# Check to make sure the static flag actually works. 12253# 12254wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 12255{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12256echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 12257if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 12258 echo $ECHO_N "(cached) $ECHO_C" >&6 12259else 12260 lt_prog_compiler_static_works_CXX=no 12261 save_LDFLAGS="$LDFLAGS" 12262 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12263 printf "$lt_simple_link_test_code" > conftest.$ac_ext 12264 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12265 # The linker can only warn and ignore the option if not recognized 12266 # So say no if there are warnings 12267 if test -s conftest.err; then 12268 # Append any errors to the config.log. 12269 cat conftest.err 1>&5 12270 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 12271 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12272 if diff conftest.exp conftest.er2 >/dev/null; then 12273 lt_prog_compiler_static_works_CXX=yes 12274 fi 12275 else 12276 lt_prog_compiler_static_works_CXX=yes 12277 fi 12278 fi 12279 $rm conftest* 12280 LDFLAGS="$save_LDFLAGS" 12281 12282fi 12283{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 12284echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } 12285 12286if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 12287 : 12288else 12289 lt_prog_compiler_static_CXX= 12290fi 12291 12292 12293{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12294echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 12295if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 12296 echo $ECHO_N "(cached) $ECHO_C" >&6 12297else 12298 lt_cv_prog_compiler_c_o_CXX=no 12299 $rm -r conftest 2>/dev/null 12300 mkdir conftest 12301 cd conftest 12302 mkdir out 12303 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12304 12305 lt_compiler_flag="-o out/conftest2.$ac_objext" 12306 # Insert the option either (1) after the last *FLAGS variable, or 12307 # (2) before a word containing "conftest.", or (3) at the end. 12308 # Note that $ac_compile itself does not contain backslashes and begins 12309 # with a dollar sign (not a hyphen), so the echo should work correctly. 12310 lt_compile=`echo "$ac_compile" | $SED \ 12311 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12312 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12313 -e 's:$: $lt_compiler_flag:'` 12314 (eval echo "\"\$as_me:12314: $lt_compile\"" >&5) 12315 (eval "$lt_compile" 2>out/conftest.err) 12316 ac_status=$? 12317 cat out/conftest.err >&5 12318 echo "$as_me:12318: \$? = $ac_status" >&5 12319 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12320 then 12321 # The compiler can only warn and ignore the option if not recognized 12322 # So say no if there are warnings 12323 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 12324 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12325 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12326 lt_cv_prog_compiler_c_o_CXX=yes 12327 fi 12328 fi 12329 chmod u+w . 2>&5 12330 $rm conftest* 12331 # SGI C++ compiler will create directory out/ii_files/ for 12332 # template instantiation 12333 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 12334 $rm out/* && rmdir out 12335 cd .. 12336 rmdir conftest 12337 $rm conftest* 12338 12339fi 12340{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 12341echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } 12342 12343 12344hard_links="nottested" 12345if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 12346 # do not overwrite the value of need_locks provided by the user 12347 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 12348echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 12349 hard_links=yes 12350 $rm conftest* 12351 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12352 touch conftest.a 12353 ln conftest.a conftest.b 2>&5 || hard_links=no 12354 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12355 { echo "$as_me:$LINENO: result: $hard_links" >&5 12356echo "${ECHO_T}$hard_links" >&6; } 12357 if test "$hard_links" = no; then 12358 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12359echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12360 need_locks=warn 12361 fi 12362else 12363 need_locks=no 12364fi 12365 12366{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12367echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 12368 12369 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12370 case $host_os in 12371 aix4* | aix5*) 12372 # If we're using GNU nm, then we don't want the "-C" option. 12373 # -C means demangle to AIX nm, but means don't demangle with GNU nm 12374 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 12375 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' 12376 else 12377 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' 12378 fi 12379 ;; 12380 pw32*) 12381 export_symbols_cmds_CXX="$ltdll_cmds" 12382 ;; 12383 cygwin* | mingw*) 12384 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' 12385 ;; 12386 *) 12387 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12388 ;; 12389 esac 12390 12391{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12392echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12393test "$ld_shlibs_CXX" = no && can_build_shared=no 12394 12395# 12396# Do we need to explicitly link libc? 12397# 12398case "x$archive_cmds_need_lc_CXX" in 12399x|xyes) 12400 # Assume -lc should be added 12401 archive_cmds_need_lc_CXX=yes 12402 12403 if test "$enable_shared" = yes && test "$GCC" = yes; then 12404 case $archive_cmds_CXX in 12405 *'~'*) 12406 # FIXME: we may have to deal with multi-command sequences. 12407 ;; 12408 '$CC '*) 12409 # Test whether the compiler implicitly links with -lc since on some 12410 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12411 # to ld, don't add -lc before -lgcc. 12412 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 12413echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 12414 $rm conftest* 12415 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12416 12417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12418 (eval $ac_compile) 2>&5 12419 ac_status=$? 12420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12421 (exit $ac_status); } 2>conftest.err; then 12422 soname=conftest 12423 lib=conftest 12424 libobjs=conftest.$ac_objext 12425 deplibs= 12426 wl=$lt_prog_compiler_wl_CXX 12427 pic_flag=$lt_prog_compiler_pic_CXX 12428 compiler_flags=-v 12429 linker_flags=-v 12430 verstring= 12431 output_objdir=. 12432 libname=conftest 12433 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 12434 allow_undefined_flag_CXX= 12435 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 12436 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 12437 ac_status=$? 12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12439 (exit $ac_status); } 12440 then 12441 archive_cmds_need_lc_CXX=no 12442 else 12443 archive_cmds_need_lc_CXX=yes 12444 fi 12445 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 12446 else 12447 cat conftest.err 1>&5 12448 fi 12449 $rm conftest* 12450 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 12451echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } 12452 ;; 12453 esac 12454 fi 12455 ;; 12456esac 12457 12458{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 12459echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 12460library_names_spec= 12461libname_spec='lib$name' 12462soname_spec= 12463shrext_cmds=".so" 12464postinstall_cmds= 12465postuninstall_cmds= 12466finish_cmds= 12467finish_eval= 12468shlibpath_var= 12469shlibpath_overrides_runpath=unknown 12470version_type=none 12471dynamic_linker="$host_os ld.so" 12472sys_lib_dlsearch_path_spec="/lib /usr/lib" 12473if test "$GCC" = yes; then 12474 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12475 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 12476 # if the path contains ";" then we assume it to be the separator 12477 # otherwise default to the standard path separator (i.e. ":") - it is 12478 # assumed that no part of a normal pathname contains ";" but that should 12479 # okay in the real world where ";" in dirpaths is itself problematic. 12480 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12481 else 12482 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12483 fi 12484else 12485 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12486fi 12487need_lib_prefix=unknown 12488hardcode_into_libs=no 12489 12490# when you set need_version to no, make sure it does not cause -set_version 12491# flags to be left without arguments 12492need_version=unknown 12493 12494case $host_os in 12495aix3*) 12496 version_type=linux 12497 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12498 shlibpath_var=LIBPATH 12499 12500 # AIX 3 has no versioning support, so we append a major version to the name. 12501 soname_spec='${libname}${release}${shared_ext}$major' 12502 ;; 12503 12504aix4* | aix5*) 12505 version_type=linux 12506 need_lib_prefix=no 12507 need_version=no 12508 hardcode_into_libs=yes 12509 if test "$host_cpu" = ia64; then 12510 # AIX 5 supports IA64 12511 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 12512 shlibpath_var=LD_LIBRARY_PATH 12513 else 12514 # With GCC up to 2.95.x, collect2 would create an import file 12515 # for dependence libraries. The import file would start with 12516 # the line `#! .'. This would cause the generated library to 12517 # depend on `.', always an invalid library. This was fixed in 12518 # development snapshots of GCC prior to 3.0. 12519 case $host_os in 12520 aix4 | aix4.[01] | aix4.[01].*) 12521 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12522 echo ' yes ' 12523 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 12524 : 12525 else 12526 can_build_shared=no 12527 fi 12528 ;; 12529 esac 12530 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 12531 # soname into executable. Probably we can add versioning support to 12532 # collect2, so additional links can be useful in future. 12533 if test "$aix_use_runtimelinking" = yes; then 12534 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12535 # instead of lib<name>.a to let people know that these are not 12536 # typical AIX shared libraries. 12537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12538 else 12539 # We preserve .a as extension for shared libraries through AIX4.2 12540 # and later when we are not doing run time linking. 12541 library_names_spec='${libname}${release}.a $libname.a' 12542 soname_spec='${libname}${release}${shared_ext}$major' 12543 fi 12544 shlibpath_var=LIBPATH 12545 fi 12546 ;; 12547 12548amigaos*) 12549 library_names_spec='$libname.ixlibrary $libname.a' 12550 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12551 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' 12552 ;; 12553 12554beos*) 12555 library_names_spec='${libname}${shared_ext}' 12556 dynamic_linker="$host_os ld.so" 12557 shlibpath_var=LIBRARY_PATH 12558 ;; 12559 12560bsdi[45]*) 12561 version_type=linux 12562 need_version=no 12563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12564 soname_spec='${libname}${release}${shared_ext}$major' 12565 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12566 shlibpath_var=LD_LIBRARY_PATH 12567 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12568 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12569 # the default ld.so.conf also contains /usr/contrib/lib and 12570 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12571 # libtool to hard-code these into programs 12572 ;; 12573 12574cygwin* | mingw* | pw32*) 12575 version_type=windows 12576 shrext_cmds=".dll" 12577 need_version=no 12578 need_lib_prefix=no 12579 12580 case $GCC,$host_os in 12581 yes,cygwin* | yes,mingw* | yes,pw32*) 12582 library_names_spec='$libname.dll.a' 12583 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12584 postinstall_cmds='base_file=`basename \${file}`~ 12585 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 12586 dldir=$destdir/`dirname \$dlpath`~ 12587 test -d \$dldir || mkdir -p \$dldir~ 12588 $install_prog $dir/$dlname \$dldir/$dlname~ 12589 chmod a+x \$dldir/$dlname' 12590 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12591 dlpath=$dir/\$dldll~ 12592 $rm \$dlpath' 12593 shlibpath_overrides_runpath=yes 12594 12595 case $host_os in 12596 cygwin*) 12597 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12598 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12599 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 12600 ;; 12601 mingw*) 12602 # MinGW DLLs use traditional 'lib' prefix 12603 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12604 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12605 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 12606 # It is most probably a Windows format PATH printed by 12607 # mingw gcc, but we are running on Cygwin. Gcc prints its search 12608 # path with ; separators, and with drive letters. We can handle the 12609 # drive letters (cygwin fileutils understands them), so leave them, 12610 # especially as we might pass files found there to a mingw objdump, 12611 # which wouldn't understand a cygwinified path. Ahh. 12612 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12613 else 12614 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12615 fi 12616 ;; 12617 pw32*) 12618 # pw32 DLLs use 'pw' prefix rather than 'lib' 12619 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12620 ;; 12621 esac 12622 ;; 12623 12624 *) 12625 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 12626 ;; 12627 esac 12628 dynamic_linker='Win32 ld.exe' 12629 # FIXME: first we should search . and the directory the executable is in 12630 shlibpath_var=PATH 12631 ;; 12632 12633darwin* | rhapsody*) 12634 dynamic_linker="$host_os dyld" 12635 version_type=darwin 12636 need_lib_prefix=no 12637 need_version=no 12638 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 12639 soname_spec='${libname}${release}${major}$shared_ext' 12640 shlibpath_overrides_runpath=yes 12641 shlibpath_var=DYLD_LIBRARY_PATH 12642 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12643 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 12644 if test "$GCC" = yes; then 12645 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"` 12646 else 12647 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 12648 fi 12649 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12650 ;; 12651 12652dgux*) 12653 version_type=linux 12654 need_lib_prefix=no 12655 need_version=no 12656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 12657 soname_spec='${libname}${release}${shared_ext}$major' 12658 shlibpath_var=LD_LIBRARY_PATH 12659 ;; 12660 12661freebsd1*) 12662 dynamic_linker=no 12663 ;; 12664 12665kfreebsd*-gnu) 12666 version_type=linux 12667 need_lib_prefix=no 12668 need_version=no 12669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12670 soname_spec='${libname}${release}${shared_ext}$major' 12671 shlibpath_var=LD_LIBRARY_PATH 12672 shlibpath_overrides_runpath=no 12673 hardcode_into_libs=yes 12674 dynamic_linker='GNU ld.so' 12675 ;; 12676 12677freebsd* | dragonfly*) 12678 # DragonFly does not have aout. When/if they implement a new 12679 # versioning mechanism, adjust this. 12680 if test -x /usr/bin/objformat; then 12681 objformat=`/usr/bin/objformat` 12682 else 12683 case $host_os in 12684 freebsd[123]*) objformat=aout ;; 12685 *) objformat=elf ;; 12686 esac 12687 fi 12688 version_type=freebsd-$objformat 12689 case $version_type in 12690 freebsd-elf*) 12691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12692 need_version=no 12693 need_lib_prefix=no 12694 ;; 12695 freebsd-*) 12696 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 12697 need_version=yes 12698 ;; 12699 esac 12700 shlibpath_var=LD_LIBRARY_PATH 12701 case $host_os in 12702 freebsd2*) 12703 shlibpath_overrides_runpath=yes 12704 ;; 12705 freebsd3.[01]* | freebsdelf3.[01]*) 12706 shlibpath_overrides_runpath=yes 12707 hardcode_into_libs=yes 12708 ;; 12709 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12710 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12711 shlibpath_overrides_runpath=no 12712 hardcode_into_libs=yes 12713 ;; 12714 freebsd*) # from 4.6 on 12715 shlibpath_overrides_runpath=yes 12716 hardcode_into_libs=yes 12717 ;; 12718 esac 12719 ;; 12720 12721gnu*) 12722 version_type=linux 12723 need_lib_prefix=no 12724 need_version=no 12725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12726 soname_spec='${libname}${release}${shared_ext}$major' 12727 shlibpath_var=LD_LIBRARY_PATH 12728 hardcode_into_libs=yes 12729 ;; 12730 12731hpux9* | hpux10* | hpux11*) 12732 # Give a soname corresponding to the major version so that dld.sl refuses to 12733 # link against other versions. 12734 version_type=sunos 12735 need_lib_prefix=no 12736 need_version=no 12737 case $host_cpu in 12738 ia64*) 12739 shrext_cmds='.so' 12740 hardcode_into_libs=yes 12741 dynamic_linker="$host_os dld.so" 12742 shlibpath_var=LD_LIBRARY_PATH 12743 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12745 soname_spec='${libname}${release}${shared_ext}$major' 12746 if test "X$HPUX_IA64_MODE" = X32; then 12747 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12748 else 12749 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12750 fi 12751 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12752 ;; 12753 hppa*64*) 12754 shrext_cmds='.sl' 12755 hardcode_into_libs=yes 12756 dynamic_linker="$host_os dld.sl" 12757 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12758 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12760 soname_spec='${libname}${release}${shared_ext}$major' 12761 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12762 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12763 ;; 12764 *) 12765 shrext_cmds='.sl' 12766 dynamic_linker="$host_os dld.sl" 12767 shlibpath_var=SHLIB_PATH 12768 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12770 soname_spec='${libname}${release}${shared_ext}$major' 12771 ;; 12772 esac 12773 # HP-UX runs *really* slowly unless shared libraries are mode 555. 12774 postinstall_cmds='chmod 555 $lib' 12775 ;; 12776 12777interix3*) 12778 version_type=linux 12779 need_lib_prefix=no 12780 need_version=no 12781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12782 soname_spec='${libname}${release}${shared_ext}$major' 12783 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12784 shlibpath_var=LD_LIBRARY_PATH 12785 shlibpath_overrides_runpath=no 12786 hardcode_into_libs=yes 12787 ;; 12788 12789irix5* | irix6* | nonstopux*) 12790 case $host_os in 12791 nonstopux*) version_type=nonstopux ;; 12792 *) 12793 if test "$lt_cv_prog_gnu_ld" = yes; then 12794 version_type=linux 12795 else 12796 version_type=irix 12797 fi ;; 12798 esac 12799 need_lib_prefix=no 12800 need_version=no 12801 soname_spec='${libname}${release}${shared_ext}$major' 12802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 12803 case $host_os in 12804 irix5* | nonstopux*) 12805 libsuff= shlibsuff= 12806 ;; 12807 *) 12808 case $LD in # libtool.m4 will add one of these switches to LD 12809 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12810 libsuff= shlibsuff= libmagic=32-bit;; 12811 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12812 libsuff=32 shlibsuff=N32 libmagic=N32;; 12813 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12814 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12815 *) libsuff= shlibsuff= libmagic=never-match;; 12816 esac 12817 ;; 12818 esac 12819 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12820 shlibpath_overrides_runpath=no 12821 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12822 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12823 hardcode_into_libs=yes 12824 ;; 12825 12826# No shared lib support for Linux oldld, aout, or coff. 12827linux*oldld* | linux*aout* | linux*coff*) 12828 dynamic_linker=no 12829 ;; 12830 12831# This must be Linux ELF. 12832linux*) 12833 version_type=linux 12834 need_lib_prefix=no 12835 need_version=no 12836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12837 soname_spec='${libname}${release}${shared_ext}$major' 12838 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12839 shlibpath_var=LD_LIBRARY_PATH 12840 shlibpath_overrides_runpath=no 12841 # This implies no fast_install, which is unacceptable. 12842 # Some rework will be needed to allow for fast_install 12843 # before this can be enabled. 12844 hardcode_into_libs=yes 12845 12846 # Append ld.so.conf contents to the search path 12847 if test -f /etc/ld.so.conf; then 12848 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 12849 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12850 fi 12851 12852 # We used to test for /lib/ld.so.1 and disable shared libraries on 12853 # powerpc, because MkLinux only supported shared libraries with the 12854 # GNU dynamic linker. Since this was broken with cross compilers, 12855 # most powerpc-linux boxes support dynamic linking these days and 12856 # people can always --disable-shared, the test was removed, and we 12857 # assume the GNU/Linux dynamic linker is in use. 12858 dynamic_linker='GNU/Linux ld.so' 12859 ;; 12860 12861knetbsd*-gnu) 12862 version_type=linux 12863 need_lib_prefix=no 12864 need_version=no 12865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12866 soname_spec='${libname}${release}${shared_ext}$major' 12867 shlibpath_var=LD_LIBRARY_PATH 12868 shlibpath_overrides_runpath=no 12869 hardcode_into_libs=yes 12870 dynamic_linker='GNU ld.so' 12871 ;; 12872 12873netbsd*) 12874 version_type=sunos 12875 need_lib_prefix=no 12876 need_version=no 12877 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12879 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12880 dynamic_linker='NetBSD (a.out) ld.so' 12881 else 12882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12883 soname_spec='${libname}${release}${shared_ext}$major' 12884 dynamic_linker='NetBSD ld.elf_so' 12885 fi 12886 shlibpath_var=LD_LIBRARY_PATH 12887 shlibpath_overrides_runpath=yes 12888 hardcode_into_libs=yes 12889 ;; 12890 12891newsos6) 12892 version_type=linux 12893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12894 shlibpath_var=LD_LIBRARY_PATH 12895 shlibpath_overrides_runpath=yes 12896 ;; 12897 12898nto-qnx*) 12899 version_type=linux 12900 need_lib_prefix=no 12901 need_version=no 12902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12903 soname_spec='${libname}${release}${shared_ext}$major' 12904 shlibpath_var=LD_LIBRARY_PATH 12905 shlibpath_overrides_runpath=yes 12906 ;; 12907 12908openbsd*) 12909 version_type=sunos 12910 sys_lib_dlsearch_path_spec="/usr/lib" 12911 need_lib_prefix=no 12912 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 12913 case $host_os in 12914 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 12915 *) need_version=no ;; 12916 esac 12917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12918 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12919 shlibpath_var=LD_LIBRARY_PATH 12920 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12921 case $host_os in 12922 openbsd2.[89] | openbsd2.[89].*) 12923 shlibpath_overrides_runpath=no 12924 ;; 12925 *) 12926 shlibpath_overrides_runpath=yes 12927 ;; 12928 esac 12929 else 12930 shlibpath_overrides_runpath=yes 12931 fi 12932 ;; 12933 12934os2*) 12935 libname_spec='$name' 12936 shrext_cmds=".dll" 12937 need_lib_prefix=no 12938 library_names_spec='$libname${shared_ext} $libname.a' 12939 dynamic_linker='OS/2 ld.exe' 12940 shlibpath_var=LIBPATH 12941 ;; 12942 12943osf3* | osf4* | osf5*) 12944 version_type=osf 12945 need_lib_prefix=no 12946 need_version=no 12947 soname_spec='${libname}${release}${shared_ext}$major' 12948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12949 shlibpath_var=LD_LIBRARY_PATH 12950 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12951 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 12952 ;; 12953 12954solaris*) 12955 version_type=linux 12956 need_lib_prefix=no 12957 need_version=no 12958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12959 soname_spec='${libname}${release}${shared_ext}$major' 12960 shlibpath_var=LD_LIBRARY_PATH 12961 shlibpath_overrides_runpath=yes 12962 hardcode_into_libs=yes 12963 # ldd complains unless libraries are executable 12964 postinstall_cmds='chmod +x $lib' 12965 ;; 12966 12967sunos4*) 12968 version_type=sunos 12969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12970 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12971 shlibpath_var=LD_LIBRARY_PATH 12972 shlibpath_overrides_runpath=yes 12973 if test "$with_gnu_ld" = yes; then 12974 need_lib_prefix=no 12975 fi 12976 need_version=yes 12977 ;; 12978 12979sysv4 | sysv4.3*) 12980 version_type=linux 12981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12982 soname_spec='${libname}${release}${shared_ext}$major' 12983 shlibpath_var=LD_LIBRARY_PATH 12984 case $host_vendor in 12985 sni) 12986 shlibpath_overrides_runpath=no 12987 need_lib_prefix=no 12988 export_dynamic_flag_spec='${wl}-Blargedynsym' 12989 runpath_var=LD_RUN_PATH 12990 ;; 12991 siemens) 12992 need_lib_prefix=no 12993 ;; 12994 motorola) 12995 need_lib_prefix=no 12996 need_version=no 12997 shlibpath_overrides_runpath=no 12998 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12999 ;; 13000 esac 13001 ;; 13002 13003sysv4*MP*) 13004 if test -d /usr/nec ;then 13005 version_type=linux 13006 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13007 soname_spec='$libname${shared_ext}.$major' 13008 shlibpath_var=LD_LIBRARY_PATH 13009 fi 13010 ;; 13011 13012sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13013 version_type=freebsd-elf 13014 need_lib_prefix=no 13015 need_version=no 13016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13017 soname_spec='${libname}${release}${shared_ext}$major' 13018 shlibpath_var=LD_LIBRARY_PATH 13019 hardcode_into_libs=yes 13020 if test "$with_gnu_ld" = yes; then 13021 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13022 shlibpath_overrides_runpath=no 13023 else 13024 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13025 shlibpath_overrides_runpath=yes 13026 case $host_os in 13027 sco3.2v5*) 13028 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13029 ;; 13030 esac 13031 fi 13032 sys_lib_dlsearch_path_spec='/usr/lib' 13033 ;; 13034 13035uts4*) 13036 version_type=linux 13037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13038 soname_spec='${libname}${release}${shared_ext}$major' 13039 shlibpath_var=LD_LIBRARY_PATH 13040 ;; 13041 13042*) 13043 dynamic_linker=no 13044 ;; 13045esac 13046{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13047echo "${ECHO_T}$dynamic_linker" >&6; } 13048test "$dynamic_linker" = no && can_build_shared=no 13049 13050variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13051if test "$GCC" = yes; then 13052 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13053fi 13054 13055{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13056echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 13057hardcode_action_CXX= 13058if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13059 test -n "$runpath_var_CXX" || \ 13060 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13061 13062 # We can hardcode non-existant directories. 13063 if test "$hardcode_direct_CXX" != no && 13064 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13065 # have to relink, otherwise we might link with an installed library 13066 # when we should be linking with a yet-to-be-installed one 13067 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13068 test "$hardcode_minus_L_CXX" != no; then 13069 # Linking always hardcodes the temporary library directory. 13070 hardcode_action_CXX=relink 13071 else 13072 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13073 hardcode_action_CXX=immediate 13074 fi 13075else 13076 # We cannot hardcode anything, or else we can only hardcode existing 13077 # directories. 13078 hardcode_action_CXX=unsupported 13079fi 13080{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13081echo "${ECHO_T}$hardcode_action_CXX" >&6; } 13082 13083if test "$hardcode_action_CXX" = relink; then 13084 # Fast installation is not supported 13085 enable_fast_install=no 13086elif test "$shlibpath_overrides_runpath" = yes || 13087 test "$enable_shared" = no; then 13088 # Fast installation is not necessary 13089 enable_fast_install=needless 13090fi 13091 13092 13093# The else clause should only fire when bootstrapping the 13094# libtool distribution, otherwise you forgot to ship ltmain.sh 13095# with your package, and you will get complaints that there are 13096# no rules to generate ltmain.sh. 13097if test -f "$ltmain"; then 13098 # See if we are running on zsh, and set the options which allow our commands through 13099 # without removal of \ escapes. 13100 if test -n "${ZSH_VERSION+set}" ; then 13101 setopt NO_GLOB_SUBST 13102 fi 13103 # Now quote all the things that may contain metacharacters while being 13104 # careful not to overquote the AC_SUBSTed values. We take copies of the 13105 # variables and quote the copies for generation of the libtool script. 13106 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13107 SED SHELL STRIP \ 13108 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13109 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13110 deplibs_check_method reload_flag reload_cmds need_locks \ 13111 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13112 lt_cv_sys_global_symbol_to_c_name_address \ 13113 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13114 old_postinstall_cmds old_postuninstall_cmds \ 13115 compiler_CXX \ 13116 CC_CXX \ 13117 LD_CXX \ 13118 lt_prog_compiler_wl_CXX \ 13119 lt_prog_compiler_pic_CXX \ 13120 lt_prog_compiler_static_CXX \ 13121 lt_prog_compiler_no_builtin_flag_CXX \ 13122 export_dynamic_flag_spec_CXX \ 13123 thread_safe_flag_spec_CXX \ 13124 whole_archive_flag_spec_CXX \ 13125 enable_shared_with_static_runtimes_CXX \ 13126 old_archive_cmds_CXX \ 13127 old_archive_from_new_cmds_CXX \ 13128 predep_objects_CXX \ 13129 postdep_objects_CXX \ 13130 predeps_CXX \ 13131 postdeps_CXX \ 13132 compiler_lib_search_path_CXX \ 13133 archive_cmds_CXX \ 13134 archive_expsym_cmds_CXX \ 13135 postinstall_cmds_CXX \ 13136 postuninstall_cmds_CXX \ 13137 old_archive_from_expsyms_cmds_CXX \ 13138 allow_undefined_flag_CXX \ 13139 no_undefined_flag_CXX \ 13140 export_symbols_cmds_CXX \ 13141 hardcode_libdir_flag_spec_CXX \ 13142 hardcode_libdir_flag_spec_ld_CXX \ 13143 hardcode_libdir_separator_CXX \ 13144 hardcode_automatic_CXX \ 13145 module_cmds_CXX \ 13146 module_expsym_cmds_CXX \ 13147 lt_cv_prog_compiler_c_o_CXX \ 13148 exclude_expsyms_CXX \ 13149 include_expsyms_CXX; do 13150 13151 case $var in 13152 old_archive_cmds_CXX | \ 13153 old_archive_from_new_cmds_CXX | \ 13154 archive_cmds_CXX | \ 13155 archive_expsym_cmds_CXX | \ 13156 module_cmds_CXX | \ 13157 module_expsym_cmds_CXX | \ 13158 old_archive_from_expsyms_cmds_CXX | \ 13159 export_symbols_cmds_CXX | \ 13160 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13161 postinstall_cmds | postuninstall_cmds | \ 13162 old_postinstall_cmds | old_postuninstall_cmds | \ 13163 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13164 # Double-quote double-evaled strings. 13165 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13166 ;; 13167 *) 13168 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13169 ;; 13170 esac 13171 done 13172 13173 case $lt_echo in 13174 *'\$0 --fallback-echo"') 13175 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13176 ;; 13177 esac 13178 13179cfgfile="$ofile" 13180 13181 cat <<__EOF__ >> "$cfgfile" 13182# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13183 13184# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13185 13186# Shell to use when invoking shell scripts. 13187SHELL=$lt_SHELL 13188 13189# Whether or not to build shared libraries. 13190build_libtool_libs=$enable_shared 13191 13192# Whether or not to build static libraries. 13193build_old_libs=$enable_static 13194 13195# Whether or not to add -lc for building shared libraries. 13196build_libtool_need_lc=$archive_cmds_need_lc_CXX 13197 13198# Whether or not to disallow shared libs when runtime libs are static 13199allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13200 13201# Whether or not to optimize for fast installation. 13202fast_install=$enable_fast_install 13203 13204# The host system. 13205host_alias=$host_alias 13206host=$host 13207host_os=$host_os 13208 13209# The build system. 13210build_alias=$build_alias 13211build=$build 13212build_os=$build_os 13213 13214# An echo program that does not interpret backslashes. 13215echo=$lt_echo 13216 13217# The archiver. 13218AR=$lt_AR 13219AR_FLAGS=$lt_AR_FLAGS 13220 13221# A C compiler. 13222LTCC=$lt_LTCC 13223 13224# LTCC compiler flags. 13225LTCFLAGS=$lt_LTCFLAGS 13226 13227# A language-specific compiler. 13228CC=$lt_compiler_CXX 13229 13230# Is the compiler the GNU C compiler? 13231with_gcc=$GCC_CXX 13232 13233# An ERE matcher. 13234EGREP=$lt_EGREP 13235 13236# The linker used to build libraries. 13237LD=$lt_LD_CXX 13238 13239# Whether we need hard or soft links. 13240LN_S=$lt_LN_S 13241 13242# A BSD-compatible nm program. 13243NM=$lt_NM 13244 13245# A symbol stripping program 13246STRIP=$lt_STRIP 13247 13248# Used to examine libraries when file_magic_cmd begins "file" 13249MAGIC_CMD=$MAGIC_CMD 13250 13251# Used on cygwin: DLL creation program. 13252DLLTOOL="$DLLTOOL" 13253 13254# Used on cygwin: object dumper. 13255OBJDUMP="$OBJDUMP" 13256 13257# Used on cygwin: assembler. 13258AS="$AS" 13259 13260# The name of the directory that contains temporary libtool files. 13261objdir=$objdir 13262 13263# How to create reloadable object files. 13264reload_flag=$lt_reload_flag 13265reload_cmds=$lt_reload_cmds 13266 13267# How to pass a linker flag through the compiler. 13268wl=$lt_lt_prog_compiler_wl_CXX 13269 13270# Object file suffix (normally "o"). 13271objext="$ac_objext" 13272 13273# Old archive suffix (normally "a"). 13274libext="$libext" 13275 13276# Shared library suffix (normally ".so"). 13277shrext_cmds='$shrext_cmds' 13278 13279# Executable file suffix (normally ""). 13280exeext="$exeext" 13281 13282# Additional compiler flags for building library objects. 13283pic_flag=$lt_lt_prog_compiler_pic_CXX 13284pic_mode=$pic_mode 13285 13286# What is the maximum length of a command? 13287max_cmd_len=$lt_cv_sys_max_cmd_len 13288 13289# Does compiler simultaneously support -c and -o options? 13290compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13291 13292# Must we lock files when doing compilation? 13293need_locks=$lt_need_locks 13294 13295# Do we need the lib prefix for modules? 13296need_lib_prefix=$need_lib_prefix 13297 13298# Do we need a version for libraries? 13299need_version=$need_version 13300 13301# Whether dlopen is supported. 13302dlopen_support=$enable_dlopen 13303 13304# Whether dlopen of programs is supported. 13305dlopen_self=$enable_dlopen_self 13306 13307# Whether dlopen of statically linked programs is supported. 13308dlopen_self_static=$enable_dlopen_self_static 13309 13310# Compiler flag to prevent dynamic linking. 13311link_static_flag=$lt_lt_prog_compiler_static_CXX 13312 13313# Compiler flag to turn off builtin functions. 13314no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13315 13316# Compiler flag to allow reflexive dlopens. 13317export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13318 13319# Compiler flag to generate shared objects directly from archives. 13320whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13321 13322# Compiler flag to generate thread-safe objects. 13323thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13324 13325# Library versioning type. 13326version_type=$version_type 13327 13328# Format of library name prefix. 13329libname_spec=$lt_libname_spec 13330 13331# List of archive names. First name is the real one, the rest are links. 13332# The last name is the one that the linker finds with -lNAME. 13333library_names_spec=$lt_library_names_spec 13334 13335# The coded name of the library, if different from the real name. 13336soname_spec=$lt_soname_spec 13337 13338# Commands used to build and install an old-style archive. 13339RANLIB=$lt_RANLIB 13340old_archive_cmds=$lt_old_archive_cmds_CXX 13341old_postinstall_cmds=$lt_old_postinstall_cmds 13342old_postuninstall_cmds=$lt_old_postuninstall_cmds 13343 13344# Create an old-style archive from a shared archive. 13345old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13346 13347# Create a temporary old-style archive to link instead of a shared archive. 13348old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13349 13350# Commands used to build and install a shared archive. 13351archive_cmds=$lt_archive_cmds_CXX 13352archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13353postinstall_cmds=$lt_postinstall_cmds 13354postuninstall_cmds=$lt_postuninstall_cmds 13355 13356# Commands used to build a loadable module (assumed same as above if empty) 13357module_cmds=$lt_module_cmds_CXX 13358module_expsym_cmds=$lt_module_expsym_cmds_CXX 13359 13360# Commands to strip libraries. 13361old_striplib=$lt_old_striplib 13362striplib=$lt_striplib 13363 13364# Dependencies to place before the objects being linked to create a 13365# shared library. 13366predep_objects=$lt_predep_objects_CXX 13367 13368# Dependencies to place after the objects being linked to create a 13369# shared library. 13370postdep_objects=$lt_postdep_objects_CXX 13371 13372# Dependencies to place before the objects being linked to create a 13373# shared library. 13374predeps=$lt_predeps_CXX 13375 13376# Dependencies to place after the objects being linked to create a 13377# shared library. 13378postdeps=$lt_postdeps_CXX 13379 13380# The library search path used internally by the compiler when linking 13381# a shared library. 13382compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 13383 13384# Method to check whether dependent libraries are shared objects. 13385deplibs_check_method=$lt_deplibs_check_method 13386 13387# Command to use when deplibs_check_method == file_magic. 13388file_magic_cmd=$lt_file_magic_cmd 13389 13390# Flag that allows shared libraries with undefined symbols to be built. 13391allow_undefined_flag=$lt_allow_undefined_flag_CXX 13392 13393# Flag that forces no undefined symbols. 13394no_undefined_flag=$lt_no_undefined_flag_CXX 13395 13396# Commands used to finish a libtool library installation in a directory. 13397finish_cmds=$lt_finish_cmds 13398 13399# Same as above, but a single script fragment to be evaled but not shown. 13400finish_eval=$lt_finish_eval 13401 13402# Take the output of nm and produce a listing of raw symbols and C names. 13403global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13404 13405# Transform the output of nm in a proper C declaration 13406global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13407 13408# Transform the output of nm in a C name address pair 13409global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13410 13411# This is the shared library runtime path variable. 13412runpath_var=$runpath_var 13413 13414# This is the shared library path variable. 13415shlibpath_var=$shlibpath_var 13416 13417# Is shlibpath searched before the hard-coded library search path? 13418shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13419 13420# How to hardcode a shared library path into an executable. 13421hardcode_action=$hardcode_action_CXX 13422 13423# Whether we should hardcode library paths into libraries. 13424hardcode_into_libs=$hardcode_into_libs 13425 13426# Flag to hardcode \$libdir into a binary during linking. 13427# This must work even if \$libdir does not exist. 13428hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 13429 13430# If ld is used when linking, flag to hardcode \$libdir into 13431# a binary during linking. This must work even if \$libdir does 13432# not exist. 13433hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 13434 13435# Whether we need a single -rpath flag with a separated argument. 13436hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 13437 13438# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13439# resulting binary. 13440hardcode_direct=$hardcode_direct_CXX 13441 13442# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13443# resulting binary. 13444hardcode_minus_L=$hardcode_minus_L_CXX 13445 13446# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13447# the resulting binary. 13448hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 13449 13450# Set to yes if building a shared library automatically hardcodes DIR into the library 13451# and all subsequent libraries and executables linked against it. 13452hardcode_automatic=$hardcode_automatic_CXX 13453 13454# Variables whose values should be saved in libtool wrapper scripts and 13455# restored at relink time. 13456variables_saved_for_relink="$variables_saved_for_relink" 13457 13458# Whether libtool must link a program against all its dependency libraries. 13459link_all_deplibs=$link_all_deplibs_CXX 13460 13461# Compile-time system search path for libraries 13462sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13463 13464# Run-time system search path for libraries 13465sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13466 13467# Fix the shell variable \$srcfile for the compiler. 13468fix_srcfile_path="$fix_srcfile_path_CXX" 13469 13470# Set to yes if exported symbols are required. 13471always_export_symbols=$always_export_symbols_CXX 13472 13473# The commands to list exported symbols. 13474export_symbols_cmds=$lt_export_symbols_cmds_CXX 13475 13476# The commands to extract the exported symbol list from a shared archive. 13477extract_expsyms_cmds=$lt_extract_expsyms_cmds 13478 13479# Symbols that should not be listed in the preloaded symbols. 13480exclude_expsyms=$lt_exclude_expsyms_CXX 13481 13482# Symbols that must always be exported. 13483include_expsyms=$lt_include_expsyms_CXX 13484 13485# ### END LIBTOOL TAG CONFIG: $tagname 13486 13487__EOF__ 13488 13489 13490else 13491 # If there is no Makefile yet, we rely on a make rule to execute 13492 # `config.status --recheck' to rerun these tests and create the 13493 # libtool script then. 13494 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 13495 if test -f "$ltmain_in"; then 13496 test -f Makefile && make "$ltmain" 13497 fi 13498fi 13499 13500 13501ac_ext=c 13502ac_cpp='$CPP $CPPFLAGS' 13503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13505ac_compiler_gnu=$ac_cv_c_compiler_gnu 13506 13507CC=$lt_save_CC 13508LDCXX=$LD 13509LD=$lt_save_LD 13510GCC=$lt_save_GCC 13511with_gnu_ldcxx=$with_gnu_ld 13512with_gnu_ld=$lt_save_with_gnu_ld 13513lt_cv_path_LDCXX=$lt_cv_path_LD 13514lt_cv_path_LD=$lt_save_path_LD 13515lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 13516lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 13517 13518 else 13519 tagname="" 13520 fi 13521 ;; 13522 13523 F77) 13524 if test -n "$F77" && test "X$F77" != "Xno"; then 13525 13526ac_ext=f 13527ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 13528ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13529ac_compiler_gnu=$ac_cv_f77_compiler_gnu 13530 13531 13532archive_cmds_need_lc_F77=no 13533allow_undefined_flag_F77= 13534always_export_symbols_F77=no 13535archive_expsym_cmds_F77= 13536export_dynamic_flag_spec_F77= 13537hardcode_direct_F77=no 13538hardcode_libdir_flag_spec_F77= 13539hardcode_libdir_flag_spec_ld_F77= 13540hardcode_libdir_separator_F77= 13541hardcode_minus_L_F77=no 13542hardcode_automatic_F77=no 13543module_cmds_F77= 13544module_expsym_cmds_F77= 13545link_all_deplibs_F77=unknown 13546old_archive_cmds_F77=$old_archive_cmds 13547no_undefined_flag_F77= 13548whole_archive_flag_spec_F77= 13549enable_shared_with_static_runtimes_F77=no 13550 13551# Source file extension for f77 test sources. 13552ac_ext=f 13553 13554# Object file extension for compiled f77 test sources. 13555objext=o 13556objext_F77=$objext 13557 13558# Code to be used in simple compile tests 13559lt_simple_compile_test_code=" subroutine t\n return\n end\n" 13560 13561# Code to be used in simple link tests 13562lt_simple_link_test_code=" program t\n end\n" 13563 13564# ltmain only uses $CC for tagged configurations so make sure $CC is set. 13565 13566# If no C compiler was specified, use CC. 13567LTCC=${LTCC-"$CC"} 13568 13569# If no C compiler flags were specified, use CFLAGS. 13570LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13571 13572# Allow CC to be a program name with arguments. 13573compiler=$CC 13574 13575 13576# save warnings/boilerplate of simple test code 13577ac_outfile=conftest.$ac_objext 13578printf "$lt_simple_compile_test_code" >conftest.$ac_ext 13579eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13580_lt_compiler_boilerplate=`cat conftest.err` 13581$rm conftest* 13582 13583ac_outfile=conftest.$ac_objext 13584printf "$lt_simple_link_test_code" >conftest.$ac_ext 13585eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13586_lt_linker_boilerplate=`cat conftest.err` 13587$rm conftest* 13588 13589 13590# Allow CC to be a program name with arguments. 13591lt_save_CC="$CC" 13592CC=${F77-"f77"} 13593compiler=$CC 13594compiler_F77=$CC 13595for cc_temp in $compiler""; do 13596 case $cc_temp in 13597 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13598 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13599 \-*) ;; 13600 *) break;; 13601 esac 13602done 13603cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13604 13605 13606{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 13607echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 13608{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 13609echo "${ECHO_T}$can_build_shared" >&6; } 13610 13611{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 13612echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 13613test "$can_build_shared" = "no" && enable_shared=no 13614 13615# On AIX, shared libraries and static libraries use the same namespace, and 13616# are all built from PIC. 13617case $host_os in 13618aix3*) 13619 test "$enable_shared" = yes && enable_static=no 13620 if test -n "$RANLIB"; then 13621 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13622 postinstall_cmds='$RANLIB $lib' 13623 fi 13624 ;; 13625aix4* | aix5*) 13626 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13627 test "$enable_shared" = yes && enable_static=no 13628 fi 13629 ;; 13630esac 13631{ echo "$as_me:$LINENO: result: $enable_shared" >&5 13632echo "${ECHO_T}$enable_shared" >&6; } 13633 13634{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 13635echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 13636# Make sure either enable_shared or enable_static is yes. 13637test "$enable_shared" = yes || enable_static=yes 13638{ echo "$as_me:$LINENO: result: $enable_static" >&5 13639echo "${ECHO_T}$enable_static" >&6; } 13640 13641GCC_F77="$G77" 13642LD_F77="$LD" 13643 13644lt_prog_compiler_wl_F77= 13645lt_prog_compiler_pic_F77= 13646lt_prog_compiler_static_F77= 13647 13648{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13649echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 13650 13651 if test "$GCC" = yes; then 13652 lt_prog_compiler_wl_F77='-Wl,' 13653 lt_prog_compiler_static_F77='-static' 13654 13655 case $host_os in 13656 aix*) 13657 # All AIX code is PIC. 13658 if test "$host_cpu" = ia64; then 13659 # AIX 5 now supports IA64 processor 13660 lt_prog_compiler_static_F77='-Bstatic' 13661 fi 13662 ;; 13663 13664 amigaos*) 13665 # FIXME: we need at least 68020 code to build shared libraries, but 13666 # adding the `-m68020' flag to GCC prevents building anything better, 13667 # like `-m68040'. 13668 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 13669 ;; 13670 13671 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13672 # PIC is the default for these OSes. 13673 ;; 13674 13675 mingw* | cygwin* | pw32* | os2*) 13676 # This hack is so that the source file can tell whether it is being 13677 # built for inclusion in a dll (and should export symbols for example). 13678 # Although the cygwin gcc ignores -fPIC, still need this for old-style 13679 # (--disable-auto-import) libraries 13680 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13681 ;; 13682 13683 darwin* | rhapsody*) 13684 # PIC is the default on this platform 13685 # Common symbols not allowed in MH_DYLIB files 13686 lt_prog_compiler_pic_F77='-fno-common' 13687 ;; 13688 13689 interix3*) 13690 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13691 # Instead, we relocate shared libraries at runtime. 13692 ;; 13693 13694 msdosdjgpp*) 13695 # Just because we use GCC doesn't mean we suddenly get shared libraries 13696 # on systems that don't support them. 13697 lt_prog_compiler_can_build_shared_F77=no 13698 enable_shared=no 13699 ;; 13700 13701 sysv4*MP*) 13702 if test -d /usr/nec; then 13703 lt_prog_compiler_pic_F77=-Kconform_pic 13704 fi 13705 ;; 13706 13707 hpux*) 13708 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13709 # not for PA HP-UX. 13710 case $host_cpu in 13711 hppa*64*|ia64*) 13712 # +Z the default 13713 ;; 13714 *) 13715 lt_prog_compiler_pic_F77='-fPIC' 13716 ;; 13717 esac 13718 ;; 13719 13720 *) 13721 lt_prog_compiler_pic_F77='-fPIC' 13722 ;; 13723 esac 13724 else 13725 # PORTME Check for flag to pass linker flags through the system compiler. 13726 case $host_os in 13727 aix*) 13728 lt_prog_compiler_wl_F77='-Wl,' 13729 if test "$host_cpu" = ia64; then 13730 # AIX 5 now supports IA64 processor 13731 lt_prog_compiler_static_F77='-Bstatic' 13732 else 13733 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 13734 fi 13735 ;; 13736 darwin*) 13737 # PIC is the default on this platform 13738 # Common symbols not allowed in MH_DYLIB files 13739 case $cc_basename in 13740 xlc*) 13741 lt_prog_compiler_pic_F77='-qnocommon' 13742 lt_prog_compiler_wl_F77='-Wl,' 13743 ;; 13744 esac 13745 ;; 13746 13747 mingw* | cygwin* | pw32* | os2*) 13748 # This hack is so that the source file can tell whether it is being 13749 # built for inclusion in a dll (and should export symbols for example). 13750 # Although the cygwin gcc ignores -fPIC, still need this for old-style 13751 # (--disable-auto-import) libraries 13752 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13753 ;; 13754 13755 hpux9* | hpux10* | hpux11*) 13756 lt_prog_compiler_wl_F77='-Wl,' 13757 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13758 # not for PA HP-UX. 13759 case $host_cpu in 13760 hppa*64*|ia64*) 13761 # +Z the default 13762 ;; 13763 *) 13764 lt_prog_compiler_pic_F77='+Z' 13765 ;; 13766 esac 13767 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13768 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 13769 ;; 13770 13771 irix5* | irix6* | nonstopux*) 13772 lt_prog_compiler_wl_F77='-Wl,' 13773 # PIC (with -KPIC) is the default. 13774 lt_prog_compiler_static_F77='-non_shared' 13775 ;; 13776 13777 newsos6) 13778 lt_prog_compiler_pic_F77='-KPIC' 13779 lt_prog_compiler_static_F77='-Bstatic' 13780 ;; 13781 13782 linux*) 13783 case $cc_basename in 13784 icc* | ecc*) 13785 lt_prog_compiler_wl_F77='-Wl,' 13786 lt_prog_compiler_pic_F77='-KPIC' 13787 lt_prog_compiler_static_F77='-static' 13788 ;; 13789 pgcc* | pgf77* | pgf90* | pgf95*) 13790 # Portland Group compilers (*not* the Pentium gcc compiler, 13791 # which looks to be a dead project) 13792 lt_prog_compiler_wl_F77='-Wl,' 13793 lt_prog_compiler_pic_F77='-fpic' 13794 lt_prog_compiler_static_F77='-Bstatic' 13795 ;; 13796 ccc*) 13797 lt_prog_compiler_wl_F77='-Wl,' 13798 # All Alpha code is PIC. 13799 lt_prog_compiler_static_F77='-non_shared' 13800 ;; 13801 como) 13802 lt_prog_compiler_wl_F77='-lopt=' 13803 ;; 13804 *) 13805 case `$CC -V 2>&1 | sed 5q` in 13806 *Sun\ C*) 13807 # Sun C 5.9 13808 lt_prog_compiler_pic_F77='-KPIC' 13809 lt_prog_compiler_static_F77='-Bstatic' 13810 lt_prog_compiler_wl_F77='-Wl,' 13811 ;; 13812 *Sun\ F*) 13813 # Sun Fortran 8.3 passes all unrecognized flags to the linker 13814 lt_prog_compiler_pic_F77='-KPIC' 13815 lt_prog_compiler_static_F77='-Bstatic' 13816 lt_prog_compiler_wl_F77='' 13817 ;; 13818 esac 13819 ;; 13820 esac 13821 ;; 13822 13823 osf3* | osf4* | osf5*) 13824 lt_prog_compiler_wl_F77='-Wl,' 13825 # All OSF/1 code is PIC. 13826 lt_prog_compiler_static_F77='-non_shared' 13827 ;; 13828 13829 solaris*) 13830 lt_prog_compiler_pic_F77='-KPIC' 13831 lt_prog_compiler_static_F77='-Bstatic' 13832 case $cc_basename in 13833 f77* | f90* | f95*) 13834 lt_prog_compiler_wl_F77='-Qoption ld ';; 13835 *) 13836 lt_prog_compiler_wl_F77='-Wl,';; 13837 esac 13838 ;; 13839 13840 sunos4*) 13841 lt_prog_compiler_wl_F77='-Qoption ld ' 13842 lt_prog_compiler_pic_F77='-PIC' 13843 lt_prog_compiler_static_F77='-Bstatic' 13844 ;; 13845 13846 sysv4 | sysv4.2uw2* | sysv4.3*) 13847 lt_prog_compiler_wl_F77='-Wl,' 13848 lt_prog_compiler_pic_F77='-KPIC' 13849 lt_prog_compiler_static_F77='-Bstatic' 13850 ;; 13851 13852 sysv4*MP*) 13853 if test -d /usr/nec ;then 13854 lt_prog_compiler_pic_F77='-Kconform_pic' 13855 lt_prog_compiler_static_F77='-Bstatic' 13856 fi 13857 ;; 13858 13859 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13860 lt_prog_compiler_wl_F77='-Wl,' 13861 lt_prog_compiler_pic_F77='-KPIC' 13862 lt_prog_compiler_static_F77='-Bstatic' 13863 ;; 13864 13865 unicos*) 13866 lt_prog_compiler_wl_F77='-Wl,' 13867 lt_prog_compiler_can_build_shared_F77=no 13868 ;; 13869 13870 uts4*) 13871 lt_prog_compiler_pic_F77='-pic' 13872 lt_prog_compiler_static_F77='-Bstatic' 13873 ;; 13874 13875 *) 13876 lt_prog_compiler_can_build_shared_F77=no 13877 ;; 13878 esac 13879 fi 13880 13881{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 13882echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } 13883 13884# 13885# Check to make sure the PIC flag actually works. 13886# 13887if test -n "$lt_prog_compiler_pic_F77"; then 13888 13889{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 13890echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } 13891if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 13892 echo $ECHO_N "(cached) $ECHO_C" >&6 13893else 13894 lt_prog_compiler_pic_works_F77=no 13895 ac_outfile=conftest.$ac_objext 13896 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13897 lt_compiler_flag="$lt_prog_compiler_pic_F77" 13898 # Insert the option either (1) after the last *FLAGS variable, or 13899 # (2) before a word containing "conftest.", or (3) at the end. 13900 # Note that $ac_compile itself does not contain backslashes and begins 13901 # with a dollar sign (not a hyphen), so the echo should work correctly. 13902 # The option is referenced via a variable to avoid confusing sed. 13903 lt_compile=`echo "$ac_compile" | $SED \ 13904 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13905 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13906 -e 's:$: $lt_compiler_flag:'` 13907 (eval echo "\"\$as_me:13907: $lt_compile\"" >&5) 13908 (eval "$lt_compile" 2>conftest.err) 13909 ac_status=$? 13910 cat conftest.err >&5 13911 echo "$as_me:13911: \$? = $ac_status" >&5 13912 if (exit $ac_status) && test -s "$ac_outfile"; then 13913 # The compiler can only warn and ignore the option if not recognized 13914 # So say no if there are warnings other than the usual output. 13915 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 13916 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13917 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13918 lt_prog_compiler_pic_works_F77=yes 13919 fi 13920 fi 13921 $rm conftest* 13922 13923fi 13924{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 13925echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } 13926 13927if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 13928 case $lt_prog_compiler_pic_F77 in 13929 "" | " "*) ;; 13930 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 13931 esac 13932else 13933 lt_prog_compiler_pic_F77= 13934 lt_prog_compiler_can_build_shared_F77=no 13935fi 13936 13937fi 13938case $host_os in 13939 # For platforms which do not support PIC, -DPIC is meaningless: 13940 *djgpp*) 13941 lt_prog_compiler_pic_F77= 13942 ;; 13943 *) 13944 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 13945 ;; 13946esac 13947 13948# 13949# Check to make sure the static flag actually works. 13950# 13951wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 13952{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13953echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 13954if test "${lt_prog_compiler_static_works_F77+set}" = set; then 13955 echo $ECHO_N "(cached) $ECHO_C" >&6 13956else 13957 lt_prog_compiler_static_works_F77=no 13958 save_LDFLAGS="$LDFLAGS" 13959 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13960 printf "$lt_simple_link_test_code" > conftest.$ac_ext 13961 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13962 # The linker can only warn and ignore the option if not recognized 13963 # So say no if there are warnings 13964 if test -s conftest.err; then 13965 # Append any errors to the config.log. 13966 cat conftest.err 1>&5 13967 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 13968 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13969 if diff conftest.exp conftest.er2 >/dev/null; then 13970 lt_prog_compiler_static_works_F77=yes 13971 fi 13972 else 13973 lt_prog_compiler_static_works_F77=yes 13974 fi 13975 fi 13976 $rm conftest* 13977 LDFLAGS="$save_LDFLAGS" 13978 13979fi 13980{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 13981echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } 13982 13983if test x"$lt_prog_compiler_static_works_F77" = xyes; then 13984 : 13985else 13986 lt_prog_compiler_static_F77= 13987fi 13988 13989 13990{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13991echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 13992if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 13993 echo $ECHO_N "(cached) $ECHO_C" >&6 13994else 13995 lt_cv_prog_compiler_c_o_F77=no 13996 $rm -r conftest 2>/dev/null 13997 mkdir conftest 13998 cd conftest 13999 mkdir out 14000 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14001 14002 lt_compiler_flag="-o out/conftest2.$ac_objext" 14003 # Insert the option either (1) after the last *FLAGS variable, or 14004 # (2) before a word containing "conftest.", or (3) at the end. 14005 # Note that $ac_compile itself does not contain backslashes and begins 14006 # with a dollar sign (not a hyphen), so the echo should work correctly. 14007 lt_compile=`echo "$ac_compile" | $SED \ 14008 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14009 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14010 -e 's:$: $lt_compiler_flag:'` 14011 (eval echo "\"\$as_me:14011: $lt_compile\"" >&5) 14012 (eval "$lt_compile" 2>out/conftest.err) 14013 ac_status=$? 14014 cat out/conftest.err >&5 14015 echo "$as_me:14015: \$? = $ac_status" >&5 14016 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14017 then 14018 # The compiler can only warn and ignore the option if not recognized 14019 # So say no if there are warnings 14020 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14021 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14022 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14023 lt_cv_prog_compiler_c_o_F77=yes 14024 fi 14025 fi 14026 chmod u+w . 2>&5 14027 $rm conftest* 14028 # SGI C++ compiler will create directory out/ii_files/ for 14029 # template instantiation 14030 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14031 $rm out/* && rmdir out 14032 cd .. 14033 rmdir conftest 14034 $rm conftest* 14035 14036fi 14037{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14038echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } 14039 14040 14041hard_links="nottested" 14042if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14043 # do not overwrite the value of need_locks provided by the user 14044 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14045echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 14046 hard_links=yes 14047 $rm conftest* 14048 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14049 touch conftest.a 14050 ln conftest.a conftest.b 2>&5 || hard_links=no 14051 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14052 { echo "$as_me:$LINENO: result: $hard_links" >&5 14053echo "${ECHO_T}$hard_links" >&6; } 14054 if test "$hard_links" = no; then 14055 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14056echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14057 need_locks=warn 14058 fi 14059else 14060 need_locks=no 14061fi 14062 14063{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14064echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 14065 14066 runpath_var= 14067 allow_undefined_flag_F77= 14068 enable_shared_with_static_runtimes_F77=no 14069 archive_cmds_F77= 14070 archive_expsym_cmds_F77= 14071 old_archive_From_new_cmds_F77= 14072 old_archive_from_expsyms_cmds_F77= 14073 export_dynamic_flag_spec_F77= 14074 whole_archive_flag_spec_F77= 14075 thread_safe_flag_spec_F77= 14076 hardcode_libdir_flag_spec_F77= 14077 hardcode_libdir_flag_spec_ld_F77= 14078 hardcode_libdir_separator_F77= 14079 hardcode_direct_F77=no 14080 hardcode_minus_L_F77=no 14081 hardcode_shlibpath_var_F77=unsupported 14082 link_all_deplibs_F77=unknown 14083 hardcode_automatic_F77=no 14084 module_cmds_F77= 14085 module_expsym_cmds_F77= 14086 always_export_symbols_F77=no 14087 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14088 # include_expsyms should be a list of space-separated symbols to be *always* 14089 # included in the symbol list 14090 include_expsyms_F77= 14091 # exclude_expsyms can be an extended regexp of symbols to exclude 14092 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14093 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14094 # as well as any symbol that contains `d'. 14095 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 14096 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14097 # platforms (ab)use it in PIC code, but their linkers get confused if 14098 # the symbol is explicitly referenced. Since portable code cannot 14099 # rely on this symbol name, it's probably fine to never include it in 14100 # preloaded symbol tables. 14101 extract_expsyms_cmds= 14102 # Just being paranoid about ensuring that cc_basename is set. 14103 for cc_temp in $compiler""; do 14104 case $cc_temp in 14105 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14106 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14107 \-*) ;; 14108 *) break;; 14109 esac 14110done 14111cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14112 14113 case $host_os in 14114 cygwin* | mingw* | pw32*) 14115 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14116 # When not using gcc, we currently assume that we are using 14117 # Microsoft Visual C++. 14118 if test "$GCC" != yes; then 14119 with_gnu_ld=no 14120 fi 14121 ;; 14122 interix*) 14123 # we just hope/assume this is gcc and not c89 (= MSVC++) 14124 with_gnu_ld=yes 14125 ;; 14126 openbsd*) 14127 with_gnu_ld=no 14128 ;; 14129 esac 14130 14131 ld_shlibs_F77=yes 14132 if test "$with_gnu_ld" = yes; then 14133 # If archive_cmds runs LD, not CC, wlarc should be empty 14134 wlarc='${wl}' 14135 14136 # Set some defaults for GNU ld with shared library support. These 14137 # are reset later if shared libraries are not supported. Putting them 14138 # here allows them to be overridden if necessary. 14139 runpath_var=LD_RUN_PATH 14140 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14141 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14142 # ancient GNU ld didn't support --whole-archive et. al. 14143 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14144 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14145 else 14146 whole_archive_flag_spec_F77= 14147 fi 14148 supports_anon_versioning=no 14149 case `$LD -v 2>/dev/null` in 14150 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14151 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14152 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14153 *\ 2.11.*) ;; # other 2.11 versions 14154 *) supports_anon_versioning=yes ;; 14155 esac 14156 14157 # See if GNU ld supports shared libraries. 14158 case $host_os in 14159 aix3* | aix4* | aix5*) 14160 # On AIX/PPC, the GNU linker is very broken 14161 if test "$host_cpu" != ia64; then 14162 ld_shlibs_F77=no 14163 cat <<EOF 1>&2 14164 14165*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14166*** to be unable to reliably create shared libraries on AIX. 14167*** Therefore, libtool is disabling shared libraries support. If you 14168*** really care for shared libraries, you may want to modify your PATH 14169*** so that a non-GNU linker is found, and then restart. 14170 14171EOF 14172 fi 14173 ;; 14174 14175 amigaos*) 14176 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)' 14177 hardcode_libdir_flag_spec_F77='-L$libdir' 14178 hardcode_minus_L_F77=yes 14179 14180 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14181 # that the semantics of dynamic libraries on AmigaOS, at least up 14182 # to version 4, is to share data among multiple programs linked 14183 # with the same dynamic library. Since this doesn't match the 14184 # behavior of shared libraries on other platforms, we can't use 14185 # them. 14186 ld_shlibs_F77=no 14187 ;; 14188 14189 beos*) 14190 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14191 allow_undefined_flag_F77=unsupported 14192 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14193 # support --undefined. This deserves some investigation. FIXME 14194 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14195 else 14196 ld_shlibs_F77=no 14197 fi 14198 ;; 14199 14200 cygwin* | mingw* | pw32*) 14201 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14202 # as there is no search path for DLLs. 14203 hardcode_libdir_flag_spec_F77='-L$libdir' 14204 allow_undefined_flag_F77=unsupported 14205 always_export_symbols_F77=no 14206 enable_shared_with_static_runtimes_F77=yes 14207 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 14208 14209 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14210 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14211 # If the export-symbols file already is a .def file (1st line 14212 # is EXPORTS), use it as is; otherwise, prepend... 14213 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14214 cp $export_symbols $output_objdir/$soname.def; 14215 else 14216 echo EXPORTS > $output_objdir/$soname.def; 14217 cat $export_symbols >> $output_objdir/$soname.def; 14218 fi~ 14219 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14220 else 14221 ld_shlibs_F77=no 14222 fi 14223 ;; 14224 14225 interix3*) 14226 hardcode_direct_F77=no 14227 hardcode_shlibpath_var_F77=no 14228 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14229 export_dynamic_flag_spec_F77='${wl}-E' 14230 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14231 # Instead, shared libraries are loaded at an image base (0x10000000 by 14232 # default) and relocated if they conflict, which is a slow very memory 14233 # consuming and fragmenting process. To avoid this, we pick a random, 14234 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14235 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14236 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' 14237 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' 14238 ;; 14239 14240 linux*) 14241 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14242 tmp_addflag= 14243 case $cc_basename,$host_cpu in 14244 pgcc*) # Portland Group C compiler 14245 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' 14246 tmp_addflag=' $pic_flag' 14247 ;; 14248 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14249 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' 14250 tmp_addflag=' $pic_flag -Mnomain' ;; 14251 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14252 tmp_addflag=' -i_dynamic' ;; 14253 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14254 tmp_addflag=' -i_dynamic -nofor_main' ;; 14255 ifc* | ifort*) # Intel Fortran compiler 14256 tmp_addflag=' -nofor_main' ;; 14257 esac 14258 case `$CC -V 2>&1 | sed 5q` in 14259 *Sun\ C*) # Sun C 5.9 14260 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive /dev/null' 14261 tmp_sharedflag='-G' ;; 14262 *Sun\ F*) # Sun Fortran 8.3 14263 tmp_sharedflag='-G' ;; 14264 *) 14265 tmp_sharedflag='-shared' ;; 14266 esac 14267 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14268 14269 if test $supports_anon_versioning = yes; then 14270 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14271 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14272 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14273 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14274 fi 14275 else 14276 ld_shlibs_F77=no 14277 fi 14278 ;; 14279 14280 netbsd*) 14281 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14282 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14283 wlarc= 14284 else 14285 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14286 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14287 fi 14288 ;; 14289 14290 solaris*) 14291 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14292 ld_shlibs_F77=no 14293 cat <<EOF 1>&2 14294 14295*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14296*** create shared libraries on Solaris systems. Therefore, libtool 14297*** is disabling shared libraries support. We urge you to upgrade GNU 14298*** binutils to release 2.9.1 or newer. Another option is to modify 14299*** your PATH or compiler configuration so that the native linker is 14300*** used, and then restart. 14301 14302EOF 14303 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14304 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14305 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14306 else 14307 ld_shlibs_F77=no 14308 fi 14309 ;; 14310 14311 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14312 case `$LD -v 2>&1` in 14313 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14314 ld_shlibs_F77=no 14315 cat <<_LT_EOF 1>&2 14316 14317*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 14318*** reliably create shared libraries on SCO systems. Therefore, libtool 14319*** is disabling shared libraries support. We urge you to upgrade GNU 14320*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14321*** your PATH or compiler configuration so that the native linker is 14322*** used, and then restart. 14323 14324_LT_EOF 14325 ;; 14326 *) 14327 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14328 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 14329 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 14330 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 14331 else 14332 ld_shlibs_F77=no 14333 fi 14334 ;; 14335 esac 14336 ;; 14337 14338 sunos4*) 14339 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14340 wlarc= 14341 hardcode_direct_F77=yes 14342 hardcode_shlibpath_var_F77=no 14343 ;; 14344 14345 *) 14346 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14347 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14348 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14349 else 14350 ld_shlibs_F77=no 14351 fi 14352 ;; 14353 esac 14354 14355 if test "$ld_shlibs_F77" = no; then 14356 runpath_var= 14357 hardcode_libdir_flag_spec_F77= 14358 export_dynamic_flag_spec_F77= 14359 whole_archive_flag_spec_F77= 14360 fi 14361 else 14362 # PORTME fill in a description of your system's linker (not GNU ld) 14363 case $host_os in 14364 aix3*) 14365 allow_undefined_flag_F77=unsupported 14366 always_export_symbols_F77=yes 14367 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' 14368 # Note: this linker hardcodes the directories in LIBPATH if there 14369 # are no directories specified by -L. 14370 hardcode_minus_L_F77=yes 14371 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 14372 # Neither direct hardcoding nor static linking is supported with a 14373 # broken collect2. 14374 hardcode_direct_F77=unsupported 14375 fi 14376 ;; 14377 14378 aix4* | aix5*) 14379 if test "$host_cpu" = ia64; then 14380 # On IA64, the linker does run time linking by default, so we don't 14381 # have to do anything special. 14382 aix_use_runtimelinking=no 14383 exp_sym_flag='-Bexport' 14384 no_entry_flag="" 14385 else 14386 # If we're using GNU nm, then we don't want the "-C" option. 14387 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14388 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14389 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' 14390 else 14391 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' 14392 fi 14393 aix_use_runtimelinking=no 14394 14395 # Test if we are trying to use run time linking or normal 14396 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14397 # need to do runtime linking. 14398 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 14399 for ld_flag in $LDFLAGS; do 14400 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14401 aix_use_runtimelinking=yes 14402 break 14403 fi 14404 done 14405 ;; 14406 esac 14407 14408 exp_sym_flag='-bexport' 14409 no_entry_flag='-bnoentry' 14410 fi 14411 14412 # When large executables or shared objects are built, AIX ld can 14413 # have problems creating the table of contents. If linking a library 14414 # or program results in "error TOC overflow" add -mminimal-toc to 14415 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14416 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14417 14418 archive_cmds_F77='' 14419 hardcode_direct_F77=yes 14420 hardcode_libdir_separator_F77=':' 14421 link_all_deplibs_F77=yes 14422 14423 if test "$GCC" = yes; then 14424 case $host_os in aix4.[012]|aix4.[012].*) 14425 # We only want to do this on AIX 4.2 and lower, the check 14426 # below for broken collect2 doesn't work under 4.3+ 14427 collect2name=`${CC} -print-prog-name=collect2` 14428 if test -f "$collect2name" && \ 14429 strings "$collect2name" | grep resolve_lib_name >/dev/null 14430 then 14431 # We have reworked collect2 14432 hardcode_direct_F77=yes 14433 else 14434 # We have old collect2 14435 hardcode_direct_F77=unsupported 14436 # It fails to find uninstalled libraries when the uninstalled 14437 # path is not listed in the libpath. Setting hardcode_minus_L 14438 # to unsupported forces relinking 14439 hardcode_minus_L_F77=yes 14440 hardcode_libdir_flag_spec_F77='-L$libdir' 14441 hardcode_libdir_separator_F77= 14442 fi 14443 ;; 14444 esac 14445 shared_flag='-shared' 14446 if test "$aix_use_runtimelinking" = yes; then 14447 shared_flag="$shared_flag "'${wl}-G' 14448 fi 14449 else 14450 # not using gcc 14451 if test "$host_cpu" = ia64; then 14452 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14453 # chokes on -Wl,-G. The following line is correct: 14454 shared_flag='-G' 14455 else 14456 if test "$aix_use_runtimelinking" = yes; then 14457 shared_flag='${wl}-G' 14458 else 14459 shared_flag='${wl}-bM:SRE' 14460 fi 14461 fi 14462 fi 14463 14464 # It seems that -bexpall does not export symbols beginning with 14465 # underscore (_), so it is better to generate a list of symbols to export. 14466 always_export_symbols_F77=yes 14467 if test "$aix_use_runtimelinking" = yes; then 14468 # Warning - without using the other runtime loading flags (-brtl), 14469 # -berok will link without error, but may produce a broken library. 14470 allow_undefined_flag_F77='-berok' 14471 # Determine the default libpath from the value encoded in an empty executable. 14472 cat >conftest.$ac_ext <<_ACEOF 14473 program main 14474 14475 end 14476_ACEOF 14477rm -f conftest.$ac_objext conftest$ac_exeext 14478if { (ac_try="$ac_link" 14479case "(($ac_try" in 14480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14481 *) ac_try_echo=$ac_try;; 14482esac 14483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14484 (eval "$ac_link") 2>conftest.er1 14485 ac_status=$? 14486 grep -v '^ *+' conftest.er1 >conftest.err 14487 rm -f conftest.er1 14488 cat conftest.err >&5 14489 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14490 (exit $ac_status); } && { 14491 test -z "$ac_f77_werror_flag" || 14492 test ! -s conftest.err 14493 } && test -s conftest$ac_exeext && 14494 $as_test_x conftest$ac_exeext; then 14495 14496aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14497}'` 14498# Check for a 64-bit object if we didn't find anything. 14499if 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; } 14500}'`; fi 14501else 14502 echo "$as_me: failed program was:" >&5 14503sed 's/^/| /' conftest.$ac_ext >&5 14504 14505 14506fi 14507 14508rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14509 conftest$ac_exeext conftest.$ac_ext 14510if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14511 14512 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14513 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" 14514 else 14515 if test "$host_cpu" = ia64; then 14516 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 14517 allow_undefined_flag_F77="-z nodefs" 14518 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" 14519 else 14520 # Determine the default libpath from the value encoded in an empty executable. 14521 cat >conftest.$ac_ext <<_ACEOF 14522 program main 14523 14524 end 14525_ACEOF 14526rm -f conftest.$ac_objext conftest$ac_exeext 14527if { (ac_try="$ac_link" 14528case "(($ac_try" in 14529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14530 *) ac_try_echo=$ac_try;; 14531esac 14532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14533 (eval "$ac_link") 2>conftest.er1 14534 ac_status=$? 14535 grep -v '^ *+' conftest.er1 >conftest.err 14536 rm -f conftest.er1 14537 cat conftest.err >&5 14538 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14539 (exit $ac_status); } && { 14540 test -z "$ac_f77_werror_flag" || 14541 test ! -s conftest.err 14542 } && test -s conftest$ac_exeext && 14543 $as_test_x conftest$ac_exeext; then 14544 14545aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14546}'` 14547# Check for a 64-bit object if we didn't find anything. 14548if 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; } 14549}'`; fi 14550else 14551 echo "$as_me: failed program was:" >&5 14552sed 's/^/| /' conftest.$ac_ext >&5 14553 14554 14555fi 14556 14557rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14558 conftest$ac_exeext conftest.$ac_ext 14559if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14560 14561 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14562 # Warning - without using the other run time loading flags, 14563 # -berok will link without error, but may produce a broken library. 14564 no_undefined_flag_F77=' ${wl}-bernotok' 14565 allow_undefined_flag_F77=' ${wl}-berok' 14566 # Exported symbols can be pulled into shared objects from archives 14567 whole_archive_flag_spec_F77='$convenience' 14568 archive_cmds_need_lc_F77=yes 14569 # This is similar to how AIX traditionally builds its shared libraries. 14570 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' 14571 fi 14572 fi 14573 ;; 14574 14575 amigaos*) 14576 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)' 14577 hardcode_libdir_flag_spec_F77='-L$libdir' 14578 hardcode_minus_L_F77=yes 14579 # see comment about different semantics on the GNU ld section 14580 ld_shlibs_F77=no 14581 ;; 14582 14583 bsdi[45]*) 14584 export_dynamic_flag_spec_F77=-rdynamic 14585 ;; 14586 14587 cygwin* | mingw* | pw32*) 14588 # When not using gcc, we currently assume that we are using 14589 # Microsoft Visual C++. 14590 # hardcode_libdir_flag_spec is actually meaningless, as there is 14591 # no search path for DLLs. 14592 hardcode_libdir_flag_spec_F77=' ' 14593 allow_undefined_flag_F77=unsupported 14594 # Tell ltmain to make .lib files, not .a files. 14595 libext=lib 14596 # Tell ltmain to make .dll files, not .so files. 14597 shrext_cmds=".dll" 14598 # FIXME: Setting linknames here is a bad hack. 14599 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 14600 # The linker will automatically build a .lib file if we build a DLL. 14601 old_archive_From_new_cmds_F77='true' 14602 # FIXME: Should let the user specify the lib program. 14603 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 14604 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 14605 enable_shared_with_static_runtimes_F77=yes 14606 ;; 14607 14608 darwin* | rhapsody*) 14609 case $host_os in 14610 rhapsody* | darwin1.[012]) 14611 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 14612 ;; 14613 *) # Darwin 1.3 on 14614 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 14615 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14616 else 14617 case ${MACOSX_DEPLOYMENT_TARGET} in 14618 10.[012]) 14619 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14620 ;; 14621 10.*) 14622 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 14623 ;; 14624 esac 14625 fi 14626 ;; 14627 esac 14628 archive_cmds_need_lc_F77=no 14629 hardcode_direct_F77=no 14630 hardcode_automatic_F77=yes 14631 hardcode_shlibpath_var_F77=unsupported 14632 whole_archive_flag_spec_F77='' 14633 link_all_deplibs_F77=yes 14634 if test "$GCC" = yes ; then 14635 output_verbose_link_cmd='echo' 14636 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 14637 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14638 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14639 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}' 14640 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}' 14641 else 14642 case $cc_basename in 14643 xlc*) 14644 output_verbose_link_cmd='echo' 14645 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 14646 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14647 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14648 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}' 14649 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}' 14650 ;; 14651 *) 14652 ld_shlibs_F77=no 14653 ;; 14654 esac 14655 fi 14656 ;; 14657 14658 dgux*) 14659 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14660 hardcode_libdir_flag_spec_F77='-L$libdir' 14661 hardcode_shlibpath_var_F77=no 14662 ;; 14663 14664 freebsd1*) 14665 ld_shlibs_F77=no 14666 ;; 14667 14668 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14669 # support. Future versions do this automatically, but an explicit c++rt0.o 14670 # does not break anything, and helps significantly (at the cost of a little 14671 # extra space). 14672 freebsd2.2*) 14673 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14674 hardcode_libdir_flag_spec_F77='-R$libdir' 14675 hardcode_direct_F77=yes 14676 hardcode_shlibpath_var_F77=no 14677 ;; 14678 14679 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14680 freebsd2*) 14681 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14682 hardcode_direct_F77=yes 14683 hardcode_minus_L_F77=yes 14684 hardcode_shlibpath_var_F77=no 14685 ;; 14686 14687 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14688 freebsd* | kfreebsd*-gnu | dragonfly*) 14689 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 14690 hardcode_libdir_flag_spec_F77='-R$libdir' 14691 hardcode_direct_F77=yes 14692 hardcode_shlibpath_var_F77=no 14693 ;; 14694 14695 hpux9*) 14696 if test "$GCC" = yes; then 14697 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' 14698 else 14699 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' 14700 fi 14701 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14702 hardcode_libdir_separator_F77=: 14703 hardcode_direct_F77=yes 14704 14705 # hardcode_minus_L: Not really in the search PATH, 14706 # but as the default location of the library. 14707 hardcode_minus_L_F77=yes 14708 export_dynamic_flag_spec_F77='${wl}-E' 14709 ;; 14710 14711 hpux10*) 14712 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14713 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14714 else 14715 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14716 fi 14717 if test "$with_gnu_ld" = no; then 14718 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14719 hardcode_libdir_separator_F77=: 14720 14721 hardcode_direct_F77=yes 14722 export_dynamic_flag_spec_F77='${wl}-E' 14723 14724 # hardcode_minus_L: Not really in the search PATH, 14725 # but as the default location of the library. 14726 hardcode_minus_L_F77=yes 14727 fi 14728 ;; 14729 14730 hpux11*) 14731 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14732 case $host_cpu in 14733 hppa*64*) 14734 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14735 ;; 14736 ia64*) 14737 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14738 ;; 14739 *) 14740 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14741 ;; 14742 esac 14743 else 14744 case $host_cpu in 14745 hppa*64*) 14746 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14747 ;; 14748 ia64*) 14749 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14750 ;; 14751 *) 14752 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14753 ;; 14754 esac 14755 fi 14756 if test "$with_gnu_ld" = no; then 14757 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14758 hardcode_libdir_separator_F77=: 14759 14760 case $host_cpu in 14761 hppa*64*|ia64*) 14762 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 14763 hardcode_direct_F77=no 14764 hardcode_shlibpath_var_F77=no 14765 ;; 14766 *) 14767 hardcode_direct_F77=yes 14768 export_dynamic_flag_spec_F77='${wl}-E' 14769 14770 # hardcode_minus_L: Not really in the search PATH, 14771 # but as the default location of the library. 14772 hardcode_minus_L_F77=yes 14773 ;; 14774 esac 14775 fi 14776 ;; 14777 14778 irix5* | irix6* | nonstopux*) 14779 if test "$GCC" = yes; then 14780 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' 14781 else 14782 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' 14783 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 14784 fi 14785 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14786 hardcode_libdir_separator_F77=: 14787 link_all_deplibs_F77=yes 14788 ;; 14789 14790 netbsd*) 14791 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14792 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14793 else 14794 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14795 fi 14796 hardcode_libdir_flag_spec_F77='-R$libdir' 14797 hardcode_direct_F77=yes 14798 hardcode_shlibpath_var_F77=no 14799 ;; 14800 14801 newsos6) 14802 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14803 hardcode_direct_F77=yes 14804 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14805 hardcode_libdir_separator_F77=: 14806 hardcode_shlibpath_var_F77=no 14807 ;; 14808 14809 openbsd*) 14810 hardcode_direct_F77=yes 14811 hardcode_shlibpath_var_F77=no 14812 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14813 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14814 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 14815 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14816 export_dynamic_flag_spec_F77='${wl}-E' 14817 else 14818 case $host_os in 14819 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 14820 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14821 hardcode_libdir_flag_spec_F77='-R$libdir' 14822 ;; 14823 *) 14824 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14825 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14826 ;; 14827 esac 14828 fi 14829 ;; 14830 14831 os2*) 14832 hardcode_libdir_flag_spec_F77='-L$libdir' 14833 hardcode_minus_L_F77=yes 14834 allow_undefined_flag_F77=unsupported 14835 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' 14836 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 14837 ;; 14838 14839 osf3*) 14840 if test "$GCC" = yes; then 14841 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14842 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' 14843 else 14844 allow_undefined_flag_F77=' -expect_unresolved \*' 14845 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' 14846 fi 14847 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14848 hardcode_libdir_separator_F77=: 14849 ;; 14850 14851 osf4* | osf5*) # as osf3* with the addition of -msym flag 14852 if test "$GCC" = yes; then 14853 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14854 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' 14855 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14856 else 14857 allow_undefined_flag_F77=' -expect_unresolved \*' 14858 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' 14859 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~ 14860 $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' 14861 14862 # Both c and cxx compiler support -rpath directly 14863 hardcode_libdir_flag_spec_F77='-rpath $libdir' 14864 fi 14865 hardcode_libdir_separator_F77=: 14866 ;; 14867 14868 solaris*) 14869 no_undefined_flag_F77=' -z text' 14870 if test "$GCC" = yes; then 14871 wlarc='${wl}' 14872 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14873 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14874 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 14875 else 14876 wlarc='' 14877 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14878 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14879 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14880 fi 14881 hardcode_libdir_flag_spec_F77='-R$libdir' 14882 hardcode_shlibpath_var_F77=no 14883 case $host_os in 14884 solaris2.[0-5] | solaris2.[0-5].*) ;; 14885 *) 14886 # The compiler driver will combine linker options so we 14887 # cannot just pass the convience library names through 14888 # without $wl, iff we do not link with $LD. 14889 # Luckily, gcc supports the same syntax we need for Sun Studio. 14890 # Supported since Solaris 2.6 (maybe 2.5.1?) 14891 case $wlarc in 14892 '') 14893 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 14894 *) 14895 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' ;; 14896 esac ;; 14897 esac 14898 link_all_deplibs_F77=yes 14899 ;; 14900 14901 sunos4*) 14902 if test "x$host_vendor" = xsequent; then 14903 # Use $CC to link under sequent, because it throws in some extra .o 14904 # files that make .init and .fini sections work. 14905 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 14906 else 14907 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 14908 fi 14909 hardcode_libdir_flag_spec_F77='-L$libdir' 14910 hardcode_direct_F77=yes 14911 hardcode_minus_L_F77=yes 14912 hardcode_shlibpath_var_F77=no 14913 ;; 14914 14915 sysv4) 14916 case $host_vendor in 14917 sni) 14918 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14919 hardcode_direct_F77=yes # is this really true??? 14920 ;; 14921 siemens) 14922 ## LD is ld it makes a PLAMLIB 14923 ## CC just makes a GrossModule. 14924 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14925 reload_cmds_F77='$CC -r -o $output$reload_objs' 14926 hardcode_direct_F77=no 14927 ;; 14928 motorola) 14929 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14930 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 14931 ;; 14932 esac 14933 runpath_var='LD_RUN_PATH' 14934 hardcode_shlibpath_var_F77=no 14935 ;; 14936 14937 sysv4.3*) 14938 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14939 hardcode_shlibpath_var_F77=no 14940 export_dynamic_flag_spec_F77='-Bexport' 14941 ;; 14942 14943 sysv4*MP*) 14944 if test -d /usr/nec; then 14945 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14946 hardcode_shlibpath_var_F77=no 14947 runpath_var=LD_RUN_PATH 14948 hardcode_runpath_var=yes 14949 ld_shlibs_F77=yes 14950 fi 14951 ;; 14952 14953 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 14954 no_undefined_flag_F77='${wl}-z,text' 14955 archive_cmds_need_lc_F77=no 14956 hardcode_shlibpath_var_F77=no 14957 runpath_var='LD_RUN_PATH' 14958 14959 if test "$GCC" = yes; then 14960 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14961 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14962 else 14963 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14964 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14965 fi 14966 ;; 14967 14968 sysv5* | sco3.2v5* | sco5v6*) 14969 # Note: We can NOT use -z defs as we might desire, because we do not 14970 # link with -lc, and that would cause any symbols used from libc to 14971 # always be unresolved, which means just about no library would 14972 # ever link correctly. If we're not using GNU ld we use -z text 14973 # though, which does catch some bad symbols but isn't as heavy-handed 14974 # as -z defs. 14975 no_undefined_flag_F77='${wl}-z,text' 14976 allow_undefined_flag_F77='${wl}-z,nodefs' 14977 archive_cmds_need_lc_F77=no 14978 hardcode_shlibpath_var_F77=no 14979 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 14980 hardcode_libdir_separator_F77=':' 14981 link_all_deplibs_F77=yes 14982 export_dynamic_flag_spec_F77='${wl}-Bexport' 14983 runpath_var='LD_RUN_PATH' 14984 14985 if test "$GCC" = yes; then 14986 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14987 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14988 else 14989 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14990 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14991 fi 14992 ;; 14993 14994 uts4*) 14995 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14996 hardcode_libdir_flag_spec_F77='-L$libdir' 14997 hardcode_shlibpath_var_F77=no 14998 ;; 14999 15000 *) 15001 ld_shlibs_F77=no 15002 ;; 15003 esac 15004 fi 15005 15006{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 15007echo "${ECHO_T}$ld_shlibs_F77" >&6; } 15008test "$ld_shlibs_F77" = no && can_build_shared=no 15009 15010# 15011# Do we need to explicitly link libc? 15012# 15013case "x$archive_cmds_need_lc_F77" in 15014x|xyes) 15015 # Assume -lc should be added 15016 archive_cmds_need_lc_F77=yes 15017 15018 if test "$enable_shared" = yes && test "$GCC" = yes; then 15019 case $archive_cmds_F77 in 15020 *'~'*) 15021 # FIXME: we may have to deal with multi-command sequences. 15022 ;; 15023 '$CC '*) 15024 # Test whether the compiler implicitly links with -lc since on some 15025 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15026 # to ld, don't add -lc before -lgcc. 15027 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15028echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 15029 $rm conftest* 15030 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15031 15032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15033 (eval $ac_compile) 2>&5 15034 ac_status=$? 15035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15036 (exit $ac_status); } 2>conftest.err; then 15037 soname=conftest 15038 lib=conftest 15039 libobjs=conftest.$ac_objext 15040 deplibs= 15041 wl=$lt_prog_compiler_wl_F77 15042 pic_flag=$lt_prog_compiler_pic_F77 15043 compiler_flags=-v 15044 linker_flags=-v 15045 verstring= 15046 output_objdir=. 15047 libname=conftest 15048 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15049 allow_undefined_flag_F77= 15050 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15051 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15052 ac_status=$? 15053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15054 (exit $ac_status); } 15055 then 15056 archive_cmds_need_lc_F77=no 15057 else 15058 archive_cmds_need_lc_F77=yes 15059 fi 15060 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15061 else 15062 cat conftest.err 1>&5 15063 fi 15064 $rm conftest* 15065 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15066echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } 15067 ;; 15068 esac 15069 fi 15070 ;; 15071esac 15072 15073{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15074echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 15075library_names_spec= 15076libname_spec='lib$name' 15077soname_spec= 15078shrext_cmds=".so" 15079postinstall_cmds= 15080postuninstall_cmds= 15081finish_cmds= 15082finish_eval= 15083shlibpath_var= 15084shlibpath_overrides_runpath=unknown 15085version_type=none 15086dynamic_linker="$host_os ld.so" 15087sys_lib_dlsearch_path_spec="/lib /usr/lib" 15088if test "$GCC" = yes; then 15089 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15090 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 15091 # if the path contains ";" then we assume it to be the separator 15092 # otherwise default to the standard path separator (i.e. ":") - it is 15093 # assumed that no part of a normal pathname contains ";" but that should 15094 # okay in the real world where ";" in dirpaths is itself problematic. 15095 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15096 else 15097 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15098 fi 15099else 15100 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15101fi 15102need_lib_prefix=unknown 15103hardcode_into_libs=no 15104 15105# when you set need_version to no, make sure it does not cause -set_version 15106# flags to be left without arguments 15107need_version=unknown 15108 15109case $host_os in 15110aix3*) 15111 version_type=linux 15112 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15113 shlibpath_var=LIBPATH 15114 15115 # AIX 3 has no versioning support, so we append a major version to the name. 15116 soname_spec='${libname}${release}${shared_ext}$major' 15117 ;; 15118 15119aix4* | aix5*) 15120 version_type=linux 15121 need_lib_prefix=no 15122 need_version=no 15123 hardcode_into_libs=yes 15124 if test "$host_cpu" = ia64; then 15125 # AIX 5 supports IA64 15126 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15127 shlibpath_var=LD_LIBRARY_PATH 15128 else 15129 # With GCC up to 2.95.x, collect2 would create an import file 15130 # for dependence libraries. The import file would start with 15131 # the line `#! .'. This would cause the generated library to 15132 # depend on `.', always an invalid library. This was fixed in 15133 # development snapshots of GCC prior to 3.0. 15134 case $host_os in 15135 aix4 | aix4.[01] | aix4.[01].*) 15136 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15137 echo ' yes ' 15138 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15139 : 15140 else 15141 can_build_shared=no 15142 fi 15143 ;; 15144 esac 15145 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15146 # soname into executable. Probably we can add versioning support to 15147 # collect2, so additional links can be useful in future. 15148 if test "$aix_use_runtimelinking" = yes; then 15149 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15150 # instead of lib<name>.a to let people know that these are not 15151 # typical AIX shared libraries. 15152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15153 else 15154 # We preserve .a as extension for shared libraries through AIX4.2 15155 # and later when we are not doing run time linking. 15156 library_names_spec='${libname}${release}.a $libname.a' 15157 soname_spec='${libname}${release}${shared_ext}$major' 15158 fi 15159 shlibpath_var=LIBPATH 15160 fi 15161 ;; 15162 15163amigaos*) 15164 library_names_spec='$libname.ixlibrary $libname.a' 15165 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15166 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' 15167 ;; 15168 15169beos*) 15170 library_names_spec='${libname}${shared_ext}' 15171 dynamic_linker="$host_os ld.so" 15172 shlibpath_var=LIBRARY_PATH 15173 ;; 15174 15175bsdi[45]*) 15176 version_type=linux 15177 need_version=no 15178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15179 soname_spec='${libname}${release}${shared_ext}$major' 15180 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15181 shlibpath_var=LD_LIBRARY_PATH 15182 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15183 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15184 # the default ld.so.conf also contains /usr/contrib/lib and 15185 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15186 # libtool to hard-code these into programs 15187 ;; 15188 15189cygwin* | mingw* | pw32*) 15190 version_type=windows 15191 shrext_cmds=".dll" 15192 need_version=no 15193 need_lib_prefix=no 15194 15195 case $GCC,$host_os in 15196 yes,cygwin* | yes,mingw* | yes,pw32*) 15197 library_names_spec='$libname.dll.a' 15198 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15199 postinstall_cmds='base_file=`basename \${file}`~ 15200 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15201 dldir=$destdir/`dirname \$dlpath`~ 15202 test -d \$dldir || mkdir -p \$dldir~ 15203 $install_prog $dir/$dlname \$dldir/$dlname~ 15204 chmod a+x \$dldir/$dlname' 15205 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15206 dlpath=$dir/\$dldll~ 15207 $rm \$dlpath' 15208 shlibpath_overrides_runpath=yes 15209 15210 case $host_os in 15211 cygwin*) 15212 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15213 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15214 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15215 ;; 15216 mingw*) 15217 # MinGW DLLs use traditional 'lib' prefix 15218 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15219 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15220 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15221 # It is most probably a Windows format PATH printed by 15222 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15223 # path with ; separators, and with drive letters. We can handle the 15224 # drive letters (cygwin fileutils understands them), so leave them, 15225 # especially as we might pass files found there to a mingw objdump, 15226 # which wouldn't understand a cygwinified path. Ahh. 15227 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15228 else 15229 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15230 fi 15231 ;; 15232 pw32*) 15233 # pw32 DLLs use 'pw' prefix rather than 'lib' 15234 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15235 ;; 15236 esac 15237 ;; 15238 15239 *) 15240 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15241 ;; 15242 esac 15243 dynamic_linker='Win32 ld.exe' 15244 # FIXME: first we should search . and the directory the executable is in 15245 shlibpath_var=PATH 15246 ;; 15247 15248darwin* | rhapsody*) 15249 dynamic_linker="$host_os dyld" 15250 version_type=darwin 15251 need_lib_prefix=no 15252 need_version=no 15253 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15254 soname_spec='${libname}${release}${major}$shared_ext' 15255 shlibpath_overrides_runpath=yes 15256 shlibpath_var=DYLD_LIBRARY_PATH 15257 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15258 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 15259 if test "$GCC" = yes; then 15260 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"` 15261 else 15262 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 15263 fi 15264 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15265 ;; 15266 15267dgux*) 15268 version_type=linux 15269 need_lib_prefix=no 15270 need_version=no 15271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15272 soname_spec='${libname}${release}${shared_ext}$major' 15273 shlibpath_var=LD_LIBRARY_PATH 15274 ;; 15275 15276freebsd1*) 15277 dynamic_linker=no 15278 ;; 15279 15280kfreebsd*-gnu) 15281 version_type=linux 15282 need_lib_prefix=no 15283 need_version=no 15284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15285 soname_spec='${libname}${release}${shared_ext}$major' 15286 shlibpath_var=LD_LIBRARY_PATH 15287 shlibpath_overrides_runpath=no 15288 hardcode_into_libs=yes 15289 dynamic_linker='GNU ld.so' 15290 ;; 15291 15292freebsd* | dragonfly*) 15293 # DragonFly does not have aout. When/if they implement a new 15294 # versioning mechanism, adjust this. 15295 if test -x /usr/bin/objformat; then 15296 objformat=`/usr/bin/objformat` 15297 else 15298 case $host_os in 15299 freebsd[123]*) objformat=aout ;; 15300 *) objformat=elf ;; 15301 esac 15302 fi 15303 version_type=freebsd-$objformat 15304 case $version_type in 15305 freebsd-elf*) 15306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15307 need_version=no 15308 need_lib_prefix=no 15309 ;; 15310 freebsd-*) 15311 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15312 need_version=yes 15313 ;; 15314 esac 15315 shlibpath_var=LD_LIBRARY_PATH 15316 case $host_os in 15317 freebsd2*) 15318 shlibpath_overrides_runpath=yes 15319 ;; 15320 freebsd3.[01]* | freebsdelf3.[01]*) 15321 shlibpath_overrides_runpath=yes 15322 hardcode_into_libs=yes 15323 ;; 15324 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15325 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15326 shlibpath_overrides_runpath=no 15327 hardcode_into_libs=yes 15328 ;; 15329 freebsd*) # from 4.6 on 15330 shlibpath_overrides_runpath=yes 15331 hardcode_into_libs=yes 15332 ;; 15333 esac 15334 ;; 15335 15336gnu*) 15337 version_type=linux 15338 need_lib_prefix=no 15339 need_version=no 15340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15341 soname_spec='${libname}${release}${shared_ext}$major' 15342 shlibpath_var=LD_LIBRARY_PATH 15343 hardcode_into_libs=yes 15344 ;; 15345 15346hpux9* | hpux10* | hpux11*) 15347 # Give a soname corresponding to the major version so that dld.sl refuses to 15348 # link against other versions. 15349 version_type=sunos 15350 need_lib_prefix=no 15351 need_version=no 15352 case $host_cpu in 15353 ia64*) 15354 shrext_cmds='.so' 15355 hardcode_into_libs=yes 15356 dynamic_linker="$host_os dld.so" 15357 shlibpath_var=LD_LIBRARY_PATH 15358 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15360 soname_spec='${libname}${release}${shared_ext}$major' 15361 if test "X$HPUX_IA64_MODE" = X32; then 15362 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15363 else 15364 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15365 fi 15366 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15367 ;; 15368 hppa*64*) 15369 shrext_cmds='.sl' 15370 hardcode_into_libs=yes 15371 dynamic_linker="$host_os dld.sl" 15372 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15373 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15375 soname_spec='${libname}${release}${shared_ext}$major' 15376 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15377 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15378 ;; 15379 *) 15380 shrext_cmds='.sl' 15381 dynamic_linker="$host_os dld.sl" 15382 shlibpath_var=SHLIB_PATH 15383 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15385 soname_spec='${libname}${release}${shared_ext}$major' 15386 ;; 15387 esac 15388 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15389 postinstall_cmds='chmod 555 $lib' 15390 ;; 15391 15392interix3*) 15393 version_type=linux 15394 need_lib_prefix=no 15395 need_version=no 15396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15397 soname_spec='${libname}${release}${shared_ext}$major' 15398 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15399 shlibpath_var=LD_LIBRARY_PATH 15400 shlibpath_overrides_runpath=no 15401 hardcode_into_libs=yes 15402 ;; 15403 15404irix5* | irix6* | nonstopux*) 15405 case $host_os in 15406 nonstopux*) version_type=nonstopux ;; 15407 *) 15408 if test "$lt_cv_prog_gnu_ld" = yes; then 15409 version_type=linux 15410 else 15411 version_type=irix 15412 fi ;; 15413 esac 15414 need_lib_prefix=no 15415 need_version=no 15416 soname_spec='${libname}${release}${shared_ext}$major' 15417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15418 case $host_os in 15419 irix5* | nonstopux*) 15420 libsuff= shlibsuff= 15421 ;; 15422 *) 15423 case $LD in # libtool.m4 will add one of these switches to LD 15424 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15425 libsuff= shlibsuff= libmagic=32-bit;; 15426 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15427 libsuff=32 shlibsuff=N32 libmagic=N32;; 15428 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15429 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15430 *) libsuff= shlibsuff= libmagic=never-match;; 15431 esac 15432 ;; 15433 esac 15434 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15435 shlibpath_overrides_runpath=no 15436 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15437 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15438 hardcode_into_libs=yes 15439 ;; 15440 15441# No shared lib support for Linux oldld, aout, or coff. 15442linux*oldld* | linux*aout* | linux*coff*) 15443 dynamic_linker=no 15444 ;; 15445 15446# This must be Linux ELF. 15447linux*) 15448 version_type=linux 15449 need_lib_prefix=no 15450 need_version=no 15451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15452 soname_spec='${libname}${release}${shared_ext}$major' 15453 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15454 shlibpath_var=LD_LIBRARY_PATH 15455 shlibpath_overrides_runpath=no 15456 # This implies no fast_install, which is unacceptable. 15457 # Some rework will be needed to allow for fast_install 15458 # before this can be enabled. 15459 hardcode_into_libs=yes 15460 15461 # Append ld.so.conf contents to the search path 15462 if test -f /etc/ld.so.conf; then 15463 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 15464 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15465 fi 15466 15467 # We used to test for /lib/ld.so.1 and disable shared libraries on 15468 # powerpc, because MkLinux only supported shared libraries with the 15469 # GNU dynamic linker. Since this was broken with cross compilers, 15470 # most powerpc-linux boxes support dynamic linking these days and 15471 # people can always --disable-shared, the test was removed, and we 15472 # assume the GNU/Linux dynamic linker is in use. 15473 dynamic_linker='GNU/Linux ld.so' 15474 ;; 15475 15476knetbsd*-gnu) 15477 version_type=linux 15478 need_lib_prefix=no 15479 need_version=no 15480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15481 soname_spec='${libname}${release}${shared_ext}$major' 15482 shlibpath_var=LD_LIBRARY_PATH 15483 shlibpath_overrides_runpath=no 15484 hardcode_into_libs=yes 15485 dynamic_linker='GNU ld.so' 15486 ;; 15487 15488netbsd*) 15489 version_type=sunos 15490 need_lib_prefix=no 15491 need_version=no 15492 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15494 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15495 dynamic_linker='NetBSD (a.out) ld.so' 15496 else 15497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15498 soname_spec='${libname}${release}${shared_ext}$major' 15499 dynamic_linker='NetBSD ld.elf_so' 15500 fi 15501 shlibpath_var=LD_LIBRARY_PATH 15502 shlibpath_overrides_runpath=yes 15503 hardcode_into_libs=yes 15504 ;; 15505 15506newsos6) 15507 version_type=linux 15508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15509 shlibpath_var=LD_LIBRARY_PATH 15510 shlibpath_overrides_runpath=yes 15511 ;; 15512 15513nto-qnx*) 15514 version_type=linux 15515 need_lib_prefix=no 15516 need_version=no 15517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15518 soname_spec='${libname}${release}${shared_ext}$major' 15519 shlibpath_var=LD_LIBRARY_PATH 15520 shlibpath_overrides_runpath=yes 15521 ;; 15522 15523openbsd*) 15524 version_type=sunos 15525 sys_lib_dlsearch_path_spec="/usr/lib" 15526 need_lib_prefix=no 15527 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15528 case $host_os in 15529 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15530 *) need_version=no ;; 15531 esac 15532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15533 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15534 shlibpath_var=LD_LIBRARY_PATH 15535 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15536 case $host_os in 15537 openbsd2.[89] | openbsd2.[89].*) 15538 shlibpath_overrides_runpath=no 15539 ;; 15540 *) 15541 shlibpath_overrides_runpath=yes 15542 ;; 15543 esac 15544 else 15545 shlibpath_overrides_runpath=yes 15546 fi 15547 ;; 15548 15549os2*) 15550 libname_spec='$name' 15551 shrext_cmds=".dll" 15552 need_lib_prefix=no 15553 library_names_spec='$libname${shared_ext} $libname.a' 15554 dynamic_linker='OS/2 ld.exe' 15555 shlibpath_var=LIBPATH 15556 ;; 15557 15558osf3* | osf4* | osf5*) 15559 version_type=osf 15560 need_lib_prefix=no 15561 need_version=no 15562 soname_spec='${libname}${release}${shared_ext}$major' 15563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15564 shlibpath_var=LD_LIBRARY_PATH 15565 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15566 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15567 ;; 15568 15569solaris*) 15570 version_type=linux 15571 need_lib_prefix=no 15572 need_version=no 15573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15574 soname_spec='${libname}${release}${shared_ext}$major' 15575 shlibpath_var=LD_LIBRARY_PATH 15576 shlibpath_overrides_runpath=yes 15577 hardcode_into_libs=yes 15578 # ldd complains unless libraries are executable 15579 postinstall_cmds='chmod +x $lib' 15580 ;; 15581 15582sunos4*) 15583 version_type=sunos 15584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15585 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15586 shlibpath_var=LD_LIBRARY_PATH 15587 shlibpath_overrides_runpath=yes 15588 if test "$with_gnu_ld" = yes; then 15589 need_lib_prefix=no 15590 fi 15591 need_version=yes 15592 ;; 15593 15594sysv4 | sysv4.3*) 15595 version_type=linux 15596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15597 soname_spec='${libname}${release}${shared_ext}$major' 15598 shlibpath_var=LD_LIBRARY_PATH 15599 case $host_vendor in 15600 sni) 15601 shlibpath_overrides_runpath=no 15602 need_lib_prefix=no 15603 export_dynamic_flag_spec='${wl}-Blargedynsym' 15604 runpath_var=LD_RUN_PATH 15605 ;; 15606 siemens) 15607 need_lib_prefix=no 15608 ;; 15609 motorola) 15610 need_lib_prefix=no 15611 need_version=no 15612 shlibpath_overrides_runpath=no 15613 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15614 ;; 15615 esac 15616 ;; 15617 15618sysv4*MP*) 15619 if test -d /usr/nec ;then 15620 version_type=linux 15621 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15622 soname_spec='$libname${shared_ext}.$major' 15623 shlibpath_var=LD_LIBRARY_PATH 15624 fi 15625 ;; 15626 15627sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15628 version_type=freebsd-elf 15629 need_lib_prefix=no 15630 need_version=no 15631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15632 soname_spec='${libname}${release}${shared_ext}$major' 15633 shlibpath_var=LD_LIBRARY_PATH 15634 hardcode_into_libs=yes 15635 if test "$with_gnu_ld" = yes; then 15636 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15637 shlibpath_overrides_runpath=no 15638 else 15639 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15640 shlibpath_overrides_runpath=yes 15641 case $host_os in 15642 sco3.2v5*) 15643 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15644 ;; 15645 esac 15646 fi 15647 sys_lib_dlsearch_path_spec='/usr/lib' 15648 ;; 15649 15650uts4*) 15651 version_type=linux 15652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15653 soname_spec='${libname}${release}${shared_ext}$major' 15654 shlibpath_var=LD_LIBRARY_PATH 15655 ;; 15656 15657*) 15658 dynamic_linker=no 15659 ;; 15660esac 15661{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 15662echo "${ECHO_T}$dynamic_linker" >&6; } 15663test "$dynamic_linker" = no && can_build_shared=no 15664 15665variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15666if test "$GCC" = yes; then 15667 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15668fi 15669 15670{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 15671echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 15672hardcode_action_F77= 15673if test -n "$hardcode_libdir_flag_spec_F77" || \ 15674 test -n "$runpath_var_F77" || \ 15675 test "X$hardcode_automatic_F77" = "Xyes" ; then 15676 15677 # We can hardcode non-existant directories. 15678 if test "$hardcode_direct_F77" != no && 15679 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15680 # have to relink, otherwise we might link with an installed library 15681 # when we should be linking with a yet-to-be-installed one 15682 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 15683 test "$hardcode_minus_L_F77" != no; then 15684 # Linking always hardcodes the temporary library directory. 15685 hardcode_action_F77=relink 15686 else 15687 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15688 hardcode_action_F77=immediate 15689 fi 15690else 15691 # We cannot hardcode anything, or else we can only hardcode existing 15692 # directories. 15693 hardcode_action_F77=unsupported 15694fi 15695{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 15696echo "${ECHO_T}$hardcode_action_F77" >&6; } 15697 15698if test "$hardcode_action_F77" = relink; then 15699 # Fast installation is not supported 15700 enable_fast_install=no 15701elif test "$shlibpath_overrides_runpath" = yes || 15702 test "$enable_shared" = no; then 15703 # Fast installation is not necessary 15704 enable_fast_install=needless 15705fi 15706 15707 15708# The else clause should only fire when bootstrapping the 15709# libtool distribution, otherwise you forgot to ship ltmain.sh 15710# with your package, and you will get complaints that there are 15711# no rules to generate ltmain.sh. 15712if test -f "$ltmain"; then 15713 # See if we are running on zsh, and set the options which allow our commands through 15714 # without removal of \ escapes. 15715 if test -n "${ZSH_VERSION+set}" ; then 15716 setopt NO_GLOB_SUBST 15717 fi 15718 # Now quote all the things that may contain metacharacters while being 15719 # careful not to overquote the AC_SUBSTed values. We take copies of the 15720 # variables and quote the copies for generation of the libtool script. 15721 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 15722 SED SHELL STRIP \ 15723 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 15724 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 15725 deplibs_check_method reload_flag reload_cmds need_locks \ 15726 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 15727 lt_cv_sys_global_symbol_to_c_name_address \ 15728 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 15729 old_postinstall_cmds old_postuninstall_cmds \ 15730 compiler_F77 \ 15731 CC_F77 \ 15732 LD_F77 \ 15733 lt_prog_compiler_wl_F77 \ 15734 lt_prog_compiler_pic_F77 \ 15735 lt_prog_compiler_static_F77 \ 15736 lt_prog_compiler_no_builtin_flag_F77 \ 15737 export_dynamic_flag_spec_F77 \ 15738 thread_safe_flag_spec_F77 \ 15739 whole_archive_flag_spec_F77 \ 15740 enable_shared_with_static_runtimes_F77 \ 15741 old_archive_cmds_F77 \ 15742 old_archive_from_new_cmds_F77 \ 15743 predep_objects_F77 \ 15744 postdep_objects_F77 \ 15745 predeps_F77 \ 15746 postdeps_F77 \ 15747 compiler_lib_search_path_F77 \ 15748 archive_cmds_F77 \ 15749 archive_expsym_cmds_F77 \ 15750 postinstall_cmds_F77 \ 15751 postuninstall_cmds_F77 \ 15752 old_archive_from_expsyms_cmds_F77 \ 15753 allow_undefined_flag_F77 \ 15754 no_undefined_flag_F77 \ 15755 export_symbols_cmds_F77 \ 15756 hardcode_libdir_flag_spec_F77 \ 15757 hardcode_libdir_flag_spec_ld_F77 \ 15758 hardcode_libdir_separator_F77 \ 15759 hardcode_automatic_F77 \ 15760 module_cmds_F77 \ 15761 module_expsym_cmds_F77 \ 15762 lt_cv_prog_compiler_c_o_F77 \ 15763 exclude_expsyms_F77 \ 15764 include_expsyms_F77; do 15765 15766 case $var in 15767 old_archive_cmds_F77 | \ 15768 old_archive_from_new_cmds_F77 | \ 15769 archive_cmds_F77 | \ 15770 archive_expsym_cmds_F77 | \ 15771 module_cmds_F77 | \ 15772 module_expsym_cmds_F77 | \ 15773 old_archive_from_expsyms_cmds_F77 | \ 15774 export_symbols_cmds_F77 | \ 15775 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 15776 postinstall_cmds | postuninstall_cmds | \ 15777 old_postinstall_cmds | old_postuninstall_cmds | \ 15778 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 15779 # Double-quote double-evaled strings. 15780 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 15781 ;; 15782 *) 15783 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 15784 ;; 15785 esac 15786 done 15787 15788 case $lt_echo in 15789 *'\$0 --fallback-echo"') 15790 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 15791 ;; 15792 esac 15793 15794cfgfile="$ofile" 15795 15796 cat <<__EOF__ >> "$cfgfile" 15797# ### BEGIN LIBTOOL TAG CONFIG: $tagname 15798 15799# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15800 15801# Shell to use when invoking shell scripts. 15802SHELL=$lt_SHELL 15803 15804# Whether or not to build shared libraries. 15805build_libtool_libs=$enable_shared 15806 15807# Whether or not to build static libraries. 15808build_old_libs=$enable_static 15809 15810# Whether or not to add -lc for building shared libraries. 15811build_libtool_need_lc=$archive_cmds_need_lc_F77 15812 15813# Whether or not to disallow shared libs when runtime libs are static 15814allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 15815 15816# Whether or not to optimize for fast installation. 15817fast_install=$enable_fast_install 15818 15819# The host system. 15820host_alias=$host_alias 15821host=$host 15822host_os=$host_os 15823 15824# The build system. 15825build_alias=$build_alias 15826build=$build 15827build_os=$build_os 15828 15829# An echo program that does not interpret backslashes. 15830echo=$lt_echo 15831 15832# The archiver. 15833AR=$lt_AR 15834AR_FLAGS=$lt_AR_FLAGS 15835 15836# A C compiler. 15837LTCC=$lt_LTCC 15838 15839# LTCC compiler flags. 15840LTCFLAGS=$lt_LTCFLAGS 15841 15842# A language-specific compiler. 15843CC=$lt_compiler_F77 15844 15845# Is the compiler the GNU C compiler? 15846with_gcc=$GCC_F77 15847 15848# An ERE matcher. 15849EGREP=$lt_EGREP 15850 15851# The linker used to build libraries. 15852LD=$lt_LD_F77 15853 15854# Whether we need hard or soft links. 15855LN_S=$lt_LN_S 15856 15857# A BSD-compatible nm program. 15858NM=$lt_NM 15859 15860# A symbol stripping program 15861STRIP=$lt_STRIP 15862 15863# Used to examine libraries when file_magic_cmd begins "file" 15864MAGIC_CMD=$MAGIC_CMD 15865 15866# Used on cygwin: DLL creation program. 15867DLLTOOL="$DLLTOOL" 15868 15869# Used on cygwin: object dumper. 15870OBJDUMP="$OBJDUMP" 15871 15872# Used on cygwin: assembler. 15873AS="$AS" 15874 15875# The name of the directory that contains temporary libtool files. 15876objdir=$objdir 15877 15878# How to create reloadable object files. 15879reload_flag=$lt_reload_flag 15880reload_cmds=$lt_reload_cmds 15881 15882# How to pass a linker flag through the compiler. 15883wl=$lt_lt_prog_compiler_wl_F77 15884 15885# Object file suffix (normally "o"). 15886objext="$ac_objext" 15887 15888# Old archive suffix (normally "a"). 15889libext="$libext" 15890 15891# Shared library suffix (normally ".so"). 15892shrext_cmds='$shrext_cmds' 15893 15894# Executable file suffix (normally ""). 15895exeext="$exeext" 15896 15897# Additional compiler flags for building library objects. 15898pic_flag=$lt_lt_prog_compiler_pic_F77 15899pic_mode=$pic_mode 15900 15901# What is the maximum length of a command? 15902max_cmd_len=$lt_cv_sys_max_cmd_len 15903 15904# Does compiler simultaneously support -c and -o options? 15905compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 15906 15907# Must we lock files when doing compilation? 15908need_locks=$lt_need_locks 15909 15910# Do we need the lib prefix for modules? 15911need_lib_prefix=$need_lib_prefix 15912 15913# Do we need a version for libraries? 15914need_version=$need_version 15915 15916# Whether dlopen is supported. 15917dlopen_support=$enable_dlopen 15918 15919# Whether dlopen of programs is supported. 15920dlopen_self=$enable_dlopen_self 15921 15922# Whether dlopen of statically linked programs is supported. 15923dlopen_self_static=$enable_dlopen_self_static 15924 15925# Compiler flag to prevent dynamic linking. 15926link_static_flag=$lt_lt_prog_compiler_static_F77 15927 15928# Compiler flag to turn off builtin functions. 15929no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 15930 15931# Compiler flag to allow reflexive dlopens. 15932export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 15933 15934# Compiler flag to generate shared objects directly from archives. 15935whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 15936 15937# Compiler flag to generate thread-safe objects. 15938thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 15939 15940# Library versioning type. 15941version_type=$version_type 15942 15943# Format of library name prefix. 15944libname_spec=$lt_libname_spec 15945 15946# List of archive names. First name is the real one, the rest are links. 15947# The last name is the one that the linker finds with -lNAME. 15948library_names_spec=$lt_library_names_spec 15949 15950# The coded name of the library, if different from the real name. 15951soname_spec=$lt_soname_spec 15952 15953# Commands used to build and install an old-style archive. 15954RANLIB=$lt_RANLIB 15955old_archive_cmds=$lt_old_archive_cmds_F77 15956old_postinstall_cmds=$lt_old_postinstall_cmds 15957old_postuninstall_cmds=$lt_old_postuninstall_cmds 15958 15959# Create an old-style archive from a shared archive. 15960old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 15961 15962# Create a temporary old-style archive to link instead of a shared archive. 15963old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 15964 15965# Commands used to build and install a shared archive. 15966archive_cmds=$lt_archive_cmds_F77 15967archive_expsym_cmds=$lt_archive_expsym_cmds_F77 15968postinstall_cmds=$lt_postinstall_cmds 15969postuninstall_cmds=$lt_postuninstall_cmds 15970 15971# Commands used to build a loadable module (assumed same as above if empty) 15972module_cmds=$lt_module_cmds_F77 15973module_expsym_cmds=$lt_module_expsym_cmds_F77 15974 15975# Commands to strip libraries. 15976old_striplib=$lt_old_striplib 15977striplib=$lt_striplib 15978 15979# Dependencies to place before the objects being linked to create a 15980# shared library. 15981predep_objects=$lt_predep_objects_F77 15982 15983# Dependencies to place after the objects being linked to create a 15984# shared library. 15985postdep_objects=$lt_postdep_objects_F77 15986 15987# Dependencies to place before the objects being linked to create a 15988# shared library. 15989predeps=$lt_predeps_F77 15990 15991# Dependencies to place after the objects being linked to create a 15992# shared library. 15993postdeps=$lt_postdeps_F77 15994 15995# The library search path used internally by the compiler when linking 15996# a shared library. 15997compiler_lib_search_path=$lt_compiler_lib_search_path_F77 15998 15999# Method to check whether dependent libraries are shared objects. 16000deplibs_check_method=$lt_deplibs_check_method 16001 16002# Command to use when deplibs_check_method == file_magic. 16003file_magic_cmd=$lt_file_magic_cmd 16004 16005# Flag that allows shared libraries with undefined symbols to be built. 16006allow_undefined_flag=$lt_allow_undefined_flag_F77 16007 16008# Flag that forces no undefined symbols. 16009no_undefined_flag=$lt_no_undefined_flag_F77 16010 16011# Commands used to finish a libtool library installation in a directory. 16012finish_cmds=$lt_finish_cmds 16013 16014# Same as above, but a single script fragment to be evaled but not shown. 16015finish_eval=$lt_finish_eval 16016 16017# Take the output of nm and produce a listing of raw symbols and C names. 16018global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16019 16020# Transform the output of nm in a proper C declaration 16021global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16022 16023# Transform the output of nm in a C name address pair 16024global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16025 16026# This is the shared library runtime path variable. 16027runpath_var=$runpath_var 16028 16029# This is the shared library path variable. 16030shlibpath_var=$shlibpath_var 16031 16032# Is shlibpath searched before the hard-coded library search path? 16033shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16034 16035# How to hardcode a shared library path into an executable. 16036hardcode_action=$hardcode_action_F77 16037 16038# Whether we should hardcode library paths into libraries. 16039hardcode_into_libs=$hardcode_into_libs 16040 16041# Flag to hardcode \$libdir into a binary during linking. 16042# This must work even if \$libdir does not exist. 16043hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16044 16045# If ld is used when linking, flag to hardcode \$libdir into 16046# a binary during linking. This must work even if \$libdir does 16047# not exist. 16048hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16049 16050# Whether we need a single -rpath flag with a separated argument. 16051hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16052 16053# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16054# resulting binary. 16055hardcode_direct=$hardcode_direct_F77 16056 16057# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16058# resulting binary. 16059hardcode_minus_L=$hardcode_minus_L_F77 16060 16061# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16062# the resulting binary. 16063hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16064 16065# Set to yes if building a shared library automatically hardcodes DIR into the library 16066# and all subsequent libraries and executables linked against it. 16067hardcode_automatic=$hardcode_automatic_F77 16068 16069# Variables whose values should be saved in libtool wrapper scripts and 16070# restored at relink time. 16071variables_saved_for_relink="$variables_saved_for_relink" 16072 16073# Whether libtool must link a program against all its dependency libraries. 16074link_all_deplibs=$link_all_deplibs_F77 16075 16076# Compile-time system search path for libraries 16077sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16078 16079# Run-time system search path for libraries 16080sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16081 16082# Fix the shell variable \$srcfile for the compiler. 16083fix_srcfile_path="$fix_srcfile_path_F77" 16084 16085# Set to yes if exported symbols are required. 16086always_export_symbols=$always_export_symbols_F77 16087 16088# The commands to list exported symbols. 16089export_symbols_cmds=$lt_export_symbols_cmds_F77 16090 16091# The commands to extract the exported symbol list from a shared archive. 16092extract_expsyms_cmds=$lt_extract_expsyms_cmds 16093 16094# Symbols that should not be listed in the preloaded symbols. 16095exclude_expsyms=$lt_exclude_expsyms_F77 16096 16097# Symbols that must always be exported. 16098include_expsyms=$lt_include_expsyms_F77 16099 16100# ### END LIBTOOL TAG CONFIG: $tagname 16101 16102__EOF__ 16103 16104 16105else 16106 # If there is no Makefile yet, we rely on a make rule to execute 16107 # `config.status --recheck' to rerun these tests and create the 16108 # libtool script then. 16109 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16110 if test -f "$ltmain_in"; then 16111 test -f Makefile && make "$ltmain" 16112 fi 16113fi 16114 16115 16116ac_ext=c 16117ac_cpp='$CPP $CPPFLAGS' 16118ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16119ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16120ac_compiler_gnu=$ac_cv_c_compiler_gnu 16121 16122CC="$lt_save_CC" 16123 16124 else 16125 tagname="" 16126 fi 16127 ;; 16128 16129 GCJ) 16130 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16131 16132 16133# Source file extension for Java test sources. 16134ac_ext=java 16135 16136# Object file extension for compiled Java test sources. 16137objext=o 16138objext_GCJ=$objext 16139 16140# Code to be used in simple compile tests 16141lt_simple_compile_test_code="class foo {}\n" 16142 16143# Code to be used in simple link tests 16144lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 16145 16146# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16147 16148# If no C compiler was specified, use CC. 16149LTCC=${LTCC-"$CC"} 16150 16151# If no C compiler flags were specified, use CFLAGS. 16152LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16153 16154# Allow CC to be a program name with arguments. 16155compiler=$CC 16156 16157 16158# save warnings/boilerplate of simple test code 16159ac_outfile=conftest.$ac_objext 16160printf "$lt_simple_compile_test_code" >conftest.$ac_ext 16161eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16162_lt_compiler_boilerplate=`cat conftest.err` 16163$rm conftest* 16164 16165ac_outfile=conftest.$ac_objext 16166printf "$lt_simple_link_test_code" >conftest.$ac_ext 16167eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16168_lt_linker_boilerplate=`cat conftest.err` 16169$rm conftest* 16170 16171 16172# Allow CC to be a program name with arguments. 16173lt_save_CC="$CC" 16174CC=${GCJ-"gcj"} 16175compiler=$CC 16176compiler_GCJ=$CC 16177for cc_temp in $compiler""; do 16178 case $cc_temp in 16179 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16180 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16181 \-*) ;; 16182 *) break;; 16183 esac 16184done 16185cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16186 16187 16188# GCJ did not exist at the time GCC didn't implicitly link libc in. 16189archive_cmds_need_lc_GCJ=no 16190 16191old_archive_cmds_GCJ=$old_archive_cmds 16192 16193 16194lt_prog_compiler_no_builtin_flag_GCJ= 16195 16196if test "$GCC" = yes; then 16197 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16198 16199 16200{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16201echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 16202if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16203 echo $ECHO_N "(cached) $ECHO_C" >&6 16204else 16205 lt_cv_prog_compiler_rtti_exceptions=no 16206 ac_outfile=conftest.$ac_objext 16207 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16208 lt_compiler_flag="-fno-rtti -fno-exceptions" 16209 # Insert the option either (1) after the last *FLAGS variable, or 16210 # (2) before a word containing "conftest.", or (3) at the end. 16211 # Note that $ac_compile itself does not contain backslashes and begins 16212 # with a dollar sign (not a hyphen), so the echo should work correctly. 16213 # The option is referenced via a variable to avoid confusing sed. 16214 lt_compile=`echo "$ac_compile" | $SED \ 16215 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16216 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16217 -e 's:$: $lt_compiler_flag:'` 16218 (eval echo "\"\$as_me:16218: $lt_compile\"" >&5) 16219 (eval "$lt_compile" 2>conftest.err) 16220 ac_status=$? 16221 cat conftest.err >&5 16222 echo "$as_me:16222: \$? = $ac_status" >&5 16223 if (exit $ac_status) && test -s "$ac_outfile"; then 16224 # The compiler can only warn and ignore the option if not recognized 16225 # So say no if there are warnings other than the usual output. 16226 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16227 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16228 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16229 lt_cv_prog_compiler_rtti_exceptions=yes 16230 fi 16231 fi 16232 $rm conftest* 16233 16234fi 16235{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16236echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16237 16238if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16239 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16240else 16241 : 16242fi 16243 16244fi 16245 16246lt_prog_compiler_wl_GCJ= 16247lt_prog_compiler_pic_GCJ= 16248lt_prog_compiler_static_GCJ= 16249 16250{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16251echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 16252 16253 if test "$GCC" = yes; then 16254 lt_prog_compiler_wl_GCJ='-Wl,' 16255 lt_prog_compiler_static_GCJ='-static' 16256 16257 case $host_os in 16258 aix*) 16259 # All AIX code is PIC. 16260 if test "$host_cpu" = ia64; then 16261 # AIX 5 now supports IA64 processor 16262 lt_prog_compiler_static_GCJ='-Bstatic' 16263 fi 16264 ;; 16265 16266 amigaos*) 16267 # FIXME: we need at least 68020 code to build shared libraries, but 16268 # adding the `-m68020' flag to GCC prevents building anything better, 16269 # like `-m68040'. 16270 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16271 ;; 16272 16273 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16274 # PIC is the default for these OSes. 16275 ;; 16276 16277 mingw* | cygwin* | pw32* | os2*) 16278 # This hack is so that the source file can tell whether it is being 16279 # built for inclusion in a dll (and should export symbols for example). 16280 # Although the cygwin gcc ignores -fPIC, still need this for old-style 16281 # (--disable-auto-import) libraries 16282 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16283 ;; 16284 16285 darwin* | rhapsody*) 16286 # PIC is the default on this platform 16287 # Common symbols not allowed in MH_DYLIB files 16288 lt_prog_compiler_pic_GCJ='-fno-common' 16289 ;; 16290 16291 interix3*) 16292 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16293 # Instead, we relocate shared libraries at runtime. 16294 ;; 16295 16296 msdosdjgpp*) 16297 # Just because we use GCC doesn't mean we suddenly get shared libraries 16298 # on systems that don't support them. 16299 lt_prog_compiler_can_build_shared_GCJ=no 16300 enable_shared=no 16301 ;; 16302 16303 sysv4*MP*) 16304 if test -d /usr/nec; then 16305 lt_prog_compiler_pic_GCJ=-Kconform_pic 16306 fi 16307 ;; 16308 16309 hpux*) 16310 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16311 # not for PA HP-UX. 16312 case $host_cpu in 16313 hppa*64*|ia64*) 16314 # +Z the default 16315 ;; 16316 *) 16317 lt_prog_compiler_pic_GCJ='-fPIC' 16318 ;; 16319 esac 16320 ;; 16321 16322 *) 16323 lt_prog_compiler_pic_GCJ='-fPIC' 16324 ;; 16325 esac 16326 else 16327 # PORTME Check for flag to pass linker flags through the system compiler. 16328 case $host_os in 16329 aix*) 16330 lt_prog_compiler_wl_GCJ='-Wl,' 16331 if test "$host_cpu" = ia64; then 16332 # AIX 5 now supports IA64 processor 16333 lt_prog_compiler_static_GCJ='-Bstatic' 16334 else 16335 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16336 fi 16337 ;; 16338 darwin*) 16339 # PIC is the default on this platform 16340 # Common symbols not allowed in MH_DYLIB files 16341 case $cc_basename in 16342 xlc*) 16343 lt_prog_compiler_pic_GCJ='-qnocommon' 16344 lt_prog_compiler_wl_GCJ='-Wl,' 16345 ;; 16346 esac 16347 ;; 16348 16349 mingw* | cygwin* | pw32* | os2*) 16350 # This hack is so that the source file can tell whether it is being 16351 # built for inclusion in a dll (and should export symbols for example). 16352 # Although the cygwin gcc ignores -fPIC, still need this for old-style 16353 # (--disable-auto-import) libraries 16354 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16355 ;; 16356 16357 hpux9* | hpux10* | hpux11*) 16358 lt_prog_compiler_wl_GCJ='-Wl,' 16359 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16360 # not for PA HP-UX. 16361 case $host_cpu in 16362 hppa*64*|ia64*) 16363 # +Z the default 16364 ;; 16365 *) 16366 lt_prog_compiler_pic_GCJ='+Z' 16367 ;; 16368 esac 16369 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16370 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 16371 ;; 16372 16373 irix5* | irix6* | nonstopux*) 16374 lt_prog_compiler_wl_GCJ='-Wl,' 16375 # PIC (with -KPIC) is the default. 16376 lt_prog_compiler_static_GCJ='-non_shared' 16377 ;; 16378 16379 newsos6) 16380 lt_prog_compiler_pic_GCJ='-KPIC' 16381 lt_prog_compiler_static_GCJ='-Bstatic' 16382 ;; 16383 16384 linux*) 16385 case $cc_basename in 16386 icc* | ecc*) 16387 lt_prog_compiler_wl_GCJ='-Wl,' 16388 lt_prog_compiler_pic_GCJ='-KPIC' 16389 lt_prog_compiler_static_GCJ='-static' 16390 ;; 16391 pgcc* | pgf77* | pgf90* | pgf95*) 16392 # Portland Group compilers (*not* the Pentium gcc compiler, 16393 # which looks to be a dead project) 16394 lt_prog_compiler_wl_GCJ='-Wl,' 16395 lt_prog_compiler_pic_GCJ='-fpic' 16396 lt_prog_compiler_static_GCJ='-Bstatic' 16397 ;; 16398 ccc*) 16399 lt_prog_compiler_wl_GCJ='-Wl,' 16400 # All Alpha code is PIC. 16401 lt_prog_compiler_static_GCJ='-non_shared' 16402 ;; 16403 como) 16404 lt_prog_compiler_wl_GCJ='-lopt=' 16405 ;; 16406 *) 16407 case `$CC -V 2>&1 | sed 5q` in 16408 *Sun\ C*) 16409 # Sun C 5.9 16410 lt_prog_compiler_pic_GCJ='-KPIC' 16411 lt_prog_compiler_static_GCJ='-Bstatic' 16412 lt_prog_compiler_wl_GCJ='-Wl,' 16413 ;; 16414 *Sun\ F*) 16415 # Sun Fortran 8.3 passes all unrecognized flags to the linker 16416 lt_prog_compiler_pic_GCJ='-KPIC' 16417 lt_prog_compiler_static_GCJ='-Bstatic' 16418 lt_prog_compiler_wl_GCJ='' 16419 ;; 16420 esac 16421 ;; 16422 esac 16423 ;; 16424 16425 osf3* | osf4* | osf5*) 16426 lt_prog_compiler_wl_GCJ='-Wl,' 16427 # All OSF/1 code is PIC. 16428 lt_prog_compiler_static_GCJ='-non_shared' 16429 ;; 16430 16431 solaris*) 16432 lt_prog_compiler_pic_GCJ='-KPIC' 16433 lt_prog_compiler_static_GCJ='-Bstatic' 16434 case $cc_basename in 16435 f77* | f90* | f95*) 16436 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 16437 *) 16438 lt_prog_compiler_wl_GCJ='-Wl,';; 16439 esac 16440 ;; 16441 16442 sunos4*) 16443 lt_prog_compiler_wl_GCJ='-Qoption ld ' 16444 lt_prog_compiler_pic_GCJ='-PIC' 16445 lt_prog_compiler_static_GCJ='-Bstatic' 16446 ;; 16447 16448 sysv4 | sysv4.2uw2* | sysv4.3*) 16449 lt_prog_compiler_wl_GCJ='-Wl,' 16450 lt_prog_compiler_pic_GCJ='-KPIC' 16451 lt_prog_compiler_static_GCJ='-Bstatic' 16452 ;; 16453 16454 sysv4*MP*) 16455 if test -d /usr/nec ;then 16456 lt_prog_compiler_pic_GCJ='-Kconform_pic' 16457 lt_prog_compiler_static_GCJ='-Bstatic' 16458 fi 16459 ;; 16460 16461 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16462 lt_prog_compiler_wl_GCJ='-Wl,' 16463 lt_prog_compiler_pic_GCJ='-KPIC' 16464 lt_prog_compiler_static_GCJ='-Bstatic' 16465 ;; 16466 16467 unicos*) 16468 lt_prog_compiler_wl_GCJ='-Wl,' 16469 lt_prog_compiler_can_build_shared_GCJ=no 16470 ;; 16471 16472 uts4*) 16473 lt_prog_compiler_pic_GCJ='-pic' 16474 lt_prog_compiler_static_GCJ='-Bstatic' 16475 ;; 16476 16477 *) 16478 lt_prog_compiler_can_build_shared_GCJ=no 16479 ;; 16480 esac 16481 fi 16482 16483{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 16484echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } 16485 16486# 16487# Check to make sure the PIC flag actually works. 16488# 16489if test -n "$lt_prog_compiler_pic_GCJ"; then 16490 16491{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 16492echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } 16493if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 16494 echo $ECHO_N "(cached) $ECHO_C" >&6 16495else 16496 lt_prog_compiler_pic_works_GCJ=no 16497 ac_outfile=conftest.$ac_objext 16498 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16499 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 16500 # Insert the option either (1) after the last *FLAGS variable, or 16501 # (2) before a word containing "conftest.", or (3) at the end. 16502 # Note that $ac_compile itself does not contain backslashes and begins 16503 # with a dollar sign (not a hyphen), so the echo should work correctly. 16504 # The option is referenced via a variable to avoid confusing sed. 16505 lt_compile=`echo "$ac_compile" | $SED \ 16506 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16507 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16508 -e 's:$: $lt_compiler_flag:'` 16509 (eval echo "\"\$as_me:16509: $lt_compile\"" >&5) 16510 (eval "$lt_compile" 2>conftest.err) 16511 ac_status=$? 16512 cat conftest.err >&5 16513 echo "$as_me:16513: \$? = $ac_status" >&5 16514 if (exit $ac_status) && test -s "$ac_outfile"; then 16515 # The compiler can only warn and ignore the option if not recognized 16516 # So say no if there are warnings other than the usual output. 16517 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16518 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16519 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16520 lt_prog_compiler_pic_works_GCJ=yes 16521 fi 16522 fi 16523 $rm conftest* 16524 16525fi 16526{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 16527echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } 16528 16529if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 16530 case $lt_prog_compiler_pic_GCJ in 16531 "" | " "*) ;; 16532 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 16533 esac 16534else 16535 lt_prog_compiler_pic_GCJ= 16536 lt_prog_compiler_can_build_shared_GCJ=no 16537fi 16538 16539fi 16540case $host_os in 16541 # For platforms which do not support PIC, -DPIC is meaningless: 16542 *djgpp*) 16543 lt_prog_compiler_pic_GCJ= 16544 ;; 16545 *) 16546 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 16547 ;; 16548esac 16549 16550# 16551# Check to make sure the static flag actually works. 16552# 16553wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 16554{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16555echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 16556if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 16557 echo $ECHO_N "(cached) $ECHO_C" >&6 16558else 16559 lt_prog_compiler_static_works_GCJ=no 16560 save_LDFLAGS="$LDFLAGS" 16561 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16562 printf "$lt_simple_link_test_code" > conftest.$ac_ext 16563 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16564 # The linker can only warn and ignore the option if not recognized 16565 # So say no if there are warnings 16566 if test -s conftest.err; then 16567 # Append any errors to the config.log. 16568 cat conftest.err 1>&5 16569 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 16570 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16571 if diff conftest.exp conftest.er2 >/dev/null; then 16572 lt_prog_compiler_static_works_GCJ=yes 16573 fi 16574 else 16575 lt_prog_compiler_static_works_GCJ=yes 16576 fi 16577 fi 16578 $rm conftest* 16579 LDFLAGS="$save_LDFLAGS" 16580 16581fi 16582{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 16583echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } 16584 16585if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 16586 : 16587else 16588 lt_prog_compiler_static_GCJ= 16589fi 16590 16591 16592{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 16593echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 16594if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 16595 echo $ECHO_N "(cached) $ECHO_C" >&6 16596else 16597 lt_cv_prog_compiler_c_o_GCJ=no 16598 $rm -r conftest 2>/dev/null 16599 mkdir conftest 16600 cd conftest 16601 mkdir out 16602 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16603 16604 lt_compiler_flag="-o out/conftest2.$ac_objext" 16605 # Insert the option either (1) after the last *FLAGS variable, or 16606 # (2) before a word containing "conftest.", or (3) at the end. 16607 # Note that $ac_compile itself does not contain backslashes and begins 16608 # with a dollar sign (not a hyphen), so the echo should work correctly. 16609 lt_compile=`echo "$ac_compile" | $SED \ 16610 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16611 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16612 -e 's:$: $lt_compiler_flag:'` 16613 (eval echo "\"\$as_me:16613: $lt_compile\"" >&5) 16614 (eval "$lt_compile" 2>out/conftest.err) 16615 ac_status=$? 16616 cat out/conftest.err >&5 16617 echo "$as_me:16617: \$? = $ac_status" >&5 16618 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16619 then 16620 # The compiler can only warn and ignore the option if not recognized 16621 # So say no if there are warnings 16622 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 16623 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16624 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16625 lt_cv_prog_compiler_c_o_GCJ=yes 16626 fi 16627 fi 16628 chmod u+w . 2>&5 16629 $rm conftest* 16630 # SGI C++ compiler will create directory out/ii_files/ for 16631 # template instantiation 16632 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 16633 $rm out/* && rmdir out 16634 cd .. 16635 rmdir conftest 16636 $rm conftest* 16637 16638fi 16639{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 16640echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } 16641 16642 16643hard_links="nottested" 16644if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 16645 # do not overwrite the value of need_locks provided by the user 16646 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 16647echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 16648 hard_links=yes 16649 $rm conftest* 16650 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16651 touch conftest.a 16652 ln conftest.a conftest.b 2>&5 || hard_links=no 16653 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16654 { echo "$as_me:$LINENO: result: $hard_links" >&5 16655echo "${ECHO_T}$hard_links" >&6; } 16656 if test "$hard_links" = no; then 16657 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 16658echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 16659 need_locks=warn 16660 fi 16661else 16662 need_locks=no 16663fi 16664 16665{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16666echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 16667 16668 runpath_var= 16669 allow_undefined_flag_GCJ= 16670 enable_shared_with_static_runtimes_GCJ=no 16671 archive_cmds_GCJ= 16672 archive_expsym_cmds_GCJ= 16673 old_archive_From_new_cmds_GCJ= 16674 old_archive_from_expsyms_cmds_GCJ= 16675 export_dynamic_flag_spec_GCJ= 16676 whole_archive_flag_spec_GCJ= 16677 thread_safe_flag_spec_GCJ= 16678 hardcode_libdir_flag_spec_GCJ= 16679 hardcode_libdir_flag_spec_ld_GCJ= 16680 hardcode_libdir_separator_GCJ= 16681 hardcode_direct_GCJ=no 16682 hardcode_minus_L_GCJ=no 16683 hardcode_shlibpath_var_GCJ=unsupported 16684 link_all_deplibs_GCJ=unknown 16685 hardcode_automatic_GCJ=no 16686 module_cmds_GCJ= 16687 module_expsym_cmds_GCJ= 16688 always_export_symbols_GCJ=no 16689 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16690 # include_expsyms should be a list of space-separated symbols to be *always* 16691 # included in the symbol list 16692 include_expsyms_GCJ= 16693 # exclude_expsyms can be an extended regexp of symbols to exclude 16694 # it will be wrapped by ` (' and `)$', so one must not match beginning or 16695 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 16696 # as well as any symbol that contains `d'. 16697 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 16698 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16699 # platforms (ab)use it in PIC code, but their linkers get confused if 16700 # the symbol is explicitly referenced. Since portable code cannot 16701 # rely on this symbol name, it's probably fine to never include it in 16702 # preloaded symbol tables. 16703 extract_expsyms_cmds= 16704 # Just being paranoid about ensuring that cc_basename is set. 16705 for cc_temp in $compiler""; do 16706 case $cc_temp in 16707 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16708 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16709 \-*) ;; 16710 *) break;; 16711 esac 16712done 16713cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16714 16715 case $host_os in 16716 cygwin* | mingw* | pw32*) 16717 # FIXME: the MSVC++ port hasn't been tested in a loooong time 16718 # When not using gcc, we currently assume that we are using 16719 # Microsoft Visual C++. 16720 if test "$GCC" != yes; then 16721 with_gnu_ld=no 16722 fi 16723 ;; 16724 interix*) 16725 # we just hope/assume this is gcc and not c89 (= MSVC++) 16726 with_gnu_ld=yes 16727 ;; 16728 openbsd*) 16729 with_gnu_ld=no 16730 ;; 16731 esac 16732 16733 ld_shlibs_GCJ=yes 16734 if test "$with_gnu_ld" = yes; then 16735 # If archive_cmds runs LD, not CC, wlarc should be empty 16736 wlarc='${wl}' 16737 16738 # Set some defaults for GNU ld with shared library support. These 16739 # are reset later if shared libraries are not supported. Putting them 16740 # here allows them to be overridden if necessary. 16741 runpath_var=LD_RUN_PATH 16742 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 16743 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 16744 # ancient GNU ld didn't support --whole-archive et. al. 16745 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 16746 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 16747 else 16748 whole_archive_flag_spec_GCJ= 16749 fi 16750 supports_anon_versioning=no 16751 case `$LD -v 2>/dev/null` in 16752 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16753 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16754 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16755 *\ 2.11.*) ;; # other 2.11 versions 16756 *) supports_anon_versioning=yes ;; 16757 esac 16758 16759 # See if GNU ld supports shared libraries. 16760 case $host_os in 16761 aix3* | aix4* | aix5*) 16762 # On AIX/PPC, the GNU linker is very broken 16763 if test "$host_cpu" != ia64; then 16764 ld_shlibs_GCJ=no 16765 cat <<EOF 1>&2 16766 16767*** Warning: the GNU linker, at least up to release 2.9.1, is reported 16768*** to be unable to reliably create shared libraries on AIX. 16769*** Therefore, libtool is disabling shared libraries support. If you 16770*** really care for shared libraries, you may want to modify your PATH 16771*** so that a non-GNU linker is found, and then restart. 16772 16773EOF 16774 fi 16775 ;; 16776 16777 amigaos*) 16778 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)' 16779 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16780 hardcode_minus_L_GCJ=yes 16781 16782 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 16783 # that the semantics of dynamic libraries on AmigaOS, at least up 16784 # to version 4, is to share data among multiple programs linked 16785 # with the same dynamic library. Since this doesn't match the 16786 # behavior of shared libraries on other platforms, we can't use 16787 # them. 16788 ld_shlibs_GCJ=no 16789 ;; 16790 16791 beos*) 16792 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16793 allow_undefined_flag_GCJ=unsupported 16794 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16795 # support --undefined. This deserves some investigation. FIXME 16796 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16797 else 16798 ld_shlibs_GCJ=no 16799 fi 16800 ;; 16801 16802 cygwin* | mingw* | pw32*) 16803 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 16804 # as there is no search path for DLLs. 16805 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16806 allow_undefined_flag_GCJ=unsupported 16807 always_export_symbols_GCJ=no 16808 enable_shared_with_static_runtimes_GCJ=yes 16809 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 16810 16811 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 16812 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16813 # If the export-symbols file already is a .def file (1st line 16814 # is EXPORTS), use it as is; otherwise, prepend... 16815 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16816 cp $export_symbols $output_objdir/$soname.def; 16817 else 16818 echo EXPORTS > $output_objdir/$soname.def; 16819 cat $export_symbols >> $output_objdir/$soname.def; 16820 fi~ 16821 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16822 else 16823 ld_shlibs_GCJ=no 16824 fi 16825 ;; 16826 16827 interix3*) 16828 hardcode_direct_GCJ=no 16829 hardcode_shlibpath_var_GCJ=no 16830 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16831 export_dynamic_flag_spec_GCJ='${wl}-E' 16832 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16833 # Instead, shared libraries are loaded at an image base (0x10000000 by 16834 # default) and relocated if they conflict, which is a slow very memory 16835 # consuming and fragmenting process. To avoid this, we pick a random, 16836 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16837 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16838 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' 16839 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' 16840 ;; 16841 16842 linux*) 16843 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16844 tmp_addflag= 16845 case $cc_basename,$host_cpu in 16846 pgcc*) # Portland Group C compiler 16847 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' 16848 tmp_addflag=' $pic_flag' 16849 ;; 16850 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 16851 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' 16852 tmp_addflag=' $pic_flag -Mnomain' ;; 16853 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16854 tmp_addflag=' -i_dynamic' ;; 16855 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16856 tmp_addflag=' -i_dynamic -nofor_main' ;; 16857 ifc* | ifort*) # Intel Fortran compiler 16858 tmp_addflag=' -nofor_main' ;; 16859 esac 16860 case `$CC -V 2>&1 | sed 5q` in 16861 *Sun\ C*) # Sun C 5.9 16862 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive /dev/null' 16863 tmp_sharedflag='-G' ;; 16864 *Sun\ F*) # Sun Fortran 8.3 16865 tmp_sharedflag='-G' ;; 16866 *) 16867 tmp_sharedflag='-shared' ;; 16868 esac 16869 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16870 16871 if test $supports_anon_versioning = yes; then 16872 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 16873 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16874 $echo "local: *; };" >> $output_objdir/$libname.ver~ 16875 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 16876 fi 16877 else 16878 ld_shlibs_GCJ=no 16879 fi 16880 ;; 16881 16882 netbsd*) 16883 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16884 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16885 wlarc= 16886 else 16887 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16888 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16889 fi 16890 ;; 16891 16892 solaris*) 16893 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 16894 ld_shlibs_GCJ=no 16895 cat <<EOF 1>&2 16896 16897*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16898*** create shared libraries on Solaris systems. Therefore, libtool 16899*** is disabling shared libraries support. We urge you to upgrade GNU 16900*** binutils to release 2.9.1 or newer. Another option is to modify 16901*** your PATH or compiler configuration so that the native linker is 16902*** used, and then restart. 16903 16904EOF 16905 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16906 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16907 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16908 else 16909 ld_shlibs_GCJ=no 16910 fi 16911 ;; 16912 16913 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 16914 case `$LD -v 2>&1` in 16915 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 16916 ld_shlibs_GCJ=no 16917 cat <<_LT_EOF 1>&2 16918 16919*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 16920*** reliably create shared libraries on SCO systems. Therefore, libtool 16921*** is disabling shared libraries support. We urge you to upgrade GNU 16922*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 16923*** your PATH or compiler configuration so that the native linker is 16924*** used, and then restart. 16925 16926_LT_EOF 16927 ;; 16928 *) 16929 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16930 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 16931 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 16932 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 16933 else 16934 ld_shlibs_GCJ=no 16935 fi 16936 ;; 16937 esac 16938 ;; 16939 16940 sunos4*) 16941 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16942 wlarc= 16943 hardcode_direct_GCJ=yes 16944 hardcode_shlibpath_var_GCJ=no 16945 ;; 16946 16947 *) 16948 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16949 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16950 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16951 else 16952 ld_shlibs_GCJ=no 16953 fi 16954 ;; 16955 esac 16956 16957 if test "$ld_shlibs_GCJ" = no; then 16958 runpath_var= 16959 hardcode_libdir_flag_spec_GCJ= 16960 export_dynamic_flag_spec_GCJ= 16961 whole_archive_flag_spec_GCJ= 16962 fi 16963 else 16964 # PORTME fill in a description of your system's linker (not GNU ld) 16965 case $host_os in 16966 aix3*) 16967 allow_undefined_flag_GCJ=unsupported 16968 always_export_symbols_GCJ=yes 16969 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' 16970 # Note: this linker hardcodes the directories in LIBPATH if there 16971 # are no directories specified by -L. 16972 hardcode_minus_L_GCJ=yes 16973 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 16974 # Neither direct hardcoding nor static linking is supported with a 16975 # broken collect2. 16976 hardcode_direct_GCJ=unsupported 16977 fi 16978 ;; 16979 16980 aix4* | aix5*) 16981 if test "$host_cpu" = ia64; then 16982 # On IA64, the linker does run time linking by default, so we don't 16983 # have to do anything special. 16984 aix_use_runtimelinking=no 16985 exp_sym_flag='-Bexport' 16986 no_entry_flag="" 16987 else 16988 # If we're using GNU nm, then we don't want the "-C" option. 16989 # -C means demangle to AIX nm, but means don't demangle with GNU nm 16990 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 16991 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' 16992 else 16993 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' 16994 fi 16995 aix_use_runtimelinking=no 16996 16997 # Test if we are trying to use run time linking or normal 16998 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16999 # need to do runtime linking. 17000 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 17001 for ld_flag in $LDFLAGS; do 17002 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17003 aix_use_runtimelinking=yes 17004 break 17005 fi 17006 done 17007 ;; 17008 esac 17009 17010 exp_sym_flag='-bexport' 17011 no_entry_flag='-bnoentry' 17012 fi 17013 17014 # When large executables or shared objects are built, AIX ld can 17015 # have problems creating the table of contents. If linking a library 17016 # or program results in "error TOC overflow" add -mminimal-toc to 17017 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17018 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17019 17020 archive_cmds_GCJ='' 17021 hardcode_direct_GCJ=yes 17022 hardcode_libdir_separator_GCJ=':' 17023 link_all_deplibs_GCJ=yes 17024 17025 if test "$GCC" = yes; then 17026 case $host_os in aix4.[012]|aix4.[012].*) 17027 # We only want to do this on AIX 4.2 and lower, the check 17028 # below for broken collect2 doesn't work under 4.3+ 17029 collect2name=`${CC} -print-prog-name=collect2` 17030 if test -f "$collect2name" && \ 17031 strings "$collect2name" | grep resolve_lib_name >/dev/null 17032 then 17033 # We have reworked collect2 17034 hardcode_direct_GCJ=yes 17035 else 17036 # We have old collect2 17037 hardcode_direct_GCJ=unsupported 17038 # It fails to find uninstalled libraries when the uninstalled 17039 # path is not listed in the libpath. Setting hardcode_minus_L 17040 # to unsupported forces relinking 17041 hardcode_minus_L_GCJ=yes 17042 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17043 hardcode_libdir_separator_GCJ= 17044 fi 17045 ;; 17046 esac 17047 shared_flag='-shared' 17048 if test "$aix_use_runtimelinking" = yes; then 17049 shared_flag="$shared_flag "'${wl}-G' 17050 fi 17051 else 17052 # not using gcc 17053 if test "$host_cpu" = ia64; then 17054 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17055 # chokes on -Wl,-G. The following line is correct: 17056 shared_flag='-G' 17057 else 17058 if test "$aix_use_runtimelinking" = yes; then 17059 shared_flag='${wl}-G' 17060 else 17061 shared_flag='${wl}-bM:SRE' 17062 fi 17063 fi 17064 fi 17065 17066 # It seems that -bexpall does not export symbols beginning with 17067 # underscore (_), so it is better to generate a list of symbols to export. 17068 always_export_symbols_GCJ=yes 17069 if test "$aix_use_runtimelinking" = yes; then 17070 # Warning - without using the other runtime loading flags (-brtl), 17071 # -berok will link without error, but may produce a broken library. 17072 allow_undefined_flag_GCJ='-berok' 17073 # Determine the default libpath from the value encoded in an empty executable. 17074 cat >conftest.$ac_ext <<_ACEOF 17075/* confdefs.h. */ 17076_ACEOF 17077cat confdefs.h >>conftest.$ac_ext 17078cat >>conftest.$ac_ext <<_ACEOF 17079/* end confdefs.h. */ 17080 17081int 17082main () 17083{ 17084 17085 ; 17086 return 0; 17087} 17088_ACEOF 17089rm -f conftest.$ac_objext conftest$ac_exeext 17090if { (ac_try="$ac_link" 17091case "(($ac_try" in 17092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17093 *) ac_try_echo=$ac_try;; 17094esac 17095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17096 (eval "$ac_link") 2>conftest.er1 17097 ac_status=$? 17098 grep -v '^ *+' conftest.er1 >conftest.err 17099 rm -f conftest.er1 17100 cat conftest.err >&5 17101 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17102 (exit $ac_status); } && { 17103 test -z "$ac_c_werror_flag" || 17104 test ! -s conftest.err 17105 } && test -s conftest$ac_exeext && 17106 $as_test_x conftest$ac_exeext; then 17107 17108aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17109}'` 17110# Check for a 64-bit object if we didn't find anything. 17111if 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; } 17112}'`; fi 17113else 17114 echo "$as_me: failed program was:" >&5 17115sed 's/^/| /' conftest.$ac_ext >&5 17116 17117 17118fi 17119 17120rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17121 conftest$ac_exeext conftest.$ac_ext 17122if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17123 17124 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17125 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" 17126 else 17127 if test "$host_cpu" = ia64; then 17128 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17129 allow_undefined_flag_GCJ="-z nodefs" 17130 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" 17131 else 17132 # Determine the default libpath from the value encoded in an empty executable. 17133 cat >conftest.$ac_ext <<_ACEOF 17134/* confdefs.h. */ 17135_ACEOF 17136cat confdefs.h >>conftest.$ac_ext 17137cat >>conftest.$ac_ext <<_ACEOF 17138/* end confdefs.h. */ 17139 17140int 17141main () 17142{ 17143 17144 ; 17145 return 0; 17146} 17147_ACEOF 17148rm -f conftest.$ac_objext conftest$ac_exeext 17149if { (ac_try="$ac_link" 17150case "(($ac_try" in 17151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17152 *) ac_try_echo=$ac_try;; 17153esac 17154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17155 (eval "$ac_link") 2>conftest.er1 17156 ac_status=$? 17157 grep -v '^ *+' conftest.er1 >conftest.err 17158 rm -f conftest.er1 17159 cat conftest.err >&5 17160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17161 (exit $ac_status); } && { 17162 test -z "$ac_c_werror_flag" || 17163 test ! -s conftest.err 17164 } && test -s conftest$ac_exeext && 17165 $as_test_x conftest$ac_exeext; then 17166 17167aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17168}'` 17169# Check for a 64-bit object if we didn't find anything. 17170if 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; } 17171}'`; fi 17172else 17173 echo "$as_me: failed program was:" >&5 17174sed 's/^/| /' conftest.$ac_ext >&5 17175 17176 17177fi 17178 17179rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17180 conftest$ac_exeext conftest.$ac_ext 17181if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17182 17183 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17184 # Warning - without using the other run time loading flags, 17185 # -berok will link without error, but may produce a broken library. 17186 no_undefined_flag_GCJ=' ${wl}-bernotok' 17187 allow_undefined_flag_GCJ=' ${wl}-berok' 17188 # Exported symbols can be pulled into shared objects from archives 17189 whole_archive_flag_spec_GCJ='$convenience' 17190 archive_cmds_need_lc_GCJ=yes 17191 # This is similar to how AIX traditionally builds its shared libraries. 17192 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' 17193 fi 17194 fi 17195 ;; 17196 17197 amigaos*) 17198 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)' 17199 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17200 hardcode_minus_L_GCJ=yes 17201 # see comment about different semantics on the GNU ld section 17202 ld_shlibs_GCJ=no 17203 ;; 17204 17205 bsdi[45]*) 17206 export_dynamic_flag_spec_GCJ=-rdynamic 17207 ;; 17208 17209 cygwin* | mingw* | pw32*) 17210 # When not using gcc, we currently assume that we are using 17211 # Microsoft Visual C++. 17212 # hardcode_libdir_flag_spec is actually meaningless, as there is 17213 # no search path for DLLs. 17214 hardcode_libdir_flag_spec_GCJ=' ' 17215 allow_undefined_flag_GCJ=unsupported 17216 # Tell ltmain to make .lib files, not .a files. 17217 libext=lib 17218 # Tell ltmain to make .dll files, not .so files. 17219 shrext_cmds=".dll" 17220 # FIXME: Setting linknames here is a bad hack. 17221 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17222 # The linker will automatically build a .lib file if we build a DLL. 17223 old_archive_From_new_cmds_GCJ='true' 17224 # FIXME: Should let the user specify the lib program. 17225 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 17226 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17227 enable_shared_with_static_runtimes_GCJ=yes 17228 ;; 17229 17230 darwin* | rhapsody*) 17231 case $host_os in 17232 rhapsody* | darwin1.[012]) 17233 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17234 ;; 17235 *) # Darwin 1.3 on 17236 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17237 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17238 else 17239 case ${MACOSX_DEPLOYMENT_TARGET} in 17240 10.[012]) 17241 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17242 ;; 17243 10.*) 17244 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17245 ;; 17246 esac 17247 fi 17248 ;; 17249 esac 17250 archive_cmds_need_lc_GCJ=no 17251 hardcode_direct_GCJ=no 17252 hardcode_automatic_GCJ=yes 17253 hardcode_shlibpath_var_GCJ=unsupported 17254 whole_archive_flag_spec_GCJ='' 17255 link_all_deplibs_GCJ=yes 17256 if test "$GCC" = yes ; then 17257 output_verbose_link_cmd='echo' 17258 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 17259 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17260 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17261 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}' 17262 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}' 17263 else 17264 case $cc_basename in 17265 xlc*) 17266 output_verbose_link_cmd='echo' 17267 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 17268 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17269 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17270 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}' 17271 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}' 17272 ;; 17273 *) 17274 ld_shlibs_GCJ=no 17275 ;; 17276 esac 17277 fi 17278 ;; 17279 17280 dgux*) 17281 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17282 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17283 hardcode_shlibpath_var_GCJ=no 17284 ;; 17285 17286 freebsd1*) 17287 ld_shlibs_GCJ=no 17288 ;; 17289 17290 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17291 # support. Future versions do this automatically, but an explicit c++rt0.o 17292 # does not break anything, and helps significantly (at the cost of a little 17293 # extra space). 17294 freebsd2.2*) 17295 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17296 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17297 hardcode_direct_GCJ=yes 17298 hardcode_shlibpath_var_GCJ=no 17299 ;; 17300 17301 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17302 freebsd2*) 17303 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17304 hardcode_direct_GCJ=yes 17305 hardcode_minus_L_GCJ=yes 17306 hardcode_shlibpath_var_GCJ=no 17307 ;; 17308 17309 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17310 freebsd* | kfreebsd*-gnu | dragonfly*) 17311 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17312 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17313 hardcode_direct_GCJ=yes 17314 hardcode_shlibpath_var_GCJ=no 17315 ;; 17316 17317 hpux9*) 17318 if test "$GCC" = yes; then 17319 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' 17320 else 17321 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' 17322 fi 17323 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17324 hardcode_libdir_separator_GCJ=: 17325 hardcode_direct_GCJ=yes 17326 17327 # hardcode_minus_L: Not really in the search PATH, 17328 # but as the default location of the library. 17329 hardcode_minus_L_GCJ=yes 17330 export_dynamic_flag_spec_GCJ='${wl}-E' 17331 ;; 17332 17333 hpux10*) 17334 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17335 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17336 else 17337 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17338 fi 17339 if test "$with_gnu_ld" = no; then 17340 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17341 hardcode_libdir_separator_GCJ=: 17342 17343 hardcode_direct_GCJ=yes 17344 export_dynamic_flag_spec_GCJ='${wl}-E' 17345 17346 # hardcode_minus_L: Not really in the search PATH, 17347 # but as the default location of the library. 17348 hardcode_minus_L_GCJ=yes 17349 fi 17350 ;; 17351 17352 hpux11*) 17353 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17354 case $host_cpu in 17355 hppa*64*) 17356 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17357 ;; 17358 ia64*) 17359 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17360 ;; 17361 *) 17362 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17363 ;; 17364 esac 17365 else 17366 case $host_cpu in 17367 hppa*64*) 17368 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17369 ;; 17370 ia64*) 17371 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17372 ;; 17373 *) 17374 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17375 ;; 17376 esac 17377 fi 17378 if test "$with_gnu_ld" = no; then 17379 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17380 hardcode_libdir_separator_GCJ=: 17381 17382 case $host_cpu in 17383 hppa*64*|ia64*) 17384 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 17385 hardcode_direct_GCJ=no 17386 hardcode_shlibpath_var_GCJ=no 17387 ;; 17388 *) 17389 hardcode_direct_GCJ=yes 17390 export_dynamic_flag_spec_GCJ='${wl}-E' 17391 17392 # hardcode_minus_L: Not really in the search PATH, 17393 # but as the default location of the library. 17394 hardcode_minus_L_GCJ=yes 17395 ;; 17396 esac 17397 fi 17398 ;; 17399 17400 irix5* | irix6* | nonstopux*) 17401 if test "$GCC" = yes; then 17402 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' 17403 else 17404 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' 17405 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 17406 fi 17407 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17408 hardcode_libdir_separator_GCJ=: 17409 link_all_deplibs_GCJ=yes 17410 ;; 17411 17412 netbsd*) 17413 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17414 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17415 else 17416 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17417 fi 17418 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17419 hardcode_direct_GCJ=yes 17420 hardcode_shlibpath_var_GCJ=no 17421 ;; 17422 17423 newsos6) 17424 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17425 hardcode_direct_GCJ=yes 17426 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17427 hardcode_libdir_separator_GCJ=: 17428 hardcode_shlibpath_var_GCJ=no 17429 ;; 17430 17431 openbsd*) 17432 hardcode_direct_GCJ=yes 17433 hardcode_shlibpath_var_GCJ=no 17434 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17435 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17436 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 17437 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17438 export_dynamic_flag_spec_GCJ='${wl}-E' 17439 else 17440 case $host_os in 17441 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 17442 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17443 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17444 ;; 17445 *) 17446 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17447 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17448 ;; 17449 esac 17450 fi 17451 ;; 17452 17453 os2*) 17454 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17455 hardcode_minus_L_GCJ=yes 17456 allow_undefined_flag_GCJ=unsupported 17457 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' 17458 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 17459 ;; 17460 17461 osf3*) 17462 if test "$GCC" = yes; then 17463 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17464 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' 17465 else 17466 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17467 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' 17468 fi 17469 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17470 hardcode_libdir_separator_GCJ=: 17471 ;; 17472 17473 osf4* | osf5*) # as osf3* with the addition of -msym flag 17474 if test "$GCC" = yes; then 17475 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17476 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' 17477 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17478 else 17479 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17480 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' 17481 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~ 17482 $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' 17483 17484 # Both c and cxx compiler support -rpath directly 17485 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 17486 fi 17487 hardcode_libdir_separator_GCJ=: 17488 ;; 17489 17490 solaris*) 17491 no_undefined_flag_GCJ=' -z text' 17492 if test "$GCC" = yes; then 17493 wlarc='${wl}' 17494 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17495 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17496 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 17497 else 17498 wlarc='' 17499 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17500 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17501 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17502 fi 17503 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17504 hardcode_shlibpath_var_GCJ=no 17505 case $host_os in 17506 solaris2.[0-5] | solaris2.[0-5].*) ;; 17507 *) 17508 # The compiler driver will combine linker options so we 17509 # cannot just pass the convience library names through 17510 # without $wl, iff we do not link with $LD. 17511 # Luckily, gcc supports the same syntax we need for Sun Studio. 17512 # Supported since Solaris 2.6 (maybe 2.5.1?) 17513 case $wlarc in 17514 '') 17515 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 17516 *) 17517 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' ;; 17518 esac ;; 17519 esac 17520 link_all_deplibs_GCJ=yes 17521 ;; 17522 17523 sunos4*) 17524 if test "x$host_vendor" = xsequent; then 17525 # Use $CC to link under sequent, because it throws in some extra .o 17526 # files that make .init and .fini sections work. 17527 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17528 else 17529 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17530 fi 17531 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17532 hardcode_direct_GCJ=yes 17533 hardcode_minus_L_GCJ=yes 17534 hardcode_shlibpath_var_GCJ=no 17535 ;; 17536 17537 sysv4) 17538 case $host_vendor in 17539 sni) 17540 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17541 hardcode_direct_GCJ=yes # is this really true??? 17542 ;; 17543 siemens) 17544 ## LD is ld it makes a PLAMLIB 17545 ## CC just makes a GrossModule. 17546 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17547 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 17548 hardcode_direct_GCJ=no 17549 ;; 17550 motorola) 17551 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17552 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 17553 ;; 17554 esac 17555 runpath_var='LD_RUN_PATH' 17556 hardcode_shlibpath_var_GCJ=no 17557 ;; 17558 17559 sysv4.3*) 17560 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17561 hardcode_shlibpath_var_GCJ=no 17562 export_dynamic_flag_spec_GCJ='-Bexport' 17563 ;; 17564 17565 sysv4*MP*) 17566 if test -d /usr/nec; then 17567 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17568 hardcode_shlibpath_var_GCJ=no 17569 runpath_var=LD_RUN_PATH 17570 hardcode_runpath_var=yes 17571 ld_shlibs_GCJ=yes 17572 fi 17573 ;; 17574 17575 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 17576 no_undefined_flag_GCJ='${wl}-z,text' 17577 archive_cmds_need_lc_GCJ=no 17578 hardcode_shlibpath_var_GCJ=no 17579 runpath_var='LD_RUN_PATH' 17580 17581 if test "$GCC" = yes; then 17582 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17583 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17584 else 17585 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17586 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17587 fi 17588 ;; 17589 17590 sysv5* | sco3.2v5* | sco5v6*) 17591 # Note: We can NOT use -z defs as we might desire, because we do not 17592 # link with -lc, and that would cause any symbols used from libc to 17593 # always be unresolved, which means just about no library would 17594 # ever link correctly. If we're not using GNU ld we use -z text 17595 # though, which does catch some bad symbols but isn't as heavy-handed 17596 # as -z defs. 17597 no_undefined_flag_GCJ='${wl}-z,text' 17598 allow_undefined_flag_GCJ='${wl}-z,nodefs' 17599 archive_cmds_need_lc_GCJ=no 17600 hardcode_shlibpath_var_GCJ=no 17601 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 17602 hardcode_libdir_separator_GCJ=':' 17603 link_all_deplibs_GCJ=yes 17604 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 17605 runpath_var='LD_RUN_PATH' 17606 17607 if test "$GCC" = yes; then 17608 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17609 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17610 else 17611 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17612 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17613 fi 17614 ;; 17615 17616 uts4*) 17617 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17618 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17619 hardcode_shlibpath_var_GCJ=no 17620 ;; 17621 17622 *) 17623 ld_shlibs_GCJ=no 17624 ;; 17625 esac 17626 fi 17627 17628{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 17629echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } 17630test "$ld_shlibs_GCJ" = no && can_build_shared=no 17631 17632# 17633# Do we need to explicitly link libc? 17634# 17635case "x$archive_cmds_need_lc_GCJ" in 17636x|xyes) 17637 # Assume -lc should be added 17638 archive_cmds_need_lc_GCJ=yes 17639 17640 if test "$enable_shared" = yes && test "$GCC" = yes; then 17641 case $archive_cmds_GCJ in 17642 *'~'*) 17643 # FIXME: we may have to deal with multi-command sequences. 17644 ;; 17645 '$CC '*) 17646 # Test whether the compiler implicitly links with -lc since on some 17647 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17648 # to ld, don't add -lc before -lgcc. 17649 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 17650echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 17651 $rm conftest* 17652 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17653 17654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17655 (eval $ac_compile) 2>&5 17656 ac_status=$? 17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17658 (exit $ac_status); } 2>conftest.err; then 17659 soname=conftest 17660 lib=conftest 17661 libobjs=conftest.$ac_objext 17662 deplibs= 17663 wl=$lt_prog_compiler_wl_GCJ 17664 pic_flag=$lt_prog_compiler_pic_GCJ 17665 compiler_flags=-v 17666 linker_flags=-v 17667 verstring= 17668 output_objdir=. 17669 libname=conftest 17670 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 17671 allow_undefined_flag_GCJ= 17672 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 17673 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 17674 ac_status=$? 17675 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17676 (exit $ac_status); } 17677 then 17678 archive_cmds_need_lc_GCJ=no 17679 else 17680 archive_cmds_need_lc_GCJ=yes 17681 fi 17682 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 17683 else 17684 cat conftest.err 1>&5 17685 fi 17686 $rm conftest* 17687 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 17688echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } 17689 ;; 17690 esac 17691 fi 17692 ;; 17693esac 17694 17695{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 17696echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 17697library_names_spec= 17698libname_spec='lib$name' 17699soname_spec= 17700shrext_cmds=".so" 17701postinstall_cmds= 17702postuninstall_cmds= 17703finish_cmds= 17704finish_eval= 17705shlibpath_var= 17706shlibpath_overrides_runpath=unknown 17707version_type=none 17708dynamic_linker="$host_os ld.so" 17709sys_lib_dlsearch_path_spec="/lib /usr/lib" 17710if test "$GCC" = yes; then 17711 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17712 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 17713 # if the path contains ";" then we assume it to be the separator 17714 # otherwise default to the standard path separator (i.e. ":") - it is 17715 # assumed that no part of a normal pathname contains ";" but that should 17716 # okay in the real world where ";" in dirpaths is itself problematic. 17717 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17718 else 17719 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17720 fi 17721else 17722 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17723fi 17724need_lib_prefix=unknown 17725hardcode_into_libs=no 17726 17727# when you set need_version to no, make sure it does not cause -set_version 17728# flags to be left without arguments 17729need_version=unknown 17730 17731case $host_os in 17732aix3*) 17733 version_type=linux 17734 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 17735 shlibpath_var=LIBPATH 17736 17737 # AIX 3 has no versioning support, so we append a major version to the name. 17738 soname_spec='${libname}${release}${shared_ext}$major' 17739 ;; 17740 17741aix4* | aix5*) 17742 version_type=linux 17743 need_lib_prefix=no 17744 need_version=no 17745 hardcode_into_libs=yes 17746 if test "$host_cpu" = ia64; then 17747 # AIX 5 supports IA64 17748 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 17749 shlibpath_var=LD_LIBRARY_PATH 17750 else 17751 # With GCC up to 2.95.x, collect2 would create an import file 17752 # for dependence libraries. The import file would start with 17753 # the line `#! .'. This would cause the generated library to 17754 # depend on `.', always an invalid library. This was fixed in 17755 # development snapshots of GCC prior to 3.0. 17756 case $host_os in 17757 aix4 | aix4.[01] | aix4.[01].*) 17758 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17759 echo ' yes ' 17760 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 17761 : 17762 else 17763 can_build_shared=no 17764 fi 17765 ;; 17766 esac 17767 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 17768 # soname into executable. Probably we can add versioning support to 17769 # collect2, so additional links can be useful in future. 17770 if test "$aix_use_runtimelinking" = yes; then 17771 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17772 # instead of lib<name>.a to let people know that these are not 17773 # typical AIX shared libraries. 17774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17775 else 17776 # We preserve .a as extension for shared libraries through AIX4.2 17777 # and later when we are not doing run time linking. 17778 library_names_spec='${libname}${release}.a $libname.a' 17779 soname_spec='${libname}${release}${shared_ext}$major' 17780 fi 17781 shlibpath_var=LIBPATH 17782 fi 17783 ;; 17784 17785amigaos*) 17786 library_names_spec='$libname.ixlibrary $libname.a' 17787 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17788 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' 17789 ;; 17790 17791beos*) 17792 library_names_spec='${libname}${shared_ext}' 17793 dynamic_linker="$host_os ld.so" 17794 shlibpath_var=LIBRARY_PATH 17795 ;; 17796 17797bsdi[45]*) 17798 version_type=linux 17799 need_version=no 17800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17801 soname_spec='${libname}${release}${shared_ext}$major' 17802 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17803 shlibpath_var=LD_LIBRARY_PATH 17804 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17805 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17806 # the default ld.so.conf also contains /usr/contrib/lib and 17807 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17808 # libtool to hard-code these into programs 17809 ;; 17810 17811cygwin* | mingw* | pw32*) 17812 version_type=windows 17813 shrext_cmds=".dll" 17814 need_version=no 17815 need_lib_prefix=no 17816 17817 case $GCC,$host_os in 17818 yes,cygwin* | yes,mingw* | yes,pw32*) 17819 library_names_spec='$libname.dll.a' 17820 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17821 postinstall_cmds='base_file=`basename \${file}`~ 17822 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 17823 dldir=$destdir/`dirname \$dlpath`~ 17824 test -d \$dldir || mkdir -p \$dldir~ 17825 $install_prog $dir/$dlname \$dldir/$dlname~ 17826 chmod a+x \$dldir/$dlname' 17827 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17828 dlpath=$dir/\$dldll~ 17829 $rm \$dlpath' 17830 shlibpath_overrides_runpath=yes 17831 17832 case $host_os in 17833 cygwin*) 17834 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17835 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17836 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 17837 ;; 17838 mingw*) 17839 # MinGW DLLs use traditional 'lib' prefix 17840 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17841 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17842 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 17843 # It is most probably a Windows format PATH printed by 17844 # mingw gcc, but we are running on Cygwin. Gcc prints its search 17845 # path with ; separators, and with drive letters. We can handle the 17846 # drive letters (cygwin fileutils understands them), so leave them, 17847 # especially as we might pass files found there to a mingw objdump, 17848 # which wouldn't understand a cygwinified path. Ahh. 17849 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17850 else 17851 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17852 fi 17853 ;; 17854 pw32*) 17855 # pw32 DLLs use 'pw' prefix rather than 'lib' 17856 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17857 ;; 17858 esac 17859 ;; 17860 17861 *) 17862 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 17863 ;; 17864 esac 17865 dynamic_linker='Win32 ld.exe' 17866 # FIXME: first we should search . and the directory the executable is in 17867 shlibpath_var=PATH 17868 ;; 17869 17870darwin* | rhapsody*) 17871 dynamic_linker="$host_os dyld" 17872 version_type=darwin 17873 need_lib_prefix=no 17874 need_version=no 17875 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 17876 soname_spec='${libname}${release}${major}$shared_ext' 17877 shlibpath_overrides_runpath=yes 17878 shlibpath_var=DYLD_LIBRARY_PATH 17879 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17880 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 17881 if test "$GCC" = yes; then 17882 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"` 17883 else 17884 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 17885 fi 17886 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17887 ;; 17888 17889dgux*) 17890 version_type=linux 17891 need_lib_prefix=no 17892 need_version=no 17893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 17894 soname_spec='${libname}${release}${shared_ext}$major' 17895 shlibpath_var=LD_LIBRARY_PATH 17896 ;; 17897 17898freebsd1*) 17899 dynamic_linker=no 17900 ;; 17901 17902kfreebsd*-gnu) 17903 version_type=linux 17904 need_lib_prefix=no 17905 need_version=no 17906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17907 soname_spec='${libname}${release}${shared_ext}$major' 17908 shlibpath_var=LD_LIBRARY_PATH 17909 shlibpath_overrides_runpath=no 17910 hardcode_into_libs=yes 17911 dynamic_linker='GNU ld.so' 17912 ;; 17913 17914freebsd* | dragonfly*) 17915 # DragonFly does not have aout. When/if they implement a new 17916 # versioning mechanism, adjust this. 17917 if test -x /usr/bin/objformat; then 17918 objformat=`/usr/bin/objformat` 17919 else 17920 case $host_os in 17921 freebsd[123]*) objformat=aout ;; 17922 *) objformat=elf ;; 17923 esac 17924 fi 17925 version_type=freebsd-$objformat 17926 case $version_type in 17927 freebsd-elf*) 17928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17929 need_version=no 17930 need_lib_prefix=no 17931 ;; 17932 freebsd-*) 17933 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 17934 need_version=yes 17935 ;; 17936 esac 17937 shlibpath_var=LD_LIBRARY_PATH 17938 case $host_os in 17939 freebsd2*) 17940 shlibpath_overrides_runpath=yes 17941 ;; 17942 freebsd3.[01]* | freebsdelf3.[01]*) 17943 shlibpath_overrides_runpath=yes 17944 hardcode_into_libs=yes 17945 ;; 17946 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17947 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17948 shlibpath_overrides_runpath=no 17949 hardcode_into_libs=yes 17950 ;; 17951 freebsd*) # from 4.6 on 17952 shlibpath_overrides_runpath=yes 17953 hardcode_into_libs=yes 17954 ;; 17955 esac 17956 ;; 17957 17958gnu*) 17959 version_type=linux 17960 need_lib_prefix=no 17961 need_version=no 17962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17963 soname_spec='${libname}${release}${shared_ext}$major' 17964 shlibpath_var=LD_LIBRARY_PATH 17965 hardcode_into_libs=yes 17966 ;; 17967 17968hpux9* | hpux10* | hpux11*) 17969 # Give a soname corresponding to the major version so that dld.sl refuses to 17970 # link against other versions. 17971 version_type=sunos 17972 need_lib_prefix=no 17973 need_version=no 17974 case $host_cpu in 17975 ia64*) 17976 shrext_cmds='.so' 17977 hardcode_into_libs=yes 17978 dynamic_linker="$host_os dld.so" 17979 shlibpath_var=LD_LIBRARY_PATH 17980 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17982 soname_spec='${libname}${release}${shared_ext}$major' 17983 if test "X$HPUX_IA64_MODE" = X32; then 17984 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17985 else 17986 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17987 fi 17988 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17989 ;; 17990 hppa*64*) 17991 shrext_cmds='.sl' 17992 hardcode_into_libs=yes 17993 dynamic_linker="$host_os dld.sl" 17994 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17995 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17997 soname_spec='${libname}${release}${shared_ext}$major' 17998 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17999 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18000 ;; 18001 *) 18002 shrext_cmds='.sl' 18003 dynamic_linker="$host_os dld.sl" 18004 shlibpath_var=SHLIB_PATH 18005 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18007 soname_spec='${libname}${release}${shared_ext}$major' 18008 ;; 18009 esac 18010 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18011 postinstall_cmds='chmod 555 $lib' 18012 ;; 18013 18014interix3*) 18015 version_type=linux 18016 need_lib_prefix=no 18017 need_version=no 18018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18019 soname_spec='${libname}${release}${shared_ext}$major' 18020 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18021 shlibpath_var=LD_LIBRARY_PATH 18022 shlibpath_overrides_runpath=no 18023 hardcode_into_libs=yes 18024 ;; 18025 18026irix5* | irix6* | nonstopux*) 18027 case $host_os in 18028 nonstopux*) version_type=nonstopux ;; 18029 *) 18030 if test "$lt_cv_prog_gnu_ld" = yes; then 18031 version_type=linux 18032 else 18033 version_type=irix 18034 fi ;; 18035 esac 18036 need_lib_prefix=no 18037 need_version=no 18038 soname_spec='${libname}${release}${shared_ext}$major' 18039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18040 case $host_os in 18041 irix5* | nonstopux*) 18042 libsuff= shlibsuff= 18043 ;; 18044 *) 18045 case $LD in # libtool.m4 will add one of these switches to LD 18046 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18047 libsuff= shlibsuff= libmagic=32-bit;; 18048 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18049 libsuff=32 shlibsuff=N32 libmagic=N32;; 18050 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18051 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18052 *) libsuff= shlibsuff= libmagic=never-match;; 18053 esac 18054 ;; 18055 esac 18056 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18057 shlibpath_overrides_runpath=no 18058 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18059 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18060 hardcode_into_libs=yes 18061 ;; 18062 18063# No shared lib support for Linux oldld, aout, or coff. 18064linux*oldld* | linux*aout* | linux*coff*) 18065 dynamic_linker=no 18066 ;; 18067 18068# This must be Linux ELF. 18069linux*) 18070 version_type=linux 18071 need_lib_prefix=no 18072 need_version=no 18073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18074 soname_spec='${libname}${release}${shared_ext}$major' 18075 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18076 shlibpath_var=LD_LIBRARY_PATH 18077 shlibpath_overrides_runpath=no 18078 # This implies no fast_install, which is unacceptable. 18079 # Some rework will be needed to allow for fast_install 18080 # before this can be enabled. 18081 hardcode_into_libs=yes 18082 18083 # Append ld.so.conf contents to the search path 18084 if test -f /etc/ld.so.conf; then 18085 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 18086 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18087 fi 18088 18089 # We used to test for /lib/ld.so.1 and disable shared libraries on 18090 # powerpc, because MkLinux only supported shared libraries with the 18091 # GNU dynamic linker. Since this was broken with cross compilers, 18092 # most powerpc-linux boxes support dynamic linking these days and 18093 # people can always --disable-shared, the test was removed, and we 18094 # assume the GNU/Linux dynamic linker is in use. 18095 dynamic_linker='GNU/Linux ld.so' 18096 ;; 18097 18098knetbsd*-gnu) 18099 version_type=linux 18100 need_lib_prefix=no 18101 need_version=no 18102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18103 soname_spec='${libname}${release}${shared_ext}$major' 18104 shlibpath_var=LD_LIBRARY_PATH 18105 shlibpath_overrides_runpath=no 18106 hardcode_into_libs=yes 18107 dynamic_linker='GNU ld.so' 18108 ;; 18109 18110netbsd*) 18111 version_type=sunos 18112 need_lib_prefix=no 18113 need_version=no 18114 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18116 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18117 dynamic_linker='NetBSD (a.out) ld.so' 18118 else 18119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18120 soname_spec='${libname}${release}${shared_ext}$major' 18121 dynamic_linker='NetBSD ld.elf_so' 18122 fi 18123 shlibpath_var=LD_LIBRARY_PATH 18124 shlibpath_overrides_runpath=yes 18125 hardcode_into_libs=yes 18126 ;; 18127 18128newsos6) 18129 version_type=linux 18130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18131 shlibpath_var=LD_LIBRARY_PATH 18132 shlibpath_overrides_runpath=yes 18133 ;; 18134 18135nto-qnx*) 18136 version_type=linux 18137 need_lib_prefix=no 18138 need_version=no 18139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18140 soname_spec='${libname}${release}${shared_ext}$major' 18141 shlibpath_var=LD_LIBRARY_PATH 18142 shlibpath_overrides_runpath=yes 18143 ;; 18144 18145openbsd*) 18146 version_type=sunos 18147 sys_lib_dlsearch_path_spec="/usr/lib" 18148 need_lib_prefix=no 18149 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18150 case $host_os in 18151 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18152 *) need_version=no ;; 18153 esac 18154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18155 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18156 shlibpath_var=LD_LIBRARY_PATH 18157 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18158 case $host_os in 18159 openbsd2.[89] | openbsd2.[89].*) 18160 shlibpath_overrides_runpath=no 18161 ;; 18162 *) 18163 shlibpath_overrides_runpath=yes 18164 ;; 18165 esac 18166 else 18167 shlibpath_overrides_runpath=yes 18168 fi 18169 ;; 18170 18171os2*) 18172 libname_spec='$name' 18173 shrext_cmds=".dll" 18174 need_lib_prefix=no 18175 library_names_spec='$libname${shared_ext} $libname.a' 18176 dynamic_linker='OS/2 ld.exe' 18177 shlibpath_var=LIBPATH 18178 ;; 18179 18180osf3* | osf4* | osf5*) 18181 version_type=osf 18182 need_lib_prefix=no 18183 need_version=no 18184 soname_spec='${libname}${release}${shared_ext}$major' 18185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18186 shlibpath_var=LD_LIBRARY_PATH 18187 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18188 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18189 ;; 18190 18191solaris*) 18192 version_type=linux 18193 need_lib_prefix=no 18194 need_version=no 18195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18196 soname_spec='${libname}${release}${shared_ext}$major' 18197 shlibpath_var=LD_LIBRARY_PATH 18198 shlibpath_overrides_runpath=yes 18199 hardcode_into_libs=yes 18200 # ldd complains unless libraries are executable 18201 postinstall_cmds='chmod +x $lib' 18202 ;; 18203 18204sunos4*) 18205 version_type=sunos 18206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18207 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18208 shlibpath_var=LD_LIBRARY_PATH 18209 shlibpath_overrides_runpath=yes 18210 if test "$with_gnu_ld" = yes; then 18211 need_lib_prefix=no 18212 fi 18213 need_version=yes 18214 ;; 18215 18216sysv4 | sysv4.3*) 18217 version_type=linux 18218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18219 soname_spec='${libname}${release}${shared_ext}$major' 18220 shlibpath_var=LD_LIBRARY_PATH 18221 case $host_vendor in 18222 sni) 18223 shlibpath_overrides_runpath=no 18224 need_lib_prefix=no 18225 export_dynamic_flag_spec='${wl}-Blargedynsym' 18226 runpath_var=LD_RUN_PATH 18227 ;; 18228 siemens) 18229 need_lib_prefix=no 18230 ;; 18231 motorola) 18232 need_lib_prefix=no 18233 need_version=no 18234 shlibpath_overrides_runpath=no 18235 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18236 ;; 18237 esac 18238 ;; 18239 18240sysv4*MP*) 18241 if test -d /usr/nec ;then 18242 version_type=linux 18243 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18244 soname_spec='$libname${shared_ext}.$major' 18245 shlibpath_var=LD_LIBRARY_PATH 18246 fi 18247 ;; 18248 18249sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18250 version_type=freebsd-elf 18251 need_lib_prefix=no 18252 need_version=no 18253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18254 soname_spec='${libname}${release}${shared_ext}$major' 18255 shlibpath_var=LD_LIBRARY_PATH 18256 hardcode_into_libs=yes 18257 if test "$with_gnu_ld" = yes; then 18258 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18259 shlibpath_overrides_runpath=no 18260 else 18261 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18262 shlibpath_overrides_runpath=yes 18263 case $host_os in 18264 sco3.2v5*) 18265 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18266 ;; 18267 esac 18268 fi 18269 sys_lib_dlsearch_path_spec='/usr/lib' 18270 ;; 18271 18272uts4*) 18273 version_type=linux 18274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18275 soname_spec='${libname}${release}${shared_ext}$major' 18276 shlibpath_var=LD_LIBRARY_PATH 18277 ;; 18278 18279*) 18280 dynamic_linker=no 18281 ;; 18282esac 18283{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18284echo "${ECHO_T}$dynamic_linker" >&6; } 18285test "$dynamic_linker" = no && can_build_shared=no 18286 18287variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18288if test "$GCC" = yes; then 18289 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18290fi 18291 18292{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18293echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 18294hardcode_action_GCJ= 18295if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18296 test -n "$runpath_var_GCJ" || \ 18297 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 18298 18299 # We can hardcode non-existant directories. 18300 if test "$hardcode_direct_GCJ" != no && 18301 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18302 # have to relink, otherwise we might link with an installed library 18303 # when we should be linking with a yet-to-be-installed one 18304 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 18305 test "$hardcode_minus_L_GCJ" != no; then 18306 # Linking always hardcodes the temporary library directory. 18307 hardcode_action_GCJ=relink 18308 else 18309 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18310 hardcode_action_GCJ=immediate 18311 fi 18312else 18313 # We cannot hardcode anything, or else we can only hardcode existing 18314 # directories. 18315 hardcode_action_GCJ=unsupported 18316fi 18317{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 18318echo "${ECHO_T}$hardcode_action_GCJ" >&6; } 18319 18320if test "$hardcode_action_GCJ" = relink; then 18321 # Fast installation is not supported 18322 enable_fast_install=no 18323elif test "$shlibpath_overrides_runpath" = yes || 18324 test "$enable_shared" = no; then 18325 # Fast installation is not necessary 18326 enable_fast_install=needless 18327fi 18328 18329 18330# The else clause should only fire when bootstrapping the 18331# libtool distribution, otherwise you forgot to ship ltmain.sh 18332# with your package, and you will get complaints that there are 18333# no rules to generate ltmain.sh. 18334if test -f "$ltmain"; then 18335 # See if we are running on zsh, and set the options which allow our commands through 18336 # without removal of \ escapes. 18337 if test -n "${ZSH_VERSION+set}" ; then 18338 setopt NO_GLOB_SUBST 18339 fi 18340 # Now quote all the things that may contain metacharacters while being 18341 # careful not to overquote the AC_SUBSTed values. We take copies of the 18342 # variables and quote the copies for generation of the libtool script. 18343 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18344 SED SHELL STRIP \ 18345 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18346 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18347 deplibs_check_method reload_flag reload_cmds need_locks \ 18348 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18349 lt_cv_sys_global_symbol_to_c_name_address \ 18350 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18351 old_postinstall_cmds old_postuninstall_cmds \ 18352 compiler_GCJ \ 18353 CC_GCJ \ 18354 LD_GCJ \ 18355 lt_prog_compiler_wl_GCJ \ 18356 lt_prog_compiler_pic_GCJ \ 18357 lt_prog_compiler_static_GCJ \ 18358 lt_prog_compiler_no_builtin_flag_GCJ \ 18359 export_dynamic_flag_spec_GCJ \ 18360 thread_safe_flag_spec_GCJ \ 18361 whole_archive_flag_spec_GCJ \ 18362 enable_shared_with_static_runtimes_GCJ \ 18363 old_archive_cmds_GCJ \ 18364 old_archive_from_new_cmds_GCJ \ 18365 predep_objects_GCJ \ 18366 postdep_objects_GCJ \ 18367 predeps_GCJ \ 18368 postdeps_GCJ \ 18369 compiler_lib_search_path_GCJ \ 18370 archive_cmds_GCJ \ 18371 archive_expsym_cmds_GCJ \ 18372 postinstall_cmds_GCJ \ 18373 postuninstall_cmds_GCJ \ 18374 old_archive_from_expsyms_cmds_GCJ \ 18375 allow_undefined_flag_GCJ \ 18376 no_undefined_flag_GCJ \ 18377 export_symbols_cmds_GCJ \ 18378 hardcode_libdir_flag_spec_GCJ \ 18379 hardcode_libdir_flag_spec_ld_GCJ \ 18380 hardcode_libdir_separator_GCJ \ 18381 hardcode_automatic_GCJ \ 18382 module_cmds_GCJ \ 18383 module_expsym_cmds_GCJ \ 18384 lt_cv_prog_compiler_c_o_GCJ \ 18385 exclude_expsyms_GCJ \ 18386 include_expsyms_GCJ; do 18387 18388 case $var in 18389 old_archive_cmds_GCJ | \ 18390 old_archive_from_new_cmds_GCJ | \ 18391 archive_cmds_GCJ | \ 18392 archive_expsym_cmds_GCJ | \ 18393 module_cmds_GCJ | \ 18394 module_expsym_cmds_GCJ | \ 18395 old_archive_from_expsyms_cmds_GCJ | \ 18396 export_symbols_cmds_GCJ | \ 18397 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18398 postinstall_cmds | postuninstall_cmds | \ 18399 old_postinstall_cmds | old_postuninstall_cmds | \ 18400 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18401 # Double-quote double-evaled strings. 18402 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18403 ;; 18404 *) 18405 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18406 ;; 18407 esac 18408 done 18409 18410 case $lt_echo in 18411 *'\$0 --fallback-echo"') 18412 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18413 ;; 18414 esac 18415 18416cfgfile="$ofile" 18417 18418 cat <<__EOF__ >> "$cfgfile" 18419# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18420 18421# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18422 18423# Shell to use when invoking shell scripts. 18424SHELL=$lt_SHELL 18425 18426# Whether or not to build shared libraries. 18427build_libtool_libs=$enable_shared 18428 18429# Whether or not to build static libraries. 18430build_old_libs=$enable_static 18431 18432# Whether or not to add -lc for building shared libraries. 18433build_libtool_need_lc=$archive_cmds_need_lc_GCJ 18434 18435# Whether or not to disallow shared libs when runtime libs are static 18436allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 18437 18438# Whether or not to optimize for fast installation. 18439fast_install=$enable_fast_install 18440 18441# The host system. 18442host_alias=$host_alias 18443host=$host 18444host_os=$host_os 18445 18446# The build system. 18447build_alias=$build_alias 18448build=$build 18449build_os=$build_os 18450 18451# An echo program that does not interpret backslashes. 18452echo=$lt_echo 18453 18454# The archiver. 18455AR=$lt_AR 18456AR_FLAGS=$lt_AR_FLAGS 18457 18458# A C compiler. 18459LTCC=$lt_LTCC 18460 18461# LTCC compiler flags. 18462LTCFLAGS=$lt_LTCFLAGS 18463 18464# A language-specific compiler. 18465CC=$lt_compiler_GCJ 18466 18467# Is the compiler the GNU C compiler? 18468with_gcc=$GCC_GCJ 18469 18470# An ERE matcher. 18471EGREP=$lt_EGREP 18472 18473# The linker used to build libraries. 18474LD=$lt_LD_GCJ 18475 18476# Whether we need hard or soft links. 18477LN_S=$lt_LN_S 18478 18479# A BSD-compatible nm program. 18480NM=$lt_NM 18481 18482# A symbol stripping program 18483STRIP=$lt_STRIP 18484 18485# Used to examine libraries when file_magic_cmd begins "file" 18486MAGIC_CMD=$MAGIC_CMD 18487 18488# Used on cygwin: DLL creation program. 18489DLLTOOL="$DLLTOOL" 18490 18491# Used on cygwin: object dumper. 18492OBJDUMP="$OBJDUMP" 18493 18494# Used on cygwin: assembler. 18495AS="$AS" 18496 18497# The name of the directory that contains temporary libtool files. 18498objdir=$objdir 18499 18500# How to create reloadable object files. 18501reload_flag=$lt_reload_flag 18502reload_cmds=$lt_reload_cmds 18503 18504# How to pass a linker flag through the compiler. 18505wl=$lt_lt_prog_compiler_wl_GCJ 18506 18507# Object file suffix (normally "o"). 18508objext="$ac_objext" 18509 18510# Old archive suffix (normally "a"). 18511libext="$libext" 18512 18513# Shared library suffix (normally ".so"). 18514shrext_cmds='$shrext_cmds' 18515 18516# Executable file suffix (normally ""). 18517exeext="$exeext" 18518 18519# Additional compiler flags for building library objects. 18520pic_flag=$lt_lt_prog_compiler_pic_GCJ 18521pic_mode=$pic_mode 18522 18523# What is the maximum length of a command? 18524max_cmd_len=$lt_cv_sys_max_cmd_len 18525 18526# Does compiler simultaneously support -c and -o options? 18527compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 18528 18529# Must we lock files when doing compilation? 18530need_locks=$lt_need_locks 18531 18532# Do we need the lib prefix for modules? 18533need_lib_prefix=$need_lib_prefix 18534 18535# Do we need a version for libraries? 18536need_version=$need_version 18537 18538# Whether dlopen is supported. 18539dlopen_support=$enable_dlopen 18540 18541# Whether dlopen of programs is supported. 18542dlopen_self=$enable_dlopen_self 18543 18544# Whether dlopen of statically linked programs is supported. 18545dlopen_self_static=$enable_dlopen_self_static 18546 18547# Compiler flag to prevent dynamic linking. 18548link_static_flag=$lt_lt_prog_compiler_static_GCJ 18549 18550# Compiler flag to turn off builtin functions. 18551no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 18552 18553# Compiler flag to allow reflexive dlopens. 18554export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 18555 18556# Compiler flag to generate shared objects directly from archives. 18557whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 18558 18559# Compiler flag to generate thread-safe objects. 18560thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 18561 18562# Library versioning type. 18563version_type=$version_type 18564 18565# Format of library name prefix. 18566libname_spec=$lt_libname_spec 18567 18568# List of archive names. First name is the real one, the rest are links. 18569# The last name is the one that the linker finds with -lNAME. 18570library_names_spec=$lt_library_names_spec 18571 18572# The coded name of the library, if different from the real name. 18573soname_spec=$lt_soname_spec 18574 18575# Commands used to build and install an old-style archive. 18576RANLIB=$lt_RANLIB 18577old_archive_cmds=$lt_old_archive_cmds_GCJ 18578old_postinstall_cmds=$lt_old_postinstall_cmds 18579old_postuninstall_cmds=$lt_old_postuninstall_cmds 18580 18581# Create an old-style archive from a shared archive. 18582old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 18583 18584# Create a temporary old-style archive to link instead of a shared archive. 18585old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 18586 18587# Commands used to build and install a shared archive. 18588archive_cmds=$lt_archive_cmds_GCJ 18589archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 18590postinstall_cmds=$lt_postinstall_cmds 18591postuninstall_cmds=$lt_postuninstall_cmds 18592 18593# Commands used to build a loadable module (assumed same as above if empty) 18594module_cmds=$lt_module_cmds_GCJ 18595module_expsym_cmds=$lt_module_expsym_cmds_GCJ 18596 18597# Commands to strip libraries. 18598old_striplib=$lt_old_striplib 18599striplib=$lt_striplib 18600 18601# Dependencies to place before the objects being linked to create a 18602# shared library. 18603predep_objects=$lt_predep_objects_GCJ 18604 18605# Dependencies to place after the objects being linked to create a 18606# shared library. 18607postdep_objects=$lt_postdep_objects_GCJ 18608 18609# Dependencies to place before the objects being linked to create a 18610# shared library. 18611predeps=$lt_predeps_GCJ 18612 18613# Dependencies to place after the objects being linked to create a 18614# shared library. 18615postdeps=$lt_postdeps_GCJ 18616 18617# The library search path used internally by the compiler when linking 18618# a shared library. 18619compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 18620 18621# Method to check whether dependent libraries are shared objects. 18622deplibs_check_method=$lt_deplibs_check_method 18623 18624# Command to use when deplibs_check_method == file_magic. 18625file_magic_cmd=$lt_file_magic_cmd 18626 18627# Flag that allows shared libraries with undefined symbols to be built. 18628allow_undefined_flag=$lt_allow_undefined_flag_GCJ 18629 18630# Flag that forces no undefined symbols. 18631no_undefined_flag=$lt_no_undefined_flag_GCJ 18632 18633# Commands used to finish a libtool library installation in a directory. 18634finish_cmds=$lt_finish_cmds 18635 18636# Same as above, but a single script fragment to be evaled but not shown. 18637finish_eval=$lt_finish_eval 18638 18639# Take the output of nm and produce a listing of raw symbols and C names. 18640global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18641 18642# Transform the output of nm in a proper C declaration 18643global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18644 18645# Transform the output of nm in a C name address pair 18646global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18647 18648# This is the shared library runtime path variable. 18649runpath_var=$runpath_var 18650 18651# This is the shared library path variable. 18652shlibpath_var=$shlibpath_var 18653 18654# Is shlibpath searched before the hard-coded library search path? 18655shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18656 18657# How to hardcode a shared library path into an executable. 18658hardcode_action=$hardcode_action_GCJ 18659 18660# Whether we should hardcode library paths into libraries. 18661hardcode_into_libs=$hardcode_into_libs 18662 18663# Flag to hardcode \$libdir into a binary during linking. 18664# This must work even if \$libdir does not exist. 18665hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 18666 18667# If ld is used when linking, flag to hardcode \$libdir into 18668# a binary during linking. This must work even if \$libdir does 18669# not exist. 18670hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 18671 18672# Whether we need a single -rpath flag with a separated argument. 18673hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 18674 18675# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18676# resulting binary. 18677hardcode_direct=$hardcode_direct_GCJ 18678 18679# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18680# resulting binary. 18681hardcode_minus_L=$hardcode_minus_L_GCJ 18682 18683# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18684# the resulting binary. 18685hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 18686 18687# Set to yes if building a shared library automatically hardcodes DIR into the library 18688# and all subsequent libraries and executables linked against it. 18689hardcode_automatic=$hardcode_automatic_GCJ 18690 18691# Variables whose values should be saved in libtool wrapper scripts and 18692# restored at relink time. 18693variables_saved_for_relink="$variables_saved_for_relink" 18694 18695# Whether libtool must link a program against all its dependency libraries. 18696link_all_deplibs=$link_all_deplibs_GCJ 18697 18698# Compile-time system search path for libraries 18699sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18700 18701# Run-time system search path for libraries 18702sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18703 18704# Fix the shell variable \$srcfile for the compiler. 18705fix_srcfile_path="$fix_srcfile_path_GCJ" 18706 18707# Set to yes if exported symbols are required. 18708always_export_symbols=$always_export_symbols_GCJ 18709 18710# The commands to list exported symbols. 18711export_symbols_cmds=$lt_export_symbols_cmds_GCJ 18712 18713# The commands to extract the exported symbol list from a shared archive. 18714extract_expsyms_cmds=$lt_extract_expsyms_cmds 18715 18716# Symbols that should not be listed in the preloaded symbols. 18717exclude_expsyms=$lt_exclude_expsyms_GCJ 18718 18719# Symbols that must always be exported. 18720include_expsyms=$lt_include_expsyms_GCJ 18721 18722# ### END LIBTOOL TAG CONFIG: $tagname 18723 18724__EOF__ 18725 18726 18727else 18728 # If there is no Makefile yet, we rely on a make rule to execute 18729 # `config.status --recheck' to rerun these tests and create the 18730 # libtool script then. 18731 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18732 if test -f "$ltmain_in"; then 18733 test -f Makefile && make "$ltmain" 18734 fi 18735fi 18736 18737 18738ac_ext=c 18739ac_cpp='$CPP $CPPFLAGS' 18740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18742ac_compiler_gnu=$ac_cv_c_compiler_gnu 18743 18744CC="$lt_save_CC" 18745 18746 else 18747 tagname="" 18748 fi 18749 ;; 18750 18751 RC) 18752 18753 18754# Source file extension for RC test sources. 18755ac_ext=rc 18756 18757# Object file extension for compiled RC test sources. 18758objext=o 18759objext_RC=$objext 18760 18761# Code to be used in simple compile tests 18762lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 18763 18764# Code to be used in simple link tests 18765lt_simple_link_test_code="$lt_simple_compile_test_code" 18766 18767# ltmain only uses $CC for tagged configurations so make sure $CC is set. 18768 18769# If no C compiler was specified, use CC. 18770LTCC=${LTCC-"$CC"} 18771 18772# If no C compiler flags were specified, use CFLAGS. 18773LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 18774 18775# Allow CC to be a program name with arguments. 18776compiler=$CC 18777 18778 18779# save warnings/boilerplate of simple test code 18780ac_outfile=conftest.$ac_objext 18781printf "$lt_simple_compile_test_code" >conftest.$ac_ext 18782eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18783_lt_compiler_boilerplate=`cat conftest.err` 18784$rm conftest* 18785 18786ac_outfile=conftest.$ac_objext 18787printf "$lt_simple_link_test_code" >conftest.$ac_ext 18788eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18789_lt_linker_boilerplate=`cat conftest.err` 18790$rm conftest* 18791 18792 18793# Allow CC to be a program name with arguments. 18794lt_save_CC="$CC" 18795CC=${RC-"windres"} 18796compiler=$CC 18797compiler_RC=$CC 18798for cc_temp in $compiler""; do 18799 case $cc_temp in 18800 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18801 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18802 \-*) ;; 18803 *) break;; 18804 esac 18805done 18806cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 18807 18808lt_cv_prog_compiler_c_o_RC=yes 18809 18810# The else clause should only fire when bootstrapping the 18811# libtool distribution, otherwise you forgot to ship ltmain.sh 18812# with your package, and you will get complaints that there are 18813# no rules to generate ltmain.sh. 18814if test -f "$ltmain"; then 18815 # See if we are running on zsh, and set the options which allow our commands through 18816 # without removal of \ escapes. 18817 if test -n "${ZSH_VERSION+set}" ; then 18818 setopt NO_GLOB_SUBST 18819 fi 18820 # Now quote all the things that may contain metacharacters while being 18821 # careful not to overquote the AC_SUBSTed values. We take copies of the 18822 # variables and quote the copies for generation of the libtool script. 18823 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18824 SED SHELL STRIP \ 18825 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18826 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18827 deplibs_check_method reload_flag reload_cmds need_locks \ 18828 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18829 lt_cv_sys_global_symbol_to_c_name_address \ 18830 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18831 old_postinstall_cmds old_postuninstall_cmds \ 18832 compiler_RC \ 18833 CC_RC \ 18834 LD_RC \ 18835 lt_prog_compiler_wl_RC \ 18836 lt_prog_compiler_pic_RC \ 18837 lt_prog_compiler_static_RC \ 18838 lt_prog_compiler_no_builtin_flag_RC \ 18839 export_dynamic_flag_spec_RC \ 18840 thread_safe_flag_spec_RC \ 18841 whole_archive_flag_spec_RC \ 18842 enable_shared_with_static_runtimes_RC \ 18843 old_archive_cmds_RC \ 18844 old_archive_from_new_cmds_RC \ 18845 predep_objects_RC \ 18846 postdep_objects_RC \ 18847 predeps_RC \ 18848 postdeps_RC \ 18849 compiler_lib_search_path_RC \ 18850 archive_cmds_RC \ 18851 archive_expsym_cmds_RC \ 18852 postinstall_cmds_RC \ 18853 postuninstall_cmds_RC \ 18854 old_archive_from_expsyms_cmds_RC \ 18855 allow_undefined_flag_RC \ 18856 no_undefined_flag_RC \ 18857 export_symbols_cmds_RC \ 18858 hardcode_libdir_flag_spec_RC \ 18859 hardcode_libdir_flag_spec_ld_RC \ 18860 hardcode_libdir_separator_RC \ 18861 hardcode_automatic_RC \ 18862 module_cmds_RC \ 18863 module_expsym_cmds_RC \ 18864 lt_cv_prog_compiler_c_o_RC \ 18865 exclude_expsyms_RC \ 18866 include_expsyms_RC; do 18867 18868 case $var in 18869 old_archive_cmds_RC | \ 18870 old_archive_from_new_cmds_RC | \ 18871 archive_cmds_RC | \ 18872 archive_expsym_cmds_RC | \ 18873 module_cmds_RC | \ 18874 module_expsym_cmds_RC | \ 18875 old_archive_from_expsyms_cmds_RC | \ 18876 export_symbols_cmds_RC | \ 18877 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18878 postinstall_cmds | postuninstall_cmds | \ 18879 old_postinstall_cmds | old_postuninstall_cmds | \ 18880 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18881 # Double-quote double-evaled strings. 18882 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18883 ;; 18884 *) 18885 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18886 ;; 18887 esac 18888 done 18889 18890 case $lt_echo in 18891 *'\$0 --fallback-echo"') 18892 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18893 ;; 18894 esac 18895 18896cfgfile="$ofile" 18897 18898 cat <<__EOF__ >> "$cfgfile" 18899# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18900 18901# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18902 18903# Shell to use when invoking shell scripts. 18904SHELL=$lt_SHELL 18905 18906# Whether or not to build shared libraries. 18907build_libtool_libs=$enable_shared 18908 18909# Whether or not to build static libraries. 18910build_old_libs=$enable_static 18911 18912# Whether or not to add -lc for building shared libraries. 18913build_libtool_need_lc=$archive_cmds_need_lc_RC 18914 18915# Whether or not to disallow shared libs when runtime libs are static 18916allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 18917 18918# Whether or not to optimize for fast installation. 18919fast_install=$enable_fast_install 18920 18921# The host system. 18922host_alias=$host_alias 18923host=$host 18924host_os=$host_os 18925 18926# The build system. 18927build_alias=$build_alias 18928build=$build 18929build_os=$build_os 18930 18931# An echo program that does not interpret backslashes. 18932echo=$lt_echo 18933 18934# The archiver. 18935AR=$lt_AR 18936AR_FLAGS=$lt_AR_FLAGS 18937 18938# A C compiler. 18939LTCC=$lt_LTCC 18940 18941# LTCC compiler flags. 18942LTCFLAGS=$lt_LTCFLAGS 18943 18944# A language-specific compiler. 18945CC=$lt_compiler_RC 18946 18947# Is the compiler the GNU C compiler? 18948with_gcc=$GCC_RC 18949 18950# An ERE matcher. 18951EGREP=$lt_EGREP 18952 18953# The linker used to build libraries. 18954LD=$lt_LD_RC 18955 18956# Whether we need hard or soft links. 18957LN_S=$lt_LN_S 18958 18959# A BSD-compatible nm program. 18960NM=$lt_NM 18961 18962# A symbol stripping program 18963STRIP=$lt_STRIP 18964 18965# Used to examine libraries when file_magic_cmd begins "file" 18966MAGIC_CMD=$MAGIC_CMD 18967 18968# Used on cygwin: DLL creation program. 18969DLLTOOL="$DLLTOOL" 18970 18971# Used on cygwin: object dumper. 18972OBJDUMP="$OBJDUMP" 18973 18974# Used on cygwin: assembler. 18975AS="$AS" 18976 18977# The name of the directory that contains temporary libtool files. 18978objdir=$objdir 18979 18980# How to create reloadable object files. 18981reload_flag=$lt_reload_flag 18982reload_cmds=$lt_reload_cmds 18983 18984# How to pass a linker flag through the compiler. 18985wl=$lt_lt_prog_compiler_wl_RC 18986 18987# Object file suffix (normally "o"). 18988objext="$ac_objext" 18989 18990# Old archive suffix (normally "a"). 18991libext="$libext" 18992 18993# Shared library suffix (normally ".so"). 18994shrext_cmds='$shrext_cmds' 18995 18996# Executable file suffix (normally ""). 18997exeext="$exeext" 18998 18999# Additional compiler flags for building library objects. 19000pic_flag=$lt_lt_prog_compiler_pic_RC 19001pic_mode=$pic_mode 19002 19003# What is the maximum length of a command? 19004max_cmd_len=$lt_cv_sys_max_cmd_len 19005 19006# Does compiler simultaneously support -c and -o options? 19007compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19008 19009# Must we lock files when doing compilation? 19010need_locks=$lt_need_locks 19011 19012# Do we need the lib prefix for modules? 19013need_lib_prefix=$need_lib_prefix 19014 19015# Do we need a version for libraries? 19016need_version=$need_version 19017 19018# Whether dlopen is supported. 19019dlopen_support=$enable_dlopen 19020 19021# Whether dlopen of programs is supported. 19022dlopen_self=$enable_dlopen_self 19023 19024# Whether dlopen of statically linked programs is supported. 19025dlopen_self_static=$enable_dlopen_self_static 19026 19027# Compiler flag to prevent dynamic linking. 19028link_static_flag=$lt_lt_prog_compiler_static_RC 19029 19030# Compiler flag to turn off builtin functions. 19031no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19032 19033# Compiler flag to allow reflexive dlopens. 19034export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19035 19036# Compiler flag to generate shared objects directly from archives. 19037whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19038 19039# Compiler flag to generate thread-safe objects. 19040thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19041 19042# Library versioning type. 19043version_type=$version_type 19044 19045# Format of library name prefix. 19046libname_spec=$lt_libname_spec 19047 19048# List of archive names. First name is the real one, the rest are links. 19049# The last name is the one that the linker finds with -lNAME. 19050library_names_spec=$lt_library_names_spec 19051 19052# The coded name of the library, if different from the real name. 19053soname_spec=$lt_soname_spec 19054 19055# Commands used to build and install an old-style archive. 19056RANLIB=$lt_RANLIB 19057old_archive_cmds=$lt_old_archive_cmds_RC 19058old_postinstall_cmds=$lt_old_postinstall_cmds 19059old_postuninstall_cmds=$lt_old_postuninstall_cmds 19060 19061# Create an old-style archive from a shared archive. 19062old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19063 19064# Create a temporary old-style archive to link instead of a shared archive. 19065old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19066 19067# Commands used to build and install a shared archive. 19068archive_cmds=$lt_archive_cmds_RC 19069archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19070postinstall_cmds=$lt_postinstall_cmds 19071postuninstall_cmds=$lt_postuninstall_cmds 19072 19073# Commands used to build a loadable module (assumed same as above if empty) 19074module_cmds=$lt_module_cmds_RC 19075module_expsym_cmds=$lt_module_expsym_cmds_RC 19076 19077# Commands to strip libraries. 19078old_striplib=$lt_old_striplib 19079striplib=$lt_striplib 19080 19081# Dependencies to place before the objects being linked to create a 19082# shared library. 19083predep_objects=$lt_predep_objects_RC 19084 19085# Dependencies to place after the objects being linked to create a 19086# shared library. 19087postdep_objects=$lt_postdep_objects_RC 19088 19089# Dependencies to place before the objects being linked to create a 19090# shared library. 19091predeps=$lt_predeps_RC 19092 19093# Dependencies to place after the objects being linked to create a 19094# shared library. 19095postdeps=$lt_postdeps_RC 19096 19097# The library search path used internally by the compiler when linking 19098# a shared library. 19099compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19100 19101# Method to check whether dependent libraries are shared objects. 19102deplibs_check_method=$lt_deplibs_check_method 19103 19104# Command to use when deplibs_check_method == file_magic. 19105file_magic_cmd=$lt_file_magic_cmd 19106 19107# Flag that allows shared libraries with undefined symbols to be built. 19108allow_undefined_flag=$lt_allow_undefined_flag_RC 19109 19110# Flag that forces no undefined symbols. 19111no_undefined_flag=$lt_no_undefined_flag_RC 19112 19113# Commands used to finish a libtool library installation in a directory. 19114finish_cmds=$lt_finish_cmds 19115 19116# Same as above, but a single script fragment to be evaled but not shown. 19117finish_eval=$lt_finish_eval 19118 19119# Take the output of nm and produce a listing of raw symbols and C names. 19120global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19121 19122# Transform the output of nm in a proper C declaration 19123global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19124 19125# Transform the output of nm in a C name address pair 19126global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19127 19128# This is the shared library runtime path variable. 19129runpath_var=$runpath_var 19130 19131# This is the shared library path variable. 19132shlibpath_var=$shlibpath_var 19133 19134# Is shlibpath searched before the hard-coded library search path? 19135shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19136 19137# How to hardcode a shared library path into an executable. 19138hardcode_action=$hardcode_action_RC 19139 19140# Whether we should hardcode library paths into libraries. 19141hardcode_into_libs=$hardcode_into_libs 19142 19143# Flag to hardcode \$libdir into a binary during linking. 19144# This must work even if \$libdir does not exist. 19145hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19146 19147# If ld is used when linking, flag to hardcode \$libdir into 19148# a binary during linking. This must work even if \$libdir does 19149# not exist. 19150hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19151 19152# Whether we need a single -rpath flag with a separated argument. 19153hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19154 19155# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19156# resulting binary. 19157hardcode_direct=$hardcode_direct_RC 19158 19159# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19160# resulting binary. 19161hardcode_minus_L=$hardcode_minus_L_RC 19162 19163# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19164# the resulting binary. 19165hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19166 19167# Set to yes if building a shared library automatically hardcodes DIR into the library 19168# and all subsequent libraries and executables linked against it. 19169hardcode_automatic=$hardcode_automatic_RC 19170 19171# Variables whose values should be saved in libtool wrapper scripts and 19172# restored at relink time. 19173variables_saved_for_relink="$variables_saved_for_relink" 19174 19175# Whether libtool must link a program against all its dependency libraries. 19176link_all_deplibs=$link_all_deplibs_RC 19177 19178# Compile-time system search path for libraries 19179sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19180 19181# Run-time system search path for libraries 19182sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19183 19184# Fix the shell variable \$srcfile for the compiler. 19185fix_srcfile_path="$fix_srcfile_path_RC" 19186 19187# Set to yes if exported symbols are required. 19188always_export_symbols=$always_export_symbols_RC 19189 19190# The commands to list exported symbols. 19191export_symbols_cmds=$lt_export_symbols_cmds_RC 19192 19193# The commands to extract the exported symbol list from a shared archive. 19194extract_expsyms_cmds=$lt_extract_expsyms_cmds 19195 19196# Symbols that should not be listed in the preloaded symbols. 19197exclude_expsyms=$lt_exclude_expsyms_RC 19198 19199# Symbols that must always be exported. 19200include_expsyms=$lt_include_expsyms_RC 19201 19202# ### END LIBTOOL TAG CONFIG: $tagname 19203 19204__EOF__ 19205 19206 19207else 19208 # If there is no Makefile yet, we rely on a make rule to execute 19209 # `config.status --recheck' to rerun these tests and create the 19210 # libtool script then. 19211 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19212 if test -f "$ltmain_in"; then 19213 test -f Makefile && make "$ltmain" 19214 fi 19215fi 19216 19217 19218ac_ext=c 19219ac_cpp='$CPP $CPPFLAGS' 19220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19222ac_compiler_gnu=$ac_cv_c_compiler_gnu 19223 19224CC="$lt_save_CC" 19225 19226 ;; 19227 19228 *) 19229 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19230echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19231 { (exit 1); exit 1; }; } 19232 ;; 19233 esac 19234 19235 # Append the new tag name to the list of available tags. 19236 if test -n "$tagname" ; then 19237 available_tags="$available_tags $tagname" 19238 fi 19239 fi 19240 done 19241 IFS="$lt_save_ifs" 19242 19243 # Now substitute the updated list of available tags. 19244 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19245 mv "${ofile}T" "$ofile" 19246 chmod +x "$ofile" 19247 else 19248 rm -f "${ofile}T" 19249 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19250echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19251 { (exit 1); exit 1; }; } 19252 fi 19253fi 19254 19255 19256 19257# This can be used to rebuild libtool when needed 19258LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19259 19260# Always use our own libtool. 19261LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19262 19263# Prevent multiple expansion 19264 19265 19266 19267 19268 19269 19270 19271 19272 19273 19274 19275 19276 19277 19278 19279 19280 19281 19282 19283 19284 19285 if test "X$prefix" = "XNONE"; then 19286 acl_final_prefix="$ac_default_prefix" 19287 else 19288 acl_final_prefix="$prefix" 19289 fi 19290 if test "X$exec_prefix" = "XNONE"; then 19291 acl_final_exec_prefix='${prefix}' 19292 else 19293 acl_final_exec_prefix="$exec_prefix" 19294 fi 19295 acl_save_prefix="$prefix" 19296 prefix="$acl_final_prefix" 19297 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 19298 prefix="$acl_save_prefix" 19299 19300 19301# Check whether --with-gnu-ld was given. 19302if test "${with_gnu_ld+set}" = set; then 19303 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 19304else 19305 with_gnu_ld=no 19306fi 19307 19308# Prepare PATH_SEPARATOR. 19309# The user is always right. 19310if test "${PATH_SEPARATOR+set}" != set; then 19311 echo "#! /bin/sh" >conf$$.sh 19312 echo "exit 0" >>conf$$.sh 19313 chmod +x conf$$.sh 19314 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 19315 PATH_SEPARATOR=';' 19316 else 19317 PATH_SEPARATOR=: 19318 fi 19319 rm -f conf$$.sh 19320fi 19321ac_prog=ld 19322if test "$GCC" = yes; then 19323 # Check if gcc -print-prog-name=ld gives a path. 19324 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5 19325echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; } 19326 case $host in 19327 *-*-mingw*) 19328 # gcc leaves a trailing carriage return which upsets mingw 19329 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 19330 *) 19331 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 19332 esac 19333 case $ac_prog in 19334 # Accept absolute paths. 19335 [\\/]* | [A-Za-z]:[\\/]*) 19336 re_direlt='/[^/][^/]*/\.\./' 19337 # Canonicalize the path of ld 19338 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 19339 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 19340 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 19341 done 19342 test -z "$LD" && LD="$ac_prog" 19343 ;; 19344 "") 19345 # If it fails, then pretend we aren't using GCC. 19346 ac_prog=ld 19347 ;; 19348 *) 19349 # If it is relative, then search for the first ld in PATH. 19350 with_gnu_ld=unknown 19351 ;; 19352 esac 19353elif test "$with_gnu_ld" = yes; then 19354 { echo "$as_me:$LINENO: checking for GNU ld" >&5 19355echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 19356else 19357 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 19358echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 19359fi 19360if test "${acl_cv_path_LD+set}" = set; then 19361 echo $ECHO_N "(cached) $ECHO_C" >&6 19362else 19363 if test -z "$LD"; then 19364 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 19365 for ac_dir in $PATH; do 19366 test -z "$ac_dir" && ac_dir=. 19367 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 19368 acl_cv_path_LD="$ac_dir/$ac_prog" 19369 # Check to see if the program is GNU ld. I'd rather use --version, 19370 # but apparently some GNU ld's only accept -v. 19371 # Break only if it was the GNU/non-GNU ld that we prefer. 19372 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in 19373 *GNU* | *'with BFD'*) 19374 test "$with_gnu_ld" != no && break ;; 19375 *) 19376 test "$with_gnu_ld" != yes && break ;; 19377 esac 19378 fi 19379 done 19380 IFS="$ac_save_ifs" 19381else 19382 acl_cv_path_LD="$LD" # Let the user override the test with a path. 19383fi 19384fi 19385 19386LD="$acl_cv_path_LD" 19387if test -n "$LD"; then 19388 { echo "$as_me:$LINENO: result: $LD" >&5 19389echo "${ECHO_T}$LD" >&6; } 19390else 19391 { echo "$as_me:$LINENO: result: no" >&5 19392echo "${ECHO_T}no" >&6; } 19393fi 19394test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 19395echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 19396 { (exit 1); exit 1; }; } 19397{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 19398echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 19399if test "${acl_cv_prog_gnu_ld+set}" = set; then 19400 echo $ECHO_N "(cached) $ECHO_C" >&6 19401else 19402 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 19403case `$LD -v 2>&1 </dev/null` in 19404*GNU* | *'with BFD'*) 19405 acl_cv_prog_gnu_ld=yes ;; 19406*) 19407 acl_cv_prog_gnu_ld=no ;; 19408esac 19409fi 19410{ echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 19411echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; } 19412with_gnu_ld=$acl_cv_prog_gnu_ld 19413 19414 19415 19416 19417 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5 19418echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; } 19419if test "${acl_cv_rpath+set}" = set; then 19420 echo $ECHO_N "(cached) $ECHO_C" >&6 19421else 19422 19423 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 19424 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 19425 . ./conftest.sh 19426 rm -f ./conftest.sh 19427 acl_cv_rpath=done 19428 19429fi 19430{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 19431echo "${ECHO_T}$acl_cv_rpath" >&6; } 19432 wl="$acl_cv_wl" 19433 libext="$acl_cv_libext" 19434 shlibext="$acl_cv_shlibext" 19435 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 19436 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 19437 hardcode_direct="$acl_cv_hardcode_direct" 19438 hardcode_minus_L="$acl_cv_hardcode_minus_L" 19439 # Check whether --enable-rpath was given. 19440if test "${enable_rpath+set}" = set; then 19441 enableval=$enable_rpath; : 19442else 19443 enable_rpath=yes 19444fi 19445 19446 19447 19448 acl_libdirstem=lib 19449 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` 19450 if test -n "$searchpath"; then 19451 acl_save_IFS="${IFS= }"; IFS=":" 19452 for searchdir in $searchpath; do 19453 if test -d "$searchdir"; then 19454 case "$searchdir" in 19455 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; 19456 *) searchdir=`cd "$searchdir" && pwd` 19457 case "$searchdir" in 19458 */lib64 ) acl_libdirstem=lib64 ;; 19459 esac ;; 19460 esac 19461 fi 19462 done 19463 IFS="$acl_save_IFS" 19464 fi 19465 19466 19467 19468 19469 19470 19471 { echo "$as_me:$LINENO: checking how to link with librpathx" >&5 19472echo $ECHO_N "checking how to link with librpathx... $ECHO_C" >&6; } 19473if test "${ac_cv_librpathx_libs+set}" = set; then 19474 echo $ECHO_N "(cached) $ECHO_C" >&6 19475else 19476 19477 19478 19479 19480 use_additional=yes 19481 19482 acl_save_prefix="$prefix" 19483 prefix="$acl_final_prefix" 19484 acl_save_exec_prefix="$exec_prefix" 19485 exec_prefix="$acl_final_exec_prefix" 19486 19487 eval additional_includedir=\"$includedir\" 19488 eval additional_libdir=\"$libdir\" 19489 19490 exec_prefix="$acl_save_exec_prefix" 19491 prefix="$acl_save_prefix" 19492 19493 19494# Check whether --with-librpathx-prefix was given. 19495if test "${with_librpathx_prefix+set}" = set; then 19496 withval=$with_librpathx_prefix; 19497 if test "X$withval" = "Xno"; then 19498 use_additional=no 19499 else 19500 if test "X$withval" = "X"; then 19501 19502 acl_save_prefix="$prefix" 19503 prefix="$acl_final_prefix" 19504 acl_save_exec_prefix="$exec_prefix" 19505 exec_prefix="$acl_final_exec_prefix" 19506 19507 eval additional_includedir=\"$includedir\" 19508 eval additional_libdir=\"$libdir\" 19509 19510 exec_prefix="$acl_save_exec_prefix" 19511 prefix="$acl_save_prefix" 19512 19513 else 19514 additional_includedir="$withval/include" 19515 additional_libdir="$withval/$acl_libdirstem" 19516 fi 19517 fi 19518 19519fi 19520 19521 LIBRPATHX= 19522 LTLIBRPATHX= 19523 INCRPATHX= 19524 rpathdirs= 19525 ltrpathdirs= 19526 names_already_handled= 19527 names_next_round='rpathx ' 19528 while test -n "$names_next_round"; do 19529 names_this_round="$names_next_round" 19530 names_next_round= 19531 for name in $names_this_round; do 19532 already_handled= 19533 for n in $names_already_handled; do 19534 if test "$n" = "$name"; then 19535 already_handled=yes 19536 break 19537 fi 19538 done 19539 if test -z "$already_handled"; then 19540 names_already_handled="$names_already_handled $name" 19541 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 19542 eval value=\"\$HAVE_LIB$uppername\" 19543 if test -n "$value"; then 19544 if test "$value" = yes; then 19545 eval value=\"\$LIB$uppername\" 19546 test -z "$value" || LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$value" 19547 eval value=\"\$LTLIB$uppername\" 19548 test -z "$value" || LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }$value" 19549 else 19550 : 19551 fi 19552 else 19553 found_dir= 19554 found_la= 19555 found_so= 19556 found_a= 19557 if test $use_additional = yes; then 19558 if test -n "$shlibext" \ 19559 && { test -f "$additional_libdir/lib$name.$shlibext" \ 19560 || { test "$shlibext" = dll \ 19561 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then 19562 found_dir="$additional_libdir" 19563 if test -f "$additional_libdir/lib$name.$shlibext"; then 19564 found_so="$additional_libdir/lib$name.$shlibext" 19565 else 19566 found_so="$additional_libdir/lib$name.dll.a" 19567 fi 19568 if test -f "$additional_libdir/lib$name.la"; then 19569 found_la="$additional_libdir/lib$name.la" 19570 fi 19571 else 19572 if test -f "$additional_libdir/lib$name.$libext"; then 19573 found_dir="$additional_libdir" 19574 found_a="$additional_libdir/lib$name.$libext" 19575 if test -f "$additional_libdir/lib$name.la"; then 19576 found_la="$additional_libdir/lib$name.la" 19577 fi 19578 fi 19579 fi 19580 fi 19581 if test "X$found_dir" = "X"; then 19582 for x in $LDFLAGS $LTLIBRPATHX; do 19583 19584 acl_save_prefix="$prefix" 19585 prefix="$acl_final_prefix" 19586 acl_save_exec_prefix="$exec_prefix" 19587 exec_prefix="$acl_final_exec_prefix" 19588 eval x=\"$x\" 19589 exec_prefix="$acl_save_exec_prefix" 19590 prefix="$acl_save_prefix" 19591 19592 case "$x" in 19593 -L*) 19594 dir=`echo "X$x" | sed -e 's/^X-L//'` 19595 if test -n "$shlibext" \ 19596 && { test -f "$dir/lib$name.$shlibext" \ 19597 || { test "$shlibext" = dll \ 19598 && test -f "$dir/lib$name.dll.a"; }; }; then 19599 found_dir="$dir" 19600 if test -f "$dir/lib$name.$shlibext"; then 19601 found_so="$dir/lib$name.$shlibext" 19602 else 19603 found_so="$dir/lib$name.dll.a" 19604 fi 19605 if test -f "$dir/lib$name.la"; then 19606 found_la="$dir/lib$name.la" 19607 fi 19608 else 19609 if test -f "$dir/lib$name.$libext"; then 19610 found_dir="$dir" 19611 found_a="$dir/lib$name.$libext" 19612 if test -f "$dir/lib$name.la"; then 19613 found_la="$dir/lib$name.la" 19614 fi 19615 fi 19616 fi 19617 ;; 19618 esac 19619 if test "X$found_dir" != "X"; then 19620 break 19621 fi 19622 done 19623 fi 19624 if test "X$found_dir" != "X"; then 19625 LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }-L$found_dir -l$name" 19626 if test "X$found_so" != "X"; then 19627 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then 19628 LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$found_so" 19629 else 19630 haveit= 19631 for x in $ltrpathdirs; do 19632 if test "X$x" = "X$found_dir"; then 19633 haveit=yes 19634 break 19635 fi 19636 done 19637 if test -z "$haveit"; then 19638 ltrpathdirs="$ltrpathdirs $found_dir" 19639 fi 19640 if test "$hardcode_direct" = yes; then 19641 LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$found_so" 19642 else 19643 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 19644 LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$found_so" 19645 haveit= 19646 for x in $rpathdirs; do 19647 if test "X$x" = "X$found_dir"; then 19648 haveit=yes 19649 break 19650 fi 19651 done 19652 if test -z "$haveit"; then 19653 rpathdirs="$rpathdirs $found_dir" 19654 fi 19655 else 19656 haveit= 19657 for x in $LDFLAGS $LIBRPATHX; do 19658 19659 acl_save_prefix="$prefix" 19660 prefix="$acl_final_prefix" 19661 acl_save_exec_prefix="$exec_prefix" 19662 exec_prefix="$acl_final_exec_prefix" 19663 eval x=\"$x\" 19664 exec_prefix="$acl_save_exec_prefix" 19665 prefix="$acl_save_prefix" 19666 19667 if test "X$x" = "X-L$found_dir"; then 19668 haveit=yes 19669 break 19670 fi 19671 done 19672 if test -z "$haveit"; then 19673 LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }-L$found_dir" 19674 fi 19675 if test "$hardcode_minus_L" != no; then 19676 LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$found_so" 19677 else 19678 LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }-l$name" 19679 fi 19680 fi 19681 fi 19682 fi 19683 else 19684 if test "X$found_a" != "X"; then 19685 LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$found_a" 19686 else 19687 LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }-L$found_dir -l$name" 19688 fi 19689 fi 19690 additional_includedir= 19691 case "$found_dir" in 19692 */$acl_libdirstem | */$acl_libdirstem/) 19693 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 19694 additional_includedir="$basedir/include" 19695 ;; 19696 esac 19697 if test "X$additional_includedir" != "X"; then 19698 if test "X$additional_includedir" != "X/usr/include"; then 19699 haveit= 19700 if test "X$additional_includedir" = "X/usr/local/include"; then 19701 if test -n "$GCC"; then 19702 case $host_os in 19703 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 19704 esac 19705 fi 19706 fi 19707 if test -z "$haveit"; then 19708 for x in $CPPFLAGS $INCRPATHX; do 19709 19710 acl_save_prefix="$prefix" 19711 prefix="$acl_final_prefix" 19712 acl_save_exec_prefix="$exec_prefix" 19713 exec_prefix="$acl_final_exec_prefix" 19714 eval x=\"$x\" 19715 exec_prefix="$acl_save_exec_prefix" 19716 prefix="$acl_save_prefix" 19717 19718 if test "X$x" = "X-I$additional_includedir"; then 19719 haveit=yes 19720 break 19721 fi 19722 done 19723 if test -z "$haveit"; then 19724 if test -d "$additional_includedir"; then 19725 INCRPATHX="${INCRPATHX}${INCRPATHX:+ }-I$additional_includedir" 19726 fi 19727 fi 19728 fi 19729 fi 19730 fi 19731 if test -n "$found_la"; then 19732 save_libdir="$libdir" 19733 case "$found_la" in 19734 */* | *\\*) . "$found_la" ;; 19735 *) . "./$found_la" ;; 19736 esac 19737 libdir="$save_libdir" 19738 for dep in $dependency_libs; do 19739 case "$dep" in 19740 -L*) 19741 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 19742 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then 19743 haveit= 19744 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then 19745 if test -n "$GCC"; then 19746 case $host_os in 19747 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 19748 esac 19749 fi 19750 fi 19751 if test -z "$haveit"; then 19752 haveit= 19753 for x in $LDFLAGS $LIBRPATHX; do 19754 19755 acl_save_prefix="$prefix" 19756 prefix="$acl_final_prefix" 19757 acl_save_exec_prefix="$exec_prefix" 19758 exec_prefix="$acl_final_exec_prefix" 19759 eval x=\"$x\" 19760 exec_prefix="$acl_save_exec_prefix" 19761 prefix="$acl_save_prefix" 19762 19763 if test "X$x" = "X-L$additional_libdir"; then 19764 haveit=yes 19765 break 19766 fi 19767 done 19768 if test -z "$haveit"; then 19769 if test -d "$additional_libdir"; then 19770 LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }-L$additional_libdir" 19771 fi 19772 fi 19773 haveit= 19774 for x in $LDFLAGS $LTLIBRPATHX; do 19775 19776 acl_save_prefix="$prefix" 19777 prefix="$acl_final_prefix" 19778 acl_save_exec_prefix="$exec_prefix" 19779 exec_prefix="$acl_final_exec_prefix" 19780 eval x=\"$x\" 19781 exec_prefix="$acl_save_exec_prefix" 19782 prefix="$acl_save_prefix" 19783 19784 if test "X$x" = "X-L$additional_libdir"; then 19785 haveit=yes 19786 break 19787 fi 19788 done 19789 if test -z "$haveit"; then 19790 if test -d "$additional_libdir"; then 19791 LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }-L$additional_libdir" 19792 fi 19793 fi 19794 fi 19795 fi 19796 ;; 19797 -R*) 19798 dir=`echo "X$dep" | sed -e 's/^X-R//'` 19799 if test "$enable_rpath" != no; then 19800 haveit= 19801 for x in $rpathdirs; do 19802 if test "X$x" = "X$dir"; then 19803 haveit=yes 19804 break 19805 fi 19806 done 19807 if test -z "$haveit"; then 19808 rpathdirs="$rpathdirs $dir" 19809 fi 19810 haveit= 19811 for x in $ltrpathdirs; do 19812 if test "X$x" = "X$dir"; then 19813 haveit=yes 19814 break 19815 fi 19816 done 19817 if test -z "$haveit"; then 19818 ltrpathdirs="$ltrpathdirs $dir" 19819 fi 19820 fi 19821 ;; 19822 -l*) 19823 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 19824 ;; 19825 *.la) 19826 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 19827 ;; 19828 *) 19829 LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$dep" 19830 LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }$dep" 19831 ;; 19832 esac 19833 done 19834 fi 19835 else 19836 LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }-l$name" 19837 LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }-l$name" 19838 fi 19839 fi 19840 fi 19841 done 19842 done 19843 if test "X$rpathdirs" != "X"; then 19844 if test -n "$hardcode_libdir_separator"; then 19845 alldirs= 19846 for found_dir in $rpathdirs; do 19847 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 19848 done 19849 acl_save_libdir="$libdir" 19850 libdir="$alldirs" 19851 eval flag=\"$hardcode_libdir_flag_spec\" 19852 libdir="$acl_save_libdir" 19853 LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$flag" 19854 else 19855 for found_dir in $rpathdirs; do 19856 acl_save_libdir="$libdir" 19857 libdir="$found_dir" 19858 eval flag=\"$hardcode_libdir_flag_spec\" 19859 libdir="$acl_save_libdir" 19860 LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$flag" 19861 done 19862 fi 19863 fi 19864 if test "X$ltrpathdirs" != "X"; then 19865 for found_dir in $ltrpathdirs; do 19866 LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }-R$found_dir" 19867 done 19868 fi 19869 19870 ac_cv_librpathx_libs="$LIBRPATHX" 19871 ac_cv_librpathx_ltlibs="$LTLIBRPATHX" 19872 ac_cv_librpathx_cppflags="$INCRPATHX" 19873 19874fi 19875{ echo "$as_me:$LINENO: result: $ac_cv_librpathx_libs" >&5 19876echo "${ECHO_T}$ac_cv_librpathx_libs" >&6; } 19877 LIBRPATHX="$ac_cv_librpathx_libs" 19878 LTLIBRPATHX="$ac_cv_librpathx_ltlibs" 19879 INCRPATHX="$ac_cv_librpathx_cppflags" 19880 19881 for element in $INCRPATHX; do 19882 haveit= 19883 for x in $CPPFLAGS; do 19884 19885 acl_save_prefix="$prefix" 19886 prefix="$acl_final_prefix" 19887 acl_save_exec_prefix="$exec_prefix" 19888 exec_prefix="$acl_final_exec_prefix" 19889 eval x=\"$x\" 19890 exec_prefix="$acl_save_exec_prefix" 19891 prefix="$acl_save_prefix" 19892 19893 if test "X$x" = "X$element"; then 19894 haveit=yes 19895 break 19896 fi 19897 done 19898 if test -z "$haveit"; then 19899 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 19900 fi 19901 done 19902 19903 19904 19905 HAVE_LIBRPATHX=yes 19906 19907 19908 19909 19910ac_config_files="$ac_config_files Makefile" 19911 19912cat >confcache <<\_ACEOF 19913# This file is a shell script that caches the results of configure 19914# tests run on this system so they can be shared between configure 19915# scripts and configure runs, see configure's option --config-cache. 19916# It is not useful on other systems. If it contains results you don't 19917# want to keep, you may remove or edit it. 19918# 19919# config.status only pays attention to the cache file if you give it 19920# the --recheck option to rerun configure. 19921# 19922# `ac_cv_env_foo' variables (set or unset) will be overridden when 19923# loading this file, other *unset* `ac_cv_foo' will be assigned the 19924# following values. 19925 19926_ACEOF 19927 19928# The following way of writing the cache mishandles newlines in values, 19929# but we know of no workaround that is simple, portable, and efficient. 19930# So, we kill variables containing newlines. 19931# Ultrix sh set writes to stderr and can't be redirected directly, 19932# and sets the high bit in the cache file unless we assign to the vars. 19933( 19934 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19935 eval ac_val=\$$ac_var 19936 case $ac_val in #( 19937 *${as_nl}*) 19938 case $ac_var in #( 19939 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 19940echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 19941 esac 19942 case $ac_var in #( 19943 _ | IFS | as_nl) ;; #( 19944 *) $as_unset $ac_var ;; 19945 esac ;; 19946 esac 19947 done 19948 19949 (set) 2>&1 | 19950 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19951 *${as_nl}ac_space=\ *) 19952 # `set' does not quote correctly, so add quotes (double-quote 19953 # substitution turns \\\\ into \\, and sed turns \\ into \). 19954 sed -n \ 19955 "s/'/'\\\\''/g; 19956 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19957 ;; #( 19958 *) 19959 # `set' quotes correctly as required by POSIX, so do not add quotes. 19960 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19961 ;; 19962 esac | 19963 sort 19964) | 19965 sed ' 19966 /^ac_cv_env_/b end 19967 t clear 19968 :clear 19969 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 19970 t end 19971 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19972 :end' >>confcache 19973if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19974 if test -w "$cache_file"; then 19975 test "x$cache_file" != "x/dev/null" && 19976 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 19977echo "$as_me: updating cache $cache_file" >&6;} 19978 cat confcache >$cache_file 19979 else 19980 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 19981echo "$as_me: not updating unwritable cache $cache_file" >&6;} 19982 fi 19983fi 19984rm -f confcache 19985 19986test "x$prefix" = xNONE && prefix=$ac_default_prefix 19987# Let make expand exec_prefix. 19988test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19989 19990# Transform confdefs.h into DEFS. 19991# Protect against shell expansion while executing Makefile rules. 19992# Protect against Makefile macro expansion. 19993# 19994# If the first sed substitution is executed (which looks for macros that 19995# take arguments), then branch to the quote section. Otherwise, 19996# look for a macro that doesn't take arguments. 19997ac_script=' 19998t clear 19999:clear 20000s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 20001t quote 20002s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 20003t quote 20004b any 20005:quote 20006s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 20007s/\[/\\&/g 20008s/\]/\\&/g 20009s/\$/$$/g 20010H 20011:any 20012${ 20013 g 20014 s/^\n// 20015 s/\n/ /g 20016 p 20017} 20018' 20019DEFS=`sed -n "$ac_script" confdefs.h` 20020 20021 20022ac_libobjs= 20023ac_ltlibobjs= 20024for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20025 # 1. Remove the extension, and $U if already installed. 20026 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20027 ac_i=`echo "$ac_i" | sed "$ac_script"` 20028 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20029 # will be set to the directory where LIBOBJS objects are built. 20030 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20031 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 20032done 20033LIBOBJS=$ac_libobjs 20034 20035LTLIBOBJS=$ac_ltlibobjs 20036 20037 20038if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20039 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 20040Usually this means the macro was only invoked conditionally." >&5 20041echo "$as_me: error: conditional \"AMDEP\" was never defined. 20042Usually this means the macro was only invoked conditionally." >&2;} 20043 { (exit 1); exit 1; }; } 20044fi 20045if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20046 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 20047Usually this means the macro was only invoked conditionally." >&5 20048echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 20049Usually this means the macro was only invoked conditionally." >&2;} 20050 { (exit 1); exit 1; }; } 20051fi 20052if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 20053 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 20054Usually this means the macro was only invoked conditionally." >&5 20055echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 20056Usually this means the macro was only invoked conditionally." >&2;} 20057 { (exit 1); exit 1; }; } 20058fi 20059 20060: ${CONFIG_STATUS=./config.status} 20061ac_clean_files_save=$ac_clean_files 20062ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20063{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 20064echo "$as_me: creating $CONFIG_STATUS" >&6;} 20065cat >$CONFIG_STATUS <<_ACEOF 20066#! $SHELL 20067# Generated by $as_me. 20068# Run this file to recreate the current configuration. 20069# Compiler output produced by configure, useful for debugging 20070# configure, is in config.log if it exists. 20071 20072debug=false 20073ac_cs_recheck=false 20074ac_cs_silent=false 20075SHELL=\${CONFIG_SHELL-$SHELL} 20076_ACEOF 20077 20078cat >>$CONFIG_STATUS <<\_ACEOF 20079## --------------------- ## 20080## M4sh Initialization. ## 20081## --------------------- ## 20082 20083# Be more Bourne compatible 20084DUALCASE=1; export DUALCASE # for MKS sh 20085if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 20086 emulate sh 20087 NULLCMD=: 20088 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 20089 # is contrary to our usage. Disable this feature. 20090 alias -g '${1+"$@"}'='"$@"' 20091 setopt NO_GLOB_SUBST 20092else 20093 case `(set -o) 2>/dev/null` in 20094 *posix*) set -o posix ;; 20095esac 20096 20097fi 20098 20099 20100 20101 20102# PATH needs CR 20103# Avoid depending upon Character Ranges. 20104as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20105as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20106as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20107as_cr_digits='0123456789' 20108as_cr_alnum=$as_cr_Letters$as_cr_digits 20109 20110# The user is always right. 20111if test "${PATH_SEPARATOR+set}" != set; then 20112 echo "#! /bin/sh" >conf$$.sh 20113 echo "exit 0" >>conf$$.sh 20114 chmod +x conf$$.sh 20115 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 20116 PATH_SEPARATOR=';' 20117 else 20118 PATH_SEPARATOR=: 20119 fi 20120 rm -f conf$$.sh 20121fi 20122 20123# Support unset when possible. 20124if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 20125 as_unset=unset 20126else 20127 as_unset=false 20128fi 20129 20130 20131# IFS 20132# We need space, tab and new line, in precisely that order. Quoting is 20133# there to prevent editors from complaining about space-tab. 20134# (If _AS_PATH_WALK were called with IFS unset, it would disable word 20135# splitting by setting IFS to empty value.) 20136as_nl=' 20137' 20138IFS=" "" $as_nl" 20139 20140# Find who we are. Look in the path if we contain no directory separator. 20141case $0 in 20142 *[\\/]* ) as_myself=$0 ;; 20143 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20144for as_dir in $PATH 20145do 20146 IFS=$as_save_IFS 20147 test -z "$as_dir" && as_dir=. 20148 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 20149done 20150IFS=$as_save_IFS 20151 20152 ;; 20153esac 20154# We did not find ourselves, most probably we were run as `sh COMMAND' 20155# in which case we are not to be found in the path. 20156if test "x$as_myself" = x; then 20157 as_myself=$0 20158fi 20159if test ! -f "$as_myself"; then 20160 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20161 { (exit 1); exit 1; } 20162fi 20163 20164# Work around bugs in pre-3.0 UWIN ksh. 20165for as_var in ENV MAIL MAILPATH 20166do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 20167done 20168PS1='$ ' 20169PS2='> ' 20170PS4='+ ' 20171 20172# NLS nuisances. 20173for as_var in \ 20174 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 20175 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 20176 LC_TELEPHONE LC_TIME 20177do 20178 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 20179 eval $as_var=C; export $as_var 20180 else 20181 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 20182 fi 20183done 20184 20185# Required to use basename. 20186if expr a : '\(a\)' >/dev/null 2>&1 && 20187 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20188 as_expr=expr 20189else 20190 as_expr=false 20191fi 20192 20193if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20194 as_basename=basename 20195else 20196 as_basename=false 20197fi 20198 20199 20200# Name of the executable. 20201as_me=`$as_basename -- "$0" || 20202$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20203 X"$0" : 'X\(//\)$' \| \ 20204 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20205echo X/"$0" | 20206 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20207 s//\1/ 20208 q 20209 } 20210 /^X\/\(\/\/\)$/{ 20211 s//\1/ 20212 q 20213 } 20214 /^X\/\(\/\).*/{ 20215 s//\1/ 20216 q 20217 } 20218 s/.*/./; q'` 20219 20220# CDPATH. 20221$as_unset CDPATH 20222 20223 20224 20225 as_lineno_1=$LINENO 20226 as_lineno_2=$LINENO 20227 test "x$as_lineno_1" != "x$as_lineno_2" && 20228 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 20229 20230 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 20231 # uniformly replaced by the line number. The first 'sed' inserts a 20232 # line-number line after each line using $LINENO; the second 'sed' 20233 # does the real work. The second script uses 'N' to pair each 20234 # line-number line with the line containing $LINENO, and appends 20235 # trailing '-' during substitution so that $LINENO is not a special 20236 # case at line end. 20237 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 20238 # scripts with optimization help from Paolo Bonzini. Blame Lee 20239 # E. McMahon (1931-1989) for sed's syntax. :-) 20240 sed -n ' 20241 p 20242 /[$]LINENO/= 20243 ' <$as_myself | 20244 sed ' 20245 s/[$]LINENO.*/&-/ 20246 t lineno 20247 b 20248 :lineno 20249 N 20250 :loop 20251 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 20252 t loop 20253 s/-\n.*// 20254 ' >$as_me.lineno && 20255 chmod +x "$as_me.lineno" || 20256 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 20257 { (exit 1); exit 1; }; } 20258 20259 # Don't try to exec as it changes $[0], causing all sort of problems 20260 # (the dirname of $[0] is not the place where we might find the 20261 # original and so on. Autoconf is especially sensitive to this). 20262 . "./$as_me.lineno" 20263 # Exit status is that of the last command. 20264 exit 20265} 20266 20267 20268if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20269 as_dirname=dirname 20270else 20271 as_dirname=false 20272fi 20273 20274ECHO_C= ECHO_N= ECHO_T= 20275case `echo -n x` in 20276-n*) 20277 case `echo 'x\c'` in 20278 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20279 *) ECHO_C='\c';; 20280 esac;; 20281*) 20282 ECHO_N='-n';; 20283esac 20284 20285if expr a : '\(a\)' >/dev/null 2>&1 && 20286 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20287 as_expr=expr 20288else 20289 as_expr=false 20290fi 20291 20292rm -f conf$$ conf$$.exe conf$$.file 20293if test -d conf$$.dir; then 20294 rm -f conf$$.dir/conf$$.file 20295else 20296 rm -f conf$$.dir 20297 mkdir conf$$.dir 20298fi 20299echo >conf$$.file 20300if ln -s conf$$.file conf$$ 2>/dev/null; then 20301 as_ln_s='ln -s' 20302 # ... but there are two gotchas: 20303 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20304 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20305 # In both cases, we have to default to `cp -p'. 20306 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20307 as_ln_s='cp -p' 20308elif ln conf$$.file conf$$ 2>/dev/null; then 20309 as_ln_s=ln 20310else 20311 as_ln_s='cp -p' 20312fi 20313rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20314rmdir conf$$.dir 2>/dev/null 20315 20316if mkdir -p . 2>/dev/null; then 20317 as_mkdir_p=: 20318else 20319 test -d ./-p && rmdir ./-p 20320 as_mkdir_p=false 20321fi 20322 20323if test -x / >/dev/null 2>&1; then 20324 as_test_x='test -x' 20325else 20326 if ls -dL / >/dev/null 2>&1; then 20327 as_ls_L_option=L 20328 else 20329 as_ls_L_option= 20330 fi 20331 as_test_x=' 20332 eval sh -c '\'' 20333 if test -d "$1"; then 20334 test -d "$1/."; 20335 else 20336 case $1 in 20337 -*)set "./$1";; 20338 esac; 20339 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 20340 ???[sx]*):;;*)false;;esac;fi 20341 '\'' sh 20342 ' 20343fi 20344as_executable_p=$as_test_x 20345 20346# Sed expression to map a string onto a valid CPP name. 20347as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20348 20349# Sed expression to map a string onto a valid variable name. 20350as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20351 20352 20353exec 6>&1 20354 20355# Save the log message, to keep $[0] and so on meaningful, and to 20356# report actual input values of CONFIG_FILES etc. instead of their 20357# values after options handling. 20358ac_log=" 20359This file was extended by $as_me, which was 20360generated by GNU Autoconf 2.61. Invocation command line was 20361 20362 CONFIG_FILES = $CONFIG_FILES 20363 CONFIG_HEADERS = $CONFIG_HEADERS 20364 CONFIG_LINKS = $CONFIG_LINKS 20365 CONFIG_COMMANDS = $CONFIG_COMMANDS 20366 $ $0 $@ 20367 20368on `(hostname || uname -n) 2>/dev/null | sed 1q` 20369" 20370 20371_ACEOF 20372 20373cat >>$CONFIG_STATUS <<_ACEOF 20374# Files that config.status was made for. 20375config_files="$ac_config_files" 20376config_commands="$ac_config_commands" 20377 20378_ACEOF 20379 20380cat >>$CONFIG_STATUS <<\_ACEOF 20381ac_cs_usage="\ 20382\`$as_me' instantiates files from templates according to the 20383current configuration. 20384 20385Usage: $0 [OPTIONS] [FILE]... 20386 20387 -h, --help print this help, then exit 20388 -V, --version print version number and configuration settings, then exit 20389 -q, --quiet do not print progress messages 20390 -d, --debug don't remove temporary files 20391 --recheck update $as_me by reconfiguring in the same conditions 20392 --file=FILE[:TEMPLATE] 20393 instantiate the configuration file FILE 20394 20395Configuration files: 20396$config_files 20397 20398Configuration commands: 20399$config_commands 20400 20401Report bugs to <bug-autoconf@gnu.org>." 20402 20403_ACEOF 20404cat >>$CONFIG_STATUS <<_ACEOF 20405ac_cs_version="\\ 20406config.status 20407configured by $0, generated by GNU Autoconf 2.61, 20408 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 20409 20410Copyright (C) 2006 Free Software Foundation, Inc. 20411This config.status script is free software; the Free Software Foundation 20412gives unlimited permission to copy, distribute and modify it." 20413 20414ac_pwd='$ac_pwd' 20415srcdir='$srcdir' 20416INSTALL='$INSTALL' 20417MKDIR_P='$MKDIR_P' 20418_ACEOF 20419 20420cat >>$CONFIG_STATUS <<\_ACEOF 20421# If no file are specified by the user, then we need to provide default 20422# value. By we need to know if files were specified by the user. 20423ac_need_defaults=: 20424while test $# != 0 20425do 20426 case $1 in 20427 --*=*) 20428 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20429 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20430 ac_shift=: 20431 ;; 20432 *) 20433 ac_option=$1 20434 ac_optarg=$2 20435 ac_shift=shift 20436 ;; 20437 esac 20438 20439 case $ac_option in 20440 # Handling of the options. 20441 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20442 ac_cs_recheck=: ;; 20443 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20444 echo "$ac_cs_version"; exit ;; 20445 --debug | --debu | --deb | --de | --d | -d ) 20446 debug=: ;; 20447 --file | --fil | --fi | --f ) 20448 $ac_shift 20449 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 20450 ac_need_defaults=false;; 20451 --he | --h | --help | --hel | -h ) 20452 echo "$ac_cs_usage"; exit ;; 20453 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20454 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20455 ac_cs_silent=: ;; 20456 20457 # This is an error. 20458 -*) { echo "$as_me: error: unrecognized option: $1 20459Try \`$0 --help' for more information." >&2 20460 { (exit 1); exit 1; }; } ;; 20461 20462 *) ac_config_targets="$ac_config_targets $1" 20463 ac_need_defaults=false ;; 20464 20465 esac 20466 shift 20467done 20468 20469ac_configure_extra_args= 20470 20471if $ac_cs_silent; then 20472 exec 6>/dev/null 20473 ac_configure_extra_args="$ac_configure_extra_args --silent" 20474fi 20475 20476_ACEOF 20477cat >>$CONFIG_STATUS <<_ACEOF 20478if \$ac_cs_recheck; then 20479 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 20480 CONFIG_SHELL=$SHELL 20481 export CONFIG_SHELL 20482 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20483fi 20484 20485_ACEOF 20486cat >>$CONFIG_STATUS <<\_ACEOF 20487exec 5>>config.log 20488{ 20489 echo 20490 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20491## Running $as_me. ## 20492_ASBOX 20493 echo "$ac_log" 20494} >&5 20495 20496_ACEOF 20497cat >>$CONFIG_STATUS <<_ACEOF 20498# 20499# INIT-COMMANDS 20500# 20501AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 20502 20503_ACEOF 20504 20505cat >>$CONFIG_STATUS <<\_ACEOF 20506 20507# Handling of arguments. 20508for ac_config_target in $ac_config_targets 20509do 20510 case $ac_config_target in 20511 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20512 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20513 20514 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 20515echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 20516 { (exit 1); exit 1; }; };; 20517 esac 20518done 20519 20520 20521# If the user did not use the arguments to specify the items to instantiate, 20522# then the envvar interface is used. Set only those that are not. 20523# We use the long form for the default assignment because of an extremely 20524# bizarre bug on SunOS 4.1.3. 20525if $ac_need_defaults; then 20526 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 20527 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 20528fi 20529 20530# Have a temporary directory for convenience. Make it in the build tree 20531# simply because there is no reason against having it here, and in addition, 20532# creating and moving files from /tmp can sometimes cause problems. 20533# Hook for its removal unless debugging. 20534# Note that there is a small window in which the directory will not be cleaned: 20535# after its creation but before its name has been assigned to `$tmp'. 20536$debug || 20537{ 20538 tmp= 20539 trap 'exit_status=$? 20540 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 20541' 0 20542 trap '{ (exit 1); exit 1; }' 1 2 13 15 20543} 20544# Create a (secure) tmp directory for tmp files. 20545 20546{ 20547 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20548 test -n "$tmp" && test -d "$tmp" 20549} || 20550{ 20551 tmp=./conf$$-$RANDOM 20552 (umask 077 && mkdir "$tmp") 20553} || 20554{ 20555 echo "$me: cannot create a temporary directory in ." >&2 20556 { (exit 1); exit 1; } 20557} 20558 20559# 20560# Set up the sed scripts for CONFIG_FILES section. 20561# 20562 20563# No need to generate the scripts if there are no CONFIG_FILES. 20564# This happens for instance when ./config.status config.h 20565if test -n "$CONFIG_FILES"; then 20566 20567_ACEOF 20568 20569 20570 20571ac_delim='%!_!# ' 20572for ac_last_try in false false false false false :; do 20573 cat >conf$$subs.sed <<_ACEOF 20574SHELL!$SHELL$ac_delim 20575PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 20576PACKAGE_NAME!$PACKAGE_NAME$ac_delim 20577PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 20578PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 20579PACKAGE_STRING!$PACKAGE_STRING$ac_delim 20580PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 20581exec_prefix!$exec_prefix$ac_delim 20582prefix!$prefix$ac_delim 20583program_transform_name!$program_transform_name$ac_delim 20584bindir!$bindir$ac_delim 20585sbindir!$sbindir$ac_delim 20586libexecdir!$libexecdir$ac_delim 20587datarootdir!$datarootdir$ac_delim 20588datadir!$datadir$ac_delim 20589sysconfdir!$sysconfdir$ac_delim 20590sharedstatedir!$sharedstatedir$ac_delim 20591localstatedir!$localstatedir$ac_delim 20592includedir!$includedir$ac_delim 20593oldincludedir!$oldincludedir$ac_delim 20594docdir!$docdir$ac_delim 20595infodir!$infodir$ac_delim 20596htmldir!$htmldir$ac_delim 20597dvidir!$dvidir$ac_delim 20598pdfdir!$pdfdir$ac_delim 20599psdir!$psdir$ac_delim 20600libdir!$libdir$ac_delim 20601localedir!$localedir$ac_delim 20602mandir!$mandir$ac_delim 20603DEFS!$DEFS$ac_delim 20604ECHO_C!$ECHO_C$ac_delim 20605ECHO_N!$ECHO_N$ac_delim 20606ECHO_T!$ECHO_T$ac_delim 20607LIBS!$LIBS$ac_delim 20608build_alias!$build_alias$ac_delim 20609host_alias!$host_alias$ac_delim 20610target_alias!$target_alias$ac_delim 20611INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 20612INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 20613INSTALL_DATA!$INSTALL_DATA$ac_delim 20614am__isrc!$am__isrc$ac_delim 20615CYGPATH_W!$CYGPATH_W$ac_delim 20616PACKAGE!$PACKAGE$ac_delim 20617VERSION!$VERSION$ac_delim 20618ACLOCAL!$ACLOCAL$ac_delim 20619AUTOCONF!$AUTOCONF$ac_delim 20620AUTOMAKE!$AUTOMAKE$ac_delim 20621AUTOHEADER!$AUTOHEADER$ac_delim 20622MAKEINFO!$MAKEINFO$ac_delim 20623install_sh!$install_sh$ac_delim 20624STRIP!$STRIP$ac_delim 20625INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 20626mkdir_p!$mkdir_p$ac_delim 20627AWK!$AWK$ac_delim 20628SET_MAKE!$SET_MAKE$ac_delim 20629am__leading_dot!$am__leading_dot$ac_delim 20630AMTAR!$AMTAR$ac_delim 20631am__tar!$am__tar$ac_delim 20632am__untar!$am__untar$ac_delim 20633CC!$CC$ac_delim 20634CFLAGS!$CFLAGS$ac_delim 20635LDFLAGS!$LDFLAGS$ac_delim 20636CPPFLAGS!$CPPFLAGS$ac_delim 20637ac_ct_CC!$ac_ct_CC$ac_delim 20638EXEEXT!$EXEEXT$ac_delim 20639OBJEXT!$OBJEXT$ac_delim 20640DEPDIR!$DEPDIR$ac_delim 20641am__include!$am__include$ac_delim 20642am__quote!$am__quote$ac_delim 20643AMDEP_TRUE!$AMDEP_TRUE$ac_delim 20644AMDEP_FALSE!$AMDEP_FALSE$ac_delim 20645AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 20646CCDEPMODE!$CCDEPMODE$ac_delim 20647am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 20648am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 20649build!$build$ac_delim 20650build_cpu!$build_cpu$ac_delim 20651build_vendor!$build_vendor$ac_delim 20652build_os!$build_os$ac_delim 20653host!$host$ac_delim 20654host_cpu!$host_cpu$ac_delim 20655host_vendor!$host_vendor$ac_delim 20656host_os!$host_os$ac_delim 20657GREP!$GREP$ac_delim 20658EGREP!$EGREP$ac_delim 20659LN_S!$LN_S$ac_delim 20660ECHO!$ECHO$ac_delim 20661AR!$AR$ac_delim 20662RANLIB!$RANLIB$ac_delim 20663CPP!$CPP$ac_delim 20664CXX!$CXX$ac_delim 20665CXXFLAGS!$CXXFLAGS$ac_delim 20666ac_ct_CXX!$ac_ct_CXX$ac_delim 20667CXXDEPMODE!$CXXDEPMODE$ac_delim 20668am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim 20669am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim 20670CXXCPP!$CXXCPP$ac_delim 20671_ACEOF 20672 20673 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 20674 break 20675 elif $ac_last_try; then 20676 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 20677echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 20678 { (exit 1); exit 1; }; } 20679 else 20680 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20681 fi 20682done 20683 20684ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 20685if test -n "$ac_eof"; then 20686 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 20687 ac_eof=`expr $ac_eof + 1` 20688fi 20689 20690cat >>$CONFIG_STATUS <<_ACEOF 20691cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 20692/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20693_ACEOF 20694sed ' 20695s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 20696s/^/s,@/; s/!/@,|#_!!_#|/ 20697:n 20698t n 20699s/'"$ac_delim"'$/,g/; t 20700s/$/\\/; p 20701N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 20702' >>$CONFIG_STATUS <conf$$subs.sed 20703rm -f conf$$subs.sed 20704cat >>$CONFIG_STATUS <<_ACEOF 20705CEOF$ac_eof 20706_ACEOF 20707 20708 20709ac_delim='%!_!# ' 20710for ac_last_try in false false false false false :; do 20711 cat >conf$$subs.sed <<_ACEOF 20712F77!$F77$ac_delim 20713FFLAGS!$FFLAGS$ac_delim 20714ac_ct_F77!$ac_ct_F77$ac_delim 20715LIBTOOL!$LIBTOOL$ac_delim 20716LIBRPATHX!$LIBRPATHX$ac_delim 20717LTLIBRPATHX!$LTLIBRPATHX$ac_delim 20718global_top_auxdir!$global_top_auxdir$ac_delim 20719LIBOBJS!$LIBOBJS$ac_delim 20720LTLIBOBJS!$LTLIBOBJS$ac_delim 20721_ACEOF 20722 20723 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then 20724 break 20725 elif $ac_last_try; then 20726 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 20727echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 20728 { (exit 1); exit 1; }; } 20729 else 20730 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20731 fi 20732done 20733 20734ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 20735if test -n "$ac_eof"; then 20736 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 20737 ac_eof=`expr $ac_eof + 1` 20738fi 20739 20740cat >>$CONFIG_STATUS <<_ACEOF 20741cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 20742/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 20743_ACEOF 20744sed ' 20745s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 20746s/^/s,@/; s/!/@,|#_!!_#|/ 20747:n 20748t n 20749s/'"$ac_delim"'$/,g/; t 20750s/$/\\/; p 20751N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 20752' >>$CONFIG_STATUS <conf$$subs.sed 20753rm -f conf$$subs.sed 20754cat >>$CONFIG_STATUS <<_ACEOF 20755:end 20756s/|#_!!_#|//g 20757CEOF$ac_eof 20758_ACEOF 20759 20760 20761# VPATH may cause trouble with some makes, so we remove $(srcdir), 20762# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 20763# trailing colons and then remove the whole line if VPATH becomes empty 20764# (actually we leave an empty line to preserve line numbers). 20765if test "x$srcdir" = x.; then 20766 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 20767s/:*\$(srcdir):*/:/ 20768s/:*\${srcdir}:*/:/ 20769s/:*@srcdir@:*/:/ 20770s/^\([^=]*=[ ]*\):*/\1/ 20771s/:*$// 20772s/^[^=]*=[ ]*$// 20773}' 20774fi 20775 20776cat >>$CONFIG_STATUS <<\_ACEOF 20777fi # test -n "$CONFIG_FILES" 20778 20779 20780for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS 20781do 20782 case $ac_tag in 20783 :[FHLC]) ac_mode=$ac_tag; continue;; 20784 esac 20785 case $ac_mode$ac_tag in 20786 :[FHL]*:*);; 20787 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 20788echo "$as_me: error: Invalid tag $ac_tag." >&2;} 20789 { (exit 1); exit 1; }; };; 20790 :[FH]-) ac_tag=-:-;; 20791 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20792 esac 20793 ac_save_IFS=$IFS 20794 IFS=: 20795 set x $ac_tag 20796 IFS=$ac_save_IFS 20797 shift 20798 ac_file=$1 20799 shift 20800 20801 case $ac_mode in 20802 :L) ac_source=$1;; 20803 :[FH]) 20804 ac_file_inputs= 20805 for ac_f 20806 do 20807 case $ac_f in 20808 -) ac_f="$tmp/stdin";; 20809 *) # Look for the file first in the build tree, then in the source tree 20810 # (if the path is not absolute). The absolute path cannot be DOS-style, 20811 # because $ac_f cannot contain `:'. 20812 test -f "$ac_f" || 20813 case $ac_f in 20814 [\\/$]*) false;; 20815 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20816 esac || 20817 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 20818echo "$as_me: error: cannot find input file: $ac_f" >&2;} 20819 { (exit 1); exit 1; }; };; 20820 esac 20821 ac_file_inputs="$ac_file_inputs $ac_f" 20822 done 20823 20824 # Let's still pretend it is `configure' which instantiates (i.e., don't 20825 # use $as_me), people would be surprised to read: 20826 # /* config.h. Generated by config.status. */ 20827 configure_input="Generated from "`IFS=: 20828 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 20829 if test x"$ac_file" != x-; then 20830 configure_input="$ac_file. $configure_input" 20831 { echo "$as_me:$LINENO: creating $ac_file" >&5 20832echo "$as_me: creating $ac_file" >&6;} 20833 fi 20834 20835 case $ac_tag in 20836 *:-:* | *:-) cat >"$tmp/stdin";; 20837 esac 20838 ;; 20839 esac 20840 20841 ac_dir=`$as_dirname -- "$ac_file" || 20842$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20843 X"$ac_file" : 'X\(//\)[^/]' \| \ 20844 X"$ac_file" : 'X\(//\)$' \| \ 20845 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20846echo X"$ac_file" | 20847 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20848 s//\1/ 20849 q 20850 } 20851 /^X\(\/\/\)[^/].*/{ 20852 s//\1/ 20853 q 20854 } 20855 /^X\(\/\/\)$/{ 20856 s//\1/ 20857 q 20858 } 20859 /^X\(\/\).*/{ 20860 s//\1/ 20861 q 20862 } 20863 s/.*/./; q'` 20864 { as_dir="$ac_dir" 20865 case $as_dir in #( 20866 -*) as_dir=./$as_dir;; 20867 esac 20868 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 20869 as_dirs= 20870 while :; do 20871 case $as_dir in #( 20872 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 20873 *) as_qdir=$as_dir;; 20874 esac 20875 as_dirs="'$as_qdir' $as_dirs" 20876 as_dir=`$as_dirname -- "$as_dir" || 20877$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20878 X"$as_dir" : 'X\(//\)[^/]' \| \ 20879 X"$as_dir" : 'X\(//\)$' \| \ 20880 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20881echo X"$as_dir" | 20882 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20883 s//\1/ 20884 q 20885 } 20886 /^X\(\/\/\)[^/].*/{ 20887 s//\1/ 20888 q 20889 } 20890 /^X\(\/\/\)$/{ 20891 s//\1/ 20892 q 20893 } 20894 /^X\(\/\).*/{ 20895 s//\1/ 20896 q 20897 } 20898 s/.*/./; q'` 20899 test -d "$as_dir" && break 20900 done 20901 test -z "$as_dirs" || eval "mkdir $as_dirs" 20902 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 20903echo "$as_me: error: cannot create directory $as_dir" >&2;} 20904 { (exit 1); exit 1; }; }; } 20905 ac_builddir=. 20906 20907case "$ac_dir" in 20908.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20909*) 20910 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 20911 # A ".." for each directory in $ac_dir_suffix. 20912 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 20913 case $ac_top_builddir_sub in 20914 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20915 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20916 esac ;; 20917esac 20918ac_abs_top_builddir=$ac_pwd 20919ac_abs_builddir=$ac_pwd$ac_dir_suffix 20920# for backward compatibility: 20921ac_top_builddir=$ac_top_build_prefix 20922 20923case $srcdir in 20924 .) # We are building in place. 20925 ac_srcdir=. 20926 ac_top_srcdir=$ac_top_builddir_sub 20927 ac_abs_top_srcdir=$ac_pwd ;; 20928 [\\/]* | ?:[\\/]* ) # Absolute name. 20929 ac_srcdir=$srcdir$ac_dir_suffix; 20930 ac_top_srcdir=$srcdir 20931 ac_abs_top_srcdir=$srcdir ;; 20932 *) # Relative name. 20933 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20934 ac_top_srcdir=$ac_top_build_prefix$srcdir 20935 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20936esac 20937ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20938 20939 20940 case $ac_mode in 20941 :F) 20942 # 20943 # CONFIG_FILE 20944 # 20945 20946 case $INSTALL in 20947 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20948 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20949 esac 20950 ac_MKDIR_P=$MKDIR_P 20951 case $MKDIR_P in 20952 [\\/$]* | ?:[\\/]* ) ;; 20953 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20954 esac 20955_ACEOF 20956 20957cat >>$CONFIG_STATUS <<\_ACEOF 20958# If the template does not know about datarootdir, expand it. 20959# FIXME: This hack should be removed a few years after 2.60. 20960ac_datarootdir_hack=; ac_datarootdir_seen= 20961 20962case `sed -n '/datarootdir/ { 20963 p 20964 q 20965} 20966/@datadir@/p 20967/@docdir@/p 20968/@infodir@/p 20969/@localedir@/p 20970/@mandir@/p 20971' $ac_file_inputs` in 20972*datarootdir*) ac_datarootdir_seen=yes;; 20973*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20974 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20975echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20976_ACEOF 20977cat >>$CONFIG_STATUS <<_ACEOF 20978 ac_datarootdir_hack=' 20979 s&@datadir@&$datadir&g 20980 s&@docdir@&$docdir&g 20981 s&@infodir@&$infodir&g 20982 s&@localedir@&$localedir&g 20983 s&@mandir@&$mandir&g 20984 s&\\\${datarootdir}&$datarootdir&g' ;; 20985esac 20986_ACEOF 20987 20988# Neutralize VPATH when `$srcdir' = `.'. 20989# Shell code in configure.ac might set extrasub. 20990# FIXME: do we really want to maintain this feature? 20991cat >>$CONFIG_STATUS <<_ACEOF 20992 sed "$ac_vpsub 20993$extrasub 20994_ACEOF 20995cat >>$CONFIG_STATUS <<\_ACEOF 20996:t 20997/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20998s&@configure_input@&$configure_input&;t t 20999s&@top_builddir@&$ac_top_builddir_sub&;t t 21000s&@srcdir@&$ac_srcdir&;t t 21001s&@abs_srcdir@&$ac_abs_srcdir&;t t 21002s&@top_srcdir@&$ac_top_srcdir&;t t 21003s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21004s&@builddir@&$ac_builddir&;t t 21005s&@abs_builddir@&$ac_abs_builddir&;t t 21006s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21007s&@INSTALL@&$ac_INSTALL&;t t 21008s&@MKDIR_P@&$ac_MKDIR_P&;t t 21009$ac_datarootdir_hack 21010" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 21011 21012test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21013 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 21014 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 21015 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21016which seems to be undefined. Please make sure it is defined." >&5 21017echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21018which seems to be undefined. Please make sure it is defined." >&2;} 21019 21020 rm -f "$tmp/stdin" 21021 case $ac_file in 21022 -) cat "$tmp/out"; rm -f "$tmp/out";; 21023 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 21024 esac 21025 ;; 21026 21027 21028 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 21029echo "$as_me: executing $ac_file commands" >&6;} 21030 ;; 21031 esac 21032 21033 21034 case $ac_file$ac_mode in 21035 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 21036 # Strip MF so we end up with the name of the file. 21037 mf=`echo "$mf" | sed -e 's/:.*$//'` 21038 # Check whether this is an Automake generated Makefile or not. 21039 # We used to match only the files named `Makefile.in', but 21040 # some people rename them; so instead we look at the file content. 21041 # Grep'ing the first line is not enough: some people post-process 21042 # each Makefile.in and add a new line on top of each file to say so. 21043 # Grep'ing the whole file is not good either: AIX grep has a line 21044 # limit of 2048, but all sed's we know have understand at least 4000. 21045 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then 21046 dirpart=`$as_dirname -- "$mf" || 21047$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21048 X"$mf" : 'X\(//\)[^/]' \| \ 21049 X"$mf" : 'X\(//\)$' \| \ 21050 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 21051echo X"$mf" | 21052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21053 s//\1/ 21054 q 21055 } 21056 /^X\(\/\/\)[^/].*/{ 21057 s//\1/ 21058 q 21059 } 21060 /^X\(\/\/\)$/{ 21061 s//\1/ 21062 q 21063 } 21064 /^X\(\/\).*/{ 21065 s//\1/ 21066 q 21067 } 21068 s/.*/./; q'` 21069 else 21070 continue 21071 fi 21072 # Extract the definition of DEPDIR, am__include, and am__quote 21073 # from the Makefile without running `make'. 21074 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 21075 test -z "$DEPDIR" && continue 21076 am__include=`sed -n 's/^am__include = //p' < "$mf"` 21077 test -z "am__include" && continue 21078 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 21079 # When using ansi2knr, U may be empty or an underscore; expand it 21080 U=`sed -n 's/^U = //p' < "$mf"` 21081 # Find all dependency output files, they are included files with 21082 # $(DEPDIR) in their names. We invoke sed twice because it is the 21083 # simplest approach to changing $(DEPDIR) to its actual value in the 21084 # expansion. 21085 for file in `sed -n " 21086 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 21087 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 21088 # Make sure the directory exists. 21089 test -f "$dirpart/$file" && continue 21090 fdir=`$as_dirname -- "$file" || 21091$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21092 X"$file" : 'X\(//\)[^/]' \| \ 21093 X"$file" : 'X\(//\)$' \| \ 21094 X"$file" : 'X\(/\)' \| . 2>/dev/null || 21095echo X"$file" | 21096 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21097 s//\1/ 21098 q 21099 } 21100 /^X\(\/\/\)[^/].*/{ 21101 s//\1/ 21102 q 21103 } 21104 /^X\(\/\/\)$/{ 21105 s//\1/ 21106 q 21107 } 21108 /^X\(\/\).*/{ 21109 s//\1/ 21110 q 21111 } 21112 s/.*/./; q'` 21113 { as_dir=$dirpart/$fdir 21114 case $as_dir in #( 21115 -*) as_dir=./$as_dir;; 21116 esac 21117 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 21118 as_dirs= 21119 while :; do 21120 case $as_dir in #( 21121 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 21122 *) as_qdir=$as_dir;; 21123 esac 21124 as_dirs="'$as_qdir' $as_dirs" 21125 as_dir=`$as_dirname -- "$as_dir" || 21126$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21127 X"$as_dir" : 'X\(//\)[^/]' \| \ 21128 X"$as_dir" : 'X\(//\)$' \| \ 21129 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21130echo X"$as_dir" | 21131 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21132 s//\1/ 21133 q 21134 } 21135 /^X\(\/\/\)[^/].*/{ 21136 s//\1/ 21137 q 21138 } 21139 /^X\(\/\/\)$/{ 21140 s//\1/ 21141 q 21142 } 21143 /^X\(\/\).*/{ 21144 s//\1/ 21145 q 21146 } 21147 s/.*/./; q'` 21148 test -d "$as_dir" && break 21149 done 21150 test -z "$as_dirs" || eval "mkdir $as_dirs" 21151 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 21152echo "$as_me: error: cannot create directory $as_dir" >&2;} 21153 { (exit 1); exit 1; }; }; } 21154 # echo "creating $dirpart/$file" 21155 echo '# dummy' > "$dirpart/$file" 21156 done 21157done 21158 ;; 21159 21160 esac 21161done # for ac_tag 21162 21163 21164{ (exit 0); exit 0; } 21165_ACEOF 21166chmod +x $CONFIG_STATUS 21167ac_clean_files=$ac_clean_files_save 21168 21169 21170# configure is writing to config.log, and then calls config.status. 21171# config.status does its own redirection, appending to config.log. 21172# Unfortunately, on DOS this fails, as config.log is still kept open 21173# by configure, so config.status won't be able to write to it; its 21174# output is simply discarded. So we exec the FD to /dev/null, 21175# effectively closing config.log, so it can be properly (re)opened and 21176# appended to by config.status. When coming back to configure, we 21177# need to make the FD available again. 21178if test "$no_create" != yes; then 21179 ac_cs_success=: 21180 ac_config_status_args= 21181 test "$silent" = yes && 21182 ac_config_status_args="$ac_config_status_args --quiet" 21183 exec 5>/dev/null 21184 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21185 exec 5>>config.log 21186 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21187 # would make configure fail if this is the last instruction. 21188 $ac_cs_success || { (exit 1); exit 1; } 21189fi 21190 21191