configure revision 126a8a12
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.61 for libSM 1.0.3. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## --------------------- ## 12## M4sh Initialization. ## 13## --------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 18 emulate sh 19 NULLCMD=: 20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in 26 *posix*) set -o posix ;; 27esac 28 29fi 30 31 32 33 34# PATH needs CR 35# Avoid depending upon Character Ranges. 36as_cr_letters='abcdefghijklmnopqrstuvwxyz' 37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 38as_cr_Letters=$as_cr_letters$as_cr_LETTERS 39as_cr_digits='0123456789' 40as_cr_alnum=$as_cr_Letters$as_cr_digits 41 42# The user is always right. 43if test "${PATH_SEPARATOR+set}" != set; then 44 echo "#! /bin/sh" >conf$$.sh 45 echo "exit 0" >>conf$$.sh 46 chmod +x conf$$.sh 47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 48 PATH_SEPARATOR=';' 49 else 50 PATH_SEPARATOR=: 51 fi 52 rm -f conf$$.sh 53fi 54 55# Support unset when possible. 56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 57 as_unset=unset 58else 59 as_unset=false 60fi 61 62 63# IFS 64# We need space, tab and new line, in precisely that order. Quoting is 65# there to prevent editors from complaining about space-tab. 66# (If _AS_PATH_WALK were called with IFS unset, it would disable word 67# splitting by setting IFS to empty value.) 68as_nl=' 69' 70IFS=" "" $as_nl" 71 72# Find who we are. Look in the path if we contain no directory separator. 73case $0 in 74 *[\\/]* ) as_myself=$0 ;; 75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 76for as_dir in $PATH 77do 78 IFS=$as_save_IFS 79 test -z "$as_dir" && as_dir=. 80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 81done 82IFS=$as_save_IFS 83 84 ;; 85esac 86# We did not find ourselves, most probably we were run as `sh COMMAND' 87# in which case we are not to be found in the path. 88if test "x$as_myself" = x; then 89 as_myself=$0 90fi 91if test ! -f "$as_myself"; then 92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 93 { (exit 1); exit 1; } 94fi 95 96# Work around bugs in pre-3.0 UWIN ksh. 97for as_var in ENV MAIL MAILPATH 98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 99done 100PS1='$ ' 101PS2='> ' 102PS4='+ ' 103 104# NLS nuisances. 105for as_var in \ 106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 108 LC_TELEPHONE LC_TIME 109do 110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 111 eval $as_var=C; export $as_var 112 else 113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 114 fi 115done 116 117# Required to use basename. 118if expr a : '\(a\)' >/dev/null 2>&1 && 119 test "X`expr 00001 : '.*\(...\)'`" = X001; then 120 as_expr=expr 121else 122 as_expr=false 123fi 124 125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 126 as_basename=basename 127else 128 as_basename=false 129fi 130 131 132# Name of the executable. 133as_me=`$as_basename -- "$0" || 134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 135 X"$0" : 'X\(//\)$' \| \ 136 X"$0" : 'X\(/\)' \| . 2>/dev/null || 137echo X/"$0" | 138 sed '/^.*\/\([^/][^/]*\)\/*$/{ 139 s//\1/ 140 q 141 } 142 /^X\/\(\/\/\)$/{ 143 s//\1/ 144 q 145 } 146 /^X\/\(\/\).*/{ 147 s//\1/ 148 q 149 } 150 s/.*/./; q'` 151 152# CDPATH. 153$as_unset CDPATH 154 155 156if test "x$CONFIG_SHELL" = x; then 157 if (eval ":") 2>/dev/null; then 158 as_have_required=yes 159else 160 as_have_required=no 161fi 162 163 if test $as_have_required = yes && (eval ": 164(as_func_return () { 165 (exit \$1) 166} 167as_func_success () { 168 as_func_return 0 169} 170as_func_failure () { 171 as_func_return 1 172} 173as_func_ret_success () { 174 return 0 175} 176as_func_ret_failure () { 177 return 1 178} 179 180exitcode=0 181if as_func_success; then 182 : 183else 184 exitcode=1 185 echo as_func_success failed. 186fi 187 188if as_func_failure; then 189 exitcode=1 190 echo as_func_failure succeeded. 191fi 192 193if as_func_ret_success; then 194 : 195else 196 exitcode=1 197 echo as_func_ret_success failed. 198fi 199 200if as_func_ret_failure; then 201 exitcode=1 202 echo as_func_ret_failure succeeded. 203fi 204 205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 206 : 207else 208 exitcode=1 209 echo positional parameters were not saved. 210fi 211 212test \$exitcode = 0) || { (exit 1); exit 1; } 213 214( 215 as_lineno_1=\$LINENO 216 as_lineno_2=\$LINENO 217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 219") 2> /dev/null; then 220 : 221else 222 as_candidate_shells= 223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 225do 226 IFS=$as_save_IFS 227 test -z "$as_dir" && as_dir=. 228 case $as_dir in 229 /*) 230 for as_base in sh bash ksh sh5; do 231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 232 done;; 233 esac 234done 235IFS=$as_save_IFS 236 237 238 for as_shell in $as_candidate_shells $SHELL; do 239 # Try only shells that exist, to save several forks. 240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 241 { ("$as_shell") 2> /dev/null <<\_ASEOF 242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 243 emulate sh 244 NULLCMD=: 245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 246 # is contrary to our usage. Disable this feature. 247 alias -g '${1+"$@"}'='"$@"' 248 setopt NO_GLOB_SUBST 249else 250 case `(set -o) 2>/dev/null` in 251 *posix*) set -o posix ;; 252esac 253 254fi 255 256 257: 258_ASEOF 259}; then 260 CONFIG_SHELL=$as_shell 261 as_have_required=yes 262 if { "$as_shell" 2> /dev/null <<\_ASEOF 263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 264 emulate sh 265 NULLCMD=: 266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 267 # is contrary to our usage. Disable this feature. 268 alias -g '${1+"$@"}'='"$@"' 269 setopt NO_GLOB_SUBST 270else 271 case `(set -o) 2>/dev/null` in 272 *posix*) set -o posix ;; 273esac 274 275fi 276 277 278: 279(as_func_return () { 280 (exit $1) 281} 282as_func_success () { 283 as_func_return 0 284} 285as_func_failure () { 286 as_func_return 1 287} 288as_func_ret_success () { 289 return 0 290} 291as_func_ret_failure () { 292 return 1 293} 294 295exitcode=0 296if as_func_success; then 297 : 298else 299 exitcode=1 300 echo as_func_success failed. 301fi 302 303if as_func_failure; then 304 exitcode=1 305 echo as_func_failure succeeded. 306fi 307 308if as_func_ret_success; then 309 : 310else 311 exitcode=1 312 echo as_func_ret_success failed. 313fi 314 315if as_func_ret_failure; then 316 exitcode=1 317 echo as_func_ret_failure succeeded. 318fi 319 320if ( set x; as_func_ret_success y && test x = "$1" ); then 321 : 322else 323 exitcode=1 324 echo positional parameters were not saved. 325fi 326 327test $exitcode = 0) || { (exit 1); exit 1; } 328 329( 330 as_lineno_1=$LINENO 331 as_lineno_2=$LINENO 332 test "x$as_lineno_1" != "x$as_lineno_2" && 333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 334 335_ASEOF 336}; then 337 break 338fi 339 340fi 341 342 done 343 344 if test "x$CONFIG_SHELL" != x; then 345 for as_var in BASH_ENV ENV 346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 347 done 348 export CONFIG_SHELL 349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 350fi 351 352 353 if test $as_have_required = no; then 354 echo This script requires a shell more modern than all the 355 echo shells that I found on your system. Please install a 356 echo modern shell, or manually run the script under such a 357 echo shell if you do have one. 358 { (exit 1); exit 1; } 359fi 360 361 362fi 363 364fi 365 366 367 368(eval "as_func_return () { 369 (exit \$1) 370} 371as_func_success () { 372 as_func_return 0 373} 374as_func_failure () { 375 as_func_return 1 376} 377as_func_ret_success () { 378 return 0 379} 380as_func_ret_failure () { 381 return 1 382} 383 384exitcode=0 385if as_func_success; then 386 : 387else 388 exitcode=1 389 echo as_func_success failed. 390fi 391 392if as_func_failure; then 393 exitcode=1 394 echo as_func_failure succeeded. 395fi 396 397if as_func_ret_success; then 398 : 399else 400 exitcode=1 401 echo as_func_ret_success failed. 402fi 403 404if as_func_ret_failure; then 405 exitcode=1 406 echo as_func_ret_failure succeeded. 407fi 408 409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 410 : 411else 412 exitcode=1 413 echo positional parameters were not saved. 414fi 415 416test \$exitcode = 0") || { 417 echo No shell found that supports shell functions. 418 echo Please tell autoconf@gnu.org about your system, 419 echo including any error possibly output before this 420 echo message 421} 422 423 424 425 as_lineno_1=$LINENO 426 as_lineno_2=$LINENO 427 test "x$as_lineno_1" != "x$as_lineno_2" && 428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 429 430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 431 # uniformly replaced by the line number. The first 'sed' inserts a 432 # line-number line after each line using $LINENO; the second 'sed' 433 # does the real work. The second script uses 'N' to pair each 434 # line-number line with the line containing $LINENO, and appends 435 # trailing '-' during substitution so that $LINENO is not a special 436 # case at line end. 437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 438 # scripts with optimization help from Paolo Bonzini. Blame Lee 439 # E. McMahon (1931-1989) for sed's syntax. :-) 440 sed -n ' 441 p 442 /[$]LINENO/= 443 ' <$as_myself | 444 sed ' 445 s/[$]LINENO.*/&-/ 446 t lineno 447 b 448 :lineno 449 N 450 :loop 451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 452 t loop 453 s/-\n.*// 454 ' >$as_me.lineno && 455 chmod +x "$as_me.lineno" || 456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 457 { (exit 1); exit 1; }; } 458 459 # Don't try to exec as it changes $[0], causing all sort of problems 460 # (the dirname of $[0] is not the place where we might find the 461 # original and so on. Autoconf is especially sensitive to this). 462 . "./$as_me.lineno" 463 # Exit status is that of the last command. 464 exit 465} 466 467 468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 469 as_dirname=dirname 470else 471 as_dirname=false 472fi 473 474ECHO_C= ECHO_N= ECHO_T= 475case `echo -n x` in 476-n*) 477 case `echo 'x\c'` in 478 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 479 *) ECHO_C='\c';; 480 esac;; 481*) 482 ECHO_N='-n';; 483esac 484 485if expr a : '\(a\)' >/dev/null 2>&1 && 486 test "X`expr 00001 : '.*\(...\)'`" = X001; then 487 as_expr=expr 488else 489 as_expr=false 490fi 491 492rm -f conf$$ conf$$.exe conf$$.file 493if test -d conf$$.dir; then 494 rm -f conf$$.dir/conf$$.file 495else 496 rm -f conf$$.dir 497 mkdir conf$$.dir 498fi 499echo >conf$$.file 500if ln -s conf$$.file conf$$ 2>/dev/null; then 501 as_ln_s='ln -s' 502 # ... but there are two gotchas: 503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 505 # In both cases, we have to default to `cp -p'. 506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 507 as_ln_s='cp -p' 508elif ln conf$$.file conf$$ 2>/dev/null; then 509 as_ln_s=ln 510else 511 as_ln_s='cp -p' 512fi 513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 514rmdir conf$$.dir 2>/dev/null 515 516if mkdir -p . 2>/dev/null; then 517 as_mkdir_p=: 518else 519 test -d ./-p && rmdir ./-p 520 as_mkdir_p=false 521fi 522 523if test -x / >/dev/null 2>&1; then 524 as_test_x='test -x' 525else 526 if ls -dL / >/dev/null 2>&1; then 527 as_ls_L_option=L 528 else 529 as_ls_L_option= 530 fi 531 as_test_x=' 532 eval sh -c '\'' 533 if test -d "$1"; then 534 test -d "$1/."; 535 else 536 case $1 in 537 -*)set "./$1";; 538 esac; 539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 540 ???[sx]*):;;*)false;;esac;fi 541 '\'' sh 542 ' 543fi 544as_executable_p=$as_test_x 545 546# Sed expression to map a string onto a valid CPP name. 547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 548 549# Sed expression to map a string onto a valid variable name. 550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 551 552 553 554 555# Check that we are running under the correct shell. 556SHELL=${CONFIG_SHELL-/bin/sh} 557 558case X$ECHO in 559X*--fallback-echo) 560 # Remove one level of quotation (which was required for Make). 561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 562 ;; 563esac 564 565echo=${ECHO-echo} 566if test "X$1" = X--no-reexec; then 567 # Discard the --no-reexec flag, and continue. 568 shift 569elif test "X$1" = X--fallback-echo; then 570 # Avoid inline document here, it may be left over 571 : 572elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 573 # Yippee, $echo works! 574 : 575else 576 # Restart under the correct shell. 577 exec $SHELL "$0" --no-reexec ${1+"$@"} 578fi 579 580if test "X$1" = X--fallback-echo; then 581 # used as fallback echo 582 shift 583 cat <<EOF 584$* 585EOF 586 exit 0 587fi 588 589# The HP-UX ksh and POSIX shell print the target directory to stdout 590# if CDPATH is set. 591(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 592 593if test -z "$ECHO"; then 594if test "X${echo_test_string+set}" != Xset; then 595# find a string as large as possible, as long as the shell can cope with it 596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 598 if (echo_test_string=`eval $cmd`) 2>/dev/null && 599 echo_test_string=`eval $cmd` && 600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 601 then 602 break 603 fi 604 done 605fi 606 607if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 609 test "X$echo_testing_string" = "X$echo_test_string"; then 610 : 611else 612 # The Solaris, AIX, and Digital Unix default echo programs unquote 613 # backslashes. This makes it impossible to quote backslashes using 614 # echo "$something" | sed 's/\\/\\\\/g' 615 # 616 # So, first we look for a working echo in the user's PATH. 617 618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 619 for dir in $PATH /usr/ucb; do 620 IFS="$lt_save_ifs" 621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 624 test "X$echo_testing_string" = "X$echo_test_string"; then 625 echo="$dir/echo" 626 break 627 fi 628 done 629 IFS="$lt_save_ifs" 630 631 if test "X$echo" = Xecho; then 632 # We didn't find a better echo, so look for alternatives. 633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 635 test "X$echo_testing_string" = "X$echo_test_string"; then 636 # This shell has a builtin print -r that does the trick. 637 echo='print -r' 638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 639 test "X$CONFIG_SHELL" != X/bin/ksh; then 640 # If we have ksh, try running configure again with it. 641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 642 export ORIGINAL_CONFIG_SHELL 643 CONFIG_SHELL=/bin/ksh 644 export CONFIG_SHELL 645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 646 else 647 # Try using printf. 648 echo='printf %s\n' 649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 651 test "X$echo_testing_string" = "X$echo_test_string"; then 652 # Cool, printf works 653 : 654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 655 test "X$echo_testing_string" = 'X\t' && 656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 657 test "X$echo_testing_string" = "X$echo_test_string"; then 658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 659 export CONFIG_SHELL 660 SHELL="$CONFIG_SHELL" 661 export SHELL 662 echo="$CONFIG_SHELL $0 --fallback-echo" 663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 664 test "X$echo_testing_string" = 'X\t' && 665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 666 test "X$echo_testing_string" = "X$echo_test_string"; then 667 echo="$CONFIG_SHELL $0 --fallback-echo" 668 else 669 # maybe with a smaller string... 670 prev=: 671 672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 674 then 675 break 676 fi 677 prev="$cmd" 678 done 679 680 if test "$prev" != 'sed 50q "$0"'; then 681 echo_test_string=`eval $prev` 682 export echo_test_string 683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 684 else 685 # Oops. We lost completely, so just stick with echo. 686 echo=echo 687 fi 688 fi 689 fi 690 fi 691fi 692fi 693 694# Copy echo and quote the copy suitably for passing to libtool from 695# the Makefile, instead of quoting the original, which is used later. 696ECHO=$echo 697if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 699fi 700 701 702 703 704tagnames=${tagnames+${tagnames},}CXX 705 706tagnames=${tagnames+${tagnames},}F77 707 708exec 7<&0 </dev/null 6>&1 709 710# Name of the host. 711# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 712# so uname gets run too. 713ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 714 715# 716# Initializations. 717# 718ac_default_prefix=/usr/local 719ac_clean_files= 720ac_config_libobj_dir=. 721LIBOBJS= 722cross_compiling=no 723subdirs= 724MFLAGS= 725MAKEFLAGS= 726SHELL=${CONFIG_SHELL-/bin/sh} 727 728# Identity of this package. 729PACKAGE_NAME='libSM' 730PACKAGE_TARNAME='libSM' 731PACKAGE_VERSION='1.0.3' 732PACKAGE_STRING='libSM 1.0.3' 733PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 734 735ac_unique_file="Makefile.am" 736# Factoring default headers for most tests. 737ac_includes_default="\ 738#include <stdio.h> 739#ifdef HAVE_SYS_TYPES_H 740# include <sys/types.h> 741#endif 742#ifdef HAVE_SYS_STAT_H 743# include <sys/stat.h> 744#endif 745#ifdef STDC_HEADERS 746# include <stdlib.h> 747# include <stddef.h> 748#else 749# ifdef HAVE_STDLIB_H 750# include <stdlib.h> 751# endif 752#endif 753#ifdef HAVE_STRING_H 754# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 755# include <memory.h> 756# endif 757# include <string.h> 758#endif 759#ifdef HAVE_STRINGS_H 760# include <strings.h> 761#endif 762#ifdef HAVE_INTTYPES_H 763# include <inttypes.h> 764#endif 765#ifdef HAVE_STDINT_H 766# include <stdint.h> 767#endif 768#ifdef HAVE_UNISTD_H 769# include <unistd.h> 770#endif" 771 772ac_subst_vars='SHELL 773PATH_SEPARATOR 774PACKAGE_NAME 775PACKAGE_TARNAME 776PACKAGE_VERSION 777PACKAGE_STRING 778PACKAGE_BUGREPORT 779exec_prefix 780prefix 781program_transform_name 782bindir 783sbindir 784libexecdir 785datarootdir 786datadir 787sysconfdir 788sharedstatedir 789localstatedir 790includedir 791oldincludedir 792docdir 793infodir 794htmldir 795dvidir 796pdfdir 797psdir 798libdir 799localedir 800mandir 801DEFS 802ECHO_C 803ECHO_N 804ECHO_T 805LIBS 806build_alias 807host_alias 808target_alias 809INSTALL_PROGRAM 810INSTALL_SCRIPT 811INSTALL_DATA 812am__isrc 813CYGPATH_W 814PACKAGE 815VERSION 816ACLOCAL 817AUTOCONF 818AUTOMAKE 819AUTOHEADER 820MAKEINFO 821install_sh 822STRIP 823INSTALL_STRIP_PROGRAM 824mkdir_p 825AWK 826SET_MAKE 827am__leading_dot 828AMTAR 829am__tar 830am__untar 831MAINTAINER_MODE_TRUE 832MAINTAINER_MODE_FALSE 833MAINT 834build 835build_cpu 836build_vendor 837build_os 838host 839host_cpu 840host_vendor 841host_os 842CC 843CFLAGS 844LDFLAGS 845CPPFLAGS 846ac_ct_CC 847EXEEXT 848OBJEXT 849DEPDIR 850am__include 851am__quote 852AMDEP_TRUE 853AMDEP_FALSE 854AMDEPBACKSLASH 855CCDEPMODE 856am__fastdepCC_TRUE 857am__fastdepCC_FALSE 858GREP 859EGREP 860LN_S 861ECHO 862AR 863RANLIB 864CPP 865CXX 866CXXFLAGS 867ac_ct_CXX 868CXXDEPMODE 869am__fastdepCXX_TRUE 870am__fastdepCXX_FALSE 871CXXCPP 872F77 873FFLAGS 874ac_ct_F77 875LIBTOOL 876PKG_CONFIG 877SM_CFLAGS 878SM_LIBS 879XTRANS_CFLAGS 880XTRANS_LIBS 881LIBOBJS 882LTLIBOBJS' 883ac_subst_files='' 884 ac_precious_vars='build_alias 885host_alias 886target_alias 887CC 888CFLAGS 889LDFLAGS 890LIBS 891CPPFLAGS 892CPP 893CXX 894CXXFLAGS 895CCC 896CXXCPP 897F77 898FFLAGS 899PKG_CONFIG 900SM_CFLAGS 901SM_LIBS 902XTRANS_CFLAGS 903XTRANS_LIBS' 904 905 906# Initialize some variables set by options. 907ac_init_help= 908ac_init_version=false 909# The variables have the same names as the options, with 910# dashes changed to underlines. 911cache_file=/dev/null 912exec_prefix=NONE 913no_create= 914no_recursion= 915prefix=NONE 916program_prefix=NONE 917program_suffix=NONE 918program_transform_name=s,x,x, 919silent= 920site= 921srcdir= 922verbose= 923x_includes=NONE 924x_libraries=NONE 925 926# Installation directory options. 927# These are left unexpanded so users can "make install exec_prefix=/foo" 928# and all the variables that are supposed to be based on exec_prefix 929# by default will actually change. 930# Use braces instead of parens because sh, perl, etc. also accept them. 931# (The list follows the same order as the GNU Coding Standards.) 932bindir='${exec_prefix}/bin' 933sbindir='${exec_prefix}/sbin' 934libexecdir='${exec_prefix}/libexec' 935datarootdir='${prefix}/share' 936datadir='${datarootdir}' 937sysconfdir='${prefix}/etc' 938sharedstatedir='${prefix}/com' 939localstatedir='${prefix}/var' 940includedir='${prefix}/include' 941oldincludedir='/usr/include' 942docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 943infodir='${datarootdir}/info' 944htmldir='${docdir}' 945dvidir='${docdir}' 946pdfdir='${docdir}' 947psdir='${docdir}' 948libdir='${exec_prefix}/lib' 949localedir='${datarootdir}/locale' 950mandir='${datarootdir}/man' 951 952ac_prev= 953ac_dashdash= 954for ac_option 955do 956 # If the previous option needs an argument, assign it. 957 if test -n "$ac_prev"; then 958 eval $ac_prev=\$ac_option 959 ac_prev= 960 continue 961 fi 962 963 case $ac_option in 964 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 965 *) ac_optarg=yes ;; 966 esac 967 968 # Accept the important Cygnus configure options, so we can diagnose typos. 969 970 case $ac_dashdash$ac_option in 971 --) 972 ac_dashdash=yes ;; 973 974 -bindir | --bindir | --bindi | --bind | --bin | --bi) 975 ac_prev=bindir ;; 976 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 977 bindir=$ac_optarg ;; 978 979 -build | --build | --buil | --bui | --bu) 980 ac_prev=build_alias ;; 981 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 982 build_alias=$ac_optarg ;; 983 984 -cache-file | --cache-file | --cache-fil | --cache-fi \ 985 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 986 ac_prev=cache_file ;; 987 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 988 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 989 cache_file=$ac_optarg ;; 990 991 --config-cache | -C) 992 cache_file=config.cache ;; 993 994 -datadir | --datadir | --datadi | --datad) 995 ac_prev=datadir ;; 996 -datadir=* | --datadir=* | --datadi=* | --datad=*) 997 datadir=$ac_optarg ;; 998 999 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1000 | --dataroo | --dataro | --datar) 1001 ac_prev=datarootdir ;; 1002 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1003 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1004 datarootdir=$ac_optarg ;; 1005 1006 -disable-* | --disable-*) 1007 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1008 # Reject names that are not valid shell variable names. 1009 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1010 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1011 { (exit 1); exit 1; }; } 1012 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1013 eval enable_$ac_feature=no ;; 1014 1015 -docdir | --docdir | --docdi | --doc | --do) 1016 ac_prev=docdir ;; 1017 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1018 docdir=$ac_optarg ;; 1019 1020 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1021 ac_prev=dvidir ;; 1022 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1023 dvidir=$ac_optarg ;; 1024 1025 -enable-* | --enable-*) 1026 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1027 # Reject names that are not valid shell variable names. 1028 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1029 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1030 { (exit 1); exit 1; }; } 1031 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1032 eval enable_$ac_feature=\$ac_optarg ;; 1033 1034 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1035 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1036 | --exec | --exe | --ex) 1037 ac_prev=exec_prefix ;; 1038 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1039 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1040 | --exec=* | --exe=* | --ex=*) 1041 exec_prefix=$ac_optarg ;; 1042 1043 -gas | --gas | --ga | --g) 1044 # Obsolete; use --with-gas. 1045 with_gas=yes ;; 1046 1047 -help | --help | --hel | --he | -h) 1048 ac_init_help=long ;; 1049 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1050 ac_init_help=recursive ;; 1051 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1052 ac_init_help=short ;; 1053 1054 -host | --host | --hos | --ho) 1055 ac_prev=host_alias ;; 1056 -host=* | --host=* | --hos=* | --ho=*) 1057 host_alias=$ac_optarg ;; 1058 1059 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1060 ac_prev=htmldir ;; 1061 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1062 | --ht=*) 1063 htmldir=$ac_optarg ;; 1064 1065 -includedir | --includedir | --includedi | --included | --include \ 1066 | --includ | --inclu | --incl | --inc) 1067 ac_prev=includedir ;; 1068 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1069 | --includ=* | --inclu=* | --incl=* | --inc=*) 1070 includedir=$ac_optarg ;; 1071 1072 -infodir | --infodir | --infodi | --infod | --info | --inf) 1073 ac_prev=infodir ;; 1074 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1075 infodir=$ac_optarg ;; 1076 1077 -libdir | --libdir | --libdi | --libd) 1078 ac_prev=libdir ;; 1079 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1080 libdir=$ac_optarg ;; 1081 1082 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1083 | --libexe | --libex | --libe) 1084 ac_prev=libexecdir ;; 1085 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1086 | --libexe=* | --libex=* | --libe=*) 1087 libexecdir=$ac_optarg ;; 1088 1089 -localedir | --localedir | --localedi | --localed | --locale) 1090 ac_prev=localedir ;; 1091 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1092 localedir=$ac_optarg ;; 1093 1094 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1095 | --localstate | --localstat | --localsta | --localst | --locals) 1096 ac_prev=localstatedir ;; 1097 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1098 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1099 localstatedir=$ac_optarg ;; 1100 1101 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1102 ac_prev=mandir ;; 1103 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1104 mandir=$ac_optarg ;; 1105 1106 -nfp | --nfp | --nf) 1107 # Obsolete; use --without-fp. 1108 with_fp=no ;; 1109 1110 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1111 | --no-cr | --no-c | -n) 1112 no_create=yes ;; 1113 1114 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1115 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1116 no_recursion=yes ;; 1117 1118 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1119 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1120 | --oldin | --oldi | --old | --ol | --o) 1121 ac_prev=oldincludedir ;; 1122 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1123 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1124 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1125 oldincludedir=$ac_optarg ;; 1126 1127 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1128 ac_prev=prefix ;; 1129 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1130 prefix=$ac_optarg ;; 1131 1132 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1133 | --program-pre | --program-pr | --program-p) 1134 ac_prev=program_prefix ;; 1135 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1136 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1137 program_prefix=$ac_optarg ;; 1138 1139 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1140 | --program-suf | --program-su | --program-s) 1141 ac_prev=program_suffix ;; 1142 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1143 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1144 program_suffix=$ac_optarg ;; 1145 1146 -program-transform-name | --program-transform-name \ 1147 | --program-transform-nam | --program-transform-na \ 1148 | --program-transform-n | --program-transform- \ 1149 | --program-transform | --program-transfor \ 1150 | --program-transfo | --program-transf \ 1151 | --program-trans | --program-tran \ 1152 | --progr-tra | --program-tr | --program-t) 1153 ac_prev=program_transform_name ;; 1154 -program-transform-name=* | --program-transform-name=* \ 1155 | --program-transform-nam=* | --program-transform-na=* \ 1156 | --program-transform-n=* | --program-transform-=* \ 1157 | --program-transform=* | --program-transfor=* \ 1158 | --program-transfo=* | --program-transf=* \ 1159 | --program-trans=* | --program-tran=* \ 1160 | --progr-tra=* | --program-tr=* | --program-t=*) 1161 program_transform_name=$ac_optarg ;; 1162 1163 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1164 ac_prev=pdfdir ;; 1165 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1166 pdfdir=$ac_optarg ;; 1167 1168 -psdir | --psdir | --psdi | --psd | --ps) 1169 ac_prev=psdir ;; 1170 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1171 psdir=$ac_optarg ;; 1172 1173 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1174 | -silent | --silent | --silen | --sile | --sil) 1175 silent=yes ;; 1176 1177 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1178 ac_prev=sbindir ;; 1179 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1180 | --sbi=* | --sb=*) 1181 sbindir=$ac_optarg ;; 1182 1183 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1184 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1185 | --sharedst | --shareds | --shared | --share | --shar \ 1186 | --sha | --sh) 1187 ac_prev=sharedstatedir ;; 1188 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1189 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1190 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1191 | --sha=* | --sh=*) 1192 sharedstatedir=$ac_optarg ;; 1193 1194 -site | --site | --sit) 1195 ac_prev=site ;; 1196 -site=* | --site=* | --sit=*) 1197 site=$ac_optarg ;; 1198 1199 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1200 ac_prev=srcdir ;; 1201 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1202 srcdir=$ac_optarg ;; 1203 1204 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1205 | --syscon | --sysco | --sysc | --sys | --sy) 1206 ac_prev=sysconfdir ;; 1207 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1208 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1209 sysconfdir=$ac_optarg ;; 1210 1211 -target | --target | --targe | --targ | --tar | --ta | --t) 1212 ac_prev=target_alias ;; 1213 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1214 target_alias=$ac_optarg ;; 1215 1216 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1217 verbose=yes ;; 1218 1219 -version | --version | --versio | --versi | --vers | -V) 1220 ac_init_version=: ;; 1221 1222 -with-* | --with-*) 1223 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1224 # Reject names that are not valid shell variable names. 1225 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1226 { echo "$as_me: error: invalid package name: $ac_package" >&2 1227 { (exit 1); exit 1; }; } 1228 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1229 eval with_$ac_package=\$ac_optarg ;; 1230 1231 -without-* | --without-*) 1232 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1233 # Reject names that are not valid shell variable names. 1234 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1235 { echo "$as_me: error: invalid package name: $ac_package" >&2 1236 { (exit 1); exit 1; }; } 1237 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1238 eval with_$ac_package=no ;; 1239 1240 --x) 1241 # Obsolete; use --with-x. 1242 with_x=yes ;; 1243 1244 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1245 | --x-incl | --x-inc | --x-in | --x-i) 1246 ac_prev=x_includes ;; 1247 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1248 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1249 x_includes=$ac_optarg ;; 1250 1251 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1252 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1253 ac_prev=x_libraries ;; 1254 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1255 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1256 x_libraries=$ac_optarg ;; 1257 1258 -*) { echo "$as_me: error: unrecognized option: $ac_option 1259Try \`$0 --help' for more information." >&2 1260 { (exit 1); exit 1; }; } 1261 ;; 1262 1263 *=*) 1264 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1265 # Reject names that are not valid shell variable names. 1266 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1267 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1268 { (exit 1); exit 1; }; } 1269 eval $ac_envvar=\$ac_optarg 1270 export $ac_envvar ;; 1271 1272 *) 1273 # FIXME: should be removed in autoconf 3.0. 1274 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1275 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1276 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1277 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1278 ;; 1279 1280 esac 1281done 1282 1283if test -n "$ac_prev"; then 1284 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1285 { echo "$as_me: error: missing argument to $ac_option" >&2 1286 { (exit 1); exit 1; }; } 1287fi 1288 1289# Be sure to have absolute directory names. 1290for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1291 datadir sysconfdir sharedstatedir localstatedir includedir \ 1292 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1293 libdir localedir mandir 1294do 1295 eval ac_val=\$$ac_var 1296 case $ac_val in 1297 [\\/$]* | ?:[\\/]* ) continue;; 1298 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1299 esac 1300 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1301 { (exit 1); exit 1; }; } 1302done 1303 1304# There might be people who depend on the old broken behavior: `$host' 1305# used to hold the argument of --host etc. 1306# FIXME: To remove some day. 1307build=$build_alias 1308host=$host_alias 1309target=$target_alias 1310 1311# FIXME: To remove some day. 1312if test "x$host_alias" != x; then 1313 if test "x$build_alias" = x; then 1314 cross_compiling=maybe 1315 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1316 If a cross compiler is detected then cross compile mode will be used." >&2 1317 elif test "x$build_alias" != "x$host_alias"; then 1318 cross_compiling=yes 1319 fi 1320fi 1321 1322ac_tool_prefix= 1323test -n "$host_alias" && ac_tool_prefix=$host_alias- 1324 1325test "$silent" = yes && exec 6>/dev/null 1326 1327 1328ac_pwd=`pwd` && test -n "$ac_pwd" && 1329ac_ls_di=`ls -di .` && 1330ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1331 { echo "$as_me: error: Working directory cannot be determined" >&2 1332 { (exit 1); exit 1; }; } 1333test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1334 { echo "$as_me: error: pwd does not report name of working directory" >&2 1335 { (exit 1); exit 1; }; } 1336 1337 1338# Find the source files, if location was not specified. 1339if test -z "$srcdir"; then 1340 ac_srcdir_defaulted=yes 1341 # Try the directory containing this script, then the parent directory. 1342 ac_confdir=`$as_dirname -- "$0" || 1343$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1344 X"$0" : 'X\(//\)[^/]' \| \ 1345 X"$0" : 'X\(//\)$' \| \ 1346 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1347echo X"$0" | 1348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1349 s//\1/ 1350 q 1351 } 1352 /^X\(\/\/\)[^/].*/{ 1353 s//\1/ 1354 q 1355 } 1356 /^X\(\/\/\)$/{ 1357 s//\1/ 1358 q 1359 } 1360 /^X\(\/\).*/{ 1361 s//\1/ 1362 q 1363 } 1364 s/.*/./; q'` 1365 srcdir=$ac_confdir 1366 if test ! -r "$srcdir/$ac_unique_file"; then 1367 srcdir=.. 1368 fi 1369else 1370 ac_srcdir_defaulted=no 1371fi 1372if test ! -r "$srcdir/$ac_unique_file"; then 1373 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1374 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1375 { (exit 1); exit 1; }; } 1376fi 1377ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1378ac_abs_confdir=`( 1379 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1380 { (exit 1); exit 1; }; } 1381 pwd)` 1382# When building in place, set srcdir=. 1383if test "$ac_abs_confdir" = "$ac_pwd"; then 1384 srcdir=. 1385fi 1386# Remove unnecessary trailing slashes from srcdir. 1387# Double slashes in file names in object file debugging info 1388# mess up M-x gdb in Emacs. 1389case $srcdir in 1390*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1391esac 1392for ac_var in $ac_precious_vars; do 1393 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1394 eval ac_env_${ac_var}_value=\$${ac_var} 1395 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1396 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1397done 1398 1399# 1400# Report the --help message. 1401# 1402if test "$ac_init_help" = "long"; then 1403 # Omit some internal or obsolete options to make the list less imposing. 1404 # This message is too long to be a string in the A/UX 3.1 sh. 1405 cat <<_ACEOF 1406\`configure' configures libSM 1.0.3 to adapt to many kinds of systems. 1407 1408Usage: $0 [OPTION]... [VAR=VALUE]... 1409 1410To assign environment variables (e.g., CC, CFLAGS...), specify them as 1411VAR=VALUE. See below for descriptions of some of the useful variables. 1412 1413Defaults for the options are specified in brackets. 1414 1415Configuration: 1416 -h, --help display this help and exit 1417 --help=short display options specific to this package 1418 --help=recursive display the short help of all the included packages 1419 -V, --version display version information and exit 1420 -q, --quiet, --silent do not print \`checking...' messages 1421 --cache-file=FILE cache test results in FILE [disabled] 1422 -C, --config-cache alias for \`--cache-file=config.cache' 1423 -n, --no-create do not create output files 1424 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1425 1426Installation directories: 1427 --prefix=PREFIX install architecture-independent files in PREFIX 1428 [$ac_default_prefix] 1429 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1430 [PREFIX] 1431 1432By default, \`make install' will install all the files in 1433\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1434an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1435for instance \`--prefix=\$HOME'. 1436 1437For better control, use the options below. 1438 1439Fine tuning of the installation directories: 1440 --bindir=DIR user executables [EPREFIX/bin] 1441 --sbindir=DIR system admin executables [EPREFIX/sbin] 1442 --libexecdir=DIR program executables [EPREFIX/libexec] 1443 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1444 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1445 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1446 --libdir=DIR object code libraries [EPREFIX/lib] 1447 --includedir=DIR C header files [PREFIX/include] 1448 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1449 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1450 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1451 --infodir=DIR info documentation [DATAROOTDIR/info] 1452 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1453 --mandir=DIR man documentation [DATAROOTDIR/man] 1454 --docdir=DIR documentation root [DATAROOTDIR/doc/libSM] 1455 --htmldir=DIR html documentation [DOCDIR] 1456 --dvidir=DIR dvi documentation [DOCDIR] 1457 --pdfdir=DIR pdf documentation [DOCDIR] 1458 --psdir=DIR ps documentation [DOCDIR] 1459_ACEOF 1460 1461 cat <<\_ACEOF 1462 1463Program names: 1464 --program-prefix=PREFIX prepend PREFIX to installed program names 1465 --program-suffix=SUFFIX append SUFFIX to installed program names 1466 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1467 1468System types: 1469 --build=BUILD configure for building on BUILD [guessed] 1470 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1471_ACEOF 1472fi 1473 1474if test -n "$ac_init_help"; then 1475 case $ac_init_help in 1476 short | recursive ) echo "Configuration of libSM 1.0.3:";; 1477 esac 1478 cat <<\_ACEOF 1479 1480Optional Features: 1481 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1482 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1483 --enable-maintainer-mode enable make rules and dependencies not useful 1484 (and sometimes confusing) to the casual installer 1485 --enable-shared[=PKGS] build shared libraries [default=yes] 1486 --enable-static[=PKGS] build static libraries [default=yes] 1487 --enable-fast-install[=PKGS] 1488 optimize for fast installation [default=yes] 1489 --disable-dependency-tracking speeds up one-time build 1490 --enable-dependency-tracking do not reject slow dependency extractors 1491 --disable-libtool-lock avoid locking (might break parallel builds) 1492 --enable-unix-transport Enable UNIX domain socket transport 1493 --enable-tcp-transport Enable TCP socket transport 1494 --enable-IPv6 Enable IPv6 support 1495 --enable-local-transport 1496 Enable os-specific local transport 1497 1498Optional Packages: 1499 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1500 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1501 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1502 --with-pic try to use only PIC/non-PIC objects [default=use 1503 both] 1504 --with-tags[=TAGS] include additional configurations [automatic] 1505 --with-release-version=STRING 1506 Use release version string in package name 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 SM_CFLAGS C compiler flags for SM, overriding pkg-config 1524 SM_LIBS linker flags for SM, overriding pkg-config 1525 XTRANS_CFLAGS 1526 C compiler flags for XTRANS, overriding pkg-config 1527 XTRANS_LIBS linker flags for XTRANS, overriding pkg-config 1528 1529Use these variables to override the choices made by `configure' or to help 1530it to find libraries and programs with nonstandard names/locations. 1531 1532Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1533_ACEOF 1534ac_status=$? 1535fi 1536 1537if test "$ac_init_help" = "recursive"; then 1538 # If there are subdirs, report their specific --help. 1539 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1540 test -d "$ac_dir" || continue 1541 ac_builddir=. 1542 1543case "$ac_dir" in 1544.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1545*) 1546 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1547 # A ".." for each directory in $ac_dir_suffix. 1548 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1549 case $ac_top_builddir_sub in 1550 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1551 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1552 esac ;; 1553esac 1554ac_abs_top_builddir=$ac_pwd 1555ac_abs_builddir=$ac_pwd$ac_dir_suffix 1556# for backward compatibility: 1557ac_top_builddir=$ac_top_build_prefix 1558 1559case $srcdir in 1560 .) # We are building in place. 1561 ac_srcdir=. 1562 ac_top_srcdir=$ac_top_builddir_sub 1563 ac_abs_top_srcdir=$ac_pwd ;; 1564 [\\/]* | ?:[\\/]* ) # Absolute name. 1565 ac_srcdir=$srcdir$ac_dir_suffix; 1566 ac_top_srcdir=$srcdir 1567 ac_abs_top_srcdir=$srcdir ;; 1568 *) # Relative name. 1569 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1570 ac_top_srcdir=$ac_top_build_prefix$srcdir 1571 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1572esac 1573ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1574 1575 cd "$ac_dir" || { ac_status=$?; continue; } 1576 # Check for guested configure. 1577 if test -f "$ac_srcdir/configure.gnu"; then 1578 echo && 1579 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1580 elif test -f "$ac_srcdir/configure"; then 1581 echo && 1582 $SHELL "$ac_srcdir/configure" --help=recursive 1583 else 1584 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1585 fi || ac_status=$? 1586 cd "$ac_pwd" || { ac_status=$?; break; } 1587 done 1588fi 1589 1590test -n "$ac_init_help" && exit $ac_status 1591if $ac_init_version; then 1592 cat <<\_ACEOF 1593libSM configure 1.0.3 1594generated by GNU Autoconf 2.61 1595 1596Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 15972002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1598This configure script is free software; the Free Software Foundation 1599gives unlimited permission to copy, distribute and modify it. 1600_ACEOF 1601 exit 1602fi 1603cat >config.log <<_ACEOF 1604This file contains any messages produced by compilers while 1605running configure, to aid debugging if configure makes a mistake. 1606 1607It was created by libSM $as_me 1.0.3, which was 1608generated by GNU Autoconf 2.61. Invocation command line was 1609 1610 $ $0 $@ 1611 1612_ACEOF 1613exec 5>>config.log 1614{ 1615cat <<_ASUNAME 1616## --------- ## 1617## Platform. ## 1618## --------- ## 1619 1620hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1621uname -m = `(uname -m) 2>/dev/null || echo unknown` 1622uname -r = `(uname -r) 2>/dev/null || echo unknown` 1623uname -s = `(uname -s) 2>/dev/null || echo unknown` 1624uname -v = `(uname -v) 2>/dev/null || echo unknown` 1625 1626/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1627/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1628 1629/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1630/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1631/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1632/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1633/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1634/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1635/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1636 1637_ASUNAME 1638 1639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1640for as_dir in $PATH 1641do 1642 IFS=$as_save_IFS 1643 test -z "$as_dir" && as_dir=. 1644 echo "PATH: $as_dir" 1645done 1646IFS=$as_save_IFS 1647 1648} >&5 1649 1650cat >&5 <<_ACEOF 1651 1652 1653## ----------- ## 1654## Core tests. ## 1655## ----------- ## 1656 1657_ACEOF 1658 1659 1660# Keep a trace of the command line. 1661# Strip out --no-create and --no-recursion so they do not pile up. 1662# Strip out --silent because we don't want to record it for future runs. 1663# Also quote any args containing shell meta-characters. 1664# Make two passes to allow for proper duplicate-argument suppression. 1665ac_configure_args= 1666ac_configure_args0= 1667ac_configure_args1= 1668ac_must_keep_next=false 1669for ac_pass in 1 2 1670do 1671 for ac_arg 1672 do 1673 case $ac_arg in 1674 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1675 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1676 | -silent | --silent | --silen | --sile | --sil) 1677 continue ;; 1678 *\'*) 1679 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1680 esac 1681 case $ac_pass in 1682 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1683 2) 1684 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1685 if test $ac_must_keep_next = true; then 1686 ac_must_keep_next=false # Got value, back to normal. 1687 else 1688 case $ac_arg in 1689 *=* | --config-cache | -C | -disable-* | --disable-* \ 1690 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1691 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1692 | -with-* | --with-* | -without-* | --without-* | --x) 1693 case "$ac_configure_args0 " in 1694 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1695 esac 1696 ;; 1697 -* ) ac_must_keep_next=true ;; 1698 esac 1699 fi 1700 ac_configure_args="$ac_configure_args '$ac_arg'" 1701 ;; 1702 esac 1703 done 1704done 1705$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1706$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1707 1708# When interrupted or exit'd, cleanup temporary files, and complete 1709# config.log. We remove comments because anyway the quotes in there 1710# would cause problems or look ugly. 1711# WARNING: Use '\'' to represent an apostrophe within the trap. 1712# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1713trap 'exit_status=$? 1714 # Save into config.log some information that might help in debugging. 1715 { 1716 echo 1717 1718 cat <<\_ASBOX 1719## ---------------- ## 1720## Cache variables. ## 1721## ---------------- ## 1722_ASBOX 1723 echo 1724 # The following way of writing the cache mishandles newlines in values, 1725( 1726 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1727 eval ac_val=\$$ac_var 1728 case $ac_val in #( 1729 *${as_nl}*) 1730 case $ac_var in #( 1731 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1732echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1733 esac 1734 case $ac_var in #( 1735 _ | IFS | as_nl) ;; #( 1736 *) $as_unset $ac_var ;; 1737 esac ;; 1738 esac 1739 done 1740 (set) 2>&1 | 1741 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1742 *${as_nl}ac_space=\ *) 1743 sed -n \ 1744 "s/'\''/'\''\\\\'\'''\''/g; 1745 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1746 ;; #( 1747 *) 1748 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1749 ;; 1750 esac | 1751 sort 1752) 1753 echo 1754 1755 cat <<\_ASBOX 1756## ----------------- ## 1757## Output variables. ## 1758## ----------------- ## 1759_ASBOX 1760 echo 1761 for ac_var in $ac_subst_vars 1762 do 1763 eval ac_val=\$$ac_var 1764 case $ac_val in 1765 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1766 esac 1767 echo "$ac_var='\''$ac_val'\''" 1768 done | sort 1769 echo 1770 1771 if test -n "$ac_subst_files"; then 1772 cat <<\_ASBOX 1773## ------------------- ## 1774## File substitutions. ## 1775## ------------------- ## 1776_ASBOX 1777 echo 1778 for ac_var in $ac_subst_files 1779 do 1780 eval ac_val=\$$ac_var 1781 case $ac_val in 1782 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1783 esac 1784 echo "$ac_var='\''$ac_val'\''" 1785 done | sort 1786 echo 1787 fi 1788 1789 if test -s confdefs.h; then 1790 cat <<\_ASBOX 1791## ----------- ## 1792## confdefs.h. ## 1793## ----------- ## 1794_ASBOX 1795 echo 1796 cat confdefs.h 1797 echo 1798 fi 1799 test "$ac_signal" != 0 && 1800 echo "$as_me: caught signal $ac_signal" 1801 echo "$as_me: exit $exit_status" 1802 } >&5 1803 rm -f core *.core core.conftest.* && 1804 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1805 exit $exit_status 1806' 0 1807for ac_signal in 1 2 13 15; do 1808 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1809done 1810ac_signal=0 1811 1812# confdefs.h avoids OS command line length limits that DEFS can exceed. 1813rm -f -r conftest* confdefs.h 1814 1815# Predefined preprocessor variables. 1816 1817cat >>confdefs.h <<_ACEOF 1818#define PACKAGE_NAME "$PACKAGE_NAME" 1819_ACEOF 1820 1821 1822cat >>confdefs.h <<_ACEOF 1823#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1824_ACEOF 1825 1826 1827cat >>confdefs.h <<_ACEOF 1828#define PACKAGE_VERSION "$PACKAGE_VERSION" 1829_ACEOF 1830 1831 1832cat >>confdefs.h <<_ACEOF 1833#define PACKAGE_STRING "$PACKAGE_STRING" 1834_ACEOF 1835 1836 1837cat >>confdefs.h <<_ACEOF 1838#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1839_ACEOF 1840 1841 1842# Let the site file select an alternate cache file if it wants to. 1843# Prefer explicitly selected file to automatically selected ones. 1844if test -n "$CONFIG_SITE"; then 1845 set x "$CONFIG_SITE" 1846elif test "x$prefix" != xNONE; then 1847 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1848else 1849 set x "$ac_default_prefix/share/config.site" \ 1850 "$ac_default_prefix/etc/config.site" 1851fi 1852shift 1853for ac_site_file 1854do 1855 if test -r "$ac_site_file"; then 1856 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1857echo "$as_me: loading site script $ac_site_file" >&6;} 1858 sed 's/^/| /' "$ac_site_file" >&5 1859 . "$ac_site_file" 1860 fi 1861done 1862 1863if test -r "$cache_file"; then 1864 # Some versions of bash will fail to source /dev/null (special 1865 # files actually), so we avoid doing that. 1866 if test -f "$cache_file"; then 1867 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1868echo "$as_me: loading cache $cache_file" >&6;} 1869 case $cache_file in 1870 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1871 *) . "./$cache_file";; 1872 esac 1873 fi 1874else 1875 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1876echo "$as_me: creating cache $cache_file" >&6;} 1877 >$cache_file 1878fi 1879 1880# Check that the precious variables saved in the cache have kept the same 1881# value. 1882ac_cache_corrupted=false 1883for ac_var in $ac_precious_vars; do 1884 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1885 eval ac_new_set=\$ac_env_${ac_var}_set 1886 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1887 eval ac_new_val=\$ac_env_${ac_var}_value 1888 case $ac_old_set,$ac_new_set in 1889 set,) 1890 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1891echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1892 ac_cache_corrupted=: ;; 1893 ,set) 1894 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1895echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1896 ac_cache_corrupted=: ;; 1897 ,);; 1898 *) 1899 if test "x$ac_old_val" != "x$ac_new_val"; then 1900 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1901echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1902 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1903echo "$as_me: former value: $ac_old_val" >&2;} 1904 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1905echo "$as_me: current value: $ac_new_val" >&2;} 1906 ac_cache_corrupted=: 1907 fi;; 1908 esac 1909 # Pass precious variables to config.status. 1910 if test "$ac_new_set" = set; then 1911 case $ac_new_val in 1912 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1913 *) ac_arg=$ac_var=$ac_new_val ;; 1914 esac 1915 case " $ac_configure_args " in 1916 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1917 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1918 esac 1919 fi 1920done 1921if $ac_cache_corrupted; then 1922 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1923echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1924 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1925echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1926 { (exit 1); exit 1; }; } 1927fi 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953ac_ext=c 1954ac_cpp='$CPP $CPPFLAGS' 1955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1957ac_compiler_gnu=$ac_cv_c_compiler_gnu 1958 1959 1960 1961 1962am__api_version='1.10' 1963 1964ac_aux_dir= 1965for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 1966 if test -f "$ac_dir/install-sh"; then 1967 ac_aux_dir=$ac_dir 1968 ac_install_sh="$ac_aux_dir/install-sh -c" 1969 break 1970 elif test -f "$ac_dir/install.sh"; then 1971 ac_aux_dir=$ac_dir 1972 ac_install_sh="$ac_aux_dir/install.sh -c" 1973 break 1974 elif test -f "$ac_dir/shtool"; then 1975 ac_aux_dir=$ac_dir 1976 ac_install_sh="$ac_aux_dir/shtool install -c" 1977 break 1978 fi 1979done 1980if test -z "$ac_aux_dir"; then 1981 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 1982echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 1983 { (exit 1); exit 1; }; } 1984fi 1985 1986# These three variables are undocumented and unsupported, 1987# and are intended to be withdrawn in a future Autoconf release. 1988# They can cause serious problems if a builder's source tree is in a directory 1989# whose full name contains unusual characters. 1990ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1991ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1992ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1993 1994 1995# Find a good install program. We prefer a C program (faster), 1996# so one script is as good as another. But avoid the broken or 1997# incompatible versions: 1998# SysV /etc/install, /usr/sbin/install 1999# SunOS /usr/etc/install 2000# IRIX /sbin/install 2001# AIX /bin/install 2002# AmigaOS /C/install, which installs bootblocks on floppy discs 2003# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2004# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2005# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2006# OS/2's system install, which has a completely different semantic 2007# ./install, which can be erroneously created by make from ./install.sh. 2008{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2009echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 2010if test -z "$INSTALL"; then 2011if test "${ac_cv_path_install+set}" = set; then 2012 echo $ECHO_N "(cached) $ECHO_C" >&6 2013else 2014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2015for as_dir in $PATH 2016do 2017 IFS=$as_save_IFS 2018 test -z "$as_dir" && as_dir=. 2019 # Account for people who put trailing slashes in PATH elements. 2020case $as_dir/ in 2021 ./ | .// | /cC/* | \ 2022 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2023 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2024 /usr/ucb/* ) ;; 2025 *) 2026 # OSF1 and SCO ODT 3.0 have their own names for install. 2027 # Don't use installbsd from OSF since it installs stuff as root 2028 # by default. 2029 for ac_prog in ginstall scoinst install; do 2030 for ac_exec_ext in '' $ac_executable_extensions; do 2031 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2032 if test $ac_prog = install && 2033 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2034 # AIX install. It has an incompatible calling convention. 2035 : 2036 elif test $ac_prog = install && 2037 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2038 # program-specific install script used by HP pwplus--don't use. 2039 : 2040 else 2041 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2042 break 3 2043 fi 2044 fi 2045 done 2046 done 2047 ;; 2048esac 2049done 2050IFS=$as_save_IFS 2051 2052 2053fi 2054 if test "${ac_cv_path_install+set}" = set; then 2055 INSTALL=$ac_cv_path_install 2056 else 2057 # As a last resort, use the slow shell script. Don't cache a 2058 # value for INSTALL within a source directory, because that will 2059 # break other packages using the cache if that directory is 2060 # removed, or if the value is a relative name. 2061 INSTALL=$ac_install_sh 2062 fi 2063fi 2064{ echo "$as_me:$LINENO: result: $INSTALL" >&5 2065echo "${ECHO_T}$INSTALL" >&6; } 2066 2067# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2068# It thinks the first close brace ends the variable substitution. 2069test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2070 2071test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2072 2073test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2074 2075{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2076echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 2077# Just in case 2078sleep 1 2079echo timestamp > conftest.file 2080# Do `set' in a subshell so we don't clobber the current shell's 2081# arguments. Must try -L first in case configure is actually a 2082# symlink; some systems play weird games with the mod time of symlinks 2083# (eg FreeBSD returns the mod time of the symlink's containing 2084# directory). 2085if ( 2086 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2087 if test "$*" = "X"; then 2088 # -L didn't work. 2089 set X `ls -t $srcdir/configure conftest.file` 2090 fi 2091 rm -f conftest.file 2092 if test "$*" != "X $srcdir/configure conftest.file" \ 2093 && test "$*" != "X conftest.file $srcdir/configure"; then 2094 2095 # If neither matched, then we have a broken ls. This can happen 2096 # if, for instance, CONFIG_SHELL is bash and it inherits a 2097 # broken ls alias from the environment. This has actually 2098 # happened. Such a system could not be considered "sane". 2099 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2100alias in your environment" >&5 2101echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2102alias in your environment" >&2;} 2103 { (exit 1); exit 1; }; } 2104 fi 2105 2106 test "$2" = conftest.file 2107 ) 2108then 2109 # Ok. 2110 : 2111else 2112 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2113Check your system clock" >&5 2114echo "$as_me: error: newly created file is older than distributed files! 2115Check your system clock" >&2;} 2116 { (exit 1); exit 1; }; } 2117fi 2118{ echo "$as_me:$LINENO: result: yes" >&5 2119echo "${ECHO_T}yes" >&6; } 2120test "$program_prefix" != NONE && 2121 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2122# Use a double $ so make ignores it. 2123test "$program_suffix" != NONE && 2124 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2125# Double any \ or $. echo might interpret backslashes. 2126# By default was `s,x,x', remove it if useless. 2127cat <<\_ACEOF >conftest.sed 2128s/[\\$]/&&/g;s/;s,x,x,$// 2129_ACEOF 2130program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2131rm -f conftest.sed 2132 2133# expand $ac_aux_dir to an absolute path 2134am_aux_dir=`cd $ac_aux_dir && pwd` 2135 2136test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2137# Use eval to expand $SHELL 2138if eval "$MISSING --run true"; then 2139 am_missing_run="$MISSING --run " 2140else 2141 am_missing_run= 2142 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2143echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2144fi 2145 2146{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2147echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } 2148if test -z "$MKDIR_P"; then 2149 if test "${ac_cv_path_mkdir+set}" = set; then 2150 echo $ECHO_N "(cached) $ECHO_C" >&6 2151else 2152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2153for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2154do 2155 IFS=$as_save_IFS 2156 test -z "$as_dir" && as_dir=. 2157 for ac_prog in mkdir gmkdir; do 2158 for ac_exec_ext in '' $ac_executable_extensions; do 2159 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2160 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2161 'mkdir (GNU coreutils) '* | \ 2162 'mkdir (coreutils) '* | \ 2163 'mkdir (fileutils) '4.1*) 2164 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2165 break 3;; 2166 esac 2167 done 2168 done 2169done 2170IFS=$as_save_IFS 2171 2172fi 2173 2174 if test "${ac_cv_path_mkdir+set}" = set; then 2175 MKDIR_P="$ac_cv_path_mkdir -p" 2176 else 2177 # As a last resort, use the slow shell script. Don't cache a 2178 # value for MKDIR_P within a source directory, because that will 2179 # break other packages using the cache if that directory is 2180 # removed, or if the value is a relative name. 2181 test -d ./--version && rmdir ./--version 2182 MKDIR_P="$ac_install_sh -d" 2183 fi 2184fi 2185{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2186echo "${ECHO_T}$MKDIR_P" >&6; } 2187 2188mkdir_p="$MKDIR_P" 2189case $mkdir_p in 2190 [\\/$]* | ?:[\\/]*) ;; 2191 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2192esac 2193 2194for ac_prog in gawk mawk nawk awk 2195do 2196 # Extract the first word of "$ac_prog", so it can be a program name with args. 2197set dummy $ac_prog; ac_word=$2 2198{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2199echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2200if test "${ac_cv_prog_AWK+set}" = set; then 2201 echo $ECHO_N "(cached) $ECHO_C" >&6 2202else 2203 if test -n "$AWK"; then 2204 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2205else 2206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2207for as_dir in $PATH 2208do 2209 IFS=$as_save_IFS 2210 test -z "$as_dir" && as_dir=. 2211 for ac_exec_ext in '' $ac_executable_extensions; do 2212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2213 ac_cv_prog_AWK="$ac_prog" 2214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2215 break 2 2216 fi 2217done 2218done 2219IFS=$as_save_IFS 2220 2221fi 2222fi 2223AWK=$ac_cv_prog_AWK 2224if test -n "$AWK"; then 2225 { echo "$as_me:$LINENO: result: $AWK" >&5 2226echo "${ECHO_T}$AWK" >&6; } 2227else 2228 { echo "$as_me:$LINENO: result: no" >&5 2229echo "${ECHO_T}no" >&6; } 2230fi 2231 2232 2233 test -n "$AWK" && break 2234done 2235 2236{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2237echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2238set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2239if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2240 echo $ECHO_N "(cached) $ECHO_C" >&6 2241else 2242 cat >conftest.make <<\_ACEOF 2243SHELL = /bin/sh 2244all: 2245 @echo '@@@%%%=$(MAKE)=@@@%%%' 2246_ACEOF 2247# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2248case `${MAKE-make} -f conftest.make 2>/dev/null` in 2249 *@@@%%%=?*=@@@%%%*) 2250 eval ac_cv_prog_make_${ac_make}_set=yes;; 2251 *) 2252 eval ac_cv_prog_make_${ac_make}_set=no;; 2253esac 2254rm -f conftest.make 2255fi 2256if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2257 { echo "$as_me:$LINENO: result: yes" >&5 2258echo "${ECHO_T}yes" >&6; } 2259 SET_MAKE= 2260else 2261 { echo "$as_me:$LINENO: result: no" >&5 2262echo "${ECHO_T}no" >&6; } 2263 SET_MAKE="MAKE=${MAKE-make}" 2264fi 2265 2266rm -rf .tst 2>/dev/null 2267mkdir .tst 2>/dev/null 2268if test -d .tst; then 2269 am__leading_dot=. 2270else 2271 am__leading_dot=_ 2272fi 2273rmdir .tst 2>/dev/null 2274 2275if test "`cd $srcdir && pwd`" != "`pwd`"; then 2276 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2277 # is not polluted with repeated "-I." 2278 am__isrc=' -I$(srcdir)' 2279 # test to see if srcdir already configured 2280 if test -f $srcdir/config.status; then 2281 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2282echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2283 { (exit 1); exit 1; }; } 2284 fi 2285fi 2286 2287# test whether we have cygpath 2288if test -z "$CYGPATH_W"; then 2289 if (cygpath --version) >/dev/null 2>/dev/null; then 2290 CYGPATH_W='cygpath -w' 2291 else 2292 CYGPATH_W=echo 2293 fi 2294fi 2295 2296 2297# Define the identity of the package. 2298 PACKAGE='libSM' 2299 VERSION='1.0.3' 2300 2301 2302cat >>confdefs.h <<_ACEOF 2303#define PACKAGE "$PACKAGE" 2304_ACEOF 2305 2306 2307cat >>confdefs.h <<_ACEOF 2308#define VERSION "$VERSION" 2309_ACEOF 2310 2311# Some tools Automake needs. 2312 2313ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2314 2315 2316AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2317 2318 2319AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2320 2321 2322AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2323 2324 2325MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2326 2327install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2328 2329# Installed binaries are usually stripped using `strip' when the user 2330# run `make install-strip'. However `strip' might not be the right 2331# tool to use in cross-compilation environments, therefore Automake 2332# will honor the `STRIP' environment variable to overrule this program. 2333if test "$cross_compiling" != no; then 2334 if test -n "$ac_tool_prefix"; then 2335 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2336set dummy ${ac_tool_prefix}strip; ac_word=$2 2337{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2338echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2339if test "${ac_cv_prog_STRIP+set}" = set; then 2340 echo $ECHO_N "(cached) $ECHO_C" >&6 2341else 2342 if test -n "$STRIP"; then 2343 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2344else 2345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2346for as_dir in $PATH 2347do 2348 IFS=$as_save_IFS 2349 test -z "$as_dir" && as_dir=. 2350 for ac_exec_ext in '' $ac_executable_extensions; do 2351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2352 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2354 break 2 2355 fi 2356done 2357done 2358IFS=$as_save_IFS 2359 2360fi 2361fi 2362STRIP=$ac_cv_prog_STRIP 2363if test -n "$STRIP"; then 2364 { echo "$as_me:$LINENO: result: $STRIP" >&5 2365echo "${ECHO_T}$STRIP" >&6; } 2366else 2367 { echo "$as_me:$LINENO: result: no" >&5 2368echo "${ECHO_T}no" >&6; } 2369fi 2370 2371 2372fi 2373if test -z "$ac_cv_prog_STRIP"; then 2374 ac_ct_STRIP=$STRIP 2375 # Extract the first word of "strip", so it can be a program name with args. 2376set dummy strip; ac_word=$2 2377{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2378echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2379if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2380 echo $ECHO_N "(cached) $ECHO_C" >&6 2381else 2382 if test -n "$ac_ct_STRIP"; then 2383 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2384else 2385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2386for as_dir in $PATH 2387do 2388 IFS=$as_save_IFS 2389 test -z "$as_dir" && as_dir=. 2390 for ac_exec_ext in '' $ac_executable_extensions; do 2391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2392 ac_cv_prog_ac_ct_STRIP="strip" 2393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2394 break 2 2395 fi 2396done 2397done 2398IFS=$as_save_IFS 2399 2400fi 2401fi 2402ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2403if test -n "$ac_ct_STRIP"; then 2404 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2405echo "${ECHO_T}$ac_ct_STRIP" >&6; } 2406else 2407 { echo "$as_me:$LINENO: result: no" >&5 2408echo "${ECHO_T}no" >&6; } 2409fi 2410 2411 if test "x$ac_ct_STRIP" = x; then 2412 STRIP=":" 2413 else 2414 case $cross_compiling:$ac_tool_warned in 2415yes:) 2416{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2417whose name does not start with the host triplet. If you think this 2418configuration is useful to you, please write to autoconf@gnu.org." >&5 2419echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2420whose name does not start with the host triplet. If you think this 2421configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2422ac_tool_warned=yes ;; 2423esac 2424 STRIP=$ac_ct_STRIP 2425 fi 2426else 2427 STRIP="$ac_cv_prog_STRIP" 2428fi 2429 2430fi 2431INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2432 2433# We need awk for the "check" target. The system "awk" is bad on 2434# some platforms. 2435# Always define AMTAR for backward compatibility. 2436 2437AMTAR=${AMTAR-"${am_missing_run}tar"} 2438 2439am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2440 2441 2442 2443 2444 2445 2446{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 2447echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; } 2448 # Check whether --enable-maintainer-mode was given. 2449if test "${enable_maintainer_mode+set}" = set; then 2450 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2451else 2452 USE_MAINTAINER_MODE=no 2453fi 2454 2455 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 2456echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; } 2457 if test $USE_MAINTAINER_MODE = yes; then 2458 MAINTAINER_MODE_TRUE= 2459 MAINTAINER_MODE_FALSE='#' 2460else 2461 MAINTAINER_MODE_TRUE='#' 2462 MAINTAINER_MODE_FALSE= 2463fi 2464 2465 MAINT=$MAINTAINER_MODE_TRUE 2466 2467 2468 2469ac_config_headers="$ac_config_headers config.h" 2470 2471 2472# Checks for programs. 2473# Check whether --enable-shared was given. 2474if test "${enable_shared+set}" = set; then 2475 enableval=$enable_shared; p=${PACKAGE-default} 2476 case $enableval in 2477 yes) enable_shared=yes ;; 2478 no) enable_shared=no ;; 2479 *) 2480 enable_shared=no 2481 # Look at the argument we got. We use all the common list separators. 2482 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2483 for pkg in $enableval; do 2484 IFS="$lt_save_ifs" 2485 if test "X$pkg" = "X$p"; then 2486 enable_shared=yes 2487 fi 2488 done 2489 IFS="$lt_save_ifs" 2490 ;; 2491 esac 2492else 2493 enable_shared=yes 2494fi 2495 2496 2497# Check whether --enable-static was given. 2498if test "${enable_static+set}" = set; then 2499 enableval=$enable_static; p=${PACKAGE-default} 2500 case $enableval in 2501 yes) enable_static=yes ;; 2502 no) enable_static=no ;; 2503 *) 2504 enable_static=no 2505 # Look at the argument we got. We use all the common list separators. 2506 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2507 for pkg in $enableval; do 2508 IFS="$lt_save_ifs" 2509 if test "X$pkg" = "X$p"; then 2510 enable_static=yes 2511 fi 2512 done 2513 IFS="$lt_save_ifs" 2514 ;; 2515 esac 2516else 2517 enable_static=yes 2518fi 2519 2520 2521# Check whether --enable-fast-install was given. 2522if test "${enable_fast_install+set}" = set; then 2523 enableval=$enable_fast_install; p=${PACKAGE-default} 2524 case $enableval in 2525 yes) enable_fast_install=yes ;; 2526 no) enable_fast_install=no ;; 2527 *) 2528 enable_fast_install=no 2529 # Look at the argument we got. We use all the common list separators. 2530 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2531 for pkg in $enableval; do 2532 IFS="$lt_save_ifs" 2533 if test "X$pkg" = "X$p"; then 2534 enable_fast_install=yes 2535 fi 2536 done 2537 IFS="$lt_save_ifs" 2538 ;; 2539 esac 2540else 2541 enable_fast_install=yes 2542fi 2543 2544 2545# Make sure we can run config.sub. 2546$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2547 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 2548echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 2549 { (exit 1); exit 1; }; } 2550 2551{ echo "$as_me:$LINENO: checking build system type" >&5 2552echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 2553if test "${ac_cv_build+set}" = set; then 2554 echo $ECHO_N "(cached) $ECHO_C" >&6 2555else 2556 ac_build_alias=$build_alias 2557test "x$ac_build_alias" = x && 2558 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2559test "x$ac_build_alias" = x && 2560 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2561echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2562 { (exit 1); exit 1; }; } 2563ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2564 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 2565echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2566 { (exit 1); exit 1; }; } 2567 2568fi 2569{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2570echo "${ECHO_T}$ac_cv_build" >&6; } 2571case $ac_cv_build in 2572*-*-*) ;; 2573*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2574echo "$as_me: error: invalid value of canonical build" >&2;} 2575 { (exit 1); exit 1; }; };; 2576esac 2577build=$ac_cv_build 2578ac_save_IFS=$IFS; IFS='-' 2579set x $ac_cv_build 2580shift 2581build_cpu=$1 2582build_vendor=$2 2583shift; shift 2584# Remember, the first character of IFS is used to create $*, 2585# except with old shells: 2586build_os=$* 2587IFS=$ac_save_IFS 2588case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2589 2590 2591{ echo "$as_me:$LINENO: checking host system type" >&5 2592echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 2593if test "${ac_cv_host+set}" = set; then 2594 echo $ECHO_N "(cached) $ECHO_C" >&6 2595else 2596 if test "x$host_alias" = x; then 2597 ac_cv_host=$ac_cv_build 2598else 2599 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2600 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2601echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2602 { (exit 1); exit 1; }; } 2603fi 2604 2605fi 2606{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2607echo "${ECHO_T}$ac_cv_host" >&6; } 2608case $ac_cv_host in 2609*-*-*) ;; 2610*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2611echo "$as_me: error: invalid value of canonical host" >&2;} 2612 { (exit 1); exit 1; }; };; 2613esac 2614host=$ac_cv_host 2615ac_save_IFS=$IFS; IFS='-' 2616set x $ac_cv_host 2617shift 2618host_cpu=$1 2619host_vendor=$2 2620shift; shift 2621# Remember, the first character of IFS is used to create $*, 2622# except with old shells: 2623host_os=$* 2624IFS=$ac_save_IFS 2625case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2626 2627 2628DEPDIR="${am__leading_dot}deps" 2629 2630ac_config_commands="$ac_config_commands depfiles" 2631 2632 2633am_make=${MAKE-make} 2634cat > confinc << 'END' 2635am__doit: 2636 @echo done 2637.PHONY: am__doit 2638END 2639# If we don't find an include directive, just comment out the code. 2640{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2641echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 2642am__include="#" 2643am__quote= 2644_am_result=none 2645# First try GNU make style include. 2646echo "include confinc" > confmf 2647# We grep out `Entering directory' and `Leaving directory' 2648# messages which can occur if `w' ends up in MAKEFLAGS. 2649# In particular we don't look at `^make:' because GNU make might 2650# be invoked under some other name (usually "gmake"), in which 2651# case it prints its new name instead of `make'. 2652if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2653 am__include=include 2654 am__quote= 2655 _am_result=GNU 2656fi 2657# Now try BSD make style include. 2658if test "$am__include" = "#"; then 2659 echo '.include "confinc"' > confmf 2660 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2661 am__include=.include 2662 am__quote="\"" 2663 _am_result=BSD 2664 fi 2665fi 2666 2667 2668{ echo "$as_me:$LINENO: result: $_am_result" >&5 2669echo "${ECHO_T}$_am_result" >&6; } 2670rm -f confinc confmf 2671 2672# Check whether --enable-dependency-tracking was given. 2673if test "${enable_dependency_tracking+set}" = set; then 2674 enableval=$enable_dependency_tracking; 2675fi 2676 2677if test "x$enable_dependency_tracking" != xno; then 2678 am_depcomp="$ac_aux_dir/depcomp" 2679 AMDEPBACKSLASH='\' 2680fi 2681 if test "x$enable_dependency_tracking" != xno; then 2682 AMDEP_TRUE= 2683 AMDEP_FALSE='#' 2684else 2685 AMDEP_TRUE='#' 2686 AMDEP_FALSE= 2687fi 2688 2689 2690ac_ext=c 2691ac_cpp='$CPP $CPPFLAGS' 2692ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2693ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2694ac_compiler_gnu=$ac_cv_c_compiler_gnu 2695if test -n "$ac_tool_prefix"; then 2696 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2697set dummy ${ac_tool_prefix}gcc; ac_word=$2 2698{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2699echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2700if test "${ac_cv_prog_CC+set}" = set; then 2701 echo $ECHO_N "(cached) $ECHO_C" >&6 2702else 2703 if test -n "$CC"; then 2704 ac_cv_prog_CC="$CC" # Let the user override the test. 2705else 2706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2707for as_dir in $PATH 2708do 2709 IFS=$as_save_IFS 2710 test -z "$as_dir" && as_dir=. 2711 for ac_exec_ext in '' $ac_executable_extensions; do 2712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2713 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2715 break 2 2716 fi 2717done 2718done 2719IFS=$as_save_IFS 2720 2721fi 2722fi 2723CC=$ac_cv_prog_CC 2724if test -n "$CC"; then 2725 { echo "$as_me:$LINENO: result: $CC" >&5 2726echo "${ECHO_T}$CC" >&6; } 2727else 2728 { echo "$as_me:$LINENO: result: no" >&5 2729echo "${ECHO_T}no" >&6; } 2730fi 2731 2732 2733fi 2734if test -z "$ac_cv_prog_CC"; then 2735 ac_ct_CC=$CC 2736 # Extract the first word of "gcc", so it can be a program name with args. 2737set dummy gcc; ac_word=$2 2738{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2739echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2740if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2741 echo $ECHO_N "(cached) $ECHO_C" >&6 2742else 2743 if test -n "$ac_ct_CC"; then 2744 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2745else 2746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2747for as_dir in $PATH 2748do 2749 IFS=$as_save_IFS 2750 test -z "$as_dir" && as_dir=. 2751 for ac_exec_ext in '' $ac_executable_extensions; do 2752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2753 ac_cv_prog_ac_ct_CC="gcc" 2754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2755 break 2 2756 fi 2757done 2758done 2759IFS=$as_save_IFS 2760 2761fi 2762fi 2763ac_ct_CC=$ac_cv_prog_ac_ct_CC 2764if test -n "$ac_ct_CC"; then 2765 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2766echo "${ECHO_T}$ac_ct_CC" >&6; } 2767else 2768 { echo "$as_me:$LINENO: result: no" >&5 2769echo "${ECHO_T}no" >&6; } 2770fi 2771 2772 if test "x$ac_ct_CC" = x; then 2773 CC="" 2774 else 2775 case $cross_compiling:$ac_tool_warned in 2776yes:) 2777{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2778whose name does not start with the host triplet. If you think this 2779configuration is useful to you, please write to autoconf@gnu.org." >&5 2780echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2781whose name does not start with the host triplet. If you think this 2782configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2783ac_tool_warned=yes ;; 2784esac 2785 CC=$ac_ct_CC 2786 fi 2787else 2788 CC="$ac_cv_prog_CC" 2789fi 2790 2791if test -z "$CC"; then 2792 if test -n "$ac_tool_prefix"; then 2793 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2794set dummy ${ac_tool_prefix}cc; ac_word=$2 2795{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2796echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2797if test "${ac_cv_prog_CC+set}" = set; then 2798 echo $ECHO_N "(cached) $ECHO_C" >&6 2799else 2800 if test -n "$CC"; then 2801 ac_cv_prog_CC="$CC" # Let the user override the test. 2802else 2803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2804for as_dir in $PATH 2805do 2806 IFS=$as_save_IFS 2807 test -z "$as_dir" && as_dir=. 2808 for ac_exec_ext in '' $ac_executable_extensions; do 2809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2810 ac_cv_prog_CC="${ac_tool_prefix}cc" 2811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2812 break 2 2813 fi 2814done 2815done 2816IFS=$as_save_IFS 2817 2818fi 2819fi 2820CC=$ac_cv_prog_CC 2821if test -n "$CC"; then 2822 { echo "$as_me:$LINENO: result: $CC" >&5 2823echo "${ECHO_T}$CC" >&6; } 2824else 2825 { echo "$as_me:$LINENO: result: no" >&5 2826echo "${ECHO_T}no" >&6; } 2827fi 2828 2829 2830 fi 2831fi 2832if test -z "$CC"; then 2833 # Extract the first word of "cc", so it can be a program name with args. 2834set dummy cc; ac_word=$2 2835{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2837if test "${ac_cv_prog_CC+set}" = set; then 2838 echo $ECHO_N "(cached) $ECHO_C" >&6 2839else 2840 if test -n "$CC"; then 2841 ac_cv_prog_CC="$CC" # Let the user override the test. 2842else 2843 ac_prog_rejected=no 2844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2845for as_dir in $PATH 2846do 2847 IFS=$as_save_IFS 2848 test -z "$as_dir" && as_dir=. 2849 for ac_exec_ext in '' $ac_executable_extensions; do 2850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2851 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2852 ac_prog_rejected=yes 2853 continue 2854 fi 2855 ac_cv_prog_CC="cc" 2856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2857 break 2 2858 fi 2859done 2860done 2861IFS=$as_save_IFS 2862 2863if test $ac_prog_rejected = yes; then 2864 # We found a bogon in the path, so make sure we never use it. 2865 set dummy $ac_cv_prog_CC 2866 shift 2867 if test $# != 0; then 2868 # We chose a different compiler from the bogus one. 2869 # However, it has the same basename, so the bogon will be chosen 2870 # first if we set CC to just the basename; use the full file name. 2871 shift 2872 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2873 fi 2874fi 2875fi 2876fi 2877CC=$ac_cv_prog_CC 2878if test -n "$CC"; then 2879 { echo "$as_me:$LINENO: result: $CC" >&5 2880echo "${ECHO_T}$CC" >&6; } 2881else 2882 { echo "$as_me:$LINENO: result: no" >&5 2883echo "${ECHO_T}no" >&6; } 2884fi 2885 2886 2887fi 2888if test -z "$CC"; then 2889 if test -n "$ac_tool_prefix"; then 2890 for ac_prog in cl.exe 2891 do 2892 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2893set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2894{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2896if test "${ac_cv_prog_CC+set}" = set; then 2897 echo $ECHO_N "(cached) $ECHO_C" >&6 2898else 2899 if test -n "$CC"; then 2900 ac_cv_prog_CC="$CC" # Let the user override the test. 2901else 2902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2903for as_dir in $PATH 2904do 2905 IFS=$as_save_IFS 2906 test -z "$as_dir" && as_dir=. 2907 for ac_exec_ext in '' $ac_executable_extensions; do 2908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2909 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2911 break 2 2912 fi 2913done 2914done 2915IFS=$as_save_IFS 2916 2917fi 2918fi 2919CC=$ac_cv_prog_CC 2920if test -n "$CC"; then 2921 { echo "$as_me:$LINENO: result: $CC" >&5 2922echo "${ECHO_T}$CC" >&6; } 2923else 2924 { echo "$as_me:$LINENO: result: no" >&5 2925echo "${ECHO_T}no" >&6; } 2926fi 2927 2928 2929 test -n "$CC" && break 2930 done 2931fi 2932if test -z "$CC"; then 2933 ac_ct_CC=$CC 2934 for ac_prog in cl.exe 2935do 2936 # Extract the first word of "$ac_prog", so it can be a program name with args. 2937set dummy $ac_prog; ac_word=$2 2938{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2939echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2940if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2941 echo $ECHO_N "(cached) $ECHO_C" >&6 2942else 2943 if test -n "$ac_ct_CC"; then 2944 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2945else 2946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2947for as_dir in $PATH 2948do 2949 IFS=$as_save_IFS 2950 test -z "$as_dir" && as_dir=. 2951 for ac_exec_ext in '' $ac_executable_extensions; do 2952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2953 ac_cv_prog_ac_ct_CC="$ac_prog" 2954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2955 break 2 2956 fi 2957done 2958done 2959IFS=$as_save_IFS 2960 2961fi 2962fi 2963ac_ct_CC=$ac_cv_prog_ac_ct_CC 2964if test -n "$ac_ct_CC"; then 2965 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2966echo "${ECHO_T}$ac_ct_CC" >&6; } 2967else 2968 { echo "$as_me:$LINENO: result: no" >&5 2969echo "${ECHO_T}no" >&6; } 2970fi 2971 2972 2973 test -n "$ac_ct_CC" && break 2974done 2975 2976 if test "x$ac_ct_CC" = x; then 2977 CC="" 2978 else 2979 case $cross_compiling:$ac_tool_warned in 2980yes:) 2981{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2982whose name does not start with the host triplet. If you think this 2983configuration is useful to you, please write to autoconf@gnu.org." >&5 2984echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2985whose name does not start with the host triplet. If you think this 2986configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2987ac_tool_warned=yes ;; 2988esac 2989 CC=$ac_ct_CC 2990 fi 2991fi 2992 2993fi 2994 2995 2996test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2997See \`config.log' for more details." >&5 2998echo "$as_me: error: no acceptable C compiler found in \$PATH 2999See \`config.log' for more details." >&2;} 3000 { (exit 1); exit 1; }; } 3001 3002# Provide some information about the compiler. 3003echo "$as_me:$LINENO: checking for C compiler version" >&5 3004ac_compiler=`set X $ac_compile; echo $2` 3005{ (ac_try="$ac_compiler --version >&5" 3006case "(($ac_try" in 3007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3008 *) ac_try_echo=$ac_try;; 3009esac 3010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3011 (eval "$ac_compiler --version >&5") 2>&5 3012 ac_status=$? 3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3014 (exit $ac_status); } 3015{ (ac_try="$ac_compiler -v >&5" 3016case "(($ac_try" in 3017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3018 *) ac_try_echo=$ac_try;; 3019esac 3020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3021 (eval "$ac_compiler -v >&5") 2>&5 3022 ac_status=$? 3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3024 (exit $ac_status); } 3025{ (ac_try="$ac_compiler -V >&5" 3026case "(($ac_try" in 3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3028 *) ac_try_echo=$ac_try;; 3029esac 3030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3031 (eval "$ac_compiler -V >&5") 2>&5 3032 ac_status=$? 3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3034 (exit $ac_status); } 3035 3036cat >conftest.$ac_ext <<_ACEOF 3037/* confdefs.h. */ 3038_ACEOF 3039cat confdefs.h >>conftest.$ac_ext 3040cat >>conftest.$ac_ext <<_ACEOF 3041/* end confdefs.h. */ 3042 3043int 3044main () 3045{ 3046 3047 ; 3048 return 0; 3049} 3050_ACEOF 3051ac_clean_files_save=$ac_clean_files 3052ac_clean_files="$ac_clean_files a.out a.exe b.out" 3053# Try to create an executable without -o first, disregard a.out. 3054# It will help us diagnose broken compilers, and finding out an intuition 3055# of exeext. 3056{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 3057echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 3058ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3059# 3060# List of possible output files, starting from the most likely. 3061# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 3062# only as a last resort. b.out is created by i960 compilers. 3063ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 3064# 3065# The IRIX 6 linker writes into existing files which may not be 3066# executable, retaining their permissions. Remove them first so a 3067# subsequent execution test works. 3068ac_rmfiles= 3069for ac_file in $ac_files 3070do 3071 case $ac_file in 3072 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3073 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3074 esac 3075done 3076rm -f $ac_rmfiles 3077 3078if { (ac_try="$ac_link_default" 3079case "(($ac_try" in 3080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3081 *) ac_try_echo=$ac_try;; 3082esac 3083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3084 (eval "$ac_link_default") 2>&5 3085 ac_status=$? 3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3087 (exit $ac_status); }; then 3088 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3089# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3090# in a Makefile. We should not override ac_cv_exeext if it was cached, 3091# so that the user can short-circuit this test for compilers unknown to 3092# Autoconf. 3093for ac_file in $ac_files '' 3094do 3095 test -f "$ac_file" || continue 3096 case $ac_file in 3097 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 3098 ;; 3099 [ab].out ) 3100 # We found the default executable, but exeext='' is most 3101 # certainly right. 3102 break;; 3103 *.* ) 3104 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3105 then :; else 3106 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3107 fi 3108 # We set ac_cv_exeext here because the later test for it is not 3109 # safe: cross compilers may not add the suffix if given an `-o' 3110 # argument, so we may need to know it at that point already. 3111 # Even if this section looks crufty: it has the advantage of 3112 # actually working. 3113 break;; 3114 * ) 3115 break;; 3116 esac 3117done 3118test "$ac_cv_exeext" = no && ac_cv_exeext= 3119 3120else 3121 ac_file='' 3122fi 3123 3124{ echo "$as_me:$LINENO: result: $ac_file" >&5 3125echo "${ECHO_T}$ac_file" >&6; } 3126if test -z "$ac_file"; then 3127 echo "$as_me: failed program was:" >&5 3128sed 's/^/| /' conftest.$ac_ext >&5 3129 3130{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 3131See \`config.log' for more details." >&5 3132echo "$as_me: error: C compiler cannot create executables 3133See \`config.log' for more details." >&2;} 3134 { (exit 77); exit 77; }; } 3135fi 3136 3137ac_exeext=$ac_cv_exeext 3138 3139# Check that the compiler produces executables we can run. If not, either 3140# the compiler is broken, or we cross compile. 3141{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3142echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 3143# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3144# If not cross compiling, check that we can run a simple program. 3145if test "$cross_compiling" != yes; then 3146 if { ac_try='./$ac_file' 3147 { (case "(($ac_try" in 3148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3149 *) ac_try_echo=$ac_try;; 3150esac 3151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3152 (eval "$ac_try") 2>&5 3153 ac_status=$? 3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3155 (exit $ac_status); }; }; then 3156 cross_compiling=no 3157 else 3158 if test "$cross_compiling" = maybe; then 3159 cross_compiling=yes 3160 else 3161 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 3162If you meant to cross compile, use \`--host'. 3163See \`config.log' for more details." >&5 3164echo "$as_me: error: cannot run C compiled programs. 3165If you meant to cross compile, use \`--host'. 3166See \`config.log' for more details." >&2;} 3167 { (exit 1); exit 1; }; } 3168 fi 3169 fi 3170fi 3171{ echo "$as_me:$LINENO: result: yes" >&5 3172echo "${ECHO_T}yes" >&6; } 3173 3174rm -f a.out a.exe conftest$ac_cv_exeext b.out 3175ac_clean_files=$ac_clean_files_save 3176# Check that the compiler produces executables we can run. If not, either 3177# the compiler is broken, or we cross compile. 3178{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3179echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 3180{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 3181echo "${ECHO_T}$cross_compiling" >&6; } 3182 3183{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 3184echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 3185if { (ac_try="$ac_link" 3186case "(($ac_try" in 3187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3188 *) ac_try_echo=$ac_try;; 3189esac 3190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3191 (eval "$ac_link") 2>&5 3192 ac_status=$? 3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3194 (exit $ac_status); }; then 3195 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3196# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3197# work properly (i.e., refer to `conftest.exe'), while it won't with 3198# `rm'. 3199for ac_file in conftest.exe conftest conftest.*; do 3200 test -f "$ac_file" || continue 3201 case $ac_file in 3202 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3203 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3204 break;; 3205 * ) break;; 3206 esac 3207done 3208else 3209 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3210See \`config.log' for more details." >&5 3211echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3212See \`config.log' for more details." >&2;} 3213 { (exit 1); exit 1; }; } 3214fi 3215 3216rm -f conftest$ac_cv_exeext 3217{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3218echo "${ECHO_T}$ac_cv_exeext" >&6; } 3219 3220rm -f conftest.$ac_ext 3221EXEEXT=$ac_cv_exeext 3222ac_exeext=$EXEEXT 3223{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 3224echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 3225if test "${ac_cv_objext+set}" = set; then 3226 echo $ECHO_N "(cached) $ECHO_C" >&6 3227else 3228 cat >conftest.$ac_ext <<_ACEOF 3229/* confdefs.h. */ 3230_ACEOF 3231cat confdefs.h >>conftest.$ac_ext 3232cat >>conftest.$ac_ext <<_ACEOF 3233/* end confdefs.h. */ 3234 3235int 3236main () 3237{ 3238 3239 ; 3240 return 0; 3241} 3242_ACEOF 3243rm -f conftest.o conftest.obj 3244if { (ac_try="$ac_compile" 3245case "(($ac_try" in 3246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3247 *) ac_try_echo=$ac_try;; 3248esac 3249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3250 (eval "$ac_compile") 2>&5 3251 ac_status=$? 3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3253 (exit $ac_status); }; then 3254 for ac_file in conftest.o conftest.obj conftest.*; do 3255 test -f "$ac_file" || continue; 3256 case $ac_file in 3257 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 3258 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3259 break;; 3260 esac 3261done 3262else 3263 echo "$as_me: failed program was:" >&5 3264sed 's/^/| /' conftest.$ac_ext >&5 3265 3266{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3267See \`config.log' for more details." >&5 3268echo "$as_me: error: cannot compute suffix of object files: cannot compile 3269See \`config.log' for more details." >&2;} 3270 { (exit 1); exit 1; }; } 3271fi 3272 3273rm -f conftest.$ac_cv_objext conftest.$ac_ext 3274fi 3275{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3276echo "${ECHO_T}$ac_cv_objext" >&6; } 3277OBJEXT=$ac_cv_objext 3278ac_objext=$OBJEXT 3279{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3280echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3281if test "${ac_cv_c_compiler_gnu+set}" = set; then 3282 echo $ECHO_N "(cached) $ECHO_C" >&6 3283else 3284 cat >conftest.$ac_ext <<_ACEOF 3285/* confdefs.h. */ 3286_ACEOF 3287cat confdefs.h >>conftest.$ac_ext 3288cat >>conftest.$ac_ext <<_ACEOF 3289/* end confdefs.h. */ 3290 3291int 3292main () 3293{ 3294#ifndef __GNUC__ 3295 choke me 3296#endif 3297 3298 ; 3299 return 0; 3300} 3301_ACEOF 3302rm -f conftest.$ac_objext 3303if { (ac_try="$ac_compile" 3304case "(($ac_try" in 3305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3306 *) ac_try_echo=$ac_try;; 3307esac 3308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3309 (eval "$ac_compile") 2>conftest.er1 3310 ac_status=$? 3311 grep -v '^ *+' conftest.er1 >conftest.err 3312 rm -f conftest.er1 3313 cat conftest.err >&5 3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3315 (exit $ac_status); } && { 3316 test -z "$ac_c_werror_flag" || 3317 test ! -s conftest.err 3318 } && test -s conftest.$ac_objext; then 3319 ac_compiler_gnu=yes 3320else 3321 echo "$as_me: failed program was:" >&5 3322sed 's/^/| /' conftest.$ac_ext >&5 3323 3324 ac_compiler_gnu=no 3325fi 3326 3327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3328ac_cv_c_compiler_gnu=$ac_compiler_gnu 3329 3330fi 3331{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3332echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3333GCC=`test $ac_compiler_gnu = yes && echo yes` 3334ac_test_CFLAGS=${CFLAGS+set} 3335ac_save_CFLAGS=$CFLAGS 3336{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3337echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3338if test "${ac_cv_prog_cc_g+set}" = set; then 3339 echo $ECHO_N "(cached) $ECHO_C" >&6 3340else 3341 ac_save_c_werror_flag=$ac_c_werror_flag 3342 ac_c_werror_flag=yes 3343 ac_cv_prog_cc_g=no 3344 CFLAGS="-g" 3345 cat >conftest.$ac_ext <<_ACEOF 3346/* confdefs.h. */ 3347_ACEOF 3348cat confdefs.h >>conftest.$ac_ext 3349cat >>conftest.$ac_ext <<_ACEOF 3350/* end confdefs.h. */ 3351 3352int 3353main () 3354{ 3355 3356 ; 3357 return 0; 3358} 3359_ACEOF 3360rm -f conftest.$ac_objext 3361if { (ac_try="$ac_compile" 3362case "(($ac_try" in 3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3364 *) ac_try_echo=$ac_try;; 3365esac 3366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3367 (eval "$ac_compile") 2>conftest.er1 3368 ac_status=$? 3369 grep -v '^ *+' conftest.er1 >conftest.err 3370 rm -f conftest.er1 3371 cat conftest.err >&5 3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3373 (exit $ac_status); } && { 3374 test -z "$ac_c_werror_flag" || 3375 test ! -s conftest.err 3376 } && test -s conftest.$ac_objext; then 3377 ac_cv_prog_cc_g=yes 3378else 3379 echo "$as_me: failed program was:" >&5 3380sed 's/^/| /' conftest.$ac_ext >&5 3381 3382 CFLAGS="" 3383 cat >conftest.$ac_ext <<_ACEOF 3384/* confdefs.h. */ 3385_ACEOF 3386cat confdefs.h >>conftest.$ac_ext 3387cat >>conftest.$ac_ext <<_ACEOF 3388/* end confdefs.h. */ 3389 3390int 3391main () 3392{ 3393 3394 ; 3395 return 0; 3396} 3397_ACEOF 3398rm -f conftest.$ac_objext 3399if { (ac_try="$ac_compile" 3400case "(($ac_try" in 3401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3402 *) ac_try_echo=$ac_try;; 3403esac 3404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3405 (eval "$ac_compile") 2>conftest.er1 3406 ac_status=$? 3407 grep -v '^ *+' conftest.er1 >conftest.err 3408 rm -f conftest.er1 3409 cat conftest.err >&5 3410 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3411 (exit $ac_status); } && { 3412 test -z "$ac_c_werror_flag" || 3413 test ! -s conftest.err 3414 } && test -s conftest.$ac_objext; then 3415 : 3416else 3417 echo "$as_me: failed program was:" >&5 3418sed 's/^/| /' conftest.$ac_ext >&5 3419 3420 ac_c_werror_flag=$ac_save_c_werror_flag 3421 CFLAGS="-g" 3422 cat >conftest.$ac_ext <<_ACEOF 3423/* confdefs.h. */ 3424_ACEOF 3425cat confdefs.h >>conftest.$ac_ext 3426cat >>conftest.$ac_ext <<_ACEOF 3427/* end confdefs.h. */ 3428 3429int 3430main () 3431{ 3432 3433 ; 3434 return 0; 3435} 3436_ACEOF 3437rm -f conftest.$ac_objext 3438if { (ac_try="$ac_compile" 3439case "(($ac_try" in 3440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3441 *) ac_try_echo=$ac_try;; 3442esac 3443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3444 (eval "$ac_compile") 2>conftest.er1 3445 ac_status=$? 3446 grep -v '^ *+' conftest.er1 >conftest.err 3447 rm -f conftest.er1 3448 cat conftest.err >&5 3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3450 (exit $ac_status); } && { 3451 test -z "$ac_c_werror_flag" || 3452 test ! -s conftest.err 3453 } && test -s conftest.$ac_objext; then 3454 ac_cv_prog_cc_g=yes 3455else 3456 echo "$as_me: failed program was:" >&5 3457sed 's/^/| /' conftest.$ac_ext >&5 3458 3459 3460fi 3461 3462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3463fi 3464 3465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3466fi 3467 3468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3469 ac_c_werror_flag=$ac_save_c_werror_flag 3470fi 3471{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3472echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3473if test "$ac_test_CFLAGS" = set; then 3474 CFLAGS=$ac_save_CFLAGS 3475elif test $ac_cv_prog_cc_g = yes; then 3476 if test "$GCC" = yes; then 3477 CFLAGS="-g -O2" 3478 else 3479 CFLAGS="-g" 3480 fi 3481else 3482 if test "$GCC" = yes; then 3483 CFLAGS="-O2" 3484 else 3485 CFLAGS= 3486 fi 3487fi 3488{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3489echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3490if test "${ac_cv_prog_cc_c89+set}" = set; then 3491 echo $ECHO_N "(cached) $ECHO_C" >&6 3492else 3493 ac_cv_prog_cc_c89=no 3494ac_save_CC=$CC 3495cat >conftest.$ac_ext <<_ACEOF 3496/* confdefs.h. */ 3497_ACEOF 3498cat confdefs.h >>conftest.$ac_ext 3499cat >>conftest.$ac_ext <<_ACEOF 3500/* end confdefs.h. */ 3501#include <stdarg.h> 3502#include <stdio.h> 3503#include <sys/types.h> 3504#include <sys/stat.h> 3505/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3506struct buf { int x; }; 3507FILE * (*rcsopen) (struct buf *, struct stat *, int); 3508static char *e (p, i) 3509 char **p; 3510 int i; 3511{ 3512 return p[i]; 3513} 3514static char *f (char * (*g) (char **, int), char **p, ...) 3515{ 3516 char *s; 3517 va_list v; 3518 va_start (v,p); 3519 s = g (p, va_arg (v,int)); 3520 va_end (v); 3521 return s; 3522} 3523 3524/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3525 function prototypes and stuff, but not '\xHH' hex character constants. 3526 These don't provoke an error unfortunately, instead are silently treated 3527 as 'x'. The following induces an error, until -std is added to get 3528 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3529 array size at least. It's necessary to write '\x00'==0 to get something 3530 that's true only with -std. */ 3531int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3532 3533/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3534 inside strings and character constants. */ 3535#define FOO(x) 'x' 3536int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3537 3538int test (int i, double x); 3539struct s1 {int (*f) (int a);}; 3540struct s2 {int (*f) (double a);}; 3541int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3542int argc; 3543char **argv; 3544int 3545main () 3546{ 3547return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3548 ; 3549 return 0; 3550} 3551_ACEOF 3552for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3553 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3554do 3555 CC="$ac_save_CC $ac_arg" 3556 rm -f conftest.$ac_objext 3557if { (ac_try="$ac_compile" 3558case "(($ac_try" in 3559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3560 *) ac_try_echo=$ac_try;; 3561esac 3562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3563 (eval "$ac_compile") 2>conftest.er1 3564 ac_status=$? 3565 grep -v '^ *+' conftest.er1 >conftest.err 3566 rm -f conftest.er1 3567 cat conftest.err >&5 3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3569 (exit $ac_status); } && { 3570 test -z "$ac_c_werror_flag" || 3571 test ! -s conftest.err 3572 } && test -s conftest.$ac_objext; then 3573 ac_cv_prog_cc_c89=$ac_arg 3574else 3575 echo "$as_me: failed program was:" >&5 3576sed 's/^/| /' conftest.$ac_ext >&5 3577 3578 3579fi 3580 3581rm -f core conftest.err conftest.$ac_objext 3582 test "x$ac_cv_prog_cc_c89" != "xno" && break 3583done 3584rm -f conftest.$ac_ext 3585CC=$ac_save_CC 3586 3587fi 3588# AC_CACHE_VAL 3589case "x$ac_cv_prog_cc_c89" in 3590 x) 3591 { echo "$as_me:$LINENO: result: none needed" >&5 3592echo "${ECHO_T}none needed" >&6; } ;; 3593 xno) 3594 { echo "$as_me:$LINENO: result: unsupported" >&5 3595echo "${ECHO_T}unsupported" >&6; } ;; 3596 *) 3597 CC="$CC $ac_cv_prog_cc_c89" 3598 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3599echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3600esac 3601 3602 3603ac_ext=c 3604ac_cpp='$CPP $CPPFLAGS' 3605ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3606ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3607ac_compiler_gnu=$ac_cv_c_compiler_gnu 3608 3609depcc="$CC" am_compiler_list= 3610 3611{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3612echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3613if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3614 echo $ECHO_N "(cached) $ECHO_C" >&6 3615else 3616 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3617 # We make a subdir and do the tests there. Otherwise we can end up 3618 # making bogus files that we don't know about and never remove. For 3619 # instance it was reported that on HP-UX the gcc test will end up 3620 # making a dummy file named `D' -- because `-MD' means `put the output 3621 # in D'. 3622 mkdir conftest.dir 3623 # Copy depcomp to subdir because otherwise we won't find it if we're 3624 # using a relative directory. 3625 cp "$am_depcomp" conftest.dir 3626 cd conftest.dir 3627 # We will build objects and dependencies in a subdirectory because 3628 # it helps to detect inapplicable dependency modes. For instance 3629 # both Tru64's cc and ICC support -MD to output dependencies as a 3630 # side effect of compilation, but ICC will put the dependencies in 3631 # the current directory while Tru64 will put them in the object 3632 # directory. 3633 mkdir sub 3634 3635 am_cv_CC_dependencies_compiler_type=none 3636 if test "$am_compiler_list" = ""; then 3637 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3638 fi 3639 for depmode in $am_compiler_list; do 3640 # Setup a source with many dependencies, because some compilers 3641 # like to wrap large dependency lists on column 80 (with \), and 3642 # we should not choose a depcomp mode which is confused by this. 3643 # 3644 # We need to recreate these files for each test, as the compiler may 3645 # overwrite some of them when testing with obscure command lines. 3646 # This happens at least with the AIX C compiler. 3647 : > sub/conftest.c 3648 for i in 1 2 3 4 5 6; do 3649 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3650 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3651 # Solaris 8's {/usr,}/bin/sh. 3652 touch sub/conftst$i.h 3653 done 3654 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3655 3656 case $depmode in 3657 nosideeffect) 3658 # after this tag, mechanisms are not by side-effect, so they'll 3659 # only be used when explicitly requested 3660 if test "x$enable_dependency_tracking" = xyes; then 3661 continue 3662 else 3663 break 3664 fi 3665 ;; 3666 none) break ;; 3667 esac 3668 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3669 # mode. It turns out that the SunPro C++ compiler does not properly 3670 # handle `-M -o', and we need to detect this. 3671 if depmode=$depmode \ 3672 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3673 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3674 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3675 >/dev/null 2>conftest.err && 3676 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3677 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3678 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3679 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3680 # icc doesn't choke on unknown options, it will just issue warnings 3681 # or remarks (even with -Werror). So we grep stderr for any message 3682 # that says an option was ignored or not supported. 3683 # When given -MP, icc 7.0 and 7.1 complain thusly: 3684 # icc: Command line warning: ignoring option '-M'; no argument required 3685 # The diagnosis changed in icc 8.0: 3686 # icc: Command line remark: option '-MP' not supported 3687 if (grep 'ignoring option' conftest.err || 3688 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3689 am_cv_CC_dependencies_compiler_type=$depmode 3690 break 3691 fi 3692 fi 3693 done 3694 3695 cd .. 3696 rm -rf conftest.dir 3697else 3698 am_cv_CC_dependencies_compiler_type=none 3699fi 3700 3701fi 3702{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3703echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 3704CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3705 3706 if 3707 test "x$enable_dependency_tracking" != xno \ 3708 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3709 am__fastdepCC_TRUE= 3710 am__fastdepCC_FALSE='#' 3711else 3712 am__fastdepCC_TRUE='#' 3713 am__fastdepCC_FALSE= 3714fi 3715 3716 3717{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3718echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } 3719if test "${lt_cv_path_SED+set}" = set; then 3720 echo $ECHO_N "(cached) $ECHO_C" >&6 3721else 3722 # Loop through the user's path and test for sed and gsed. 3723# Then use that list of sed's as ones to test for truncation. 3724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3725for as_dir in $PATH 3726do 3727 IFS=$as_save_IFS 3728 test -z "$as_dir" && as_dir=. 3729 for lt_ac_prog in sed gsed; do 3730 for ac_exec_ext in '' $ac_executable_extensions; do 3731 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 3732 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3733 fi 3734 done 3735 done 3736done 3737lt_ac_max=0 3738lt_ac_count=0 3739# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3740# along with /bin/sed that truncates output. 3741for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3742 test ! -f $lt_ac_sed && continue 3743 cat /dev/null > conftest.in 3744 lt_ac_count=0 3745 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3746 # Check for GNU sed and select it if it is found. 3747 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3748 lt_cv_path_SED=$lt_ac_sed 3749 break 3750 fi 3751 while true; do 3752 cat conftest.in conftest.in >conftest.tmp 3753 mv conftest.tmp conftest.in 3754 cp conftest.in conftest.nl 3755 echo >>conftest.nl 3756 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3757 cmp -s conftest.out conftest.nl || break 3758 # 10000 chars as input seems more than enough 3759 test $lt_ac_count -gt 10 && break 3760 lt_ac_count=`expr $lt_ac_count + 1` 3761 if test $lt_ac_count -gt $lt_ac_max; then 3762 lt_ac_max=$lt_ac_count 3763 lt_cv_path_SED=$lt_ac_sed 3764 fi 3765 done 3766done 3767 3768fi 3769 3770SED=$lt_cv_path_SED 3771{ echo "$as_me:$LINENO: result: $SED" >&5 3772echo "${ECHO_T}$SED" >&6; } 3773 3774{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3775echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3776if test "${ac_cv_path_GREP+set}" = set; then 3777 echo $ECHO_N "(cached) $ECHO_C" >&6 3778else 3779 # Extract the first word of "grep ggrep" to use in msg output 3780if test -z "$GREP"; then 3781set dummy grep ggrep; ac_prog_name=$2 3782if test "${ac_cv_path_GREP+set}" = set; then 3783 echo $ECHO_N "(cached) $ECHO_C" >&6 3784else 3785 ac_path_GREP_found=false 3786# Loop through the user's path and test for each of PROGNAME-LIST 3787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3788for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3789do 3790 IFS=$as_save_IFS 3791 test -z "$as_dir" && as_dir=. 3792 for ac_prog in grep ggrep; do 3793 for ac_exec_ext in '' $ac_executable_extensions; do 3794 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3795 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3796 # Check for GNU ac_path_GREP and select it if it is found. 3797 # Check for GNU $ac_path_GREP 3798case `"$ac_path_GREP" --version 2>&1` in 3799*GNU*) 3800 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3801*) 3802 ac_count=0 3803 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3804 while : 3805 do 3806 cat "conftest.in" "conftest.in" >"conftest.tmp" 3807 mv "conftest.tmp" "conftest.in" 3808 cp "conftest.in" "conftest.nl" 3809 echo 'GREP' >> "conftest.nl" 3810 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3811 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3812 ac_count=`expr $ac_count + 1` 3813 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3814 # Best one so far, save it but keep looking for a better one 3815 ac_cv_path_GREP="$ac_path_GREP" 3816 ac_path_GREP_max=$ac_count 3817 fi 3818 # 10*(2^10) chars as input seems more than enough 3819 test $ac_count -gt 10 && break 3820 done 3821 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3822esac 3823 3824 3825 $ac_path_GREP_found && break 3 3826 done 3827done 3828 3829done 3830IFS=$as_save_IFS 3831 3832 3833fi 3834 3835GREP="$ac_cv_path_GREP" 3836if test -z "$GREP"; then 3837 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3838echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3839 { (exit 1); exit 1; }; } 3840fi 3841 3842else 3843 ac_cv_path_GREP=$GREP 3844fi 3845 3846 3847fi 3848{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3849echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3850 GREP="$ac_cv_path_GREP" 3851 3852 3853{ echo "$as_me:$LINENO: checking for egrep" >&5 3854echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3855if test "${ac_cv_path_EGREP+set}" = set; then 3856 echo $ECHO_N "(cached) $ECHO_C" >&6 3857else 3858 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3859 then ac_cv_path_EGREP="$GREP -E" 3860 else 3861 # Extract the first word of "egrep" to use in msg output 3862if test -z "$EGREP"; then 3863set dummy egrep; ac_prog_name=$2 3864if test "${ac_cv_path_EGREP+set}" = set; then 3865 echo $ECHO_N "(cached) $ECHO_C" >&6 3866else 3867 ac_path_EGREP_found=false 3868# Loop through the user's path and test for each of PROGNAME-LIST 3869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3870for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3871do 3872 IFS=$as_save_IFS 3873 test -z "$as_dir" && as_dir=. 3874 for ac_prog in egrep; do 3875 for ac_exec_ext in '' $ac_executable_extensions; do 3876 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3877 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3878 # Check for GNU ac_path_EGREP and select it if it is found. 3879 # Check for GNU $ac_path_EGREP 3880case `"$ac_path_EGREP" --version 2>&1` in 3881*GNU*) 3882 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3883*) 3884 ac_count=0 3885 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3886 while : 3887 do 3888 cat "conftest.in" "conftest.in" >"conftest.tmp" 3889 mv "conftest.tmp" "conftest.in" 3890 cp "conftest.in" "conftest.nl" 3891 echo 'EGREP' >> "conftest.nl" 3892 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3893 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3894 ac_count=`expr $ac_count + 1` 3895 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3896 # Best one so far, save it but keep looking for a better one 3897 ac_cv_path_EGREP="$ac_path_EGREP" 3898 ac_path_EGREP_max=$ac_count 3899 fi 3900 # 10*(2^10) chars as input seems more than enough 3901 test $ac_count -gt 10 && break 3902 done 3903 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3904esac 3905 3906 3907 $ac_path_EGREP_found && break 3 3908 done 3909done 3910 3911done 3912IFS=$as_save_IFS 3913 3914 3915fi 3916 3917EGREP="$ac_cv_path_EGREP" 3918if test -z "$EGREP"; then 3919 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3920echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3921 { (exit 1); exit 1; }; } 3922fi 3923 3924else 3925 ac_cv_path_EGREP=$EGREP 3926fi 3927 3928 3929 fi 3930fi 3931{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3932echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3933 EGREP="$ac_cv_path_EGREP" 3934 3935 3936 3937# Check whether --with-gnu-ld was given. 3938if test "${with_gnu_ld+set}" = set; then 3939 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 3940else 3941 with_gnu_ld=no 3942fi 3943 3944ac_prog=ld 3945if test "$GCC" = yes; then 3946 # Check if gcc -print-prog-name=ld gives a path. 3947 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3948echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 3949 case $host in 3950 *-*-mingw*) 3951 # gcc leaves a trailing carriage return which upsets mingw 3952 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3953 *) 3954 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3955 esac 3956 case $ac_prog in 3957 # Accept absolute paths. 3958 [\\/]* | ?:[\\/]*) 3959 re_direlt='/[^/][^/]*/\.\./' 3960 # Canonicalize the pathname of ld 3961 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 3962 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3963 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 3964 done 3965 test -z "$LD" && LD="$ac_prog" 3966 ;; 3967 "") 3968 # If it fails, then pretend we aren't using GCC. 3969 ac_prog=ld 3970 ;; 3971 *) 3972 # If it is relative, then search for the first ld in PATH. 3973 with_gnu_ld=unknown 3974 ;; 3975 esac 3976elif test "$with_gnu_ld" = yes; then 3977 { echo "$as_me:$LINENO: checking for GNU ld" >&5 3978echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 3979else 3980 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 3981echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 3982fi 3983if test "${lt_cv_path_LD+set}" = set; then 3984 echo $ECHO_N "(cached) $ECHO_C" >&6 3985else 3986 if test -z "$LD"; then 3987 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3988 for ac_dir in $PATH; do 3989 IFS="$lt_save_ifs" 3990 test -z "$ac_dir" && ac_dir=. 3991 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3992 lt_cv_path_LD="$ac_dir/$ac_prog" 3993 # Check to see if the program is GNU ld. I'd rather use --version, 3994 # but apparently some variants of GNU ld only accept -v. 3995 # Break only if it was the GNU/non-GNU ld that we prefer. 3996 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3997 *GNU* | *'with BFD'*) 3998 test "$with_gnu_ld" != no && break 3999 ;; 4000 *) 4001 test "$with_gnu_ld" != yes && break 4002 ;; 4003 esac 4004 fi 4005 done 4006 IFS="$lt_save_ifs" 4007else 4008 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4009fi 4010fi 4011 4012LD="$lt_cv_path_LD" 4013if test -n "$LD"; then 4014 { echo "$as_me:$LINENO: result: $LD" >&5 4015echo "${ECHO_T}$LD" >&6; } 4016else 4017 { echo "$as_me:$LINENO: result: no" >&5 4018echo "${ECHO_T}no" >&6; } 4019fi 4020test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4021echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4022 { (exit 1); exit 1; }; } 4023{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4024echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 4025if test "${lt_cv_prog_gnu_ld+set}" = set; then 4026 echo $ECHO_N "(cached) $ECHO_C" >&6 4027else 4028 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4029case `$LD -v 2>&1 </dev/null` in 4030*GNU* | *'with BFD'*) 4031 lt_cv_prog_gnu_ld=yes 4032 ;; 4033*) 4034 lt_cv_prog_gnu_ld=no 4035 ;; 4036esac 4037fi 4038{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4039echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 4040with_gnu_ld=$lt_cv_prog_gnu_ld 4041 4042 4043{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4044echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } 4045if test "${lt_cv_ld_reload_flag+set}" = set; then 4046 echo $ECHO_N "(cached) $ECHO_C" >&6 4047else 4048 lt_cv_ld_reload_flag='-r' 4049fi 4050{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4051echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } 4052reload_flag=$lt_cv_ld_reload_flag 4053case $reload_flag in 4054"" | " "*) ;; 4055*) reload_flag=" $reload_flag" ;; 4056esac 4057reload_cmds='$LD$reload_flag -o $output$reload_objs' 4058case $host_os in 4059 darwin*) 4060 if test "$GCC" = yes; then 4061 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4062 else 4063 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4064 fi 4065 ;; 4066esac 4067 4068{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4069echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 4070if test "${lt_cv_path_NM+set}" = set; then 4071 echo $ECHO_N "(cached) $ECHO_C" >&6 4072else 4073 if test -n "$NM"; then 4074 # Let the user override the test. 4075 lt_cv_path_NM="$NM" 4076else 4077 lt_nm_to_check="${ac_tool_prefix}nm" 4078 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4079 lt_nm_to_check="$lt_nm_to_check nm" 4080 fi 4081 for lt_tmp_nm in $lt_nm_to_check; do 4082 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4083 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4084 IFS="$lt_save_ifs" 4085 test -z "$ac_dir" && ac_dir=. 4086 tmp_nm="$ac_dir/$lt_tmp_nm" 4087 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4088 # Check to see if the nm accepts a BSD-compat flag. 4089 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4090 # nm: unknown option "B" ignored 4091 # Tru64's nm complains that /dev/null is an invalid object file 4092 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4093 */dev/null* | *'Invalid file or object type'*) 4094 lt_cv_path_NM="$tmp_nm -B" 4095 break 4096 ;; 4097 *) 4098 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4099 */dev/null*) 4100 lt_cv_path_NM="$tmp_nm -p" 4101 break 4102 ;; 4103 *) 4104 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4105 continue # so that we can try to find one that supports BSD flags 4106 ;; 4107 esac 4108 ;; 4109 esac 4110 fi 4111 done 4112 IFS="$lt_save_ifs" 4113 done 4114 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4115fi 4116fi 4117{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4118echo "${ECHO_T}$lt_cv_path_NM" >&6; } 4119NM="$lt_cv_path_NM" 4120 4121{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 4122echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 4123LN_S=$as_ln_s 4124if test "$LN_S" = "ln -s"; then 4125 { echo "$as_me:$LINENO: result: yes" >&5 4126echo "${ECHO_T}yes" >&6; } 4127else 4128 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4129echo "${ECHO_T}no, using $LN_S" >&6; } 4130fi 4131 4132{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 4133echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } 4134if test "${lt_cv_deplibs_check_method+set}" = set; then 4135 echo $ECHO_N "(cached) $ECHO_C" >&6 4136else 4137 lt_cv_file_magic_cmd='$MAGIC_CMD' 4138lt_cv_file_magic_test_file= 4139lt_cv_deplibs_check_method='unknown' 4140# Need to set the preceding variable on all platforms that support 4141# interlibrary dependencies. 4142# 'none' -- dependencies not supported. 4143# `unknown' -- same as none, but documents that we really don't know. 4144# 'pass_all' -- all dependencies passed with no checks. 4145# 'test_compile' -- check by making test program. 4146# 'file_magic [[regex]]' -- check by looking for files in library path 4147# which responds to the $file_magic_cmd with a given extended regex. 4148# If you have `file' or equivalent on your system and you're not sure 4149# whether `pass_all' will *always* work, you probably want this one. 4150 4151case $host_os in 4152aix4* | aix5*) 4153 lt_cv_deplibs_check_method=pass_all 4154 ;; 4155 4156beos*) 4157 lt_cv_deplibs_check_method=pass_all 4158 ;; 4159 4160bsdi[45]*) 4161 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4162 lt_cv_file_magic_cmd='/usr/bin/file -L' 4163 lt_cv_file_magic_test_file=/shlib/libc.so 4164 ;; 4165 4166cygwin*) 4167 # func_win32_libid is a shell function defined in ltmain.sh 4168 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4169 lt_cv_file_magic_cmd='func_win32_libid' 4170 ;; 4171 4172mingw* | pw32*) 4173 # Base MSYS/MinGW do not provide the 'file' command needed by 4174 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 4175 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4176 lt_cv_file_magic_cmd='$OBJDUMP -f' 4177 ;; 4178 4179darwin* | rhapsody*) 4180 lt_cv_deplibs_check_method=pass_all 4181 ;; 4182 4183freebsd* | kfreebsd*-gnu | dragonfly*) 4184 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4185 case $host_cpu in 4186 i*86 ) 4187 # Not sure whether the presence of OpenBSD here was a mistake. 4188 # Let's accept both of them until this is cleared up. 4189 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4190 lt_cv_file_magic_cmd=/usr/bin/file 4191 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4192 ;; 4193 esac 4194 else 4195 lt_cv_deplibs_check_method=pass_all 4196 fi 4197 ;; 4198 4199gnu*) 4200 lt_cv_deplibs_check_method=pass_all 4201 ;; 4202 4203hpux10.20* | hpux11*) 4204 lt_cv_file_magic_cmd=/usr/bin/file 4205 case $host_cpu in 4206 ia64*) 4207 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4208 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4209 ;; 4210 hppa*64*) 4211 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]' 4212 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4213 ;; 4214 *) 4215 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4216 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4217 ;; 4218 esac 4219 ;; 4220 4221interix3*) 4222 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4223 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4224 ;; 4225 4226irix5* | irix6* | nonstopux*) 4227 case $LD in 4228 *-32|*"-32 ") libmagic=32-bit;; 4229 *-n32|*"-n32 ") libmagic=N32;; 4230 *-64|*"-64 ") libmagic=64-bit;; 4231 *) libmagic=never-match;; 4232 esac 4233 lt_cv_deplibs_check_method=pass_all 4234 ;; 4235 4236# This must be Linux ELF. 4237linux*) 4238 lt_cv_deplibs_check_method=pass_all 4239 ;; 4240 4241netbsd*) 4242 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4243 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4244 else 4245 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4246 fi 4247 ;; 4248 4249newos6*) 4250 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4251 lt_cv_file_magic_cmd=/usr/bin/file 4252 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4253 ;; 4254 4255nto-qnx*) 4256 lt_cv_deplibs_check_method=unknown 4257 ;; 4258 4259openbsd*) 4260 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4261 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4262 else 4263 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4264 fi 4265 ;; 4266 4267osf3* | osf4* | osf5*) 4268 lt_cv_deplibs_check_method=pass_all 4269 ;; 4270 4271solaris*) 4272 lt_cv_deplibs_check_method=pass_all 4273 ;; 4274 4275sysv4 | sysv4.3*) 4276 case $host_vendor in 4277 motorola) 4278 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]' 4279 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4280 ;; 4281 ncr) 4282 lt_cv_deplibs_check_method=pass_all 4283 ;; 4284 sequent) 4285 lt_cv_file_magic_cmd='/bin/file' 4286 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4287 ;; 4288 sni) 4289 lt_cv_file_magic_cmd='/bin/file' 4290 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4291 lt_cv_file_magic_test_file=/lib/libc.so 4292 ;; 4293 siemens) 4294 lt_cv_deplibs_check_method=pass_all 4295 ;; 4296 pc) 4297 lt_cv_deplibs_check_method=pass_all 4298 ;; 4299 esac 4300 ;; 4301 4302sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4303 lt_cv_deplibs_check_method=pass_all 4304 ;; 4305esac 4306 4307fi 4308{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4309echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 4310file_magic_cmd=$lt_cv_file_magic_cmd 4311deplibs_check_method=$lt_cv_deplibs_check_method 4312test -z "$deplibs_check_method" && deplibs_check_method=unknown 4313 4314 4315 4316 4317# If no C compiler was specified, use CC. 4318LTCC=${LTCC-"$CC"} 4319 4320# If no C compiler flags were specified, use CFLAGS. 4321LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4322 4323# Allow CC to be a program name with arguments. 4324compiler=$CC 4325 4326 4327# Check whether --enable-libtool-lock was given. 4328if test "${enable_libtool_lock+set}" = set; then 4329 enableval=$enable_libtool_lock; 4330fi 4331 4332test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4333 4334# Some flags need to be propagated to the compiler or linker for good 4335# libtool support. 4336case $host in 4337ia64-*-hpux*) 4338 # Find out which ABI we are using. 4339 echo 'int i;' > conftest.$ac_ext 4340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4341 (eval $ac_compile) 2>&5 4342 ac_status=$? 4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4344 (exit $ac_status); }; then 4345 case `/usr/bin/file conftest.$ac_objext` in 4346 *ELF-32*) 4347 HPUX_IA64_MODE="32" 4348 ;; 4349 *ELF-64*) 4350 HPUX_IA64_MODE="64" 4351 ;; 4352 esac 4353 fi 4354 rm -rf conftest* 4355 ;; 4356*-*-irix6*) 4357 # Find out which ABI we are using. 4358 echo '#line 4358 "configure"' > conftest.$ac_ext 4359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4360 (eval $ac_compile) 2>&5 4361 ac_status=$? 4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4363 (exit $ac_status); }; then 4364 if test "$lt_cv_prog_gnu_ld" = yes; then 4365 case `/usr/bin/file conftest.$ac_objext` in 4366 *32-bit*) 4367 LD="${LD-ld} -melf32bsmip" 4368 ;; 4369 *N32*) 4370 LD="${LD-ld} -melf32bmipn32" 4371 ;; 4372 *64-bit*) 4373 LD="${LD-ld} -melf64bmip" 4374 ;; 4375 esac 4376 else 4377 case `/usr/bin/file conftest.$ac_objext` in 4378 *32-bit*) 4379 LD="${LD-ld} -32" 4380 ;; 4381 *N32*) 4382 LD="${LD-ld} -n32" 4383 ;; 4384 *64-bit*) 4385 LD="${LD-ld} -64" 4386 ;; 4387 esac 4388 fi 4389 fi 4390 rm -rf conftest* 4391 ;; 4392 4393x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 4394 # Find out which ABI we are using. 4395 echo 'int i;' > conftest.$ac_ext 4396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4397 (eval $ac_compile) 2>&5 4398 ac_status=$? 4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4400 (exit $ac_status); }; then 4401 case `/usr/bin/file conftest.o` in 4402 *32-bit*) 4403 case $host in 4404 x86_64-*linux*) 4405 LD="${LD-ld} -m elf_i386" 4406 ;; 4407 ppc64-*linux*|powerpc64-*linux*) 4408 LD="${LD-ld} -m elf32ppclinux" 4409 ;; 4410 s390x-*linux*) 4411 LD="${LD-ld} -m elf_s390" 4412 ;; 4413 sparc64-*linux*) 4414 LD="${LD-ld} -m elf32_sparc" 4415 ;; 4416 esac 4417 ;; 4418 *64-bit*) 4419 case $host in 4420 x86_64-*linux*) 4421 LD="${LD-ld} -m elf_x86_64" 4422 ;; 4423 ppc*-*linux*|powerpc*-*linux*) 4424 LD="${LD-ld} -m elf64ppc" 4425 ;; 4426 s390*-*linux*) 4427 LD="${LD-ld} -m elf64_s390" 4428 ;; 4429 sparc*-*linux*) 4430 LD="${LD-ld} -m elf64_sparc" 4431 ;; 4432 esac 4433 ;; 4434 esac 4435 fi 4436 rm -rf conftest* 4437 ;; 4438 4439*-*-sco3.2v5*) 4440 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4441 SAVE_CFLAGS="$CFLAGS" 4442 CFLAGS="$CFLAGS -belf" 4443 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4444echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } 4445if test "${lt_cv_cc_needs_belf+set}" = set; then 4446 echo $ECHO_N "(cached) $ECHO_C" >&6 4447else 4448 ac_ext=c 4449ac_cpp='$CPP $CPPFLAGS' 4450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4452ac_compiler_gnu=$ac_cv_c_compiler_gnu 4453 4454 cat >conftest.$ac_ext <<_ACEOF 4455/* confdefs.h. */ 4456_ACEOF 4457cat confdefs.h >>conftest.$ac_ext 4458cat >>conftest.$ac_ext <<_ACEOF 4459/* end confdefs.h. */ 4460 4461int 4462main () 4463{ 4464 4465 ; 4466 return 0; 4467} 4468_ACEOF 4469rm -f conftest.$ac_objext conftest$ac_exeext 4470if { (ac_try="$ac_link" 4471case "(($ac_try" in 4472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4473 *) ac_try_echo=$ac_try;; 4474esac 4475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4476 (eval "$ac_link") 2>conftest.er1 4477 ac_status=$? 4478 grep -v '^ *+' conftest.er1 >conftest.err 4479 rm -f conftest.er1 4480 cat conftest.err >&5 4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4482 (exit $ac_status); } && { 4483 test -z "$ac_c_werror_flag" || 4484 test ! -s conftest.err 4485 } && test -s conftest$ac_exeext && 4486 $as_test_x conftest$ac_exeext; then 4487 lt_cv_cc_needs_belf=yes 4488else 4489 echo "$as_me: failed program was:" >&5 4490sed 's/^/| /' conftest.$ac_ext >&5 4491 4492 lt_cv_cc_needs_belf=no 4493fi 4494 4495rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4496 conftest$ac_exeext conftest.$ac_ext 4497 ac_ext=c 4498ac_cpp='$CPP $CPPFLAGS' 4499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4501ac_compiler_gnu=$ac_cv_c_compiler_gnu 4502 4503fi 4504{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4505echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } 4506 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4507 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4508 CFLAGS="$SAVE_CFLAGS" 4509 fi 4510 ;; 4511sparc*-*solaris*) 4512 # Find out which ABI we are using. 4513 echo 'int i;' > conftest.$ac_ext 4514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4515 (eval $ac_compile) 2>&5 4516 ac_status=$? 4517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4518 (exit $ac_status); }; then 4519 case `/usr/bin/file conftest.o` in 4520 *64-bit*) 4521 case $lt_cv_prog_gnu_ld in 4522 yes*) LD="${LD-ld} -m elf64_sparc" ;; 4523 *) LD="${LD-ld} -64" ;; 4524 esac 4525 ;; 4526 esac 4527 fi 4528 rm -rf conftest* 4529 ;; 4530 4531 4532esac 4533 4534need_locks="$enable_libtool_lock" 4535 4536 4537ac_ext=c 4538ac_cpp='$CPP $CPPFLAGS' 4539ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4540ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4541ac_compiler_gnu=$ac_cv_c_compiler_gnu 4542{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4543echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 4544# On Suns, sometimes $CPP names a directory. 4545if test -n "$CPP" && test -d "$CPP"; then 4546 CPP= 4547fi 4548if test -z "$CPP"; then 4549 if test "${ac_cv_prog_CPP+set}" = set; then 4550 echo $ECHO_N "(cached) $ECHO_C" >&6 4551else 4552 # Double quotes because CPP needs to be expanded 4553 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4554 do 4555 ac_preproc_ok=false 4556for ac_c_preproc_warn_flag in '' yes 4557do 4558 # Use a header file that comes with gcc, so configuring glibc 4559 # with a fresh cross-compiler works. 4560 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4561 # <limits.h> exists even on freestanding compilers. 4562 # On the NeXT, cc -E runs the code through the compiler's parser, 4563 # not just through cpp. "Syntax error" is here to catch this case. 4564 cat >conftest.$ac_ext <<_ACEOF 4565/* confdefs.h. */ 4566_ACEOF 4567cat confdefs.h >>conftest.$ac_ext 4568cat >>conftest.$ac_ext <<_ACEOF 4569/* end confdefs.h. */ 4570#ifdef __STDC__ 4571# include <limits.h> 4572#else 4573# include <assert.h> 4574#endif 4575 Syntax error 4576_ACEOF 4577if { (ac_try="$ac_cpp conftest.$ac_ext" 4578case "(($ac_try" in 4579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4580 *) ac_try_echo=$ac_try;; 4581esac 4582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4583 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4584 ac_status=$? 4585 grep -v '^ *+' conftest.er1 >conftest.err 4586 rm -f conftest.er1 4587 cat conftest.err >&5 4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4589 (exit $ac_status); } >/dev/null && { 4590 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4591 test ! -s conftest.err 4592 }; then 4593 : 4594else 4595 echo "$as_me: failed program was:" >&5 4596sed 's/^/| /' conftest.$ac_ext >&5 4597 4598 # Broken: fails on valid input. 4599continue 4600fi 4601 4602rm -f conftest.err conftest.$ac_ext 4603 4604 # OK, works on sane cases. Now check whether nonexistent headers 4605 # can be detected and how. 4606 cat >conftest.$ac_ext <<_ACEOF 4607/* confdefs.h. */ 4608_ACEOF 4609cat confdefs.h >>conftest.$ac_ext 4610cat >>conftest.$ac_ext <<_ACEOF 4611/* end confdefs.h. */ 4612#include <ac_nonexistent.h> 4613_ACEOF 4614if { (ac_try="$ac_cpp conftest.$ac_ext" 4615case "(($ac_try" in 4616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4617 *) ac_try_echo=$ac_try;; 4618esac 4619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4620 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4621 ac_status=$? 4622 grep -v '^ *+' conftest.er1 >conftest.err 4623 rm -f conftest.er1 4624 cat conftest.err >&5 4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4626 (exit $ac_status); } >/dev/null && { 4627 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4628 test ! -s conftest.err 4629 }; then 4630 # Broken: success on invalid input. 4631continue 4632else 4633 echo "$as_me: failed program was:" >&5 4634sed 's/^/| /' conftest.$ac_ext >&5 4635 4636 # Passes both tests. 4637ac_preproc_ok=: 4638break 4639fi 4640 4641rm -f conftest.err conftest.$ac_ext 4642 4643done 4644# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4645rm -f conftest.err conftest.$ac_ext 4646if $ac_preproc_ok; then 4647 break 4648fi 4649 4650 done 4651 ac_cv_prog_CPP=$CPP 4652 4653fi 4654 CPP=$ac_cv_prog_CPP 4655else 4656 ac_cv_prog_CPP=$CPP 4657fi 4658{ echo "$as_me:$LINENO: result: $CPP" >&5 4659echo "${ECHO_T}$CPP" >&6; } 4660ac_preproc_ok=false 4661for ac_c_preproc_warn_flag in '' yes 4662do 4663 # Use a header file that comes with gcc, so configuring glibc 4664 # with a fresh cross-compiler works. 4665 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4666 # <limits.h> exists even on freestanding compilers. 4667 # On the NeXT, cc -E runs the code through the compiler's parser, 4668 # not just through cpp. "Syntax error" is here to catch this case. 4669 cat >conftest.$ac_ext <<_ACEOF 4670/* confdefs.h. */ 4671_ACEOF 4672cat confdefs.h >>conftest.$ac_ext 4673cat >>conftest.$ac_ext <<_ACEOF 4674/* end confdefs.h. */ 4675#ifdef __STDC__ 4676# include <limits.h> 4677#else 4678# include <assert.h> 4679#endif 4680 Syntax error 4681_ACEOF 4682if { (ac_try="$ac_cpp conftest.$ac_ext" 4683case "(($ac_try" in 4684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4685 *) ac_try_echo=$ac_try;; 4686esac 4687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4688 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4689 ac_status=$? 4690 grep -v '^ *+' conftest.er1 >conftest.err 4691 rm -f conftest.er1 4692 cat conftest.err >&5 4693 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4694 (exit $ac_status); } >/dev/null && { 4695 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4696 test ! -s conftest.err 4697 }; then 4698 : 4699else 4700 echo "$as_me: failed program was:" >&5 4701sed 's/^/| /' conftest.$ac_ext >&5 4702 4703 # Broken: fails on valid input. 4704continue 4705fi 4706 4707rm -f conftest.err conftest.$ac_ext 4708 4709 # OK, works on sane cases. Now check whether nonexistent headers 4710 # can be detected and how. 4711 cat >conftest.$ac_ext <<_ACEOF 4712/* confdefs.h. */ 4713_ACEOF 4714cat confdefs.h >>conftest.$ac_ext 4715cat >>conftest.$ac_ext <<_ACEOF 4716/* end confdefs.h. */ 4717#include <ac_nonexistent.h> 4718_ACEOF 4719if { (ac_try="$ac_cpp conftest.$ac_ext" 4720case "(($ac_try" in 4721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4722 *) ac_try_echo=$ac_try;; 4723esac 4724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4726 ac_status=$? 4727 grep -v '^ *+' conftest.er1 >conftest.err 4728 rm -f conftest.er1 4729 cat conftest.err >&5 4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4731 (exit $ac_status); } >/dev/null && { 4732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4733 test ! -s conftest.err 4734 }; then 4735 # Broken: success on invalid input. 4736continue 4737else 4738 echo "$as_me: failed program was:" >&5 4739sed 's/^/| /' conftest.$ac_ext >&5 4740 4741 # Passes both tests. 4742ac_preproc_ok=: 4743break 4744fi 4745 4746rm -f conftest.err conftest.$ac_ext 4747 4748done 4749# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4750rm -f conftest.err conftest.$ac_ext 4751if $ac_preproc_ok; then 4752 : 4753else 4754 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4755See \`config.log' for more details." >&5 4756echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4757See \`config.log' for more details." >&2;} 4758 { (exit 1); exit 1; }; } 4759fi 4760 4761ac_ext=c 4762ac_cpp='$CPP $CPPFLAGS' 4763ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4764ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4765ac_compiler_gnu=$ac_cv_c_compiler_gnu 4766 4767 4768{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4769echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4770if test "${ac_cv_header_stdc+set}" = set; then 4771 echo $ECHO_N "(cached) $ECHO_C" >&6 4772else 4773 cat >conftest.$ac_ext <<_ACEOF 4774/* confdefs.h. */ 4775_ACEOF 4776cat confdefs.h >>conftest.$ac_ext 4777cat >>conftest.$ac_ext <<_ACEOF 4778/* end confdefs.h. */ 4779#include <stdlib.h> 4780#include <stdarg.h> 4781#include <string.h> 4782#include <float.h> 4783 4784int 4785main () 4786{ 4787 4788 ; 4789 return 0; 4790} 4791_ACEOF 4792rm -f conftest.$ac_objext 4793if { (ac_try="$ac_compile" 4794case "(($ac_try" in 4795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4796 *) ac_try_echo=$ac_try;; 4797esac 4798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4799 (eval "$ac_compile") 2>conftest.er1 4800 ac_status=$? 4801 grep -v '^ *+' conftest.er1 >conftest.err 4802 rm -f conftest.er1 4803 cat conftest.err >&5 4804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4805 (exit $ac_status); } && { 4806 test -z "$ac_c_werror_flag" || 4807 test ! -s conftest.err 4808 } && test -s conftest.$ac_objext; then 4809 ac_cv_header_stdc=yes 4810else 4811 echo "$as_me: failed program was:" >&5 4812sed 's/^/| /' conftest.$ac_ext >&5 4813 4814 ac_cv_header_stdc=no 4815fi 4816 4817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4818 4819if test $ac_cv_header_stdc = yes; then 4820 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4821 cat >conftest.$ac_ext <<_ACEOF 4822/* confdefs.h. */ 4823_ACEOF 4824cat confdefs.h >>conftest.$ac_ext 4825cat >>conftest.$ac_ext <<_ACEOF 4826/* end confdefs.h. */ 4827#include <string.h> 4828 4829_ACEOF 4830if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4831 $EGREP "memchr" >/dev/null 2>&1; then 4832 : 4833else 4834 ac_cv_header_stdc=no 4835fi 4836rm -f conftest* 4837 4838fi 4839 4840if test $ac_cv_header_stdc = yes; then 4841 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4842 cat >conftest.$ac_ext <<_ACEOF 4843/* confdefs.h. */ 4844_ACEOF 4845cat confdefs.h >>conftest.$ac_ext 4846cat >>conftest.$ac_ext <<_ACEOF 4847/* end confdefs.h. */ 4848#include <stdlib.h> 4849 4850_ACEOF 4851if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4852 $EGREP "free" >/dev/null 2>&1; then 4853 : 4854else 4855 ac_cv_header_stdc=no 4856fi 4857rm -f conftest* 4858 4859fi 4860 4861if test $ac_cv_header_stdc = yes; then 4862 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4863 if test "$cross_compiling" = yes; then 4864 : 4865else 4866 cat >conftest.$ac_ext <<_ACEOF 4867/* confdefs.h. */ 4868_ACEOF 4869cat confdefs.h >>conftest.$ac_ext 4870cat >>conftest.$ac_ext <<_ACEOF 4871/* end confdefs.h. */ 4872#include <ctype.h> 4873#include <stdlib.h> 4874#if ((' ' & 0x0FF) == 0x020) 4875# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4876# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4877#else 4878# define ISLOWER(c) \ 4879 (('a' <= (c) && (c) <= 'i') \ 4880 || ('j' <= (c) && (c) <= 'r') \ 4881 || ('s' <= (c) && (c) <= 'z')) 4882# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4883#endif 4884 4885#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4886int 4887main () 4888{ 4889 int i; 4890 for (i = 0; i < 256; i++) 4891 if (XOR (islower (i), ISLOWER (i)) 4892 || toupper (i) != TOUPPER (i)) 4893 return 2; 4894 return 0; 4895} 4896_ACEOF 4897rm -f conftest$ac_exeext 4898if { (ac_try="$ac_link" 4899case "(($ac_try" in 4900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4901 *) ac_try_echo=$ac_try;; 4902esac 4903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4904 (eval "$ac_link") 2>&5 4905 ac_status=$? 4906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4907 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4908 { (case "(($ac_try" in 4909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4910 *) ac_try_echo=$ac_try;; 4911esac 4912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4913 (eval "$ac_try") 2>&5 4914 ac_status=$? 4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4916 (exit $ac_status); }; }; then 4917 : 4918else 4919 echo "$as_me: program exited with status $ac_status" >&5 4920echo "$as_me: failed program was:" >&5 4921sed 's/^/| /' conftest.$ac_ext >&5 4922 4923( exit $ac_status ) 4924ac_cv_header_stdc=no 4925fi 4926rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4927fi 4928 4929 4930fi 4931fi 4932{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4933echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 4934if test $ac_cv_header_stdc = yes; then 4935 4936cat >>confdefs.h <<\_ACEOF 4937#define STDC_HEADERS 1 4938_ACEOF 4939 4940fi 4941 4942# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4953 inttypes.h stdint.h unistd.h 4954do 4955as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4956{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4957echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4958if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4959 echo $ECHO_N "(cached) $ECHO_C" >&6 4960else 4961 cat >conftest.$ac_ext <<_ACEOF 4962/* confdefs.h. */ 4963_ACEOF 4964cat confdefs.h >>conftest.$ac_ext 4965cat >>conftest.$ac_ext <<_ACEOF 4966/* end confdefs.h. */ 4967$ac_includes_default 4968 4969#include <$ac_header> 4970_ACEOF 4971rm -f conftest.$ac_objext 4972if { (ac_try="$ac_compile" 4973case "(($ac_try" in 4974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4975 *) ac_try_echo=$ac_try;; 4976esac 4977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4978 (eval "$ac_compile") 2>conftest.er1 4979 ac_status=$? 4980 grep -v '^ *+' conftest.er1 >conftest.err 4981 rm -f conftest.er1 4982 cat conftest.err >&5 4983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4984 (exit $ac_status); } && { 4985 test -z "$ac_c_werror_flag" || 4986 test ! -s conftest.err 4987 } && test -s conftest.$ac_objext; then 4988 eval "$as_ac_Header=yes" 4989else 4990 echo "$as_me: failed program was:" >&5 4991sed 's/^/| /' conftest.$ac_ext >&5 4992 4993 eval "$as_ac_Header=no" 4994fi 4995 4996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4997fi 4998ac_res=`eval echo '${'$as_ac_Header'}'` 4999 { echo "$as_me:$LINENO: result: $ac_res" >&5 5000echo "${ECHO_T}$ac_res" >&6; } 5001if test `eval echo '${'$as_ac_Header'}'` = yes; then 5002 cat >>confdefs.h <<_ACEOF 5003#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5004_ACEOF 5005 5006fi 5007 5008done 5009 5010 5011 5012for ac_header in dlfcn.h 5013do 5014as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5015if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5016 { echo "$as_me:$LINENO: checking for $ac_header" >&5 5017echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5018if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5019 echo $ECHO_N "(cached) $ECHO_C" >&6 5020fi 5021ac_res=`eval echo '${'$as_ac_Header'}'` 5022 { echo "$as_me:$LINENO: result: $ac_res" >&5 5023echo "${ECHO_T}$ac_res" >&6; } 5024else 5025 # Is the header compilable? 5026{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 5027echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 5028cat >conftest.$ac_ext <<_ACEOF 5029/* confdefs.h. */ 5030_ACEOF 5031cat confdefs.h >>conftest.$ac_ext 5032cat >>conftest.$ac_ext <<_ACEOF 5033/* end confdefs.h. */ 5034$ac_includes_default 5035#include <$ac_header> 5036_ACEOF 5037rm -f conftest.$ac_objext 5038if { (ac_try="$ac_compile" 5039case "(($ac_try" in 5040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5041 *) ac_try_echo=$ac_try;; 5042esac 5043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5044 (eval "$ac_compile") 2>conftest.er1 5045 ac_status=$? 5046 grep -v '^ *+' conftest.er1 >conftest.err 5047 rm -f conftest.er1 5048 cat conftest.err >&5 5049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5050 (exit $ac_status); } && { 5051 test -z "$ac_c_werror_flag" || 5052 test ! -s conftest.err 5053 } && test -s conftest.$ac_objext; then 5054 ac_header_compiler=yes 5055else 5056 echo "$as_me: failed program was:" >&5 5057sed 's/^/| /' conftest.$ac_ext >&5 5058 5059 ac_header_compiler=no 5060fi 5061 5062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5063{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5064echo "${ECHO_T}$ac_header_compiler" >&6; } 5065 5066# Is the header present? 5067{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 5068echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 5069cat >conftest.$ac_ext <<_ACEOF 5070/* confdefs.h. */ 5071_ACEOF 5072cat confdefs.h >>conftest.$ac_ext 5073cat >>conftest.$ac_ext <<_ACEOF 5074/* end confdefs.h. */ 5075#include <$ac_header> 5076_ACEOF 5077if { (ac_try="$ac_cpp conftest.$ac_ext" 5078case "(($ac_try" in 5079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5080 *) ac_try_echo=$ac_try;; 5081esac 5082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5083 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5084 ac_status=$? 5085 grep -v '^ *+' conftest.er1 >conftest.err 5086 rm -f conftest.er1 5087 cat conftest.err >&5 5088 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5089 (exit $ac_status); } >/dev/null && { 5090 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5091 test ! -s conftest.err 5092 }; then 5093 ac_header_preproc=yes 5094else 5095 echo "$as_me: failed program was:" >&5 5096sed 's/^/| /' conftest.$ac_ext >&5 5097 5098 ac_header_preproc=no 5099fi 5100 5101rm -f conftest.err conftest.$ac_ext 5102{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5103echo "${ECHO_T}$ac_header_preproc" >&6; } 5104 5105# So? What about this header? 5106case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5107 yes:no: ) 5108 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5109echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5111echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5112 ac_header_preproc=yes 5113 ;; 5114 no:yes:* ) 5115 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5116echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5117 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5118echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5119 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5120echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5121 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5122echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5124echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5125 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5126echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5127 ( cat <<\_ASBOX 5128## ---------------------------------------------------------------------- ## 5129## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 5130## ---------------------------------------------------------------------- ## 5131_ASBOX 5132 ) | sed "s/^/$as_me: WARNING: /" >&2 5133 ;; 5134esac 5135{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5136echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5137if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5138 echo $ECHO_N "(cached) $ECHO_C" >&6 5139else 5140 eval "$as_ac_Header=\$ac_header_preproc" 5141fi 5142ac_res=`eval echo '${'$as_ac_Header'}'` 5143 { echo "$as_me:$LINENO: result: $ac_res" >&5 5144echo "${ECHO_T}$ac_res" >&6; } 5145 5146fi 5147if test `eval echo '${'$as_ac_Header'}'` = yes; then 5148 cat >>confdefs.h <<_ACEOF 5149#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5150_ACEOF 5151 5152fi 5153 5154done 5155 5156ac_ext=cpp 5157ac_cpp='$CXXCPP $CPPFLAGS' 5158ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5159ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5160ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5161if test -z "$CXX"; then 5162 if test -n "$CCC"; then 5163 CXX=$CCC 5164 else 5165 if test -n "$ac_tool_prefix"; then 5166 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5167 do 5168 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5169set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5170{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5171echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5172if test "${ac_cv_prog_CXX+set}" = set; then 5173 echo $ECHO_N "(cached) $ECHO_C" >&6 5174else 5175 if test -n "$CXX"; then 5176 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5177else 5178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5179for as_dir in $PATH 5180do 5181 IFS=$as_save_IFS 5182 test -z "$as_dir" && as_dir=. 5183 for ac_exec_ext in '' $ac_executable_extensions; do 5184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5185 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5187 break 2 5188 fi 5189done 5190done 5191IFS=$as_save_IFS 5192 5193fi 5194fi 5195CXX=$ac_cv_prog_CXX 5196if test -n "$CXX"; then 5197 { echo "$as_me:$LINENO: result: $CXX" >&5 5198echo "${ECHO_T}$CXX" >&6; } 5199else 5200 { echo "$as_me:$LINENO: result: no" >&5 5201echo "${ECHO_T}no" >&6; } 5202fi 5203 5204 5205 test -n "$CXX" && break 5206 done 5207fi 5208if test -z "$CXX"; then 5209 ac_ct_CXX=$CXX 5210 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5211do 5212 # Extract the first word of "$ac_prog", so it can be a program name with args. 5213set dummy $ac_prog; ac_word=$2 5214{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5215echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5216if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 5217 echo $ECHO_N "(cached) $ECHO_C" >&6 5218else 5219 if test -n "$ac_ct_CXX"; then 5220 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5221else 5222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5223for as_dir in $PATH 5224do 5225 IFS=$as_save_IFS 5226 test -z "$as_dir" && as_dir=. 5227 for ac_exec_ext in '' $ac_executable_extensions; do 5228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5229 ac_cv_prog_ac_ct_CXX="$ac_prog" 5230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5231 break 2 5232 fi 5233done 5234done 5235IFS=$as_save_IFS 5236 5237fi 5238fi 5239ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5240if test -n "$ac_ct_CXX"; then 5241 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 5242echo "${ECHO_T}$ac_ct_CXX" >&6; } 5243else 5244 { echo "$as_me:$LINENO: result: no" >&5 5245echo "${ECHO_T}no" >&6; } 5246fi 5247 5248 5249 test -n "$ac_ct_CXX" && break 5250done 5251 5252 if test "x$ac_ct_CXX" = x; then 5253 CXX="g++" 5254 else 5255 case $cross_compiling:$ac_tool_warned in 5256yes:) 5257{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5258whose name does not start with the host triplet. If you think this 5259configuration is useful to you, please write to autoconf@gnu.org." >&5 5260echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5261whose name does not start with the host triplet. If you think this 5262configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5263ac_tool_warned=yes ;; 5264esac 5265 CXX=$ac_ct_CXX 5266 fi 5267fi 5268 5269 fi 5270fi 5271# Provide some information about the compiler. 5272echo "$as_me:$LINENO: checking for C++ compiler version" >&5 5273ac_compiler=`set X $ac_compile; echo $2` 5274{ (ac_try="$ac_compiler --version >&5" 5275case "(($ac_try" in 5276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5277 *) ac_try_echo=$ac_try;; 5278esac 5279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5280 (eval "$ac_compiler --version >&5") 2>&5 5281 ac_status=$? 5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5283 (exit $ac_status); } 5284{ (ac_try="$ac_compiler -v >&5" 5285case "(($ac_try" in 5286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5287 *) ac_try_echo=$ac_try;; 5288esac 5289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5290 (eval "$ac_compiler -v >&5") 2>&5 5291 ac_status=$? 5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5293 (exit $ac_status); } 5294{ (ac_try="$ac_compiler -V >&5" 5295case "(($ac_try" in 5296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5297 *) ac_try_echo=$ac_try;; 5298esac 5299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5300 (eval "$ac_compiler -V >&5") 2>&5 5301 ac_status=$? 5302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5303 (exit $ac_status); } 5304 5305{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5306echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 5307if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5308 echo $ECHO_N "(cached) $ECHO_C" >&6 5309else 5310 cat >conftest.$ac_ext <<_ACEOF 5311/* confdefs.h. */ 5312_ACEOF 5313cat confdefs.h >>conftest.$ac_ext 5314cat >>conftest.$ac_ext <<_ACEOF 5315/* end confdefs.h. */ 5316 5317int 5318main () 5319{ 5320#ifndef __GNUC__ 5321 choke me 5322#endif 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_compiler_gnu=yes 5346else 5347 echo "$as_me: failed program was:" >&5 5348sed 's/^/| /' conftest.$ac_ext >&5 5349 5350 ac_compiler_gnu=no 5351fi 5352 5353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5354ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5355 5356fi 5357{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 5358echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 5359GXX=`test $ac_compiler_gnu = yes && echo yes` 5360ac_test_CXXFLAGS=${CXXFLAGS+set} 5361ac_save_CXXFLAGS=$CXXFLAGS 5362{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 5363echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 5364if test "${ac_cv_prog_cxx_g+set}" = set; then 5365 echo $ECHO_N "(cached) $ECHO_C" >&6 5366else 5367 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5368 ac_cxx_werror_flag=yes 5369 ac_cv_prog_cxx_g=no 5370 CXXFLAGS="-g" 5371 cat >conftest.$ac_ext <<_ACEOF 5372/* confdefs.h. */ 5373_ACEOF 5374cat confdefs.h >>conftest.$ac_ext 5375cat >>conftest.$ac_ext <<_ACEOF 5376/* end confdefs.h. */ 5377 5378int 5379main () 5380{ 5381 5382 ; 5383 return 0; 5384} 5385_ACEOF 5386rm -f conftest.$ac_objext 5387if { (ac_try="$ac_compile" 5388case "(($ac_try" in 5389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5390 *) ac_try_echo=$ac_try;; 5391esac 5392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5393 (eval "$ac_compile") 2>conftest.er1 5394 ac_status=$? 5395 grep -v '^ *+' conftest.er1 >conftest.err 5396 rm -f conftest.er1 5397 cat conftest.err >&5 5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5399 (exit $ac_status); } && { 5400 test -z "$ac_cxx_werror_flag" || 5401 test ! -s conftest.err 5402 } && test -s conftest.$ac_objext; then 5403 ac_cv_prog_cxx_g=yes 5404else 5405 echo "$as_me: failed program was:" >&5 5406sed 's/^/| /' conftest.$ac_ext >&5 5407 5408 CXXFLAGS="" 5409 cat >conftest.$ac_ext <<_ACEOF 5410/* confdefs.h. */ 5411_ACEOF 5412cat confdefs.h >>conftest.$ac_ext 5413cat >>conftest.$ac_ext <<_ACEOF 5414/* end confdefs.h. */ 5415 5416int 5417main () 5418{ 5419 5420 ; 5421 return 0; 5422} 5423_ACEOF 5424rm -f conftest.$ac_objext 5425if { (ac_try="$ac_compile" 5426case "(($ac_try" in 5427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5428 *) ac_try_echo=$ac_try;; 5429esac 5430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5431 (eval "$ac_compile") 2>conftest.er1 5432 ac_status=$? 5433 grep -v '^ *+' conftest.er1 >conftest.err 5434 rm -f conftest.er1 5435 cat conftest.err >&5 5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5437 (exit $ac_status); } && { 5438 test -z "$ac_cxx_werror_flag" || 5439 test ! -s conftest.err 5440 } && test -s conftest.$ac_objext; then 5441 : 5442else 5443 echo "$as_me: failed program was:" >&5 5444sed 's/^/| /' conftest.$ac_ext >&5 5445 5446 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5447 CXXFLAGS="-g" 5448 cat >conftest.$ac_ext <<_ACEOF 5449/* confdefs.h. */ 5450_ACEOF 5451cat confdefs.h >>conftest.$ac_ext 5452cat >>conftest.$ac_ext <<_ACEOF 5453/* end confdefs.h. */ 5454 5455int 5456main () 5457{ 5458 5459 ; 5460 return 0; 5461} 5462_ACEOF 5463rm -f conftest.$ac_objext 5464if { (ac_try="$ac_compile" 5465case "(($ac_try" in 5466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5467 *) ac_try_echo=$ac_try;; 5468esac 5469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5470 (eval "$ac_compile") 2>conftest.er1 5471 ac_status=$? 5472 grep -v '^ *+' conftest.er1 >conftest.err 5473 rm -f conftest.er1 5474 cat conftest.err >&5 5475 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5476 (exit $ac_status); } && { 5477 test -z "$ac_cxx_werror_flag" || 5478 test ! -s conftest.err 5479 } && test -s conftest.$ac_objext; then 5480 ac_cv_prog_cxx_g=yes 5481else 5482 echo "$as_me: failed program was:" >&5 5483sed 's/^/| /' conftest.$ac_ext >&5 5484 5485 5486fi 5487 5488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5489fi 5490 5491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5492fi 5493 5494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5495 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5496fi 5497{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 5498echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 5499if test "$ac_test_CXXFLAGS" = set; then 5500 CXXFLAGS=$ac_save_CXXFLAGS 5501elif test $ac_cv_prog_cxx_g = yes; then 5502 if test "$GXX" = yes; then 5503 CXXFLAGS="-g -O2" 5504 else 5505 CXXFLAGS="-g" 5506 fi 5507else 5508 if test "$GXX" = yes; then 5509 CXXFLAGS="-O2" 5510 else 5511 CXXFLAGS= 5512 fi 5513fi 5514ac_ext=cpp 5515ac_cpp='$CXXCPP $CPPFLAGS' 5516ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5517ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5518ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5519 5520depcc="$CXX" am_compiler_list= 5521 5522{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5523echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 5524if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 5525 echo $ECHO_N "(cached) $ECHO_C" >&6 5526else 5527 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5528 # We make a subdir and do the tests there. Otherwise we can end up 5529 # making bogus files that we don't know about and never remove. For 5530 # instance it was reported that on HP-UX the gcc test will end up 5531 # making a dummy file named `D' -- because `-MD' means `put the output 5532 # in D'. 5533 mkdir conftest.dir 5534 # Copy depcomp to subdir because otherwise we won't find it if we're 5535 # using a relative directory. 5536 cp "$am_depcomp" conftest.dir 5537 cd conftest.dir 5538 # We will build objects and dependencies in a subdirectory because 5539 # it helps to detect inapplicable dependency modes. For instance 5540 # both Tru64's cc and ICC support -MD to output dependencies as a 5541 # side effect of compilation, but ICC will put the dependencies in 5542 # the current directory while Tru64 will put them in the object 5543 # directory. 5544 mkdir sub 5545 5546 am_cv_CXX_dependencies_compiler_type=none 5547 if test "$am_compiler_list" = ""; then 5548 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5549 fi 5550 for depmode in $am_compiler_list; do 5551 # Setup a source with many dependencies, because some compilers 5552 # like to wrap large dependency lists on column 80 (with \), and 5553 # we should not choose a depcomp mode which is confused by this. 5554 # 5555 # We need to recreate these files for each test, as the compiler may 5556 # overwrite some of them when testing with obscure command lines. 5557 # This happens at least with the AIX C compiler. 5558 : > sub/conftest.c 5559 for i in 1 2 3 4 5 6; do 5560 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5561 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5562 # Solaris 8's {/usr,}/bin/sh. 5563 touch sub/conftst$i.h 5564 done 5565 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5566 5567 case $depmode in 5568 nosideeffect) 5569 # after this tag, mechanisms are not by side-effect, so they'll 5570 # only be used when explicitly requested 5571 if test "x$enable_dependency_tracking" = xyes; then 5572 continue 5573 else 5574 break 5575 fi 5576 ;; 5577 none) break ;; 5578 esac 5579 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5580 # mode. It turns out that the SunPro C++ compiler does not properly 5581 # handle `-M -o', and we need to detect this. 5582 if depmode=$depmode \ 5583 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5584 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5585 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5586 >/dev/null 2>conftest.err && 5587 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5588 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5589 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5590 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5591 # icc doesn't choke on unknown options, it will just issue warnings 5592 # or remarks (even with -Werror). So we grep stderr for any message 5593 # that says an option was ignored or not supported. 5594 # When given -MP, icc 7.0 and 7.1 complain thusly: 5595 # icc: Command line warning: ignoring option '-M'; no argument required 5596 # The diagnosis changed in icc 8.0: 5597 # icc: Command line remark: option '-MP' not supported 5598 if (grep 'ignoring option' conftest.err || 5599 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5600 am_cv_CXX_dependencies_compiler_type=$depmode 5601 break 5602 fi 5603 fi 5604 done 5605 5606 cd .. 5607 rm -rf conftest.dir 5608else 5609 am_cv_CXX_dependencies_compiler_type=none 5610fi 5611 5612fi 5613{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 5614echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } 5615CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5616 5617 if 5618 test "x$enable_dependency_tracking" != xno \ 5619 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5620 am__fastdepCXX_TRUE= 5621 am__fastdepCXX_FALSE='#' 5622else 5623 am__fastdepCXX_TRUE='#' 5624 am__fastdepCXX_FALSE= 5625fi 5626 5627 5628 5629 5630if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5631 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5632 (test "X$CXX" != "Xg++"))) ; then 5633 ac_ext=cpp 5634ac_cpp='$CXXCPP $CPPFLAGS' 5635ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5636ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5637ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5638{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5639echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 5640if test -z "$CXXCPP"; then 5641 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5642 echo $ECHO_N "(cached) $ECHO_C" >&6 5643else 5644 # Double quotes because CXXCPP needs to be expanded 5645 for CXXCPP in "$CXX -E" "/lib/cpp" 5646 do 5647 ac_preproc_ok=false 5648for ac_cxx_preproc_warn_flag in '' yes 5649do 5650 # Use a header file that comes with gcc, so configuring glibc 5651 # with a fresh cross-compiler works. 5652 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5653 # <limits.h> exists even on freestanding compilers. 5654 # On the NeXT, cc -E runs the code through the compiler's parser, 5655 # not just through cpp. "Syntax error" is here to catch this case. 5656 cat >conftest.$ac_ext <<_ACEOF 5657/* confdefs.h. */ 5658_ACEOF 5659cat confdefs.h >>conftest.$ac_ext 5660cat >>conftest.$ac_ext <<_ACEOF 5661/* end confdefs.h. */ 5662#ifdef __STDC__ 5663# include <limits.h> 5664#else 5665# include <assert.h> 5666#endif 5667 Syntax error 5668_ACEOF 5669if { (ac_try="$ac_cpp conftest.$ac_ext" 5670case "(($ac_try" in 5671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5672 *) ac_try_echo=$ac_try;; 5673esac 5674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5675 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5676 ac_status=$? 5677 grep -v '^ *+' conftest.er1 >conftest.err 5678 rm -f conftest.er1 5679 cat conftest.err >&5 5680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5681 (exit $ac_status); } >/dev/null && { 5682 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5683 test ! -s conftest.err 5684 }; then 5685 : 5686else 5687 echo "$as_me: failed program was:" >&5 5688sed 's/^/| /' conftest.$ac_ext >&5 5689 5690 # Broken: fails on valid input. 5691continue 5692fi 5693 5694rm -f conftest.err conftest.$ac_ext 5695 5696 # OK, works on sane cases. Now check whether nonexistent headers 5697 # can be detected and how. 5698 cat >conftest.$ac_ext <<_ACEOF 5699/* confdefs.h. */ 5700_ACEOF 5701cat confdefs.h >>conftest.$ac_ext 5702cat >>conftest.$ac_ext <<_ACEOF 5703/* end confdefs.h. */ 5704#include <ac_nonexistent.h> 5705_ACEOF 5706if { (ac_try="$ac_cpp conftest.$ac_ext" 5707case "(($ac_try" in 5708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5709 *) ac_try_echo=$ac_try;; 5710esac 5711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5712 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5713 ac_status=$? 5714 grep -v '^ *+' conftest.er1 >conftest.err 5715 rm -f conftest.er1 5716 cat conftest.err >&5 5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5718 (exit $ac_status); } >/dev/null && { 5719 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5720 test ! -s conftest.err 5721 }; then 5722 # Broken: success on invalid input. 5723continue 5724else 5725 echo "$as_me: failed program was:" >&5 5726sed 's/^/| /' conftest.$ac_ext >&5 5727 5728 # Passes both tests. 5729ac_preproc_ok=: 5730break 5731fi 5732 5733rm -f conftest.err conftest.$ac_ext 5734 5735done 5736# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5737rm -f conftest.err conftest.$ac_ext 5738if $ac_preproc_ok; then 5739 break 5740fi 5741 5742 done 5743 ac_cv_prog_CXXCPP=$CXXCPP 5744 5745fi 5746 CXXCPP=$ac_cv_prog_CXXCPP 5747else 5748 ac_cv_prog_CXXCPP=$CXXCPP 5749fi 5750{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 5751echo "${ECHO_T}$CXXCPP" >&6; } 5752ac_preproc_ok=false 5753for ac_cxx_preproc_warn_flag in '' yes 5754do 5755 # Use a header file that comes with gcc, so configuring glibc 5756 # with a fresh cross-compiler works. 5757 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5758 # <limits.h> exists even on freestanding compilers. 5759 # On the NeXT, cc -E runs the code through the compiler's parser, 5760 # not just through cpp. "Syntax error" is here to catch this case. 5761 cat >conftest.$ac_ext <<_ACEOF 5762/* confdefs.h. */ 5763_ACEOF 5764cat confdefs.h >>conftest.$ac_ext 5765cat >>conftest.$ac_ext <<_ACEOF 5766/* end confdefs.h. */ 5767#ifdef __STDC__ 5768# include <limits.h> 5769#else 5770# include <assert.h> 5771#endif 5772 Syntax error 5773_ACEOF 5774if { (ac_try="$ac_cpp conftest.$ac_ext" 5775case "(($ac_try" in 5776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5777 *) ac_try_echo=$ac_try;; 5778esac 5779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5780 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5781 ac_status=$? 5782 grep -v '^ *+' conftest.er1 >conftest.err 5783 rm -f conftest.er1 5784 cat conftest.err >&5 5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5786 (exit $ac_status); } >/dev/null && { 5787 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5788 test ! -s conftest.err 5789 }; then 5790 : 5791else 5792 echo "$as_me: failed program was:" >&5 5793sed 's/^/| /' conftest.$ac_ext >&5 5794 5795 # Broken: fails on valid input. 5796continue 5797fi 5798 5799rm -f conftest.err conftest.$ac_ext 5800 5801 # OK, works on sane cases. Now check whether nonexistent headers 5802 # can be detected and how. 5803 cat >conftest.$ac_ext <<_ACEOF 5804/* confdefs.h. */ 5805_ACEOF 5806cat confdefs.h >>conftest.$ac_ext 5807cat >>conftest.$ac_ext <<_ACEOF 5808/* end confdefs.h. */ 5809#include <ac_nonexistent.h> 5810_ACEOF 5811if { (ac_try="$ac_cpp conftest.$ac_ext" 5812case "(($ac_try" in 5813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5814 *) ac_try_echo=$ac_try;; 5815esac 5816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5817 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5818 ac_status=$? 5819 grep -v '^ *+' conftest.er1 >conftest.err 5820 rm -f conftest.er1 5821 cat conftest.err >&5 5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5823 (exit $ac_status); } >/dev/null && { 5824 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5825 test ! -s conftest.err 5826 }; then 5827 # Broken: success on invalid input. 5828continue 5829else 5830 echo "$as_me: failed program was:" >&5 5831sed 's/^/| /' conftest.$ac_ext >&5 5832 5833 # Passes both tests. 5834ac_preproc_ok=: 5835break 5836fi 5837 5838rm -f conftest.err conftest.$ac_ext 5839 5840done 5841# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5842rm -f conftest.err conftest.$ac_ext 5843if $ac_preproc_ok; then 5844 : 5845else 5846 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5847See \`config.log' for more details." >&5 5848echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5849See \`config.log' for more details." >&2;} 5850 { (exit 1); exit 1; }; } 5851fi 5852 5853ac_ext=cpp 5854ac_cpp='$CXXCPP $CPPFLAGS' 5855ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5856ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5857ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5858 5859fi 5860 5861 5862ac_ext=f 5863ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5864ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5865ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5866if test -n "$ac_tool_prefix"; then 5867 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 5868 do 5869 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5870set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5871{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5872echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5873if test "${ac_cv_prog_F77+set}" = set; then 5874 echo $ECHO_N "(cached) $ECHO_C" >&6 5875else 5876 if test -n "$F77"; then 5877 ac_cv_prog_F77="$F77" # Let the user override the test. 5878else 5879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5880for as_dir in $PATH 5881do 5882 IFS=$as_save_IFS 5883 test -z "$as_dir" && as_dir=. 5884 for ac_exec_ext in '' $ac_executable_extensions; do 5885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5886 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 5887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5888 break 2 5889 fi 5890done 5891done 5892IFS=$as_save_IFS 5893 5894fi 5895fi 5896F77=$ac_cv_prog_F77 5897if test -n "$F77"; then 5898 { echo "$as_me:$LINENO: result: $F77" >&5 5899echo "${ECHO_T}$F77" >&6; } 5900else 5901 { echo "$as_me:$LINENO: result: no" >&5 5902echo "${ECHO_T}no" >&6; } 5903fi 5904 5905 5906 test -n "$F77" && break 5907 done 5908fi 5909if test -z "$F77"; then 5910 ac_ct_F77=$F77 5911 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 5912do 5913 # Extract the first word of "$ac_prog", so it can be a program name with args. 5914set dummy $ac_prog; ac_word=$2 5915{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5917if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 5918 echo $ECHO_N "(cached) $ECHO_C" >&6 5919else 5920 if test -n "$ac_ct_F77"; then 5921 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 5922else 5923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5924for as_dir in $PATH 5925do 5926 IFS=$as_save_IFS 5927 test -z "$as_dir" && as_dir=. 5928 for ac_exec_ext in '' $ac_executable_extensions; do 5929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5930 ac_cv_prog_ac_ct_F77="$ac_prog" 5931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5932 break 2 5933 fi 5934done 5935done 5936IFS=$as_save_IFS 5937 5938fi 5939fi 5940ac_ct_F77=$ac_cv_prog_ac_ct_F77 5941if test -n "$ac_ct_F77"; then 5942 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 5943echo "${ECHO_T}$ac_ct_F77" >&6; } 5944else 5945 { echo "$as_me:$LINENO: result: no" >&5 5946echo "${ECHO_T}no" >&6; } 5947fi 5948 5949 5950 test -n "$ac_ct_F77" && break 5951done 5952 5953 if test "x$ac_ct_F77" = x; then 5954 F77="" 5955 else 5956 case $cross_compiling:$ac_tool_warned in 5957yes:) 5958{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5959whose name does not start with the host triplet. If you think this 5960configuration is useful to you, please write to autoconf@gnu.org." >&5 5961echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5962whose name does not start with the host triplet. If you think this 5963configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5964ac_tool_warned=yes ;; 5965esac 5966 F77=$ac_ct_F77 5967 fi 5968fi 5969 5970 5971# Provide some information about the compiler. 5972echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 5973ac_compiler=`set X $ac_compile; echo $2` 5974{ (ac_try="$ac_compiler --version >&5" 5975case "(($ac_try" in 5976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5977 *) ac_try_echo=$ac_try;; 5978esac 5979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5980 (eval "$ac_compiler --version >&5") 2>&5 5981 ac_status=$? 5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5983 (exit $ac_status); } 5984{ (ac_try="$ac_compiler -v >&5" 5985case "(($ac_try" in 5986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5987 *) ac_try_echo=$ac_try;; 5988esac 5989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5990 (eval "$ac_compiler -v >&5") 2>&5 5991 ac_status=$? 5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5993 (exit $ac_status); } 5994{ (ac_try="$ac_compiler -V >&5" 5995case "(($ac_try" in 5996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5997 *) ac_try_echo=$ac_try;; 5998esac 5999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6000 (eval "$ac_compiler -V >&5") 2>&5 6001 ac_status=$? 6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6003 (exit $ac_status); } 6004rm -f a.out 6005 6006# If we don't use `.F' as extension, the preprocessor is not run on the 6007# input file. (Note that this only needs to work for GNU compilers.) 6008ac_save_ext=$ac_ext 6009ac_ext=F 6010{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 6011echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } 6012if test "${ac_cv_f77_compiler_gnu+set}" = set; then 6013 echo $ECHO_N "(cached) $ECHO_C" >&6 6014else 6015 cat >conftest.$ac_ext <<_ACEOF 6016 program main 6017#ifndef __GNUC__ 6018 choke me 6019#endif 6020 6021 end 6022_ACEOF 6023rm -f conftest.$ac_objext 6024if { (ac_try="$ac_compile" 6025case "(($ac_try" in 6026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6027 *) ac_try_echo=$ac_try;; 6028esac 6029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6030 (eval "$ac_compile") 2>conftest.er1 6031 ac_status=$? 6032 grep -v '^ *+' conftest.er1 >conftest.err 6033 rm -f conftest.er1 6034 cat conftest.err >&5 6035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6036 (exit $ac_status); } && { 6037 test -z "$ac_f77_werror_flag" || 6038 test ! -s conftest.err 6039 } && test -s conftest.$ac_objext; then 6040 ac_compiler_gnu=yes 6041else 6042 echo "$as_me: failed program was:" >&5 6043sed 's/^/| /' conftest.$ac_ext >&5 6044 6045 ac_compiler_gnu=no 6046fi 6047 6048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6049ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6050 6051fi 6052{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 6053echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } 6054ac_ext=$ac_save_ext 6055ac_test_FFLAGS=${FFLAGS+set} 6056ac_save_FFLAGS=$FFLAGS 6057FFLAGS= 6058{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 6059echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } 6060if test "${ac_cv_prog_f77_g+set}" = set; then 6061 echo $ECHO_N "(cached) $ECHO_C" >&6 6062else 6063 FFLAGS=-g 6064cat >conftest.$ac_ext <<_ACEOF 6065 program main 6066 6067 end 6068_ACEOF 6069rm -f conftest.$ac_objext 6070if { (ac_try="$ac_compile" 6071case "(($ac_try" in 6072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6073 *) ac_try_echo=$ac_try;; 6074esac 6075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6076 (eval "$ac_compile") 2>conftest.er1 6077 ac_status=$? 6078 grep -v '^ *+' conftest.er1 >conftest.err 6079 rm -f conftest.er1 6080 cat conftest.err >&5 6081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6082 (exit $ac_status); } && { 6083 test -z "$ac_f77_werror_flag" || 6084 test ! -s conftest.err 6085 } && test -s conftest.$ac_objext; then 6086 ac_cv_prog_f77_g=yes 6087else 6088 echo "$as_me: failed program was:" >&5 6089sed 's/^/| /' conftest.$ac_ext >&5 6090 6091 ac_cv_prog_f77_g=no 6092fi 6093 6094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6095 6096fi 6097{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6098echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } 6099if test "$ac_test_FFLAGS" = set; then 6100 FFLAGS=$ac_save_FFLAGS 6101elif test $ac_cv_prog_f77_g = yes; then 6102 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6103 FFLAGS="-g -O2" 6104 else 6105 FFLAGS="-g" 6106 fi 6107else 6108 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6109 FFLAGS="-O2" 6110 else 6111 FFLAGS= 6112 fi 6113fi 6114 6115G77=`test $ac_compiler_gnu = yes && echo yes` 6116ac_ext=c 6117ac_cpp='$CPP $CPPFLAGS' 6118ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6119ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6120ac_compiler_gnu=$ac_cv_c_compiler_gnu 6121 6122 6123 6124# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6125 6126# find the maximum length of command line arguments 6127{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6128echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } 6129if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6130 echo $ECHO_N "(cached) $ECHO_C" >&6 6131else 6132 i=0 6133 teststring="ABCD" 6134 6135 case $build_os in 6136 msdosdjgpp*) 6137 # On DJGPP, this test can blow up pretty badly due to problems in libc 6138 # (any single argument exceeding 2000 bytes causes a buffer overrun 6139 # during glob expansion). Even if it were fixed, the result of this 6140 # check would be larger than it should be. 6141 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6142 ;; 6143 6144 gnu*) 6145 # Under GNU Hurd, this test is not required because there is 6146 # no limit to the length of command line arguments. 6147 # Libtool will interpret -1 as no limit whatsoever 6148 lt_cv_sys_max_cmd_len=-1; 6149 ;; 6150 6151 cygwin* | mingw*) 6152 # On Win9x/ME, this test blows up -- it succeeds, but takes 6153 # about 5 minutes as the teststring grows exponentially. 6154 # Worse, since 9x/ME are not pre-emptively multitasking, 6155 # you end up with a "frozen" computer, even though with patience 6156 # the test eventually succeeds (with a max line length of 256k). 6157 # Instead, let's just punt: use the minimum linelength reported by 6158 # all of the supported platforms: 8192 (on NT/2K/XP). 6159 lt_cv_sys_max_cmd_len=8192; 6160 ;; 6161 6162 amigaos*) 6163 # On AmigaOS with pdksh, this test takes hours, literally. 6164 # So we just punt and use a minimum line length of 8192. 6165 lt_cv_sys_max_cmd_len=8192; 6166 ;; 6167 6168 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6169 # This has been around since 386BSD, at least. Likely further. 6170 if test -x /sbin/sysctl; then 6171 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6172 elif test -x /usr/sbin/sysctl; then 6173 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6174 else 6175 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6176 fi 6177 # And add a safety zone 6178 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6179 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6180 ;; 6181 6182 interix*) 6183 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6184 lt_cv_sys_max_cmd_len=196608 6185 ;; 6186 6187 osf*) 6188 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6189 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6190 # nice to cause kernel panics so lets avoid the loop below. 6191 # First set a reasonable default. 6192 lt_cv_sys_max_cmd_len=16384 6193 # 6194 if test -x /sbin/sysconfig; then 6195 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6196 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6197 esac 6198 fi 6199 ;; 6200 sco3.2v5*) 6201 lt_cv_sys_max_cmd_len=102400 6202 ;; 6203 sysv5* | sco5v6* | sysv4.2uw2*) 6204 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6205 if test -n "$kargmax"; then 6206 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6207 else 6208 lt_cv_sys_max_cmd_len=32768 6209 fi 6210 ;; 6211 *) 6212 # If test is not a shell built-in, we'll probably end up computing a 6213 # maximum length that is only half of the actual maximum length, but 6214 # we can't tell. 6215 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6216 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6217 = "XX$teststring") >/dev/null 2>&1 && 6218 new_result=`expr "X$teststring" : ".*" 2>&1` && 6219 lt_cv_sys_max_cmd_len=$new_result && 6220 test $i != 17 # 1/2 MB should be enough 6221 do 6222 i=`expr $i + 1` 6223 teststring=$teststring$teststring 6224 done 6225 teststring= 6226 # Add a significant safety factor because C++ compilers can tack on massive 6227 # amounts of additional arguments before passing them to the linker. 6228 # It appears as though 1/2 is a usable value. 6229 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6230 ;; 6231 esac 6232 6233fi 6234 6235if test -n $lt_cv_sys_max_cmd_len ; then 6236 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6237echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } 6238else 6239 { echo "$as_me:$LINENO: result: none" >&5 6240echo "${ECHO_T}none" >&6; } 6241fi 6242 6243 6244 6245 6246# Check for command to grab the raw symbol name followed by C symbol from nm. 6247{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6248echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 6249if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6250 echo $ECHO_N "(cached) $ECHO_C" >&6 6251else 6252 6253# These are sane defaults that work on at least a few old systems. 6254# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6255 6256# Character class describing NM global symbol codes. 6257symcode='[BCDEGRST]' 6258 6259# Regexp to match symbols that can be accessed directly from C. 6260sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6261 6262# Transform an extracted symbol line into a proper C declaration 6263lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6264 6265# Transform an extracted symbol line into symbol name and symbol address 6266lt_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'" 6267 6268# Define system-specific variables. 6269case $host_os in 6270aix*) 6271 symcode='[BCDT]' 6272 ;; 6273cygwin* | mingw* | pw32*) 6274 symcode='[ABCDGISTW]' 6275 ;; 6276hpux*) # Its linker distinguishes data from code symbols 6277 if test "$host_cpu" = ia64; then 6278 symcode='[ABCDEGRST]' 6279 fi 6280 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6281 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'" 6282 ;; 6283linux*) 6284 if test "$host_cpu" = ia64; then 6285 symcode='[ABCDGIRSTW]' 6286 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6287 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'" 6288 fi 6289 ;; 6290irix* | nonstopux*) 6291 symcode='[BCDEGRST]' 6292 ;; 6293osf*) 6294 symcode='[BCDEGQRST]' 6295 ;; 6296solaris*) 6297 symcode='[BDRT]' 6298 ;; 6299sco3.2v5*) 6300 symcode='[DT]' 6301 ;; 6302sysv4.2uw2*) 6303 symcode='[DT]' 6304 ;; 6305sysv5* | sco5v6* | unixware* | OpenUNIX*) 6306 symcode='[ABDT]' 6307 ;; 6308sysv4) 6309 symcode='[DFNSTU]' 6310 ;; 6311esac 6312 6313# Handle CRLF in mingw tool chain 6314opt_cr= 6315case $build_os in 6316mingw*) 6317 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6318 ;; 6319esac 6320 6321# If we're using GNU nm, then use its standard symbol codes. 6322case `$NM -V 2>&1` in 6323*GNU* | *'with BFD'*) 6324 symcode='[ABCDGIRSTW]' ;; 6325esac 6326 6327# Try without a prefix undercore, then with it. 6328for ac_symprfx in "" "_"; do 6329 6330 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6331 symxfrm="\\1 $ac_symprfx\\2 \\2" 6332 6333 # Write the raw and C identifiers. 6334 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6335 6336 # Check to see that the pipe works correctly. 6337 pipe_works=no 6338 6339 rm -f conftest* 6340 cat > conftest.$ac_ext <<EOF 6341#ifdef __cplusplus 6342extern "C" { 6343#endif 6344char nm_test_var; 6345void nm_test_func(){} 6346#ifdef __cplusplus 6347} 6348#endif 6349int main(){nm_test_var='a';nm_test_func();return(0);} 6350EOF 6351 6352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6353 (eval $ac_compile) 2>&5 6354 ac_status=$? 6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6356 (exit $ac_status); }; then 6357 # Now try to grab the symbols. 6358 nlist=conftest.nm 6359 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6360 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6361 ac_status=$? 6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6363 (exit $ac_status); } && test -s "$nlist"; then 6364 # Try sorting and uniquifying the output. 6365 if sort "$nlist" | uniq > "$nlist"T; then 6366 mv -f "$nlist"T "$nlist" 6367 else 6368 rm -f "$nlist"T 6369 fi 6370 6371 # Make sure that we snagged all the symbols we need. 6372 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6373 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6374 cat <<EOF > conftest.$ac_ext 6375#ifdef __cplusplus 6376extern "C" { 6377#endif 6378 6379EOF 6380 # Now generate the symbol file. 6381 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6382 6383 cat <<EOF >> conftest.$ac_ext 6384#if defined (__STDC__) && __STDC__ 6385# define lt_ptr_t void * 6386#else 6387# define lt_ptr_t char * 6388# define const 6389#endif 6390 6391/* The mapping between symbol names and symbols. */ 6392const struct { 6393 const char *name; 6394 lt_ptr_t address; 6395} 6396lt_preloaded_symbols[] = 6397{ 6398EOF 6399 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6400 cat <<\EOF >> conftest.$ac_ext 6401 {0, (lt_ptr_t) 0} 6402}; 6403 6404#ifdef __cplusplus 6405} 6406#endif 6407EOF 6408 # Now try linking the two files. 6409 mv conftest.$ac_objext conftstm.$ac_objext 6410 lt_save_LIBS="$LIBS" 6411 lt_save_CFLAGS="$CFLAGS" 6412 LIBS="conftstm.$ac_objext" 6413 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6415 (eval $ac_link) 2>&5 6416 ac_status=$? 6417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6418 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6419 pipe_works=yes 6420 fi 6421 LIBS="$lt_save_LIBS" 6422 CFLAGS="$lt_save_CFLAGS" 6423 else 6424 echo "cannot find nm_test_func in $nlist" >&5 6425 fi 6426 else 6427 echo "cannot find nm_test_var in $nlist" >&5 6428 fi 6429 else 6430 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6431 fi 6432 else 6433 echo "$progname: failed program was:" >&5 6434 cat conftest.$ac_ext >&5 6435 fi 6436 rm -f conftest* conftst* 6437 6438 # Do not use the global_symbol_pipe unless it works. 6439 if test "$pipe_works" = yes; then 6440 break 6441 else 6442 lt_cv_sys_global_symbol_pipe= 6443 fi 6444done 6445 6446fi 6447 6448if test -z "$lt_cv_sys_global_symbol_pipe"; then 6449 lt_cv_sys_global_symbol_to_cdecl= 6450fi 6451if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6452 { echo "$as_me:$LINENO: result: failed" >&5 6453echo "${ECHO_T}failed" >&6; } 6454else 6455 { echo "$as_me:$LINENO: result: ok" >&5 6456echo "${ECHO_T}ok" >&6; } 6457fi 6458 6459{ echo "$as_me:$LINENO: checking for objdir" >&5 6460echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 6461if test "${lt_cv_objdir+set}" = set; then 6462 echo $ECHO_N "(cached) $ECHO_C" >&6 6463else 6464 rm -f .libs 2>/dev/null 6465mkdir .libs 2>/dev/null 6466if test -d .libs; then 6467 lt_cv_objdir=.libs 6468else 6469 # MS-DOS does not allow filenames that begin with a dot. 6470 lt_cv_objdir=_libs 6471fi 6472rmdir .libs 2>/dev/null 6473fi 6474{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6475echo "${ECHO_T}$lt_cv_objdir" >&6; } 6476objdir=$lt_cv_objdir 6477 6478 6479 6480 6481 6482case $host_os in 6483aix3*) 6484 # AIX sometimes has problems with the GCC collect2 program. For some 6485 # reason, if we set the COLLECT_NAMES environment variable, the problems 6486 # vanish in a puff of smoke. 6487 if test "X${COLLECT_NAMES+set}" != Xset; then 6488 COLLECT_NAMES= 6489 export COLLECT_NAMES 6490 fi 6491 ;; 6492esac 6493 6494# Sed substitution that helps us do robust quoting. It backslashifies 6495# metacharacters that are still active within double-quoted strings. 6496Xsed='sed -e 1s/^X//' 6497sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6498 6499# Same as above, but do not quote variable references. 6500double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6501 6502# Sed substitution to delay expansion of an escaped shell variable in a 6503# double_quote_subst'ed string. 6504delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6505 6506# Sed substitution to avoid accidental globbing in evaled expressions 6507no_glob_subst='s/\*/\\\*/g' 6508 6509# Constants: 6510rm="rm -f" 6511 6512# Global variables: 6513default_ofile=libtool 6514can_build_shared=yes 6515 6516# All known linkers require a `.a' archive for static linking (except MSVC, 6517# which needs '.lib'). 6518libext=a 6519ltmain="$ac_aux_dir/ltmain.sh" 6520ofile="$default_ofile" 6521with_gnu_ld="$lt_cv_prog_gnu_ld" 6522 6523if test -n "$ac_tool_prefix"; then 6524 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6525set dummy ${ac_tool_prefix}ar; ac_word=$2 6526{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6527echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6528if test "${ac_cv_prog_AR+set}" = set; then 6529 echo $ECHO_N "(cached) $ECHO_C" >&6 6530else 6531 if test -n "$AR"; then 6532 ac_cv_prog_AR="$AR" # Let the user override the test. 6533else 6534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6535for as_dir in $PATH 6536do 6537 IFS=$as_save_IFS 6538 test -z "$as_dir" && as_dir=. 6539 for ac_exec_ext in '' $ac_executable_extensions; do 6540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6541 ac_cv_prog_AR="${ac_tool_prefix}ar" 6542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6543 break 2 6544 fi 6545done 6546done 6547IFS=$as_save_IFS 6548 6549fi 6550fi 6551AR=$ac_cv_prog_AR 6552if test -n "$AR"; then 6553 { echo "$as_me:$LINENO: result: $AR" >&5 6554echo "${ECHO_T}$AR" >&6; } 6555else 6556 { echo "$as_me:$LINENO: result: no" >&5 6557echo "${ECHO_T}no" >&6; } 6558fi 6559 6560 6561fi 6562if test -z "$ac_cv_prog_AR"; then 6563 ac_ct_AR=$AR 6564 # Extract the first word of "ar", so it can be a program name with args. 6565set dummy ar; ac_word=$2 6566{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6567echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6568if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6569 echo $ECHO_N "(cached) $ECHO_C" >&6 6570else 6571 if test -n "$ac_ct_AR"; then 6572 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6573else 6574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6575for as_dir in $PATH 6576do 6577 IFS=$as_save_IFS 6578 test -z "$as_dir" && as_dir=. 6579 for ac_exec_ext in '' $ac_executable_extensions; do 6580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6581 ac_cv_prog_ac_ct_AR="ar" 6582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6583 break 2 6584 fi 6585done 6586done 6587IFS=$as_save_IFS 6588 6589fi 6590fi 6591ac_ct_AR=$ac_cv_prog_ac_ct_AR 6592if test -n "$ac_ct_AR"; then 6593 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6594echo "${ECHO_T}$ac_ct_AR" >&6; } 6595else 6596 { echo "$as_me:$LINENO: result: no" >&5 6597echo "${ECHO_T}no" >&6; } 6598fi 6599 6600 if test "x$ac_ct_AR" = x; then 6601 AR="false" 6602 else 6603 case $cross_compiling:$ac_tool_warned in 6604yes:) 6605{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6606whose name does not start with the host triplet. If you think this 6607configuration is useful to you, please write to autoconf@gnu.org." >&5 6608echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6609whose name does not start with the host triplet. If you think this 6610configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6611ac_tool_warned=yes ;; 6612esac 6613 AR=$ac_ct_AR 6614 fi 6615else 6616 AR="$ac_cv_prog_AR" 6617fi 6618 6619if test -n "$ac_tool_prefix"; then 6620 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6621set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6622{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6624if test "${ac_cv_prog_RANLIB+set}" = set; then 6625 echo $ECHO_N "(cached) $ECHO_C" >&6 6626else 6627 if test -n "$RANLIB"; then 6628 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6629else 6630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6631for as_dir in $PATH 6632do 6633 IFS=$as_save_IFS 6634 test -z "$as_dir" && as_dir=. 6635 for ac_exec_ext in '' $ac_executable_extensions; do 6636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6637 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6639 break 2 6640 fi 6641done 6642done 6643IFS=$as_save_IFS 6644 6645fi 6646fi 6647RANLIB=$ac_cv_prog_RANLIB 6648if test -n "$RANLIB"; then 6649 { echo "$as_me:$LINENO: result: $RANLIB" >&5 6650echo "${ECHO_T}$RANLIB" >&6; } 6651else 6652 { echo "$as_me:$LINENO: result: no" >&5 6653echo "${ECHO_T}no" >&6; } 6654fi 6655 6656 6657fi 6658if test -z "$ac_cv_prog_RANLIB"; then 6659 ac_ct_RANLIB=$RANLIB 6660 # Extract the first word of "ranlib", so it can be a program name with args. 6661set dummy ranlib; ac_word=$2 6662{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6663echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6664if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6665 echo $ECHO_N "(cached) $ECHO_C" >&6 6666else 6667 if test -n "$ac_ct_RANLIB"; then 6668 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6669else 6670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6671for as_dir in $PATH 6672do 6673 IFS=$as_save_IFS 6674 test -z "$as_dir" && as_dir=. 6675 for ac_exec_ext in '' $ac_executable_extensions; do 6676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6677 ac_cv_prog_ac_ct_RANLIB="ranlib" 6678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6679 break 2 6680 fi 6681done 6682done 6683IFS=$as_save_IFS 6684 6685fi 6686fi 6687ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6688if test -n "$ac_ct_RANLIB"; then 6689 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6690echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 6691else 6692 { echo "$as_me:$LINENO: result: no" >&5 6693echo "${ECHO_T}no" >&6; } 6694fi 6695 6696 if test "x$ac_ct_RANLIB" = x; then 6697 RANLIB=":" 6698 else 6699 case $cross_compiling:$ac_tool_warned in 6700yes:) 6701{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6702whose name does not start with the host triplet. If you think this 6703configuration is useful to you, please write to autoconf@gnu.org." >&5 6704echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6705whose name does not start with the host triplet. If you think this 6706configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6707ac_tool_warned=yes ;; 6708esac 6709 RANLIB=$ac_ct_RANLIB 6710 fi 6711else 6712 RANLIB="$ac_cv_prog_RANLIB" 6713fi 6714 6715if test -n "$ac_tool_prefix"; then 6716 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6717set dummy ${ac_tool_prefix}strip; ac_word=$2 6718{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6719echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6720if test "${ac_cv_prog_STRIP+set}" = set; then 6721 echo $ECHO_N "(cached) $ECHO_C" >&6 6722else 6723 if test -n "$STRIP"; then 6724 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6725else 6726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6727for as_dir in $PATH 6728do 6729 IFS=$as_save_IFS 6730 test -z "$as_dir" && as_dir=. 6731 for ac_exec_ext in '' $ac_executable_extensions; do 6732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6733 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6735 break 2 6736 fi 6737done 6738done 6739IFS=$as_save_IFS 6740 6741fi 6742fi 6743STRIP=$ac_cv_prog_STRIP 6744if test -n "$STRIP"; then 6745 { echo "$as_me:$LINENO: result: $STRIP" >&5 6746echo "${ECHO_T}$STRIP" >&6; } 6747else 6748 { echo "$as_me:$LINENO: result: no" >&5 6749echo "${ECHO_T}no" >&6; } 6750fi 6751 6752 6753fi 6754if test -z "$ac_cv_prog_STRIP"; then 6755 ac_ct_STRIP=$STRIP 6756 # Extract the first word of "strip", so it can be a program name with args. 6757set dummy strip; ac_word=$2 6758{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6759echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6760if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6761 echo $ECHO_N "(cached) $ECHO_C" >&6 6762else 6763 if test -n "$ac_ct_STRIP"; then 6764 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6765else 6766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6767for as_dir in $PATH 6768do 6769 IFS=$as_save_IFS 6770 test -z "$as_dir" && as_dir=. 6771 for ac_exec_ext in '' $ac_executable_extensions; do 6772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6773 ac_cv_prog_ac_ct_STRIP="strip" 6774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6775 break 2 6776 fi 6777done 6778done 6779IFS=$as_save_IFS 6780 6781fi 6782fi 6783ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6784if test -n "$ac_ct_STRIP"; then 6785 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6786echo "${ECHO_T}$ac_ct_STRIP" >&6; } 6787else 6788 { echo "$as_me:$LINENO: result: no" >&5 6789echo "${ECHO_T}no" >&6; } 6790fi 6791 6792 if test "x$ac_ct_STRIP" = x; then 6793 STRIP=":" 6794 else 6795 case $cross_compiling:$ac_tool_warned in 6796yes:) 6797{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6798whose name does not start with the host triplet. If you think this 6799configuration is useful to you, please write to autoconf@gnu.org." >&5 6800echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6801whose name does not start with the host triplet. If you think this 6802configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6803ac_tool_warned=yes ;; 6804esac 6805 STRIP=$ac_ct_STRIP 6806 fi 6807else 6808 STRIP="$ac_cv_prog_STRIP" 6809fi 6810 6811 6812old_CC="$CC" 6813old_CFLAGS="$CFLAGS" 6814 6815# Set sane defaults for various variables 6816test -z "$AR" && AR=ar 6817test -z "$AR_FLAGS" && AR_FLAGS=cru 6818test -z "$AS" && AS=as 6819test -z "$CC" && CC=cc 6820test -z "$LTCC" && LTCC=$CC 6821test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 6822test -z "$DLLTOOL" && DLLTOOL=dlltool 6823test -z "$LD" && LD=ld 6824test -z "$LN_S" && LN_S="ln -s" 6825test -z "$MAGIC_CMD" && MAGIC_CMD=file 6826test -z "$NM" && NM=nm 6827test -z "$SED" && SED=sed 6828test -z "$OBJDUMP" && OBJDUMP=objdump 6829test -z "$RANLIB" && RANLIB=: 6830test -z "$STRIP" && STRIP=: 6831test -z "$ac_objext" && ac_objext=o 6832 6833# Determine commands to create old-style static archives. 6834old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 6835old_postinstall_cmds='chmod 644 $oldlib' 6836old_postuninstall_cmds= 6837 6838if test -n "$RANLIB"; then 6839 case $host_os in 6840 openbsd*) 6841 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6842 ;; 6843 *) 6844 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6845 ;; 6846 esac 6847 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6848fi 6849 6850for cc_temp in $compiler""; do 6851 case $cc_temp in 6852 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6853 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6854 \-*) ;; 6855 *) break;; 6856 esac 6857done 6858cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6859 6860 6861# Only perform the check for file, if the check method requires it 6862case $deplibs_check_method in 6863file_magic*) 6864 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6865 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 6866echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } 6867if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6868 echo $ECHO_N "(cached) $ECHO_C" >&6 6869else 6870 case $MAGIC_CMD in 6871[\\/*] | ?:[\\/]*) 6872 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6873 ;; 6874*) 6875 lt_save_MAGIC_CMD="$MAGIC_CMD" 6876 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6877 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6878 for ac_dir in $ac_dummy; do 6879 IFS="$lt_save_ifs" 6880 test -z "$ac_dir" && ac_dir=. 6881 if test -f $ac_dir/${ac_tool_prefix}file; then 6882 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6883 if test -n "$file_magic_test_file"; then 6884 case $deplibs_check_method in 6885 "file_magic "*) 6886 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6887 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6888 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6889 $EGREP "$file_magic_regex" > /dev/null; then 6890 : 6891 else 6892 cat <<EOF 1>&2 6893 6894*** Warning: the command libtool uses to detect shared libraries, 6895*** $file_magic_cmd, produces output that libtool cannot recognize. 6896*** The result is that libtool may fail to recognize shared libraries 6897*** as such. This will affect the creation of libtool libraries that 6898*** depend on shared libraries, but programs linked with such libtool 6899*** libraries will work regardless of this problem. Nevertheless, you 6900*** may want to report the problem to your system manager and/or to 6901*** bug-libtool@gnu.org 6902 6903EOF 6904 fi ;; 6905 esac 6906 fi 6907 break 6908 fi 6909 done 6910 IFS="$lt_save_ifs" 6911 MAGIC_CMD="$lt_save_MAGIC_CMD" 6912 ;; 6913esac 6914fi 6915 6916MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6917if test -n "$MAGIC_CMD"; then 6918 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6919echo "${ECHO_T}$MAGIC_CMD" >&6; } 6920else 6921 { echo "$as_me:$LINENO: result: no" >&5 6922echo "${ECHO_T}no" >&6; } 6923fi 6924 6925if test -z "$lt_cv_path_MAGIC_CMD"; then 6926 if test -n "$ac_tool_prefix"; then 6927 { echo "$as_me:$LINENO: checking for file" >&5 6928echo $ECHO_N "checking for file... $ECHO_C" >&6; } 6929if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6930 echo $ECHO_N "(cached) $ECHO_C" >&6 6931else 6932 case $MAGIC_CMD in 6933[\\/*] | ?:[\\/]*) 6934 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6935 ;; 6936*) 6937 lt_save_MAGIC_CMD="$MAGIC_CMD" 6938 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6939 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6940 for ac_dir in $ac_dummy; do 6941 IFS="$lt_save_ifs" 6942 test -z "$ac_dir" && ac_dir=. 6943 if test -f $ac_dir/file; then 6944 lt_cv_path_MAGIC_CMD="$ac_dir/file" 6945 if test -n "$file_magic_test_file"; then 6946 case $deplibs_check_method in 6947 "file_magic "*) 6948 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6949 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6950 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6951 $EGREP "$file_magic_regex" > /dev/null; then 6952 : 6953 else 6954 cat <<EOF 1>&2 6955 6956*** Warning: the command libtool uses to detect shared libraries, 6957*** $file_magic_cmd, produces output that libtool cannot recognize. 6958*** The result is that libtool may fail to recognize shared libraries 6959*** as such. This will affect the creation of libtool libraries that 6960*** depend on shared libraries, but programs linked with such libtool 6961*** libraries will work regardless of this problem. Nevertheless, you 6962*** may want to report the problem to your system manager and/or to 6963*** bug-libtool@gnu.org 6964 6965EOF 6966 fi ;; 6967 esac 6968 fi 6969 break 6970 fi 6971 done 6972 IFS="$lt_save_ifs" 6973 MAGIC_CMD="$lt_save_MAGIC_CMD" 6974 ;; 6975esac 6976fi 6977 6978MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6979if test -n "$MAGIC_CMD"; then 6980 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6981echo "${ECHO_T}$MAGIC_CMD" >&6; } 6982else 6983 { echo "$as_me:$LINENO: result: no" >&5 6984echo "${ECHO_T}no" >&6; } 6985fi 6986 6987 else 6988 MAGIC_CMD=: 6989 fi 6990fi 6991 6992 fi 6993 ;; 6994esac 6995 6996enable_dlopen=no 6997enable_win32_dll=no 6998 6999# Check whether --enable-libtool-lock was given. 7000if test "${enable_libtool_lock+set}" = set; then 7001 enableval=$enable_libtool_lock; 7002fi 7003 7004test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7005 7006 7007# Check whether --with-pic was given. 7008if test "${with_pic+set}" = set; then 7009 withval=$with_pic; pic_mode="$withval" 7010else 7011 pic_mode=default 7012fi 7013 7014test -z "$pic_mode" && pic_mode=default 7015 7016# Use C for the default configuration in the libtool script 7017tagname= 7018lt_save_CC="$CC" 7019ac_ext=c 7020ac_cpp='$CPP $CPPFLAGS' 7021ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7022ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7023ac_compiler_gnu=$ac_cv_c_compiler_gnu 7024 7025 7026# Source file extension for C test sources. 7027ac_ext=c 7028 7029# Object file extension for compiled C test sources. 7030objext=o 7031objext=$objext 7032 7033# Code to be used in simple compile tests 7034lt_simple_compile_test_code="int some_variable = 0;\n" 7035 7036# Code to be used in simple link tests 7037lt_simple_link_test_code='int main(){return(0);}\n' 7038 7039 7040# If no C compiler was specified, use CC. 7041LTCC=${LTCC-"$CC"} 7042 7043# If no C compiler flags were specified, use CFLAGS. 7044LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7045 7046# Allow CC to be a program name with arguments. 7047compiler=$CC 7048 7049 7050# save warnings/boilerplate of simple test code 7051ac_outfile=conftest.$ac_objext 7052printf "$lt_simple_compile_test_code" >conftest.$ac_ext 7053eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7054_lt_compiler_boilerplate=`cat conftest.err` 7055$rm conftest* 7056 7057ac_outfile=conftest.$ac_objext 7058printf "$lt_simple_link_test_code" >conftest.$ac_ext 7059eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7060_lt_linker_boilerplate=`cat conftest.err` 7061$rm conftest* 7062 7063 7064 7065lt_prog_compiler_no_builtin_flag= 7066 7067if test "$GCC" = yes; then 7068 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7069 7070 7071{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7072echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 7073if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7074 echo $ECHO_N "(cached) $ECHO_C" >&6 7075else 7076 lt_cv_prog_compiler_rtti_exceptions=no 7077 ac_outfile=conftest.$ac_objext 7078 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7079 lt_compiler_flag="-fno-rtti -fno-exceptions" 7080 # Insert the option either (1) after the last *FLAGS variable, or 7081 # (2) before a word containing "conftest.", or (3) at the end. 7082 # Note that $ac_compile itself does not contain backslashes and begins 7083 # with a dollar sign (not a hyphen), so the echo should work correctly. 7084 # The option is referenced via a variable to avoid confusing sed. 7085 lt_compile=`echo "$ac_compile" | $SED \ 7086 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7087 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7088 -e 's:$: $lt_compiler_flag:'` 7089 (eval echo "\"\$as_me:7089: $lt_compile\"" >&5) 7090 (eval "$lt_compile" 2>conftest.err) 7091 ac_status=$? 7092 cat conftest.err >&5 7093 echo "$as_me:7093: \$? = $ac_status" >&5 7094 if (exit $ac_status) && test -s "$ac_outfile"; then 7095 # The compiler can only warn and ignore the option if not recognized 7096 # So say no if there are warnings other than the usual output. 7097 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7098 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7099 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7100 lt_cv_prog_compiler_rtti_exceptions=yes 7101 fi 7102 fi 7103 $rm conftest* 7104 7105fi 7106{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7107echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7108 7109if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7110 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7111else 7112 : 7113fi 7114 7115fi 7116 7117lt_prog_compiler_wl= 7118lt_prog_compiler_pic= 7119lt_prog_compiler_static= 7120 7121{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7122echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 7123 7124 if test "$GCC" = yes; then 7125 lt_prog_compiler_wl='-Wl,' 7126 lt_prog_compiler_static='-static' 7127 7128 case $host_os in 7129 aix*) 7130 # All AIX code is PIC. 7131 if test "$host_cpu" = ia64; then 7132 # AIX 5 now supports IA64 processor 7133 lt_prog_compiler_static='-Bstatic' 7134 fi 7135 ;; 7136 7137 amigaos*) 7138 # FIXME: we need at least 68020 code to build shared libraries, but 7139 # adding the `-m68020' flag to GCC prevents building anything better, 7140 # like `-m68040'. 7141 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7142 ;; 7143 7144 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7145 # PIC is the default for these OSes. 7146 ;; 7147 7148 mingw* | pw32* | os2*) 7149 # This hack is so that the source file can tell whether it is being 7150 # built for inclusion in a dll (and should export symbols for example). 7151 lt_prog_compiler_pic='-DDLL_EXPORT' 7152 ;; 7153 7154 darwin* | rhapsody*) 7155 # PIC is the default on this platform 7156 # Common symbols not allowed in MH_DYLIB files 7157 lt_prog_compiler_pic='-fno-common' 7158 ;; 7159 7160 interix3*) 7161 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7162 # Instead, we relocate shared libraries at runtime. 7163 ;; 7164 7165 msdosdjgpp*) 7166 # Just because we use GCC doesn't mean we suddenly get shared libraries 7167 # on systems that don't support them. 7168 lt_prog_compiler_can_build_shared=no 7169 enable_shared=no 7170 ;; 7171 7172 sysv4*MP*) 7173 if test -d /usr/nec; then 7174 lt_prog_compiler_pic=-Kconform_pic 7175 fi 7176 ;; 7177 7178 hpux*) 7179 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7180 # not for PA HP-UX. 7181 case $host_cpu in 7182 hppa*64*|ia64*) 7183 # +Z the default 7184 ;; 7185 *) 7186 lt_prog_compiler_pic='-fPIC' 7187 ;; 7188 esac 7189 ;; 7190 7191 *) 7192 lt_prog_compiler_pic='-fPIC' 7193 ;; 7194 esac 7195 else 7196 # PORTME Check for flag to pass linker flags through the system compiler. 7197 case $host_os in 7198 aix*) 7199 lt_prog_compiler_wl='-Wl,' 7200 if test "$host_cpu" = ia64; then 7201 # AIX 5 now supports IA64 processor 7202 lt_prog_compiler_static='-Bstatic' 7203 else 7204 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7205 fi 7206 ;; 7207 darwin*) 7208 # PIC is the default on this platform 7209 # Common symbols not allowed in MH_DYLIB files 7210 case $cc_basename in 7211 xlc*) 7212 lt_prog_compiler_pic='-qnocommon' 7213 lt_prog_compiler_wl='-Wl,' 7214 ;; 7215 esac 7216 ;; 7217 7218 mingw* | pw32* | os2*) 7219 # This hack is so that the source file can tell whether it is being 7220 # built for inclusion in a dll (and should export symbols for example). 7221 lt_prog_compiler_pic='-DDLL_EXPORT' 7222 ;; 7223 7224 hpux9* | hpux10* | hpux11*) 7225 lt_prog_compiler_wl='-Wl,' 7226 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7227 # not for PA HP-UX. 7228 case $host_cpu in 7229 hppa*64*|ia64*) 7230 # +Z the default 7231 ;; 7232 *) 7233 lt_prog_compiler_pic='+Z' 7234 ;; 7235 esac 7236 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7237 lt_prog_compiler_static='${wl}-a ${wl}archive' 7238 ;; 7239 7240 irix5* | irix6* | nonstopux*) 7241 lt_prog_compiler_wl='-Wl,' 7242 # PIC (with -KPIC) is the default. 7243 lt_prog_compiler_static='-non_shared' 7244 ;; 7245 7246 newsos6) 7247 lt_prog_compiler_pic='-KPIC' 7248 lt_prog_compiler_static='-Bstatic' 7249 ;; 7250 7251 linux*) 7252 case $cc_basename in 7253 icc* | ecc*) 7254 lt_prog_compiler_wl='-Wl,' 7255 lt_prog_compiler_pic='-KPIC' 7256 lt_prog_compiler_static='-static' 7257 ;; 7258 pgcc* | pgf77* | pgf90* | pgf95*) 7259 # Portland Group compilers (*not* the Pentium gcc compiler, 7260 # which looks to be a dead project) 7261 lt_prog_compiler_wl='-Wl,' 7262 lt_prog_compiler_pic='-fpic' 7263 lt_prog_compiler_static='-Bstatic' 7264 ;; 7265 ccc*) 7266 lt_prog_compiler_wl='-Wl,' 7267 # All Alpha code is PIC. 7268 lt_prog_compiler_static='-non_shared' 7269 ;; 7270 esac 7271 ;; 7272 7273 osf3* | osf4* | osf5*) 7274 lt_prog_compiler_wl='-Wl,' 7275 # All OSF/1 code is PIC. 7276 lt_prog_compiler_static='-non_shared' 7277 ;; 7278 7279 solaris*) 7280 lt_prog_compiler_pic='-KPIC' 7281 lt_prog_compiler_static='-Bstatic' 7282 case $cc_basename in 7283 f77* | f90* | f95*) 7284 lt_prog_compiler_wl='-Qoption ld ';; 7285 *) 7286 lt_prog_compiler_wl='-Wl,';; 7287 esac 7288 ;; 7289 7290 sunos4*) 7291 lt_prog_compiler_wl='-Qoption ld ' 7292 lt_prog_compiler_pic='-PIC' 7293 lt_prog_compiler_static='-Bstatic' 7294 ;; 7295 7296 sysv4 | sysv4.2uw2* | sysv4.3*) 7297 lt_prog_compiler_wl='-Wl,' 7298 lt_prog_compiler_pic='-KPIC' 7299 lt_prog_compiler_static='-Bstatic' 7300 ;; 7301 7302 sysv4*MP*) 7303 if test -d /usr/nec ;then 7304 lt_prog_compiler_pic='-Kconform_pic' 7305 lt_prog_compiler_static='-Bstatic' 7306 fi 7307 ;; 7308 7309 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7310 lt_prog_compiler_wl='-Wl,' 7311 lt_prog_compiler_pic='-KPIC' 7312 lt_prog_compiler_static='-Bstatic' 7313 ;; 7314 7315 unicos*) 7316 lt_prog_compiler_wl='-Wl,' 7317 lt_prog_compiler_can_build_shared=no 7318 ;; 7319 7320 uts4*) 7321 lt_prog_compiler_pic='-pic' 7322 lt_prog_compiler_static='-Bstatic' 7323 ;; 7324 7325 *) 7326 lt_prog_compiler_can_build_shared=no 7327 ;; 7328 esac 7329 fi 7330 7331{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7332echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 7333 7334# 7335# Check to make sure the PIC flag actually works. 7336# 7337if test -n "$lt_prog_compiler_pic"; then 7338 7339{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7340echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 7341if test "${lt_prog_compiler_pic_works+set}" = set; then 7342 echo $ECHO_N "(cached) $ECHO_C" >&6 7343else 7344 lt_prog_compiler_pic_works=no 7345 ac_outfile=conftest.$ac_objext 7346 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7347 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7348 # Insert the option either (1) after the last *FLAGS variable, or 7349 # (2) before a word containing "conftest.", or (3) at the end. 7350 # Note that $ac_compile itself does not contain backslashes and begins 7351 # with a dollar sign (not a hyphen), so the echo should work correctly. 7352 # The option is referenced via a variable to avoid confusing sed. 7353 lt_compile=`echo "$ac_compile" | $SED \ 7354 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7355 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7356 -e 's:$: $lt_compiler_flag:'` 7357 (eval echo "\"\$as_me:7357: $lt_compile\"" >&5) 7358 (eval "$lt_compile" 2>conftest.err) 7359 ac_status=$? 7360 cat conftest.err >&5 7361 echo "$as_me:7361: \$? = $ac_status" >&5 7362 if (exit $ac_status) && test -s "$ac_outfile"; then 7363 # The compiler can only warn and ignore the option if not recognized 7364 # So say no if there are warnings other than the usual output. 7365 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7366 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7367 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7368 lt_prog_compiler_pic_works=yes 7369 fi 7370 fi 7371 $rm conftest* 7372 7373fi 7374{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 7375echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } 7376 7377if test x"$lt_prog_compiler_pic_works" = xyes; then 7378 case $lt_prog_compiler_pic in 7379 "" | " "*) ;; 7380 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7381 esac 7382else 7383 lt_prog_compiler_pic= 7384 lt_prog_compiler_can_build_shared=no 7385fi 7386 7387fi 7388case $host_os in 7389 # For platforms which do not support PIC, -DPIC is meaningless: 7390 *djgpp*) 7391 lt_prog_compiler_pic= 7392 ;; 7393 *) 7394 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7395 ;; 7396esac 7397 7398# 7399# Check to make sure the static flag actually works. 7400# 7401wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7402{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7403echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 7404if test "${lt_prog_compiler_static_works+set}" = set; then 7405 echo $ECHO_N "(cached) $ECHO_C" >&6 7406else 7407 lt_prog_compiler_static_works=no 7408 save_LDFLAGS="$LDFLAGS" 7409 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7410 printf "$lt_simple_link_test_code" > conftest.$ac_ext 7411 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7412 # The linker can only warn and ignore the option if not recognized 7413 # So say no if there are warnings 7414 if test -s conftest.err; then 7415 # Append any errors to the config.log. 7416 cat conftest.err 1>&5 7417 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7418 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7419 if diff conftest.exp conftest.er2 >/dev/null; then 7420 lt_prog_compiler_static_works=yes 7421 fi 7422 else 7423 lt_prog_compiler_static_works=yes 7424 fi 7425 fi 7426 $rm conftest* 7427 LDFLAGS="$save_LDFLAGS" 7428 7429fi 7430{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 7431echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } 7432 7433if test x"$lt_prog_compiler_static_works" = xyes; then 7434 : 7435else 7436 lt_prog_compiler_static= 7437fi 7438 7439 7440{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7441echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 7442if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7443 echo $ECHO_N "(cached) $ECHO_C" >&6 7444else 7445 lt_cv_prog_compiler_c_o=no 7446 $rm -r conftest 2>/dev/null 7447 mkdir conftest 7448 cd conftest 7449 mkdir out 7450 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7451 7452 lt_compiler_flag="-o out/conftest2.$ac_objext" 7453 # Insert the option either (1) after the last *FLAGS variable, or 7454 # (2) before a word containing "conftest.", or (3) at the end. 7455 # Note that $ac_compile itself does not contain backslashes and begins 7456 # with a dollar sign (not a hyphen), so the echo should work correctly. 7457 lt_compile=`echo "$ac_compile" | $SED \ 7458 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7459 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7460 -e 's:$: $lt_compiler_flag:'` 7461 (eval echo "\"\$as_me:7461: $lt_compile\"" >&5) 7462 (eval "$lt_compile" 2>out/conftest.err) 7463 ac_status=$? 7464 cat out/conftest.err >&5 7465 echo "$as_me:7465: \$? = $ac_status" >&5 7466 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7467 then 7468 # The compiler can only warn and ignore the option if not recognized 7469 # So say no if there are warnings 7470 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7471 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7472 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7473 lt_cv_prog_compiler_c_o=yes 7474 fi 7475 fi 7476 chmod u+w . 2>&5 7477 $rm conftest* 7478 # SGI C++ compiler will create directory out/ii_files/ for 7479 # template instantiation 7480 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 7481 $rm out/* && rmdir out 7482 cd .. 7483 rmdir conftest 7484 $rm conftest* 7485 7486fi 7487{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7488echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 7489 7490 7491hard_links="nottested" 7492if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7493 # do not overwrite the value of need_locks provided by the user 7494 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7495echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 7496 hard_links=yes 7497 $rm conftest* 7498 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7499 touch conftest.a 7500 ln conftest.a conftest.b 2>&5 || hard_links=no 7501 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7502 { echo "$as_me:$LINENO: result: $hard_links" >&5 7503echo "${ECHO_T}$hard_links" >&6; } 7504 if test "$hard_links" = no; then 7505 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7506echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7507 need_locks=warn 7508 fi 7509else 7510 need_locks=no 7511fi 7512 7513{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7514echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 7515 7516 runpath_var= 7517 allow_undefined_flag= 7518 enable_shared_with_static_runtimes=no 7519 archive_cmds= 7520 archive_expsym_cmds= 7521 old_archive_From_new_cmds= 7522 old_archive_from_expsyms_cmds= 7523 export_dynamic_flag_spec= 7524 whole_archive_flag_spec= 7525 thread_safe_flag_spec= 7526 hardcode_libdir_flag_spec= 7527 hardcode_libdir_flag_spec_ld= 7528 hardcode_libdir_separator= 7529 hardcode_direct=no 7530 hardcode_minus_L=no 7531 hardcode_shlibpath_var=unsupported 7532 link_all_deplibs=unknown 7533 hardcode_automatic=no 7534 module_cmds= 7535 module_expsym_cmds= 7536 always_export_symbols=no 7537 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7538 # include_expsyms should be a list of space-separated symbols to be *always* 7539 # included in the symbol list 7540 include_expsyms= 7541 # exclude_expsyms can be an extended regexp of symbols to exclude 7542 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7543 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7544 # as well as any symbol that contains `d'. 7545 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 7546 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7547 # platforms (ab)use it in PIC code, but their linkers get confused if 7548 # the symbol is explicitly referenced. Since portable code cannot 7549 # rely on this symbol name, it's probably fine to never include it in 7550 # preloaded symbol tables. 7551 extract_expsyms_cmds= 7552 # Just being paranoid about ensuring that cc_basename is set. 7553 for cc_temp in $compiler""; do 7554 case $cc_temp in 7555 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7556 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7557 \-*) ;; 7558 *) break;; 7559 esac 7560done 7561cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7562 7563 case $host_os in 7564 cygwin* | mingw* | pw32*) 7565 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7566 # When not using gcc, we currently assume that we are using 7567 # Microsoft Visual C++. 7568 if test "$GCC" != yes; then 7569 with_gnu_ld=no 7570 fi 7571 ;; 7572 interix*) 7573 # we just hope/assume this is gcc and not c89 (= MSVC++) 7574 with_gnu_ld=yes 7575 ;; 7576 openbsd*) 7577 with_gnu_ld=no 7578 ;; 7579 esac 7580 7581 ld_shlibs=yes 7582 if test "$with_gnu_ld" = yes; then 7583 # If archive_cmds runs LD, not CC, wlarc should be empty 7584 wlarc='${wl}' 7585 7586 # Set some defaults for GNU ld with shared library support. These 7587 # are reset later if shared libraries are not supported. Putting them 7588 # here allows them to be overridden if necessary. 7589 runpath_var=LD_RUN_PATH 7590 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 7591 export_dynamic_flag_spec='${wl}--export-dynamic' 7592 # ancient GNU ld didn't support --whole-archive et. al. 7593 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 7594 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7595 else 7596 whole_archive_flag_spec= 7597 fi 7598 supports_anon_versioning=no 7599 case `$LD -v 2>/dev/null` in 7600 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7601 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7602 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7603 *\ 2.11.*) ;; # other 2.11 versions 7604 *) supports_anon_versioning=yes ;; 7605 esac 7606 7607 # See if GNU ld supports shared libraries. 7608 case $host_os in 7609 aix3* | aix4* | aix5*) 7610 # On AIX/PPC, the GNU linker is very broken 7611 if test "$host_cpu" != ia64; then 7612 ld_shlibs=no 7613 cat <<EOF 1>&2 7614 7615*** Warning: the GNU linker, at least up to release 2.9.1, is reported 7616*** to be unable to reliably create shared libraries on AIX. 7617*** Therefore, libtool is disabling shared libraries support. If you 7618*** really care for shared libraries, you may want to modify your PATH 7619*** so that a non-GNU linker is found, and then restart. 7620 7621EOF 7622 fi 7623 ;; 7624 7625 amigaos*) 7626 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)' 7627 hardcode_libdir_flag_spec='-L$libdir' 7628 hardcode_minus_L=yes 7629 7630 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 7631 # that the semantics of dynamic libraries on AmigaOS, at least up 7632 # to version 4, is to share data among multiple programs linked 7633 # with the same dynamic library. Since this doesn't match the 7634 # behavior of shared libraries on other platforms, we can't use 7635 # them. 7636 ld_shlibs=no 7637 ;; 7638 7639 beos*) 7640 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7641 allow_undefined_flag=unsupported 7642 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 7643 # support --undefined. This deserves some investigation. FIXME 7644 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7645 else 7646 ld_shlibs=no 7647 fi 7648 ;; 7649 7650 cygwin* | mingw* | pw32*) 7651 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 7652 # as there is no search path for DLLs. 7653 hardcode_libdir_flag_spec='-L$libdir' 7654 allow_undefined_flag=unsupported 7655 always_export_symbols=no 7656 enable_shared_with_static_runtimes=yes 7657 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 7658 7659 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 7660 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7661 # If the export-symbols file already is a .def file (1st line 7662 # is EXPORTS), use it as is; otherwise, prepend... 7663 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7664 cp $export_symbols $output_objdir/$soname.def; 7665 else 7666 echo EXPORTS > $output_objdir/$soname.def; 7667 cat $export_symbols >> $output_objdir/$soname.def; 7668 fi~ 7669 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7670 else 7671 ld_shlibs=no 7672 fi 7673 ;; 7674 7675 interix3*) 7676 hardcode_direct=no 7677 hardcode_shlibpath_var=no 7678 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7679 export_dynamic_flag_spec='${wl}-E' 7680 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 7681 # Instead, shared libraries are loaded at an image base (0x10000000 by 7682 # default) and relocated if they conflict, which is a slow very memory 7683 # consuming and fragmenting process. To avoid this, we pick a random, 7684 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 7685 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 7686 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 7687 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' 7688 ;; 7689 7690 linux*) 7691 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7692 tmp_addflag= 7693 case $cc_basename,$host_cpu in 7694 pgcc*) # Portland Group C compiler 7695 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' 7696 tmp_addflag=' $pic_flag' 7697 ;; 7698 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 7699 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' 7700 tmp_addflag=' $pic_flag -Mnomain' ;; 7701 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 7702 tmp_addflag=' -i_dynamic' ;; 7703 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 7704 tmp_addflag=' -i_dynamic -nofor_main' ;; 7705 ifc* | ifort*) # Intel Fortran compiler 7706 tmp_addflag=' -nofor_main' ;; 7707 esac 7708 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7709 7710 if test $supports_anon_versioning = yes; then 7711 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 7712 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7713 $echo "local: *; };" >> $output_objdir/$libname.ver~ 7714 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 7715 fi 7716 else 7717 ld_shlibs=no 7718 fi 7719 ;; 7720 7721 netbsd*) 7722 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7723 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 7724 wlarc= 7725 else 7726 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7727 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7728 fi 7729 ;; 7730 7731 solaris*) 7732 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 7733 ld_shlibs=no 7734 cat <<EOF 1>&2 7735 7736*** Warning: The releases 2.8.* of the GNU linker cannot reliably 7737*** create shared libraries on Solaris systems. Therefore, libtool 7738*** is disabling shared libraries support. We urge you to upgrade GNU 7739*** binutils to release 2.9.1 or newer. Another option is to modify 7740*** your PATH or compiler configuration so that the native linker is 7741*** used, and then restart. 7742 7743EOF 7744 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7745 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7746 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7747 else 7748 ld_shlibs=no 7749 fi 7750 ;; 7751 7752 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 7753 case `$LD -v 2>&1` in 7754 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 7755 ld_shlibs=no 7756 cat <<_LT_EOF 1>&2 7757 7758*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 7759*** reliably create shared libraries on SCO systems. Therefore, libtool 7760*** is disabling shared libraries support. We urge you to upgrade GNU 7761*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 7762*** your PATH or compiler configuration so that the native linker is 7763*** used, and then restart. 7764 7765_LT_EOF 7766 ;; 7767 *) 7768 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7769 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 7770 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 7771 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 7772 else 7773 ld_shlibs=no 7774 fi 7775 ;; 7776 esac 7777 ;; 7778 7779 sunos4*) 7780 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7781 wlarc= 7782 hardcode_direct=yes 7783 hardcode_shlibpath_var=no 7784 ;; 7785 7786 *) 7787 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7788 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7789 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7790 else 7791 ld_shlibs=no 7792 fi 7793 ;; 7794 esac 7795 7796 if test "$ld_shlibs" = no; then 7797 runpath_var= 7798 hardcode_libdir_flag_spec= 7799 export_dynamic_flag_spec= 7800 whole_archive_flag_spec= 7801 fi 7802 else 7803 # PORTME fill in a description of your system's linker (not GNU ld) 7804 case $host_os in 7805 aix3*) 7806 allow_undefined_flag=unsupported 7807 always_export_symbols=yes 7808 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' 7809 # Note: this linker hardcodes the directories in LIBPATH if there 7810 # are no directories specified by -L. 7811 hardcode_minus_L=yes 7812 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 7813 # Neither direct hardcoding nor static linking is supported with a 7814 # broken collect2. 7815 hardcode_direct=unsupported 7816 fi 7817 ;; 7818 7819 aix4* | aix5*) 7820 if test "$host_cpu" = ia64; then 7821 # On IA64, the linker does run time linking by default, so we don't 7822 # have to do anything special. 7823 aix_use_runtimelinking=no 7824 exp_sym_flag='-Bexport' 7825 no_entry_flag="" 7826 else 7827 # If we're using GNU nm, then we don't want the "-C" option. 7828 # -C means demangle to AIX nm, but means don't demangle with GNU nm 7829 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 7830 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' 7831 else 7832 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' 7833 fi 7834 aix_use_runtimelinking=no 7835 7836 # Test if we are trying to use run time linking or normal 7837 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7838 # need to do runtime linking. 7839 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 7840 for ld_flag in $LDFLAGS; do 7841 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 7842 aix_use_runtimelinking=yes 7843 break 7844 fi 7845 done 7846 ;; 7847 esac 7848 7849 exp_sym_flag='-bexport' 7850 no_entry_flag='-bnoentry' 7851 fi 7852 7853 # When large executables or shared objects are built, AIX ld can 7854 # have problems creating the table of contents. If linking a library 7855 # or program results in "error TOC overflow" add -mminimal-toc to 7856 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7857 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7858 7859 archive_cmds='' 7860 hardcode_direct=yes 7861 hardcode_libdir_separator=':' 7862 link_all_deplibs=yes 7863 7864 if test "$GCC" = yes; then 7865 case $host_os in aix4.[012]|aix4.[012].*) 7866 # We only want to do this on AIX 4.2 and lower, the check 7867 # below for broken collect2 doesn't work under 4.3+ 7868 collect2name=`${CC} -print-prog-name=collect2` 7869 if test -f "$collect2name" && \ 7870 strings "$collect2name" | grep resolve_lib_name >/dev/null 7871 then 7872 # We have reworked collect2 7873 hardcode_direct=yes 7874 else 7875 # We have old collect2 7876 hardcode_direct=unsupported 7877 # It fails to find uninstalled libraries when the uninstalled 7878 # path is not listed in the libpath. Setting hardcode_minus_L 7879 # to unsupported forces relinking 7880 hardcode_minus_L=yes 7881 hardcode_libdir_flag_spec='-L$libdir' 7882 hardcode_libdir_separator= 7883 fi 7884 ;; 7885 esac 7886 shared_flag='-shared' 7887 if test "$aix_use_runtimelinking" = yes; then 7888 shared_flag="$shared_flag "'${wl}-G' 7889 fi 7890 else 7891 # not using gcc 7892 if test "$host_cpu" = ia64; then 7893 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7894 # chokes on -Wl,-G. The following line is correct: 7895 shared_flag='-G' 7896 else 7897 if test "$aix_use_runtimelinking" = yes; then 7898 shared_flag='${wl}-G' 7899 else 7900 shared_flag='${wl}-bM:SRE' 7901 fi 7902 fi 7903 fi 7904 7905 # It seems that -bexpall does not export symbols beginning with 7906 # underscore (_), so it is better to generate a list of symbols to export. 7907 always_export_symbols=yes 7908 if test "$aix_use_runtimelinking" = yes; then 7909 # Warning - without using the other runtime loading flags (-brtl), 7910 # -berok will link without error, but may produce a broken library. 7911 allow_undefined_flag='-berok' 7912 # Determine the default libpath from the value encoded in an empty executable. 7913 cat >conftest.$ac_ext <<_ACEOF 7914/* confdefs.h. */ 7915_ACEOF 7916cat confdefs.h >>conftest.$ac_ext 7917cat >>conftest.$ac_ext <<_ACEOF 7918/* end confdefs.h. */ 7919 7920int 7921main () 7922{ 7923 7924 ; 7925 return 0; 7926} 7927_ACEOF 7928rm -f conftest.$ac_objext conftest$ac_exeext 7929if { (ac_try="$ac_link" 7930case "(($ac_try" in 7931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7932 *) ac_try_echo=$ac_try;; 7933esac 7934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7935 (eval "$ac_link") 2>conftest.er1 7936 ac_status=$? 7937 grep -v '^ *+' conftest.er1 >conftest.err 7938 rm -f conftest.er1 7939 cat conftest.err >&5 7940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7941 (exit $ac_status); } && { 7942 test -z "$ac_c_werror_flag" || 7943 test ! -s conftest.err 7944 } && test -s conftest$ac_exeext && 7945 $as_test_x conftest$ac_exeext; then 7946 7947aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7948}'` 7949# Check for a 64-bit object if we didn't find anything. 7950if 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; } 7951}'`; fi 7952else 7953 echo "$as_me: failed program was:" >&5 7954sed 's/^/| /' conftest.$ac_ext >&5 7955 7956 7957fi 7958 7959rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7960 conftest$ac_exeext conftest.$ac_ext 7961if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7962 7963 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7964 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" 7965 else 7966 if test "$host_cpu" = ia64; then 7967 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 7968 allow_undefined_flag="-z nodefs" 7969 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" 7970 else 7971 # Determine the default libpath from the value encoded in an empty executable. 7972 cat >conftest.$ac_ext <<_ACEOF 7973/* confdefs.h. */ 7974_ACEOF 7975cat confdefs.h >>conftest.$ac_ext 7976cat >>conftest.$ac_ext <<_ACEOF 7977/* end confdefs.h. */ 7978 7979int 7980main () 7981{ 7982 7983 ; 7984 return 0; 7985} 7986_ACEOF 7987rm -f conftest.$ac_objext conftest$ac_exeext 7988if { (ac_try="$ac_link" 7989case "(($ac_try" in 7990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7991 *) ac_try_echo=$ac_try;; 7992esac 7993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7994 (eval "$ac_link") 2>conftest.er1 7995 ac_status=$? 7996 grep -v '^ *+' conftest.er1 >conftest.err 7997 rm -f conftest.er1 7998 cat conftest.err >&5 7999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8000 (exit $ac_status); } && { 8001 test -z "$ac_c_werror_flag" || 8002 test ! -s conftest.err 8003 } && test -s conftest$ac_exeext && 8004 $as_test_x conftest$ac_exeext; then 8005 8006aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8007}'` 8008# Check for a 64-bit object if we didn't find anything. 8009if 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; } 8010}'`; fi 8011else 8012 echo "$as_me: failed program was:" >&5 8013sed 's/^/| /' conftest.$ac_ext >&5 8014 8015 8016fi 8017 8018rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8019 conftest$ac_exeext conftest.$ac_ext 8020if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8021 8022 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8023 # Warning - without using the other run time loading flags, 8024 # -berok will link without error, but may produce a broken library. 8025 no_undefined_flag=' ${wl}-bernotok' 8026 allow_undefined_flag=' ${wl}-berok' 8027 # Exported symbols can be pulled into shared objects from archives 8028 whole_archive_flag_spec='$convenience' 8029 archive_cmds_need_lc=yes 8030 # This is similar to how AIX traditionally builds its shared libraries. 8031 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' 8032 fi 8033 fi 8034 ;; 8035 8036 amigaos*) 8037 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)' 8038 hardcode_libdir_flag_spec='-L$libdir' 8039 hardcode_minus_L=yes 8040 # see comment about different semantics on the GNU ld section 8041 ld_shlibs=no 8042 ;; 8043 8044 bsdi[45]*) 8045 export_dynamic_flag_spec=-rdynamic 8046 ;; 8047 8048 cygwin* | mingw* | pw32*) 8049 # When not using gcc, we currently assume that we are using 8050 # Microsoft Visual C++. 8051 # hardcode_libdir_flag_spec is actually meaningless, as there is 8052 # no search path for DLLs. 8053 hardcode_libdir_flag_spec=' ' 8054 allow_undefined_flag=unsupported 8055 # Tell ltmain to make .lib files, not .a files. 8056 libext=lib 8057 # Tell ltmain to make .dll files, not .so files. 8058 shrext_cmds=".dll" 8059 # FIXME: Setting linknames here is a bad hack. 8060 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8061 # The linker will automatically build a .lib file if we build a DLL. 8062 old_archive_From_new_cmds='true' 8063 # FIXME: Should let the user specify the lib program. 8064 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 8065 fix_srcfile_path='`cygpath -w "$srcfile"`' 8066 enable_shared_with_static_runtimes=yes 8067 ;; 8068 8069 darwin* | rhapsody*) 8070 case $host_os in 8071 rhapsody* | darwin1.[012]) 8072 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8073 ;; 8074 *) # Darwin 1.3 on 8075 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8076 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8077 else 8078 case ${MACOSX_DEPLOYMENT_TARGET} in 8079 10.[012]) 8080 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8081 ;; 8082 10.*) 8083 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8084 ;; 8085 esac 8086 fi 8087 ;; 8088 esac 8089 archive_cmds_need_lc=no 8090 hardcode_direct=no 8091 hardcode_automatic=yes 8092 hardcode_shlibpath_var=unsupported 8093 whole_archive_flag_spec='' 8094 link_all_deplibs=yes 8095 if test "$GCC" = yes ; then 8096 output_verbose_link_cmd='echo' 8097 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 8098 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8099 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8100 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}' 8101 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}' 8102 else 8103 case $cc_basename in 8104 xlc*) 8105 output_verbose_link_cmd='echo' 8106 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 8107 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8108 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8109 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}' 8110 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}' 8111 ;; 8112 *) 8113 ld_shlibs=no 8114 ;; 8115 esac 8116 fi 8117 ;; 8118 8119 dgux*) 8120 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8121 hardcode_libdir_flag_spec='-L$libdir' 8122 hardcode_shlibpath_var=no 8123 ;; 8124 8125 freebsd1*) 8126 ld_shlibs=no 8127 ;; 8128 8129 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8130 # support. Future versions do this automatically, but an explicit c++rt0.o 8131 # does not break anything, and helps significantly (at the cost of a little 8132 # extra space). 8133 freebsd2.2*) 8134 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8135 hardcode_libdir_flag_spec='-R$libdir' 8136 hardcode_direct=yes 8137 hardcode_shlibpath_var=no 8138 ;; 8139 8140 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8141 freebsd2*) 8142 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8143 hardcode_direct=yes 8144 hardcode_minus_L=yes 8145 hardcode_shlibpath_var=no 8146 ;; 8147 8148 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8149 freebsd* | kfreebsd*-gnu | dragonfly*) 8150 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8151 hardcode_libdir_flag_spec='-R$libdir' 8152 hardcode_direct=yes 8153 hardcode_shlibpath_var=no 8154 ;; 8155 8156 hpux9*) 8157 if test "$GCC" = yes; then 8158 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' 8159 else 8160 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' 8161 fi 8162 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8163 hardcode_libdir_separator=: 8164 hardcode_direct=yes 8165 8166 # hardcode_minus_L: Not really in the search PATH, 8167 # but as the default location of the library. 8168 hardcode_minus_L=yes 8169 export_dynamic_flag_spec='${wl}-E' 8170 ;; 8171 8172 hpux10*) 8173 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8174 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8175 else 8176 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8177 fi 8178 if test "$with_gnu_ld" = no; then 8179 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8180 hardcode_libdir_separator=: 8181 8182 hardcode_direct=yes 8183 export_dynamic_flag_spec='${wl}-E' 8184 8185 # hardcode_minus_L: Not really in the search PATH, 8186 # but as the default location of the library. 8187 hardcode_minus_L=yes 8188 fi 8189 ;; 8190 8191 hpux11*) 8192 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8193 case $host_cpu in 8194 hppa*64*) 8195 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8196 ;; 8197 ia64*) 8198 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8199 ;; 8200 *) 8201 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8202 ;; 8203 esac 8204 else 8205 case $host_cpu in 8206 hppa*64*) 8207 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8208 ;; 8209 ia64*) 8210 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8211 ;; 8212 *) 8213 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8214 ;; 8215 esac 8216 fi 8217 if test "$with_gnu_ld" = no; then 8218 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8219 hardcode_libdir_separator=: 8220 8221 case $host_cpu in 8222 hppa*64*|ia64*) 8223 hardcode_libdir_flag_spec_ld='+b $libdir' 8224 hardcode_direct=no 8225 hardcode_shlibpath_var=no 8226 ;; 8227 *) 8228 hardcode_direct=yes 8229 export_dynamic_flag_spec='${wl}-E' 8230 8231 # hardcode_minus_L: Not really in the search PATH, 8232 # but as the default location of the library. 8233 hardcode_minus_L=yes 8234 ;; 8235 esac 8236 fi 8237 ;; 8238 8239 irix5* | irix6* | nonstopux*) 8240 if test "$GCC" = yes; then 8241 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' 8242 else 8243 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' 8244 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8245 fi 8246 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8247 hardcode_libdir_separator=: 8248 link_all_deplibs=yes 8249 ;; 8250 8251 netbsd*) 8252 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8253 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8254 else 8255 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8256 fi 8257 hardcode_libdir_flag_spec='-R$libdir' 8258 hardcode_direct=yes 8259 hardcode_shlibpath_var=no 8260 ;; 8261 8262 newsos6) 8263 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8264 hardcode_direct=yes 8265 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8266 hardcode_libdir_separator=: 8267 hardcode_shlibpath_var=no 8268 ;; 8269 8270 openbsd*) 8271 hardcode_direct=yes 8272 hardcode_shlibpath_var=no 8273 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8274 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8275 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8276 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8277 export_dynamic_flag_spec='${wl}-E' 8278 else 8279 case $host_os in 8280 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8281 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8282 hardcode_libdir_flag_spec='-R$libdir' 8283 ;; 8284 *) 8285 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8286 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8287 ;; 8288 esac 8289 fi 8290 ;; 8291 8292 os2*) 8293 hardcode_libdir_flag_spec='-L$libdir' 8294 hardcode_minus_L=yes 8295 allow_undefined_flag=unsupported 8296 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' 8297 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8298 ;; 8299 8300 osf3*) 8301 if test "$GCC" = yes; then 8302 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8303 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' 8304 else 8305 allow_undefined_flag=' -expect_unresolved \*' 8306 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' 8307 fi 8308 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8309 hardcode_libdir_separator=: 8310 ;; 8311 8312 osf4* | osf5*) # as osf3* with the addition of -msym flag 8313 if test "$GCC" = yes; then 8314 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8315 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' 8316 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8317 else 8318 allow_undefined_flag=' -expect_unresolved \*' 8319 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' 8320 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8321 $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' 8322 8323 # Both c and cxx compiler support -rpath directly 8324 hardcode_libdir_flag_spec='-rpath $libdir' 8325 fi 8326 hardcode_libdir_separator=: 8327 ;; 8328 8329 solaris*) 8330 no_undefined_flag=' -z text' 8331 if test "$GCC" = yes; then 8332 wlarc='${wl}' 8333 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8334 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8335 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8336 else 8337 wlarc='' 8338 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8339 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8340 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8341 fi 8342 hardcode_libdir_flag_spec='-R$libdir' 8343 hardcode_shlibpath_var=no 8344 case $host_os in 8345 solaris2.[0-5] | solaris2.[0-5].*) ;; 8346 *) 8347 # The compiler driver will combine linker options so we 8348 # cannot just pass the convience library names through 8349 # without $wl, iff we do not link with $LD. 8350 # Luckily, gcc supports the same syntax we need for Sun Studio. 8351 # Supported since Solaris 2.6 (maybe 2.5.1?) 8352 case $wlarc in 8353 '') 8354 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 8355 *) 8356 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' ;; 8357 esac ;; 8358 esac 8359 link_all_deplibs=yes 8360 ;; 8361 8362 sunos4*) 8363 if test "x$host_vendor" = xsequent; then 8364 # Use $CC to link under sequent, because it throws in some extra .o 8365 # files that make .init and .fini sections work. 8366 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8367 else 8368 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8369 fi 8370 hardcode_libdir_flag_spec='-L$libdir' 8371 hardcode_direct=yes 8372 hardcode_minus_L=yes 8373 hardcode_shlibpath_var=no 8374 ;; 8375 8376 sysv4) 8377 case $host_vendor in 8378 sni) 8379 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8380 hardcode_direct=yes # is this really true??? 8381 ;; 8382 siemens) 8383 ## LD is ld it makes a PLAMLIB 8384 ## CC just makes a GrossModule. 8385 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8386 reload_cmds='$CC -r -o $output$reload_objs' 8387 hardcode_direct=no 8388 ;; 8389 motorola) 8390 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8391 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8392 ;; 8393 esac 8394 runpath_var='LD_RUN_PATH' 8395 hardcode_shlibpath_var=no 8396 ;; 8397 8398 sysv4.3*) 8399 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8400 hardcode_shlibpath_var=no 8401 export_dynamic_flag_spec='-Bexport' 8402 ;; 8403 8404 sysv4*MP*) 8405 if test -d /usr/nec; then 8406 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8407 hardcode_shlibpath_var=no 8408 runpath_var=LD_RUN_PATH 8409 hardcode_runpath_var=yes 8410 ld_shlibs=yes 8411 fi 8412 ;; 8413 8414 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 8415 no_undefined_flag='${wl}-z,text' 8416 archive_cmds_need_lc=no 8417 hardcode_shlibpath_var=no 8418 runpath_var='LD_RUN_PATH' 8419 8420 if test "$GCC" = yes; then 8421 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8422 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8423 else 8424 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8425 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8426 fi 8427 ;; 8428 8429 sysv5* | sco3.2v5* | sco5v6*) 8430 # Note: We can NOT use -z defs as we might desire, because we do not 8431 # link with -lc, and that would cause any symbols used from libc to 8432 # always be unresolved, which means just about no library would 8433 # ever link correctly. If we're not using GNU ld we use -z text 8434 # though, which does catch some bad symbols but isn't as heavy-handed 8435 # as -z defs. 8436 no_undefined_flag='${wl}-z,text' 8437 allow_undefined_flag='${wl}-z,nodefs' 8438 archive_cmds_need_lc=no 8439 hardcode_shlibpath_var=no 8440 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 8441 hardcode_libdir_separator=':' 8442 link_all_deplibs=yes 8443 export_dynamic_flag_spec='${wl}-Bexport' 8444 runpath_var='LD_RUN_PATH' 8445 8446 if test "$GCC" = yes; then 8447 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8448 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8449 else 8450 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8451 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8452 fi 8453 ;; 8454 8455 uts4*) 8456 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8457 hardcode_libdir_flag_spec='-L$libdir' 8458 hardcode_shlibpath_var=no 8459 ;; 8460 8461 *) 8462 ld_shlibs=no 8463 ;; 8464 esac 8465 fi 8466 8467{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 8468echo "${ECHO_T}$ld_shlibs" >&6; } 8469test "$ld_shlibs" = no && can_build_shared=no 8470 8471# 8472# Do we need to explicitly link libc? 8473# 8474case "x$archive_cmds_need_lc" in 8475x|xyes) 8476 # Assume -lc should be added 8477 archive_cmds_need_lc=yes 8478 8479 if test "$enable_shared" = yes && test "$GCC" = yes; then 8480 case $archive_cmds in 8481 *'~'*) 8482 # FIXME: we may have to deal with multi-command sequences. 8483 ;; 8484 '$CC '*) 8485 # Test whether the compiler implicitly links with -lc since on some 8486 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8487 # to ld, don't add -lc before -lgcc. 8488 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 8489echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 8490 $rm conftest* 8491 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8492 8493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8494 (eval $ac_compile) 2>&5 8495 ac_status=$? 8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8497 (exit $ac_status); } 2>conftest.err; then 8498 soname=conftest 8499 lib=conftest 8500 libobjs=conftest.$ac_objext 8501 deplibs= 8502 wl=$lt_prog_compiler_wl 8503 pic_flag=$lt_prog_compiler_pic 8504 compiler_flags=-v 8505 linker_flags=-v 8506 verstring= 8507 output_objdir=. 8508 libname=conftest 8509 lt_save_allow_undefined_flag=$allow_undefined_flag 8510 allow_undefined_flag= 8511 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 8512 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 8513 ac_status=$? 8514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8515 (exit $ac_status); } 8516 then 8517 archive_cmds_need_lc=no 8518 else 8519 archive_cmds_need_lc=yes 8520 fi 8521 allow_undefined_flag=$lt_save_allow_undefined_flag 8522 else 8523 cat conftest.err 1>&5 8524 fi 8525 $rm conftest* 8526 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 8527echo "${ECHO_T}$archive_cmds_need_lc" >&6; } 8528 ;; 8529 esac 8530 fi 8531 ;; 8532esac 8533 8534{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8535echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 8536library_names_spec= 8537libname_spec='lib$name' 8538soname_spec= 8539shrext_cmds=".so" 8540postinstall_cmds= 8541postuninstall_cmds= 8542finish_cmds= 8543finish_eval= 8544shlibpath_var= 8545shlibpath_overrides_runpath=unknown 8546version_type=none 8547dynamic_linker="$host_os ld.so" 8548sys_lib_dlsearch_path_spec="/lib /usr/lib" 8549if test "$GCC" = yes; then 8550 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8551 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 8552 # if the path contains ";" then we assume it to be the separator 8553 # otherwise default to the standard path separator (i.e. ":") - it is 8554 # assumed that no part of a normal pathname contains ";" but that should 8555 # okay in the real world where ";" in dirpaths is itself problematic. 8556 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8557 else 8558 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8559 fi 8560else 8561 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8562fi 8563need_lib_prefix=unknown 8564hardcode_into_libs=no 8565 8566# when you set need_version to no, make sure it does not cause -set_version 8567# flags to be left without arguments 8568need_version=unknown 8569 8570case $host_os in 8571aix3*) 8572 version_type=linux 8573 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8574 shlibpath_var=LIBPATH 8575 8576 # AIX 3 has no versioning support, so we append a major version to the name. 8577 soname_spec='${libname}${release}${shared_ext}$major' 8578 ;; 8579 8580aix4* | aix5*) 8581 version_type=linux 8582 need_lib_prefix=no 8583 need_version=no 8584 hardcode_into_libs=yes 8585 if test "$host_cpu" = ia64; then 8586 # AIX 5 supports IA64 8587 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8588 shlibpath_var=LD_LIBRARY_PATH 8589 else 8590 # With GCC up to 2.95.x, collect2 would create an import file 8591 # for dependence libraries. The import file would start with 8592 # the line `#! .'. This would cause the generated library to 8593 # depend on `.', always an invalid library. This was fixed in 8594 # development snapshots of GCC prior to 3.0. 8595 case $host_os in 8596 aix4 | aix4.[01] | aix4.[01].*) 8597 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8598 echo ' yes ' 8599 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 8600 : 8601 else 8602 can_build_shared=no 8603 fi 8604 ;; 8605 esac 8606 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8607 # soname into executable. Probably we can add versioning support to 8608 # collect2, so additional links can be useful in future. 8609 if test "$aix_use_runtimelinking" = yes; then 8610 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 8611 # instead of lib<name>.a to let people know that these are not 8612 # typical AIX shared libraries. 8613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8614 else 8615 # We preserve .a as extension for shared libraries through AIX4.2 8616 # and later when we are not doing run time linking. 8617 library_names_spec='${libname}${release}.a $libname.a' 8618 soname_spec='${libname}${release}${shared_ext}$major' 8619 fi 8620 shlibpath_var=LIBPATH 8621 fi 8622 ;; 8623 8624amigaos*) 8625 library_names_spec='$libname.ixlibrary $libname.a' 8626 # Create ${libname}_ixlibrary.a entries in /sys/libs. 8627 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' 8628 ;; 8629 8630beos*) 8631 library_names_spec='${libname}${shared_ext}' 8632 dynamic_linker="$host_os ld.so" 8633 shlibpath_var=LIBRARY_PATH 8634 ;; 8635 8636bsdi[45]*) 8637 version_type=linux 8638 need_version=no 8639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8640 soname_spec='${libname}${release}${shared_ext}$major' 8641 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 8642 shlibpath_var=LD_LIBRARY_PATH 8643 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 8644 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 8645 # the default ld.so.conf also contains /usr/contrib/lib and 8646 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 8647 # libtool to hard-code these into programs 8648 ;; 8649 8650cygwin* | mingw* | pw32*) 8651 version_type=windows 8652 shrext_cmds=".dll" 8653 need_version=no 8654 need_lib_prefix=no 8655 8656 case $GCC,$host_os in 8657 yes,cygwin* | yes,mingw* | yes,pw32*) 8658 library_names_spec='$libname.dll.a' 8659 # DLL is installed to $(libdir)/../bin by postinstall_cmds 8660 postinstall_cmds='base_file=`basename \${file}`~ 8661 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 8662 dldir=$destdir/`dirname \$dlpath`~ 8663 test -d \$dldir || mkdir -p \$dldir~ 8664 $install_prog $dir/$dlname \$dldir/$dlname~ 8665 chmod a+x \$dldir/$dlname' 8666 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 8667 dlpath=$dir/\$dldll~ 8668 $rm \$dlpath' 8669 shlibpath_overrides_runpath=yes 8670 8671 case $host_os in 8672 cygwin*) 8673 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 8674 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8675 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 8676 ;; 8677 mingw*) 8678 # MinGW DLLs use traditional 'lib' prefix 8679 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8680 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8681 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 8682 # It is most probably a Windows format PATH printed by 8683 # mingw gcc, but we are running on Cygwin. Gcc prints its search 8684 # path with ; separators, and with drive letters. We can handle the 8685 # drive letters (cygwin fileutils understands them), so leave them, 8686 # especially as we might pass files found there to a mingw objdump, 8687 # which wouldn't understand a cygwinified path. Ahh. 8688 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8689 else 8690 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8691 fi 8692 ;; 8693 pw32*) 8694 # pw32 DLLs use 'pw' prefix rather than 'lib' 8695 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8696 ;; 8697 esac 8698 ;; 8699 8700 *) 8701 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 8702 ;; 8703 esac 8704 dynamic_linker='Win32 ld.exe' 8705 # FIXME: first we should search . and the directory the executable is in 8706 shlibpath_var=PATH 8707 ;; 8708 8709darwin* | rhapsody*) 8710 dynamic_linker="$host_os dyld" 8711 version_type=darwin 8712 need_lib_prefix=no 8713 need_version=no 8714 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 8715 soname_spec='${libname}${release}${major}$shared_ext' 8716 shlibpath_overrides_runpath=yes 8717 shlibpath_var=DYLD_LIBRARY_PATH 8718 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 8719 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 8720 if test "$GCC" = yes; then 8721 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"` 8722 else 8723 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 8724 fi 8725 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 8726 ;; 8727 8728dgux*) 8729 version_type=linux 8730 need_lib_prefix=no 8731 need_version=no 8732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 8733 soname_spec='${libname}${release}${shared_ext}$major' 8734 shlibpath_var=LD_LIBRARY_PATH 8735 ;; 8736 8737freebsd1*) 8738 dynamic_linker=no 8739 ;; 8740 8741kfreebsd*-gnu) 8742 version_type=linux 8743 need_lib_prefix=no 8744 need_version=no 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 shlibpath_var=LD_LIBRARY_PATH 8748 shlibpath_overrides_runpath=no 8749 hardcode_into_libs=yes 8750 dynamic_linker='GNU ld.so' 8751 ;; 8752 8753freebsd* | dragonfly*) 8754 # DragonFly does not have aout. When/if they implement a new 8755 # versioning mechanism, adjust this. 8756 if test -x /usr/bin/objformat; then 8757 objformat=`/usr/bin/objformat` 8758 else 8759 case $host_os in 8760 freebsd[123]*) objformat=aout ;; 8761 *) objformat=elf ;; 8762 esac 8763 fi 8764 version_type=freebsd-$objformat 8765 case $version_type in 8766 freebsd-elf*) 8767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8768 need_version=no 8769 need_lib_prefix=no 8770 ;; 8771 freebsd-*) 8772 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 8773 need_version=yes 8774 ;; 8775 esac 8776 shlibpath_var=LD_LIBRARY_PATH 8777 case $host_os in 8778 freebsd2*) 8779 shlibpath_overrides_runpath=yes 8780 ;; 8781 freebsd3.[01]* | freebsdelf3.[01]*) 8782 shlibpath_overrides_runpath=yes 8783 hardcode_into_libs=yes 8784 ;; 8785 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 8786 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 8787 shlibpath_overrides_runpath=no 8788 hardcode_into_libs=yes 8789 ;; 8790 freebsd*) # from 4.6 on 8791 shlibpath_overrides_runpath=yes 8792 hardcode_into_libs=yes 8793 ;; 8794 esac 8795 ;; 8796 8797gnu*) 8798 version_type=linux 8799 need_lib_prefix=no 8800 need_version=no 8801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 8802 soname_spec='${libname}${release}${shared_ext}$major' 8803 shlibpath_var=LD_LIBRARY_PATH 8804 hardcode_into_libs=yes 8805 ;; 8806 8807hpux9* | hpux10* | hpux11*) 8808 # Give a soname corresponding to the major version so that dld.sl refuses to 8809 # link against other versions. 8810 version_type=sunos 8811 need_lib_prefix=no 8812 need_version=no 8813 case $host_cpu in 8814 ia64*) 8815 shrext_cmds='.so' 8816 hardcode_into_libs=yes 8817 dynamic_linker="$host_os dld.so" 8818 shlibpath_var=LD_LIBRARY_PATH 8819 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8821 soname_spec='${libname}${release}${shared_ext}$major' 8822 if test "X$HPUX_IA64_MODE" = X32; then 8823 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 8824 else 8825 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 8826 fi 8827 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8828 ;; 8829 hppa*64*) 8830 shrext_cmds='.sl' 8831 hardcode_into_libs=yes 8832 dynamic_linker="$host_os dld.sl" 8833 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 8834 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8836 soname_spec='${libname}${release}${shared_ext}$major' 8837 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 8838 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8839 ;; 8840 *) 8841 shrext_cmds='.sl' 8842 dynamic_linker="$host_os dld.sl" 8843 shlibpath_var=SHLIB_PATH 8844 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 8845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8846 soname_spec='${libname}${release}${shared_ext}$major' 8847 ;; 8848 esac 8849 # HP-UX runs *really* slowly unless shared libraries are mode 555. 8850 postinstall_cmds='chmod 555 $lib' 8851 ;; 8852 8853interix3*) 8854 version_type=linux 8855 need_lib_prefix=no 8856 need_version=no 8857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8858 soname_spec='${libname}${release}${shared_ext}$major' 8859 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 8860 shlibpath_var=LD_LIBRARY_PATH 8861 shlibpath_overrides_runpath=no 8862 hardcode_into_libs=yes 8863 ;; 8864 8865irix5* | irix6* | nonstopux*) 8866 case $host_os in 8867 nonstopux*) version_type=nonstopux ;; 8868 *) 8869 if test "$lt_cv_prog_gnu_ld" = yes; then 8870 version_type=linux 8871 else 8872 version_type=irix 8873 fi ;; 8874 esac 8875 need_lib_prefix=no 8876 need_version=no 8877 soname_spec='${libname}${release}${shared_ext}$major' 8878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 8879 case $host_os in 8880 irix5* | nonstopux*) 8881 libsuff= shlibsuff= 8882 ;; 8883 *) 8884 case $LD in # libtool.m4 will add one of these switches to LD 8885 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 8886 libsuff= shlibsuff= libmagic=32-bit;; 8887 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 8888 libsuff=32 shlibsuff=N32 libmagic=N32;; 8889 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 8890 libsuff=64 shlibsuff=64 libmagic=64-bit;; 8891 *) libsuff= shlibsuff= libmagic=never-match;; 8892 esac 8893 ;; 8894 esac 8895 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 8896 shlibpath_overrides_runpath=no 8897 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 8898 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 8899 hardcode_into_libs=yes 8900 ;; 8901 8902# No shared lib support for Linux oldld, aout, or coff. 8903linux*oldld* | linux*aout* | linux*coff*) 8904 dynamic_linker=no 8905 ;; 8906 8907# This must be Linux ELF. 8908linux*) 8909 version_type=linux 8910 need_lib_prefix=no 8911 need_version=no 8912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8913 soname_spec='${libname}${release}${shared_ext}$major' 8914 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 8915 shlibpath_var=LD_LIBRARY_PATH 8916 shlibpath_overrides_runpath=no 8917 # This implies no fast_install, which is unacceptable. 8918 # Some rework will be needed to allow for fast_install 8919 # before this can be enabled. 8920 hardcode_into_libs=yes 8921 8922 # Append ld.so.conf contents to the search path 8923 if test -f /etc/ld.so.conf; then 8924 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' ' '` 8925 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 8926 fi 8927 8928 # We used to test for /lib/ld.so.1 and disable shared libraries on 8929 # powerpc, because MkLinux only supported shared libraries with the 8930 # GNU dynamic linker. Since this was broken with cross compilers, 8931 # most powerpc-linux boxes support dynamic linking these days and 8932 # people can always --disable-shared, the test was removed, and we 8933 # assume the GNU/Linux dynamic linker is in use. 8934 dynamic_linker='GNU/Linux ld.so' 8935 ;; 8936 8937knetbsd*-gnu) 8938 version_type=linux 8939 need_lib_prefix=no 8940 need_version=no 8941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8942 soname_spec='${libname}${release}${shared_ext}$major' 8943 shlibpath_var=LD_LIBRARY_PATH 8944 shlibpath_overrides_runpath=no 8945 hardcode_into_libs=yes 8946 dynamic_linker='GNU ld.so' 8947 ;; 8948 8949netbsd*) 8950 version_type=sunos 8951 need_lib_prefix=no 8952 need_version=no 8953 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8955 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8956 dynamic_linker='NetBSD (a.out) ld.so' 8957 else 8958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8959 soname_spec='${libname}${release}${shared_ext}$major' 8960 dynamic_linker='NetBSD ld.elf_so' 8961 fi 8962 shlibpath_var=LD_LIBRARY_PATH 8963 shlibpath_overrides_runpath=yes 8964 hardcode_into_libs=yes 8965 ;; 8966 8967newsos6) 8968 version_type=linux 8969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8970 shlibpath_var=LD_LIBRARY_PATH 8971 shlibpath_overrides_runpath=yes 8972 ;; 8973 8974nto-qnx*) 8975 version_type=linux 8976 need_lib_prefix=no 8977 need_version=no 8978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8979 soname_spec='${libname}${release}${shared_ext}$major' 8980 shlibpath_var=LD_LIBRARY_PATH 8981 shlibpath_overrides_runpath=yes 8982 ;; 8983 8984openbsd*) 8985 version_type=sunos 8986 sys_lib_dlsearch_path_spec="/usr/lib" 8987 need_lib_prefix=no 8988 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 8989 case $host_os in 8990 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 8991 *) need_version=no ;; 8992 esac 8993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8994 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8995 shlibpath_var=LD_LIBRARY_PATH 8996 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8997 case $host_os in 8998 openbsd2.[89] | openbsd2.[89].*) 8999 shlibpath_overrides_runpath=no 9000 ;; 9001 *) 9002 shlibpath_overrides_runpath=yes 9003 ;; 9004 esac 9005 else 9006 shlibpath_overrides_runpath=yes 9007 fi 9008 ;; 9009 9010os2*) 9011 libname_spec='$name' 9012 shrext_cmds=".dll" 9013 need_lib_prefix=no 9014 library_names_spec='$libname${shared_ext} $libname.a' 9015 dynamic_linker='OS/2 ld.exe' 9016 shlibpath_var=LIBPATH 9017 ;; 9018 9019osf3* | osf4* | osf5*) 9020 version_type=osf 9021 need_lib_prefix=no 9022 need_version=no 9023 soname_spec='${libname}${release}${shared_ext}$major' 9024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9025 shlibpath_var=LD_LIBRARY_PATH 9026 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9027 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9028 ;; 9029 9030solaris*) 9031 version_type=linux 9032 need_lib_prefix=no 9033 need_version=no 9034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9035 soname_spec='${libname}${release}${shared_ext}$major' 9036 shlibpath_var=LD_LIBRARY_PATH 9037 shlibpath_overrides_runpath=yes 9038 hardcode_into_libs=yes 9039 # ldd complains unless libraries are executable 9040 postinstall_cmds='chmod +x $lib' 9041 ;; 9042 9043sunos4*) 9044 version_type=sunos 9045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9046 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9047 shlibpath_var=LD_LIBRARY_PATH 9048 shlibpath_overrides_runpath=yes 9049 if test "$with_gnu_ld" = yes; then 9050 need_lib_prefix=no 9051 fi 9052 need_version=yes 9053 ;; 9054 9055sysv4 | sysv4.3*) 9056 version_type=linux 9057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9058 soname_spec='${libname}${release}${shared_ext}$major' 9059 shlibpath_var=LD_LIBRARY_PATH 9060 case $host_vendor in 9061 sni) 9062 shlibpath_overrides_runpath=no 9063 need_lib_prefix=no 9064 export_dynamic_flag_spec='${wl}-Blargedynsym' 9065 runpath_var=LD_RUN_PATH 9066 ;; 9067 siemens) 9068 need_lib_prefix=no 9069 ;; 9070 motorola) 9071 need_lib_prefix=no 9072 need_version=no 9073 shlibpath_overrides_runpath=no 9074 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9075 ;; 9076 esac 9077 ;; 9078 9079sysv4*MP*) 9080 if test -d /usr/nec ;then 9081 version_type=linux 9082 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9083 soname_spec='$libname${shared_ext}.$major' 9084 shlibpath_var=LD_LIBRARY_PATH 9085 fi 9086 ;; 9087 9088sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9089 version_type=freebsd-elf 9090 need_lib_prefix=no 9091 need_version=no 9092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9093 soname_spec='${libname}${release}${shared_ext}$major' 9094 shlibpath_var=LD_LIBRARY_PATH 9095 hardcode_into_libs=yes 9096 if test "$with_gnu_ld" = yes; then 9097 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9098 shlibpath_overrides_runpath=no 9099 else 9100 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9101 shlibpath_overrides_runpath=yes 9102 case $host_os in 9103 sco3.2v5*) 9104 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9105 ;; 9106 esac 9107 fi 9108 sys_lib_dlsearch_path_spec='/usr/lib' 9109 ;; 9110 9111uts4*) 9112 version_type=linux 9113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9114 soname_spec='${libname}${release}${shared_ext}$major' 9115 shlibpath_var=LD_LIBRARY_PATH 9116 ;; 9117 9118*) 9119 dynamic_linker=no 9120 ;; 9121esac 9122{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9123echo "${ECHO_T}$dynamic_linker" >&6; } 9124test "$dynamic_linker" = no && can_build_shared=no 9125 9126variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9127if test "$GCC" = yes; then 9128 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9129fi 9130 9131{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9132echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 9133hardcode_action= 9134if test -n "$hardcode_libdir_flag_spec" || \ 9135 test -n "$runpath_var" || \ 9136 test "X$hardcode_automatic" = "Xyes" ; then 9137 9138 # We can hardcode non-existant directories. 9139 if test "$hardcode_direct" != no && 9140 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9141 # have to relink, otherwise we might link with an installed library 9142 # when we should be linking with a yet-to-be-installed one 9143 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9144 test "$hardcode_minus_L" != no; then 9145 # Linking always hardcodes the temporary library directory. 9146 hardcode_action=relink 9147 else 9148 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9149 hardcode_action=immediate 9150 fi 9151else 9152 # We cannot hardcode anything, or else we can only hardcode existing 9153 # directories. 9154 hardcode_action=unsupported 9155fi 9156{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 9157echo "${ECHO_T}$hardcode_action" >&6; } 9158 9159if test "$hardcode_action" = relink; then 9160 # Fast installation is not supported 9161 enable_fast_install=no 9162elif test "$shlibpath_overrides_runpath" = yes || 9163 test "$enable_shared" = no; then 9164 # Fast installation is not necessary 9165 enable_fast_install=needless 9166fi 9167 9168striplib= 9169old_striplib= 9170{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9171echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } 9172if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9173 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9174 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9175 { echo "$as_me:$LINENO: result: yes" >&5 9176echo "${ECHO_T}yes" >&6; } 9177else 9178# FIXME - insert some real tests, host_os isn't really good enough 9179 case $host_os in 9180 darwin*) 9181 if test -n "$STRIP" ; then 9182 striplib="$STRIP -x" 9183 { echo "$as_me:$LINENO: result: yes" >&5 9184echo "${ECHO_T}yes" >&6; } 9185 else 9186 { echo "$as_me:$LINENO: result: no" >&5 9187echo "${ECHO_T}no" >&6; } 9188fi 9189 ;; 9190 *) 9191 { echo "$as_me:$LINENO: result: no" >&5 9192echo "${ECHO_T}no" >&6; } 9193 ;; 9194 esac 9195fi 9196 9197if test "x$enable_dlopen" != xyes; then 9198 enable_dlopen=unknown 9199 enable_dlopen_self=unknown 9200 enable_dlopen_self_static=unknown 9201else 9202 lt_cv_dlopen=no 9203 lt_cv_dlopen_libs= 9204 9205 case $host_os in 9206 beos*) 9207 lt_cv_dlopen="load_add_on" 9208 lt_cv_dlopen_libs= 9209 lt_cv_dlopen_self=yes 9210 ;; 9211 9212 mingw* | pw32*) 9213 lt_cv_dlopen="LoadLibrary" 9214 lt_cv_dlopen_libs= 9215 ;; 9216 9217 cygwin*) 9218 lt_cv_dlopen="dlopen" 9219 lt_cv_dlopen_libs= 9220 ;; 9221 9222 darwin*) 9223 # if libdl is installed we need to link against it 9224 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9225echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9226if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9227 echo $ECHO_N "(cached) $ECHO_C" >&6 9228else 9229 ac_check_lib_save_LIBS=$LIBS 9230LIBS="-ldl $LIBS" 9231cat >conftest.$ac_ext <<_ACEOF 9232/* confdefs.h. */ 9233_ACEOF 9234cat confdefs.h >>conftest.$ac_ext 9235cat >>conftest.$ac_ext <<_ACEOF 9236/* end confdefs.h. */ 9237 9238/* Override any GCC internal prototype to avoid an error. 9239 Use char because int might match the return type of a GCC 9240 builtin and then its argument prototype would still apply. */ 9241#ifdef __cplusplus 9242extern "C" 9243#endif 9244char dlopen (); 9245int 9246main () 9247{ 9248return dlopen (); 9249 ; 9250 return 0; 9251} 9252_ACEOF 9253rm -f conftest.$ac_objext conftest$ac_exeext 9254if { (ac_try="$ac_link" 9255case "(($ac_try" in 9256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9257 *) ac_try_echo=$ac_try;; 9258esac 9259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9260 (eval "$ac_link") 2>conftest.er1 9261 ac_status=$? 9262 grep -v '^ *+' conftest.er1 >conftest.err 9263 rm -f conftest.er1 9264 cat conftest.err >&5 9265 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9266 (exit $ac_status); } && { 9267 test -z "$ac_c_werror_flag" || 9268 test ! -s conftest.err 9269 } && test -s conftest$ac_exeext && 9270 $as_test_x conftest$ac_exeext; then 9271 ac_cv_lib_dl_dlopen=yes 9272else 9273 echo "$as_me: failed program was:" >&5 9274sed 's/^/| /' conftest.$ac_ext >&5 9275 9276 ac_cv_lib_dl_dlopen=no 9277fi 9278 9279rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9280 conftest$ac_exeext conftest.$ac_ext 9281LIBS=$ac_check_lib_save_LIBS 9282fi 9283{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9284echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9285if test $ac_cv_lib_dl_dlopen = yes; then 9286 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9287else 9288 9289 lt_cv_dlopen="dyld" 9290 lt_cv_dlopen_libs= 9291 lt_cv_dlopen_self=yes 9292 9293fi 9294 9295 ;; 9296 9297 *) 9298 { echo "$as_me:$LINENO: checking for shl_load" >&5 9299echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 9300if test "${ac_cv_func_shl_load+set}" = set; then 9301 echo $ECHO_N "(cached) $ECHO_C" >&6 9302else 9303 cat >conftest.$ac_ext <<_ACEOF 9304/* confdefs.h. */ 9305_ACEOF 9306cat confdefs.h >>conftest.$ac_ext 9307cat >>conftest.$ac_ext <<_ACEOF 9308/* end confdefs.h. */ 9309/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9310 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9311#define shl_load innocuous_shl_load 9312 9313/* System header to define __stub macros and hopefully few prototypes, 9314 which can conflict with char shl_load (); below. 9315 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9316 <limits.h> exists even on freestanding compilers. */ 9317 9318#ifdef __STDC__ 9319# include <limits.h> 9320#else 9321# include <assert.h> 9322#endif 9323 9324#undef shl_load 9325 9326/* Override any GCC internal prototype to avoid an error. 9327 Use char because int might match the return type of a GCC 9328 builtin and then its argument prototype would still apply. */ 9329#ifdef __cplusplus 9330extern "C" 9331#endif 9332char shl_load (); 9333/* The GNU C library defines this for functions which it implements 9334 to always fail with ENOSYS. Some functions are actually named 9335 something starting with __ and the normal name is an alias. */ 9336#if defined __stub_shl_load || defined __stub___shl_load 9337choke me 9338#endif 9339 9340int 9341main () 9342{ 9343return shl_load (); 9344 ; 9345 return 0; 9346} 9347_ACEOF 9348rm -f conftest.$ac_objext conftest$ac_exeext 9349if { (ac_try="$ac_link" 9350case "(($ac_try" in 9351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9352 *) ac_try_echo=$ac_try;; 9353esac 9354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9355 (eval "$ac_link") 2>conftest.er1 9356 ac_status=$? 9357 grep -v '^ *+' conftest.er1 >conftest.err 9358 rm -f conftest.er1 9359 cat conftest.err >&5 9360 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9361 (exit $ac_status); } && { 9362 test -z "$ac_c_werror_flag" || 9363 test ! -s conftest.err 9364 } && test -s conftest$ac_exeext && 9365 $as_test_x conftest$ac_exeext; then 9366 ac_cv_func_shl_load=yes 9367else 9368 echo "$as_me: failed program was:" >&5 9369sed 's/^/| /' conftest.$ac_ext >&5 9370 9371 ac_cv_func_shl_load=no 9372fi 9373 9374rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9375 conftest$ac_exeext conftest.$ac_ext 9376fi 9377{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9378echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 9379if test $ac_cv_func_shl_load = yes; then 9380 lt_cv_dlopen="shl_load" 9381else 9382 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9383echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 9384if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9385 echo $ECHO_N "(cached) $ECHO_C" >&6 9386else 9387 ac_check_lib_save_LIBS=$LIBS 9388LIBS="-ldld $LIBS" 9389cat >conftest.$ac_ext <<_ACEOF 9390/* confdefs.h. */ 9391_ACEOF 9392cat confdefs.h >>conftest.$ac_ext 9393cat >>conftest.$ac_ext <<_ACEOF 9394/* end confdefs.h. */ 9395 9396/* Override any GCC internal prototype to avoid an error. 9397 Use char because int might match the return type of a GCC 9398 builtin and then its argument prototype would still apply. */ 9399#ifdef __cplusplus 9400extern "C" 9401#endif 9402char shl_load (); 9403int 9404main () 9405{ 9406return shl_load (); 9407 ; 9408 return 0; 9409} 9410_ACEOF 9411rm -f conftest.$ac_objext conftest$ac_exeext 9412if { (ac_try="$ac_link" 9413case "(($ac_try" in 9414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9415 *) ac_try_echo=$ac_try;; 9416esac 9417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9418 (eval "$ac_link") 2>conftest.er1 9419 ac_status=$? 9420 grep -v '^ *+' conftest.er1 >conftest.err 9421 rm -f conftest.er1 9422 cat conftest.err >&5 9423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9424 (exit $ac_status); } && { 9425 test -z "$ac_c_werror_flag" || 9426 test ! -s conftest.err 9427 } && test -s conftest$ac_exeext && 9428 $as_test_x conftest$ac_exeext; then 9429 ac_cv_lib_dld_shl_load=yes 9430else 9431 echo "$as_me: failed program was:" >&5 9432sed 's/^/| /' conftest.$ac_ext >&5 9433 9434 ac_cv_lib_dld_shl_load=no 9435fi 9436 9437rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9438 conftest$ac_exeext conftest.$ac_ext 9439LIBS=$ac_check_lib_save_LIBS 9440fi 9441{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9442echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 9443if test $ac_cv_lib_dld_shl_load = yes; then 9444 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 9445else 9446 { echo "$as_me:$LINENO: checking for dlopen" >&5 9447echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 9448if test "${ac_cv_func_dlopen+set}" = set; then 9449 echo $ECHO_N "(cached) $ECHO_C" >&6 9450else 9451 cat >conftest.$ac_ext <<_ACEOF 9452/* confdefs.h. */ 9453_ACEOF 9454cat confdefs.h >>conftest.$ac_ext 9455cat >>conftest.$ac_ext <<_ACEOF 9456/* end confdefs.h. */ 9457/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 9458 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9459#define dlopen innocuous_dlopen 9460 9461/* System header to define __stub macros and hopefully few prototypes, 9462 which can conflict with char dlopen (); below. 9463 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9464 <limits.h> exists even on freestanding compilers. */ 9465 9466#ifdef __STDC__ 9467# include <limits.h> 9468#else 9469# include <assert.h> 9470#endif 9471 9472#undef dlopen 9473 9474/* Override any GCC internal prototype to avoid an error. 9475 Use char because int might match the return type of a GCC 9476 builtin and then its argument prototype would still apply. */ 9477#ifdef __cplusplus 9478extern "C" 9479#endif 9480char dlopen (); 9481/* The GNU C library defines this for functions which it implements 9482 to always fail with ENOSYS. Some functions are actually named 9483 something starting with __ and the normal name is an alias. */ 9484#if defined __stub_dlopen || defined __stub___dlopen 9485choke me 9486#endif 9487 9488int 9489main () 9490{ 9491return dlopen (); 9492 ; 9493 return 0; 9494} 9495_ACEOF 9496rm -f conftest.$ac_objext conftest$ac_exeext 9497if { (ac_try="$ac_link" 9498case "(($ac_try" in 9499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9500 *) ac_try_echo=$ac_try;; 9501esac 9502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9503 (eval "$ac_link") 2>conftest.er1 9504 ac_status=$? 9505 grep -v '^ *+' conftest.er1 >conftest.err 9506 rm -f conftest.er1 9507 cat conftest.err >&5 9508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9509 (exit $ac_status); } && { 9510 test -z "$ac_c_werror_flag" || 9511 test ! -s conftest.err 9512 } && test -s conftest$ac_exeext && 9513 $as_test_x conftest$ac_exeext; then 9514 ac_cv_func_dlopen=yes 9515else 9516 echo "$as_me: failed program was:" >&5 9517sed 's/^/| /' conftest.$ac_ext >&5 9518 9519 ac_cv_func_dlopen=no 9520fi 9521 9522rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9523 conftest$ac_exeext conftest.$ac_ext 9524fi 9525{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 9526echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 9527if test $ac_cv_func_dlopen = yes; then 9528 lt_cv_dlopen="dlopen" 9529else 9530 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9531echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9532if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9533 echo $ECHO_N "(cached) $ECHO_C" >&6 9534else 9535 ac_check_lib_save_LIBS=$LIBS 9536LIBS="-ldl $LIBS" 9537cat >conftest.$ac_ext <<_ACEOF 9538/* confdefs.h. */ 9539_ACEOF 9540cat confdefs.h >>conftest.$ac_ext 9541cat >>conftest.$ac_ext <<_ACEOF 9542/* end confdefs.h. */ 9543 9544/* Override any GCC internal prototype to avoid an error. 9545 Use char because int might match the return type of a GCC 9546 builtin and then its argument prototype would still apply. */ 9547#ifdef __cplusplus 9548extern "C" 9549#endif 9550char dlopen (); 9551int 9552main () 9553{ 9554return dlopen (); 9555 ; 9556 return 0; 9557} 9558_ACEOF 9559rm -f conftest.$ac_objext conftest$ac_exeext 9560if { (ac_try="$ac_link" 9561case "(($ac_try" in 9562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9563 *) ac_try_echo=$ac_try;; 9564esac 9565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9566 (eval "$ac_link") 2>conftest.er1 9567 ac_status=$? 9568 grep -v '^ *+' conftest.er1 >conftest.err 9569 rm -f conftest.er1 9570 cat conftest.err >&5 9571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9572 (exit $ac_status); } && { 9573 test -z "$ac_c_werror_flag" || 9574 test ! -s conftest.err 9575 } && test -s conftest$ac_exeext && 9576 $as_test_x conftest$ac_exeext; then 9577 ac_cv_lib_dl_dlopen=yes 9578else 9579 echo "$as_me: failed program was:" >&5 9580sed 's/^/| /' conftest.$ac_ext >&5 9581 9582 ac_cv_lib_dl_dlopen=no 9583fi 9584 9585rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9586 conftest$ac_exeext conftest.$ac_ext 9587LIBS=$ac_check_lib_save_LIBS 9588fi 9589{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9590echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9591if test $ac_cv_lib_dl_dlopen = yes; then 9592 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9593else 9594 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 9595echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 9596if test "${ac_cv_lib_svld_dlopen+set}" = set; then 9597 echo $ECHO_N "(cached) $ECHO_C" >&6 9598else 9599 ac_check_lib_save_LIBS=$LIBS 9600LIBS="-lsvld $LIBS" 9601cat >conftest.$ac_ext <<_ACEOF 9602/* confdefs.h. */ 9603_ACEOF 9604cat confdefs.h >>conftest.$ac_ext 9605cat >>conftest.$ac_ext <<_ACEOF 9606/* end confdefs.h. */ 9607 9608/* Override any GCC internal prototype to avoid an error. 9609 Use char because int might match the return type of a GCC 9610 builtin and then its argument prototype would still apply. */ 9611#ifdef __cplusplus 9612extern "C" 9613#endif 9614char dlopen (); 9615int 9616main () 9617{ 9618return dlopen (); 9619 ; 9620 return 0; 9621} 9622_ACEOF 9623rm -f conftest.$ac_objext conftest$ac_exeext 9624if { (ac_try="$ac_link" 9625case "(($ac_try" in 9626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9627 *) ac_try_echo=$ac_try;; 9628esac 9629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9630 (eval "$ac_link") 2>conftest.er1 9631 ac_status=$? 9632 grep -v '^ *+' conftest.er1 >conftest.err 9633 rm -f conftest.er1 9634 cat conftest.err >&5 9635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9636 (exit $ac_status); } && { 9637 test -z "$ac_c_werror_flag" || 9638 test ! -s conftest.err 9639 } && test -s conftest$ac_exeext && 9640 $as_test_x conftest$ac_exeext; then 9641 ac_cv_lib_svld_dlopen=yes 9642else 9643 echo "$as_me: failed program was:" >&5 9644sed 's/^/| /' conftest.$ac_ext >&5 9645 9646 ac_cv_lib_svld_dlopen=no 9647fi 9648 9649rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9650 conftest$ac_exeext conftest.$ac_ext 9651LIBS=$ac_check_lib_save_LIBS 9652fi 9653{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 9654echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 9655if test $ac_cv_lib_svld_dlopen = yes; then 9656 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 9657else 9658 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 9659echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 9660if test "${ac_cv_lib_dld_dld_link+set}" = set; then 9661 echo $ECHO_N "(cached) $ECHO_C" >&6 9662else 9663 ac_check_lib_save_LIBS=$LIBS 9664LIBS="-ldld $LIBS" 9665cat >conftest.$ac_ext <<_ACEOF 9666/* confdefs.h. */ 9667_ACEOF 9668cat confdefs.h >>conftest.$ac_ext 9669cat >>conftest.$ac_ext <<_ACEOF 9670/* end confdefs.h. */ 9671 9672/* Override any GCC internal prototype to avoid an error. 9673 Use char because int might match the return type of a GCC 9674 builtin and then its argument prototype would still apply. */ 9675#ifdef __cplusplus 9676extern "C" 9677#endif 9678char dld_link (); 9679int 9680main () 9681{ 9682return dld_link (); 9683 ; 9684 return 0; 9685} 9686_ACEOF 9687rm -f conftest.$ac_objext conftest$ac_exeext 9688if { (ac_try="$ac_link" 9689case "(($ac_try" in 9690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9691 *) ac_try_echo=$ac_try;; 9692esac 9693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9694 (eval "$ac_link") 2>conftest.er1 9695 ac_status=$? 9696 grep -v '^ *+' conftest.er1 >conftest.err 9697 rm -f conftest.er1 9698 cat conftest.err >&5 9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9700 (exit $ac_status); } && { 9701 test -z "$ac_c_werror_flag" || 9702 test ! -s conftest.err 9703 } && test -s conftest$ac_exeext && 9704 $as_test_x conftest$ac_exeext; then 9705 ac_cv_lib_dld_dld_link=yes 9706else 9707 echo "$as_me: failed program was:" >&5 9708sed 's/^/| /' conftest.$ac_ext >&5 9709 9710 ac_cv_lib_dld_dld_link=no 9711fi 9712 9713rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9714 conftest$ac_exeext conftest.$ac_ext 9715LIBS=$ac_check_lib_save_LIBS 9716fi 9717{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 9718echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 9719if test $ac_cv_lib_dld_dld_link = yes; then 9720 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 9721fi 9722 9723 9724fi 9725 9726 9727fi 9728 9729 9730fi 9731 9732 9733fi 9734 9735 9736fi 9737 9738 ;; 9739 esac 9740 9741 if test "x$lt_cv_dlopen" != xno; then 9742 enable_dlopen=yes 9743 else 9744 enable_dlopen=no 9745 fi 9746 9747 case $lt_cv_dlopen in 9748 dlopen) 9749 save_CPPFLAGS="$CPPFLAGS" 9750 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 9751 9752 save_LDFLAGS="$LDFLAGS" 9753 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 9754 9755 save_LIBS="$LIBS" 9756 LIBS="$lt_cv_dlopen_libs $LIBS" 9757 9758 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 9759echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } 9760if test "${lt_cv_dlopen_self+set}" = set; then 9761 echo $ECHO_N "(cached) $ECHO_C" >&6 9762else 9763 if test "$cross_compiling" = yes; then : 9764 lt_cv_dlopen_self=cross 9765else 9766 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9767 lt_status=$lt_dlunknown 9768 cat > conftest.$ac_ext <<EOF 9769#line 9769 "configure" 9770#include "confdefs.h" 9771 9772#if HAVE_DLFCN_H 9773#include <dlfcn.h> 9774#endif 9775 9776#include <stdio.h> 9777 9778#ifdef RTLD_GLOBAL 9779# define LT_DLGLOBAL RTLD_GLOBAL 9780#else 9781# ifdef DL_GLOBAL 9782# define LT_DLGLOBAL DL_GLOBAL 9783# else 9784# define LT_DLGLOBAL 0 9785# endif 9786#endif 9787 9788/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9789 find out it does not work in some platform. */ 9790#ifndef LT_DLLAZY_OR_NOW 9791# ifdef RTLD_LAZY 9792# define LT_DLLAZY_OR_NOW RTLD_LAZY 9793# else 9794# ifdef DL_LAZY 9795# define LT_DLLAZY_OR_NOW DL_LAZY 9796# else 9797# ifdef RTLD_NOW 9798# define LT_DLLAZY_OR_NOW RTLD_NOW 9799# else 9800# ifdef DL_NOW 9801# define LT_DLLAZY_OR_NOW DL_NOW 9802# else 9803# define LT_DLLAZY_OR_NOW 0 9804# endif 9805# endif 9806# endif 9807# endif 9808#endif 9809 9810#ifdef __cplusplus 9811extern "C" void exit (int); 9812#endif 9813 9814void fnord() { int i=42;} 9815int main () 9816{ 9817 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9818 int status = $lt_dlunknown; 9819 9820 if (self) 9821 { 9822 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9823 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9824 /* dlclose (self); */ 9825 } 9826 else 9827 puts (dlerror ()); 9828 9829 exit (status); 9830} 9831EOF 9832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9833 (eval $ac_link) 2>&5 9834 ac_status=$? 9835 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9836 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9837 (./conftest; exit; ) >&5 2>/dev/null 9838 lt_status=$? 9839 case x$lt_status in 9840 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 9841 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 9842 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 9843 esac 9844 else : 9845 # compilation failed 9846 lt_cv_dlopen_self=no 9847 fi 9848fi 9849rm -fr conftest* 9850 9851 9852fi 9853{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 9854echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } 9855 9856 if test "x$lt_cv_dlopen_self" = xyes; then 9857 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 9858 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 9859echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } 9860if test "${lt_cv_dlopen_self_static+set}" = set; then 9861 echo $ECHO_N "(cached) $ECHO_C" >&6 9862else 9863 if test "$cross_compiling" = yes; then : 9864 lt_cv_dlopen_self_static=cross 9865else 9866 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9867 lt_status=$lt_dlunknown 9868 cat > conftest.$ac_ext <<EOF 9869#line 9869 "configure" 9870#include "confdefs.h" 9871 9872#if HAVE_DLFCN_H 9873#include <dlfcn.h> 9874#endif 9875 9876#include <stdio.h> 9877 9878#ifdef RTLD_GLOBAL 9879# define LT_DLGLOBAL RTLD_GLOBAL 9880#else 9881# ifdef DL_GLOBAL 9882# define LT_DLGLOBAL DL_GLOBAL 9883# else 9884# define LT_DLGLOBAL 0 9885# endif 9886#endif 9887 9888/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9889 find out it does not work in some platform. */ 9890#ifndef LT_DLLAZY_OR_NOW 9891# ifdef RTLD_LAZY 9892# define LT_DLLAZY_OR_NOW RTLD_LAZY 9893# else 9894# ifdef DL_LAZY 9895# define LT_DLLAZY_OR_NOW DL_LAZY 9896# else 9897# ifdef RTLD_NOW 9898# define LT_DLLAZY_OR_NOW RTLD_NOW 9899# else 9900# ifdef DL_NOW 9901# define LT_DLLAZY_OR_NOW DL_NOW 9902# else 9903# define LT_DLLAZY_OR_NOW 0 9904# endif 9905# endif 9906# endif 9907# endif 9908#endif 9909 9910#ifdef __cplusplus 9911extern "C" void exit (int); 9912#endif 9913 9914void fnord() { int i=42;} 9915int main () 9916{ 9917 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9918 int status = $lt_dlunknown; 9919 9920 if (self) 9921 { 9922 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9923 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9924 /* dlclose (self); */ 9925 } 9926 else 9927 puts (dlerror ()); 9928 9929 exit (status); 9930} 9931EOF 9932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9933 (eval $ac_link) 2>&5 9934 ac_status=$? 9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9936 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9937 (./conftest; exit; ) >&5 2>/dev/null 9938 lt_status=$? 9939 case x$lt_status in 9940 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 9941 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 9942 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 9943 esac 9944 else : 9945 # compilation failed 9946 lt_cv_dlopen_self_static=no 9947 fi 9948fi 9949rm -fr conftest* 9950 9951 9952fi 9953{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 9954echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } 9955 fi 9956 9957 CPPFLAGS="$save_CPPFLAGS" 9958 LDFLAGS="$save_LDFLAGS" 9959 LIBS="$save_LIBS" 9960 ;; 9961 esac 9962 9963 case $lt_cv_dlopen_self in 9964 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 9965 *) enable_dlopen_self=unknown ;; 9966 esac 9967 9968 case $lt_cv_dlopen_self_static in 9969 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 9970 *) enable_dlopen_self_static=unknown ;; 9971 esac 9972fi 9973 9974 9975# Report which library types will actually be built 9976{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 9977echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 9978{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 9979echo "${ECHO_T}$can_build_shared" >&6; } 9980 9981{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 9982echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 9983test "$can_build_shared" = "no" && enable_shared=no 9984 9985# On AIX, shared libraries and static libraries use the same namespace, and 9986# are all built from PIC. 9987case $host_os in 9988aix3*) 9989 test "$enable_shared" = yes && enable_static=no 9990 if test -n "$RANLIB"; then 9991 archive_cmds="$archive_cmds~\$RANLIB \$lib" 9992 postinstall_cmds='$RANLIB $lib' 9993 fi 9994 ;; 9995 9996aix4* | aix5*) 9997 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 9998 test "$enable_shared" = yes && enable_static=no 9999 fi 10000 ;; 10001esac 10002{ echo "$as_me:$LINENO: result: $enable_shared" >&5 10003echo "${ECHO_T}$enable_shared" >&6; } 10004 10005{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10006echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 10007# Make sure either enable_shared or enable_static is yes. 10008test "$enable_shared" = yes || enable_static=yes 10009{ echo "$as_me:$LINENO: result: $enable_static" >&5 10010echo "${ECHO_T}$enable_static" >&6; } 10011 10012# The else clause should only fire when bootstrapping the 10013# libtool distribution, otherwise you forgot to ship ltmain.sh 10014# with your package, and you will get complaints that there are 10015# no rules to generate ltmain.sh. 10016if test -f "$ltmain"; then 10017 # See if we are running on zsh, and set the options which allow our commands through 10018 # without removal of \ escapes. 10019 if test -n "${ZSH_VERSION+set}" ; then 10020 setopt NO_GLOB_SUBST 10021 fi 10022 # Now quote all the things that may contain metacharacters while being 10023 # careful not to overquote the AC_SUBSTed values. We take copies of the 10024 # variables and quote the copies for generation of the libtool script. 10025 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 10026 SED SHELL STRIP \ 10027 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10028 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10029 deplibs_check_method reload_flag reload_cmds need_locks \ 10030 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10031 lt_cv_sys_global_symbol_to_c_name_address \ 10032 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10033 old_postinstall_cmds old_postuninstall_cmds \ 10034 compiler \ 10035 CC \ 10036 LD \ 10037 lt_prog_compiler_wl \ 10038 lt_prog_compiler_pic \ 10039 lt_prog_compiler_static \ 10040 lt_prog_compiler_no_builtin_flag \ 10041 export_dynamic_flag_spec \ 10042 thread_safe_flag_spec \ 10043 whole_archive_flag_spec \ 10044 enable_shared_with_static_runtimes \ 10045 old_archive_cmds \ 10046 old_archive_from_new_cmds \ 10047 predep_objects \ 10048 postdep_objects \ 10049 predeps \ 10050 postdeps \ 10051 compiler_lib_search_path \ 10052 archive_cmds \ 10053 archive_expsym_cmds \ 10054 postinstall_cmds \ 10055 postuninstall_cmds \ 10056 old_archive_from_expsyms_cmds \ 10057 allow_undefined_flag \ 10058 no_undefined_flag \ 10059 export_symbols_cmds \ 10060 hardcode_libdir_flag_spec \ 10061 hardcode_libdir_flag_spec_ld \ 10062 hardcode_libdir_separator \ 10063 hardcode_automatic \ 10064 module_cmds \ 10065 module_expsym_cmds \ 10066 lt_cv_prog_compiler_c_o \ 10067 exclude_expsyms \ 10068 include_expsyms; do 10069 10070 case $var in 10071 old_archive_cmds | \ 10072 old_archive_from_new_cmds | \ 10073 archive_cmds | \ 10074 archive_expsym_cmds | \ 10075 module_cmds | \ 10076 module_expsym_cmds | \ 10077 old_archive_from_expsyms_cmds | \ 10078 export_symbols_cmds | \ 10079 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10080 postinstall_cmds | postuninstall_cmds | \ 10081 old_postinstall_cmds | old_postuninstall_cmds | \ 10082 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10083 # Double-quote double-evaled strings. 10084 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10085 ;; 10086 *) 10087 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10088 ;; 10089 esac 10090 done 10091 10092 case $lt_echo in 10093 *'\$0 --fallback-echo"') 10094 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10095 ;; 10096 esac 10097 10098cfgfile="${ofile}T" 10099 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10100 $rm -f "$cfgfile" 10101 { echo "$as_me:$LINENO: creating $ofile" >&5 10102echo "$as_me: creating $ofile" >&6;} 10103 10104 cat <<__EOF__ >> "$cfgfile" 10105#! $SHELL 10106 10107# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10108# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10109# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10110# 10111# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 10112# Free Software Foundation, Inc. 10113# 10114# This file is part of GNU Libtool: 10115# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10116# 10117# This program is free software; you can redistribute it and/or modify 10118# it under the terms of the GNU General Public License as published by 10119# the Free Software Foundation; either version 2 of the License, or 10120# (at your option) any later version. 10121# 10122# This program is distributed in the hope that it will be useful, but 10123# WITHOUT ANY WARRANTY; without even the implied warranty of 10124# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10125# General Public License for more details. 10126# 10127# You should have received a copy of the GNU General Public License 10128# along with this program; if not, write to the Free Software 10129# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10130# 10131# As a special exception to the GNU General Public License, if you 10132# distribute this file as part of a program that contains a 10133# configuration script generated by Autoconf, you may include it under 10134# the same distribution terms that you use for the rest of that program. 10135 10136# A sed program that does not truncate output. 10137SED=$lt_SED 10138 10139# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10140Xsed="$SED -e 1s/^X//" 10141 10142# The HP-UX ksh and POSIX shell print the target directory to stdout 10143# if CDPATH is set. 10144(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10145 10146# The names of the tagged configurations supported by this script. 10147available_tags= 10148 10149# ### BEGIN LIBTOOL CONFIG 10150 10151# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10152 10153# Shell to use when invoking shell scripts. 10154SHELL=$lt_SHELL 10155 10156# Whether or not to build shared libraries. 10157build_libtool_libs=$enable_shared 10158 10159# Whether or not to build static libraries. 10160build_old_libs=$enable_static 10161 10162# Whether or not to add -lc for building shared libraries. 10163build_libtool_need_lc=$archive_cmds_need_lc 10164 10165# Whether or not to disallow shared libs when runtime libs are static 10166allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10167 10168# Whether or not to optimize for fast installation. 10169fast_install=$enable_fast_install 10170 10171# The host system. 10172host_alias=$host_alias 10173host=$host 10174host_os=$host_os 10175 10176# The build system. 10177build_alias=$build_alias 10178build=$build 10179build_os=$build_os 10180 10181# An echo program that does not interpret backslashes. 10182echo=$lt_echo 10183 10184# The archiver. 10185AR=$lt_AR 10186AR_FLAGS=$lt_AR_FLAGS 10187 10188# A C compiler. 10189LTCC=$lt_LTCC 10190 10191# LTCC compiler flags. 10192LTCFLAGS=$lt_LTCFLAGS 10193 10194# A language-specific compiler. 10195CC=$lt_compiler 10196 10197# Is the compiler the GNU C compiler? 10198with_gcc=$GCC 10199 10200# An ERE matcher. 10201EGREP=$lt_EGREP 10202 10203# The linker used to build libraries. 10204LD=$lt_LD 10205 10206# Whether we need hard or soft links. 10207LN_S=$lt_LN_S 10208 10209# A BSD-compatible nm program. 10210NM=$lt_NM 10211 10212# A symbol stripping program 10213STRIP=$lt_STRIP 10214 10215# Used to examine libraries when file_magic_cmd begins "file" 10216MAGIC_CMD=$MAGIC_CMD 10217 10218# Used on cygwin: DLL creation program. 10219DLLTOOL="$DLLTOOL" 10220 10221# Used on cygwin: object dumper. 10222OBJDUMP="$OBJDUMP" 10223 10224# Used on cygwin: assembler. 10225AS="$AS" 10226 10227# The name of the directory that contains temporary libtool files. 10228objdir=$objdir 10229 10230# How to create reloadable object files. 10231reload_flag=$lt_reload_flag 10232reload_cmds=$lt_reload_cmds 10233 10234# How to pass a linker flag through the compiler. 10235wl=$lt_lt_prog_compiler_wl 10236 10237# Object file suffix (normally "o"). 10238objext="$ac_objext" 10239 10240# Old archive suffix (normally "a"). 10241libext="$libext" 10242 10243# Shared library suffix (normally ".so"). 10244shrext_cmds='$shrext_cmds' 10245 10246# Executable file suffix (normally ""). 10247exeext="$exeext" 10248 10249# Additional compiler flags for building library objects. 10250pic_flag=$lt_lt_prog_compiler_pic 10251pic_mode=$pic_mode 10252 10253# What is the maximum length of a command? 10254max_cmd_len=$lt_cv_sys_max_cmd_len 10255 10256# Does compiler simultaneously support -c and -o options? 10257compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10258 10259# Must we lock files when doing compilation? 10260need_locks=$lt_need_locks 10261 10262# Do we need the lib prefix for modules? 10263need_lib_prefix=$need_lib_prefix 10264 10265# Do we need a version for libraries? 10266need_version=$need_version 10267 10268# Whether dlopen is supported. 10269dlopen_support=$enable_dlopen 10270 10271# Whether dlopen of programs is supported. 10272dlopen_self=$enable_dlopen_self 10273 10274# Whether dlopen of statically linked programs is supported. 10275dlopen_self_static=$enable_dlopen_self_static 10276 10277# Compiler flag to prevent dynamic linking. 10278link_static_flag=$lt_lt_prog_compiler_static 10279 10280# Compiler flag to turn off builtin functions. 10281no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10282 10283# Compiler flag to allow reflexive dlopens. 10284export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10285 10286# Compiler flag to generate shared objects directly from archives. 10287whole_archive_flag_spec=$lt_whole_archive_flag_spec 10288 10289# Compiler flag to generate thread-safe objects. 10290thread_safe_flag_spec=$lt_thread_safe_flag_spec 10291 10292# Library versioning type. 10293version_type=$version_type 10294 10295# Format of library name prefix. 10296libname_spec=$lt_libname_spec 10297 10298# List of archive names. First name is the real one, the rest are links. 10299# The last name is the one that the linker finds with -lNAME. 10300library_names_spec=$lt_library_names_spec 10301 10302# The coded name of the library, if different from the real name. 10303soname_spec=$lt_soname_spec 10304 10305# Commands used to build and install an old-style archive. 10306RANLIB=$lt_RANLIB 10307old_archive_cmds=$lt_old_archive_cmds 10308old_postinstall_cmds=$lt_old_postinstall_cmds 10309old_postuninstall_cmds=$lt_old_postuninstall_cmds 10310 10311# Create an old-style archive from a shared archive. 10312old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10313 10314# Create a temporary old-style archive to link instead of a shared archive. 10315old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10316 10317# Commands used to build and install a shared archive. 10318archive_cmds=$lt_archive_cmds 10319archive_expsym_cmds=$lt_archive_expsym_cmds 10320postinstall_cmds=$lt_postinstall_cmds 10321postuninstall_cmds=$lt_postuninstall_cmds 10322 10323# Commands used to build a loadable module (assumed same as above if empty) 10324module_cmds=$lt_module_cmds 10325module_expsym_cmds=$lt_module_expsym_cmds 10326 10327# Commands to strip libraries. 10328old_striplib=$lt_old_striplib 10329striplib=$lt_striplib 10330 10331# Dependencies to place before the objects being linked to create a 10332# shared library. 10333predep_objects=$lt_predep_objects 10334 10335# Dependencies to place after the objects being linked to create a 10336# shared library. 10337postdep_objects=$lt_postdep_objects 10338 10339# Dependencies to place before the objects being linked to create a 10340# shared library. 10341predeps=$lt_predeps 10342 10343# Dependencies to place after the objects being linked to create a 10344# shared library. 10345postdeps=$lt_postdeps 10346 10347# The library search path used internally by the compiler when linking 10348# a shared library. 10349compiler_lib_search_path=$lt_compiler_lib_search_path 10350 10351# Method to check whether dependent libraries are shared objects. 10352deplibs_check_method=$lt_deplibs_check_method 10353 10354# Command to use when deplibs_check_method == file_magic. 10355file_magic_cmd=$lt_file_magic_cmd 10356 10357# Flag that allows shared libraries with undefined symbols to be built. 10358allow_undefined_flag=$lt_allow_undefined_flag 10359 10360# Flag that forces no undefined symbols. 10361no_undefined_flag=$lt_no_undefined_flag 10362 10363# Commands used to finish a libtool library installation in a directory. 10364finish_cmds=$lt_finish_cmds 10365 10366# Same as above, but a single script fragment to be evaled but not shown. 10367finish_eval=$lt_finish_eval 10368 10369# Take the output of nm and produce a listing of raw symbols and C names. 10370global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 10371 10372# Transform the output of nm in a proper C declaration 10373global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 10374 10375# Transform the output of nm in a C name address pair 10376global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 10377 10378# This is the shared library runtime path variable. 10379runpath_var=$runpath_var 10380 10381# This is the shared library path variable. 10382shlibpath_var=$shlibpath_var 10383 10384# Is shlibpath searched before the hard-coded library search path? 10385shlibpath_overrides_runpath=$shlibpath_overrides_runpath 10386 10387# How to hardcode a shared library path into an executable. 10388hardcode_action=$hardcode_action 10389 10390# Whether we should hardcode library paths into libraries. 10391hardcode_into_libs=$hardcode_into_libs 10392 10393# Flag to hardcode \$libdir into a binary during linking. 10394# This must work even if \$libdir does not exist. 10395hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 10396 10397# If ld is used when linking, flag to hardcode \$libdir into 10398# a binary during linking. This must work even if \$libdir does 10399# not exist. 10400hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 10401 10402# Whether we need a single -rpath flag with a separated argument. 10403hardcode_libdir_separator=$lt_hardcode_libdir_separator 10404 10405# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 10406# resulting binary. 10407hardcode_direct=$hardcode_direct 10408 10409# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 10410# resulting binary. 10411hardcode_minus_L=$hardcode_minus_L 10412 10413# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 10414# the resulting binary. 10415hardcode_shlibpath_var=$hardcode_shlibpath_var 10416 10417# Set to yes if building a shared library automatically hardcodes DIR into the library 10418# and all subsequent libraries and executables linked against it. 10419hardcode_automatic=$hardcode_automatic 10420 10421# Variables whose values should be saved in libtool wrapper scripts and 10422# restored at relink time. 10423variables_saved_for_relink="$variables_saved_for_relink" 10424 10425# Whether libtool must link a program against all its dependency libraries. 10426link_all_deplibs=$link_all_deplibs 10427 10428# Compile-time system search path for libraries 10429sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 10430 10431# Run-time system search path for libraries 10432sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 10433 10434# Fix the shell variable \$srcfile for the compiler. 10435fix_srcfile_path="$fix_srcfile_path" 10436 10437# Set to yes if exported symbols are required. 10438always_export_symbols=$always_export_symbols 10439 10440# The commands to list exported symbols. 10441export_symbols_cmds=$lt_export_symbols_cmds 10442 10443# The commands to extract the exported symbol list from a shared archive. 10444extract_expsyms_cmds=$lt_extract_expsyms_cmds 10445 10446# Symbols that should not be listed in the preloaded symbols. 10447exclude_expsyms=$lt_exclude_expsyms 10448 10449# Symbols that must always be exported. 10450include_expsyms=$lt_include_expsyms 10451 10452# ### END LIBTOOL CONFIG 10453 10454__EOF__ 10455 10456 10457 case $host_os in 10458 aix3*) 10459 cat <<\EOF >> "$cfgfile" 10460 10461# AIX sometimes has problems with the GCC collect2 program. For some 10462# reason, if we set the COLLECT_NAMES environment variable, the problems 10463# vanish in a puff of smoke. 10464if test "X${COLLECT_NAMES+set}" != Xset; then 10465 COLLECT_NAMES= 10466 export COLLECT_NAMES 10467fi 10468EOF 10469 ;; 10470 esac 10471 10472 # We use sed instead of cat because bash on DJGPP gets confused if 10473 # if finds mixed CR/LF and LF-only lines. Since sed operates in 10474 # text mode, it properly converts lines to CR/LF. This bash problem 10475 # is reportedly fixed, but why not run on old versions too? 10476 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 10477 10478 mv -f "$cfgfile" "$ofile" || \ 10479 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 10480 chmod +x "$ofile" 10481 10482else 10483 # If there is no Makefile yet, we rely on a make rule to execute 10484 # `config.status --recheck' to rerun these tests and create the 10485 # libtool script then. 10486 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 10487 if test -f "$ltmain_in"; then 10488 test -f Makefile && make "$ltmain" 10489 fi 10490fi 10491 10492 10493ac_ext=c 10494ac_cpp='$CPP $CPPFLAGS' 10495ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10496ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10497ac_compiler_gnu=$ac_cv_c_compiler_gnu 10498 10499CC="$lt_save_CC" 10500 10501 10502# Check whether --with-tags was given. 10503if test "${with_tags+set}" = set; then 10504 withval=$with_tags; tagnames="$withval" 10505fi 10506 10507 10508if test -f "$ltmain" && test -n "$tagnames"; then 10509 if test ! -f "${ofile}"; then 10510 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 10511echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 10512 fi 10513 10514 if test -z "$LTCC"; then 10515 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 10516 if test -z "$LTCC"; then 10517 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 10518echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 10519 else 10520 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 10521echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 10522 fi 10523 fi 10524 if test -z "$LTCFLAGS"; then 10525 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 10526 fi 10527 10528 # Extract list of available tagged configurations in $ofile. 10529 # Note that this assumes the entire list is on one line. 10530 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 10531 10532 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10533 for tagname in $tagnames; do 10534 IFS="$lt_save_ifs" 10535 # Check whether tagname contains only valid characters 10536 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 10537 "") ;; 10538 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 10539echo "$as_me: error: invalid tag name: $tagname" >&2;} 10540 { (exit 1); exit 1; }; } 10541 ;; 10542 esac 10543 10544 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 10545 then 10546 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 10547echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 10548 { (exit 1); exit 1; }; } 10549 fi 10550 10551 # Update the list of available tags. 10552 if test -n "$tagname"; then 10553 echo appending configuration tag \"$tagname\" to $ofile 10554 10555 case $tagname in 10556 CXX) 10557 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 10558 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 10559 (test "X$CXX" != "Xg++"))) ; then 10560 ac_ext=cpp 10561ac_cpp='$CXXCPP $CPPFLAGS' 10562ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10563ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10564ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10565 10566 10567 10568 10569archive_cmds_need_lc_CXX=no 10570allow_undefined_flag_CXX= 10571always_export_symbols_CXX=no 10572archive_expsym_cmds_CXX= 10573export_dynamic_flag_spec_CXX= 10574hardcode_direct_CXX=no 10575hardcode_libdir_flag_spec_CXX= 10576hardcode_libdir_flag_spec_ld_CXX= 10577hardcode_libdir_separator_CXX= 10578hardcode_minus_L_CXX=no 10579hardcode_shlibpath_var_CXX=unsupported 10580hardcode_automatic_CXX=no 10581module_cmds_CXX= 10582module_expsym_cmds_CXX= 10583link_all_deplibs_CXX=unknown 10584old_archive_cmds_CXX=$old_archive_cmds 10585no_undefined_flag_CXX= 10586whole_archive_flag_spec_CXX= 10587enable_shared_with_static_runtimes_CXX=no 10588 10589# Dependencies to place before and after the object being linked: 10590predep_objects_CXX= 10591postdep_objects_CXX= 10592predeps_CXX= 10593postdeps_CXX= 10594compiler_lib_search_path_CXX= 10595 10596# Source file extension for C++ test sources. 10597ac_ext=cpp 10598 10599# Object file extension for compiled C++ test sources. 10600objext=o 10601objext_CXX=$objext 10602 10603# Code to be used in simple compile tests 10604lt_simple_compile_test_code="int some_variable = 0;\n" 10605 10606# Code to be used in simple link tests 10607lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 10608 10609# ltmain only uses $CC for tagged configurations so make sure $CC is set. 10610 10611# If no C compiler was specified, use CC. 10612LTCC=${LTCC-"$CC"} 10613 10614# If no C compiler flags were specified, use CFLAGS. 10615LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10616 10617# Allow CC to be a program name with arguments. 10618compiler=$CC 10619 10620 10621# save warnings/boilerplate of simple test code 10622ac_outfile=conftest.$ac_objext 10623printf "$lt_simple_compile_test_code" >conftest.$ac_ext 10624eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10625_lt_compiler_boilerplate=`cat conftest.err` 10626$rm conftest* 10627 10628ac_outfile=conftest.$ac_objext 10629printf "$lt_simple_link_test_code" >conftest.$ac_ext 10630eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10631_lt_linker_boilerplate=`cat conftest.err` 10632$rm conftest* 10633 10634 10635# Allow CC to be a program name with arguments. 10636lt_save_CC=$CC 10637lt_save_LD=$LD 10638lt_save_GCC=$GCC 10639GCC=$GXX 10640lt_save_with_gnu_ld=$with_gnu_ld 10641lt_save_path_LD=$lt_cv_path_LD 10642if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 10643 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 10644else 10645 $as_unset lt_cv_prog_gnu_ld 10646fi 10647if test -n "${lt_cv_path_LDCXX+set}"; then 10648 lt_cv_path_LD=$lt_cv_path_LDCXX 10649else 10650 $as_unset lt_cv_path_LD 10651fi 10652test -z "${LDCXX+set}" || LD=$LDCXX 10653CC=${CXX-"c++"} 10654compiler=$CC 10655compiler_CXX=$CC 10656for cc_temp in $compiler""; do 10657 case $cc_temp in 10658 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10659 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10660 \-*) ;; 10661 *) break;; 10662 esac 10663done 10664cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 10665 10666 10667# We don't want -fno-exception wen compiling C++ code, so set the 10668# no_builtin_flag separately 10669if test "$GXX" = yes; then 10670 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 10671else 10672 lt_prog_compiler_no_builtin_flag_CXX= 10673fi 10674 10675if test "$GXX" = yes; then 10676 # Set up default GNU C++ configuration 10677 10678 10679# Check whether --with-gnu-ld was given. 10680if test "${with_gnu_ld+set}" = set; then 10681 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 10682else 10683 with_gnu_ld=no 10684fi 10685 10686ac_prog=ld 10687if test "$GCC" = yes; then 10688 # Check if gcc -print-prog-name=ld gives a path. 10689 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 10690echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 10691 case $host in 10692 *-*-mingw*) 10693 # gcc leaves a trailing carriage return which upsets mingw 10694 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 10695 *) 10696 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 10697 esac 10698 case $ac_prog in 10699 # Accept absolute paths. 10700 [\\/]* | ?:[\\/]*) 10701 re_direlt='/[^/][^/]*/\.\./' 10702 # Canonicalize the pathname of ld 10703 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 10704 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 10705 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 10706 done 10707 test -z "$LD" && LD="$ac_prog" 10708 ;; 10709 "") 10710 # If it fails, then pretend we aren't using GCC. 10711 ac_prog=ld 10712 ;; 10713 *) 10714 # If it is relative, then search for the first ld in PATH. 10715 with_gnu_ld=unknown 10716 ;; 10717 esac 10718elif test "$with_gnu_ld" = yes; then 10719 { echo "$as_me:$LINENO: checking for GNU ld" >&5 10720echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 10721else 10722 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 10723echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 10724fi 10725if test "${lt_cv_path_LD+set}" = set; then 10726 echo $ECHO_N "(cached) $ECHO_C" >&6 10727else 10728 if test -z "$LD"; then 10729 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10730 for ac_dir in $PATH; do 10731 IFS="$lt_save_ifs" 10732 test -z "$ac_dir" && ac_dir=. 10733 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 10734 lt_cv_path_LD="$ac_dir/$ac_prog" 10735 # Check to see if the program is GNU ld. I'd rather use --version, 10736 # but apparently some variants of GNU ld only accept -v. 10737 # Break only if it was the GNU/non-GNU ld that we prefer. 10738 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 10739 *GNU* | *'with BFD'*) 10740 test "$with_gnu_ld" != no && break 10741 ;; 10742 *) 10743 test "$with_gnu_ld" != yes && break 10744 ;; 10745 esac 10746 fi 10747 done 10748 IFS="$lt_save_ifs" 10749else 10750 lt_cv_path_LD="$LD" # Let the user override the test with a path. 10751fi 10752fi 10753 10754LD="$lt_cv_path_LD" 10755if test -n "$LD"; then 10756 { echo "$as_me:$LINENO: result: $LD" >&5 10757echo "${ECHO_T}$LD" >&6; } 10758else 10759 { echo "$as_me:$LINENO: result: no" >&5 10760echo "${ECHO_T}no" >&6; } 10761fi 10762test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 10763echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 10764 { (exit 1); exit 1; }; } 10765{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 10766echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 10767if test "${lt_cv_prog_gnu_ld+set}" = set; then 10768 echo $ECHO_N "(cached) $ECHO_C" >&6 10769else 10770 # I'd rather use --version here, but apparently some GNU lds only accept -v. 10771case `$LD -v 2>&1 </dev/null` in 10772*GNU* | *'with BFD'*) 10773 lt_cv_prog_gnu_ld=yes 10774 ;; 10775*) 10776 lt_cv_prog_gnu_ld=no 10777 ;; 10778esac 10779fi 10780{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 10781echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 10782with_gnu_ld=$lt_cv_prog_gnu_ld 10783 10784 10785 10786 # Check if GNU C++ uses GNU ld as the underlying linker, since the 10787 # archiving commands below assume that GNU ld is being used. 10788 if test "$with_gnu_ld" = yes; then 10789 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10790 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' 10791 10792 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10793 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10794 10795 # If archive_cmds runs LD, not CC, wlarc should be empty 10796 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 10797 # investigate it a little bit more. (MM) 10798 wlarc='${wl}' 10799 10800 # ancient GNU ld didn't support --whole-archive et. al. 10801 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 10802 grep 'no-whole-archive' > /dev/null; then 10803 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10804 else 10805 whole_archive_flag_spec_CXX= 10806 fi 10807 else 10808 with_gnu_ld=no 10809 wlarc= 10810 10811 # A generic and very simple default shared library creation 10812 # command for GNU C++ for the case where it uses the native 10813 # linker, instead of GNU ld. If possible, this setting should 10814 # overridden to take advantage of the native linker features on 10815 # the platform it is being used on. 10816 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10817 fi 10818 10819 # Commands to make compiler produce verbose output that lists 10820 # what "hidden" libraries, object files and flags are used when 10821 # linking a shared library. 10822 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10823 10824else 10825 GXX=no 10826 with_gnu_ld=no 10827 wlarc= 10828fi 10829 10830# PORTME: fill in a description of your system's C++ link characteristics 10831{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10832echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 10833ld_shlibs_CXX=yes 10834case $host_os in 10835 aix3*) 10836 # FIXME: insert proper C++ library support 10837 ld_shlibs_CXX=no 10838 ;; 10839 aix4* | aix5*) 10840 if test "$host_cpu" = ia64; then 10841 # On IA64, the linker does run time linking by default, so we don't 10842 # have to do anything special. 10843 aix_use_runtimelinking=no 10844 exp_sym_flag='-Bexport' 10845 no_entry_flag="" 10846 else 10847 aix_use_runtimelinking=no 10848 10849 # Test if we are trying to use run time linking or normal 10850 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10851 # need to do runtime linking. 10852 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 10853 for ld_flag in $LDFLAGS; do 10854 case $ld_flag in 10855 *-brtl*) 10856 aix_use_runtimelinking=yes 10857 break 10858 ;; 10859 esac 10860 done 10861 ;; 10862 esac 10863 10864 exp_sym_flag='-bexport' 10865 no_entry_flag='-bnoentry' 10866 fi 10867 10868 # When large executables or shared objects are built, AIX ld can 10869 # have problems creating the table of contents. If linking a library 10870 # or program results in "error TOC overflow" add -mminimal-toc to 10871 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10872 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10873 10874 archive_cmds_CXX='' 10875 hardcode_direct_CXX=yes 10876 hardcode_libdir_separator_CXX=':' 10877 link_all_deplibs_CXX=yes 10878 10879 if test "$GXX" = yes; then 10880 case $host_os in aix4.[012]|aix4.[012].*) 10881 # We only want to do this on AIX 4.2 and lower, the check 10882 # below for broken collect2 doesn't work under 4.3+ 10883 collect2name=`${CC} -print-prog-name=collect2` 10884 if test -f "$collect2name" && \ 10885 strings "$collect2name" | grep resolve_lib_name >/dev/null 10886 then 10887 # We have reworked collect2 10888 hardcode_direct_CXX=yes 10889 else 10890 # We have old collect2 10891 hardcode_direct_CXX=unsupported 10892 # It fails to find uninstalled libraries when the uninstalled 10893 # path is not listed in the libpath. Setting hardcode_minus_L 10894 # to unsupported forces relinking 10895 hardcode_minus_L_CXX=yes 10896 hardcode_libdir_flag_spec_CXX='-L$libdir' 10897 hardcode_libdir_separator_CXX= 10898 fi 10899 ;; 10900 esac 10901 shared_flag='-shared' 10902 if test "$aix_use_runtimelinking" = yes; then 10903 shared_flag="$shared_flag "'${wl}-G' 10904 fi 10905 else 10906 # not using gcc 10907 if test "$host_cpu" = ia64; then 10908 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10909 # chokes on -Wl,-G. The following line is correct: 10910 shared_flag='-G' 10911 else 10912 if test "$aix_use_runtimelinking" = yes; then 10913 shared_flag='${wl}-G' 10914 else 10915 shared_flag='${wl}-bM:SRE' 10916 fi 10917 fi 10918 fi 10919 10920 # It seems that -bexpall does not export symbols beginning with 10921 # underscore (_), so it is better to generate a list of symbols to export. 10922 always_export_symbols_CXX=yes 10923 if test "$aix_use_runtimelinking" = yes; then 10924 # Warning - without using the other runtime loading flags (-brtl), 10925 # -berok will link without error, but may produce a broken library. 10926 allow_undefined_flag_CXX='-berok' 10927 # Determine the default libpath from the value encoded in an empty executable. 10928 cat >conftest.$ac_ext <<_ACEOF 10929/* confdefs.h. */ 10930_ACEOF 10931cat confdefs.h >>conftest.$ac_ext 10932cat >>conftest.$ac_ext <<_ACEOF 10933/* end confdefs.h. */ 10934 10935int 10936main () 10937{ 10938 10939 ; 10940 return 0; 10941} 10942_ACEOF 10943rm -f conftest.$ac_objext conftest$ac_exeext 10944if { (ac_try="$ac_link" 10945case "(($ac_try" in 10946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10947 *) ac_try_echo=$ac_try;; 10948esac 10949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10950 (eval "$ac_link") 2>conftest.er1 10951 ac_status=$? 10952 grep -v '^ *+' conftest.er1 >conftest.err 10953 rm -f conftest.er1 10954 cat conftest.err >&5 10955 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10956 (exit $ac_status); } && { 10957 test -z "$ac_cxx_werror_flag" || 10958 test ! -s conftest.err 10959 } && test -s conftest$ac_exeext && 10960 $as_test_x conftest$ac_exeext; then 10961 10962aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10963}'` 10964# Check for a 64-bit object if we didn't find anything. 10965if 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; } 10966}'`; fi 10967else 10968 echo "$as_me: failed program was:" >&5 10969sed 's/^/| /' conftest.$ac_ext >&5 10970 10971 10972fi 10973 10974rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10975 conftest$ac_exeext conftest.$ac_ext 10976if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10977 10978 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10979 10980 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" 10981 else 10982 if test "$host_cpu" = ia64; then 10983 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 10984 allow_undefined_flag_CXX="-z nodefs" 10985 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" 10986 else 10987 # Determine the default libpath from the value encoded in an empty executable. 10988 cat >conftest.$ac_ext <<_ACEOF 10989/* confdefs.h. */ 10990_ACEOF 10991cat confdefs.h >>conftest.$ac_ext 10992cat >>conftest.$ac_ext <<_ACEOF 10993/* end confdefs.h. */ 10994 10995int 10996main () 10997{ 10998 10999 ; 11000 return 0; 11001} 11002_ACEOF 11003rm -f conftest.$ac_objext conftest$ac_exeext 11004if { (ac_try="$ac_link" 11005case "(($ac_try" in 11006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11007 *) ac_try_echo=$ac_try;; 11008esac 11009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11010 (eval "$ac_link") 2>conftest.er1 11011 ac_status=$? 11012 grep -v '^ *+' conftest.er1 >conftest.err 11013 rm -f conftest.er1 11014 cat conftest.err >&5 11015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11016 (exit $ac_status); } && { 11017 test -z "$ac_cxx_werror_flag" || 11018 test ! -s conftest.err 11019 } && test -s conftest$ac_exeext && 11020 $as_test_x conftest$ac_exeext; then 11021 11022aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11023}'` 11024# Check for a 64-bit object if we didn't find anything. 11025if 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; } 11026}'`; fi 11027else 11028 echo "$as_me: failed program was:" >&5 11029sed 's/^/| /' conftest.$ac_ext >&5 11030 11031 11032fi 11033 11034rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11035 conftest$ac_exeext conftest.$ac_ext 11036if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11037 11038 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11039 # Warning - without using the other run time loading flags, 11040 # -berok will link without error, but may produce a broken library. 11041 no_undefined_flag_CXX=' ${wl}-bernotok' 11042 allow_undefined_flag_CXX=' ${wl}-berok' 11043 # Exported symbols can be pulled into shared objects from archives 11044 whole_archive_flag_spec_CXX='$convenience' 11045 archive_cmds_need_lc_CXX=yes 11046 # This is similar to how AIX traditionally builds its shared libraries. 11047 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' 11048 fi 11049 fi 11050 ;; 11051 11052 beos*) 11053 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11054 allow_undefined_flag_CXX=unsupported 11055 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11056 # support --undefined. This deserves some investigation. FIXME 11057 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11058 else 11059 ld_shlibs_CXX=no 11060 fi 11061 ;; 11062 11063 chorus*) 11064 case $cc_basename in 11065 *) 11066 # FIXME: insert proper C++ library support 11067 ld_shlibs_CXX=no 11068 ;; 11069 esac 11070 ;; 11071 11072 cygwin* | mingw* | pw32*) 11073 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11074 # as there is no search path for DLLs. 11075 hardcode_libdir_flag_spec_CXX='-L$libdir' 11076 allow_undefined_flag_CXX=unsupported 11077 always_export_symbols_CXX=no 11078 enable_shared_with_static_runtimes_CXX=yes 11079 11080 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11081 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' 11082 # If the export-symbols file already is a .def file (1st line 11083 # is EXPORTS), use it as is; otherwise, prepend... 11084 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11085 cp $export_symbols $output_objdir/$soname.def; 11086 else 11087 echo EXPORTS > $output_objdir/$soname.def; 11088 cat $export_symbols >> $output_objdir/$soname.def; 11089 fi~ 11090 $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' 11091 else 11092 ld_shlibs_CXX=no 11093 fi 11094 ;; 11095 darwin* | rhapsody*) 11096 case $host_os in 11097 rhapsody* | darwin1.[012]) 11098 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 11099 ;; 11100 *) # Darwin 1.3 on 11101 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 11102 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11103 else 11104 case ${MACOSX_DEPLOYMENT_TARGET} in 11105 10.[012]) 11106 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11107 ;; 11108 10.*) 11109 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 11110 ;; 11111 esac 11112 fi 11113 ;; 11114 esac 11115 archive_cmds_need_lc_CXX=no 11116 hardcode_direct_CXX=no 11117 hardcode_automatic_CXX=yes 11118 hardcode_shlibpath_var_CXX=unsupported 11119 whole_archive_flag_spec_CXX='' 11120 link_all_deplibs_CXX=yes 11121 11122 if test "$GXX" = yes ; then 11123 lt_int_apple_cc_single_mod=no 11124 output_verbose_link_cmd='echo' 11125 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 11126 lt_int_apple_cc_single_mod=yes 11127 fi 11128 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11129 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 11130 else 11131 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' 11132 fi 11133 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11134 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11135 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11136 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}' 11137 else 11138 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}' 11139 fi 11140 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}' 11141 else 11142 case $cc_basename in 11143 xlc*) 11144 output_verbose_link_cmd='echo' 11145 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' 11146 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11147 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11148 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}' 11149 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}' 11150 ;; 11151 *) 11152 ld_shlibs_CXX=no 11153 ;; 11154 esac 11155 fi 11156 ;; 11157 11158 dgux*) 11159 case $cc_basename in 11160 ec++*) 11161 # FIXME: insert proper C++ library support 11162 ld_shlibs_CXX=no 11163 ;; 11164 ghcx*) 11165 # Green Hills C++ Compiler 11166 # FIXME: insert proper C++ library support 11167 ld_shlibs_CXX=no 11168 ;; 11169 *) 11170 # FIXME: insert proper C++ library support 11171 ld_shlibs_CXX=no 11172 ;; 11173 esac 11174 ;; 11175 freebsd[12]*) 11176 # C++ shared libraries reported to be fairly broken before switch to ELF 11177 ld_shlibs_CXX=no 11178 ;; 11179 freebsd-elf*) 11180 archive_cmds_need_lc_CXX=no 11181 ;; 11182 freebsd* | kfreebsd*-gnu | dragonfly*) 11183 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11184 # conventions 11185 ld_shlibs_CXX=yes 11186 ;; 11187 gnu*) 11188 ;; 11189 hpux9*) 11190 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11191 hardcode_libdir_separator_CXX=: 11192 export_dynamic_flag_spec_CXX='${wl}-E' 11193 hardcode_direct_CXX=yes 11194 hardcode_minus_L_CXX=yes # Not in the search PATH, 11195 # but as the default 11196 # location of the library. 11197 11198 case $cc_basename in 11199 CC*) 11200 # FIXME: insert proper C++ library support 11201 ld_shlibs_CXX=no 11202 ;; 11203 aCC*) 11204 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' 11205 # Commands to make compiler produce verbose output that lists 11206 # what "hidden" libraries, object files and flags are used when 11207 # linking a shared library. 11208 # 11209 # There doesn't appear to be a way to prevent this compiler from 11210 # explicitly linking system object files so we need to strip them 11211 # from the output so that they don't get included in the library 11212 # dependencies. 11213 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' 11214 ;; 11215 *) 11216 if test "$GXX" = yes; then 11217 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' 11218 else 11219 # FIXME: insert proper C++ library support 11220 ld_shlibs_CXX=no 11221 fi 11222 ;; 11223 esac 11224 ;; 11225 hpux10*|hpux11*) 11226 if test $with_gnu_ld = no; then 11227 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11228 hardcode_libdir_separator_CXX=: 11229 11230 case $host_cpu in 11231 hppa*64*|ia64*) 11232 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 11233 ;; 11234 *) 11235 export_dynamic_flag_spec_CXX='${wl}-E' 11236 ;; 11237 esac 11238 fi 11239 case $host_cpu in 11240 hppa*64*|ia64*) 11241 hardcode_direct_CXX=no 11242 hardcode_shlibpath_var_CXX=no 11243 ;; 11244 *) 11245 hardcode_direct_CXX=yes 11246 hardcode_minus_L_CXX=yes # Not in the search PATH, 11247 # but as the default 11248 # location of the library. 11249 ;; 11250 esac 11251 11252 case $cc_basename in 11253 CC*) 11254 # FIXME: insert proper C++ library support 11255 ld_shlibs_CXX=no 11256 ;; 11257 aCC*) 11258 case $host_cpu in 11259 hppa*64*) 11260 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11261 ;; 11262 ia64*) 11263 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11264 ;; 11265 *) 11266 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11267 ;; 11268 esac 11269 # Commands to make compiler produce verbose output that lists 11270 # what "hidden" libraries, object files and flags are used when 11271 # linking a shared library. 11272 # 11273 # There doesn't appear to be a way to prevent this compiler from 11274 # explicitly linking system object files so we need to strip them 11275 # from the output so that they don't get included in the library 11276 # dependencies. 11277 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' 11278 ;; 11279 *) 11280 if test "$GXX" = yes; then 11281 if test $with_gnu_ld = no; then 11282 case $host_cpu in 11283 hppa*64*) 11284 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11285 ;; 11286 ia64*) 11287 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11288 ;; 11289 *) 11290 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' 11291 ;; 11292 esac 11293 fi 11294 else 11295 # FIXME: insert proper C++ library support 11296 ld_shlibs_CXX=no 11297 fi 11298 ;; 11299 esac 11300 ;; 11301 interix3*) 11302 hardcode_direct_CXX=no 11303 hardcode_shlibpath_var_CXX=no 11304 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11305 export_dynamic_flag_spec_CXX='${wl}-E' 11306 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11307 # Instead, shared libraries are loaded at an image base (0x10000000 by 11308 # default) and relocated if they conflict, which is a slow very memory 11309 # consuming and fragmenting process. To avoid this, we pick a random, 11310 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11311 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11312 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' 11313 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' 11314 ;; 11315 irix5* | irix6*) 11316 case $cc_basename in 11317 CC*) 11318 # SGI C++ 11319 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' 11320 11321 # Archives containing C++ object files must be created using 11322 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11323 # necessary to make sure instantiated templates are included 11324 # in the archive. 11325 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11326 ;; 11327 *) 11328 if test "$GXX" = yes; then 11329 if test "$with_gnu_ld" = no; then 11330 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' 11331 else 11332 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' 11333 fi 11334 fi 11335 link_all_deplibs_CXX=yes 11336 ;; 11337 esac 11338 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11339 hardcode_libdir_separator_CXX=: 11340 ;; 11341 linux*) 11342 case $cc_basename in 11343 KCC*) 11344 # Kuck and Associates, Inc. (KAI) C++ Compiler 11345 11346 # KCC will only create a shared library if the output file 11347 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11348 # to its proper name (with version) after linking. 11349 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' 11350 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' 11351 # Commands to make compiler produce verbose output that lists 11352 # what "hidden" libraries, object files and flags are used when 11353 # linking a shared library. 11354 # 11355 # There doesn't appear to be a way to prevent this compiler from 11356 # explicitly linking system object files so we need to strip them 11357 # from the output so that they don't get included in the library 11358 # dependencies. 11359 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' 11360 11361 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 11362 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11363 11364 # Archives containing C++ object files must be created using 11365 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11366 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11367 ;; 11368 icpc*) 11369 # Intel C++ 11370 with_gnu_ld=yes 11371 # version 8.0 and above of icpc choke on multiply defined symbols 11372 # if we add $predep_objects and $postdep_objects, however 7.1 and 11373 # earlier do not add the objects themselves. 11374 case `$CC -V 2>&1` in 11375 *"Version 7."*) 11376 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11377 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' 11378 ;; 11379 *) # Version 8.0 or newer 11380 tmp_idyn= 11381 case $host_cpu in 11382 ia64*) tmp_idyn=' -i_dynamic';; 11383 esac 11384 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11385 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' 11386 ;; 11387 esac 11388 archive_cmds_need_lc_CXX=no 11389 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11390 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11391 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11392 ;; 11393 pgCC*) 11394 # Portland Group C++ compiler 11395 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 11396 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' 11397 11398 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11399 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11400 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' 11401 ;; 11402 cxx*) 11403 # Compaq C++ 11404 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11405 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' 11406 11407 runpath_var=LD_RUN_PATH 11408 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11409 hardcode_libdir_separator_CXX=: 11410 11411 # Commands to make compiler produce verbose output that lists 11412 # what "hidden" libraries, object files and flags are used when 11413 # linking a shared library. 11414 # 11415 # There doesn't appear to be a way to prevent this compiler from 11416 # explicitly linking system object files so we need to strip them 11417 # from the output so that they don't get included in the library 11418 # dependencies. 11419 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' 11420 ;; 11421 esac 11422 ;; 11423 lynxos*) 11424 # FIXME: insert proper C++ library support 11425 ld_shlibs_CXX=no 11426 ;; 11427 m88k*) 11428 # FIXME: insert proper C++ library support 11429 ld_shlibs_CXX=no 11430 ;; 11431 mvs*) 11432 case $cc_basename in 11433 cxx*) 11434 # FIXME: insert proper C++ library support 11435 ld_shlibs_CXX=no 11436 ;; 11437 *) 11438 # FIXME: insert proper C++ library support 11439 ld_shlibs_CXX=no 11440 ;; 11441 esac 11442 ;; 11443 netbsd*) 11444 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11445 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 11446 wlarc= 11447 hardcode_libdir_flag_spec_CXX='-R$libdir' 11448 hardcode_direct_CXX=yes 11449 hardcode_shlibpath_var_CXX=no 11450 fi 11451 # Workaround some broken pre-1.5 toolchains 11452 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 11453 ;; 11454 openbsd2*) 11455 # C++ shared libraries are fairly broken 11456 ld_shlibs_CXX=no 11457 ;; 11458 openbsd*) 11459 hardcode_direct_CXX=yes 11460 hardcode_shlibpath_var_CXX=no 11461 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11462 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11463 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11464 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 11465 export_dynamic_flag_spec_CXX='${wl}-E' 11466 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11467 fi 11468 output_verbose_link_cmd='echo' 11469 ;; 11470 osf3*) 11471 case $cc_basename in 11472 KCC*) 11473 # Kuck and Associates, Inc. (KAI) C++ Compiler 11474 11475 # KCC will only create a shared library if the output file 11476 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11477 # to its proper name (with version) after linking. 11478 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' 11479 11480 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11481 hardcode_libdir_separator_CXX=: 11482 11483 # Archives containing C++ object files must be created using 11484 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11485 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11486 11487 ;; 11488 RCC*) 11489 # Rational C++ 2.4.1 11490 # FIXME: insert proper C++ library support 11491 ld_shlibs_CXX=no 11492 ;; 11493 cxx*) 11494 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11495 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' 11496 11497 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11498 hardcode_libdir_separator_CXX=: 11499 11500 # Commands to make compiler produce verbose output that lists 11501 # what "hidden" libraries, object files and flags are used when 11502 # linking a shared library. 11503 # 11504 # There doesn't appear to be a way to prevent this compiler from 11505 # explicitly linking system object files so we need to strip them 11506 # from the output so that they don't get included in the library 11507 # dependencies. 11508 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' 11509 ;; 11510 *) 11511 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11512 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11513 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' 11514 11515 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11516 hardcode_libdir_separator_CXX=: 11517 11518 # Commands to make compiler produce verbose output that lists 11519 # what "hidden" libraries, object files and flags are used when 11520 # linking a shared library. 11521 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11522 11523 else 11524 # FIXME: insert proper C++ library support 11525 ld_shlibs_CXX=no 11526 fi 11527 ;; 11528 esac 11529 ;; 11530 osf4* | osf5*) 11531 case $cc_basename in 11532 KCC*) 11533 # Kuck and Associates, Inc. (KAI) C++ Compiler 11534 11535 # KCC will only create a shared library if the output file 11536 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11537 # to its proper name (with version) after linking. 11538 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' 11539 11540 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11541 hardcode_libdir_separator_CXX=: 11542 11543 # Archives containing C++ object files must be created using 11544 # the KAI C++ compiler. 11545 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 11546 ;; 11547 RCC*) 11548 # Rational C++ 2.4.1 11549 # FIXME: insert proper C++ library support 11550 ld_shlibs_CXX=no 11551 ;; 11552 cxx*) 11553 allow_undefined_flag_CXX=' -expect_unresolved \*' 11554 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' 11555 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 11556 echo "-hidden">> $lib.exp~ 11557 $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~ 11558 $rm $lib.exp' 11559 11560 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11561 hardcode_libdir_separator_CXX=: 11562 11563 # Commands to make compiler produce verbose output that lists 11564 # what "hidden" libraries, object files and flags are used when 11565 # linking a shared library. 11566 # 11567 # There doesn't appear to be a way to prevent this compiler from 11568 # explicitly linking system object files so we need to strip them 11569 # from the output so that they don't get included in the library 11570 # dependencies. 11571 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' 11572 ;; 11573 *) 11574 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11575 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11576 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' 11577 11578 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11579 hardcode_libdir_separator_CXX=: 11580 11581 # Commands to make compiler produce verbose output that lists 11582 # what "hidden" libraries, object files and flags are used when 11583 # linking a shared library. 11584 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11585 11586 else 11587 # FIXME: insert proper C++ library support 11588 ld_shlibs_CXX=no 11589 fi 11590 ;; 11591 esac 11592 ;; 11593 psos*) 11594 # FIXME: insert proper C++ library support 11595 ld_shlibs_CXX=no 11596 ;; 11597 sunos4*) 11598 case $cc_basename in 11599 CC*) 11600 # Sun C++ 4.x 11601 # FIXME: insert proper C++ library support 11602 ld_shlibs_CXX=no 11603 ;; 11604 lcc*) 11605 # Lucid 11606 # FIXME: insert proper C++ library support 11607 ld_shlibs_CXX=no 11608 ;; 11609 *) 11610 # FIXME: insert proper C++ library support 11611 ld_shlibs_CXX=no 11612 ;; 11613 esac 11614 ;; 11615 solaris*) 11616 case $cc_basename in 11617 CC*) 11618 # Sun C++ 4.2, 5.x and Centerline C++ 11619 archive_cmds_need_lc_CXX=yes 11620 no_undefined_flag_CXX=' -zdefs' 11621 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11622 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11623 $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' 11624 11625 hardcode_libdir_flag_spec_CXX='-R$libdir' 11626 hardcode_shlibpath_var_CXX=no 11627 case $host_os in 11628 solaris2.[0-5] | solaris2.[0-5].*) ;; 11629 *) 11630 # The C++ compiler is used as linker so we must use $wl 11631 # flag to pass the commands to the underlying system 11632 # linker. We must also pass each convience library through 11633 # to the system linker between allextract/defaultextract. 11634 # The C++ compiler will combine linker options so we 11635 # cannot just pass the convience library names through 11636 # without $wl. 11637 # Supported since Solaris 2.6 (maybe 2.5.1?) 11638 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' 11639 ;; 11640 esac 11641 link_all_deplibs_CXX=yes 11642 11643 output_verbose_link_cmd='echo' 11644 11645 # Archives containing C++ object files must be created using 11646 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11647 # necessary to make sure instantiated templates are included 11648 # in the archive. 11649 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11650 ;; 11651 gcx*) 11652 # Green Hills C++ Compiler 11653 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11654 11655 # The C++ compiler must be used to create the archive. 11656 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 11657 ;; 11658 *) 11659 # GNU C++ compiler with Solaris linker 11660 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11661 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 11662 if $CC --version | grep -v '^2\.7' > /dev/null; then 11663 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11664 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11665 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11666 11667 # Commands to make compiler produce verbose output that lists 11668 # what "hidden" libraries, object files and flags are used when 11669 # linking a shared library. 11670 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11671 else 11672 # g++ 2.7 appears to require `-G' NOT `-shared' on this 11673 # platform. 11674 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11675 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11676 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11677 11678 # Commands to make compiler produce verbose output that lists 11679 # what "hidden" libraries, object files and flags are used when 11680 # linking a shared library. 11681 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11682 fi 11683 11684 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 11685 fi 11686 ;; 11687 esac 11688 ;; 11689 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11690 no_undefined_flag_CXX='${wl}-z,text' 11691 archive_cmds_need_lc_CXX=no 11692 hardcode_shlibpath_var_CXX=no 11693 runpath_var='LD_RUN_PATH' 11694 11695 case $cc_basename in 11696 CC*) 11697 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11698 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11699 ;; 11700 *) 11701 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11702 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11703 ;; 11704 esac 11705 ;; 11706 sysv5* | sco3.2v5* | sco5v6*) 11707 # Note: We can NOT use -z defs as we might desire, because we do not 11708 # link with -lc, and that would cause any symbols used from libc to 11709 # always be unresolved, which means just about no library would 11710 # ever link correctly. If we're not using GNU ld we use -z text 11711 # though, which does catch some bad symbols but isn't as heavy-handed 11712 # as -z defs. 11713 # For security reasons, it is highly recommended that you always 11714 # use absolute paths for naming shared libraries, and exclude the 11715 # DT_RUNPATH tag from executables and libraries. But doing so 11716 # requires that you compile everything twice, which is a pain. 11717 # So that behaviour is only enabled if SCOABSPATH is set to a 11718 # non-empty value in the environment. Most likely only useful for 11719 # creating official distributions of packages. 11720 # This is a hack until libtool officially supports absolute path 11721 # names for shared libraries. 11722 no_undefined_flag_CXX='${wl}-z,text' 11723 allow_undefined_flag_CXX='${wl}-z,nodefs' 11724 archive_cmds_need_lc_CXX=no 11725 hardcode_shlibpath_var_CXX=no 11726 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 11727 hardcode_libdir_separator_CXX=':' 11728 link_all_deplibs_CXX=yes 11729 export_dynamic_flag_spec_CXX='${wl}-Bexport' 11730 runpath_var='LD_RUN_PATH' 11731 11732 case $cc_basename in 11733 CC*) 11734 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11735 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11736 ;; 11737 *) 11738 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11739 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11740 ;; 11741 esac 11742 ;; 11743 tandem*) 11744 case $cc_basename in 11745 NCC*) 11746 # NonStop-UX NCC 3.20 11747 # FIXME: insert proper C++ library support 11748 ld_shlibs_CXX=no 11749 ;; 11750 *) 11751 # FIXME: insert proper C++ library support 11752 ld_shlibs_CXX=no 11753 ;; 11754 esac 11755 ;; 11756 vxworks*) 11757 # FIXME: insert proper C++ library support 11758 ld_shlibs_CXX=no 11759 ;; 11760 *) 11761 # FIXME: insert proper C++ library support 11762 ld_shlibs_CXX=no 11763 ;; 11764esac 11765{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11766echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 11767test "$ld_shlibs_CXX" = no && can_build_shared=no 11768 11769GCC_CXX="$GXX" 11770LD_CXX="$LD" 11771 11772 11773cat > conftest.$ac_ext <<EOF 11774class Foo 11775{ 11776public: 11777 Foo (void) { a = 0; } 11778private: 11779 int a; 11780}; 11781EOF 11782 11783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11784 (eval $ac_compile) 2>&5 11785 ac_status=$? 11786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11787 (exit $ac_status); }; then 11788 # Parse the compiler output and extract the necessary 11789 # objects, libraries and library flags. 11790 11791 # Sentinel used to keep track of whether or not we are before 11792 # the conftest object file. 11793 pre_test_object_deps_done=no 11794 11795 # The `*' in the case matches for architectures that use `case' in 11796 # $output_verbose_cmd can trigger glob expansion during the loop 11797 # eval without this substitution. 11798 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 11799 11800 for p in `eval $output_verbose_link_cmd`; do 11801 case $p in 11802 11803 -L* | -R* | -l*) 11804 # Some compilers place space between "-{L,R}" and the path. 11805 # Remove the space. 11806 if test $p = "-L" \ 11807 || test $p = "-R"; then 11808 prev=$p 11809 continue 11810 else 11811 prev= 11812 fi 11813 11814 if test "$pre_test_object_deps_done" = no; then 11815 case $p in 11816 -L* | -R*) 11817 # Internal compiler library paths should come after those 11818 # provided the user. The postdeps already come after the 11819 # user supplied libs so there is no need to process them. 11820 if test -z "$compiler_lib_search_path_CXX"; then 11821 compiler_lib_search_path_CXX="${prev}${p}" 11822 else 11823 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 11824 fi 11825 ;; 11826 # The "-l" case would never come before the object being 11827 # linked, so don't bother handling this case. 11828 esac 11829 else 11830 if test -z "$postdeps_CXX"; then 11831 postdeps_CXX="${prev}${p}" 11832 else 11833 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 11834 fi 11835 fi 11836 ;; 11837 11838 *.$objext) 11839 # This assumes that the test object file only shows up 11840 # once in the compiler output. 11841 if test "$p" = "conftest.$objext"; then 11842 pre_test_object_deps_done=yes 11843 continue 11844 fi 11845 11846 if test "$pre_test_object_deps_done" = no; then 11847 if test -z "$predep_objects_CXX"; then 11848 predep_objects_CXX="$p" 11849 else 11850 predep_objects_CXX="$predep_objects_CXX $p" 11851 fi 11852 else 11853 if test -z "$postdep_objects_CXX"; then 11854 postdep_objects_CXX="$p" 11855 else 11856 postdep_objects_CXX="$postdep_objects_CXX $p" 11857 fi 11858 fi 11859 ;; 11860 11861 *) ;; # Ignore the rest. 11862 11863 esac 11864 done 11865 11866 # Clean up. 11867 rm -f a.out a.exe 11868else 11869 echo "libtool.m4: error: problem compiling CXX test program" 11870fi 11871 11872$rm -f confest.$objext 11873 11874# PORTME: override above test on systems where it is broken 11875case $host_os in 11876interix3*) 11877 # Interix 3.5 installs completely hosed .la files for C++, so rather than 11878 # hack all around it, let's just trust "g++" to DTRT. 11879 predep_objects_CXX= 11880 postdep_objects_CXX= 11881 postdeps_CXX= 11882 ;; 11883 11884solaris*) 11885 case $cc_basename in 11886 CC*) 11887 # Adding this requires a known-good setup of shared libraries for 11888 # Sun compiler versions before 5.6, else PIC objects from an old 11889 # archive will be linked into the output, leading to subtle bugs. 11890 postdeps_CXX='-lCstd -lCrun' 11891 ;; 11892 esac 11893 ;; 11894esac 11895 11896 11897case " $postdeps_CXX " in 11898*" -lc "*) archive_cmds_need_lc_CXX=no ;; 11899esac 11900 11901lt_prog_compiler_wl_CXX= 11902lt_prog_compiler_pic_CXX= 11903lt_prog_compiler_static_CXX= 11904 11905{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 11906echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 11907 11908 # C++ specific cases for pic, static, wl, etc. 11909 if test "$GXX" = yes; then 11910 lt_prog_compiler_wl_CXX='-Wl,' 11911 lt_prog_compiler_static_CXX='-static' 11912 11913 case $host_os in 11914 aix*) 11915 # All AIX code is PIC. 11916 if test "$host_cpu" = ia64; then 11917 # AIX 5 now supports IA64 processor 11918 lt_prog_compiler_static_CXX='-Bstatic' 11919 fi 11920 ;; 11921 amigaos*) 11922 # FIXME: we need at least 68020 code to build shared libraries, but 11923 # adding the `-m68020' flag to GCC prevents building anything better, 11924 # like `-m68040'. 11925 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 11926 ;; 11927 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 11928 # PIC is the default for these OSes. 11929 ;; 11930 mingw* | os2* | pw32*) 11931 # This hack is so that the source file can tell whether it is being 11932 # built for inclusion in a dll (and should export symbols for example). 11933 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 11934 ;; 11935 darwin* | rhapsody*) 11936 # PIC is the default on this platform 11937 # Common symbols not allowed in MH_DYLIB files 11938 lt_prog_compiler_pic_CXX='-fno-common' 11939 ;; 11940 *djgpp*) 11941 # DJGPP does not support shared libraries at all 11942 lt_prog_compiler_pic_CXX= 11943 ;; 11944 interix3*) 11945 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 11946 # Instead, we relocate shared libraries at runtime. 11947 ;; 11948 sysv4*MP*) 11949 if test -d /usr/nec; then 11950 lt_prog_compiler_pic_CXX=-Kconform_pic 11951 fi 11952 ;; 11953 hpux*) 11954 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11955 # not for PA HP-UX. 11956 case $host_cpu in 11957 hppa*64*|ia64*) 11958 ;; 11959 *) 11960 lt_prog_compiler_pic_CXX='-fPIC' 11961 ;; 11962 esac 11963 ;; 11964 *) 11965 lt_prog_compiler_pic_CXX='-fPIC' 11966 ;; 11967 esac 11968 else 11969 case $host_os in 11970 aix4* | aix5*) 11971 # All AIX code is PIC. 11972 if test "$host_cpu" = ia64; then 11973 # AIX 5 now supports IA64 processor 11974 lt_prog_compiler_static_CXX='-Bstatic' 11975 else 11976 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 11977 fi 11978 ;; 11979 chorus*) 11980 case $cc_basename in 11981 cxch68*) 11982 # Green Hills C++ Compiler 11983 # _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" 11984 ;; 11985 esac 11986 ;; 11987 darwin*) 11988 # PIC is the default on this platform 11989 # Common symbols not allowed in MH_DYLIB files 11990 case $cc_basename in 11991 xlc*) 11992 lt_prog_compiler_pic_CXX='-qnocommon' 11993 lt_prog_compiler_wl_CXX='-Wl,' 11994 ;; 11995 esac 11996 ;; 11997 dgux*) 11998 case $cc_basename in 11999 ec++*) 12000 lt_prog_compiler_pic_CXX='-KPIC' 12001 ;; 12002 ghcx*) 12003 # Green Hills C++ Compiler 12004 lt_prog_compiler_pic_CXX='-pic' 12005 ;; 12006 *) 12007 ;; 12008 esac 12009 ;; 12010 freebsd* | kfreebsd*-gnu | dragonfly*) 12011 # FreeBSD uses GNU C++ 12012 ;; 12013 hpux9* | hpux10* | hpux11*) 12014 case $cc_basename in 12015 CC*) 12016 lt_prog_compiler_wl_CXX='-Wl,' 12017 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12018 if test "$host_cpu" != ia64; then 12019 lt_prog_compiler_pic_CXX='+Z' 12020 fi 12021 ;; 12022 aCC*) 12023 lt_prog_compiler_wl_CXX='-Wl,' 12024 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12025 case $host_cpu in 12026 hppa*64*|ia64*) 12027 # +Z the default 12028 ;; 12029 *) 12030 lt_prog_compiler_pic_CXX='+Z' 12031 ;; 12032 esac 12033 ;; 12034 *) 12035 ;; 12036 esac 12037 ;; 12038 interix*) 12039 # This is c89, which is MS Visual C++ (no shared libs) 12040 # Anyone wants to do a port? 12041 ;; 12042 irix5* | irix6* | nonstopux*) 12043 case $cc_basename in 12044 CC*) 12045 lt_prog_compiler_wl_CXX='-Wl,' 12046 lt_prog_compiler_static_CXX='-non_shared' 12047 # CC pic flag -KPIC is the default. 12048 ;; 12049 *) 12050 ;; 12051 esac 12052 ;; 12053 linux*) 12054 case $cc_basename in 12055 KCC*) 12056 # KAI C++ Compiler 12057 lt_prog_compiler_wl_CXX='--backend -Wl,' 12058 lt_prog_compiler_pic_CXX='-fPIC' 12059 ;; 12060 icpc* | ecpc*) 12061 # Intel C++ 12062 lt_prog_compiler_wl_CXX='-Wl,' 12063 lt_prog_compiler_pic_CXX='-KPIC' 12064 lt_prog_compiler_static_CXX='-static' 12065 ;; 12066 pgCC*) 12067 # Portland Group C++ compiler. 12068 lt_prog_compiler_wl_CXX='-Wl,' 12069 lt_prog_compiler_pic_CXX='-fpic' 12070 lt_prog_compiler_static_CXX='-Bstatic' 12071 ;; 12072 cxx*) 12073 # Compaq C++ 12074 # Make sure the PIC flag is empty. It appears that all Alpha 12075 # Linux and Compaq Tru64 Unix objects are PIC. 12076 lt_prog_compiler_pic_CXX= 12077 lt_prog_compiler_static_CXX='-non_shared' 12078 ;; 12079 *) 12080 ;; 12081 esac 12082 ;; 12083 lynxos*) 12084 ;; 12085 m88k*) 12086 ;; 12087 mvs*) 12088 case $cc_basename in 12089 cxx*) 12090 lt_prog_compiler_pic_CXX='-W c,exportall' 12091 ;; 12092 *) 12093 ;; 12094 esac 12095 ;; 12096 netbsd*) 12097 ;; 12098 osf3* | osf4* | osf5*) 12099 case $cc_basename in 12100 KCC*) 12101 lt_prog_compiler_wl_CXX='--backend -Wl,' 12102 ;; 12103 RCC*) 12104 # Rational C++ 2.4.1 12105 lt_prog_compiler_pic_CXX='-pic' 12106 ;; 12107 cxx*) 12108 # Digital/Compaq C++ 12109 lt_prog_compiler_wl_CXX='-Wl,' 12110 # Make sure the PIC flag is empty. It appears that all Alpha 12111 # Linux and Compaq Tru64 Unix objects are PIC. 12112 lt_prog_compiler_pic_CXX= 12113 lt_prog_compiler_static_CXX='-non_shared' 12114 ;; 12115 *) 12116 ;; 12117 esac 12118 ;; 12119 psos*) 12120 ;; 12121 solaris*) 12122 case $cc_basename in 12123 CC*) 12124 # Sun C++ 4.2, 5.x and Centerline C++ 12125 lt_prog_compiler_pic_CXX='-KPIC' 12126 lt_prog_compiler_static_CXX='-Bstatic' 12127 lt_prog_compiler_wl_CXX='-Qoption ld ' 12128 ;; 12129 gcx*) 12130 # Green Hills C++ Compiler 12131 lt_prog_compiler_pic_CXX='-PIC' 12132 ;; 12133 *) 12134 ;; 12135 esac 12136 ;; 12137 sunos4*) 12138 case $cc_basename in 12139 CC*) 12140 # Sun C++ 4.x 12141 lt_prog_compiler_pic_CXX='-pic' 12142 lt_prog_compiler_static_CXX='-Bstatic' 12143 ;; 12144 lcc*) 12145 # Lucid 12146 lt_prog_compiler_pic_CXX='-pic' 12147 ;; 12148 *) 12149 ;; 12150 esac 12151 ;; 12152 tandem*) 12153 case $cc_basename in 12154 NCC*) 12155 # NonStop-UX NCC 3.20 12156 lt_prog_compiler_pic_CXX='-KPIC' 12157 ;; 12158 *) 12159 ;; 12160 esac 12161 ;; 12162 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12163 case $cc_basename in 12164 CC*) 12165 lt_prog_compiler_wl_CXX='-Wl,' 12166 lt_prog_compiler_pic_CXX='-KPIC' 12167 lt_prog_compiler_static_CXX='-Bstatic' 12168 ;; 12169 esac 12170 ;; 12171 vxworks*) 12172 ;; 12173 *) 12174 lt_prog_compiler_can_build_shared_CXX=no 12175 ;; 12176 esac 12177 fi 12178 12179{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12180echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } 12181 12182# 12183# Check to make sure the PIC flag actually works. 12184# 12185if test -n "$lt_prog_compiler_pic_CXX"; then 12186 12187{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12188echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } 12189if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 12190 echo $ECHO_N "(cached) $ECHO_C" >&6 12191else 12192 lt_prog_compiler_pic_works_CXX=no 12193 ac_outfile=conftest.$ac_objext 12194 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12195 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12196 # Insert the option either (1) after the last *FLAGS variable, or 12197 # (2) before a word containing "conftest.", or (3) at the end. 12198 # Note that $ac_compile itself does not contain backslashes and begins 12199 # with a dollar sign (not a hyphen), so the echo should work correctly. 12200 # The option is referenced via a variable to avoid confusing sed. 12201 lt_compile=`echo "$ac_compile" | $SED \ 12202 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12203 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12204 -e 's:$: $lt_compiler_flag:'` 12205 (eval echo "\"\$as_me:12205: $lt_compile\"" >&5) 12206 (eval "$lt_compile" 2>conftest.err) 12207 ac_status=$? 12208 cat conftest.err >&5 12209 echo "$as_me:12209: \$? = $ac_status" >&5 12210 if (exit $ac_status) && test -s "$ac_outfile"; then 12211 # The compiler can only warn and ignore the option if not recognized 12212 # So say no if there are warnings other than the usual output. 12213 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12214 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12215 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12216 lt_prog_compiler_pic_works_CXX=yes 12217 fi 12218 fi 12219 $rm conftest* 12220 12221fi 12222{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 12223echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } 12224 12225if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 12226 case $lt_prog_compiler_pic_CXX in 12227 "" | " "*) ;; 12228 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12229 esac 12230else 12231 lt_prog_compiler_pic_CXX= 12232 lt_prog_compiler_can_build_shared_CXX=no 12233fi 12234 12235fi 12236case $host_os in 12237 # For platforms which do not support PIC, -DPIC is meaningless: 12238 *djgpp*) 12239 lt_prog_compiler_pic_CXX= 12240 ;; 12241 *) 12242 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12243 ;; 12244esac 12245 12246# 12247# Check to make sure the static flag actually works. 12248# 12249wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 12250{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12251echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 12252if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 12253 echo $ECHO_N "(cached) $ECHO_C" >&6 12254else 12255 lt_prog_compiler_static_works_CXX=no 12256 save_LDFLAGS="$LDFLAGS" 12257 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12258 printf "$lt_simple_link_test_code" > conftest.$ac_ext 12259 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12260 # The linker can only warn and ignore the option if not recognized 12261 # So say no if there are warnings 12262 if test -s conftest.err; then 12263 # Append any errors to the config.log. 12264 cat conftest.err 1>&5 12265 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 12266 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12267 if diff conftest.exp conftest.er2 >/dev/null; then 12268 lt_prog_compiler_static_works_CXX=yes 12269 fi 12270 else 12271 lt_prog_compiler_static_works_CXX=yes 12272 fi 12273 fi 12274 $rm conftest* 12275 LDFLAGS="$save_LDFLAGS" 12276 12277fi 12278{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 12279echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } 12280 12281if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 12282 : 12283else 12284 lt_prog_compiler_static_CXX= 12285fi 12286 12287 12288{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12289echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 12290if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 12291 echo $ECHO_N "(cached) $ECHO_C" >&6 12292else 12293 lt_cv_prog_compiler_c_o_CXX=no 12294 $rm -r conftest 2>/dev/null 12295 mkdir conftest 12296 cd conftest 12297 mkdir out 12298 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12299 12300 lt_compiler_flag="-o out/conftest2.$ac_objext" 12301 # Insert the option either (1) after the last *FLAGS variable, or 12302 # (2) before a word containing "conftest.", or (3) at the end. 12303 # Note that $ac_compile itself does not contain backslashes and begins 12304 # with a dollar sign (not a hyphen), so the echo should work correctly. 12305 lt_compile=`echo "$ac_compile" | $SED \ 12306 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12307 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12308 -e 's:$: $lt_compiler_flag:'` 12309 (eval echo "\"\$as_me:12309: $lt_compile\"" >&5) 12310 (eval "$lt_compile" 2>out/conftest.err) 12311 ac_status=$? 12312 cat out/conftest.err >&5 12313 echo "$as_me:12313: \$? = $ac_status" >&5 12314 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12315 then 12316 # The compiler can only warn and ignore the option if not recognized 12317 # So say no if there are warnings 12318 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 12319 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12320 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12321 lt_cv_prog_compiler_c_o_CXX=yes 12322 fi 12323 fi 12324 chmod u+w . 2>&5 12325 $rm conftest* 12326 # SGI C++ compiler will create directory out/ii_files/ for 12327 # template instantiation 12328 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 12329 $rm out/* && rmdir out 12330 cd .. 12331 rmdir conftest 12332 $rm conftest* 12333 12334fi 12335{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 12336echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } 12337 12338 12339hard_links="nottested" 12340if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 12341 # do not overwrite the value of need_locks provided by the user 12342 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 12343echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 12344 hard_links=yes 12345 $rm conftest* 12346 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12347 touch conftest.a 12348 ln conftest.a conftest.b 2>&5 || hard_links=no 12349 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12350 { echo "$as_me:$LINENO: result: $hard_links" >&5 12351echo "${ECHO_T}$hard_links" >&6; } 12352 if test "$hard_links" = no; then 12353 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12354echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12355 need_locks=warn 12356 fi 12357else 12358 need_locks=no 12359fi 12360 12361{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12362echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 12363 12364 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12365 case $host_os in 12366 aix4* | aix5*) 12367 # If we're using GNU nm, then we don't want the "-C" option. 12368 # -C means demangle to AIX nm, but means don't demangle with GNU nm 12369 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 12370 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' 12371 else 12372 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' 12373 fi 12374 ;; 12375 pw32*) 12376 export_symbols_cmds_CXX="$ltdll_cmds" 12377 ;; 12378 cygwin* | mingw*) 12379 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' 12380 ;; 12381 *) 12382 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12383 ;; 12384 esac 12385 12386{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12387echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12388test "$ld_shlibs_CXX" = no && can_build_shared=no 12389 12390# 12391# Do we need to explicitly link libc? 12392# 12393case "x$archive_cmds_need_lc_CXX" in 12394x|xyes) 12395 # Assume -lc should be added 12396 archive_cmds_need_lc_CXX=yes 12397 12398 if test "$enable_shared" = yes && test "$GCC" = yes; then 12399 case $archive_cmds_CXX in 12400 *'~'*) 12401 # FIXME: we may have to deal with multi-command sequences. 12402 ;; 12403 '$CC '*) 12404 # Test whether the compiler implicitly links with -lc since on some 12405 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12406 # to ld, don't add -lc before -lgcc. 12407 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 12408echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 12409 $rm conftest* 12410 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12411 12412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12413 (eval $ac_compile) 2>&5 12414 ac_status=$? 12415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12416 (exit $ac_status); } 2>conftest.err; then 12417 soname=conftest 12418 lib=conftest 12419 libobjs=conftest.$ac_objext 12420 deplibs= 12421 wl=$lt_prog_compiler_wl_CXX 12422 pic_flag=$lt_prog_compiler_pic_CXX 12423 compiler_flags=-v 12424 linker_flags=-v 12425 verstring= 12426 output_objdir=. 12427 libname=conftest 12428 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 12429 allow_undefined_flag_CXX= 12430 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 12431 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 12432 ac_status=$? 12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12434 (exit $ac_status); } 12435 then 12436 archive_cmds_need_lc_CXX=no 12437 else 12438 archive_cmds_need_lc_CXX=yes 12439 fi 12440 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 12441 else 12442 cat conftest.err 1>&5 12443 fi 12444 $rm conftest* 12445 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 12446echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } 12447 ;; 12448 esac 12449 fi 12450 ;; 12451esac 12452 12453{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 12454echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 12455library_names_spec= 12456libname_spec='lib$name' 12457soname_spec= 12458shrext_cmds=".so" 12459postinstall_cmds= 12460postuninstall_cmds= 12461finish_cmds= 12462finish_eval= 12463shlibpath_var= 12464shlibpath_overrides_runpath=unknown 12465version_type=none 12466dynamic_linker="$host_os ld.so" 12467sys_lib_dlsearch_path_spec="/lib /usr/lib" 12468if test "$GCC" = yes; then 12469 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12470 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 12471 # if the path contains ";" then we assume it to be the separator 12472 # otherwise default to the standard path separator (i.e. ":") - it is 12473 # assumed that no part of a normal pathname contains ";" but that should 12474 # okay in the real world where ";" in dirpaths is itself problematic. 12475 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12476 else 12477 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12478 fi 12479else 12480 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12481fi 12482need_lib_prefix=unknown 12483hardcode_into_libs=no 12484 12485# when you set need_version to no, make sure it does not cause -set_version 12486# flags to be left without arguments 12487need_version=unknown 12488 12489case $host_os in 12490aix3*) 12491 version_type=linux 12492 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12493 shlibpath_var=LIBPATH 12494 12495 # AIX 3 has no versioning support, so we append a major version to the name. 12496 soname_spec='${libname}${release}${shared_ext}$major' 12497 ;; 12498 12499aix4* | aix5*) 12500 version_type=linux 12501 need_lib_prefix=no 12502 need_version=no 12503 hardcode_into_libs=yes 12504 if test "$host_cpu" = ia64; then 12505 # AIX 5 supports IA64 12506 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 12507 shlibpath_var=LD_LIBRARY_PATH 12508 else 12509 # With GCC up to 2.95.x, collect2 would create an import file 12510 # for dependence libraries. The import file would start with 12511 # the line `#! .'. This would cause the generated library to 12512 # depend on `.', always an invalid library. This was fixed in 12513 # development snapshots of GCC prior to 3.0. 12514 case $host_os in 12515 aix4 | aix4.[01] | aix4.[01].*) 12516 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12517 echo ' yes ' 12518 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 12519 : 12520 else 12521 can_build_shared=no 12522 fi 12523 ;; 12524 esac 12525 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 12526 # soname into executable. Probably we can add versioning support to 12527 # collect2, so additional links can be useful in future. 12528 if test "$aix_use_runtimelinking" = yes; then 12529 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12530 # instead of lib<name>.a to let people know that these are not 12531 # typical AIX shared libraries. 12532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12533 else 12534 # We preserve .a as extension for shared libraries through AIX4.2 12535 # and later when we are not doing run time linking. 12536 library_names_spec='${libname}${release}.a $libname.a' 12537 soname_spec='${libname}${release}${shared_ext}$major' 12538 fi 12539 shlibpath_var=LIBPATH 12540 fi 12541 ;; 12542 12543amigaos*) 12544 library_names_spec='$libname.ixlibrary $libname.a' 12545 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12546 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' 12547 ;; 12548 12549beos*) 12550 library_names_spec='${libname}${shared_ext}' 12551 dynamic_linker="$host_os ld.so" 12552 shlibpath_var=LIBRARY_PATH 12553 ;; 12554 12555bsdi[45]*) 12556 version_type=linux 12557 need_version=no 12558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12559 soname_spec='${libname}${release}${shared_ext}$major' 12560 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12561 shlibpath_var=LD_LIBRARY_PATH 12562 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12563 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12564 # the default ld.so.conf also contains /usr/contrib/lib and 12565 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12566 # libtool to hard-code these into programs 12567 ;; 12568 12569cygwin* | mingw* | pw32*) 12570 version_type=windows 12571 shrext_cmds=".dll" 12572 need_version=no 12573 need_lib_prefix=no 12574 12575 case $GCC,$host_os in 12576 yes,cygwin* | yes,mingw* | yes,pw32*) 12577 library_names_spec='$libname.dll.a' 12578 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12579 postinstall_cmds='base_file=`basename \${file}`~ 12580 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 12581 dldir=$destdir/`dirname \$dlpath`~ 12582 test -d \$dldir || mkdir -p \$dldir~ 12583 $install_prog $dir/$dlname \$dldir/$dlname~ 12584 chmod a+x \$dldir/$dlname' 12585 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12586 dlpath=$dir/\$dldll~ 12587 $rm \$dlpath' 12588 shlibpath_overrides_runpath=yes 12589 12590 case $host_os in 12591 cygwin*) 12592 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12593 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12594 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 12595 ;; 12596 mingw*) 12597 # MinGW DLLs use traditional 'lib' prefix 12598 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12599 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12600 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 12601 # It is most probably a Windows format PATH printed by 12602 # mingw gcc, but we are running on Cygwin. Gcc prints its search 12603 # path with ; separators, and with drive letters. We can handle the 12604 # drive letters (cygwin fileutils understands them), so leave them, 12605 # especially as we might pass files found there to a mingw objdump, 12606 # which wouldn't understand a cygwinified path. Ahh. 12607 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12608 else 12609 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12610 fi 12611 ;; 12612 pw32*) 12613 # pw32 DLLs use 'pw' prefix rather than 'lib' 12614 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12615 ;; 12616 esac 12617 ;; 12618 12619 *) 12620 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 12621 ;; 12622 esac 12623 dynamic_linker='Win32 ld.exe' 12624 # FIXME: first we should search . and the directory the executable is in 12625 shlibpath_var=PATH 12626 ;; 12627 12628darwin* | rhapsody*) 12629 dynamic_linker="$host_os dyld" 12630 version_type=darwin 12631 need_lib_prefix=no 12632 need_version=no 12633 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 12634 soname_spec='${libname}${release}${major}$shared_ext' 12635 shlibpath_overrides_runpath=yes 12636 shlibpath_var=DYLD_LIBRARY_PATH 12637 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12638 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 12639 if test "$GCC" = yes; then 12640 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"` 12641 else 12642 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 12643 fi 12644 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12645 ;; 12646 12647dgux*) 12648 version_type=linux 12649 need_lib_prefix=no 12650 need_version=no 12651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 12652 soname_spec='${libname}${release}${shared_ext}$major' 12653 shlibpath_var=LD_LIBRARY_PATH 12654 ;; 12655 12656freebsd1*) 12657 dynamic_linker=no 12658 ;; 12659 12660kfreebsd*-gnu) 12661 version_type=linux 12662 need_lib_prefix=no 12663 need_version=no 12664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12665 soname_spec='${libname}${release}${shared_ext}$major' 12666 shlibpath_var=LD_LIBRARY_PATH 12667 shlibpath_overrides_runpath=no 12668 hardcode_into_libs=yes 12669 dynamic_linker='GNU ld.so' 12670 ;; 12671 12672freebsd* | dragonfly*) 12673 # DragonFly does not have aout. When/if they implement a new 12674 # versioning mechanism, adjust this. 12675 if test -x /usr/bin/objformat; then 12676 objformat=`/usr/bin/objformat` 12677 else 12678 case $host_os in 12679 freebsd[123]*) objformat=aout ;; 12680 *) objformat=elf ;; 12681 esac 12682 fi 12683 version_type=freebsd-$objformat 12684 case $version_type in 12685 freebsd-elf*) 12686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12687 need_version=no 12688 need_lib_prefix=no 12689 ;; 12690 freebsd-*) 12691 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 12692 need_version=yes 12693 ;; 12694 esac 12695 shlibpath_var=LD_LIBRARY_PATH 12696 case $host_os in 12697 freebsd2*) 12698 shlibpath_overrides_runpath=yes 12699 ;; 12700 freebsd3.[01]* | freebsdelf3.[01]*) 12701 shlibpath_overrides_runpath=yes 12702 hardcode_into_libs=yes 12703 ;; 12704 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12705 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12706 shlibpath_overrides_runpath=no 12707 hardcode_into_libs=yes 12708 ;; 12709 freebsd*) # from 4.6 on 12710 shlibpath_overrides_runpath=yes 12711 hardcode_into_libs=yes 12712 ;; 12713 esac 12714 ;; 12715 12716gnu*) 12717 version_type=linux 12718 need_lib_prefix=no 12719 need_version=no 12720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12721 soname_spec='${libname}${release}${shared_ext}$major' 12722 shlibpath_var=LD_LIBRARY_PATH 12723 hardcode_into_libs=yes 12724 ;; 12725 12726hpux9* | hpux10* | hpux11*) 12727 # Give a soname corresponding to the major version so that dld.sl refuses to 12728 # link against other versions. 12729 version_type=sunos 12730 need_lib_prefix=no 12731 need_version=no 12732 case $host_cpu in 12733 ia64*) 12734 shrext_cmds='.so' 12735 hardcode_into_libs=yes 12736 dynamic_linker="$host_os dld.so" 12737 shlibpath_var=LD_LIBRARY_PATH 12738 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12740 soname_spec='${libname}${release}${shared_ext}$major' 12741 if test "X$HPUX_IA64_MODE" = X32; then 12742 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12743 else 12744 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12745 fi 12746 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12747 ;; 12748 hppa*64*) 12749 shrext_cmds='.sl' 12750 hardcode_into_libs=yes 12751 dynamic_linker="$host_os dld.sl" 12752 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12753 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12755 soname_spec='${libname}${release}${shared_ext}$major' 12756 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12757 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12758 ;; 12759 *) 12760 shrext_cmds='.sl' 12761 dynamic_linker="$host_os dld.sl" 12762 shlibpath_var=SHLIB_PATH 12763 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12765 soname_spec='${libname}${release}${shared_ext}$major' 12766 ;; 12767 esac 12768 # HP-UX runs *really* slowly unless shared libraries are mode 555. 12769 postinstall_cmds='chmod 555 $lib' 12770 ;; 12771 12772interix3*) 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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12779 shlibpath_var=LD_LIBRARY_PATH 12780 shlibpath_overrides_runpath=no 12781 hardcode_into_libs=yes 12782 ;; 12783 12784irix5* | irix6* | nonstopux*) 12785 case $host_os in 12786 nonstopux*) version_type=nonstopux ;; 12787 *) 12788 if test "$lt_cv_prog_gnu_ld" = yes; then 12789 version_type=linux 12790 else 12791 version_type=irix 12792 fi ;; 12793 esac 12794 need_lib_prefix=no 12795 need_version=no 12796 soname_spec='${libname}${release}${shared_ext}$major' 12797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 12798 case $host_os in 12799 irix5* | nonstopux*) 12800 libsuff= shlibsuff= 12801 ;; 12802 *) 12803 case $LD in # libtool.m4 will add one of these switches to LD 12804 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12805 libsuff= shlibsuff= libmagic=32-bit;; 12806 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12807 libsuff=32 shlibsuff=N32 libmagic=N32;; 12808 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12809 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12810 *) libsuff= shlibsuff= libmagic=never-match;; 12811 esac 12812 ;; 12813 esac 12814 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12815 shlibpath_overrides_runpath=no 12816 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12817 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12818 hardcode_into_libs=yes 12819 ;; 12820 12821# No shared lib support for Linux oldld, aout, or coff. 12822linux*oldld* | linux*aout* | linux*coff*) 12823 dynamic_linker=no 12824 ;; 12825 12826# This must be Linux ELF. 12827linux*) 12828 version_type=linux 12829 need_lib_prefix=no 12830 need_version=no 12831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12832 soname_spec='${libname}${release}${shared_ext}$major' 12833 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12834 shlibpath_var=LD_LIBRARY_PATH 12835 shlibpath_overrides_runpath=no 12836 # This implies no fast_install, which is unacceptable. 12837 # Some rework will be needed to allow for fast_install 12838 # before this can be enabled. 12839 hardcode_into_libs=yes 12840 12841 # Append ld.so.conf contents to the search path 12842 if test -f /etc/ld.so.conf; then 12843 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' ' '` 12844 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12845 fi 12846 12847 # We used to test for /lib/ld.so.1 and disable shared libraries on 12848 # powerpc, because MkLinux only supported shared libraries with the 12849 # GNU dynamic linker. Since this was broken with cross compilers, 12850 # most powerpc-linux boxes support dynamic linking these days and 12851 # people can always --disable-shared, the test was removed, and we 12852 # assume the GNU/Linux dynamic linker is in use. 12853 dynamic_linker='GNU/Linux ld.so' 12854 ;; 12855 12856knetbsd*-gnu) 12857 version_type=linux 12858 need_lib_prefix=no 12859 need_version=no 12860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12861 soname_spec='${libname}${release}${shared_ext}$major' 12862 shlibpath_var=LD_LIBRARY_PATH 12863 shlibpath_overrides_runpath=no 12864 hardcode_into_libs=yes 12865 dynamic_linker='GNU ld.so' 12866 ;; 12867 12868netbsd*) 12869 version_type=sunos 12870 need_lib_prefix=no 12871 need_version=no 12872 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12874 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12875 dynamic_linker='NetBSD (a.out) ld.so' 12876 else 12877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12878 soname_spec='${libname}${release}${shared_ext}$major' 12879 dynamic_linker='NetBSD ld.elf_so' 12880 fi 12881 shlibpath_var=LD_LIBRARY_PATH 12882 shlibpath_overrides_runpath=yes 12883 hardcode_into_libs=yes 12884 ;; 12885 12886newsos6) 12887 version_type=linux 12888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12889 shlibpath_var=LD_LIBRARY_PATH 12890 shlibpath_overrides_runpath=yes 12891 ;; 12892 12893nto-qnx*) 12894 version_type=linux 12895 need_lib_prefix=no 12896 need_version=no 12897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12898 soname_spec='${libname}${release}${shared_ext}$major' 12899 shlibpath_var=LD_LIBRARY_PATH 12900 shlibpath_overrides_runpath=yes 12901 ;; 12902 12903openbsd*) 12904 version_type=sunos 12905 sys_lib_dlsearch_path_spec="/usr/lib" 12906 need_lib_prefix=no 12907 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 12908 case $host_os in 12909 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 12910 *) need_version=no ;; 12911 esac 12912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12913 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12914 shlibpath_var=LD_LIBRARY_PATH 12915 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12916 case $host_os in 12917 openbsd2.[89] | openbsd2.[89].*) 12918 shlibpath_overrides_runpath=no 12919 ;; 12920 *) 12921 shlibpath_overrides_runpath=yes 12922 ;; 12923 esac 12924 else 12925 shlibpath_overrides_runpath=yes 12926 fi 12927 ;; 12928 12929os2*) 12930 libname_spec='$name' 12931 shrext_cmds=".dll" 12932 need_lib_prefix=no 12933 library_names_spec='$libname${shared_ext} $libname.a' 12934 dynamic_linker='OS/2 ld.exe' 12935 shlibpath_var=LIBPATH 12936 ;; 12937 12938osf3* | osf4* | osf5*) 12939 version_type=osf 12940 need_lib_prefix=no 12941 need_version=no 12942 soname_spec='${libname}${release}${shared_ext}$major' 12943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12944 shlibpath_var=LD_LIBRARY_PATH 12945 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12946 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 12947 ;; 12948 12949solaris*) 12950 version_type=linux 12951 need_lib_prefix=no 12952 need_version=no 12953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12954 soname_spec='${libname}${release}${shared_ext}$major' 12955 shlibpath_var=LD_LIBRARY_PATH 12956 shlibpath_overrides_runpath=yes 12957 hardcode_into_libs=yes 12958 # ldd complains unless libraries are executable 12959 postinstall_cmds='chmod +x $lib' 12960 ;; 12961 12962sunos4*) 12963 version_type=sunos 12964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12965 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12966 shlibpath_var=LD_LIBRARY_PATH 12967 shlibpath_overrides_runpath=yes 12968 if test "$with_gnu_ld" = yes; then 12969 need_lib_prefix=no 12970 fi 12971 need_version=yes 12972 ;; 12973 12974sysv4 | sysv4.3*) 12975 version_type=linux 12976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12977 soname_spec='${libname}${release}${shared_ext}$major' 12978 shlibpath_var=LD_LIBRARY_PATH 12979 case $host_vendor in 12980 sni) 12981 shlibpath_overrides_runpath=no 12982 need_lib_prefix=no 12983 export_dynamic_flag_spec='${wl}-Blargedynsym' 12984 runpath_var=LD_RUN_PATH 12985 ;; 12986 siemens) 12987 need_lib_prefix=no 12988 ;; 12989 motorola) 12990 need_lib_prefix=no 12991 need_version=no 12992 shlibpath_overrides_runpath=no 12993 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12994 ;; 12995 esac 12996 ;; 12997 12998sysv4*MP*) 12999 if test -d /usr/nec ;then 13000 version_type=linux 13001 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13002 soname_spec='$libname${shared_ext}.$major' 13003 shlibpath_var=LD_LIBRARY_PATH 13004 fi 13005 ;; 13006 13007sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13008 version_type=freebsd-elf 13009 need_lib_prefix=no 13010 need_version=no 13011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13012 soname_spec='${libname}${release}${shared_ext}$major' 13013 shlibpath_var=LD_LIBRARY_PATH 13014 hardcode_into_libs=yes 13015 if test "$with_gnu_ld" = yes; then 13016 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13017 shlibpath_overrides_runpath=no 13018 else 13019 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13020 shlibpath_overrides_runpath=yes 13021 case $host_os in 13022 sco3.2v5*) 13023 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13024 ;; 13025 esac 13026 fi 13027 sys_lib_dlsearch_path_spec='/usr/lib' 13028 ;; 13029 13030uts4*) 13031 version_type=linux 13032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13033 soname_spec='${libname}${release}${shared_ext}$major' 13034 shlibpath_var=LD_LIBRARY_PATH 13035 ;; 13036 13037*) 13038 dynamic_linker=no 13039 ;; 13040esac 13041{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13042echo "${ECHO_T}$dynamic_linker" >&6; } 13043test "$dynamic_linker" = no && can_build_shared=no 13044 13045variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13046if test "$GCC" = yes; then 13047 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13048fi 13049 13050{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13051echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 13052hardcode_action_CXX= 13053if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13054 test -n "$runpath_var_CXX" || \ 13055 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13056 13057 # We can hardcode non-existant directories. 13058 if test "$hardcode_direct_CXX" != no && 13059 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13060 # have to relink, otherwise we might link with an installed library 13061 # when we should be linking with a yet-to-be-installed one 13062 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13063 test "$hardcode_minus_L_CXX" != no; then 13064 # Linking always hardcodes the temporary library directory. 13065 hardcode_action_CXX=relink 13066 else 13067 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13068 hardcode_action_CXX=immediate 13069 fi 13070else 13071 # We cannot hardcode anything, or else we can only hardcode existing 13072 # directories. 13073 hardcode_action_CXX=unsupported 13074fi 13075{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13076echo "${ECHO_T}$hardcode_action_CXX" >&6; } 13077 13078if test "$hardcode_action_CXX" = relink; then 13079 # Fast installation is not supported 13080 enable_fast_install=no 13081elif test "$shlibpath_overrides_runpath" = yes || 13082 test "$enable_shared" = no; then 13083 # Fast installation is not necessary 13084 enable_fast_install=needless 13085fi 13086 13087 13088# The else clause should only fire when bootstrapping the 13089# libtool distribution, otherwise you forgot to ship ltmain.sh 13090# with your package, and you will get complaints that there are 13091# no rules to generate ltmain.sh. 13092if test -f "$ltmain"; then 13093 # See if we are running on zsh, and set the options which allow our commands through 13094 # without removal of \ escapes. 13095 if test -n "${ZSH_VERSION+set}" ; then 13096 setopt NO_GLOB_SUBST 13097 fi 13098 # Now quote all the things that may contain metacharacters while being 13099 # careful not to overquote the AC_SUBSTed values. We take copies of the 13100 # variables and quote the copies for generation of the libtool script. 13101 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13102 SED SHELL STRIP \ 13103 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13104 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13105 deplibs_check_method reload_flag reload_cmds need_locks \ 13106 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13107 lt_cv_sys_global_symbol_to_c_name_address \ 13108 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13109 old_postinstall_cmds old_postuninstall_cmds \ 13110 compiler_CXX \ 13111 CC_CXX \ 13112 LD_CXX \ 13113 lt_prog_compiler_wl_CXX \ 13114 lt_prog_compiler_pic_CXX \ 13115 lt_prog_compiler_static_CXX \ 13116 lt_prog_compiler_no_builtin_flag_CXX \ 13117 export_dynamic_flag_spec_CXX \ 13118 thread_safe_flag_spec_CXX \ 13119 whole_archive_flag_spec_CXX \ 13120 enable_shared_with_static_runtimes_CXX \ 13121 old_archive_cmds_CXX \ 13122 old_archive_from_new_cmds_CXX \ 13123 predep_objects_CXX \ 13124 postdep_objects_CXX \ 13125 predeps_CXX \ 13126 postdeps_CXX \ 13127 compiler_lib_search_path_CXX \ 13128 archive_cmds_CXX \ 13129 archive_expsym_cmds_CXX \ 13130 postinstall_cmds_CXX \ 13131 postuninstall_cmds_CXX \ 13132 old_archive_from_expsyms_cmds_CXX \ 13133 allow_undefined_flag_CXX \ 13134 no_undefined_flag_CXX \ 13135 export_symbols_cmds_CXX \ 13136 hardcode_libdir_flag_spec_CXX \ 13137 hardcode_libdir_flag_spec_ld_CXX \ 13138 hardcode_libdir_separator_CXX \ 13139 hardcode_automatic_CXX \ 13140 module_cmds_CXX \ 13141 module_expsym_cmds_CXX \ 13142 lt_cv_prog_compiler_c_o_CXX \ 13143 exclude_expsyms_CXX \ 13144 include_expsyms_CXX; do 13145 13146 case $var in 13147 old_archive_cmds_CXX | \ 13148 old_archive_from_new_cmds_CXX | \ 13149 archive_cmds_CXX | \ 13150 archive_expsym_cmds_CXX | \ 13151 module_cmds_CXX | \ 13152 module_expsym_cmds_CXX | \ 13153 old_archive_from_expsyms_cmds_CXX | \ 13154 export_symbols_cmds_CXX | \ 13155 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13156 postinstall_cmds | postuninstall_cmds | \ 13157 old_postinstall_cmds | old_postuninstall_cmds | \ 13158 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13159 # Double-quote double-evaled strings. 13160 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13161 ;; 13162 *) 13163 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13164 ;; 13165 esac 13166 done 13167 13168 case $lt_echo in 13169 *'\$0 --fallback-echo"') 13170 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13171 ;; 13172 esac 13173 13174cfgfile="$ofile" 13175 13176 cat <<__EOF__ >> "$cfgfile" 13177# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13178 13179# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13180 13181# Shell to use when invoking shell scripts. 13182SHELL=$lt_SHELL 13183 13184# Whether or not to build shared libraries. 13185build_libtool_libs=$enable_shared 13186 13187# Whether or not to build static libraries. 13188build_old_libs=$enable_static 13189 13190# Whether or not to add -lc for building shared libraries. 13191build_libtool_need_lc=$archive_cmds_need_lc_CXX 13192 13193# Whether or not to disallow shared libs when runtime libs are static 13194allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13195 13196# Whether or not to optimize for fast installation. 13197fast_install=$enable_fast_install 13198 13199# The host system. 13200host_alias=$host_alias 13201host=$host 13202host_os=$host_os 13203 13204# The build system. 13205build_alias=$build_alias 13206build=$build 13207build_os=$build_os 13208 13209# An echo program that does not interpret backslashes. 13210echo=$lt_echo 13211 13212# The archiver. 13213AR=$lt_AR 13214AR_FLAGS=$lt_AR_FLAGS 13215 13216# A C compiler. 13217LTCC=$lt_LTCC 13218 13219# LTCC compiler flags. 13220LTCFLAGS=$lt_LTCFLAGS 13221 13222# A language-specific compiler. 13223CC=$lt_compiler_CXX 13224 13225# Is the compiler the GNU C compiler? 13226with_gcc=$GCC_CXX 13227 13228# An ERE matcher. 13229EGREP=$lt_EGREP 13230 13231# The linker used to build libraries. 13232LD=$lt_LD_CXX 13233 13234# Whether we need hard or soft links. 13235LN_S=$lt_LN_S 13236 13237# A BSD-compatible nm program. 13238NM=$lt_NM 13239 13240# A symbol stripping program 13241STRIP=$lt_STRIP 13242 13243# Used to examine libraries when file_magic_cmd begins "file" 13244MAGIC_CMD=$MAGIC_CMD 13245 13246# Used on cygwin: DLL creation program. 13247DLLTOOL="$DLLTOOL" 13248 13249# Used on cygwin: object dumper. 13250OBJDUMP="$OBJDUMP" 13251 13252# Used on cygwin: assembler. 13253AS="$AS" 13254 13255# The name of the directory that contains temporary libtool files. 13256objdir=$objdir 13257 13258# How to create reloadable object files. 13259reload_flag=$lt_reload_flag 13260reload_cmds=$lt_reload_cmds 13261 13262# How to pass a linker flag through the compiler. 13263wl=$lt_lt_prog_compiler_wl_CXX 13264 13265# Object file suffix (normally "o"). 13266objext="$ac_objext" 13267 13268# Old archive suffix (normally "a"). 13269libext="$libext" 13270 13271# Shared library suffix (normally ".so"). 13272shrext_cmds='$shrext_cmds' 13273 13274# Executable file suffix (normally ""). 13275exeext="$exeext" 13276 13277# Additional compiler flags for building library objects. 13278pic_flag=$lt_lt_prog_compiler_pic_CXX 13279pic_mode=$pic_mode 13280 13281# What is the maximum length of a command? 13282max_cmd_len=$lt_cv_sys_max_cmd_len 13283 13284# Does compiler simultaneously support -c and -o options? 13285compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13286 13287# Must we lock files when doing compilation? 13288need_locks=$lt_need_locks 13289 13290# Do we need the lib prefix for modules? 13291need_lib_prefix=$need_lib_prefix 13292 13293# Do we need a version for libraries? 13294need_version=$need_version 13295 13296# Whether dlopen is supported. 13297dlopen_support=$enable_dlopen 13298 13299# Whether dlopen of programs is supported. 13300dlopen_self=$enable_dlopen_self 13301 13302# Whether dlopen of statically linked programs is supported. 13303dlopen_self_static=$enable_dlopen_self_static 13304 13305# Compiler flag to prevent dynamic linking. 13306link_static_flag=$lt_lt_prog_compiler_static_CXX 13307 13308# Compiler flag to turn off builtin functions. 13309no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13310 13311# Compiler flag to allow reflexive dlopens. 13312export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13313 13314# Compiler flag to generate shared objects directly from archives. 13315whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13316 13317# Compiler flag to generate thread-safe objects. 13318thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13319 13320# Library versioning type. 13321version_type=$version_type 13322 13323# Format of library name prefix. 13324libname_spec=$lt_libname_spec 13325 13326# List of archive names. First name is the real one, the rest are links. 13327# The last name is the one that the linker finds with -lNAME. 13328library_names_spec=$lt_library_names_spec 13329 13330# The coded name of the library, if different from the real name. 13331soname_spec=$lt_soname_spec 13332 13333# Commands used to build and install an old-style archive. 13334RANLIB=$lt_RANLIB 13335old_archive_cmds=$lt_old_archive_cmds_CXX 13336old_postinstall_cmds=$lt_old_postinstall_cmds 13337old_postuninstall_cmds=$lt_old_postuninstall_cmds 13338 13339# Create an old-style archive from a shared archive. 13340old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13341 13342# Create a temporary old-style archive to link instead of a shared archive. 13343old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13344 13345# Commands used to build and install a shared archive. 13346archive_cmds=$lt_archive_cmds_CXX 13347archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13348postinstall_cmds=$lt_postinstall_cmds 13349postuninstall_cmds=$lt_postuninstall_cmds 13350 13351# Commands used to build a loadable module (assumed same as above if empty) 13352module_cmds=$lt_module_cmds_CXX 13353module_expsym_cmds=$lt_module_expsym_cmds_CXX 13354 13355# Commands to strip libraries. 13356old_striplib=$lt_old_striplib 13357striplib=$lt_striplib 13358 13359# Dependencies to place before the objects being linked to create a 13360# shared library. 13361predep_objects=$lt_predep_objects_CXX 13362 13363# Dependencies to place after the objects being linked to create a 13364# shared library. 13365postdep_objects=$lt_postdep_objects_CXX 13366 13367# Dependencies to place before the objects being linked to create a 13368# shared library. 13369predeps=$lt_predeps_CXX 13370 13371# Dependencies to place after the objects being linked to create a 13372# shared library. 13373postdeps=$lt_postdeps_CXX 13374 13375# The library search path used internally by the compiler when linking 13376# a shared library. 13377compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 13378 13379# Method to check whether dependent libraries are shared objects. 13380deplibs_check_method=$lt_deplibs_check_method 13381 13382# Command to use when deplibs_check_method == file_magic. 13383file_magic_cmd=$lt_file_magic_cmd 13384 13385# Flag that allows shared libraries with undefined symbols to be built. 13386allow_undefined_flag=$lt_allow_undefined_flag_CXX 13387 13388# Flag that forces no undefined symbols. 13389no_undefined_flag=$lt_no_undefined_flag_CXX 13390 13391# Commands used to finish a libtool library installation in a directory. 13392finish_cmds=$lt_finish_cmds 13393 13394# Same as above, but a single script fragment to be evaled but not shown. 13395finish_eval=$lt_finish_eval 13396 13397# Take the output of nm and produce a listing of raw symbols and C names. 13398global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13399 13400# Transform the output of nm in a proper C declaration 13401global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13402 13403# Transform the output of nm in a C name address pair 13404global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13405 13406# This is the shared library runtime path variable. 13407runpath_var=$runpath_var 13408 13409# This is the shared library path variable. 13410shlibpath_var=$shlibpath_var 13411 13412# Is shlibpath searched before the hard-coded library search path? 13413shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13414 13415# How to hardcode a shared library path into an executable. 13416hardcode_action=$hardcode_action_CXX 13417 13418# Whether we should hardcode library paths into libraries. 13419hardcode_into_libs=$hardcode_into_libs 13420 13421# Flag to hardcode \$libdir into a binary during linking. 13422# This must work even if \$libdir does not exist. 13423hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 13424 13425# If ld is used when linking, flag to hardcode \$libdir into 13426# a binary during linking. This must work even if \$libdir does 13427# not exist. 13428hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 13429 13430# Whether we need a single -rpath flag with a separated argument. 13431hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 13432 13433# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13434# resulting binary. 13435hardcode_direct=$hardcode_direct_CXX 13436 13437# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13438# resulting binary. 13439hardcode_minus_L=$hardcode_minus_L_CXX 13440 13441# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13442# the resulting binary. 13443hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 13444 13445# Set to yes if building a shared library automatically hardcodes DIR into the library 13446# and all subsequent libraries and executables linked against it. 13447hardcode_automatic=$hardcode_automatic_CXX 13448 13449# Variables whose values should be saved in libtool wrapper scripts and 13450# restored at relink time. 13451variables_saved_for_relink="$variables_saved_for_relink" 13452 13453# Whether libtool must link a program against all its dependency libraries. 13454link_all_deplibs=$link_all_deplibs_CXX 13455 13456# Compile-time system search path for libraries 13457sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13458 13459# Run-time system search path for libraries 13460sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13461 13462# Fix the shell variable \$srcfile for the compiler. 13463fix_srcfile_path="$fix_srcfile_path_CXX" 13464 13465# Set to yes if exported symbols are required. 13466always_export_symbols=$always_export_symbols_CXX 13467 13468# The commands to list exported symbols. 13469export_symbols_cmds=$lt_export_symbols_cmds_CXX 13470 13471# The commands to extract the exported symbol list from a shared archive. 13472extract_expsyms_cmds=$lt_extract_expsyms_cmds 13473 13474# Symbols that should not be listed in the preloaded symbols. 13475exclude_expsyms=$lt_exclude_expsyms_CXX 13476 13477# Symbols that must always be exported. 13478include_expsyms=$lt_include_expsyms_CXX 13479 13480# ### END LIBTOOL TAG CONFIG: $tagname 13481 13482__EOF__ 13483 13484 13485else 13486 # If there is no Makefile yet, we rely on a make rule to execute 13487 # `config.status --recheck' to rerun these tests and create the 13488 # libtool script then. 13489 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 13490 if test -f "$ltmain_in"; then 13491 test -f Makefile && make "$ltmain" 13492 fi 13493fi 13494 13495 13496ac_ext=c 13497ac_cpp='$CPP $CPPFLAGS' 13498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13500ac_compiler_gnu=$ac_cv_c_compiler_gnu 13501 13502CC=$lt_save_CC 13503LDCXX=$LD 13504LD=$lt_save_LD 13505GCC=$lt_save_GCC 13506with_gnu_ldcxx=$with_gnu_ld 13507with_gnu_ld=$lt_save_with_gnu_ld 13508lt_cv_path_LDCXX=$lt_cv_path_LD 13509lt_cv_path_LD=$lt_save_path_LD 13510lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 13511lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 13512 13513 else 13514 tagname="" 13515 fi 13516 ;; 13517 13518 F77) 13519 if test -n "$F77" && test "X$F77" != "Xno"; then 13520 13521ac_ext=f 13522ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 13523ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13524ac_compiler_gnu=$ac_cv_f77_compiler_gnu 13525 13526 13527archive_cmds_need_lc_F77=no 13528allow_undefined_flag_F77= 13529always_export_symbols_F77=no 13530archive_expsym_cmds_F77= 13531export_dynamic_flag_spec_F77= 13532hardcode_direct_F77=no 13533hardcode_libdir_flag_spec_F77= 13534hardcode_libdir_flag_spec_ld_F77= 13535hardcode_libdir_separator_F77= 13536hardcode_minus_L_F77=no 13537hardcode_automatic_F77=no 13538module_cmds_F77= 13539module_expsym_cmds_F77= 13540link_all_deplibs_F77=unknown 13541old_archive_cmds_F77=$old_archive_cmds 13542no_undefined_flag_F77= 13543whole_archive_flag_spec_F77= 13544enable_shared_with_static_runtimes_F77=no 13545 13546# Source file extension for f77 test sources. 13547ac_ext=f 13548 13549# Object file extension for compiled f77 test sources. 13550objext=o 13551objext_F77=$objext 13552 13553# Code to be used in simple compile tests 13554lt_simple_compile_test_code=" subroutine t\n return\n end\n" 13555 13556# Code to be used in simple link tests 13557lt_simple_link_test_code=" program t\n end\n" 13558 13559# ltmain only uses $CC for tagged configurations so make sure $CC is set. 13560 13561# If no C compiler was specified, use CC. 13562LTCC=${LTCC-"$CC"} 13563 13564# If no C compiler flags were specified, use CFLAGS. 13565LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13566 13567# Allow CC to be a program name with arguments. 13568compiler=$CC 13569 13570 13571# save warnings/boilerplate of simple test code 13572ac_outfile=conftest.$ac_objext 13573printf "$lt_simple_compile_test_code" >conftest.$ac_ext 13574eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13575_lt_compiler_boilerplate=`cat conftest.err` 13576$rm conftest* 13577 13578ac_outfile=conftest.$ac_objext 13579printf "$lt_simple_link_test_code" >conftest.$ac_ext 13580eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13581_lt_linker_boilerplate=`cat conftest.err` 13582$rm conftest* 13583 13584 13585# Allow CC to be a program name with arguments. 13586lt_save_CC="$CC" 13587CC=${F77-"f77"} 13588compiler=$CC 13589compiler_F77=$CC 13590for cc_temp in $compiler""; do 13591 case $cc_temp in 13592 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13593 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13594 \-*) ;; 13595 *) break;; 13596 esac 13597done 13598cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13599 13600 13601{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 13602echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 13603{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 13604echo "${ECHO_T}$can_build_shared" >&6; } 13605 13606{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 13607echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 13608test "$can_build_shared" = "no" && enable_shared=no 13609 13610# On AIX, shared libraries and static libraries use the same namespace, and 13611# are all built from PIC. 13612case $host_os in 13613aix3*) 13614 test "$enable_shared" = yes && enable_static=no 13615 if test -n "$RANLIB"; then 13616 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13617 postinstall_cmds='$RANLIB $lib' 13618 fi 13619 ;; 13620aix4* | aix5*) 13621 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13622 test "$enable_shared" = yes && enable_static=no 13623 fi 13624 ;; 13625esac 13626{ echo "$as_me:$LINENO: result: $enable_shared" >&5 13627echo "${ECHO_T}$enable_shared" >&6; } 13628 13629{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 13630echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 13631# Make sure either enable_shared or enable_static is yes. 13632test "$enable_shared" = yes || enable_static=yes 13633{ echo "$as_me:$LINENO: result: $enable_static" >&5 13634echo "${ECHO_T}$enable_static" >&6; } 13635 13636GCC_F77="$G77" 13637LD_F77="$LD" 13638 13639lt_prog_compiler_wl_F77= 13640lt_prog_compiler_pic_F77= 13641lt_prog_compiler_static_F77= 13642 13643{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13644echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 13645 13646 if test "$GCC" = yes; then 13647 lt_prog_compiler_wl_F77='-Wl,' 13648 lt_prog_compiler_static_F77='-static' 13649 13650 case $host_os in 13651 aix*) 13652 # All AIX code is PIC. 13653 if test "$host_cpu" = ia64; then 13654 # AIX 5 now supports IA64 processor 13655 lt_prog_compiler_static_F77='-Bstatic' 13656 fi 13657 ;; 13658 13659 amigaos*) 13660 # FIXME: we need at least 68020 code to build shared libraries, but 13661 # adding the `-m68020' flag to GCC prevents building anything better, 13662 # like `-m68040'. 13663 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 13664 ;; 13665 13666 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13667 # PIC is the default for these OSes. 13668 ;; 13669 13670 mingw* | pw32* | os2*) 13671 # This hack is so that the source file can tell whether it is being 13672 # built for inclusion in a dll (and should export symbols for example). 13673 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13674 ;; 13675 13676 darwin* | rhapsody*) 13677 # PIC is the default on this platform 13678 # Common symbols not allowed in MH_DYLIB files 13679 lt_prog_compiler_pic_F77='-fno-common' 13680 ;; 13681 13682 interix3*) 13683 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13684 # Instead, we relocate shared libraries at runtime. 13685 ;; 13686 13687 msdosdjgpp*) 13688 # Just because we use GCC doesn't mean we suddenly get shared libraries 13689 # on systems that don't support them. 13690 lt_prog_compiler_can_build_shared_F77=no 13691 enable_shared=no 13692 ;; 13693 13694 sysv4*MP*) 13695 if test -d /usr/nec; then 13696 lt_prog_compiler_pic_F77=-Kconform_pic 13697 fi 13698 ;; 13699 13700 hpux*) 13701 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13702 # not for PA HP-UX. 13703 case $host_cpu in 13704 hppa*64*|ia64*) 13705 # +Z the default 13706 ;; 13707 *) 13708 lt_prog_compiler_pic_F77='-fPIC' 13709 ;; 13710 esac 13711 ;; 13712 13713 *) 13714 lt_prog_compiler_pic_F77='-fPIC' 13715 ;; 13716 esac 13717 else 13718 # PORTME Check for flag to pass linker flags through the system compiler. 13719 case $host_os in 13720 aix*) 13721 lt_prog_compiler_wl_F77='-Wl,' 13722 if test "$host_cpu" = ia64; then 13723 # AIX 5 now supports IA64 processor 13724 lt_prog_compiler_static_F77='-Bstatic' 13725 else 13726 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 13727 fi 13728 ;; 13729 darwin*) 13730 # PIC is the default on this platform 13731 # Common symbols not allowed in MH_DYLIB files 13732 case $cc_basename in 13733 xlc*) 13734 lt_prog_compiler_pic_F77='-qnocommon' 13735 lt_prog_compiler_wl_F77='-Wl,' 13736 ;; 13737 esac 13738 ;; 13739 13740 mingw* | pw32* | os2*) 13741 # This hack is so that the source file can tell whether it is being 13742 # built for inclusion in a dll (and should export symbols for example). 13743 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13744 ;; 13745 13746 hpux9* | hpux10* | hpux11*) 13747 lt_prog_compiler_wl_F77='-Wl,' 13748 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13749 # not for PA HP-UX. 13750 case $host_cpu in 13751 hppa*64*|ia64*) 13752 # +Z the default 13753 ;; 13754 *) 13755 lt_prog_compiler_pic_F77='+Z' 13756 ;; 13757 esac 13758 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13759 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 13760 ;; 13761 13762 irix5* | irix6* | nonstopux*) 13763 lt_prog_compiler_wl_F77='-Wl,' 13764 # PIC (with -KPIC) is the default. 13765 lt_prog_compiler_static_F77='-non_shared' 13766 ;; 13767 13768 newsos6) 13769 lt_prog_compiler_pic_F77='-KPIC' 13770 lt_prog_compiler_static_F77='-Bstatic' 13771 ;; 13772 13773 linux*) 13774 case $cc_basename in 13775 icc* | ecc*) 13776 lt_prog_compiler_wl_F77='-Wl,' 13777 lt_prog_compiler_pic_F77='-KPIC' 13778 lt_prog_compiler_static_F77='-static' 13779 ;; 13780 pgcc* | pgf77* | pgf90* | pgf95*) 13781 # Portland Group compilers (*not* the Pentium gcc compiler, 13782 # which looks to be a dead project) 13783 lt_prog_compiler_wl_F77='-Wl,' 13784 lt_prog_compiler_pic_F77='-fpic' 13785 lt_prog_compiler_static_F77='-Bstatic' 13786 ;; 13787 ccc*) 13788 lt_prog_compiler_wl_F77='-Wl,' 13789 # All Alpha code is PIC. 13790 lt_prog_compiler_static_F77='-non_shared' 13791 ;; 13792 esac 13793 ;; 13794 13795 osf3* | osf4* | osf5*) 13796 lt_prog_compiler_wl_F77='-Wl,' 13797 # All OSF/1 code is PIC. 13798 lt_prog_compiler_static_F77='-non_shared' 13799 ;; 13800 13801 solaris*) 13802 lt_prog_compiler_pic_F77='-KPIC' 13803 lt_prog_compiler_static_F77='-Bstatic' 13804 case $cc_basename in 13805 f77* | f90* | f95*) 13806 lt_prog_compiler_wl_F77='-Qoption ld ';; 13807 *) 13808 lt_prog_compiler_wl_F77='-Wl,';; 13809 esac 13810 ;; 13811 13812 sunos4*) 13813 lt_prog_compiler_wl_F77='-Qoption ld ' 13814 lt_prog_compiler_pic_F77='-PIC' 13815 lt_prog_compiler_static_F77='-Bstatic' 13816 ;; 13817 13818 sysv4 | sysv4.2uw2* | sysv4.3*) 13819 lt_prog_compiler_wl_F77='-Wl,' 13820 lt_prog_compiler_pic_F77='-KPIC' 13821 lt_prog_compiler_static_F77='-Bstatic' 13822 ;; 13823 13824 sysv4*MP*) 13825 if test -d /usr/nec ;then 13826 lt_prog_compiler_pic_F77='-Kconform_pic' 13827 lt_prog_compiler_static_F77='-Bstatic' 13828 fi 13829 ;; 13830 13831 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13832 lt_prog_compiler_wl_F77='-Wl,' 13833 lt_prog_compiler_pic_F77='-KPIC' 13834 lt_prog_compiler_static_F77='-Bstatic' 13835 ;; 13836 13837 unicos*) 13838 lt_prog_compiler_wl_F77='-Wl,' 13839 lt_prog_compiler_can_build_shared_F77=no 13840 ;; 13841 13842 uts4*) 13843 lt_prog_compiler_pic_F77='-pic' 13844 lt_prog_compiler_static_F77='-Bstatic' 13845 ;; 13846 13847 *) 13848 lt_prog_compiler_can_build_shared_F77=no 13849 ;; 13850 esac 13851 fi 13852 13853{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 13854echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } 13855 13856# 13857# Check to make sure the PIC flag actually works. 13858# 13859if test -n "$lt_prog_compiler_pic_F77"; then 13860 13861{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 13862echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } 13863if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 13864 echo $ECHO_N "(cached) $ECHO_C" >&6 13865else 13866 lt_prog_compiler_pic_works_F77=no 13867 ac_outfile=conftest.$ac_objext 13868 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13869 lt_compiler_flag="$lt_prog_compiler_pic_F77" 13870 # Insert the option either (1) after the last *FLAGS variable, or 13871 # (2) before a word containing "conftest.", or (3) at the end. 13872 # Note that $ac_compile itself does not contain backslashes and begins 13873 # with a dollar sign (not a hyphen), so the echo should work correctly. 13874 # The option is referenced via a variable to avoid confusing sed. 13875 lt_compile=`echo "$ac_compile" | $SED \ 13876 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13877 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13878 -e 's:$: $lt_compiler_flag:'` 13879 (eval echo "\"\$as_me:13879: $lt_compile\"" >&5) 13880 (eval "$lt_compile" 2>conftest.err) 13881 ac_status=$? 13882 cat conftest.err >&5 13883 echo "$as_me:13883: \$? = $ac_status" >&5 13884 if (exit $ac_status) && test -s "$ac_outfile"; then 13885 # The compiler can only warn and ignore the option if not recognized 13886 # So say no if there are warnings other than the usual output. 13887 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 13888 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13889 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13890 lt_prog_compiler_pic_works_F77=yes 13891 fi 13892 fi 13893 $rm conftest* 13894 13895fi 13896{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 13897echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } 13898 13899if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 13900 case $lt_prog_compiler_pic_F77 in 13901 "" | " "*) ;; 13902 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 13903 esac 13904else 13905 lt_prog_compiler_pic_F77= 13906 lt_prog_compiler_can_build_shared_F77=no 13907fi 13908 13909fi 13910case $host_os in 13911 # For platforms which do not support PIC, -DPIC is meaningless: 13912 *djgpp*) 13913 lt_prog_compiler_pic_F77= 13914 ;; 13915 *) 13916 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 13917 ;; 13918esac 13919 13920# 13921# Check to make sure the static flag actually works. 13922# 13923wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 13924{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13925echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 13926if test "${lt_prog_compiler_static_works_F77+set}" = set; then 13927 echo $ECHO_N "(cached) $ECHO_C" >&6 13928else 13929 lt_prog_compiler_static_works_F77=no 13930 save_LDFLAGS="$LDFLAGS" 13931 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13932 printf "$lt_simple_link_test_code" > conftest.$ac_ext 13933 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13934 # The linker can only warn and ignore the option if not recognized 13935 # So say no if there are warnings 13936 if test -s conftest.err; then 13937 # Append any errors to the config.log. 13938 cat conftest.err 1>&5 13939 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 13940 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13941 if diff conftest.exp conftest.er2 >/dev/null; then 13942 lt_prog_compiler_static_works_F77=yes 13943 fi 13944 else 13945 lt_prog_compiler_static_works_F77=yes 13946 fi 13947 fi 13948 $rm conftest* 13949 LDFLAGS="$save_LDFLAGS" 13950 13951fi 13952{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 13953echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } 13954 13955if test x"$lt_prog_compiler_static_works_F77" = xyes; then 13956 : 13957else 13958 lt_prog_compiler_static_F77= 13959fi 13960 13961 13962{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13963echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 13964if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 13965 echo $ECHO_N "(cached) $ECHO_C" >&6 13966else 13967 lt_cv_prog_compiler_c_o_F77=no 13968 $rm -r conftest 2>/dev/null 13969 mkdir conftest 13970 cd conftest 13971 mkdir out 13972 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13973 13974 lt_compiler_flag="-o out/conftest2.$ac_objext" 13975 # Insert the option either (1) after the last *FLAGS variable, or 13976 # (2) before a word containing "conftest.", or (3) at the end. 13977 # Note that $ac_compile itself does not contain backslashes and begins 13978 # with a dollar sign (not a hyphen), so the echo should work correctly. 13979 lt_compile=`echo "$ac_compile" | $SED \ 13980 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13981 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13982 -e 's:$: $lt_compiler_flag:'` 13983 (eval echo "\"\$as_me:13983: $lt_compile\"" >&5) 13984 (eval "$lt_compile" 2>out/conftest.err) 13985 ac_status=$? 13986 cat out/conftest.err >&5 13987 echo "$as_me:13987: \$? = $ac_status" >&5 13988 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13989 then 13990 # The compiler can only warn and ignore the option if not recognized 13991 # So say no if there are warnings 13992 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 13993 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13994 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13995 lt_cv_prog_compiler_c_o_F77=yes 13996 fi 13997 fi 13998 chmod u+w . 2>&5 13999 $rm conftest* 14000 # SGI C++ compiler will create directory out/ii_files/ for 14001 # template instantiation 14002 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14003 $rm out/* && rmdir out 14004 cd .. 14005 rmdir conftest 14006 $rm conftest* 14007 14008fi 14009{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14010echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } 14011 14012 14013hard_links="nottested" 14014if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14015 # do not overwrite the value of need_locks provided by the user 14016 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14017echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 14018 hard_links=yes 14019 $rm conftest* 14020 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14021 touch conftest.a 14022 ln conftest.a conftest.b 2>&5 || hard_links=no 14023 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14024 { echo "$as_me:$LINENO: result: $hard_links" >&5 14025echo "${ECHO_T}$hard_links" >&6; } 14026 if test "$hard_links" = no; then 14027 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14028echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14029 need_locks=warn 14030 fi 14031else 14032 need_locks=no 14033fi 14034 14035{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14036echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 14037 14038 runpath_var= 14039 allow_undefined_flag_F77= 14040 enable_shared_with_static_runtimes_F77=no 14041 archive_cmds_F77= 14042 archive_expsym_cmds_F77= 14043 old_archive_From_new_cmds_F77= 14044 old_archive_from_expsyms_cmds_F77= 14045 export_dynamic_flag_spec_F77= 14046 whole_archive_flag_spec_F77= 14047 thread_safe_flag_spec_F77= 14048 hardcode_libdir_flag_spec_F77= 14049 hardcode_libdir_flag_spec_ld_F77= 14050 hardcode_libdir_separator_F77= 14051 hardcode_direct_F77=no 14052 hardcode_minus_L_F77=no 14053 hardcode_shlibpath_var_F77=unsupported 14054 link_all_deplibs_F77=unknown 14055 hardcode_automatic_F77=no 14056 module_cmds_F77= 14057 module_expsym_cmds_F77= 14058 always_export_symbols_F77=no 14059 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14060 # include_expsyms should be a list of space-separated symbols to be *always* 14061 # included in the symbol list 14062 include_expsyms_F77= 14063 # exclude_expsyms can be an extended regexp of symbols to exclude 14064 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14065 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14066 # as well as any symbol that contains `d'. 14067 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 14068 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14069 # platforms (ab)use it in PIC code, but their linkers get confused if 14070 # the symbol is explicitly referenced. Since portable code cannot 14071 # rely on this symbol name, it's probably fine to never include it in 14072 # preloaded symbol tables. 14073 extract_expsyms_cmds= 14074 # Just being paranoid about ensuring that cc_basename is set. 14075 for cc_temp in $compiler""; do 14076 case $cc_temp in 14077 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14078 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14079 \-*) ;; 14080 *) break;; 14081 esac 14082done 14083cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14084 14085 case $host_os in 14086 cygwin* | mingw* | pw32*) 14087 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14088 # When not using gcc, we currently assume that we are using 14089 # Microsoft Visual C++. 14090 if test "$GCC" != yes; then 14091 with_gnu_ld=no 14092 fi 14093 ;; 14094 interix*) 14095 # we just hope/assume this is gcc and not c89 (= MSVC++) 14096 with_gnu_ld=yes 14097 ;; 14098 openbsd*) 14099 with_gnu_ld=no 14100 ;; 14101 esac 14102 14103 ld_shlibs_F77=yes 14104 if test "$with_gnu_ld" = yes; then 14105 # If archive_cmds runs LD, not CC, wlarc should be empty 14106 wlarc='${wl}' 14107 14108 # Set some defaults for GNU ld with shared library support. These 14109 # are reset later if shared libraries are not supported. Putting them 14110 # here allows them to be overridden if necessary. 14111 runpath_var=LD_RUN_PATH 14112 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14113 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14114 # ancient GNU ld didn't support --whole-archive et. al. 14115 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14116 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14117 else 14118 whole_archive_flag_spec_F77= 14119 fi 14120 supports_anon_versioning=no 14121 case `$LD -v 2>/dev/null` in 14122 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14123 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14124 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14125 *\ 2.11.*) ;; # other 2.11 versions 14126 *) supports_anon_versioning=yes ;; 14127 esac 14128 14129 # See if GNU ld supports shared libraries. 14130 case $host_os in 14131 aix3* | aix4* | aix5*) 14132 # On AIX/PPC, the GNU linker is very broken 14133 if test "$host_cpu" != ia64; then 14134 ld_shlibs_F77=no 14135 cat <<EOF 1>&2 14136 14137*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14138*** to be unable to reliably create shared libraries on AIX. 14139*** Therefore, libtool is disabling shared libraries support. If you 14140*** really care for shared libraries, you may want to modify your PATH 14141*** so that a non-GNU linker is found, and then restart. 14142 14143EOF 14144 fi 14145 ;; 14146 14147 amigaos*) 14148 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)' 14149 hardcode_libdir_flag_spec_F77='-L$libdir' 14150 hardcode_minus_L_F77=yes 14151 14152 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14153 # that the semantics of dynamic libraries on AmigaOS, at least up 14154 # to version 4, is to share data among multiple programs linked 14155 # with the same dynamic library. Since this doesn't match the 14156 # behavior of shared libraries on other platforms, we can't use 14157 # them. 14158 ld_shlibs_F77=no 14159 ;; 14160 14161 beos*) 14162 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14163 allow_undefined_flag_F77=unsupported 14164 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14165 # support --undefined. This deserves some investigation. FIXME 14166 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14167 else 14168 ld_shlibs_F77=no 14169 fi 14170 ;; 14171 14172 cygwin* | mingw* | pw32*) 14173 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14174 # as there is no search path for DLLs. 14175 hardcode_libdir_flag_spec_F77='-L$libdir' 14176 allow_undefined_flag_F77=unsupported 14177 always_export_symbols_F77=no 14178 enable_shared_with_static_runtimes_F77=yes 14179 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 14180 14181 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14182 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14183 # If the export-symbols file already is a .def file (1st line 14184 # is EXPORTS), use it as is; otherwise, prepend... 14185 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14186 cp $export_symbols $output_objdir/$soname.def; 14187 else 14188 echo EXPORTS > $output_objdir/$soname.def; 14189 cat $export_symbols >> $output_objdir/$soname.def; 14190 fi~ 14191 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14192 else 14193 ld_shlibs_F77=no 14194 fi 14195 ;; 14196 14197 interix3*) 14198 hardcode_direct_F77=no 14199 hardcode_shlibpath_var_F77=no 14200 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14201 export_dynamic_flag_spec_F77='${wl}-E' 14202 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14203 # Instead, shared libraries are loaded at an image base (0x10000000 by 14204 # default) and relocated if they conflict, which is a slow very memory 14205 # consuming and fragmenting process. To avoid this, we pick a random, 14206 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14207 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14208 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' 14209 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' 14210 ;; 14211 14212 linux*) 14213 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14214 tmp_addflag= 14215 case $cc_basename,$host_cpu in 14216 pgcc*) # Portland Group C compiler 14217 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' 14218 tmp_addflag=' $pic_flag' 14219 ;; 14220 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14221 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' 14222 tmp_addflag=' $pic_flag -Mnomain' ;; 14223 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14224 tmp_addflag=' -i_dynamic' ;; 14225 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14226 tmp_addflag=' -i_dynamic -nofor_main' ;; 14227 ifc* | ifort*) # Intel Fortran compiler 14228 tmp_addflag=' -nofor_main' ;; 14229 esac 14230 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14231 14232 if test $supports_anon_versioning = yes; then 14233 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14234 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14235 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14236 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14237 fi 14238 else 14239 ld_shlibs_F77=no 14240 fi 14241 ;; 14242 14243 netbsd*) 14244 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14245 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14246 wlarc= 14247 else 14248 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14249 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14250 fi 14251 ;; 14252 14253 solaris*) 14254 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14255 ld_shlibs_F77=no 14256 cat <<EOF 1>&2 14257 14258*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14259*** create shared libraries on Solaris systems. Therefore, libtool 14260*** is disabling shared libraries support. We urge you to upgrade GNU 14261*** binutils to release 2.9.1 or newer. Another option is to modify 14262*** your PATH or compiler configuration so that the native linker is 14263*** used, and then restart. 14264 14265EOF 14266 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14267 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14268 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14269 else 14270 ld_shlibs_F77=no 14271 fi 14272 ;; 14273 14274 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14275 case `$LD -v 2>&1` in 14276 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14277 ld_shlibs_F77=no 14278 cat <<_LT_EOF 1>&2 14279 14280*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 14281*** reliably create shared libraries on SCO systems. Therefore, libtool 14282*** is disabling shared libraries support. We urge you to upgrade GNU 14283*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14284*** your PATH or compiler configuration so that the native linker is 14285*** used, and then restart. 14286 14287_LT_EOF 14288 ;; 14289 *) 14290 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14291 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 14292 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 14293 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 14294 else 14295 ld_shlibs_F77=no 14296 fi 14297 ;; 14298 esac 14299 ;; 14300 14301 sunos4*) 14302 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14303 wlarc= 14304 hardcode_direct_F77=yes 14305 hardcode_shlibpath_var_F77=no 14306 ;; 14307 14308 *) 14309 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14310 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14311 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14312 else 14313 ld_shlibs_F77=no 14314 fi 14315 ;; 14316 esac 14317 14318 if test "$ld_shlibs_F77" = no; then 14319 runpath_var= 14320 hardcode_libdir_flag_spec_F77= 14321 export_dynamic_flag_spec_F77= 14322 whole_archive_flag_spec_F77= 14323 fi 14324 else 14325 # PORTME fill in a description of your system's linker (not GNU ld) 14326 case $host_os in 14327 aix3*) 14328 allow_undefined_flag_F77=unsupported 14329 always_export_symbols_F77=yes 14330 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' 14331 # Note: this linker hardcodes the directories in LIBPATH if there 14332 # are no directories specified by -L. 14333 hardcode_minus_L_F77=yes 14334 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 14335 # Neither direct hardcoding nor static linking is supported with a 14336 # broken collect2. 14337 hardcode_direct_F77=unsupported 14338 fi 14339 ;; 14340 14341 aix4* | aix5*) 14342 if test "$host_cpu" = ia64; then 14343 # On IA64, the linker does run time linking by default, so we don't 14344 # have to do anything special. 14345 aix_use_runtimelinking=no 14346 exp_sym_flag='-Bexport' 14347 no_entry_flag="" 14348 else 14349 # If we're using GNU nm, then we don't want the "-C" option. 14350 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14351 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14352 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' 14353 else 14354 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' 14355 fi 14356 aix_use_runtimelinking=no 14357 14358 # Test if we are trying to use run time linking or normal 14359 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14360 # need to do runtime linking. 14361 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 14362 for ld_flag in $LDFLAGS; do 14363 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14364 aix_use_runtimelinking=yes 14365 break 14366 fi 14367 done 14368 ;; 14369 esac 14370 14371 exp_sym_flag='-bexport' 14372 no_entry_flag='-bnoentry' 14373 fi 14374 14375 # When large executables or shared objects are built, AIX ld can 14376 # have problems creating the table of contents. If linking a library 14377 # or program results in "error TOC overflow" add -mminimal-toc to 14378 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14379 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14380 14381 archive_cmds_F77='' 14382 hardcode_direct_F77=yes 14383 hardcode_libdir_separator_F77=':' 14384 link_all_deplibs_F77=yes 14385 14386 if test "$GCC" = yes; then 14387 case $host_os in aix4.[012]|aix4.[012].*) 14388 # We only want to do this on AIX 4.2 and lower, the check 14389 # below for broken collect2 doesn't work under 4.3+ 14390 collect2name=`${CC} -print-prog-name=collect2` 14391 if test -f "$collect2name" && \ 14392 strings "$collect2name" | grep resolve_lib_name >/dev/null 14393 then 14394 # We have reworked collect2 14395 hardcode_direct_F77=yes 14396 else 14397 # We have old collect2 14398 hardcode_direct_F77=unsupported 14399 # It fails to find uninstalled libraries when the uninstalled 14400 # path is not listed in the libpath. Setting hardcode_minus_L 14401 # to unsupported forces relinking 14402 hardcode_minus_L_F77=yes 14403 hardcode_libdir_flag_spec_F77='-L$libdir' 14404 hardcode_libdir_separator_F77= 14405 fi 14406 ;; 14407 esac 14408 shared_flag='-shared' 14409 if test "$aix_use_runtimelinking" = yes; then 14410 shared_flag="$shared_flag "'${wl}-G' 14411 fi 14412 else 14413 # not using gcc 14414 if test "$host_cpu" = ia64; then 14415 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14416 # chokes on -Wl,-G. The following line is correct: 14417 shared_flag='-G' 14418 else 14419 if test "$aix_use_runtimelinking" = yes; then 14420 shared_flag='${wl}-G' 14421 else 14422 shared_flag='${wl}-bM:SRE' 14423 fi 14424 fi 14425 fi 14426 14427 # It seems that -bexpall does not export symbols beginning with 14428 # underscore (_), so it is better to generate a list of symbols to export. 14429 always_export_symbols_F77=yes 14430 if test "$aix_use_runtimelinking" = yes; then 14431 # Warning - without using the other runtime loading flags (-brtl), 14432 # -berok will link without error, but may produce a broken library. 14433 allow_undefined_flag_F77='-berok' 14434 # Determine the default libpath from the value encoded in an empty executable. 14435 cat >conftest.$ac_ext <<_ACEOF 14436 program main 14437 14438 end 14439_ACEOF 14440rm -f conftest.$ac_objext conftest$ac_exeext 14441if { (ac_try="$ac_link" 14442case "(($ac_try" in 14443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14444 *) ac_try_echo=$ac_try;; 14445esac 14446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14447 (eval "$ac_link") 2>conftest.er1 14448 ac_status=$? 14449 grep -v '^ *+' conftest.er1 >conftest.err 14450 rm -f conftest.er1 14451 cat conftest.err >&5 14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14453 (exit $ac_status); } && { 14454 test -z "$ac_f77_werror_flag" || 14455 test ! -s conftest.err 14456 } && test -s conftest$ac_exeext && 14457 $as_test_x conftest$ac_exeext; then 14458 14459aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14460}'` 14461# Check for a 64-bit object if we didn't find anything. 14462if 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; } 14463}'`; fi 14464else 14465 echo "$as_me: failed program was:" >&5 14466sed 's/^/| /' conftest.$ac_ext >&5 14467 14468 14469fi 14470 14471rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14472 conftest$ac_exeext conftest.$ac_ext 14473if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14474 14475 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14476 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" 14477 else 14478 if test "$host_cpu" = ia64; then 14479 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 14480 allow_undefined_flag_F77="-z nodefs" 14481 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" 14482 else 14483 # Determine the default libpath from the value encoded in an empty executable. 14484 cat >conftest.$ac_ext <<_ACEOF 14485 program main 14486 14487 end 14488_ACEOF 14489rm -f conftest.$ac_objext conftest$ac_exeext 14490if { (ac_try="$ac_link" 14491case "(($ac_try" in 14492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14493 *) ac_try_echo=$ac_try;; 14494esac 14495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14496 (eval "$ac_link") 2>conftest.er1 14497 ac_status=$? 14498 grep -v '^ *+' conftest.er1 >conftest.err 14499 rm -f conftest.er1 14500 cat conftest.err >&5 14501 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14502 (exit $ac_status); } && { 14503 test -z "$ac_f77_werror_flag" || 14504 test ! -s conftest.err 14505 } && test -s conftest$ac_exeext && 14506 $as_test_x conftest$ac_exeext; then 14507 14508aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14509}'` 14510# Check for a 64-bit object if we didn't find anything. 14511if 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; } 14512}'`; fi 14513else 14514 echo "$as_me: failed program was:" >&5 14515sed 's/^/| /' conftest.$ac_ext >&5 14516 14517 14518fi 14519 14520rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14521 conftest$ac_exeext conftest.$ac_ext 14522if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14523 14524 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14525 # Warning - without using the other run time loading flags, 14526 # -berok will link without error, but may produce a broken library. 14527 no_undefined_flag_F77=' ${wl}-bernotok' 14528 allow_undefined_flag_F77=' ${wl}-berok' 14529 # Exported symbols can be pulled into shared objects from archives 14530 whole_archive_flag_spec_F77='$convenience' 14531 archive_cmds_need_lc_F77=yes 14532 # This is similar to how AIX traditionally builds its shared libraries. 14533 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' 14534 fi 14535 fi 14536 ;; 14537 14538 amigaos*) 14539 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)' 14540 hardcode_libdir_flag_spec_F77='-L$libdir' 14541 hardcode_minus_L_F77=yes 14542 # see comment about different semantics on the GNU ld section 14543 ld_shlibs_F77=no 14544 ;; 14545 14546 bsdi[45]*) 14547 export_dynamic_flag_spec_F77=-rdynamic 14548 ;; 14549 14550 cygwin* | mingw* | pw32*) 14551 # When not using gcc, we currently assume that we are using 14552 # Microsoft Visual C++. 14553 # hardcode_libdir_flag_spec is actually meaningless, as there is 14554 # no search path for DLLs. 14555 hardcode_libdir_flag_spec_F77=' ' 14556 allow_undefined_flag_F77=unsupported 14557 # Tell ltmain to make .lib files, not .a files. 14558 libext=lib 14559 # Tell ltmain to make .dll files, not .so files. 14560 shrext_cmds=".dll" 14561 # FIXME: Setting linknames here is a bad hack. 14562 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 14563 # The linker will automatically build a .lib file if we build a DLL. 14564 old_archive_From_new_cmds_F77='true' 14565 # FIXME: Should let the user specify the lib program. 14566 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 14567 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 14568 enable_shared_with_static_runtimes_F77=yes 14569 ;; 14570 14571 darwin* | rhapsody*) 14572 case $host_os in 14573 rhapsody* | darwin1.[012]) 14574 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 14575 ;; 14576 *) # Darwin 1.3 on 14577 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 14578 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14579 else 14580 case ${MACOSX_DEPLOYMENT_TARGET} in 14581 10.[012]) 14582 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14583 ;; 14584 10.*) 14585 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 14586 ;; 14587 esac 14588 fi 14589 ;; 14590 esac 14591 archive_cmds_need_lc_F77=no 14592 hardcode_direct_F77=no 14593 hardcode_automatic_F77=yes 14594 hardcode_shlibpath_var_F77=unsupported 14595 whole_archive_flag_spec_F77='' 14596 link_all_deplibs_F77=yes 14597 if test "$GCC" = yes ; then 14598 output_verbose_link_cmd='echo' 14599 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 14600 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14601 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14602 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}' 14603 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}' 14604 else 14605 case $cc_basename in 14606 xlc*) 14607 output_verbose_link_cmd='echo' 14608 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 14609 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14610 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14611 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}' 14612 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}' 14613 ;; 14614 *) 14615 ld_shlibs_F77=no 14616 ;; 14617 esac 14618 fi 14619 ;; 14620 14621 dgux*) 14622 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14623 hardcode_libdir_flag_spec_F77='-L$libdir' 14624 hardcode_shlibpath_var_F77=no 14625 ;; 14626 14627 freebsd1*) 14628 ld_shlibs_F77=no 14629 ;; 14630 14631 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14632 # support. Future versions do this automatically, but an explicit c++rt0.o 14633 # does not break anything, and helps significantly (at the cost of a little 14634 # extra space). 14635 freebsd2.2*) 14636 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14637 hardcode_libdir_flag_spec_F77='-R$libdir' 14638 hardcode_direct_F77=yes 14639 hardcode_shlibpath_var_F77=no 14640 ;; 14641 14642 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14643 freebsd2*) 14644 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14645 hardcode_direct_F77=yes 14646 hardcode_minus_L_F77=yes 14647 hardcode_shlibpath_var_F77=no 14648 ;; 14649 14650 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14651 freebsd* | kfreebsd*-gnu | dragonfly*) 14652 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 14653 hardcode_libdir_flag_spec_F77='-R$libdir' 14654 hardcode_direct_F77=yes 14655 hardcode_shlibpath_var_F77=no 14656 ;; 14657 14658 hpux9*) 14659 if test "$GCC" = yes; then 14660 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' 14661 else 14662 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' 14663 fi 14664 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14665 hardcode_libdir_separator_F77=: 14666 hardcode_direct_F77=yes 14667 14668 # hardcode_minus_L: Not really in the search PATH, 14669 # but as the default location of the library. 14670 hardcode_minus_L_F77=yes 14671 export_dynamic_flag_spec_F77='${wl}-E' 14672 ;; 14673 14674 hpux10*) 14675 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14676 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14677 else 14678 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14679 fi 14680 if test "$with_gnu_ld" = no; then 14681 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14682 hardcode_libdir_separator_F77=: 14683 14684 hardcode_direct_F77=yes 14685 export_dynamic_flag_spec_F77='${wl}-E' 14686 14687 # hardcode_minus_L: Not really in the search PATH, 14688 # but as the default location of the library. 14689 hardcode_minus_L_F77=yes 14690 fi 14691 ;; 14692 14693 hpux11*) 14694 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14695 case $host_cpu in 14696 hppa*64*) 14697 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14698 ;; 14699 ia64*) 14700 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14701 ;; 14702 *) 14703 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14704 ;; 14705 esac 14706 else 14707 case $host_cpu in 14708 hppa*64*) 14709 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14710 ;; 14711 ia64*) 14712 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14713 ;; 14714 *) 14715 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14716 ;; 14717 esac 14718 fi 14719 if test "$with_gnu_ld" = no; then 14720 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14721 hardcode_libdir_separator_F77=: 14722 14723 case $host_cpu in 14724 hppa*64*|ia64*) 14725 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 14726 hardcode_direct_F77=no 14727 hardcode_shlibpath_var_F77=no 14728 ;; 14729 *) 14730 hardcode_direct_F77=yes 14731 export_dynamic_flag_spec_F77='${wl}-E' 14732 14733 # hardcode_minus_L: Not really in the search PATH, 14734 # but as the default location of the library. 14735 hardcode_minus_L_F77=yes 14736 ;; 14737 esac 14738 fi 14739 ;; 14740 14741 irix5* | irix6* | nonstopux*) 14742 if test "$GCC" = yes; then 14743 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' 14744 else 14745 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' 14746 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 14747 fi 14748 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14749 hardcode_libdir_separator_F77=: 14750 link_all_deplibs_F77=yes 14751 ;; 14752 14753 netbsd*) 14754 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14755 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14756 else 14757 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14758 fi 14759 hardcode_libdir_flag_spec_F77='-R$libdir' 14760 hardcode_direct_F77=yes 14761 hardcode_shlibpath_var_F77=no 14762 ;; 14763 14764 newsos6) 14765 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14766 hardcode_direct_F77=yes 14767 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14768 hardcode_libdir_separator_F77=: 14769 hardcode_shlibpath_var_F77=no 14770 ;; 14771 14772 openbsd*) 14773 hardcode_direct_F77=yes 14774 hardcode_shlibpath_var_F77=no 14775 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14776 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14777 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 14778 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14779 export_dynamic_flag_spec_F77='${wl}-E' 14780 else 14781 case $host_os in 14782 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 14783 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14784 hardcode_libdir_flag_spec_F77='-R$libdir' 14785 ;; 14786 *) 14787 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14788 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14789 ;; 14790 esac 14791 fi 14792 ;; 14793 14794 os2*) 14795 hardcode_libdir_flag_spec_F77='-L$libdir' 14796 hardcode_minus_L_F77=yes 14797 allow_undefined_flag_F77=unsupported 14798 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' 14799 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 14800 ;; 14801 14802 osf3*) 14803 if test "$GCC" = yes; then 14804 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14805 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' 14806 else 14807 allow_undefined_flag_F77=' -expect_unresolved \*' 14808 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' 14809 fi 14810 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14811 hardcode_libdir_separator_F77=: 14812 ;; 14813 14814 osf4* | osf5*) # as osf3* with the addition of -msym flag 14815 if test "$GCC" = yes; then 14816 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14817 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' 14818 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14819 else 14820 allow_undefined_flag_F77=' -expect_unresolved \*' 14821 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' 14822 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~ 14823 $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' 14824 14825 # Both c and cxx compiler support -rpath directly 14826 hardcode_libdir_flag_spec_F77='-rpath $libdir' 14827 fi 14828 hardcode_libdir_separator_F77=: 14829 ;; 14830 14831 solaris*) 14832 no_undefined_flag_F77=' -z text' 14833 if test "$GCC" = yes; then 14834 wlarc='${wl}' 14835 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14836 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14837 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 14838 else 14839 wlarc='' 14840 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14841 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14842 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14843 fi 14844 hardcode_libdir_flag_spec_F77='-R$libdir' 14845 hardcode_shlibpath_var_F77=no 14846 case $host_os in 14847 solaris2.[0-5] | solaris2.[0-5].*) ;; 14848 *) 14849 # The compiler driver will combine linker options so we 14850 # cannot just pass the convience library names through 14851 # without $wl, iff we do not link with $LD. 14852 # Luckily, gcc supports the same syntax we need for Sun Studio. 14853 # Supported since Solaris 2.6 (maybe 2.5.1?) 14854 case $wlarc in 14855 '') 14856 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 14857 *) 14858 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' ;; 14859 esac ;; 14860 esac 14861 link_all_deplibs_F77=yes 14862 ;; 14863 14864 sunos4*) 14865 if test "x$host_vendor" = xsequent; then 14866 # Use $CC to link under sequent, because it throws in some extra .o 14867 # files that make .init and .fini sections work. 14868 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 14869 else 14870 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 14871 fi 14872 hardcode_libdir_flag_spec_F77='-L$libdir' 14873 hardcode_direct_F77=yes 14874 hardcode_minus_L_F77=yes 14875 hardcode_shlibpath_var_F77=no 14876 ;; 14877 14878 sysv4) 14879 case $host_vendor in 14880 sni) 14881 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14882 hardcode_direct_F77=yes # is this really true??? 14883 ;; 14884 siemens) 14885 ## LD is ld it makes a PLAMLIB 14886 ## CC just makes a GrossModule. 14887 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14888 reload_cmds_F77='$CC -r -o $output$reload_objs' 14889 hardcode_direct_F77=no 14890 ;; 14891 motorola) 14892 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14893 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 14894 ;; 14895 esac 14896 runpath_var='LD_RUN_PATH' 14897 hardcode_shlibpath_var_F77=no 14898 ;; 14899 14900 sysv4.3*) 14901 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14902 hardcode_shlibpath_var_F77=no 14903 export_dynamic_flag_spec_F77='-Bexport' 14904 ;; 14905 14906 sysv4*MP*) 14907 if test -d /usr/nec; then 14908 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14909 hardcode_shlibpath_var_F77=no 14910 runpath_var=LD_RUN_PATH 14911 hardcode_runpath_var=yes 14912 ld_shlibs_F77=yes 14913 fi 14914 ;; 14915 14916 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 14917 no_undefined_flag_F77='${wl}-z,text' 14918 archive_cmds_need_lc_F77=no 14919 hardcode_shlibpath_var_F77=no 14920 runpath_var='LD_RUN_PATH' 14921 14922 if test "$GCC" = yes; then 14923 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14924 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14925 else 14926 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14927 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14928 fi 14929 ;; 14930 14931 sysv5* | sco3.2v5* | sco5v6*) 14932 # Note: We can NOT use -z defs as we might desire, because we do not 14933 # link with -lc, and that would cause any symbols used from libc to 14934 # always be unresolved, which means just about no library would 14935 # ever link correctly. If we're not using GNU ld we use -z text 14936 # though, which does catch some bad symbols but isn't as heavy-handed 14937 # as -z defs. 14938 no_undefined_flag_F77='${wl}-z,text' 14939 allow_undefined_flag_F77='${wl}-z,nodefs' 14940 archive_cmds_need_lc_F77=no 14941 hardcode_shlibpath_var_F77=no 14942 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 14943 hardcode_libdir_separator_F77=':' 14944 link_all_deplibs_F77=yes 14945 export_dynamic_flag_spec_F77='${wl}-Bexport' 14946 runpath_var='LD_RUN_PATH' 14947 14948 if test "$GCC" = yes; then 14949 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14950 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14951 else 14952 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14953 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14954 fi 14955 ;; 14956 14957 uts4*) 14958 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14959 hardcode_libdir_flag_spec_F77='-L$libdir' 14960 hardcode_shlibpath_var_F77=no 14961 ;; 14962 14963 *) 14964 ld_shlibs_F77=no 14965 ;; 14966 esac 14967 fi 14968 14969{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 14970echo "${ECHO_T}$ld_shlibs_F77" >&6; } 14971test "$ld_shlibs_F77" = no && can_build_shared=no 14972 14973# 14974# Do we need to explicitly link libc? 14975# 14976case "x$archive_cmds_need_lc_F77" in 14977x|xyes) 14978 # Assume -lc should be added 14979 archive_cmds_need_lc_F77=yes 14980 14981 if test "$enable_shared" = yes && test "$GCC" = yes; then 14982 case $archive_cmds_F77 in 14983 *'~'*) 14984 # FIXME: we may have to deal with multi-command sequences. 14985 ;; 14986 '$CC '*) 14987 # Test whether the compiler implicitly links with -lc since on some 14988 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14989 # to ld, don't add -lc before -lgcc. 14990 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 14991echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 14992 $rm conftest* 14993 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14994 14995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14996 (eval $ac_compile) 2>&5 14997 ac_status=$? 14998 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14999 (exit $ac_status); } 2>conftest.err; then 15000 soname=conftest 15001 lib=conftest 15002 libobjs=conftest.$ac_objext 15003 deplibs= 15004 wl=$lt_prog_compiler_wl_F77 15005 pic_flag=$lt_prog_compiler_pic_F77 15006 compiler_flags=-v 15007 linker_flags=-v 15008 verstring= 15009 output_objdir=. 15010 libname=conftest 15011 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15012 allow_undefined_flag_F77= 15013 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15014 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15015 ac_status=$? 15016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15017 (exit $ac_status); } 15018 then 15019 archive_cmds_need_lc_F77=no 15020 else 15021 archive_cmds_need_lc_F77=yes 15022 fi 15023 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15024 else 15025 cat conftest.err 1>&5 15026 fi 15027 $rm conftest* 15028 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15029echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } 15030 ;; 15031 esac 15032 fi 15033 ;; 15034esac 15035 15036{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15037echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 15038library_names_spec= 15039libname_spec='lib$name' 15040soname_spec= 15041shrext_cmds=".so" 15042postinstall_cmds= 15043postuninstall_cmds= 15044finish_cmds= 15045finish_eval= 15046shlibpath_var= 15047shlibpath_overrides_runpath=unknown 15048version_type=none 15049dynamic_linker="$host_os ld.so" 15050sys_lib_dlsearch_path_spec="/lib /usr/lib" 15051if test "$GCC" = yes; then 15052 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15053 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 15054 # if the path contains ";" then we assume it to be the separator 15055 # otherwise default to the standard path separator (i.e. ":") - it is 15056 # assumed that no part of a normal pathname contains ";" but that should 15057 # okay in the real world where ";" in dirpaths is itself problematic. 15058 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15059 else 15060 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15061 fi 15062else 15063 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15064fi 15065need_lib_prefix=unknown 15066hardcode_into_libs=no 15067 15068# when you set need_version to no, make sure it does not cause -set_version 15069# flags to be left without arguments 15070need_version=unknown 15071 15072case $host_os in 15073aix3*) 15074 version_type=linux 15075 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15076 shlibpath_var=LIBPATH 15077 15078 # AIX 3 has no versioning support, so we append a major version to the name. 15079 soname_spec='${libname}${release}${shared_ext}$major' 15080 ;; 15081 15082aix4* | aix5*) 15083 version_type=linux 15084 need_lib_prefix=no 15085 need_version=no 15086 hardcode_into_libs=yes 15087 if test "$host_cpu" = ia64; then 15088 # AIX 5 supports IA64 15089 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15090 shlibpath_var=LD_LIBRARY_PATH 15091 else 15092 # With GCC up to 2.95.x, collect2 would create an import file 15093 # for dependence libraries. The import file would start with 15094 # the line `#! .'. This would cause the generated library to 15095 # depend on `.', always an invalid library. This was fixed in 15096 # development snapshots of GCC prior to 3.0. 15097 case $host_os in 15098 aix4 | aix4.[01] | aix4.[01].*) 15099 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15100 echo ' yes ' 15101 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15102 : 15103 else 15104 can_build_shared=no 15105 fi 15106 ;; 15107 esac 15108 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15109 # soname into executable. Probably we can add versioning support to 15110 # collect2, so additional links can be useful in future. 15111 if test "$aix_use_runtimelinking" = yes; then 15112 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15113 # instead of lib<name>.a to let people know that these are not 15114 # typical AIX shared libraries. 15115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15116 else 15117 # We preserve .a as extension for shared libraries through AIX4.2 15118 # and later when we are not doing run time linking. 15119 library_names_spec='${libname}${release}.a $libname.a' 15120 soname_spec='${libname}${release}${shared_ext}$major' 15121 fi 15122 shlibpath_var=LIBPATH 15123 fi 15124 ;; 15125 15126amigaos*) 15127 library_names_spec='$libname.ixlibrary $libname.a' 15128 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15129 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' 15130 ;; 15131 15132beos*) 15133 library_names_spec='${libname}${shared_ext}' 15134 dynamic_linker="$host_os ld.so" 15135 shlibpath_var=LIBRARY_PATH 15136 ;; 15137 15138bsdi[45]*) 15139 version_type=linux 15140 need_version=no 15141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15142 soname_spec='${libname}${release}${shared_ext}$major' 15143 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15144 shlibpath_var=LD_LIBRARY_PATH 15145 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15146 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15147 # the default ld.so.conf also contains /usr/contrib/lib and 15148 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15149 # libtool to hard-code these into programs 15150 ;; 15151 15152cygwin* | mingw* | pw32*) 15153 version_type=windows 15154 shrext_cmds=".dll" 15155 need_version=no 15156 need_lib_prefix=no 15157 15158 case $GCC,$host_os in 15159 yes,cygwin* | yes,mingw* | yes,pw32*) 15160 library_names_spec='$libname.dll.a' 15161 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15162 postinstall_cmds='base_file=`basename \${file}`~ 15163 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15164 dldir=$destdir/`dirname \$dlpath`~ 15165 test -d \$dldir || mkdir -p \$dldir~ 15166 $install_prog $dir/$dlname \$dldir/$dlname~ 15167 chmod a+x \$dldir/$dlname' 15168 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15169 dlpath=$dir/\$dldll~ 15170 $rm \$dlpath' 15171 shlibpath_overrides_runpath=yes 15172 15173 case $host_os in 15174 cygwin*) 15175 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15176 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15177 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15178 ;; 15179 mingw*) 15180 # MinGW DLLs use traditional 'lib' prefix 15181 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15182 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15183 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15184 # It is most probably a Windows format PATH printed by 15185 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15186 # path with ; separators, and with drive letters. We can handle the 15187 # drive letters (cygwin fileutils understands them), so leave them, 15188 # especially as we might pass files found there to a mingw objdump, 15189 # which wouldn't understand a cygwinified path. Ahh. 15190 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15191 else 15192 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15193 fi 15194 ;; 15195 pw32*) 15196 # pw32 DLLs use 'pw' prefix rather than 'lib' 15197 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15198 ;; 15199 esac 15200 ;; 15201 15202 *) 15203 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15204 ;; 15205 esac 15206 dynamic_linker='Win32 ld.exe' 15207 # FIXME: first we should search . and the directory the executable is in 15208 shlibpath_var=PATH 15209 ;; 15210 15211darwin* | rhapsody*) 15212 dynamic_linker="$host_os dyld" 15213 version_type=darwin 15214 need_lib_prefix=no 15215 need_version=no 15216 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15217 soname_spec='${libname}${release}${major}$shared_ext' 15218 shlibpath_overrides_runpath=yes 15219 shlibpath_var=DYLD_LIBRARY_PATH 15220 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15221 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 15222 if test "$GCC" = yes; then 15223 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"` 15224 else 15225 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 15226 fi 15227 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15228 ;; 15229 15230dgux*) 15231 version_type=linux 15232 need_lib_prefix=no 15233 need_version=no 15234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15235 soname_spec='${libname}${release}${shared_ext}$major' 15236 shlibpath_var=LD_LIBRARY_PATH 15237 ;; 15238 15239freebsd1*) 15240 dynamic_linker=no 15241 ;; 15242 15243kfreebsd*-gnu) 15244 version_type=linux 15245 need_lib_prefix=no 15246 need_version=no 15247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15248 soname_spec='${libname}${release}${shared_ext}$major' 15249 shlibpath_var=LD_LIBRARY_PATH 15250 shlibpath_overrides_runpath=no 15251 hardcode_into_libs=yes 15252 dynamic_linker='GNU ld.so' 15253 ;; 15254 15255freebsd* | dragonfly*) 15256 # DragonFly does not have aout. When/if they implement a new 15257 # versioning mechanism, adjust this. 15258 if test -x /usr/bin/objformat; then 15259 objformat=`/usr/bin/objformat` 15260 else 15261 case $host_os in 15262 freebsd[123]*) objformat=aout ;; 15263 *) objformat=elf ;; 15264 esac 15265 fi 15266 version_type=freebsd-$objformat 15267 case $version_type in 15268 freebsd-elf*) 15269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15270 need_version=no 15271 need_lib_prefix=no 15272 ;; 15273 freebsd-*) 15274 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15275 need_version=yes 15276 ;; 15277 esac 15278 shlibpath_var=LD_LIBRARY_PATH 15279 case $host_os in 15280 freebsd2*) 15281 shlibpath_overrides_runpath=yes 15282 ;; 15283 freebsd3.[01]* | freebsdelf3.[01]*) 15284 shlibpath_overrides_runpath=yes 15285 hardcode_into_libs=yes 15286 ;; 15287 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15288 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15289 shlibpath_overrides_runpath=no 15290 hardcode_into_libs=yes 15291 ;; 15292 freebsd*) # from 4.6 on 15293 shlibpath_overrides_runpath=yes 15294 hardcode_into_libs=yes 15295 ;; 15296 esac 15297 ;; 15298 15299gnu*) 15300 version_type=linux 15301 need_lib_prefix=no 15302 need_version=no 15303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15304 soname_spec='${libname}${release}${shared_ext}$major' 15305 shlibpath_var=LD_LIBRARY_PATH 15306 hardcode_into_libs=yes 15307 ;; 15308 15309hpux9* | hpux10* | hpux11*) 15310 # Give a soname corresponding to the major version so that dld.sl refuses to 15311 # link against other versions. 15312 version_type=sunos 15313 need_lib_prefix=no 15314 need_version=no 15315 case $host_cpu in 15316 ia64*) 15317 shrext_cmds='.so' 15318 hardcode_into_libs=yes 15319 dynamic_linker="$host_os dld.so" 15320 shlibpath_var=LD_LIBRARY_PATH 15321 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15323 soname_spec='${libname}${release}${shared_ext}$major' 15324 if test "X$HPUX_IA64_MODE" = X32; then 15325 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15326 else 15327 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15328 fi 15329 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15330 ;; 15331 hppa*64*) 15332 shrext_cmds='.sl' 15333 hardcode_into_libs=yes 15334 dynamic_linker="$host_os dld.sl" 15335 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15336 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15338 soname_spec='${libname}${release}${shared_ext}$major' 15339 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15340 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15341 ;; 15342 *) 15343 shrext_cmds='.sl' 15344 dynamic_linker="$host_os dld.sl" 15345 shlibpath_var=SHLIB_PATH 15346 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15348 soname_spec='${libname}${release}${shared_ext}$major' 15349 ;; 15350 esac 15351 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15352 postinstall_cmds='chmod 555 $lib' 15353 ;; 15354 15355interix3*) 15356 version_type=linux 15357 need_lib_prefix=no 15358 need_version=no 15359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15360 soname_spec='${libname}${release}${shared_ext}$major' 15361 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15362 shlibpath_var=LD_LIBRARY_PATH 15363 shlibpath_overrides_runpath=no 15364 hardcode_into_libs=yes 15365 ;; 15366 15367irix5* | irix6* | nonstopux*) 15368 case $host_os in 15369 nonstopux*) version_type=nonstopux ;; 15370 *) 15371 if test "$lt_cv_prog_gnu_ld" = yes; then 15372 version_type=linux 15373 else 15374 version_type=irix 15375 fi ;; 15376 esac 15377 need_lib_prefix=no 15378 need_version=no 15379 soname_spec='${libname}${release}${shared_ext}$major' 15380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15381 case $host_os in 15382 irix5* | nonstopux*) 15383 libsuff= shlibsuff= 15384 ;; 15385 *) 15386 case $LD in # libtool.m4 will add one of these switches to LD 15387 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15388 libsuff= shlibsuff= libmagic=32-bit;; 15389 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15390 libsuff=32 shlibsuff=N32 libmagic=N32;; 15391 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15392 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15393 *) libsuff= shlibsuff= libmagic=never-match;; 15394 esac 15395 ;; 15396 esac 15397 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15398 shlibpath_overrides_runpath=no 15399 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15400 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15401 hardcode_into_libs=yes 15402 ;; 15403 15404# No shared lib support for Linux oldld, aout, or coff. 15405linux*oldld* | linux*aout* | linux*coff*) 15406 dynamic_linker=no 15407 ;; 15408 15409# This must be Linux ELF. 15410linux*) 15411 version_type=linux 15412 need_lib_prefix=no 15413 need_version=no 15414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15415 soname_spec='${libname}${release}${shared_ext}$major' 15416 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15417 shlibpath_var=LD_LIBRARY_PATH 15418 shlibpath_overrides_runpath=no 15419 # This implies no fast_install, which is unacceptable. 15420 # Some rework will be needed to allow for fast_install 15421 # before this can be enabled. 15422 hardcode_into_libs=yes 15423 15424 # Append ld.so.conf contents to the search path 15425 if test -f /etc/ld.so.conf; then 15426 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' ' '` 15427 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15428 fi 15429 15430 # We used to test for /lib/ld.so.1 and disable shared libraries on 15431 # powerpc, because MkLinux only supported shared libraries with the 15432 # GNU dynamic linker. Since this was broken with cross compilers, 15433 # most powerpc-linux boxes support dynamic linking these days and 15434 # people can always --disable-shared, the test was removed, and we 15435 # assume the GNU/Linux dynamic linker is in use. 15436 dynamic_linker='GNU/Linux ld.so' 15437 ;; 15438 15439knetbsd*-gnu) 15440 version_type=linux 15441 need_lib_prefix=no 15442 need_version=no 15443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15444 soname_spec='${libname}${release}${shared_ext}$major' 15445 shlibpath_var=LD_LIBRARY_PATH 15446 shlibpath_overrides_runpath=no 15447 hardcode_into_libs=yes 15448 dynamic_linker='GNU ld.so' 15449 ;; 15450 15451netbsd*) 15452 version_type=sunos 15453 need_lib_prefix=no 15454 need_version=no 15455 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15457 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15458 dynamic_linker='NetBSD (a.out) ld.so' 15459 else 15460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15461 soname_spec='${libname}${release}${shared_ext}$major' 15462 dynamic_linker='NetBSD ld.elf_so' 15463 fi 15464 shlibpath_var=LD_LIBRARY_PATH 15465 shlibpath_overrides_runpath=yes 15466 hardcode_into_libs=yes 15467 ;; 15468 15469newsos6) 15470 version_type=linux 15471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15472 shlibpath_var=LD_LIBRARY_PATH 15473 shlibpath_overrides_runpath=yes 15474 ;; 15475 15476nto-qnx*) 15477 version_type=linux 15478 need_lib_prefix=no 15479 need_version=no 15480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15481 soname_spec='${libname}${release}${shared_ext}$major' 15482 shlibpath_var=LD_LIBRARY_PATH 15483 shlibpath_overrides_runpath=yes 15484 ;; 15485 15486openbsd*) 15487 version_type=sunos 15488 sys_lib_dlsearch_path_spec="/usr/lib" 15489 need_lib_prefix=no 15490 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15491 case $host_os in 15492 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15493 *) need_version=no ;; 15494 esac 15495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15496 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15497 shlibpath_var=LD_LIBRARY_PATH 15498 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15499 case $host_os in 15500 openbsd2.[89] | openbsd2.[89].*) 15501 shlibpath_overrides_runpath=no 15502 ;; 15503 *) 15504 shlibpath_overrides_runpath=yes 15505 ;; 15506 esac 15507 else 15508 shlibpath_overrides_runpath=yes 15509 fi 15510 ;; 15511 15512os2*) 15513 libname_spec='$name' 15514 shrext_cmds=".dll" 15515 need_lib_prefix=no 15516 library_names_spec='$libname${shared_ext} $libname.a' 15517 dynamic_linker='OS/2 ld.exe' 15518 shlibpath_var=LIBPATH 15519 ;; 15520 15521osf3* | osf4* | osf5*) 15522 version_type=osf 15523 need_lib_prefix=no 15524 need_version=no 15525 soname_spec='${libname}${release}${shared_ext}$major' 15526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15527 shlibpath_var=LD_LIBRARY_PATH 15528 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15529 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15530 ;; 15531 15532solaris*) 15533 version_type=linux 15534 need_lib_prefix=no 15535 need_version=no 15536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15537 soname_spec='${libname}${release}${shared_ext}$major' 15538 shlibpath_var=LD_LIBRARY_PATH 15539 shlibpath_overrides_runpath=yes 15540 hardcode_into_libs=yes 15541 # ldd complains unless libraries are executable 15542 postinstall_cmds='chmod +x $lib' 15543 ;; 15544 15545sunos4*) 15546 version_type=sunos 15547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15548 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15549 shlibpath_var=LD_LIBRARY_PATH 15550 shlibpath_overrides_runpath=yes 15551 if test "$with_gnu_ld" = yes; then 15552 need_lib_prefix=no 15553 fi 15554 need_version=yes 15555 ;; 15556 15557sysv4 | sysv4.3*) 15558 version_type=linux 15559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15560 soname_spec='${libname}${release}${shared_ext}$major' 15561 shlibpath_var=LD_LIBRARY_PATH 15562 case $host_vendor in 15563 sni) 15564 shlibpath_overrides_runpath=no 15565 need_lib_prefix=no 15566 export_dynamic_flag_spec='${wl}-Blargedynsym' 15567 runpath_var=LD_RUN_PATH 15568 ;; 15569 siemens) 15570 need_lib_prefix=no 15571 ;; 15572 motorola) 15573 need_lib_prefix=no 15574 need_version=no 15575 shlibpath_overrides_runpath=no 15576 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15577 ;; 15578 esac 15579 ;; 15580 15581sysv4*MP*) 15582 if test -d /usr/nec ;then 15583 version_type=linux 15584 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15585 soname_spec='$libname${shared_ext}.$major' 15586 shlibpath_var=LD_LIBRARY_PATH 15587 fi 15588 ;; 15589 15590sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15591 version_type=freebsd-elf 15592 need_lib_prefix=no 15593 need_version=no 15594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15595 soname_spec='${libname}${release}${shared_ext}$major' 15596 shlibpath_var=LD_LIBRARY_PATH 15597 hardcode_into_libs=yes 15598 if test "$with_gnu_ld" = yes; then 15599 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15600 shlibpath_overrides_runpath=no 15601 else 15602 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15603 shlibpath_overrides_runpath=yes 15604 case $host_os in 15605 sco3.2v5*) 15606 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15607 ;; 15608 esac 15609 fi 15610 sys_lib_dlsearch_path_spec='/usr/lib' 15611 ;; 15612 15613uts4*) 15614 version_type=linux 15615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15616 soname_spec='${libname}${release}${shared_ext}$major' 15617 shlibpath_var=LD_LIBRARY_PATH 15618 ;; 15619 15620*) 15621 dynamic_linker=no 15622 ;; 15623esac 15624{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 15625echo "${ECHO_T}$dynamic_linker" >&6; } 15626test "$dynamic_linker" = no && can_build_shared=no 15627 15628variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15629if test "$GCC" = yes; then 15630 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15631fi 15632 15633{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 15634echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 15635hardcode_action_F77= 15636if test -n "$hardcode_libdir_flag_spec_F77" || \ 15637 test -n "$runpath_var_F77" || \ 15638 test "X$hardcode_automatic_F77" = "Xyes" ; then 15639 15640 # We can hardcode non-existant directories. 15641 if test "$hardcode_direct_F77" != no && 15642 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15643 # have to relink, otherwise we might link with an installed library 15644 # when we should be linking with a yet-to-be-installed one 15645 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 15646 test "$hardcode_minus_L_F77" != no; then 15647 # Linking always hardcodes the temporary library directory. 15648 hardcode_action_F77=relink 15649 else 15650 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15651 hardcode_action_F77=immediate 15652 fi 15653else 15654 # We cannot hardcode anything, or else we can only hardcode existing 15655 # directories. 15656 hardcode_action_F77=unsupported 15657fi 15658{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 15659echo "${ECHO_T}$hardcode_action_F77" >&6; } 15660 15661if test "$hardcode_action_F77" = relink; then 15662 # Fast installation is not supported 15663 enable_fast_install=no 15664elif test "$shlibpath_overrides_runpath" = yes || 15665 test "$enable_shared" = no; then 15666 # Fast installation is not necessary 15667 enable_fast_install=needless 15668fi 15669 15670 15671# The else clause should only fire when bootstrapping the 15672# libtool distribution, otherwise you forgot to ship ltmain.sh 15673# with your package, and you will get complaints that there are 15674# no rules to generate ltmain.sh. 15675if test -f "$ltmain"; then 15676 # See if we are running on zsh, and set the options which allow our commands through 15677 # without removal of \ escapes. 15678 if test -n "${ZSH_VERSION+set}" ; then 15679 setopt NO_GLOB_SUBST 15680 fi 15681 # Now quote all the things that may contain metacharacters while being 15682 # careful not to overquote the AC_SUBSTed values. We take copies of the 15683 # variables and quote the copies for generation of the libtool script. 15684 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 15685 SED SHELL STRIP \ 15686 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 15687 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 15688 deplibs_check_method reload_flag reload_cmds need_locks \ 15689 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 15690 lt_cv_sys_global_symbol_to_c_name_address \ 15691 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 15692 old_postinstall_cmds old_postuninstall_cmds \ 15693 compiler_F77 \ 15694 CC_F77 \ 15695 LD_F77 \ 15696 lt_prog_compiler_wl_F77 \ 15697 lt_prog_compiler_pic_F77 \ 15698 lt_prog_compiler_static_F77 \ 15699 lt_prog_compiler_no_builtin_flag_F77 \ 15700 export_dynamic_flag_spec_F77 \ 15701 thread_safe_flag_spec_F77 \ 15702 whole_archive_flag_spec_F77 \ 15703 enable_shared_with_static_runtimes_F77 \ 15704 old_archive_cmds_F77 \ 15705 old_archive_from_new_cmds_F77 \ 15706 predep_objects_F77 \ 15707 postdep_objects_F77 \ 15708 predeps_F77 \ 15709 postdeps_F77 \ 15710 compiler_lib_search_path_F77 \ 15711 archive_cmds_F77 \ 15712 archive_expsym_cmds_F77 \ 15713 postinstall_cmds_F77 \ 15714 postuninstall_cmds_F77 \ 15715 old_archive_from_expsyms_cmds_F77 \ 15716 allow_undefined_flag_F77 \ 15717 no_undefined_flag_F77 \ 15718 export_symbols_cmds_F77 \ 15719 hardcode_libdir_flag_spec_F77 \ 15720 hardcode_libdir_flag_spec_ld_F77 \ 15721 hardcode_libdir_separator_F77 \ 15722 hardcode_automatic_F77 \ 15723 module_cmds_F77 \ 15724 module_expsym_cmds_F77 \ 15725 lt_cv_prog_compiler_c_o_F77 \ 15726 exclude_expsyms_F77 \ 15727 include_expsyms_F77; do 15728 15729 case $var in 15730 old_archive_cmds_F77 | \ 15731 old_archive_from_new_cmds_F77 | \ 15732 archive_cmds_F77 | \ 15733 archive_expsym_cmds_F77 | \ 15734 module_cmds_F77 | \ 15735 module_expsym_cmds_F77 | \ 15736 old_archive_from_expsyms_cmds_F77 | \ 15737 export_symbols_cmds_F77 | \ 15738 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 15739 postinstall_cmds | postuninstall_cmds | \ 15740 old_postinstall_cmds | old_postuninstall_cmds | \ 15741 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 15742 # Double-quote double-evaled strings. 15743 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 15744 ;; 15745 *) 15746 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 15747 ;; 15748 esac 15749 done 15750 15751 case $lt_echo in 15752 *'\$0 --fallback-echo"') 15753 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 15754 ;; 15755 esac 15756 15757cfgfile="$ofile" 15758 15759 cat <<__EOF__ >> "$cfgfile" 15760# ### BEGIN LIBTOOL TAG CONFIG: $tagname 15761 15762# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15763 15764# Shell to use when invoking shell scripts. 15765SHELL=$lt_SHELL 15766 15767# Whether or not to build shared libraries. 15768build_libtool_libs=$enable_shared 15769 15770# Whether or not to build static libraries. 15771build_old_libs=$enable_static 15772 15773# Whether or not to add -lc for building shared libraries. 15774build_libtool_need_lc=$archive_cmds_need_lc_F77 15775 15776# Whether or not to disallow shared libs when runtime libs are static 15777allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 15778 15779# Whether or not to optimize for fast installation. 15780fast_install=$enable_fast_install 15781 15782# The host system. 15783host_alias=$host_alias 15784host=$host 15785host_os=$host_os 15786 15787# The build system. 15788build_alias=$build_alias 15789build=$build 15790build_os=$build_os 15791 15792# An echo program that does not interpret backslashes. 15793echo=$lt_echo 15794 15795# The archiver. 15796AR=$lt_AR 15797AR_FLAGS=$lt_AR_FLAGS 15798 15799# A C compiler. 15800LTCC=$lt_LTCC 15801 15802# LTCC compiler flags. 15803LTCFLAGS=$lt_LTCFLAGS 15804 15805# A language-specific compiler. 15806CC=$lt_compiler_F77 15807 15808# Is the compiler the GNU C compiler? 15809with_gcc=$GCC_F77 15810 15811# An ERE matcher. 15812EGREP=$lt_EGREP 15813 15814# The linker used to build libraries. 15815LD=$lt_LD_F77 15816 15817# Whether we need hard or soft links. 15818LN_S=$lt_LN_S 15819 15820# A BSD-compatible nm program. 15821NM=$lt_NM 15822 15823# A symbol stripping program 15824STRIP=$lt_STRIP 15825 15826# Used to examine libraries when file_magic_cmd begins "file" 15827MAGIC_CMD=$MAGIC_CMD 15828 15829# Used on cygwin: DLL creation program. 15830DLLTOOL="$DLLTOOL" 15831 15832# Used on cygwin: object dumper. 15833OBJDUMP="$OBJDUMP" 15834 15835# Used on cygwin: assembler. 15836AS="$AS" 15837 15838# The name of the directory that contains temporary libtool files. 15839objdir=$objdir 15840 15841# How to create reloadable object files. 15842reload_flag=$lt_reload_flag 15843reload_cmds=$lt_reload_cmds 15844 15845# How to pass a linker flag through the compiler. 15846wl=$lt_lt_prog_compiler_wl_F77 15847 15848# Object file suffix (normally "o"). 15849objext="$ac_objext" 15850 15851# Old archive suffix (normally "a"). 15852libext="$libext" 15853 15854# Shared library suffix (normally ".so"). 15855shrext_cmds='$shrext_cmds' 15856 15857# Executable file suffix (normally ""). 15858exeext="$exeext" 15859 15860# Additional compiler flags for building library objects. 15861pic_flag=$lt_lt_prog_compiler_pic_F77 15862pic_mode=$pic_mode 15863 15864# What is the maximum length of a command? 15865max_cmd_len=$lt_cv_sys_max_cmd_len 15866 15867# Does compiler simultaneously support -c and -o options? 15868compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 15869 15870# Must we lock files when doing compilation? 15871need_locks=$lt_need_locks 15872 15873# Do we need the lib prefix for modules? 15874need_lib_prefix=$need_lib_prefix 15875 15876# Do we need a version for libraries? 15877need_version=$need_version 15878 15879# Whether dlopen is supported. 15880dlopen_support=$enable_dlopen 15881 15882# Whether dlopen of programs is supported. 15883dlopen_self=$enable_dlopen_self 15884 15885# Whether dlopen of statically linked programs is supported. 15886dlopen_self_static=$enable_dlopen_self_static 15887 15888# Compiler flag to prevent dynamic linking. 15889link_static_flag=$lt_lt_prog_compiler_static_F77 15890 15891# Compiler flag to turn off builtin functions. 15892no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 15893 15894# Compiler flag to allow reflexive dlopens. 15895export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 15896 15897# Compiler flag to generate shared objects directly from archives. 15898whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 15899 15900# Compiler flag to generate thread-safe objects. 15901thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 15902 15903# Library versioning type. 15904version_type=$version_type 15905 15906# Format of library name prefix. 15907libname_spec=$lt_libname_spec 15908 15909# List of archive names. First name is the real one, the rest are links. 15910# The last name is the one that the linker finds with -lNAME. 15911library_names_spec=$lt_library_names_spec 15912 15913# The coded name of the library, if different from the real name. 15914soname_spec=$lt_soname_spec 15915 15916# Commands used to build and install an old-style archive. 15917RANLIB=$lt_RANLIB 15918old_archive_cmds=$lt_old_archive_cmds_F77 15919old_postinstall_cmds=$lt_old_postinstall_cmds 15920old_postuninstall_cmds=$lt_old_postuninstall_cmds 15921 15922# Create an old-style archive from a shared archive. 15923old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 15924 15925# Create a temporary old-style archive to link instead of a shared archive. 15926old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 15927 15928# Commands used to build and install a shared archive. 15929archive_cmds=$lt_archive_cmds_F77 15930archive_expsym_cmds=$lt_archive_expsym_cmds_F77 15931postinstall_cmds=$lt_postinstall_cmds 15932postuninstall_cmds=$lt_postuninstall_cmds 15933 15934# Commands used to build a loadable module (assumed same as above if empty) 15935module_cmds=$lt_module_cmds_F77 15936module_expsym_cmds=$lt_module_expsym_cmds_F77 15937 15938# Commands to strip libraries. 15939old_striplib=$lt_old_striplib 15940striplib=$lt_striplib 15941 15942# Dependencies to place before the objects being linked to create a 15943# shared library. 15944predep_objects=$lt_predep_objects_F77 15945 15946# Dependencies to place after the objects being linked to create a 15947# shared library. 15948postdep_objects=$lt_postdep_objects_F77 15949 15950# Dependencies to place before the objects being linked to create a 15951# shared library. 15952predeps=$lt_predeps_F77 15953 15954# Dependencies to place after the objects being linked to create a 15955# shared library. 15956postdeps=$lt_postdeps_F77 15957 15958# The library search path used internally by the compiler when linking 15959# a shared library. 15960compiler_lib_search_path=$lt_compiler_lib_search_path_F77 15961 15962# Method to check whether dependent libraries are shared objects. 15963deplibs_check_method=$lt_deplibs_check_method 15964 15965# Command to use when deplibs_check_method == file_magic. 15966file_magic_cmd=$lt_file_magic_cmd 15967 15968# Flag that allows shared libraries with undefined symbols to be built. 15969allow_undefined_flag=$lt_allow_undefined_flag_F77 15970 15971# Flag that forces no undefined symbols. 15972no_undefined_flag=$lt_no_undefined_flag_F77 15973 15974# Commands used to finish a libtool library installation in a directory. 15975finish_cmds=$lt_finish_cmds 15976 15977# Same as above, but a single script fragment to be evaled but not shown. 15978finish_eval=$lt_finish_eval 15979 15980# Take the output of nm and produce a listing of raw symbols and C names. 15981global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15982 15983# Transform the output of nm in a proper C declaration 15984global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15985 15986# Transform the output of nm in a C name address pair 15987global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15988 15989# This is the shared library runtime path variable. 15990runpath_var=$runpath_var 15991 15992# This is the shared library path variable. 15993shlibpath_var=$shlibpath_var 15994 15995# Is shlibpath searched before the hard-coded library search path? 15996shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15997 15998# How to hardcode a shared library path into an executable. 15999hardcode_action=$hardcode_action_F77 16000 16001# Whether we should hardcode library paths into libraries. 16002hardcode_into_libs=$hardcode_into_libs 16003 16004# Flag to hardcode \$libdir into a binary during linking. 16005# This must work even if \$libdir does not exist. 16006hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16007 16008# If ld is used when linking, flag to hardcode \$libdir into 16009# a binary during linking. This must work even if \$libdir does 16010# not exist. 16011hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16012 16013# Whether we need a single -rpath flag with a separated argument. 16014hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16015 16016# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16017# resulting binary. 16018hardcode_direct=$hardcode_direct_F77 16019 16020# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16021# resulting binary. 16022hardcode_minus_L=$hardcode_minus_L_F77 16023 16024# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16025# the resulting binary. 16026hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16027 16028# Set to yes if building a shared library automatically hardcodes DIR into the library 16029# and all subsequent libraries and executables linked against it. 16030hardcode_automatic=$hardcode_automatic_F77 16031 16032# Variables whose values should be saved in libtool wrapper scripts and 16033# restored at relink time. 16034variables_saved_for_relink="$variables_saved_for_relink" 16035 16036# Whether libtool must link a program against all its dependency libraries. 16037link_all_deplibs=$link_all_deplibs_F77 16038 16039# Compile-time system search path for libraries 16040sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16041 16042# Run-time system search path for libraries 16043sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16044 16045# Fix the shell variable \$srcfile for the compiler. 16046fix_srcfile_path="$fix_srcfile_path_F77" 16047 16048# Set to yes if exported symbols are required. 16049always_export_symbols=$always_export_symbols_F77 16050 16051# The commands to list exported symbols. 16052export_symbols_cmds=$lt_export_symbols_cmds_F77 16053 16054# The commands to extract the exported symbol list from a shared archive. 16055extract_expsyms_cmds=$lt_extract_expsyms_cmds 16056 16057# Symbols that should not be listed in the preloaded symbols. 16058exclude_expsyms=$lt_exclude_expsyms_F77 16059 16060# Symbols that must always be exported. 16061include_expsyms=$lt_include_expsyms_F77 16062 16063# ### END LIBTOOL TAG CONFIG: $tagname 16064 16065__EOF__ 16066 16067 16068else 16069 # If there is no Makefile yet, we rely on a make rule to execute 16070 # `config.status --recheck' to rerun these tests and create the 16071 # libtool script then. 16072 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16073 if test -f "$ltmain_in"; then 16074 test -f Makefile && make "$ltmain" 16075 fi 16076fi 16077 16078 16079ac_ext=c 16080ac_cpp='$CPP $CPPFLAGS' 16081ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16082ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16083ac_compiler_gnu=$ac_cv_c_compiler_gnu 16084 16085CC="$lt_save_CC" 16086 16087 else 16088 tagname="" 16089 fi 16090 ;; 16091 16092 GCJ) 16093 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16094 16095 16096# Source file extension for Java test sources. 16097ac_ext=java 16098 16099# Object file extension for compiled Java test sources. 16100objext=o 16101objext_GCJ=$objext 16102 16103# Code to be used in simple compile tests 16104lt_simple_compile_test_code="class foo {}\n" 16105 16106# Code to be used in simple link tests 16107lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 16108 16109# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16110 16111# If no C compiler was specified, use CC. 16112LTCC=${LTCC-"$CC"} 16113 16114# If no C compiler flags were specified, use CFLAGS. 16115LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16116 16117# Allow CC to be a program name with arguments. 16118compiler=$CC 16119 16120 16121# save warnings/boilerplate of simple test code 16122ac_outfile=conftest.$ac_objext 16123printf "$lt_simple_compile_test_code" >conftest.$ac_ext 16124eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16125_lt_compiler_boilerplate=`cat conftest.err` 16126$rm conftest* 16127 16128ac_outfile=conftest.$ac_objext 16129printf "$lt_simple_link_test_code" >conftest.$ac_ext 16130eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16131_lt_linker_boilerplate=`cat conftest.err` 16132$rm conftest* 16133 16134 16135# Allow CC to be a program name with arguments. 16136lt_save_CC="$CC" 16137CC=${GCJ-"gcj"} 16138compiler=$CC 16139compiler_GCJ=$CC 16140for cc_temp in $compiler""; do 16141 case $cc_temp in 16142 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16143 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16144 \-*) ;; 16145 *) break;; 16146 esac 16147done 16148cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16149 16150 16151# GCJ did not exist at the time GCC didn't implicitly link libc in. 16152archive_cmds_need_lc_GCJ=no 16153 16154old_archive_cmds_GCJ=$old_archive_cmds 16155 16156 16157lt_prog_compiler_no_builtin_flag_GCJ= 16158 16159if test "$GCC" = yes; then 16160 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16161 16162 16163{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16164echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 16165if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16166 echo $ECHO_N "(cached) $ECHO_C" >&6 16167else 16168 lt_cv_prog_compiler_rtti_exceptions=no 16169 ac_outfile=conftest.$ac_objext 16170 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16171 lt_compiler_flag="-fno-rtti -fno-exceptions" 16172 # Insert the option either (1) after the last *FLAGS variable, or 16173 # (2) before a word containing "conftest.", or (3) at the end. 16174 # Note that $ac_compile itself does not contain backslashes and begins 16175 # with a dollar sign (not a hyphen), so the echo should work correctly. 16176 # The option is referenced via a variable to avoid confusing sed. 16177 lt_compile=`echo "$ac_compile" | $SED \ 16178 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16179 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16180 -e 's:$: $lt_compiler_flag:'` 16181 (eval echo "\"\$as_me:16181: $lt_compile\"" >&5) 16182 (eval "$lt_compile" 2>conftest.err) 16183 ac_status=$? 16184 cat conftest.err >&5 16185 echo "$as_me:16185: \$? = $ac_status" >&5 16186 if (exit $ac_status) && test -s "$ac_outfile"; then 16187 # The compiler can only warn and ignore the option if not recognized 16188 # So say no if there are warnings other than the usual output. 16189 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16190 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16191 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16192 lt_cv_prog_compiler_rtti_exceptions=yes 16193 fi 16194 fi 16195 $rm conftest* 16196 16197fi 16198{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16199echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16200 16201if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16202 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16203else 16204 : 16205fi 16206 16207fi 16208 16209lt_prog_compiler_wl_GCJ= 16210lt_prog_compiler_pic_GCJ= 16211lt_prog_compiler_static_GCJ= 16212 16213{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16214echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 16215 16216 if test "$GCC" = yes; then 16217 lt_prog_compiler_wl_GCJ='-Wl,' 16218 lt_prog_compiler_static_GCJ='-static' 16219 16220 case $host_os in 16221 aix*) 16222 # All AIX code is PIC. 16223 if test "$host_cpu" = ia64; then 16224 # AIX 5 now supports IA64 processor 16225 lt_prog_compiler_static_GCJ='-Bstatic' 16226 fi 16227 ;; 16228 16229 amigaos*) 16230 # FIXME: we need at least 68020 code to build shared libraries, but 16231 # adding the `-m68020' flag to GCC prevents building anything better, 16232 # like `-m68040'. 16233 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16234 ;; 16235 16236 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16237 # PIC is the default for these OSes. 16238 ;; 16239 16240 mingw* | pw32* | os2*) 16241 # This hack is so that the source file can tell whether it is being 16242 # built for inclusion in a dll (and should export symbols for example). 16243 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16244 ;; 16245 16246 darwin* | rhapsody*) 16247 # PIC is the default on this platform 16248 # Common symbols not allowed in MH_DYLIB files 16249 lt_prog_compiler_pic_GCJ='-fno-common' 16250 ;; 16251 16252 interix3*) 16253 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16254 # Instead, we relocate shared libraries at runtime. 16255 ;; 16256 16257 msdosdjgpp*) 16258 # Just because we use GCC doesn't mean we suddenly get shared libraries 16259 # on systems that don't support them. 16260 lt_prog_compiler_can_build_shared_GCJ=no 16261 enable_shared=no 16262 ;; 16263 16264 sysv4*MP*) 16265 if test -d /usr/nec; then 16266 lt_prog_compiler_pic_GCJ=-Kconform_pic 16267 fi 16268 ;; 16269 16270 hpux*) 16271 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16272 # not for PA HP-UX. 16273 case $host_cpu in 16274 hppa*64*|ia64*) 16275 # +Z the default 16276 ;; 16277 *) 16278 lt_prog_compiler_pic_GCJ='-fPIC' 16279 ;; 16280 esac 16281 ;; 16282 16283 *) 16284 lt_prog_compiler_pic_GCJ='-fPIC' 16285 ;; 16286 esac 16287 else 16288 # PORTME Check for flag to pass linker flags through the system compiler. 16289 case $host_os in 16290 aix*) 16291 lt_prog_compiler_wl_GCJ='-Wl,' 16292 if test "$host_cpu" = ia64; then 16293 # AIX 5 now supports IA64 processor 16294 lt_prog_compiler_static_GCJ='-Bstatic' 16295 else 16296 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16297 fi 16298 ;; 16299 darwin*) 16300 # PIC is the default on this platform 16301 # Common symbols not allowed in MH_DYLIB files 16302 case $cc_basename in 16303 xlc*) 16304 lt_prog_compiler_pic_GCJ='-qnocommon' 16305 lt_prog_compiler_wl_GCJ='-Wl,' 16306 ;; 16307 esac 16308 ;; 16309 16310 mingw* | pw32* | os2*) 16311 # This hack is so that the source file can tell whether it is being 16312 # built for inclusion in a dll (and should export symbols for example). 16313 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16314 ;; 16315 16316 hpux9* | hpux10* | hpux11*) 16317 lt_prog_compiler_wl_GCJ='-Wl,' 16318 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16319 # not for PA HP-UX. 16320 case $host_cpu in 16321 hppa*64*|ia64*) 16322 # +Z the default 16323 ;; 16324 *) 16325 lt_prog_compiler_pic_GCJ='+Z' 16326 ;; 16327 esac 16328 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16329 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 16330 ;; 16331 16332 irix5* | irix6* | nonstopux*) 16333 lt_prog_compiler_wl_GCJ='-Wl,' 16334 # PIC (with -KPIC) is the default. 16335 lt_prog_compiler_static_GCJ='-non_shared' 16336 ;; 16337 16338 newsos6) 16339 lt_prog_compiler_pic_GCJ='-KPIC' 16340 lt_prog_compiler_static_GCJ='-Bstatic' 16341 ;; 16342 16343 linux*) 16344 case $cc_basename in 16345 icc* | ecc*) 16346 lt_prog_compiler_wl_GCJ='-Wl,' 16347 lt_prog_compiler_pic_GCJ='-KPIC' 16348 lt_prog_compiler_static_GCJ='-static' 16349 ;; 16350 pgcc* | pgf77* | pgf90* | pgf95*) 16351 # Portland Group compilers (*not* the Pentium gcc compiler, 16352 # which looks to be a dead project) 16353 lt_prog_compiler_wl_GCJ='-Wl,' 16354 lt_prog_compiler_pic_GCJ='-fpic' 16355 lt_prog_compiler_static_GCJ='-Bstatic' 16356 ;; 16357 ccc*) 16358 lt_prog_compiler_wl_GCJ='-Wl,' 16359 # All Alpha code is PIC. 16360 lt_prog_compiler_static_GCJ='-non_shared' 16361 ;; 16362 esac 16363 ;; 16364 16365 osf3* | osf4* | osf5*) 16366 lt_prog_compiler_wl_GCJ='-Wl,' 16367 # All OSF/1 code is PIC. 16368 lt_prog_compiler_static_GCJ='-non_shared' 16369 ;; 16370 16371 solaris*) 16372 lt_prog_compiler_pic_GCJ='-KPIC' 16373 lt_prog_compiler_static_GCJ='-Bstatic' 16374 case $cc_basename in 16375 f77* | f90* | f95*) 16376 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 16377 *) 16378 lt_prog_compiler_wl_GCJ='-Wl,';; 16379 esac 16380 ;; 16381 16382 sunos4*) 16383 lt_prog_compiler_wl_GCJ='-Qoption ld ' 16384 lt_prog_compiler_pic_GCJ='-PIC' 16385 lt_prog_compiler_static_GCJ='-Bstatic' 16386 ;; 16387 16388 sysv4 | sysv4.2uw2* | sysv4.3*) 16389 lt_prog_compiler_wl_GCJ='-Wl,' 16390 lt_prog_compiler_pic_GCJ='-KPIC' 16391 lt_prog_compiler_static_GCJ='-Bstatic' 16392 ;; 16393 16394 sysv4*MP*) 16395 if test -d /usr/nec ;then 16396 lt_prog_compiler_pic_GCJ='-Kconform_pic' 16397 lt_prog_compiler_static_GCJ='-Bstatic' 16398 fi 16399 ;; 16400 16401 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16402 lt_prog_compiler_wl_GCJ='-Wl,' 16403 lt_prog_compiler_pic_GCJ='-KPIC' 16404 lt_prog_compiler_static_GCJ='-Bstatic' 16405 ;; 16406 16407 unicos*) 16408 lt_prog_compiler_wl_GCJ='-Wl,' 16409 lt_prog_compiler_can_build_shared_GCJ=no 16410 ;; 16411 16412 uts4*) 16413 lt_prog_compiler_pic_GCJ='-pic' 16414 lt_prog_compiler_static_GCJ='-Bstatic' 16415 ;; 16416 16417 *) 16418 lt_prog_compiler_can_build_shared_GCJ=no 16419 ;; 16420 esac 16421 fi 16422 16423{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 16424echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } 16425 16426# 16427# Check to make sure the PIC flag actually works. 16428# 16429if test -n "$lt_prog_compiler_pic_GCJ"; then 16430 16431{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 16432echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } 16433if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 16434 echo $ECHO_N "(cached) $ECHO_C" >&6 16435else 16436 lt_prog_compiler_pic_works_GCJ=no 16437 ac_outfile=conftest.$ac_objext 16438 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16439 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 16440 # Insert the option either (1) after the last *FLAGS variable, or 16441 # (2) before a word containing "conftest.", or (3) at the end. 16442 # Note that $ac_compile itself does not contain backslashes and begins 16443 # with a dollar sign (not a hyphen), so the echo should work correctly. 16444 # The option is referenced via a variable to avoid confusing sed. 16445 lt_compile=`echo "$ac_compile" | $SED \ 16446 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16447 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16448 -e 's:$: $lt_compiler_flag:'` 16449 (eval echo "\"\$as_me:16449: $lt_compile\"" >&5) 16450 (eval "$lt_compile" 2>conftest.err) 16451 ac_status=$? 16452 cat conftest.err >&5 16453 echo "$as_me:16453: \$? = $ac_status" >&5 16454 if (exit $ac_status) && test -s "$ac_outfile"; then 16455 # The compiler can only warn and ignore the option if not recognized 16456 # So say no if there are warnings other than the usual output. 16457 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16458 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16459 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16460 lt_prog_compiler_pic_works_GCJ=yes 16461 fi 16462 fi 16463 $rm conftest* 16464 16465fi 16466{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 16467echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } 16468 16469if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 16470 case $lt_prog_compiler_pic_GCJ in 16471 "" | " "*) ;; 16472 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 16473 esac 16474else 16475 lt_prog_compiler_pic_GCJ= 16476 lt_prog_compiler_can_build_shared_GCJ=no 16477fi 16478 16479fi 16480case $host_os in 16481 # For platforms which do not support PIC, -DPIC is meaningless: 16482 *djgpp*) 16483 lt_prog_compiler_pic_GCJ= 16484 ;; 16485 *) 16486 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 16487 ;; 16488esac 16489 16490# 16491# Check to make sure the static flag actually works. 16492# 16493wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 16494{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16495echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 16496if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 16497 echo $ECHO_N "(cached) $ECHO_C" >&6 16498else 16499 lt_prog_compiler_static_works_GCJ=no 16500 save_LDFLAGS="$LDFLAGS" 16501 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16502 printf "$lt_simple_link_test_code" > conftest.$ac_ext 16503 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16504 # The linker can only warn and ignore the option if not recognized 16505 # So say no if there are warnings 16506 if test -s conftest.err; then 16507 # Append any errors to the config.log. 16508 cat conftest.err 1>&5 16509 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 16510 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16511 if diff conftest.exp conftest.er2 >/dev/null; then 16512 lt_prog_compiler_static_works_GCJ=yes 16513 fi 16514 else 16515 lt_prog_compiler_static_works_GCJ=yes 16516 fi 16517 fi 16518 $rm conftest* 16519 LDFLAGS="$save_LDFLAGS" 16520 16521fi 16522{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 16523echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } 16524 16525if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 16526 : 16527else 16528 lt_prog_compiler_static_GCJ= 16529fi 16530 16531 16532{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 16533echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 16534if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 16535 echo $ECHO_N "(cached) $ECHO_C" >&6 16536else 16537 lt_cv_prog_compiler_c_o_GCJ=no 16538 $rm -r conftest 2>/dev/null 16539 mkdir conftest 16540 cd conftest 16541 mkdir out 16542 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16543 16544 lt_compiler_flag="-o out/conftest2.$ac_objext" 16545 # Insert the option either (1) after the last *FLAGS variable, or 16546 # (2) before a word containing "conftest.", or (3) at the end. 16547 # Note that $ac_compile itself does not contain backslashes and begins 16548 # with a dollar sign (not a hyphen), so the echo should work correctly. 16549 lt_compile=`echo "$ac_compile" | $SED \ 16550 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16551 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16552 -e 's:$: $lt_compiler_flag:'` 16553 (eval echo "\"\$as_me:16553: $lt_compile\"" >&5) 16554 (eval "$lt_compile" 2>out/conftest.err) 16555 ac_status=$? 16556 cat out/conftest.err >&5 16557 echo "$as_me:16557: \$? = $ac_status" >&5 16558 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16559 then 16560 # The compiler can only warn and ignore the option if not recognized 16561 # So say no if there are warnings 16562 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 16563 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16564 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16565 lt_cv_prog_compiler_c_o_GCJ=yes 16566 fi 16567 fi 16568 chmod u+w . 2>&5 16569 $rm conftest* 16570 # SGI C++ compiler will create directory out/ii_files/ for 16571 # template instantiation 16572 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 16573 $rm out/* && rmdir out 16574 cd .. 16575 rmdir conftest 16576 $rm conftest* 16577 16578fi 16579{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 16580echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } 16581 16582 16583hard_links="nottested" 16584if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 16585 # do not overwrite the value of need_locks provided by the user 16586 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 16587echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 16588 hard_links=yes 16589 $rm conftest* 16590 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16591 touch conftest.a 16592 ln conftest.a conftest.b 2>&5 || hard_links=no 16593 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16594 { echo "$as_me:$LINENO: result: $hard_links" >&5 16595echo "${ECHO_T}$hard_links" >&6; } 16596 if test "$hard_links" = no; then 16597 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 16598echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 16599 need_locks=warn 16600 fi 16601else 16602 need_locks=no 16603fi 16604 16605{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16606echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 16607 16608 runpath_var= 16609 allow_undefined_flag_GCJ= 16610 enable_shared_with_static_runtimes_GCJ=no 16611 archive_cmds_GCJ= 16612 archive_expsym_cmds_GCJ= 16613 old_archive_From_new_cmds_GCJ= 16614 old_archive_from_expsyms_cmds_GCJ= 16615 export_dynamic_flag_spec_GCJ= 16616 whole_archive_flag_spec_GCJ= 16617 thread_safe_flag_spec_GCJ= 16618 hardcode_libdir_flag_spec_GCJ= 16619 hardcode_libdir_flag_spec_ld_GCJ= 16620 hardcode_libdir_separator_GCJ= 16621 hardcode_direct_GCJ=no 16622 hardcode_minus_L_GCJ=no 16623 hardcode_shlibpath_var_GCJ=unsupported 16624 link_all_deplibs_GCJ=unknown 16625 hardcode_automatic_GCJ=no 16626 module_cmds_GCJ= 16627 module_expsym_cmds_GCJ= 16628 always_export_symbols_GCJ=no 16629 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16630 # include_expsyms should be a list of space-separated symbols to be *always* 16631 # included in the symbol list 16632 include_expsyms_GCJ= 16633 # exclude_expsyms can be an extended regexp of symbols to exclude 16634 # it will be wrapped by ` (' and `)$', so one must not match beginning or 16635 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 16636 # as well as any symbol that contains `d'. 16637 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 16638 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16639 # platforms (ab)use it in PIC code, but their linkers get confused if 16640 # the symbol is explicitly referenced. Since portable code cannot 16641 # rely on this symbol name, it's probably fine to never include it in 16642 # preloaded symbol tables. 16643 extract_expsyms_cmds= 16644 # Just being paranoid about ensuring that cc_basename is set. 16645 for cc_temp in $compiler""; do 16646 case $cc_temp in 16647 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16648 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16649 \-*) ;; 16650 *) break;; 16651 esac 16652done 16653cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16654 16655 case $host_os in 16656 cygwin* | mingw* | pw32*) 16657 # FIXME: the MSVC++ port hasn't been tested in a loooong time 16658 # When not using gcc, we currently assume that we are using 16659 # Microsoft Visual C++. 16660 if test "$GCC" != yes; then 16661 with_gnu_ld=no 16662 fi 16663 ;; 16664 interix*) 16665 # we just hope/assume this is gcc and not c89 (= MSVC++) 16666 with_gnu_ld=yes 16667 ;; 16668 openbsd*) 16669 with_gnu_ld=no 16670 ;; 16671 esac 16672 16673 ld_shlibs_GCJ=yes 16674 if test "$with_gnu_ld" = yes; then 16675 # If archive_cmds runs LD, not CC, wlarc should be empty 16676 wlarc='${wl}' 16677 16678 # Set some defaults for GNU ld with shared library support. These 16679 # are reset later if shared libraries are not supported. Putting them 16680 # here allows them to be overridden if necessary. 16681 runpath_var=LD_RUN_PATH 16682 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 16683 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 16684 # ancient GNU ld didn't support --whole-archive et. al. 16685 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 16686 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 16687 else 16688 whole_archive_flag_spec_GCJ= 16689 fi 16690 supports_anon_versioning=no 16691 case `$LD -v 2>/dev/null` in 16692 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16693 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16694 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16695 *\ 2.11.*) ;; # other 2.11 versions 16696 *) supports_anon_versioning=yes ;; 16697 esac 16698 16699 # See if GNU ld supports shared libraries. 16700 case $host_os in 16701 aix3* | aix4* | aix5*) 16702 # On AIX/PPC, the GNU linker is very broken 16703 if test "$host_cpu" != ia64; then 16704 ld_shlibs_GCJ=no 16705 cat <<EOF 1>&2 16706 16707*** Warning: the GNU linker, at least up to release 2.9.1, is reported 16708*** to be unable to reliably create shared libraries on AIX. 16709*** Therefore, libtool is disabling shared libraries support. If you 16710*** really care for shared libraries, you may want to modify your PATH 16711*** so that a non-GNU linker is found, and then restart. 16712 16713EOF 16714 fi 16715 ;; 16716 16717 amigaos*) 16718 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)' 16719 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16720 hardcode_minus_L_GCJ=yes 16721 16722 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 16723 # that the semantics of dynamic libraries on AmigaOS, at least up 16724 # to version 4, is to share data among multiple programs linked 16725 # with the same dynamic library. Since this doesn't match the 16726 # behavior of shared libraries on other platforms, we can't use 16727 # them. 16728 ld_shlibs_GCJ=no 16729 ;; 16730 16731 beos*) 16732 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16733 allow_undefined_flag_GCJ=unsupported 16734 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16735 # support --undefined. This deserves some investigation. FIXME 16736 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16737 else 16738 ld_shlibs_GCJ=no 16739 fi 16740 ;; 16741 16742 cygwin* | mingw* | pw32*) 16743 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 16744 # as there is no search path for DLLs. 16745 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16746 allow_undefined_flag_GCJ=unsupported 16747 always_export_symbols_GCJ=no 16748 enable_shared_with_static_runtimes_GCJ=yes 16749 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 16750 16751 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 16752 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16753 # If the export-symbols file already is a .def file (1st line 16754 # is EXPORTS), use it as is; otherwise, prepend... 16755 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16756 cp $export_symbols $output_objdir/$soname.def; 16757 else 16758 echo EXPORTS > $output_objdir/$soname.def; 16759 cat $export_symbols >> $output_objdir/$soname.def; 16760 fi~ 16761 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16762 else 16763 ld_shlibs_GCJ=no 16764 fi 16765 ;; 16766 16767 interix3*) 16768 hardcode_direct_GCJ=no 16769 hardcode_shlibpath_var_GCJ=no 16770 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16771 export_dynamic_flag_spec_GCJ='${wl}-E' 16772 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16773 # Instead, shared libraries are loaded at an image base (0x10000000 by 16774 # default) and relocated if they conflict, which is a slow very memory 16775 # consuming and fragmenting process. To avoid this, we pick a random, 16776 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16777 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16778 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' 16779 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' 16780 ;; 16781 16782 linux*) 16783 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16784 tmp_addflag= 16785 case $cc_basename,$host_cpu in 16786 pgcc*) # Portland Group C compiler 16787 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' 16788 tmp_addflag=' $pic_flag' 16789 ;; 16790 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 16791 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' 16792 tmp_addflag=' $pic_flag -Mnomain' ;; 16793 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16794 tmp_addflag=' -i_dynamic' ;; 16795 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16796 tmp_addflag=' -i_dynamic -nofor_main' ;; 16797 ifc* | ifort*) # Intel Fortran compiler 16798 tmp_addflag=' -nofor_main' ;; 16799 esac 16800 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16801 16802 if test $supports_anon_versioning = yes; then 16803 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 16804 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16805 $echo "local: *; };" >> $output_objdir/$libname.ver~ 16806 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 16807 fi 16808 else 16809 ld_shlibs_GCJ=no 16810 fi 16811 ;; 16812 16813 netbsd*) 16814 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16815 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16816 wlarc= 16817 else 16818 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16819 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16820 fi 16821 ;; 16822 16823 solaris*) 16824 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 16825 ld_shlibs_GCJ=no 16826 cat <<EOF 1>&2 16827 16828*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16829*** create shared libraries on Solaris systems. Therefore, libtool 16830*** is disabling shared libraries support. We urge you to upgrade GNU 16831*** binutils to release 2.9.1 or newer. Another option is to modify 16832*** your PATH or compiler configuration so that the native linker is 16833*** used, and then restart. 16834 16835EOF 16836 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16837 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16838 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16839 else 16840 ld_shlibs_GCJ=no 16841 fi 16842 ;; 16843 16844 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 16845 case `$LD -v 2>&1` in 16846 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 16847 ld_shlibs_GCJ=no 16848 cat <<_LT_EOF 1>&2 16849 16850*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 16851*** reliably create shared libraries on SCO systems. Therefore, libtool 16852*** is disabling shared libraries support. We urge you to upgrade GNU 16853*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 16854*** your PATH or compiler configuration so that the native linker is 16855*** used, and then restart. 16856 16857_LT_EOF 16858 ;; 16859 *) 16860 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16861 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 16862 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 16863 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 16864 else 16865 ld_shlibs_GCJ=no 16866 fi 16867 ;; 16868 esac 16869 ;; 16870 16871 sunos4*) 16872 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16873 wlarc= 16874 hardcode_direct_GCJ=yes 16875 hardcode_shlibpath_var_GCJ=no 16876 ;; 16877 16878 *) 16879 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16880 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16881 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16882 else 16883 ld_shlibs_GCJ=no 16884 fi 16885 ;; 16886 esac 16887 16888 if test "$ld_shlibs_GCJ" = no; then 16889 runpath_var= 16890 hardcode_libdir_flag_spec_GCJ= 16891 export_dynamic_flag_spec_GCJ= 16892 whole_archive_flag_spec_GCJ= 16893 fi 16894 else 16895 # PORTME fill in a description of your system's linker (not GNU ld) 16896 case $host_os in 16897 aix3*) 16898 allow_undefined_flag_GCJ=unsupported 16899 always_export_symbols_GCJ=yes 16900 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' 16901 # Note: this linker hardcodes the directories in LIBPATH if there 16902 # are no directories specified by -L. 16903 hardcode_minus_L_GCJ=yes 16904 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 16905 # Neither direct hardcoding nor static linking is supported with a 16906 # broken collect2. 16907 hardcode_direct_GCJ=unsupported 16908 fi 16909 ;; 16910 16911 aix4* | aix5*) 16912 if test "$host_cpu" = ia64; then 16913 # On IA64, the linker does run time linking by default, so we don't 16914 # have to do anything special. 16915 aix_use_runtimelinking=no 16916 exp_sym_flag='-Bexport' 16917 no_entry_flag="" 16918 else 16919 # If we're using GNU nm, then we don't want the "-C" option. 16920 # -C means demangle to AIX nm, but means don't demangle with GNU nm 16921 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 16922 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' 16923 else 16924 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' 16925 fi 16926 aix_use_runtimelinking=no 16927 16928 # Test if we are trying to use run time linking or normal 16929 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16930 # need to do runtime linking. 16931 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 16932 for ld_flag in $LDFLAGS; do 16933 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 16934 aix_use_runtimelinking=yes 16935 break 16936 fi 16937 done 16938 ;; 16939 esac 16940 16941 exp_sym_flag='-bexport' 16942 no_entry_flag='-bnoentry' 16943 fi 16944 16945 # When large executables or shared objects are built, AIX ld can 16946 # have problems creating the table of contents. If linking a library 16947 # or program results in "error TOC overflow" add -mminimal-toc to 16948 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16949 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16950 16951 archive_cmds_GCJ='' 16952 hardcode_direct_GCJ=yes 16953 hardcode_libdir_separator_GCJ=':' 16954 link_all_deplibs_GCJ=yes 16955 16956 if test "$GCC" = yes; then 16957 case $host_os in aix4.[012]|aix4.[012].*) 16958 # We only want to do this on AIX 4.2 and lower, the check 16959 # below for broken collect2 doesn't work under 4.3+ 16960 collect2name=`${CC} -print-prog-name=collect2` 16961 if test -f "$collect2name" && \ 16962 strings "$collect2name" | grep resolve_lib_name >/dev/null 16963 then 16964 # We have reworked collect2 16965 hardcode_direct_GCJ=yes 16966 else 16967 # We have old collect2 16968 hardcode_direct_GCJ=unsupported 16969 # It fails to find uninstalled libraries when the uninstalled 16970 # path is not listed in the libpath. Setting hardcode_minus_L 16971 # to unsupported forces relinking 16972 hardcode_minus_L_GCJ=yes 16973 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16974 hardcode_libdir_separator_GCJ= 16975 fi 16976 ;; 16977 esac 16978 shared_flag='-shared' 16979 if test "$aix_use_runtimelinking" = yes; then 16980 shared_flag="$shared_flag "'${wl}-G' 16981 fi 16982 else 16983 # not using gcc 16984 if test "$host_cpu" = ia64; then 16985 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16986 # chokes on -Wl,-G. The following line is correct: 16987 shared_flag='-G' 16988 else 16989 if test "$aix_use_runtimelinking" = yes; then 16990 shared_flag='${wl}-G' 16991 else 16992 shared_flag='${wl}-bM:SRE' 16993 fi 16994 fi 16995 fi 16996 16997 # It seems that -bexpall does not export symbols beginning with 16998 # underscore (_), so it is better to generate a list of symbols to export. 16999 always_export_symbols_GCJ=yes 17000 if test "$aix_use_runtimelinking" = yes; then 17001 # Warning - without using the other runtime loading flags (-brtl), 17002 # -berok will link without error, but may produce a broken library. 17003 allow_undefined_flag_GCJ='-berok' 17004 # Determine the default libpath from the value encoded in an empty executable. 17005 cat >conftest.$ac_ext <<_ACEOF 17006/* confdefs.h. */ 17007_ACEOF 17008cat confdefs.h >>conftest.$ac_ext 17009cat >>conftest.$ac_ext <<_ACEOF 17010/* end confdefs.h. */ 17011 17012int 17013main () 17014{ 17015 17016 ; 17017 return 0; 17018} 17019_ACEOF 17020rm -f conftest.$ac_objext conftest$ac_exeext 17021if { (ac_try="$ac_link" 17022case "(($ac_try" in 17023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17024 *) ac_try_echo=$ac_try;; 17025esac 17026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17027 (eval "$ac_link") 2>conftest.er1 17028 ac_status=$? 17029 grep -v '^ *+' conftest.er1 >conftest.err 17030 rm -f conftest.er1 17031 cat conftest.err >&5 17032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17033 (exit $ac_status); } && { 17034 test -z "$ac_c_werror_flag" || 17035 test ! -s conftest.err 17036 } && test -s conftest$ac_exeext && 17037 $as_test_x conftest$ac_exeext; then 17038 17039aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17040}'` 17041# Check for a 64-bit object if we didn't find anything. 17042if 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; } 17043}'`; fi 17044else 17045 echo "$as_me: failed program was:" >&5 17046sed 's/^/| /' conftest.$ac_ext >&5 17047 17048 17049fi 17050 17051rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17052 conftest$ac_exeext conftest.$ac_ext 17053if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17054 17055 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17056 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" 17057 else 17058 if test "$host_cpu" = ia64; then 17059 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17060 allow_undefined_flag_GCJ="-z nodefs" 17061 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" 17062 else 17063 # Determine the default libpath from the value encoded in an empty executable. 17064 cat >conftest.$ac_ext <<_ACEOF 17065/* confdefs.h. */ 17066_ACEOF 17067cat confdefs.h >>conftest.$ac_ext 17068cat >>conftest.$ac_ext <<_ACEOF 17069/* end confdefs.h. */ 17070 17071int 17072main () 17073{ 17074 17075 ; 17076 return 0; 17077} 17078_ACEOF 17079rm -f conftest.$ac_objext conftest$ac_exeext 17080if { (ac_try="$ac_link" 17081case "(($ac_try" in 17082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17083 *) ac_try_echo=$ac_try;; 17084esac 17085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17086 (eval "$ac_link") 2>conftest.er1 17087 ac_status=$? 17088 grep -v '^ *+' conftest.er1 >conftest.err 17089 rm -f conftest.er1 17090 cat conftest.err >&5 17091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17092 (exit $ac_status); } && { 17093 test -z "$ac_c_werror_flag" || 17094 test ! -s conftest.err 17095 } && test -s conftest$ac_exeext && 17096 $as_test_x conftest$ac_exeext; then 17097 17098aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17099}'` 17100# Check for a 64-bit object if we didn't find anything. 17101if 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; } 17102}'`; fi 17103else 17104 echo "$as_me: failed program was:" >&5 17105sed 's/^/| /' conftest.$ac_ext >&5 17106 17107 17108fi 17109 17110rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17111 conftest$ac_exeext conftest.$ac_ext 17112if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17113 17114 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17115 # Warning - without using the other run time loading flags, 17116 # -berok will link without error, but may produce a broken library. 17117 no_undefined_flag_GCJ=' ${wl}-bernotok' 17118 allow_undefined_flag_GCJ=' ${wl}-berok' 17119 # Exported symbols can be pulled into shared objects from archives 17120 whole_archive_flag_spec_GCJ='$convenience' 17121 archive_cmds_need_lc_GCJ=yes 17122 # This is similar to how AIX traditionally builds its shared libraries. 17123 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' 17124 fi 17125 fi 17126 ;; 17127 17128 amigaos*) 17129 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)' 17130 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17131 hardcode_minus_L_GCJ=yes 17132 # see comment about different semantics on the GNU ld section 17133 ld_shlibs_GCJ=no 17134 ;; 17135 17136 bsdi[45]*) 17137 export_dynamic_flag_spec_GCJ=-rdynamic 17138 ;; 17139 17140 cygwin* | mingw* | pw32*) 17141 # When not using gcc, we currently assume that we are using 17142 # Microsoft Visual C++. 17143 # hardcode_libdir_flag_spec is actually meaningless, as there is 17144 # no search path for DLLs. 17145 hardcode_libdir_flag_spec_GCJ=' ' 17146 allow_undefined_flag_GCJ=unsupported 17147 # Tell ltmain to make .lib files, not .a files. 17148 libext=lib 17149 # Tell ltmain to make .dll files, not .so files. 17150 shrext_cmds=".dll" 17151 # FIXME: Setting linknames here is a bad hack. 17152 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17153 # The linker will automatically build a .lib file if we build a DLL. 17154 old_archive_From_new_cmds_GCJ='true' 17155 # FIXME: Should let the user specify the lib program. 17156 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 17157 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17158 enable_shared_with_static_runtimes_GCJ=yes 17159 ;; 17160 17161 darwin* | rhapsody*) 17162 case $host_os in 17163 rhapsody* | darwin1.[012]) 17164 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17165 ;; 17166 *) # Darwin 1.3 on 17167 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17168 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17169 else 17170 case ${MACOSX_DEPLOYMENT_TARGET} in 17171 10.[012]) 17172 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17173 ;; 17174 10.*) 17175 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17176 ;; 17177 esac 17178 fi 17179 ;; 17180 esac 17181 archive_cmds_need_lc_GCJ=no 17182 hardcode_direct_GCJ=no 17183 hardcode_automatic_GCJ=yes 17184 hardcode_shlibpath_var_GCJ=unsupported 17185 whole_archive_flag_spec_GCJ='' 17186 link_all_deplibs_GCJ=yes 17187 if test "$GCC" = yes ; then 17188 output_verbose_link_cmd='echo' 17189 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 17190 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17191 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17192 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}' 17193 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}' 17194 else 17195 case $cc_basename in 17196 xlc*) 17197 output_verbose_link_cmd='echo' 17198 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 17199 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17200 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17201 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}' 17202 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}' 17203 ;; 17204 *) 17205 ld_shlibs_GCJ=no 17206 ;; 17207 esac 17208 fi 17209 ;; 17210 17211 dgux*) 17212 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17213 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17214 hardcode_shlibpath_var_GCJ=no 17215 ;; 17216 17217 freebsd1*) 17218 ld_shlibs_GCJ=no 17219 ;; 17220 17221 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17222 # support. Future versions do this automatically, but an explicit c++rt0.o 17223 # does not break anything, and helps significantly (at the cost of a little 17224 # extra space). 17225 freebsd2.2*) 17226 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17227 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17228 hardcode_direct_GCJ=yes 17229 hardcode_shlibpath_var_GCJ=no 17230 ;; 17231 17232 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17233 freebsd2*) 17234 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17235 hardcode_direct_GCJ=yes 17236 hardcode_minus_L_GCJ=yes 17237 hardcode_shlibpath_var_GCJ=no 17238 ;; 17239 17240 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17241 freebsd* | kfreebsd*-gnu | dragonfly*) 17242 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17243 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17244 hardcode_direct_GCJ=yes 17245 hardcode_shlibpath_var_GCJ=no 17246 ;; 17247 17248 hpux9*) 17249 if test "$GCC" = yes; then 17250 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' 17251 else 17252 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' 17253 fi 17254 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17255 hardcode_libdir_separator_GCJ=: 17256 hardcode_direct_GCJ=yes 17257 17258 # hardcode_minus_L: Not really in the search PATH, 17259 # but as the default location of the library. 17260 hardcode_minus_L_GCJ=yes 17261 export_dynamic_flag_spec_GCJ='${wl}-E' 17262 ;; 17263 17264 hpux10*) 17265 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17266 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17267 else 17268 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17269 fi 17270 if test "$with_gnu_ld" = no; then 17271 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17272 hardcode_libdir_separator_GCJ=: 17273 17274 hardcode_direct_GCJ=yes 17275 export_dynamic_flag_spec_GCJ='${wl}-E' 17276 17277 # hardcode_minus_L: Not really in the search PATH, 17278 # but as the default location of the library. 17279 hardcode_minus_L_GCJ=yes 17280 fi 17281 ;; 17282 17283 hpux11*) 17284 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17285 case $host_cpu in 17286 hppa*64*) 17287 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17288 ;; 17289 ia64*) 17290 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17291 ;; 17292 *) 17293 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17294 ;; 17295 esac 17296 else 17297 case $host_cpu in 17298 hppa*64*) 17299 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17300 ;; 17301 ia64*) 17302 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17303 ;; 17304 *) 17305 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17306 ;; 17307 esac 17308 fi 17309 if test "$with_gnu_ld" = no; then 17310 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17311 hardcode_libdir_separator_GCJ=: 17312 17313 case $host_cpu in 17314 hppa*64*|ia64*) 17315 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 17316 hardcode_direct_GCJ=no 17317 hardcode_shlibpath_var_GCJ=no 17318 ;; 17319 *) 17320 hardcode_direct_GCJ=yes 17321 export_dynamic_flag_spec_GCJ='${wl}-E' 17322 17323 # hardcode_minus_L: Not really in the search PATH, 17324 # but as the default location of the library. 17325 hardcode_minus_L_GCJ=yes 17326 ;; 17327 esac 17328 fi 17329 ;; 17330 17331 irix5* | irix6* | nonstopux*) 17332 if test "$GCC" = yes; then 17333 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' 17334 else 17335 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' 17336 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 17337 fi 17338 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17339 hardcode_libdir_separator_GCJ=: 17340 link_all_deplibs_GCJ=yes 17341 ;; 17342 17343 netbsd*) 17344 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17345 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17346 else 17347 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17348 fi 17349 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17350 hardcode_direct_GCJ=yes 17351 hardcode_shlibpath_var_GCJ=no 17352 ;; 17353 17354 newsos6) 17355 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17356 hardcode_direct_GCJ=yes 17357 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17358 hardcode_libdir_separator_GCJ=: 17359 hardcode_shlibpath_var_GCJ=no 17360 ;; 17361 17362 openbsd*) 17363 hardcode_direct_GCJ=yes 17364 hardcode_shlibpath_var_GCJ=no 17365 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17366 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17367 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 17368 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17369 export_dynamic_flag_spec_GCJ='${wl}-E' 17370 else 17371 case $host_os in 17372 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 17373 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17374 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17375 ;; 17376 *) 17377 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17378 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17379 ;; 17380 esac 17381 fi 17382 ;; 17383 17384 os2*) 17385 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17386 hardcode_minus_L_GCJ=yes 17387 allow_undefined_flag_GCJ=unsupported 17388 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' 17389 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 17390 ;; 17391 17392 osf3*) 17393 if test "$GCC" = yes; then 17394 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17395 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' 17396 else 17397 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17398 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' 17399 fi 17400 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17401 hardcode_libdir_separator_GCJ=: 17402 ;; 17403 17404 osf4* | osf5*) # as osf3* with the addition of -msym flag 17405 if test "$GCC" = yes; then 17406 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17407 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' 17408 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17409 else 17410 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17411 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' 17412 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~ 17413 $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' 17414 17415 # Both c and cxx compiler support -rpath directly 17416 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 17417 fi 17418 hardcode_libdir_separator_GCJ=: 17419 ;; 17420 17421 solaris*) 17422 no_undefined_flag_GCJ=' -z text' 17423 if test "$GCC" = yes; then 17424 wlarc='${wl}' 17425 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17426 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17427 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 17428 else 17429 wlarc='' 17430 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17431 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17432 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17433 fi 17434 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17435 hardcode_shlibpath_var_GCJ=no 17436 case $host_os in 17437 solaris2.[0-5] | solaris2.[0-5].*) ;; 17438 *) 17439 # The compiler driver will combine linker options so we 17440 # cannot just pass the convience library names through 17441 # without $wl, iff we do not link with $LD. 17442 # Luckily, gcc supports the same syntax we need for Sun Studio. 17443 # Supported since Solaris 2.6 (maybe 2.5.1?) 17444 case $wlarc in 17445 '') 17446 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 17447 *) 17448 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' ;; 17449 esac ;; 17450 esac 17451 link_all_deplibs_GCJ=yes 17452 ;; 17453 17454 sunos4*) 17455 if test "x$host_vendor" = xsequent; then 17456 # Use $CC to link under sequent, because it throws in some extra .o 17457 # files that make .init and .fini sections work. 17458 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17459 else 17460 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17461 fi 17462 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17463 hardcode_direct_GCJ=yes 17464 hardcode_minus_L_GCJ=yes 17465 hardcode_shlibpath_var_GCJ=no 17466 ;; 17467 17468 sysv4) 17469 case $host_vendor in 17470 sni) 17471 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17472 hardcode_direct_GCJ=yes # is this really true??? 17473 ;; 17474 siemens) 17475 ## LD is ld it makes a PLAMLIB 17476 ## CC just makes a GrossModule. 17477 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17478 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 17479 hardcode_direct_GCJ=no 17480 ;; 17481 motorola) 17482 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17483 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 17484 ;; 17485 esac 17486 runpath_var='LD_RUN_PATH' 17487 hardcode_shlibpath_var_GCJ=no 17488 ;; 17489 17490 sysv4.3*) 17491 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17492 hardcode_shlibpath_var_GCJ=no 17493 export_dynamic_flag_spec_GCJ='-Bexport' 17494 ;; 17495 17496 sysv4*MP*) 17497 if test -d /usr/nec; then 17498 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17499 hardcode_shlibpath_var_GCJ=no 17500 runpath_var=LD_RUN_PATH 17501 hardcode_runpath_var=yes 17502 ld_shlibs_GCJ=yes 17503 fi 17504 ;; 17505 17506 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 17507 no_undefined_flag_GCJ='${wl}-z,text' 17508 archive_cmds_need_lc_GCJ=no 17509 hardcode_shlibpath_var_GCJ=no 17510 runpath_var='LD_RUN_PATH' 17511 17512 if test "$GCC" = yes; then 17513 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17514 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17515 else 17516 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17517 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17518 fi 17519 ;; 17520 17521 sysv5* | sco3.2v5* | sco5v6*) 17522 # Note: We can NOT use -z defs as we might desire, because we do not 17523 # link with -lc, and that would cause any symbols used from libc to 17524 # always be unresolved, which means just about no library would 17525 # ever link correctly. If we're not using GNU ld we use -z text 17526 # though, which does catch some bad symbols but isn't as heavy-handed 17527 # as -z defs. 17528 no_undefined_flag_GCJ='${wl}-z,text' 17529 allow_undefined_flag_GCJ='${wl}-z,nodefs' 17530 archive_cmds_need_lc_GCJ=no 17531 hardcode_shlibpath_var_GCJ=no 17532 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 17533 hardcode_libdir_separator_GCJ=':' 17534 link_all_deplibs_GCJ=yes 17535 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 17536 runpath_var='LD_RUN_PATH' 17537 17538 if test "$GCC" = yes; then 17539 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17540 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17541 else 17542 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17543 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17544 fi 17545 ;; 17546 17547 uts4*) 17548 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17549 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17550 hardcode_shlibpath_var_GCJ=no 17551 ;; 17552 17553 *) 17554 ld_shlibs_GCJ=no 17555 ;; 17556 esac 17557 fi 17558 17559{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 17560echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } 17561test "$ld_shlibs_GCJ" = no && can_build_shared=no 17562 17563# 17564# Do we need to explicitly link libc? 17565# 17566case "x$archive_cmds_need_lc_GCJ" in 17567x|xyes) 17568 # Assume -lc should be added 17569 archive_cmds_need_lc_GCJ=yes 17570 17571 if test "$enable_shared" = yes && test "$GCC" = yes; then 17572 case $archive_cmds_GCJ in 17573 *'~'*) 17574 # FIXME: we may have to deal with multi-command sequences. 17575 ;; 17576 '$CC '*) 17577 # Test whether the compiler implicitly links with -lc since on some 17578 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17579 # to ld, don't add -lc before -lgcc. 17580 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 17581echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 17582 $rm conftest* 17583 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17584 17585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17586 (eval $ac_compile) 2>&5 17587 ac_status=$? 17588 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17589 (exit $ac_status); } 2>conftest.err; then 17590 soname=conftest 17591 lib=conftest 17592 libobjs=conftest.$ac_objext 17593 deplibs= 17594 wl=$lt_prog_compiler_wl_GCJ 17595 pic_flag=$lt_prog_compiler_pic_GCJ 17596 compiler_flags=-v 17597 linker_flags=-v 17598 verstring= 17599 output_objdir=. 17600 libname=conftest 17601 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 17602 allow_undefined_flag_GCJ= 17603 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 17604 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 17605 ac_status=$? 17606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17607 (exit $ac_status); } 17608 then 17609 archive_cmds_need_lc_GCJ=no 17610 else 17611 archive_cmds_need_lc_GCJ=yes 17612 fi 17613 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 17614 else 17615 cat conftest.err 1>&5 17616 fi 17617 $rm conftest* 17618 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 17619echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } 17620 ;; 17621 esac 17622 fi 17623 ;; 17624esac 17625 17626{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 17627echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 17628library_names_spec= 17629libname_spec='lib$name' 17630soname_spec= 17631shrext_cmds=".so" 17632postinstall_cmds= 17633postuninstall_cmds= 17634finish_cmds= 17635finish_eval= 17636shlibpath_var= 17637shlibpath_overrides_runpath=unknown 17638version_type=none 17639dynamic_linker="$host_os ld.so" 17640sys_lib_dlsearch_path_spec="/lib /usr/lib" 17641if test "$GCC" = yes; then 17642 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17643 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 17644 # if the path contains ";" then we assume it to be the separator 17645 # otherwise default to the standard path separator (i.e. ":") - it is 17646 # assumed that no part of a normal pathname contains ";" but that should 17647 # okay in the real world where ";" in dirpaths is itself problematic. 17648 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17649 else 17650 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17651 fi 17652else 17653 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17654fi 17655need_lib_prefix=unknown 17656hardcode_into_libs=no 17657 17658# when you set need_version to no, make sure it does not cause -set_version 17659# flags to be left without arguments 17660need_version=unknown 17661 17662case $host_os in 17663aix3*) 17664 version_type=linux 17665 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 17666 shlibpath_var=LIBPATH 17667 17668 # AIX 3 has no versioning support, so we append a major version to the name. 17669 soname_spec='${libname}${release}${shared_ext}$major' 17670 ;; 17671 17672aix4* | aix5*) 17673 version_type=linux 17674 need_lib_prefix=no 17675 need_version=no 17676 hardcode_into_libs=yes 17677 if test "$host_cpu" = ia64; then 17678 # AIX 5 supports IA64 17679 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 17680 shlibpath_var=LD_LIBRARY_PATH 17681 else 17682 # With GCC up to 2.95.x, collect2 would create an import file 17683 # for dependence libraries. The import file would start with 17684 # the line `#! .'. This would cause the generated library to 17685 # depend on `.', always an invalid library. This was fixed in 17686 # development snapshots of GCC prior to 3.0. 17687 case $host_os in 17688 aix4 | aix4.[01] | aix4.[01].*) 17689 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17690 echo ' yes ' 17691 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 17692 : 17693 else 17694 can_build_shared=no 17695 fi 17696 ;; 17697 esac 17698 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 17699 # soname into executable. Probably we can add versioning support to 17700 # collect2, so additional links can be useful in future. 17701 if test "$aix_use_runtimelinking" = yes; then 17702 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17703 # instead of lib<name>.a to let people know that these are not 17704 # typical AIX shared libraries. 17705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17706 else 17707 # We preserve .a as extension for shared libraries through AIX4.2 17708 # and later when we are not doing run time linking. 17709 library_names_spec='${libname}${release}.a $libname.a' 17710 soname_spec='${libname}${release}${shared_ext}$major' 17711 fi 17712 shlibpath_var=LIBPATH 17713 fi 17714 ;; 17715 17716amigaos*) 17717 library_names_spec='$libname.ixlibrary $libname.a' 17718 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17719 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' 17720 ;; 17721 17722beos*) 17723 library_names_spec='${libname}${shared_ext}' 17724 dynamic_linker="$host_os ld.so" 17725 shlibpath_var=LIBRARY_PATH 17726 ;; 17727 17728bsdi[45]*) 17729 version_type=linux 17730 need_version=no 17731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17732 soname_spec='${libname}${release}${shared_ext}$major' 17733 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17734 shlibpath_var=LD_LIBRARY_PATH 17735 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17736 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17737 # the default ld.so.conf also contains /usr/contrib/lib and 17738 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17739 # libtool to hard-code these into programs 17740 ;; 17741 17742cygwin* | mingw* | pw32*) 17743 version_type=windows 17744 shrext_cmds=".dll" 17745 need_version=no 17746 need_lib_prefix=no 17747 17748 case $GCC,$host_os in 17749 yes,cygwin* | yes,mingw* | yes,pw32*) 17750 library_names_spec='$libname.dll.a' 17751 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17752 postinstall_cmds='base_file=`basename \${file}`~ 17753 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 17754 dldir=$destdir/`dirname \$dlpath`~ 17755 test -d \$dldir || mkdir -p \$dldir~ 17756 $install_prog $dir/$dlname \$dldir/$dlname~ 17757 chmod a+x \$dldir/$dlname' 17758 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17759 dlpath=$dir/\$dldll~ 17760 $rm \$dlpath' 17761 shlibpath_overrides_runpath=yes 17762 17763 case $host_os in 17764 cygwin*) 17765 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17766 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17767 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 17768 ;; 17769 mingw*) 17770 # MinGW DLLs use traditional 'lib' prefix 17771 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17772 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17773 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 17774 # It is most probably a Windows format PATH printed by 17775 # mingw gcc, but we are running on Cygwin. Gcc prints its search 17776 # path with ; separators, and with drive letters. We can handle the 17777 # drive letters (cygwin fileutils understands them), so leave them, 17778 # especially as we might pass files found there to a mingw objdump, 17779 # which wouldn't understand a cygwinified path. Ahh. 17780 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17781 else 17782 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17783 fi 17784 ;; 17785 pw32*) 17786 # pw32 DLLs use 'pw' prefix rather than 'lib' 17787 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17788 ;; 17789 esac 17790 ;; 17791 17792 *) 17793 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 17794 ;; 17795 esac 17796 dynamic_linker='Win32 ld.exe' 17797 # FIXME: first we should search . and the directory the executable is in 17798 shlibpath_var=PATH 17799 ;; 17800 17801darwin* | rhapsody*) 17802 dynamic_linker="$host_os dyld" 17803 version_type=darwin 17804 need_lib_prefix=no 17805 need_version=no 17806 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 17807 soname_spec='${libname}${release}${major}$shared_ext' 17808 shlibpath_overrides_runpath=yes 17809 shlibpath_var=DYLD_LIBRARY_PATH 17810 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17811 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 17812 if test "$GCC" = yes; then 17813 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"` 17814 else 17815 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 17816 fi 17817 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17818 ;; 17819 17820dgux*) 17821 version_type=linux 17822 need_lib_prefix=no 17823 need_version=no 17824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 17825 soname_spec='${libname}${release}${shared_ext}$major' 17826 shlibpath_var=LD_LIBRARY_PATH 17827 ;; 17828 17829freebsd1*) 17830 dynamic_linker=no 17831 ;; 17832 17833kfreebsd*-gnu) 17834 version_type=linux 17835 need_lib_prefix=no 17836 need_version=no 17837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17838 soname_spec='${libname}${release}${shared_ext}$major' 17839 shlibpath_var=LD_LIBRARY_PATH 17840 shlibpath_overrides_runpath=no 17841 hardcode_into_libs=yes 17842 dynamic_linker='GNU ld.so' 17843 ;; 17844 17845freebsd* | dragonfly*) 17846 # DragonFly does not have aout. When/if they implement a new 17847 # versioning mechanism, adjust this. 17848 if test -x /usr/bin/objformat; then 17849 objformat=`/usr/bin/objformat` 17850 else 17851 case $host_os in 17852 freebsd[123]*) objformat=aout ;; 17853 *) objformat=elf ;; 17854 esac 17855 fi 17856 version_type=freebsd-$objformat 17857 case $version_type in 17858 freebsd-elf*) 17859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17860 need_version=no 17861 need_lib_prefix=no 17862 ;; 17863 freebsd-*) 17864 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 17865 need_version=yes 17866 ;; 17867 esac 17868 shlibpath_var=LD_LIBRARY_PATH 17869 case $host_os in 17870 freebsd2*) 17871 shlibpath_overrides_runpath=yes 17872 ;; 17873 freebsd3.[01]* | freebsdelf3.[01]*) 17874 shlibpath_overrides_runpath=yes 17875 hardcode_into_libs=yes 17876 ;; 17877 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17878 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17879 shlibpath_overrides_runpath=no 17880 hardcode_into_libs=yes 17881 ;; 17882 freebsd*) # from 4.6 on 17883 shlibpath_overrides_runpath=yes 17884 hardcode_into_libs=yes 17885 ;; 17886 esac 17887 ;; 17888 17889gnu*) 17890 version_type=linux 17891 need_lib_prefix=no 17892 need_version=no 17893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17894 soname_spec='${libname}${release}${shared_ext}$major' 17895 shlibpath_var=LD_LIBRARY_PATH 17896 hardcode_into_libs=yes 17897 ;; 17898 17899hpux9* | hpux10* | hpux11*) 17900 # Give a soname corresponding to the major version so that dld.sl refuses to 17901 # link against other versions. 17902 version_type=sunos 17903 need_lib_prefix=no 17904 need_version=no 17905 case $host_cpu in 17906 ia64*) 17907 shrext_cmds='.so' 17908 hardcode_into_libs=yes 17909 dynamic_linker="$host_os dld.so" 17910 shlibpath_var=LD_LIBRARY_PATH 17911 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17913 soname_spec='${libname}${release}${shared_ext}$major' 17914 if test "X$HPUX_IA64_MODE" = X32; then 17915 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17916 else 17917 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17918 fi 17919 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17920 ;; 17921 hppa*64*) 17922 shrext_cmds='.sl' 17923 hardcode_into_libs=yes 17924 dynamic_linker="$host_os dld.sl" 17925 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17926 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17930 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17931 ;; 17932 *) 17933 shrext_cmds='.sl' 17934 dynamic_linker="$host_os dld.sl" 17935 shlibpath_var=SHLIB_PATH 17936 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17938 soname_spec='${libname}${release}${shared_ext}$major' 17939 ;; 17940 esac 17941 # HP-UX runs *really* slowly unless shared libraries are mode 555. 17942 postinstall_cmds='chmod 555 $lib' 17943 ;; 17944 17945interix3*) 17946 version_type=linux 17947 need_lib_prefix=no 17948 need_version=no 17949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17950 soname_spec='${libname}${release}${shared_ext}$major' 17951 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17952 shlibpath_var=LD_LIBRARY_PATH 17953 shlibpath_overrides_runpath=no 17954 hardcode_into_libs=yes 17955 ;; 17956 17957irix5* | irix6* | nonstopux*) 17958 case $host_os in 17959 nonstopux*) version_type=nonstopux ;; 17960 *) 17961 if test "$lt_cv_prog_gnu_ld" = yes; then 17962 version_type=linux 17963 else 17964 version_type=irix 17965 fi ;; 17966 esac 17967 need_lib_prefix=no 17968 need_version=no 17969 soname_spec='${libname}${release}${shared_ext}$major' 17970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 17971 case $host_os in 17972 irix5* | nonstopux*) 17973 libsuff= shlibsuff= 17974 ;; 17975 *) 17976 case $LD in # libtool.m4 will add one of these switches to LD 17977 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17978 libsuff= shlibsuff= libmagic=32-bit;; 17979 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17980 libsuff=32 shlibsuff=N32 libmagic=N32;; 17981 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17982 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17983 *) libsuff= shlibsuff= libmagic=never-match;; 17984 esac 17985 ;; 17986 esac 17987 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17988 shlibpath_overrides_runpath=no 17989 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 17990 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 17991 hardcode_into_libs=yes 17992 ;; 17993 17994# No shared lib support for Linux oldld, aout, or coff. 17995linux*oldld* | linux*aout* | linux*coff*) 17996 dynamic_linker=no 17997 ;; 17998 17999# This must be Linux ELF. 18000linux*) 18001 version_type=linux 18002 need_lib_prefix=no 18003 need_version=no 18004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18005 soname_spec='${libname}${release}${shared_ext}$major' 18006 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18007 shlibpath_var=LD_LIBRARY_PATH 18008 shlibpath_overrides_runpath=no 18009 # This implies no fast_install, which is unacceptable. 18010 # Some rework will be needed to allow for fast_install 18011 # before this can be enabled. 18012 hardcode_into_libs=yes 18013 18014 # Append ld.so.conf contents to the search path 18015 if test -f /etc/ld.so.conf; then 18016 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' ' '` 18017 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18018 fi 18019 18020 # We used to test for /lib/ld.so.1 and disable shared libraries on 18021 # powerpc, because MkLinux only supported shared libraries with the 18022 # GNU dynamic linker. Since this was broken with cross compilers, 18023 # most powerpc-linux boxes support dynamic linking these days and 18024 # people can always --disable-shared, the test was removed, and we 18025 # assume the GNU/Linux dynamic linker is in use. 18026 dynamic_linker='GNU/Linux ld.so' 18027 ;; 18028 18029knetbsd*-gnu) 18030 version_type=linux 18031 need_lib_prefix=no 18032 need_version=no 18033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18034 soname_spec='${libname}${release}${shared_ext}$major' 18035 shlibpath_var=LD_LIBRARY_PATH 18036 shlibpath_overrides_runpath=no 18037 hardcode_into_libs=yes 18038 dynamic_linker='GNU ld.so' 18039 ;; 18040 18041netbsd*) 18042 version_type=sunos 18043 need_lib_prefix=no 18044 need_version=no 18045 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18047 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18048 dynamic_linker='NetBSD (a.out) ld.so' 18049 else 18050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18051 soname_spec='${libname}${release}${shared_ext}$major' 18052 dynamic_linker='NetBSD ld.elf_so' 18053 fi 18054 shlibpath_var=LD_LIBRARY_PATH 18055 shlibpath_overrides_runpath=yes 18056 hardcode_into_libs=yes 18057 ;; 18058 18059newsos6) 18060 version_type=linux 18061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18062 shlibpath_var=LD_LIBRARY_PATH 18063 shlibpath_overrides_runpath=yes 18064 ;; 18065 18066nto-qnx*) 18067 version_type=linux 18068 need_lib_prefix=no 18069 need_version=no 18070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18071 soname_spec='${libname}${release}${shared_ext}$major' 18072 shlibpath_var=LD_LIBRARY_PATH 18073 shlibpath_overrides_runpath=yes 18074 ;; 18075 18076openbsd*) 18077 version_type=sunos 18078 sys_lib_dlsearch_path_spec="/usr/lib" 18079 need_lib_prefix=no 18080 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18081 case $host_os in 18082 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18083 *) need_version=no ;; 18084 esac 18085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18086 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18087 shlibpath_var=LD_LIBRARY_PATH 18088 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18089 case $host_os in 18090 openbsd2.[89] | openbsd2.[89].*) 18091 shlibpath_overrides_runpath=no 18092 ;; 18093 *) 18094 shlibpath_overrides_runpath=yes 18095 ;; 18096 esac 18097 else 18098 shlibpath_overrides_runpath=yes 18099 fi 18100 ;; 18101 18102os2*) 18103 libname_spec='$name' 18104 shrext_cmds=".dll" 18105 need_lib_prefix=no 18106 library_names_spec='$libname${shared_ext} $libname.a' 18107 dynamic_linker='OS/2 ld.exe' 18108 shlibpath_var=LIBPATH 18109 ;; 18110 18111osf3* | osf4* | osf5*) 18112 version_type=osf 18113 need_lib_prefix=no 18114 need_version=no 18115 soname_spec='${libname}${release}${shared_ext}$major' 18116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18117 shlibpath_var=LD_LIBRARY_PATH 18118 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18119 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18120 ;; 18121 18122solaris*) 18123 version_type=linux 18124 need_lib_prefix=no 18125 need_version=no 18126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18127 soname_spec='${libname}${release}${shared_ext}$major' 18128 shlibpath_var=LD_LIBRARY_PATH 18129 shlibpath_overrides_runpath=yes 18130 hardcode_into_libs=yes 18131 # ldd complains unless libraries are executable 18132 postinstall_cmds='chmod +x $lib' 18133 ;; 18134 18135sunos4*) 18136 version_type=sunos 18137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18138 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18139 shlibpath_var=LD_LIBRARY_PATH 18140 shlibpath_overrides_runpath=yes 18141 if test "$with_gnu_ld" = yes; then 18142 need_lib_prefix=no 18143 fi 18144 need_version=yes 18145 ;; 18146 18147sysv4 | sysv4.3*) 18148 version_type=linux 18149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18150 soname_spec='${libname}${release}${shared_ext}$major' 18151 shlibpath_var=LD_LIBRARY_PATH 18152 case $host_vendor in 18153 sni) 18154 shlibpath_overrides_runpath=no 18155 need_lib_prefix=no 18156 export_dynamic_flag_spec='${wl}-Blargedynsym' 18157 runpath_var=LD_RUN_PATH 18158 ;; 18159 siemens) 18160 need_lib_prefix=no 18161 ;; 18162 motorola) 18163 need_lib_prefix=no 18164 need_version=no 18165 shlibpath_overrides_runpath=no 18166 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18167 ;; 18168 esac 18169 ;; 18170 18171sysv4*MP*) 18172 if test -d /usr/nec ;then 18173 version_type=linux 18174 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18175 soname_spec='$libname${shared_ext}.$major' 18176 shlibpath_var=LD_LIBRARY_PATH 18177 fi 18178 ;; 18179 18180sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18181 version_type=freebsd-elf 18182 need_lib_prefix=no 18183 need_version=no 18184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18185 soname_spec='${libname}${release}${shared_ext}$major' 18186 shlibpath_var=LD_LIBRARY_PATH 18187 hardcode_into_libs=yes 18188 if test "$with_gnu_ld" = yes; then 18189 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18190 shlibpath_overrides_runpath=no 18191 else 18192 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18193 shlibpath_overrides_runpath=yes 18194 case $host_os in 18195 sco3.2v5*) 18196 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18197 ;; 18198 esac 18199 fi 18200 sys_lib_dlsearch_path_spec='/usr/lib' 18201 ;; 18202 18203uts4*) 18204 version_type=linux 18205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18206 soname_spec='${libname}${release}${shared_ext}$major' 18207 shlibpath_var=LD_LIBRARY_PATH 18208 ;; 18209 18210*) 18211 dynamic_linker=no 18212 ;; 18213esac 18214{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18215echo "${ECHO_T}$dynamic_linker" >&6; } 18216test "$dynamic_linker" = no && can_build_shared=no 18217 18218variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18219if test "$GCC" = yes; then 18220 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18221fi 18222 18223{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18224echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 18225hardcode_action_GCJ= 18226if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18227 test -n "$runpath_var_GCJ" || \ 18228 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 18229 18230 # We can hardcode non-existant directories. 18231 if test "$hardcode_direct_GCJ" != no && 18232 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18233 # have to relink, otherwise we might link with an installed library 18234 # when we should be linking with a yet-to-be-installed one 18235 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 18236 test "$hardcode_minus_L_GCJ" != no; then 18237 # Linking always hardcodes the temporary library directory. 18238 hardcode_action_GCJ=relink 18239 else 18240 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18241 hardcode_action_GCJ=immediate 18242 fi 18243else 18244 # We cannot hardcode anything, or else we can only hardcode existing 18245 # directories. 18246 hardcode_action_GCJ=unsupported 18247fi 18248{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 18249echo "${ECHO_T}$hardcode_action_GCJ" >&6; } 18250 18251if test "$hardcode_action_GCJ" = relink; then 18252 # Fast installation is not supported 18253 enable_fast_install=no 18254elif test "$shlibpath_overrides_runpath" = yes || 18255 test "$enable_shared" = no; then 18256 # Fast installation is not necessary 18257 enable_fast_install=needless 18258fi 18259 18260 18261# The else clause should only fire when bootstrapping the 18262# libtool distribution, otherwise you forgot to ship ltmain.sh 18263# with your package, and you will get complaints that there are 18264# no rules to generate ltmain.sh. 18265if test -f "$ltmain"; then 18266 # See if we are running on zsh, and set the options which allow our commands through 18267 # without removal of \ escapes. 18268 if test -n "${ZSH_VERSION+set}" ; then 18269 setopt NO_GLOB_SUBST 18270 fi 18271 # Now quote all the things that may contain metacharacters while being 18272 # careful not to overquote the AC_SUBSTed values. We take copies of the 18273 # variables and quote the copies for generation of the libtool script. 18274 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18275 SED SHELL STRIP \ 18276 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18277 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18278 deplibs_check_method reload_flag reload_cmds need_locks \ 18279 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18280 lt_cv_sys_global_symbol_to_c_name_address \ 18281 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18282 old_postinstall_cmds old_postuninstall_cmds \ 18283 compiler_GCJ \ 18284 CC_GCJ \ 18285 LD_GCJ \ 18286 lt_prog_compiler_wl_GCJ \ 18287 lt_prog_compiler_pic_GCJ \ 18288 lt_prog_compiler_static_GCJ \ 18289 lt_prog_compiler_no_builtin_flag_GCJ \ 18290 export_dynamic_flag_spec_GCJ \ 18291 thread_safe_flag_spec_GCJ \ 18292 whole_archive_flag_spec_GCJ \ 18293 enable_shared_with_static_runtimes_GCJ \ 18294 old_archive_cmds_GCJ \ 18295 old_archive_from_new_cmds_GCJ \ 18296 predep_objects_GCJ \ 18297 postdep_objects_GCJ \ 18298 predeps_GCJ \ 18299 postdeps_GCJ \ 18300 compiler_lib_search_path_GCJ \ 18301 archive_cmds_GCJ \ 18302 archive_expsym_cmds_GCJ \ 18303 postinstall_cmds_GCJ \ 18304 postuninstall_cmds_GCJ \ 18305 old_archive_from_expsyms_cmds_GCJ \ 18306 allow_undefined_flag_GCJ \ 18307 no_undefined_flag_GCJ \ 18308 export_symbols_cmds_GCJ \ 18309 hardcode_libdir_flag_spec_GCJ \ 18310 hardcode_libdir_flag_spec_ld_GCJ \ 18311 hardcode_libdir_separator_GCJ \ 18312 hardcode_automatic_GCJ \ 18313 module_cmds_GCJ \ 18314 module_expsym_cmds_GCJ \ 18315 lt_cv_prog_compiler_c_o_GCJ \ 18316 exclude_expsyms_GCJ \ 18317 include_expsyms_GCJ; do 18318 18319 case $var in 18320 old_archive_cmds_GCJ | \ 18321 old_archive_from_new_cmds_GCJ | \ 18322 archive_cmds_GCJ | \ 18323 archive_expsym_cmds_GCJ | \ 18324 module_cmds_GCJ | \ 18325 module_expsym_cmds_GCJ | \ 18326 old_archive_from_expsyms_cmds_GCJ | \ 18327 export_symbols_cmds_GCJ | \ 18328 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18329 postinstall_cmds | postuninstall_cmds | \ 18330 old_postinstall_cmds | old_postuninstall_cmds | \ 18331 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18332 # Double-quote double-evaled strings. 18333 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18334 ;; 18335 *) 18336 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18337 ;; 18338 esac 18339 done 18340 18341 case $lt_echo in 18342 *'\$0 --fallback-echo"') 18343 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18344 ;; 18345 esac 18346 18347cfgfile="$ofile" 18348 18349 cat <<__EOF__ >> "$cfgfile" 18350# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18351 18352# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18353 18354# Shell to use when invoking shell scripts. 18355SHELL=$lt_SHELL 18356 18357# Whether or not to build shared libraries. 18358build_libtool_libs=$enable_shared 18359 18360# Whether or not to build static libraries. 18361build_old_libs=$enable_static 18362 18363# Whether or not to add -lc for building shared libraries. 18364build_libtool_need_lc=$archive_cmds_need_lc_GCJ 18365 18366# Whether or not to disallow shared libs when runtime libs are static 18367allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 18368 18369# Whether or not to optimize for fast installation. 18370fast_install=$enable_fast_install 18371 18372# The host system. 18373host_alias=$host_alias 18374host=$host 18375host_os=$host_os 18376 18377# The build system. 18378build_alias=$build_alias 18379build=$build 18380build_os=$build_os 18381 18382# An echo program that does not interpret backslashes. 18383echo=$lt_echo 18384 18385# The archiver. 18386AR=$lt_AR 18387AR_FLAGS=$lt_AR_FLAGS 18388 18389# A C compiler. 18390LTCC=$lt_LTCC 18391 18392# LTCC compiler flags. 18393LTCFLAGS=$lt_LTCFLAGS 18394 18395# A language-specific compiler. 18396CC=$lt_compiler_GCJ 18397 18398# Is the compiler the GNU C compiler? 18399with_gcc=$GCC_GCJ 18400 18401# An ERE matcher. 18402EGREP=$lt_EGREP 18403 18404# The linker used to build libraries. 18405LD=$lt_LD_GCJ 18406 18407# Whether we need hard or soft links. 18408LN_S=$lt_LN_S 18409 18410# A BSD-compatible nm program. 18411NM=$lt_NM 18412 18413# A symbol stripping program 18414STRIP=$lt_STRIP 18415 18416# Used to examine libraries when file_magic_cmd begins "file" 18417MAGIC_CMD=$MAGIC_CMD 18418 18419# Used on cygwin: DLL creation program. 18420DLLTOOL="$DLLTOOL" 18421 18422# Used on cygwin: object dumper. 18423OBJDUMP="$OBJDUMP" 18424 18425# Used on cygwin: assembler. 18426AS="$AS" 18427 18428# The name of the directory that contains temporary libtool files. 18429objdir=$objdir 18430 18431# How to create reloadable object files. 18432reload_flag=$lt_reload_flag 18433reload_cmds=$lt_reload_cmds 18434 18435# How to pass a linker flag through the compiler. 18436wl=$lt_lt_prog_compiler_wl_GCJ 18437 18438# Object file suffix (normally "o"). 18439objext="$ac_objext" 18440 18441# Old archive suffix (normally "a"). 18442libext="$libext" 18443 18444# Shared library suffix (normally ".so"). 18445shrext_cmds='$shrext_cmds' 18446 18447# Executable file suffix (normally ""). 18448exeext="$exeext" 18449 18450# Additional compiler flags for building library objects. 18451pic_flag=$lt_lt_prog_compiler_pic_GCJ 18452pic_mode=$pic_mode 18453 18454# What is the maximum length of a command? 18455max_cmd_len=$lt_cv_sys_max_cmd_len 18456 18457# Does compiler simultaneously support -c and -o options? 18458compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 18459 18460# Must we lock files when doing compilation? 18461need_locks=$lt_need_locks 18462 18463# Do we need the lib prefix for modules? 18464need_lib_prefix=$need_lib_prefix 18465 18466# Do we need a version for libraries? 18467need_version=$need_version 18468 18469# Whether dlopen is supported. 18470dlopen_support=$enable_dlopen 18471 18472# Whether dlopen of programs is supported. 18473dlopen_self=$enable_dlopen_self 18474 18475# Whether dlopen of statically linked programs is supported. 18476dlopen_self_static=$enable_dlopen_self_static 18477 18478# Compiler flag to prevent dynamic linking. 18479link_static_flag=$lt_lt_prog_compiler_static_GCJ 18480 18481# Compiler flag to turn off builtin functions. 18482no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 18483 18484# Compiler flag to allow reflexive dlopens. 18485export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 18486 18487# Compiler flag to generate shared objects directly from archives. 18488whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 18489 18490# Compiler flag to generate thread-safe objects. 18491thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 18492 18493# Library versioning type. 18494version_type=$version_type 18495 18496# Format of library name prefix. 18497libname_spec=$lt_libname_spec 18498 18499# List of archive names. First name is the real one, the rest are links. 18500# The last name is the one that the linker finds with -lNAME. 18501library_names_spec=$lt_library_names_spec 18502 18503# The coded name of the library, if different from the real name. 18504soname_spec=$lt_soname_spec 18505 18506# Commands used to build and install an old-style archive. 18507RANLIB=$lt_RANLIB 18508old_archive_cmds=$lt_old_archive_cmds_GCJ 18509old_postinstall_cmds=$lt_old_postinstall_cmds 18510old_postuninstall_cmds=$lt_old_postuninstall_cmds 18511 18512# Create an old-style archive from a shared archive. 18513old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 18514 18515# Create a temporary old-style archive to link instead of a shared archive. 18516old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 18517 18518# Commands used to build and install a shared archive. 18519archive_cmds=$lt_archive_cmds_GCJ 18520archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 18521postinstall_cmds=$lt_postinstall_cmds 18522postuninstall_cmds=$lt_postuninstall_cmds 18523 18524# Commands used to build a loadable module (assumed same as above if empty) 18525module_cmds=$lt_module_cmds_GCJ 18526module_expsym_cmds=$lt_module_expsym_cmds_GCJ 18527 18528# Commands to strip libraries. 18529old_striplib=$lt_old_striplib 18530striplib=$lt_striplib 18531 18532# Dependencies to place before the objects being linked to create a 18533# shared library. 18534predep_objects=$lt_predep_objects_GCJ 18535 18536# Dependencies to place after the objects being linked to create a 18537# shared library. 18538postdep_objects=$lt_postdep_objects_GCJ 18539 18540# Dependencies to place before the objects being linked to create a 18541# shared library. 18542predeps=$lt_predeps_GCJ 18543 18544# Dependencies to place after the objects being linked to create a 18545# shared library. 18546postdeps=$lt_postdeps_GCJ 18547 18548# The library search path used internally by the compiler when linking 18549# a shared library. 18550compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 18551 18552# Method to check whether dependent libraries are shared objects. 18553deplibs_check_method=$lt_deplibs_check_method 18554 18555# Command to use when deplibs_check_method == file_magic. 18556file_magic_cmd=$lt_file_magic_cmd 18557 18558# Flag that allows shared libraries with undefined symbols to be built. 18559allow_undefined_flag=$lt_allow_undefined_flag_GCJ 18560 18561# Flag that forces no undefined symbols. 18562no_undefined_flag=$lt_no_undefined_flag_GCJ 18563 18564# Commands used to finish a libtool library installation in a directory. 18565finish_cmds=$lt_finish_cmds 18566 18567# Same as above, but a single script fragment to be evaled but not shown. 18568finish_eval=$lt_finish_eval 18569 18570# Take the output of nm and produce a listing of raw symbols and C names. 18571global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18572 18573# Transform the output of nm in a proper C declaration 18574global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18575 18576# Transform the output of nm in a C name address pair 18577global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18578 18579# This is the shared library runtime path variable. 18580runpath_var=$runpath_var 18581 18582# This is the shared library path variable. 18583shlibpath_var=$shlibpath_var 18584 18585# Is shlibpath searched before the hard-coded library search path? 18586shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18587 18588# How to hardcode a shared library path into an executable. 18589hardcode_action=$hardcode_action_GCJ 18590 18591# Whether we should hardcode library paths into libraries. 18592hardcode_into_libs=$hardcode_into_libs 18593 18594# Flag to hardcode \$libdir into a binary during linking. 18595# This must work even if \$libdir does not exist. 18596hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 18597 18598# If ld is used when linking, flag to hardcode \$libdir into 18599# a binary during linking. This must work even if \$libdir does 18600# not exist. 18601hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 18602 18603# Whether we need a single -rpath flag with a separated argument. 18604hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 18605 18606# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18607# resulting binary. 18608hardcode_direct=$hardcode_direct_GCJ 18609 18610# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18611# resulting binary. 18612hardcode_minus_L=$hardcode_minus_L_GCJ 18613 18614# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18615# the resulting binary. 18616hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 18617 18618# Set to yes if building a shared library automatically hardcodes DIR into the library 18619# and all subsequent libraries and executables linked against it. 18620hardcode_automatic=$hardcode_automatic_GCJ 18621 18622# Variables whose values should be saved in libtool wrapper scripts and 18623# restored at relink time. 18624variables_saved_for_relink="$variables_saved_for_relink" 18625 18626# Whether libtool must link a program against all its dependency libraries. 18627link_all_deplibs=$link_all_deplibs_GCJ 18628 18629# Compile-time system search path for libraries 18630sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18631 18632# Run-time system search path for libraries 18633sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18634 18635# Fix the shell variable \$srcfile for the compiler. 18636fix_srcfile_path="$fix_srcfile_path_GCJ" 18637 18638# Set to yes if exported symbols are required. 18639always_export_symbols=$always_export_symbols_GCJ 18640 18641# The commands to list exported symbols. 18642export_symbols_cmds=$lt_export_symbols_cmds_GCJ 18643 18644# The commands to extract the exported symbol list from a shared archive. 18645extract_expsyms_cmds=$lt_extract_expsyms_cmds 18646 18647# Symbols that should not be listed in the preloaded symbols. 18648exclude_expsyms=$lt_exclude_expsyms_GCJ 18649 18650# Symbols that must always be exported. 18651include_expsyms=$lt_include_expsyms_GCJ 18652 18653# ### END LIBTOOL TAG CONFIG: $tagname 18654 18655__EOF__ 18656 18657 18658else 18659 # If there is no Makefile yet, we rely on a make rule to execute 18660 # `config.status --recheck' to rerun these tests and create the 18661 # libtool script then. 18662 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18663 if test -f "$ltmain_in"; then 18664 test -f Makefile && make "$ltmain" 18665 fi 18666fi 18667 18668 18669ac_ext=c 18670ac_cpp='$CPP $CPPFLAGS' 18671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18673ac_compiler_gnu=$ac_cv_c_compiler_gnu 18674 18675CC="$lt_save_CC" 18676 18677 else 18678 tagname="" 18679 fi 18680 ;; 18681 18682 RC) 18683 18684 18685# Source file extension for RC test sources. 18686ac_ext=rc 18687 18688# Object file extension for compiled RC test sources. 18689objext=o 18690objext_RC=$objext 18691 18692# Code to be used in simple compile tests 18693lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 18694 18695# Code to be used in simple link tests 18696lt_simple_link_test_code="$lt_simple_compile_test_code" 18697 18698# ltmain only uses $CC for tagged configurations so make sure $CC is set. 18699 18700# If no C compiler was specified, use CC. 18701LTCC=${LTCC-"$CC"} 18702 18703# If no C compiler flags were specified, use CFLAGS. 18704LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 18705 18706# Allow CC to be a program name with arguments. 18707compiler=$CC 18708 18709 18710# save warnings/boilerplate of simple test code 18711ac_outfile=conftest.$ac_objext 18712printf "$lt_simple_compile_test_code" >conftest.$ac_ext 18713eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18714_lt_compiler_boilerplate=`cat conftest.err` 18715$rm conftest* 18716 18717ac_outfile=conftest.$ac_objext 18718printf "$lt_simple_link_test_code" >conftest.$ac_ext 18719eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18720_lt_linker_boilerplate=`cat conftest.err` 18721$rm conftest* 18722 18723 18724# Allow CC to be a program name with arguments. 18725lt_save_CC="$CC" 18726CC=${RC-"windres"} 18727compiler=$CC 18728compiler_RC=$CC 18729for cc_temp in $compiler""; do 18730 case $cc_temp in 18731 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18732 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18733 \-*) ;; 18734 *) break;; 18735 esac 18736done 18737cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 18738 18739lt_cv_prog_compiler_c_o_RC=yes 18740 18741# The else clause should only fire when bootstrapping the 18742# libtool distribution, otherwise you forgot to ship ltmain.sh 18743# with your package, and you will get complaints that there are 18744# no rules to generate ltmain.sh. 18745if test -f "$ltmain"; then 18746 # See if we are running on zsh, and set the options which allow our commands through 18747 # without removal of \ escapes. 18748 if test -n "${ZSH_VERSION+set}" ; then 18749 setopt NO_GLOB_SUBST 18750 fi 18751 # Now quote all the things that may contain metacharacters while being 18752 # careful not to overquote the AC_SUBSTed values. We take copies of the 18753 # variables and quote the copies for generation of the libtool script. 18754 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18755 SED SHELL STRIP \ 18756 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18757 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18758 deplibs_check_method reload_flag reload_cmds need_locks \ 18759 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18760 lt_cv_sys_global_symbol_to_c_name_address \ 18761 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18762 old_postinstall_cmds old_postuninstall_cmds \ 18763 compiler_RC \ 18764 CC_RC \ 18765 LD_RC \ 18766 lt_prog_compiler_wl_RC \ 18767 lt_prog_compiler_pic_RC \ 18768 lt_prog_compiler_static_RC \ 18769 lt_prog_compiler_no_builtin_flag_RC \ 18770 export_dynamic_flag_spec_RC \ 18771 thread_safe_flag_spec_RC \ 18772 whole_archive_flag_spec_RC \ 18773 enable_shared_with_static_runtimes_RC \ 18774 old_archive_cmds_RC \ 18775 old_archive_from_new_cmds_RC \ 18776 predep_objects_RC \ 18777 postdep_objects_RC \ 18778 predeps_RC \ 18779 postdeps_RC \ 18780 compiler_lib_search_path_RC \ 18781 archive_cmds_RC \ 18782 archive_expsym_cmds_RC \ 18783 postinstall_cmds_RC \ 18784 postuninstall_cmds_RC \ 18785 old_archive_from_expsyms_cmds_RC \ 18786 allow_undefined_flag_RC \ 18787 no_undefined_flag_RC \ 18788 export_symbols_cmds_RC \ 18789 hardcode_libdir_flag_spec_RC \ 18790 hardcode_libdir_flag_spec_ld_RC \ 18791 hardcode_libdir_separator_RC \ 18792 hardcode_automatic_RC \ 18793 module_cmds_RC \ 18794 module_expsym_cmds_RC \ 18795 lt_cv_prog_compiler_c_o_RC \ 18796 exclude_expsyms_RC \ 18797 include_expsyms_RC; do 18798 18799 case $var in 18800 old_archive_cmds_RC | \ 18801 old_archive_from_new_cmds_RC | \ 18802 archive_cmds_RC | \ 18803 archive_expsym_cmds_RC | \ 18804 module_cmds_RC | \ 18805 module_expsym_cmds_RC | \ 18806 old_archive_from_expsyms_cmds_RC | \ 18807 export_symbols_cmds_RC | \ 18808 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18809 postinstall_cmds | postuninstall_cmds | \ 18810 old_postinstall_cmds | old_postuninstall_cmds | \ 18811 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18812 # Double-quote double-evaled strings. 18813 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18814 ;; 18815 *) 18816 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18817 ;; 18818 esac 18819 done 18820 18821 case $lt_echo in 18822 *'\$0 --fallback-echo"') 18823 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18824 ;; 18825 esac 18826 18827cfgfile="$ofile" 18828 18829 cat <<__EOF__ >> "$cfgfile" 18830# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18831 18832# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18833 18834# Shell to use when invoking shell scripts. 18835SHELL=$lt_SHELL 18836 18837# Whether or not to build shared libraries. 18838build_libtool_libs=$enable_shared 18839 18840# Whether or not to build static libraries. 18841build_old_libs=$enable_static 18842 18843# Whether or not to add -lc for building shared libraries. 18844build_libtool_need_lc=$archive_cmds_need_lc_RC 18845 18846# Whether or not to disallow shared libs when runtime libs are static 18847allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 18848 18849# Whether or not to optimize for fast installation. 18850fast_install=$enable_fast_install 18851 18852# The host system. 18853host_alias=$host_alias 18854host=$host 18855host_os=$host_os 18856 18857# The build system. 18858build_alias=$build_alias 18859build=$build 18860build_os=$build_os 18861 18862# An echo program that does not interpret backslashes. 18863echo=$lt_echo 18864 18865# The archiver. 18866AR=$lt_AR 18867AR_FLAGS=$lt_AR_FLAGS 18868 18869# A C compiler. 18870LTCC=$lt_LTCC 18871 18872# LTCC compiler flags. 18873LTCFLAGS=$lt_LTCFLAGS 18874 18875# A language-specific compiler. 18876CC=$lt_compiler_RC 18877 18878# Is the compiler the GNU C compiler? 18879with_gcc=$GCC_RC 18880 18881# An ERE matcher. 18882EGREP=$lt_EGREP 18883 18884# The linker used to build libraries. 18885LD=$lt_LD_RC 18886 18887# Whether we need hard or soft links. 18888LN_S=$lt_LN_S 18889 18890# A BSD-compatible nm program. 18891NM=$lt_NM 18892 18893# A symbol stripping program 18894STRIP=$lt_STRIP 18895 18896# Used to examine libraries when file_magic_cmd begins "file" 18897MAGIC_CMD=$MAGIC_CMD 18898 18899# Used on cygwin: DLL creation program. 18900DLLTOOL="$DLLTOOL" 18901 18902# Used on cygwin: object dumper. 18903OBJDUMP="$OBJDUMP" 18904 18905# Used on cygwin: assembler. 18906AS="$AS" 18907 18908# The name of the directory that contains temporary libtool files. 18909objdir=$objdir 18910 18911# How to create reloadable object files. 18912reload_flag=$lt_reload_flag 18913reload_cmds=$lt_reload_cmds 18914 18915# How to pass a linker flag through the compiler. 18916wl=$lt_lt_prog_compiler_wl_RC 18917 18918# Object file suffix (normally "o"). 18919objext="$ac_objext" 18920 18921# Old archive suffix (normally "a"). 18922libext="$libext" 18923 18924# Shared library suffix (normally ".so"). 18925shrext_cmds='$shrext_cmds' 18926 18927# Executable file suffix (normally ""). 18928exeext="$exeext" 18929 18930# Additional compiler flags for building library objects. 18931pic_flag=$lt_lt_prog_compiler_pic_RC 18932pic_mode=$pic_mode 18933 18934# What is the maximum length of a command? 18935max_cmd_len=$lt_cv_sys_max_cmd_len 18936 18937# Does compiler simultaneously support -c and -o options? 18938compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 18939 18940# Must we lock files when doing compilation? 18941need_locks=$lt_need_locks 18942 18943# Do we need the lib prefix for modules? 18944need_lib_prefix=$need_lib_prefix 18945 18946# Do we need a version for libraries? 18947need_version=$need_version 18948 18949# Whether dlopen is supported. 18950dlopen_support=$enable_dlopen 18951 18952# Whether dlopen of programs is supported. 18953dlopen_self=$enable_dlopen_self 18954 18955# Whether dlopen of statically linked programs is supported. 18956dlopen_self_static=$enable_dlopen_self_static 18957 18958# Compiler flag to prevent dynamic linking. 18959link_static_flag=$lt_lt_prog_compiler_static_RC 18960 18961# Compiler flag to turn off builtin functions. 18962no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 18963 18964# Compiler flag to allow reflexive dlopens. 18965export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 18966 18967# Compiler flag to generate shared objects directly from archives. 18968whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 18969 18970# Compiler flag to generate thread-safe objects. 18971thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 18972 18973# Library versioning type. 18974version_type=$version_type 18975 18976# Format of library name prefix. 18977libname_spec=$lt_libname_spec 18978 18979# List of archive names. First name is the real one, the rest are links. 18980# The last name is the one that the linker finds with -lNAME. 18981library_names_spec=$lt_library_names_spec 18982 18983# The coded name of the library, if different from the real name. 18984soname_spec=$lt_soname_spec 18985 18986# Commands used to build and install an old-style archive. 18987RANLIB=$lt_RANLIB 18988old_archive_cmds=$lt_old_archive_cmds_RC 18989old_postinstall_cmds=$lt_old_postinstall_cmds 18990old_postuninstall_cmds=$lt_old_postuninstall_cmds 18991 18992# Create an old-style archive from a shared archive. 18993old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 18994 18995# Create a temporary old-style archive to link instead of a shared archive. 18996old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 18997 18998# Commands used to build and install a shared archive. 18999archive_cmds=$lt_archive_cmds_RC 19000archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19001postinstall_cmds=$lt_postinstall_cmds 19002postuninstall_cmds=$lt_postuninstall_cmds 19003 19004# Commands used to build a loadable module (assumed same as above if empty) 19005module_cmds=$lt_module_cmds_RC 19006module_expsym_cmds=$lt_module_expsym_cmds_RC 19007 19008# Commands to strip libraries. 19009old_striplib=$lt_old_striplib 19010striplib=$lt_striplib 19011 19012# Dependencies to place before the objects being linked to create a 19013# shared library. 19014predep_objects=$lt_predep_objects_RC 19015 19016# Dependencies to place after the objects being linked to create a 19017# shared library. 19018postdep_objects=$lt_postdep_objects_RC 19019 19020# Dependencies to place before the objects being linked to create a 19021# shared library. 19022predeps=$lt_predeps_RC 19023 19024# Dependencies to place after the objects being linked to create a 19025# shared library. 19026postdeps=$lt_postdeps_RC 19027 19028# The library search path used internally by the compiler when linking 19029# a shared library. 19030compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19031 19032# Method to check whether dependent libraries are shared objects. 19033deplibs_check_method=$lt_deplibs_check_method 19034 19035# Command to use when deplibs_check_method == file_magic. 19036file_magic_cmd=$lt_file_magic_cmd 19037 19038# Flag that allows shared libraries with undefined symbols to be built. 19039allow_undefined_flag=$lt_allow_undefined_flag_RC 19040 19041# Flag that forces no undefined symbols. 19042no_undefined_flag=$lt_no_undefined_flag_RC 19043 19044# Commands used to finish a libtool library installation in a directory. 19045finish_cmds=$lt_finish_cmds 19046 19047# Same as above, but a single script fragment to be evaled but not shown. 19048finish_eval=$lt_finish_eval 19049 19050# Take the output of nm and produce a listing of raw symbols and C names. 19051global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19052 19053# Transform the output of nm in a proper C declaration 19054global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19055 19056# Transform the output of nm in a C name address pair 19057global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19058 19059# This is the shared library runtime path variable. 19060runpath_var=$runpath_var 19061 19062# This is the shared library path variable. 19063shlibpath_var=$shlibpath_var 19064 19065# Is shlibpath searched before the hard-coded library search path? 19066shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19067 19068# How to hardcode a shared library path into an executable. 19069hardcode_action=$hardcode_action_RC 19070 19071# Whether we should hardcode library paths into libraries. 19072hardcode_into_libs=$hardcode_into_libs 19073 19074# Flag to hardcode \$libdir into a binary during linking. 19075# This must work even if \$libdir does not exist. 19076hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19077 19078# If ld is used when linking, flag to hardcode \$libdir into 19079# a binary during linking. This must work even if \$libdir does 19080# not exist. 19081hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19082 19083# Whether we need a single -rpath flag with a separated argument. 19084hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19085 19086# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19087# resulting binary. 19088hardcode_direct=$hardcode_direct_RC 19089 19090# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19091# resulting binary. 19092hardcode_minus_L=$hardcode_minus_L_RC 19093 19094# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19095# the resulting binary. 19096hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19097 19098# Set to yes if building a shared library automatically hardcodes DIR into the library 19099# and all subsequent libraries and executables linked against it. 19100hardcode_automatic=$hardcode_automatic_RC 19101 19102# Variables whose values should be saved in libtool wrapper scripts and 19103# restored at relink time. 19104variables_saved_for_relink="$variables_saved_for_relink" 19105 19106# Whether libtool must link a program against all its dependency libraries. 19107link_all_deplibs=$link_all_deplibs_RC 19108 19109# Compile-time system search path for libraries 19110sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19111 19112# Run-time system search path for libraries 19113sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19114 19115# Fix the shell variable \$srcfile for the compiler. 19116fix_srcfile_path="$fix_srcfile_path_RC" 19117 19118# Set to yes if exported symbols are required. 19119always_export_symbols=$always_export_symbols_RC 19120 19121# The commands to list exported symbols. 19122export_symbols_cmds=$lt_export_symbols_cmds_RC 19123 19124# The commands to extract the exported symbol list from a shared archive. 19125extract_expsyms_cmds=$lt_extract_expsyms_cmds 19126 19127# Symbols that should not be listed in the preloaded symbols. 19128exclude_expsyms=$lt_exclude_expsyms_RC 19129 19130# Symbols that must always be exported. 19131include_expsyms=$lt_include_expsyms_RC 19132 19133# ### END LIBTOOL TAG CONFIG: $tagname 19134 19135__EOF__ 19136 19137 19138else 19139 # If there is no Makefile yet, we rely on a make rule to execute 19140 # `config.status --recheck' to rerun these tests and create the 19141 # libtool script then. 19142 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19143 if test -f "$ltmain_in"; then 19144 test -f Makefile && make "$ltmain" 19145 fi 19146fi 19147 19148 19149ac_ext=c 19150ac_cpp='$CPP $CPPFLAGS' 19151ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19152ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19153ac_compiler_gnu=$ac_cv_c_compiler_gnu 19154 19155CC="$lt_save_CC" 19156 19157 ;; 19158 19159 *) 19160 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19161echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19162 { (exit 1); exit 1; }; } 19163 ;; 19164 esac 19165 19166 # Append the new tag name to the list of available tags. 19167 if test -n "$tagname" ; then 19168 available_tags="$available_tags $tagname" 19169 fi 19170 fi 19171 done 19172 IFS="$lt_save_ifs" 19173 19174 # Now substitute the updated list of available tags. 19175 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19176 mv "${ofile}T" "$ofile" 19177 chmod +x "$ofile" 19178 else 19179 rm -f "${ofile}T" 19180 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19181echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19182 { (exit 1); exit 1; }; } 19183 fi 19184fi 19185 19186 19187 19188# This can be used to rebuild libtool when needed 19189LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19190 19191# Always use our own libtool. 19192LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19193 19194# Prevent multiple expansion 19195 19196 19197 19198 19199 19200 19201 19202 19203 19204 19205 19206 19207 19208 19209 19210 19211 19212 19213 19214 19215ac_ext=c 19216ac_cpp='$CPP $CPPFLAGS' 19217ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19218ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19219ac_compiler_gnu=$ac_cv_c_compiler_gnu 19220if test -n "$ac_tool_prefix"; then 19221 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 19222set dummy ${ac_tool_prefix}gcc; ac_word=$2 19223{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19224echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19225if test "${ac_cv_prog_CC+set}" = set; then 19226 echo $ECHO_N "(cached) $ECHO_C" >&6 19227else 19228 if test -n "$CC"; then 19229 ac_cv_prog_CC="$CC" # Let the user override the test. 19230else 19231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19232for as_dir in $PATH 19233do 19234 IFS=$as_save_IFS 19235 test -z "$as_dir" && as_dir=. 19236 for ac_exec_ext in '' $ac_executable_extensions; do 19237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19238 ac_cv_prog_CC="${ac_tool_prefix}gcc" 19239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19240 break 2 19241 fi 19242done 19243done 19244IFS=$as_save_IFS 19245 19246fi 19247fi 19248CC=$ac_cv_prog_CC 19249if test -n "$CC"; then 19250 { echo "$as_me:$LINENO: result: $CC" >&5 19251echo "${ECHO_T}$CC" >&6; } 19252else 19253 { echo "$as_me:$LINENO: result: no" >&5 19254echo "${ECHO_T}no" >&6; } 19255fi 19256 19257 19258fi 19259if test -z "$ac_cv_prog_CC"; then 19260 ac_ct_CC=$CC 19261 # Extract the first word of "gcc", so it can be a program name with args. 19262set dummy gcc; ac_word=$2 19263{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19265if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 19266 echo $ECHO_N "(cached) $ECHO_C" >&6 19267else 19268 if test -n "$ac_ct_CC"; then 19269 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 19270else 19271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19272for as_dir in $PATH 19273do 19274 IFS=$as_save_IFS 19275 test -z "$as_dir" && as_dir=. 19276 for ac_exec_ext in '' $ac_executable_extensions; do 19277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19278 ac_cv_prog_ac_ct_CC="gcc" 19279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19280 break 2 19281 fi 19282done 19283done 19284IFS=$as_save_IFS 19285 19286fi 19287fi 19288ac_ct_CC=$ac_cv_prog_ac_ct_CC 19289if test -n "$ac_ct_CC"; then 19290 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 19291echo "${ECHO_T}$ac_ct_CC" >&6; } 19292else 19293 { echo "$as_me:$LINENO: result: no" >&5 19294echo "${ECHO_T}no" >&6; } 19295fi 19296 19297 if test "x$ac_ct_CC" = x; then 19298 CC="" 19299 else 19300 case $cross_compiling:$ac_tool_warned in 19301yes:) 19302{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 19303whose name does not start with the host triplet. If you think this 19304configuration is useful to you, please write to autoconf@gnu.org." >&5 19305echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 19306whose name does not start with the host triplet. If you think this 19307configuration is useful to you, please write to autoconf@gnu.org." >&2;} 19308ac_tool_warned=yes ;; 19309esac 19310 CC=$ac_ct_CC 19311 fi 19312else 19313 CC="$ac_cv_prog_CC" 19314fi 19315 19316if test -z "$CC"; then 19317 if test -n "$ac_tool_prefix"; then 19318 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 19319set dummy ${ac_tool_prefix}cc; ac_word=$2 19320{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19321echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19322if test "${ac_cv_prog_CC+set}" = set; then 19323 echo $ECHO_N "(cached) $ECHO_C" >&6 19324else 19325 if test -n "$CC"; then 19326 ac_cv_prog_CC="$CC" # Let the user override the test. 19327else 19328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19329for as_dir in $PATH 19330do 19331 IFS=$as_save_IFS 19332 test -z "$as_dir" && as_dir=. 19333 for ac_exec_ext in '' $ac_executable_extensions; do 19334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19335 ac_cv_prog_CC="${ac_tool_prefix}cc" 19336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19337 break 2 19338 fi 19339done 19340done 19341IFS=$as_save_IFS 19342 19343fi 19344fi 19345CC=$ac_cv_prog_CC 19346if test -n "$CC"; then 19347 { echo "$as_me:$LINENO: result: $CC" >&5 19348echo "${ECHO_T}$CC" >&6; } 19349else 19350 { echo "$as_me:$LINENO: result: no" >&5 19351echo "${ECHO_T}no" >&6; } 19352fi 19353 19354 19355 fi 19356fi 19357if test -z "$CC"; then 19358 # Extract the first word of "cc", so it can be a program name with args. 19359set dummy cc; ac_word=$2 19360{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19361echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19362if test "${ac_cv_prog_CC+set}" = set; then 19363 echo $ECHO_N "(cached) $ECHO_C" >&6 19364else 19365 if test -n "$CC"; then 19366 ac_cv_prog_CC="$CC" # Let the user override the test. 19367else 19368 ac_prog_rejected=no 19369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19370for as_dir in $PATH 19371do 19372 IFS=$as_save_IFS 19373 test -z "$as_dir" && as_dir=. 19374 for ac_exec_ext in '' $ac_executable_extensions; do 19375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19376 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 19377 ac_prog_rejected=yes 19378 continue 19379 fi 19380 ac_cv_prog_CC="cc" 19381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19382 break 2 19383 fi 19384done 19385done 19386IFS=$as_save_IFS 19387 19388if test $ac_prog_rejected = yes; then 19389 # We found a bogon in the path, so make sure we never use it. 19390 set dummy $ac_cv_prog_CC 19391 shift 19392 if test $# != 0; then 19393 # We chose a different compiler from the bogus one. 19394 # However, it has the same basename, so the bogon will be chosen 19395 # first if we set CC to just the basename; use the full file name. 19396 shift 19397 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 19398 fi 19399fi 19400fi 19401fi 19402CC=$ac_cv_prog_CC 19403if test -n "$CC"; then 19404 { echo "$as_me:$LINENO: result: $CC" >&5 19405echo "${ECHO_T}$CC" >&6; } 19406else 19407 { echo "$as_me:$LINENO: result: no" >&5 19408echo "${ECHO_T}no" >&6; } 19409fi 19410 19411 19412fi 19413if test -z "$CC"; then 19414 if test -n "$ac_tool_prefix"; then 19415 for ac_prog in cl.exe 19416 do 19417 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 19418set dummy $ac_tool_prefix$ac_prog; ac_word=$2 19419{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19420echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19421if test "${ac_cv_prog_CC+set}" = set; then 19422 echo $ECHO_N "(cached) $ECHO_C" >&6 19423else 19424 if test -n "$CC"; then 19425 ac_cv_prog_CC="$CC" # Let the user override the test. 19426else 19427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19428for as_dir in $PATH 19429do 19430 IFS=$as_save_IFS 19431 test -z "$as_dir" && as_dir=. 19432 for ac_exec_ext in '' $ac_executable_extensions; do 19433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19434 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 19435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19436 break 2 19437 fi 19438done 19439done 19440IFS=$as_save_IFS 19441 19442fi 19443fi 19444CC=$ac_cv_prog_CC 19445if test -n "$CC"; then 19446 { echo "$as_me:$LINENO: result: $CC" >&5 19447echo "${ECHO_T}$CC" >&6; } 19448else 19449 { echo "$as_me:$LINENO: result: no" >&5 19450echo "${ECHO_T}no" >&6; } 19451fi 19452 19453 19454 test -n "$CC" && break 19455 done 19456fi 19457if test -z "$CC"; then 19458 ac_ct_CC=$CC 19459 for ac_prog in cl.exe 19460do 19461 # Extract the first word of "$ac_prog", so it can be a program name with args. 19462set dummy $ac_prog; ac_word=$2 19463{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19464echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19465if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 19466 echo $ECHO_N "(cached) $ECHO_C" >&6 19467else 19468 if test -n "$ac_ct_CC"; then 19469 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 19470else 19471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19472for as_dir in $PATH 19473do 19474 IFS=$as_save_IFS 19475 test -z "$as_dir" && as_dir=. 19476 for ac_exec_ext in '' $ac_executable_extensions; do 19477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19478 ac_cv_prog_ac_ct_CC="$ac_prog" 19479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19480 break 2 19481 fi 19482done 19483done 19484IFS=$as_save_IFS 19485 19486fi 19487fi 19488ac_ct_CC=$ac_cv_prog_ac_ct_CC 19489if test -n "$ac_ct_CC"; then 19490 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 19491echo "${ECHO_T}$ac_ct_CC" >&6; } 19492else 19493 { echo "$as_me:$LINENO: result: no" >&5 19494echo "${ECHO_T}no" >&6; } 19495fi 19496 19497 19498 test -n "$ac_ct_CC" && break 19499done 19500 19501 if test "x$ac_ct_CC" = x; then 19502 CC="" 19503 else 19504 case $cross_compiling:$ac_tool_warned in 19505yes:) 19506{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 19507whose name does not start with the host triplet. If you think this 19508configuration is useful to you, please write to autoconf@gnu.org." >&5 19509echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 19510whose name does not start with the host triplet. If you think this 19511configuration is useful to you, please write to autoconf@gnu.org." >&2;} 19512ac_tool_warned=yes ;; 19513esac 19514 CC=$ac_ct_CC 19515 fi 19516fi 19517 19518fi 19519 19520 19521test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 19522See \`config.log' for more details." >&5 19523echo "$as_me: error: no acceptable C compiler found in \$PATH 19524See \`config.log' for more details." >&2;} 19525 { (exit 1); exit 1; }; } 19526 19527# Provide some information about the compiler. 19528echo "$as_me:$LINENO: checking for C compiler version" >&5 19529ac_compiler=`set X $ac_compile; echo $2` 19530{ (ac_try="$ac_compiler --version >&5" 19531case "(($ac_try" in 19532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19533 *) ac_try_echo=$ac_try;; 19534esac 19535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19536 (eval "$ac_compiler --version >&5") 2>&5 19537 ac_status=$? 19538 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19539 (exit $ac_status); } 19540{ (ac_try="$ac_compiler -v >&5" 19541case "(($ac_try" in 19542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19543 *) ac_try_echo=$ac_try;; 19544esac 19545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19546 (eval "$ac_compiler -v >&5") 2>&5 19547 ac_status=$? 19548 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19549 (exit $ac_status); } 19550{ (ac_try="$ac_compiler -V >&5" 19551case "(($ac_try" in 19552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19553 *) ac_try_echo=$ac_try;; 19554esac 19555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19556 (eval "$ac_compiler -V >&5") 2>&5 19557 ac_status=$? 19558 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19559 (exit $ac_status); } 19560 19561{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 19562echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 19563if test "${ac_cv_c_compiler_gnu+set}" = set; then 19564 echo $ECHO_N "(cached) $ECHO_C" >&6 19565else 19566 cat >conftest.$ac_ext <<_ACEOF 19567/* confdefs.h. */ 19568_ACEOF 19569cat confdefs.h >>conftest.$ac_ext 19570cat >>conftest.$ac_ext <<_ACEOF 19571/* end confdefs.h. */ 19572 19573int 19574main () 19575{ 19576#ifndef __GNUC__ 19577 choke me 19578#endif 19579 19580 ; 19581 return 0; 19582} 19583_ACEOF 19584rm -f conftest.$ac_objext 19585if { (ac_try="$ac_compile" 19586case "(($ac_try" in 19587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19588 *) ac_try_echo=$ac_try;; 19589esac 19590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19591 (eval "$ac_compile") 2>conftest.er1 19592 ac_status=$? 19593 grep -v '^ *+' conftest.er1 >conftest.err 19594 rm -f conftest.er1 19595 cat conftest.err >&5 19596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19597 (exit $ac_status); } && { 19598 test -z "$ac_c_werror_flag" || 19599 test ! -s conftest.err 19600 } && test -s conftest.$ac_objext; then 19601 ac_compiler_gnu=yes 19602else 19603 echo "$as_me: failed program was:" >&5 19604sed 's/^/| /' conftest.$ac_ext >&5 19605 19606 ac_compiler_gnu=no 19607fi 19608 19609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19610ac_cv_c_compiler_gnu=$ac_compiler_gnu 19611 19612fi 19613{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 19614echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 19615GCC=`test $ac_compiler_gnu = yes && echo yes` 19616ac_test_CFLAGS=${CFLAGS+set} 19617ac_save_CFLAGS=$CFLAGS 19618{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 19619echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 19620if test "${ac_cv_prog_cc_g+set}" = set; then 19621 echo $ECHO_N "(cached) $ECHO_C" >&6 19622else 19623 ac_save_c_werror_flag=$ac_c_werror_flag 19624 ac_c_werror_flag=yes 19625 ac_cv_prog_cc_g=no 19626 CFLAGS="-g" 19627 cat >conftest.$ac_ext <<_ACEOF 19628/* confdefs.h. */ 19629_ACEOF 19630cat confdefs.h >>conftest.$ac_ext 19631cat >>conftest.$ac_ext <<_ACEOF 19632/* end confdefs.h. */ 19633 19634int 19635main () 19636{ 19637 19638 ; 19639 return 0; 19640} 19641_ACEOF 19642rm -f conftest.$ac_objext 19643if { (ac_try="$ac_compile" 19644case "(($ac_try" in 19645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19646 *) ac_try_echo=$ac_try;; 19647esac 19648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19649 (eval "$ac_compile") 2>conftest.er1 19650 ac_status=$? 19651 grep -v '^ *+' conftest.er1 >conftest.err 19652 rm -f conftest.er1 19653 cat conftest.err >&5 19654 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19655 (exit $ac_status); } && { 19656 test -z "$ac_c_werror_flag" || 19657 test ! -s conftest.err 19658 } && test -s conftest.$ac_objext; then 19659 ac_cv_prog_cc_g=yes 19660else 19661 echo "$as_me: failed program was:" >&5 19662sed 's/^/| /' conftest.$ac_ext >&5 19663 19664 CFLAGS="" 19665 cat >conftest.$ac_ext <<_ACEOF 19666/* confdefs.h. */ 19667_ACEOF 19668cat confdefs.h >>conftest.$ac_ext 19669cat >>conftest.$ac_ext <<_ACEOF 19670/* end confdefs.h. */ 19671 19672int 19673main () 19674{ 19675 19676 ; 19677 return 0; 19678} 19679_ACEOF 19680rm -f conftest.$ac_objext 19681if { (ac_try="$ac_compile" 19682case "(($ac_try" in 19683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19684 *) ac_try_echo=$ac_try;; 19685esac 19686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19687 (eval "$ac_compile") 2>conftest.er1 19688 ac_status=$? 19689 grep -v '^ *+' conftest.er1 >conftest.err 19690 rm -f conftest.er1 19691 cat conftest.err >&5 19692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19693 (exit $ac_status); } && { 19694 test -z "$ac_c_werror_flag" || 19695 test ! -s conftest.err 19696 } && test -s conftest.$ac_objext; then 19697 : 19698else 19699 echo "$as_me: failed program was:" >&5 19700sed 's/^/| /' conftest.$ac_ext >&5 19701 19702 ac_c_werror_flag=$ac_save_c_werror_flag 19703 CFLAGS="-g" 19704 cat >conftest.$ac_ext <<_ACEOF 19705/* confdefs.h. */ 19706_ACEOF 19707cat confdefs.h >>conftest.$ac_ext 19708cat >>conftest.$ac_ext <<_ACEOF 19709/* end confdefs.h. */ 19710 19711int 19712main () 19713{ 19714 19715 ; 19716 return 0; 19717} 19718_ACEOF 19719rm -f conftest.$ac_objext 19720if { (ac_try="$ac_compile" 19721case "(($ac_try" in 19722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19723 *) ac_try_echo=$ac_try;; 19724esac 19725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19726 (eval "$ac_compile") 2>conftest.er1 19727 ac_status=$? 19728 grep -v '^ *+' conftest.er1 >conftest.err 19729 rm -f conftest.er1 19730 cat conftest.err >&5 19731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19732 (exit $ac_status); } && { 19733 test -z "$ac_c_werror_flag" || 19734 test ! -s conftest.err 19735 } && test -s conftest.$ac_objext; then 19736 ac_cv_prog_cc_g=yes 19737else 19738 echo "$as_me: failed program was:" >&5 19739sed 's/^/| /' conftest.$ac_ext >&5 19740 19741 19742fi 19743 19744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19745fi 19746 19747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19748fi 19749 19750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19751 ac_c_werror_flag=$ac_save_c_werror_flag 19752fi 19753{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 19754echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 19755if test "$ac_test_CFLAGS" = set; then 19756 CFLAGS=$ac_save_CFLAGS 19757elif test $ac_cv_prog_cc_g = yes; then 19758 if test "$GCC" = yes; then 19759 CFLAGS="-g -O2" 19760 else 19761 CFLAGS="-g" 19762 fi 19763else 19764 if test "$GCC" = yes; then 19765 CFLAGS="-O2" 19766 else 19767 CFLAGS= 19768 fi 19769fi 19770{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 19771echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 19772if test "${ac_cv_prog_cc_c89+set}" = set; then 19773 echo $ECHO_N "(cached) $ECHO_C" >&6 19774else 19775 ac_cv_prog_cc_c89=no 19776ac_save_CC=$CC 19777cat >conftest.$ac_ext <<_ACEOF 19778/* confdefs.h. */ 19779_ACEOF 19780cat confdefs.h >>conftest.$ac_ext 19781cat >>conftest.$ac_ext <<_ACEOF 19782/* end confdefs.h. */ 19783#include <stdarg.h> 19784#include <stdio.h> 19785#include <sys/types.h> 19786#include <sys/stat.h> 19787/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 19788struct buf { int x; }; 19789FILE * (*rcsopen) (struct buf *, struct stat *, int); 19790static char *e (p, i) 19791 char **p; 19792 int i; 19793{ 19794 return p[i]; 19795} 19796static char *f (char * (*g) (char **, int), char **p, ...) 19797{ 19798 char *s; 19799 va_list v; 19800 va_start (v,p); 19801 s = g (p, va_arg (v,int)); 19802 va_end (v); 19803 return s; 19804} 19805 19806/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 19807 function prototypes and stuff, but not '\xHH' hex character constants. 19808 These don't provoke an error unfortunately, instead are silently treated 19809 as 'x'. The following induces an error, until -std is added to get 19810 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 19811 array size at least. It's necessary to write '\x00'==0 to get something 19812 that's true only with -std. */ 19813int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 19814 19815/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 19816 inside strings and character constants. */ 19817#define FOO(x) 'x' 19818int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 19819 19820int test (int i, double x); 19821struct s1 {int (*f) (int a);}; 19822struct s2 {int (*f) (double a);}; 19823int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 19824int argc; 19825char **argv; 19826int 19827main () 19828{ 19829return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 19830 ; 19831 return 0; 19832} 19833_ACEOF 19834for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 19835 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 19836do 19837 CC="$ac_save_CC $ac_arg" 19838 rm -f conftest.$ac_objext 19839if { (ac_try="$ac_compile" 19840case "(($ac_try" in 19841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19842 *) ac_try_echo=$ac_try;; 19843esac 19844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19845 (eval "$ac_compile") 2>conftest.er1 19846 ac_status=$? 19847 grep -v '^ *+' conftest.er1 >conftest.err 19848 rm -f conftest.er1 19849 cat conftest.err >&5 19850 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19851 (exit $ac_status); } && { 19852 test -z "$ac_c_werror_flag" || 19853 test ! -s conftest.err 19854 } && test -s conftest.$ac_objext; then 19855 ac_cv_prog_cc_c89=$ac_arg 19856else 19857 echo "$as_me: failed program was:" >&5 19858sed 's/^/| /' conftest.$ac_ext >&5 19859 19860 19861fi 19862 19863rm -f core conftest.err conftest.$ac_objext 19864 test "x$ac_cv_prog_cc_c89" != "xno" && break 19865done 19866rm -f conftest.$ac_ext 19867CC=$ac_save_CC 19868 19869fi 19870# AC_CACHE_VAL 19871case "x$ac_cv_prog_cc_c89" in 19872 x) 19873 { echo "$as_me:$LINENO: result: none needed" >&5 19874echo "${ECHO_T}none needed" >&6; } ;; 19875 xno) 19876 { echo "$as_me:$LINENO: result: unsupported" >&5 19877echo "${ECHO_T}unsupported" >&6; } ;; 19878 *) 19879 CC="$CC $ac_cv_prog_cc_c89" 19880 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 19881echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 19882esac 19883 19884 19885ac_ext=c 19886ac_cpp='$CPP $CPPFLAGS' 19887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19889ac_compiler_gnu=$ac_cv_c_compiler_gnu 19890 19891depcc="$CC" am_compiler_list= 19892 19893{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 19894echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 19895if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 19896 echo $ECHO_N "(cached) $ECHO_C" >&6 19897else 19898 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 19899 # We make a subdir and do the tests there. Otherwise we can end up 19900 # making bogus files that we don't know about and never remove. For 19901 # instance it was reported that on HP-UX the gcc test will end up 19902 # making a dummy file named `D' -- because `-MD' means `put the output 19903 # in D'. 19904 mkdir conftest.dir 19905 # Copy depcomp to subdir because otherwise we won't find it if we're 19906 # using a relative directory. 19907 cp "$am_depcomp" conftest.dir 19908 cd conftest.dir 19909 # We will build objects and dependencies in a subdirectory because 19910 # it helps to detect inapplicable dependency modes. For instance 19911 # both Tru64's cc and ICC support -MD to output dependencies as a 19912 # side effect of compilation, but ICC will put the dependencies in 19913 # the current directory while Tru64 will put them in the object 19914 # directory. 19915 mkdir sub 19916 19917 am_cv_CC_dependencies_compiler_type=none 19918 if test "$am_compiler_list" = ""; then 19919 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 19920 fi 19921 for depmode in $am_compiler_list; do 19922 # Setup a source with many dependencies, because some compilers 19923 # like to wrap large dependency lists on column 80 (with \), and 19924 # we should not choose a depcomp mode which is confused by this. 19925 # 19926 # We need to recreate these files for each test, as the compiler may 19927 # overwrite some of them when testing with obscure command lines. 19928 # This happens at least with the AIX C compiler. 19929 : > sub/conftest.c 19930 for i in 1 2 3 4 5 6; do 19931 echo '#include "conftst'$i'.h"' >> sub/conftest.c 19932 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 19933 # Solaris 8's {/usr,}/bin/sh. 19934 touch sub/conftst$i.h 19935 done 19936 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 19937 19938 case $depmode in 19939 nosideeffect) 19940 # after this tag, mechanisms are not by side-effect, so they'll 19941 # only be used when explicitly requested 19942 if test "x$enable_dependency_tracking" = xyes; then 19943 continue 19944 else 19945 break 19946 fi 19947 ;; 19948 none) break ;; 19949 esac 19950 # We check with `-c' and `-o' for the sake of the "dashmstdout" 19951 # mode. It turns out that the SunPro C++ compiler does not properly 19952 # handle `-M -o', and we need to detect this. 19953 if depmode=$depmode \ 19954 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 19955 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 19956 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 19957 >/dev/null 2>conftest.err && 19958 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 19959 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 19960 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 19961 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 19962 # icc doesn't choke on unknown options, it will just issue warnings 19963 # or remarks (even with -Werror). So we grep stderr for any message 19964 # that says an option was ignored or not supported. 19965 # When given -MP, icc 7.0 and 7.1 complain thusly: 19966 # icc: Command line warning: ignoring option '-M'; no argument required 19967 # The diagnosis changed in icc 8.0: 19968 # icc: Command line remark: option '-MP' not supported 19969 if (grep 'ignoring option' conftest.err || 19970 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 19971 am_cv_CC_dependencies_compiler_type=$depmode 19972 break 19973 fi 19974 fi 19975 done 19976 19977 cd .. 19978 rm -rf conftest.dir 19979else 19980 am_cv_CC_dependencies_compiler_type=none 19981fi 19982 19983fi 19984{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 19985echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 19986CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 19987 19988 if 19989 test "x$enable_dependency_tracking" != xno \ 19990 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 19991 am__fastdepCC_TRUE= 19992 am__fastdepCC_FALSE='#' 19993else 19994 am__fastdepCC_TRUE='#' 19995 am__fastdepCC_FALSE= 19996fi 19997 19998 19999 20000# Checks for pkg-config packages 20001 20002 20003if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 20004 if test -n "$ac_tool_prefix"; then 20005 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 20006set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 20007{ echo "$as_me:$LINENO: checking for $ac_word" >&5 20008echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 20009if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 20010 echo $ECHO_N "(cached) $ECHO_C" >&6 20011else 20012 case $PKG_CONFIG in 20013 [\\/]* | ?:[\\/]*) 20014 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 20015 ;; 20016 *) 20017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20018for as_dir in $PATH 20019do 20020 IFS=$as_save_IFS 20021 test -z "$as_dir" && as_dir=. 20022 for ac_exec_ext in '' $ac_executable_extensions; do 20023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20024 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 20025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20026 break 2 20027 fi 20028done 20029done 20030IFS=$as_save_IFS 20031 20032 ;; 20033esac 20034fi 20035PKG_CONFIG=$ac_cv_path_PKG_CONFIG 20036if test -n "$PKG_CONFIG"; then 20037 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 20038echo "${ECHO_T}$PKG_CONFIG" >&6; } 20039else 20040 { echo "$as_me:$LINENO: result: no" >&5 20041echo "${ECHO_T}no" >&6; } 20042fi 20043 20044 20045fi 20046if test -z "$ac_cv_path_PKG_CONFIG"; then 20047 ac_pt_PKG_CONFIG=$PKG_CONFIG 20048 # Extract the first word of "pkg-config", so it can be a program name with args. 20049set dummy pkg-config; ac_word=$2 20050{ echo "$as_me:$LINENO: checking for $ac_word" >&5 20051echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 20052if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 20053 echo $ECHO_N "(cached) $ECHO_C" >&6 20054else 20055 case $ac_pt_PKG_CONFIG in 20056 [\\/]* | ?:[\\/]*) 20057 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 20058 ;; 20059 *) 20060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20061for as_dir in $PATH 20062do 20063 IFS=$as_save_IFS 20064 test -z "$as_dir" && as_dir=. 20065 for ac_exec_ext in '' $ac_executable_extensions; do 20066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20067 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 20068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20069 break 2 20070 fi 20071done 20072done 20073IFS=$as_save_IFS 20074 20075 ;; 20076esac 20077fi 20078ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 20079if test -n "$ac_pt_PKG_CONFIG"; then 20080 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 20081echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } 20082else 20083 { echo "$as_me:$LINENO: result: no" >&5 20084echo "${ECHO_T}no" >&6; } 20085fi 20086 20087 if test "x$ac_pt_PKG_CONFIG" = x; then 20088 PKG_CONFIG="" 20089 else 20090 case $cross_compiling:$ac_tool_warned in 20091yes:) 20092{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 20093whose name does not start with the host triplet. If you think this 20094configuration is useful to you, please write to autoconf@gnu.org." >&5 20095echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 20096whose name does not start with the host triplet. If you think this 20097configuration is useful to you, please write to autoconf@gnu.org." >&2;} 20098ac_tool_warned=yes ;; 20099esac 20100 PKG_CONFIG=$ac_pt_PKG_CONFIG 20101 fi 20102else 20103 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 20104fi 20105 20106fi 20107if test -n "$PKG_CONFIG"; then 20108 _pkg_min_version=0.9.0 20109 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 20110echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; } 20111 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 20112 { echo "$as_me:$LINENO: result: yes" >&5 20113echo "${ECHO_T}yes" >&6; } 20114 else 20115 { echo "$as_me:$LINENO: result: no" >&5 20116echo "${ECHO_T}no" >&6; } 20117 PKG_CONFIG="" 20118 fi 20119 20120fi 20121 20122pkg_failed=no 20123{ echo "$as_me:$LINENO: checking for SM" >&5 20124echo $ECHO_N "checking for SM... $ECHO_C" >&6; } 20125 20126if test -n "$PKG_CONFIG"; then 20127 if test -n "$SM_CFLAGS"; then 20128 pkg_cv_SM_CFLAGS="$SM_CFLAGS" 20129 else 20130 if test -n "$PKG_CONFIG" && \ 20131 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"ice xproto\"") >&5 20132 ($PKG_CONFIG --exists --print-errors "ice xproto") 2>&5 20133 ac_status=$? 20134 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20135 (exit $ac_status); }; then 20136 pkg_cv_SM_CFLAGS=`$PKG_CONFIG --cflags "ice xproto" 2>/dev/null` 20137else 20138 pkg_failed=yes 20139fi 20140 fi 20141else 20142 pkg_failed=untried 20143fi 20144if test -n "$PKG_CONFIG"; then 20145 if test -n "$SM_LIBS"; then 20146 pkg_cv_SM_LIBS="$SM_LIBS" 20147 else 20148 if test -n "$PKG_CONFIG" && \ 20149 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"ice xproto\"") >&5 20150 ($PKG_CONFIG --exists --print-errors "ice xproto") 2>&5 20151 ac_status=$? 20152 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20153 (exit $ac_status); }; then 20154 pkg_cv_SM_LIBS=`$PKG_CONFIG --libs "ice xproto" 2>/dev/null` 20155else 20156 pkg_failed=yes 20157fi 20158 fi 20159else 20160 pkg_failed=untried 20161fi 20162 20163 20164 20165if test $pkg_failed = yes; then 20166 20167if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20168 _pkg_short_errors_supported=yes 20169else 20170 _pkg_short_errors_supported=no 20171fi 20172 if test $_pkg_short_errors_supported = yes; then 20173 SM_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "ice xproto"` 20174 else 20175 SM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "ice xproto"` 20176 fi 20177 # Put the nasty error message in config.log where it belongs 20178 echo "$SM_PKG_ERRORS" >&5 20179 20180 { { echo "$as_me:$LINENO: error: Package requirements (ice xproto) were not met: 20181 20182$SM_PKG_ERRORS 20183 20184Consider adjusting the PKG_CONFIG_PATH environment variable if you 20185installed software in a non-standard prefix. 20186 20187Alternatively, you may set the environment variables SM_CFLAGS 20188and SM_LIBS to avoid the need to call pkg-config. 20189See the pkg-config man page for more details. 20190" >&5 20191echo "$as_me: error: Package requirements (ice xproto) were not met: 20192 20193$SM_PKG_ERRORS 20194 20195Consider adjusting the PKG_CONFIG_PATH environment variable if you 20196installed software in a non-standard prefix. 20197 20198Alternatively, you may set the environment variables SM_CFLAGS 20199and SM_LIBS to avoid the need to call pkg-config. 20200See the pkg-config man page for more details. 20201" >&2;} 20202 { (exit 1); exit 1; }; } 20203elif test $pkg_failed = untried; then 20204 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 20205is in your PATH or set the PKG_CONFIG environment variable to the full 20206path to pkg-config. 20207 20208Alternatively, you may set the environment variables SM_CFLAGS 20209and SM_LIBS to avoid the need to call pkg-config. 20210See the pkg-config man page for more details. 20211 20212To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. 20213See \`config.log' for more details." >&5 20214echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 20215is in your PATH or set the PKG_CONFIG environment variable to the full 20216path to pkg-config. 20217 20218Alternatively, you may set the environment variables SM_CFLAGS 20219and SM_LIBS to avoid the need to call pkg-config. 20220See the pkg-config man page for more details. 20221 20222To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. 20223See \`config.log' for more details." >&2;} 20224 { (exit 1); exit 1; }; } 20225else 20226 SM_CFLAGS=$pkg_cv_SM_CFLAGS 20227 SM_LIBS=$pkg_cv_SM_LIBS 20228 { echo "$as_me:$LINENO: result: yes" >&5 20229echo "${ECHO_T}yes" >&6; } 20230 : 20231fi 20232 20233 20234 20235 20236pkg_failed=no 20237{ echo "$as_me:$LINENO: checking for XTRANS" >&5 20238echo $ECHO_N "checking for XTRANS... $ECHO_C" >&6; } 20239 20240if test -n "$PKG_CONFIG"; then 20241 if test -n "$XTRANS_CFLAGS"; then 20242 pkg_cv_XTRANS_CFLAGS="$XTRANS_CFLAGS" 20243 else 20244 if test -n "$PKG_CONFIG" && \ 20245 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xtrans\"") >&5 20246 ($PKG_CONFIG --exists --print-errors "xtrans") 2>&5 20247 ac_status=$? 20248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20249 (exit $ac_status); }; then 20250 pkg_cv_XTRANS_CFLAGS=`$PKG_CONFIG --cflags "xtrans" 2>/dev/null` 20251else 20252 pkg_failed=yes 20253fi 20254 fi 20255else 20256 pkg_failed=untried 20257fi 20258if test -n "$PKG_CONFIG"; then 20259 if test -n "$XTRANS_LIBS"; then 20260 pkg_cv_XTRANS_LIBS="$XTRANS_LIBS" 20261 else 20262 if test -n "$PKG_CONFIG" && \ 20263 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xtrans\"") >&5 20264 ($PKG_CONFIG --exists --print-errors "xtrans") 2>&5 20265 ac_status=$? 20266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20267 (exit $ac_status); }; then 20268 pkg_cv_XTRANS_LIBS=`$PKG_CONFIG --libs "xtrans" 2>/dev/null` 20269else 20270 pkg_failed=yes 20271fi 20272 fi 20273else 20274 pkg_failed=untried 20275fi 20276 20277 20278 20279if test $pkg_failed = yes; then 20280 20281if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20282 _pkg_short_errors_supported=yes 20283else 20284 _pkg_short_errors_supported=no 20285fi 20286 if test $_pkg_short_errors_supported = yes; then 20287 XTRANS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xtrans"` 20288 else 20289 XTRANS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xtrans"` 20290 fi 20291 # Put the nasty error message in config.log where it belongs 20292 echo "$XTRANS_PKG_ERRORS" >&5 20293 20294 { { echo "$as_me:$LINENO: error: Package requirements (xtrans) were not met: 20295 20296$XTRANS_PKG_ERRORS 20297 20298Consider adjusting the PKG_CONFIG_PATH environment variable if you 20299installed software in a non-standard prefix. 20300 20301Alternatively, you may set the environment variables XTRANS_CFLAGS 20302and XTRANS_LIBS to avoid the need to call pkg-config. 20303See the pkg-config man page for more details. 20304" >&5 20305echo "$as_me: error: Package requirements (xtrans) were not met: 20306 20307$XTRANS_PKG_ERRORS 20308 20309Consider adjusting the PKG_CONFIG_PATH environment variable if you 20310installed software in a non-standard prefix. 20311 20312Alternatively, you may set the environment variables XTRANS_CFLAGS 20313and XTRANS_LIBS to avoid the need to call pkg-config. 20314See the pkg-config man page for more details. 20315" >&2;} 20316 { (exit 1); exit 1; }; } 20317elif test $pkg_failed = untried; then 20318 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 20319is in your PATH or set the PKG_CONFIG environment variable to the full 20320path to pkg-config. 20321 20322Alternatively, you may set the environment variables XTRANS_CFLAGS 20323and XTRANS_LIBS to avoid the need to call pkg-config. 20324See the pkg-config man page for more details. 20325 20326To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. 20327See \`config.log' for more details." >&5 20328echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 20329is in your PATH or set the PKG_CONFIG environment variable to the full 20330path to pkg-config. 20331 20332Alternatively, you may set the environment variables XTRANS_CFLAGS 20333and XTRANS_LIBS to avoid the need to call pkg-config. 20334See the pkg-config man page for more details. 20335 20336To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. 20337See \`config.log' for more details." >&2;} 20338 { (exit 1); exit 1; }; } 20339else 20340 XTRANS_CFLAGS=$pkg_cv_XTRANS_CFLAGS 20341 XTRANS_LIBS=$pkg_cv_XTRANS_LIBS 20342 { echo "$as_me:$LINENO: result: yes" >&5 20343echo "${ECHO_T}yes" >&6; } 20344 : 20345fi 20346 20347 20348 20349# Checks for libraries. 20350 20351# Checks for header files. 20352{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 20353echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 20354if test "${ac_cv_header_stdc+set}" = set; then 20355 echo $ECHO_N "(cached) $ECHO_C" >&6 20356else 20357 cat >conftest.$ac_ext <<_ACEOF 20358/* confdefs.h. */ 20359_ACEOF 20360cat confdefs.h >>conftest.$ac_ext 20361cat >>conftest.$ac_ext <<_ACEOF 20362/* end confdefs.h. */ 20363#include <stdlib.h> 20364#include <stdarg.h> 20365#include <string.h> 20366#include <float.h> 20367 20368int 20369main () 20370{ 20371 20372 ; 20373 return 0; 20374} 20375_ACEOF 20376rm -f conftest.$ac_objext 20377if { (ac_try="$ac_compile" 20378case "(($ac_try" in 20379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20380 *) ac_try_echo=$ac_try;; 20381esac 20382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20383 (eval "$ac_compile") 2>conftest.er1 20384 ac_status=$? 20385 grep -v '^ *+' conftest.er1 >conftest.err 20386 rm -f conftest.er1 20387 cat conftest.err >&5 20388 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20389 (exit $ac_status); } && { 20390 test -z "$ac_c_werror_flag" || 20391 test ! -s conftest.err 20392 } && test -s conftest.$ac_objext; then 20393 ac_cv_header_stdc=yes 20394else 20395 echo "$as_me: failed program was:" >&5 20396sed 's/^/| /' conftest.$ac_ext >&5 20397 20398 ac_cv_header_stdc=no 20399fi 20400 20401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20402 20403if test $ac_cv_header_stdc = yes; then 20404 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 20405 cat >conftest.$ac_ext <<_ACEOF 20406/* confdefs.h. */ 20407_ACEOF 20408cat confdefs.h >>conftest.$ac_ext 20409cat >>conftest.$ac_ext <<_ACEOF 20410/* end confdefs.h. */ 20411#include <string.h> 20412 20413_ACEOF 20414if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20415 $EGREP "memchr" >/dev/null 2>&1; then 20416 : 20417else 20418 ac_cv_header_stdc=no 20419fi 20420rm -f conftest* 20421 20422fi 20423 20424if test $ac_cv_header_stdc = yes; then 20425 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 20426 cat >conftest.$ac_ext <<_ACEOF 20427/* confdefs.h. */ 20428_ACEOF 20429cat confdefs.h >>conftest.$ac_ext 20430cat >>conftest.$ac_ext <<_ACEOF 20431/* end confdefs.h. */ 20432#include <stdlib.h> 20433 20434_ACEOF 20435if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20436 $EGREP "free" >/dev/null 2>&1; then 20437 : 20438else 20439 ac_cv_header_stdc=no 20440fi 20441rm -f conftest* 20442 20443fi 20444 20445if test $ac_cv_header_stdc = yes; then 20446 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 20447 if test "$cross_compiling" = yes; then 20448 : 20449else 20450 cat >conftest.$ac_ext <<_ACEOF 20451/* confdefs.h. */ 20452_ACEOF 20453cat confdefs.h >>conftest.$ac_ext 20454cat >>conftest.$ac_ext <<_ACEOF 20455/* end confdefs.h. */ 20456#include <ctype.h> 20457#include <stdlib.h> 20458#if ((' ' & 0x0FF) == 0x020) 20459# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 20460# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 20461#else 20462# define ISLOWER(c) \ 20463 (('a' <= (c) && (c) <= 'i') \ 20464 || ('j' <= (c) && (c) <= 'r') \ 20465 || ('s' <= (c) && (c) <= 'z')) 20466# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 20467#endif 20468 20469#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 20470int 20471main () 20472{ 20473 int i; 20474 for (i = 0; i < 256; i++) 20475 if (XOR (islower (i), ISLOWER (i)) 20476 || toupper (i) != TOUPPER (i)) 20477 return 2; 20478 return 0; 20479} 20480_ACEOF 20481rm -f conftest$ac_exeext 20482if { (ac_try="$ac_link" 20483case "(($ac_try" in 20484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20485 *) ac_try_echo=$ac_try;; 20486esac 20487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20488 (eval "$ac_link") 2>&5 20489 ac_status=$? 20490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20491 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20492 { (case "(($ac_try" in 20493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20494 *) ac_try_echo=$ac_try;; 20495esac 20496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20497 (eval "$ac_try") 2>&5 20498 ac_status=$? 20499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20500 (exit $ac_status); }; }; then 20501 : 20502else 20503 echo "$as_me: program exited with status $ac_status" >&5 20504echo "$as_me: failed program was:" >&5 20505sed 's/^/| /' conftest.$ac_ext >&5 20506 20507( exit $ac_status ) 20508ac_cv_header_stdc=no 20509fi 20510rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20511fi 20512 20513 20514fi 20515fi 20516{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 20517echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 20518if test $ac_cv_header_stdc = yes; then 20519 20520cat >>confdefs.h <<\_ACEOF 20521#define STDC_HEADERS 1 20522_ACEOF 20523 20524fi 20525 20526 20527# Needed to check for TCP & IPv6 support and set flags appropriately 20528{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5 20529echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } 20530if test "${ac_cv_type_signal+set}" = set; then 20531 echo $ECHO_N "(cached) $ECHO_C" >&6 20532else 20533 cat >conftest.$ac_ext <<_ACEOF 20534/* confdefs.h. */ 20535_ACEOF 20536cat confdefs.h >>conftest.$ac_ext 20537cat >>conftest.$ac_ext <<_ACEOF 20538/* end confdefs.h. */ 20539#include <sys/types.h> 20540#include <signal.h> 20541 20542int 20543main () 20544{ 20545return *(signal (0, 0)) (0) == 1; 20546 ; 20547 return 0; 20548} 20549_ACEOF 20550rm -f conftest.$ac_objext 20551if { (ac_try="$ac_compile" 20552case "(($ac_try" in 20553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20554 *) ac_try_echo=$ac_try;; 20555esac 20556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20557 (eval "$ac_compile") 2>conftest.er1 20558 ac_status=$? 20559 grep -v '^ *+' conftest.er1 >conftest.err 20560 rm -f conftest.er1 20561 cat conftest.err >&5 20562 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20563 (exit $ac_status); } && { 20564 test -z "$ac_c_werror_flag" || 20565 test ! -s conftest.err 20566 } && test -s conftest.$ac_objext; then 20567 ac_cv_type_signal=int 20568else 20569 echo "$as_me: failed program was:" >&5 20570sed 's/^/| /' conftest.$ac_ext >&5 20571 20572 ac_cv_type_signal=void 20573fi 20574 20575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20576fi 20577{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 20578echo "${ECHO_T}$ac_cv_type_signal" >&6; } 20579 20580cat >>confdefs.h <<_ACEOF 20581#define RETSIGTYPE $ac_cv_type_signal 20582_ACEOF 20583 20584 20585 20586 20587 20588 # Check whether --enable-unix-transport was given. 20589if test "${enable_unix_transport+set}" = set; then 20590 enableval=$enable_unix_transport; UNIXCONN=$enableval 20591else 20592 UNIXCONN=yes 20593fi 20594 20595 # Check whether --enable-tcp-transport was given. 20596if test "${enable_tcp_transport+set}" = set; then 20597 enableval=$enable_tcp_transport; TCPCONN=$enableval 20598else 20599 TCPCONN=yes 20600fi 20601 20602 { echo "$as_me:$LINENO: checking if Xtrans should support UNIX socket connections" >&5 20603echo $ECHO_N "checking if Xtrans should support UNIX socket connections... $ECHO_C" >&6; } 20604 if test "$UNIXCONN" = "yes"; then 20605 20606cat >>confdefs.h <<\_ACEOF 20607#define UNIXCONN 1 20608_ACEOF 20609 20610 fi 20611 { echo "$as_me:$LINENO: result: $UNIXCONN" >&5 20612echo "${ECHO_T}$UNIXCONN" >&6; } 20613 { echo "$as_me:$LINENO: checking if Xtrans should support TCP socket connections" >&5 20614echo $ECHO_N "checking if Xtrans should support TCP socket connections... $ECHO_C" >&6; } 20615 { echo "$as_me:$LINENO: result: $TCPCONN" >&5 20616echo "${ECHO_T}$TCPCONN" >&6; } 20617 if test "$TCPCONN" = "yes"; then 20618 20619cat >>confdefs.h <<\_ACEOF 20620#define TCPCONN 1 20621_ACEOF 20622 20623 20624 # SVR4 hides these in libraries other than libc 20625 { echo "$as_me:$LINENO: checking for library containing socket" >&5 20626echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; } 20627if test "${ac_cv_search_socket+set}" = set; then 20628 echo $ECHO_N "(cached) $ECHO_C" >&6 20629else 20630 ac_func_search_save_LIBS=$LIBS 20631cat >conftest.$ac_ext <<_ACEOF 20632/* confdefs.h. */ 20633_ACEOF 20634cat confdefs.h >>conftest.$ac_ext 20635cat >>conftest.$ac_ext <<_ACEOF 20636/* end confdefs.h. */ 20637 20638/* Override any GCC internal prototype to avoid an error. 20639 Use char because int might match the return type of a GCC 20640 builtin and then its argument prototype would still apply. */ 20641#ifdef __cplusplus 20642extern "C" 20643#endif 20644char socket (); 20645int 20646main () 20647{ 20648return socket (); 20649 ; 20650 return 0; 20651} 20652_ACEOF 20653for ac_lib in '' socket; do 20654 if test -z "$ac_lib"; then 20655 ac_res="none required" 20656 else 20657 ac_res=-l$ac_lib 20658 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20659 fi 20660 rm -f conftest.$ac_objext conftest$ac_exeext 20661if { (ac_try="$ac_link" 20662case "(($ac_try" in 20663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20664 *) ac_try_echo=$ac_try;; 20665esac 20666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20667 (eval "$ac_link") 2>conftest.er1 20668 ac_status=$? 20669 grep -v '^ *+' conftest.er1 >conftest.err 20670 rm -f conftest.er1 20671 cat conftest.err >&5 20672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20673 (exit $ac_status); } && { 20674 test -z "$ac_c_werror_flag" || 20675 test ! -s conftest.err 20676 } && test -s conftest$ac_exeext && 20677 $as_test_x conftest$ac_exeext; then 20678 ac_cv_search_socket=$ac_res 20679else 20680 echo "$as_me: failed program was:" >&5 20681sed 's/^/| /' conftest.$ac_ext >&5 20682 20683 20684fi 20685 20686rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20687 conftest$ac_exeext 20688 if test "${ac_cv_search_socket+set}" = set; then 20689 break 20690fi 20691done 20692if test "${ac_cv_search_socket+set}" = set; then 20693 : 20694else 20695 ac_cv_search_socket=no 20696fi 20697rm conftest.$ac_ext 20698LIBS=$ac_func_search_save_LIBS 20699fi 20700{ echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5 20701echo "${ECHO_T}$ac_cv_search_socket" >&6; } 20702ac_res=$ac_cv_search_socket 20703if test "$ac_res" != no; then 20704 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20705 20706fi 20707 20708 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5 20709echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; } 20710if test "${ac_cv_search_gethostbyname+set}" = set; then 20711 echo $ECHO_N "(cached) $ECHO_C" >&6 20712else 20713 ac_func_search_save_LIBS=$LIBS 20714cat >conftest.$ac_ext <<_ACEOF 20715/* confdefs.h. */ 20716_ACEOF 20717cat confdefs.h >>conftest.$ac_ext 20718cat >>conftest.$ac_ext <<_ACEOF 20719/* end confdefs.h. */ 20720 20721/* Override any GCC internal prototype to avoid an error. 20722 Use char because int might match the return type of a GCC 20723 builtin and then its argument prototype would still apply. */ 20724#ifdef __cplusplus 20725extern "C" 20726#endif 20727char gethostbyname (); 20728int 20729main () 20730{ 20731return gethostbyname (); 20732 ; 20733 return 0; 20734} 20735_ACEOF 20736for ac_lib in '' nsl; do 20737 if test -z "$ac_lib"; then 20738 ac_res="none required" 20739 else 20740 ac_res=-l$ac_lib 20741 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20742 fi 20743 rm -f conftest.$ac_objext conftest$ac_exeext 20744if { (ac_try="$ac_link" 20745case "(($ac_try" in 20746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20747 *) ac_try_echo=$ac_try;; 20748esac 20749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20750 (eval "$ac_link") 2>conftest.er1 20751 ac_status=$? 20752 grep -v '^ *+' conftest.er1 >conftest.err 20753 rm -f conftest.er1 20754 cat conftest.err >&5 20755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20756 (exit $ac_status); } && { 20757 test -z "$ac_c_werror_flag" || 20758 test ! -s conftest.err 20759 } && test -s conftest$ac_exeext && 20760 $as_test_x conftest$ac_exeext; then 20761 ac_cv_search_gethostbyname=$ac_res 20762else 20763 echo "$as_me: failed program was:" >&5 20764sed 's/^/| /' conftest.$ac_ext >&5 20765 20766 20767fi 20768 20769rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20770 conftest$ac_exeext 20771 if test "${ac_cv_search_gethostbyname+set}" = set; then 20772 break 20773fi 20774done 20775if test "${ac_cv_search_gethostbyname+set}" = set; then 20776 : 20777else 20778 ac_cv_search_gethostbyname=no 20779fi 20780rm conftest.$ac_ext 20781LIBS=$ac_func_search_save_LIBS 20782fi 20783{ echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5 20784echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; } 20785ac_res=$ac_cv_search_gethostbyname 20786if test "$ac_res" != no; then 20787 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20788 20789fi 20790 20791 20792 # Needs to come after above checks for libsocket & libnsl for SVR4 systems 20793 # Check whether --enable-ipv6 was given. 20794if test "${enable_ipv6+set}" = set; then 20795 enableval=$enable_ipv6; IPV6CONN=$enableval 20796else 20797 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5 20798echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; } 20799if test "${ac_cv_func_getaddrinfo+set}" = set; then 20800 echo $ECHO_N "(cached) $ECHO_C" >&6 20801else 20802 cat >conftest.$ac_ext <<_ACEOF 20803/* confdefs.h. */ 20804_ACEOF 20805cat confdefs.h >>conftest.$ac_ext 20806cat >>conftest.$ac_ext <<_ACEOF 20807/* end confdefs.h. */ 20808/* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo. 20809 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20810#define getaddrinfo innocuous_getaddrinfo 20811 20812/* System header to define __stub macros and hopefully few prototypes, 20813 which can conflict with char getaddrinfo (); below. 20814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20815 <limits.h> exists even on freestanding compilers. */ 20816 20817#ifdef __STDC__ 20818# include <limits.h> 20819#else 20820# include <assert.h> 20821#endif 20822 20823#undef getaddrinfo 20824 20825/* Override any GCC internal prototype to avoid an error. 20826 Use char because int might match the return type of a GCC 20827 builtin and then its argument prototype would still apply. */ 20828#ifdef __cplusplus 20829extern "C" 20830#endif 20831char getaddrinfo (); 20832/* The GNU C library defines this for functions which it implements 20833 to always fail with ENOSYS. Some functions are actually named 20834 something starting with __ and the normal name is an alias. */ 20835#if defined __stub_getaddrinfo || defined __stub___getaddrinfo 20836choke me 20837#endif 20838 20839int 20840main () 20841{ 20842return getaddrinfo (); 20843 ; 20844 return 0; 20845} 20846_ACEOF 20847rm -f conftest.$ac_objext conftest$ac_exeext 20848if { (ac_try="$ac_link" 20849case "(($ac_try" in 20850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20851 *) ac_try_echo=$ac_try;; 20852esac 20853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20854 (eval "$ac_link") 2>conftest.er1 20855 ac_status=$? 20856 grep -v '^ *+' conftest.er1 >conftest.err 20857 rm -f conftest.er1 20858 cat conftest.err >&5 20859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20860 (exit $ac_status); } && { 20861 test -z "$ac_c_werror_flag" || 20862 test ! -s conftest.err 20863 } && test -s conftest$ac_exeext && 20864 $as_test_x conftest$ac_exeext; then 20865 ac_cv_func_getaddrinfo=yes 20866else 20867 echo "$as_me: failed program was:" >&5 20868sed 's/^/| /' conftest.$ac_ext >&5 20869 20870 ac_cv_func_getaddrinfo=no 20871fi 20872 20873rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20874 conftest$ac_exeext conftest.$ac_ext 20875fi 20876{ echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5 20877echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6; } 20878if test $ac_cv_func_getaddrinfo = yes; then 20879 IPV6CONN=yes 20880else 20881 IPV6CONN=no 20882fi 20883 20884fi 20885 20886 { echo "$as_me:$LINENO: checking if IPv6 support should be built" >&5 20887echo $ECHO_N "checking if IPv6 support should be built... $ECHO_C" >&6; } 20888 if test "$IPV6CONN" = "yes"; then 20889 20890cat >>confdefs.h <<\_ACEOF 20891#define IPv6 1 20892_ACEOF 20893 20894 fi 20895 { echo "$as_me:$LINENO: result: $IPV6CONN" >&5 20896echo "${ECHO_T}$IPV6CONN" >&6; } 20897 20898 # 4.3BSD-Reno added a new member to struct sockaddr_in 20899 { echo "$as_me:$LINENO: checking for struct sockaddr_in.sin_len" >&5 20900echo $ECHO_N "checking for struct sockaddr_in.sin_len... $ECHO_C" >&6; } 20901if test "${ac_cv_member_struct_sockaddr_in_sin_len+set}" = set; then 20902 echo $ECHO_N "(cached) $ECHO_C" >&6 20903else 20904 cat >conftest.$ac_ext <<_ACEOF 20905/* confdefs.h. */ 20906_ACEOF 20907cat confdefs.h >>conftest.$ac_ext 20908cat >>conftest.$ac_ext <<_ACEOF 20909/* end confdefs.h. */ 20910 20911#include <sys/types.h> 20912#include <sys/socket.h> 20913#include <netinet/in.h> 20914 20915 20916int 20917main () 20918{ 20919static struct sockaddr_in ac_aggr; 20920if (ac_aggr.sin_len) 20921return 0; 20922 ; 20923 return 0; 20924} 20925_ACEOF 20926rm -f conftest.$ac_objext 20927if { (ac_try="$ac_compile" 20928case "(($ac_try" in 20929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20930 *) ac_try_echo=$ac_try;; 20931esac 20932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20933 (eval "$ac_compile") 2>conftest.er1 20934 ac_status=$? 20935 grep -v '^ *+' conftest.er1 >conftest.err 20936 rm -f conftest.er1 20937 cat conftest.err >&5 20938 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20939 (exit $ac_status); } && { 20940 test -z "$ac_c_werror_flag" || 20941 test ! -s conftest.err 20942 } && test -s conftest.$ac_objext; then 20943 ac_cv_member_struct_sockaddr_in_sin_len=yes 20944else 20945 echo "$as_me: failed program was:" >&5 20946sed 's/^/| /' conftest.$ac_ext >&5 20947 20948 cat >conftest.$ac_ext <<_ACEOF 20949/* confdefs.h. */ 20950_ACEOF 20951cat confdefs.h >>conftest.$ac_ext 20952cat >>conftest.$ac_ext <<_ACEOF 20953/* end confdefs.h. */ 20954 20955#include <sys/types.h> 20956#include <sys/socket.h> 20957#include <netinet/in.h> 20958 20959 20960int 20961main () 20962{ 20963static struct sockaddr_in ac_aggr; 20964if (sizeof ac_aggr.sin_len) 20965return 0; 20966 ; 20967 return 0; 20968} 20969_ACEOF 20970rm -f conftest.$ac_objext 20971if { (ac_try="$ac_compile" 20972case "(($ac_try" in 20973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20974 *) ac_try_echo=$ac_try;; 20975esac 20976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20977 (eval "$ac_compile") 2>conftest.er1 20978 ac_status=$? 20979 grep -v '^ *+' conftest.er1 >conftest.err 20980 rm -f conftest.er1 20981 cat conftest.err >&5 20982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20983 (exit $ac_status); } && { 20984 test -z "$ac_c_werror_flag" || 20985 test ! -s conftest.err 20986 } && test -s conftest.$ac_objext; then 20987 ac_cv_member_struct_sockaddr_in_sin_len=yes 20988else 20989 echo "$as_me: failed program was:" >&5 20990sed 's/^/| /' conftest.$ac_ext >&5 20991 20992 ac_cv_member_struct_sockaddr_in_sin_len=no 20993fi 20994 20995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20996fi 20997 20998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20999fi 21000{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in_sin_len" >&5 21001echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in_sin_len" >&6; } 21002if test $ac_cv_member_struct_sockaddr_in_sin_len = yes; then 21003 21004cat >>confdefs.h <<\_ACEOF 21005#define BSD44SOCKETS 1 21006_ACEOF 21007 21008fi 21009 21010 21011 fi 21012 case $host_os in 21013 solaris*|sco*|sysv4*) localdef="yes" ;; 21014 *) localdef="no" ;; 21015 esac 21016 # Check whether --enable-local-transport was given. 21017if test "${enable_local_transport+set}" = set; then 21018 enableval=$enable_local_transport; LOCALCONN=$enableval 21019else 21020 LOCALCONN=$localdef 21021fi 21022 21023 { echo "$as_me:$LINENO: checking if Xtrans should support os-specific local connections" >&5 21024echo $ECHO_N "checking if Xtrans should support os-specific local connections... $ECHO_C" >&6; } 21025 { echo "$as_me:$LINENO: result: $LOCALCONN" >&5 21026echo "${ECHO_T}$LOCALCONN" >&6; } 21027 if test "$LOCALCONN" = "yes"; then 21028 21029cat >>confdefs.h <<\_ACEOF 21030#define LOCALCONN 1 21031_ACEOF 21032 21033 fi 21034 21035 21036 21037if test "x$GCC" = "xyes"; then 21038 GCC_WARNINGS="-Wall -Wpointer-arith -Wstrict-prototypes \ 21039 -Wmissing-prototypes -Wmissing-declarations \ 21040 -Wnested-externs -fno-strict-aliasing" 21041 CFLAGS="$GCC_WARNINGS $CFLAGS" 21042fi 21043 21044 21045 21046# Check whether --with-release-version was given. 21047if test "${with_release_version+set}" = set; then 21048 withval=$with_release_version; RELEASE_VERSION="$withval" 21049else 21050 RELEASE_VERSION="" 21051fi 21052 21053 if test "x$RELEASE_VERSION" != "x"; then 21054 PACKAGE="$PACKAGE-$RELEASE_VERSION" 21055 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 21056 { echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5 21057echo "$as_me: Building with package name set to $PACKAGE" >&6;} 21058 fi 21059 21060cat >>confdefs.h <<_ACEOF 21061#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 21062_ACEOF 21063 21064 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2` 21065 if test "x$PVM" = "x"; then 21066 PVM="0" 21067 fi 21068 21069cat >>confdefs.h <<_ACEOF 21070#define PACKAGE_VERSION_MINOR $PVM 21071_ACEOF 21072 21073 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3` 21074 if test "x$PVP" = "x"; then 21075 PVP="0" 21076 fi 21077 21078cat >>confdefs.h <<_ACEOF 21079#define PACKAGE_VERSION_PATCHLEVEL $PVP 21080_ACEOF 21081 21082 21083 21084ac_config_files="$ac_config_files Makefile src/Makefile sm.pc" 21085 21086cat >confcache <<\_ACEOF 21087# This file is a shell script that caches the results of configure 21088# tests run on this system so they can be shared between configure 21089# scripts and configure runs, see configure's option --config-cache. 21090# It is not useful on other systems. If it contains results you don't 21091# want to keep, you may remove or edit it. 21092# 21093# config.status only pays attention to the cache file if you give it 21094# the --recheck option to rerun configure. 21095# 21096# `ac_cv_env_foo' variables (set or unset) will be overridden when 21097# loading this file, other *unset* `ac_cv_foo' will be assigned the 21098# following values. 21099 21100_ACEOF 21101 21102# The following way of writing the cache mishandles newlines in values, 21103# but we know of no workaround that is simple, portable, and efficient. 21104# So, we kill variables containing newlines. 21105# Ultrix sh set writes to stderr and can't be redirected directly, 21106# and sets the high bit in the cache file unless we assign to the vars. 21107( 21108 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 21109 eval ac_val=\$$ac_var 21110 case $ac_val in #( 21111 *${as_nl}*) 21112 case $ac_var in #( 21113 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 21114echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 21115 esac 21116 case $ac_var in #( 21117 _ | IFS | as_nl) ;; #( 21118 *) $as_unset $ac_var ;; 21119 esac ;; 21120 esac 21121 done 21122 21123 (set) 2>&1 | 21124 case $as_nl`(ac_space=' '; set) 2>&1` in #( 21125 *${as_nl}ac_space=\ *) 21126 # `set' does not quote correctly, so add quotes (double-quote 21127 # substitution turns \\\\ into \\, and sed turns \\ into \). 21128 sed -n \ 21129 "s/'/'\\\\''/g; 21130 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21131 ;; #( 21132 *) 21133 # `set' quotes correctly as required by POSIX, so do not add quotes. 21134 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21135 ;; 21136 esac | 21137 sort 21138) | 21139 sed ' 21140 /^ac_cv_env_/b end 21141 t clear 21142 :clear 21143 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 21144 t end 21145 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21146 :end' >>confcache 21147if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 21148 if test -w "$cache_file"; then 21149 test "x$cache_file" != "x/dev/null" && 21150 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 21151echo "$as_me: updating cache $cache_file" >&6;} 21152 cat confcache >$cache_file 21153 else 21154 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 21155echo "$as_me: not updating unwritable cache $cache_file" >&6;} 21156 fi 21157fi 21158rm -f confcache 21159 21160test "x$prefix" = xNONE && prefix=$ac_default_prefix 21161# Let make expand exec_prefix. 21162test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21163 21164DEFS=-DHAVE_CONFIG_H 21165 21166ac_libobjs= 21167ac_ltlibobjs= 21168for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21169 # 1. Remove the extension, and $U if already installed. 21170 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21171 ac_i=`echo "$ac_i" | sed "$ac_script"` 21172 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21173 # will be set to the directory where LIBOBJS objects are built. 21174 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21175 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 21176done 21177LIBOBJS=$ac_libobjs 21178 21179LTLIBOBJS=$ac_ltlibobjs 21180 21181 21182if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 21183 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 21184Usually this means the macro was only invoked conditionally." >&5 21185echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 21186Usually this means the macro was only invoked conditionally." >&2;} 21187 { (exit 1); exit 1; }; } 21188fi 21189if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 21190 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 21191Usually this means the macro was only invoked conditionally." >&5 21192echo "$as_me: error: conditional \"AMDEP\" was never defined. 21193Usually this means the macro was only invoked conditionally." >&2;} 21194 { (exit 1); exit 1; }; } 21195fi 21196if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21197 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 21198Usually this means the macro was only invoked conditionally." >&5 21199echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 21200Usually this means the macro was only invoked conditionally." >&2;} 21201 { (exit 1); exit 1; }; } 21202fi 21203if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 21204 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 21205Usually this means the macro was only invoked conditionally." >&5 21206echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 21207Usually this means the macro was only invoked conditionally." >&2;} 21208 { (exit 1); exit 1; }; } 21209fi 21210if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21211 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 21212Usually this means the macro was only invoked conditionally." >&5 21213echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 21214Usually this means the macro was only invoked conditionally." >&2;} 21215 { (exit 1); exit 1; }; } 21216fi 21217 21218: ${CONFIG_STATUS=./config.status} 21219ac_clean_files_save=$ac_clean_files 21220ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21221{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 21222echo "$as_me: creating $CONFIG_STATUS" >&6;} 21223cat >$CONFIG_STATUS <<_ACEOF 21224#! $SHELL 21225# Generated by $as_me. 21226# Run this file to recreate the current configuration. 21227# Compiler output produced by configure, useful for debugging 21228# configure, is in config.log if it exists. 21229 21230debug=false 21231ac_cs_recheck=false 21232ac_cs_silent=false 21233SHELL=\${CONFIG_SHELL-$SHELL} 21234_ACEOF 21235 21236cat >>$CONFIG_STATUS <<\_ACEOF 21237## --------------------- ## 21238## M4sh Initialization. ## 21239## --------------------- ## 21240 21241# Be more Bourne compatible 21242DUALCASE=1; export DUALCASE # for MKS sh 21243if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 21244 emulate sh 21245 NULLCMD=: 21246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 21247 # is contrary to our usage. Disable this feature. 21248 alias -g '${1+"$@"}'='"$@"' 21249 setopt NO_GLOB_SUBST 21250else 21251 case `(set -o) 2>/dev/null` in 21252 *posix*) set -o posix ;; 21253esac 21254 21255fi 21256 21257 21258 21259 21260# PATH needs CR 21261# Avoid depending upon Character Ranges. 21262as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21263as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21264as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21265as_cr_digits='0123456789' 21266as_cr_alnum=$as_cr_Letters$as_cr_digits 21267 21268# The user is always right. 21269if test "${PATH_SEPARATOR+set}" != set; then 21270 echo "#! /bin/sh" >conf$$.sh 21271 echo "exit 0" >>conf$$.sh 21272 chmod +x conf$$.sh 21273 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 21274 PATH_SEPARATOR=';' 21275 else 21276 PATH_SEPARATOR=: 21277 fi 21278 rm -f conf$$.sh 21279fi 21280 21281# Support unset when possible. 21282if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 21283 as_unset=unset 21284else 21285 as_unset=false 21286fi 21287 21288 21289# IFS 21290# We need space, tab and new line, in precisely that order. Quoting is 21291# there to prevent editors from complaining about space-tab. 21292# (If _AS_PATH_WALK were called with IFS unset, it would disable word 21293# splitting by setting IFS to empty value.) 21294as_nl=' 21295' 21296IFS=" "" $as_nl" 21297 21298# Find who we are. Look in the path if we contain no directory separator. 21299case $0 in 21300 *[\\/]* ) as_myself=$0 ;; 21301 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21302for as_dir in $PATH 21303do 21304 IFS=$as_save_IFS 21305 test -z "$as_dir" && as_dir=. 21306 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 21307done 21308IFS=$as_save_IFS 21309 21310 ;; 21311esac 21312# We did not find ourselves, most probably we were run as `sh COMMAND' 21313# in which case we are not to be found in the path. 21314if test "x$as_myself" = x; then 21315 as_myself=$0 21316fi 21317if test ! -f "$as_myself"; then 21318 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 21319 { (exit 1); exit 1; } 21320fi 21321 21322# Work around bugs in pre-3.0 UWIN ksh. 21323for as_var in ENV MAIL MAILPATH 21324do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 21325done 21326PS1='$ ' 21327PS2='> ' 21328PS4='+ ' 21329 21330# NLS nuisances. 21331for as_var in \ 21332 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 21333 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 21334 LC_TELEPHONE LC_TIME 21335do 21336 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 21337 eval $as_var=C; export $as_var 21338 else 21339 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 21340 fi 21341done 21342 21343# Required to use basename. 21344if expr a : '\(a\)' >/dev/null 2>&1 && 21345 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21346 as_expr=expr 21347else 21348 as_expr=false 21349fi 21350 21351if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21352 as_basename=basename 21353else 21354 as_basename=false 21355fi 21356 21357 21358# Name of the executable. 21359as_me=`$as_basename -- "$0" || 21360$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21361 X"$0" : 'X\(//\)$' \| \ 21362 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21363echo X/"$0" | 21364 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21365 s//\1/ 21366 q 21367 } 21368 /^X\/\(\/\/\)$/{ 21369 s//\1/ 21370 q 21371 } 21372 /^X\/\(\/\).*/{ 21373 s//\1/ 21374 q 21375 } 21376 s/.*/./; q'` 21377 21378# CDPATH. 21379$as_unset CDPATH 21380 21381 21382 21383 as_lineno_1=$LINENO 21384 as_lineno_2=$LINENO 21385 test "x$as_lineno_1" != "x$as_lineno_2" && 21386 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 21387 21388 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 21389 # uniformly replaced by the line number. The first 'sed' inserts a 21390 # line-number line after each line using $LINENO; the second 'sed' 21391 # does the real work. The second script uses 'N' to pair each 21392 # line-number line with the line containing $LINENO, and appends 21393 # trailing '-' during substitution so that $LINENO is not a special 21394 # case at line end. 21395 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 21396 # scripts with optimization help from Paolo Bonzini. Blame Lee 21397 # E. McMahon (1931-1989) for sed's syntax. :-) 21398 sed -n ' 21399 p 21400 /[$]LINENO/= 21401 ' <$as_myself | 21402 sed ' 21403 s/[$]LINENO.*/&-/ 21404 t lineno 21405 b 21406 :lineno 21407 N 21408 :loop 21409 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 21410 t loop 21411 s/-\n.*// 21412 ' >$as_me.lineno && 21413 chmod +x "$as_me.lineno" || 21414 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 21415 { (exit 1); exit 1; }; } 21416 21417 # Don't try to exec as it changes $[0], causing all sort of problems 21418 # (the dirname of $[0] is not the place where we might find the 21419 # original and so on. Autoconf is especially sensitive to this). 21420 . "./$as_me.lineno" 21421 # Exit status is that of the last command. 21422 exit 21423} 21424 21425 21426if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21427 as_dirname=dirname 21428else 21429 as_dirname=false 21430fi 21431 21432ECHO_C= ECHO_N= ECHO_T= 21433case `echo -n x` in 21434-n*) 21435 case `echo 'x\c'` in 21436 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21437 *) ECHO_C='\c';; 21438 esac;; 21439*) 21440 ECHO_N='-n';; 21441esac 21442 21443if expr a : '\(a\)' >/dev/null 2>&1 && 21444 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21445 as_expr=expr 21446else 21447 as_expr=false 21448fi 21449 21450rm -f conf$$ conf$$.exe conf$$.file 21451if test -d conf$$.dir; then 21452 rm -f conf$$.dir/conf$$.file 21453else 21454 rm -f conf$$.dir 21455 mkdir conf$$.dir 21456fi 21457echo >conf$$.file 21458if ln -s conf$$.file conf$$ 2>/dev/null; then 21459 as_ln_s='ln -s' 21460 # ... but there are two gotchas: 21461 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 21462 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 21463 # In both cases, we have to default to `cp -p'. 21464 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21465 as_ln_s='cp -p' 21466elif ln conf$$.file conf$$ 2>/dev/null; then 21467 as_ln_s=ln 21468else 21469 as_ln_s='cp -p' 21470fi 21471rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21472rmdir conf$$.dir 2>/dev/null 21473 21474if mkdir -p . 2>/dev/null; then 21475 as_mkdir_p=: 21476else 21477 test -d ./-p && rmdir ./-p 21478 as_mkdir_p=false 21479fi 21480 21481if test -x / >/dev/null 2>&1; then 21482 as_test_x='test -x' 21483else 21484 if ls -dL / >/dev/null 2>&1; then 21485 as_ls_L_option=L 21486 else 21487 as_ls_L_option= 21488 fi 21489 as_test_x=' 21490 eval sh -c '\'' 21491 if test -d "$1"; then 21492 test -d "$1/."; 21493 else 21494 case $1 in 21495 -*)set "./$1";; 21496 esac; 21497 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 21498 ???[sx]*):;;*)false;;esac;fi 21499 '\'' sh 21500 ' 21501fi 21502as_executable_p=$as_test_x 21503 21504# Sed expression to map a string onto a valid CPP name. 21505as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21506 21507# Sed expression to map a string onto a valid variable name. 21508as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21509 21510 21511exec 6>&1 21512 21513# Save the log message, to keep $[0] and so on meaningful, and to 21514# report actual input values of CONFIG_FILES etc. instead of their 21515# values after options handling. 21516ac_log=" 21517This file was extended by libSM $as_me 1.0.3, which was 21518generated by GNU Autoconf 2.61. Invocation command line was 21519 21520 CONFIG_FILES = $CONFIG_FILES 21521 CONFIG_HEADERS = $CONFIG_HEADERS 21522 CONFIG_LINKS = $CONFIG_LINKS 21523 CONFIG_COMMANDS = $CONFIG_COMMANDS 21524 $ $0 $@ 21525 21526on `(hostname || uname -n) 2>/dev/null | sed 1q` 21527" 21528 21529_ACEOF 21530 21531cat >>$CONFIG_STATUS <<_ACEOF 21532# Files that config.status was made for. 21533config_files="$ac_config_files" 21534config_headers="$ac_config_headers" 21535config_commands="$ac_config_commands" 21536 21537_ACEOF 21538 21539cat >>$CONFIG_STATUS <<\_ACEOF 21540ac_cs_usage="\ 21541\`$as_me' instantiates files from templates according to the 21542current configuration. 21543 21544Usage: $0 [OPTIONS] [FILE]... 21545 21546 -h, --help print this help, then exit 21547 -V, --version print version number and configuration settings, then exit 21548 -q, --quiet do not print progress messages 21549 -d, --debug don't remove temporary files 21550 --recheck update $as_me by reconfiguring in the same conditions 21551 --file=FILE[:TEMPLATE] 21552 instantiate the configuration file FILE 21553 --header=FILE[:TEMPLATE] 21554 instantiate the configuration header FILE 21555 21556Configuration files: 21557$config_files 21558 21559Configuration headers: 21560$config_headers 21561 21562Configuration commands: 21563$config_commands 21564 21565Report bugs to <bug-autoconf@gnu.org>." 21566 21567_ACEOF 21568cat >>$CONFIG_STATUS <<_ACEOF 21569ac_cs_version="\\ 21570libSM config.status 1.0.3 21571configured by $0, generated by GNU Autoconf 2.61, 21572 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 21573 21574Copyright (C) 2006 Free Software Foundation, Inc. 21575This config.status script is free software; the Free Software Foundation 21576gives unlimited permission to copy, distribute and modify it." 21577 21578ac_pwd='$ac_pwd' 21579srcdir='$srcdir' 21580INSTALL='$INSTALL' 21581MKDIR_P='$MKDIR_P' 21582_ACEOF 21583 21584cat >>$CONFIG_STATUS <<\_ACEOF 21585# If no file are specified by the user, then we need to provide default 21586# value. By we need to know if files were specified by the user. 21587ac_need_defaults=: 21588while test $# != 0 21589do 21590 case $1 in 21591 --*=*) 21592 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21593 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21594 ac_shift=: 21595 ;; 21596 *) 21597 ac_option=$1 21598 ac_optarg=$2 21599 ac_shift=shift 21600 ;; 21601 esac 21602 21603 case $ac_option in 21604 # Handling of the options. 21605 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21606 ac_cs_recheck=: ;; 21607 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21608 echo "$ac_cs_version"; exit ;; 21609 --debug | --debu | --deb | --de | --d | -d ) 21610 debug=: ;; 21611 --file | --fil | --fi | --f ) 21612 $ac_shift 21613 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 21614 ac_need_defaults=false;; 21615 --header | --heade | --head | --hea ) 21616 $ac_shift 21617 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 21618 ac_need_defaults=false;; 21619 --he | --h) 21620 # Conflict between --help and --header 21621 { echo "$as_me: error: ambiguous option: $1 21622Try \`$0 --help' for more information." >&2 21623 { (exit 1); exit 1; }; };; 21624 --help | --hel | -h ) 21625 echo "$ac_cs_usage"; exit ;; 21626 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21627 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21628 ac_cs_silent=: ;; 21629 21630 # This is an error. 21631 -*) { echo "$as_me: error: unrecognized option: $1 21632Try \`$0 --help' for more information." >&2 21633 { (exit 1); exit 1; }; } ;; 21634 21635 *) ac_config_targets="$ac_config_targets $1" 21636 ac_need_defaults=false ;; 21637 21638 esac 21639 shift 21640done 21641 21642ac_configure_extra_args= 21643 21644if $ac_cs_silent; then 21645 exec 6>/dev/null 21646 ac_configure_extra_args="$ac_configure_extra_args --silent" 21647fi 21648 21649_ACEOF 21650cat >>$CONFIG_STATUS <<_ACEOF 21651if \$ac_cs_recheck; then 21652 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 21653 CONFIG_SHELL=$SHELL 21654 export CONFIG_SHELL 21655 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21656fi 21657 21658_ACEOF 21659cat >>$CONFIG_STATUS <<\_ACEOF 21660exec 5>>config.log 21661{ 21662 echo 21663 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21664## Running $as_me. ## 21665_ASBOX 21666 echo "$ac_log" 21667} >&5 21668 21669_ACEOF 21670cat >>$CONFIG_STATUS <<_ACEOF 21671# 21672# INIT-COMMANDS 21673# 21674AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 21675 21676_ACEOF 21677 21678cat >>$CONFIG_STATUS <<\_ACEOF 21679 21680# Handling of arguments. 21681for ac_config_target in $ac_config_targets 21682do 21683 case $ac_config_target in 21684 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 21685 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21686 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21687 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 21688 "sm.pc") CONFIG_FILES="$CONFIG_FILES sm.pc" ;; 21689 21690 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 21691echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 21692 { (exit 1); exit 1; }; };; 21693 esac 21694done 21695 21696 21697# If the user did not use the arguments to specify the items to instantiate, 21698# then the envvar interface is used. Set only those that are not. 21699# We use the long form for the default assignment because of an extremely 21700# bizarre bug on SunOS 4.1.3. 21701if $ac_need_defaults; then 21702 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 21703 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 21704 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 21705fi 21706 21707# Have a temporary directory for convenience. Make it in the build tree 21708# simply because there is no reason against having it here, and in addition, 21709# creating and moving files from /tmp can sometimes cause problems. 21710# Hook for its removal unless debugging. 21711# Note that there is a small window in which the directory will not be cleaned: 21712# after its creation but before its name has been assigned to `$tmp'. 21713$debug || 21714{ 21715 tmp= 21716 trap 'exit_status=$? 21717 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 21718' 0 21719 trap '{ (exit 1); exit 1; }' 1 2 13 15 21720} 21721# Create a (secure) tmp directory for tmp files. 21722 21723{ 21724 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21725 test -n "$tmp" && test -d "$tmp" 21726} || 21727{ 21728 tmp=./conf$$-$RANDOM 21729 (umask 077 && mkdir "$tmp") 21730} || 21731{ 21732 echo "$me: cannot create a temporary directory in ." >&2 21733 { (exit 1); exit 1; } 21734} 21735 21736# 21737# Set up the sed scripts for CONFIG_FILES section. 21738# 21739 21740# No need to generate the scripts if there are no CONFIG_FILES. 21741# This happens for instance when ./config.status config.h 21742if test -n "$CONFIG_FILES"; then 21743 21744_ACEOF 21745 21746 21747 21748ac_delim='%!_!# ' 21749for ac_last_try in false false false false false :; do 21750 cat >conf$$subs.sed <<_ACEOF 21751SHELL!$SHELL$ac_delim 21752PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 21753PACKAGE_NAME!$PACKAGE_NAME$ac_delim 21754PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 21755PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 21756PACKAGE_STRING!$PACKAGE_STRING$ac_delim 21757PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 21758exec_prefix!$exec_prefix$ac_delim 21759prefix!$prefix$ac_delim 21760program_transform_name!$program_transform_name$ac_delim 21761bindir!$bindir$ac_delim 21762sbindir!$sbindir$ac_delim 21763libexecdir!$libexecdir$ac_delim 21764datarootdir!$datarootdir$ac_delim 21765datadir!$datadir$ac_delim 21766sysconfdir!$sysconfdir$ac_delim 21767sharedstatedir!$sharedstatedir$ac_delim 21768localstatedir!$localstatedir$ac_delim 21769includedir!$includedir$ac_delim 21770oldincludedir!$oldincludedir$ac_delim 21771docdir!$docdir$ac_delim 21772infodir!$infodir$ac_delim 21773htmldir!$htmldir$ac_delim 21774dvidir!$dvidir$ac_delim 21775pdfdir!$pdfdir$ac_delim 21776psdir!$psdir$ac_delim 21777libdir!$libdir$ac_delim 21778localedir!$localedir$ac_delim 21779mandir!$mandir$ac_delim 21780DEFS!$DEFS$ac_delim 21781ECHO_C!$ECHO_C$ac_delim 21782ECHO_N!$ECHO_N$ac_delim 21783ECHO_T!$ECHO_T$ac_delim 21784LIBS!$LIBS$ac_delim 21785build_alias!$build_alias$ac_delim 21786host_alias!$host_alias$ac_delim 21787target_alias!$target_alias$ac_delim 21788INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 21789INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 21790INSTALL_DATA!$INSTALL_DATA$ac_delim 21791am__isrc!$am__isrc$ac_delim 21792CYGPATH_W!$CYGPATH_W$ac_delim 21793PACKAGE!$PACKAGE$ac_delim 21794VERSION!$VERSION$ac_delim 21795ACLOCAL!$ACLOCAL$ac_delim 21796AUTOCONF!$AUTOCONF$ac_delim 21797AUTOMAKE!$AUTOMAKE$ac_delim 21798AUTOHEADER!$AUTOHEADER$ac_delim 21799MAKEINFO!$MAKEINFO$ac_delim 21800install_sh!$install_sh$ac_delim 21801STRIP!$STRIP$ac_delim 21802INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 21803mkdir_p!$mkdir_p$ac_delim 21804AWK!$AWK$ac_delim 21805SET_MAKE!$SET_MAKE$ac_delim 21806am__leading_dot!$am__leading_dot$ac_delim 21807AMTAR!$AMTAR$ac_delim 21808am__tar!$am__tar$ac_delim 21809am__untar!$am__untar$ac_delim 21810MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim 21811MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim 21812MAINT!$MAINT$ac_delim 21813build!$build$ac_delim 21814build_cpu!$build_cpu$ac_delim 21815build_vendor!$build_vendor$ac_delim 21816build_os!$build_os$ac_delim 21817host!$host$ac_delim 21818host_cpu!$host_cpu$ac_delim 21819host_vendor!$host_vendor$ac_delim 21820host_os!$host_os$ac_delim 21821CC!$CC$ac_delim 21822CFLAGS!$CFLAGS$ac_delim 21823LDFLAGS!$LDFLAGS$ac_delim 21824CPPFLAGS!$CPPFLAGS$ac_delim 21825ac_ct_CC!$ac_ct_CC$ac_delim 21826EXEEXT!$EXEEXT$ac_delim 21827OBJEXT!$OBJEXT$ac_delim 21828DEPDIR!$DEPDIR$ac_delim 21829am__include!$am__include$ac_delim 21830am__quote!$am__quote$ac_delim 21831AMDEP_TRUE!$AMDEP_TRUE$ac_delim 21832AMDEP_FALSE!$AMDEP_FALSE$ac_delim 21833AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 21834CCDEPMODE!$CCDEPMODE$ac_delim 21835am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 21836am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 21837GREP!$GREP$ac_delim 21838EGREP!$EGREP$ac_delim 21839LN_S!$LN_S$ac_delim 21840ECHO!$ECHO$ac_delim 21841AR!$AR$ac_delim 21842RANLIB!$RANLIB$ac_delim 21843CPP!$CPP$ac_delim 21844CXX!$CXX$ac_delim 21845CXXFLAGS!$CXXFLAGS$ac_delim 21846ac_ct_CXX!$ac_ct_CXX$ac_delim 21847CXXDEPMODE!$CXXDEPMODE$ac_delim 21848_ACEOF 21849 21850 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 21851 break 21852 elif $ac_last_try; then 21853 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 21854echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 21855 { (exit 1); exit 1; }; } 21856 else 21857 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21858 fi 21859done 21860 21861ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 21862if test -n "$ac_eof"; then 21863 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 21864 ac_eof=`expr $ac_eof + 1` 21865fi 21866 21867cat >>$CONFIG_STATUS <<_ACEOF 21868cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 21869/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21870_ACEOF 21871sed ' 21872s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 21873s/^/s,@/; s/!/@,|#_!!_#|/ 21874:n 21875t n 21876s/'"$ac_delim"'$/,g/; t 21877s/$/\\/; p 21878N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 21879' >>$CONFIG_STATUS <conf$$subs.sed 21880rm -f conf$$subs.sed 21881cat >>$CONFIG_STATUS <<_ACEOF 21882CEOF$ac_eof 21883_ACEOF 21884 21885 21886ac_delim='%!_!# ' 21887for ac_last_try in false false false false false :; do 21888 cat >conf$$subs.sed <<_ACEOF 21889am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim 21890am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim 21891CXXCPP!$CXXCPP$ac_delim 21892F77!$F77$ac_delim 21893FFLAGS!$FFLAGS$ac_delim 21894ac_ct_F77!$ac_ct_F77$ac_delim 21895LIBTOOL!$LIBTOOL$ac_delim 21896PKG_CONFIG!$PKG_CONFIG$ac_delim 21897SM_CFLAGS!$SM_CFLAGS$ac_delim 21898SM_LIBS!$SM_LIBS$ac_delim 21899XTRANS_CFLAGS!$XTRANS_CFLAGS$ac_delim 21900XTRANS_LIBS!$XTRANS_LIBS$ac_delim 21901LIBOBJS!$LIBOBJS$ac_delim 21902LTLIBOBJS!$LTLIBOBJS$ac_delim 21903_ACEOF 21904 21905 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 14; then 21906 break 21907 elif $ac_last_try; then 21908 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 21909echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 21910 { (exit 1); exit 1; }; } 21911 else 21912 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21913 fi 21914done 21915 21916ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 21917if test -n "$ac_eof"; then 21918 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 21919 ac_eof=`expr $ac_eof + 1` 21920fi 21921 21922cat >>$CONFIG_STATUS <<_ACEOF 21923cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 21924/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 21925_ACEOF 21926sed ' 21927s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 21928s/^/s,@/; s/!/@,|#_!!_#|/ 21929:n 21930t n 21931s/'"$ac_delim"'$/,g/; t 21932s/$/\\/; p 21933N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 21934' >>$CONFIG_STATUS <conf$$subs.sed 21935rm -f conf$$subs.sed 21936cat >>$CONFIG_STATUS <<_ACEOF 21937:end 21938s/|#_!!_#|//g 21939CEOF$ac_eof 21940_ACEOF 21941 21942 21943# VPATH may cause trouble with some makes, so we remove $(srcdir), 21944# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 21945# trailing colons and then remove the whole line if VPATH becomes empty 21946# (actually we leave an empty line to preserve line numbers). 21947if test "x$srcdir" = x.; then 21948 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 21949s/:*\$(srcdir):*/:/ 21950s/:*\${srcdir}:*/:/ 21951s/:*@srcdir@:*/:/ 21952s/^\([^=]*=[ ]*\):*/\1/ 21953s/:*$// 21954s/^[^=]*=[ ]*$// 21955}' 21956fi 21957 21958cat >>$CONFIG_STATUS <<\_ACEOF 21959fi # test -n "$CONFIG_FILES" 21960 21961 21962for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 21963do 21964 case $ac_tag in 21965 :[FHLC]) ac_mode=$ac_tag; continue;; 21966 esac 21967 case $ac_mode$ac_tag in 21968 :[FHL]*:*);; 21969 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 21970echo "$as_me: error: Invalid tag $ac_tag." >&2;} 21971 { (exit 1); exit 1; }; };; 21972 :[FH]-) ac_tag=-:-;; 21973 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21974 esac 21975 ac_save_IFS=$IFS 21976 IFS=: 21977 set x $ac_tag 21978 IFS=$ac_save_IFS 21979 shift 21980 ac_file=$1 21981 shift 21982 21983 case $ac_mode in 21984 :L) ac_source=$1;; 21985 :[FH]) 21986 ac_file_inputs= 21987 for ac_f 21988 do 21989 case $ac_f in 21990 -) ac_f="$tmp/stdin";; 21991 *) # Look for the file first in the build tree, then in the source tree 21992 # (if the path is not absolute). The absolute path cannot be DOS-style, 21993 # because $ac_f cannot contain `:'. 21994 test -f "$ac_f" || 21995 case $ac_f in 21996 [\\/$]*) false;; 21997 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21998 esac || 21999 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 22000echo "$as_me: error: cannot find input file: $ac_f" >&2;} 22001 { (exit 1); exit 1; }; };; 22002 esac 22003 ac_file_inputs="$ac_file_inputs $ac_f" 22004 done 22005 22006 # Let's still pretend it is `configure' which instantiates (i.e., don't 22007 # use $as_me), people would be surprised to read: 22008 # /* config.h. Generated by config.status. */ 22009 configure_input="Generated from "`IFS=: 22010 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 22011 if test x"$ac_file" != x-; then 22012 configure_input="$ac_file. $configure_input" 22013 { echo "$as_me:$LINENO: creating $ac_file" >&5 22014echo "$as_me: creating $ac_file" >&6;} 22015 fi 22016 22017 case $ac_tag in 22018 *:-:* | *:-) cat >"$tmp/stdin";; 22019 esac 22020 ;; 22021 esac 22022 22023 ac_dir=`$as_dirname -- "$ac_file" || 22024$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22025 X"$ac_file" : 'X\(//\)[^/]' \| \ 22026 X"$ac_file" : 'X\(//\)$' \| \ 22027 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 22028echo X"$ac_file" | 22029 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22030 s//\1/ 22031 q 22032 } 22033 /^X\(\/\/\)[^/].*/{ 22034 s//\1/ 22035 q 22036 } 22037 /^X\(\/\/\)$/{ 22038 s//\1/ 22039 q 22040 } 22041 /^X\(\/\).*/{ 22042 s//\1/ 22043 q 22044 } 22045 s/.*/./; q'` 22046 { as_dir="$ac_dir" 22047 case $as_dir in #( 22048 -*) as_dir=./$as_dir;; 22049 esac 22050 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 22051 as_dirs= 22052 while :; do 22053 case $as_dir in #( 22054 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 22055 *) as_qdir=$as_dir;; 22056 esac 22057 as_dirs="'$as_qdir' $as_dirs" 22058 as_dir=`$as_dirname -- "$as_dir" || 22059$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22060 X"$as_dir" : 'X\(//\)[^/]' \| \ 22061 X"$as_dir" : 'X\(//\)$' \| \ 22062 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22063echo X"$as_dir" | 22064 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22065 s//\1/ 22066 q 22067 } 22068 /^X\(\/\/\)[^/].*/{ 22069 s//\1/ 22070 q 22071 } 22072 /^X\(\/\/\)$/{ 22073 s//\1/ 22074 q 22075 } 22076 /^X\(\/\).*/{ 22077 s//\1/ 22078 q 22079 } 22080 s/.*/./; q'` 22081 test -d "$as_dir" && break 22082 done 22083 test -z "$as_dirs" || eval "mkdir $as_dirs" 22084 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 22085echo "$as_me: error: cannot create directory $as_dir" >&2;} 22086 { (exit 1); exit 1; }; }; } 22087 ac_builddir=. 22088 22089case "$ac_dir" in 22090.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22091*) 22092 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 22093 # A ".." for each directory in $ac_dir_suffix. 22094 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 22095 case $ac_top_builddir_sub in 22096 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22097 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22098 esac ;; 22099esac 22100ac_abs_top_builddir=$ac_pwd 22101ac_abs_builddir=$ac_pwd$ac_dir_suffix 22102# for backward compatibility: 22103ac_top_builddir=$ac_top_build_prefix 22104 22105case $srcdir in 22106 .) # We are building in place. 22107 ac_srcdir=. 22108 ac_top_srcdir=$ac_top_builddir_sub 22109 ac_abs_top_srcdir=$ac_pwd ;; 22110 [\\/]* | ?:[\\/]* ) # Absolute name. 22111 ac_srcdir=$srcdir$ac_dir_suffix; 22112 ac_top_srcdir=$srcdir 22113 ac_abs_top_srcdir=$srcdir ;; 22114 *) # Relative name. 22115 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22116 ac_top_srcdir=$ac_top_build_prefix$srcdir 22117 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22118esac 22119ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22120 22121 22122 case $ac_mode in 22123 :F) 22124 # 22125 # CONFIG_FILE 22126 # 22127 22128 case $INSTALL in 22129 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22130 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22131 esac 22132 ac_MKDIR_P=$MKDIR_P 22133 case $MKDIR_P in 22134 [\\/$]* | ?:[\\/]* ) ;; 22135 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 22136 esac 22137_ACEOF 22138 22139cat >>$CONFIG_STATUS <<\_ACEOF 22140# If the template does not know about datarootdir, expand it. 22141# FIXME: This hack should be removed a few years after 2.60. 22142ac_datarootdir_hack=; ac_datarootdir_seen= 22143 22144case `sed -n '/datarootdir/ { 22145 p 22146 q 22147} 22148/@datadir@/p 22149/@docdir@/p 22150/@infodir@/p 22151/@localedir@/p 22152/@mandir@/p 22153' $ac_file_inputs` in 22154*datarootdir*) ac_datarootdir_seen=yes;; 22155*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22156 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22157echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22158_ACEOF 22159cat >>$CONFIG_STATUS <<_ACEOF 22160 ac_datarootdir_hack=' 22161 s&@datadir@&$datadir&g 22162 s&@docdir@&$docdir&g 22163 s&@infodir@&$infodir&g 22164 s&@localedir@&$localedir&g 22165 s&@mandir@&$mandir&g 22166 s&\\\${datarootdir}&$datarootdir&g' ;; 22167esac 22168_ACEOF 22169 22170# Neutralize VPATH when `$srcdir' = `.'. 22171# Shell code in configure.ac might set extrasub. 22172# FIXME: do we really want to maintain this feature? 22173cat >>$CONFIG_STATUS <<_ACEOF 22174 sed "$ac_vpsub 22175$extrasub 22176_ACEOF 22177cat >>$CONFIG_STATUS <<\_ACEOF 22178:t 22179/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22180s&@configure_input@&$configure_input&;t t 22181s&@top_builddir@&$ac_top_builddir_sub&;t t 22182s&@srcdir@&$ac_srcdir&;t t 22183s&@abs_srcdir@&$ac_abs_srcdir&;t t 22184s&@top_srcdir@&$ac_top_srcdir&;t t 22185s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22186s&@builddir@&$ac_builddir&;t t 22187s&@abs_builddir@&$ac_abs_builddir&;t t 22188s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22189s&@INSTALL@&$ac_INSTALL&;t t 22190s&@MKDIR_P@&$ac_MKDIR_P&;t t 22191$ac_datarootdir_hack 22192" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 22193 22194test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22195 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 22196 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 22197 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22198which seems to be undefined. Please make sure it is defined." >&5 22199echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22200which seems to be undefined. Please make sure it is defined." >&2;} 22201 22202 rm -f "$tmp/stdin" 22203 case $ac_file in 22204 -) cat "$tmp/out"; rm -f "$tmp/out";; 22205 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 22206 esac 22207 ;; 22208 :H) 22209 # 22210 # CONFIG_HEADER 22211 # 22212_ACEOF 22213 22214# Transform confdefs.h into a sed script `conftest.defines', that 22215# substitutes the proper values into config.h.in to produce config.h. 22216rm -f conftest.defines conftest.tail 22217# First, append a space to every undef/define line, to ease matching. 22218echo 's/$/ /' >conftest.defines 22219# Then, protect against being on the right side of a sed subst, or in 22220# an unquoted here document, in config.status. If some macros were 22221# called several times there might be several #defines for the same 22222# symbol, which is useless. But do not sort them, since the last 22223# AC_DEFINE must be honored. 22224ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 22225# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 22226# NAME is the cpp macro being defined, VALUE is the value it is being given. 22227# PARAMS is the parameter list in the macro definition--in most cases, it's 22228# just an empty string. 22229ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 22230ac_dB='\\)[ (].*,\\1define\\2' 22231ac_dC=' ' 22232ac_dD=' ,' 22233 22234uniq confdefs.h | 22235 sed -n ' 22236 t rset 22237 :rset 22238 s/^[ ]*#[ ]*define[ ][ ]*// 22239 t ok 22240 d 22241 :ok 22242 s/[\\&,]/\\&/g 22243 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 22244 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 22245 ' >>conftest.defines 22246 22247# Remove the space that was appended to ease matching. 22248# Then replace #undef with comments. This is necessary, for 22249# example, in the case of _POSIX_SOURCE, which is predefined and required 22250# on some systems where configure will not decide to define it. 22251# (The regexp can be short, since the line contains either #define or #undef.) 22252echo 's/ $// 22253s,^[ #]*u.*,/* & */,' >>conftest.defines 22254 22255# Break up conftest.defines: 22256ac_max_sed_lines=50 22257 22258# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 22259# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 22260# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 22261# et cetera. 22262ac_in='$ac_file_inputs' 22263ac_out='"$tmp/out1"' 22264ac_nxt='"$tmp/out2"' 22265 22266while : 22267do 22268 # Write a here document: 22269 cat >>$CONFIG_STATUS <<_ACEOF 22270 # First, check the format of the line: 22271 cat >"\$tmp/defines.sed" <<\\CEOF 22272/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 22273/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 22274b 22275:def 22276_ACEOF 22277 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 22278 echo 'CEOF 22279 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 22280 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 22281 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 22282 grep . conftest.tail >/dev/null || break 22283 rm -f conftest.defines 22284 mv conftest.tail conftest.defines 22285done 22286rm -f conftest.defines conftest.tail 22287 22288echo "ac_result=$ac_in" >>$CONFIG_STATUS 22289cat >>$CONFIG_STATUS <<\_ACEOF 22290 if test x"$ac_file" != x-; then 22291 echo "/* $configure_input */" >"$tmp/config.h" 22292 cat "$ac_result" >>"$tmp/config.h" 22293 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 22294 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 22295echo "$as_me: $ac_file is unchanged" >&6;} 22296 else 22297 rm -f $ac_file 22298 mv "$tmp/config.h" $ac_file 22299 fi 22300 else 22301 echo "/* $configure_input */" 22302 cat "$ac_result" 22303 fi 22304 rm -f "$tmp/out12" 22305# Compute $ac_file's index in $config_headers. 22306_am_stamp_count=1 22307for _am_header in $config_headers :; do 22308 case $_am_header in 22309 $ac_file | $ac_file:* ) 22310 break ;; 22311 * ) 22312 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22313 esac 22314done 22315echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || 22316$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22317 X$ac_file : 'X\(//\)[^/]' \| \ 22318 X$ac_file : 'X\(//\)$' \| \ 22319 X$ac_file : 'X\(/\)' \| . 2>/dev/null || 22320echo X$ac_file | 22321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22322 s//\1/ 22323 q 22324 } 22325 /^X\(\/\/\)[^/].*/{ 22326 s//\1/ 22327 q 22328 } 22329 /^X\(\/\/\)$/{ 22330 s//\1/ 22331 q 22332 } 22333 /^X\(\/\).*/{ 22334 s//\1/ 22335 q 22336 } 22337 s/.*/./; q'`/stamp-h$_am_stamp_count 22338 ;; 22339 22340 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 22341echo "$as_me: executing $ac_file commands" >&6;} 22342 ;; 22343 esac 22344 22345 22346 case $ac_file$ac_mode in 22347 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 22348 # Strip MF so we end up with the name of the file. 22349 mf=`echo "$mf" | sed -e 's/:.*$//'` 22350 # Check whether this is an Automake generated Makefile or not. 22351 # We used to match only the files named `Makefile.in', but 22352 # some people rename them; so instead we look at the file content. 22353 # Grep'ing the first line is not enough: some people post-process 22354 # each Makefile.in and add a new line on top of each file to say so. 22355 # Grep'ing the whole file is not good either: AIX grep has a line 22356 # limit of 2048, but all sed's we know have understand at least 4000. 22357 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then 22358 dirpart=`$as_dirname -- "$mf" || 22359$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22360 X"$mf" : 'X\(//\)[^/]' \| \ 22361 X"$mf" : 'X\(//\)$' \| \ 22362 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 22363echo X"$mf" | 22364 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22365 s//\1/ 22366 q 22367 } 22368 /^X\(\/\/\)[^/].*/{ 22369 s//\1/ 22370 q 22371 } 22372 /^X\(\/\/\)$/{ 22373 s//\1/ 22374 q 22375 } 22376 /^X\(\/\).*/{ 22377 s//\1/ 22378 q 22379 } 22380 s/.*/./; q'` 22381 else 22382 continue 22383 fi 22384 # Extract the definition of DEPDIR, am__include, and am__quote 22385 # from the Makefile without running `make'. 22386 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 22387 test -z "$DEPDIR" && continue 22388 am__include=`sed -n 's/^am__include = //p' < "$mf"` 22389 test -z "am__include" && continue 22390 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 22391 # When using ansi2knr, U may be empty or an underscore; expand it 22392 U=`sed -n 's/^U = //p' < "$mf"` 22393 # Find all dependency output files, they are included files with 22394 # $(DEPDIR) in their names. We invoke sed twice because it is the 22395 # simplest approach to changing $(DEPDIR) to its actual value in the 22396 # expansion. 22397 for file in `sed -n " 22398 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 22399 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 22400 # Make sure the directory exists. 22401 test -f "$dirpart/$file" && continue 22402 fdir=`$as_dirname -- "$file" || 22403$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22404 X"$file" : 'X\(//\)[^/]' \| \ 22405 X"$file" : 'X\(//\)$' \| \ 22406 X"$file" : 'X\(/\)' \| . 2>/dev/null || 22407echo X"$file" | 22408 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22409 s//\1/ 22410 q 22411 } 22412 /^X\(\/\/\)[^/].*/{ 22413 s//\1/ 22414 q 22415 } 22416 /^X\(\/\/\)$/{ 22417 s//\1/ 22418 q 22419 } 22420 /^X\(\/\).*/{ 22421 s//\1/ 22422 q 22423 } 22424 s/.*/./; q'` 22425 { as_dir=$dirpart/$fdir 22426 case $as_dir in #( 22427 -*) as_dir=./$as_dir;; 22428 esac 22429 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 22430 as_dirs= 22431 while :; do 22432 case $as_dir in #( 22433 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 22434 *) as_qdir=$as_dir;; 22435 esac 22436 as_dirs="'$as_qdir' $as_dirs" 22437 as_dir=`$as_dirname -- "$as_dir" || 22438$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22439 X"$as_dir" : 'X\(//\)[^/]' \| \ 22440 X"$as_dir" : 'X\(//\)$' \| \ 22441 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22442echo X"$as_dir" | 22443 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22444 s//\1/ 22445 q 22446 } 22447 /^X\(\/\/\)[^/].*/{ 22448 s//\1/ 22449 q 22450 } 22451 /^X\(\/\/\)$/{ 22452 s//\1/ 22453 q 22454 } 22455 /^X\(\/\).*/{ 22456 s//\1/ 22457 q 22458 } 22459 s/.*/./; q'` 22460 test -d "$as_dir" && break 22461 done 22462 test -z "$as_dirs" || eval "mkdir $as_dirs" 22463 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 22464echo "$as_me: error: cannot create directory $as_dir" >&2;} 22465 { (exit 1); exit 1; }; }; } 22466 # echo "creating $dirpart/$file" 22467 echo '# dummy' > "$dirpart/$file" 22468 done 22469done 22470 ;; 22471 22472 esac 22473done # for ac_tag 22474 22475 22476{ (exit 0); exit 0; } 22477_ACEOF 22478chmod +x $CONFIG_STATUS 22479ac_clean_files=$ac_clean_files_save 22480 22481 22482# configure is writing to config.log, and then calls config.status. 22483# config.status does its own redirection, appending to config.log. 22484# Unfortunately, on DOS this fails, as config.log is still kept open 22485# by configure, so config.status won't be able to write to it; its 22486# output is simply discarded. So we exec the FD to /dev/null, 22487# effectively closing config.log, so it can be properly (re)opened and 22488# appended to by config.status. When coming back to configure, we 22489# need to make the FD available again. 22490if test "$no_create" != yes; then 22491 ac_cs_success=: 22492 ac_config_status_args= 22493 test "$silent" = yes && 22494 ac_config_status_args="$ac_config_status_args --quiet" 22495 exec 5>/dev/null 22496 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22497 exec 5>>config.log 22498 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22499 # would make configure fail if this is the last instruction. 22500 $ac_cs_success || { (exit 1); exit 1; } 22501fi 22502 22503