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="tests/rpath-1a" 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 853SED 854GREP 855EGREP 856LN_S 857ECHO 858AR 859RANLIB 860DLLTOOL 861AS 862OBJDUMP 863CPP 864CXX 865CXXFLAGS 866ac_ct_CXX 867CXXDEPMODE 868am__fastdepCXX_TRUE 869am__fastdepCXX_FALSE 870CXXCPP 871F77 872FFLAGS 873ac_ct_F77 874LIBTOOL 875GCC 876LD 877with_gnu_ld 878aclocaldir 879LIBDIRSTEM 880LIBOBJS 881LTLIBOBJS' 882ac_subst_files='' 883 ac_precious_vars='build_alias 884host_alias 885target_alias 886CC 887CFLAGS 888LDFLAGS 889LIBS 890CPPFLAGS 891CPP 892CXX 893CXXFLAGS 894CCC 895CXXCPP 896F77 897FFLAGS' 898 899 900# Initialize some variables set by options. 901ac_init_help= 902ac_init_version=false 903# The variables have the same names as the options, with 904# dashes changed to underlines. 905cache_file=/dev/null 906exec_prefix=NONE 907no_create= 908no_recursion= 909prefix=NONE 910program_prefix=NONE 911program_suffix=NONE 912program_transform_name=s,x,x, 913silent= 914site= 915srcdir= 916verbose= 917x_includes=NONE 918x_libraries=NONE 919 920# Installation directory options. 921# These are left unexpanded so users can "make install exec_prefix=/foo" 922# and all the variables that are supposed to be based on exec_prefix 923# by default will actually change. 924# Use braces instead of parens because sh, perl, etc. also accept them. 925# (The list follows the same order as the GNU Coding Standards.) 926bindir='${exec_prefix}/bin' 927sbindir='${exec_prefix}/sbin' 928libexecdir='${exec_prefix}/libexec' 929datarootdir='${prefix}/share' 930datadir='${datarootdir}' 931sysconfdir='${prefix}/etc' 932sharedstatedir='${prefix}/com' 933localstatedir='${prefix}/var' 934includedir='${prefix}/include' 935oldincludedir='/usr/include' 936docdir='${datarootdir}/doc/${PACKAGE}' 937infodir='${datarootdir}/info' 938htmldir='${docdir}' 939dvidir='${docdir}' 940pdfdir='${docdir}' 941psdir='${docdir}' 942libdir='${exec_prefix}/lib' 943localedir='${datarootdir}/locale' 944mandir='${datarootdir}/man' 945 946ac_prev= 947ac_dashdash= 948for ac_option 949do 950 # If the previous option needs an argument, assign it. 951 if test -n "$ac_prev"; then 952 eval $ac_prev=\$ac_option 953 ac_prev= 954 continue 955 fi 956 957 case $ac_option in 958 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 959 *) ac_optarg=yes ;; 960 esac 961 962 # Accept the important Cygnus configure options, so we can diagnose typos. 963 964 case $ac_dashdash$ac_option in 965 --) 966 ac_dashdash=yes ;; 967 968 -bindir | --bindir | --bindi | --bind | --bin | --bi) 969 ac_prev=bindir ;; 970 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 971 bindir=$ac_optarg ;; 972 973 -build | --build | --buil | --bui | --bu) 974 ac_prev=build_alias ;; 975 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 976 build_alias=$ac_optarg ;; 977 978 -cache-file | --cache-file | --cache-fil | --cache-fi \ 979 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 980 ac_prev=cache_file ;; 981 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 982 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 983 cache_file=$ac_optarg ;; 984 985 --config-cache | -C) 986 cache_file=config.cache ;; 987 988 -datadir | --datadir | --datadi | --datad) 989 ac_prev=datadir ;; 990 -datadir=* | --datadir=* | --datadi=* | --datad=*) 991 datadir=$ac_optarg ;; 992 993 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 994 | --dataroo | --dataro | --datar) 995 ac_prev=datarootdir ;; 996 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 997 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 998 datarootdir=$ac_optarg ;; 999 1000 -disable-* | --disable-*) 1001 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1002 # Reject names that are not valid shell variable names. 1003 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1004 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1005 { (exit 1); exit 1; }; } 1006 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1007 eval enable_$ac_feature=no ;; 1008 1009 -docdir | --docdir | --docdi | --doc | --do) 1010 ac_prev=docdir ;; 1011 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1012 docdir=$ac_optarg ;; 1013 1014 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1015 ac_prev=dvidir ;; 1016 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1017 dvidir=$ac_optarg ;; 1018 1019 -enable-* | --enable-*) 1020 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1021 # Reject names that are not valid shell variable names. 1022 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1023 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1024 { (exit 1); exit 1; }; } 1025 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1026 eval enable_$ac_feature=\$ac_optarg ;; 1027 1028 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1029 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1030 | --exec | --exe | --ex) 1031 ac_prev=exec_prefix ;; 1032 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1033 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1034 | --exec=* | --exe=* | --ex=*) 1035 exec_prefix=$ac_optarg ;; 1036 1037 -gas | --gas | --ga | --g) 1038 # Obsolete; use --with-gas. 1039 with_gas=yes ;; 1040 1041 -help | --help | --hel | --he | -h) 1042 ac_init_help=long ;; 1043 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1044 ac_init_help=recursive ;; 1045 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1046 ac_init_help=short ;; 1047 1048 -host | --host | --hos | --ho) 1049 ac_prev=host_alias ;; 1050 -host=* | --host=* | --hos=* | --ho=*) 1051 host_alias=$ac_optarg ;; 1052 1053 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1054 ac_prev=htmldir ;; 1055 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1056 | --ht=*) 1057 htmldir=$ac_optarg ;; 1058 1059 -includedir | --includedir | --includedi | --included | --include \ 1060 | --includ | --inclu | --incl | --inc) 1061 ac_prev=includedir ;; 1062 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1063 | --includ=* | --inclu=* | --incl=* | --inc=*) 1064 includedir=$ac_optarg ;; 1065 1066 -infodir | --infodir | --infodi | --infod | --info | --inf) 1067 ac_prev=infodir ;; 1068 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1069 infodir=$ac_optarg ;; 1070 1071 -libdir | --libdir | --libdi | --libd) 1072 ac_prev=libdir ;; 1073 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1074 libdir=$ac_optarg ;; 1075 1076 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1077 | --libexe | --libex | --libe) 1078 ac_prev=libexecdir ;; 1079 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1080 | --libexe=* | --libex=* | --libe=*) 1081 libexecdir=$ac_optarg ;; 1082 1083 -localedir | --localedir | --localedi | --localed | --locale) 1084 ac_prev=localedir ;; 1085 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1086 localedir=$ac_optarg ;; 1087 1088 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1089 | --localstate | --localstat | --localsta | --localst | --locals) 1090 ac_prev=localstatedir ;; 1091 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1092 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1093 localstatedir=$ac_optarg ;; 1094 1095 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1096 ac_prev=mandir ;; 1097 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1098 mandir=$ac_optarg ;; 1099 1100 -nfp | --nfp | --nf) 1101 # Obsolete; use --without-fp. 1102 with_fp=no ;; 1103 1104 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1105 | --no-cr | --no-c | -n) 1106 no_create=yes ;; 1107 1108 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1109 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1110 no_recursion=yes ;; 1111 1112 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1113 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1114 | --oldin | --oldi | --old | --ol | --o) 1115 ac_prev=oldincludedir ;; 1116 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1117 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1118 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1119 oldincludedir=$ac_optarg ;; 1120 1121 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1122 ac_prev=prefix ;; 1123 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1124 prefix=$ac_optarg ;; 1125 1126 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1127 | --program-pre | --program-pr | --program-p) 1128 ac_prev=program_prefix ;; 1129 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1130 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1131 program_prefix=$ac_optarg ;; 1132 1133 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1134 | --program-suf | --program-su | --program-s) 1135 ac_prev=program_suffix ;; 1136 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1137 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1138 program_suffix=$ac_optarg ;; 1139 1140 -program-transform-name | --program-transform-name \ 1141 | --program-transform-nam | --program-transform-na \ 1142 | --program-transform-n | --program-transform- \ 1143 | --program-transform | --program-transfor \ 1144 | --program-transfo | --program-transf \ 1145 | --program-trans | --program-tran \ 1146 | --progr-tra | --program-tr | --program-t) 1147 ac_prev=program_transform_name ;; 1148 -program-transform-name=* | --program-transform-name=* \ 1149 | --program-transform-nam=* | --program-transform-na=* \ 1150 | --program-transform-n=* | --program-transform-=* \ 1151 | --program-transform=* | --program-transfor=* \ 1152 | --program-transfo=* | --program-transf=* \ 1153 | --program-trans=* | --program-tran=* \ 1154 | --progr-tra=* | --program-tr=* | --program-t=*) 1155 program_transform_name=$ac_optarg ;; 1156 1157 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1158 ac_prev=pdfdir ;; 1159 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1160 pdfdir=$ac_optarg ;; 1161 1162 -psdir | --psdir | --psdi | --psd | --ps) 1163 ac_prev=psdir ;; 1164 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1165 psdir=$ac_optarg ;; 1166 1167 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1168 | -silent | --silent | --silen | --sile | --sil) 1169 silent=yes ;; 1170 1171 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1172 ac_prev=sbindir ;; 1173 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1174 | --sbi=* | --sb=*) 1175 sbindir=$ac_optarg ;; 1176 1177 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1178 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1179 | --sharedst | --shareds | --shared | --share | --shar \ 1180 | --sha | --sh) 1181 ac_prev=sharedstatedir ;; 1182 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1183 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1184 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1185 | --sha=* | --sh=*) 1186 sharedstatedir=$ac_optarg ;; 1187 1188 -site | --site | --sit) 1189 ac_prev=site ;; 1190 -site=* | --site=* | --sit=*) 1191 site=$ac_optarg ;; 1192 1193 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1194 ac_prev=srcdir ;; 1195 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1196 srcdir=$ac_optarg ;; 1197 1198 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1199 | --syscon | --sysco | --sysc | --sys | --sy) 1200 ac_prev=sysconfdir ;; 1201 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1202 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1203 sysconfdir=$ac_optarg ;; 1204 1205 -target | --target | --targe | --targ | --tar | --ta | --t) 1206 ac_prev=target_alias ;; 1207 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1208 target_alias=$ac_optarg ;; 1209 1210 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1211 verbose=yes ;; 1212 1213 -version | --version | --versio | --versi | --vers | -V) 1214 ac_init_version=: ;; 1215 1216 -with-* | --with-*) 1217 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1218 # Reject names that are not valid shell variable names. 1219 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1220 { echo "$as_me: error: invalid package name: $ac_package" >&2 1221 { (exit 1); exit 1; }; } 1222 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1223 eval with_$ac_package=\$ac_optarg ;; 1224 1225 -without-* | --without-*) 1226 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1227 # Reject names that are not valid shell variable names. 1228 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1229 { echo "$as_me: error: invalid package name: $ac_package" >&2 1230 { (exit 1); exit 1; }; } 1231 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1232 eval with_$ac_package=no ;; 1233 1234 --x) 1235 # Obsolete; use --with-x. 1236 with_x=yes ;; 1237 1238 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1239 | --x-incl | --x-inc | --x-in | --x-i) 1240 ac_prev=x_includes ;; 1241 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1242 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1243 x_includes=$ac_optarg ;; 1244 1245 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1246 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1247 ac_prev=x_libraries ;; 1248 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1249 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1250 x_libraries=$ac_optarg ;; 1251 1252 -*) { echo "$as_me: error: unrecognized option: $ac_option 1253Try \`$0 --help' for more information." >&2 1254 { (exit 1); exit 1; }; } 1255 ;; 1256 1257 *=*) 1258 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1259 # Reject names that are not valid shell variable names. 1260 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1261 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1262 { (exit 1); exit 1; }; } 1263 eval $ac_envvar=\$ac_optarg 1264 export $ac_envvar ;; 1265 1266 *) 1267 # FIXME: should be removed in autoconf 3.0. 1268 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1269 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1270 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1271 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1272 ;; 1273 1274 esac 1275done 1276 1277if test -n "$ac_prev"; then 1278 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1279 { echo "$as_me: error: missing argument to $ac_option" >&2 1280 { (exit 1); exit 1; }; } 1281fi 1282 1283# Be sure to have absolute directory names. 1284for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1285 datadir sysconfdir sharedstatedir localstatedir includedir \ 1286 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1287 libdir localedir mandir 1288do 1289 eval ac_val=\$$ac_var 1290 case $ac_val in 1291 [\\/$]* | ?:[\\/]* ) continue;; 1292 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1293 esac 1294 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1295 { (exit 1); exit 1; }; } 1296done 1297 1298# There might be people who depend on the old broken behavior: `$host' 1299# used to hold the argument of --host etc. 1300# FIXME: To remove some day. 1301build=$build_alias 1302host=$host_alias 1303target=$target_alias 1304 1305# FIXME: To remove some day. 1306if test "x$host_alias" != x; then 1307 if test "x$build_alias" = x; then 1308 cross_compiling=maybe 1309 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1310 If a cross compiler is detected then cross compile mode will be used." >&2 1311 elif test "x$build_alias" != "x$host_alias"; then 1312 cross_compiling=yes 1313 fi 1314fi 1315 1316ac_tool_prefix= 1317test -n "$host_alias" && ac_tool_prefix=$host_alias- 1318 1319test "$silent" = yes && exec 6>/dev/null 1320 1321 1322ac_pwd=`pwd` && test -n "$ac_pwd" && 1323ac_ls_di=`ls -di .` && 1324ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1325 { echo "$as_me: error: Working directory cannot be determined" >&2 1326 { (exit 1); exit 1; }; } 1327test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1328 { echo "$as_me: error: pwd does not report name of working directory" >&2 1329 { (exit 1); exit 1; }; } 1330 1331 1332# Find the source files, if location was not specified. 1333if test -z "$srcdir"; then 1334 ac_srcdir_defaulted=yes 1335 # Try the directory containing this script, then the parent directory. 1336 ac_confdir=`$as_dirname -- "$0" || 1337$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1338 X"$0" : 'X\(//\)[^/]' \| \ 1339 X"$0" : 'X\(//\)$' \| \ 1340 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1341echo X"$0" | 1342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1343 s//\1/ 1344 q 1345 } 1346 /^X\(\/\/\)[^/].*/{ 1347 s//\1/ 1348 q 1349 } 1350 /^X\(\/\/\)$/{ 1351 s//\1/ 1352 q 1353 } 1354 /^X\(\/\).*/{ 1355 s//\1/ 1356 q 1357 } 1358 s/.*/./; q'` 1359 srcdir=$ac_confdir 1360 if test ! -r "$srcdir/$ac_unique_file"; then 1361 srcdir=.. 1362 fi 1363else 1364 ac_srcdir_defaulted=no 1365fi 1366if test ! -r "$srcdir/$ac_unique_file"; then 1367 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1368 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1369 { (exit 1); exit 1; }; } 1370fi 1371ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1372ac_abs_confdir=`( 1373 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1374 { (exit 1); exit 1; }; } 1375 pwd)` 1376# When building in place, set srcdir=. 1377if test "$ac_abs_confdir" = "$ac_pwd"; then 1378 srcdir=. 1379fi 1380# Remove unnecessary trailing slashes from srcdir. 1381# Double slashes in file names in object file debugging info 1382# mess up M-x gdb in Emacs. 1383case $srcdir in 1384*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1385esac 1386for ac_var in $ac_precious_vars; do 1387 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1388 eval ac_env_${ac_var}_value=\$${ac_var} 1389 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1390 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1391done 1392 1393# 1394# Report the --help message. 1395# 1396if test "$ac_init_help" = "long"; then 1397 # Omit some internal or obsolete options to make the list less imposing. 1398 # This message is too long to be a string in the A/UX 3.1 sh. 1399 cat <<_ACEOF 1400\`configure' configures this package to adapt to many kinds of systems. 1401 1402Usage: $0 [OPTION]... [VAR=VALUE]... 1403 1404To assign environment variables (e.g., CC, CFLAGS...), specify them as 1405VAR=VALUE. See below for descriptions of some of the useful variables. 1406 1407Defaults for the options are specified in brackets. 1408 1409Configuration: 1410 -h, --help display this help and exit 1411 --help=short display options specific to this package 1412 --help=recursive display the short help of all the included packages 1413 -V, --version display version information and exit 1414 -q, --quiet, --silent do not print \`checking...' messages 1415 --cache-file=FILE cache test results in FILE [disabled] 1416 -C, --config-cache alias for \`--cache-file=config.cache' 1417 -n, --no-create do not create output files 1418 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1419 1420Installation directories: 1421 --prefix=PREFIX install architecture-independent files in PREFIX 1422 [$ac_default_prefix] 1423 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1424 [PREFIX] 1425 1426By default, \`make install' will install all the files in 1427\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1428an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1429for instance \`--prefix=\$HOME'. 1430 1431For better control, use the options below. 1432 1433Fine tuning of the installation directories: 1434 --bindir=DIR user executables [EPREFIX/bin] 1435 --sbindir=DIR system admin executables [EPREFIX/sbin] 1436 --libexecdir=DIR program executables [EPREFIX/libexec] 1437 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1438 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1439 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1440 --libdir=DIR object code libraries [EPREFIX/lib] 1441 --includedir=DIR C header files [PREFIX/include] 1442 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1443 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1444 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1445 --infodir=DIR info documentation [DATAROOTDIR/info] 1446 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1447 --mandir=DIR man documentation [DATAROOTDIR/man] 1448 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1449 --htmldir=DIR html documentation [DOCDIR] 1450 --dvidir=DIR dvi documentation [DOCDIR] 1451 --pdfdir=DIR pdf documentation [DOCDIR] 1452 --psdir=DIR ps documentation [DOCDIR] 1453_ACEOF 1454 1455 cat <<\_ACEOF 1456 1457Program names: 1458 --program-prefix=PREFIX prepend PREFIX to installed program names 1459 --program-suffix=SUFFIX append SUFFIX to installed program names 1460 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1461 1462System types: 1463 --build=BUILD configure for building on BUILD [guessed] 1464 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1465_ACEOF 1466fi 1467 1468if test -n "$ac_init_help"; then 1469 1470 cat <<\_ACEOF 1471 1472Optional Features: 1473 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1474 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1475 --disable-dependency-tracking speeds up one-time build 1476 --enable-dependency-tracking do not reject slow dependency extractors 1477 --enable-shared[=PKGS] build shared libraries [default=yes] 1478 --enable-static[=PKGS] build static libraries [default=yes] 1479 --enable-fast-install[=PKGS] 1480 optimize for fast installation [default=yes] 1481 --disable-libtool-lock avoid locking (might break parallel builds) 1482 1483Optional Packages: 1484 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1485 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1486 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1487 --with-pic try to use only PIC/non-PIC objects [default=use 1488 both] 1489 --with-tags[=TAGS] include additional configurations [automatic] 1490 1491Some influential environment variables: 1492 CC C compiler command 1493 CFLAGS C compiler flags 1494 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1495 nonstandard directory <lib dir> 1496 LIBS libraries to pass to the linker, e.g. -l<library> 1497 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1498 you have headers in a nonstandard directory <include dir> 1499 CPP C preprocessor 1500 CXX C++ compiler command 1501 CXXFLAGS C++ compiler flags 1502 CXXCPP C++ preprocessor 1503 F77 Fortran 77 compiler command 1504 FFLAGS Fortran 77 compiler flags 1505 1506Use these variables to override the choices made by `configure' or to help 1507it to find libraries and programs with nonstandard names/locations. 1508 1509_ACEOF 1510ac_status=$? 1511fi 1512 1513if test "$ac_init_help" = "recursive"; then 1514 # If there are subdirs, report their specific --help. 1515 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1516 test -d "$ac_dir" || continue 1517 ac_builddir=. 1518 1519case "$ac_dir" in 1520.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1521*) 1522 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1523 # A ".." for each directory in $ac_dir_suffix. 1524 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1525 case $ac_top_builddir_sub in 1526 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1527 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1528 esac ;; 1529esac 1530ac_abs_top_builddir=$ac_pwd 1531ac_abs_builddir=$ac_pwd$ac_dir_suffix 1532# for backward compatibility: 1533ac_top_builddir=$ac_top_build_prefix 1534 1535case $srcdir in 1536 .) # We are building in place. 1537 ac_srcdir=. 1538 ac_top_srcdir=$ac_top_builddir_sub 1539 ac_abs_top_srcdir=$ac_pwd ;; 1540 [\\/]* | ?:[\\/]* ) # Absolute name. 1541 ac_srcdir=$srcdir$ac_dir_suffix; 1542 ac_top_srcdir=$srcdir 1543 ac_abs_top_srcdir=$srcdir ;; 1544 *) # Relative name. 1545 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1546 ac_top_srcdir=$ac_top_build_prefix$srcdir 1547 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1548esac 1549ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1550 1551 cd "$ac_dir" || { ac_status=$?; continue; } 1552 # Check for guested configure. 1553 if test -f "$ac_srcdir/configure.gnu"; then 1554 echo && 1555 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1556 elif test -f "$ac_srcdir/configure"; then 1557 echo && 1558 $SHELL "$ac_srcdir/configure" --help=recursive 1559 else 1560 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1561 fi || ac_status=$? 1562 cd "$ac_pwd" || { ac_status=$?; break; } 1563 done 1564fi 1565 1566test -n "$ac_init_help" && exit $ac_status 1567if $ac_init_version; then 1568 cat <<\_ACEOF 1569configure 1570generated by GNU Autoconf 2.61 1571 1572Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 15732002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1574This configure script is free software; the Free Software Foundation 1575gives unlimited permission to copy, distribute and modify it. 1576_ACEOF 1577 exit 1578fi 1579cat >config.log <<_ACEOF 1580This file contains any messages produced by compilers while 1581running configure, to aid debugging if configure makes a mistake. 1582 1583It was created by $as_me, which was 1584generated by GNU Autoconf 2.61. Invocation command line was 1585 1586 $ $0 $@ 1587 1588_ACEOF 1589exec 5>>config.log 1590{ 1591cat <<_ASUNAME 1592## --------- ## 1593## Platform. ## 1594## --------- ## 1595 1596hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1597uname -m = `(uname -m) 2>/dev/null || echo unknown` 1598uname -r = `(uname -r) 2>/dev/null || echo unknown` 1599uname -s = `(uname -s) 2>/dev/null || echo unknown` 1600uname -v = `(uname -v) 2>/dev/null || echo unknown` 1601 1602/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1603/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1604 1605/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1606/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1607/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1608/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1609/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1610/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1611/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1612 1613_ASUNAME 1614 1615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1616for as_dir in $PATH 1617do 1618 IFS=$as_save_IFS 1619 test -z "$as_dir" && as_dir=. 1620 echo "PATH: $as_dir" 1621done 1622IFS=$as_save_IFS 1623 1624} >&5 1625 1626cat >&5 <<_ACEOF 1627 1628 1629## ----------- ## 1630## Core tests. ## 1631## ----------- ## 1632 1633_ACEOF 1634 1635 1636# Keep a trace of the command line. 1637# Strip out --no-create and --no-recursion so they do not pile up. 1638# Strip out --silent because we don't want to record it for future runs. 1639# Also quote any args containing shell meta-characters. 1640# Make two passes to allow for proper duplicate-argument suppression. 1641ac_configure_args= 1642ac_configure_args0= 1643ac_configure_args1= 1644ac_must_keep_next=false 1645for ac_pass in 1 2 1646do 1647 for ac_arg 1648 do 1649 case $ac_arg in 1650 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1651 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1652 | -silent | --silent | --silen | --sile | --sil) 1653 continue ;; 1654 *\'*) 1655 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1656 esac 1657 case $ac_pass in 1658 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1659 2) 1660 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1661 if test $ac_must_keep_next = true; then 1662 ac_must_keep_next=false # Got value, back to normal. 1663 else 1664 case $ac_arg in 1665 *=* | --config-cache | -C | -disable-* | --disable-* \ 1666 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1667 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1668 | -with-* | --with-* | -without-* | --without-* | --x) 1669 case "$ac_configure_args0 " in 1670 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1671 esac 1672 ;; 1673 -* ) ac_must_keep_next=true ;; 1674 esac 1675 fi 1676 ac_configure_args="$ac_configure_args '$ac_arg'" 1677 ;; 1678 esac 1679 done 1680done 1681$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1682$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1683 1684# When interrupted or exit'd, cleanup temporary files, and complete 1685# config.log. We remove comments because anyway the quotes in there 1686# would cause problems or look ugly. 1687# WARNING: Use '\'' to represent an apostrophe within the trap. 1688# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1689trap 'exit_status=$? 1690 # Save into config.log some information that might help in debugging. 1691 { 1692 echo 1693 1694 cat <<\_ASBOX 1695## ---------------- ## 1696## Cache variables. ## 1697## ---------------- ## 1698_ASBOX 1699 echo 1700 # The following way of writing the cache mishandles newlines in values, 1701( 1702 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1703 eval ac_val=\$$ac_var 1704 case $ac_val in #( 1705 *${as_nl}*) 1706 case $ac_var in #( 1707 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1708echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1709 esac 1710 case $ac_var in #( 1711 _ | IFS | as_nl) ;; #( 1712 *) $as_unset $ac_var ;; 1713 esac ;; 1714 esac 1715 done 1716 (set) 2>&1 | 1717 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1718 *${as_nl}ac_space=\ *) 1719 sed -n \ 1720 "s/'\''/'\''\\\\'\'''\''/g; 1721 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1722 ;; #( 1723 *) 1724 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1725 ;; 1726 esac | 1727 sort 1728) 1729 echo 1730 1731 cat <<\_ASBOX 1732## ----------------- ## 1733## Output variables. ## 1734## ----------------- ## 1735_ASBOX 1736 echo 1737 for ac_var in $ac_subst_vars 1738 do 1739 eval ac_val=\$$ac_var 1740 case $ac_val in 1741 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1742 esac 1743 echo "$ac_var='\''$ac_val'\''" 1744 done | sort 1745 echo 1746 1747 if test -n "$ac_subst_files"; then 1748 cat <<\_ASBOX 1749## ------------------- ## 1750## File substitutions. ## 1751## ------------------- ## 1752_ASBOX 1753 echo 1754 for ac_var in $ac_subst_files 1755 do 1756 eval ac_val=\$$ac_var 1757 case $ac_val in 1758 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1759 esac 1760 echo "$ac_var='\''$ac_val'\''" 1761 done | sort 1762 echo 1763 fi 1764 1765 if test -s confdefs.h; then 1766 cat <<\_ASBOX 1767## ----------- ## 1768## confdefs.h. ## 1769## ----------- ## 1770_ASBOX 1771 echo 1772 cat confdefs.h 1773 echo 1774 fi 1775 test "$ac_signal" != 0 && 1776 echo "$as_me: caught signal $ac_signal" 1777 echo "$as_me: exit $exit_status" 1778 } >&5 1779 rm -f core *.core core.conftest.* && 1780 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1781 exit $exit_status 1782' 0 1783for ac_signal in 1 2 13 15; do 1784 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1785done 1786ac_signal=0 1787 1788# confdefs.h avoids OS command line length limits that DEFS can exceed. 1789rm -f -r conftest* confdefs.h 1790 1791# Predefined preprocessor variables. 1792 1793cat >>confdefs.h <<_ACEOF 1794#define PACKAGE_NAME "$PACKAGE_NAME" 1795_ACEOF 1796 1797 1798cat >>confdefs.h <<_ACEOF 1799#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1800_ACEOF 1801 1802 1803cat >>confdefs.h <<_ACEOF 1804#define PACKAGE_VERSION "$PACKAGE_VERSION" 1805_ACEOF 1806 1807 1808cat >>confdefs.h <<_ACEOF 1809#define PACKAGE_STRING "$PACKAGE_STRING" 1810_ACEOF 1811 1812 1813cat >>confdefs.h <<_ACEOF 1814#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1815_ACEOF 1816 1817 1818# Let the site file select an alternate cache file if it wants to. 1819# Prefer explicitly selected file to automatically selected ones. 1820if test -n "$CONFIG_SITE"; then 1821 set x "$CONFIG_SITE" 1822elif test "x$prefix" != xNONE; then 1823 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1824else 1825 set x "$ac_default_prefix/share/config.site" \ 1826 "$ac_default_prefix/etc/config.site" 1827fi 1828shift 1829for ac_site_file 1830do 1831 if test -r "$ac_site_file"; then 1832 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1833echo "$as_me: loading site script $ac_site_file" >&6;} 1834 sed 's/^/| /' "$ac_site_file" >&5 1835 . "$ac_site_file" 1836 fi 1837done 1838 1839if test -r "$cache_file"; then 1840 # Some versions of bash will fail to source /dev/null (special 1841 # files actually), so we avoid doing that. 1842 if test -f "$cache_file"; then 1843 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1844echo "$as_me: loading cache $cache_file" >&6;} 1845 case $cache_file in 1846 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1847 *) . "./$cache_file";; 1848 esac 1849 fi 1850else 1851 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1852echo "$as_me: creating cache $cache_file" >&6;} 1853 >$cache_file 1854fi 1855 1856# Check that the precious variables saved in the cache have kept the same 1857# value. 1858ac_cache_corrupted=false 1859for ac_var in $ac_precious_vars; do 1860 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1861 eval ac_new_set=\$ac_env_${ac_var}_set 1862 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1863 eval ac_new_val=\$ac_env_${ac_var}_value 1864 case $ac_old_set,$ac_new_set in 1865 set,) 1866 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1867echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1868 ac_cache_corrupted=: ;; 1869 ,set) 1870 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1871echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1872 ac_cache_corrupted=: ;; 1873 ,);; 1874 *) 1875 if test "x$ac_old_val" != "x$ac_new_val"; then 1876 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1877echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1878 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1879echo "$as_me: former value: $ac_old_val" >&2;} 1880 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1881echo "$as_me: current value: $ac_new_val" >&2;} 1882 ac_cache_corrupted=: 1883 fi;; 1884 esac 1885 # Pass precious variables to config.status. 1886 if test "$ac_new_set" = set; then 1887 case $ac_new_val in 1888 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1889 *) ac_arg=$ac_var=$ac_new_val ;; 1890 esac 1891 case " $ac_configure_args " in 1892 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1893 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1894 esac 1895 fi 1896done 1897if $ac_cache_corrupted; then 1898 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1899echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1900 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1901echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1902 { (exit 1); exit 1; }; } 1903fi 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921ac_ext=c 1922ac_cpp='$CPP $CPPFLAGS' 1923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1925ac_compiler_gnu=$ac_cv_c_compiler_gnu 1926 1927 1928 1929ac_aux_dir= 1930for ac_dir in ../build-aux "$srcdir"/../build-aux; do 1931 if test -f "$ac_dir/install-sh"; then 1932 ac_aux_dir=$ac_dir 1933 ac_install_sh="$ac_aux_dir/install-sh -c" 1934 break 1935 elif test -f "$ac_dir/install.sh"; then 1936 ac_aux_dir=$ac_dir 1937 ac_install_sh="$ac_aux_dir/install.sh -c" 1938 break 1939 elif test -f "$ac_dir/shtool"; then 1940 ac_aux_dir=$ac_dir 1941 ac_install_sh="$ac_aux_dir/shtool install -c" 1942 break 1943 fi 1944done 1945if test -z "$ac_aux_dir"; then 1946 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../build-aux \"$srcdir\"/../build-aux" >&5 1947echo "$as_me: error: cannot find install-sh or install.sh in ../build-aux \"$srcdir\"/../build-aux" >&2;} 1948 { (exit 1); exit 1; }; } 1949fi 1950 1951# These three variables are undocumented and unsupported, 1952# and are intended to be withdrawn in a future Autoconf release. 1953# They can cause serious problems if a builder's source tree is in a directory 1954# whose full name contains unusual characters. 1955ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1956ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1957ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1958 1959 1960. $srcdir/../version.sh 1961am__api_version='1.10' 1962 1963# Find a good install program. We prefer a C program (faster), 1964# so one script is as good as another. But avoid the broken or 1965# incompatible versions: 1966# SysV /etc/install, /usr/sbin/install 1967# SunOS /usr/etc/install 1968# IRIX /sbin/install 1969# AIX /bin/install 1970# AmigaOS /C/install, which installs bootblocks on floppy discs 1971# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1972# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1973# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1974# OS/2's system install, which has a completely different semantic 1975# ./install, which can be erroneously created by make from ./install.sh. 1976{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1977echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 1978if test -z "$INSTALL"; then 1979if test "${ac_cv_path_install+set}" = set; then 1980 echo $ECHO_N "(cached) $ECHO_C" >&6 1981else 1982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1983for as_dir in $PATH 1984do 1985 IFS=$as_save_IFS 1986 test -z "$as_dir" && as_dir=. 1987 # Account for people who put trailing slashes in PATH elements. 1988case $as_dir/ in 1989 ./ | .// | /cC/* | \ 1990 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1991 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1992 /usr/ucb/* ) ;; 1993 *) 1994 # OSF1 and SCO ODT 3.0 have their own names for install. 1995 # Don't use installbsd from OSF since it installs stuff as root 1996 # by default. 1997 for ac_prog in ginstall scoinst install; do 1998 for ac_exec_ext in '' $ac_executable_extensions; do 1999 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2000 if test $ac_prog = install && 2001 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2002 # AIX install. It has an incompatible calling convention. 2003 : 2004 elif test $ac_prog = install && 2005 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2006 # program-specific install script used by HP pwplus--don't use. 2007 : 2008 else 2009 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2010 break 3 2011 fi 2012 fi 2013 done 2014 done 2015 ;; 2016esac 2017done 2018IFS=$as_save_IFS 2019 2020 2021fi 2022 if test "${ac_cv_path_install+set}" = set; then 2023 INSTALL=$ac_cv_path_install 2024 else 2025 # As a last resort, use the slow shell script. Don't cache a 2026 # value for INSTALL within a source directory, because that will 2027 # break other packages using the cache if that directory is 2028 # removed, or if the value is a relative name. 2029 INSTALL=$ac_install_sh 2030 fi 2031fi 2032{ echo "$as_me:$LINENO: result: $INSTALL" >&5 2033echo "${ECHO_T}$INSTALL" >&6; } 2034 2035# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2036# It thinks the first close brace ends the variable substitution. 2037test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2038 2039test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2040 2041test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2042 2043{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2044echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 2045# Just in case 2046sleep 1 2047echo timestamp > conftest.file 2048# Do `set' in a subshell so we don't clobber the current shell's 2049# arguments. Must try -L first in case configure is actually a 2050# symlink; some systems play weird games with the mod time of symlinks 2051# (eg FreeBSD returns the mod time of the symlink's containing 2052# directory). 2053if ( 2054 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2055 if test "$*" = "X"; then 2056 # -L didn't work. 2057 set X `ls -t $srcdir/configure conftest.file` 2058 fi 2059 rm -f conftest.file 2060 if test "$*" != "X $srcdir/configure conftest.file" \ 2061 && test "$*" != "X conftest.file $srcdir/configure"; then 2062 2063 # If neither matched, then we have a broken ls. This can happen 2064 # if, for instance, CONFIG_SHELL is bash and it inherits a 2065 # broken ls alias from the environment. This has actually 2066 # happened. Such a system could not be considered "sane". 2067 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2068alias in your environment" >&5 2069echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2070alias in your environment" >&2;} 2071 { (exit 1); exit 1; }; } 2072 fi 2073 2074 test "$2" = conftest.file 2075 ) 2076then 2077 # Ok. 2078 : 2079else 2080 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2081Check your system clock" >&5 2082echo "$as_me: error: newly created file is older than distributed files! 2083Check your system clock" >&2;} 2084 { (exit 1); exit 1; }; } 2085fi 2086{ echo "$as_me:$LINENO: result: yes" >&5 2087echo "${ECHO_T}yes" >&6; } 2088test "$program_prefix" != NONE && 2089 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2090# Use a double $ so make ignores it. 2091test "$program_suffix" != NONE && 2092 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2093# Double any \ or $. echo might interpret backslashes. 2094# By default was `s,x,x', remove it if useless. 2095cat <<\_ACEOF >conftest.sed 2096s/[\\$]/&&/g;s/;s,x,x,$// 2097_ACEOF 2098program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2099rm -f conftest.sed 2100 2101# expand $ac_aux_dir to an absolute path 2102am_aux_dir=`cd $ac_aux_dir && pwd` 2103 2104test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2105# Use eval to expand $SHELL 2106if eval "$MISSING --run true"; then 2107 am_missing_run="$MISSING --run " 2108else 2109 am_missing_run= 2110 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2111echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2112fi 2113 2114{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2115echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } 2116if test -z "$MKDIR_P"; then 2117 if test "${ac_cv_path_mkdir+set}" = set; then 2118 echo $ECHO_N "(cached) $ECHO_C" >&6 2119else 2120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2121for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2122do 2123 IFS=$as_save_IFS 2124 test -z "$as_dir" && as_dir=. 2125 for ac_prog in mkdir gmkdir; do 2126 for ac_exec_ext in '' $ac_executable_extensions; do 2127 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2128 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2129 'mkdir (GNU coreutils) '* | \ 2130 'mkdir (coreutils) '* | \ 2131 'mkdir (fileutils) '4.1*) 2132 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2133 break 3;; 2134 esac 2135 done 2136 done 2137done 2138IFS=$as_save_IFS 2139 2140fi 2141 2142 if test "${ac_cv_path_mkdir+set}" = set; then 2143 MKDIR_P="$ac_cv_path_mkdir -p" 2144 else 2145 # As a last resort, use the slow shell script. Don't cache a 2146 # value for MKDIR_P within a source directory, because that will 2147 # break other packages using the cache if that directory is 2148 # removed, or if the value is a relative name. 2149 test -d ./--version && rmdir ./--version 2150 MKDIR_P="$ac_install_sh -d" 2151 fi 2152fi 2153{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2154echo "${ECHO_T}$MKDIR_P" >&6; } 2155 2156mkdir_p="$MKDIR_P" 2157case $mkdir_p in 2158 [\\/$]* | ?:[\\/]*) ;; 2159 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2160esac 2161 2162for ac_prog in gawk mawk nawk awk 2163do 2164 # Extract the first word of "$ac_prog", so it can be a program name with args. 2165set dummy $ac_prog; ac_word=$2 2166{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2167echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2168if test "${ac_cv_prog_AWK+set}" = set; then 2169 echo $ECHO_N "(cached) $ECHO_C" >&6 2170else 2171 if test -n "$AWK"; then 2172 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2173else 2174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2175for as_dir in $PATH 2176do 2177 IFS=$as_save_IFS 2178 test -z "$as_dir" && as_dir=. 2179 for ac_exec_ext in '' $ac_executable_extensions; do 2180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2181 ac_cv_prog_AWK="$ac_prog" 2182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2183 break 2 2184 fi 2185done 2186done 2187IFS=$as_save_IFS 2188 2189fi 2190fi 2191AWK=$ac_cv_prog_AWK 2192if test -n "$AWK"; then 2193 { echo "$as_me:$LINENO: result: $AWK" >&5 2194echo "${ECHO_T}$AWK" >&6; } 2195else 2196 { echo "$as_me:$LINENO: result: no" >&5 2197echo "${ECHO_T}no" >&6; } 2198fi 2199 2200 2201 test -n "$AWK" && break 2202done 2203 2204{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2205echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2206set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2207if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2208 echo $ECHO_N "(cached) $ECHO_C" >&6 2209else 2210 cat >conftest.make <<\_ACEOF 2211SHELL = /bin/sh 2212all: 2213 @echo '@@@%%%=$(MAKE)=@@@%%%' 2214_ACEOF 2215# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2216case `${MAKE-make} -f conftest.make 2>/dev/null` in 2217 *@@@%%%=?*=@@@%%%*) 2218 eval ac_cv_prog_make_${ac_make}_set=yes;; 2219 *) 2220 eval ac_cv_prog_make_${ac_make}_set=no;; 2221esac 2222rm -f conftest.make 2223fi 2224if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2225 { echo "$as_me:$LINENO: result: yes" >&5 2226echo "${ECHO_T}yes" >&6; } 2227 SET_MAKE= 2228else 2229 { echo "$as_me:$LINENO: result: no" >&5 2230echo "${ECHO_T}no" >&6; } 2231 SET_MAKE="MAKE=${MAKE-make}" 2232fi 2233 2234rm -rf .tst 2>/dev/null 2235mkdir .tst 2>/dev/null 2236if test -d .tst; then 2237 am__leading_dot=. 2238else 2239 am__leading_dot=_ 2240fi 2241rmdir .tst 2>/dev/null 2242 2243if test "`cd $srcdir && pwd`" != "`pwd`"; then 2244 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2245 # is not polluted with repeated "-I." 2246 am__isrc=' -I$(srcdir)' 2247 # test to see if srcdir already configured 2248 if test -f $srcdir/config.status; then 2249 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2250echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2251 { (exit 1); exit 1; }; } 2252 fi 2253fi 2254 2255# test whether we have cygpath 2256if test -z "$CYGPATH_W"; then 2257 if (cygpath --version) >/dev/null 2>/dev/null; then 2258 CYGPATH_W='cygpath -w' 2259 else 2260 CYGPATH_W=echo 2261 fi 2262fi 2263 2264 2265# Define the identity of the package. 2266 PACKAGE=autoconf-lib-link 2267 VERSION=$VERSION_NUMBER 2268 2269 2270cat >>confdefs.h <<_ACEOF 2271#define PACKAGE "$PACKAGE" 2272_ACEOF 2273 2274 2275cat >>confdefs.h <<_ACEOF 2276#define VERSION "$VERSION" 2277_ACEOF 2278 2279# Some tools Automake needs. 2280 2281ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2282 2283 2284AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2285 2286 2287AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2288 2289 2290AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2291 2292 2293MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2294 2295install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2296 2297# Installed binaries are usually stripped using `strip' when the user 2298# run `make install-strip'. However `strip' might not be the right 2299# tool to use in cross-compilation environments, therefore Automake 2300# will honor the `STRIP' environment variable to overrule this program. 2301if test "$cross_compiling" != no; then 2302 if test -n "$ac_tool_prefix"; then 2303 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2304set dummy ${ac_tool_prefix}strip; ac_word=$2 2305{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2307if test "${ac_cv_prog_STRIP+set}" = set; then 2308 echo $ECHO_N "(cached) $ECHO_C" >&6 2309else 2310 if test -n "$STRIP"; then 2311 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2312else 2313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2314for as_dir in $PATH 2315do 2316 IFS=$as_save_IFS 2317 test -z "$as_dir" && as_dir=. 2318 for ac_exec_ext in '' $ac_executable_extensions; do 2319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2320 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2322 break 2 2323 fi 2324done 2325done 2326IFS=$as_save_IFS 2327 2328fi 2329fi 2330STRIP=$ac_cv_prog_STRIP 2331if test -n "$STRIP"; then 2332 { echo "$as_me:$LINENO: result: $STRIP" >&5 2333echo "${ECHO_T}$STRIP" >&6; } 2334else 2335 { echo "$as_me:$LINENO: result: no" >&5 2336echo "${ECHO_T}no" >&6; } 2337fi 2338 2339 2340fi 2341if test -z "$ac_cv_prog_STRIP"; then 2342 ac_ct_STRIP=$STRIP 2343 # Extract the first word of "strip", so it can be a program name with args. 2344set dummy strip; ac_word=$2 2345{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2346echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2347if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2348 echo $ECHO_N "(cached) $ECHO_C" >&6 2349else 2350 if test -n "$ac_ct_STRIP"; then 2351 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2352else 2353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2354for as_dir in $PATH 2355do 2356 IFS=$as_save_IFS 2357 test -z "$as_dir" && as_dir=. 2358 for ac_exec_ext in '' $ac_executable_extensions; do 2359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2360 ac_cv_prog_ac_ct_STRIP="strip" 2361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2362 break 2 2363 fi 2364done 2365done 2366IFS=$as_save_IFS 2367 2368fi 2369fi 2370ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2371if test -n "$ac_ct_STRIP"; then 2372 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2373echo "${ECHO_T}$ac_ct_STRIP" >&6; } 2374else 2375 { echo "$as_me:$LINENO: result: no" >&5 2376echo "${ECHO_T}no" >&6; } 2377fi 2378 2379 if test "x$ac_ct_STRIP" = x; then 2380 STRIP=":" 2381 else 2382 case $cross_compiling:$ac_tool_warned in 2383yes:) 2384{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2385whose name does not start with the host triplet. If you think this 2386configuration is useful to you, please write to autoconf@gnu.org." >&5 2387echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2388whose name does not start with the host triplet. If you think this 2389configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2390ac_tool_warned=yes ;; 2391esac 2392 STRIP=$ac_ct_STRIP 2393 fi 2394else 2395 STRIP="$ac_cv_prog_STRIP" 2396fi 2397 2398fi 2399INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2400 2401# We need awk for the "check" target. The system "awk" is bad on 2402# some platforms. 2403# Always define AMTAR for backward compatibility. 2404 2405AMTAR=${AMTAR-"${am_missing_run}tar"} 2406 2407am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2408 2409 2410 2411 2412 2413 2414ac_ext=c 2415ac_cpp='$CPP $CPPFLAGS' 2416ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2417ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2418ac_compiler_gnu=$ac_cv_c_compiler_gnu 2419if test -n "$ac_tool_prefix"; then 2420 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2421set dummy ${ac_tool_prefix}gcc; ac_word=$2 2422{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2423echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2424if test "${ac_cv_prog_CC+set}" = set; then 2425 echo $ECHO_N "(cached) $ECHO_C" >&6 2426else 2427 if test -n "$CC"; then 2428 ac_cv_prog_CC="$CC" # Let the user override the test. 2429else 2430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2431for as_dir in $PATH 2432do 2433 IFS=$as_save_IFS 2434 test -z "$as_dir" && as_dir=. 2435 for ac_exec_ext in '' $ac_executable_extensions; do 2436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2437 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2439 break 2 2440 fi 2441done 2442done 2443IFS=$as_save_IFS 2444 2445fi 2446fi 2447CC=$ac_cv_prog_CC 2448if test -n "$CC"; then 2449 { echo "$as_me:$LINENO: result: $CC" >&5 2450echo "${ECHO_T}$CC" >&6; } 2451else 2452 { echo "$as_me:$LINENO: result: no" >&5 2453echo "${ECHO_T}no" >&6; } 2454fi 2455 2456 2457fi 2458if test -z "$ac_cv_prog_CC"; then 2459 ac_ct_CC=$CC 2460 # Extract the first word of "gcc", so it can be a program name with args. 2461set dummy gcc; ac_word=$2 2462{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2463echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2464if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2465 echo $ECHO_N "(cached) $ECHO_C" >&6 2466else 2467 if test -n "$ac_ct_CC"; then 2468 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2469else 2470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2471for as_dir in $PATH 2472do 2473 IFS=$as_save_IFS 2474 test -z "$as_dir" && as_dir=. 2475 for ac_exec_ext in '' $ac_executable_extensions; do 2476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2477 ac_cv_prog_ac_ct_CC="gcc" 2478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2479 break 2 2480 fi 2481done 2482done 2483IFS=$as_save_IFS 2484 2485fi 2486fi 2487ac_ct_CC=$ac_cv_prog_ac_ct_CC 2488if test -n "$ac_ct_CC"; then 2489 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2490echo "${ECHO_T}$ac_ct_CC" >&6; } 2491else 2492 { echo "$as_me:$LINENO: result: no" >&5 2493echo "${ECHO_T}no" >&6; } 2494fi 2495 2496 if test "x$ac_ct_CC" = x; then 2497 CC="" 2498 else 2499 case $cross_compiling:$ac_tool_warned in 2500yes:) 2501{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2502whose name does not start with the host triplet. If you think this 2503configuration is useful to you, please write to autoconf@gnu.org." >&5 2504echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2505whose name does not start with the host triplet. If you think this 2506configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2507ac_tool_warned=yes ;; 2508esac 2509 CC=$ac_ct_CC 2510 fi 2511else 2512 CC="$ac_cv_prog_CC" 2513fi 2514 2515if test -z "$CC"; then 2516 if test -n "$ac_tool_prefix"; then 2517 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2518set dummy ${ac_tool_prefix}cc; ac_word=$2 2519{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2521if test "${ac_cv_prog_CC+set}" = set; then 2522 echo $ECHO_N "(cached) $ECHO_C" >&6 2523else 2524 if test -n "$CC"; then 2525 ac_cv_prog_CC="$CC" # Let the user override the test. 2526else 2527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2528for as_dir in $PATH 2529do 2530 IFS=$as_save_IFS 2531 test -z "$as_dir" && as_dir=. 2532 for ac_exec_ext in '' $ac_executable_extensions; do 2533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2534 ac_cv_prog_CC="${ac_tool_prefix}cc" 2535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2536 break 2 2537 fi 2538done 2539done 2540IFS=$as_save_IFS 2541 2542fi 2543fi 2544CC=$ac_cv_prog_CC 2545if test -n "$CC"; then 2546 { echo "$as_me:$LINENO: result: $CC" >&5 2547echo "${ECHO_T}$CC" >&6; } 2548else 2549 { echo "$as_me:$LINENO: result: no" >&5 2550echo "${ECHO_T}no" >&6; } 2551fi 2552 2553 2554 fi 2555fi 2556if test -z "$CC"; then 2557 # Extract the first word of "cc", so it can be a program name with args. 2558set dummy cc; ac_word=$2 2559{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2560echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2561if test "${ac_cv_prog_CC+set}" = set; then 2562 echo $ECHO_N "(cached) $ECHO_C" >&6 2563else 2564 if test -n "$CC"; then 2565 ac_cv_prog_CC="$CC" # Let the user override the test. 2566else 2567 ac_prog_rejected=no 2568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2569for as_dir in $PATH 2570do 2571 IFS=$as_save_IFS 2572 test -z "$as_dir" && as_dir=. 2573 for ac_exec_ext in '' $ac_executable_extensions; do 2574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2575 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2576 ac_prog_rejected=yes 2577 continue 2578 fi 2579 ac_cv_prog_CC="cc" 2580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2581 break 2 2582 fi 2583done 2584done 2585IFS=$as_save_IFS 2586 2587if test $ac_prog_rejected = yes; then 2588 # We found a bogon in the path, so make sure we never use it. 2589 set dummy $ac_cv_prog_CC 2590 shift 2591 if test $# != 0; then 2592 # We chose a different compiler from the bogus one. 2593 # However, it has the same basename, so the bogon will be chosen 2594 # first if we set CC to just the basename; use the full file name. 2595 shift 2596 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2597 fi 2598fi 2599fi 2600fi 2601CC=$ac_cv_prog_CC 2602if test -n "$CC"; then 2603 { echo "$as_me:$LINENO: result: $CC" >&5 2604echo "${ECHO_T}$CC" >&6; } 2605else 2606 { echo "$as_me:$LINENO: result: no" >&5 2607echo "${ECHO_T}no" >&6; } 2608fi 2609 2610 2611fi 2612if test -z "$CC"; then 2613 if test -n "$ac_tool_prefix"; then 2614 for ac_prog in cl.exe 2615 do 2616 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2617set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2618{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2619echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2620if test "${ac_cv_prog_CC+set}" = set; then 2621 echo $ECHO_N "(cached) $ECHO_C" >&6 2622else 2623 if test -n "$CC"; then 2624 ac_cv_prog_CC="$CC" # Let the user override the test. 2625else 2626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2627for as_dir in $PATH 2628do 2629 IFS=$as_save_IFS 2630 test -z "$as_dir" && as_dir=. 2631 for ac_exec_ext in '' $ac_executable_extensions; do 2632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2633 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2635 break 2 2636 fi 2637done 2638done 2639IFS=$as_save_IFS 2640 2641fi 2642fi 2643CC=$ac_cv_prog_CC 2644if test -n "$CC"; then 2645 { echo "$as_me:$LINENO: result: $CC" >&5 2646echo "${ECHO_T}$CC" >&6; } 2647else 2648 { echo "$as_me:$LINENO: result: no" >&5 2649echo "${ECHO_T}no" >&6; } 2650fi 2651 2652 2653 test -n "$CC" && break 2654 done 2655fi 2656if test -z "$CC"; then 2657 ac_ct_CC=$CC 2658 for ac_prog in cl.exe 2659do 2660 # Extract the first word of "$ac_prog", so it can be a program name with args. 2661set dummy $ac_prog; ac_word=$2 2662{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2663echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2664if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2665 echo $ECHO_N "(cached) $ECHO_C" >&6 2666else 2667 if test -n "$ac_ct_CC"; then 2668 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2669else 2670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2671for as_dir in $PATH 2672do 2673 IFS=$as_save_IFS 2674 test -z "$as_dir" && as_dir=. 2675 for ac_exec_ext in '' $ac_executable_extensions; do 2676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2677 ac_cv_prog_ac_ct_CC="$ac_prog" 2678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2679 break 2 2680 fi 2681done 2682done 2683IFS=$as_save_IFS 2684 2685fi 2686fi 2687ac_ct_CC=$ac_cv_prog_ac_ct_CC 2688if test -n "$ac_ct_CC"; then 2689 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2690echo "${ECHO_T}$ac_ct_CC" >&6; } 2691else 2692 { echo "$as_me:$LINENO: result: no" >&5 2693echo "${ECHO_T}no" >&6; } 2694fi 2695 2696 2697 test -n "$ac_ct_CC" && break 2698done 2699 2700 if test "x$ac_ct_CC" = x; then 2701 CC="" 2702 else 2703 case $cross_compiling:$ac_tool_warned in 2704yes:) 2705{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2706whose name does not start with the host triplet. If you think this 2707configuration is useful to you, please write to autoconf@gnu.org." >&5 2708echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2709whose name does not start with the host triplet. If you think this 2710configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2711ac_tool_warned=yes ;; 2712esac 2713 CC=$ac_ct_CC 2714 fi 2715fi 2716 2717fi 2718 2719 2720test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2721See \`config.log' for more details." >&5 2722echo "$as_me: error: no acceptable C compiler found in \$PATH 2723See \`config.log' for more details." >&2;} 2724 { (exit 1); exit 1; }; } 2725 2726# Provide some information about the compiler. 2727echo "$as_me:$LINENO: checking for C compiler version" >&5 2728ac_compiler=`set X $ac_compile; echo $2` 2729{ (ac_try="$ac_compiler --version >&5" 2730case "(($ac_try" in 2731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2732 *) ac_try_echo=$ac_try;; 2733esac 2734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2735 (eval "$ac_compiler --version >&5") 2>&5 2736 ac_status=$? 2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2738 (exit $ac_status); } 2739{ (ac_try="$ac_compiler -v >&5" 2740case "(($ac_try" in 2741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2742 *) ac_try_echo=$ac_try;; 2743esac 2744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2745 (eval "$ac_compiler -v >&5") 2>&5 2746 ac_status=$? 2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2748 (exit $ac_status); } 2749{ (ac_try="$ac_compiler -V >&5" 2750case "(($ac_try" in 2751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2752 *) ac_try_echo=$ac_try;; 2753esac 2754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2755 (eval "$ac_compiler -V >&5") 2>&5 2756 ac_status=$? 2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2758 (exit $ac_status); } 2759 2760cat >conftest.$ac_ext <<_ACEOF 2761/* confdefs.h. */ 2762_ACEOF 2763cat confdefs.h >>conftest.$ac_ext 2764cat >>conftest.$ac_ext <<_ACEOF 2765/* end confdefs.h. */ 2766 2767int 2768main () 2769{ 2770 2771 ; 2772 return 0; 2773} 2774_ACEOF 2775ac_clean_files_save=$ac_clean_files 2776ac_clean_files="$ac_clean_files a.out a.exe b.out" 2777# Try to create an executable without -o first, disregard a.out. 2778# It will help us diagnose broken compilers, and finding out an intuition 2779# of exeext. 2780{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2781echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2782ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2783# 2784# List of possible output files, starting from the most likely. 2785# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2786# only as a last resort. b.out is created by i960 compilers. 2787ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2788# 2789# The IRIX 6 linker writes into existing files which may not be 2790# executable, retaining their permissions. Remove them first so a 2791# subsequent execution test works. 2792ac_rmfiles= 2793for ac_file in $ac_files 2794do 2795 case $ac_file in 2796 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2797 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2798 esac 2799done 2800rm -f $ac_rmfiles 2801 2802if { (ac_try="$ac_link_default" 2803case "(($ac_try" in 2804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2805 *) ac_try_echo=$ac_try;; 2806esac 2807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2808 (eval "$ac_link_default") 2>&5 2809 ac_status=$? 2810 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2811 (exit $ac_status); }; then 2812 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2813# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2814# in a Makefile. We should not override ac_cv_exeext if it was cached, 2815# so that the user can short-circuit this test for compilers unknown to 2816# Autoconf. 2817for ac_file in $ac_files '' 2818do 2819 test -f "$ac_file" || continue 2820 case $ac_file in 2821 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2822 ;; 2823 [ab].out ) 2824 # We found the default executable, but exeext='' is most 2825 # certainly right. 2826 break;; 2827 *.* ) 2828 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2829 then :; else 2830 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2831 fi 2832 # We set ac_cv_exeext here because the later test for it is not 2833 # safe: cross compilers may not add the suffix if given an `-o' 2834 # argument, so we may need to know it at that point already. 2835 # Even if this section looks crufty: it has the advantage of 2836 # actually working. 2837 break;; 2838 * ) 2839 break;; 2840 esac 2841done 2842test "$ac_cv_exeext" = no && ac_cv_exeext= 2843 2844else 2845 ac_file='' 2846fi 2847 2848{ echo "$as_me:$LINENO: result: $ac_file" >&5 2849echo "${ECHO_T}$ac_file" >&6; } 2850if test -z "$ac_file"; then 2851 echo "$as_me: failed program was:" >&5 2852sed 's/^/| /' conftest.$ac_ext >&5 2853 2854{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2855See \`config.log' for more details." >&5 2856echo "$as_me: error: C compiler cannot create executables 2857See \`config.log' for more details." >&2;} 2858 { (exit 77); exit 77; }; } 2859fi 2860 2861ac_exeext=$ac_cv_exeext 2862 2863# Check that the compiler produces executables we can run. If not, either 2864# the compiler is broken, or we cross compile. 2865{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2866echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2867# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2868# If not cross compiling, check that we can run a simple program. 2869if test "$cross_compiling" != yes; then 2870 if { ac_try='./$ac_file' 2871 { (case "(($ac_try" in 2872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2873 *) ac_try_echo=$ac_try;; 2874esac 2875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2876 (eval "$ac_try") 2>&5 2877 ac_status=$? 2878 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2879 (exit $ac_status); }; }; then 2880 cross_compiling=no 2881 else 2882 if test "$cross_compiling" = maybe; then 2883 cross_compiling=yes 2884 else 2885 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2886If you meant to cross compile, use \`--host'. 2887See \`config.log' for more details." >&5 2888echo "$as_me: error: cannot run C compiled programs. 2889If you meant to cross compile, use \`--host'. 2890See \`config.log' for more details." >&2;} 2891 { (exit 1); exit 1; }; } 2892 fi 2893 fi 2894fi 2895{ echo "$as_me:$LINENO: result: yes" >&5 2896echo "${ECHO_T}yes" >&6; } 2897 2898rm -f a.out a.exe conftest$ac_cv_exeext b.out 2899ac_clean_files=$ac_clean_files_save 2900# Check that the compiler produces executables we can run. If not, either 2901# the compiler is broken, or we cross compile. 2902{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2903echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2904{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2905echo "${ECHO_T}$cross_compiling" >&6; } 2906 2907{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2908echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2909if { (ac_try="$ac_link" 2910case "(($ac_try" in 2911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2912 *) ac_try_echo=$ac_try;; 2913esac 2914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2915 (eval "$ac_link") 2>&5 2916 ac_status=$? 2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2918 (exit $ac_status); }; then 2919 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2920# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2921# work properly (i.e., refer to `conftest.exe'), while it won't with 2922# `rm'. 2923for ac_file in conftest.exe conftest conftest.*; do 2924 test -f "$ac_file" || continue 2925 case $ac_file in 2926 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2927 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2928 break;; 2929 * ) break;; 2930 esac 2931done 2932else 2933 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2934See \`config.log' for more details." >&5 2935echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2936See \`config.log' for more details." >&2;} 2937 { (exit 1); exit 1; }; } 2938fi 2939 2940rm -f conftest$ac_cv_exeext 2941{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2942echo "${ECHO_T}$ac_cv_exeext" >&6; } 2943 2944rm -f conftest.$ac_ext 2945EXEEXT=$ac_cv_exeext 2946ac_exeext=$EXEEXT 2947{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2948echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2949if test "${ac_cv_objext+set}" = set; then 2950 echo $ECHO_N "(cached) $ECHO_C" >&6 2951else 2952 cat >conftest.$ac_ext <<_ACEOF 2953/* confdefs.h. */ 2954_ACEOF 2955cat confdefs.h >>conftest.$ac_ext 2956cat >>conftest.$ac_ext <<_ACEOF 2957/* end confdefs.h. */ 2958 2959int 2960main () 2961{ 2962 2963 ; 2964 return 0; 2965} 2966_ACEOF 2967rm -f conftest.o conftest.obj 2968if { (ac_try="$ac_compile" 2969case "(($ac_try" in 2970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2971 *) ac_try_echo=$ac_try;; 2972esac 2973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2974 (eval "$ac_compile") 2>&5 2975 ac_status=$? 2976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2977 (exit $ac_status); }; then 2978 for ac_file in conftest.o conftest.obj conftest.*; do 2979 test -f "$ac_file" || continue; 2980 case $ac_file in 2981 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2982 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2983 break;; 2984 esac 2985done 2986else 2987 echo "$as_me: failed program was:" >&5 2988sed 's/^/| /' conftest.$ac_ext >&5 2989 2990{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2991See \`config.log' for more details." >&5 2992echo "$as_me: error: cannot compute suffix of object files: cannot compile 2993See \`config.log' for more details." >&2;} 2994 { (exit 1); exit 1; }; } 2995fi 2996 2997rm -f conftest.$ac_cv_objext conftest.$ac_ext 2998fi 2999{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3000echo "${ECHO_T}$ac_cv_objext" >&6; } 3001OBJEXT=$ac_cv_objext 3002ac_objext=$OBJEXT 3003{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3004echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3005if test "${ac_cv_c_compiler_gnu+set}" = set; then 3006 echo $ECHO_N "(cached) $ECHO_C" >&6 3007else 3008 cat >conftest.$ac_ext <<_ACEOF 3009/* confdefs.h. */ 3010_ACEOF 3011cat confdefs.h >>conftest.$ac_ext 3012cat >>conftest.$ac_ext <<_ACEOF 3013/* end confdefs.h. */ 3014 3015int 3016main () 3017{ 3018#ifndef __GNUC__ 3019 choke me 3020#endif 3021 3022 ; 3023 return 0; 3024} 3025_ACEOF 3026rm -f conftest.$ac_objext 3027if { (ac_try="$ac_compile" 3028case "(($ac_try" in 3029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3030 *) ac_try_echo=$ac_try;; 3031esac 3032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3033 (eval "$ac_compile") 2>conftest.er1 3034 ac_status=$? 3035 grep -v '^ *+' conftest.er1 >conftest.err 3036 rm -f conftest.er1 3037 cat conftest.err >&5 3038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3039 (exit $ac_status); } && { 3040 test -z "$ac_c_werror_flag" || 3041 test ! -s conftest.err 3042 } && test -s conftest.$ac_objext; then 3043 ac_compiler_gnu=yes 3044else 3045 echo "$as_me: failed program was:" >&5 3046sed 's/^/| /' conftest.$ac_ext >&5 3047 3048 ac_compiler_gnu=no 3049fi 3050 3051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3052ac_cv_c_compiler_gnu=$ac_compiler_gnu 3053 3054fi 3055{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3056echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3057GCC=`test $ac_compiler_gnu = yes && echo yes` 3058ac_test_CFLAGS=${CFLAGS+set} 3059ac_save_CFLAGS=$CFLAGS 3060{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3061echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3062if test "${ac_cv_prog_cc_g+set}" = set; then 3063 echo $ECHO_N "(cached) $ECHO_C" >&6 3064else 3065 ac_save_c_werror_flag=$ac_c_werror_flag 3066 ac_c_werror_flag=yes 3067 ac_cv_prog_cc_g=no 3068 CFLAGS="-g" 3069 cat >conftest.$ac_ext <<_ACEOF 3070/* confdefs.h. */ 3071_ACEOF 3072cat confdefs.h >>conftest.$ac_ext 3073cat >>conftest.$ac_ext <<_ACEOF 3074/* end confdefs.h. */ 3075 3076int 3077main () 3078{ 3079 3080 ; 3081 return 0; 3082} 3083_ACEOF 3084rm -f conftest.$ac_objext 3085if { (ac_try="$ac_compile" 3086case "(($ac_try" in 3087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3088 *) ac_try_echo=$ac_try;; 3089esac 3090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3091 (eval "$ac_compile") 2>conftest.er1 3092 ac_status=$? 3093 grep -v '^ *+' conftest.er1 >conftest.err 3094 rm -f conftest.er1 3095 cat conftest.err >&5 3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3097 (exit $ac_status); } && { 3098 test -z "$ac_c_werror_flag" || 3099 test ! -s conftest.err 3100 } && test -s conftest.$ac_objext; then 3101 ac_cv_prog_cc_g=yes 3102else 3103 echo "$as_me: failed program was:" >&5 3104sed 's/^/| /' conftest.$ac_ext >&5 3105 3106 CFLAGS="" 3107 cat >conftest.$ac_ext <<_ACEOF 3108/* confdefs.h. */ 3109_ACEOF 3110cat confdefs.h >>conftest.$ac_ext 3111cat >>conftest.$ac_ext <<_ACEOF 3112/* end confdefs.h. */ 3113 3114int 3115main () 3116{ 3117 3118 ; 3119 return 0; 3120} 3121_ACEOF 3122rm -f conftest.$ac_objext 3123if { (ac_try="$ac_compile" 3124case "(($ac_try" in 3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3126 *) ac_try_echo=$ac_try;; 3127esac 3128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3129 (eval "$ac_compile") 2>conftest.er1 3130 ac_status=$? 3131 grep -v '^ *+' conftest.er1 >conftest.err 3132 rm -f conftest.er1 3133 cat conftest.err >&5 3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3135 (exit $ac_status); } && { 3136 test -z "$ac_c_werror_flag" || 3137 test ! -s conftest.err 3138 } && test -s conftest.$ac_objext; then 3139 : 3140else 3141 echo "$as_me: failed program was:" >&5 3142sed 's/^/| /' conftest.$ac_ext >&5 3143 3144 ac_c_werror_flag=$ac_save_c_werror_flag 3145 CFLAGS="-g" 3146 cat >conftest.$ac_ext <<_ACEOF 3147/* confdefs.h. */ 3148_ACEOF 3149cat confdefs.h >>conftest.$ac_ext 3150cat >>conftest.$ac_ext <<_ACEOF 3151/* end confdefs.h. */ 3152 3153int 3154main () 3155{ 3156 3157 ; 3158 return 0; 3159} 3160_ACEOF 3161rm -f conftest.$ac_objext 3162if { (ac_try="$ac_compile" 3163case "(($ac_try" in 3164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3165 *) ac_try_echo=$ac_try;; 3166esac 3167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3168 (eval "$ac_compile") 2>conftest.er1 3169 ac_status=$? 3170 grep -v '^ *+' conftest.er1 >conftest.err 3171 rm -f conftest.er1 3172 cat conftest.err >&5 3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3174 (exit $ac_status); } && { 3175 test -z "$ac_c_werror_flag" || 3176 test ! -s conftest.err 3177 } && test -s conftest.$ac_objext; then 3178 ac_cv_prog_cc_g=yes 3179else 3180 echo "$as_me: failed program was:" >&5 3181sed 's/^/| /' conftest.$ac_ext >&5 3182 3183 3184fi 3185 3186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3187fi 3188 3189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3190fi 3191 3192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3193 ac_c_werror_flag=$ac_save_c_werror_flag 3194fi 3195{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3196echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3197if test "$ac_test_CFLAGS" = set; then 3198 CFLAGS=$ac_save_CFLAGS 3199elif test $ac_cv_prog_cc_g = yes; then 3200 if test "$GCC" = yes; then 3201 CFLAGS="-g -O2" 3202 else 3203 CFLAGS="-g" 3204 fi 3205else 3206 if test "$GCC" = yes; then 3207 CFLAGS="-O2" 3208 else 3209 CFLAGS= 3210 fi 3211fi 3212{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3213echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3214if test "${ac_cv_prog_cc_c89+set}" = set; then 3215 echo $ECHO_N "(cached) $ECHO_C" >&6 3216else 3217 ac_cv_prog_cc_c89=no 3218ac_save_CC=$CC 3219cat >conftest.$ac_ext <<_ACEOF 3220/* confdefs.h. */ 3221_ACEOF 3222cat confdefs.h >>conftest.$ac_ext 3223cat >>conftest.$ac_ext <<_ACEOF 3224/* end confdefs.h. */ 3225#include <stdarg.h> 3226#include <stdio.h> 3227#include <sys/types.h> 3228#include <sys/stat.h> 3229/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3230struct buf { int x; }; 3231FILE * (*rcsopen) (struct buf *, struct stat *, int); 3232static char *e (p, i) 3233 char **p; 3234 int i; 3235{ 3236 return p[i]; 3237} 3238static char *f (char * (*g) (char **, int), char **p, ...) 3239{ 3240 char *s; 3241 va_list v; 3242 va_start (v,p); 3243 s = g (p, va_arg (v,int)); 3244 va_end (v); 3245 return s; 3246} 3247 3248/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3249 function prototypes and stuff, but not '\xHH' hex character constants. 3250 These don't provoke an error unfortunately, instead are silently treated 3251 as 'x'. The following induces an error, until -std is added to get 3252 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3253 array size at least. It's necessary to write '\x00'==0 to get something 3254 that's true only with -std. */ 3255int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3256 3257/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3258 inside strings and character constants. */ 3259#define FOO(x) 'x' 3260int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3261 3262int test (int i, double x); 3263struct s1 {int (*f) (int a);}; 3264struct s2 {int (*f) (double a);}; 3265int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3266int argc; 3267char **argv; 3268int 3269main () 3270{ 3271return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3272 ; 3273 return 0; 3274} 3275_ACEOF 3276for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3277 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3278do 3279 CC="$ac_save_CC $ac_arg" 3280 rm -f conftest.$ac_objext 3281if { (ac_try="$ac_compile" 3282case "(($ac_try" in 3283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3284 *) ac_try_echo=$ac_try;; 3285esac 3286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3287 (eval "$ac_compile") 2>conftest.er1 3288 ac_status=$? 3289 grep -v '^ *+' conftest.er1 >conftest.err 3290 rm -f conftest.er1 3291 cat conftest.err >&5 3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3293 (exit $ac_status); } && { 3294 test -z "$ac_c_werror_flag" || 3295 test ! -s conftest.err 3296 } && test -s conftest.$ac_objext; then 3297 ac_cv_prog_cc_c89=$ac_arg 3298else 3299 echo "$as_me: failed program was:" >&5 3300sed 's/^/| /' conftest.$ac_ext >&5 3301 3302 3303fi 3304 3305rm -f core conftest.err conftest.$ac_objext 3306 test "x$ac_cv_prog_cc_c89" != "xno" && break 3307done 3308rm -f conftest.$ac_ext 3309CC=$ac_save_CC 3310 3311fi 3312# AC_CACHE_VAL 3313case "x$ac_cv_prog_cc_c89" in 3314 x) 3315 { echo "$as_me:$LINENO: result: none needed" >&5 3316echo "${ECHO_T}none needed" >&6; } ;; 3317 xno) 3318 { echo "$as_me:$LINENO: result: unsupported" >&5 3319echo "${ECHO_T}unsupported" >&6; } ;; 3320 *) 3321 CC="$CC $ac_cv_prog_cc_c89" 3322 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3323echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3324esac 3325 3326 3327ac_ext=c 3328ac_cpp='$CPP $CPPFLAGS' 3329ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3330ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3331ac_compiler_gnu=$ac_cv_c_compiler_gnu 3332DEPDIR="${am__leading_dot}deps" 3333 3334ac_config_commands="$ac_config_commands depfiles" 3335 3336 3337am_make=${MAKE-make} 3338cat > confinc << 'END' 3339am__doit: 3340 @echo done 3341.PHONY: am__doit 3342END 3343# If we don't find an include directive, just comment out the code. 3344{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3345echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 3346am__include="#" 3347am__quote= 3348_am_result=none 3349# First try GNU make style include. 3350echo "include confinc" > confmf 3351# We grep out `Entering directory' and `Leaving directory' 3352# messages which can occur if `w' ends up in MAKEFLAGS. 3353# In particular we don't look at `^make:' because GNU make might 3354# be invoked under some other name (usually "gmake"), in which 3355# case it prints its new name instead of `make'. 3356if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3357 am__include=include 3358 am__quote= 3359 _am_result=GNU 3360fi 3361# Now try BSD make style include. 3362if test "$am__include" = "#"; then 3363 echo '.include "confinc"' > confmf 3364 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3365 am__include=.include 3366 am__quote="\"" 3367 _am_result=BSD 3368 fi 3369fi 3370 3371 3372{ echo "$as_me:$LINENO: result: $_am_result" >&5 3373echo "${ECHO_T}$_am_result" >&6; } 3374rm -f confinc confmf 3375 3376# Check whether --enable-dependency-tracking was given. 3377if test "${enable_dependency_tracking+set}" = set; then 3378 enableval=$enable_dependency_tracking; 3379fi 3380 3381if test "x$enable_dependency_tracking" != xno; then 3382 am_depcomp="$ac_aux_dir/depcomp" 3383 AMDEPBACKSLASH='\' 3384fi 3385 if test "x$enable_dependency_tracking" != xno; then 3386 AMDEP_TRUE= 3387 AMDEP_FALSE='#' 3388else 3389 AMDEP_TRUE='#' 3390 AMDEP_FALSE= 3391fi 3392 3393 3394 3395depcc="$CC" am_compiler_list= 3396 3397{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3398echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3399if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3400 echo $ECHO_N "(cached) $ECHO_C" >&6 3401else 3402 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3403 # We make a subdir and do the tests there. Otherwise we can end up 3404 # making bogus files that we don't know about and never remove. For 3405 # instance it was reported that on HP-UX the gcc test will end up 3406 # making a dummy file named `D' -- because `-MD' means `put the output 3407 # in D'. 3408 mkdir conftest.dir 3409 # Copy depcomp to subdir because otherwise we won't find it if we're 3410 # using a relative directory. 3411 cp "$am_depcomp" conftest.dir 3412 cd conftest.dir 3413 # We will build objects and dependencies in a subdirectory because 3414 # it helps to detect inapplicable dependency modes. For instance 3415 # both Tru64's cc and ICC support -MD to output dependencies as a 3416 # side effect of compilation, but ICC will put the dependencies in 3417 # the current directory while Tru64 will put them in the object 3418 # directory. 3419 mkdir sub 3420 3421 am_cv_CC_dependencies_compiler_type=none 3422 if test "$am_compiler_list" = ""; then 3423 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3424 fi 3425 for depmode in $am_compiler_list; do 3426 # Setup a source with many dependencies, because some compilers 3427 # like to wrap large dependency lists on column 80 (with \), and 3428 # we should not choose a depcomp mode which is confused by this. 3429 # 3430 # We need to recreate these files for each test, as the compiler may 3431 # overwrite some of them when testing with obscure command lines. 3432 # This happens at least with the AIX C compiler. 3433 : > sub/conftest.c 3434 for i in 1 2 3 4 5 6; do 3435 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3436 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3437 # Solaris 8's {/usr,}/bin/sh. 3438 touch sub/conftst$i.h 3439 done 3440 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3441 3442 case $depmode in 3443 nosideeffect) 3444 # after this tag, mechanisms are not by side-effect, so they'll 3445 # only be used when explicitly requested 3446 if test "x$enable_dependency_tracking" = xyes; then 3447 continue 3448 else 3449 break 3450 fi 3451 ;; 3452 none) break ;; 3453 esac 3454 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3455 # mode. It turns out that the SunPro C++ compiler does not properly 3456 # handle `-M -o', and we need to detect this. 3457 if depmode=$depmode \ 3458 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3459 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3460 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3461 >/dev/null 2>conftest.err && 3462 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3463 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3464 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3465 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3466 # icc doesn't choke on unknown options, it will just issue warnings 3467 # or remarks (even with -Werror). So we grep stderr for any message 3468 # that says an option was ignored or not supported. 3469 # When given -MP, icc 7.0 and 7.1 complain thusly: 3470 # icc: Command line warning: ignoring option '-M'; no argument required 3471 # The diagnosis changed in icc 8.0: 3472 # icc: Command line remark: option '-MP' not supported 3473 if (grep 'ignoring option' conftest.err || 3474 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3475 am_cv_CC_dependencies_compiler_type=$depmode 3476 break 3477 fi 3478 fi 3479 done 3480 3481 cd .. 3482 rm -rf conftest.dir 3483else 3484 am_cv_CC_dependencies_compiler_type=none 3485fi 3486 3487fi 3488{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3489echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 3490CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3491 3492 if 3493 test "x$enable_dependency_tracking" != xno \ 3494 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3495 am__fastdepCC_TRUE= 3496 am__fastdepCC_FALSE='#' 3497else 3498 am__fastdepCC_TRUE='#' 3499 am__fastdepCC_FALSE= 3500fi 3501 3502 3503# Find a good install program. We prefer a C program (faster), 3504# so one script is as good as another. But avoid the broken or 3505# incompatible versions: 3506# SysV /etc/install, /usr/sbin/install 3507# SunOS /usr/etc/install 3508# IRIX /sbin/install 3509# AIX /bin/install 3510# AmigaOS /C/install, which installs bootblocks on floppy discs 3511# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3512# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3513# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3514# OS/2's system install, which has a completely different semantic 3515# ./install, which can be erroneously created by make from ./install.sh. 3516{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3517echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 3518if test -z "$INSTALL"; then 3519if test "${ac_cv_path_install+set}" = set; then 3520 echo $ECHO_N "(cached) $ECHO_C" >&6 3521else 3522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3523for as_dir in $PATH 3524do 3525 IFS=$as_save_IFS 3526 test -z "$as_dir" && as_dir=. 3527 # Account for people who put trailing slashes in PATH elements. 3528case $as_dir/ in 3529 ./ | .// | /cC/* | \ 3530 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3531 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3532 /usr/ucb/* ) ;; 3533 *) 3534 # OSF1 and SCO ODT 3.0 have their own names for install. 3535 # Don't use installbsd from OSF since it installs stuff as root 3536 # by default. 3537 for ac_prog in ginstall scoinst install; do 3538 for ac_exec_ext in '' $ac_executable_extensions; do 3539 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3540 if test $ac_prog = install && 3541 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3542 # AIX install. It has an incompatible calling convention. 3543 : 3544 elif test $ac_prog = install && 3545 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3546 # program-specific install script used by HP pwplus--don't use. 3547 : 3548 else 3549 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3550 break 3 3551 fi 3552 fi 3553 done 3554 done 3555 ;; 3556esac 3557done 3558IFS=$as_save_IFS 3559 3560 3561fi 3562 if test "${ac_cv_path_install+set}" = set; then 3563 INSTALL=$ac_cv_path_install 3564 else 3565 # As a last resort, use the slow shell script. Don't cache a 3566 # value for INSTALL within a source directory, because that will 3567 # break other packages using the cache if that directory is 3568 # removed, or if the value is a relative name. 3569 INSTALL=$ac_install_sh 3570 fi 3571fi 3572{ echo "$as_me:$LINENO: result: $INSTALL" >&5 3573echo "${ECHO_T}$INSTALL" >&6; } 3574 3575# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3576# It thinks the first close brace ends the variable substitution. 3577test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3578 3579test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3580 3581test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3582 3583 3584# Make sure we can run config.sub. 3585$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3586 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 3587echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 3588 { (exit 1); exit 1; }; } 3589 3590{ echo "$as_me:$LINENO: checking build system type" >&5 3591echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 3592if test "${ac_cv_build+set}" = set; then 3593 echo $ECHO_N "(cached) $ECHO_C" >&6 3594else 3595 ac_build_alias=$build_alias 3596test "x$ac_build_alias" = x && 3597 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3598test "x$ac_build_alias" = x && 3599 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3600echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3601 { (exit 1); exit 1; }; } 3602ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3603 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 3604echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 3605 { (exit 1); exit 1; }; } 3606 3607fi 3608{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3609echo "${ECHO_T}$ac_cv_build" >&6; } 3610case $ac_cv_build in 3611*-*-*) ;; 3612*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 3613echo "$as_me: error: invalid value of canonical build" >&2;} 3614 { (exit 1); exit 1; }; };; 3615esac 3616build=$ac_cv_build 3617ac_save_IFS=$IFS; IFS='-' 3618set x $ac_cv_build 3619shift 3620build_cpu=$1 3621build_vendor=$2 3622shift; shift 3623# Remember, the first character of IFS is used to create $*, 3624# except with old shells: 3625build_os=$* 3626IFS=$ac_save_IFS 3627case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3628 3629 3630{ echo "$as_me:$LINENO: checking host system type" >&5 3631echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 3632if test "${ac_cv_host+set}" = set; then 3633 echo $ECHO_N "(cached) $ECHO_C" >&6 3634else 3635 if test "x$host_alias" = x; then 3636 ac_cv_host=$ac_cv_build 3637else 3638 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3639 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 3640echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 3641 { (exit 1); exit 1; }; } 3642fi 3643 3644fi 3645{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3646echo "${ECHO_T}$ac_cv_host" >&6; } 3647case $ac_cv_host in 3648*-*-*) ;; 3649*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 3650echo "$as_me: error: invalid value of canonical host" >&2;} 3651 { (exit 1); exit 1; }; };; 3652esac 3653host=$ac_cv_host 3654ac_save_IFS=$IFS; IFS='-' 3655set x $ac_cv_host 3656shift 3657host_cpu=$1 3658host_vendor=$2 3659shift; shift 3660# Remember, the first character of IFS is used to create $*, 3661# except with old shells: 3662host_os=$* 3663IFS=$ac_save_IFS 3664case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 case "$host_os" in 3676 mingw* | cygwin*) 3677 { echo "$as_me:$LINENO: checking for auto-import of symbols" >&5 3678echo $ECHO_N "checking for auto-import of symbols... $ECHO_C" >&6; } 3679 if test "${gl_cv_ld_autoimport+set}" = set; then 3680 echo $ECHO_N "(cached) $ECHO_C" >&6 3681else 3682 3683 gl_save_LDFLAGS="$LDFLAGS" 3684 LDFLAGS="$LDFLAGS -Wl,--disable-auto-import" 3685 cat >conftest.$ac_ext <<_ACEOF 3686/* confdefs.h. */ 3687_ACEOF 3688cat confdefs.h >>conftest.$ac_ext 3689cat >>conftest.$ac_ext <<_ACEOF 3690/* end confdefs.h. */ 3691 3692int 3693main () 3694{ 3695 3696 ; 3697 return 0; 3698} 3699_ACEOF 3700rm -f conftest.$ac_objext conftest$ac_exeext 3701if { (ac_try="$ac_link" 3702case "(($ac_try" in 3703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3704 *) ac_try_echo=$ac_try;; 3705esac 3706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3707 (eval "$ac_link") 2>conftest.er1 3708 ac_status=$? 3709 grep -v '^ *+' conftest.er1 >conftest.err 3710 rm -f conftest.er1 3711 cat conftest.err >&5 3712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3713 (exit $ac_status); } && { 3714 test -z "$ac_c_werror_flag" || 3715 test ! -s conftest.err 3716 } && test -s conftest$ac_exeext && 3717 $as_test_x conftest$ac_exeext; then 3718 gl_cv_ld_autoimport=yes 3719else 3720 echo "$as_me: failed program was:" >&5 3721sed 's/^/| /' conftest.$ac_ext >&5 3722 3723 gl_cv_ld_autoimport=no 3724fi 3725 3726rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3727 conftest$ac_exeext conftest.$ac_ext 3728 LDFLAGS="$gl_save_LDFLAGS" 3729fi 3730 3731 { echo "$as_me:$LINENO: result: $gl_cv_ld_autoimport" >&5 3732echo "${ECHO_T}$gl_cv_ld_autoimport" >&6; } 3733 if test $gl_cv_ld_autoimport = yes; then 3734 LDFLAGS="$LDFLAGS -Wl,--disable-auto-import" 3735 fi 3736 ;; 3737 esac 3738 3739 3740 3741# Check whether --enable-shared was given. 3742if test "${enable_shared+set}" = set; then 3743 enableval=$enable_shared; p=${PACKAGE-default} 3744 case $enableval in 3745 yes) enable_shared=yes ;; 3746 no) enable_shared=no ;; 3747 *) 3748 enable_shared=no 3749 # Look at the argument we got. We use all the common list separators. 3750 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3751 for pkg in $enableval; do 3752 IFS="$lt_save_ifs" 3753 if test "X$pkg" = "X$p"; then 3754 enable_shared=yes 3755 fi 3756 done 3757 IFS="$lt_save_ifs" 3758 ;; 3759 esac 3760else 3761 enable_shared=yes 3762fi 3763 3764 3765# Check whether --enable-static was given. 3766if test "${enable_static+set}" = set; then 3767 enableval=$enable_static; p=${PACKAGE-default} 3768 case $enableval in 3769 yes) enable_static=yes ;; 3770 no) enable_static=no ;; 3771 *) 3772 enable_static=no 3773 # Look at the argument we got. We use all the common list separators. 3774 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3775 for pkg in $enableval; do 3776 IFS="$lt_save_ifs" 3777 if test "X$pkg" = "X$p"; then 3778 enable_static=yes 3779 fi 3780 done 3781 IFS="$lt_save_ifs" 3782 ;; 3783 esac 3784else 3785 enable_static=yes 3786fi 3787 3788 3789# Check whether --enable-fast-install was given. 3790if test "${enable_fast_install+set}" = set; then 3791 enableval=$enable_fast_install; p=${PACKAGE-default} 3792 case $enableval in 3793 yes) enable_fast_install=yes ;; 3794 no) enable_fast_install=no ;; 3795 *) 3796 enable_fast_install=no 3797 # Look at the argument we got. We use all the common list separators. 3798 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3799 for pkg in $enableval; do 3800 IFS="$lt_save_ifs" 3801 if test "X$pkg" = "X$p"; then 3802 enable_fast_install=yes 3803 fi 3804 done 3805 IFS="$lt_save_ifs" 3806 ;; 3807 esac 3808else 3809 enable_fast_install=yes 3810fi 3811 3812 3813{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3814echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } 3815if test "${lt_cv_path_SED+set}" = set; then 3816 echo $ECHO_N "(cached) $ECHO_C" >&6 3817else 3818 # Loop through the user's path and test for sed and gsed. 3819# Then use that list of sed's as ones to test for truncation. 3820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3821for as_dir in $PATH 3822do 3823 IFS=$as_save_IFS 3824 test -z "$as_dir" && as_dir=. 3825 for lt_ac_prog in sed gsed; do 3826 for ac_exec_ext in '' $ac_executable_extensions; do 3827 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then 3828 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3829 fi 3830 done 3831 done 3832done 3833IFS=$as_save_IFS 3834lt_ac_max=0 3835lt_ac_count=0 3836# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3837# along with /bin/sed that truncates output. 3838for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3839 test ! -f $lt_ac_sed && continue 3840 cat /dev/null > conftest.in 3841 lt_ac_count=0 3842 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3843 # Check for GNU sed and select it if it is found. 3844 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3845 lt_cv_path_SED=$lt_ac_sed 3846 break 3847 fi 3848 while true; do 3849 cat conftest.in conftest.in >conftest.tmp 3850 mv conftest.tmp conftest.in 3851 cp conftest.in conftest.nl 3852 echo >>conftest.nl 3853 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3854 cmp -s conftest.out conftest.nl || break 3855 # 10000 chars as input seems more than enough 3856 test $lt_ac_count -gt 10 && break 3857 lt_ac_count=`expr $lt_ac_count + 1` 3858 if test $lt_ac_count -gt $lt_ac_max; then 3859 lt_ac_max=$lt_ac_count 3860 lt_cv_path_SED=$lt_ac_sed 3861 fi 3862 done 3863done 3864 3865fi 3866 3867SED=$lt_cv_path_SED 3868 3869{ echo "$as_me:$LINENO: result: $SED" >&5 3870echo "${ECHO_T}$SED" >&6; } 3871 3872{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3873echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3874if test "${ac_cv_path_GREP+set}" = set; then 3875 echo $ECHO_N "(cached) $ECHO_C" >&6 3876else 3877 # Extract the first word of "grep ggrep" to use in msg output 3878if test -z "$GREP"; then 3879set dummy grep ggrep; ac_prog_name=$2 3880if test "${ac_cv_path_GREP+set}" = set; then 3881 echo $ECHO_N "(cached) $ECHO_C" >&6 3882else 3883 ac_path_GREP_found=false 3884# Loop through the user's path and test for each of PROGNAME-LIST 3885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3886for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3887do 3888 IFS=$as_save_IFS 3889 test -z "$as_dir" && as_dir=. 3890 for ac_prog in grep ggrep; do 3891 for ac_exec_ext in '' $ac_executable_extensions; do 3892 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3893 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3894 # Check for GNU ac_path_GREP and select it if it is found. 3895 # Check for GNU $ac_path_GREP 3896case `"$ac_path_GREP" --version 2>&1` in 3897*GNU*) 3898 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3899*) 3900 ac_count=0 3901 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3902 while : 3903 do 3904 cat "conftest.in" "conftest.in" >"conftest.tmp" 3905 mv "conftest.tmp" "conftest.in" 3906 cp "conftest.in" "conftest.nl" 3907 echo 'GREP' >> "conftest.nl" 3908 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3909 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3910 ac_count=`expr $ac_count + 1` 3911 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3912 # Best one so far, save it but keep looking for a better one 3913 ac_cv_path_GREP="$ac_path_GREP" 3914 ac_path_GREP_max=$ac_count 3915 fi 3916 # 10*(2^10) chars as input seems more than enough 3917 test $ac_count -gt 10 && break 3918 done 3919 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3920esac 3921 3922 3923 $ac_path_GREP_found && break 3 3924 done 3925done 3926 3927done 3928IFS=$as_save_IFS 3929 3930 3931fi 3932 3933GREP="$ac_cv_path_GREP" 3934if test -z "$GREP"; then 3935 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3936echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3937 { (exit 1); exit 1; }; } 3938fi 3939 3940else 3941 ac_cv_path_GREP=$GREP 3942fi 3943 3944 3945fi 3946{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3947echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3948 GREP="$ac_cv_path_GREP" 3949 3950 3951{ echo "$as_me:$LINENO: checking for egrep" >&5 3952echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3953if test "${ac_cv_path_EGREP+set}" = set; then 3954 echo $ECHO_N "(cached) $ECHO_C" >&6 3955else 3956 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3957 then ac_cv_path_EGREP="$GREP -E" 3958 else 3959 # Extract the first word of "egrep" to use in msg output 3960if test -z "$EGREP"; then 3961set dummy egrep; ac_prog_name=$2 3962if test "${ac_cv_path_EGREP+set}" = set; then 3963 echo $ECHO_N "(cached) $ECHO_C" >&6 3964else 3965 ac_path_EGREP_found=false 3966# Loop through the user's path and test for each of PROGNAME-LIST 3967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3968for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3969do 3970 IFS=$as_save_IFS 3971 test -z "$as_dir" && as_dir=. 3972 for ac_prog in egrep; do 3973 for ac_exec_ext in '' $ac_executable_extensions; do 3974 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3975 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3976 # Check for GNU ac_path_EGREP and select it if it is found. 3977 # Check for GNU $ac_path_EGREP 3978case `"$ac_path_EGREP" --version 2>&1` in 3979*GNU*) 3980 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3981*) 3982 ac_count=0 3983 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3984 while : 3985 do 3986 cat "conftest.in" "conftest.in" >"conftest.tmp" 3987 mv "conftest.tmp" "conftest.in" 3988 cp "conftest.in" "conftest.nl" 3989 echo 'EGREP' >> "conftest.nl" 3990 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3991 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3992 ac_count=`expr $ac_count + 1` 3993 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3994 # Best one so far, save it but keep looking for a better one 3995 ac_cv_path_EGREP="$ac_path_EGREP" 3996 ac_path_EGREP_max=$ac_count 3997 fi 3998 # 10*(2^10) chars as input seems more than enough 3999 test $ac_count -gt 10 && break 4000 done 4001 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4002esac 4003 4004 4005 $ac_path_EGREP_found && break 3 4006 done 4007done 4008 4009done 4010IFS=$as_save_IFS 4011 4012 4013fi 4014 4015EGREP="$ac_cv_path_EGREP" 4016if test -z "$EGREP"; then 4017 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4018echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4019 { (exit 1); exit 1; }; } 4020fi 4021 4022else 4023 ac_cv_path_EGREP=$EGREP 4024fi 4025 4026 4027 fi 4028fi 4029{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4030echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 4031 EGREP="$ac_cv_path_EGREP" 4032 4033 4034 4035# Check whether --with-gnu-ld was given. 4036if test "${with_gnu_ld+set}" = set; then 4037 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4038else 4039 with_gnu_ld=no 4040fi 4041 4042ac_prog=ld 4043if test "$GCC" = yes; then 4044 # Check if gcc -print-prog-name=ld gives a path. 4045 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4046echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 4047 case $host in 4048 *-*-mingw*) 4049 # gcc leaves a trailing carriage return which upsets mingw 4050 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4051 *) 4052 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4053 esac 4054 case $ac_prog in 4055 # Accept absolute paths. 4056 [\\/]* | ?:[\\/]*) 4057 re_direlt='/[^/][^/]*/\.\./' 4058 # Canonicalize the pathname of ld 4059 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 4060 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 4061 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 4062 done 4063 test -z "$LD" && LD="$ac_prog" 4064 ;; 4065 "") 4066 # If it fails, then pretend we aren't using GCC. 4067 ac_prog=ld 4068 ;; 4069 *) 4070 # If it is relative, then search for the first ld in PATH. 4071 with_gnu_ld=unknown 4072 ;; 4073 esac 4074elif test "$with_gnu_ld" = yes; then 4075 { echo "$as_me:$LINENO: checking for GNU ld" >&5 4076echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 4077else 4078 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4079echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 4080fi 4081if test "${lt_cv_path_LD+set}" = set; then 4082 echo $ECHO_N "(cached) $ECHO_C" >&6 4083else 4084 if test -z "$LD"; then 4085 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4086 for ac_dir in $PATH; do 4087 IFS="$lt_save_ifs" 4088 test -z "$ac_dir" && ac_dir=. 4089 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4090 lt_cv_path_LD="$ac_dir/$ac_prog" 4091 # Check to see if the program is GNU ld. I'd rather use --version, 4092 # but apparently some variants of GNU ld only accept -v. 4093 # Break only if it was the GNU/non-GNU ld that we prefer. 4094 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4095 *GNU* | *'with BFD'*) 4096 test "$with_gnu_ld" != no && break 4097 ;; 4098 *) 4099 test "$with_gnu_ld" != yes && break 4100 ;; 4101 esac 4102 fi 4103 done 4104 IFS="$lt_save_ifs" 4105else 4106 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4107fi 4108fi 4109 4110LD="$lt_cv_path_LD" 4111if test -n "$LD"; then 4112 { echo "$as_me:$LINENO: result: $LD" >&5 4113echo "${ECHO_T}$LD" >&6; } 4114else 4115 { echo "$as_me:$LINENO: result: no" >&5 4116echo "${ECHO_T}no" >&6; } 4117fi 4118test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4119echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4120 { (exit 1); exit 1; }; } 4121{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4122echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 4123if test "${lt_cv_prog_gnu_ld+set}" = set; then 4124 echo $ECHO_N "(cached) $ECHO_C" >&6 4125else 4126 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4127case `$LD -v 2>&1 </dev/null` in 4128*GNU* | *'with BFD'*) 4129 lt_cv_prog_gnu_ld=yes 4130 ;; 4131*) 4132 lt_cv_prog_gnu_ld=no 4133 ;; 4134esac 4135fi 4136{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4137echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 4138with_gnu_ld=$lt_cv_prog_gnu_ld 4139 4140 4141{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4142echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } 4143if test "${lt_cv_ld_reload_flag+set}" = set; then 4144 echo $ECHO_N "(cached) $ECHO_C" >&6 4145else 4146 lt_cv_ld_reload_flag='-r' 4147fi 4148{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4149echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } 4150reload_flag=$lt_cv_ld_reload_flag 4151case $reload_flag in 4152"" | " "*) ;; 4153*) reload_flag=" $reload_flag" ;; 4154esac 4155reload_cmds='$LD$reload_flag -o $output$reload_objs' 4156case $host_os in 4157 darwin*) 4158 if test "$GCC" = yes; then 4159 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4160 else 4161 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4162 fi 4163 ;; 4164esac 4165 4166{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4167echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 4168if test "${lt_cv_path_NM+set}" = set; then 4169 echo $ECHO_N "(cached) $ECHO_C" >&6 4170else 4171 if test -n "$NM"; then 4172 # Let the user override the test. 4173 lt_cv_path_NM="$NM" 4174else 4175 lt_nm_to_check="${ac_tool_prefix}nm" 4176 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4177 lt_nm_to_check="$lt_nm_to_check nm" 4178 fi 4179 for lt_tmp_nm in $lt_nm_to_check; do 4180 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4181 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4182 IFS="$lt_save_ifs" 4183 test -z "$ac_dir" && ac_dir=. 4184 tmp_nm="$ac_dir/$lt_tmp_nm" 4185 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4186 # Check to see if the nm accepts a BSD-compat flag. 4187 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4188 # nm: unknown option "B" ignored 4189 # Tru64's nm complains that /dev/null is an invalid object file 4190 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4191 */dev/null* | *'Invalid file or object type'*) 4192 lt_cv_path_NM="$tmp_nm -B" 4193 break 4194 ;; 4195 *) 4196 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4197 */dev/null*) 4198 lt_cv_path_NM="$tmp_nm -p" 4199 break 4200 ;; 4201 *) 4202 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4203 continue # so that we can try to find one that supports BSD flags 4204 ;; 4205 esac 4206 ;; 4207 esac 4208 fi 4209 done 4210 IFS="$lt_save_ifs" 4211 done 4212 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4213fi 4214fi 4215{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4216echo "${ECHO_T}$lt_cv_path_NM" >&6; } 4217NM="$lt_cv_path_NM" 4218 4219{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 4220echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 4221LN_S=$as_ln_s 4222if test "$LN_S" = "ln -s"; then 4223 { echo "$as_me:$LINENO: result: yes" >&5 4224echo "${ECHO_T}yes" >&6; } 4225else 4226 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4227echo "${ECHO_T}no, using $LN_S" >&6; } 4228fi 4229 4230{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 4231echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; } 4232if test "${lt_cv_deplibs_check_method+set}" = set; then 4233 echo $ECHO_N "(cached) $ECHO_C" >&6 4234else 4235 lt_cv_file_magic_cmd='$MAGIC_CMD' 4236lt_cv_file_magic_test_file= 4237lt_cv_deplibs_check_method='unknown' 4238# Need to set the preceding variable on all platforms that support 4239# interlibrary dependencies. 4240# 'none' -- dependencies not supported. 4241# `unknown' -- same as none, but documents that we really don't know. 4242# 'pass_all' -- all dependencies passed with no checks. 4243# 'test_compile' -- check by making test program. 4244# 'file_magic [[regex]]' -- check by looking for files in library path 4245# which responds to the $file_magic_cmd with a given extended regex. 4246# If you have `file' or equivalent on your system and you're not sure 4247# whether `pass_all' will *always* work, you probably want this one. 4248 4249case $host_os in 4250aix4* | aix5*) 4251 lt_cv_deplibs_check_method=pass_all 4252 ;; 4253 4254beos*) 4255 lt_cv_deplibs_check_method=pass_all 4256 ;; 4257 4258bsdi[45]*) 4259 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4260 lt_cv_file_magic_cmd='/usr/bin/file -L' 4261 lt_cv_file_magic_test_file=/shlib/libc.so 4262 ;; 4263 4264cygwin*) 4265 # func_win32_libid is a shell function defined in ltmain.sh 4266 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4267 lt_cv_file_magic_cmd='func_win32_libid' 4268 ;; 4269 4270mingw* | pw32*) 4271 # Base MSYS/MinGW do not provide the 'file' command needed by 4272 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4273 # unless we find 'file', for example because we are cross-compiling. 4274 if ( file / ) >/dev/null 2>&1; then 4275 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4276 lt_cv_file_magic_cmd='func_win32_libid' 4277 else 4278 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4279 lt_cv_file_magic_cmd='$OBJDUMP -f' 4280 fi 4281 ;; 4282 4283darwin* | rhapsody*) 4284 lt_cv_deplibs_check_method=pass_all 4285 ;; 4286 4287freebsd* | dragonfly*) 4288 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4289 case $host_cpu in 4290 i*86 ) 4291 # Not sure whether the presence of OpenBSD here was a mistake. 4292 # Let's accept both of them until this is cleared up. 4293 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4294 lt_cv_file_magic_cmd=/usr/bin/file 4295 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4296 ;; 4297 esac 4298 else 4299 lt_cv_deplibs_check_method=pass_all 4300 fi 4301 ;; 4302 4303gnu*) 4304 lt_cv_deplibs_check_method=pass_all 4305 ;; 4306 4307hpux10.20* | hpux11*) 4308 lt_cv_file_magic_cmd=/usr/bin/file 4309 case $host_cpu in 4310 ia64*) 4311 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4312 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4313 ;; 4314 hppa*64*) 4315 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]' 4316 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4317 ;; 4318 *) 4319 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4320 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4321 ;; 4322 esac 4323 ;; 4324 4325interix[3-9]*) 4326 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4327 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4328 ;; 4329 4330irix5* | irix6* | nonstopux*) 4331 case $LD in 4332 *-32|*"-32 ") libmagic=32-bit;; 4333 *-n32|*"-n32 ") libmagic=N32;; 4334 *-64|*"-64 ") libmagic=64-bit;; 4335 *) libmagic=never-match;; 4336 esac 4337 lt_cv_deplibs_check_method=pass_all 4338 ;; 4339 4340# This must be Linux ELF. 4341linux* | k*bsd*-gnu) 4342 lt_cv_deplibs_check_method=pass_all 4343 ;; 4344 4345netbsd*) 4346 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4347 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4348 else 4349 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4350 fi 4351 ;; 4352 4353newos6*) 4354 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4355 lt_cv_file_magic_cmd=/usr/bin/file 4356 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4357 ;; 4358 4359nto-qnx*) 4360 lt_cv_deplibs_check_method=unknown 4361 ;; 4362 4363openbsd*) 4364 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4365 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4366 else 4367 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4368 fi 4369 ;; 4370 4371osf3* | osf4* | osf5*) 4372 lt_cv_deplibs_check_method=pass_all 4373 ;; 4374 4375rdos*) 4376 lt_cv_deplibs_check_method=pass_all 4377 ;; 4378 4379solaris*) 4380 lt_cv_deplibs_check_method=pass_all 4381 ;; 4382 4383sysv4 | sysv4.3*) 4384 case $host_vendor in 4385 motorola) 4386 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]' 4387 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4388 ;; 4389 ncr) 4390 lt_cv_deplibs_check_method=pass_all 4391 ;; 4392 sequent) 4393 lt_cv_file_magic_cmd='/bin/file' 4394 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4395 ;; 4396 sni) 4397 lt_cv_file_magic_cmd='/bin/file' 4398 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4399 lt_cv_file_magic_test_file=/lib/libc.so 4400 ;; 4401 siemens) 4402 lt_cv_deplibs_check_method=pass_all 4403 ;; 4404 pc) 4405 lt_cv_deplibs_check_method=pass_all 4406 ;; 4407 esac 4408 ;; 4409 4410sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4411 lt_cv_deplibs_check_method=pass_all 4412 ;; 4413esac 4414 4415fi 4416{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4417echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 4418file_magic_cmd=$lt_cv_file_magic_cmd 4419deplibs_check_method=$lt_cv_deplibs_check_method 4420test -z "$deplibs_check_method" && deplibs_check_method=unknown 4421 4422 4423# If no C compiler was specified, use CC. 4424LTCC=${LTCC-"$CC"} 4425 4426# If no C compiler flags were specified, use CFLAGS. 4427LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4428 4429# Allow CC to be a program name with arguments. 4430compiler=$CC 4431 4432# Check whether --enable-libtool-lock was given. 4433if test "${enable_libtool_lock+set}" = set; then 4434 enableval=$enable_libtool_lock; 4435fi 4436 4437test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4438 4439# Some flags need to be propagated to the compiler or linker for good 4440# libtool support. 4441case $host in 4442ia64-*-hpux*) 4443 # Find out which ABI we are using. 4444 echo 'int i;' > conftest.$ac_ext 4445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4446 (eval $ac_compile) 2>&5 4447 ac_status=$? 4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4449 (exit $ac_status); }; then 4450 case `/usr/bin/file conftest.$ac_objext` in 4451 *ELF-32*) 4452 HPUX_IA64_MODE="32" 4453 ;; 4454 *ELF-64*) 4455 HPUX_IA64_MODE="64" 4456 ;; 4457 esac 4458 fi 4459 rm -rf conftest* 4460 ;; 4461*-*-irix6*) 4462 # Find out which ABI we are using. 4463 echo '#line 4463 "configure"' > conftest.$ac_ext 4464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4465 (eval $ac_compile) 2>&5 4466 ac_status=$? 4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4468 (exit $ac_status); }; then 4469 if test "$lt_cv_prog_gnu_ld" = yes; then 4470 case `/usr/bin/file conftest.$ac_objext` in 4471 *32-bit*) 4472 LD="${LD-ld} -melf32bsmip" 4473 ;; 4474 *N32*) 4475 LD="${LD-ld} -melf32bmipn32" 4476 ;; 4477 *64-bit*) 4478 LD="${LD-ld} -melf64bmip" 4479 ;; 4480 esac 4481 else 4482 case `/usr/bin/file conftest.$ac_objext` in 4483 *32-bit*) 4484 LD="${LD-ld} -32" 4485 ;; 4486 *N32*) 4487 LD="${LD-ld} -n32" 4488 ;; 4489 *64-bit*) 4490 LD="${LD-ld} -64" 4491 ;; 4492 esac 4493 fi 4494 fi 4495 rm -rf conftest* 4496 ;; 4497 4498x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 4499s390*-*linux*|sparc*-*linux*) 4500 # Find out which ABI we are using. 4501 echo 'int i;' > conftest.$ac_ext 4502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4503 (eval $ac_compile) 2>&5 4504 ac_status=$? 4505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4506 (exit $ac_status); }; then 4507 case `/usr/bin/file conftest.o` in 4508 *32-bit*) 4509 case $host in 4510 x86_64-*kfreebsd*-gnu) 4511 LD="${LD-ld} -m elf_i386_fbsd" 4512 ;; 4513 x86_64-*linux*) 4514 LD="${LD-ld} -m elf_i386" 4515 ;; 4516 ppc64-*linux*|powerpc64-*linux*) 4517 LD="${LD-ld} -m elf32ppclinux" 4518 ;; 4519 s390x-*linux*) 4520 LD="${LD-ld} -m elf_s390" 4521 ;; 4522 sparc64-*linux*) 4523 LD="${LD-ld} -m elf32_sparc" 4524 ;; 4525 esac 4526 ;; 4527 *64-bit*) 4528 case $host in 4529 x86_64-*kfreebsd*-gnu) 4530 LD="${LD-ld} -m elf_x86_64_fbsd" 4531 ;; 4532 x86_64-*linux*) 4533 LD="${LD-ld} -m elf_x86_64" 4534 ;; 4535 ppc*-*linux*|powerpc*-*linux*) 4536 LD="${LD-ld} -m elf64ppc" 4537 ;; 4538 s390*-*linux*) 4539 LD="${LD-ld} -m elf64_s390" 4540 ;; 4541 sparc*-*linux*) 4542 LD="${LD-ld} -m elf64_sparc" 4543 ;; 4544 esac 4545 ;; 4546 esac 4547 fi 4548 rm -rf conftest* 4549 ;; 4550 4551*-*-sco3.2v5*) 4552 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4553 SAVE_CFLAGS="$CFLAGS" 4554 CFLAGS="$CFLAGS -belf" 4555 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4556echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } 4557if test "${lt_cv_cc_needs_belf+set}" = set; then 4558 echo $ECHO_N "(cached) $ECHO_C" >&6 4559else 4560 ac_ext=c 4561ac_cpp='$CPP $CPPFLAGS' 4562ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4563ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4564ac_compiler_gnu=$ac_cv_c_compiler_gnu 4565 4566 cat >conftest.$ac_ext <<_ACEOF 4567/* confdefs.h. */ 4568_ACEOF 4569cat confdefs.h >>conftest.$ac_ext 4570cat >>conftest.$ac_ext <<_ACEOF 4571/* end confdefs.h. */ 4572 4573int 4574main () 4575{ 4576 4577 ; 4578 return 0; 4579} 4580_ACEOF 4581rm -f conftest.$ac_objext conftest$ac_exeext 4582if { (ac_try="$ac_link" 4583case "(($ac_try" in 4584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4585 *) ac_try_echo=$ac_try;; 4586esac 4587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4588 (eval "$ac_link") 2>conftest.er1 4589 ac_status=$? 4590 grep -v '^ *+' conftest.er1 >conftest.err 4591 rm -f conftest.er1 4592 cat conftest.err >&5 4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4594 (exit $ac_status); } && { 4595 test -z "$ac_c_werror_flag" || 4596 test ! -s conftest.err 4597 } && test -s conftest$ac_exeext && 4598 $as_test_x conftest$ac_exeext; then 4599 lt_cv_cc_needs_belf=yes 4600else 4601 echo "$as_me: failed program was:" >&5 4602sed 's/^/| /' conftest.$ac_ext >&5 4603 4604 lt_cv_cc_needs_belf=no 4605fi 4606 4607rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4608 conftest$ac_exeext conftest.$ac_ext 4609 ac_ext=c 4610ac_cpp='$CPP $CPPFLAGS' 4611ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4612ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4613ac_compiler_gnu=$ac_cv_c_compiler_gnu 4614 4615fi 4616{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4617echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } 4618 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4619 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4620 CFLAGS="$SAVE_CFLAGS" 4621 fi 4622 ;; 4623sparc*-*solaris*) 4624 # Find out which ABI we are using. 4625 echo 'int i;' > conftest.$ac_ext 4626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4627 (eval $ac_compile) 2>&5 4628 ac_status=$? 4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4630 (exit $ac_status); }; then 4631 case `/usr/bin/file conftest.o` in 4632 *64-bit*) 4633 case $lt_cv_prog_gnu_ld in 4634 yes*) LD="${LD-ld} -m elf64_sparc" ;; 4635 *) LD="${LD-ld} -64" ;; 4636 esac 4637 ;; 4638 esac 4639 fi 4640 rm -rf conftest* 4641 ;; 4642 4643*-*-cygwin* | *-*-mingw* | *-*-pw32*) 4644 if test -n "$ac_tool_prefix"; then 4645 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 4646set dummy ${ac_tool_prefix}dlltool; ac_word=$2 4647{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4649if test "${ac_cv_prog_DLLTOOL+set}" = set; then 4650 echo $ECHO_N "(cached) $ECHO_C" >&6 4651else 4652 if test -n "$DLLTOOL"; then 4653 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 4654else 4655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4656for as_dir in $PATH 4657do 4658 IFS=$as_save_IFS 4659 test -z "$as_dir" && as_dir=. 4660 for ac_exec_ext in '' $ac_executable_extensions; do 4661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4662 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 4663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4664 break 2 4665 fi 4666done 4667done 4668IFS=$as_save_IFS 4669 4670fi 4671fi 4672DLLTOOL=$ac_cv_prog_DLLTOOL 4673if test -n "$DLLTOOL"; then 4674 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5 4675echo "${ECHO_T}$DLLTOOL" >&6; } 4676else 4677 { echo "$as_me:$LINENO: result: no" >&5 4678echo "${ECHO_T}no" >&6; } 4679fi 4680 4681 4682fi 4683if test -z "$ac_cv_prog_DLLTOOL"; then 4684 ac_ct_DLLTOOL=$DLLTOOL 4685 # Extract the first word of "dlltool", so it can be a program name with args. 4686set dummy dlltool; ac_word=$2 4687{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4688echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4689if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then 4690 echo $ECHO_N "(cached) $ECHO_C" >&6 4691else 4692 if test -n "$ac_ct_DLLTOOL"; then 4693 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 4694else 4695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4696for as_dir in $PATH 4697do 4698 IFS=$as_save_IFS 4699 test -z "$as_dir" && as_dir=. 4700 for ac_exec_ext in '' $ac_executable_extensions; do 4701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4702 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 4703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4704 break 2 4705 fi 4706done 4707done 4708IFS=$as_save_IFS 4709 4710fi 4711fi 4712ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 4713if test -n "$ac_ct_DLLTOOL"; then 4714 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 4715echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; } 4716else 4717 { echo "$as_me:$LINENO: result: no" >&5 4718echo "${ECHO_T}no" >&6; } 4719fi 4720 4721 if test "x$ac_ct_DLLTOOL" = x; then 4722 DLLTOOL="false" 4723 else 4724 case $cross_compiling:$ac_tool_warned in 4725yes:) 4726{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4727whose name does not start with the host triplet. If you think this 4728configuration is useful to you, please write to autoconf@gnu.org." >&5 4729echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4730whose name does not start with the host triplet. If you think this 4731configuration is useful to you, please write to autoconf@gnu.org." >&2;} 4732ac_tool_warned=yes ;; 4733esac 4734 DLLTOOL=$ac_ct_DLLTOOL 4735 fi 4736else 4737 DLLTOOL="$ac_cv_prog_DLLTOOL" 4738fi 4739 4740 if test -n "$ac_tool_prefix"; then 4741 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 4742set dummy ${ac_tool_prefix}as; ac_word=$2 4743{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4745if test "${ac_cv_prog_AS+set}" = set; then 4746 echo $ECHO_N "(cached) $ECHO_C" >&6 4747else 4748 if test -n "$AS"; then 4749 ac_cv_prog_AS="$AS" # Let the user override the test. 4750else 4751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4752for as_dir in $PATH 4753do 4754 IFS=$as_save_IFS 4755 test -z "$as_dir" && as_dir=. 4756 for ac_exec_ext in '' $ac_executable_extensions; do 4757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4758 ac_cv_prog_AS="${ac_tool_prefix}as" 4759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4760 break 2 4761 fi 4762done 4763done 4764IFS=$as_save_IFS 4765 4766fi 4767fi 4768AS=$ac_cv_prog_AS 4769if test -n "$AS"; then 4770 { echo "$as_me:$LINENO: result: $AS" >&5 4771echo "${ECHO_T}$AS" >&6; } 4772else 4773 { echo "$as_me:$LINENO: result: no" >&5 4774echo "${ECHO_T}no" >&6; } 4775fi 4776 4777 4778fi 4779if test -z "$ac_cv_prog_AS"; then 4780 ac_ct_AS=$AS 4781 # Extract the first word of "as", so it can be a program name with args. 4782set dummy as; ac_word=$2 4783{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4784echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4785if test "${ac_cv_prog_ac_ct_AS+set}" = set; then 4786 echo $ECHO_N "(cached) $ECHO_C" >&6 4787else 4788 if test -n "$ac_ct_AS"; then 4789 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 4790else 4791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4792for as_dir in $PATH 4793do 4794 IFS=$as_save_IFS 4795 test -z "$as_dir" && as_dir=. 4796 for ac_exec_ext in '' $ac_executable_extensions; do 4797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4798 ac_cv_prog_ac_ct_AS="as" 4799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4800 break 2 4801 fi 4802done 4803done 4804IFS=$as_save_IFS 4805 4806fi 4807fi 4808ac_ct_AS=$ac_cv_prog_ac_ct_AS 4809if test -n "$ac_ct_AS"; then 4810 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 4811echo "${ECHO_T}$ac_ct_AS" >&6; } 4812else 4813 { echo "$as_me:$LINENO: result: no" >&5 4814echo "${ECHO_T}no" >&6; } 4815fi 4816 4817 if test "x$ac_ct_AS" = x; then 4818 AS="false" 4819 else 4820 case $cross_compiling:$ac_tool_warned in 4821yes:) 4822{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4823whose name does not start with the host triplet. If you think this 4824configuration is useful to you, please write to autoconf@gnu.org." >&5 4825echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4826whose name does not start with the host triplet. If you think this 4827configuration is useful to you, please write to autoconf@gnu.org." >&2;} 4828ac_tool_warned=yes ;; 4829esac 4830 AS=$ac_ct_AS 4831 fi 4832else 4833 AS="$ac_cv_prog_AS" 4834fi 4835 4836 if test -n "$ac_tool_prefix"; then 4837 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4838set dummy ${ac_tool_prefix}objdump; ac_word=$2 4839{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4840echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4841if test "${ac_cv_prog_OBJDUMP+set}" = set; then 4842 echo $ECHO_N "(cached) $ECHO_C" >&6 4843else 4844 if test -n "$OBJDUMP"; then 4845 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4846else 4847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4848for as_dir in $PATH 4849do 4850 IFS=$as_save_IFS 4851 test -z "$as_dir" && as_dir=. 4852 for ac_exec_ext in '' $ac_executable_extensions; do 4853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4854 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4856 break 2 4857 fi 4858done 4859done 4860IFS=$as_save_IFS 4861 4862fi 4863fi 4864OBJDUMP=$ac_cv_prog_OBJDUMP 4865if test -n "$OBJDUMP"; then 4866 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5 4867echo "${ECHO_T}$OBJDUMP" >&6; } 4868else 4869 { echo "$as_me:$LINENO: result: no" >&5 4870echo "${ECHO_T}no" >&6; } 4871fi 4872 4873 4874fi 4875if test -z "$ac_cv_prog_OBJDUMP"; then 4876 ac_ct_OBJDUMP=$OBJDUMP 4877 # Extract the first word of "objdump", so it can be a program name with args. 4878set dummy objdump; ac_word=$2 4879{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4880echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4881if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then 4882 echo $ECHO_N "(cached) $ECHO_C" >&6 4883else 4884 if test -n "$ac_ct_OBJDUMP"; then 4885 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4886else 4887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4888for as_dir in $PATH 4889do 4890 IFS=$as_save_IFS 4891 test -z "$as_dir" && as_dir=. 4892 for ac_exec_ext in '' $ac_executable_extensions; do 4893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4894 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4896 break 2 4897 fi 4898done 4899done 4900IFS=$as_save_IFS 4901 4902fi 4903fi 4904ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4905if test -n "$ac_ct_OBJDUMP"; then 4906 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 4907echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; } 4908else 4909 { echo "$as_me:$LINENO: result: no" >&5 4910echo "${ECHO_T}no" >&6; } 4911fi 4912 4913 if test "x$ac_ct_OBJDUMP" = x; then 4914 OBJDUMP="false" 4915 else 4916 case $cross_compiling:$ac_tool_warned in 4917yes:) 4918{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4919whose name does not start with the host triplet. If you think this 4920configuration is useful to you, please write to autoconf@gnu.org." >&5 4921echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4922whose name does not start with the host triplet. If you think this 4923configuration is useful to you, please write to autoconf@gnu.org." >&2;} 4924ac_tool_warned=yes ;; 4925esac 4926 OBJDUMP=$ac_ct_OBJDUMP 4927 fi 4928else 4929 OBJDUMP="$ac_cv_prog_OBJDUMP" 4930fi 4931 4932 ;; 4933 4934esac 4935 4936need_locks="$enable_libtool_lock" 4937 4938 4939ac_ext=c 4940ac_cpp='$CPP $CPPFLAGS' 4941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4943ac_compiler_gnu=$ac_cv_c_compiler_gnu 4944{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4945echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 4946# On Suns, sometimes $CPP names a directory. 4947if test -n "$CPP" && test -d "$CPP"; then 4948 CPP= 4949fi 4950if test -z "$CPP"; then 4951 if test "${ac_cv_prog_CPP+set}" = set; then 4952 echo $ECHO_N "(cached) $ECHO_C" >&6 4953else 4954 # Double quotes because CPP needs to be expanded 4955 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4956 do 4957 ac_preproc_ok=false 4958for ac_c_preproc_warn_flag in '' yes 4959do 4960 # Use a header file that comes with gcc, so configuring glibc 4961 # with a fresh cross-compiler works. 4962 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4963 # <limits.h> exists even on freestanding compilers. 4964 # On the NeXT, cc -E runs the code through the compiler's parser, 4965 # not just through cpp. "Syntax error" is here to catch this case. 4966 cat >conftest.$ac_ext <<_ACEOF 4967/* confdefs.h. */ 4968_ACEOF 4969cat confdefs.h >>conftest.$ac_ext 4970cat >>conftest.$ac_ext <<_ACEOF 4971/* end confdefs.h. */ 4972#ifdef __STDC__ 4973# include <limits.h> 4974#else 4975# include <assert.h> 4976#endif 4977 Syntax error 4978_ACEOF 4979if { (ac_try="$ac_cpp conftest.$ac_ext" 4980case "(($ac_try" in 4981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4982 *) ac_try_echo=$ac_try;; 4983esac 4984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4985 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4986 ac_status=$? 4987 grep -v '^ *+' conftest.er1 >conftest.err 4988 rm -f conftest.er1 4989 cat conftest.err >&5 4990 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4991 (exit $ac_status); } >/dev/null && { 4992 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4993 test ! -s conftest.err 4994 }; then 4995 : 4996else 4997 echo "$as_me: failed program was:" >&5 4998sed 's/^/| /' conftest.$ac_ext >&5 4999 5000 # Broken: fails on valid input. 5001continue 5002fi 5003 5004rm -f conftest.err conftest.$ac_ext 5005 5006 # OK, works on sane cases. Now check whether nonexistent headers 5007 # can be detected and how. 5008 cat >conftest.$ac_ext <<_ACEOF 5009/* confdefs.h. */ 5010_ACEOF 5011cat confdefs.h >>conftest.$ac_ext 5012cat >>conftest.$ac_ext <<_ACEOF 5013/* end confdefs.h. */ 5014#include <ac_nonexistent.h> 5015_ACEOF 5016if { (ac_try="$ac_cpp conftest.$ac_ext" 5017case "(($ac_try" in 5018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5019 *) ac_try_echo=$ac_try;; 5020esac 5021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5022 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5023 ac_status=$? 5024 grep -v '^ *+' conftest.er1 >conftest.err 5025 rm -f conftest.er1 5026 cat conftest.err >&5 5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5028 (exit $ac_status); } >/dev/null && { 5029 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5030 test ! -s conftest.err 5031 }; then 5032 # Broken: success on invalid input. 5033continue 5034else 5035 echo "$as_me: failed program was:" >&5 5036sed 's/^/| /' conftest.$ac_ext >&5 5037 5038 # Passes both tests. 5039ac_preproc_ok=: 5040break 5041fi 5042 5043rm -f conftest.err conftest.$ac_ext 5044 5045done 5046# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5047rm -f conftest.err conftest.$ac_ext 5048if $ac_preproc_ok; then 5049 break 5050fi 5051 5052 done 5053 ac_cv_prog_CPP=$CPP 5054 5055fi 5056 CPP=$ac_cv_prog_CPP 5057else 5058 ac_cv_prog_CPP=$CPP 5059fi 5060{ echo "$as_me:$LINENO: result: $CPP" >&5 5061echo "${ECHO_T}$CPP" >&6; } 5062ac_preproc_ok=false 5063for ac_c_preproc_warn_flag in '' yes 5064do 5065 # Use a header file that comes with gcc, so configuring glibc 5066 # with a fresh cross-compiler works. 5067 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5068 # <limits.h> exists even on freestanding compilers. 5069 # On the NeXT, cc -E runs the code through the compiler's parser, 5070 # not just through cpp. "Syntax error" is here to catch this case. 5071 cat >conftest.$ac_ext <<_ACEOF 5072/* confdefs.h. */ 5073_ACEOF 5074cat confdefs.h >>conftest.$ac_ext 5075cat >>conftest.$ac_ext <<_ACEOF 5076/* end confdefs.h. */ 5077#ifdef __STDC__ 5078# include <limits.h> 5079#else 5080# include <assert.h> 5081#endif 5082 Syntax error 5083_ACEOF 5084if { (ac_try="$ac_cpp conftest.$ac_ext" 5085case "(($ac_try" in 5086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5087 *) ac_try_echo=$ac_try;; 5088esac 5089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5090 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5091 ac_status=$? 5092 grep -v '^ *+' conftest.er1 >conftest.err 5093 rm -f conftest.er1 5094 cat conftest.err >&5 5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5096 (exit $ac_status); } >/dev/null && { 5097 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5098 test ! -s conftest.err 5099 }; then 5100 : 5101else 5102 echo "$as_me: failed program was:" >&5 5103sed 's/^/| /' conftest.$ac_ext >&5 5104 5105 # Broken: fails on valid input. 5106continue 5107fi 5108 5109rm -f conftest.err conftest.$ac_ext 5110 5111 # OK, works on sane cases. Now check whether nonexistent headers 5112 # can be detected and how. 5113 cat >conftest.$ac_ext <<_ACEOF 5114/* confdefs.h. */ 5115_ACEOF 5116cat confdefs.h >>conftest.$ac_ext 5117cat >>conftest.$ac_ext <<_ACEOF 5118/* end confdefs.h. */ 5119#include <ac_nonexistent.h> 5120_ACEOF 5121if { (ac_try="$ac_cpp conftest.$ac_ext" 5122case "(($ac_try" in 5123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5124 *) ac_try_echo=$ac_try;; 5125esac 5126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5127 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5128 ac_status=$? 5129 grep -v '^ *+' conftest.er1 >conftest.err 5130 rm -f conftest.er1 5131 cat conftest.err >&5 5132 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5133 (exit $ac_status); } >/dev/null && { 5134 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5135 test ! -s conftest.err 5136 }; then 5137 # Broken: success on invalid input. 5138continue 5139else 5140 echo "$as_me: failed program was:" >&5 5141sed 's/^/| /' conftest.$ac_ext >&5 5142 5143 # Passes both tests. 5144ac_preproc_ok=: 5145break 5146fi 5147 5148rm -f conftest.err conftest.$ac_ext 5149 5150done 5151# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5152rm -f conftest.err conftest.$ac_ext 5153if $ac_preproc_ok; then 5154 : 5155else 5156 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 5157See \`config.log' for more details." >&5 5158echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 5159See \`config.log' for more details." >&2;} 5160 { (exit 1); exit 1; }; } 5161fi 5162 5163ac_ext=c 5164ac_cpp='$CPP $CPPFLAGS' 5165ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5166ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5167ac_compiler_gnu=$ac_cv_c_compiler_gnu 5168 5169 5170{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 5171echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 5172if test "${ac_cv_header_stdc+set}" = set; then 5173 echo $ECHO_N "(cached) $ECHO_C" >&6 5174else 5175 cat >conftest.$ac_ext <<_ACEOF 5176/* confdefs.h. */ 5177_ACEOF 5178cat confdefs.h >>conftest.$ac_ext 5179cat >>conftest.$ac_ext <<_ACEOF 5180/* end confdefs.h. */ 5181#include <stdlib.h> 5182#include <stdarg.h> 5183#include <string.h> 5184#include <float.h> 5185 5186int 5187main () 5188{ 5189 5190 ; 5191 return 0; 5192} 5193_ACEOF 5194rm -f conftest.$ac_objext 5195if { (ac_try="$ac_compile" 5196case "(($ac_try" in 5197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5198 *) ac_try_echo=$ac_try;; 5199esac 5200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5201 (eval "$ac_compile") 2>conftest.er1 5202 ac_status=$? 5203 grep -v '^ *+' conftest.er1 >conftest.err 5204 rm -f conftest.er1 5205 cat conftest.err >&5 5206 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5207 (exit $ac_status); } && { 5208 test -z "$ac_c_werror_flag" || 5209 test ! -s conftest.err 5210 } && test -s conftest.$ac_objext; then 5211 ac_cv_header_stdc=yes 5212else 5213 echo "$as_me: failed program was:" >&5 5214sed 's/^/| /' conftest.$ac_ext >&5 5215 5216 ac_cv_header_stdc=no 5217fi 5218 5219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5220 5221if test $ac_cv_header_stdc = yes; then 5222 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5223 cat >conftest.$ac_ext <<_ACEOF 5224/* confdefs.h. */ 5225_ACEOF 5226cat confdefs.h >>conftest.$ac_ext 5227cat >>conftest.$ac_ext <<_ACEOF 5228/* end confdefs.h. */ 5229#include <string.h> 5230 5231_ACEOF 5232if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5233 $EGREP "memchr" >/dev/null 2>&1; then 5234 : 5235else 5236 ac_cv_header_stdc=no 5237fi 5238rm -f conftest* 5239 5240fi 5241 5242if test $ac_cv_header_stdc = yes; then 5243 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5244 cat >conftest.$ac_ext <<_ACEOF 5245/* confdefs.h. */ 5246_ACEOF 5247cat confdefs.h >>conftest.$ac_ext 5248cat >>conftest.$ac_ext <<_ACEOF 5249/* end confdefs.h. */ 5250#include <stdlib.h> 5251 5252_ACEOF 5253if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5254 $EGREP "free" >/dev/null 2>&1; then 5255 : 5256else 5257 ac_cv_header_stdc=no 5258fi 5259rm -f conftest* 5260 5261fi 5262 5263if test $ac_cv_header_stdc = yes; then 5264 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5265 if test "$cross_compiling" = yes; then 5266 : 5267else 5268 cat >conftest.$ac_ext <<_ACEOF 5269/* confdefs.h. */ 5270_ACEOF 5271cat confdefs.h >>conftest.$ac_ext 5272cat >>conftest.$ac_ext <<_ACEOF 5273/* end confdefs.h. */ 5274#include <ctype.h> 5275#include <stdlib.h> 5276#if ((' ' & 0x0FF) == 0x020) 5277# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5278# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5279#else 5280# define ISLOWER(c) \ 5281 (('a' <= (c) && (c) <= 'i') \ 5282 || ('j' <= (c) && (c) <= 'r') \ 5283 || ('s' <= (c) && (c) <= 'z')) 5284# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5285#endif 5286 5287#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5288int 5289main () 5290{ 5291 int i; 5292 for (i = 0; i < 256; i++) 5293 if (XOR (islower (i), ISLOWER (i)) 5294 || toupper (i) != TOUPPER (i)) 5295 return 2; 5296 return 0; 5297} 5298_ACEOF 5299rm -f conftest$ac_exeext 5300if { (ac_try="$ac_link" 5301case "(($ac_try" in 5302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5303 *) ac_try_echo=$ac_try;; 5304esac 5305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5306 (eval "$ac_link") 2>&5 5307 ac_status=$? 5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5309 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5310 { (case "(($ac_try" in 5311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5312 *) ac_try_echo=$ac_try;; 5313esac 5314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5315 (eval "$ac_try") 2>&5 5316 ac_status=$? 5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5318 (exit $ac_status); }; }; then 5319 : 5320else 5321 echo "$as_me: program exited with status $ac_status" >&5 5322echo "$as_me: failed program was:" >&5 5323sed 's/^/| /' conftest.$ac_ext >&5 5324 5325( exit $ac_status ) 5326ac_cv_header_stdc=no 5327fi 5328rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5329fi 5330 5331 5332fi 5333fi 5334{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5335echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 5336if test $ac_cv_header_stdc = yes; then 5337 5338cat >>confdefs.h <<\_ACEOF 5339#define STDC_HEADERS 1 5340_ACEOF 5341 5342fi 5343 5344# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5355 inttypes.h stdint.h unistd.h 5356do 5357as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5358{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5359echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5360if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5361 echo $ECHO_N "(cached) $ECHO_C" >&6 5362else 5363 cat >conftest.$ac_ext <<_ACEOF 5364/* confdefs.h. */ 5365_ACEOF 5366cat confdefs.h >>conftest.$ac_ext 5367cat >>conftest.$ac_ext <<_ACEOF 5368/* end confdefs.h. */ 5369$ac_includes_default 5370 5371#include <$ac_header> 5372_ACEOF 5373rm -f conftest.$ac_objext 5374if { (ac_try="$ac_compile" 5375case "(($ac_try" in 5376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5377 *) ac_try_echo=$ac_try;; 5378esac 5379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5380 (eval "$ac_compile") 2>conftest.er1 5381 ac_status=$? 5382 grep -v '^ *+' conftest.er1 >conftest.err 5383 rm -f conftest.er1 5384 cat conftest.err >&5 5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5386 (exit $ac_status); } && { 5387 test -z "$ac_c_werror_flag" || 5388 test ! -s conftest.err 5389 } && test -s conftest.$ac_objext; then 5390 eval "$as_ac_Header=yes" 5391else 5392 echo "$as_me: failed program was:" >&5 5393sed 's/^/| /' conftest.$ac_ext >&5 5394 5395 eval "$as_ac_Header=no" 5396fi 5397 5398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5399fi 5400ac_res=`eval echo '${'$as_ac_Header'}'` 5401 { echo "$as_me:$LINENO: result: $ac_res" >&5 5402echo "${ECHO_T}$ac_res" >&6; } 5403if test `eval echo '${'$as_ac_Header'}'` = yes; then 5404 cat >>confdefs.h <<_ACEOF 5405#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5406_ACEOF 5407 5408fi 5409 5410done 5411 5412 5413 5414for ac_header in dlfcn.h 5415do 5416as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5417if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5418 { echo "$as_me:$LINENO: checking for $ac_header" >&5 5419echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5420if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5421 echo $ECHO_N "(cached) $ECHO_C" >&6 5422fi 5423ac_res=`eval echo '${'$as_ac_Header'}'` 5424 { echo "$as_me:$LINENO: result: $ac_res" >&5 5425echo "${ECHO_T}$ac_res" >&6; } 5426else 5427 # Is the header compilable? 5428{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 5429echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 5430cat >conftest.$ac_ext <<_ACEOF 5431/* confdefs.h. */ 5432_ACEOF 5433cat confdefs.h >>conftest.$ac_ext 5434cat >>conftest.$ac_ext <<_ACEOF 5435/* end confdefs.h. */ 5436$ac_includes_default 5437#include <$ac_header> 5438_ACEOF 5439rm -f conftest.$ac_objext 5440if { (ac_try="$ac_compile" 5441case "(($ac_try" in 5442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5443 *) ac_try_echo=$ac_try;; 5444esac 5445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5446 (eval "$ac_compile") 2>conftest.er1 5447 ac_status=$? 5448 grep -v '^ *+' conftest.er1 >conftest.err 5449 rm -f conftest.er1 5450 cat conftest.err >&5 5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5452 (exit $ac_status); } && { 5453 test -z "$ac_c_werror_flag" || 5454 test ! -s conftest.err 5455 } && test -s conftest.$ac_objext; then 5456 ac_header_compiler=yes 5457else 5458 echo "$as_me: failed program was:" >&5 5459sed 's/^/| /' conftest.$ac_ext >&5 5460 5461 ac_header_compiler=no 5462fi 5463 5464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5465{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5466echo "${ECHO_T}$ac_header_compiler" >&6; } 5467 5468# Is the header present? 5469{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 5470echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 5471cat >conftest.$ac_ext <<_ACEOF 5472/* confdefs.h. */ 5473_ACEOF 5474cat confdefs.h >>conftest.$ac_ext 5475cat >>conftest.$ac_ext <<_ACEOF 5476/* end confdefs.h. */ 5477#include <$ac_header> 5478_ACEOF 5479if { (ac_try="$ac_cpp conftest.$ac_ext" 5480case "(($ac_try" in 5481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5482 *) ac_try_echo=$ac_try;; 5483esac 5484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5485 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5486 ac_status=$? 5487 grep -v '^ *+' conftest.er1 >conftest.err 5488 rm -f conftest.er1 5489 cat conftest.err >&5 5490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5491 (exit $ac_status); } >/dev/null && { 5492 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5493 test ! -s conftest.err 5494 }; then 5495 ac_header_preproc=yes 5496else 5497 echo "$as_me: failed program was:" >&5 5498sed 's/^/| /' conftest.$ac_ext >&5 5499 5500 ac_header_preproc=no 5501fi 5502 5503rm -f conftest.err conftest.$ac_ext 5504{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5505echo "${ECHO_T}$ac_header_preproc" >&6; } 5506 5507# So? What about this header? 5508case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5509 yes:no: ) 5510 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5511echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5513echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5514 ac_header_preproc=yes 5515 ;; 5516 no:yes:* ) 5517 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5518echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5519 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5520echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5521 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5522echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5523 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5524echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5526echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5527 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5528echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5529 5530 ;; 5531esac 5532{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5533echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5534if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5535 echo $ECHO_N "(cached) $ECHO_C" >&6 5536else 5537 eval "$as_ac_Header=\$ac_header_preproc" 5538fi 5539ac_res=`eval echo '${'$as_ac_Header'}'` 5540 { echo "$as_me:$LINENO: result: $ac_res" >&5 5541echo "${ECHO_T}$ac_res" >&6; } 5542 5543fi 5544if test `eval echo '${'$as_ac_Header'}'` = yes; then 5545 cat >>confdefs.h <<_ACEOF 5546#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5547_ACEOF 5548 5549fi 5550 5551done 5552 5553ac_ext=cpp 5554ac_cpp='$CXXCPP $CPPFLAGS' 5555ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5556ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5557ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5558if test -z "$CXX"; then 5559 if test -n "$CCC"; then 5560 CXX=$CCC 5561 else 5562 if test -n "$ac_tool_prefix"; then 5563 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5564 do 5565 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5566set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5567{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5568echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5569if test "${ac_cv_prog_CXX+set}" = set; then 5570 echo $ECHO_N "(cached) $ECHO_C" >&6 5571else 5572 if test -n "$CXX"; then 5573 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5574else 5575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5576for as_dir in $PATH 5577do 5578 IFS=$as_save_IFS 5579 test -z "$as_dir" && as_dir=. 5580 for ac_exec_ext in '' $ac_executable_extensions; do 5581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5582 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5584 break 2 5585 fi 5586done 5587done 5588IFS=$as_save_IFS 5589 5590fi 5591fi 5592CXX=$ac_cv_prog_CXX 5593if test -n "$CXX"; then 5594 { echo "$as_me:$LINENO: result: $CXX" >&5 5595echo "${ECHO_T}$CXX" >&6; } 5596else 5597 { echo "$as_me:$LINENO: result: no" >&5 5598echo "${ECHO_T}no" >&6; } 5599fi 5600 5601 5602 test -n "$CXX" && break 5603 done 5604fi 5605if test -z "$CXX"; then 5606 ac_ct_CXX=$CXX 5607 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5608do 5609 # Extract the first word of "$ac_prog", so it can be a program name with args. 5610set dummy $ac_prog; ac_word=$2 5611{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5612echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5613if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 5614 echo $ECHO_N "(cached) $ECHO_C" >&6 5615else 5616 if test -n "$ac_ct_CXX"; then 5617 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5618else 5619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5620for as_dir in $PATH 5621do 5622 IFS=$as_save_IFS 5623 test -z "$as_dir" && as_dir=. 5624 for ac_exec_ext in '' $ac_executable_extensions; do 5625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5626 ac_cv_prog_ac_ct_CXX="$ac_prog" 5627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5628 break 2 5629 fi 5630done 5631done 5632IFS=$as_save_IFS 5633 5634fi 5635fi 5636ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5637if test -n "$ac_ct_CXX"; then 5638 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 5639echo "${ECHO_T}$ac_ct_CXX" >&6; } 5640else 5641 { echo "$as_me:$LINENO: result: no" >&5 5642echo "${ECHO_T}no" >&6; } 5643fi 5644 5645 5646 test -n "$ac_ct_CXX" && break 5647done 5648 5649 if test "x$ac_ct_CXX" = x; then 5650 CXX="g++" 5651 else 5652 case $cross_compiling:$ac_tool_warned in 5653yes:) 5654{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5655whose name does not start with the host triplet. If you think this 5656configuration is useful to you, please write to autoconf@gnu.org." >&5 5657echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5658whose name does not start with the host triplet. If you think this 5659configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5660ac_tool_warned=yes ;; 5661esac 5662 CXX=$ac_ct_CXX 5663 fi 5664fi 5665 5666 fi 5667fi 5668# Provide some information about the compiler. 5669echo "$as_me:$LINENO: checking for C++ compiler version" >&5 5670ac_compiler=`set X $ac_compile; echo $2` 5671{ (ac_try="$ac_compiler --version >&5" 5672case "(($ac_try" in 5673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5674 *) ac_try_echo=$ac_try;; 5675esac 5676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5677 (eval "$ac_compiler --version >&5") 2>&5 5678 ac_status=$? 5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5680 (exit $ac_status); } 5681{ (ac_try="$ac_compiler -v >&5" 5682case "(($ac_try" in 5683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5684 *) ac_try_echo=$ac_try;; 5685esac 5686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5687 (eval "$ac_compiler -v >&5") 2>&5 5688 ac_status=$? 5689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5690 (exit $ac_status); } 5691{ (ac_try="$ac_compiler -V >&5" 5692case "(($ac_try" in 5693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5694 *) ac_try_echo=$ac_try;; 5695esac 5696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5697 (eval "$ac_compiler -V >&5") 2>&5 5698 ac_status=$? 5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5700 (exit $ac_status); } 5701 5702{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5703echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 5704if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5705 echo $ECHO_N "(cached) $ECHO_C" >&6 5706else 5707 cat >conftest.$ac_ext <<_ACEOF 5708/* confdefs.h. */ 5709_ACEOF 5710cat confdefs.h >>conftest.$ac_ext 5711cat >>conftest.$ac_ext <<_ACEOF 5712/* end confdefs.h. */ 5713 5714int 5715main () 5716{ 5717#ifndef __GNUC__ 5718 choke me 5719#endif 5720 5721 ; 5722 return 0; 5723} 5724_ACEOF 5725rm -f conftest.$ac_objext 5726if { (ac_try="$ac_compile" 5727case "(($ac_try" in 5728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5729 *) ac_try_echo=$ac_try;; 5730esac 5731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5732 (eval "$ac_compile") 2>conftest.er1 5733 ac_status=$? 5734 grep -v '^ *+' conftest.er1 >conftest.err 5735 rm -f conftest.er1 5736 cat conftest.err >&5 5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5738 (exit $ac_status); } && { 5739 test -z "$ac_cxx_werror_flag" || 5740 test ! -s conftest.err 5741 } && test -s conftest.$ac_objext; then 5742 ac_compiler_gnu=yes 5743else 5744 echo "$as_me: failed program was:" >&5 5745sed 's/^/| /' conftest.$ac_ext >&5 5746 5747 ac_compiler_gnu=no 5748fi 5749 5750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5751ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5752 5753fi 5754{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 5755echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 5756GXX=`test $ac_compiler_gnu = yes && echo yes` 5757ac_test_CXXFLAGS=${CXXFLAGS+set} 5758ac_save_CXXFLAGS=$CXXFLAGS 5759{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 5760echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 5761if test "${ac_cv_prog_cxx_g+set}" = set; then 5762 echo $ECHO_N "(cached) $ECHO_C" >&6 5763else 5764 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5765 ac_cxx_werror_flag=yes 5766 ac_cv_prog_cxx_g=no 5767 CXXFLAGS="-g" 5768 cat >conftest.$ac_ext <<_ACEOF 5769/* confdefs.h. */ 5770_ACEOF 5771cat confdefs.h >>conftest.$ac_ext 5772cat >>conftest.$ac_ext <<_ACEOF 5773/* end confdefs.h. */ 5774 5775int 5776main () 5777{ 5778 5779 ; 5780 return 0; 5781} 5782_ACEOF 5783rm -f conftest.$ac_objext 5784if { (ac_try="$ac_compile" 5785case "(($ac_try" in 5786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5787 *) ac_try_echo=$ac_try;; 5788esac 5789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5790 (eval "$ac_compile") 2>conftest.er1 5791 ac_status=$? 5792 grep -v '^ *+' conftest.er1 >conftest.err 5793 rm -f conftest.er1 5794 cat conftest.err >&5 5795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5796 (exit $ac_status); } && { 5797 test -z "$ac_cxx_werror_flag" || 5798 test ! -s conftest.err 5799 } && test -s conftest.$ac_objext; then 5800 ac_cv_prog_cxx_g=yes 5801else 5802 echo "$as_me: failed program was:" >&5 5803sed 's/^/| /' conftest.$ac_ext >&5 5804 5805 CXXFLAGS="" 5806 cat >conftest.$ac_ext <<_ACEOF 5807/* confdefs.h. */ 5808_ACEOF 5809cat confdefs.h >>conftest.$ac_ext 5810cat >>conftest.$ac_ext <<_ACEOF 5811/* end confdefs.h. */ 5812 5813int 5814main () 5815{ 5816 5817 ; 5818 return 0; 5819} 5820_ACEOF 5821rm -f conftest.$ac_objext 5822if { (ac_try="$ac_compile" 5823case "(($ac_try" in 5824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5825 *) ac_try_echo=$ac_try;; 5826esac 5827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5828 (eval "$ac_compile") 2>conftest.er1 5829 ac_status=$? 5830 grep -v '^ *+' conftest.er1 >conftest.err 5831 rm -f conftest.er1 5832 cat conftest.err >&5 5833 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5834 (exit $ac_status); } && { 5835 test -z "$ac_cxx_werror_flag" || 5836 test ! -s conftest.err 5837 } && test -s conftest.$ac_objext; then 5838 : 5839else 5840 echo "$as_me: failed program was:" >&5 5841sed 's/^/| /' conftest.$ac_ext >&5 5842 5843 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5844 CXXFLAGS="-g" 5845 cat >conftest.$ac_ext <<_ACEOF 5846/* confdefs.h. */ 5847_ACEOF 5848cat confdefs.h >>conftest.$ac_ext 5849cat >>conftest.$ac_ext <<_ACEOF 5850/* end confdefs.h. */ 5851 5852int 5853main () 5854{ 5855 5856 ; 5857 return 0; 5858} 5859_ACEOF 5860rm -f conftest.$ac_objext 5861if { (ac_try="$ac_compile" 5862case "(($ac_try" in 5863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5864 *) ac_try_echo=$ac_try;; 5865esac 5866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5867 (eval "$ac_compile") 2>conftest.er1 5868 ac_status=$? 5869 grep -v '^ *+' conftest.er1 >conftest.err 5870 rm -f conftest.er1 5871 cat conftest.err >&5 5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5873 (exit $ac_status); } && { 5874 test -z "$ac_cxx_werror_flag" || 5875 test ! -s conftest.err 5876 } && test -s conftest.$ac_objext; then 5877 ac_cv_prog_cxx_g=yes 5878else 5879 echo "$as_me: failed program was:" >&5 5880sed 's/^/| /' conftest.$ac_ext >&5 5881 5882 5883fi 5884 5885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5886fi 5887 5888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5889fi 5890 5891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5892 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5893fi 5894{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 5895echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 5896if test "$ac_test_CXXFLAGS" = set; then 5897 CXXFLAGS=$ac_save_CXXFLAGS 5898elif test $ac_cv_prog_cxx_g = yes; then 5899 if test "$GXX" = yes; then 5900 CXXFLAGS="-g -O2" 5901 else 5902 CXXFLAGS="-g" 5903 fi 5904else 5905 if test "$GXX" = yes; then 5906 CXXFLAGS="-O2" 5907 else 5908 CXXFLAGS= 5909 fi 5910fi 5911ac_ext=cpp 5912ac_cpp='$CXXCPP $CPPFLAGS' 5913ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5914ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5915ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5916 5917depcc="$CXX" am_compiler_list= 5918 5919{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5920echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 5921if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 5922 echo $ECHO_N "(cached) $ECHO_C" >&6 5923else 5924 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5925 # We make a subdir and do the tests there. Otherwise we can end up 5926 # making bogus files that we don't know about and never remove. For 5927 # instance it was reported that on HP-UX the gcc test will end up 5928 # making a dummy file named `D' -- because `-MD' means `put the output 5929 # in D'. 5930 mkdir conftest.dir 5931 # Copy depcomp to subdir because otherwise we won't find it if we're 5932 # using a relative directory. 5933 cp "$am_depcomp" conftest.dir 5934 cd conftest.dir 5935 # We will build objects and dependencies in a subdirectory because 5936 # it helps to detect inapplicable dependency modes. For instance 5937 # both Tru64's cc and ICC support -MD to output dependencies as a 5938 # side effect of compilation, but ICC will put the dependencies in 5939 # the current directory while Tru64 will put them in the object 5940 # directory. 5941 mkdir sub 5942 5943 am_cv_CXX_dependencies_compiler_type=none 5944 if test "$am_compiler_list" = ""; then 5945 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5946 fi 5947 for depmode in $am_compiler_list; do 5948 # Setup a source with many dependencies, because some compilers 5949 # like to wrap large dependency lists on column 80 (with \), and 5950 # we should not choose a depcomp mode which is confused by this. 5951 # 5952 # We need to recreate these files for each test, as the compiler may 5953 # overwrite some of them when testing with obscure command lines. 5954 # This happens at least with the AIX C compiler. 5955 : > sub/conftest.c 5956 for i in 1 2 3 4 5 6; do 5957 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5958 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5959 # Solaris 8's {/usr,}/bin/sh. 5960 touch sub/conftst$i.h 5961 done 5962 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5963 5964 case $depmode in 5965 nosideeffect) 5966 # after this tag, mechanisms are not by side-effect, so they'll 5967 # only be used when explicitly requested 5968 if test "x$enable_dependency_tracking" = xyes; then 5969 continue 5970 else 5971 break 5972 fi 5973 ;; 5974 none) break ;; 5975 esac 5976 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5977 # mode. It turns out that the SunPro C++ compiler does not properly 5978 # handle `-M -o', and we need to detect this. 5979 if depmode=$depmode \ 5980 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5981 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5982 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5983 >/dev/null 2>conftest.err && 5984 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5985 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5986 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5987 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5988 # icc doesn't choke on unknown options, it will just issue warnings 5989 # or remarks (even with -Werror). So we grep stderr for any message 5990 # that says an option was ignored or not supported. 5991 # When given -MP, icc 7.0 and 7.1 complain thusly: 5992 # icc: Command line warning: ignoring option '-M'; no argument required 5993 # The diagnosis changed in icc 8.0: 5994 # icc: Command line remark: option '-MP' not supported 5995 if (grep 'ignoring option' conftest.err || 5996 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5997 am_cv_CXX_dependencies_compiler_type=$depmode 5998 break 5999 fi 6000 fi 6001 done 6002 6003 cd .. 6004 rm -rf conftest.dir 6005else 6006 am_cv_CXX_dependencies_compiler_type=none 6007fi 6008 6009fi 6010{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 6011echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } 6012CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 6013 6014 if 6015 test "x$enable_dependency_tracking" != xno \ 6016 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 6017 am__fastdepCXX_TRUE= 6018 am__fastdepCXX_FALSE='#' 6019else 6020 am__fastdepCXX_TRUE='#' 6021 am__fastdepCXX_FALSE= 6022fi 6023 6024 6025 6026 6027if test -n "$CXX" && ( test "X$CXX" != "Xno" && 6028 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 6029 (test "X$CXX" != "Xg++"))) ; then 6030 ac_ext=cpp 6031ac_cpp='$CXXCPP $CPPFLAGS' 6032ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6033ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6034ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6035{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 6036echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 6037if test -z "$CXXCPP"; then 6038 if test "${ac_cv_prog_CXXCPP+set}" = set; then 6039 echo $ECHO_N "(cached) $ECHO_C" >&6 6040else 6041 # Double quotes because CXXCPP needs to be expanded 6042 for CXXCPP in "$CXX -E" "/lib/cpp" 6043 do 6044 ac_preproc_ok=false 6045for ac_cxx_preproc_warn_flag in '' yes 6046do 6047 # Use a header file that comes with gcc, so configuring glibc 6048 # with a fresh cross-compiler works. 6049 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6050 # <limits.h> exists even on freestanding compilers. 6051 # On the NeXT, cc -E runs the code through the compiler's parser, 6052 # not just through cpp. "Syntax error" is here to catch this case. 6053 cat >conftest.$ac_ext <<_ACEOF 6054/* confdefs.h. */ 6055_ACEOF 6056cat confdefs.h >>conftest.$ac_ext 6057cat >>conftest.$ac_ext <<_ACEOF 6058/* end confdefs.h. */ 6059#ifdef __STDC__ 6060# include <limits.h> 6061#else 6062# include <assert.h> 6063#endif 6064 Syntax error 6065_ACEOF 6066if { (ac_try="$ac_cpp conftest.$ac_ext" 6067case "(($ac_try" in 6068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6069 *) ac_try_echo=$ac_try;; 6070esac 6071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6072 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6073 ac_status=$? 6074 grep -v '^ *+' conftest.er1 >conftest.err 6075 rm -f conftest.er1 6076 cat conftest.err >&5 6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6078 (exit $ac_status); } >/dev/null && { 6079 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6080 test ! -s conftest.err 6081 }; then 6082 : 6083else 6084 echo "$as_me: failed program was:" >&5 6085sed 's/^/| /' conftest.$ac_ext >&5 6086 6087 # Broken: fails on valid input. 6088continue 6089fi 6090 6091rm -f conftest.err conftest.$ac_ext 6092 6093 # OK, works on sane cases. Now check whether nonexistent headers 6094 # can be detected and how. 6095 cat >conftest.$ac_ext <<_ACEOF 6096/* confdefs.h. */ 6097_ACEOF 6098cat confdefs.h >>conftest.$ac_ext 6099cat >>conftest.$ac_ext <<_ACEOF 6100/* end confdefs.h. */ 6101#include <ac_nonexistent.h> 6102_ACEOF 6103if { (ac_try="$ac_cpp conftest.$ac_ext" 6104case "(($ac_try" in 6105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6106 *) ac_try_echo=$ac_try;; 6107esac 6108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6109 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6110 ac_status=$? 6111 grep -v '^ *+' conftest.er1 >conftest.err 6112 rm -f conftest.er1 6113 cat conftest.err >&5 6114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6115 (exit $ac_status); } >/dev/null && { 6116 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6117 test ! -s conftest.err 6118 }; then 6119 # Broken: success on invalid input. 6120continue 6121else 6122 echo "$as_me: failed program was:" >&5 6123sed 's/^/| /' conftest.$ac_ext >&5 6124 6125 # Passes both tests. 6126ac_preproc_ok=: 6127break 6128fi 6129 6130rm -f conftest.err conftest.$ac_ext 6131 6132done 6133# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6134rm -f conftest.err conftest.$ac_ext 6135if $ac_preproc_ok; then 6136 break 6137fi 6138 6139 done 6140 ac_cv_prog_CXXCPP=$CXXCPP 6141 6142fi 6143 CXXCPP=$ac_cv_prog_CXXCPP 6144else 6145 ac_cv_prog_CXXCPP=$CXXCPP 6146fi 6147{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 6148echo "${ECHO_T}$CXXCPP" >&6; } 6149ac_preproc_ok=false 6150for ac_cxx_preproc_warn_flag in '' yes 6151do 6152 # Use a header file that comes with gcc, so configuring glibc 6153 # with a fresh cross-compiler works. 6154 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6155 # <limits.h> exists even on freestanding compilers. 6156 # On the NeXT, cc -E runs the code through the compiler's parser, 6157 # not just through cpp. "Syntax error" is here to catch this case. 6158 cat >conftest.$ac_ext <<_ACEOF 6159/* confdefs.h. */ 6160_ACEOF 6161cat confdefs.h >>conftest.$ac_ext 6162cat >>conftest.$ac_ext <<_ACEOF 6163/* end confdefs.h. */ 6164#ifdef __STDC__ 6165# include <limits.h> 6166#else 6167# include <assert.h> 6168#endif 6169 Syntax error 6170_ACEOF 6171if { (ac_try="$ac_cpp conftest.$ac_ext" 6172case "(($ac_try" in 6173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6174 *) ac_try_echo=$ac_try;; 6175esac 6176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6177 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6178 ac_status=$? 6179 grep -v '^ *+' conftest.er1 >conftest.err 6180 rm -f conftest.er1 6181 cat conftest.err >&5 6182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6183 (exit $ac_status); } >/dev/null && { 6184 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6185 test ! -s conftest.err 6186 }; then 6187 : 6188else 6189 echo "$as_me: failed program was:" >&5 6190sed 's/^/| /' conftest.$ac_ext >&5 6191 6192 # Broken: fails on valid input. 6193continue 6194fi 6195 6196rm -f conftest.err conftest.$ac_ext 6197 6198 # OK, works on sane cases. Now check whether nonexistent headers 6199 # can be detected and how. 6200 cat >conftest.$ac_ext <<_ACEOF 6201/* confdefs.h. */ 6202_ACEOF 6203cat confdefs.h >>conftest.$ac_ext 6204cat >>conftest.$ac_ext <<_ACEOF 6205/* end confdefs.h. */ 6206#include <ac_nonexistent.h> 6207_ACEOF 6208if { (ac_try="$ac_cpp conftest.$ac_ext" 6209case "(($ac_try" in 6210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6211 *) ac_try_echo=$ac_try;; 6212esac 6213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6214 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6215 ac_status=$? 6216 grep -v '^ *+' conftest.er1 >conftest.err 6217 rm -f conftest.er1 6218 cat conftest.err >&5 6219 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6220 (exit $ac_status); } >/dev/null && { 6221 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6222 test ! -s conftest.err 6223 }; then 6224 # Broken: success on invalid input. 6225continue 6226else 6227 echo "$as_me: failed program was:" >&5 6228sed 's/^/| /' conftest.$ac_ext >&5 6229 6230 # Passes both tests. 6231ac_preproc_ok=: 6232break 6233fi 6234 6235rm -f conftest.err conftest.$ac_ext 6236 6237done 6238# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6239rm -f conftest.err conftest.$ac_ext 6240if $ac_preproc_ok; then 6241 : 6242else 6243 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6244See \`config.log' for more details." >&5 6245echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6246See \`config.log' for more details." >&2;} 6247 { (exit 1); exit 1; }; } 6248fi 6249 6250ac_ext=cpp 6251ac_cpp='$CXXCPP $CPPFLAGS' 6252ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6253ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6254ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6255 6256fi 6257 6258 6259ac_ext=f 6260ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6261ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6262ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6263if test -n "$ac_tool_prefix"; then 6264 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 6265 do 6266 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6267set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6268{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6270if test "${ac_cv_prog_F77+set}" = set; then 6271 echo $ECHO_N "(cached) $ECHO_C" >&6 6272else 6273 if test -n "$F77"; then 6274 ac_cv_prog_F77="$F77" # Let the user override the test. 6275else 6276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6277for as_dir in $PATH 6278do 6279 IFS=$as_save_IFS 6280 test -z "$as_dir" && as_dir=. 6281 for ac_exec_ext in '' $ac_executable_extensions; do 6282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6283 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 6284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6285 break 2 6286 fi 6287done 6288done 6289IFS=$as_save_IFS 6290 6291fi 6292fi 6293F77=$ac_cv_prog_F77 6294if test -n "$F77"; then 6295 { echo "$as_me:$LINENO: result: $F77" >&5 6296echo "${ECHO_T}$F77" >&6; } 6297else 6298 { echo "$as_me:$LINENO: result: no" >&5 6299echo "${ECHO_T}no" >&6; } 6300fi 6301 6302 6303 test -n "$F77" && break 6304 done 6305fi 6306if test -z "$F77"; then 6307 ac_ct_F77=$F77 6308 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 6309do 6310 # Extract the first word of "$ac_prog", so it can be a program name with args. 6311set dummy $ac_prog; ac_word=$2 6312{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6313echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6314if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 6315 echo $ECHO_N "(cached) $ECHO_C" >&6 6316else 6317 if test -n "$ac_ct_F77"; then 6318 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 6319else 6320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6321for as_dir in $PATH 6322do 6323 IFS=$as_save_IFS 6324 test -z "$as_dir" && as_dir=. 6325 for ac_exec_ext in '' $ac_executable_extensions; do 6326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6327 ac_cv_prog_ac_ct_F77="$ac_prog" 6328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6329 break 2 6330 fi 6331done 6332done 6333IFS=$as_save_IFS 6334 6335fi 6336fi 6337ac_ct_F77=$ac_cv_prog_ac_ct_F77 6338if test -n "$ac_ct_F77"; then 6339 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 6340echo "${ECHO_T}$ac_ct_F77" >&6; } 6341else 6342 { echo "$as_me:$LINENO: result: no" >&5 6343echo "${ECHO_T}no" >&6; } 6344fi 6345 6346 6347 test -n "$ac_ct_F77" && break 6348done 6349 6350 if test "x$ac_ct_F77" = x; then 6351 F77="" 6352 else 6353 case $cross_compiling:$ac_tool_warned in 6354yes:) 6355{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6356whose name does not start with the host triplet. If you think this 6357configuration is useful to you, please write to autoconf@gnu.org." >&5 6358echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6359whose name does not start with the host triplet. If you think this 6360configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6361ac_tool_warned=yes ;; 6362esac 6363 F77=$ac_ct_F77 6364 fi 6365fi 6366 6367 6368# Provide some information about the compiler. 6369echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 6370ac_compiler=`set X $ac_compile; echo $2` 6371{ (ac_try="$ac_compiler --version >&5" 6372case "(($ac_try" in 6373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6374 *) ac_try_echo=$ac_try;; 6375esac 6376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6377 (eval "$ac_compiler --version >&5") 2>&5 6378 ac_status=$? 6379 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6380 (exit $ac_status); } 6381{ (ac_try="$ac_compiler -v >&5" 6382case "(($ac_try" in 6383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6384 *) ac_try_echo=$ac_try;; 6385esac 6386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6387 (eval "$ac_compiler -v >&5") 2>&5 6388 ac_status=$? 6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6390 (exit $ac_status); } 6391{ (ac_try="$ac_compiler -V >&5" 6392case "(($ac_try" in 6393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6394 *) ac_try_echo=$ac_try;; 6395esac 6396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6397 (eval "$ac_compiler -V >&5") 2>&5 6398 ac_status=$? 6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6400 (exit $ac_status); } 6401rm -f a.out 6402 6403# If we don't use `.F' as extension, the preprocessor is not run on the 6404# input file. (Note that this only needs to work for GNU compilers.) 6405ac_save_ext=$ac_ext 6406ac_ext=F 6407{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 6408echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } 6409if test "${ac_cv_f77_compiler_gnu+set}" = set; then 6410 echo $ECHO_N "(cached) $ECHO_C" >&6 6411else 6412 cat >conftest.$ac_ext <<_ACEOF 6413 program main 6414#ifndef __GNUC__ 6415 choke me 6416#endif 6417 6418 end 6419_ACEOF 6420rm -f conftest.$ac_objext 6421if { (ac_try="$ac_compile" 6422case "(($ac_try" in 6423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6424 *) ac_try_echo=$ac_try;; 6425esac 6426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6427 (eval "$ac_compile") 2>conftest.er1 6428 ac_status=$? 6429 grep -v '^ *+' conftest.er1 >conftest.err 6430 rm -f conftest.er1 6431 cat conftest.err >&5 6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6433 (exit $ac_status); } && { 6434 test -z "$ac_f77_werror_flag" || 6435 test ! -s conftest.err 6436 } && test -s conftest.$ac_objext; then 6437 ac_compiler_gnu=yes 6438else 6439 echo "$as_me: failed program was:" >&5 6440sed 's/^/| /' conftest.$ac_ext >&5 6441 6442 ac_compiler_gnu=no 6443fi 6444 6445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6446ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6447 6448fi 6449{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 6450echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } 6451ac_ext=$ac_save_ext 6452ac_test_FFLAGS=${FFLAGS+set} 6453ac_save_FFLAGS=$FFLAGS 6454FFLAGS= 6455{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 6456echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } 6457if test "${ac_cv_prog_f77_g+set}" = set; then 6458 echo $ECHO_N "(cached) $ECHO_C" >&6 6459else 6460 FFLAGS=-g 6461cat >conftest.$ac_ext <<_ACEOF 6462 program main 6463 6464 end 6465_ACEOF 6466rm -f conftest.$ac_objext 6467if { (ac_try="$ac_compile" 6468case "(($ac_try" in 6469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6470 *) ac_try_echo=$ac_try;; 6471esac 6472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6473 (eval "$ac_compile") 2>conftest.er1 6474 ac_status=$? 6475 grep -v '^ *+' conftest.er1 >conftest.err 6476 rm -f conftest.er1 6477 cat conftest.err >&5 6478 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6479 (exit $ac_status); } && { 6480 test -z "$ac_f77_werror_flag" || 6481 test ! -s conftest.err 6482 } && test -s conftest.$ac_objext; then 6483 ac_cv_prog_f77_g=yes 6484else 6485 echo "$as_me: failed program was:" >&5 6486sed 's/^/| /' conftest.$ac_ext >&5 6487 6488 ac_cv_prog_f77_g=no 6489fi 6490 6491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6492 6493fi 6494{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6495echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } 6496if test "$ac_test_FFLAGS" = set; then 6497 FFLAGS=$ac_save_FFLAGS 6498elif test $ac_cv_prog_f77_g = yes; then 6499 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6500 FFLAGS="-g -O2" 6501 else 6502 FFLAGS="-g" 6503 fi 6504else 6505 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6506 FFLAGS="-O2" 6507 else 6508 FFLAGS= 6509 fi 6510fi 6511 6512G77=`test $ac_compiler_gnu = yes && echo yes` 6513ac_ext=c 6514ac_cpp='$CPP $CPPFLAGS' 6515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6517ac_compiler_gnu=$ac_cv_c_compiler_gnu 6518 6519 6520 6521# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6522 6523# find the maximum length of command line arguments 6524{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6525echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } 6526if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6527 echo $ECHO_N "(cached) $ECHO_C" >&6 6528else 6529 i=0 6530 teststring="ABCD" 6531 6532 case $build_os in 6533 msdosdjgpp*) 6534 # On DJGPP, this test can blow up pretty badly due to problems in libc 6535 # (any single argument exceeding 2000 bytes causes a buffer overrun 6536 # during glob expansion). Even if it were fixed, the result of this 6537 # check would be larger than it should be. 6538 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6539 ;; 6540 6541 gnu*) 6542 # Under GNU Hurd, this test is not required because there is 6543 # no limit to the length of command line arguments. 6544 # Libtool will interpret -1 as no limit whatsoever 6545 lt_cv_sys_max_cmd_len=-1; 6546 ;; 6547 6548 cygwin* | mingw*) 6549 # On Win9x/ME, this test blows up -- it succeeds, but takes 6550 # about 5 minutes as the teststring grows exponentially. 6551 # Worse, since 9x/ME are not pre-emptively multitasking, 6552 # you end up with a "frozen" computer, even though with patience 6553 # the test eventually succeeds (with a max line length of 256k). 6554 # Instead, let's just punt: use the minimum linelength reported by 6555 # all of the supported platforms: 8192 (on NT/2K/XP). 6556 lt_cv_sys_max_cmd_len=8192; 6557 ;; 6558 6559 amigaos*) 6560 # On AmigaOS with pdksh, this test takes hours, literally. 6561 # So we just punt and use a minimum line length of 8192. 6562 lt_cv_sys_max_cmd_len=8192; 6563 ;; 6564 6565 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6566 # This has been around since 386BSD, at least. Likely further. 6567 if test -x /sbin/sysctl; then 6568 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6569 elif test -x /usr/sbin/sysctl; then 6570 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6571 else 6572 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6573 fi 6574 # And add a safety zone 6575 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6576 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6577 ;; 6578 6579 interix*) 6580 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6581 lt_cv_sys_max_cmd_len=196608 6582 ;; 6583 6584 osf*) 6585 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6586 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6587 # nice to cause kernel panics so lets avoid the loop below. 6588 # First set a reasonable default. 6589 lt_cv_sys_max_cmd_len=16384 6590 # 6591 if test -x /sbin/sysconfig; then 6592 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6593 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6594 esac 6595 fi 6596 ;; 6597 sco3.2v5*) 6598 lt_cv_sys_max_cmd_len=102400 6599 ;; 6600 sysv5* | sco5v6* | sysv4.2uw2*) 6601 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6602 if test -n "$kargmax"; then 6603 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6604 else 6605 lt_cv_sys_max_cmd_len=32768 6606 fi 6607 ;; 6608 *) 6609 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6610 if test -n "$lt_cv_sys_max_cmd_len"; then 6611 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6612 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6613 else 6614 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6615 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6616 = "XX$teststring") >/dev/null 2>&1 && 6617 new_result=`expr "X$teststring" : ".*" 2>&1` && 6618 lt_cv_sys_max_cmd_len=$new_result && 6619 test $i != 17 # 1/2 MB should be enough 6620 do 6621 i=`expr $i + 1` 6622 teststring=$teststring$teststring 6623 done 6624 teststring= 6625 # Add a significant safety factor because C++ compilers can tack on massive 6626 # amounts of additional arguments before passing them to the linker. 6627 # It appears as though 1/2 is a usable value. 6628 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6629 fi 6630 ;; 6631 esac 6632 6633fi 6634 6635if test -n $lt_cv_sys_max_cmd_len ; then 6636 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6637echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } 6638else 6639 { echo "$as_me:$LINENO: result: none" >&5 6640echo "${ECHO_T}none" >&6; } 6641fi 6642 6643 6644 6645 6646 6647# Check for command to grab the raw symbol name followed by C symbol from nm. 6648{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6649echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 6650if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6651 echo $ECHO_N "(cached) $ECHO_C" >&6 6652else 6653 6654# These are sane defaults that work on at least a few old systems. 6655# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6656 6657# Character class describing NM global symbol codes. 6658symcode='[BCDEGRST]' 6659 6660# Regexp to match symbols that can be accessed directly from C. 6661sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6662 6663# Transform an extracted symbol line into a proper C declaration 6664lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6665 6666# Transform an extracted symbol line into symbol name and symbol address 6667lt_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'" 6668 6669# Define system-specific variables. 6670case $host_os in 6671aix*) 6672 symcode='[BCDT]' 6673 ;; 6674cygwin* | mingw* | pw32*) 6675 symcode='[ABCDGISTW]' 6676 ;; 6677hpux*) # Its linker distinguishes data from code symbols 6678 if test "$host_cpu" = ia64; then 6679 symcode='[ABCDEGRST]' 6680 fi 6681 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6682 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'" 6683 ;; 6684linux* | k*bsd*-gnu) 6685 if test "$host_cpu" = ia64; then 6686 symcode='[ABCDGIRSTW]' 6687 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6688 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'" 6689 fi 6690 ;; 6691irix* | nonstopux*) 6692 symcode='[BCDEGRST]' 6693 ;; 6694osf*) 6695 symcode='[BCDEGQRST]' 6696 ;; 6697solaris*) 6698 symcode='[BDRT]' 6699 ;; 6700sco3.2v5*) 6701 symcode='[DT]' 6702 ;; 6703sysv4.2uw2*) 6704 symcode='[DT]' 6705 ;; 6706sysv5* | sco5v6* | unixware* | OpenUNIX*) 6707 symcode='[ABDT]' 6708 ;; 6709sysv4) 6710 symcode='[DFNSTU]' 6711 ;; 6712esac 6713 6714# Handle CRLF in mingw tool chain 6715opt_cr= 6716case $build_os in 6717mingw*) 6718 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6719 ;; 6720esac 6721 6722# If we're using GNU nm, then use its standard symbol codes. 6723case `$NM -V 2>&1` in 6724*GNU* | *'with BFD'*) 6725 symcode='[ABCDGIRSTW]' ;; 6726esac 6727 6728# Try without a prefix undercore, then with it. 6729for ac_symprfx in "" "_"; do 6730 6731 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6732 symxfrm="\\1 $ac_symprfx\\2 \\2" 6733 6734 # Write the raw and C identifiers. 6735 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6736 6737 # Check to see that the pipe works correctly. 6738 pipe_works=no 6739 6740 rm -f conftest* 6741 cat > conftest.$ac_ext <<EOF 6742#ifdef __cplusplus 6743extern "C" { 6744#endif 6745char nm_test_var; 6746void nm_test_func(){} 6747#ifdef __cplusplus 6748} 6749#endif 6750int main(){nm_test_var='a';nm_test_func();return(0);} 6751EOF 6752 6753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6754 (eval $ac_compile) 2>&5 6755 ac_status=$? 6756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6757 (exit $ac_status); }; then 6758 # Now try to grab the symbols. 6759 nlist=conftest.nm 6760 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6761 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6762 ac_status=$? 6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6764 (exit $ac_status); } && test -s "$nlist"; then 6765 # Try sorting and uniquifying the output. 6766 if sort "$nlist" | uniq > "$nlist"T; then 6767 mv -f "$nlist"T "$nlist" 6768 else 6769 rm -f "$nlist"T 6770 fi 6771 6772 # Make sure that we snagged all the symbols we need. 6773 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6774 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6775 cat <<EOF > conftest.$ac_ext 6776#ifdef __cplusplus 6777extern "C" { 6778#endif 6779 6780EOF 6781 # Now generate the symbol file. 6782 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6783 6784 cat <<EOF >> conftest.$ac_ext 6785#if defined (__STDC__) && __STDC__ 6786# define lt_ptr_t void * 6787#else 6788# define lt_ptr_t char * 6789# define const 6790#endif 6791 6792/* The mapping between symbol names and symbols. */ 6793const struct { 6794 const char *name; 6795 lt_ptr_t address; 6796} 6797lt_preloaded_symbols[] = 6798{ 6799EOF 6800 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6801 cat <<\EOF >> conftest.$ac_ext 6802 {0, (lt_ptr_t) 0} 6803}; 6804 6805#ifdef __cplusplus 6806} 6807#endif 6808EOF 6809 # Now try linking the two files. 6810 mv conftest.$ac_objext conftstm.$ac_objext 6811 lt_save_LIBS="$LIBS" 6812 lt_save_CFLAGS="$CFLAGS" 6813 LIBS="conftstm.$ac_objext" 6814 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6816 (eval $ac_link) 2>&5 6817 ac_status=$? 6818 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6819 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6820 pipe_works=yes 6821 fi 6822 LIBS="$lt_save_LIBS" 6823 CFLAGS="$lt_save_CFLAGS" 6824 else 6825 echo "cannot find nm_test_func in $nlist" >&5 6826 fi 6827 else 6828 echo "cannot find nm_test_var in $nlist" >&5 6829 fi 6830 else 6831 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6832 fi 6833 else 6834 echo "$progname: failed program was:" >&5 6835 cat conftest.$ac_ext >&5 6836 fi 6837 rm -f conftest* conftst* 6838 6839 # Do not use the global_symbol_pipe unless it works. 6840 if test "$pipe_works" = yes; then 6841 break 6842 else 6843 lt_cv_sys_global_symbol_pipe= 6844 fi 6845done 6846 6847fi 6848 6849if test -z "$lt_cv_sys_global_symbol_pipe"; then 6850 lt_cv_sys_global_symbol_to_cdecl= 6851fi 6852if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6853 { echo "$as_me:$LINENO: result: failed" >&5 6854echo "${ECHO_T}failed" >&6; } 6855else 6856 { echo "$as_me:$LINENO: result: ok" >&5 6857echo "${ECHO_T}ok" >&6; } 6858fi 6859 6860{ echo "$as_me:$LINENO: checking for objdir" >&5 6861echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 6862if test "${lt_cv_objdir+set}" = set; then 6863 echo $ECHO_N "(cached) $ECHO_C" >&6 6864else 6865 rm -f .libs 2>/dev/null 6866mkdir .libs 2>/dev/null 6867if test -d .libs; then 6868 lt_cv_objdir=.libs 6869else 6870 # MS-DOS does not allow filenames that begin with a dot. 6871 lt_cv_objdir=_libs 6872fi 6873rmdir .libs 2>/dev/null 6874fi 6875{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6876echo "${ECHO_T}$lt_cv_objdir" >&6; } 6877objdir=$lt_cv_objdir 6878 6879 6880 6881 6882 6883case $host_os in 6884aix3*) 6885 # AIX sometimes has problems with the GCC collect2 program. For some 6886 # reason, if we set the COLLECT_NAMES environment variable, the problems 6887 # vanish in a puff of smoke. 6888 if test "X${COLLECT_NAMES+set}" != Xset; then 6889 COLLECT_NAMES= 6890 export COLLECT_NAMES 6891 fi 6892 ;; 6893esac 6894 6895# Sed substitution that helps us do robust quoting. It backslashifies 6896# metacharacters that are still active within double-quoted strings. 6897Xsed='sed -e 1s/^X//' 6898sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6899 6900# Same as above, but do not quote variable references. 6901double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6902 6903# Sed substitution to delay expansion of an escaped shell variable in a 6904# double_quote_subst'ed string. 6905delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6906 6907# Sed substitution to avoid accidental globbing in evaled expressions 6908no_glob_subst='s/\*/\\\*/g' 6909 6910# Constants: 6911rm="rm -f" 6912 6913# Global variables: 6914default_ofile=libtool 6915can_build_shared=yes 6916 6917# All known linkers require a `.a' archive for static linking (except MSVC, 6918# which needs '.lib'). 6919libext=a 6920ltmain="$ac_aux_dir/ltmain.sh" 6921ofile="$default_ofile" 6922with_gnu_ld="$lt_cv_prog_gnu_ld" 6923 6924if test -n "$ac_tool_prefix"; then 6925 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6926set dummy ${ac_tool_prefix}ar; ac_word=$2 6927{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6928echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6929if test "${ac_cv_prog_AR+set}" = set; then 6930 echo $ECHO_N "(cached) $ECHO_C" >&6 6931else 6932 if test -n "$AR"; then 6933 ac_cv_prog_AR="$AR" # Let the user override the test. 6934else 6935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6936for as_dir in $PATH 6937do 6938 IFS=$as_save_IFS 6939 test -z "$as_dir" && as_dir=. 6940 for ac_exec_ext in '' $ac_executable_extensions; do 6941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6942 ac_cv_prog_AR="${ac_tool_prefix}ar" 6943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6944 break 2 6945 fi 6946done 6947done 6948IFS=$as_save_IFS 6949 6950fi 6951fi 6952AR=$ac_cv_prog_AR 6953if test -n "$AR"; then 6954 { echo "$as_me:$LINENO: result: $AR" >&5 6955echo "${ECHO_T}$AR" >&6; } 6956else 6957 { echo "$as_me:$LINENO: result: no" >&5 6958echo "${ECHO_T}no" >&6; } 6959fi 6960 6961 6962fi 6963if test -z "$ac_cv_prog_AR"; then 6964 ac_ct_AR=$AR 6965 # Extract the first word of "ar", so it can be a program name with args. 6966set dummy ar; ac_word=$2 6967{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6968echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6969if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6970 echo $ECHO_N "(cached) $ECHO_C" >&6 6971else 6972 if test -n "$ac_ct_AR"; then 6973 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6974else 6975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6976for as_dir in $PATH 6977do 6978 IFS=$as_save_IFS 6979 test -z "$as_dir" && as_dir=. 6980 for ac_exec_ext in '' $ac_executable_extensions; do 6981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6982 ac_cv_prog_ac_ct_AR="ar" 6983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6984 break 2 6985 fi 6986done 6987done 6988IFS=$as_save_IFS 6989 6990fi 6991fi 6992ac_ct_AR=$ac_cv_prog_ac_ct_AR 6993if test -n "$ac_ct_AR"; then 6994 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6995echo "${ECHO_T}$ac_ct_AR" >&6; } 6996else 6997 { echo "$as_me:$LINENO: result: no" >&5 6998echo "${ECHO_T}no" >&6; } 6999fi 7000 7001 if test "x$ac_ct_AR" = x; then 7002 AR="false" 7003 else 7004 case $cross_compiling:$ac_tool_warned in 7005yes:) 7006{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7007whose name does not start with the host triplet. If you think this 7008configuration is useful to you, please write to autoconf@gnu.org." >&5 7009echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7010whose name does not start with the host triplet. If you think this 7011configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7012ac_tool_warned=yes ;; 7013esac 7014 AR=$ac_ct_AR 7015 fi 7016else 7017 AR="$ac_cv_prog_AR" 7018fi 7019 7020if test -n "$ac_tool_prefix"; then 7021 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7022set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7023{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7024echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7025if test "${ac_cv_prog_RANLIB+set}" = set; then 7026 echo $ECHO_N "(cached) $ECHO_C" >&6 7027else 7028 if test -n "$RANLIB"; then 7029 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7030else 7031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7032for as_dir in $PATH 7033do 7034 IFS=$as_save_IFS 7035 test -z "$as_dir" && as_dir=. 7036 for ac_exec_ext in '' $ac_executable_extensions; do 7037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7038 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7040 break 2 7041 fi 7042done 7043done 7044IFS=$as_save_IFS 7045 7046fi 7047fi 7048RANLIB=$ac_cv_prog_RANLIB 7049if test -n "$RANLIB"; then 7050 { echo "$as_me:$LINENO: result: $RANLIB" >&5 7051echo "${ECHO_T}$RANLIB" >&6; } 7052else 7053 { echo "$as_me:$LINENO: result: no" >&5 7054echo "${ECHO_T}no" >&6; } 7055fi 7056 7057 7058fi 7059if test -z "$ac_cv_prog_RANLIB"; then 7060 ac_ct_RANLIB=$RANLIB 7061 # Extract the first word of "ranlib", so it can be a program name with args. 7062set dummy ranlib; ac_word=$2 7063{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7064echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7065if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 7066 echo $ECHO_N "(cached) $ECHO_C" >&6 7067else 7068 if test -n "$ac_ct_RANLIB"; then 7069 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7070else 7071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7072for as_dir in $PATH 7073do 7074 IFS=$as_save_IFS 7075 test -z "$as_dir" && as_dir=. 7076 for ac_exec_ext in '' $ac_executable_extensions; do 7077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7078 ac_cv_prog_ac_ct_RANLIB="ranlib" 7079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7080 break 2 7081 fi 7082done 7083done 7084IFS=$as_save_IFS 7085 7086fi 7087fi 7088ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7089if test -n "$ac_ct_RANLIB"; then 7090 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 7091echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 7092else 7093 { echo "$as_me:$LINENO: result: no" >&5 7094echo "${ECHO_T}no" >&6; } 7095fi 7096 7097 if test "x$ac_ct_RANLIB" = x; then 7098 RANLIB=":" 7099 else 7100 case $cross_compiling:$ac_tool_warned in 7101yes:) 7102{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7103whose name does not start with the host triplet. If you think this 7104configuration is useful to you, please write to autoconf@gnu.org." >&5 7105echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7106whose name does not start with the host triplet. If you think this 7107configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7108ac_tool_warned=yes ;; 7109esac 7110 RANLIB=$ac_ct_RANLIB 7111 fi 7112else 7113 RANLIB="$ac_cv_prog_RANLIB" 7114fi 7115 7116if test -n "$ac_tool_prefix"; then 7117 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7118set dummy ${ac_tool_prefix}strip; ac_word=$2 7119{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7120echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7121if test "${ac_cv_prog_STRIP+set}" = set; then 7122 echo $ECHO_N "(cached) $ECHO_C" >&6 7123else 7124 if test -n "$STRIP"; then 7125 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7126else 7127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7128for as_dir in $PATH 7129do 7130 IFS=$as_save_IFS 7131 test -z "$as_dir" && as_dir=. 7132 for ac_exec_ext in '' $ac_executable_extensions; do 7133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7134 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7136 break 2 7137 fi 7138done 7139done 7140IFS=$as_save_IFS 7141 7142fi 7143fi 7144STRIP=$ac_cv_prog_STRIP 7145if test -n "$STRIP"; then 7146 { echo "$as_me:$LINENO: result: $STRIP" >&5 7147echo "${ECHO_T}$STRIP" >&6; } 7148else 7149 { echo "$as_me:$LINENO: result: no" >&5 7150echo "${ECHO_T}no" >&6; } 7151fi 7152 7153 7154fi 7155if test -z "$ac_cv_prog_STRIP"; then 7156 ac_ct_STRIP=$STRIP 7157 # Extract the first word of "strip", so it can be a program name with args. 7158set dummy strip; ac_word=$2 7159{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7160echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7161if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 7162 echo $ECHO_N "(cached) $ECHO_C" >&6 7163else 7164 if test -n "$ac_ct_STRIP"; then 7165 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7166else 7167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7168for as_dir in $PATH 7169do 7170 IFS=$as_save_IFS 7171 test -z "$as_dir" && as_dir=. 7172 for ac_exec_ext in '' $ac_executable_extensions; do 7173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7174 ac_cv_prog_ac_ct_STRIP="strip" 7175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7176 break 2 7177 fi 7178done 7179done 7180IFS=$as_save_IFS 7181 7182fi 7183fi 7184ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7185if test -n "$ac_ct_STRIP"; then 7186 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 7187echo "${ECHO_T}$ac_ct_STRIP" >&6; } 7188else 7189 { echo "$as_me:$LINENO: result: no" >&5 7190echo "${ECHO_T}no" >&6; } 7191fi 7192 7193 if test "x$ac_ct_STRIP" = x; then 7194 STRIP=":" 7195 else 7196 case $cross_compiling:$ac_tool_warned in 7197yes:) 7198{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7199whose name does not start with the host triplet. If you think this 7200configuration is useful to you, please write to autoconf@gnu.org." >&5 7201echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7202whose name does not start with the host triplet. If you think this 7203configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7204ac_tool_warned=yes ;; 7205esac 7206 STRIP=$ac_ct_STRIP 7207 fi 7208else 7209 STRIP="$ac_cv_prog_STRIP" 7210fi 7211 7212 7213old_CC="$CC" 7214old_CFLAGS="$CFLAGS" 7215 7216# Set sane defaults for various variables 7217test -z "$AR" && AR=ar 7218test -z "$AR_FLAGS" && AR_FLAGS=cru 7219test -z "$AS" && AS=as 7220test -z "$CC" && CC=cc 7221test -z "$LTCC" && LTCC=$CC 7222test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7223test -z "$DLLTOOL" && DLLTOOL=dlltool 7224test -z "$LD" && LD=ld 7225test -z "$LN_S" && LN_S="ln -s" 7226test -z "$MAGIC_CMD" && MAGIC_CMD=file 7227test -z "$NM" && NM=nm 7228test -z "$SED" && SED=sed 7229test -z "$OBJDUMP" && OBJDUMP=objdump 7230test -z "$RANLIB" && RANLIB=: 7231test -z "$STRIP" && STRIP=: 7232test -z "$ac_objext" && ac_objext=o 7233 7234# Determine commands to create old-style static archives. 7235old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7236old_postinstall_cmds='chmod 644 $oldlib' 7237old_postuninstall_cmds= 7238 7239if test -n "$RANLIB"; then 7240 case $host_os in 7241 openbsd*) 7242 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 7243 ;; 7244 *) 7245 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 7246 ;; 7247 esac 7248 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 7249fi 7250 7251for cc_temp in $compiler""; do 7252 case $cc_temp in 7253 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7254 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7255 \-*) ;; 7256 *) break;; 7257 esac 7258done 7259cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7260 7261 7262# Only perform the check for file, if the check method requires it 7263case $deplibs_check_method in 7264file_magic*) 7265 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7266 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7267echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } 7268if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7269 echo $ECHO_N "(cached) $ECHO_C" >&6 7270else 7271 case $MAGIC_CMD in 7272[\\/*] | ?:[\\/]*) 7273 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7274 ;; 7275*) 7276 lt_save_MAGIC_CMD="$MAGIC_CMD" 7277 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7278 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7279 for ac_dir in $ac_dummy; do 7280 IFS="$lt_save_ifs" 7281 test -z "$ac_dir" && ac_dir=. 7282 if test -f $ac_dir/${ac_tool_prefix}file; then 7283 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7284 if test -n "$file_magic_test_file"; then 7285 case $deplibs_check_method in 7286 "file_magic "*) 7287 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7288 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7289 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7290 $EGREP "$file_magic_regex" > /dev/null; then 7291 : 7292 else 7293 cat <<EOF 1>&2 7294 7295*** Warning: the command libtool uses to detect shared libraries, 7296*** $file_magic_cmd, produces output that libtool cannot recognize. 7297*** The result is that libtool may fail to recognize shared libraries 7298*** as such. This will affect the creation of libtool libraries that 7299*** depend on shared libraries, but programs linked with such libtool 7300*** libraries will work regardless of this problem. Nevertheless, you 7301*** may want to report the problem to your system manager and/or to 7302*** bug-libtool@gnu.org 7303 7304EOF 7305 fi ;; 7306 esac 7307 fi 7308 break 7309 fi 7310 done 7311 IFS="$lt_save_ifs" 7312 MAGIC_CMD="$lt_save_MAGIC_CMD" 7313 ;; 7314esac 7315fi 7316 7317MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7318if test -n "$MAGIC_CMD"; then 7319 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7320echo "${ECHO_T}$MAGIC_CMD" >&6; } 7321else 7322 { echo "$as_me:$LINENO: result: no" >&5 7323echo "${ECHO_T}no" >&6; } 7324fi 7325 7326if test -z "$lt_cv_path_MAGIC_CMD"; then 7327 if test -n "$ac_tool_prefix"; then 7328 { echo "$as_me:$LINENO: checking for file" >&5 7329echo $ECHO_N "checking for file... $ECHO_C" >&6; } 7330if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7331 echo $ECHO_N "(cached) $ECHO_C" >&6 7332else 7333 case $MAGIC_CMD in 7334[\\/*] | ?:[\\/]*) 7335 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7336 ;; 7337*) 7338 lt_save_MAGIC_CMD="$MAGIC_CMD" 7339 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7340 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7341 for ac_dir in $ac_dummy; do 7342 IFS="$lt_save_ifs" 7343 test -z "$ac_dir" && ac_dir=. 7344 if test -f $ac_dir/file; then 7345 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7346 if test -n "$file_magic_test_file"; then 7347 case $deplibs_check_method in 7348 "file_magic "*) 7349 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7350 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7351 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7352 $EGREP "$file_magic_regex" > /dev/null; then 7353 : 7354 else 7355 cat <<EOF 1>&2 7356 7357*** Warning: the command libtool uses to detect shared libraries, 7358*** $file_magic_cmd, produces output that libtool cannot recognize. 7359*** The result is that libtool may fail to recognize shared libraries 7360*** as such. This will affect the creation of libtool libraries that 7361*** depend on shared libraries, but programs linked with such libtool 7362*** libraries will work regardless of this problem. Nevertheless, you 7363*** may want to report the problem to your system manager and/or to 7364*** bug-libtool@gnu.org 7365 7366EOF 7367 fi ;; 7368 esac 7369 fi 7370 break 7371 fi 7372 done 7373 IFS="$lt_save_ifs" 7374 MAGIC_CMD="$lt_save_MAGIC_CMD" 7375 ;; 7376esac 7377fi 7378 7379MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7380if test -n "$MAGIC_CMD"; then 7381 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7382echo "${ECHO_T}$MAGIC_CMD" >&6; } 7383else 7384 { echo "$as_me:$LINENO: result: no" >&5 7385echo "${ECHO_T}no" >&6; } 7386fi 7387 7388 else 7389 MAGIC_CMD=: 7390 fi 7391fi 7392 7393 fi 7394 ;; 7395esac 7396 7397enable_dlopen=no 7398enable_win32_dll=yes 7399 7400# Check whether --enable-libtool-lock was given. 7401if test "${enable_libtool_lock+set}" = set; then 7402 enableval=$enable_libtool_lock; 7403fi 7404 7405test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7406 7407 7408# Check whether --with-pic was given. 7409if test "${with_pic+set}" = set; then 7410 withval=$with_pic; pic_mode="$withval" 7411else 7412 pic_mode=default 7413fi 7414 7415test -z "$pic_mode" && pic_mode=default 7416 7417# Use C for the default configuration in the libtool script 7418tagname= 7419lt_save_CC="$CC" 7420ac_ext=c 7421ac_cpp='$CPP $CPPFLAGS' 7422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7424ac_compiler_gnu=$ac_cv_c_compiler_gnu 7425 7426 7427# Source file extension for C test sources. 7428ac_ext=c 7429 7430# Object file extension for compiled C test sources. 7431objext=o 7432objext=$objext 7433 7434# Code to be used in simple compile tests 7435lt_simple_compile_test_code="int some_variable = 0;" 7436 7437# Code to be used in simple link tests 7438lt_simple_link_test_code='int main(){return(0);}' 7439 7440 7441# If no C compiler was specified, use CC. 7442LTCC=${LTCC-"$CC"} 7443 7444# If no C compiler flags were specified, use CFLAGS. 7445LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7446 7447# Allow CC to be a program name with arguments. 7448compiler=$CC 7449 7450 7451# save warnings/boilerplate of simple test code 7452ac_outfile=conftest.$ac_objext 7453echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7454eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7455_lt_compiler_boilerplate=`cat conftest.err` 7456$rm conftest* 7457 7458ac_outfile=conftest.$ac_objext 7459echo "$lt_simple_link_test_code" >conftest.$ac_ext 7460eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7461_lt_linker_boilerplate=`cat conftest.err` 7462$rm conftest* 7463 7464 7465## CAVEAT EMPTOR: 7466## There is no encapsulation within the following macros, do not change 7467## the running order or otherwise move them around unless you know exactly 7468## what you are doing... 7469 7470lt_prog_compiler_no_builtin_flag= 7471 7472if test "$GCC" = yes; then 7473 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7474 7475 7476{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7477echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 7478if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7479 echo $ECHO_N "(cached) $ECHO_C" >&6 7480else 7481 lt_cv_prog_compiler_rtti_exceptions=no 7482 ac_outfile=conftest.$ac_objext 7483 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7484 lt_compiler_flag="-fno-rtti -fno-exceptions" 7485 # Insert the option either (1) after the last *FLAGS variable, or 7486 # (2) before a word containing "conftest.", or (3) at the end. 7487 # Note that $ac_compile itself does not contain backslashes and begins 7488 # with a dollar sign (not a hyphen), so the echo should work correctly. 7489 # The option is referenced via a variable to avoid confusing sed. 7490 lt_compile=`echo "$ac_compile" | $SED \ 7491 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7492 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7493 -e 's:$: $lt_compiler_flag:'` 7494 (eval echo "\"\$as_me:7494: $lt_compile\"" >&5) 7495 (eval "$lt_compile" 2>conftest.err) 7496 ac_status=$? 7497 cat conftest.err >&5 7498 echo "$as_me:7498: \$? = $ac_status" >&5 7499 if (exit $ac_status) && test -s "$ac_outfile"; then 7500 # The compiler can only warn and ignore the option if not recognized 7501 # So say no if there are warnings other than the usual output. 7502 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7503 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7504 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7505 lt_cv_prog_compiler_rtti_exceptions=yes 7506 fi 7507 fi 7508 $rm conftest* 7509 7510fi 7511{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7512echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7513 7514if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7515 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7516else 7517 : 7518fi 7519 7520fi 7521 7522lt_prog_compiler_wl= 7523lt_prog_compiler_pic= 7524lt_prog_compiler_static= 7525 7526{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7527echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 7528 7529 if test "$GCC" = yes; then 7530 lt_prog_compiler_wl='-Wl,' 7531 lt_prog_compiler_static='-static' 7532 7533 case $host_os in 7534 aix*) 7535 # All AIX code is PIC. 7536 if test "$host_cpu" = ia64; then 7537 # AIX 5 now supports IA64 processor 7538 lt_prog_compiler_static='-Bstatic' 7539 fi 7540 ;; 7541 7542 amigaos*) 7543 # FIXME: we need at least 68020 code to build shared libraries, but 7544 # adding the `-m68020' flag to GCC prevents building anything better, 7545 # like `-m68040'. 7546 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7547 ;; 7548 7549 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7550 # PIC is the default for these OSes. 7551 ;; 7552 7553 mingw* | cygwin* | pw32* | os2*) 7554 # This hack is so that the source file can tell whether it is being 7555 # built for inclusion in a dll (and should export symbols for example). 7556 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7557 # (--disable-auto-import) libraries 7558 lt_prog_compiler_pic='-DDLL_EXPORT' 7559 ;; 7560 7561 darwin* | rhapsody*) 7562 # PIC is the default on this platform 7563 # Common symbols not allowed in MH_DYLIB files 7564 lt_prog_compiler_pic='-fno-common' 7565 ;; 7566 7567 interix[3-9]*) 7568 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7569 # Instead, we relocate shared libraries at runtime. 7570 ;; 7571 7572 msdosdjgpp*) 7573 # Just because we use GCC doesn't mean we suddenly get shared libraries 7574 # on systems that don't support them. 7575 lt_prog_compiler_can_build_shared=no 7576 enable_shared=no 7577 ;; 7578 7579 sysv4*MP*) 7580 if test -d /usr/nec; then 7581 lt_prog_compiler_pic=-Kconform_pic 7582 fi 7583 ;; 7584 7585 hpux*) 7586 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7587 # not for PA HP-UX. 7588 case $host_cpu in 7589 hppa*64*|ia64*) 7590 # +Z the default 7591 ;; 7592 *) 7593 lt_prog_compiler_pic='-fPIC' 7594 ;; 7595 esac 7596 ;; 7597 7598 *) 7599 lt_prog_compiler_pic='-fPIC' 7600 ;; 7601 esac 7602 else 7603 # PORTME Check for flag to pass linker flags through the system compiler. 7604 case $host_os in 7605 aix*) 7606 lt_prog_compiler_wl='-Wl,' 7607 if test "$host_cpu" = ia64; then 7608 # AIX 5 now supports IA64 processor 7609 lt_prog_compiler_static='-Bstatic' 7610 else 7611 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7612 fi 7613 ;; 7614 darwin*) 7615 # PIC is the default on this platform 7616 # Common symbols not allowed in MH_DYLIB files 7617 case $cc_basename in 7618 xlc*) 7619 lt_prog_compiler_pic='-qnocommon' 7620 lt_prog_compiler_wl='-Wl,' 7621 ;; 7622 esac 7623 ;; 7624 7625 mingw* | cygwin* | pw32* | os2*) 7626 # This hack is so that the source file can tell whether it is being 7627 # built for inclusion in a dll (and should export symbols for example). 7628 lt_prog_compiler_pic='-DDLL_EXPORT' 7629 ;; 7630 7631 hpux9* | hpux10* | hpux11*) 7632 lt_prog_compiler_wl='-Wl,' 7633 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7634 # not for PA HP-UX. 7635 case $host_cpu in 7636 hppa*64*|ia64*) 7637 # +Z the default 7638 ;; 7639 *) 7640 lt_prog_compiler_pic='+Z' 7641 ;; 7642 esac 7643 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7644 lt_prog_compiler_static='${wl}-a ${wl}archive' 7645 ;; 7646 7647 irix5* | irix6* | nonstopux*) 7648 lt_prog_compiler_wl='-Wl,' 7649 # PIC (with -KPIC) is the default. 7650 lt_prog_compiler_static='-non_shared' 7651 ;; 7652 7653 newsos6) 7654 lt_prog_compiler_pic='-KPIC' 7655 lt_prog_compiler_static='-Bstatic' 7656 ;; 7657 7658 linux* | k*bsd*-gnu) 7659 case $cc_basename in 7660 icc* | ecc*) 7661 lt_prog_compiler_wl='-Wl,' 7662 lt_prog_compiler_pic='-KPIC' 7663 lt_prog_compiler_static='-static' 7664 ;; 7665 pgcc* | pgf77* | pgf90* | pgf95*) 7666 # Portland Group compilers (*not* the Pentium gcc compiler, 7667 # which looks to be a dead project) 7668 lt_prog_compiler_wl='-Wl,' 7669 lt_prog_compiler_pic='-fpic' 7670 lt_prog_compiler_static='-Bstatic' 7671 ;; 7672 ccc*) 7673 lt_prog_compiler_wl='-Wl,' 7674 # All Alpha code is PIC. 7675 lt_prog_compiler_static='-non_shared' 7676 ;; 7677 como) 7678 lt_prog_compiler_wl='-lopt=' 7679 ;; 7680 *) 7681 case `$CC -V 2>&1 | sed 5q` in 7682 *Sun\ C*) 7683 # Sun C 5.9 7684 lt_prog_compiler_pic='-KPIC' 7685 lt_prog_compiler_static='-Bstatic' 7686 lt_prog_compiler_wl='-Wl,' 7687 ;; 7688 *Sun\ F*) 7689 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7690 lt_prog_compiler_pic='-KPIC' 7691 lt_prog_compiler_static='-Bstatic' 7692 lt_prog_compiler_wl='' 7693 ;; 7694 esac 7695 ;; 7696 esac 7697 ;; 7698 7699 osf3* | osf4* | osf5*) 7700 lt_prog_compiler_wl='-Wl,' 7701 # All OSF/1 code is PIC. 7702 lt_prog_compiler_static='-non_shared' 7703 ;; 7704 7705 rdos*) 7706 lt_prog_compiler_static='-non_shared' 7707 ;; 7708 7709 solaris*) 7710 lt_prog_compiler_pic='-KPIC' 7711 lt_prog_compiler_static='-Bstatic' 7712 case $cc_basename in 7713 f77* | f90* | f95*) 7714 lt_prog_compiler_wl='-Qoption ld ';; 7715 *) 7716 lt_prog_compiler_wl='-Wl,';; 7717 esac 7718 ;; 7719 7720 sunos4*) 7721 lt_prog_compiler_wl='-Qoption ld ' 7722 lt_prog_compiler_pic='-PIC' 7723 lt_prog_compiler_static='-Bstatic' 7724 ;; 7725 7726 sysv4 | sysv4.2uw2* | sysv4.3*) 7727 lt_prog_compiler_wl='-Wl,' 7728 lt_prog_compiler_pic='-KPIC' 7729 lt_prog_compiler_static='-Bstatic' 7730 ;; 7731 7732 sysv4*MP*) 7733 if test -d /usr/nec ;then 7734 lt_prog_compiler_pic='-Kconform_pic' 7735 lt_prog_compiler_static='-Bstatic' 7736 fi 7737 ;; 7738 7739 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7740 lt_prog_compiler_wl='-Wl,' 7741 lt_prog_compiler_pic='-KPIC' 7742 lt_prog_compiler_static='-Bstatic' 7743 ;; 7744 7745 unicos*) 7746 lt_prog_compiler_wl='-Wl,' 7747 lt_prog_compiler_can_build_shared=no 7748 ;; 7749 7750 uts4*) 7751 lt_prog_compiler_pic='-pic' 7752 lt_prog_compiler_static='-Bstatic' 7753 ;; 7754 7755 *) 7756 lt_prog_compiler_can_build_shared=no 7757 ;; 7758 esac 7759 fi 7760 7761{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7762echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 7763 7764# 7765# Check to make sure the PIC flag actually works. 7766# 7767if test -n "$lt_prog_compiler_pic"; then 7768 7769{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7770echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 7771if test "${lt_prog_compiler_pic_works+set}" = set; then 7772 echo $ECHO_N "(cached) $ECHO_C" >&6 7773else 7774 lt_prog_compiler_pic_works=no 7775 ac_outfile=conftest.$ac_objext 7776 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7777 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7778 # Insert the option either (1) after the last *FLAGS variable, or 7779 # (2) before a word containing "conftest.", or (3) at the end. 7780 # Note that $ac_compile itself does not contain backslashes and begins 7781 # with a dollar sign (not a hyphen), so the echo should work correctly. 7782 # The option is referenced via a variable to avoid confusing sed. 7783 lt_compile=`echo "$ac_compile" | $SED \ 7784 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7785 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7786 -e 's:$: $lt_compiler_flag:'` 7787 (eval echo "\"\$as_me:7787: $lt_compile\"" >&5) 7788 (eval "$lt_compile" 2>conftest.err) 7789 ac_status=$? 7790 cat conftest.err >&5 7791 echo "$as_me:7791: \$? = $ac_status" >&5 7792 if (exit $ac_status) && test -s "$ac_outfile"; then 7793 # The compiler can only warn and ignore the option if not recognized 7794 # So say no if there are warnings other than the usual output. 7795 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7796 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7797 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7798 lt_prog_compiler_pic_works=yes 7799 fi 7800 fi 7801 $rm conftest* 7802 7803fi 7804{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 7805echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } 7806 7807if test x"$lt_prog_compiler_pic_works" = xyes; then 7808 case $lt_prog_compiler_pic in 7809 "" | " "*) ;; 7810 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7811 esac 7812else 7813 lt_prog_compiler_pic= 7814 lt_prog_compiler_can_build_shared=no 7815fi 7816 7817fi 7818case $host_os in 7819 # For platforms which do not support PIC, -DPIC is meaningless: 7820 *djgpp*) 7821 lt_prog_compiler_pic= 7822 ;; 7823 *) 7824 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7825 ;; 7826esac 7827 7828# 7829# Check to make sure the static flag actually works. 7830# 7831wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7832{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7833echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 7834if test "${lt_prog_compiler_static_works+set}" = set; then 7835 echo $ECHO_N "(cached) $ECHO_C" >&6 7836else 7837 lt_prog_compiler_static_works=no 7838 save_LDFLAGS="$LDFLAGS" 7839 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7840 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7841 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7842 # The linker can only warn and ignore the option if not recognized 7843 # So say no if there are warnings 7844 if test -s conftest.err; then 7845 # Append any errors to the config.log. 7846 cat conftest.err 1>&5 7847 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7848 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7849 if diff conftest.exp conftest.er2 >/dev/null; then 7850 lt_prog_compiler_static_works=yes 7851 fi 7852 else 7853 lt_prog_compiler_static_works=yes 7854 fi 7855 fi 7856 $rm conftest* 7857 LDFLAGS="$save_LDFLAGS" 7858 7859fi 7860{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 7861echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } 7862 7863if test x"$lt_prog_compiler_static_works" = xyes; then 7864 : 7865else 7866 lt_prog_compiler_static= 7867fi 7868 7869 7870{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7871echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 7872if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7873 echo $ECHO_N "(cached) $ECHO_C" >&6 7874else 7875 lt_cv_prog_compiler_c_o=no 7876 $rm -r conftest 2>/dev/null 7877 mkdir conftest 7878 cd conftest 7879 mkdir out 7880 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7881 7882 lt_compiler_flag="-o out/conftest2.$ac_objext" 7883 # Insert the option either (1) after the last *FLAGS variable, or 7884 # (2) before a word containing "conftest.", or (3) at the end. 7885 # Note that $ac_compile itself does not contain backslashes and begins 7886 # with a dollar sign (not a hyphen), so the echo should work correctly. 7887 lt_compile=`echo "$ac_compile" | $SED \ 7888 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7889 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7890 -e 's:$: $lt_compiler_flag:'` 7891 (eval echo "\"\$as_me:7891: $lt_compile\"" >&5) 7892 (eval "$lt_compile" 2>out/conftest.err) 7893 ac_status=$? 7894 cat out/conftest.err >&5 7895 echo "$as_me:7895: \$? = $ac_status" >&5 7896 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7897 then 7898 # The compiler can only warn and ignore the option if not recognized 7899 # So say no if there are warnings 7900 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7901 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7902 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7903 lt_cv_prog_compiler_c_o=yes 7904 fi 7905 fi 7906 chmod u+w . 2>&5 7907 $rm conftest* 7908 # SGI C++ compiler will create directory out/ii_files/ for 7909 # template instantiation 7910 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 7911 $rm out/* && rmdir out 7912 cd .. 7913 rmdir conftest 7914 $rm conftest* 7915 7916fi 7917{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7918echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 7919 7920 7921hard_links="nottested" 7922if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7923 # do not overwrite the value of need_locks provided by the user 7924 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7925echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 7926 hard_links=yes 7927 $rm conftest* 7928 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7929 touch conftest.a 7930 ln conftest.a conftest.b 2>&5 || hard_links=no 7931 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7932 { echo "$as_me:$LINENO: result: $hard_links" >&5 7933echo "${ECHO_T}$hard_links" >&6; } 7934 if test "$hard_links" = no; then 7935 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7936echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7937 need_locks=warn 7938 fi 7939else 7940 need_locks=no 7941fi 7942 7943{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7944echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 7945 7946 runpath_var= 7947 allow_undefined_flag= 7948 enable_shared_with_static_runtimes=no 7949 archive_cmds= 7950 archive_expsym_cmds= 7951 old_archive_From_new_cmds= 7952 old_archive_from_expsyms_cmds= 7953 export_dynamic_flag_spec= 7954 whole_archive_flag_spec= 7955 thread_safe_flag_spec= 7956 hardcode_libdir_flag_spec= 7957 hardcode_libdir_flag_spec_ld= 7958 hardcode_libdir_separator= 7959 hardcode_direct=no 7960 hardcode_minus_L=no 7961 hardcode_shlibpath_var=unsupported 7962 link_all_deplibs=unknown 7963 hardcode_automatic=no 7964 module_cmds= 7965 module_expsym_cmds= 7966 always_export_symbols=no 7967 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7968 # include_expsyms should be a list of space-separated symbols to be *always* 7969 # included in the symbol list 7970 include_expsyms= 7971 # exclude_expsyms can be an extended regexp of symbols to exclude 7972 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7973 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7974 # as well as any symbol that contains `d'. 7975 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 7976 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7977 # platforms (ab)use it in PIC code, but their linkers get confused if 7978 # the symbol is explicitly referenced. Since portable code cannot 7979 # rely on this symbol name, it's probably fine to never include it in 7980 # preloaded symbol tables. 7981 extract_expsyms_cmds= 7982 # Just being paranoid about ensuring that cc_basename is set. 7983 for cc_temp in $compiler""; do 7984 case $cc_temp in 7985 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7986 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7987 \-*) ;; 7988 *) break;; 7989 esac 7990done 7991cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7992 7993 case $host_os in 7994 cygwin* | mingw* | pw32*) 7995 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7996 # When not using gcc, we currently assume that we are using 7997 # Microsoft Visual C++. 7998 if test "$GCC" != yes; then 7999 with_gnu_ld=no 8000 fi 8001 ;; 8002 interix*) 8003 # we just hope/assume this is gcc and not c89 (= MSVC++) 8004 with_gnu_ld=yes 8005 ;; 8006 openbsd*) 8007 with_gnu_ld=no 8008 ;; 8009 esac 8010 8011 ld_shlibs=yes 8012 if test "$with_gnu_ld" = yes; then 8013 # If archive_cmds runs LD, not CC, wlarc should be empty 8014 wlarc='${wl}' 8015 8016 # Set some defaults for GNU ld with shared library support. These 8017 # are reset later if shared libraries are not supported. Putting them 8018 # here allows them to be overridden if necessary. 8019 runpath_var=LD_RUN_PATH 8020 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 8021 export_dynamic_flag_spec='${wl}--export-dynamic' 8022 # ancient GNU ld didn't support --whole-archive et. al. 8023 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 8024 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8025 else 8026 whole_archive_flag_spec= 8027 fi 8028 supports_anon_versioning=no 8029 case `$LD -v 2>/dev/null` in 8030 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8031 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8032 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8033 *\ 2.11.*) ;; # other 2.11 versions 8034 *) supports_anon_versioning=yes ;; 8035 esac 8036 8037 # See if GNU ld supports shared libraries. 8038 case $host_os in 8039 aix3* | aix4* | aix5*) 8040 # On AIX/PPC, the GNU linker is very broken 8041 if test "$host_cpu" != ia64; then 8042 ld_shlibs=no 8043 cat <<EOF 1>&2 8044 8045*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8046*** to be unable to reliably create shared libraries on AIX. 8047*** Therefore, libtool is disabling shared libraries support. If you 8048*** really care for shared libraries, you may want to modify your PATH 8049*** so that a non-GNU linker is found, and then restart. 8050 8051EOF 8052 fi 8053 ;; 8054 8055 amigaos*) 8056 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)' 8057 hardcode_libdir_flag_spec='-L$libdir' 8058 hardcode_minus_L=yes 8059 8060 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 8061 # that the semantics of dynamic libraries on AmigaOS, at least up 8062 # to version 4, is to share data among multiple programs linked 8063 # with the same dynamic library. Since this doesn't match the 8064 # behavior of shared libraries on other platforms, we can't use 8065 # them. 8066 ld_shlibs=no 8067 ;; 8068 8069 beos*) 8070 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8071 allow_undefined_flag=unsupported 8072 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8073 # support --undefined. This deserves some investigation. FIXME 8074 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8075 else 8076 ld_shlibs=no 8077 fi 8078 ;; 8079 8080 cygwin* | mingw* | pw32*) 8081 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8082 # as there is no search path for DLLs. 8083 hardcode_libdir_flag_spec='-L$libdir' 8084 allow_undefined_flag=unsupported 8085 always_export_symbols=no 8086 enable_shared_with_static_runtimes=yes 8087 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8088 8089 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 8090 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8091 # If the export-symbols file already is a .def file (1st line 8092 # is EXPORTS), use it as is; otherwise, prepend... 8093 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8094 cp $export_symbols $output_objdir/$soname.def; 8095 else 8096 echo EXPORTS > $output_objdir/$soname.def; 8097 cat $export_symbols >> $output_objdir/$soname.def; 8098 fi~ 8099 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8100 else 8101 ld_shlibs=no 8102 fi 8103 ;; 8104 8105 interix[3-9]*) 8106 hardcode_direct=no 8107 hardcode_shlibpath_var=no 8108 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8109 export_dynamic_flag_spec='${wl}-E' 8110 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8111 # Instead, shared libraries are loaded at an image base (0x10000000 by 8112 # default) and relocated if they conflict, which is a slow very memory 8113 # consuming and fragmenting process. To avoid this, we pick a random, 8114 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8115 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8116 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8117 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' 8118 ;; 8119 8120 gnu* | linux* | k*bsd*-gnu) 8121 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8122 tmp_addflag= 8123 case $cc_basename,$host_cpu in 8124 pgcc*) # Portland Group C compiler 8125 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' 8126 tmp_addflag=' $pic_flag' 8127 ;; 8128 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8129 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' 8130 tmp_addflag=' $pic_flag -Mnomain' ;; 8131 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8132 tmp_addflag=' -i_dynamic' ;; 8133 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8134 tmp_addflag=' -i_dynamic -nofor_main' ;; 8135 ifc* | ifort*) # Intel Fortran compiler 8136 tmp_addflag=' -nofor_main' ;; 8137 esac 8138 case `$CC -V 2>&1 | sed 5q` in 8139 *Sun\ C*) # Sun C 5.9 8140 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' 8141 tmp_sharedflag='-G' ;; 8142 *Sun\ F*) # Sun Fortran 8.3 8143 tmp_sharedflag='-G' ;; 8144 *) 8145 tmp_sharedflag='-shared' ;; 8146 esac 8147 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8148 8149 if test $supports_anon_versioning = yes; then 8150 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 8151 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8152 $echo "local: *; };" >> $output_objdir/$libname.ver~ 8153 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8154 fi 8155 else 8156 ld_shlibs=no 8157 fi 8158 ;; 8159 8160 netbsd*) 8161 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8162 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8163 wlarc= 8164 else 8165 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8166 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8167 fi 8168 ;; 8169 8170 solaris*) 8171 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 8172 ld_shlibs=no 8173 cat <<EOF 1>&2 8174 8175*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8176*** create shared libraries on Solaris systems. Therefore, libtool 8177*** is disabling shared libraries support. We urge you to upgrade GNU 8178*** binutils to release 2.9.1 or newer. Another option is to modify 8179*** your PATH or compiler configuration so that the native linker is 8180*** used, and then restart. 8181 8182EOF 8183 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8184 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8185 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8186 else 8187 ld_shlibs=no 8188 fi 8189 ;; 8190 8191 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8192 case `$LD -v 2>&1` in 8193 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8194 ld_shlibs=no 8195 cat <<_LT_EOF 1>&2 8196 8197*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8198*** reliably create shared libraries on SCO systems. Therefore, libtool 8199*** is disabling shared libraries support. We urge you to upgrade GNU 8200*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8201*** your PATH or compiler configuration so that the native linker is 8202*** used, and then restart. 8203 8204_LT_EOF 8205 ;; 8206 *) 8207 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8208 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 8209 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 8210 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 8211 else 8212 ld_shlibs=no 8213 fi 8214 ;; 8215 esac 8216 ;; 8217 8218 sunos4*) 8219 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8220 wlarc= 8221 hardcode_direct=yes 8222 hardcode_shlibpath_var=no 8223 ;; 8224 8225 *) 8226 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8227 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8228 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8229 else 8230 ld_shlibs=no 8231 fi 8232 ;; 8233 esac 8234 8235 if test "$ld_shlibs" = no; then 8236 runpath_var= 8237 hardcode_libdir_flag_spec= 8238 export_dynamic_flag_spec= 8239 whole_archive_flag_spec= 8240 fi 8241 else 8242 # PORTME fill in a description of your system's linker (not GNU ld) 8243 case $host_os in 8244 aix3*) 8245 allow_undefined_flag=unsupported 8246 always_export_symbols=yes 8247 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' 8248 # Note: this linker hardcodes the directories in LIBPATH if there 8249 # are no directories specified by -L. 8250 hardcode_minus_L=yes 8251 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8252 # Neither direct hardcoding nor static linking is supported with a 8253 # broken collect2. 8254 hardcode_direct=unsupported 8255 fi 8256 ;; 8257 8258 aix4* | aix5*) 8259 if test "$host_cpu" = ia64; then 8260 # On IA64, the linker does run time linking by default, so we don't 8261 # have to do anything special. 8262 aix_use_runtimelinking=no 8263 exp_sym_flag='-Bexport' 8264 no_entry_flag="" 8265 else 8266 # If we're using GNU nm, then we don't want the "-C" option. 8267 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8268 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 8269 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' 8270 else 8271 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' 8272 fi 8273 aix_use_runtimelinking=no 8274 8275 # Test if we are trying to use run time linking or normal 8276 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8277 # need to do runtime linking. 8278 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 8279 for ld_flag in $LDFLAGS; do 8280 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8281 aix_use_runtimelinking=yes 8282 break 8283 fi 8284 done 8285 ;; 8286 esac 8287 8288 exp_sym_flag='-bexport' 8289 no_entry_flag='-bnoentry' 8290 fi 8291 8292 # When large executables or shared objects are built, AIX ld can 8293 # have problems creating the table of contents. If linking a library 8294 # or program results in "error TOC overflow" add -mminimal-toc to 8295 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8296 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8297 8298 archive_cmds='' 8299 hardcode_direct=yes 8300 hardcode_libdir_separator=':' 8301 link_all_deplibs=yes 8302 8303 if test "$GCC" = yes; then 8304 case $host_os in aix4.[012]|aix4.[012].*) 8305 # We only want to do this on AIX 4.2 and lower, the check 8306 # below for broken collect2 doesn't work under 4.3+ 8307 collect2name=`${CC} -print-prog-name=collect2` 8308 if test -f "$collect2name" && \ 8309 strings "$collect2name" | grep resolve_lib_name >/dev/null 8310 then 8311 # We have reworked collect2 8312 : 8313 else 8314 # We have old collect2 8315 hardcode_direct=unsupported 8316 # It fails to find uninstalled libraries when the uninstalled 8317 # path is not listed in the libpath. Setting hardcode_minus_L 8318 # to unsupported forces relinking 8319 hardcode_minus_L=yes 8320 hardcode_libdir_flag_spec='-L$libdir' 8321 hardcode_libdir_separator= 8322 fi 8323 ;; 8324 esac 8325 shared_flag='-shared' 8326 if test "$aix_use_runtimelinking" = yes; then 8327 shared_flag="$shared_flag "'${wl}-G' 8328 fi 8329 else 8330 # not using gcc 8331 if test "$host_cpu" = ia64; then 8332 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8333 # chokes on -Wl,-G. The following line is correct: 8334 shared_flag='-G' 8335 else 8336 if test "$aix_use_runtimelinking" = yes; then 8337 shared_flag='${wl}-G' 8338 else 8339 shared_flag='${wl}-bM:SRE' 8340 fi 8341 fi 8342 fi 8343 8344 # It seems that -bexpall does not export symbols beginning with 8345 # underscore (_), so it is better to generate a list of symbols to export. 8346 always_export_symbols=yes 8347 if test "$aix_use_runtimelinking" = yes; then 8348 # Warning - without using the other runtime loading flags (-brtl), 8349 # -berok will link without error, but may produce a broken library. 8350 allow_undefined_flag='-berok' 8351 # Determine the default libpath from the value encoded in an empty executable. 8352 cat >conftest.$ac_ext <<_ACEOF 8353/* confdefs.h. */ 8354_ACEOF 8355cat confdefs.h >>conftest.$ac_ext 8356cat >>conftest.$ac_ext <<_ACEOF 8357/* end confdefs.h. */ 8358 8359int 8360main () 8361{ 8362 8363 ; 8364 return 0; 8365} 8366_ACEOF 8367rm -f conftest.$ac_objext conftest$ac_exeext 8368if { (ac_try="$ac_link" 8369case "(($ac_try" in 8370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8371 *) ac_try_echo=$ac_try;; 8372esac 8373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8374 (eval "$ac_link") 2>conftest.er1 8375 ac_status=$? 8376 grep -v '^ *+' conftest.er1 >conftest.err 8377 rm -f conftest.er1 8378 cat conftest.err >&5 8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8380 (exit $ac_status); } && { 8381 test -z "$ac_c_werror_flag" || 8382 test ! -s conftest.err 8383 } && test -s conftest$ac_exeext && 8384 $as_test_x conftest$ac_exeext; then 8385 8386lt_aix_libpath_sed=' 8387 /Import File Strings/,/^$/ { 8388 /^0/ { 8389 s/^0 *\(.*\)$/\1/ 8390 p 8391 } 8392 }' 8393aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8394# Check for a 64-bit object if we didn't find anything. 8395if test -z "$aix_libpath"; then 8396 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8397fi 8398else 8399 echo "$as_me: failed program was:" >&5 8400sed 's/^/| /' conftest.$ac_ext >&5 8401 8402 8403fi 8404 8405rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8406 conftest$ac_exeext conftest.$ac_ext 8407if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8408 8409 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8410 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" 8411 else 8412 if test "$host_cpu" = ia64; then 8413 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8414 allow_undefined_flag="-z nodefs" 8415 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" 8416 else 8417 # Determine the default libpath from the value encoded in an empty executable. 8418 cat >conftest.$ac_ext <<_ACEOF 8419/* confdefs.h. */ 8420_ACEOF 8421cat confdefs.h >>conftest.$ac_ext 8422cat >>conftest.$ac_ext <<_ACEOF 8423/* end confdefs.h. */ 8424 8425int 8426main () 8427{ 8428 8429 ; 8430 return 0; 8431} 8432_ACEOF 8433rm -f conftest.$ac_objext conftest$ac_exeext 8434if { (ac_try="$ac_link" 8435case "(($ac_try" in 8436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8437 *) ac_try_echo=$ac_try;; 8438esac 8439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8440 (eval "$ac_link") 2>conftest.er1 8441 ac_status=$? 8442 grep -v '^ *+' conftest.er1 >conftest.err 8443 rm -f conftest.er1 8444 cat conftest.err >&5 8445 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8446 (exit $ac_status); } && { 8447 test -z "$ac_c_werror_flag" || 8448 test ! -s conftest.err 8449 } && test -s conftest$ac_exeext && 8450 $as_test_x conftest$ac_exeext; then 8451 8452lt_aix_libpath_sed=' 8453 /Import File Strings/,/^$/ { 8454 /^0/ { 8455 s/^0 *\(.*\)$/\1/ 8456 p 8457 } 8458 }' 8459aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8460# Check for a 64-bit object if we didn't find anything. 8461if test -z "$aix_libpath"; then 8462 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8463fi 8464else 8465 echo "$as_me: failed program was:" >&5 8466sed 's/^/| /' conftest.$ac_ext >&5 8467 8468 8469fi 8470 8471rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8472 conftest$ac_exeext conftest.$ac_ext 8473if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8474 8475 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8476 # Warning - without using the other run time loading flags, 8477 # -berok will link without error, but may produce a broken library. 8478 no_undefined_flag=' ${wl}-bernotok' 8479 allow_undefined_flag=' ${wl}-berok' 8480 # Exported symbols can be pulled into shared objects from archives 8481 whole_archive_flag_spec='$convenience' 8482 archive_cmds_need_lc=yes 8483 # This is similar to how AIX traditionally builds its shared libraries. 8484 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' 8485 fi 8486 fi 8487 ;; 8488 8489 amigaos*) 8490 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)' 8491 hardcode_libdir_flag_spec='-L$libdir' 8492 hardcode_minus_L=yes 8493 # see comment about different semantics on the GNU ld section 8494 ld_shlibs=no 8495 ;; 8496 8497 bsdi[45]*) 8498 export_dynamic_flag_spec=-rdynamic 8499 ;; 8500 8501 cygwin* | mingw* | pw32*) 8502 # When not using gcc, we currently assume that we are using 8503 # Microsoft Visual C++. 8504 # hardcode_libdir_flag_spec is actually meaningless, as there is 8505 # no search path for DLLs. 8506 hardcode_libdir_flag_spec=' ' 8507 allow_undefined_flag=unsupported 8508 # Tell ltmain to make .lib files, not .a files. 8509 libext=lib 8510 # Tell ltmain to make .dll files, not .so files. 8511 shrext_cmds=".dll" 8512 # FIXME: Setting linknames here is a bad hack. 8513 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8514 # The linker will automatically build a .lib file if we build a DLL. 8515 old_archive_From_new_cmds='true' 8516 # FIXME: Should let the user specify the lib program. 8517 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8518 fix_srcfile_path='`cygpath -w "$srcfile"`' 8519 enable_shared_with_static_runtimes=yes 8520 ;; 8521 8522 darwin* | rhapsody*) 8523 case $host_os in 8524 rhapsody* | darwin1.[012]) 8525 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8526 ;; 8527 *) # Darwin 1.3 on 8528 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8529 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8530 else 8531 case ${MACOSX_DEPLOYMENT_TARGET} in 8532 10.[012]) 8533 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8534 ;; 8535 10.*) 8536 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8537 ;; 8538 esac 8539 fi 8540 ;; 8541 esac 8542 archive_cmds_need_lc=no 8543 hardcode_direct=no 8544 hardcode_automatic=yes 8545 hardcode_shlibpath_var=unsupported 8546 whole_archive_flag_spec='' 8547 link_all_deplibs=yes 8548 if test "$GCC" = yes ; then 8549 output_verbose_link_cmd='echo' 8550 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 8551 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8552 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8553 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}' 8554 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}' 8555 else 8556 case $cc_basename in 8557 xlc*) 8558 output_verbose_link_cmd='echo' 8559 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 8560 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8561 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8562 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8563 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}' 8564 ;; 8565 *) 8566 ld_shlibs=no 8567 ;; 8568 esac 8569 fi 8570 ;; 8571 8572 dgux*) 8573 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8574 hardcode_libdir_flag_spec='-L$libdir' 8575 hardcode_shlibpath_var=no 8576 ;; 8577 8578 freebsd1*) 8579 ld_shlibs=no 8580 ;; 8581 8582 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8583 # support. Future versions do this automatically, but an explicit c++rt0.o 8584 # does not break anything, and helps significantly (at the cost of a little 8585 # extra space). 8586 freebsd2.2*) 8587 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8588 hardcode_libdir_flag_spec='-R$libdir' 8589 hardcode_direct=yes 8590 hardcode_shlibpath_var=no 8591 ;; 8592 8593 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8594 freebsd2*) 8595 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8596 hardcode_direct=yes 8597 hardcode_minus_L=yes 8598 hardcode_shlibpath_var=no 8599 ;; 8600 8601 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8602 freebsd* | dragonfly*) 8603 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8604 hardcode_libdir_flag_spec='-R$libdir' 8605 hardcode_direct=yes 8606 hardcode_shlibpath_var=no 8607 ;; 8608 8609 hpux9*) 8610 if test "$GCC" = yes; then 8611 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' 8612 else 8613 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' 8614 fi 8615 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8616 hardcode_libdir_separator=: 8617 hardcode_direct=yes 8618 8619 # hardcode_minus_L: Not really in the search PATH, 8620 # but as the default location of the library. 8621 hardcode_minus_L=yes 8622 export_dynamic_flag_spec='${wl}-E' 8623 ;; 8624 8625 hpux10*) 8626 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8627 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8628 else 8629 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8630 fi 8631 if test "$with_gnu_ld" = no; then 8632 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8633 hardcode_libdir_separator=: 8634 8635 hardcode_direct=yes 8636 export_dynamic_flag_spec='${wl}-E' 8637 8638 # hardcode_minus_L: Not really in the search PATH, 8639 # but as the default location of the library. 8640 hardcode_minus_L=yes 8641 fi 8642 ;; 8643 8644 hpux11*) 8645 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8646 case $host_cpu in 8647 hppa*64*) 8648 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8649 ;; 8650 ia64*) 8651 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8652 ;; 8653 *) 8654 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8655 ;; 8656 esac 8657 else 8658 case $host_cpu in 8659 hppa*64*) 8660 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8661 ;; 8662 ia64*) 8663 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8664 ;; 8665 *) 8666 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8667 ;; 8668 esac 8669 fi 8670 if test "$with_gnu_ld" = no; then 8671 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8672 hardcode_libdir_separator=: 8673 8674 case $host_cpu in 8675 hppa*64*|ia64*) 8676 hardcode_libdir_flag_spec_ld='+b $libdir' 8677 hardcode_direct=no 8678 hardcode_shlibpath_var=no 8679 ;; 8680 *) 8681 hardcode_direct=yes 8682 export_dynamic_flag_spec='${wl}-E' 8683 8684 # hardcode_minus_L: Not really in the search PATH, 8685 # but as the default location of the library. 8686 hardcode_minus_L=yes 8687 ;; 8688 esac 8689 fi 8690 ;; 8691 8692 irix5* | irix6* | nonstopux*) 8693 if test "$GCC" = yes; then 8694 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' 8695 else 8696 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' 8697 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8698 fi 8699 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8700 hardcode_libdir_separator=: 8701 link_all_deplibs=yes 8702 ;; 8703 8704 netbsd*) 8705 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8706 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8707 else 8708 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8709 fi 8710 hardcode_libdir_flag_spec='-R$libdir' 8711 hardcode_direct=yes 8712 hardcode_shlibpath_var=no 8713 ;; 8714 8715 newsos6) 8716 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8717 hardcode_direct=yes 8718 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8719 hardcode_libdir_separator=: 8720 hardcode_shlibpath_var=no 8721 ;; 8722 8723 openbsd*) 8724 if test -f /usr/libexec/ld.so; then 8725 hardcode_direct=yes 8726 hardcode_shlibpath_var=no 8727 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8728 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8729 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8730 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8731 export_dynamic_flag_spec='${wl}-E' 8732 else 8733 case $host_os in 8734 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8735 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8736 hardcode_libdir_flag_spec='-R$libdir' 8737 ;; 8738 *) 8739 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8740 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8741 ;; 8742 esac 8743 fi 8744 else 8745 ld_shlibs=no 8746 fi 8747 ;; 8748 8749 os2*) 8750 hardcode_libdir_flag_spec='-L$libdir' 8751 hardcode_minus_L=yes 8752 allow_undefined_flag=unsupported 8753 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' 8754 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8755 ;; 8756 8757 osf3*) 8758 if test "$GCC" = yes; then 8759 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8760 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' 8761 else 8762 allow_undefined_flag=' -expect_unresolved \*' 8763 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' 8764 fi 8765 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8766 hardcode_libdir_separator=: 8767 ;; 8768 8769 osf4* | osf5*) # as osf3* with the addition of -msym flag 8770 if test "$GCC" = yes; then 8771 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8772 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' 8773 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8774 else 8775 allow_undefined_flag=' -expect_unresolved \*' 8776 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' 8777 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8778 $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' 8779 8780 # Both c and cxx compiler support -rpath directly 8781 hardcode_libdir_flag_spec='-rpath $libdir' 8782 fi 8783 hardcode_libdir_separator=: 8784 ;; 8785 8786 solaris*) 8787 no_undefined_flag=' -z text' 8788 if test "$GCC" = yes; then 8789 wlarc='${wl}' 8790 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8791 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8792 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8793 else 8794 wlarc='' 8795 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8796 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8797 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8798 fi 8799 hardcode_libdir_flag_spec='-R$libdir' 8800 hardcode_shlibpath_var=no 8801 case $host_os in 8802 solaris2.[0-5] | solaris2.[0-5].*) ;; 8803 *) 8804 # The compiler driver will combine and reorder linker options, 8805 # but understands `-z linker_flag'. GCC discards it without `$wl', 8806 # but is careful enough not to reorder. 8807 # Supported since Solaris 2.6 (maybe 2.5.1?) 8808 if test "$GCC" = yes; then 8809 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8810 else 8811 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8812 fi 8813 ;; 8814 esac 8815 link_all_deplibs=yes 8816 ;; 8817 8818 sunos4*) 8819 if test "x$host_vendor" = xsequent; then 8820 # Use $CC to link under sequent, because it throws in some extra .o 8821 # files that make .init and .fini sections work. 8822 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8823 else 8824 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8825 fi 8826 hardcode_libdir_flag_spec='-L$libdir' 8827 hardcode_direct=yes 8828 hardcode_minus_L=yes 8829 hardcode_shlibpath_var=no 8830 ;; 8831 8832 sysv4) 8833 case $host_vendor in 8834 sni) 8835 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8836 hardcode_direct=yes # is this really true??? 8837 ;; 8838 siemens) 8839 ## LD is ld it makes a PLAMLIB 8840 ## CC just makes a GrossModule. 8841 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8842 reload_cmds='$CC -r -o $output$reload_objs' 8843 hardcode_direct=no 8844 ;; 8845 motorola) 8846 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8847 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8848 ;; 8849 esac 8850 runpath_var='LD_RUN_PATH' 8851 hardcode_shlibpath_var=no 8852 ;; 8853 8854 sysv4.3*) 8855 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8856 hardcode_shlibpath_var=no 8857 export_dynamic_flag_spec='-Bexport' 8858 ;; 8859 8860 sysv4*MP*) 8861 if test -d /usr/nec; then 8862 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8863 hardcode_shlibpath_var=no 8864 runpath_var=LD_RUN_PATH 8865 hardcode_runpath_var=yes 8866 ld_shlibs=yes 8867 fi 8868 ;; 8869 8870 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 8871 no_undefined_flag='${wl}-z,text' 8872 archive_cmds_need_lc=no 8873 hardcode_shlibpath_var=no 8874 runpath_var='LD_RUN_PATH' 8875 8876 if test "$GCC" = yes; then 8877 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8878 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8879 else 8880 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8881 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8882 fi 8883 ;; 8884 8885 sysv5* | sco3.2v5* | sco5v6*) 8886 # Note: We can NOT use -z defs as we might desire, because we do not 8887 # link with -lc, and that would cause any symbols used from libc to 8888 # always be unresolved, which means just about no library would 8889 # ever link correctly. If we're not using GNU ld we use -z text 8890 # though, which does catch some bad symbols but isn't as heavy-handed 8891 # as -z defs. 8892 no_undefined_flag='${wl}-z,text' 8893 allow_undefined_flag='${wl}-z,nodefs' 8894 archive_cmds_need_lc=no 8895 hardcode_shlibpath_var=no 8896 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 8897 hardcode_libdir_separator=':' 8898 link_all_deplibs=yes 8899 export_dynamic_flag_spec='${wl}-Bexport' 8900 runpath_var='LD_RUN_PATH' 8901 8902 if test "$GCC" = yes; then 8903 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8904 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8905 else 8906 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8907 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8908 fi 8909 ;; 8910 8911 uts4*) 8912 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8913 hardcode_libdir_flag_spec='-L$libdir' 8914 hardcode_shlibpath_var=no 8915 ;; 8916 8917 *) 8918 ld_shlibs=no 8919 ;; 8920 esac 8921 fi 8922 8923{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 8924echo "${ECHO_T}$ld_shlibs" >&6; } 8925test "$ld_shlibs" = no && can_build_shared=no 8926 8927# 8928# Do we need to explicitly link libc? 8929# 8930case "x$archive_cmds_need_lc" in 8931x|xyes) 8932 # Assume -lc should be added 8933 archive_cmds_need_lc=yes 8934 8935 if test "$enable_shared" = yes && test "$GCC" = yes; then 8936 case $archive_cmds in 8937 *'~'*) 8938 # FIXME: we may have to deal with multi-command sequences. 8939 ;; 8940 '$CC '*) 8941 # Test whether the compiler implicitly links with -lc since on some 8942 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8943 # to ld, don't add -lc before -lgcc. 8944 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 8945echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 8946 $rm conftest* 8947 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8948 8949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8950 (eval $ac_compile) 2>&5 8951 ac_status=$? 8952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8953 (exit $ac_status); } 2>conftest.err; then 8954 soname=conftest 8955 lib=conftest 8956 libobjs=conftest.$ac_objext 8957 deplibs= 8958 wl=$lt_prog_compiler_wl 8959 pic_flag=$lt_prog_compiler_pic 8960 compiler_flags=-v 8961 linker_flags=-v 8962 verstring= 8963 output_objdir=. 8964 libname=conftest 8965 lt_save_allow_undefined_flag=$allow_undefined_flag 8966 allow_undefined_flag= 8967 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 8968 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 8969 ac_status=$? 8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8971 (exit $ac_status); } 8972 then 8973 archive_cmds_need_lc=no 8974 else 8975 archive_cmds_need_lc=yes 8976 fi 8977 allow_undefined_flag=$lt_save_allow_undefined_flag 8978 else 8979 cat conftest.err 1>&5 8980 fi 8981 $rm conftest* 8982 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 8983echo "${ECHO_T}$archive_cmds_need_lc" >&6; } 8984 ;; 8985 esac 8986 fi 8987 ;; 8988esac 8989 8990{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8991echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 8992library_names_spec= 8993libname_spec='lib$name' 8994soname_spec= 8995shrext_cmds=".so" 8996postinstall_cmds= 8997postuninstall_cmds= 8998finish_cmds= 8999finish_eval= 9000shlibpath_var= 9001shlibpath_overrides_runpath=unknown 9002version_type=none 9003dynamic_linker="$host_os ld.so" 9004sys_lib_dlsearch_path_spec="/lib /usr/lib" 9005 9006if test "$GCC" = yes; then 9007 case $host_os in 9008 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9009 *) lt_awk_arg="/^libraries:/" ;; 9010 esac 9011 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9012 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then 9013 # if the path contains ";" then we assume it to be the separator 9014 # otherwise default to the standard path separator (i.e. ":") - it is 9015 # assumed that no part of a normal pathname contains ";" but that should 9016 # okay in the real world where ";" in dirpaths is itself problematic. 9017 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9018 else 9019 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9020 fi 9021 # Ok, now we have the path, separated by spaces, we can step through it 9022 # and add multilib dir if necessary. 9023 lt_tmp_lt_search_path_spec= 9024 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9025 for lt_sys_path in $lt_search_path_spec; do 9026 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9027 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9028 else 9029 test -d "$lt_sys_path" && \ 9030 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9031 fi 9032 done 9033 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' 9034BEGIN {RS=" "; FS="/|\n";} { 9035 lt_foo=""; 9036 lt_count=0; 9037 for (lt_i = NF; lt_i > 0; lt_i--) { 9038 if ($lt_i != "" && $lt_i != ".") { 9039 if ($lt_i == "..") { 9040 lt_count++; 9041 } else { 9042 if (lt_count == 0) { 9043 lt_foo="/" $lt_i lt_foo; 9044 } else { 9045 lt_count--; 9046 } 9047 } 9048 } 9049 } 9050 if (lt_foo != "") { lt_freq[lt_foo]++; } 9051 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9052}'` 9053 sys_lib_search_path_spec=`echo $lt_search_path_spec` 9054else 9055 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9056fi 9057need_lib_prefix=unknown 9058hardcode_into_libs=no 9059 9060# when you set need_version to no, make sure it does not cause -set_version 9061# flags to be left without arguments 9062need_version=unknown 9063 9064case $host_os in 9065aix3*) 9066 version_type=linux 9067 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9068 shlibpath_var=LIBPATH 9069 9070 # AIX 3 has no versioning support, so we append a major version to the name. 9071 soname_spec='${libname}${release}${shared_ext}$major' 9072 ;; 9073 9074aix4* | aix5*) 9075 version_type=linux 9076 need_lib_prefix=no 9077 need_version=no 9078 hardcode_into_libs=yes 9079 if test "$host_cpu" = ia64; then 9080 # AIX 5 supports IA64 9081 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9082 shlibpath_var=LD_LIBRARY_PATH 9083 else 9084 # With GCC up to 2.95.x, collect2 would create an import file 9085 # for dependence libraries. The import file would start with 9086 # the line `#! .'. This would cause the generated library to 9087 # depend on `.', always an invalid library. This was fixed in 9088 # development snapshots of GCC prior to 3.0. 9089 case $host_os in 9090 aix4 | aix4.[01] | aix4.[01].*) 9091 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9092 echo ' yes ' 9093 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 9094 : 9095 else 9096 can_build_shared=no 9097 fi 9098 ;; 9099 esac 9100 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9101 # soname into executable. Probably we can add versioning support to 9102 # collect2, so additional links can be useful in future. 9103 if test "$aix_use_runtimelinking" = yes; then 9104 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9105 # instead of lib<name>.a to let people know that these are not 9106 # typical AIX shared libraries. 9107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9108 else 9109 # We preserve .a as extension for shared libraries through AIX4.2 9110 # and later when we are not doing run time linking. 9111 library_names_spec='${libname}${release}.a $libname.a' 9112 soname_spec='${libname}${release}${shared_ext}$major' 9113 fi 9114 shlibpath_var=LIBPATH 9115 fi 9116 ;; 9117 9118amigaos*) 9119 library_names_spec='$libname.ixlibrary $libname.a' 9120 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9121 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' 9122 ;; 9123 9124beos*) 9125 library_names_spec='${libname}${shared_ext}' 9126 dynamic_linker="$host_os ld.so" 9127 shlibpath_var=LIBRARY_PATH 9128 ;; 9129 9130bsdi[45]*) 9131 version_type=linux 9132 need_version=no 9133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9134 soname_spec='${libname}${release}${shared_ext}$major' 9135 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9136 shlibpath_var=LD_LIBRARY_PATH 9137 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9138 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9139 # the default ld.so.conf also contains /usr/contrib/lib and 9140 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9141 # libtool to hard-code these into programs 9142 ;; 9143 9144cygwin* | mingw* | pw32*) 9145 version_type=windows 9146 shrext_cmds=".dll" 9147 need_version=no 9148 need_lib_prefix=no 9149 9150 case $GCC,$host_os in 9151 yes,cygwin* | yes,mingw* | yes,pw32*) 9152 library_names_spec='$libname.dll.a' 9153 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9154 postinstall_cmds='base_file=`basename \${file}`~ 9155 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 9156 dldir=$destdir/`dirname \$dlpath`~ 9157 test -d \$dldir || mkdir -p \$dldir~ 9158 $install_prog $dir/$dlname \$dldir/$dlname~ 9159 chmod a+x \$dldir/$dlname' 9160 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9161 dlpath=$dir/\$dldll~ 9162 $rm \$dlpath' 9163 shlibpath_overrides_runpath=yes 9164 9165 case $host_os in 9166 cygwin*) 9167 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9168 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9169 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9170 ;; 9171 mingw*) 9172 # MinGW DLLs use traditional 'lib' prefix 9173 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9174 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9175 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 9176 # It is most probably a Windows format PATH printed by 9177 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9178 # path with ; separators, and with drive letters. We can handle the 9179 # drive letters (cygwin fileutils understands them), so leave them, 9180 # especially as we might pass files found there to a mingw objdump, 9181 # which wouldn't understand a cygwinified path. Ahh. 9182 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9183 else 9184 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9185 fi 9186 ;; 9187 pw32*) 9188 # pw32 DLLs use 'pw' prefix rather than 'lib' 9189 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9190 ;; 9191 esac 9192 ;; 9193 9194 *) 9195 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9196 ;; 9197 esac 9198 dynamic_linker='Win32 ld.exe' 9199 # FIXME: first we should search . and the directory the executable is in 9200 shlibpath_var=PATH 9201 ;; 9202 9203darwin* | rhapsody*) 9204 dynamic_linker="$host_os dyld" 9205 version_type=darwin 9206 need_lib_prefix=no 9207 need_version=no 9208 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9209 soname_spec='${libname}${release}${major}$shared_ext' 9210 shlibpath_overrides_runpath=yes 9211 shlibpath_var=DYLD_LIBRARY_PATH 9212 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9213 9214 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9215 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9216 ;; 9217 9218dgux*) 9219 version_type=linux 9220 need_lib_prefix=no 9221 need_version=no 9222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9223 soname_spec='${libname}${release}${shared_ext}$major' 9224 shlibpath_var=LD_LIBRARY_PATH 9225 ;; 9226 9227freebsd1*) 9228 dynamic_linker=no 9229 ;; 9230 9231freebsd* | dragonfly*) 9232 # DragonFly does not have aout. When/if they implement a new 9233 # versioning mechanism, adjust this. 9234 if test -x /usr/bin/objformat; then 9235 objformat=`/usr/bin/objformat` 9236 else 9237 case $host_os in 9238 freebsd[123]*) objformat=aout ;; 9239 *) objformat=elf ;; 9240 esac 9241 fi 9242 version_type=freebsd-$objformat 9243 case $version_type in 9244 freebsd-elf*) 9245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9246 need_version=no 9247 need_lib_prefix=no 9248 ;; 9249 freebsd-*) 9250 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9251 need_version=yes 9252 ;; 9253 esac 9254 shlibpath_var=LD_LIBRARY_PATH 9255 case $host_os in 9256 freebsd2*) 9257 shlibpath_overrides_runpath=yes 9258 ;; 9259 freebsd3.[01]* | freebsdelf3.[01]*) 9260 shlibpath_overrides_runpath=yes 9261 hardcode_into_libs=yes 9262 ;; 9263 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9264 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9265 shlibpath_overrides_runpath=no 9266 hardcode_into_libs=yes 9267 ;; 9268 *) # from 4.6 on, and DragonFly 9269 shlibpath_overrides_runpath=yes 9270 hardcode_into_libs=yes 9271 ;; 9272 esac 9273 ;; 9274 9275gnu*) 9276 version_type=linux 9277 need_lib_prefix=no 9278 need_version=no 9279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9280 soname_spec='${libname}${release}${shared_ext}$major' 9281 shlibpath_var=LD_LIBRARY_PATH 9282 hardcode_into_libs=yes 9283 ;; 9284 9285hpux9* | hpux10* | hpux11*) 9286 # Give a soname corresponding to the major version so that dld.sl refuses to 9287 # link against other versions. 9288 version_type=sunos 9289 need_lib_prefix=no 9290 need_version=no 9291 case $host_cpu in 9292 ia64*) 9293 shrext_cmds='.so' 9294 hardcode_into_libs=yes 9295 dynamic_linker="$host_os dld.so" 9296 shlibpath_var=LD_LIBRARY_PATH 9297 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9299 soname_spec='${libname}${release}${shared_ext}$major' 9300 if test "X$HPUX_IA64_MODE" = X32; then 9301 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9302 else 9303 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9304 fi 9305 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9306 ;; 9307 hppa*64*) 9308 shrext_cmds='.sl' 9309 hardcode_into_libs=yes 9310 dynamic_linker="$host_os dld.sl" 9311 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9312 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9314 soname_spec='${libname}${release}${shared_ext}$major' 9315 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9316 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9317 ;; 9318 *) 9319 shrext_cmds='.sl' 9320 dynamic_linker="$host_os dld.sl" 9321 shlibpath_var=SHLIB_PATH 9322 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9324 soname_spec='${libname}${release}${shared_ext}$major' 9325 ;; 9326 esac 9327 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9328 postinstall_cmds='chmod 555 $lib' 9329 ;; 9330 9331interix[3-9]*) 9332 version_type=linux 9333 need_lib_prefix=no 9334 need_version=no 9335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9336 soname_spec='${libname}${release}${shared_ext}$major' 9337 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9338 shlibpath_var=LD_LIBRARY_PATH 9339 shlibpath_overrides_runpath=no 9340 hardcode_into_libs=yes 9341 ;; 9342 9343irix5* | irix6* | nonstopux*) 9344 case $host_os in 9345 nonstopux*) version_type=nonstopux ;; 9346 *) 9347 if test "$lt_cv_prog_gnu_ld" = yes; then 9348 version_type=linux 9349 else 9350 version_type=irix 9351 fi ;; 9352 esac 9353 need_lib_prefix=no 9354 need_version=no 9355 soname_spec='${libname}${release}${shared_ext}$major' 9356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9357 case $host_os in 9358 irix5* | nonstopux*) 9359 libsuff= shlibsuff= 9360 ;; 9361 *) 9362 case $LD in # libtool.m4 will add one of these switches to LD 9363 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9364 libsuff= shlibsuff= libmagic=32-bit;; 9365 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9366 libsuff=32 shlibsuff=N32 libmagic=N32;; 9367 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9368 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9369 *) libsuff= shlibsuff= libmagic=never-match;; 9370 esac 9371 ;; 9372 esac 9373 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9374 shlibpath_overrides_runpath=no 9375 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9376 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9377 hardcode_into_libs=yes 9378 ;; 9379 9380# No shared lib support for Linux oldld, aout, or coff. 9381linux*oldld* | linux*aout* | linux*coff*) 9382 dynamic_linker=no 9383 ;; 9384 9385# This must be Linux ELF. 9386linux* | k*bsd*-gnu) 9387 version_type=linux 9388 need_lib_prefix=no 9389 need_version=no 9390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9391 soname_spec='${libname}${release}${shared_ext}$major' 9392 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9393 shlibpath_var=LD_LIBRARY_PATH 9394 shlibpath_overrides_runpath=no 9395 # This implies no fast_install, which is unacceptable. 9396 # Some rework will be needed to allow for fast_install 9397 # before this can be enabled. 9398 hardcode_into_libs=yes 9399 9400 # Append ld.so.conf contents to the search path 9401 if test -f /etc/ld.so.conf; then 9402 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/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 9403 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9404 fi 9405 9406 # We used to test for /lib/ld.so.1 and disable shared libraries on 9407 # powerpc, because MkLinux only supported shared libraries with the 9408 # GNU dynamic linker. Since this was broken with cross compilers, 9409 # most powerpc-linux boxes support dynamic linking these days and 9410 # people can always --disable-shared, the test was removed, and we 9411 # assume the GNU/Linux dynamic linker is in use. 9412 dynamic_linker='GNU/Linux ld.so' 9413 ;; 9414 9415netbsd*) 9416 version_type=sunos 9417 need_lib_prefix=no 9418 need_version=no 9419 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9421 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9422 dynamic_linker='NetBSD (a.out) ld.so' 9423 else 9424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9425 soname_spec='${libname}${release}${shared_ext}$major' 9426 dynamic_linker='NetBSD ld.elf_so' 9427 fi 9428 shlibpath_var=LD_LIBRARY_PATH 9429 shlibpath_overrides_runpath=yes 9430 hardcode_into_libs=yes 9431 ;; 9432 9433newsos6) 9434 version_type=linux 9435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9436 shlibpath_var=LD_LIBRARY_PATH 9437 shlibpath_overrides_runpath=yes 9438 ;; 9439 9440nto-qnx*) 9441 version_type=linux 9442 need_lib_prefix=no 9443 need_version=no 9444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9445 soname_spec='${libname}${release}${shared_ext}$major' 9446 shlibpath_var=LD_LIBRARY_PATH 9447 shlibpath_overrides_runpath=yes 9448 ;; 9449 9450openbsd*) 9451 version_type=sunos 9452 sys_lib_dlsearch_path_spec="/usr/lib" 9453 need_lib_prefix=no 9454 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9455 case $host_os in 9456 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9457 *) need_version=no ;; 9458 esac 9459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9460 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9461 shlibpath_var=LD_LIBRARY_PATH 9462 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9463 case $host_os in 9464 openbsd2.[89] | openbsd2.[89].*) 9465 shlibpath_overrides_runpath=no 9466 ;; 9467 *) 9468 shlibpath_overrides_runpath=yes 9469 ;; 9470 esac 9471 else 9472 shlibpath_overrides_runpath=yes 9473 fi 9474 ;; 9475 9476os2*) 9477 libname_spec='$name' 9478 shrext_cmds=".dll" 9479 need_lib_prefix=no 9480 library_names_spec='$libname${shared_ext} $libname.a' 9481 dynamic_linker='OS/2 ld.exe' 9482 shlibpath_var=LIBPATH 9483 ;; 9484 9485osf3* | osf4* | osf5*) 9486 version_type=osf 9487 need_lib_prefix=no 9488 need_version=no 9489 soname_spec='${libname}${release}${shared_ext}$major' 9490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9491 shlibpath_var=LD_LIBRARY_PATH 9492 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9493 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9494 ;; 9495 9496rdos*) 9497 dynamic_linker=no 9498 ;; 9499 9500solaris*) 9501 version_type=linux 9502 need_lib_prefix=no 9503 need_version=no 9504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9505 soname_spec='${libname}${release}${shared_ext}$major' 9506 shlibpath_var=LD_LIBRARY_PATH 9507 shlibpath_overrides_runpath=yes 9508 hardcode_into_libs=yes 9509 # ldd complains unless libraries are executable 9510 postinstall_cmds='chmod +x $lib' 9511 ;; 9512 9513sunos4*) 9514 version_type=sunos 9515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9516 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9517 shlibpath_var=LD_LIBRARY_PATH 9518 shlibpath_overrides_runpath=yes 9519 if test "$with_gnu_ld" = yes; then 9520 need_lib_prefix=no 9521 fi 9522 need_version=yes 9523 ;; 9524 9525sysv4 | sysv4.3*) 9526 version_type=linux 9527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9528 soname_spec='${libname}${release}${shared_ext}$major' 9529 shlibpath_var=LD_LIBRARY_PATH 9530 case $host_vendor in 9531 sni) 9532 shlibpath_overrides_runpath=no 9533 need_lib_prefix=no 9534 export_dynamic_flag_spec='${wl}-Blargedynsym' 9535 runpath_var=LD_RUN_PATH 9536 ;; 9537 siemens) 9538 need_lib_prefix=no 9539 ;; 9540 motorola) 9541 need_lib_prefix=no 9542 need_version=no 9543 shlibpath_overrides_runpath=no 9544 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9545 ;; 9546 esac 9547 ;; 9548 9549sysv4*MP*) 9550 if test -d /usr/nec ;then 9551 version_type=linux 9552 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9553 soname_spec='$libname${shared_ext}.$major' 9554 shlibpath_var=LD_LIBRARY_PATH 9555 fi 9556 ;; 9557 9558sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9559 version_type=freebsd-elf 9560 need_lib_prefix=no 9561 need_version=no 9562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9563 soname_spec='${libname}${release}${shared_ext}$major' 9564 shlibpath_var=LD_LIBRARY_PATH 9565 hardcode_into_libs=yes 9566 if test "$with_gnu_ld" = yes; then 9567 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9568 shlibpath_overrides_runpath=no 9569 else 9570 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9571 shlibpath_overrides_runpath=yes 9572 case $host_os in 9573 sco3.2v5*) 9574 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9575 ;; 9576 esac 9577 fi 9578 sys_lib_dlsearch_path_spec='/usr/lib' 9579 ;; 9580 9581uts4*) 9582 version_type=linux 9583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9584 soname_spec='${libname}${release}${shared_ext}$major' 9585 shlibpath_var=LD_LIBRARY_PATH 9586 ;; 9587 9588*) 9589 dynamic_linker=no 9590 ;; 9591esac 9592{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9593echo "${ECHO_T}$dynamic_linker" >&6; } 9594test "$dynamic_linker" = no && can_build_shared=no 9595 9596variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9597if test "$GCC" = yes; then 9598 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9599fi 9600 9601{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9602echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 9603hardcode_action= 9604if test -n "$hardcode_libdir_flag_spec" || \ 9605 test -n "$runpath_var" || \ 9606 test "X$hardcode_automatic" = "Xyes" ; then 9607 9608 # We can hardcode non-existant directories. 9609 if test "$hardcode_direct" != no && 9610 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9611 # have to relink, otherwise we might link with an installed library 9612 # when we should be linking with a yet-to-be-installed one 9613 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9614 test "$hardcode_minus_L" != no; then 9615 # Linking always hardcodes the temporary library directory. 9616 hardcode_action=relink 9617 else 9618 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9619 hardcode_action=immediate 9620 fi 9621else 9622 # We cannot hardcode anything, or else we can only hardcode existing 9623 # directories. 9624 hardcode_action=unsupported 9625fi 9626{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 9627echo "${ECHO_T}$hardcode_action" >&6; } 9628 9629if test "$hardcode_action" = relink; then 9630 # Fast installation is not supported 9631 enable_fast_install=no 9632elif test "$shlibpath_overrides_runpath" = yes || 9633 test "$enable_shared" = no; then 9634 # Fast installation is not necessary 9635 enable_fast_install=needless 9636fi 9637 9638striplib= 9639old_striplib= 9640{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9641echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } 9642if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9643 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9644 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9645 { echo "$as_me:$LINENO: result: yes" >&5 9646echo "${ECHO_T}yes" >&6; } 9647else 9648# FIXME - insert some real tests, host_os isn't really good enough 9649 case $host_os in 9650 darwin*) 9651 if test -n "$STRIP" ; then 9652 striplib="$STRIP -x" 9653 old_striplib="$STRIP -S" 9654 { echo "$as_me:$LINENO: result: yes" >&5 9655echo "${ECHO_T}yes" >&6; } 9656 else 9657 { echo "$as_me:$LINENO: result: no" >&5 9658echo "${ECHO_T}no" >&6; } 9659fi 9660 ;; 9661 *) 9662 { echo "$as_me:$LINENO: result: no" >&5 9663echo "${ECHO_T}no" >&6; } 9664 ;; 9665 esac 9666fi 9667 9668if test "x$enable_dlopen" != xyes; then 9669 enable_dlopen=unknown 9670 enable_dlopen_self=unknown 9671 enable_dlopen_self_static=unknown 9672else 9673 lt_cv_dlopen=no 9674 lt_cv_dlopen_libs= 9675 9676 case $host_os in 9677 beos*) 9678 lt_cv_dlopen="load_add_on" 9679 lt_cv_dlopen_libs= 9680 lt_cv_dlopen_self=yes 9681 ;; 9682 9683 mingw* | pw32*) 9684 lt_cv_dlopen="LoadLibrary" 9685 lt_cv_dlopen_libs= 9686 ;; 9687 9688 cygwin*) 9689 lt_cv_dlopen="dlopen" 9690 lt_cv_dlopen_libs= 9691 ;; 9692 9693 darwin*) 9694 # if libdl is installed we need to link against it 9695 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9696echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9697if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9698 echo $ECHO_N "(cached) $ECHO_C" >&6 9699else 9700 ac_check_lib_save_LIBS=$LIBS 9701LIBS="-ldl $LIBS" 9702cat >conftest.$ac_ext <<_ACEOF 9703/* confdefs.h. */ 9704_ACEOF 9705cat confdefs.h >>conftest.$ac_ext 9706cat >>conftest.$ac_ext <<_ACEOF 9707/* end confdefs.h. */ 9708 9709/* Override any GCC internal prototype to avoid an error. 9710 Use char because int might match the return type of a GCC 9711 builtin and then its argument prototype would still apply. */ 9712#ifdef __cplusplus 9713extern "C" 9714#endif 9715char dlopen (); 9716int 9717main () 9718{ 9719return dlopen (); 9720 ; 9721 return 0; 9722} 9723_ACEOF 9724rm -f conftest.$ac_objext conftest$ac_exeext 9725if { (ac_try="$ac_link" 9726case "(($ac_try" in 9727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9728 *) ac_try_echo=$ac_try;; 9729esac 9730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9731 (eval "$ac_link") 2>conftest.er1 9732 ac_status=$? 9733 grep -v '^ *+' conftest.er1 >conftest.err 9734 rm -f conftest.er1 9735 cat conftest.err >&5 9736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9737 (exit $ac_status); } && { 9738 test -z "$ac_c_werror_flag" || 9739 test ! -s conftest.err 9740 } && test -s conftest$ac_exeext && 9741 $as_test_x conftest$ac_exeext; then 9742 ac_cv_lib_dl_dlopen=yes 9743else 9744 echo "$as_me: failed program was:" >&5 9745sed 's/^/| /' conftest.$ac_ext >&5 9746 9747 ac_cv_lib_dl_dlopen=no 9748fi 9749 9750rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9751 conftest$ac_exeext conftest.$ac_ext 9752LIBS=$ac_check_lib_save_LIBS 9753fi 9754{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9755echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9756if test $ac_cv_lib_dl_dlopen = yes; then 9757 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9758else 9759 9760 lt_cv_dlopen="dyld" 9761 lt_cv_dlopen_libs= 9762 lt_cv_dlopen_self=yes 9763 9764fi 9765 9766 ;; 9767 9768 *) 9769 { echo "$as_me:$LINENO: checking for shl_load" >&5 9770echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 9771if test "${ac_cv_func_shl_load+set}" = set; then 9772 echo $ECHO_N "(cached) $ECHO_C" >&6 9773else 9774 cat >conftest.$ac_ext <<_ACEOF 9775/* confdefs.h. */ 9776_ACEOF 9777cat confdefs.h >>conftest.$ac_ext 9778cat >>conftest.$ac_ext <<_ACEOF 9779/* end confdefs.h. */ 9780/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9781 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9782#define shl_load innocuous_shl_load 9783 9784/* System header to define __stub macros and hopefully few prototypes, 9785 which can conflict with char shl_load (); below. 9786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9787 <limits.h> exists even on freestanding compilers. */ 9788 9789#ifdef __STDC__ 9790# include <limits.h> 9791#else 9792# include <assert.h> 9793#endif 9794 9795#undef shl_load 9796 9797/* Override any GCC internal prototype to avoid an error. 9798 Use char because int might match the return type of a GCC 9799 builtin and then its argument prototype would still apply. */ 9800#ifdef __cplusplus 9801extern "C" 9802#endif 9803char shl_load (); 9804/* The GNU C library defines this for functions which it implements 9805 to always fail with ENOSYS. Some functions are actually named 9806 something starting with __ and the normal name is an alias. */ 9807#if defined __stub_shl_load || defined __stub___shl_load 9808choke me 9809#endif 9810 9811int 9812main () 9813{ 9814return shl_load (); 9815 ; 9816 return 0; 9817} 9818_ACEOF 9819rm -f conftest.$ac_objext conftest$ac_exeext 9820if { (ac_try="$ac_link" 9821case "(($ac_try" in 9822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9823 *) ac_try_echo=$ac_try;; 9824esac 9825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9826 (eval "$ac_link") 2>conftest.er1 9827 ac_status=$? 9828 grep -v '^ *+' conftest.er1 >conftest.err 9829 rm -f conftest.er1 9830 cat conftest.err >&5 9831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9832 (exit $ac_status); } && { 9833 test -z "$ac_c_werror_flag" || 9834 test ! -s conftest.err 9835 } && test -s conftest$ac_exeext && 9836 $as_test_x conftest$ac_exeext; then 9837 ac_cv_func_shl_load=yes 9838else 9839 echo "$as_me: failed program was:" >&5 9840sed 's/^/| /' conftest.$ac_ext >&5 9841 9842 ac_cv_func_shl_load=no 9843fi 9844 9845rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9846 conftest$ac_exeext conftest.$ac_ext 9847fi 9848{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9849echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 9850if test $ac_cv_func_shl_load = yes; then 9851 lt_cv_dlopen="shl_load" 9852else 9853 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9854echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 9855if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9856 echo $ECHO_N "(cached) $ECHO_C" >&6 9857else 9858 ac_check_lib_save_LIBS=$LIBS 9859LIBS="-ldld $LIBS" 9860cat >conftest.$ac_ext <<_ACEOF 9861/* confdefs.h. */ 9862_ACEOF 9863cat confdefs.h >>conftest.$ac_ext 9864cat >>conftest.$ac_ext <<_ACEOF 9865/* end confdefs.h. */ 9866 9867/* Override any GCC internal prototype to avoid an error. 9868 Use char because int might match the return type of a GCC 9869 builtin and then its argument prototype would still apply. */ 9870#ifdef __cplusplus 9871extern "C" 9872#endif 9873char shl_load (); 9874int 9875main () 9876{ 9877return shl_load (); 9878 ; 9879 return 0; 9880} 9881_ACEOF 9882rm -f conftest.$ac_objext conftest$ac_exeext 9883if { (ac_try="$ac_link" 9884case "(($ac_try" in 9885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9886 *) ac_try_echo=$ac_try;; 9887esac 9888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9889 (eval "$ac_link") 2>conftest.er1 9890 ac_status=$? 9891 grep -v '^ *+' conftest.er1 >conftest.err 9892 rm -f conftest.er1 9893 cat conftest.err >&5 9894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9895 (exit $ac_status); } && { 9896 test -z "$ac_c_werror_flag" || 9897 test ! -s conftest.err 9898 } && test -s conftest$ac_exeext && 9899 $as_test_x conftest$ac_exeext; then 9900 ac_cv_lib_dld_shl_load=yes 9901else 9902 echo "$as_me: failed program was:" >&5 9903sed 's/^/| /' conftest.$ac_ext >&5 9904 9905 ac_cv_lib_dld_shl_load=no 9906fi 9907 9908rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9909 conftest$ac_exeext conftest.$ac_ext 9910LIBS=$ac_check_lib_save_LIBS 9911fi 9912{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9913echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 9914if test $ac_cv_lib_dld_shl_load = yes; then 9915 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 9916else 9917 { echo "$as_me:$LINENO: checking for dlopen" >&5 9918echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 9919if test "${ac_cv_func_dlopen+set}" = set; then 9920 echo $ECHO_N "(cached) $ECHO_C" >&6 9921else 9922 cat >conftest.$ac_ext <<_ACEOF 9923/* confdefs.h. */ 9924_ACEOF 9925cat confdefs.h >>conftest.$ac_ext 9926cat >>conftest.$ac_ext <<_ACEOF 9927/* end confdefs.h. */ 9928/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 9929 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9930#define dlopen innocuous_dlopen 9931 9932/* System header to define __stub macros and hopefully few prototypes, 9933 which can conflict with char dlopen (); below. 9934 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9935 <limits.h> exists even on freestanding compilers. */ 9936 9937#ifdef __STDC__ 9938# include <limits.h> 9939#else 9940# include <assert.h> 9941#endif 9942 9943#undef dlopen 9944 9945/* Override any GCC internal prototype to avoid an error. 9946 Use char because int might match the return type of a GCC 9947 builtin and then its argument prototype would still apply. */ 9948#ifdef __cplusplus 9949extern "C" 9950#endif 9951char dlopen (); 9952/* The GNU C library defines this for functions which it implements 9953 to always fail with ENOSYS. Some functions are actually named 9954 something starting with __ and the normal name is an alias. */ 9955#if defined __stub_dlopen || defined __stub___dlopen 9956choke me 9957#endif 9958 9959int 9960main () 9961{ 9962return dlopen (); 9963 ; 9964 return 0; 9965} 9966_ACEOF 9967rm -f conftest.$ac_objext conftest$ac_exeext 9968if { (ac_try="$ac_link" 9969case "(($ac_try" in 9970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9971 *) ac_try_echo=$ac_try;; 9972esac 9973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9974 (eval "$ac_link") 2>conftest.er1 9975 ac_status=$? 9976 grep -v '^ *+' conftest.er1 >conftest.err 9977 rm -f conftest.er1 9978 cat conftest.err >&5 9979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9980 (exit $ac_status); } && { 9981 test -z "$ac_c_werror_flag" || 9982 test ! -s conftest.err 9983 } && test -s conftest$ac_exeext && 9984 $as_test_x conftest$ac_exeext; then 9985 ac_cv_func_dlopen=yes 9986else 9987 echo "$as_me: failed program was:" >&5 9988sed 's/^/| /' conftest.$ac_ext >&5 9989 9990 ac_cv_func_dlopen=no 9991fi 9992 9993rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9994 conftest$ac_exeext conftest.$ac_ext 9995fi 9996{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 9997echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 9998if test $ac_cv_func_dlopen = yes; then 9999 lt_cv_dlopen="dlopen" 10000else 10001 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10002echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 10003if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10004 echo $ECHO_N "(cached) $ECHO_C" >&6 10005else 10006 ac_check_lib_save_LIBS=$LIBS 10007LIBS="-ldl $LIBS" 10008cat >conftest.$ac_ext <<_ACEOF 10009/* confdefs.h. */ 10010_ACEOF 10011cat confdefs.h >>conftest.$ac_ext 10012cat >>conftest.$ac_ext <<_ACEOF 10013/* end confdefs.h. */ 10014 10015/* Override any GCC internal prototype to avoid an error. 10016 Use char because int might match the return type of a GCC 10017 builtin and then its argument prototype would still apply. */ 10018#ifdef __cplusplus 10019extern "C" 10020#endif 10021char dlopen (); 10022int 10023main () 10024{ 10025return dlopen (); 10026 ; 10027 return 0; 10028} 10029_ACEOF 10030rm -f conftest.$ac_objext conftest$ac_exeext 10031if { (ac_try="$ac_link" 10032case "(($ac_try" in 10033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10034 *) ac_try_echo=$ac_try;; 10035esac 10036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10037 (eval "$ac_link") 2>conftest.er1 10038 ac_status=$? 10039 grep -v '^ *+' conftest.er1 >conftest.err 10040 rm -f conftest.er1 10041 cat conftest.err >&5 10042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10043 (exit $ac_status); } && { 10044 test -z "$ac_c_werror_flag" || 10045 test ! -s conftest.err 10046 } && test -s conftest$ac_exeext && 10047 $as_test_x conftest$ac_exeext; then 10048 ac_cv_lib_dl_dlopen=yes 10049else 10050 echo "$as_me: failed program was:" >&5 10051sed 's/^/| /' conftest.$ac_ext >&5 10052 10053 ac_cv_lib_dl_dlopen=no 10054fi 10055 10056rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10057 conftest$ac_exeext conftest.$ac_ext 10058LIBS=$ac_check_lib_save_LIBS 10059fi 10060{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10061echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 10062if test $ac_cv_lib_dl_dlopen = yes; then 10063 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10064else 10065 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10066echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 10067if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10068 echo $ECHO_N "(cached) $ECHO_C" >&6 10069else 10070 ac_check_lib_save_LIBS=$LIBS 10071LIBS="-lsvld $LIBS" 10072cat >conftest.$ac_ext <<_ACEOF 10073/* confdefs.h. */ 10074_ACEOF 10075cat confdefs.h >>conftest.$ac_ext 10076cat >>conftest.$ac_ext <<_ACEOF 10077/* end confdefs.h. */ 10078 10079/* Override any GCC internal prototype to avoid an error. 10080 Use char because int might match the return type of a GCC 10081 builtin and then its argument prototype would still apply. */ 10082#ifdef __cplusplus 10083extern "C" 10084#endif 10085char dlopen (); 10086int 10087main () 10088{ 10089return dlopen (); 10090 ; 10091 return 0; 10092} 10093_ACEOF 10094rm -f conftest.$ac_objext conftest$ac_exeext 10095if { (ac_try="$ac_link" 10096case "(($ac_try" in 10097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10098 *) ac_try_echo=$ac_try;; 10099esac 10100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10101 (eval "$ac_link") 2>conftest.er1 10102 ac_status=$? 10103 grep -v '^ *+' conftest.er1 >conftest.err 10104 rm -f conftest.er1 10105 cat conftest.err >&5 10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10107 (exit $ac_status); } && { 10108 test -z "$ac_c_werror_flag" || 10109 test ! -s conftest.err 10110 } && test -s conftest$ac_exeext && 10111 $as_test_x conftest$ac_exeext; then 10112 ac_cv_lib_svld_dlopen=yes 10113else 10114 echo "$as_me: failed program was:" >&5 10115sed 's/^/| /' conftest.$ac_ext >&5 10116 10117 ac_cv_lib_svld_dlopen=no 10118fi 10119 10120rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10121 conftest$ac_exeext conftest.$ac_ext 10122LIBS=$ac_check_lib_save_LIBS 10123fi 10124{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10125echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 10126if test $ac_cv_lib_svld_dlopen = yes; then 10127 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10128else 10129 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10130echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 10131if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10132 echo $ECHO_N "(cached) $ECHO_C" >&6 10133else 10134 ac_check_lib_save_LIBS=$LIBS 10135LIBS="-ldld $LIBS" 10136cat >conftest.$ac_ext <<_ACEOF 10137/* confdefs.h. */ 10138_ACEOF 10139cat confdefs.h >>conftest.$ac_ext 10140cat >>conftest.$ac_ext <<_ACEOF 10141/* end confdefs.h. */ 10142 10143/* Override any GCC internal prototype to avoid an error. 10144 Use char because int might match the return type of a GCC 10145 builtin and then its argument prototype would still apply. */ 10146#ifdef __cplusplus 10147extern "C" 10148#endif 10149char dld_link (); 10150int 10151main () 10152{ 10153return dld_link (); 10154 ; 10155 return 0; 10156} 10157_ACEOF 10158rm -f conftest.$ac_objext conftest$ac_exeext 10159if { (ac_try="$ac_link" 10160case "(($ac_try" in 10161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10162 *) ac_try_echo=$ac_try;; 10163esac 10164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10165 (eval "$ac_link") 2>conftest.er1 10166 ac_status=$? 10167 grep -v '^ *+' conftest.er1 >conftest.err 10168 rm -f conftest.er1 10169 cat conftest.err >&5 10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10171 (exit $ac_status); } && { 10172 test -z "$ac_c_werror_flag" || 10173 test ! -s conftest.err 10174 } && test -s conftest$ac_exeext && 10175 $as_test_x conftest$ac_exeext; then 10176 ac_cv_lib_dld_dld_link=yes 10177else 10178 echo "$as_me: failed program was:" >&5 10179sed 's/^/| /' conftest.$ac_ext >&5 10180 10181 ac_cv_lib_dld_dld_link=no 10182fi 10183 10184rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10185 conftest$ac_exeext conftest.$ac_ext 10186LIBS=$ac_check_lib_save_LIBS 10187fi 10188{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10189echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 10190if test $ac_cv_lib_dld_dld_link = yes; then 10191 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 10192fi 10193 10194 10195fi 10196 10197 10198fi 10199 10200 10201fi 10202 10203 10204fi 10205 10206 10207fi 10208 10209 ;; 10210 esac 10211 10212 if test "x$lt_cv_dlopen" != xno; then 10213 enable_dlopen=yes 10214 else 10215 enable_dlopen=no 10216 fi 10217 10218 case $lt_cv_dlopen in 10219 dlopen) 10220 save_CPPFLAGS="$CPPFLAGS" 10221 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10222 10223 save_LDFLAGS="$LDFLAGS" 10224 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10225 10226 save_LIBS="$LIBS" 10227 LIBS="$lt_cv_dlopen_libs $LIBS" 10228 10229 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10230echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } 10231if test "${lt_cv_dlopen_self+set}" = set; then 10232 echo $ECHO_N "(cached) $ECHO_C" >&6 10233else 10234 if test "$cross_compiling" = yes; then : 10235 lt_cv_dlopen_self=cross 10236else 10237 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10238 lt_status=$lt_dlunknown 10239 cat > conftest.$ac_ext <<EOF 10240#line 10240 "configure" 10241#include "confdefs.h" 10242 10243#if HAVE_DLFCN_H 10244#include <dlfcn.h> 10245#endif 10246 10247#include <stdio.h> 10248 10249#ifdef RTLD_GLOBAL 10250# define LT_DLGLOBAL RTLD_GLOBAL 10251#else 10252# ifdef DL_GLOBAL 10253# define LT_DLGLOBAL DL_GLOBAL 10254# else 10255# define LT_DLGLOBAL 0 10256# endif 10257#endif 10258 10259/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10260 find out it does not work in some platform. */ 10261#ifndef LT_DLLAZY_OR_NOW 10262# ifdef RTLD_LAZY 10263# define LT_DLLAZY_OR_NOW RTLD_LAZY 10264# else 10265# ifdef DL_LAZY 10266# define LT_DLLAZY_OR_NOW DL_LAZY 10267# else 10268# ifdef RTLD_NOW 10269# define LT_DLLAZY_OR_NOW RTLD_NOW 10270# else 10271# ifdef DL_NOW 10272# define LT_DLLAZY_OR_NOW DL_NOW 10273# else 10274# define LT_DLLAZY_OR_NOW 0 10275# endif 10276# endif 10277# endif 10278# endif 10279#endif 10280 10281#ifdef __cplusplus 10282extern "C" void exit (int); 10283#endif 10284 10285void fnord() { int i=42;} 10286int main () 10287{ 10288 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10289 int status = $lt_dlunknown; 10290 10291 if (self) 10292 { 10293 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10294 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10295 /* dlclose (self); */ 10296 } 10297 else 10298 puts (dlerror ()); 10299 10300 exit (status); 10301} 10302EOF 10303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10304 (eval $ac_link) 2>&5 10305 ac_status=$? 10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10307 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10308 (./conftest; exit; ) >&5 2>/dev/null 10309 lt_status=$? 10310 case x$lt_status in 10311 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10312 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10313 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10314 esac 10315 else : 10316 # compilation failed 10317 lt_cv_dlopen_self=no 10318 fi 10319fi 10320rm -fr conftest* 10321 10322 10323fi 10324{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10325echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } 10326 10327 if test "x$lt_cv_dlopen_self" = xyes; then 10328 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10329 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10330echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } 10331if test "${lt_cv_dlopen_self_static+set}" = set; then 10332 echo $ECHO_N "(cached) $ECHO_C" >&6 10333else 10334 if test "$cross_compiling" = yes; then : 10335 lt_cv_dlopen_self_static=cross 10336else 10337 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10338 lt_status=$lt_dlunknown 10339 cat > conftest.$ac_ext <<EOF 10340#line 10340 "configure" 10341#include "confdefs.h" 10342 10343#if HAVE_DLFCN_H 10344#include <dlfcn.h> 10345#endif 10346 10347#include <stdio.h> 10348 10349#ifdef RTLD_GLOBAL 10350# define LT_DLGLOBAL RTLD_GLOBAL 10351#else 10352# ifdef DL_GLOBAL 10353# define LT_DLGLOBAL DL_GLOBAL 10354# else 10355# define LT_DLGLOBAL 0 10356# endif 10357#endif 10358 10359/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10360 find out it does not work in some platform. */ 10361#ifndef LT_DLLAZY_OR_NOW 10362# ifdef RTLD_LAZY 10363# define LT_DLLAZY_OR_NOW RTLD_LAZY 10364# else 10365# ifdef DL_LAZY 10366# define LT_DLLAZY_OR_NOW DL_LAZY 10367# else 10368# ifdef RTLD_NOW 10369# define LT_DLLAZY_OR_NOW RTLD_NOW 10370# else 10371# ifdef DL_NOW 10372# define LT_DLLAZY_OR_NOW DL_NOW 10373# else 10374# define LT_DLLAZY_OR_NOW 0 10375# endif 10376# endif 10377# endif 10378# endif 10379#endif 10380 10381#ifdef __cplusplus 10382extern "C" void exit (int); 10383#endif 10384 10385void fnord() { int i=42;} 10386int main () 10387{ 10388 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10389 int status = $lt_dlunknown; 10390 10391 if (self) 10392 { 10393 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10394 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10395 /* dlclose (self); */ 10396 } 10397 else 10398 puts (dlerror ()); 10399 10400 exit (status); 10401} 10402EOF 10403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10404 (eval $ac_link) 2>&5 10405 ac_status=$? 10406 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10407 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10408 (./conftest; exit; ) >&5 2>/dev/null 10409 lt_status=$? 10410 case x$lt_status in 10411 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10412 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10413 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10414 esac 10415 else : 10416 # compilation failed 10417 lt_cv_dlopen_self_static=no 10418 fi 10419fi 10420rm -fr conftest* 10421 10422 10423fi 10424{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10425echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } 10426 fi 10427 10428 CPPFLAGS="$save_CPPFLAGS" 10429 LDFLAGS="$save_LDFLAGS" 10430 LIBS="$save_LIBS" 10431 ;; 10432 esac 10433 10434 case $lt_cv_dlopen_self in 10435 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10436 *) enable_dlopen_self=unknown ;; 10437 esac 10438 10439 case $lt_cv_dlopen_self_static in 10440 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10441 *) enable_dlopen_self_static=unknown ;; 10442 esac 10443fi 10444 10445 10446# Report which library types will actually be built 10447{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10448echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 10449{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 10450echo "${ECHO_T}$can_build_shared" >&6; } 10451 10452{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10453echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 10454test "$can_build_shared" = "no" && enable_shared=no 10455 10456# On AIX, shared libraries and static libraries use the same namespace, and 10457# are all built from PIC. 10458case $host_os in 10459aix3*) 10460 test "$enable_shared" = yes && enable_static=no 10461 if test -n "$RANLIB"; then 10462 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10463 postinstall_cmds='$RANLIB $lib' 10464 fi 10465 ;; 10466 10467aix4* | aix5*) 10468 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10469 test "$enable_shared" = yes && enable_static=no 10470 fi 10471 ;; 10472esac 10473{ echo "$as_me:$LINENO: result: $enable_shared" >&5 10474echo "${ECHO_T}$enable_shared" >&6; } 10475 10476{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10477echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 10478# Make sure either enable_shared or enable_static is yes. 10479test "$enable_shared" = yes || enable_static=yes 10480{ echo "$as_me:$LINENO: result: $enable_static" >&5 10481echo "${ECHO_T}$enable_static" >&6; } 10482 10483# The else clause should only fire when bootstrapping the 10484# libtool distribution, otherwise you forgot to ship ltmain.sh 10485# with your package, and you will get complaints that there are 10486# no rules to generate ltmain.sh. 10487if test -f "$ltmain"; then 10488 # See if we are running on zsh, and set the options which allow our commands through 10489 # without removal of \ escapes. 10490 if test -n "${ZSH_VERSION+set}" ; then 10491 setopt NO_GLOB_SUBST 10492 fi 10493 # Now quote all the things that may contain metacharacters while being 10494 # careful not to overquote the AC_SUBSTed values. We take copies of the 10495 # variables and quote the copies for generation of the libtool script. 10496 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 10497 SED SHELL STRIP \ 10498 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10499 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10500 deplibs_check_method reload_flag reload_cmds need_locks \ 10501 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10502 lt_cv_sys_global_symbol_to_c_name_address \ 10503 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10504 old_postinstall_cmds old_postuninstall_cmds \ 10505 compiler \ 10506 CC \ 10507 LD \ 10508 lt_prog_compiler_wl \ 10509 lt_prog_compiler_pic \ 10510 lt_prog_compiler_static \ 10511 lt_prog_compiler_no_builtin_flag \ 10512 export_dynamic_flag_spec \ 10513 thread_safe_flag_spec \ 10514 whole_archive_flag_spec \ 10515 enable_shared_with_static_runtimes \ 10516 old_archive_cmds \ 10517 old_archive_from_new_cmds \ 10518 predep_objects \ 10519 postdep_objects \ 10520 predeps \ 10521 postdeps \ 10522 compiler_lib_search_path \ 10523 archive_cmds \ 10524 archive_expsym_cmds \ 10525 postinstall_cmds \ 10526 postuninstall_cmds \ 10527 old_archive_from_expsyms_cmds \ 10528 allow_undefined_flag \ 10529 no_undefined_flag \ 10530 export_symbols_cmds \ 10531 hardcode_libdir_flag_spec \ 10532 hardcode_libdir_flag_spec_ld \ 10533 hardcode_libdir_separator \ 10534 hardcode_automatic \ 10535 module_cmds \ 10536 module_expsym_cmds \ 10537 lt_cv_prog_compiler_c_o \ 10538 fix_srcfile_path \ 10539 exclude_expsyms \ 10540 include_expsyms; do 10541 10542 case $var in 10543 old_archive_cmds | \ 10544 old_archive_from_new_cmds | \ 10545 archive_cmds | \ 10546 archive_expsym_cmds | \ 10547 module_cmds | \ 10548 module_expsym_cmds | \ 10549 old_archive_from_expsyms_cmds | \ 10550 export_symbols_cmds | \ 10551 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10552 postinstall_cmds | postuninstall_cmds | \ 10553 old_postinstall_cmds | old_postuninstall_cmds | \ 10554 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10555 # Double-quote double-evaled strings. 10556 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10557 ;; 10558 *) 10559 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10560 ;; 10561 esac 10562 done 10563 10564 case $lt_echo in 10565 *'\$0 --fallback-echo"') 10566 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10567 ;; 10568 esac 10569 10570cfgfile="${ofile}T" 10571 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10572 $rm -f "$cfgfile" 10573 { echo "$as_me:$LINENO: creating $ofile" >&5 10574echo "$as_me: creating $ofile" >&6;} 10575 10576 cat <<__EOF__ >> "$cfgfile" 10577#! $SHELL 10578 10579# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10580# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10581# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10582# 10583# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 10584# Free Software Foundation, Inc. 10585# 10586# This file is part of GNU Libtool: 10587# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10588# 10589# This program is free software; you can redistribute it and/or modify 10590# it under the terms of the GNU General Public License as published by 10591# the Free Software Foundation; either version 2 of the License, or 10592# (at your option) any later version. 10593# 10594# This program is distributed in the hope that it will be useful, but 10595# WITHOUT ANY WARRANTY; without even the implied warranty of 10596# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10597# General Public License for more details. 10598# 10599# You should have received a copy of the GNU General Public License 10600# along with this program; if not, write to the Free Software 10601# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10602# 10603# As a special exception to the GNU General Public License, if you 10604# distribute this file as part of a program that contains a 10605# configuration script generated by Autoconf, you may include it under 10606# the same distribution terms that you use for the rest of that program. 10607 10608# A sed program that does not truncate output. 10609SED=$lt_SED 10610 10611# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10612Xsed="$SED -e 1s/^X//" 10613 10614# The HP-UX ksh and POSIX shell print the target directory to stdout 10615# if CDPATH is set. 10616(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10617 10618# The names of the tagged configurations supported by this script. 10619available_tags= 10620 10621# ### BEGIN LIBTOOL CONFIG 10622 10623# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10624 10625# Shell to use when invoking shell scripts. 10626SHELL=$lt_SHELL 10627 10628# Whether or not to build shared libraries. 10629build_libtool_libs=$enable_shared 10630 10631# Whether or not to build static libraries. 10632build_old_libs=$enable_static 10633 10634# Whether or not to add -lc for building shared libraries. 10635build_libtool_need_lc=$archive_cmds_need_lc 10636 10637# Whether or not to disallow shared libs when runtime libs are static 10638allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10639 10640# Whether or not to optimize for fast installation. 10641fast_install=$enable_fast_install 10642 10643# The host system. 10644host_alias=$host_alias 10645host=$host 10646host_os=$host_os 10647 10648# The build system. 10649build_alias=$build_alias 10650build=$build 10651build_os=$build_os 10652 10653# An echo program that does not interpret backslashes. 10654echo=$lt_echo 10655 10656# The archiver. 10657AR=$lt_AR 10658AR_FLAGS=$lt_AR_FLAGS 10659 10660# A C compiler. 10661LTCC=$lt_LTCC 10662 10663# LTCC compiler flags. 10664LTCFLAGS=$lt_LTCFLAGS 10665 10666# A language-specific compiler. 10667CC=$lt_compiler 10668 10669# Is the compiler the GNU C compiler? 10670with_gcc=$GCC 10671 10672# An ERE matcher. 10673EGREP=$lt_EGREP 10674 10675# The linker used to build libraries. 10676LD=$lt_LD 10677 10678# Whether we need hard or soft links. 10679LN_S=$lt_LN_S 10680 10681# A BSD-compatible nm program. 10682NM=$lt_NM 10683 10684# A symbol stripping program 10685STRIP=$lt_STRIP 10686 10687# Used to examine libraries when file_magic_cmd begins "file" 10688MAGIC_CMD=$MAGIC_CMD 10689 10690# Used on cygwin: DLL creation program. 10691DLLTOOL="$DLLTOOL" 10692 10693# Used on cygwin: object dumper. 10694OBJDUMP="$OBJDUMP" 10695 10696# Used on cygwin: assembler. 10697AS="$AS" 10698 10699# The name of the directory that contains temporary libtool files. 10700objdir=$objdir 10701 10702# How to create reloadable object files. 10703reload_flag=$lt_reload_flag 10704reload_cmds=$lt_reload_cmds 10705 10706# How to pass a linker flag through the compiler. 10707wl=$lt_lt_prog_compiler_wl 10708 10709# Object file suffix (normally "o"). 10710objext="$ac_objext" 10711 10712# Old archive suffix (normally "a"). 10713libext="$libext" 10714 10715# Shared library suffix (normally ".so"). 10716shrext_cmds='$shrext_cmds' 10717 10718# Executable file suffix (normally ""). 10719exeext="$exeext" 10720 10721# Additional compiler flags for building library objects. 10722pic_flag=$lt_lt_prog_compiler_pic 10723pic_mode=$pic_mode 10724 10725# What is the maximum length of a command? 10726max_cmd_len=$lt_cv_sys_max_cmd_len 10727 10728# Does compiler simultaneously support -c and -o options? 10729compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10730 10731# Must we lock files when doing compilation? 10732need_locks=$lt_need_locks 10733 10734# Do we need the lib prefix for modules? 10735need_lib_prefix=$need_lib_prefix 10736 10737# Do we need a version for libraries? 10738need_version=$need_version 10739 10740# Whether dlopen is supported. 10741dlopen_support=$enable_dlopen 10742 10743# Whether dlopen of programs is supported. 10744dlopen_self=$enable_dlopen_self 10745 10746# Whether dlopen of statically linked programs is supported. 10747dlopen_self_static=$enable_dlopen_self_static 10748 10749# Compiler flag to prevent dynamic linking. 10750link_static_flag=$lt_lt_prog_compiler_static 10751 10752# Compiler flag to turn off builtin functions. 10753no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10754 10755# Compiler flag to allow reflexive dlopens. 10756export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10757 10758# Compiler flag to generate shared objects directly from archives. 10759whole_archive_flag_spec=$lt_whole_archive_flag_spec 10760 10761# Compiler flag to generate thread-safe objects. 10762thread_safe_flag_spec=$lt_thread_safe_flag_spec 10763 10764# Library versioning type. 10765version_type=$version_type 10766 10767# Format of library name prefix. 10768libname_spec=$lt_libname_spec 10769 10770# List of archive names. First name is the real one, the rest are links. 10771# The last name is the one that the linker finds with -lNAME. 10772library_names_spec=$lt_library_names_spec 10773 10774# The coded name of the library, if different from the real name. 10775soname_spec=$lt_soname_spec 10776 10777# Commands used to build and install an old-style archive. 10778RANLIB=$lt_RANLIB 10779old_archive_cmds=$lt_old_archive_cmds 10780old_postinstall_cmds=$lt_old_postinstall_cmds 10781old_postuninstall_cmds=$lt_old_postuninstall_cmds 10782 10783# Create an old-style archive from a shared archive. 10784old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10785 10786# Create a temporary old-style archive to link instead of a shared archive. 10787old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10788 10789# Commands used to build and install a shared archive. 10790archive_cmds=$lt_archive_cmds 10791archive_expsym_cmds=$lt_archive_expsym_cmds 10792postinstall_cmds=$lt_postinstall_cmds 10793postuninstall_cmds=$lt_postuninstall_cmds 10794 10795# Commands used to build a loadable module (assumed same as above if empty) 10796module_cmds=$lt_module_cmds 10797module_expsym_cmds=$lt_module_expsym_cmds 10798 10799# Commands to strip libraries. 10800old_striplib=$lt_old_striplib 10801striplib=$lt_striplib 10802 10803# Dependencies to place before the objects being linked to create a 10804# shared library. 10805predep_objects=$lt_predep_objects 10806 10807# Dependencies to place after the objects being linked to create a 10808# shared library. 10809postdep_objects=$lt_postdep_objects 10810 10811# Dependencies to place before the objects being linked to create a 10812# shared library. 10813predeps=$lt_predeps 10814 10815# Dependencies to place after the objects being linked to create a 10816# shared library. 10817postdeps=$lt_postdeps 10818 10819# The library search path used internally by the compiler when linking 10820# a shared library. 10821compiler_lib_search_path=$lt_compiler_lib_search_path 10822 10823# Method to check whether dependent libraries are shared objects. 10824deplibs_check_method=$lt_deplibs_check_method 10825 10826# Command to use when deplibs_check_method == file_magic. 10827file_magic_cmd=$lt_file_magic_cmd 10828 10829# Flag that allows shared libraries with undefined symbols to be built. 10830allow_undefined_flag=$lt_allow_undefined_flag 10831 10832# Flag that forces no undefined symbols. 10833no_undefined_flag=$lt_no_undefined_flag 10834 10835# Commands used to finish a libtool library installation in a directory. 10836finish_cmds=$lt_finish_cmds 10837 10838# Same as above, but a single script fragment to be evaled but not shown. 10839finish_eval=$lt_finish_eval 10840 10841# Take the output of nm and produce a listing of raw symbols and C names. 10842global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 10843 10844# Transform the output of nm in a proper C declaration 10845global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 10846 10847# Transform the output of nm in a C name address pair 10848global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 10849 10850# This is the shared library runtime path variable. 10851runpath_var=$runpath_var 10852 10853# This is the shared library path variable. 10854shlibpath_var=$shlibpath_var 10855 10856# Is shlibpath searched before the hard-coded library search path? 10857shlibpath_overrides_runpath=$shlibpath_overrides_runpath 10858 10859# How to hardcode a shared library path into an executable. 10860hardcode_action=$hardcode_action 10861 10862# Whether we should hardcode library paths into libraries. 10863hardcode_into_libs=$hardcode_into_libs 10864 10865# Flag to hardcode \$libdir into a binary during linking. 10866# This must work even if \$libdir does not exist. 10867hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 10868 10869# If ld is used when linking, flag to hardcode \$libdir into 10870# a binary during linking. This must work even if \$libdir does 10871# not exist. 10872hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 10873 10874# Whether we need a single -rpath flag with a separated argument. 10875hardcode_libdir_separator=$lt_hardcode_libdir_separator 10876 10877# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 10878# resulting binary. 10879hardcode_direct=$hardcode_direct 10880 10881# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 10882# resulting binary. 10883hardcode_minus_L=$hardcode_minus_L 10884 10885# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 10886# the resulting binary. 10887hardcode_shlibpath_var=$hardcode_shlibpath_var 10888 10889# Set to yes if building a shared library automatically hardcodes DIR into the library 10890# and all subsequent libraries and executables linked against it. 10891hardcode_automatic=$hardcode_automatic 10892 10893# Variables whose values should be saved in libtool wrapper scripts and 10894# restored at relink time. 10895variables_saved_for_relink="$variables_saved_for_relink" 10896 10897# Whether libtool must link a program against all its dependency libraries. 10898link_all_deplibs=$link_all_deplibs 10899 10900# Compile-time system search path for libraries 10901sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 10902 10903# Run-time system search path for libraries 10904sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 10905 10906# Fix the shell variable \$srcfile for the compiler. 10907fix_srcfile_path=$lt_fix_srcfile_path 10908 10909# Set to yes if exported symbols are required. 10910always_export_symbols=$always_export_symbols 10911 10912# The commands to list exported symbols. 10913export_symbols_cmds=$lt_export_symbols_cmds 10914 10915# The commands to extract the exported symbol list from a shared archive. 10916extract_expsyms_cmds=$lt_extract_expsyms_cmds 10917 10918# Symbols that should not be listed in the preloaded symbols. 10919exclude_expsyms=$lt_exclude_expsyms 10920 10921# Symbols that must always be exported. 10922include_expsyms=$lt_include_expsyms 10923 10924# ### END LIBTOOL CONFIG 10925 10926__EOF__ 10927 10928 10929 case $host_os in 10930 aix3*) 10931 cat <<\EOF >> "$cfgfile" 10932 10933# AIX sometimes has problems with the GCC collect2 program. For some 10934# reason, if we set the COLLECT_NAMES environment variable, the problems 10935# vanish in a puff of smoke. 10936if test "X${COLLECT_NAMES+set}" != Xset; then 10937 COLLECT_NAMES= 10938 export COLLECT_NAMES 10939fi 10940EOF 10941 ;; 10942 esac 10943 10944 # We use sed instead of cat because bash on DJGPP gets confused if 10945 # if finds mixed CR/LF and LF-only lines. Since sed operates in 10946 # text mode, it properly converts lines to CR/LF. This bash problem 10947 # is reportedly fixed, but why not run on old versions too? 10948 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 10949 10950 mv -f "$cfgfile" "$ofile" || \ 10951 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 10952 chmod +x "$ofile" 10953 10954else 10955 # If there is no Makefile yet, we rely on a make rule to execute 10956 # `config.status --recheck' to rerun these tests and create the 10957 # libtool script then. 10958 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 10959 if test -f "$ltmain_in"; then 10960 test -f Makefile && make "$ltmain" 10961 fi 10962fi 10963 10964 10965ac_ext=c 10966ac_cpp='$CPP $CPPFLAGS' 10967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10969ac_compiler_gnu=$ac_cv_c_compiler_gnu 10970 10971CC="$lt_save_CC" 10972 10973 10974# Check whether --with-tags was given. 10975if test "${with_tags+set}" = set; then 10976 withval=$with_tags; tagnames="$withval" 10977fi 10978 10979 10980if test -f "$ltmain" && test -n "$tagnames"; then 10981 if test ! -f "${ofile}"; then 10982 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 10983echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 10984 fi 10985 10986 if test -z "$LTCC"; then 10987 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 10988 if test -z "$LTCC"; then 10989 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 10990echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 10991 else 10992 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 10993echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 10994 fi 10995 fi 10996 if test -z "$LTCFLAGS"; then 10997 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 10998 fi 10999 11000 # Extract list of available tagged configurations in $ofile. 11001 # Note that this assumes the entire list is on one line. 11002 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 11003 11004 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 11005 for tagname in $tagnames; do 11006 IFS="$lt_save_ifs" 11007 # Check whether tagname contains only valid characters 11008 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 11009 "") ;; 11010 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 11011echo "$as_me: error: invalid tag name: $tagname" >&2;} 11012 { (exit 1); exit 1; }; } 11013 ;; 11014 esac 11015 11016 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 11017 then 11018 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 11019echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 11020 { (exit 1); exit 1; }; } 11021 fi 11022 11023 # Update the list of available tags. 11024 if test -n "$tagname"; then 11025 echo appending configuration tag \"$tagname\" to $ofile 11026 11027 case $tagname in 11028 CXX) 11029 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 11030 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 11031 (test "X$CXX" != "Xg++"))) ; then 11032 ac_ext=cpp 11033ac_cpp='$CXXCPP $CPPFLAGS' 11034ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11035ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11036ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11037 11038 11039 11040 11041archive_cmds_need_lc_CXX=no 11042allow_undefined_flag_CXX= 11043always_export_symbols_CXX=no 11044archive_expsym_cmds_CXX= 11045export_dynamic_flag_spec_CXX= 11046hardcode_direct_CXX=no 11047hardcode_libdir_flag_spec_CXX= 11048hardcode_libdir_flag_spec_ld_CXX= 11049hardcode_libdir_separator_CXX= 11050hardcode_minus_L_CXX=no 11051hardcode_shlibpath_var_CXX=unsupported 11052hardcode_automatic_CXX=no 11053module_cmds_CXX= 11054module_expsym_cmds_CXX= 11055link_all_deplibs_CXX=unknown 11056old_archive_cmds_CXX=$old_archive_cmds 11057no_undefined_flag_CXX= 11058whole_archive_flag_spec_CXX= 11059enable_shared_with_static_runtimes_CXX=no 11060 11061# Dependencies to place before and after the object being linked: 11062predep_objects_CXX= 11063postdep_objects_CXX= 11064predeps_CXX= 11065postdeps_CXX= 11066compiler_lib_search_path_CXX= 11067 11068# Source file extension for C++ test sources. 11069ac_ext=cpp 11070 11071# Object file extension for compiled C++ test sources. 11072objext=o 11073objext_CXX=$objext 11074 11075# Code to be used in simple compile tests 11076lt_simple_compile_test_code="int some_variable = 0;" 11077 11078# Code to be used in simple link tests 11079lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 11080 11081# ltmain only uses $CC for tagged configurations so make sure $CC is set. 11082 11083# If no C compiler was specified, use CC. 11084LTCC=${LTCC-"$CC"} 11085 11086# If no C compiler flags were specified, use CFLAGS. 11087LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11088 11089# Allow CC to be a program name with arguments. 11090compiler=$CC 11091 11092 11093# save warnings/boilerplate of simple test code 11094ac_outfile=conftest.$ac_objext 11095echo "$lt_simple_compile_test_code" >conftest.$ac_ext 11096eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11097_lt_compiler_boilerplate=`cat conftest.err` 11098$rm conftest* 11099 11100ac_outfile=conftest.$ac_objext 11101echo "$lt_simple_link_test_code" >conftest.$ac_ext 11102eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11103_lt_linker_boilerplate=`cat conftest.err` 11104$rm conftest* 11105 11106 11107# Allow CC to be a program name with arguments. 11108lt_save_CC=$CC 11109lt_save_LD=$LD 11110lt_save_GCC=$GCC 11111GCC=$GXX 11112lt_save_with_gnu_ld=$with_gnu_ld 11113lt_save_path_LD=$lt_cv_path_LD 11114if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11115 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11116else 11117 $as_unset lt_cv_prog_gnu_ld 11118fi 11119if test -n "${lt_cv_path_LDCXX+set}"; then 11120 lt_cv_path_LD=$lt_cv_path_LDCXX 11121else 11122 $as_unset lt_cv_path_LD 11123fi 11124test -z "${LDCXX+set}" || LD=$LDCXX 11125CC=${CXX-"c++"} 11126compiler=$CC 11127compiler_CXX=$CC 11128for cc_temp in $compiler""; do 11129 case $cc_temp in 11130 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11131 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11132 \-*) ;; 11133 *) break;; 11134 esac 11135done 11136cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 11137 11138 11139# We don't want -fno-exception wen compiling C++ code, so set the 11140# no_builtin_flag separately 11141if test "$GXX" = yes; then 11142 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11143else 11144 lt_prog_compiler_no_builtin_flag_CXX= 11145fi 11146 11147if test "$GXX" = yes; then 11148 # Set up default GNU C++ configuration 11149 11150 11151# Check whether --with-gnu-ld was given. 11152if test "${with_gnu_ld+set}" = set; then 11153 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11154else 11155 with_gnu_ld=no 11156fi 11157 11158ac_prog=ld 11159if test "$GCC" = yes; then 11160 # Check if gcc -print-prog-name=ld gives a path. 11161 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 11162echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 11163 case $host in 11164 *-*-mingw*) 11165 # gcc leaves a trailing carriage return which upsets mingw 11166 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11167 *) 11168 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11169 esac 11170 case $ac_prog in 11171 # Accept absolute paths. 11172 [\\/]* | ?:[\\/]*) 11173 re_direlt='/[^/][^/]*/\.\./' 11174 # Canonicalize the pathname of ld 11175 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 11176 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 11177 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 11178 done 11179 test -z "$LD" && LD="$ac_prog" 11180 ;; 11181 "") 11182 # If it fails, then pretend we aren't using GCC. 11183 ac_prog=ld 11184 ;; 11185 *) 11186 # If it is relative, then search for the first ld in PATH. 11187 with_gnu_ld=unknown 11188 ;; 11189 esac 11190elif test "$with_gnu_ld" = yes; then 11191 { echo "$as_me:$LINENO: checking for GNU ld" >&5 11192echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 11193else 11194 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 11195echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 11196fi 11197if test "${lt_cv_path_LD+set}" = set; then 11198 echo $ECHO_N "(cached) $ECHO_C" >&6 11199else 11200 if test -z "$LD"; then 11201 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11202 for ac_dir in $PATH; do 11203 IFS="$lt_save_ifs" 11204 test -z "$ac_dir" && ac_dir=. 11205 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11206 lt_cv_path_LD="$ac_dir/$ac_prog" 11207 # Check to see if the program is GNU ld. I'd rather use --version, 11208 # but apparently some variants of GNU ld only accept -v. 11209 # Break only if it was the GNU/non-GNU ld that we prefer. 11210 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11211 *GNU* | *'with BFD'*) 11212 test "$with_gnu_ld" != no && break 11213 ;; 11214 *) 11215 test "$with_gnu_ld" != yes && break 11216 ;; 11217 esac 11218 fi 11219 done 11220 IFS="$lt_save_ifs" 11221else 11222 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11223fi 11224fi 11225 11226LD="$lt_cv_path_LD" 11227if test -n "$LD"; then 11228 { echo "$as_me:$LINENO: result: $LD" >&5 11229echo "${ECHO_T}$LD" >&6; } 11230else 11231 { echo "$as_me:$LINENO: result: no" >&5 11232echo "${ECHO_T}no" >&6; } 11233fi 11234test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 11235echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 11236 { (exit 1); exit 1; }; } 11237{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 11238echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 11239if test "${lt_cv_prog_gnu_ld+set}" = set; then 11240 echo $ECHO_N "(cached) $ECHO_C" >&6 11241else 11242 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11243case `$LD -v 2>&1 </dev/null` in 11244*GNU* | *'with BFD'*) 11245 lt_cv_prog_gnu_ld=yes 11246 ;; 11247*) 11248 lt_cv_prog_gnu_ld=no 11249 ;; 11250esac 11251fi 11252{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 11253echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 11254with_gnu_ld=$lt_cv_prog_gnu_ld 11255 11256 11257 11258 # Check if GNU C++ uses GNU ld as the underlying linker, since the 11259 # archiving commands below assume that GNU ld is being used. 11260 if test "$with_gnu_ld" = yes; then 11261 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11262 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' 11263 11264 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11265 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11266 11267 # If archive_cmds runs LD, not CC, wlarc should be empty 11268 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 11269 # investigate it a little bit more. (MM) 11270 wlarc='${wl}' 11271 11272 # ancient GNU ld didn't support --whole-archive et. al. 11273 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 11274 grep 'no-whole-archive' > /dev/null; then 11275 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11276 else 11277 whole_archive_flag_spec_CXX= 11278 fi 11279 else 11280 with_gnu_ld=no 11281 wlarc= 11282 11283 # A generic and very simple default shared library creation 11284 # command for GNU C++ for the case where it uses the native 11285 # linker, instead of GNU ld. If possible, this setting should 11286 # overridden to take advantage of the native linker features on 11287 # the platform it is being used on. 11288 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11289 fi 11290 11291 # Commands to make compiler produce verbose output that lists 11292 # what "hidden" libraries, object files and flags are used when 11293 # linking a shared library. 11294 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11295 11296else 11297 GXX=no 11298 with_gnu_ld=no 11299 wlarc= 11300fi 11301 11302# PORTME: fill in a description of your system's C++ link characteristics 11303{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11304echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 11305ld_shlibs_CXX=yes 11306case $host_os in 11307 aix3*) 11308 # FIXME: insert proper C++ library support 11309 ld_shlibs_CXX=no 11310 ;; 11311 aix4* | aix5*) 11312 if test "$host_cpu" = ia64; then 11313 # On IA64, the linker does run time linking by default, so we don't 11314 # have to do anything special. 11315 aix_use_runtimelinking=no 11316 exp_sym_flag='-Bexport' 11317 no_entry_flag="" 11318 else 11319 aix_use_runtimelinking=no 11320 11321 # Test if we are trying to use run time linking or normal 11322 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11323 # need to do runtime linking. 11324 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 11325 for ld_flag in $LDFLAGS; do 11326 case $ld_flag in 11327 *-brtl*) 11328 aix_use_runtimelinking=yes 11329 break 11330 ;; 11331 esac 11332 done 11333 ;; 11334 esac 11335 11336 exp_sym_flag='-bexport' 11337 no_entry_flag='-bnoentry' 11338 fi 11339 11340 # When large executables or shared objects are built, AIX ld can 11341 # have problems creating the table of contents. If linking a library 11342 # or program results in "error TOC overflow" add -mminimal-toc to 11343 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11344 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11345 11346 archive_cmds_CXX='' 11347 hardcode_direct_CXX=yes 11348 hardcode_libdir_separator_CXX=':' 11349 link_all_deplibs_CXX=yes 11350 11351 if test "$GXX" = yes; then 11352 case $host_os in aix4.[012]|aix4.[012].*) 11353 # We only want to do this on AIX 4.2 and lower, the check 11354 # below for broken collect2 doesn't work under 4.3+ 11355 collect2name=`${CC} -print-prog-name=collect2` 11356 if test -f "$collect2name" && \ 11357 strings "$collect2name" | grep resolve_lib_name >/dev/null 11358 then 11359 # We have reworked collect2 11360 : 11361 else 11362 # We have old collect2 11363 hardcode_direct_CXX=unsupported 11364 # It fails to find uninstalled libraries when the uninstalled 11365 # path is not listed in the libpath. Setting hardcode_minus_L 11366 # to unsupported forces relinking 11367 hardcode_minus_L_CXX=yes 11368 hardcode_libdir_flag_spec_CXX='-L$libdir' 11369 hardcode_libdir_separator_CXX= 11370 fi 11371 ;; 11372 esac 11373 shared_flag='-shared' 11374 if test "$aix_use_runtimelinking" = yes; then 11375 shared_flag="$shared_flag "'${wl}-G' 11376 fi 11377 else 11378 # not using gcc 11379 if test "$host_cpu" = ia64; then 11380 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11381 # chokes on -Wl,-G. The following line is correct: 11382 shared_flag='-G' 11383 else 11384 if test "$aix_use_runtimelinking" = yes; then 11385 shared_flag='${wl}-G' 11386 else 11387 shared_flag='${wl}-bM:SRE' 11388 fi 11389 fi 11390 fi 11391 11392 # It seems that -bexpall does not export symbols beginning with 11393 # underscore (_), so it is better to generate a list of symbols to export. 11394 always_export_symbols_CXX=yes 11395 if test "$aix_use_runtimelinking" = yes; then 11396 # Warning - without using the other runtime loading flags (-brtl), 11397 # -berok will link without error, but may produce a broken library. 11398 allow_undefined_flag_CXX='-berok' 11399 # Determine the default libpath from the value encoded in an empty executable. 11400 cat >conftest.$ac_ext <<_ACEOF 11401/* confdefs.h. */ 11402_ACEOF 11403cat confdefs.h >>conftest.$ac_ext 11404cat >>conftest.$ac_ext <<_ACEOF 11405/* end confdefs.h. */ 11406 11407int 11408main () 11409{ 11410 11411 ; 11412 return 0; 11413} 11414_ACEOF 11415rm -f conftest.$ac_objext conftest$ac_exeext 11416if { (ac_try="$ac_link" 11417case "(($ac_try" in 11418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11419 *) ac_try_echo=$ac_try;; 11420esac 11421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11422 (eval "$ac_link") 2>conftest.er1 11423 ac_status=$? 11424 grep -v '^ *+' conftest.er1 >conftest.err 11425 rm -f conftest.er1 11426 cat conftest.err >&5 11427 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11428 (exit $ac_status); } && { 11429 test -z "$ac_cxx_werror_flag" || 11430 test ! -s conftest.err 11431 } && test -s conftest$ac_exeext && 11432 $as_test_x conftest$ac_exeext; then 11433 11434lt_aix_libpath_sed=' 11435 /Import File Strings/,/^$/ { 11436 /^0/ { 11437 s/^0 *\(.*\)$/\1/ 11438 p 11439 } 11440 }' 11441aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11442# Check for a 64-bit object if we didn't find anything. 11443if test -z "$aix_libpath"; then 11444 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11445fi 11446else 11447 echo "$as_me: failed program was:" >&5 11448sed 's/^/| /' conftest.$ac_ext >&5 11449 11450 11451fi 11452 11453rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11454 conftest$ac_exeext conftest.$ac_ext 11455if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11456 11457 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11458 11459 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" 11460 else 11461 if test "$host_cpu" = ia64; then 11462 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11463 allow_undefined_flag_CXX="-z nodefs" 11464 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" 11465 else 11466 # Determine the default libpath from the value encoded in an empty executable. 11467 cat >conftest.$ac_ext <<_ACEOF 11468/* confdefs.h. */ 11469_ACEOF 11470cat confdefs.h >>conftest.$ac_ext 11471cat >>conftest.$ac_ext <<_ACEOF 11472/* end confdefs.h. */ 11473 11474int 11475main () 11476{ 11477 11478 ; 11479 return 0; 11480} 11481_ACEOF 11482rm -f conftest.$ac_objext conftest$ac_exeext 11483if { (ac_try="$ac_link" 11484case "(($ac_try" in 11485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11486 *) ac_try_echo=$ac_try;; 11487esac 11488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11489 (eval "$ac_link") 2>conftest.er1 11490 ac_status=$? 11491 grep -v '^ *+' conftest.er1 >conftest.err 11492 rm -f conftest.er1 11493 cat conftest.err >&5 11494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11495 (exit $ac_status); } && { 11496 test -z "$ac_cxx_werror_flag" || 11497 test ! -s conftest.err 11498 } && test -s conftest$ac_exeext && 11499 $as_test_x conftest$ac_exeext; then 11500 11501lt_aix_libpath_sed=' 11502 /Import File Strings/,/^$/ { 11503 /^0/ { 11504 s/^0 *\(.*\)$/\1/ 11505 p 11506 } 11507 }' 11508aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11509# Check for a 64-bit object if we didn't find anything. 11510if test -z "$aix_libpath"; then 11511 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11512fi 11513else 11514 echo "$as_me: failed program was:" >&5 11515sed 's/^/| /' conftest.$ac_ext >&5 11516 11517 11518fi 11519 11520rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11521 conftest$ac_exeext conftest.$ac_ext 11522if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11523 11524 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11525 # Warning - without using the other run time loading flags, 11526 # -berok will link without error, but may produce a broken library. 11527 no_undefined_flag_CXX=' ${wl}-bernotok' 11528 allow_undefined_flag_CXX=' ${wl}-berok' 11529 # Exported symbols can be pulled into shared objects from archives 11530 whole_archive_flag_spec_CXX='$convenience' 11531 archive_cmds_need_lc_CXX=yes 11532 # This is similar to how AIX traditionally builds its shared libraries. 11533 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' 11534 fi 11535 fi 11536 ;; 11537 11538 beos*) 11539 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11540 allow_undefined_flag_CXX=unsupported 11541 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11542 # support --undefined. This deserves some investigation. FIXME 11543 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11544 else 11545 ld_shlibs_CXX=no 11546 fi 11547 ;; 11548 11549 chorus*) 11550 case $cc_basename in 11551 *) 11552 # FIXME: insert proper C++ library support 11553 ld_shlibs_CXX=no 11554 ;; 11555 esac 11556 ;; 11557 11558 cygwin* | mingw* | pw32*) 11559 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11560 # as there is no search path for DLLs. 11561 hardcode_libdir_flag_spec_CXX='-L$libdir' 11562 allow_undefined_flag_CXX=unsupported 11563 always_export_symbols_CXX=no 11564 enable_shared_with_static_runtimes_CXX=yes 11565 11566 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11567 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' 11568 # If the export-symbols file already is a .def file (1st line 11569 # is EXPORTS), use it as is; otherwise, prepend... 11570 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11571 cp $export_symbols $output_objdir/$soname.def; 11572 else 11573 echo EXPORTS > $output_objdir/$soname.def; 11574 cat $export_symbols >> $output_objdir/$soname.def; 11575 fi~ 11576 $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' 11577 else 11578 ld_shlibs_CXX=no 11579 fi 11580 ;; 11581 darwin* | rhapsody*) 11582 case $host_os in 11583 rhapsody* | darwin1.[012]) 11584 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 11585 ;; 11586 *) # Darwin 1.3 on 11587 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 11588 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11589 else 11590 case ${MACOSX_DEPLOYMENT_TARGET} in 11591 10.[012]) 11592 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11593 ;; 11594 10.*) 11595 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 11596 ;; 11597 esac 11598 fi 11599 ;; 11600 esac 11601 archive_cmds_need_lc_CXX=no 11602 hardcode_direct_CXX=no 11603 hardcode_automatic_CXX=yes 11604 hardcode_shlibpath_var_CXX=unsupported 11605 whole_archive_flag_spec_CXX='' 11606 link_all_deplibs_CXX=yes 11607 11608 if test "$GXX" = yes ; then 11609 lt_int_apple_cc_single_mod=no 11610 output_verbose_link_cmd='echo' 11611 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 11612 lt_int_apple_cc_single_mod=yes 11613 fi 11614 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11615 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 11616 else 11617 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' 11618 fi 11619 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11620 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11621 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11622 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}' 11623 else 11624 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}' 11625 fi 11626 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}' 11627 else 11628 case $cc_basename in 11629 xlc*) 11630 output_verbose_link_cmd='echo' 11631 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 11632 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11633 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11634 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11635 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}' 11636 ;; 11637 *) 11638 ld_shlibs_CXX=no 11639 ;; 11640 esac 11641 fi 11642 ;; 11643 11644 dgux*) 11645 case $cc_basename in 11646 ec++*) 11647 # FIXME: insert proper C++ library support 11648 ld_shlibs_CXX=no 11649 ;; 11650 ghcx*) 11651 # Green Hills C++ Compiler 11652 # FIXME: insert proper C++ library support 11653 ld_shlibs_CXX=no 11654 ;; 11655 *) 11656 # FIXME: insert proper C++ library support 11657 ld_shlibs_CXX=no 11658 ;; 11659 esac 11660 ;; 11661 freebsd[12]*) 11662 # C++ shared libraries reported to be fairly broken before switch to ELF 11663 ld_shlibs_CXX=no 11664 ;; 11665 freebsd-elf*) 11666 archive_cmds_need_lc_CXX=no 11667 ;; 11668 freebsd* | dragonfly*) 11669 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11670 # conventions 11671 ld_shlibs_CXX=yes 11672 ;; 11673 gnu*) 11674 ;; 11675 hpux9*) 11676 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11677 hardcode_libdir_separator_CXX=: 11678 export_dynamic_flag_spec_CXX='${wl}-E' 11679 hardcode_direct_CXX=yes 11680 hardcode_minus_L_CXX=yes # Not in the search PATH, 11681 # but as the default 11682 # location of the library. 11683 11684 case $cc_basename in 11685 CC*) 11686 # FIXME: insert proper C++ library support 11687 ld_shlibs_CXX=no 11688 ;; 11689 aCC*) 11690 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' 11691 # Commands to make compiler produce verbose output that lists 11692 # what "hidden" libraries, object files and flags are used when 11693 # linking a shared library. 11694 # 11695 # There doesn't appear to be a way to prevent this compiler from 11696 # explicitly linking system object files so we need to strip them 11697 # from the output so that they don't get included in the library 11698 # dependencies. 11699 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' 11700 ;; 11701 *) 11702 if test "$GXX" = yes; then 11703 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' 11704 else 11705 # FIXME: insert proper C++ library support 11706 ld_shlibs_CXX=no 11707 fi 11708 ;; 11709 esac 11710 ;; 11711 hpux10*|hpux11*) 11712 if test $with_gnu_ld = no; then 11713 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11714 hardcode_libdir_separator_CXX=: 11715 11716 case $host_cpu in 11717 hppa*64*|ia64*) ;; 11718 *) 11719 export_dynamic_flag_spec_CXX='${wl}-E' 11720 ;; 11721 esac 11722 fi 11723 case $host_cpu in 11724 hppa*64*|ia64*) 11725 hardcode_direct_CXX=no 11726 hardcode_shlibpath_var_CXX=no 11727 ;; 11728 *) 11729 hardcode_direct_CXX=yes 11730 hardcode_minus_L_CXX=yes # Not in the search PATH, 11731 # but as the default 11732 # location of the library. 11733 ;; 11734 esac 11735 11736 case $cc_basename in 11737 CC*) 11738 # FIXME: insert proper C++ library support 11739 ld_shlibs_CXX=no 11740 ;; 11741 aCC*) 11742 case $host_cpu in 11743 hppa*64*) 11744 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11745 ;; 11746 ia64*) 11747 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11748 ;; 11749 *) 11750 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11751 ;; 11752 esac 11753 # Commands to make compiler produce verbose output that lists 11754 # what "hidden" libraries, object files and flags are used when 11755 # linking a shared library. 11756 # 11757 # There doesn't appear to be a way to prevent this compiler from 11758 # explicitly linking system object files so we need to strip them 11759 # from the output so that they don't get included in the library 11760 # dependencies. 11761 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' 11762 ;; 11763 *) 11764 if test "$GXX" = yes; then 11765 if test $with_gnu_ld = no; then 11766 case $host_cpu in 11767 hppa*64*) 11768 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11769 ;; 11770 ia64*) 11771 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11772 ;; 11773 *) 11774 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' 11775 ;; 11776 esac 11777 fi 11778 else 11779 # FIXME: insert proper C++ library support 11780 ld_shlibs_CXX=no 11781 fi 11782 ;; 11783 esac 11784 ;; 11785 interix[3-9]*) 11786 hardcode_direct_CXX=no 11787 hardcode_shlibpath_var_CXX=no 11788 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11789 export_dynamic_flag_spec_CXX='${wl}-E' 11790 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11791 # Instead, shared libraries are loaded at an image base (0x10000000 by 11792 # default) and relocated if they conflict, which is a slow very memory 11793 # consuming and fragmenting process. To avoid this, we pick a random, 11794 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11795 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11796 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' 11797 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' 11798 ;; 11799 irix5* | irix6*) 11800 case $cc_basename in 11801 CC*) 11802 # SGI C++ 11803 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' 11804 11805 # Archives containing C++ object files must be created using 11806 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11807 # necessary to make sure instantiated templates are included 11808 # in the archive. 11809 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11810 ;; 11811 *) 11812 if test "$GXX" = yes; then 11813 if test "$with_gnu_ld" = no; then 11814 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' 11815 else 11816 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' 11817 fi 11818 fi 11819 link_all_deplibs_CXX=yes 11820 ;; 11821 esac 11822 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11823 hardcode_libdir_separator_CXX=: 11824 ;; 11825 linux* | k*bsd*-gnu) 11826 case $cc_basename in 11827 KCC*) 11828 # Kuck and Associates, Inc. (KAI) C++ Compiler 11829 11830 # KCC will only create a shared library if the output file 11831 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11832 # to its proper name (with version) after linking. 11833 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' 11834 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' 11835 # Commands to make compiler produce verbose output that lists 11836 # what "hidden" libraries, object files and flags are used when 11837 # linking a shared library. 11838 # 11839 # There doesn't appear to be a way to prevent this compiler from 11840 # explicitly linking system object files so we need to strip them 11841 # from the output so that they don't get included in the library 11842 # dependencies. 11843 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' 11844 11845 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 11846 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11847 11848 # Archives containing C++ object files must be created using 11849 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11850 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11851 ;; 11852 icpc*) 11853 # Intel C++ 11854 with_gnu_ld=yes 11855 # version 8.0 and above of icpc choke on multiply defined symbols 11856 # if we add $predep_objects and $postdep_objects, however 7.1 and 11857 # earlier do not add the objects themselves. 11858 case `$CC -V 2>&1` in 11859 *"Version 7."*) 11860 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11861 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' 11862 ;; 11863 *) # Version 8.0 or newer 11864 tmp_idyn= 11865 case $host_cpu in 11866 ia64*) tmp_idyn=' -i_dynamic';; 11867 esac 11868 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11869 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' 11870 ;; 11871 esac 11872 archive_cmds_need_lc_CXX=no 11873 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11874 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11875 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11876 ;; 11877 pgCC*) 11878 # Portland Group C++ compiler 11879 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 11880 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' 11881 11882 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11883 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11884 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' 11885 ;; 11886 cxx*) 11887 # Compaq C++ 11888 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11889 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' 11890 11891 runpath_var=LD_RUN_PATH 11892 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11893 hardcode_libdir_separator_CXX=: 11894 11895 # Commands to make compiler produce verbose output that lists 11896 # what "hidden" libraries, object files and flags are used when 11897 # linking a shared library. 11898 # 11899 # There doesn't appear to be a way to prevent this compiler from 11900 # explicitly linking system object files so we need to strip them 11901 # from the output so that they don't get included in the library 11902 # dependencies. 11903 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' 11904 ;; 11905 *) 11906 case `$CC -V 2>&1 | sed 5q` in 11907 *Sun\ C*) 11908 # Sun C++ 5.9 11909 no_undefined_flag_CXX=' -zdefs' 11910 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11911 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' 11912 hardcode_libdir_flag_spec_CXX='-R$libdir' 11913 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' 11914 11915 # Not sure whether something based on 11916 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 11917 # would be better. 11918 output_verbose_link_cmd='echo' 11919 11920 # Archives containing C++ object files must be created using 11921 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11922 # necessary to make sure instantiated templates are included 11923 # in the archive. 11924 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11925 ;; 11926 esac 11927 ;; 11928 esac 11929 ;; 11930 lynxos*) 11931 # FIXME: insert proper C++ library support 11932 ld_shlibs_CXX=no 11933 ;; 11934 m88k*) 11935 # FIXME: insert proper C++ library support 11936 ld_shlibs_CXX=no 11937 ;; 11938 mvs*) 11939 case $cc_basename in 11940 cxx*) 11941 # FIXME: insert proper C++ library support 11942 ld_shlibs_CXX=no 11943 ;; 11944 *) 11945 # FIXME: insert proper C++ library support 11946 ld_shlibs_CXX=no 11947 ;; 11948 esac 11949 ;; 11950 netbsd*) 11951 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11952 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 11953 wlarc= 11954 hardcode_libdir_flag_spec_CXX='-R$libdir' 11955 hardcode_direct_CXX=yes 11956 hardcode_shlibpath_var_CXX=no 11957 fi 11958 # Workaround some broken pre-1.5 toolchains 11959 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 11960 ;; 11961 openbsd2*) 11962 # C++ shared libraries are fairly broken 11963 ld_shlibs_CXX=no 11964 ;; 11965 openbsd*) 11966 if test -f /usr/libexec/ld.so; then 11967 hardcode_direct_CXX=yes 11968 hardcode_shlibpath_var_CXX=no 11969 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11970 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11971 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11972 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 11973 export_dynamic_flag_spec_CXX='${wl}-E' 11974 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11975 fi 11976 output_verbose_link_cmd='echo' 11977 else 11978 ld_shlibs_CXX=no 11979 fi 11980 ;; 11981 osf3*) 11982 case $cc_basename in 11983 KCC*) 11984 # Kuck and Associates, Inc. (KAI) C++ Compiler 11985 11986 # KCC will only create a shared library if the output file 11987 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11988 # to its proper name (with version) after linking. 11989 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' 11990 11991 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11992 hardcode_libdir_separator_CXX=: 11993 11994 # Archives containing C++ object files must be created using 11995 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11996 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11997 11998 ;; 11999 RCC*) 12000 # Rational C++ 2.4.1 12001 # FIXME: insert proper C++ library support 12002 ld_shlibs_CXX=no 12003 ;; 12004 cxx*) 12005 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12006 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' 12007 12008 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12009 hardcode_libdir_separator_CXX=: 12010 12011 # Commands to make compiler produce verbose output that lists 12012 # what "hidden" libraries, object files and flags are used when 12013 # linking a shared library. 12014 # 12015 # There doesn't appear to be a way to prevent this compiler from 12016 # explicitly linking system object files so we need to strip them 12017 # from the output so that they don't get included in the library 12018 # dependencies. 12019 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' 12020 ;; 12021 *) 12022 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12023 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12024 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' 12025 12026 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12027 hardcode_libdir_separator_CXX=: 12028 12029 # Commands to make compiler produce verbose output that lists 12030 # what "hidden" libraries, object files and flags are used when 12031 # linking a shared library. 12032 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12033 12034 else 12035 # FIXME: insert proper C++ library support 12036 ld_shlibs_CXX=no 12037 fi 12038 ;; 12039 esac 12040 ;; 12041 osf4* | osf5*) 12042 case $cc_basename in 12043 KCC*) 12044 # Kuck and Associates, Inc. (KAI) C++ Compiler 12045 12046 # KCC will only create a shared library if the output file 12047 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12048 # to its proper name (with version) after linking. 12049 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' 12050 12051 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12052 hardcode_libdir_separator_CXX=: 12053 12054 # Archives containing C++ object files must be created using 12055 # the KAI C++ compiler. 12056 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 12057 ;; 12058 RCC*) 12059 # Rational C++ 2.4.1 12060 # FIXME: insert proper C++ library support 12061 ld_shlibs_CXX=no 12062 ;; 12063 cxx*) 12064 allow_undefined_flag_CXX=' -expect_unresolved \*' 12065 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' 12066 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12067 echo "-hidden">> $lib.exp~ 12068 $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~ 12069 $rm $lib.exp' 12070 12071 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12072 hardcode_libdir_separator_CXX=: 12073 12074 # Commands to make compiler produce verbose output that lists 12075 # what "hidden" libraries, object files and flags are used when 12076 # linking a shared library. 12077 # 12078 # There doesn't appear to be a way to prevent this compiler from 12079 # explicitly linking system object files so we need to strip them 12080 # from the output so that they don't get included in the library 12081 # dependencies. 12082 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' 12083 ;; 12084 *) 12085 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12086 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12087 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' 12088 12089 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12090 hardcode_libdir_separator_CXX=: 12091 12092 # Commands to make compiler produce verbose output that lists 12093 # what "hidden" libraries, object files and flags are used when 12094 # linking a shared library. 12095 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12096 12097 else 12098 # FIXME: insert proper C++ library support 12099 ld_shlibs_CXX=no 12100 fi 12101 ;; 12102 esac 12103 ;; 12104 psos*) 12105 # FIXME: insert proper C++ library support 12106 ld_shlibs_CXX=no 12107 ;; 12108 sunos4*) 12109 case $cc_basename in 12110 CC*) 12111 # Sun C++ 4.x 12112 # FIXME: insert proper C++ library support 12113 ld_shlibs_CXX=no 12114 ;; 12115 lcc*) 12116 # Lucid 12117 # FIXME: insert proper C++ library support 12118 ld_shlibs_CXX=no 12119 ;; 12120 *) 12121 # FIXME: insert proper C++ library support 12122 ld_shlibs_CXX=no 12123 ;; 12124 esac 12125 ;; 12126 solaris*) 12127 case $cc_basename in 12128 CC*) 12129 # Sun C++ 4.2, 5.x and Centerline C++ 12130 archive_cmds_need_lc_CXX=yes 12131 no_undefined_flag_CXX=' -zdefs' 12132 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12133 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12134 $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' 12135 12136 hardcode_libdir_flag_spec_CXX='-R$libdir' 12137 hardcode_shlibpath_var_CXX=no 12138 case $host_os in 12139 solaris2.[0-5] | solaris2.[0-5].*) ;; 12140 *) 12141 # The compiler driver will combine and reorder linker options, 12142 # but understands `-z linker_flag'. 12143 # Supported since Solaris 2.6 (maybe 2.5.1?) 12144 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 12145 ;; 12146 esac 12147 link_all_deplibs_CXX=yes 12148 12149 output_verbose_link_cmd='echo' 12150 12151 # Archives containing C++ object files must be created using 12152 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12153 # necessary to make sure instantiated templates are included 12154 # in the archive. 12155 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12156 ;; 12157 gcx*) 12158 # Green Hills C++ Compiler 12159 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12160 12161 # The C++ compiler must be used to create the archive. 12162 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12163 ;; 12164 *) 12165 # GNU C++ compiler with Solaris linker 12166 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12167 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12168 if $CC --version | grep -v '^2\.7' > /dev/null; then 12169 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12170 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12171 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12172 12173 # Commands to make compiler produce verbose output that lists 12174 # what "hidden" libraries, object files and flags are used when 12175 # linking a shared library. 12176 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12177 else 12178 # g++ 2.7 appears to require `-G' NOT `-shared' on this 12179 # platform. 12180 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12181 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12182 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12183 12184 # Commands to make compiler produce verbose output that lists 12185 # what "hidden" libraries, object files and flags are used when 12186 # linking a shared library. 12187 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12188 fi 12189 12190 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12191 case $host_os in 12192 solaris2.[0-5] | solaris2.[0-5].*) ;; 12193 *) 12194 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 12195 ;; 12196 esac 12197 fi 12198 ;; 12199 esac 12200 ;; 12201 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12202 no_undefined_flag_CXX='${wl}-z,text' 12203 archive_cmds_need_lc_CXX=no 12204 hardcode_shlibpath_var_CXX=no 12205 runpath_var='LD_RUN_PATH' 12206 12207 case $cc_basename in 12208 CC*) 12209 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12210 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12211 ;; 12212 *) 12213 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12214 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12215 ;; 12216 esac 12217 ;; 12218 sysv5* | sco3.2v5* | sco5v6*) 12219 # Note: We can NOT use -z defs as we might desire, because we do not 12220 # link with -lc, and that would cause any symbols used from libc to 12221 # always be unresolved, which means just about no library would 12222 # ever link correctly. If we're not using GNU ld we use -z text 12223 # though, which does catch some bad symbols but isn't as heavy-handed 12224 # as -z defs. 12225 # For security reasons, it is highly recommended that you always 12226 # use absolute paths for naming shared libraries, and exclude the 12227 # DT_RUNPATH tag from executables and libraries. But doing so 12228 # requires that you compile everything twice, which is a pain. 12229 # So that behaviour is only enabled if SCOABSPATH is set to a 12230 # non-empty value in the environment. Most likely only useful for 12231 # creating official distributions of packages. 12232 # This is a hack until libtool officially supports absolute path 12233 # names for shared libraries. 12234 no_undefined_flag_CXX='${wl}-z,text' 12235 allow_undefined_flag_CXX='${wl}-z,nodefs' 12236 archive_cmds_need_lc_CXX=no 12237 hardcode_shlibpath_var_CXX=no 12238 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 12239 hardcode_libdir_separator_CXX=':' 12240 link_all_deplibs_CXX=yes 12241 export_dynamic_flag_spec_CXX='${wl}-Bexport' 12242 runpath_var='LD_RUN_PATH' 12243 12244 case $cc_basename in 12245 CC*) 12246 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12247 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12248 ;; 12249 *) 12250 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12251 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12252 ;; 12253 esac 12254 ;; 12255 tandem*) 12256 case $cc_basename in 12257 NCC*) 12258 # NonStop-UX NCC 3.20 12259 # FIXME: insert proper C++ library support 12260 ld_shlibs_CXX=no 12261 ;; 12262 *) 12263 # FIXME: insert proper C++ library support 12264 ld_shlibs_CXX=no 12265 ;; 12266 esac 12267 ;; 12268 vxworks*) 12269 # FIXME: insert proper C++ library support 12270 ld_shlibs_CXX=no 12271 ;; 12272 *) 12273 # FIXME: insert proper C++ library support 12274 ld_shlibs_CXX=no 12275 ;; 12276esac 12277{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12278echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12279test "$ld_shlibs_CXX" = no && can_build_shared=no 12280 12281GCC_CXX="$GXX" 12282LD_CXX="$LD" 12283 12284## CAVEAT EMPTOR: 12285## There is no encapsulation within the following macros, do not change 12286## the running order or otherwise move them around unless you know exactly 12287## what you are doing... 12288 12289cat > conftest.$ac_ext <<EOF 12290class Foo 12291{ 12292public: 12293 Foo (void) { a = 0; } 12294private: 12295 int a; 12296}; 12297EOF 12298 12299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12300 (eval $ac_compile) 2>&5 12301 ac_status=$? 12302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12303 (exit $ac_status); }; then 12304 # Parse the compiler output and extract the necessary 12305 # objects, libraries and library flags. 12306 12307 # Sentinel used to keep track of whether or not we are before 12308 # the conftest object file. 12309 pre_test_object_deps_done=no 12310 12311 # The `*' in the case matches for architectures that use `case' in 12312 # $output_verbose_cmd can trigger glob expansion during the loop 12313 # eval without this substitution. 12314 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 12315 12316 for p in `eval $output_verbose_link_cmd`; do 12317 case $p in 12318 12319 -L* | -R* | -l*) 12320 # Some compilers place space between "-{L,R}" and the path. 12321 # Remove the space. 12322 if test $p = "-L" \ 12323 || test $p = "-R"; then 12324 prev=$p 12325 continue 12326 else 12327 prev= 12328 fi 12329 12330 if test "$pre_test_object_deps_done" = no; then 12331 case $p in 12332 -L* | -R*) 12333 # Internal compiler library paths should come after those 12334 # provided the user. The postdeps already come after the 12335 # user supplied libs so there is no need to process them. 12336 if test -z "$compiler_lib_search_path_CXX"; then 12337 compiler_lib_search_path_CXX="${prev}${p}" 12338 else 12339 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 12340 fi 12341 ;; 12342 # The "-l" case would never come before the object being 12343 # linked, so don't bother handling this case. 12344 esac 12345 else 12346 if test -z "$postdeps_CXX"; then 12347 postdeps_CXX="${prev}${p}" 12348 else 12349 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 12350 fi 12351 fi 12352 ;; 12353 12354 *.$objext) 12355 # This assumes that the test object file only shows up 12356 # once in the compiler output. 12357 if test "$p" = "conftest.$objext"; then 12358 pre_test_object_deps_done=yes 12359 continue 12360 fi 12361 12362 if test "$pre_test_object_deps_done" = no; then 12363 if test -z "$predep_objects_CXX"; then 12364 predep_objects_CXX="$p" 12365 else 12366 predep_objects_CXX="$predep_objects_CXX $p" 12367 fi 12368 else 12369 if test -z "$postdep_objects_CXX"; then 12370 postdep_objects_CXX="$p" 12371 else 12372 postdep_objects_CXX="$postdep_objects_CXX $p" 12373 fi 12374 fi 12375 ;; 12376 12377 *) ;; # Ignore the rest. 12378 12379 esac 12380 done 12381 12382 # Clean up. 12383 rm -f a.out a.exe 12384else 12385 echo "libtool.m4: error: problem compiling CXX test program" 12386fi 12387 12388$rm -f confest.$objext 12389 12390# PORTME: override above test on systems where it is broken 12391case $host_os in 12392interix[3-9]*) 12393 # Interix 3.5 installs completely hosed .la files for C++, so rather than 12394 # hack all around it, let's just trust "g++" to DTRT. 12395 predep_objects_CXX= 12396 postdep_objects_CXX= 12397 postdeps_CXX= 12398 ;; 12399 12400linux*) 12401 case `$CC -V 2>&1 | sed 5q` in 12402 *Sun\ C*) 12403 # Sun C++ 5.9 12404 # 12405 # The more standards-conforming stlport4 library is 12406 # incompatible with the Cstd library. Avoid specifying 12407 # it if it's in CXXFLAGS. Ignore libCrun as 12408 # -library=stlport4 depends on it. 12409 case " $CXX $CXXFLAGS " in 12410 *" -library=stlport4 "*) 12411 solaris_use_stlport4=yes 12412 ;; 12413 esac 12414 if test "$solaris_use_stlport4" != yes; then 12415 postdeps_CXX='-library=Cstd -library=Crun' 12416 fi 12417 ;; 12418 esac 12419 ;; 12420 12421solaris*) 12422 case $cc_basename in 12423 CC*) 12424 # The more standards-conforming stlport4 library is 12425 # incompatible with the Cstd library. Avoid specifying 12426 # it if it's in CXXFLAGS. Ignore libCrun as 12427 # -library=stlport4 depends on it. 12428 case " $CXX $CXXFLAGS " in 12429 *" -library=stlport4 "*) 12430 solaris_use_stlport4=yes 12431 ;; 12432 esac 12433 12434 # Adding this requires a known-good setup of shared libraries for 12435 # Sun compiler versions before 5.6, else PIC objects from an old 12436 # archive will be linked into the output, leading to subtle bugs. 12437 if test "$solaris_use_stlport4" != yes; then 12438 postdeps_CXX='-library=Cstd -library=Crun' 12439 fi 12440 ;; 12441 esac 12442 ;; 12443esac 12444 12445 12446case " $postdeps_CXX " in 12447*" -lc "*) archive_cmds_need_lc_CXX=no ;; 12448esac 12449 12450lt_prog_compiler_wl_CXX= 12451lt_prog_compiler_pic_CXX= 12452lt_prog_compiler_static_CXX= 12453 12454{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12455echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 12456 12457 # C++ specific cases for pic, static, wl, etc. 12458 if test "$GXX" = yes; then 12459 lt_prog_compiler_wl_CXX='-Wl,' 12460 lt_prog_compiler_static_CXX='-static' 12461 12462 case $host_os in 12463 aix*) 12464 # All AIX code is PIC. 12465 if test "$host_cpu" = ia64; then 12466 # AIX 5 now supports IA64 processor 12467 lt_prog_compiler_static_CXX='-Bstatic' 12468 fi 12469 ;; 12470 amigaos*) 12471 # FIXME: we need at least 68020 code to build shared libraries, but 12472 # adding the `-m68020' flag to GCC prevents building anything better, 12473 # like `-m68040'. 12474 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12475 ;; 12476 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12477 # PIC is the default for these OSes. 12478 ;; 12479 mingw* | cygwin* | os2* | pw32*) 12480 # This hack is so that the source file can tell whether it is being 12481 # built for inclusion in a dll (and should export symbols for example). 12482 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12483 # (--disable-auto-import) libraries 12484 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 12485 ;; 12486 darwin* | rhapsody*) 12487 # PIC is the default on this platform 12488 # Common symbols not allowed in MH_DYLIB files 12489 lt_prog_compiler_pic_CXX='-fno-common' 12490 ;; 12491 *djgpp*) 12492 # DJGPP does not support shared libraries at all 12493 lt_prog_compiler_pic_CXX= 12494 ;; 12495 interix[3-9]*) 12496 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12497 # Instead, we relocate shared libraries at runtime. 12498 ;; 12499 sysv4*MP*) 12500 if test -d /usr/nec; then 12501 lt_prog_compiler_pic_CXX=-Kconform_pic 12502 fi 12503 ;; 12504 hpux*) 12505 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12506 # not for PA HP-UX. 12507 case $host_cpu in 12508 hppa*64*|ia64*) 12509 ;; 12510 *) 12511 lt_prog_compiler_pic_CXX='-fPIC' 12512 ;; 12513 esac 12514 ;; 12515 *) 12516 lt_prog_compiler_pic_CXX='-fPIC' 12517 ;; 12518 esac 12519 else 12520 case $host_os in 12521 aix4* | aix5*) 12522 # All AIX code is PIC. 12523 if test "$host_cpu" = ia64; then 12524 # AIX 5 now supports IA64 processor 12525 lt_prog_compiler_static_CXX='-Bstatic' 12526 else 12527 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12528 fi 12529 ;; 12530 chorus*) 12531 case $cc_basename in 12532 cxch68*) 12533 # Green Hills C++ Compiler 12534 # _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" 12535 ;; 12536 esac 12537 ;; 12538 darwin*) 12539 # PIC is the default on this platform 12540 # Common symbols not allowed in MH_DYLIB files 12541 case $cc_basename in 12542 xlc*) 12543 lt_prog_compiler_pic_CXX='-qnocommon' 12544 lt_prog_compiler_wl_CXX='-Wl,' 12545 ;; 12546 esac 12547 ;; 12548 dgux*) 12549 case $cc_basename in 12550 ec++*) 12551 lt_prog_compiler_pic_CXX='-KPIC' 12552 ;; 12553 ghcx*) 12554 # Green Hills C++ Compiler 12555 lt_prog_compiler_pic_CXX='-pic' 12556 ;; 12557 *) 12558 ;; 12559 esac 12560 ;; 12561 freebsd* | dragonfly*) 12562 # FreeBSD uses GNU C++ 12563 ;; 12564 hpux9* | hpux10* | hpux11*) 12565 case $cc_basename in 12566 CC*) 12567 lt_prog_compiler_wl_CXX='-Wl,' 12568 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12569 if test "$host_cpu" != ia64; then 12570 lt_prog_compiler_pic_CXX='+Z' 12571 fi 12572 ;; 12573 aCC*) 12574 lt_prog_compiler_wl_CXX='-Wl,' 12575 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12576 case $host_cpu in 12577 hppa*64*|ia64*) 12578 # +Z the default 12579 ;; 12580 *) 12581 lt_prog_compiler_pic_CXX='+Z' 12582 ;; 12583 esac 12584 ;; 12585 *) 12586 ;; 12587 esac 12588 ;; 12589 interix*) 12590 # This is c89, which is MS Visual C++ (no shared libs) 12591 # Anyone wants to do a port? 12592 ;; 12593 irix5* | irix6* | nonstopux*) 12594 case $cc_basename in 12595 CC*) 12596 lt_prog_compiler_wl_CXX='-Wl,' 12597 lt_prog_compiler_static_CXX='-non_shared' 12598 # CC pic flag -KPIC is the default. 12599 ;; 12600 *) 12601 ;; 12602 esac 12603 ;; 12604 linux* | k*bsd*-gnu) 12605 case $cc_basename in 12606 KCC*) 12607 # KAI C++ Compiler 12608 lt_prog_compiler_wl_CXX='--backend -Wl,' 12609 lt_prog_compiler_pic_CXX='-fPIC' 12610 ;; 12611 icpc* | ecpc*) 12612 # Intel C++ 12613 lt_prog_compiler_wl_CXX='-Wl,' 12614 lt_prog_compiler_pic_CXX='-KPIC' 12615 lt_prog_compiler_static_CXX='-static' 12616 ;; 12617 pgCC*) 12618 # Portland Group C++ compiler. 12619 lt_prog_compiler_wl_CXX='-Wl,' 12620 lt_prog_compiler_pic_CXX='-fpic' 12621 lt_prog_compiler_static_CXX='-Bstatic' 12622 ;; 12623 cxx*) 12624 # Compaq C++ 12625 # Make sure the PIC flag is empty. It appears that all Alpha 12626 # Linux and Compaq Tru64 Unix objects are PIC. 12627 lt_prog_compiler_pic_CXX= 12628 lt_prog_compiler_static_CXX='-non_shared' 12629 ;; 12630 *) 12631 case `$CC -V 2>&1 | sed 5q` in 12632 *Sun\ C*) 12633 # Sun C++ 5.9 12634 lt_prog_compiler_pic_CXX='-KPIC' 12635 lt_prog_compiler_static_CXX='-Bstatic' 12636 lt_prog_compiler_wl_CXX='-Qoption ld ' 12637 ;; 12638 esac 12639 ;; 12640 esac 12641 ;; 12642 lynxos*) 12643 ;; 12644 m88k*) 12645 ;; 12646 mvs*) 12647 case $cc_basename in 12648 cxx*) 12649 lt_prog_compiler_pic_CXX='-W c,exportall' 12650 ;; 12651 *) 12652 ;; 12653 esac 12654 ;; 12655 netbsd*) 12656 ;; 12657 osf3* | osf4* | osf5*) 12658 case $cc_basename in 12659 KCC*) 12660 lt_prog_compiler_wl_CXX='--backend -Wl,' 12661 ;; 12662 RCC*) 12663 # Rational C++ 2.4.1 12664 lt_prog_compiler_pic_CXX='-pic' 12665 ;; 12666 cxx*) 12667 # Digital/Compaq C++ 12668 lt_prog_compiler_wl_CXX='-Wl,' 12669 # Make sure the PIC flag is empty. It appears that all Alpha 12670 # Linux and Compaq Tru64 Unix objects are PIC. 12671 lt_prog_compiler_pic_CXX= 12672 lt_prog_compiler_static_CXX='-non_shared' 12673 ;; 12674 *) 12675 ;; 12676 esac 12677 ;; 12678 psos*) 12679 ;; 12680 solaris*) 12681 case $cc_basename in 12682 CC*) 12683 # Sun C++ 4.2, 5.x and Centerline C++ 12684 lt_prog_compiler_pic_CXX='-KPIC' 12685 lt_prog_compiler_static_CXX='-Bstatic' 12686 lt_prog_compiler_wl_CXX='-Qoption ld ' 12687 ;; 12688 gcx*) 12689 # Green Hills C++ Compiler 12690 lt_prog_compiler_pic_CXX='-PIC' 12691 ;; 12692 *) 12693 ;; 12694 esac 12695 ;; 12696 sunos4*) 12697 case $cc_basename in 12698 CC*) 12699 # Sun C++ 4.x 12700 lt_prog_compiler_pic_CXX='-pic' 12701 lt_prog_compiler_static_CXX='-Bstatic' 12702 ;; 12703 lcc*) 12704 # Lucid 12705 lt_prog_compiler_pic_CXX='-pic' 12706 ;; 12707 *) 12708 ;; 12709 esac 12710 ;; 12711 tandem*) 12712 case $cc_basename in 12713 NCC*) 12714 # NonStop-UX NCC 3.20 12715 lt_prog_compiler_pic_CXX='-KPIC' 12716 ;; 12717 *) 12718 ;; 12719 esac 12720 ;; 12721 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12722 case $cc_basename in 12723 CC*) 12724 lt_prog_compiler_wl_CXX='-Wl,' 12725 lt_prog_compiler_pic_CXX='-KPIC' 12726 lt_prog_compiler_static_CXX='-Bstatic' 12727 ;; 12728 esac 12729 ;; 12730 vxworks*) 12731 ;; 12732 *) 12733 lt_prog_compiler_can_build_shared_CXX=no 12734 ;; 12735 esac 12736 fi 12737 12738{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12739echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } 12740 12741# 12742# Check to make sure the PIC flag actually works. 12743# 12744if test -n "$lt_prog_compiler_pic_CXX"; then 12745 12746{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12747echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } 12748if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 12749 echo $ECHO_N "(cached) $ECHO_C" >&6 12750else 12751 lt_prog_compiler_pic_works_CXX=no 12752 ac_outfile=conftest.$ac_objext 12753 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12754 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12755 # Insert the option either (1) after the last *FLAGS variable, or 12756 # (2) before a word containing "conftest.", or (3) at the end. 12757 # Note that $ac_compile itself does not contain backslashes and begins 12758 # with a dollar sign (not a hyphen), so the echo should work correctly. 12759 # The option is referenced via a variable to avoid confusing sed. 12760 lt_compile=`echo "$ac_compile" | $SED \ 12761 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12762 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12763 -e 's:$: $lt_compiler_flag:'` 12764 (eval echo "\"\$as_me:12764: $lt_compile\"" >&5) 12765 (eval "$lt_compile" 2>conftest.err) 12766 ac_status=$? 12767 cat conftest.err >&5 12768 echo "$as_me:12768: \$? = $ac_status" >&5 12769 if (exit $ac_status) && test -s "$ac_outfile"; then 12770 # The compiler can only warn and ignore the option if not recognized 12771 # So say no if there are warnings other than the usual output. 12772 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12773 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12774 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12775 lt_prog_compiler_pic_works_CXX=yes 12776 fi 12777 fi 12778 $rm conftest* 12779 12780fi 12781{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 12782echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } 12783 12784if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 12785 case $lt_prog_compiler_pic_CXX in 12786 "" | " "*) ;; 12787 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12788 esac 12789else 12790 lt_prog_compiler_pic_CXX= 12791 lt_prog_compiler_can_build_shared_CXX=no 12792fi 12793 12794fi 12795case $host_os in 12796 # For platforms which do not support PIC, -DPIC is meaningless: 12797 *djgpp*) 12798 lt_prog_compiler_pic_CXX= 12799 ;; 12800 *) 12801 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12802 ;; 12803esac 12804 12805# 12806# Check to make sure the static flag actually works. 12807# 12808wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 12809{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12810echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 12811if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 12812 echo $ECHO_N "(cached) $ECHO_C" >&6 12813else 12814 lt_prog_compiler_static_works_CXX=no 12815 save_LDFLAGS="$LDFLAGS" 12816 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12817 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12818 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12819 # The linker can only warn and ignore the option if not recognized 12820 # So say no if there are warnings 12821 if test -s conftest.err; then 12822 # Append any errors to the config.log. 12823 cat conftest.err 1>&5 12824 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 12825 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12826 if diff conftest.exp conftest.er2 >/dev/null; then 12827 lt_prog_compiler_static_works_CXX=yes 12828 fi 12829 else 12830 lt_prog_compiler_static_works_CXX=yes 12831 fi 12832 fi 12833 $rm conftest* 12834 LDFLAGS="$save_LDFLAGS" 12835 12836fi 12837{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 12838echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } 12839 12840if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 12841 : 12842else 12843 lt_prog_compiler_static_CXX= 12844fi 12845 12846 12847{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12848echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 12849if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 12850 echo $ECHO_N "(cached) $ECHO_C" >&6 12851else 12852 lt_cv_prog_compiler_c_o_CXX=no 12853 $rm -r conftest 2>/dev/null 12854 mkdir conftest 12855 cd conftest 12856 mkdir out 12857 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12858 12859 lt_compiler_flag="-o out/conftest2.$ac_objext" 12860 # Insert the option either (1) after the last *FLAGS variable, or 12861 # (2) before a word containing "conftest.", or (3) at the end. 12862 # Note that $ac_compile itself does not contain backslashes and begins 12863 # with a dollar sign (not a hyphen), so the echo should work correctly. 12864 lt_compile=`echo "$ac_compile" | $SED \ 12865 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12866 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12867 -e 's:$: $lt_compiler_flag:'` 12868 (eval echo "\"\$as_me:12868: $lt_compile\"" >&5) 12869 (eval "$lt_compile" 2>out/conftest.err) 12870 ac_status=$? 12871 cat out/conftest.err >&5 12872 echo "$as_me:12872: \$? = $ac_status" >&5 12873 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12874 then 12875 # The compiler can only warn and ignore the option if not recognized 12876 # So say no if there are warnings 12877 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 12878 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12879 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12880 lt_cv_prog_compiler_c_o_CXX=yes 12881 fi 12882 fi 12883 chmod u+w . 2>&5 12884 $rm conftest* 12885 # SGI C++ compiler will create directory out/ii_files/ for 12886 # template instantiation 12887 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 12888 $rm out/* && rmdir out 12889 cd .. 12890 rmdir conftest 12891 $rm conftest* 12892 12893fi 12894{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 12895echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } 12896 12897 12898hard_links="nottested" 12899if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 12900 # do not overwrite the value of need_locks provided by the user 12901 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 12902echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 12903 hard_links=yes 12904 $rm conftest* 12905 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12906 touch conftest.a 12907 ln conftest.a conftest.b 2>&5 || hard_links=no 12908 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12909 { echo "$as_me:$LINENO: result: $hard_links" >&5 12910echo "${ECHO_T}$hard_links" >&6; } 12911 if test "$hard_links" = no; then 12912 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12913echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12914 need_locks=warn 12915 fi 12916else 12917 need_locks=no 12918fi 12919 12920{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12921echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 12922 12923 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12924 case $host_os in 12925 aix4* | aix5*) 12926 # If we're using GNU nm, then we don't want the "-C" option. 12927 # -C means demangle to AIX nm, but means don't demangle with GNU nm 12928 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 12929 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' 12930 else 12931 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' 12932 fi 12933 ;; 12934 pw32*) 12935 export_symbols_cmds_CXX="$ltdll_cmds" 12936 ;; 12937 cygwin* | mingw*) 12938 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' 12939 ;; 12940 *) 12941 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12942 ;; 12943 esac 12944 12945{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12946echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12947test "$ld_shlibs_CXX" = no && can_build_shared=no 12948 12949# 12950# Do we need to explicitly link libc? 12951# 12952case "x$archive_cmds_need_lc_CXX" in 12953x|xyes) 12954 # Assume -lc should be added 12955 archive_cmds_need_lc_CXX=yes 12956 12957 if test "$enable_shared" = yes && test "$GCC" = yes; then 12958 case $archive_cmds_CXX in 12959 *'~'*) 12960 # FIXME: we may have to deal with multi-command sequences. 12961 ;; 12962 '$CC '*) 12963 # Test whether the compiler implicitly links with -lc since on some 12964 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12965 # to ld, don't add -lc before -lgcc. 12966 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 12967echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 12968 $rm conftest* 12969 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12970 12971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12972 (eval $ac_compile) 2>&5 12973 ac_status=$? 12974 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12975 (exit $ac_status); } 2>conftest.err; then 12976 soname=conftest 12977 lib=conftest 12978 libobjs=conftest.$ac_objext 12979 deplibs= 12980 wl=$lt_prog_compiler_wl_CXX 12981 pic_flag=$lt_prog_compiler_pic_CXX 12982 compiler_flags=-v 12983 linker_flags=-v 12984 verstring= 12985 output_objdir=. 12986 libname=conftest 12987 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 12988 allow_undefined_flag_CXX= 12989 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 12990 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 12991 ac_status=$? 12992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12993 (exit $ac_status); } 12994 then 12995 archive_cmds_need_lc_CXX=no 12996 else 12997 archive_cmds_need_lc_CXX=yes 12998 fi 12999 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 13000 else 13001 cat conftest.err 1>&5 13002 fi 13003 $rm conftest* 13004 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 13005echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } 13006 ;; 13007 esac 13008 fi 13009 ;; 13010esac 13011 13012{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 13013echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 13014library_names_spec= 13015libname_spec='lib$name' 13016soname_spec= 13017shrext_cmds=".so" 13018postinstall_cmds= 13019postuninstall_cmds= 13020finish_cmds= 13021finish_eval= 13022shlibpath_var= 13023shlibpath_overrides_runpath=unknown 13024version_type=none 13025dynamic_linker="$host_os ld.so" 13026sys_lib_dlsearch_path_spec="/lib /usr/lib" 13027 13028need_lib_prefix=unknown 13029hardcode_into_libs=no 13030 13031# when you set need_version to no, make sure it does not cause -set_version 13032# flags to be left without arguments 13033need_version=unknown 13034 13035case $host_os in 13036aix3*) 13037 version_type=linux 13038 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13039 shlibpath_var=LIBPATH 13040 13041 # AIX 3 has no versioning support, so we append a major version to the name. 13042 soname_spec='${libname}${release}${shared_ext}$major' 13043 ;; 13044 13045aix4* | aix5*) 13046 version_type=linux 13047 need_lib_prefix=no 13048 need_version=no 13049 hardcode_into_libs=yes 13050 if test "$host_cpu" = ia64; then 13051 # AIX 5 supports IA64 13052 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13053 shlibpath_var=LD_LIBRARY_PATH 13054 else 13055 # With GCC up to 2.95.x, collect2 would create an import file 13056 # for dependence libraries. The import file would start with 13057 # the line `#! .'. This would cause the generated library to 13058 # depend on `.', always an invalid library. This was fixed in 13059 # development snapshots of GCC prior to 3.0. 13060 case $host_os in 13061 aix4 | aix4.[01] | aix4.[01].*) 13062 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13063 echo ' yes ' 13064 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 13065 : 13066 else 13067 can_build_shared=no 13068 fi 13069 ;; 13070 esac 13071 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13072 # soname into executable. Probably we can add versioning support to 13073 # collect2, so additional links can be useful in future. 13074 if test "$aix_use_runtimelinking" = yes; then 13075 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13076 # instead of lib<name>.a to let people know that these are not 13077 # typical AIX shared libraries. 13078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13079 else 13080 # We preserve .a as extension for shared libraries through AIX4.2 13081 # and later when we are not doing run time linking. 13082 library_names_spec='${libname}${release}.a $libname.a' 13083 soname_spec='${libname}${release}${shared_ext}$major' 13084 fi 13085 shlibpath_var=LIBPATH 13086 fi 13087 ;; 13088 13089amigaos*) 13090 library_names_spec='$libname.ixlibrary $libname.a' 13091 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13092 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' 13093 ;; 13094 13095beos*) 13096 library_names_spec='${libname}${shared_ext}' 13097 dynamic_linker="$host_os ld.so" 13098 shlibpath_var=LIBRARY_PATH 13099 ;; 13100 13101bsdi[45]*) 13102 version_type=linux 13103 need_version=no 13104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13105 soname_spec='${libname}${release}${shared_ext}$major' 13106 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13107 shlibpath_var=LD_LIBRARY_PATH 13108 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13109 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13110 # the default ld.so.conf also contains /usr/contrib/lib and 13111 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13112 # libtool to hard-code these into programs 13113 ;; 13114 13115cygwin* | mingw* | pw32*) 13116 version_type=windows 13117 shrext_cmds=".dll" 13118 need_version=no 13119 need_lib_prefix=no 13120 13121 case $GCC,$host_os in 13122 yes,cygwin* | yes,mingw* | yes,pw32*) 13123 library_names_spec='$libname.dll.a' 13124 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13125 postinstall_cmds='base_file=`basename \${file}`~ 13126 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 13127 dldir=$destdir/`dirname \$dlpath`~ 13128 test -d \$dldir || mkdir -p \$dldir~ 13129 $install_prog $dir/$dlname \$dldir/$dlname~ 13130 chmod a+x \$dldir/$dlname' 13131 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13132 dlpath=$dir/\$dldll~ 13133 $rm \$dlpath' 13134 shlibpath_overrides_runpath=yes 13135 13136 case $host_os in 13137 cygwin*) 13138 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13139 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13140 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 13141 ;; 13142 mingw*) 13143 # MinGW DLLs use traditional 'lib' prefix 13144 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13145 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13146 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 13147 # It is most probably a Windows format PATH printed by 13148 # mingw gcc, but we are running on Cygwin. Gcc prints its search 13149 # path with ; separators, and with drive letters. We can handle the 13150 # drive letters (cygwin fileutils understands them), so leave them, 13151 # especially as we might pass files found there to a mingw objdump, 13152 # which wouldn't understand a cygwinified path. Ahh. 13153 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13154 else 13155 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13156 fi 13157 ;; 13158 pw32*) 13159 # pw32 DLLs use 'pw' prefix rather than 'lib' 13160 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13161 ;; 13162 esac 13163 ;; 13164 13165 *) 13166 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13167 ;; 13168 esac 13169 dynamic_linker='Win32 ld.exe' 13170 # FIXME: first we should search . and the directory the executable is in 13171 shlibpath_var=PATH 13172 ;; 13173 13174darwin* | rhapsody*) 13175 dynamic_linker="$host_os dyld" 13176 version_type=darwin 13177 need_lib_prefix=no 13178 need_version=no 13179 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13180 soname_spec='${libname}${release}${major}$shared_ext' 13181 shlibpath_overrides_runpath=yes 13182 shlibpath_var=DYLD_LIBRARY_PATH 13183 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13184 13185 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13186 ;; 13187 13188dgux*) 13189 version_type=linux 13190 need_lib_prefix=no 13191 need_version=no 13192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13193 soname_spec='${libname}${release}${shared_ext}$major' 13194 shlibpath_var=LD_LIBRARY_PATH 13195 ;; 13196 13197freebsd1*) 13198 dynamic_linker=no 13199 ;; 13200 13201freebsd* | dragonfly*) 13202 # DragonFly does not have aout. When/if they implement a new 13203 # versioning mechanism, adjust this. 13204 if test -x /usr/bin/objformat; then 13205 objformat=`/usr/bin/objformat` 13206 else 13207 case $host_os in 13208 freebsd[123]*) objformat=aout ;; 13209 *) objformat=elf ;; 13210 esac 13211 fi 13212 version_type=freebsd-$objformat 13213 case $version_type in 13214 freebsd-elf*) 13215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13216 need_version=no 13217 need_lib_prefix=no 13218 ;; 13219 freebsd-*) 13220 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13221 need_version=yes 13222 ;; 13223 esac 13224 shlibpath_var=LD_LIBRARY_PATH 13225 case $host_os in 13226 freebsd2*) 13227 shlibpath_overrides_runpath=yes 13228 ;; 13229 freebsd3.[01]* | freebsdelf3.[01]*) 13230 shlibpath_overrides_runpath=yes 13231 hardcode_into_libs=yes 13232 ;; 13233 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13234 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13235 shlibpath_overrides_runpath=no 13236 hardcode_into_libs=yes 13237 ;; 13238 *) # from 4.6 on, and DragonFly 13239 shlibpath_overrides_runpath=yes 13240 hardcode_into_libs=yes 13241 ;; 13242 esac 13243 ;; 13244 13245gnu*) 13246 version_type=linux 13247 need_lib_prefix=no 13248 need_version=no 13249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13250 soname_spec='${libname}${release}${shared_ext}$major' 13251 shlibpath_var=LD_LIBRARY_PATH 13252 hardcode_into_libs=yes 13253 ;; 13254 13255hpux9* | hpux10* | hpux11*) 13256 # Give a soname corresponding to the major version so that dld.sl refuses to 13257 # link against other versions. 13258 version_type=sunos 13259 need_lib_prefix=no 13260 need_version=no 13261 case $host_cpu in 13262 ia64*) 13263 shrext_cmds='.so' 13264 hardcode_into_libs=yes 13265 dynamic_linker="$host_os dld.so" 13266 shlibpath_var=LD_LIBRARY_PATH 13267 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13269 soname_spec='${libname}${release}${shared_ext}$major' 13270 if test "X$HPUX_IA64_MODE" = X32; then 13271 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13272 else 13273 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13274 fi 13275 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13276 ;; 13277 hppa*64*) 13278 shrext_cmds='.sl' 13279 hardcode_into_libs=yes 13280 dynamic_linker="$host_os dld.sl" 13281 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13282 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13284 soname_spec='${libname}${release}${shared_ext}$major' 13285 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13286 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13287 ;; 13288 *) 13289 shrext_cmds='.sl' 13290 dynamic_linker="$host_os dld.sl" 13291 shlibpath_var=SHLIB_PATH 13292 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13294 soname_spec='${libname}${release}${shared_ext}$major' 13295 ;; 13296 esac 13297 # HP-UX runs *really* slowly unless shared libraries are mode 555. 13298 postinstall_cmds='chmod 555 $lib' 13299 ;; 13300 13301interix[3-9]*) 13302 version_type=linux 13303 need_lib_prefix=no 13304 need_version=no 13305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13306 soname_spec='${libname}${release}${shared_ext}$major' 13307 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13308 shlibpath_var=LD_LIBRARY_PATH 13309 shlibpath_overrides_runpath=no 13310 hardcode_into_libs=yes 13311 ;; 13312 13313irix5* | irix6* | nonstopux*) 13314 case $host_os in 13315 nonstopux*) version_type=nonstopux ;; 13316 *) 13317 if test "$lt_cv_prog_gnu_ld" = yes; then 13318 version_type=linux 13319 else 13320 version_type=irix 13321 fi ;; 13322 esac 13323 need_lib_prefix=no 13324 need_version=no 13325 soname_spec='${libname}${release}${shared_ext}$major' 13326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13327 case $host_os in 13328 irix5* | nonstopux*) 13329 libsuff= shlibsuff= 13330 ;; 13331 *) 13332 case $LD in # libtool.m4 will add one of these switches to LD 13333 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13334 libsuff= shlibsuff= libmagic=32-bit;; 13335 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13336 libsuff=32 shlibsuff=N32 libmagic=N32;; 13337 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13338 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13339 *) libsuff= shlibsuff= libmagic=never-match;; 13340 esac 13341 ;; 13342 esac 13343 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13344 shlibpath_overrides_runpath=no 13345 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13346 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13347 hardcode_into_libs=yes 13348 ;; 13349 13350# No shared lib support for Linux oldld, aout, or coff. 13351linux*oldld* | linux*aout* | linux*coff*) 13352 dynamic_linker=no 13353 ;; 13354 13355# This must be Linux ELF. 13356linux* | k*bsd*-gnu) 13357 version_type=linux 13358 need_lib_prefix=no 13359 need_version=no 13360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13361 soname_spec='${libname}${release}${shared_ext}$major' 13362 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13363 shlibpath_var=LD_LIBRARY_PATH 13364 shlibpath_overrides_runpath=no 13365 # This implies no fast_install, which is unacceptable. 13366 # Some rework will be needed to allow for fast_install 13367 # before this can be enabled. 13368 hardcode_into_libs=yes 13369 13370 # Append ld.so.conf contents to the search path 13371 if test -f /etc/ld.so.conf; then 13372 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/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 13373 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 13374 fi 13375 13376 # We used to test for /lib/ld.so.1 and disable shared libraries on 13377 # powerpc, because MkLinux only supported shared libraries with the 13378 # GNU dynamic linker. Since this was broken with cross compilers, 13379 # most powerpc-linux boxes support dynamic linking these days and 13380 # people can always --disable-shared, the test was removed, and we 13381 # assume the GNU/Linux dynamic linker is in use. 13382 dynamic_linker='GNU/Linux ld.so' 13383 ;; 13384 13385netbsd*) 13386 version_type=sunos 13387 need_lib_prefix=no 13388 need_version=no 13389 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13391 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13392 dynamic_linker='NetBSD (a.out) ld.so' 13393 else 13394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13395 soname_spec='${libname}${release}${shared_ext}$major' 13396 dynamic_linker='NetBSD ld.elf_so' 13397 fi 13398 shlibpath_var=LD_LIBRARY_PATH 13399 shlibpath_overrides_runpath=yes 13400 hardcode_into_libs=yes 13401 ;; 13402 13403newsos6) 13404 version_type=linux 13405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13406 shlibpath_var=LD_LIBRARY_PATH 13407 shlibpath_overrides_runpath=yes 13408 ;; 13409 13410nto-qnx*) 13411 version_type=linux 13412 need_lib_prefix=no 13413 need_version=no 13414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13415 soname_spec='${libname}${release}${shared_ext}$major' 13416 shlibpath_var=LD_LIBRARY_PATH 13417 shlibpath_overrides_runpath=yes 13418 ;; 13419 13420openbsd*) 13421 version_type=sunos 13422 sys_lib_dlsearch_path_spec="/usr/lib" 13423 need_lib_prefix=no 13424 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 13425 case $host_os in 13426 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 13427 *) need_version=no ;; 13428 esac 13429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13430 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13431 shlibpath_var=LD_LIBRARY_PATH 13432 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13433 case $host_os in 13434 openbsd2.[89] | openbsd2.[89].*) 13435 shlibpath_overrides_runpath=no 13436 ;; 13437 *) 13438 shlibpath_overrides_runpath=yes 13439 ;; 13440 esac 13441 else 13442 shlibpath_overrides_runpath=yes 13443 fi 13444 ;; 13445 13446os2*) 13447 libname_spec='$name' 13448 shrext_cmds=".dll" 13449 need_lib_prefix=no 13450 library_names_spec='$libname${shared_ext} $libname.a' 13451 dynamic_linker='OS/2 ld.exe' 13452 shlibpath_var=LIBPATH 13453 ;; 13454 13455osf3* | osf4* | osf5*) 13456 version_type=osf 13457 need_lib_prefix=no 13458 need_version=no 13459 soname_spec='${libname}${release}${shared_ext}$major' 13460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13461 shlibpath_var=LD_LIBRARY_PATH 13462 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13463 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13464 ;; 13465 13466rdos*) 13467 dynamic_linker=no 13468 ;; 13469 13470solaris*) 13471 version_type=linux 13472 need_lib_prefix=no 13473 need_version=no 13474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13475 soname_spec='${libname}${release}${shared_ext}$major' 13476 shlibpath_var=LD_LIBRARY_PATH 13477 shlibpath_overrides_runpath=yes 13478 hardcode_into_libs=yes 13479 # ldd complains unless libraries are executable 13480 postinstall_cmds='chmod +x $lib' 13481 ;; 13482 13483sunos4*) 13484 version_type=sunos 13485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13486 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13487 shlibpath_var=LD_LIBRARY_PATH 13488 shlibpath_overrides_runpath=yes 13489 if test "$with_gnu_ld" = yes; then 13490 need_lib_prefix=no 13491 fi 13492 need_version=yes 13493 ;; 13494 13495sysv4 | sysv4.3*) 13496 version_type=linux 13497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13498 soname_spec='${libname}${release}${shared_ext}$major' 13499 shlibpath_var=LD_LIBRARY_PATH 13500 case $host_vendor in 13501 sni) 13502 shlibpath_overrides_runpath=no 13503 need_lib_prefix=no 13504 export_dynamic_flag_spec='${wl}-Blargedynsym' 13505 runpath_var=LD_RUN_PATH 13506 ;; 13507 siemens) 13508 need_lib_prefix=no 13509 ;; 13510 motorola) 13511 need_lib_prefix=no 13512 need_version=no 13513 shlibpath_overrides_runpath=no 13514 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13515 ;; 13516 esac 13517 ;; 13518 13519sysv4*MP*) 13520 if test -d /usr/nec ;then 13521 version_type=linux 13522 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13523 soname_spec='$libname${shared_ext}.$major' 13524 shlibpath_var=LD_LIBRARY_PATH 13525 fi 13526 ;; 13527 13528sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13529 version_type=freebsd-elf 13530 need_lib_prefix=no 13531 need_version=no 13532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13533 soname_spec='${libname}${release}${shared_ext}$major' 13534 shlibpath_var=LD_LIBRARY_PATH 13535 hardcode_into_libs=yes 13536 if test "$with_gnu_ld" = yes; then 13537 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13538 shlibpath_overrides_runpath=no 13539 else 13540 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13541 shlibpath_overrides_runpath=yes 13542 case $host_os in 13543 sco3.2v5*) 13544 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13545 ;; 13546 esac 13547 fi 13548 sys_lib_dlsearch_path_spec='/usr/lib' 13549 ;; 13550 13551uts4*) 13552 version_type=linux 13553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13554 soname_spec='${libname}${release}${shared_ext}$major' 13555 shlibpath_var=LD_LIBRARY_PATH 13556 ;; 13557 13558*) 13559 dynamic_linker=no 13560 ;; 13561esac 13562{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13563echo "${ECHO_T}$dynamic_linker" >&6; } 13564test "$dynamic_linker" = no && can_build_shared=no 13565 13566variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13567if test "$GCC" = yes; then 13568 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13569fi 13570 13571{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13572echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 13573hardcode_action_CXX= 13574if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13575 test -n "$runpath_var_CXX" || \ 13576 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13577 13578 # We can hardcode non-existant directories. 13579 if test "$hardcode_direct_CXX" != no && 13580 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13581 # have to relink, otherwise we might link with an installed library 13582 # when we should be linking with a yet-to-be-installed one 13583 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13584 test "$hardcode_minus_L_CXX" != no; then 13585 # Linking always hardcodes the temporary library directory. 13586 hardcode_action_CXX=relink 13587 else 13588 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13589 hardcode_action_CXX=immediate 13590 fi 13591else 13592 # We cannot hardcode anything, or else we can only hardcode existing 13593 # directories. 13594 hardcode_action_CXX=unsupported 13595fi 13596{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13597echo "${ECHO_T}$hardcode_action_CXX" >&6; } 13598 13599if test "$hardcode_action_CXX" = relink; then 13600 # Fast installation is not supported 13601 enable_fast_install=no 13602elif test "$shlibpath_overrides_runpath" = yes || 13603 test "$enable_shared" = no; then 13604 # Fast installation is not necessary 13605 enable_fast_install=needless 13606fi 13607 13608 13609# The else clause should only fire when bootstrapping the 13610# libtool distribution, otherwise you forgot to ship ltmain.sh 13611# with your package, and you will get complaints that there are 13612# no rules to generate ltmain.sh. 13613if test -f "$ltmain"; then 13614 # See if we are running on zsh, and set the options which allow our commands through 13615 # without removal of \ escapes. 13616 if test -n "${ZSH_VERSION+set}" ; then 13617 setopt NO_GLOB_SUBST 13618 fi 13619 # Now quote all the things that may contain metacharacters while being 13620 # careful not to overquote the AC_SUBSTed values. We take copies of the 13621 # variables and quote the copies for generation of the libtool script. 13622 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13623 SED SHELL STRIP \ 13624 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13625 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13626 deplibs_check_method reload_flag reload_cmds need_locks \ 13627 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13628 lt_cv_sys_global_symbol_to_c_name_address \ 13629 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13630 old_postinstall_cmds old_postuninstall_cmds \ 13631 compiler_CXX \ 13632 CC_CXX \ 13633 LD_CXX \ 13634 lt_prog_compiler_wl_CXX \ 13635 lt_prog_compiler_pic_CXX \ 13636 lt_prog_compiler_static_CXX \ 13637 lt_prog_compiler_no_builtin_flag_CXX \ 13638 export_dynamic_flag_spec_CXX \ 13639 thread_safe_flag_spec_CXX \ 13640 whole_archive_flag_spec_CXX \ 13641 enable_shared_with_static_runtimes_CXX \ 13642 old_archive_cmds_CXX \ 13643 old_archive_from_new_cmds_CXX \ 13644 predep_objects_CXX \ 13645 postdep_objects_CXX \ 13646 predeps_CXX \ 13647 postdeps_CXX \ 13648 compiler_lib_search_path_CXX \ 13649 archive_cmds_CXX \ 13650 archive_expsym_cmds_CXX \ 13651 postinstall_cmds_CXX \ 13652 postuninstall_cmds_CXX \ 13653 old_archive_from_expsyms_cmds_CXX \ 13654 allow_undefined_flag_CXX \ 13655 no_undefined_flag_CXX \ 13656 export_symbols_cmds_CXX \ 13657 hardcode_libdir_flag_spec_CXX \ 13658 hardcode_libdir_flag_spec_ld_CXX \ 13659 hardcode_libdir_separator_CXX \ 13660 hardcode_automatic_CXX \ 13661 module_cmds_CXX \ 13662 module_expsym_cmds_CXX \ 13663 lt_cv_prog_compiler_c_o_CXX \ 13664 fix_srcfile_path_CXX \ 13665 exclude_expsyms_CXX \ 13666 include_expsyms_CXX; do 13667 13668 case $var in 13669 old_archive_cmds_CXX | \ 13670 old_archive_from_new_cmds_CXX | \ 13671 archive_cmds_CXX | \ 13672 archive_expsym_cmds_CXX | \ 13673 module_cmds_CXX | \ 13674 module_expsym_cmds_CXX | \ 13675 old_archive_from_expsyms_cmds_CXX | \ 13676 export_symbols_cmds_CXX | \ 13677 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13678 postinstall_cmds | postuninstall_cmds | \ 13679 old_postinstall_cmds | old_postuninstall_cmds | \ 13680 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13681 # Double-quote double-evaled strings. 13682 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13683 ;; 13684 *) 13685 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13686 ;; 13687 esac 13688 done 13689 13690 case $lt_echo in 13691 *'\$0 --fallback-echo"') 13692 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13693 ;; 13694 esac 13695 13696cfgfile="$ofile" 13697 13698 cat <<__EOF__ >> "$cfgfile" 13699# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13700 13701# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13702 13703# Shell to use when invoking shell scripts. 13704SHELL=$lt_SHELL 13705 13706# Whether or not to build shared libraries. 13707build_libtool_libs=$enable_shared 13708 13709# Whether or not to build static libraries. 13710build_old_libs=$enable_static 13711 13712# Whether or not to add -lc for building shared libraries. 13713build_libtool_need_lc=$archive_cmds_need_lc_CXX 13714 13715# Whether or not to disallow shared libs when runtime libs are static 13716allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13717 13718# Whether or not to optimize for fast installation. 13719fast_install=$enable_fast_install 13720 13721# The host system. 13722host_alias=$host_alias 13723host=$host 13724host_os=$host_os 13725 13726# The build system. 13727build_alias=$build_alias 13728build=$build 13729build_os=$build_os 13730 13731# An echo program that does not interpret backslashes. 13732echo=$lt_echo 13733 13734# The archiver. 13735AR=$lt_AR 13736AR_FLAGS=$lt_AR_FLAGS 13737 13738# A C compiler. 13739LTCC=$lt_LTCC 13740 13741# LTCC compiler flags. 13742LTCFLAGS=$lt_LTCFLAGS 13743 13744# A language-specific compiler. 13745CC=$lt_compiler_CXX 13746 13747# Is the compiler the GNU C compiler? 13748with_gcc=$GCC_CXX 13749 13750# An ERE matcher. 13751EGREP=$lt_EGREP 13752 13753# The linker used to build libraries. 13754LD=$lt_LD_CXX 13755 13756# Whether we need hard or soft links. 13757LN_S=$lt_LN_S 13758 13759# A BSD-compatible nm program. 13760NM=$lt_NM 13761 13762# A symbol stripping program 13763STRIP=$lt_STRIP 13764 13765# Used to examine libraries when file_magic_cmd begins "file" 13766MAGIC_CMD=$MAGIC_CMD 13767 13768# Used on cygwin: DLL creation program. 13769DLLTOOL="$DLLTOOL" 13770 13771# Used on cygwin: object dumper. 13772OBJDUMP="$OBJDUMP" 13773 13774# Used on cygwin: assembler. 13775AS="$AS" 13776 13777# The name of the directory that contains temporary libtool files. 13778objdir=$objdir 13779 13780# How to create reloadable object files. 13781reload_flag=$lt_reload_flag 13782reload_cmds=$lt_reload_cmds 13783 13784# How to pass a linker flag through the compiler. 13785wl=$lt_lt_prog_compiler_wl_CXX 13786 13787# Object file suffix (normally "o"). 13788objext="$ac_objext" 13789 13790# Old archive suffix (normally "a"). 13791libext="$libext" 13792 13793# Shared library suffix (normally ".so"). 13794shrext_cmds='$shrext_cmds' 13795 13796# Executable file suffix (normally ""). 13797exeext="$exeext" 13798 13799# Additional compiler flags for building library objects. 13800pic_flag=$lt_lt_prog_compiler_pic_CXX 13801pic_mode=$pic_mode 13802 13803# What is the maximum length of a command? 13804max_cmd_len=$lt_cv_sys_max_cmd_len 13805 13806# Does compiler simultaneously support -c and -o options? 13807compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13808 13809# Must we lock files when doing compilation? 13810need_locks=$lt_need_locks 13811 13812# Do we need the lib prefix for modules? 13813need_lib_prefix=$need_lib_prefix 13814 13815# Do we need a version for libraries? 13816need_version=$need_version 13817 13818# Whether dlopen is supported. 13819dlopen_support=$enable_dlopen 13820 13821# Whether dlopen of programs is supported. 13822dlopen_self=$enable_dlopen_self 13823 13824# Whether dlopen of statically linked programs is supported. 13825dlopen_self_static=$enable_dlopen_self_static 13826 13827# Compiler flag to prevent dynamic linking. 13828link_static_flag=$lt_lt_prog_compiler_static_CXX 13829 13830# Compiler flag to turn off builtin functions. 13831no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13832 13833# Compiler flag to allow reflexive dlopens. 13834export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13835 13836# Compiler flag to generate shared objects directly from archives. 13837whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13838 13839# Compiler flag to generate thread-safe objects. 13840thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13841 13842# Library versioning type. 13843version_type=$version_type 13844 13845# Format of library name prefix. 13846libname_spec=$lt_libname_spec 13847 13848# List of archive names. First name is the real one, the rest are links. 13849# The last name is the one that the linker finds with -lNAME. 13850library_names_spec=$lt_library_names_spec 13851 13852# The coded name of the library, if different from the real name. 13853soname_spec=$lt_soname_spec 13854 13855# Commands used to build and install an old-style archive. 13856RANLIB=$lt_RANLIB 13857old_archive_cmds=$lt_old_archive_cmds_CXX 13858old_postinstall_cmds=$lt_old_postinstall_cmds 13859old_postuninstall_cmds=$lt_old_postuninstall_cmds 13860 13861# Create an old-style archive from a shared archive. 13862old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13863 13864# Create a temporary old-style archive to link instead of a shared archive. 13865old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13866 13867# Commands used to build and install a shared archive. 13868archive_cmds=$lt_archive_cmds_CXX 13869archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13870postinstall_cmds=$lt_postinstall_cmds 13871postuninstall_cmds=$lt_postuninstall_cmds 13872 13873# Commands used to build a loadable module (assumed same as above if empty) 13874module_cmds=$lt_module_cmds_CXX 13875module_expsym_cmds=$lt_module_expsym_cmds_CXX 13876 13877# Commands to strip libraries. 13878old_striplib=$lt_old_striplib 13879striplib=$lt_striplib 13880 13881# Dependencies to place before the objects being linked to create a 13882# shared library. 13883predep_objects=$lt_predep_objects_CXX 13884 13885# Dependencies to place after the objects being linked to create a 13886# shared library. 13887postdep_objects=$lt_postdep_objects_CXX 13888 13889# Dependencies to place before the objects being linked to create a 13890# shared library. 13891predeps=$lt_predeps_CXX 13892 13893# Dependencies to place after the objects being linked to create a 13894# shared library. 13895postdeps=$lt_postdeps_CXX 13896 13897# The library search path used internally by the compiler when linking 13898# a shared library. 13899compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 13900 13901# Method to check whether dependent libraries are shared objects. 13902deplibs_check_method=$lt_deplibs_check_method 13903 13904# Command to use when deplibs_check_method == file_magic. 13905file_magic_cmd=$lt_file_magic_cmd 13906 13907# Flag that allows shared libraries with undefined symbols to be built. 13908allow_undefined_flag=$lt_allow_undefined_flag_CXX 13909 13910# Flag that forces no undefined symbols. 13911no_undefined_flag=$lt_no_undefined_flag_CXX 13912 13913# Commands used to finish a libtool library installation in a directory. 13914finish_cmds=$lt_finish_cmds 13915 13916# Same as above, but a single script fragment to be evaled but not shown. 13917finish_eval=$lt_finish_eval 13918 13919# Take the output of nm and produce a listing of raw symbols and C names. 13920global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13921 13922# Transform the output of nm in a proper C declaration 13923global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13924 13925# Transform the output of nm in a C name address pair 13926global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13927 13928# This is the shared library runtime path variable. 13929runpath_var=$runpath_var 13930 13931# This is the shared library path variable. 13932shlibpath_var=$shlibpath_var 13933 13934# Is shlibpath searched before the hard-coded library search path? 13935shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13936 13937# How to hardcode a shared library path into an executable. 13938hardcode_action=$hardcode_action_CXX 13939 13940# Whether we should hardcode library paths into libraries. 13941hardcode_into_libs=$hardcode_into_libs 13942 13943# Flag to hardcode \$libdir into a binary during linking. 13944# This must work even if \$libdir does not exist. 13945hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 13946 13947# If ld is used when linking, flag to hardcode \$libdir into 13948# a binary during linking. This must work even if \$libdir does 13949# not exist. 13950hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 13951 13952# Whether we need a single -rpath flag with a separated argument. 13953hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 13954 13955# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13956# resulting binary. 13957hardcode_direct=$hardcode_direct_CXX 13958 13959# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13960# resulting binary. 13961hardcode_minus_L=$hardcode_minus_L_CXX 13962 13963# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13964# the resulting binary. 13965hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 13966 13967# Set to yes if building a shared library automatically hardcodes DIR into the library 13968# and all subsequent libraries and executables linked against it. 13969hardcode_automatic=$hardcode_automatic_CXX 13970 13971# Variables whose values should be saved in libtool wrapper scripts and 13972# restored at relink time. 13973variables_saved_for_relink="$variables_saved_for_relink" 13974 13975# Whether libtool must link a program against all its dependency libraries. 13976link_all_deplibs=$link_all_deplibs_CXX 13977 13978# Compile-time system search path for libraries 13979sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13980 13981# Run-time system search path for libraries 13982sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13983 13984# Fix the shell variable \$srcfile for the compiler. 13985fix_srcfile_path=$lt_fix_srcfile_path 13986 13987# Set to yes if exported symbols are required. 13988always_export_symbols=$always_export_symbols_CXX 13989 13990# The commands to list exported symbols. 13991export_symbols_cmds=$lt_export_symbols_cmds_CXX 13992 13993# The commands to extract the exported symbol list from a shared archive. 13994extract_expsyms_cmds=$lt_extract_expsyms_cmds 13995 13996# Symbols that should not be listed in the preloaded symbols. 13997exclude_expsyms=$lt_exclude_expsyms_CXX 13998 13999# Symbols that must always be exported. 14000include_expsyms=$lt_include_expsyms_CXX 14001 14002# ### END LIBTOOL TAG CONFIG: $tagname 14003 14004__EOF__ 14005 14006 14007else 14008 # If there is no Makefile yet, we rely on a make rule to execute 14009 # `config.status --recheck' to rerun these tests and create the 14010 # libtool script then. 14011 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 14012 if test -f "$ltmain_in"; then 14013 test -f Makefile && make "$ltmain" 14014 fi 14015fi 14016 14017 14018ac_ext=c 14019ac_cpp='$CPP $CPPFLAGS' 14020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14022ac_compiler_gnu=$ac_cv_c_compiler_gnu 14023 14024CC=$lt_save_CC 14025LDCXX=$LD 14026LD=$lt_save_LD 14027GCC=$lt_save_GCC 14028with_gnu_ldcxx=$with_gnu_ld 14029with_gnu_ld=$lt_save_with_gnu_ld 14030lt_cv_path_LDCXX=$lt_cv_path_LD 14031lt_cv_path_LD=$lt_save_path_LD 14032lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 14033lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 14034 14035 else 14036 tagname="" 14037 fi 14038 ;; 14039 14040 F77) 14041 if test -n "$F77" && test "X$F77" != "Xno"; then 14042 14043ac_ext=f 14044ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 14045ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14046ac_compiler_gnu=$ac_cv_f77_compiler_gnu 14047 14048 14049archive_cmds_need_lc_F77=no 14050allow_undefined_flag_F77= 14051always_export_symbols_F77=no 14052archive_expsym_cmds_F77= 14053export_dynamic_flag_spec_F77= 14054hardcode_direct_F77=no 14055hardcode_libdir_flag_spec_F77= 14056hardcode_libdir_flag_spec_ld_F77= 14057hardcode_libdir_separator_F77= 14058hardcode_minus_L_F77=no 14059hardcode_automatic_F77=no 14060module_cmds_F77= 14061module_expsym_cmds_F77= 14062link_all_deplibs_F77=unknown 14063old_archive_cmds_F77=$old_archive_cmds 14064no_undefined_flag_F77= 14065whole_archive_flag_spec_F77= 14066enable_shared_with_static_runtimes_F77=no 14067 14068# Source file extension for f77 test sources. 14069ac_ext=f 14070 14071# Object file extension for compiled f77 test sources. 14072objext=o 14073objext_F77=$objext 14074 14075# Code to be used in simple compile tests 14076lt_simple_compile_test_code="\ 14077 subroutine t 14078 return 14079 end 14080" 14081 14082# Code to be used in simple link tests 14083lt_simple_link_test_code="\ 14084 program t 14085 end 14086" 14087 14088# ltmain only uses $CC for tagged configurations so make sure $CC is set. 14089 14090# If no C compiler was specified, use CC. 14091LTCC=${LTCC-"$CC"} 14092 14093# If no C compiler flags were specified, use CFLAGS. 14094LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14095 14096# Allow CC to be a program name with arguments. 14097compiler=$CC 14098 14099 14100# save warnings/boilerplate of simple test code 14101ac_outfile=conftest.$ac_objext 14102echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14103eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14104_lt_compiler_boilerplate=`cat conftest.err` 14105$rm conftest* 14106 14107ac_outfile=conftest.$ac_objext 14108echo "$lt_simple_link_test_code" >conftest.$ac_ext 14109eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14110_lt_linker_boilerplate=`cat conftest.err` 14111$rm conftest* 14112 14113 14114# Allow CC to be a program name with arguments. 14115lt_save_CC="$CC" 14116CC=${F77-"f77"} 14117compiler=$CC 14118compiler_F77=$CC 14119for cc_temp in $compiler""; do 14120 case $cc_temp in 14121 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14122 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14123 \-*) ;; 14124 *) break;; 14125 esac 14126done 14127cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14128 14129 14130{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 14131echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 14132{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 14133echo "${ECHO_T}$can_build_shared" >&6; } 14134 14135{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 14136echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 14137test "$can_build_shared" = "no" && enable_shared=no 14138 14139# On AIX, shared libraries and static libraries use the same namespace, and 14140# are all built from PIC. 14141case $host_os in 14142aix3*) 14143 test "$enable_shared" = yes && enable_static=no 14144 if test -n "$RANLIB"; then 14145 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14146 postinstall_cmds='$RANLIB $lib' 14147 fi 14148 ;; 14149aix4* | aix5*) 14150 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 14151 test "$enable_shared" = yes && enable_static=no 14152 fi 14153 ;; 14154esac 14155{ echo "$as_me:$LINENO: result: $enable_shared" >&5 14156echo "${ECHO_T}$enable_shared" >&6; } 14157 14158{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 14159echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 14160# Make sure either enable_shared or enable_static is yes. 14161test "$enable_shared" = yes || enable_static=yes 14162{ echo "$as_me:$LINENO: result: $enable_static" >&5 14163echo "${ECHO_T}$enable_static" >&6; } 14164 14165GCC_F77="$G77" 14166LD_F77="$LD" 14167 14168lt_prog_compiler_wl_F77= 14169lt_prog_compiler_pic_F77= 14170lt_prog_compiler_static_F77= 14171 14172{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14173echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 14174 14175 if test "$GCC" = yes; then 14176 lt_prog_compiler_wl_F77='-Wl,' 14177 lt_prog_compiler_static_F77='-static' 14178 14179 case $host_os in 14180 aix*) 14181 # All AIX code is PIC. 14182 if test "$host_cpu" = ia64; then 14183 # AIX 5 now supports IA64 processor 14184 lt_prog_compiler_static_F77='-Bstatic' 14185 fi 14186 ;; 14187 14188 amigaos*) 14189 # FIXME: we need at least 68020 code to build shared libraries, but 14190 # adding the `-m68020' flag to GCC prevents building anything better, 14191 # like `-m68040'. 14192 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 14193 ;; 14194 14195 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14196 # PIC is the default for these OSes. 14197 ;; 14198 14199 mingw* | cygwin* | pw32* | os2*) 14200 # This hack is so that the source file can tell whether it is being 14201 # built for inclusion in a dll (and should export symbols for example). 14202 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14203 # (--disable-auto-import) libraries 14204 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14205 ;; 14206 14207 darwin* | rhapsody*) 14208 # PIC is the default on this platform 14209 # Common symbols not allowed in MH_DYLIB files 14210 lt_prog_compiler_pic_F77='-fno-common' 14211 ;; 14212 14213 interix[3-9]*) 14214 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14215 # Instead, we relocate shared libraries at runtime. 14216 ;; 14217 14218 msdosdjgpp*) 14219 # Just because we use GCC doesn't mean we suddenly get shared libraries 14220 # on systems that don't support them. 14221 lt_prog_compiler_can_build_shared_F77=no 14222 enable_shared=no 14223 ;; 14224 14225 sysv4*MP*) 14226 if test -d /usr/nec; then 14227 lt_prog_compiler_pic_F77=-Kconform_pic 14228 fi 14229 ;; 14230 14231 hpux*) 14232 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14233 # not for PA HP-UX. 14234 case $host_cpu in 14235 hppa*64*|ia64*) 14236 # +Z the default 14237 ;; 14238 *) 14239 lt_prog_compiler_pic_F77='-fPIC' 14240 ;; 14241 esac 14242 ;; 14243 14244 *) 14245 lt_prog_compiler_pic_F77='-fPIC' 14246 ;; 14247 esac 14248 else 14249 # PORTME Check for flag to pass linker flags through the system compiler. 14250 case $host_os in 14251 aix*) 14252 lt_prog_compiler_wl_F77='-Wl,' 14253 if test "$host_cpu" = ia64; then 14254 # AIX 5 now supports IA64 processor 14255 lt_prog_compiler_static_F77='-Bstatic' 14256 else 14257 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 14258 fi 14259 ;; 14260 darwin*) 14261 # PIC is the default on this platform 14262 # Common symbols not allowed in MH_DYLIB files 14263 case $cc_basename in 14264 xlc*) 14265 lt_prog_compiler_pic_F77='-qnocommon' 14266 lt_prog_compiler_wl_F77='-Wl,' 14267 ;; 14268 esac 14269 ;; 14270 14271 mingw* | cygwin* | pw32* | os2*) 14272 # This hack is so that the source file can tell whether it is being 14273 # built for inclusion in a dll (and should export symbols for example). 14274 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14275 ;; 14276 14277 hpux9* | hpux10* | hpux11*) 14278 lt_prog_compiler_wl_F77='-Wl,' 14279 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14280 # not for PA HP-UX. 14281 case $host_cpu in 14282 hppa*64*|ia64*) 14283 # +Z the default 14284 ;; 14285 *) 14286 lt_prog_compiler_pic_F77='+Z' 14287 ;; 14288 esac 14289 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14290 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 14291 ;; 14292 14293 irix5* | irix6* | nonstopux*) 14294 lt_prog_compiler_wl_F77='-Wl,' 14295 # PIC (with -KPIC) is the default. 14296 lt_prog_compiler_static_F77='-non_shared' 14297 ;; 14298 14299 newsos6) 14300 lt_prog_compiler_pic_F77='-KPIC' 14301 lt_prog_compiler_static_F77='-Bstatic' 14302 ;; 14303 14304 linux* | k*bsd*-gnu) 14305 case $cc_basename in 14306 icc* | ecc*) 14307 lt_prog_compiler_wl_F77='-Wl,' 14308 lt_prog_compiler_pic_F77='-KPIC' 14309 lt_prog_compiler_static_F77='-static' 14310 ;; 14311 pgcc* | pgf77* | pgf90* | pgf95*) 14312 # Portland Group compilers (*not* the Pentium gcc compiler, 14313 # which looks to be a dead project) 14314 lt_prog_compiler_wl_F77='-Wl,' 14315 lt_prog_compiler_pic_F77='-fpic' 14316 lt_prog_compiler_static_F77='-Bstatic' 14317 ;; 14318 ccc*) 14319 lt_prog_compiler_wl_F77='-Wl,' 14320 # All Alpha code is PIC. 14321 lt_prog_compiler_static_F77='-non_shared' 14322 ;; 14323 como) 14324 lt_prog_compiler_wl_F77='-lopt=' 14325 ;; 14326 *) 14327 case `$CC -V 2>&1 | sed 5q` in 14328 *Sun\ C*) 14329 # Sun C 5.9 14330 lt_prog_compiler_pic_F77='-KPIC' 14331 lt_prog_compiler_static_F77='-Bstatic' 14332 lt_prog_compiler_wl_F77='-Wl,' 14333 ;; 14334 *Sun\ F*) 14335 # Sun Fortran 8.3 passes all unrecognized flags to the linker 14336 lt_prog_compiler_pic_F77='-KPIC' 14337 lt_prog_compiler_static_F77='-Bstatic' 14338 lt_prog_compiler_wl_F77='' 14339 ;; 14340 esac 14341 ;; 14342 esac 14343 ;; 14344 14345 osf3* | osf4* | osf5*) 14346 lt_prog_compiler_wl_F77='-Wl,' 14347 # All OSF/1 code is PIC. 14348 lt_prog_compiler_static_F77='-non_shared' 14349 ;; 14350 14351 rdos*) 14352 lt_prog_compiler_static_F77='-non_shared' 14353 ;; 14354 14355 solaris*) 14356 lt_prog_compiler_pic_F77='-KPIC' 14357 lt_prog_compiler_static_F77='-Bstatic' 14358 case $cc_basename in 14359 f77* | f90* | f95*) 14360 lt_prog_compiler_wl_F77='-Qoption ld ';; 14361 *) 14362 lt_prog_compiler_wl_F77='-Wl,';; 14363 esac 14364 ;; 14365 14366 sunos4*) 14367 lt_prog_compiler_wl_F77='-Qoption ld ' 14368 lt_prog_compiler_pic_F77='-PIC' 14369 lt_prog_compiler_static_F77='-Bstatic' 14370 ;; 14371 14372 sysv4 | sysv4.2uw2* | sysv4.3*) 14373 lt_prog_compiler_wl_F77='-Wl,' 14374 lt_prog_compiler_pic_F77='-KPIC' 14375 lt_prog_compiler_static_F77='-Bstatic' 14376 ;; 14377 14378 sysv4*MP*) 14379 if test -d /usr/nec ;then 14380 lt_prog_compiler_pic_F77='-Kconform_pic' 14381 lt_prog_compiler_static_F77='-Bstatic' 14382 fi 14383 ;; 14384 14385 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14386 lt_prog_compiler_wl_F77='-Wl,' 14387 lt_prog_compiler_pic_F77='-KPIC' 14388 lt_prog_compiler_static_F77='-Bstatic' 14389 ;; 14390 14391 unicos*) 14392 lt_prog_compiler_wl_F77='-Wl,' 14393 lt_prog_compiler_can_build_shared_F77=no 14394 ;; 14395 14396 uts4*) 14397 lt_prog_compiler_pic_F77='-pic' 14398 lt_prog_compiler_static_F77='-Bstatic' 14399 ;; 14400 14401 *) 14402 lt_prog_compiler_can_build_shared_F77=no 14403 ;; 14404 esac 14405 fi 14406 14407{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 14408echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } 14409 14410# 14411# Check to make sure the PIC flag actually works. 14412# 14413if test -n "$lt_prog_compiler_pic_F77"; then 14414 14415{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 14416echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } 14417if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 14418 echo $ECHO_N "(cached) $ECHO_C" >&6 14419else 14420 lt_prog_compiler_pic_works_F77=no 14421 ac_outfile=conftest.$ac_objext 14422 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14423 lt_compiler_flag="$lt_prog_compiler_pic_F77" 14424 # Insert the option either (1) after the last *FLAGS variable, or 14425 # (2) before a word containing "conftest.", or (3) at the end. 14426 # Note that $ac_compile itself does not contain backslashes and begins 14427 # with a dollar sign (not a hyphen), so the echo should work correctly. 14428 # The option is referenced via a variable to avoid confusing sed. 14429 lt_compile=`echo "$ac_compile" | $SED \ 14430 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14431 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14432 -e 's:$: $lt_compiler_flag:'` 14433 (eval echo "\"\$as_me:14433: $lt_compile\"" >&5) 14434 (eval "$lt_compile" 2>conftest.err) 14435 ac_status=$? 14436 cat conftest.err >&5 14437 echo "$as_me:14437: \$? = $ac_status" >&5 14438 if (exit $ac_status) && test -s "$ac_outfile"; then 14439 # The compiler can only warn and ignore the option if not recognized 14440 # So say no if there are warnings other than the usual output. 14441 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14442 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14443 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14444 lt_prog_compiler_pic_works_F77=yes 14445 fi 14446 fi 14447 $rm conftest* 14448 14449fi 14450{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 14451echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } 14452 14453if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 14454 case $lt_prog_compiler_pic_F77 in 14455 "" | " "*) ;; 14456 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 14457 esac 14458else 14459 lt_prog_compiler_pic_F77= 14460 lt_prog_compiler_can_build_shared_F77=no 14461fi 14462 14463fi 14464case $host_os in 14465 # For platforms which do not support PIC, -DPIC is meaningless: 14466 *djgpp*) 14467 lt_prog_compiler_pic_F77= 14468 ;; 14469 *) 14470 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 14471 ;; 14472esac 14473 14474# 14475# Check to make sure the static flag actually works. 14476# 14477wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 14478{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14479echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 14480if test "${lt_prog_compiler_static_works_F77+set}" = set; then 14481 echo $ECHO_N "(cached) $ECHO_C" >&6 14482else 14483 lt_prog_compiler_static_works_F77=no 14484 save_LDFLAGS="$LDFLAGS" 14485 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14486 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14487 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14488 # The linker can only warn and ignore the option if not recognized 14489 # So say no if there are warnings 14490 if test -s conftest.err; then 14491 # Append any errors to the config.log. 14492 cat conftest.err 1>&5 14493 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14494 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14495 if diff conftest.exp conftest.er2 >/dev/null; then 14496 lt_prog_compiler_static_works_F77=yes 14497 fi 14498 else 14499 lt_prog_compiler_static_works_F77=yes 14500 fi 14501 fi 14502 $rm conftest* 14503 LDFLAGS="$save_LDFLAGS" 14504 14505fi 14506{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 14507echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } 14508 14509if test x"$lt_prog_compiler_static_works_F77" = xyes; then 14510 : 14511else 14512 lt_prog_compiler_static_F77= 14513fi 14514 14515 14516{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14517echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 14518if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 14519 echo $ECHO_N "(cached) $ECHO_C" >&6 14520else 14521 lt_cv_prog_compiler_c_o_F77=no 14522 $rm -r conftest 2>/dev/null 14523 mkdir conftest 14524 cd conftest 14525 mkdir out 14526 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14527 14528 lt_compiler_flag="-o out/conftest2.$ac_objext" 14529 # Insert the option either (1) after the last *FLAGS variable, or 14530 # (2) before a word containing "conftest.", or (3) at the end. 14531 # Note that $ac_compile itself does not contain backslashes and begins 14532 # with a dollar sign (not a hyphen), so the echo should work correctly. 14533 lt_compile=`echo "$ac_compile" | $SED \ 14534 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14535 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14536 -e 's:$: $lt_compiler_flag:'` 14537 (eval echo "\"\$as_me:14537: $lt_compile\"" >&5) 14538 (eval "$lt_compile" 2>out/conftest.err) 14539 ac_status=$? 14540 cat out/conftest.err >&5 14541 echo "$as_me:14541: \$? = $ac_status" >&5 14542 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14543 then 14544 # The compiler can only warn and ignore the option if not recognized 14545 # So say no if there are warnings 14546 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14547 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14548 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14549 lt_cv_prog_compiler_c_o_F77=yes 14550 fi 14551 fi 14552 chmod u+w . 2>&5 14553 $rm conftest* 14554 # SGI C++ compiler will create directory out/ii_files/ for 14555 # template instantiation 14556 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14557 $rm out/* && rmdir out 14558 cd .. 14559 rmdir conftest 14560 $rm conftest* 14561 14562fi 14563{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14564echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } 14565 14566 14567hard_links="nottested" 14568if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14569 # do not overwrite the value of need_locks provided by the user 14570 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14571echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 14572 hard_links=yes 14573 $rm conftest* 14574 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14575 touch conftest.a 14576 ln conftest.a conftest.b 2>&5 || hard_links=no 14577 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14578 { echo "$as_me:$LINENO: result: $hard_links" >&5 14579echo "${ECHO_T}$hard_links" >&6; } 14580 if test "$hard_links" = no; then 14581 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14582echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14583 need_locks=warn 14584 fi 14585else 14586 need_locks=no 14587fi 14588 14589{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14590echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 14591 14592 runpath_var= 14593 allow_undefined_flag_F77= 14594 enable_shared_with_static_runtimes_F77=no 14595 archive_cmds_F77= 14596 archive_expsym_cmds_F77= 14597 old_archive_From_new_cmds_F77= 14598 old_archive_from_expsyms_cmds_F77= 14599 export_dynamic_flag_spec_F77= 14600 whole_archive_flag_spec_F77= 14601 thread_safe_flag_spec_F77= 14602 hardcode_libdir_flag_spec_F77= 14603 hardcode_libdir_flag_spec_ld_F77= 14604 hardcode_libdir_separator_F77= 14605 hardcode_direct_F77=no 14606 hardcode_minus_L_F77=no 14607 hardcode_shlibpath_var_F77=unsupported 14608 link_all_deplibs_F77=unknown 14609 hardcode_automatic_F77=no 14610 module_cmds_F77= 14611 module_expsym_cmds_F77= 14612 always_export_symbols_F77=no 14613 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14614 # include_expsyms should be a list of space-separated symbols to be *always* 14615 # included in the symbol list 14616 include_expsyms_F77= 14617 # exclude_expsyms can be an extended regexp of symbols to exclude 14618 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14619 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14620 # as well as any symbol that contains `d'. 14621 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 14622 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14623 # platforms (ab)use it in PIC code, but their linkers get confused if 14624 # the symbol is explicitly referenced. Since portable code cannot 14625 # rely on this symbol name, it's probably fine to never include it in 14626 # preloaded symbol tables. 14627 extract_expsyms_cmds= 14628 # Just being paranoid about ensuring that cc_basename is set. 14629 for cc_temp in $compiler""; do 14630 case $cc_temp in 14631 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14632 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14633 \-*) ;; 14634 *) break;; 14635 esac 14636done 14637cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14638 14639 case $host_os in 14640 cygwin* | mingw* | pw32*) 14641 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14642 # When not using gcc, we currently assume that we are using 14643 # Microsoft Visual C++. 14644 if test "$GCC" != yes; then 14645 with_gnu_ld=no 14646 fi 14647 ;; 14648 interix*) 14649 # we just hope/assume this is gcc and not c89 (= MSVC++) 14650 with_gnu_ld=yes 14651 ;; 14652 openbsd*) 14653 with_gnu_ld=no 14654 ;; 14655 esac 14656 14657 ld_shlibs_F77=yes 14658 if test "$with_gnu_ld" = yes; then 14659 # If archive_cmds runs LD, not CC, wlarc should be empty 14660 wlarc='${wl}' 14661 14662 # Set some defaults for GNU ld with shared library support. These 14663 # are reset later if shared libraries are not supported. Putting them 14664 # here allows them to be overridden if necessary. 14665 runpath_var=LD_RUN_PATH 14666 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14667 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14668 # ancient GNU ld didn't support --whole-archive et. al. 14669 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14670 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14671 else 14672 whole_archive_flag_spec_F77= 14673 fi 14674 supports_anon_versioning=no 14675 case `$LD -v 2>/dev/null` in 14676 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14677 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14678 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14679 *\ 2.11.*) ;; # other 2.11 versions 14680 *) supports_anon_versioning=yes ;; 14681 esac 14682 14683 # See if GNU ld supports shared libraries. 14684 case $host_os in 14685 aix3* | aix4* | aix5*) 14686 # On AIX/PPC, the GNU linker is very broken 14687 if test "$host_cpu" != ia64; then 14688 ld_shlibs_F77=no 14689 cat <<EOF 1>&2 14690 14691*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14692*** to be unable to reliably create shared libraries on AIX. 14693*** Therefore, libtool is disabling shared libraries support. If you 14694*** really care for shared libraries, you may want to modify your PATH 14695*** so that a non-GNU linker is found, and then restart. 14696 14697EOF 14698 fi 14699 ;; 14700 14701 amigaos*) 14702 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)' 14703 hardcode_libdir_flag_spec_F77='-L$libdir' 14704 hardcode_minus_L_F77=yes 14705 14706 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14707 # that the semantics of dynamic libraries on AmigaOS, at least up 14708 # to version 4, is to share data among multiple programs linked 14709 # with the same dynamic library. Since this doesn't match the 14710 # behavior of shared libraries on other platforms, we can't use 14711 # them. 14712 ld_shlibs_F77=no 14713 ;; 14714 14715 beos*) 14716 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14717 allow_undefined_flag_F77=unsupported 14718 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14719 # support --undefined. This deserves some investigation. FIXME 14720 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14721 else 14722 ld_shlibs_F77=no 14723 fi 14724 ;; 14725 14726 cygwin* | mingw* | pw32*) 14727 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14728 # as there is no search path for DLLs. 14729 hardcode_libdir_flag_spec_F77='-L$libdir' 14730 allow_undefined_flag_F77=unsupported 14731 always_export_symbols_F77=no 14732 enable_shared_with_static_runtimes_F77=yes 14733 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 14734 14735 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14736 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14737 # If the export-symbols file already is a .def file (1st line 14738 # is EXPORTS), use it as is; otherwise, prepend... 14739 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14740 cp $export_symbols $output_objdir/$soname.def; 14741 else 14742 echo EXPORTS > $output_objdir/$soname.def; 14743 cat $export_symbols >> $output_objdir/$soname.def; 14744 fi~ 14745 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14746 else 14747 ld_shlibs_F77=no 14748 fi 14749 ;; 14750 14751 interix[3-9]*) 14752 hardcode_direct_F77=no 14753 hardcode_shlibpath_var_F77=no 14754 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14755 export_dynamic_flag_spec_F77='${wl}-E' 14756 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14757 # Instead, shared libraries are loaded at an image base (0x10000000 by 14758 # default) and relocated if they conflict, which is a slow very memory 14759 # consuming and fragmenting process. To avoid this, we pick a random, 14760 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14761 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14762 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' 14763 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' 14764 ;; 14765 14766 gnu* | linux* | k*bsd*-gnu) 14767 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14768 tmp_addflag= 14769 case $cc_basename,$host_cpu in 14770 pgcc*) # Portland Group C compiler 14771 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' 14772 tmp_addflag=' $pic_flag' 14773 ;; 14774 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14775 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' 14776 tmp_addflag=' $pic_flag -Mnomain' ;; 14777 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14778 tmp_addflag=' -i_dynamic' ;; 14779 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14780 tmp_addflag=' -i_dynamic -nofor_main' ;; 14781 ifc* | ifort*) # Intel Fortran compiler 14782 tmp_addflag=' -nofor_main' ;; 14783 esac 14784 case `$CC -V 2>&1 | sed 5q` in 14785 *Sun\ C*) # Sun C 5.9 14786 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' 14787 tmp_sharedflag='-G' ;; 14788 *Sun\ F*) # Sun Fortran 8.3 14789 tmp_sharedflag='-G' ;; 14790 *) 14791 tmp_sharedflag='-shared' ;; 14792 esac 14793 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14794 14795 if test $supports_anon_versioning = yes; then 14796 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14797 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14798 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14799 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14800 fi 14801 else 14802 ld_shlibs_F77=no 14803 fi 14804 ;; 14805 14806 netbsd*) 14807 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14808 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14809 wlarc= 14810 else 14811 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14812 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14813 fi 14814 ;; 14815 14816 solaris*) 14817 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14818 ld_shlibs_F77=no 14819 cat <<EOF 1>&2 14820 14821*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14822*** create shared libraries on Solaris systems. Therefore, libtool 14823*** is disabling shared libraries support. We urge you to upgrade GNU 14824*** binutils to release 2.9.1 or newer. Another option is to modify 14825*** your PATH or compiler configuration so that the native linker is 14826*** used, and then restart. 14827 14828EOF 14829 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14830 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14831 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14832 else 14833 ld_shlibs_F77=no 14834 fi 14835 ;; 14836 14837 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14838 case `$LD -v 2>&1` in 14839 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14840 ld_shlibs_F77=no 14841 cat <<_LT_EOF 1>&2 14842 14843*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 14844*** reliably create shared libraries on SCO systems. Therefore, libtool 14845*** is disabling shared libraries support. We urge you to upgrade GNU 14846*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14847*** your PATH or compiler configuration so that the native linker is 14848*** used, and then restart. 14849 14850_LT_EOF 14851 ;; 14852 *) 14853 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14854 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 14855 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 14856 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 14857 else 14858 ld_shlibs_F77=no 14859 fi 14860 ;; 14861 esac 14862 ;; 14863 14864 sunos4*) 14865 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14866 wlarc= 14867 hardcode_direct_F77=yes 14868 hardcode_shlibpath_var_F77=no 14869 ;; 14870 14871 *) 14872 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14873 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14874 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14875 else 14876 ld_shlibs_F77=no 14877 fi 14878 ;; 14879 esac 14880 14881 if test "$ld_shlibs_F77" = no; then 14882 runpath_var= 14883 hardcode_libdir_flag_spec_F77= 14884 export_dynamic_flag_spec_F77= 14885 whole_archive_flag_spec_F77= 14886 fi 14887 else 14888 # PORTME fill in a description of your system's linker (not GNU ld) 14889 case $host_os in 14890 aix3*) 14891 allow_undefined_flag_F77=unsupported 14892 always_export_symbols_F77=yes 14893 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' 14894 # Note: this linker hardcodes the directories in LIBPATH if there 14895 # are no directories specified by -L. 14896 hardcode_minus_L_F77=yes 14897 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 14898 # Neither direct hardcoding nor static linking is supported with a 14899 # broken collect2. 14900 hardcode_direct_F77=unsupported 14901 fi 14902 ;; 14903 14904 aix4* | aix5*) 14905 if test "$host_cpu" = ia64; then 14906 # On IA64, the linker does run time linking by default, so we don't 14907 # have to do anything special. 14908 aix_use_runtimelinking=no 14909 exp_sym_flag='-Bexport' 14910 no_entry_flag="" 14911 else 14912 # If we're using GNU nm, then we don't want the "-C" option. 14913 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14914 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14915 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' 14916 else 14917 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' 14918 fi 14919 aix_use_runtimelinking=no 14920 14921 # Test if we are trying to use run time linking or normal 14922 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14923 # need to do runtime linking. 14924 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 14925 for ld_flag in $LDFLAGS; do 14926 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14927 aix_use_runtimelinking=yes 14928 break 14929 fi 14930 done 14931 ;; 14932 esac 14933 14934 exp_sym_flag='-bexport' 14935 no_entry_flag='-bnoentry' 14936 fi 14937 14938 # When large executables or shared objects are built, AIX ld can 14939 # have problems creating the table of contents. If linking a library 14940 # or program results in "error TOC overflow" add -mminimal-toc to 14941 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14942 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14943 14944 archive_cmds_F77='' 14945 hardcode_direct_F77=yes 14946 hardcode_libdir_separator_F77=':' 14947 link_all_deplibs_F77=yes 14948 14949 if test "$GCC" = yes; then 14950 case $host_os in aix4.[012]|aix4.[012].*) 14951 # We only want to do this on AIX 4.2 and lower, the check 14952 # below for broken collect2 doesn't work under 4.3+ 14953 collect2name=`${CC} -print-prog-name=collect2` 14954 if test -f "$collect2name" && \ 14955 strings "$collect2name" | grep resolve_lib_name >/dev/null 14956 then 14957 # We have reworked collect2 14958 : 14959 else 14960 # We have old collect2 14961 hardcode_direct_F77=unsupported 14962 # It fails to find uninstalled libraries when the uninstalled 14963 # path is not listed in the libpath. Setting hardcode_minus_L 14964 # to unsupported forces relinking 14965 hardcode_minus_L_F77=yes 14966 hardcode_libdir_flag_spec_F77='-L$libdir' 14967 hardcode_libdir_separator_F77= 14968 fi 14969 ;; 14970 esac 14971 shared_flag='-shared' 14972 if test "$aix_use_runtimelinking" = yes; then 14973 shared_flag="$shared_flag "'${wl}-G' 14974 fi 14975 else 14976 # not using gcc 14977 if test "$host_cpu" = ia64; then 14978 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14979 # chokes on -Wl,-G. The following line is correct: 14980 shared_flag='-G' 14981 else 14982 if test "$aix_use_runtimelinking" = yes; then 14983 shared_flag='${wl}-G' 14984 else 14985 shared_flag='${wl}-bM:SRE' 14986 fi 14987 fi 14988 fi 14989 14990 # It seems that -bexpall does not export symbols beginning with 14991 # underscore (_), so it is better to generate a list of symbols to export. 14992 always_export_symbols_F77=yes 14993 if test "$aix_use_runtimelinking" = yes; then 14994 # Warning - without using the other runtime loading flags (-brtl), 14995 # -berok will link without error, but may produce a broken library. 14996 allow_undefined_flag_F77='-berok' 14997 # Determine the default libpath from the value encoded in an empty executable. 14998 cat >conftest.$ac_ext <<_ACEOF 14999 program main 15000 15001 end 15002_ACEOF 15003rm -f conftest.$ac_objext conftest$ac_exeext 15004if { (ac_try="$ac_link" 15005case "(($ac_try" in 15006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15007 *) ac_try_echo=$ac_try;; 15008esac 15009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15010 (eval "$ac_link") 2>conftest.er1 15011 ac_status=$? 15012 grep -v '^ *+' conftest.er1 >conftest.err 15013 rm -f conftest.er1 15014 cat conftest.err >&5 15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15016 (exit $ac_status); } && { 15017 test -z "$ac_f77_werror_flag" || 15018 test ! -s conftest.err 15019 } && test -s conftest$ac_exeext && 15020 $as_test_x conftest$ac_exeext; then 15021 15022lt_aix_libpath_sed=' 15023 /Import File Strings/,/^$/ { 15024 /^0/ { 15025 s/^0 *\(.*\)$/\1/ 15026 p 15027 } 15028 }' 15029aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15030# Check for a 64-bit object if we didn't find anything. 15031if test -z "$aix_libpath"; then 15032 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15033fi 15034else 15035 echo "$as_me: failed program was:" >&5 15036sed 's/^/| /' conftest.$ac_ext >&5 15037 15038 15039fi 15040 15041rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15042 conftest$ac_exeext conftest.$ac_ext 15043if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15044 15045 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15046 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" 15047 else 15048 if test "$host_cpu" = ia64; then 15049 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 15050 allow_undefined_flag_F77="-z nodefs" 15051 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" 15052 else 15053 # Determine the default libpath from the value encoded in an empty executable. 15054 cat >conftest.$ac_ext <<_ACEOF 15055 program main 15056 15057 end 15058_ACEOF 15059rm -f conftest.$ac_objext conftest$ac_exeext 15060if { (ac_try="$ac_link" 15061case "(($ac_try" in 15062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15063 *) ac_try_echo=$ac_try;; 15064esac 15065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15066 (eval "$ac_link") 2>conftest.er1 15067 ac_status=$? 15068 grep -v '^ *+' conftest.er1 >conftest.err 15069 rm -f conftest.er1 15070 cat conftest.err >&5 15071 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15072 (exit $ac_status); } && { 15073 test -z "$ac_f77_werror_flag" || 15074 test ! -s conftest.err 15075 } && test -s conftest$ac_exeext && 15076 $as_test_x conftest$ac_exeext; then 15077 15078lt_aix_libpath_sed=' 15079 /Import File Strings/,/^$/ { 15080 /^0/ { 15081 s/^0 *\(.*\)$/\1/ 15082 p 15083 } 15084 }' 15085aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15086# Check for a 64-bit object if we didn't find anything. 15087if test -z "$aix_libpath"; then 15088 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15089fi 15090else 15091 echo "$as_me: failed program was:" >&5 15092sed 's/^/| /' conftest.$ac_ext >&5 15093 15094 15095fi 15096 15097rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15098 conftest$ac_exeext conftest.$ac_ext 15099if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15100 15101 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15102 # Warning - without using the other run time loading flags, 15103 # -berok will link without error, but may produce a broken library. 15104 no_undefined_flag_F77=' ${wl}-bernotok' 15105 allow_undefined_flag_F77=' ${wl}-berok' 15106 # Exported symbols can be pulled into shared objects from archives 15107 whole_archive_flag_spec_F77='$convenience' 15108 archive_cmds_need_lc_F77=yes 15109 # This is similar to how AIX traditionally builds its shared libraries. 15110 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' 15111 fi 15112 fi 15113 ;; 15114 15115 amigaos*) 15116 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)' 15117 hardcode_libdir_flag_spec_F77='-L$libdir' 15118 hardcode_minus_L_F77=yes 15119 # see comment about different semantics on the GNU ld section 15120 ld_shlibs_F77=no 15121 ;; 15122 15123 bsdi[45]*) 15124 export_dynamic_flag_spec_F77=-rdynamic 15125 ;; 15126 15127 cygwin* | mingw* | pw32*) 15128 # When not using gcc, we currently assume that we are using 15129 # Microsoft Visual C++. 15130 # hardcode_libdir_flag_spec is actually meaningless, as there is 15131 # no search path for DLLs. 15132 hardcode_libdir_flag_spec_F77=' ' 15133 allow_undefined_flag_F77=unsupported 15134 # Tell ltmain to make .lib files, not .a files. 15135 libext=lib 15136 # Tell ltmain to make .dll files, not .so files. 15137 shrext_cmds=".dll" 15138 # FIXME: Setting linknames here is a bad hack. 15139 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 15140 # The linker will automatically build a .lib file if we build a DLL. 15141 old_archive_From_new_cmds_F77='true' 15142 # FIXME: Should let the user specify the lib program. 15143 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' 15144 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 15145 enable_shared_with_static_runtimes_F77=yes 15146 ;; 15147 15148 darwin* | rhapsody*) 15149 case $host_os in 15150 rhapsody* | darwin1.[012]) 15151 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 15152 ;; 15153 *) # Darwin 1.3 on 15154 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 15155 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15156 else 15157 case ${MACOSX_DEPLOYMENT_TARGET} in 15158 10.[012]) 15159 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15160 ;; 15161 10.*) 15162 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 15163 ;; 15164 esac 15165 fi 15166 ;; 15167 esac 15168 archive_cmds_need_lc_F77=no 15169 hardcode_direct_F77=no 15170 hardcode_automatic_F77=yes 15171 hardcode_shlibpath_var_F77=unsupported 15172 whole_archive_flag_spec_F77='' 15173 link_all_deplibs_F77=yes 15174 if test "$GCC" = yes ; then 15175 output_verbose_link_cmd='echo' 15176 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 15177 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15178 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15179 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}' 15180 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}' 15181 else 15182 case $cc_basename in 15183 xlc*) 15184 output_verbose_link_cmd='echo' 15185 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 15186 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15187 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15188 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 15189 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}' 15190 ;; 15191 *) 15192 ld_shlibs_F77=no 15193 ;; 15194 esac 15195 fi 15196 ;; 15197 15198 dgux*) 15199 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15200 hardcode_libdir_flag_spec_F77='-L$libdir' 15201 hardcode_shlibpath_var_F77=no 15202 ;; 15203 15204 freebsd1*) 15205 ld_shlibs_F77=no 15206 ;; 15207 15208 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15209 # support. Future versions do this automatically, but an explicit c++rt0.o 15210 # does not break anything, and helps significantly (at the cost of a little 15211 # extra space). 15212 freebsd2.2*) 15213 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15214 hardcode_libdir_flag_spec_F77='-R$libdir' 15215 hardcode_direct_F77=yes 15216 hardcode_shlibpath_var_F77=no 15217 ;; 15218 15219 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15220 freebsd2*) 15221 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15222 hardcode_direct_F77=yes 15223 hardcode_minus_L_F77=yes 15224 hardcode_shlibpath_var_F77=no 15225 ;; 15226 15227 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15228 freebsd* | dragonfly*) 15229 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 15230 hardcode_libdir_flag_spec_F77='-R$libdir' 15231 hardcode_direct_F77=yes 15232 hardcode_shlibpath_var_F77=no 15233 ;; 15234 15235 hpux9*) 15236 if test "$GCC" = yes; then 15237 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' 15238 else 15239 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' 15240 fi 15241 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15242 hardcode_libdir_separator_F77=: 15243 hardcode_direct_F77=yes 15244 15245 # hardcode_minus_L: Not really in the search PATH, 15246 # but as the default location of the library. 15247 hardcode_minus_L_F77=yes 15248 export_dynamic_flag_spec_F77='${wl}-E' 15249 ;; 15250 15251 hpux10*) 15252 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15253 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15254 else 15255 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15256 fi 15257 if test "$with_gnu_ld" = no; then 15258 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15259 hardcode_libdir_separator_F77=: 15260 15261 hardcode_direct_F77=yes 15262 export_dynamic_flag_spec_F77='${wl}-E' 15263 15264 # hardcode_minus_L: Not really in the search PATH, 15265 # but as the default location of the library. 15266 hardcode_minus_L_F77=yes 15267 fi 15268 ;; 15269 15270 hpux11*) 15271 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15272 case $host_cpu in 15273 hppa*64*) 15274 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15275 ;; 15276 ia64*) 15277 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15278 ;; 15279 *) 15280 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15281 ;; 15282 esac 15283 else 15284 case $host_cpu in 15285 hppa*64*) 15286 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15287 ;; 15288 ia64*) 15289 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15290 ;; 15291 *) 15292 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15293 ;; 15294 esac 15295 fi 15296 if test "$with_gnu_ld" = no; then 15297 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15298 hardcode_libdir_separator_F77=: 15299 15300 case $host_cpu in 15301 hppa*64*|ia64*) 15302 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 15303 hardcode_direct_F77=no 15304 hardcode_shlibpath_var_F77=no 15305 ;; 15306 *) 15307 hardcode_direct_F77=yes 15308 export_dynamic_flag_spec_F77='${wl}-E' 15309 15310 # hardcode_minus_L: Not really in the search PATH, 15311 # but as the default location of the library. 15312 hardcode_minus_L_F77=yes 15313 ;; 15314 esac 15315 fi 15316 ;; 15317 15318 irix5* | irix6* | nonstopux*) 15319 if test "$GCC" = yes; then 15320 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' 15321 else 15322 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' 15323 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 15324 fi 15325 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15326 hardcode_libdir_separator_F77=: 15327 link_all_deplibs_F77=yes 15328 ;; 15329 15330 netbsd*) 15331 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15332 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15333 else 15334 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15335 fi 15336 hardcode_libdir_flag_spec_F77='-R$libdir' 15337 hardcode_direct_F77=yes 15338 hardcode_shlibpath_var_F77=no 15339 ;; 15340 15341 newsos6) 15342 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15343 hardcode_direct_F77=yes 15344 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15345 hardcode_libdir_separator_F77=: 15346 hardcode_shlibpath_var_F77=no 15347 ;; 15348 15349 openbsd*) 15350 if test -f /usr/libexec/ld.so; then 15351 hardcode_direct_F77=yes 15352 hardcode_shlibpath_var_F77=no 15353 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15354 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15355 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 15356 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15357 export_dynamic_flag_spec_F77='${wl}-E' 15358 else 15359 case $host_os in 15360 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15361 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15362 hardcode_libdir_flag_spec_F77='-R$libdir' 15363 ;; 15364 *) 15365 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15366 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15367 ;; 15368 esac 15369 fi 15370 else 15371 ld_shlibs_F77=no 15372 fi 15373 ;; 15374 15375 os2*) 15376 hardcode_libdir_flag_spec_F77='-L$libdir' 15377 hardcode_minus_L_F77=yes 15378 allow_undefined_flag_F77=unsupported 15379 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' 15380 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15381 ;; 15382 15383 osf3*) 15384 if test "$GCC" = yes; then 15385 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15386 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' 15387 else 15388 allow_undefined_flag_F77=' -expect_unresolved \*' 15389 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' 15390 fi 15391 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15392 hardcode_libdir_separator_F77=: 15393 ;; 15394 15395 osf4* | osf5*) # as osf3* with the addition of -msym flag 15396 if test "$GCC" = yes; then 15397 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15398 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' 15399 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15400 else 15401 allow_undefined_flag_F77=' -expect_unresolved \*' 15402 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' 15403 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~ 15404 $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' 15405 15406 # Both c and cxx compiler support -rpath directly 15407 hardcode_libdir_flag_spec_F77='-rpath $libdir' 15408 fi 15409 hardcode_libdir_separator_F77=: 15410 ;; 15411 15412 solaris*) 15413 no_undefined_flag_F77=' -z text' 15414 if test "$GCC" = yes; then 15415 wlarc='${wl}' 15416 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15417 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15418 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15419 else 15420 wlarc='' 15421 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15422 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15423 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15424 fi 15425 hardcode_libdir_flag_spec_F77='-R$libdir' 15426 hardcode_shlibpath_var_F77=no 15427 case $host_os in 15428 solaris2.[0-5] | solaris2.[0-5].*) ;; 15429 *) 15430 # The compiler driver will combine and reorder linker options, 15431 # but understands `-z linker_flag'. GCC discards it without `$wl', 15432 # but is careful enough not to reorder. 15433 # Supported since Solaris 2.6 (maybe 2.5.1?) 15434 if test "$GCC" = yes; then 15435 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 15436 else 15437 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' 15438 fi 15439 ;; 15440 esac 15441 link_all_deplibs_F77=yes 15442 ;; 15443 15444 sunos4*) 15445 if test "x$host_vendor" = xsequent; then 15446 # Use $CC to link under sequent, because it throws in some extra .o 15447 # files that make .init and .fini sections work. 15448 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15449 else 15450 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15451 fi 15452 hardcode_libdir_flag_spec_F77='-L$libdir' 15453 hardcode_direct_F77=yes 15454 hardcode_minus_L_F77=yes 15455 hardcode_shlibpath_var_F77=no 15456 ;; 15457 15458 sysv4) 15459 case $host_vendor in 15460 sni) 15461 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15462 hardcode_direct_F77=yes # is this really true??? 15463 ;; 15464 siemens) 15465 ## LD is ld it makes a PLAMLIB 15466 ## CC just makes a GrossModule. 15467 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15468 reload_cmds_F77='$CC -r -o $output$reload_objs' 15469 hardcode_direct_F77=no 15470 ;; 15471 motorola) 15472 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15473 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 15474 ;; 15475 esac 15476 runpath_var='LD_RUN_PATH' 15477 hardcode_shlibpath_var_F77=no 15478 ;; 15479 15480 sysv4.3*) 15481 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15482 hardcode_shlibpath_var_F77=no 15483 export_dynamic_flag_spec_F77='-Bexport' 15484 ;; 15485 15486 sysv4*MP*) 15487 if test -d /usr/nec; then 15488 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15489 hardcode_shlibpath_var_F77=no 15490 runpath_var=LD_RUN_PATH 15491 hardcode_runpath_var=yes 15492 ld_shlibs_F77=yes 15493 fi 15494 ;; 15495 15496 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15497 no_undefined_flag_F77='${wl}-z,text' 15498 archive_cmds_need_lc_F77=no 15499 hardcode_shlibpath_var_F77=no 15500 runpath_var='LD_RUN_PATH' 15501 15502 if test "$GCC" = yes; then 15503 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15504 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15505 else 15506 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15507 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15508 fi 15509 ;; 15510 15511 sysv5* | sco3.2v5* | sco5v6*) 15512 # Note: We can NOT use -z defs as we might desire, because we do not 15513 # link with -lc, and that would cause any symbols used from libc to 15514 # always be unresolved, which means just about no library would 15515 # ever link correctly. If we're not using GNU ld we use -z text 15516 # though, which does catch some bad symbols but isn't as heavy-handed 15517 # as -z defs. 15518 no_undefined_flag_F77='${wl}-z,text' 15519 allow_undefined_flag_F77='${wl}-z,nodefs' 15520 archive_cmds_need_lc_F77=no 15521 hardcode_shlibpath_var_F77=no 15522 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 15523 hardcode_libdir_separator_F77=':' 15524 link_all_deplibs_F77=yes 15525 export_dynamic_flag_spec_F77='${wl}-Bexport' 15526 runpath_var='LD_RUN_PATH' 15527 15528 if test "$GCC" = yes; then 15529 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15530 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15531 else 15532 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15533 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15534 fi 15535 ;; 15536 15537 uts4*) 15538 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15539 hardcode_libdir_flag_spec_F77='-L$libdir' 15540 hardcode_shlibpath_var_F77=no 15541 ;; 15542 15543 *) 15544 ld_shlibs_F77=no 15545 ;; 15546 esac 15547 fi 15548 15549{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 15550echo "${ECHO_T}$ld_shlibs_F77" >&6; } 15551test "$ld_shlibs_F77" = no && can_build_shared=no 15552 15553# 15554# Do we need to explicitly link libc? 15555# 15556case "x$archive_cmds_need_lc_F77" in 15557x|xyes) 15558 # Assume -lc should be added 15559 archive_cmds_need_lc_F77=yes 15560 15561 if test "$enable_shared" = yes && test "$GCC" = yes; then 15562 case $archive_cmds_F77 in 15563 *'~'*) 15564 # FIXME: we may have to deal with multi-command sequences. 15565 ;; 15566 '$CC '*) 15567 # Test whether the compiler implicitly links with -lc since on some 15568 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15569 # to ld, don't add -lc before -lgcc. 15570 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15571echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 15572 $rm conftest* 15573 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15574 15575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15576 (eval $ac_compile) 2>&5 15577 ac_status=$? 15578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15579 (exit $ac_status); } 2>conftest.err; then 15580 soname=conftest 15581 lib=conftest 15582 libobjs=conftest.$ac_objext 15583 deplibs= 15584 wl=$lt_prog_compiler_wl_F77 15585 pic_flag=$lt_prog_compiler_pic_F77 15586 compiler_flags=-v 15587 linker_flags=-v 15588 verstring= 15589 output_objdir=. 15590 libname=conftest 15591 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15592 allow_undefined_flag_F77= 15593 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15594 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15595 ac_status=$? 15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15597 (exit $ac_status); } 15598 then 15599 archive_cmds_need_lc_F77=no 15600 else 15601 archive_cmds_need_lc_F77=yes 15602 fi 15603 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15604 else 15605 cat conftest.err 1>&5 15606 fi 15607 $rm conftest* 15608 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15609echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } 15610 ;; 15611 esac 15612 fi 15613 ;; 15614esac 15615 15616{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15617echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 15618library_names_spec= 15619libname_spec='lib$name' 15620soname_spec= 15621shrext_cmds=".so" 15622postinstall_cmds= 15623postuninstall_cmds= 15624finish_cmds= 15625finish_eval= 15626shlibpath_var= 15627shlibpath_overrides_runpath=unknown 15628version_type=none 15629dynamic_linker="$host_os ld.so" 15630sys_lib_dlsearch_path_spec="/lib /usr/lib" 15631 15632need_lib_prefix=unknown 15633hardcode_into_libs=no 15634 15635# when you set need_version to no, make sure it does not cause -set_version 15636# flags to be left without arguments 15637need_version=unknown 15638 15639case $host_os in 15640aix3*) 15641 version_type=linux 15642 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15643 shlibpath_var=LIBPATH 15644 15645 # AIX 3 has no versioning support, so we append a major version to the name. 15646 soname_spec='${libname}${release}${shared_ext}$major' 15647 ;; 15648 15649aix4* | aix5*) 15650 version_type=linux 15651 need_lib_prefix=no 15652 need_version=no 15653 hardcode_into_libs=yes 15654 if test "$host_cpu" = ia64; then 15655 # AIX 5 supports IA64 15656 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15657 shlibpath_var=LD_LIBRARY_PATH 15658 else 15659 # With GCC up to 2.95.x, collect2 would create an import file 15660 # for dependence libraries. The import file would start with 15661 # the line `#! .'. This would cause the generated library to 15662 # depend on `.', always an invalid library. This was fixed in 15663 # development snapshots of GCC prior to 3.0. 15664 case $host_os in 15665 aix4 | aix4.[01] | aix4.[01].*) 15666 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15667 echo ' yes ' 15668 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15669 : 15670 else 15671 can_build_shared=no 15672 fi 15673 ;; 15674 esac 15675 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15676 # soname into executable. Probably we can add versioning support to 15677 # collect2, so additional links can be useful in future. 15678 if test "$aix_use_runtimelinking" = yes; then 15679 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15680 # instead of lib<name>.a to let people know that these are not 15681 # typical AIX shared libraries. 15682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15683 else 15684 # We preserve .a as extension for shared libraries through AIX4.2 15685 # and later when we are not doing run time linking. 15686 library_names_spec='${libname}${release}.a $libname.a' 15687 soname_spec='${libname}${release}${shared_ext}$major' 15688 fi 15689 shlibpath_var=LIBPATH 15690 fi 15691 ;; 15692 15693amigaos*) 15694 library_names_spec='$libname.ixlibrary $libname.a' 15695 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15696 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' 15697 ;; 15698 15699beos*) 15700 library_names_spec='${libname}${shared_ext}' 15701 dynamic_linker="$host_os ld.so" 15702 shlibpath_var=LIBRARY_PATH 15703 ;; 15704 15705bsdi[45]*) 15706 version_type=linux 15707 need_version=no 15708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15709 soname_spec='${libname}${release}${shared_ext}$major' 15710 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15711 shlibpath_var=LD_LIBRARY_PATH 15712 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15713 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15714 # the default ld.so.conf also contains /usr/contrib/lib and 15715 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15716 # libtool to hard-code these into programs 15717 ;; 15718 15719cygwin* | mingw* | pw32*) 15720 version_type=windows 15721 shrext_cmds=".dll" 15722 need_version=no 15723 need_lib_prefix=no 15724 15725 case $GCC,$host_os in 15726 yes,cygwin* | yes,mingw* | yes,pw32*) 15727 library_names_spec='$libname.dll.a' 15728 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15729 postinstall_cmds='base_file=`basename \${file}`~ 15730 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15731 dldir=$destdir/`dirname \$dlpath`~ 15732 test -d \$dldir || mkdir -p \$dldir~ 15733 $install_prog $dir/$dlname \$dldir/$dlname~ 15734 chmod a+x \$dldir/$dlname' 15735 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15736 dlpath=$dir/\$dldll~ 15737 $rm \$dlpath' 15738 shlibpath_overrides_runpath=yes 15739 15740 case $host_os in 15741 cygwin*) 15742 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15743 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15744 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15745 ;; 15746 mingw*) 15747 # MinGW DLLs use traditional 'lib' prefix 15748 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15749 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15750 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15751 # It is most probably a Windows format PATH printed by 15752 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15753 # path with ; separators, and with drive letters. We can handle the 15754 # drive letters (cygwin fileutils understands them), so leave them, 15755 # especially as we might pass files found there to a mingw objdump, 15756 # which wouldn't understand a cygwinified path. Ahh. 15757 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15758 else 15759 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15760 fi 15761 ;; 15762 pw32*) 15763 # pw32 DLLs use 'pw' prefix rather than 'lib' 15764 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15765 ;; 15766 esac 15767 ;; 15768 15769 *) 15770 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15771 ;; 15772 esac 15773 dynamic_linker='Win32 ld.exe' 15774 # FIXME: first we should search . and the directory the executable is in 15775 shlibpath_var=PATH 15776 ;; 15777 15778darwin* | rhapsody*) 15779 dynamic_linker="$host_os dyld" 15780 version_type=darwin 15781 need_lib_prefix=no 15782 need_version=no 15783 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15784 soname_spec='${libname}${release}${major}$shared_ext' 15785 shlibpath_overrides_runpath=yes 15786 shlibpath_var=DYLD_LIBRARY_PATH 15787 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15788 15789 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15790 ;; 15791 15792dgux*) 15793 version_type=linux 15794 need_lib_prefix=no 15795 need_version=no 15796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15797 soname_spec='${libname}${release}${shared_ext}$major' 15798 shlibpath_var=LD_LIBRARY_PATH 15799 ;; 15800 15801freebsd1*) 15802 dynamic_linker=no 15803 ;; 15804 15805freebsd* | dragonfly*) 15806 # DragonFly does not have aout. When/if they implement a new 15807 # versioning mechanism, adjust this. 15808 if test -x /usr/bin/objformat; then 15809 objformat=`/usr/bin/objformat` 15810 else 15811 case $host_os in 15812 freebsd[123]*) objformat=aout ;; 15813 *) objformat=elf ;; 15814 esac 15815 fi 15816 version_type=freebsd-$objformat 15817 case $version_type in 15818 freebsd-elf*) 15819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15820 need_version=no 15821 need_lib_prefix=no 15822 ;; 15823 freebsd-*) 15824 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15825 need_version=yes 15826 ;; 15827 esac 15828 shlibpath_var=LD_LIBRARY_PATH 15829 case $host_os in 15830 freebsd2*) 15831 shlibpath_overrides_runpath=yes 15832 ;; 15833 freebsd3.[01]* | freebsdelf3.[01]*) 15834 shlibpath_overrides_runpath=yes 15835 hardcode_into_libs=yes 15836 ;; 15837 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15838 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15839 shlibpath_overrides_runpath=no 15840 hardcode_into_libs=yes 15841 ;; 15842 *) # from 4.6 on, and DragonFly 15843 shlibpath_overrides_runpath=yes 15844 hardcode_into_libs=yes 15845 ;; 15846 esac 15847 ;; 15848 15849gnu*) 15850 version_type=linux 15851 need_lib_prefix=no 15852 need_version=no 15853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15854 soname_spec='${libname}${release}${shared_ext}$major' 15855 shlibpath_var=LD_LIBRARY_PATH 15856 hardcode_into_libs=yes 15857 ;; 15858 15859hpux9* | hpux10* | hpux11*) 15860 # Give a soname corresponding to the major version so that dld.sl refuses to 15861 # link against other versions. 15862 version_type=sunos 15863 need_lib_prefix=no 15864 need_version=no 15865 case $host_cpu in 15866 ia64*) 15867 shrext_cmds='.so' 15868 hardcode_into_libs=yes 15869 dynamic_linker="$host_os dld.so" 15870 shlibpath_var=LD_LIBRARY_PATH 15871 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15873 soname_spec='${libname}${release}${shared_ext}$major' 15874 if test "X$HPUX_IA64_MODE" = X32; then 15875 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15876 else 15877 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15878 fi 15879 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15880 ;; 15881 hppa*64*) 15882 shrext_cmds='.sl' 15883 hardcode_into_libs=yes 15884 dynamic_linker="$host_os dld.sl" 15885 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15886 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15888 soname_spec='${libname}${release}${shared_ext}$major' 15889 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15890 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15891 ;; 15892 *) 15893 shrext_cmds='.sl' 15894 dynamic_linker="$host_os dld.sl" 15895 shlibpath_var=SHLIB_PATH 15896 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15898 soname_spec='${libname}${release}${shared_ext}$major' 15899 ;; 15900 esac 15901 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15902 postinstall_cmds='chmod 555 $lib' 15903 ;; 15904 15905interix[3-9]*) 15906 version_type=linux 15907 need_lib_prefix=no 15908 need_version=no 15909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15910 soname_spec='${libname}${release}${shared_ext}$major' 15911 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15912 shlibpath_var=LD_LIBRARY_PATH 15913 shlibpath_overrides_runpath=no 15914 hardcode_into_libs=yes 15915 ;; 15916 15917irix5* | irix6* | nonstopux*) 15918 case $host_os in 15919 nonstopux*) version_type=nonstopux ;; 15920 *) 15921 if test "$lt_cv_prog_gnu_ld" = yes; then 15922 version_type=linux 15923 else 15924 version_type=irix 15925 fi ;; 15926 esac 15927 need_lib_prefix=no 15928 need_version=no 15929 soname_spec='${libname}${release}${shared_ext}$major' 15930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15931 case $host_os in 15932 irix5* | nonstopux*) 15933 libsuff= shlibsuff= 15934 ;; 15935 *) 15936 case $LD in # libtool.m4 will add one of these switches to LD 15937 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15938 libsuff= shlibsuff= libmagic=32-bit;; 15939 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15940 libsuff=32 shlibsuff=N32 libmagic=N32;; 15941 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15942 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15943 *) libsuff= shlibsuff= libmagic=never-match;; 15944 esac 15945 ;; 15946 esac 15947 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15948 shlibpath_overrides_runpath=no 15949 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15950 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15951 hardcode_into_libs=yes 15952 ;; 15953 15954# No shared lib support for Linux oldld, aout, or coff. 15955linux*oldld* | linux*aout* | linux*coff*) 15956 dynamic_linker=no 15957 ;; 15958 15959# This must be Linux ELF. 15960linux* | k*bsd*-gnu) 15961 version_type=linux 15962 need_lib_prefix=no 15963 need_version=no 15964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15965 soname_spec='${libname}${release}${shared_ext}$major' 15966 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15967 shlibpath_var=LD_LIBRARY_PATH 15968 shlibpath_overrides_runpath=no 15969 # This implies no fast_install, which is unacceptable. 15970 # Some rework will be needed to allow for fast_install 15971 # before this can be enabled. 15972 hardcode_into_libs=yes 15973 15974 # Append ld.so.conf contents to the search path 15975 if test -f /etc/ld.so.conf; then 15976 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/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 15977 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15978 fi 15979 15980 # We used to test for /lib/ld.so.1 and disable shared libraries on 15981 # powerpc, because MkLinux only supported shared libraries with the 15982 # GNU dynamic linker. Since this was broken with cross compilers, 15983 # most powerpc-linux boxes support dynamic linking these days and 15984 # people can always --disable-shared, the test was removed, and we 15985 # assume the GNU/Linux dynamic linker is in use. 15986 dynamic_linker='GNU/Linux ld.so' 15987 ;; 15988 15989netbsd*) 15990 version_type=sunos 15991 need_lib_prefix=no 15992 need_version=no 15993 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15995 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15996 dynamic_linker='NetBSD (a.out) ld.so' 15997 else 15998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15999 soname_spec='${libname}${release}${shared_ext}$major' 16000 dynamic_linker='NetBSD ld.elf_so' 16001 fi 16002 shlibpath_var=LD_LIBRARY_PATH 16003 shlibpath_overrides_runpath=yes 16004 hardcode_into_libs=yes 16005 ;; 16006 16007newsos6) 16008 version_type=linux 16009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16010 shlibpath_var=LD_LIBRARY_PATH 16011 shlibpath_overrides_runpath=yes 16012 ;; 16013 16014nto-qnx*) 16015 version_type=linux 16016 need_lib_prefix=no 16017 need_version=no 16018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16019 soname_spec='${libname}${release}${shared_ext}$major' 16020 shlibpath_var=LD_LIBRARY_PATH 16021 shlibpath_overrides_runpath=yes 16022 ;; 16023 16024openbsd*) 16025 version_type=sunos 16026 sys_lib_dlsearch_path_spec="/usr/lib" 16027 need_lib_prefix=no 16028 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16029 case $host_os in 16030 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16031 *) need_version=no ;; 16032 esac 16033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16034 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16035 shlibpath_var=LD_LIBRARY_PATH 16036 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16037 case $host_os in 16038 openbsd2.[89] | openbsd2.[89].*) 16039 shlibpath_overrides_runpath=no 16040 ;; 16041 *) 16042 shlibpath_overrides_runpath=yes 16043 ;; 16044 esac 16045 else 16046 shlibpath_overrides_runpath=yes 16047 fi 16048 ;; 16049 16050os2*) 16051 libname_spec='$name' 16052 shrext_cmds=".dll" 16053 need_lib_prefix=no 16054 library_names_spec='$libname${shared_ext} $libname.a' 16055 dynamic_linker='OS/2 ld.exe' 16056 shlibpath_var=LIBPATH 16057 ;; 16058 16059osf3* | osf4* | osf5*) 16060 version_type=osf 16061 need_lib_prefix=no 16062 need_version=no 16063 soname_spec='${libname}${release}${shared_ext}$major' 16064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16065 shlibpath_var=LD_LIBRARY_PATH 16066 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16067 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16068 ;; 16069 16070rdos*) 16071 dynamic_linker=no 16072 ;; 16073 16074solaris*) 16075 version_type=linux 16076 need_lib_prefix=no 16077 need_version=no 16078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16079 soname_spec='${libname}${release}${shared_ext}$major' 16080 shlibpath_var=LD_LIBRARY_PATH 16081 shlibpath_overrides_runpath=yes 16082 hardcode_into_libs=yes 16083 # ldd complains unless libraries are executable 16084 postinstall_cmds='chmod +x $lib' 16085 ;; 16086 16087sunos4*) 16088 version_type=sunos 16089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16090 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16091 shlibpath_var=LD_LIBRARY_PATH 16092 shlibpath_overrides_runpath=yes 16093 if test "$with_gnu_ld" = yes; then 16094 need_lib_prefix=no 16095 fi 16096 need_version=yes 16097 ;; 16098 16099sysv4 | sysv4.3*) 16100 version_type=linux 16101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16102 soname_spec='${libname}${release}${shared_ext}$major' 16103 shlibpath_var=LD_LIBRARY_PATH 16104 case $host_vendor in 16105 sni) 16106 shlibpath_overrides_runpath=no 16107 need_lib_prefix=no 16108 export_dynamic_flag_spec='${wl}-Blargedynsym' 16109 runpath_var=LD_RUN_PATH 16110 ;; 16111 siemens) 16112 need_lib_prefix=no 16113 ;; 16114 motorola) 16115 need_lib_prefix=no 16116 need_version=no 16117 shlibpath_overrides_runpath=no 16118 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16119 ;; 16120 esac 16121 ;; 16122 16123sysv4*MP*) 16124 if test -d /usr/nec ;then 16125 version_type=linux 16126 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16127 soname_spec='$libname${shared_ext}.$major' 16128 shlibpath_var=LD_LIBRARY_PATH 16129 fi 16130 ;; 16131 16132sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16133 version_type=freebsd-elf 16134 need_lib_prefix=no 16135 need_version=no 16136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16137 soname_spec='${libname}${release}${shared_ext}$major' 16138 shlibpath_var=LD_LIBRARY_PATH 16139 hardcode_into_libs=yes 16140 if test "$with_gnu_ld" = yes; then 16141 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16142 shlibpath_overrides_runpath=no 16143 else 16144 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16145 shlibpath_overrides_runpath=yes 16146 case $host_os in 16147 sco3.2v5*) 16148 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16149 ;; 16150 esac 16151 fi 16152 sys_lib_dlsearch_path_spec='/usr/lib' 16153 ;; 16154 16155uts4*) 16156 version_type=linux 16157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16158 soname_spec='${libname}${release}${shared_ext}$major' 16159 shlibpath_var=LD_LIBRARY_PATH 16160 ;; 16161 16162*) 16163 dynamic_linker=no 16164 ;; 16165esac 16166{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 16167echo "${ECHO_T}$dynamic_linker" >&6; } 16168test "$dynamic_linker" = no && can_build_shared=no 16169 16170variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16171if test "$GCC" = yes; then 16172 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16173fi 16174 16175{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 16176echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 16177hardcode_action_F77= 16178if test -n "$hardcode_libdir_flag_spec_F77" || \ 16179 test -n "$runpath_var_F77" || \ 16180 test "X$hardcode_automatic_F77" = "Xyes" ; then 16181 16182 # We can hardcode non-existant directories. 16183 if test "$hardcode_direct_F77" != no && 16184 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16185 # have to relink, otherwise we might link with an installed library 16186 # when we should be linking with a yet-to-be-installed one 16187 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 16188 test "$hardcode_minus_L_F77" != no; then 16189 # Linking always hardcodes the temporary library directory. 16190 hardcode_action_F77=relink 16191 else 16192 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16193 hardcode_action_F77=immediate 16194 fi 16195else 16196 # We cannot hardcode anything, or else we can only hardcode existing 16197 # directories. 16198 hardcode_action_F77=unsupported 16199fi 16200{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 16201echo "${ECHO_T}$hardcode_action_F77" >&6; } 16202 16203if test "$hardcode_action_F77" = relink; then 16204 # Fast installation is not supported 16205 enable_fast_install=no 16206elif test "$shlibpath_overrides_runpath" = yes || 16207 test "$enable_shared" = no; then 16208 # Fast installation is not necessary 16209 enable_fast_install=needless 16210fi 16211 16212 16213# The else clause should only fire when bootstrapping the 16214# libtool distribution, otherwise you forgot to ship ltmain.sh 16215# with your package, and you will get complaints that there are 16216# no rules to generate ltmain.sh. 16217if test -f "$ltmain"; then 16218 # See if we are running on zsh, and set the options which allow our commands through 16219 # without removal of \ escapes. 16220 if test -n "${ZSH_VERSION+set}" ; then 16221 setopt NO_GLOB_SUBST 16222 fi 16223 # Now quote all the things that may contain metacharacters while being 16224 # careful not to overquote the AC_SUBSTed values. We take copies of the 16225 # variables and quote the copies for generation of the libtool script. 16226 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 16227 SED SHELL STRIP \ 16228 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 16229 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 16230 deplibs_check_method reload_flag reload_cmds need_locks \ 16231 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 16232 lt_cv_sys_global_symbol_to_c_name_address \ 16233 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 16234 old_postinstall_cmds old_postuninstall_cmds \ 16235 compiler_F77 \ 16236 CC_F77 \ 16237 LD_F77 \ 16238 lt_prog_compiler_wl_F77 \ 16239 lt_prog_compiler_pic_F77 \ 16240 lt_prog_compiler_static_F77 \ 16241 lt_prog_compiler_no_builtin_flag_F77 \ 16242 export_dynamic_flag_spec_F77 \ 16243 thread_safe_flag_spec_F77 \ 16244 whole_archive_flag_spec_F77 \ 16245 enable_shared_with_static_runtimes_F77 \ 16246 old_archive_cmds_F77 \ 16247 old_archive_from_new_cmds_F77 \ 16248 predep_objects_F77 \ 16249 postdep_objects_F77 \ 16250 predeps_F77 \ 16251 postdeps_F77 \ 16252 compiler_lib_search_path_F77 \ 16253 archive_cmds_F77 \ 16254 archive_expsym_cmds_F77 \ 16255 postinstall_cmds_F77 \ 16256 postuninstall_cmds_F77 \ 16257 old_archive_from_expsyms_cmds_F77 \ 16258 allow_undefined_flag_F77 \ 16259 no_undefined_flag_F77 \ 16260 export_symbols_cmds_F77 \ 16261 hardcode_libdir_flag_spec_F77 \ 16262 hardcode_libdir_flag_spec_ld_F77 \ 16263 hardcode_libdir_separator_F77 \ 16264 hardcode_automatic_F77 \ 16265 module_cmds_F77 \ 16266 module_expsym_cmds_F77 \ 16267 lt_cv_prog_compiler_c_o_F77 \ 16268 fix_srcfile_path_F77 \ 16269 exclude_expsyms_F77 \ 16270 include_expsyms_F77; do 16271 16272 case $var in 16273 old_archive_cmds_F77 | \ 16274 old_archive_from_new_cmds_F77 | \ 16275 archive_cmds_F77 | \ 16276 archive_expsym_cmds_F77 | \ 16277 module_cmds_F77 | \ 16278 module_expsym_cmds_F77 | \ 16279 old_archive_from_expsyms_cmds_F77 | \ 16280 export_symbols_cmds_F77 | \ 16281 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 16282 postinstall_cmds | postuninstall_cmds | \ 16283 old_postinstall_cmds | old_postuninstall_cmds | \ 16284 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 16285 # Double-quote double-evaled strings. 16286 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 16287 ;; 16288 *) 16289 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 16290 ;; 16291 esac 16292 done 16293 16294 case $lt_echo in 16295 *'\$0 --fallback-echo"') 16296 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 16297 ;; 16298 esac 16299 16300cfgfile="$ofile" 16301 16302 cat <<__EOF__ >> "$cfgfile" 16303# ### BEGIN LIBTOOL TAG CONFIG: $tagname 16304 16305# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16306 16307# Shell to use when invoking shell scripts. 16308SHELL=$lt_SHELL 16309 16310# Whether or not to build shared libraries. 16311build_libtool_libs=$enable_shared 16312 16313# Whether or not to build static libraries. 16314build_old_libs=$enable_static 16315 16316# Whether or not to add -lc for building shared libraries. 16317build_libtool_need_lc=$archive_cmds_need_lc_F77 16318 16319# Whether or not to disallow shared libs when runtime libs are static 16320allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 16321 16322# Whether or not to optimize for fast installation. 16323fast_install=$enable_fast_install 16324 16325# The host system. 16326host_alias=$host_alias 16327host=$host 16328host_os=$host_os 16329 16330# The build system. 16331build_alias=$build_alias 16332build=$build 16333build_os=$build_os 16334 16335# An echo program that does not interpret backslashes. 16336echo=$lt_echo 16337 16338# The archiver. 16339AR=$lt_AR 16340AR_FLAGS=$lt_AR_FLAGS 16341 16342# A C compiler. 16343LTCC=$lt_LTCC 16344 16345# LTCC compiler flags. 16346LTCFLAGS=$lt_LTCFLAGS 16347 16348# A language-specific compiler. 16349CC=$lt_compiler_F77 16350 16351# Is the compiler the GNU C compiler? 16352with_gcc=$GCC_F77 16353 16354# An ERE matcher. 16355EGREP=$lt_EGREP 16356 16357# The linker used to build libraries. 16358LD=$lt_LD_F77 16359 16360# Whether we need hard or soft links. 16361LN_S=$lt_LN_S 16362 16363# A BSD-compatible nm program. 16364NM=$lt_NM 16365 16366# A symbol stripping program 16367STRIP=$lt_STRIP 16368 16369# Used to examine libraries when file_magic_cmd begins "file" 16370MAGIC_CMD=$MAGIC_CMD 16371 16372# Used on cygwin: DLL creation program. 16373DLLTOOL="$DLLTOOL" 16374 16375# Used on cygwin: object dumper. 16376OBJDUMP="$OBJDUMP" 16377 16378# Used on cygwin: assembler. 16379AS="$AS" 16380 16381# The name of the directory that contains temporary libtool files. 16382objdir=$objdir 16383 16384# How to create reloadable object files. 16385reload_flag=$lt_reload_flag 16386reload_cmds=$lt_reload_cmds 16387 16388# How to pass a linker flag through the compiler. 16389wl=$lt_lt_prog_compiler_wl_F77 16390 16391# Object file suffix (normally "o"). 16392objext="$ac_objext" 16393 16394# Old archive suffix (normally "a"). 16395libext="$libext" 16396 16397# Shared library suffix (normally ".so"). 16398shrext_cmds='$shrext_cmds' 16399 16400# Executable file suffix (normally ""). 16401exeext="$exeext" 16402 16403# Additional compiler flags for building library objects. 16404pic_flag=$lt_lt_prog_compiler_pic_F77 16405pic_mode=$pic_mode 16406 16407# What is the maximum length of a command? 16408max_cmd_len=$lt_cv_sys_max_cmd_len 16409 16410# Does compiler simultaneously support -c and -o options? 16411compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 16412 16413# Must we lock files when doing compilation? 16414need_locks=$lt_need_locks 16415 16416# Do we need the lib prefix for modules? 16417need_lib_prefix=$need_lib_prefix 16418 16419# Do we need a version for libraries? 16420need_version=$need_version 16421 16422# Whether dlopen is supported. 16423dlopen_support=$enable_dlopen 16424 16425# Whether dlopen of programs is supported. 16426dlopen_self=$enable_dlopen_self 16427 16428# Whether dlopen of statically linked programs is supported. 16429dlopen_self_static=$enable_dlopen_self_static 16430 16431# Compiler flag to prevent dynamic linking. 16432link_static_flag=$lt_lt_prog_compiler_static_F77 16433 16434# Compiler flag to turn off builtin functions. 16435no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 16436 16437# Compiler flag to allow reflexive dlopens. 16438export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 16439 16440# Compiler flag to generate shared objects directly from archives. 16441whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 16442 16443# Compiler flag to generate thread-safe objects. 16444thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 16445 16446# Library versioning type. 16447version_type=$version_type 16448 16449# Format of library name prefix. 16450libname_spec=$lt_libname_spec 16451 16452# List of archive names. First name is the real one, the rest are links. 16453# The last name is the one that the linker finds with -lNAME. 16454library_names_spec=$lt_library_names_spec 16455 16456# The coded name of the library, if different from the real name. 16457soname_spec=$lt_soname_spec 16458 16459# Commands used to build and install an old-style archive. 16460RANLIB=$lt_RANLIB 16461old_archive_cmds=$lt_old_archive_cmds_F77 16462old_postinstall_cmds=$lt_old_postinstall_cmds 16463old_postuninstall_cmds=$lt_old_postuninstall_cmds 16464 16465# Create an old-style archive from a shared archive. 16466old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 16467 16468# Create a temporary old-style archive to link instead of a shared archive. 16469old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 16470 16471# Commands used to build and install a shared archive. 16472archive_cmds=$lt_archive_cmds_F77 16473archive_expsym_cmds=$lt_archive_expsym_cmds_F77 16474postinstall_cmds=$lt_postinstall_cmds 16475postuninstall_cmds=$lt_postuninstall_cmds 16476 16477# Commands used to build a loadable module (assumed same as above if empty) 16478module_cmds=$lt_module_cmds_F77 16479module_expsym_cmds=$lt_module_expsym_cmds_F77 16480 16481# Commands to strip libraries. 16482old_striplib=$lt_old_striplib 16483striplib=$lt_striplib 16484 16485# Dependencies to place before the objects being linked to create a 16486# shared library. 16487predep_objects=$lt_predep_objects_F77 16488 16489# Dependencies to place after the objects being linked to create a 16490# shared library. 16491postdep_objects=$lt_postdep_objects_F77 16492 16493# Dependencies to place before the objects being linked to create a 16494# shared library. 16495predeps=$lt_predeps_F77 16496 16497# Dependencies to place after the objects being linked to create a 16498# shared library. 16499postdeps=$lt_postdeps_F77 16500 16501# The library search path used internally by the compiler when linking 16502# a shared library. 16503compiler_lib_search_path=$lt_compiler_lib_search_path_F77 16504 16505# Method to check whether dependent libraries are shared objects. 16506deplibs_check_method=$lt_deplibs_check_method 16507 16508# Command to use when deplibs_check_method == file_magic. 16509file_magic_cmd=$lt_file_magic_cmd 16510 16511# Flag that allows shared libraries with undefined symbols to be built. 16512allow_undefined_flag=$lt_allow_undefined_flag_F77 16513 16514# Flag that forces no undefined symbols. 16515no_undefined_flag=$lt_no_undefined_flag_F77 16516 16517# Commands used to finish a libtool library installation in a directory. 16518finish_cmds=$lt_finish_cmds 16519 16520# Same as above, but a single script fragment to be evaled but not shown. 16521finish_eval=$lt_finish_eval 16522 16523# Take the output of nm and produce a listing of raw symbols and C names. 16524global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16525 16526# Transform the output of nm in a proper C declaration 16527global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16528 16529# Transform the output of nm in a C name address pair 16530global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16531 16532# This is the shared library runtime path variable. 16533runpath_var=$runpath_var 16534 16535# This is the shared library path variable. 16536shlibpath_var=$shlibpath_var 16537 16538# Is shlibpath searched before the hard-coded library search path? 16539shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16540 16541# How to hardcode a shared library path into an executable. 16542hardcode_action=$hardcode_action_F77 16543 16544# Whether we should hardcode library paths into libraries. 16545hardcode_into_libs=$hardcode_into_libs 16546 16547# Flag to hardcode \$libdir into a binary during linking. 16548# This must work even if \$libdir does not exist. 16549hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16550 16551# If ld is used when linking, flag to hardcode \$libdir into 16552# a binary during linking. This must work even if \$libdir does 16553# not exist. 16554hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16555 16556# Whether we need a single -rpath flag with a separated argument. 16557hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16558 16559# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16560# resulting binary. 16561hardcode_direct=$hardcode_direct_F77 16562 16563# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16564# resulting binary. 16565hardcode_minus_L=$hardcode_minus_L_F77 16566 16567# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16568# the resulting binary. 16569hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16570 16571# Set to yes if building a shared library automatically hardcodes DIR into the library 16572# and all subsequent libraries and executables linked against it. 16573hardcode_automatic=$hardcode_automatic_F77 16574 16575# Variables whose values should be saved in libtool wrapper scripts and 16576# restored at relink time. 16577variables_saved_for_relink="$variables_saved_for_relink" 16578 16579# Whether libtool must link a program against all its dependency libraries. 16580link_all_deplibs=$link_all_deplibs_F77 16581 16582# Compile-time system search path for libraries 16583sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16584 16585# Run-time system search path for libraries 16586sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16587 16588# Fix the shell variable \$srcfile for the compiler. 16589fix_srcfile_path=$lt_fix_srcfile_path 16590 16591# Set to yes if exported symbols are required. 16592always_export_symbols=$always_export_symbols_F77 16593 16594# The commands to list exported symbols. 16595export_symbols_cmds=$lt_export_symbols_cmds_F77 16596 16597# The commands to extract the exported symbol list from a shared archive. 16598extract_expsyms_cmds=$lt_extract_expsyms_cmds 16599 16600# Symbols that should not be listed in the preloaded symbols. 16601exclude_expsyms=$lt_exclude_expsyms_F77 16602 16603# Symbols that must always be exported. 16604include_expsyms=$lt_include_expsyms_F77 16605 16606# ### END LIBTOOL TAG CONFIG: $tagname 16607 16608__EOF__ 16609 16610 16611else 16612 # If there is no Makefile yet, we rely on a make rule to execute 16613 # `config.status --recheck' to rerun these tests and create the 16614 # libtool script then. 16615 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16616 if test -f "$ltmain_in"; then 16617 test -f Makefile && make "$ltmain" 16618 fi 16619fi 16620 16621 16622ac_ext=c 16623ac_cpp='$CPP $CPPFLAGS' 16624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16626ac_compiler_gnu=$ac_cv_c_compiler_gnu 16627 16628CC="$lt_save_CC" 16629 16630 else 16631 tagname="" 16632 fi 16633 ;; 16634 16635 GCJ) 16636 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16637 16638 16639# Source file extension for Java test sources. 16640ac_ext=java 16641 16642# Object file extension for compiled Java test sources. 16643objext=o 16644objext_GCJ=$objext 16645 16646# Code to be used in simple compile tests 16647lt_simple_compile_test_code="class foo {}" 16648 16649# Code to be used in simple link tests 16650lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }' 16651 16652# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16653 16654# If no C compiler was specified, use CC. 16655LTCC=${LTCC-"$CC"} 16656 16657# If no C compiler flags were specified, use CFLAGS. 16658LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16659 16660# Allow CC to be a program name with arguments. 16661compiler=$CC 16662 16663 16664# save warnings/boilerplate of simple test code 16665ac_outfile=conftest.$ac_objext 16666echo "$lt_simple_compile_test_code" >conftest.$ac_ext 16667eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16668_lt_compiler_boilerplate=`cat conftest.err` 16669$rm conftest* 16670 16671ac_outfile=conftest.$ac_objext 16672echo "$lt_simple_link_test_code" >conftest.$ac_ext 16673eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16674_lt_linker_boilerplate=`cat conftest.err` 16675$rm conftest* 16676 16677 16678# Allow CC to be a program name with arguments. 16679lt_save_CC="$CC" 16680CC=${GCJ-"gcj"} 16681compiler=$CC 16682compiler_GCJ=$CC 16683for cc_temp in $compiler""; do 16684 case $cc_temp in 16685 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16686 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16687 \-*) ;; 16688 *) break;; 16689 esac 16690done 16691cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16692 16693 16694# GCJ did not exist at the time GCC didn't implicitly link libc in. 16695archive_cmds_need_lc_GCJ=no 16696 16697old_archive_cmds_GCJ=$old_archive_cmds 16698 16699## CAVEAT EMPTOR: 16700## There is no encapsulation within the following macros, do not change 16701## the running order or otherwise move them around unless you know exactly 16702## what you are doing... 16703 16704lt_prog_compiler_no_builtin_flag_GCJ= 16705 16706if test "$GCC" = yes; then 16707 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16708 16709 16710{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16711echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 16712if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16713 echo $ECHO_N "(cached) $ECHO_C" >&6 16714else 16715 lt_cv_prog_compiler_rtti_exceptions=no 16716 ac_outfile=conftest.$ac_objext 16717 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16718 lt_compiler_flag="-fno-rtti -fno-exceptions" 16719 # Insert the option either (1) after the last *FLAGS variable, or 16720 # (2) before a word containing "conftest.", or (3) at the end. 16721 # Note that $ac_compile itself does not contain backslashes and begins 16722 # with a dollar sign (not a hyphen), so the echo should work correctly. 16723 # The option is referenced via a variable to avoid confusing sed. 16724 lt_compile=`echo "$ac_compile" | $SED \ 16725 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16726 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16727 -e 's:$: $lt_compiler_flag:'` 16728 (eval echo "\"\$as_me:16728: $lt_compile\"" >&5) 16729 (eval "$lt_compile" 2>conftest.err) 16730 ac_status=$? 16731 cat conftest.err >&5 16732 echo "$as_me:16732: \$? = $ac_status" >&5 16733 if (exit $ac_status) && test -s "$ac_outfile"; then 16734 # The compiler can only warn and ignore the option if not recognized 16735 # So say no if there are warnings other than the usual output. 16736 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16737 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16738 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16739 lt_cv_prog_compiler_rtti_exceptions=yes 16740 fi 16741 fi 16742 $rm conftest* 16743 16744fi 16745{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16746echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16747 16748if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16749 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16750else 16751 : 16752fi 16753 16754fi 16755 16756lt_prog_compiler_wl_GCJ= 16757lt_prog_compiler_pic_GCJ= 16758lt_prog_compiler_static_GCJ= 16759 16760{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16761echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 16762 16763 if test "$GCC" = yes; then 16764 lt_prog_compiler_wl_GCJ='-Wl,' 16765 lt_prog_compiler_static_GCJ='-static' 16766 16767 case $host_os in 16768 aix*) 16769 # All AIX code is PIC. 16770 if test "$host_cpu" = ia64; then 16771 # AIX 5 now supports IA64 processor 16772 lt_prog_compiler_static_GCJ='-Bstatic' 16773 fi 16774 ;; 16775 16776 amigaos*) 16777 # FIXME: we need at least 68020 code to build shared libraries, but 16778 # adding the `-m68020' flag to GCC prevents building anything better, 16779 # like `-m68040'. 16780 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16781 ;; 16782 16783 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16784 # PIC is the default for these OSes. 16785 ;; 16786 16787 mingw* | cygwin* | pw32* | os2*) 16788 # This hack is so that the source file can tell whether it is being 16789 # built for inclusion in a dll (and should export symbols for example). 16790 # Although the cygwin gcc ignores -fPIC, still need this for old-style 16791 # (--disable-auto-import) libraries 16792 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16793 ;; 16794 16795 darwin* | rhapsody*) 16796 # PIC is the default on this platform 16797 # Common symbols not allowed in MH_DYLIB files 16798 lt_prog_compiler_pic_GCJ='-fno-common' 16799 ;; 16800 16801 interix[3-9]*) 16802 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16803 # Instead, we relocate shared libraries at runtime. 16804 ;; 16805 16806 msdosdjgpp*) 16807 # Just because we use GCC doesn't mean we suddenly get shared libraries 16808 # on systems that don't support them. 16809 lt_prog_compiler_can_build_shared_GCJ=no 16810 enable_shared=no 16811 ;; 16812 16813 sysv4*MP*) 16814 if test -d /usr/nec; then 16815 lt_prog_compiler_pic_GCJ=-Kconform_pic 16816 fi 16817 ;; 16818 16819 hpux*) 16820 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16821 # not for PA HP-UX. 16822 case $host_cpu in 16823 hppa*64*|ia64*) 16824 # +Z the default 16825 ;; 16826 *) 16827 lt_prog_compiler_pic_GCJ='-fPIC' 16828 ;; 16829 esac 16830 ;; 16831 16832 *) 16833 lt_prog_compiler_pic_GCJ='-fPIC' 16834 ;; 16835 esac 16836 else 16837 # PORTME Check for flag to pass linker flags through the system compiler. 16838 case $host_os in 16839 aix*) 16840 lt_prog_compiler_wl_GCJ='-Wl,' 16841 if test "$host_cpu" = ia64; then 16842 # AIX 5 now supports IA64 processor 16843 lt_prog_compiler_static_GCJ='-Bstatic' 16844 else 16845 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16846 fi 16847 ;; 16848 darwin*) 16849 # PIC is the default on this platform 16850 # Common symbols not allowed in MH_DYLIB files 16851 case $cc_basename in 16852 xlc*) 16853 lt_prog_compiler_pic_GCJ='-qnocommon' 16854 lt_prog_compiler_wl_GCJ='-Wl,' 16855 ;; 16856 esac 16857 ;; 16858 16859 mingw* | cygwin* | pw32* | os2*) 16860 # This hack is so that the source file can tell whether it is being 16861 # built for inclusion in a dll (and should export symbols for example). 16862 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16863 ;; 16864 16865 hpux9* | hpux10* | hpux11*) 16866 lt_prog_compiler_wl_GCJ='-Wl,' 16867 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16868 # not for PA HP-UX. 16869 case $host_cpu in 16870 hppa*64*|ia64*) 16871 # +Z the default 16872 ;; 16873 *) 16874 lt_prog_compiler_pic_GCJ='+Z' 16875 ;; 16876 esac 16877 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16878 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 16879 ;; 16880 16881 irix5* | irix6* | nonstopux*) 16882 lt_prog_compiler_wl_GCJ='-Wl,' 16883 # PIC (with -KPIC) is the default. 16884 lt_prog_compiler_static_GCJ='-non_shared' 16885 ;; 16886 16887 newsos6) 16888 lt_prog_compiler_pic_GCJ='-KPIC' 16889 lt_prog_compiler_static_GCJ='-Bstatic' 16890 ;; 16891 16892 linux* | k*bsd*-gnu) 16893 case $cc_basename in 16894 icc* | ecc*) 16895 lt_prog_compiler_wl_GCJ='-Wl,' 16896 lt_prog_compiler_pic_GCJ='-KPIC' 16897 lt_prog_compiler_static_GCJ='-static' 16898 ;; 16899 pgcc* | pgf77* | pgf90* | pgf95*) 16900 # Portland Group compilers (*not* the Pentium gcc compiler, 16901 # which looks to be a dead project) 16902 lt_prog_compiler_wl_GCJ='-Wl,' 16903 lt_prog_compiler_pic_GCJ='-fpic' 16904 lt_prog_compiler_static_GCJ='-Bstatic' 16905 ;; 16906 ccc*) 16907 lt_prog_compiler_wl_GCJ='-Wl,' 16908 # All Alpha code is PIC. 16909 lt_prog_compiler_static_GCJ='-non_shared' 16910 ;; 16911 como) 16912 lt_prog_compiler_wl_GCJ='-lopt=' 16913 ;; 16914 *) 16915 case `$CC -V 2>&1 | sed 5q` in 16916 *Sun\ C*) 16917 # Sun C 5.9 16918 lt_prog_compiler_pic_GCJ='-KPIC' 16919 lt_prog_compiler_static_GCJ='-Bstatic' 16920 lt_prog_compiler_wl_GCJ='-Wl,' 16921 ;; 16922 *Sun\ F*) 16923 # Sun Fortran 8.3 passes all unrecognized flags to the linker 16924 lt_prog_compiler_pic_GCJ='-KPIC' 16925 lt_prog_compiler_static_GCJ='-Bstatic' 16926 lt_prog_compiler_wl_GCJ='' 16927 ;; 16928 esac 16929 ;; 16930 esac 16931 ;; 16932 16933 osf3* | osf4* | osf5*) 16934 lt_prog_compiler_wl_GCJ='-Wl,' 16935 # All OSF/1 code is PIC. 16936 lt_prog_compiler_static_GCJ='-non_shared' 16937 ;; 16938 16939 rdos*) 16940 lt_prog_compiler_static_GCJ='-non_shared' 16941 ;; 16942 16943 solaris*) 16944 lt_prog_compiler_pic_GCJ='-KPIC' 16945 lt_prog_compiler_static_GCJ='-Bstatic' 16946 case $cc_basename in 16947 f77* | f90* | f95*) 16948 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 16949 *) 16950 lt_prog_compiler_wl_GCJ='-Wl,';; 16951 esac 16952 ;; 16953 16954 sunos4*) 16955 lt_prog_compiler_wl_GCJ='-Qoption ld ' 16956 lt_prog_compiler_pic_GCJ='-PIC' 16957 lt_prog_compiler_static_GCJ='-Bstatic' 16958 ;; 16959 16960 sysv4 | sysv4.2uw2* | sysv4.3*) 16961 lt_prog_compiler_wl_GCJ='-Wl,' 16962 lt_prog_compiler_pic_GCJ='-KPIC' 16963 lt_prog_compiler_static_GCJ='-Bstatic' 16964 ;; 16965 16966 sysv4*MP*) 16967 if test -d /usr/nec ;then 16968 lt_prog_compiler_pic_GCJ='-Kconform_pic' 16969 lt_prog_compiler_static_GCJ='-Bstatic' 16970 fi 16971 ;; 16972 16973 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16974 lt_prog_compiler_wl_GCJ='-Wl,' 16975 lt_prog_compiler_pic_GCJ='-KPIC' 16976 lt_prog_compiler_static_GCJ='-Bstatic' 16977 ;; 16978 16979 unicos*) 16980 lt_prog_compiler_wl_GCJ='-Wl,' 16981 lt_prog_compiler_can_build_shared_GCJ=no 16982 ;; 16983 16984 uts4*) 16985 lt_prog_compiler_pic_GCJ='-pic' 16986 lt_prog_compiler_static_GCJ='-Bstatic' 16987 ;; 16988 16989 *) 16990 lt_prog_compiler_can_build_shared_GCJ=no 16991 ;; 16992 esac 16993 fi 16994 16995{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 16996echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } 16997 16998# 16999# Check to make sure the PIC flag actually works. 17000# 17001if test -n "$lt_prog_compiler_pic_GCJ"; then 17002 17003{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 17004echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } 17005if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 17006 echo $ECHO_N "(cached) $ECHO_C" >&6 17007else 17008 lt_prog_compiler_pic_works_GCJ=no 17009 ac_outfile=conftest.$ac_objext 17010 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17011 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 17012 # Insert the option either (1) after the last *FLAGS variable, or 17013 # (2) before a word containing "conftest.", or (3) at the end. 17014 # Note that $ac_compile itself does not contain backslashes and begins 17015 # with a dollar sign (not a hyphen), so the echo should work correctly. 17016 # The option is referenced via a variable to avoid confusing sed. 17017 lt_compile=`echo "$ac_compile" | $SED \ 17018 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17019 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17020 -e 's:$: $lt_compiler_flag:'` 17021 (eval echo "\"\$as_me:17021: $lt_compile\"" >&5) 17022 (eval "$lt_compile" 2>conftest.err) 17023 ac_status=$? 17024 cat conftest.err >&5 17025 echo "$as_me:17025: \$? = $ac_status" >&5 17026 if (exit $ac_status) && test -s "$ac_outfile"; then 17027 # The compiler can only warn and ignore the option if not recognized 17028 # So say no if there are warnings other than the usual output. 17029 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 17030 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17031 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17032 lt_prog_compiler_pic_works_GCJ=yes 17033 fi 17034 fi 17035 $rm conftest* 17036 17037fi 17038{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 17039echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } 17040 17041if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 17042 case $lt_prog_compiler_pic_GCJ in 17043 "" | " "*) ;; 17044 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 17045 esac 17046else 17047 lt_prog_compiler_pic_GCJ= 17048 lt_prog_compiler_can_build_shared_GCJ=no 17049fi 17050 17051fi 17052case $host_os in 17053 # For platforms which do not support PIC, -DPIC is meaningless: 17054 *djgpp*) 17055 lt_prog_compiler_pic_GCJ= 17056 ;; 17057 *) 17058 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 17059 ;; 17060esac 17061 17062# 17063# Check to make sure the static flag actually works. 17064# 17065wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 17066{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 17067echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 17068if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 17069 echo $ECHO_N "(cached) $ECHO_C" >&6 17070else 17071 lt_prog_compiler_static_works_GCJ=no 17072 save_LDFLAGS="$LDFLAGS" 17073 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17074 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17075 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17076 # The linker can only warn and ignore the option if not recognized 17077 # So say no if there are warnings 17078 if test -s conftest.err; then 17079 # Append any errors to the config.log. 17080 cat conftest.err 1>&5 17081 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 17082 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17083 if diff conftest.exp conftest.er2 >/dev/null; then 17084 lt_prog_compiler_static_works_GCJ=yes 17085 fi 17086 else 17087 lt_prog_compiler_static_works_GCJ=yes 17088 fi 17089 fi 17090 $rm conftest* 17091 LDFLAGS="$save_LDFLAGS" 17092 17093fi 17094{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 17095echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } 17096 17097if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 17098 : 17099else 17100 lt_prog_compiler_static_GCJ= 17101fi 17102 17103 17104{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 17105echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 17106if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 17107 echo $ECHO_N "(cached) $ECHO_C" >&6 17108else 17109 lt_cv_prog_compiler_c_o_GCJ=no 17110 $rm -r conftest 2>/dev/null 17111 mkdir conftest 17112 cd conftest 17113 mkdir out 17114 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17115 17116 lt_compiler_flag="-o out/conftest2.$ac_objext" 17117 # Insert the option either (1) after the last *FLAGS variable, or 17118 # (2) before a word containing "conftest.", or (3) at the end. 17119 # Note that $ac_compile itself does not contain backslashes and begins 17120 # with a dollar sign (not a hyphen), so the echo should work correctly. 17121 lt_compile=`echo "$ac_compile" | $SED \ 17122 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17123 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17124 -e 's:$: $lt_compiler_flag:'` 17125 (eval echo "\"\$as_me:17125: $lt_compile\"" >&5) 17126 (eval "$lt_compile" 2>out/conftest.err) 17127 ac_status=$? 17128 cat out/conftest.err >&5 17129 echo "$as_me:17129: \$? = $ac_status" >&5 17130 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17131 then 17132 # The compiler can only warn and ignore the option if not recognized 17133 # So say no if there are warnings 17134 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 17135 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17136 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17137 lt_cv_prog_compiler_c_o_GCJ=yes 17138 fi 17139 fi 17140 chmod u+w . 2>&5 17141 $rm conftest* 17142 # SGI C++ compiler will create directory out/ii_files/ for 17143 # template instantiation 17144 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 17145 $rm out/* && rmdir out 17146 cd .. 17147 rmdir conftest 17148 $rm conftest* 17149 17150fi 17151{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 17152echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } 17153 17154 17155hard_links="nottested" 17156if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 17157 # do not overwrite the value of need_locks provided by the user 17158 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 17159echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 17160 hard_links=yes 17161 $rm conftest* 17162 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17163 touch conftest.a 17164 ln conftest.a conftest.b 2>&5 || hard_links=no 17165 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17166 { echo "$as_me:$LINENO: result: $hard_links" >&5 17167echo "${ECHO_T}$hard_links" >&6; } 17168 if test "$hard_links" = no; then 17169 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 17170echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 17171 need_locks=warn 17172 fi 17173else 17174 need_locks=no 17175fi 17176 17177{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17178echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 17179 17180 runpath_var= 17181 allow_undefined_flag_GCJ= 17182 enable_shared_with_static_runtimes_GCJ=no 17183 archive_cmds_GCJ= 17184 archive_expsym_cmds_GCJ= 17185 old_archive_From_new_cmds_GCJ= 17186 old_archive_from_expsyms_cmds_GCJ= 17187 export_dynamic_flag_spec_GCJ= 17188 whole_archive_flag_spec_GCJ= 17189 thread_safe_flag_spec_GCJ= 17190 hardcode_libdir_flag_spec_GCJ= 17191 hardcode_libdir_flag_spec_ld_GCJ= 17192 hardcode_libdir_separator_GCJ= 17193 hardcode_direct_GCJ=no 17194 hardcode_minus_L_GCJ=no 17195 hardcode_shlibpath_var_GCJ=unsupported 17196 link_all_deplibs_GCJ=unknown 17197 hardcode_automatic_GCJ=no 17198 module_cmds_GCJ= 17199 module_expsym_cmds_GCJ= 17200 always_export_symbols_GCJ=no 17201 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17202 # include_expsyms should be a list of space-separated symbols to be *always* 17203 # included in the symbol list 17204 include_expsyms_GCJ= 17205 # exclude_expsyms can be an extended regexp of symbols to exclude 17206 # it will be wrapped by ` (' and `)$', so one must not match beginning or 17207 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 17208 # as well as any symbol that contains `d'. 17209 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 17210 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 17211 # platforms (ab)use it in PIC code, but their linkers get confused if 17212 # the symbol is explicitly referenced. Since portable code cannot 17213 # rely on this symbol name, it's probably fine to never include it in 17214 # preloaded symbol tables. 17215 extract_expsyms_cmds= 17216 # Just being paranoid about ensuring that cc_basename is set. 17217 for cc_temp in $compiler""; do 17218 case $cc_temp in 17219 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17220 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17221 \-*) ;; 17222 *) break;; 17223 esac 17224done 17225cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17226 17227 case $host_os in 17228 cygwin* | mingw* | pw32*) 17229 # FIXME: the MSVC++ port hasn't been tested in a loooong time 17230 # When not using gcc, we currently assume that we are using 17231 # Microsoft Visual C++. 17232 if test "$GCC" != yes; then 17233 with_gnu_ld=no 17234 fi 17235 ;; 17236 interix*) 17237 # we just hope/assume this is gcc and not c89 (= MSVC++) 17238 with_gnu_ld=yes 17239 ;; 17240 openbsd*) 17241 with_gnu_ld=no 17242 ;; 17243 esac 17244 17245 ld_shlibs_GCJ=yes 17246 if test "$with_gnu_ld" = yes; then 17247 # If archive_cmds runs LD, not CC, wlarc should be empty 17248 wlarc='${wl}' 17249 17250 # Set some defaults for GNU ld with shared library support. These 17251 # are reset later if shared libraries are not supported. Putting them 17252 # here allows them to be overridden if necessary. 17253 runpath_var=LD_RUN_PATH 17254 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 17255 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 17256 # ancient GNU ld didn't support --whole-archive et. al. 17257 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 17258 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 17259 else 17260 whole_archive_flag_spec_GCJ= 17261 fi 17262 supports_anon_versioning=no 17263 case `$LD -v 2>/dev/null` in 17264 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 17265 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 17266 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 17267 *\ 2.11.*) ;; # other 2.11 versions 17268 *) supports_anon_versioning=yes ;; 17269 esac 17270 17271 # See if GNU ld supports shared libraries. 17272 case $host_os in 17273 aix3* | aix4* | aix5*) 17274 # On AIX/PPC, the GNU linker is very broken 17275 if test "$host_cpu" != ia64; then 17276 ld_shlibs_GCJ=no 17277 cat <<EOF 1>&2 17278 17279*** Warning: the GNU linker, at least up to release 2.9.1, is reported 17280*** to be unable to reliably create shared libraries on AIX. 17281*** Therefore, libtool is disabling shared libraries support. If you 17282*** really care for shared libraries, you may want to modify your PATH 17283*** so that a non-GNU linker is found, and then restart. 17284 17285EOF 17286 fi 17287 ;; 17288 17289 amigaos*) 17290 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)' 17291 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17292 hardcode_minus_L_GCJ=yes 17293 17294 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 17295 # that the semantics of dynamic libraries on AmigaOS, at least up 17296 # to version 4, is to share data among multiple programs linked 17297 # with the same dynamic library. Since this doesn't match the 17298 # behavior of shared libraries on other platforms, we can't use 17299 # them. 17300 ld_shlibs_GCJ=no 17301 ;; 17302 17303 beos*) 17304 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17305 allow_undefined_flag_GCJ=unsupported 17306 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 17307 # support --undefined. This deserves some investigation. FIXME 17308 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17309 else 17310 ld_shlibs_GCJ=no 17311 fi 17312 ;; 17313 17314 cygwin* | mingw* | pw32*) 17315 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 17316 # as there is no search path for DLLs. 17317 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17318 allow_undefined_flag_GCJ=unsupported 17319 always_export_symbols_GCJ=no 17320 enable_shared_with_static_runtimes_GCJ=yes 17321 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 17322 17323 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 17324 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17325 # If the export-symbols file already is a .def file (1st line 17326 # is EXPORTS), use it as is; otherwise, prepend... 17327 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 17328 cp $export_symbols $output_objdir/$soname.def; 17329 else 17330 echo EXPORTS > $output_objdir/$soname.def; 17331 cat $export_symbols >> $output_objdir/$soname.def; 17332 fi~ 17333 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17334 else 17335 ld_shlibs_GCJ=no 17336 fi 17337 ;; 17338 17339 interix[3-9]*) 17340 hardcode_direct_GCJ=no 17341 hardcode_shlibpath_var_GCJ=no 17342 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17343 export_dynamic_flag_spec_GCJ='${wl}-E' 17344 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 17345 # Instead, shared libraries are loaded at an image base (0x10000000 by 17346 # default) and relocated if they conflict, which is a slow very memory 17347 # consuming and fragmenting process. To avoid this, we pick a random, 17348 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 17349 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 17350 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' 17351 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' 17352 ;; 17353 17354 gnu* | linux* | k*bsd*-gnu) 17355 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17356 tmp_addflag= 17357 case $cc_basename,$host_cpu in 17358 pgcc*) # Portland Group C compiler 17359 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' 17360 tmp_addflag=' $pic_flag' 17361 ;; 17362 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 17363 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' 17364 tmp_addflag=' $pic_flag -Mnomain' ;; 17365 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 17366 tmp_addflag=' -i_dynamic' ;; 17367 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 17368 tmp_addflag=' -i_dynamic -nofor_main' ;; 17369 ifc* | ifort*) # Intel Fortran compiler 17370 tmp_addflag=' -nofor_main' ;; 17371 esac 17372 case `$CC -V 2>&1 | sed 5q` in 17373 *Sun\ C*) # Sun C 5.9 17374 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' 17375 tmp_sharedflag='-G' ;; 17376 *Sun\ F*) # Sun Fortran 8.3 17377 tmp_sharedflag='-G' ;; 17378 *) 17379 tmp_sharedflag='-shared' ;; 17380 esac 17381 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17382 17383 if test $supports_anon_versioning = yes; then 17384 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 17385 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17386 $echo "local: *; };" >> $output_objdir/$libname.ver~ 17387 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17388 fi 17389 else 17390 ld_shlibs_GCJ=no 17391 fi 17392 ;; 17393 17394 netbsd*) 17395 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17396 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17397 wlarc= 17398 else 17399 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17400 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17401 fi 17402 ;; 17403 17404 solaris*) 17405 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 17406 ld_shlibs_GCJ=no 17407 cat <<EOF 1>&2 17408 17409*** Warning: The releases 2.8.* of the GNU linker cannot reliably 17410*** create shared libraries on Solaris systems. Therefore, libtool 17411*** is disabling shared libraries support. We urge you to upgrade GNU 17412*** binutils to release 2.9.1 or newer. Another option is to modify 17413*** your PATH or compiler configuration so that the native linker is 17414*** used, and then restart. 17415 17416EOF 17417 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17418 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17419 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17420 else 17421 ld_shlibs_GCJ=no 17422 fi 17423 ;; 17424 17425 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 17426 case `$LD -v 2>&1` in 17427 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 17428 ld_shlibs_GCJ=no 17429 cat <<_LT_EOF 1>&2 17430 17431*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 17432*** reliably create shared libraries on SCO systems. Therefore, libtool 17433*** is disabling shared libraries support. We urge you to upgrade GNU 17434*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 17435*** your PATH or compiler configuration so that the native linker is 17436*** used, and then restart. 17437 17438_LT_EOF 17439 ;; 17440 *) 17441 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17442 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 17443 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 17444 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 17445 else 17446 ld_shlibs_GCJ=no 17447 fi 17448 ;; 17449 esac 17450 ;; 17451 17452 sunos4*) 17453 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17454 wlarc= 17455 hardcode_direct_GCJ=yes 17456 hardcode_shlibpath_var_GCJ=no 17457 ;; 17458 17459 *) 17460 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17461 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17462 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17463 else 17464 ld_shlibs_GCJ=no 17465 fi 17466 ;; 17467 esac 17468 17469 if test "$ld_shlibs_GCJ" = no; then 17470 runpath_var= 17471 hardcode_libdir_flag_spec_GCJ= 17472 export_dynamic_flag_spec_GCJ= 17473 whole_archive_flag_spec_GCJ= 17474 fi 17475 else 17476 # PORTME fill in a description of your system's linker (not GNU ld) 17477 case $host_os in 17478 aix3*) 17479 allow_undefined_flag_GCJ=unsupported 17480 always_export_symbols_GCJ=yes 17481 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' 17482 # Note: this linker hardcodes the directories in LIBPATH if there 17483 # are no directories specified by -L. 17484 hardcode_minus_L_GCJ=yes 17485 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 17486 # Neither direct hardcoding nor static linking is supported with a 17487 # broken collect2. 17488 hardcode_direct_GCJ=unsupported 17489 fi 17490 ;; 17491 17492 aix4* | aix5*) 17493 if test "$host_cpu" = ia64; then 17494 # On IA64, the linker does run time linking by default, so we don't 17495 # have to do anything special. 17496 aix_use_runtimelinking=no 17497 exp_sym_flag='-Bexport' 17498 no_entry_flag="" 17499 else 17500 # If we're using GNU nm, then we don't want the "-C" option. 17501 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17502 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 17503 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' 17504 else 17505 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' 17506 fi 17507 aix_use_runtimelinking=no 17508 17509 # Test if we are trying to use run time linking or normal 17510 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17511 # need to do runtime linking. 17512 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 17513 for ld_flag in $LDFLAGS; do 17514 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17515 aix_use_runtimelinking=yes 17516 break 17517 fi 17518 done 17519 ;; 17520 esac 17521 17522 exp_sym_flag='-bexport' 17523 no_entry_flag='-bnoentry' 17524 fi 17525 17526 # When large executables or shared objects are built, AIX ld can 17527 # have problems creating the table of contents. If linking a library 17528 # or program results in "error TOC overflow" add -mminimal-toc to 17529 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17530 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17531 17532 archive_cmds_GCJ='' 17533 hardcode_direct_GCJ=yes 17534 hardcode_libdir_separator_GCJ=':' 17535 link_all_deplibs_GCJ=yes 17536 17537 if test "$GCC" = yes; then 17538 case $host_os in aix4.[012]|aix4.[012].*) 17539 # We only want to do this on AIX 4.2 and lower, the check 17540 # below for broken collect2 doesn't work under 4.3+ 17541 collect2name=`${CC} -print-prog-name=collect2` 17542 if test -f "$collect2name" && \ 17543 strings "$collect2name" | grep resolve_lib_name >/dev/null 17544 then 17545 # We have reworked collect2 17546 : 17547 else 17548 # We have old collect2 17549 hardcode_direct_GCJ=unsupported 17550 # It fails to find uninstalled libraries when the uninstalled 17551 # path is not listed in the libpath. Setting hardcode_minus_L 17552 # to unsupported forces relinking 17553 hardcode_minus_L_GCJ=yes 17554 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17555 hardcode_libdir_separator_GCJ= 17556 fi 17557 ;; 17558 esac 17559 shared_flag='-shared' 17560 if test "$aix_use_runtimelinking" = yes; then 17561 shared_flag="$shared_flag "'${wl}-G' 17562 fi 17563 else 17564 # not using gcc 17565 if test "$host_cpu" = ia64; then 17566 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17567 # chokes on -Wl,-G. The following line is correct: 17568 shared_flag='-G' 17569 else 17570 if test "$aix_use_runtimelinking" = yes; then 17571 shared_flag='${wl}-G' 17572 else 17573 shared_flag='${wl}-bM:SRE' 17574 fi 17575 fi 17576 fi 17577 17578 # It seems that -bexpall does not export symbols beginning with 17579 # underscore (_), so it is better to generate a list of symbols to export. 17580 always_export_symbols_GCJ=yes 17581 if test "$aix_use_runtimelinking" = yes; then 17582 # Warning - without using the other runtime loading flags (-brtl), 17583 # -berok will link without error, but may produce a broken library. 17584 allow_undefined_flag_GCJ='-berok' 17585 # Determine the default libpath from the value encoded in an empty executable. 17586 cat >conftest.$ac_ext <<_ACEOF 17587/* confdefs.h. */ 17588_ACEOF 17589cat confdefs.h >>conftest.$ac_ext 17590cat >>conftest.$ac_ext <<_ACEOF 17591/* end confdefs.h. */ 17592 17593int 17594main () 17595{ 17596 17597 ; 17598 return 0; 17599} 17600_ACEOF 17601rm -f conftest.$ac_objext conftest$ac_exeext 17602if { (ac_try="$ac_link" 17603case "(($ac_try" in 17604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17605 *) ac_try_echo=$ac_try;; 17606esac 17607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17608 (eval "$ac_link") 2>conftest.er1 17609 ac_status=$? 17610 grep -v '^ *+' conftest.er1 >conftest.err 17611 rm -f conftest.er1 17612 cat conftest.err >&5 17613 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17614 (exit $ac_status); } && { 17615 test -z "$ac_c_werror_flag" || 17616 test ! -s conftest.err 17617 } && test -s conftest$ac_exeext && 17618 $as_test_x conftest$ac_exeext; then 17619 17620lt_aix_libpath_sed=' 17621 /Import File Strings/,/^$/ { 17622 /^0/ { 17623 s/^0 *\(.*\)$/\1/ 17624 p 17625 } 17626 }' 17627aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17628# Check for a 64-bit object if we didn't find anything. 17629if test -z "$aix_libpath"; then 17630 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17631fi 17632else 17633 echo "$as_me: failed program was:" >&5 17634sed 's/^/| /' conftest.$ac_ext >&5 17635 17636 17637fi 17638 17639rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17640 conftest$ac_exeext conftest.$ac_ext 17641if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17642 17643 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17644 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" 17645 else 17646 if test "$host_cpu" = ia64; then 17647 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17648 allow_undefined_flag_GCJ="-z nodefs" 17649 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" 17650 else 17651 # Determine the default libpath from the value encoded in an empty executable. 17652 cat >conftest.$ac_ext <<_ACEOF 17653/* confdefs.h. */ 17654_ACEOF 17655cat confdefs.h >>conftest.$ac_ext 17656cat >>conftest.$ac_ext <<_ACEOF 17657/* end confdefs.h. */ 17658 17659int 17660main () 17661{ 17662 17663 ; 17664 return 0; 17665} 17666_ACEOF 17667rm -f conftest.$ac_objext conftest$ac_exeext 17668if { (ac_try="$ac_link" 17669case "(($ac_try" in 17670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17671 *) ac_try_echo=$ac_try;; 17672esac 17673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17674 (eval "$ac_link") 2>conftest.er1 17675 ac_status=$? 17676 grep -v '^ *+' conftest.er1 >conftest.err 17677 rm -f conftest.er1 17678 cat conftest.err >&5 17679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17680 (exit $ac_status); } && { 17681 test -z "$ac_c_werror_flag" || 17682 test ! -s conftest.err 17683 } && test -s conftest$ac_exeext && 17684 $as_test_x conftest$ac_exeext; then 17685 17686lt_aix_libpath_sed=' 17687 /Import File Strings/,/^$/ { 17688 /^0/ { 17689 s/^0 *\(.*\)$/\1/ 17690 p 17691 } 17692 }' 17693aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17694# Check for a 64-bit object if we didn't find anything. 17695if test -z "$aix_libpath"; then 17696 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17697fi 17698else 17699 echo "$as_me: failed program was:" >&5 17700sed 's/^/| /' conftest.$ac_ext >&5 17701 17702 17703fi 17704 17705rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17706 conftest$ac_exeext conftest.$ac_ext 17707if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17708 17709 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17710 # Warning - without using the other run time loading flags, 17711 # -berok will link without error, but may produce a broken library. 17712 no_undefined_flag_GCJ=' ${wl}-bernotok' 17713 allow_undefined_flag_GCJ=' ${wl}-berok' 17714 # Exported symbols can be pulled into shared objects from archives 17715 whole_archive_flag_spec_GCJ='$convenience' 17716 archive_cmds_need_lc_GCJ=yes 17717 # This is similar to how AIX traditionally builds its shared libraries. 17718 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' 17719 fi 17720 fi 17721 ;; 17722 17723 amigaos*) 17724 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)' 17725 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17726 hardcode_minus_L_GCJ=yes 17727 # see comment about different semantics on the GNU ld section 17728 ld_shlibs_GCJ=no 17729 ;; 17730 17731 bsdi[45]*) 17732 export_dynamic_flag_spec_GCJ=-rdynamic 17733 ;; 17734 17735 cygwin* | mingw* | pw32*) 17736 # When not using gcc, we currently assume that we are using 17737 # Microsoft Visual C++. 17738 # hardcode_libdir_flag_spec is actually meaningless, as there is 17739 # no search path for DLLs. 17740 hardcode_libdir_flag_spec_GCJ=' ' 17741 allow_undefined_flag_GCJ=unsupported 17742 # Tell ltmain to make .lib files, not .a files. 17743 libext=lib 17744 # Tell ltmain to make .dll files, not .so files. 17745 shrext_cmds=".dll" 17746 # FIXME: Setting linknames here is a bad hack. 17747 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17748 # The linker will automatically build a .lib file if we build a DLL. 17749 old_archive_From_new_cmds_GCJ='true' 17750 # FIXME: Should let the user specify the lib program. 17751 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' 17752 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17753 enable_shared_with_static_runtimes_GCJ=yes 17754 ;; 17755 17756 darwin* | rhapsody*) 17757 case $host_os in 17758 rhapsody* | darwin1.[012]) 17759 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17760 ;; 17761 *) # Darwin 1.3 on 17762 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17763 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17764 else 17765 case ${MACOSX_DEPLOYMENT_TARGET} in 17766 10.[012]) 17767 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17768 ;; 17769 10.*) 17770 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17771 ;; 17772 esac 17773 fi 17774 ;; 17775 esac 17776 archive_cmds_need_lc_GCJ=no 17777 hardcode_direct_GCJ=no 17778 hardcode_automatic_GCJ=yes 17779 hardcode_shlibpath_var_GCJ=unsupported 17780 whole_archive_flag_spec_GCJ='' 17781 link_all_deplibs_GCJ=yes 17782 if test "$GCC" = yes ; then 17783 output_verbose_link_cmd='echo' 17784 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 17785 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17786 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17787 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}' 17788 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}' 17789 else 17790 case $cc_basename in 17791 xlc*) 17792 output_verbose_link_cmd='echo' 17793 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 17794 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17795 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17796 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17797 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}' 17798 ;; 17799 *) 17800 ld_shlibs_GCJ=no 17801 ;; 17802 esac 17803 fi 17804 ;; 17805 17806 dgux*) 17807 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17808 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17809 hardcode_shlibpath_var_GCJ=no 17810 ;; 17811 17812 freebsd1*) 17813 ld_shlibs_GCJ=no 17814 ;; 17815 17816 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17817 # support. Future versions do this automatically, but an explicit c++rt0.o 17818 # does not break anything, and helps significantly (at the cost of a little 17819 # extra space). 17820 freebsd2.2*) 17821 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17822 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17823 hardcode_direct_GCJ=yes 17824 hardcode_shlibpath_var_GCJ=no 17825 ;; 17826 17827 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17828 freebsd2*) 17829 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17830 hardcode_direct_GCJ=yes 17831 hardcode_minus_L_GCJ=yes 17832 hardcode_shlibpath_var_GCJ=no 17833 ;; 17834 17835 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17836 freebsd* | dragonfly*) 17837 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17838 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17839 hardcode_direct_GCJ=yes 17840 hardcode_shlibpath_var_GCJ=no 17841 ;; 17842 17843 hpux9*) 17844 if test "$GCC" = yes; then 17845 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' 17846 else 17847 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' 17848 fi 17849 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17850 hardcode_libdir_separator_GCJ=: 17851 hardcode_direct_GCJ=yes 17852 17853 # hardcode_minus_L: Not really in the search PATH, 17854 # but as the default location of the library. 17855 hardcode_minus_L_GCJ=yes 17856 export_dynamic_flag_spec_GCJ='${wl}-E' 17857 ;; 17858 17859 hpux10*) 17860 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17861 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17862 else 17863 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17864 fi 17865 if test "$with_gnu_ld" = no; then 17866 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17867 hardcode_libdir_separator_GCJ=: 17868 17869 hardcode_direct_GCJ=yes 17870 export_dynamic_flag_spec_GCJ='${wl}-E' 17871 17872 # hardcode_minus_L: Not really in the search PATH, 17873 # but as the default location of the library. 17874 hardcode_minus_L_GCJ=yes 17875 fi 17876 ;; 17877 17878 hpux11*) 17879 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17880 case $host_cpu in 17881 hppa*64*) 17882 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17883 ;; 17884 ia64*) 17885 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17886 ;; 17887 *) 17888 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17889 ;; 17890 esac 17891 else 17892 case $host_cpu in 17893 hppa*64*) 17894 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17895 ;; 17896 ia64*) 17897 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17898 ;; 17899 *) 17900 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17901 ;; 17902 esac 17903 fi 17904 if test "$with_gnu_ld" = no; then 17905 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17906 hardcode_libdir_separator_GCJ=: 17907 17908 case $host_cpu in 17909 hppa*64*|ia64*) 17910 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 17911 hardcode_direct_GCJ=no 17912 hardcode_shlibpath_var_GCJ=no 17913 ;; 17914 *) 17915 hardcode_direct_GCJ=yes 17916 export_dynamic_flag_spec_GCJ='${wl}-E' 17917 17918 # hardcode_minus_L: Not really in the search PATH, 17919 # but as the default location of the library. 17920 hardcode_minus_L_GCJ=yes 17921 ;; 17922 esac 17923 fi 17924 ;; 17925 17926 irix5* | irix6* | nonstopux*) 17927 if test "$GCC" = yes; then 17928 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' 17929 else 17930 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' 17931 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 17932 fi 17933 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17934 hardcode_libdir_separator_GCJ=: 17935 link_all_deplibs_GCJ=yes 17936 ;; 17937 17938 netbsd*) 17939 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17940 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17941 else 17942 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17943 fi 17944 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17945 hardcode_direct_GCJ=yes 17946 hardcode_shlibpath_var_GCJ=no 17947 ;; 17948 17949 newsos6) 17950 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17951 hardcode_direct_GCJ=yes 17952 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17953 hardcode_libdir_separator_GCJ=: 17954 hardcode_shlibpath_var_GCJ=no 17955 ;; 17956 17957 openbsd*) 17958 if test -f /usr/libexec/ld.so; then 17959 hardcode_direct_GCJ=yes 17960 hardcode_shlibpath_var_GCJ=no 17961 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17962 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17963 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 17964 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17965 export_dynamic_flag_spec_GCJ='${wl}-E' 17966 else 17967 case $host_os in 17968 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 17969 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17970 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17971 ;; 17972 *) 17973 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17974 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17975 ;; 17976 esac 17977 fi 17978 else 17979 ld_shlibs_GCJ=no 17980 fi 17981 ;; 17982 17983 os2*) 17984 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17985 hardcode_minus_L_GCJ=yes 17986 allow_undefined_flag_GCJ=unsupported 17987 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' 17988 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 17989 ;; 17990 17991 osf3*) 17992 if test "$GCC" = yes; then 17993 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17994 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' 17995 else 17996 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17997 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' 17998 fi 17999 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18000 hardcode_libdir_separator_GCJ=: 18001 ;; 18002 18003 osf4* | osf5*) # as osf3* with the addition of -msym flag 18004 if test "$GCC" = yes; then 18005 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18006 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' 18007 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18008 else 18009 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18010 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' 18011 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~ 18012 $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' 18013 18014 # Both c and cxx compiler support -rpath directly 18015 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 18016 fi 18017 hardcode_libdir_separator_GCJ=: 18018 ;; 18019 18020 solaris*) 18021 no_undefined_flag_GCJ=' -z text' 18022 if test "$GCC" = yes; then 18023 wlarc='${wl}' 18024 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18025 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18026 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 18027 else 18028 wlarc='' 18029 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 18030 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18031 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 18032 fi 18033 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18034 hardcode_shlibpath_var_GCJ=no 18035 case $host_os in 18036 solaris2.[0-5] | solaris2.[0-5].*) ;; 18037 *) 18038 # The compiler driver will combine and reorder linker options, 18039 # but understands `-z linker_flag'. GCC discards it without `$wl', 18040 # but is careful enough not to reorder. 18041 # Supported since Solaris 2.6 (maybe 2.5.1?) 18042 if test "$GCC" = yes; then 18043 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 18044 else 18045 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' 18046 fi 18047 ;; 18048 esac 18049 link_all_deplibs_GCJ=yes 18050 ;; 18051 18052 sunos4*) 18053 if test "x$host_vendor" = xsequent; then 18054 # Use $CC to link under sequent, because it throws in some extra .o 18055 # files that make .init and .fini sections work. 18056 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 18057 else 18058 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 18059 fi 18060 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18061 hardcode_direct_GCJ=yes 18062 hardcode_minus_L_GCJ=yes 18063 hardcode_shlibpath_var_GCJ=no 18064 ;; 18065 18066 sysv4) 18067 case $host_vendor in 18068 sni) 18069 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18070 hardcode_direct_GCJ=yes # is this really true??? 18071 ;; 18072 siemens) 18073 ## LD is ld it makes a PLAMLIB 18074 ## CC just makes a GrossModule. 18075 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 18076 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 18077 hardcode_direct_GCJ=no 18078 ;; 18079 motorola) 18080 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18081 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 18082 ;; 18083 esac 18084 runpath_var='LD_RUN_PATH' 18085 hardcode_shlibpath_var_GCJ=no 18086 ;; 18087 18088 sysv4.3*) 18089 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18090 hardcode_shlibpath_var_GCJ=no 18091 export_dynamic_flag_spec_GCJ='-Bexport' 18092 ;; 18093 18094 sysv4*MP*) 18095 if test -d /usr/nec; then 18096 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18097 hardcode_shlibpath_var_GCJ=no 18098 runpath_var=LD_RUN_PATH 18099 hardcode_runpath_var=yes 18100 ld_shlibs_GCJ=yes 18101 fi 18102 ;; 18103 18104 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 18105 no_undefined_flag_GCJ='${wl}-z,text' 18106 archive_cmds_need_lc_GCJ=no 18107 hardcode_shlibpath_var_GCJ=no 18108 runpath_var='LD_RUN_PATH' 18109 18110 if test "$GCC" = yes; then 18111 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18112 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18113 else 18114 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18115 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18116 fi 18117 ;; 18118 18119 sysv5* | sco3.2v5* | sco5v6*) 18120 # Note: We can NOT use -z defs as we might desire, because we do not 18121 # link with -lc, and that would cause any symbols used from libc to 18122 # always be unresolved, which means just about no library would 18123 # ever link correctly. If we're not using GNU ld we use -z text 18124 # though, which does catch some bad symbols but isn't as heavy-handed 18125 # as -z defs. 18126 no_undefined_flag_GCJ='${wl}-z,text' 18127 allow_undefined_flag_GCJ='${wl}-z,nodefs' 18128 archive_cmds_need_lc_GCJ=no 18129 hardcode_shlibpath_var_GCJ=no 18130 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 18131 hardcode_libdir_separator_GCJ=':' 18132 link_all_deplibs_GCJ=yes 18133 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 18134 runpath_var='LD_RUN_PATH' 18135 18136 if test "$GCC" = yes; then 18137 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18138 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18139 else 18140 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18141 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18142 fi 18143 ;; 18144 18145 uts4*) 18146 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18147 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18148 hardcode_shlibpath_var_GCJ=no 18149 ;; 18150 18151 *) 18152 ld_shlibs_GCJ=no 18153 ;; 18154 esac 18155 fi 18156 18157{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 18158echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } 18159test "$ld_shlibs_GCJ" = no && can_build_shared=no 18160 18161# 18162# Do we need to explicitly link libc? 18163# 18164case "x$archive_cmds_need_lc_GCJ" in 18165x|xyes) 18166 # Assume -lc should be added 18167 archive_cmds_need_lc_GCJ=yes 18168 18169 if test "$enable_shared" = yes && test "$GCC" = yes; then 18170 case $archive_cmds_GCJ in 18171 *'~'*) 18172 # FIXME: we may have to deal with multi-command sequences. 18173 ;; 18174 '$CC '*) 18175 # Test whether the compiler implicitly links with -lc since on some 18176 # systems, -lgcc has to come before -lc. If gcc already passes -lc 18177 # to ld, don't add -lc before -lgcc. 18178 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 18179echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 18180 $rm conftest* 18181 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18182 18183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18184 (eval $ac_compile) 2>&5 18185 ac_status=$? 18186 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18187 (exit $ac_status); } 2>conftest.err; then 18188 soname=conftest 18189 lib=conftest 18190 libobjs=conftest.$ac_objext 18191 deplibs= 18192 wl=$lt_prog_compiler_wl_GCJ 18193 pic_flag=$lt_prog_compiler_pic_GCJ 18194 compiler_flags=-v 18195 linker_flags=-v 18196 verstring= 18197 output_objdir=. 18198 libname=conftest 18199 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 18200 allow_undefined_flag_GCJ= 18201 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 18202 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 18203 ac_status=$? 18204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18205 (exit $ac_status); } 18206 then 18207 archive_cmds_need_lc_GCJ=no 18208 else 18209 archive_cmds_need_lc_GCJ=yes 18210 fi 18211 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 18212 else 18213 cat conftest.err 1>&5 18214 fi 18215 $rm conftest* 18216 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 18217echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } 18218 ;; 18219 esac 18220 fi 18221 ;; 18222esac 18223 18224{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 18225echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 18226library_names_spec= 18227libname_spec='lib$name' 18228soname_spec= 18229shrext_cmds=".so" 18230postinstall_cmds= 18231postuninstall_cmds= 18232finish_cmds= 18233finish_eval= 18234shlibpath_var= 18235shlibpath_overrides_runpath=unknown 18236version_type=none 18237dynamic_linker="$host_os ld.so" 18238sys_lib_dlsearch_path_spec="/lib /usr/lib" 18239 18240need_lib_prefix=unknown 18241hardcode_into_libs=no 18242 18243# when you set need_version to no, make sure it does not cause -set_version 18244# flags to be left without arguments 18245need_version=unknown 18246 18247case $host_os in 18248aix3*) 18249 version_type=linux 18250 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 18251 shlibpath_var=LIBPATH 18252 18253 # AIX 3 has no versioning support, so we append a major version to the name. 18254 soname_spec='${libname}${release}${shared_ext}$major' 18255 ;; 18256 18257aix4* | aix5*) 18258 version_type=linux 18259 need_lib_prefix=no 18260 need_version=no 18261 hardcode_into_libs=yes 18262 if test "$host_cpu" = ia64; then 18263 # AIX 5 supports IA64 18264 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 18265 shlibpath_var=LD_LIBRARY_PATH 18266 else 18267 # With GCC up to 2.95.x, collect2 would create an import file 18268 # for dependence libraries. The import file would start with 18269 # the line `#! .'. This would cause the generated library to 18270 # depend on `.', always an invalid library. This was fixed in 18271 # development snapshots of GCC prior to 3.0. 18272 case $host_os in 18273 aix4 | aix4.[01] | aix4.[01].*) 18274 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18275 echo ' yes ' 18276 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 18277 : 18278 else 18279 can_build_shared=no 18280 fi 18281 ;; 18282 esac 18283 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 18284 # soname into executable. Probably we can add versioning support to 18285 # collect2, so additional links can be useful in future. 18286 if test "$aix_use_runtimelinking" = yes; then 18287 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18288 # instead of lib<name>.a to let people know that these are not 18289 # typical AIX shared libraries. 18290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18291 else 18292 # We preserve .a as extension for shared libraries through AIX4.2 18293 # and later when we are not doing run time linking. 18294 library_names_spec='${libname}${release}.a $libname.a' 18295 soname_spec='${libname}${release}${shared_ext}$major' 18296 fi 18297 shlibpath_var=LIBPATH 18298 fi 18299 ;; 18300 18301amigaos*) 18302 library_names_spec='$libname.ixlibrary $libname.a' 18303 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18304 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' 18305 ;; 18306 18307beos*) 18308 library_names_spec='${libname}${shared_ext}' 18309 dynamic_linker="$host_os ld.so" 18310 shlibpath_var=LIBRARY_PATH 18311 ;; 18312 18313bsdi[45]*) 18314 version_type=linux 18315 need_version=no 18316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18317 soname_spec='${libname}${release}${shared_ext}$major' 18318 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18319 shlibpath_var=LD_LIBRARY_PATH 18320 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18321 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18322 # the default ld.so.conf also contains /usr/contrib/lib and 18323 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18324 # libtool to hard-code these into programs 18325 ;; 18326 18327cygwin* | mingw* | pw32*) 18328 version_type=windows 18329 shrext_cmds=".dll" 18330 need_version=no 18331 need_lib_prefix=no 18332 18333 case $GCC,$host_os in 18334 yes,cygwin* | yes,mingw* | yes,pw32*) 18335 library_names_spec='$libname.dll.a' 18336 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18337 postinstall_cmds='base_file=`basename \${file}`~ 18338 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 18339 dldir=$destdir/`dirname \$dlpath`~ 18340 test -d \$dldir || mkdir -p \$dldir~ 18341 $install_prog $dir/$dlname \$dldir/$dlname~ 18342 chmod a+x \$dldir/$dlname' 18343 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18344 dlpath=$dir/\$dldll~ 18345 $rm \$dlpath' 18346 shlibpath_overrides_runpath=yes 18347 18348 case $host_os in 18349 cygwin*) 18350 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18351 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18352 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 18353 ;; 18354 mingw*) 18355 # MinGW DLLs use traditional 'lib' prefix 18356 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18357 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18358 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 18359 # It is most probably a Windows format PATH printed by 18360 # mingw gcc, but we are running on Cygwin. Gcc prints its search 18361 # path with ; separators, and with drive letters. We can handle the 18362 # drive letters (cygwin fileutils understands them), so leave them, 18363 # especially as we might pass files found there to a mingw objdump, 18364 # which wouldn't understand a cygwinified path. Ahh. 18365 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18366 else 18367 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18368 fi 18369 ;; 18370 pw32*) 18371 # pw32 DLLs use 'pw' prefix rather than 'lib' 18372 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18373 ;; 18374 esac 18375 ;; 18376 18377 *) 18378 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 18379 ;; 18380 esac 18381 dynamic_linker='Win32 ld.exe' 18382 # FIXME: first we should search . and the directory the executable is in 18383 shlibpath_var=PATH 18384 ;; 18385 18386darwin* | rhapsody*) 18387 dynamic_linker="$host_os dyld" 18388 version_type=darwin 18389 need_lib_prefix=no 18390 need_version=no 18391 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 18392 soname_spec='${libname}${release}${major}$shared_ext' 18393 shlibpath_overrides_runpath=yes 18394 shlibpath_var=DYLD_LIBRARY_PATH 18395 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18396 18397 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18398 ;; 18399 18400dgux*) 18401 version_type=linux 18402 need_lib_prefix=no 18403 need_version=no 18404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 18405 soname_spec='${libname}${release}${shared_ext}$major' 18406 shlibpath_var=LD_LIBRARY_PATH 18407 ;; 18408 18409freebsd1*) 18410 dynamic_linker=no 18411 ;; 18412 18413freebsd* | dragonfly*) 18414 # DragonFly does not have aout. When/if they implement a new 18415 # versioning mechanism, adjust this. 18416 if test -x /usr/bin/objformat; then 18417 objformat=`/usr/bin/objformat` 18418 else 18419 case $host_os in 18420 freebsd[123]*) objformat=aout ;; 18421 *) objformat=elf ;; 18422 esac 18423 fi 18424 version_type=freebsd-$objformat 18425 case $version_type in 18426 freebsd-elf*) 18427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18428 need_version=no 18429 need_lib_prefix=no 18430 ;; 18431 freebsd-*) 18432 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18433 need_version=yes 18434 ;; 18435 esac 18436 shlibpath_var=LD_LIBRARY_PATH 18437 case $host_os in 18438 freebsd2*) 18439 shlibpath_overrides_runpath=yes 18440 ;; 18441 freebsd3.[01]* | freebsdelf3.[01]*) 18442 shlibpath_overrides_runpath=yes 18443 hardcode_into_libs=yes 18444 ;; 18445 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18446 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18447 shlibpath_overrides_runpath=no 18448 hardcode_into_libs=yes 18449 ;; 18450 *) # from 4.6 on, and DragonFly 18451 shlibpath_overrides_runpath=yes 18452 hardcode_into_libs=yes 18453 ;; 18454 esac 18455 ;; 18456 18457gnu*) 18458 version_type=linux 18459 need_lib_prefix=no 18460 need_version=no 18461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18462 soname_spec='${libname}${release}${shared_ext}$major' 18463 shlibpath_var=LD_LIBRARY_PATH 18464 hardcode_into_libs=yes 18465 ;; 18466 18467hpux9* | hpux10* | hpux11*) 18468 # Give a soname corresponding to the major version so that dld.sl refuses to 18469 # link against other versions. 18470 version_type=sunos 18471 need_lib_prefix=no 18472 need_version=no 18473 case $host_cpu in 18474 ia64*) 18475 shrext_cmds='.so' 18476 hardcode_into_libs=yes 18477 dynamic_linker="$host_os dld.so" 18478 shlibpath_var=LD_LIBRARY_PATH 18479 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18481 soname_spec='${libname}${release}${shared_ext}$major' 18482 if test "X$HPUX_IA64_MODE" = X32; then 18483 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18484 else 18485 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18486 fi 18487 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18488 ;; 18489 hppa*64*) 18490 shrext_cmds='.sl' 18491 hardcode_into_libs=yes 18492 dynamic_linker="$host_os dld.sl" 18493 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18494 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18496 soname_spec='${libname}${release}${shared_ext}$major' 18497 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18498 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18499 ;; 18500 *) 18501 shrext_cmds='.sl' 18502 dynamic_linker="$host_os dld.sl" 18503 shlibpath_var=SHLIB_PATH 18504 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18506 soname_spec='${libname}${release}${shared_ext}$major' 18507 ;; 18508 esac 18509 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18510 postinstall_cmds='chmod 555 $lib' 18511 ;; 18512 18513interix[3-9]*) 18514 version_type=linux 18515 need_lib_prefix=no 18516 need_version=no 18517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18518 soname_spec='${libname}${release}${shared_ext}$major' 18519 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18520 shlibpath_var=LD_LIBRARY_PATH 18521 shlibpath_overrides_runpath=no 18522 hardcode_into_libs=yes 18523 ;; 18524 18525irix5* | irix6* | nonstopux*) 18526 case $host_os in 18527 nonstopux*) version_type=nonstopux ;; 18528 *) 18529 if test "$lt_cv_prog_gnu_ld" = yes; then 18530 version_type=linux 18531 else 18532 version_type=irix 18533 fi ;; 18534 esac 18535 need_lib_prefix=no 18536 need_version=no 18537 soname_spec='${libname}${release}${shared_ext}$major' 18538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18539 case $host_os in 18540 irix5* | nonstopux*) 18541 libsuff= shlibsuff= 18542 ;; 18543 *) 18544 case $LD in # libtool.m4 will add one of these switches to LD 18545 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18546 libsuff= shlibsuff= libmagic=32-bit;; 18547 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18548 libsuff=32 shlibsuff=N32 libmagic=N32;; 18549 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18550 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18551 *) libsuff= shlibsuff= libmagic=never-match;; 18552 esac 18553 ;; 18554 esac 18555 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18556 shlibpath_overrides_runpath=no 18557 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18558 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18559 hardcode_into_libs=yes 18560 ;; 18561 18562# No shared lib support for Linux oldld, aout, or coff. 18563linux*oldld* | linux*aout* | linux*coff*) 18564 dynamic_linker=no 18565 ;; 18566 18567# This must be Linux ELF. 18568linux* | k*bsd*-gnu) 18569 version_type=linux 18570 need_lib_prefix=no 18571 need_version=no 18572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18573 soname_spec='${libname}${release}${shared_ext}$major' 18574 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18575 shlibpath_var=LD_LIBRARY_PATH 18576 shlibpath_overrides_runpath=no 18577 # This implies no fast_install, which is unacceptable. 18578 # Some rework will be needed to allow for fast_install 18579 # before this can be enabled. 18580 hardcode_into_libs=yes 18581 18582 # Append ld.so.conf contents to the search path 18583 if test -f /etc/ld.so.conf; then 18584 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/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 18585 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18586 fi 18587 18588 # We used to test for /lib/ld.so.1 and disable shared libraries on 18589 # powerpc, because MkLinux only supported shared libraries with the 18590 # GNU dynamic linker. Since this was broken with cross compilers, 18591 # most powerpc-linux boxes support dynamic linking these days and 18592 # people can always --disable-shared, the test was removed, and we 18593 # assume the GNU/Linux dynamic linker is in use. 18594 dynamic_linker='GNU/Linux ld.so' 18595 ;; 18596 18597netbsd*) 18598 version_type=sunos 18599 need_lib_prefix=no 18600 need_version=no 18601 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18603 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18604 dynamic_linker='NetBSD (a.out) ld.so' 18605 else 18606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18607 soname_spec='${libname}${release}${shared_ext}$major' 18608 dynamic_linker='NetBSD ld.elf_so' 18609 fi 18610 shlibpath_var=LD_LIBRARY_PATH 18611 shlibpath_overrides_runpath=yes 18612 hardcode_into_libs=yes 18613 ;; 18614 18615newsos6) 18616 version_type=linux 18617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18618 shlibpath_var=LD_LIBRARY_PATH 18619 shlibpath_overrides_runpath=yes 18620 ;; 18621 18622nto-qnx*) 18623 version_type=linux 18624 need_lib_prefix=no 18625 need_version=no 18626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18627 soname_spec='${libname}${release}${shared_ext}$major' 18628 shlibpath_var=LD_LIBRARY_PATH 18629 shlibpath_overrides_runpath=yes 18630 ;; 18631 18632openbsd*) 18633 version_type=sunos 18634 sys_lib_dlsearch_path_spec="/usr/lib" 18635 need_lib_prefix=no 18636 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18637 case $host_os in 18638 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18639 *) need_version=no ;; 18640 esac 18641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18642 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18643 shlibpath_var=LD_LIBRARY_PATH 18644 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18645 case $host_os in 18646 openbsd2.[89] | openbsd2.[89].*) 18647 shlibpath_overrides_runpath=no 18648 ;; 18649 *) 18650 shlibpath_overrides_runpath=yes 18651 ;; 18652 esac 18653 else 18654 shlibpath_overrides_runpath=yes 18655 fi 18656 ;; 18657 18658os2*) 18659 libname_spec='$name' 18660 shrext_cmds=".dll" 18661 need_lib_prefix=no 18662 library_names_spec='$libname${shared_ext} $libname.a' 18663 dynamic_linker='OS/2 ld.exe' 18664 shlibpath_var=LIBPATH 18665 ;; 18666 18667osf3* | osf4* | osf5*) 18668 version_type=osf 18669 need_lib_prefix=no 18670 need_version=no 18671 soname_spec='${libname}${release}${shared_ext}$major' 18672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18673 shlibpath_var=LD_LIBRARY_PATH 18674 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18675 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18676 ;; 18677 18678rdos*) 18679 dynamic_linker=no 18680 ;; 18681 18682solaris*) 18683 version_type=linux 18684 need_lib_prefix=no 18685 need_version=no 18686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18687 soname_spec='${libname}${release}${shared_ext}$major' 18688 shlibpath_var=LD_LIBRARY_PATH 18689 shlibpath_overrides_runpath=yes 18690 hardcode_into_libs=yes 18691 # ldd complains unless libraries are executable 18692 postinstall_cmds='chmod +x $lib' 18693 ;; 18694 18695sunos4*) 18696 version_type=sunos 18697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18698 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18699 shlibpath_var=LD_LIBRARY_PATH 18700 shlibpath_overrides_runpath=yes 18701 if test "$with_gnu_ld" = yes; then 18702 need_lib_prefix=no 18703 fi 18704 need_version=yes 18705 ;; 18706 18707sysv4 | sysv4.3*) 18708 version_type=linux 18709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18710 soname_spec='${libname}${release}${shared_ext}$major' 18711 shlibpath_var=LD_LIBRARY_PATH 18712 case $host_vendor in 18713 sni) 18714 shlibpath_overrides_runpath=no 18715 need_lib_prefix=no 18716 export_dynamic_flag_spec='${wl}-Blargedynsym' 18717 runpath_var=LD_RUN_PATH 18718 ;; 18719 siemens) 18720 need_lib_prefix=no 18721 ;; 18722 motorola) 18723 need_lib_prefix=no 18724 need_version=no 18725 shlibpath_overrides_runpath=no 18726 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18727 ;; 18728 esac 18729 ;; 18730 18731sysv4*MP*) 18732 if test -d /usr/nec ;then 18733 version_type=linux 18734 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18735 soname_spec='$libname${shared_ext}.$major' 18736 shlibpath_var=LD_LIBRARY_PATH 18737 fi 18738 ;; 18739 18740sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18741 version_type=freebsd-elf 18742 need_lib_prefix=no 18743 need_version=no 18744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18745 soname_spec='${libname}${release}${shared_ext}$major' 18746 shlibpath_var=LD_LIBRARY_PATH 18747 hardcode_into_libs=yes 18748 if test "$with_gnu_ld" = yes; then 18749 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18750 shlibpath_overrides_runpath=no 18751 else 18752 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18753 shlibpath_overrides_runpath=yes 18754 case $host_os in 18755 sco3.2v5*) 18756 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18757 ;; 18758 esac 18759 fi 18760 sys_lib_dlsearch_path_spec='/usr/lib' 18761 ;; 18762 18763uts4*) 18764 version_type=linux 18765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18766 soname_spec='${libname}${release}${shared_ext}$major' 18767 shlibpath_var=LD_LIBRARY_PATH 18768 ;; 18769 18770*) 18771 dynamic_linker=no 18772 ;; 18773esac 18774{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18775echo "${ECHO_T}$dynamic_linker" >&6; } 18776test "$dynamic_linker" = no && can_build_shared=no 18777 18778variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18779if test "$GCC" = yes; then 18780 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18781fi 18782 18783{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18784echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 18785hardcode_action_GCJ= 18786if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18787 test -n "$runpath_var_GCJ" || \ 18788 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 18789 18790 # We can hardcode non-existant directories. 18791 if test "$hardcode_direct_GCJ" != no && 18792 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18793 # have to relink, otherwise we might link with an installed library 18794 # when we should be linking with a yet-to-be-installed one 18795 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 18796 test "$hardcode_minus_L_GCJ" != no; then 18797 # Linking always hardcodes the temporary library directory. 18798 hardcode_action_GCJ=relink 18799 else 18800 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18801 hardcode_action_GCJ=immediate 18802 fi 18803else 18804 # We cannot hardcode anything, or else we can only hardcode existing 18805 # directories. 18806 hardcode_action_GCJ=unsupported 18807fi 18808{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 18809echo "${ECHO_T}$hardcode_action_GCJ" >&6; } 18810 18811if test "$hardcode_action_GCJ" = relink; then 18812 # Fast installation is not supported 18813 enable_fast_install=no 18814elif test "$shlibpath_overrides_runpath" = yes || 18815 test "$enable_shared" = no; then 18816 # Fast installation is not necessary 18817 enable_fast_install=needless 18818fi 18819 18820 18821# The else clause should only fire when bootstrapping the 18822# libtool distribution, otherwise you forgot to ship ltmain.sh 18823# with your package, and you will get complaints that there are 18824# no rules to generate ltmain.sh. 18825if test -f "$ltmain"; then 18826 # See if we are running on zsh, and set the options which allow our commands through 18827 # without removal of \ escapes. 18828 if test -n "${ZSH_VERSION+set}" ; then 18829 setopt NO_GLOB_SUBST 18830 fi 18831 # Now quote all the things that may contain metacharacters while being 18832 # careful not to overquote the AC_SUBSTed values. We take copies of the 18833 # variables and quote the copies for generation of the libtool script. 18834 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18835 SED SHELL STRIP \ 18836 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18837 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18838 deplibs_check_method reload_flag reload_cmds need_locks \ 18839 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18840 lt_cv_sys_global_symbol_to_c_name_address \ 18841 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18842 old_postinstall_cmds old_postuninstall_cmds \ 18843 compiler_GCJ \ 18844 CC_GCJ \ 18845 LD_GCJ \ 18846 lt_prog_compiler_wl_GCJ \ 18847 lt_prog_compiler_pic_GCJ \ 18848 lt_prog_compiler_static_GCJ \ 18849 lt_prog_compiler_no_builtin_flag_GCJ \ 18850 export_dynamic_flag_spec_GCJ \ 18851 thread_safe_flag_spec_GCJ \ 18852 whole_archive_flag_spec_GCJ \ 18853 enable_shared_with_static_runtimes_GCJ \ 18854 old_archive_cmds_GCJ \ 18855 old_archive_from_new_cmds_GCJ \ 18856 predep_objects_GCJ \ 18857 postdep_objects_GCJ \ 18858 predeps_GCJ \ 18859 postdeps_GCJ \ 18860 compiler_lib_search_path_GCJ \ 18861 archive_cmds_GCJ \ 18862 archive_expsym_cmds_GCJ \ 18863 postinstall_cmds_GCJ \ 18864 postuninstall_cmds_GCJ \ 18865 old_archive_from_expsyms_cmds_GCJ \ 18866 allow_undefined_flag_GCJ \ 18867 no_undefined_flag_GCJ \ 18868 export_symbols_cmds_GCJ \ 18869 hardcode_libdir_flag_spec_GCJ \ 18870 hardcode_libdir_flag_spec_ld_GCJ \ 18871 hardcode_libdir_separator_GCJ \ 18872 hardcode_automatic_GCJ \ 18873 module_cmds_GCJ \ 18874 module_expsym_cmds_GCJ \ 18875 lt_cv_prog_compiler_c_o_GCJ \ 18876 fix_srcfile_path_GCJ \ 18877 exclude_expsyms_GCJ \ 18878 include_expsyms_GCJ; do 18879 18880 case $var in 18881 old_archive_cmds_GCJ | \ 18882 old_archive_from_new_cmds_GCJ | \ 18883 archive_cmds_GCJ | \ 18884 archive_expsym_cmds_GCJ | \ 18885 module_cmds_GCJ | \ 18886 module_expsym_cmds_GCJ | \ 18887 old_archive_from_expsyms_cmds_GCJ | \ 18888 export_symbols_cmds_GCJ | \ 18889 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18890 postinstall_cmds | postuninstall_cmds | \ 18891 old_postinstall_cmds | old_postuninstall_cmds | \ 18892 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18893 # Double-quote double-evaled strings. 18894 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18895 ;; 18896 *) 18897 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18898 ;; 18899 esac 18900 done 18901 18902 case $lt_echo in 18903 *'\$0 --fallback-echo"') 18904 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18905 ;; 18906 esac 18907 18908cfgfile="$ofile" 18909 18910 cat <<__EOF__ >> "$cfgfile" 18911# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18912 18913# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18914 18915# Shell to use when invoking shell scripts. 18916SHELL=$lt_SHELL 18917 18918# Whether or not to build shared libraries. 18919build_libtool_libs=$enable_shared 18920 18921# Whether or not to build static libraries. 18922build_old_libs=$enable_static 18923 18924# Whether or not to add -lc for building shared libraries. 18925build_libtool_need_lc=$archive_cmds_need_lc_GCJ 18926 18927# Whether or not to disallow shared libs when runtime libs are static 18928allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 18929 18930# Whether or not to optimize for fast installation. 18931fast_install=$enable_fast_install 18932 18933# The host system. 18934host_alias=$host_alias 18935host=$host 18936host_os=$host_os 18937 18938# The build system. 18939build_alias=$build_alias 18940build=$build 18941build_os=$build_os 18942 18943# An echo program that does not interpret backslashes. 18944echo=$lt_echo 18945 18946# The archiver. 18947AR=$lt_AR 18948AR_FLAGS=$lt_AR_FLAGS 18949 18950# A C compiler. 18951LTCC=$lt_LTCC 18952 18953# LTCC compiler flags. 18954LTCFLAGS=$lt_LTCFLAGS 18955 18956# A language-specific compiler. 18957CC=$lt_compiler_GCJ 18958 18959# Is the compiler the GNU C compiler? 18960with_gcc=$GCC_GCJ 18961 18962# An ERE matcher. 18963EGREP=$lt_EGREP 18964 18965# The linker used to build libraries. 18966LD=$lt_LD_GCJ 18967 18968# Whether we need hard or soft links. 18969LN_S=$lt_LN_S 18970 18971# A BSD-compatible nm program. 18972NM=$lt_NM 18973 18974# A symbol stripping program 18975STRIP=$lt_STRIP 18976 18977# Used to examine libraries when file_magic_cmd begins "file" 18978MAGIC_CMD=$MAGIC_CMD 18979 18980# Used on cygwin: DLL creation program. 18981DLLTOOL="$DLLTOOL" 18982 18983# Used on cygwin: object dumper. 18984OBJDUMP="$OBJDUMP" 18985 18986# Used on cygwin: assembler. 18987AS="$AS" 18988 18989# The name of the directory that contains temporary libtool files. 18990objdir=$objdir 18991 18992# How to create reloadable object files. 18993reload_flag=$lt_reload_flag 18994reload_cmds=$lt_reload_cmds 18995 18996# How to pass a linker flag through the compiler. 18997wl=$lt_lt_prog_compiler_wl_GCJ 18998 18999# Object file suffix (normally "o"). 19000objext="$ac_objext" 19001 19002# Old archive suffix (normally "a"). 19003libext="$libext" 19004 19005# Shared library suffix (normally ".so"). 19006shrext_cmds='$shrext_cmds' 19007 19008# Executable file suffix (normally ""). 19009exeext="$exeext" 19010 19011# Additional compiler flags for building library objects. 19012pic_flag=$lt_lt_prog_compiler_pic_GCJ 19013pic_mode=$pic_mode 19014 19015# What is the maximum length of a command? 19016max_cmd_len=$lt_cv_sys_max_cmd_len 19017 19018# Does compiler simultaneously support -c and -o options? 19019compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 19020 19021# Must we lock files when doing compilation? 19022need_locks=$lt_need_locks 19023 19024# Do we need the lib prefix for modules? 19025need_lib_prefix=$need_lib_prefix 19026 19027# Do we need a version for libraries? 19028need_version=$need_version 19029 19030# Whether dlopen is supported. 19031dlopen_support=$enable_dlopen 19032 19033# Whether dlopen of programs is supported. 19034dlopen_self=$enable_dlopen_self 19035 19036# Whether dlopen of statically linked programs is supported. 19037dlopen_self_static=$enable_dlopen_self_static 19038 19039# Compiler flag to prevent dynamic linking. 19040link_static_flag=$lt_lt_prog_compiler_static_GCJ 19041 19042# Compiler flag to turn off builtin functions. 19043no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 19044 19045# Compiler flag to allow reflexive dlopens. 19046export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 19047 19048# Compiler flag to generate shared objects directly from archives. 19049whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 19050 19051# Compiler flag to generate thread-safe objects. 19052thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 19053 19054# Library versioning type. 19055version_type=$version_type 19056 19057# Format of library name prefix. 19058libname_spec=$lt_libname_spec 19059 19060# List of archive names. First name is the real one, the rest are links. 19061# The last name is the one that the linker finds with -lNAME. 19062library_names_spec=$lt_library_names_spec 19063 19064# The coded name of the library, if different from the real name. 19065soname_spec=$lt_soname_spec 19066 19067# Commands used to build and install an old-style archive. 19068RANLIB=$lt_RANLIB 19069old_archive_cmds=$lt_old_archive_cmds_GCJ 19070old_postinstall_cmds=$lt_old_postinstall_cmds 19071old_postuninstall_cmds=$lt_old_postuninstall_cmds 19072 19073# Create an old-style archive from a shared archive. 19074old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 19075 19076# Create a temporary old-style archive to link instead of a shared archive. 19077old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 19078 19079# Commands used to build and install a shared archive. 19080archive_cmds=$lt_archive_cmds_GCJ 19081archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 19082postinstall_cmds=$lt_postinstall_cmds 19083postuninstall_cmds=$lt_postuninstall_cmds 19084 19085# Commands used to build a loadable module (assumed same as above if empty) 19086module_cmds=$lt_module_cmds_GCJ 19087module_expsym_cmds=$lt_module_expsym_cmds_GCJ 19088 19089# Commands to strip libraries. 19090old_striplib=$lt_old_striplib 19091striplib=$lt_striplib 19092 19093# Dependencies to place before the objects being linked to create a 19094# shared library. 19095predep_objects=$lt_predep_objects_GCJ 19096 19097# Dependencies to place after the objects being linked to create a 19098# shared library. 19099postdep_objects=$lt_postdep_objects_GCJ 19100 19101# Dependencies to place before the objects being linked to create a 19102# shared library. 19103predeps=$lt_predeps_GCJ 19104 19105# Dependencies to place after the objects being linked to create a 19106# shared library. 19107postdeps=$lt_postdeps_GCJ 19108 19109# The library search path used internally by the compiler when linking 19110# a shared library. 19111compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 19112 19113# Method to check whether dependent libraries are shared objects. 19114deplibs_check_method=$lt_deplibs_check_method 19115 19116# Command to use when deplibs_check_method == file_magic. 19117file_magic_cmd=$lt_file_magic_cmd 19118 19119# Flag that allows shared libraries with undefined symbols to be built. 19120allow_undefined_flag=$lt_allow_undefined_flag_GCJ 19121 19122# Flag that forces no undefined symbols. 19123no_undefined_flag=$lt_no_undefined_flag_GCJ 19124 19125# Commands used to finish a libtool library installation in a directory. 19126finish_cmds=$lt_finish_cmds 19127 19128# Same as above, but a single script fragment to be evaled but not shown. 19129finish_eval=$lt_finish_eval 19130 19131# Take the output of nm and produce a listing of raw symbols and C names. 19132global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19133 19134# Transform the output of nm in a proper C declaration 19135global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19136 19137# Transform the output of nm in a C name address pair 19138global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19139 19140# This is the shared library runtime path variable. 19141runpath_var=$runpath_var 19142 19143# This is the shared library path variable. 19144shlibpath_var=$shlibpath_var 19145 19146# Is shlibpath searched before the hard-coded library search path? 19147shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19148 19149# How to hardcode a shared library path into an executable. 19150hardcode_action=$hardcode_action_GCJ 19151 19152# Whether we should hardcode library paths into libraries. 19153hardcode_into_libs=$hardcode_into_libs 19154 19155# Flag to hardcode \$libdir into a binary during linking. 19156# This must work even if \$libdir does not exist. 19157hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 19158 19159# If ld is used when linking, flag to hardcode \$libdir into 19160# a binary during linking. This must work even if \$libdir does 19161# not exist. 19162hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 19163 19164# Whether we need a single -rpath flag with a separated argument. 19165hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 19166 19167# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19168# resulting binary. 19169hardcode_direct=$hardcode_direct_GCJ 19170 19171# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19172# resulting binary. 19173hardcode_minus_L=$hardcode_minus_L_GCJ 19174 19175# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19176# the resulting binary. 19177hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 19178 19179# Set to yes if building a shared library automatically hardcodes DIR into the library 19180# and all subsequent libraries and executables linked against it. 19181hardcode_automatic=$hardcode_automatic_GCJ 19182 19183# Variables whose values should be saved in libtool wrapper scripts and 19184# restored at relink time. 19185variables_saved_for_relink="$variables_saved_for_relink" 19186 19187# Whether libtool must link a program against all its dependency libraries. 19188link_all_deplibs=$link_all_deplibs_GCJ 19189 19190# Compile-time system search path for libraries 19191sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19192 19193# Run-time system search path for libraries 19194sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19195 19196# Fix the shell variable \$srcfile for the compiler. 19197fix_srcfile_path=$lt_fix_srcfile_path 19198 19199# Set to yes if exported symbols are required. 19200always_export_symbols=$always_export_symbols_GCJ 19201 19202# The commands to list exported symbols. 19203export_symbols_cmds=$lt_export_symbols_cmds_GCJ 19204 19205# The commands to extract the exported symbol list from a shared archive. 19206extract_expsyms_cmds=$lt_extract_expsyms_cmds 19207 19208# Symbols that should not be listed in the preloaded symbols. 19209exclude_expsyms=$lt_exclude_expsyms_GCJ 19210 19211# Symbols that must always be exported. 19212include_expsyms=$lt_include_expsyms_GCJ 19213 19214# ### END LIBTOOL TAG CONFIG: $tagname 19215 19216__EOF__ 19217 19218 19219else 19220 # If there is no Makefile yet, we rely on a make rule to execute 19221 # `config.status --recheck' to rerun these tests and create the 19222 # libtool script then. 19223 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19224 if test -f "$ltmain_in"; then 19225 test -f Makefile && make "$ltmain" 19226 fi 19227fi 19228 19229 19230ac_ext=c 19231ac_cpp='$CPP $CPPFLAGS' 19232ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19233ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19234ac_compiler_gnu=$ac_cv_c_compiler_gnu 19235 19236CC="$lt_save_CC" 19237 19238 else 19239 tagname="" 19240 fi 19241 ;; 19242 19243 RC) 19244 19245 19246# Source file extension for RC test sources. 19247ac_ext=rc 19248 19249# Object file extension for compiled RC test sources. 19250objext=o 19251objext_RC=$objext 19252 19253# Code to be used in simple compile tests 19254lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 19255 19256# Code to be used in simple link tests 19257lt_simple_link_test_code="$lt_simple_compile_test_code" 19258 19259# ltmain only uses $CC for tagged configurations so make sure $CC is set. 19260 19261# If no C compiler was specified, use CC. 19262LTCC=${LTCC-"$CC"} 19263 19264# If no C compiler flags were specified, use CFLAGS. 19265LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 19266 19267# Allow CC to be a program name with arguments. 19268compiler=$CC 19269 19270 19271# save warnings/boilerplate of simple test code 19272ac_outfile=conftest.$ac_objext 19273echo "$lt_simple_compile_test_code" >conftest.$ac_ext 19274eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19275_lt_compiler_boilerplate=`cat conftest.err` 19276$rm conftest* 19277 19278ac_outfile=conftest.$ac_objext 19279echo "$lt_simple_link_test_code" >conftest.$ac_ext 19280eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19281_lt_linker_boilerplate=`cat conftest.err` 19282$rm conftest* 19283 19284 19285# Allow CC to be a program name with arguments. 19286lt_save_CC="$CC" 19287CC=${RC-"windres"} 19288compiler=$CC 19289compiler_RC=$CC 19290for cc_temp in $compiler""; do 19291 case $cc_temp in 19292 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19293 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19294 \-*) ;; 19295 *) break;; 19296 esac 19297done 19298cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 19299 19300lt_cv_prog_compiler_c_o_RC=yes 19301 19302# The else clause should only fire when bootstrapping the 19303# libtool distribution, otherwise you forgot to ship ltmain.sh 19304# with your package, and you will get complaints that there are 19305# no rules to generate ltmain.sh. 19306if test -f "$ltmain"; then 19307 # See if we are running on zsh, and set the options which allow our commands through 19308 # without removal of \ escapes. 19309 if test -n "${ZSH_VERSION+set}" ; then 19310 setopt NO_GLOB_SUBST 19311 fi 19312 # Now quote all the things that may contain metacharacters while being 19313 # careful not to overquote the AC_SUBSTed values. We take copies of the 19314 # variables and quote the copies for generation of the libtool script. 19315 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19316 SED SHELL STRIP \ 19317 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19318 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19319 deplibs_check_method reload_flag reload_cmds need_locks \ 19320 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19321 lt_cv_sys_global_symbol_to_c_name_address \ 19322 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19323 old_postinstall_cmds old_postuninstall_cmds \ 19324 compiler_RC \ 19325 CC_RC \ 19326 LD_RC \ 19327 lt_prog_compiler_wl_RC \ 19328 lt_prog_compiler_pic_RC \ 19329 lt_prog_compiler_static_RC \ 19330 lt_prog_compiler_no_builtin_flag_RC \ 19331 export_dynamic_flag_spec_RC \ 19332 thread_safe_flag_spec_RC \ 19333 whole_archive_flag_spec_RC \ 19334 enable_shared_with_static_runtimes_RC \ 19335 old_archive_cmds_RC \ 19336 old_archive_from_new_cmds_RC \ 19337 predep_objects_RC \ 19338 postdep_objects_RC \ 19339 predeps_RC \ 19340 postdeps_RC \ 19341 compiler_lib_search_path_RC \ 19342 archive_cmds_RC \ 19343 archive_expsym_cmds_RC \ 19344 postinstall_cmds_RC \ 19345 postuninstall_cmds_RC \ 19346 old_archive_from_expsyms_cmds_RC \ 19347 allow_undefined_flag_RC \ 19348 no_undefined_flag_RC \ 19349 export_symbols_cmds_RC \ 19350 hardcode_libdir_flag_spec_RC \ 19351 hardcode_libdir_flag_spec_ld_RC \ 19352 hardcode_libdir_separator_RC \ 19353 hardcode_automatic_RC \ 19354 module_cmds_RC \ 19355 module_expsym_cmds_RC \ 19356 lt_cv_prog_compiler_c_o_RC \ 19357 fix_srcfile_path_RC \ 19358 exclude_expsyms_RC \ 19359 include_expsyms_RC; do 19360 19361 case $var in 19362 old_archive_cmds_RC | \ 19363 old_archive_from_new_cmds_RC | \ 19364 archive_cmds_RC | \ 19365 archive_expsym_cmds_RC | \ 19366 module_cmds_RC | \ 19367 module_expsym_cmds_RC | \ 19368 old_archive_from_expsyms_cmds_RC | \ 19369 export_symbols_cmds_RC | \ 19370 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19371 postinstall_cmds | postuninstall_cmds | \ 19372 old_postinstall_cmds | old_postuninstall_cmds | \ 19373 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19374 # Double-quote double-evaled strings. 19375 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19376 ;; 19377 *) 19378 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19379 ;; 19380 esac 19381 done 19382 19383 case $lt_echo in 19384 *'\$0 --fallback-echo"') 19385 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19386 ;; 19387 esac 19388 19389cfgfile="$ofile" 19390 19391 cat <<__EOF__ >> "$cfgfile" 19392# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19393 19394# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19395 19396# Shell to use when invoking shell scripts. 19397SHELL=$lt_SHELL 19398 19399# Whether or not to build shared libraries. 19400build_libtool_libs=$enable_shared 19401 19402# Whether or not to build static libraries. 19403build_old_libs=$enable_static 19404 19405# Whether or not to add -lc for building shared libraries. 19406build_libtool_need_lc=$archive_cmds_need_lc_RC 19407 19408# Whether or not to disallow shared libs when runtime libs are static 19409allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19410 19411# Whether or not to optimize for fast installation. 19412fast_install=$enable_fast_install 19413 19414# The host system. 19415host_alias=$host_alias 19416host=$host 19417host_os=$host_os 19418 19419# The build system. 19420build_alias=$build_alias 19421build=$build 19422build_os=$build_os 19423 19424# An echo program that does not interpret backslashes. 19425echo=$lt_echo 19426 19427# The archiver. 19428AR=$lt_AR 19429AR_FLAGS=$lt_AR_FLAGS 19430 19431# A C compiler. 19432LTCC=$lt_LTCC 19433 19434# LTCC compiler flags. 19435LTCFLAGS=$lt_LTCFLAGS 19436 19437# A language-specific compiler. 19438CC=$lt_compiler_RC 19439 19440# Is the compiler the GNU C compiler? 19441with_gcc=$GCC_RC 19442 19443# An ERE matcher. 19444EGREP=$lt_EGREP 19445 19446# The linker used to build libraries. 19447LD=$lt_LD_RC 19448 19449# Whether we need hard or soft links. 19450LN_S=$lt_LN_S 19451 19452# A BSD-compatible nm program. 19453NM=$lt_NM 19454 19455# A symbol stripping program 19456STRIP=$lt_STRIP 19457 19458# Used to examine libraries when file_magic_cmd begins "file" 19459MAGIC_CMD=$MAGIC_CMD 19460 19461# Used on cygwin: DLL creation program. 19462DLLTOOL="$DLLTOOL" 19463 19464# Used on cygwin: object dumper. 19465OBJDUMP="$OBJDUMP" 19466 19467# Used on cygwin: assembler. 19468AS="$AS" 19469 19470# The name of the directory that contains temporary libtool files. 19471objdir=$objdir 19472 19473# How to create reloadable object files. 19474reload_flag=$lt_reload_flag 19475reload_cmds=$lt_reload_cmds 19476 19477# How to pass a linker flag through the compiler. 19478wl=$lt_lt_prog_compiler_wl_RC 19479 19480# Object file suffix (normally "o"). 19481objext="$ac_objext" 19482 19483# Old archive suffix (normally "a"). 19484libext="$libext" 19485 19486# Shared library suffix (normally ".so"). 19487shrext_cmds='$shrext_cmds' 19488 19489# Executable file suffix (normally ""). 19490exeext="$exeext" 19491 19492# Additional compiler flags for building library objects. 19493pic_flag=$lt_lt_prog_compiler_pic_RC 19494pic_mode=$pic_mode 19495 19496# What is the maximum length of a command? 19497max_cmd_len=$lt_cv_sys_max_cmd_len 19498 19499# Does compiler simultaneously support -c and -o options? 19500compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19501 19502# Must we lock files when doing compilation? 19503need_locks=$lt_need_locks 19504 19505# Do we need the lib prefix for modules? 19506need_lib_prefix=$need_lib_prefix 19507 19508# Do we need a version for libraries? 19509need_version=$need_version 19510 19511# Whether dlopen is supported. 19512dlopen_support=$enable_dlopen 19513 19514# Whether dlopen of programs is supported. 19515dlopen_self=$enable_dlopen_self 19516 19517# Whether dlopen of statically linked programs is supported. 19518dlopen_self_static=$enable_dlopen_self_static 19519 19520# Compiler flag to prevent dynamic linking. 19521link_static_flag=$lt_lt_prog_compiler_static_RC 19522 19523# Compiler flag to turn off builtin functions. 19524no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19525 19526# Compiler flag to allow reflexive dlopens. 19527export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19528 19529# Compiler flag to generate shared objects directly from archives. 19530whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19531 19532# Compiler flag to generate thread-safe objects. 19533thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19534 19535# Library versioning type. 19536version_type=$version_type 19537 19538# Format of library name prefix. 19539libname_spec=$lt_libname_spec 19540 19541# List of archive names. First name is the real one, the rest are links. 19542# The last name is the one that the linker finds with -lNAME. 19543library_names_spec=$lt_library_names_spec 19544 19545# The coded name of the library, if different from the real name. 19546soname_spec=$lt_soname_spec 19547 19548# Commands used to build and install an old-style archive. 19549RANLIB=$lt_RANLIB 19550old_archive_cmds=$lt_old_archive_cmds_RC 19551old_postinstall_cmds=$lt_old_postinstall_cmds 19552old_postuninstall_cmds=$lt_old_postuninstall_cmds 19553 19554# Create an old-style archive from a shared archive. 19555old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19556 19557# Create a temporary old-style archive to link instead of a shared archive. 19558old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19559 19560# Commands used to build and install a shared archive. 19561archive_cmds=$lt_archive_cmds_RC 19562archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19563postinstall_cmds=$lt_postinstall_cmds 19564postuninstall_cmds=$lt_postuninstall_cmds 19565 19566# Commands used to build a loadable module (assumed same as above if empty) 19567module_cmds=$lt_module_cmds_RC 19568module_expsym_cmds=$lt_module_expsym_cmds_RC 19569 19570# Commands to strip libraries. 19571old_striplib=$lt_old_striplib 19572striplib=$lt_striplib 19573 19574# Dependencies to place before the objects being linked to create a 19575# shared library. 19576predep_objects=$lt_predep_objects_RC 19577 19578# Dependencies to place after the objects being linked to create a 19579# shared library. 19580postdep_objects=$lt_postdep_objects_RC 19581 19582# Dependencies to place before the objects being linked to create a 19583# shared library. 19584predeps=$lt_predeps_RC 19585 19586# Dependencies to place after the objects being linked to create a 19587# shared library. 19588postdeps=$lt_postdeps_RC 19589 19590# The library search path used internally by the compiler when linking 19591# a shared library. 19592compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19593 19594# Method to check whether dependent libraries are shared objects. 19595deplibs_check_method=$lt_deplibs_check_method 19596 19597# Command to use when deplibs_check_method == file_magic. 19598file_magic_cmd=$lt_file_magic_cmd 19599 19600# Flag that allows shared libraries with undefined symbols to be built. 19601allow_undefined_flag=$lt_allow_undefined_flag_RC 19602 19603# Flag that forces no undefined symbols. 19604no_undefined_flag=$lt_no_undefined_flag_RC 19605 19606# Commands used to finish a libtool library installation in a directory. 19607finish_cmds=$lt_finish_cmds 19608 19609# Same as above, but a single script fragment to be evaled but not shown. 19610finish_eval=$lt_finish_eval 19611 19612# Take the output of nm and produce a listing of raw symbols and C names. 19613global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19614 19615# Transform the output of nm in a proper C declaration 19616global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19617 19618# Transform the output of nm in a C name address pair 19619global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19620 19621# This is the shared library runtime path variable. 19622runpath_var=$runpath_var 19623 19624# This is the shared library path variable. 19625shlibpath_var=$shlibpath_var 19626 19627# Is shlibpath searched before the hard-coded library search path? 19628shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19629 19630# How to hardcode a shared library path into an executable. 19631hardcode_action=$hardcode_action_RC 19632 19633# Whether we should hardcode library paths into libraries. 19634hardcode_into_libs=$hardcode_into_libs 19635 19636# Flag to hardcode \$libdir into a binary during linking. 19637# This must work even if \$libdir does not exist. 19638hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19639 19640# If ld is used when linking, flag to hardcode \$libdir into 19641# a binary during linking. This must work even if \$libdir does 19642# not exist. 19643hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19644 19645# Whether we need a single -rpath flag with a separated argument. 19646hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19647 19648# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19649# resulting binary. 19650hardcode_direct=$hardcode_direct_RC 19651 19652# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19653# resulting binary. 19654hardcode_minus_L=$hardcode_minus_L_RC 19655 19656# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19657# the resulting binary. 19658hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19659 19660# Set to yes if building a shared library automatically hardcodes DIR into the library 19661# and all subsequent libraries and executables linked against it. 19662hardcode_automatic=$hardcode_automatic_RC 19663 19664# Variables whose values should be saved in libtool wrapper scripts and 19665# restored at relink time. 19666variables_saved_for_relink="$variables_saved_for_relink" 19667 19668# Whether libtool must link a program against all its dependency libraries. 19669link_all_deplibs=$link_all_deplibs_RC 19670 19671# Compile-time system search path for libraries 19672sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19673 19674# Run-time system search path for libraries 19675sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19676 19677# Fix the shell variable \$srcfile for the compiler. 19678fix_srcfile_path=$lt_fix_srcfile_path 19679 19680# Set to yes if exported symbols are required. 19681always_export_symbols=$always_export_symbols_RC 19682 19683# The commands to list exported symbols. 19684export_symbols_cmds=$lt_export_symbols_cmds_RC 19685 19686# The commands to extract the exported symbol list from a shared archive. 19687extract_expsyms_cmds=$lt_extract_expsyms_cmds 19688 19689# Symbols that should not be listed in the preloaded symbols. 19690exclude_expsyms=$lt_exclude_expsyms_RC 19691 19692# Symbols that must always be exported. 19693include_expsyms=$lt_include_expsyms_RC 19694 19695# ### END LIBTOOL TAG CONFIG: $tagname 19696 19697__EOF__ 19698 19699 19700else 19701 # If there is no Makefile yet, we rely on a make rule to execute 19702 # `config.status --recheck' to rerun these tests and create the 19703 # libtool script then. 19704 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19705 if test -f "$ltmain_in"; then 19706 test -f Makefile && make "$ltmain" 19707 fi 19708fi 19709 19710 19711ac_ext=c 19712ac_cpp='$CPP $CPPFLAGS' 19713ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19714ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19715ac_compiler_gnu=$ac_cv_c_compiler_gnu 19716 19717CC="$lt_save_CC" 19718 19719 ;; 19720 19721 *) 19722 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19723echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19724 { (exit 1); exit 1; }; } 19725 ;; 19726 esac 19727 19728 # Append the new tag name to the list of available tags. 19729 if test -n "$tagname" ; then 19730 available_tags="$available_tags $tagname" 19731 fi 19732 fi 19733 done 19734 IFS="$lt_save_ifs" 19735 19736 # Now substitute the updated list of available tags. 19737 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19738 mv "${ofile}T" "$ofile" 19739 chmod +x "$ofile" 19740 else 19741 rm -f "${ofile}T" 19742 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19743echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19744 { (exit 1); exit 1; }; } 19745 fi 19746fi 19747 19748 19749 19750# This can be used to rebuild libtool when needed 19751LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19752 19753# Always use our own libtool. 19754LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19755 19756# Prevent multiple expansion 19757 19758 19759 19760 19761 19762 19763 19764 19765 19766 19767 19768 19769 19770 19771 19772 19773 19774 19775 19776 19777 19778 19779 19780 19781 19782 19783 19784 19785 19786aclocaldir='${datadir}/aclocal' 19787 19788 19789 19790 acl_libdirstem=lib 19791 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` 19792 if test -n "$searchpath"; then 19793 acl_save_IFS="${IFS= }"; IFS=":" 19794 for searchdir in $searchpath; do 19795 if test -d "$searchdir"; then 19796 case "$searchdir" in 19797 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; 19798 *) searchdir=`cd "$searchdir" && pwd` 19799 case "$searchdir" in 19800 */lib64 ) acl_libdirstem=lib64 ;; 19801 esac ;; 19802 esac 19803 fi 19804 done 19805 IFS="$acl_save_IFS" 19806 fi 19807 19808LIBDIRSTEM=$acl_libdirstem 19809 19810 19811ac_config_files="$ac_config_files Makefile" 19812 19813 19814ac_config_files="$ac_config_files m4/Makefile" 19815 19816 19817ac_config_files="$ac_config_files tests/Makefile" 19818 19819 19820cat >confcache <<\_ACEOF 19821# This file is a shell script that caches the results of configure 19822# tests run on this system so they can be shared between configure 19823# scripts and configure runs, see configure's option --config-cache. 19824# It is not useful on other systems. If it contains results you don't 19825# want to keep, you may remove or edit it. 19826# 19827# config.status only pays attention to the cache file if you give it 19828# the --recheck option to rerun configure. 19829# 19830# `ac_cv_env_foo' variables (set or unset) will be overridden when 19831# loading this file, other *unset* `ac_cv_foo' will be assigned the 19832# following values. 19833 19834_ACEOF 19835 19836# The following way of writing the cache mishandles newlines in values, 19837# but we know of no workaround that is simple, portable, and efficient. 19838# So, we kill variables containing newlines. 19839# Ultrix sh set writes to stderr and can't be redirected directly, 19840# and sets the high bit in the cache file unless we assign to the vars. 19841( 19842 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19843 eval ac_val=\$$ac_var 19844 case $ac_val in #( 19845 *${as_nl}*) 19846 case $ac_var in #( 19847 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 19848echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 19849 esac 19850 case $ac_var in #( 19851 _ | IFS | as_nl) ;; #( 19852 *) $as_unset $ac_var ;; 19853 esac ;; 19854 esac 19855 done 19856 19857 (set) 2>&1 | 19858 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19859 *${as_nl}ac_space=\ *) 19860 # `set' does not quote correctly, so add quotes (double-quote 19861 # substitution turns \\\\ into \\, and sed turns \\ into \). 19862 sed -n \ 19863 "s/'/'\\\\''/g; 19864 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19865 ;; #( 19866 *) 19867 # `set' quotes correctly as required by POSIX, so do not add quotes. 19868 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19869 ;; 19870 esac | 19871 sort 19872) | 19873 sed ' 19874 /^ac_cv_env_/b end 19875 t clear 19876 :clear 19877 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 19878 t end 19879 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19880 :end' >>confcache 19881if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19882 if test -w "$cache_file"; then 19883 test "x$cache_file" != "x/dev/null" && 19884 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 19885echo "$as_me: updating cache $cache_file" >&6;} 19886 cat confcache >$cache_file 19887 else 19888 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 19889echo "$as_me: not updating unwritable cache $cache_file" >&6;} 19890 fi 19891fi 19892rm -f confcache 19893 19894test "x$prefix" = xNONE && prefix=$ac_default_prefix 19895# Let make expand exec_prefix. 19896test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19897 19898# Transform confdefs.h into DEFS. 19899# Protect against shell expansion while executing Makefile rules. 19900# Protect against Makefile macro expansion. 19901# 19902# If the first sed substitution is executed (which looks for macros that 19903# take arguments), then branch to the quote section. Otherwise, 19904# look for a macro that doesn't take arguments. 19905ac_script=' 19906t clear 19907:clear 19908s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 19909t quote 19910s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 19911t quote 19912b any 19913:quote 19914s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 19915s/\[/\\&/g 19916s/\]/\\&/g 19917s/\$/$$/g 19918H 19919:any 19920${ 19921 g 19922 s/^\n// 19923 s/\n/ /g 19924 p 19925} 19926' 19927DEFS=`sed -n "$ac_script" confdefs.h` 19928 19929 19930ac_libobjs= 19931ac_ltlibobjs= 19932for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19933 # 1. Remove the extension, and $U if already installed. 19934 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19935 ac_i=`echo "$ac_i" | sed "$ac_script"` 19936 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19937 # will be set to the directory where LIBOBJS objects are built. 19938 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19939 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 19940done 19941LIBOBJS=$ac_libobjs 19942 19943LTLIBOBJS=$ac_ltlibobjs 19944 19945 19946if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19947 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 19948Usually this means the macro was only invoked conditionally." >&5 19949echo "$as_me: error: conditional \"AMDEP\" was never defined. 19950Usually this means the macro was only invoked conditionally." >&2;} 19951 { (exit 1); exit 1; }; } 19952fi 19953if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19954 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 19955Usually this means the macro was only invoked conditionally." >&5 19956echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 19957Usually this means the macro was only invoked conditionally." >&2;} 19958 { (exit 1); exit 1; }; } 19959fi 19960if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 19961 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 19962Usually this means the macro was only invoked conditionally." >&5 19963echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 19964Usually this means the macro was only invoked conditionally." >&2;} 19965 { (exit 1); exit 1; }; } 19966fi 19967 19968: ${CONFIG_STATUS=./config.status} 19969ac_clean_files_save=$ac_clean_files 19970ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19971{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 19972echo "$as_me: creating $CONFIG_STATUS" >&6;} 19973cat >$CONFIG_STATUS <<_ACEOF 19974#! $SHELL 19975# Generated by $as_me. 19976# Run this file to recreate the current configuration. 19977# Compiler output produced by configure, useful for debugging 19978# configure, is in config.log if it exists. 19979 19980debug=false 19981ac_cs_recheck=false 19982ac_cs_silent=false 19983SHELL=\${CONFIG_SHELL-$SHELL} 19984_ACEOF 19985 19986cat >>$CONFIG_STATUS <<\_ACEOF 19987## --------------------- ## 19988## M4sh Initialization. ## 19989## --------------------- ## 19990 19991# Be more Bourne compatible 19992DUALCASE=1; export DUALCASE # for MKS sh 19993if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 19994 emulate sh 19995 NULLCMD=: 19996 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19997 # is contrary to our usage. Disable this feature. 19998 alias -g '${1+"$@"}'='"$@"' 19999 setopt NO_GLOB_SUBST 20000else 20001 case `(set -o) 2>/dev/null` in 20002 *posix*) set -o posix ;; 20003esac 20004 20005fi 20006 20007 20008 20009 20010# PATH needs CR 20011# Avoid depending upon Character Ranges. 20012as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20013as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20014as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20015as_cr_digits='0123456789' 20016as_cr_alnum=$as_cr_Letters$as_cr_digits 20017 20018# The user is always right. 20019if test "${PATH_SEPARATOR+set}" != set; then 20020 echo "#! /bin/sh" >conf$$.sh 20021 echo "exit 0" >>conf$$.sh 20022 chmod +x conf$$.sh 20023 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 20024 PATH_SEPARATOR=';' 20025 else 20026 PATH_SEPARATOR=: 20027 fi 20028 rm -f conf$$.sh 20029fi 20030 20031# Support unset when possible. 20032if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 20033 as_unset=unset 20034else 20035 as_unset=false 20036fi 20037 20038 20039# IFS 20040# We need space, tab and new line, in precisely that order. Quoting is 20041# there to prevent editors from complaining about space-tab. 20042# (If _AS_PATH_WALK were called with IFS unset, it would disable word 20043# splitting by setting IFS to empty value.) 20044as_nl=' 20045' 20046IFS=" "" $as_nl" 20047 20048# Find who we are. Look in the path if we contain no directory separator. 20049case $0 in 20050 *[\\/]* ) as_myself=$0 ;; 20051 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20052for as_dir in $PATH 20053do 20054 IFS=$as_save_IFS 20055 test -z "$as_dir" && as_dir=. 20056 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 20057done 20058IFS=$as_save_IFS 20059 20060 ;; 20061esac 20062# We did not find ourselves, most probably we were run as `sh COMMAND' 20063# in which case we are not to be found in the path. 20064if test "x$as_myself" = x; then 20065 as_myself=$0 20066fi 20067if test ! -f "$as_myself"; then 20068 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20069 { (exit 1); exit 1; } 20070fi 20071 20072# Work around bugs in pre-3.0 UWIN ksh. 20073for as_var in ENV MAIL MAILPATH 20074do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 20075done 20076PS1='$ ' 20077PS2='> ' 20078PS4='+ ' 20079 20080# NLS nuisances. 20081for as_var in \ 20082 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 20083 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 20084 LC_TELEPHONE LC_TIME 20085do 20086 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 20087 eval $as_var=C; export $as_var 20088 else 20089 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 20090 fi 20091done 20092 20093# Required to use basename. 20094if expr a : '\(a\)' >/dev/null 2>&1 && 20095 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20096 as_expr=expr 20097else 20098 as_expr=false 20099fi 20100 20101if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20102 as_basename=basename 20103else 20104 as_basename=false 20105fi 20106 20107 20108# Name of the executable. 20109as_me=`$as_basename -- "$0" || 20110$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20111 X"$0" : 'X\(//\)$' \| \ 20112 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20113echo X/"$0" | 20114 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20115 s//\1/ 20116 q 20117 } 20118 /^X\/\(\/\/\)$/{ 20119 s//\1/ 20120 q 20121 } 20122 /^X\/\(\/\).*/{ 20123 s//\1/ 20124 q 20125 } 20126 s/.*/./; q'` 20127 20128# CDPATH. 20129$as_unset CDPATH 20130 20131 20132 20133 as_lineno_1=$LINENO 20134 as_lineno_2=$LINENO 20135 test "x$as_lineno_1" != "x$as_lineno_2" && 20136 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 20137 20138 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 20139 # uniformly replaced by the line number. The first 'sed' inserts a 20140 # line-number line after each line using $LINENO; the second 'sed' 20141 # does the real work. The second script uses 'N' to pair each 20142 # line-number line with the line containing $LINENO, and appends 20143 # trailing '-' during substitution so that $LINENO is not a special 20144 # case at line end. 20145 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 20146 # scripts with optimization help from Paolo Bonzini. Blame Lee 20147 # E. McMahon (1931-1989) for sed's syntax. :-) 20148 sed -n ' 20149 p 20150 /[$]LINENO/= 20151 ' <$as_myself | 20152 sed ' 20153 s/[$]LINENO.*/&-/ 20154 t lineno 20155 b 20156 :lineno 20157 N 20158 :loop 20159 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 20160 t loop 20161 s/-\n.*// 20162 ' >$as_me.lineno && 20163 chmod +x "$as_me.lineno" || 20164 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 20165 { (exit 1); exit 1; }; } 20166 20167 # Don't try to exec as it changes $[0], causing all sort of problems 20168 # (the dirname of $[0] is not the place where we might find the 20169 # original and so on. Autoconf is especially sensitive to this). 20170 . "./$as_me.lineno" 20171 # Exit status is that of the last command. 20172 exit 20173} 20174 20175 20176if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20177 as_dirname=dirname 20178else 20179 as_dirname=false 20180fi 20181 20182ECHO_C= ECHO_N= ECHO_T= 20183case `echo -n x` in 20184-n*) 20185 case `echo 'x\c'` in 20186 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20187 *) ECHO_C='\c';; 20188 esac;; 20189*) 20190 ECHO_N='-n';; 20191esac 20192 20193if expr a : '\(a\)' >/dev/null 2>&1 && 20194 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20195 as_expr=expr 20196else 20197 as_expr=false 20198fi 20199 20200rm -f conf$$ conf$$.exe conf$$.file 20201if test -d conf$$.dir; then 20202 rm -f conf$$.dir/conf$$.file 20203else 20204 rm -f conf$$.dir 20205 mkdir conf$$.dir 20206fi 20207echo >conf$$.file 20208if ln -s conf$$.file conf$$ 2>/dev/null; then 20209 as_ln_s='ln -s' 20210 # ... but there are two gotchas: 20211 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20212 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20213 # In both cases, we have to default to `cp -p'. 20214 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20215 as_ln_s='cp -p' 20216elif ln conf$$.file conf$$ 2>/dev/null; then 20217 as_ln_s=ln 20218else 20219 as_ln_s='cp -p' 20220fi 20221rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20222rmdir conf$$.dir 2>/dev/null 20223 20224if mkdir -p . 2>/dev/null; then 20225 as_mkdir_p=: 20226else 20227 test -d ./-p && rmdir ./-p 20228 as_mkdir_p=false 20229fi 20230 20231if test -x / >/dev/null 2>&1; then 20232 as_test_x='test -x' 20233else 20234 if ls -dL / >/dev/null 2>&1; then 20235 as_ls_L_option=L 20236 else 20237 as_ls_L_option= 20238 fi 20239 as_test_x=' 20240 eval sh -c '\'' 20241 if test -d "$1"; then 20242 test -d "$1/."; 20243 else 20244 case $1 in 20245 -*)set "./$1";; 20246 esac; 20247 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 20248 ???[sx]*):;;*)false;;esac;fi 20249 '\'' sh 20250 ' 20251fi 20252as_executable_p=$as_test_x 20253 20254# Sed expression to map a string onto a valid CPP name. 20255as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20256 20257# Sed expression to map a string onto a valid variable name. 20258as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20259 20260 20261exec 6>&1 20262 20263# Save the log message, to keep $[0] and so on meaningful, and to 20264# report actual input values of CONFIG_FILES etc. instead of their 20265# values after options handling. 20266ac_log=" 20267This file was extended by $as_me, which was 20268generated by GNU Autoconf 2.61. Invocation command line was 20269 20270 CONFIG_FILES = $CONFIG_FILES 20271 CONFIG_HEADERS = $CONFIG_HEADERS 20272 CONFIG_LINKS = $CONFIG_LINKS 20273 CONFIG_COMMANDS = $CONFIG_COMMANDS 20274 $ $0 $@ 20275 20276on `(hostname || uname -n) 2>/dev/null | sed 1q` 20277" 20278 20279_ACEOF 20280 20281cat >>$CONFIG_STATUS <<_ACEOF 20282# Files that config.status was made for. 20283config_files="$ac_config_files" 20284config_commands="$ac_config_commands" 20285 20286_ACEOF 20287 20288cat >>$CONFIG_STATUS <<\_ACEOF 20289ac_cs_usage="\ 20290\`$as_me' instantiates files from templates according to the 20291current configuration. 20292 20293Usage: $0 [OPTIONS] [FILE]... 20294 20295 -h, --help print this help, then exit 20296 -V, --version print version number and configuration settings, then exit 20297 -q, --quiet do not print progress messages 20298 -d, --debug don't remove temporary files 20299 --recheck update $as_me by reconfiguring in the same conditions 20300 --file=FILE[:TEMPLATE] 20301 instantiate the configuration file FILE 20302 20303Configuration files: 20304$config_files 20305 20306Configuration commands: 20307$config_commands 20308 20309Report bugs to <bug-autoconf@gnu.org>." 20310 20311_ACEOF 20312cat >>$CONFIG_STATUS <<_ACEOF 20313ac_cs_version="\\ 20314config.status 20315configured by $0, generated by GNU Autoconf 2.61, 20316 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 20317 20318Copyright (C) 2006 Free Software Foundation, Inc. 20319This config.status script is free software; the Free Software Foundation 20320gives unlimited permission to copy, distribute and modify it." 20321 20322ac_pwd='$ac_pwd' 20323srcdir='$srcdir' 20324INSTALL='$INSTALL' 20325MKDIR_P='$MKDIR_P' 20326_ACEOF 20327 20328cat >>$CONFIG_STATUS <<\_ACEOF 20329# If no file are specified by the user, then we need to provide default 20330# value. By we need to know if files were specified by the user. 20331ac_need_defaults=: 20332while test $# != 0 20333do 20334 case $1 in 20335 --*=*) 20336 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20337 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20338 ac_shift=: 20339 ;; 20340 *) 20341 ac_option=$1 20342 ac_optarg=$2 20343 ac_shift=shift 20344 ;; 20345 esac 20346 20347 case $ac_option in 20348 # Handling of the options. 20349 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20350 ac_cs_recheck=: ;; 20351 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20352 echo "$ac_cs_version"; exit ;; 20353 --debug | --debu | --deb | --de | --d | -d ) 20354 debug=: ;; 20355 --file | --fil | --fi | --f ) 20356 $ac_shift 20357 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 20358 ac_need_defaults=false;; 20359 --he | --h | --help | --hel | -h ) 20360 echo "$ac_cs_usage"; exit ;; 20361 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20362 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20363 ac_cs_silent=: ;; 20364 20365 # This is an error. 20366 -*) { echo "$as_me: error: unrecognized option: $1 20367Try \`$0 --help' for more information." >&2 20368 { (exit 1); exit 1; }; } ;; 20369 20370 *) ac_config_targets="$ac_config_targets $1" 20371 ac_need_defaults=false ;; 20372 20373 esac 20374 shift 20375done 20376 20377ac_configure_extra_args= 20378 20379if $ac_cs_silent; then 20380 exec 6>/dev/null 20381 ac_configure_extra_args="$ac_configure_extra_args --silent" 20382fi 20383 20384_ACEOF 20385cat >>$CONFIG_STATUS <<_ACEOF 20386if \$ac_cs_recheck; then 20387 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 20388 CONFIG_SHELL=$SHELL 20389 export CONFIG_SHELL 20390 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20391fi 20392 20393_ACEOF 20394cat >>$CONFIG_STATUS <<\_ACEOF 20395exec 5>>config.log 20396{ 20397 echo 20398 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20399## Running $as_me. ## 20400_ASBOX 20401 echo "$ac_log" 20402} >&5 20403 20404_ACEOF 20405cat >>$CONFIG_STATUS <<_ACEOF 20406# 20407# INIT-COMMANDS 20408# 20409AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 20410 20411_ACEOF 20412 20413cat >>$CONFIG_STATUS <<\_ACEOF 20414 20415# Handling of arguments. 20416for ac_config_target in $ac_config_targets 20417do 20418 case $ac_config_target in 20419 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20420 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20421 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; 20422 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 20423 20424 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 20425echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 20426 { (exit 1); exit 1; }; };; 20427 esac 20428done 20429 20430 20431# If the user did not use the arguments to specify the items to instantiate, 20432# then the envvar interface is used. Set only those that are not. 20433# We use the long form for the default assignment because of an extremely 20434# bizarre bug on SunOS 4.1.3. 20435if $ac_need_defaults; then 20436 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 20437 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 20438fi 20439 20440# Have a temporary directory for convenience. Make it in the build tree 20441# simply because there is no reason against having it here, and in addition, 20442# creating and moving files from /tmp can sometimes cause problems. 20443# Hook for its removal unless debugging. 20444# Note that there is a small window in which the directory will not be cleaned: 20445# after its creation but before its name has been assigned to `$tmp'. 20446$debug || 20447{ 20448 tmp= 20449 trap 'exit_status=$? 20450 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 20451' 0 20452 trap '{ (exit 1); exit 1; }' 1 2 13 15 20453} 20454# Create a (secure) tmp directory for tmp files. 20455 20456{ 20457 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20458 test -n "$tmp" && test -d "$tmp" 20459} || 20460{ 20461 tmp=./conf$$-$RANDOM 20462 (umask 077 && mkdir "$tmp") 20463} || 20464{ 20465 echo "$me: cannot create a temporary directory in ." >&2 20466 { (exit 1); exit 1; } 20467} 20468 20469# 20470# Set up the sed scripts for CONFIG_FILES section. 20471# 20472 20473# No need to generate the scripts if there are no CONFIG_FILES. 20474# This happens for instance when ./config.status config.h 20475if test -n "$CONFIG_FILES"; then 20476 20477_ACEOF 20478 20479 20480 20481ac_delim='%!_!# ' 20482for ac_last_try in false false false false false :; do 20483 cat >conf$$subs.sed <<_ACEOF 20484SHELL!$SHELL$ac_delim 20485PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 20486PACKAGE_NAME!$PACKAGE_NAME$ac_delim 20487PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 20488PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 20489PACKAGE_STRING!$PACKAGE_STRING$ac_delim 20490PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 20491exec_prefix!$exec_prefix$ac_delim 20492prefix!$prefix$ac_delim 20493program_transform_name!$program_transform_name$ac_delim 20494bindir!$bindir$ac_delim 20495sbindir!$sbindir$ac_delim 20496libexecdir!$libexecdir$ac_delim 20497datarootdir!$datarootdir$ac_delim 20498datadir!$datadir$ac_delim 20499sysconfdir!$sysconfdir$ac_delim 20500sharedstatedir!$sharedstatedir$ac_delim 20501localstatedir!$localstatedir$ac_delim 20502includedir!$includedir$ac_delim 20503oldincludedir!$oldincludedir$ac_delim 20504docdir!$docdir$ac_delim 20505infodir!$infodir$ac_delim 20506htmldir!$htmldir$ac_delim 20507dvidir!$dvidir$ac_delim 20508pdfdir!$pdfdir$ac_delim 20509psdir!$psdir$ac_delim 20510libdir!$libdir$ac_delim 20511localedir!$localedir$ac_delim 20512mandir!$mandir$ac_delim 20513DEFS!$DEFS$ac_delim 20514ECHO_C!$ECHO_C$ac_delim 20515ECHO_N!$ECHO_N$ac_delim 20516ECHO_T!$ECHO_T$ac_delim 20517LIBS!$LIBS$ac_delim 20518build_alias!$build_alias$ac_delim 20519host_alias!$host_alias$ac_delim 20520target_alias!$target_alias$ac_delim 20521INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 20522INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 20523INSTALL_DATA!$INSTALL_DATA$ac_delim 20524am__isrc!$am__isrc$ac_delim 20525CYGPATH_W!$CYGPATH_W$ac_delim 20526PACKAGE!$PACKAGE$ac_delim 20527VERSION!$VERSION$ac_delim 20528ACLOCAL!$ACLOCAL$ac_delim 20529AUTOCONF!$AUTOCONF$ac_delim 20530AUTOMAKE!$AUTOMAKE$ac_delim 20531AUTOHEADER!$AUTOHEADER$ac_delim 20532MAKEINFO!$MAKEINFO$ac_delim 20533install_sh!$install_sh$ac_delim 20534STRIP!$STRIP$ac_delim 20535INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 20536mkdir_p!$mkdir_p$ac_delim 20537AWK!$AWK$ac_delim 20538SET_MAKE!$SET_MAKE$ac_delim 20539am__leading_dot!$am__leading_dot$ac_delim 20540AMTAR!$AMTAR$ac_delim 20541am__tar!$am__tar$ac_delim 20542am__untar!$am__untar$ac_delim 20543CC!$CC$ac_delim 20544CFLAGS!$CFLAGS$ac_delim 20545LDFLAGS!$LDFLAGS$ac_delim 20546CPPFLAGS!$CPPFLAGS$ac_delim 20547ac_ct_CC!$ac_ct_CC$ac_delim 20548EXEEXT!$EXEEXT$ac_delim 20549OBJEXT!$OBJEXT$ac_delim 20550DEPDIR!$DEPDIR$ac_delim 20551am__include!$am__include$ac_delim 20552am__quote!$am__quote$ac_delim 20553AMDEP_TRUE!$AMDEP_TRUE$ac_delim 20554AMDEP_FALSE!$AMDEP_FALSE$ac_delim 20555AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 20556CCDEPMODE!$CCDEPMODE$ac_delim 20557am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 20558am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 20559build!$build$ac_delim 20560build_cpu!$build_cpu$ac_delim 20561build_vendor!$build_vendor$ac_delim 20562build_os!$build_os$ac_delim 20563host!$host$ac_delim 20564host_cpu!$host_cpu$ac_delim 20565host_vendor!$host_vendor$ac_delim 20566host_os!$host_os$ac_delim 20567SED!$SED$ac_delim 20568GREP!$GREP$ac_delim 20569EGREP!$EGREP$ac_delim 20570LN_S!$LN_S$ac_delim 20571ECHO!$ECHO$ac_delim 20572AR!$AR$ac_delim 20573RANLIB!$RANLIB$ac_delim 20574DLLTOOL!$DLLTOOL$ac_delim 20575AS!$AS$ac_delim 20576OBJDUMP!$OBJDUMP$ac_delim 20577CPP!$CPP$ac_delim 20578CXX!$CXX$ac_delim 20579CXXFLAGS!$CXXFLAGS$ac_delim 20580ac_ct_CXX!$ac_ct_CXX$ac_delim 20581_ACEOF 20582 20583 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 20584 break 20585 elif $ac_last_try; then 20586 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 20587echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 20588 { (exit 1); exit 1; }; } 20589 else 20590 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20591 fi 20592done 20593 20594ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 20595if test -n "$ac_eof"; then 20596 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 20597 ac_eof=`expr $ac_eof + 1` 20598fi 20599 20600cat >>$CONFIG_STATUS <<_ACEOF 20601cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 20602/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20603_ACEOF 20604sed ' 20605s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 20606s/^/s,@/; s/!/@,|#_!!_#|/ 20607:n 20608t n 20609s/'"$ac_delim"'$/,g/; t 20610s/$/\\/; p 20611N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 20612' >>$CONFIG_STATUS <conf$$subs.sed 20613rm -f conf$$subs.sed 20614cat >>$CONFIG_STATUS <<_ACEOF 20615CEOF$ac_eof 20616_ACEOF 20617 20618 20619ac_delim='%!_!# ' 20620for ac_last_try in false false false false false :; do 20621 cat >conf$$subs.sed <<_ACEOF 20622CXXDEPMODE!$CXXDEPMODE$ac_delim 20623am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim 20624am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim 20625CXXCPP!$CXXCPP$ac_delim 20626F77!$F77$ac_delim 20627FFLAGS!$FFLAGS$ac_delim 20628ac_ct_F77!$ac_ct_F77$ac_delim 20629LIBTOOL!$LIBTOOL$ac_delim 20630GCC!$GCC$ac_delim 20631LD!$LD$ac_delim 20632with_gnu_ld!$with_gnu_ld$ac_delim 20633aclocaldir!$aclocaldir$ac_delim 20634LIBDIRSTEM!$LIBDIRSTEM$ac_delim 20635LIBOBJS!$LIBOBJS$ac_delim 20636LTLIBOBJS!$LTLIBOBJS$ac_delim 20637_ACEOF 20638 20639 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 15; then 20640 break 20641 elif $ac_last_try; then 20642 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 20643echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 20644 { (exit 1); exit 1; }; } 20645 else 20646 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20647 fi 20648done 20649 20650ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 20651if test -n "$ac_eof"; then 20652 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 20653 ac_eof=`expr $ac_eof + 1` 20654fi 20655 20656cat >>$CONFIG_STATUS <<_ACEOF 20657cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 20658/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 20659_ACEOF 20660sed ' 20661s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 20662s/^/s,@/; s/!/@,|#_!!_#|/ 20663:n 20664t n 20665s/'"$ac_delim"'$/,g/; t 20666s/$/\\/; p 20667N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 20668' >>$CONFIG_STATUS <conf$$subs.sed 20669rm -f conf$$subs.sed 20670cat >>$CONFIG_STATUS <<_ACEOF 20671:end 20672s/|#_!!_#|//g 20673CEOF$ac_eof 20674_ACEOF 20675 20676 20677# VPATH may cause trouble with some makes, so we remove $(srcdir), 20678# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 20679# trailing colons and then remove the whole line if VPATH becomes empty 20680# (actually we leave an empty line to preserve line numbers). 20681if test "x$srcdir" = x.; then 20682 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 20683s/:*\$(srcdir):*/:/ 20684s/:*\${srcdir}:*/:/ 20685s/:*@srcdir@:*/:/ 20686s/^\([^=]*=[ ]*\):*/\1/ 20687s/:*$// 20688s/^[^=]*=[ ]*$// 20689}' 20690fi 20691 20692cat >>$CONFIG_STATUS <<\_ACEOF 20693fi # test -n "$CONFIG_FILES" 20694 20695 20696for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS 20697do 20698 case $ac_tag in 20699 :[FHLC]) ac_mode=$ac_tag; continue;; 20700 esac 20701 case $ac_mode$ac_tag in 20702 :[FHL]*:*);; 20703 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 20704echo "$as_me: error: Invalid tag $ac_tag." >&2;} 20705 { (exit 1); exit 1; }; };; 20706 :[FH]-) ac_tag=-:-;; 20707 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20708 esac 20709 ac_save_IFS=$IFS 20710 IFS=: 20711 set x $ac_tag 20712 IFS=$ac_save_IFS 20713 shift 20714 ac_file=$1 20715 shift 20716 20717 case $ac_mode in 20718 :L) ac_source=$1;; 20719 :[FH]) 20720 ac_file_inputs= 20721 for ac_f 20722 do 20723 case $ac_f in 20724 -) ac_f="$tmp/stdin";; 20725 *) # Look for the file first in the build tree, then in the source tree 20726 # (if the path is not absolute). The absolute path cannot be DOS-style, 20727 # because $ac_f cannot contain `:'. 20728 test -f "$ac_f" || 20729 case $ac_f in 20730 [\\/$]*) false;; 20731 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20732 esac || 20733 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 20734echo "$as_me: error: cannot find input file: $ac_f" >&2;} 20735 { (exit 1); exit 1; }; };; 20736 esac 20737 ac_file_inputs="$ac_file_inputs $ac_f" 20738 done 20739 20740 # Let's still pretend it is `configure' which instantiates (i.e., don't 20741 # use $as_me), people would be surprised to read: 20742 # /* config.h. Generated by config.status. */ 20743 configure_input="Generated from "`IFS=: 20744 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 20745 if test x"$ac_file" != x-; then 20746 configure_input="$ac_file. $configure_input" 20747 { echo "$as_me:$LINENO: creating $ac_file" >&5 20748echo "$as_me: creating $ac_file" >&6;} 20749 fi 20750 20751 case $ac_tag in 20752 *:-:* | *:-) cat >"$tmp/stdin";; 20753 esac 20754 ;; 20755 esac 20756 20757 ac_dir=`$as_dirname -- "$ac_file" || 20758$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20759 X"$ac_file" : 'X\(//\)[^/]' \| \ 20760 X"$ac_file" : 'X\(//\)$' \| \ 20761 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20762echo X"$ac_file" | 20763 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20764 s//\1/ 20765 q 20766 } 20767 /^X\(\/\/\)[^/].*/{ 20768 s//\1/ 20769 q 20770 } 20771 /^X\(\/\/\)$/{ 20772 s//\1/ 20773 q 20774 } 20775 /^X\(\/\).*/{ 20776 s//\1/ 20777 q 20778 } 20779 s/.*/./; q'` 20780 { as_dir="$ac_dir" 20781 case $as_dir in #( 20782 -*) as_dir=./$as_dir;; 20783 esac 20784 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 20785 as_dirs= 20786 while :; do 20787 case $as_dir in #( 20788 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 20789 *) as_qdir=$as_dir;; 20790 esac 20791 as_dirs="'$as_qdir' $as_dirs" 20792 as_dir=`$as_dirname -- "$as_dir" || 20793$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20794 X"$as_dir" : 'X\(//\)[^/]' \| \ 20795 X"$as_dir" : 'X\(//\)$' \| \ 20796 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20797echo X"$as_dir" | 20798 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20799 s//\1/ 20800 q 20801 } 20802 /^X\(\/\/\)[^/].*/{ 20803 s//\1/ 20804 q 20805 } 20806 /^X\(\/\/\)$/{ 20807 s//\1/ 20808 q 20809 } 20810 /^X\(\/\).*/{ 20811 s//\1/ 20812 q 20813 } 20814 s/.*/./; q'` 20815 test -d "$as_dir" && break 20816 done 20817 test -z "$as_dirs" || eval "mkdir $as_dirs" 20818 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 20819echo "$as_me: error: cannot create directory $as_dir" >&2;} 20820 { (exit 1); exit 1; }; }; } 20821 ac_builddir=. 20822 20823case "$ac_dir" in 20824.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20825*) 20826 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 20827 # A ".." for each directory in $ac_dir_suffix. 20828 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 20829 case $ac_top_builddir_sub in 20830 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20831 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20832 esac ;; 20833esac 20834ac_abs_top_builddir=$ac_pwd 20835ac_abs_builddir=$ac_pwd$ac_dir_suffix 20836# for backward compatibility: 20837ac_top_builddir=$ac_top_build_prefix 20838 20839case $srcdir in 20840 .) # We are building in place. 20841 ac_srcdir=. 20842 ac_top_srcdir=$ac_top_builddir_sub 20843 ac_abs_top_srcdir=$ac_pwd ;; 20844 [\\/]* | ?:[\\/]* ) # Absolute name. 20845 ac_srcdir=$srcdir$ac_dir_suffix; 20846 ac_top_srcdir=$srcdir 20847 ac_abs_top_srcdir=$srcdir ;; 20848 *) # Relative name. 20849 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20850 ac_top_srcdir=$ac_top_build_prefix$srcdir 20851 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20852esac 20853ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20854 20855 20856 case $ac_mode in 20857 :F) 20858 # 20859 # CONFIG_FILE 20860 # 20861 20862 case $INSTALL in 20863 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20864 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20865 esac 20866 ac_MKDIR_P=$MKDIR_P 20867 case $MKDIR_P in 20868 [\\/$]* | ?:[\\/]* ) ;; 20869 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20870 esac 20871_ACEOF 20872 20873cat >>$CONFIG_STATUS <<\_ACEOF 20874# If the template does not know about datarootdir, expand it. 20875# FIXME: This hack should be removed a few years after 2.60. 20876ac_datarootdir_hack=; ac_datarootdir_seen= 20877 20878case `sed -n '/datarootdir/ { 20879 p 20880 q 20881} 20882/@datadir@/p 20883/@docdir@/p 20884/@infodir@/p 20885/@localedir@/p 20886/@mandir@/p 20887' $ac_file_inputs` in 20888*datarootdir*) ac_datarootdir_seen=yes;; 20889*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20890 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20891echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20892_ACEOF 20893cat >>$CONFIG_STATUS <<_ACEOF 20894 ac_datarootdir_hack=' 20895 s&@datadir@&$datadir&g 20896 s&@docdir@&$docdir&g 20897 s&@infodir@&$infodir&g 20898 s&@localedir@&$localedir&g 20899 s&@mandir@&$mandir&g 20900 s&\\\${datarootdir}&$datarootdir&g' ;; 20901esac 20902_ACEOF 20903 20904# Neutralize VPATH when `$srcdir' = `.'. 20905# Shell code in configure.ac might set extrasub. 20906# FIXME: do we really want to maintain this feature? 20907cat >>$CONFIG_STATUS <<_ACEOF 20908 sed "$ac_vpsub 20909$extrasub 20910_ACEOF 20911cat >>$CONFIG_STATUS <<\_ACEOF 20912:t 20913/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20914s&@configure_input@&$configure_input&;t t 20915s&@top_builddir@&$ac_top_builddir_sub&;t t 20916s&@srcdir@&$ac_srcdir&;t t 20917s&@abs_srcdir@&$ac_abs_srcdir&;t t 20918s&@top_srcdir@&$ac_top_srcdir&;t t 20919s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20920s&@builddir@&$ac_builddir&;t t 20921s&@abs_builddir@&$ac_abs_builddir&;t t 20922s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20923s&@INSTALL@&$ac_INSTALL&;t t 20924s&@MKDIR_P@&$ac_MKDIR_P&;t t 20925$ac_datarootdir_hack 20926" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 20927 20928test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20929 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 20930 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 20931 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20932which seems to be undefined. Please make sure it is defined." >&5 20933echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20934which seems to be undefined. Please make sure it is defined." >&2;} 20935 20936 rm -f "$tmp/stdin" 20937 case $ac_file in 20938 -) cat "$tmp/out"; rm -f "$tmp/out";; 20939 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 20940 esac 20941 ;; 20942 20943 20944 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 20945echo "$as_me: executing $ac_file commands" >&6;} 20946 ;; 20947 esac 20948 20949 20950 case $ac_file$ac_mode in 20951 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 20952 # Strip MF so we end up with the name of the file. 20953 mf=`echo "$mf" | sed -e 's/:.*$//'` 20954 # Check whether this is an Automake generated Makefile or not. 20955 # We used to match only the files named `Makefile.in', but 20956 # some people rename them; so instead we look at the file content. 20957 # Grep'ing the first line is not enough: some people post-process 20958 # each Makefile.in and add a new line on top of each file to say so. 20959 # Grep'ing the whole file is not good either: AIX grep has a line 20960 # limit of 2048, but all sed's we know have understand at least 4000. 20961 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then 20962 dirpart=`$as_dirname -- "$mf" || 20963$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20964 X"$mf" : 'X\(//\)[^/]' \| \ 20965 X"$mf" : 'X\(//\)$' \| \ 20966 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 20967echo X"$mf" | 20968 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20969 s//\1/ 20970 q 20971 } 20972 /^X\(\/\/\)[^/].*/{ 20973 s//\1/ 20974 q 20975 } 20976 /^X\(\/\/\)$/{ 20977 s//\1/ 20978 q 20979 } 20980 /^X\(\/\).*/{ 20981 s//\1/ 20982 q 20983 } 20984 s/.*/./; q'` 20985 else 20986 continue 20987 fi 20988 # Extract the definition of DEPDIR, am__include, and am__quote 20989 # from the Makefile without running `make'. 20990 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 20991 test -z "$DEPDIR" && continue 20992 am__include=`sed -n 's/^am__include = //p' < "$mf"` 20993 test -z "am__include" && continue 20994 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 20995 # When using ansi2knr, U may be empty or an underscore; expand it 20996 U=`sed -n 's/^U = //p' < "$mf"` 20997 # Find all dependency output files, they are included files with 20998 # $(DEPDIR) in their names. We invoke sed twice because it is the 20999 # simplest approach to changing $(DEPDIR) to its actual value in the 21000 # expansion. 21001 for file in `sed -n " 21002 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 21003 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 21004 # Make sure the directory exists. 21005 test -f "$dirpart/$file" && continue 21006 fdir=`$as_dirname -- "$file" || 21007$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21008 X"$file" : 'X\(//\)[^/]' \| \ 21009 X"$file" : 'X\(//\)$' \| \ 21010 X"$file" : 'X\(/\)' \| . 2>/dev/null || 21011echo X"$file" | 21012 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21013 s//\1/ 21014 q 21015 } 21016 /^X\(\/\/\)[^/].*/{ 21017 s//\1/ 21018 q 21019 } 21020 /^X\(\/\/\)$/{ 21021 s//\1/ 21022 q 21023 } 21024 /^X\(\/\).*/{ 21025 s//\1/ 21026 q 21027 } 21028 s/.*/./; q'` 21029 { as_dir=$dirpart/$fdir 21030 case $as_dir in #( 21031 -*) as_dir=./$as_dir;; 21032 esac 21033 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 21034 as_dirs= 21035 while :; do 21036 case $as_dir in #( 21037 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 21038 *) as_qdir=$as_dir;; 21039 esac 21040 as_dirs="'$as_qdir' $as_dirs" 21041 as_dir=`$as_dirname -- "$as_dir" || 21042$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21043 X"$as_dir" : 'X\(//\)[^/]' \| \ 21044 X"$as_dir" : 'X\(//\)$' \| \ 21045 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21046echo X"$as_dir" | 21047 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21048 s//\1/ 21049 q 21050 } 21051 /^X\(\/\/\)[^/].*/{ 21052 s//\1/ 21053 q 21054 } 21055 /^X\(\/\/\)$/{ 21056 s//\1/ 21057 q 21058 } 21059 /^X\(\/\).*/{ 21060 s//\1/ 21061 q 21062 } 21063 s/.*/./; q'` 21064 test -d "$as_dir" && break 21065 done 21066 test -z "$as_dirs" || eval "mkdir $as_dirs" 21067 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 21068echo "$as_me: error: cannot create directory $as_dir" >&2;} 21069 { (exit 1); exit 1; }; }; } 21070 # echo "creating $dirpart/$file" 21071 echo '# dummy' > "$dirpart/$file" 21072 done 21073done 21074 ;; 21075 "Makefile":F) 21076 sed -e 's,^#distdir:,distdir:,' < $ac_file > $ac_file.tmp 21077 mv $ac_file.tmp $ac_file 21078 ;; 21079 21080 esac 21081done # for ac_tag 21082 21083 21084{ (exit 0); exit 0; } 21085_ACEOF 21086chmod +x $CONFIG_STATUS 21087ac_clean_files=$ac_clean_files_save 21088 21089 21090# configure is writing to config.log, and then calls config.status. 21091# config.status does its own redirection, appending to config.log. 21092# Unfortunately, on DOS this fails, as config.log is still kept open 21093# by configure, so config.status won't be able to write to it; its 21094# output is simply discarded. So we exec the FD to /dev/null, 21095# effectively closing config.log, so it can be properly (re)opened and 21096# appended to by config.status. When coming back to configure, we 21097# need to make the FD available again. 21098if test "$no_create" != yes; then 21099 ac_cs_success=: 21100 ac_config_status_args= 21101 test "$silent" = yes && 21102 ac_config_status_args="$ac_config_status_args --quiet" 21103 exec 5>/dev/null 21104 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21105 exec 5>>config.log 21106 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21107 # would make configure fail if this is the last instruction. 21108 $ac_cs_success || { (exit 1); exit 1; } 21109fi 21110 21111