1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.61. 4# 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9## --------------------- ## 10## M4sh Initialization. ## 11## --------------------- ## 12 13# Be more Bourne compatible 14DUALCASE=1; export DUALCASE # for MKS sh 15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 16 emulate sh 17 NULLCMD=: 18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19 # is contrary to our usage. Disable this feature. 20 alias -g '${1+"$@"}'='"$@"' 21 setopt NO_GLOB_SUBST 22else 23 case `(set -o) 2>/dev/null` in 24 *posix*) set -o posix ;; 25esac 26 27fi 28 29 30 31 32# PATH needs CR 33# Avoid depending upon Character Ranges. 34as_cr_letters='abcdefghijklmnopqrstuvwxyz' 35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 36as_cr_Letters=$as_cr_letters$as_cr_LETTERS 37as_cr_digits='0123456789' 38as_cr_alnum=$as_cr_Letters$as_cr_digits 39 40# The user is always right. 41if test "${PATH_SEPARATOR+set}" != set; then 42 echo "#! /bin/sh" >conf$$.sh 43 echo "exit 0" >>conf$$.sh 44 chmod +x conf$$.sh 45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 46 PATH_SEPARATOR=';' 47 else 48 PATH_SEPARATOR=: 49 fi 50 rm -f conf$$.sh 51fi 52 53# Support unset when possible. 54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 55 as_unset=unset 56else 57 as_unset=false 58fi 59 60 61# IFS 62# We need space, tab and new line, in precisely that order. Quoting is 63# there to prevent editors from complaining about space-tab. 64# (If _AS_PATH_WALK were called with IFS unset, it would disable word 65# splitting by setting IFS to empty value.) 66as_nl=' 67' 68IFS=" "" $as_nl" 69 70# Find who we are. Look in the path if we contain no directory separator. 71case $0 in 72 *[\\/]* ) as_myself=$0 ;; 73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 74for as_dir in $PATH 75do 76 IFS=$as_save_IFS 77 test -z "$as_dir" && as_dir=. 78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 79done 80IFS=$as_save_IFS 81 82 ;; 83esac 84# We did not find ourselves, most probably we were run as `sh COMMAND' 85# in which case we are not to be found in the path. 86if test "x$as_myself" = x; then 87 as_myself=$0 88fi 89if test ! -f "$as_myself"; then 90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 91 { (exit 1); exit 1; } 92fi 93 94# Work around bugs in pre-3.0 UWIN ksh. 95for as_var in ENV MAIL MAILPATH 96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 97done 98PS1='$ ' 99PS2='> ' 100PS4='+ ' 101 102# NLS nuisances. 103for as_var in \ 104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 106 LC_TELEPHONE LC_TIME 107do 108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 109 eval $as_var=C; export $as_var 110 else 111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 112 fi 113done 114 115# Required to use basename. 116if expr a : '\(a\)' >/dev/null 2>&1 && 117 test "X`expr 00001 : '.*\(...\)'`" = X001; then 118 as_expr=expr 119else 120 as_expr=false 121fi 122 123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 124 as_basename=basename 125else 126 as_basename=false 127fi 128 129 130# Name of the executable. 131as_me=`$as_basename -- "$0" || 132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 133 X"$0" : 'X\(//\)$' \| \ 134 X"$0" : 'X\(/\)' \| . 2>/dev/null || 135echo X/"$0" | 136 sed '/^.*\/\([^/][^/]*\)\/*$/{ 137 s//\1/ 138 q 139 } 140 /^X\/\(\/\/\)$/{ 141 s//\1/ 142 q 143 } 144 /^X\/\(\/\).*/{ 145 s//\1/ 146 q 147 } 148 s/.*/./; q'` 149 150# CDPATH. 151$as_unset CDPATH 152 153 154if test "x$CONFIG_SHELL" = x; then 155 if (eval ":") 2>/dev/null; then 156 as_have_required=yes 157else 158 as_have_required=no 159fi 160 161 if test $as_have_required = yes && (eval ": 162(as_func_return () { 163 (exit \$1) 164} 165as_func_success () { 166 as_func_return 0 167} 168as_func_failure () { 169 as_func_return 1 170} 171as_func_ret_success () { 172 return 0 173} 174as_func_ret_failure () { 175 return 1 176} 177 178exitcode=0 179if as_func_success; then 180 : 181else 182 exitcode=1 183 echo as_func_success failed. 184fi 185 186if as_func_failure; then 187 exitcode=1 188 echo as_func_failure succeeded. 189fi 190 191if as_func_ret_success; then 192 : 193else 194 exitcode=1 195 echo as_func_ret_success failed. 196fi 197 198if as_func_ret_failure; then 199 exitcode=1 200 echo as_func_ret_failure succeeded. 201fi 202 203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 204 : 205else 206 exitcode=1 207 echo positional parameters were not saved. 208fi 209 210test \$exitcode = 0) || { (exit 1); exit 1; } 211 212( 213 as_lineno_1=\$LINENO 214 as_lineno_2=\$LINENO 215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 217") 2> /dev/null; then 218 : 219else 220 as_candidate_shells= 221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 223do 224 IFS=$as_save_IFS 225 test -z "$as_dir" && as_dir=. 226 case $as_dir in 227 /*) 228 for as_base in sh bash ksh sh5; do 229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 230 done;; 231 esac 232done 233IFS=$as_save_IFS 234 235 236 for as_shell in $as_candidate_shells $SHELL; do 237 # Try only shells that exist, to save several forks. 238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 239 { ("$as_shell") 2> /dev/null <<\_ASEOF 240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 241 emulate sh 242 NULLCMD=: 243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 244 # is contrary to our usage. Disable this feature. 245 alias -g '${1+"$@"}'='"$@"' 246 setopt NO_GLOB_SUBST 247else 248 case `(set -o) 2>/dev/null` in 249 *posix*) set -o posix ;; 250esac 251 252fi 253 254 255: 256_ASEOF 257}; then 258 CONFIG_SHELL=$as_shell 259 as_have_required=yes 260 if { "$as_shell" 2> /dev/null <<\_ASEOF 261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 262 emulate sh 263 NULLCMD=: 264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 265 # is contrary to our usage. Disable this feature. 266 alias -g '${1+"$@"}'='"$@"' 267 setopt NO_GLOB_SUBST 268else 269 case `(set -o) 2>/dev/null` in 270 *posix*) set -o posix ;; 271esac 272 273fi 274 275 276: 277(as_func_return () { 278 (exit $1) 279} 280as_func_success () { 281 as_func_return 0 282} 283as_func_failure () { 284 as_func_return 1 285} 286as_func_ret_success () { 287 return 0 288} 289as_func_ret_failure () { 290 return 1 291} 292 293exitcode=0 294if as_func_success; then 295 : 296else 297 exitcode=1 298 echo as_func_success failed. 299fi 300 301if as_func_failure; then 302 exitcode=1 303 echo as_func_failure succeeded. 304fi 305 306if as_func_ret_success; then 307 : 308else 309 exitcode=1 310 echo as_func_ret_success failed. 311fi 312 313if as_func_ret_failure; then 314 exitcode=1 315 echo as_func_ret_failure succeeded. 316fi 317 318if ( set x; as_func_ret_success y && test x = "$1" ); then 319 : 320else 321 exitcode=1 322 echo positional parameters were not saved. 323fi 324 325test $exitcode = 0) || { (exit 1); exit 1; } 326 327( 328 as_lineno_1=$LINENO 329 as_lineno_2=$LINENO 330 test "x$as_lineno_1" != "x$as_lineno_2" && 331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 332 333_ASEOF 334}; then 335 break 336fi 337 338fi 339 340 done 341 342 if test "x$CONFIG_SHELL" != x; then 343 for as_var in BASH_ENV ENV 344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 345 done 346 export CONFIG_SHELL 347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 348fi 349 350 351 if test $as_have_required = no; then 352 echo This script requires a shell more modern than all the 353 echo shells that I found on your system. Please install a 354 echo modern shell, or manually run the script under such a 355 echo shell if you do have one. 356 { (exit 1); exit 1; } 357fi 358 359 360fi 361 362fi 363 364 365 366(eval "as_func_return () { 367 (exit \$1) 368} 369as_func_success () { 370 as_func_return 0 371} 372as_func_failure () { 373 as_func_return 1 374} 375as_func_ret_success () { 376 return 0 377} 378as_func_ret_failure () { 379 return 1 380} 381 382exitcode=0 383if as_func_success; then 384 : 385else 386 exitcode=1 387 echo as_func_success failed. 388fi 389 390if as_func_failure; then 391 exitcode=1 392 echo as_func_failure succeeded. 393fi 394 395if as_func_ret_success; then 396 : 397else 398 exitcode=1 399 echo as_func_ret_success failed. 400fi 401 402if as_func_ret_failure; then 403 exitcode=1 404 echo as_func_ret_failure succeeded. 405fi 406 407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 408 : 409else 410 exitcode=1 411 echo positional parameters were not saved. 412fi 413 414test \$exitcode = 0") || { 415 echo No shell found that supports shell functions. 416 echo Please tell autoconf@gnu.org about your system, 417 echo including any error possibly output before this 418 echo message 419} 420 421 422 423 as_lineno_1=$LINENO 424 as_lineno_2=$LINENO 425 test "x$as_lineno_1" != "x$as_lineno_2" && 426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 427 428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 429 # uniformly replaced by the line number. The first 'sed' inserts a 430 # line-number line after each line using $LINENO; the second 'sed' 431 # does the real work. The second script uses 'N' to pair each 432 # line-number line with the line containing $LINENO, and appends 433 # trailing '-' during substitution so that $LINENO is not a special 434 # case at line end. 435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 436 # scripts with optimization help from Paolo Bonzini. Blame Lee 437 # E. McMahon (1931-1989) for sed's syntax. :-) 438 sed -n ' 439 p 440 /[$]LINENO/= 441 ' <$as_myself | 442 sed ' 443 s/[$]LINENO.*/&-/ 444 t lineno 445 b 446 :lineno 447 N 448 :loop 449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 450 t loop 451 s/-\n.*// 452 ' >$as_me.lineno && 453 chmod +x "$as_me.lineno" || 454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 455 { (exit 1); exit 1; }; } 456 457 # Don't try to exec as it changes $[0], causing all sort of problems 458 # (the dirname of $[0] is not the place where we might find the 459 # original and so on. Autoconf is especially sensitive to this). 460 . "./$as_me.lineno" 461 # Exit status is that of the last command. 462 exit 463} 464 465 466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 467 as_dirname=dirname 468else 469 as_dirname=false 470fi 471 472ECHO_C= ECHO_N= ECHO_T= 473case `echo -n x` in 474-n*) 475 case `echo 'x\c'` in 476 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 477 *) ECHO_C='\c';; 478 esac;; 479*) 480 ECHO_N='-n';; 481esac 482 483if expr a : '\(a\)' >/dev/null 2>&1 && 484 test "X`expr 00001 : '.*\(...\)'`" = X001; then 485 as_expr=expr 486else 487 as_expr=false 488fi 489 490rm -f conf$$ conf$$.exe conf$$.file 491if test -d conf$$.dir; then 492 rm -f conf$$.dir/conf$$.file 493else 494 rm -f conf$$.dir 495 mkdir conf$$.dir 496fi 497echo >conf$$.file 498if ln -s conf$$.file conf$$ 2>/dev/null; then 499 as_ln_s='ln -s' 500 # ... but there are two gotchas: 501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 503 # In both cases, we have to default to `cp -p'. 504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 505 as_ln_s='cp -p' 506elif ln conf$$.file conf$$ 2>/dev/null; then 507 as_ln_s=ln 508else 509 as_ln_s='cp -p' 510fi 511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 512rmdir conf$$.dir 2>/dev/null 513 514if mkdir -p . 2>/dev/null; then 515 as_mkdir_p=: 516else 517 test -d ./-p && rmdir ./-p 518 as_mkdir_p=false 519fi 520 521if test -x / >/dev/null 2>&1; then 522 as_test_x='test -x' 523else 524 if ls -dL / >/dev/null 2>&1; then 525 as_ls_L_option=L 526 else 527 as_ls_L_option= 528 fi 529 as_test_x=' 530 eval sh -c '\'' 531 if test -d "$1"; then 532 test -d "$1/."; 533 else 534 case $1 in 535 -*)set "./$1";; 536 esac; 537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 538 ???[sx]*):;;*)false;;esac;fi 539 '\'' sh 540 ' 541fi 542as_executable_p=$as_test_x 543 544# Sed expression to map a string onto a valid CPP name. 545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 546 547# Sed expression to map a string onto a valid variable name. 548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 549 550 551 552 553# Check that we are running under the correct shell. 554SHELL=${CONFIG_SHELL-/bin/sh} 555 556case X$ECHO in 557X*--fallback-echo) 558 # Remove one level of quotation (which was required for Make). 559 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 560 ;; 561esac 562 563echo=${ECHO-echo} 564if test "X$1" = X--no-reexec; then 565 # Discard the --no-reexec flag, and continue. 566 shift 567elif test "X$1" = X--fallback-echo; then 568 # Avoid inline document here, it may be left over 569 : 570elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 571 # Yippee, $echo works! 572 : 573else 574 # Restart under the correct shell. 575 exec $SHELL "$0" --no-reexec ${1+"$@"} 576fi 577 578if test "X$1" = X--fallback-echo; then 579 # used as fallback echo 580 shift 581 cat <<EOF 582$* 583EOF 584 exit 0 585fi 586 587# The HP-UX ksh and POSIX shell print the target directory to stdout 588# if CDPATH is set. 589(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 590 591if test -z "$ECHO"; then 592if test "X${echo_test_string+set}" != Xset; then 593# find a string as large as possible, as long as the shell can cope with it 594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 596 if (echo_test_string=`eval $cmd`) 2>/dev/null && 597 echo_test_string=`eval $cmd` && 598 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 599 then 600 break 601 fi 602 done 603fi 604 605if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 606 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 607 test "X$echo_testing_string" = "X$echo_test_string"; then 608 : 609else 610 # The Solaris, AIX, and Digital Unix default echo programs unquote 611 # backslashes. This makes it impossible to quote backslashes using 612 # echo "$something" | sed 's/\\/\\\\/g' 613 # 614 # So, first we look for a working echo in the user's PATH. 615 616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 617 for dir in $PATH /usr/ucb; do 618 IFS="$lt_save_ifs" 619 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 620 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 621 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 622 test "X$echo_testing_string" = "X$echo_test_string"; then 623 echo="$dir/echo" 624 break 625 fi 626 done 627 IFS="$lt_save_ifs" 628 629 if test "X$echo" = Xecho; then 630 # We didn't find a better echo, so look for alternatives. 631 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 632 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 633 test "X$echo_testing_string" = "X$echo_test_string"; then 634 # This shell has a builtin print -r that does the trick. 635 echo='print -r' 636 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 637 test "X$CONFIG_SHELL" != X/bin/ksh; then 638 # If we have ksh, try running configure again with it. 639 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 640 export ORIGINAL_CONFIG_SHELL 641 CONFIG_SHELL=/bin/ksh 642 export CONFIG_SHELL 643 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 644 else 645 # Try using printf. 646 echo='printf %s\n' 647 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 648 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 649 test "X$echo_testing_string" = "X$echo_test_string"; then 650 # Cool, printf works 651 : 652 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 653 test "X$echo_testing_string" = 'X\t' && 654 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 655 test "X$echo_testing_string" = "X$echo_test_string"; then 656 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 657 export CONFIG_SHELL 658 SHELL="$CONFIG_SHELL" 659 export SHELL 660 echo="$CONFIG_SHELL $0 --fallback-echo" 661 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 662 test "X$echo_testing_string" = 'X\t' && 663 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 664 test "X$echo_testing_string" = "X$echo_test_string"; then 665 echo="$CONFIG_SHELL $0 --fallback-echo" 666 else 667 # maybe with a smaller string... 668 prev=: 669 670 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 671 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 672 then 673 break 674 fi 675 prev="$cmd" 676 done 677 678 if test "$prev" != 'sed 50q "$0"'; then 679 echo_test_string=`eval $prev` 680 export echo_test_string 681 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 682 else 683 # Oops. We lost completely, so just stick with echo. 684 echo=echo 685 fi 686 fi 687 fi 688 fi 689fi 690fi 691 692# Copy echo and quote the copy suitably for passing to libtool from 693# the Makefile, instead of quoting the original, which is used later. 694ECHO=$echo 695if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 696 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 697fi 698 699 700 701 702tagnames=${tagnames+${tagnames},}CXX 703 704tagnames=${tagnames+${tagnames},}F77 705 706exec 7<&0 </dev/null 6>&1 707 708# Name of the host. 709# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 710# so uname gets run too. 711ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 712 713# 714# Initializations. 715# 716ac_default_prefix=/usr/local 717ac_clean_files= 718ac_config_libobj_dir=. 719LIBOBJS= 720cross_compiling=no 721subdirs= 722MFLAGS= 723MAKEFLAGS= 724SHELL=${CONFIG_SHELL-/bin/sh} 725 726# Identity of this package. 727PACKAGE_NAME= 728PACKAGE_TARNAME= 729PACKAGE_VERSION= 730PACKAGE_STRING= 731PACKAGE_BUGREPORT= 732 733ac_unique_file="configure.ac" 734# Factoring default headers for most tests. 735ac_includes_default="\ 736#include <stdio.h> 737#ifdef HAVE_SYS_TYPES_H 738# include <sys/types.h> 739#endif 740#ifdef HAVE_SYS_STAT_H 741# include <sys/stat.h> 742#endif 743#ifdef STDC_HEADERS 744# include <stdlib.h> 745# include <stddef.h> 746#else 747# ifdef HAVE_STDLIB_H 748# include <stdlib.h> 749# endif 750#endif 751#ifdef HAVE_STRING_H 752# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 753# include <memory.h> 754# endif 755# include <string.h> 756#endif 757#ifdef HAVE_STRINGS_H 758# include <strings.h> 759#endif 760#ifdef HAVE_INTTYPES_H 761# include <inttypes.h> 762#endif 763#ifdef HAVE_STDINT_H 764# include <stdint.h> 765#endif 766#ifdef HAVE_UNISTD_H 767# include <unistd.h> 768#endif" 769 770ac_subst_vars='SHELL 771PATH_SEPARATOR 772PACKAGE_NAME 773PACKAGE_TARNAME 774PACKAGE_VERSION 775PACKAGE_STRING 776PACKAGE_BUGREPORT 777exec_prefix 778prefix 779program_transform_name 780bindir 781sbindir 782libexecdir 783datarootdir 784datadir 785sysconfdir 786sharedstatedir 787localstatedir 788includedir 789oldincludedir 790docdir 791infodir 792htmldir 793dvidir 794pdfdir 795psdir 796libdir 797localedir 798mandir 799DEFS 800ECHO_C 801ECHO_N 802ECHO_T 803LIBS 804build_alias 805host_alias 806target_alias 807build 808build_cpu 809build_vendor 810build_os 811host 812host_cpu 813host_vendor 814host_os 815target 816target_cpu 817target_vendor 818target_os 819INSTALL_PROGRAM 820INSTALL_SCRIPT 821INSTALL_DATA 822CYGPATH_W 823PACKAGE 824VERSION 825ACLOCAL 826AUTOCONF 827AUTOMAKE 828AUTOHEADER 829MAKEINFO 830AMTAR 831install_sh 832STRIP 833INSTALL_STRIP_PROGRAM 834AWK 835SET_MAKE 836am__leading_dot 837CC 838CFLAGS 839LDFLAGS 840CPPFLAGS 841ac_ct_CC 842EXEEXT 843OBJEXT 844DEPDIR 845am__include 846am__quote 847AMDEP_TRUE 848AMDEP_FALSE 849AMDEPBACKSLASH 850CCDEPMODE 851am__fastdepCC_TRUE 852am__fastdepCC_FALSE 853GREP 854EGREP 855LN_S 856ECHO 857AR 858RANLIB 859CPP 860CXX 861CXXFLAGS 862ac_ct_CXX 863CXXDEPMODE 864am__fastdepCXX_TRUE 865am__fastdepCXX_FALSE 866CXXCPP 867F77 868FFLAGS 869ac_ct_F77 870LIBTOOL 871LIBGCRYPT_CONFIG 872LIBGCRYPT_CFLAGS 873LIBGCRYPT_LIBS 874PKG_CONFIG 875GLIB_CFLAGS 876GLIB_LIBS 877BUILD_LUFS_TRUE 878BUILD_LUFS_FALSE 879FUSE_CFLAGS 880FUSE_LIBS 881BUILD_FUSE_TRUE 882BUILD_FUSE_FALSE 883have_pinentry 884WITH_PINENTRY_TRUE 885WITH_PINENTRY_FALSE 886LIBOBJS 887LTLIBOBJS' 888ac_subst_files='' 889 ac_precious_vars='build_alias 890host_alias 891target_alias 892CC 893CFLAGS 894LDFLAGS 895LIBS 896CPPFLAGS 897CPP 898CXX 899CXXFLAGS 900CCC 901CXXCPP 902F77 903FFLAGS 904PKG_CONFIG 905GLIB_CFLAGS 906GLIB_LIBS 907FUSE_CFLAGS 908FUSE_LIBS' 909 910 911# Initialize some variables set by options. 912ac_init_help= 913ac_init_version=false 914# The variables have the same names as the options, with 915# dashes changed to underlines. 916cache_file=/dev/null 917exec_prefix=NONE 918no_create= 919no_recursion= 920prefix=NONE 921program_prefix=NONE 922program_suffix=NONE 923program_transform_name=s,x,x, 924silent= 925site= 926srcdir= 927verbose= 928x_includes=NONE 929x_libraries=NONE 930 931# Installation directory options. 932# These are left unexpanded so users can "make install exec_prefix=/foo" 933# and all the variables that are supposed to be based on exec_prefix 934# by default will actually change. 935# Use braces instead of parens because sh, perl, etc. also accept them. 936# (The list follows the same order as the GNU Coding Standards.) 937bindir='${exec_prefix}/bin' 938sbindir='${exec_prefix}/sbin' 939libexecdir='${exec_prefix}/libexec' 940datarootdir='${prefix}/share' 941datadir='${datarootdir}' 942sysconfdir='${prefix}/etc' 943sharedstatedir='${prefix}/com' 944localstatedir='${prefix}/var' 945includedir='${prefix}/include' 946oldincludedir='/usr/include' 947docdir='${datarootdir}/doc/${PACKAGE}' 948infodir='${datarootdir}/info' 949htmldir='${docdir}' 950dvidir='${docdir}' 951pdfdir='${docdir}' 952psdir='${docdir}' 953libdir='${exec_prefix}/lib' 954localedir='${datarootdir}/locale' 955mandir='${datarootdir}/man' 956 957ac_prev= 958ac_dashdash= 959for ac_option 960do 961 # If the previous option needs an argument, assign it. 962 if test -n "$ac_prev"; then 963 eval $ac_prev=\$ac_option 964 ac_prev= 965 continue 966 fi 967 968 case $ac_option in 969 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 970 *) ac_optarg=yes ;; 971 esac 972 973 # Accept the important Cygnus configure options, so we can diagnose typos. 974 975 case $ac_dashdash$ac_option in 976 --) 977 ac_dashdash=yes ;; 978 979 -bindir | --bindir | --bindi | --bind | --bin | --bi) 980 ac_prev=bindir ;; 981 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 982 bindir=$ac_optarg ;; 983 984 -build | --build | --buil | --bui | --bu) 985 ac_prev=build_alias ;; 986 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 987 build_alias=$ac_optarg ;; 988 989 -cache-file | --cache-file | --cache-fil | --cache-fi \ 990 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 991 ac_prev=cache_file ;; 992 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 993 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 994 cache_file=$ac_optarg ;; 995 996 --config-cache | -C) 997 cache_file=config.cache ;; 998 999 -datadir | --datadir | --datadi | --datad) 1000 ac_prev=datadir ;; 1001 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1002 datadir=$ac_optarg ;; 1003 1004 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1005 | --dataroo | --dataro | --datar) 1006 ac_prev=datarootdir ;; 1007 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1008 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1009 datarootdir=$ac_optarg ;; 1010 1011 -disable-* | --disable-*) 1012 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1013 # Reject names that are not valid shell variable names. 1014 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1015 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1016 { (exit 1); exit 1; }; } 1017 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1018 eval enable_$ac_feature=no ;; 1019 1020 -docdir | --docdir | --docdi | --doc | --do) 1021 ac_prev=docdir ;; 1022 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1023 docdir=$ac_optarg ;; 1024 1025 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1026 ac_prev=dvidir ;; 1027 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1028 dvidir=$ac_optarg ;; 1029 1030 -enable-* | --enable-*) 1031 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1032 # Reject names that are not valid shell variable names. 1033 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1034 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1035 { (exit 1); exit 1; }; } 1036 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1037 eval enable_$ac_feature=\$ac_optarg ;; 1038 1039 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1040 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1041 | --exec | --exe | --ex) 1042 ac_prev=exec_prefix ;; 1043 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1044 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1045 | --exec=* | --exe=* | --ex=*) 1046 exec_prefix=$ac_optarg ;; 1047 1048 -gas | --gas | --ga | --g) 1049 # Obsolete; use --with-gas. 1050 with_gas=yes ;; 1051 1052 -help | --help | --hel | --he | -h) 1053 ac_init_help=long ;; 1054 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1055 ac_init_help=recursive ;; 1056 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1057 ac_init_help=short ;; 1058 1059 -host | --host | --hos | --ho) 1060 ac_prev=host_alias ;; 1061 -host=* | --host=* | --hos=* | --ho=*) 1062 host_alias=$ac_optarg ;; 1063 1064 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1065 ac_prev=htmldir ;; 1066 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1067 | --ht=*) 1068 htmldir=$ac_optarg ;; 1069 1070 -includedir | --includedir | --includedi | --included | --include \ 1071 | --includ | --inclu | --incl | --inc) 1072 ac_prev=includedir ;; 1073 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1074 | --includ=* | --inclu=* | --incl=* | --inc=*) 1075 includedir=$ac_optarg ;; 1076 1077 -infodir | --infodir | --infodi | --infod | --info | --inf) 1078 ac_prev=infodir ;; 1079 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1080 infodir=$ac_optarg ;; 1081 1082 -libdir | --libdir | --libdi | --libd) 1083 ac_prev=libdir ;; 1084 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1085 libdir=$ac_optarg ;; 1086 1087 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1088 | --libexe | --libex | --libe) 1089 ac_prev=libexecdir ;; 1090 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1091 | --libexe=* | --libex=* | --libe=*) 1092 libexecdir=$ac_optarg ;; 1093 1094 -localedir | --localedir | --localedi | --localed | --locale) 1095 ac_prev=localedir ;; 1096 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1097 localedir=$ac_optarg ;; 1098 1099 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1100 | --localstate | --localstat | --localsta | --localst | --locals) 1101 ac_prev=localstatedir ;; 1102 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1103 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1104 localstatedir=$ac_optarg ;; 1105 1106 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1107 ac_prev=mandir ;; 1108 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1109 mandir=$ac_optarg ;; 1110 1111 -nfp | --nfp | --nf) 1112 # Obsolete; use --without-fp. 1113 with_fp=no ;; 1114 1115 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1116 | --no-cr | --no-c | -n) 1117 no_create=yes ;; 1118 1119 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1120 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1121 no_recursion=yes ;; 1122 1123 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1124 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1125 | --oldin | --oldi | --old | --ol | --o) 1126 ac_prev=oldincludedir ;; 1127 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1128 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1129 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1130 oldincludedir=$ac_optarg ;; 1131 1132 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1133 ac_prev=prefix ;; 1134 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1135 prefix=$ac_optarg ;; 1136 1137 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1138 | --program-pre | --program-pr | --program-p) 1139 ac_prev=program_prefix ;; 1140 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1141 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1142 program_prefix=$ac_optarg ;; 1143 1144 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1145 | --program-suf | --program-su | --program-s) 1146 ac_prev=program_suffix ;; 1147 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1148 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1149 program_suffix=$ac_optarg ;; 1150 1151 -program-transform-name | --program-transform-name \ 1152 | --program-transform-nam | --program-transform-na \ 1153 | --program-transform-n | --program-transform- \ 1154 | --program-transform | --program-transfor \ 1155 | --program-transfo | --program-transf \ 1156 | --program-trans | --program-tran \ 1157 | --progr-tra | --program-tr | --program-t) 1158 ac_prev=program_transform_name ;; 1159 -program-transform-name=* | --program-transform-name=* \ 1160 | --program-transform-nam=* | --program-transform-na=* \ 1161 | --program-transform-n=* | --program-transform-=* \ 1162 | --program-transform=* | --program-transfor=* \ 1163 | --program-transfo=* | --program-transf=* \ 1164 | --program-trans=* | --program-tran=* \ 1165 | --progr-tra=* | --program-tr=* | --program-t=*) 1166 program_transform_name=$ac_optarg ;; 1167 1168 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1169 ac_prev=pdfdir ;; 1170 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1171 pdfdir=$ac_optarg ;; 1172 1173 -psdir | --psdir | --psdi | --psd | --ps) 1174 ac_prev=psdir ;; 1175 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1176 psdir=$ac_optarg ;; 1177 1178 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1179 | -silent | --silent | --silen | --sile | --sil) 1180 silent=yes ;; 1181 1182 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1183 ac_prev=sbindir ;; 1184 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1185 | --sbi=* | --sb=*) 1186 sbindir=$ac_optarg ;; 1187 1188 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1189 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1190 | --sharedst | --shareds | --shared | --share | --shar \ 1191 | --sha | --sh) 1192 ac_prev=sharedstatedir ;; 1193 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1194 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1195 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1196 | --sha=* | --sh=*) 1197 sharedstatedir=$ac_optarg ;; 1198 1199 -site | --site | --sit) 1200 ac_prev=site ;; 1201 -site=* | --site=* | --sit=*) 1202 site=$ac_optarg ;; 1203 1204 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1205 ac_prev=srcdir ;; 1206 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1207 srcdir=$ac_optarg ;; 1208 1209 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1210 | --syscon | --sysco | --sysc | --sys | --sy) 1211 ac_prev=sysconfdir ;; 1212 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1213 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1214 sysconfdir=$ac_optarg ;; 1215 1216 -target | --target | --targe | --targ | --tar | --ta | --t) 1217 ac_prev=target_alias ;; 1218 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1219 target_alias=$ac_optarg ;; 1220 1221 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1222 verbose=yes ;; 1223 1224 -version | --version | --versio | --versi | --vers | -V) 1225 ac_init_version=: ;; 1226 1227 -with-* | --with-*) 1228 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1229 # Reject names that are not valid shell variable names. 1230 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1231 { echo "$as_me: error: invalid package name: $ac_package" >&2 1232 { (exit 1); exit 1; }; } 1233 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1234 eval with_$ac_package=\$ac_optarg ;; 1235 1236 -without-* | --without-*) 1237 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1238 # Reject names that are not valid shell variable names. 1239 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1240 { echo "$as_me: error: invalid package name: $ac_package" >&2 1241 { (exit 1); exit 1; }; } 1242 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1243 eval with_$ac_package=no ;; 1244 1245 --x) 1246 # Obsolete; use --with-x. 1247 with_x=yes ;; 1248 1249 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1250 | --x-incl | --x-inc | --x-in | --x-i) 1251 ac_prev=x_includes ;; 1252 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1253 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1254 x_includes=$ac_optarg ;; 1255 1256 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1257 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1258 ac_prev=x_libraries ;; 1259 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1260 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1261 x_libraries=$ac_optarg ;; 1262 1263 -*) { echo "$as_me: error: unrecognized option: $ac_option 1264Try \`$0 --help' for more information." >&2 1265 { (exit 1); exit 1; }; } 1266 ;; 1267 1268 *=*) 1269 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1270 # Reject names that are not valid shell variable names. 1271 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1272 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1273 { (exit 1); exit 1; }; } 1274 eval $ac_envvar=\$ac_optarg 1275 export $ac_envvar ;; 1276 1277 *) 1278 # FIXME: should be removed in autoconf 3.0. 1279 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1280 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1281 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1282 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1283 ;; 1284 1285 esac 1286done 1287 1288if test -n "$ac_prev"; then 1289 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1290 { echo "$as_me: error: missing argument to $ac_option" >&2 1291 { (exit 1); exit 1; }; } 1292fi 1293 1294# Be sure to have absolute directory names. 1295for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1296 datadir sysconfdir sharedstatedir localstatedir includedir \ 1297 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1298 libdir localedir mandir 1299do 1300 eval ac_val=\$$ac_var 1301 case $ac_val in 1302 [\\/$]* | ?:[\\/]* ) continue;; 1303 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1304 esac 1305 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1306 { (exit 1); exit 1; }; } 1307done 1308 1309# There might be people who depend on the old broken behavior: `$host' 1310# used to hold the argument of --host etc. 1311# FIXME: To remove some day. 1312build=$build_alias 1313host=$host_alias 1314target=$target_alias 1315 1316# FIXME: To remove some day. 1317if test "x$host_alias" != x; then 1318 if test "x$build_alias" = x; then 1319 cross_compiling=maybe 1320 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1321 If a cross compiler is detected then cross compile mode will be used." >&2 1322 elif test "x$build_alias" != "x$host_alias"; then 1323 cross_compiling=yes 1324 fi 1325fi 1326 1327ac_tool_prefix= 1328test -n "$host_alias" && ac_tool_prefix=$host_alias- 1329 1330test "$silent" = yes && exec 6>/dev/null 1331 1332 1333ac_pwd=`pwd` && test -n "$ac_pwd" && 1334ac_ls_di=`ls -di .` && 1335ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1336 { echo "$as_me: error: Working directory cannot be determined" >&2 1337 { (exit 1); exit 1; }; } 1338test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1339 { echo "$as_me: error: pwd does not report name of working directory" >&2 1340 { (exit 1); exit 1; }; } 1341 1342 1343# Find the source files, if location was not specified. 1344if test -z "$srcdir"; then 1345 ac_srcdir_defaulted=yes 1346 # Try the directory containing this script, then the parent directory. 1347 ac_confdir=`$as_dirname -- "$0" || 1348$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1349 X"$0" : 'X\(//\)[^/]' \| \ 1350 X"$0" : 'X\(//\)$' \| \ 1351 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1352echo X"$0" | 1353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1354 s//\1/ 1355 q 1356 } 1357 /^X\(\/\/\)[^/].*/{ 1358 s//\1/ 1359 q 1360 } 1361 /^X\(\/\/\)$/{ 1362 s//\1/ 1363 q 1364 } 1365 /^X\(\/\).*/{ 1366 s//\1/ 1367 q 1368 } 1369 s/.*/./; q'` 1370 srcdir=$ac_confdir 1371 if test ! -r "$srcdir/$ac_unique_file"; then 1372 srcdir=.. 1373 fi 1374else 1375 ac_srcdir_defaulted=no 1376fi 1377if test ! -r "$srcdir/$ac_unique_file"; then 1378 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1379 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1380 { (exit 1); exit 1; }; } 1381fi 1382ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1383ac_abs_confdir=`( 1384 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1385 { (exit 1); exit 1; }; } 1386 pwd)` 1387# When building in place, set srcdir=. 1388if test "$ac_abs_confdir" = "$ac_pwd"; then 1389 srcdir=. 1390fi 1391# Remove unnecessary trailing slashes from srcdir. 1392# Double slashes in file names in object file debugging info 1393# mess up M-x gdb in Emacs. 1394case $srcdir in 1395*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1396esac 1397for ac_var in $ac_precious_vars; do 1398 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1399 eval ac_env_${ac_var}_value=\$${ac_var} 1400 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1401 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1402done 1403 1404# 1405# Report the --help message. 1406# 1407if test "$ac_init_help" = "long"; then 1408 # Omit some internal or obsolete options to make the list less imposing. 1409 # This message is too long to be a string in the A/UX 3.1 sh. 1410 cat <<_ACEOF 1411\`configure' configures this package to adapt to many kinds of systems. 1412 1413Usage: $0 [OPTION]... [VAR=VALUE]... 1414 1415To assign environment variables (e.g., CC, CFLAGS...), specify them as 1416VAR=VALUE. See below for descriptions of some of the useful variables. 1417 1418Defaults for the options are specified in brackets. 1419 1420Configuration: 1421 -h, --help display this help and exit 1422 --help=short display options specific to this package 1423 --help=recursive display the short help of all the included packages 1424 -V, --version display version information and exit 1425 -q, --quiet, --silent do not print \`checking...' messages 1426 --cache-file=FILE cache test results in FILE [disabled] 1427 -C, --config-cache alias for \`--cache-file=config.cache' 1428 -n, --no-create do not create output files 1429 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1430 1431Installation directories: 1432 --prefix=PREFIX install architecture-independent files in PREFIX 1433 [$ac_default_prefix] 1434 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1435 [PREFIX] 1436 1437By default, \`make install' will install all the files in 1438\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1439an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1440for instance \`--prefix=\$HOME'. 1441 1442For better control, use the options below. 1443 1444Fine tuning of the installation directories: 1445 --bindir=DIR user executables [EPREFIX/bin] 1446 --sbindir=DIR system admin executables [EPREFIX/sbin] 1447 --libexecdir=DIR program executables [EPREFIX/libexec] 1448 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1449 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1450 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1451 --libdir=DIR object code libraries [EPREFIX/lib] 1452 --includedir=DIR C header files [PREFIX/include] 1453 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1454 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1455 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1456 --infodir=DIR info documentation [DATAROOTDIR/info] 1457 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1458 --mandir=DIR man documentation [DATAROOTDIR/man] 1459 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1460 --htmldir=DIR html documentation [DOCDIR] 1461 --dvidir=DIR dvi documentation [DOCDIR] 1462 --pdfdir=DIR pdf documentation [DOCDIR] 1463 --psdir=DIR ps documentation [DOCDIR] 1464_ACEOF 1465 1466 cat <<\_ACEOF 1467 1468Program names: 1469 --program-prefix=PREFIX prepend PREFIX to installed program names 1470 --program-suffix=SUFFIX append SUFFIX to installed program names 1471 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1472 1473System types: 1474 --build=BUILD configure for building on BUILD [guessed] 1475 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1476 --target=TARGET configure for building compilers for TARGET [HOST] 1477_ACEOF 1478fi 1479 1480if test -n "$ac_init_help"; then 1481 1482 cat <<\_ACEOF 1483 1484Optional Features: 1485 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1486 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1487 --disable-dependency-tracking Speeds up one-time builds 1488 --enable-dependency-tracking Do not reject slow dependency extractors 1489 --enable-shared[=PKGS] build shared libraries [default=yes] 1490 --enable-static[=PKGS] build static libraries [default=yes] 1491 --enable-fast-install[=PKGS] 1492 optimize for fast installation [default=yes] 1493 --disable-libtool-lock avoid locking (might break parallel builds) 1494 --disable-lufs don't build CryptoFS for LUFS 1495 --disable-fuse don't build CryptoFS for FUSE 1496 1497Optional Packages: 1498 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1499 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1500 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1501 --with-pic try to use only PIC/non-PIC objects [default=use 1502 both] 1503 --with-tags[=TAGS] include additional configurations [automatic] 1504 --with-libgcrypt-prefix=PFX 1505 prefix where LIBGCRYPT is installed (optional) 1506 --with-pinentry Enable support for pinentry program to enter passwords 1507 1508Some influential environment variables: 1509 CC C compiler command 1510 CFLAGS C compiler flags 1511 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1512 nonstandard directory <lib dir> 1513 LIBS libraries to pass to the linker, e.g. -l<library> 1514 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1515 you have headers in a nonstandard directory <include dir> 1516 CPP C preprocessor 1517 CXX C++ compiler command 1518 CXXFLAGS C++ compiler flags 1519 CXXCPP C++ preprocessor 1520 F77 Fortran 77 compiler command 1521 FFLAGS Fortran 77 compiler flags 1522 PKG_CONFIG path to pkg-config utility 1523 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config 1524 GLIB_LIBS linker flags for GLIB, overriding pkg-config 1525 FUSE_CFLAGS C compiler flags for FUSE, overriding pkg-config 1526 FUSE_LIBS linker flags for FUSE, overriding pkg-config 1527 1528Use these variables to override the choices made by `configure' or to help 1529it to find libraries and programs with nonstandard names/locations. 1530 1531_ACEOF 1532ac_status=$? 1533fi 1534 1535if test "$ac_init_help" = "recursive"; then 1536 # If there are subdirs, report their specific --help. 1537 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1538 test -d "$ac_dir" || continue 1539 ac_builddir=. 1540 1541case "$ac_dir" in 1542.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1543*) 1544 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1545 # A ".." for each directory in $ac_dir_suffix. 1546 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1547 case $ac_top_builddir_sub in 1548 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1549 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1550 esac ;; 1551esac 1552ac_abs_top_builddir=$ac_pwd 1553ac_abs_builddir=$ac_pwd$ac_dir_suffix 1554# for backward compatibility: 1555ac_top_builddir=$ac_top_build_prefix 1556 1557case $srcdir in 1558 .) # We are building in place. 1559 ac_srcdir=. 1560 ac_top_srcdir=$ac_top_builddir_sub 1561 ac_abs_top_srcdir=$ac_pwd ;; 1562 [\\/]* | ?:[\\/]* ) # Absolute name. 1563 ac_srcdir=$srcdir$ac_dir_suffix; 1564 ac_top_srcdir=$srcdir 1565 ac_abs_top_srcdir=$srcdir ;; 1566 *) # Relative name. 1567 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1568 ac_top_srcdir=$ac_top_build_prefix$srcdir 1569 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1570esac 1571ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1572 1573 cd "$ac_dir" || { ac_status=$?; continue; } 1574 # Check for guested configure. 1575 if test -f "$ac_srcdir/configure.gnu"; then 1576 echo && 1577 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1578 elif test -f "$ac_srcdir/configure"; then 1579 echo && 1580 $SHELL "$ac_srcdir/configure" --help=recursive 1581 else 1582 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1583 fi || ac_status=$? 1584 cd "$ac_pwd" || { ac_status=$?; break; } 1585 done 1586fi 1587 1588test -n "$ac_init_help" && exit $ac_status 1589if $ac_init_version; then 1590 cat <<\_ACEOF 1591configure 1592generated by GNU Autoconf 2.61 1593 1594Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 15952002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1596This configure script is free software; the Free Software Foundation 1597gives unlimited permission to copy, distribute and modify it. 1598_ACEOF 1599 exit 1600fi 1601cat >config.log <<_ACEOF 1602This file contains any messages produced by compilers while 1603running configure, to aid debugging if configure makes a mistake. 1604 1605It was created by $as_me, which was 1606generated by GNU Autoconf 2.61. Invocation command line was 1607 1608 $ $0 $@ 1609 1610_ACEOF 1611exec 5>>config.log 1612{ 1613cat <<_ASUNAME 1614## --------- ## 1615## Platform. ## 1616## --------- ## 1617 1618hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1619uname -m = `(uname -m) 2>/dev/null || echo unknown` 1620uname -r = `(uname -r) 2>/dev/null || echo unknown` 1621uname -s = `(uname -s) 2>/dev/null || echo unknown` 1622uname -v = `(uname -v) 2>/dev/null || echo unknown` 1623 1624/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1625/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1626 1627/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1628/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1629/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1630/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1631/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1632/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1633/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1634 1635_ASUNAME 1636 1637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1638for as_dir in $PATH 1639do 1640 IFS=$as_save_IFS 1641 test -z "$as_dir" && as_dir=. 1642 echo "PATH: $as_dir" 1643done 1644IFS=$as_save_IFS 1645 1646} >&5 1647 1648cat >&5 <<_ACEOF 1649 1650 1651## ----------- ## 1652## Core tests. ## 1653## ----------- ## 1654 1655_ACEOF 1656 1657 1658# Keep a trace of the command line. 1659# Strip out --no-create and --no-recursion so they do not pile up. 1660# Strip out --silent because we don't want to record it for future runs. 1661# Also quote any args containing shell meta-characters. 1662# Make two passes to allow for proper duplicate-argument suppression. 1663ac_configure_args= 1664ac_configure_args0= 1665ac_configure_args1= 1666ac_must_keep_next=false 1667for ac_pass in 1 2 1668do 1669 for ac_arg 1670 do 1671 case $ac_arg in 1672 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1673 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1674 | -silent | --silent | --silen | --sile | --sil) 1675 continue ;; 1676 *\'*) 1677 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1678 esac 1679 case $ac_pass in 1680 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1681 2) 1682 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1683 if test $ac_must_keep_next = true; then 1684 ac_must_keep_next=false # Got value, back to normal. 1685 else 1686 case $ac_arg in 1687 *=* | --config-cache | -C | -disable-* | --disable-* \ 1688 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1689 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1690 | -with-* | --with-* | -without-* | --without-* | --x) 1691 case "$ac_configure_args0 " in 1692 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1693 esac 1694 ;; 1695 -* ) ac_must_keep_next=true ;; 1696 esac 1697 fi 1698 ac_configure_args="$ac_configure_args '$ac_arg'" 1699 ;; 1700 esac 1701 done 1702done 1703$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1704$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1705 1706# When interrupted or exit'd, cleanup temporary files, and complete 1707# config.log. We remove comments because anyway the quotes in there 1708# would cause problems or look ugly. 1709# WARNING: Use '\'' to represent an apostrophe within the trap. 1710# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1711trap 'exit_status=$? 1712 # Save into config.log some information that might help in debugging. 1713 { 1714 echo 1715 1716 cat <<\_ASBOX 1717## ---------------- ## 1718## Cache variables. ## 1719## ---------------- ## 1720_ASBOX 1721 echo 1722 # The following way of writing the cache mishandles newlines in values, 1723( 1724 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1725 eval ac_val=\$$ac_var 1726 case $ac_val in #( 1727 *${as_nl}*) 1728 case $ac_var in #( 1729 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1730echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1731 esac 1732 case $ac_var in #( 1733 _ | IFS | as_nl) ;; #( 1734 *) $as_unset $ac_var ;; 1735 esac ;; 1736 esac 1737 done 1738 (set) 2>&1 | 1739 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1740 *${as_nl}ac_space=\ *) 1741 sed -n \ 1742 "s/'\''/'\''\\\\'\'''\''/g; 1743 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1744 ;; #( 1745 *) 1746 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1747 ;; 1748 esac | 1749 sort 1750) 1751 echo 1752 1753 cat <<\_ASBOX 1754## ----------------- ## 1755## Output variables. ## 1756## ----------------- ## 1757_ASBOX 1758 echo 1759 for ac_var in $ac_subst_vars 1760 do 1761 eval ac_val=\$$ac_var 1762 case $ac_val in 1763 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1764 esac 1765 echo "$ac_var='\''$ac_val'\''" 1766 done | sort 1767 echo 1768 1769 if test -n "$ac_subst_files"; then 1770 cat <<\_ASBOX 1771## ------------------- ## 1772## File substitutions. ## 1773## ------------------- ## 1774_ASBOX 1775 echo 1776 for ac_var in $ac_subst_files 1777 do 1778 eval ac_val=\$$ac_var 1779 case $ac_val in 1780 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1781 esac 1782 echo "$ac_var='\''$ac_val'\''" 1783 done | sort 1784 echo 1785 fi 1786 1787 if test -s confdefs.h; then 1788 cat <<\_ASBOX 1789## ----------- ## 1790## confdefs.h. ## 1791## ----------- ## 1792_ASBOX 1793 echo 1794 cat confdefs.h 1795 echo 1796 fi 1797 test "$ac_signal" != 0 && 1798 echo "$as_me: caught signal $ac_signal" 1799 echo "$as_me: exit $exit_status" 1800 } >&5 1801 rm -f core *.core core.conftest.* && 1802 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1803 exit $exit_status 1804' 0 1805for ac_signal in 1 2 13 15; do 1806 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1807done 1808ac_signal=0 1809 1810# confdefs.h avoids OS command line length limits that DEFS can exceed. 1811rm -f -r conftest* confdefs.h 1812 1813# Predefined preprocessor variables. 1814 1815cat >>confdefs.h <<_ACEOF 1816#define PACKAGE_NAME "$PACKAGE_NAME" 1817_ACEOF 1818 1819 1820cat >>confdefs.h <<_ACEOF 1821#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1822_ACEOF 1823 1824 1825cat >>confdefs.h <<_ACEOF 1826#define PACKAGE_VERSION "$PACKAGE_VERSION" 1827_ACEOF 1828 1829 1830cat >>confdefs.h <<_ACEOF 1831#define PACKAGE_STRING "$PACKAGE_STRING" 1832_ACEOF 1833 1834 1835cat >>confdefs.h <<_ACEOF 1836#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1837_ACEOF 1838 1839 1840# Let the site file select an alternate cache file if it wants to. 1841# Prefer explicitly selected file to automatically selected ones. 1842if test -n "$CONFIG_SITE"; then 1843 set x "$CONFIG_SITE" 1844elif test "x$prefix" != xNONE; then 1845 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1846else 1847 set x "$ac_default_prefix/share/config.site" \ 1848 "$ac_default_prefix/etc/config.site" 1849fi 1850shift 1851for ac_site_file 1852do 1853 if test -r "$ac_site_file"; then 1854 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1855echo "$as_me: loading site script $ac_site_file" >&6;} 1856 sed 's/^/| /' "$ac_site_file" >&5 1857 . "$ac_site_file" 1858 fi 1859done 1860 1861if test -r "$cache_file"; then 1862 # Some versions of bash will fail to source /dev/null (special 1863 # files actually), so we avoid doing that. 1864 if test -f "$cache_file"; then 1865 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1866echo "$as_me: loading cache $cache_file" >&6;} 1867 case $cache_file in 1868 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1869 *) . "./$cache_file";; 1870 esac 1871 fi 1872else 1873 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1874echo "$as_me: creating cache $cache_file" >&6;} 1875 >$cache_file 1876fi 1877 1878# Check that the precious variables saved in the cache have kept the same 1879# value. 1880ac_cache_corrupted=false 1881for ac_var in $ac_precious_vars; do 1882 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1883 eval ac_new_set=\$ac_env_${ac_var}_set 1884 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1885 eval ac_new_val=\$ac_env_${ac_var}_value 1886 case $ac_old_set,$ac_new_set in 1887 set,) 1888 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1889echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1890 ac_cache_corrupted=: ;; 1891 ,set) 1892 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1893echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1894 ac_cache_corrupted=: ;; 1895 ,);; 1896 *) 1897 if test "x$ac_old_val" != "x$ac_new_val"; then 1898 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1899echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1900 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1901echo "$as_me: former value: $ac_old_val" >&2;} 1902 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1903echo "$as_me: current value: $ac_new_val" >&2;} 1904 ac_cache_corrupted=: 1905 fi;; 1906 esac 1907 # Pass precious variables to config.status. 1908 if test "$ac_new_set" = set; then 1909 case $ac_new_val in 1910 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1911 *) ac_arg=$ac_var=$ac_new_val ;; 1912 esac 1913 case " $ac_configure_args " in 1914 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1915 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1916 esac 1917 fi 1918done 1919if $ac_cache_corrupted; then 1920 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1921echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1922 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1923echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1924 { (exit 1); exit 1; }; } 1925fi 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943ac_ext=c 1944ac_cpp='$CPP $CPPFLAGS' 1945ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1946ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1947ac_compiler_gnu=$ac_cv_c_compiler_gnu 1948 1949 1950ac_aux_dir= 1951for ac_dir in config "$srcdir"/config; do 1952 if test -f "$ac_dir/install-sh"; then 1953 ac_aux_dir=$ac_dir 1954 ac_install_sh="$ac_aux_dir/install-sh -c" 1955 break 1956 elif test -f "$ac_dir/install.sh"; then 1957 ac_aux_dir=$ac_dir 1958 ac_install_sh="$ac_aux_dir/install.sh -c" 1959 break 1960 elif test -f "$ac_dir/shtool"; then 1961 ac_aux_dir=$ac_dir 1962 ac_install_sh="$ac_aux_dir/shtool install -c" 1963 break 1964 fi 1965done 1966if test -z "$ac_aux_dir"; then 1967 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5 1968echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;} 1969 { (exit 1); exit 1; }; } 1970fi 1971 1972# These three variables are undocumented and unsupported, 1973# and are intended to be withdrawn in a future Autoconf release. 1974# They can cause serious problems if a builder's source tree is in a directory 1975# whose full name contains unusual characters. 1976ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1977ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1978ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1979 1980 1981# Make sure we can run config.sub. 1982$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 1983 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 1984echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 1985 { (exit 1); exit 1; }; } 1986 1987{ echo "$as_me:$LINENO: checking build system type" >&5 1988echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 1989if test "${ac_cv_build+set}" = set; then 1990 echo $ECHO_N "(cached) $ECHO_C" >&6 1991else 1992 ac_build_alias=$build_alias 1993test "x$ac_build_alias" = x && 1994 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 1995test "x$ac_build_alias" = x && 1996 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1997echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1998 { (exit 1); exit 1; }; } 1999ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2000 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 2001echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2002 { (exit 1); exit 1; }; } 2003 2004fi 2005{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2006echo "${ECHO_T}$ac_cv_build" >&6; } 2007case $ac_cv_build in 2008*-*-*) ;; 2009*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2010echo "$as_me: error: invalid value of canonical build" >&2;} 2011 { (exit 1); exit 1; }; };; 2012esac 2013build=$ac_cv_build 2014ac_save_IFS=$IFS; IFS='-' 2015set x $ac_cv_build 2016shift 2017build_cpu=$1 2018build_vendor=$2 2019shift; shift 2020# Remember, the first character of IFS is used to create $*, 2021# except with old shells: 2022build_os=$* 2023IFS=$ac_save_IFS 2024case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2025 2026 2027{ echo "$as_me:$LINENO: checking host system type" >&5 2028echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 2029if test "${ac_cv_host+set}" = set; then 2030 echo $ECHO_N "(cached) $ECHO_C" >&6 2031else 2032 if test "x$host_alias" = x; then 2033 ac_cv_host=$ac_cv_build 2034else 2035 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2036 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2037echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2038 { (exit 1); exit 1; }; } 2039fi 2040 2041fi 2042{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2043echo "${ECHO_T}$ac_cv_host" >&6; } 2044case $ac_cv_host in 2045*-*-*) ;; 2046*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2047echo "$as_me: error: invalid value of canonical host" >&2;} 2048 { (exit 1); exit 1; }; };; 2049esac 2050host=$ac_cv_host 2051ac_save_IFS=$IFS; IFS='-' 2052set x $ac_cv_host 2053shift 2054host_cpu=$1 2055host_vendor=$2 2056shift; shift 2057# Remember, the first character of IFS is used to create $*, 2058# except with old shells: 2059host_os=$* 2060IFS=$ac_save_IFS 2061case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2062 2063 2064{ echo "$as_me:$LINENO: checking target system type" >&5 2065echo $ECHO_N "checking target system type... $ECHO_C" >&6; } 2066if test "${ac_cv_target+set}" = set; then 2067 echo $ECHO_N "(cached) $ECHO_C" >&6 2068else 2069 if test "x$target_alias" = x; then 2070 ac_cv_target=$ac_cv_host 2071else 2072 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2073 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 2074echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} 2075 { (exit 1); exit 1; }; } 2076fi 2077 2078fi 2079{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5 2080echo "${ECHO_T}$ac_cv_target" >&6; } 2081case $ac_cv_target in 2082*-*-*) ;; 2083*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 2084echo "$as_me: error: invalid value of canonical target" >&2;} 2085 { (exit 1); exit 1; }; };; 2086esac 2087target=$ac_cv_target 2088ac_save_IFS=$IFS; IFS='-' 2089set x $ac_cv_target 2090shift 2091target_cpu=$1 2092target_vendor=$2 2093shift; shift 2094# Remember, the first character of IFS is used to create $*, 2095# except with old shells: 2096target_os=$* 2097IFS=$ac_save_IFS 2098case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2099 2100 2101# The aliases save the names the user supplied, while $host etc. 2102# will get canonicalized. 2103test -n "$target_alias" && 2104 test "$program_prefix$program_suffix$program_transform_name" = \ 2105 NONENONEs,x,x, && 2106 program_prefix=${target_alias}- 2107am__api_version="1.7" 2108# Find a good install program. We prefer a C program (faster), 2109# so one script is as good as another. But avoid the broken or 2110# incompatible versions: 2111# SysV /etc/install, /usr/sbin/install 2112# SunOS /usr/etc/install 2113# IRIX /sbin/install 2114# AIX /bin/install 2115# AmigaOS /C/install, which installs bootblocks on floppy discs 2116# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2117# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2118# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2119# OS/2's system install, which has a completely different semantic 2120# ./install, which can be erroneously created by make from ./install.sh. 2121{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2122echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 2123if test -z "$INSTALL"; then 2124if test "${ac_cv_path_install+set}" = set; then 2125 echo $ECHO_N "(cached) $ECHO_C" >&6 2126else 2127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2128for as_dir in $PATH 2129do 2130 IFS=$as_save_IFS 2131 test -z "$as_dir" && as_dir=. 2132 # Account for people who put trailing slashes in PATH elements. 2133case $as_dir/ in 2134 ./ | .// | /cC/* | \ 2135 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2136 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2137 /usr/ucb/* ) ;; 2138 *) 2139 # OSF1 and SCO ODT 3.0 have their own names for install. 2140 # Don't use installbsd from OSF since it installs stuff as root 2141 # by default. 2142 for ac_prog in ginstall scoinst install; do 2143 for ac_exec_ext in '' $ac_executable_extensions; do 2144 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2145 if test $ac_prog = install && 2146 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2147 # AIX install. It has an incompatible calling convention. 2148 : 2149 elif test $ac_prog = install && 2150 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2151 # program-specific install script used by HP pwplus--don't use. 2152 : 2153 else 2154 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2155 break 3 2156 fi 2157 fi 2158 done 2159 done 2160 ;; 2161esac 2162done 2163IFS=$as_save_IFS 2164 2165 2166fi 2167 if test "${ac_cv_path_install+set}" = set; then 2168 INSTALL=$ac_cv_path_install 2169 else 2170 # As a last resort, use the slow shell script. Don't cache a 2171 # value for INSTALL within a source directory, because that will 2172 # break other packages using the cache if that directory is 2173 # removed, or if the value is a relative name. 2174 INSTALL=$ac_install_sh 2175 fi 2176fi 2177{ echo "$as_me:$LINENO: result: $INSTALL" >&5 2178echo "${ECHO_T}$INSTALL" >&6; } 2179 2180# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2181# It thinks the first close brace ends the variable substitution. 2182test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2183 2184test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2185 2186test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2187 2188{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2189echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 2190# Just in case 2191sleep 1 2192echo timestamp > conftest.file 2193# Do `set' in a subshell so we don't clobber the current shell's 2194# arguments. Must try -L first in case configure is actually a 2195# symlink; some systems play weird games with the mod time of symlinks 2196# (eg FreeBSD returns the mod time of the symlink's containing 2197# directory). 2198if ( 2199 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2200 if test "$*" = "X"; then 2201 # -L didn't work. 2202 set X `ls -t $srcdir/configure conftest.file` 2203 fi 2204 rm -f conftest.file 2205 if test "$*" != "X $srcdir/configure conftest.file" \ 2206 && test "$*" != "X conftest.file $srcdir/configure"; then 2207 2208 # If neither matched, then we have a broken ls. This can happen 2209 # if, for instance, CONFIG_SHELL is bash and it inherits a 2210 # broken ls alias from the environment. This has actually 2211 # happened. Such a system could not be considered "sane". 2212 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2213alias in your environment" >&5 2214echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2215alias in your environment" >&2;} 2216 { (exit 1); exit 1; }; } 2217 fi 2218 2219 test "$2" = conftest.file 2220 ) 2221then 2222 # Ok. 2223 : 2224else 2225 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2226Check your system clock" >&5 2227echo "$as_me: error: newly created file is older than distributed files! 2228Check your system clock" >&2;} 2229 { (exit 1); exit 1; }; } 2230fi 2231{ echo "$as_me:$LINENO: result: yes" >&5 2232echo "${ECHO_T}yes" >&6; } 2233test "$program_prefix" != NONE && 2234 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2235# Use a double $ so make ignores it. 2236test "$program_suffix" != NONE && 2237 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2238# Double any \ or $. echo might interpret backslashes. 2239# By default was `s,x,x', remove it if useless. 2240cat <<\_ACEOF >conftest.sed 2241s/[\\$]/&&/g;s/;s,x,x,$// 2242_ACEOF 2243program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2244rm -f conftest.sed 2245 2246 2247# expand $ac_aux_dir to an absolute path 2248am_aux_dir=`cd $ac_aux_dir && pwd` 2249 2250test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2251# Use eval to expand $SHELL 2252if eval "$MISSING --run true"; then 2253 am_missing_run="$MISSING --run " 2254else 2255 am_missing_run= 2256 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2257echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2258fi 2259 2260for ac_prog in gawk mawk nawk awk 2261do 2262 # Extract the first word of "$ac_prog", so it can be a program name with args. 2263set dummy $ac_prog; ac_word=$2 2264{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2265echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2266if test "${ac_cv_prog_AWK+set}" = set; then 2267 echo $ECHO_N "(cached) $ECHO_C" >&6 2268else 2269 if test -n "$AWK"; then 2270 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2271else 2272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2273for as_dir in $PATH 2274do 2275 IFS=$as_save_IFS 2276 test -z "$as_dir" && as_dir=. 2277 for ac_exec_ext in '' $ac_executable_extensions; do 2278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2279 ac_cv_prog_AWK="$ac_prog" 2280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2281 break 2 2282 fi 2283done 2284done 2285IFS=$as_save_IFS 2286 2287fi 2288fi 2289AWK=$ac_cv_prog_AWK 2290if test -n "$AWK"; then 2291 { echo "$as_me:$LINENO: result: $AWK" >&5 2292echo "${ECHO_T}$AWK" >&6; } 2293else 2294 { echo "$as_me:$LINENO: result: no" >&5 2295echo "${ECHO_T}no" >&6; } 2296fi 2297 2298 2299 test -n "$AWK" && break 2300done 2301 2302{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2303echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2304set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2305if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2306 echo $ECHO_N "(cached) $ECHO_C" >&6 2307else 2308 cat >conftest.make <<\_ACEOF 2309SHELL = /bin/sh 2310all: 2311 @echo '@@@%%%=$(MAKE)=@@@%%%' 2312_ACEOF 2313# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2314case `${MAKE-make} -f conftest.make 2>/dev/null` in 2315 *@@@%%%=?*=@@@%%%*) 2316 eval ac_cv_prog_make_${ac_make}_set=yes;; 2317 *) 2318 eval ac_cv_prog_make_${ac_make}_set=no;; 2319esac 2320rm -f conftest.make 2321fi 2322if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2323 { echo "$as_me:$LINENO: result: yes" >&5 2324echo "${ECHO_T}yes" >&6; } 2325 SET_MAKE= 2326else 2327 { echo "$as_me:$LINENO: result: no" >&5 2328echo "${ECHO_T}no" >&6; } 2329 SET_MAKE="MAKE=${MAKE-make}" 2330fi 2331 2332rm -rf .tst 2>/dev/null 2333mkdir .tst 2>/dev/null 2334if test -d .tst; then 2335 am__leading_dot=. 2336else 2337 am__leading_dot=_ 2338fi 2339rmdir .tst 2>/dev/null 2340 2341 # test to see if srcdir already configured 2342if test "`cd $srcdir && pwd`" != "`pwd`" && 2343 test -f $srcdir/config.status; then 2344 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2345echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2346 { (exit 1); exit 1; }; } 2347fi 2348 2349# test whether we have cygpath 2350if test -z "$CYGPATH_W"; then 2351 if (cygpath --version) >/dev/null 2>/dev/null; then 2352 CYGPATH_W='cygpath -w' 2353 else 2354 CYGPATH_W=echo 2355 fi 2356fi 2357 2358 2359# Define the identity of the package. 2360 PACKAGE=cryptofs 2361 VERSION=0.6.0 2362 2363 2364cat >>confdefs.h <<_ACEOF 2365#define PACKAGE "$PACKAGE" 2366_ACEOF 2367 2368 2369cat >>confdefs.h <<_ACEOF 2370#define VERSION "$VERSION" 2371_ACEOF 2372 2373# Some tools Automake needs. 2374 2375ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2376 2377 2378AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2379 2380 2381AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2382 2383 2384AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2385 2386 2387MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2388 2389 2390AMTAR=${AMTAR-"${am_missing_run}tar"} 2391 2392install_sh=${install_sh-"$am_aux_dir/install-sh"} 2393 2394# Installed binaries are usually stripped using `strip' when the user 2395# run `make install-strip'. However `strip' might not be the right 2396# tool to use in cross-compilation environments, therefore Automake 2397# will honor the `STRIP' environment variable to overrule this program. 2398if test "$cross_compiling" != no; then 2399 if test -n "$ac_tool_prefix"; then 2400 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2401set dummy ${ac_tool_prefix}strip; ac_word=$2 2402{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2404if test "${ac_cv_prog_STRIP+set}" = set; then 2405 echo $ECHO_N "(cached) $ECHO_C" >&6 2406else 2407 if test -n "$STRIP"; then 2408 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2409else 2410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2411for as_dir in $PATH 2412do 2413 IFS=$as_save_IFS 2414 test -z "$as_dir" && as_dir=. 2415 for ac_exec_ext in '' $ac_executable_extensions; do 2416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2417 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2419 break 2 2420 fi 2421done 2422done 2423IFS=$as_save_IFS 2424 2425fi 2426fi 2427STRIP=$ac_cv_prog_STRIP 2428if test -n "$STRIP"; then 2429 { echo "$as_me:$LINENO: result: $STRIP" >&5 2430echo "${ECHO_T}$STRIP" >&6; } 2431else 2432 { echo "$as_me:$LINENO: result: no" >&5 2433echo "${ECHO_T}no" >&6; } 2434fi 2435 2436 2437fi 2438if test -z "$ac_cv_prog_STRIP"; then 2439 ac_ct_STRIP=$STRIP 2440 # Extract the first word of "strip", so it can be a program name with args. 2441set dummy strip; ac_word=$2 2442{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2443echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2444if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2445 echo $ECHO_N "(cached) $ECHO_C" >&6 2446else 2447 if test -n "$ac_ct_STRIP"; then 2448 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2449else 2450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2451for as_dir in $PATH 2452do 2453 IFS=$as_save_IFS 2454 test -z "$as_dir" && as_dir=. 2455 for ac_exec_ext in '' $ac_executable_extensions; do 2456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2457 ac_cv_prog_ac_ct_STRIP="strip" 2458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2459 break 2 2460 fi 2461done 2462done 2463IFS=$as_save_IFS 2464 2465fi 2466fi 2467ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2468if test -n "$ac_ct_STRIP"; then 2469 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2470echo "${ECHO_T}$ac_ct_STRIP" >&6; } 2471else 2472 { echo "$as_me:$LINENO: result: no" >&5 2473echo "${ECHO_T}no" >&6; } 2474fi 2475 2476 if test "x$ac_ct_STRIP" = x; then 2477 STRIP=":" 2478 else 2479 case $cross_compiling:$ac_tool_warned in 2480yes:) 2481{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2482whose name does not start with the host triplet. If you think this 2483configuration is useful to you, please write to autoconf@gnu.org." >&5 2484echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2485whose name does not start with the host triplet. If you think this 2486configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2487ac_tool_warned=yes ;; 2488esac 2489 STRIP=$ac_ct_STRIP 2490 fi 2491else 2492 STRIP="$ac_cv_prog_STRIP" 2493fi 2494 2495fi 2496INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 2497 2498# We need awk for the "check" target. The system "awk" is bad on 2499# some platforms. 2500 2501 2502 2503ac_config_headers="$ac_config_headers config.h" 2504 2505 2506ac_ext=c 2507ac_cpp='$CPP $CPPFLAGS' 2508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2510ac_compiler_gnu=$ac_cv_c_compiler_gnu 2511if test -n "$ac_tool_prefix"; then 2512 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2513set dummy ${ac_tool_prefix}gcc; ac_word=$2 2514{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2515echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2516if test "${ac_cv_prog_CC+set}" = set; then 2517 echo $ECHO_N "(cached) $ECHO_C" >&6 2518else 2519 if test -n "$CC"; then 2520 ac_cv_prog_CC="$CC" # Let the user override the test. 2521else 2522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2523for as_dir in $PATH 2524do 2525 IFS=$as_save_IFS 2526 test -z "$as_dir" && as_dir=. 2527 for ac_exec_ext in '' $ac_executable_extensions; do 2528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2529 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2531 break 2 2532 fi 2533done 2534done 2535IFS=$as_save_IFS 2536 2537fi 2538fi 2539CC=$ac_cv_prog_CC 2540if test -n "$CC"; then 2541 { echo "$as_me:$LINENO: result: $CC" >&5 2542echo "${ECHO_T}$CC" >&6; } 2543else 2544 { echo "$as_me:$LINENO: result: no" >&5 2545echo "${ECHO_T}no" >&6; } 2546fi 2547 2548 2549fi 2550if test -z "$ac_cv_prog_CC"; then 2551 ac_ct_CC=$CC 2552 # Extract the first word of "gcc", so it can be a program name with args. 2553set dummy gcc; ac_word=$2 2554{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2555echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2556if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2557 echo $ECHO_N "(cached) $ECHO_C" >&6 2558else 2559 if test -n "$ac_ct_CC"; then 2560 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2561else 2562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2563for as_dir in $PATH 2564do 2565 IFS=$as_save_IFS 2566 test -z "$as_dir" && as_dir=. 2567 for ac_exec_ext in '' $ac_executable_extensions; do 2568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2569 ac_cv_prog_ac_ct_CC="gcc" 2570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2571 break 2 2572 fi 2573done 2574done 2575IFS=$as_save_IFS 2576 2577fi 2578fi 2579ac_ct_CC=$ac_cv_prog_ac_ct_CC 2580if test -n "$ac_ct_CC"; then 2581 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2582echo "${ECHO_T}$ac_ct_CC" >&6; } 2583else 2584 { echo "$as_me:$LINENO: result: no" >&5 2585echo "${ECHO_T}no" >&6; } 2586fi 2587 2588 if test "x$ac_ct_CC" = x; then 2589 CC="" 2590 else 2591 case $cross_compiling:$ac_tool_warned in 2592yes:) 2593{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2594whose name does not start with the host triplet. If you think this 2595configuration is useful to you, please write to autoconf@gnu.org." >&5 2596echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2597whose name does not start with the host triplet. If you think this 2598configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2599ac_tool_warned=yes ;; 2600esac 2601 CC=$ac_ct_CC 2602 fi 2603else 2604 CC="$ac_cv_prog_CC" 2605fi 2606 2607if test -z "$CC"; then 2608 if test -n "$ac_tool_prefix"; then 2609 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2610set dummy ${ac_tool_prefix}cc; ac_word=$2 2611{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2612echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2613if test "${ac_cv_prog_CC+set}" = set; then 2614 echo $ECHO_N "(cached) $ECHO_C" >&6 2615else 2616 if test -n "$CC"; then 2617 ac_cv_prog_CC="$CC" # Let the user override the test. 2618else 2619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2620for as_dir in $PATH 2621do 2622 IFS=$as_save_IFS 2623 test -z "$as_dir" && as_dir=. 2624 for ac_exec_ext in '' $ac_executable_extensions; do 2625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2626 ac_cv_prog_CC="${ac_tool_prefix}cc" 2627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2628 break 2 2629 fi 2630done 2631done 2632IFS=$as_save_IFS 2633 2634fi 2635fi 2636CC=$ac_cv_prog_CC 2637if test -n "$CC"; then 2638 { echo "$as_me:$LINENO: result: $CC" >&5 2639echo "${ECHO_T}$CC" >&6; } 2640else 2641 { echo "$as_me:$LINENO: result: no" >&5 2642echo "${ECHO_T}no" >&6; } 2643fi 2644 2645 2646 fi 2647fi 2648if test -z "$CC"; then 2649 # Extract the first word of "cc", so it can be a program name with args. 2650set dummy cc; ac_word=$2 2651{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2653if test "${ac_cv_prog_CC+set}" = set; then 2654 echo $ECHO_N "(cached) $ECHO_C" >&6 2655else 2656 if test -n "$CC"; then 2657 ac_cv_prog_CC="$CC" # Let the user override the test. 2658else 2659 ac_prog_rejected=no 2660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2661for as_dir in $PATH 2662do 2663 IFS=$as_save_IFS 2664 test -z "$as_dir" && as_dir=. 2665 for ac_exec_ext in '' $ac_executable_extensions; do 2666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2667 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2668 ac_prog_rejected=yes 2669 continue 2670 fi 2671 ac_cv_prog_CC="cc" 2672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2673 break 2 2674 fi 2675done 2676done 2677IFS=$as_save_IFS 2678 2679if test $ac_prog_rejected = yes; then 2680 # We found a bogon in the path, so make sure we never use it. 2681 set dummy $ac_cv_prog_CC 2682 shift 2683 if test $# != 0; then 2684 # We chose a different compiler from the bogus one. 2685 # However, it has the same basename, so the bogon will be chosen 2686 # first if we set CC to just the basename; use the full file name. 2687 shift 2688 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2689 fi 2690fi 2691fi 2692fi 2693CC=$ac_cv_prog_CC 2694if test -n "$CC"; then 2695 { echo "$as_me:$LINENO: result: $CC" >&5 2696echo "${ECHO_T}$CC" >&6; } 2697else 2698 { echo "$as_me:$LINENO: result: no" >&5 2699echo "${ECHO_T}no" >&6; } 2700fi 2701 2702 2703fi 2704if test -z "$CC"; then 2705 if test -n "$ac_tool_prefix"; then 2706 for ac_prog in cl.exe 2707 do 2708 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2709set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2710{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2711echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2712if test "${ac_cv_prog_CC+set}" = set; then 2713 echo $ECHO_N "(cached) $ECHO_C" >&6 2714else 2715 if test -n "$CC"; then 2716 ac_cv_prog_CC="$CC" # Let the user override the test. 2717else 2718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2719for as_dir in $PATH 2720do 2721 IFS=$as_save_IFS 2722 test -z "$as_dir" && as_dir=. 2723 for ac_exec_ext in '' $ac_executable_extensions; do 2724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2725 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2727 break 2 2728 fi 2729done 2730done 2731IFS=$as_save_IFS 2732 2733fi 2734fi 2735CC=$ac_cv_prog_CC 2736if test -n "$CC"; then 2737 { echo "$as_me:$LINENO: result: $CC" >&5 2738echo "${ECHO_T}$CC" >&6; } 2739else 2740 { echo "$as_me:$LINENO: result: no" >&5 2741echo "${ECHO_T}no" >&6; } 2742fi 2743 2744 2745 test -n "$CC" && break 2746 done 2747fi 2748if test -z "$CC"; then 2749 ac_ct_CC=$CC 2750 for ac_prog in cl.exe 2751do 2752 # Extract the first word of "$ac_prog", so it can be a program name with args. 2753set dummy $ac_prog; ac_word=$2 2754{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2755echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2756if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2757 echo $ECHO_N "(cached) $ECHO_C" >&6 2758else 2759 if test -n "$ac_ct_CC"; then 2760 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2761else 2762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2763for as_dir in $PATH 2764do 2765 IFS=$as_save_IFS 2766 test -z "$as_dir" && as_dir=. 2767 for ac_exec_ext in '' $ac_executable_extensions; do 2768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2769 ac_cv_prog_ac_ct_CC="$ac_prog" 2770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2771 break 2 2772 fi 2773done 2774done 2775IFS=$as_save_IFS 2776 2777fi 2778fi 2779ac_ct_CC=$ac_cv_prog_ac_ct_CC 2780if test -n "$ac_ct_CC"; then 2781 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2782echo "${ECHO_T}$ac_ct_CC" >&6; } 2783else 2784 { echo "$as_me:$LINENO: result: no" >&5 2785echo "${ECHO_T}no" >&6; } 2786fi 2787 2788 2789 test -n "$ac_ct_CC" && break 2790done 2791 2792 if test "x$ac_ct_CC" = x; then 2793 CC="" 2794 else 2795 case $cross_compiling:$ac_tool_warned in 2796yes:) 2797{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2798whose name does not start with the host triplet. If you think this 2799configuration is useful to you, please write to autoconf@gnu.org." >&5 2800echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2801whose name does not start with the host triplet. If you think this 2802configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2803ac_tool_warned=yes ;; 2804esac 2805 CC=$ac_ct_CC 2806 fi 2807fi 2808 2809fi 2810 2811 2812test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2813See \`config.log' for more details." >&5 2814echo "$as_me: error: no acceptable C compiler found in \$PATH 2815See \`config.log' for more details." >&2;} 2816 { (exit 1); exit 1; }; } 2817 2818# Provide some information about the compiler. 2819echo "$as_me:$LINENO: checking for C compiler version" >&5 2820ac_compiler=`set X $ac_compile; echo $2` 2821{ (ac_try="$ac_compiler --version >&5" 2822case "(($ac_try" in 2823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2824 *) ac_try_echo=$ac_try;; 2825esac 2826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2827 (eval "$ac_compiler --version >&5") 2>&5 2828 ac_status=$? 2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2830 (exit $ac_status); } 2831{ (ac_try="$ac_compiler -v >&5" 2832case "(($ac_try" in 2833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2834 *) ac_try_echo=$ac_try;; 2835esac 2836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2837 (eval "$ac_compiler -v >&5") 2>&5 2838 ac_status=$? 2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2840 (exit $ac_status); } 2841{ (ac_try="$ac_compiler -V >&5" 2842case "(($ac_try" in 2843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2844 *) ac_try_echo=$ac_try;; 2845esac 2846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2847 (eval "$ac_compiler -V >&5") 2>&5 2848 ac_status=$? 2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2850 (exit $ac_status); } 2851 2852cat >conftest.$ac_ext <<_ACEOF 2853/* confdefs.h. */ 2854_ACEOF 2855cat confdefs.h >>conftest.$ac_ext 2856cat >>conftest.$ac_ext <<_ACEOF 2857/* end confdefs.h. */ 2858 2859int 2860main () 2861{ 2862 2863 ; 2864 return 0; 2865} 2866_ACEOF 2867ac_clean_files_save=$ac_clean_files 2868ac_clean_files="$ac_clean_files a.out a.exe b.out" 2869# Try to create an executable without -o first, disregard a.out. 2870# It will help us diagnose broken compilers, and finding out an intuition 2871# of exeext. 2872{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2873echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2874ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2875# 2876# List of possible output files, starting from the most likely. 2877# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2878# only as a last resort. b.out is created by i960 compilers. 2879ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2880# 2881# The IRIX 6 linker writes into existing files which may not be 2882# executable, retaining their permissions. Remove them first so a 2883# subsequent execution test works. 2884ac_rmfiles= 2885for ac_file in $ac_files 2886do 2887 case $ac_file in 2888 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2889 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2890 esac 2891done 2892rm -f $ac_rmfiles 2893 2894if { (ac_try="$ac_link_default" 2895case "(($ac_try" in 2896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2897 *) ac_try_echo=$ac_try;; 2898esac 2899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2900 (eval "$ac_link_default") 2>&5 2901 ac_status=$? 2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2903 (exit $ac_status); }; then 2904 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2905# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2906# in a Makefile. We should not override ac_cv_exeext if it was cached, 2907# so that the user can short-circuit this test for compilers unknown to 2908# Autoconf. 2909for ac_file in $ac_files '' 2910do 2911 test -f "$ac_file" || continue 2912 case $ac_file in 2913 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2914 ;; 2915 [ab].out ) 2916 # We found the default executable, but exeext='' is most 2917 # certainly right. 2918 break;; 2919 *.* ) 2920 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2921 then :; else 2922 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2923 fi 2924 # We set ac_cv_exeext here because the later test for it is not 2925 # safe: cross compilers may not add the suffix if given an `-o' 2926 # argument, so we may need to know it at that point already. 2927 # Even if this section looks crufty: it has the advantage of 2928 # actually working. 2929 break;; 2930 * ) 2931 break;; 2932 esac 2933done 2934test "$ac_cv_exeext" = no && ac_cv_exeext= 2935 2936else 2937 ac_file='' 2938fi 2939 2940{ echo "$as_me:$LINENO: result: $ac_file" >&5 2941echo "${ECHO_T}$ac_file" >&6; } 2942if test -z "$ac_file"; then 2943 echo "$as_me: failed program was:" >&5 2944sed 's/^/| /' conftest.$ac_ext >&5 2945 2946{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2947See \`config.log' for more details." >&5 2948echo "$as_me: error: C compiler cannot create executables 2949See \`config.log' for more details." >&2;} 2950 { (exit 77); exit 77; }; } 2951fi 2952 2953ac_exeext=$ac_cv_exeext 2954 2955# Check that the compiler produces executables we can run. If not, either 2956# the compiler is broken, or we cross compile. 2957{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2958echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2959# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2960# If not cross compiling, check that we can run a simple program. 2961if test "$cross_compiling" != yes; then 2962 if { ac_try='./$ac_file' 2963 { (case "(($ac_try" in 2964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2965 *) ac_try_echo=$ac_try;; 2966esac 2967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2968 (eval "$ac_try") 2>&5 2969 ac_status=$? 2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2971 (exit $ac_status); }; }; then 2972 cross_compiling=no 2973 else 2974 if test "$cross_compiling" = maybe; then 2975 cross_compiling=yes 2976 else 2977 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2978If you meant to cross compile, use \`--host'. 2979See \`config.log' for more details." >&5 2980echo "$as_me: error: cannot run C compiled programs. 2981If you meant to cross compile, use \`--host'. 2982See \`config.log' for more details." >&2;} 2983 { (exit 1); exit 1; }; } 2984 fi 2985 fi 2986fi 2987{ echo "$as_me:$LINENO: result: yes" >&5 2988echo "${ECHO_T}yes" >&6; } 2989 2990rm -f a.out a.exe conftest$ac_cv_exeext b.out 2991ac_clean_files=$ac_clean_files_save 2992# Check that the compiler produces executables we can run. If not, either 2993# the compiler is broken, or we cross compile. 2994{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2995echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2996{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2997echo "${ECHO_T}$cross_compiling" >&6; } 2998 2999{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 3000echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 3001if { (ac_try="$ac_link" 3002case "(($ac_try" in 3003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3004 *) ac_try_echo=$ac_try;; 3005esac 3006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3007 (eval "$ac_link") 2>&5 3008 ac_status=$? 3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3010 (exit $ac_status); }; then 3011 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3012# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3013# work properly (i.e., refer to `conftest.exe'), while it won't with 3014# `rm'. 3015for ac_file in conftest.exe conftest conftest.*; do 3016 test -f "$ac_file" || continue 3017 case $ac_file in 3018 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3019 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3020 break;; 3021 * ) break;; 3022 esac 3023done 3024else 3025 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3026See \`config.log' for more details." >&5 3027echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3028See \`config.log' for more details." >&2;} 3029 { (exit 1); exit 1; }; } 3030fi 3031 3032rm -f conftest$ac_cv_exeext 3033{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3034echo "${ECHO_T}$ac_cv_exeext" >&6; } 3035 3036rm -f conftest.$ac_ext 3037EXEEXT=$ac_cv_exeext 3038ac_exeext=$EXEEXT 3039{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 3040echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 3041if test "${ac_cv_objext+set}" = set; then 3042 echo $ECHO_N "(cached) $ECHO_C" >&6 3043else 3044 cat >conftest.$ac_ext <<_ACEOF 3045/* confdefs.h. */ 3046_ACEOF 3047cat confdefs.h >>conftest.$ac_ext 3048cat >>conftest.$ac_ext <<_ACEOF 3049/* end confdefs.h. */ 3050 3051int 3052main () 3053{ 3054 3055 ; 3056 return 0; 3057} 3058_ACEOF 3059rm -f conftest.o conftest.obj 3060if { (ac_try="$ac_compile" 3061case "(($ac_try" in 3062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3063 *) ac_try_echo=$ac_try;; 3064esac 3065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3066 (eval "$ac_compile") 2>&5 3067 ac_status=$? 3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3069 (exit $ac_status); }; then 3070 for ac_file in conftest.o conftest.obj conftest.*; do 3071 test -f "$ac_file" || continue; 3072 case $ac_file in 3073 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 3074 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3075 break;; 3076 esac 3077done 3078else 3079 echo "$as_me: failed program was:" >&5 3080sed 's/^/| /' conftest.$ac_ext >&5 3081 3082{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3083See \`config.log' for more details." >&5 3084echo "$as_me: error: cannot compute suffix of object files: cannot compile 3085See \`config.log' for more details." >&2;} 3086 { (exit 1); exit 1; }; } 3087fi 3088 3089rm -f conftest.$ac_cv_objext conftest.$ac_ext 3090fi 3091{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3092echo "${ECHO_T}$ac_cv_objext" >&6; } 3093OBJEXT=$ac_cv_objext 3094ac_objext=$OBJEXT 3095{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3096echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3097if test "${ac_cv_c_compiler_gnu+set}" = set; then 3098 echo $ECHO_N "(cached) $ECHO_C" >&6 3099else 3100 cat >conftest.$ac_ext <<_ACEOF 3101/* confdefs.h. */ 3102_ACEOF 3103cat confdefs.h >>conftest.$ac_ext 3104cat >>conftest.$ac_ext <<_ACEOF 3105/* end confdefs.h. */ 3106 3107int 3108main () 3109{ 3110#ifndef __GNUC__ 3111 choke me 3112#endif 3113 3114 ; 3115 return 0; 3116} 3117_ACEOF 3118rm -f conftest.$ac_objext 3119if { (ac_try="$ac_compile" 3120case "(($ac_try" in 3121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3122 *) ac_try_echo=$ac_try;; 3123esac 3124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3125 (eval "$ac_compile") 2>conftest.er1 3126 ac_status=$? 3127 grep -v '^ *+' conftest.er1 >conftest.err 3128 rm -f conftest.er1 3129 cat conftest.err >&5 3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3131 (exit $ac_status); } && { 3132 test -z "$ac_c_werror_flag" || 3133 test ! -s conftest.err 3134 } && test -s conftest.$ac_objext; then 3135 ac_compiler_gnu=yes 3136else 3137 echo "$as_me: failed program was:" >&5 3138sed 's/^/| /' conftest.$ac_ext >&5 3139 3140 ac_compiler_gnu=no 3141fi 3142 3143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3144ac_cv_c_compiler_gnu=$ac_compiler_gnu 3145 3146fi 3147{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3148echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3149GCC=`test $ac_compiler_gnu = yes && echo yes` 3150ac_test_CFLAGS=${CFLAGS+set} 3151ac_save_CFLAGS=$CFLAGS 3152{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3153echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3154if test "${ac_cv_prog_cc_g+set}" = set; then 3155 echo $ECHO_N "(cached) $ECHO_C" >&6 3156else 3157 ac_save_c_werror_flag=$ac_c_werror_flag 3158 ac_c_werror_flag=yes 3159 ac_cv_prog_cc_g=no 3160 CFLAGS="-g" 3161 cat >conftest.$ac_ext <<_ACEOF 3162/* confdefs.h. */ 3163_ACEOF 3164cat confdefs.h >>conftest.$ac_ext 3165cat >>conftest.$ac_ext <<_ACEOF 3166/* end confdefs.h. */ 3167 3168int 3169main () 3170{ 3171 3172 ; 3173 return 0; 3174} 3175_ACEOF 3176rm -f conftest.$ac_objext 3177if { (ac_try="$ac_compile" 3178case "(($ac_try" in 3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3180 *) ac_try_echo=$ac_try;; 3181esac 3182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3183 (eval "$ac_compile") 2>conftest.er1 3184 ac_status=$? 3185 grep -v '^ *+' conftest.er1 >conftest.err 3186 rm -f conftest.er1 3187 cat conftest.err >&5 3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3189 (exit $ac_status); } && { 3190 test -z "$ac_c_werror_flag" || 3191 test ! -s conftest.err 3192 } && test -s conftest.$ac_objext; then 3193 ac_cv_prog_cc_g=yes 3194else 3195 echo "$as_me: failed program was:" >&5 3196sed 's/^/| /' conftest.$ac_ext >&5 3197 3198 CFLAGS="" 3199 cat >conftest.$ac_ext <<_ACEOF 3200/* confdefs.h. */ 3201_ACEOF 3202cat confdefs.h >>conftest.$ac_ext 3203cat >>conftest.$ac_ext <<_ACEOF 3204/* end confdefs.h. */ 3205 3206int 3207main () 3208{ 3209 3210 ; 3211 return 0; 3212} 3213_ACEOF 3214rm -f conftest.$ac_objext 3215if { (ac_try="$ac_compile" 3216case "(($ac_try" in 3217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3218 *) ac_try_echo=$ac_try;; 3219esac 3220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3221 (eval "$ac_compile") 2>conftest.er1 3222 ac_status=$? 3223 grep -v '^ *+' conftest.er1 >conftest.err 3224 rm -f conftest.er1 3225 cat conftest.err >&5 3226 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3227 (exit $ac_status); } && { 3228 test -z "$ac_c_werror_flag" || 3229 test ! -s conftest.err 3230 } && test -s conftest.$ac_objext; then 3231 : 3232else 3233 echo "$as_me: failed program was:" >&5 3234sed 's/^/| /' conftest.$ac_ext >&5 3235 3236 ac_c_werror_flag=$ac_save_c_werror_flag 3237 CFLAGS="-g" 3238 cat >conftest.$ac_ext <<_ACEOF 3239/* confdefs.h. */ 3240_ACEOF 3241cat confdefs.h >>conftest.$ac_ext 3242cat >>conftest.$ac_ext <<_ACEOF 3243/* end confdefs.h. */ 3244 3245int 3246main () 3247{ 3248 3249 ; 3250 return 0; 3251} 3252_ACEOF 3253rm -f conftest.$ac_objext 3254if { (ac_try="$ac_compile" 3255case "(($ac_try" in 3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3257 *) ac_try_echo=$ac_try;; 3258esac 3259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3260 (eval "$ac_compile") 2>conftest.er1 3261 ac_status=$? 3262 grep -v '^ *+' conftest.er1 >conftest.err 3263 rm -f conftest.er1 3264 cat conftest.err >&5 3265 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3266 (exit $ac_status); } && { 3267 test -z "$ac_c_werror_flag" || 3268 test ! -s conftest.err 3269 } && test -s conftest.$ac_objext; then 3270 ac_cv_prog_cc_g=yes 3271else 3272 echo "$as_me: failed program was:" >&5 3273sed 's/^/| /' conftest.$ac_ext >&5 3274 3275 3276fi 3277 3278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3279fi 3280 3281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3282fi 3283 3284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3285 ac_c_werror_flag=$ac_save_c_werror_flag 3286fi 3287{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3288echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3289if test "$ac_test_CFLAGS" = set; then 3290 CFLAGS=$ac_save_CFLAGS 3291elif test $ac_cv_prog_cc_g = yes; then 3292 if test "$GCC" = yes; then 3293 CFLAGS="-g -O2" 3294 else 3295 CFLAGS="-g" 3296 fi 3297else 3298 if test "$GCC" = yes; then 3299 CFLAGS="-O2" 3300 else 3301 CFLAGS= 3302 fi 3303fi 3304{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3305echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3306if test "${ac_cv_prog_cc_c89+set}" = set; then 3307 echo $ECHO_N "(cached) $ECHO_C" >&6 3308else 3309 ac_cv_prog_cc_c89=no 3310ac_save_CC=$CC 3311cat >conftest.$ac_ext <<_ACEOF 3312/* confdefs.h. */ 3313_ACEOF 3314cat confdefs.h >>conftest.$ac_ext 3315cat >>conftest.$ac_ext <<_ACEOF 3316/* end confdefs.h. */ 3317#include <stdarg.h> 3318#include <stdio.h> 3319#include <sys/types.h> 3320#include <sys/stat.h> 3321/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3322struct buf { int x; }; 3323FILE * (*rcsopen) (struct buf *, struct stat *, int); 3324static char *e (p, i) 3325 char **p; 3326 int i; 3327{ 3328 return p[i]; 3329} 3330static char *f (char * (*g) (char **, int), char **p, ...) 3331{ 3332 char *s; 3333 va_list v; 3334 va_start (v,p); 3335 s = g (p, va_arg (v,int)); 3336 va_end (v); 3337 return s; 3338} 3339 3340/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3341 function prototypes and stuff, but not '\xHH' hex character constants. 3342 These don't provoke an error unfortunately, instead are silently treated 3343 as 'x'. The following induces an error, until -std is added to get 3344 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3345 array size at least. It's necessary to write '\x00'==0 to get something 3346 that's true only with -std. */ 3347int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3348 3349/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3350 inside strings and character constants. */ 3351#define FOO(x) 'x' 3352int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3353 3354int test (int i, double x); 3355struct s1 {int (*f) (int a);}; 3356struct s2 {int (*f) (double a);}; 3357int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3358int argc; 3359char **argv; 3360int 3361main () 3362{ 3363return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3364 ; 3365 return 0; 3366} 3367_ACEOF 3368for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3369 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3370do 3371 CC="$ac_save_CC $ac_arg" 3372 rm -f conftest.$ac_objext 3373if { (ac_try="$ac_compile" 3374case "(($ac_try" in 3375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3376 *) ac_try_echo=$ac_try;; 3377esac 3378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3379 (eval "$ac_compile") 2>conftest.er1 3380 ac_status=$? 3381 grep -v '^ *+' conftest.er1 >conftest.err 3382 rm -f conftest.er1 3383 cat conftest.err >&5 3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3385 (exit $ac_status); } && { 3386 test -z "$ac_c_werror_flag" || 3387 test ! -s conftest.err 3388 } && test -s conftest.$ac_objext; then 3389 ac_cv_prog_cc_c89=$ac_arg 3390else 3391 echo "$as_me: failed program was:" >&5 3392sed 's/^/| /' conftest.$ac_ext >&5 3393 3394 3395fi 3396 3397rm -f core conftest.err conftest.$ac_objext 3398 test "x$ac_cv_prog_cc_c89" != "xno" && break 3399done 3400rm -f conftest.$ac_ext 3401CC=$ac_save_CC 3402 3403fi 3404# AC_CACHE_VAL 3405case "x$ac_cv_prog_cc_c89" in 3406 x) 3407 { echo "$as_me:$LINENO: result: none needed" >&5 3408echo "${ECHO_T}none needed" >&6; } ;; 3409 xno) 3410 { echo "$as_me:$LINENO: result: unsupported" >&5 3411echo "${ECHO_T}unsupported" >&6; } ;; 3412 *) 3413 CC="$CC $ac_cv_prog_cc_c89" 3414 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3415echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3416esac 3417 3418 3419ac_ext=c 3420ac_cpp='$CPP $CPPFLAGS' 3421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3423ac_compiler_gnu=$ac_cv_c_compiler_gnu 3424DEPDIR="${am__leading_dot}deps" 3425 3426ac_config_commands="$ac_config_commands depfiles" 3427 3428 3429am_make=${MAKE-make} 3430cat > confinc << 'END' 3431am__doit: 3432 @echo done 3433.PHONY: am__doit 3434END 3435# If we don't find an include directive, just comment out the code. 3436{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3437echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 3438am__include="#" 3439am__quote= 3440_am_result=none 3441# First try GNU make style include. 3442echo "include confinc" > confmf 3443# We grep out `Entering directory' and `Leaving directory' 3444# messages which can occur if `w' ends up in MAKEFLAGS. 3445# In particular we don't look at `^make:' because GNU make might 3446# be invoked under some other name (usually "gmake"), in which 3447# case it prints its new name instead of `make'. 3448if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3449 am__include=include 3450 am__quote= 3451 _am_result=GNU 3452fi 3453# Now try BSD make style include. 3454if test "$am__include" = "#"; then 3455 echo '.include "confinc"' > confmf 3456 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3457 am__include=.include 3458 am__quote="\"" 3459 _am_result=BSD 3460 fi 3461fi 3462 3463 3464{ echo "$as_me:$LINENO: result: $_am_result" >&5 3465echo "${ECHO_T}$_am_result" >&6; } 3466rm -f confinc confmf 3467 3468# Check whether --enable-dependency-tracking was given. 3469if test "${enable_dependency_tracking+set}" = set; then 3470 enableval=$enable_dependency_tracking; 3471fi 3472 3473if test "x$enable_dependency_tracking" != xno; then 3474 am_depcomp="$ac_aux_dir/depcomp" 3475 AMDEPBACKSLASH='\' 3476fi 3477 3478 3479if test "x$enable_dependency_tracking" != xno; then 3480 AMDEP_TRUE= 3481 AMDEP_FALSE='#' 3482else 3483 AMDEP_TRUE='#' 3484 AMDEP_FALSE= 3485fi 3486 3487 3488 3489 3490depcc="$CC" am_compiler_list= 3491 3492{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3493echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3494if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3495 echo $ECHO_N "(cached) $ECHO_C" >&6 3496else 3497 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3498 # We make a subdir and do the tests there. Otherwise we can end up 3499 # making bogus files that we don't know about and never remove. For 3500 # instance it was reported that on HP-UX the gcc test will end up 3501 # making a dummy file named `D' -- because `-MD' means `put the output 3502 # in D'. 3503 mkdir conftest.dir 3504 # Copy depcomp to subdir because otherwise we won't find it if we're 3505 # using a relative directory. 3506 cp "$am_depcomp" conftest.dir 3507 cd conftest.dir 3508 # We will build objects and dependencies in a subdirectory because 3509 # it helps to detect inapplicable dependency modes. For instance 3510 # both Tru64's cc and ICC support -MD to output dependencies as a 3511 # side effect of compilation, but ICC will put the dependencies in 3512 # the current directory while Tru64 will put them in the object 3513 # directory. 3514 mkdir sub 3515 3516 am_cv_CC_dependencies_compiler_type=none 3517 if test "$am_compiler_list" = ""; then 3518 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3519 fi 3520 for depmode in $am_compiler_list; do 3521 # Setup a source with many dependencies, because some compilers 3522 # like to wrap large dependency lists on column 80 (with \), and 3523 # we should not choose a depcomp mode which is confused by this. 3524 # 3525 # We need to recreate these files for each test, as the compiler may 3526 # overwrite some of them when testing with obscure command lines. 3527 # This happens at least with the AIX C compiler. 3528 : > sub/conftest.c 3529 for i in 1 2 3 4 5 6; do 3530 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3531 : > sub/conftst$i.h 3532 done 3533 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3534 3535 case $depmode in 3536 nosideeffect) 3537 # after this tag, mechanisms are not by side-effect, so they'll 3538 # only be used when explicitly requested 3539 if test "x$enable_dependency_tracking" = xyes; then 3540 continue 3541 else 3542 break 3543 fi 3544 ;; 3545 none) break ;; 3546 esac 3547 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3548 # mode. It turns out that the SunPro C++ compiler does not properly 3549 # handle `-M -o', and we need to detect this. 3550 if depmode=$depmode \ 3551 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3552 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3553 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3554 >/dev/null 2>conftest.err && 3555 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3556 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3557 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3558 # icc doesn't choke on unknown options, it will just issue warnings 3559 # (even with -Werror). So we grep stderr for any message 3560 # that says an option was ignored. 3561 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else 3562 am_cv_CC_dependencies_compiler_type=$depmode 3563 break 3564 fi 3565 fi 3566 done 3567 3568 cd .. 3569 rm -rf conftest.dir 3570else 3571 am_cv_CC_dependencies_compiler_type=none 3572fi 3573 3574fi 3575{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3576echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 3577CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3578 3579 3580 3581if 3582 test "x$enable_dependency_tracking" != xno \ 3583 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3584 am__fastdepCC_TRUE= 3585 am__fastdepCC_FALSE='#' 3586else 3587 am__fastdepCC_TRUE='#' 3588 am__fastdepCC_FALSE= 3589fi 3590 3591 3592# Check whether --enable-shared was given. 3593if test "${enable_shared+set}" = set; then 3594 enableval=$enable_shared; p=${PACKAGE-default} 3595 case $enableval in 3596 yes) enable_shared=yes ;; 3597 no) enable_shared=no ;; 3598 *) 3599 enable_shared=no 3600 # Look at the argument we got. We use all the common list separators. 3601 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3602 for pkg in $enableval; do 3603 IFS="$lt_save_ifs" 3604 if test "X$pkg" = "X$p"; then 3605 enable_shared=yes 3606 fi 3607 done 3608 IFS="$lt_save_ifs" 3609 ;; 3610 esac 3611else 3612 enable_shared=yes 3613fi 3614 3615 3616# Check whether --enable-static was given. 3617if test "${enable_static+set}" = set; then 3618 enableval=$enable_static; p=${PACKAGE-default} 3619 case $enableval in 3620 yes) enable_static=yes ;; 3621 no) enable_static=no ;; 3622 *) 3623 enable_static=no 3624 # Look at the argument we got. We use all the common list separators. 3625 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3626 for pkg in $enableval; do 3627 IFS="$lt_save_ifs" 3628 if test "X$pkg" = "X$p"; then 3629 enable_static=yes 3630 fi 3631 done 3632 IFS="$lt_save_ifs" 3633 ;; 3634 esac 3635else 3636 enable_static=yes 3637fi 3638 3639 3640# Check whether --enable-fast-install was given. 3641if test "${enable_fast_install+set}" = set; then 3642 enableval=$enable_fast_install; p=${PACKAGE-default} 3643 case $enableval in 3644 yes) enable_fast_install=yes ;; 3645 no) enable_fast_install=no ;; 3646 *) 3647 enable_fast_install=no 3648 # Look at the argument we got. We use all the common list separators. 3649 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3650 for pkg in $enableval; do 3651 IFS="$lt_save_ifs" 3652 if test "X$pkg" = "X$p"; then 3653 enable_fast_install=yes 3654 fi 3655 done 3656 IFS="$lt_save_ifs" 3657 ;; 3658 esac 3659else 3660 enable_fast_install=yes 3661fi 3662 3663 3664{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3665echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } 3666if test "${lt_cv_path_SED+set}" = set; then 3667 echo $ECHO_N "(cached) $ECHO_C" >&6 3668else 3669 # Loop through the user's path and test for sed and gsed. 3670# Then use that list of sed's as ones to test for truncation. 3671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3672for as_dir in $PATH 3673do 3674 IFS=$as_save_IFS 3675 test -z "$as_dir" && as_dir=. 3676 for lt_ac_prog in sed gsed; do 3677 for ac_exec_ext in '' $ac_executable_extensions; do 3678 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 3679 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3680 fi 3681 done 3682 done 3683done 3684lt_ac_max=0 3685lt_ac_count=0 3686# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3687# along with /bin/sed that truncates output. 3688for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3689 test ! -f $lt_ac_sed && continue 3690 cat /dev/null > conftest.in 3691 lt_ac_count=0 3692 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3693 # Check for GNU sed and select it if it is found. 3694 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3695 lt_cv_path_SED=$lt_ac_sed 3696 break 3697 fi 3698 while true; do 3699 cat conftest.in conftest.in >conftest.tmp 3700 mv conftest.tmp conftest.in 3701 cp conftest.in conftest.nl 3702 echo >>conftest.nl 3703 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3704 cmp -s conftest.out conftest.nl || break 3705 # 10000 chars as input seems more than enough 3706 test $lt_ac_count -gt 10 && break 3707 lt_ac_count=`expr $lt_ac_count + 1` 3708 if test $lt_ac_count -gt $lt_ac_max; then 3709 lt_ac_max=$lt_ac_count 3710 lt_cv_path_SED=$lt_ac_sed 3711 fi 3712 done 3713done 3714 3715fi 3716 3717SED=$lt_cv_path_SED 3718{ echo "$as_me:$LINENO: result: $SED" >&5 3719echo "${ECHO_T}$SED" >&6; } 3720 3721{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3722echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3723if test "${ac_cv_path_GREP+set}" = set; then 3724 echo $ECHO_N "(cached) $ECHO_C" >&6 3725else 3726 # Extract the first word of "grep ggrep" to use in msg output 3727if test -z "$GREP"; then 3728set dummy grep ggrep; ac_prog_name=$2 3729if test "${ac_cv_path_GREP+set}" = set; then 3730 echo $ECHO_N "(cached) $ECHO_C" >&6 3731else 3732 ac_path_GREP_found=false 3733# Loop through the user's path and test for each of PROGNAME-LIST 3734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3735for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3736do 3737 IFS=$as_save_IFS 3738 test -z "$as_dir" && as_dir=. 3739 for ac_prog in grep ggrep; do 3740 for ac_exec_ext in '' $ac_executable_extensions; do 3741 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3742 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3743 # Check for GNU ac_path_GREP and select it if it is found. 3744 # Check for GNU $ac_path_GREP 3745case `"$ac_path_GREP" --version 2>&1` in 3746*GNU*) 3747 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3748*) 3749 ac_count=0 3750 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3751 while : 3752 do 3753 cat "conftest.in" "conftest.in" >"conftest.tmp" 3754 mv "conftest.tmp" "conftest.in" 3755 cp "conftest.in" "conftest.nl" 3756 echo 'GREP' >> "conftest.nl" 3757 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3758 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3759 ac_count=`expr $ac_count + 1` 3760 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3761 # Best one so far, save it but keep looking for a better one 3762 ac_cv_path_GREP="$ac_path_GREP" 3763 ac_path_GREP_max=$ac_count 3764 fi 3765 # 10*(2^10) chars as input seems more than enough 3766 test $ac_count -gt 10 && break 3767 done 3768 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3769esac 3770 3771 3772 $ac_path_GREP_found && break 3 3773 done 3774done 3775 3776done 3777IFS=$as_save_IFS 3778 3779 3780fi 3781 3782GREP="$ac_cv_path_GREP" 3783if test -z "$GREP"; then 3784 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3785echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3786 { (exit 1); exit 1; }; } 3787fi 3788 3789else 3790 ac_cv_path_GREP=$GREP 3791fi 3792 3793 3794fi 3795{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3796echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3797 GREP="$ac_cv_path_GREP" 3798 3799 3800{ echo "$as_me:$LINENO: checking for egrep" >&5 3801echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3802if test "${ac_cv_path_EGREP+set}" = set; then 3803 echo $ECHO_N "(cached) $ECHO_C" >&6 3804else 3805 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3806 then ac_cv_path_EGREP="$GREP -E" 3807 else 3808 # Extract the first word of "egrep" to use in msg output 3809if test -z "$EGREP"; then 3810set dummy egrep; ac_prog_name=$2 3811if test "${ac_cv_path_EGREP+set}" = set; then 3812 echo $ECHO_N "(cached) $ECHO_C" >&6 3813else 3814 ac_path_EGREP_found=false 3815# Loop through the user's path and test for each of PROGNAME-LIST 3816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3817for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3818do 3819 IFS=$as_save_IFS 3820 test -z "$as_dir" && as_dir=. 3821 for ac_prog in egrep; do 3822 for ac_exec_ext in '' $ac_executable_extensions; do 3823 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3824 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3825 # Check for GNU ac_path_EGREP and select it if it is found. 3826 # Check for GNU $ac_path_EGREP 3827case `"$ac_path_EGREP" --version 2>&1` in 3828*GNU*) 3829 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3830*) 3831 ac_count=0 3832 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3833 while : 3834 do 3835 cat "conftest.in" "conftest.in" >"conftest.tmp" 3836 mv "conftest.tmp" "conftest.in" 3837 cp "conftest.in" "conftest.nl" 3838 echo 'EGREP' >> "conftest.nl" 3839 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3840 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3841 ac_count=`expr $ac_count + 1` 3842 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3843 # Best one so far, save it but keep looking for a better one 3844 ac_cv_path_EGREP="$ac_path_EGREP" 3845 ac_path_EGREP_max=$ac_count 3846 fi 3847 # 10*(2^10) chars as input seems more than enough 3848 test $ac_count -gt 10 && break 3849 done 3850 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3851esac 3852 3853 3854 $ac_path_EGREP_found && break 3 3855 done 3856done 3857 3858done 3859IFS=$as_save_IFS 3860 3861 3862fi 3863 3864EGREP="$ac_cv_path_EGREP" 3865if test -z "$EGREP"; then 3866 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3867echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3868 { (exit 1); exit 1; }; } 3869fi 3870 3871else 3872 ac_cv_path_EGREP=$EGREP 3873fi 3874 3875 3876 fi 3877fi 3878{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3879echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3880 EGREP="$ac_cv_path_EGREP" 3881 3882 3883 3884# Check whether --with-gnu-ld was given. 3885if test "${with_gnu_ld+set}" = set; then 3886 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 3887else 3888 with_gnu_ld=no 3889fi 3890 3891ac_prog=ld 3892if test "$GCC" = yes; then 3893 # Check if gcc -print-prog-name=ld gives a path. 3894 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3895echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 3896 case $host in 3897 *-*-mingw*) 3898 # gcc leaves a trailing carriage return which upsets mingw 3899 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3900 *) 3901 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3902 esac 3903 case $ac_prog in 3904 # Accept absolute paths. 3905 [\\/]* | ?:[\\/]*) 3906 re_direlt='/[^/][^/]*/\.\./' 3907 # Canonicalize the pathname of ld 3908 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 3909 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3910 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 3911 done 3912 test -z "$LD" && LD="$ac_prog" 3913 ;; 3914 "") 3915 # If it fails, then pretend we aren't using GCC. 3916 ac_prog=ld 3917 ;; 3918 *) 3919 # If it is relative, then search for the first ld in PATH. 3920 with_gnu_ld=unknown 3921 ;; 3922 esac 3923elif test "$with_gnu_ld" = yes; then 3924 { echo "$as_me:$LINENO: checking for GNU ld" >&5 3925echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 3926else 3927 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 3928echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 3929fi 3930if test "${lt_cv_path_LD+set}" = set; then 3931 echo $ECHO_N "(cached) $ECHO_C" >&6 3932else 3933 if test -z "$LD"; then 3934 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3935 for ac_dir in $PATH; do 3936 IFS="$lt_save_ifs" 3937 test -z "$ac_dir" && ac_dir=. 3938 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3939 lt_cv_path_LD="$ac_dir/$ac_prog" 3940 # Check to see if the program is GNU ld. I'd rather use --version, 3941 # but apparently some variants of GNU ld only accept -v. 3942 # Break only if it was the GNU/non-GNU ld that we prefer. 3943 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3944 *GNU* | *'with BFD'*) 3945 test "$with_gnu_ld" != no && break 3946 ;; 3947 *) 3948 test "$with_gnu_ld" != yes && break 3949 ;; 3950 esac 3951 fi 3952 done 3953 IFS="$lt_save_ifs" 3954else 3955 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3956fi 3957fi 3958 3959LD="$lt_cv_path_LD" 3960if test -n "$LD"; then 3961 { echo "$as_me:$LINENO: result: $LD" >&5 3962echo "${ECHO_T}$LD" >&6; } 3963else 3964 { echo "$as_me:$LINENO: result: no" >&5 3965echo "${ECHO_T}no" >&6; } 3966fi 3967test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 3968echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 3969 { (exit 1); exit 1; }; } 3970{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 3971echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 3972if test "${lt_cv_prog_gnu_ld+set}" = set; then 3973 echo $ECHO_N "(cached) $ECHO_C" >&6 3974else 3975 # I'd rather use --version here, but apparently some GNU lds only accept -v. 3976case `$LD -v 2>&1 </dev/null` in 3977*GNU* | *'with BFD'*) 3978 lt_cv_prog_gnu_ld=yes 3979 ;; 3980*) 3981 lt_cv_prog_gnu_ld=no 3982 ;; 3983esac 3984fi 3985{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 3986echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 3987with_gnu_ld=$lt_cv_prog_gnu_ld 3988 3989 3990{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 3991echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } 3992if test "${lt_cv_ld_reload_flag+set}" = set; then 3993 echo $ECHO_N "(cached) $ECHO_C" >&6 3994else 3995 lt_cv_ld_reload_flag='-r' 3996fi 3997{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 3998echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } 3999reload_flag=$lt_cv_ld_reload_flag 4000case $reload_flag in 4001"" | " "*) ;; 4002*) reload_flag=" $reload_flag" ;; 4003esac 4004reload_cmds='$LD$reload_flag -o $output$reload_objs' 4005case $host_os in 4006 darwin*) 4007 if test "$GCC" = yes; then 4008 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4009 else 4010 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4011 fi 4012 ;; 4013esac 4014 4015{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4016echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 4017if test "${lt_cv_path_NM+set}" = set; then 4018 echo $ECHO_N "(cached) $ECHO_C" >&6 4019else 4020 if test -n "$NM"; then 4021 # Let the user override the test. 4022 lt_cv_path_NM="$NM" 4023else 4024 lt_nm_to_check="${ac_tool_prefix}nm" 4025 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4026 lt_nm_to_check="$lt_nm_to_check nm" 4027 fi 4028 for lt_tmp_nm in $lt_nm_to_check; do 4029 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4030 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4031 IFS="$lt_save_ifs" 4032 test -z "$ac_dir" && ac_dir=. 4033 tmp_nm="$ac_dir/$lt_tmp_nm" 4034 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4035 # Check to see if the nm accepts a BSD-compat flag. 4036 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4037 # nm: unknown option "B" ignored 4038 # Tru64's nm complains that /dev/null is an invalid object file 4039 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4040 */dev/null* | *'Invalid file or object type'*) 4041 lt_cv_path_NM="$tmp_nm -B" 4042 break 4043 ;; 4044 *) 4045 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4046 */dev/null*) 4047 lt_cv_path_NM="$tmp_nm -p" 4048 break 4049 ;; 4050 *) 4051 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4052 continue # so that we can try to find one that supports BSD flags 4053 ;; 4054 esac 4055 ;; 4056 esac 4057 fi 4058 done 4059 IFS="$lt_save_ifs" 4060 done 4061 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4062fi 4063fi 4064{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4065echo "${ECHO_T}$lt_cv_path_NM" >&6; } 4066NM="$lt_cv_path_NM" 4067 4068{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 4069echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 4070LN_S=$as_ln_s 4071if test "$LN_S" = "ln -s"; then 4072 { echo "$as_me:$LINENO: result: yes" >&5 4073echo "${ECHO_T}yes" >&6; } 4074else 4075 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4076echo "${ECHO_T}no, using $LN_S" >&6; } 4077fi 4078 4079{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 4080echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } 4081if test "${lt_cv_deplibs_check_method+set}" = set; then 4082 echo $ECHO_N "(cached) $ECHO_C" >&6 4083else 4084 lt_cv_file_magic_cmd='$MAGIC_CMD' 4085lt_cv_file_magic_test_file= 4086lt_cv_deplibs_check_method='unknown' 4087# Need to set the preceding variable on all platforms that support 4088# interlibrary dependencies. 4089# 'none' -- dependencies not supported. 4090# `unknown' -- same as none, but documents that we really don't know. 4091# 'pass_all' -- all dependencies passed with no checks. 4092# 'test_compile' -- check by making test program. 4093# 'file_magic [[regex]]' -- check by looking for files in library path 4094# which responds to the $file_magic_cmd with a given extended regex. 4095# If you have `file' or equivalent on your system and you're not sure 4096# whether `pass_all' will *always* work, you probably want this one. 4097 4098case $host_os in 4099aix4* | aix5*) 4100 lt_cv_deplibs_check_method=pass_all 4101 ;; 4102 4103beos*) 4104 lt_cv_deplibs_check_method=pass_all 4105 ;; 4106 4107bsdi[45]*) 4108 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4109 lt_cv_file_magic_cmd='/usr/bin/file -L' 4110 lt_cv_file_magic_test_file=/shlib/libc.so 4111 ;; 4112 4113cygwin*) 4114 # func_win32_libid is a shell function defined in ltmain.sh 4115 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4116 lt_cv_file_magic_cmd='func_win32_libid' 4117 ;; 4118 4119mingw* | pw32*) 4120 # Base MSYS/MinGW do not provide the 'file' command needed by 4121 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 4122 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4123 lt_cv_file_magic_cmd='$OBJDUMP -f' 4124 ;; 4125 4126darwin* | rhapsody*) 4127 lt_cv_deplibs_check_method=pass_all 4128 ;; 4129 4130freebsd* | dragonfly*) 4131 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4132 case $host_cpu in 4133 i*86 ) 4134 # Not sure whether the presence of OpenBSD here was a mistake. 4135 # Let's accept both of them until this is cleared up. 4136 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4137 lt_cv_file_magic_cmd=/usr/bin/file 4138 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4139 ;; 4140 esac 4141 else 4142 lt_cv_deplibs_check_method=pass_all 4143 fi 4144 ;; 4145 4146gnu*) 4147 lt_cv_deplibs_check_method=pass_all 4148 ;; 4149 4150hpux10.20* | hpux11*) 4151 lt_cv_file_magic_cmd=/usr/bin/file 4152 case $host_cpu in 4153 ia64*) 4154 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4155 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4156 ;; 4157 hppa*64*) 4158 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]' 4159 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4160 ;; 4161 *) 4162 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4163 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4164 ;; 4165 esac 4166 ;; 4167 4168interix3*) 4169 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4170 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4171 ;; 4172 4173irix5* | irix6* | nonstopux*) 4174 case $LD in 4175 *-32|*"-32 ") libmagic=32-bit;; 4176 *-n32|*"-n32 ") libmagic=N32;; 4177 *-64|*"-64 ") libmagic=64-bit;; 4178 *) libmagic=never-match;; 4179 esac 4180 lt_cv_deplibs_check_method=pass_all 4181 ;; 4182 4183# This must be Linux ELF. 4184linux* | k*bsd*-gnu) 4185 lt_cv_deplibs_check_method=pass_all 4186 ;; 4187 4188netbsd* | netbsdelf*-gnu) 4189 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4190 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4191 else 4192 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4193 fi 4194 ;; 4195 4196newos6*) 4197 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4198 lt_cv_file_magic_cmd=/usr/bin/file 4199 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4200 ;; 4201 4202nto-qnx*) 4203 lt_cv_deplibs_check_method=unknown 4204 ;; 4205 4206openbsd*) 4207 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4208 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4209 else 4210 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4211 fi 4212 ;; 4213 4214osf3* | osf4* | osf5*) 4215 lt_cv_deplibs_check_method=pass_all 4216 ;; 4217 4218solaris*) 4219 lt_cv_deplibs_check_method=pass_all 4220 ;; 4221 4222sysv4 | sysv4.3*) 4223 case $host_vendor in 4224 motorola) 4225 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]' 4226 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4227 ;; 4228 ncr) 4229 lt_cv_deplibs_check_method=pass_all 4230 ;; 4231 sequent) 4232 lt_cv_file_magic_cmd='/bin/file' 4233 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4234 ;; 4235 sni) 4236 lt_cv_file_magic_cmd='/bin/file' 4237 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4238 lt_cv_file_magic_test_file=/lib/libc.so 4239 ;; 4240 siemens) 4241 lt_cv_deplibs_check_method=pass_all 4242 ;; 4243 pc) 4244 lt_cv_deplibs_check_method=pass_all 4245 ;; 4246 esac 4247 ;; 4248 4249sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4250 lt_cv_deplibs_check_method=pass_all 4251 ;; 4252esac 4253 4254fi 4255{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4256echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 4257file_magic_cmd=$lt_cv_file_magic_cmd 4258deplibs_check_method=$lt_cv_deplibs_check_method 4259test -z "$deplibs_check_method" && deplibs_check_method=unknown 4260 4261 4262 4263 4264# If no C compiler was specified, use CC. 4265LTCC=${LTCC-"$CC"} 4266 4267# If no C compiler flags were specified, use CFLAGS. 4268LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4269 4270# Allow CC to be a program name with arguments. 4271compiler=$CC 4272 4273 4274# Check whether --enable-libtool-lock was given. 4275if test "${enable_libtool_lock+set}" = set; then 4276 enableval=$enable_libtool_lock; 4277fi 4278 4279test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4280 4281# Some flags need to be propagated to the compiler or linker for good 4282# libtool support. 4283case $host in 4284ia64-*-hpux*) 4285 # Find out which ABI we are using. 4286 echo 'int i;' > conftest.$ac_ext 4287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4288 (eval $ac_compile) 2>&5 4289 ac_status=$? 4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4291 (exit $ac_status); }; then 4292 case `/usr/bin/file conftest.$ac_objext` in 4293 *ELF-32*) 4294 HPUX_IA64_MODE="32" 4295 ;; 4296 *ELF-64*) 4297 HPUX_IA64_MODE="64" 4298 ;; 4299 esac 4300 fi 4301 rm -rf conftest* 4302 ;; 4303*-*-irix6*) 4304 # Find out which ABI we are using. 4305 echo '#line 4305 "configure"' > conftest.$ac_ext 4306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4307 (eval $ac_compile) 2>&5 4308 ac_status=$? 4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4310 (exit $ac_status); }; then 4311 if test "$lt_cv_prog_gnu_ld" = yes; then 4312 case `/usr/bin/file conftest.$ac_objext` in 4313 *32-bit*) 4314 LD="${LD-ld} -melf32bsmip" 4315 ;; 4316 *N32*) 4317 LD="${LD-ld} -melf32bmipn32" 4318 ;; 4319 *64-bit*) 4320 LD="${LD-ld} -melf64bmip" 4321 ;; 4322 esac 4323 else 4324 case `/usr/bin/file conftest.$ac_objext` in 4325 *32-bit*) 4326 LD="${LD-ld} -32" 4327 ;; 4328 *N32*) 4329 LD="${LD-ld} -n32" 4330 ;; 4331 *64-bit*) 4332 LD="${LD-ld} -64" 4333 ;; 4334 esac 4335 fi 4336 fi 4337 rm -rf conftest* 4338 ;; 4339 4340x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 4341 # Find out which ABI we are using. 4342 echo 'int i;' > conftest.$ac_ext 4343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4344 (eval $ac_compile) 2>&5 4345 ac_status=$? 4346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4347 (exit $ac_status); }; then 4348 case `/usr/bin/file conftest.o` in 4349 *32-bit*) 4350 case $host in 4351 x86_64-*linux*) 4352 LD="${LD-ld} -m elf_i386" 4353 ;; 4354 ppc64-*linux*|powerpc64-*linux*) 4355 LD="${LD-ld} -m elf32ppclinux" 4356 ;; 4357 s390x-*linux*) 4358 LD="${LD-ld} -m elf_s390" 4359 ;; 4360 sparc64-*linux*) 4361 LD="${LD-ld} -m elf32_sparc" 4362 ;; 4363 esac 4364 ;; 4365 *64-bit*) 4366 case $host in 4367 x86_64-*linux*) 4368 LD="${LD-ld} -m elf_x86_64" 4369 ;; 4370 ppc*-*linux*|powerpc*-*linux*) 4371 LD="${LD-ld} -m elf64ppc" 4372 ;; 4373 s390*-*linux*) 4374 LD="${LD-ld} -m elf64_s390" 4375 ;; 4376 sparc*-*linux*) 4377 LD="${LD-ld} -m elf64_sparc" 4378 ;; 4379 esac 4380 ;; 4381 esac 4382 fi 4383 rm -rf conftest* 4384 ;; 4385 4386*-*-sco3.2v5*) 4387 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4388 SAVE_CFLAGS="$CFLAGS" 4389 CFLAGS="$CFLAGS -belf" 4390 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4391echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } 4392if test "${lt_cv_cc_needs_belf+set}" = set; then 4393 echo $ECHO_N "(cached) $ECHO_C" >&6 4394else 4395 ac_ext=c 4396ac_cpp='$CPP $CPPFLAGS' 4397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4399ac_compiler_gnu=$ac_cv_c_compiler_gnu 4400 4401 cat >conftest.$ac_ext <<_ACEOF 4402/* confdefs.h. */ 4403_ACEOF 4404cat confdefs.h >>conftest.$ac_ext 4405cat >>conftest.$ac_ext <<_ACEOF 4406/* end confdefs.h. */ 4407 4408int 4409main () 4410{ 4411 4412 ; 4413 return 0; 4414} 4415_ACEOF 4416rm -f conftest.$ac_objext conftest$ac_exeext 4417if { (ac_try="$ac_link" 4418case "(($ac_try" in 4419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4420 *) ac_try_echo=$ac_try;; 4421esac 4422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4423 (eval "$ac_link") 2>conftest.er1 4424 ac_status=$? 4425 grep -v '^ *+' conftest.er1 >conftest.err 4426 rm -f conftest.er1 4427 cat conftest.err >&5 4428 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4429 (exit $ac_status); } && { 4430 test -z "$ac_c_werror_flag" || 4431 test ! -s conftest.err 4432 } && test -s conftest$ac_exeext && 4433 $as_test_x conftest$ac_exeext; then 4434 lt_cv_cc_needs_belf=yes 4435else 4436 echo "$as_me: failed program was:" >&5 4437sed 's/^/| /' conftest.$ac_ext >&5 4438 4439 lt_cv_cc_needs_belf=no 4440fi 4441 4442rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4443 conftest$ac_exeext conftest.$ac_ext 4444 ac_ext=c 4445ac_cpp='$CPP $CPPFLAGS' 4446ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4447ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4448ac_compiler_gnu=$ac_cv_c_compiler_gnu 4449 4450fi 4451{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4452echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } 4453 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4454 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4455 CFLAGS="$SAVE_CFLAGS" 4456 fi 4457 ;; 4458sparc*-*solaris*) 4459 # Find out which ABI we are using. 4460 echo 'int i;' > conftest.$ac_ext 4461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4462 (eval $ac_compile) 2>&5 4463 ac_status=$? 4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4465 (exit $ac_status); }; then 4466 case `/usr/bin/file conftest.o` in 4467 *64-bit*) 4468 case $lt_cv_prog_gnu_ld in 4469 yes*) LD="${LD-ld} -m elf64_sparc" ;; 4470 *) LD="${LD-ld} -64" ;; 4471 esac 4472 ;; 4473 esac 4474 fi 4475 rm -rf conftest* 4476 ;; 4477 4478 4479esac 4480 4481need_locks="$enable_libtool_lock" 4482 4483 4484ac_ext=c 4485ac_cpp='$CPP $CPPFLAGS' 4486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4488ac_compiler_gnu=$ac_cv_c_compiler_gnu 4489{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4490echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 4491# On Suns, sometimes $CPP names a directory. 4492if test -n "$CPP" && test -d "$CPP"; then 4493 CPP= 4494fi 4495if test -z "$CPP"; then 4496 if test "${ac_cv_prog_CPP+set}" = set; then 4497 echo $ECHO_N "(cached) $ECHO_C" >&6 4498else 4499 # Double quotes because CPP needs to be expanded 4500 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4501 do 4502 ac_preproc_ok=false 4503for ac_c_preproc_warn_flag in '' yes 4504do 4505 # Use a header file that comes with gcc, so configuring glibc 4506 # with a fresh cross-compiler works. 4507 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4508 # <limits.h> exists even on freestanding compilers. 4509 # On the NeXT, cc -E runs the code through the compiler's parser, 4510 # not just through cpp. "Syntax error" is here to catch this case. 4511 cat >conftest.$ac_ext <<_ACEOF 4512/* confdefs.h. */ 4513_ACEOF 4514cat confdefs.h >>conftest.$ac_ext 4515cat >>conftest.$ac_ext <<_ACEOF 4516/* end confdefs.h. */ 4517#ifdef __STDC__ 4518# include <limits.h> 4519#else 4520# include <assert.h> 4521#endif 4522 Syntax error 4523_ACEOF 4524if { (ac_try="$ac_cpp conftest.$ac_ext" 4525case "(($ac_try" in 4526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4527 *) ac_try_echo=$ac_try;; 4528esac 4529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4530 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4531 ac_status=$? 4532 grep -v '^ *+' conftest.er1 >conftest.err 4533 rm -f conftest.er1 4534 cat conftest.err >&5 4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4536 (exit $ac_status); } >/dev/null && { 4537 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4538 test ! -s conftest.err 4539 }; then 4540 : 4541else 4542 echo "$as_me: failed program was:" >&5 4543sed 's/^/| /' conftest.$ac_ext >&5 4544 4545 # Broken: fails on valid input. 4546continue 4547fi 4548 4549rm -f conftest.err conftest.$ac_ext 4550 4551 # OK, works on sane cases. Now check whether nonexistent headers 4552 # can be detected and how. 4553 cat >conftest.$ac_ext <<_ACEOF 4554/* confdefs.h. */ 4555_ACEOF 4556cat confdefs.h >>conftest.$ac_ext 4557cat >>conftest.$ac_ext <<_ACEOF 4558/* end confdefs.h. */ 4559#include <ac_nonexistent.h> 4560_ACEOF 4561if { (ac_try="$ac_cpp conftest.$ac_ext" 4562case "(($ac_try" in 4563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4564 *) ac_try_echo=$ac_try;; 4565esac 4566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4567 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4568 ac_status=$? 4569 grep -v '^ *+' conftest.er1 >conftest.err 4570 rm -f conftest.er1 4571 cat conftest.err >&5 4572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4573 (exit $ac_status); } >/dev/null && { 4574 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4575 test ! -s conftest.err 4576 }; then 4577 # Broken: success on invalid input. 4578continue 4579else 4580 echo "$as_me: failed program was:" >&5 4581sed 's/^/| /' conftest.$ac_ext >&5 4582 4583 # Passes both tests. 4584ac_preproc_ok=: 4585break 4586fi 4587 4588rm -f conftest.err conftest.$ac_ext 4589 4590done 4591# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4592rm -f conftest.err conftest.$ac_ext 4593if $ac_preproc_ok; then 4594 break 4595fi 4596 4597 done 4598 ac_cv_prog_CPP=$CPP 4599 4600fi 4601 CPP=$ac_cv_prog_CPP 4602else 4603 ac_cv_prog_CPP=$CPP 4604fi 4605{ echo "$as_me:$LINENO: result: $CPP" >&5 4606echo "${ECHO_T}$CPP" >&6; } 4607ac_preproc_ok=false 4608for ac_c_preproc_warn_flag in '' yes 4609do 4610 # Use a header file that comes with gcc, so configuring glibc 4611 # with a fresh cross-compiler works. 4612 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4613 # <limits.h> exists even on freestanding compilers. 4614 # On the NeXT, cc -E runs the code through the compiler's parser, 4615 # not just through cpp. "Syntax error" is here to catch this case. 4616 cat >conftest.$ac_ext <<_ACEOF 4617/* confdefs.h. */ 4618_ACEOF 4619cat confdefs.h >>conftest.$ac_ext 4620cat >>conftest.$ac_ext <<_ACEOF 4621/* end confdefs.h. */ 4622#ifdef __STDC__ 4623# include <limits.h> 4624#else 4625# include <assert.h> 4626#endif 4627 Syntax error 4628_ACEOF 4629if { (ac_try="$ac_cpp conftest.$ac_ext" 4630case "(($ac_try" in 4631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4632 *) ac_try_echo=$ac_try;; 4633esac 4634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4635 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4636 ac_status=$? 4637 grep -v '^ *+' conftest.er1 >conftest.err 4638 rm -f conftest.er1 4639 cat conftest.err >&5 4640 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4641 (exit $ac_status); } >/dev/null && { 4642 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4643 test ! -s conftest.err 4644 }; then 4645 : 4646else 4647 echo "$as_me: failed program was:" >&5 4648sed 's/^/| /' conftest.$ac_ext >&5 4649 4650 # Broken: fails on valid input. 4651continue 4652fi 4653 4654rm -f conftest.err conftest.$ac_ext 4655 4656 # OK, works on sane cases. Now check whether nonexistent headers 4657 # can be detected and how. 4658 cat >conftest.$ac_ext <<_ACEOF 4659/* confdefs.h. */ 4660_ACEOF 4661cat confdefs.h >>conftest.$ac_ext 4662cat >>conftest.$ac_ext <<_ACEOF 4663/* end confdefs.h. */ 4664#include <ac_nonexistent.h> 4665_ACEOF 4666if { (ac_try="$ac_cpp conftest.$ac_ext" 4667case "(($ac_try" in 4668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4669 *) ac_try_echo=$ac_try;; 4670esac 4671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4673 ac_status=$? 4674 grep -v '^ *+' conftest.er1 >conftest.err 4675 rm -f conftest.er1 4676 cat conftest.err >&5 4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4678 (exit $ac_status); } >/dev/null && { 4679 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4680 test ! -s conftest.err 4681 }; then 4682 # Broken: success on invalid input. 4683continue 4684else 4685 echo "$as_me: failed program was:" >&5 4686sed 's/^/| /' conftest.$ac_ext >&5 4687 4688 # Passes both tests. 4689ac_preproc_ok=: 4690break 4691fi 4692 4693rm -f conftest.err conftest.$ac_ext 4694 4695done 4696# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4697rm -f conftest.err conftest.$ac_ext 4698if $ac_preproc_ok; then 4699 : 4700else 4701 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4702See \`config.log' for more details." >&5 4703echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4704See \`config.log' for more details." >&2;} 4705 { (exit 1); exit 1; }; } 4706fi 4707 4708ac_ext=c 4709ac_cpp='$CPP $CPPFLAGS' 4710ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4711ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4712ac_compiler_gnu=$ac_cv_c_compiler_gnu 4713 4714 4715{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4716echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4717if test "${ac_cv_header_stdc+set}" = set; then 4718 echo $ECHO_N "(cached) $ECHO_C" >&6 4719else 4720 cat >conftest.$ac_ext <<_ACEOF 4721/* confdefs.h. */ 4722_ACEOF 4723cat confdefs.h >>conftest.$ac_ext 4724cat >>conftest.$ac_ext <<_ACEOF 4725/* end confdefs.h. */ 4726#include <stdlib.h> 4727#include <stdarg.h> 4728#include <string.h> 4729#include <float.h> 4730 4731int 4732main () 4733{ 4734 4735 ; 4736 return 0; 4737} 4738_ACEOF 4739rm -f conftest.$ac_objext 4740if { (ac_try="$ac_compile" 4741case "(($ac_try" in 4742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4743 *) ac_try_echo=$ac_try;; 4744esac 4745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4746 (eval "$ac_compile") 2>conftest.er1 4747 ac_status=$? 4748 grep -v '^ *+' conftest.er1 >conftest.err 4749 rm -f conftest.er1 4750 cat conftest.err >&5 4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4752 (exit $ac_status); } && { 4753 test -z "$ac_c_werror_flag" || 4754 test ! -s conftest.err 4755 } && test -s conftest.$ac_objext; then 4756 ac_cv_header_stdc=yes 4757else 4758 echo "$as_me: failed program was:" >&5 4759sed 's/^/| /' conftest.$ac_ext >&5 4760 4761 ac_cv_header_stdc=no 4762fi 4763 4764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4765 4766if test $ac_cv_header_stdc = yes; then 4767 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4768 cat >conftest.$ac_ext <<_ACEOF 4769/* confdefs.h. */ 4770_ACEOF 4771cat confdefs.h >>conftest.$ac_ext 4772cat >>conftest.$ac_ext <<_ACEOF 4773/* end confdefs.h. */ 4774#include <string.h> 4775 4776_ACEOF 4777if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4778 $EGREP "memchr" >/dev/null 2>&1; then 4779 : 4780else 4781 ac_cv_header_stdc=no 4782fi 4783rm -f conftest* 4784 4785fi 4786 4787if test $ac_cv_header_stdc = yes; then 4788 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4789 cat >conftest.$ac_ext <<_ACEOF 4790/* confdefs.h. */ 4791_ACEOF 4792cat confdefs.h >>conftest.$ac_ext 4793cat >>conftest.$ac_ext <<_ACEOF 4794/* end confdefs.h. */ 4795#include <stdlib.h> 4796 4797_ACEOF 4798if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4799 $EGREP "free" >/dev/null 2>&1; then 4800 : 4801else 4802 ac_cv_header_stdc=no 4803fi 4804rm -f conftest* 4805 4806fi 4807 4808if test $ac_cv_header_stdc = yes; then 4809 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4810 if test "$cross_compiling" = yes; then 4811 : 4812else 4813 cat >conftest.$ac_ext <<_ACEOF 4814/* confdefs.h. */ 4815_ACEOF 4816cat confdefs.h >>conftest.$ac_ext 4817cat >>conftest.$ac_ext <<_ACEOF 4818/* end confdefs.h. */ 4819#include <ctype.h> 4820#include <stdlib.h> 4821#if ((' ' & 0x0FF) == 0x020) 4822# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4823# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4824#else 4825# define ISLOWER(c) \ 4826 (('a' <= (c) && (c) <= 'i') \ 4827 || ('j' <= (c) && (c) <= 'r') \ 4828 || ('s' <= (c) && (c) <= 'z')) 4829# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4830#endif 4831 4832#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4833int 4834main () 4835{ 4836 int i; 4837 for (i = 0; i < 256; i++) 4838 if (XOR (islower (i), ISLOWER (i)) 4839 || toupper (i) != TOUPPER (i)) 4840 return 2; 4841 return 0; 4842} 4843_ACEOF 4844rm -f conftest$ac_exeext 4845if { (ac_try="$ac_link" 4846case "(($ac_try" in 4847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4848 *) ac_try_echo=$ac_try;; 4849esac 4850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4851 (eval "$ac_link") 2>&5 4852 ac_status=$? 4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4854 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4855 { (case "(($ac_try" in 4856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4857 *) ac_try_echo=$ac_try;; 4858esac 4859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4860 (eval "$ac_try") 2>&5 4861 ac_status=$? 4862 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4863 (exit $ac_status); }; }; then 4864 : 4865else 4866 echo "$as_me: program exited with status $ac_status" >&5 4867echo "$as_me: failed program was:" >&5 4868sed 's/^/| /' conftest.$ac_ext >&5 4869 4870( exit $ac_status ) 4871ac_cv_header_stdc=no 4872fi 4873rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4874fi 4875 4876 4877fi 4878fi 4879{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4880echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 4881if test $ac_cv_header_stdc = yes; then 4882 4883cat >>confdefs.h <<\_ACEOF 4884#define STDC_HEADERS 1 4885_ACEOF 4886 4887fi 4888 4889# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4900 inttypes.h stdint.h unistd.h 4901do 4902as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4903{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4904echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4905if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4906 echo $ECHO_N "(cached) $ECHO_C" >&6 4907else 4908 cat >conftest.$ac_ext <<_ACEOF 4909/* confdefs.h. */ 4910_ACEOF 4911cat confdefs.h >>conftest.$ac_ext 4912cat >>conftest.$ac_ext <<_ACEOF 4913/* end confdefs.h. */ 4914$ac_includes_default 4915 4916#include <$ac_header> 4917_ACEOF 4918rm -f conftest.$ac_objext 4919if { (ac_try="$ac_compile" 4920case "(($ac_try" in 4921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4922 *) ac_try_echo=$ac_try;; 4923esac 4924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4925 (eval "$ac_compile") 2>conftest.er1 4926 ac_status=$? 4927 grep -v '^ *+' conftest.er1 >conftest.err 4928 rm -f conftest.er1 4929 cat conftest.err >&5 4930 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4931 (exit $ac_status); } && { 4932 test -z "$ac_c_werror_flag" || 4933 test ! -s conftest.err 4934 } && test -s conftest.$ac_objext; then 4935 eval "$as_ac_Header=yes" 4936else 4937 echo "$as_me: failed program was:" >&5 4938sed 's/^/| /' conftest.$ac_ext >&5 4939 4940 eval "$as_ac_Header=no" 4941fi 4942 4943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4944fi 4945ac_res=`eval echo '${'$as_ac_Header'}'` 4946 { echo "$as_me:$LINENO: result: $ac_res" >&5 4947echo "${ECHO_T}$ac_res" >&6; } 4948if test `eval echo '${'$as_ac_Header'}'` = yes; then 4949 cat >>confdefs.h <<_ACEOF 4950#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4951_ACEOF 4952 4953fi 4954 4955done 4956 4957 4958 4959for ac_header in dlfcn.h 4960do 4961as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4962if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4963 { echo "$as_me:$LINENO: checking for $ac_header" >&5 4964echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4965if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4966 echo $ECHO_N "(cached) $ECHO_C" >&6 4967fi 4968ac_res=`eval echo '${'$as_ac_Header'}'` 4969 { echo "$as_me:$LINENO: result: $ac_res" >&5 4970echo "${ECHO_T}$ac_res" >&6; } 4971else 4972 # Is the header compilable? 4973{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 4974echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 4975cat >conftest.$ac_ext <<_ACEOF 4976/* confdefs.h. */ 4977_ACEOF 4978cat confdefs.h >>conftest.$ac_ext 4979cat >>conftest.$ac_ext <<_ACEOF 4980/* end confdefs.h. */ 4981$ac_includes_default 4982#include <$ac_header> 4983_ACEOF 4984rm -f conftest.$ac_objext 4985if { (ac_try="$ac_compile" 4986case "(($ac_try" in 4987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4988 *) ac_try_echo=$ac_try;; 4989esac 4990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4991 (eval "$ac_compile") 2>conftest.er1 4992 ac_status=$? 4993 grep -v '^ *+' conftest.er1 >conftest.err 4994 rm -f conftest.er1 4995 cat conftest.err >&5 4996 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4997 (exit $ac_status); } && { 4998 test -z "$ac_c_werror_flag" || 4999 test ! -s conftest.err 5000 } && test -s conftest.$ac_objext; then 5001 ac_header_compiler=yes 5002else 5003 echo "$as_me: failed program was:" >&5 5004sed 's/^/| /' conftest.$ac_ext >&5 5005 5006 ac_header_compiler=no 5007fi 5008 5009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5010{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5011echo "${ECHO_T}$ac_header_compiler" >&6; } 5012 5013# Is the header present? 5014{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 5015echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 5016cat >conftest.$ac_ext <<_ACEOF 5017/* confdefs.h. */ 5018_ACEOF 5019cat confdefs.h >>conftest.$ac_ext 5020cat >>conftest.$ac_ext <<_ACEOF 5021/* end confdefs.h. */ 5022#include <$ac_header> 5023_ACEOF 5024if { (ac_try="$ac_cpp conftest.$ac_ext" 5025case "(($ac_try" in 5026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5027 *) ac_try_echo=$ac_try;; 5028esac 5029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5030 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5031 ac_status=$? 5032 grep -v '^ *+' conftest.er1 >conftest.err 5033 rm -f conftest.er1 5034 cat conftest.err >&5 5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5036 (exit $ac_status); } >/dev/null && { 5037 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5038 test ! -s conftest.err 5039 }; then 5040 ac_header_preproc=yes 5041else 5042 echo "$as_me: failed program was:" >&5 5043sed 's/^/| /' conftest.$ac_ext >&5 5044 5045 ac_header_preproc=no 5046fi 5047 5048rm -f conftest.err conftest.$ac_ext 5049{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5050echo "${ECHO_T}$ac_header_preproc" >&6; } 5051 5052# So? What about this header? 5053case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5054 yes:no: ) 5055 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5056echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5057 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5058echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5059 ac_header_preproc=yes 5060 ;; 5061 no:yes:* ) 5062 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5063echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5064 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5065echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5066 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5067echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5068 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5069echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5070 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5071echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5072 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5073echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5074 5075 ;; 5076esac 5077{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5078echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5079if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5080 echo $ECHO_N "(cached) $ECHO_C" >&6 5081else 5082 eval "$as_ac_Header=\$ac_header_preproc" 5083fi 5084ac_res=`eval echo '${'$as_ac_Header'}'` 5085 { echo "$as_me:$LINENO: result: $ac_res" >&5 5086echo "${ECHO_T}$ac_res" >&6; } 5087 5088fi 5089if test `eval echo '${'$as_ac_Header'}'` = yes; then 5090 cat >>confdefs.h <<_ACEOF 5091#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5092_ACEOF 5093 5094fi 5095 5096done 5097 5098ac_ext=cpp 5099ac_cpp='$CXXCPP $CPPFLAGS' 5100ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5101ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5102ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5103if test -z "$CXX"; then 5104 if test -n "$CCC"; then 5105 CXX=$CCC 5106 else 5107 if test -n "$ac_tool_prefix"; then 5108 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5109 do 5110 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5111set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5112{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5113echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5114if test "${ac_cv_prog_CXX+set}" = set; then 5115 echo $ECHO_N "(cached) $ECHO_C" >&6 5116else 5117 if test -n "$CXX"; then 5118 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5119else 5120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5121for as_dir in $PATH 5122do 5123 IFS=$as_save_IFS 5124 test -z "$as_dir" && as_dir=. 5125 for ac_exec_ext in '' $ac_executable_extensions; do 5126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5127 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5129 break 2 5130 fi 5131done 5132done 5133IFS=$as_save_IFS 5134 5135fi 5136fi 5137CXX=$ac_cv_prog_CXX 5138if test -n "$CXX"; then 5139 { echo "$as_me:$LINENO: result: $CXX" >&5 5140echo "${ECHO_T}$CXX" >&6; } 5141else 5142 { echo "$as_me:$LINENO: result: no" >&5 5143echo "${ECHO_T}no" >&6; } 5144fi 5145 5146 5147 test -n "$CXX" && break 5148 done 5149fi 5150if test -z "$CXX"; then 5151 ac_ct_CXX=$CXX 5152 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5153do 5154 # Extract the first word of "$ac_prog", so it can be a program name with args. 5155set dummy $ac_prog; ac_word=$2 5156{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5157echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5158if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 5159 echo $ECHO_N "(cached) $ECHO_C" >&6 5160else 5161 if test -n "$ac_ct_CXX"; then 5162 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5163else 5164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5165for as_dir in $PATH 5166do 5167 IFS=$as_save_IFS 5168 test -z "$as_dir" && as_dir=. 5169 for ac_exec_ext in '' $ac_executable_extensions; do 5170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5171 ac_cv_prog_ac_ct_CXX="$ac_prog" 5172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5173 break 2 5174 fi 5175done 5176done 5177IFS=$as_save_IFS 5178 5179fi 5180fi 5181ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5182if test -n "$ac_ct_CXX"; then 5183 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 5184echo "${ECHO_T}$ac_ct_CXX" >&6; } 5185else 5186 { echo "$as_me:$LINENO: result: no" >&5 5187echo "${ECHO_T}no" >&6; } 5188fi 5189 5190 5191 test -n "$ac_ct_CXX" && break 5192done 5193 5194 if test "x$ac_ct_CXX" = x; then 5195 CXX="g++" 5196 else 5197 case $cross_compiling:$ac_tool_warned in 5198yes:) 5199{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5200whose name does not start with the host triplet. If you think this 5201configuration is useful to you, please write to autoconf@gnu.org." >&5 5202echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5203whose name does not start with the host triplet. If you think this 5204configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5205ac_tool_warned=yes ;; 5206esac 5207 CXX=$ac_ct_CXX 5208 fi 5209fi 5210 5211 fi 5212fi 5213# Provide some information about the compiler. 5214echo "$as_me:$LINENO: checking for C++ compiler version" >&5 5215ac_compiler=`set X $ac_compile; echo $2` 5216{ (ac_try="$ac_compiler --version >&5" 5217case "(($ac_try" in 5218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5219 *) ac_try_echo=$ac_try;; 5220esac 5221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5222 (eval "$ac_compiler --version >&5") 2>&5 5223 ac_status=$? 5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5225 (exit $ac_status); } 5226{ (ac_try="$ac_compiler -v >&5" 5227case "(($ac_try" in 5228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5229 *) ac_try_echo=$ac_try;; 5230esac 5231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5232 (eval "$ac_compiler -v >&5") 2>&5 5233 ac_status=$? 5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5235 (exit $ac_status); } 5236{ (ac_try="$ac_compiler -V >&5" 5237case "(($ac_try" in 5238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5239 *) ac_try_echo=$ac_try;; 5240esac 5241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5242 (eval "$ac_compiler -V >&5") 2>&5 5243 ac_status=$? 5244 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5245 (exit $ac_status); } 5246 5247{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5248echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 5249if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5250 echo $ECHO_N "(cached) $ECHO_C" >&6 5251else 5252 cat >conftest.$ac_ext <<_ACEOF 5253/* confdefs.h. */ 5254_ACEOF 5255cat confdefs.h >>conftest.$ac_ext 5256cat >>conftest.$ac_ext <<_ACEOF 5257/* end confdefs.h. */ 5258 5259int 5260main () 5261{ 5262#ifndef __GNUC__ 5263 choke me 5264#endif 5265 5266 ; 5267 return 0; 5268} 5269_ACEOF 5270rm -f conftest.$ac_objext 5271if { (ac_try="$ac_compile" 5272case "(($ac_try" in 5273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5274 *) ac_try_echo=$ac_try;; 5275esac 5276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5277 (eval "$ac_compile") 2>conftest.er1 5278 ac_status=$? 5279 grep -v '^ *+' conftest.er1 >conftest.err 5280 rm -f conftest.er1 5281 cat conftest.err >&5 5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5283 (exit $ac_status); } && { 5284 test -z "$ac_cxx_werror_flag" || 5285 test ! -s conftest.err 5286 } && test -s conftest.$ac_objext; then 5287 ac_compiler_gnu=yes 5288else 5289 echo "$as_me: failed program was:" >&5 5290sed 's/^/| /' conftest.$ac_ext >&5 5291 5292 ac_compiler_gnu=no 5293fi 5294 5295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5296ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5297 5298fi 5299{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 5300echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 5301GXX=`test $ac_compiler_gnu = yes && echo yes` 5302ac_test_CXXFLAGS=${CXXFLAGS+set} 5303ac_save_CXXFLAGS=$CXXFLAGS 5304{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 5305echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 5306if test "${ac_cv_prog_cxx_g+set}" = set; then 5307 echo $ECHO_N "(cached) $ECHO_C" >&6 5308else 5309 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5310 ac_cxx_werror_flag=yes 5311 ac_cv_prog_cxx_g=no 5312 CXXFLAGS="-g" 5313 cat >conftest.$ac_ext <<_ACEOF 5314/* confdefs.h. */ 5315_ACEOF 5316cat confdefs.h >>conftest.$ac_ext 5317cat >>conftest.$ac_ext <<_ACEOF 5318/* end confdefs.h. */ 5319 5320int 5321main () 5322{ 5323 5324 ; 5325 return 0; 5326} 5327_ACEOF 5328rm -f conftest.$ac_objext 5329if { (ac_try="$ac_compile" 5330case "(($ac_try" in 5331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5332 *) ac_try_echo=$ac_try;; 5333esac 5334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5335 (eval "$ac_compile") 2>conftest.er1 5336 ac_status=$? 5337 grep -v '^ *+' conftest.er1 >conftest.err 5338 rm -f conftest.er1 5339 cat conftest.err >&5 5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5341 (exit $ac_status); } && { 5342 test -z "$ac_cxx_werror_flag" || 5343 test ! -s conftest.err 5344 } && test -s conftest.$ac_objext; then 5345 ac_cv_prog_cxx_g=yes 5346else 5347 echo "$as_me: failed program was:" >&5 5348sed 's/^/| /' conftest.$ac_ext >&5 5349 5350 CXXFLAGS="" 5351 cat >conftest.$ac_ext <<_ACEOF 5352/* confdefs.h. */ 5353_ACEOF 5354cat confdefs.h >>conftest.$ac_ext 5355cat >>conftest.$ac_ext <<_ACEOF 5356/* end confdefs.h. */ 5357 5358int 5359main () 5360{ 5361 5362 ; 5363 return 0; 5364} 5365_ACEOF 5366rm -f conftest.$ac_objext 5367if { (ac_try="$ac_compile" 5368case "(($ac_try" in 5369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5370 *) ac_try_echo=$ac_try;; 5371esac 5372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5373 (eval "$ac_compile") 2>conftest.er1 5374 ac_status=$? 5375 grep -v '^ *+' conftest.er1 >conftest.err 5376 rm -f conftest.er1 5377 cat conftest.err >&5 5378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5379 (exit $ac_status); } && { 5380 test -z "$ac_cxx_werror_flag" || 5381 test ! -s conftest.err 5382 } && test -s conftest.$ac_objext; then 5383 : 5384else 5385 echo "$as_me: failed program was:" >&5 5386sed 's/^/| /' conftest.$ac_ext >&5 5387 5388 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5389 CXXFLAGS="-g" 5390 cat >conftest.$ac_ext <<_ACEOF 5391/* confdefs.h. */ 5392_ACEOF 5393cat confdefs.h >>conftest.$ac_ext 5394cat >>conftest.$ac_ext <<_ACEOF 5395/* end confdefs.h. */ 5396 5397int 5398main () 5399{ 5400 5401 ; 5402 return 0; 5403} 5404_ACEOF 5405rm -f conftest.$ac_objext 5406if { (ac_try="$ac_compile" 5407case "(($ac_try" in 5408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5409 *) ac_try_echo=$ac_try;; 5410esac 5411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5412 (eval "$ac_compile") 2>conftest.er1 5413 ac_status=$? 5414 grep -v '^ *+' conftest.er1 >conftest.err 5415 rm -f conftest.er1 5416 cat conftest.err >&5 5417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5418 (exit $ac_status); } && { 5419 test -z "$ac_cxx_werror_flag" || 5420 test ! -s conftest.err 5421 } && test -s conftest.$ac_objext; then 5422 ac_cv_prog_cxx_g=yes 5423else 5424 echo "$as_me: failed program was:" >&5 5425sed 's/^/| /' conftest.$ac_ext >&5 5426 5427 5428fi 5429 5430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5431fi 5432 5433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5434fi 5435 5436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5437 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5438fi 5439{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 5440echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 5441if test "$ac_test_CXXFLAGS" = set; then 5442 CXXFLAGS=$ac_save_CXXFLAGS 5443elif test $ac_cv_prog_cxx_g = yes; then 5444 if test "$GXX" = yes; then 5445 CXXFLAGS="-g -O2" 5446 else 5447 CXXFLAGS="-g" 5448 fi 5449else 5450 if test "$GXX" = yes; then 5451 CXXFLAGS="-O2" 5452 else 5453 CXXFLAGS= 5454 fi 5455fi 5456ac_ext=cpp 5457ac_cpp='$CXXCPP $CPPFLAGS' 5458ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5459ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5460ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5461 5462depcc="$CXX" am_compiler_list= 5463 5464{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5465echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 5466if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 5467 echo $ECHO_N "(cached) $ECHO_C" >&6 5468else 5469 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5470 # We make a subdir and do the tests there. Otherwise we can end up 5471 # making bogus files that we don't know about and never remove. For 5472 # instance it was reported that on HP-UX the gcc test will end up 5473 # making a dummy file named `D' -- because `-MD' means `put the output 5474 # in D'. 5475 mkdir conftest.dir 5476 # Copy depcomp to subdir because otherwise we won't find it if we're 5477 # using a relative directory. 5478 cp "$am_depcomp" conftest.dir 5479 cd conftest.dir 5480 # We will build objects and dependencies in a subdirectory because 5481 # it helps to detect inapplicable dependency modes. For instance 5482 # both Tru64's cc and ICC support -MD to output dependencies as a 5483 # side effect of compilation, but ICC will put the dependencies in 5484 # the current directory while Tru64 will put them in the object 5485 # directory. 5486 mkdir sub 5487 5488 am_cv_CXX_dependencies_compiler_type=none 5489 if test "$am_compiler_list" = ""; then 5490 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5491 fi 5492 for depmode in $am_compiler_list; do 5493 # Setup a source with many dependencies, because some compilers 5494 # like to wrap large dependency lists on column 80 (with \), and 5495 # we should not choose a depcomp mode which is confused by this. 5496 # 5497 # We need to recreate these files for each test, as the compiler may 5498 # overwrite some of them when testing with obscure command lines. 5499 # This happens at least with the AIX C compiler. 5500 : > sub/conftest.c 5501 for i in 1 2 3 4 5 6; do 5502 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5503 : > sub/conftst$i.h 5504 done 5505 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5506 5507 case $depmode in 5508 nosideeffect) 5509 # after this tag, mechanisms are not by side-effect, so they'll 5510 # only be used when explicitly requested 5511 if test "x$enable_dependency_tracking" = xyes; then 5512 continue 5513 else 5514 break 5515 fi 5516 ;; 5517 none) break ;; 5518 esac 5519 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5520 # mode. It turns out that the SunPro C++ compiler does not properly 5521 # handle `-M -o', and we need to detect this. 5522 if depmode=$depmode \ 5523 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5524 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5525 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5526 >/dev/null 2>conftest.err && 5527 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5528 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5529 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5530 # icc doesn't choke on unknown options, it will just issue warnings 5531 # (even with -Werror). So we grep stderr for any message 5532 # that says an option was ignored. 5533 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else 5534 am_cv_CXX_dependencies_compiler_type=$depmode 5535 break 5536 fi 5537 fi 5538 done 5539 5540 cd .. 5541 rm -rf conftest.dir 5542else 5543 am_cv_CXX_dependencies_compiler_type=none 5544fi 5545 5546fi 5547{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 5548echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } 5549CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5550 5551 5552 5553if 5554 test "x$enable_dependency_tracking" != xno \ 5555 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5556 am__fastdepCXX_TRUE= 5557 am__fastdepCXX_FALSE='#' 5558else 5559 am__fastdepCXX_TRUE='#' 5560 am__fastdepCXX_FALSE= 5561fi 5562 5563 5564 5565 5566if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5567 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5568 (test "X$CXX" != "Xg++"))) ; then 5569 ac_ext=cpp 5570ac_cpp='$CXXCPP $CPPFLAGS' 5571ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5572ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5573ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5574{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5575echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 5576if test -z "$CXXCPP"; then 5577 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5578 echo $ECHO_N "(cached) $ECHO_C" >&6 5579else 5580 # Double quotes because CXXCPP needs to be expanded 5581 for CXXCPP in "$CXX -E" "/lib/cpp" 5582 do 5583 ac_preproc_ok=false 5584for ac_cxx_preproc_warn_flag in '' yes 5585do 5586 # Use a header file that comes with gcc, so configuring glibc 5587 # with a fresh cross-compiler works. 5588 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5589 # <limits.h> exists even on freestanding compilers. 5590 # On the NeXT, cc -E runs the code through the compiler's parser, 5591 # not just through cpp. "Syntax error" is here to catch this case. 5592 cat >conftest.$ac_ext <<_ACEOF 5593/* confdefs.h. */ 5594_ACEOF 5595cat confdefs.h >>conftest.$ac_ext 5596cat >>conftest.$ac_ext <<_ACEOF 5597/* end confdefs.h. */ 5598#ifdef __STDC__ 5599# include <limits.h> 5600#else 5601# include <assert.h> 5602#endif 5603 Syntax error 5604_ACEOF 5605if { (ac_try="$ac_cpp conftest.$ac_ext" 5606case "(($ac_try" in 5607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5608 *) ac_try_echo=$ac_try;; 5609esac 5610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5611 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5612 ac_status=$? 5613 grep -v '^ *+' conftest.er1 >conftest.err 5614 rm -f conftest.er1 5615 cat conftest.err >&5 5616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5617 (exit $ac_status); } >/dev/null && { 5618 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5619 test ! -s conftest.err 5620 }; then 5621 : 5622else 5623 echo "$as_me: failed program was:" >&5 5624sed 's/^/| /' conftest.$ac_ext >&5 5625 5626 # Broken: fails on valid input. 5627continue 5628fi 5629 5630rm -f conftest.err conftest.$ac_ext 5631 5632 # OK, works on sane cases. Now check whether nonexistent headers 5633 # can be detected and how. 5634 cat >conftest.$ac_ext <<_ACEOF 5635/* confdefs.h. */ 5636_ACEOF 5637cat confdefs.h >>conftest.$ac_ext 5638cat >>conftest.$ac_ext <<_ACEOF 5639/* end confdefs.h. */ 5640#include <ac_nonexistent.h> 5641_ACEOF 5642if { (ac_try="$ac_cpp conftest.$ac_ext" 5643case "(($ac_try" in 5644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5645 *) ac_try_echo=$ac_try;; 5646esac 5647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5648 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5649 ac_status=$? 5650 grep -v '^ *+' conftest.er1 >conftest.err 5651 rm -f conftest.er1 5652 cat conftest.err >&5 5653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5654 (exit $ac_status); } >/dev/null && { 5655 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5656 test ! -s conftest.err 5657 }; then 5658 # Broken: success on invalid input. 5659continue 5660else 5661 echo "$as_me: failed program was:" >&5 5662sed 's/^/| /' conftest.$ac_ext >&5 5663 5664 # Passes both tests. 5665ac_preproc_ok=: 5666break 5667fi 5668 5669rm -f conftest.err conftest.$ac_ext 5670 5671done 5672# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5673rm -f conftest.err conftest.$ac_ext 5674if $ac_preproc_ok; then 5675 break 5676fi 5677 5678 done 5679 ac_cv_prog_CXXCPP=$CXXCPP 5680 5681fi 5682 CXXCPP=$ac_cv_prog_CXXCPP 5683else 5684 ac_cv_prog_CXXCPP=$CXXCPP 5685fi 5686{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 5687echo "${ECHO_T}$CXXCPP" >&6; } 5688ac_preproc_ok=false 5689for ac_cxx_preproc_warn_flag in '' yes 5690do 5691 # Use a header file that comes with gcc, so configuring glibc 5692 # with a fresh cross-compiler works. 5693 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5694 # <limits.h> exists even on freestanding compilers. 5695 # On the NeXT, cc -E runs the code through the compiler's parser, 5696 # not just through cpp. "Syntax error" is here to catch this case. 5697 cat >conftest.$ac_ext <<_ACEOF 5698/* confdefs.h. */ 5699_ACEOF 5700cat confdefs.h >>conftest.$ac_ext 5701cat >>conftest.$ac_ext <<_ACEOF 5702/* end confdefs.h. */ 5703#ifdef __STDC__ 5704# include <limits.h> 5705#else 5706# include <assert.h> 5707#endif 5708 Syntax error 5709_ACEOF 5710if { (ac_try="$ac_cpp conftest.$ac_ext" 5711case "(($ac_try" in 5712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5713 *) ac_try_echo=$ac_try;; 5714esac 5715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5716 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5717 ac_status=$? 5718 grep -v '^ *+' conftest.er1 >conftest.err 5719 rm -f conftest.er1 5720 cat conftest.err >&5 5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5722 (exit $ac_status); } >/dev/null && { 5723 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5724 test ! -s conftest.err 5725 }; then 5726 : 5727else 5728 echo "$as_me: failed program was:" >&5 5729sed 's/^/| /' conftest.$ac_ext >&5 5730 5731 # Broken: fails on valid input. 5732continue 5733fi 5734 5735rm -f conftest.err conftest.$ac_ext 5736 5737 # OK, works on sane cases. Now check whether nonexistent headers 5738 # can be detected and how. 5739 cat >conftest.$ac_ext <<_ACEOF 5740/* confdefs.h. */ 5741_ACEOF 5742cat confdefs.h >>conftest.$ac_ext 5743cat >>conftest.$ac_ext <<_ACEOF 5744/* end confdefs.h. */ 5745#include <ac_nonexistent.h> 5746_ACEOF 5747if { (ac_try="$ac_cpp conftest.$ac_ext" 5748case "(($ac_try" in 5749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5750 *) ac_try_echo=$ac_try;; 5751esac 5752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5754 ac_status=$? 5755 grep -v '^ *+' conftest.er1 >conftest.err 5756 rm -f conftest.er1 5757 cat conftest.err >&5 5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5759 (exit $ac_status); } >/dev/null && { 5760 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5761 test ! -s conftest.err 5762 }; then 5763 # Broken: success on invalid input. 5764continue 5765else 5766 echo "$as_me: failed program was:" >&5 5767sed 's/^/| /' conftest.$ac_ext >&5 5768 5769 # Passes both tests. 5770ac_preproc_ok=: 5771break 5772fi 5773 5774rm -f conftest.err conftest.$ac_ext 5775 5776done 5777# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5778rm -f conftest.err conftest.$ac_ext 5779if $ac_preproc_ok; then 5780 : 5781else 5782 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5783See \`config.log' for more details." >&5 5784echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5785See \`config.log' for more details." >&2;} 5786 { (exit 1); exit 1; }; } 5787fi 5788 5789ac_ext=cpp 5790ac_cpp='$CXXCPP $CPPFLAGS' 5791ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5792ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5793ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5794 5795fi 5796 5797 5798ac_ext=f 5799ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5800ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5801ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5802if test -n "$ac_tool_prefix"; then 5803 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 5804 do 5805 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5806set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5807{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5809if test "${ac_cv_prog_F77+set}" = set; then 5810 echo $ECHO_N "(cached) $ECHO_C" >&6 5811else 5812 if test -n "$F77"; then 5813 ac_cv_prog_F77="$F77" # Let the user override the test. 5814else 5815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5816for as_dir in $PATH 5817do 5818 IFS=$as_save_IFS 5819 test -z "$as_dir" && as_dir=. 5820 for ac_exec_ext in '' $ac_executable_extensions; do 5821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5822 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 5823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5824 break 2 5825 fi 5826done 5827done 5828IFS=$as_save_IFS 5829 5830fi 5831fi 5832F77=$ac_cv_prog_F77 5833if test -n "$F77"; then 5834 { echo "$as_me:$LINENO: result: $F77" >&5 5835echo "${ECHO_T}$F77" >&6; } 5836else 5837 { echo "$as_me:$LINENO: result: no" >&5 5838echo "${ECHO_T}no" >&6; } 5839fi 5840 5841 5842 test -n "$F77" && break 5843 done 5844fi 5845if test -z "$F77"; then 5846 ac_ct_F77=$F77 5847 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 5848do 5849 # Extract the first word of "$ac_prog", so it can be a program name with args. 5850set dummy $ac_prog; ac_word=$2 5851{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5853if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 5854 echo $ECHO_N "(cached) $ECHO_C" >&6 5855else 5856 if test -n "$ac_ct_F77"; then 5857 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 5858else 5859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5860for as_dir in $PATH 5861do 5862 IFS=$as_save_IFS 5863 test -z "$as_dir" && as_dir=. 5864 for ac_exec_ext in '' $ac_executable_extensions; do 5865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5866 ac_cv_prog_ac_ct_F77="$ac_prog" 5867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5868 break 2 5869 fi 5870done 5871done 5872IFS=$as_save_IFS 5873 5874fi 5875fi 5876ac_ct_F77=$ac_cv_prog_ac_ct_F77 5877if test -n "$ac_ct_F77"; then 5878 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 5879echo "${ECHO_T}$ac_ct_F77" >&6; } 5880else 5881 { echo "$as_me:$LINENO: result: no" >&5 5882echo "${ECHO_T}no" >&6; } 5883fi 5884 5885 5886 test -n "$ac_ct_F77" && break 5887done 5888 5889 if test "x$ac_ct_F77" = x; then 5890 F77="" 5891 else 5892 case $cross_compiling:$ac_tool_warned in 5893yes:) 5894{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5895whose name does not start with the host triplet. If you think this 5896configuration is useful to you, please write to autoconf@gnu.org." >&5 5897echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5898whose name does not start with the host triplet. If you think this 5899configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5900ac_tool_warned=yes ;; 5901esac 5902 F77=$ac_ct_F77 5903 fi 5904fi 5905 5906 5907# Provide some information about the compiler. 5908echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 5909ac_compiler=`set X $ac_compile; echo $2` 5910{ (ac_try="$ac_compiler --version >&5" 5911case "(($ac_try" in 5912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5913 *) ac_try_echo=$ac_try;; 5914esac 5915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5916 (eval "$ac_compiler --version >&5") 2>&5 5917 ac_status=$? 5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5919 (exit $ac_status); } 5920{ (ac_try="$ac_compiler -v >&5" 5921case "(($ac_try" in 5922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5923 *) ac_try_echo=$ac_try;; 5924esac 5925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5926 (eval "$ac_compiler -v >&5") 2>&5 5927 ac_status=$? 5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5929 (exit $ac_status); } 5930{ (ac_try="$ac_compiler -V >&5" 5931case "(($ac_try" in 5932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5933 *) ac_try_echo=$ac_try;; 5934esac 5935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5936 (eval "$ac_compiler -V >&5") 2>&5 5937 ac_status=$? 5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5939 (exit $ac_status); } 5940rm -f a.out 5941 5942# If we don't use `.F' as extension, the preprocessor is not run on the 5943# input file. (Note that this only needs to work for GNU compilers.) 5944ac_save_ext=$ac_ext 5945ac_ext=F 5946{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 5947echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } 5948if test "${ac_cv_f77_compiler_gnu+set}" = set; then 5949 echo $ECHO_N "(cached) $ECHO_C" >&6 5950else 5951 cat >conftest.$ac_ext <<_ACEOF 5952 program main 5953#ifndef __GNUC__ 5954 choke me 5955#endif 5956 5957 end 5958_ACEOF 5959rm -f conftest.$ac_objext 5960if { (ac_try="$ac_compile" 5961case "(($ac_try" in 5962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5963 *) ac_try_echo=$ac_try;; 5964esac 5965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5966 (eval "$ac_compile") 2>conftest.er1 5967 ac_status=$? 5968 grep -v '^ *+' conftest.er1 >conftest.err 5969 rm -f conftest.er1 5970 cat conftest.err >&5 5971 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5972 (exit $ac_status); } && { 5973 test -z "$ac_f77_werror_flag" || 5974 test ! -s conftest.err 5975 } && test -s conftest.$ac_objext; then 5976 ac_compiler_gnu=yes 5977else 5978 echo "$as_me: failed program was:" >&5 5979sed 's/^/| /' conftest.$ac_ext >&5 5980 5981 ac_compiler_gnu=no 5982fi 5983 5984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5985ac_cv_f77_compiler_gnu=$ac_compiler_gnu 5986 5987fi 5988{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 5989echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } 5990ac_ext=$ac_save_ext 5991ac_test_FFLAGS=${FFLAGS+set} 5992ac_save_FFLAGS=$FFLAGS 5993FFLAGS= 5994{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 5995echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } 5996if test "${ac_cv_prog_f77_g+set}" = set; then 5997 echo $ECHO_N "(cached) $ECHO_C" >&6 5998else 5999 FFLAGS=-g 6000cat >conftest.$ac_ext <<_ACEOF 6001 program main 6002 6003 end 6004_ACEOF 6005rm -f conftest.$ac_objext 6006if { (ac_try="$ac_compile" 6007case "(($ac_try" in 6008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6009 *) ac_try_echo=$ac_try;; 6010esac 6011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6012 (eval "$ac_compile") 2>conftest.er1 6013 ac_status=$? 6014 grep -v '^ *+' conftest.er1 >conftest.err 6015 rm -f conftest.er1 6016 cat conftest.err >&5 6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6018 (exit $ac_status); } && { 6019 test -z "$ac_f77_werror_flag" || 6020 test ! -s conftest.err 6021 } && test -s conftest.$ac_objext; then 6022 ac_cv_prog_f77_g=yes 6023else 6024 echo "$as_me: failed program was:" >&5 6025sed 's/^/| /' conftest.$ac_ext >&5 6026 6027 ac_cv_prog_f77_g=no 6028fi 6029 6030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6031 6032fi 6033{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6034echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } 6035if test "$ac_test_FFLAGS" = set; then 6036 FFLAGS=$ac_save_FFLAGS 6037elif test $ac_cv_prog_f77_g = yes; then 6038 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6039 FFLAGS="-g -O2" 6040 else 6041 FFLAGS="-g" 6042 fi 6043else 6044 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6045 FFLAGS="-O2" 6046 else 6047 FFLAGS= 6048 fi 6049fi 6050 6051G77=`test $ac_compiler_gnu = yes && echo yes` 6052ac_ext=c 6053ac_cpp='$CPP $CPPFLAGS' 6054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6056ac_compiler_gnu=$ac_cv_c_compiler_gnu 6057 6058 6059 6060# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6061 6062# find the maximum length of command line arguments 6063{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6064echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } 6065if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6066 echo $ECHO_N "(cached) $ECHO_C" >&6 6067else 6068 i=0 6069 teststring="ABCD" 6070 6071 case $build_os in 6072 msdosdjgpp*) 6073 # On DJGPP, this test can blow up pretty badly due to problems in libc 6074 # (any single argument exceeding 2000 bytes causes a buffer overrun 6075 # during glob expansion). Even if it were fixed, the result of this 6076 # check would be larger than it should be. 6077 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6078 ;; 6079 6080 gnu*) 6081 # Under GNU Hurd, this test is not required because there is 6082 # no limit to the length of command line arguments. 6083 # Libtool will interpret -1 as no limit whatsoever 6084 lt_cv_sys_max_cmd_len=-1; 6085 ;; 6086 6087 cygwin* | mingw*) 6088 # On Win9x/ME, this test blows up -- it succeeds, but takes 6089 # about 5 minutes as the teststring grows exponentially. 6090 # Worse, since 9x/ME are not pre-emptively multitasking, 6091 # you end up with a "frozen" computer, even though with patience 6092 # the test eventually succeeds (with a max line length of 256k). 6093 # Instead, let's just punt: use the minimum linelength reported by 6094 # all of the supported platforms: 8192 (on NT/2K/XP). 6095 lt_cv_sys_max_cmd_len=8192; 6096 ;; 6097 6098 amigaos*) 6099 # On AmigaOS with pdksh, this test takes hours, literally. 6100 # So we just punt and use a minimum line length of 8192. 6101 lt_cv_sys_max_cmd_len=8192; 6102 ;; 6103 6104 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6105 # This has been around since 386BSD, at least. Likely further. 6106 if test -x /sbin/sysctl; then 6107 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6108 elif test -x /usr/sbin/sysctl; then 6109 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6110 else 6111 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6112 fi 6113 # And add a safety zone 6114 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6115 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6116 ;; 6117 6118 interix*) 6119 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6120 lt_cv_sys_max_cmd_len=196608 6121 ;; 6122 6123 osf*) 6124 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6125 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6126 # nice to cause kernel panics so lets avoid the loop below. 6127 # First set a reasonable default. 6128 lt_cv_sys_max_cmd_len=16384 6129 # 6130 if test -x /sbin/sysconfig; then 6131 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6132 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6133 esac 6134 fi 6135 ;; 6136 sco3.2v5*) 6137 lt_cv_sys_max_cmd_len=102400 6138 ;; 6139 sysv5* | sco5v6* | sysv4.2uw2*) 6140 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6141 if test -n "$kargmax"; then 6142 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6143 else 6144 lt_cv_sys_max_cmd_len=32768 6145 fi 6146 ;; 6147 *) 6148 # If test is not a shell built-in, we'll probably end up computing a 6149 # maximum length that is only half of the actual maximum length, but 6150 # we can't tell. 6151 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6152 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6153 = "XX$teststring") >/dev/null 2>&1 && 6154 new_result=`expr "X$teststring" : ".*" 2>&1` && 6155 lt_cv_sys_max_cmd_len=$new_result && 6156 test $i != 17 # 1/2 MB should be enough 6157 do 6158 i=`expr $i + 1` 6159 teststring=$teststring$teststring 6160 done 6161 teststring= 6162 # Add a significant safety factor because C++ compilers can tack on massive 6163 # amounts of additional arguments before passing them to the linker. 6164 # It appears as though 1/2 is a usable value. 6165 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6166 ;; 6167 esac 6168 6169fi 6170 6171if test -n $lt_cv_sys_max_cmd_len ; then 6172 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6173echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } 6174else 6175 { echo "$as_me:$LINENO: result: none" >&5 6176echo "${ECHO_T}none" >&6; } 6177fi 6178 6179 6180 6181 6182# Check for command to grab the raw symbol name followed by C symbol from nm. 6183{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6184echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 6185if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6186 echo $ECHO_N "(cached) $ECHO_C" >&6 6187else 6188 6189# These are sane defaults that work on at least a few old systems. 6190# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6191 6192# Character class describing NM global symbol codes. 6193symcode='[BCDEGRST]' 6194 6195# Regexp to match symbols that can be accessed directly from C. 6196sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6197 6198# Transform an extracted symbol line into a proper C declaration 6199lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6200 6201# Transform an extracted symbol line into symbol name and symbol address 6202lt_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'" 6203 6204# Define system-specific variables. 6205case $host_os in 6206aix*) 6207 symcode='[BCDT]' 6208 ;; 6209cygwin* | mingw* | pw32*) 6210 symcode='[ABCDGISTW]' 6211 ;; 6212hpux*) # Its linker distinguishes data from code symbols 6213 if test "$host_cpu" = ia64; then 6214 symcode='[ABCDEGRST]' 6215 fi 6216 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6217 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'" 6218 ;; 6219linux* | k*bsd*-gnu) 6220 if test "$host_cpu" = ia64; then 6221 symcode='[ABCDGIRSTW]' 6222 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6223 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'" 6224 fi 6225 ;; 6226irix* | nonstopux*) 6227 symcode='[BCDEGRST]' 6228 ;; 6229osf*) 6230 symcode='[BCDEGQRST]' 6231 ;; 6232solaris*) 6233 symcode='[BDRT]' 6234 ;; 6235sco3.2v5*) 6236 symcode='[DT]' 6237 ;; 6238sysv4.2uw2*) 6239 symcode='[DT]' 6240 ;; 6241sysv5* | sco5v6* | unixware* | OpenUNIX*) 6242 symcode='[ABDT]' 6243 ;; 6244sysv4) 6245 symcode='[DFNSTU]' 6246 ;; 6247esac 6248 6249# Handle CRLF in mingw tool chain 6250opt_cr= 6251case $build_os in 6252mingw*) 6253 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6254 ;; 6255esac 6256 6257# If we're using GNU nm, then use its standard symbol codes. 6258case `$NM -V 2>&1` in 6259*GNU* | *'with BFD'*) 6260 symcode='[ABCDGIRSTW]' ;; 6261esac 6262 6263# Try without a prefix undercore, then with it. 6264for ac_symprfx in "" "_"; do 6265 6266 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6267 symxfrm="\\1 $ac_symprfx\\2 \\2" 6268 6269 # Write the raw and C identifiers. 6270 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6271 6272 # Check to see that the pipe works correctly. 6273 pipe_works=no 6274 6275 rm -f conftest* 6276 cat > conftest.$ac_ext <<EOF 6277#ifdef __cplusplus 6278extern "C" { 6279#endif 6280char nm_test_var; 6281void nm_test_func(){} 6282#ifdef __cplusplus 6283} 6284#endif 6285int main(){nm_test_var='a';nm_test_func();return(0);} 6286EOF 6287 6288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6289 (eval $ac_compile) 2>&5 6290 ac_status=$? 6291 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6292 (exit $ac_status); }; then 6293 # Now try to grab the symbols. 6294 nlist=conftest.nm 6295 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6296 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6297 ac_status=$? 6298 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6299 (exit $ac_status); } && test -s "$nlist"; then 6300 # Try sorting and uniquifying the output. 6301 if sort "$nlist" | uniq > "$nlist"T; then 6302 mv -f "$nlist"T "$nlist" 6303 else 6304 rm -f "$nlist"T 6305 fi 6306 6307 # Make sure that we snagged all the symbols we need. 6308 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6309 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6310 cat <<EOF > conftest.$ac_ext 6311#ifdef __cplusplus 6312extern "C" { 6313#endif 6314 6315EOF 6316 # Now generate the symbol file. 6317 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6318 6319 cat <<EOF >> conftest.$ac_ext 6320#if defined (__STDC__) && __STDC__ 6321# define lt_ptr_t void * 6322#else 6323# define lt_ptr_t char * 6324# define const 6325#endif 6326 6327/* The mapping between symbol names and symbols. */ 6328const struct { 6329 const char *name; 6330 lt_ptr_t address; 6331} 6332lt_preloaded_symbols[] = 6333{ 6334EOF 6335 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6336 cat <<\EOF >> conftest.$ac_ext 6337 {0, (lt_ptr_t) 0} 6338}; 6339 6340#ifdef __cplusplus 6341} 6342#endif 6343EOF 6344 # Now try linking the two files. 6345 mv conftest.$ac_objext conftstm.$ac_objext 6346 lt_save_LIBS="$LIBS" 6347 lt_save_CFLAGS="$CFLAGS" 6348 LIBS="conftstm.$ac_objext" 6349 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6351 (eval $ac_link) 2>&5 6352 ac_status=$? 6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6354 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6355 pipe_works=yes 6356 fi 6357 LIBS="$lt_save_LIBS" 6358 CFLAGS="$lt_save_CFLAGS" 6359 else 6360 echo "cannot find nm_test_func in $nlist" >&5 6361 fi 6362 else 6363 echo "cannot find nm_test_var in $nlist" >&5 6364 fi 6365 else 6366 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6367 fi 6368 else 6369 echo "$progname: failed program was:" >&5 6370 cat conftest.$ac_ext >&5 6371 fi 6372 rm -f conftest* conftst* 6373 6374 # Do not use the global_symbol_pipe unless it works. 6375 if test "$pipe_works" = yes; then 6376 break 6377 else 6378 lt_cv_sys_global_symbol_pipe= 6379 fi 6380done 6381 6382fi 6383 6384if test -z "$lt_cv_sys_global_symbol_pipe"; then 6385 lt_cv_sys_global_symbol_to_cdecl= 6386fi 6387if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6388 { echo "$as_me:$LINENO: result: failed" >&5 6389echo "${ECHO_T}failed" >&6; } 6390else 6391 { echo "$as_me:$LINENO: result: ok" >&5 6392echo "${ECHO_T}ok" >&6; } 6393fi 6394 6395{ echo "$as_me:$LINENO: checking for objdir" >&5 6396echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 6397if test "${lt_cv_objdir+set}" = set; then 6398 echo $ECHO_N "(cached) $ECHO_C" >&6 6399else 6400 rm -f .libs 2>/dev/null 6401mkdir .libs 2>/dev/null 6402if test -d .libs; then 6403 lt_cv_objdir=.libs 6404else 6405 # MS-DOS does not allow filenames that begin with a dot. 6406 lt_cv_objdir=_libs 6407fi 6408rmdir .libs 2>/dev/null 6409fi 6410{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6411echo "${ECHO_T}$lt_cv_objdir" >&6; } 6412objdir=$lt_cv_objdir 6413 6414 6415 6416 6417 6418case $host_os in 6419aix3*) 6420 # AIX sometimes has problems with the GCC collect2 program. For some 6421 # reason, if we set the COLLECT_NAMES environment variable, the problems 6422 # vanish in a puff of smoke. 6423 if test "X${COLLECT_NAMES+set}" != Xset; then 6424 COLLECT_NAMES= 6425 export COLLECT_NAMES 6426 fi 6427 ;; 6428esac 6429 6430# Sed substitution that helps us do robust quoting. It backslashifies 6431# metacharacters that are still active within double-quoted strings. 6432Xsed='sed -e 1s/^X//' 6433sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6434 6435# Same as above, but do not quote variable references. 6436double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6437 6438# Sed substitution to delay expansion of an escaped shell variable in a 6439# double_quote_subst'ed string. 6440delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6441 6442# Sed substitution to avoid accidental globbing in evaled expressions 6443no_glob_subst='s/\*/\\\*/g' 6444 6445# Constants: 6446rm="rm -f" 6447 6448# Global variables: 6449default_ofile=libtool 6450can_build_shared=yes 6451 6452# All known linkers require a `.a' archive for static linking (except MSVC, 6453# which needs '.lib'). 6454libext=a 6455ltmain="$ac_aux_dir/ltmain.sh" 6456ofile="$default_ofile" 6457with_gnu_ld="$lt_cv_prog_gnu_ld" 6458 6459if test -n "$ac_tool_prefix"; then 6460 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6461set dummy ${ac_tool_prefix}ar; ac_word=$2 6462{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6463echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6464if test "${ac_cv_prog_AR+set}" = set; then 6465 echo $ECHO_N "(cached) $ECHO_C" >&6 6466else 6467 if test -n "$AR"; then 6468 ac_cv_prog_AR="$AR" # Let the user override the test. 6469else 6470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6471for as_dir in $PATH 6472do 6473 IFS=$as_save_IFS 6474 test -z "$as_dir" && as_dir=. 6475 for ac_exec_ext in '' $ac_executable_extensions; do 6476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6477 ac_cv_prog_AR="${ac_tool_prefix}ar" 6478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6479 break 2 6480 fi 6481done 6482done 6483IFS=$as_save_IFS 6484 6485fi 6486fi 6487AR=$ac_cv_prog_AR 6488if test -n "$AR"; then 6489 { echo "$as_me:$LINENO: result: $AR" >&5 6490echo "${ECHO_T}$AR" >&6; } 6491else 6492 { echo "$as_me:$LINENO: result: no" >&5 6493echo "${ECHO_T}no" >&6; } 6494fi 6495 6496 6497fi 6498if test -z "$ac_cv_prog_AR"; then 6499 ac_ct_AR=$AR 6500 # Extract the first word of "ar", so it can be a program name with args. 6501set dummy ar; ac_word=$2 6502{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6503echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6504if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6505 echo $ECHO_N "(cached) $ECHO_C" >&6 6506else 6507 if test -n "$ac_ct_AR"; then 6508 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6509else 6510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6511for as_dir in $PATH 6512do 6513 IFS=$as_save_IFS 6514 test -z "$as_dir" && as_dir=. 6515 for ac_exec_ext in '' $ac_executable_extensions; do 6516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6517 ac_cv_prog_ac_ct_AR="ar" 6518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6519 break 2 6520 fi 6521done 6522done 6523IFS=$as_save_IFS 6524 6525fi 6526fi 6527ac_ct_AR=$ac_cv_prog_ac_ct_AR 6528if test -n "$ac_ct_AR"; then 6529 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6530echo "${ECHO_T}$ac_ct_AR" >&6; } 6531else 6532 { echo "$as_me:$LINENO: result: no" >&5 6533echo "${ECHO_T}no" >&6; } 6534fi 6535 6536 if test "x$ac_ct_AR" = x; then 6537 AR="false" 6538 else 6539 case $cross_compiling:$ac_tool_warned in 6540yes:) 6541{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6542whose name does not start with the host triplet. If you think this 6543configuration is useful to you, please write to autoconf@gnu.org." >&5 6544echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6545whose name does not start with the host triplet. If you think this 6546configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6547ac_tool_warned=yes ;; 6548esac 6549 AR=$ac_ct_AR 6550 fi 6551else 6552 AR="$ac_cv_prog_AR" 6553fi 6554 6555if test -n "$ac_tool_prefix"; then 6556 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6557set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6558{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6559echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6560if test "${ac_cv_prog_RANLIB+set}" = set; then 6561 echo $ECHO_N "(cached) $ECHO_C" >&6 6562else 6563 if test -n "$RANLIB"; then 6564 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6565else 6566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6567for as_dir in $PATH 6568do 6569 IFS=$as_save_IFS 6570 test -z "$as_dir" && as_dir=. 6571 for ac_exec_ext in '' $ac_executable_extensions; do 6572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6573 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6575 break 2 6576 fi 6577done 6578done 6579IFS=$as_save_IFS 6580 6581fi 6582fi 6583RANLIB=$ac_cv_prog_RANLIB 6584if test -n "$RANLIB"; then 6585 { echo "$as_me:$LINENO: result: $RANLIB" >&5 6586echo "${ECHO_T}$RANLIB" >&6; } 6587else 6588 { echo "$as_me:$LINENO: result: no" >&5 6589echo "${ECHO_T}no" >&6; } 6590fi 6591 6592 6593fi 6594if test -z "$ac_cv_prog_RANLIB"; then 6595 ac_ct_RANLIB=$RANLIB 6596 # Extract the first word of "ranlib", so it can be a program name with args. 6597set dummy ranlib; ac_word=$2 6598{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6599echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6600if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6601 echo $ECHO_N "(cached) $ECHO_C" >&6 6602else 6603 if test -n "$ac_ct_RANLIB"; then 6604 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6605else 6606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6607for as_dir in $PATH 6608do 6609 IFS=$as_save_IFS 6610 test -z "$as_dir" && as_dir=. 6611 for ac_exec_ext in '' $ac_executable_extensions; do 6612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6613 ac_cv_prog_ac_ct_RANLIB="ranlib" 6614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6615 break 2 6616 fi 6617done 6618done 6619IFS=$as_save_IFS 6620 6621fi 6622fi 6623ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6624if test -n "$ac_ct_RANLIB"; then 6625 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6626echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 6627else 6628 { echo "$as_me:$LINENO: result: no" >&5 6629echo "${ECHO_T}no" >&6; } 6630fi 6631 6632 if test "x$ac_ct_RANLIB" = x; then 6633 RANLIB=":" 6634 else 6635 case $cross_compiling:$ac_tool_warned in 6636yes:) 6637{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6638whose name does not start with the host triplet. If you think this 6639configuration is useful to you, please write to autoconf@gnu.org." >&5 6640echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6641whose name does not start with the host triplet. If you think this 6642configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6643ac_tool_warned=yes ;; 6644esac 6645 RANLIB=$ac_ct_RANLIB 6646 fi 6647else 6648 RANLIB="$ac_cv_prog_RANLIB" 6649fi 6650 6651if test -n "$ac_tool_prefix"; then 6652 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6653set dummy ${ac_tool_prefix}strip; ac_word=$2 6654{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6656if test "${ac_cv_prog_STRIP+set}" = set; then 6657 echo $ECHO_N "(cached) $ECHO_C" >&6 6658else 6659 if test -n "$STRIP"; then 6660 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6661else 6662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6663for as_dir in $PATH 6664do 6665 IFS=$as_save_IFS 6666 test -z "$as_dir" && as_dir=. 6667 for ac_exec_ext in '' $ac_executable_extensions; do 6668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6669 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6671 break 2 6672 fi 6673done 6674done 6675IFS=$as_save_IFS 6676 6677fi 6678fi 6679STRIP=$ac_cv_prog_STRIP 6680if test -n "$STRIP"; then 6681 { echo "$as_me:$LINENO: result: $STRIP" >&5 6682echo "${ECHO_T}$STRIP" >&6; } 6683else 6684 { echo "$as_me:$LINENO: result: no" >&5 6685echo "${ECHO_T}no" >&6; } 6686fi 6687 6688 6689fi 6690if test -z "$ac_cv_prog_STRIP"; then 6691 ac_ct_STRIP=$STRIP 6692 # Extract the first word of "strip", so it can be a program name with args. 6693set dummy strip; ac_word=$2 6694{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6695echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6696if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6697 echo $ECHO_N "(cached) $ECHO_C" >&6 6698else 6699 if test -n "$ac_ct_STRIP"; then 6700 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6701else 6702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6703for as_dir in $PATH 6704do 6705 IFS=$as_save_IFS 6706 test -z "$as_dir" && as_dir=. 6707 for ac_exec_ext in '' $ac_executable_extensions; do 6708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6709 ac_cv_prog_ac_ct_STRIP="strip" 6710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6711 break 2 6712 fi 6713done 6714done 6715IFS=$as_save_IFS 6716 6717fi 6718fi 6719ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6720if test -n "$ac_ct_STRIP"; then 6721 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6722echo "${ECHO_T}$ac_ct_STRIP" >&6; } 6723else 6724 { echo "$as_me:$LINENO: result: no" >&5 6725echo "${ECHO_T}no" >&6; } 6726fi 6727 6728 if test "x$ac_ct_STRIP" = x; then 6729 STRIP=":" 6730 else 6731 case $cross_compiling:$ac_tool_warned in 6732yes:) 6733{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6734whose name does not start with the host triplet. If you think this 6735configuration is useful to you, please write to autoconf@gnu.org." >&5 6736echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6737whose name does not start with the host triplet. If you think this 6738configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6739ac_tool_warned=yes ;; 6740esac 6741 STRIP=$ac_ct_STRIP 6742 fi 6743else 6744 STRIP="$ac_cv_prog_STRIP" 6745fi 6746 6747 6748old_CC="$CC" 6749old_CFLAGS="$CFLAGS" 6750 6751# Set sane defaults for various variables 6752test -z "$AR" && AR=ar 6753test -z "$AR_FLAGS" && AR_FLAGS=cru 6754test -z "$AS" && AS=as 6755test -z "$CC" && CC=cc 6756test -z "$LTCC" && LTCC=$CC 6757test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 6758test -z "$DLLTOOL" && DLLTOOL=dlltool 6759test -z "$LD" && LD=ld 6760test -z "$LN_S" && LN_S="ln -s" 6761test -z "$MAGIC_CMD" && MAGIC_CMD=file 6762test -z "$NM" && NM=nm 6763test -z "$SED" && SED=sed 6764test -z "$OBJDUMP" && OBJDUMP=objdump 6765test -z "$RANLIB" && RANLIB=: 6766test -z "$STRIP" && STRIP=: 6767test -z "$ac_objext" && ac_objext=o 6768 6769# Determine commands to create old-style static archives. 6770old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 6771old_postinstall_cmds='chmod 644 $oldlib' 6772old_postuninstall_cmds= 6773 6774if test -n "$RANLIB"; then 6775 case $host_os in 6776 openbsd*) 6777 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6778 ;; 6779 *) 6780 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6781 ;; 6782 esac 6783 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6784fi 6785 6786for cc_temp in $compiler""; do 6787 case $cc_temp in 6788 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6789 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6790 \-*) ;; 6791 *) break;; 6792 esac 6793done 6794cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6795 6796 6797# Only perform the check for file, if the check method requires it 6798case $deplibs_check_method in 6799file_magic*) 6800 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6801 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 6802echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } 6803if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6804 echo $ECHO_N "(cached) $ECHO_C" >&6 6805else 6806 case $MAGIC_CMD in 6807[\\/*] | ?:[\\/]*) 6808 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6809 ;; 6810*) 6811 lt_save_MAGIC_CMD="$MAGIC_CMD" 6812 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6813 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6814 for ac_dir in $ac_dummy; do 6815 IFS="$lt_save_ifs" 6816 test -z "$ac_dir" && ac_dir=. 6817 if test -f $ac_dir/${ac_tool_prefix}file; then 6818 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6819 if test -n "$file_magic_test_file"; then 6820 case $deplibs_check_method in 6821 "file_magic "*) 6822 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6823 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6824 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6825 $EGREP "$file_magic_regex" > /dev/null; then 6826 : 6827 else 6828 cat <<EOF 1>&2 6829 6830*** Warning: the command libtool uses to detect shared libraries, 6831*** $file_magic_cmd, produces output that libtool cannot recognize. 6832*** The result is that libtool may fail to recognize shared libraries 6833*** as such. This will affect the creation of libtool libraries that 6834*** depend on shared libraries, but programs linked with such libtool 6835*** libraries will work regardless of this problem. Nevertheless, you 6836*** may want to report the problem to your system manager and/or to 6837*** bug-libtool@gnu.org 6838 6839EOF 6840 fi ;; 6841 esac 6842 fi 6843 break 6844 fi 6845 done 6846 IFS="$lt_save_ifs" 6847 MAGIC_CMD="$lt_save_MAGIC_CMD" 6848 ;; 6849esac 6850fi 6851 6852MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6853if test -n "$MAGIC_CMD"; then 6854 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6855echo "${ECHO_T}$MAGIC_CMD" >&6; } 6856else 6857 { echo "$as_me:$LINENO: result: no" >&5 6858echo "${ECHO_T}no" >&6; } 6859fi 6860 6861if test -z "$lt_cv_path_MAGIC_CMD"; then 6862 if test -n "$ac_tool_prefix"; then 6863 { echo "$as_me:$LINENO: checking for file" >&5 6864echo $ECHO_N "checking for file... $ECHO_C" >&6; } 6865if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6866 echo $ECHO_N "(cached) $ECHO_C" >&6 6867else 6868 case $MAGIC_CMD in 6869[\\/*] | ?:[\\/]*) 6870 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6871 ;; 6872*) 6873 lt_save_MAGIC_CMD="$MAGIC_CMD" 6874 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6875 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6876 for ac_dir in $ac_dummy; do 6877 IFS="$lt_save_ifs" 6878 test -z "$ac_dir" && ac_dir=. 6879 if test -f $ac_dir/file; then 6880 lt_cv_path_MAGIC_CMD="$ac_dir/file" 6881 if test -n "$file_magic_test_file"; then 6882 case $deplibs_check_method in 6883 "file_magic "*) 6884 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6885 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6886 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6887 $EGREP "$file_magic_regex" > /dev/null; then 6888 : 6889 else 6890 cat <<EOF 1>&2 6891 6892*** Warning: the command libtool uses to detect shared libraries, 6893*** $file_magic_cmd, produces output that libtool cannot recognize. 6894*** The result is that libtool may fail to recognize shared libraries 6895*** as such. This will affect the creation of libtool libraries that 6896*** depend on shared libraries, but programs linked with such libtool 6897*** libraries will work regardless of this problem. Nevertheless, you 6898*** may want to report the problem to your system manager and/or to 6899*** bug-libtool@gnu.org 6900 6901EOF 6902 fi ;; 6903 esac 6904 fi 6905 break 6906 fi 6907 done 6908 IFS="$lt_save_ifs" 6909 MAGIC_CMD="$lt_save_MAGIC_CMD" 6910 ;; 6911esac 6912fi 6913 6914MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6915if test -n "$MAGIC_CMD"; then 6916 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6917echo "${ECHO_T}$MAGIC_CMD" >&6; } 6918else 6919 { echo "$as_me:$LINENO: result: no" >&5 6920echo "${ECHO_T}no" >&6; } 6921fi 6922 6923 else 6924 MAGIC_CMD=: 6925 fi 6926fi 6927 6928 fi 6929 ;; 6930esac 6931 6932enable_dlopen=no 6933enable_win32_dll=no 6934 6935# Check whether --enable-libtool-lock was given. 6936if test "${enable_libtool_lock+set}" = set; then 6937 enableval=$enable_libtool_lock; 6938fi 6939 6940test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6941 6942 6943# Check whether --with-pic was given. 6944if test "${with_pic+set}" = set; then 6945 withval=$with_pic; pic_mode="$withval" 6946else 6947 pic_mode=default 6948fi 6949 6950test -z "$pic_mode" && pic_mode=default 6951 6952# Use C for the default configuration in the libtool script 6953tagname= 6954lt_save_CC="$CC" 6955ac_ext=c 6956ac_cpp='$CPP $CPPFLAGS' 6957ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6958ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6959ac_compiler_gnu=$ac_cv_c_compiler_gnu 6960 6961 6962# Source file extension for C test sources. 6963ac_ext=c 6964 6965# Object file extension for compiled C test sources. 6966objext=o 6967objext=$objext 6968 6969# Code to be used in simple compile tests 6970lt_simple_compile_test_code="int some_variable = 0;\n" 6971 6972# Code to be used in simple link tests 6973lt_simple_link_test_code='int main(){return(0);}\n' 6974 6975 6976# If no C compiler was specified, use CC. 6977LTCC=${LTCC-"$CC"} 6978 6979# If no C compiler flags were specified, use CFLAGS. 6980LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6981 6982# Allow CC to be a program name with arguments. 6983compiler=$CC 6984 6985 6986# save warnings/boilerplate of simple test code 6987ac_outfile=conftest.$ac_objext 6988printf "$lt_simple_compile_test_code" >conftest.$ac_ext 6989eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 6990_lt_compiler_boilerplate=`cat conftest.err` 6991$rm conftest* 6992 6993ac_outfile=conftest.$ac_objext 6994printf "$lt_simple_link_test_code" >conftest.$ac_ext 6995eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 6996_lt_linker_boilerplate=`cat conftest.err` 6997$rm conftest* 6998 6999 7000 7001lt_prog_compiler_no_builtin_flag= 7002 7003if test "$GCC" = yes; then 7004 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7005 7006 7007{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7008echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 7009if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7010 echo $ECHO_N "(cached) $ECHO_C" >&6 7011else 7012 lt_cv_prog_compiler_rtti_exceptions=no 7013 ac_outfile=conftest.$ac_objext 7014 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7015 lt_compiler_flag="-fno-rtti -fno-exceptions" 7016 # Insert the option either (1) after the last *FLAGS variable, or 7017 # (2) before a word containing "conftest.", or (3) at the end. 7018 # Note that $ac_compile itself does not contain backslashes and begins 7019 # with a dollar sign (not a hyphen), so the echo should work correctly. 7020 # The option is referenced via a variable to avoid confusing sed. 7021 lt_compile=`echo "$ac_compile" | $SED \ 7022 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7023 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7024 -e 's:$: $lt_compiler_flag:'` 7025 (eval echo "\"\$as_me:7025: $lt_compile\"" >&5) 7026 (eval "$lt_compile" 2>conftest.err) 7027 ac_status=$? 7028 cat conftest.err >&5 7029 echo "$as_me:7029: \$? = $ac_status" >&5 7030 if (exit $ac_status) && test -s "$ac_outfile"; then 7031 # The compiler can only warn and ignore the option if not recognized 7032 # So say no if there are warnings other than the usual output. 7033 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7034 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7035 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7036 lt_cv_prog_compiler_rtti_exceptions=yes 7037 fi 7038 fi 7039 $rm conftest* 7040 7041fi 7042{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7043echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7044 7045if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7046 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7047else 7048 : 7049fi 7050 7051fi 7052 7053lt_prog_compiler_wl= 7054lt_prog_compiler_pic= 7055lt_prog_compiler_static= 7056 7057{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7058echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 7059 7060 if test "$GCC" = yes; then 7061 lt_prog_compiler_wl='-Wl,' 7062 lt_prog_compiler_static='-static' 7063 7064 case $host_os in 7065 aix*) 7066 # All AIX code is PIC. 7067 if test "$host_cpu" = ia64; then 7068 # AIX 5 now supports IA64 processor 7069 lt_prog_compiler_static='-Bstatic' 7070 fi 7071 ;; 7072 7073 amigaos*) 7074 # FIXME: we need at least 68020 code to build shared libraries, but 7075 # adding the `-m68020' flag to GCC prevents building anything better, 7076 # like `-m68040'. 7077 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7078 ;; 7079 7080 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7081 # PIC is the default for these OSes. 7082 ;; 7083 7084 mingw* | pw32* | os2*) 7085 # This hack is so that the source file can tell whether it is being 7086 # built for inclusion in a dll (and should export symbols for example). 7087 lt_prog_compiler_pic='-DDLL_EXPORT' 7088 ;; 7089 7090 darwin* | rhapsody*) 7091 # PIC is the default on this platform 7092 # Common symbols not allowed in MH_DYLIB files 7093 lt_prog_compiler_pic='-fno-common' 7094 ;; 7095 7096 interix3*) 7097 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7098 # Instead, we relocate shared libraries at runtime. 7099 ;; 7100 7101 msdosdjgpp*) 7102 # Just because we use GCC doesn't mean we suddenly get shared libraries 7103 # on systems that don't support them. 7104 lt_prog_compiler_can_build_shared=no 7105 enable_shared=no 7106 ;; 7107 7108 sysv4*MP*) 7109 if test -d /usr/nec; then 7110 lt_prog_compiler_pic=-Kconform_pic 7111 fi 7112 ;; 7113 7114 hpux*) 7115 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7116 # not for PA HP-UX. 7117 case $host_cpu in 7118 hppa*64*|ia64*) 7119 # +Z the default 7120 ;; 7121 *) 7122 lt_prog_compiler_pic='-fPIC' 7123 ;; 7124 esac 7125 ;; 7126 7127 *) 7128 lt_prog_compiler_pic='-fPIC' 7129 ;; 7130 esac 7131 else 7132 # PORTME Check for flag to pass linker flags through the system compiler. 7133 case $host_os in 7134 aix*) 7135 lt_prog_compiler_wl='-Wl,' 7136 if test "$host_cpu" = ia64; then 7137 # AIX 5 now supports IA64 processor 7138 lt_prog_compiler_static='-Bstatic' 7139 else 7140 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7141 fi 7142 ;; 7143 darwin*) 7144 # PIC is the default on this platform 7145 # Common symbols not allowed in MH_DYLIB files 7146 case $cc_basename in 7147 xlc*) 7148 lt_prog_compiler_pic='-qnocommon' 7149 lt_prog_compiler_wl='-Wl,' 7150 ;; 7151 esac 7152 ;; 7153 7154 mingw* | pw32* | os2*) 7155 # This hack is so that the source file can tell whether it is being 7156 # built for inclusion in a dll (and should export symbols for example). 7157 lt_prog_compiler_pic='-DDLL_EXPORT' 7158 ;; 7159 7160 hpux9* | hpux10* | hpux11*) 7161 lt_prog_compiler_wl='-Wl,' 7162 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7163 # not for PA HP-UX. 7164 case $host_cpu in 7165 hppa*64*|ia64*) 7166 # +Z the default 7167 ;; 7168 *) 7169 lt_prog_compiler_pic='+Z' 7170 ;; 7171 esac 7172 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7173 lt_prog_compiler_static='${wl}-a ${wl}archive' 7174 ;; 7175 7176 irix5* | irix6* | nonstopux*) 7177 lt_prog_compiler_wl='-Wl,' 7178 # PIC (with -KPIC) is the default. 7179 lt_prog_compiler_static='-non_shared' 7180 ;; 7181 7182 newsos6) 7183 lt_prog_compiler_pic='-KPIC' 7184 lt_prog_compiler_static='-Bstatic' 7185 ;; 7186 7187 linux* | k*bsd*-gnu) 7188 case $cc_basename in 7189 icc* | ecc*) 7190 lt_prog_compiler_wl='-Wl,' 7191 lt_prog_compiler_pic='-KPIC' 7192 lt_prog_compiler_static='-static' 7193 ;; 7194 pgcc* | pgf77* | pgf90* | pgf95*) 7195 # Portland Group compilers (*not* the Pentium gcc compiler, 7196 # which looks to be a dead project) 7197 lt_prog_compiler_wl='-Wl,' 7198 lt_prog_compiler_pic='-fpic' 7199 lt_prog_compiler_static='-Bstatic' 7200 ;; 7201 ccc*) 7202 lt_prog_compiler_wl='-Wl,' 7203 # All Alpha code is PIC. 7204 lt_prog_compiler_static='-non_shared' 7205 ;; 7206 esac 7207 ;; 7208 7209 osf3* | osf4* | osf5*) 7210 lt_prog_compiler_wl='-Wl,' 7211 # All OSF/1 code is PIC. 7212 lt_prog_compiler_static='-non_shared' 7213 ;; 7214 7215 solaris*) 7216 lt_prog_compiler_pic='-KPIC' 7217 lt_prog_compiler_static='-Bstatic' 7218 case $cc_basename in 7219 f77* | f90* | f95*) 7220 lt_prog_compiler_wl='-Qoption ld ';; 7221 *) 7222 lt_prog_compiler_wl='-Wl,';; 7223 esac 7224 ;; 7225 7226 sunos4*) 7227 lt_prog_compiler_wl='-Qoption ld ' 7228 lt_prog_compiler_pic='-PIC' 7229 lt_prog_compiler_static='-Bstatic' 7230 ;; 7231 7232 sysv4 | sysv4.2uw2* | sysv4.3*) 7233 lt_prog_compiler_wl='-Wl,' 7234 lt_prog_compiler_pic='-KPIC' 7235 lt_prog_compiler_static='-Bstatic' 7236 ;; 7237 7238 sysv4*MP*) 7239 if test -d /usr/nec ;then 7240 lt_prog_compiler_pic='-Kconform_pic' 7241 lt_prog_compiler_static='-Bstatic' 7242 fi 7243 ;; 7244 7245 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7246 lt_prog_compiler_wl='-Wl,' 7247 lt_prog_compiler_pic='-KPIC' 7248 lt_prog_compiler_static='-Bstatic' 7249 ;; 7250 7251 unicos*) 7252 lt_prog_compiler_wl='-Wl,' 7253 lt_prog_compiler_can_build_shared=no 7254 ;; 7255 7256 uts4*) 7257 lt_prog_compiler_pic='-pic' 7258 lt_prog_compiler_static='-Bstatic' 7259 ;; 7260 7261 *) 7262 lt_prog_compiler_can_build_shared=no 7263 ;; 7264 esac 7265 fi 7266 7267{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7268echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 7269 7270# 7271# Check to make sure the PIC flag actually works. 7272# 7273if test -n "$lt_prog_compiler_pic"; then 7274 7275{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7276echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 7277if test "${lt_prog_compiler_pic_works+set}" = set; then 7278 echo $ECHO_N "(cached) $ECHO_C" >&6 7279else 7280 lt_prog_compiler_pic_works=no 7281 ac_outfile=conftest.$ac_objext 7282 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7283 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7284 # Insert the option either (1) after the last *FLAGS variable, or 7285 # (2) before a word containing "conftest.", or (3) at the end. 7286 # Note that $ac_compile itself does not contain backslashes and begins 7287 # with a dollar sign (not a hyphen), so the echo should work correctly. 7288 # The option is referenced via a variable to avoid confusing sed. 7289 lt_compile=`echo "$ac_compile" | $SED \ 7290 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7291 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7292 -e 's:$: $lt_compiler_flag:'` 7293 (eval echo "\"\$as_me:7293: $lt_compile\"" >&5) 7294 (eval "$lt_compile" 2>conftest.err) 7295 ac_status=$? 7296 cat conftest.err >&5 7297 echo "$as_me:7297: \$? = $ac_status" >&5 7298 if (exit $ac_status) && test -s "$ac_outfile"; then 7299 # The compiler can only warn and ignore the option if not recognized 7300 # So say no if there are warnings other than the usual output. 7301 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7302 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7303 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7304 lt_prog_compiler_pic_works=yes 7305 fi 7306 fi 7307 $rm conftest* 7308 7309fi 7310{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 7311echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } 7312 7313if test x"$lt_prog_compiler_pic_works" = xyes; then 7314 case $lt_prog_compiler_pic in 7315 "" | " "*) ;; 7316 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7317 esac 7318else 7319 lt_prog_compiler_pic= 7320 lt_prog_compiler_can_build_shared=no 7321fi 7322 7323fi 7324case $host_os in 7325 # For platforms which do not support PIC, -DPIC is meaningless: 7326 *djgpp*) 7327 lt_prog_compiler_pic= 7328 ;; 7329 *) 7330 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7331 ;; 7332esac 7333 7334# 7335# Check to make sure the static flag actually works. 7336# 7337wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7338{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7339echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 7340if test "${lt_prog_compiler_static_works+set}" = set; then 7341 echo $ECHO_N "(cached) $ECHO_C" >&6 7342else 7343 lt_prog_compiler_static_works=no 7344 save_LDFLAGS="$LDFLAGS" 7345 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7346 printf "$lt_simple_link_test_code" > conftest.$ac_ext 7347 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7348 # The linker can only warn and ignore the option if not recognized 7349 # So say no if there are warnings 7350 if test -s conftest.err; then 7351 # Append any errors to the config.log. 7352 cat conftest.err 1>&5 7353 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7354 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7355 if diff conftest.exp conftest.er2 >/dev/null; then 7356 lt_prog_compiler_static_works=yes 7357 fi 7358 else 7359 lt_prog_compiler_static_works=yes 7360 fi 7361 fi 7362 $rm conftest* 7363 LDFLAGS="$save_LDFLAGS" 7364 7365fi 7366{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 7367echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } 7368 7369if test x"$lt_prog_compiler_static_works" = xyes; then 7370 : 7371else 7372 lt_prog_compiler_static= 7373fi 7374 7375 7376{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7377echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 7378if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7379 echo $ECHO_N "(cached) $ECHO_C" >&6 7380else 7381 lt_cv_prog_compiler_c_o=no 7382 $rm -r conftest 2>/dev/null 7383 mkdir conftest 7384 cd conftest 7385 mkdir out 7386 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7387 7388 lt_compiler_flag="-o out/conftest2.$ac_objext" 7389 # Insert the option either (1) after the last *FLAGS variable, or 7390 # (2) before a word containing "conftest.", or (3) at the end. 7391 # Note that $ac_compile itself does not contain backslashes and begins 7392 # with a dollar sign (not a hyphen), so the echo should work correctly. 7393 lt_compile=`echo "$ac_compile" | $SED \ 7394 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7395 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7396 -e 's:$: $lt_compiler_flag:'` 7397 (eval echo "\"\$as_me:7397: $lt_compile\"" >&5) 7398 (eval "$lt_compile" 2>out/conftest.err) 7399 ac_status=$? 7400 cat out/conftest.err >&5 7401 echo "$as_me:7401: \$? = $ac_status" >&5 7402 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7403 then 7404 # The compiler can only warn and ignore the option if not recognized 7405 # So say no if there are warnings 7406 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7407 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7408 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7409 lt_cv_prog_compiler_c_o=yes 7410 fi 7411 fi 7412 chmod u+w . 2>&5 7413 $rm conftest* 7414 # SGI C++ compiler will create directory out/ii_files/ for 7415 # template instantiation 7416 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 7417 $rm out/* && rmdir out 7418 cd .. 7419 rmdir conftest 7420 $rm conftest* 7421 7422fi 7423{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7424echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 7425 7426 7427hard_links="nottested" 7428if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7429 # do not overwrite the value of need_locks provided by the user 7430 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7431echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 7432 hard_links=yes 7433 $rm conftest* 7434 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7435 touch conftest.a 7436 ln conftest.a conftest.b 2>&5 || hard_links=no 7437 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7438 { echo "$as_me:$LINENO: result: $hard_links" >&5 7439echo "${ECHO_T}$hard_links" >&6; } 7440 if test "$hard_links" = no; then 7441 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7442echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7443 need_locks=warn 7444 fi 7445else 7446 need_locks=no 7447fi 7448 7449{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7450echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 7451 7452 runpath_var= 7453 allow_undefined_flag= 7454 enable_shared_with_static_runtimes=no 7455 archive_cmds= 7456 archive_expsym_cmds= 7457 old_archive_From_new_cmds= 7458 old_archive_from_expsyms_cmds= 7459 export_dynamic_flag_spec= 7460 whole_archive_flag_spec= 7461 thread_safe_flag_spec= 7462 hardcode_libdir_flag_spec= 7463 hardcode_libdir_flag_spec_ld= 7464 hardcode_libdir_separator= 7465 hardcode_direct=no 7466 hardcode_minus_L=no 7467 hardcode_shlibpath_var=unsupported 7468 link_all_deplibs=unknown 7469 hardcode_automatic=no 7470 module_cmds= 7471 module_expsym_cmds= 7472 always_export_symbols=no 7473 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7474 # include_expsyms should be a list of space-separated symbols to be *always* 7475 # included in the symbol list 7476 include_expsyms= 7477 # exclude_expsyms can be an extended regexp of symbols to exclude 7478 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7479 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7480 # as well as any symbol that contains `d'. 7481 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 7482 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7483 # platforms (ab)use it in PIC code, but their linkers get confused if 7484 # the symbol is explicitly referenced. Since portable code cannot 7485 # rely on this symbol name, it's probably fine to never include it in 7486 # preloaded symbol tables. 7487 extract_expsyms_cmds= 7488 # Just being paranoid about ensuring that cc_basename is set. 7489 for cc_temp in $compiler""; do 7490 case $cc_temp in 7491 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7492 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7493 \-*) ;; 7494 *) break;; 7495 esac 7496done 7497cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7498 7499 case $host_os in 7500 cygwin* | mingw* | pw32*) 7501 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7502 # When not using gcc, we currently assume that we are using 7503 # Microsoft Visual C++. 7504 if test "$GCC" != yes; then 7505 with_gnu_ld=no 7506 fi 7507 ;; 7508 interix*) 7509 # we just hope/assume this is gcc and not c89 (= MSVC++) 7510 with_gnu_ld=yes 7511 ;; 7512 openbsd*) 7513 with_gnu_ld=no 7514 ;; 7515 esac 7516 7517 ld_shlibs=yes 7518 if test "$with_gnu_ld" = yes; then 7519 # If archive_cmds runs LD, not CC, wlarc should be empty 7520 wlarc='${wl}' 7521 7522 # Set some defaults for GNU ld with shared library support. These 7523 # are reset later if shared libraries are not supported. Putting them 7524 # here allows them to be overridden if necessary. 7525 runpath_var=LD_RUN_PATH 7526 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 7527 export_dynamic_flag_spec='${wl}--export-dynamic' 7528 # ancient GNU ld didn't support --whole-archive et. al. 7529 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 7530 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7531 else 7532 whole_archive_flag_spec= 7533 fi 7534 supports_anon_versioning=no 7535 case `$LD -v 2>/dev/null` in 7536 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7537 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7538 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7539 *\ 2.11.*) ;; # other 2.11 versions 7540 *) supports_anon_versioning=yes ;; 7541 esac 7542 7543 # See if GNU ld supports shared libraries. 7544 case $host_os in 7545 aix3* | aix4* | aix5*) 7546 # On AIX/PPC, the GNU linker is very broken 7547 if test "$host_cpu" != ia64; then 7548 ld_shlibs=no 7549 cat <<EOF 1>&2 7550 7551*** Warning: the GNU linker, at least up to release 2.9.1, is reported 7552*** to be unable to reliably create shared libraries on AIX. 7553*** Therefore, libtool is disabling shared libraries support. If you 7554*** really care for shared libraries, you may want to modify your PATH 7555*** so that a non-GNU linker is found, and then restart. 7556 7557EOF 7558 fi 7559 ;; 7560 7561 amigaos*) 7562 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)' 7563 hardcode_libdir_flag_spec='-L$libdir' 7564 hardcode_minus_L=yes 7565 7566 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 7567 # that the semantics of dynamic libraries on AmigaOS, at least up 7568 # to version 4, is to share data among multiple programs linked 7569 # with the same dynamic library. Since this doesn't match the 7570 # behavior of shared libraries on other platforms, we can't use 7571 # them. 7572 ld_shlibs=no 7573 ;; 7574 7575 beos*) 7576 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7577 allow_undefined_flag=unsupported 7578 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 7579 # support --undefined. This deserves some investigation. FIXME 7580 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7581 else 7582 ld_shlibs=no 7583 fi 7584 ;; 7585 7586 cygwin* | mingw* | pw32*) 7587 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 7588 # as there is no search path for DLLs. 7589 hardcode_libdir_flag_spec='-L$libdir' 7590 allow_undefined_flag=unsupported 7591 always_export_symbols=no 7592 enable_shared_with_static_runtimes=yes 7593 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 7594 7595 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 7596 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7597 # If the export-symbols file already is a .def file (1st line 7598 # is EXPORTS), use it as is; otherwise, prepend... 7599 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7600 cp $export_symbols $output_objdir/$soname.def; 7601 else 7602 echo EXPORTS > $output_objdir/$soname.def; 7603 cat $export_symbols >> $output_objdir/$soname.def; 7604 fi~ 7605 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7606 else 7607 ld_shlibs=no 7608 fi 7609 ;; 7610 7611 interix3*) 7612 hardcode_direct=no 7613 hardcode_shlibpath_var=no 7614 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7615 export_dynamic_flag_spec='${wl}-E' 7616 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 7617 # Instead, shared libraries are loaded at an image base (0x10000000 by 7618 # default) and relocated if they conflict, which is a slow very memory 7619 # consuming and fragmenting process. To avoid this, we pick a random, 7620 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 7621 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 7622 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 7623 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' 7624 ;; 7625 7626 linux* | k*bsd*-gnu) 7627 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7628 tmp_addflag= 7629 case $cc_basename,$host_cpu in 7630 pgcc*) # Portland Group C compiler 7631 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' 7632 tmp_addflag=' $pic_flag' 7633 ;; 7634 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 7635 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' 7636 tmp_addflag=' $pic_flag -Mnomain' ;; 7637 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 7638 tmp_addflag=' -i_dynamic' ;; 7639 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 7640 tmp_addflag=' -i_dynamic -nofor_main' ;; 7641 ifc* | ifort*) # Intel Fortran compiler 7642 tmp_addflag=' -nofor_main' ;; 7643 esac 7644 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7645 7646 if test $supports_anon_versioning = yes; then 7647 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 7648 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7649 $echo "local: *; };" >> $output_objdir/$libname.ver~ 7650 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 7651 fi 7652 link_all_deplibs=no 7653 else 7654 ld_shlibs=no 7655 fi 7656 ;; 7657 7658 netbsd* | netbsdelf*-gnu) 7659 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7660 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 7661 wlarc= 7662 else 7663 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7664 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7665 fi 7666 ;; 7667 7668 solaris*) 7669 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 7670 ld_shlibs=no 7671 cat <<EOF 1>&2 7672 7673*** Warning: The releases 2.8.* of the GNU linker cannot reliably 7674*** create shared libraries on Solaris systems. Therefore, libtool 7675*** is disabling shared libraries support. We urge you to upgrade GNU 7676*** binutils to release 2.9.1 or newer. Another option is to modify 7677*** your PATH or compiler configuration so that the native linker is 7678*** used, and then restart. 7679 7680EOF 7681 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7682 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7683 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7684 else 7685 ld_shlibs=no 7686 fi 7687 ;; 7688 7689 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 7690 case `$LD -v 2>&1` in 7691 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 7692 ld_shlibs=no 7693 cat <<_LT_EOF 1>&2 7694 7695*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 7696*** reliably create shared libraries on SCO systems. Therefore, libtool 7697*** is disabling shared libraries support. We urge you to upgrade GNU 7698*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 7699*** your PATH or compiler configuration so that the native linker is 7700*** used, and then restart. 7701 7702_LT_EOF 7703 ;; 7704 *) 7705 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7706 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 7707 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 7708 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 7709 else 7710 ld_shlibs=no 7711 fi 7712 ;; 7713 esac 7714 ;; 7715 7716 sunos4*) 7717 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7718 wlarc= 7719 hardcode_direct=yes 7720 hardcode_shlibpath_var=no 7721 ;; 7722 7723 *) 7724 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7725 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7726 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7727 else 7728 ld_shlibs=no 7729 fi 7730 ;; 7731 esac 7732 7733 if test "$ld_shlibs" = no; then 7734 runpath_var= 7735 hardcode_libdir_flag_spec= 7736 export_dynamic_flag_spec= 7737 whole_archive_flag_spec= 7738 fi 7739 else 7740 # PORTME fill in a description of your system's linker (not GNU ld) 7741 case $host_os in 7742 aix3*) 7743 allow_undefined_flag=unsupported 7744 always_export_symbols=yes 7745 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' 7746 # Note: this linker hardcodes the directories in LIBPATH if there 7747 # are no directories specified by -L. 7748 hardcode_minus_L=yes 7749 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 7750 # Neither direct hardcoding nor static linking is supported with a 7751 # broken collect2. 7752 hardcode_direct=unsupported 7753 fi 7754 ;; 7755 7756 aix4* | aix5*) 7757 if test "$host_cpu" = ia64; then 7758 # On IA64, the linker does run time linking by default, so we don't 7759 # have to do anything special. 7760 aix_use_runtimelinking=no 7761 exp_sym_flag='-Bexport' 7762 no_entry_flag="" 7763 else 7764 # If we're using GNU nm, then we don't want the "-C" option. 7765 # -C means demangle to AIX nm, but means don't demangle with GNU nm 7766 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 7767 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' 7768 else 7769 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' 7770 fi 7771 aix_use_runtimelinking=no 7772 7773 # Test if we are trying to use run time linking or normal 7774 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7775 # need to do runtime linking. 7776 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 7777 for ld_flag in $LDFLAGS; do 7778 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 7779 aix_use_runtimelinking=yes 7780 break 7781 fi 7782 done 7783 ;; 7784 esac 7785 7786 exp_sym_flag='-bexport' 7787 no_entry_flag='-bnoentry' 7788 fi 7789 7790 # When large executables or shared objects are built, AIX ld can 7791 # have problems creating the table of contents. If linking a library 7792 # or program results in "error TOC overflow" add -mminimal-toc to 7793 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7794 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7795 7796 archive_cmds='' 7797 hardcode_direct=yes 7798 hardcode_libdir_separator=':' 7799 link_all_deplibs=yes 7800 7801 if test "$GCC" = yes; then 7802 case $host_os in aix4.[012]|aix4.[012].*) 7803 # We only want to do this on AIX 4.2 and lower, the check 7804 # below for broken collect2 doesn't work under 4.3+ 7805 collect2name=`${CC} -print-prog-name=collect2` 7806 if test -f "$collect2name" && \ 7807 strings "$collect2name" | grep resolve_lib_name >/dev/null 7808 then 7809 # We have reworked collect2 7810 hardcode_direct=yes 7811 else 7812 # We have old collect2 7813 hardcode_direct=unsupported 7814 # It fails to find uninstalled libraries when the uninstalled 7815 # path is not listed in the libpath. Setting hardcode_minus_L 7816 # to unsupported forces relinking 7817 hardcode_minus_L=yes 7818 hardcode_libdir_flag_spec='-L$libdir' 7819 hardcode_libdir_separator= 7820 fi 7821 ;; 7822 esac 7823 shared_flag='-shared' 7824 if test "$aix_use_runtimelinking" = yes; then 7825 shared_flag="$shared_flag "'${wl}-G' 7826 fi 7827 else 7828 # not using gcc 7829 if test "$host_cpu" = ia64; then 7830 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7831 # chokes on -Wl,-G. The following line is correct: 7832 shared_flag='-G' 7833 else 7834 if test "$aix_use_runtimelinking" = yes; then 7835 shared_flag='${wl}-G' 7836 else 7837 shared_flag='${wl}-bM:SRE' 7838 fi 7839 fi 7840 fi 7841 7842 # It seems that -bexpall does not export symbols beginning with 7843 # underscore (_), so it is better to generate a list of symbols to export. 7844 always_export_symbols=yes 7845 if test "$aix_use_runtimelinking" = yes; then 7846 # Warning - without using the other runtime loading flags (-brtl), 7847 # -berok will link without error, but may produce a broken library. 7848 allow_undefined_flag='-berok' 7849 # Determine the default libpath from the value encoded in an empty executable. 7850 cat >conftest.$ac_ext <<_ACEOF 7851/* confdefs.h. */ 7852_ACEOF 7853cat confdefs.h >>conftest.$ac_ext 7854cat >>conftest.$ac_ext <<_ACEOF 7855/* end confdefs.h. */ 7856 7857int 7858main () 7859{ 7860 7861 ; 7862 return 0; 7863} 7864_ACEOF 7865rm -f conftest.$ac_objext conftest$ac_exeext 7866if { (ac_try="$ac_link" 7867case "(($ac_try" in 7868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7869 *) ac_try_echo=$ac_try;; 7870esac 7871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7872 (eval "$ac_link") 2>conftest.er1 7873 ac_status=$? 7874 grep -v '^ *+' conftest.er1 >conftest.err 7875 rm -f conftest.er1 7876 cat conftest.err >&5 7877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7878 (exit $ac_status); } && { 7879 test -z "$ac_c_werror_flag" || 7880 test ! -s conftest.err 7881 } && test -s conftest$ac_exeext && 7882 $as_test_x conftest$ac_exeext; then 7883 7884aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7885}'` 7886# Check for a 64-bit object if we didn't find anything. 7887if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7888}'`; fi 7889else 7890 echo "$as_me: failed program was:" >&5 7891sed 's/^/| /' conftest.$ac_ext >&5 7892 7893 7894fi 7895 7896rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7897 conftest$ac_exeext conftest.$ac_ext 7898if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7899 7900 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7901 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" 7902 else 7903 if test "$host_cpu" = ia64; then 7904 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 7905 allow_undefined_flag="-z nodefs" 7906 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" 7907 else 7908 # Determine the default libpath from the value encoded in an empty executable. 7909 cat >conftest.$ac_ext <<_ACEOF 7910/* confdefs.h. */ 7911_ACEOF 7912cat confdefs.h >>conftest.$ac_ext 7913cat >>conftest.$ac_ext <<_ACEOF 7914/* end confdefs.h. */ 7915 7916int 7917main () 7918{ 7919 7920 ; 7921 return 0; 7922} 7923_ACEOF 7924rm -f conftest.$ac_objext conftest$ac_exeext 7925if { (ac_try="$ac_link" 7926case "(($ac_try" in 7927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7928 *) ac_try_echo=$ac_try;; 7929esac 7930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7931 (eval "$ac_link") 2>conftest.er1 7932 ac_status=$? 7933 grep -v '^ *+' conftest.er1 >conftest.err 7934 rm -f conftest.er1 7935 cat conftest.err >&5 7936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7937 (exit $ac_status); } && { 7938 test -z "$ac_c_werror_flag" || 7939 test ! -s conftest.err 7940 } && test -s conftest$ac_exeext && 7941 $as_test_x conftest$ac_exeext; then 7942 7943aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7944}'` 7945# Check for a 64-bit object if we didn't find anything. 7946if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7947}'`; fi 7948else 7949 echo "$as_me: failed program was:" >&5 7950sed 's/^/| /' conftest.$ac_ext >&5 7951 7952 7953fi 7954 7955rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7956 conftest$ac_exeext conftest.$ac_ext 7957if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7958 7959 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7960 # Warning - without using the other run time loading flags, 7961 # -berok will link without error, but may produce a broken library. 7962 no_undefined_flag=' ${wl}-bernotok' 7963 allow_undefined_flag=' ${wl}-berok' 7964 # Exported symbols can be pulled into shared objects from archives 7965 whole_archive_flag_spec='$convenience' 7966 archive_cmds_need_lc=yes 7967 # This is similar to how AIX traditionally builds its shared libraries. 7968 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' 7969 fi 7970 fi 7971 ;; 7972 7973 amigaos*) 7974 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)' 7975 hardcode_libdir_flag_spec='-L$libdir' 7976 hardcode_minus_L=yes 7977 # see comment about different semantics on the GNU ld section 7978 ld_shlibs=no 7979 ;; 7980 7981 bsdi[45]*) 7982 export_dynamic_flag_spec=-rdynamic 7983 ;; 7984 7985 cygwin* | mingw* | pw32*) 7986 # When not using gcc, we currently assume that we are using 7987 # Microsoft Visual C++. 7988 # hardcode_libdir_flag_spec is actually meaningless, as there is 7989 # no search path for DLLs. 7990 hardcode_libdir_flag_spec=' ' 7991 allow_undefined_flag=unsupported 7992 # Tell ltmain to make .lib files, not .a files. 7993 libext=lib 7994 # Tell ltmain to make .dll files, not .so files. 7995 shrext_cmds=".dll" 7996 # FIXME: Setting linknames here is a bad hack. 7997 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 7998 # The linker will automatically build a .lib file if we build a DLL. 7999 old_archive_From_new_cmds='true' 8000 # FIXME: Should let the user specify the lib program. 8001 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 8002 fix_srcfile_path='`cygpath -w "$srcfile"`' 8003 enable_shared_with_static_runtimes=yes 8004 ;; 8005 8006 darwin* | rhapsody*) 8007 case $host_os in 8008 rhapsody* | darwin1.[012]) 8009 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8010 ;; 8011 *) # Darwin 1.3 on 8012 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8013 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8014 else 8015 case ${MACOSX_DEPLOYMENT_TARGET} in 8016 10.[012]) 8017 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8018 ;; 8019 10.*) 8020 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8021 ;; 8022 esac 8023 fi 8024 ;; 8025 esac 8026 archive_cmds_need_lc=no 8027 hardcode_direct=no 8028 hardcode_automatic=yes 8029 hardcode_shlibpath_var=unsupported 8030 whole_archive_flag_spec='' 8031 link_all_deplibs=yes 8032 if test "$GCC" = yes ; then 8033 output_verbose_link_cmd='echo' 8034 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 8035 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8036 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8037 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}' 8038 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}' 8039 else 8040 case $cc_basename in 8041 xlc*) 8042 output_verbose_link_cmd='echo' 8043 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 8044 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8045 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8046 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8047 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}' 8048 ;; 8049 *) 8050 ld_shlibs=no 8051 ;; 8052 esac 8053 fi 8054 ;; 8055 8056 dgux*) 8057 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8058 hardcode_libdir_flag_spec='-L$libdir' 8059 hardcode_shlibpath_var=no 8060 ;; 8061 8062 freebsd1*) 8063 ld_shlibs=no 8064 ;; 8065 8066 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8067 # support. Future versions do this automatically, but an explicit c++rt0.o 8068 # does not break anything, and helps significantly (at the cost of a little 8069 # extra space). 8070 freebsd2.2*) 8071 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8072 hardcode_libdir_flag_spec='-R$libdir' 8073 hardcode_direct=yes 8074 hardcode_shlibpath_var=no 8075 ;; 8076 8077 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8078 freebsd2*) 8079 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8080 hardcode_direct=yes 8081 hardcode_minus_L=yes 8082 hardcode_shlibpath_var=no 8083 ;; 8084 8085 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8086 freebsd* | dragonfly*) 8087 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8088 hardcode_libdir_flag_spec='-R$libdir' 8089 hardcode_direct=yes 8090 hardcode_shlibpath_var=no 8091 ;; 8092 8093 hpux9*) 8094 if test "$GCC" = yes; then 8095 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' 8096 else 8097 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' 8098 fi 8099 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8100 hardcode_libdir_separator=: 8101 hardcode_direct=yes 8102 8103 # hardcode_minus_L: Not really in the search PATH, 8104 # but as the default location of the library. 8105 hardcode_minus_L=yes 8106 export_dynamic_flag_spec='${wl}-E' 8107 ;; 8108 8109 hpux10*) 8110 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8111 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8112 else 8113 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8114 fi 8115 if test "$with_gnu_ld" = no; then 8116 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8117 hardcode_libdir_separator=: 8118 8119 hardcode_direct=yes 8120 export_dynamic_flag_spec='${wl}-E' 8121 8122 # hardcode_minus_L: Not really in the search PATH, 8123 # but as the default location of the library. 8124 hardcode_minus_L=yes 8125 fi 8126 ;; 8127 8128 hpux11*) 8129 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8130 case $host_cpu in 8131 hppa*64*) 8132 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8133 ;; 8134 ia64*) 8135 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8136 ;; 8137 *) 8138 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8139 ;; 8140 esac 8141 else 8142 case $host_cpu in 8143 hppa*64*) 8144 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8145 ;; 8146 ia64*) 8147 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8148 ;; 8149 *) 8150 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8151 ;; 8152 esac 8153 fi 8154 if test "$with_gnu_ld" = no; then 8155 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8156 hardcode_libdir_separator=: 8157 8158 case $host_cpu in 8159 hppa*64*|ia64*) 8160 hardcode_libdir_flag_spec_ld='+b $libdir' 8161 hardcode_direct=no 8162 hardcode_shlibpath_var=no 8163 ;; 8164 *) 8165 hardcode_direct=yes 8166 export_dynamic_flag_spec='${wl}-E' 8167 8168 # hardcode_minus_L: Not really in the search PATH, 8169 # but as the default location of the library. 8170 hardcode_minus_L=yes 8171 ;; 8172 esac 8173 fi 8174 ;; 8175 8176 irix5* | irix6* | nonstopux*) 8177 if test "$GCC" = yes; then 8178 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' 8179 else 8180 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' 8181 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8182 fi 8183 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8184 hardcode_libdir_separator=: 8185 link_all_deplibs=yes 8186 ;; 8187 8188 netbsd* | netbsdelf*-gnu) 8189 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8190 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8191 else 8192 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8193 fi 8194 hardcode_libdir_flag_spec='-R$libdir' 8195 hardcode_direct=yes 8196 hardcode_shlibpath_var=no 8197 ;; 8198 8199 newsos6) 8200 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8201 hardcode_direct=yes 8202 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8203 hardcode_libdir_separator=: 8204 hardcode_shlibpath_var=no 8205 ;; 8206 8207 openbsd*) 8208 hardcode_direct=yes 8209 hardcode_shlibpath_var=no 8210 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8211 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8212 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8213 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8214 export_dynamic_flag_spec='${wl}-E' 8215 else 8216 case $host_os in 8217 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8218 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8219 hardcode_libdir_flag_spec='-R$libdir' 8220 ;; 8221 *) 8222 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8223 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8224 ;; 8225 esac 8226 fi 8227 ;; 8228 8229 os2*) 8230 hardcode_libdir_flag_spec='-L$libdir' 8231 hardcode_minus_L=yes 8232 allow_undefined_flag=unsupported 8233 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' 8234 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8235 ;; 8236 8237 osf3*) 8238 if test "$GCC" = yes; then 8239 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8240 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' 8241 else 8242 allow_undefined_flag=' -expect_unresolved \*' 8243 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' 8244 fi 8245 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8246 hardcode_libdir_separator=: 8247 ;; 8248 8249 osf4* | osf5*) # as osf3* with the addition of -msym flag 8250 if test "$GCC" = yes; then 8251 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8252 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' 8253 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8254 else 8255 allow_undefined_flag=' -expect_unresolved \*' 8256 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' 8257 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8258 $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' 8259 8260 # Both c and cxx compiler support -rpath directly 8261 hardcode_libdir_flag_spec='-rpath $libdir' 8262 fi 8263 hardcode_libdir_separator=: 8264 ;; 8265 8266 solaris*) 8267 no_undefined_flag=' -z text' 8268 if test "$GCC" = yes; then 8269 wlarc='${wl}' 8270 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8271 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8272 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8273 else 8274 wlarc='' 8275 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8276 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8277 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8278 fi 8279 hardcode_libdir_flag_spec='-R$libdir' 8280 hardcode_shlibpath_var=no 8281 case $host_os in 8282 solaris2.[0-5] | solaris2.[0-5].*) ;; 8283 *) 8284 # The compiler driver will combine linker options so we 8285 # cannot just pass the convience library names through 8286 # without $wl, iff we do not link with $LD. 8287 # Luckily, gcc supports the same syntax we need for Sun Studio. 8288 # Supported since Solaris 2.6 (maybe 2.5.1?) 8289 case $wlarc in 8290 '') 8291 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 8292 *) 8293 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 8294 esac ;; 8295 esac 8296 link_all_deplibs=yes 8297 ;; 8298 8299 sunos4*) 8300 if test "x$host_vendor" = xsequent; then 8301 # Use $CC to link under sequent, because it throws in some extra .o 8302 # files that make .init and .fini sections work. 8303 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8304 else 8305 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8306 fi 8307 hardcode_libdir_flag_spec='-L$libdir' 8308 hardcode_direct=yes 8309 hardcode_minus_L=yes 8310 hardcode_shlibpath_var=no 8311 ;; 8312 8313 sysv4) 8314 case $host_vendor in 8315 sni) 8316 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8317 hardcode_direct=yes # is this really true??? 8318 ;; 8319 siemens) 8320 ## LD is ld it makes a PLAMLIB 8321 ## CC just makes a GrossModule. 8322 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8323 reload_cmds='$CC -r -o $output$reload_objs' 8324 hardcode_direct=no 8325 ;; 8326 motorola) 8327 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8328 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8329 ;; 8330 esac 8331 runpath_var='LD_RUN_PATH' 8332 hardcode_shlibpath_var=no 8333 ;; 8334 8335 sysv4.3*) 8336 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8337 hardcode_shlibpath_var=no 8338 export_dynamic_flag_spec='-Bexport' 8339 ;; 8340 8341 sysv4*MP*) 8342 if test -d /usr/nec; then 8343 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8344 hardcode_shlibpath_var=no 8345 runpath_var=LD_RUN_PATH 8346 hardcode_runpath_var=yes 8347 ld_shlibs=yes 8348 fi 8349 ;; 8350 8351 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 8352 no_undefined_flag='${wl}-z,text' 8353 archive_cmds_need_lc=no 8354 hardcode_shlibpath_var=no 8355 runpath_var='LD_RUN_PATH' 8356 8357 if test "$GCC" = yes; then 8358 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8359 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8360 else 8361 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8362 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8363 fi 8364 ;; 8365 8366 sysv5* | sco3.2v5* | sco5v6*) 8367 # Note: We can NOT use -z defs as we might desire, because we do not 8368 # link with -lc, and that would cause any symbols used from libc to 8369 # always be unresolved, which means just about no library would 8370 # ever link correctly. If we're not using GNU ld we use -z text 8371 # though, which does catch some bad symbols but isn't as heavy-handed 8372 # as -z defs. 8373 no_undefined_flag='${wl}-z,text' 8374 allow_undefined_flag='${wl}-z,nodefs' 8375 archive_cmds_need_lc=no 8376 hardcode_shlibpath_var=no 8377 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 8378 hardcode_libdir_separator=':' 8379 link_all_deplibs=yes 8380 export_dynamic_flag_spec='${wl}-Bexport' 8381 runpath_var='LD_RUN_PATH' 8382 8383 if test "$GCC" = yes; then 8384 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8385 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8386 else 8387 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8388 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8389 fi 8390 ;; 8391 8392 uts4*) 8393 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8394 hardcode_libdir_flag_spec='-L$libdir' 8395 hardcode_shlibpath_var=no 8396 ;; 8397 8398 *) 8399 ld_shlibs=no 8400 ;; 8401 esac 8402 fi 8403 8404{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 8405echo "${ECHO_T}$ld_shlibs" >&6; } 8406test "$ld_shlibs" = no && can_build_shared=no 8407 8408# 8409# Do we need to explicitly link libc? 8410# 8411case "x$archive_cmds_need_lc" in 8412x|xyes) 8413 # Assume -lc should be added 8414 archive_cmds_need_lc=yes 8415 8416 if test "$enable_shared" = yes && test "$GCC" = yes; then 8417 case $archive_cmds in 8418 *'~'*) 8419 # FIXME: we may have to deal with multi-command sequences. 8420 ;; 8421 '$CC '*) 8422 # Test whether the compiler implicitly links with -lc since on some 8423 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8424 # to ld, don't add -lc before -lgcc. 8425 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 8426echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 8427 $rm conftest* 8428 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8429 8430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8431 (eval $ac_compile) 2>&5 8432 ac_status=$? 8433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8434 (exit $ac_status); } 2>conftest.err; then 8435 soname=conftest 8436 lib=conftest 8437 libobjs=conftest.$ac_objext 8438 deplibs= 8439 wl=$lt_prog_compiler_wl 8440 pic_flag=$lt_prog_compiler_pic 8441 compiler_flags=-v 8442 linker_flags=-v 8443 verstring= 8444 output_objdir=. 8445 libname=conftest 8446 lt_save_allow_undefined_flag=$allow_undefined_flag 8447 allow_undefined_flag= 8448 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 8449 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 8450 ac_status=$? 8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8452 (exit $ac_status); } 8453 then 8454 archive_cmds_need_lc=no 8455 else 8456 archive_cmds_need_lc=yes 8457 fi 8458 allow_undefined_flag=$lt_save_allow_undefined_flag 8459 else 8460 cat conftest.err 1>&5 8461 fi 8462 $rm conftest* 8463 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 8464echo "${ECHO_T}$archive_cmds_need_lc" >&6; } 8465 ;; 8466 esac 8467 fi 8468 ;; 8469esac 8470 8471{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8472echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 8473library_names_spec= 8474libname_spec='lib$name' 8475soname_spec= 8476shrext_cmds=".so" 8477postinstall_cmds= 8478postuninstall_cmds= 8479finish_cmds= 8480finish_eval= 8481shlibpath_var= 8482shlibpath_overrides_runpath=unknown 8483version_type=none 8484dynamic_linker="$host_os ld.so" 8485sys_lib_dlsearch_path_spec="/lib /usr/lib" 8486if test "$GCC" = yes; then 8487 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8488 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 8489 # if the path contains ";" then we assume it to be the separator 8490 # otherwise default to the standard path separator (i.e. ":") - it is 8491 # assumed that no part of a normal pathname contains ";" but that should 8492 # okay in the real world where ";" in dirpaths is itself problematic. 8493 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8494 else 8495 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8496 fi 8497else 8498 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8499fi 8500need_lib_prefix=unknown 8501hardcode_into_libs=no 8502 8503# when you set need_version to no, make sure it does not cause -set_version 8504# flags to be left without arguments 8505need_version=unknown 8506 8507case $host_os in 8508aix3*) 8509 version_type=linux 8510 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8511 shlibpath_var=LIBPATH 8512 8513 # AIX 3 has no versioning support, so we append a major version to the name. 8514 soname_spec='${libname}${release}${shared_ext}$major' 8515 ;; 8516 8517aix4* | aix5*) 8518 version_type=linux 8519 need_lib_prefix=no 8520 need_version=no 8521 hardcode_into_libs=yes 8522 if test "$host_cpu" = ia64; then 8523 # AIX 5 supports IA64 8524 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8525 shlibpath_var=LD_LIBRARY_PATH 8526 else 8527 # With GCC up to 2.95.x, collect2 would create an import file 8528 # for dependence libraries. The import file would start with 8529 # the line `#! .'. This would cause the generated library to 8530 # depend on `.', always an invalid library. This was fixed in 8531 # development snapshots of GCC prior to 3.0. 8532 case $host_os in 8533 aix4 | aix4.[01] | aix4.[01].*) 8534 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8535 echo ' yes ' 8536 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 8537 : 8538 else 8539 can_build_shared=no 8540 fi 8541 ;; 8542 esac 8543 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8544 # soname into executable. Probably we can add versioning support to 8545 # collect2, so additional links can be useful in future. 8546 if test "$aix_use_runtimelinking" = yes; then 8547 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 8548 # instead of lib<name>.a to let people know that these are not 8549 # typical AIX shared libraries. 8550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8551 else 8552 # We preserve .a as extension for shared libraries through AIX4.2 8553 # and later when we are not doing run time linking. 8554 library_names_spec='${libname}${release}.a $libname.a' 8555 soname_spec='${libname}${release}${shared_ext}$major' 8556 fi 8557 shlibpath_var=LIBPATH 8558 fi 8559 ;; 8560 8561amigaos*) 8562 library_names_spec='$libname.ixlibrary $libname.a' 8563 # Create ${libname}_ixlibrary.a entries in /sys/libs. 8564 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' 8565 ;; 8566 8567beos*) 8568 library_names_spec='${libname}${shared_ext}' 8569 dynamic_linker="$host_os ld.so" 8570 shlibpath_var=LIBRARY_PATH 8571 ;; 8572 8573bsdi[45]*) 8574 version_type=linux 8575 need_version=no 8576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8577 soname_spec='${libname}${release}${shared_ext}$major' 8578 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 8579 shlibpath_var=LD_LIBRARY_PATH 8580 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 8581 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 8582 # the default ld.so.conf also contains /usr/contrib/lib and 8583 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 8584 # libtool to hard-code these into programs 8585 ;; 8586 8587cygwin* | mingw* | pw32*) 8588 version_type=windows 8589 shrext_cmds=".dll" 8590 need_version=no 8591 need_lib_prefix=no 8592 8593 case $GCC,$host_os in 8594 yes,cygwin* | yes,mingw* | yes,pw32*) 8595 library_names_spec='$libname.dll.a' 8596 # DLL is installed to $(libdir)/../bin by postinstall_cmds 8597 postinstall_cmds='base_file=`basename \${file}`~ 8598 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 8599 dldir=$destdir/`dirname \$dlpath`~ 8600 test -d \$dldir || mkdir -p \$dldir~ 8601 $install_prog $dir/$dlname \$dldir/$dlname~ 8602 chmod a+x \$dldir/$dlname' 8603 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 8604 dlpath=$dir/\$dldll~ 8605 $rm \$dlpath' 8606 shlibpath_overrides_runpath=yes 8607 8608 case $host_os in 8609 cygwin*) 8610 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 8611 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8612 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 8613 ;; 8614 mingw*) 8615 # MinGW DLLs use traditional 'lib' prefix 8616 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8617 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8618 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 8619 # It is most probably a Windows format PATH printed by 8620 # mingw gcc, but we are running on Cygwin. Gcc prints its search 8621 # path with ; separators, and with drive letters. We can handle the 8622 # drive letters (cygwin fileutils understands them), so leave them, 8623 # especially as we might pass files found there to a mingw objdump, 8624 # which wouldn't understand a cygwinified path. Ahh. 8625 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8626 else 8627 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8628 fi 8629 ;; 8630 pw32*) 8631 # pw32 DLLs use 'pw' prefix rather than 'lib' 8632 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8633 ;; 8634 esac 8635 ;; 8636 8637 *) 8638 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 8639 ;; 8640 esac 8641 dynamic_linker='Win32 ld.exe' 8642 # FIXME: first we should search . and the directory the executable is in 8643 shlibpath_var=PATH 8644 ;; 8645 8646darwin* | rhapsody*) 8647 dynamic_linker="$host_os dyld" 8648 version_type=darwin 8649 need_lib_prefix=no 8650 need_version=no 8651 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 8652 soname_spec='${libname}${release}${major}$shared_ext' 8653 shlibpath_overrides_runpath=yes 8654 shlibpath_var=DYLD_LIBRARY_PATH 8655 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 8656 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 8657 if test "$GCC" = yes; then 8658 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 8659 else 8660 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 8661 fi 8662 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 8663 ;; 8664 8665dgux*) 8666 version_type=linux 8667 need_lib_prefix=no 8668 need_version=no 8669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 8670 soname_spec='${libname}${release}${shared_ext}$major' 8671 shlibpath_var=LD_LIBRARY_PATH 8672 ;; 8673 8674freebsd1*) 8675 dynamic_linker=no 8676 ;; 8677 8678freebsd* | dragonfly*) 8679 # DragonFly does not have aout. When/if they implement a new 8680 # versioning mechanism, adjust this. 8681 if test -x /usr/bin/objformat; then 8682 objformat=`/usr/bin/objformat` 8683 else 8684 case $host_os in 8685 freebsd[123]*) objformat=aout ;; 8686 *) objformat=elf ;; 8687 esac 8688 fi 8689 version_type=freebsd-$objformat 8690 case $version_type in 8691 freebsd-elf*) 8692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8693 need_version=no 8694 need_lib_prefix=no 8695 ;; 8696 freebsd-*) 8697 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 8698 need_version=yes 8699 ;; 8700 esac 8701 shlibpath_var=LD_LIBRARY_PATH 8702 case $host_os in 8703 freebsd2*) 8704 shlibpath_overrides_runpath=yes 8705 ;; 8706 freebsd3.[01]* | freebsdelf3.[01]*) 8707 shlibpath_overrides_runpath=yes 8708 hardcode_into_libs=yes 8709 ;; 8710 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 8711 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 8712 shlibpath_overrides_runpath=no 8713 hardcode_into_libs=yes 8714 ;; 8715 freebsd*) # from 4.6 on 8716 shlibpath_overrides_runpath=yes 8717 hardcode_into_libs=yes 8718 ;; 8719 esac 8720 ;; 8721 8722gnu*) 8723 version_type=linux 8724 need_lib_prefix=no 8725 need_version=no 8726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 8727 soname_spec='${libname}${release}${shared_ext}$major' 8728 shlibpath_var=LD_LIBRARY_PATH 8729 hardcode_into_libs=yes 8730 ;; 8731 8732hpux9* | hpux10* | hpux11*) 8733 # Give a soname corresponding to the major version so that dld.sl refuses to 8734 # link against other versions. 8735 version_type=sunos 8736 need_lib_prefix=no 8737 need_version=no 8738 case $host_cpu in 8739 ia64*) 8740 shrext_cmds='.so' 8741 hardcode_into_libs=yes 8742 dynamic_linker="$host_os dld.so" 8743 shlibpath_var=LD_LIBRARY_PATH 8744 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8746 soname_spec='${libname}${release}${shared_ext}$major' 8747 if test "X$HPUX_IA64_MODE" = X32; then 8748 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 8749 else 8750 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 8751 fi 8752 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8753 ;; 8754 hppa*64*) 8755 shrext_cmds='.sl' 8756 hardcode_into_libs=yes 8757 dynamic_linker="$host_os dld.sl" 8758 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 8759 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8761 soname_spec='${libname}${release}${shared_ext}$major' 8762 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 8763 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8764 ;; 8765 *) 8766 shrext_cmds='.sl' 8767 dynamic_linker="$host_os dld.sl" 8768 shlibpath_var=SHLIB_PATH 8769 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 8770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8771 soname_spec='${libname}${release}${shared_ext}$major' 8772 ;; 8773 esac 8774 # HP-UX runs *really* slowly unless shared libraries are mode 555. 8775 postinstall_cmds='chmod 555 $lib' 8776 ;; 8777 8778interix3*) 8779 version_type=linux 8780 need_lib_prefix=no 8781 need_version=no 8782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8783 soname_spec='${libname}${release}${shared_ext}$major' 8784 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 8785 shlibpath_var=LD_LIBRARY_PATH 8786 shlibpath_overrides_runpath=no 8787 hardcode_into_libs=yes 8788 ;; 8789 8790irix5* | irix6* | nonstopux*) 8791 case $host_os in 8792 nonstopux*) version_type=nonstopux ;; 8793 *) 8794 if test "$lt_cv_prog_gnu_ld" = yes; then 8795 version_type=linux 8796 else 8797 version_type=irix 8798 fi ;; 8799 esac 8800 need_lib_prefix=no 8801 need_version=no 8802 soname_spec='${libname}${release}${shared_ext}$major' 8803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 8804 case $host_os in 8805 irix5* | nonstopux*) 8806 libsuff= shlibsuff= 8807 ;; 8808 *) 8809 case $LD in # libtool.m4 will add one of these switches to LD 8810 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 8811 libsuff= shlibsuff= libmagic=32-bit;; 8812 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 8813 libsuff=32 shlibsuff=N32 libmagic=N32;; 8814 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 8815 libsuff=64 shlibsuff=64 libmagic=64-bit;; 8816 *) libsuff= shlibsuff= libmagic=never-match;; 8817 esac 8818 ;; 8819 esac 8820 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 8821 shlibpath_overrides_runpath=no 8822 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 8823 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 8824 hardcode_into_libs=yes 8825 ;; 8826 8827# No shared lib support for Linux oldld, aout, or coff. 8828linux*oldld* | linux*aout* | linux*coff*) 8829 dynamic_linker=no 8830 ;; 8831 8832# This must be Linux ELF. 8833linux* | k*bsd*-gnu) 8834 version_type=linux 8835 need_lib_prefix=no 8836 need_version=no 8837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8838 soname_spec='${libname}${release}${shared_ext}$major' 8839 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 8840 shlibpath_var=LD_LIBRARY_PATH 8841 shlibpath_overrides_runpath=no 8842 # This implies no fast_install, which is unacceptable. 8843 # Some rework will be needed to allow for fast_install 8844 # before this can be enabled. 8845 hardcode_into_libs=yes 8846 8847 # Append ld.so.conf contents to the search path 8848 if test -f /etc/ld.so.conf; then 8849 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 8850 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 8851 fi 8852 8853 # We used to test for /lib/ld.so.1 and disable shared libraries on 8854 # powerpc, because MkLinux only supported shared libraries with the 8855 # GNU dynamic linker. Since this was broken with cross compilers, 8856 # most powerpc-linux boxes support dynamic linking these days and 8857 # people can always --disable-shared, the test was removed, and we 8858 # assume the GNU/Linux dynamic linker is in use. 8859 dynamic_linker='GNU/Linux ld.so' 8860 ;; 8861 8862netbsdelf*-gnu) 8863 version_type=linux 8864 need_lib_prefix=no 8865 need_version=no 8866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8867 soname_spec='${libname}${release}${shared_ext}$major' 8868 shlibpath_var=LD_LIBRARY_PATH 8869 shlibpath_overrides_runpath=no 8870 hardcode_into_libs=yes 8871 dynamic_linker='NetBSD ld.elf_so' 8872 ;; 8873 8874netbsd*) 8875 version_type=sunos 8876 need_lib_prefix=no 8877 need_version=no 8878 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8880 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8881 dynamic_linker='NetBSD (a.out) ld.so' 8882 else 8883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8884 soname_spec='${libname}${release}${shared_ext}$major' 8885 dynamic_linker='NetBSD ld.elf_so' 8886 fi 8887 shlibpath_var=LD_LIBRARY_PATH 8888 shlibpath_overrides_runpath=yes 8889 hardcode_into_libs=yes 8890 ;; 8891 8892newsos6) 8893 version_type=linux 8894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8895 shlibpath_var=LD_LIBRARY_PATH 8896 shlibpath_overrides_runpath=yes 8897 ;; 8898 8899nto-qnx*) 8900 version_type=linux 8901 need_lib_prefix=no 8902 need_version=no 8903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8904 soname_spec='${libname}${release}${shared_ext}$major' 8905 shlibpath_var=LD_LIBRARY_PATH 8906 shlibpath_overrides_runpath=yes 8907 ;; 8908 8909openbsd*) 8910 version_type=sunos 8911 sys_lib_dlsearch_path_spec="/usr/lib" 8912 need_lib_prefix=no 8913 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 8914 case $host_os in 8915 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 8916 *) need_version=no ;; 8917 esac 8918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8919 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8920 shlibpath_var=LD_LIBRARY_PATH 8921 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8922 case $host_os in 8923 openbsd2.[89] | openbsd2.[89].*) 8924 shlibpath_overrides_runpath=no 8925 ;; 8926 *) 8927 shlibpath_overrides_runpath=yes 8928 ;; 8929 esac 8930 else 8931 shlibpath_overrides_runpath=yes 8932 fi 8933 ;; 8934 8935os2*) 8936 libname_spec='$name' 8937 shrext_cmds=".dll" 8938 need_lib_prefix=no 8939 library_names_spec='$libname${shared_ext} $libname.a' 8940 dynamic_linker='OS/2 ld.exe' 8941 shlibpath_var=LIBPATH 8942 ;; 8943 8944osf3* | osf4* | osf5*) 8945 version_type=osf 8946 need_lib_prefix=no 8947 need_version=no 8948 soname_spec='${libname}${release}${shared_ext}$major' 8949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8950 shlibpath_var=LD_LIBRARY_PATH 8951 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 8952 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 8953 ;; 8954 8955solaris*) 8956 version_type=linux 8957 need_lib_prefix=no 8958 need_version=no 8959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8960 soname_spec='${libname}${release}${shared_ext}$major' 8961 shlibpath_var=LD_LIBRARY_PATH 8962 shlibpath_overrides_runpath=yes 8963 hardcode_into_libs=yes 8964 # ldd complains unless libraries are executable 8965 postinstall_cmds='chmod +x $lib' 8966 ;; 8967 8968sunos4*) 8969 version_type=sunos 8970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8971 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 8972 shlibpath_var=LD_LIBRARY_PATH 8973 shlibpath_overrides_runpath=yes 8974 if test "$with_gnu_ld" = yes; then 8975 need_lib_prefix=no 8976 fi 8977 need_version=yes 8978 ;; 8979 8980sysv4 | sysv4.3*) 8981 version_type=linux 8982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8983 soname_spec='${libname}${release}${shared_ext}$major' 8984 shlibpath_var=LD_LIBRARY_PATH 8985 case $host_vendor in 8986 sni) 8987 shlibpath_overrides_runpath=no 8988 need_lib_prefix=no 8989 export_dynamic_flag_spec='${wl}-Blargedynsym' 8990 runpath_var=LD_RUN_PATH 8991 ;; 8992 siemens) 8993 need_lib_prefix=no 8994 ;; 8995 motorola) 8996 need_lib_prefix=no 8997 need_version=no 8998 shlibpath_overrides_runpath=no 8999 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9000 ;; 9001 esac 9002 ;; 9003 9004sysv4*MP*) 9005 if test -d /usr/nec ;then 9006 version_type=linux 9007 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9008 soname_spec='$libname${shared_ext}.$major' 9009 shlibpath_var=LD_LIBRARY_PATH 9010 fi 9011 ;; 9012 9013sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9014 version_type=freebsd-elf 9015 need_lib_prefix=no 9016 need_version=no 9017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9018 soname_spec='${libname}${release}${shared_ext}$major' 9019 shlibpath_var=LD_LIBRARY_PATH 9020 hardcode_into_libs=yes 9021 if test "$with_gnu_ld" = yes; then 9022 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9023 shlibpath_overrides_runpath=no 9024 else 9025 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9026 shlibpath_overrides_runpath=yes 9027 case $host_os in 9028 sco3.2v5*) 9029 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9030 ;; 9031 esac 9032 fi 9033 sys_lib_dlsearch_path_spec='/usr/lib' 9034 ;; 9035 9036uts4*) 9037 version_type=linux 9038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9039 soname_spec='${libname}${release}${shared_ext}$major' 9040 shlibpath_var=LD_LIBRARY_PATH 9041 ;; 9042 9043*) 9044 dynamic_linker=no 9045 ;; 9046esac 9047{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9048echo "${ECHO_T}$dynamic_linker" >&6; } 9049test "$dynamic_linker" = no && can_build_shared=no 9050 9051variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9052if test "$GCC" = yes; then 9053 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9054fi 9055 9056{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9057echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 9058hardcode_action= 9059if test -n "$hardcode_libdir_flag_spec" || \ 9060 test -n "$runpath_var" || \ 9061 test "X$hardcode_automatic" = "Xyes" ; then 9062 9063 # We can hardcode non-existant directories. 9064 if test "$hardcode_direct" != no && 9065 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9066 # have to relink, otherwise we might link with an installed library 9067 # when we should be linking with a yet-to-be-installed one 9068 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9069 test "$hardcode_minus_L" != no; then 9070 # Linking always hardcodes the temporary library directory. 9071 hardcode_action=relink 9072 else 9073 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9074 hardcode_action=immediate 9075 fi 9076else 9077 # We cannot hardcode anything, or else we can only hardcode existing 9078 # directories. 9079 hardcode_action=unsupported 9080fi 9081{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 9082echo "${ECHO_T}$hardcode_action" >&6; } 9083 9084if test "$hardcode_action" = relink; then 9085 # Fast installation is not supported 9086 enable_fast_install=no 9087elif test "$shlibpath_overrides_runpath" = yes || 9088 test "$enable_shared" = no; then 9089 # Fast installation is not necessary 9090 enable_fast_install=needless 9091fi 9092 9093striplib= 9094old_striplib= 9095{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9096echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } 9097if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9098 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9099 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9100 { echo "$as_me:$LINENO: result: yes" >&5 9101echo "${ECHO_T}yes" >&6; } 9102else 9103# FIXME - insert some real tests, host_os isn't really good enough 9104 case $host_os in 9105 darwin*) 9106 if test -n "$STRIP" ; then 9107 striplib="$STRIP -x" 9108 { echo "$as_me:$LINENO: result: yes" >&5 9109echo "${ECHO_T}yes" >&6; } 9110 else 9111 { echo "$as_me:$LINENO: result: no" >&5 9112echo "${ECHO_T}no" >&6; } 9113fi 9114 ;; 9115 *) 9116 { echo "$as_me:$LINENO: result: no" >&5 9117echo "${ECHO_T}no" >&6; } 9118 ;; 9119 esac 9120fi 9121 9122if test "x$enable_dlopen" != xyes; then 9123 enable_dlopen=unknown 9124 enable_dlopen_self=unknown 9125 enable_dlopen_self_static=unknown 9126else 9127 lt_cv_dlopen=no 9128 lt_cv_dlopen_libs= 9129 9130 case $host_os in 9131 beos*) 9132 lt_cv_dlopen="load_add_on" 9133 lt_cv_dlopen_libs= 9134 lt_cv_dlopen_self=yes 9135 ;; 9136 9137 mingw* | pw32*) 9138 lt_cv_dlopen="LoadLibrary" 9139 lt_cv_dlopen_libs= 9140 ;; 9141 9142 cygwin*) 9143 lt_cv_dlopen="dlopen" 9144 lt_cv_dlopen_libs= 9145 ;; 9146 9147 darwin*) 9148 # if libdl is installed we need to link against it 9149 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9150echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9151if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9152 echo $ECHO_N "(cached) $ECHO_C" >&6 9153else 9154 ac_check_lib_save_LIBS=$LIBS 9155LIBS="-ldl $LIBS" 9156cat >conftest.$ac_ext <<_ACEOF 9157/* confdefs.h. */ 9158_ACEOF 9159cat confdefs.h >>conftest.$ac_ext 9160cat >>conftest.$ac_ext <<_ACEOF 9161/* end confdefs.h. */ 9162 9163/* Override any GCC internal prototype to avoid an error. 9164 Use char because int might match the return type of a GCC 9165 builtin and then its argument prototype would still apply. */ 9166#ifdef __cplusplus 9167extern "C" 9168#endif 9169char dlopen (); 9170int 9171main () 9172{ 9173return dlopen (); 9174 ; 9175 return 0; 9176} 9177_ACEOF 9178rm -f conftest.$ac_objext conftest$ac_exeext 9179if { (ac_try="$ac_link" 9180case "(($ac_try" in 9181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9182 *) ac_try_echo=$ac_try;; 9183esac 9184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9185 (eval "$ac_link") 2>conftest.er1 9186 ac_status=$? 9187 grep -v '^ *+' conftest.er1 >conftest.err 9188 rm -f conftest.er1 9189 cat conftest.err >&5 9190 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9191 (exit $ac_status); } && { 9192 test -z "$ac_c_werror_flag" || 9193 test ! -s conftest.err 9194 } && test -s conftest$ac_exeext && 9195 $as_test_x conftest$ac_exeext; then 9196 ac_cv_lib_dl_dlopen=yes 9197else 9198 echo "$as_me: failed program was:" >&5 9199sed 's/^/| /' conftest.$ac_ext >&5 9200 9201 ac_cv_lib_dl_dlopen=no 9202fi 9203 9204rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9205 conftest$ac_exeext conftest.$ac_ext 9206LIBS=$ac_check_lib_save_LIBS 9207fi 9208{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9209echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9210if test $ac_cv_lib_dl_dlopen = yes; then 9211 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9212else 9213 9214 lt_cv_dlopen="dyld" 9215 lt_cv_dlopen_libs= 9216 lt_cv_dlopen_self=yes 9217 9218fi 9219 9220 ;; 9221 9222 *) 9223 { echo "$as_me:$LINENO: checking for shl_load" >&5 9224echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 9225if test "${ac_cv_func_shl_load+set}" = set; then 9226 echo $ECHO_N "(cached) $ECHO_C" >&6 9227else 9228 cat >conftest.$ac_ext <<_ACEOF 9229/* confdefs.h. */ 9230_ACEOF 9231cat confdefs.h >>conftest.$ac_ext 9232cat >>conftest.$ac_ext <<_ACEOF 9233/* end confdefs.h. */ 9234/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9235 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9236#define shl_load innocuous_shl_load 9237 9238/* System header to define __stub macros and hopefully few prototypes, 9239 which can conflict with char shl_load (); below. 9240 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9241 <limits.h> exists even on freestanding compilers. */ 9242 9243#ifdef __STDC__ 9244# include <limits.h> 9245#else 9246# include <assert.h> 9247#endif 9248 9249#undef shl_load 9250 9251/* Override any GCC internal prototype to avoid an error. 9252 Use char because int might match the return type of a GCC 9253 builtin and then its argument prototype would still apply. */ 9254#ifdef __cplusplus 9255extern "C" 9256#endif 9257char shl_load (); 9258/* The GNU C library defines this for functions which it implements 9259 to always fail with ENOSYS. Some functions are actually named 9260 something starting with __ and the normal name is an alias. */ 9261#if defined __stub_shl_load || defined __stub___shl_load 9262choke me 9263#endif 9264 9265int 9266main () 9267{ 9268return shl_load (); 9269 ; 9270 return 0; 9271} 9272_ACEOF 9273rm -f conftest.$ac_objext conftest$ac_exeext 9274if { (ac_try="$ac_link" 9275case "(($ac_try" in 9276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9277 *) ac_try_echo=$ac_try;; 9278esac 9279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9280 (eval "$ac_link") 2>conftest.er1 9281 ac_status=$? 9282 grep -v '^ *+' conftest.er1 >conftest.err 9283 rm -f conftest.er1 9284 cat conftest.err >&5 9285 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9286 (exit $ac_status); } && { 9287 test -z "$ac_c_werror_flag" || 9288 test ! -s conftest.err 9289 } && test -s conftest$ac_exeext && 9290 $as_test_x conftest$ac_exeext; then 9291 ac_cv_func_shl_load=yes 9292else 9293 echo "$as_me: failed program was:" >&5 9294sed 's/^/| /' conftest.$ac_ext >&5 9295 9296 ac_cv_func_shl_load=no 9297fi 9298 9299rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9300 conftest$ac_exeext conftest.$ac_ext 9301fi 9302{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9303echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 9304if test $ac_cv_func_shl_load = yes; then 9305 lt_cv_dlopen="shl_load" 9306else 9307 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9308echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 9309if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9310 echo $ECHO_N "(cached) $ECHO_C" >&6 9311else 9312 ac_check_lib_save_LIBS=$LIBS 9313LIBS="-ldld $LIBS" 9314cat >conftest.$ac_ext <<_ACEOF 9315/* confdefs.h. */ 9316_ACEOF 9317cat confdefs.h >>conftest.$ac_ext 9318cat >>conftest.$ac_ext <<_ACEOF 9319/* end confdefs.h. */ 9320 9321/* Override any GCC internal prototype to avoid an error. 9322 Use char because int might match the return type of a GCC 9323 builtin and then its argument prototype would still apply. */ 9324#ifdef __cplusplus 9325extern "C" 9326#endif 9327char shl_load (); 9328int 9329main () 9330{ 9331return shl_load (); 9332 ; 9333 return 0; 9334} 9335_ACEOF 9336rm -f conftest.$ac_objext conftest$ac_exeext 9337if { (ac_try="$ac_link" 9338case "(($ac_try" in 9339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9340 *) ac_try_echo=$ac_try;; 9341esac 9342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9343 (eval "$ac_link") 2>conftest.er1 9344 ac_status=$? 9345 grep -v '^ *+' conftest.er1 >conftest.err 9346 rm -f conftest.er1 9347 cat conftest.err >&5 9348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9349 (exit $ac_status); } && { 9350 test -z "$ac_c_werror_flag" || 9351 test ! -s conftest.err 9352 } && test -s conftest$ac_exeext && 9353 $as_test_x conftest$ac_exeext; then 9354 ac_cv_lib_dld_shl_load=yes 9355else 9356 echo "$as_me: failed program was:" >&5 9357sed 's/^/| /' conftest.$ac_ext >&5 9358 9359 ac_cv_lib_dld_shl_load=no 9360fi 9361 9362rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9363 conftest$ac_exeext conftest.$ac_ext 9364LIBS=$ac_check_lib_save_LIBS 9365fi 9366{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9367echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 9368if test $ac_cv_lib_dld_shl_load = yes; then 9369 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 9370else 9371 { echo "$as_me:$LINENO: checking for dlopen" >&5 9372echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 9373if test "${ac_cv_func_dlopen+set}" = set; then 9374 echo $ECHO_N "(cached) $ECHO_C" >&6 9375else 9376 cat >conftest.$ac_ext <<_ACEOF 9377/* confdefs.h. */ 9378_ACEOF 9379cat confdefs.h >>conftest.$ac_ext 9380cat >>conftest.$ac_ext <<_ACEOF 9381/* end confdefs.h. */ 9382/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 9383 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9384#define dlopen innocuous_dlopen 9385 9386/* System header to define __stub macros and hopefully few prototypes, 9387 which can conflict with char dlopen (); below. 9388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9389 <limits.h> exists even on freestanding compilers. */ 9390 9391#ifdef __STDC__ 9392# include <limits.h> 9393#else 9394# include <assert.h> 9395#endif 9396 9397#undef dlopen 9398 9399/* Override any GCC internal prototype to avoid an error. 9400 Use char because int might match the return type of a GCC 9401 builtin and then its argument prototype would still apply. */ 9402#ifdef __cplusplus 9403extern "C" 9404#endif 9405char dlopen (); 9406/* The GNU C library defines this for functions which it implements 9407 to always fail with ENOSYS. Some functions are actually named 9408 something starting with __ and the normal name is an alias. */ 9409#if defined __stub_dlopen || defined __stub___dlopen 9410choke me 9411#endif 9412 9413int 9414main () 9415{ 9416return dlopen (); 9417 ; 9418 return 0; 9419} 9420_ACEOF 9421rm -f conftest.$ac_objext conftest$ac_exeext 9422if { (ac_try="$ac_link" 9423case "(($ac_try" in 9424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9425 *) ac_try_echo=$ac_try;; 9426esac 9427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9428 (eval "$ac_link") 2>conftest.er1 9429 ac_status=$? 9430 grep -v '^ *+' conftest.er1 >conftest.err 9431 rm -f conftest.er1 9432 cat conftest.err >&5 9433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9434 (exit $ac_status); } && { 9435 test -z "$ac_c_werror_flag" || 9436 test ! -s conftest.err 9437 } && test -s conftest$ac_exeext && 9438 $as_test_x conftest$ac_exeext; then 9439 ac_cv_func_dlopen=yes 9440else 9441 echo "$as_me: failed program was:" >&5 9442sed 's/^/| /' conftest.$ac_ext >&5 9443 9444 ac_cv_func_dlopen=no 9445fi 9446 9447rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9448 conftest$ac_exeext conftest.$ac_ext 9449fi 9450{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 9451echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 9452if test $ac_cv_func_dlopen = yes; then 9453 lt_cv_dlopen="dlopen" 9454else 9455 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9456echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9457if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9458 echo $ECHO_N "(cached) $ECHO_C" >&6 9459else 9460 ac_check_lib_save_LIBS=$LIBS 9461LIBS="-ldl $LIBS" 9462cat >conftest.$ac_ext <<_ACEOF 9463/* confdefs.h. */ 9464_ACEOF 9465cat confdefs.h >>conftest.$ac_ext 9466cat >>conftest.$ac_ext <<_ACEOF 9467/* end confdefs.h. */ 9468 9469/* Override any GCC internal prototype to avoid an error. 9470 Use char because int might match the return type of a GCC 9471 builtin and then its argument prototype would still apply. */ 9472#ifdef __cplusplus 9473extern "C" 9474#endif 9475char dlopen (); 9476int 9477main () 9478{ 9479return dlopen (); 9480 ; 9481 return 0; 9482} 9483_ACEOF 9484rm -f conftest.$ac_objext conftest$ac_exeext 9485if { (ac_try="$ac_link" 9486case "(($ac_try" in 9487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9488 *) ac_try_echo=$ac_try;; 9489esac 9490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9491 (eval "$ac_link") 2>conftest.er1 9492 ac_status=$? 9493 grep -v '^ *+' conftest.er1 >conftest.err 9494 rm -f conftest.er1 9495 cat conftest.err >&5 9496 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9497 (exit $ac_status); } && { 9498 test -z "$ac_c_werror_flag" || 9499 test ! -s conftest.err 9500 } && test -s conftest$ac_exeext && 9501 $as_test_x conftest$ac_exeext; then 9502 ac_cv_lib_dl_dlopen=yes 9503else 9504 echo "$as_me: failed program was:" >&5 9505sed 's/^/| /' conftest.$ac_ext >&5 9506 9507 ac_cv_lib_dl_dlopen=no 9508fi 9509 9510rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9511 conftest$ac_exeext conftest.$ac_ext 9512LIBS=$ac_check_lib_save_LIBS 9513fi 9514{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9515echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9516if test $ac_cv_lib_dl_dlopen = yes; then 9517 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9518else 9519 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 9520echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 9521if test "${ac_cv_lib_svld_dlopen+set}" = set; then 9522 echo $ECHO_N "(cached) $ECHO_C" >&6 9523else 9524 ac_check_lib_save_LIBS=$LIBS 9525LIBS="-lsvld $LIBS" 9526cat >conftest.$ac_ext <<_ACEOF 9527/* confdefs.h. */ 9528_ACEOF 9529cat confdefs.h >>conftest.$ac_ext 9530cat >>conftest.$ac_ext <<_ACEOF 9531/* end confdefs.h. */ 9532 9533/* Override any GCC internal prototype to avoid an error. 9534 Use char because int might match the return type of a GCC 9535 builtin and then its argument prototype would still apply. */ 9536#ifdef __cplusplus 9537extern "C" 9538#endif 9539char dlopen (); 9540int 9541main () 9542{ 9543return dlopen (); 9544 ; 9545 return 0; 9546} 9547_ACEOF 9548rm -f conftest.$ac_objext conftest$ac_exeext 9549if { (ac_try="$ac_link" 9550case "(($ac_try" in 9551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9552 *) ac_try_echo=$ac_try;; 9553esac 9554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9555 (eval "$ac_link") 2>conftest.er1 9556 ac_status=$? 9557 grep -v '^ *+' conftest.er1 >conftest.err 9558 rm -f conftest.er1 9559 cat conftest.err >&5 9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9561 (exit $ac_status); } && { 9562 test -z "$ac_c_werror_flag" || 9563 test ! -s conftest.err 9564 } && test -s conftest$ac_exeext && 9565 $as_test_x conftest$ac_exeext; then 9566 ac_cv_lib_svld_dlopen=yes 9567else 9568 echo "$as_me: failed program was:" >&5 9569sed 's/^/| /' conftest.$ac_ext >&5 9570 9571 ac_cv_lib_svld_dlopen=no 9572fi 9573 9574rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9575 conftest$ac_exeext conftest.$ac_ext 9576LIBS=$ac_check_lib_save_LIBS 9577fi 9578{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 9579echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 9580if test $ac_cv_lib_svld_dlopen = yes; then 9581 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 9582else 9583 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 9584echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 9585if test "${ac_cv_lib_dld_dld_link+set}" = set; then 9586 echo $ECHO_N "(cached) $ECHO_C" >&6 9587else 9588 ac_check_lib_save_LIBS=$LIBS 9589LIBS="-ldld $LIBS" 9590cat >conftest.$ac_ext <<_ACEOF 9591/* confdefs.h. */ 9592_ACEOF 9593cat confdefs.h >>conftest.$ac_ext 9594cat >>conftest.$ac_ext <<_ACEOF 9595/* end confdefs.h. */ 9596 9597/* Override any GCC internal prototype to avoid an error. 9598 Use char because int might match the return type of a GCC 9599 builtin and then its argument prototype would still apply. */ 9600#ifdef __cplusplus 9601extern "C" 9602#endif 9603char dld_link (); 9604int 9605main () 9606{ 9607return dld_link (); 9608 ; 9609 return 0; 9610} 9611_ACEOF 9612rm -f conftest.$ac_objext conftest$ac_exeext 9613if { (ac_try="$ac_link" 9614case "(($ac_try" in 9615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9616 *) ac_try_echo=$ac_try;; 9617esac 9618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9619 (eval "$ac_link") 2>conftest.er1 9620 ac_status=$? 9621 grep -v '^ *+' conftest.er1 >conftest.err 9622 rm -f conftest.er1 9623 cat conftest.err >&5 9624 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9625 (exit $ac_status); } && { 9626 test -z "$ac_c_werror_flag" || 9627 test ! -s conftest.err 9628 } && test -s conftest$ac_exeext && 9629 $as_test_x conftest$ac_exeext; then 9630 ac_cv_lib_dld_dld_link=yes 9631else 9632 echo "$as_me: failed program was:" >&5 9633sed 's/^/| /' conftest.$ac_ext >&5 9634 9635 ac_cv_lib_dld_dld_link=no 9636fi 9637 9638rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9639 conftest$ac_exeext conftest.$ac_ext 9640LIBS=$ac_check_lib_save_LIBS 9641fi 9642{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 9643echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 9644if test $ac_cv_lib_dld_dld_link = yes; then 9645 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 9646fi 9647 9648 9649fi 9650 9651 9652fi 9653 9654 9655fi 9656 9657 9658fi 9659 9660 9661fi 9662 9663 ;; 9664 esac 9665 9666 if test "x$lt_cv_dlopen" != xno; then 9667 enable_dlopen=yes 9668 else 9669 enable_dlopen=no 9670 fi 9671 9672 case $lt_cv_dlopen in 9673 dlopen) 9674 save_CPPFLAGS="$CPPFLAGS" 9675 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 9676 9677 save_LDFLAGS="$LDFLAGS" 9678 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 9679 9680 save_LIBS="$LIBS" 9681 LIBS="$lt_cv_dlopen_libs $LIBS" 9682 9683 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 9684echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } 9685if test "${lt_cv_dlopen_self+set}" = set; then 9686 echo $ECHO_N "(cached) $ECHO_C" >&6 9687else 9688 if test "$cross_compiling" = yes; then : 9689 lt_cv_dlopen_self=cross 9690else 9691 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9692 lt_status=$lt_dlunknown 9693 cat > conftest.$ac_ext <<EOF 9694#line 9694 "configure" 9695#include "confdefs.h" 9696 9697#if HAVE_DLFCN_H 9698#include <dlfcn.h> 9699#endif 9700 9701#include <stdio.h> 9702 9703#ifdef RTLD_GLOBAL 9704# define LT_DLGLOBAL RTLD_GLOBAL 9705#else 9706# ifdef DL_GLOBAL 9707# define LT_DLGLOBAL DL_GLOBAL 9708# else 9709# define LT_DLGLOBAL 0 9710# endif 9711#endif 9712 9713/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9714 find out it does not work in some platform. */ 9715#ifndef LT_DLLAZY_OR_NOW 9716# ifdef RTLD_LAZY 9717# define LT_DLLAZY_OR_NOW RTLD_LAZY 9718# else 9719# ifdef DL_LAZY 9720# define LT_DLLAZY_OR_NOW DL_LAZY 9721# else 9722# ifdef RTLD_NOW 9723# define LT_DLLAZY_OR_NOW RTLD_NOW 9724# else 9725# ifdef DL_NOW 9726# define LT_DLLAZY_OR_NOW DL_NOW 9727# else 9728# define LT_DLLAZY_OR_NOW 0 9729# endif 9730# endif 9731# endif 9732# endif 9733#endif 9734 9735#ifdef __cplusplus 9736extern "C" void exit (int); 9737#endif 9738 9739void fnord() { int i=42;} 9740int main () 9741{ 9742 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9743 int status = $lt_dlunknown; 9744 9745 if (self) 9746 { 9747 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9748 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9749 /* dlclose (self); */ 9750 } 9751 else 9752 puts (dlerror ()); 9753 9754 exit (status); 9755} 9756EOF 9757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9758 (eval $ac_link) 2>&5 9759 ac_status=$? 9760 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9761 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9762 (./conftest; exit; ) >&5 2>/dev/null 9763 lt_status=$? 9764 case x$lt_status in 9765 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 9766 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 9767 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 9768 esac 9769 else : 9770 # compilation failed 9771 lt_cv_dlopen_self=no 9772 fi 9773fi 9774rm -fr conftest* 9775 9776 9777fi 9778{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 9779echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } 9780 9781 if test "x$lt_cv_dlopen_self" = xyes; then 9782 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 9783 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 9784echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } 9785if test "${lt_cv_dlopen_self_static+set}" = set; then 9786 echo $ECHO_N "(cached) $ECHO_C" >&6 9787else 9788 if test "$cross_compiling" = yes; then : 9789 lt_cv_dlopen_self_static=cross 9790else 9791 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9792 lt_status=$lt_dlunknown 9793 cat > conftest.$ac_ext <<EOF 9794#line 9794 "configure" 9795#include "confdefs.h" 9796 9797#if HAVE_DLFCN_H 9798#include <dlfcn.h> 9799#endif 9800 9801#include <stdio.h> 9802 9803#ifdef RTLD_GLOBAL 9804# define LT_DLGLOBAL RTLD_GLOBAL 9805#else 9806# ifdef DL_GLOBAL 9807# define LT_DLGLOBAL DL_GLOBAL 9808# else 9809# define LT_DLGLOBAL 0 9810# endif 9811#endif 9812 9813/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9814 find out it does not work in some platform. */ 9815#ifndef LT_DLLAZY_OR_NOW 9816# ifdef RTLD_LAZY 9817# define LT_DLLAZY_OR_NOW RTLD_LAZY 9818# else 9819# ifdef DL_LAZY 9820# define LT_DLLAZY_OR_NOW DL_LAZY 9821# else 9822# ifdef RTLD_NOW 9823# define LT_DLLAZY_OR_NOW RTLD_NOW 9824# else 9825# ifdef DL_NOW 9826# define LT_DLLAZY_OR_NOW DL_NOW 9827# else 9828# define LT_DLLAZY_OR_NOW 0 9829# endif 9830# endif 9831# endif 9832# endif 9833#endif 9834 9835#ifdef __cplusplus 9836extern "C" void exit (int); 9837#endif 9838 9839void fnord() { int i=42;} 9840int main () 9841{ 9842 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9843 int status = $lt_dlunknown; 9844 9845 if (self) 9846 { 9847 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9848 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9849 /* dlclose (self); */ 9850 } 9851 else 9852 puts (dlerror ()); 9853 9854 exit (status); 9855} 9856EOF 9857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9858 (eval $ac_link) 2>&5 9859 ac_status=$? 9860 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9861 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9862 (./conftest; exit; ) >&5 2>/dev/null 9863 lt_status=$? 9864 case x$lt_status in 9865 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 9866 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 9867 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 9868 esac 9869 else : 9870 # compilation failed 9871 lt_cv_dlopen_self_static=no 9872 fi 9873fi 9874rm -fr conftest* 9875 9876 9877fi 9878{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 9879echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } 9880 fi 9881 9882 CPPFLAGS="$save_CPPFLAGS" 9883 LDFLAGS="$save_LDFLAGS" 9884 LIBS="$save_LIBS" 9885 ;; 9886 esac 9887 9888 case $lt_cv_dlopen_self in 9889 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 9890 *) enable_dlopen_self=unknown ;; 9891 esac 9892 9893 case $lt_cv_dlopen_self_static in 9894 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 9895 *) enable_dlopen_self_static=unknown ;; 9896 esac 9897fi 9898 9899 9900# Report which library types will actually be built 9901{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 9902echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 9903{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 9904echo "${ECHO_T}$can_build_shared" >&6; } 9905 9906{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 9907echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 9908test "$can_build_shared" = "no" && enable_shared=no 9909 9910# On AIX, shared libraries and static libraries use the same namespace, and 9911# are all built from PIC. 9912case $host_os in 9913aix3*) 9914 test "$enable_shared" = yes && enable_static=no 9915 if test -n "$RANLIB"; then 9916 archive_cmds="$archive_cmds~\$RANLIB \$lib" 9917 postinstall_cmds='$RANLIB $lib' 9918 fi 9919 ;; 9920 9921aix4* | aix5*) 9922 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 9923 test "$enable_shared" = yes && enable_static=no 9924 fi 9925 ;; 9926esac 9927{ echo "$as_me:$LINENO: result: $enable_shared" >&5 9928echo "${ECHO_T}$enable_shared" >&6; } 9929 9930{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 9931echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 9932# Make sure either enable_shared or enable_static is yes. 9933test "$enable_shared" = yes || enable_static=yes 9934{ echo "$as_me:$LINENO: result: $enable_static" >&5 9935echo "${ECHO_T}$enable_static" >&6; } 9936 9937# The else clause should only fire when bootstrapping the 9938# libtool distribution, otherwise you forgot to ship ltmain.sh 9939# with your package, and you will get complaints that there are 9940# no rules to generate ltmain.sh. 9941if test -f "$ltmain"; then 9942 # See if we are running on zsh, and set the options which allow our commands through 9943 # without removal of \ escapes. 9944 if test -n "${ZSH_VERSION+set}" ; then 9945 setopt NO_GLOB_SUBST 9946 fi 9947 # Now quote all the things that may contain metacharacters while being 9948 # careful not to overquote the AC_SUBSTed values. We take copies of the 9949 # variables and quote the copies for generation of the libtool script. 9950 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 9951 SED SHELL STRIP \ 9952 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 9953 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 9954 deplibs_check_method reload_flag reload_cmds need_locks \ 9955 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 9956 lt_cv_sys_global_symbol_to_c_name_address \ 9957 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 9958 old_postinstall_cmds old_postuninstall_cmds \ 9959 compiler \ 9960 CC \ 9961 LD \ 9962 lt_prog_compiler_wl \ 9963 lt_prog_compiler_pic \ 9964 lt_prog_compiler_static \ 9965 lt_prog_compiler_no_builtin_flag \ 9966 export_dynamic_flag_spec \ 9967 thread_safe_flag_spec \ 9968 whole_archive_flag_spec \ 9969 enable_shared_with_static_runtimes \ 9970 old_archive_cmds \ 9971 old_archive_from_new_cmds \ 9972 predep_objects \ 9973 postdep_objects \ 9974 predeps \ 9975 postdeps \ 9976 compiler_lib_search_path \ 9977 archive_cmds \ 9978 archive_expsym_cmds \ 9979 postinstall_cmds \ 9980 postuninstall_cmds \ 9981 old_archive_from_expsyms_cmds \ 9982 allow_undefined_flag \ 9983 no_undefined_flag \ 9984 export_symbols_cmds \ 9985 hardcode_libdir_flag_spec \ 9986 hardcode_libdir_flag_spec_ld \ 9987 hardcode_libdir_separator \ 9988 hardcode_automatic \ 9989 module_cmds \ 9990 module_expsym_cmds \ 9991 lt_cv_prog_compiler_c_o \ 9992 exclude_expsyms \ 9993 include_expsyms; do 9994 9995 case $var in 9996 old_archive_cmds | \ 9997 old_archive_from_new_cmds | \ 9998 archive_cmds | \ 9999 archive_expsym_cmds | \ 10000 module_cmds | \ 10001 module_expsym_cmds | \ 10002 old_archive_from_expsyms_cmds | \ 10003 export_symbols_cmds | \ 10004 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10005 postinstall_cmds | postuninstall_cmds | \ 10006 old_postinstall_cmds | old_postuninstall_cmds | \ 10007 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10008 # Double-quote double-evaled strings. 10009 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10010 ;; 10011 *) 10012 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10013 ;; 10014 esac 10015 done 10016 10017 case $lt_echo in 10018 *'\$0 --fallback-echo"') 10019 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10020 ;; 10021 esac 10022 10023cfgfile="${ofile}T" 10024 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10025 $rm -f "$cfgfile" 10026 { echo "$as_me:$LINENO: creating $ofile" >&5 10027echo "$as_me: creating $ofile" >&6;} 10028 10029 cat <<__EOF__ >> "$cfgfile" 10030#! $SHELL 10031 10032# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10033# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10034# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10035# 10036# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 10037# Free Software Foundation, Inc. 10038# 10039# This file is part of GNU Libtool: 10040# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10041# 10042# This program is free software; you can redistribute it and/or modify 10043# it under the terms of the GNU General Public License as published by 10044# the Free Software Foundation; either version 2 of the License, or 10045# (at your option) any later version. 10046# 10047# This program is distributed in the hope that it will be useful, but 10048# WITHOUT ANY WARRANTY; without even the implied warranty of 10049# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10050# General Public License for more details. 10051# 10052# You should have received a copy of the GNU General Public License 10053# along with this program; if not, write to the Free Software 10054# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10055# 10056# As a special exception to the GNU General Public License, if you 10057# distribute this file as part of a program that contains a 10058# configuration script generated by Autoconf, you may include it under 10059# the same distribution terms that you use for the rest of that program. 10060 10061# A sed program that does not truncate output. 10062SED=$lt_SED 10063 10064# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10065Xsed="$SED -e 1s/^X//" 10066 10067# The HP-UX ksh and POSIX shell print the target directory to stdout 10068# if CDPATH is set. 10069(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10070 10071# The names of the tagged configurations supported by this script. 10072available_tags= 10073 10074# ### BEGIN LIBTOOL CONFIG 10075 10076# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10077 10078# Shell to use when invoking shell scripts. 10079SHELL=$lt_SHELL 10080 10081# Whether or not to build shared libraries. 10082build_libtool_libs=$enable_shared 10083 10084# Whether or not to build static libraries. 10085build_old_libs=$enable_static 10086 10087# Whether or not to add -lc for building shared libraries. 10088build_libtool_need_lc=$archive_cmds_need_lc 10089 10090# Whether or not to disallow shared libs when runtime libs are static 10091allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10092 10093# Whether or not to optimize for fast installation. 10094fast_install=$enable_fast_install 10095 10096# The host system. 10097host_alias=$host_alias 10098host=$host 10099host_os=$host_os 10100 10101# The build system. 10102build_alias=$build_alias 10103build=$build 10104build_os=$build_os 10105 10106# An echo program that does not interpret backslashes. 10107echo=$lt_echo 10108 10109# The archiver. 10110AR=$lt_AR 10111AR_FLAGS=$lt_AR_FLAGS 10112 10113# A C compiler. 10114LTCC=$lt_LTCC 10115 10116# LTCC compiler flags. 10117LTCFLAGS=$lt_LTCFLAGS 10118 10119# A language-specific compiler. 10120CC=$lt_compiler 10121 10122# Is the compiler the GNU C compiler? 10123with_gcc=$GCC 10124 10125# An ERE matcher. 10126EGREP=$lt_EGREP 10127 10128# The linker used to build libraries. 10129LD=$lt_LD 10130 10131# Whether we need hard or soft links. 10132LN_S=$lt_LN_S 10133 10134# A BSD-compatible nm program. 10135NM=$lt_NM 10136 10137# A symbol stripping program 10138STRIP=$lt_STRIP 10139 10140# Used to examine libraries when file_magic_cmd begins "file" 10141MAGIC_CMD=$MAGIC_CMD 10142 10143# Used on cygwin: DLL creation program. 10144DLLTOOL="$DLLTOOL" 10145 10146# Used on cygwin: object dumper. 10147OBJDUMP="$OBJDUMP" 10148 10149# Used on cygwin: assembler. 10150AS="$AS" 10151 10152# The name of the directory that contains temporary libtool files. 10153objdir=$objdir 10154 10155# How to create reloadable object files. 10156reload_flag=$lt_reload_flag 10157reload_cmds=$lt_reload_cmds 10158 10159# How to pass a linker flag through the compiler. 10160wl=$lt_lt_prog_compiler_wl 10161 10162# Object file suffix (normally "o"). 10163objext="$ac_objext" 10164 10165# Old archive suffix (normally "a"). 10166libext="$libext" 10167 10168# Shared library suffix (normally ".so"). 10169shrext_cmds='$shrext_cmds' 10170 10171# Executable file suffix (normally ""). 10172exeext="$exeext" 10173 10174# Additional compiler flags for building library objects. 10175pic_flag=$lt_lt_prog_compiler_pic 10176pic_mode=$pic_mode 10177 10178# What is the maximum length of a command? 10179max_cmd_len=$lt_cv_sys_max_cmd_len 10180 10181# Does compiler simultaneously support -c and -o options? 10182compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10183 10184# Must we lock files when doing compilation? 10185need_locks=$lt_need_locks 10186 10187# Do we need the lib prefix for modules? 10188need_lib_prefix=$need_lib_prefix 10189 10190# Do we need a version for libraries? 10191need_version=$need_version 10192 10193# Whether dlopen is supported. 10194dlopen_support=$enable_dlopen 10195 10196# Whether dlopen of programs is supported. 10197dlopen_self=$enable_dlopen_self 10198 10199# Whether dlopen of statically linked programs is supported. 10200dlopen_self_static=$enable_dlopen_self_static 10201 10202# Compiler flag to prevent dynamic linking. 10203link_static_flag=$lt_lt_prog_compiler_static 10204 10205# Compiler flag to turn off builtin functions. 10206no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10207 10208# Compiler flag to allow reflexive dlopens. 10209export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10210 10211# Compiler flag to generate shared objects directly from archives. 10212whole_archive_flag_spec=$lt_whole_archive_flag_spec 10213 10214# Compiler flag to generate thread-safe objects. 10215thread_safe_flag_spec=$lt_thread_safe_flag_spec 10216 10217# Library versioning type. 10218version_type=$version_type 10219 10220# Format of library name prefix. 10221libname_spec=$lt_libname_spec 10222 10223# List of archive names. First name is the real one, the rest are links. 10224# The last name is the one that the linker finds with -lNAME. 10225library_names_spec=$lt_library_names_spec 10226 10227# The coded name of the library, if different from the real name. 10228soname_spec=$lt_soname_spec 10229 10230# Commands used to build and install an old-style archive. 10231RANLIB=$lt_RANLIB 10232old_archive_cmds=$lt_old_archive_cmds 10233old_postinstall_cmds=$lt_old_postinstall_cmds 10234old_postuninstall_cmds=$lt_old_postuninstall_cmds 10235 10236# Create an old-style archive from a shared archive. 10237old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10238 10239# Create a temporary old-style archive to link instead of a shared archive. 10240old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10241 10242# Commands used to build and install a shared archive. 10243archive_cmds=$lt_archive_cmds 10244archive_expsym_cmds=$lt_archive_expsym_cmds 10245postinstall_cmds=$lt_postinstall_cmds 10246postuninstall_cmds=$lt_postuninstall_cmds 10247 10248# Commands used to build a loadable module (assumed same as above if empty) 10249module_cmds=$lt_module_cmds 10250module_expsym_cmds=$lt_module_expsym_cmds 10251 10252# Commands to strip libraries. 10253old_striplib=$lt_old_striplib 10254striplib=$lt_striplib 10255 10256# Dependencies to place before the objects being linked to create a 10257# shared library. 10258predep_objects=$lt_predep_objects 10259 10260# Dependencies to place after the objects being linked to create a 10261# shared library. 10262postdep_objects=$lt_postdep_objects 10263 10264# Dependencies to place before the objects being linked to create a 10265# shared library. 10266predeps=$lt_predeps 10267 10268# Dependencies to place after the objects being linked to create a 10269# shared library. 10270postdeps=$lt_postdeps 10271 10272# The library search path used internally by the compiler when linking 10273# a shared library. 10274compiler_lib_search_path=$lt_compiler_lib_search_path 10275 10276# Method to check whether dependent libraries are shared objects. 10277deplibs_check_method=$lt_deplibs_check_method 10278 10279# Command to use when deplibs_check_method == file_magic. 10280file_magic_cmd=$lt_file_magic_cmd 10281 10282# Flag that allows shared libraries with undefined symbols to be built. 10283allow_undefined_flag=$lt_allow_undefined_flag 10284 10285# Flag that forces no undefined symbols. 10286no_undefined_flag=$lt_no_undefined_flag 10287 10288# Commands used to finish a libtool library installation in a directory. 10289finish_cmds=$lt_finish_cmds 10290 10291# Same as above, but a single script fragment to be evaled but not shown. 10292finish_eval=$lt_finish_eval 10293 10294# Take the output of nm and produce a listing of raw symbols and C names. 10295global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 10296 10297# Transform the output of nm in a proper C declaration 10298global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 10299 10300# Transform the output of nm in a C name address pair 10301global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 10302 10303# This is the shared library runtime path variable. 10304runpath_var=$runpath_var 10305 10306# This is the shared library path variable. 10307shlibpath_var=$shlibpath_var 10308 10309# Is shlibpath searched before the hard-coded library search path? 10310shlibpath_overrides_runpath=$shlibpath_overrides_runpath 10311 10312# How to hardcode a shared library path into an executable. 10313hardcode_action=$hardcode_action 10314 10315# Whether we should hardcode library paths into libraries. 10316hardcode_into_libs=$hardcode_into_libs 10317 10318# Flag to hardcode \$libdir into a binary during linking. 10319# This must work even if \$libdir does not exist. 10320hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 10321 10322# If ld is used when linking, flag to hardcode \$libdir into 10323# a binary during linking. This must work even if \$libdir does 10324# not exist. 10325hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 10326 10327# Whether we need a single -rpath flag with a separated argument. 10328hardcode_libdir_separator=$lt_hardcode_libdir_separator 10329 10330# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 10331# resulting binary. 10332hardcode_direct=$hardcode_direct 10333 10334# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 10335# resulting binary. 10336hardcode_minus_L=$hardcode_minus_L 10337 10338# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 10339# the resulting binary. 10340hardcode_shlibpath_var=$hardcode_shlibpath_var 10341 10342# Set to yes if building a shared library automatically hardcodes DIR into the library 10343# and all subsequent libraries and executables linked against it. 10344hardcode_automatic=$hardcode_automatic 10345 10346# Variables whose values should be saved in libtool wrapper scripts and 10347# restored at relink time. 10348variables_saved_for_relink="$variables_saved_for_relink" 10349 10350# Whether libtool must link a program against all its dependency libraries. 10351link_all_deplibs=$link_all_deplibs 10352 10353# Compile-time system search path for libraries 10354sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 10355 10356# Run-time system search path for libraries 10357sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 10358 10359# Fix the shell variable \$srcfile for the compiler. 10360fix_srcfile_path="$fix_srcfile_path" 10361 10362# Set to yes if exported symbols are required. 10363always_export_symbols=$always_export_symbols 10364 10365# The commands to list exported symbols. 10366export_symbols_cmds=$lt_export_symbols_cmds 10367 10368# The commands to extract the exported symbol list from a shared archive. 10369extract_expsyms_cmds=$lt_extract_expsyms_cmds 10370 10371# Symbols that should not be listed in the preloaded symbols. 10372exclude_expsyms=$lt_exclude_expsyms 10373 10374# Symbols that must always be exported. 10375include_expsyms=$lt_include_expsyms 10376 10377# ### END LIBTOOL CONFIG 10378 10379__EOF__ 10380 10381 10382 case $host_os in 10383 aix3*) 10384 cat <<\EOF >> "$cfgfile" 10385 10386# AIX sometimes has problems with the GCC collect2 program. For some 10387# reason, if we set the COLLECT_NAMES environment variable, the problems 10388# vanish in a puff of smoke. 10389if test "X${COLLECT_NAMES+set}" != Xset; then 10390 COLLECT_NAMES= 10391 export COLLECT_NAMES 10392fi 10393EOF 10394 ;; 10395 esac 10396 10397 # We use sed instead of cat because bash on DJGPP gets confused if 10398 # if finds mixed CR/LF and LF-only lines. Since sed operates in 10399 # text mode, it properly converts lines to CR/LF. This bash problem 10400 # is reportedly fixed, but why not run on old versions too? 10401 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 10402 10403 mv -f "$cfgfile" "$ofile" || \ 10404 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 10405 chmod +x "$ofile" 10406 10407else 10408 # If there is no Makefile yet, we rely on a make rule to execute 10409 # `config.status --recheck' to rerun these tests and create the 10410 # libtool script then. 10411 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 10412 if test -f "$ltmain_in"; then 10413 test -f Makefile && make "$ltmain" 10414 fi 10415fi 10416 10417 10418ac_ext=c 10419ac_cpp='$CPP $CPPFLAGS' 10420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10422ac_compiler_gnu=$ac_cv_c_compiler_gnu 10423 10424CC="$lt_save_CC" 10425 10426 10427# Check whether --with-tags was given. 10428if test "${with_tags+set}" = set; then 10429 withval=$with_tags; tagnames="$withval" 10430fi 10431 10432 10433if test -f "$ltmain" && test -n "$tagnames"; then 10434 if test ! -f "${ofile}"; then 10435 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 10436echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 10437 fi 10438 10439 if test -z "$LTCC"; then 10440 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 10441 if test -z "$LTCC"; then 10442 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 10443echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 10444 else 10445 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 10446echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 10447 fi 10448 fi 10449 if test -z "$LTCFLAGS"; then 10450 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 10451 fi 10452 10453 # Extract list of available tagged configurations in $ofile. 10454 # Note that this assumes the entire list is on one line. 10455 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 10456 10457 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10458 for tagname in $tagnames; do 10459 IFS="$lt_save_ifs" 10460 # Check whether tagname contains only valid characters 10461 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 10462 "") ;; 10463 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 10464echo "$as_me: error: invalid tag name: $tagname" >&2;} 10465 { (exit 1); exit 1; }; } 10466 ;; 10467 esac 10468 10469 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 10470 then 10471 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 10472echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 10473 { (exit 1); exit 1; }; } 10474 fi 10475 10476 # Update the list of available tags. 10477 if test -n "$tagname"; then 10478 echo appending configuration tag \"$tagname\" to $ofile 10479 10480 case $tagname in 10481 CXX) 10482 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 10483 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 10484 (test "X$CXX" != "Xg++"))) ; then 10485 ac_ext=cpp 10486ac_cpp='$CXXCPP $CPPFLAGS' 10487ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10488ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10489ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10490 10491 10492 10493 10494archive_cmds_need_lc_CXX=no 10495allow_undefined_flag_CXX= 10496always_export_symbols_CXX=no 10497archive_expsym_cmds_CXX= 10498export_dynamic_flag_spec_CXX= 10499hardcode_direct_CXX=no 10500hardcode_libdir_flag_spec_CXX= 10501hardcode_libdir_flag_spec_ld_CXX= 10502hardcode_libdir_separator_CXX= 10503hardcode_minus_L_CXX=no 10504hardcode_shlibpath_var_CXX=unsupported 10505hardcode_automatic_CXX=no 10506module_cmds_CXX= 10507module_expsym_cmds_CXX= 10508link_all_deplibs_CXX=unknown 10509old_archive_cmds_CXX=$old_archive_cmds 10510no_undefined_flag_CXX= 10511whole_archive_flag_spec_CXX= 10512enable_shared_with_static_runtimes_CXX=no 10513 10514# Dependencies to place before and after the object being linked: 10515predep_objects_CXX= 10516postdep_objects_CXX= 10517predeps_CXX= 10518postdeps_CXX= 10519compiler_lib_search_path_CXX= 10520 10521# Source file extension for C++ test sources. 10522ac_ext=cpp 10523 10524# Object file extension for compiled C++ test sources. 10525objext=o 10526objext_CXX=$objext 10527 10528# Code to be used in simple compile tests 10529lt_simple_compile_test_code="int some_variable = 0;\n" 10530 10531# Code to be used in simple link tests 10532lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 10533 10534# ltmain only uses $CC for tagged configurations so make sure $CC is set. 10535 10536# If no C compiler was specified, use CC. 10537LTCC=${LTCC-"$CC"} 10538 10539# If no C compiler flags were specified, use CFLAGS. 10540LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10541 10542# Allow CC to be a program name with arguments. 10543compiler=$CC 10544 10545 10546# save warnings/boilerplate of simple test code 10547ac_outfile=conftest.$ac_objext 10548printf "$lt_simple_compile_test_code" >conftest.$ac_ext 10549eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10550_lt_compiler_boilerplate=`cat conftest.err` 10551$rm conftest* 10552 10553ac_outfile=conftest.$ac_objext 10554printf "$lt_simple_link_test_code" >conftest.$ac_ext 10555eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10556_lt_linker_boilerplate=`cat conftest.err` 10557$rm conftest* 10558 10559 10560# Allow CC to be a program name with arguments. 10561lt_save_CC=$CC 10562lt_save_LD=$LD 10563lt_save_GCC=$GCC 10564GCC=$GXX 10565lt_save_with_gnu_ld=$with_gnu_ld 10566lt_save_path_LD=$lt_cv_path_LD 10567if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 10568 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 10569else 10570 $as_unset lt_cv_prog_gnu_ld 10571fi 10572if test -n "${lt_cv_path_LDCXX+set}"; then 10573 lt_cv_path_LD=$lt_cv_path_LDCXX 10574else 10575 $as_unset lt_cv_path_LD 10576fi 10577test -z "${LDCXX+set}" || LD=$LDCXX 10578CC=${CXX-"c++"} 10579compiler=$CC 10580compiler_CXX=$CC 10581for cc_temp in $compiler""; do 10582 case $cc_temp in 10583 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10584 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10585 \-*) ;; 10586 *) break;; 10587 esac 10588done 10589cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 10590 10591 10592# We don't want -fno-exception wen compiling C++ code, so set the 10593# no_builtin_flag separately 10594if test "$GXX" = yes; then 10595 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 10596else 10597 lt_prog_compiler_no_builtin_flag_CXX= 10598fi 10599 10600if test "$GXX" = yes; then 10601 # Set up default GNU C++ configuration 10602 10603 10604# Check whether --with-gnu-ld was given. 10605if test "${with_gnu_ld+set}" = set; then 10606 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 10607else 10608 with_gnu_ld=no 10609fi 10610 10611ac_prog=ld 10612if test "$GCC" = yes; then 10613 # Check if gcc -print-prog-name=ld gives a path. 10614 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 10615echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 10616 case $host in 10617 *-*-mingw*) 10618 # gcc leaves a trailing carriage return which upsets mingw 10619 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 10620 *) 10621 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 10622 esac 10623 case $ac_prog in 10624 # Accept absolute paths. 10625 [\\/]* | ?:[\\/]*) 10626 re_direlt='/[^/][^/]*/\.\./' 10627 # Canonicalize the pathname of ld 10628 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 10629 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 10630 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 10631 done 10632 test -z "$LD" && LD="$ac_prog" 10633 ;; 10634 "") 10635 # If it fails, then pretend we aren't using GCC. 10636 ac_prog=ld 10637 ;; 10638 *) 10639 # If it is relative, then search for the first ld in PATH. 10640 with_gnu_ld=unknown 10641 ;; 10642 esac 10643elif test "$with_gnu_ld" = yes; then 10644 { echo "$as_me:$LINENO: checking for GNU ld" >&5 10645echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 10646else 10647 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 10648echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 10649fi 10650if test "${lt_cv_path_LD+set}" = set; then 10651 echo $ECHO_N "(cached) $ECHO_C" >&6 10652else 10653 if test -z "$LD"; then 10654 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10655 for ac_dir in $PATH; do 10656 IFS="$lt_save_ifs" 10657 test -z "$ac_dir" && ac_dir=. 10658 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 10659 lt_cv_path_LD="$ac_dir/$ac_prog" 10660 # Check to see if the program is GNU ld. I'd rather use --version, 10661 # but apparently some variants of GNU ld only accept -v. 10662 # Break only if it was the GNU/non-GNU ld that we prefer. 10663 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 10664 *GNU* | *'with BFD'*) 10665 test "$with_gnu_ld" != no && break 10666 ;; 10667 *) 10668 test "$with_gnu_ld" != yes && break 10669 ;; 10670 esac 10671 fi 10672 done 10673 IFS="$lt_save_ifs" 10674else 10675 lt_cv_path_LD="$LD" # Let the user override the test with a path. 10676fi 10677fi 10678 10679LD="$lt_cv_path_LD" 10680if test -n "$LD"; then 10681 { echo "$as_me:$LINENO: result: $LD" >&5 10682echo "${ECHO_T}$LD" >&6; } 10683else 10684 { echo "$as_me:$LINENO: result: no" >&5 10685echo "${ECHO_T}no" >&6; } 10686fi 10687test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 10688echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 10689 { (exit 1); exit 1; }; } 10690{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 10691echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 10692if test "${lt_cv_prog_gnu_ld+set}" = set; then 10693 echo $ECHO_N "(cached) $ECHO_C" >&6 10694else 10695 # I'd rather use --version here, but apparently some GNU lds only accept -v. 10696case `$LD -v 2>&1 </dev/null` in 10697*GNU* | *'with BFD'*) 10698 lt_cv_prog_gnu_ld=yes 10699 ;; 10700*) 10701 lt_cv_prog_gnu_ld=no 10702 ;; 10703esac 10704fi 10705{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 10706echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 10707with_gnu_ld=$lt_cv_prog_gnu_ld 10708 10709 10710 10711 # Check if GNU C++ uses GNU ld as the underlying linker, since the 10712 # archiving commands below assume that GNU ld is being used. 10713 if test "$with_gnu_ld" = yes; then 10714 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10715 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' 10716 10717 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10718 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10719 10720 # If archive_cmds runs LD, not CC, wlarc should be empty 10721 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 10722 # investigate it a little bit more. (MM) 10723 wlarc='${wl}' 10724 10725 # ancient GNU ld didn't support --whole-archive et. al. 10726 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 10727 grep 'no-whole-archive' > /dev/null; then 10728 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10729 else 10730 whole_archive_flag_spec_CXX= 10731 fi 10732 else 10733 with_gnu_ld=no 10734 wlarc= 10735 10736 # A generic and very simple default shared library creation 10737 # command for GNU C++ for the case where it uses the native 10738 # linker, instead of GNU ld. If possible, this setting should 10739 # overridden to take advantage of the native linker features on 10740 # the platform it is being used on. 10741 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10742 fi 10743 10744 # Commands to make compiler produce verbose output that lists 10745 # what "hidden" libraries, object files and flags are used when 10746 # linking a shared library. 10747 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10748 10749else 10750 GXX=no 10751 with_gnu_ld=no 10752 wlarc= 10753fi 10754 10755# PORTME: fill in a description of your system's C++ link characteristics 10756{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10757echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 10758ld_shlibs_CXX=yes 10759case $host_os in 10760 aix3*) 10761 # FIXME: insert proper C++ library support 10762 ld_shlibs_CXX=no 10763 ;; 10764 aix4* | aix5*) 10765 if test "$host_cpu" = ia64; then 10766 # On IA64, the linker does run time linking by default, so we don't 10767 # have to do anything special. 10768 aix_use_runtimelinking=no 10769 exp_sym_flag='-Bexport' 10770 no_entry_flag="" 10771 else 10772 aix_use_runtimelinking=no 10773 10774 # Test if we are trying to use run time linking or normal 10775 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10776 # need to do runtime linking. 10777 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 10778 for ld_flag in $LDFLAGS; do 10779 case $ld_flag in 10780 *-brtl*) 10781 aix_use_runtimelinking=yes 10782 break 10783 ;; 10784 esac 10785 done 10786 ;; 10787 esac 10788 10789 exp_sym_flag='-bexport' 10790 no_entry_flag='-bnoentry' 10791 fi 10792 10793 # When large executables or shared objects are built, AIX ld can 10794 # have problems creating the table of contents. If linking a library 10795 # or program results in "error TOC overflow" add -mminimal-toc to 10796 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10797 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10798 10799 archive_cmds_CXX='' 10800 hardcode_direct_CXX=yes 10801 hardcode_libdir_separator_CXX=':' 10802 link_all_deplibs_CXX=yes 10803 10804 if test "$GXX" = yes; then 10805 case $host_os in aix4.[012]|aix4.[012].*) 10806 # We only want to do this on AIX 4.2 and lower, the check 10807 # below for broken collect2 doesn't work under 4.3+ 10808 collect2name=`${CC} -print-prog-name=collect2` 10809 if test -f "$collect2name" && \ 10810 strings "$collect2name" | grep resolve_lib_name >/dev/null 10811 then 10812 # We have reworked collect2 10813 hardcode_direct_CXX=yes 10814 else 10815 # We have old collect2 10816 hardcode_direct_CXX=unsupported 10817 # It fails to find uninstalled libraries when the uninstalled 10818 # path is not listed in the libpath. Setting hardcode_minus_L 10819 # to unsupported forces relinking 10820 hardcode_minus_L_CXX=yes 10821 hardcode_libdir_flag_spec_CXX='-L$libdir' 10822 hardcode_libdir_separator_CXX= 10823 fi 10824 ;; 10825 esac 10826 shared_flag='-shared' 10827 if test "$aix_use_runtimelinking" = yes; then 10828 shared_flag="$shared_flag "'${wl}-G' 10829 fi 10830 else 10831 # not using gcc 10832 if test "$host_cpu" = ia64; then 10833 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10834 # chokes on -Wl,-G. The following line is correct: 10835 shared_flag='-G' 10836 else 10837 if test "$aix_use_runtimelinking" = yes; then 10838 shared_flag='${wl}-G' 10839 else 10840 shared_flag='${wl}-bM:SRE' 10841 fi 10842 fi 10843 fi 10844 10845 # It seems that -bexpall does not export symbols beginning with 10846 # underscore (_), so it is better to generate a list of symbols to export. 10847 always_export_symbols_CXX=yes 10848 if test "$aix_use_runtimelinking" = yes; then 10849 # Warning - without using the other runtime loading flags (-brtl), 10850 # -berok will link without error, but may produce a broken library. 10851 allow_undefined_flag_CXX='-berok' 10852 # Determine the default libpath from the value encoded in an empty executable. 10853 cat >conftest.$ac_ext <<_ACEOF 10854/* confdefs.h. */ 10855_ACEOF 10856cat confdefs.h >>conftest.$ac_ext 10857cat >>conftest.$ac_ext <<_ACEOF 10858/* end confdefs.h. */ 10859 10860int 10861main () 10862{ 10863 10864 ; 10865 return 0; 10866} 10867_ACEOF 10868rm -f conftest.$ac_objext conftest$ac_exeext 10869if { (ac_try="$ac_link" 10870case "(($ac_try" in 10871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10872 *) ac_try_echo=$ac_try;; 10873esac 10874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10875 (eval "$ac_link") 2>conftest.er1 10876 ac_status=$? 10877 grep -v '^ *+' conftest.er1 >conftest.err 10878 rm -f conftest.er1 10879 cat conftest.err >&5 10880 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10881 (exit $ac_status); } && { 10882 test -z "$ac_cxx_werror_flag" || 10883 test ! -s conftest.err 10884 } && test -s conftest$ac_exeext && 10885 $as_test_x conftest$ac_exeext; then 10886 10887aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10888}'` 10889# Check for a 64-bit object if we didn't find anything. 10890if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10891}'`; fi 10892else 10893 echo "$as_me: failed program was:" >&5 10894sed 's/^/| /' conftest.$ac_ext >&5 10895 10896 10897fi 10898 10899rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10900 conftest$ac_exeext conftest.$ac_ext 10901if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10902 10903 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10904 10905 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" 10906 else 10907 if test "$host_cpu" = ia64; then 10908 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 10909 allow_undefined_flag_CXX="-z nodefs" 10910 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" 10911 else 10912 # Determine the default libpath from the value encoded in an empty executable. 10913 cat >conftest.$ac_ext <<_ACEOF 10914/* confdefs.h. */ 10915_ACEOF 10916cat confdefs.h >>conftest.$ac_ext 10917cat >>conftest.$ac_ext <<_ACEOF 10918/* end confdefs.h. */ 10919 10920int 10921main () 10922{ 10923 10924 ; 10925 return 0; 10926} 10927_ACEOF 10928rm -f conftest.$ac_objext conftest$ac_exeext 10929if { (ac_try="$ac_link" 10930case "(($ac_try" in 10931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10932 *) ac_try_echo=$ac_try;; 10933esac 10934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10935 (eval "$ac_link") 2>conftest.er1 10936 ac_status=$? 10937 grep -v '^ *+' conftest.er1 >conftest.err 10938 rm -f conftest.er1 10939 cat conftest.err >&5 10940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10941 (exit $ac_status); } && { 10942 test -z "$ac_cxx_werror_flag" || 10943 test ! -s conftest.err 10944 } && test -s conftest$ac_exeext && 10945 $as_test_x conftest$ac_exeext; then 10946 10947aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10948}'` 10949# Check for a 64-bit object if we didn't find anything. 10950if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10951}'`; fi 10952else 10953 echo "$as_me: failed program was:" >&5 10954sed 's/^/| /' conftest.$ac_ext >&5 10955 10956 10957fi 10958 10959rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10960 conftest$ac_exeext conftest.$ac_ext 10961if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10962 10963 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10964 # Warning - without using the other run time loading flags, 10965 # -berok will link without error, but may produce a broken library. 10966 no_undefined_flag_CXX=' ${wl}-bernotok' 10967 allow_undefined_flag_CXX=' ${wl}-berok' 10968 # Exported symbols can be pulled into shared objects from archives 10969 whole_archive_flag_spec_CXX='$convenience' 10970 archive_cmds_need_lc_CXX=yes 10971 # This is similar to how AIX traditionally builds its shared libraries. 10972 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' 10973 fi 10974 fi 10975 ;; 10976 10977 beos*) 10978 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 10979 allow_undefined_flag_CXX=unsupported 10980 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10981 # support --undefined. This deserves some investigation. FIXME 10982 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10983 else 10984 ld_shlibs_CXX=no 10985 fi 10986 ;; 10987 10988 chorus*) 10989 case $cc_basename in 10990 *) 10991 # FIXME: insert proper C++ library support 10992 ld_shlibs_CXX=no 10993 ;; 10994 esac 10995 ;; 10996 10997 cygwin* | mingw* | pw32*) 10998 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 10999 # as there is no search path for DLLs. 11000 hardcode_libdir_flag_spec_CXX='-L$libdir' 11001 allow_undefined_flag_CXX=unsupported 11002 always_export_symbols_CXX=no 11003 enable_shared_with_static_runtimes_CXX=yes 11004 11005 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11006 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' 11007 # If the export-symbols file already is a .def file (1st line 11008 # is EXPORTS), use it as is; otherwise, prepend... 11009 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11010 cp $export_symbols $output_objdir/$soname.def; 11011 else 11012 echo EXPORTS > $output_objdir/$soname.def; 11013 cat $export_symbols >> $output_objdir/$soname.def; 11014 fi~ 11015 $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' 11016 else 11017 ld_shlibs_CXX=no 11018 fi 11019 ;; 11020 darwin* | rhapsody*) 11021 case $host_os in 11022 rhapsody* | darwin1.[012]) 11023 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 11024 ;; 11025 *) # Darwin 1.3 on 11026 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 11027 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11028 else 11029 case ${MACOSX_DEPLOYMENT_TARGET} in 11030 10.[012]) 11031 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11032 ;; 11033 10.*) 11034 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 11035 ;; 11036 esac 11037 fi 11038 ;; 11039 esac 11040 archive_cmds_need_lc_CXX=no 11041 hardcode_direct_CXX=no 11042 hardcode_automatic_CXX=yes 11043 hardcode_shlibpath_var_CXX=unsupported 11044 whole_archive_flag_spec_CXX='' 11045 link_all_deplibs_CXX=yes 11046 11047 if test "$GXX" = yes ; then 11048 lt_int_apple_cc_single_mod=no 11049 output_verbose_link_cmd='echo' 11050 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 11051 lt_int_apple_cc_single_mod=yes 11052 fi 11053 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11054 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 11055 else 11056 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' 11057 fi 11058 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11059 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11060 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11061 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}' 11062 else 11063 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}' 11064 fi 11065 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}' 11066 else 11067 case $cc_basename in 11068 xlc*) 11069 output_verbose_link_cmd='echo' 11070 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 11071 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11072 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11073 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11074 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}' 11075 ;; 11076 *) 11077 ld_shlibs_CXX=no 11078 ;; 11079 esac 11080 fi 11081 ;; 11082 11083 dgux*) 11084 case $cc_basename in 11085 ec++*) 11086 # FIXME: insert proper C++ library support 11087 ld_shlibs_CXX=no 11088 ;; 11089 ghcx*) 11090 # Green Hills C++ Compiler 11091 # FIXME: insert proper C++ library support 11092 ld_shlibs_CXX=no 11093 ;; 11094 *) 11095 # FIXME: insert proper C++ library support 11096 ld_shlibs_CXX=no 11097 ;; 11098 esac 11099 ;; 11100 freebsd[12]*) 11101 # C++ shared libraries reported to be fairly broken before switch to ELF 11102 ld_shlibs_CXX=no 11103 ;; 11104 freebsd-elf*) 11105 archive_cmds_need_lc_CXX=no 11106 ;; 11107 freebsd* | dragonfly*) 11108 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11109 # conventions 11110 ld_shlibs_CXX=yes 11111 ;; 11112 gnu*) 11113 ;; 11114 hpux9*) 11115 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11116 hardcode_libdir_separator_CXX=: 11117 export_dynamic_flag_spec_CXX='${wl}-E' 11118 hardcode_direct_CXX=yes 11119 hardcode_minus_L_CXX=yes # Not in the search PATH, 11120 # but as the default 11121 # location of the library. 11122 11123 case $cc_basename in 11124 CC*) 11125 # FIXME: insert proper C++ library support 11126 ld_shlibs_CXX=no 11127 ;; 11128 aCC*) 11129 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' 11130 # Commands to make compiler produce verbose output that lists 11131 # what "hidden" libraries, object files and flags are used when 11132 # linking a shared library. 11133 # 11134 # There doesn't appear to be a way to prevent this compiler from 11135 # explicitly linking system object files so we need to strip them 11136 # from the output so that they don't get included in the library 11137 # dependencies. 11138 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' 11139 ;; 11140 *) 11141 if test "$GXX" = yes; then 11142 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' 11143 else 11144 # FIXME: insert proper C++ library support 11145 ld_shlibs_CXX=no 11146 fi 11147 ;; 11148 esac 11149 ;; 11150 hpux10*|hpux11*) 11151 if test $with_gnu_ld = no; then 11152 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11153 hardcode_libdir_separator_CXX=: 11154 11155 case $host_cpu in 11156 hppa*64*|ia64*) 11157 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 11158 ;; 11159 *) 11160 export_dynamic_flag_spec_CXX='${wl}-E' 11161 ;; 11162 esac 11163 fi 11164 case $host_cpu in 11165 hppa*64*|ia64*) 11166 hardcode_direct_CXX=no 11167 hardcode_shlibpath_var_CXX=no 11168 ;; 11169 *) 11170 hardcode_direct_CXX=yes 11171 hardcode_minus_L_CXX=yes # Not in the search PATH, 11172 # but as the default 11173 # location of the library. 11174 ;; 11175 esac 11176 11177 case $cc_basename in 11178 CC*) 11179 # FIXME: insert proper C++ library support 11180 ld_shlibs_CXX=no 11181 ;; 11182 aCC*) 11183 case $host_cpu in 11184 hppa*64*) 11185 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11186 ;; 11187 ia64*) 11188 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11189 ;; 11190 *) 11191 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11192 ;; 11193 esac 11194 # Commands to make compiler produce verbose output that lists 11195 # what "hidden" libraries, object files and flags are used when 11196 # linking a shared library. 11197 # 11198 # There doesn't appear to be a way to prevent this compiler from 11199 # explicitly linking system object files so we need to strip them 11200 # from the output so that they don't get included in the library 11201 # dependencies. 11202 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' 11203 ;; 11204 *) 11205 if test "$GXX" = yes; then 11206 if test $with_gnu_ld = no; then 11207 case $host_cpu in 11208 hppa*64*) 11209 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11210 ;; 11211 ia64*) 11212 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11213 ;; 11214 *) 11215 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' 11216 ;; 11217 esac 11218 fi 11219 else 11220 # FIXME: insert proper C++ library support 11221 ld_shlibs_CXX=no 11222 fi 11223 ;; 11224 esac 11225 ;; 11226 interix3*) 11227 hardcode_direct_CXX=no 11228 hardcode_shlibpath_var_CXX=no 11229 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11230 export_dynamic_flag_spec_CXX='${wl}-E' 11231 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11232 # Instead, shared libraries are loaded at an image base (0x10000000 by 11233 # default) and relocated if they conflict, which is a slow very memory 11234 # consuming and fragmenting process. To avoid this, we pick a random, 11235 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11236 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11237 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' 11238 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' 11239 ;; 11240 irix5* | irix6*) 11241 case $cc_basename in 11242 CC*) 11243 # SGI C++ 11244 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' 11245 11246 # Archives containing C++ object files must be created using 11247 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11248 # necessary to make sure instantiated templates are included 11249 # in the archive. 11250 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11251 ;; 11252 *) 11253 if test "$GXX" = yes; then 11254 if test "$with_gnu_ld" = no; then 11255 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' 11256 else 11257 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' 11258 fi 11259 fi 11260 link_all_deplibs_CXX=yes 11261 ;; 11262 esac 11263 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11264 hardcode_libdir_separator_CXX=: 11265 ;; 11266 linux* | k*bsd*-gnu) 11267 case $cc_basename in 11268 KCC*) 11269 # Kuck and Associates, Inc. (KAI) C++ Compiler 11270 11271 # KCC will only create a shared library if the output file 11272 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11273 # to its proper name (with version) after linking. 11274 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' 11275 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' 11276 # Commands to make compiler produce verbose output that lists 11277 # what "hidden" libraries, object files and flags are used when 11278 # linking a shared library. 11279 # 11280 # There doesn't appear to be a way to prevent this compiler from 11281 # explicitly linking system object files so we need to strip them 11282 # from the output so that they don't get included in the library 11283 # dependencies. 11284 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' 11285 11286 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 11287 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11288 11289 # Archives containing C++ object files must be created using 11290 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11291 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11292 ;; 11293 icpc*) 11294 # Intel C++ 11295 with_gnu_ld=yes 11296 # version 8.0 and above of icpc choke on multiply defined symbols 11297 # if we add $predep_objects and $postdep_objects, however 7.1 and 11298 # earlier do not add the objects themselves. 11299 case `$CC -V 2>&1` in 11300 *"Version 7."*) 11301 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11302 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' 11303 ;; 11304 *) # Version 8.0 or newer 11305 tmp_idyn= 11306 case $host_cpu in 11307 ia64*) tmp_idyn=' -i_dynamic';; 11308 esac 11309 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11310 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' 11311 ;; 11312 esac 11313 archive_cmds_need_lc_CXX=no 11314 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11315 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11316 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11317 ;; 11318 pgCC*) 11319 # Portland Group C++ compiler 11320 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 11321 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' 11322 11323 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11324 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11325 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' 11326 ;; 11327 cxx*) 11328 # Compaq C++ 11329 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11330 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' 11331 11332 runpath_var=LD_RUN_PATH 11333 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11334 hardcode_libdir_separator_CXX=: 11335 11336 # Commands to make compiler produce verbose output that lists 11337 # what "hidden" libraries, object files and flags are used when 11338 # linking a shared library. 11339 # 11340 # There doesn't appear to be a way to prevent this compiler from 11341 # explicitly linking system object files so we need to strip them 11342 # from the output so that they don't get included in the library 11343 # dependencies. 11344 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' 11345 ;; 11346 esac 11347 ;; 11348 lynxos*) 11349 # FIXME: insert proper C++ library support 11350 ld_shlibs_CXX=no 11351 ;; 11352 m88k*) 11353 # FIXME: insert proper C++ library support 11354 ld_shlibs_CXX=no 11355 ;; 11356 mvs*) 11357 case $cc_basename in 11358 cxx*) 11359 # FIXME: insert proper C++ library support 11360 ld_shlibs_CXX=no 11361 ;; 11362 *) 11363 # FIXME: insert proper C++ library support 11364 ld_shlibs_CXX=no 11365 ;; 11366 esac 11367 ;; 11368 netbsd* | netbsdelf*-gnu) 11369 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11370 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 11371 wlarc= 11372 hardcode_libdir_flag_spec_CXX='-R$libdir' 11373 hardcode_direct_CXX=yes 11374 hardcode_shlibpath_var_CXX=no 11375 fi 11376 # Workaround some broken pre-1.5 toolchains 11377 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 11378 ;; 11379 openbsd2*) 11380 # C++ shared libraries are fairly broken 11381 ld_shlibs_CXX=no 11382 ;; 11383 openbsd*) 11384 hardcode_direct_CXX=yes 11385 hardcode_shlibpath_var_CXX=no 11386 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11387 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11388 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11389 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 11390 export_dynamic_flag_spec_CXX='${wl}-E' 11391 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11392 fi 11393 output_verbose_link_cmd='echo' 11394 ;; 11395 osf3*) 11396 case $cc_basename in 11397 KCC*) 11398 # Kuck and Associates, Inc. (KAI) C++ Compiler 11399 11400 # KCC will only create a shared library if the output file 11401 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11402 # to its proper name (with version) after linking. 11403 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' 11404 11405 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11406 hardcode_libdir_separator_CXX=: 11407 11408 # Archives containing C++ object files must be created using 11409 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11410 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11411 11412 ;; 11413 RCC*) 11414 # Rational C++ 2.4.1 11415 # FIXME: insert proper C++ library support 11416 ld_shlibs_CXX=no 11417 ;; 11418 cxx*) 11419 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11420 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' 11421 11422 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11423 hardcode_libdir_separator_CXX=: 11424 11425 # Commands to make compiler produce verbose output that lists 11426 # what "hidden" libraries, object files and flags are used when 11427 # linking a shared library. 11428 # 11429 # There doesn't appear to be a way to prevent this compiler from 11430 # explicitly linking system object files so we need to strip them 11431 # from the output so that they don't get included in the library 11432 # dependencies. 11433 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' 11434 ;; 11435 *) 11436 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11437 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11438 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' 11439 11440 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11441 hardcode_libdir_separator_CXX=: 11442 11443 # Commands to make compiler produce verbose output that lists 11444 # what "hidden" libraries, object files and flags are used when 11445 # linking a shared library. 11446 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11447 11448 else 11449 # FIXME: insert proper C++ library support 11450 ld_shlibs_CXX=no 11451 fi 11452 ;; 11453 esac 11454 ;; 11455 osf4* | osf5*) 11456 case $cc_basename in 11457 KCC*) 11458 # Kuck and Associates, Inc. (KAI) C++ Compiler 11459 11460 # KCC will only create a shared library if the output file 11461 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11462 # to its proper name (with version) after linking. 11463 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' 11464 11465 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11466 hardcode_libdir_separator_CXX=: 11467 11468 # Archives containing C++ object files must be created using 11469 # the KAI C++ compiler. 11470 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 11471 ;; 11472 RCC*) 11473 # Rational C++ 2.4.1 11474 # FIXME: insert proper C++ library support 11475 ld_shlibs_CXX=no 11476 ;; 11477 cxx*) 11478 allow_undefined_flag_CXX=' -expect_unresolved \*' 11479 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' 11480 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 11481 echo "-hidden">> $lib.exp~ 11482 $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~ 11483 $rm $lib.exp' 11484 11485 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11486 hardcode_libdir_separator_CXX=: 11487 11488 # Commands to make compiler produce verbose output that lists 11489 # what "hidden" libraries, object files and flags are used when 11490 # linking a shared library. 11491 # 11492 # There doesn't appear to be a way to prevent this compiler from 11493 # explicitly linking system object files so we need to strip them 11494 # from the output so that they don't get included in the library 11495 # dependencies. 11496 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' 11497 ;; 11498 *) 11499 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11500 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11501 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' 11502 11503 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11504 hardcode_libdir_separator_CXX=: 11505 11506 # Commands to make compiler produce verbose output that lists 11507 # what "hidden" libraries, object files and flags are used when 11508 # linking a shared library. 11509 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11510 11511 else 11512 # FIXME: insert proper C++ library support 11513 ld_shlibs_CXX=no 11514 fi 11515 ;; 11516 esac 11517 ;; 11518 psos*) 11519 # FIXME: insert proper C++ library support 11520 ld_shlibs_CXX=no 11521 ;; 11522 sunos4*) 11523 case $cc_basename in 11524 CC*) 11525 # Sun C++ 4.x 11526 # FIXME: insert proper C++ library support 11527 ld_shlibs_CXX=no 11528 ;; 11529 lcc*) 11530 # Lucid 11531 # FIXME: insert proper C++ library support 11532 ld_shlibs_CXX=no 11533 ;; 11534 *) 11535 # FIXME: insert proper C++ library support 11536 ld_shlibs_CXX=no 11537 ;; 11538 esac 11539 ;; 11540 solaris*) 11541 case $cc_basename in 11542 CC*) 11543 # Sun C++ 4.2, 5.x and Centerline C++ 11544 archive_cmds_need_lc_CXX=yes 11545 no_undefined_flag_CXX=' -zdefs' 11546 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11547 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11548 $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' 11549 11550 hardcode_libdir_flag_spec_CXX='-R$libdir' 11551 hardcode_shlibpath_var_CXX=no 11552 case $host_os in 11553 solaris2.[0-5] | solaris2.[0-5].*) ;; 11554 *) 11555 # The C++ compiler is used as linker so we must use $wl 11556 # flag to pass the commands to the underlying system 11557 # linker. We must also pass each convience library through 11558 # to the system linker between allextract/defaultextract. 11559 # The C++ compiler will combine linker options so we 11560 # cannot just pass the convience library names through 11561 # without $wl. 11562 # Supported since Solaris 2.6 (maybe 2.5.1?) 11563 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' 11564 ;; 11565 esac 11566 link_all_deplibs_CXX=yes 11567 11568 output_verbose_link_cmd='echo' 11569 11570 # Archives containing C++ object files must be created using 11571 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11572 # necessary to make sure instantiated templates are included 11573 # in the archive. 11574 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11575 ;; 11576 gcx*) 11577 # Green Hills C++ Compiler 11578 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11579 11580 # The C++ compiler must be used to create the archive. 11581 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 11582 ;; 11583 *) 11584 # GNU C++ compiler with Solaris linker 11585 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11586 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 11587 if $CC --version | grep -v '^2\.7' > /dev/null; then 11588 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11589 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11590 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11591 11592 # Commands to make compiler produce verbose output that lists 11593 # what "hidden" libraries, object files and flags are used when 11594 # linking a shared library. 11595 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11596 else 11597 # g++ 2.7 appears to require `-G' NOT `-shared' on this 11598 # platform. 11599 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11600 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11601 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11602 11603 # Commands to make compiler produce verbose output that lists 11604 # what "hidden" libraries, object files and flags are used when 11605 # linking a shared library. 11606 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11607 fi 11608 11609 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 11610 fi 11611 ;; 11612 esac 11613 ;; 11614 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11615 no_undefined_flag_CXX='${wl}-z,text' 11616 archive_cmds_need_lc_CXX=no 11617 hardcode_shlibpath_var_CXX=no 11618 runpath_var='LD_RUN_PATH' 11619 11620 case $cc_basename in 11621 CC*) 11622 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11623 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11624 ;; 11625 *) 11626 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11627 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11628 ;; 11629 esac 11630 ;; 11631 sysv5* | sco3.2v5* | sco5v6*) 11632 # Note: We can NOT use -z defs as we might desire, because we do not 11633 # link with -lc, and that would cause any symbols used from libc to 11634 # always be unresolved, which means just about no library would 11635 # ever link correctly. If we're not using GNU ld we use -z text 11636 # though, which does catch some bad symbols but isn't as heavy-handed 11637 # as -z defs. 11638 # For security reasons, it is highly recommended that you always 11639 # use absolute paths for naming shared libraries, and exclude the 11640 # DT_RUNPATH tag from executables and libraries. But doing so 11641 # requires that you compile everything twice, which is a pain. 11642 # So that behaviour is only enabled if SCOABSPATH is set to a 11643 # non-empty value in the environment. Most likely only useful for 11644 # creating official distributions of packages. 11645 # This is a hack until libtool officially supports absolute path 11646 # names for shared libraries. 11647 no_undefined_flag_CXX='${wl}-z,text' 11648 allow_undefined_flag_CXX='${wl}-z,nodefs' 11649 archive_cmds_need_lc_CXX=no 11650 hardcode_shlibpath_var_CXX=no 11651 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 11652 hardcode_libdir_separator_CXX=':' 11653 link_all_deplibs_CXX=yes 11654 export_dynamic_flag_spec_CXX='${wl}-Bexport' 11655 runpath_var='LD_RUN_PATH' 11656 11657 case $cc_basename in 11658 CC*) 11659 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11660 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11661 ;; 11662 *) 11663 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11664 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11665 ;; 11666 esac 11667 ;; 11668 tandem*) 11669 case $cc_basename in 11670 NCC*) 11671 # NonStop-UX NCC 3.20 11672 # FIXME: insert proper C++ library support 11673 ld_shlibs_CXX=no 11674 ;; 11675 *) 11676 # FIXME: insert proper C++ library support 11677 ld_shlibs_CXX=no 11678 ;; 11679 esac 11680 ;; 11681 vxworks*) 11682 # FIXME: insert proper C++ library support 11683 ld_shlibs_CXX=no 11684 ;; 11685 *) 11686 # FIXME: insert proper C++ library support 11687 ld_shlibs_CXX=no 11688 ;; 11689esac 11690{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11691echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 11692test "$ld_shlibs_CXX" = no && can_build_shared=no 11693 11694GCC_CXX="$GXX" 11695LD_CXX="$LD" 11696 11697 11698cat > conftest.$ac_ext <<EOF 11699class Foo 11700{ 11701public: 11702 Foo (void) { a = 0; } 11703private: 11704 int a; 11705}; 11706EOF 11707 11708if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11709 (eval $ac_compile) 2>&5 11710 ac_status=$? 11711 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11712 (exit $ac_status); }; then 11713 # Parse the compiler output and extract the necessary 11714 # objects, libraries and library flags. 11715 11716 # Sentinel used to keep track of whether or not we are before 11717 # the conftest object file. 11718 pre_test_object_deps_done=no 11719 11720 # The `*' in the case matches for architectures that use `case' in 11721 # $output_verbose_cmd can trigger glob expansion during the loop 11722 # eval without this substitution. 11723 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 11724 11725 for p in `eval $output_verbose_link_cmd`; do 11726 case $p in 11727 11728 -L* | -R* | -l*) 11729 # Some compilers place space between "-{L,R}" and the path. 11730 # Remove the space. 11731 if test $p = "-L" \ 11732 || test $p = "-R"; then 11733 prev=$p 11734 continue 11735 else 11736 prev= 11737 fi 11738 11739 if test "$pre_test_object_deps_done" = no; then 11740 case $p in 11741 -L* | -R*) 11742 # Internal compiler library paths should come after those 11743 # provided the user. The postdeps already come after the 11744 # user supplied libs so there is no need to process them. 11745 if test -z "$compiler_lib_search_path_CXX"; then 11746 compiler_lib_search_path_CXX="${prev}${p}" 11747 else 11748 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 11749 fi 11750 ;; 11751 # The "-l" case would never come before the object being 11752 # linked, so don't bother handling this case. 11753 esac 11754 else 11755 if test -z "$postdeps_CXX"; then 11756 postdeps_CXX="${prev}${p}" 11757 else 11758 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 11759 fi 11760 fi 11761 ;; 11762 11763 *.$objext) 11764 # This assumes that the test object file only shows up 11765 # once in the compiler output. 11766 if test "$p" = "conftest.$objext"; then 11767 pre_test_object_deps_done=yes 11768 continue 11769 fi 11770 11771 if test "$pre_test_object_deps_done" = no; then 11772 if test -z "$predep_objects_CXX"; then 11773 predep_objects_CXX="$p" 11774 else 11775 predep_objects_CXX="$predep_objects_CXX $p" 11776 fi 11777 else 11778 if test -z "$postdep_objects_CXX"; then 11779 postdep_objects_CXX="$p" 11780 else 11781 postdep_objects_CXX="$postdep_objects_CXX $p" 11782 fi 11783 fi 11784 ;; 11785 11786 *) ;; # Ignore the rest. 11787 11788 esac 11789 done 11790 11791 # Clean up. 11792 rm -f a.out a.exe 11793else 11794 echo "libtool.m4: error: problem compiling CXX test program" 11795fi 11796 11797$rm -f confest.$objext 11798 11799# PORTME: override above test on systems where it is broken 11800case $host_os in 11801interix3*) 11802 # Interix 3.5 installs completely hosed .la files for C++, so rather than 11803 # hack all around it, let's just trust "g++" to DTRT. 11804 predep_objects_CXX= 11805 postdep_objects_CXX= 11806 postdeps_CXX= 11807 ;; 11808 11809solaris*) 11810 case $cc_basename in 11811 CC*) 11812 # Adding this requires a known-good setup of shared libraries for 11813 # Sun compiler versions before 5.6, else PIC objects from an old 11814 # archive will be linked into the output, leading to subtle bugs. 11815 postdeps_CXX='-lCstd -lCrun' 11816 ;; 11817 esac 11818 ;; 11819esac 11820 11821 11822case " $postdeps_CXX " in 11823*" -lc "*) archive_cmds_need_lc_CXX=no ;; 11824esac 11825 11826lt_prog_compiler_wl_CXX= 11827lt_prog_compiler_pic_CXX= 11828lt_prog_compiler_static_CXX= 11829 11830{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 11831echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 11832 11833 # C++ specific cases for pic, static, wl, etc. 11834 if test "$GXX" = yes; then 11835 lt_prog_compiler_wl_CXX='-Wl,' 11836 lt_prog_compiler_static_CXX='-static' 11837 11838 case $host_os in 11839 aix*) 11840 # All AIX code is PIC. 11841 if test "$host_cpu" = ia64; then 11842 # AIX 5 now supports IA64 processor 11843 lt_prog_compiler_static_CXX='-Bstatic' 11844 fi 11845 ;; 11846 amigaos*) 11847 # FIXME: we need at least 68020 code to build shared libraries, but 11848 # adding the `-m68020' flag to GCC prevents building anything better, 11849 # like `-m68040'. 11850 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 11851 ;; 11852 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 11853 # PIC is the default for these OSes. 11854 ;; 11855 mingw* | os2* | pw32*) 11856 # This hack is so that the source file can tell whether it is being 11857 # built for inclusion in a dll (and should export symbols for example). 11858 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 11859 ;; 11860 darwin* | rhapsody*) 11861 # PIC is the default on this platform 11862 # Common symbols not allowed in MH_DYLIB files 11863 lt_prog_compiler_pic_CXX='-fno-common' 11864 ;; 11865 *djgpp*) 11866 # DJGPP does not support shared libraries at all 11867 lt_prog_compiler_pic_CXX= 11868 ;; 11869 interix3*) 11870 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 11871 # Instead, we relocate shared libraries at runtime. 11872 ;; 11873 sysv4*MP*) 11874 if test -d /usr/nec; then 11875 lt_prog_compiler_pic_CXX=-Kconform_pic 11876 fi 11877 ;; 11878 hpux*) 11879 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11880 # not for PA HP-UX. 11881 case $host_cpu in 11882 hppa*64*|ia64*) 11883 ;; 11884 *) 11885 lt_prog_compiler_pic_CXX='-fPIC' 11886 ;; 11887 esac 11888 ;; 11889 *) 11890 lt_prog_compiler_pic_CXX='-fPIC' 11891 ;; 11892 esac 11893 else 11894 case $host_os in 11895 aix4* | aix5*) 11896 # All AIX code is PIC. 11897 if test "$host_cpu" = ia64; then 11898 # AIX 5 now supports IA64 processor 11899 lt_prog_compiler_static_CXX='-Bstatic' 11900 else 11901 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 11902 fi 11903 ;; 11904 chorus*) 11905 case $cc_basename in 11906 cxch68*) 11907 # Green Hills C++ Compiler 11908 # _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" 11909 ;; 11910 esac 11911 ;; 11912 darwin*) 11913 # PIC is the default on this platform 11914 # Common symbols not allowed in MH_DYLIB files 11915 case $cc_basename in 11916 xlc*) 11917 lt_prog_compiler_pic_CXX='-qnocommon' 11918 lt_prog_compiler_wl_CXX='-Wl,' 11919 ;; 11920 esac 11921 ;; 11922 dgux*) 11923 case $cc_basename in 11924 ec++*) 11925 lt_prog_compiler_pic_CXX='-KPIC' 11926 ;; 11927 ghcx*) 11928 # Green Hills C++ Compiler 11929 lt_prog_compiler_pic_CXX='-pic' 11930 ;; 11931 *) 11932 ;; 11933 esac 11934 ;; 11935 freebsd* | dragonfly*) 11936 # FreeBSD uses GNU C++ 11937 ;; 11938 hpux9* | hpux10* | hpux11*) 11939 case $cc_basename in 11940 CC*) 11941 lt_prog_compiler_wl_CXX='-Wl,' 11942 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 11943 if test "$host_cpu" != ia64; then 11944 lt_prog_compiler_pic_CXX='+Z' 11945 fi 11946 ;; 11947 aCC*) 11948 lt_prog_compiler_wl_CXX='-Wl,' 11949 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 11950 case $host_cpu in 11951 hppa*64*|ia64*) 11952 # +Z the default 11953 ;; 11954 *) 11955 lt_prog_compiler_pic_CXX='+Z' 11956 ;; 11957 esac 11958 ;; 11959 *) 11960 ;; 11961 esac 11962 ;; 11963 interix*) 11964 # This is c89, which is MS Visual C++ (no shared libs) 11965 # Anyone wants to do a port? 11966 ;; 11967 irix5* | irix6* | nonstopux*) 11968 case $cc_basename in 11969 CC*) 11970 lt_prog_compiler_wl_CXX='-Wl,' 11971 lt_prog_compiler_static_CXX='-non_shared' 11972 # CC pic flag -KPIC is the default. 11973 ;; 11974 *) 11975 ;; 11976 esac 11977 ;; 11978 linux* | k*bsd*-gnu) 11979 case $cc_basename in 11980 KCC*) 11981 # KAI C++ Compiler 11982 lt_prog_compiler_wl_CXX='--backend -Wl,' 11983 lt_prog_compiler_pic_CXX='-fPIC' 11984 ;; 11985 icpc* | ecpc*) 11986 # Intel C++ 11987 lt_prog_compiler_wl_CXX='-Wl,' 11988 lt_prog_compiler_pic_CXX='-KPIC' 11989 lt_prog_compiler_static_CXX='-static' 11990 ;; 11991 pgCC*) 11992 # Portland Group C++ compiler. 11993 lt_prog_compiler_wl_CXX='-Wl,' 11994 lt_prog_compiler_pic_CXX='-fpic' 11995 lt_prog_compiler_static_CXX='-Bstatic' 11996 ;; 11997 cxx*) 11998 # Compaq C++ 11999 # Make sure the PIC flag is empty. It appears that all Alpha 12000 # Linux and Compaq Tru64 Unix objects are PIC. 12001 lt_prog_compiler_pic_CXX= 12002 lt_prog_compiler_static_CXX='-non_shared' 12003 ;; 12004 *) 12005 ;; 12006 esac 12007 ;; 12008 lynxos*) 12009 ;; 12010 m88k*) 12011 ;; 12012 mvs*) 12013 case $cc_basename in 12014 cxx*) 12015 lt_prog_compiler_pic_CXX='-W c,exportall' 12016 ;; 12017 *) 12018 ;; 12019 esac 12020 ;; 12021 netbsd* | netbsdelf*-gnu) 12022 ;; 12023 osf3* | osf4* | osf5*) 12024 case $cc_basename in 12025 KCC*) 12026 lt_prog_compiler_wl_CXX='--backend -Wl,' 12027 ;; 12028 RCC*) 12029 # Rational C++ 2.4.1 12030 lt_prog_compiler_pic_CXX='-pic' 12031 ;; 12032 cxx*) 12033 # Digital/Compaq C++ 12034 lt_prog_compiler_wl_CXX='-Wl,' 12035 # Make sure the PIC flag is empty. It appears that all Alpha 12036 # Linux and Compaq Tru64 Unix objects are PIC. 12037 lt_prog_compiler_pic_CXX= 12038 lt_prog_compiler_static_CXX='-non_shared' 12039 ;; 12040 *) 12041 ;; 12042 esac 12043 ;; 12044 psos*) 12045 ;; 12046 solaris*) 12047 case $cc_basename in 12048 CC*) 12049 # Sun C++ 4.2, 5.x and Centerline C++ 12050 lt_prog_compiler_pic_CXX='-KPIC' 12051 lt_prog_compiler_static_CXX='-Bstatic' 12052 lt_prog_compiler_wl_CXX='-Qoption ld ' 12053 ;; 12054 gcx*) 12055 # Green Hills C++ Compiler 12056 lt_prog_compiler_pic_CXX='-PIC' 12057 ;; 12058 *) 12059 ;; 12060 esac 12061 ;; 12062 sunos4*) 12063 case $cc_basename in 12064 CC*) 12065 # Sun C++ 4.x 12066 lt_prog_compiler_pic_CXX='-pic' 12067 lt_prog_compiler_static_CXX='-Bstatic' 12068 ;; 12069 lcc*) 12070 # Lucid 12071 lt_prog_compiler_pic_CXX='-pic' 12072 ;; 12073 *) 12074 ;; 12075 esac 12076 ;; 12077 tandem*) 12078 case $cc_basename in 12079 NCC*) 12080 # NonStop-UX NCC 3.20 12081 lt_prog_compiler_pic_CXX='-KPIC' 12082 ;; 12083 *) 12084 ;; 12085 esac 12086 ;; 12087 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12088 case $cc_basename in 12089 CC*) 12090 lt_prog_compiler_wl_CXX='-Wl,' 12091 lt_prog_compiler_pic_CXX='-KPIC' 12092 lt_prog_compiler_static_CXX='-Bstatic' 12093 ;; 12094 esac 12095 ;; 12096 vxworks*) 12097 ;; 12098 *) 12099 lt_prog_compiler_can_build_shared_CXX=no 12100 ;; 12101 esac 12102 fi 12103 12104{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12105echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } 12106 12107# 12108# Check to make sure the PIC flag actually works. 12109# 12110if test -n "$lt_prog_compiler_pic_CXX"; then 12111 12112{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12113echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } 12114if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 12115 echo $ECHO_N "(cached) $ECHO_C" >&6 12116else 12117 lt_prog_compiler_pic_works_CXX=no 12118 ac_outfile=conftest.$ac_objext 12119 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12120 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12121 # Insert the option either (1) after the last *FLAGS variable, or 12122 # (2) before a word containing "conftest.", or (3) at the end. 12123 # Note that $ac_compile itself does not contain backslashes and begins 12124 # with a dollar sign (not a hyphen), so the echo should work correctly. 12125 # The option is referenced via a variable to avoid confusing sed. 12126 lt_compile=`echo "$ac_compile" | $SED \ 12127 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12128 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12129 -e 's:$: $lt_compiler_flag:'` 12130 (eval echo "\"\$as_me:12130: $lt_compile\"" >&5) 12131 (eval "$lt_compile" 2>conftest.err) 12132 ac_status=$? 12133 cat conftest.err >&5 12134 echo "$as_me:12134: \$? = $ac_status" >&5 12135 if (exit $ac_status) && test -s "$ac_outfile"; then 12136 # The compiler can only warn and ignore the option if not recognized 12137 # So say no if there are warnings other than the usual output. 12138 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12139 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12140 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12141 lt_prog_compiler_pic_works_CXX=yes 12142 fi 12143 fi 12144 $rm conftest* 12145 12146fi 12147{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 12148echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } 12149 12150if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 12151 case $lt_prog_compiler_pic_CXX in 12152 "" | " "*) ;; 12153 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12154 esac 12155else 12156 lt_prog_compiler_pic_CXX= 12157 lt_prog_compiler_can_build_shared_CXX=no 12158fi 12159 12160fi 12161case $host_os in 12162 # For platforms which do not support PIC, -DPIC is meaningless: 12163 *djgpp*) 12164 lt_prog_compiler_pic_CXX= 12165 ;; 12166 *) 12167 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12168 ;; 12169esac 12170 12171# 12172# Check to make sure the static flag actually works. 12173# 12174wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 12175{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12176echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 12177if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 12178 echo $ECHO_N "(cached) $ECHO_C" >&6 12179else 12180 lt_prog_compiler_static_works_CXX=no 12181 save_LDFLAGS="$LDFLAGS" 12182 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12183 printf "$lt_simple_link_test_code" > conftest.$ac_ext 12184 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12185 # The linker can only warn and ignore the option if not recognized 12186 # So say no if there are warnings 12187 if test -s conftest.err; then 12188 # Append any errors to the config.log. 12189 cat conftest.err 1>&5 12190 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 12191 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12192 if diff conftest.exp conftest.er2 >/dev/null; then 12193 lt_prog_compiler_static_works_CXX=yes 12194 fi 12195 else 12196 lt_prog_compiler_static_works_CXX=yes 12197 fi 12198 fi 12199 $rm conftest* 12200 LDFLAGS="$save_LDFLAGS" 12201 12202fi 12203{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 12204echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } 12205 12206if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 12207 : 12208else 12209 lt_prog_compiler_static_CXX= 12210fi 12211 12212 12213{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12214echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 12215if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 12216 echo $ECHO_N "(cached) $ECHO_C" >&6 12217else 12218 lt_cv_prog_compiler_c_o_CXX=no 12219 $rm -r conftest 2>/dev/null 12220 mkdir conftest 12221 cd conftest 12222 mkdir out 12223 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12224 12225 lt_compiler_flag="-o out/conftest2.$ac_objext" 12226 # Insert the option either (1) after the last *FLAGS variable, or 12227 # (2) before a word containing "conftest.", or (3) at the end. 12228 # Note that $ac_compile itself does not contain backslashes and begins 12229 # with a dollar sign (not a hyphen), so the echo should work correctly. 12230 lt_compile=`echo "$ac_compile" | $SED \ 12231 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12232 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12233 -e 's:$: $lt_compiler_flag:'` 12234 (eval echo "\"\$as_me:12234: $lt_compile\"" >&5) 12235 (eval "$lt_compile" 2>out/conftest.err) 12236 ac_status=$? 12237 cat out/conftest.err >&5 12238 echo "$as_me:12238: \$? = $ac_status" >&5 12239 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12240 then 12241 # The compiler can only warn and ignore the option if not recognized 12242 # So say no if there are warnings 12243 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 12244 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12245 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12246 lt_cv_prog_compiler_c_o_CXX=yes 12247 fi 12248 fi 12249 chmod u+w . 2>&5 12250 $rm conftest* 12251 # SGI C++ compiler will create directory out/ii_files/ for 12252 # template instantiation 12253 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 12254 $rm out/* && rmdir out 12255 cd .. 12256 rmdir conftest 12257 $rm conftest* 12258 12259fi 12260{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 12261echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } 12262 12263 12264hard_links="nottested" 12265if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 12266 # do not overwrite the value of need_locks provided by the user 12267 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 12268echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 12269 hard_links=yes 12270 $rm conftest* 12271 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12272 touch conftest.a 12273 ln conftest.a conftest.b 2>&5 || hard_links=no 12274 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12275 { echo "$as_me:$LINENO: result: $hard_links" >&5 12276echo "${ECHO_T}$hard_links" >&6; } 12277 if test "$hard_links" = no; then 12278 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12279echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12280 need_locks=warn 12281 fi 12282else 12283 need_locks=no 12284fi 12285 12286{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12287echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 12288 12289 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12290 case $host_os in 12291 aix4* | aix5*) 12292 # If we're using GNU nm, then we don't want the "-C" option. 12293 # -C means demangle to AIX nm, but means don't demangle with GNU nm 12294 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 12295 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' 12296 else 12297 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' 12298 fi 12299 ;; 12300 pw32*) 12301 export_symbols_cmds_CXX="$ltdll_cmds" 12302 ;; 12303 cygwin* | mingw*) 12304 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' 12305 ;; 12306 linux* | k*bsd*-gnu) 12307 link_all_deplibs_CXX=no 12308 ;; 12309 *) 12310 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12311 ;; 12312 esac 12313 12314{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12315echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12316test "$ld_shlibs_CXX" = no && can_build_shared=no 12317 12318# 12319# Do we need to explicitly link libc? 12320# 12321case "x$archive_cmds_need_lc_CXX" in 12322x|xyes) 12323 # Assume -lc should be added 12324 archive_cmds_need_lc_CXX=yes 12325 12326 if test "$enable_shared" = yes && test "$GCC" = yes; then 12327 case $archive_cmds_CXX in 12328 *'~'*) 12329 # FIXME: we may have to deal with multi-command sequences. 12330 ;; 12331 '$CC '*) 12332 # Test whether the compiler implicitly links with -lc since on some 12333 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12334 # to ld, don't add -lc before -lgcc. 12335 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 12336echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 12337 $rm conftest* 12338 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12339 12340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12341 (eval $ac_compile) 2>&5 12342 ac_status=$? 12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12344 (exit $ac_status); } 2>conftest.err; then 12345 soname=conftest 12346 lib=conftest 12347 libobjs=conftest.$ac_objext 12348 deplibs= 12349 wl=$lt_prog_compiler_wl_CXX 12350 pic_flag=$lt_prog_compiler_pic_CXX 12351 compiler_flags=-v 12352 linker_flags=-v 12353 verstring= 12354 output_objdir=. 12355 libname=conftest 12356 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 12357 allow_undefined_flag_CXX= 12358 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 12359 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 12360 ac_status=$? 12361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12362 (exit $ac_status); } 12363 then 12364 archive_cmds_need_lc_CXX=no 12365 else 12366 archive_cmds_need_lc_CXX=yes 12367 fi 12368 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 12369 else 12370 cat conftest.err 1>&5 12371 fi 12372 $rm conftest* 12373 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 12374echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } 12375 ;; 12376 esac 12377 fi 12378 ;; 12379esac 12380 12381{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 12382echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 12383library_names_spec= 12384libname_spec='lib$name' 12385soname_spec= 12386shrext_cmds=".so" 12387postinstall_cmds= 12388postuninstall_cmds= 12389finish_cmds= 12390finish_eval= 12391shlibpath_var= 12392shlibpath_overrides_runpath=unknown 12393version_type=none 12394dynamic_linker="$host_os ld.so" 12395sys_lib_dlsearch_path_spec="/lib /usr/lib" 12396if test "$GCC" = yes; then 12397 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12398 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 12399 # if the path contains ";" then we assume it to be the separator 12400 # otherwise default to the standard path separator (i.e. ":") - it is 12401 # assumed that no part of a normal pathname contains ";" but that should 12402 # okay in the real world where ";" in dirpaths is itself problematic. 12403 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12404 else 12405 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12406 fi 12407else 12408 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12409fi 12410need_lib_prefix=unknown 12411hardcode_into_libs=no 12412 12413# when you set need_version to no, make sure it does not cause -set_version 12414# flags to be left without arguments 12415need_version=unknown 12416 12417case $host_os in 12418aix3*) 12419 version_type=linux 12420 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12421 shlibpath_var=LIBPATH 12422 12423 # AIX 3 has no versioning support, so we append a major version to the name. 12424 soname_spec='${libname}${release}${shared_ext}$major' 12425 ;; 12426 12427aix4* | aix5*) 12428 version_type=linux 12429 need_lib_prefix=no 12430 need_version=no 12431 hardcode_into_libs=yes 12432 if test "$host_cpu" = ia64; then 12433 # AIX 5 supports IA64 12434 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 12435 shlibpath_var=LD_LIBRARY_PATH 12436 else 12437 # With GCC up to 2.95.x, collect2 would create an import file 12438 # for dependence libraries. The import file would start with 12439 # the line `#! .'. This would cause the generated library to 12440 # depend on `.', always an invalid library. This was fixed in 12441 # development snapshots of GCC prior to 3.0. 12442 case $host_os in 12443 aix4 | aix4.[01] | aix4.[01].*) 12444 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12445 echo ' yes ' 12446 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 12447 : 12448 else 12449 can_build_shared=no 12450 fi 12451 ;; 12452 esac 12453 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 12454 # soname into executable. Probably we can add versioning support to 12455 # collect2, so additional links can be useful in future. 12456 if test "$aix_use_runtimelinking" = yes; then 12457 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12458 # instead of lib<name>.a to let people know that these are not 12459 # typical AIX shared libraries. 12460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12461 else 12462 # We preserve .a as extension for shared libraries through AIX4.2 12463 # and later when we are not doing run time linking. 12464 library_names_spec='${libname}${release}.a $libname.a' 12465 soname_spec='${libname}${release}${shared_ext}$major' 12466 fi 12467 shlibpath_var=LIBPATH 12468 fi 12469 ;; 12470 12471amigaos*) 12472 library_names_spec='$libname.ixlibrary $libname.a' 12473 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12474 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' 12475 ;; 12476 12477beos*) 12478 library_names_spec='${libname}${shared_ext}' 12479 dynamic_linker="$host_os ld.so" 12480 shlibpath_var=LIBRARY_PATH 12481 ;; 12482 12483bsdi[45]*) 12484 version_type=linux 12485 need_version=no 12486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12487 soname_spec='${libname}${release}${shared_ext}$major' 12488 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12489 shlibpath_var=LD_LIBRARY_PATH 12490 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12491 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12492 # the default ld.so.conf also contains /usr/contrib/lib and 12493 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12494 # libtool to hard-code these into programs 12495 ;; 12496 12497cygwin* | mingw* | pw32*) 12498 version_type=windows 12499 shrext_cmds=".dll" 12500 need_version=no 12501 need_lib_prefix=no 12502 12503 case $GCC,$host_os in 12504 yes,cygwin* | yes,mingw* | yes,pw32*) 12505 library_names_spec='$libname.dll.a' 12506 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12507 postinstall_cmds='base_file=`basename \${file}`~ 12508 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 12509 dldir=$destdir/`dirname \$dlpath`~ 12510 test -d \$dldir || mkdir -p \$dldir~ 12511 $install_prog $dir/$dlname \$dldir/$dlname~ 12512 chmod a+x \$dldir/$dlname' 12513 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12514 dlpath=$dir/\$dldll~ 12515 $rm \$dlpath' 12516 shlibpath_overrides_runpath=yes 12517 12518 case $host_os in 12519 cygwin*) 12520 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12521 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12522 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 12523 ;; 12524 mingw*) 12525 # MinGW DLLs use traditional 'lib' prefix 12526 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12527 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12528 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 12529 # It is most probably a Windows format PATH printed by 12530 # mingw gcc, but we are running on Cygwin. Gcc prints its search 12531 # path with ; separators, and with drive letters. We can handle the 12532 # drive letters (cygwin fileutils understands them), so leave them, 12533 # especially as we might pass files found there to a mingw objdump, 12534 # which wouldn't understand a cygwinified path. Ahh. 12535 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12536 else 12537 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12538 fi 12539 ;; 12540 pw32*) 12541 # pw32 DLLs use 'pw' prefix rather than 'lib' 12542 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12543 ;; 12544 esac 12545 ;; 12546 12547 *) 12548 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 12549 ;; 12550 esac 12551 dynamic_linker='Win32 ld.exe' 12552 # FIXME: first we should search . and the directory the executable is in 12553 shlibpath_var=PATH 12554 ;; 12555 12556darwin* | rhapsody*) 12557 dynamic_linker="$host_os dyld" 12558 version_type=darwin 12559 need_lib_prefix=no 12560 need_version=no 12561 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 12562 soname_spec='${libname}${release}${major}$shared_ext' 12563 shlibpath_overrides_runpath=yes 12564 shlibpath_var=DYLD_LIBRARY_PATH 12565 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12566 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 12567 if test "$GCC" = yes; then 12568 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 12569 else 12570 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 12571 fi 12572 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12573 ;; 12574 12575dgux*) 12576 version_type=linux 12577 need_lib_prefix=no 12578 need_version=no 12579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 12580 soname_spec='${libname}${release}${shared_ext}$major' 12581 shlibpath_var=LD_LIBRARY_PATH 12582 ;; 12583 12584freebsd1*) 12585 dynamic_linker=no 12586 ;; 12587 12588freebsd* | dragonfly*) 12589 # DragonFly does not have aout. When/if they implement a new 12590 # versioning mechanism, adjust this. 12591 if test -x /usr/bin/objformat; then 12592 objformat=`/usr/bin/objformat` 12593 else 12594 case $host_os in 12595 freebsd[123]*) objformat=aout ;; 12596 *) objformat=elf ;; 12597 esac 12598 fi 12599 version_type=freebsd-$objformat 12600 case $version_type in 12601 freebsd-elf*) 12602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12603 need_version=no 12604 need_lib_prefix=no 12605 ;; 12606 freebsd-*) 12607 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 12608 need_version=yes 12609 ;; 12610 esac 12611 shlibpath_var=LD_LIBRARY_PATH 12612 case $host_os in 12613 freebsd2*) 12614 shlibpath_overrides_runpath=yes 12615 ;; 12616 freebsd3.[01]* | freebsdelf3.[01]*) 12617 shlibpath_overrides_runpath=yes 12618 hardcode_into_libs=yes 12619 ;; 12620 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12621 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12622 shlibpath_overrides_runpath=no 12623 hardcode_into_libs=yes 12624 ;; 12625 freebsd*) # from 4.6 on 12626 shlibpath_overrides_runpath=yes 12627 hardcode_into_libs=yes 12628 ;; 12629 esac 12630 ;; 12631 12632gnu*) 12633 version_type=linux 12634 need_lib_prefix=no 12635 need_version=no 12636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12637 soname_spec='${libname}${release}${shared_ext}$major' 12638 shlibpath_var=LD_LIBRARY_PATH 12639 hardcode_into_libs=yes 12640 ;; 12641 12642hpux9* | hpux10* | hpux11*) 12643 # Give a soname corresponding to the major version so that dld.sl refuses to 12644 # link against other versions. 12645 version_type=sunos 12646 need_lib_prefix=no 12647 need_version=no 12648 case $host_cpu in 12649 ia64*) 12650 shrext_cmds='.so' 12651 hardcode_into_libs=yes 12652 dynamic_linker="$host_os dld.so" 12653 shlibpath_var=LD_LIBRARY_PATH 12654 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12656 soname_spec='${libname}${release}${shared_ext}$major' 12657 if test "X$HPUX_IA64_MODE" = X32; then 12658 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12659 else 12660 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12661 fi 12662 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12663 ;; 12664 hppa*64*) 12665 shrext_cmds='.sl' 12666 hardcode_into_libs=yes 12667 dynamic_linker="$host_os dld.sl" 12668 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12669 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12671 soname_spec='${libname}${release}${shared_ext}$major' 12672 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12673 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12674 ;; 12675 *) 12676 shrext_cmds='.sl' 12677 dynamic_linker="$host_os dld.sl" 12678 shlibpath_var=SHLIB_PATH 12679 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12681 soname_spec='${libname}${release}${shared_ext}$major' 12682 ;; 12683 esac 12684 # HP-UX runs *really* slowly unless shared libraries are mode 555. 12685 postinstall_cmds='chmod 555 $lib' 12686 ;; 12687 12688interix3*) 12689 version_type=linux 12690 need_lib_prefix=no 12691 need_version=no 12692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12693 soname_spec='${libname}${release}${shared_ext}$major' 12694 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12695 shlibpath_var=LD_LIBRARY_PATH 12696 shlibpath_overrides_runpath=no 12697 hardcode_into_libs=yes 12698 ;; 12699 12700irix5* | irix6* | nonstopux*) 12701 case $host_os in 12702 nonstopux*) version_type=nonstopux ;; 12703 *) 12704 if test "$lt_cv_prog_gnu_ld" = yes; then 12705 version_type=linux 12706 else 12707 version_type=irix 12708 fi ;; 12709 esac 12710 need_lib_prefix=no 12711 need_version=no 12712 soname_spec='${libname}${release}${shared_ext}$major' 12713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 12714 case $host_os in 12715 irix5* | nonstopux*) 12716 libsuff= shlibsuff= 12717 ;; 12718 *) 12719 case $LD in # libtool.m4 will add one of these switches to LD 12720 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12721 libsuff= shlibsuff= libmagic=32-bit;; 12722 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12723 libsuff=32 shlibsuff=N32 libmagic=N32;; 12724 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12725 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12726 *) libsuff= shlibsuff= libmagic=never-match;; 12727 esac 12728 ;; 12729 esac 12730 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12731 shlibpath_overrides_runpath=no 12732 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12733 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12734 hardcode_into_libs=yes 12735 ;; 12736 12737# No shared lib support for Linux oldld, aout, or coff. 12738linux*oldld* | linux*aout* | linux*coff*) 12739 dynamic_linker=no 12740 ;; 12741 12742# This must be Linux ELF. 12743linux* | k*bsd*-gnu) 12744 version_type=linux 12745 need_lib_prefix=no 12746 need_version=no 12747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12748 soname_spec='${libname}${release}${shared_ext}$major' 12749 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12750 shlibpath_var=LD_LIBRARY_PATH 12751 shlibpath_overrides_runpath=no 12752 # This implies no fast_install, which is unacceptable. 12753 # Some rework will be needed to allow for fast_install 12754 # before this can be enabled. 12755 hardcode_into_libs=yes 12756 12757 # Append ld.so.conf contents to the search path 12758 if test -f /etc/ld.so.conf; then 12759 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 12760 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12761 fi 12762 12763 # We used to test for /lib/ld.so.1 and disable shared libraries on 12764 # powerpc, because MkLinux only supported shared libraries with the 12765 # GNU dynamic linker. Since this was broken with cross compilers, 12766 # most powerpc-linux boxes support dynamic linking these days and 12767 # people can always --disable-shared, the test was removed, and we 12768 # assume the GNU/Linux dynamic linker is in use. 12769 dynamic_linker='GNU/Linux ld.so' 12770 ;; 12771 12772netbsdelf*-gnu) 12773 version_type=linux 12774 need_lib_prefix=no 12775 need_version=no 12776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12777 soname_spec='${libname}${release}${shared_ext}$major' 12778 shlibpath_var=LD_LIBRARY_PATH 12779 shlibpath_overrides_runpath=no 12780 hardcode_into_libs=yes 12781 dynamic_linker='NetBSD ld.elf_so' 12782 ;; 12783 12784netbsd*) 12785 version_type=sunos 12786 need_lib_prefix=no 12787 need_version=no 12788 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12790 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12791 dynamic_linker='NetBSD (a.out) ld.so' 12792 else 12793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12794 soname_spec='${libname}${release}${shared_ext}$major' 12795 dynamic_linker='NetBSD ld.elf_so' 12796 fi 12797 shlibpath_var=LD_LIBRARY_PATH 12798 shlibpath_overrides_runpath=yes 12799 hardcode_into_libs=yes 12800 ;; 12801 12802newsos6) 12803 version_type=linux 12804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12805 shlibpath_var=LD_LIBRARY_PATH 12806 shlibpath_overrides_runpath=yes 12807 ;; 12808 12809nto-qnx*) 12810 version_type=linux 12811 need_lib_prefix=no 12812 need_version=no 12813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12814 soname_spec='${libname}${release}${shared_ext}$major' 12815 shlibpath_var=LD_LIBRARY_PATH 12816 shlibpath_overrides_runpath=yes 12817 ;; 12818 12819openbsd*) 12820 version_type=sunos 12821 sys_lib_dlsearch_path_spec="/usr/lib" 12822 need_lib_prefix=no 12823 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 12824 case $host_os in 12825 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 12826 *) need_version=no ;; 12827 esac 12828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12829 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12830 shlibpath_var=LD_LIBRARY_PATH 12831 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12832 case $host_os in 12833 openbsd2.[89] | openbsd2.[89].*) 12834 shlibpath_overrides_runpath=no 12835 ;; 12836 *) 12837 shlibpath_overrides_runpath=yes 12838 ;; 12839 esac 12840 else 12841 shlibpath_overrides_runpath=yes 12842 fi 12843 ;; 12844 12845os2*) 12846 libname_spec='$name' 12847 shrext_cmds=".dll" 12848 need_lib_prefix=no 12849 library_names_spec='$libname${shared_ext} $libname.a' 12850 dynamic_linker='OS/2 ld.exe' 12851 shlibpath_var=LIBPATH 12852 ;; 12853 12854osf3* | osf4* | osf5*) 12855 version_type=osf 12856 need_lib_prefix=no 12857 need_version=no 12858 soname_spec='${libname}${release}${shared_ext}$major' 12859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12860 shlibpath_var=LD_LIBRARY_PATH 12861 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12862 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 12863 ;; 12864 12865solaris*) 12866 version_type=linux 12867 need_lib_prefix=no 12868 need_version=no 12869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12870 soname_spec='${libname}${release}${shared_ext}$major' 12871 shlibpath_var=LD_LIBRARY_PATH 12872 shlibpath_overrides_runpath=yes 12873 hardcode_into_libs=yes 12874 # ldd complains unless libraries are executable 12875 postinstall_cmds='chmod +x $lib' 12876 ;; 12877 12878sunos4*) 12879 version_type=sunos 12880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12881 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12882 shlibpath_var=LD_LIBRARY_PATH 12883 shlibpath_overrides_runpath=yes 12884 if test "$with_gnu_ld" = yes; then 12885 need_lib_prefix=no 12886 fi 12887 need_version=yes 12888 ;; 12889 12890sysv4 | sysv4.3*) 12891 version_type=linux 12892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12893 soname_spec='${libname}${release}${shared_ext}$major' 12894 shlibpath_var=LD_LIBRARY_PATH 12895 case $host_vendor in 12896 sni) 12897 shlibpath_overrides_runpath=no 12898 need_lib_prefix=no 12899 export_dynamic_flag_spec='${wl}-Blargedynsym' 12900 runpath_var=LD_RUN_PATH 12901 ;; 12902 siemens) 12903 need_lib_prefix=no 12904 ;; 12905 motorola) 12906 need_lib_prefix=no 12907 need_version=no 12908 shlibpath_overrides_runpath=no 12909 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12910 ;; 12911 esac 12912 ;; 12913 12914sysv4*MP*) 12915 if test -d /usr/nec ;then 12916 version_type=linux 12917 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 12918 soname_spec='$libname${shared_ext}.$major' 12919 shlibpath_var=LD_LIBRARY_PATH 12920 fi 12921 ;; 12922 12923sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12924 version_type=freebsd-elf 12925 need_lib_prefix=no 12926 need_version=no 12927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12928 soname_spec='${libname}${release}${shared_ext}$major' 12929 shlibpath_var=LD_LIBRARY_PATH 12930 hardcode_into_libs=yes 12931 if test "$with_gnu_ld" = yes; then 12932 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12933 shlibpath_overrides_runpath=no 12934 else 12935 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12936 shlibpath_overrides_runpath=yes 12937 case $host_os in 12938 sco3.2v5*) 12939 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12940 ;; 12941 esac 12942 fi 12943 sys_lib_dlsearch_path_spec='/usr/lib' 12944 ;; 12945 12946uts4*) 12947 version_type=linux 12948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12949 soname_spec='${libname}${release}${shared_ext}$major' 12950 shlibpath_var=LD_LIBRARY_PATH 12951 ;; 12952 12953*) 12954 dynamic_linker=no 12955 ;; 12956esac 12957{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 12958echo "${ECHO_T}$dynamic_linker" >&6; } 12959test "$dynamic_linker" = no && can_build_shared=no 12960 12961variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12962if test "$GCC" = yes; then 12963 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12964fi 12965 12966{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 12967echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 12968hardcode_action_CXX= 12969if test -n "$hardcode_libdir_flag_spec_CXX" || \ 12970 test -n "$runpath_var_CXX" || \ 12971 test "X$hardcode_automatic_CXX" = "Xyes" ; then 12972 12973 # We can hardcode non-existant directories. 12974 if test "$hardcode_direct_CXX" != no && 12975 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12976 # have to relink, otherwise we might link with an installed library 12977 # when we should be linking with a yet-to-be-installed one 12978 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 12979 test "$hardcode_minus_L_CXX" != no; then 12980 # Linking always hardcodes the temporary library directory. 12981 hardcode_action_CXX=relink 12982 else 12983 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12984 hardcode_action_CXX=immediate 12985 fi 12986else 12987 # We cannot hardcode anything, or else we can only hardcode existing 12988 # directories. 12989 hardcode_action_CXX=unsupported 12990fi 12991{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 12992echo "${ECHO_T}$hardcode_action_CXX" >&6; } 12993 12994if test "$hardcode_action_CXX" = relink; then 12995 # Fast installation is not supported 12996 enable_fast_install=no 12997elif test "$shlibpath_overrides_runpath" = yes || 12998 test "$enable_shared" = no; then 12999 # Fast installation is not necessary 13000 enable_fast_install=needless 13001fi 13002 13003 13004# The else clause should only fire when bootstrapping the 13005# libtool distribution, otherwise you forgot to ship ltmain.sh 13006# with your package, and you will get complaints that there are 13007# no rules to generate ltmain.sh. 13008if test -f "$ltmain"; then 13009 # See if we are running on zsh, and set the options which allow our commands through 13010 # without removal of \ escapes. 13011 if test -n "${ZSH_VERSION+set}" ; then 13012 setopt NO_GLOB_SUBST 13013 fi 13014 # Now quote all the things that may contain metacharacters while being 13015 # careful not to overquote the AC_SUBSTed values. We take copies of the 13016 # variables and quote the copies for generation of the libtool script. 13017 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13018 SED SHELL STRIP \ 13019 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13020 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13021 deplibs_check_method reload_flag reload_cmds need_locks \ 13022 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13023 lt_cv_sys_global_symbol_to_c_name_address \ 13024 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13025 old_postinstall_cmds old_postuninstall_cmds \ 13026 compiler_CXX \ 13027 CC_CXX \ 13028 LD_CXX \ 13029 lt_prog_compiler_wl_CXX \ 13030 lt_prog_compiler_pic_CXX \ 13031 lt_prog_compiler_static_CXX \ 13032 lt_prog_compiler_no_builtin_flag_CXX \ 13033 export_dynamic_flag_spec_CXX \ 13034 thread_safe_flag_spec_CXX \ 13035 whole_archive_flag_spec_CXX \ 13036 enable_shared_with_static_runtimes_CXX \ 13037 old_archive_cmds_CXX \ 13038 old_archive_from_new_cmds_CXX \ 13039 predep_objects_CXX \ 13040 postdep_objects_CXX \ 13041 predeps_CXX \ 13042 postdeps_CXX \ 13043 compiler_lib_search_path_CXX \ 13044 archive_cmds_CXX \ 13045 archive_expsym_cmds_CXX \ 13046 postinstall_cmds_CXX \ 13047 postuninstall_cmds_CXX \ 13048 old_archive_from_expsyms_cmds_CXX \ 13049 allow_undefined_flag_CXX \ 13050 no_undefined_flag_CXX \ 13051 export_symbols_cmds_CXX \ 13052 hardcode_libdir_flag_spec_CXX \ 13053 hardcode_libdir_flag_spec_ld_CXX \ 13054 hardcode_libdir_separator_CXX \ 13055 hardcode_automatic_CXX \ 13056 module_cmds_CXX \ 13057 module_expsym_cmds_CXX \ 13058 lt_cv_prog_compiler_c_o_CXX \ 13059 exclude_expsyms_CXX \ 13060 include_expsyms_CXX; do 13061 13062 case $var in 13063 old_archive_cmds_CXX | \ 13064 old_archive_from_new_cmds_CXX | \ 13065 archive_cmds_CXX | \ 13066 archive_expsym_cmds_CXX | \ 13067 module_cmds_CXX | \ 13068 module_expsym_cmds_CXX | \ 13069 old_archive_from_expsyms_cmds_CXX | \ 13070 export_symbols_cmds_CXX | \ 13071 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13072 postinstall_cmds | postuninstall_cmds | \ 13073 old_postinstall_cmds | old_postuninstall_cmds | \ 13074 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13075 # Double-quote double-evaled strings. 13076 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13077 ;; 13078 *) 13079 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13080 ;; 13081 esac 13082 done 13083 13084 case $lt_echo in 13085 *'\$0 --fallback-echo"') 13086 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13087 ;; 13088 esac 13089 13090cfgfile="$ofile" 13091 13092 cat <<__EOF__ >> "$cfgfile" 13093# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13094 13095# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13096 13097# Shell to use when invoking shell scripts. 13098SHELL=$lt_SHELL 13099 13100# Whether or not to build shared libraries. 13101build_libtool_libs=$enable_shared 13102 13103# Whether or not to build static libraries. 13104build_old_libs=$enable_static 13105 13106# Whether or not to add -lc for building shared libraries. 13107build_libtool_need_lc=$archive_cmds_need_lc_CXX 13108 13109# Whether or not to disallow shared libs when runtime libs are static 13110allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13111 13112# Whether or not to optimize for fast installation. 13113fast_install=$enable_fast_install 13114 13115# The host system. 13116host_alias=$host_alias 13117host=$host 13118host_os=$host_os 13119 13120# The build system. 13121build_alias=$build_alias 13122build=$build 13123build_os=$build_os 13124 13125# An echo program that does not interpret backslashes. 13126echo=$lt_echo 13127 13128# The archiver. 13129AR=$lt_AR 13130AR_FLAGS=$lt_AR_FLAGS 13131 13132# A C compiler. 13133LTCC=$lt_LTCC 13134 13135# LTCC compiler flags. 13136LTCFLAGS=$lt_LTCFLAGS 13137 13138# A language-specific compiler. 13139CC=$lt_compiler_CXX 13140 13141# Is the compiler the GNU C compiler? 13142with_gcc=$GCC_CXX 13143 13144# An ERE matcher. 13145EGREP=$lt_EGREP 13146 13147# The linker used to build libraries. 13148LD=$lt_LD_CXX 13149 13150# Whether we need hard or soft links. 13151LN_S=$lt_LN_S 13152 13153# A BSD-compatible nm program. 13154NM=$lt_NM 13155 13156# A symbol stripping program 13157STRIP=$lt_STRIP 13158 13159# Used to examine libraries when file_magic_cmd begins "file" 13160MAGIC_CMD=$MAGIC_CMD 13161 13162# Used on cygwin: DLL creation program. 13163DLLTOOL="$DLLTOOL" 13164 13165# Used on cygwin: object dumper. 13166OBJDUMP="$OBJDUMP" 13167 13168# Used on cygwin: assembler. 13169AS="$AS" 13170 13171# The name of the directory that contains temporary libtool files. 13172objdir=$objdir 13173 13174# How to create reloadable object files. 13175reload_flag=$lt_reload_flag 13176reload_cmds=$lt_reload_cmds 13177 13178# How to pass a linker flag through the compiler. 13179wl=$lt_lt_prog_compiler_wl_CXX 13180 13181# Object file suffix (normally "o"). 13182objext="$ac_objext" 13183 13184# Old archive suffix (normally "a"). 13185libext="$libext" 13186 13187# Shared library suffix (normally ".so"). 13188shrext_cmds='$shrext_cmds' 13189 13190# Executable file suffix (normally ""). 13191exeext="$exeext" 13192 13193# Additional compiler flags for building library objects. 13194pic_flag=$lt_lt_prog_compiler_pic_CXX 13195pic_mode=$pic_mode 13196 13197# What is the maximum length of a command? 13198max_cmd_len=$lt_cv_sys_max_cmd_len 13199 13200# Does compiler simultaneously support -c and -o options? 13201compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13202 13203# Must we lock files when doing compilation? 13204need_locks=$lt_need_locks 13205 13206# Do we need the lib prefix for modules? 13207need_lib_prefix=$need_lib_prefix 13208 13209# Do we need a version for libraries? 13210need_version=$need_version 13211 13212# Whether dlopen is supported. 13213dlopen_support=$enable_dlopen 13214 13215# Whether dlopen of programs is supported. 13216dlopen_self=$enable_dlopen_self 13217 13218# Whether dlopen of statically linked programs is supported. 13219dlopen_self_static=$enable_dlopen_self_static 13220 13221# Compiler flag to prevent dynamic linking. 13222link_static_flag=$lt_lt_prog_compiler_static_CXX 13223 13224# Compiler flag to turn off builtin functions. 13225no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13226 13227# Compiler flag to allow reflexive dlopens. 13228export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13229 13230# Compiler flag to generate shared objects directly from archives. 13231whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13232 13233# Compiler flag to generate thread-safe objects. 13234thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13235 13236# Library versioning type. 13237version_type=$version_type 13238 13239# Format of library name prefix. 13240libname_spec=$lt_libname_spec 13241 13242# List of archive names. First name is the real one, the rest are links. 13243# The last name is the one that the linker finds with -lNAME. 13244library_names_spec=$lt_library_names_spec 13245 13246# The coded name of the library, if different from the real name. 13247soname_spec=$lt_soname_spec 13248 13249# Commands used to build and install an old-style archive. 13250RANLIB=$lt_RANLIB 13251old_archive_cmds=$lt_old_archive_cmds_CXX 13252old_postinstall_cmds=$lt_old_postinstall_cmds 13253old_postuninstall_cmds=$lt_old_postuninstall_cmds 13254 13255# Create an old-style archive from a shared archive. 13256old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13257 13258# Create a temporary old-style archive to link instead of a shared archive. 13259old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13260 13261# Commands used to build and install a shared archive. 13262archive_cmds=$lt_archive_cmds_CXX 13263archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13264postinstall_cmds=$lt_postinstall_cmds 13265postuninstall_cmds=$lt_postuninstall_cmds 13266 13267# Commands used to build a loadable module (assumed same as above if empty) 13268module_cmds=$lt_module_cmds_CXX 13269module_expsym_cmds=$lt_module_expsym_cmds_CXX 13270 13271# Commands to strip libraries. 13272old_striplib=$lt_old_striplib 13273striplib=$lt_striplib 13274 13275# Dependencies to place before the objects being linked to create a 13276# shared library. 13277predep_objects=$lt_predep_objects_CXX 13278 13279# Dependencies to place after the objects being linked to create a 13280# shared library. 13281postdep_objects=$lt_postdep_objects_CXX 13282 13283# Dependencies to place before the objects being linked to create a 13284# shared library. 13285predeps=$lt_predeps_CXX 13286 13287# Dependencies to place after the objects being linked to create a 13288# shared library. 13289postdeps=$lt_postdeps_CXX 13290 13291# The library search path used internally by the compiler when linking 13292# a shared library. 13293compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 13294 13295# Method to check whether dependent libraries are shared objects. 13296deplibs_check_method=$lt_deplibs_check_method 13297 13298# Command to use when deplibs_check_method == file_magic. 13299file_magic_cmd=$lt_file_magic_cmd 13300 13301# Flag that allows shared libraries with undefined symbols to be built. 13302allow_undefined_flag=$lt_allow_undefined_flag_CXX 13303 13304# Flag that forces no undefined symbols. 13305no_undefined_flag=$lt_no_undefined_flag_CXX 13306 13307# Commands used to finish a libtool library installation in a directory. 13308finish_cmds=$lt_finish_cmds 13309 13310# Same as above, but a single script fragment to be evaled but not shown. 13311finish_eval=$lt_finish_eval 13312 13313# Take the output of nm and produce a listing of raw symbols and C names. 13314global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13315 13316# Transform the output of nm in a proper C declaration 13317global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13318 13319# Transform the output of nm in a C name address pair 13320global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13321 13322# This is the shared library runtime path variable. 13323runpath_var=$runpath_var 13324 13325# This is the shared library path variable. 13326shlibpath_var=$shlibpath_var 13327 13328# Is shlibpath searched before the hard-coded library search path? 13329shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13330 13331# How to hardcode a shared library path into an executable. 13332hardcode_action=$hardcode_action_CXX 13333 13334# Whether we should hardcode library paths into libraries. 13335hardcode_into_libs=$hardcode_into_libs 13336 13337# Flag to hardcode \$libdir into a binary during linking. 13338# This must work even if \$libdir does not exist. 13339hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 13340 13341# If ld is used when linking, flag to hardcode \$libdir into 13342# a binary during linking. This must work even if \$libdir does 13343# not exist. 13344hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 13345 13346# Whether we need a single -rpath flag with a separated argument. 13347hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 13348 13349# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13350# resulting binary. 13351hardcode_direct=$hardcode_direct_CXX 13352 13353# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13354# resulting binary. 13355hardcode_minus_L=$hardcode_minus_L_CXX 13356 13357# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13358# the resulting binary. 13359hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 13360 13361# Set to yes if building a shared library automatically hardcodes DIR into the library 13362# and all subsequent libraries and executables linked against it. 13363hardcode_automatic=$hardcode_automatic_CXX 13364 13365# Variables whose values should be saved in libtool wrapper scripts and 13366# restored at relink time. 13367variables_saved_for_relink="$variables_saved_for_relink" 13368 13369# Whether libtool must link a program against all its dependency libraries. 13370link_all_deplibs=$link_all_deplibs_CXX 13371 13372# Compile-time system search path for libraries 13373sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13374 13375# Run-time system search path for libraries 13376sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13377 13378# Fix the shell variable \$srcfile for the compiler. 13379fix_srcfile_path="$fix_srcfile_path_CXX" 13380 13381# Set to yes if exported symbols are required. 13382always_export_symbols=$always_export_symbols_CXX 13383 13384# The commands to list exported symbols. 13385export_symbols_cmds=$lt_export_symbols_cmds_CXX 13386 13387# The commands to extract the exported symbol list from a shared archive. 13388extract_expsyms_cmds=$lt_extract_expsyms_cmds 13389 13390# Symbols that should not be listed in the preloaded symbols. 13391exclude_expsyms=$lt_exclude_expsyms_CXX 13392 13393# Symbols that must always be exported. 13394include_expsyms=$lt_include_expsyms_CXX 13395 13396# ### END LIBTOOL TAG CONFIG: $tagname 13397 13398__EOF__ 13399 13400 13401else 13402 # If there is no Makefile yet, we rely on a make rule to execute 13403 # `config.status --recheck' to rerun these tests and create the 13404 # libtool script then. 13405 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 13406 if test -f "$ltmain_in"; then 13407 test -f Makefile && make "$ltmain" 13408 fi 13409fi 13410 13411 13412ac_ext=c 13413ac_cpp='$CPP $CPPFLAGS' 13414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13416ac_compiler_gnu=$ac_cv_c_compiler_gnu 13417 13418CC=$lt_save_CC 13419LDCXX=$LD 13420LD=$lt_save_LD 13421GCC=$lt_save_GCC 13422with_gnu_ldcxx=$with_gnu_ld 13423with_gnu_ld=$lt_save_with_gnu_ld 13424lt_cv_path_LDCXX=$lt_cv_path_LD 13425lt_cv_path_LD=$lt_save_path_LD 13426lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 13427lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 13428 13429 else 13430 tagname="" 13431 fi 13432 ;; 13433 13434 F77) 13435 if test -n "$F77" && test "X$F77" != "Xno"; then 13436 13437ac_ext=f 13438ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 13439ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13440ac_compiler_gnu=$ac_cv_f77_compiler_gnu 13441 13442 13443archive_cmds_need_lc_F77=no 13444allow_undefined_flag_F77= 13445always_export_symbols_F77=no 13446archive_expsym_cmds_F77= 13447export_dynamic_flag_spec_F77= 13448hardcode_direct_F77=no 13449hardcode_libdir_flag_spec_F77= 13450hardcode_libdir_flag_spec_ld_F77= 13451hardcode_libdir_separator_F77= 13452hardcode_minus_L_F77=no 13453hardcode_automatic_F77=no 13454module_cmds_F77= 13455module_expsym_cmds_F77= 13456link_all_deplibs_F77=unknown 13457old_archive_cmds_F77=$old_archive_cmds 13458no_undefined_flag_F77= 13459whole_archive_flag_spec_F77= 13460enable_shared_with_static_runtimes_F77=no 13461 13462# Source file extension for f77 test sources. 13463ac_ext=f 13464 13465# Object file extension for compiled f77 test sources. 13466objext=o 13467objext_F77=$objext 13468 13469# Code to be used in simple compile tests 13470lt_simple_compile_test_code=" subroutine t\n return\n end\n" 13471 13472# Code to be used in simple link tests 13473lt_simple_link_test_code=" program t\n end\n" 13474 13475# ltmain only uses $CC for tagged configurations so make sure $CC is set. 13476 13477# If no C compiler was specified, use CC. 13478LTCC=${LTCC-"$CC"} 13479 13480# If no C compiler flags were specified, use CFLAGS. 13481LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13482 13483# Allow CC to be a program name with arguments. 13484compiler=$CC 13485 13486 13487# save warnings/boilerplate of simple test code 13488ac_outfile=conftest.$ac_objext 13489printf "$lt_simple_compile_test_code" >conftest.$ac_ext 13490eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13491_lt_compiler_boilerplate=`cat conftest.err` 13492$rm conftest* 13493 13494ac_outfile=conftest.$ac_objext 13495printf "$lt_simple_link_test_code" >conftest.$ac_ext 13496eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13497_lt_linker_boilerplate=`cat conftest.err` 13498$rm conftest* 13499 13500 13501# Allow CC to be a program name with arguments. 13502lt_save_CC="$CC" 13503CC=${F77-"f77"} 13504compiler=$CC 13505compiler_F77=$CC 13506for cc_temp in $compiler""; do 13507 case $cc_temp in 13508 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13509 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13510 \-*) ;; 13511 *) break;; 13512 esac 13513done 13514cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13515 13516 13517{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 13518echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 13519{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 13520echo "${ECHO_T}$can_build_shared" >&6; } 13521 13522{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 13523echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 13524test "$can_build_shared" = "no" && enable_shared=no 13525 13526# On AIX, shared libraries and static libraries use the same namespace, and 13527# are all built from PIC. 13528case $host_os in 13529aix3*) 13530 test "$enable_shared" = yes && enable_static=no 13531 if test -n "$RANLIB"; then 13532 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13533 postinstall_cmds='$RANLIB $lib' 13534 fi 13535 ;; 13536aix4* | aix5*) 13537 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13538 test "$enable_shared" = yes && enable_static=no 13539 fi 13540 ;; 13541esac 13542{ echo "$as_me:$LINENO: result: $enable_shared" >&5 13543echo "${ECHO_T}$enable_shared" >&6; } 13544 13545{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 13546echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 13547# Make sure either enable_shared or enable_static is yes. 13548test "$enable_shared" = yes || enable_static=yes 13549{ echo "$as_me:$LINENO: result: $enable_static" >&5 13550echo "${ECHO_T}$enable_static" >&6; } 13551 13552GCC_F77="$G77" 13553LD_F77="$LD" 13554 13555lt_prog_compiler_wl_F77= 13556lt_prog_compiler_pic_F77= 13557lt_prog_compiler_static_F77= 13558 13559{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13560echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 13561 13562 if test "$GCC" = yes; then 13563 lt_prog_compiler_wl_F77='-Wl,' 13564 lt_prog_compiler_static_F77='-static' 13565 13566 case $host_os in 13567 aix*) 13568 # All AIX code is PIC. 13569 if test "$host_cpu" = ia64; then 13570 # AIX 5 now supports IA64 processor 13571 lt_prog_compiler_static_F77='-Bstatic' 13572 fi 13573 ;; 13574 13575 amigaos*) 13576 # FIXME: we need at least 68020 code to build shared libraries, but 13577 # adding the `-m68020' flag to GCC prevents building anything better, 13578 # like `-m68040'. 13579 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 13580 ;; 13581 13582 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13583 # PIC is the default for these OSes. 13584 ;; 13585 13586 mingw* | pw32* | os2*) 13587 # This hack is so that the source file can tell whether it is being 13588 # built for inclusion in a dll (and should export symbols for example). 13589 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13590 ;; 13591 13592 darwin* | rhapsody*) 13593 # PIC is the default on this platform 13594 # Common symbols not allowed in MH_DYLIB files 13595 lt_prog_compiler_pic_F77='-fno-common' 13596 ;; 13597 13598 interix3*) 13599 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13600 # Instead, we relocate shared libraries at runtime. 13601 ;; 13602 13603 msdosdjgpp*) 13604 # Just because we use GCC doesn't mean we suddenly get shared libraries 13605 # on systems that don't support them. 13606 lt_prog_compiler_can_build_shared_F77=no 13607 enable_shared=no 13608 ;; 13609 13610 sysv4*MP*) 13611 if test -d /usr/nec; then 13612 lt_prog_compiler_pic_F77=-Kconform_pic 13613 fi 13614 ;; 13615 13616 hpux*) 13617 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13618 # not for PA HP-UX. 13619 case $host_cpu in 13620 hppa*64*|ia64*) 13621 # +Z the default 13622 ;; 13623 *) 13624 lt_prog_compiler_pic_F77='-fPIC' 13625 ;; 13626 esac 13627 ;; 13628 13629 *) 13630 lt_prog_compiler_pic_F77='-fPIC' 13631 ;; 13632 esac 13633 else 13634 # PORTME Check for flag to pass linker flags through the system compiler. 13635 case $host_os in 13636 aix*) 13637 lt_prog_compiler_wl_F77='-Wl,' 13638 if test "$host_cpu" = ia64; then 13639 # AIX 5 now supports IA64 processor 13640 lt_prog_compiler_static_F77='-Bstatic' 13641 else 13642 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 13643 fi 13644 ;; 13645 darwin*) 13646 # PIC is the default on this platform 13647 # Common symbols not allowed in MH_DYLIB files 13648 case $cc_basename in 13649 xlc*) 13650 lt_prog_compiler_pic_F77='-qnocommon' 13651 lt_prog_compiler_wl_F77='-Wl,' 13652 ;; 13653 esac 13654 ;; 13655 13656 mingw* | pw32* | os2*) 13657 # This hack is so that the source file can tell whether it is being 13658 # built for inclusion in a dll (and should export symbols for example). 13659 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13660 ;; 13661 13662 hpux9* | hpux10* | hpux11*) 13663 lt_prog_compiler_wl_F77='-Wl,' 13664 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13665 # not for PA HP-UX. 13666 case $host_cpu in 13667 hppa*64*|ia64*) 13668 # +Z the default 13669 ;; 13670 *) 13671 lt_prog_compiler_pic_F77='+Z' 13672 ;; 13673 esac 13674 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13675 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 13676 ;; 13677 13678 irix5* | irix6* | nonstopux*) 13679 lt_prog_compiler_wl_F77='-Wl,' 13680 # PIC (with -KPIC) is the default. 13681 lt_prog_compiler_static_F77='-non_shared' 13682 ;; 13683 13684 newsos6) 13685 lt_prog_compiler_pic_F77='-KPIC' 13686 lt_prog_compiler_static_F77='-Bstatic' 13687 ;; 13688 13689 linux* | k*bsd*-gnu) 13690 case $cc_basename in 13691 icc* | ecc*) 13692 lt_prog_compiler_wl_F77='-Wl,' 13693 lt_prog_compiler_pic_F77='-KPIC' 13694 lt_prog_compiler_static_F77='-static' 13695 ;; 13696 pgcc* | pgf77* | pgf90* | pgf95*) 13697 # Portland Group compilers (*not* the Pentium gcc compiler, 13698 # which looks to be a dead project) 13699 lt_prog_compiler_wl_F77='-Wl,' 13700 lt_prog_compiler_pic_F77='-fpic' 13701 lt_prog_compiler_static_F77='-Bstatic' 13702 ;; 13703 ccc*) 13704 lt_prog_compiler_wl_F77='-Wl,' 13705 # All Alpha code is PIC. 13706 lt_prog_compiler_static_F77='-non_shared' 13707 ;; 13708 esac 13709 ;; 13710 13711 osf3* | osf4* | osf5*) 13712 lt_prog_compiler_wl_F77='-Wl,' 13713 # All OSF/1 code is PIC. 13714 lt_prog_compiler_static_F77='-non_shared' 13715 ;; 13716 13717 solaris*) 13718 lt_prog_compiler_pic_F77='-KPIC' 13719 lt_prog_compiler_static_F77='-Bstatic' 13720 case $cc_basename in 13721 f77* | f90* | f95*) 13722 lt_prog_compiler_wl_F77='-Qoption ld ';; 13723 *) 13724 lt_prog_compiler_wl_F77='-Wl,';; 13725 esac 13726 ;; 13727 13728 sunos4*) 13729 lt_prog_compiler_wl_F77='-Qoption ld ' 13730 lt_prog_compiler_pic_F77='-PIC' 13731 lt_prog_compiler_static_F77='-Bstatic' 13732 ;; 13733 13734 sysv4 | sysv4.2uw2* | sysv4.3*) 13735 lt_prog_compiler_wl_F77='-Wl,' 13736 lt_prog_compiler_pic_F77='-KPIC' 13737 lt_prog_compiler_static_F77='-Bstatic' 13738 ;; 13739 13740 sysv4*MP*) 13741 if test -d /usr/nec ;then 13742 lt_prog_compiler_pic_F77='-Kconform_pic' 13743 lt_prog_compiler_static_F77='-Bstatic' 13744 fi 13745 ;; 13746 13747 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13748 lt_prog_compiler_wl_F77='-Wl,' 13749 lt_prog_compiler_pic_F77='-KPIC' 13750 lt_prog_compiler_static_F77='-Bstatic' 13751 ;; 13752 13753 unicos*) 13754 lt_prog_compiler_wl_F77='-Wl,' 13755 lt_prog_compiler_can_build_shared_F77=no 13756 ;; 13757 13758 uts4*) 13759 lt_prog_compiler_pic_F77='-pic' 13760 lt_prog_compiler_static_F77='-Bstatic' 13761 ;; 13762 13763 *) 13764 lt_prog_compiler_can_build_shared_F77=no 13765 ;; 13766 esac 13767 fi 13768 13769{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 13770echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } 13771 13772# 13773# Check to make sure the PIC flag actually works. 13774# 13775if test -n "$lt_prog_compiler_pic_F77"; then 13776 13777{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 13778echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } 13779if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 13780 echo $ECHO_N "(cached) $ECHO_C" >&6 13781else 13782 lt_prog_compiler_pic_works_F77=no 13783 ac_outfile=conftest.$ac_objext 13784 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13785 lt_compiler_flag="$lt_prog_compiler_pic_F77" 13786 # Insert the option either (1) after the last *FLAGS variable, or 13787 # (2) before a word containing "conftest.", or (3) at the end. 13788 # Note that $ac_compile itself does not contain backslashes and begins 13789 # with a dollar sign (not a hyphen), so the echo should work correctly. 13790 # The option is referenced via a variable to avoid confusing sed. 13791 lt_compile=`echo "$ac_compile" | $SED \ 13792 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13793 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13794 -e 's:$: $lt_compiler_flag:'` 13795 (eval echo "\"\$as_me:13795: $lt_compile\"" >&5) 13796 (eval "$lt_compile" 2>conftest.err) 13797 ac_status=$? 13798 cat conftest.err >&5 13799 echo "$as_me:13799: \$? = $ac_status" >&5 13800 if (exit $ac_status) && test -s "$ac_outfile"; then 13801 # The compiler can only warn and ignore the option if not recognized 13802 # So say no if there are warnings other than the usual output. 13803 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 13804 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13805 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13806 lt_prog_compiler_pic_works_F77=yes 13807 fi 13808 fi 13809 $rm conftest* 13810 13811fi 13812{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 13813echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } 13814 13815if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 13816 case $lt_prog_compiler_pic_F77 in 13817 "" | " "*) ;; 13818 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 13819 esac 13820else 13821 lt_prog_compiler_pic_F77= 13822 lt_prog_compiler_can_build_shared_F77=no 13823fi 13824 13825fi 13826case $host_os in 13827 # For platforms which do not support PIC, -DPIC is meaningless: 13828 *djgpp*) 13829 lt_prog_compiler_pic_F77= 13830 ;; 13831 *) 13832 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 13833 ;; 13834esac 13835 13836# 13837# Check to make sure the static flag actually works. 13838# 13839wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 13840{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13841echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 13842if test "${lt_prog_compiler_static_works_F77+set}" = set; then 13843 echo $ECHO_N "(cached) $ECHO_C" >&6 13844else 13845 lt_prog_compiler_static_works_F77=no 13846 save_LDFLAGS="$LDFLAGS" 13847 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13848 printf "$lt_simple_link_test_code" > conftest.$ac_ext 13849 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13850 # The linker can only warn and ignore the option if not recognized 13851 # So say no if there are warnings 13852 if test -s conftest.err; then 13853 # Append any errors to the config.log. 13854 cat conftest.err 1>&5 13855 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 13856 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13857 if diff conftest.exp conftest.er2 >/dev/null; then 13858 lt_prog_compiler_static_works_F77=yes 13859 fi 13860 else 13861 lt_prog_compiler_static_works_F77=yes 13862 fi 13863 fi 13864 $rm conftest* 13865 LDFLAGS="$save_LDFLAGS" 13866 13867fi 13868{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 13869echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } 13870 13871if test x"$lt_prog_compiler_static_works_F77" = xyes; then 13872 : 13873else 13874 lt_prog_compiler_static_F77= 13875fi 13876 13877 13878{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13879echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 13880if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 13881 echo $ECHO_N "(cached) $ECHO_C" >&6 13882else 13883 lt_cv_prog_compiler_c_o_F77=no 13884 $rm -r conftest 2>/dev/null 13885 mkdir conftest 13886 cd conftest 13887 mkdir out 13888 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13889 13890 lt_compiler_flag="-o out/conftest2.$ac_objext" 13891 # Insert the option either (1) after the last *FLAGS variable, or 13892 # (2) before a word containing "conftest.", or (3) at the end. 13893 # Note that $ac_compile itself does not contain backslashes and begins 13894 # with a dollar sign (not a hyphen), so the echo should work correctly. 13895 lt_compile=`echo "$ac_compile" | $SED \ 13896 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13897 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13898 -e 's:$: $lt_compiler_flag:'` 13899 (eval echo "\"\$as_me:13899: $lt_compile\"" >&5) 13900 (eval "$lt_compile" 2>out/conftest.err) 13901 ac_status=$? 13902 cat out/conftest.err >&5 13903 echo "$as_me:13903: \$? = $ac_status" >&5 13904 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13905 then 13906 # The compiler can only warn and ignore the option if not recognized 13907 # So say no if there are warnings 13908 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 13909 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13910 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13911 lt_cv_prog_compiler_c_o_F77=yes 13912 fi 13913 fi 13914 chmod u+w . 2>&5 13915 $rm conftest* 13916 # SGI C++ compiler will create directory out/ii_files/ for 13917 # template instantiation 13918 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 13919 $rm out/* && rmdir out 13920 cd .. 13921 rmdir conftest 13922 $rm conftest* 13923 13924fi 13925{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 13926echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } 13927 13928 13929hard_links="nottested" 13930if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 13931 # do not overwrite the value of need_locks provided by the user 13932 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13933echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 13934 hard_links=yes 13935 $rm conftest* 13936 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13937 touch conftest.a 13938 ln conftest.a conftest.b 2>&5 || hard_links=no 13939 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13940 { echo "$as_me:$LINENO: result: $hard_links" >&5 13941echo "${ECHO_T}$hard_links" >&6; } 13942 if test "$hard_links" = no; then 13943 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13944echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13945 need_locks=warn 13946 fi 13947else 13948 need_locks=no 13949fi 13950 13951{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13952echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 13953 13954 runpath_var= 13955 allow_undefined_flag_F77= 13956 enable_shared_with_static_runtimes_F77=no 13957 archive_cmds_F77= 13958 archive_expsym_cmds_F77= 13959 old_archive_From_new_cmds_F77= 13960 old_archive_from_expsyms_cmds_F77= 13961 export_dynamic_flag_spec_F77= 13962 whole_archive_flag_spec_F77= 13963 thread_safe_flag_spec_F77= 13964 hardcode_libdir_flag_spec_F77= 13965 hardcode_libdir_flag_spec_ld_F77= 13966 hardcode_libdir_separator_F77= 13967 hardcode_direct_F77=no 13968 hardcode_minus_L_F77=no 13969 hardcode_shlibpath_var_F77=unsupported 13970 link_all_deplibs_F77=unknown 13971 hardcode_automatic_F77=no 13972 module_cmds_F77= 13973 module_expsym_cmds_F77= 13974 always_export_symbols_F77=no 13975 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13976 # include_expsyms should be a list of space-separated symbols to be *always* 13977 # included in the symbol list 13978 include_expsyms_F77= 13979 # exclude_expsyms can be an extended regexp of symbols to exclude 13980 # it will be wrapped by ` (' and `)$', so one must not match beginning or 13981 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 13982 # as well as any symbol that contains `d'. 13983 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 13984 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 13985 # platforms (ab)use it in PIC code, but their linkers get confused if 13986 # the symbol is explicitly referenced. Since portable code cannot 13987 # rely on this symbol name, it's probably fine to never include it in 13988 # preloaded symbol tables. 13989 extract_expsyms_cmds= 13990 # Just being paranoid about ensuring that cc_basename is set. 13991 for cc_temp in $compiler""; do 13992 case $cc_temp in 13993 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13994 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13995 \-*) ;; 13996 *) break;; 13997 esac 13998done 13999cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14000 14001 case $host_os in 14002 cygwin* | mingw* | pw32*) 14003 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14004 # When not using gcc, we currently assume that we are using 14005 # Microsoft Visual C++. 14006 if test "$GCC" != yes; then 14007 with_gnu_ld=no 14008 fi 14009 ;; 14010 interix*) 14011 # we just hope/assume this is gcc and not c89 (= MSVC++) 14012 with_gnu_ld=yes 14013 ;; 14014 openbsd*) 14015 with_gnu_ld=no 14016 ;; 14017 esac 14018 14019 ld_shlibs_F77=yes 14020 if test "$with_gnu_ld" = yes; then 14021 # If archive_cmds runs LD, not CC, wlarc should be empty 14022 wlarc='${wl}' 14023 14024 # Set some defaults for GNU ld with shared library support. These 14025 # are reset later if shared libraries are not supported. Putting them 14026 # here allows them to be overridden if necessary. 14027 runpath_var=LD_RUN_PATH 14028 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14029 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14030 # ancient GNU ld didn't support --whole-archive et. al. 14031 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14032 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14033 else 14034 whole_archive_flag_spec_F77= 14035 fi 14036 supports_anon_versioning=no 14037 case `$LD -v 2>/dev/null` in 14038 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14039 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14040 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14041 *\ 2.11.*) ;; # other 2.11 versions 14042 *) supports_anon_versioning=yes ;; 14043 esac 14044 14045 # See if GNU ld supports shared libraries. 14046 case $host_os in 14047 aix3* | aix4* | aix5*) 14048 # On AIX/PPC, the GNU linker is very broken 14049 if test "$host_cpu" != ia64; then 14050 ld_shlibs_F77=no 14051 cat <<EOF 1>&2 14052 14053*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14054*** to be unable to reliably create shared libraries on AIX. 14055*** Therefore, libtool is disabling shared libraries support. If you 14056*** really care for shared libraries, you may want to modify your PATH 14057*** so that a non-GNU linker is found, and then restart. 14058 14059EOF 14060 fi 14061 ;; 14062 14063 amigaos*) 14064 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)' 14065 hardcode_libdir_flag_spec_F77='-L$libdir' 14066 hardcode_minus_L_F77=yes 14067 14068 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14069 # that the semantics of dynamic libraries on AmigaOS, at least up 14070 # to version 4, is to share data among multiple programs linked 14071 # with the same dynamic library. Since this doesn't match the 14072 # behavior of shared libraries on other platforms, we can't use 14073 # them. 14074 ld_shlibs_F77=no 14075 ;; 14076 14077 beos*) 14078 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14079 allow_undefined_flag_F77=unsupported 14080 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14081 # support --undefined. This deserves some investigation. FIXME 14082 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14083 else 14084 ld_shlibs_F77=no 14085 fi 14086 ;; 14087 14088 cygwin* | mingw* | pw32*) 14089 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14090 # as there is no search path for DLLs. 14091 hardcode_libdir_flag_spec_F77='-L$libdir' 14092 allow_undefined_flag_F77=unsupported 14093 always_export_symbols_F77=no 14094 enable_shared_with_static_runtimes_F77=yes 14095 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 14096 14097 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14098 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14099 # If the export-symbols file already is a .def file (1st line 14100 # is EXPORTS), use it as is; otherwise, prepend... 14101 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14102 cp $export_symbols $output_objdir/$soname.def; 14103 else 14104 echo EXPORTS > $output_objdir/$soname.def; 14105 cat $export_symbols >> $output_objdir/$soname.def; 14106 fi~ 14107 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14108 else 14109 ld_shlibs_F77=no 14110 fi 14111 ;; 14112 14113 interix3*) 14114 hardcode_direct_F77=no 14115 hardcode_shlibpath_var_F77=no 14116 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14117 export_dynamic_flag_spec_F77='${wl}-E' 14118 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14119 # Instead, shared libraries are loaded at an image base (0x10000000 by 14120 # default) and relocated if they conflict, which is a slow very memory 14121 # consuming and fragmenting process. To avoid this, we pick a random, 14122 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14123 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14124 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' 14125 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' 14126 ;; 14127 14128 linux* | k*bsd*-gnu) 14129 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14130 tmp_addflag= 14131 case $cc_basename,$host_cpu in 14132 pgcc*) # Portland Group C compiler 14133 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' 14134 tmp_addflag=' $pic_flag' 14135 ;; 14136 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14137 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' 14138 tmp_addflag=' $pic_flag -Mnomain' ;; 14139 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14140 tmp_addflag=' -i_dynamic' ;; 14141 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14142 tmp_addflag=' -i_dynamic -nofor_main' ;; 14143 ifc* | ifort*) # Intel Fortran compiler 14144 tmp_addflag=' -nofor_main' ;; 14145 esac 14146 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14147 14148 if test $supports_anon_versioning = yes; then 14149 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14150 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14151 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14152 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14153 fi 14154 link_all_deplibs_F77=no 14155 else 14156 ld_shlibs_F77=no 14157 fi 14158 ;; 14159 14160 netbsd* | netbsdelf*-gnu) 14161 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14162 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14163 wlarc= 14164 else 14165 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14166 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14167 fi 14168 ;; 14169 14170 solaris*) 14171 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14172 ld_shlibs_F77=no 14173 cat <<EOF 1>&2 14174 14175*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14176*** create shared libraries on Solaris systems. Therefore, libtool 14177*** is disabling shared libraries support. We urge you to upgrade GNU 14178*** binutils to release 2.9.1 or newer. Another option is to modify 14179*** your PATH or compiler configuration so that the native linker is 14180*** used, and then restart. 14181 14182EOF 14183 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14184 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14185 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14186 else 14187 ld_shlibs_F77=no 14188 fi 14189 ;; 14190 14191 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14192 case `$LD -v 2>&1` in 14193 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14194 ld_shlibs_F77=no 14195 cat <<_LT_EOF 1>&2 14196 14197*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 14198*** reliably create shared libraries on SCO systems. Therefore, libtool 14199*** is disabling shared libraries support. We urge you to upgrade GNU 14200*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14201*** your PATH or compiler configuration so that the native linker is 14202*** used, and then restart. 14203 14204_LT_EOF 14205 ;; 14206 *) 14207 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14208 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 14209 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 14210 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 14211 else 14212 ld_shlibs_F77=no 14213 fi 14214 ;; 14215 esac 14216 ;; 14217 14218 sunos4*) 14219 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14220 wlarc= 14221 hardcode_direct_F77=yes 14222 hardcode_shlibpath_var_F77=no 14223 ;; 14224 14225 *) 14226 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14227 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14228 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14229 else 14230 ld_shlibs_F77=no 14231 fi 14232 ;; 14233 esac 14234 14235 if test "$ld_shlibs_F77" = no; then 14236 runpath_var= 14237 hardcode_libdir_flag_spec_F77= 14238 export_dynamic_flag_spec_F77= 14239 whole_archive_flag_spec_F77= 14240 fi 14241 else 14242 # PORTME fill in a description of your system's linker (not GNU ld) 14243 case $host_os in 14244 aix3*) 14245 allow_undefined_flag_F77=unsupported 14246 always_export_symbols_F77=yes 14247 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' 14248 # Note: this linker hardcodes the directories in LIBPATH if there 14249 # are no directories specified by -L. 14250 hardcode_minus_L_F77=yes 14251 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 14252 # Neither direct hardcoding nor static linking is supported with a 14253 # broken collect2. 14254 hardcode_direct_F77=unsupported 14255 fi 14256 ;; 14257 14258 aix4* | aix5*) 14259 if test "$host_cpu" = ia64; then 14260 # On IA64, the linker does run time linking by default, so we don't 14261 # have to do anything special. 14262 aix_use_runtimelinking=no 14263 exp_sym_flag='-Bexport' 14264 no_entry_flag="" 14265 else 14266 # If we're using GNU nm, then we don't want the "-C" option. 14267 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14268 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14269 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' 14270 else 14271 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' 14272 fi 14273 aix_use_runtimelinking=no 14274 14275 # Test if we are trying to use run time linking or normal 14276 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14277 # need to do runtime linking. 14278 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 14279 for ld_flag in $LDFLAGS; do 14280 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14281 aix_use_runtimelinking=yes 14282 break 14283 fi 14284 done 14285 ;; 14286 esac 14287 14288 exp_sym_flag='-bexport' 14289 no_entry_flag='-bnoentry' 14290 fi 14291 14292 # When large executables or shared objects are built, AIX ld can 14293 # have problems creating the table of contents. If linking a library 14294 # or program results in "error TOC overflow" add -mminimal-toc to 14295 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14296 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14297 14298 archive_cmds_F77='' 14299 hardcode_direct_F77=yes 14300 hardcode_libdir_separator_F77=':' 14301 link_all_deplibs_F77=yes 14302 14303 if test "$GCC" = yes; then 14304 case $host_os in aix4.[012]|aix4.[012].*) 14305 # We only want to do this on AIX 4.2 and lower, the check 14306 # below for broken collect2 doesn't work under 4.3+ 14307 collect2name=`${CC} -print-prog-name=collect2` 14308 if test -f "$collect2name" && \ 14309 strings "$collect2name" | grep resolve_lib_name >/dev/null 14310 then 14311 # We have reworked collect2 14312 hardcode_direct_F77=yes 14313 else 14314 # We have old collect2 14315 hardcode_direct_F77=unsupported 14316 # It fails to find uninstalled libraries when the uninstalled 14317 # path is not listed in the libpath. Setting hardcode_minus_L 14318 # to unsupported forces relinking 14319 hardcode_minus_L_F77=yes 14320 hardcode_libdir_flag_spec_F77='-L$libdir' 14321 hardcode_libdir_separator_F77= 14322 fi 14323 ;; 14324 esac 14325 shared_flag='-shared' 14326 if test "$aix_use_runtimelinking" = yes; then 14327 shared_flag="$shared_flag "'${wl}-G' 14328 fi 14329 else 14330 # not using gcc 14331 if test "$host_cpu" = ia64; then 14332 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14333 # chokes on -Wl,-G. The following line is correct: 14334 shared_flag='-G' 14335 else 14336 if test "$aix_use_runtimelinking" = yes; then 14337 shared_flag='${wl}-G' 14338 else 14339 shared_flag='${wl}-bM:SRE' 14340 fi 14341 fi 14342 fi 14343 14344 # It seems that -bexpall does not export symbols beginning with 14345 # underscore (_), so it is better to generate a list of symbols to export. 14346 always_export_symbols_F77=yes 14347 if test "$aix_use_runtimelinking" = yes; then 14348 # Warning - without using the other runtime loading flags (-brtl), 14349 # -berok will link without error, but may produce a broken library. 14350 allow_undefined_flag_F77='-berok' 14351 # Determine the default libpath from the value encoded in an empty executable. 14352 cat >conftest.$ac_ext <<_ACEOF 14353 program main 14354 14355 end 14356_ACEOF 14357rm -f conftest.$ac_objext conftest$ac_exeext 14358if { (ac_try="$ac_link" 14359case "(($ac_try" in 14360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14361 *) ac_try_echo=$ac_try;; 14362esac 14363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14364 (eval "$ac_link") 2>conftest.er1 14365 ac_status=$? 14366 grep -v '^ *+' conftest.er1 >conftest.err 14367 rm -f conftest.er1 14368 cat conftest.err >&5 14369 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14370 (exit $ac_status); } && { 14371 test -z "$ac_f77_werror_flag" || 14372 test ! -s conftest.err 14373 } && test -s conftest$ac_exeext && 14374 $as_test_x conftest$ac_exeext; then 14375 14376aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14377}'` 14378# Check for a 64-bit object if we didn't find anything. 14379if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14380}'`; fi 14381else 14382 echo "$as_me: failed program was:" >&5 14383sed 's/^/| /' conftest.$ac_ext >&5 14384 14385 14386fi 14387 14388rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14389 conftest$ac_exeext conftest.$ac_ext 14390if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14391 14392 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14393 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" 14394 else 14395 if test "$host_cpu" = ia64; then 14396 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 14397 allow_undefined_flag_F77="-z nodefs" 14398 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" 14399 else 14400 # Determine the default libpath from the value encoded in an empty executable. 14401 cat >conftest.$ac_ext <<_ACEOF 14402 program main 14403 14404 end 14405_ACEOF 14406rm -f conftest.$ac_objext conftest$ac_exeext 14407if { (ac_try="$ac_link" 14408case "(($ac_try" in 14409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14410 *) ac_try_echo=$ac_try;; 14411esac 14412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14413 (eval "$ac_link") 2>conftest.er1 14414 ac_status=$? 14415 grep -v '^ *+' conftest.er1 >conftest.err 14416 rm -f conftest.er1 14417 cat conftest.err >&5 14418 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14419 (exit $ac_status); } && { 14420 test -z "$ac_f77_werror_flag" || 14421 test ! -s conftest.err 14422 } && test -s conftest$ac_exeext && 14423 $as_test_x conftest$ac_exeext; then 14424 14425aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14426}'` 14427# Check for a 64-bit object if we didn't find anything. 14428if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14429}'`; fi 14430else 14431 echo "$as_me: failed program was:" >&5 14432sed 's/^/| /' conftest.$ac_ext >&5 14433 14434 14435fi 14436 14437rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14438 conftest$ac_exeext conftest.$ac_ext 14439if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14440 14441 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14442 # Warning - without using the other run time loading flags, 14443 # -berok will link without error, but may produce a broken library. 14444 no_undefined_flag_F77=' ${wl}-bernotok' 14445 allow_undefined_flag_F77=' ${wl}-berok' 14446 # Exported symbols can be pulled into shared objects from archives 14447 whole_archive_flag_spec_F77='$convenience' 14448 archive_cmds_need_lc_F77=yes 14449 # This is similar to how AIX traditionally builds its shared libraries. 14450 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' 14451 fi 14452 fi 14453 ;; 14454 14455 amigaos*) 14456 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)' 14457 hardcode_libdir_flag_spec_F77='-L$libdir' 14458 hardcode_minus_L_F77=yes 14459 # see comment about different semantics on the GNU ld section 14460 ld_shlibs_F77=no 14461 ;; 14462 14463 bsdi[45]*) 14464 export_dynamic_flag_spec_F77=-rdynamic 14465 ;; 14466 14467 cygwin* | mingw* | pw32*) 14468 # When not using gcc, we currently assume that we are using 14469 # Microsoft Visual C++. 14470 # hardcode_libdir_flag_spec is actually meaningless, as there is 14471 # no search path for DLLs. 14472 hardcode_libdir_flag_spec_F77=' ' 14473 allow_undefined_flag_F77=unsupported 14474 # Tell ltmain to make .lib files, not .a files. 14475 libext=lib 14476 # Tell ltmain to make .dll files, not .so files. 14477 shrext_cmds=".dll" 14478 # FIXME: Setting linknames here is a bad hack. 14479 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 14480 # The linker will automatically build a .lib file if we build a DLL. 14481 old_archive_From_new_cmds_F77='true' 14482 # FIXME: Should let the user specify the lib program. 14483 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 14484 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 14485 enable_shared_with_static_runtimes_F77=yes 14486 ;; 14487 14488 darwin* | rhapsody*) 14489 case $host_os in 14490 rhapsody* | darwin1.[012]) 14491 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 14492 ;; 14493 *) # Darwin 1.3 on 14494 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 14495 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14496 else 14497 case ${MACOSX_DEPLOYMENT_TARGET} in 14498 10.[012]) 14499 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14500 ;; 14501 10.*) 14502 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 14503 ;; 14504 esac 14505 fi 14506 ;; 14507 esac 14508 archive_cmds_need_lc_F77=no 14509 hardcode_direct_F77=no 14510 hardcode_automatic_F77=yes 14511 hardcode_shlibpath_var_F77=unsupported 14512 whole_archive_flag_spec_F77='' 14513 link_all_deplibs_F77=yes 14514 if test "$GCC" = yes ; then 14515 output_verbose_link_cmd='echo' 14516 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 14517 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14518 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14519 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}' 14520 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}' 14521 else 14522 case $cc_basename in 14523 xlc*) 14524 output_verbose_link_cmd='echo' 14525 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 14526 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14527 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14528 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 14529 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}' 14530 ;; 14531 *) 14532 ld_shlibs_F77=no 14533 ;; 14534 esac 14535 fi 14536 ;; 14537 14538 dgux*) 14539 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14540 hardcode_libdir_flag_spec_F77='-L$libdir' 14541 hardcode_shlibpath_var_F77=no 14542 ;; 14543 14544 freebsd1*) 14545 ld_shlibs_F77=no 14546 ;; 14547 14548 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14549 # support. Future versions do this automatically, but an explicit c++rt0.o 14550 # does not break anything, and helps significantly (at the cost of a little 14551 # extra space). 14552 freebsd2.2*) 14553 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14554 hardcode_libdir_flag_spec_F77='-R$libdir' 14555 hardcode_direct_F77=yes 14556 hardcode_shlibpath_var_F77=no 14557 ;; 14558 14559 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14560 freebsd2*) 14561 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14562 hardcode_direct_F77=yes 14563 hardcode_minus_L_F77=yes 14564 hardcode_shlibpath_var_F77=no 14565 ;; 14566 14567 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14568 freebsd* | dragonfly*) 14569 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 14570 hardcode_libdir_flag_spec_F77='-R$libdir' 14571 hardcode_direct_F77=yes 14572 hardcode_shlibpath_var_F77=no 14573 ;; 14574 14575 hpux9*) 14576 if test "$GCC" = yes; then 14577 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' 14578 else 14579 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' 14580 fi 14581 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14582 hardcode_libdir_separator_F77=: 14583 hardcode_direct_F77=yes 14584 14585 # hardcode_minus_L: Not really in the search PATH, 14586 # but as the default location of the library. 14587 hardcode_minus_L_F77=yes 14588 export_dynamic_flag_spec_F77='${wl}-E' 14589 ;; 14590 14591 hpux10*) 14592 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14593 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14594 else 14595 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14596 fi 14597 if test "$with_gnu_ld" = no; then 14598 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14599 hardcode_libdir_separator_F77=: 14600 14601 hardcode_direct_F77=yes 14602 export_dynamic_flag_spec_F77='${wl}-E' 14603 14604 # hardcode_minus_L: Not really in the search PATH, 14605 # but as the default location of the library. 14606 hardcode_minus_L_F77=yes 14607 fi 14608 ;; 14609 14610 hpux11*) 14611 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14612 case $host_cpu in 14613 hppa*64*) 14614 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14615 ;; 14616 ia64*) 14617 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14618 ;; 14619 *) 14620 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14621 ;; 14622 esac 14623 else 14624 case $host_cpu in 14625 hppa*64*) 14626 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14627 ;; 14628 ia64*) 14629 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14630 ;; 14631 *) 14632 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14633 ;; 14634 esac 14635 fi 14636 if test "$with_gnu_ld" = no; then 14637 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14638 hardcode_libdir_separator_F77=: 14639 14640 case $host_cpu in 14641 hppa*64*|ia64*) 14642 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 14643 hardcode_direct_F77=no 14644 hardcode_shlibpath_var_F77=no 14645 ;; 14646 *) 14647 hardcode_direct_F77=yes 14648 export_dynamic_flag_spec_F77='${wl}-E' 14649 14650 # hardcode_minus_L: Not really in the search PATH, 14651 # but as the default location of the library. 14652 hardcode_minus_L_F77=yes 14653 ;; 14654 esac 14655 fi 14656 ;; 14657 14658 irix5* | irix6* | nonstopux*) 14659 if test "$GCC" = yes; then 14660 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' 14661 else 14662 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' 14663 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 14664 fi 14665 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14666 hardcode_libdir_separator_F77=: 14667 link_all_deplibs_F77=yes 14668 ;; 14669 14670 netbsd* | netbsdelf*-gnu) 14671 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14672 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14673 else 14674 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14675 fi 14676 hardcode_libdir_flag_spec_F77='-R$libdir' 14677 hardcode_direct_F77=yes 14678 hardcode_shlibpath_var_F77=no 14679 ;; 14680 14681 newsos6) 14682 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14683 hardcode_direct_F77=yes 14684 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14685 hardcode_libdir_separator_F77=: 14686 hardcode_shlibpath_var_F77=no 14687 ;; 14688 14689 openbsd*) 14690 hardcode_direct_F77=yes 14691 hardcode_shlibpath_var_F77=no 14692 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14693 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14694 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 14695 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14696 export_dynamic_flag_spec_F77='${wl}-E' 14697 else 14698 case $host_os in 14699 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 14700 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14701 hardcode_libdir_flag_spec_F77='-R$libdir' 14702 ;; 14703 *) 14704 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14705 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14706 ;; 14707 esac 14708 fi 14709 ;; 14710 14711 os2*) 14712 hardcode_libdir_flag_spec_F77='-L$libdir' 14713 hardcode_minus_L_F77=yes 14714 allow_undefined_flag_F77=unsupported 14715 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' 14716 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 14717 ;; 14718 14719 osf3*) 14720 if test "$GCC" = yes; then 14721 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14722 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' 14723 else 14724 allow_undefined_flag_F77=' -expect_unresolved \*' 14725 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' 14726 fi 14727 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14728 hardcode_libdir_separator_F77=: 14729 ;; 14730 14731 osf4* | osf5*) # as osf3* with the addition of -msym flag 14732 if test "$GCC" = yes; then 14733 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14734 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' 14735 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14736 else 14737 allow_undefined_flag_F77=' -expect_unresolved \*' 14738 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' 14739 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~ 14740 $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' 14741 14742 # Both c and cxx compiler support -rpath directly 14743 hardcode_libdir_flag_spec_F77='-rpath $libdir' 14744 fi 14745 hardcode_libdir_separator_F77=: 14746 ;; 14747 14748 solaris*) 14749 no_undefined_flag_F77=' -z text' 14750 if test "$GCC" = yes; then 14751 wlarc='${wl}' 14752 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14753 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14754 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 14755 else 14756 wlarc='' 14757 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14758 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14759 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14760 fi 14761 hardcode_libdir_flag_spec_F77='-R$libdir' 14762 hardcode_shlibpath_var_F77=no 14763 case $host_os in 14764 solaris2.[0-5] | solaris2.[0-5].*) ;; 14765 *) 14766 # The compiler driver will combine linker options so we 14767 # cannot just pass the convience library names through 14768 # without $wl, iff we do not link with $LD. 14769 # Luckily, gcc supports the same syntax we need for Sun Studio. 14770 # Supported since Solaris 2.6 (maybe 2.5.1?) 14771 case $wlarc in 14772 '') 14773 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 14774 *) 14775 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 14776 esac ;; 14777 esac 14778 link_all_deplibs_F77=yes 14779 ;; 14780 14781 sunos4*) 14782 if test "x$host_vendor" = xsequent; then 14783 # Use $CC to link under sequent, because it throws in some extra .o 14784 # files that make .init and .fini sections work. 14785 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 14786 else 14787 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 14788 fi 14789 hardcode_libdir_flag_spec_F77='-L$libdir' 14790 hardcode_direct_F77=yes 14791 hardcode_minus_L_F77=yes 14792 hardcode_shlibpath_var_F77=no 14793 ;; 14794 14795 sysv4) 14796 case $host_vendor in 14797 sni) 14798 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14799 hardcode_direct_F77=yes # is this really true??? 14800 ;; 14801 siemens) 14802 ## LD is ld it makes a PLAMLIB 14803 ## CC just makes a GrossModule. 14804 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14805 reload_cmds_F77='$CC -r -o $output$reload_objs' 14806 hardcode_direct_F77=no 14807 ;; 14808 motorola) 14809 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14810 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 14811 ;; 14812 esac 14813 runpath_var='LD_RUN_PATH' 14814 hardcode_shlibpath_var_F77=no 14815 ;; 14816 14817 sysv4.3*) 14818 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14819 hardcode_shlibpath_var_F77=no 14820 export_dynamic_flag_spec_F77='-Bexport' 14821 ;; 14822 14823 sysv4*MP*) 14824 if test -d /usr/nec; then 14825 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14826 hardcode_shlibpath_var_F77=no 14827 runpath_var=LD_RUN_PATH 14828 hardcode_runpath_var=yes 14829 ld_shlibs_F77=yes 14830 fi 14831 ;; 14832 14833 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 14834 no_undefined_flag_F77='${wl}-z,text' 14835 archive_cmds_need_lc_F77=no 14836 hardcode_shlibpath_var_F77=no 14837 runpath_var='LD_RUN_PATH' 14838 14839 if test "$GCC" = yes; then 14840 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14841 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14842 else 14843 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14844 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14845 fi 14846 ;; 14847 14848 sysv5* | sco3.2v5* | sco5v6*) 14849 # Note: We can NOT use -z defs as we might desire, because we do not 14850 # link with -lc, and that would cause any symbols used from libc to 14851 # always be unresolved, which means just about no library would 14852 # ever link correctly. If we're not using GNU ld we use -z text 14853 # though, which does catch some bad symbols but isn't as heavy-handed 14854 # as -z defs. 14855 no_undefined_flag_F77='${wl}-z,text' 14856 allow_undefined_flag_F77='${wl}-z,nodefs' 14857 archive_cmds_need_lc_F77=no 14858 hardcode_shlibpath_var_F77=no 14859 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 14860 hardcode_libdir_separator_F77=':' 14861 link_all_deplibs_F77=yes 14862 export_dynamic_flag_spec_F77='${wl}-Bexport' 14863 runpath_var='LD_RUN_PATH' 14864 14865 if test "$GCC" = yes; then 14866 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14867 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14868 else 14869 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14870 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14871 fi 14872 ;; 14873 14874 uts4*) 14875 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14876 hardcode_libdir_flag_spec_F77='-L$libdir' 14877 hardcode_shlibpath_var_F77=no 14878 ;; 14879 14880 *) 14881 ld_shlibs_F77=no 14882 ;; 14883 esac 14884 fi 14885 14886{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 14887echo "${ECHO_T}$ld_shlibs_F77" >&6; } 14888test "$ld_shlibs_F77" = no && can_build_shared=no 14889 14890# 14891# Do we need to explicitly link libc? 14892# 14893case "x$archive_cmds_need_lc_F77" in 14894x|xyes) 14895 # Assume -lc should be added 14896 archive_cmds_need_lc_F77=yes 14897 14898 if test "$enable_shared" = yes && test "$GCC" = yes; then 14899 case $archive_cmds_F77 in 14900 *'~'*) 14901 # FIXME: we may have to deal with multi-command sequences. 14902 ;; 14903 '$CC '*) 14904 # Test whether the compiler implicitly links with -lc since on some 14905 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14906 # to ld, don't add -lc before -lgcc. 14907 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 14908echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 14909 $rm conftest* 14910 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14911 14912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14913 (eval $ac_compile) 2>&5 14914 ac_status=$? 14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14916 (exit $ac_status); } 2>conftest.err; then 14917 soname=conftest 14918 lib=conftest 14919 libobjs=conftest.$ac_objext 14920 deplibs= 14921 wl=$lt_prog_compiler_wl_F77 14922 pic_flag=$lt_prog_compiler_pic_F77 14923 compiler_flags=-v 14924 linker_flags=-v 14925 verstring= 14926 output_objdir=. 14927 libname=conftest 14928 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 14929 allow_undefined_flag_F77= 14930 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 14931 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 14932 ac_status=$? 14933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14934 (exit $ac_status); } 14935 then 14936 archive_cmds_need_lc_F77=no 14937 else 14938 archive_cmds_need_lc_F77=yes 14939 fi 14940 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 14941 else 14942 cat conftest.err 1>&5 14943 fi 14944 $rm conftest* 14945 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 14946echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } 14947 ;; 14948 esac 14949 fi 14950 ;; 14951esac 14952 14953{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 14954echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 14955library_names_spec= 14956libname_spec='lib$name' 14957soname_spec= 14958shrext_cmds=".so" 14959postinstall_cmds= 14960postuninstall_cmds= 14961finish_cmds= 14962finish_eval= 14963shlibpath_var= 14964shlibpath_overrides_runpath=unknown 14965version_type=none 14966dynamic_linker="$host_os ld.so" 14967sys_lib_dlsearch_path_spec="/lib /usr/lib" 14968if test "$GCC" = yes; then 14969 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14970 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 14971 # if the path contains ";" then we assume it to be the separator 14972 # otherwise default to the standard path separator (i.e. ":") - it is 14973 # assumed that no part of a normal pathname contains ";" but that should 14974 # okay in the real world where ";" in dirpaths is itself problematic. 14975 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14976 else 14977 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14978 fi 14979else 14980 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 14981fi 14982need_lib_prefix=unknown 14983hardcode_into_libs=no 14984 14985# when you set need_version to no, make sure it does not cause -set_version 14986# flags to be left without arguments 14987need_version=unknown 14988 14989case $host_os in 14990aix3*) 14991 version_type=linux 14992 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14993 shlibpath_var=LIBPATH 14994 14995 # AIX 3 has no versioning support, so we append a major version to the name. 14996 soname_spec='${libname}${release}${shared_ext}$major' 14997 ;; 14998 14999aix4* | aix5*) 15000 version_type=linux 15001 need_lib_prefix=no 15002 need_version=no 15003 hardcode_into_libs=yes 15004 if test "$host_cpu" = ia64; then 15005 # AIX 5 supports IA64 15006 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15007 shlibpath_var=LD_LIBRARY_PATH 15008 else 15009 # With GCC up to 2.95.x, collect2 would create an import file 15010 # for dependence libraries. The import file would start with 15011 # the line `#! .'. This would cause the generated library to 15012 # depend on `.', always an invalid library. This was fixed in 15013 # development snapshots of GCC prior to 3.0. 15014 case $host_os in 15015 aix4 | aix4.[01] | aix4.[01].*) 15016 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15017 echo ' yes ' 15018 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15019 : 15020 else 15021 can_build_shared=no 15022 fi 15023 ;; 15024 esac 15025 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15026 # soname into executable. Probably we can add versioning support to 15027 # collect2, so additional links can be useful in future. 15028 if test "$aix_use_runtimelinking" = yes; then 15029 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15030 # instead of lib<name>.a to let people know that these are not 15031 # typical AIX shared libraries. 15032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15033 else 15034 # We preserve .a as extension for shared libraries through AIX4.2 15035 # and later when we are not doing run time linking. 15036 library_names_spec='${libname}${release}.a $libname.a' 15037 soname_spec='${libname}${release}${shared_ext}$major' 15038 fi 15039 shlibpath_var=LIBPATH 15040 fi 15041 ;; 15042 15043amigaos*) 15044 library_names_spec='$libname.ixlibrary $libname.a' 15045 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15046 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' 15047 ;; 15048 15049beos*) 15050 library_names_spec='${libname}${shared_ext}' 15051 dynamic_linker="$host_os ld.so" 15052 shlibpath_var=LIBRARY_PATH 15053 ;; 15054 15055bsdi[45]*) 15056 version_type=linux 15057 need_version=no 15058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15059 soname_spec='${libname}${release}${shared_ext}$major' 15060 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15061 shlibpath_var=LD_LIBRARY_PATH 15062 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15063 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15064 # the default ld.so.conf also contains /usr/contrib/lib and 15065 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15066 # libtool to hard-code these into programs 15067 ;; 15068 15069cygwin* | mingw* | pw32*) 15070 version_type=windows 15071 shrext_cmds=".dll" 15072 need_version=no 15073 need_lib_prefix=no 15074 15075 case $GCC,$host_os in 15076 yes,cygwin* | yes,mingw* | yes,pw32*) 15077 library_names_spec='$libname.dll.a' 15078 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15079 postinstall_cmds='base_file=`basename \${file}`~ 15080 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15081 dldir=$destdir/`dirname \$dlpath`~ 15082 test -d \$dldir || mkdir -p \$dldir~ 15083 $install_prog $dir/$dlname \$dldir/$dlname~ 15084 chmod a+x \$dldir/$dlname' 15085 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15086 dlpath=$dir/\$dldll~ 15087 $rm \$dlpath' 15088 shlibpath_overrides_runpath=yes 15089 15090 case $host_os in 15091 cygwin*) 15092 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15093 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15094 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15095 ;; 15096 mingw*) 15097 # MinGW DLLs use traditional 'lib' prefix 15098 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15099 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15100 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15101 # It is most probably a Windows format PATH printed by 15102 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15103 # path with ; separators, and with drive letters. We can handle the 15104 # drive letters (cygwin fileutils understands them), so leave them, 15105 # especially as we might pass files found there to a mingw objdump, 15106 # which wouldn't understand a cygwinified path. Ahh. 15107 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15108 else 15109 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15110 fi 15111 ;; 15112 pw32*) 15113 # pw32 DLLs use 'pw' prefix rather than 'lib' 15114 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15115 ;; 15116 esac 15117 ;; 15118 15119 *) 15120 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15121 ;; 15122 esac 15123 dynamic_linker='Win32 ld.exe' 15124 # FIXME: first we should search . and the directory the executable is in 15125 shlibpath_var=PATH 15126 ;; 15127 15128darwin* | rhapsody*) 15129 dynamic_linker="$host_os dyld" 15130 version_type=darwin 15131 need_lib_prefix=no 15132 need_version=no 15133 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15134 soname_spec='${libname}${release}${major}$shared_ext' 15135 shlibpath_overrides_runpath=yes 15136 shlibpath_var=DYLD_LIBRARY_PATH 15137 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15138 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 15139 if test "$GCC" = yes; then 15140 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 15141 else 15142 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 15143 fi 15144 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15145 ;; 15146 15147dgux*) 15148 version_type=linux 15149 need_lib_prefix=no 15150 need_version=no 15151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15152 soname_spec='${libname}${release}${shared_ext}$major' 15153 shlibpath_var=LD_LIBRARY_PATH 15154 ;; 15155 15156freebsd1*) 15157 dynamic_linker=no 15158 ;; 15159 15160freebsd* | dragonfly*) 15161 # DragonFly does not have aout. When/if they implement a new 15162 # versioning mechanism, adjust this. 15163 if test -x /usr/bin/objformat; then 15164 objformat=`/usr/bin/objformat` 15165 else 15166 case $host_os in 15167 freebsd[123]*) objformat=aout ;; 15168 *) objformat=elf ;; 15169 esac 15170 fi 15171 version_type=freebsd-$objformat 15172 case $version_type in 15173 freebsd-elf*) 15174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15175 need_version=no 15176 need_lib_prefix=no 15177 ;; 15178 freebsd-*) 15179 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15180 need_version=yes 15181 ;; 15182 esac 15183 shlibpath_var=LD_LIBRARY_PATH 15184 case $host_os in 15185 freebsd2*) 15186 shlibpath_overrides_runpath=yes 15187 ;; 15188 freebsd3.[01]* | freebsdelf3.[01]*) 15189 shlibpath_overrides_runpath=yes 15190 hardcode_into_libs=yes 15191 ;; 15192 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15193 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15194 shlibpath_overrides_runpath=no 15195 hardcode_into_libs=yes 15196 ;; 15197 freebsd*) # from 4.6 on 15198 shlibpath_overrides_runpath=yes 15199 hardcode_into_libs=yes 15200 ;; 15201 esac 15202 ;; 15203 15204gnu*) 15205 version_type=linux 15206 need_lib_prefix=no 15207 need_version=no 15208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15209 soname_spec='${libname}${release}${shared_ext}$major' 15210 shlibpath_var=LD_LIBRARY_PATH 15211 hardcode_into_libs=yes 15212 ;; 15213 15214hpux9* | hpux10* | hpux11*) 15215 # Give a soname corresponding to the major version so that dld.sl refuses to 15216 # link against other versions. 15217 version_type=sunos 15218 need_lib_prefix=no 15219 need_version=no 15220 case $host_cpu in 15221 ia64*) 15222 shrext_cmds='.so' 15223 hardcode_into_libs=yes 15224 dynamic_linker="$host_os dld.so" 15225 shlibpath_var=LD_LIBRARY_PATH 15226 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15228 soname_spec='${libname}${release}${shared_ext}$major' 15229 if test "X$HPUX_IA64_MODE" = X32; then 15230 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15231 else 15232 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15233 fi 15234 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15235 ;; 15236 hppa*64*) 15237 shrext_cmds='.sl' 15238 hardcode_into_libs=yes 15239 dynamic_linker="$host_os dld.sl" 15240 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15241 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15243 soname_spec='${libname}${release}${shared_ext}$major' 15244 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15245 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15246 ;; 15247 *) 15248 shrext_cmds='.sl' 15249 dynamic_linker="$host_os dld.sl" 15250 shlibpath_var=SHLIB_PATH 15251 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15253 soname_spec='${libname}${release}${shared_ext}$major' 15254 ;; 15255 esac 15256 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15257 postinstall_cmds='chmod 555 $lib' 15258 ;; 15259 15260interix3*) 15261 version_type=linux 15262 need_lib_prefix=no 15263 need_version=no 15264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15265 soname_spec='${libname}${release}${shared_ext}$major' 15266 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15267 shlibpath_var=LD_LIBRARY_PATH 15268 shlibpath_overrides_runpath=no 15269 hardcode_into_libs=yes 15270 ;; 15271 15272irix5* | irix6* | nonstopux*) 15273 case $host_os in 15274 nonstopux*) version_type=nonstopux ;; 15275 *) 15276 if test "$lt_cv_prog_gnu_ld" = yes; then 15277 version_type=linux 15278 else 15279 version_type=irix 15280 fi ;; 15281 esac 15282 need_lib_prefix=no 15283 need_version=no 15284 soname_spec='${libname}${release}${shared_ext}$major' 15285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15286 case $host_os in 15287 irix5* | nonstopux*) 15288 libsuff= shlibsuff= 15289 ;; 15290 *) 15291 case $LD in # libtool.m4 will add one of these switches to LD 15292 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15293 libsuff= shlibsuff= libmagic=32-bit;; 15294 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15295 libsuff=32 shlibsuff=N32 libmagic=N32;; 15296 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15297 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15298 *) libsuff= shlibsuff= libmagic=never-match;; 15299 esac 15300 ;; 15301 esac 15302 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15303 shlibpath_overrides_runpath=no 15304 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15305 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15306 hardcode_into_libs=yes 15307 ;; 15308 15309# No shared lib support for Linux oldld, aout, or coff. 15310linux*oldld* | linux*aout* | linux*coff*) 15311 dynamic_linker=no 15312 ;; 15313 15314# This must be Linux ELF. 15315linux* | k*bsd*-gnu) 15316 version_type=linux 15317 need_lib_prefix=no 15318 need_version=no 15319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15320 soname_spec='${libname}${release}${shared_ext}$major' 15321 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15322 shlibpath_var=LD_LIBRARY_PATH 15323 shlibpath_overrides_runpath=no 15324 # This implies no fast_install, which is unacceptable. 15325 # Some rework will be needed to allow for fast_install 15326 # before this can be enabled. 15327 hardcode_into_libs=yes 15328 15329 # Append ld.so.conf contents to the search path 15330 if test -f /etc/ld.so.conf; then 15331 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 15332 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15333 fi 15334 15335 # We used to test for /lib/ld.so.1 and disable shared libraries on 15336 # powerpc, because MkLinux only supported shared libraries with the 15337 # GNU dynamic linker. Since this was broken with cross compilers, 15338 # most powerpc-linux boxes support dynamic linking these days and 15339 # people can always --disable-shared, the test was removed, and we 15340 # assume the GNU/Linux dynamic linker is in use. 15341 dynamic_linker='GNU/Linux ld.so' 15342 ;; 15343 15344netbsdelf*-gnu) 15345 version_type=linux 15346 need_lib_prefix=no 15347 need_version=no 15348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15349 soname_spec='${libname}${release}${shared_ext}$major' 15350 shlibpath_var=LD_LIBRARY_PATH 15351 shlibpath_overrides_runpath=no 15352 hardcode_into_libs=yes 15353 dynamic_linker='NetBSD ld.elf_so' 15354 ;; 15355 15356netbsd*) 15357 version_type=sunos 15358 need_lib_prefix=no 15359 need_version=no 15360 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15362 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15363 dynamic_linker='NetBSD (a.out) ld.so' 15364 else 15365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15366 soname_spec='${libname}${release}${shared_ext}$major' 15367 dynamic_linker='NetBSD ld.elf_so' 15368 fi 15369 shlibpath_var=LD_LIBRARY_PATH 15370 shlibpath_overrides_runpath=yes 15371 hardcode_into_libs=yes 15372 ;; 15373 15374newsos6) 15375 version_type=linux 15376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15377 shlibpath_var=LD_LIBRARY_PATH 15378 shlibpath_overrides_runpath=yes 15379 ;; 15380 15381nto-qnx*) 15382 version_type=linux 15383 need_lib_prefix=no 15384 need_version=no 15385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15386 soname_spec='${libname}${release}${shared_ext}$major' 15387 shlibpath_var=LD_LIBRARY_PATH 15388 shlibpath_overrides_runpath=yes 15389 ;; 15390 15391openbsd*) 15392 version_type=sunos 15393 sys_lib_dlsearch_path_spec="/usr/lib" 15394 need_lib_prefix=no 15395 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15396 case $host_os in 15397 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15398 *) need_version=no ;; 15399 esac 15400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15401 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15402 shlibpath_var=LD_LIBRARY_PATH 15403 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15404 case $host_os in 15405 openbsd2.[89] | openbsd2.[89].*) 15406 shlibpath_overrides_runpath=no 15407 ;; 15408 *) 15409 shlibpath_overrides_runpath=yes 15410 ;; 15411 esac 15412 else 15413 shlibpath_overrides_runpath=yes 15414 fi 15415 ;; 15416 15417os2*) 15418 libname_spec='$name' 15419 shrext_cmds=".dll" 15420 need_lib_prefix=no 15421 library_names_spec='$libname${shared_ext} $libname.a' 15422 dynamic_linker='OS/2 ld.exe' 15423 shlibpath_var=LIBPATH 15424 ;; 15425 15426osf3* | osf4* | osf5*) 15427 version_type=osf 15428 need_lib_prefix=no 15429 need_version=no 15430 soname_spec='${libname}${release}${shared_ext}$major' 15431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15432 shlibpath_var=LD_LIBRARY_PATH 15433 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15434 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15435 ;; 15436 15437solaris*) 15438 version_type=linux 15439 need_lib_prefix=no 15440 need_version=no 15441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15442 soname_spec='${libname}${release}${shared_ext}$major' 15443 shlibpath_var=LD_LIBRARY_PATH 15444 shlibpath_overrides_runpath=yes 15445 hardcode_into_libs=yes 15446 # ldd complains unless libraries are executable 15447 postinstall_cmds='chmod +x $lib' 15448 ;; 15449 15450sunos4*) 15451 version_type=sunos 15452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15453 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15454 shlibpath_var=LD_LIBRARY_PATH 15455 shlibpath_overrides_runpath=yes 15456 if test "$with_gnu_ld" = yes; then 15457 need_lib_prefix=no 15458 fi 15459 need_version=yes 15460 ;; 15461 15462sysv4 | sysv4.3*) 15463 version_type=linux 15464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15465 soname_spec='${libname}${release}${shared_ext}$major' 15466 shlibpath_var=LD_LIBRARY_PATH 15467 case $host_vendor in 15468 sni) 15469 shlibpath_overrides_runpath=no 15470 need_lib_prefix=no 15471 export_dynamic_flag_spec='${wl}-Blargedynsym' 15472 runpath_var=LD_RUN_PATH 15473 ;; 15474 siemens) 15475 need_lib_prefix=no 15476 ;; 15477 motorola) 15478 need_lib_prefix=no 15479 need_version=no 15480 shlibpath_overrides_runpath=no 15481 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15482 ;; 15483 esac 15484 ;; 15485 15486sysv4*MP*) 15487 if test -d /usr/nec ;then 15488 version_type=linux 15489 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15490 soname_spec='$libname${shared_ext}.$major' 15491 shlibpath_var=LD_LIBRARY_PATH 15492 fi 15493 ;; 15494 15495sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15496 version_type=freebsd-elf 15497 need_lib_prefix=no 15498 need_version=no 15499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15500 soname_spec='${libname}${release}${shared_ext}$major' 15501 shlibpath_var=LD_LIBRARY_PATH 15502 hardcode_into_libs=yes 15503 if test "$with_gnu_ld" = yes; then 15504 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15505 shlibpath_overrides_runpath=no 15506 else 15507 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15508 shlibpath_overrides_runpath=yes 15509 case $host_os in 15510 sco3.2v5*) 15511 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15512 ;; 15513 esac 15514 fi 15515 sys_lib_dlsearch_path_spec='/usr/lib' 15516 ;; 15517 15518uts4*) 15519 version_type=linux 15520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15521 soname_spec='${libname}${release}${shared_ext}$major' 15522 shlibpath_var=LD_LIBRARY_PATH 15523 ;; 15524 15525*) 15526 dynamic_linker=no 15527 ;; 15528esac 15529{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 15530echo "${ECHO_T}$dynamic_linker" >&6; } 15531test "$dynamic_linker" = no && can_build_shared=no 15532 15533variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15534if test "$GCC" = yes; then 15535 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15536fi 15537 15538{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 15539echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 15540hardcode_action_F77= 15541if test -n "$hardcode_libdir_flag_spec_F77" || \ 15542 test -n "$runpath_var_F77" || \ 15543 test "X$hardcode_automatic_F77" = "Xyes" ; then 15544 15545 # We can hardcode non-existant directories. 15546 if test "$hardcode_direct_F77" != no && 15547 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15548 # have to relink, otherwise we might link with an installed library 15549 # when we should be linking with a yet-to-be-installed one 15550 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 15551 test "$hardcode_minus_L_F77" != no; then 15552 # Linking always hardcodes the temporary library directory. 15553 hardcode_action_F77=relink 15554 else 15555 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15556 hardcode_action_F77=immediate 15557 fi 15558else 15559 # We cannot hardcode anything, or else we can only hardcode existing 15560 # directories. 15561 hardcode_action_F77=unsupported 15562fi 15563{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 15564echo "${ECHO_T}$hardcode_action_F77" >&6; } 15565 15566if test "$hardcode_action_F77" = relink; then 15567 # Fast installation is not supported 15568 enable_fast_install=no 15569elif test "$shlibpath_overrides_runpath" = yes || 15570 test "$enable_shared" = no; then 15571 # Fast installation is not necessary 15572 enable_fast_install=needless 15573fi 15574 15575 15576# The else clause should only fire when bootstrapping the 15577# libtool distribution, otherwise you forgot to ship ltmain.sh 15578# with your package, and you will get complaints that there are 15579# no rules to generate ltmain.sh. 15580if test -f "$ltmain"; then 15581 # See if we are running on zsh, and set the options which allow our commands through 15582 # without removal of \ escapes. 15583 if test -n "${ZSH_VERSION+set}" ; then 15584 setopt NO_GLOB_SUBST 15585 fi 15586 # Now quote all the things that may contain metacharacters while being 15587 # careful not to overquote the AC_SUBSTed values. We take copies of the 15588 # variables and quote the copies for generation of the libtool script. 15589 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 15590 SED SHELL STRIP \ 15591 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 15592 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 15593 deplibs_check_method reload_flag reload_cmds need_locks \ 15594 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 15595 lt_cv_sys_global_symbol_to_c_name_address \ 15596 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 15597 old_postinstall_cmds old_postuninstall_cmds \ 15598 compiler_F77 \ 15599 CC_F77 \ 15600 LD_F77 \ 15601 lt_prog_compiler_wl_F77 \ 15602 lt_prog_compiler_pic_F77 \ 15603 lt_prog_compiler_static_F77 \ 15604 lt_prog_compiler_no_builtin_flag_F77 \ 15605 export_dynamic_flag_spec_F77 \ 15606 thread_safe_flag_spec_F77 \ 15607 whole_archive_flag_spec_F77 \ 15608 enable_shared_with_static_runtimes_F77 \ 15609 old_archive_cmds_F77 \ 15610 old_archive_from_new_cmds_F77 \ 15611 predep_objects_F77 \ 15612 postdep_objects_F77 \ 15613 predeps_F77 \ 15614 postdeps_F77 \ 15615 compiler_lib_search_path_F77 \ 15616 archive_cmds_F77 \ 15617 archive_expsym_cmds_F77 \ 15618 postinstall_cmds_F77 \ 15619 postuninstall_cmds_F77 \ 15620 old_archive_from_expsyms_cmds_F77 \ 15621 allow_undefined_flag_F77 \ 15622 no_undefined_flag_F77 \ 15623 export_symbols_cmds_F77 \ 15624 hardcode_libdir_flag_spec_F77 \ 15625 hardcode_libdir_flag_spec_ld_F77 \ 15626 hardcode_libdir_separator_F77 \ 15627 hardcode_automatic_F77 \ 15628 module_cmds_F77 \ 15629 module_expsym_cmds_F77 \ 15630 lt_cv_prog_compiler_c_o_F77 \ 15631 exclude_expsyms_F77 \ 15632 include_expsyms_F77; do 15633 15634 case $var in 15635 old_archive_cmds_F77 | \ 15636 old_archive_from_new_cmds_F77 | \ 15637 archive_cmds_F77 | \ 15638 archive_expsym_cmds_F77 | \ 15639 module_cmds_F77 | \ 15640 module_expsym_cmds_F77 | \ 15641 old_archive_from_expsyms_cmds_F77 | \ 15642 export_symbols_cmds_F77 | \ 15643 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 15644 postinstall_cmds | postuninstall_cmds | \ 15645 old_postinstall_cmds | old_postuninstall_cmds | \ 15646 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 15647 # Double-quote double-evaled strings. 15648 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 15649 ;; 15650 *) 15651 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 15652 ;; 15653 esac 15654 done 15655 15656 case $lt_echo in 15657 *'\$0 --fallback-echo"') 15658 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 15659 ;; 15660 esac 15661 15662cfgfile="$ofile" 15663 15664 cat <<__EOF__ >> "$cfgfile" 15665# ### BEGIN LIBTOOL TAG CONFIG: $tagname 15666 15667# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15668 15669# Shell to use when invoking shell scripts. 15670SHELL=$lt_SHELL 15671 15672# Whether or not to build shared libraries. 15673build_libtool_libs=$enable_shared 15674 15675# Whether or not to build static libraries. 15676build_old_libs=$enable_static 15677 15678# Whether or not to add -lc for building shared libraries. 15679build_libtool_need_lc=$archive_cmds_need_lc_F77 15680 15681# Whether or not to disallow shared libs when runtime libs are static 15682allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 15683 15684# Whether or not to optimize for fast installation. 15685fast_install=$enable_fast_install 15686 15687# The host system. 15688host_alias=$host_alias 15689host=$host 15690host_os=$host_os 15691 15692# The build system. 15693build_alias=$build_alias 15694build=$build 15695build_os=$build_os 15696 15697# An echo program that does not interpret backslashes. 15698echo=$lt_echo 15699 15700# The archiver. 15701AR=$lt_AR 15702AR_FLAGS=$lt_AR_FLAGS 15703 15704# A C compiler. 15705LTCC=$lt_LTCC 15706 15707# LTCC compiler flags. 15708LTCFLAGS=$lt_LTCFLAGS 15709 15710# A language-specific compiler. 15711CC=$lt_compiler_F77 15712 15713# Is the compiler the GNU C compiler? 15714with_gcc=$GCC_F77 15715 15716# An ERE matcher. 15717EGREP=$lt_EGREP 15718 15719# The linker used to build libraries. 15720LD=$lt_LD_F77 15721 15722# Whether we need hard or soft links. 15723LN_S=$lt_LN_S 15724 15725# A BSD-compatible nm program. 15726NM=$lt_NM 15727 15728# A symbol stripping program 15729STRIP=$lt_STRIP 15730 15731# Used to examine libraries when file_magic_cmd begins "file" 15732MAGIC_CMD=$MAGIC_CMD 15733 15734# Used on cygwin: DLL creation program. 15735DLLTOOL="$DLLTOOL" 15736 15737# Used on cygwin: object dumper. 15738OBJDUMP="$OBJDUMP" 15739 15740# Used on cygwin: assembler. 15741AS="$AS" 15742 15743# The name of the directory that contains temporary libtool files. 15744objdir=$objdir 15745 15746# How to create reloadable object files. 15747reload_flag=$lt_reload_flag 15748reload_cmds=$lt_reload_cmds 15749 15750# How to pass a linker flag through the compiler. 15751wl=$lt_lt_prog_compiler_wl_F77 15752 15753# Object file suffix (normally "o"). 15754objext="$ac_objext" 15755 15756# Old archive suffix (normally "a"). 15757libext="$libext" 15758 15759# Shared library suffix (normally ".so"). 15760shrext_cmds='$shrext_cmds' 15761 15762# Executable file suffix (normally ""). 15763exeext="$exeext" 15764 15765# Additional compiler flags for building library objects. 15766pic_flag=$lt_lt_prog_compiler_pic_F77 15767pic_mode=$pic_mode 15768 15769# What is the maximum length of a command? 15770max_cmd_len=$lt_cv_sys_max_cmd_len 15771 15772# Does compiler simultaneously support -c and -o options? 15773compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 15774 15775# Must we lock files when doing compilation? 15776need_locks=$lt_need_locks 15777 15778# Do we need the lib prefix for modules? 15779need_lib_prefix=$need_lib_prefix 15780 15781# Do we need a version for libraries? 15782need_version=$need_version 15783 15784# Whether dlopen is supported. 15785dlopen_support=$enable_dlopen 15786 15787# Whether dlopen of programs is supported. 15788dlopen_self=$enable_dlopen_self 15789 15790# Whether dlopen of statically linked programs is supported. 15791dlopen_self_static=$enable_dlopen_self_static 15792 15793# Compiler flag to prevent dynamic linking. 15794link_static_flag=$lt_lt_prog_compiler_static_F77 15795 15796# Compiler flag to turn off builtin functions. 15797no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 15798 15799# Compiler flag to allow reflexive dlopens. 15800export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 15801 15802# Compiler flag to generate shared objects directly from archives. 15803whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 15804 15805# Compiler flag to generate thread-safe objects. 15806thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 15807 15808# Library versioning type. 15809version_type=$version_type 15810 15811# Format of library name prefix. 15812libname_spec=$lt_libname_spec 15813 15814# List of archive names. First name is the real one, the rest are links. 15815# The last name is the one that the linker finds with -lNAME. 15816library_names_spec=$lt_library_names_spec 15817 15818# The coded name of the library, if different from the real name. 15819soname_spec=$lt_soname_spec 15820 15821# Commands used to build and install an old-style archive. 15822RANLIB=$lt_RANLIB 15823old_archive_cmds=$lt_old_archive_cmds_F77 15824old_postinstall_cmds=$lt_old_postinstall_cmds 15825old_postuninstall_cmds=$lt_old_postuninstall_cmds 15826 15827# Create an old-style archive from a shared archive. 15828old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 15829 15830# Create a temporary old-style archive to link instead of a shared archive. 15831old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 15832 15833# Commands used to build and install a shared archive. 15834archive_cmds=$lt_archive_cmds_F77 15835archive_expsym_cmds=$lt_archive_expsym_cmds_F77 15836postinstall_cmds=$lt_postinstall_cmds 15837postuninstall_cmds=$lt_postuninstall_cmds 15838 15839# Commands used to build a loadable module (assumed same as above if empty) 15840module_cmds=$lt_module_cmds_F77 15841module_expsym_cmds=$lt_module_expsym_cmds_F77 15842 15843# Commands to strip libraries. 15844old_striplib=$lt_old_striplib 15845striplib=$lt_striplib 15846 15847# Dependencies to place before the objects being linked to create a 15848# shared library. 15849predep_objects=$lt_predep_objects_F77 15850 15851# Dependencies to place after the objects being linked to create a 15852# shared library. 15853postdep_objects=$lt_postdep_objects_F77 15854 15855# Dependencies to place before the objects being linked to create a 15856# shared library. 15857predeps=$lt_predeps_F77 15858 15859# Dependencies to place after the objects being linked to create a 15860# shared library. 15861postdeps=$lt_postdeps_F77 15862 15863# The library search path used internally by the compiler when linking 15864# a shared library. 15865compiler_lib_search_path=$lt_compiler_lib_search_path_F77 15866 15867# Method to check whether dependent libraries are shared objects. 15868deplibs_check_method=$lt_deplibs_check_method 15869 15870# Command to use when deplibs_check_method == file_magic. 15871file_magic_cmd=$lt_file_magic_cmd 15872 15873# Flag that allows shared libraries with undefined symbols to be built. 15874allow_undefined_flag=$lt_allow_undefined_flag_F77 15875 15876# Flag that forces no undefined symbols. 15877no_undefined_flag=$lt_no_undefined_flag_F77 15878 15879# Commands used to finish a libtool library installation in a directory. 15880finish_cmds=$lt_finish_cmds 15881 15882# Same as above, but a single script fragment to be evaled but not shown. 15883finish_eval=$lt_finish_eval 15884 15885# Take the output of nm and produce a listing of raw symbols and C names. 15886global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15887 15888# Transform the output of nm in a proper C declaration 15889global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15890 15891# Transform the output of nm in a C name address pair 15892global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15893 15894# This is the shared library runtime path variable. 15895runpath_var=$runpath_var 15896 15897# This is the shared library path variable. 15898shlibpath_var=$shlibpath_var 15899 15900# Is shlibpath searched before the hard-coded library search path? 15901shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15902 15903# How to hardcode a shared library path into an executable. 15904hardcode_action=$hardcode_action_F77 15905 15906# Whether we should hardcode library paths into libraries. 15907hardcode_into_libs=$hardcode_into_libs 15908 15909# Flag to hardcode \$libdir into a binary during linking. 15910# This must work even if \$libdir does not exist. 15911hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 15912 15913# If ld is used when linking, flag to hardcode \$libdir into 15914# a binary during linking. This must work even if \$libdir does 15915# not exist. 15916hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 15917 15918# Whether we need a single -rpath flag with a separated argument. 15919hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 15920 15921# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 15922# resulting binary. 15923hardcode_direct=$hardcode_direct_F77 15924 15925# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 15926# resulting binary. 15927hardcode_minus_L=$hardcode_minus_L_F77 15928 15929# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 15930# the resulting binary. 15931hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 15932 15933# Set to yes if building a shared library automatically hardcodes DIR into the library 15934# and all subsequent libraries and executables linked against it. 15935hardcode_automatic=$hardcode_automatic_F77 15936 15937# Variables whose values should be saved in libtool wrapper scripts and 15938# restored at relink time. 15939variables_saved_for_relink="$variables_saved_for_relink" 15940 15941# Whether libtool must link a program against all its dependency libraries. 15942link_all_deplibs=$link_all_deplibs_F77 15943 15944# Compile-time system search path for libraries 15945sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15946 15947# Run-time system search path for libraries 15948sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15949 15950# Fix the shell variable \$srcfile for the compiler. 15951fix_srcfile_path="$fix_srcfile_path_F77" 15952 15953# Set to yes if exported symbols are required. 15954always_export_symbols=$always_export_symbols_F77 15955 15956# The commands to list exported symbols. 15957export_symbols_cmds=$lt_export_symbols_cmds_F77 15958 15959# The commands to extract the exported symbol list from a shared archive. 15960extract_expsyms_cmds=$lt_extract_expsyms_cmds 15961 15962# Symbols that should not be listed in the preloaded symbols. 15963exclude_expsyms=$lt_exclude_expsyms_F77 15964 15965# Symbols that must always be exported. 15966include_expsyms=$lt_include_expsyms_F77 15967 15968# ### END LIBTOOL TAG CONFIG: $tagname 15969 15970__EOF__ 15971 15972 15973else 15974 # If there is no Makefile yet, we rely on a make rule to execute 15975 # `config.status --recheck' to rerun these tests and create the 15976 # libtool script then. 15977 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 15978 if test -f "$ltmain_in"; then 15979 test -f Makefile && make "$ltmain" 15980 fi 15981fi 15982 15983 15984ac_ext=c 15985ac_cpp='$CPP $CPPFLAGS' 15986ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15987ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15988ac_compiler_gnu=$ac_cv_c_compiler_gnu 15989 15990CC="$lt_save_CC" 15991 15992 else 15993 tagname="" 15994 fi 15995 ;; 15996 15997 GCJ) 15998 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 15999 16000 16001# Source file extension for Java test sources. 16002ac_ext=java 16003 16004# Object file extension for compiled Java test sources. 16005objext=o 16006objext_GCJ=$objext 16007 16008# Code to be used in simple compile tests 16009lt_simple_compile_test_code="class foo {}\n" 16010 16011# Code to be used in simple link tests 16012lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 16013 16014# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16015 16016# If no C compiler was specified, use CC. 16017LTCC=${LTCC-"$CC"} 16018 16019# If no C compiler flags were specified, use CFLAGS. 16020LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16021 16022# Allow CC to be a program name with arguments. 16023compiler=$CC 16024 16025 16026# save warnings/boilerplate of simple test code 16027ac_outfile=conftest.$ac_objext 16028printf "$lt_simple_compile_test_code" >conftest.$ac_ext 16029eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16030_lt_compiler_boilerplate=`cat conftest.err` 16031$rm conftest* 16032 16033ac_outfile=conftest.$ac_objext 16034printf "$lt_simple_link_test_code" >conftest.$ac_ext 16035eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16036_lt_linker_boilerplate=`cat conftest.err` 16037$rm conftest* 16038 16039 16040# Allow CC to be a program name with arguments. 16041lt_save_CC="$CC" 16042CC=${GCJ-"gcj"} 16043compiler=$CC 16044compiler_GCJ=$CC 16045for cc_temp in $compiler""; do 16046 case $cc_temp in 16047 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16048 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16049 \-*) ;; 16050 *) break;; 16051 esac 16052done 16053cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16054 16055 16056# GCJ did not exist at the time GCC didn't implicitly link libc in. 16057archive_cmds_need_lc_GCJ=no 16058 16059old_archive_cmds_GCJ=$old_archive_cmds 16060 16061 16062lt_prog_compiler_no_builtin_flag_GCJ= 16063 16064if test "$GCC" = yes; then 16065 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16066 16067 16068{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16069echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 16070if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16071 echo $ECHO_N "(cached) $ECHO_C" >&6 16072else 16073 lt_cv_prog_compiler_rtti_exceptions=no 16074 ac_outfile=conftest.$ac_objext 16075 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16076 lt_compiler_flag="-fno-rtti -fno-exceptions" 16077 # Insert the option either (1) after the last *FLAGS variable, or 16078 # (2) before a word containing "conftest.", or (3) at the end. 16079 # Note that $ac_compile itself does not contain backslashes and begins 16080 # with a dollar sign (not a hyphen), so the echo should work correctly. 16081 # The option is referenced via a variable to avoid confusing sed. 16082 lt_compile=`echo "$ac_compile" | $SED \ 16083 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16084 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16085 -e 's:$: $lt_compiler_flag:'` 16086 (eval echo "\"\$as_me:16086: $lt_compile\"" >&5) 16087 (eval "$lt_compile" 2>conftest.err) 16088 ac_status=$? 16089 cat conftest.err >&5 16090 echo "$as_me:16090: \$? = $ac_status" >&5 16091 if (exit $ac_status) && test -s "$ac_outfile"; then 16092 # The compiler can only warn and ignore the option if not recognized 16093 # So say no if there are warnings other than the usual output. 16094 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16095 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16096 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16097 lt_cv_prog_compiler_rtti_exceptions=yes 16098 fi 16099 fi 16100 $rm conftest* 16101 16102fi 16103{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16104echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16105 16106if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16107 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16108else 16109 : 16110fi 16111 16112fi 16113 16114lt_prog_compiler_wl_GCJ= 16115lt_prog_compiler_pic_GCJ= 16116lt_prog_compiler_static_GCJ= 16117 16118{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16119echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 16120 16121 if test "$GCC" = yes; then 16122 lt_prog_compiler_wl_GCJ='-Wl,' 16123 lt_prog_compiler_static_GCJ='-static' 16124 16125 case $host_os in 16126 aix*) 16127 # All AIX code is PIC. 16128 if test "$host_cpu" = ia64; then 16129 # AIX 5 now supports IA64 processor 16130 lt_prog_compiler_static_GCJ='-Bstatic' 16131 fi 16132 ;; 16133 16134 amigaos*) 16135 # FIXME: we need at least 68020 code to build shared libraries, but 16136 # adding the `-m68020' flag to GCC prevents building anything better, 16137 # like `-m68040'. 16138 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16139 ;; 16140 16141 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16142 # PIC is the default for these OSes. 16143 ;; 16144 16145 mingw* | pw32* | os2*) 16146 # This hack is so that the source file can tell whether it is being 16147 # built for inclusion in a dll (and should export symbols for example). 16148 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16149 ;; 16150 16151 darwin* | rhapsody*) 16152 # PIC is the default on this platform 16153 # Common symbols not allowed in MH_DYLIB files 16154 lt_prog_compiler_pic_GCJ='-fno-common' 16155 ;; 16156 16157 interix3*) 16158 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16159 # Instead, we relocate shared libraries at runtime. 16160 ;; 16161 16162 msdosdjgpp*) 16163 # Just because we use GCC doesn't mean we suddenly get shared libraries 16164 # on systems that don't support them. 16165 lt_prog_compiler_can_build_shared_GCJ=no 16166 enable_shared=no 16167 ;; 16168 16169 sysv4*MP*) 16170 if test -d /usr/nec; then 16171 lt_prog_compiler_pic_GCJ=-Kconform_pic 16172 fi 16173 ;; 16174 16175 hpux*) 16176 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16177 # not for PA HP-UX. 16178 case $host_cpu in 16179 hppa*64*|ia64*) 16180 # +Z the default 16181 ;; 16182 *) 16183 lt_prog_compiler_pic_GCJ='-fPIC' 16184 ;; 16185 esac 16186 ;; 16187 16188 *) 16189 lt_prog_compiler_pic_GCJ='-fPIC' 16190 ;; 16191 esac 16192 else 16193 # PORTME Check for flag to pass linker flags through the system compiler. 16194 case $host_os in 16195 aix*) 16196 lt_prog_compiler_wl_GCJ='-Wl,' 16197 if test "$host_cpu" = ia64; then 16198 # AIX 5 now supports IA64 processor 16199 lt_prog_compiler_static_GCJ='-Bstatic' 16200 else 16201 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16202 fi 16203 ;; 16204 darwin*) 16205 # PIC is the default on this platform 16206 # Common symbols not allowed in MH_DYLIB files 16207 case $cc_basename in 16208 xlc*) 16209 lt_prog_compiler_pic_GCJ='-qnocommon' 16210 lt_prog_compiler_wl_GCJ='-Wl,' 16211 ;; 16212 esac 16213 ;; 16214 16215 mingw* | pw32* | os2*) 16216 # This hack is so that the source file can tell whether it is being 16217 # built for inclusion in a dll (and should export symbols for example). 16218 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16219 ;; 16220 16221 hpux9* | hpux10* | hpux11*) 16222 lt_prog_compiler_wl_GCJ='-Wl,' 16223 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16224 # not for PA HP-UX. 16225 case $host_cpu in 16226 hppa*64*|ia64*) 16227 # +Z the default 16228 ;; 16229 *) 16230 lt_prog_compiler_pic_GCJ='+Z' 16231 ;; 16232 esac 16233 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16234 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 16235 ;; 16236 16237 irix5* | irix6* | nonstopux*) 16238 lt_prog_compiler_wl_GCJ='-Wl,' 16239 # PIC (with -KPIC) is the default. 16240 lt_prog_compiler_static_GCJ='-non_shared' 16241 ;; 16242 16243 newsos6) 16244 lt_prog_compiler_pic_GCJ='-KPIC' 16245 lt_prog_compiler_static_GCJ='-Bstatic' 16246 ;; 16247 16248 linux* | k*bsd*-gnu) 16249 case $cc_basename in 16250 icc* | ecc*) 16251 lt_prog_compiler_wl_GCJ='-Wl,' 16252 lt_prog_compiler_pic_GCJ='-KPIC' 16253 lt_prog_compiler_static_GCJ='-static' 16254 ;; 16255 pgcc* | pgf77* | pgf90* | pgf95*) 16256 # Portland Group compilers (*not* the Pentium gcc compiler, 16257 # which looks to be a dead project) 16258 lt_prog_compiler_wl_GCJ='-Wl,' 16259 lt_prog_compiler_pic_GCJ='-fpic' 16260 lt_prog_compiler_static_GCJ='-Bstatic' 16261 ;; 16262 ccc*) 16263 lt_prog_compiler_wl_GCJ='-Wl,' 16264 # All Alpha code is PIC. 16265 lt_prog_compiler_static_GCJ='-non_shared' 16266 ;; 16267 esac 16268 ;; 16269 16270 osf3* | osf4* | osf5*) 16271 lt_prog_compiler_wl_GCJ='-Wl,' 16272 # All OSF/1 code is PIC. 16273 lt_prog_compiler_static_GCJ='-non_shared' 16274 ;; 16275 16276 solaris*) 16277 lt_prog_compiler_pic_GCJ='-KPIC' 16278 lt_prog_compiler_static_GCJ='-Bstatic' 16279 case $cc_basename in 16280 f77* | f90* | f95*) 16281 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 16282 *) 16283 lt_prog_compiler_wl_GCJ='-Wl,';; 16284 esac 16285 ;; 16286 16287 sunos4*) 16288 lt_prog_compiler_wl_GCJ='-Qoption ld ' 16289 lt_prog_compiler_pic_GCJ='-PIC' 16290 lt_prog_compiler_static_GCJ='-Bstatic' 16291 ;; 16292 16293 sysv4 | sysv4.2uw2* | sysv4.3*) 16294 lt_prog_compiler_wl_GCJ='-Wl,' 16295 lt_prog_compiler_pic_GCJ='-KPIC' 16296 lt_prog_compiler_static_GCJ='-Bstatic' 16297 ;; 16298 16299 sysv4*MP*) 16300 if test -d /usr/nec ;then 16301 lt_prog_compiler_pic_GCJ='-Kconform_pic' 16302 lt_prog_compiler_static_GCJ='-Bstatic' 16303 fi 16304 ;; 16305 16306 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16307 lt_prog_compiler_wl_GCJ='-Wl,' 16308 lt_prog_compiler_pic_GCJ='-KPIC' 16309 lt_prog_compiler_static_GCJ='-Bstatic' 16310 ;; 16311 16312 unicos*) 16313 lt_prog_compiler_wl_GCJ='-Wl,' 16314 lt_prog_compiler_can_build_shared_GCJ=no 16315 ;; 16316 16317 uts4*) 16318 lt_prog_compiler_pic_GCJ='-pic' 16319 lt_prog_compiler_static_GCJ='-Bstatic' 16320 ;; 16321 16322 *) 16323 lt_prog_compiler_can_build_shared_GCJ=no 16324 ;; 16325 esac 16326 fi 16327 16328{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 16329echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } 16330 16331# 16332# Check to make sure the PIC flag actually works. 16333# 16334if test -n "$lt_prog_compiler_pic_GCJ"; then 16335 16336{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 16337echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } 16338if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 16339 echo $ECHO_N "(cached) $ECHO_C" >&6 16340else 16341 lt_prog_compiler_pic_works_GCJ=no 16342 ac_outfile=conftest.$ac_objext 16343 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16344 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 16345 # Insert the option either (1) after the last *FLAGS variable, or 16346 # (2) before a word containing "conftest.", or (3) at the end. 16347 # Note that $ac_compile itself does not contain backslashes and begins 16348 # with a dollar sign (not a hyphen), so the echo should work correctly. 16349 # The option is referenced via a variable to avoid confusing sed. 16350 lt_compile=`echo "$ac_compile" | $SED \ 16351 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16352 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16353 -e 's:$: $lt_compiler_flag:'` 16354 (eval echo "\"\$as_me:16354: $lt_compile\"" >&5) 16355 (eval "$lt_compile" 2>conftest.err) 16356 ac_status=$? 16357 cat conftest.err >&5 16358 echo "$as_me:16358: \$? = $ac_status" >&5 16359 if (exit $ac_status) && test -s "$ac_outfile"; then 16360 # The compiler can only warn and ignore the option if not recognized 16361 # So say no if there are warnings other than the usual output. 16362 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16363 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16364 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16365 lt_prog_compiler_pic_works_GCJ=yes 16366 fi 16367 fi 16368 $rm conftest* 16369 16370fi 16371{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 16372echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } 16373 16374if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 16375 case $lt_prog_compiler_pic_GCJ in 16376 "" | " "*) ;; 16377 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 16378 esac 16379else 16380 lt_prog_compiler_pic_GCJ= 16381 lt_prog_compiler_can_build_shared_GCJ=no 16382fi 16383 16384fi 16385case $host_os in 16386 # For platforms which do not support PIC, -DPIC is meaningless: 16387 *djgpp*) 16388 lt_prog_compiler_pic_GCJ= 16389 ;; 16390 *) 16391 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 16392 ;; 16393esac 16394 16395# 16396# Check to make sure the static flag actually works. 16397# 16398wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 16399{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16400echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 16401if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 16402 echo $ECHO_N "(cached) $ECHO_C" >&6 16403else 16404 lt_prog_compiler_static_works_GCJ=no 16405 save_LDFLAGS="$LDFLAGS" 16406 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16407 printf "$lt_simple_link_test_code" > conftest.$ac_ext 16408 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16409 # The linker can only warn and ignore the option if not recognized 16410 # So say no if there are warnings 16411 if test -s conftest.err; then 16412 # Append any errors to the config.log. 16413 cat conftest.err 1>&5 16414 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 16415 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16416 if diff conftest.exp conftest.er2 >/dev/null; then 16417 lt_prog_compiler_static_works_GCJ=yes 16418 fi 16419 else 16420 lt_prog_compiler_static_works_GCJ=yes 16421 fi 16422 fi 16423 $rm conftest* 16424 LDFLAGS="$save_LDFLAGS" 16425 16426fi 16427{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 16428echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } 16429 16430if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 16431 : 16432else 16433 lt_prog_compiler_static_GCJ= 16434fi 16435 16436 16437{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 16438echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 16439if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 16440 echo $ECHO_N "(cached) $ECHO_C" >&6 16441else 16442 lt_cv_prog_compiler_c_o_GCJ=no 16443 $rm -r conftest 2>/dev/null 16444 mkdir conftest 16445 cd conftest 16446 mkdir out 16447 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16448 16449 lt_compiler_flag="-o out/conftest2.$ac_objext" 16450 # Insert the option either (1) after the last *FLAGS variable, or 16451 # (2) before a word containing "conftest.", or (3) at the end. 16452 # Note that $ac_compile itself does not contain backslashes and begins 16453 # with a dollar sign (not a hyphen), so the echo should work correctly. 16454 lt_compile=`echo "$ac_compile" | $SED \ 16455 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16456 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16457 -e 's:$: $lt_compiler_flag:'` 16458 (eval echo "\"\$as_me:16458: $lt_compile\"" >&5) 16459 (eval "$lt_compile" 2>out/conftest.err) 16460 ac_status=$? 16461 cat out/conftest.err >&5 16462 echo "$as_me:16462: \$? = $ac_status" >&5 16463 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16464 then 16465 # The compiler can only warn and ignore the option if not recognized 16466 # So say no if there are warnings 16467 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 16468 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16469 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16470 lt_cv_prog_compiler_c_o_GCJ=yes 16471 fi 16472 fi 16473 chmod u+w . 2>&5 16474 $rm conftest* 16475 # SGI C++ compiler will create directory out/ii_files/ for 16476 # template instantiation 16477 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 16478 $rm out/* && rmdir out 16479 cd .. 16480 rmdir conftest 16481 $rm conftest* 16482 16483fi 16484{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 16485echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } 16486 16487 16488hard_links="nottested" 16489if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 16490 # do not overwrite the value of need_locks provided by the user 16491 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 16492echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 16493 hard_links=yes 16494 $rm conftest* 16495 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16496 touch conftest.a 16497 ln conftest.a conftest.b 2>&5 || hard_links=no 16498 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16499 { echo "$as_me:$LINENO: result: $hard_links" >&5 16500echo "${ECHO_T}$hard_links" >&6; } 16501 if test "$hard_links" = no; then 16502 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 16503echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 16504 need_locks=warn 16505 fi 16506else 16507 need_locks=no 16508fi 16509 16510{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16511echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 16512 16513 runpath_var= 16514 allow_undefined_flag_GCJ= 16515 enable_shared_with_static_runtimes_GCJ=no 16516 archive_cmds_GCJ= 16517 archive_expsym_cmds_GCJ= 16518 old_archive_From_new_cmds_GCJ= 16519 old_archive_from_expsyms_cmds_GCJ= 16520 export_dynamic_flag_spec_GCJ= 16521 whole_archive_flag_spec_GCJ= 16522 thread_safe_flag_spec_GCJ= 16523 hardcode_libdir_flag_spec_GCJ= 16524 hardcode_libdir_flag_spec_ld_GCJ= 16525 hardcode_libdir_separator_GCJ= 16526 hardcode_direct_GCJ=no 16527 hardcode_minus_L_GCJ=no 16528 hardcode_shlibpath_var_GCJ=unsupported 16529 link_all_deplibs_GCJ=unknown 16530 hardcode_automatic_GCJ=no 16531 module_cmds_GCJ= 16532 module_expsym_cmds_GCJ= 16533 always_export_symbols_GCJ=no 16534 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16535 # include_expsyms should be a list of space-separated symbols to be *always* 16536 # included in the symbol list 16537 include_expsyms_GCJ= 16538 # exclude_expsyms can be an extended regexp of symbols to exclude 16539 # it will be wrapped by ` (' and `)$', so one must not match beginning or 16540 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 16541 # as well as any symbol that contains `d'. 16542 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 16543 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16544 # platforms (ab)use it in PIC code, but their linkers get confused if 16545 # the symbol is explicitly referenced. Since portable code cannot 16546 # rely on this symbol name, it's probably fine to never include it in 16547 # preloaded symbol tables. 16548 extract_expsyms_cmds= 16549 # Just being paranoid about ensuring that cc_basename is set. 16550 for cc_temp in $compiler""; do 16551 case $cc_temp in 16552 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16553 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16554 \-*) ;; 16555 *) break;; 16556 esac 16557done 16558cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16559 16560 case $host_os in 16561 cygwin* | mingw* | pw32*) 16562 # FIXME: the MSVC++ port hasn't been tested in a loooong time 16563 # When not using gcc, we currently assume that we are using 16564 # Microsoft Visual C++. 16565 if test "$GCC" != yes; then 16566 with_gnu_ld=no 16567 fi 16568 ;; 16569 interix*) 16570 # we just hope/assume this is gcc and not c89 (= MSVC++) 16571 with_gnu_ld=yes 16572 ;; 16573 openbsd*) 16574 with_gnu_ld=no 16575 ;; 16576 esac 16577 16578 ld_shlibs_GCJ=yes 16579 if test "$with_gnu_ld" = yes; then 16580 # If archive_cmds runs LD, not CC, wlarc should be empty 16581 wlarc='${wl}' 16582 16583 # Set some defaults for GNU ld with shared library support. These 16584 # are reset later if shared libraries are not supported. Putting them 16585 # here allows them to be overridden if necessary. 16586 runpath_var=LD_RUN_PATH 16587 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 16588 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 16589 # ancient GNU ld didn't support --whole-archive et. al. 16590 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 16591 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 16592 else 16593 whole_archive_flag_spec_GCJ= 16594 fi 16595 supports_anon_versioning=no 16596 case `$LD -v 2>/dev/null` in 16597 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16598 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16599 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16600 *\ 2.11.*) ;; # other 2.11 versions 16601 *) supports_anon_versioning=yes ;; 16602 esac 16603 16604 # See if GNU ld supports shared libraries. 16605 case $host_os in 16606 aix3* | aix4* | aix5*) 16607 # On AIX/PPC, the GNU linker is very broken 16608 if test "$host_cpu" != ia64; then 16609 ld_shlibs_GCJ=no 16610 cat <<EOF 1>&2 16611 16612*** Warning: the GNU linker, at least up to release 2.9.1, is reported 16613*** to be unable to reliably create shared libraries on AIX. 16614*** Therefore, libtool is disabling shared libraries support. If you 16615*** really care for shared libraries, you may want to modify your PATH 16616*** so that a non-GNU linker is found, and then restart. 16617 16618EOF 16619 fi 16620 ;; 16621 16622 amigaos*) 16623 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)' 16624 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16625 hardcode_minus_L_GCJ=yes 16626 16627 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 16628 # that the semantics of dynamic libraries on AmigaOS, at least up 16629 # to version 4, is to share data among multiple programs linked 16630 # with the same dynamic library. Since this doesn't match the 16631 # behavior of shared libraries on other platforms, we can't use 16632 # them. 16633 ld_shlibs_GCJ=no 16634 ;; 16635 16636 beos*) 16637 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16638 allow_undefined_flag_GCJ=unsupported 16639 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16640 # support --undefined. This deserves some investigation. FIXME 16641 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16642 else 16643 ld_shlibs_GCJ=no 16644 fi 16645 ;; 16646 16647 cygwin* | mingw* | pw32*) 16648 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 16649 # as there is no search path for DLLs. 16650 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16651 allow_undefined_flag_GCJ=unsupported 16652 always_export_symbols_GCJ=no 16653 enable_shared_with_static_runtimes_GCJ=yes 16654 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 16655 16656 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 16657 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16658 # If the export-symbols file already is a .def file (1st line 16659 # is EXPORTS), use it as is; otherwise, prepend... 16660 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16661 cp $export_symbols $output_objdir/$soname.def; 16662 else 16663 echo EXPORTS > $output_objdir/$soname.def; 16664 cat $export_symbols >> $output_objdir/$soname.def; 16665 fi~ 16666 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16667 else 16668 ld_shlibs_GCJ=no 16669 fi 16670 ;; 16671 16672 interix3*) 16673 hardcode_direct_GCJ=no 16674 hardcode_shlibpath_var_GCJ=no 16675 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16676 export_dynamic_flag_spec_GCJ='${wl}-E' 16677 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16678 # Instead, shared libraries are loaded at an image base (0x10000000 by 16679 # default) and relocated if they conflict, which is a slow very memory 16680 # consuming and fragmenting process. To avoid this, we pick a random, 16681 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16682 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16683 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' 16684 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' 16685 ;; 16686 16687 linux* | k*bsd*-gnu) 16688 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16689 tmp_addflag= 16690 case $cc_basename,$host_cpu in 16691 pgcc*) # Portland Group C compiler 16692 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' 16693 tmp_addflag=' $pic_flag' 16694 ;; 16695 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 16696 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' 16697 tmp_addflag=' $pic_flag -Mnomain' ;; 16698 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16699 tmp_addflag=' -i_dynamic' ;; 16700 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16701 tmp_addflag=' -i_dynamic -nofor_main' ;; 16702 ifc* | ifort*) # Intel Fortran compiler 16703 tmp_addflag=' -nofor_main' ;; 16704 esac 16705 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16706 16707 if test $supports_anon_versioning = yes; then 16708 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 16709 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16710 $echo "local: *; };" >> $output_objdir/$libname.ver~ 16711 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 16712 fi 16713 link_all_deplibs_GCJ=no 16714 else 16715 ld_shlibs_GCJ=no 16716 fi 16717 ;; 16718 16719 netbsd* | netbsdelf*-gnu) 16720 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16721 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16722 wlarc= 16723 else 16724 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16725 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16726 fi 16727 ;; 16728 16729 solaris*) 16730 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 16731 ld_shlibs_GCJ=no 16732 cat <<EOF 1>&2 16733 16734*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16735*** create shared libraries on Solaris systems. Therefore, libtool 16736*** is disabling shared libraries support. We urge you to upgrade GNU 16737*** binutils to release 2.9.1 or newer. Another option is to modify 16738*** your PATH or compiler configuration so that the native linker is 16739*** used, and then restart. 16740 16741EOF 16742 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16743 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16744 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16745 else 16746 ld_shlibs_GCJ=no 16747 fi 16748 ;; 16749 16750 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 16751 case `$LD -v 2>&1` in 16752 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 16753 ld_shlibs_GCJ=no 16754 cat <<_LT_EOF 1>&2 16755 16756*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 16757*** reliably create shared libraries on SCO systems. Therefore, libtool 16758*** is disabling shared libraries support. We urge you to upgrade GNU 16759*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 16760*** your PATH or compiler configuration so that the native linker is 16761*** used, and then restart. 16762 16763_LT_EOF 16764 ;; 16765 *) 16766 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16767 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 16768 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 16769 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 16770 else 16771 ld_shlibs_GCJ=no 16772 fi 16773 ;; 16774 esac 16775 ;; 16776 16777 sunos4*) 16778 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16779 wlarc= 16780 hardcode_direct_GCJ=yes 16781 hardcode_shlibpath_var_GCJ=no 16782 ;; 16783 16784 *) 16785 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16786 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16787 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16788 else 16789 ld_shlibs_GCJ=no 16790 fi 16791 ;; 16792 esac 16793 16794 if test "$ld_shlibs_GCJ" = no; then 16795 runpath_var= 16796 hardcode_libdir_flag_spec_GCJ= 16797 export_dynamic_flag_spec_GCJ= 16798 whole_archive_flag_spec_GCJ= 16799 fi 16800 else 16801 # PORTME fill in a description of your system's linker (not GNU ld) 16802 case $host_os in 16803 aix3*) 16804 allow_undefined_flag_GCJ=unsupported 16805 always_export_symbols_GCJ=yes 16806 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' 16807 # Note: this linker hardcodes the directories in LIBPATH if there 16808 # are no directories specified by -L. 16809 hardcode_minus_L_GCJ=yes 16810 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 16811 # Neither direct hardcoding nor static linking is supported with a 16812 # broken collect2. 16813 hardcode_direct_GCJ=unsupported 16814 fi 16815 ;; 16816 16817 aix4* | aix5*) 16818 if test "$host_cpu" = ia64; then 16819 # On IA64, the linker does run time linking by default, so we don't 16820 # have to do anything special. 16821 aix_use_runtimelinking=no 16822 exp_sym_flag='-Bexport' 16823 no_entry_flag="" 16824 else 16825 # If we're using GNU nm, then we don't want the "-C" option. 16826 # -C means demangle to AIX nm, but means don't demangle with GNU nm 16827 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 16828 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' 16829 else 16830 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' 16831 fi 16832 aix_use_runtimelinking=no 16833 16834 # Test if we are trying to use run time linking or normal 16835 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16836 # need to do runtime linking. 16837 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 16838 for ld_flag in $LDFLAGS; do 16839 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 16840 aix_use_runtimelinking=yes 16841 break 16842 fi 16843 done 16844 ;; 16845 esac 16846 16847 exp_sym_flag='-bexport' 16848 no_entry_flag='-bnoentry' 16849 fi 16850 16851 # When large executables or shared objects are built, AIX ld can 16852 # have problems creating the table of contents. If linking a library 16853 # or program results in "error TOC overflow" add -mminimal-toc to 16854 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16855 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16856 16857 archive_cmds_GCJ='' 16858 hardcode_direct_GCJ=yes 16859 hardcode_libdir_separator_GCJ=':' 16860 link_all_deplibs_GCJ=yes 16861 16862 if test "$GCC" = yes; then 16863 case $host_os in aix4.[012]|aix4.[012].*) 16864 # We only want to do this on AIX 4.2 and lower, the check 16865 # below for broken collect2 doesn't work under 4.3+ 16866 collect2name=`${CC} -print-prog-name=collect2` 16867 if test -f "$collect2name" && \ 16868 strings "$collect2name" | grep resolve_lib_name >/dev/null 16869 then 16870 # We have reworked collect2 16871 hardcode_direct_GCJ=yes 16872 else 16873 # We have old collect2 16874 hardcode_direct_GCJ=unsupported 16875 # It fails to find uninstalled libraries when the uninstalled 16876 # path is not listed in the libpath. Setting hardcode_minus_L 16877 # to unsupported forces relinking 16878 hardcode_minus_L_GCJ=yes 16879 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16880 hardcode_libdir_separator_GCJ= 16881 fi 16882 ;; 16883 esac 16884 shared_flag='-shared' 16885 if test "$aix_use_runtimelinking" = yes; then 16886 shared_flag="$shared_flag "'${wl}-G' 16887 fi 16888 else 16889 # not using gcc 16890 if test "$host_cpu" = ia64; then 16891 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16892 # chokes on -Wl,-G. The following line is correct: 16893 shared_flag='-G' 16894 else 16895 if test "$aix_use_runtimelinking" = yes; then 16896 shared_flag='${wl}-G' 16897 else 16898 shared_flag='${wl}-bM:SRE' 16899 fi 16900 fi 16901 fi 16902 16903 # It seems that -bexpall does not export symbols beginning with 16904 # underscore (_), so it is better to generate a list of symbols to export. 16905 always_export_symbols_GCJ=yes 16906 if test "$aix_use_runtimelinking" = yes; then 16907 # Warning - without using the other runtime loading flags (-brtl), 16908 # -berok will link without error, but may produce a broken library. 16909 allow_undefined_flag_GCJ='-berok' 16910 # Determine the default libpath from the value encoded in an empty executable. 16911 cat >conftest.$ac_ext <<_ACEOF 16912/* confdefs.h. */ 16913_ACEOF 16914cat confdefs.h >>conftest.$ac_ext 16915cat >>conftest.$ac_ext <<_ACEOF 16916/* end confdefs.h. */ 16917 16918int 16919main () 16920{ 16921 16922 ; 16923 return 0; 16924} 16925_ACEOF 16926rm -f conftest.$ac_objext conftest$ac_exeext 16927if { (ac_try="$ac_link" 16928case "(($ac_try" in 16929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16930 *) ac_try_echo=$ac_try;; 16931esac 16932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16933 (eval "$ac_link") 2>conftest.er1 16934 ac_status=$? 16935 grep -v '^ *+' conftest.er1 >conftest.err 16936 rm -f conftest.er1 16937 cat conftest.err >&5 16938 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16939 (exit $ac_status); } && { 16940 test -z "$ac_c_werror_flag" || 16941 test ! -s conftest.err 16942 } && test -s conftest$ac_exeext && 16943 $as_test_x conftest$ac_exeext; then 16944 16945aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16946}'` 16947# Check for a 64-bit object if we didn't find anything. 16948if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16949}'`; fi 16950else 16951 echo "$as_me: failed program was:" >&5 16952sed 's/^/| /' conftest.$ac_ext >&5 16953 16954 16955fi 16956 16957rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16958 conftest$ac_exeext conftest.$ac_ext 16959if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16960 16961 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 16962 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" 16963 else 16964 if test "$host_cpu" = ia64; then 16965 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 16966 allow_undefined_flag_GCJ="-z nodefs" 16967 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" 16968 else 16969 # Determine the default libpath from the value encoded in an empty executable. 16970 cat >conftest.$ac_ext <<_ACEOF 16971/* confdefs.h. */ 16972_ACEOF 16973cat confdefs.h >>conftest.$ac_ext 16974cat >>conftest.$ac_ext <<_ACEOF 16975/* end confdefs.h. */ 16976 16977int 16978main () 16979{ 16980 16981 ; 16982 return 0; 16983} 16984_ACEOF 16985rm -f conftest.$ac_objext conftest$ac_exeext 16986if { (ac_try="$ac_link" 16987case "(($ac_try" in 16988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16989 *) ac_try_echo=$ac_try;; 16990esac 16991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16992 (eval "$ac_link") 2>conftest.er1 16993 ac_status=$? 16994 grep -v '^ *+' conftest.er1 >conftest.err 16995 rm -f conftest.er1 16996 cat conftest.err >&5 16997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16998 (exit $ac_status); } && { 16999 test -z "$ac_c_werror_flag" || 17000 test ! -s conftest.err 17001 } && test -s conftest$ac_exeext && 17002 $as_test_x conftest$ac_exeext; then 17003 17004aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17005}'` 17006# Check for a 64-bit object if we didn't find anything. 17007if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17008}'`; fi 17009else 17010 echo "$as_me: failed program was:" >&5 17011sed 's/^/| /' conftest.$ac_ext >&5 17012 17013 17014fi 17015 17016rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17017 conftest$ac_exeext conftest.$ac_ext 17018if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17019 17020 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17021 # Warning - without using the other run time loading flags, 17022 # -berok will link without error, but may produce a broken library. 17023 no_undefined_flag_GCJ=' ${wl}-bernotok' 17024 allow_undefined_flag_GCJ=' ${wl}-berok' 17025 # Exported symbols can be pulled into shared objects from archives 17026 whole_archive_flag_spec_GCJ='$convenience' 17027 archive_cmds_need_lc_GCJ=yes 17028 # This is similar to how AIX traditionally builds its shared libraries. 17029 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' 17030 fi 17031 fi 17032 ;; 17033 17034 amigaos*) 17035 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)' 17036 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17037 hardcode_minus_L_GCJ=yes 17038 # see comment about different semantics on the GNU ld section 17039 ld_shlibs_GCJ=no 17040 ;; 17041 17042 bsdi[45]*) 17043 export_dynamic_flag_spec_GCJ=-rdynamic 17044 ;; 17045 17046 cygwin* | mingw* | pw32*) 17047 # When not using gcc, we currently assume that we are using 17048 # Microsoft Visual C++. 17049 # hardcode_libdir_flag_spec is actually meaningless, as there is 17050 # no search path for DLLs. 17051 hardcode_libdir_flag_spec_GCJ=' ' 17052 allow_undefined_flag_GCJ=unsupported 17053 # Tell ltmain to make .lib files, not .a files. 17054 libext=lib 17055 # Tell ltmain to make .dll files, not .so files. 17056 shrext_cmds=".dll" 17057 # FIXME: Setting linknames here is a bad hack. 17058 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17059 # The linker will automatically build a .lib file if we build a DLL. 17060 old_archive_From_new_cmds_GCJ='true' 17061 # FIXME: Should let the user specify the lib program. 17062 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 17063 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17064 enable_shared_with_static_runtimes_GCJ=yes 17065 ;; 17066 17067 darwin* | rhapsody*) 17068 case $host_os in 17069 rhapsody* | darwin1.[012]) 17070 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17071 ;; 17072 *) # Darwin 1.3 on 17073 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17074 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17075 else 17076 case ${MACOSX_DEPLOYMENT_TARGET} in 17077 10.[012]) 17078 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17079 ;; 17080 10.*) 17081 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17082 ;; 17083 esac 17084 fi 17085 ;; 17086 esac 17087 archive_cmds_need_lc_GCJ=no 17088 hardcode_direct_GCJ=no 17089 hardcode_automatic_GCJ=yes 17090 hardcode_shlibpath_var_GCJ=unsupported 17091 whole_archive_flag_spec_GCJ='' 17092 link_all_deplibs_GCJ=yes 17093 if test "$GCC" = yes ; then 17094 output_verbose_link_cmd='echo' 17095 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 17096 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17097 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17098 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}' 17099 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}' 17100 else 17101 case $cc_basename in 17102 xlc*) 17103 output_verbose_link_cmd='echo' 17104 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 17105 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17106 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17107 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17108 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}' 17109 ;; 17110 *) 17111 ld_shlibs_GCJ=no 17112 ;; 17113 esac 17114 fi 17115 ;; 17116 17117 dgux*) 17118 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17119 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17120 hardcode_shlibpath_var_GCJ=no 17121 ;; 17122 17123 freebsd1*) 17124 ld_shlibs_GCJ=no 17125 ;; 17126 17127 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17128 # support. Future versions do this automatically, but an explicit c++rt0.o 17129 # does not break anything, and helps significantly (at the cost of a little 17130 # extra space). 17131 freebsd2.2*) 17132 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17133 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17134 hardcode_direct_GCJ=yes 17135 hardcode_shlibpath_var_GCJ=no 17136 ;; 17137 17138 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17139 freebsd2*) 17140 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17141 hardcode_direct_GCJ=yes 17142 hardcode_minus_L_GCJ=yes 17143 hardcode_shlibpath_var_GCJ=no 17144 ;; 17145 17146 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17147 freebsd* | dragonfly*) 17148 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17149 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17150 hardcode_direct_GCJ=yes 17151 hardcode_shlibpath_var_GCJ=no 17152 ;; 17153 17154 hpux9*) 17155 if test "$GCC" = yes; then 17156 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' 17157 else 17158 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' 17159 fi 17160 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17161 hardcode_libdir_separator_GCJ=: 17162 hardcode_direct_GCJ=yes 17163 17164 # hardcode_minus_L: Not really in the search PATH, 17165 # but as the default location of the library. 17166 hardcode_minus_L_GCJ=yes 17167 export_dynamic_flag_spec_GCJ='${wl}-E' 17168 ;; 17169 17170 hpux10*) 17171 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17172 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17173 else 17174 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17175 fi 17176 if test "$with_gnu_ld" = no; then 17177 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17178 hardcode_libdir_separator_GCJ=: 17179 17180 hardcode_direct_GCJ=yes 17181 export_dynamic_flag_spec_GCJ='${wl}-E' 17182 17183 # hardcode_minus_L: Not really in the search PATH, 17184 # but as the default location of the library. 17185 hardcode_minus_L_GCJ=yes 17186 fi 17187 ;; 17188 17189 hpux11*) 17190 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17191 case $host_cpu in 17192 hppa*64*) 17193 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17194 ;; 17195 ia64*) 17196 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17197 ;; 17198 *) 17199 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17200 ;; 17201 esac 17202 else 17203 case $host_cpu in 17204 hppa*64*) 17205 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17206 ;; 17207 ia64*) 17208 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17209 ;; 17210 *) 17211 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17212 ;; 17213 esac 17214 fi 17215 if test "$with_gnu_ld" = no; then 17216 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17217 hardcode_libdir_separator_GCJ=: 17218 17219 case $host_cpu in 17220 hppa*64*|ia64*) 17221 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 17222 hardcode_direct_GCJ=no 17223 hardcode_shlibpath_var_GCJ=no 17224 ;; 17225 *) 17226 hardcode_direct_GCJ=yes 17227 export_dynamic_flag_spec_GCJ='${wl}-E' 17228 17229 # hardcode_minus_L: Not really in the search PATH, 17230 # but as the default location of the library. 17231 hardcode_minus_L_GCJ=yes 17232 ;; 17233 esac 17234 fi 17235 ;; 17236 17237 irix5* | irix6* | nonstopux*) 17238 if test "$GCC" = yes; then 17239 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' 17240 else 17241 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' 17242 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 17243 fi 17244 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17245 hardcode_libdir_separator_GCJ=: 17246 link_all_deplibs_GCJ=yes 17247 ;; 17248 17249 netbsd* | netbsdelf*-gnu) 17250 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17251 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17252 else 17253 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17254 fi 17255 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17256 hardcode_direct_GCJ=yes 17257 hardcode_shlibpath_var_GCJ=no 17258 ;; 17259 17260 newsos6) 17261 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17262 hardcode_direct_GCJ=yes 17263 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17264 hardcode_libdir_separator_GCJ=: 17265 hardcode_shlibpath_var_GCJ=no 17266 ;; 17267 17268 openbsd*) 17269 hardcode_direct_GCJ=yes 17270 hardcode_shlibpath_var_GCJ=no 17271 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17272 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17273 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 17274 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17275 export_dynamic_flag_spec_GCJ='${wl}-E' 17276 else 17277 case $host_os in 17278 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 17279 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17280 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17281 ;; 17282 *) 17283 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17284 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17285 ;; 17286 esac 17287 fi 17288 ;; 17289 17290 os2*) 17291 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17292 hardcode_minus_L_GCJ=yes 17293 allow_undefined_flag_GCJ=unsupported 17294 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' 17295 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 17296 ;; 17297 17298 osf3*) 17299 if test "$GCC" = yes; then 17300 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17301 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' 17302 else 17303 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17304 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' 17305 fi 17306 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17307 hardcode_libdir_separator_GCJ=: 17308 ;; 17309 17310 osf4* | osf5*) # as osf3* with the addition of -msym flag 17311 if test "$GCC" = yes; then 17312 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17313 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' 17314 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17315 else 17316 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17317 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' 17318 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~ 17319 $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' 17320 17321 # Both c and cxx compiler support -rpath directly 17322 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 17323 fi 17324 hardcode_libdir_separator_GCJ=: 17325 ;; 17326 17327 solaris*) 17328 no_undefined_flag_GCJ=' -z text' 17329 if test "$GCC" = yes; then 17330 wlarc='${wl}' 17331 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17332 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17333 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 17334 else 17335 wlarc='' 17336 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17337 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17338 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17339 fi 17340 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17341 hardcode_shlibpath_var_GCJ=no 17342 case $host_os in 17343 solaris2.[0-5] | solaris2.[0-5].*) ;; 17344 *) 17345 # The compiler driver will combine linker options so we 17346 # cannot just pass the convience library names through 17347 # without $wl, iff we do not link with $LD. 17348 # Luckily, gcc supports the same syntax we need for Sun Studio. 17349 # Supported since Solaris 2.6 (maybe 2.5.1?) 17350 case $wlarc in 17351 '') 17352 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 17353 *) 17354 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 17355 esac ;; 17356 esac 17357 link_all_deplibs_GCJ=yes 17358 ;; 17359 17360 sunos4*) 17361 if test "x$host_vendor" = xsequent; then 17362 # Use $CC to link under sequent, because it throws in some extra .o 17363 # files that make .init and .fini sections work. 17364 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17365 else 17366 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17367 fi 17368 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17369 hardcode_direct_GCJ=yes 17370 hardcode_minus_L_GCJ=yes 17371 hardcode_shlibpath_var_GCJ=no 17372 ;; 17373 17374 sysv4) 17375 case $host_vendor in 17376 sni) 17377 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17378 hardcode_direct_GCJ=yes # is this really true??? 17379 ;; 17380 siemens) 17381 ## LD is ld it makes a PLAMLIB 17382 ## CC just makes a GrossModule. 17383 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17384 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 17385 hardcode_direct_GCJ=no 17386 ;; 17387 motorola) 17388 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17389 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 17390 ;; 17391 esac 17392 runpath_var='LD_RUN_PATH' 17393 hardcode_shlibpath_var_GCJ=no 17394 ;; 17395 17396 sysv4.3*) 17397 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17398 hardcode_shlibpath_var_GCJ=no 17399 export_dynamic_flag_spec_GCJ='-Bexport' 17400 ;; 17401 17402 sysv4*MP*) 17403 if test -d /usr/nec; then 17404 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17405 hardcode_shlibpath_var_GCJ=no 17406 runpath_var=LD_RUN_PATH 17407 hardcode_runpath_var=yes 17408 ld_shlibs_GCJ=yes 17409 fi 17410 ;; 17411 17412 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 17413 no_undefined_flag_GCJ='${wl}-z,text' 17414 archive_cmds_need_lc_GCJ=no 17415 hardcode_shlibpath_var_GCJ=no 17416 runpath_var='LD_RUN_PATH' 17417 17418 if test "$GCC" = yes; then 17419 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17420 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17421 else 17422 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17423 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17424 fi 17425 ;; 17426 17427 sysv5* | sco3.2v5* | sco5v6*) 17428 # Note: We can NOT use -z defs as we might desire, because we do not 17429 # link with -lc, and that would cause any symbols used from libc to 17430 # always be unresolved, which means just about no library would 17431 # ever link correctly. If we're not using GNU ld we use -z text 17432 # though, which does catch some bad symbols but isn't as heavy-handed 17433 # as -z defs. 17434 no_undefined_flag_GCJ='${wl}-z,text' 17435 allow_undefined_flag_GCJ='${wl}-z,nodefs' 17436 archive_cmds_need_lc_GCJ=no 17437 hardcode_shlibpath_var_GCJ=no 17438 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 17439 hardcode_libdir_separator_GCJ=':' 17440 link_all_deplibs_GCJ=yes 17441 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 17442 runpath_var='LD_RUN_PATH' 17443 17444 if test "$GCC" = yes; then 17445 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17446 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17447 else 17448 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17449 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17450 fi 17451 ;; 17452 17453 uts4*) 17454 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17455 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17456 hardcode_shlibpath_var_GCJ=no 17457 ;; 17458 17459 *) 17460 ld_shlibs_GCJ=no 17461 ;; 17462 esac 17463 fi 17464 17465{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 17466echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } 17467test "$ld_shlibs_GCJ" = no && can_build_shared=no 17468 17469# 17470# Do we need to explicitly link libc? 17471# 17472case "x$archive_cmds_need_lc_GCJ" in 17473x|xyes) 17474 # Assume -lc should be added 17475 archive_cmds_need_lc_GCJ=yes 17476 17477 if test "$enable_shared" = yes && test "$GCC" = yes; then 17478 case $archive_cmds_GCJ in 17479 *'~'*) 17480 # FIXME: we may have to deal with multi-command sequences. 17481 ;; 17482 '$CC '*) 17483 # Test whether the compiler implicitly links with -lc since on some 17484 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17485 # to ld, don't add -lc before -lgcc. 17486 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 17487echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 17488 $rm conftest* 17489 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17490 17491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17492 (eval $ac_compile) 2>&5 17493 ac_status=$? 17494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17495 (exit $ac_status); } 2>conftest.err; then 17496 soname=conftest 17497 lib=conftest 17498 libobjs=conftest.$ac_objext 17499 deplibs= 17500 wl=$lt_prog_compiler_wl_GCJ 17501 pic_flag=$lt_prog_compiler_pic_GCJ 17502 compiler_flags=-v 17503 linker_flags=-v 17504 verstring= 17505 output_objdir=. 17506 libname=conftest 17507 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 17508 allow_undefined_flag_GCJ= 17509 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 17510 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 17511 ac_status=$? 17512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17513 (exit $ac_status); } 17514 then 17515 archive_cmds_need_lc_GCJ=no 17516 else 17517 archive_cmds_need_lc_GCJ=yes 17518 fi 17519 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 17520 else 17521 cat conftest.err 1>&5 17522 fi 17523 $rm conftest* 17524 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 17525echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } 17526 ;; 17527 esac 17528 fi 17529 ;; 17530esac 17531 17532{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 17533echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 17534library_names_spec= 17535libname_spec='lib$name' 17536soname_spec= 17537shrext_cmds=".so" 17538postinstall_cmds= 17539postuninstall_cmds= 17540finish_cmds= 17541finish_eval= 17542shlibpath_var= 17543shlibpath_overrides_runpath=unknown 17544version_type=none 17545dynamic_linker="$host_os ld.so" 17546sys_lib_dlsearch_path_spec="/lib /usr/lib" 17547if test "$GCC" = yes; then 17548 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17549 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 17550 # if the path contains ";" then we assume it to be the separator 17551 # otherwise default to the standard path separator (i.e. ":") - it is 17552 # assumed that no part of a normal pathname contains ";" but that should 17553 # okay in the real world where ";" in dirpaths is itself problematic. 17554 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17555 else 17556 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17557 fi 17558else 17559 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17560fi 17561need_lib_prefix=unknown 17562hardcode_into_libs=no 17563 17564# when you set need_version to no, make sure it does not cause -set_version 17565# flags to be left without arguments 17566need_version=unknown 17567 17568case $host_os in 17569aix3*) 17570 version_type=linux 17571 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 17572 shlibpath_var=LIBPATH 17573 17574 # AIX 3 has no versioning support, so we append a major version to the name. 17575 soname_spec='${libname}${release}${shared_ext}$major' 17576 ;; 17577 17578aix4* | aix5*) 17579 version_type=linux 17580 need_lib_prefix=no 17581 need_version=no 17582 hardcode_into_libs=yes 17583 if test "$host_cpu" = ia64; then 17584 # AIX 5 supports IA64 17585 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 17586 shlibpath_var=LD_LIBRARY_PATH 17587 else 17588 # With GCC up to 2.95.x, collect2 would create an import file 17589 # for dependence libraries. The import file would start with 17590 # the line `#! .'. This would cause the generated library to 17591 # depend on `.', always an invalid library. This was fixed in 17592 # development snapshots of GCC prior to 3.0. 17593 case $host_os in 17594 aix4 | aix4.[01] | aix4.[01].*) 17595 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17596 echo ' yes ' 17597 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 17598 : 17599 else 17600 can_build_shared=no 17601 fi 17602 ;; 17603 esac 17604 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 17605 # soname into executable. Probably we can add versioning support to 17606 # collect2, so additional links can be useful in future. 17607 if test "$aix_use_runtimelinking" = yes; then 17608 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17609 # instead of lib<name>.a to let people know that these are not 17610 # typical AIX shared libraries. 17611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17612 else 17613 # We preserve .a as extension for shared libraries through AIX4.2 17614 # and later when we are not doing run time linking. 17615 library_names_spec='${libname}${release}.a $libname.a' 17616 soname_spec='${libname}${release}${shared_ext}$major' 17617 fi 17618 shlibpath_var=LIBPATH 17619 fi 17620 ;; 17621 17622amigaos*) 17623 library_names_spec='$libname.ixlibrary $libname.a' 17624 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17625 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' 17626 ;; 17627 17628beos*) 17629 library_names_spec='${libname}${shared_ext}' 17630 dynamic_linker="$host_os ld.so" 17631 shlibpath_var=LIBRARY_PATH 17632 ;; 17633 17634bsdi[45]*) 17635 version_type=linux 17636 need_version=no 17637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17638 soname_spec='${libname}${release}${shared_ext}$major' 17639 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17640 shlibpath_var=LD_LIBRARY_PATH 17641 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17642 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17643 # the default ld.so.conf also contains /usr/contrib/lib and 17644 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17645 # libtool to hard-code these into programs 17646 ;; 17647 17648cygwin* | mingw* | pw32*) 17649 version_type=windows 17650 shrext_cmds=".dll" 17651 need_version=no 17652 need_lib_prefix=no 17653 17654 case $GCC,$host_os in 17655 yes,cygwin* | yes,mingw* | yes,pw32*) 17656 library_names_spec='$libname.dll.a' 17657 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17658 postinstall_cmds='base_file=`basename \${file}`~ 17659 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 17660 dldir=$destdir/`dirname \$dlpath`~ 17661 test -d \$dldir || mkdir -p \$dldir~ 17662 $install_prog $dir/$dlname \$dldir/$dlname~ 17663 chmod a+x \$dldir/$dlname' 17664 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17665 dlpath=$dir/\$dldll~ 17666 $rm \$dlpath' 17667 shlibpath_overrides_runpath=yes 17668 17669 case $host_os in 17670 cygwin*) 17671 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17672 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17673 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 17674 ;; 17675 mingw*) 17676 # MinGW DLLs use traditional 'lib' prefix 17677 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17678 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17679 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 17680 # It is most probably a Windows format PATH printed by 17681 # mingw gcc, but we are running on Cygwin. Gcc prints its search 17682 # path with ; separators, and with drive letters. We can handle the 17683 # drive letters (cygwin fileutils understands them), so leave them, 17684 # especially as we might pass files found there to a mingw objdump, 17685 # which wouldn't understand a cygwinified path. Ahh. 17686 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17687 else 17688 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17689 fi 17690 ;; 17691 pw32*) 17692 # pw32 DLLs use 'pw' prefix rather than 'lib' 17693 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17694 ;; 17695 esac 17696 ;; 17697 17698 *) 17699 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 17700 ;; 17701 esac 17702 dynamic_linker='Win32 ld.exe' 17703 # FIXME: first we should search . and the directory the executable is in 17704 shlibpath_var=PATH 17705 ;; 17706 17707darwin* | rhapsody*) 17708 dynamic_linker="$host_os dyld" 17709 version_type=darwin 17710 need_lib_prefix=no 17711 need_version=no 17712 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 17713 soname_spec='${libname}${release}${major}$shared_ext' 17714 shlibpath_overrides_runpath=yes 17715 shlibpath_var=DYLD_LIBRARY_PATH 17716 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17717 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 17718 if test "$GCC" = yes; then 17719 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 17720 else 17721 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 17722 fi 17723 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17724 ;; 17725 17726dgux*) 17727 version_type=linux 17728 need_lib_prefix=no 17729 need_version=no 17730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 17731 soname_spec='${libname}${release}${shared_ext}$major' 17732 shlibpath_var=LD_LIBRARY_PATH 17733 ;; 17734 17735freebsd1*) 17736 dynamic_linker=no 17737 ;; 17738 17739freebsd* | dragonfly*) 17740 # DragonFly does not have aout. When/if they implement a new 17741 # versioning mechanism, adjust this. 17742 if test -x /usr/bin/objformat; then 17743 objformat=`/usr/bin/objformat` 17744 else 17745 case $host_os in 17746 freebsd[123]*) objformat=aout ;; 17747 *) objformat=elf ;; 17748 esac 17749 fi 17750 version_type=freebsd-$objformat 17751 case $version_type in 17752 freebsd-elf*) 17753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17754 need_version=no 17755 need_lib_prefix=no 17756 ;; 17757 freebsd-*) 17758 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 17759 need_version=yes 17760 ;; 17761 esac 17762 shlibpath_var=LD_LIBRARY_PATH 17763 case $host_os in 17764 freebsd2*) 17765 shlibpath_overrides_runpath=yes 17766 ;; 17767 freebsd3.[01]* | freebsdelf3.[01]*) 17768 shlibpath_overrides_runpath=yes 17769 hardcode_into_libs=yes 17770 ;; 17771 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17772 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17773 shlibpath_overrides_runpath=no 17774 hardcode_into_libs=yes 17775 ;; 17776 freebsd*) # from 4.6 on 17777 shlibpath_overrides_runpath=yes 17778 hardcode_into_libs=yes 17779 ;; 17780 esac 17781 ;; 17782 17783gnu*) 17784 version_type=linux 17785 need_lib_prefix=no 17786 need_version=no 17787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17788 soname_spec='${libname}${release}${shared_ext}$major' 17789 shlibpath_var=LD_LIBRARY_PATH 17790 hardcode_into_libs=yes 17791 ;; 17792 17793hpux9* | hpux10* | hpux11*) 17794 # Give a soname corresponding to the major version so that dld.sl refuses to 17795 # link against other versions. 17796 version_type=sunos 17797 need_lib_prefix=no 17798 need_version=no 17799 case $host_cpu in 17800 ia64*) 17801 shrext_cmds='.so' 17802 hardcode_into_libs=yes 17803 dynamic_linker="$host_os dld.so" 17804 shlibpath_var=LD_LIBRARY_PATH 17805 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17807 soname_spec='${libname}${release}${shared_ext}$major' 17808 if test "X$HPUX_IA64_MODE" = X32; then 17809 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17810 else 17811 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17812 fi 17813 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17814 ;; 17815 hppa*64*) 17816 shrext_cmds='.sl' 17817 hardcode_into_libs=yes 17818 dynamic_linker="$host_os dld.sl" 17819 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17820 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17822 soname_spec='${libname}${release}${shared_ext}$major' 17823 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17824 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17825 ;; 17826 *) 17827 shrext_cmds='.sl' 17828 dynamic_linker="$host_os dld.sl" 17829 shlibpath_var=SHLIB_PATH 17830 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17832 soname_spec='${libname}${release}${shared_ext}$major' 17833 ;; 17834 esac 17835 # HP-UX runs *really* slowly unless shared libraries are mode 555. 17836 postinstall_cmds='chmod 555 $lib' 17837 ;; 17838 17839interix3*) 17840 version_type=linux 17841 need_lib_prefix=no 17842 need_version=no 17843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17844 soname_spec='${libname}${release}${shared_ext}$major' 17845 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17846 shlibpath_var=LD_LIBRARY_PATH 17847 shlibpath_overrides_runpath=no 17848 hardcode_into_libs=yes 17849 ;; 17850 17851irix5* | irix6* | nonstopux*) 17852 case $host_os in 17853 nonstopux*) version_type=nonstopux ;; 17854 *) 17855 if test "$lt_cv_prog_gnu_ld" = yes; then 17856 version_type=linux 17857 else 17858 version_type=irix 17859 fi ;; 17860 esac 17861 need_lib_prefix=no 17862 need_version=no 17863 soname_spec='${libname}${release}${shared_ext}$major' 17864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 17865 case $host_os in 17866 irix5* | nonstopux*) 17867 libsuff= shlibsuff= 17868 ;; 17869 *) 17870 case $LD in # libtool.m4 will add one of these switches to LD 17871 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17872 libsuff= shlibsuff= libmagic=32-bit;; 17873 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17874 libsuff=32 shlibsuff=N32 libmagic=N32;; 17875 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17876 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17877 *) libsuff= shlibsuff= libmagic=never-match;; 17878 esac 17879 ;; 17880 esac 17881 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17882 shlibpath_overrides_runpath=no 17883 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 17884 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 17885 hardcode_into_libs=yes 17886 ;; 17887 17888# No shared lib support for Linux oldld, aout, or coff. 17889linux*oldld* | linux*aout* | linux*coff*) 17890 dynamic_linker=no 17891 ;; 17892 17893# This must be Linux ELF. 17894linux* | k*bsd*-gnu) 17895 version_type=linux 17896 need_lib_prefix=no 17897 need_version=no 17898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17899 soname_spec='${libname}${release}${shared_ext}$major' 17900 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17901 shlibpath_var=LD_LIBRARY_PATH 17902 shlibpath_overrides_runpath=no 17903 # This implies no fast_install, which is unacceptable. 17904 # Some rework will be needed to allow for fast_install 17905 # before this can be enabled. 17906 hardcode_into_libs=yes 17907 17908 # Append ld.so.conf contents to the search path 17909 if test -f /etc/ld.so.conf; then 17910 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 17911 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 17912 fi 17913 17914 # We used to test for /lib/ld.so.1 and disable shared libraries on 17915 # powerpc, because MkLinux only supported shared libraries with the 17916 # GNU dynamic linker. Since this was broken with cross compilers, 17917 # most powerpc-linux boxes support dynamic linking these days and 17918 # people can always --disable-shared, the test was removed, and we 17919 # assume the GNU/Linux dynamic linker is in use. 17920 dynamic_linker='GNU/Linux ld.so' 17921 ;; 17922 17923netbsdelf*-gnu) 17924 version_type=linux 17925 need_lib_prefix=no 17926 need_version=no 17927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17928 soname_spec='${libname}${release}${shared_ext}$major' 17929 shlibpath_var=LD_LIBRARY_PATH 17930 shlibpath_overrides_runpath=no 17931 hardcode_into_libs=yes 17932 dynamic_linker='NetBSD ld.elf_so' 17933 ;; 17934 17935netbsd*) 17936 version_type=sunos 17937 need_lib_prefix=no 17938 need_version=no 17939 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17941 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17942 dynamic_linker='NetBSD (a.out) ld.so' 17943 else 17944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17945 soname_spec='${libname}${release}${shared_ext}$major' 17946 dynamic_linker='NetBSD ld.elf_so' 17947 fi 17948 shlibpath_var=LD_LIBRARY_PATH 17949 shlibpath_overrides_runpath=yes 17950 hardcode_into_libs=yes 17951 ;; 17952 17953newsos6) 17954 version_type=linux 17955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17956 shlibpath_var=LD_LIBRARY_PATH 17957 shlibpath_overrides_runpath=yes 17958 ;; 17959 17960nto-qnx*) 17961 version_type=linux 17962 need_lib_prefix=no 17963 need_version=no 17964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17965 soname_spec='${libname}${release}${shared_ext}$major' 17966 shlibpath_var=LD_LIBRARY_PATH 17967 shlibpath_overrides_runpath=yes 17968 ;; 17969 17970openbsd*) 17971 version_type=sunos 17972 sys_lib_dlsearch_path_spec="/usr/lib" 17973 need_lib_prefix=no 17974 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 17975 case $host_os in 17976 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 17977 *) need_version=no ;; 17978 esac 17979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17980 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17981 shlibpath_var=LD_LIBRARY_PATH 17982 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17983 case $host_os in 17984 openbsd2.[89] | openbsd2.[89].*) 17985 shlibpath_overrides_runpath=no 17986 ;; 17987 *) 17988 shlibpath_overrides_runpath=yes 17989 ;; 17990 esac 17991 else 17992 shlibpath_overrides_runpath=yes 17993 fi 17994 ;; 17995 17996os2*) 17997 libname_spec='$name' 17998 shrext_cmds=".dll" 17999 need_lib_prefix=no 18000 library_names_spec='$libname${shared_ext} $libname.a' 18001 dynamic_linker='OS/2 ld.exe' 18002 shlibpath_var=LIBPATH 18003 ;; 18004 18005osf3* | osf4* | osf5*) 18006 version_type=osf 18007 need_lib_prefix=no 18008 need_version=no 18009 soname_spec='${libname}${release}${shared_ext}$major' 18010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18011 shlibpath_var=LD_LIBRARY_PATH 18012 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18013 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18014 ;; 18015 18016solaris*) 18017 version_type=linux 18018 need_lib_prefix=no 18019 need_version=no 18020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18021 soname_spec='${libname}${release}${shared_ext}$major' 18022 shlibpath_var=LD_LIBRARY_PATH 18023 shlibpath_overrides_runpath=yes 18024 hardcode_into_libs=yes 18025 # ldd complains unless libraries are executable 18026 postinstall_cmds='chmod +x $lib' 18027 ;; 18028 18029sunos4*) 18030 version_type=sunos 18031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18032 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18033 shlibpath_var=LD_LIBRARY_PATH 18034 shlibpath_overrides_runpath=yes 18035 if test "$with_gnu_ld" = yes; then 18036 need_lib_prefix=no 18037 fi 18038 need_version=yes 18039 ;; 18040 18041sysv4 | sysv4.3*) 18042 version_type=linux 18043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18044 soname_spec='${libname}${release}${shared_ext}$major' 18045 shlibpath_var=LD_LIBRARY_PATH 18046 case $host_vendor in 18047 sni) 18048 shlibpath_overrides_runpath=no 18049 need_lib_prefix=no 18050 export_dynamic_flag_spec='${wl}-Blargedynsym' 18051 runpath_var=LD_RUN_PATH 18052 ;; 18053 siemens) 18054 need_lib_prefix=no 18055 ;; 18056 motorola) 18057 need_lib_prefix=no 18058 need_version=no 18059 shlibpath_overrides_runpath=no 18060 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18061 ;; 18062 esac 18063 ;; 18064 18065sysv4*MP*) 18066 if test -d /usr/nec ;then 18067 version_type=linux 18068 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18069 soname_spec='$libname${shared_ext}.$major' 18070 shlibpath_var=LD_LIBRARY_PATH 18071 fi 18072 ;; 18073 18074sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18075 version_type=freebsd-elf 18076 need_lib_prefix=no 18077 need_version=no 18078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18079 soname_spec='${libname}${release}${shared_ext}$major' 18080 shlibpath_var=LD_LIBRARY_PATH 18081 hardcode_into_libs=yes 18082 if test "$with_gnu_ld" = yes; then 18083 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18084 shlibpath_overrides_runpath=no 18085 else 18086 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18087 shlibpath_overrides_runpath=yes 18088 case $host_os in 18089 sco3.2v5*) 18090 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18091 ;; 18092 esac 18093 fi 18094 sys_lib_dlsearch_path_spec='/usr/lib' 18095 ;; 18096 18097uts4*) 18098 version_type=linux 18099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18100 soname_spec='${libname}${release}${shared_ext}$major' 18101 shlibpath_var=LD_LIBRARY_PATH 18102 ;; 18103 18104*) 18105 dynamic_linker=no 18106 ;; 18107esac 18108{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18109echo "${ECHO_T}$dynamic_linker" >&6; } 18110test "$dynamic_linker" = no && can_build_shared=no 18111 18112variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18113if test "$GCC" = yes; then 18114 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18115fi 18116 18117{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18118echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 18119hardcode_action_GCJ= 18120if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18121 test -n "$runpath_var_GCJ" || \ 18122 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 18123 18124 # We can hardcode non-existant directories. 18125 if test "$hardcode_direct_GCJ" != no && 18126 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18127 # have to relink, otherwise we might link with an installed library 18128 # when we should be linking with a yet-to-be-installed one 18129 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 18130 test "$hardcode_minus_L_GCJ" != no; then 18131 # Linking always hardcodes the temporary library directory. 18132 hardcode_action_GCJ=relink 18133 else 18134 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18135 hardcode_action_GCJ=immediate 18136 fi 18137else 18138 # We cannot hardcode anything, or else we can only hardcode existing 18139 # directories. 18140 hardcode_action_GCJ=unsupported 18141fi 18142{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 18143echo "${ECHO_T}$hardcode_action_GCJ" >&6; } 18144 18145if test "$hardcode_action_GCJ" = relink; then 18146 # Fast installation is not supported 18147 enable_fast_install=no 18148elif test "$shlibpath_overrides_runpath" = yes || 18149 test "$enable_shared" = no; then 18150 # Fast installation is not necessary 18151 enable_fast_install=needless 18152fi 18153 18154 18155# The else clause should only fire when bootstrapping the 18156# libtool distribution, otherwise you forgot to ship ltmain.sh 18157# with your package, and you will get complaints that there are 18158# no rules to generate ltmain.sh. 18159if test -f "$ltmain"; then 18160 # See if we are running on zsh, and set the options which allow our commands through 18161 # without removal of \ escapes. 18162 if test -n "${ZSH_VERSION+set}" ; then 18163 setopt NO_GLOB_SUBST 18164 fi 18165 # Now quote all the things that may contain metacharacters while being 18166 # careful not to overquote the AC_SUBSTed values. We take copies of the 18167 # variables and quote the copies for generation of the libtool script. 18168 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18169 SED SHELL STRIP \ 18170 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18171 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18172 deplibs_check_method reload_flag reload_cmds need_locks \ 18173 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18174 lt_cv_sys_global_symbol_to_c_name_address \ 18175 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18176 old_postinstall_cmds old_postuninstall_cmds \ 18177 compiler_GCJ \ 18178 CC_GCJ \ 18179 LD_GCJ \ 18180 lt_prog_compiler_wl_GCJ \ 18181 lt_prog_compiler_pic_GCJ \ 18182 lt_prog_compiler_static_GCJ \ 18183 lt_prog_compiler_no_builtin_flag_GCJ \ 18184 export_dynamic_flag_spec_GCJ \ 18185 thread_safe_flag_spec_GCJ \ 18186 whole_archive_flag_spec_GCJ \ 18187 enable_shared_with_static_runtimes_GCJ \ 18188 old_archive_cmds_GCJ \ 18189 old_archive_from_new_cmds_GCJ \ 18190 predep_objects_GCJ \ 18191 postdep_objects_GCJ \ 18192 predeps_GCJ \ 18193 postdeps_GCJ \ 18194 compiler_lib_search_path_GCJ \ 18195 archive_cmds_GCJ \ 18196 archive_expsym_cmds_GCJ \ 18197 postinstall_cmds_GCJ \ 18198 postuninstall_cmds_GCJ \ 18199 old_archive_from_expsyms_cmds_GCJ \ 18200 allow_undefined_flag_GCJ \ 18201 no_undefined_flag_GCJ \ 18202 export_symbols_cmds_GCJ \ 18203 hardcode_libdir_flag_spec_GCJ \ 18204 hardcode_libdir_flag_spec_ld_GCJ \ 18205 hardcode_libdir_separator_GCJ \ 18206 hardcode_automatic_GCJ \ 18207 module_cmds_GCJ \ 18208 module_expsym_cmds_GCJ \ 18209 lt_cv_prog_compiler_c_o_GCJ \ 18210 exclude_expsyms_GCJ \ 18211 include_expsyms_GCJ; do 18212 18213 case $var in 18214 old_archive_cmds_GCJ | \ 18215 old_archive_from_new_cmds_GCJ | \ 18216 archive_cmds_GCJ | \ 18217 archive_expsym_cmds_GCJ | \ 18218 module_cmds_GCJ | \ 18219 module_expsym_cmds_GCJ | \ 18220 old_archive_from_expsyms_cmds_GCJ | \ 18221 export_symbols_cmds_GCJ | \ 18222 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18223 postinstall_cmds | postuninstall_cmds | \ 18224 old_postinstall_cmds | old_postuninstall_cmds | \ 18225 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18226 # Double-quote double-evaled strings. 18227 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18228 ;; 18229 *) 18230 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18231 ;; 18232 esac 18233 done 18234 18235 case $lt_echo in 18236 *'\$0 --fallback-echo"') 18237 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18238 ;; 18239 esac 18240 18241cfgfile="$ofile" 18242 18243 cat <<__EOF__ >> "$cfgfile" 18244# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18245 18246# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18247 18248# Shell to use when invoking shell scripts. 18249SHELL=$lt_SHELL 18250 18251# Whether or not to build shared libraries. 18252build_libtool_libs=$enable_shared 18253 18254# Whether or not to build static libraries. 18255build_old_libs=$enable_static 18256 18257# Whether or not to add -lc for building shared libraries. 18258build_libtool_need_lc=$archive_cmds_need_lc_GCJ 18259 18260# Whether or not to disallow shared libs when runtime libs are static 18261allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 18262 18263# Whether or not to optimize for fast installation. 18264fast_install=$enable_fast_install 18265 18266# The host system. 18267host_alias=$host_alias 18268host=$host 18269host_os=$host_os 18270 18271# The build system. 18272build_alias=$build_alias 18273build=$build 18274build_os=$build_os 18275 18276# An echo program that does not interpret backslashes. 18277echo=$lt_echo 18278 18279# The archiver. 18280AR=$lt_AR 18281AR_FLAGS=$lt_AR_FLAGS 18282 18283# A C compiler. 18284LTCC=$lt_LTCC 18285 18286# LTCC compiler flags. 18287LTCFLAGS=$lt_LTCFLAGS 18288 18289# A language-specific compiler. 18290CC=$lt_compiler_GCJ 18291 18292# Is the compiler the GNU C compiler? 18293with_gcc=$GCC_GCJ 18294 18295# An ERE matcher. 18296EGREP=$lt_EGREP 18297 18298# The linker used to build libraries. 18299LD=$lt_LD_GCJ 18300 18301# Whether we need hard or soft links. 18302LN_S=$lt_LN_S 18303 18304# A BSD-compatible nm program. 18305NM=$lt_NM 18306 18307# A symbol stripping program 18308STRIP=$lt_STRIP 18309 18310# Used to examine libraries when file_magic_cmd begins "file" 18311MAGIC_CMD=$MAGIC_CMD 18312 18313# Used on cygwin: DLL creation program. 18314DLLTOOL="$DLLTOOL" 18315 18316# Used on cygwin: object dumper. 18317OBJDUMP="$OBJDUMP" 18318 18319# Used on cygwin: assembler. 18320AS="$AS" 18321 18322# The name of the directory that contains temporary libtool files. 18323objdir=$objdir 18324 18325# How to create reloadable object files. 18326reload_flag=$lt_reload_flag 18327reload_cmds=$lt_reload_cmds 18328 18329# How to pass a linker flag through the compiler. 18330wl=$lt_lt_prog_compiler_wl_GCJ 18331 18332# Object file suffix (normally "o"). 18333objext="$ac_objext" 18334 18335# Old archive suffix (normally "a"). 18336libext="$libext" 18337 18338# Shared library suffix (normally ".so"). 18339shrext_cmds='$shrext_cmds' 18340 18341# Executable file suffix (normally ""). 18342exeext="$exeext" 18343 18344# Additional compiler flags for building library objects. 18345pic_flag=$lt_lt_prog_compiler_pic_GCJ 18346pic_mode=$pic_mode 18347 18348# What is the maximum length of a command? 18349max_cmd_len=$lt_cv_sys_max_cmd_len 18350 18351# Does compiler simultaneously support -c and -o options? 18352compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 18353 18354# Must we lock files when doing compilation? 18355need_locks=$lt_need_locks 18356 18357# Do we need the lib prefix for modules? 18358need_lib_prefix=$need_lib_prefix 18359 18360# Do we need a version for libraries? 18361need_version=$need_version 18362 18363# Whether dlopen is supported. 18364dlopen_support=$enable_dlopen 18365 18366# Whether dlopen of programs is supported. 18367dlopen_self=$enable_dlopen_self 18368 18369# Whether dlopen of statically linked programs is supported. 18370dlopen_self_static=$enable_dlopen_self_static 18371 18372# Compiler flag to prevent dynamic linking. 18373link_static_flag=$lt_lt_prog_compiler_static_GCJ 18374 18375# Compiler flag to turn off builtin functions. 18376no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 18377 18378# Compiler flag to allow reflexive dlopens. 18379export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 18380 18381# Compiler flag to generate shared objects directly from archives. 18382whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 18383 18384# Compiler flag to generate thread-safe objects. 18385thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 18386 18387# Library versioning type. 18388version_type=$version_type 18389 18390# Format of library name prefix. 18391libname_spec=$lt_libname_spec 18392 18393# List of archive names. First name is the real one, the rest are links. 18394# The last name is the one that the linker finds with -lNAME. 18395library_names_spec=$lt_library_names_spec 18396 18397# The coded name of the library, if different from the real name. 18398soname_spec=$lt_soname_spec 18399 18400# Commands used to build and install an old-style archive. 18401RANLIB=$lt_RANLIB 18402old_archive_cmds=$lt_old_archive_cmds_GCJ 18403old_postinstall_cmds=$lt_old_postinstall_cmds 18404old_postuninstall_cmds=$lt_old_postuninstall_cmds 18405 18406# Create an old-style archive from a shared archive. 18407old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 18408 18409# Create a temporary old-style archive to link instead of a shared archive. 18410old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 18411 18412# Commands used to build and install a shared archive. 18413archive_cmds=$lt_archive_cmds_GCJ 18414archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 18415postinstall_cmds=$lt_postinstall_cmds 18416postuninstall_cmds=$lt_postuninstall_cmds 18417 18418# Commands used to build a loadable module (assumed same as above if empty) 18419module_cmds=$lt_module_cmds_GCJ 18420module_expsym_cmds=$lt_module_expsym_cmds_GCJ 18421 18422# Commands to strip libraries. 18423old_striplib=$lt_old_striplib 18424striplib=$lt_striplib 18425 18426# Dependencies to place before the objects being linked to create a 18427# shared library. 18428predep_objects=$lt_predep_objects_GCJ 18429 18430# Dependencies to place after the objects being linked to create a 18431# shared library. 18432postdep_objects=$lt_postdep_objects_GCJ 18433 18434# Dependencies to place before the objects being linked to create a 18435# shared library. 18436predeps=$lt_predeps_GCJ 18437 18438# Dependencies to place after the objects being linked to create a 18439# shared library. 18440postdeps=$lt_postdeps_GCJ 18441 18442# The library search path used internally by the compiler when linking 18443# a shared library. 18444compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 18445 18446# Method to check whether dependent libraries are shared objects. 18447deplibs_check_method=$lt_deplibs_check_method 18448 18449# Command to use when deplibs_check_method == file_magic. 18450file_magic_cmd=$lt_file_magic_cmd 18451 18452# Flag that allows shared libraries with undefined symbols to be built. 18453allow_undefined_flag=$lt_allow_undefined_flag_GCJ 18454 18455# Flag that forces no undefined symbols. 18456no_undefined_flag=$lt_no_undefined_flag_GCJ 18457 18458# Commands used to finish a libtool library installation in a directory. 18459finish_cmds=$lt_finish_cmds 18460 18461# Same as above, but a single script fragment to be evaled but not shown. 18462finish_eval=$lt_finish_eval 18463 18464# Take the output of nm and produce a listing of raw symbols and C names. 18465global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18466 18467# Transform the output of nm in a proper C declaration 18468global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18469 18470# Transform the output of nm in a C name address pair 18471global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18472 18473# This is the shared library runtime path variable. 18474runpath_var=$runpath_var 18475 18476# This is the shared library path variable. 18477shlibpath_var=$shlibpath_var 18478 18479# Is shlibpath searched before the hard-coded library search path? 18480shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18481 18482# How to hardcode a shared library path into an executable. 18483hardcode_action=$hardcode_action_GCJ 18484 18485# Whether we should hardcode library paths into libraries. 18486hardcode_into_libs=$hardcode_into_libs 18487 18488# Flag to hardcode \$libdir into a binary during linking. 18489# This must work even if \$libdir does not exist. 18490hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 18491 18492# If ld is used when linking, flag to hardcode \$libdir into 18493# a binary during linking. This must work even if \$libdir does 18494# not exist. 18495hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 18496 18497# Whether we need a single -rpath flag with a separated argument. 18498hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 18499 18500# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18501# resulting binary. 18502hardcode_direct=$hardcode_direct_GCJ 18503 18504# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18505# resulting binary. 18506hardcode_minus_L=$hardcode_minus_L_GCJ 18507 18508# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18509# the resulting binary. 18510hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 18511 18512# Set to yes if building a shared library automatically hardcodes DIR into the library 18513# and all subsequent libraries and executables linked against it. 18514hardcode_automatic=$hardcode_automatic_GCJ 18515 18516# Variables whose values should be saved in libtool wrapper scripts and 18517# restored at relink time. 18518variables_saved_for_relink="$variables_saved_for_relink" 18519 18520# Whether libtool must link a program against all its dependency libraries. 18521link_all_deplibs=$link_all_deplibs_GCJ 18522 18523# Compile-time system search path for libraries 18524sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18525 18526# Run-time system search path for libraries 18527sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18528 18529# Fix the shell variable \$srcfile for the compiler. 18530fix_srcfile_path="$fix_srcfile_path_GCJ" 18531 18532# Set to yes if exported symbols are required. 18533always_export_symbols=$always_export_symbols_GCJ 18534 18535# The commands to list exported symbols. 18536export_symbols_cmds=$lt_export_symbols_cmds_GCJ 18537 18538# The commands to extract the exported symbol list from a shared archive. 18539extract_expsyms_cmds=$lt_extract_expsyms_cmds 18540 18541# Symbols that should not be listed in the preloaded symbols. 18542exclude_expsyms=$lt_exclude_expsyms_GCJ 18543 18544# Symbols that must always be exported. 18545include_expsyms=$lt_include_expsyms_GCJ 18546 18547# ### END LIBTOOL TAG CONFIG: $tagname 18548 18549__EOF__ 18550 18551 18552else 18553 # If there is no Makefile yet, we rely on a make rule to execute 18554 # `config.status --recheck' to rerun these tests and create the 18555 # libtool script then. 18556 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18557 if test -f "$ltmain_in"; then 18558 test -f Makefile && make "$ltmain" 18559 fi 18560fi 18561 18562 18563ac_ext=c 18564ac_cpp='$CPP $CPPFLAGS' 18565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18567ac_compiler_gnu=$ac_cv_c_compiler_gnu 18568 18569CC="$lt_save_CC" 18570 18571 else 18572 tagname="" 18573 fi 18574 ;; 18575 18576 RC) 18577 18578 18579# Source file extension for RC test sources. 18580ac_ext=rc 18581 18582# Object file extension for compiled RC test sources. 18583objext=o 18584objext_RC=$objext 18585 18586# Code to be used in simple compile tests 18587lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 18588 18589# Code to be used in simple link tests 18590lt_simple_link_test_code="$lt_simple_compile_test_code" 18591 18592# ltmain only uses $CC for tagged configurations so make sure $CC is set. 18593 18594# If no C compiler was specified, use CC. 18595LTCC=${LTCC-"$CC"} 18596 18597# If no C compiler flags were specified, use CFLAGS. 18598LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 18599 18600# Allow CC to be a program name with arguments. 18601compiler=$CC 18602 18603 18604# save warnings/boilerplate of simple test code 18605ac_outfile=conftest.$ac_objext 18606printf "$lt_simple_compile_test_code" >conftest.$ac_ext 18607eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18608_lt_compiler_boilerplate=`cat conftest.err` 18609$rm conftest* 18610 18611ac_outfile=conftest.$ac_objext 18612printf "$lt_simple_link_test_code" >conftest.$ac_ext 18613eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18614_lt_linker_boilerplate=`cat conftest.err` 18615$rm conftest* 18616 18617 18618# Allow CC to be a program name with arguments. 18619lt_save_CC="$CC" 18620CC=${RC-"windres"} 18621compiler=$CC 18622compiler_RC=$CC 18623for cc_temp in $compiler""; do 18624 case $cc_temp in 18625 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18626 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18627 \-*) ;; 18628 *) break;; 18629 esac 18630done 18631cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 18632 18633lt_cv_prog_compiler_c_o_RC=yes 18634 18635# The else clause should only fire when bootstrapping the 18636# libtool distribution, otherwise you forgot to ship ltmain.sh 18637# with your package, and you will get complaints that there are 18638# no rules to generate ltmain.sh. 18639if test -f "$ltmain"; then 18640 # See if we are running on zsh, and set the options which allow our commands through 18641 # without removal of \ escapes. 18642 if test -n "${ZSH_VERSION+set}" ; then 18643 setopt NO_GLOB_SUBST 18644 fi 18645 # Now quote all the things that may contain metacharacters while being 18646 # careful not to overquote the AC_SUBSTed values. We take copies of the 18647 # variables and quote the copies for generation of the libtool script. 18648 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18649 SED SHELL STRIP \ 18650 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18651 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18652 deplibs_check_method reload_flag reload_cmds need_locks \ 18653 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18654 lt_cv_sys_global_symbol_to_c_name_address \ 18655 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18656 old_postinstall_cmds old_postuninstall_cmds \ 18657 compiler_RC \ 18658 CC_RC \ 18659 LD_RC \ 18660 lt_prog_compiler_wl_RC \ 18661 lt_prog_compiler_pic_RC \ 18662 lt_prog_compiler_static_RC \ 18663 lt_prog_compiler_no_builtin_flag_RC \ 18664 export_dynamic_flag_spec_RC \ 18665 thread_safe_flag_spec_RC \ 18666 whole_archive_flag_spec_RC \ 18667 enable_shared_with_static_runtimes_RC \ 18668 old_archive_cmds_RC \ 18669 old_archive_from_new_cmds_RC \ 18670 predep_objects_RC \ 18671 postdep_objects_RC \ 18672 predeps_RC \ 18673 postdeps_RC \ 18674 compiler_lib_search_path_RC \ 18675 archive_cmds_RC \ 18676 archive_expsym_cmds_RC \ 18677 postinstall_cmds_RC \ 18678 postuninstall_cmds_RC \ 18679 old_archive_from_expsyms_cmds_RC \ 18680 allow_undefined_flag_RC \ 18681 no_undefined_flag_RC \ 18682 export_symbols_cmds_RC \ 18683 hardcode_libdir_flag_spec_RC \ 18684 hardcode_libdir_flag_spec_ld_RC \ 18685 hardcode_libdir_separator_RC \ 18686 hardcode_automatic_RC \ 18687 module_cmds_RC \ 18688 module_expsym_cmds_RC \ 18689 lt_cv_prog_compiler_c_o_RC \ 18690 exclude_expsyms_RC \ 18691 include_expsyms_RC; do 18692 18693 case $var in 18694 old_archive_cmds_RC | \ 18695 old_archive_from_new_cmds_RC | \ 18696 archive_cmds_RC | \ 18697 archive_expsym_cmds_RC | \ 18698 module_cmds_RC | \ 18699 module_expsym_cmds_RC | \ 18700 old_archive_from_expsyms_cmds_RC | \ 18701 export_symbols_cmds_RC | \ 18702 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18703 postinstall_cmds | postuninstall_cmds | \ 18704 old_postinstall_cmds | old_postuninstall_cmds | \ 18705 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18706 # Double-quote double-evaled strings. 18707 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18708 ;; 18709 *) 18710 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18711 ;; 18712 esac 18713 done 18714 18715 case $lt_echo in 18716 *'\$0 --fallback-echo"') 18717 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18718 ;; 18719 esac 18720 18721cfgfile="$ofile" 18722 18723 cat <<__EOF__ >> "$cfgfile" 18724# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18725 18726# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18727 18728# Shell to use when invoking shell scripts. 18729SHELL=$lt_SHELL 18730 18731# Whether or not to build shared libraries. 18732build_libtool_libs=$enable_shared 18733 18734# Whether or not to build static libraries. 18735build_old_libs=$enable_static 18736 18737# Whether or not to add -lc for building shared libraries. 18738build_libtool_need_lc=$archive_cmds_need_lc_RC 18739 18740# Whether or not to disallow shared libs when runtime libs are static 18741allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 18742 18743# Whether or not to optimize for fast installation. 18744fast_install=$enable_fast_install 18745 18746# The host system. 18747host_alias=$host_alias 18748host=$host 18749host_os=$host_os 18750 18751# The build system. 18752build_alias=$build_alias 18753build=$build 18754build_os=$build_os 18755 18756# An echo program that does not interpret backslashes. 18757echo=$lt_echo 18758 18759# The archiver. 18760AR=$lt_AR 18761AR_FLAGS=$lt_AR_FLAGS 18762 18763# A C compiler. 18764LTCC=$lt_LTCC 18765 18766# LTCC compiler flags. 18767LTCFLAGS=$lt_LTCFLAGS 18768 18769# A language-specific compiler. 18770CC=$lt_compiler_RC 18771 18772# Is the compiler the GNU C compiler? 18773with_gcc=$GCC_RC 18774 18775# An ERE matcher. 18776EGREP=$lt_EGREP 18777 18778# The linker used to build libraries. 18779LD=$lt_LD_RC 18780 18781# Whether we need hard or soft links. 18782LN_S=$lt_LN_S 18783 18784# A BSD-compatible nm program. 18785NM=$lt_NM 18786 18787# A symbol stripping program 18788STRIP=$lt_STRIP 18789 18790# Used to examine libraries when file_magic_cmd begins "file" 18791MAGIC_CMD=$MAGIC_CMD 18792 18793# Used on cygwin: DLL creation program. 18794DLLTOOL="$DLLTOOL" 18795 18796# Used on cygwin: object dumper. 18797OBJDUMP="$OBJDUMP" 18798 18799# Used on cygwin: assembler. 18800AS="$AS" 18801 18802# The name of the directory that contains temporary libtool files. 18803objdir=$objdir 18804 18805# How to create reloadable object files. 18806reload_flag=$lt_reload_flag 18807reload_cmds=$lt_reload_cmds 18808 18809# How to pass a linker flag through the compiler. 18810wl=$lt_lt_prog_compiler_wl_RC 18811 18812# Object file suffix (normally "o"). 18813objext="$ac_objext" 18814 18815# Old archive suffix (normally "a"). 18816libext="$libext" 18817 18818# Shared library suffix (normally ".so"). 18819shrext_cmds='$shrext_cmds' 18820 18821# Executable file suffix (normally ""). 18822exeext="$exeext" 18823 18824# Additional compiler flags for building library objects. 18825pic_flag=$lt_lt_prog_compiler_pic_RC 18826pic_mode=$pic_mode 18827 18828# What is the maximum length of a command? 18829max_cmd_len=$lt_cv_sys_max_cmd_len 18830 18831# Does compiler simultaneously support -c and -o options? 18832compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 18833 18834# Must we lock files when doing compilation? 18835need_locks=$lt_need_locks 18836 18837# Do we need the lib prefix for modules? 18838need_lib_prefix=$need_lib_prefix 18839 18840# Do we need a version for libraries? 18841need_version=$need_version 18842 18843# Whether dlopen is supported. 18844dlopen_support=$enable_dlopen 18845 18846# Whether dlopen of programs is supported. 18847dlopen_self=$enable_dlopen_self 18848 18849# Whether dlopen of statically linked programs is supported. 18850dlopen_self_static=$enable_dlopen_self_static 18851 18852# Compiler flag to prevent dynamic linking. 18853link_static_flag=$lt_lt_prog_compiler_static_RC 18854 18855# Compiler flag to turn off builtin functions. 18856no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 18857 18858# Compiler flag to allow reflexive dlopens. 18859export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 18860 18861# Compiler flag to generate shared objects directly from archives. 18862whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 18863 18864# Compiler flag to generate thread-safe objects. 18865thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 18866 18867# Library versioning type. 18868version_type=$version_type 18869 18870# Format of library name prefix. 18871libname_spec=$lt_libname_spec 18872 18873# List of archive names. First name is the real one, the rest are links. 18874# The last name is the one that the linker finds with -lNAME. 18875library_names_spec=$lt_library_names_spec 18876 18877# The coded name of the library, if different from the real name. 18878soname_spec=$lt_soname_spec 18879 18880# Commands used to build and install an old-style archive. 18881RANLIB=$lt_RANLIB 18882old_archive_cmds=$lt_old_archive_cmds_RC 18883old_postinstall_cmds=$lt_old_postinstall_cmds 18884old_postuninstall_cmds=$lt_old_postuninstall_cmds 18885 18886# Create an old-style archive from a shared archive. 18887old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 18888 18889# Create a temporary old-style archive to link instead of a shared archive. 18890old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 18891 18892# Commands used to build and install a shared archive. 18893archive_cmds=$lt_archive_cmds_RC 18894archive_expsym_cmds=$lt_archive_expsym_cmds_RC 18895postinstall_cmds=$lt_postinstall_cmds 18896postuninstall_cmds=$lt_postuninstall_cmds 18897 18898# Commands used to build a loadable module (assumed same as above if empty) 18899module_cmds=$lt_module_cmds_RC 18900module_expsym_cmds=$lt_module_expsym_cmds_RC 18901 18902# Commands to strip libraries. 18903old_striplib=$lt_old_striplib 18904striplib=$lt_striplib 18905 18906# Dependencies to place before the objects being linked to create a 18907# shared library. 18908predep_objects=$lt_predep_objects_RC 18909 18910# Dependencies to place after the objects being linked to create a 18911# shared library. 18912postdep_objects=$lt_postdep_objects_RC 18913 18914# Dependencies to place before the objects being linked to create a 18915# shared library. 18916predeps=$lt_predeps_RC 18917 18918# Dependencies to place after the objects being linked to create a 18919# shared library. 18920postdeps=$lt_postdeps_RC 18921 18922# The library search path used internally by the compiler when linking 18923# a shared library. 18924compiler_lib_search_path=$lt_compiler_lib_search_path_RC 18925 18926# Method to check whether dependent libraries are shared objects. 18927deplibs_check_method=$lt_deplibs_check_method 18928 18929# Command to use when deplibs_check_method == file_magic. 18930file_magic_cmd=$lt_file_magic_cmd 18931 18932# Flag that allows shared libraries with undefined symbols to be built. 18933allow_undefined_flag=$lt_allow_undefined_flag_RC 18934 18935# Flag that forces no undefined symbols. 18936no_undefined_flag=$lt_no_undefined_flag_RC 18937 18938# Commands used to finish a libtool library installation in a directory. 18939finish_cmds=$lt_finish_cmds 18940 18941# Same as above, but a single script fragment to be evaled but not shown. 18942finish_eval=$lt_finish_eval 18943 18944# Take the output of nm and produce a listing of raw symbols and C names. 18945global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18946 18947# Transform the output of nm in a proper C declaration 18948global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18949 18950# Transform the output of nm in a C name address pair 18951global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18952 18953# This is the shared library runtime path variable. 18954runpath_var=$runpath_var 18955 18956# This is the shared library path variable. 18957shlibpath_var=$shlibpath_var 18958 18959# Is shlibpath searched before the hard-coded library search path? 18960shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18961 18962# How to hardcode a shared library path into an executable. 18963hardcode_action=$hardcode_action_RC 18964 18965# Whether we should hardcode library paths into libraries. 18966hardcode_into_libs=$hardcode_into_libs 18967 18968# Flag to hardcode \$libdir into a binary during linking. 18969# This must work even if \$libdir does not exist. 18970hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 18971 18972# If ld is used when linking, flag to hardcode \$libdir into 18973# a binary during linking. This must work even if \$libdir does 18974# not exist. 18975hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 18976 18977# Whether we need a single -rpath flag with a separated argument. 18978hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 18979 18980# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18981# resulting binary. 18982hardcode_direct=$hardcode_direct_RC 18983 18984# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18985# resulting binary. 18986hardcode_minus_L=$hardcode_minus_L_RC 18987 18988# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18989# the resulting binary. 18990hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 18991 18992# Set to yes if building a shared library automatically hardcodes DIR into the library 18993# and all subsequent libraries and executables linked against it. 18994hardcode_automatic=$hardcode_automatic_RC 18995 18996# Variables whose values should be saved in libtool wrapper scripts and 18997# restored at relink time. 18998variables_saved_for_relink="$variables_saved_for_relink" 18999 19000# Whether libtool must link a program against all its dependency libraries. 19001link_all_deplibs=$link_all_deplibs_RC 19002 19003# Compile-time system search path for libraries 19004sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19005 19006# Run-time system search path for libraries 19007sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19008 19009# Fix the shell variable \$srcfile for the compiler. 19010fix_srcfile_path="$fix_srcfile_path_RC" 19011 19012# Set to yes if exported symbols are required. 19013always_export_symbols=$always_export_symbols_RC 19014 19015# The commands to list exported symbols. 19016export_symbols_cmds=$lt_export_symbols_cmds_RC 19017 19018# The commands to extract the exported symbol list from a shared archive. 19019extract_expsyms_cmds=$lt_extract_expsyms_cmds 19020 19021# Symbols that should not be listed in the preloaded symbols. 19022exclude_expsyms=$lt_exclude_expsyms_RC 19023 19024# Symbols that must always be exported. 19025include_expsyms=$lt_include_expsyms_RC 19026 19027# ### END LIBTOOL TAG CONFIG: $tagname 19028 19029__EOF__ 19030 19031 19032else 19033 # If there is no Makefile yet, we rely on a make rule to execute 19034 # `config.status --recheck' to rerun these tests and create the 19035 # libtool script then. 19036 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19037 if test -f "$ltmain_in"; then 19038 test -f Makefile && make "$ltmain" 19039 fi 19040fi 19041 19042 19043ac_ext=c 19044ac_cpp='$CPP $CPPFLAGS' 19045ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19046ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19047ac_compiler_gnu=$ac_cv_c_compiler_gnu 19048 19049CC="$lt_save_CC" 19050 19051 ;; 19052 19053 *) 19054 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19055echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19056 { (exit 1); exit 1; }; } 19057 ;; 19058 esac 19059 19060 # Append the new tag name to the list of available tags. 19061 if test -n "$tagname" ; then 19062 available_tags="$available_tags $tagname" 19063 fi 19064 fi 19065 done 19066 IFS="$lt_save_ifs" 19067 19068 # Now substitute the updated list of available tags. 19069 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19070 mv "${ofile}T" "$ofile" 19071 chmod +x "$ofile" 19072 else 19073 rm -f "${ofile}T" 19074 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19075echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19076 { (exit 1); exit 1; }; } 19077 fi 19078fi 19079 19080 19081 19082# This can be used to rebuild libtool when needed 19083LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19084 19085# Always use our own libtool. 19086LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19087 19088# Prevent multiple expansion 19089 19090 19091 19092 19093 19094 19095 19096 19097 19098 19099 19100 19101 19102 19103 19104 19105 19106 19107 19108 19109 19110 19111# Check whether --with-libgcrypt-prefix was given. 19112if test "${with_libgcrypt_prefix+set}" = set; then 19113 withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval" 19114else 19115 libgcrypt_config_prefix="" 19116fi 19117 19118 if test x$libgcrypt_config_prefix != x ; then 19119 if test x${LIBGCRYPT_CONFIG+set} != xset ; then 19120 LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config 19121 fi 19122 fi 19123 19124 # Extract the first word of "libgcrypt-config", so it can be a program name with args. 19125set dummy libgcrypt-config; ac_word=$2 19126{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19127echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19128if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then 19129 echo $ECHO_N "(cached) $ECHO_C" >&6 19130else 19131 case $LIBGCRYPT_CONFIG in 19132 [\\/]* | ?:[\\/]*) 19133 ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path. 19134 ;; 19135 *) 19136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19137for as_dir in $PATH 19138do 19139 IFS=$as_save_IFS 19140 test -z "$as_dir" && as_dir=. 19141 for ac_exec_ext in '' $ac_executable_extensions; do 19142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19143 ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19145 break 2 19146 fi 19147done 19148done 19149IFS=$as_save_IFS 19150 19151 test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no" 19152 ;; 19153esac 19154fi 19155LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG 19156if test -n "$LIBGCRYPT_CONFIG"; then 19157 { echo "$as_me:$LINENO: result: $LIBGCRYPT_CONFIG" >&5 19158echo "${ECHO_T}$LIBGCRYPT_CONFIG" >&6; } 19159else 19160 { echo "$as_me:$LINENO: result: no" >&5 19161echo "${ECHO_T}no" >&6; } 19162fi 19163 19164 19165 tmp=1.1.44 19166 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then 19167 req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'` 19168 min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'` 19169 else 19170 req_libgcrypt_api=0 19171 min_libgcrypt_version="$tmp" 19172 fi 19173 19174 { echo "$as_me:$LINENO: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5 19175echo $ECHO_N "checking for LIBGCRYPT - version >= $min_libgcrypt_version... $ECHO_C" >&6; } 19176 ok=no 19177 if test "$LIBGCRYPT_CONFIG" != "no" ; then 19178 req_major=`echo $min_libgcrypt_version | \ 19179 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` 19180 req_minor=`echo $min_libgcrypt_version | \ 19181 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` 19182 req_micro=`echo $min_libgcrypt_version | \ 19183 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` 19184 libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version` 19185 major=`echo $libgcrypt_config_version | \ 19186 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'` 19187 minor=`echo $libgcrypt_config_version | \ 19188 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'` 19189 micro=`echo $libgcrypt_config_version | \ 19190 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'` 19191 if test "$major" -gt "$req_major"; then 19192 ok=yes 19193 else 19194 if test "$major" -eq "$req_major"; then 19195 if test "$minor" -gt "$req_minor"; then 19196 ok=yes 19197 else 19198 if test "$minor" -eq "$req_minor"; then 19199 if test "$micro" -ge "$req_micro"; then 19200 ok=yes 19201 fi 19202 fi 19203 fi 19204 fi 19205 fi 19206 fi 19207 if test $ok = yes; then 19208 { echo "$as_me:$LINENO: result: yes" >&5 19209echo "${ECHO_T}yes" >&6; } 19210 else 19211 { echo "$as_me:$LINENO: result: no" >&5 19212echo "${ECHO_T}no" >&6; } 19213 fi 19214 if test $ok = yes; then 19215 # If we have a recent libgcrypt, we should also check that the 19216 # API is compatible 19217 if test "$req_libgcrypt_api" -gt 0 ; then 19218 tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0` 19219 if test "$tmp" -gt 0 ; then 19220 { echo "$as_me:$LINENO: checking LIBGCRYPT API version" >&5 19221echo $ECHO_N "checking LIBGCRYPT API version... $ECHO_C" >&6; } 19222 if test "$req_libgcrypt_api" -eq "$tmp" ; then 19223 { echo "$as_me:$LINENO: result: okay" >&5 19224echo "${ECHO_T}okay" >&6; } 19225 else 19226 ok=no 19227 { echo "$as_me:$LINENO: result: does not match (want=$req_libgcrypt_api got=$tmp)" >&5 19228echo "${ECHO_T}does not match (want=$req_libgcrypt_api got=$tmp)" >&6; } 19229 fi 19230 fi 19231 fi 19232 fi 19233 if test $ok = yes; then 19234 LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags` 19235 LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs` 19236 : 19237 else 19238 LIBGCRYPT_CFLAGS="" 19239 LIBGCRYPT_LIBS="" 19240 { { echo "$as_me:$LINENO: error: libgcrypt >= 1.1.44 is required to build CryptoFS" >&5 19241echo "$as_me: error: libgcrypt >= 1.1.44 is required to build CryptoFS" >&2;} 19242 { (exit 1); exit 1; }; } 19243 fi 19244 19245 19246 19247 19248 19249if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 19250 if test -n "$ac_tool_prefix"; then 19251 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 19252set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 19253{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19254echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19255if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 19256 echo $ECHO_N "(cached) $ECHO_C" >&6 19257else 19258 case $PKG_CONFIG in 19259 [\\/]* | ?:[\\/]*) 19260 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 19261 ;; 19262 *) 19263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19264for as_dir in $PATH 19265do 19266 IFS=$as_save_IFS 19267 test -z "$as_dir" && as_dir=. 19268 for ac_exec_ext in '' $ac_executable_extensions; do 19269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19270 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19272 break 2 19273 fi 19274done 19275done 19276IFS=$as_save_IFS 19277 19278 ;; 19279esac 19280fi 19281PKG_CONFIG=$ac_cv_path_PKG_CONFIG 19282if test -n "$PKG_CONFIG"; then 19283 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 19284echo "${ECHO_T}$PKG_CONFIG" >&6; } 19285else 19286 { echo "$as_me:$LINENO: result: no" >&5 19287echo "${ECHO_T}no" >&6; } 19288fi 19289 19290 19291fi 19292if test -z "$ac_cv_path_PKG_CONFIG"; then 19293 ac_pt_PKG_CONFIG=$PKG_CONFIG 19294 # Extract the first word of "pkg-config", so it can be a program name with args. 19295set dummy pkg-config; ac_word=$2 19296{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19297echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19298if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 19299 echo $ECHO_N "(cached) $ECHO_C" >&6 19300else 19301 case $ac_pt_PKG_CONFIG in 19302 [\\/]* | ?:[\\/]*) 19303 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 19304 ;; 19305 *) 19306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19307for as_dir in $PATH 19308do 19309 IFS=$as_save_IFS 19310 test -z "$as_dir" && as_dir=. 19311 for ac_exec_ext in '' $ac_executable_extensions; do 19312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19313 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19315 break 2 19316 fi 19317done 19318done 19319IFS=$as_save_IFS 19320 19321 ;; 19322esac 19323fi 19324ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 19325if test -n "$ac_pt_PKG_CONFIG"; then 19326 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 19327echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } 19328else 19329 { echo "$as_me:$LINENO: result: no" >&5 19330echo "${ECHO_T}no" >&6; } 19331fi 19332 19333 if test "x$ac_pt_PKG_CONFIG" = x; then 19334 PKG_CONFIG="" 19335 else 19336 case $cross_compiling:$ac_tool_warned in 19337yes:) 19338{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 19339whose name does not start with the host triplet. If you think this 19340configuration is useful to you, please write to autoconf@gnu.org." >&5 19341echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 19342whose name does not start with the host triplet. If you think this 19343configuration is useful to you, please write to autoconf@gnu.org." >&2;} 19344ac_tool_warned=yes ;; 19345esac 19346 PKG_CONFIG=$ac_pt_PKG_CONFIG 19347 fi 19348else 19349 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 19350fi 19351 19352fi 19353if test -n "$PKG_CONFIG"; then 19354 _pkg_min_version=0.9.0 19355 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 19356echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; } 19357 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 19358 { echo "$as_me:$LINENO: result: yes" >&5 19359echo "${ECHO_T}yes" >&6; } 19360 else 19361 { echo "$as_me:$LINENO: result: no" >&5 19362echo "${ECHO_T}no" >&6; } 19363 PKG_CONFIG="" 19364 fi 19365 19366fi 19367 19368pkg_failed=no 19369{ echo "$as_me:$LINENO: checking for GLIB" >&5 19370echo $ECHO_N "checking for GLIB... $ECHO_C" >&6; } 19371 19372if test -n "$PKG_CONFIG"; then 19373 if test -n "$GLIB_CFLAGS"; then 19374 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS" 19375 else 19376 if test -n "$PKG_CONFIG" && \ 19377 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.6.0\"") >&5 19378 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.6.0") 2>&5 19379 ac_status=$? 19380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19381 (exit $ac_status); }; then 19382 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.6.0" 2>/dev/null` 19383else 19384 pkg_failed=yes 19385fi 19386 fi 19387else 19388 pkg_failed=untried 19389fi 19390if test -n "$PKG_CONFIG"; then 19391 if test -n "$GLIB_LIBS"; then 19392 pkg_cv_GLIB_LIBS="$GLIB_LIBS" 19393 else 19394 if test -n "$PKG_CONFIG" && \ 19395 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.6.0\"") >&5 19396 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.6.0") 2>&5 19397 ac_status=$? 19398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19399 (exit $ac_status); }; then 19400 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.6.0" 2>/dev/null` 19401else 19402 pkg_failed=yes 19403fi 19404 fi 19405else 19406 pkg_failed=untried 19407fi 19408 19409 19410 19411if test $pkg_failed = yes; then 19412 19413if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19414 _pkg_short_errors_supported=yes 19415else 19416 _pkg_short_errors_supported=no 19417fi 19418 if test $_pkg_short_errors_supported = yes; then 19419 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0 >= 2.6.0"` 19420 else 19421 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.6.0"` 19422 fi 19423 # Put the nasty error message in config.log where it belongs 19424 echo "$GLIB_PKG_ERRORS" >&5 19425 19426 { { echo "$as_me:$LINENO: error: Package requirements (glib-2.0 >= 2.6.0) were not met: 19427 19428$GLIB_PKG_ERRORS 19429 19430Consider adjusting the PKG_CONFIG_PATH environment variable if you 19431installed software in a non-standard prefix. 19432 19433Alternatively, you may set the environment variables GLIB_CFLAGS 19434and GLIB_LIBS to avoid the need to call pkg-config. 19435See the pkg-config man page for more details. 19436" >&5 19437echo "$as_me: error: Package requirements (glib-2.0 >= 2.6.0) were not met: 19438 19439$GLIB_PKG_ERRORS 19440 19441Consider adjusting the PKG_CONFIG_PATH environment variable if you 19442installed software in a non-standard prefix. 19443 19444Alternatively, you may set the environment variables GLIB_CFLAGS 19445and GLIB_LIBS to avoid the need to call pkg-config. 19446See the pkg-config man page for more details. 19447" >&2;} 19448 { (exit 1); exit 1; }; } 19449elif test $pkg_failed = untried; then 19450 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 19451is in your PATH or set the PKG_CONFIG environment variable to the full 19452path to pkg-config. 19453 19454Alternatively, you may set the environment variables GLIB_CFLAGS 19455and GLIB_LIBS to avoid the need to call pkg-config. 19456See the pkg-config man page for more details. 19457 19458To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. 19459See \`config.log' for more details." >&5 19460echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 19461is in your PATH or set the PKG_CONFIG environment variable to the full 19462path to pkg-config. 19463 19464Alternatively, you may set the environment variables GLIB_CFLAGS 19465and GLIB_LIBS to avoid the need to call pkg-config. 19466See the pkg-config man page for more details. 19467 19468To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. 19469See \`config.log' for more details." >&2;} 19470 { (exit 1); exit 1; }; } 19471else 19472 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS 19473 GLIB_LIBS=$pkg_cv_GLIB_LIBS 19474 { echo "$as_me:$LINENO: result: yes" >&5 19475echo "${ECHO_T}yes" >&6; } 19476 : 19477fi 19478 19479case $target_os in 19480 *bsd* | *darwin* | *dragonfly*) 19481 19482cat >>confdefs.h <<\_ACEOF 19483#define BSD 1 19484_ACEOF 19485 19486 enable_lufs=no 19487 ;; 19488esac 19489 19490# --- LUFS --- 19491# Check whether --enable-lufs was given. 19492if test "${enable_lufs+set}" = set; then 19493 enableval=$enable_lufs; enable_lufs=$enableval 19494fi 19495 19496 19497 19498if test x"$enable_lufs" != x"no" ; then 19499 BUILD_LUFS_TRUE= 19500 BUILD_LUFS_FALSE='#' 19501else 19502 BUILD_LUFS_TRUE='#' 19503 BUILD_LUFS_FALSE= 19504fi 19505 19506 19507# --- FUSE --- 19508# Check whether --enable-fuse was given. 19509if test "${enable_fuse+set}" = set; then 19510 enableval=$enable_fuse; enable_fuse=$enableval 19511fi 19512 19513if test x"$enable_fuse" != x"no"; then 19514 19515pkg_failed=no 19516{ echo "$as_me:$LINENO: checking for FUSE" >&5 19517echo $ECHO_N "checking for FUSE... $ECHO_C" >&6; } 19518 19519if test -n "$PKG_CONFIG"; then 19520 if test -n "$FUSE_CFLAGS"; then 19521 pkg_cv_FUSE_CFLAGS="$FUSE_CFLAGS" 19522 else 19523 if test -n "$PKG_CONFIG" && \ 19524 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" fuse \"") >&5 19525 ($PKG_CONFIG --exists --print-errors " fuse ") 2>&5 19526 ac_status=$? 19527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19528 (exit $ac_status); }; then 19529 pkg_cv_FUSE_CFLAGS=`$PKG_CONFIG --cflags " fuse " 2>/dev/null` 19530else 19531 pkg_failed=yes 19532fi 19533 fi 19534else 19535 pkg_failed=untried 19536fi 19537if test -n "$PKG_CONFIG"; then 19538 if test -n "$FUSE_LIBS"; then 19539 pkg_cv_FUSE_LIBS="$FUSE_LIBS" 19540 else 19541 if test -n "$PKG_CONFIG" && \ 19542 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" fuse \"") >&5 19543 ($PKG_CONFIG --exists --print-errors " fuse ") 2>&5 19544 ac_status=$? 19545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19546 (exit $ac_status); }; then 19547 pkg_cv_FUSE_LIBS=`$PKG_CONFIG --libs " fuse " 2>/dev/null` 19548else 19549 pkg_failed=yes 19550fi 19551 fi 19552else 19553 pkg_failed=untried 19554fi 19555 19556 19557 19558if test $pkg_failed = yes; then 19559 19560if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19561 _pkg_short_errors_supported=yes 19562else 19563 _pkg_short_errors_supported=no 19564fi 19565 if test $_pkg_short_errors_supported = yes; then 19566 FUSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors " fuse "` 19567 else 19568 FUSE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors " fuse "` 19569 fi 19570 # Put the nasty error message in config.log where it belongs 19571 echo "$FUSE_PKG_ERRORS" >&5 19572 19573 { echo "$as_me:$LINENO: result: no" >&5 19574echo "${ECHO_T}no" >&6; } 19575 enable_fuse="no" 19576elif test $pkg_failed = untried; then 19577 enable_fuse="no" 19578else 19579 FUSE_CFLAGS=$pkg_cv_FUSE_CFLAGS 19580 FUSE_LIBS=$pkg_cv_FUSE_LIBS 19581 { echo "$as_me:$LINENO: result: yes" >&5 19582echo "${ECHO_T}yes" >&6; } 19583 : 19584fi 19585fi 19586 19587 19588if test x"$enable_fuse" != x"no" ; then 19589 BUILD_FUSE_TRUE= 19590 BUILD_FUSE_FALSE='#' 19591else 19592 BUILD_FUSE_TRUE='#' 19593 BUILD_FUSE_FALSE= 19594fi 19595 19596 19597# --- PinEntry --- 19598 19599# Check whether --with-pinentry was given. 19600if test "${with_pinentry+set}" = set; then 19601 withval=$with_pinentry; with_pinentry=$withval 19602fi 19603 19604if test x"$with_pinentry" != x"no"; then 19605 # Extract the first word of ""pinentry"", so it can be a program name with args. 19606set dummy "pinentry"; ac_word=$2 19607{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19609if test "${ac_cv_prog_have_pinentry+set}" = set; then 19610 echo $ECHO_N "(cached) $ECHO_C" >&6 19611else 19612 if test -n "$have_pinentry"; then 19613 ac_cv_prog_have_pinentry="$have_pinentry" # Let the user override the test. 19614else 19615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19616for as_dir in $PATH 19617do 19618 IFS=$as_save_IFS 19619 test -z "$as_dir" && as_dir=. 19620 for ac_exec_ext in '' $ac_executable_extensions; do 19621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19622 ac_cv_prog_have_pinentry=""yes"" 19623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19624 break 2 19625 fi 19626done 19627done 19628IFS=$as_save_IFS 19629 19630 test -z "$ac_cv_prog_have_pinentry" && ac_cv_prog_have_pinentry=""no"" 19631fi 19632fi 19633have_pinentry=$ac_cv_prog_have_pinentry 19634if test -n "$have_pinentry"; then 19635 { echo "$as_me:$LINENO: result: $have_pinentry" >&5 19636echo "${ECHO_T}$have_pinentry" >&6; } 19637else 19638 { echo "$as_me:$LINENO: result: no" >&5 19639echo "${ECHO_T}no" >&6; } 19640fi 19641 19642 19643 with_pinentry=$have_pinentry 19644fi 19645 19646 19647if test x"$with_pinentry" != x"no" ; then 19648 WITH_PINENTRY_TRUE= 19649 WITH_PINENTRY_FALSE='#' 19650else 19651 WITH_PINENTRY_TRUE='#' 19652 WITH_PINENTRY_FALSE= 19653fi 19654 19655if test x"$with_pinentry" != x"no"; then 19656 19657cat >>confdefs.h <<\_ACEOF 19658#define WITH_PINENTRY 1 19659_ACEOF 19660 19661fi 19662 19663ac_config_files="$ac_config_files Makefile config/Makefile doc/Makefile src/Makefile src/cryptofs/Makefile src/lufs/Makefile src/fuse/Makefile tests/Makefile tests/cryptofs/Makefile tests/fuse/Makefile" 19664 19665cat >confcache <<\_ACEOF 19666# This file is a shell script that caches the results of configure 19667# tests run on this system so they can be shared between configure 19668# scripts and configure runs, see configure's option --config-cache. 19669# It is not useful on other systems. If it contains results you don't 19670# want to keep, you may remove or edit it. 19671# 19672# config.status only pays attention to the cache file if you give it 19673# the --recheck option to rerun configure. 19674# 19675# `ac_cv_env_foo' variables (set or unset) will be overridden when 19676# loading this file, other *unset* `ac_cv_foo' will be assigned the 19677# following values. 19678 19679_ACEOF 19680 19681# The following way of writing the cache mishandles newlines in values, 19682# but we know of no workaround that is simple, portable, and efficient. 19683# So, we kill variables containing newlines. 19684# Ultrix sh set writes to stderr and can't be redirected directly, 19685# and sets the high bit in the cache file unless we assign to the vars. 19686( 19687 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19688 eval ac_val=\$$ac_var 19689 case $ac_val in #( 19690 *${as_nl}*) 19691 case $ac_var in #( 19692 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 19693echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 19694 esac 19695 case $ac_var in #( 19696 _ | IFS | as_nl) ;; #( 19697 *) $as_unset $ac_var ;; 19698 esac ;; 19699 esac 19700 done 19701 19702 (set) 2>&1 | 19703 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19704 *${as_nl}ac_space=\ *) 19705 # `set' does not quote correctly, so add quotes (double-quote 19706 # substitution turns \\\\ into \\, and sed turns \\ into \). 19707 sed -n \ 19708 "s/'/'\\\\''/g; 19709 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19710 ;; #( 19711 *) 19712 # `set' quotes correctly as required by POSIX, so do not add quotes. 19713 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19714 ;; 19715 esac | 19716 sort 19717) | 19718 sed ' 19719 /^ac_cv_env_/b end 19720 t clear 19721 :clear 19722 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 19723 t end 19724 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19725 :end' >>confcache 19726if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19727 if test -w "$cache_file"; then 19728 test "x$cache_file" != "x/dev/null" && 19729 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 19730echo "$as_me: updating cache $cache_file" >&6;} 19731 cat confcache >$cache_file 19732 else 19733 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 19734echo "$as_me: not updating unwritable cache $cache_file" >&6;} 19735 fi 19736fi 19737rm -f confcache 19738 19739test "x$prefix" = xNONE && prefix=$ac_default_prefix 19740# Let make expand exec_prefix. 19741test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19742 19743DEFS=-DHAVE_CONFIG_H 19744 19745ac_libobjs= 19746ac_ltlibobjs= 19747for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19748 # 1. Remove the extension, and $U if already installed. 19749 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19750 ac_i=`echo "$ac_i" | sed "$ac_script"` 19751 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19752 # will be set to the directory where LIBOBJS objects are built. 19753 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19754 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 19755done 19756LIBOBJS=$ac_libobjs 19757 19758LTLIBOBJS=$ac_ltlibobjs 19759 19760 19761if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19762 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 19763Usually this means the macro was only invoked conditionally." >&5 19764echo "$as_me: error: conditional \"AMDEP\" was never defined. 19765Usually this means the macro was only invoked conditionally." >&2;} 19766 { (exit 1); exit 1; }; } 19767fi 19768if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19769 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 19770Usually this means the macro was only invoked conditionally." >&5 19771echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 19772Usually this means the macro was only invoked conditionally." >&2;} 19773 { (exit 1); exit 1; }; } 19774fi 19775if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 19776 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 19777Usually this means the macro was only invoked conditionally." >&5 19778echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 19779Usually this means the macro was only invoked conditionally." >&2;} 19780 { (exit 1); exit 1; }; } 19781fi 19782if test -z "${BUILD_LUFS_TRUE}" && test -z "${BUILD_LUFS_FALSE}"; then 19783 { { echo "$as_me:$LINENO: error: conditional \"BUILD_LUFS\" was never defined. 19784Usually this means the macro was only invoked conditionally." >&5 19785echo "$as_me: error: conditional \"BUILD_LUFS\" was never defined. 19786Usually this means the macro was only invoked conditionally." >&2;} 19787 { (exit 1); exit 1; }; } 19788fi 19789if test -z "${BUILD_FUSE_TRUE}" && test -z "${BUILD_FUSE_FALSE}"; then 19790 { { echo "$as_me:$LINENO: error: conditional \"BUILD_FUSE\" was never defined. 19791Usually this means the macro was only invoked conditionally." >&5 19792echo "$as_me: error: conditional \"BUILD_FUSE\" was never defined. 19793Usually this means the macro was only invoked conditionally." >&2;} 19794 { (exit 1); exit 1; }; } 19795fi 19796if test -z "${WITH_PINENTRY_TRUE}" && test -z "${WITH_PINENTRY_FALSE}"; then 19797 { { echo "$as_me:$LINENO: error: conditional \"WITH_PINENTRY\" was never defined. 19798Usually this means the macro was only invoked conditionally." >&5 19799echo "$as_me: error: conditional \"WITH_PINENTRY\" was never defined. 19800Usually this means the macro was only invoked conditionally." >&2;} 19801 { (exit 1); exit 1; }; } 19802fi 19803 19804: ${CONFIG_STATUS=./config.status} 19805ac_clean_files_save=$ac_clean_files 19806ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19807{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 19808echo "$as_me: creating $CONFIG_STATUS" >&6;} 19809cat >$CONFIG_STATUS <<_ACEOF 19810#! $SHELL 19811# Generated by $as_me. 19812# Run this file to recreate the current configuration. 19813# Compiler output produced by configure, useful for debugging 19814# configure, is in config.log if it exists. 19815 19816debug=false 19817ac_cs_recheck=false 19818ac_cs_silent=false 19819SHELL=\${CONFIG_SHELL-$SHELL} 19820_ACEOF 19821 19822cat >>$CONFIG_STATUS <<\_ACEOF 19823## --------------------- ## 19824## M4sh Initialization. ## 19825## --------------------- ## 19826 19827# Be more Bourne compatible 19828DUALCASE=1; export DUALCASE # for MKS sh 19829if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 19830 emulate sh 19831 NULLCMD=: 19832 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19833 # is contrary to our usage. Disable this feature. 19834 alias -g '${1+"$@"}'='"$@"' 19835 setopt NO_GLOB_SUBST 19836else 19837 case `(set -o) 2>/dev/null` in 19838 *posix*) set -o posix ;; 19839esac 19840 19841fi 19842 19843 19844 19845 19846# PATH needs CR 19847# Avoid depending upon Character Ranges. 19848as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19849as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19850as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19851as_cr_digits='0123456789' 19852as_cr_alnum=$as_cr_Letters$as_cr_digits 19853 19854# The user is always right. 19855if test "${PATH_SEPARATOR+set}" != set; then 19856 echo "#! /bin/sh" >conf$$.sh 19857 echo "exit 0" >>conf$$.sh 19858 chmod +x conf$$.sh 19859 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 19860 PATH_SEPARATOR=';' 19861 else 19862 PATH_SEPARATOR=: 19863 fi 19864 rm -f conf$$.sh 19865fi 19866 19867# Support unset when possible. 19868if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 19869 as_unset=unset 19870else 19871 as_unset=false 19872fi 19873 19874 19875# IFS 19876# We need space, tab and new line, in precisely that order. Quoting is 19877# there to prevent editors from complaining about space-tab. 19878# (If _AS_PATH_WALK were called with IFS unset, it would disable word 19879# splitting by setting IFS to empty value.) 19880as_nl=' 19881' 19882IFS=" "" $as_nl" 19883 19884# Find who we are. Look in the path if we contain no directory separator. 19885case $0 in 19886 *[\\/]* ) as_myself=$0 ;; 19887 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19888for as_dir in $PATH 19889do 19890 IFS=$as_save_IFS 19891 test -z "$as_dir" && as_dir=. 19892 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 19893done 19894IFS=$as_save_IFS 19895 19896 ;; 19897esac 19898# We did not find ourselves, most probably we were run as `sh COMMAND' 19899# in which case we are not to be found in the path. 19900if test "x$as_myself" = x; then 19901 as_myself=$0 19902fi 19903if test ! -f "$as_myself"; then 19904 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19905 { (exit 1); exit 1; } 19906fi 19907 19908# Work around bugs in pre-3.0 UWIN ksh. 19909for as_var in ENV MAIL MAILPATH 19910do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 19911done 19912PS1='$ ' 19913PS2='> ' 19914PS4='+ ' 19915 19916# NLS nuisances. 19917for as_var in \ 19918 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 19919 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 19920 LC_TELEPHONE LC_TIME 19921do 19922 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 19923 eval $as_var=C; export $as_var 19924 else 19925 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 19926 fi 19927done 19928 19929# Required to use basename. 19930if expr a : '\(a\)' >/dev/null 2>&1 && 19931 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19932 as_expr=expr 19933else 19934 as_expr=false 19935fi 19936 19937if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19938 as_basename=basename 19939else 19940 as_basename=false 19941fi 19942 19943 19944# Name of the executable. 19945as_me=`$as_basename -- "$0" || 19946$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19947 X"$0" : 'X\(//\)$' \| \ 19948 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19949echo X/"$0" | 19950 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19951 s//\1/ 19952 q 19953 } 19954 /^X\/\(\/\/\)$/{ 19955 s//\1/ 19956 q 19957 } 19958 /^X\/\(\/\).*/{ 19959 s//\1/ 19960 q 19961 } 19962 s/.*/./; q'` 19963 19964# CDPATH. 19965$as_unset CDPATH 19966 19967 19968 19969 as_lineno_1=$LINENO 19970 as_lineno_2=$LINENO 19971 test "x$as_lineno_1" != "x$as_lineno_2" && 19972 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 19973 19974 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 19975 # uniformly replaced by the line number. The first 'sed' inserts a 19976 # line-number line after each line using $LINENO; the second 'sed' 19977 # does the real work. The second script uses 'N' to pair each 19978 # line-number line with the line containing $LINENO, and appends 19979 # trailing '-' during substitution so that $LINENO is not a special 19980 # case at line end. 19981 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 19982 # scripts with optimization help from Paolo Bonzini. Blame Lee 19983 # E. McMahon (1931-1989) for sed's syntax. :-) 19984 sed -n ' 19985 p 19986 /[$]LINENO/= 19987 ' <$as_myself | 19988 sed ' 19989 s/[$]LINENO.*/&-/ 19990 t lineno 19991 b 19992 :lineno 19993 N 19994 :loop 19995 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 19996 t loop 19997 s/-\n.*// 19998 ' >$as_me.lineno && 19999 chmod +x "$as_me.lineno" || 20000 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 20001 { (exit 1); exit 1; }; } 20002 20003 # Don't try to exec as it changes $[0], causing all sort of problems 20004 # (the dirname of $[0] is not the place where we might find the 20005 # original and so on. Autoconf is especially sensitive to this). 20006 . "./$as_me.lineno" 20007 # Exit status is that of the last command. 20008 exit 20009} 20010 20011 20012if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20013 as_dirname=dirname 20014else 20015 as_dirname=false 20016fi 20017 20018ECHO_C= ECHO_N= ECHO_T= 20019case `echo -n x` in 20020-n*) 20021 case `echo 'x\c'` in 20022 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20023 *) ECHO_C='\c';; 20024 esac;; 20025*) 20026 ECHO_N='-n';; 20027esac 20028 20029if expr a : '\(a\)' >/dev/null 2>&1 && 20030 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20031 as_expr=expr 20032else 20033 as_expr=false 20034fi 20035 20036rm -f conf$$ conf$$.exe conf$$.file 20037if test -d conf$$.dir; then 20038 rm -f conf$$.dir/conf$$.file 20039else 20040 rm -f conf$$.dir 20041 mkdir conf$$.dir 20042fi 20043echo >conf$$.file 20044if ln -s conf$$.file conf$$ 2>/dev/null; then 20045 as_ln_s='ln -s' 20046 # ... but there are two gotchas: 20047 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20048 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20049 # In both cases, we have to default to `cp -p'. 20050 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20051 as_ln_s='cp -p' 20052elif ln conf$$.file conf$$ 2>/dev/null; then 20053 as_ln_s=ln 20054else 20055 as_ln_s='cp -p' 20056fi 20057rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20058rmdir conf$$.dir 2>/dev/null 20059 20060if mkdir -p . 2>/dev/null; then 20061 as_mkdir_p=: 20062else 20063 test -d ./-p && rmdir ./-p 20064 as_mkdir_p=false 20065fi 20066 20067if test -x / >/dev/null 2>&1; then 20068 as_test_x='test -x' 20069else 20070 if ls -dL / >/dev/null 2>&1; then 20071 as_ls_L_option=L 20072 else 20073 as_ls_L_option= 20074 fi 20075 as_test_x=' 20076 eval sh -c '\'' 20077 if test -d "$1"; then 20078 test -d "$1/."; 20079 else 20080 case $1 in 20081 -*)set "./$1";; 20082 esac; 20083 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 20084 ???[sx]*):;;*)false;;esac;fi 20085 '\'' sh 20086 ' 20087fi 20088as_executable_p=$as_test_x 20089 20090# Sed expression to map a string onto a valid CPP name. 20091as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20092 20093# Sed expression to map a string onto a valid variable name. 20094as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20095 20096 20097exec 6>&1 20098 20099# Save the log message, to keep $[0] and so on meaningful, and to 20100# report actual input values of CONFIG_FILES etc. instead of their 20101# values after options handling. 20102ac_log=" 20103This file was extended by $as_me, which was 20104generated by GNU Autoconf 2.61. Invocation command line was 20105 20106 CONFIG_FILES = $CONFIG_FILES 20107 CONFIG_HEADERS = $CONFIG_HEADERS 20108 CONFIG_LINKS = $CONFIG_LINKS 20109 CONFIG_COMMANDS = $CONFIG_COMMANDS 20110 $ $0 $@ 20111 20112on `(hostname || uname -n) 2>/dev/null | sed 1q` 20113" 20114 20115_ACEOF 20116 20117cat >>$CONFIG_STATUS <<_ACEOF 20118# Files that config.status was made for. 20119config_files="$ac_config_files" 20120config_headers="$ac_config_headers" 20121config_commands="$ac_config_commands" 20122 20123_ACEOF 20124 20125cat >>$CONFIG_STATUS <<\_ACEOF 20126ac_cs_usage="\ 20127\`$as_me' instantiates files from templates according to the 20128current configuration. 20129 20130Usage: $0 [OPTIONS] [FILE]... 20131 20132 -h, --help print this help, then exit 20133 -V, --version print version number and configuration settings, then exit 20134 -q, --quiet do not print progress messages 20135 -d, --debug don't remove temporary files 20136 --recheck update $as_me by reconfiguring in the same conditions 20137 --file=FILE[:TEMPLATE] 20138 instantiate the configuration file FILE 20139 --header=FILE[:TEMPLATE] 20140 instantiate the configuration header FILE 20141 20142Configuration files: 20143$config_files 20144 20145Configuration headers: 20146$config_headers 20147 20148Configuration commands: 20149$config_commands 20150 20151Report bugs to <bug-autoconf@gnu.org>." 20152 20153_ACEOF 20154cat >>$CONFIG_STATUS <<_ACEOF 20155ac_cs_version="\\ 20156config.status 20157configured by $0, generated by GNU Autoconf 2.61, 20158 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 20159 20160Copyright (C) 2006 Free Software Foundation, Inc. 20161This config.status script is free software; the Free Software Foundation 20162gives unlimited permission to copy, distribute and modify it." 20163 20164ac_pwd='$ac_pwd' 20165srcdir='$srcdir' 20166INSTALL='$INSTALL' 20167_ACEOF 20168 20169cat >>$CONFIG_STATUS <<\_ACEOF 20170# If no file are specified by the user, then we need to provide default 20171# value. By we need to know if files were specified by the user. 20172ac_need_defaults=: 20173while test $# != 0 20174do 20175 case $1 in 20176 --*=*) 20177 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20178 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20179 ac_shift=: 20180 ;; 20181 *) 20182 ac_option=$1 20183 ac_optarg=$2 20184 ac_shift=shift 20185 ;; 20186 esac 20187 20188 case $ac_option in 20189 # Handling of the options. 20190 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20191 ac_cs_recheck=: ;; 20192 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20193 echo "$ac_cs_version"; exit ;; 20194 --debug | --debu | --deb | --de | --d | -d ) 20195 debug=: ;; 20196 --file | --fil | --fi | --f ) 20197 $ac_shift 20198 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 20199 ac_need_defaults=false;; 20200 --header | --heade | --head | --hea ) 20201 $ac_shift 20202 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 20203 ac_need_defaults=false;; 20204 --he | --h) 20205 # Conflict between --help and --header 20206 { echo "$as_me: error: ambiguous option: $1 20207Try \`$0 --help' for more information." >&2 20208 { (exit 1); exit 1; }; };; 20209 --help | --hel | -h ) 20210 echo "$ac_cs_usage"; exit ;; 20211 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20212 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20213 ac_cs_silent=: ;; 20214 20215 # This is an error. 20216 -*) { echo "$as_me: error: unrecognized option: $1 20217Try \`$0 --help' for more information." >&2 20218 { (exit 1); exit 1; }; } ;; 20219 20220 *) ac_config_targets="$ac_config_targets $1" 20221 ac_need_defaults=false ;; 20222 20223 esac 20224 shift 20225done 20226 20227ac_configure_extra_args= 20228 20229if $ac_cs_silent; then 20230 exec 6>/dev/null 20231 ac_configure_extra_args="$ac_configure_extra_args --silent" 20232fi 20233 20234_ACEOF 20235cat >>$CONFIG_STATUS <<_ACEOF 20236if \$ac_cs_recheck; then 20237 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 20238 CONFIG_SHELL=$SHELL 20239 export CONFIG_SHELL 20240 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20241fi 20242 20243_ACEOF 20244cat >>$CONFIG_STATUS <<\_ACEOF 20245exec 5>>config.log 20246{ 20247 echo 20248 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20249## Running $as_me. ## 20250_ASBOX 20251 echo "$ac_log" 20252} >&5 20253 20254_ACEOF 20255cat >>$CONFIG_STATUS <<_ACEOF 20256# 20257# INIT-COMMANDS 20258# 20259AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 20260 20261_ACEOF 20262 20263cat >>$CONFIG_STATUS <<\_ACEOF 20264 20265# Handling of arguments. 20266for ac_config_target in $ac_config_targets 20267do 20268 case $ac_config_target in 20269 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 20270 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20271 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20272 "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;; 20273 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 20274 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 20275 "src/cryptofs/Makefile") CONFIG_FILES="$CONFIG_FILES src/cryptofs/Makefile" ;; 20276 "src/lufs/Makefile") CONFIG_FILES="$CONFIG_FILES src/lufs/Makefile" ;; 20277 "src/fuse/Makefile") CONFIG_FILES="$CONFIG_FILES src/fuse/Makefile" ;; 20278 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 20279 "tests/cryptofs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/cryptofs/Makefile" ;; 20280 "tests/fuse/Makefile") CONFIG_FILES="$CONFIG_FILES tests/fuse/Makefile" ;; 20281 20282 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 20283echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 20284 { (exit 1); exit 1; }; };; 20285 esac 20286done 20287 20288 20289# If the user did not use the arguments to specify the items to instantiate, 20290# then the envvar interface is used. Set only those that are not. 20291# We use the long form for the default assignment because of an extremely 20292# bizarre bug on SunOS 4.1.3. 20293if $ac_need_defaults; then 20294 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 20295 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 20296 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 20297fi 20298 20299# Have a temporary directory for convenience. Make it in the build tree 20300# simply because there is no reason against having it here, and in addition, 20301# creating and moving files from /tmp can sometimes cause problems. 20302# Hook for its removal unless debugging. 20303# Note that there is a small window in which the directory will not be cleaned: 20304# after its creation but before its name has been assigned to `$tmp'. 20305$debug || 20306{ 20307 tmp= 20308 trap 'exit_status=$? 20309 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 20310' 0 20311 trap '{ (exit 1); exit 1; }' 1 2 13 15 20312} 20313# Create a (secure) tmp directory for tmp files. 20314 20315{ 20316 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20317 test -n "$tmp" && test -d "$tmp" 20318} || 20319{ 20320 tmp=./conf$$-$RANDOM 20321 (umask 077 && mkdir "$tmp") 20322} || 20323{ 20324 echo "$me: cannot create a temporary directory in ." >&2 20325 { (exit 1); exit 1; } 20326} 20327 20328# 20329# Set up the sed scripts for CONFIG_FILES section. 20330# 20331 20332# No need to generate the scripts if there are no CONFIG_FILES. 20333# This happens for instance when ./config.status config.h 20334if test -n "$CONFIG_FILES"; then 20335 20336_ACEOF 20337 20338 20339 20340ac_delim='%!_!# ' 20341for ac_last_try in false false false false false :; do 20342 cat >conf$$subs.sed <<_ACEOF 20343SHELL!$SHELL$ac_delim 20344PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 20345PACKAGE_NAME!$PACKAGE_NAME$ac_delim 20346PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 20347PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 20348PACKAGE_STRING!$PACKAGE_STRING$ac_delim 20349PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 20350exec_prefix!$exec_prefix$ac_delim 20351prefix!$prefix$ac_delim 20352program_transform_name!$program_transform_name$ac_delim 20353bindir!$bindir$ac_delim 20354sbindir!$sbindir$ac_delim 20355libexecdir!$libexecdir$ac_delim 20356datarootdir!$datarootdir$ac_delim 20357datadir!$datadir$ac_delim 20358sysconfdir!$sysconfdir$ac_delim 20359sharedstatedir!$sharedstatedir$ac_delim 20360localstatedir!$localstatedir$ac_delim 20361includedir!$includedir$ac_delim 20362oldincludedir!$oldincludedir$ac_delim 20363docdir!$docdir$ac_delim 20364infodir!$infodir$ac_delim 20365htmldir!$htmldir$ac_delim 20366dvidir!$dvidir$ac_delim 20367pdfdir!$pdfdir$ac_delim 20368psdir!$psdir$ac_delim 20369libdir!$libdir$ac_delim 20370localedir!$localedir$ac_delim 20371mandir!$mandir$ac_delim 20372DEFS!$DEFS$ac_delim 20373ECHO_C!$ECHO_C$ac_delim 20374ECHO_N!$ECHO_N$ac_delim 20375ECHO_T!$ECHO_T$ac_delim 20376LIBS!$LIBS$ac_delim 20377build_alias!$build_alias$ac_delim 20378host_alias!$host_alias$ac_delim 20379target_alias!$target_alias$ac_delim 20380build!$build$ac_delim 20381build_cpu!$build_cpu$ac_delim 20382build_vendor!$build_vendor$ac_delim 20383build_os!$build_os$ac_delim 20384host!$host$ac_delim 20385host_cpu!$host_cpu$ac_delim 20386host_vendor!$host_vendor$ac_delim 20387host_os!$host_os$ac_delim 20388target!$target$ac_delim 20389target_cpu!$target_cpu$ac_delim 20390target_vendor!$target_vendor$ac_delim 20391target_os!$target_os$ac_delim 20392INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 20393INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 20394INSTALL_DATA!$INSTALL_DATA$ac_delim 20395CYGPATH_W!$CYGPATH_W$ac_delim 20396PACKAGE!$PACKAGE$ac_delim 20397VERSION!$VERSION$ac_delim 20398ACLOCAL!$ACLOCAL$ac_delim 20399AUTOCONF!$AUTOCONF$ac_delim 20400AUTOMAKE!$AUTOMAKE$ac_delim 20401AUTOHEADER!$AUTOHEADER$ac_delim 20402MAKEINFO!$MAKEINFO$ac_delim 20403AMTAR!$AMTAR$ac_delim 20404install_sh!$install_sh$ac_delim 20405STRIP!$STRIP$ac_delim 20406INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 20407AWK!$AWK$ac_delim 20408SET_MAKE!$SET_MAKE$ac_delim 20409am__leading_dot!$am__leading_dot$ac_delim 20410CC!$CC$ac_delim 20411CFLAGS!$CFLAGS$ac_delim 20412LDFLAGS!$LDFLAGS$ac_delim 20413CPPFLAGS!$CPPFLAGS$ac_delim 20414ac_ct_CC!$ac_ct_CC$ac_delim 20415EXEEXT!$EXEEXT$ac_delim 20416OBJEXT!$OBJEXT$ac_delim 20417DEPDIR!$DEPDIR$ac_delim 20418am__include!$am__include$ac_delim 20419am__quote!$am__quote$ac_delim 20420AMDEP_TRUE!$AMDEP_TRUE$ac_delim 20421AMDEP_FALSE!$AMDEP_FALSE$ac_delim 20422AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 20423CCDEPMODE!$CCDEPMODE$ac_delim 20424am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 20425am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 20426GREP!$GREP$ac_delim 20427EGREP!$EGREP$ac_delim 20428LN_S!$LN_S$ac_delim 20429ECHO!$ECHO$ac_delim 20430AR!$AR$ac_delim 20431RANLIB!$RANLIB$ac_delim 20432CPP!$CPP$ac_delim 20433CXX!$CXX$ac_delim 20434CXXFLAGS!$CXXFLAGS$ac_delim 20435ac_ct_CXX!$ac_ct_CXX$ac_delim 20436CXXDEPMODE!$CXXDEPMODE$ac_delim 20437am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim 20438am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim 20439CXXCPP!$CXXCPP$ac_delim 20440_ACEOF 20441 20442 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 20443 break 20444 elif $ac_last_try; then 20445 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 20446echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 20447 { (exit 1); exit 1; }; } 20448 else 20449 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20450 fi 20451done 20452 20453ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 20454if test -n "$ac_eof"; then 20455 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 20456 ac_eof=`expr $ac_eof + 1` 20457fi 20458 20459cat >>$CONFIG_STATUS <<_ACEOF 20460cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 20461/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20462_ACEOF 20463sed ' 20464s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 20465s/^/s,@/; s/!/@,|#_!!_#|/ 20466:n 20467t n 20468s/'"$ac_delim"'$/,g/; t 20469s/$/\\/; p 20470N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 20471' >>$CONFIG_STATUS <conf$$subs.sed 20472rm -f conf$$subs.sed 20473cat >>$CONFIG_STATUS <<_ACEOF 20474CEOF$ac_eof 20475_ACEOF 20476 20477 20478ac_delim='%!_!# ' 20479for ac_last_try in false false false false false :; do 20480 cat >conf$$subs.sed <<_ACEOF 20481F77!$F77$ac_delim 20482FFLAGS!$FFLAGS$ac_delim 20483ac_ct_F77!$ac_ct_F77$ac_delim 20484LIBTOOL!$LIBTOOL$ac_delim 20485LIBGCRYPT_CONFIG!$LIBGCRYPT_CONFIG$ac_delim 20486LIBGCRYPT_CFLAGS!$LIBGCRYPT_CFLAGS$ac_delim 20487LIBGCRYPT_LIBS!$LIBGCRYPT_LIBS$ac_delim 20488PKG_CONFIG!$PKG_CONFIG$ac_delim 20489GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim 20490GLIB_LIBS!$GLIB_LIBS$ac_delim 20491BUILD_LUFS_TRUE!$BUILD_LUFS_TRUE$ac_delim 20492BUILD_LUFS_FALSE!$BUILD_LUFS_FALSE$ac_delim 20493FUSE_CFLAGS!$FUSE_CFLAGS$ac_delim 20494FUSE_LIBS!$FUSE_LIBS$ac_delim 20495BUILD_FUSE_TRUE!$BUILD_FUSE_TRUE$ac_delim 20496BUILD_FUSE_FALSE!$BUILD_FUSE_FALSE$ac_delim 20497have_pinentry!$have_pinentry$ac_delim 20498WITH_PINENTRY_TRUE!$WITH_PINENTRY_TRUE$ac_delim 20499WITH_PINENTRY_FALSE!$WITH_PINENTRY_FALSE$ac_delim 20500LIBOBJS!$LIBOBJS$ac_delim 20501LTLIBOBJS!$LTLIBOBJS$ac_delim 20502_ACEOF 20503 20504 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 21; then 20505 break 20506 elif $ac_last_try; then 20507 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 20508echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 20509 { (exit 1); exit 1; }; } 20510 else 20511 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20512 fi 20513done 20514 20515ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 20516if test -n "$ac_eof"; then 20517 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 20518 ac_eof=`expr $ac_eof + 1` 20519fi 20520 20521cat >>$CONFIG_STATUS <<_ACEOF 20522cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 20523/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 20524_ACEOF 20525sed ' 20526s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 20527s/^/s,@/; s/!/@,|#_!!_#|/ 20528:n 20529t n 20530s/'"$ac_delim"'$/,g/; t 20531s/$/\\/; p 20532N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 20533' >>$CONFIG_STATUS <conf$$subs.sed 20534rm -f conf$$subs.sed 20535cat >>$CONFIG_STATUS <<_ACEOF 20536:end 20537s/|#_!!_#|//g 20538CEOF$ac_eof 20539_ACEOF 20540 20541 20542# VPATH may cause trouble with some makes, so we remove $(srcdir), 20543# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 20544# trailing colons and then remove the whole line if VPATH becomes empty 20545# (actually we leave an empty line to preserve line numbers). 20546if test "x$srcdir" = x.; then 20547 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 20548s/:*\$(srcdir):*/:/ 20549s/:*\${srcdir}:*/:/ 20550s/:*@srcdir@:*/:/ 20551s/^\([^=]*=[ ]*\):*/\1/ 20552s/:*$// 20553s/^[^=]*=[ ]*$// 20554}' 20555fi 20556 20557cat >>$CONFIG_STATUS <<\_ACEOF 20558fi # test -n "$CONFIG_FILES" 20559 20560 20561for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 20562do 20563 case $ac_tag in 20564 :[FHLC]) ac_mode=$ac_tag; continue;; 20565 esac 20566 case $ac_mode$ac_tag in 20567 :[FHL]*:*);; 20568 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 20569echo "$as_me: error: Invalid tag $ac_tag." >&2;} 20570 { (exit 1); exit 1; }; };; 20571 :[FH]-) ac_tag=-:-;; 20572 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20573 esac 20574 ac_save_IFS=$IFS 20575 IFS=: 20576 set x $ac_tag 20577 IFS=$ac_save_IFS 20578 shift 20579 ac_file=$1 20580 shift 20581 20582 case $ac_mode in 20583 :L) ac_source=$1;; 20584 :[FH]) 20585 ac_file_inputs= 20586 for ac_f 20587 do 20588 case $ac_f in 20589 -) ac_f="$tmp/stdin";; 20590 *) # Look for the file first in the build tree, then in the source tree 20591 # (if the path is not absolute). The absolute path cannot be DOS-style, 20592 # because $ac_f cannot contain `:'. 20593 test -f "$ac_f" || 20594 case $ac_f in 20595 [\\/$]*) false;; 20596 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20597 esac || 20598 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 20599echo "$as_me: error: cannot find input file: $ac_f" >&2;} 20600 { (exit 1); exit 1; }; };; 20601 esac 20602 ac_file_inputs="$ac_file_inputs $ac_f" 20603 done 20604 20605 # Let's still pretend it is `configure' which instantiates (i.e., don't 20606 # use $as_me), people would be surprised to read: 20607 # /* config.h. Generated by config.status. */ 20608 configure_input="Generated from "`IFS=: 20609 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 20610 if test x"$ac_file" != x-; then 20611 configure_input="$ac_file. $configure_input" 20612 { echo "$as_me:$LINENO: creating $ac_file" >&5 20613echo "$as_me: creating $ac_file" >&6;} 20614 fi 20615 20616 case $ac_tag in 20617 *:-:* | *:-) cat >"$tmp/stdin";; 20618 esac 20619 ;; 20620 esac 20621 20622 ac_dir=`$as_dirname -- "$ac_file" || 20623$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20624 X"$ac_file" : 'X\(//\)[^/]' \| \ 20625 X"$ac_file" : 'X\(//\)$' \| \ 20626 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20627echo X"$ac_file" | 20628 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20629 s//\1/ 20630 q 20631 } 20632 /^X\(\/\/\)[^/].*/{ 20633 s//\1/ 20634 q 20635 } 20636 /^X\(\/\/\)$/{ 20637 s//\1/ 20638 q 20639 } 20640 /^X\(\/\).*/{ 20641 s//\1/ 20642 q 20643 } 20644 s/.*/./; q'` 20645 { as_dir="$ac_dir" 20646 case $as_dir in #( 20647 -*) as_dir=./$as_dir;; 20648 esac 20649 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 20650 as_dirs= 20651 while :; do 20652 case $as_dir in #( 20653 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 20654 *) as_qdir=$as_dir;; 20655 esac 20656 as_dirs="'$as_qdir' $as_dirs" 20657 as_dir=`$as_dirname -- "$as_dir" || 20658$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20659 X"$as_dir" : 'X\(//\)[^/]' \| \ 20660 X"$as_dir" : 'X\(//\)$' \| \ 20661 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20662echo X"$as_dir" | 20663 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20664 s//\1/ 20665 q 20666 } 20667 /^X\(\/\/\)[^/].*/{ 20668 s//\1/ 20669 q 20670 } 20671 /^X\(\/\/\)$/{ 20672 s//\1/ 20673 q 20674 } 20675 /^X\(\/\).*/{ 20676 s//\1/ 20677 q 20678 } 20679 s/.*/./; q'` 20680 test -d "$as_dir" && break 20681 done 20682 test -z "$as_dirs" || eval "mkdir $as_dirs" 20683 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 20684echo "$as_me: error: cannot create directory $as_dir" >&2;} 20685 { (exit 1); exit 1; }; }; } 20686 ac_builddir=. 20687 20688case "$ac_dir" in 20689.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20690*) 20691 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 20692 # A ".." for each directory in $ac_dir_suffix. 20693 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 20694 case $ac_top_builddir_sub in 20695 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20696 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20697 esac ;; 20698esac 20699ac_abs_top_builddir=$ac_pwd 20700ac_abs_builddir=$ac_pwd$ac_dir_suffix 20701# for backward compatibility: 20702ac_top_builddir=$ac_top_build_prefix 20703 20704case $srcdir in 20705 .) # We are building in place. 20706 ac_srcdir=. 20707 ac_top_srcdir=$ac_top_builddir_sub 20708 ac_abs_top_srcdir=$ac_pwd ;; 20709 [\\/]* | ?:[\\/]* ) # Absolute name. 20710 ac_srcdir=$srcdir$ac_dir_suffix; 20711 ac_top_srcdir=$srcdir 20712 ac_abs_top_srcdir=$srcdir ;; 20713 *) # Relative name. 20714 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20715 ac_top_srcdir=$ac_top_build_prefix$srcdir 20716 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20717esac 20718ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20719 20720 20721 case $ac_mode in 20722 :F) 20723 # 20724 # CONFIG_FILE 20725 # 20726 20727 case $INSTALL in 20728 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20729 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20730 esac 20731_ACEOF 20732 20733cat >>$CONFIG_STATUS <<\_ACEOF 20734# If the template does not know about datarootdir, expand it. 20735# FIXME: This hack should be removed a few years after 2.60. 20736ac_datarootdir_hack=; ac_datarootdir_seen= 20737 20738case `sed -n '/datarootdir/ { 20739 p 20740 q 20741} 20742/@datadir@/p 20743/@docdir@/p 20744/@infodir@/p 20745/@localedir@/p 20746/@mandir@/p 20747' $ac_file_inputs` in 20748*datarootdir*) ac_datarootdir_seen=yes;; 20749*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20750 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20751echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20752_ACEOF 20753cat >>$CONFIG_STATUS <<_ACEOF 20754 ac_datarootdir_hack=' 20755 s&@datadir@&$datadir&g 20756 s&@docdir@&$docdir&g 20757 s&@infodir@&$infodir&g 20758 s&@localedir@&$localedir&g 20759 s&@mandir@&$mandir&g 20760 s&\\\${datarootdir}&$datarootdir&g' ;; 20761esac 20762_ACEOF 20763 20764# Neutralize VPATH when `$srcdir' = `.'. 20765# Shell code in configure.ac might set extrasub. 20766# FIXME: do we really want to maintain this feature? 20767cat >>$CONFIG_STATUS <<_ACEOF 20768 sed "$ac_vpsub 20769$extrasub 20770_ACEOF 20771cat >>$CONFIG_STATUS <<\_ACEOF 20772:t 20773/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20774s&@configure_input@&$configure_input&;t t 20775s&@top_builddir@&$ac_top_builddir_sub&;t t 20776s&@srcdir@&$ac_srcdir&;t t 20777s&@abs_srcdir@&$ac_abs_srcdir&;t t 20778s&@top_srcdir@&$ac_top_srcdir&;t t 20779s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20780s&@builddir@&$ac_builddir&;t t 20781s&@abs_builddir@&$ac_abs_builddir&;t t 20782s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20783s&@INSTALL@&$ac_INSTALL&;t t 20784$ac_datarootdir_hack 20785" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 20786 20787test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20788 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 20789 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 20790 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20791which seems to be undefined. Please make sure it is defined." >&5 20792echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20793which seems to be undefined. Please make sure it is defined." >&2;} 20794 20795 rm -f "$tmp/stdin" 20796 case $ac_file in 20797 -) cat "$tmp/out"; rm -f "$tmp/out";; 20798 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 20799 esac 20800 ;; 20801 :H) 20802 # 20803 # CONFIG_HEADER 20804 # 20805_ACEOF 20806 20807# Transform confdefs.h into a sed script `conftest.defines', that 20808# substitutes the proper values into config.h.in to produce config.h. 20809rm -f conftest.defines conftest.tail 20810# First, append a space to every undef/define line, to ease matching. 20811echo 's/$/ /' >conftest.defines 20812# Then, protect against being on the right side of a sed subst, or in 20813# an unquoted here document, in config.status. If some macros were 20814# called several times there might be several #defines for the same 20815# symbol, which is useless. But do not sort them, since the last 20816# AC_DEFINE must be honored. 20817ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 20818# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 20819# NAME is the cpp macro being defined, VALUE is the value it is being given. 20820# PARAMS is the parameter list in the macro definition--in most cases, it's 20821# just an empty string. 20822ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 20823ac_dB='\\)[ (].*,\\1define\\2' 20824ac_dC=' ' 20825ac_dD=' ,' 20826 20827uniq confdefs.h | 20828 sed -n ' 20829 t rset 20830 :rset 20831 s/^[ ]*#[ ]*define[ ][ ]*// 20832 t ok 20833 d 20834 :ok 20835 s/[\\&,]/\\&/g 20836 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 20837 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 20838 ' >>conftest.defines 20839 20840# Remove the space that was appended to ease matching. 20841# Then replace #undef with comments. This is necessary, for 20842# example, in the case of _POSIX_SOURCE, which is predefined and required 20843# on some systems where configure will not decide to define it. 20844# (The regexp can be short, since the line contains either #define or #undef.) 20845echo 's/ $// 20846s,^[ #]*u.*,/* & */,' >>conftest.defines 20847 20848# Break up conftest.defines: 20849ac_max_sed_lines=50 20850 20851# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 20852# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 20853# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 20854# et cetera. 20855ac_in='$ac_file_inputs' 20856ac_out='"$tmp/out1"' 20857ac_nxt='"$tmp/out2"' 20858 20859while : 20860do 20861 # Write a here document: 20862 cat >>$CONFIG_STATUS <<_ACEOF 20863 # First, check the format of the line: 20864 cat >"\$tmp/defines.sed" <<\\CEOF 20865/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 20866/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 20867b 20868:def 20869_ACEOF 20870 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 20871 echo 'CEOF 20872 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 20873 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 20874 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 20875 grep . conftest.tail >/dev/null || break 20876 rm -f conftest.defines 20877 mv conftest.tail conftest.defines 20878done 20879rm -f conftest.defines conftest.tail 20880 20881echo "ac_result=$ac_in" >>$CONFIG_STATUS 20882cat >>$CONFIG_STATUS <<\_ACEOF 20883 if test x"$ac_file" != x-; then 20884 echo "/* $configure_input */" >"$tmp/config.h" 20885 cat "$ac_result" >>"$tmp/config.h" 20886 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 20887 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 20888echo "$as_me: $ac_file is unchanged" >&6;} 20889 else 20890 rm -f $ac_file 20891 mv "$tmp/config.h" $ac_file 20892 fi 20893 else 20894 echo "/* $configure_input */" 20895 cat "$ac_result" 20896 fi 20897 rm -f "$tmp/out12" 20898# Compute $ac_file's index in $config_headers. 20899_am_stamp_count=1 20900for _am_header in $config_headers :; do 20901 case $_am_header in 20902 $ac_file | $ac_file:* ) 20903 break ;; 20904 * ) 20905 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 20906 esac 20907done 20908echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || 20909$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20910 X$ac_file : 'X\(//\)[^/]' \| \ 20911 X$ac_file : 'X\(//\)$' \| \ 20912 X$ac_file : 'X\(/\)' \| . 2>/dev/null || 20913echo X$ac_file | 20914 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20915 s//\1/ 20916 q 20917 } 20918 /^X\(\/\/\)[^/].*/{ 20919 s//\1/ 20920 q 20921 } 20922 /^X\(\/\/\)$/{ 20923 s//\1/ 20924 q 20925 } 20926 /^X\(\/\).*/{ 20927 s//\1/ 20928 q 20929 } 20930 s/.*/./; q'`/stamp-h$_am_stamp_count 20931 ;; 20932 20933 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 20934echo "$as_me: executing $ac_file commands" >&6;} 20935 ;; 20936 esac 20937 20938 20939 case $ac_file$ac_mode in 20940 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 20941 # Strip MF so we end up with the name of the file. 20942 mf=`echo "$mf" | sed -e 's/:.*$//'` 20943 # Check whether this is an Automake generated Makefile or not. 20944 # We used to match only the files named `Makefile.in', but 20945 # some people rename them; so instead we look at the file content. 20946 # Grep'ing the first line is not enough: some people post-process 20947 # each Makefile.in and add a new line on top of each file to say so. 20948 # So let's grep whole file. 20949 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 20950 dirpart=`$as_dirname -- "$mf" || 20951$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20952 X"$mf" : 'X\(//\)[^/]' \| \ 20953 X"$mf" : 'X\(//\)$' \| \ 20954 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 20955echo X"$mf" | 20956 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20957 s//\1/ 20958 q 20959 } 20960 /^X\(\/\/\)[^/].*/{ 20961 s//\1/ 20962 q 20963 } 20964 /^X\(\/\/\)$/{ 20965 s//\1/ 20966 q 20967 } 20968 /^X\(\/\).*/{ 20969 s//\1/ 20970 q 20971 } 20972 s/.*/./; q'` 20973 else 20974 continue 20975 fi 20976 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue 20977 # Extract the definition of DEP_FILES from the Makefile without 20978 # running `make'. 20979 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` 20980 test -z "$DEPDIR" && continue 20981 # When using ansi2knr, U may be empty or an underscore; expand it 20982 U=`sed -n -e '/^U = / s///p' < "$mf"` 20983 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" 20984 # We invoke sed twice because it is the simplest approach to 20985 # changing $(DEPDIR) to its actual value in the expansion. 20986 for file in `sed -n -e ' 20987 /^DEP_FILES = .*\\\\$/ { 20988 s/^DEP_FILES = // 20989 :loop 20990 s/\\\\$// 20991 p 20992 n 20993 /\\\\$/ b loop 20994 p 20995 } 20996 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ 20997 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 20998 # Make sure the directory exists. 20999 test -f "$dirpart/$file" && continue 21000 fdir=`$as_dirname -- "$file" || 21001$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21002 X"$file" : 'X\(//\)[^/]' \| \ 21003 X"$file" : 'X\(//\)$' \| \ 21004 X"$file" : 'X\(/\)' \| . 2>/dev/null || 21005echo X"$file" | 21006 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21007 s//\1/ 21008 q 21009 } 21010 /^X\(\/\/\)[^/].*/{ 21011 s//\1/ 21012 q 21013 } 21014 /^X\(\/\/\)$/{ 21015 s//\1/ 21016 q 21017 } 21018 /^X\(\/\).*/{ 21019 s//\1/ 21020 q 21021 } 21022 s/.*/./; q'` 21023 { as_dir=$dirpart/$fdir 21024 case $as_dir in #( 21025 -*) as_dir=./$as_dir;; 21026 esac 21027 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 21028 as_dirs= 21029 while :; do 21030 case $as_dir in #( 21031 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 21032 *) as_qdir=$as_dir;; 21033 esac 21034 as_dirs="'$as_qdir' $as_dirs" 21035 as_dir=`$as_dirname -- "$as_dir" || 21036$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21037 X"$as_dir" : 'X\(//\)[^/]' \| \ 21038 X"$as_dir" : 'X\(//\)$' \| \ 21039 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21040echo X"$as_dir" | 21041 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21042 s//\1/ 21043 q 21044 } 21045 /^X\(\/\/\)[^/].*/{ 21046 s//\1/ 21047 q 21048 } 21049 /^X\(\/\/\)$/{ 21050 s//\1/ 21051 q 21052 } 21053 /^X\(\/\).*/{ 21054 s//\1/ 21055 q 21056 } 21057 s/.*/./; q'` 21058 test -d "$as_dir" && break 21059 done 21060 test -z "$as_dirs" || eval "mkdir $as_dirs" 21061 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 21062echo "$as_me: error: cannot create directory $as_dir" >&2;} 21063 { (exit 1); exit 1; }; }; } 21064 # echo "creating $dirpart/$file" 21065 echo '# dummy' > "$dirpart/$file" 21066 done 21067done 21068 ;; 21069 21070 esac 21071done # for ac_tag 21072 21073 21074{ (exit 0); exit 0; } 21075_ACEOF 21076chmod +x $CONFIG_STATUS 21077ac_clean_files=$ac_clean_files_save 21078 21079 21080# configure is writing to config.log, and then calls config.status. 21081# config.status does its own redirection, appending to config.log. 21082# Unfortunately, on DOS this fails, as config.log is still kept open 21083# by configure, so config.status won't be able to write to it; its 21084# output is simply discarded. So we exec the FD to /dev/null, 21085# effectively closing config.log, so it can be properly (re)opened and 21086# appended to by config.status. When coming back to configure, we 21087# need to make the FD available again. 21088if test "$no_create" != yes; then 21089 ac_cs_success=: 21090 ac_config_status_args= 21091 test "$silent" = yes && 21092 ac_config_status_args="$ac_config_status_args --quiet" 21093 exec 5>/dev/null 21094 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21095 exec 5>>config.log 21096 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21097 # would make configure fail if this is the last instruction. 21098 $ac_cs_success || { (exit 1); exit 1; } 21099fi 21100 21101