configure revision 8697ee19
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.61 for xf86-video-savage 2.2.1. 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='xf86-video-savage' 730PACKAGE_TARNAME='xf86-video-savage' 731PACKAGE_VERSION='2.2.1' 732PACKAGE_STRING='xf86-video-savage 2.2.1' 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 858SED 859GREP 860EGREP 861LN_S 862ECHO 863AR 864RANLIB 865CPP 866CXX 867CXXFLAGS 868ac_ct_CXX 869CXXDEPMODE 870am__fastdepCXX_TRUE 871am__fastdepCXX_FALSE 872CXXCPP 873F77 874FFLAGS 875ac_ct_F77 876LIBTOOL 877PKG_CONFIG 878XORG_CFLAGS 879XORG_LIBS 880DRI_TRUE 881DRI_FALSE 882DRI_CFLAGS 883DRI_LIBS 884PCIACCESS_CFLAGS 885PCIACCESS_LIBS 886XSERVER_LIBPCIACCESS_TRUE 887XSERVER_LIBPCIACCESS_FALSE 888moduledir 889DRIVER_NAME 890APP_MAN_SUFFIX 891LIB_MAN_SUFFIX 892FILE_MAN_SUFFIX 893MISC_MAN_SUFFIX 894DRIVER_MAN_SUFFIX 895ADMIN_MAN_SUFFIX 896APP_MAN_DIR 897LIB_MAN_DIR 898FILE_MAN_DIR 899MISC_MAN_DIR 900DRIVER_MAN_DIR 901ADMIN_MAN_DIR 902LIBOBJS 903LTLIBOBJS' 904ac_subst_files='' 905 ac_precious_vars='build_alias 906host_alias 907target_alias 908CC 909CFLAGS 910LDFLAGS 911LIBS 912CPPFLAGS 913CPP 914CXX 915CXXFLAGS 916CCC 917CXXCPP 918F77 919FFLAGS 920PKG_CONFIG 921XORG_CFLAGS 922XORG_LIBS 923DRI_CFLAGS 924DRI_LIBS 925PCIACCESS_CFLAGS 926PCIACCESS_LIBS' 927 928 929# Initialize some variables set by options. 930ac_init_help= 931ac_init_version=false 932# The variables have the same names as the options, with 933# dashes changed to underlines. 934cache_file=/dev/null 935exec_prefix=NONE 936no_create= 937no_recursion= 938prefix=NONE 939program_prefix=NONE 940program_suffix=NONE 941program_transform_name=s,x,x, 942silent= 943site= 944srcdir= 945verbose= 946x_includes=NONE 947x_libraries=NONE 948 949# Installation directory options. 950# These are left unexpanded so users can "make install exec_prefix=/foo" 951# and all the variables that are supposed to be based on exec_prefix 952# by default will actually change. 953# Use braces instead of parens because sh, perl, etc. also accept them. 954# (The list follows the same order as the GNU Coding Standards.) 955bindir='${exec_prefix}/bin' 956sbindir='${exec_prefix}/sbin' 957libexecdir='${exec_prefix}/libexec' 958datarootdir='${prefix}/share' 959datadir='${datarootdir}' 960sysconfdir='${prefix}/etc' 961sharedstatedir='${prefix}/com' 962localstatedir='${prefix}/var' 963includedir='${prefix}/include' 964oldincludedir='/usr/include' 965docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 966infodir='${datarootdir}/info' 967htmldir='${docdir}' 968dvidir='${docdir}' 969pdfdir='${docdir}' 970psdir='${docdir}' 971libdir='${exec_prefix}/lib' 972localedir='${datarootdir}/locale' 973mandir='${datarootdir}/man' 974 975ac_prev= 976ac_dashdash= 977for ac_option 978do 979 # If the previous option needs an argument, assign it. 980 if test -n "$ac_prev"; then 981 eval $ac_prev=\$ac_option 982 ac_prev= 983 continue 984 fi 985 986 case $ac_option in 987 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 988 *) ac_optarg=yes ;; 989 esac 990 991 # Accept the important Cygnus configure options, so we can diagnose typos. 992 993 case $ac_dashdash$ac_option in 994 --) 995 ac_dashdash=yes ;; 996 997 -bindir | --bindir | --bindi | --bind | --bin | --bi) 998 ac_prev=bindir ;; 999 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1000 bindir=$ac_optarg ;; 1001 1002 -build | --build | --buil | --bui | --bu) 1003 ac_prev=build_alias ;; 1004 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1005 build_alias=$ac_optarg ;; 1006 1007 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1008 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1009 ac_prev=cache_file ;; 1010 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1011 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1012 cache_file=$ac_optarg ;; 1013 1014 --config-cache | -C) 1015 cache_file=config.cache ;; 1016 1017 -datadir | --datadir | --datadi | --datad) 1018 ac_prev=datadir ;; 1019 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1020 datadir=$ac_optarg ;; 1021 1022 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1023 | --dataroo | --dataro | --datar) 1024 ac_prev=datarootdir ;; 1025 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1026 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1027 datarootdir=$ac_optarg ;; 1028 1029 -disable-* | --disable-*) 1030 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1031 # Reject names that are not valid shell variable names. 1032 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1033 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1034 { (exit 1); exit 1; }; } 1035 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1036 eval enable_$ac_feature=no ;; 1037 1038 -docdir | --docdir | --docdi | --doc | --do) 1039 ac_prev=docdir ;; 1040 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1041 docdir=$ac_optarg ;; 1042 1043 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1044 ac_prev=dvidir ;; 1045 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1046 dvidir=$ac_optarg ;; 1047 1048 -enable-* | --enable-*) 1049 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1050 # Reject names that are not valid shell variable names. 1051 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1052 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1053 { (exit 1); exit 1; }; } 1054 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1055 eval enable_$ac_feature=\$ac_optarg ;; 1056 1057 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1058 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1059 | --exec | --exe | --ex) 1060 ac_prev=exec_prefix ;; 1061 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1062 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1063 | --exec=* | --exe=* | --ex=*) 1064 exec_prefix=$ac_optarg ;; 1065 1066 -gas | --gas | --ga | --g) 1067 # Obsolete; use --with-gas. 1068 with_gas=yes ;; 1069 1070 -help | --help | --hel | --he | -h) 1071 ac_init_help=long ;; 1072 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1073 ac_init_help=recursive ;; 1074 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1075 ac_init_help=short ;; 1076 1077 -host | --host | --hos | --ho) 1078 ac_prev=host_alias ;; 1079 -host=* | --host=* | --hos=* | --ho=*) 1080 host_alias=$ac_optarg ;; 1081 1082 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1083 ac_prev=htmldir ;; 1084 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1085 | --ht=*) 1086 htmldir=$ac_optarg ;; 1087 1088 -includedir | --includedir | --includedi | --included | --include \ 1089 | --includ | --inclu | --incl | --inc) 1090 ac_prev=includedir ;; 1091 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1092 | --includ=* | --inclu=* | --incl=* | --inc=*) 1093 includedir=$ac_optarg ;; 1094 1095 -infodir | --infodir | --infodi | --infod | --info | --inf) 1096 ac_prev=infodir ;; 1097 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1098 infodir=$ac_optarg ;; 1099 1100 -libdir | --libdir | --libdi | --libd) 1101 ac_prev=libdir ;; 1102 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1103 libdir=$ac_optarg ;; 1104 1105 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1106 | --libexe | --libex | --libe) 1107 ac_prev=libexecdir ;; 1108 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1109 | --libexe=* | --libex=* | --libe=*) 1110 libexecdir=$ac_optarg ;; 1111 1112 -localedir | --localedir | --localedi | --localed | --locale) 1113 ac_prev=localedir ;; 1114 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1115 localedir=$ac_optarg ;; 1116 1117 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1118 | --localstate | --localstat | --localsta | --localst | --locals) 1119 ac_prev=localstatedir ;; 1120 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1121 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1122 localstatedir=$ac_optarg ;; 1123 1124 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1125 ac_prev=mandir ;; 1126 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1127 mandir=$ac_optarg ;; 1128 1129 -nfp | --nfp | --nf) 1130 # Obsolete; use --without-fp. 1131 with_fp=no ;; 1132 1133 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1134 | --no-cr | --no-c | -n) 1135 no_create=yes ;; 1136 1137 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1138 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1139 no_recursion=yes ;; 1140 1141 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1142 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1143 | --oldin | --oldi | --old | --ol | --o) 1144 ac_prev=oldincludedir ;; 1145 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1146 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1147 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1148 oldincludedir=$ac_optarg ;; 1149 1150 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1151 ac_prev=prefix ;; 1152 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1153 prefix=$ac_optarg ;; 1154 1155 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1156 | --program-pre | --program-pr | --program-p) 1157 ac_prev=program_prefix ;; 1158 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1159 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1160 program_prefix=$ac_optarg ;; 1161 1162 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1163 | --program-suf | --program-su | --program-s) 1164 ac_prev=program_suffix ;; 1165 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1166 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1167 program_suffix=$ac_optarg ;; 1168 1169 -program-transform-name | --program-transform-name \ 1170 | --program-transform-nam | --program-transform-na \ 1171 | --program-transform-n | --program-transform- \ 1172 | --program-transform | --program-transfor \ 1173 | --program-transfo | --program-transf \ 1174 | --program-trans | --program-tran \ 1175 | --progr-tra | --program-tr | --program-t) 1176 ac_prev=program_transform_name ;; 1177 -program-transform-name=* | --program-transform-name=* \ 1178 | --program-transform-nam=* | --program-transform-na=* \ 1179 | --program-transform-n=* | --program-transform-=* \ 1180 | --program-transform=* | --program-transfor=* \ 1181 | --program-transfo=* | --program-transf=* \ 1182 | --program-trans=* | --program-tran=* \ 1183 | --progr-tra=* | --program-tr=* | --program-t=*) 1184 program_transform_name=$ac_optarg ;; 1185 1186 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1187 ac_prev=pdfdir ;; 1188 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1189 pdfdir=$ac_optarg ;; 1190 1191 -psdir | --psdir | --psdi | --psd | --ps) 1192 ac_prev=psdir ;; 1193 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1194 psdir=$ac_optarg ;; 1195 1196 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1197 | -silent | --silent | --silen | --sile | --sil) 1198 silent=yes ;; 1199 1200 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1201 ac_prev=sbindir ;; 1202 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1203 | --sbi=* | --sb=*) 1204 sbindir=$ac_optarg ;; 1205 1206 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1207 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1208 | --sharedst | --shareds | --shared | --share | --shar \ 1209 | --sha | --sh) 1210 ac_prev=sharedstatedir ;; 1211 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1212 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1213 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1214 | --sha=* | --sh=*) 1215 sharedstatedir=$ac_optarg ;; 1216 1217 -site | --site | --sit) 1218 ac_prev=site ;; 1219 -site=* | --site=* | --sit=*) 1220 site=$ac_optarg ;; 1221 1222 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1223 ac_prev=srcdir ;; 1224 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1225 srcdir=$ac_optarg ;; 1226 1227 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1228 | --syscon | --sysco | --sysc | --sys | --sy) 1229 ac_prev=sysconfdir ;; 1230 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1231 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1232 sysconfdir=$ac_optarg ;; 1233 1234 -target | --target | --targe | --targ | --tar | --ta | --t) 1235 ac_prev=target_alias ;; 1236 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1237 target_alias=$ac_optarg ;; 1238 1239 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1240 verbose=yes ;; 1241 1242 -version | --version | --versio | --versi | --vers | -V) 1243 ac_init_version=: ;; 1244 1245 -with-* | --with-*) 1246 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1247 # Reject names that are not valid shell variable names. 1248 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1249 { echo "$as_me: error: invalid package name: $ac_package" >&2 1250 { (exit 1); exit 1; }; } 1251 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1252 eval with_$ac_package=\$ac_optarg ;; 1253 1254 -without-* | --without-*) 1255 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1256 # Reject names that are not valid shell variable names. 1257 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1258 { echo "$as_me: error: invalid package name: $ac_package" >&2 1259 { (exit 1); exit 1; }; } 1260 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1261 eval with_$ac_package=no ;; 1262 1263 --x) 1264 # Obsolete; use --with-x. 1265 with_x=yes ;; 1266 1267 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1268 | --x-incl | --x-inc | --x-in | --x-i) 1269 ac_prev=x_includes ;; 1270 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1271 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1272 x_includes=$ac_optarg ;; 1273 1274 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1275 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1276 ac_prev=x_libraries ;; 1277 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1278 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1279 x_libraries=$ac_optarg ;; 1280 1281 -*) { echo "$as_me: error: unrecognized option: $ac_option 1282Try \`$0 --help' for more information." >&2 1283 { (exit 1); exit 1; }; } 1284 ;; 1285 1286 *=*) 1287 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1288 # Reject names that are not valid shell variable names. 1289 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1290 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1291 { (exit 1); exit 1; }; } 1292 eval $ac_envvar=\$ac_optarg 1293 export $ac_envvar ;; 1294 1295 *) 1296 # FIXME: should be removed in autoconf 3.0. 1297 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1298 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1299 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1300 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1301 ;; 1302 1303 esac 1304done 1305 1306if test -n "$ac_prev"; then 1307 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1308 { echo "$as_me: error: missing argument to $ac_option" >&2 1309 { (exit 1); exit 1; }; } 1310fi 1311 1312# Be sure to have absolute directory names. 1313for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1314 datadir sysconfdir sharedstatedir localstatedir includedir \ 1315 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1316 libdir localedir mandir 1317do 1318 eval ac_val=\$$ac_var 1319 case $ac_val in 1320 [\\/$]* | ?:[\\/]* ) continue;; 1321 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1322 esac 1323 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1324 { (exit 1); exit 1; }; } 1325done 1326 1327# There might be people who depend on the old broken behavior: `$host' 1328# used to hold the argument of --host etc. 1329# FIXME: To remove some day. 1330build=$build_alias 1331host=$host_alias 1332target=$target_alias 1333 1334# FIXME: To remove some day. 1335if test "x$host_alias" != x; then 1336 if test "x$build_alias" = x; then 1337 cross_compiling=maybe 1338 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1339 If a cross compiler is detected then cross compile mode will be used." >&2 1340 elif test "x$build_alias" != "x$host_alias"; then 1341 cross_compiling=yes 1342 fi 1343fi 1344 1345ac_tool_prefix= 1346test -n "$host_alias" && ac_tool_prefix=$host_alias- 1347 1348test "$silent" = yes && exec 6>/dev/null 1349 1350 1351ac_pwd=`pwd` && test -n "$ac_pwd" && 1352ac_ls_di=`ls -di .` && 1353ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1354 { echo "$as_me: error: Working directory cannot be determined" >&2 1355 { (exit 1); exit 1; }; } 1356test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1357 { echo "$as_me: error: pwd does not report name of working directory" >&2 1358 { (exit 1); exit 1; }; } 1359 1360 1361# Find the source files, if location was not specified. 1362if test -z "$srcdir"; then 1363 ac_srcdir_defaulted=yes 1364 # Try the directory containing this script, then the parent directory. 1365 ac_confdir=`$as_dirname -- "$0" || 1366$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1367 X"$0" : 'X\(//\)[^/]' \| \ 1368 X"$0" : 'X\(//\)$' \| \ 1369 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1370echo X"$0" | 1371 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1372 s//\1/ 1373 q 1374 } 1375 /^X\(\/\/\)[^/].*/{ 1376 s//\1/ 1377 q 1378 } 1379 /^X\(\/\/\)$/{ 1380 s//\1/ 1381 q 1382 } 1383 /^X\(\/\).*/{ 1384 s//\1/ 1385 q 1386 } 1387 s/.*/./; q'` 1388 srcdir=$ac_confdir 1389 if test ! -r "$srcdir/$ac_unique_file"; then 1390 srcdir=.. 1391 fi 1392else 1393 ac_srcdir_defaulted=no 1394fi 1395if test ! -r "$srcdir/$ac_unique_file"; then 1396 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1397 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1398 { (exit 1); exit 1; }; } 1399fi 1400ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1401ac_abs_confdir=`( 1402 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1403 { (exit 1); exit 1; }; } 1404 pwd)` 1405# When building in place, set srcdir=. 1406if test "$ac_abs_confdir" = "$ac_pwd"; then 1407 srcdir=. 1408fi 1409# Remove unnecessary trailing slashes from srcdir. 1410# Double slashes in file names in object file debugging info 1411# mess up M-x gdb in Emacs. 1412case $srcdir in 1413*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1414esac 1415for ac_var in $ac_precious_vars; do 1416 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1417 eval ac_env_${ac_var}_value=\$${ac_var} 1418 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1419 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1420done 1421 1422# 1423# Report the --help message. 1424# 1425if test "$ac_init_help" = "long"; then 1426 # Omit some internal or obsolete options to make the list less imposing. 1427 # This message is too long to be a string in the A/UX 3.1 sh. 1428 cat <<_ACEOF 1429\`configure' configures xf86-video-savage 2.2.1 to adapt to many kinds of systems. 1430 1431Usage: $0 [OPTION]... [VAR=VALUE]... 1432 1433To assign environment variables (e.g., CC, CFLAGS...), specify them as 1434VAR=VALUE. See below for descriptions of some of the useful variables. 1435 1436Defaults for the options are specified in brackets. 1437 1438Configuration: 1439 -h, --help display this help and exit 1440 --help=short display options specific to this package 1441 --help=recursive display the short help of all the included packages 1442 -V, --version display version information and exit 1443 -q, --quiet, --silent do not print \`checking...' messages 1444 --cache-file=FILE cache test results in FILE [disabled] 1445 -C, --config-cache alias for \`--cache-file=config.cache' 1446 -n, --no-create do not create output files 1447 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1448 1449Installation directories: 1450 --prefix=PREFIX install architecture-independent files in PREFIX 1451 [$ac_default_prefix] 1452 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1453 [PREFIX] 1454 1455By default, \`make install' will install all the files in 1456\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1457an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1458for instance \`--prefix=\$HOME'. 1459 1460For better control, use the options below. 1461 1462Fine tuning of the installation directories: 1463 --bindir=DIR user executables [EPREFIX/bin] 1464 --sbindir=DIR system admin executables [EPREFIX/sbin] 1465 --libexecdir=DIR program executables [EPREFIX/libexec] 1466 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1467 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1468 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1469 --libdir=DIR object code libraries [EPREFIX/lib] 1470 --includedir=DIR C header files [PREFIX/include] 1471 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1472 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1473 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1474 --infodir=DIR info documentation [DATAROOTDIR/info] 1475 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1476 --mandir=DIR man documentation [DATAROOTDIR/man] 1477 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-savage] 1478 --htmldir=DIR html documentation [DOCDIR] 1479 --dvidir=DIR dvi documentation [DOCDIR] 1480 --pdfdir=DIR pdf documentation [DOCDIR] 1481 --psdir=DIR ps documentation [DOCDIR] 1482_ACEOF 1483 1484 cat <<\_ACEOF 1485 1486Program names: 1487 --program-prefix=PREFIX prepend PREFIX to installed program names 1488 --program-suffix=SUFFIX append SUFFIX to installed program names 1489 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1490 1491System types: 1492 --build=BUILD configure for building on BUILD [guessed] 1493 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1494_ACEOF 1495fi 1496 1497if test -n "$ac_init_help"; then 1498 case $ac_init_help in 1499 short | recursive ) echo "Configuration of xf86-video-savage 2.2.1:";; 1500 esac 1501 cat <<\_ACEOF 1502 1503Optional Features: 1504 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1505 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1506 --enable-maintainer-mode enable make rules and dependencies not useful 1507 (and sometimes confusing) to the casual installer 1508 --enable-static[=PKGS] build static libraries [default=no] 1509 --enable-shared[=PKGS] build shared libraries [default=yes] 1510 --enable-fast-install[=PKGS] 1511 optimize for fast installation [default=yes] 1512 --disable-dependency-tracking speeds up one-time build 1513 --enable-dependency-tracking do not reject slow dependency extractors 1514 --disable-libtool-lock avoid locking (might break parallel builds) 1515 --disable-dri Disable DRI support [default=auto] 1516 1517Optional Packages: 1518 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1519 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1520 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1521 --with-pic try to use only PIC/non-PIC objects [default=use 1522 both] 1523 --with-tags[=TAGS] include additional configurations [automatic] 1524 --with-xorg-module-dir=DIR 1525 Default xorg module directory 1526 [default=$libdir/xorg/modules] 1527 --with-release-version=STRING 1528 Use release version string in package name 1529 1530Some influential environment variables: 1531 CC C compiler command 1532 CFLAGS C compiler flags 1533 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1534 nonstandard directory <lib dir> 1535 LIBS libraries to pass to the linker, e.g. -l<library> 1536 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1537 you have headers in a nonstandard directory <include dir> 1538 CPP C preprocessor 1539 CXX C++ compiler command 1540 CXXFLAGS C++ compiler flags 1541 CXXCPP C++ preprocessor 1542 F77 Fortran 77 compiler command 1543 FFLAGS Fortran 77 compiler flags 1544 PKG_CONFIG path to pkg-config utility 1545 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1546 XORG_LIBS linker flags for XORG, overriding pkg-config 1547 DRI_CFLAGS C compiler flags for DRI, overriding pkg-config 1548 DRI_LIBS linker flags for DRI, overriding pkg-config 1549 PCIACCESS_CFLAGS 1550 C compiler flags for PCIACCESS, overriding pkg-config 1551 PCIACCESS_LIBS 1552 linker flags for PCIACCESS, overriding pkg-config 1553 1554Use these variables to override the choices made by `configure' or to help 1555it to find libraries and programs with nonstandard names/locations. 1556 1557Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1558_ACEOF 1559ac_status=$? 1560fi 1561 1562if test "$ac_init_help" = "recursive"; then 1563 # If there are subdirs, report their specific --help. 1564 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1565 test -d "$ac_dir" || continue 1566 ac_builddir=. 1567 1568case "$ac_dir" in 1569.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1570*) 1571 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1572 # A ".." for each directory in $ac_dir_suffix. 1573 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1574 case $ac_top_builddir_sub in 1575 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1576 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1577 esac ;; 1578esac 1579ac_abs_top_builddir=$ac_pwd 1580ac_abs_builddir=$ac_pwd$ac_dir_suffix 1581# for backward compatibility: 1582ac_top_builddir=$ac_top_build_prefix 1583 1584case $srcdir in 1585 .) # We are building in place. 1586 ac_srcdir=. 1587 ac_top_srcdir=$ac_top_builddir_sub 1588 ac_abs_top_srcdir=$ac_pwd ;; 1589 [\\/]* | ?:[\\/]* ) # Absolute name. 1590 ac_srcdir=$srcdir$ac_dir_suffix; 1591 ac_top_srcdir=$srcdir 1592 ac_abs_top_srcdir=$srcdir ;; 1593 *) # Relative name. 1594 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1595 ac_top_srcdir=$ac_top_build_prefix$srcdir 1596 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1597esac 1598ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1599 1600 cd "$ac_dir" || { ac_status=$?; continue; } 1601 # Check for guested configure. 1602 if test -f "$ac_srcdir/configure.gnu"; then 1603 echo && 1604 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1605 elif test -f "$ac_srcdir/configure"; then 1606 echo && 1607 $SHELL "$ac_srcdir/configure" --help=recursive 1608 else 1609 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1610 fi || ac_status=$? 1611 cd "$ac_pwd" || { ac_status=$?; break; } 1612 done 1613fi 1614 1615test -n "$ac_init_help" && exit $ac_status 1616if $ac_init_version; then 1617 cat <<\_ACEOF 1618xf86-video-savage configure 2.2.1 1619generated by GNU Autoconf 2.61 1620 1621Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 16222002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1623This configure script is free software; the Free Software Foundation 1624gives unlimited permission to copy, distribute and modify it. 1625_ACEOF 1626 exit 1627fi 1628cat >config.log <<_ACEOF 1629This file contains any messages produced by compilers while 1630running configure, to aid debugging if configure makes a mistake. 1631 1632It was created by xf86-video-savage $as_me 2.2.1, which was 1633generated by GNU Autoconf 2.61. Invocation command line was 1634 1635 $ $0 $@ 1636 1637_ACEOF 1638exec 5>>config.log 1639{ 1640cat <<_ASUNAME 1641## --------- ## 1642## Platform. ## 1643## --------- ## 1644 1645hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1646uname -m = `(uname -m) 2>/dev/null || echo unknown` 1647uname -r = `(uname -r) 2>/dev/null || echo unknown` 1648uname -s = `(uname -s) 2>/dev/null || echo unknown` 1649uname -v = `(uname -v) 2>/dev/null || echo unknown` 1650 1651/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1652/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1653 1654/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1655/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1656/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1657/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1658/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1659/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1660/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1661 1662_ASUNAME 1663 1664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1665for as_dir in $PATH 1666do 1667 IFS=$as_save_IFS 1668 test -z "$as_dir" && as_dir=. 1669 echo "PATH: $as_dir" 1670done 1671IFS=$as_save_IFS 1672 1673} >&5 1674 1675cat >&5 <<_ACEOF 1676 1677 1678## ----------- ## 1679## Core tests. ## 1680## ----------- ## 1681 1682_ACEOF 1683 1684 1685# Keep a trace of the command line. 1686# Strip out --no-create and --no-recursion so they do not pile up. 1687# Strip out --silent because we don't want to record it for future runs. 1688# Also quote any args containing shell meta-characters. 1689# Make two passes to allow for proper duplicate-argument suppression. 1690ac_configure_args= 1691ac_configure_args0= 1692ac_configure_args1= 1693ac_must_keep_next=false 1694for ac_pass in 1 2 1695do 1696 for ac_arg 1697 do 1698 case $ac_arg in 1699 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1700 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1701 | -silent | --silent | --silen | --sile | --sil) 1702 continue ;; 1703 *\'*) 1704 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1705 esac 1706 case $ac_pass in 1707 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1708 2) 1709 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1710 if test $ac_must_keep_next = true; then 1711 ac_must_keep_next=false # Got value, back to normal. 1712 else 1713 case $ac_arg in 1714 *=* | --config-cache | -C | -disable-* | --disable-* \ 1715 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1716 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1717 | -with-* | --with-* | -without-* | --without-* | --x) 1718 case "$ac_configure_args0 " in 1719 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1720 esac 1721 ;; 1722 -* ) ac_must_keep_next=true ;; 1723 esac 1724 fi 1725 ac_configure_args="$ac_configure_args '$ac_arg'" 1726 ;; 1727 esac 1728 done 1729done 1730$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1731$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1732 1733# When interrupted or exit'd, cleanup temporary files, and complete 1734# config.log. We remove comments because anyway the quotes in there 1735# would cause problems or look ugly. 1736# WARNING: Use '\'' to represent an apostrophe within the trap. 1737# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1738trap 'exit_status=$? 1739 # Save into config.log some information that might help in debugging. 1740 { 1741 echo 1742 1743 cat <<\_ASBOX 1744## ---------------- ## 1745## Cache variables. ## 1746## ---------------- ## 1747_ASBOX 1748 echo 1749 # The following way of writing the cache mishandles newlines in values, 1750( 1751 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1752 eval ac_val=\$$ac_var 1753 case $ac_val in #( 1754 *${as_nl}*) 1755 case $ac_var in #( 1756 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1757echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1758 esac 1759 case $ac_var in #( 1760 _ | IFS | as_nl) ;; #( 1761 *) $as_unset $ac_var ;; 1762 esac ;; 1763 esac 1764 done 1765 (set) 2>&1 | 1766 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1767 *${as_nl}ac_space=\ *) 1768 sed -n \ 1769 "s/'\''/'\''\\\\'\'''\''/g; 1770 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1771 ;; #( 1772 *) 1773 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1774 ;; 1775 esac | 1776 sort 1777) 1778 echo 1779 1780 cat <<\_ASBOX 1781## ----------------- ## 1782## Output variables. ## 1783## ----------------- ## 1784_ASBOX 1785 echo 1786 for ac_var in $ac_subst_vars 1787 do 1788 eval ac_val=\$$ac_var 1789 case $ac_val in 1790 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1791 esac 1792 echo "$ac_var='\''$ac_val'\''" 1793 done | sort 1794 echo 1795 1796 if test -n "$ac_subst_files"; then 1797 cat <<\_ASBOX 1798## ------------------- ## 1799## File substitutions. ## 1800## ------------------- ## 1801_ASBOX 1802 echo 1803 for ac_var in $ac_subst_files 1804 do 1805 eval ac_val=\$$ac_var 1806 case $ac_val in 1807 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1808 esac 1809 echo "$ac_var='\''$ac_val'\''" 1810 done | sort 1811 echo 1812 fi 1813 1814 if test -s confdefs.h; then 1815 cat <<\_ASBOX 1816## ----------- ## 1817## confdefs.h. ## 1818## ----------- ## 1819_ASBOX 1820 echo 1821 cat confdefs.h 1822 echo 1823 fi 1824 test "$ac_signal" != 0 && 1825 echo "$as_me: caught signal $ac_signal" 1826 echo "$as_me: exit $exit_status" 1827 } >&5 1828 rm -f core *.core core.conftest.* && 1829 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1830 exit $exit_status 1831' 0 1832for ac_signal in 1 2 13 15; do 1833 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1834done 1835ac_signal=0 1836 1837# confdefs.h avoids OS command line length limits that DEFS can exceed. 1838rm -f -r conftest* confdefs.h 1839 1840# Predefined preprocessor variables. 1841 1842cat >>confdefs.h <<_ACEOF 1843#define PACKAGE_NAME "$PACKAGE_NAME" 1844_ACEOF 1845 1846 1847cat >>confdefs.h <<_ACEOF 1848#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1849_ACEOF 1850 1851 1852cat >>confdefs.h <<_ACEOF 1853#define PACKAGE_VERSION "$PACKAGE_VERSION" 1854_ACEOF 1855 1856 1857cat >>confdefs.h <<_ACEOF 1858#define PACKAGE_STRING "$PACKAGE_STRING" 1859_ACEOF 1860 1861 1862cat >>confdefs.h <<_ACEOF 1863#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1864_ACEOF 1865 1866 1867# Let the site file select an alternate cache file if it wants to. 1868# Prefer explicitly selected file to automatically selected ones. 1869if test -n "$CONFIG_SITE"; then 1870 set x "$CONFIG_SITE" 1871elif test "x$prefix" != xNONE; then 1872 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1873else 1874 set x "$ac_default_prefix/share/config.site" \ 1875 "$ac_default_prefix/etc/config.site" 1876fi 1877shift 1878for ac_site_file 1879do 1880 if test -r "$ac_site_file"; then 1881 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1882echo "$as_me: loading site script $ac_site_file" >&6;} 1883 sed 's/^/| /' "$ac_site_file" >&5 1884 . "$ac_site_file" 1885 fi 1886done 1887 1888if test -r "$cache_file"; then 1889 # Some versions of bash will fail to source /dev/null (special 1890 # files actually), so we avoid doing that. 1891 if test -f "$cache_file"; then 1892 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1893echo "$as_me: loading cache $cache_file" >&6;} 1894 case $cache_file in 1895 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1896 *) . "./$cache_file";; 1897 esac 1898 fi 1899else 1900 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1901echo "$as_me: creating cache $cache_file" >&6;} 1902 >$cache_file 1903fi 1904 1905# Check that the precious variables saved in the cache have kept the same 1906# value. 1907ac_cache_corrupted=false 1908for ac_var in $ac_precious_vars; do 1909 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1910 eval ac_new_set=\$ac_env_${ac_var}_set 1911 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1912 eval ac_new_val=\$ac_env_${ac_var}_value 1913 case $ac_old_set,$ac_new_set in 1914 set,) 1915 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1916echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1917 ac_cache_corrupted=: ;; 1918 ,set) 1919 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1920echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1921 ac_cache_corrupted=: ;; 1922 ,);; 1923 *) 1924 if test "x$ac_old_val" != "x$ac_new_val"; then 1925 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1926echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1927 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1928echo "$as_me: former value: $ac_old_val" >&2;} 1929 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1930echo "$as_me: current value: $ac_new_val" >&2;} 1931 ac_cache_corrupted=: 1932 fi;; 1933 esac 1934 # Pass precious variables to config.status. 1935 if test "$ac_new_set" = set; then 1936 case $ac_new_val in 1937 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1938 *) ac_arg=$ac_var=$ac_new_val ;; 1939 esac 1940 case " $ac_configure_args " in 1941 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1942 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1943 esac 1944 fi 1945done 1946if $ac_cache_corrupted; then 1947 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1948echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1949 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1950echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1951 { (exit 1); exit 1; }; } 1952fi 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978ac_ext=c 1979ac_cpp='$CPP $CPPFLAGS' 1980ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1981ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1982ac_compiler_gnu=$ac_cv_c_compiler_gnu 1983 1984 1985 1986 1987ac_config_headers="$ac_config_headers config.h" 1988 1989ac_aux_dir= 1990for ac_dir in . "$srcdir"/.; do 1991 if test -f "$ac_dir/install-sh"; then 1992 ac_aux_dir=$ac_dir 1993 ac_install_sh="$ac_aux_dir/install-sh -c" 1994 break 1995 elif test -f "$ac_dir/install.sh"; then 1996 ac_aux_dir=$ac_dir 1997 ac_install_sh="$ac_aux_dir/install.sh -c" 1998 break 1999 elif test -f "$ac_dir/shtool"; then 2000 ac_aux_dir=$ac_dir 2001 ac_install_sh="$ac_aux_dir/shtool install -c" 2002 break 2003 fi 2004done 2005if test -z "$ac_aux_dir"; then 2006 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5 2007echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;} 2008 { (exit 1); exit 1; }; } 2009fi 2010 2011# These three variables are undocumented and unsupported, 2012# and are intended to be withdrawn in a future Autoconf release. 2013# They can cause serious problems if a builder's source tree is in a directory 2014# whose full name contains unusual characters. 2015ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2016ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2017ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2018 2019 2020 2021am__api_version='1.10' 2022 2023# Find a good install program. We prefer a C program (faster), 2024# so one script is as good as another. But avoid the broken or 2025# incompatible versions: 2026# SysV /etc/install, /usr/sbin/install 2027# SunOS /usr/etc/install 2028# IRIX /sbin/install 2029# AIX /bin/install 2030# AmigaOS /C/install, which installs bootblocks on floppy discs 2031# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2032# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2033# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2034# OS/2's system install, which has a completely different semantic 2035# ./install, which can be erroneously created by make from ./install.sh. 2036{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2037echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 2038if test -z "$INSTALL"; then 2039if test "${ac_cv_path_install+set}" = set; then 2040 echo $ECHO_N "(cached) $ECHO_C" >&6 2041else 2042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2043for as_dir in $PATH 2044do 2045 IFS=$as_save_IFS 2046 test -z "$as_dir" && as_dir=. 2047 # Account for people who put trailing slashes in PATH elements. 2048case $as_dir/ in 2049 ./ | .// | /cC/* | \ 2050 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2051 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2052 /usr/ucb/* ) ;; 2053 *) 2054 # OSF1 and SCO ODT 3.0 have their own names for install. 2055 # Don't use installbsd from OSF since it installs stuff as root 2056 # by default. 2057 for ac_prog in ginstall scoinst install; do 2058 for ac_exec_ext in '' $ac_executable_extensions; do 2059 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2060 if test $ac_prog = install && 2061 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2062 # AIX install. It has an incompatible calling convention. 2063 : 2064 elif test $ac_prog = install && 2065 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2066 # program-specific install script used by HP pwplus--don't use. 2067 : 2068 else 2069 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2070 break 3 2071 fi 2072 fi 2073 done 2074 done 2075 ;; 2076esac 2077done 2078IFS=$as_save_IFS 2079 2080 2081fi 2082 if test "${ac_cv_path_install+set}" = set; then 2083 INSTALL=$ac_cv_path_install 2084 else 2085 # As a last resort, use the slow shell script. Don't cache a 2086 # value for INSTALL within a source directory, because that will 2087 # break other packages using the cache if that directory is 2088 # removed, or if the value is a relative name. 2089 INSTALL=$ac_install_sh 2090 fi 2091fi 2092{ echo "$as_me:$LINENO: result: $INSTALL" >&5 2093echo "${ECHO_T}$INSTALL" >&6; } 2094 2095# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2096# It thinks the first close brace ends the variable substitution. 2097test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2098 2099test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2100 2101test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2102 2103{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2104echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 2105# Just in case 2106sleep 1 2107echo timestamp > conftest.file 2108# Do `set' in a subshell so we don't clobber the current shell's 2109# arguments. Must try -L first in case configure is actually a 2110# symlink; some systems play weird games with the mod time of symlinks 2111# (eg FreeBSD returns the mod time of the symlink's containing 2112# directory). 2113if ( 2114 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2115 if test "$*" = "X"; then 2116 # -L didn't work. 2117 set X `ls -t $srcdir/configure conftest.file` 2118 fi 2119 rm -f conftest.file 2120 if test "$*" != "X $srcdir/configure conftest.file" \ 2121 && test "$*" != "X conftest.file $srcdir/configure"; then 2122 2123 # If neither matched, then we have a broken ls. This can happen 2124 # if, for instance, CONFIG_SHELL is bash and it inherits a 2125 # broken ls alias from the environment. This has actually 2126 # happened. Such a system could not be considered "sane". 2127 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2128alias in your environment" >&5 2129echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2130alias in your environment" >&2;} 2131 { (exit 1); exit 1; }; } 2132 fi 2133 2134 test "$2" = conftest.file 2135 ) 2136then 2137 # Ok. 2138 : 2139else 2140 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2141Check your system clock" >&5 2142echo "$as_me: error: newly created file is older than distributed files! 2143Check your system clock" >&2;} 2144 { (exit 1); exit 1; }; } 2145fi 2146{ echo "$as_me:$LINENO: result: yes" >&5 2147echo "${ECHO_T}yes" >&6; } 2148test "$program_prefix" != NONE && 2149 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2150# Use a double $ so make ignores it. 2151test "$program_suffix" != NONE && 2152 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2153# Double any \ or $. echo might interpret backslashes. 2154# By default was `s,x,x', remove it if useless. 2155cat <<\_ACEOF >conftest.sed 2156s/[\\$]/&&/g;s/;s,x,x,$// 2157_ACEOF 2158program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2159rm -f conftest.sed 2160 2161# expand $ac_aux_dir to an absolute path 2162am_aux_dir=`cd $ac_aux_dir && pwd` 2163 2164test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2165# Use eval to expand $SHELL 2166if eval "$MISSING --run true"; then 2167 am_missing_run="$MISSING --run " 2168else 2169 am_missing_run= 2170 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2171echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2172fi 2173 2174{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2175echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } 2176if test -z "$MKDIR_P"; then 2177 if test "${ac_cv_path_mkdir+set}" = set; then 2178 echo $ECHO_N "(cached) $ECHO_C" >&6 2179else 2180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2181for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2182do 2183 IFS=$as_save_IFS 2184 test -z "$as_dir" && as_dir=. 2185 for ac_prog in mkdir gmkdir; do 2186 for ac_exec_ext in '' $ac_executable_extensions; do 2187 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2188 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2189 'mkdir (GNU coreutils) '* | \ 2190 'mkdir (coreutils) '* | \ 2191 'mkdir (fileutils) '4.1*) 2192 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2193 break 3;; 2194 esac 2195 done 2196 done 2197done 2198IFS=$as_save_IFS 2199 2200fi 2201 2202 if test "${ac_cv_path_mkdir+set}" = set; then 2203 MKDIR_P="$ac_cv_path_mkdir -p" 2204 else 2205 # As a last resort, use the slow shell script. Don't cache a 2206 # value for MKDIR_P within a source directory, because that will 2207 # break other packages using the cache if that directory is 2208 # removed, or if the value is a relative name. 2209 test -d ./--version && rmdir ./--version 2210 MKDIR_P="$ac_install_sh -d" 2211 fi 2212fi 2213{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2214echo "${ECHO_T}$MKDIR_P" >&6; } 2215 2216mkdir_p="$MKDIR_P" 2217case $mkdir_p in 2218 [\\/$]* | ?:[\\/]*) ;; 2219 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2220esac 2221 2222for ac_prog in gawk mawk nawk awk 2223do 2224 # Extract the first word of "$ac_prog", so it can be a program name with args. 2225set dummy $ac_prog; ac_word=$2 2226{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2227echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2228if test "${ac_cv_prog_AWK+set}" = set; then 2229 echo $ECHO_N "(cached) $ECHO_C" >&6 2230else 2231 if test -n "$AWK"; then 2232 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2233else 2234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2235for as_dir in $PATH 2236do 2237 IFS=$as_save_IFS 2238 test -z "$as_dir" && as_dir=. 2239 for ac_exec_ext in '' $ac_executable_extensions; do 2240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2241 ac_cv_prog_AWK="$ac_prog" 2242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2243 break 2 2244 fi 2245done 2246done 2247IFS=$as_save_IFS 2248 2249fi 2250fi 2251AWK=$ac_cv_prog_AWK 2252if test -n "$AWK"; then 2253 { echo "$as_me:$LINENO: result: $AWK" >&5 2254echo "${ECHO_T}$AWK" >&6; } 2255else 2256 { echo "$as_me:$LINENO: result: no" >&5 2257echo "${ECHO_T}no" >&6; } 2258fi 2259 2260 2261 test -n "$AWK" && break 2262done 2263 2264{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2265echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2266set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2267if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2268 echo $ECHO_N "(cached) $ECHO_C" >&6 2269else 2270 cat >conftest.make <<\_ACEOF 2271SHELL = /bin/sh 2272all: 2273 @echo '@@@%%%=$(MAKE)=@@@%%%' 2274_ACEOF 2275# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2276case `${MAKE-make} -f conftest.make 2>/dev/null` in 2277 *@@@%%%=?*=@@@%%%*) 2278 eval ac_cv_prog_make_${ac_make}_set=yes;; 2279 *) 2280 eval ac_cv_prog_make_${ac_make}_set=no;; 2281esac 2282rm -f conftest.make 2283fi 2284if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2285 { echo "$as_me:$LINENO: result: yes" >&5 2286echo "${ECHO_T}yes" >&6; } 2287 SET_MAKE= 2288else 2289 { echo "$as_me:$LINENO: result: no" >&5 2290echo "${ECHO_T}no" >&6; } 2291 SET_MAKE="MAKE=${MAKE-make}" 2292fi 2293 2294rm -rf .tst 2>/dev/null 2295mkdir .tst 2>/dev/null 2296if test -d .tst; then 2297 am__leading_dot=. 2298else 2299 am__leading_dot=_ 2300fi 2301rmdir .tst 2>/dev/null 2302 2303if test "`cd $srcdir && pwd`" != "`pwd`"; then 2304 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2305 # is not polluted with repeated "-I." 2306 am__isrc=' -I$(srcdir)' 2307 # test to see if srcdir already configured 2308 if test -f $srcdir/config.status; then 2309 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2310echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2311 { (exit 1); exit 1; }; } 2312 fi 2313fi 2314 2315# test whether we have cygpath 2316if test -z "$CYGPATH_W"; then 2317 if (cygpath --version) >/dev/null 2>/dev/null; then 2318 CYGPATH_W='cygpath -w' 2319 else 2320 CYGPATH_W=echo 2321 fi 2322fi 2323 2324 2325# Define the identity of the package. 2326 PACKAGE='xf86-video-savage' 2327 VERSION='2.2.1' 2328 2329 2330cat >>confdefs.h <<_ACEOF 2331#define PACKAGE "$PACKAGE" 2332_ACEOF 2333 2334 2335cat >>confdefs.h <<_ACEOF 2336#define VERSION "$VERSION" 2337_ACEOF 2338 2339# Some tools Automake needs. 2340 2341ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2342 2343 2344AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2345 2346 2347AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2348 2349 2350AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2351 2352 2353MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2354 2355install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2356 2357# Installed binaries are usually stripped using `strip' when the user 2358# run `make install-strip'. However `strip' might not be the right 2359# tool to use in cross-compilation environments, therefore Automake 2360# will honor the `STRIP' environment variable to overrule this program. 2361if test "$cross_compiling" != no; then 2362 if test -n "$ac_tool_prefix"; then 2363 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2364set dummy ${ac_tool_prefix}strip; ac_word=$2 2365{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2366echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2367if test "${ac_cv_prog_STRIP+set}" = set; then 2368 echo $ECHO_N "(cached) $ECHO_C" >&6 2369else 2370 if test -n "$STRIP"; then 2371 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2372else 2373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2374for as_dir in $PATH 2375do 2376 IFS=$as_save_IFS 2377 test -z "$as_dir" && as_dir=. 2378 for ac_exec_ext in '' $ac_executable_extensions; do 2379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2380 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2382 break 2 2383 fi 2384done 2385done 2386IFS=$as_save_IFS 2387 2388fi 2389fi 2390STRIP=$ac_cv_prog_STRIP 2391if test -n "$STRIP"; then 2392 { echo "$as_me:$LINENO: result: $STRIP" >&5 2393echo "${ECHO_T}$STRIP" >&6; } 2394else 2395 { echo "$as_me:$LINENO: result: no" >&5 2396echo "${ECHO_T}no" >&6; } 2397fi 2398 2399 2400fi 2401if test -z "$ac_cv_prog_STRIP"; then 2402 ac_ct_STRIP=$STRIP 2403 # Extract the first word of "strip", so it can be a program name with args. 2404set dummy strip; ac_word=$2 2405{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2406echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2407if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2408 echo $ECHO_N "(cached) $ECHO_C" >&6 2409else 2410 if test -n "$ac_ct_STRIP"; then 2411 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2412else 2413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2414for as_dir in $PATH 2415do 2416 IFS=$as_save_IFS 2417 test -z "$as_dir" && as_dir=. 2418 for ac_exec_ext in '' $ac_executable_extensions; do 2419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2420 ac_cv_prog_ac_ct_STRIP="strip" 2421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2422 break 2 2423 fi 2424done 2425done 2426IFS=$as_save_IFS 2427 2428fi 2429fi 2430ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2431if test -n "$ac_ct_STRIP"; then 2432 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2433echo "${ECHO_T}$ac_ct_STRIP" >&6; } 2434else 2435 { echo "$as_me:$LINENO: result: no" >&5 2436echo "${ECHO_T}no" >&6; } 2437fi 2438 2439 if test "x$ac_ct_STRIP" = x; then 2440 STRIP=":" 2441 else 2442 case $cross_compiling:$ac_tool_warned in 2443yes:) 2444{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2445whose name does not start with the host triplet. If you think this 2446configuration is useful to you, please write to autoconf@gnu.org." >&5 2447echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2448whose name does not start with the host triplet. If you think this 2449configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2450ac_tool_warned=yes ;; 2451esac 2452 STRIP=$ac_ct_STRIP 2453 fi 2454else 2455 STRIP="$ac_cv_prog_STRIP" 2456fi 2457 2458fi 2459INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2460 2461# We need awk for the "check" target. The system "awk" is bad on 2462# some platforms. 2463# Always define AMTAR for backward compatibility. 2464 2465AMTAR=${AMTAR-"${am_missing_run}tar"} 2466 2467am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2468 2469 2470 2471 2472 2473 2474{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 2475echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; } 2476 # Check whether --enable-maintainer-mode was given. 2477if test "${enable_maintainer_mode+set}" = set; then 2478 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2479else 2480 USE_MAINTAINER_MODE=no 2481fi 2482 2483 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 2484echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; } 2485 if test $USE_MAINTAINER_MODE = yes; then 2486 MAINTAINER_MODE_TRUE= 2487 MAINTAINER_MODE_FALSE='#' 2488else 2489 MAINTAINER_MODE_TRUE='#' 2490 MAINTAINER_MODE_FALSE= 2491fi 2492 2493 MAINT=$MAINTAINER_MODE_TRUE 2494 2495 2496 2497# Checks for programs. 2498# Check whether --enable-static was given. 2499if test "${enable_static+set}" = set; then 2500 enableval=$enable_static; p=${PACKAGE-default} 2501 case $enableval in 2502 yes) enable_static=yes ;; 2503 no) enable_static=no ;; 2504 *) 2505 enable_static=no 2506 # Look at the argument we got. We use all the common list separators. 2507 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2508 for pkg in $enableval; do 2509 IFS="$lt_save_ifs" 2510 if test "X$pkg" = "X$p"; then 2511 enable_static=yes 2512 fi 2513 done 2514 IFS="$lt_save_ifs" 2515 ;; 2516 esac 2517else 2518 enable_static=no 2519fi 2520 2521 2522 2523# Check whether --enable-shared was given. 2524if test "${enable_shared+set}" = set; then 2525 enableval=$enable_shared; p=${PACKAGE-default} 2526 case $enableval in 2527 yes) enable_shared=yes ;; 2528 no) enable_shared=no ;; 2529 *) 2530 enable_shared=no 2531 # Look at the argument we got. We use all the common list separators. 2532 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2533 for pkg in $enableval; do 2534 IFS="$lt_save_ifs" 2535 if test "X$pkg" = "X$p"; then 2536 enable_shared=yes 2537 fi 2538 done 2539 IFS="$lt_save_ifs" 2540 ;; 2541 esac 2542else 2543 enable_shared=yes 2544fi 2545 2546 2547# Check whether --enable-fast-install was given. 2548if test "${enable_fast_install+set}" = set; then 2549 enableval=$enable_fast_install; p=${PACKAGE-default} 2550 case $enableval in 2551 yes) enable_fast_install=yes ;; 2552 no) enable_fast_install=no ;; 2553 *) 2554 enable_fast_install=no 2555 # Look at the argument we got. We use all the common list separators. 2556 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2557 for pkg in $enableval; do 2558 IFS="$lt_save_ifs" 2559 if test "X$pkg" = "X$p"; then 2560 enable_fast_install=yes 2561 fi 2562 done 2563 IFS="$lt_save_ifs" 2564 ;; 2565 esac 2566else 2567 enable_fast_install=yes 2568fi 2569 2570 2571# Make sure we can run config.sub. 2572$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2573 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 2574echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 2575 { (exit 1); exit 1; }; } 2576 2577{ echo "$as_me:$LINENO: checking build system type" >&5 2578echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 2579if test "${ac_cv_build+set}" = set; then 2580 echo $ECHO_N "(cached) $ECHO_C" >&6 2581else 2582 ac_build_alias=$build_alias 2583test "x$ac_build_alias" = x && 2584 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2585test "x$ac_build_alias" = x && 2586 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2587echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2588 { (exit 1); exit 1; }; } 2589ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2590 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 2591echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2592 { (exit 1); exit 1; }; } 2593 2594fi 2595{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2596echo "${ECHO_T}$ac_cv_build" >&6; } 2597case $ac_cv_build in 2598*-*-*) ;; 2599*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2600echo "$as_me: error: invalid value of canonical build" >&2;} 2601 { (exit 1); exit 1; }; };; 2602esac 2603build=$ac_cv_build 2604ac_save_IFS=$IFS; IFS='-' 2605set x $ac_cv_build 2606shift 2607build_cpu=$1 2608build_vendor=$2 2609shift; shift 2610# Remember, the first character of IFS is used to create $*, 2611# except with old shells: 2612build_os=$* 2613IFS=$ac_save_IFS 2614case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2615 2616 2617{ echo "$as_me:$LINENO: checking host system type" >&5 2618echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 2619if test "${ac_cv_host+set}" = set; then 2620 echo $ECHO_N "(cached) $ECHO_C" >&6 2621else 2622 if test "x$host_alias" = x; then 2623 ac_cv_host=$ac_cv_build 2624else 2625 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2626 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2627echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2628 { (exit 1); exit 1; }; } 2629fi 2630 2631fi 2632{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2633echo "${ECHO_T}$ac_cv_host" >&6; } 2634case $ac_cv_host in 2635*-*-*) ;; 2636*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2637echo "$as_me: error: invalid value of canonical host" >&2;} 2638 { (exit 1); exit 1; }; };; 2639esac 2640host=$ac_cv_host 2641ac_save_IFS=$IFS; IFS='-' 2642set x $ac_cv_host 2643shift 2644host_cpu=$1 2645host_vendor=$2 2646shift; shift 2647# Remember, the first character of IFS is used to create $*, 2648# except with old shells: 2649host_os=$* 2650IFS=$ac_save_IFS 2651case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2652 2653 2654DEPDIR="${am__leading_dot}deps" 2655 2656ac_config_commands="$ac_config_commands depfiles" 2657 2658 2659am_make=${MAKE-make} 2660cat > confinc << 'END' 2661am__doit: 2662 @echo done 2663.PHONY: am__doit 2664END 2665# If we don't find an include directive, just comment out the code. 2666{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2667echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 2668am__include="#" 2669am__quote= 2670_am_result=none 2671# First try GNU make style include. 2672echo "include confinc" > confmf 2673# We grep out `Entering directory' and `Leaving directory' 2674# messages which can occur if `w' ends up in MAKEFLAGS. 2675# In particular we don't look at `^make:' because GNU make might 2676# be invoked under some other name (usually "gmake"), in which 2677# case it prints its new name instead of `make'. 2678if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2679 am__include=include 2680 am__quote= 2681 _am_result=GNU 2682fi 2683# Now try BSD make style include. 2684if test "$am__include" = "#"; then 2685 echo '.include "confinc"' > confmf 2686 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2687 am__include=.include 2688 am__quote="\"" 2689 _am_result=BSD 2690 fi 2691fi 2692 2693 2694{ echo "$as_me:$LINENO: result: $_am_result" >&5 2695echo "${ECHO_T}$_am_result" >&6; } 2696rm -f confinc confmf 2697 2698# Check whether --enable-dependency-tracking was given. 2699if test "${enable_dependency_tracking+set}" = set; then 2700 enableval=$enable_dependency_tracking; 2701fi 2702 2703if test "x$enable_dependency_tracking" != xno; then 2704 am_depcomp="$ac_aux_dir/depcomp" 2705 AMDEPBACKSLASH='\' 2706fi 2707 if test "x$enable_dependency_tracking" != xno; then 2708 AMDEP_TRUE= 2709 AMDEP_FALSE='#' 2710else 2711 AMDEP_TRUE='#' 2712 AMDEP_FALSE= 2713fi 2714 2715 2716ac_ext=c 2717ac_cpp='$CPP $CPPFLAGS' 2718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2720ac_compiler_gnu=$ac_cv_c_compiler_gnu 2721if test -n "$ac_tool_prefix"; then 2722 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2723set dummy ${ac_tool_prefix}gcc; ac_word=$2 2724{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2725echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2726if test "${ac_cv_prog_CC+set}" = set; then 2727 echo $ECHO_N "(cached) $ECHO_C" >&6 2728else 2729 if test -n "$CC"; then 2730 ac_cv_prog_CC="$CC" # Let the user override the test. 2731else 2732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2733for as_dir in $PATH 2734do 2735 IFS=$as_save_IFS 2736 test -z "$as_dir" && as_dir=. 2737 for ac_exec_ext in '' $ac_executable_extensions; do 2738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2739 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2741 break 2 2742 fi 2743done 2744done 2745IFS=$as_save_IFS 2746 2747fi 2748fi 2749CC=$ac_cv_prog_CC 2750if test -n "$CC"; then 2751 { echo "$as_me:$LINENO: result: $CC" >&5 2752echo "${ECHO_T}$CC" >&6; } 2753else 2754 { echo "$as_me:$LINENO: result: no" >&5 2755echo "${ECHO_T}no" >&6; } 2756fi 2757 2758 2759fi 2760if test -z "$ac_cv_prog_CC"; then 2761 ac_ct_CC=$CC 2762 # Extract the first word of "gcc", so it can be a program name with args. 2763set dummy gcc; ac_word=$2 2764{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2765echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2766if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2767 echo $ECHO_N "(cached) $ECHO_C" >&6 2768else 2769 if test -n "$ac_ct_CC"; then 2770 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2771else 2772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2773for as_dir in $PATH 2774do 2775 IFS=$as_save_IFS 2776 test -z "$as_dir" && as_dir=. 2777 for ac_exec_ext in '' $ac_executable_extensions; do 2778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2779 ac_cv_prog_ac_ct_CC="gcc" 2780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2781 break 2 2782 fi 2783done 2784done 2785IFS=$as_save_IFS 2786 2787fi 2788fi 2789ac_ct_CC=$ac_cv_prog_ac_ct_CC 2790if test -n "$ac_ct_CC"; then 2791 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2792echo "${ECHO_T}$ac_ct_CC" >&6; } 2793else 2794 { echo "$as_me:$LINENO: result: no" >&5 2795echo "${ECHO_T}no" >&6; } 2796fi 2797 2798 if test "x$ac_ct_CC" = x; then 2799 CC="" 2800 else 2801 case $cross_compiling:$ac_tool_warned in 2802yes:) 2803{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2804whose name does not start with the host triplet. If you think this 2805configuration is useful to you, please write to autoconf@gnu.org." >&5 2806echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2807whose name does not start with the host triplet. If you think this 2808configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2809ac_tool_warned=yes ;; 2810esac 2811 CC=$ac_ct_CC 2812 fi 2813else 2814 CC="$ac_cv_prog_CC" 2815fi 2816 2817if test -z "$CC"; then 2818 if test -n "$ac_tool_prefix"; then 2819 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2820set dummy ${ac_tool_prefix}cc; ac_word=$2 2821{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2823if test "${ac_cv_prog_CC+set}" = set; then 2824 echo $ECHO_N "(cached) $ECHO_C" >&6 2825else 2826 if test -n "$CC"; then 2827 ac_cv_prog_CC="$CC" # Let the user override the test. 2828else 2829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2830for as_dir in $PATH 2831do 2832 IFS=$as_save_IFS 2833 test -z "$as_dir" && as_dir=. 2834 for ac_exec_ext in '' $ac_executable_extensions; do 2835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2836 ac_cv_prog_CC="${ac_tool_prefix}cc" 2837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2838 break 2 2839 fi 2840done 2841done 2842IFS=$as_save_IFS 2843 2844fi 2845fi 2846CC=$ac_cv_prog_CC 2847if test -n "$CC"; then 2848 { echo "$as_me:$LINENO: result: $CC" >&5 2849echo "${ECHO_T}$CC" >&6; } 2850else 2851 { echo "$as_me:$LINENO: result: no" >&5 2852echo "${ECHO_T}no" >&6; } 2853fi 2854 2855 2856 fi 2857fi 2858if test -z "$CC"; then 2859 # Extract the first word of "cc", so it can be a program name with args. 2860set dummy cc; ac_word=$2 2861{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2862echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2863if test "${ac_cv_prog_CC+set}" = set; then 2864 echo $ECHO_N "(cached) $ECHO_C" >&6 2865else 2866 if test -n "$CC"; then 2867 ac_cv_prog_CC="$CC" # Let the user override the test. 2868else 2869 ac_prog_rejected=no 2870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2871for as_dir in $PATH 2872do 2873 IFS=$as_save_IFS 2874 test -z "$as_dir" && as_dir=. 2875 for ac_exec_ext in '' $ac_executable_extensions; do 2876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2877 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2878 ac_prog_rejected=yes 2879 continue 2880 fi 2881 ac_cv_prog_CC="cc" 2882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2883 break 2 2884 fi 2885done 2886done 2887IFS=$as_save_IFS 2888 2889if test $ac_prog_rejected = yes; then 2890 # We found a bogon in the path, so make sure we never use it. 2891 set dummy $ac_cv_prog_CC 2892 shift 2893 if test $# != 0; then 2894 # We chose a different compiler from the bogus one. 2895 # However, it has the same basename, so the bogon will be chosen 2896 # first if we set CC to just the basename; use the full file name. 2897 shift 2898 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2899 fi 2900fi 2901fi 2902fi 2903CC=$ac_cv_prog_CC 2904if test -n "$CC"; then 2905 { echo "$as_me:$LINENO: result: $CC" >&5 2906echo "${ECHO_T}$CC" >&6; } 2907else 2908 { echo "$as_me:$LINENO: result: no" >&5 2909echo "${ECHO_T}no" >&6; } 2910fi 2911 2912 2913fi 2914if test -z "$CC"; then 2915 if test -n "$ac_tool_prefix"; then 2916 for ac_prog in cl.exe 2917 do 2918 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2919set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2920{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2921echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2922if test "${ac_cv_prog_CC+set}" = set; then 2923 echo $ECHO_N "(cached) $ECHO_C" >&6 2924else 2925 if test -n "$CC"; then 2926 ac_cv_prog_CC="$CC" # Let the user override the test. 2927else 2928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2929for as_dir in $PATH 2930do 2931 IFS=$as_save_IFS 2932 test -z "$as_dir" && as_dir=. 2933 for ac_exec_ext in '' $ac_executable_extensions; do 2934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2935 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2937 break 2 2938 fi 2939done 2940done 2941IFS=$as_save_IFS 2942 2943fi 2944fi 2945CC=$ac_cv_prog_CC 2946if test -n "$CC"; then 2947 { echo "$as_me:$LINENO: result: $CC" >&5 2948echo "${ECHO_T}$CC" >&6; } 2949else 2950 { echo "$as_me:$LINENO: result: no" >&5 2951echo "${ECHO_T}no" >&6; } 2952fi 2953 2954 2955 test -n "$CC" && break 2956 done 2957fi 2958if test -z "$CC"; then 2959 ac_ct_CC=$CC 2960 for ac_prog in cl.exe 2961do 2962 # Extract the first word of "$ac_prog", so it can be a program name with args. 2963set dummy $ac_prog; ac_word=$2 2964{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2966if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2967 echo $ECHO_N "(cached) $ECHO_C" >&6 2968else 2969 if test -n "$ac_ct_CC"; then 2970 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2971else 2972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2973for as_dir in $PATH 2974do 2975 IFS=$as_save_IFS 2976 test -z "$as_dir" && as_dir=. 2977 for ac_exec_ext in '' $ac_executable_extensions; do 2978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2979 ac_cv_prog_ac_ct_CC="$ac_prog" 2980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2981 break 2 2982 fi 2983done 2984done 2985IFS=$as_save_IFS 2986 2987fi 2988fi 2989ac_ct_CC=$ac_cv_prog_ac_ct_CC 2990if test -n "$ac_ct_CC"; then 2991 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2992echo "${ECHO_T}$ac_ct_CC" >&6; } 2993else 2994 { echo "$as_me:$LINENO: result: no" >&5 2995echo "${ECHO_T}no" >&6; } 2996fi 2997 2998 2999 test -n "$ac_ct_CC" && break 3000done 3001 3002 if test "x$ac_ct_CC" = x; then 3003 CC="" 3004 else 3005 case $cross_compiling:$ac_tool_warned in 3006yes:) 3007{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3008whose name does not start with the host triplet. If you think this 3009configuration is useful to you, please write to autoconf@gnu.org." >&5 3010echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3011whose name does not start with the host triplet. If you think this 3012configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3013ac_tool_warned=yes ;; 3014esac 3015 CC=$ac_ct_CC 3016 fi 3017fi 3018 3019fi 3020 3021 3022test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 3023See \`config.log' for more details." >&5 3024echo "$as_me: error: no acceptable C compiler found in \$PATH 3025See \`config.log' for more details." >&2;} 3026 { (exit 1); exit 1; }; } 3027 3028# Provide some information about the compiler. 3029echo "$as_me:$LINENO: checking for C compiler version" >&5 3030ac_compiler=`set X $ac_compile; echo $2` 3031{ (ac_try="$ac_compiler --version >&5" 3032case "(($ac_try" in 3033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3034 *) ac_try_echo=$ac_try;; 3035esac 3036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3037 (eval "$ac_compiler --version >&5") 2>&5 3038 ac_status=$? 3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3040 (exit $ac_status); } 3041{ (ac_try="$ac_compiler -v >&5" 3042case "(($ac_try" in 3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3044 *) ac_try_echo=$ac_try;; 3045esac 3046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3047 (eval "$ac_compiler -v >&5") 2>&5 3048 ac_status=$? 3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3050 (exit $ac_status); } 3051{ (ac_try="$ac_compiler -V >&5" 3052case "(($ac_try" in 3053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3054 *) ac_try_echo=$ac_try;; 3055esac 3056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3057 (eval "$ac_compiler -V >&5") 2>&5 3058 ac_status=$? 3059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3060 (exit $ac_status); } 3061 3062cat >conftest.$ac_ext <<_ACEOF 3063/* confdefs.h. */ 3064_ACEOF 3065cat confdefs.h >>conftest.$ac_ext 3066cat >>conftest.$ac_ext <<_ACEOF 3067/* end confdefs.h. */ 3068 3069int 3070main () 3071{ 3072 3073 ; 3074 return 0; 3075} 3076_ACEOF 3077ac_clean_files_save=$ac_clean_files 3078ac_clean_files="$ac_clean_files a.out a.exe b.out" 3079# Try to create an executable without -o first, disregard a.out. 3080# It will help us diagnose broken compilers, and finding out an intuition 3081# of exeext. 3082{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 3083echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 3084ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3085# 3086# List of possible output files, starting from the most likely. 3087# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 3088# only as a last resort. b.out is created by i960 compilers. 3089ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 3090# 3091# The IRIX 6 linker writes into existing files which may not be 3092# executable, retaining their permissions. Remove them first so a 3093# subsequent execution test works. 3094ac_rmfiles= 3095for ac_file in $ac_files 3096do 3097 case $ac_file in 3098 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3099 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3100 esac 3101done 3102rm -f $ac_rmfiles 3103 3104if { (ac_try="$ac_link_default" 3105case "(($ac_try" in 3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3107 *) ac_try_echo=$ac_try;; 3108esac 3109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3110 (eval "$ac_link_default") 2>&5 3111 ac_status=$? 3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3113 (exit $ac_status); }; then 3114 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3115# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3116# in a Makefile. We should not override ac_cv_exeext if it was cached, 3117# so that the user can short-circuit this test for compilers unknown to 3118# Autoconf. 3119for ac_file in $ac_files '' 3120do 3121 test -f "$ac_file" || continue 3122 case $ac_file in 3123 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 3124 ;; 3125 [ab].out ) 3126 # We found the default executable, but exeext='' is most 3127 # certainly right. 3128 break;; 3129 *.* ) 3130 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3131 then :; else 3132 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3133 fi 3134 # We set ac_cv_exeext here because the later test for it is not 3135 # safe: cross compilers may not add the suffix if given an `-o' 3136 # argument, so we may need to know it at that point already. 3137 # Even if this section looks crufty: it has the advantage of 3138 # actually working. 3139 break;; 3140 * ) 3141 break;; 3142 esac 3143done 3144test "$ac_cv_exeext" = no && ac_cv_exeext= 3145 3146else 3147 ac_file='' 3148fi 3149 3150{ echo "$as_me:$LINENO: result: $ac_file" >&5 3151echo "${ECHO_T}$ac_file" >&6; } 3152if test -z "$ac_file"; then 3153 echo "$as_me: failed program was:" >&5 3154sed 's/^/| /' conftest.$ac_ext >&5 3155 3156{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 3157See \`config.log' for more details." >&5 3158echo "$as_me: error: C compiler cannot create executables 3159See \`config.log' for more details." >&2;} 3160 { (exit 77); exit 77; }; } 3161fi 3162 3163ac_exeext=$ac_cv_exeext 3164 3165# Check that the compiler produces executables we can run. If not, either 3166# the compiler is broken, or we cross compile. 3167{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3168echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 3169# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3170# If not cross compiling, check that we can run a simple program. 3171if test "$cross_compiling" != yes; then 3172 if { ac_try='./$ac_file' 3173 { (case "(($ac_try" in 3174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3175 *) ac_try_echo=$ac_try;; 3176esac 3177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3178 (eval "$ac_try") 2>&5 3179 ac_status=$? 3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3181 (exit $ac_status); }; }; then 3182 cross_compiling=no 3183 else 3184 if test "$cross_compiling" = maybe; then 3185 cross_compiling=yes 3186 else 3187 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 3188If you meant to cross compile, use \`--host'. 3189See \`config.log' for more details." >&5 3190echo "$as_me: error: cannot run C compiled programs. 3191If you meant to cross compile, use \`--host'. 3192See \`config.log' for more details." >&2;} 3193 { (exit 1); exit 1; }; } 3194 fi 3195 fi 3196fi 3197{ echo "$as_me:$LINENO: result: yes" >&5 3198echo "${ECHO_T}yes" >&6; } 3199 3200rm -f a.out a.exe conftest$ac_cv_exeext b.out 3201ac_clean_files=$ac_clean_files_save 3202# Check that the compiler produces executables we can run. If not, either 3203# the compiler is broken, or we cross compile. 3204{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3205echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 3206{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 3207echo "${ECHO_T}$cross_compiling" >&6; } 3208 3209{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 3210echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 3211if { (ac_try="$ac_link" 3212case "(($ac_try" in 3213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3214 *) ac_try_echo=$ac_try;; 3215esac 3216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3217 (eval "$ac_link") 2>&5 3218 ac_status=$? 3219 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3220 (exit $ac_status); }; then 3221 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3222# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3223# work properly (i.e., refer to `conftest.exe'), while it won't with 3224# `rm'. 3225for ac_file in conftest.exe conftest conftest.*; do 3226 test -f "$ac_file" || continue 3227 case $ac_file in 3228 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3229 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3230 break;; 3231 * ) break;; 3232 esac 3233done 3234else 3235 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3236See \`config.log' for more details." >&5 3237echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3238See \`config.log' for more details." >&2;} 3239 { (exit 1); exit 1; }; } 3240fi 3241 3242rm -f conftest$ac_cv_exeext 3243{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3244echo "${ECHO_T}$ac_cv_exeext" >&6; } 3245 3246rm -f conftest.$ac_ext 3247EXEEXT=$ac_cv_exeext 3248ac_exeext=$EXEEXT 3249{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 3250echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 3251if test "${ac_cv_objext+set}" = set; then 3252 echo $ECHO_N "(cached) $ECHO_C" >&6 3253else 3254 cat >conftest.$ac_ext <<_ACEOF 3255/* confdefs.h. */ 3256_ACEOF 3257cat confdefs.h >>conftest.$ac_ext 3258cat >>conftest.$ac_ext <<_ACEOF 3259/* end confdefs.h. */ 3260 3261int 3262main () 3263{ 3264 3265 ; 3266 return 0; 3267} 3268_ACEOF 3269rm -f conftest.o conftest.obj 3270if { (ac_try="$ac_compile" 3271case "(($ac_try" in 3272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3273 *) ac_try_echo=$ac_try;; 3274esac 3275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3276 (eval "$ac_compile") 2>&5 3277 ac_status=$? 3278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3279 (exit $ac_status); }; then 3280 for ac_file in conftest.o conftest.obj conftest.*; do 3281 test -f "$ac_file" || continue; 3282 case $ac_file in 3283 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 3284 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3285 break;; 3286 esac 3287done 3288else 3289 echo "$as_me: failed program was:" >&5 3290sed 's/^/| /' conftest.$ac_ext >&5 3291 3292{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3293See \`config.log' for more details." >&5 3294echo "$as_me: error: cannot compute suffix of object files: cannot compile 3295See \`config.log' for more details." >&2;} 3296 { (exit 1); exit 1; }; } 3297fi 3298 3299rm -f conftest.$ac_cv_objext conftest.$ac_ext 3300fi 3301{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3302echo "${ECHO_T}$ac_cv_objext" >&6; } 3303OBJEXT=$ac_cv_objext 3304ac_objext=$OBJEXT 3305{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3306echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3307if test "${ac_cv_c_compiler_gnu+set}" = set; then 3308 echo $ECHO_N "(cached) $ECHO_C" >&6 3309else 3310 cat >conftest.$ac_ext <<_ACEOF 3311/* confdefs.h. */ 3312_ACEOF 3313cat confdefs.h >>conftest.$ac_ext 3314cat >>conftest.$ac_ext <<_ACEOF 3315/* end confdefs.h. */ 3316 3317int 3318main () 3319{ 3320#ifndef __GNUC__ 3321 choke me 3322#endif 3323 3324 ; 3325 return 0; 3326} 3327_ACEOF 3328rm -f conftest.$ac_objext 3329if { (ac_try="$ac_compile" 3330case "(($ac_try" in 3331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3332 *) ac_try_echo=$ac_try;; 3333esac 3334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3335 (eval "$ac_compile") 2>conftest.er1 3336 ac_status=$? 3337 grep -v '^ *+' conftest.er1 >conftest.err 3338 rm -f conftest.er1 3339 cat conftest.err >&5 3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3341 (exit $ac_status); } && { 3342 test -z "$ac_c_werror_flag" || 3343 test ! -s conftest.err 3344 } && test -s conftest.$ac_objext; then 3345 ac_compiler_gnu=yes 3346else 3347 echo "$as_me: failed program was:" >&5 3348sed 's/^/| /' conftest.$ac_ext >&5 3349 3350 ac_compiler_gnu=no 3351fi 3352 3353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3354ac_cv_c_compiler_gnu=$ac_compiler_gnu 3355 3356fi 3357{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3358echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3359GCC=`test $ac_compiler_gnu = yes && echo yes` 3360ac_test_CFLAGS=${CFLAGS+set} 3361ac_save_CFLAGS=$CFLAGS 3362{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3363echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3364if test "${ac_cv_prog_cc_g+set}" = set; then 3365 echo $ECHO_N "(cached) $ECHO_C" >&6 3366else 3367 ac_save_c_werror_flag=$ac_c_werror_flag 3368 ac_c_werror_flag=yes 3369 ac_cv_prog_cc_g=no 3370 CFLAGS="-g" 3371 cat >conftest.$ac_ext <<_ACEOF 3372/* confdefs.h. */ 3373_ACEOF 3374cat confdefs.h >>conftest.$ac_ext 3375cat >>conftest.$ac_ext <<_ACEOF 3376/* end confdefs.h. */ 3377 3378int 3379main () 3380{ 3381 3382 ; 3383 return 0; 3384} 3385_ACEOF 3386rm -f conftest.$ac_objext 3387if { (ac_try="$ac_compile" 3388case "(($ac_try" in 3389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3390 *) ac_try_echo=$ac_try;; 3391esac 3392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3393 (eval "$ac_compile") 2>conftest.er1 3394 ac_status=$? 3395 grep -v '^ *+' conftest.er1 >conftest.err 3396 rm -f conftest.er1 3397 cat conftest.err >&5 3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3399 (exit $ac_status); } && { 3400 test -z "$ac_c_werror_flag" || 3401 test ! -s conftest.err 3402 } && test -s conftest.$ac_objext; then 3403 ac_cv_prog_cc_g=yes 3404else 3405 echo "$as_me: failed program was:" >&5 3406sed 's/^/| /' conftest.$ac_ext >&5 3407 3408 CFLAGS="" 3409 cat >conftest.$ac_ext <<_ACEOF 3410/* confdefs.h. */ 3411_ACEOF 3412cat confdefs.h >>conftest.$ac_ext 3413cat >>conftest.$ac_ext <<_ACEOF 3414/* end confdefs.h. */ 3415 3416int 3417main () 3418{ 3419 3420 ; 3421 return 0; 3422} 3423_ACEOF 3424rm -f conftest.$ac_objext 3425if { (ac_try="$ac_compile" 3426case "(($ac_try" in 3427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3428 *) ac_try_echo=$ac_try;; 3429esac 3430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3431 (eval "$ac_compile") 2>conftest.er1 3432 ac_status=$? 3433 grep -v '^ *+' conftest.er1 >conftest.err 3434 rm -f conftest.er1 3435 cat conftest.err >&5 3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3437 (exit $ac_status); } && { 3438 test -z "$ac_c_werror_flag" || 3439 test ! -s conftest.err 3440 } && test -s conftest.$ac_objext; then 3441 : 3442else 3443 echo "$as_me: failed program was:" >&5 3444sed 's/^/| /' conftest.$ac_ext >&5 3445 3446 ac_c_werror_flag=$ac_save_c_werror_flag 3447 CFLAGS="-g" 3448 cat >conftest.$ac_ext <<_ACEOF 3449/* confdefs.h. */ 3450_ACEOF 3451cat confdefs.h >>conftest.$ac_ext 3452cat >>conftest.$ac_ext <<_ACEOF 3453/* end confdefs.h. */ 3454 3455int 3456main () 3457{ 3458 3459 ; 3460 return 0; 3461} 3462_ACEOF 3463rm -f conftest.$ac_objext 3464if { (ac_try="$ac_compile" 3465case "(($ac_try" in 3466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3467 *) ac_try_echo=$ac_try;; 3468esac 3469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3470 (eval "$ac_compile") 2>conftest.er1 3471 ac_status=$? 3472 grep -v '^ *+' conftest.er1 >conftest.err 3473 rm -f conftest.er1 3474 cat conftest.err >&5 3475 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3476 (exit $ac_status); } && { 3477 test -z "$ac_c_werror_flag" || 3478 test ! -s conftest.err 3479 } && test -s conftest.$ac_objext; then 3480 ac_cv_prog_cc_g=yes 3481else 3482 echo "$as_me: failed program was:" >&5 3483sed 's/^/| /' conftest.$ac_ext >&5 3484 3485 3486fi 3487 3488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3489fi 3490 3491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3492fi 3493 3494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3495 ac_c_werror_flag=$ac_save_c_werror_flag 3496fi 3497{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3498echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3499if test "$ac_test_CFLAGS" = set; then 3500 CFLAGS=$ac_save_CFLAGS 3501elif test $ac_cv_prog_cc_g = yes; then 3502 if test "$GCC" = yes; then 3503 CFLAGS="-g -O2" 3504 else 3505 CFLAGS="-g" 3506 fi 3507else 3508 if test "$GCC" = yes; then 3509 CFLAGS="-O2" 3510 else 3511 CFLAGS= 3512 fi 3513fi 3514{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3515echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3516if test "${ac_cv_prog_cc_c89+set}" = set; then 3517 echo $ECHO_N "(cached) $ECHO_C" >&6 3518else 3519 ac_cv_prog_cc_c89=no 3520ac_save_CC=$CC 3521cat >conftest.$ac_ext <<_ACEOF 3522/* confdefs.h. */ 3523_ACEOF 3524cat confdefs.h >>conftest.$ac_ext 3525cat >>conftest.$ac_ext <<_ACEOF 3526/* end confdefs.h. */ 3527#include <stdarg.h> 3528#include <stdio.h> 3529#include <sys/types.h> 3530#include <sys/stat.h> 3531/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3532struct buf { int x; }; 3533FILE * (*rcsopen) (struct buf *, struct stat *, int); 3534static char *e (p, i) 3535 char **p; 3536 int i; 3537{ 3538 return p[i]; 3539} 3540static char *f (char * (*g) (char **, int), char **p, ...) 3541{ 3542 char *s; 3543 va_list v; 3544 va_start (v,p); 3545 s = g (p, va_arg (v,int)); 3546 va_end (v); 3547 return s; 3548} 3549 3550/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3551 function prototypes and stuff, but not '\xHH' hex character constants. 3552 These don't provoke an error unfortunately, instead are silently treated 3553 as 'x'. The following induces an error, until -std is added to get 3554 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3555 array size at least. It's necessary to write '\x00'==0 to get something 3556 that's true only with -std. */ 3557int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3558 3559/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3560 inside strings and character constants. */ 3561#define FOO(x) 'x' 3562int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3563 3564int test (int i, double x); 3565struct s1 {int (*f) (int a);}; 3566struct s2 {int (*f) (double a);}; 3567int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3568int argc; 3569char **argv; 3570int 3571main () 3572{ 3573return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3574 ; 3575 return 0; 3576} 3577_ACEOF 3578for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3579 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3580do 3581 CC="$ac_save_CC $ac_arg" 3582 rm -f conftest.$ac_objext 3583if { (ac_try="$ac_compile" 3584case "(($ac_try" in 3585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3586 *) ac_try_echo=$ac_try;; 3587esac 3588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3589 (eval "$ac_compile") 2>conftest.er1 3590 ac_status=$? 3591 grep -v '^ *+' conftest.er1 >conftest.err 3592 rm -f conftest.er1 3593 cat conftest.err >&5 3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3595 (exit $ac_status); } && { 3596 test -z "$ac_c_werror_flag" || 3597 test ! -s conftest.err 3598 } && test -s conftest.$ac_objext; then 3599 ac_cv_prog_cc_c89=$ac_arg 3600else 3601 echo "$as_me: failed program was:" >&5 3602sed 's/^/| /' conftest.$ac_ext >&5 3603 3604 3605fi 3606 3607rm -f core conftest.err conftest.$ac_objext 3608 test "x$ac_cv_prog_cc_c89" != "xno" && break 3609done 3610rm -f conftest.$ac_ext 3611CC=$ac_save_CC 3612 3613fi 3614# AC_CACHE_VAL 3615case "x$ac_cv_prog_cc_c89" in 3616 x) 3617 { echo "$as_me:$LINENO: result: none needed" >&5 3618echo "${ECHO_T}none needed" >&6; } ;; 3619 xno) 3620 { echo "$as_me:$LINENO: result: unsupported" >&5 3621echo "${ECHO_T}unsupported" >&6; } ;; 3622 *) 3623 CC="$CC $ac_cv_prog_cc_c89" 3624 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3625echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3626esac 3627 3628 3629ac_ext=c 3630ac_cpp='$CPP $CPPFLAGS' 3631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3633ac_compiler_gnu=$ac_cv_c_compiler_gnu 3634 3635depcc="$CC" am_compiler_list= 3636 3637{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3638echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3639if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3640 echo $ECHO_N "(cached) $ECHO_C" >&6 3641else 3642 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3643 # We make a subdir and do the tests there. Otherwise we can end up 3644 # making bogus files that we don't know about and never remove. For 3645 # instance it was reported that on HP-UX the gcc test will end up 3646 # making a dummy file named `D' -- because `-MD' means `put the output 3647 # in D'. 3648 mkdir conftest.dir 3649 # Copy depcomp to subdir because otherwise we won't find it if we're 3650 # using a relative directory. 3651 cp "$am_depcomp" conftest.dir 3652 cd conftest.dir 3653 # We will build objects and dependencies in a subdirectory because 3654 # it helps to detect inapplicable dependency modes. For instance 3655 # both Tru64's cc and ICC support -MD to output dependencies as a 3656 # side effect of compilation, but ICC will put the dependencies in 3657 # the current directory while Tru64 will put them in the object 3658 # directory. 3659 mkdir sub 3660 3661 am_cv_CC_dependencies_compiler_type=none 3662 if test "$am_compiler_list" = ""; then 3663 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3664 fi 3665 for depmode in $am_compiler_list; do 3666 # Setup a source with many dependencies, because some compilers 3667 # like to wrap large dependency lists on column 80 (with \), and 3668 # we should not choose a depcomp mode which is confused by this. 3669 # 3670 # We need to recreate these files for each test, as the compiler may 3671 # overwrite some of them when testing with obscure command lines. 3672 # This happens at least with the AIX C compiler. 3673 : > sub/conftest.c 3674 for i in 1 2 3 4 5 6; do 3675 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3676 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3677 # Solaris 8's {/usr,}/bin/sh. 3678 touch sub/conftst$i.h 3679 done 3680 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3681 3682 case $depmode in 3683 nosideeffect) 3684 # after this tag, mechanisms are not by side-effect, so they'll 3685 # only be used when explicitly requested 3686 if test "x$enable_dependency_tracking" = xyes; then 3687 continue 3688 else 3689 break 3690 fi 3691 ;; 3692 none) break ;; 3693 esac 3694 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3695 # mode. It turns out that the SunPro C++ compiler does not properly 3696 # handle `-M -o', and we need to detect this. 3697 if depmode=$depmode \ 3698 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3699 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3700 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3701 >/dev/null 2>conftest.err && 3702 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3703 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3704 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3705 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3706 # icc doesn't choke on unknown options, it will just issue warnings 3707 # or remarks (even with -Werror). So we grep stderr for any message 3708 # that says an option was ignored or not supported. 3709 # When given -MP, icc 7.0 and 7.1 complain thusly: 3710 # icc: Command line warning: ignoring option '-M'; no argument required 3711 # The diagnosis changed in icc 8.0: 3712 # icc: Command line remark: option '-MP' not supported 3713 if (grep 'ignoring option' conftest.err || 3714 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3715 am_cv_CC_dependencies_compiler_type=$depmode 3716 break 3717 fi 3718 fi 3719 done 3720 3721 cd .. 3722 rm -rf conftest.dir 3723else 3724 am_cv_CC_dependencies_compiler_type=none 3725fi 3726 3727fi 3728{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3729echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 3730CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3731 3732 if 3733 test "x$enable_dependency_tracking" != xno \ 3734 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3735 am__fastdepCC_TRUE= 3736 am__fastdepCC_FALSE='#' 3737else 3738 am__fastdepCC_TRUE='#' 3739 am__fastdepCC_FALSE= 3740fi 3741 3742 3743{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3744echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } 3745if test "${lt_cv_path_SED+set}" = set; then 3746 echo $ECHO_N "(cached) $ECHO_C" >&6 3747else 3748 # Loop through the user's path and test for sed and gsed. 3749# Then use that list of sed's as ones to test for truncation. 3750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3751for as_dir in $PATH 3752do 3753 IFS=$as_save_IFS 3754 test -z "$as_dir" && as_dir=. 3755 for lt_ac_prog in sed gsed; do 3756 for ac_exec_ext in '' $ac_executable_extensions; do 3757 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then 3758 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3759 fi 3760 done 3761 done 3762done 3763IFS=$as_save_IFS 3764lt_ac_max=0 3765lt_ac_count=0 3766# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3767# along with /bin/sed that truncates output. 3768for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3769 test ! -f $lt_ac_sed && continue 3770 cat /dev/null > conftest.in 3771 lt_ac_count=0 3772 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3773 # Check for GNU sed and select it if it is found. 3774 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3775 lt_cv_path_SED=$lt_ac_sed 3776 break 3777 fi 3778 while true; do 3779 cat conftest.in conftest.in >conftest.tmp 3780 mv conftest.tmp conftest.in 3781 cp conftest.in conftest.nl 3782 echo >>conftest.nl 3783 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3784 cmp -s conftest.out conftest.nl || break 3785 # 10000 chars as input seems more than enough 3786 test $lt_ac_count -gt 10 && break 3787 lt_ac_count=`expr $lt_ac_count + 1` 3788 if test $lt_ac_count -gt $lt_ac_max; then 3789 lt_ac_max=$lt_ac_count 3790 lt_cv_path_SED=$lt_ac_sed 3791 fi 3792 done 3793done 3794 3795fi 3796 3797SED=$lt_cv_path_SED 3798 3799{ echo "$as_me:$LINENO: result: $SED" >&5 3800echo "${ECHO_T}$SED" >&6; } 3801 3802{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3803echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3804if test "${ac_cv_path_GREP+set}" = set; then 3805 echo $ECHO_N "(cached) $ECHO_C" >&6 3806else 3807 # Extract the first word of "grep ggrep" to use in msg output 3808if test -z "$GREP"; then 3809set dummy grep ggrep; ac_prog_name=$2 3810if test "${ac_cv_path_GREP+set}" = set; then 3811 echo $ECHO_N "(cached) $ECHO_C" >&6 3812else 3813 ac_path_GREP_found=false 3814# Loop through the user's path and test for each of PROGNAME-LIST 3815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3816for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3817do 3818 IFS=$as_save_IFS 3819 test -z "$as_dir" && as_dir=. 3820 for ac_prog in grep ggrep; do 3821 for ac_exec_ext in '' $ac_executable_extensions; do 3822 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3823 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3824 # Check for GNU ac_path_GREP and select it if it is found. 3825 # Check for GNU $ac_path_GREP 3826case `"$ac_path_GREP" --version 2>&1` in 3827*GNU*) 3828 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3829*) 3830 ac_count=0 3831 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3832 while : 3833 do 3834 cat "conftest.in" "conftest.in" >"conftest.tmp" 3835 mv "conftest.tmp" "conftest.in" 3836 cp "conftest.in" "conftest.nl" 3837 echo 'GREP' >> "conftest.nl" 3838 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3839 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3840 ac_count=`expr $ac_count + 1` 3841 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3842 # Best one so far, save it but keep looking for a better one 3843 ac_cv_path_GREP="$ac_path_GREP" 3844 ac_path_GREP_max=$ac_count 3845 fi 3846 # 10*(2^10) chars as input seems more than enough 3847 test $ac_count -gt 10 && break 3848 done 3849 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3850esac 3851 3852 3853 $ac_path_GREP_found && break 3 3854 done 3855done 3856 3857done 3858IFS=$as_save_IFS 3859 3860 3861fi 3862 3863GREP="$ac_cv_path_GREP" 3864if test -z "$GREP"; then 3865 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3866echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3867 { (exit 1); exit 1; }; } 3868fi 3869 3870else 3871 ac_cv_path_GREP=$GREP 3872fi 3873 3874 3875fi 3876{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3877echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3878 GREP="$ac_cv_path_GREP" 3879 3880 3881{ echo "$as_me:$LINENO: checking for egrep" >&5 3882echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3883if test "${ac_cv_path_EGREP+set}" = set; then 3884 echo $ECHO_N "(cached) $ECHO_C" >&6 3885else 3886 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3887 then ac_cv_path_EGREP="$GREP -E" 3888 else 3889 # Extract the first word of "egrep" to use in msg output 3890if test -z "$EGREP"; then 3891set dummy egrep; ac_prog_name=$2 3892if test "${ac_cv_path_EGREP+set}" = set; then 3893 echo $ECHO_N "(cached) $ECHO_C" >&6 3894else 3895 ac_path_EGREP_found=false 3896# Loop through the user's path and test for each of PROGNAME-LIST 3897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3898for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3899do 3900 IFS=$as_save_IFS 3901 test -z "$as_dir" && as_dir=. 3902 for ac_prog in egrep; do 3903 for ac_exec_ext in '' $ac_executable_extensions; do 3904 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3905 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3906 # Check for GNU ac_path_EGREP and select it if it is found. 3907 # Check for GNU $ac_path_EGREP 3908case `"$ac_path_EGREP" --version 2>&1` in 3909*GNU*) 3910 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3911*) 3912 ac_count=0 3913 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3914 while : 3915 do 3916 cat "conftest.in" "conftest.in" >"conftest.tmp" 3917 mv "conftest.tmp" "conftest.in" 3918 cp "conftest.in" "conftest.nl" 3919 echo 'EGREP' >> "conftest.nl" 3920 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3921 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3922 ac_count=`expr $ac_count + 1` 3923 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3924 # Best one so far, save it but keep looking for a better one 3925 ac_cv_path_EGREP="$ac_path_EGREP" 3926 ac_path_EGREP_max=$ac_count 3927 fi 3928 # 10*(2^10) chars as input seems more than enough 3929 test $ac_count -gt 10 && break 3930 done 3931 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3932esac 3933 3934 3935 $ac_path_EGREP_found && break 3 3936 done 3937done 3938 3939done 3940IFS=$as_save_IFS 3941 3942 3943fi 3944 3945EGREP="$ac_cv_path_EGREP" 3946if test -z "$EGREP"; then 3947 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3948echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3949 { (exit 1); exit 1; }; } 3950fi 3951 3952else 3953 ac_cv_path_EGREP=$EGREP 3954fi 3955 3956 3957 fi 3958fi 3959{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3960echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3961 EGREP="$ac_cv_path_EGREP" 3962 3963 3964 3965# Check whether --with-gnu-ld was given. 3966if test "${with_gnu_ld+set}" = set; then 3967 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 3968else 3969 with_gnu_ld=no 3970fi 3971 3972ac_prog=ld 3973if test "$GCC" = yes; then 3974 # Check if gcc -print-prog-name=ld gives a path. 3975 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3976echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 3977 case $host in 3978 *-*-mingw*) 3979 # gcc leaves a trailing carriage return which upsets mingw 3980 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3981 *) 3982 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3983 esac 3984 case $ac_prog in 3985 # Accept absolute paths. 3986 [\\/]* | ?:[\\/]*) 3987 re_direlt='/[^/][^/]*/\.\./' 3988 # Canonicalize the pathname of ld 3989 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 3990 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3991 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 3992 done 3993 test -z "$LD" && LD="$ac_prog" 3994 ;; 3995 "") 3996 # If it fails, then pretend we aren't using GCC. 3997 ac_prog=ld 3998 ;; 3999 *) 4000 # If it is relative, then search for the first ld in PATH. 4001 with_gnu_ld=unknown 4002 ;; 4003 esac 4004elif test "$with_gnu_ld" = yes; then 4005 { echo "$as_me:$LINENO: checking for GNU ld" >&5 4006echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 4007else 4008 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4009echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 4010fi 4011if test "${lt_cv_path_LD+set}" = set; then 4012 echo $ECHO_N "(cached) $ECHO_C" >&6 4013else 4014 if test -z "$LD"; then 4015 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4016 for ac_dir in $PATH; do 4017 IFS="$lt_save_ifs" 4018 test -z "$ac_dir" && ac_dir=. 4019 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4020 lt_cv_path_LD="$ac_dir/$ac_prog" 4021 # Check to see if the program is GNU ld. I'd rather use --version, 4022 # but apparently some variants of GNU ld only accept -v. 4023 # Break only if it was the GNU/non-GNU ld that we prefer. 4024 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4025 *GNU* | *'with BFD'*) 4026 test "$with_gnu_ld" != no && break 4027 ;; 4028 *) 4029 test "$with_gnu_ld" != yes && break 4030 ;; 4031 esac 4032 fi 4033 done 4034 IFS="$lt_save_ifs" 4035else 4036 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4037fi 4038fi 4039 4040LD="$lt_cv_path_LD" 4041if test -n "$LD"; then 4042 { echo "$as_me:$LINENO: result: $LD" >&5 4043echo "${ECHO_T}$LD" >&6; } 4044else 4045 { echo "$as_me:$LINENO: result: no" >&5 4046echo "${ECHO_T}no" >&6; } 4047fi 4048test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4049echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4050 { (exit 1); exit 1; }; } 4051{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4052echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 4053if test "${lt_cv_prog_gnu_ld+set}" = set; then 4054 echo $ECHO_N "(cached) $ECHO_C" >&6 4055else 4056 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4057case `$LD -v 2>&1 </dev/null` in 4058*GNU* | *'with BFD'*) 4059 lt_cv_prog_gnu_ld=yes 4060 ;; 4061*) 4062 lt_cv_prog_gnu_ld=no 4063 ;; 4064esac 4065fi 4066{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4067echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 4068with_gnu_ld=$lt_cv_prog_gnu_ld 4069 4070 4071{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4072echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } 4073if test "${lt_cv_ld_reload_flag+set}" = set; then 4074 echo $ECHO_N "(cached) $ECHO_C" >&6 4075else 4076 lt_cv_ld_reload_flag='-r' 4077fi 4078{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4079echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } 4080reload_flag=$lt_cv_ld_reload_flag 4081case $reload_flag in 4082"" | " "*) ;; 4083*) reload_flag=" $reload_flag" ;; 4084esac 4085reload_cmds='$LD$reload_flag -o $output$reload_objs' 4086case $host_os in 4087 darwin*) 4088 if test "$GCC" = yes; then 4089 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4090 else 4091 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4092 fi 4093 ;; 4094esac 4095 4096{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4097echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 4098if test "${lt_cv_path_NM+set}" = set; then 4099 echo $ECHO_N "(cached) $ECHO_C" >&6 4100else 4101 if test -n "$NM"; then 4102 # Let the user override the test. 4103 lt_cv_path_NM="$NM" 4104else 4105 lt_nm_to_check="${ac_tool_prefix}nm" 4106 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4107 lt_nm_to_check="$lt_nm_to_check nm" 4108 fi 4109 for lt_tmp_nm in $lt_nm_to_check; do 4110 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4111 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4112 IFS="$lt_save_ifs" 4113 test -z "$ac_dir" && ac_dir=. 4114 tmp_nm="$ac_dir/$lt_tmp_nm" 4115 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4116 # Check to see if the nm accepts a BSD-compat flag. 4117 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4118 # nm: unknown option "B" ignored 4119 # Tru64's nm complains that /dev/null is an invalid object file 4120 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4121 */dev/null* | *'Invalid file or object type'*) 4122 lt_cv_path_NM="$tmp_nm -B" 4123 break 4124 ;; 4125 *) 4126 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4127 */dev/null*) 4128 lt_cv_path_NM="$tmp_nm -p" 4129 break 4130 ;; 4131 *) 4132 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4133 continue # so that we can try to find one that supports BSD flags 4134 ;; 4135 esac 4136 ;; 4137 esac 4138 fi 4139 done 4140 IFS="$lt_save_ifs" 4141 done 4142 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4143fi 4144fi 4145{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4146echo "${ECHO_T}$lt_cv_path_NM" >&6; } 4147NM="$lt_cv_path_NM" 4148 4149{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 4150echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 4151LN_S=$as_ln_s 4152if test "$LN_S" = "ln -s"; then 4153 { echo "$as_me:$LINENO: result: yes" >&5 4154echo "${ECHO_T}yes" >&6; } 4155else 4156 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4157echo "${ECHO_T}no, using $LN_S" >&6; } 4158fi 4159 4160{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 4161echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; } 4162if test "${lt_cv_deplibs_check_method+set}" = set; then 4163 echo $ECHO_N "(cached) $ECHO_C" >&6 4164else 4165 lt_cv_file_magic_cmd='$MAGIC_CMD' 4166lt_cv_file_magic_test_file= 4167lt_cv_deplibs_check_method='unknown' 4168# Need to set the preceding variable on all platforms that support 4169# interlibrary dependencies. 4170# 'none' -- dependencies not supported. 4171# `unknown' -- same as none, but documents that we really don't know. 4172# 'pass_all' -- all dependencies passed with no checks. 4173# 'test_compile' -- check by making test program. 4174# 'file_magic [[regex]]' -- check by looking for files in library path 4175# which responds to the $file_magic_cmd with a given extended regex. 4176# If you have `file' or equivalent on your system and you're not sure 4177# whether `pass_all' will *always* work, you probably want this one. 4178 4179case $host_os in 4180aix4* | aix5*) 4181 lt_cv_deplibs_check_method=pass_all 4182 ;; 4183 4184beos*) 4185 lt_cv_deplibs_check_method=pass_all 4186 ;; 4187 4188bsdi[45]*) 4189 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4190 lt_cv_file_magic_cmd='/usr/bin/file -L' 4191 lt_cv_file_magic_test_file=/shlib/libc.so 4192 ;; 4193 4194cygwin*) 4195 # func_win32_libid is a shell function defined in ltmain.sh 4196 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4197 lt_cv_file_magic_cmd='func_win32_libid' 4198 ;; 4199 4200mingw* | pw32*) 4201 # Base MSYS/MinGW do not provide the 'file' command needed by 4202 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4203 # unless we find 'file', for example because we are cross-compiling. 4204 if ( file / ) >/dev/null 2>&1; then 4205 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4206 lt_cv_file_magic_cmd='func_win32_libid' 4207 else 4208 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4209 lt_cv_file_magic_cmd='$OBJDUMP -f' 4210 fi 4211 ;; 4212 4213darwin* | rhapsody*) 4214 lt_cv_deplibs_check_method=pass_all 4215 ;; 4216 4217freebsd* | dragonfly*) 4218 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4219 case $host_cpu in 4220 i*86 ) 4221 # Not sure whether the presence of OpenBSD here was a mistake. 4222 # Let's accept both of them until this is cleared up. 4223 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4224 lt_cv_file_magic_cmd=/usr/bin/file 4225 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4226 ;; 4227 esac 4228 else 4229 lt_cv_deplibs_check_method=pass_all 4230 fi 4231 ;; 4232 4233gnu*) 4234 lt_cv_deplibs_check_method=pass_all 4235 ;; 4236 4237hpux10.20* | hpux11*) 4238 lt_cv_file_magic_cmd=/usr/bin/file 4239 case $host_cpu in 4240 ia64*) 4241 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4242 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4243 ;; 4244 hppa*64*) 4245 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]' 4246 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4247 ;; 4248 *) 4249 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4250 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4251 ;; 4252 esac 4253 ;; 4254 4255interix[3-9]*) 4256 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4257 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4258 ;; 4259 4260irix5* | irix6* | nonstopux*) 4261 case $LD in 4262 *-32|*"-32 ") libmagic=32-bit;; 4263 *-n32|*"-n32 ") libmagic=N32;; 4264 *-64|*"-64 ") libmagic=64-bit;; 4265 *) libmagic=never-match;; 4266 esac 4267 lt_cv_deplibs_check_method=pass_all 4268 ;; 4269 4270# This must be Linux ELF. 4271linux* | k*bsd*-gnu) 4272 lt_cv_deplibs_check_method=pass_all 4273 ;; 4274 4275netbsd*) 4276 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4277 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4278 else 4279 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4280 fi 4281 ;; 4282 4283newos6*) 4284 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4285 lt_cv_file_magic_cmd=/usr/bin/file 4286 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4287 ;; 4288 4289nto-qnx*) 4290 lt_cv_deplibs_check_method=unknown 4291 ;; 4292 4293openbsd*) 4294 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4295 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4296 else 4297 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4298 fi 4299 ;; 4300 4301osf3* | osf4* | osf5*) 4302 lt_cv_deplibs_check_method=pass_all 4303 ;; 4304 4305rdos*) 4306 lt_cv_deplibs_check_method=pass_all 4307 ;; 4308 4309solaris*) 4310 lt_cv_deplibs_check_method=pass_all 4311 ;; 4312 4313sysv4 | sysv4.3*) 4314 case $host_vendor in 4315 motorola) 4316 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]' 4317 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4318 ;; 4319 ncr) 4320 lt_cv_deplibs_check_method=pass_all 4321 ;; 4322 sequent) 4323 lt_cv_file_magic_cmd='/bin/file' 4324 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4325 ;; 4326 sni) 4327 lt_cv_file_magic_cmd='/bin/file' 4328 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4329 lt_cv_file_magic_test_file=/lib/libc.so 4330 ;; 4331 siemens) 4332 lt_cv_deplibs_check_method=pass_all 4333 ;; 4334 pc) 4335 lt_cv_deplibs_check_method=pass_all 4336 ;; 4337 esac 4338 ;; 4339 4340sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4341 lt_cv_deplibs_check_method=pass_all 4342 ;; 4343esac 4344 4345fi 4346{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4347echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 4348file_magic_cmd=$lt_cv_file_magic_cmd 4349deplibs_check_method=$lt_cv_deplibs_check_method 4350test -z "$deplibs_check_method" && deplibs_check_method=unknown 4351 4352 4353 4354 4355# If no C compiler was specified, use CC. 4356LTCC=${LTCC-"$CC"} 4357 4358# If no C compiler flags were specified, use CFLAGS. 4359LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4360 4361# Allow CC to be a program name with arguments. 4362compiler=$CC 4363 4364 4365# Check whether --enable-libtool-lock was given. 4366if test "${enable_libtool_lock+set}" = set; then 4367 enableval=$enable_libtool_lock; 4368fi 4369 4370test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4371 4372# Some flags need to be propagated to the compiler or linker for good 4373# libtool support. 4374case $host in 4375ia64-*-hpux*) 4376 # Find out which ABI we are using. 4377 echo 'int i;' > conftest.$ac_ext 4378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4379 (eval $ac_compile) 2>&5 4380 ac_status=$? 4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4382 (exit $ac_status); }; then 4383 case `/usr/bin/file conftest.$ac_objext` in 4384 *ELF-32*) 4385 HPUX_IA64_MODE="32" 4386 ;; 4387 *ELF-64*) 4388 HPUX_IA64_MODE="64" 4389 ;; 4390 esac 4391 fi 4392 rm -rf conftest* 4393 ;; 4394*-*-irix6*) 4395 # Find out which ABI we are using. 4396 echo '#line 4396 "configure"' > conftest.$ac_ext 4397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4398 (eval $ac_compile) 2>&5 4399 ac_status=$? 4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4401 (exit $ac_status); }; then 4402 if test "$lt_cv_prog_gnu_ld" = yes; then 4403 case `/usr/bin/file conftest.$ac_objext` in 4404 *32-bit*) 4405 LD="${LD-ld} -melf32bsmip" 4406 ;; 4407 *N32*) 4408 LD="${LD-ld} -melf32bmipn32" 4409 ;; 4410 *64-bit*) 4411 LD="${LD-ld} -melf64bmip" 4412 ;; 4413 esac 4414 else 4415 case `/usr/bin/file conftest.$ac_objext` in 4416 *32-bit*) 4417 LD="${LD-ld} -32" 4418 ;; 4419 *N32*) 4420 LD="${LD-ld} -n32" 4421 ;; 4422 *64-bit*) 4423 LD="${LD-ld} -64" 4424 ;; 4425 esac 4426 fi 4427 fi 4428 rm -rf conftest* 4429 ;; 4430 4431x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 4432s390*-*linux*|sparc*-*linux*) 4433 # Find out which ABI we are using. 4434 echo 'int i;' > conftest.$ac_ext 4435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4436 (eval $ac_compile) 2>&5 4437 ac_status=$? 4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4439 (exit $ac_status); }; then 4440 case `/usr/bin/file conftest.o` in 4441 *32-bit*) 4442 case $host in 4443 x86_64-*kfreebsd*-gnu) 4444 LD="${LD-ld} -m elf_i386_fbsd" 4445 ;; 4446 x86_64-*linux*) 4447 LD="${LD-ld} -m elf_i386" 4448 ;; 4449 ppc64-*linux*|powerpc64-*linux*) 4450 LD="${LD-ld} -m elf32ppclinux" 4451 ;; 4452 s390x-*linux*) 4453 LD="${LD-ld} -m elf_s390" 4454 ;; 4455 sparc64-*linux*) 4456 LD="${LD-ld} -m elf32_sparc" 4457 ;; 4458 esac 4459 ;; 4460 *64-bit*) 4461 libsuff=64 4462 case $host in 4463 x86_64-*kfreebsd*-gnu) 4464 LD="${LD-ld} -m elf_x86_64_fbsd" 4465 ;; 4466 x86_64-*linux*) 4467 LD="${LD-ld} -m elf_x86_64" 4468 ;; 4469 ppc*-*linux*|powerpc*-*linux*) 4470 LD="${LD-ld} -m elf64ppc" 4471 ;; 4472 s390*-*linux*) 4473 LD="${LD-ld} -m elf64_s390" 4474 ;; 4475 sparc*-*linux*) 4476 LD="${LD-ld} -m elf64_sparc" 4477 ;; 4478 esac 4479 ;; 4480 esac 4481 fi 4482 rm -rf conftest* 4483 ;; 4484 4485*-*-sco3.2v5*) 4486 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4487 SAVE_CFLAGS="$CFLAGS" 4488 CFLAGS="$CFLAGS -belf" 4489 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4490echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } 4491if test "${lt_cv_cc_needs_belf+set}" = set; then 4492 echo $ECHO_N "(cached) $ECHO_C" >&6 4493else 4494 ac_ext=c 4495ac_cpp='$CPP $CPPFLAGS' 4496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4498ac_compiler_gnu=$ac_cv_c_compiler_gnu 4499 4500 cat >conftest.$ac_ext <<_ACEOF 4501/* confdefs.h. */ 4502_ACEOF 4503cat confdefs.h >>conftest.$ac_ext 4504cat >>conftest.$ac_ext <<_ACEOF 4505/* end confdefs.h. */ 4506 4507int 4508main () 4509{ 4510 4511 ; 4512 return 0; 4513} 4514_ACEOF 4515rm -f conftest.$ac_objext conftest$ac_exeext 4516if { (ac_try="$ac_link" 4517case "(($ac_try" in 4518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4519 *) ac_try_echo=$ac_try;; 4520esac 4521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4522 (eval "$ac_link") 2>conftest.er1 4523 ac_status=$? 4524 grep -v '^ *+' conftest.er1 >conftest.err 4525 rm -f conftest.er1 4526 cat conftest.err >&5 4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4528 (exit $ac_status); } && { 4529 test -z "$ac_c_werror_flag" || 4530 test ! -s conftest.err 4531 } && test -s conftest$ac_exeext && 4532 $as_test_x conftest$ac_exeext; then 4533 lt_cv_cc_needs_belf=yes 4534else 4535 echo "$as_me: failed program was:" >&5 4536sed 's/^/| /' conftest.$ac_ext >&5 4537 4538 lt_cv_cc_needs_belf=no 4539fi 4540 4541rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4542 conftest$ac_exeext conftest.$ac_ext 4543 ac_ext=c 4544ac_cpp='$CPP $CPPFLAGS' 4545ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4546ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4547ac_compiler_gnu=$ac_cv_c_compiler_gnu 4548 4549fi 4550{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4551echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } 4552 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4553 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4554 CFLAGS="$SAVE_CFLAGS" 4555 fi 4556 ;; 4557sparc*-*solaris*) 4558 # Find out which ABI we are using. 4559 echo 'int i;' > conftest.$ac_ext 4560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4561 (eval $ac_compile) 2>&5 4562 ac_status=$? 4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4564 (exit $ac_status); }; then 4565 case `/usr/bin/file conftest.o` in 4566 *64-bit*) 4567 case $lt_cv_prog_gnu_ld in 4568 yes*) LD="${LD-ld} -m elf64_sparc" ;; 4569 *) LD="${LD-ld} -64" ;; 4570 esac 4571 ;; 4572 esac 4573 fi 4574 rm -rf conftest* 4575 ;; 4576 4577 4578esac 4579 4580need_locks="$enable_libtool_lock" 4581 4582 4583ac_ext=c 4584ac_cpp='$CPP $CPPFLAGS' 4585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4587ac_compiler_gnu=$ac_cv_c_compiler_gnu 4588{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4589echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 4590# On Suns, sometimes $CPP names a directory. 4591if test -n "$CPP" && test -d "$CPP"; then 4592 CPP= 4593fi 4594if test -z "$CPP"; then 4595 if test "${ac_cv_prog_CPP+set}" = set; then 4596 echo $ECHO_N "(cached) $ECHO_C" >&6 4597else 4598 # Double quotes because CPP needs to be expanded 4599 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4600 do 4601 ac_preproc_ok=false 4602for ac_c_preproc_warn_flag in '' yes 4603do 4604 # Use a header file that comes with gcc, so configuring glibc 4605 # with a fresh cross-compiler works. 4606 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4607 # <limits.h> exists even on freestanding compilers. 4608 # On the NeXT, cc -E runs the code through the compiler's parser, 4609 # not just through cpp. "Syntax error" is here to catch this case. 4610 cat >conftest.$ac_ext <<_ACEOF 4611/* confdefs.h. */ 4612_ACEOF 4613cat confdefs.h >>conftest.$ac_ext 4614cat >>conftest.$ac_ext <<_ACEOF 4615/* end confdefs.h. */ 4616#ifdef __STDC__ 4617# include <limits.h> 4618#else 4619# include <assert.h> 4620#endif 4621 Syntax error 4622_ACEOF 4623if { (ac_try="$ac_cpp conftest.$ac_ext" 4624case "(($ac_try" in 4625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4626 *) ac_try_echo=$ac_try;; 4627esac 4628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4629 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4630 ac_status=$? 4631 grep -v '^ *+' conftest.er1 >conftest.err 4632 rm -f conftest.er1 4633 cat conftest.err >&5 4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4635 (exit $ac_status); } >/dev/null && { 4636 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4637 test ! -s conftest.err 4638 }; then 4639 : 4640else 4641 echo "$as_me: failed program was:" >&5 4642sed 's/^/| /' conftest.$ac_ext >&5 4643 4644 # Broken: fails on valid input. 4645continue 4646fi 4647 4648rm -f conftest.err conftest.$ac_ext 4649 4650 # OK, works on sane cases. Now check whether nonexistent headers 4651 # can be detected and how. 4652 cat >conftest.$ac_ext <<_ACEOF 4653/* confdefs.h. */ 4654_ACEOF 4655cat confdefs.h >>conftest.$ac_ext 4656cat >>conftest.$ac_ext <<_ACEOF 4657/* end confdefs.h. */ 4658#include <ac_nonexistent.h> 4659_ACEOF 4660if { (ac_try="$ac_cpp conftest.$ac_ext" 4661case "(($ac_try" in 4662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4663 *) ac_try_echo=$ac_try;; 4664esac 4665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4666 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4667 ac_status=$? 4668 grep -v '^ *+' conftest.er1 >conftest.err 4669 rm -f conftest.er1 4670 cat conftest.err >&5 4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4672 (exit $ac_status); } >/dev/null && { 4673 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4674 test ! -s conftest.err 4675 }; then 4676 # Broken: success on invalid input. 4677continue 4678else 4679 echo "$as_me: failed program was:" >&5 4680sed 's/^/| /' conftest.$ac_ext >&5 4681 4682 # Passes both tests. 4683ac_preproc_ok=: 4684break 4685fi 4686 4687rm -f conftest.err conftest.$ac_ext 4688 4689done 4690# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4691rm -f conftest.err conftest.$ac_ext 4692if $ac_preproc_ok; then 4693 break 4694fi 4695 4696 done 4697 ac_cv_prog_CPP=$CPP 4698 4699fi 4700 CPP=$ac_cv_prog_CPP 4701else 4702 ac_cv_prog_CPP=$CPP 4703fi 4704{ echo "$as_me:$LINENO: result: $CPP" >&5 4705echo "${ECHO_T}$CPP" >&6; } 4706ac_preproc_ok=false 4707for ac_c_preproc_warn_flag in '' yes 4708do 4709 # Use a header file that comes with gcc, so configuring glibc 4710 # with a fresh cross-compiler works. 4711 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4712 # <limits.h> exists even on freestanding compilers. 4713 # On the NeXT, cc -E runs the code through the compiler's parser, 4714 # not just through cpp. "Syntax error" is here to catch this case. 4715 cat >conftest.$ac_ext <<_ACEOF 4716/* confdefs.h. */ 4717_ACEOF 4718cat confdefs.h >>conftest.$ac_ext 4719cat >>conftest.$ac_ext <<_ACEOF 4720/* end confdefs.h. */ 4721#ifdef __STDC__ 4722# include <limits.h> 4723#else 4724# include <assert.h> 4725#endif 4726 Syntax error 4727_ACEOF 4728if { (ac_try="$ac_cpp conftest.$ac_ext" 4729case "(($ac_try" in 4730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4731 *) ac_try_echo=$ac_try;; 4732esac 4733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4734 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4735 ac_status=$? 4736 grep -v '^ *+' conftest.er1 >conftest.err 4737 rm -f conftest.er1 4738 cat conftest.err >&5 4739 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4740 (exit $ac_status); } >/dev/null && { 4741 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4742 test ! -s conftest.err 4743 }; then 4744 : 4745else 4746 echo "$as_me: failed program was:" >&5 4747sed 's/^/| /' conftest.$ac_ext >&5 4748 4749 # Broken: fails on valid input. 4750continue 4751fi 4752 4753rm -f conftest.err conftest.$ac_ext 4754 4755 # OK, works on sane cases. Now check whether nonexistent headers 4756 # can be detected and how. 4757 cat >conftest.$ac_ext <<_ACEOF 4758/* confdefs.h. */ 4759_ACEOF 4760cat confdefs.h >>conftest.$ac_ext 4761cat >>conftest.$ac_ext <<_ACEOF 4762/* end confdefs.h. */ 4763#include <ac_nonexistent.h> 4764_ACEOF 4765if { (ac_try="$ac_cpp conftest.$ac_ext" 4766case "(($ac_try" in 4767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4768 *) ac_try_echo=$ac_try;; 4769esac 4770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4771 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4772 ac_status=$? 4773 grep -v '^ *+' conftest.er1 >conftest.err 4774 rm -f conftest.er1 4775 cat conftest.err >&5 4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4777 (exit $ac_status); } >/dev/null && { 4778 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4779 test ! -s conftest.err 4780 }; then 4781 # Broken: success on invalid input. 4782continue 4783else 4784 echo "$as_me: failed program was:" >&5 4785sed 's/^/| /' conftest.$ac_ext >&5 4786 4787 # Passes both tests. 4788ac_preproc_ok=: 4789break 4790fi 4791 4792rm -f conftest.err conftest.$ac_ext 4793 4794done 4795# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4796rm -f conftest.err conftest.$ac_ext 4797if $ac_preproc_ok; then 4798 : 4799else 4800 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4801See \`config.log' for more details." >&5 4802echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4803See \`config.log' for more details." >&2;} 4804 { (exit 1); exit 1; }; } 4805fi 4806 4807ac_ext=c 4808ac_cpp='$CPP $CPPFLAGS' 4809ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4810ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4811ac_compiler_gnu=$ac_cv_c_compiler_gnu 4812 4813 4814{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4815echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4816if test "${ac_cv_header_stdc+set}" = set; then 4817 echo $ECHO_N "(cached) $ECHO_C" >&6 4818else 4819 cat >conftest.$ac_ext <<_ACEOF 4820/* confdefs.h. */ 4821_ACEOF 4822cat confdefs.h >>conftest.$ac_ext 4823cat >>conftest.$ac_ext <<_ACEOF 4824/* end confdefs.h. */ 4825#include <stdlib.h> 4826#include <stdarg.h> 4827#include <string.h> 4828#include <float.h> 4829 4830int 4831main () 4832{ 4833 4834 ; 4835 return 0; 4836} 4837_ACEOF 4838rm -f conftest.$ac_objext 4839if { (ac_try="$ac_compile" 4840case "(($ac_try" in 4841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4842 *) ac_try_echo=$ac_try;; 4843esac 4844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4845 (eval "$ac_compile") 2>conftest.er1 4846 ac_status=$? 4847 grep -v '^ *+' conftest.er1 >conftest.err 4848 rm -f conftest.er1 4849 cat conftest.err >&5 4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4851 (exit $ac_status); } && { 4852 test -z "$ac_c_werror_flag" || 4853 test ! -s conftest.err 4854 } && test -s conftest.$ac_objext; then 4855 ac_cv_header_stdc=yes 4856else 4857 echo "$as_me: failed program was:" >&5 4858sed 's/^/| /' conftest.$ac_ext >&5 4859 4860 ac_cv_header_stdc=no 4861fi 4862 4863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4864 4865if test $ac_cv_header_stdc = yes; then 4866 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4867 cat >conftest.$ac_ext <<_ACEOF 4868/* confdefs.h. */ 4869_ACEOF 4870cat confdefs.h >>conftest.$ac_ext 4871cat >>conftest.$ac_ext <<_ACEOF 4872/* end confdefs.h. */ 4873#include <string.h> 4874 4875_ACEOF 4876if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4877 $EGREP "memchr" >/dev/null 2>&1; then 4878 : 4879else 4880 ac_cv_header_stdc=no 4881fi 4882rm -f conftest* 4883 4884fi 4885 4886if test $ac_cv_header_stdc = yes; then 4887 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4888 cat >conftest.$ac_ext <<_ACEOF 4889/* confdefs.h. */ 4890_ACEOF 4891cat confdefs.h >>conftest.$ac_ext 4892cat >>conftest.$ac_ext <<_ACEOF 4893/* end confdefs.h. */ 4894#include <stdlib.h> 4895 4896_ACEOF 4897if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4898 $EGREP "free" >/dev/null 2>&1; then 4899 : 4900else 4901 ac_cv_header_stdc=no 4902fi 4903rm -f conftest* 4904 4905fi 4906 4907if test $ac_cv_header_stdc = yes; then 4908 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4909 if test "$cross_compiling" = yes; then 4910 : 4911else 4912 cat >conftest.$ac_ext <<_ACEOF 4913/* confdefs.h. */ 4914_ACEOF 4915cat confdefs.h >>conftest.$ac_ext 4916cat >>conftest.$ac_ext <<_ACEOF 4917/* end confdefs.h. */ 4918#include <ctype.h> 4919#include <stdlib.h> 4920#if ((' ' & 0x0FF) == 0x020) 4921# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4922# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4923#else 4924# define ISLOWER(c) \ 4925 (('a' <= (c) && (c) <= 'i') \ 4926 || ('j' <= (c) && (c) <= 'r') \ 4927 || ('s' <= (c) && (c) <= 'z')) 4928# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4929#endif 4930 4931#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4932int 4933main () 4934{ 4935 int i; 4936 for (i = 0; i < 256; i++) 4937 if (XOR (islower (i), ISLOWER (i)) 4938 || toupper (i) != TOUPPER (i)) 4939 return 2; 4940 return 0; 4941} 4942_ACEOF 4943rm -f conftest$ac_exeext 4944if { (ac_try="$ac_link" 4945case "(($ac_try" in 4946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4947 *) ac_try_echo=$ac_try;; 4948esac 4949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4950 (eval "$ac_link") 2>&5 4951 ac_status=$? 4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4953 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4954 { (case "(($ac_try" in 4955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4956 *) ac_try_echo=$ac_try;; 4957esac 4958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4959 (eval "$ac_try") 2>&5 4960 ac_status=$? 4961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4962 (exit $ac_status); }; }; then 4963 : 4964else 4965 echo "$as_me: program exited with status $ac_status" >&5 4966echo "$as_me: failed program was:" >&5 4967sed 's/^/| /' conftest.$ac_ext >&5 4968 4969( exit $ac_status ) 4970ac_cv_header_stdc=no 4971fi 4972rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4973fi 4974 4975 4976fi 4977fi 4978{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4979echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 4980if test $ac_cv_header_stdc = yes; then 4981 4982cat >>confdefs.h <<\_ACEOF 4983#define STDC_HEADERS 1 4984_ACEOF 4985 4986fi 4987 4988# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4999 inttypes.h stdint.h unistd.h 5000do 5001as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5002{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5003echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5004if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5005 echo $ECHO_N "(cached) $ECHO_C" >&6 5006else 5007 cat >conftest.$ac_ext <<_ACEOF 5008/* confdefs.h. */ 5009_ACEOF 5010cat confdefs.h >>conftest.$ac_ext 5011cat >>conftest.$ac_ext <<_ACEOF 5012/* end confdefs.h. */ 5013$ac_includes_default 5014 5015#include <$ac_header> 5016_ACEOF 5017rm -f conftest.$ac_objext 5018if { (ac_try="$ac_compile" 5019case "(($ac_try" in 5020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5021 *) ac_try_echo=$ac_try;; 5022esac 5023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5024 (eval "$ac_compile") 2>conftest.er1 5025 ac_status=$? 5026 grep -v '^ *+' conftest.er1 >conftest.err 5027 rm -f conftest.er1 5028 cat conftest.err >&5 5029 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5030 (exit $ac_status); } && { 5031 test -z "$ac_c_werror_flag" || 5032 test ! -s conftest.err 5033 } && test -s conftest.$ac_objext; then 5034 eval "$as_ac_Header=yes" 5035else 5036 echo "$as_me: failed program was:" >&5 5037sed 's/^/| /' conftest.$ac_ext >&5 5038 5039 eval "$as_ac_Header=no" 5040fi 5041 5042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5043fi 5044ac_res=`eval echo '${'$as_ac_Header'}'` 5045 { echo "$as_me:$LINENO: result: $ac_res" >&5 5046echo "${ECHO_T}$ac_res" >&6; } 5047if test `eval echo '${'$as_ac_Header'}'` = yes; then 5048 cat >>confdefs.h <<_ACEOF 5049#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5050_ACEOF 5051 5052fi 5053 5054done 5055 5056 5057 5058for ac_header in dlfcn.h 5059do 5060as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5061if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5062 { echo "$as_me:$LINENO: checking for $ac_header" >&5 5063echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5064if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5065 echo $ECHO_N "(cached) $ECHO_C" >&6 5066fi 5067ac_res=`eval echo '${'$as_ac_Header'}'` 5068 { echo "$as_me:$LINENO: result: $ac_res" >&5 5069echo "${ECHO_T}$ac_res" >&6; } 5070else 5071 # Is the header compilable? 5072{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 5073echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 5074cat >conftest.$ac_ext <<_ACEOF 5075/* confdefs.h. */ 5076_ACEOF 5077cat confdefs.h >>conftest.$ac_ext 5078cat >>conftest.$ac_ext <<_ACEOF 5079/* end confdefs.h. */ 5080$ac_includes_default 5081#include <$ac_header> 5082_ACEOF 5083rm -f conftest.$ac_objext 5084if { (ac_try="$ac_compile" 5085case "(($ac_try" in 5086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5087 *) ac_try_echo=$ac_try;; 5088esac 5089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5090 (eval "$ac_compile") 2>conftest.er1 5091 ac_status=$? 5092 grep -v '^ *+' conftest.er1 >conftest.err 5093 rm -f conftest.er1 5094 cat conftest.err >&5 5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5096 (exit $ac_status); } && { 5097 test -z "$ac_c_werror_flag" || 5098 test ! -s conftest.err 5099 } && test -s conftest.$ac_objext; then 5100 ac_header_compiler=yes 5101else 5102 echo "$as_me: failed program was:" >&5 5103sed 's/^/| /' conftest.$ac_ext >&5 5104 5105 ac_header_compiler=no 5106fi 5107 5108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5109{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5110echo "${ECHO_T}$ac_header_compiler" >&6; } 5111 5112# Is the header present? 5113{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 5114echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 5115cat >conftest.$ac_ext <<_ACEOF 5116/* confdefs.h. */ 5117_ACEOF 5118cat confdefs.h >>conftest.$ac_ext 5119cat >>conftest.$ac_ext <<_ACEOF 5120/* end confdefs.h. */ 5121#include <$ac_header> 5122_ACEOF 5123if { (ac_try="$ac_cpp conftest.$ac_ext" 5124case "(($ac_try" in 5125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5126 *) ac_try_echo=$ac_try;; 5127esac 5128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5129 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5130 ac_status=$? 5131 grep -v '^ *+' conftest.er1 >conftest.err 5132 rm -f conftest.er1 5133 cat conftest.err >&5 5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5135 (exit $ac_status); } >/dev/null && { 5136 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5137 test ! -s conftest.err 5138 }; then 5139 ac_header_preproc=yes 5140else 5141 echo "$as_me: failed program was:" >&5 5142sed 's/^/| /' conftest.$ac_ext >&5 5143 5144 ac_header_preproc=no 5145fi 5146 5147rm -f conftest.err conftest.$ac_ext 5148{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5149echo "${ECHO_T}$ac_header_preproc" >&6; } 5150 5151# So? What about this header? 5152case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5153 yes:no: ) 5154 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5155echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5156 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5157echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5158 ac_header_preproc=yes 5159 ;; 5160 no:yes:* ) 5161 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5162echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5163 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5164echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5165 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5166echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5167 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5168echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5170echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5171 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5172echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5173 ( cat <<\_ASBOX 5174## ---------------------------------------------------------------------- ## 5175## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 5176## ---------------------------------------------------------------------- ## 5177_ASBOX 5178 ) | sed "s/^/$as_me: WARNING: /" >&2 5179 ;; 5180esac 5181{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5182echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5183if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5184 echo $ECHO_N "(cached) $ECHO_C" >&6 5185else 5186 eval "$as_ac_Header=\$ac_header_preproc" 5187fi 5188ac_res=`eval echo '${'$as_ac_Header'}'` 5189 { echo "$as_me:$LINENO: result: $ac_res" >&5 5190echo "${ECHO_T}$ac_res" >&6; } 5191 5192fi 5193if test `eval echo '${'$as_ac_Header'}'` = yes; then 5194 cat >>confdefs.h <<_ACEOF 5195#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5196_ACEOF 5197 5198fi 5199 5200done 5201 5202ac_ext=cpp 5203ac_cpp='$CXXCPP $CPPFLAGS' 5204ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5205ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5206ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5207if test -z "$CXX"; then 5208 if test -n "$CCC"; then 5209 CXX=$CCC 5210 else 5211 if test -n "$ac_tool_prefix"; then 5212 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5213 do 5214 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5215set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5216{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5217echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5218if test "${ac_cv_prog_CXX+set}" = set; then 5219 echo $ECHO_N "(cached) $ECHO_C" >&6 5220else 5221 if test -n "$CXX"; then 5222 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5223else 5224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5225for as_dir in $PATH 5226do 5227 IFS=$as_save_IFS 5228 test -z "$as_dir" && as_dir=. 5229 for ac_exec_ext in '' $ac_executable_extensions; do 5230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5231 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5233 break 2 5234 fi 5235done 5236done 5237IFS=$as_save_IFS 5238 5239fi 5240fi 5241CXX=$ac_cv_prog_CXX 5242if test -n "$CXX"; then 5243 { echo "$as_me:$LINENO: result: $CXX" >&5 5244echo "${ECHO_T}$CXX" >&6; } 5245else 5246 { echo "$as_me:$LINENO: result: no" >&5 5247echo "${ECHO_T}no" >&6; } 5248fi 5249 5250 5251 test -n "$CXX" && break 5252 done 5253fi 5254if test -z "$CXX"; then 5255 ac_ct_CXX=$CXX 5256 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5257do 5258 # Extract the first word of "$ac_prog", so it can be a program name with args. 5259set dummy $ac_prog; ac_word=$2 5260{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5261echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5262if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 5263 echo $ECHO_N "(cached) $ECHO_C" >&6 5264else 5265 if test -n "$ac_ct_CXX"; then 5266 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5267else 5268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5269for as_dir in $PATH 5270do 5271 IFS=$as_save_IFS 5272 test -z "$as_dir" && as_dir=. 5273 for ac_exec_ext in '' $ac_executable_extensions; do 5274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5275 ac_cv_prog_ac_ct_CXX="$ac_prog" 5276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5277 break 2 5278 fi 5279done 5280done 5281IFS=$as_save_IFS 5282 5283fi 5284fi 5285ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5286if test -n "$ac_ct_CXX"; then 5287 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 5288echo "${ECHO_T}$ac_ct_CXX" >&6; } 5289else 5290 { echo "$as_me:$LINENO: result: no" >&5 5291echo "${ECHO_T}no" >&6; } 5292fi 5293 5294 5295 test -n "$ac_ct_CXX" && break 5296done 5297 5298 if test "x$ac_ct_CXX" = x; then 5299 CXX="g++" 5300 else 5301 case $cross_compiling:$ac_tool_warned in 5302yes:) 5303{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5304whose name does not start with the host triplet. If you think this 5305configuration is useful to you, please write to autoconf@gnu.org." >&5 5306echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5307whose name does not start with the host triplet. If you think this 5308configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5309ac_tool_warned=yes ;; 5310esac 5311 CXX=$ac_ct_CXX 5312 fi 5313fi 5314 5315 fi 5316fi 5317# Provide some information about the compiler. 5318echo "$as_me:$LINENO: checking for C++ compiler version" >&5 5319ac_compiler=`set X $ac_compile; echo $2` 5320{ (ac_try="$ac_compiler --version >&5" 5321case "(($ac_try" in 5322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5323 *) ac_try_echo=$ac_try;; 5324esac 5325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5326 (eval "$ac_compiler --version >&5") 2>&5 5327 ac_status=$? 5328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5329 (exit $ac_status); } 5330{ (ac_try="$ac_compiler -v >&5" 5331case "(($ac_try" in 5332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5333 *) ac_try_echo=$ac_try;; 5334esac 5335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5336 (eval "$ac_compiler -v >&5") 2>&5 5337 ac_status=$? 5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5339 (exit $ac_status); } 5340{ (ac_try="$ac_compiler -V >&5" 5341case "(($ac_try" in 5342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5343 *) ac_try_echo=$ac_try;; 5344esac 5345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5346 (eval "$ac_compiler -V >&5") 2>&5 5347 ac_status=$? 5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5349 (exit $ac_status); } 5350 5351{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5352echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 5353if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5354 echo $ECHO_N "(cached) $ECHO_C" >&6 5355else 5356 cat >conftest.$ac_ext <<_ACEOF 5357/* confdefs.h. */ 5358_ACEOF 5359cat confdefs.h >>conftest.$ac_ext 5360cat >>conftest.$ac_ext <<_ACEOF 5361/* end confdefs.h. */ 5362 5363int 5364main () 5365{ 5366#ifndef __GNUC__ 5367 choke me 5368#endif 5369 5370 ; 5371 return 0; 5372} 5373_ACEOF 5374rm -f conftest.$ac_objext 5375if { (ac_try="$ac_compile" 5376case "(($ac_try" in 5377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5378 *) ac_try_echo=$ac_try;; 5379esac 5380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5381 (eval "$ac_compile") 2>conftest.er1 5382 ac_status=$? 5383 grep -v '^ *+' conftest.er1 >conftest.err 5384 rm -f conftest.er1 5385 cat conftest.err >&5 5386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5387 (exit $ac_status); } && { 5388 test -z "$ac_cxx_werror_flag" || 5389 test ! -s conftest.err 5390 } && test -s conftest.$ac_objext; then 5391 ac_compiler_gnu=yes 5392else 5393 echo "$as_me: failed program was:" >&5 5394sed 's/^/| /' conftest.$ac_ext >&5 5395 5396 ac_compiler_gnu=no 5397fi 5398 5399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5400ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5401 5402fi 5403{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 5404echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 5405GXX=`test $ac_compiler_gnu = yes && echo yes` 5406ac_test_CXXFLAGS=${CXXFLAGS+set} 5407ac_save_CXXFLAGS=$CXXFLAGS 5408{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 5409echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 5410if test "${ac_cv_prog_cxx_g+set}" = set; then 5411 echo $ECHO_N "(cached) $ECHO_C" >&6 5412else 5413 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5414 ac_cxx_werror_flag=yes 5415 ac_cv_prog_cxx_g=no 5416 CXXFLAGS="-g" 5417 cat >conftest.$ac_ext <<_ACEOF 5418/* confdefs.h. */ 5419_ACEOF 5420cat confdefs.h >>conftest.$ac_ext 5421cat >>conftest.$ac_ext <<_ACEOF 5422/* end confdefs.h. */ 5423 5424int 5425main () 5426{ 5427 5428 ; 5429 return 0; 5430} 5431_ACEOF 5432rm -f conftest.$ac_objext 5433if { (ac_try="$ac_compile" 5434case "(($ac_try" in 5435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5436 *) ac_try_echo=$ac_try;; 5437esac 5438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5439 (eval "$ac_compile") 2>conftest.er1 5440 ac_status=$? 5441 grep -v '^ *+' conftest.er1 >conftest.err 5442 rm -f conftest.er1 5443 cat conftest.err >&5 5444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5445 (exit $ac_status); } && { 5446 test -z "$ac_cxx_werror_flag" || 5447 test ! -s conftest.err 5448 } && test -s conftest.$ac_objext; then 5449 ac_cv_prog_cxx_g=yes 5450else 5451 echo "$as_me: failed program was:" >&5 5452sed 's/^/| /' conftest.$ac_ext >&5 5453 5454 CXXFLAGS="" 5455 cat >conftest.$ac_ext <<_ACEOF 5456/* confdefs.h. */ 5457_ACEOF 5458cat confdefs.h >>conftest.$ac_ext 5459cat >>conftest.$ac_ext <<_ACEOF 5460/* end confdefs.h. */ 5461 5462int 5463main () 5464{ 5465 5466 ; 5467 return 0; 5468} 5469_ACEOF 5470rm -f conftest.$ac_objext 5471if { (ac_try="$ac_compile" 5472case "(($ac_try" in 5473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5474 *) ac_try_echo=$ac_try;; 5475esac 5476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5477 (eval "$ac_compile") 2>conftest.er1 5478 ac_status=$? 5479 grep -v '^ *+' conftest.er1 >conftest.err 5480 rm -f conftest.er1 5481 cat conftest.err >&5 5482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5483 (exit $ac_status); } && { 5484 test -z "$ac_cxx_werror_flag" || 5485 test ! -s conftest.err 5486 } && test -s conftest.$ac_objext; then 5487 : 5488else 5489 echo "$as_me: failed program was:" >&5 5490sed 's/^/| /' conftest.$ac_ext >&5 5491 5492 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5493 CXXFLAGS="-g" 5494 cat >conftest.$ac_ext <<_ACEOF 5495/* confdefs.h. */ 5496_ACEOF 5497cat confdefs.h >>conftest.$ac_ext 5498cat >>conftest.$ac_ext <<_ACEOF 5499/* end confdefs.h. */ 5500 5501int 5502main () 5503{ 5504 5505 ; 5506 return 0; 5507} 5508_ACEOF 5509rm -f conftest.$ac_objext 5510if { (ac_try="$ac_compile" 5511case "(($ac_try" in 5512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5513 *) ac_try_echo=$ac_try;; 5514esac 5515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5516 (eval "$ac_compile") 2>conftest.er1 5517 ac_status=$? 5518 grep -v '^ *+' conftest.er1 >conftest.err 5519 rm -f conftest.er1 5520 cat conftest.err >&5 5521 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5522 (exit $ac_status); } && { 5523 test -z "$ac_cxx_werror_flag" || 5524 test ! -s conftest.err 5525 } && test -s conftest.$ac_objext; then 5526 ac_cv_prog_cxx_g=yes 5527else 5528 echo "$as_me: failed program was:" >&5 5529sed 's/^/| /' conftest.$ac_ext >&5 5530 5531 5532fi 5533 5534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5535fi 5536 5537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5538fi 5539 5540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5541 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5542fi 5543{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 5544echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 5545if test "$ac_test_CXXFLAGS" = set; then 5546 CXXFLAGS=$ac_save_CXXFLAGS 5547elif test $ac_cv_prog_cxx_g = yes; then 5548 if test "$GXX" = yes; then 5549 CXXFLAGS="-g -O2" 5550 else 5551 CXXFLAGS="-g" 5552 fi 5553else 5554 if test "$GXX" = yes; then 5555 CXXFLAGS="-O2" 5556 else 5557 CXXFLAGS= 5558 fi 5559fi 5560ac_ext=cpp 5561ac_cpp='$CXXCPP $CPPFLAGS' 5562ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5563ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5564ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5565 5566depcc="$CXX" am_compiler_list= 5567 5568{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5569echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 5570if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 5571 echo $ECHO_N "(cached) $ECHO_C" >&6 5572else 5573 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5574 # We make a subdir and do the tests there. Otherwise we can end up 5575 # making bogus files that we don't know about and never remove. For 5576 # instance it was reported that on HP-UX the gcc test will end up 5577 # making a dummy file named `D' -- because `-MD' means `put the output 5578 # in D'. 5579 mkdir conftest.dir 5580 # Copy depcomp to subdir because otherwise we won't find it if we're 5581 # using a relative directory. 5582 cp "$am_depcomp" conftest.dir 5583 cd conftest.dir 5584 # We will build objects and dependencies in a subdirectory because 5585 # it helps to detect inapplicable dependency modes. For instance 5586 # both Tru64's cc and ICC support -MD to output dependencies as a 5587 # side effect of compilation, but ICC will put the dependencies in 5588 # the current directory while Tru64 will put them in the object 5589 # directory. 5590 mkdir sub 5591 5592 am_cv_CXX_dependencies_compiler_type=none 5593 if test "$am_compiler_list" = ""; then 5594 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5595 fi 5596 for depmode in $am_compiler_list; do 5597 # Setup a source with many dependencies, because some compilers 5598 # like to wrap large dependency lists on column 80 (with \), and 5599 # we should not choose a depcomp mode which is confused by this. 5600 # 5601 # We need to recreate these files for each test, as the compiler may 5602 # overwrite some of them when testing with obscure command lines. 5603 # This happens at least with the AIX C compiler. 5604 : > sub/conftest.c 5605 for i in 1 2 3 4 5 6; do 5606 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5607 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5608 # Solaris 8's {/usr,}/bin/sh. 5609 touch sub/conftst$i.h 5610 done 5611 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5612 5613 case $depmode in 5614 nosideeffect) 5615 # after this tag, mechanisms are not by side-effect, so they'll 5616 # only be used when explicitly requested 5617 if test "x$enable_dependency_tracking" = xyes; then 5618 continue 5619 else 5620 break 5621 fi 5622 ;; 5623 none) break ;; 5624 esac 5625 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5626 # mode. It turns out that the SunPro C++ compiler does not properly 5627 # handle `-M -o', and we need to detect this. 5628 if depmode=$depmode \ 5629 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5630 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5631 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5632 >/dev/null 2>conftest.err && 5633 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5634 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5635 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5636 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5637 # icc doesn't choke on unknown options, it will just issue warnings 5638 # or remarks (even with -Werror). So we grep stderr for any message 5639 # that says an option was ignored or not supported. 5640 # When given -MP, icc 7.0 and 7.1 complain thusly: 5641 # icc: Command line warning: ignoring option '-M'; no argument required 5642 # The diagnosis changed in icc 8.0: 5643 # icc: Command line remark: option '-MP' not supported 5644 if (grep 'ignoring option' conftest.err || 5645 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5646 am_cv_CXX_dependencies_compiler_type=$depmode 5647 break 5648 fi 5649 fi 5650 done 5651 5652 cd .. 5653 rm -rf conftest.dir 5654else 5655 am_cv_CXX_dependencies_compiler_type=none 5656fi 5657 5658fi 5659{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 5660echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } 5661CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5662 5663 if 5664 test "x$enable_dependency_tracking" != xno \ 5665 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5666 am__fastdepCXX_TRUE= 5667 am__fastdepCXX_FALSE='#' 5668else 5669 am__fastdepCXX_TRUE='#' 5670 am__fastdepCXX_FALSE= 5671fi 5672 5673 5674 5675 5676if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5677 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5678 (test "X$CXX" != "Xg++"))) ; then 5679 ac_ext=cpp 5680ac_cpp='$CXXCPP $CPPFLAGS' 5681ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5682ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5683ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5684{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5685echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 5686if test -z "$CXXCPP"; then 5687 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5688 echo $ECHO_N "(cached) $ECHO_C" >&6 5689else 5690 # Double quotes because CXXCPP needs to be expanded 5691 for CXXCPP in "$CXX -E" "/lib/cpp" 5692 do 5693 ac_preproc_ok=false 5694for ac_cxx_preproc_warn_flag in '' yes 5695do 5696 # Use a header file that comes with gcc, so configuring glibc 5697 # with a fresh cross-compiler works. 5698 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5699 # <limits.h> exists even on freestanding compilers. 5700 # On the NeXT, cc -E runs the code through the compiler's parser, 5701 # not just through cpp. "Syntax error" is here to catch this case. 5702 cat >conftest.$ac_ext <<_ACEOF 5703/* confdefs.h. */ 5704_ACEOF 5705cat confdefs.h >>conftest.$ac_ext 5706cat >>conftest.$ac_ext <<_ACEOF 5707/* end confdefs.h. */ 5708#ifdef __STDC__ 5709# include <limits.h> 5710#else 5711# include <assert.h> 5712#endif 5713 Syntax error 5714_ACEOF 5715if { (ac_try="$ac_cpp conftest.$ac_ext" 5716case "(($ac_try" in 5717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5718 *) ac_try_echo=$ac_try;; 5719esac 5720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5721 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5722 ac_status=$? 5723 grep -v '^ *+' conftest.er1 >conftest.err 5724 rm -f conftest.er1 5725 cat conftest.err >&5 5726 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5727 (exit $ac_status); } >/dev/null && { 5728 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5729 test ! -s conftest.err 5730 }; then 5731 : 5732else 5733 echo "$as_me: failed program was:" >&5 5734sed 's/^/| /' conftest.$ac_ext >&5 5735 5736 # Broken: fails on valid input. 5737continue 5738fi 5739 5740rm -f conftest.err conftest.$ac_ext 5741 5742 # OK, works on sane cases. Now check whether nonexistent headers 5743 # can be detected and how. 5744 cat >conftest.$ac_ext <<_ACEOF 5745/* confdefs.h. */ 5746_ACEOF 5747cat confdefs.h >>conftest.$ac_ext 5748cat >>conftest.$ac_ext <<_ACEOF 5749/* end confdefs.h. */ 5750#include <ac_nonexistent.h> 5751_ACEOF 5752if { (ac_try="$ac_cpp conftest.$ac_ext" 5753case "(($ac_try" in 5754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5755 *) ac_try_echo=$ac_try;; 5756esac 5757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5758 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5759 ac_status=$? 5760 grep -v '^ *+' conftest.er1 >conftest.err 5761 rm -f conftest.er1 5762 cat conftest.err >&5 5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5764 (exit $ac_status); } >/dev/null && { 5765 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5766 test ! -s conftest.err 5767 }; then 5768 # Broken: success on invalid input. 5769continue 5770else 5771 echo "$as_me: failed program was:" >&5 5772sed 's/^/| /' conftest.$ac_ext >&5 5773 5774 # Passes both tests. 5775ac_preproc_ok=: 5776break 5777fi 5778 5779rm -f conftest.err conftest.$ac_ext 5780 5781done 5782# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5783rm -f conftest.err conftest.$ac_ext 5784if $ac_preproc_ok; then 5785 break 5786fi 5787 5788 done 5789 ac_cv_prog_CXXCPP=$CXXCPP 5790 5791fi 5792 CXXCPP=$ac_cv_prog_CXXCPP 5793else 5794 ac_cv_prog_CXXCPP=$CXXCPP 5795fi 5796{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 5797echo "${ECHO_T}$CXXCPP" >&6; } 5798ac_preproc_ok=false 5799for ac_cxx_preproc_warn_flag in '' yes 5800do 5801 # Use a header file that comes with gcc, so configuring glibc 5802 # with a fresh cross-compiler works. 5803 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5804 # <limits.h> exists even on freestanding compilers. 5805 # On the NeXT, cc -E runs the code through the compiler's parser, 5806 # not just through cpp. "Syntax error" is here to catch this case. 5807 cat >conftest.$ac_ext <<_ACEOF 5808/* confdefs.h. */ 5809_ACEOF 5810cat confdefs.h >>conftest.$ac_ext 5811cat >>conftest.$ac_ext <<_ACEOF 5812/* end confdefs.h. */ 5813#ifdef __STDC__ 5814# include <limits.h> 5815#else 5816# include <assert.h> 5817#endif 5818 Syntax error 5819_ACEOF 5820if { (ac_try="$ac_cpp conftest.$ac_ext" 5821case "(($ac_try" in 5822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5823 *) ac_try_echo=$ac_try;; 5824esac 5825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5827 ac_status=$? 5828 grep -v '^ *+' conftest.er1 >conftest.err 5829 rm -f conftest.er1 5830 cat conftest.err >&5 5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5832 (exit $ac_status); } >/dev/null && { 5833 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5834 test ! -s conftest.err 5835 }; then 5836 : 5837else 5838 echo "$as_me: failed program was:" >&5 5839sed 's/^/| /' conftest.$ac_ext >&5 5840 5841 # Broken: fails on valid input. 5842continue 5843fi 5844 5845rm -f conftest.err conftest.$ac_ext 5846 5847 # OK, works on sane cases. Now check whether nonexistent headers 5848 # can be detected and how. 5849 cat >conftest.$ac_ext <<_ACEOF 5850/* confdefs.h. */ 5851_ACEOF 5852cat confdefs.h >>conftest.$ac_ext 5853cat >>conftest.$ac_ext <<_ACEOF 5854/* end confdefs.h. */ 5855#include <ac_nonexistent.h> 5856_ACEOF 5857if { (ac_try="$ac_cpp conftest.$ac_ext" 5858case "(($ac_try" in 5859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5860 *) ac_try_echo=$ac_try;; 5861esac 5862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5863 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5864 ac_status=$? 5865 grep -v '^ *+' conftest.er1 >conftest.err 5866 rm -f conftest.er1 5867 cat conftest.err >&5 5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5869 (exit $ac_status); } >/dev/null && { 5870 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5871 test ! -s conftest.err 5872 }; then 5873 # Broken: success on invalid input. 5874continue 5875else 5876 echo "$as_me: failed program was:" >&5 5877sed 's/^/| /' conftest.$ac_ext >&5 5878 5879 # Passes both tests. 5880ac_preproc_ok=: 5881break 5882fi 5883 5884rm -f conftest.err conftest.$ac_ext 5885 5886done 5887# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5888rm -f conftest.err conftest.$ac_ext 5889if $ac_preproc_ok; then 5890 : 5891else 5892 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5893See \`config.log' for more details." >&5 5894echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5895See \`config.log' for more details." >&2;} 5896 { (exit 1); exit 1; }; } 5897fi 5898 5899ac_ext=cpp 5900ac_cpp='$CXXCPP $CPPFLAGS' 5901ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5902ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5903ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5904 5905fi 5906 5907 5908ac_ext=f 5909ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5910ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5911ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5912if test -n "$ac_tool_prefix"; then 5913 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 5914 do 5915 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5916set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5917{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5918echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5919if test "${ac_cv_prog_F77+set}" = set; then 5920 echo $ECHO_N "(cached) $ECHO_C" >&6 5921else 5922 if test -n "$F77"; then 5923 ac_cv_prog_F77="$F77" # Let the user override the test. 5924else 5925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5926for as_dir in $PATH 5927do 5928 IFS=$as_save_IFS 5929 test -z "$as_dir" && as_dir=. 5930 for ac_exec_ext in '' $ac_executable_extensions; do 5931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5932 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 5933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5934 break 2 5935 fi 5936done 5937done 5938IFS=$as_save_IFS 5939 5940fi 5941fi 5942F77=$ac_cv_prog_F77 5943if test -n "$F77"; then 5944 { echo "$as_me:$LINENO: result: $F77" >&5 5945echo "${ECHO_T}$F77" >&6; } 5946else 5947 { echo "$as_me:$LINENO: result: no" >&5 5948echo "${ECHO_T}no" >&6; } 5949fi 5950 5951 5952 test -n "$F77" && break 5953 done 5954fi 5955if test -z "$F77"; then 5956 ac_ct_F77=$F77 5957 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 5958do 5959 # Extract the first word of "$ac_prog", so it can be a program name with args. 5960set dummy $ac_prog; ac_word=$2 5961{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5962echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5963if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 5964 echo $ECHO_N "(cached) $ECHO_C" >&6 5965else 5966 if test -n "$ac_ct_F77"; then 5967 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 5968else 5969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5970for as_dir in $PATH 5971do 5972 IFS=$as_save_IFS 5973 test -z "$as_dir" && as_dir=. 5974 for ac_exec_ext in '' $ac_executable_extensions; do 5975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5976 ac_cv_prog_ac_ct_F77="$ac_prog" 5977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5978 break 2 5979 fi 5980done 5981done 5982IFS=$as_save_IFS 5983 5984fi 5985fi 5986ac_ct_F77=$ac_cv_prog_ac_ct_F77 5987if test -n "$ac_ct_F77"; then 5988 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 5989echo "${ECHO_T}$ac_ct_F77" >&6; } 5990else 5991 { echo "$as_me:$LINENO: result: no" >&5 5992echo "${ECHO_T}no" >&6; } 5993fi 5994 5995 5996 test -n "$ac_ct_F77" && break 5997done 5998 5999 if test "x$ac_ct_F77" = x; then 6000 F77="" 6001 else 6002 case $cross_compiling:$ac_tool_warned in 6003yes:) 6004{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6005whose name does not start with the host triplet. If you think this 6006configuration is useful to you, please write to autoconf@gnu.org." >&5 6007echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6008whose name does not start with the host triplet. If you think this 6009configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6010ac_tool_warned=yes ;; 6011esac 6012 F77=$ac_ct_F77 6013 fi 6014fi 6015 6016 6017# Provide some information about the compiler. 6018echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 6019ac_compiler=`set X $ac_compile; echo $2` 6020{ (ac_try="$ac_compiler --version >&5" 6021case "(($ac_try" in 6022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6023 *) ac_try_echo=$ac_try;; 6024esac 6025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6026 (eval "$ac_compiler --version >&5") 2>&5 6027 ac_status=$? 6028 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6029 (exit $ac_status); } 6030{ (ac_try="$ac_compiler -v >&5" 6031case "(($ac_try" in 6032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6033 *) ac_try_echo=$ac_try;; 6034esac 6035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6036 (eval "$ac_compiler -v >&5") 2>&5 6037 ac_status=$? 6038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6039 (exit $ac_status); } 6040{ (ac_try="$ac_compiler -V >&5" 6041case "(($ac_try" in 6042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6043 *) ac_try_echo=$ac_try;; 6044esac 6045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6046 (eval "$ac_compiler -V >&5") 2>&5 6047 ac_status=$? 6048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6049 (exit $ac_status); } 6050rm -f a.out 6051 6052# If we don't use `.F' as extension, the preprocessor is not run on the 6053# input file. (Note that this only needs to work for GNU compilers.) 6054ac_save_ext=$ac_ext 6055ac_ext=F 6056{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 6057echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } 6058if test "${ac_cv_f77_compiler_gnu+set}" = set; then 6059 echo $ECHO_N "(cached) $ECHO_C" >&6 6060else 6061 cat >conftest.$ac_ext <<_ACEOF 6062 program main 6063#ifndef __GNUC__ 6064 choke me 6065#endif 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_compiler_gnu=yes 6087else 6088 echo "$as_me: failed program was:" >&5 6089sed 's/^/| /' conftest.$ac_ext >&5 6090 6091 ac_compiler_gnu=no 6092fi 6093 6094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6095ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6096 6097fi 6098{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 6099echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } 6100ac_ext=$ac_save_ext 6101ac_test_FFLAGS=${FFLAGS+set} 6102ac_save_FFLAGS=$FFLAGS 6103FFLAGS= 6104{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 6105echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } 6106if test "${ac_cv_prog_f77_g+set}" = set; then 6107 echo $ECHO_N "(cached) $ECHO_C" >&6 6108else 6109 FFLAGS=-g 6110cat >conftest.$ac_ext <<_ACEOF 6111 program main 6112 6113 end 6114_ACEOF 6115rm -f conftest.$ac_objext 6116if { (ac_try="$ac_compile" 6117case "(($ac_try" in 6118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6119 *) ac_try_echo=$ac_try;; 6120esac 6121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6122 (eval "$ac_compile") 2>conftest.er1 6123 ac_status=$? 6124 grep -v '^ *+' conftest.er1 >conftest.err 6125 rm -f conftest.er1 6126 cat conftest.err >&5 6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6128 (exit $ac_status); } && { 6129 test -z "$ac_f77_werror_flag" || 6130 test ! -s conftest.err 6131 } && test -s conftest.$ac_objext; then 6132 ac_cv_prog_f77_g=yes 6133else 6134 echo "$as_me: failed program was:" >&5 6135sed 's/^/| /' conftest.$ac_ext >&5 6136 6137 ac_cv_prog_f77_g=no 6138fi 6139 6140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6141 6142fi 6143{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6144echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } 6145if test "$ac_test_FFLAGS" = set; then 6146 FFLAGS=$ac_save_FFLAGS 6147elif test $ac_cv_prog_f77_g = yes; then 6148 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6149 FFLAGS="-g -O2" 6150 else 6151 FFLAGS="-g" 6152 fi 6153else 6154 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6155 FFLAGS="-O2" 6156 else 6157 FFLAGS= 6158 fi 6159fi 6160 6161G77=`test $ac_compiler_gnu = yes && echo yes` 6162ac_ext=c 6163ac_cpp='$CPP $CPPFLAGS' 6164ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6165ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6166ac_compiler_gnu=$ac_cv_c_compiler_gnu 6167 6168 6169 6170# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6171 6172# find the maximum length of command line arguments 6173{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6174echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } 6175if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6176 echo $ECHO_N "(cached) $ECHO_C" >&6 6177else 6178 i=0 6179 teststring="ABCD" 6180 6181 case $build_os in 6182 msdosdjgpp*) 6183 # On DJGPP, this test can blow up pretty badly due to problems in libc 6184 # (any single argument exceeding 2000 bytes causes a buffer overrun 6185 # during glob expansion). Even if it were fixed, the result of this 6186 # check would be larger than it should be. 6187 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6188 ;; 6189 6190 gnu*) 6191 # Under GNU Hurd, this test is not required because there is 6192 # no limit to the length of command line arguments. 6193 # Libtool will interpret -1 as no limit whatsoever 6194 lt_cv_sys_max_cmd_len=-1; 6195 ;; 6196 6197 cygwin* | mingw*) 6198 # On Win9x/ME, this test blows up -- it succeeds, but takes 6199 # about 5 minutes as the teststring grows exponentially. 6200 # Worse, since 9x/ME are not pre-emptively multitasking, 6201 # you end up with a "frozen" computer, even though with patience 6202 # the test eventually succeeds (with a max line length of 256k). 6203 # Instead, let's just punt: use the minimum linelength reported by 6204 # all of the supported platforms: 8192 (on NT/2K/XP). 6205 lt_cv_sys_max_cmd_len=8192; 6206 ;; 6207 6208 amigaos*) 6209 # On AmigaOS with pdksh, this test takes hours, literally. 6210 # So we just punt and use a minimum line length of 8192. 6211 lt_cv_sys_max_cmd_len=8192; 6212 ;; 6213 6214 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6215 # This has been around since 386BSD, at least. Likely further. 6216 if test -x /sbin/sysctl; then 6217 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6218 elif test -x /usr/sbin/sysctl; then 6219 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6220 else 6221 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6222 fi 6223 # And add a safety zone 6224 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6225 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6226 ;; 6227 6228 interix*) 6229 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6230 lt_cv_sys_max_cmd_len=196608 6231 ;; 6232 6233 osf*) 6234 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6235 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6236 # nice to cause kernel panics so lets avoid the loop below. 6237 # First set a reasonable default. 6238 lt_cv_sys_max_cmd_len=16384 6239 # 6240 if test -x /sbin/sysconfig; then 6241 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6242 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6243 esac 6244 fi 6245 ;; 6246 sco3.2v5*) 6247 lt_cv_sys_max_cmd_len=102400 6248 ;; 6249 sysv5* | sco5v6* | sysv4.2uw2*) 6250 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6251 if test -n "$kargmax"; then 6252 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6253 else 6254 lt_cv_sys_max_cmd_len=32768 6255 fi 6256 ;; 6257 *) 6258 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6259 if test -n "$lt_cv_sys_max_cmd_len"; then 6260 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6261 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6262 else 6263 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6264 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6265 = "XX$teststring") >/dev/null 2>&1 && 6266 new_result=`expr "X$teststring" : ".*" 2>&1` && 6267 lt_cv_sys_max_cmd_len=$new_result && 6268 test $i != 17 # 1/2 MB should be enough 6269 do 6270 i=`expr $i + 1` 6271 teststring=$teststring$teststring 6272 done 6273 teststring= 6274 # Add a significant safety factor because C++ compilers can tack on massive 6275 # amounts of additional arguments before passing them to the linker. 6276 # It appears as though 1/2 is a usable value. 6277 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6278 fi 6279 ;; 6280 esac 6281 6282fi 6283 6284if test -n $lt_cv_sys_max_cmd_len ; then 6285 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6286echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } 6287else 6288 { echo "$as_me:$LINENO: result: none" >&5 6289echo "${ECHO_T}none" >&6; } 6290fi 6291 6292 6293 6294 6295 6296# Check for command to grab the raw symbol name followed by C symbol from nm. 6297{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6298echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 6299if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6300 echo $ECHO_N "(cached) $ECHO_C" >&6 6301else 6302 6303# These are sane defaults that work on at least a few old systems. 6304# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6305 6306# Character class describing NM global symbol codes. 6307symcode='[BCDEGRST]' 6308 6309# Regexp to match symbols that can be accessed directly from C. 6310sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6311 6312# Transform an extracted symbol line into a proper C declaration 6313lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6314 6315# Transform an extracted symbol line into symbol name and symbol address 6316lt_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'" 6317 6318# Define system-specific variables. 6319case $host_os in 6320aix*) 6321 symcode='[BCDT]' 6322 ;; 6323cygwin* | mingw* | pw32*) 6324 symcode='[ABCDGISTW]' 6325 ;; 6326hpux*) # Its linker distinguishes data from code symbols 6327 if test "$host_cpu" = ia64; then 6328 symcode='[ABCDEGRST]' 6329 fi 6330 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6331 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'" 6332 ;; 6333linux* | k*bsd*-gnu) 6334 if test "$host_cpu" = ia64; then 6335 symcode='[ABCDGIRSTW]' 6336 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6337 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'" 6338 fi 6339 ;; 6340irix* | nonstopux*) 6341 symcode='[BCDEGRST]' 6342 ;; 6343osf*) 6344 symcode='[BCDEGQRST]' 6345 ;; 6346solaris*) 6347 symcode='[BDRT]' 6348 ;; 6349sco3.2v5*) 6350 symcode='[DT]' 6351 ;; 6352sysv4.2uw2*) 6353 symcode='[DT]' 6354 ;; 6355sysv5* | sco5v6* | unixware* | OpenUNIX*) 6356 symcode='[ABDT]' 6357 ;; 6358sysv4) 6359 symcode='[DFNSTU]' 6360 ;; 6361esac 6362 6363# Handle CRLF in mingw tool chain 6364opt_cr= 6365case $build_os in 6366mingw*) 6367 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6368 ;; 6369esac 6370 6371# If we're using GNU nm, then use its standard symbol codes. 6372case `$NM -V 2>&1` in 6373*GNU* | *'with BFD'*) 6374 symcode='[ABCDGIRSTW]' ;; 6375esac 6376 6377# Try without a prefix undercore, then with it. 6378for ac_symprfx in "" "_"; do 6379 6380 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6381 symxfrm="\\1 $ac_symprfx\\2 \\2" 6382 6383 # Write the raw and C identifiers. 6384 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6385 6386 # Check to see that the pipe works correctly. 6387 pipe_works=no 6388 6389 rm -f conftest* 6390 cat > conftest.$ac_ext <<EOF 6391#ifdef __cplusplus 6392extern "C" { 6393#endif 6394char nm_test_var; 6395void nm_test_func(){} 6396#ifdef __cplusplus 6397} 6398#endif 6399int main(){nm_test_var='a';nm_test_func();return(0);} 6400EOF 6401 6402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6403 (eval $ac_compile) 2>&5 6404 ac_status=$? 6405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6406 (exit $ac_status); }; then 6407 # Now try to grab the symbols. 6408 nlist=conftest.nm 6409 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6410 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6411 ac_status=$? 6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6413 (exit $ac_status); } && test -s "$nlist"; then 6414 # Try sorting and uniquifying the output. 6415 if sort "$nlist" | uniq > "$nlist"T; then 6416 mv -f "$nlist"T "$nlist" 6417 else 6418 rm -f "$nlist"T 6419 fi 6420 6421 # Make sure that we snagged all the symbols we need. 6422 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6423 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6424 cat <<EOF > conftest.$ac_ext 6425#ifdef __cplusplus 6426extern "C" { 6427#endif 6428 6429EOF 6430 # Now generate the symbol file. 6431 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6432 6433 cat <<EOF >> conftest.$ac_ext 6434#if defined (__STDC__) && __STDC__ 6435# define lt_ptr_t void * 6436#else 6437# define lt_ptr_t char * 6438# define const 6439#endif 6440 6441/* The mapping between symbol names and symbols. */ 6442const struct { 6443 const char *name; 6444 lt_ptr_t address; 6445} 6446lt_preloaded_symbols[] = 6447{ 6448EOF 6449 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6450 cat <<\EOF >> conftest.$ac_ext 6451 {0, (lt_ptr_t) 0} 6452}; 6453 6454#ifdef __cplusplus 6455} 6456#endif 6457EOF 6458 # Now try linking the two files. 6459 mv conftest.$ac_objext conftstm.$ac_objext 6460 lt_save_LIBS="$LIBS" 6461 lt_save_CFLAGS="$CFLAGS" 6462 LIBS="conftstm.$ac_objext" 6463 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6465 (eval $ac_link) 2>&5 6466 ac_status=$? 6467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6468 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6469 pipe_works=yes 6470 fi 6471 LIBS="$lt_save_LIBS" 6472 CFLAGS="$lt_save_CFLAGS" 6473 else 6474 echo "cannot find nm_test_func in $nlist" >&5 6475 fi 6476 else 6477 echo "cannot find nm_test_var in $nlist" >&5 6478 fi 6479 else 6480 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6481 fi 6482 else 6483 echo "$progname: failed program was:" >&5 6484 cat conftest.$ac_ext >&5 6485 fi 6486 rm -f conftest* conftst* 6487 6488 # Do not use the global_symbol_pipe unless it works. 6489 if test "$pipe_works" = yes; then 6490 break 6491 else 6492 lt_cv_sys_global_symbol_pipe= 6493 fi 6494done 6495 6496fi 6497 6498if test -z "$lt_cv_sys_global_symbol_pipe"; then 6499 lt_cv_sys_global_symbol_to_cdecl= 6500fi 6501if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6502 { echo "$as_me:$LINENO: result: failed" >&5 6503echo "${ECHO_T}failed" >&6; } 6504else 6505 { echo "$as_me:$LINENO: result: ok" >&5 6506echo "${ECHO_T}ok" >&6; } 6507fi 6508 6509{ echo "$as_me:$LINENO: checking for objdir" >&5 6510echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 6511if test "${lt_cv_objdir+set}" = set; then 6512 echo $ECHO_N "(cached) $ECHO_C" >&6 6513else 6514 rm -f .libs 2>/dev/null 6515mkdir .libs 2>/dev/null 6516if test -d .libs; then 6517 lt_cv_objdir=.libs 6518else 6519 # MS-DOS does not allow filenames that begin with a dot. 6520 lt_cv_objdir=_libs 6521fi 6522rmdir .libs 2>/dev/null 6523fi 6524{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6525echo "${ECHO_T}$lt_cv_objdir" >&6; } 6526objdir=$lt_cv_objdir 6527 6528 6529 6530 6531 6532case $host_os in 6533aix3*) 6534 # AIX sometimes has problems with the GCC collect2 program. For some 6535 # reason, if we set the COLLECT_NAMES environment variable, the problems 6536 # vanish in a puff of smoke. 6537 if test "X${COLLECT_NAMES+set}" != Xset; then 6538 COLLECT_NAMES= 6539 export COLLECT_NAMES 6540 fi 6541 ;; 6542esac 6543 6544# Sed substitution that helps us do robust quoting. It backslashifies 6545# metacharacters that are still active within double-quoted strings. 6546Xsed='sed -e 1s/^X//' 6547sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6548 6549# Same as above, but do not quote variable references. 6550double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6551 6552# Sed substitution to delay expansion of an escaped shell variable in a 6553# double_quote_subst'ed string. 6554delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6555 6556# Sed substitution to avoid accidental globbing in evaled expressions 6557no_glob_subst='s/\*/\\\*/g' 6558 6559# Constants: 6560rm="rm -f" 6561 6562# Global variables: 6563default_ofile=libtool 6564can_build_shared=yes 6565 6566# All known linkers require a `.a' archive for static linking (except MSVC, 6567# which needs '.lib'). 6568libext=a 6569ltmain="$ac_aux_dir/ltmain.sh" 6570ofile="$default_ofile" 6571with_gnu_ld="$lt_cv_prog_gnu_ld" 6572 6573if test -n "$ac_tool_prefix"; then 6574 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6575set dummy ${ac_tool_prefix}ar; ac_word=$2 6576{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6577echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6578if test "${ac_cv_prog_AR+set}" = set; then 6579 echo $ECHO_N "(cached) $ECHO_C" >&6 6580else 6581 if test -n "$AR"; then 6582 ac_cv_prog_AR="$AR" # Let the user override the test. 6583else 6584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6585for as_dir in $PATH 6586do 6587 IFS=$as_save_IFS 6588 test -z "$as_dir" && as_dir=. 6589 for ac_exec_ext in '' $ac_executable_extensions; do 6590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6591 ac_cv_prog_AR="${ac_tool_prefix}ar" 6592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6593 break 2 6594 fi 6595done 6596done 6597IFS=$as_save_IFS 6598 6599fi 6600fi 6601AR=$ac_cv_prog_AR 6602if test -n "$AR"; then 6603 { echo "$as_me:$LINENO: result: $AR" >&5 6604echo "${ECHO_T}$AR" >&6; } 6605else 6606 { echo "$as_me:$LINENO: result: no" >&5 6607echo "${ECHO_T}no" >&6; } 6608fi 6609 6610 6611fi 6612if test -z "$ac_cv_prog_AR"; then 6613 ac_ct_AR=$AR 6614 # Extract the first word of "ar", so it can be a program name with args. 6615set dummy ar; ac_word=$2 6616{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6617echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6618if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6619 echo $ECHO_N "(cached) $ECHO_C" >&6 6620else 6621 if test -n "$ac_ct_AR"; then 6622 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6623else 6624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6625for as_dir in $PATH 6626do 6627 IFS=$as_save_IFS 6628 test -z "$as_dir" && as_dir=. 6629 for ac_exec_ext in '' $ac_executable_extensions; do 6630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6631 ac_cv_prog_ac_ct_AR="ar" 6632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6633 break 2 6634 fi 6635done 6636done 6637IFS=$as_save_IFS 6638 6639fi 6640fi 6641ac_ct_AR=$ac_cv_prog_ac_ct_AR 6642if test -n "$ac_ct_AR"; then 6643 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6644echo "${ECHO_T}$ac_ct_AR" >&6; } 6645else 6646 { echo "$as_me:$LINENO: result: no" >&5 6647echo "${ECHO_T}no" >&6; } 6648fi 6649 6650 if test "x$ac_ct_AR" = x; then 6651 AR="false" 6652 else 6653 case $cross_compiling:$ac_tool_warned in 6654yes:) 6655{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6656whose name does not start with the host triplet. If you think this 6657configuration is useful to you, please write to autoconf@gnu.org." >&5 6658echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6659whose name does not start with the host triplet. If you think this 6660configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6661ac_tool_warned=yes ;; 6662esac 6663 AR=$ac_ct_AR 6664 fi 6665else 6666 AR="$ac_cv_prog_AR" 6667fi 6668 6669if test -n "$ac_tool_prefix"; then 6670 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6671set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6672{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6673echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6674if test "${ac_cv_prog_RANLIB+set}" = set; then 6675 echo $ECHO_N "(cached) $ECHO_C" >&6 6676else 6677 if test -n "$RANLIB"; then 6678 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6679else 6680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6681for as_dir in $PATH 6682do 6683 IFS=$as_save_IFS 6684 test -z "$as_dir" && as_dir=. 6685 for ac_exec_ext in '' $ac_executable_extensions; do 6686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6687 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6689 break 2 6690 fi 6691done 6692done 6693IFS=$as_save_IFS 6694 6695fi 6696fi 6697RANLIB=$ac_cv_prog_RANLIB 6698if test -n "$RANLIB"; then 6699 { echo "$as_me:$LINENO: result: $RANLIB" >&5 6700echo "${ECHO_T}$RANLIB" >&6; } 6701else 6702 { echo "$as_me:$LINENO: result: no" >&5 6703echo "${ECHO_T}no" >&6; } 6704fi 6705 6706 6707fi 6708if test -z "$ac_cv_prog_RANLIB"; then 6709 ac_ct_RANLIB=$RANLIB 6710 # Extract the first word of "ranlib", so it can be a program name with args. 6711set dummy ranlib; ac_word=$2 6712{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6713echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6714if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6715 echo $ECHO_N "(cached) $ECHO_C" >&6 6716else 6717 if test -n "$ac_ct_RANLIB"; then 6718 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6719else 6720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6721for as_dir in $PATH 6722do 6723 IFS=$as_save_IFS 6724 test -z "$as_dir" && as_dir=. 6725 for ac_exec_ext in '' $ac_executable_extensions; do 6726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6727 ac_cv_prog_ac_ct_RANLIB="ranlib" 6728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6729 break 2 6730 fi 6731done 6732done 6733IFS=$as_save_IFS 6734 6735fi 6736fi 6737ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6738if test -n "$ac_ct_RANLIB"; then 6739 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6740echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 6741else 6742 { echo "$as_me:$LINENO: result: no" >&5 6743echo "${ECHO_T}no" >&6; } 6744fi 6745 6746 if test "x$ac_ct_RANLIB" = x; then 6747 RANLIB=":" 6748 else 6749 case $cross_compiling:$ac_tool_warned in 6750yes:) 6751{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6752whose name does not start with the host triplet. If you think this 6753configuration is useful to you, please write to autoconf@gnu.org." >&5 6754echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6755whose name does not start with the host triplet. If you think this 6756configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6757ac_tool_warned=yes ;; 6758esac 6759 RANLIB=$ac_ct_RANLIB 6760 fi 6761else 6762 RANLIB="$ac_cv_prog_RANLIB" 6763fi 6764 6765if test -n "$ac_tool_prefix"; then 6766 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6767set dummy ${ac_tool_prefix}strip; ac_word=$2 6768{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6769echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6770if test "${ac_cv_prog_STRIP+set}" = set; then 6771 echo $ECHO_N "(cached) $ECHO_C" >&6 6772else 6773 if test -n "$STRIP"; then 6774 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6775else 6776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6777for as_dir in $PATH 6778do 6779 IFS=$as_save_IFS 6780 test -z "$as_dir" && as_dir=. 6781 for ac_exec_ext in '' $ac_executable_extensions; do 6782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6783 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6785 break 2 6786 fi 6787done 6788done 6789IFS=$as_save_IFS 6790 6791fi 6792fi 6793STRIP=$ac_cv_prog_STRIP 6794if test -n "$STRIP"; then 6795 { echo "$as_me:$LINENO: result: $STRIP" >&5 6796echo "${ECHO_T}$STRIP" >&6; } 6797else 6798 { echo "$as_me:$LINENO: result: no" >&5 6799echo "${ECHO_T}no" >&6; } 6800fi 6801 6802 6803fi 6804if test -z "$ac_cv_prog_STRIP"; then 6805 ac_ct_STRIP=$STRIP 6806 # Extract the first word of "strip", so it can be a program name with args. 6807set dummy strip; ac_word=$2 6808{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6810if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6811 echo $ECHO_N "(cached) $ECHO_C" >&6 6812else 6813 if test -n "$ac_ct_STRIP"; then 6814 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6815else 6816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6817for as_dir in $PATH 6818do 6819 IFS=$as_save_IFS 6820 test -z "$as_dir" && as_dir=. 6821 for ac_exec_ext in '' $ac_executable_extensions; do 6822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6823 ac_cv_prog_ac_ct_STRIP="strip" 6824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6825 break 2 6826 fi 6827done 6828done 6829IFS=$as_save_IFS 6830 6831fi 6832fi 6833ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6834if test -n "$ac_ct_STRIP"; then 6835 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6836echo "${ECHO_T}$ac_ct_STRIP" >&6; } 6837else 6838 { echo "$as_me:$LINENO: result: no" >&5 6839echo "${ECHO_T}no" >&6; } 6840fi 6841 6842 if test "x$ac_ct_STRIP" = x; then 6843 STRIP=":" 6844 else 6845 case $cross_compiling:$ac_tool_warned in 6846yes:) 6847{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6848whose name does not start with the host triplet. If you think this 6849configuration is useful to you, please write to autoconf@gnu.org." >&5 6850echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6851whose name does not start with the host triplet. If you think this 6852configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6853ac_tool_warned=yes ;; 6854esac 6855 STRIP=$ac_ct_STRIP 6856 fi 6857else 6858 STRIP="$ac_cv_prog_STRIP" 6859fi 6860 6861 6862old_CC="$CC" 6863old_CFLAGS="$CFLAGS" 6864 6865# Set sane defaults for various variables 6866test -z "$AR" && AR=ar 6867test -z "$AR_FLAGS" && AR_FLAGS=cru 6868test -z "$AS" && AS=as 6869test -z "$CC" && CC=cc 6870test -z "$LTCC" && LTCC=$CC 6871test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 6872test -z "$DLLTOOL" && DLLTOOL=dlltool 6873test -z "$LD" && LD=ld 6874test -z "$LN_S" && LN_S="ln -s" 6875test -z "$MAGIC_CMD" && MAGIC_CMD=file 6876test -z "$NM" && NM=nm 6877test -z "$SED" && SED=sed 6878test -z "$OBJDUMP" && OBJDUMP=objdump 6879test -z "$RANLIB" && RANLIB=: 6880test -z "$STRIP" && STRIP=: 6881test -z "$ac_objext" && ac_objext=o 6882 6883# Determine commands to create old-style static archives. 6884old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6885old_postinstall_cmds='chmod 644 $oldlib' 6886old_postuninstall_cmds= 6887 6888if test -n "$RANLIB"; then 6889 case $host_os in 6890 openbsd*) 6891 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6892 ;; 6893 *) 6894 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6895 ;; 6896 esac 6897 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6898fi 6899 6900for cc_temp in $compiler""; do 6901 case $cc_temp in 6902 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6903 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6904 \-*) ;; 6905 *) break;; 6906 esac 6907done 6908cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6909 6910 6911# Only perform the check for file, if the check method requires it 6912case $deplibs_check_method in 6913file_magic*) 6914 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6915 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 6916echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } 6917if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6918 echo $ECHO_N "(cached) $ECHO_C" >&6 6919else 6920 case $MAGIC_CMD in 6921[\\/*] | ?:[\\/]*) 6922 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6923 ;; 6924*) 6925 lt_save_MAGIC_CMD="$MAGIC_CMD" 6926 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6927 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6928 for ac_dir in $ac_dummy; do 6929 IFS="$lt_save_ifs" 6930 test -z "$ac_dir" && ac_dir=. 6931 if test -f $ac_dir/${ac_tool_prefix}file; then 6932 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6933 if test -n "$file_magic_test_file"; then 6934 case $deplibs_check_method in 6935 "file_magic "*) 6936 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6937 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6938 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6939 $EGREP "$file_magic_regex" > /dev/null; then 6940 : 6941 else 6942 cat <<EOF 1>&2 6943 6944*** Warning: the command libtool uses to detect shared libraries, 6945*** $file_magic_cmd, produces output that libtool cannot recognize. 6946*** The result is that libtool may fail to recognize shared libraries 6947*** as such. This will affect the creation of libtool libraries that 6948*** depend on shared libraries, but programs linked with such libtool 6949*** libraries will work regardless of this problem. Nevertheless, you 6950*** may want to report the problem to your system manager and/or to 6951*** bug-libtool@gnu.org 6952 6953EOF 6954 fi ;; 6955 esac 6956 fi 6957 break 6958 fi 6959 done 6960 IFS="$lt_save_ifs" 6961 MAGIC_CMD="$lt_save_MAGIC_CMD" 6962 ;; 6963esac 6964fi 6965 6966MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6967if test -n "$MAGIC_CMD"; then 6968 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6969echo "${ECHO_T}$MAGIC_CMD" >&6; } 6970else 6971 { echo "$as_me:$LINENO: result: no" >&5 6972echo "${ECHO_T}no" >&6; } 6973fi 6974 6975if test -z "$lt_cv_path_MAGIC_CMD"; then 6976 if test -n "$ac_tool_prefix"; then 6977 { echo "$as_me:$LINENO: checking for file" >&5 6978echo $ECHO_N "checking for file... $ECHO_C" >&6; } 6979if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6980 echo $ECHO_N "(cached) $ECHO_C" >&6 6981else 6982 case $MAGIC_CMD in 6983[\\/*] | ?:[\\/]*) 6984 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6985 ;; 6986*) 6987 lt_save_MAGIC_CMD="$MAGIC_CMD" 6988 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6989 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6990 for ac_dir in $ac_dummy; do 6991 IFS="$lt_save_ifs" 6992 test -z "$ac_dir" && ac_dir=. 6993 if test -f $ac_dir/file; then 6994 lt_cv_path_MAGIC_CMD="$ac_dir/file" 6995 if test -n "$file_magic_test_file"; then 6996 case $deplibs_check_method in 6997 "file_magic "*) 6998 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6999 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7000 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7001 $EGREP "$file_magic_regex" > /dev/null; then 7002 : 7003 else 7004 cat <<EOF 1>&2 7005 7006*** Warning: the command libtool uses to detect shared libraries, 7007*** $file_magic_cmd, produces output that libtool cannot recognize. 7008*** The result is that libtool may fail to recognize shared libraries 7009*** as such. This will affect the creation of libtool libraries that 7010*** depend on shared libraries, but programs linked with such libtool 7011*** libraries will work regardless of this problem. Nevertheless, you 7012*** may want to report the problem to your system manager and/or to 7013*** bug-libtool@gnu.org 7014 7015EOF 7016 fi ;; 7017 esac 7018 fi 7019 break 7020 fi 7021 done 7022 IFS="$lt_save_ifs" 7023 MAGIC_CMD="$lt_save_MAGIC_CMD" 7024 ;; 7025esac 7026fi 7027 7028MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7029if test -n "$MAGIC_CMD"; then 7030 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7031echo "${ECHO_T}$MAGIC_CMD" >&6; } 7032else 7033 { echo "$as_me:$LINENO: result: no" >&5 7034echo "${ECHO_T}no" >&6; } 7035fi 7036 7037 else 7038 MAGIC_CMD=: 7039 fi 7040fi 7041 7042 fi 7043 ;; 7044esac 7045 7046enable_dlopen=no 7047enable_win32_dll=no 7048 7049# Check whether --enable-libtool-lock was given. 7050if test "${enable_libtool_lock+set}" = set; then 7051 enableval=$enable_libtool_lock; 7052fi 7053 7054test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7055 7056 7057# Check whether --with-pic was given. 7058if test "${with_pic+set}" = set; then 7059 withval=$with_pic; pic_mode="$withval" 7060else 7061 pic_mode=default 7062fi 7063 7064test -z "$pic_mode" && pic_mode=default 7065 7066# Use C for the default configuration in the libtool script 7067tagname= 7068lt_save_CC="$CC" 7069ac_ext=c 7070ac_cpp='$CPP $CPPFLAGS' 7071ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7072ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7073ac_compiler_gnu=$ac_cv_c_compiler_gnu 7074 7075 7076# Source file extension for C test sources. 7077ac_ext=c 7078 7079# Object file extension for compiled C test sources. 7080objext=o 7081objext=$objext 7082 7083# Code to be used in simple compile tests 7084lt_simple_compile_test_code="int some_variable = 0;" 7085 7086# Code to be used in simple link tests 7087lt_simple_link_test_code='int main(){return(0);}' 7088 7089 7090# If no C compiler was specified, use CC. 7091LTCC=${LTCC-"$CC"} 7092 7093# If no C compiler flags were specified, use CFLAGS. 7094LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7095 7096# Allow CC to be a program name with arguments. 7097compiler=$CC 7098 7099 7100# save warnings/boilerplate of simple test code 7101ac_outfile=conftest.$ac_objext 7102echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7103eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7104_lt_compiler_boilerplate=`cat conftest.err` 7105$rm conftest* 7106 7107ac_outfile=conftest.$ac_objext 7108echo "$lt_simple_link_test_code" >conftest.$ac_ext 7109eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7110_lt_linker_boilerplate=`cat conftest.err` 7111$rm conftest* 7112 7113 7114 7115lt_prog_compiler_no_builtin_flag= 7116 7117if test "$GCC" = yes; then 7118 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7119 7120 7121{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7122echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 7123if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7124 echo $ECHO_N "(cached) $ECHO_C" >&6 7125else 7126 lt_cv_prog_compiler_rtti_exceptions=no 7127 ac_outfile=conftest.$ac_objext 7128 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7129 lt_compiler_flag="-fno-rtti -fno-exceptions" 7130 # Insert the option either (1) after the last *FLAGS variable, or 7131 # (2) before a word containing "conftest.", or (3) at the end. 7132 # Note that $ac_compile itself does not contain backslashes and begins 7133 # with a dollar sign (not a hyphen), so the echo should work correctly. 7134 # The option is referenced via a variable to avoid confusing sed. 7135 lt_compile=`echo "$ac_compile" | $SED \ 7136 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7137 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7138 -e 's:$: $lt_compiler_flag:'` 7139 (eval echo "\"\$as_me:7139: $lt_compile\"" >&5) 7140 (eval "$lt_compile" 2>conftest.err) 7141 ac_status=$? 7142 cat conftest.err >&5 7143 echo "$as_me:7143: \$? = $ac_status" >&5 7144 if (exit $ac_status) && test -s "$ac_outfile"; then 7145 # The compiler can only warn and ignore the option if not recognized 7146 # So say no if there are warnings other than the usual output. 7147 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7148 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7149 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7150 lt_cv_prog_compiler_rtti_exceptions=yes 7151 fi 7152 fi 7153 $rm conftest* 7154 7155fi 7156{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7157echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7158 7159if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7160 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7161else 7162 : 7163fi 7164 7165fi 7166 7167lt_prog_compiler_wl= 7168lt_prog_compiler_pic= 7169lt_prog_compiler_static= 7170 7171{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7172echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 7173 7174 if test "$GCC" = yes; then 7175 lt_prog_compiler_wl='-Wl,' 7176 lt_prog_compiler_static='-static' 7177 7178 case $host_os in 7179 aix*) 7180 # All AIX code is PIC. 7181 if test "$host_cpu" = ia64; then 7182 # AIX 5 now supports IA64 processor 7183 lt_prog_compiler_static='-Bstatic' 7184 fi 7185 ;; 7186 7187 amigaos*) 7188 # FIXME: we need at least 68020 code to build shared libraries, but 7189 # adding the `-m68020' flag to GCC prevents building anything better, 7190 # like `-m68040'. 7191 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7192 ;; 7193 7194 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7195 # PIC is the default for these OSes. 7196 ;; 7197 7198 mingw* | cygwin* | pw32* | os2*) 7199 # This hack is so that the source file can tell whether it is being 7200 # built for inclusion in a dll (and should export symbols for example). 7201 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7202 # (--disable-auto-import) libraries 7203 lt_prog_compiler_pic='-DDLL_EXPORT' 7204 ;; 7205 7206 darwin* | rhapsody*) 7207 # PIC is the default on this platform 7208 # Common symbols not allowed in MH_DYLIB files 7209 lt_prog_compiler_pic='-fno-common' 7210 ;; 7211 7212 interix[3-9]*) 7213 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7214 # Instead, we relocate shared libraries at runtime. 7215 ;; 7216 7217 msdosdjgpp*) 7218 # Just because we use GCC doesn't mean we suddenly get shared libraries 7219 # on systems that don't support them. 7220 lt_prog_compiler_can_build_shared=no 7221 enable_shared=no 7222 ;; 7223 7224 sysv4*MP*) 7225 if test -d /usr/nec; then 7226 lt_prog_compiler_pic=-Kconform_pic 7227 fi 7228 ;; 7229 7230 hpux*) 7231 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7232 # not for PA HP-UX. 7233 case $host_cpu in 7234 hppa*64*|ia64*) 7235 # +Z the default 7236 ;; 7237 *) 7238 lt_prog_compiler_pic='-fPIC' 7239 ;; 7240 esac 7241 ;; 7242 7243 *) 7244 lt_prog_compiler_pic='-fPIC' 7245 ;; 7246 esac 7247 else 7248 # PORTME Check for flag to pass linker flags through the system compiler. 7249 case $host_os in 7250 aix*) 7251 lt_prog_compiler_wl='-Wl,' 7252 if test "$host_cpu" = ia64; then 7253 # AIX 5 now supports IA64 processor 7254 lt_prog_compiler_static='-Bstatic' 7255 else 7256 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7257 fi 7258 ;; 7259 darwin*) 7260 # PIC is the default on this platform 7261 # Common symbols not allowed in MH_DYLIB files 7262 case $cc_basename in 7263 xlc*) 7264 lt_prog_compiler_pic='-qnocommon' 7265 lt_prog_compiler_wl='-Wl,' 7266 ;; 7267 esac 7268 ;; 7269 7270 mingw* | cygwin* | pw32* | os2*) 7271 # This hack is so that the source file can tell whether it is being 7272 # built for inclusion in a dll (and should export symbols for example). 7273 lt_prog_compiler_pic='-DDLL_EXPORT' 7274 ;; 7275 7276 hpux9* | hpux10* | hpux11*) 7277 lt_prog_compiler_wl='-Wl,' 7278 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7279 # not for PA HP-UX. 7280 case $host_cpu in 7281 hppa*64*|ia64*) 7282 # +Z the default 7283 ;; 7284 *) 7285 lt_prog_compiler_pic='+Z' 7286 ;; 7287 esac 7288 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7289 lt_prog_compiler_static='${wl}-a ${wl}archive' 7290 ;; 7291 7292 irix5* | irix6* | nonstopux*) 7293 lt_prog_compiler_wl='-Wl,' 7294 # PIC (with -KPIC) is the default. 7295 lt_prog_compiler_static='-non_shared' 7296 ;; 7297 7298 newsos6) 7299 lt_prog_compiler_pic='-KPIC' 7300 lt_prog_compiler_static='-Bstatic' 7301 ;; 7302 7303 linux* | k*bsd*-gnu) 7304 case $cc_basename in 7305 icc* | ecc*) 7306 lt_prog_compiler_wl='-Wl,' 7307 lt_prog_compiler_pic='-KPIC' 7308 lt_prog_compiler_static='-static' 7309 ;; 7310 pgcc* | pgf77* | pgf90* | pgf95*) 7311 # Portland Group compilers (*not* the Pentium gcc compiler, 7312 # which looks to be a dead project) 7313 lt_prog_compiler_wl='-Wl,' 7314 lt_prog_compiler_pic='-fpic' 7315 lt_prog_compiler_static='-Bstatic' 7316 ;; 7317 ccc*) 7318 lt_prog_compiler_wl='-Wl,' 7319 # All Alpha code is PIC. 7320 lt_prog_compiler_static='-non_shared' 7321 ;; 7322 *) 7323 case `$CC -V 2>&1 | sed 5q` in 7324 *Sun\ C*) 7325 # Sun C 5.9 7326 lt_prog_compiler_pic='-KPIC' 7327 lt_prog_compiler_static='-Bstatic' 7328 lt_prog_compiler_wl='-Wl,' 7329 ;; 7330 *Sun\ F*) 7331 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7332 lt_prog_compiler_pic='-KPIC' 7333 lt_prog_compiler_static='-Bstatic' 7334 lt_prog_compiler_wl='' 7335 ;; 7336 esac 7337 ;; 7338 esac 7339 ;; 7340 7341 osf3* | osf4* | osf5*) 7342 lt_prog_compiler_wl='-Wl,' 7343 # All OSF/1 code is PIC. 7344 lt_prog_compiler_static='-non_shared' 7345 ;; 7346 7347 rdos*) 7348 lt_prog_compiler_static='-non_shared' 7349 ;; 7350 7351 solaris*) 7352 lt_prog_compiler_pic='-KPIC' 7353 lt_prog_compiler_static='-Bstatic' 7354 case $cc_basename in 7355 f77* | f90* | f95*) 7356 lt_prog_compiler_wl='-Qoption ld ';; 7357 *) 7358 lt_prog_compiler_wl='-Wl,';; 7359 esac 7360 ;; 7361 7362 sunos4*) 7363 lt_prog_compiler_wl='-Qoption ld ' 7364 lt_prog_compiler_pic='-PIC' 7365 lt_prog_compiler_static='-Bstatic' 7366 ;; 7367 7368 sysv4 | sysv4.2uw2* | sysv4.3*) 7369 lt_prog_compiler_wl='-Wl,' 7370 lt_prog_compiler_pic='-KPIC' 7371 lt_prog_compiler_static='-Bstatic' 7372 ;; 7373 7374 sysv4*MP*) 7375 if test -d /usr/nec ;then 7376 lt_prog_compiler_pic='-Kconform_pic' 7377 lt_prog_compiler_static='-Bstatic' 7378 fi 7379 ;; 7380 7381 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7382 lt_prog_compiler_wl='-Wl,' 7383 lt_prog_compiler_pic='-KPIC' 7384 lt_prog_compiler_static='-Bstatic' 7385 ;; 7386 7387 unicos*) 7388 lt_prog_compiler_wl='-Wl,' 7389 lt_prog_compiler_can_build_shared=no 7390 ;; 7391 7392 uts4*) 7393 lt_prog_compiler_pic='-pic' 7394 lt_prog_compiler_static='-Bstatic' 7395 ;; 7396 7397 *) 7398 lt_prog_compiler_can_build_shared=no 7399 ;; 7400 esac 7401 fi 7402 7403{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7404echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 7405 7406# 7407# Check to make sure the PIC flag actually works. 7408# 7409if test -n "$lt_prog_compiler_pic"; then 7410 7411{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7412echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 7413if test "${lt_prog_compiler_pic_works+set}" = set; then 7414 echo $ECHO_N "(cached) $ECHO_C" >&6 7415else 7416 lt_prog_compiler_pic_works=no 7417 ac_outfile=conftest.$ac_objext 7418 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7419 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7420 # Insert the option either (1) after the last *FLAGS variable, or 7421 # (2) before a word containing "conftest.", or (3) at the end. 7422 # Note that $ac_compile itself does not contain backslashes and begins 7423 # with a dollar sign (not a hyphen), so the echo should work correctly. 7424 # The option is referenced via a variable to avoid confusing sed. 7425 lt_compile=`echo "$ac_compile" | $SED \ 7426 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7427 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7428 -e 's:$: $lt_compiler_flag:'` 7429 (eval echo "\"\$as_me:7429: $lt_compile\"" >&5) 7430 (eval "$lt_compile" 2>conftest.err) 7431 ac_status=$? 7432 cat conftest.err >&5 7433 echo "$as_me:7433: \$? = $ac_status" >&5 7434 if (exit $ac_status) && test -s "$ac_outfile"; then 7435 # The compiler can only warn and ignore the option if not recognized 7436 # So say no if there are warnings other than the usual output. 7437 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7438 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7439 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7440 lt_prog_compiler_pic_works=yes 7441 fi 7442 fi 7443 $rm conftest* 7444 7445fi 7446{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 7447echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } 7448 7449if test x"$lt_prog_compiler_pic_works" = xyes; then 7450 case $lt_prog_compiler_pic in 7451 "" | " "*) ;; 7452 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7453 esac 7454else 7455 lt_prog_compiler_pic= 7456 lt_prog_compiler_can_build_shared=no 7457fi 7458 7459fi 7460case $host_os in 7461 # For platforms which do not support PIC, -DPIC is meaningless: 7462 *djgpp*) 7463 lt_prog_compiler_pic= 7464 ;; 7465 *) 7466 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7467 ;; 7468esac 7469 7470# 7471# Check to make sure the static flag actually works. 7472# 7473wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7474{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7475echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 7476if test "${lt_prog_compiler_static_works+set}" = set; then 7477 echo $ECHO_N "(cached) $ECHO_C" >&6 7478else 7479 lt_prog_compiler_static_works=no 7480 save_LDFLAGS="$LDFLAGS" 7481 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7482 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7483 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7484 # The linker can only warn and ignore the option if not recognized 7485 # So say no if there are warnings 7486 if test -s conftest.err; then 7487 # Append any errors to the config.log. 7488 cat conftest.err 1>&5 7489 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7490 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7491 if diff conftest.exp conftest.er2 >/dev/null; then 7492 lt_prog_compiler_static_works=yes 7493 fi 7494 else 7495 lt_prog_compiler_static_works=yes 7496 fi 7497 fi 7498 $rm conftest* 7499 LDFLAGS="$save_LDFLAGS" 7500 7501fi 7502{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 7503echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } 7504 7505if test x"$lt_prog_compiler_static_works" = xyes; then 7506 : 7507else 7508 lt_prog_compiler_static= 7509fi 7510 7511 7512{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7513echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 7514if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7515 echo $ECHO_N "(cached) $ECHO_C" >&6 7516else 7517 lt_cv_prog_compiler_c_o=no 7518 $rm -r conftest 2>/dev/null 7519 mkdir conftest 7520 cd conftest 7521 mkdir out 7522 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7523 7524 lt_compiler_flag="-o out/conftest2.$ac_objext" 7525 # Insert the option either (1) after the last *FLAGS variable, or 7526 # (2) before a word containing "conftest.", or (3) at the end. 7527 # Note that $ac_compile itself does not contain backslashes and begins 7528 # with a dollar sign (not a hyphen), so the echo should work correctly. 7529 lt_compile=`echo "$ac_compile" | $SED \ 7530 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7531 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7532 -e 's:$: $lt_compiler_flag:'` 7533 (eval echo "\"\$as_me:7533: $lt_compile\"" >&5) 7534 (eval "$lt_compile" 2>out/conftest.err) 7535 ac_status=$? 7536 cat out/conftest.err >&5 7537 echo "$as_me:7537: \$? = $ac_status" >&5 7538 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7539 then 7540 # The compiler can only warn and ignore the option if not recognized 7541 # So say no if there are warnings 7542 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7543 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7544 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7545 lt_cv_prog_compiler_c_o=yes 7546 fi 7547 fi 7548 chmod u+w . 2>&5 7549 $rm conftest* 7550 # SGI C++ compiler will create directory out/ii_files/ for 7551 # template instantiation 7552 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 7553 $rm out/* && rmdir out 7554 cd .. 7555 rmdir conftest 7556 $rm conftest* 7557 7558fi 7559{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7560echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 7561 7562 7563hard_links="nottested" 7564if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7565 # do not overwrite the value of need_locks provided by the user 7566 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7567echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 7568 hard_links=yes 7569 $rm conftest* 7570 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7571 touch conftest.a 7572 ln conftest.a conftest.b 2>&5 || hard_links=no 7573 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7574 { echo "$as_me:$LINENO: result: $hard_links" >&5 7575echo "${ECHO_T}$hard_links" >&6; } 7576 if test "$hard_links" = no; then 7577 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7578echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7579 need_locks=warn 7580 fi 7581else 7582 need_locks=no 7583fi 7584 7585{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7586echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 7587 7588 runpath_var= 7589 allow_undefined_flag= 7590 enable_shared_with_static_runtimes=no 7591 archive_cmds= 7592 archive_expsym_cmds= 7593 old_archive_From_new_cmds= 7594 old_archive_from_expsyms_cmds= 7595 export_dynamic_flag_spec= 7596 whole_archive_flag_spec= 7597 thread_safe_flag_spec= 7598 hardcode_libdir_flag_spec= 7599 hardcode_libdir_flag_spec_ld= 7600 hardcode_libdir_separator= 7601 hardcode_direct=no 7602 hardcode_minus_L=no 7603 hardcode_shlibpath_var=unsupported 7604 link_all_deplibs=unknown 7605 hardcode_automatic=no 7606 module_cmds= 7607 module_expsym_cmds= 7608 always_export_symbols=no 7609 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7610 # include_expsyms should be a list of space-separated symbols to be *always* 7611 # included in the symbol list 7612 include_expsyms= 7613 # exclude_expsyms can be an extended regexp of symbols to exclude 7614 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7615 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7616 # as well as any symbol that contains `d'. 7617 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 7618 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7619 # platforms (ab)use it in PIC code, but their linkers get confused if 7620 # the symbol is explicitly referenced. Since portable code cannot 7621 # rely on this symbol name, it's probably fine to never include it in 7622 # preloaded symbol tables. 7623 extract_expsyms_cmds= 7624 # Just being paranoid about ensuring that cc_basename is set. 7625 for cc_temp in $compiler""; do 7626 case $cc_temp in 7627 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7628 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7629 \-*) ;; 7630 *) break;; 7631 esac 7632done 7633cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7634 7635 case $host_os in 7636 cygwin* | mingw* | pw32*) 7637 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7638 # When not using gcc, we currently assume that we are using 7639 # Microsoft Visual C++. 7640 if test "$GCC" != yes; then 7641 with_gnu_ld=no 7642 fi 7643 ;; 7644 interix*) 7645 # we just hope/assume this is gcc and not c89 (= MSVC++) 7646 with_gnu_ld=yes 7647 ;; 7648 openbsd*) 7649 with_gnu_ld=no 7650 ;; 7651 esac 7652 7653 ld_shlibs=yes 7654 if test "$with_gnu_ld" = yes; then 7655 # If archive_cmds runs LD, not CC, wlarc should be empty 7656 wlarc='${wl}' 7657 7658 # Set some defaults for GNU ld with shared library support. These 7659 # are reset later if shared libraries are not supported. Putting them 7660 # here allows them to be overridden if necessary. 7661 runpath_var=LD_RUN_PATH 7662 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 7663 export_dynamic_flag_spec='${wl}--export-dynamic' 7664 # ancient GNU ld didn't support --whole-archive et. al. 7665 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 7666 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7667 else 7668 whole_archive_flag_spec= 7669 fi 7670 supports_anon_versioning=no 7671 case `$LD -v 2>/dev/null` in 7672 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7673 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7674 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7675 *\ 2.11.*) ;; # other 2.11 versions 7676 *) supports_anon_versioning=yes ;; 7677 esac 7678 7679 # See if GNU ld supports shared libraries. 7680 case $host_os in 7681 aix3* | aix4* | aix5*) 7682 # On AIX/PPC, the GNU linker is very broken 7683 if test "$host_cpu" != ia64; then 7684 ld_shlibs=no 7685 cat <<EOF 1>&2 7686 7687*** Warning: the GNU linker, at least up to release 2.9.1, is reported 7688*** to be unable to reliably create shared libraries on AIX. 7689*** Therefore, libtool is disabling shared libraries support. If you 7690*** really care for shared libraries, you may want to modify your PATH 7691*** so that a non-GNU linker is found, and then restart. 7692 7693EOF 7694 fi 7695 ;; 7696 7697 amigaos*) 7698 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)' 7699 hardcode_libdir_flag_spec='-L$libdir' 7700 hardcode_minus_L=yes 7701 7702 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 7703 # that the semantics of dynamic libraries on AmigaOS, at least up 7704 # to version 4, is to share data among multiple programs linked 7705 # with the same dynamic library. Since this doesn't match the 7706 # behavior of shared libraries on other platforms, we can't use 7707 # them. 7708 ld_shlibs=no 7709 ;; 7710 7711 beos*) 7712 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7713 allow_undefined_flag=unsupported 7714 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 7715 # support --undefined. This deserves some investigation. FIXME 7716 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7717 else 7718 ld_shlibs=no 7719 fi 7720 ;; 7721 7722 cygwin* | mingw* | pw32*) 7723 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 7724 # as there is no search path for DLLs. 7725 hardcode_libdir_flag_spec='-L$libdir' 7726 allow_undefined_flag=unsupported 7727 always_export_symbols=no 7728 enable_shared_with_static_runtimes=yes 7729 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 7730 7731 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 7732 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7733 # If the export-symbols file already is a .def file (1st line 7734 # is EXPORTS), use it as is; otherwise, prepend... 7735 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7736 cp $export_symbols $output_objdir/$soname.def; 7737 else 7738 echo EXPORTS > $output_objdir/$soname.def; 7739 cat $export_symbols >> $output_objdir/$soname.def; 7740 fi~ 7741 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7742 else 7743 ld_shlibs=no 7744 fi 7745 ;; 7746 7747 interix[3-9]*) 7748 hardcode_direct=no 7749 hardcode_shlibpath_var=no 7750 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7751 export_dynamic_flag_spec='${wl}-E' 7752 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 7753 # Instead, shared libraries are loaded at an image base (0x10000000 by 7754 # default) and relocated if they conflict, which is a slow very memory 7755 # consuming and fragmenting process. To avoid this, we pick a random, 7756 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 7757 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 7758 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 7759 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' 7760 ;; 7761 7762 gnu* | linux* | k*bsd*-gnu) 7763 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7764 tmp_addflag= 7765 case $cc_basename,$host_cpu in 7766 pgcc*) # Portland Group C compiler 7767 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' 7768 tmp_addflag=' $pic_flag' 7769 ;; 7770 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 7771 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' 7772 tmp_addflag=' $pic_flag -Mnomain' ;; 7773 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 7774 tmp_addflag=' -i_dynamic' ;; 7775 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 7776 tmp_addflag=' -i_dynamic -nofor_main' ;; 7777 ifc* | ifort*) # Intel Fortran compiler 7778 tmp_addflag=' -nofor_main' ;; 7779 esac 7780 case `$CC -V 2>&1 | sed 5q` in 7781 *Sun\ C*) # Sun C 5.9 7782 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 7783 tmp_sharedflag='-G' ;; 7784 *Sun\ F*) # Sun Fortran 8.3 7785 tmp_sharedflag='-G' ;; 7786 *) 7787 tmp_sharedflag='-shared' ;; 7788 esac 7789 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7790 7791 if test $supports_anon_versioning = yes; then 7792 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 7793 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7794 $echo "local: *; };" >> $output_objdir/$libname.ver~ 7795 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 7796 fi 7797 else 7798 ld_shlibs=no 7799 fi 7800 ;; 7801 7802 netbsd*) 7803 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7804 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 7805 wlarc= 7806 else 7807 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7808 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7809 fi 7810 ;; 7811 7812 solaris*) 7813 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 7814 ld_shlibs=no 7815 cat <<EOF 1>&2 7816 7817*** Warning: The releases 2.8.* of the GNU linker cannot reliably 7818*** create shared libraries on Solaris systems. Therefore, libtool 7819*** is disabling shared libraries support. We urge you to upgrade GNU 7820*** binutils to release 2.9.1 or newer. Another option is to modify 7821*** your PATH or compiler configuration so that the native linker is 7822*** used, and then restart. 7823 7824EOF 7825 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7826 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7827 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7828 else 7829 ld_shlibs=no 7830 fi 7831 ;; 7832 7833 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 7834 case `$LD -v 2>&1` in 7835 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 7836 ld_shlibs=no 7837 cat <<_LT_EOF 1>&2 7838 7839*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 7840*** reliably create shared libraries on SCO systems. Therefore, libtool 7841*** is disabling shared libraries support. We urge you to upgrade GNU 7842*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 7843*** your PATH or compiler configuration so that the native linker is 7844*** used, and then restart. 7845 7846_LT_EOF 7847 ;; 7848 *) 7849 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7850 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 7851 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 7852 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 7853 else 7854 ld_shlibs=no 7855 fi 7856 ;; 7857 esac 7858 ;; 7859 7860 sunos4*) 7861 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7862 wlarc= 7863 hardcode_direct=yes 7864 hardcode_shlibpath_var=no 7865 ;; 7866 7867 *) 7868 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7869 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7870 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7871 else 7872 ld_shlibs=no 7873 fi 7874 ;; 7875 esac 7876 7877 if test "$ld_shlibs" = no; then 7878 runpath_var= 7879 hardcode_libdir_flag_spec= 7880 export_dynamic_flag_spec= 7881 whole_archive_flag_spec= 7882 fi 7883 else 7884 # PORTME fill in a description of your system's linker (not GNU ld) 7885 case $host_os in 7886 aix3*) 7887 allow_undefined_flag=unsupported 7888 always_export_symbols=yes 7889 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' 7890 # Note: this linker hardcodes the directories in LIBPATH if there 7891 # are no directories specified by -L. 7892 hardcode_minus_L=yes 7893 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 7894 # Neither direct hardcoding nor static linking is supported with a 7895 # broken collect2. 7896 hardcode_direct=unsupported 7897 fi 7898 ;; 7899 7900 aix4* | aix5*) 7901 if test "$host_cpu" = ia64; then 7902 # On IA64, the linker does run time linking by default, so we don't 7903 # have to do anything special. 7904 aix_use_runtimelinking=no 7905 exp_sym_flag='-Bexport' 7906 no_entry_flag="" 7907 else 7908 # If we're using GNU nm, then we don't want the "-C" option. 7909 # -C means demangle to AIX nm, but means don't demangle with GNU nm 7910 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 7911 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' 7912 else 7913 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' 7914 fi 7915 aix_use_runtimelinking=no 7916 7917 # Test if we are trying to use run time linking or normal 7918 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7919 # need to do runtime linking. 7920 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 7921 for ld_flag in $LDFLAGS; do 7922 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 7923 aix_use_runtimelinking=yes 7924 break 7925 fi 7926 done 7927 ;; 7928 esac 7929 7930 exp_sym_flag='-bexport' 7931 no_entry_flag='-bnoentry' 7932 fi 7933 7934 # When large executables or shared objects are built, AIX ld can 7935 # have problems creating the table of contents. If linking a library 7936 # or program results in "error TOC overflow" add -mminimal-toc to 7937 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7938 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7939 7940 archive_cmds='' 7941 hardcode_direct=yes 7942 hardcode_libdir_separator=':' 7943 link_all_deplibs=yes 7944 7945 if test "$GCC" = yes; then 7946 case $host_os in aix4.[012]|aix4.[012].*) 7947 # We only want to do this on AIX 4.2 and lower, the check 7948 # below for broken collect2 doesn't work under 4.3+ 7949 collect2name=`${CC} -print-prog-name=collect2` 7950 if test -f "$collect2name" && \ 7951 strings "$collect2name" | grep resolve_lib_name >/dev/null 7952 then 7953 # We have reworked collect2 7954 : 7955 else 7956 # We have old collect2 7957 hardcode_direct=unsupported 7958 # It fails to find uninstalled libraries when the uninstalled 7959 # path is not listed in the libpath. Setting hardcode_minus_L 7960 # to unsupported forces relinking 7961 hardcode_minus_L=yes 7962 hardcode_libdir_flag_spec='-L$libdir' 7963 hardcode_libdir_separator= 7964 fi 7965 ;; 7966 esac 7967 shared_flag='-shared' 7968 if test "$aix_use_runtimelinking" = yes; then 7969 shared_flag="$shared_flag "'${wl}-G' 7970 fi 7971 else 7972 # not using gcc 7973 if test "$host_cpu" = ia64; then 7974 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7975 # chokes on -Wl,-G. The following line is correct: 7976 shared_flag='-G' 7977 else 7978 if test "$aix_use_runtimelinking" = yes; then 7979 shared_flag='${wl}-G' 7980 else 7981 shared_flag='${wl}-bM:SRE' 7982 fi 7983 fi 7984 fi 7985 7986 # It seems that -bexpall does not export symbols beginning with 7987 # underscore (_), so it is better to generate a list of symbols to export. 7988 always_export_symbols=yes 7989 if test "$aix_use_runtimelinking" = yes; then 7990 # Warning - without using the other runtime loading flags (-brtl), 7991 # -berok will link without error, but may produce a broken library. 7992 allow_undefined_flag='-berok' 7993 # Determine the default libpath from the value encoded in an empty executable. 7994 cat >conftest.$ac_ext <<_ACEOF 7995/* confdefs.h. */ 7996_ACEOF 7997cat confdefs.h >>conftest.$ac_ext 7998cat >>conftest.$ac_ext <<_ACEOF 7999/* end confdefs.h. */ 8000 8001int 8002main () 8003{ 8004 8005 ; 8006 return 0; 8007} 8008_ACEOF 8009rm -f conftest.$ac_objext conftest$ac_exeext 8010if { (ac_try="$ac_link" 8011case "(($ac_try" in 8012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8013 *) ac_try_echo=$ac_try;; 8014esac 8015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8016 (eval "$ac_link") 2>conftest.er1 8017 ac_status=$? 8018 grep -v '^ *+' conftest.er1 >conftest.err 8019 rm -f conftest.er1 8020 cat conftest.err >&5 8021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8022 (exit $ac_status); } && { 8023 test -z "$ac_c_werror_flag" || 8024 test ! -s conftest.err 8025 } && test -s conftest$ac_exeext && 8026 $as_test_x conftest$ac_exeext; then 8027 8028lt_aix_libpath_sed=' 8029 /Import File Strings/,/^$/ { 8030 /^0/ { 8031 s/^0 *\(.*\)$/\1/ 8032 p 8033 } 8034 }' 8035aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8036# Check for a 64-bit object if we didn't find anything. 8037if test -z "$aix_libpath"; then 8038 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8039fi 8040else 8041 echo "$as_me: failed program was:" >&5 8042sed 's/^/| /' conftest.$ac_ext >&5 8043 8044 8045fi 8046 8047rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8048 conftest$ac_exeext conftest.$ac_ext 8049if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8050 8051 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8052 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" 8053 else 8054 if test "$host_cpu" = ia64; then 8055 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8056 allow_undefined_flag="-z nodefs" 8057 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" 8058 else 8059 # Determine the default libpath from the value encoded in an empty executable. 8060 cat >conftest.$ac_ext <<_ACEOF 8061/* confdefs.h. */ 8062_ACEOF 8063cat confdefs.h >>conftest.$ac_ext 8064cat >>conftest.$ac_ext <<_ACEOF 8065/* end confdefs.h. */ 8066 8067int 8068main () 8069{ 8070 8071 ; 8072 return 0; 8073} 8074_ACEOF 8075rm -f conftest.$ac_objext conftest$ac_exeext 8076if { (ac_try="$ac_link" 8077case "(($ac_try" in 8078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8079 *) ac_try_echo=$ac_try;; 8080esac 8081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8082 (eval "$ac_link") 2>conftest.er1 8083 ac_status=$? 8084 grep -v '^ *+' conftest.er1 >conftest.err 8085 rm -f conftest.er1 8086 cat conftest.err >&5 8087 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8088 (exit $ac_status); } && { 8089 test -z "$ac_c_werror_flag" || 8090 test ! -s conftest.err 8091 } && test -s conftest$ac_exeext && 8092 $as_test_x conftest$ac_exeext; then 8093 8094lt_aix_libpath_sed=' 8095 /Import File Strings/,/^$/ { 8096 /^0/ { 8097 s/^0 *\(.*\)$/\1/ 8098 p 8099 } 8100 }' 8101aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8102# Check for a 64-bit object if we didn't find anything. 8103if test -z "$aix_libpath"; then 8104 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8105fi 8106else 8107 echo "$as_me: failed program was:" >&5 8108sed 's/^/| /' conftest.$ac_ext >&5 8109 8110 8111fi 8112 8113rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8114 conftest$ac_exeext conftest.$ac_ext 8115if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8116 8117 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8118 # Warning - without using the other run time loading flags, 8119 # -berok will link without error, but may produce a broken library. 8120 no_undefined_flag=' ${wl}-bernotok' 8121 allow_undefined_flag=' ${wl}-berok' 8122 # Exported symbols can be pulled into shared objects from archives 8123 whole_archive_flag_spec='$convenience' 8124 archive_cmds_need_lc=yes 8125 # This is similar to how AIX traditionally builds its shared libraries. 8126 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' 8127 fi 8128 fi 8129 ;; 8130 8131 amigaos*) 8132 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)' 8133 hardcode_libdir_flag_spec='-L$libdir' 8134 hardcode_minus_L=yes 8135 # see comment about different semantics on the GNU ld section 8136 ld_shlibs=no 8137 ;; 8138 8139 bsdi[45]*) 8140 export_dynamic_flag_spec=-rdynamic 8141 ;; 8142 8143 cygwin* | mingw* | pw32*) 8144 # When not using gcc, we currently assume that we are using 8145 # Microsoft Visual C++. 8146 # hardcode_libdir_flag_spec is actually meaningless, as there is 8147 # no search path for DLLs. 8148 hardcode_libdir_flag_spec=' ' 8149 allow_undefined_flag=unsupported 8150 # Tell ltmain to make .lib files, not .a files. 8151 libext=lib 8152 # Tell ltmain to make .dll files, not .so files. 8153 shrext_cmds=".dll" 8154 # FIXME: Setting linknames here is a bad hack. 8155 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8156 # The linker will automatically build a .lib file if we build a DLL. 8157 old_archive_From_new_cmds='true' 8158 # FIXME: Should let the user specify the lib program. 8159 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8160 fix_srcfile_path='`cygpath -w "$srcfile"`' 8161 enable_shared_with_static_runtimes=yes 8162 ;; 8163 8164 darwin* | rhapsody*) 8165 case $host_os in 8166 rhapsody* | darwin1.[012]) 8167 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8168 ;; 8169 *) # Darwin 1.3 on 8170 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8171 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8172 else 8173 case ${MACOSX_DEPLOYMENT_TARGET} in 8174 10.[012]) 8175 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8176 ;; 8177 10.*) 8178 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8179 ;; 8180 esac 8181 fi 8182 ;; 8183 esac 8184 archive_cmds_need_lc=no 8185 hardcode_direct=no 8186 hardcode_automatic=yes 8187 hardcode_shlibpath_var=unsupported 8188 whole_archive_flag_spec='' 8189 link_all_deplibs=yes 8190 if test "$GCC" = yes ; then 8191 output_verbose_link_cmd='echo' 8192 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 8193 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8194 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8195 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}' 8196 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}' 8197 else 8198 case $cc_basename in 8199 xlc*) 8200 output_verbose_link_cmd='echo' 8201 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 8202 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8203 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8204 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8205 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}' 8206 ;; 8207 *) 8208 ld_shlibs=no 8209 ;; 8210 esac 8211 fi 8212 ;; 8213 8214 dgux*) 8215 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8216 hardcode_libdir_flag_spec='-L$libdir' 8217 hardcode_shlibpath_var=no 8218 ;; 8219 8220 freebsd1*) 8221 ld_shlibs=no 8222 ;; 8223 8224 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8225 # support. Future versions do this automatically, but an explicit c++rt0.o 8226 # does not break anything, and helps significantly (at the cost of a little 8227 # extra space). 8228 freebsd2.2*) 8229 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8230 hardcode_libdir_flag_spec='-R$libdir' 8231 hardcode_direct=yes 8232 hardcode_shlibpath_var=no 8233 ;; 8234 8235 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8236 freebsd2*) 8237 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8238 hardcode_direct=yes 8239 hardcode_minus_L=yes 8240 hardcode_shlibpath_var=no 8241 ;; 8242 8243 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8244 freebsd* | dragonfly*) 8245 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8246 hardcode_libdir_flag_spec='-R$libdir' 8247 hardcode_direct=yes 8248 hardcode_shlibpath_var=no 8249 ;; 8250 8251 hpux9*) 8252 if test "$GCC" = yes; then 8253 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' 8254 else 8255 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' 8256 fi 8257 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8258 hardcode_libdir_separator=: 8259 hardcode_direct=yes 8260 8261 # hardcode_minus_L: Not really in the search PATH, 8262 # but as the default location of the library. 8263 hardcode_minus_L=yes 8264 export_dynamic_flag_spec='${wl}-E' 8265 ;; 8266 8267 hpux10*) 8268 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8269 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8270 else 8271 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8272 fi 8273 if test "$with_gnu_ld" = no; then 8274 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8275 hardcode_libdir_separator=: 8276 8277 hardcode_direct=yes 8278 export_dynamic_flag_spec='${wl}-E' 8279 8280 # hardcode_minus_L: Not really in the search PATH, 8281 # but as the default location of the library. 8282 hardcode_minus_L=yes 8283 fi 8284 ;; 8285 8286 hpux11*) 8287 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8288 case $host_cpu in 8289 hppa*64*) 8290 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8291 ;; 8292 ia64*) 8293 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8294 ;; 8295 *) 8296 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8297 ;; 8298 esac 8299 else 8300 case $host_cpu in 8301 hppa*64*) 8302 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8303 ;; 8304 ia64*) 8305 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8306 ;; 8307 *) 8308 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8309 ;; 8310 esac 8311 fi 8312 if test "$with_gnu_ld" = no; then 8313 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8314 hardcode_libdir_separator=: 8315 8316 case $host_cpu in 8317 hppa*64*|ia64*) 8318 hardcode_libdir_flag_spec_ld='+b $libdir' 8319 hardcode_direct=no 8320 hardcode_shlibpath_var=no 8321 ;; 8322 *) 8323 hardcode_direct=yes 8324 export_dynamic_flag_spec='${wl}-E' 8325 8326 # hardcode_minus_L: Not really in the search PATH, 8327 # but as the default location of the library. 8328 hardcode_minus_L=yes 8329 ;; 8330 esac 8331 fi 8332 ;; 8333 8334 irix5* | irix6* | nonstopux*) 8335 if test "$GCC" = yes; then 8336 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' 8337 else 8338 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' 8339 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8340 fi 8341 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8342 hardcode_libdir_separator=: 8343 link_all_deplibs=yes 8344 ;; 8345 8346 netbsd*) 8347 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8348 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8349 else 8350 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8351 fi 8352 hardcode_libdir_flag_spec='-R$libdir' 8353 hardcode_direct=yes 8354 hardcode_shlibpath_var=no 8355 ;; 8356 8357 newsos6) 8358 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8359 hardcode_direct=yes 8360 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8361 hardcode_libdir_separator=: 8362 hardcode_shlibpath_var=no 8363 ;; 8364 8365 openbsd*) 8366 if test -f /usr/libexec/ld.so; then 8367 hardcode_direct=yes 8368 hardcode_shlibpath_var=no 8369 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8370 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8371 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8372 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8373 export_dynamic_flag_spec='${wl}-E' 8374 else 8375 case $host_os in 8376 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8377 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8378 hardcode_libdir_flag_spec='-R$libdir' 8379 ;; 8380 *) 8381 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8382 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8383 ;; 8384 esac 8385 fi 8386 else 8387 ld_shlibs=no 8388 fi 8389 ;; 8390 8391 os2*) 8392 hardcode_libdir_flag_spec='-L$libdir' 8393 hardcode_minus_L=yes 8394 allow_undefined_flag=unsupported 8395 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' 8396 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8397 ;; 8398 8399 osf3*) 8400 if test "$GCC" = yes; then 8401 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8402 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' 8403 else 8404 allow_undefined_flag=' -expect_unresolved \*' 8405 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' 8406 fi 8407 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8408 hardcode_libdir_separator=: 8409 ;; 8410 8411 osf4* | osf5*) # as osf3* with the addition of -msym flag 8412 if test "$GCC" = yes; then 8413 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8414 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' 8415 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8416 else 8417 allow_undefined_flag=' -expect_unresolved \*' 8418 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' 8419 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8420 $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' 8421 8422 # Both c and cxx compiler support -rpath directly 8423 hardcode_libdir_flag_spec='-rpath $libdir' 8424 fi 8425 hardcode_libdir_separator=: 8426 ;; 8427 8428 solaris*) 8429 no_undefined_flag=' -z text' 8430 if test "$GCC" = yes; then 8431 wlarc='${wl}' 8432 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8433 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8434 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8435 else 8436 wlarc='' 8437 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8438 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8439 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8440 fi 8441 hardcode_libdir_flag_spec='-R$libdir' 8442 hardcode_shlibpath_var=no 8443 case $host_os in 8444 solaris2.[0-5] | solaris2.[0-5].*) ;; 8445 *) 8446 # The compiler driver will combine and reorder linker options, 8447 # but understands `-z linker_flag'. GCC discards it without `$wl', 8448 # but is careful enough not to reorder. 8449 # Supported since Solaris 2.6 (maybe 2.5.1?) 8450 if test "$GCC" = yes; then 8451 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8452 else 8453 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8454 fi 8455 ;; 8456 esac 8457 link_all_deplibs=yes 8458 ;; 8459 8460 sunos4*) 8461 if test "x$host_vendor" = xsequent; then 8462 # Use $CC to link under sequent, because it throws in some extra .o 8463 # files that make .init and .fini sections work. 8464 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8465 else 8466 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8467 fi 8468 hardcode_libdir_flag_spec='-L$libdir' 8469 hardcode_direct=yes 8470 hardcode_minus_L=yes 8471 hardcode_shlibpath_var=no 8472 ;; 8473 8474 sysv4) 8475 case $host_vendor in 8476 sni) 8477 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8478 hardcode_direct=yes # is this really true??? 8479 ;; 8480 siemens) 8481 ## LD is ld it makes a PLAMLIB 8482 ## CC just makes a GrossModule. 8483 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8484 reload_cmds='$CC -r -o $output$reload_objs' 8485 hardcode_direct=no 8486 ;; 8487 motorola) 8488 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8489 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8490 ;; 8491 esac 8492 runpath_var='LD_RUN_PATH' 8493 hardcode_shlibpath_var=no 8494 ;; 8495 8496 sysv4.3*) 8497 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8498 hardcode_shlibpath_var=no 8499 export_dynamic_flag_spec='-Bexport' 8500 ;; 8501 8502 sysv4*MP*) 8503 if test -d /usr/nec; then 8504 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8505 hardcode_shlibpath_var=no 8506 runpath_var=LD_RUN_PATH 8507 hardcode_runpath_var=yes 8508 ld_shlibs=yes 8509 fi 8510 ;; 8511 8512 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 8513 no_undefined_flag='${wl}-z,text' 8514 archive_cmds_need_lc=no 8515 hardcode_shlibpath_var=no 8516 runpath_var='LD_RUN_PATH' 8517 8518 if test "$GCC" = yes; then 8519 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8520 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8521 else 8522 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8523 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8524 fi 8525 ;; 8526 8527 sysv5* | sco3.2v5* | sco5v6*) 8528 # Note: We can NOT use -z defs as we might desire, because we do not 8529 # link with -lc, and that would cause any symbols used from libc to 8530 # always be unresolved, which means just about no library would 8531 # ever link correctly. If we're not using GNU ld we use -z text 8532 # though, which does catch some bad symbols but isn't as heavy-handed 8533 # as -z defs. 8534 no_undefined_flag='${wl}-z,text' 8535 allow_undefined_flag='${wl}-z,nodefs' 8536 archive_cmds_need_lc=no 8537 hardcode_shlibpath_var=no 8538 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 8539 hardcode_libdir_separator=':' 8540 link_all_deplibs=yes 8541 export_dynamic_flag_spec='${wl}-Bexport' 8542 runpath_var='LD_RUN_PATH' 8543 8544 if test "$GCC" = yes; then 8545 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8546 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8547 else 8548 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8549 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8550 fi 8551 ;; 8552 8553 uts4*) 8554 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8555 hardcode_libdir_flag_spec='-L$libdir' 8556 hardcode_shlibpath_var=no 8557 ;; 8558 8559 *) 8560 ld_shlibs=no 8561 ;; 8562 esac 8563 fi 8564 8565{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 8566echo "${ECHO_T}$ld_shlibs" >&6; } 8567test "$ld_shlibs" = no && can_build_shared=no 8568 8569# 8570# Do we need to explicitly link libc? 8571# 8572case "x$archive_cmds_need_lc" in 8573x|xyes) 8574 # Assume -lc should be added 8575 archive_cmds_need_lc=yes 8576 8577 if test "$enable_shared" = yes && test "$GCC" = yes; then 8578 case $archive_cmds in 8579 *'~'*) 8580 # FIXME: we may have to deal with multi-command sequences. 8581 ;; 8582 '$CC '*) 8583 # Test whether the compiler implicitly links with -lc since on some 8584 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8585 # to ld, don't add -lc before -lgcc. 8586 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 8587echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 8588 $rm conftest* 8589 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8590 8591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8592 (eval $ac_compile) 2>&5 8593 ac_status=$? 8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8595 (exit $ac_status); } 2>conftest.err; then 8596 soname=conftest 8597 lib=conftest 8598 libobjs=conftest.$ac_objext 8599 deplibs= 8600 wl=$lt_prog_compiler_wl 8601 pic_flag=$lt_prog_compiler_pic 8602 compiler_flags=-v 8603 linker_flags=-v 8604 verstring= 8605 output_objdir=. 8606 libname=conftest 8607 lt_save_allow_undefined_flag=$allow_undefined_flag 8608 allow_undefined_flag= 8609 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 8610 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 8611 ac_status=$? 8612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8613 (exit $ac_status); } 8614 then 8615 archive_cmds_need_lc=no 8616 else 8617 archive_cmds_need_lc=yes 8618 fi 8619 allow_undefined_flag=$lt_save_allow_undefined_flag 8620 else 8621 cat conftest.err 1>&5 8622 fi 8623 $rm conftest* 8624 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 8625echo "${ECHO_T}$archive_cmds_need_lc" >&6; } 8626 ;; 8627 esac 8628 fi 8629 ;; 8630esac 8631 8632{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8633echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 8634library_names_spec= 8635libname_spec='lib$name' 8636soname_spec= 8637shrext_cmds=".so" 8638postinstall_cmds= 8639postuninstall_cmds= 8640finish_cmds= 8641finish_eval= 8642shlibpath_var= 8643shlibpath_overrides_runpath=unknown 8644version_type=none 8645dynamic_linker="$host_os ld.so" 8646sys_lib_dlsearch_path_spec="/lib /usr/lib" 8647 8648if test "$GCC" = yes; then 8649 case $host_os in 8650 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 8651 *) lt_awk_arg="/^libraries:/" ;; 8652 esac 8653 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8654 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then 8655 # if the path contains ";" then we assume it to be the separator 8656 # otherwise default to the standard path separator (i.e. ":") - it is 8657 # assumed that no part of a normal pathname contains ";" but that should 8658 # okay in the real world where ";" in dirpaths is itself problematic. 8659 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` 8660 else 8661 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8662 fi 8663 # Ok, now we have the path, separated by spaces, we can step through it 8664 # and add multilib dir if necessary. 8665 lt_tmp_lt_search_path_spec= 8666 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 8667 for lt_sys_path in $lt_search_path_spec; do 8668 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 8669 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 8670 else 8671 test -d "$lt_sys_path" && \ 8672 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 8673 fi 8674 done 8675 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' 8676BEGIN {RS=" "; FS="/|\n";} { 8677 lt_foo=""; 8678 lt_count=0; 8679 for (lt_i = NF; lt_i > 0; lt_i--) { 8680 if ($lt_i != "" && $lt_i != ".") { 8681 if ($lt_i == "..") { 8682 lt_count++; 8683 } else { 8684 if (lt_count == 0) { 8685 lt_foo="/" $lt_i lt_foo; 8686 } else { 8687 lt_count--; 8688 } 8689 } 8690 } 8691 } 8692 if (lt_foo != "") { lt_freq[lt_foo]++; } 8693 if (lt_freq[lt_foo] == 1) { print lt_foo; } 8694}'` 8695 sys_lib_search_path_spec=`echo $lt_search_path_spec` 8696else 8697 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8698fi 8699need_lib_prefix=unknown 8700hardcode_into_libs=no 8701 8702# when you set need_version to no, make sure it does not cause -set_version 8703# flags to be left without arguments 8704need_version=unknown 8705 8706case $host_os in 8707aix3*) 8708 version_type=linux 8709 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8710 shlibpath_var=LIBPATH 8711 8712 # AIX 3 has no versioning support, so we append a major version to the name. 8713 soname_spec='${libname}${release}${shared_ext}$major' 8714 ;; 8715 8716aix4* | aix5*) 8717 version_type=linux 8718 need_lib_prefix=no 8719 need_version=no 8720 hardcode_into_libs=yes 8721 if test "$host_cpu" = ia64; then 8722 # AIX 5 supports IA64 8723 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8724 shlibpath_var=LD_LIBRARY_PATH 8725 else 8726 # With GCC up to 2.95.x, collect2 would create an import file 8727 # for dependence libraries. The import file would start with 8728 # the line `#! .'. This would cause the generated library to 8729 # depend on `.', always an invalid library. This was fixed in 8730 # development snapshots of GCC prior to 3.0. 8731 case $host_os in 8732 aix4 | aix4.[01] | aix4.[01].*) 8733 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8734 echo ' yes ' 8735 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 8736 : 8737 else 8738 can_build_shared=no 8739 fi 8740 ;; 8741 esac 8742 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8743 # soname into executable. Probably we can add versioning support to 8744 # collect2, so additional links can be useful in future. 8745 if test "$aix_use_runtimelinking" = yes; then 8746 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 8747 # instead of lib<name>.a to let people know that these are not 8748 # typical AIX shared libraries. 8749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8750 else 8751 # We preserve .a as extension for shared libraries through AIX4.2 8752 # and later when we are not doing run time linking. 8753 library_names_spec='${libname}${release}.a $libname.a' 8754 soname_spec='${libname}${release}${shared_ext}$major' 8755 fi 8756 shlibpath_var=LIBPATH 8757 fi 8758 ;; 8759 8760amigaos*) 8761 library_names_spec='$libname.ixlibrary $libname.a' 8762 # Create ${libname}_ixlibrary.a entries in /sys/libs. 8763 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' 8764 ;; 8765 8766beos*) 8767 library_names_spec='${libname}${shared_ext}' 8768 dynamic_linker="$host_os ld.so" 8769 shlibpath_var=LIBRARY_PATH 8770 ;; 8771 8772bsdi[45]*) 8773 version_type=linux 8774 need_version=no 8775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8776 soname_spec='${libname}${release}${shared_ext}$major' 8777 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 8778 shlibpath_var=LD_LIBRARY_PATH 8779 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 8780 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 8781 # the default ld.so.conf also contains /usr/contrib/lib and 8782 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 8783 # libtool to hard-code these into programs 8784 ;; 8785 8786cygwin* | mingw* | pw32*) 8787 version_type=windows 8788 shrext_cmds=".dll" 8789 need_version=no 8790 need_lib_prefix=no 8791 8792 case $GCC,$host_os in 8793 yes,cygwin* | yes,mingw* | yes,pw32*) 8794 library_names_spec='$libname.dll.a' 8795 # DLL is installed to $(libdir)/../bin by postinstall_cmds 8796 postinstall_cmds='base_file=`basename \${file}`~ 8797 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 8798 dldir=$destdir/`dirname \$dlpath`~ 8799 test -d \$dldir || mkdir -p \$dldir~ 8800 $install_prog $dir/$dlname \$dldir/$dlname~ 8801 chmod a+x \$dldir/$dlname' 8802 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 8803 dlpath=$dir/\$dldll~ 8804 $rm \$dlpath' 8805 shlibpath_overrides_runpath=yes 8806 8807 case $host_os in 8808 cygwin*) 8809 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 8810 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8811 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 8812 ;; 8813 mingw*) 8814 # MinGW DLLs use traditional 'lib' prefix 8815 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8816 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8817 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 8818 # It is most probably a Windows format PATH printed by 8819 # mingw gcc, but we are running on Cygwin. Gcc prints its search 8820 # path with ; separators, and with drive letters. We can handle the 8821 # drive letters (cygwin fileutils understands them), so leave them, 8822 # especially as we might pass files found there to a mingw objdump, 8823 # which wouldn't understand a cygwinified path. Ahh. 8824 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8825 else 8826 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8827 fi 8828 ;; 8829 pw32*) 8830 # pw32 DLLs use 'pw' prefix rather than 'lib' 8831 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8832 ;; 8833 esac 8834 ;; 8835 8836 *) 8837 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 8838 ;; 8839 esac 8840 dynamic_linker='Win32 ld.exe' 8841 # FIXME: first we should search . and the directory the executable is in 8842 shlibpath_var=PATH 8843 ;; 8844 8845darwin* | rhapsody*) 8846 dynamic_linker="$host_os dyld" 8847 version_type=darwin 8848 need_lib_prefix=no 8849 need_version=no 8850 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 8851 soname_spec='${libname}${release}${major}$shared_ext' 8852 shlibpath_overrides_runpath=yes 8853 shlibpath_var=DYLD_LIBRARY_PATH 8854 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 8855 8856 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 8857 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 8858 ;; 8859 8860dgux*) 8861 version_type=linux 8862 need_lib_prefix=no 8863 need_version=no 8864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 8865 soname_spec='${libname}${release}${shared_ext}$major' 8866 shlibpath_var=LD_LIBRARY_PATH 8867 ;; 8868 8869freebsd1*) 8870 dynamic_linker=no 8871 ;; 8872 8873freebsd* | dragonfly*) 8874 # DragonFly does not have aout. When/if they implement a new 8875 # versioning mechanism, adjust this. 8876 if test -x /usr/bin/objformat; then 8877 objformat=`/usr/bin/objformat` 8878 else 8879 case $host_os in 8880 freebsd[123]*) objformat=aout ;; 8881 *) objformat=elf ;; 8882 esac 8883 fi 8884 version_type=freebsd-$objformat 8885 case $version_type in 8886 freebsd-elf*) 8887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8888 need_version=no 8889 need_lib_prefix=no 8890 ;; 8891 freebsd-*) 8892 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 8893 need_version=yes 8894 ;; 8895 esac 8896 shlibpath_var=LD_LIBRARY_PATH 8897 case $host_os in 8898 freebsd2*) 8899 shlibpath_overrides_runpath=yes 8900 ;; 8901 freebsd3.[01]* | freebsdelf3.[01]*) 8902 shlibpath_overrides_runpath=yes 8903 hardcode_into_libs=yes 8904 ;; 8905 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 8906 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 8907 shlibpath_overrides_runpath=no 8908 hardcode_into_libs=yes 8909 ;; 8910 *) # from 4.6 on, and DragonFly 8911 shlibpath_overrides_runpath=yes 8912 hardcode_into_libs=yes 8913 ;; 8914 esac 8915 ;; 8916 8917gnu*) 8918 version_type=linux 8919 need_lib_prefix=no 8920 need_version=no 8921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 8922 soname_spec='${libname}${release}${shared_ext}$major' 8923 shlibpath_var=LD_LIBRARY_PATH 8924 hardcode_into_libs=yes 8925 ;; 8926 8927hpux9* | hpux10* | hpux11*) 8928 # Give a soname corresponding to the major version so that dld.sl refuses to 8929 # link against other versions. 8930 version_type=sunos 8931 need_lib_prefix=no 8932 need_version=no 8933 case $host_cpu in 8934 ia64*) 8935 shrext_cmds='.so' 8936 hardcode_into_libs=yes 8937 dynamic_linker="$host_os dld.so" 8938 shlibpath_var=LD_LIBRARY_PATH 8939 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8941 soname_spec='${libname}${release}${shared_ext}$major' 8942 if test "X$HPUX_IA64_MODE" = X32; then 8943 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 8944 else 8945 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 8946 fi 8947 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8948 ;; 8949 hppa*64*) 8950 shrext_cmds='.sl' 8951 hardcode_into_libs=yes 8952 dynamic_linker="$host_os dld.sl" 8953 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 8954 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8956 soname_spec='${libname}${release}${shared_ext}$major' 8957 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 8958 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8959 ;; 8960 *) 8961 shrext_cmds='.sl' 8962 dynamic_linker="$host_os dld.sl" 8963 shlibpath_var=SHLIB_PATH 8964 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 8965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8966 soname_spec='${libname}${release}${shared_ext}$major' 8967 ;; 8968 esac 8969 # HP-UX runs *really* slowly unless shared libraries are mode 555. 8970 postinstall_cmds='chmod 555 $lib' 8971 ;; 8972 8973interix[3-9]*) 8974 version_type=linux 8975 need_lib_prefix=no 8976 need_version=no 8977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8978 soname_spec='${libname}${release}${shared_ext}$major' 8979 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 8980 shlibpath_var=LD_LIBRARY_PATH 8981 shlibpath_overrides_runpath=no 8982 hardcode_into_libs=yes 8983 ;; 8984 8985irix5* | irix6* | nonstopux*) 8986 case $host_os in 8987 nonstopux*) version_type=nonstopux ;; 8988 *) 8989 if test "$lt_cv_prog_gnu_ld" = yes; then 8990 version_type=linux 8991 else 8992 version_type=irix 8993 fi ;; 8994 esac 8995 need_lib_prefix=no 8996 need_version=no 8997 soname_spec='${libname}${release}${shared_ext}$major' 8998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 8999 case $host_os in 9000 irix5* | nonstopux*) 9001 libsuff= shlibsuff= 9002 ;; 9003 *) 9004 case $LD in # libtool.m4 will add one of these switches to LD 9005 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9006 libsuff= shlibsuff= libmagic=32-bit;; 9007 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9008 libsuff=32 shlibsuff=N32 libmagic=N32;; 9009 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9010 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9011 *) libsuff= shlibsuff= libmagic=never-match;; 9012 esac 9013 ;; 9014 esac 9015 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9016 shlibpath_overrides_runpath=no 9017 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9018 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9019 hardcode_into_libs=yes 9020 ;; 9021 9022# No shared lib support for Linux oldld, aout, or coff. 9023linux*oldld* | linux*aout* | linux*coff*) 9024 dynamic_linker=no 9025 ;; 9026 9027# This must be Linux ELF. 9028linux* | k*bsd*-gnu) 9029 version_type=linux 9030 need_lib_prefix=no 9031 need_version=no 9032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9033 soname_spec='${libname}${release}${shared_ext}$major' 9034 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9035 shlibpath_var=LD_LIBRARY_PATH 9036 shlibpath_overrides_runpath=no 9037 # This implies no fast_install, which is unacceptable. 9038 # Some rework will be needed to allow for fast_install 9039 # before this can be enabled. 9040 hardcode_into_libs=yes 9041 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9042 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9043 9044 # Append ld.so.conf contents to the search path 9045 if test -f /etc/ld.so.conf; then 9046 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 9047 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 9048 fi 9049 9050 # We used to test for /lib/ld.so.1 and disable shared libraries on 9051 # powerpc, because MkLinux only supported shared libraries with the 9052 # GNU dynamic linker. Since this was broken with cross compilers, 9053 # most powerpc-linux boxes support dynamic linking these days and 9054 # people can always --disable-shared, the test was removed, and we 9055 # assume the GNU/Linux dynamic linker is in use. 9056 dynamic_linker='GNU/Linux ld.so' 9057 ;; 9058 9059netbsd*) 9060 version_type=sunos 9061 need_lib_prefix=no 9062 need_version=no 9063 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9065 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9066 dynamic_linker='NetBSD (a.out) ld.so' 9067 else 9068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9069 soname_spec='${libname}${release}${shared_ext}$major' 9070 dynamic_linker='NetBSD ld.elf_so' 9071 fi 9072 shlibpath_var=LD_LIBRARY_PATH 9073 shlibpath_overrides_runpath=yes 9074 hardcode_into_libs=yes 9075 ;; 9076 9077newsos6) 9078 version_type=linux 9079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9080 shlibpath_var=LD_LIBRARY_PATH 9081 shlibpath_overrides_runpath=yes 9082 ;; 9083 9084nto-qnx*) 9085 version_type=linux 9086 need_lib_prefix=no 9087 need_version=no 9088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9089 soname_spec='${libname}${release}${shared_ext}$major' 9090 shlibpath_var=LD_LIBRARY_PATH 9091 shlibpath_overrides_runpath=yes 9092 ;; 9093 9094openbsd*) 9095 version_type=sunos 9096 sys_lib_dlsearch_path_spec="/usr/lib" 9097 need_lib_prefix=no 9098 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9099 case $host_os in 9100 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9101 *) need_version=no ;; 9102 esac 9103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9104 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9105 shlibpath_var=LD_LIBRARY_PATH 9106 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9107 case $host_os in 9108 openbsd2.[89] | openbsd2.[89].*) 9109 shlibpath_overrides_runpath=no 9110 ;; 9111 *) 9112 shlibpath_overrides_runpath=yes 9113 ;; 9114 esac 9115 else 9116 shlibpath_overrides_runpath=yes 9117 fi 9118 ;; 9119 9120os2*) 9121 libname_spec='$name' 9122 shrext_cmds=".dll" 9123 need_lib_prefix=no 9124 library_names_spec='$libname${shared_ext} $libname.a' 9125 dynamic_linker='OS/2 ld.exe' 9126 shlibpath_var=LIBPATH 9127 ;; 9128 9129osf3* | osf4* | osf5*) 9130 version_type=osf 9131 need_lib_prefix=no 9132 need_version=no 9133 soname_spec='${libname}${release}${shared_ext}$major' 9134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9135 shlibpath_var=LD_LIBRARY_PATH 9136 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9137 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9138 ;; 9139 9140rdos*) 9141 dynamic_linker=no 9142 ;; 9143 9144solaris*) 9145 version_type=linux 9146 need_lib_prefix=no 9147 need_version=no 9148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9149 soname_spec='${libname}${release}${shared_ext}$major' 9150 shlibpath_var=LD_LIBRARY_PATH 9151 shlibpath_overrides_runpath=yes 9152 hardcode_into_libs=yes 9153 # ldd complains unless libraries are executable 9154 postinstall_cmds='chmod +x $lib' 9155 ;; 9156 9157sunos4*) 9158 version_type=sunos 9159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9160 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9161 shlibpath_var=LD_LIBRARY_PATH 9162 shlibpath_overrides_runpath=yes 9163 if test "$with_gnu_ld" = yes; then 9164 need_lib_prefix=no 9165 fi 9166 need_version=yes 9167 ;; 9168 9169sysv4 | sysv4.3*) 9170 version_type=linux 9171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9172 soname_spec='${libname}${release}${shared_ext}$major' 9173 shlibpath_var=LD_LIBRARY_PATH 9174 case $host_vendor in 9175 sni) 9176 shlibpath_overrides_runpath=no 9177 need_lib_prefix=no 9178 export_dynamic_flag_spec='${wl}-Blargedynsym' 9179 runpath_var=LD_RUN_PATH 9180 ;; 9181 siemens) 9182 need_lib_prefix=no 9183 ;; 9184 motorola) 9185 need_lib_prefix=no 9186 need_version=no 9187 shlibpath_overrides_runpath=no 9188 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9189 ;; 9190 esac 9191 ;; 9192 9193sysv4*MP*) 9194 if test -d /usr/nec ;then 9195 version_type=linux 9196 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9197 soname_spec='$libname${shared_ext}.$major' 9198 shlibpath_var=LD_LIBRARY_PATH 9199 fi 9200 ;; 9201 9202sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9203 version_type=freebsd-elf 9204 need_lib_prefix=no 9205 need_version=no 9206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9207 soname_spec='${libname}${release}${shared_ext}$major' 9208 shlibpath_var=LD_LIBRARY_PATH 9209 hardcode_into_libs=yes 9210 if test "$with_gnu_ld" = yes; then 9211 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9212 shlibpath_overrides_runpath=no 9213 else 9214 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9215 shlibpath_overrides_runpath=yes 9216 case $host_os in 9217 sco3.2v5*) 9218 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9219 ;; 9220 esac 9221 fi 9222 sys_lib_dlsearch_path_spec='/usr/lib' 9223 ;; 9224 9225uts4*) 9226 version_type=linux 9227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9228 soname_spec='${libname}${release}${shared_ext}$major' 9229 shlibpath_var=LD_LIBRARY_PATH 9230 ;; 9231 9232*) 9233 dynamic_linker=no 9234 ;; 9235esac 9236{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9237echo "${ECHO_T}$dynamic_linker" >&6; } 9238test "$dynamic_linker" = no && can_build_shared=no 9239 9240variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9241if test "$GCC" = yes; then 9242 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9243fi 9244 9245{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9246echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 9247hardcode_action= 9248if test -n "$hardcode_libdir_flag_spec" || \ 9249 test -n "$runpath_var" || \ 9250 test "X$hardcode_automatic" = "Xyes" ; then 9251 9252 # We can hardcode non-existant directories. 9253 if test "$hardcode_direct" != no && 9254 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9255 # have to relink, otherwise we might link with an installed library 9256 # when we should be linking with a yet-to-be-installed one 9257 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9258 test "$hardcode_minus_L" != no; then 9259 # Linking always hardcodes the temporary library directory. 9260 hardcode_action=relink 9261 else 9262 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9263 hardcode_action=immediate 9264 fi 9265else 9266 # We cannot hardcode anything, or else we can only hardcode existing 9267 # directories. 9268 hardcode_action=unsupported 9269fi 9270{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 9271echo "${ECHO_T}$hardcode_action" >&6; } 9272 9273if test "$hardcode_action" = relink; then 9274 # Fast installation is not supported 9275 enable_fast_install=no 9276elif test "$shlibpath_overrides_runpath" = yes || 9277 test "$enable_shared" = no; then 9278 # Fast installation is not necessary 9279 enable_fast_install=needless 9280fi 9281 9282striplib= 9283old_striplib= 9284{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9285echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } 9286if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9287 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9288 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9289 { echo "$as_me:$LINENO: result: yes" >&5 9290echo "${ECHO_T}yes" >&6; } 9291else 9292# FIXME - insert some real tests, host_os isn't really good enough 9293 case $host_os in 9294 darwin*) 9295 if test -n "$STRIP" ; then 9296 striplib="$STRIP -x" 9297 old_striplib="$STRIP -S" 9298 { echo "$as_me:$LINENO: result: yes" >&5 9299echo "${ECHO_T}yes" >&6; } 9300 else 9301 { echo "$as_me:$LINENO: result: no" >&5 9302echo "${ECHO_T}no" >&6; } 9303fi 9304 ;; 9305 *) 9306 { echo "$as_me:$LINENO: result: no" >&5 9307echo "${ECHO_T}no" >&6; } 9308 ;; 9309 esac 9310fi 9311 9312if test "x$enable_dlopen" != xyes; then 9313 enable_dlopen=unknown 9314 enable_dlopen_self=unknown 9315 enable_dlopen_self_static=unknown 9316else 9317 lt_cv_dlopen=no 9318 lt_cv_dlopen_libs= 9319 9320 case $host_os in 9321 beos*) 9322 lt_cv_dlopen="load_add_on" 9323 lt_cv_dlopen_libs= 9324 lt_cv_dlopen_self=yes 9325 ;; 9326 9327 mingw* | pw32*) 9328 lt_cv_dlopen="LoadLibrary" 9329 lt_cv_dlopen_libs= 9330 ;; 9331 9332 cygwin*) 9333 lt_cv_dlopen="dlopen" 9334 lt_cv_dlopen_libs= 9335 ;; 9336 9337 darwin*) 9338 # if libdl is installed we need to link against it 9339 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9340echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9341if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9342 echo $ECHO_N "(cached) $ECHO_C" >&6 9343else 9344 ac_check_lib_save_LIBS=$LIBS 9345LIBS="-ldl $LIBS" 9346cat >conftest.$ac_ext <<_ACEOF 9347/* confdefs.h. */ 9348_ACEOF 9349cat confdefs.h >>conftest.$ac_ext 9350cat >>conftest.$ac_ext <<_ACEOF 9351/* end confdefs.h. */ 9352 9353/* Override any GCC internal prototype to avoid an error. 9354 Use char because int might match the return type of a GCC 9355 builtin and then its argument prototype would still apply. */ 9356#ifdef __cplusplus 9357extern "C" 9358#endif 9359char dlopen (); 9360int 9361main () 9362{ 9363return dlopen (); 9364 ; 9365 return 0; 9366} 9367_ACEOF 9368rm -f conftest.$ac_objext conftest$ac_exeext 9369if { (ac_try="$ac_link" 9370case "(($ac_try" in 9371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9372 *) ac_try_echo=$ac_try;; 9373esac 9374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9375 (eval "$ac_link") 2>conftest.er1 9376 ac_status=$? 9377 grep -v '^ *+' conftest.er1 >conftest.err 9378 rm -f conftest.er1 9379 cat conftest.err >&5 9380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9381 (exit $ac_status); } && { 9382 test -z "$ac_c_werror_flag" || 9383 test ! -s conftest.err 9384 } && test -s conftest$ac_exeext && 9385 $as_test_x conftest$ac_exeext; then 9386 ac_cv_lib_dl_dlopen=yes 9387else 9388 echo "$as_me: failed program was:" >&5 9389sed 's/^/| /' conftest.$ac_ext >&5 9390 9391 ac_cv_lib_dl_dlopen=no 9392fi 9393 9394rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9395 conftest$ac_exeext conftest.$ac_ext 9396LIBS=$ac_check_lib_save_LIBS 9397fi 9398{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9399echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9400if test $ac_cv_lib_dl_dlopen = yes; then 9401 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9402else 9403 9404 lt_cv_dlopen="dyld" 9405 lt_cv_dlopen_libs= 9406 lt_cv_dlopen_self=yes 9407 9408fi 9409 9410 ;; 9411 9412 *) 9413 { echo "$as_me:$LINENO: checking for shl_load" >&5 9414echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 9415if test "${ac_cv_func_shl_load+set}" = set; then 9416 echo $ECHO_N "(cached) $ECHO_C" >&6 9417else 9418 cat >conftest.$ac_ext <<_ACEOF 9419/* confdefs.h. */ 9420_ACEOF 9421cat confdefs.h >>conftest.$ac_ext 9422cat >>conftest.$ac_ext <<_ACEOF 9423/* end confdefs.h. */ 9424/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9425 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9426#define shl_load innocuous_shl_load 9427 9428/* System header to define __stub macros and hopefully few prototypes, 9429 which can conflict with char shl_load (); below. 9430 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9431 <limits.h> exists even on freestanding compilers. */ 9432 9433#ifdef __STDC__ 9434# include <limits.h> 9435#else 9436# include <assert.h> 9437#endif 9438 9439#undef shl_load 9440 9441/* Override any GCC internal prototype to avoid an error. 9442 Use char because int might match the return type of a GCC 9443 builtin and then its argument prototype would still apply. */ 9444#ifdef __cplusplus 9445extern "C" 9446#endif 9447char shl_load (); 9448/* The GNU C library defines this for functions which it implements 9449 to always fail with ENOSYS. Some functions are actually named 9450 something starting with __ and the normal name is an alias. */ 9451#if defined __stub_shl_load || defined __stub___shl_load 9452choke me 9453#endif 9454 9455int 9456main () 9457{ 9458return shl_load (); 9459 ; 9460 return 0; 9461} 9462_ACEOF 9463rm -f conftest.$ac_objext conftest$ac_exeext 9464if { (ac_try="$ac_link" 9465case "(($ac_try" in 9466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9467 *) ac_try_echo=$ac_try;; 9468esac 9469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9470 (eval "$ac_link") 2>conftest.er1 9471 ac_status=$? 9472 grep -v '^ *+' conftest.er1 >conftest.err 9473 rm -f conftest.er1 9474 cat conftest.err >&5 9475 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9476 (exit $ac_status); } && { 9477 test -z "$ac_c_werror_flag" || 9478 test ! -s conftest.err 9479 } && test -s conftest$ac_exeext && 9480 $as_test_x conftest$ac_exeext; then 9481 ac_cv_func_shl_load=yes 9482else 9483 echo "$as_me: failed program was:" >&5 9484sed 's/^/| /' conftest.$ac_ext >&5 9485 9486 ac_cv_func_shl_load=no 9487fi 9488 9489rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9490 conftest$ac_exeext conftest.$ac_ext 9491fi 9492{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9493echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 9494if test $ac_cv_func_shl_load = yes; then 9495 lt_cv_dlopen="shl_load" 9496else 9497 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9498echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 9499if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9500 echo $ECHO_N "(cached) $ECHO_C" >&6 9501else 9502 ac_check_lib_save_LIBS=$LIBS 9503LIBS="-ldld $LIBS" 9504cat >conftest.$ac_ext <<_ACEOF 9505/* confdefs.h. */ 9506_ACEOF 9507cat confdefs.h >>conftest.$ac_ext 9508cat >>conftest.$ac_ext <<_ACEOF 9509/* end confdefs.h. */ 9510 9511/* Override any GCC internal prototype to avoid an error. 9512 Use char because int might match the return type of a GCC 9513 builtin and then its argument prototype would still apply. */ 9514#ifdef __cplusplus 9515extern "C" 9516#endif 9517char shl_load (); 9518int 9519main () 9520{ 9521return shl_load (); 9522 ; 9523 return 0; 9524} 9525_ACEOF 9526rm -f conftest.$ac_objext conftest$ac_exeext 9527if { (ac_try="$ac_link" 9528case "(($ac_try" in 9529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9530 *) ac_try_echo=$ac_try;; 9531esac 9532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9533 (eval "$ac_link") 2>conftest.er1 9534 ac_status=$? 9535 grep -v '^ *+' conftest.er1 >conftest.err 9536 rm -f conftest.er1 9537 cat conftest.err >&5 9538 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9539 (exit $ac_status); } && { 9540 test -z "$ac_c_werror_flag" || 9541 test ! -s conftest.err 9542 } && test -s conftest$ac_exeext && 9543 $as_test_x conftest$ac_exeext; then 9544 ac_cv_lib_dld_shl_load=yes 9545else 9546 echo "$as_me: failed program was:" >&5 9547sed 's/^/| /' conftest.$ac_ext >&5 9548 9549 ac_cv_lib_dld_shl_load=no 9550fi 9551 9552rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9553 conftest$ac_exeext conftest.$ac_ext 9554LIBS=$ac_check_lib_save_LIBS 9555fi 9556{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9557echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 9558if test $ac_cv_lib_dld_shl_load = yes; then 9559 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 9560else 9561 { echo "$as_me:$LINENO: checking for dlopen" >&5 9562echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 9563if test "${ac_cv_func_dlopen+set}" = set; then 9564 echo $ECHO_N "(cached) $ECHO_C" >&6 9565else 9566 cat >conftest.$ac_ext <<_ACEOF 9567/* confdefs.h. */ 9568_ACEOF 9569cat confdefs.h >>conftest.$ac_ext 9570cat >>conftest.$ac_ext <<_ACEOF 9571/* end confdefs.h. */ 9572/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 9573 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9574#define dlopen innocuous_dlopen 9575 9576/* System header to define __stub macros and hopefully few prototypes, 9577 which can conflict with char dlopen (); below. 9578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9579 <limits.h> exists even on freestanding compilers. */ 9580 9581#ifdef __STDC__ 9582# include <limits.h> 9583#else 9584# include <assert.h> 9585#endif 9586 9587#undef dlopen 9588 9589/* Override any GCC internal prototype to avoid an error. 9590 Use char because int might match the return type of a GCC 9591 builtin and then its argument prototype would still apply. */ 9592#ifdef __cplusplus 9593extern "C" 9594#endif 9595char dlopen (); 9596/* The GNU C library defines this for functions which it implements 9597 to always fail with ENOSYS. Some functions are actually named 9598 something starting with __ and the normal name is an alias. */ 9599#if defined __stub_dlopen || defined __stub___dlopen 9600choke me 9601#endif 9602 9603int 9604main () 9605{ 9606return dlopen (); 9607 ; 9608 return 0; 9609} 9610_ACEOF 9611rm -f conftest.$ac_objext conftest$ac_exeext 9612if { (ac_try="$ac_link" 9613case "(($ac_try" in 9614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9615 *) ac_try_echo=$ac_try;; 9616esac 9617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9618 (eval "$ac_link") 2>conftest.er1 9619 ac_status=$? 9620 grep -v '^ *+' conftest.er1 >conftest.err 9621 rm -f conftest.er1 9622 cat conftest.err >&5 9623 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9624 (exit $ac_status); } && { 9625 test -z "$ac_c_werror_flag" || 9626 test ! -s conftest.err 9627 } && test -s conftest$ac_exeext && 9628 $as_test_x conftest$ac_exeext; then 9629 ac_cv_func_dlopen=yes 9630else 9631 echo "$as_me: failed program was:" >&5 9632sed 's/^/| /' conftest.$ac_ext >&5 9633 9634 ac_cv_func_dlopen=no 9635fi 9636 9637rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9638 conftest$ac_exeext conftest.$ac_ext 9639fi 9640{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 9641echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 9642if test $ac_cv_func_dlopen = yes; then 9643 lt_cv_dlopen="dlopen" 9644else 9645 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9646echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9647if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9648 echo $ECHO_N "(cached) $ECHO_C" >&6 9649else 9650 ac_check_lib_save_LIBS=$LIBS 9651LIBS="-ldl $LIBS" 9652cat >conftest.$ac_ext <<_ACEOF 9653/* confdefs.h. */ 9654_ACEOF 9655cat confdefs.h >>conftest.$ac_ext 9656cat >>conftest.$ac_ext <<_ACEOF 9657/* end confdefs.h. */ 9658 9659/* Override any GCC internal prototype to avoid an error. 9660 Use char because int might match the return type of a GCC 9661 builtin and then its argument prototype would still apply. */ 9662#ifdef __cplusplus 9663extern "C" 9664#endif 9665char dlopen (); 9666int 9667main () 9668{ 9669return dlopen (); 9670 ; 9671 return 0; 9672} 9673_ACEOF 9674rm -f conftest.$ac_objext conftest$ac_exeext 9675if { (ac_try="$ac_link" 9676case "(($ac_try" in 9677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9678 *) ac_try_echo=$ac_try;; 9679esac 9680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9681 (eval "$ac_link") 2>conftest.er1 9682 ac_status=$? 9683 grep -v '^ *+' conftest.er1 >conftest.err 9684 rm -f conftest.er1 9685 cat conftest.err >&5 9686 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9687 (exit $ac_status); } && { 9688 test -z "$ac_c_werror_flag" || 9689 test ! -s conftest.err 9690 } && test -s conftest$ac_exeext && 9691 $as_test_x conftest$ac_exeext; then 9692 ac_cv_lib_dl_dlopen=yes 9693else 9694 echo "$as_me: failed program was:" >&5 9695sed 's/^/| /' conftest.$ac_ext >&5 9696 9697 ac_cv_lib_dl_dlopen=no 9698fi 9699 9700rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9701 conftest$ac_exeext conftest.$ac_ext 9702LIBS=$ac_check_lib_save_LIBS 9703fi 9704{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9705echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9706if test $ac_cv_lib_dl_dlopen = yes; then 9707 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9708else 9709 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 9710echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 9711if test "${ac_cv_lib_svld_dlopen+set}" = set; then 9712 echo $ECHO_N "(cached) $ECHO_C" >&6 9713else 9714 ac_check_lib_save_LIBS=$LIBS 9715LIBS="-lsvld $LIBS" 9716cat >conftest.$ac_ext <<_ACEOF 9717/* confdefs.h. */ 9718_ACEOF 9719cat confdefs.h >>conftest.$ac_ext 9720cat >>conftest.$ac_ext <<_ACEOF 9721/* end confdefs.h. */ 9722 9723/* Override any GCC internal prototype to avoid an error. 9724 Use char because int might match the return type of a GCC 9725 builtin and then its argument prototype would still apply. */ 9726#ifdef __cplusplus 9727extern "C" 9728#endif 9729char dlopen (); 9730int 9731main () 9732{ 9733return dlopen (); 9734 ; 9735 return 0; 9736} 9737_ACEOF 9738rm -f conftest.$ac_objext conftest$ac_exeext 9739if { (ac_try="$ac_link" 9740case "(($ac_try" in 9741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9742 *) ac_try_echo=$ac_try;; 9743esac 9744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9745 (eval "$ac_link") 2>conftest.er1 9746 ac_status=$? 9747 grep -v '^ *+' conftest.er1 >conftest.err 9748 rm -f conftest.er1 9749 cat conftest.err >&5 9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9751 (exit $ac_status); } && { 9752 test -z "$ac_c_werror_flag" || 9753 test ! -s conftest.err 9754 } && test -s conftest$ac_exeext && 9755 $as_test_x conftest$ac_exeext; then 9756 ac_cv_lib_svld_dlopen=yes 9757else 9758 echo "$as_me: failed program was:" >&5 9759sed 's/^/| /' conftest.$ac_ext >&5 9760 9761 ac_cv_lib_svld_dlopen=no 9762fi 9763 9764rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9765 conftest$ac_exeext conftest.$ac_ext 9766LIBS=$ac_check_lib_save_LIBS 9767fi 9768{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 9769echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 9770if test $ac_cv_lib_svld_dlopen = yes; then 9771 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 9772else 9773 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 9774echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 9775if test "${ac_cv_lib_dld_dld_link+set}" = set; then 9776 echo $ECHO_N "(cached) $ECHO_C" >&6 9777else 9778 ac_check_lib_save_LIBS=$LIBS 9779LIBS="-ldld $LIBS" 9780cat >conftest.$ac_ext <<_ACEOF 9781/* confdefs.h. */ 9782_ACEOF 9783cat confdefs.h >>conftest.$ac_ext 9784cat >>conftest.$ac_ext <<_ACEOF 9785/* end confdefs.h. */ 9786 9787/* Override any GCC internal prototype to avoid an error. 9788 Use char because int might match the return type of a GCC 9789 builtin and then its argument prototype would still apply. */ 9790#ifdef __cplusplus 9791extern "C" 9792#endif 9793char dld_link (); 9794int 9795main () 9796{ 9797return dld_link (); 9798 ; 9799 return 0; 9800} 9801_ACEOF 9802rm -f conftest.$ac_objext conftest$ac_exeext 9803if { (ac_try="$ac_link" 9804case "(($ac_try" in 9805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9806 *) ac_try_echo=$ac_try;; 9807esac 9808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9809 (eval "$ac_link") 2>conftest.er1 9810 ac_status=$? 9811 grep -v '^ *+' conftest.er1 >conftest.err 9812 rm -f conftest.er1 9813 cat conftest.err >&5 9814 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9815 (exit $ac_status); } && { 9816 test -z "$ac_c_werror_flag" || 9817 test ! -s conftest.err 9818 } && test -s conftest$ac_exeext && 9819 $as_test_x conftest$ac_exeext; then 9820 ac_cv_lib_dld_dld_link=yes 9821else 9822 echo "$as_me: failed program was:" >&5 9823sed 's/^/| /' conftest.$ac_ext >&5 9824 9825 ac_cv_lib_dld_dld_link=no 9826fi 9827 9828rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9829 conftest$ac_exeext conftest.$ac_ext 9830LIBS=$ac_check_lib_save_LIBS 9831fi 9832{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 9833echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 9834if test $ac_cv_lib_dld_dld_link = yes; then 9835 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 9836fi 9837 9838 9839fi 9840 9841 9842fi 9843 9844 9845fi 9846 9847 9848fi 9849 9850 9851fi 9852 9853 ;; 9854 esac 9855 9856 if test "x$lt_cv_dlopen" != xno; then 9857 enable_dlopen=yes 9858 else 9859 enable_dlopen=no 9860 fi 9861 9862 case $lt_cv_dlopen in 9863 dlopen) 9864 save_CPPFLAGS="$CPPFLAGS" 9865 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 9866 9867 save_LDFLAGS="$LDFLAGS" 9868 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 9869 9870 save_LIBS="$LIBS" 9871 LIBS="$lt_cv_dlopen_libs $LIBS" 9872 9873 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 9874echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } 9875if test "${lt_cv_dlopen_self+set}" = set; then 9876 echo $ECHO_N "(cached) $ECHO_C" >&6 9877else 9878 if test "$cross_compiling" = yes; then : 9879 lt_cv_dlopen_self=cross 9880else 9881 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9882 lt_status=$lt_dlunknown 9883 cat > conftest.$ac_ext <<EOF 9884#line 9884 "configure" 9885#include "confdefs.h" 9886 9887#if HAVE_DLFCN_H 9888#include <dlfcn.h> 9889#endif 9890 9891#include <stdio.h> 9892 9893#ifdef RTLD_GLOBAL 9894# define LT_DLGLOBAL RTLD_GLOBAL 9895#else 9896# ifdef DL_GLOBAL 9897# define LT_DLGLOBAL DL_GLOBAL 9898# else 9899# define LT_DLGLOBAL 0 9900# endif 9901#endif 9902 9903/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9904 find out it does not work in some platform. */ 9905#ifndef LT_DLLAZY_OR_NOW 9906# ifdef RTLD_LAZY 9907# define LT_DLLAZY_OR_NOW RTLD_LAZY 9908# else 9909# ifdef DL_LAZY 9910# define LT_DLLAZY_OR_NOW DL_LAZY 9911# else 9912# ifdef RTLD_NOW 9913# define LT_DLLAZY_OR_NOW RTLD_NOW 9914# else 9915# ifdef DL_NOW 9916# define LT_DLLAZY_OR_NOW DL_NOW 9917# else 9918# define LT_DLLAZY_OR_NOW 0 9919# endif 9920# endif 9921# endif 9922# endif 9923#endif 9924 9925#ifdef __cplusplus 9926extern "C" void exit (int); 9927#endif 9928 9929void fnord() { int i=42;} 9930int main () 9931{ 9932 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9933 int status = $lt_dlunknown; 9934 9935 if (self) 9936 { 9937 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9938 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9939 /* dlclose (self); */ 9940 } 9941 else 9942 puts (dlerror ()); 9943 9944 exit (status); 9945} 9946EOF 9947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9948 (eval $ac_link) 2>&5 9949 ac_status=$? 9950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9951 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9952 (./conftest; exit; ) >&5 2>/dev/null 9953 lt_status=$? 9954 case x$lt_status in 9955 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 9956 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 9957 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 9958 esac 9959 else : 9960 # compilation failed 9961 lt_cv_dlopen_self=no 9962 fi 9963fi 9964rm -fr conftest* 9965 9966 9967fi 9968{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 9969echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } 9970 9971 if test "x$lt_cv_dlopen_self" = xyes; then 9972 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 9973 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 9974echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } 9975if test "${lt_cv_dlopen_self_static+set}" = set; then 9976 echo $ECHO_N "(cached) $ECHO_C" >&6 9977else 9978 if test "$cross_compiling" = yes; then : 9979 lt_cv_dlopen_self_static=cross 9980else 9981 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9982 lt_status=$lt_dlunknown 9983 cat > conftest.$ac_ext <<EOF 9984#line 9984 "configure" 9985#include "confdefs.h" 9986 9987#if HAVE_DLFCN_H 9988#include <dlfcn.h> 9989#endif 9990 9991#include <stdio.h> 9992 9993#ifdef RTLD_GLOBAL 9994# define LT_DLGLOBAL RTLD_GLOBAL 9995#else 9996# ifdef DL_GLOBAL 9997# define LT_DLGLOBAL DL_GLOBAL 9998# else 9999# define LT_DLGLOBAL 0 10000# endif 10001#endif 10002 10003/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10004 find out it does not work in some platform. */ 10005#ifndef LT_DLLAZY_OR_NOW 10006# ifdef RTLD_LAZY 10007# define LT_DLLAZY_OR_NOW RTLD_LAZY 10008# else 10009# ifdef DL_LAZY 10010# define LT_DLLAZY_OR_NOW DL_LAZY 10011# else 10012# ifdef RTLD_NOW 10013# define LT_DLLAZY_OR_NOW RTLD_NOW 10014# else 10015# ifdef DL_NOW 10016# define LT_DLLAZY_OR_NOW DL_NOW 10017# else 10018# define LT_DLLAZY_OR_NOW 0 10019# endif 10020# endif 10021# endif 10022# endif 10023#endif 10024 10025#ifdef __cplusplus 10026extern "C" void exit (int); 10027#endif 10028 10029void fnord() { int i=42;} 10030int main () 10031{ 10032 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10033 int status = $lt_dlunknown; 10034 10035 if (self) 10036 { 10037 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10038 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10039 /* dlclose (self); */ 10040 } 10041 else 10042 puts (dlerror ()); 10043 10044 exit (status); 10045} 10046EOF 10047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10048 (eval $ac_link) 2>&5 10049 ac_status=$? 10050 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10051 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10052 (./conftest; exit; ) >&5 2>/dev/null 10053 lt_status=$? 10054 case x$lt_status in 10055 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10056 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10057 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10058 esac 10059 else : 10060 # compilation failed 10061 lt_cv_dlopen_self_static=no 10062 fi 10063fi 10064rm -fr conftest* 10065 10066 10067fi 10068{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10069echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } 10070 fi 10071 10072 CPPFLAGS="$save_CPPFLAGS" 10073 LDFLAGS="$save_LDFLAGS" 10074 LIBS="$save_LIBS" 10075 ;; 10076 esac 10077 10078 case $lt_cv_dlopen_self in 10079 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10080 *) enable_dlopen_self=unknown ;; 10081 esac 10082 10083 case $lt_cv_dlopen_self_static in 10084 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10085 *) enable_dlopen_self_static=unknown ;; 10086 esac 10087fi 10088 10089 10090# Report which library types will actually be built 10091{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10092echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 10093{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 10094echo "${ECHO_T}$can_build_shared" >&6; } 10095 10096{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10097echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 10098test "$can_build_shared" = "no" && enable_shared=no 10099 10100# On AIX, shared libraries and static libraries use the same namespace, and 10101# are all built from PIC. 10102case $host_os in 10103aix3*) 10104 test "$enable_shared" = yes && enable_static=no 10105 if test -n "$RANLIB"; then 10106 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10107 postinstall_cmds='$RANLIB $lib' 10108 fi 10109 ;; 10110 10111aix4* | aix5*) 10112 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10113 test "$enable_shared" = yes && enable_static=no 10114 fi 10115 ;; 10116esac 10117{ echo "$as_me:$LINENO: result: $enable_shared" >&5 10118echo "${ECHO_T}$enable_shared" >&6; } 10119 10120{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10121echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 10122# Make sure either enable_shared or enable_static is yes. 10123test "$enable_shared" = yes || enable_static=yes 10124{ echo "$as_me:$LINENO: result: $enable_static" >&5 10125echo "${ECHO_T}$enable_static" >&6; } 10126 10127# The else clause should only fire when bootstrapping the 10128# libtool distribution, otherwise you forgot to ship ltmain.sh 10129# with your package, and you will get complaints that there are 10130# no rules to generate ltmain.sh. 10131if test -f "$ltmain"; then 10132 # See if we are running on zsh, and set the options which allow our commands through 10133 # without removal of \ escapes. 10134 if test -n "${ZSH_VERSION+set}" ; then 10135 setopt NO_GLOB_SUBST 10136 fi 10137 # Now quote all the things that may contain metacharacters while being 10138 # careful not to overquote the AC_SUBSTed values. We take copies of the 10139 # variables and quote the copies for generation of the libtool script. 10140 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 10141 SED SHELL STRIP \ 10142 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10143 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10144 deplibs_check_method reload_flag reload_cmds need_locks \ 10145 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10146 lt_cv_sys_global_symbol_to_c_name_address \ 10147 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10148 old_postinstall_cmds old_postuninstall_cmds \ 10149 compiler \ 10150 CC \ 10151 LD \ 10152 lt_prog_compiler_wl \ 10153 lt_prog_compiler_pic \ 10154 lt_prog_compiler_static \ 10155 lt_prog_compiler_no_builtin_flag \ 10156 export_dynamic_flag_spec \ 10157 thread_safe_flag_spec \ 10158 whole_archive_flag_spec \ 10159 enable_shared_with_static_runtimes \ 10160 old_archive_cmds \ 10161 old_archive_from_new_cmds \ 10162 predep_objects \ 10163 postdep_objects \ 10164 predeps \ 10165 postdeps \ 10166 compiler_lib_search_path \ 10167 archive_cmds \ 10168 archive_expsym_cmds \ 10169 postinstall_cmds \ 10170 postuninstall_cmds \ 10171 old_archive_from_expsyms_cmds \ 10172 allow_undefined_flag \ 10173 no_undefined_flag \ 10174 export_symbols_cmds \ 10175 hardcode_libdir_flag_spec \ 10176 hardcode_libdir_flag_spec_ld \ 10177 hardcode_libdir_separator \ 10178 hardcode_automatic \ 10179 module_cmds \ 10180 module_expsym_cmds \ 10181 lt_cv_prog_compiler_c_o \ 10182 fix_srcfile_path \ 10183 exclude_expsyms \ 10184 include_expsyms; do 10185 10186 case $var in 10187 old_archive_cmds | \ 10188 old_archive_from_new_cmds | \ 10189 archive_cmds | \ 10190 archive_expsym_cmds | \ 10191 module_cmds | \ 10192 module_expsym_cmds | \ 10193 old_archive_from_expsyms_cmds | \ 10194 export_symbols_cmds | \ 10195 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10196 postinstall_cmds | postuninstall_cmds | \ 10197 old_postinstall_cmds | old_postuninstall_cmds | \ 10198 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10199 # Double-quote double-evaled strings. 10200 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10201 ;; 10202 *) 10203 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10204 ;; 10205 esac 10206 done 10207 10208 case $lt_echo in 10209 *'\$0 --fallback-echo"') 10210 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10211 ;; 10212 esac 10213 10214cfgfile="${ofile}T" 10215 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10216 $rm -f "$cfgfile" 10217 { echo "$as_me:$LINENO: creating $ofile" >&5 10218echo "$as_me: creating $ofile" >&6;} 10219 10220 cat <<__EOF__ >> "$cfgfile" 10221#! $SHELL 10222 10223# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10224# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10225# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10226# 10227# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 10228# Free Software Foundation, Inc. 10229# 10230# This file is part of GNU Libtool: 10231# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10232# 10233# This program is free software; you can redistribute it and/or modify 10234# it under the terms of the GNU General Public License as published by 10235# the Free Software Foundation; either version 2 of the License, or 10236# (at your option) any later version. 10237# 10238# This program is distributed in the hope that it will be useful, but 10239# WITHOUT ANY WARRANTY; without even the implied warranty of 10240# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10241# General Public License for more details. 10242# 10243# You should have received a copy of the GNU General Public License 10244# along with this program; if not, write to the Free Software 10245# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10246# 10247# As a special exception to the GNU General Public License, if you 10248# distribute this file as part of a program that contains a 10249# configuration script generated by Autoconf, you may include it under 10250# the same distribution terms that you use for the rest of that program. 10251 10252# A sed program that does not truncate output. 10253SED=$lt_SED 10254 10255# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10256Xsed="$SED -e 1s/^X//" 10257 10258# The HP-UX ksh and POSIX shell print the target directory to stdout 10259# if CDPATH is set. 10260(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10261 10262# The names of the tagged configurations supported by this script. 10263available_tags= 10264 10265# ### BEGIN LIBTOOL CONFIG 10266 10267# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10268 10269# Shell to use when invoking shell scripts. 10270SHELL=$lt_SHELL 10271 10272# Whether or not to build shared libraries. 10273build_libtool_libs=$enable_shared 10274 10275# Whether or not to build static libraries. 10276build_old_libs=$enable_static 10277 10278# Whether or not to add -lc for building shared libraries. 10279build_libtool_need_lc=$archive_cmds_need_lc 10280 10281# Whether or not to disallow shared libs when runtime libs are static 10282allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10283 10284# Whether or not to optimize for fast installation. 10285fast_install=$enable_fast_install 10286 10287# The host system. 10288host_alias=$host_alias 10289host=$host 10290host_os=$host_os 10291 10292# The build system. 10293build_alias=$build_alias 10294build=$build 10295build_os=$build_os 10296 10297# An echo program that does not interpret backslashes. 10298echo=$lt_echo 10299 10300# The archiver. 10301AR=$lt_AR 10302AR_FLAGS=$lt_AR_FLAGS 10303 10304# A C compiler. 10305LTCC=$lt_LTCC 10306 10307# LTCC compiler flags. 10308LTCFLAGS=$lt_LTCFLAGS 10309 10310# A language-specific compiler. 10311CC=$lt_compiler 10312 10313# Is the compiler the GNU C compiler? 10314with_gcc=$GCC 10315 10316# An ERE matcher. 10317EGREP=$lt_EGREP 10318 10319# The linker used to build libraries. 10320LD=$lt_LD 10321 10322# Whether we need hard or soft links. 10323LN_S=$lt_LN_S 10324 10325# A BSD-compatible nm program. 10326NM=$lt_NM 10327 10328# A symbol stripping program 10329STRIP=$lt_STRIP 10330 10331# Used to examine libraries when file_magic_cmd begins "file" 10332MAGIC_CMD=$MAGIC_CMD 10333 10334# Used on cygwin: DLL creation program. 10335DLLTOOL="$DLLTOOL" 10336 10337# Used on cygwin: object dumper. 10338OBJDUMP="$OBJDUMP" 10339 10340# Used on cygwin: assembler. 10341AS="$AS" 10342 10343# The name of the directory that contains temporary libtool files. 10344objdir=$objdir 10345 10346# How to create reloadable object files. 10347reload_flag=$lt_reload_flag 10348reload_cmds=$lt_reload_cmds 10349 10350# How to pass a linker flag through the compiler. 10351wl=$lt_lt_prog_compiler_wl 10352 10353# Object file suffix (normally "o"). 10354objext="$ac_objext" 10355 10356# Old archive suffix (normally "a"). 10357libext="$libext" 10358 10359# Shared library suffix (normally ".so"). 10360shrext_cmds='$shrext_cmds' 10361 10362# Executable file suffix (normally ""). 10363exeext="$exeext" 10364 10365# Additional compiler flags for building library objects. 10366pic_flag=$lt_lt_prog_compiler_pic 10367pic_mode=$pic_mode 10368 10369# What is the maximum length of a command? 10370max_cmd_len=$lt_cv_sys_max_cmd_len 10371 10372# Does compiler simultaneously support -c and -o options? 10373compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10374 10375# Must we lock files when doing compilation? 10376need_locks=$lt_need_locks 10377 10378# Do we need the lib prefix for modules? 10379need_lib_prefix=$need_lib_prefix 10380 10381# Do we need a version for libraries? 10382need_version=$need_version 10383 10384# Whether dlopen is supported. 10385dlopen_support=$enable_dlopen 10386 10387# Whether dlopen of programs is supported. 10388dlopen_self=$enable_dlopen_self 10389 10390# Whether dlopen of statically linked programs is supported. 10391dlopen_self_static=$enable_dlopen_self_static 10392 10393# Compiler flag to prevent dynamic linking. 10394link_static_flag=$lt_lt_prog_compiler_static 10395 10396# Compiler flag to turn off builtin functions. 10397no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10398 10399# Compiler flag to allow reflexive dlopens. 10400export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10401 10402# Compiler flag to generate shared objects directly from archives. 10403whole_archive_flag_spec=$lt_whole_archive_flag_spec 10404 10405# Compiler flag to generate thread-safe objects. 10406thread_safe_flag_spec=$lt_thread_safe_flag_spec 10407 10408# Library versioning type. 10409version_type=$version_type 10410 10411# Format of library name prefix. 10412libname_spec=$lt_libname_spec 10413 10414# List of archive names. First name is the real one, the rest are links. 10415# The last name is the one that the linker finds with -lNAME. 10416library_names_spec=$lt_library_names_spec 10417 10418# The coded name of the library, if different from the real name. 10419soname_spec=$lt_soname_spec 10420 10421# Commands used to build and install an old-style archive. 10422RANLIB=$lt_RANLIB 10423old_archive_cmds=$lt_old_archive_cmds 10424old_postinstall_cmds=$lt_old_postinstall_cmds 10425old_postuninstall_cmds=$lt_old_postuninstall_cmds 10426 10427# Create an old-style archive from a shared archive. 10428old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10429 10430# Create a temporary old-style archive to link instead of a shared archive. 10431old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10432 10433# Commands used to build and install a shared archive. 10434archive_cmds=$lt_archive_cmds 10435archive_expsym_cmds=$lt_archive_expsym_cmds 10436postinstall_cmds=$lt_postinstall_cmds 10437postuninstall_cmds=$lt_postuninstall_cmds 10438 10439# Commands used to build a loadable module (assumed same as above if empty) 10440module_cmds=$lt_module_cmds 10441module_expsym_cmds=$lt_module_expsym_cmds 10442 10443# Commands to strip libraries. 10444old_striplib=$lt_old_striplib 10445striplib=$lt_striplib 10446 10447# Dependencies to place before the objects being linked to create a 10448# shared library. 10449predep_objects=$lt_predep_objects 10450 10451# Dependencies to place after the objects being linked to create a 10452# shared library. 10453postdep_objects=$lt_postdep_objects 10454 10455# Dependencies to place before the objects being linked to create a 10456# shared library. 10457predeps=$lt_predeps 10458 10459# Dependencies to place after the objects being linked to create a 10460# shared library. 10461postdeps=$lt_postdeps 10462 10463# The library search path used internally by the compiler when linking 10464# a shared library. 10465compiler_lib_search_path=$lt_compiler_lib_search_path 10466 10467# Method to check whether dependent libraries are shared objects. 10468deplibs_check_method=$lt_deplibs_check_method 10469 10470# Command to use when deplibs_check_method == file_magic. 10471file_magic_cmd=$lt_file_magic_cmd 10472 10473# Flag that allows shared libraries with undefined symbols to be built. 10474allow_undefined_flag=$lt_allow_undefined_flag 10475 10476# Flag that forces no undefined symbols. 10477no_undefined_flag=$lt_no_undefined_flag 10478 10479# Commands used to finish a libtool library installation in a directory. 10480finish_cmds=$lt_finish_cmds 10481 10482# Same as above, but a single script fragment to be evaled but not shown. 10483finish_eval=$lt_finish_eval 10484 10485# Take the output of nm and produce a listing of raw symbols and C names. 10486global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 10487 10488# Transform the output of nm in a proper C declaration 10489global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 10490 10491# Transform the output of nm in a C name address pair 10492global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 10493 10494# This is the shared library runtime path variable. 10495runpath_var=$runpath_var 10496 10497# This is the shared library path variable. 10498shlibpath_var=$shlibpath_var 10499 10500# Is shlibpath searched before the hard-coded library search path? 10501shlibpath_overrides_runpath=$shlibpath_overrides_runpath 10502 10503# How to hardcode a shared library path into an executable. 10504hardcode_action=$hardcode_action 10505 10506# Whether we should hardcode library paths into libraries. 10507hardcode_into_libs=$hardcode_into_libs 10508 10509# Flag to hardcode \$libdir into a binary during linking. 10510# This must work even if \$libdir does not exist. 10511hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 10512 10513# If ld is used when linking, flag to hardcode \$libdir into 10514# a binary during linking. This must work even if \$libdir does 10515# not exist. 10516hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 10517 10518# Whether we need a single -rpath flag with a separated argument. 10519hardcode_libdir_separator=$lt_hardcode_libdir_separator 10520 10521# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 10522# resulting binary. 10523hardcode_direct=$hardcode_direct 10524 10525# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 10526# resulting binary. 10527hardcode_minus_L=$hardcode_minus_L 10528 10529# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 10530# the resulting binary. 10531hardcode_shlibpath_var=$hardcode_shlibpath_var 10532 10533# Set to yes if building a shared library automatically hardcodes DIR into the library 10534# and all subsequent libraries and executables linked against it. 10535hardcode_automatic=$hardcode_automatic 10536 10537# Variables whose values should be saved in libtool wrapper scripts and 10538# restored at relink time. 10539variables_saved_for_relink="$variables_saved_for_relink" 10540 10541# Whether libtool must link a program against all its dependency libraries. 10542link_all_deplibs=$link_all_deplibs 10543 10544# Compile-time system search path for libraries 10545sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 10546 10547# Run-time system search path for libraries 10548sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 10549 10550# Fix the shell variable \$srcfile for the compiler. 10551fix_srcfile_path=$lt_fix_srcfile_path 10552 10553# Set to yes if exported symbols are required. 10554always_export_symbols=$always_export_symbols 10555 10556# The commands to list exported symbols. 10557export_symbols_cmds=$lt_export_symbols_cmds 10558 10559# The commands to extract the exported symbol list from a shared archive. 10560extract_expsyms_cmds=$lt_extract_expsyms_cmds 10561 10562# Symbols that should not be listed in the preloaded symbols. 10563exclude_expsyms=$lt_exclude_expsyms 10564 10565# Symbols that must always be exported. 10566include_expsyms=$lt_include_expsyms 10567 10568# ### END LIBTOOL CONFIG 10569 10570__EOF__ 10571 10572 10573 case $host_os in 10574 aix3*) 10575 cat <<\EOF >> "$cfgfile" 10576 10577# AIX sometimes has problems with the GCC collect2 program. For some 10578# reason, if we set the COLLECT_NAMES environment variable, the problems 10579# vanish in a puff of smoke. 10580if test "X${COLLECT_NAMES+set}" != Xset; then 10581 COLLECT_NAMES= 10582 export COLLECT_NAMES 10583fi 10584EOF 10585 ;; 10586 esac 10587 10588 # We use sed instead of cat because bash on DJGPP gets confused if 10589 # if finds mixed CR/LF and LF-only lines. Since sed operates in 10590 # text mode, it properly converts lines to CR/LF. This bash problem 10591 # is reportedly fixed, but why not run on old versions too? 10592 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 10593 10594 mv -f "$cfgfile" "$ofile" || \ 10595 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 10596 chmod +x "$ofile" 10597 10598else 10599 # If there is no Makefile yet, we rely on a make rule to execute 10600 # `config.status --recheck' to rerun these tests and create the 10601 # libtool script then. 10602 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 10603 if test -f "$ltmain_in"; then 10604 test -f Makefile && make "$ltmain" 10605 fi 10606fi 10607 10608 10609ac_ext=c 10610ac_cpp='$CPP $CPPFLAGS' 10611ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10612ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10613ac_compiler_gnu=$ac_cv_c_compiler_gnu 10614 10615CC="$lt_save_CC" 10616 10617 10618# Check whether --with-tags was given. 10619if test "${with_tags+set}" = set; then 10620 withval=$with_tags; tagnames="$withval" 10621fi 10622 10623 10624if test -f "$ltmain" && test -n "$tagnames"; then 10625 if test ! -f "${ofile}"; then 10626 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 10627echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 10628 fi 10629 10630 if test -z "$LTCC"; then 10631 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 10632 if test -z "$LTCC"; then 10633 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 10634echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 10635 else 10636 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 10637echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 10638 fi 10639 fi 10640 if test -z "$LTCFLAGS"; then 10641 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 10642 fi 10643 10644 # Extract list of available tagged configurations in $ofile. 10645 # Note that this assumes the entire list is on one line. 10646 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 10647 10648 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10649 for tagname in $tagnames; do 10650 IFS="$lt_save_ifs" 10651 # Check whether tagname contains only valid characters 10652 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 10653 "") ;; 10654 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 10655echo "$as_me: error: invalid tag name: $tagname" >&2;} 10656 { (exit 1); exit 1; }; } 10657 ;; 10658 esac 10659 10660 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 10661 then 10662 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 10663echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 10664 { (exit 1); exit 1; }; } 10665 fi 10666 10667 # Update the list of available tags. 10668 if test -n "$tagname"; then 10669 echo appending configuration tag \"$tagname\" to $ofile 10670 10671 case $tagname in 10672 CXX) 10673 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 10674 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 10675 (test "X$CXX" != "Xg++"))) ; then 10676 ac_ext=cpp 10677ac_cpp='$CXXCPP $CPPFLAGS' 10678ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10679ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10680ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10681 10682 10683 10684 10685archive_cmds_need_lc_CXX=no 10686allow_undefined_flag_CXX= 10687always_export_symbols_CXX=no 10688archive_expsym_cmds_CXX= 10689export_dynamic_flag_spec_CXX= 10690hardcode_direct_CXX=no 10691hardcode_libdir_flag_spec_CXX= 10692hardcode_libdir_flag_spec_ld_CXX= 10693hardcode_libdir_separator_CXX= 10694hardcode_minus_L_CXX=no 10695hardcode_shlibpath_var_CXX=unsupported 10696hardcode_automatic_CXX=no 10697module_cmds_CXX= 10698module_expsym_cmds_CXX= 10699link_all_deplibs_CXX=unknown 10700old_archive_cmds_CXX=$old_archive_cmds 10701no_undefined_flag_CXX= 10702whole_archive_flag_spec_CXX= 10703enable_shared_with_static_runtimes_CXX=no 10704 10705# Dependencies to place before and after the object being linked: 10706predep_objects_CXX= 10707postdep_objects_CXX= 10708predeps_CXX= 10709postdeps_CXX= 10710compiler_lib_search_path_CXX= 10711 10712# Source file extension for C++ test sources. 10713ac_ext=cpp 10714 10715# Object file extension for compiled C++ test sources. 10716objext=o 10717objext_CXX=$objext 10718 10719# Code to be used in simple compile tests 10720lt_simple_compile_test_code="int some_variable = 0;" 10721 10722# Code to be used in simple link tests 10723lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 10724 10725# ltmain only uses $CC for tagged configurations so make sure $CC is set. 10726 10727# If no C compiler was specified, use CC. 10728LTCC=${LTCC-"$CC"} 10729 10730# If no C compiler flags were specified, use CFLAGS. 10731LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10732 10733# Allow CC to be a program name with arguments. 10734compiler=$CC 10735 10736 10737# save warnings/boilerplate of simple test code 10738ac_outfile=conftest.$ac_objext 10739echo "$lt_simple_compile_test_code" >conftest.$ac_ext 10740eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10741_lt_compiler_boilerplate=`cat conftest.err` 10742$rm conftest* 10743 10744ac_outfile=conftest.$ac_objext 10745echo "$lt_simple_link_test_code" >conftest.$ac_ext 10746eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10747_lt_linker_boilerplate=`cat conftest.err` 10748$rm conftest* 10749 10750 10751# Allow CC to be a program name with arguments. 10752lt_save_CC=$CC 10753lt_save_LD=$LD 10754lt_save_GCC=$GCC 10755GCC=$GXX 10756lt_save_with_gnu_ld=$with_gnu_ld 10757lt_save_path_LD=$lt_cv_path_LD 10758if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 10759 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 10760else 10761 $as_unset lt_cv_prog_gnu_ld 10762fi 10763if test -n "${lt_cv_path_LDCXX+set}"; then 10764 lt_cv_path_LD=$lt_cv_path_LDCXX 10765else 10766 $as_unset lt_cv_path_LD 10767fi 10768test -z "${LDCXX+set}" || LD=$LDCXX 10769CC=${CXX-"c++"} 10770compiler=$CC 10771compiler_CXX=$CC 10772for cc_temp in $compiler""; do 10773 case $cc_temp in 10774 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10775 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10776 \-*) ;; 10777 *) break;; 10778 esac 10779done 10780cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 10781 10782 10783# We don't want -fno-exception wen compiling C++ code, so set the 10784# no_builtin_flag separately 10785if test "$GXX" = yes; then 10786 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 10787else 10788 lt_prog_compiler_no_builtin_flag_CXX= 10789fi 10790 10791if test "$GXX" = yes; then 10792 # Set up default GNU C++ configuration 10793 10794 10795# Check whether --with-gnu-ld was given. 10796if test "${with_gnu_ld+set}" = set; then 10797 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 10798else 10799 with_gnu_ld=no 10800fi 10801 10802ac_prog=ld 10803if test "$GCC" = yes; then 10804 # Check if gcc -print-prog-name=ld gives a path. 10805 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 10806echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 10807 case $host in 10808 *-*-mingw*) 10809 # gcc leaves a trailing carriage return which upsets mingw 10810 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 10811 *) 10812 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 10813 esac 10814 case $ac_prog in 10815 # Accept absolute paths. 10816 [\\/]* | ?:[\\/]*) 10817 re_direlt='/[^/][^/]*/\.\./' 10818 # Canonicalize the pathname of ld 10819 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 10820 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 10821 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 10822 done 10823 test -z "$LD" && LD="$ac_prog" 10824 ;; 10825 "") 10826 # If it fails, then pretend we aren't using GCC. 10827 ac_prog=ld 10828 ;; 10829 *) 10830 # If it is relative, then search for the first ld in PATH. 10831 with_gnu_ld=unknown 10832 ;; 10833 esac 10834elif test "$with_gnu_ld" = yes; then 10835 { echo "$as_me:$LINENO: checking for GNU ld" >&5 10836echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 10837else 10838 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 10839echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 10840fi 10841if test "${lt_cv_path_LD+set}" = set; then 10842 echo $ECHO_N "(cached) $ECHO_C" >&6 10843else 10844 if test -z "$LD"; then 10845 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10846 for ac_dir in $PATH; do 10847 IFS="$lt_save_ifs" 10848 test -z "$ac_dir" && ac_dir=. 10849 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 10850 lt_cv_path_LD="$ac_dir/$ac_prog" 10851 # Check to see if the program is GNU ld. I'd rather use --version, 10852 # but apparently some variants of GNU ld only accept -v. 10853 # Break only if it was the GNU/non-GNU ld that we prefer. 10854 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 10855 *GNU* | *'with BFD'*) 10856 test "$with_gnu_ld" != no && break 10857 ;; 10858 *) 10859 test "$with_gnu_ld" != yes && break 10860 ;; 10861 esac 10862 fi 10863 done 10864 IFS="$lt_save_ifs" 10865else 10866 lt_cv_path_LD="$LD" # Let the user override the test with a path. 10867fi 10868fi 10869 10870LD="$lt_cv_path_LD" 10871if test -n "$LD"; then 10872 { echo "$as_me:$LINENO: result: $LD" >&5 10873echo "${ECHO_T}$LD" >&6; } 10874else 10875 { echo "$as_me:$LINENO: result: no" >&5 10876echo "${ECHO_T}no" >&6; } 10877fi 10878test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 10879echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 10880 { (exit 1); exit 1; }; } 10881{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 10882echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 10883if test "${lt_cv_prog_gnu_ld+set}" = set; then 10884 echo $ECHO_N "(cached) $ECHO_C" >&6 10885else 10886 # I'd rather use --version here, but apparently some GNU lds only accept -v. 10887case `$LD -v 2>&1 </dev/null` in 10888*GNU* | *'with BFD'*) 10889 lt_cv_prog_gnu_ld=yes 10890 ;; 10891*) 10892 lt_cv_prog_gnu_ld=no 10893 ;; 10894esac 10895fi 10896{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 10897echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 10898with_gnu_ld=$lt_cv_prog_gnu_ld 10899 10900 10901 10902 # Check if GNU C++ uses GNU ld as the underlying linker, since the 10903 # archiving commands below assume that GNU ld is being used. 10904 if test "$with_gnu_ld" = yes; then 10905 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10906 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' 10907 10908 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10909 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10910 10911 # If archive_cmds runs LD, not CC, wlarc should be empty 10912 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 10913 # investigate it a little bit more. (MM) 10914 wlarc='${wl}' 10915 10916 # ancient GNU ld didn't support --whole-archive et. al. 10917 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 10918 grep 'no-whole-archive' > /dev/null; then 10919 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10920 else 10921 whole_archive_flag_spec_CXX= 10922 fi 10923 else 10924 with_gnu_ld=no 10925 wlarc= 10926 10927 # A generic and very simple default shared library creation 10928 # command for GNU C++ for the case where it uses the native 10929 # linker, instead of GNU ld. If possible, this setting should 10930 # overridden to take advantage of the native linker features on 10931 # the platform it is being used on. 10932 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10933 fi 10934 10935 # Commands to make compiler produce verbose output that lists 10936 # what "hidden" libraries, object files and flags are used when 10937 # linking a shared library. 10938 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10939 10940else 10941 GXX=no 10942 with_gnu_ld=no 10943 wlarc= 10944fi 10945 10946# PORTME: fill in a description of your system's C++ link characteristics 10947{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10948echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 10949ld_shlibs_CXX=yes 10950case $host_os in 10951 aix3*) 10952 # FIXME: insert proper C++ library support 10953 ld_shlibs_CXX=no 10954 ;; 10955 aix4* | aix5*) 10956 if test "$host_cpu" = ia64; then 10957 # On IA64, the linker does run time linking by default, so we don't 10958 # have to do anything special. 10959 aix_use_runtimelinking=no 10960 exp_sym_flag='-Bexport' 10961 no_entry_flag="" 10962 else 10963 aix_use_runtimelinking=no 10964 10965 # Test if we are trying to use run time linking or normal 10966 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10967 # need to do runtime linking. 10968 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 10969 for ld_flag in $LDFLAGS; do 10970 case $ld_flag in 10971 *-brtl*) 10972 aix_use_runtimelinking=yes 10973 break 10974 ;; 10975 esac 10976 done 10977 ;; 10978 esac 10979 10980 exp_sym_flag='-bexport' 10981 no_entry_flag='-bnoentry' 10982 fi 10983 10984 # When large executables or shared objects are built, AIX ld can 10985 # have problems creating the table of contents. If linking a library 10986 # or program results in "error TOC overflow" add -mminimal-toc to 10987 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10988 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10989 10990 archive_cmds_CXX='' 10991 hardcode_direct_CXX=yes 10992 hardcode_libdir_separator_CXX=':' 10993 link_all_deplibs_CXX=yes 10994 10995 if test "$GXX" = yes; then 10996 case $host_os in aix4.[012]|aix4.[012].*) 10997 # We only want to do this on AIX 4.2 and lower, the check 10998 # below for broken collect2 doesn't work under 4.3+ 10999 collect2name=`${CC} -print-prog-name=collect2` 11000 if test -f "$collect2name" && \ 11001 strings "$collect2name" | grep resolve_lib_name >/dev/null 11002 then 11003 # We have reworked collect2 11004 : 11005 else 11006 # We have old collect2 11007 hardcode_direct_CXX=unsupported 11008 # It fails to find uninstalled libraries when the uninstalled 11009 # path is not listed in the libpath. Setting hardcode_minus_L 11010 # to unsupported forces relinking 11011 hardcode_minus_L_CXX=yes 11012 hardcode_libdir_flag_spec_CXX='-L$libdir' 11013 hardcode_libdir_separator_CXX= 11014 fi 11015 ;; 11016 esac 11017 shared_flag='-shared' 11018 if test "$aix_use_runtimelinking" = yes; then 11019 shared_flag="$shared_flag "'${wl}-G' 11020 fi 11021 else 11022 # not using gcc 11023 if test "$host_cpu" = ia64; then 11024 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11025 # chokes on -Wl,-G. The following line is correct: 11026 shared_flag='-G' 11027 else 11028 if test "$aix_use_runtimelinking" = yes; then 11029 shared_flag='${wl}-G' 11030 else 11031 shared_flag='${wl}-bM:SRE' 11032 fi 11033 fi 11034 fi 11035 11036 # It seems that -bexpall does not export symbols beginning with 11037 # underscore (_), so it is better to generate a list of symbols to export. 11038 always_export_symbols_CXX=yes 11039 if test "$aix_use_runtimelinking" = yes; then 11040 # Warning - without using the other runtime loading flags (-brtl), 11041 # -berok will link without error, but may produce a broken library. 11042 allow_undefined_flag_CXX='-berok' 11043 # Determine the default libpath from the value encoded in an empty executable. 11044 cat >conftest.$ac_ext <<_ACEOF 11045/* confdefs.h. */ 11046_ACEOF 11047cat confdefs.h >>conftest.$ac_ext 11048cat >>conftest.$ac_ext <<_ACEOF 11049/* end confdefs.h. */ 11050 11051int 11052main () 11053{ 11054 11055 ; 11056 return 0; 11057} 11058_ACEOF 11059rm -f conftest.$ac_objext conftest$ac_exeext 11060if { (ac_try="$ac_link" 11061case "(($ac_try" in 11062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11063 *) ac_try_echo=$ac_try;; 11064esac 11065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11066 (eval "$ac_link") 2>conftest.er1 11067 ac_status=$? 11068 grep -v '^ *+' conftest.er1 >conftest.err 11069 rm -f conftest.er1 11070 cat conftest.err >&5 11071 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11072 (exit $ac_status); } && { 11073 test -z "$ac_cxx_werror_flag" || 11074 test ! -s conftest.err 11075 } && test -s conftest$ac_exeext && 11076 $as_test_x conftest$ac_exeext; then 11077 11078lt_aix_libpath_sed=' 11079 /Import File Strings/,/^$/ { 11080 /^0/ { 11081 s/^0 *\(.*\)$/\1/ 11082 p 11083 } 11084 }' 11085aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11086# Check for a 64-bit object if we didn't find anything. 11087if test -z "$aix_libpath"; then 11088 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11089fi 11090else 11091 echo "$as_me: failed program was:" >&5 11092sed 's/^/| /' conftest.$ac_ext >&5 11093 11094 11095fi 11096 11097rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11098 conftest$ac_exeext conftest.$ac_ext 11099if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11100 11101 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11102 11103 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" 11104 else 11105 if test "$host_cpu" = ia64; then 11106 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11107 allow_undefined_flag_CXX="-z nodefs" 11108 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" 11109 else 11110 # Determine the default libpath from the value encoded in an empty executable. 11111 cat >conftest.$ac_ext <<_ACEOF 11112/* confdefs.h. */ 11113_ACEOF 11114cat confdefs.h >>conftest.$ac_ext 11115cat >>conftest.$ac_ext <<_ACEOF 11116/* end confdefs.h. */ 11117 11118int 11119main () 11120{ 11121 11122 ; 11123 return 0; 11124} 11125_ACEOF 11126rm -f conftest.$ac_objext conftest$ac_exeext 11127if { (ac_try="$ac_link" 11128case "(($ac_try" in 11129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11130 *) ac_try_echo=$ac_try;; 11131esac 11132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11133 (eval "$ac_link") 2>conftest.er1 11134 ac_status=$? 11135 grep -v '^ *+' conftest.er1 >conftest.err 11136 rm -f conftest.er1 11137 cat conftest.err >&5 11138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11139 (exit $ac_status); } && { 11140 test -z "$ac_cxx_werror_flag" || 11141 test ! -s conftest.err 11142 } && test -s conftest$ac_exeext && 11143 $as_test_x conftest$ac_exeext; then 11144 11145lt_aix_libpath_sed=' 11146 /Import File Strings/,/^$/ { 11147 /^0/ { 11148 s/^0 *\(.*\)$/\1/ 11149 p 11150 } 11151 }' 11152aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11153# Check for a 64-bit object if we didn't find anything. 11154if test -z "$aix_libpath"; then 11155 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11156fi 11157else 11158 echo "$as_me: failed program was:" >&5 11159sed 's/^/| /' conftest.$ac_ext >&5 11160 11161 11162fi 11163 11164rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11165 conftest$ac_exeext conftest.$ac_ext 11166if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11167 11168 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11169 # Warning - without using the other run time loading flags, 11170 # -berok will link without error, but may produce a broken library. 11171 no_undefined_flag_CXX=' ${wl}-bernotok' 11172 allow_undefined_flag_CXX=' ${wl}-berok' 11173 # Exported symbols can be pulled into shared objects from archives 11174 whole_archive_flag_spec_CXX='$convenience' 11175 archive_cmds_need_lc_CXX=yes 11176 # This is similar to how AIX traditionally builds its shared libraries. 11177 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' 11178 fi 11179 fi 11180 ;; 11181 11182 beos*) 11183 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11184 allow_undefined_flag_CXX=unsupported 11185 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11186 # support --undefined. This deserves some investigation. FIXME 11187 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11188 else 11189 ld_shlibs_CXX=no 11190 fi 11191 ;; 11192 11193 chorus*) 11194 case $cc_basename in 11195 *) 11196 # FIXME: insert proper C++ library support 11197 ld_shlibs_CXX=no 11198 ;; 11199 esac 11200 ;; 11201 11202 cygwin* | mingw* | pw32*) 11203 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11204 # as there is no search path for DLLs. 11205 hardcode_libdir_flag_spec_CXX='-L$libdir' 11206 allow_undefined_flag_CXX=unsupported 11207 always_export_symbols_CXX=no 11208 enable_shared_with_static_runtimes_CXX=yes 11209 11210 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11211 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' 11212 # If the export-symbols file already is a .def file (1st line 11213 # is EXPORTS), use it as is; otherwise, prepend... 11214 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11215 cp $export_symbols $output_objdir/$soname.def; 11216 else 11217 echo EXPORTS > $output_objdir/$soname.def; 11218 cat $export_symbols >> $output_objdir/$soname.def; 11219 fi~ 11220 $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' 11221 else 11222 ld_shlibs_CXX=no 11223 fi 11224 ;; 11225 darwin* | rhapsody*) 11226 case $host_os in 11227 rhapsody* | darwin1.[012]) 11228 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 11229 ;; 11230 *) # Darwin 1.3 on 11231 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 11232 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11233 else 11234 case ${MACOSX_DEPLOYMENT_TARGET} in 11235 10.[012]) 11236 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11237 ;; 11238 10.*) 11239 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 11240 ;; 11241 esac 11242 fi 11243 ;; 11244 esac 11245 archive_cmds_need_lc_CXX=no 11246 hardcode_direct_CXX=no 11247 hardcode_automatic_CXX=yes 11248 hardcode_shlibpath_var_CXX=unsupported 11249 whole_archive_flag_spec_CXX='' 11250 link_all_deplibs_CXX=yes 11251 11252 if test "$GXX" = yes ; then 11253 lt_int_apple_cc_single_mod=no 11254 output_verbose_link_cmd='echo' 11255 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 11256 lt_int_apple_cc_single_mod=yes 11257 fi 11258 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11259 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 11260 else 11261 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' 11262 fi 11263 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11264 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11265 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11266 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}' 11267 else 11268 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}' 11269 fi 11270 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}' 11271 else 11272 case $cc_basename in 11273 xlc*) 11274 output_verbose_link_cmd='echo' 11275 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 11276 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11277 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11278 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11279 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}' 11280 ;; 11281 *) 11282 ld_shlibs_CXX=no 11283 ;; 11284 esac 11285 fi 11286 ;; 11287 11288 dgux*) 11289 case $cc_basename in 11290 ec++*) 11291 # FIXME: insert proper C++ library support 11292 ld_shlibs_CXX=no 11293 ;; 11294 ghcx*) 11295 # Green Hills C++ Compiler 11296 # FIXME: insert proper C++ library support 11297 ld_shlibs_CXX=no 11298 ;; 11299 *) 11300 # FIXME: insert proper C++ library support 11301 ld_shlibs_CXX=no 11302 ;; 11303 esac 11304 ;; 11305 freebsd[12]*) 11306 # C++ shared libraries reported to be fairly broken before switch to ELF 11307 ld_shlibs_CXX=no 11308 ;; 11309 freebsd-elf*) 11310 archive_cmds_need_lc_CXX=no 11311 ;; 11312 freebsd* | dragonfly*) 11313 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11314 # conventions 11315 ld_shlibs_CXX=yes 11316 ;; 11317 gnu*) 11318 ;; 11319 hpux9*) 11320 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11321 hardcode_libdir_separator_CXX=: 11322 export_dynamic_flag_spec_CXX='${wl}-E' 11323 hardcode_direct_CXX=yes 11324 hardcode_minus_L_CXX=yes # Not in the search PATH, 11325 # but as the default 11326 # location of the library. 11327 11328 case $cc_basename in 11329 CC*) 11330 # FIXME: insert proper C++ library support 11331 ld_shlibs_CXX=no 11332 ;; 11333 aCC*) 11334 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' 11335 # Commands to make compiler produce verbose output that lists 11336 # what "hidden" libraries, object files and flags are used when 11337 # linking a shared library. 11338 # 11339 # There doesn't appear to be a way to prevent this compiler from 11340 # explicitly linking system object files so we need to strip them 11341 # from the output so that they don't get included in the library 11342 # dependencies. 11343 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' 11344 ;; 11345 *) 11346 if test "$GXX" = yes; then 11347 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' 11348 else 11349 # FIXME: insert proper C++ library support 11350 ld_shlibs_CXX=no 11351 fi 11352 ;; 11353 esac 11354 ;; 11355 hpux10*|hpux11*) 11356 if test $with_gnu_ld = no; then 11357 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11358 hardcode_libdir_separator_CXX=: 11359 11360 case $host_cpu in 11361 hppa*64*|ia64*) ;; 11362 *) 11363 export_dynamic_flag_spec_CXX='${wl}-E' 11364 ;; 11365 esac 11366 fi 11367 case $host_cpu in 11368 hppa*64*|ia64*) 11369 hardcode_direct_CXX=no 11370 hardcode_shlibpath_var_CXX=no 11371 ;; 11372 *) 11373 hardcode_direct_CXX=yes 11374 hardcode_minus_L_CXX=yes # Not in the search PATH, 11375 # but as the default 11376 # location of the library. 11377 ;; 11378 esac 11379 11380 case $cc_basename in 11381 CC*) 11382 # FIXME: insert proper C++ library support 11383 ld_shlibs_CXX=no 11384 ;; 11385 aCC*) 11386 case $host_cpu in 11387 hppa*64*) 11388 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11389 ;; 11390 ia64*) 11391 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11392 ;; 11393 *) 11394 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11395 ;; 11396 esac 11397 # Commands to make compiler produce verbose output that lists 11398 # what "hidden" libraries, object files and flags are used when 11399 # linking a shared library. 11400 # 11401 # There doesn't appear to be a way to prevent this compiler from 11402 # explicitly linking system object files so we need to strip them 11403 # from the output so that they don't get included in the library 11404 # dependencies. 11405 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' 11406 ;; 11407 *) 11408 if test "$GXX" = yes; then 11409 if test $with_gnu_ld = no; then 11410 case $host_cpu in 11411 hppa*64*) 11412 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11413 ;; 11414 ia64*) 11415 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11416 ;; 11417 *) 11418 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' 11419 ;; 11420 esac 11421 fi 11422 else 11423 # FIXME: insert proper C++ library support 11424 ld_shlibs_CXX=no 11425 fi 11426 ;; 11427 esac 11428 ;; 11429 interix[3-9]*) 11430 hardcode_direct_CXX=no 11431 hardcode_shlibpath_var_CXX=no 11432 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11433 export_dynamic_flag_spec_CXX='${wl}-E' 11434 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11435 # Instead, shared libraries are loaded at an image base (0x10000000 by 11436 # default) and relocated if they conflict, which is a slow very memory 11437 # consuming and fragmenting process. To avoid this, we pick a random, 11438 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11439 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11440 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' 11441 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' 11442 ;; 11443 irix5* | irix6*) 11444 case $cc_basename in 11445 CC*) 11446 # SGI C++ 11447 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' 11448 11449 # Archives containing C++ object files must be created using 11450 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11451 # necessary to make sure instantiated templates are included 11452 # in the archive. 11453 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11454 ;; 11455 *) 11456 if test "$GXX" = yes; then 11457 if test "$with_gnu_ld" = no; then 11458 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' 11459 else 11460 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' 11461 fi 11462 fi 11463 link_all_deplibs_CXX=yes 11464 ;; 11465 esac 11466 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11467 hardcode_libdir_separator_CXX=: 11468 ;; 11469 linux* | k*bsd*-gnu) 11470 case $cc_basename in 11471 KCC*) 11472 # Kuck and Associates, Inc. (KAI) C++ Compiler 11473 11474 # KCC will only create a shared library if the output file 11475 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11476 # to its proper name (with version) after linking. 11477 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' 11478 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' 11479 # Commands to make compiler produce verbose output that lists 11480 # what "hidden" libraries, object files and flags are used when 11481 # linking a shared library. 11482 # 11483 # There doesn't appear to be a way to prevent this compiler from 11484 # explicitly linking system object files so we need to strip them 11485 # from the output so that they don't get included in the library 11486 # dependencies. 11487 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' 11488 11489 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 11490 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11491 11492 # Archives containing C++ object files must be created using 11493 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11494 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11495 ;; 11496 icpc*) 11497 # Intel C++ 11498 with_gnu_ld=yes 11499 # version 8.0 and above of icpc choke on multiply defined symbols 11500 # if we add $predep_objects and $postdep_objects, however 7.1 and 11501 # earlier do not add the objects themselves. 11502 case `$CC -V 2>&1` in 11503 *"Version 7."*) 11504 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11505 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' 11506 ;; 11507 *) # Version 8.0 or newer 11508 tmp_idyn= 11509 case $host_cpu in 11510 ia64*) tmp_idyn=' -i_dynamic';; 11511 esac 11512 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11513 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' 11514 ;; 11515 esac 11516 archive_cmds_need_lc_CXX=no 11517 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11518 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11519 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11520 ;; 11521 pgCC*) 11522 # Portland Group C++ compiler 11523 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 11524 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' 11525 11526 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11527 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11528 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' 11529 ;; 11530 cxx*) 11531 # Compaq C++ 11532 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11533 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' 11534 11535 runpath_var=LD_RUN_PATH 11536 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11537 hardcode_libdir_separator_CXX=: 11538 11539 # Commands to make compiler produce verbose output that lists 11540 # what "hidden" libraries, object files and flags are used when 11541 # linking a shared library. 11542 # 11543 # There doesn't appear to be a way to prevent this compiler from 11544 # explicitly linking system object files so we need to strip them 11545 # from the output so that they don't get included in the library 11546 # dependencies. 11547 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' 11548 ;; 11549 *) 11550 case `$CC -V 2>&1 | sed 5q` in 11551 *Sun\ C*) 11552 # Sun C++ 5.9 11553 no_undefined_flag_CXX=' -zdefs' 11554 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11555 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' 11556 hardcode_libdir_flag_spec_CXX='-R$libdir' 11557 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 11558 11559 # Not sure whether something based on 11560 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 11561 # would be better. 11562 output_verbose_link_cmd='echo' 11563 11564 # Archives containing C++ object files must be created using 11565 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11566 # necessary to make sure instantiated templates are included 11567 # in the archive. 11568 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11569 ;; 11570 esac 11571 ;; 11572 esac 11573 ;; 11574 lynxos*) 11575 # FIXME: insert proper C++ library support 11576 ld_shlibs_CXX=no 11577 ;; 11578 m88k*) 11579 # FIXME: insert proper C++ library support 11580 ld_shlibs_CXX=no 11581 ;; 11582 mvs*) 11583 case $cc_basename in 11584 cxx*) 11585 # FIXME: insert proper C++ library support 11586 ld_shlibs_CXX=no 11587 ;; 11588 *) 11589 # FIXME: insert proper C++ library support 11590 ld_shlibs_CXX=no 11591 ;; 11592 esac 11593 ;; 11594 netbsd*) 11595 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11596 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 11597 wlarc= 11598 hardcode_libdir_flag_spec_CXX='-R$libdir' 11599 hardcode_direct_CXX=yes 11600 hardcode_shlibpath_var_CXX=no 11601 fi 11602 # Workaround some broken pre-1.5 toolchains 11603 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 11604 ;; 11605 openbsd2*) 11606 # C++ shared libraries are fairly broken 11607 ld_shlibs_CXX=no 11608 ;; 11609 openbsd*) 11610 if test -f /usr/libexec/ld.so; then 11611 hardcode_direct_CXX=yes 11612 hardcode_shlibpath_var_CXX=no 11613 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11614 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11615 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11616 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 11617 export_dynamic_flag_spec_CXX='${wl}-E' 11618 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11619 fi 11620 output_verbose_link_cmd='echo' 11621 else 11622 ld_shlibs_CXX=no 11623 fi 11624 ;; 11625 osf3*) 11626 case $cc_basename in 11627 KCC*) 11628 # Kuck and Associates, Inc. (KAI) C++ Compiler 11629 11630 # KCC will only create a shared library if the output file 11631 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11632 # to its proper name (with version) after linking. 11633 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' 11634 11635 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11636 hardcode_libdir_separator_CXX=: 11637 11638 # Archives containing C++ object files must be created using 11639 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11640 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11641 11642 ;; 11643 RCC*) 11644 # Rational C++ 2.4.1 11645 # FIXME: insert proper C++ library support 11646 ld_shlibs_CXX=no 11647 ;; 11648 cxx*) 11649 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11650 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' 11651 11652 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11653 hardcode_libdir_separator_CXX=: 11654 11655 # Commands to make compiler produce verbose output that lists 11656 # what "hidden" libraries, object files and flags are used when 11657 # linking a shared library. 11658 # 11659 # There doesn't appear to be a way to prevent this compiler from 11660 # explicitly linking system object files so we need to strip them 11661 # from the output so that they don't get included in the library 11662 # dependencies. 11663 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' 11664 ;; 11665 *) 11666 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11667 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11668 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' 11669 11670 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11671 hardcode_libdir_separator_CXX=: 11672 11673 # Commands to make compiler produce verbose output that lists 11674 # what "hidden" libraries, object files and flags are used when 11675 # linking a shared library. 11676 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11677 11678 else 11679 # FIXME: insert proper C++ library support 11680 ld_shlibs_CXX=no 11681 fi 11682 ;; 11683 esac 11684 ;; 11685 osf4* | osf5*) 11686 case $cc_basename in 11687 KCC*) 11688 # Kuck and Associates, Inc. (KAI) C++ Compiler 11689 11690 # KCC will only create a shared library if the output file 11691 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11692 # to its proper name (with version) after linking. 11693 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' 11694 11695 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11696 hardcode_libdir_separator_CXX=: 11697 11698 # Archives containing C++ object files must be created using 11699 # the KAI C++ compiler. 11700 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 11701 ;; 11702 RCC*) 11703 # Rational C++ 2.4.1 11704 # FIXME: insert proper C++ library support 11705 ld_shlibs_CXX=no 11706 ;; 11707 cxx*) 11708 allow_undefined_flag_CXX=' -expect_unresolved \*' 11709 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' 11710 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 11711 echo "-hidden">> $lib.exp~ 11712 $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~ 11713 $rm $lib.exp' 11714 11715 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11716 hardcode_libdir_separator_CXX=: 11717 11718 # Commands to make compiler produce verbose output that lists 11719 # what "hidden" libraries, object files and flags are used when 11720 # linking a shared library. 11721 # 11722 # There doesn't appear to be a way to prevent this compiler from 11723 # explicitly linking system object files so we need to strip them 11724 # from the output so that they don't get included in the library 11725 # dependencies. 11726 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' 11727 ;; 11728 *) 11729 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11730 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11731 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' 11732 11733 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11734 hardcode_libdir_separator_CXX=: 11735 11736 # Commands to make compiler produce verbose output that lists 11737 # what "hidden" libraries, object files and flags are used when 11738 # linking a shared library. 11739 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11740 11741 else 11742 # FIXME: insert proper C++ library support 11743 ld_shlibs_CXX=no 11744 fi 11745 ;; 11746 esac 11747 ;; 11748 psos*) 11749 # FIXME: insert proper C++ library support 11750 ld_shlibs_CXX=no 11751 ;; 11752 sunos4*) 11753 case $cc_basename in 11754 CC*) 11755 # Sun C++ 4.x 11756 # FIXME: insert proper C++ library support 11757 ld_shlibs_CXX=no 11758 ;; 11759 lcc*) 11760 # Lucid 11761 # FIXME: insert proper C++ library support 11762 ld_shlibs_CXX=no 11763 ;; 11764 *) 11765 # FIXME: insert proper C++ library support 11766 ld_shlibs_CXX=no 11767 ;; 11768 esac 11769 ;; 11770 solaris*) 11771 case $cc_basename in 11772 CC*) 11773 # Sun C++ 4.2, 5.x and Centerline C++ 11774 archive_cmds_need_lc_CXX=yes 11775 no_undefined_flag_CXX=' -zdefs' 11776 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11777 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11778 $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' 11779 11780 hardcode_libdir_flag_spec_CXX='-R$libdir' 11781 hardcode_shlibpath_var_CXX=no 11782 case $host_os in 11783 solaris2.[0-5] | solaris2.[0-5].*) ;; 11784 *) 11785 # The compiler driver will combine and reorder linker options, 11786 # but understands `-z linker_flag'. 11787 # Supported since Solaris 2.6 (maybe 2.5.1?) 11788 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 11789 ;; 11790 esac 11791 link_all_deplibs_CXX=yes 11792 11793 output_verbose_link_cmd='echo' 11794 11795 # Archives containing C++ object files must be created using 11796 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11797 # necessary to make sure instantiated templates are included 11798 # in the archive. 11799 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11800 ;; 11801 gcx*) 11802 # Green Hills C++ Compiler 11803 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11804 11805 # The C++ compiler must be used to create the archive. 11806 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 11807 ;; 11808 *) 11809 # GNU C++ compiler with Solaris linker 11810 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11811 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 11812 if $CC --version | grep -v '^2\.7' > /dev/null; then 11813 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11814 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11815 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11816 11817 # Commands to make compiler produce verbose output that lists 11818 # what "hidden" libraries, object files and flags are used when 11819 # linking a shared library. 11820 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11821 else 11822 # g++ 2.7 appears to require `-G' NOT `-shared' on this 11823 # platform. 11824 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11825 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11826 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11827 11828 # Commands to make compiler produce verbose output that lists 11829 # what "hidden" libraries, object files and flags are used when 11830 # linking a shared library. 11831 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11832 fi 11833 11834 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 11835 case $host_os in 11836 solaris2.[0-5] | solaris2.[0-5].*) ;; 11837 *) 11838 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 11839 ;; 11840 esac 11841 fi 11842 ;; 11843 esac 11844 ;; 11845 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11846 no_undefined_flag_CXX='${wl}-z,text' 11847 archive_cmds_need_lc_CXX=no 11848 hardcode_shlibpath_var_CXX=no 11849 runpath_var='LD_RUN_PATH' 11850 11851 case $cc_basename in 11852 CC*) 11853 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11854 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11855 ;; 11856 *) 11857 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11858 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11859 ;; 11860 esac 11861 ;; 11862 sysv5* | sco3.2v5* | sco5v6*) 11863 # Note: We can NOT use -z defs as we might desire, because we do not 11864 # link with -lc, and that would cause any symbols used from libc to 11865 # always be unresolved, which means just about no library would 11866 # ever link correctly. If we're not using GNU ld we use -z text 11867 # though, which does catch some bad symbols but isn't as heavy-handed 11868 # as -z defs. 11869 # For security reasons, it is highly recommended that you always 11870 # use absolute paths for naming shared libraries, and exclude the 11871 # DT_RUNPATH tag from executables and libraries. But doing so 11872 # requires that you compile everything twice, which is a pain. 11873 # So that behaviour is only enabled if SCOABSPATH is set to a 11874 # non-empty value in the environment. Most likely only useful for 11875 # creating official distributions of packages. 11876 # This is a hack until libtool officially supports absolute path 11877 # names for shared libraries. 11878 no_undefined_flag_CXX='${wl}-z,text' 11879 allow_undefined_flag_CXX='${wl}-z,nodefs' 11880 archive_cmds_need_lc_CXX=no 11881 hardcode_shlibpath_var_CXX=no 11882 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 11883 hardcode_libdir_separator_CXX=':' 11884 link_all_deplibs_CXX=yes 11885 export_dynamic_flag_spec_CXX='${wl}-Bexport' 11886 runpath_var='LD_RUN_PATH' 11887 11888 case $cc_basename in 11889 CC*) 11890 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11891 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11892 ;; 11893 *) 11894 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11895 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11896 ;; 11897 esac 11898 ;; 11899 tandem*) 11900 case $cc_basename in 11901 NCC*) 11902 # NonStop-UX NCC 3.20 11903 # FIXME: insert proper C++ library support 11904 ld_shlibs_CXX=no 11905 ;; 11906 *) 11907 # FIXME: insert proper C++ library support 11908 ld_shlibs_CXX=no 11909 ;; 11910 esac 11911 ;; 11912 vxworks*) 11913 # FIXME: insert proper C++ library support 11914 ld_shlibs_CXX=no 11915 ;; 11916 *) 11917 # FIXME: insert proper C++ library support 11918 ld_shlibs_CXX=no 11919 ;; 11920esac 11921{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11922echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 11923test "$ld_shlibs_CXX" = no && can_build_shared=no 11924 11925GCC_CXX="$GXX" 11926LD_CXX="$LD" 11927 11928 11929cat > conftest.$ac_ext <<EOF 11930class Foo 11931{ 11932public: 11933 Foo (void) { a = 0; } 11934private: 11935 int a; 11936}; 11937EOF 11938 11939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11940 (eval $ac_compile) 2>&5 11941 ac_status=$? 11942 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11943 (exit $ac_status); }; then 11944 # Parse the compiler output and extract the necessary 11945 # objects, libraries and library flags. 11946 11947 # Sentinel used to keep track of whether or not we are before 11948 # the conftest object file. 11949 pre_test_object_deps_done=no 11950 11951 # The `*' in the case matches for architectures that use `case' in 11952 # $output_verbose_cmd can trigger glob expansion during the loop 11953 # eval without this substitution. 11954 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 11955 11956 for p in `eval $output_verbose_link_cmd`; do 11957 case $p in 11958 11959 -L* | -R* | -l*) 11960 # Some compilers place space between "-{L,R}" and the path. 11961 # Remove the space. 11962 if test $p = "-L" \ 11963 || test $p = "-R"; then 11964 prev=$p 11965 continue 11966 else 11967 prev= 11968 fi 11969 11970 if test "$pre_test_object_deps_done" = no; then 11971 case $p in 11972 -L* | -R*) 11973 # Internal compiler library paths should come after those 11974 # provided the user. The postdeps already come after the 11975 # user supplied libs so there is no need to process them. 11976 if test -z "$compiler_lib_search_path_CXX"; then 11977 compiler_lib_search_path_CXX="${prev}${p}" 11978 else 11979 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 11980 fi 11981 ;; 11982 # The "-l" case would never come before the object being 11983 # linked, so don't bother handling this case. 11984 esac 11985 else 11986 if test -z "$postdeps_CXX"; then 11987 postdeps_CXX="${prev}${p}" 11988 else 11989 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 11990 fi 11991 fi 11992 ;; 11993 11994 *.$objext) 11995 # This assumes that the test object file only shows up 11996 # once in the compiler output. 11997 if test "$p" = "conftest.$objext"; then 11998 pre_test_object_deps_done=yes 11999 continue 12000 fi 12001 12002 if test "$pre_test_object_deps_done" = no; then 12003 if test -z "$predep_objects_CXX"; then 12004 predep_objects_CXX="$p" 12005 else 12006 predep_objects_CXX="$predep_objects_CXX $p" 12007 fi 12008 else 12009 if test -z "$postdep_objects_CXX"; then 12010 postdep_objects_CXX="$p" 12011 else 12012 postdep_objects_CXX="$postdep_objects_CXX $p" 12013 fi 12014 fi 12015 ;; 12016 12017 *) ;; # Ignore the rest. 12018 12019 esac 12020 done 12021 12022 # Clean up. 12023 rm -f a.out a.exe 12024else 12025 echo "libtool.m4: error: problem compiling CXX test program" 12026fi 12027 12028$rm -f confest.$objext 12029 12030# PORTME: override above test on systems where it is broken 12031case $host_os in 12032interix[3-9]*) 12033 # Interix 3.5 installs completely hosed .la files for C++, so rather than 12034 # hack all around it, let's just trust "g++" to DTRT. 12035 predep_objects_CXX= 12036 postdep_objects_CXX= 12037 postdeps_CXX= 12038 ;; 12039 12040linux*) 12041 case `$CC -V 2>&1 | sed 5q` in 12042 *Sun\ C*) 12043 # Sun C++ 5.9 12044 # 12045 # The more standards-conforming stlport4 library is 12046 # incompatible with the Cstd library. Avoid specifying 12047 # it if it's in CXXFLAGS. Ignore libCrun as 12048 # -library=stlport4 depends on it. 12049 case " $CXX $CXXFLAGS " in 12050 *" -library=stlport4 "*) 12051 solaris_use_stlport4=yes 12052 ;; 12053 esac 12054 if test "$solaris_use_stlport4" != yes; then 12055 postdeps_CXX='-library=Cstd -library=Crun' 12056 fi 12057 ;; 12058 esac 12059 ;; 12060 12061solaris*) 12062 case $cc_basename in 12063 CC*) 12064 # The more standards-conforming stlport4 library is 12065 # incompatible with the Cstd library. Avoid specifying 12066 # it if it's in CXXFLAGS. Ignore libCrun as 12067 # -library=stlport4 depends on it. 12068 case " $CXX $CXXFLAGS " in 12069 *" -library=stlport4 "*) 12070 solaris_use_stlport4=yes 12071 ;; 12072 esac 12073 12074 # Adding this requires a known-good setup of shared libraries for 12075 # Sun compiler versions before 5.6, else PIC objects from an old 12076 # archive will be linked into the output, leading to subtle bugs. 12077 if test "$solaris_use_stlport4" != yes; then 12078 postdeps_CXX='-library=Cstd -library=Crun' 12079 fi 12080 ;; 12081 esac 12082 ;; 12083esac 12084 12085 12086case " $postdeps_CXX " in 12087*" -lc "*) archive_cmds_need_lc_CXX=no ;; 12088esac 12089 12090lt_prog_compiler_wl_CXX= 12091lt_prog_compiler_pic_CXX= 12092lt_prog_compiler_static_CXX= 12093 12094{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12095echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 12096 12097 # C++ specific cases for pic, static, wl, etc. 12098 if test "$GXX" = yes; then 12099 lt_prog_compiler_wl_CXX='-Wl,' 12100 lt_prog_compiler_static_CXX='-static' 12101 12102 case $host_os in 12103 aix*) 12104 # All AIX code is PIC. 12105 if test "$host_cpu" = ia64; then 12106 # AIX 5 now supports IA64 processor 12107 lt_prog_compiler_static_CXX='-Bstatic' 12108 fi 12109 ;; 12110 amigaos*) 12111 # FIXME: we need at least 68020 code to build shared libraries, but 12112 # adding the `-m68020' flag to GCC prevents building anything better, 12113 # like `-m68040'. 12114 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12115 ;; 12116 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12117 # PIC is the default for these OSes. 12118 ;; 12119 mingw* | cygwin* | os2* | pw32*) 12120 # This hack is so that the source file can tell whether it is being 12121 # built for inclusion in a dll (and should export symbols for example). 12122 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12123 # (--disable-auto-import) libraries 12124 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 12125 ;; 12126 darwin* | rhapsody*) 12127 # PIC is the default on this platform 12128 # Common symbols not allowed in MH_DYLIB files 12129 lt_prog_compiler_pic_CXX='-fno-common' 12130 ;; 12131 *djgpp*) 12132 # DJGPP does not support shared libraries at all 12133 lt_prog_compiler_pic_CXX= 12134 ;; 12135 interix[3-9]*) 12136 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12137 # Instead, we relocate shared libraries at runtime. 12138 ;; 12139 sysv4*MP*) 12140 if test -d /usr/nec; then 12141 lt_prog_compiler_pic_CXX=-Kconform_pic 12142 fi 12143 ;; 12144 hpux*) 12145 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12146 # not for PA HP-UX. 12147 case $host_cpu in 12148 hppa*64*|ia64*) 12149 ;; 12150 *) 12151 lt_prog_compiler_pic_CXX='-fPIC' 12152 ;; 12153 esac 12154 ;; 12155 *) 12156 lt_prog_compiler_pic_CXX='-fPIC' 12157 ;; 12158 esac 12159 else 12160 case $host_os in 12161 aix4* | aix5*) 12162 # All AIX code is PIC. 12163 if test "$host_cpu" = ia64; then 12164 # AIX 5 now supports IA64 processor 12165 lt_prog_compiler_static_CXX='-Bstatic' 12166 else 12167 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12168 fi 12169 ;; 12170 chorus*) 12171 case $cc_basename in 12172 cxch68*) 12173 # Green Hills C++ Compiler 12174 # _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" 12175 ;; 12176 esac 12177 ;; 12178 darwin*) 12179 # PIC is the default on this platform 12180 # Common symbols not allowed in MH_DYLIB files 12181 case $cc_basename in 12182 xlc*) 12183 lt_prog_compiler_pic_CXX='-qnocommon' 12184 lt_prog_compiler_wl_CXX='-Wl,' 12185 ;; 12186 esac 12187 ;; 12188 dgux*) 12189 case $cc_basename in 12190 ec++*) 12191 lt_prog_compiler_pic_CXX='-KPIC' 12192 ;; 12193 ghcx*) 12194 # Green Hills C++ Compiler 12195 lt_prog_compiler_pic_CXX='-pic' 12196 ;; 12197 *) 12198 ;; 12199 esac 12200 ;; 12201 freebsd* | dragonfly*) 12202 # FreeBSD uses GNU C++ 12203 ;; 12204 hpux9* | hpux10* | hpux11*) 12205 case $cc_basename in 12206 CC*) 12207 lt_prog_compiler_wl_CXX='-Wl,' 12208 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12209 if test "$host_cpu" != ia64; then 12210 lt_prog_compiler_pic_CXX='+Z' 12211 fi 12212 ;; 12213 aCC*) 12214 lt_prog_compiler_wl_CXX='-Wl,' 12215 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12216 case $host_cpu in 12217 hppa*64*|ia64*) 12218 # +Z the default 12219 ;; 12220 *) 12221 lt_prog_compiler_pic_CXX='+Z' 12222 ;; 12223 esac 12224 ;; 12225 *) 12226 ;; 12227 esac 12228 ;; 12229 interix*) 12230 # This is c89, which is MS Visual C++ (no shared libs) 12231 # Anyone wants to do a port? 12232 ;; 12233 irix5* | irix6* | nonstopux*) 12234 case $cc_basename in 12235 CC*) 12236 lt_prog_compiler_wl_CXX='-Wl,' 12237 lt_prog_compiler_static_CXX='-non_shared' 12238 # CC pic flag -KPIC is the default. 12239 ;; 12240 *) 12241 ;; 12242 esac 12243 ;; 12244 linux* | k*bsd*-gnu) 12245 case $cc_basename in 12246 KCC*) 12247 # KAI C++ Compiler 12248 lt_prog_compiler_wl_CXX='--backend -Wl,' 12249 lt_prog_compiler_pic_CXX='-fPIC' 12250 ;; 12251 icpc* | ecpc*) 12252 # Intel C++ 12253 lt_prog_compiler_wl_CXX='-Wl,' 12254 lt_prog_compiler_pic_CXX='-KPIC' 12255 lt_prog_compiler_static_CXX='-static' 12256 ;; 12257 pgCC*) 12258 # Portland Group C++ compiler. 12259 lt_prog_compiler_wl_CXX='-Wl,' 12260 lt_prog_compiler_pic_CXX='-fpic' 12261 lt_prog_compiler_static_CXX='-Bstatic' 12262 ;; 12263 cxx*) 12264 # Compaq C++ 12265 # Make sure the PIC flag is empty. It appears that all Alpha 12266 # Linux and Compaq Tru64 Unix objects are PIC. 12267 lt_prog_compiler_pic_CXX= 12268 lt_prog_compiler_static_CXX='-non_shared' 12269 ;; 12270 *) 12271 case `$CC -V 2>&1 | sed 5q` in 12272 *Sun\ C*) 12273 # Sun C++ 5.9 12274 lt_prog_compiler_pic_CXX='-KPIC' 12275 lt_prog_compiler_static_CXX='-Bstatic' 12276 lt_prog_compiler_wl_CXX='-Qoption ld ' 12277 ;; 12278 esac 12279 ;; 12280 esac 12281 ;; 12282 lynxos*) 12283 ;; 12284 m88k*) 12285 ;; 12286 mvs*) 12287 case $cc_basename in 12288 cxx*) 12289 lt_prog_compiler_pic_CXX='-W c,exportall' 12290 ;; 12291 *) 12292 ;; 12293 esac 12294 ;; 12295 netbsd*) 12296 ;; 12297 osf3* | osf4* | osf5*) 12298 case $cc_basename in 12299 KCC*) 12300 lt_prog_compiler_wl_CXX='--backend -Wl,' 12301 ;; 12302 RCC*) 12303 # Rational C++ 2.4.1 12304 lt_prog_compiler_pic_CXX='-pic' 12305 ;; 12306 cxx*) 12307 # Digital/Compaq C++ 12308 lt_prog_compiler_wl_CXX='-Wl,' 12309 # Make sure the PIC flag is empty. It appears that all Alpha 12310 # Linux and Compaq Tru64 Unix objects are PIC. 12311 lt_prog_compiler_pic_CXX= 12312 lt_prog_compiler_static_CXX='-non_shared' 12313 ;; 12314 *) 12315 ;; 12316 esac 12317 ;; 12318 psos*) 12319 ;; 12320 solaris*) 12321 case $cc_basename in 12322 CC*) 12323 # Sun C++ 4.2, 5.x and Centerline C++ 12324 lt_prog_compiler_pic_CXX='-KPIC' 12325 lt_prog_compiler_static_CXX='-Bstatic' 12326 lt_prog_compiler_wl_CXX='-Qoption ld ' 12327 ;; 12328 gcx*) 12329 # Green Hills C++ Compiler 12330 lt_prog_compiler_pic_CXX='-PIC' 12331 ;; 12332 *) 12333 ;; 12334 esac 12335 ;; 12336 sunos4*) 12337 case $cc_basename in 12338 CC*) 12339 # Sun C++ 4.x 12340 lt_prog_compiler_pic_CXX='-pic' 12341 lt_prog_compiler_static_CXX='-Bstatic' 12342 ;; 12343 lcc*) 12344 # Lucid 12345 lt_prog_compiler_pic_CXX='-pic' 12346 ;; 12347 *) 12348 ;; 12349 esac 12350 ;; 12351 tandem*) 12352 case $cc_basename in 12353 NCC*) 12354 # NonStop-UX NCC 3.20 12355 lt_prog_compiler_pic_CXX='-KPIC' 12356 ;; 12357 *) 12358 ;; 12359 esac 12360 ;; 12361 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12362 case $cc_basename in 12363 CC*) 12364 lt_prog_compiler_wl_CXX='-Wl,' 12365 lt_prog_compiler_pic_CXX='-KPIC' 12366 lt_prog_compiler_static_CXX='-Bstatic' 12367 ;; 12368 esac 12369 ;; 12370 vxworks*) 12371 ;; 12372 *) 12373 lt_prog_compiler_can_build_shared_CXX=no 12374 ;; 12375 esac 12376 fi 12377 12378{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12379echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } 12380 12381# 12382# Check to make sure the PIC flag actually works. 12383# 12384if test -n "$lt_prog_compiler_pic_CXX"; then 12385 12386{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12387echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } 12388if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 12389 echo $ECHO_N "(cached) $ECHO_C" >&6 12390else 12391 lt_prog_compiler_pic_works_CXX=no 12392 ac_outfile=conftest.$ac_objext 12393 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12394 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12395 # Insert the option either (1) after the last *FLAGS variable, or 12396 # (2) before a word containing "conftest.", or (3) at the end. 12397 # Note that $ac_compile itself does not contain backslashes and begins 12398 # with a dollar sign (not a hyphen), so the echo should work correctly. 12399 # The option is referenced via a variable to avoid confusing sed. 12400 lt_compile=`echo "$ac_compile" | $SED \ 12401 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12402 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12403 -e 's:$: $lt_compiler_flag:'` 12404 (eval echo "\"\$as_me:12404: $lt_compile\"" >&5) 12405 (eval "$lt_compile" 2>conftest.err) 12406 ac_status=$? 12407 cat conftest.err >&5 12408 echo "$as_me:12408: \$? = $ac_status" >&5 12409 if (exit $ac_status) && test -s "$ac_outfile"; then 12410 # The compiler can only warn and ignore the option if not recognized 12411 # So say no if there are warnings other than the usual output. 12412 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12413 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12414 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12415 lt_prog_compiler_pic_works_CXX=yes 12416 fi 12417 fi 12418 $rm conftest* 12419 12420fi 12421{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 12422echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } 12423 12424if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 12425 case $lt_prog_compiler_pic_CXX in 12426 "" | " "*) ;; 12427 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12428 esac 12429else 12430 lt_prog_compiler_pic_CXX= 12431 lt_prog_compiler_can_build_shared_CXX=no 12432fi 12433 12434fi 12435case $host_os in 12436 # For platforms which do not support PIC, -DPIC is meaningless: 12437 *djgpp*) 12438 lt_prog_compiler_pic_CXX= 12439 ;; 12440 *) 12441 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12442 ;; 12443esac 12444 12445# 12446# Check to make sure the static flag actually works. 12447# 12448wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 12449{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12450echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 12451if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 12452 echo $ECHO_N "(cached) $ECHO_C" >&6 12453else 12454 lt_prog_compiler_static_works_CXX=no 12455 save_LDFLAGS="$LDFLAGS" 12456 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12457 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12458 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12459 # The linker can only warn and ignore the option if not recognized 12460 # So say no if there are warnings 12461 if test -s conftest.err; then 12462 # Append any errors to the config.log. 12463 cat conftest.err 1>&5 12464 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 12465 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12466 if diff conftest.exp conftest.er2 >/dev/null; then 12467 lt_prog_compiler_static_works_CXX=yes 12468 fi 12469 else 12470 lt_prog_compiler_static_works_CXX=yes 12471 fi 12472 fi 12473 $rm conftest* 12474 LDFLAGS="$save_LDFLAGS" 12475 12476fi 12477{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 12478echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } 12479 12480if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 12481 : 12482else 12483 lt_prog_compiler_static_CXX= 12484fi 12485 12486 12487{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12488echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 12489if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 12490 echo $ECHO_N "(cached) $ECHO_C" >&6 12491else 12492 lt_cv_prog_compiler_c_o_CXX=no 12493 $rm -r conftest 2>/dev/null 12494 mkdir conftest 12495 cd conftest 12496 mkdir out 12497 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12498 12499 lt_compiler_flag="-o out/conftest2.$ac_objext" 12500 # Insert the option either (1) after the last *FLAGS variable, or 12501 # (2) before a word containing "conftest.", or (3) at the end. 12502 # Note that $ac_compile itself does not contain backslashes and begins 12503 # with a dollar sign (not a hyphen), so the echo should work correctly. 12504 lt_compile=`echo "$ac_compile" | $SED \ 12505 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12506 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12507 -e 's:$: $lt_compiler_flag:'` 12508 (eval echo "\"\$as_me:12508: $lt_compile\"" >&5) 12509 (eval "$lt_compile" 2>out/conftest.err) 12510 ac_status=$? 12511 cat out/conftest.err >&5 12512 echo "$as_me:12512: \$? = $ac_status" >&5 12513 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12514 then 12515 # The compiler can only warn and ignore the option if not recognized 12516 # So say no if there are warnings 12517 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 12518 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12519 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12520 lt_cv_prog_compiler_c_o_CXX=yes 12521 fi 12522 fi 12523 chmod u+w . 2>&5 12524 $rm conftest* 12525 # SGI C++ compiler will create directory out/ii_files/ for 12526 # template instantiation 12527 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 12528 $rm out/* && rmdir out 12529 cd .. 12530 rmdir conftest 12531 $rm conftest* 12532 12533fi 12534{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 12535echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } 12536 12537 12538hard_links="nottested" 12539if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 12540 # do not overwrite the value of need_locks provided by the user 12541 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 12542echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 12543 hard_links=yes 12544 $rm conftest* 12545 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12546 touch conftest.a 12547 ln conftest.a conftest.b 2>&5 || hard_links=no 12548 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12549 { echo "$as_me:$LINENO: result: $hard_links" >&5 12550echo "${ECHO_T}$hard_links" >&6; } 12551 if test "$hard_links" = no; then 12552 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12553echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12554 need_locks=warn 12555 fi 12556else 12557 need_locks=no 12558fi 12559 12560{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12561echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 12562 12563 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12564 case $host_os in 12565 aix4* | aix5*) 12566 # If we're using GNU nm, then we don't want the "-C" option. 12567 # -C means demangle to AIX nm, but means don't demangle with GNU nm 12568 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 12569 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' 12570 else 12571 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' 12572 fi 12573 ;; 12574 pw32*) 12575 export_symbols_cmds_CXX="$ltdll_cmds" 12576 ;; 12577 cygwin* | mingw*) 12578 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' 12579 ;; 12580 *) 12581 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12582 ;; 12583 esac 12584 12585{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12586echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12587test "$ld_shlibs_CXX" = no && can_build_shared=no 12588 12589# 12590# Do we need to explicitly link libc? 12591# 12592case "x$archive_cmds_need_lc_CXX" in 12593x|xyes) 12594 # Assume -lc should be added 12595 archive_cmds_need_lc_CXX=yes 12596 12597 if test "$enable_shared" = yes && test "$GCC" = yes; then 12598 case $archive_cmds_CXX in 12599 *'~'*) 12600 # FIXME: we may have to deal with multi-command sequences. 12601 ;; 12602 '$CC '*) 12603 # Test whether the compiler implicitly links with -lc since on some 12604 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12605 # to ld, don't add -lc before -lgcc. 12606 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 12607echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 12608 $rm conftest* 12609 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12610 12611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12612 (eval $ac_compile) 2>&5 12613 ac_status=$? 12614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12615 (exit $ac_status); } 2>conftest.err; then 12616 soname=conftest 12617 lib=conftest 12618 libobjs=conftest.$ac_objext 12619 deplibs= 12620 wl=$lt_prog_compiler_wl_CXX 12621 pic_flag=$lt_prog_compiler_pic_CXX 12622 compiler_flags=-v 12623 linker_flags=-v 12624 verstring= 12625 output_objdir=. 12626 libname=conftest 12627 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 12628 allow_undefined_flag_CXX= 12629 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 12630 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 12631 ac_status=$? 12632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12633 (exit $ac_status); } 12634 then 12635 archive_cmds_need_lc_CXX=no 12636 else 12637 archive_cmds_need_lc_CXX=yes 12638 fi 12639 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 12640 else 12641 cat conftest.err 1>&5 12642 fi 12643 $rm conftest* 12644 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 12645echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } 12646 ;; 12647 esac 12648 fi 12649 ;; 12650esac 12651 12652{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 12653echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 12654library_names_spec= 12655libname_spec='lib$name' 12656soname_spec= 12657shrext_cmds=".so" 12658postinstall_cmds= 12659postuninstall_cmds= 12660finish_cmds= 12661finish_eval= 12662shlibpath_var= 12663shlibpath_overrides_runpath=unknown 12664version_type=none 12665dynamic_linker="$host_os ld.so" 12666sys_lib_dlsearch_path_spec="/lib /usr/lib" 12667 12668need_lib_prefix=unknown 12669hardcode_into_libs=no 12670 12671# when you set need_version to no, make sure it does not cause -set_version 12672# flags to be left without arguments 12673need_version=unknown 12674 12675case $host_os in 12676aix3*) 12677 version_type=linux 12678 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12679 shlibpath_var=LIBPATH 12680 12681 # AIX 3 has no versioning support, so we append a major version to the name. 12682 soname_spec='${libname}${release}${shared_ext}$major' 12683 ;; 12684 12685aix4* | aix5*) 12686 version_type=linux 12687 need_lib_prefix=no 12688 need_version=no 12689 hardcode_into_libs=yes 12690 if test "$host_cpu" = ia64; then 12691 # AIX 5 supports IA64 12692 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 12693 shlibpath_var=LD_LIBRARY_PATH 12694 else 12695 # With GCC up to 2.95.x, collect2 would create an import file 12696 # for dependence libraries. The import file would start with 12697 # the line `#! .'. This would cause the generated library to 12698 # depend on `.', always an invalid library. This was fixed in 12699 # development snapshots of GCC prior to 3.0. 12700 case $host_os in 12701 aix4 | aix4.[01] | aix4.[01].*) 12702 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12703 echo ' yes ' 12704 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 12705 : 12706 else 12707 can_build_shared=no 12708 fi 12709 ;; 12710 esac 12711 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 12712 # soname into executable. Probably we can add versioning support to 12713 # collect2, so additional links can be useful in future. 12714 if test "$aix_use_runtimelinking" = yes; then 12715 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12716 # instead of lib<name>.a to let people know that these are not 12717 # typical AIX shared libraries. 12718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12719 else 12720 # We preserve .a as extension for shared libraries through AIX4.2 12721 # and later when we are not doing run time linking. 12722 library_names_spec='${libname}${release}.a $libname.a' 12723 soname_spec='${libname}${release}${shared_ext}$major' 12724 fi 12725 shlibpath_var=LIBPATH 12726 fi 12727 ;; 12728 12729amigaos*) 12730 library_names_spec='$libname.ixlibrary $libname.a' 12731 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12732 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' 12733 ;; 12734 12735beos*) 12736 library_names_spec='${libname}${shared_ext}' 12737 dynamic_linker="$host_os ld.so" 12738 shlibpath_var=LIBRARY_PATH 12739 ;; 12740 12741bsdi[45]*) 12742 version_type=linux 12743 need_version=no 12744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12745 soname_spec='${libname}${release}${shared_ext}$major' 12746 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12747 shlibpath_var=LD_LIBRARY_PATH 12748 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12749 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12750 # the default ld.so.conf also contains /usr/contrib/lib and 12751 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12752 # libtool to hard-code these into programs 12753 ;; 12754 12755cygwin* | mingw* | pw32*) 12756 version_type=windows 12757 shrext_cmds=".dll" 12758 need_version=no 12759 need_lib_prefix=no 12760 12761 case $GCC,$host_os in 12762 yes,cygwin* | yes,mingw* | yes,pw32*) 12763 library_names_spec='$libname.dll.a' 12764 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12765 postinstall_cmds='base_file=`basename \${file}`~ 12766 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 12767 dldir=$destdir/`dirname \$dlpath`~ 12768 test -d \$dldir || mkdir -p \$dldir~ 12769 $install_prog $dir/$dlname \$dldir/$dlname~ 12770 chmod a+x \$dldir/$dlname' 12771 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12772 dlpath=$dir/\$dldll~ 12773 $rm \$dlpath' 12774 shlibpath_overrides_runpath=yes 12775 12776 case $host_os in 12777 cygwin*) 12778 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12779 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12780 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 12781 ;; 12782 mingw*) 12783 # MinGW DLLs use traditional 'lib' prefix 12784 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12785 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12786 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 12787 # It is most probably a Windows format PATH printed by 12788 # mingw gcc, but we are running on Cygwin. Gcc prints its search 12789 # path with ; separators, and with drive letters. We can handle the 12790 # drive letters (cygwin fileutils understands them), so leave them, 12791 # especially as we might pass files found there to a mingw objdump, 12792 # which wouldn't understand a cygwinified path. Ahh. 12793 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12794 else 12795 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12796 fi 12797 ;; 12798 pw32*) 12799 # pw32 DLLs use 'pw' prefix rather than 'lib' 12800 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12801 ;; 12802 esac 12803 ;; 12804 12805 *) 12806 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 12807 ;; 12808 esac 12809 dynamic_linker='Win32 ld.exe' 12810 # FIXME: first we should search . and the directory the executable is in 12811 shlibpath_var=PATH 12812 ;; 12813 12814darwin* | rhapsody*) 12815 dynamic_linker="$host_os dyld" 12816 version_type=darwin 12817 need_lib_prefix=no 12818 need_version=no 12819 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 12820 soname_spec='${libname}${release}${major}$shared_ext' 12821 shlibpath_overrides_runpath=yes 12822 shlibpath_var=DYLD_LIBRARY_PATH 12823 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12824 12825 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12826 ;; 12827 12828dgux*) 12829 version_type=linux 12830 need_lib_prefix=no 12831 need_version=no 12832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 12833 soname_spec='${libname}${release}${shared_ext}$major' 12834 shlibpath_var=LD_LIBRARY_PATH 12835 ;; 12836 12837freebsd1*) 12838 dynamic_linker=no 12839 ;; 12840 12841freebsd* | dragonfly*) 12842 # DragonFly does not have aout. When/if they implement a new 12843 # versioning mechanism, adjust this. 12844 if test -x /usr/bin/objformat; then 12845 objformat=`/usr/bin/objformat` 12846 else 12847 case $host_os in 12848 freebsd[123]*) objformat=aout ;; 12849 *) objformat=elf ;; 12850 esac 12851 fi 12852 version_type=freebsd-$objformat 12853 case $version_type in 12854 freebsd-elf*) 12855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12856 need_version=no 12857 need_lib_prefix=no 12858 ;; 12859 freebsd-*) 12860 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 12861 need_version=yes 12862 ;; 12863 esac 12864 shlibpath_var=LD_LIBRARY_PATH 12865 case $host_os in 12866 freebsd2*) 12867 shlibpath_overrides_runpath=yes 12868 ;; 12869 freebsd3.[01]* | freebsdelf3.[01]*) 12870 shlibpath_overrides_runpath=yes 12871 hardcode_into_libs=yes 12872 ;; 12873 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12874 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12875 shlibpath_overrides_runpath=no 12876 hardcode_into_libs=yes 12877 ;; 12878 *) # from 4.6 on, and DragonFly 12879 shlibpath_overrides_runpath=yes 12880 hardcode_into_libs=yes 12881 ;; 12882 esac 12883 ;; 12884 12885gnu*) 12886 version_type=linux 12887 need_lib_prefix=no 12888 need_version=no 12889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12890 soname_spec='${libname}${release}${shared_ext}$major' 12891 shlibpath_var=LD_LIBRARY_PATH 12892 hardcode_into_libs=yes 12893 ;; 12894 12895hpux9* | hpux10* | hpux11*) 12896 # Give a soname corresponding to the major version so that dld.sl refuses to 12897 # link against other versions. 12898 version_type=sunos 12899 need_lib_prefix=no 12900 need_version=no 12901 case $host_cpu in 12902 ia64*) 12903 shrext_cmds='.so' 12904 hardcode_into_libs=yes 12905 dynamic_linker="$host_os dld.so" 12906 shlibpath_var=LD_LIBRARY_PATH 12907 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12909 soname_spec='${libname}${release}${shared_ext}$major' 12910 if test "X$HPUX_IA64_MODE" = X32; then 12911 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12912 else 12913 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12914 fi 12915 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12916 ;; 12917 hppa*64*) 12918 shrext_cmds='.sl' 12919 hardcode_into_libs=yes 12920 dynamic_linker="$host_os dld.sl" 12921 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12922 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12924 soname_spec='${libname}${release}${shared_ext}$major' 12925 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12926 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12927 ;; 12928 *) 12929 shrext_cmds='.sl' 12930 dynamic_linker="$host_os dld.sl" 12931 shlibpath_var=SHLIB_PATH 12932 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12934 soname_spec='${libname}${release}${shared_ext}$major' 12935 ;; 12936 esac 12937 # HP-UX runs *really* slowly unless shared libraries are mode 555. 12938 postinstall_cmds='chmod 555 $lib' 12939 ;; 12940 12941interix[3-9]*) 12942 version_type=linux 12943 need_lib_prefix=no 12944 need_version=no 12945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12946 soname_spec='${libname}${release}${shared_ext}$major' 12947 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12948 shlibpath_var=LD_LIBRARY_PATH 12949 shlibpath_overrides_runpath=no 12950 hardcode_into_libs=yes 12951 ;; 12952 12953irix5* | irix6* | nonstopux*) 12954 case $host_os in 12955 nonstopux*) version_type=nonstopux ;; 12956 *) 12957 if test "$lt_cv_prog_gnu_ld" = yes; then 12958 version_type=linux 12959 else 12960 version_type=irix 12961 fi ;; 12962 esac 12963 need_lib_prefix=no 12964 need_version=no 12965 soname_spec='${libname}${release}${shared_ext}$major' 12966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 12967 case $host_os in 12968 irix5* | nonstopux*) 12969 libsuff= shlibsuff= 12970 ;; 12971 *) 12972 case $LD in # libtool.m4 will add one of these switches to LD 12973 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12974 libsuff= shlibsuff= libmagic=32-bit;; 12975 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12976 libsuff=32 shlibsuff=N32 libmagic=N32;; 12977 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12978 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12979 *) libsuff= shlibsuff= libmagic=never-match;; 12980 esac 12981 ;; 12982 esac 12983 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12984 shlibpath_overrides_runpath=no 12985 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12986 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12987 hardcode_into_libs=yes 12988 ;; 12989 12990# No shared lib support for Linux oldld, aout, or coff. 12991linux*oldld* | linux*aout* | linux*coff*) 12992 dynamic_linker=no 12993 ;; 12994 12995# This must be Linux ELF. 12996linux* | k*bsd*-gnu) 12997 version_type=linux 12998 need_lib_prefix=no 12999 need_version=no 13000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13001 soname_spec='${libname}${release}${shared_ext}$major' 13002 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13003 shlibpath_var=LD_LIBRARY_PATH 13004 shlibpath_overrides_runpath=no 13005 # This implies no fast_install, which is unacceptable. 13006 # Some rework will be needed to allow for fast_install 13007 # before this can be enabled. 13008 hardcode_into_libs=yes 13009 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13010 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13011 13012 # Append ld.so.conf contents to the search path 13013 if test -f /etc/ld.so.conf; then 13014 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 13015 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 13016 fi 13017 13018 # We used to test for /lib/ld.so.1 and disable shared libraries on 13019 # powerpc, because MkLinux only supported shared libraries with the 13020 # GNU dynamic linker. Since this was broken with cross compilers, 13021 # most powerpc-linux boxes support dynamic linking these days and 13022 # people can always --disable-shared, the test was removed, and we 13023 # assume the GNU/Linux dynamic linker is in use. 13024 dynamic_linker='GNU/Linux ld.so' 13025 ;; 13026 13027netbsd*) 13028 version_type=sunos 13029 need_lib_prefix=no 13030 need_version=no 13031 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13033 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13034 dynamic_linker='NetBSD (a.out) ld.so' 13035 else 13036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13037 soname_spec='${libname}${release}${shared_ext}$major' 13038 dynamic_linker='NetBSD ld.elf_so' 13039 fi 13040 shlibpath_var=LD_LIBRARY_PATH 13041 shlibpath_overrides_runpath=yes 13042 hardcode_into_libs=yes 13043 ;; 13044 13045newsos6) 13046 version_type=linux 13047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13048 shlibpath_var=LD_LIBRARY_PATH 13049 shlibpath_overrides_runpath=yes 13050 ;; 13051 13052nto-qnx*) 13053 version_type=linux 13054 need_lib_prefix=no 13055 need_version=no 13056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13057 soname_spec='${libname}${release}${shared_ext}$major' 13058 shlibpath_var=LD_LIBRARY_PATH 13059 shlibpath_overrides_runpath=yes 13060 ;; 13061 13062openbsd*) 13063 version_type=sunos 13064 sys_lib_dlsearch_path_spec="/usr/lib" 13065 need_lib_prefix=no 13066 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 13067 case $host_os in 13068 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 13069 *) need_version=no ;; 13070 esac 13071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13072 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13073 shlibpath_var=LD_LIBRARY_PATH 13074 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13075 case $host_os in 13076 openbsd2.[89] | openbsd2.[89].*) 13077 shlibpath_overrides_runpath=no 13078 ;; 13079 *) 13080 shlibpath_overrides_runpath=yes 13081 ;; 13082 esac 13083 else 13084 shlibpath_overrides_runpath=yes 13085 fi 13086 ;; 13087 13088os2*) 13089 libname_spec='$name' 13090 shrext_cmds=".dll" 13091 need_lib_prefix=no 13092 library_names_spec='$libname${shared_ext} $libname.a' 13093 dynamic_linker='OS/2 ld.exe' 13094 shlibpath_var=LIBPATH 13095 ;; 13096 13097osf3* | osf4* | osf5*) 13098 version_type=osf 13099 need_lib_prefix=no 13100 need_version=no 13101 soname_spec='${libname}${release}${shared_ext}$major' 13102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13103 shlibpath_var=LD_LIBRARY_PATH 13104 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13105 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13106 ;; 13107 13108rdos*) 13109 dynamic_linker=no 13110 ;; 13111 13112solaris*) 13113 version_type=linux 13114 need_lib_prefix=no 13115 need_version=no 13116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13117 soname_spec='${libname}${release}${shared_ext}$major' 13118 shlibpath_var=LD_LIBRARY_PATH 13119 shlibpath_overrides_runpath=yes 13120 hardcode_into_libs=yes 13121 # ldd complains unless libraries are executable 13122 postinstall_cmds='chmod +x $lib' 13123 ;; 13124 13125sunos4*) 13126 version_type=sunos 13127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13128 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13129 shlibpath_var=LD_LIBRARY_PATH 13130 shlibpath_overrides_runpath=yes 13131 if test "$with_gnu_ld" = yes; then 13132 need_lib_prefix=no 13133 fi 13134 need_version=yes 13135 ;; 13136 13137sysv4 | sysv4.3*) 13138 version_type=linux 13139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13140 soname_spec='${libname}${release}${shared_ext}$major' 13141 shlibpath_var=LD_LIBRARY_PATH 13142 case $host_vendor in 13143 sni) 13144 shlibpath_overrides_runpath=no 13145 need_lib_prefix=no 13146 export_dynamic_flag_spec='${wl}-Blargedynsym' 13147 runpath_var=LD_RUN_PATH 13148 ;; 13149 siemens) 13150 need_lib_prefix=no 13151 ;; 13152 motorola) 13153 need_lib_prefix=no 13154 need_version=no 13155 shlibpath_overrides_runpath=no 13156 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13157 ;; 13158 esac 13159 ;; 13160 13161sysv4*MP*) 13162 if test -d /usr/nec ;then 13163 version_type=linux 13164 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13165 soname_spec='$libname${shared_ext}.$major' 13166 shlibpath_var=LD_LIBRARY_PATH 13167 fi 13168 ;; 13169 13170sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13171 version_type=freebsd-elf 13172 need_lib_prefix=no 13173 need_version=no 13174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13175 soname_spec='${libname}${release}${shared_ext}$major' 13176 shlibpath_var=LD_LIBRARY_PATH 13177 hardcode_into_libs=yes 13178 if test "$with_gnu_ld" = yes; then 13179 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13180 shlibpath_overrides_runpath=no 13181 else 13182 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13183 shlibpath_overrides_runpath=yes 13184 case $host_os in 13185 sco3.2v5*) 13186 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13187 ;; 13188 esac 13189 fi 13190 sys_lib_dlsearch_path_spec='/usr/lib' 13191 ;; 13192 13193uts4*) 13194 version_type=linux 13195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13196 soname_spec='${libname}${release}${shared_ext}$major' 13197 shlibpath_var=LD_LIBRARY_PATH 13198 ;; 13199 13200*) 13201 dynamic_linker=no 13202 ;; 13203esac 13204{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13205echo "${ECHO_T}$dynamic_linker" >&6; } 13206test "$dynamic_linker" = no && can_build_shared=no 13207 13208variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13209if test "$GCC" = yes; then 13210 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13211fi 13212 13213{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13214echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 13215hardcode_action_CXX= 13216if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13217 test -n "$runpath_var_CXX" || \ 13218 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13219 13220 # We can hardcode non-existant directories. 13221 if test "$hardcode_direct_CXX" != no && 13222 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13223 # have to relink, otherwise we might link with an installed library 13224 # when we should be linking with a yet-to-be-installed one 13225 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13226 test "$hardcode_minus_L_CXX" != no; then 13227 # Linking always hardcodes the temporary library directory. 13228 hardcode_action_CXX=relink 13229 else 13230 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13231 hardcode_action_CXX=immediate 13232 fi 13233else 13234 # We cannot hardcode anything, or else we can only hardcode existing 13235 # directories. 13236 hardcode_action_CXX=unsupported 13237fi 13238{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13239echo "${ECHO_T}$hardcode_action_CXX" >&6; } 13240 13241if test "$hardcode_action_CXX" = relink; then 13242 # Fast installation is not supported 13243 enable_fast_install=no 13244elif test "$shlibpath_overrides_runpath" = yes || 13245 test "$enable_shared" = no; then 13246 # Fast installation is not necessary 13247 enable_fast_install=needless 13248fi 13249 13250 13251# The else clause should only fire when bootstrapping the 13252# libtool distribution, otherwise you forgot to ship ltmain.sh 13253# with your package, and you will get complaints that there are 13254# no rules to generate ltmain.sh. 13255if test -f "$ltmain"; then 13256 # See if we are running on zsh, and set the options which allow our commands through 13257 # without removal of \ escapes. 13258 if test -n "${ZSH_VERSION+set}" ; then 13259 setopt NO_GLOB_SUBST 13260 fi 13261 # Now quote all the things that may contain metacharacters while being 13262 # careful not to overquote the AC_SUBSTed values. We take copies of the 13263 # variables and quote the copies for generation of the libtool script. 13264 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13265 SED SHELL STRIP \ 13266 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13267 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13268 deplibs_check_method reload_flag reload_cmds need_locks \ 13269 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13270 lt_cv_sys_global_symbol_to_c_name_address \ 13271 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13272 old_postinstall_cmds old_postuninstall_cmds \ 13273 compiler_CXX \ 13274 CC_CXX \ 13275 LD_CXX \ 13276 lt_prog_compiler_wl_CXX \ 13277 lt_prog_compiler_pic_CXX \ 13278 lt_prog_compiler_static_CXX \ 13279 lt_prog_compiler_no_builtin_flag_CXX \ 13280 export_dynamic_flag_spec_CXX \ 13281 thread_safe_flag_spec_CXX \ 13282 whole_archive_flag_spec_CXX \ 13283 enable_shared_with_static_runtimes_CXX \ 13284 old_archive_cmds_CXX \ 13285 old_archive_from_new_cmds_CXX \ 13286 predep_objects_CXX \ 13287 postdep_objects_CXX \ 13288 predeps_CXX \ 13289 postdeps_CXX \ 13290 compiler_lib_search_path_CXX \ 13291 archive_cmds_CXX \ 13292 archive_expsym_cmds_CXX \ 13293 postinstall_cmds_CXX \ 13294 postuninstall_cmds_CXX \ 13295 old_archive_from_expsyms_cmds_CXX \ 13296 allow_undefined_flag_CXX \ 13297 no_undefined_flag_CXX \ 13298 export_symbols_cmds_CXX \ 13299 hardcode_libdir_flag_spec_CXX \ 13300 hardcode_libdir_flag_spec_ld_CXX \ 13301 hardcode_libdir_separator_CXX \ 13302 hardcode_automatic_CXX \ 13303 module_cmds_CXX \ 13304 module_expsym_cmds_CXX \ 13305 lt_cv_prog_compiler_c_o_CXX \ 13306 fix_srcfile_path_CXX \ 13307 exclude_expsyms_CXX \ 13308 include_expsyms_CXX; do 13309 13310 case $var in 13311 old_archive_cmds_CXX | \ 13312 old_archive_from_new_cmds_CXX | \ 13313 archive_cmds_CXX | \ 13314 archive_expsym_cmds_CXX | \ 13315 module_cmds_CXX | \ 13316 module_expsym_cmds_CXX | \ 13317 old_archive_from_expsyms_cmds_CXX | \ 13318 export_symbols_cmds_CXX | \ 13319 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13320 postinstall_cmds | postuninstall_cmds | \ 13321 old_postinstall_cmds | old_postuninstall_cmds | \ 13322 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13323 # Double-quote double-evaled strings. 13324 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13325 ;; 13326 *) 13327 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13328 ;; 13329 esac 13330 done 13331 13332 case $lt_echo in 13333 *'\$0 --fallback-echo"') 13334 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13335 ;; 13336 esac 13337 13338cfgfile="$ofile" 13339 13340 cat <<__EOF__ >> "$cfgfile" 13341# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13342 13343# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13344 13345# Shell to use when invoking shell scripts. 13346SHELL=$lt_SHELL 13347 13348# Whether or not to build shared libraries. 13349build_libtool_libs=$enable_shared 13350 13351# Whether or not to build static libraries. 13352build_old_libs=$enable_static 13353 13354# Whether or not to add -lc for building shared libraries. 13355build_libtool_need_lc=$archive_cmds_need_lc_CXX 13356 13357# Whether or not to disallow shared libs when runtime libs are static 13358allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13359 13360# Whether or not to optimize for fast installation. 13361fast_install=$enable_fast_install 13362 13363# The host system. 13364host_alias=$host_alias 13365host=$host 13366host_os=$host_os 13367 13368# The build system. 13369build_alias=$build_alias 13370build=$build 13371build_os=$build_os 13372 13373# An echo program that does not interpret backslashes. 13374echo=$lt_echo 13375 13376# The archiver. 13377AR=$lt_AR 13378AR_FLAGS=$lt_AR_FLAGS 13379 13380# A C compiler. 13381LTCC=$lt_LTCC 13382 13383# LTCC compiler flags. 13384LTCFLAGS=$lt_LTCFLAGS 13385 13386# A language-specific compiler. 13387CC=$lt_compiler_CXX 13388 13389# Is the compiler the GNU C compiler? 13390with_gcc=$GCC_CXX 13391 13392# An ERE matcher. 13393EGREP=$lt_EGREP 13394 13395# The linker used to build libraries. 13396LD=$lt_LD_CXX 13397 13398# Whether we need hard or soft links. 13399LN_S=$lt_LN_S 13400 13401# A BSD-compatible nm program. 13402NM=$lt_NM 13403 13404# A symbol stripping program 13405STRIP=$lt_STRIP 13406 13407# Used to examine libraries when file_magic_cmd begins "file" 13408MAGIC_CMD=$MAGIC_CMD 13409 13410# Used on cygwin: DLL creation program. 13411DLLTOOL="$DLLTOOL" 13412 13413# Used on cygwin: object dumper. 13414OBJDUMP="$OBJDUMP" 13415 13416# Used on cygwin: assembler. 13417AS="$AS" 13418 13419# The name of the directory that contains temporary libtool files. 13420objdir=$objdir 13421 13422# How to create reloadable object files. 13423reload_flag=$lt_reload_flag 13424reload_cmds=$lt_reload_cmds 13425 13426# How to pass a linker flag through the compiler. 13427wl=$lt_lt_prog_compiler_wl_CXX 13428 13429# Object file suffix (normally "o"). 13430objext="$ac_objext" 13431 13432# Old archive suffix (normally "a"). 13433libext="$libext" 13434 13435# Shared library suffix (normally ".so"). 13436shrext_cmds='$shrext_cmds' 13437 13438# Executable file suffix (normally ""). 13439exeext="$exeext" 13440 13441# Additional compiler flags for building library objects. 13442pic_flag=$lt_lt_prog_compiler_pic_CXX 13443pic_mode=$pic_mode 13444 13445# What is the maximum length of a command? 13446max_cmd_len=$lt_cv_sys_max_cmd_len 13447 13448# Does compiler simultaneously support -c and -o options? 13449compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13450 13451# Must we lock files when doing compilation? 13452need_locks=$lt_need_locks 13453 13454# Do we need the lib prefix for modules? 13455need_lib_prefix=$need_lib_prefix 13456 13457# Do we need a version for libraries? 13458need_version=$need_version 13459 13460# Whether dlopen is supported. 13461dlopen_support=$enable_dlopen 13462 13463# Whether dlopen of programs is supported. 13464dlopen_self=$enable_dlopen_self 13465 13466# Whether dlopen of statically linked programs is supported. 13467dlopen_self_static=$enable_dlopen_self_static 13468 13469# Compiler flag to prevent dynamic linking. 13470link_static_flag=$lt_lt_prog_compiler_static_CXX 13471 13472# Compiler flag to turn off builtin functions. 13473no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13474 13475# Compiler flag to allow reflexive dlopens. 13476export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13477 13478# Compiler flag to generate shared objects directly from archives. 13479whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13480 13481# Compiler flag to generate thread-safe objects. 13482thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13483 13484# Library versioning type. 13485version_type=$version_type 13486 13487# Format of library name prefix. 13488libname_spec=$lt_libname_spec 13489 13490# List of archive names. First name is the real one, the rest are links. 13491# The last name is the one that the linker finds with -lNAME. 13492library_names_spec=$lt_library_names_spec 13493 13494# The coded name of the library, if different from the real name. 13495soname_spec=$lt_soname_spec 13496 13497# Commands used to build and install an old-style archive. 13498RANLIB=$lt_RANLIB 13499old_archive_cmds=$lt_old_archive_cmds_CXX 13500old_postinstall_cmds=$lt_old_postinstall_cmds 13501old_postuninstall_cmds=$lt_old_postuninstall_cmds 13502 13503# Create an old-style archive from a shared archive. 13504old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13505 13506# Create a temporary old-style archive to link instead of a shared archive. 13507old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13508 13509# Commands used to build and install a shared archive. 13510archive_cmds=$lt_archive_cmds_CXX 13511archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13512postinstall_cmds=$lt_postinstall_cmds 13513postuninstall_cmds=$lt_postuninstall_cmds 13514 13515# Commands used to build a loadable module (assumed same as above if empty) 13516module_cmds=$lt_module_cmds_CXX 13517module_expsym_cmds=$lt_module_expsym_cmds_CXX 13518 13519# Commands to strip libraries. 13520old_striplib=$lt_old_striplib 13521striplib=$lt_striplib 13522 13523# Dependencies to place before the objects being linked to create a 13524# shared library. 13525predep_objects=$lt_predep_objects_CXX 13526 13527# Dependencies to place after the objects being linked to create a 13528# shared library. 13529postdep_objects=$lt_postdep_objects_CXX 13530 13531# Dependencies to place before the objects being linked to create a 13532# shared library. 13533predeps=$lt_predeps_CXX 13534 13535# Dependencies to place after the objects being linked to create a 13536# shared library. 13537postdeps=$lt_postdeps_CXX 13538 13539# The library search path used internally by the compiler when linking 13540# a shared library. 13541compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 13542 13543# Method to check whether dependent libraries are shared objects. 13544deplibs_check_method=$lt_deplibs_check_method 13545 13546# Command to use when deplibs_check_method == file_magic. 13547file_magic_cmd=$lt_file_magic_cmd 13548 13549# Flag that allows shared libraries with undefined symbols to be built. 13550allow_undefined_flag=$lt_allow_undefined_flag_CXX 13551 13552# Flag that forces no undefined symbols. 13553no_undefined_flag=$lt_no_undefined_flag_CXX 13554 13555# Commands used to finish a libtool library installation in a directory. 13556finish_cmds=$lt_finish_cmds 13557 13558# Same as above, but a single script fragment to be evaled but not shown. 13559finish_eval=$lt_finish_eval 13560 13561# Take the output of nm and produce a listing of raw symbols and C names. 13562global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13563 13564# Transform the output of nm in a proper C declaration 13565global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13566 13567# Transform the output of nm in a C name address pair 13568global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13569 13570# This is the shared library runtime path variable. 13571runpath_var=$runpath_var 13572 13573# This is the shared library path variable. 13574shlibpath_var=$shlibpath_var 13575 13576# Is shlibpath searched before the hard-coded library search path? 13577shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13578 13579# How to hardcode a shared library path into an executable. 13580hardcode_action=$hardcode_action_CXX 13581 13582# Whether we should hardcode library paths into libraries. 13583hardcode_into_libs=$hardcode_into_libs 13584 13585# Flag to hardcode \$libdir into a binary during linking. 13586# This must work even if \$libdir does not exist. 13587hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 13588 13589# If ld is used when linking, flag to hardcode \$libdir into 13590# a binary during linking. This must work even if \$libdir does 13591# not exist. 13592hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 13593 13594# Whether we need a single -rpath flag with a separated argument. 13595hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 13596 13597# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13598# resulting binary. 13599hardcode_direct=$hardcode_direct_CXX 13600 13601# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13602# resulting binary. 13603hardcode_minus_L=$hardcode_minus_L_CXX 13604 13605# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13606# the resulting binary. 13607hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 13608 13609# Set to yes if building a shared library automatically hardcodes DIR into the library 13610# and all subsequent libraries and executables linked against it. 13611hardcode_automatic=$hardcode_automatic_CXX 13612 13613# Variables whose values should be saved in libtool wrapper scripts and 13614# restored at relink time. 13615variables_saved_for_relink="$variables_saved_for_relink" 13616 13617# Whether libtool must link a program against all its dependency libraries. 13618link_all_deplibs=$link_all_deplibs_CXX 13619 13620# Compile-time system search path for libraries 13621sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13622 13623# Run-time system search path for libraries 13624sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13625 13626# Fix the shell variable \$srcfile for the compiler. 13627fix_srcfile_path=$lt_fix_srcfile_path 13628 13629# Set to yes if exported symbols are required. 13630always_export_symbols=$always_export_symbols_CXX 13631 13632# The commands to list exported symbols. 13633export_symbols_cmds=$lt_export_symbols_cmds_CXX 13634 13635# The commands to extract the exported symbol list from a shared archive. 13636extract_expsyms_cmds=$lt_extract_expsyms_cmds 13637 13638# Symbols that should not be listed in the preloaded symbols. 13639exclude_expsyms=$lt_exclude_expsyms_CXX 13640 13641# Symbols that must always be exported. 13642include_expsyms=$lt_include_expsyms_CXX 13643 13644# ### END LIBTOOL TAG CONFIG: $tagname 13645 13646__EOF__ 13647 13648 13649else 13650 # If there is no Makefile yet, we rely on a make rule to execute 13651 # `config.status --recheck' to rerun these tests and create the 13652 # libtool script then. 13653 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 13654 if test -f "$ltmain_in"; then 13655 test -f Makefile && make "$ltmain" 13656 fi 13657fi 13658 13659 13660ac_ext=c 13661ac_cpp='$CPP $CPPFLAGS' 13662ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13663ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13664ac_compiler_gnu=$ac_cv_c_compiler_gnu 13665 13666CC=$lt_save_CC 13667LDCXX=$LD 13668LD=$lt_save_LD 13669GCC=$lt_save_GCC 13670with_gnu_ldcxx=$with_gnu_ld 13671with_gnu_ld=$lt_save_with_gnu_ld 13672lt_cv_path_LDCXX=$lt_cv_path_LD 13673lt_cv_path_LD=$lt_save_path_LD 13674lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 13675lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 13676 13677 else 13678 tagname="" 13679 fi 13680 ;; 13681 13682 F77) 13683 if test -n "$F77" && test "X$F77" != "Xno"; then 13684 13685ac_ext=f 13686ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 13687ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13688ac_compiler_gnu=$ac_cv_f77_compiler_gnu 13689 13690 13691archive_cmds_need_lc_F77=no 13692allow_undefined_flag_F77= 13693always_export_symbols_F77=no 13694archive_expsym_cmds_F77= 13695export_dynamic_flag_spec_F77= 13696hardcode_direct_F77=no 13697hardcode_libdir_flag_spec_F77= 13698hardcode_libdir_flag_spec_ld_F77= 13699hardcode_libdir_separator_F77= 13700hardcode_minus_L_F77=no 13701hardcode_automatic_F77=no 13702module_cmds_F77= 13703module_expsym_cmds_F77= 13704link_all_deplibs_F77=unknown 13705old_archive_cmds_F77=$old_archive_cmds 13706no_undefined_flag_F77= 13707whole_archive_flag_spec_F77= 13708enable_shared_with_static_runtimes_F77=no 13709 13710# Source file extension for f77 test sources. 13711ac_ext=f 13712 13713# Object file extension for compiled f77 test sources. 13714objext=o 13715objext_F77=$objext 13716 13717# Code to be used in simple compile tests 13718lt_simple_compile_test_code="\ 13719 subroutine t 13720 return 13721 end 13722" 13723 13724# Code to be used in simple link tests 13725lt_simple_link_test_code="\ 13726 program t 13727 end 13728" 13729 13730# ltmain only uses $CC for tagged configurations so make sure $CC is set. 13731 13732# If no C compiler was specified, use CC. 13733LTCC=${LTCC-"$CC"} 13734 13735# If no C compiler flags were specified, use CFLAGS. 13736LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13737 13738# Allow CC to be a program name with arguments. 13739compiler=$CC 13740 13741 13742# save warnings/boilerplate of simple test code 13743ac_outfile=conftest.$ac_objext 13744echo "$lt_simple_compile_test_code" >conftest.$ac_ext 13745eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13746_lt_compiler_boilerplate=`cat conftest.err` 13747$rm conftest* 13748 13749ac_outfile=conftest.$ac_objext 13750echo "$lt_simple_link_test_code" >conftest.$ac_ext 13751eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13752_lt_linker_boilerplate=`cat conftest.err` 13753$rm conftest* 13754 13755 13756# Allow CC to be a program name with arguments. 13757lt_save_CC="$CC" 13758CC=${F77-"f77"} 13759compiler=$CC 13760compiler_F77=$CC 13761for cc_temp in $compiler""; do 13762 case $cc_temp in 13763 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13764 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13765 \-*) ;; 13766 *) break;; 13767 esac 13768done 13769cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13770 13771 13772{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 13773echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 13774{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 13775echo "${ECHO_T}$can_build_shared" >&6; } 13776 13777{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 13778echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 13779test "$can_build_shared" = "no" && enable_shared=no 13780 13781# On AIX, shared libraries and static libraries use the same namespace, and 13782# are all built from PIC. 13783case $host_os in 13784aix3*) 13785 test "$enable_shared" = yes && enable_static=no 13786 if test -n "$RANLIB"; then 13787 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13788 postinstall_cmds='$RANLIB $lib' 13789 fi 13790 ;; 13791aix4* | aix5*) 13792 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13793 test "$enable_shared" = yes && enable_static=no 13794 fi 13795 ;; 13796esac 13797{ echo "$as_me:$LINENO: result: $enable_shared" >&5 13798echo "${ECHO_T}$enable_shared" >&6; } 13799 13800{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 13801echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 13802# Make sure either enable_shared or enable_static is yes. 13803test "$enable_shared" = yes || enable_static=yes 13804{ echo "$as_me:$LINENO: result: $enable_static" >&5 13805echo "${ECHO_T}$enable_static" >&6; } 13806 13807GCC_F77="$G77" 13808LD_F77="$LD" 13809 13810lt_prog_compiler_wl_F77= 13811lt_prog_compiler_pic_F77= 13812lt_prog_compiler_static_F77= 13813 13814{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13815echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 13816 13817 if test "$GCC" = yes; then 13818 lt_prog_compiler_wl_F77='-Wl,' 13819 lt_prog_compiler_static_F77='-static' 13820 13821 case $host_os in 13822 aix*) 13823 # All AIX code is PIC. 13824 if test "$host_cpu" = ia64; then 13825 # AIX 5 now supports IA64 processor 13826 lt_prog_compiler_static_F77='-Bstatic' 13827 fi 13828 ;; 13829 13830 amigaos*) 13831 # FIXME: we need at least 68020 code to build shared libraries, but 13832 # adding the `-m68020' flag to GCC prevents building anything better, 13833 # like `-m68040'. 13834 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 13835 ;; 13836 13837 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13838 # PIC is the default for these OSes. 13839 ;; 13840 13841 mingw* | cygwin* | pw32* | os2*) 13842 # This hack is so that the source file can tell whether it is being 13843 # built for inclusion in a dll (and should export symbols for example). 13844 # Although the cygwin gcc ignores -fPIC, still need this for old-style 13845 # (--disable-auto-import) libraries 13846 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13847 ;; 13848 13849 darwin* | rhapsody*) 13850 # PIC is the default on this platform 13851 # Common symbols not allowed in MH_DYLIB files 13852 lt_prog_compiler_pic_F77='-fno-common' 13853 ;; 13854 13855 interix[3-9]*) 13856 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13857 # Instead, we relocate shared libraries at runtime. 13858 ;; 13859 13860 msdosdjgpp*) 13861 # Just because we use GCC doesn't mean we suddenly get shared libraries 13862 # on systems that don't support them. 13863 lt_prog_compiler_can_build_shared_F77=no 13864 enable_shared=no 13865 ;; 13866 13867 sysv4*MP*) 13868 if test -d /usr/nec; then 13869 lt_prog_compiler_pic_F77=-Kconform_pic 13870 fi 13871 ;; 13872 13873 hpux*) 13874 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13875 # not for PA HP-UX. 13876 case $host_cpu in 13877 hppa*64*|ia64*) 13878 # +Z the default 13879 ;; 13880 *) 13881 lt_prog_compiler_pic_F77='-fPIC' 13882 ;; 13883 esac 13884 ;; 13885 13886 *) 13887 lt_prog_compiler_pic_F77='-fPIC' 13888 ;; 13889 esac 13890 else 13891 # PORTME Check for flag to pass linker flags through the system compiler. 13892 case $host_os in 13893 aix*) 13894 lt_prog_compiler_wl_F77='-Wl,' 13895 if test "$host_cpu" = ia64; then 13896 # AIX 5 now supports IA64 processor 13897 lt_prog_compiler_static_F77='-Bstatic' 13898 else 13899 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 13900 fi 13901 ;; 13902 darwin*) 13903 # PIC is the default on this platform 13904 # Common symbols not allowed in MH_DYLIB files 13905 case $cc_basename in 13906 xlc*) 13907 lt_prog_compiler_pic_F77='-qnocommon' 13908 lt_prog_compiler_wl_F77='-Wl,' 13909 ;; 13910 esac 13911 ;; 13912 13913 mingw* | cygwin* | pw32* | os2*) 13914 # This hack is so that the source file can tell whether it is being 13915 # built for inclusion in a dll (and should export symbols for example). 13916 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13917 ;; 13918 13919 hpux9* | hpux10* | hpux11*) 13920 lt_prog_compiler_wl_F77='-Wl,' 13921 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13922 # not for PA HP-UX. 13923 case $host_cpu in 13924 hppa*64*|ia64*) 13925 # +Z the default 13926 ;; 13927 *) 13928 lt_prog_compiler_pic_F77='+Z' 13929 ;; 13930 esac 13931 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13932 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 13933 ;; 13934 13935 irix5* | irix6* | nonstopux*) 13936 lt_prog_compiler_wl_F77='-Wl,' 13937 # PIC (with -KPIC) is the default. 13938 lt_prog_compiler_static_F77='-non_shared' 13939 ;; 13940 13941 newsos6) 13942 lt_prog_compiler_pic_F77='-KPIC' 13943 lt_prog_compiler_static_F77='-Bstatic' 13944 ;; 13945 13946 linux* | k*bsd*-gnu) 13947 case $cc_basename in 13948 icc* | ecc*) 13949 lt_prog_compiler_wl_F77='-Wl,' 13950 lt_prog_compiler_pic_F77='-KPIC' 13951 lt_prog_compiler_static_F77='-static' 13952 ;; 13953 pgcc* | pgf77* | pgf90* | pgf95*) 13954 # Portland Group compilers (*not* the Pentium gcc compiler, 13955 # which looks to be a dead project) 13956 lt_prog_compiler_wl_F77='-Wl,' 13957 lt_prog_compiler_pic_F77='-fpic' 13958 lt_prog_compiler_static_F77='-Bstatic' 13959 ;; 13960 ccc*) 13961 lt_prog_compiler_wl_F77='-Wl,' 13962 # All Alpha code is PIC. 13963 lt_prog_compiler_static_F77='-non_shared' 13964 ;; 13965 *) 13966 case `$CC -V 2>&1 | sed 5q` in 13967 *Sun\ C*) 13968 # Sun C 5.9 13969 lt_prog_compiler_pic_F77='-KPIC' 13970 lt_prog_compiler_static_F77='-Bstatic' 13971 lt_prog_compiler_wl_F77='-Wl,' 13972 ;; 13973 *Sun\ F*) 13974 # Sun Fortran 8.3 passes all unrecognized flags to the linker 13975 lt_prog_compiler_pic_F77='-KPIC' 13976 lt_prog_compiler_static_F77='-Bstatic' 13977 lt_prog_compiler_wl_F77='' 13978 ;; 13979 esac 13980 ;; 13981 esac 13982 ;; 13983 13984 osf3* | osf4* | osf5*) 13985 lt_prog_compiler_wl_F77='-Wl,' 13986 # All OSF/1 code is PIC. 13987 lt_prog_compiler_static_F77='-non_shared' 13988 ;; 13989 13990 rdos*) 13991 lt_prog_compiler_static_F77='-non_shared' 13992 ;; 13993 13994 solaris*) 13995 lt_prog_compiler_pic_F77='-KPIC' 13996 lt_prog_compiler_static_F77='-Bstatic' 13997 case $cc_basename in 13998 f77* | f90* | f95*) 13999 lt_prog_compiler_wl_F77='-Qoption ld ';; 14000 *) 14001 lt_prog_compiler_wl_F77='-Wl,';; 14002 esac 14003 ;; 14004 14005 sunos4*) 14006 lt_prog_compiler_wl_F77='-Qoption ld ' 14007 lt_prog_compiler_pic_F77='-PIC' 14008 lt_prog_compiler_static_F77='-Bstatic' 14009 ;; 14010 14011 sysv4 | sysv4.2uw2* | sysv4.3*) 14012 lt_prog_compiler_wl_F77='-Wl,' 14013 lt_prog_compiler_pic_F77='-KPIC' 14014 lt_prog_compiler_static_F77='-Bstatic' 14015 ;; 14016 14017 sysv4*MP*) 14018 if test -d /usr/nec ;then 14019 lt_prog_compiler_pic_F77='-Kconform_pic' 14020 lt_prog_compiler_static_F77='-Bstatic' 14021 fi 14022 ;; 14023 14024 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14025 lt_prog_compiler_wl_F77='-Wl,' 14026 lt_prog_compiler_pic_F77='-KPIC' 14027 lt_prog_compiler_static_F77='-Bstatic' 14028 ;; 14029 14030 unicos*) 14031 lt_prog_compiler_wl_F77='-Wl,' 14032 lt_prog_compiler_can_build_shared_F77=no 14033 ;; 14034 14035 uts4*) 14036 lt_prog_compiler_pic_F77='-pic' 14037 lt_prog_compiler_static_F77='-Bstatic' 14038 ;; 14039 14040 *) 14041 lt_prog_compiler_can_build_shared_F77=no 14042 ;; 14043 esac 14044 fi 14045 14046{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 14047echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } 14048 14049# 14050# Check to make sure the PIC flag actually works. 14051# 14052if test -n "$lt_prog_compiler_pic_F77"; then 14053 14054{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 14055echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } 14056if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 14057 echo $ECHO_N "(cached) $ECHO_C" >&6 14058else 14059 lt_prog_compiler_pic_works_F77=no 14060 ac_outfile=conftest.$ac_objext 14061 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14062 lt_compiler_flag="$lt_prog_compiler_pic_F77" 14063 # Insert the option either (1) after the last *FLAGS variable, or 14064 # (2) before a word containing "conftest.", or (3) at the end. 14065 # Note that $ac_compile itself does not contain backslashes and begins 14066 # with a dollar sign (not a hyphen), so the echo should work correctly. 14067 # The option is referenced via a variable to avoid confusing sed. 14068 lt_compile=`echo "$ac_compile" | $SED \ 14069 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14070 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14071 -e 's:$: $lt_compiler_flag:'` 14072 (eval echo "\"\$as_me:14072: $lt_compile\"" >&5) 14073 (eval "$lt_compile" 2>conftest.err) 14074 ac_status=$? 14075 cat conftest.err >&5 14076 echo "$as_me:14076: \$? = $ac_status" >&5 14077 if (exit $ac_status) && test -s "$ac_outfile"; then 14078 # The compiler can only warn and ignore the option if not recognized 14079 # So say no if there are warnings other than the usual output. 14080 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14081 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14082 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14083 lt_prog_compiler_pic_works_F77=yes 14084 fi 14085 fi 14086 $rm conftest* 14087 14088fi 14089{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 14090echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } 14091 14092if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 14093 case $lt_prog_compiler_pic_F77 in 14094 "" | " "*) ;; 14095 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 14096 esac 14097else 14098 lt_prog_compiler_pic_F77= 14099 lt_prog_compiler_can_build_shared_F77=no 14100fi 14101 14102fi 14103case $host_os in 14104 # For platforms which do not support PIC, -DPIC is meaningless: 14105 *djgpp*) 14106 lt_prog_compiler_pic_F77= 14107 ;; 14108 *) 14109 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 14110 ;; 14111esac 14112 14113# 14114# Check to make sure the static flag actually works. 14115# 14116wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 14117{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14118echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 14119if test "${lt_prog_compiler_static_works_F77+set}" = set; then 14120 echo $ECHO_N "(cached) $ECHO_C" >&6 14121else 14122 lt_prog_compiler_static_works_F77=no 14123 save_LDFLAGS="$LDFLAGS" 14124 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14125 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14126 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14127 # The linker can only warn and ignore the option if not recognized 14128 # So say no if there are warnings 14129 if test -s conftest.err; then 14130 # Append any errors to the config.log. 14131 cat conftest.err 1>&5 14132 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14133 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14134 if diff conftest.exp conftest.er2 >/dev/null; then 14135 lt_prog_compiler_static_works_F77=yes 14136 fi 14137 else 14138 lt_prog_compiler_static_works_F77=yes 14139 fi 14140 fi 14141 $rm conftest* 14142 LDFLAGS="$save_LDFLAGS" 14143 14144fi 14145{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 14146echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } 14147 14148if test x"$lt_prog_compiler_static_works_F77" = xyes; then 14149 : 14150else 14151 lt_prog_compiler_static_F77= 14152fi 14153 14154 14155{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14156echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 14157if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 14158 echo $ECHO_N "(cached) $ECHO_C" >&6 14159else 14160 lt_cv_prog_compiler_c_o_F77=no 14161 $rm -r conftest 2>/dev/null 14162 mkdir conftest 14163 cd conftest 14164 mkdir out 14165 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14166 14167 lt_compiler_flag="-o out/conftest2.$ac_objext" 14168 # Insert the option either (1) after the last *FLAGS variable, or 14169 # (2) before a word containing "conftest.", or (3) at the end. 14170 # Note that $ac_compile itself does not contain backslashes and begins 14171 # with a dollar sign (not a hyphen), so the echo should work correctly. 14172 lt_compile=`echo "$ac_compile" | $SED \ 14173 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14174 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14175 -e 's:$: $lt_compiler_flag:'` 14176 (eval echo "\"\$as_me:14176: $lt_compile\"" >&5) 14177 (eval "$lt_compile" 2>out/conftest.err) 14178 ac_status=$? 14179 cat out/conftest.err >&5 14180 echo "$as_me:14180: \$? = $ac_status" >&5 14181 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14182 then 14183 # The compiler can only warn and ignore the option if not recognized 14184 # So say no if there are warnings 14185 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14186 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14187 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14188 lt_cv_prog_compiler_c_o_F77=yes 14189 fi 14190 fi 14191 chmod u+w . 2>&5 14192 $rm conftest* 14193 # SGI C++ compiler will create directory out/ii_files/ for 14194 # template instantiation 14195 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14196 $rm out/* && rmdir out 14197 cd .. 14198 rmdir conftest 14199 $rm conftest* 14200 14201fi 14202{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14203echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } 14204 14205 14206hard_links="nottested" 14207if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14208 # do not overwrite the value of need_locks provided by the user 14209 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14210echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 14211 hard_links=yes 14212 $rm conftest* 14213 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14214 touch conftest.a 14215 ln conftest.a conftest.b 2>&5 || hard_links=no 14216 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14217 { echo "$as_me:$LINENO: result: $hard_links" >&5 14218echo "${ECHO_T}$hard_links" >&6; } 14219 if test "$hard_links" = no; then 14220 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14221echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14222 need_locks=warn 14223 fi 14224else 14225 need_locks=no 14226fi 14227 14228{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14229echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 14230 14231 runpath_var= 14232 allow_undefined_flag_F77= 14233 enable_shared_with_static_runtimes_F77=no 14234 archive_cmds_F77= 14235 archive_expsym_cmds_F77= 14236 old_archive_From_new_cmds_F77= 14237 old_archive_from_expsyms_cmds_F77= 14238 export_dynamic_flag_spec_F77= 14239 whole_archive_flag_spec_F77= 14240 thread_safe_flag_spec_F77= 14241 hardcode_libdir_flag_spec_F77= 14242 hardcode_libdir_flag_spec_ld_F77= 14243 hardcode_libdir_separator_F77= 14244 hardcode_direct_F77=no 14245 hardcode_minus_L_F77=no 14246 hardcode_shlibpath_var_F77=unsupported 14247 link_all_deplibs_F77=unknown 14248 hardcode_automatic_F77=no 14249 module_cmds_F77= 14250 module_expsym_cmds_F77= 14251 always_export_symbols_F77=no 14252 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14253 # include_expsyms should be a list of space-separated symbols to be *always* 14254 # included in the symbol list 14255 include_expsyms_F77= 14256 # exclude_expsyms can be an extended regexp of symbols to exclude 14257 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14258 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14259 # as well as any symbol that contains `d'. 14260 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 14261 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14262 # platforms (ab)use it in PIC code, but their linkers get confused if 14263 # the symbol is explicitly referenced. Since portable code cannot 14264 # rely on this symbol name, it's probably fine to never include it in 14265 # preloaded symbol tables. 14266 extract_expsyms_cmds= 14267 # Just being paranoid about ensuring that cc_basename is set. 14268 for cc_temp in $compiler""; do 14269 case $cc_temp in 14270 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14271 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14272 \-*) ;; 14273 *) break;; 14274 esac 14275done 14276cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14277 14278 case $host_os in 14279 cygwin* | mingw* | pw32*) 14280 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14281 # When not using gcc, we currently assume that we are using 14282 # Microsoft Visual C++. 14283 if test "$GCC" != yes; then 14284 with_gnu_ld=no 14285 fi 14286 ;; 14287 interix*) 14288 # we just hope/assume this is gcc and not c89 (= MSVC++) 14289 with_gnu_ld=yes 14290 ;; 14291 openbsd*) 14292 with_gnu_ld=no 14293 ;; 14294 esac 14295 14296 ld_shlibs_F77=yes 14297 if test "$with_gnu_ld" = yes; then 14298 # If archive_cmds runs LD, not CC, wlarc should be empty 14299 wlarc='${wl}' 14300 14301 # Set some defaults for GNU ld with shared library support. These 14302 # are reset later if shared libraries are not supported. Putting them 14303 # here allows them to be overridden if necessary. 14304 runpath_var=LD_RUN_PATH 14305 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14306 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14307 # ancient GNU ld didn't support --whole-archive et. al. 14308 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14309 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14310 else 14311 whole_archive_flag_spec_F77= 14312 fi 14313 supports_anon_versioning=no 14314 case `$LD -v 2>/dev/null` in 14315 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14316 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14317 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14318 *\ 2.11.*) ;; # other 2.11 versions 14319 *) supports_anon_versioning=yes ;; 14320 esac 14321 14322 # See if GNU ld supports shared libraries. 14323 case $host_os in 14324 aix3* | aix4* | aix5*) 14325 # On AIX/PPC, the GNU linker is very broken 14326 if test "$host_cpu" != ia64; then 14327 ld_shlibs_F77=no 14328 cat <<EOF 1>&2 14329 14330*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14331*** to be unable to reliably create shared libraries on AIX. 14332*** Therefore, libtool is disabling shared libraries support. If you 14333*** really care for shared libraries, you may want to modify your PATH 14334*** so that a non-GNU linker is found, and then restart. 14335 14336EOF 14337 fi 14338 ;; 14339 14340 amigaos*) 14341 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)' 14342 hardcode_libdir_flag_spec_F77='-L$libdir' 14343 hardcode_minus_L_F77=yes 14344 14345 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14346 # that the semantics of dynamic libraries on AmigaOS, at least up 14347 # to version 4, is to share data among multiple programs linked 14348 # with the same dynamic library. Since this doesn't match the 14349 # behavior of shared libraries on other platforms, we can't use 14350 # them. 14351 ld_shlibs_F77=no 14352 ;; 14353 14354 beos*) 14355 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14356 allow_undefined_flag_F77=unsupported 14357 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14358 # support --undefined. This deserves some investigation. FIXME 14359 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14360 else 14361 ld_shlibs_F77=no 14362 fi 14363 ;; 14364 14365 cygwin* | mingw* | pw32*) 14366 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14367 # as there is no search path for DLLs. 14368 hardcode_libdir_flag_spec_F77='-L$libdir' 14369 allow_undefined_flag_F77=unsupported 14370 always_export_symbols_F77=no 14371 enable_shared_with_static_runtimes_F77=yes 14372 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 14373 14374 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14375 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14376 # If the export-symbols file already is a .def file (1st line 14377 # is EXPORTS), use it as is; otherwise, prepend... 14378 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14379 cp $export_symbols $output_objdir/$soname.def; 14380 else 14381 echo EXPORTS > $output_objdir/$soname.def; 14382 cat $export_symbols >> $output_objdir/$soname.def; 14383 fi~ 14384 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14385 else 14386 ld_shlibs_F77=no 14387 fi 14388 ;; 14389 14390 interix[3-9]*) 14391 hardcode_direct_F77=no 14392 hardcode_shlibpath_var_F77=no 14393 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14394 export_dynamic_flag_spec_F77='${wl}-E' 14395 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14396 # Instead, shared libraries are loaded at an image base (0x10000000 by 14397 # default) and relocated if they conflict, which is a slow very memory 14398 # consuming and fragmenting process. To avoid this, we pick a random, 14399 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14400 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14401 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' 14402 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' 14403 ;; 14404 14405 gnu* | linux* | k*bsd*-gnu) 14406 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14407 tmp_addflag= 14408 case $cc_basename,$host_cpu in 14409 pgcc*) # Portland Group C compiler 14410 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' 14411 tmp_addflag=' $pic_flag' 14412 ;; 14413 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14414 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' 14415 tmp_addflag=' $pic_flag -Mnomain' ;; 14416 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14417 tmp_addflag=' -i_dynamic' ;; 14418 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14419 tmp_addflag=' -i_dynamic -nofor_main' ;; 14420 ifc* | ifort*) # Intel Fortran compiler 14421 tmp_addflag=' -nofor_main' ;; 14422 esac 14423 case `$CC -V 2>&1 | sed 5q` in 14424 *Sun\ C*) # Sun C 5.9 14425 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 14426 tmp_sharedflag='-G' ;; 14427 *Sun\ F*) # Sun Fortran 8.3 14428 tmp_sharedflag='-G' ;; 14429 *) 14430 tmp_sharedflag='-shared' ;; 14431 esac 14432 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14433 14434 if test $supports_anon_versioning = yes; then 14435 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14436 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14437 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14438 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14439 fi 14440 else 14441 ld_shlibs_F77=no 14442 fi 14443 ;; 14444 14445 netbsd*) 14446 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14447 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14448 wlarc= 14449 else 14450 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14451 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14452 fi 14453 ;; 14454 14455 solaris*) 14456 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14457 ld_shlibs_F77=no 14458 cat <<EOF 1>&2 14459 14460*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14461*** create shared libraries on Solaris systems. Therefore, libtool 14462*** is disabling shared libraries support. We urge you to upgrade GNU 14463*** binutils to release 2.9.1 or newer. Another option is to modify 14464*** your PATH or compiler configuration so that the native linker is 14465*** used, and then restart. 14466 14467EOF 14468 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14469 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14470 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14471 else 14472 ld_shlibs_F77=no 14473 fi 14474 ;; 14475 14476 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14477 case `$LD -v 2>&1` in 14478 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14479 ld_shlibs_F77=no 14480 cat <<_LT_EOF 1>&2 14481 14482*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 14483*** reliably create shared libraries on SCO systems. Therefore, libtool 14484*** is disabling shared libraries support. We urge you to upgrade GNU 14485*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14486*** your PATH or compiler configuration so that the native linker is 14487*** used, and then restart. 14488 14489_LT_EOF 14490 ;; 14491 *) 14492 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14493 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 14494 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 14495 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 14496 else 14497 ld_shlibs_F77=no 14498 fi 14499 ;; 14500 esac 14501 ;; 14502 14503 sunos4*) 14504 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14505 wlarc= 14506 hardcode_direct_F77=yes 14507 hardcode_shlibpath_var_F77=no 14508 ;; 14509 14510 *) 14511 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14512 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14513 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14514 else 14515 ld_shlibs_F77=no 14516 fi 14517 ;; 14518 esac 14519 14520 if test "$ld_shlibs_F77" = no; then 14521 runpath_var= 14522 hardcode_libdir_flag_spec_F77= 14523 export_dynamic_flag_spec_F77= 14524 whole_archive_flag_spec_F77= 14525 fi 14526 else 14527 # PORTME fill in a description of your system's linker (not GNU ld) 14528 case $host_os in 14529 aix3*) 14530 allow_undefined_flag_F77=unsupported 14531 always_export_symbols_F77=yes 14532 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' 14533 # Note: this linker hardcodes the directories in LIBPATH if there 14534 # are no directories specified by -L. 14535 hardcode_minus_L_F77=yes 14536 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 14537 # Neither direct hardcoding nor static linking is supported with a 14538 # broken collect2. 14539 hardcode_direct_F77=unsupported 14540 fi 14541 ;; 14542 14543 aix4* | aix5*) 14544 if test "$host_cpu" = ia64; then 14545 # On IA64, the linker does run time linking by default, so we don't 14546 # have to do anything special. 14547 aix_use_runtimelinking=no 14548 exp_sym_flag='-Bexport' 14549 no_entry_flag="" 14550 else 14551 # If we're using GNU nm, then we don't want the "-C" option. 14552 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14553 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14554 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' 14555 else 14556 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' 14557 fi 14558 aix_use_runtimelinking=no 14559 14560 # Test if we are trying to use run time linking or normal 14561 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14562 # need to do runtime linking. 14563 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 14564 for ld_flag in $LDFLAGS; do 14565 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14566 aix_use_runtimelinking=yes 14567 break 14568 fi 14569 done 14570 ;; 14571 esac 14572 14573 exp_sym_flag='-bexport' 14574 no_entry_flag='-bnoentry' 14575 fi 14576 14577 # When large executables or shared objects are built, AIX ld can 14578 # have problems creating the table of contents. If linking a library 14579 # or program results in "error TOC overflow" add -mminimal-toc to 14580 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14581 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14582 14583 archive_cmds_F77='' 14584 hardcode_direct_F77=yes 14585 hardcode_libdir_separator_F77=':' 14586 link_all_deplibs_F77=yes 14587 14588 if test "$GCC" = yes; then 14589 case $host_os in aix4.[012]|aix4.[012].*) 14590 # We only want to do this on AIX 4.2 and lower, the check 14591 # below for broken collect2 doesn't work under 4.3+ 14592 collect2name=`${CC} -print-prog-name=collect2` 14593 if test -f "$collect2name" && \ 14594 strings "$collect2name" | grep resolve_lib_name >/dev/null 14595 then 14596 # We have reworked collect2 14597 : 14598 else 14599 # We have old collect2 14600 hardcode_direct_F77=unsupported 14601 # It fails to find uninstalled libraries when the uninstalled 14602 # path is not listed in the libpath. Setting hardcode_minus_L 14603 # to unsupported forces relinking 14604 hardcode_minus_L_F77=yes 14605 hardcode_libdir_flag_spec_F77='-L$libdir' 14606 hardcode_libdir_separator_F77= 14607 fi 14608 ;; 14609 esac 14610 shared_flag='-shared' 14611 if test "$aix_use_runtimelinking" = yes; then 14612 shared_flag="$shared_flag "'${wl}-G' 14613 fi 14614 else 14615 # not using gcc 14616 if test "$host_cpu" = ia64; then 14617 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14618 # chokes on -Wl,-G. The following line is correct: 14619 shared_flag='-G' 14620 else 14621 if test "$aix_use_runtimelinking" = yes; then 14622 shared_flag='${wl}-G' 14623 else 14624 shared_flag='${wl}-bM:SRE' 14625 fi 14626 fi 14627 fi 14628 14629 # It seems that -bexpall does not export symbols beginning with 14630 # underscore (_), so it is better to generate a list of symbols to export. 14631 always_export_symbols_F77=yes 14632 if test "$aix_use_runtimelinking" = yes; then 14633 # Warning - without using the other runtime loading flags (-brtl), 14634 # -berok will link without error, but may produce a broken library. 14635 allow_undefined_flag_F77='-berok' 14636 # Determine the default libpath from the value encoded in an empty executable. 14637 cat >conftest.$ac_ext <<_ACEOF 14638 program main 14639 14640 end 14641_ACEOF 14642rm -f conftest.$ac_objext conftest$ac_exeext 14643if { (ac_try="$ac_link" 14644case "(($ac_try" in 14645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14646 *) ac_try_echo=$ac_try;; 14647esac 14648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14649 (eval "$ac_link") 2>conftest.er1 14650 ac_status=$? 14651 grep -v '^ *+' conftest.er1 >conftest.err 14652 rm -f conftest.er1 14653 cat conftest.err >&5 14654 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14655 (exit $ac_status); } && { 14656 test -z "$ac_f77_werror_flag" || 14657 test ! -s conftest.err 14658 } && test -s conftest$ac_exeext && 14659 $as_test_x conftest$ac_exeext; then 14660 14661lt_aix_libpath_sed=' 14662 /Import File Strings/,/^$/ { 14663 /^0/ { 14664 s/^0 *\(.*\)$/\1/ 14665 p 14666 } 14667 }' 14668aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14669# Check for a 64-bit object if we didn't find anything. 14670if test -z "$aix_libpath"; then 14671 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14672fi 14673else 14674 echo "$as_me: failed program was:" >&5 14675sed 's/^/| /' conftest.$ac_ext >&5 14676 14677 14678fi 14679 14680rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14681 conftest$ac_exeext conftest.$ac_ext 14682if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14683 14684 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14685 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" 14686 else 14687 if test "$host_cpu" = ia64; then 14688 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 14689 allow_undefined_flag_F77="-z nodefs" 14690 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" 14691 else 14692 # Determine the default libpath from the value encoded in an empty executable. 14693 cat >conftest.$ac_ext <<_ACEOF 14694 program main 14695 14696 end 14697_ACEOF 14698rm -f conftest.$ac_objext conftest$ac_exeext 14699if { (ac_try="$ac_link" 14700case "(($ac_try" in 14701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14702 *) ac_try_echo=$ac_try;; 14703esac 14704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14705 (eval "$ac_link") 2>conftest.er1 14706 ac_status=$? 14707 grep -v '^ *+' conftest.er1 >conftest.err 14708 rm -f conftest.er1 14709 cat conftest.err >&5 14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14711 (exit $ac_status); } && { 14712 test -z "$ac_f77_werror_flag" || 14713 test ! -s conftest.err 14714 } && test -s conftest$ac_exeext && 14715 $as_test_x conftest$ac_exeext; then 14716 14717lt_aix_libpath_sed=' 14718 /Import File Strings/,/^$/ { 14719 /^0/ { 14720 s/^0 *\(.*\)$/\1/ 14721 p 14722 } 14723 }' 14724aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14725# Check for a 64-bit object if we didn't find anything. 14726if test -z "$aix_libpath"; then 14727 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14728fi 14729else 14730 echo "$as_me: failed program was:" >&5 14731sed 's/^/| /' conftest.$ac_ext >&5 14732 14733 14734fi 14735 14736rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14737 conftest$ac_exeext conftest.$ac_ext 14738if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14739 14740 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14741 # Warning - without using the other run time loading flags, 14742 # -berok will link without error, but may produce a broken library. 14743 no_undefined_flag_F77=' ${wl}-bernotok' 14744 allow_undefined_flag_F77=' ${wl}-berok' 14745 # Exported symbols can be pulled into shared objects from archives 14746 whole_archive_flag_spec_F77='$convenience' 14747 archive_cmds_need_lc_F77=yes 14748 # This is similar to how AIX traditionally builds its shared libraries. 14749 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' 14750 fi 14751 fi 14752 ;; 14753 14754 amigaos*) 14755 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)' 14756 hardcode_libdir_flag_spec_F77='-L$libdir' 14757 hardcode_minus_L_F77=yes 14758 # see comment about different semantics on the GNU ld section 14759 ld_shlibs_F77=no 14760 ;; 14761 14762 bsdi[45]*) 14763 export_dynamic_flag_spec_F77=-rdynamic 14764 ;; 14765 14766 cygwin* | mingw* | pw32*) 14767 # When not using gcc, we currently assume that we are using 14768 # Microsoft Visual C++. 14769 # hardcode_libdir_flag_spec is actually meaningless, as there is 14770 # no search path for DLLs. 14771 hardcode_libdir_flag_spec_F77=' ' 14772 allow_undefined_flag_F77=unsupported 14773 # Tell ltmain to make .lib files, not .a files. 14774 libext=lib 14775 # Tell ltmain to make .dll files, not .so files. 14776 shrext_cmds=".dll" 14777 # FIXME: Setting linknames here is a bad hack. 14778 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 14779 # The linker will automatically build a .lib file if we build a DLL. 14780 old_archive_From_new_cmds_F77='true' 14781 # FIXME: Should let the user specify the lib program. 14782 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' 14783 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 14784 enable_shared_with_static_runtimes_F77=yes 14785 ;; 14786 14787 darwin* | rhapsody*) 14788 case $host_os in 14789 rhapsody* | darwin1.[012]) 14790 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 14791 ;; 14792 *) # Darwin 1.3 on 14793 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 14794 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14795 else 14796 case ${MACOSX_DEPLOYMENT_TARGET} in 14797 10.[012]) 14798 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14799 ;; 14800 10.*) 14801 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 14802 ;; 14803 esac 14804 fi 14805 ;; 14806 esac 14807 archive_cmds_need_lc_F77=no 14808 hardcode_direct_F77=no 14809 hardcode_automatic_F77=yes 14810 hardcode_shlibpath_var_F77=unsupported 14811 whole_archive_flag_spec_F77='' 14812 link_all_deplibs_F77=yes 14813 if test "$GCC" = yes ; then 14814 output_verbose_link_cmd='echo' 14815 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 14816 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14817 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14818 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}' 14819 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}' 14820 else 14821 case $cc_basename in 14822 xlc*) 14823 output_verbose_link_cmd='echo' 14824 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 14825 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14826 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14827 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 14828 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}' 14829 ;; 14830 *) 14831 ld_shlibs_F77=no 14832 ;; 14833 esac 14834 fi 14835 ;; 14836 14837 dgux*) 14838 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14839 hardcode_libdir_flag_spec_F77='-L$libdir' 14840 hardcode_shlibpath_var_F77=no 14841 ;; 14842 14843 freebsd1*) 14844 ld_shlibs_F77=no 14845 ;; 14846 14847 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14848 # support. Future versions do this automatically, but an explicit c++rt0.o 14849 # does not break anything, and helps significantly (at the cost of a little 14850 # extra space). 14851 freebsd2.2*) 14852 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14853 hardcode_libdir_flag_spec_F77='-R$libdir' 14854 hardcode_direct_F77=yes 14855 hardcode_shlibpath_var_F77=no 14856 ;; 14857 14858 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14859 freebsd2*) 14860 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14861 hardcode_direct_F77=yes 14862 hardcode_minus_L_F77=yes 14863 hardcode_shlibpath_var_F77=no 14864 ;; 14865 14866 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14867 freebsd* | dragonfly*) 14868 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 14869 hardcode_libdir_flag_spec_F77='-R$libdir' 14870 hardcode_direct_F77=yes 14871 hardcode_shlibpath_var_F77=no 14872 ;; 14873 14874 hpux9*) 14875 if test "$GCC" = yes; then 14876 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' 14877 else 14878 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' 14879 fi 14880 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14881 hardcode_libdir_separator_F77=: 14882 hardcode_direct_F77=yes 14883 14884 # hardcode_minus_L: Not really in the search PATH, 14885 # but as the default location of the library. 14886 hardcode_minus_L_F77=yes 14887 export_dynamic_flag_spec_F77='${wl}-E' 14888 ;; 14889 14890 hpux10*) 14891 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14892 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14893 else 14894 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14895 fi 14896 if test "$with_gnu_ld" = no; then 14897 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14898 hardcode_libdir_separator_F77=: 14899 14900 hardcode_direct_F77=yes 14901 export_dynamic_flag_spec_F77='${wl}-E' 14902 14903 # hardcode_minus_L: Not really in the search PATH, 14904 # but as the default location of the library. 14905 hardcode_minus_L_F77=yes 14906 fi 14907 ;; 14908 14909 hpux11*) 14910 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14911 case $host_cpu in 14912 hppa*64*) 14913 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14914 ;; 14915 ia64*) 14916 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14917 ;; 14918 *) 14919 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14920 ;; 14921 esac 14922 else 14923 case $host_cpu in 14924 hppa*64*) 14925 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14926 ;; 14927 ia64*) 14928 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14929 ;; 14930 *) 14931 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14932 ;; 14933 esac 14934 fi 14935 if test "$with_gnu_ld" = no; then 14936 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14937 hardcode_libdir_separator_F77=: 14938 14939 case $host_cpu in 14940 hppa*64*|ia64*) 14941 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 14942 hardcode_direct_F77=no 14943 hardcode_shlibpath_var_F77=no 14944 ;; 14945 *) 14946 hardcode_direct_F77=yes 14947 export_dynamic_flag_spec_F77='${wl}-E' 14948 14949 # hardcode_minus_L: Not really in the search PATH, 14950 # but as the default location of the library. 14951 hardcode_minus_L_F77=yes 14952 ;; 14953 esac 14954 fi 14955 ;; 14956 14957 irix5* | irix6* | nonstopux*) 14958 if test "$GCC" = yes; then 14959 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' 14960 else 14961 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' 14962 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 14963 fi 14964 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14965 hardcode_libdir_separator_F77=: 14966 link_all_deplibs_F77=yes 14967 ;; 14968 14969 netbsd*) 14970 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14971 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14972 else 14973 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14974 fi 14975 hardcode_libdir_flag_spec_F77='-R$libdir' 14976 hardcode_direct_F77=yes 14977 hardcode_shlibpath_var_F77=no 14978 ;; 14979 14980 newsos6) 14981 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14982 hardcode_direct_F77=yes 14983 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14984 hardcode_libdir_separator_F77=: 14985 hardcode_shlibpath_var_F77=no 14986 ;; 14987 14988 openbsd*) 14989 if test -f /usr/libexec/ld.so; then 14990 hardcode_direct_F77=yes 14991 hardcode_shlibpath_var_F77=no 14992 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14993 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14994 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 14995 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14996 export_dynamic_flag_spec_F77='${wl}-E' 14997 else 14998 case $host_os in 14999 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15000 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15001 hardcode_libdir_flag_spec_F77='-R$libdir' 15002 ;; 15003 *) 15004 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15005 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15006 ;; 15007 esac 15008 fi 15009 else 15010 ld_shlibs_F77=no 15011 fi 15012 ;; 15013 15014 os2*) 15015 hardcode_libdir_flag_spec_F77='-L$libdir' 15016 hardcode_minus_L_F77=yes 15017 allow_undefined_flag_F77=unsupported 15018 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' 15019 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15020 ;; 15021 15022 osf3*) 15023 if test "$GCC" = yes; then 15024 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15025 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' 15026 else 15027 allow_undefined_flag_F77=' -expect_unresolved \*' 15028 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' 15029 fi 15030 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15031 hardcode_libdir_separator_F77=: 15032 ;; 15033 15034 osf4* | osf5*) # as osf3* with the addition of -msym flag 15035 if test "$GCC" = yes; then 15036 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15037 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' 15038 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15039 else 15040 allow_undefined_flag_F77=' -expect_unresolved \*' 15041 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' 15042 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~ 15043 $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' 15044 15045 # Both c and cxx compiler support -rpath directly 15046 hardcode_libdir_flag_spec_F77='-rpath $libdir' 15047 fi 15048 hardcode_libdir_separator_F77=: 15049 ;; 15050 15051 solaris*) 15052 no_undefined_flag_F77=' -z text' 15053 if test "$GCC" = yes; then 15054 wlarc='${wl}' 15055 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15056 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15057 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15058 else 15059 wlarc='' 15060 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15061 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15062 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15063 fi 15064 hardcode_libdir_flag_spec_F77='-R$libdir' 15065 hardcode_shlibpath_var_F77=no 15066 case $host_os in 15067 solaris2.[0-5] | solaris2.[0-5].*) ;; 15068 *) 15069 # The compiler driver will combine and reorder linker options, 15070 # but understands `-z linker_flag'. GCC discards it without `$wl', 15071 # but is careful enough not to reorder. 15072 # Supported since Solaris 2.6 (maybe 2.5.1?) 15073 if test "$GCC" = yes; then 15074 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 15075 else 15076 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' 15077 fi 15078 ;; 15079 esac 15080 link_all_deplibs_F77=yes 15081 ;; 15082 15083 sunos4*) 15084 if test "x$host_vendor" = xsequent; then 15085 # Use $CC to link under sequent, because it throws in some extra .o 15086 # files that make .init and .fini sections work. 15087 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15088 else 15089 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15090 fi 15091 hardcode_libdir_flag_spec_F77='-L$libdir' 15092 hardcode_direct_F77=yes 15093 hardcode_minus_L_F77=yes 15094 hardcode_shlibpath_var_F77=no 15095 ;; 15096 15097 sysv4) 15098 case $host_vendor in 15099 sni) 15100 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15101 hardcode_direct_F77=yes # is this really true??? 15102 ;; 15103 siemens) 15104 ## LD is ld it makes a PLAMLIB 15105 ## CC just makes a GrossModule. 15106 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15107 reload_cmds_F77='$CC -r -o $output$reload_objs' 15108 hardcode_direct_F77=no 15109 ;; 15110 motorola) 15111 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15112 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 15113 ;; 15114 esac 15115 runpath_var='LD_RUN_PATH' 15116 hardcode_shlibpath_var_F77=no 15117 ;; 15118 15119 sysv4.3*) 15120 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15121 hardcode_shlibpath_var_F77=no 15122 export_dynamic_flag_spec_F77='-Bexport' 15123 ;; 15124 15125 sysv4*MP*) 15126 if test -d /usr/nec; then 15127 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15128 hardcode_shlibpath_var_F77=no 15129 runpath_var=LD_RUN_PATH 15130 hardcode_runpath_var=yes 15131 ld_shlibs_F77=yes 15132 fi 15133 ;; 15134 15135 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15136 no_undefined_flag_F77='${wl}-z,text' 15137 archive_cmds_need_lc_F77=no 15138 hardcode_shlibpath_var_F77=no 15139 runpath_var='LD_RUN_PATH' 15140 15141 if test "$GCC" = yes; then 15142 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15143 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15144 else 15145 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15146 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15147 fi 15148 ;; 15149 15150 sysv5* | sco3.2v5* | sco5v6*) 15151 # Note: We can NOT use -z defs as we might desire, because we do not 15152 # link with -lc, and that would cause any symbols used from libc to 15153 # always be unresolved, which means just about no library would 15154 # ever link correctly. If we're not using GNU ld we use -z text 15155 # though, which does catch some bad symbols but isn't as heavy-handed 15156 # as -z defs. 15157 no_undefined_flag_F77='${wl}-z,text' 15158 allow_undefined_flag_F77='${wl}-z,nodefs' 15159 archive_cmds_need_lc_F77=no 15160 hardcode_shlibpath_var_F77=no 15161 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 15162 hardcode_libdir_separator_F77=':' 15163 link_all_deplibs_F77=yes 15164 export_dynamic_flag_spec_F77='${wl}-Bexport' 15165 runpath_var='LD_RUN_PATH' 15166 15167 if test "$GCC" = yes; then 15168 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15169 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15170 else 15171 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15172 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15173 fi 15174 ;; 15175 15176 uts4*) 15177 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15178 hardcode_libdir_flag_spec_F77='-L$libdir' 15179 hardcode_shlibpath_var_F77=no 15180 ;; 15181 15182 *) 15183 ld_shlibs_F77=no 15184 ;; 15185 esac 15186 fi 15187 15188{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 15189echo "${ECHO_T}$ld_shlibs_F77" >&6; } 15190test "$ld_shlibs_F77" = no && can_build_shared=no 15191 15192# 15193# Do we need to explicitly link libc? 15194# 15195case "x$archive_cmds_need_lc_F77" in 15196x|xyes) 15197 # Assume -lc should be added 15198 archive_cmds_need_lc_F77=yes 15199 15200 if test "$enable_shared" = yes && test "$GCC" = yes; then 15201 case $archive_cmds_F77 in 15202 *'~'*) 15203 # FIXME: we may have to deal with multi-command sequences. 15204 ;; 15205 '$CC '*) 15206 # Test whether the compiler implicitly links with -lc since on some 15207 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15208 # to ld, don't add -lc before -lgcc. 15209 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15210echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 15211 $rm conftest* 15212 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15213 15214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15215 (eval $ac_compile) 2>&5 15216 ac_status=$? 15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15218 (exit $ac_status); } 2>conftest.err; then 15219 soname=conftest 15220 lib=conftest 15221 libobjs=conftest.$ac_objext 15222 deplibs= 15223 wl=$lt_prog_compiler_wl_F77 15224 pic_flag=$lt_prog_compiler_pic_F77 15225 compiler_flags=-v 15226 linker_flags=-v 15227 verstring= 15228 output_objdir=. 15229 libname=conftest 15230 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15231 allow_undefined_flag_F77= 15232 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15233 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15234 ac_status=$? 15235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15236 (exit $ac_status); } 15237 then 15238 archive_cmds_need_lc_F77=no 15239 else 15240 archive_cmds_need_lc_F77=yes 15241 fi 15242 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15243 else 15244 cat conftest.err 1>&5 15245 fi 15246 $rm conftest* 15247 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15248echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } 15249 ;; 15250 esac 15251 fi 15252 ;; 15253esac 15254 15255{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15256echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 15257library_names_spec= 15258libname_spec='lib$name' 15259soname_spec= 15260shrext_cmds=".so" 15261postinstall_cmds= 15262postuninstall_cmds= 15263finish_cmds= 15264finish_eval= 15265shlibpath_var= 15266shlibpath_overrides_runpath=unknown 15267version_type=none 15268dynamic_linker="$host_os ld.so" 15269sys_lib_dlsearch_path_spec="/lib /usr/lib" 15270 15271need_lib_prefix=unknown 15272hardcode_into_libs=no 15273 15274# when you set need_version to no, make sure it does not cause -set_version 15275# flags to be left without arguments 15276need_version=unknown 15277 15278case $host_os in 15279aix3*) 15280 version_type=linux 15281 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15282 shlibpath_var=LIBPATH 15283 15284 # AIX 3 has no versioning support, so we append a major version to the name. 15285 soname_spec='${libname}${release}${shared_ext}$major' 15286 ;; 15287 15288aix4* | aix5*) 15289 version_type=linux 15290 need_lib_prefix=no 15291 need_version=no 15292 hardcode_into_libs=yes 15293 if test "$host_cpu" = ia64; then 15294 # AIX 5 supports IA64 15295 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15296 shlibpath_var=LD_LIBRARY_PATH 15297 else 15298 # With GCC up to 2.95.x, collect2 would create an import file 15299 # for dependence libraries. The import file would start with 15300 # the line `#! .'. This would cause the generated library to 15301 # depend on `.', always an invalid library. This was fixed in 15302 # development snapshots of GCC prior to 3.0. 15303 case $host_os in 15304 aix4 | aix4.[01] | aix4.[01].*) 15305 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15306 echo ' yes ' 15307 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15308 : 15309 else 15310 can_build_shared=no 15311 fi 15312 ;; 15313 esac 15314 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15315 # soname into executable. Probably we can add versioning support to 15316 # collect2, so additional links can be useful in future. 15317 if test "$aix_use_runtimelinking" = yes; then 15318 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15319 # instead of lib<name>.a to let people know that these are not 15320 # typical AIX shared libraries. 15321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15322 else 15323 # We preserve .a as extension for shared libraries through AIX4.2 15324 # and later when we are not doing run time linking. 15325 library_names_spec='${libname}${release}.a $libname.a' 15326 soname_spec='${libname}${release}${shared_ext}$major' 15327 fi 15328 shlibpath_var=LIBPATH 15329 fi 15330 ;; 15331 15332amigaos*) 15333 library_names_spec='$libname.ixlibrary $libname.a' 15334 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15335 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' 15336 ;; 15337 15338beos*) 15339 library_names_spec='${libname}${shared_ext}' 15340 dynamic_linker="$host_os ld.so" 15341 shlibpath_var=LIBRARY_PATH 15342 ;; 15343 15344bsdi[45]*) 15345 version_type=linux 15346 need_version=no 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 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15350 shlibpath_var=LD_LIBRARY_PATH 15351 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15352 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15353 # the default ld.so.conf also contains /usr/contrib/lib and 15354 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15355 # libtool to hard-code these into programs 15356 ;; 15357 15358cygwin* | mingw* | pw32*) 15359 version_type=windows 15360 shrext_cmds=".dll" 15361 need_version=no 15362 need_lib_prefix=no 15363 15364 case $GCC,$host_os in 15365 yes,cygwin* | yes,mingw* | yes,pw32*) 15366 library_names_spec='$libname.dll.a' 15367 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15368 postinstall_cmds='base_file=`basename \${file}`~ 15369 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15370 dldir=$destdir/`dirname \$dlpath`~ 15371 test -d \$dldir || mkdir -p \$dldir~ 15372 $install_prog $dir/$dlname \$dldir/$dlname~ 15373 chmod a+x \$dldir/$dlname' 15374 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15375 dlpath=$dir/\$dldll~ 15376 $rm \$dlpath' 15377 shlibpath_overrides_runpath=yes 15378 15379 case $host_os in 15380 cygwin*) 15381 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15382 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15383 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15384 ;; 15385 mingw*) 15386 # MinGW DLLs use traditional 'lib' prefix 15387 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15388 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15389 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15390 # It is most probably a Windows format PATH printed by 15391 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15392 # path with ; separators, and with drive letters. We can handle the 15393 # drive letters (cygwin fileutils understands them), so leave them, 15394 # especially as we might pass files found there to a mingw objdump, 15395 # which wouldn't understand a cygwinified path. Ahh. 15396 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15397 else 15398 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15399 fi 15400 ;; 15401 pw32*) 15402 # pw32 DLLs use 'pw' prefix rather than 'lib' 15403 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15404 ;; 15405 esac 15406 ;; 15407 15408 *) 15409 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15410 ;; 15411 esac 15412 dynamic_linker='Win32 ld.exe' 15413 # FIXME: first we should search . and the directory the executable is in 15414 shlibpath_var=PATH 15415 ;; 15416 15417darwin* | rhapsody*) 15418 dynamic_linker="$host_os dyld" 15419 version_type=darwin 15420 need_lib_prefix=no 15421 need_version=no 15422 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15423 soname_spec='${libname}${release}${major}$shared_ext' 15424 shlibpath_overrides_runpath=yes 15425 shlibpath_var=DYLD_LIBRARY_PATH 15426 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15427 15428 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15429 ;; 15430 15431dgux*) 15432 version_type=linux 15433 need_lib_prefix=no 15434 need_version=no 15435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15436 soname_spec='${libname}${release}${shared_ext}$major' 15437 shlibpath_var=LD_LIBRARY_PATH 15438 ;; 15439 15440freebsd1*) 15441 dynamic_linker=no 15442 ;; 15443 15444freebsd* | dragonfly*) 15445 # DragonFly does not have aout. When/if they implement a new 15446 # versioning mechanism, adjust this. 15447 if test -x /usr/bin/objformat; then 15448 objformat=`/usr/bin/objformat` 15449 else 15450 case $host_os in 15451 freebsd[123]*) objformat=aout ;; 15452 *) objformat=elf ;; 15453 esac 15454 fi 15455 version_type=freebsd-$objformat 15456 case $version_type in 15457 freebsd-elf*) 15458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15459 need_version=no 15460 need_lib_prefix=no 15461 ;; 15462 freebsd-*) 15463 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15464 need_version=yes 15465 ;; 15466 esac 15467 shlibpath_var=LD_LIBRARY_PATH 15468 case $host_os in 15469 freebsd2*) 15470 shlibpath_overrides_runpath=yes 15471 ;; 15472 freebsd3.[01]* | freebsdelf3.[01]*) 15473 shlibpath_overrides_runpath=yes 15474 hardcode_into_libs=yes 15475 ;; 15476 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15477 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15478 shlibpath_overrides_runpath=no 15479 hardcode_into_libs=yes 15480 ;; 15481 *) # from 4.6 on, and DragonFly 15482 shlibpath_overrides_runpath=yes 15483 hardcode_into_libs=yes 15484 ;; 15485 esac 15486 ;; 15487 15488gnu*) 15489 version_type=linux 15490 need_lib_prefix=no 15491 need_version=no 15492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15493 soname_spec='${libname}${release}${shared_ext}$major' 15494 shlibpath_var=LD_LIBRARY_PATH 15495 hardcode_into_libs=yes 15496 ;; 15497 15498hpux9* | hpux10* | hpux11*) 15499 # Give a soname corresponding to the major version so that dld.sl refuses to 15500 # link against other versions. 15501 version_type=sunos 15502 need_lib_prefix=no 15503 need_version=no 15504 case $host_cpu in 15505 ia64*) 15506 shrext_cmds='.so' 15507 hardcode_into_libs=yes 15508 dynamic_linker="$host_os dld.so" 15509 shlibpath_var=LD_LIBRARY_PATH 15510 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15512 soname_spec='${libname}${release}${shared_ext}$major' 15513 if test "X$HPUX_IA64_MODE" = X32; then 15514 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15515 else 15516 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15517 fi 15518 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15519 ;; 15520 hppa*64*) 15521 shrext_cmds='.sl' 15522 hardcode_into_libs=yes 15523 dynamic_linker="$host_os dld.sl" 15524 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15525 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15527 soname_spec='${libname}${release}${shared_ext}$major' 15528 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15529 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15530 ;; 15531 *) 15532 shrext_cmds='.sl' 15533 dynamic_linker="$host_os dld.sl" 15534 shlibpath_var=SHLIB_PATH 15535 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 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 ;; 15539 esac 15540 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15541 postinstall_cmds='chmod 555 $lib' 15542 ;; 15543 15544interix[3-9]*) 15545 version_type=linux 15546 need_lib_prefix=no 15547 need_version=no 15548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15549 soname_spec='${libname}${release}${shared_ext}$major' 15550 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15551 shlibpath_var=LD_LIBRARY_PATH 15552 shlibpath_overrides_runpath=no 15553 hardcode_into_libs=yes 15554 ;; 15555 15556irix5* | irix6* | nonstopux*) 15557 case $host_os in 15558 nonstopux*) version_type=nonstopux ;; 15559 *) 15560 if test "$lt_cv_prog_gnu_ld" = yes; then 15561 version_type=linux 15562 else 15563 version_type=irix 15564 fi ;; 15565 esac 15566 need_lib_prefix=no 15567 need_version=no 15568 soname_spec='${libname}${release}${shared_ext}$major' 15569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15570 case $host_os in 15571 irix5* | nonstopux*) 15572 libsuff= shlibsuff= 15573 ;; 15574 *) 15575 case $LD in # libtool.m4 will add one of these switches to LD 15576 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15577 libsuff= shlibsuff= libmagic=32-bit;; 15578 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15579 libsuff=32 shlibsuff=N32 libmagic=N32;; 15580 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15581 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15582 *) libsuff= shlibsuff= libmagic=never-match;; 15583 esac 15584 ;; 15585 esac 15586 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15587 shlibpath_overrides_runpath=no 15588 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15589 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15590 hardcode_into_libs=yes 15591 ;; 15592 15593# No shared lib support for Linux oldld, aout, or coff. 15594linux*oldld* | linux*aout* | linux*coff*) 15595 dynamic_linker=no 15596 ;; 15597 15598# This must be Linux ELF. 15599linux* | k*bsd*-gnu) 15600 version_type=linux 15601 need_lib_prefix=no 15602 need_version=no 15603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15604 soname_spec='${libname}${release}${shared_ext}$major' 15605 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15606 shlibpath_var=LD_LIBRARY_PATH 15607 shlibpath_overrides_runpath=no 15608 # This implies no fast_install, which is unacceptable. 15609 # Some rework will be needed to allow for fast_install 15610 # before this can be enabled. 15611 hardcode_into_libs=yes 15612 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15613 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15614 15615 # Append ld.so.conf contents to the search path 15616 if test -f /etc/ld.so.conf; then 15617 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 15618 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 15619 fi 15620 15621 # We used to test for /lib/ld.so.1 and disable shared libraries on 15622 # powerpc, because MkLinux only supported shared libraries with the 15623 # GNU dynamic linker. Since this was broken with cross compilers, 15624 # most powerpc-linux boxes support dynamic linking these days and 15625 # people can always --disable-shared, the test was removed, and we 15626 # assume the GNU/Linux dynamic linker is in use. 15627 dynamic_linker='GNU/Linux ld.so' 15628 ;; 15629 15630netbsd*) 15631 version_type=sunos 15632 need_lib_prefix=no 15633 need_version=no 15634 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15636 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15637 dynamic_linker='NetBSD (a.out) ld.so' 15638 else 15639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15640 soname_spec='${libname}${release}${shared_ext}$major' 15641 dynamic_linker='NetBSD ld.elf_so' 15642 fi 15643 shlibpath_var=LD_LIBRARY_PATH 15644 shlibpath_overrides_runpath=yes 15645 hardcode_into_libs=yes 15646 ;; 15647 15648newsos6) 15649 version_type=linux 15650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15651 shlibpath_var=LD_LIBRARY_PATH 15652 shlibpath_overrides_runpath=yes 15653 ;; 15654 15655nto-qnx*) 15656 version_type=linux 15657 need_lib_prefix=no 15658 need_version=no 15659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15660 soname_spec='${libname}${release}${shared_ext}$major' 15661 shlibpath_var=LD_LIBRARY_PATH 15662 shlibpath_overrides_runpath=yes 15663 ;; 15664 15665openbsd*) 15666 version_type=sunos 15667 sys_lib_dlsearch_path_spec="/usr/lib" 15668 need_lib_prefix=no 15669 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15670 case $host_os in 15671 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15672 *) need_version=no ;; 15673 esac 15674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15675 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15676 shlibpath_var=LD_LIBRARY_PATH 15677 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15678 case $host_os in 15679 openbsd2.[89] | openbsd2.[89].*) 15680 shlibpath_overrides_runpath=no 15681 ;; 15682 *) 15683 shlibpath_overrides_runpath=yes 15684 ;; 15685 esac 15686 else 15687 shlibpath_overrides_runpath=yes 15688 fi 15689 ;; 15690 15691os2*) 15692 libname_spec='$name' 15693 shrext_cmds=".dll" 15694 need_lib_prefix=no 15695 library_names_spec='$libname${shared_ext} $libname.a' 15696 dynamic_linker='OS/2 ld.exe' 15697 shlibpath_var=LIBPATH 15698 ;; 15699 15700osf3* | osf4* | osf5*) 15701 version_type=osf 15702 need_lib_prefix=no 15703 need_version=no 15704 soname_spec='${libname}${release}${shared_ext}$major' 15705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15706 shlibpath_var=LD_LIBRARY_PATH 15707 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15708 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15709 ;; 15710 15711rdos*) 15712 dynamic_linker=no 15713 ;; 15714 15715solaris*) 15716 version_type=linux 15717 need_lib_prefix=no 15718 need_version=no 15719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15720 soname_spec='${libname}${release}${shared_ext}$major' 15721 shlibpath_var=LD_LIBRARY_PATH 15722 shlibpath_overrides_runpath=yes 15723 hardcode_into_libs=yes 15724 # ldd complains unless libraries are executable 15725 postinstall_cmds='chmod +x $lib' 15726 ;; 15727 15728sunos4*) 15729 version_type=sunos 15730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15731 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15732 shlibpath_var=LD_LIBRARY_PATH 15733 shlibpath_overrides_runpath=yes 15734 if test "$with_gnu_ld" = yes; then 15735 need_lib_prefix=no 15736 fi 15737 need_version=yes 15738 ;; 15739 15740sysv4 | sysv4.3*) 15741 version_type=linux 15742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15743 soname_spec='${libname}${release}${shared_ext}$major' 15744 shlibpath_var=LD_LIBRARY_PATH 15745 case $host_vendor in 15746 sni) 15747 shlibpath_overrides_runpath=no 15748 need_lib_prefix=no 15749 export_dynamic_flag_spec='${wl}-Blargedynsym' 15750 runpath_var=LD_RUN_PATH 15751 ;; 15752 siemens) 15753 need_lib_prefix=no 15754 ;; 15755 motorola) 15756 need_lib_prefix=no 15757 need_version=no 15758 shlibpath_overrides_runpath=no 15759 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15760 ;; 15761 esac 15762 ;; 15763 15764sysv4*MP*) 15765 if test -d /usr/nec ;then 15766 version_type=linux 15767 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15768 soname_spec='$libname${shared_ext}.$major' 15769 shlibpath_var=LD_LIBRARY_PATH 15770 fi 15771 ;; 15772 15773sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15774 version_type=freebsd-elf 15775 need_lib_prefix=no 15776 need_version=no 15777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15778 soname_spec='${libname}${release}${shared_ext}$major' 15779 shlibpath_var=LD_LIBRARY_PATH 15780 hardcode_into_libs=yes 15781 if test "$with_gnu_ld" = yes; then 15782 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15783 shlibpath_overrides_runpath=no 15784 else 15785 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15786 shlibpath_overrides_runpath=yes 15787 case $host_os in 15788 sco3.2v5*) 15789 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15790 ;; 15791 esac 15792 fi 15793 sys_lib_dlsearch_path_spec='/usr/lib' 15794 ;; 15795 15796uts4*) 15797 version_type=linux 15798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15799 soname_spec='${libname}${release}${shared_ext}$major' 15800 shlibpath_var=LD_LIBRARY_PATH 15801 ;; 15802 15803*) 15804 dynamic_linker=no 15805 ;; 15806esac 15807{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 15808echo "${ECHO_T}$dynamic_linker" >&6; } 15809test "$dynamic_linker" = no && can_build_shared=no 15810 15811variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15812if test "$GCC" = yes; then 15813 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15814fi 15815 15816{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 15817echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 15818hardcode_action_F77= 15819if test -n "$hardcode_libdir_flag_spec_F77" || \ 15820 test -n "$runpath_var_F77" || \ 15821 test "X$hardcode_automatic_F77" = "Xyes" ; then 15822 15823 # We can hardcode non-existant directories. 15824 if test "$hardcode_direct_F77" != no && 15825 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15826 # have to relink, otherwise we might link with an installed library 15827 # when we should be linking with a yet-to-be-installed one 15828 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 15829 test "$hardcode_minus_L_F77" != no; then 15830 # Linking always hardcodes the temporary library directory. 15831 hardcode_action_F77=relink 15832 else 15833 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15834 hardcode_action_F77=immediate 15835 fi 15836else 15837 # We cannot hardcode anything, or else we can only hardcode existing 15838 # directories. 15839 hardcode_action_F77=unsupported 15840fi 15841{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 15842echo "${ECHO_T}$hardcode_action_F77" >&6; } 15843 15844if test "$hardcode_action_F77" = relink; then 15845 # Fast installation is not supported 15846 enable_fast_install=no 15847elif test "$shlibpath_overrides_runpath" = yes || 15848 test "$enable_shared" = no; then 15849 # Fast installation is not necessary 15850 enable_fast_install=needless 15851fi 15852 15853 15854# The else clause should only fire when bootstrapping the 15855# libtool distribution, otherwise you forgot to ship ltmain.sh 15856# with your package, and you will get complaints that there are 15857# no rules to generate ltmain.sh. 15858if test -f "$ltmain"; then 15859 # See if we are running on zsh, and set the options which allow our commands through 15860 # without removal of \ escapes. 15861 if test -n "${ZSH_VERSION+set}" ; then 15862 setopt NO_GLOB_SUBST 15863 fi 15864 # Now quote all the things that may contain metacharacters while being 15865 # careful not to overquote the AC_SUBSTed values. We take copies of the 15866 # variables and quote the copies for generation of the libtool script. 15867 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 15868 SED SHELL STRIP \ 15869 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 15870 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 15871 deplibs_check_method reload_flag reload_cmds need_locks \ 15872 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 15873 lt_cv_sys_global_symbol_to_c_name_address \ 15874 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 15875 old_postinstall_cmds old_postuninstall_cmds \ 15876 compiler_F77 \ 15877 CC_F77 \ 15878 LD_F77 \ 15879 lt_prog_compiler_wl_F77 \ 15880 lt_prog_compiler_pic_F77 \ 15881 lt_prog_compiler_static_F77 \ 15882 lt_prog_compiler_no_builtin_flag_F77 \ 15883 export_dynamic_flag_spec_F77 \ 15884 thread_safe_flag_spec_F77 \ 15885 whole_archive_flag_spec_F77 \ 15886 enable_shared_with_static_runtimes_F77 \ 15887 old_archive_cmds_F77 \ 15888 old_archive_from_new_cmds_F77 \ 15889 predep_objects_F77 \ 15890 postdep_objects_F77 \ 15891 predeps_F77 \ 15892 postdeps_F77 \ 15893 compiler_lib_search_path_F77 \ 15894 archive_cmds_F77 \ 15895 archive_expsym_cmds_F77 \ 15896 postinstall_cmds_F77 \ 15897 postuninstall_cmds_F77 \ 15898 old_archive_from_expsyms_cmds_F77 \ 15899 allow_undefined_flag_F77 \ 15900 no_undefined_flag_F77 \ 15901 export_symbols_cmds_F77 \ 15902 hardcode_libdir_flag_spec_F77 \ 15903 hardcode_libdir_flag_spec_ld_F77 \ 15904 hardcode_libdir_separator_F77 \ 15905 hardcode_automatic_F77 \ 15906 module_cmds_F77 \ 15907 module_expsym_cmds_F77 \ 15908 lt_cv_prog_compiler_c_o_F77 \ 15909 fix_srcfile_path_F77 \ 15910 exclude_expsyms_F77 \ 15911 include_expsyms_F77; do 15912 15913 case $var in 15914 old_archive_cmds_F77 | \ 15915 old_archive_from_new_cmds_F77 | \ 15916 archive_cmds_F77 | \ 15917 archive_expsym_cmds_F77 | \ 15918 module_cmds_F77 | \ 15919 module_expsym_cmds_F77 | \ 15920 old_archive_from_expsyms_cmds_F77 | \ 15921 export_symbols_cmds_F77 | \ 15922 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 15923 postinstall_cmds | postuninstall_cmds | \ 15924 old_postinstall_cmds | old_postuninstall_cmds | \ 15925 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 15926 # Double-quote double-evaled strings. 15927 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 15928 ;; 15929 *) 15930 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 15931 ;; 15932 esac 15933 done 15934 15935 case $lt_echo in 15936 *'\$0 --fallback-echo"') 15937 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 15938 ;; 15939 esac 15940 15941cfgfile="$ofile" 15942 15943 cat <<__EOF__ >> "$cfgfile" 15944# ### BEGIN LIBTOOL TAG CONFIG: $tagname 15945 15946# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15947 15948# Shell to use when invoking shell scripts. 15949SHELL=$lt_SHELL 15950 15951# Whether or not to build shared libraries. 15952build_libtool_libs=$enable_shared 15953 15954# Whether or not to build static libraries. 15955build_old_libs=$enable_static 15956 15957# Whether or not to add -lc for building shared libraries. 15958build_libtool_need_lc=$archive_cmds_need_lc_F77 15959 15960# Whether or not to disallow shared libs when runtime libs are static 15961allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 15962 15963# Whether or not to optimize for fast installation. 15964fast_install=$enable_fast_install 15965 15966# The host system. 15967host_alias=$host_alias 15968host=$host 15969host_os=$host_os 15970 15971# The build system. 15972build_alias=$build_alias 15973build=$build 15974build_os=$build_os 15975 15976# An echo program that does not interpret backslashes. 15977echo=$lt_echo 15978 15979# The archiver. 15980AR=$lt_AR 15981AR_FLAGS=$lt_AR_FLAGS 15982 15983# A C compiler. 15984LTCC=$lt_LTCC 15985 15986# LTCC compiler flags. 15987LTCFLAGS=$lt_LTCFLAGS 15988 15989# A language-specific compiler. 15990CC=$lt_compiler_F77 15991 15992# Is the compiler the GNU C compiler? 15993with_gcc=$GCC_F77 15994 15995# An ERE matcher. 15996EGREP=$lt_EGREP 15997 15998# The linker used to build libraries. 15999LD=$lt_LD_F77 16000 16001# Whether we need hard or soft links. 16002LN_S=$lt_LN_S 16003 16004# A BSD-compatible nm program. 16005NM=$lt_NM 16006 16007# A symbol stripping program 16008STRIP=$lt_STRIP 16009 16010# Used to examine libraries when file_magic_cmd begins "file" 16011MAGIC_CMD=$MAGIC_CMD 16012 16013# Used on cygwin: DLL creation program. 16014DLLTOOL="$DLLTOOL" 16015 16016# Used on cygwin: object dumper. 16017OBJDUMP="$OBJDUMP" 16018 16019# Used on cygwin: assembler. 16020AS="$AS" 16021 16022# The name of the directory that contains temporary libtool files. 16023objdir=$objdir 16024 16025# How to create reloadable object files. 16026reload_flag=$lt_reload_flag 16027reload_cmds=$lt_reload_cmds 16028 16029# How to pass a linker flag through the compiler. 16030wl=$lt_lt_prog_compiler_wl_F77 16031 16032# Object file suffix (normally "o"). 16033objext="$ac_objext" 16034 16035# Old archive suffix (normally "a"). 16036libext="$libext" 16037 16038# Shared library suffix (normally ".so"). 16039shrext_cmds='$shrext_cmds' 16040 16041# Executable file suffix (normally ""). 16042exeext="$exeext" 16043 16044# Additional compiler flags for building library objects. 16045pic_flag=$lt_lt_prog_compiler_pic_F77 16046pic_mode=$pic_mode 16047 16048# What is the maximum length of a command? 16049max_cmd_len=$lt_cv_sys_max_cmd_len 16050 16051# Does compiler simultaneously support -c and -o options? 16052compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 16053 16054# Must we lock files when doing compilation? 16055need_locks=$lt_need_locks 16056 16057# Do we need the lib prefix for modules? 16058need_lib_prefix=$need_lib_prefix 16059 16060# Do we need a version for libraries? 16061need_version=$need_version 16062 16063# Whether dlopen is supported. 16064dlopen_support=$enable_dlopen 16065 16066# Whether dlopen of programs is supported. 16067dlopen_self=$enable_dlopen_self 16068 16069# Whether dlopen of statically linked programs is supported. 16070dlopen_self_static=$enable_dlopen_self_static 16071 16072# Compiler flag to prevent dynamic linking. 16073link_static_flag=$lt_lt_prog_compiler_static_F77 16074 16075# Compiler flag to turn off builtin functions. 16076no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 16077 16078# Compiler flag to allow reflexive dlopens. 16079export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 16080 16081# Compiler flag to generate shared objects directly from archives. 16082whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 16083 16084# Compiler flag to generate thread-safe objects. 16085thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 16086 16087# Library versioning type. 16088version_type=$version_type 16089 16090# Format of library name prefix. 16091libname_spec=$lt_libname_spec 16092 16093# List of archive names. First name is the real one, the rest are links. 16094# The last name is the one that the linker finds with -lNAME. 16095library_names_spec=$lt_library_names_spec 16096 16097# The coded name of the library, if different from the real name. 16098soname_spec=$lt_soname_spec 16099 16100# Commands used to build and install an old-style archive. 16101RANLIB=$lt_RANLIB 16102old_archive_cmds=$lt_old_archive_cmds_F77 16103old_postinstall_cmds=$lt_old_postinstall_cmds 16104old_postuninstall_cmds=$lt_old_postuninstall_cmds 16105 16106# Create an old-style archive from a shared archive. 16107old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 16108 16109# Create a temporary old-style archive to link instead of a shared archive. 16110old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 16111 16112# Commands used to build and install a shared archive. 16113archive_cmds=$lt_archive_cmds_F77 16114archive_expsym_cmds=$lt_archive_expsym_cmds_F77 16115postinstall_cmds=$lt_postinstall_cmds 16116postuninstall_cmds=$lt_postuninstall_cmds 16117 16118# Commands used to build a loadable module (assumed same as above if empty) 16119module_cmds=$lt_module_cmds_F77 16120module_expsym_cmds=$lt_module_expsym_cmds_F77 16121 16122# Commands to strip libraries. 16123old_striplib=$lt_old_striplib 16124striplib=$lt_striplib 16125 16126# Dependencies to place before the objects being linked to create a 16127# shared library. 16128predep_objects=$lt_predep_objects_F77 16129 16130# Dependencies to place after the objects being linked to create a 16131# shared library. 16132postdep_objects=$lt_postdep_objects_F77 16133 16134# Dependencies to place before the objects being linked to create a 16135# shared library. 16136predeps=$lt_predeps_F77 16137 16138# Dependencies to place after the objects being linked to create a 16139# shared library. 16140postdeps=$lt_postdeps_F77 16141 16142# The library search path used internally by the compiler when linking 16143# a shared library. 16144compiler_lib_search_path=$lt_compiler_lib_search_path_F77 16145 16146# Method to check whether dependent libraries are shared objects. 16147deplibs_check_method=$lt_deplibs_check_method 16148 16149# Command to use when deplibs_check_method == file_magic. 16150file_magic_cmd=$lt_file_magic_cmd 16151 16152# Flag that allows shared libraries with undefined symbols to be built. 16153allow_undefined_flag=$lt_allow_undefined_flag_F77 16154 16155# Flag that forces no undefined symbols. 16156no_undefined_flag=$lt_no_undefined_flag_F77 16157 16158# Commands used to finish a libtool library installation in a directory. 16159finish_cmds=$lt_finish_cmds 16160 16161# Same as above, but a single script fragment to be evaled but not shown. 16162finish_eval=$lt_finish_eval 16163 16164# Take the output of nm and produce a listing of raw symbols and C names. 16165global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16166 16167# Transform the output of nm in a proper C declaration 16168global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16169 16170# Transform the output of nm in a C name address pair 16171global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16172 16173# This is the shared library runtime path variable. 16174runpath_var=$runpath_var 16175 16176# This is the shared library path variable. 16177shlibpath_var=$shlibpath_var 16178 16179# Is shlibpath searched before the hard-coded library search path? 16180shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16181 16182# How to hardcode a shared library path into an executable. 16183hardcode_action=$hardcode_action_F77 16184 16185# Whether we should hardcode library paths into libraries. 16186hardcode_into_libs=$hardcode_into_libs 16187 16188# Flag to hardcode \$libdir into a binary during linking. 16189# This must work even if \$libdir does not exist. 16190hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16191 16192# If ld is used when linking, flag to hardcode \$libdir into 16193# a binary during linking. This must work even if \$libdir does 16194# not exist. 16195hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16196 16197# Whether we need a single -rpath flag with a separated argument. 16198hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16199 16200# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16201# resulting binary. 16202hardcode_direct=$hardcode_direct_F77 16203 16204# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16205# resulting binary. 16206hardcode_minus_L=$hardcode_minus_L_F77 16207 16208# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16209# the resulting binary. 16210hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16211 16212# Set to yes if building a shared library automatically hardcodes DIR into the library 16213# and all subsequent libraries and executables linked against it. 16214hardcode_automatic=$hardcode_automatic_F77 16215 16216# Variables whose values should be saved in libtool wrapper scripts and 16217# restored at relink time. 16218variables_saved_for_relink="$variables_saved_for_relink" 16219 16220# Whether libtool must link a program against all its dependency libraries. 16221link_all_deplibs=$link_all_deplibs_F77 16222 16223# Compile-time system search path for libraries 16224sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16225 16226# Run-time system search path for libraries 16227sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16228 16229# Fix the shell variable \$srcfile for the compiler. 16230fix_srcfile_path=$lt_fix_srcfile_path 16231 16232# Set to yes if exported symbols are required. 16233always_export_symbols=$always_export_symbols_F77 16234 16235# The commands to list exported symbols. 16236export_symbols_cmds=$lt_export_symbols_cmds_F77 16237 16238# The commands to extract the exported symbol list from a shared archive. 16239extract_expsyms_cmds=$lt_extract_expsyms_cmds 16240 16241# Symbols that should not be listed in the preloaded symbols. 16242exclude_expsyms=$lt_exclude_expsyms_F77 16243 16244# Symbols that must always be exported. 16245include_expsyms=$lt_include_expsyms_F77 16246 16247# ### END LIBTOOL TAG CONFIG: $tagname 16248 16249__EOF__ 16250 16251 16252else 16253 # If there is no Makefile yet, we rely on a make rule to execute 16254 # `config.status --recheck' to rerun these tests and create the 16255 # libtool script then. 16256 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16257 if test -f "$ltmain_in"; then 16258 test -f Makefile && make "$ltmain" 16259 fi 16260fi 16261 16262 16263ac_ext=c 16264ac_cpp='$CPP $CPPFLAGS' 16265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16267ac_compiler_gnu=$ac_cv_c_compiler_gnu 16268 16269CC="$lt_save_CC" 16270 16271 else 16272 tagname="" 16273 fi 16274 ;; 16275 16276 GCJ) 16277 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16278 16279 16280# Source file extension for Java test sources. 16281ac_ext=java 16282 16283# Object file extension for compiled Java test sources. 16284objext=o 16285objext_GCJ=$objext 16286 16287# Code to be used in simple compile tests 16288lt_simple_compile_test_code="class foo {}" 16289 16290# Code to be used in simple link tests 16291lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }' 16292 16293# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16294 16295# If no C compiler was specified, use CC. 16296LTCC=${LTCC-"$CC"} 16297 16298# If no C compiler flags were specified, use CFLAGS. 16299LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16300 16301# Allow CC to be a program name with arguments. 16302compiler=$CC 16303 16304 16305# save warnings/boilerplate of simple test code 16306ac_outfile=conftest.$ac_objext 16307echo "$lt_simple_compile_test_code" >conftest.$ac_ext 16308eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16309_lt_compiler_boilerplate=`cat conftest.err` 16310$rm conftest* 16311 16312ac_outfile=conftest.$ac_objext 16313echo "$lt_simple_link_test_code" >conftest.$ac_ext 16314eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16315_lt_linker_boilerplate=`cat conftest.err` 16316$rm conftest* 16317 16318 16319# Allow CC to be a program name with arguments. 16320lt_save_CC="$CC" 16321CC=${GCJ-"gcj"} 16322compiler=$CC 16323compiler_GCJ=$CC 16324for cc_temp in $compiler""; do 16325 case $cc_temp in 16326 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16327 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16328 \-*) ;; 16329 *) break;; 16330 esac 16331done 16332cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16333 16334 16335# GCJ did not exist at the time GCC didn't implicitly link libc in. 16336archive_cmds_need_lc_GCJ=no 16337 16338old_archive_cmds_GCJ=$old_archive_cmds 16339 16340 16341lt_prog_compiler_no_builtin_flag_GCJ= 16342 16343if test "$GCC" = yes; then 16344 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16345 16346 16347{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16348echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 16349if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16350 echo $ECHO_N "(cached) $ECHO_C" >&6 16351else 16352 lt_cv_prog_compiler_rtti_exceptions=no 16353 ac_outfile=conftest.$ac_objext 16354 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16355 lt_compiler_flag="-fno-rtti -fno-exceptions" 16356 # Insert the option either (1) after the last *FLAGS variable, or 16357 # (2) before a word containing "conftest.", or (3) at the end. 16358 # Note that $ac_compile itself does not contain backslashes and begins 16359 # with a dollar sign (not a hyphen), so the echo should work correctly. 16360 # The option is referenced via a variable to avoid confusing sed. 16361 lt_compile=`echo "$ac_compile" | $SED \ 16362 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16363 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16364 -e 's:$: $lt_compiler_flag:'` 16365 (eval echo "\"\$as_me:16365: $lt_compile\"" >&5) 16366 (eval "$lt_compile" 2>conftest.err) 16367 ac_status=$? 16368 cat conftest.err >&5 16369 echo "$as_me:16369: \$? = $ac_status" >&5 16370 if (exit $ac_status) && test -s "$ac_outfile"; then 16371 # The compiler can only warn and ignore the option if not recognized 16372 # So say no if there are warnings other than the usual output. 16373 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16374 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16375 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16376 lt_cv_prog_compiler_rtti_exceptions=yes 16377 fi 16378 fi 16379 $rm conftest* 16380 16381fi 16382{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16383echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16384 16385if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16386 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16387else 16388 : 16389fi 16390 16391fi 16392 16393lt_prog_compiler_wl_GCJ= 16394lt_prog_compiler_pic_GCJ= 16395lt_prog_compiler_static_GCJ= 16396 16397{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16398echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 16399 16400 if test "$GCC" = yes; then 16401 lt_prog_compiler_wl_GCJ='-Wl,' 16402 lt_prog_compiler_static_GCJ='-static' 16403 16404 case $host_os in 16405 aix*) 16406 # All AIX code is PIC. 16407 if test "$host_cpu" = ia64; then 16408 # AIX 5 now supports IA64 processor 16409 lt_prog_compiler_static_GCJ='-Bstatic' 16410 fi 16411 ;; 16412 16413 amigaos*) 16414 # FIXME: we need at least 68020 code to build shared libraries, but 16415 # adding the `-m68020' flag to GCC prevents building anything better, 16416 # like `-m68040'. 16417 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16418 ;; 16419 16420 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16421 # PIC is the default for these OSes. 16422 ;; 16423 16424 mingw* | cygwin* | pw32* | os2*) 16425 # This hack is so that the source file can tell whether it is being 16426 # built for inclusion in a dll (and should export symbols for example). 16427 # Although the cygwin gcc ignores -fPIC, still need this for old-style 16428 # (--disable-auto-import) libraries 16429 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16430 ;; 16431 16432 darwin* | rhapsody*) 16433 # PIC is the default on this platform 16434 # Common symbols not allowed in MH_DYLIB files 16435 lt_prog_compiler_pic_GCJ='-fno-common' 16436 ;; 16437 16438 interix[3-9]*) 16439 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16440 # Instead, we relocate shared libraries at runtime. 16441 ;; 16442 16443 msdosdjgpp*) 16444 # Just because we use GCC doesn't mean we suddenly get shared libraries 16445 # on systems that don't support them. 16446 lt_prog_compiler_can_build_shared_GCJ=no 16447 enable_shared=no 16448 ;; 16449 16450 sysv4*MP*) 16451 if test -d /usr/nec; then 16452 lt_prog_compiler_pic_GCJ=-Kconform_pic 16453 fi 16454 ;; 16455 16456 hpux*) 16457 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16458 # not for PA HP-UX. 16459 case $host_cpu in 16460 hppa*64*|ia64*) 16461 # +Z the default 16462 ;; 16463 *) 16464 lt_prog_compiler_pic_GCJ='-fPIC' 16465 ;; 16466 esac 16467 ;; 16468 16469 *) 16470 lt_prog_compiler_pic_GCJ='-fPIC' 16471 ;; 16472 esac 16473 else 16474 # PORTME Check for flag to pass linker flags through the system compiler. 16475 case $host_os in 16476 aix*) 16477 lt_prog_compiler_wl_GCJ='-Wl,' 16478 if test "$host_cpu" = ia64; then 16479 # AIX 5 now supports IA64 processor 16480 lt_prog_compiler_static_GCJ='-Bstatic' 16481 else 16482 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16483 fi 16484 ;; 16485 darwin*) 16486 # PIC is the default on this platform 16487 # Common symbols not allowed in MH_DYLIB files 16488 case $cc_basename in 16489 xlc*) 16490 lt_prog_compiler_pic_GCJ='-qnocommon' 16491 lt_prog_compiler_wl_GCJ='-Wl,' 16492 ;; 16493 esac 16494 ;; 16495 16496 mingw* | cygwin* | pw32* | os2*) 16497 # This hack is so that the source file can tell whether it is being 16498 # built for inclusion in a dll (and should export symbols for example). 16499 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16500 ;; 16501 16502 hpux9* | hpux10* | hpux11*) 16503 lt_prog_compiler_wl_GCJ='-Wl,' 16504 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16505 # not for PA HP-UX. 16506 case $host_cpu in 16507 hppa*64*|ia64*) 16508 # +Z the default 16509 ;; 16510 *) 16511 lt_prog_compiler_pic_GCJ='+Z' 16512 ;; 16513 esac 16514 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16515 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 16516 ;; 16517 16518 irix5* | irix6* | nonstopux*) 16519 lt_prog_compiler_wl_GCJ='-Wl,' 16520 # PIC (with -KPIC) is the default. 16521 lt_prog_compiler_static_GCJ='-non_shared' 16522 ;; 16523 16524 newsos6) 16525 lt_prog_compiler_pic_GCJ='-KPIC' 16526 lt_prog_compiler_static_GCJ='-Bstatic' 16527 ;; 16528 16529 linux* | k*bsd*-gnu) 16530 case $cc_basename in 16531 icc* | ecc*) 16532 lt_prog_compiler_wl_GCJ='-Wl,' 16533 lt_prog_compiler_pic_GCJ='-KPIC' 16534 lt_prog_compiler_static_GCJ='-static' 16535 ;; 16536 pgcc* | pgf77* | pgf90* | pgf95*) 16537 # Portland Group compilers (*not* the Pentium gcc compiler, 16538 # which looks to be a dead project) 16539 lt_prog_compiler_wl_GCJ='-Wl,' 16540 lt_prog_compiler_pic_GCJ='-fpic' 16541 lt_prog_compiler_static_GCJ='-Bstatic' 16542 ;; 16543 ccc*) 16544 lt_prog_compiler_wl_GCJ='-Wl,' 16545 # All Alpha code is PIC. 16546 lt_prog_compiler_static_GCJ='-non_shared' 16547 ;; 16548 *) 16549 case `$CC -V 2>&1 | sed 5q` in 16550 *Sun\ C*) 16551 # Sun C 5.9 16552 lt_prog_compiler_pic_GCJ='-KPIC' 16553 lt_prog_compiler_static_GCJ='-Bstatic' 16554 lt_prog_compiler_wl_GCJ='-Wl,' 16555 ;; 16556 *Sun\ F*) 16557 # Sun Fortran 8.3 passes all unrecognized flags to the linker 16558 lt_prog_compiler_pic_GCJ='-KPIC' 16559 lt_prog_compiler_static_GCJ='-Bstatic' 16560 lt_prog_compiler_wl_GCJ='' 16561 ;; 16562 esac 16563 ;; 16564 esac 16565 ;; 16566 16567 osf3* | osf4* | osf5*) 16568 lt_prog_compiler_wl_GCJ='-Wl,' 16569 # All OSF/1 code is PIC. 16570 lt_prog_compiler_static_GCJ='-non_shared' 16571 ;; 16572 16573 rdos*) 16574 lt_prog_compiler_static_GCJ='-non_shared' 16575 ;; 16576 16577 solaris*) 16578 lt_prog_compiler_pic_GCJ='-KPIC' 16579 lt_prog_compiler_static_GCJ='-Bstatic' 16580 case $cc_basename in 16581 f77* | f90* | f95*) 16582 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 16583 *) 16584 lt_prog_compiler_wl_GCJ='-Wl,';; 16585 esac 16586 ;; 16587 16588 sunos4*) 16589 lt_prog_compiler_wl_GCJ='-Qoption ld ' 16590 lt_prog_compiler_pic_GCJ='-PIC' 16591 lt_prog_compiler_static_GCJ='-Bstatic' 16592 ;; 16593 16594 sysv4 | sysv4.2uw2* | sysv4.3*) 16595 lt_prog_compiler_wl_GCJ='-Wl,' 16596 lt_prog_compiler_pic_GCJ='-KPIC' 16597 lt_prog_compiler_static_GCJ='-Bstatic' 16598 ;; 16599 16600 sysv4*MP*) 16601 if test -d /usr/nec ;then 16602 lt_prog_compiler_pic_GCJ='-Kconform_pic' 16603 lt_prog_compiler_static_GCJ='-Bstatic' 16604 fi 16605 ;; 16606 16607 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16608 lt_prog_compiler_wl_GCJ='-Wl,' 16609 lt_prog_compiler_pic_GCJ='-KPIC' 16610 lt_prog_compiler_static_GCJ='-Bstatic' 16611 ;; 16612 16613 unicos*) 16614 lt_prog_compiler_wl_GCJ='-Wl,' 16615 lt_prog_compiler_can_build_shared_GCJ=no 16616 ;; 16617 16618 uts4*) 16619 lt_prog_compiler_pic_GCJ='-pic' 16620 lt_prog_compiler_static_GCJ='-Bstatic' 16621 ;; 16622 16623 *) 16624 lt_prog_compiler_can_build_shared_GCJ=no 16625 ;; 16626 esac 16627 fi 16628 16629{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 16630echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } 16631 16632# 16633# Check to make sure the PIC flag actually works. 16634# 16635if test -n "$lt_prog_compiler_pic_GCJ"; then 16636 16637{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 16638echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } 16639if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 16640 echo $ECHO_N "(cached) $ECHO_C" >&6 16641else 16642 lt_prog_compiler_pic_works_GCJ=no 16643 ac_outfile=conftest.$ac_objext 16644 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16645 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 16646 # Insert the option either (1) after the last *FLAGS variable, or 16647 # (2) before a word containing "conftest.", or (3) at the end. 16648 # Note that $ac_compile itself does not contain backslashes and begins 16649 # with a dollar sign (not a hyphen), so the echo should work correctly. 16650 # The option is referenced via a variable to avoid confusing sed. 16651 lt_compile=`echo "$ac_compile" | $SED \ 16652 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16653 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16654 -e 's:$: $lt_compiler_flag:'` 16655 (eval echo "\"\$as_me:16655: $lt_compile\"" >&5) 16656 (eval "$lt_compile" 2>conftest.err) 16657 ac_status=$? 16658 cat conftest.err >&5 16659 echo "$as_me:16659: \$? = $ac_status" >&5 16660 if (exit $ac_status) && test -s "$ac_outfile"; then 16661 # The compiler can only warn and ignore the option if not recognized 16662 # So say no if there are warnings other than the usual output. 16663 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16664 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16665 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16666 lt_prog_compiler_pic_works_GCJ=yes 16667 fi 16668 fi 16669 $rm conftest* 16670 16671fi 16672{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 16673echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } 16674 16675if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 16676 case $lt_prog_compiler_pic_GCJ in 16677 "" | " "*) ;; 16678 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 16679 esac 16680else 16681 lt_prog_compiler_pic_GCJ= 16682 lt_prog_compiler_can_build_shared_GCJ=no 16683fi 16684 16685fi 16686case $host_os in 16687 # For platforms which do not support PIC, -DPIC is meaningless: 16688 *djgpp*) 16689 lt_prog_compiler_pic_GCJ= 16690 ;; 16691 *) 16692 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 16693 ;; 16694esac 16695 16696# 16697# Check to make sure the static flag actually works. 16698# 16699wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 16700{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16701echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 16702if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 16703 echo $ECHO_N "(cached) $ECHO_C" >&6 16704else 16705 lt_prog_compiler_static_works_GCJ=no 16706 save_LDFLAGS="$LDFLAGS" 16707 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16708 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16709 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16710 # The linker can only warn and ignore the option if not recognized 16711 # So say no if there are warnings 16712 if test -s conftest.err; then 16713 # Append any errors to the config.log. 16714 cat conftest.err 1>&5 16715 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 16716 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16717 if diff conftest.exp conftest.er2 >/dev/null; then 16718 lt_prog_compiler_static_works_GCJ=yes 16719 fi 16720 else 16721 lt_prog_compiler_static_works_GCJ=yes 16722 fi 16723 fi 16724 $rm conftest* 16725 LDFLAGS="$save_LDFLAGS" 16726 16727fi 16728{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 16729echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } 16730 16731if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 16732 : 16733else 16734 lt_prog_compiler_static_GCJ= 16735fi 16736 16737 16738{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 16739echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 16740if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 16741 echo $ECHO_N "(cached) $ECHO_C" >&6 16742else 16743 lt_cv_prog_compiler_c_o_GCJ=no 16744 $rm -r conftest 2>/dev/null 16745 mkdir conftest 16746 cd conftest 16747 mkdir out 16748 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16749 16750 lt_compiler_flag="-o out/conftest2.$ac_objext" 16751 # Insert the option either (1) after the last *FLAGS variable, or 16752 # (2) before a word containing "conftest.", or (3) at the end. 16753 # Note that $ac_compile itself does not contain backslashes and begins 16754 # with a dollar sign (not a hyphen), so the echo should work correctly. 16755 lt_compile=`echo "$ac_compile" | $SED \ 16756 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16757 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16758 -e 's:$: $lt_compiler_flag:'` 16759 (eval echo "\"\$as_me:16759: $lt_compile\"" >&5) 16760 (eval "$lt_compile" 2>out/conftest.err) 16761 ac_status=$? 16762 cat out/conftest.err >&5 16763 echo "$as_me:16763: \$? = $ac_status" >&5 16764 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16765 then 16766 # The compiler can only warn and ignore the option if not recognized 16767 # So say no if there are warnings 16768 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 16769 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16770 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16771 lt_cv_prog_compiler_c_o_GCJ=yes 16772 fi 16773 fi 16774 chmod u+w . 2>&5 16775 $rm conftest* 16776 # SGI C++ compiler will create directory out/ii_files/ for 16777 # template instantiation 16778 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 16779 $rm out/* && rmdir out 16780 cd .. 16781 rmdir conftest 16782 $rm conftest* 16783 16784fi 16785{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 16786echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } 16787 16788 16789hard_links="nottested" 16790if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 16791 # do not overwrite the value of need_locks provided by the user 16792 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 16793echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 16794 hard_links=yes 16795 $rm conftest* 16796 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16797 touch conftest.a 16798 ln conftest.a conftest.b 2>&5 || hard_links=no 16799 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16800 { echo "$as_me:$LINENO: result: $hard_links" >&5 16801echo "${ECHO_T}$hard_links" >&6; } 16802 if test "$hard_links" = no; then 16803 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 16804echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 16805 need_locks=warn 16806 fi 16807else 16808 need_locks=no 16809fi 16810 16811{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16812echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 16813 16814 runpath_var= 16815 allow_undefined_flag_GCJ= 16816 enable_shared_with_static_runtimes_GCJ=no 16817 archive_cmds_GCJ= 16818 archive_expsym_cmds_GCJ= 16819 old_archive_From_new_cmds_GCJ= 16820 old_archive_from_expsyms_cmds_GCJ= 16821 export_dynamic_flag_spec_GCJ= 16822 whole_archive_flag_spec_GCJ= 16823 thread_safe_flag_spec_GCJ= 16824 hardcode_libdir_flag_spec_GCJ= 16825 hardcode_libdir_flag_spec_ld_GCJ= 16826 hardcode_libdir_separator_GCJ= 16827 hardcode_direct_GCJ=no 16828 hardcode_minus_L_GCJ=no 16829 hardcode_shlibpath_var_GCJ=unsupported 16830 link_all_deplibs_GCJ=unknown 16831 hardcode_automatic_GCJ=no 16832 module_cmds_GCJ= 16833 module_expsym_cmds_GCJ= 16834 always_export_symbols_GCJ=no 16835 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16836 # include_expsyms should be a list of space-separated symbols to be *always* 16837 # included in the symbol list 16838 include_expsyms_GCJ= 16839 # exclude_expsyms can be an extended regexp of symbols to exclude 16840 # it will be wrapped by ` (' and `)$', so one must not match beginning or 16841 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 16842 # as well as any symbol that contains `d'. 16843 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 16844 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16845 # platforms (ab)use it in PIC code, but their linkers get confused if 16846 # the symbol is explicitly referenced. Since portable code cannot 16847 # rely on this symbol name, it's probably fine to never include it in 16848 # preloaded symbol tables. 16849 extract_expsyms_cmds= 16850 # Just being paranoid about ensuring that cc_basename is set. 16851 for cc_temp in $compiler""; do 16852 case $cc_temp in 16853 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16854 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16855 \-*) ;; 16856 *) break;; 16857 esac 16858done 16859cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16860 16861 case $host_os in 16862 cygwin* | mingw* | pw32*) 16863 # FIXME: the MSVC++ port hasn't been tested in a loooong time 16864 # When not using gcc, we currently assume that we are using 16865 # Microsoft Visual C++. 16866 if test "$GCC" != yes; then 16867 with_gnu_ld=no 16868 fi 16869 ;; 16870 interix*) 16871 # we just hope/assume this is gcc and not c89 (= MSVC++) 16872 with_gnu_ld=yes 16873 ;; 16874 openbsd*) 16875 with_gnu_ld=no 16876 ;; 16877 esac 16878 16879 ld_shlibs_GCJ=yes 16880 if test "$with_gnu_ld" = yes; then 16881 # If archive_cmds runs LD, not CC, wlarc should be empty 16882 wlarc='${wl}' 16883 16884 # Set some defaults for GNU ld with shared library support. These 16885 # are reset later if shared libraries are not supported. Putting them 16886 # here allows them to be overridden if necessary. 16887 runpath_var=LD_RUN_PATH 16888 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 16889 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 16890 # ancient GNU ld didn't support --whole-archive et. al. 16891 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 16892 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 16893 else 16894 whole_archive_flag_spec_GCJ= 16895 fi 16896 supports_anon_versioning=no 16897 case `$LD -v 2>/dev/null` in 16898 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16899 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16900 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16901 *\ 2.11.*) ;; # other 2.11 versions 16902 *) supports_anon_versioning=yes ;; 16903 esac 16904 16905 # See if GNU ld supports shared libraries. 16906 case $host_os in 16907 aix3* | aix4* | aix5*) 16908 # On AIX/PPC, the GNU linker is very broken 16909 if test "$host_cpu" != ia64; then 16910 ld_shlibs_GCJ=no 16911 cat <<EOF 1>&2 16912 16913*** Warning: the GNU linker, at least up to release 2.9.1, is reported 16914*** to be unable to reliably create shared libraries on AIX. 16915*** Therefore, libtool is disabling shared libraries support. If you 16916*** really care for shared libraries, you may want to modify your PATH 16917*** so that a non-GNU linker is found, and then restart. 16918 16919EOF 16920 fi 16921 ;; 16922 16923 amigaos*) 16924 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)' 16925 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16926 hardcode_minus_L_GCJ=yes 16927 16928 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 16929 # that the semantics of dynamic libraries on AmigaOS, at least up 16930 # to version 4, is to share data among multiple programs linked 16931 # with the same dynamic library. Since this doesn't match the 16932 # behavior of shared libraries on other platforms, we can't use 16933 # them. 16934 ld_shlibs_GCJ=no 16935 ;; 16936 16937 beos*) 16938 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16939 allow_undefined_flag_GCJ=unsupported 16940 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16941 # support --undefined. This deserves some investigation. FIXME 16942 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16943 else 16944 ld_shlibs_GCJ=no 16945 fi 16946 ;; 16947 16948 cygwin* | mingw* | pw32*) 16949 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 16950 # as there is no search path for DLLs. 16951 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16952 allow_undefined_flag_GCJ=unsupported 16953 always_export_symbols_GCJ=no 16954 enable_shared_with_static_runtimes_GCJ=yes 16955 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 16956 16957 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 16958 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16959 # If the export-symbols file already is a .def file (1st line 16960 # is EXPORTS), use it as is; otherwise, prepend... 16961 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16962 cp $export_symbols $output_objdir/$soname.def; 16963 else 16964 echo EXPORTS > $output_objdir/$soname.def; 16965 cat $export_symbols >> $output_objdir/$soname.def; 16966 fi~ 16967 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16968 else 16969 ld_shlibs_GCJ=no 16970 fi 16971 ;; 16972 16973 interix[3-9]*) 16974 hardcode_direct_GCJ=no 16975 hardcode_shlibpath_var_GCJ=no 16976 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16977 export_dynamic_flag_spec_GCJ='${wl}-E' 16978 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16979 # Instead, shared libraries are loaded at an image base (0x10000000 by 16980 # default) and relocated if they conflict, which is a slow very memory 16981 # consuming and fragmenting process. To avoid this, we pick a random, 16982 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16983 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16984 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' 16985 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' 16986 ;; 16987 16988 gnu* | linux* | k*bsd*-gnu) 16989 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16990 tmp_addflag= 16991 case $cc_basename,$host_cpu in 16992 pgcc*) # Portland Group C compiler 16993 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' 16994 tmp_addflag=' $pic_flag' 16995 ;; 16996 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 16997 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' 16998 tmp_addflag=' $pic_flag -Mnomain' ;; 16999 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 17000 tmp_addflag=' -i_dynamic' ;; 17001 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 17002 tmp_addflag=' -i_dynamic -nofor_main' ;; 17003 ifc* | ifort*) # Intel Fortran compiler 17004 tmp_addflag=' -nofor_main' ;; 17005 esac 17006 case `$CC -V 2>&1 | sed 5q` in 17007 *Sun\ C*) # Sun C 5.9 17008 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 17009 tmp_sharedflag='-G' ;; 17010 *Sun\ F*) # Sun Fortran 8.3 17011 tmp_sharedflag='-G' ;; 17012 *) 17013 tmp_sharedflag='-shared' ;; 17014 esac 17015 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17016 17017 if test $supports_anon_versioning = yes; then 17018 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 17019 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17020 $echo "local: *; };" >> $output_objdir/$libname.ver~ 17021 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17022 fi 17023 else 17024 ld_shlibs_GCJ=no 17025 fi 17026 ;; 17027 17028 netbsd*) 17029 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17030 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17031 wlarc= 17032 else 17033 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17034 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17035 fi 17036 ;; 17037 17038 solaris*) 17039 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 17040 ld_shlibs_GCJ=no 17041 cat <<EOF 1>&2 17042 17043*** Warning: The releases 2.8.* of the GNU linker cannot reliably 17044*** create shared libraries on Solaris systems. Therefore, libtool 17045*** is disabling shared libraries support. We urge you to upgrade GNU 17046*** binutils to release 2.9.1 or newer. Another option is to modify 17047*** your PATH or compiler configuration so that the native linker is 17048*** used, and then restart. 17049 17050EOF 17051 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17052 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17053 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17054 else 17055 ld_shlibs_GCJ=no 17056 fi 17057 ;; 17058 17059 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 17060 case `$LD -v 2>&1` in 17061 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 17062 ld_shlibs_GCJ=no 17063 cat <<_LT_EOF 1>&2 17064 17065*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 17066*** reliably create shared libraries on SCO systems. Therefore, libtool 17067*** is disabling shared libraries support. We urge you to upgrade GNU 17068*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 17069*** your PATH or compiler configuration so that the native linker is 17070*** used, and then restart. 17071 17072_LT_EOF 17073 ;; 17074 *) 17075 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17076 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 17077 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 17078 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 17079 else 17080 ld_shlibs_GCJ=no 17081 fi 17082 ;; 17083 esac 17084 ;; 17085 17086 sunos4*) 17087 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17088 wlarc= 17089 hardcode_direct_GCJ=yes 17090 hardcode_shlibpath_var_GCJ=no 17091 ;; 17092 17093 *) 17094 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17095 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17096 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17097 else 17098 ld_shlibs_GCJ=no 17099 fi 17100 ;; 17101 esac 17102 17103 if test "$ld_shlibs_GCJ" = no; then 17104 runpath_var= 17105 hardcode_libdir_flag_spec_GCJ= 17106 export_dynamic_flag_spec_GCJ= 17107 whole_archive_flag_spec_GCJ= 17108 fi 17109 else 17110 # PORTME fill in a description of your system's linker (not GNU ld) 17111 case $host_os in 17112 aix3*) 17113 allow_undefined_flag_GCJ=unsupported 17114 always_export_symbols_GCJ=yes 17115 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' 17116 # Note: this linker hardcodes the directories in LIBPATH if there 17117 # are no directories specified by -L. 17118 hardcode_minus_L_GCJ=yes 17119 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 17120 # Neither direct hardcoding nor static linking is supported with a 17121 # broken collect2. 17122 hardcode_direct_GCJ=unsupported 17123 fi 17124 ;; 17125 17126 aix4* | aix5*) 17127 if test "$host_cpu" = ia64; then 17128 # On IA64, the linker does run time linking by default, so we don't 17129 # have to do anything special. 17130 aix_use_runtimelinking=no 17131 exp_sym_flag='-Bexport' 17132 no_entry_flag="" 17133 else 17134 # If we're using GNU nm, then we don't want the "-C" option. 17135 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17136 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 17137 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' 17138 else 17139 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' 17140 fi 17141 aix_use_runtimelinking=no 17142 17143 # Test if we are trying to use run time linking or normal 17144 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17145 # need to do runtime linking. 17146 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 17147 for ld_flag in $LDFLAGS; do 17148 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17149 aix_use_runtimelinking=yes 17150 break 17151 fi 17152 done 17153 ;; 17154 esac 17155 17156 exp_sym_flag='-bexport' 17157 no_entry_flag='-bnoentry' 17158 fi 17159 17160 # When large executables or shared objects are built, AIX ld can 17161 # have problems creating the table of contents. If linking a library 17162 # or program results in "error TOC overflow" add -mminimal-toc to 17163 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17164 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17165 17166 archive_cmds_GCJ='' 17167 hardcode_direct_GCJ=yes 17168 hardcode_libdir_separator_GCJ=':' 17169 link_all_deplibs_GCJ=yes 17170 17171 if test "$GCC" = yes; then 17172 case $host_os in aix4.[012]|aix4.[012].*) 17173 # We only want to do this on AIX 4.2 and lower, the check 17174 # below for broken collect2 doesn't work under 4.3+ 17175 collect2name=`${CC} -print-prog-name=collect2` 17176 if test -f "$collect2name" && \ 17177 strings "$collect2name" | grep resolve_lib_name >/dev/null 17178 then 17179 # We have reworked collect2 17180 : 17181 else 17182 # We have old collect2 17183 hardcode_direct_GCJ=unsupported 17184 # It fails to find uninstalled libraries when the uninstalled 17185 # path is not listed in the libpath. Setting hardcode_minus_L 17186 # to unsupported forces relinking 17187 hardcode_minus_L_GCJ=yes 17188 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17189 hardcode_libdir_separator_GCJ= 17190 fi 17191 ;; 17192 esac 17193 shared_flag='-shared' 17194 if test "$aix_use_runtimelinking" = yes; then 17195 shared_flag="$shared_flag "'${wl}-G' 17196 fi 17197 else 17198 # not using gcc 17199 if test "$host_cpu" = ia64; then 17200 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17201 # chokes on -Wl,-G. The following line is correct: 17202 shared_flag='-G' 17203 else 17204 if test "$aix_use_runtimelinking" = yes; then 17205 shared_flag='${wl}-G' 17206 else 17207 shared_flag='${wl}-bM:SRE' 17208 fi 17209 fi 17210 fi 17211 17212 # It seems that -bexpall does not export symbols beginning with 17213 # underscore (_), so it is better to generate a list of symbols to export. 17214 always_export_symbols_GCJ=yes 17215 if test "$aix_use_runtimelinking" = yes; then 17216 # Warning - without using the other runtime loading flags (-brtl), 17217 # -berok will link without error, but may produce a broken library. 17218 allow_undefined_flag_GCJ='-berok' 17219 # Determine the default libpath from the value encoded in an empty executable. 17220 cat >conftest.$ac_ext <<_ACEOF 17221/* confdefs.h. */ 17222_ACEOF 17223cat confdefs.h >>conftest.$ac_ext 17224cat >>conftest.$ac_ext <<_ACEOF 17225/* end confdefs.h. */ 17226 17227int 17228main () 17229{ 17230 17231 ; 17232 return 0; 17233} 17234_ACEOF 17235rm -f conftest.$ac_objext conftest$ac_exeext 17236if { (ac_try="$ac_link" 17237case "(($ac_try" in 17238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17239 *) ac_try_echo=$ac_try;; 17240esac 17241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17242 (eval "$ac_link") 2>conftest.er1 17243 ac_status=$? 17244 grep -v '^ *+' conftest.er1 >conftest.err 17245 rm -f conftest.er1 17246 cat conftest.err >&5 17247 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17248 (exit $ac_status); } && { 17249 test -z "$ac_c_werror_flag" || 17250 test ! -s conftest.err 17251 } && test -s conftest$ac_exeext && 17252 $as_test_x conftest$ac_exeext; then 17253 17254lt_aix_libpath_sed=' 17255 /Import File Strings/,/^$/ { 17256 /^0/ { 17257 s/^0 *\(.*\)$/\1/ 17258 p 17259 } 17260 }' 17261aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17262# Check for a 64-bit object if we didn't find anything. 17263if test -z "$aix_libpath"; then 17264 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17265fi 17266else 17267 echo "$as_me: failed program was:" >&5 17268sed 's/^/| /' conftest.$ac_ext >&5 17269 17270 17271fi 17272 17273rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17274 conftest$ac_exeext conftest.$ac_ext 17275if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17276 17277 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17278 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" 17279 else 17280 if test "$host_cpu" = ia64; then 17281 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17282 allow_undefined_flag_GCJ="-z nodefs" 17283 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" 17284 else 17285 # Determine the default libpath from the value encoded in an empty executable. 17286 cat >conftest.$ac_ext <<_ACEOF 17287/* confdefs.h. */ 17288_ACEOF 17289cat confdefs.h >>conftest.$ac_ext 17290cat >>conftest.$ac_ext <<_ACEOF 17291/* end confdefs.h. */ 17292 17293int 17294main () 17295{ 17296 17297 ; 17298 return 0; 17299} 17300_ACEOF 17301rm -f conftest.$ac_objext conftest$ac_exeext 17302if { (ac_try="$ac_link" 17303case "(($ac_try" in 17304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17305 *) ac_try_echo=$ac_try;; 17306esac 17307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17308 (eval "$ac_link") 2>conftest.er1 17309 ac_status=$? 17310 grep -v '^ *+' conftest.er1 >conftest.err 17311 rm -f conftest.er1 17312 cat conftest.err >&5 17313 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17314 (exit $ac_status); } && { 17315 test -z "$ac_c_werror_flag" || 17316 test ! -s conftest.err 17317 } && test -s conftest$ac_exeext && 17318 $as_test_x conftest$ac_exeext; then 17319 17320lt_aix_libpath_sed=' 17321 /Import File Strings/,/^$/ { 17322 /^0/ { 17323 s/^0 *\(.*\)$/\1/ 17324 p 17325 } 17326 }' 17327aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17328# Check for a 64-bit object if we didn't find anything. 17329if test -z "$aix_libpath"; then 17330 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17331fi 17332else 17333 echo "$as_me: failed program was:" >&5 17334sed 's/^/| /' conftest.$ac_ext >&5 17335 17336 17337fi 17338 17339rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17340 conftest$ac_exeext conftest.$ac_ext 17341if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17342 17343 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17344 # Warning - without using the other run time loading flags, 17345 # -berok will link without error, but may produce a broken library. 17346 no_undefined_flag_GCJ=' ${wl}-bernotok' 17347 allow_undefined_flag_GCJ=' ${wl}-berok' 17348 # Exported symbols can be pulled into shared objects from archives 17349 whole_archive_flag_spec_GCJ='$convenience' 17350 archive_cmds_need_lc_GCJ=yes 17351 # This is similar to how AIX traditionally builds its shared libraries. 17352 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' 17353 fi 17354 fi 17355 ;; 17356 17357 amigaos*) 17358 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)' 17359 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17360 hardcode_minus_L_GCJ=yes 17361 # see comment about different semantics on the GNU ld section 17362 ld_shlibs_GCJ=no 17363 ;; 17364 17365 bsdi[45]*) 17366 export_dynamic_flag_spec_GCJ=-rdynamic 17367 ;; 17368 17369 cygwin* | mingw* | pw32*) 17370 # When not using gcc, we currently assume that we are using 17371 # Microsoft Visual C++. 17372 # hardcode_libdir_flag_spec is actually meaningless, as there is 17373 # no search path for DLLs. 17374 hardcode_libdir_flag_spec_GCJ=' ' 17375 allow_undefined_flag_GCJ=unsupported 17376 # Tell ltmain to make .lib files, not .a files. 17377 libext=lib 17378 # Tell ltmain to make .dll files, not .so files. 17379 shrext_cmds=".dll" 17380 # FIXME: Setting linknames here is a bad hack. 17381 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17382 # The linker will automatically build a .lib file if we build a DLL. 17383 old_archive_From_new_cmds_GCJ='true' 17384 # FIXME: Should let the user specify the lib program. 17385 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' 17386 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17387 enable_shared_with_static_runtimes_GCJ=yes 17388 ;; 17389 17390 darwin* | rhapsody*) 17391 case $host_os in 17392 rhapsody* | darwin1.[012]) 17393 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17394 ;; 17395 *) # Darwin 1.3 on 17396 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17397 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17398 else 17399 case ${MACOSX_DEPLOYMENT_TARGET} in 17400 10.[012]) 17401 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17402 ;; 17403 10.*) 17404 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17405 ;; 17406 esac 17407 fi 17408 ;; 17409 esac 17410 archive_cmds_need_lc_GCJ=no 17411 hardcode_direct_GCJ=no 17412 hardcode_automatic_GCJ=yes 17413 hardcode_shlibpath_var_GCJ=unsupported 17414 whole_archive_flag_spec_GCJ='' 17415 link_all_deplibs_GCJ=yes 17416 if test "$GCC" = yes ; then 17417 output_verbose_link_cmd='echo' 17418 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 17419 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17420 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17421 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}' 17422 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}' 17423 else 17424 case $cc_basename in 17425 xlc*) 17426 output_verbose_link_cmd='echo' 17427 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 17428 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17429 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17430 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17431 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}' 17432 ;; 17433 *) 17434 ld_shlibs_GCJ=no 17435 ;; 17436 esac 17437 fi 17438 ;; 17439 17440 dgux*) 17441 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17442 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17443 hardcode_shlibpath_var_GCJ=no 17444 ;; 17445 17446 freebsd1*) 17447 ld_shlibs_GCJ=no 17448 ;; 17449 17450 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17451 # support. Future versions do this automatically, but an explicit c++rt0.o 17452 # does not break anything, and helps significantly (at the cost of a little 17453 # extra space). 17454 freebsd2.2*) 17455 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17456 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17457 hardcode_direct_GCJ=yes 17458 hardcode_shlibpath_var_GCJ=no 17459 ;; 17460 17461 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17462 freebsd2*) 17463 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17464 hardcode_direct_GCJ=yes 17465 hardcode_minus_L_GCJ=yes 17466 hardcode_shlibpath_var_GCJ=no 17467 ;; 17468 17469 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17470 freebsd* | dragonfly*) 17471 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17472 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17473 hardcode_direct_GCJ=yes 17474 hardcode_shlibpath_var_GCJ=no 17475 ;; 17476 17477 hpux9*) 17478 if test "$GCC" = yes; then 17479 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' 17480 else 17481 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' 17482 fi 17483 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17484 hardcode_libdir_separator_GCJ=: 17485 hardcode_direct_GCJ=yes 17486 17487 # hardcode_minus_L: Not really in the search PATH, 17488 # but as the default location of the library. 17489 hardcode_minus_L_GCJ=yes 17490 export_dynamic_flag_spec_GCJ='${wl}-E' 17491 ;; 17492 17493 hpux10*) 17494 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17495 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17496 else 17497 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17498 fi 17499 if test "$with_gnu_ld" = no; then 17500 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17501 hardcode_libdir_separator_GCJ=: 17502 17503 hardcode_direct_GCJ=yes 17504 export_dynamic_flag_spec_GCJ='${wl}-E' 17505 17506 # hardcode_minus_L: Not really in the search PATH, 17507 # but as the default location of the library. 17508 hardcode_minus_L_GCJ=yes 17509 fi 17510 ;; 17511 17512 hpux11*) 17513 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17514 case $host_cpu in 17515 hppa*64*) 17516 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17517 ;; 17518 ia64*) 17519 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17520 ;; 17521 *) 17522 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17523 ;; 17524 esac 17525 else 17526 case $host_cpu in 17527 hppa*64*) 17528 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17529 ;; 17530 ia64*) 17531 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17532 ;; 17533 *) 17534 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17535 ;; 17536 esac 17537 fi 17538 if test "$with_gnu_ld" = no; then 17539 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17540 hardcode_libdir_separator_GCJ=: 17541 17542 case $host_cpu in 17543 hppa*64*|ia64*) 17544 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 17545 hardcode_direct_GCJ=no 17546 hardcode_shlibpath_var_GCJ=no 17547 ;; 17548 *) 17549 hardcode_direct_GCJ=yes 17550 export_dynamic_flag_spec_GCJ='${wl}-E' 17551 17552 # hardcode_minus_L: Not really in the search PATH, 17553 # but as the default location of the library. 17554 hardcode_minus_L_GCJ=yes 17555 ;; 17556 esac 17557 fi 17558 ;; 17559 17560 irix5* | irix6* | nonstopux*) 17561 if test "$GCC" = yes; then 17562 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' 17563 else 17564 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' 17565 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 17566 fi 17567 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17568 hardcode_libdir_separator_GCJ=: 17569 link_all_deplibs_GCJ=yes 17570 ;; 17571 17572 netbsd*) 17573 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17574 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17575 else 17576 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17577 fi 17578 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17579 hardcode_direct_GCJ=yes 17580 hardcode_shlibpath_var_GCJ=no 17581 ;; 17582 17583 newsos6) 17584 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17585 hardcode_direct_GCJ=yes 17586 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17587 hardcode_libdir_separator_GCJ=: 17588 hardcode_shlibpath_var_GCJ=no 17589 ;; 17590 17591 openbsd*) 17592 if test -f /usr/libexec/ld.so; then 17593 hardcode_direct_GCJ=yes 17594 hardcode_shlibpath_var_GCJ=no 17595 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17596 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17597 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 17598 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17599 export_dynamic_flag_spec_GCJ='${wl}-E' 17600 else 17601 case $host_os in 17602 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 17603 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17604 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17605 ;; 17606 *) 17607 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17608 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17609 ;; 17610 esac 17611 fi 17612 else 17613 ld_shlibs_GCJ=no 17614 fi 17615 ;; 17616 17617 os2*) 17618 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17619 hardcode_minus_L_GCJ=yes 17620 allow_undefined_flag_GCJ=unsupported 17621 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' 17622 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 17623 ;; 17624 17625 osf3*) 17626 if test "$GCC" = yes; then 17627 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17628 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' 17629 else 17630 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17631 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' 17632 fi 17633 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17634 hardcode_libdir_separator_GCJ=: 17635 ;; 17636 17637 osf4* | osf5*) # as osf3* with the addition of -msym flag 17638 if test "$GCC" = yes; then 17639 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17640 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' 17641 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17642 else 17643 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17644 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' 17645 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~ 17646 $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' 17647 17648 # Both c and cxx compiler support -rpath directly 17649 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 17650 fi 17651 hardcode_libdir_separator_GCJ=: 17652 ;; 17653 17654 solaris*) 17655 no_undefined_flag_GCJ=' -z text' 17656 if test "$GCC" = yes; then 17657 wlarc='${wl}' 17658 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17659 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17660 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 17661 else 17662 wlarc='' 17663 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17664 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17665 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17666 fi 17667 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17668 hardcode_shlibpath_var_GCJ=no 17669 case $host_os in 17670 solaris2.[0-5] | solaris2.[0-5].*) ;; 17671 *) 17672 # The compiler driver will combine and reorder linker options, 17673 # but understands `-z linker_flag'. GCC discards it without `$wl', 17674 # but is careful enough not to reorder. 17675 # Supported since Solaris 2.6 (maybe 2.5.1?) 17676 if test "$GCC" = yes; then 17677 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 17678 else 17679 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' 17680 fi 17681 ;; 17682 esac 17683 link_all_deplibs_GCJ=yes 17684 ;; 17685 17686 sunos4*) 17687 if test "x$host_vendor" = xsequent; then 17688 # Use $CC to link under sequent, because it throws in some extra .o 17689 # files that make .init and .fini sections work. 17690 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17691 else 17692 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17693 fi 17694 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17695 hardcode_direct_GCJ=yes 17696 hardcode_minus_L_GCJ=yes 17697 hardcode_shlibpath_var_GCJ=no 17698 ;; 17699 17700 sysv4) 17701 case $host_vendor in 17702 sni) 17703 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17704 hardcode_direct_GCJ=yes # is this really true??? 17705 ;; 17706 siemens) 17707 ## LD is ld it makes a PLAMLIB 17708 ## CC just makes a GrossModule. 17709 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17710 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 17711 hardcode_direct_GCJ=no 17712 ;; 17713 motorola) 17714 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17715 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 17716 ;; 17717 esac 17718 runpath_var='LD_RUN_PATH' 17719 hardcode_shlibpath_var_GCJ=no 17720 ;; 17721 17722 sysv4.3*) 17723 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17724 hardcode_shlibpath_var_GCJ=no 17725 export_dynamic_flag_spec_GCJ='-Bexport' 17726 ;; 17727 17728 sysv4*MP*) 17729 if test -d /usr/nec; then 17730 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17731 hardcode_shlibpath_var_GCJ=no 17732 runpath_var=LD_RUN_PATH 17733 hardcode_runpath_var=yes 17734 ld_shlibs_GCJ=yes 17735 fi 17736 ;; 17737 17738 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 17739 no_undefined_flag_GCJ='${wl}-z,text' 17740 archive_cmds_need_lc_GCJ=no 17741 hardcode_shlibpath_var_GCJ=no 17742 runpath_var='LD_RUN_PATH' 17743 17744 if test "$GCC" = yes; then 17745 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17746 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17747 else 17748 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17749 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17750 fi 17751 ;; 17752 17753 sysv5* | sco3.2v5* | sco5v6*) 17754 # Note: We can NOT use -z defs as we might desire, because we do not 17755 # link with -lc, and that would cause any symbols used from libc to 17756 # always be unresolved, which means just about no library would 17757 # ever link correctly. If we're not using GNU ld we use -z text 17758 # though, which does catch some bad symbols but isn't as heavy-handed 17759 # as -z defs. 17760 no_undefined_flag_GCJ='${wl}-z,text' 17761 allow_undefined_flag_GCJ='${wl}-z,nodefs' 17762 archive_cmds_need_lc_GCJ=no 17763 hardcode_shlibpath_var_GCJ=no 17764 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 17765 hardcode_libdir_separator_GCJ=':' 17766 link_all_deplibs_GCJ=yes 17767 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 17768 runpath_var='LD_RUN_PATH' 17769 17770 if test "$GCC" = yes; then 17771 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17772 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17773 else 17774 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17775 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17776 fi 17777 ;; 17778 17779 uts4*) 17780 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17781 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17782 hardcode_shlibpath_var_GCJ=no 17783 ;; 17784 17785 *) 17786 ld_shlibs_GCJ=no 17787 ;; 17788 esac 17789 fi 17790 17791{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 17792echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } 17793test "$ld_shlibs_GCJ" = no && can_build_shared=no 17794 17795# 17796# Do we need to explicitly link libc? 17797# 17798case "x$archive_cmds_need_lc_GCJ" in 17799x|xyes) 17800 # Assume -lc should be added 17801 archive_cmds_need_lc_GCJ=yes 17802 17803 if test "$enable_shared" = yes && test "$GCC" = yes; then 17804 case $archive_cmds_GCJ in 17805 *'~'*) 17806 # FIXME: we may have to deal with multi-command sequences. 17807 ;; 17808 '$CC '*) 17809 # Test whether the compiler implicitly links with -lc since on some 17810 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17811 # to ld, don't add -lc before -lgcc. 17812 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 17813echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 17814 $rm conftest* 17815 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17816 17817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17818 (eval $ac_compile) 2>&5 17819 ac_status=$? 17820 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17821 (exit $ac_status); } 2>conftest.err; then 17822 soname=conftest 17823 lib=conftest 17824 libobjs=conftest.$ac_objext 17825 deplibs= 17826 wl=$lt_prog_compiler_wl_GCJ 17827 pic_flag=$lt_prog_compiler_pic_GCJ 17828 compiler_flags=-v 17829 linker_flags=-v 17830 verstring= 17831 output_objdir=. 17832 libname=conftest 17833 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 17834 allow_undefined_flag_GCJ= 17835 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 17836 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 17837 ac_status=$? 17838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17839 (exit $ac_status); } 17840 then 17841 archive_cmds_need_lc_GCJ=no 17842 else 17843 archive_cmds_need_lc_GCJ=yes 17844 fi 17845 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 17846 else 17847 cat conftest.err 1>&5 17848 fi 17849 $rm conftest* 17850 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 17851echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } 17852 ;; 17853 esac 17854 fi 17855 ;; 17856esac 17857 17858{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 17859echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 17860library_names_spec= 17861libname_spec='lib$name' 17862soname_spec= 17863shrext_cmds=".so" 17864postinstall_cmds= 17865postuninstall_cmds= 17866finish_cmds= 17867finish_eval= 17868shlibpath_var= 17869shlibpath_overrides_runpath=unknown 17870version_type=none 17871dynamic_linker="$host_os ld.so" 17872sys_lib_dlsearch_path_spec="/lib /usr/lib" 17873 17874need_lib_prefix=unknown 17875hardcode_into_libs=no 17876 17877# when you set need_version to no, make sure it does not cause -set_version 17878# flags to be left without arguments 17879need_version=unknown 17880 17881case $host_os in 17882aix3*) 17883 version_type=linux 17884 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 17885 shlibpath_var=LIBPATH 17886 17887 # AIX 3 has no versioning support, so we append a major version to the name. 17888 soname_spec='${libname}${release}${shared_ext}$major' 17889 ;; 17890 17891aix4* | aix5*) 17892 version_type=linux 17893 need_lib_prefix=no 17894 need_version=no 17895 hardcode_into_libs=yes 17896 if test "$host_cpu" = ia64; then 17897 # AIX 5 supports IA64 17898 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 17899 shlibpath_var=LD_LIBRARY_PATH 17900 else 17901 # With GCC up to 2.95.x, collect2 would create an import file 17902 # for dependence libraries. The import file would start with 17903 # the line `#! .'. This would cause the generated library to 17904 # depend on `.', always an invalid library. This was fixed in 17905 # development snapshots of GCC prior to 3.0. 17906 case $host_os in 17907 aix4 | aix4.[01] | aix4.[01].*) 17908 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17909 echo ' yes ' 17910 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 17911 : 17912 else 17913 can_build_shared=no 17914 fi 17915 ;; 17916 esac 17917 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 17918 # soname into executable. Probably we can add versioning support to 17919 # collect2, so additional links can be useful in future. 17920 if test "$aix_use_runtimelinking" = yes; then 17921 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17922 # instead of lib<name>.a to let people know that these are not 17923 # typical AIX shared libraries. 17924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17925 else 17926 # We preserve .a as extension for shared libraries through AIX4.2 17927 # and later when we are not doing run time linking. 17928 library_names_spec='${libname}${release}.a $libname.a' 17929 soname_spec='${libname}${release}${shared_ext}$major' 17930 fi 17931 shlibpath_var=LIBPATH 17932 fi 17933 ;; 17934 17935amigaos*) 17936 library_names_spec='$libname.ixlibrary $libname.a' 17937 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17938 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' 17939 ;; 17940 17941beos*) 17942 library_names_spec='${libname}${shared_ext}' 17943 dynamic_linker="$host_os ld.so" 17944 shlibpath_var=LIBRARY_PATH 17945 ;; 17946 17947bsdi[45]*) 17948 version_type=linux 17949 need_version=no 17950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17951 soname_spec='${libname}${release}${shared_ext}$major' 17952 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17953 shlibpath_var=LD_LIBRARY_PATH 17954 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17955 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17956 # the default ld.so.conf also contains /usr/contrib/lib and 17957 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17958 # libtool to hard-code these into programs 17959 ;; 17960 17961cygwin* | mingw* | pw32*) 17962 version_type=windows 17963 shrext_cmds=".dll" 17964 need_version=no 17965 need_lib_prefix=no 17966 17967 case $GCC,$host_os in 17968 yes,cygwin* | yes,mingw* | yes,pw32*) 17969 library_names_spec='$libname.dll.a' 17970 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17971 postinstall_cmds='base_file=`basename \${file}`~ 17972 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 17973 dldir=$destdir/`dirname \$dlpath`~ 17974 test -d \$dldir || mkdir -p \$dldir~ 17975 $install_prog $dir/$dlname \$dldir/$dlname~ 17976 chmod a+x \$dldir/$dlname' 17977 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17978 dlpath=$dir/\$dldll~ 17979 $rm \$dlpath' 17980 shlibpath_overrides_runpath=yes 17981 17982 case $host_os in 17983 cygwin*) 17984 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17985 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17986 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 17987 ;; 17988 mingw*) 17989 # MinGW DLLs use traditional 'lib' prefix 17990 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17991 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17992 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 17993 # It is most probably a Windows format PATH printed by 17994 # mingw gcc, but we are running on Cygwin. Gcc prints its search 17995 # path with ; separators, and with drive letters. We can handle the 17996 # drive letters (cygwin fileutils understands them), so leave them, 17997 # especially as we might pass files found there to a mingw objdump, 17998 # which wouldn't understand a cygwinified path. Ahh. 17999 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18000 else 18001 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18002 fi 18003 ;; 18004 pw32*) 18005 # pw32 DLLs use 'pw' prefix rather than 'lib' 18006 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18007 ;; 18008 esac 18009 ;; 18010 18011 *) 18012 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 18013 ;; 18014 esac 18015 dynamic_linker='Win32 ld.exe' 18016 # FIXME: first we should search . and the directory the executable is in 18017 shlibpath_var=PATH 18018 ;; 18019 18020darwin* | rhapsody*) 18021 dynamic_linker="$host_os dyld" 18022 version_type=darwin 18023 need_lib_prefix=no 18024 need_version=no 18025 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 18026 soname_spec='${libname}${release}${major}$shared_ext' 18027 shlibpath_overrides_runpath=yes 18028 shlibpath_var=DYLD_LIBRARY_PATH 18029 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18030 18031 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18032 ;; 18033 18034dgux*) 18035 version_type=linux 18036 need_lib_prefix=no 18037 need_version=no 18038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 18039 soname_spec='${libname}${release}${shared_ext}$major' 18040 shlibpath_var=LD_LIBRARY_PATH 18041 ;; 18042 18043freebsd1*) 18044 dynamic_linker=no 18045 ;; 18046 18047freebsd* | dragonfly*) 18048 # DragonFly does not have aout. When/if they implement a new 18049 # versioning mechanism, adjust this. 18050 if test -x /usr/bin/objformat; then 18051 objformat=`/usr/bin/objformat` 18052 else 18053 case $host_os in 18054 freebsd[123]*) objformat=aout ;; 18055 *) objformat=elf ;; 18056 esac 18057 fi 18058 version_type=freebsd-$objformat 18059 case $version_type in 18060 freebsd-elf*) 18061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18062 need_version=no 18063 need_lib_prefix=no 18064 ;; 18065 freebsd-*) 18066 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18067 need_version=yes 18068 ;; 18069 esac 18070 shlibpath_var=LD_LIBRARY_PATH 18071 case $host_os in 18072 freebsd2*) 18073 shlibpath_overrides_runpath=yes 18074 ;; 18075 freebsd3.[01]* | freebsdelf3.[01]*) 18076 shlibpath_overrides_runpath=yes 18077 hardcode_into_libs=yes 18078 ;; 18079 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18080 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18081 shlibpath_overrides_runpath=no 18082 hardcode_into_libs=yes 18083 ;; 18084 *) # from 4.6 on, and DragonFly 18085 shlibpath_overrides_runpath=yes 18086 hardcode_into_libs=yes 18087 ;; 18088 esac 18089 ;; 18090 18091gnu*) 18092 version_type=linux 18093 need_lib_prefix=no 18094 need_version=no 18095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18096 soname_spec='${libname}${release}${shared_ext}$major' 18097 shlibpath_var=LD_LIBRARY_PATH 18098 hardcode_into_libs=yes 18099 ;; 18100 18101hpux9* | hpux10* | hpux11*) 18102 # Give a soname corresponding to the major version so that dld.sl refuses to 18103 # link against other versions. 18104 version_type=sunos 18105 need_lib_prefix=no 18106 need_version=no 18107 case $host_cpu in 18108 ia64*) 18109 shrext_cmds='.so' 18110 hardcode_into_libs=yes 18111 dynamic_linker="$host_os dld.so" 18112 shlibpath_var=LD_LIBRARY_PATH 18113 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18115 soname_spec='${libname}${release}${shared_ext}$major' 18116 if test "X$HPUX_IA64_MODE" = X32; then 18117 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18118 else 18119 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18120 fi 18121 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18122 ;; 18123 hppa*64*) 18124 shrext_cmds='.sl' 18125 hardcode_into_libs=yes 18126 dynamic_linker="$host_os dld.sl" 18127 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18128 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18130 soname_spec='${libname}${release}${shared_ext}$major' 18131 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18132 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18133 ;; 18134 *) 18135 shrext_cmds='.sl' 18136 dynamic_linker="$host_os dld.sl" 18137 shlibpath_var=SHLIB_PATH 18138 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18140 soname_spec='${libname}${release}${shared_ext}$major' 18141 ;; 18142 esac 18143 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18144 postinstall_cmds='chmod 555 $lib' 18145 ;; 18146 18147interix[3-9]*) 18148 version_type=linux 18149 need_lib_prefix=no 18150 need_version=no 18151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18152 soname_spec='${libname}${release}${shared_ext}$major' 18153 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18154 shlibpath_var=LD_LIBRARY_PATH 18155 shlibpath_overrides_runpath=no 18156 hardcode_into_libs=yes 18157 ;; 18158 18159irix5* | irix6* | nonstopux*) 18160 case $host_os in 18161 nonstopux*) version_type=nonstopux ;; 18162 *) 18163 if test "$lt_cv_prog_gnu_ld" = yes; then 18164 version_type=linux 18165 else 18166 version_type=irix 18167 fi ;; 18168 esac 18169 need_lib_prefix=no 18170 need_version=no 18171 soname_spec='${libname}${release}${shared_ext}$major' 18172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18173 case $host_os in 18174 irix5* | nonstopux*) 18175 libsuff= shlibsuff= 18176 ;; 18177 *) 18178 case $LD in # libtool.m4 will add one of these switches to LD 18179 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18180 libsuff= shlibsuff= libmagic=32-bit;; 18181 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18182 libsuff=32 shlibsuff=N32 libmagic=N32;; 18183 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18184 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18185 *) libsuff= shlibsuff= libmagic=never-match;; 18186 esac 18187 ;; 18188 esac 18189 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18190 shlibpath_overrides_runpath=no 18191 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18192 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18193 hardcode_into_libs=yes 18194 ;; 18195 18196# No shared lib support for Linux oldld, aout, or coff. 18197linux*oldld* | linux*aout* | linux*coff*) 18198 dynamic_linker=no 18199 ;; 18200 18201# This must be Linux ELF. 18202linux* | k*bsd*-gnu) 18203 version_type=linux 18204 need_lib_prefix=no 18205 need_version=no 18206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18207 soname_spec='${libname}${release}${shared_ext}$major' 18208 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18209 shlibpath_var=LD_LIBRARY_PATH 18210 shlibpath_overrides_runpath=no 18211 # This implies no fast_install, which is unacceptable. 18212 # Some rework will be needed to allow for fast_install 18213 # before this can be enabled. 18214 hardcode_into_libs=yes 18215 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18216 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18217 18218 # Append ld.so.conf contents to the search path 18219 if test -f /etc/ld.so.conf; then 18220 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 18221 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 18222 fi 18223 18224 # We used to test for /lib/ld.so.1 and disable shared libraries on 18225 # powerpc, because MkLinux only supported shared libraries with the 18226 # GNU dynamic linker. Since this was broken with cross compilers, 18227 # most powerpc-linux boxes support dynamic linking these days and 18228 # people can always --disable-shared, the test was removed, and we 18229 # assume the GNU/Linux dynamic linker is in use. 18230 dynamic_linker='GNU/Linux ld.so' 18231 ;; 18232 18233netbsd*) 18234 version_type=sunos 18235 need_lib_prefix=no 18236 need_version=no 18237 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18239 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18240 dynamic_linker='NetBSD (a.out) ld.so' 18241 else 18242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18243 soname_spec='${libname}${release}${shared_ext}$major' 18244 dynamic_linker='NetBSD ld.elf_so' 18245 fi 18246 shlibpath_var=LD_LIBRARY_PATH 18247 shlibpath_overrides_runpath=yes 18248 hardcode_into_libs=yes 18249 ;; 18250 18251newsos6) 18252 version_type=linux 18253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18254 shlibpath_var=LD_LIBRARY_PATH 18255 shlibpath_overrides_runpath=yes 18256 ;; 18257 18258nto-qnx*) 18259 version_type=linux 18260 need_lib_prefix=no 18261 need_version=no 18262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18263 soname_spec='${libname}${release}${shared_ext}$major' 18264 shlibpath_var=LD_LIBRARY_PATH 18265 shlibpath_overrides_runpath=yes 18266 ;; 18267 18268openbsd*) 18269 version_type=sunos 18270 sys_lib_dlsearch_path_spec="/usr/lib" 18271 need_lib_prefix=no 18272 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18273 case $host_os in 18274 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18275 *) need_version=no ;; 18276 esac 18277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18278 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18279 shlibpath_var=LD_LIBRARY_PATH 18280 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18281 case $host_os in 18282 openbsd2.[89] | openbsd2.[89].*) 18283 shlibpath_overrides_runpath=no 18284 ;; 18285 *) 18286 shlibpath_overrides_runpath=yes 18287 ;; 18288 esac 18289 else 18290 shlibpath_overrides_runpath=yes 18291 fi 18292 ;; 18293 18294os2*) 18295 libname_spec='$name' 18296 shrext_cmds=".dll" 18297 need_lib_prefix=no 18298 library_names_spec='$libname${shared_ext} $libname.a' 18299 dynamic_linker='OS/2 ld.exe' 18300 shlibpath_var=LIBPATH 18301 ;; 18302 18303osf3* | osf4* | osf5*) 18304 version_type=osf 18305 need_lib_prefix=no 18306 need_version=no 18307 soname_spec='${libname}${release}${shared_ext}$major' 18308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18309 shlibpath_var=LD_LIBRARY_PATH 18310 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18311 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18312 ;; 18313 18314rdos*) 18315 dynamic_linker=no 18316 ;; 18317 18318solaris*) 18319 version_type=linux 18320 need_lib_prefix=no 18321 need_version=no 18322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18323 soname_spec='${libname}${release}${shared_ext}$major' 18324 shlibpath_var=LD_LIBRARY_PATH 18325 shlibpath_overrides_runpath=yes 18326 hardcode_into_libs=yes 18327 # ldd complains unless libraries are executable 18328 postinstall_cmds='chmod +x $lib' 18329 ;; 18330 18331sunos4*) 18332 version_type=sunos 18333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18334 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18335 shlibpath_var=LD_LIBRARY_PATH 18336 shlibpath_overrides_runpath=yes 18337 if test "$with_gnu_ld" = yes; then 18338 need_lib_prefix=no 18339 fi 18340 need_version=yes 18341 ;; 18342 18343sysv4 | sysv4.3*) 18344 version_type=linux 18345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18346 soname_spec='${libname}${release}${shared_ext}$major' 18347 shlibpath_var=LD_LIBRARY_PATH 18348 case $host_vendor in 18349 sni) 18350 shlibpath_overrides_runpath=no 18351 need_lib_prefix=no 18352 export_dynamic_flag_spec='${wl}-Blargedynsym' 18353 runpath_var=LD_RUN_PATH 18354 ;; 18355 siemens) 18356 need_lib_prefix=no 18357 ;; 18358 motorola) 18359 need_lib_prefix=no 18360 need_version=no 18361 shlibpath_overrides_runpath=no 18362 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18363 ;; 18364 esac 18365 ;; 18366 18367sysv4*MP*) 18368 if test -d /usr/nec ;then 18369 version_type=linux 18370 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18371 soname_spec='$libname${shared_ext}.$major' 18372 shlibpath_var=LD_LIBRARY_PATH 18373 fi 18374 ;; 18375 18376sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18377 version_type=freebsd-elf 18378 need_lib_prefix=no 18379 need_version=no 18380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18381 soname_spec='${libname}${release}${shared_ext}$major' 18382 shlibpath_var=LD_LIBRARY_PATH 18383 hardcode_into_libs=yes 18384 if test "$with_gnu_ld" = yes; then 18385 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18386 shlibpath_overrides_runpath=no 18387 else 18388 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18389 shlibpath_overrides_runpath=yes 18390 case $host_os in 18391 sco3.2v5*) 18392 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18393 ;; 18394 esac 18395 fi 18396 sys_lib_dlsearch_path_spec='/usr/lib' 18397 ;; 18398 18399uts4*) 18400 version_type=linux 18401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18402 soname_spec='${libname}${release}${shared_ext}$major' 18403 shlibpath_var=LD_LIBRARY_PATH 18404 ;; 18405 18406*) 18407 dynamic_linker=no 18408 ;; 18409esac 18410{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18411echo "${ECHO_T}$dynamic_linker" >&6; } 18412test "$dynamic_linker" = no && can_build_shared=no 18413 18414variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18415if test "$GCC" = yes; then 18416 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18417fi 18418 18419{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18420echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 18421hardcode_action_GCJ= 18422if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18423 test -n "$runpath_var_GCJ" || \ 18424 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 18425 18426 # We can hardcode non-existant directories. 18427 if test "$hardcode_direct_GCJ" != no && 18428 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18429 # have to relink, otherwise we might link with an installed library 18430 # when we should be linking with a yet-to-be-installed one 18431 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 18432 test "$hardcode_minus_L_GCJ" != no; then 18433 # Linking always hardcodes the temporary library directory. 18434 hardcode_action_GCJ=relink 18435 else 18436 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18437 hardcode_action_GCJ=immediate 18438 fi 18439else 18440 # We cannot hardcode anything, or else we can only hardcode existing 18441 # directories. 18442 hardcode_action_GCJ=unsupported 18443fi 18444{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 18445echo "${ECHO_T}$hardcode_action_GCJ" >&6; } 18446 18447if test "$hardcode_action_GCJ" = relink; then 18448 # Fast installation is not supported 18449 enable_fast_install=no 18450elif test "$shlibpath_overrides_runpath" = yes || 18451 test "$enable_shared" = no; then 18452 # Fast installation is not necessary 18453 enable_fast_install=needless 18454fi 18455 18456 18457# The else clause should only fire when bootstrapping the 18458# libtool distribution, otherwise you forgot to ship ltmain.sh 18459# with your package, and you will get complaints that there are 18460# no rules to generate ltmain.sh. 18461if test -f "$ltmain"; then 18462 # See if we are running on zsh, and set the options which allow our commands through 18463 # without removal of \ escapes. 18464 if test -n "${ZSH_VERSION+set}" ; then 18465 setopt NO_GLOB_SUBST 18466 fi 18467 # Now quote all the things that may contain metacharacters while being 18468 # careful not to overquote the AC_SUBSTed values. We take copies of the 18469 # variables and quote the copies for generation of the libtool script. 18470 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18471 SED SHELL STRIP \ 18472 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18473 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18474 deplibs_check_method reload_flag reload_cmds need_locks \ 18475 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18476 lt_cv_sys_global_symbol_to_c_name_address \ 18477 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18478 old_postinstall_cmds old_postuninstall_cmds \ 18479 compiler_GCJ \ 18480 CC_GCJ \ 18481 LD_GCJ \ 18482 lt_prog_compiler_wl_GCJ \ 18483 lt_prog_compiler_pic_GCJ \ 18484 lt_prog_compiler_static_GCJ \ 18485 lt_prog_compiler_no_builtin_flag_GCJ \ 18486 export_dynamic_flag_spec_GCJ \ 18487 thread_safe_flag_spec_GCJ \ 18488 whole_archive_flag_spec_GCJ \ 18489 enable_shared_with_static_runtimes_GCJ \ 18490 old_archive_cmds_GCJ \ 18491 old_archive_from_new_cmds_GCJ \ 18492 predep_objects_GCJ \ 18493 postdep_objects_GCJ \ 18494 predeps_GCJ \ 18495 postdeps_GCJ \ 18496 compiler_lib_search_path_GCJ \ 18497 archive_cmds_GCJ \ 18498 archive_expsym_cmds_GCJ \ 18499 postinstall_cmds_GCJ \ 18500 postuninstall_cmds_GCJ \ 18501 old_archive_from_expsyms_cmds_GCJ \ 18502 allow_undefined_flag_GCJ \ 18503 no_undefined_flag_GCJ \ 18504 export_symbols_cmds_GCJ \ 18505 hardcode_libdir_flag_spec_GCJ \ 18506 hardcode_libdir_flag_spec_ld_GCJ \ 18507 hardcode_libdir_separator_GCJ \ 18508 hardcode_automatic_GCJ \ 18509 module_cmds_GCJ \ 18510 module_expsym_cmds_GCJ \ 18511 lt_cv_prog_compiler_c_o_GCJ \ 18512 fix_srcfile_path_GCJ \ 18513 exclude_expsyms_GCJ \ 18514 include_expsyms_GCJ; do 18515 18516 case $var in 18517 old_archive_cmds_GCJ | \ 18518 old_archive_from_new_cmds_GCJ | \ 18519 archive_cmds_GCJ | \ 18520 archive_expsym_cmds_GCJ | \ 18521 module_cmds_GCJ | \ 18522 module_expsym_cmds_GCJ | \ 18523 old_archive_from_expsyms_cmds_GCJ | \ 18524 export_symbols_cmds_GCJ | \ 18525 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18526 postinstall_cmds | postuninstall_cmds | \ 18527 old_postinstall_cmds | old_postuninstall_cmds | \ 18528 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18529 # Double-quote double-evaled strings. 18530 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18531 ;; 18532 *) 18533 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18534 ;; 18535 esac 18536 done 18537 18538 case $lt_echo in 18539 *'\$0 --fallback-echo"') 18540 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18541 ;; 18542 esac 18543 18544cfgfile="$ofile" 18545 18546 cat <<__EOF__ >> "$cfgfile" 18547# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18548 18549# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18550 18551# Shell to use when invoking shell scripts. 18552SHELL=$lt_SHELL 18553 18554# Whether or not to build shared libraries. 18555build_libtool_libs=$enable_shared 18556 18557# Whether or not to build static libraries. 18558build_old_libs=$enable_static 18559 18560# Whether or not to add -lc for building shared libraries. 18561build_libtool_need_lc=$archive_cmds_need_lc_GCJ 18562 18563# Whether or not to disallow shared libs when runtime libs are static 18564allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 18565 18566# Whether or not to optimize for fast installation. 18567fast_install=$enable_fast_install 18568 18569# The host system. 18570host_alias=$host_alias 18571host=$host 18572host_os=$host_os 18573 18574# The build system. 18575build_alias=$build_alias 18576build=$build 18577build_os=$build_os 18578 18579# An echo program that does not interpret backslashes. 18580echo=$lt_echo 18581 18582# The archiver. 18583AR=$lt_AR 18584AR_FLAGS=$lt_AR_FLAGS 18585 18586# A C compiler. 18587LTCC=$lt_LTCC 18588 18589# LTCC compiler flags. 18590LTCFLAGS=$lt_LTCFLAGS 18591 18592# A language-specific compiler. 18593CC=$lt_compiler_GCJ 18594 18595# Is the compiler the GNU C compiler? 18596with_gcc=$GCC_GCJ 18597 18598# An ERE matcher. 18599EGREP=$lt_EGREP 18600 18601# The linker used to build libraries. 18602LD=$lt_LD_GCJ 18603 18604# Whether we need hard or soft links. 18605LN_S=$lt_LN_S 18606 18607# A BSD-compatible nm program. 18608NM=$lt_NM 18609 18610# A symbol stripping program 18611STRIP=$lt_STRIP 18612 18613# Used to examine libraries when file_magic_cmd begins "file" 18614MAGIC_CMD=$MAGIC_CMD 18615 18616# Used on cygwin: DLL creation program. 18617DLLTOOL="$DLLTOOL" 18618 18619# Used on cygwin: object dumper. 18620OBJDUMP="$OBJDUMP" 18621 18622# Used on cygwin: assembler. 18623AS="$AS" 18624 18625# The name of the directory that contains temporary libtool files. 18626objdir=$objdir 18627 18628# How to create reloadable object files. 18629reload_flag=$lt_reload_flag 18630reload_cmds=$lt_reload_cmds 18631 18632# How to pass a linker flag through the compiler. 18633wl=$lt_lt_prog_compiler_wl_GCJ 18634 18635# Object file suffix (normally "o"). 18636objext="$ac_objext" 18637 18638# Old archive suffix (normally "a"). 18639libext="$libext" 18640 18641# Shared library suffix (normally ".so"). 18642shrext_cmds='$shrext_cmds' 18643 18644# Executable file suffix (normally ""). 18645exeext="$exeext" 18646 18647# Additional compiler flags for building library objects. 18648pic_flag=$lt_lt_prog_compiler_pic_GCJ 18649pic_mode=$pic_mode 18650 18651# What is the maximum length of a command? 18652max_cmd_len=$lt_cv_sys_max_cmd_len 18653 18654# Does compiler simultaneously support -c and -o options? 18655compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 18656 18657# Must we lock files when doing compilation? 18658need_locks=$lt_need_locks 18659 18660# Do we need the lib prefix for modules? 18661need_lib_prefix=$need_lib_prefix 18662 18663# Do we need a version for libraries? 18664need_version=$need_version 18665 18666# Whether dlopen is supported. 18667dlopen_support=$enable_dlopen 18668 18669# Whether dlopen of programs is supported. 18670dlopen_self=$enable_dlopen_self 18671 18672# Whether dlopen of statically linked programs is supported. 18673dlopen_self_static=$enable_dlopen_self_static 18674 18675# Compiler flag to prevent dynamic linking. 18676link_static_flag=$lt_lt_prog_compiler_static_GCJ 18677 18678# Compiler flag to turn off builtin functions. 18679no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 18680 18681# Compiler flag to allow reflexive dlopens. 18682export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 18683 18684# Compiler flag to generate shared objects directly from archives. 18685whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 18686 18687# Compiler flag to generate thread-safe objects. 18688thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 18689 18690# Library versioning type. 18691version_type=$version_type 18692 18693# Format of library name prefix. 18694libname_spec=$lt_libname_spec 18695 18696# List of archive names. First name is the real one, the rest are links. 18697# The last name is the one that the linker finds with -lNAME. 18698library_names_spec=$lt_library_names_spec 18699 18700# The coded name of the library, if different from the real name. 18701soname_spec=$lt_soname_spec 18702 18703# Commands used to build and install an old-style archive. 18704RANLIB=$lt_RANLIB 18705old_archive_cmds=$lt_old_archive_cmds_GCJ 18706old_postinstall_cmds=$lt_old_postinstall_cmds 18707old_postuninstall_cmds=$lt_old_postuninstall_cmds 18708 18709# Create an old-style archive from a shared archive. 18710old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 18711 18712# Create a temporary old-style archive to link instead of a shared archive. 18713old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 18714 18715# Commands used to build and install a shared archive. 18716archive_cmds=$lt_archive_cmds_GCJ 18717archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 18718postinstall_cmds=$lt_postinstall_cmds 18719postuninstall_cmds=$lt_postuninstall_cmds 18720 18721# Commands used to build a loadable module (assumed same as above if empty) 18722module_cmds=$lt_module_cmds_GCJ 18723module_expsym_cmds=$lt_module_expsym_cmds_GCJ 18724 18725# Commands to strip libraries. 18726old_striplib=$lt_old_striplib 18727striplib=$lt_striplib 18728 18729# Dependencies to place before the objects being linked to create a 18730# shared library. 18731predep_objects=$lt_predep_objects_GCJ 18732 18733# Dependencies to place after the objects being linked to create a 18734# shared library. 18735postdep_objects=$lt_postdep_objects_GCJ 18736 18737# Dependencies to place before the objects being linked to create a 18738# shared library. 18739predeps=$lt_predeps_GCJ 18740 18741# Dependencies to place after the objects being linked to create a 18742# shared library. 18743postdeps=$lt_postdeps_GCJ 18744 18745# The library search path used internally by the compiler when linking 18746# a shared library. 18747compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 18748 18749# Method to check whether dependent libraries are shared objects. 18750deplibs_check_method=$lt_deplibs_check_method 18751 18752# Command to use when deplibs_check_method == file_magic. 18753file_magic_cmd=$lt_file_magic_cmd 18754 18755# Flag that allows shared libraries with undefined symbols to be built. 18756allow_undefined_flag=$lt_allow_undefined_flag_GCJ 18757 18758# Flag that forces no undefined symbols. 18759no_undefined_flag=$lt_no_undefined_flag_GCJ 18760 18761# Commands used to finish a libtool library installation in a directory. 18762finish_cmds=$lt_finish_cmds 18763 18764# Same as above, but a single script fragment to be evaled but not shown. 18765finish_eval=$lt_finish_eval 18766 18767# Take the output of nm and produce a listing of raw symbols and C names. 18768global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18769 18770# Transform the output of nm in a proper C declaration 18771global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18772 18773# Transform the output of nm in a C name address pair 18774global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18775 18776# This is the shared library runtime path variable. 18777runpath_var=$runpath_var 18778 18779# This is the shared library path variable. 18780shlibpath_var=$shlibpath_var 18781 18782# Is shlibpath searched before the hard-coded library search path? 18783shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18784 18785# How to hardcode a shared library path into an executable. 18786hardcode_action=$hardcode_action_GCJ 18787 18788# Whether we should hardcode library paths into libraries. 18789hardcode_into_libs=$hardcode_into_libs 18790 18791# Flag to hardcode \$libdir into a binary during linking. 18792# This must work even if \$libdir does not exist. 18793hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 18794 18795# If ld is used when linking, flag to hardcode \$libdir into 18796# a binary during linking. This must work even if \$libdir does 18797# not exist. 18798hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 18799 18800# Whether we need a single -rpath flag with a separated argument. 18801hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 18802 18803# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18804# resulting binary. 18805hardcode_direct=$hardcode_direct_GCJ 18806 18807# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18808# resulting binary. 18809hardcode_minus_L=$hardcode_minus_L_GCJ 18810 18811# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18812# the resulting binary. 18813hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 18814 18815# Set to yes if building a shared library automatically hardcodes DIR into the library 18816# and all subsequent libraries and executables linked against it. 18817hardcode_automatic=$hardcode_automatic_GCJ 18818 18819# Variables whose values should be saved in libtool wrapper scripts and 18820# restored at relink time. 18821variables_saved_for_relink="$variables_saved_for_relink" 18822 18823# Whether libtool must link a program against all its dependency libraries. 18824link_all_deplibs=$link_all_deplibs_GCJ 18825 18826# Compile-time system search path for libraries 18827sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18828 18829# Run-time system search path for libraries 18830sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18831 18832# Fix the shell variable \$srcfile for the compiler. 18833fix_srcfile_path=$lt_fix_srcfile_path 18834 18835# Set to yes if exported symbols are required. 18836always_export_symbols=$always_export_symbols_GCJ 18837 18838# The commands to list exported symbols. 18839export_symbols_cmds=$lt_export_symbols_cmds_GCJ 18840 18841# The commands to extract the exported symbol list from a shared archive. 18842extract_expsyms_cmds=$lt_extract_expsyms_cmds 18843 18844# Symbols that should not be listed in the preloaded symbols. 18845exclude_expsyms=$lt_exclude_expsyms_GCJ 18846 18847# Symbols that must always be exported. 18848include_expsyms=$lt_include_expsyms_GCJ 18849 18850# ### END LIBTOOL TAG CONFIG: $tagname 18851 18852__EOF__ 18853 18854 18855else 18856 # If there is no Makefile yet, we rely on a make rule to execute 18857 # `config.status --recheck' to rerun these tests and create the 18858 # libtool script then. 18859 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18860 if test -f "$ltmain_in"; then 18861 test -f Makefile && make "$ltmain" 18862 fi 18863fi 18864 18865 18866ac_ext=c 18867ac_cpp='$CPP $CPPFLAGS' 18868ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18869ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18870ac_compiler_gnu=$ac_cv_c_compiler_gnu 18871 18872CC="$lt_save_CC" 18873 18874 else 18875 tagname="" 18876 fi 18877 ;; 18878 18879 RC) 18880 18881 18882# Source file extension for RC test sources. 18883ac_ext=rc 18884 18885# Object file extension for compiled RC test sources. 18886objext=o 18887objext_RC=$objext 18888 18889# Code to be used in simple compile tests 18890lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 18891 18892# Code to be used in simple link tests 18893lt_simple_link_test_code="$lt_simple_compile_test_code" 18894 18895# ltmain only uses $CC for tagged configurations so make sure $CC is set. 18896 18897# If no C compiler was specified, use CC. 18898LTCC=${LTCC-"$CC"} 18899 18900# If no C compiler flags were specified, use CFLAGS. 18901LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 18902 18903# Allow CC to be a program name with arguments. 18904compiler=$CC 18905 18906 18907# save warnings/boilerplate of simple test code 18908ac_outfile=conftest.$ac_objext 18909echo "$lt_simple_compile_test_code" >conftest.$ac_ext 18910eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18911_lt_compiler_boilerplate=`cat conftest.err` 18912$rm conftest* 18913 18914ac_outfile=conftest.$ac_objext 18915echo "$lt_simple_link_test_code" >conftest.$ac_ext 18916eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18917_lt_linker_boilerplate=`cat conftest.err` 18918$rm conftest* 18919 18920 18921# Allow CC to be a program name with arguments. 18922lt_save_CC="$CC" 18923CC=${RC-"windres"} 18924compiler=$CC 18925compiler_RC=$CC 18926for cc_temp in $compiler""; do 18927 case $cc_temp in 18928 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18929 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18930 \-*) ;; 18931 *) break;; 18932 esac 18933done 18934cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 18935 18936lt_cv_prog_compiler_c_o_RC=yes 18937 18938# The else clause should only fire when bootstrapping the 18939# libtool distribution, otherwise you forgot to ship ltmain.sh 18940# with your package, and you will get complaints that there are 18941# no rules to generate ltmain.sh. 18942if test -f "$ltmain"; then 18943 # See if we are running on zsh, and set the options which allow our commands through 18944 # without removal of \ escapes. 18945 if test -n "${ZSH_VERSION+set}" ; then 18946 setopt NO_GLOB_SUBST 18947 fi 18948 # Now quote all the things that may contain metacharacters while being 18949 # careful not to overquote the AC_SUBSTed values. We take copies of the 18950 # variables and quote the copies for generation of the libtool script. 18951 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18952 SED SHELL STRIP \ 18953 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18954 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18955 deplibs_check_method reload_flag reload_cmds need_locks \ 18956 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18957 lt_cv_sys_global_symbol_to_c_name_address \ 18958 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18959 old_postinstall_cmds old_postuninstall_cmds \ 18960 compiler_RC \ 18961 CC_RC \ 18962 LD_RC \ 18963 lt_prog_compiler_wl_RC \ 18964 lt_prog_compiler_pic_RC \ 18965 lt_prog_compiler_static_RC \ 18966 lt_prog_compiler_no_builtin_flag_RC \ 18967 export_dynamic_flag_spec_RC \ 18968 thread_safe_flag_spec_RC \ 18969 whole_archive_flag_spec_RC \ 18970 enable_shared_with_static_runtimes_RC \ 18971 old_archive_cmds_RC \ 18972 old_archive_from_new_cmds_RC \ 18973 predep_objects_RC \ 18974 postdep_objects_RC \ 18975 predeps_RC \ 18976 postdeps_RC \ 18977 compiler_lib_search_path_RC \ 18978 archive_cmds_RC \ 18979 archive_expsym_cmds_RC \ 18980 postinstall_cmds_RC \ 18981 postuninstall_cmds_RC \ 18982 old_archive_from_expsyms_cmds_RC \ 18983 allow_undefined_flag_RC \ 18984 no_undefined_flag_RC \ 18985 export_symbols_cmds_RC \ 18986 hardcode_libdir_flag_spec_RC \ 18987 hardcode_libdir_flag_spec_ld_RC \ 18988 hardcode_libdir_separator_RC \ 18989 hardcode_automatic_RC \ 18990 module_cmds_RC \ 18991 module_expsym_cmds_RC \ 18992 lt_cv_prog_compiler_c_o_RC \ 18993 fix_srcfile_path_RC \ 18994 exclude_expsyms_RC \ 18995 include_expsyms_RC; do 18996 18997 case $var in 18998 old_archive_cmds_RC | \ 18999 old_archive_from_new_cmds_RC | \ 19000 archive_cmds_RC | \ 19001 archive_expsym_cmds_RC | \ 19002 module_cmds_RC | \ 19003 module_expsym_cmds_RC | \ 19004 old_archive_from_expsyms_cmds_RC | \ 19005 export_symbols_cmds_RC | \ 19006 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19007 postinstall_cmds | postuninstall_cmds | \ 19008 old_postinstall_cmds | old_postuninstall_cmds | \ 19009 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19010 # Double-quote double-evaled strings. 19011 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19012 ;; 19013 *) 19014 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19015 ;; 19016 esac 19017 done 19018 19019 case $lt_echo in 19020 *'\$0 --fallback-echo"') 19021 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19022 ;; 19023 esac 19024 19025cfgfile="$ofile" 19026 19027 cat <<__EOF__ >> "$cfgfile" 19028# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19029 19030# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19031 19032# Shell to use when invoking shell scripts. 19033SHELL=$lt_SHELL 19034 19035# Whether or not to build shared libraries. 19036build_libtool_libs=$enable_shared 19037 19038# Whether or not to build static libraries. 19039build_old_libs=$enable_static 19040 19041# Whether or not to add -lc for building shared libraries. 19042build_libtool_need_lc=$archive_cmds_need_lc_RC 19043 19044# Whether or not to disallow shared libs when runtime libs are static 19045allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19046 19047# Whether or not to optimize for fast installation. 19048fast_install=$enable_fast_install 19049 19050# The host system. 19051host_alias=$host_alias 19052host=$host 19053host_os=$host_os 19054 19055# The build system. 19056build_alias=$build_alias 19057build=$build 19058build_os=$build_os 19059 19060# An echo program that does not interpret backslashes. 19061echo=$lt_echo 19062 19063# The archiver. 19064AR=$lt_AR 19065AR_FLAGS=$lt_AR_FLAGS 19066 19067# A C compiler. 19068LTCC=$lt_LTCC 19069 19070# LTCC compiler flags. 19071LTCFLAGS=$lt_LTCFLAGS 19072 19073# A language-specific compiler. 19074CC=$lt_compiler_RC 19075 19076# Is the compiler the GNU C compiler? 19077with_gcc=$GCC_RC 19078 19079# An ERE matcher. 19080EGREP=$lt_EGREP 19081 19082# The linker used to build libraries. 19083LD=$lt_LD_RC 19084 19085# Whether we need hard or soft links. 19086LN_S=$lt_LN_S 19087 19088# A BSD-compatible nm program. 19089NM=$lt_NM 19090 19091# A symbol stripping program 19092STRIP=$lt_STRIP 19093 19094# Used to examine libraries when file_magic_cmd begins "file" 19095MAGIC_CMD=$MAGIC_CMD 19096 19097# Used on cygwin: DLL creation program. 19098DLLTOOL="$DLLTOOL" 19099 19100# Used on cygwin: object dumper. 19101OBJDUMP="$OBJDUMP" 19102 19103# Used on cygwin: assembler. 19104AS="$AS" 19105 19106# The name of the directory that contains temporary libtool files. 19107objdir=$objdir 19108 19109# How to create reloadable object files. 19110reload_flag=$lt_reload_flag 19111reload_cmds=$lt_reload_cmds 19112 19113# How to pass a linker flag through the compiler. 19114wl=$lt_lt_prog_compiler_wl_RC 19115 19116# Object file suffix (normally "o"). 19117objext="$ac_objext" 19118 19119# Old archive suffix (normally "a"). 19120libext="$libext" 19121 19122# Shared library suffix (normally ".so"). 19123shrext_cmds='$shrext_cmds' 19124 19125# Executable file suffix (normally ""). 19126exeext="$exeext" 19127 19128# Additional compiler flags for building library objects. 19129pic_flag=$lt_lt_prog_compiler_pic_RC 19130pic_mode=$pic_mode 19131 19132# What is the maximum length of a command? 19133max_cmd_len=$lt_cv_sys_max_cmd_len 19134 19135# Does compiler simultaneously support -c and -o options? 19136compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19137 19138# Must we lock files when doing compilation? 19139need_locks=$lt_need_locks 19140 19141# Do we need the lib prefix for modules? 19142need_lib_prefix=$need_lib_prefix 19143 19144# Do we need a version for libraries? 19145need_version=$need_version 19146 19147# Whether dlopen is supported. 19148dlopen_support=$enable_dlopen 19149 19150# Whether dlopen of programs is supported. 19151dlopen_self=$enable_dlopen_self 19152 19153# Whether dlopen of statically linked programs is supported. 19154dlopen_self_static=$enable_dlopen_self_static 19155 19156# Compiler flag to prevent dynamic linking. 19157link_static_flag=$lt_lt_prog_compiler_static_RC 19158 19159# Compiler flag to turn off builtin functions. 19160no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19161 19162# Compiler flag to allow reflexive dlopens. 19163export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19164 19165# Compiler flag to generate shared objects directly from archives. 19166whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19167 19168# Compiler flag to generate thread-safe objects. 19169thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19170 19171# Library versioning type. 19172version_type=$version_type 19173 19174# Format of library name prefix. 19175libname_spec=$lt_libname_spec 19176 19177# List of archive names. First name is the real one, the rest are links. 19178# The last name is the one that the linker finds with -lNAME. 19179library_names_spec=$lt_library_names_spec 19180 19181# The coded name of the library, if different from the real name. 19182soname_spec=$lt_soname_spec 19183 19184# Commands used to build and install an old-style archive. 19185RANLIB=$lt_RANLIB 19186old_archive_cmds=$lt_old_archive_cmds_RC 19187old_postinstall_cmds=$lt_old_postinstall_cmds 19188old_postuninstall_cmds=$lt_old_postuninstall_cmds 19189 19190# Create an old-style archive from a shared archive. 19191old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19192 19193# Create a temporary old-style archive to link instead of a shared archive. 19194old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19195 19196# Commands used to build and install a shared archive. 19197archive_cmds=$lt_archive_cmds_RC 19198archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19199postinstall_cmds=$lt_postinstall_cmds 19200postuninstall_cmds=$lt_postuninstall_cmds 19201 19202# Commands used to build a loadable module (assumed same as above if empty) 19203module_cmds=$lt_module_cmds_RC 19204module_expsym_cmds=$lt_module_expsym_cmds_RC 19205 19206# Commands to strip libraries. 19207old_striplib=$lt_old_striplib 19208striplib=$lt_striplib 19209 19210# Dependencies to place before the objects being linked to create a 19211# shared library. 19212predep_objects=$lt_predep_objects_RC 19213 19214# Dependencies to place after the objects being linked to create a 19215# shared library. 19216postdep_objects=$lt_postdep_objects_RC 19217 19218# Dependencies to place before the objects being linked to create a 19219# shared library. 19220predeps=$lt_predeps_RC 19221 19222# Dependencies to place after the objects being linked to create a 19223# shared library. 19224postdeps=$lt_postdeps_RC 19225 19226# The library search path used internally by the compiler when linking 19227# a shared library. 19228compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19229 19230# Method to check whether dependent libraries are shared objects. 19231deplibs_check_method=$lt_deplibs_check_method 19232 19233# Command to use when deplibs_check_method == file_magic. 19234file_magic_cmd=$lt_file_magic_cmd 19235 19236# Flag that allows shared libraries with undefined symbols to be built. 19237allow_undefined_flag=$lt_allow_undefined_flag_RC 19238 19239# Flag that forces no undefined symbols. 19240no_undefined_flag=$lt_no_undefined_flag_RC 19241 19242# Commands used to finish a libtool library installation in a directory. 19243finish_cmds=$lt_finish_cmds 19244 19245# Same as above, but a single script fragment to be evaled but not shown. 19246finish_eval=$lt_finish_eval 19247 19248# Take the output of nm and produce a listing of raw symbols and C names. 19249global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19250 19251# Transform the output of nm in a proper C declaration 19252global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19253 19254# Transform the output of nm in a C name address pair 19255global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19256 19257# This is the shared library runtime path variable. 19258runpath_var=$runpath_var 19259 19260# This is the shared library path variable. 19261shlibpath_var=$shlibpath_var 19262 19263# Is shlibpath searched before the hard-coded library search path? 19264shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19265 19266# How to hardcode a shared library path into an executable. 19267hardcode_action=$hardcode_action_RC 19268 19269# Whether we should hardcode library paths into libraries. 19270hardcode_into_libs=$hardcode_into_libs 19271 19272# Flag to hardcode \$libdir into a binary during linking. 19273# This must work even if \$libdir does not exist. 19274hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19275 19276# If ld is used when linking, flag to hardcode \$libdir into 19277# a binary during linking. This must work even if \$libdir does 19278# not exist. 19279hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19280 19281# Whether we need a single -rpath flag with a separated argument. 19282hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19283 19284# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19285# resulting binary. 19286hardcode_direct=$hardcode_direct_RC 19287 19288# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19289# resulting binary. 19290hardcode_minus_L=$hardcode_minus_L_RC 19291 19292# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19293# the resulting binary. 19294hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19295 19296# Set to yes if building a shared library automatically hardcodes DIR into the library 19297# and all subsequent libraries and executables linked against it. 19298hardcode_automatic=$hardcode_automatic_RC 19299 19300# Variables whose values should be saved in libtool wrapper scripts and 19301# restored at relink time. 19302variables_saved_for_relink="$variables_saved_for_relink" 19303 19304# Whether libtool must link a program against all its dependency libraries. 19305link_all_deplibs=$link_all_deplibs_RC 19306 19307# Compile-time system search path for libraries 19308sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19309 19310# Run-time system search path for libraries 19311sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19312 19313# Fix the shell variable \$srcfile for the compiler. 19314fix_srcfile_path=$lt_fix_srcfile_path 19315 19316# Set to yes if exported symbols are required. 19317always_export_symbols=$always_export_symbols_RC 19318 19319# The commands to list exported symbols. 19320export_symbols_cmds=$lt_export_symbols_cmds_RC 19321 19322# The commands to extract the exported symbol list from a shared archive. 19323extract_expsyms_cmds=$lt_extract_expsyms_cmds 19324 19325# Symbols that should not be listed in the preloaded symbols. 19326exclude_expsyms=$lt_exclude_expsyms_RC 19327 19328# Symbols that must always be exported. 19329include_expsyms=$lt_include_expsyms_RC 19330 19331# ### END LIBTOOL TAG CONFIG: $tagname 19332 19333__EOF__ 19334 19335 19336else 19337 # If there is no Makefile yet, we rely on a make rule to execute 19338 # `config.status --recheck' to rerun these tests and create the 19339 # libtool script then. 19340 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19341 if test -f "$ltmain_in"; then 19342 test -f Makefile && make "$ltmain" 19343 fi 19344fi 19345 19346 19347ac_ext=c 19348ac_cpp='$CPP $CPPFLAGS' 19349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19351ac_compiler_gnu=$ac_cv_c_compiler_gnu 19352 19353CC="$lt_save_CC" 19354 19355 ;; 19356 19357 *) 19358 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19359echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19360 { (exit 1); exit 1; }; } 19361 ;; 19362 esac 19363 19364 # Append the new tag name to the list of available tags. 19365 if test -n "$tagname" ; then 19366 available_tags="$available_tags $tagname" 19367 fi 19368 fi 19369 done 19370 IFS="$lt_save_ifs" 19371 19372 # Now substitute the updated list of available tags. 19373 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19374 mv "${ofile}T" "$ofile" 19375 chmod +x "$ofile" 19376 else 19377 rm -f "${ofile}T" 19378 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19379echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19380 { (exit 1); exit 1; }; } 19381 fi 19382fi 19383 19384 19385 19386# This can be used to rebuild libtool when needed 19387LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19388 19389# Always use our own libtool. 19390LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19391 19392# Prevent multiple expansion 19393 19394 19395 19396 19397 19398 19399 19400 19401 19402 19403 19404 19405 19406 19407 19408 19409 19410 19411 19412 19413ac_ext=c 19414ac_cpp='$CPP $CPPFLAGS' 19415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19417ac_compiler_gnu=$ac_cv_c_compiler_gnu 19418if test -n "$ac_tool_prefix"; then 19419 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 19420set dummy ${ac_tool_prefix}gcc; ac_word=$2 19421{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19422echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19423if test "${ac_cv_prog_CC+set}" = set; then 19424 echo $ECHO_N "(cached) $ECHO_C" >&6 19425else 19426 if test -n "$CC"; then 19427 ac_cv_prog_CC="$CC" # Let the user override the test. 19428else 19429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19430for as_dir in $PATH 19431do 19432 IFS=$as_save_IFS 19433 test -z "$as_dir" && as_dir=. 19434 for ac_exec_ext in '' $ac_executable_extensions; do 19435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19436 ac_cv_prog_CC="${ac_tool_prefix}gcc" 19437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19438 break 2 19439 fi 19440done 19441done 19442IFS=$as_save_IFS 19443 19444fi 19445fi 19446CC=$ac_cv_prog_CC 19447if test -n "$CC"; then 19448 { echo "$as_me:$LINENO: result: $CC" >&5 19449echo "${ECHO_T}$CC" >&6; } 19450else 19451 { echo "$as_me:$LINENO: result: no" >&5 19452echo "${ECHO_T}no" >&6; } 19453fi 19454 19455 19456fi 19457if test -z "$ac_cv_prog_CC"; then 19458 ac_ct_CC=$CC 19459 # Extract the first word of "gcc", so it can be a program name with args. 19460set dummy gcc; ac_word=$2 19461{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19462echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19463if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 19464 echo $ECHO_N "(cached) $ECHO_C" >&6 19465else 19466 if test -n "$ac_ct_CC"; then 19467 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 19468else 19469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19470for as_dir in $PATH 19471do 19472 IFS=$as_save_IFS 19473 test -z "$as_dir" && as_dir=. 19474 for ac_exec_ext in '' $ac_executable_extensions; do 19475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19476 ac_cv_prog_ac_ct_CC="gcc" 19477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19478 break 2 19479 fi 19480done 19481done 19482IFS=$as_save_IFS 19483 19484fi 19485fi 19486ac_ct_CC=$ac_cv_prog_ac_ct_CC 19487if test -n "$ac_ct_CC"; then 19488 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 19489echo "${ECHO_T}$ac_ct_CC" >&6; } 19490else 19491 { echo "$as_me:$LINENO: result: no" >&5 19492echo "${ECHO_T}no" >&6; } 19493fi 19494 19495 if test "x$ac_ct_CC" = x; then 19496 CC="" 19497 else 19498 case $cross_compiling:$ac_tool_warned in 19499yes:) 19500{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 19501whose name does not start with the host triplet. If you think this 19502configuration is useful to you, please write to autoconf@gnu.org." >&5 19503echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 19504whose name does not start with the host triplet. If you think this 19505configuration is useful to you, please write to autoconf@gnu.org." >&2;} 19506ac_tool_warned=yes ;; 19507esac 19508 CC=$ac_ct_CC 19509 fi 19510else 19511 CC="$ac_cv_prog_CC" 19512fi 19513 19514if test -z "$CC"; then 19515 if test -n "$ac_tool_prefix"; then 19516 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 19517set dummy ${ac_tool_prefix}cc; ac_word=$2 19518{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19519echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19520if test "${ac_cv_prog_CC+set}" = set; then 19521 echo $ECHO_N "(cached) $ECHO_C" >&6 19522else 19523 if test -n "$CC"; then 19524 ac_cv_prog_CC="$CC" # Let the user override the test. 19525else 19526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19527for as_dir in $PATH 19528do 19529 IFS=$as_save_IFS 19530 test -z "$as_dir" && as_dir=. 19531 for ac_exec_ext in '' $ac_executable_extensions; do 19532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19533 ac_cv_prog_CC="${ac_tool_prefix}cc" 19534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19535 break 2 19536 fi 19537done 19538done 19539IFS=$as_save_IFS 19540 19541fi 19542fi 19543CC=$ac_cv_prog_CC 19544if test -n "$CC"; then 19545 { echo "$as_me:$LINENO: result: $CC" >&5 19546echo "${ECHO_T}$CC" >&6; } 19547else 19548 { echo "$as_me:$LINENO: result: no" >&5 19549echo "${ECHO_T}no" >&6; } 19550fi 19551 19552 19553 fi 19554fi 19555if test -z "$CC"; then 19556 # Extract the first word of "cc", so it can be a program name with args. 19557set dummy cc; ac_word=$2 19558{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19559echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19560if test "${ac_cv_prog_CC+set}" = set; then 19561 echo $ECHO_N "(cached) $ECHO_C" >&6 19562else 19563 if test -n "$CC"; then 19564 ac_cv_prog_CC="$CC" # Let the user override the test. 19565else 19566 ac_prog_rejected=no 19567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19568for as_dir in $PATH 19569do 19570 IFS=$as_save_IFS 19571 test -z "$as_dir" && as_dir=. 19572 for ac_exec_ext in '' $ac_executable_extensions; do 19573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19574 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 19575 ac_prog_rejected=yes 19576 continue 19577 fi 19578 ac_cv_prog_CC="cc" 19579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19580 break 2 19581 fi 19582done 19583done 19584IFS=$as_save_IFS 19585 19586if test $ac_prog_rejected = yes; then 19587 # We found a bogon in the path, so make sure we never use it. 19588 set dummy $ac_cv_prog_CC 19589 shift 19590 if test $# != 0; then 19591 # We chose a different compiler from the bogus one. 19592 # However, it has the same basename, so the bogon will be chosen 19593 # first if we set CC to just the basename; use the full file name. 19594 shift 19595 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 19596 fi 19597fi 19598fi 19599fi 19600CC=$ac_cv_prog_CC 19601if test -n "$CC"; then 19602 { echo "$as_me:$LINENO: result: $CC" >&5 19603echo "${ECHO_T}$CC" >&6; } 19604else 19605 { echo "$as_me:$LINENO: result: no" >&5 19606echo "${ECHO_T}no" >&6; } 19607fi 19608 19609 19610fi 19611if test -z "$CC"; then 19612 if test -n "$ac_tool_prefix"; then 19613 for ac_prog in cl.exe 19614 do 19615 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 19616set dummy $ac_tool_prefix$ac_prog; ac_word=$2 19617{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19618echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19619if test "${ac_cv_prog_CC+set}" = set; then 19620 echo $ECHO_N "(cached) $ECHO_C" >&6 19621else 19622 if test -n "$CC"; then 19623 ac_cv_prog_CC="$CC" # Let the user override the test. 19624else 19625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19626for as_dir in $PATH 19627do 19628 IFS=$as_save_IFS 19629 test -z "$as_dir" && as_dir=. 19630 for ac_exec_ext in '' $ac_executable_extensions; do 19631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19632 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 19633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19634 break 2 19635 fi 19636done 19637done 19638IFS=$as_save_IFS 19639 19640fi 19641fi 19642CC=$ac_cv_prog_CC 19643if test -n "$CC"; then 19644 { echo "$as_me:$LINENO: result: $CC" >&5 19645echo "${ECHO_T}$CC" >&6; } 19646else 19647 { echo "$as_me:$LINENO: result: no" >&5 19648echo "${ECHO_T}no" >&6; } 19649fi 19650 19651 19652 test -n "$CC" && break 19653 done 19654fi 19655if test -z "$CC"; then 19656 ac_ct_CC=$CC 19657 for ac_prog in cl.exe 19658do 19659 # Extract the first word of "$ac_prog", so it can be a program name with args. 19660set dummy $ac_prog; ac_word=$2 19661{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19662echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19663if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 19664 echo $ECHO_N "(cached) $ECHO_C" >&6 19665else 19666 if test -n "$ac_ct_CC"; then 19667 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 19668else 19669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19670for as_dir in $PATH 19671do 19672 IFS=$as_save_IFS 19673 test -z "$as_dir" && as_dir=. 19674 for ac_exec_ext in '' $ac_executable_extensions; do 19675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19676 ac_cv_prog_ac_ct_CC="$ac_prog" 19677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19678 break 2 19679 fi 19680done 19681done 19682IFS=$as_save_IFS 19683 19684fi 19685fi 19686ac_ct_CC=$ac_cv_prog_ac_ct_CC 19687if test -n "$ac_ct_CC"; then 19688 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 19689echo "${ECHO_T}$ac_ct_CC" >&6; } 19690else 19691 { echo "$as_me:$LINENO: result: no" >&5 19692echo "${ECHO_T}no" >&6; } 19693fi 19694 19695 19696 test -n "$ac_ct_CC" && break 19697done 19698 19699 if test "x$ac_ct_CC" = x; then 19700 CC="" 19701 else 19702 case $cross_compiling:$ac_tool_warned in 19703yes:) 19704{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 19705whose name does not start with the host triplet. If you think this 19706configuration is useful to you, please write to autoconf@gnu.org." >&5 19707echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 19708whose name does not start with the host triplet. If you think this 19709configuration is useful to you, please write to autoconf@gnu.org." >&2;} 19710ac_tool_warned=yes ;; 19711esac 19712 CC=$ac_ct_CC 19713 fi 19714fi 19715 19716fi 19717 19718 19719test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 19720See \`config.log' for more details." >&5 19721echo "$as_me: error: no acceptable C compiler found in \$PATH 19722See \`config.log' for more details." >&2;} 19723 { (exit 1); exit 1; }; } 19724 19725# Provide some information about the compiler. 19726echo "$as_me:$LINENO: checking for C compiler version" >&5 19727ac_compiler=`set X $ac_compile; echo $2` 19728{ (ac_try="$ac_compiler --version >&5" 19729case "(($ac_try" in 19730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19731 *) ac_try_echo=$ac_try;; 19732esac 19733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19734 (eval "$ac_compiler --version >&5") 2>&5 19735 ac_status=$? 19736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19737 (exit $ac_status); } 19738{ (ac_try="$ac_compiler -v >&5" 19739case "(($ac_try" in 19740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19741 *) ac_try_echo=$ac_try;; 19742esac 19743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19744 (eval "$ac_compiler -v >&5") 2>&5 19745 ac_status=$? 19746 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19747 (exit $ac_status); } 19748{ (ac_try="$ac_compiler -V >&5" 19749case "(($ac_try" in 19750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19751 *) ac_try_echo=$ac_try;; 19752esac 19753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19754 (eval "$ac_compiler -V >&5") 2>&5 19755 ac_status=$? 19756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19757 (exit $ac_status); } 19758 19759{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 19760echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 19761if test "${ac_cv_c_compiler_gnu+set}" = set; then 19762 echo $ECHO_N "(cached) $ECHO_C" >&6 19763else 19764 cat >conftest.$ac_ext <<_ACEOF 19765/* confdefs.h. */ 19766_ACEOF 19767cat confdefs.h >>conftest.$ac_ext 19768cat >>conftest.$ac_ext <<_ACEOF 19769/* end confdefs.h. */ 19770 19771int 19772main () 19773{ 19774#ifndef __GNUC__ 19775 choke me 19776#endif 19777 19778 ; 19779 return 0; 19780} 19781_ACEOF 19782rm -f conftest.$ac_objext 19783if { (ac_try="$ac_compile" 19784case "(($ac_try" in 19785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19786 *) ac_try_echo=$ac_try;; 19787esac 19788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19789 (eval "$ac_compile") 2>conftest.er1 19790 ac_status=$? 19791 grep -v '^ *+' conftest.er1 >conftest.err 19792 rm -f conftest.er1 19793 cat conftest.err >&5 19794 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19795 (exit $ac_status); } && { 19796 test -z "$ac_c_werror_flag" || 19797 test ! -s conftest.err 19798 } && test -s conftest.$ac_objext; then 19799 ac_compiler_gnu=yes 19800else 19801 echo "$as_me: failed program was:" >&5 19802sed 's/^/| /' conftest.$ac_ext >&5 19803 19804 ac_compiler_gnu=no 19805fi 19806 19807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19808ac_cv_c_compiler_gnu=$ac_compiler_gnu 19809 19810fi 19811{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 19812echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 19813GCC=`test $ac_compiler_gnu = yes && echo yes` 19814ac_test_CFLAGS=${CFLAGS+set} 19815ac_save_CFLAGS=$CFLAGS 19816{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 19817echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 19818if test "${ac_cv_prog_cc_g+set}" = set; then 19819 echo $ECHO_N "(cached) $ECHO_C" >&6 19820else 19821 ac_save_c_werror_flag=$ac_c_werror_flag 19822 ac_c_werror_flag=yes 19823 ac_cv_prog_cc_g=no 19824 CFLAGS="-g" 19825 cat >conftest.$ac_ext <<_ACEOF 19826/* confdefs.h. */ 19827_ACEOF 19828cat confdefs.h >>conftest.$ac_ext 19829cat >>conftest.$ac_ext <<_ACEOF 19830/* end confdefs.h. */ 19831 19832int 19833main () 19834{ 19835 19836 ; 19837 return 0; 19838} 19839_ACEOF 19840rm -f conftest.$ac_objext 19841if { (ac_try="$ac_compile" 19842case "(($ac_try" in 19843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19844 *) ac_try_echo=$ac_try;; 19845esac 19846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19847 (eval "$ac_compile") 2>conftest.er1 19848 ac_status=$? 19849 grep -v '^ *+' conftest.er1 >conftest.err 19850 rm -f conftest.er1 19851 cat conftest.err >&5 19852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19853 (exit $ac_status); } && { 19854 test -z "$ac_c_werror_flag" || 19855 test ! -s conftest.err 19856 } && test -s conftest.$ac_objext; then 19857 ac_cv_prog_cc_g=yes 19858else 19859 echo "$as_me: failed program was:" >&5 19860sed 's/^/| /' conftest.$ac_ext >&5 19861 19862 CFLAGS="" 19863 cat >conftest.$ac_ext <<_ACEOF 19864/* confdefs.h. */ 19865_ACEOF 19866cat confdefs.h >>conftest.$ac_ext 19867cat >>conftest.$ac_ext <<_ACEOF 19868/* end confdefs.h. */ 19869 19870int 19871main () 19872{ 19873 19874 ; 19875 return 0; 19876} 19877_ACEOF 19878rm -f conftest.$ac_objext 19879if { (ac_try="$ac_compile" 19880case "(($ac_try" in 19881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19882 *) ac_try_echo=$ac_try;; 19883esac 19884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19885 (eval "$ac_compile") 2>conftest.er1 19886 ac_status=$? 19887 grep -v '^ *+' conftest.er1 >conftest.err 19888 rm -f conftest.er1 19889 cat conftest.err >&5 19890 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19891 (exit $ac_status); } && { 19892 test -z "$ac_c_werror_flag" || 19893 test ! -s conftest.err 19894 } && test -s conftest.$ac_objext; then 19895 : 19896else 19897 echo "$as_me: failed program was:" >&5 19898sed 's/^/| /' conftest.$ac_ext >&5 19899 19900 ac_c_werror_flag=$ac_save_c_werror_flag 19901 CFLAGS="-g" 19902 cat >conftest.$ac_ext <<_ACEOF 19903/* confdefs.h. */ 19904_ACEOF 19905cat confdefs.h >>conftest.$ac_ext 19906cat >>conftest.$ac_ext <<_ACEOF 19907/* end confdefs.h. */ 19908 19909int 19910main () 19911{ 19912 19913 ; 19914 return 0; 19915} 19916_ACEOF 19917rm -f conftest.$ac_objext 19918if { (ac_try="$ac_compile" 19919case "(($ac_try" in 19920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19921 *) ac_try_echo=$ac_try;; 19922esac 19923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19924 (eval "$ac_compile") 2>conftest.er1 19925 ac_status=$? 19926 grep -v '^ *+' conftest.er1 >conftest.err 19927 rm -f conftest.er1 19928 cat conftest.err >&5 19929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19930 (exit $ac_status); } && { 19931 test -z "$ac_c_werror_flag" || 19932 test ! -s conftest.err 19933 } && test -s conftest.$ac_objext; then 19934 ac_cv_prog_cc_g=yes 19935else 19936 echo "$as_me: failed program was:" >&5 19937sed 's/^/| /' conftest.$ac_ext >&5 19938 19939 19940fi 19941 19942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19943fi 19944 19945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19946fi 19947 19948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19949 ac_c_werror_flag=$ac_save_c_werror_flag 19950fi 19951{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 19952echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 19953if test "$ac_test_CFLAGS" = set; then 19954 CFLAGS=$ac_save_CFLAGS 19955elif test $ac_cv_prog_cc_g = yes; then 19956 if test "$GCC" = yes; then 19957 CFLAGS="-g -O2" 19958 else 19959 CFLAGS="-g" 19960 fi 19961else 19962 if test "$GCC" = yes; then 19963 CFLAGS="-O2" 19964 else 19965 CFLAGS= 19966 fi 19967fi 19968{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 19969echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 19970if test "${ac_cv_prog_cc_c89+set}" = set; then 19971 echo $ECHO_N "(cached) $ECHO_C" >&6 19972else 19973 ac_cv_prog_cc_c89=no 19974ac_save_CC=$CC 19975cat >conftest.$ac_ext <<_ACEOF 19976/* confdefs.h. */ 19977_ACEOF 19978cat confdefs.h >>conftest.$ac_ext 19979cat >>conftest.$ac_ext <<_ACEOF 19980/* end confdefs.h. */ 19981#include <stdarg.h> 19982#include <stdio.h> 19983#include <sys/types.h> 19984#include <sys/stat.h> 19985/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 19986struct buf { int x; }; 19987FILE * (*rcsopen) (struct buf *, struct stat *, int); 19988static char *e (p, i) 19989 char **p; 19990 int i; 19991{ 19992 return p[i]; 19993} 19994static char *f (char * (*g) (char **, int), char **p, ...) 19995{ 19996 char *s; 19997 va_list v; 19998 va_start (v,p); 19999 s = g (p, va_arg (v,int)); 20000 va_end (v); 20001 return s; 20002} 20003 20004/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 20005 function prototypes and stuff, but not '\xHH' hex character constants. 20006 These don't provoke an error unfortunately, instead are silently treated 20007 as 'x'. The following induces an error, until -std is added to get 20008 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 20009 array size at least. It's necessary to write '\x00'==0 to get something 20010 that's true only with -std. */ 20011int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 20012 20013/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 20014 inside strings and character constants. */ 20015#define FOO(x) 'x' 20016int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 20017 20018int test (int i, double x); 20019struct s1 {int (*f) (int a);}; 20020struct s2 {int (*f) (double a);}; 20021int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 20022int argc; 20023char **argv; 20024int 20025main () 20026{ 20027return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 20028 ; 20029 return 0; 20030} 20031_ACEOF 20032for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 20033 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 20034do 20035 CC="$ac_save_CC $ac_arg" 20036 rm -f conftest.$ac_objext 20037if { (ac_try="$ac_compile" 20038case "(($ac_try" in 20039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20040 *) ac_try_echo=$ac_try;; 20041esac 20042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20043 (eval "$ac_compile") 2>conftest.er1 20044 ac_status=$? 20045 grep -v '^ *+' conftest.er1 >conftest.err 20046 rm -f conftest.er1 20047 cat conftest.err >&5 20048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20049 (exit $ac_status); } && { 20050 test -z "$ac_c_werror_flag" || 20051 test ! -s conftest.err 20052 } && test -s conftest.$ac_objext; then 20053 ac_cv_prog_cc_c89=$ac_arg 20054else 20055 echo "$as_me: failed program was:" >&5 20056sed 's/^/| /' conftest.$ac_ext >&5 20057 20058 20059fi 20060 20061rm -f core conftest.err conftest.$ac_objext 20062 test "x$ac_cv_prog_cc_c89" != "xno" && break 20063done 20064rm -f conftest.$ac_ext 20065CC=$ac_save_CC 20066 20067fi 20068# AC_CACHE_VAL 20069case "x$ac_cv_prog_cc_c89" in 20070 x) 20071 { echo "$as_me:$LINENO: result: none needed" >&5 20072echo "${ECHO_T}none needed" >&6; } ;; 20073 xno) 20074 { echo "$as_me:$LINENO: result: unsupported" >&5 20075echo "${ECHO_T}unsupported" >&6; } ;; 20076 *) 20077 CC="$CC $ac_cv_prog_cc_c89" 20078 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 20079echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 20080esac 20081 20082 20083ac_ext=c 20084ac_cpp='$CPP $CPPFLAGS' 20085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20087ac_compiler_gnu=$ac_cv_c_compiler_gnu 20088 20089depcc="$CC" am_compiler_list= 20090 20091{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 20092echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 20093if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 20094 echo $ECHO_N "(cached) $ECHO_C" >&6 20095else 20096 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 20097 # We make a subdir and do the tests there. Otherwise we can end up 20098 # making bogus files that we don't know about and never remove. For 20099 # instance it was reported that on HP-UX the gcc test will end up 20100 # making a dummy file named `D' -- because `-MD' means `put the output 20101 # in D'. 20102 mkdir conftest.dir 20103 # Copy depcomp to subdir because otherwise we won't find it if we're 20104 # using a relative directory. 20105 cp "$am_depcomp" conftest.dir 20106 cd conftest.dir 20107 # We will build objects and dependencies in a subdirectory because 20108 # it helps to detect inapplicable dependency modes. For instance 20109 # both Tru64's cc and ICC support -MD to output dependencies as a 20110 # side effect of compilation, but ICC will put the dependencies in 20111 # the current directory while Tru64 will put them in the object 20112 # directory. 20113 mkdir sub 20114 20115 am_cv_CC_dependencies_compiler_type=none 20116 if test "$am_compiler_list" = ""; then 20117 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 20118 fi 20119 for depmode in $am_compiler_list; do 20120 # Setup a source with many dependencies, because some compilers 20121 # like to wrap large dependency lists on column 80 (with \), and 20122 # we should not choose a depcomp mode which is confused by this. 20123 # 20124 # We need to recreate these files for each test, as the compiler may 20125 # overwrite some of them when testing with obscure command lines. 20126 # This happens at least with the AIX C compiler. 20127 : > sub/conftest.c 20128 for i in 1 2 3 4 5 6; do 20129 echo '#include "conftst'$i'.h"' >> sub/conftest.c 20130 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 20131 # Solaris 8's {/usr,}/bin/sh. 20132 touch sub/conftst$i.h 20133 done 20134 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 20135 20136 case $depmode in 20137 nosideeffect) 20138 # after this tag, mechanisms are not by side-effect, so they'll 20139 # only be used when explicitly requested 20140 if test "x$enable_dependency_tracking" = xyes; then 20141 continue 20142 else 20143 break 20144 fi 20145 ;; 20146 none) break ;; 20147 esac 20148 # We check with `-c' and `-o' for the sake of the "dashmstdout" 20149 # mode. It turns out that the SunPro C++ compiler does not properly 20150 # handle `-M -o', and we need to detect this. 20151 if depmode=$depmode \ 20152 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 20153 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 20154 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 20155 >/dev/null 2>conftest.err && 20156 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 20157 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 20158 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 20159 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 20160 # icc doesn't choke on unknown options, it will just issue warnings 20161 # or remarks (even with -Werror). So we grep stderr for any message 20162 # that says an option was ignored or not supported. 20163 # When given -MP, icc 7.0 and 7.1 complain thusly: 20164 # icc: Command line warning: ignoring option '-M'; no argument required 20165 # The diagnosis changed in icc 8.0: 20166 # icc: Command line remark: option '-MP' not supported 20167 if (grep 'ignoring option' conftest.err || 20168 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 20169 am_cv_CC_dependencies_compiler_type=$depmode 20170 break 20171 fi 20172 fi 20173 done 20174 20175 cd .. 20176 rm -rf conftest.dir 20177else 20178 am_cv_CC_dependencies_compiler_type=none 20179fi 20180 20181fi 20182{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 20183echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 20184CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 20185 20186 if 20187 test "x$enable_dependency_tracking" != xno \ 20188 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 20189 am__fastdepCC_TRUE= 20190 am__fastdepCC_FALSE='#' 20191else 20192 am__fastdepCC_TRUE='#' 20193 am__fastdepCC_FALSE= 20194fi 20195 20196 20197 20198 20199 20200 20201 20202# Check whether --with-xorg-module-dir was given. 20203if test "${with_xorg_module_dir+set}" = set; then 20204 withval=$with_xorg_module_dir; moduledir="$withval" 20205else 20206 moduledir="$libdir/xorg/modules" 20207fi 20208 20209 20210# Check whether --enable-dri was given. 20211if test "${enable_dri+set}" = set; then 20212 enableval=$enable_dri; DRI="$enableval" 20213else 20214 DRI=auto 20215fi 20216 20217 20218# Checks for extensions 20219 20220 SAVE_CFLAGS="$CFLAGS" 20221 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 20222 cat >conftest.$ac_ext <<_ACEOF 20223/* confdefs.h. */ 20224_ACEOF 20225cat confdefs.h >>conftest.$ac_ext 20226cat >>conftest.$ac_ext <<_ACEOF 20227/* end confdefs.h. */ 20228 20229#include "xorg-server.h" 20230#if !defined RANDR 20231#error RANDR not defined 20232#endif 20233 20234int 20235main () 20236{ 20237 20238 ; 20239 return 0; 20240} 20241_ACEOF 20242rm -f conftest.$ac_objext 20243if { (ac_try="$ac_compile" 20244case "(($ac_try" in 20245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20246 *) ac_try_echo=$ac_try;; 20247esac 20248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20249 (eval "$ac_compile") 2>conftest.er1 20250 ac_status=$? 20251 grep -v '^ *+' conftest.er1 >conftest.err 20252 rm -f conftest.er1 20253 cat conftest.err >&5 20254 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20255 (exit $ac_status); } && { 20256 test -z "$ac_c_werror_flag" || 20257 test ! -s conftest.err 20258 } && test -s conftest.$ac_objext; then 20259 _EXT_CHECK=yes 20260else 20261 echo "$as_me: failed program was:" >&5 20262sed 's/^/| /' conftest.$ac_ext >&5 20263 20264 _EXT_CHECK=no 20265fi 20266 20267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20268 CFLAGS="$SAVE_CFLAGS" 20269 { echo "$as_me:$LINENO: checking if RANDR is defined" >&5 20270echo $ECHO_N "checking if RANDR is defined... $ECHO_C" >&6; } 20271 { echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 20272echo "${ECHO_T}$_EXT_CHECK" >&6; } 20273 if test "$_EXT_CHECK" != no; then 20274 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 20275 fi 20276 20277 20278 SAVE_CFLAGS="$CFLAGS" 20279 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 20280 cat >conftest.$ac_ext <<_ACEOF 20281/* confdefs.h. */ 20282_ACEOF 20283cat confdefs.h >>conftest.$ac_ext 20284cat >>conftest.$ac_ext <<_ACEOF 20285/* end confdefs.h. */ 20286 20287#include "xorg-server.h" 20288#if !defined RENDER 20289#error RENDER not defined 20290#endif 20291 20292int 20293main () 20294{ 20295 20296 ; 20297 return 0; 20298} 20299_ACEOF 20300rm -f conftest.$ac_objext 20301if { (ac_try="$ac_compile" 20302case "(($ac_try" in 20303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20304 *) ac_try_echo=$ac_try;; 20305esac 20306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20307 (eval "$ac_compile") 2>conftest.er1 20308 ac_status=$? 20309 grep -v '^ *+' conftest.er1 >conftest.err 20310 rm -f conftest.er1 20311 cat conftest.err >&5 20312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20313 (exit $ac_status); } && { 20314 test -z "$ac_c_werror_flag" || 20315 test ! -s conftest.err 20316 } && test -s conftest.$ac_objext; then 20317 _EXT_CHECK=yes 20318else 20319 echo "$as_me: failed program was:" >&5 20320sed 's/^/| /' conftest.$ac_ext >&5 20321 20322 _EXT_CHECK=no 20323fi 20324 20325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20326 CFLAGS="$SAVE_CFLAGS" 20327 { echo "$as_me:$LINENO: checking if RENDER is defined" >&5 20328echo $ECHO_N "checking if RENDER is defined... $ECHO_C" >&6; } 20329 { echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 20330echo "${ECHO_T}$_EXT_CHECK" >&6; } 20331 if test "$_EXT_CHECK" != no; then 20332 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 20333 fi 20334 20335 20336 SAVE_CFLAGS="$CFLAGS" 20337 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 20338 cat >conftest.$ac_ext <<_ACEOF 20339/* confdefs.h. */ 20340_ACEOF 20341cat confdefs.h >>conftest.$ac_ext 20342cat >>conftest.$ac_ext <<_ACEOF 20343/* end confdefs.h. */ 20344 20345#include "xorg-server.h" 20346#if !defined XV 20347#error XV not defined 20348#endif 20349 20350int 20351main () 20352{ 20353 20354 ; 20355 return 0; 20356} 20357_ACEOF 20358rm -f conftest.$ac_objext 20359if { (ac_try="$ac_compile" 20360case "(($ac_try" in 20361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20362 *) ac_try_echo=$ac_try;; 20363esac 20364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20365 (eval "$ac_compile") 2>conftest.er1 20366 ac_status=$? 20367 grep -v '^ *+' conftest.er1 >conftest.err 20368 rm -f conftest.er1 20369 cat conftest.err >&5 20370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20371 (exit $ac_status); } && { 20372 test -z "$ac_c_werror_flag" || 20373 test ! -s conftest.err 20374 } && test -s conftest.$ac_objext; then 20375 _EXT_CHECK=yes 20376else 20377 echo "$as_me: failed program was:" >&5 20378sed 's/^/| /' conftest.$ac_ext >&5 20379 20380 _EXT_CHECK=no 20381fi 20382 20383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20384 CFLAGS="$SAVE_CFLAGS" 20385 { echo "$as_me:$LINENO: checking if XV is defined" >&5 20386echo $ECHO_N "checking if XV is defined... $ECHO_C" >&6; } 20387 { echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 20388echo "${ECHO_T}$_EXT_CHECK" >&6; } 20389 if test "$_EXT_CHECK" != no; then 20390 REQUIRED_MODULES="$REQUIRED_MODULES videoproto" 20391 fi 20392 20393 20394 SAVE_CFLAGS="$CFLAGS" 20395 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 20396 cat >conftest.$ac_ext <<_ACEOF 20397/* confdefs.h. */ 20398_ACEOF 20399cat confdefs.h >>conftest.$ac_ext 20400cat >>conftest.$ac_ext <<_ACEOF 20401/* end confdefs.h. */ 20402 20403#include "xorg-server.h" 20404#if !defined DPMSExtension 20405#error DPMSExtension not defined 20406#endif 20407 20408int 20409main () 20410{ 20411 20412 ; 20413 return 0; 20414} 20415_ACEOF 20416rm -f conftest.$ac_objext 20417if { (ac_try="$ac_compile" 20418case "(($ac_try" in 20419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20420 *) ac_try_echo=$ac_try;; 20421esac 20422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20423 (eval "$ac_compile") 2>conftest.er1 20424 ac_status=$? 20425 grep -v '^ *+' conftest.er1 >conftest.err 20426 rm -f conftest.er1 20427 cat conftest.err >&5 20428 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20429 (exit $ac_status); } && { 20430 test -z "$ac_c_werror_flag" || 20431 test ! -s conftest.err 20432 } && test -s conftest.$ac_objext; then 20433 _EXT_CHECK=yes 20434else 20435 echo "$as_me: failed program was:" >&5 20436sed 's/^/| /' conftest.$ac_ext >&5 20437 20438 _EXT_CHECK=no 20439fi 20440 20441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20442 CFLAGS="$SAVE_CFLAGS" 20443 { echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5 20444echo $ECHO_N "checking if DPMSExtension is defined... $ECHO_C" >&6; } 20445 { echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 20446echo "${ECHO_T}$_EXT_CHECK" >&6; } 20447 if test "$_EXT_CHECK" != no; then 20448 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 20449 fi 20450 20451 20452# Checks for pkg-config packages 20453 20454 20455if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 20456 if test -n "$ac_tool_prefix"; then 20457 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 20458set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 20459{ echo "$as_me:$LINENO: checking for $ac_word" >&5 20460echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 20461if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 20462 echo $ECHO_N "(cached) $ECHO_C" >&6 20463else 20464 case $PKG_CONFIG in 20465 [\\/]* | ?:[\\/]*) 20466 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 20467 ;; 20468 *) 20469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20470for as_dir in $PATH 20471do 20472 IFS=$as_save_IFS 20473 test -z "$as_dir" && as_dir=. 20474 for ac_exec_ext in '' $ac_executable_extensions; do 20475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20476 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 20477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20478 break 2 20479 fi 20480done 20481done 20482IFS=$as_save_IFS 20483 20484 ;; 20485esac 20486fi 20487PKG_CONFIG=$ac_cv_path_PKG_CONFIG 20488if test -n "$PKG_CONFIG"; then 20489 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 20490echo "${ECHO_T}$PKG_CONFIG" >&6; } 20491else 20492 { echo "$as_me:$LINENO: result: no" >&5 20493echo "${ECHO_T}no" >&6; } 20494fi 20495 20496 20497fi 20498if test -z "$ac_cv_path_PKG_CONFIG"; then 20499 ac_pt_PKG_CONFIG=$PKG_CONFIG 20500 # Extract the first word of "pkg-config", so it can be a program name with args. 20501set dummy pkg-config; ac_word=$2 20502{ echo "$as_me:$LINENO: checking for $ac_word" >&5 20503echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 20504if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 20505 echo $ECHO_N "(cached) $ECHO_C" >&6 20506else 20507 case $ac_pt_PKG_CONFIG in 20508 [\\/]* | ?:[\\/]*) 20509 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 20510 ;; 20511 *) 20512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20513for as_dir in $PATH 20514do 20515 IFS=$as_save_IFS 20516 test -z "$as_dir" && as_dir=. 20517 for ac_exec_ext in '' $ac_executable_extensions; do 20518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20519 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 20520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20521 break 2 20522 fi 20523done 20524done 20525IFS=$as_save_IFS 20526 20527 ;; 20528esac 20529fi 20530ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 20531if test -n "$ac_pt_PKG_CONFIG"; then 20532 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 20533echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } 20534else 20535 { echo "$as_me:$LINENO: result: no" >&5 20536echo "${ECHO_T}no" >&6; } 20537fi 20538 20539 if test "x$ac_pt_PKG_CONFIG" = x; then 20540 PKG_CONFIG="" 20541 else 20542 case $cross_compiling:$ac_tool_warned in 20543yes:) 20544{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 20545whose name does not start with the host triplet. If you think this 20546configuration is useful to you, please write to autoconf@gnu.org." >&5 20547echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 20548whose name does not start with the host triplet. If you think this 20549configuration is useful to you, please write to autoconf@gnu.org." >&2;} 20550ac_tool_warned=yes ;; 20551esac 20552 PKG_CONFIG=$ac_pt_PKG_CONFIG 20553 fi 20554else 20555 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 20556fi 20557 20558fi 20559if test -n "$PKG_CONFIG"; then 20560 _pkg_min_version=0.9.0 20561 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 20562echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; } 20563 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 20564 { echo "$as_me:$LINENO: result: yes" >&5 20565echo "${ECHO_T}yes" >&6; } 20566 else 20567 { echo "$as_me:$LINENO: result: no" >&5 20568echo "${ECHO_T}no" >&6; } 20569 PKG_CONFIG="" 20570 fi 20571 20572fi 20573 20574pkg_failed=no 20575{ echo "$as_me:$LINENO: checking for XORG" >&5 20576echo $ECHO_N "checking for XORG... $ECHO_C" >&6; } 20577 20578if test -n "$XORG_CFLAGS"; then 20579 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 20580 elif test -n "$PKG_CONFIG"; then 20581 if test -n "$PKG_CONFIG" && \ 20582 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0 xproto fontsproto \$REQUIRED_MODULES\"") >&5 20583 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES") 2>&5 20584 ac_status=$? 20585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20586 (exit $ac_status); }; then 20587 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 20588else 20589 pkg_failed=yes 20590fi 20591 else 20592 pkg_failed=untried 20593fi 20594if test -n "$XORG_LIBS"; then 20595 pkg_cv_XORG_LIBS="$XORG_LIBS" 20596 elif test -n "$PKG_CONFIG"; then 20597 if test -n "$PKG_CONFIG" && \ 20598 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0 xproto fontsproto \$REQUIRED_MODULES\"") >&5 20599 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES") 2>&5 20600 ac_status=$? 20601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20602 (exit $ac_status); }; then 20603 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 20604else 20605 pkg_failed=yes 20606fi 20607 else 20608 pkg_failed=untried 20609fi 20610 20611 20612 20613if test $pkg_failed = yes; then 20614 20615if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20616 _pkg_short_errors_supported=yes 20617else 20618 _pkg_short_errors_supported=no 20619fi 20620 if test $_pkg_short_errors_supported = yes; then 20621 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>&1` 20622 else 20623 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>&1` 20624 fi 20625 # Put the nasty error message in config.log where it belongs 20626 echo "$XORG_PKG_ERRORS" >&5 20627 20628 { { echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES) were not met: 20629 20630$XORG_PKG_ERRORS 20631 20632Consider adjusting the PKG_CONFIG_PATH environment variable if you 20633installed software in a non-standard prefix. 20634 20635Alternatively, you may set the environment variables XORG_CFLAGS 20636and XORG_LIBS to avoid the need to call pkg-config. 20637See the pkg-config man page for more details. 20638" >&5 20639echo "$as_me: error: Package requirements (xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES) were not met: 20640 20641$XORG_PKG_ERRORS 20642 20643Consider adjusting the PKG_CONFIG_PATH environment variable if you 20644installed software in a non-standard prefix. 20645 20646Alternatively, you may set the environment variables XORG_CFLAGS 20647and XORG_LIBS to avoid the need to call pkg-config. 20648See the pkg-config man page for more details. 20649" >&2;} 20650 { (exit 1); exit 1; }; } 20651elif test $pkg_failed = untried; then 20652 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 20653is in your PATH or set the PKG_CONFIG environment variable to the full 20654path to pkg-config. 20655 20656Alternatively, you may set the environment variables XORG_CFLAGS 20657and XORG_LIBS to avoid the need to call pkg-config. 20658See the pkg-config man page for more details. 20659 20660To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20661See \`config.log' for more details." >&5 20662echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 20663is in your PATH or set the PKG_CONFIG environment variable to the full 20664path to pkg-config. 20665 20666Alternatively, you may set the environment variables XORG_CFLAGS 20667and XORG_LIBS to avoid the need to call pkg-config. 20668See the pkg-config man page for more details. 20669 20670To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20671See \`config.log' for more details." >&2;} 20672 { (exit 1); exit 1; }; } 20673else 20674 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 20675 XORG_LIBS=$pkg_cv_XORG_LIBS 20676 { echo "$as_me:$LINENO: result: yes" >&5 20677echo "${ECHO_T}yes" >&6; } 20678 : 20679fi 20680sdkdir=$(pkg-config --variable=sdkdir xorg-server) 20681 20682# Checks for libraries. 20683 20684# Checks for header files. 20685{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 20686echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 20687if test "${ac_cv_header_stdc+set}" = set; then 20688 echo $ECHO_N "(cached) $ECHO_C" >&6 20689else 20690 cat >conftest.$ac_ext <<_ACEOF 20691/* confdefs.h. */ 20692_ACEOF 20693cat confdefs.h >>conftest.$ac_ext 20694cat >>conftest.$ac_ext <<_ACEOF 20695/* end confdefs.h. */ 20696#include <stdlib.h> 20697#include <stdarg.h> 20698#include <string.h> 20699#include <float.h> 20700 20701int 20702main () 20703{ 20704 20705 ; 20706 return 0; 20707} 20708_ACEOF 20709rm -f conftest.$ac_objext 20710if { (ac_try="$ac_compile" 20711case "(($ac_try" in 20712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20713 *) ac_try_echo=$ac_try;; 20714esac 20715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20716 (eval "$ac_compile") 2>conftest.er1 20717 ac_status=$? 20718 grep -v '^ *+' conftest.er1 >conftest.err 20719 rm -f conftest.er1 20720 cat conftest.err >&5 20721 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20722 (exit $ac_status); } && { 20723 test -z "$ac_c_werror_flag" || 20724 test ! -s conftest.err 20725 } && test -s conftest.$ac_objext; then 20726 ac_cv_header_stdc=yes 20727else 20728 echo "$as_me: failed program was:" >&5 20729sed 's/^/| /' conftest.$ac_ext >&5 20730 20731 ac_cv_header_stdc=no 20732fi 20733 20734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20735 20736if test $ac_cv_header_stdc = yes; then 20737 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 20738 cat >conftest.$ac_ext <<_ACEOF 20739/* confdefs.h. */ 20740_ACEOF 20741cat confdefs.h >>conftest.$ac_ext 20742cat >>conftest.$ac_ext <<_ACEOF 20743/* end confdefs.h. */ 20744#include <string.h> 20745 20746_ACEOF 20747if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20748 $EGREP "memchr" >/dev/null 2>&1; then 20749 : 20750else 20751 ac_cv_header_stdc=no 20752fi 20753rm -f conftest* 20754 20755fi 20756 20757if test $ac_cv_header_stdc = yes; then 20758 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 20759 cat >conftest.$ac_ext <<_ACEOF 20760/* confdefs.h. */ 20761_ACEOF 20762cat confdefs.h >>conftest.$ac_ext 20763cat >>conftest.$ac_ext <<_ACEOF 20764/* end confdefs.h. */ 20765#include <stdlib.h> 20766 20767_ACEOF 20768if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20769 $EGREP "free" >/dev/null 2>&1; then 20770 : 20771else 20772 ac_cv_header_stdc=no 20773fi 20774rm -f conftest* 20775 20776fi 20777 20778if test $ac_cv_header_stdc = yes; then 20779 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 20780 if test "$cross_compiling" = yes; then 20781 : 20782else 20783 cat >conftest.$ac_ext <<_ACEOF 20784/* confdefs.h. */ 20785_ACEOF 20786cat confdefs.h >>conftest.$ac_ext 20787cat >>conftest.$ac_ext <<_ACEOF 20788/* end confdefs.h. */ 20789#include <ctype.h> 20790#include <stdlib.h> 20791#if ((' ' & 0x0FF) == 0x020) 20792# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 20793# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 20794#else 20795# define ISLOWER(c) \ 20796 (('a' <= (c) && (c) <= 'i') \ 20797 || ('j' <= (c) && (c) <= 'r') \ 20798 || ('s' <= (c) && (c) <= 'z')) 20799# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 20800#endif 20801 20802#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 20803int 20804main () 20805{ 20806 int i; 20807 for (i = 0; i < 256; i++) 20808 if (XOR (islower (i), ISLOWER (i)) 20809 || toupper (i) != TOUPPER (i)) 20810 return 2; 20811 return 0; 20812} 20813_ACEOF 20814rm -f conftest$ac_exeext 20815if { (ac_try="$ac_link" 20816case "(($ac_try" in 20817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20818 *) ac_try_echo=$ac_try;; 20819esac 20820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20821 (eval "$ac_link") 2>&5 20822 ac_status=$? 20823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20824 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20825 { (case "(($ac_try" in 20826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20827 *) ac_try_echo=$ac_try;; 20828esac 20829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20830 (eval "$ac_try") 2>&5 20831 ac_status=$? 20832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20833 (exit $ac_status); }; }; then 20834 : 20835else 20836 echo "$as_me: program exited with status $ac_status" >&5 20837echo "$as_me: failed program was:" >&5 20838sed 's/^/| /' conftest.$ac_ext >&5 20839 20840( exit $ac_status ) 20841ac_cv_header_stdc=no 20842fi 20843rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20844fi 20845 20846 20847fi 20848fi 20849{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 20850echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 20851if test $ac_cv_header_stdc = yes; then 20852 20853cat >>confdefs.h <<\_ACEOF 20854#define STDC_HEADERS 1 20855_ACEOF 20856 20857fi 20858 20859 20860if test "$DRI" != no; then 20861 as_ac_File=`echo "ac_cv_file_${sdkdir}/dri.h" | $as_tr_sh` 20862{ echo "$as_me:$LINENO: checking for ${sdkdir}/dri.h" >&5 20863echo $ECHO_N "checking for ${sdkdir}/dri.h... $ECHO_C" >&6; } 20864if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then 20865 echo $ECHO_N "(cached) $ECHO_C" >&6 20866else 20867 test "$cross_compiling" = yes && 20868 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 20869echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 20870 { (exit 1); exit 1; }; } 20871if test -r "${sdkdir}/dri.h"; then 20872 eval "$as_ac_File=yes" 20873else 20874 eval "$as_ac_File=no" 20875fi 20876fi 20877ac_res=`eval echo '${'$as_ac_File'}'` 20878 { echo "$as_me:$LINENO: result: $ac_res" >&5 20879echo "${ECHO_T}$ac_res" >&6; } 20880if test `eval echo '${'$as_ac_File'}'` = yes; then 20881 have_dri_h="yes" 20882else 20883 have_dri_h="no" 20884fi 20885 20886 as_ac_File=`echo "ac_cv_file_${sdkdir}/sarea.h" | $as_tr_sh` 20887{ echo "$as_me:$LINENO: checking for ${sdkdir}/sarea.h" >&5 20888echo $ECHO_N "checking for ${sdkdir}/sarea.h... $ECHO_C" >&6; } 20889if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then 20890 echo $ECHO_N "(cached) $ECHO_C" >&6 20891else 20892 test "$cross_compiling" = yes && 20893 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 20894echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 20895 { (exit 1); exit 1; }; } 20896if test -r "${sdkdir}/sarea.h"; then 20897 eval "$as_ac_File=yes" 20898else 20899 eval "$as_ac_File=no" 20900fi 20901fi 20902ac_res=`eval echo '${'$as_ac_File'}'` 20903 { echo "$as_me:$LINENO: result: $ac_res" >&5 20904echo "${ECHO_T}$ac_res" >&6; } 20905if test `eval echo '${'$as_ac_File'}'` = yes; then 20906 have_sarea_h="yes" 20907else 20908 have_sarea_h="no" 20909fi 20910 20911 as_ac_File=`echo "ac_cv_file_${sdkdir}/dristruct.h" | $as_tr_sh` 20912{ echo "$as_me:$LINENO: checking for ${sdkdir}/dristruct.h" >&5 20913echo $ECHO_N "checking for ${sdkdir}/dristruct.h... $ECHO_C" >&6; } 20914if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then 20915 echo $ECHO_N "(cached) $ECHO_C" >&6 20916else 20917 test "$cross_compiling" = yes && 20918 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 20919echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 20920 { (exit 1); exit 1; }; } 20921if test -r "${sdkdir}/dristruct.h"; then 20922 eval "$as_ac_File=yes" 20923else 20924 eval "$as_ac_File=no" 20925fi 20926fi 20927ac_res=`eval echo '${'$as_ac_File'}'` 20928 { echo "$as_me:$LINENO: result: $ac_res" >&5 20929echo "${ECHO_T}$ac_res" >&6; } 20930if test `eval echo '${'$as_ac_File'}'` = yes; then 20931 have_dristruct_h="yes" 20932else 20933 have_dristruct_h="no" 20934fi 20935 20936fi 20937 20938{ echo "$as_me:$LINENO: checking whether to include DRI support" >&5 20939echo $ECHO_N "checking whether to include DRI support... $ECHO_C" >&6; } 20940if test x$DRI = xauto; then 20941 if test "$have_dri_h" = yes -a \ 20942 "$have_sarea_h" = yes -a \ 20943 "$have_dristruct_h" = yes; then 20944 DRI="yes" 20945 else 20946 DRI="no" 20947 fi 20948fi 20949{ echo "$as_me:$LINENO: result: $DRI" >&5 20950echo "${ECHO_T}$DRI" >&6; } 20951 20952 if test x$DRI = xyes; then 20953 DRI_TRUE= 20954 DRI_FALSE='#' 20955else 20956 DRI_TRUE='#' 20957 DRI_FALSE= 20958fi 20959 20960if test "$DRI" = yes; then 20961 20962pkg_failed=no 20963{ echo "$as_me:$LINENO: checking for DRI" >&5 20964echo $ECHO_N "checking for DRI... $ECHO_C" >&6; } 20965 20966if test -n "$DRI_CFLAGS"; then 20967 pkg_cv_DRI_CFLAGS="$DRI_CFLAGS" 20968 elif test -n "$PKG_CONFIG"; then 20969 if test -n "$PKG_CONFIG" && \ 20970 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\"") >&5 20971 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5 20972 ac_status=$? 20973 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20974 (exit $ac_status); }; then 20975 pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.0 xf86driproto" 2>/dev/null` 20976else 20977 pkg_failed=yes 20978fi 20979 else 20980 pkg_failed=untried 20981fi 20982if test -n "$DRI_LIBS"; then 20983 pkg_cv_DRI_LIBS="$DRI_LIBS" 20984 elif test -n "$PKG_CONFIG"; then 20985 if test -n "$PKG_CONFIG" && \ 20986 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\"") >&5 20987 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5 20988 ac_status=$? 20989 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20990 (exit $ac_status); }; then 20991 pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.0 xf86driproto" 2>/dev/null` 20992else 20993 pkg_failed=yes 20994fi 20995 else 20996 pkg_failed=untried 20997fi 20998 20999 21000 21001if test $pkg_failed = yes; then 21002 21003if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21004 _pkg_short_errors_supported=yes 21005else 21006 _pkg_short_errors_supported=no 21007fi 21008 if test $_pkg_short_errors_supported = yes; then 21009 DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdrm >= 2.0 xf86driproto" 2>&1` 21010 else 21011 DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdrm >= 2.0 xf86driproto" 2>&1` 21012 fi 21013 # Put the nasty error message in config.log where it belongs 21014 echo "$DRI_PKG_ERRORS" >&5 21015 21016 { { echo "$as_me:$LINENO: error: Package requirements (libdrm >= 2.0 xf86driproto) were not met: 21017 21018$DRI_PKG_ERRORS 21019 21020Consider adjusting the PKG_CONFIG_PATH environment variable if you 21021installed software in a non-standard prefix. 21022 21023Alternatively, you may set the environment variables DRI_CFLAGS 21024and DRI_LIBS to avoid the need to call pkg-config. 21025See the pkg-config man page for more details. 21026" >&5 21027echo "$as_me: error: Package requirements (libdrm >= 2.0 xf86driproto) were not met: 21028 21029$DRI_PKG_ERRORS 21030 21031Consider adjusting the PKG_CONFIG_PATH environment variable if you 21032installed software in a non-standard prefix. 21033 21034Alternatively, you may set the environment variables DRI_CFLAGS 21035and DRI_LIBS to avoid the need to call pkg-config. 21036See the pkg-config man page for more details. 21037" >&2;} 21038 { (exit 1); exit 1; }; } 21039elif test $pkg_failed = untried; then 21040 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 21041is in your PATH or set the PKG_CONFIG environment variable to the full 21042path to pkg-config. 21043 21044Alternatively, you may set the environment variables DRI_CFLAGS 21045and DRI_LIBS to avoid the need to call pkg-config. 21046See the pkg-config man page for more details. 21047 21048To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21049See \`config.log' for more details." >&5 21050echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 21051is in your PATH or set the PKG_CONFIG environment variable to the full 21052path to pkg-config. 21053 21054Alternatively, you may set the environment variables DRI_CFLAGS 21055and DRI_LIBS to avoid the need to call pkg-config. 21056See the pkg-config man page for more details. 21057 21058To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21059See \`config.log' for more details." >&2;} 21060 { (exit 1); exit 1; }; } 21061else 21062 DRI_CFLAGS=$pkg_cv_DRI_CFLAGS 21063 DRI_LIBS=$pkg_cv_DRI_LIBS 21064 { echo "$as_me:$LINENO: result: yes" >&5 21065echo "${ECHO_T}yes" >&6; } 21066 : 21067fi 21068 21069cat >>confdefs.h <<\_ACEOF 21070#define XF86DRI 1 21071_ACEOF 21072 21073 21074cat >>confdefs.h <<\_ACEOF 21075#define XF86DRI_DEVEL 1 21076_ACEOF 21077 21078fi 21079 21080save_CFLAGS="$CFLAGS" 21081CFLAGS="$XORG_CFLAGS" 21082{ echo "$as_me:$LINENO: checking whether XSERVER_LIBPCIACCESS is declared" >&5 21083echo $ECHO_N "checking whether XSERVER_LIBPCIACCESS is declared... $ECHO_C" >&6; } 21084if test "${ac_cv_have_decl_XSERVER_LIBPCIACCESS+set}" = set; then 21085 echo $ECHO_N "(cached) $ECHO_C" >&6 21086else 21087 cat >conftest.$ac_ext <<_ACEOF 21088/* confdefs.h. */ 21089_ACEOF 21090cat confdefs.h >>conftest.$ac_ext 21091cat >>conftest.$ac_ext <<_ACEOF 21092/* end confdefs.h. */ 21093#include "xorg-server.h" 21094 21095int 21096main () 21097{ 21098#ifndef XSERVER_LIBPCIACCESS 21099 (void) XSERVER_LIBPCIACCESS; 21100#endif 21101 21102 ; 21103 return 0; 21104} 21105_ACEOF 21106rm -f conftest.$ac_objext 21107if { (ac_try="$ac_compile" 21108case "(($ac_try" in 21109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21110 *) ac_try_echo=$ac_try;; 21111esac 21112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21113 (eval "$ac_compile") 2>conftest.er1 21114 ac_status=$? 21115 grep -v '^ *+' conftest.er1 >conftest.err 21116 rm -f conftest.er1 21117 cat conftest.err >&5 21118 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21119 (exit $ac_status); } && { 21120 test -z "$ac_c_werror_flag" || 21121 test ! -s conftest.err 21122 } && test -s conftest.$ac_objext; then 21123 ac_cv_have_decl_XSERVER_LIBPCIACCESS=yes 21124else 21125 echo "$as_me: failed program was:" >&5 21126sed 's/^/| /' conftest.$ac_ext >&5 21127 21128 ac_cv_have_decl_XSERVER_LIBPCIACCESS=no 21129fi 21130 21131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21132fi 21133{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&5 21134echo "${ECHO_T}$ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&6; } 21135if test $ac_cv_have_decl_XSERVER_LIBPCIACCESS = yes; then 21136 XSERVER_LIBPCIACCESS=yes 21137else 21138 XSERVER_LIBPCIACCESS=no 21139fi 21140 21141CFLAGS="$save_CFLAGS" 21142 21143if test "x$XSERVER_LIBPCIACCESS" = xyes; then 21144 21145pkg_failed=no 21146{ echo "$as_me:$LINENO: checking for PCIACCESS" >&5 21147echo $ECHO_N "checking for PCIACCESS... $ECHO_C" >&6; } 21148 21149if test -n "$PCIACCESS_CFLAGS"; then 21150 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 21151 elif test -n "$PKG_CONFIG"; then 21152 if test -n "$PKG_CONFIG" && \ 21153 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\"") >&5 21154 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5 21155 ac_status=$? 21156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21157 (exit $ac_status); }; then 21158 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.10" 2>/dev/null` 21159else 21160 pkg_failed=yes 21161fi 21162 else 21163 pkg_failed=untried 21164fi 21165if test -n "$PCIACCESS_LIBS"; then 21166 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 21167 elif test -n "$PKG_CONFIG"; then 21168 if test -n "$PKG_CONFIG" && \ 21169 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\"") >&5 21170 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5 21171 ac_status=$? 21172 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21173 (exit $ac_status); }; then 21174 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.10" 2>/dev/null` 21175else 21176 pkg_failed=yes 21177fi 21178 else 21179 pkg_failed=untried 21180fi 21181 21182 21183 21184if test $pkg_failed = yes; then 21185 21186if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21187 _pkg_short_errors_supported=yes 21188else 21189 _pkg_short_errors_supported=no 21190fi 21191 if test $_pkg_short_errors_supported = yes; then 21192 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.10" 2>&1` 21193 else 21194 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.10" 2>&1` 21195 fi 21196 # Put the nasty error message in config.log where it belongs 21197 echo "$PCIACCESS_PKG_ERRORS" >&5 21198 21199 { { echo "$as_me:$LINENO: error: Package requirements (pciaccess >= 0.10) were not met: 21200 21201$PCIACCESS_PKG_ERRORS 21202 21203Consider adjusting the PKG_CONFIG_PATH environment variable if you 21204installed software in a non-standard prefix. 21205 21206Alternatively, you may set the environment variables PCIACCESS_CFLAGS 21207and PCIACCESS_LIBS to avoid the need to call pkg-config. 21208See the pkg-config man page for more details. 21209" >&5 21210echo "$as_me: error: Package requirements (pciaccess >= 0.10) were not met: 21211 21212$PCIACCESS_PKG_ERRORS 21213 21214Consider adjusting the PKG_CONFIG_PATH environment variable if you 21215installed software in a non-standard prefix. 21216 21217Alternatively, you may set the environment variables PCIACCESS_CFLAGS 21218and PCIACCESS_LIBS to avoid the need to call pkg-config. 21219See the pkg-config man page for more details. 21220" >&2;} 21221 { (exit 1); exit 1; }; } 21222elif test $pkg_failed = untried; then 21223 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 21224is in your PATH or set the PKG_CONFIG environment variable to the full 21225path to pkg-config. 21226 21227Alternatively, you may set the environment variables PCIACCESS_CFLAGS 21228and PCIACCESS_LIBS to avoid the need to call pkg-config. 21229See the pkg-config man page for more details. 21230 21231To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21232See \`config.log' for more details." >&5 21233echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 21234is in your PATH or set the PKG_CONFIG environment variable to the full 21235path to pkg-config. 21236 21237Alternatively, you may set the environment variables PCIACCESS_CFLAGS 21238and PCIACCESS_LIBS to avoid the need to call pkg-config. 21239See the pkg-config man page for more details. 21240 21241To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21242See \`config.log' for more details." >&2;} 21243 { (exit 1); exit 1; }; } 21244else 21245 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 21246 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 21247 { echo "$as_me:$LINENO: result: yes" >&5 21248echo "${ECHO_T}yes" >&6; } 21249 : 21250fi 21251fi 21252 if test "x$XSERVER_LIBPCIACCESS" = xyes; then 21253 XSERVER_LIBPCIACCESS_TRUE= 21254 XSERVER_LIBPCIACCESS_FALSE='#' 21255else 21256 XSERVER_LIBPCIACCESS_TRUE='#' 21257 XSERVER_LIBPCIACCESS_FALSE= 21258fi 21259 21260 21261 21262 21263 21264 21265DRIVER_NAME=savage 21266 21267 21268 21269 21270 21271if test x$APP_MAN_SUFFIX = x ; then 21272 APP_MAN_SUFFIX=1 21273fi 21274if test x$APP_MAN_DIR = x ; then 21275 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 21276fi 21277 21278if test x$LIB_MAN_SUFFIX = x ; then 21279 LIB_MAN_SUFFIX=3 21280fi 21281if test x$LIB_MAN_DIR = x ; then 21282 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 21283fi 21284 21285if test x$FILE_MAN_SUFFIX = x ; then 21286 case $host_os in 21287 solaris*) FILE_MAN_SUFFIX=4 ;; 21288 *) FILE_MAN_SUFFIX=5 ;; 21289 esac 21290fi 21291if test x$FILE_MAN_DIR = x ; then 21292 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 21293fi 21294 21295if test x$MISC_MAN_SUFFIX = x ; then 21296 case $host_os in 21297 solaris*) MISC_MAN_SUFFIX=5 ;; 21298 *) MISC_MAN_SUFFIX=7 ;; 21299 esac 21300fi 21301if test x$MISC_MAN_DIR = x ; then 21302 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 21303fi 21304 21305if test x$DRIVER_MAN_SUFFIX = x ; then 21306 case $host_os in 21307 solaris*) DRIVER_MAN_SUFFIX=7 ;; 21308 *) DRIVER_MAN_SUFFIX=4 ;; 21309 esac 21310fi 21311if test x$DRIVER_MAN_DIR = x ; then 21312 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 21313fi 21314 21315if test x$ADMIN_MAN_SUFFIX = x ; then 21316 case $host_os in 21317 solaris*) ADMIN_MAN_SUFFIX=1m ;; 21318 *) ADMIN_MAN_SUFFIX=8 ;; 21319 esac 21320fi 21321if test x$ADMIN_MAN_DIR = x ; then 21322 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 21323fi 21324 21325 21326 21327 21328 21329 21330 21331 21332 21333 21334 21335 21336 21337 21338 21339 21340 21341# Check whether --with-release-version was given. 21342if test "${with_release_version+set}" = set; then 21343 withval=$with_release_version; RELEASE_VERSION="$withval" 21344else 21345 RELEASE_VERSION="" 21346fi 21347 21348 if test "x$RELEASE_VERSION" != "x"; then 21349 PACKAGE="$PACKAGE-$RELEASE_VERSION" 21350 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 21351 { echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5 21352echo "$as_me: Building with package name set to $PACKAGE" >&6;} 21353 fi 21354 21355cat >>confdefs.h <<_ACEOF 21356#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 21357_ACEOF 21358 21359 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 21360 if test "x$PVM" = "x"; then 21361 PVM="0" 21362 fi 21363 21364cat >>confdefs.h <<_ACEOF 21365#define PACKAGE_VERSION_MINOR $PVM 21366_ACEOF 21367 21368 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 21369 if test "x$PVP" = "x"; then 21370 PVP="0" 21371 fi 21372 21373cat >>confdefs.h <<_ACEOF 21374#define PACKAGE_VERSION_PATCHLEVEL $PVP 21375_ACEOF 21376 21377 21378 21379ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 21380 21381cat >confcache <<\_ACEOF 21382# This file is a shell script that caches the results of configure 21383# tests run on this system so they can be shared between configure 21384# scripts and configure runs, see configure's option --config-cache. 21385# It is not useful on other systems. If it contains results you don't 21386# want to keep, you may remove or edit it. 21387# 21388# config.status only pays attention to the cache file if you give it 21389# the --recheck option to rerun configure. 21390# 21391# `ac_cv_env_foo' variables (set or unset) will be overridden when 21392# loading this file, other *unset* `ac_cv_foo' will be assigned the 21393# following values. 21394 21395_ACEOF 21396 21397# The following way of writing the cache mishandles newlines in values, 21398# but we know of no workaround that is simple, portable, and efficient. 21399# So, we kill variables containing newlines. 21400# Ultrix sh set writes to stderr and can't be redirected directly, 21401# and sets the high bit in the cache file unless we assign to the vars. 21402( 21403 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 21404 eval ac_val=\$$ac_var 21405 case $ac_val in #( 21406 *${as_nl}*) 21407 case $ac_var in #( 21408 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 21409echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 21410 esac 21411 case $ac_var in #( 21412 _ | IFS | as_nl) ;; #( 21413 *) $as_unset $ac_var ;; 21414 esac ;; 21415 esac 21416 done 21417 21418 (set) 2>&1 | 21419 case $as_nl`(ac_space=' '; set) 2>&1` in #( 21420 *${as_nl}ac_space=\ *) 21421 # `set' does not quote correctly, so add quotes (double-quote 21422 # substitution turns \\\\ into \\, and sed turns \\ into \). 21423 sed -n \ 21424 "s/'/'\\\\''/g; 21425 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21426 ;; #( 21427 *) 21428 # `set' quotes correctly as required by POSIX, so do not add quotes. 21429 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21430 ;; 21431 esac | 21432 sort 21433) | 21434 sed ' 21435 /^ac_cv_env_/b end 21436 t clear 21437 :clear 21438 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 21439 t end 21440 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21441 :end' >>confcache 21442if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 21443 if test -w "$cache_file"; then 21444 test "x$cache_file" != "x/dev/null" && 21445 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 21446echo "$as_me: updating cache $cache_file" >&6;} 21447 cat confcache >$cache_file 21448 else 21449 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 21450echo "$as_me: not updating unwritable cache $cache_file" >&6;} 21451 fi 21452fi 21453rm -f confcache 21454 21455test "x$prefix" = xNONE && prefix=$ac_default_prefix 21456# Let make expand exec_prefix. 21457test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21458 21459DEFS=-DHAVE_CONFIG_H 21460 21461ac_libobjs= 21462ac_ltlibobjs= 21463for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21464 # 1. Remove the extension, and $U if already installed. 21465 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21466 ac_i=`echo "$ac_i" | sed "$ac_script"` 21467 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21468 # will be set to the directory where LIBOBJS objects are built. 21469 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21470 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 21471done 21472LIBOBJS=$ac_libobjs 21473 21474LTLIBOBJS=$ac_ltlibobjs 21475 21476 21477if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 21478 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 21479Usually this means the macro was only invoked conditionally." >&5 21480echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 21481Usually this means the macro was only invoked conditionally." >&2;} 21482 { (exit 1); exit 1; }; } 21483fi 21484if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 21485 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 21486Usually this means the macro was only invoked conditionally." >&5 21487echo "$as_me: error: conditional \"AMDEP\" was never defined. 21488Usually this means the macro was only invoked conditionally." >&2;} 21489 { (exit 1); exit 1; }; } 21490fi 21491if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21492 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 21493Usually this means the macro was only invoked conditionally." >&5 21494echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 21495Usually this means the macro was only invoked conditionally." >&2;} 21496 { (exit 1); exit 1; }; } 21497fi 21498if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 21499 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 21500Usually this means the macro was only invoked conditionally." >&5 21501echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 21502Usually this means the macro was only invoked conditionally." >&2;} 21503 { (exit 1); exit 1; }; } 21504fi 21505if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21506 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 21507Usually this means the macro was only invoked conditionally." >&5 21508echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 21509Usually this means the macro was only invoked conditionally." >&2;} 21510 { (exit 1); exit 1; }; } 21511fi 21512if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then 21513 { { echo "$as_me:$LINENO: error: conditional \"DRI\" was never defined. 21514Usually this means the macro was only invoked conditionally." >&5 21515echo "$as_me: error: conditional \"DRI\" was never defined. 21516Usually this means the macro was only invoked conditionally." >&2;} 21517 { (exit 1); exit 1; }; } 21518fi 21519if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then 21520 { { echo "$as_me:$LINENO: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined. 21521Usually this means the macro was only invoked conditionally." >&5 21522echo "$as_me: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined. 21523Usually this means the macro was only invoked conditionally." >&2;} 21524 { (exit 1); exit 1; }; } 21525fi 21526 21527: ${CONFIG_STATUS=./config.status} 21528ac_clean_files_save=$ac_clean_files 21529ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21530{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 21531echo "$as_me: creating $CONFIG_STATUS" >&6;} 21532cat >$CONFIG_STATUS <<_ACEOF 21533#! $SHELL 21534# Generated by $as_me. 21535# Run this file to recreate the current configuration. 21536# Compiler output produced by configure, useful for debugging 21537# configure, is in config.log if it exists. 21538 21539debug=false 21540ac_cs_recheck=false 21541ac_cs_silent=false 21542SHELL=\${CONFIG_SHELL-$SHELL} 21543_ACEOF 21544 21545cat >>$CONFIG_STATUS <<\_ACEOF 21546## --------------------- ## 21547## M4sh Initialization. ## 21548## --------------------- ## 21549 21550# Be more Bourne compatible 21551DUALCASE=1; export DUALCASE # for MKS sh 21552if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 21553 emulate sh 21554 NULLCMD=: 21555 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 21556 # is contrary to our usage. Disable this feature. 21557 alias -g '${1+"$@"}'='"$@"' 21558 setopt NO_GLOB_SUBST 21559else 21560 case `(set -o) 2>/dev/null` in 21561 *posix*) set -o posix ;; 21562esac 21563 21564fi 21565 21566 21567 21568 21569# PATH needs CR 21570# Avoid depending upon Character Ranges. 21571as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21572as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21573as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21574as_cr_digits='0123456789' 21575as_cr_alnum=$as_cr_Letters$as_cr_digits 21576 21577# The user is always right. 21578if test "${PATH_SEPARATOR+set}" != set; then 21579 echo "#! /bin/sh" >conf$$.sh 21580 echo "exit 0" >>conf$$.sh 21581 chmod +x conf$$.sh 21582 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 21583 PATH_SEPARATOR=';' 21584 else 21585 PATH_SEPARATOR=: 21586 fi 21587 rm -f conf$$.sh 21588fi 21589 21590# Support unset when possible. 21591if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 21592 as_unset=unset 21593else 21594 as_unset=false 21595fi 21596 21597 21598# IFS 21599# We need space, tab and new line, in precisely that order. Quoting is 21600# there to prevent editors from complaining about space-tab. 21601# (If _AS_PATH_WALK were called with IFS unset, it would disable word 21602# splitting by setting IFS to empty value.) 21603as_nl=' 21604' 21605IFS=" "" $as_nl" 21606 21607# Find who we are. Look in the path if we contain no directory separator. 21608case $0 in 21609 *[\\/]* ) as_myself=$0 ;; 21610 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21611for as_dir in $PATH 21612do 21613 IFS=$as_save_IFS 21614 test -z "$as_dir" && as_dir=. 21615 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 21616done 21617IFS=$as_save_IFS 21618 21619 ;; 21620esac 21621# We did not find ourselves, most probably we were run as `sh COMMAND' 21622# in which case we are not to be found in the path. 21623if test "x$as_myself" = x; then 21624 as_myself=$0 21625fi 21626if test ! -f "$as_myself"; then 21627 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 21628 { (exit 1); exit 1; } 21629fi 21630 21631# Work around bugs in pre-3.0 UWIN ksh. 21632for as_var in ENV MAIL MAILPATH 21633do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 21634done 21635PS1='$ ' 21636PS2='> ' 21637PS4='+ ' 21638 21639# NLS nuisances. 21640for as_var in \ 21641 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 21642 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 21643 LC_TELEPHONE LC_TIME 21644do 21645 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 21646 eval $as_var=C; export $as_var 21647 else 21648 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 21649 fi 21650done 21651 21652# Required to use basename. 21653if expr a : '\(a\)' >/dev/null 2>&1 && 21654 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21655 as_expr=expr 21656else 21657 as_expr=false 21658fi 21659 21660if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21661 as_basename=basename 21662else 21663 as_basename=false 21664fi 21665 21666 21667# Name of the executable. 21668as_me=`$as_basename -- "$0" || 21669$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21670 X"$0" : 'X\(//\)$' \| \ 21671 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21672echo X/"$0" | 21673 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21674 s//\1/ 21675 q 21676 } 21677 /^X\/\(\/\/\)$/{ 21678 s//\1/ 21679 q 21680 } 21681 /^X\/\(\/\).*/{ 21682 s//\1/ 21683 q 21684 } 21685 s/.*/./; q'` 21686 21687# CDPATH. 21688$as_unset CDPATH 21689 21690 21691 21692 as_lineno_1=$LINENO 21693 as_lineno_2=$LINENO 21694 test "x$as_lineno_1" != "x$as_lineno_2" && 21695 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 21696 21697 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 21698 # uniformly replaced by the line number. The first 'sed' inserts a 21699 # line-number line after each line using $LINENO; the second 'sed' 21700 # does the real work. The second script uses 'N' to pair each 21701 # line-number line with the line containing $LINENO, and appends 21702 # trailing '-' during substitution so that $LINENO is not a special 21703 # case at line end. 21704 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 21705 # scripts with optimization help from Paolo Bonzini. Blame Lee 21706 # E. McMahon (1931-1989) for sed's syntax. :-) 21707 sed -n ' 21708 p 21709 /[$]LINENO/= 21710 ' <$as_myself | 21711 sed ' 21712 s/[$]LINENO.*/&-/ 21713 t lineno 21714 b 21715 :lineno 21716 N 21717 :loop 21718 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 21719 t loop 21720 s/-\n.*// 21721 ' >$as_me.lineno && 21722 chmod +x "$as_me.lineno" || 21723 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 21724 { (exit 1); exit 1; }; } 21725 21726 # Don't try to exec as it changes $[0], causing all sort of problems 21727 # (the dirname of $[0] is not the place where we might find the 21728 # original and so on. Autoconf is especially sensitive to this). 21729 . "./$as_me.lineno" 21730 # Exit status is that of the last command. 21731 exit 21732} 21733 21734 21735if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21736 as_dirname=dirname 21737else 21738 as_dirname=false 21739fi 21740 21741ECHO_C= ECHO_N= ECHO_T= 21742case `echo -n x` in 21743-n*) 21744 case `echo 'x\c'` in 21745 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21746 *) ECHO_C='\c';; 21747 esac;; 21748*) 21749 ECHO_N='-n';; 21750esac 21751 21752if expr a : '\(a\)' >/dev/null 2>&1 && 21753 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21754 as_expr=expr 21755else 21756 as_expr=false 21757fi 21758 21759rm -f conf$$ conf$$.exe conf$$.file 21760if test -d conf$$.dir; then 21761 rm -f conf$$.dir/conf$$.file 21762else 21763 rm -f conf$$.dir 21764 mkdir conf$$.dir 21765fi 21766echo >conf$$.file 21767if ln -s conf$$.file conf$$ 2>/dev/null; then 21768 as_ln_s='ln -s' 21769 # ... but there are two gotchas: 21770 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 21771 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 21772 # In both cases, we have to default to `cp -p'. 21773 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21774 as_ln_s='cp -p' 21775elif ln conf$$.file conf$$ 2>/dev/null; then 21776 as_ln_s=ln 21777else 21778 as_ln_s='cp -p' 21779fi 21780rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21781rmdir conf$$.dir 2>/dev/null 21782 21783if mkdir -p . 2>/dev/null; then 21784 as_mkdir_p=: 21785else 21786 test -d ./-p && rmdir ./-p 21787 as_mkdir_p=false 21788fi 21789 21790if test -x / >/dev/null 2>&1; then 21791 as_test_x='test -x' 21792else 21793 if ls -dL / >/dev/null 2>&1; then 21794 as_ls_L_option=L 21795 else 21796 as_ls_L_option= 21797 fi 21798 as_test_x=' 21799 eval sh -c '\'' 21800 if test -d "$1"; then 21801 test -d "$1/."; 21802 else 21803 case $1 in 21804 -*)set "./$1";; 21805 esac; 21806 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 21807 ???[sx]*):;;*)false;;esac;fi 21808 '\'' sh 21809 ' 21810fi 21811as_executable_p=$as_test_x 21812 21813# Sed expression to map a string onto a valid CPP name. 21814as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21815 21816# Sed expression to map a string onto a valid variable name. 21817as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21818 21819 21820exec 6>&1 21821 21822# Save the log message, to keep $[0] and so on meaningful, and to 21823# report actual input values of CONFIG_FILES etc. instead of their 21824# values after options handling. 21825ac_log=" 21826This file was extended by xf86-video-savage $as_me 2.2.1, which was 21827generated by GNU Autoconf 2.61. Invocation command line was 21828 21829 CONFIG_FILES = $CONFIG_FILES 21830 CONFIG_HEADERS = $CONFIG_HEADERS 21831 CONFIG_LINKS = $CONFIG_LINKS 21832 CONFIG_COMMANDS = $CONFIG_COMMANDS 21833 $ $0 $@ 21834 21835on `(hostname || uname -n) 2>/dev/null | sed 1q` 21836" 21837 21838_ACEOF 21839 21840cat >>$CONFIG_STATUS <<_ACEOF 21841# Files that config.status was made for. 21842config_files="$ac_config_files" 21843config_headers="$ac_config_headers" 21844config_commands="$ac_config_commands" 21845 21846_ACEOF 21847 21848cat >>$CONFIG_STATUS <<\_ACEOF 21849ac_cs_usage="\ 21850\`$as_me' instantiates files from templates according to the 21851current configuration. 21852 21853Usage: $0 [OPTIONS] [FILE]... 21854 21855 -h, --help print this help, then exit 21856 -V, --version print version number and configuration settings, then exit 21857 -q, --quiet do not print progress messages 21858 -d, --debug don't remove temporary files 21859 --recheck update $as_me by reconfiguring in the same conditions 21860 --file=FILE[:TEMPLATE] 21861 instantiate the configuration file FILE 21862 --header=FILE[:TEMPLATE] 21863 instantiate the configuration header FILE 21864 21865Configuration files: 21866$config_files 21867 21868Configuration headers: 21869$config_headers 21870 21871Configuration commands: 21872$config_commands 21873 21874Report bugs to <bug-autoconf@gnu.org>." 21875 21876_ACEOF 21877cat >>$CONFIG_STATUS <<_ACEOF 21878ac_cs_version="\\ 21879xf86-video-savage config.status 2.2.1 21880configured by $0, generated by GNU Autoconf 2.61, 21881 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 21882 21883Copyright (C) 2006 Free Software Foundation, Inc. 21884This config.status script is free software; the Free Software Foundation 21885gives unlimited permission to copy, distribute and modify it." 21886 21887ac_pwd='$ac_pwd' 21888srcdir='$srcdir' 21889INSTALL='$INSTALL' 21890MKDIR_P='$MKDIR_P' 21891_ACEOF 21892 21893cat >>$CONFIG_STATUS <<\_ACEOF 21894# If no file are specified by the user, then we need to provide default 21895# value. By we need to know if files were specified by the user. 21896ac_need_defaults=: 21897while test $# != 0 21898do 21899 case $1 in 21900 --*=*) 21901 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21902 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21903 ac_shift=: 21904 ;; 21905 *) 21906 ac_option=$1 21907 ac_optarg=$2 21908 ac_shift=shift 21909 ;; 21910 esac 21911 21912 case $ac_option in 21913 # Handling of the options. 21914 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21915 ac_cs_recheck=: ;; 21916 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21917 echo "$ac_cs_version"; exit ;; 21918 --debug | --debu | --deb | --de | --d | -d ) 21919 debug=: ;; 21920 --file | --fil | --fi | --f ) 21921 $ac_shift 21922 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 21923 ac_need_defaults=false;; 21924 --header | --heade | --head | --hea ) 21925 $ac_shift 21926 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 21927 ac_need_defaults=false;; 21928 --he | --h) 21929 # Conflict between --help and --header 21930 { echo "$as_me: error: ambiguous option: $1 21931Try \`$0 --help' for more information." >&2 21932 { (exit 1); exit 1; }; };; 21933 --help | --hel | -h ) 21934 echo "$ac_cs_usage"; exit ;; 21935 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21936 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21937 ac_cs_silent=: ;; 21938 21939 # This is an error. 21940 -*) { echo "$as_me: error: unrecognized option: $1 21941Try \`$0 --help' for more information." >&2 21942 { (exit 1); exit 1; }; } ;; 21943 21944 *) ac_config_targets="$ac_config_targets $1" 21945 ac_need_defaults=false ;; 21946 21947 esac 21948 shift 21949done 21950 21951ac_configure_extra_args= 21952 21953if $ac_cs_silent; then 21954 exec 6>/dev/null 21955 ac_configure_extra_args="$ac_configure_extra_args --silent" 21956fi 21957 21958_ACEOF 21959cat >>$CONFIG_STATUS <<_ACEOF 21960if \$ac_cs_recheck; then 21961 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 21962 CONFIG_SHELL=$SHELL 21963 export CONFIG_SHELL 21964 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21965fi 21966 21967_ACEOF 21968cat >>$CONFIG_STATUS <<\_ACEOF 21969exec 5>>config.log 21970{ 21971 echo 21972 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21973## Running $as_me. ## 21974_ASBOX 21975 echo "$ac_log" 21976} >&5 21977 21978_ACEOF 21979cat >>$CONFIG_STATUS <<_ACEOF 21980# 21981# INIT-COMMANDS 21982# 21983AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 21984 21985_ACEOF 21986 21987cat >>$CONFIG_STATUS <<\_ACEOF 21988 21989# Handling of arguments. 21990for ac_config_target in $ac_config_targets 21991do 21992 case $ac_config_target in 21993 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 21994 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21995 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21996 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 21997 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 21998 21999 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 22000echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 22001 { (exit 1); exit 1; }; };; 22002 esac 22003done 22004 22005 22006# If the user did not use the arguments to specify the items to instantiate, 22007# then the envvar interface is used. Set only those that are not. 22008# We use the long form for the default assignment because of an extremely 22009# bizarre bug on SunOS 4.1.3. 22010if $ac_need_defaults; then 22011 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 22012 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 22013 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 22014fi 22015 22016# Have a temporary directory for convenience. Make it in the build tree 22017# simply because there is no reason against having it here, and in addition, 22018# creating and moving files from /tmp can sometimes cause problems. 22019# Hook for its removal unless debugging. 22020# Note that there is a small window in which the directory will not be cleaned: 22021# after its creation but before its name has been assigned to `$tmp'. 22022$debug || 22023{ 22024 tmp= 22025 trap 'exit_status=$? 22026 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 22027' 0 22028 trap '{ (exit 1); exit 1; }' 1 2 13 15 22029} 22030# Create a (secure) tmp directory for tmp files. 22031 22032{ 22033 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 22034 test -n "$tmp" && test -d "$tmp" 22035} || 22036{ 22037 tmp=./conf$$-$RANDOM 22038 (umask 077 && mkdir "$tmp") 22039} || 22040{ 22041 echo "$me: cannot create a temporary directory in ." >&2 22042 { (exit 1); exit 1; } 22043} 22044 22045# 22046# Set up the sed scripts for CONFIG_FILES section. 22047# 22048 22049# No need to generate the scripts if there are no CONFIG_FILES. 22050# This happens for instance when ./config.status config.h 22051if test -n "$CONFIG_FILES"; then 22052 22053_ACEOF 22054 22055 22056 22057ac_delim='%!_!# ' 22058for ac_last_try in false false false false false :; do 22059 cat >conf$$subs.sed <<_ACEOF 22060SHELL!$SHELL$ac_delim 22061PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 22062PACKAGE_NAME!$PACKAGE_NAME$ac_delim 22063PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 22064PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 22065PACKAGE_STRING!$PACKAGE_STRING$ac_delim 22066PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 22067exec_prefix!$exec_prefix$ac_delim 22068prefix!$prefix$ac_delim 22069program_transform_name!$program_transform_name$ac_delim 22070bindir!$bindir$ac_delim 22071sbindir!$sbindir$ac_delim 22072libexecdir!$libexecdir$ac_delim 22073datarootdir!$datarootdir$ac_delim 22074datadir!$datadir$ac_delim 22075sysconfdir!$sysconfdir$ac_delim 22076sharedstatedir!$sharedstatedir$ac_delim 22077localstatedir!$localstatedir$ac_delim 22078includedir!$includedir$ac_delim 22079oldincludedir!$oldincludedir$ac_delim 22080docdir!$docdir$ac_delim 22081infodir!$infodir$ac_delim 22082htmldir!$htmldir$ac_delim 22083dvidir!$dvidir$ac_delim 22084pdfdir!$pdfdir$ac_delim 22085psdir!$psdir$ac_delim 22086libdir!$libdir$ac_delim 22087localedir!$localedir$ac_delim 22088mandir!$mandir$ac_delim 22089DEFS!$DEFS$ac_delim 22090ECHO_C!$ECHO_C$ac_delim 22091ECHO_N!$ECHO_N$ac_delim 22092ECHO_T!$ECHO_T$ac_delim 22093LIBS!$LIBS$ac_delim 22094build_alias!$build_alias$ac_delim 22095host_alias!$host_alias$ac_delim 22096target_alias!$target_alias$ac_delim 22097INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 22098INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 22099INSTALL_DATA!$INSTALL_DATA$ac_delim 22100am__isrc!$am__isrc$ac_delim 22101CYGPATH_W!$CYGPATH_W$ac_delim 22102PACKAGE!$PACKAGE$ac_delim 22103VERSION!$VERSION$ac_delim 22104ACLOCAL!$ACLOCAL$ac_delim 22105AUTOCONF!$AUTOCONF$ac_delim 22106AUTOMAKE!$AUTOMAKE$ac_delim 22107AUTOHEADER!$AUTOHEADER$ac_delim 22108MAKEINFO!$MAKEINFO$ac_delim 22109install_sh!$install_sh$ac_delim 22110STRIP!$STRIP$ac_delim 22111INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 22112mkdir_p!$mkdir_p$ac_delim 22113AWK!$AWK$ac_delim 22114SET_MAKE!$SET_MAKE$ac_delim 22115am__leading_dot!$am__leading_dot$ac_delim 22116AMTAR!$AMTAR$ac_delim 22117am__tar!$am__tar$ac_delim 22118am__untar!$am__untar$ac_delim 22119MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim 22120MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim 22121MAINT!$MAINT$ac_delim 22122build!$build$ac_delim 22123build_cpu!$build_cpu$ac_delim 22124build_vendor!$build_vendor$ac_delim 22125build_os!$build_os$ac_delim 22126host!$host$ac_delim 22127host_cpu!$host_cpu$ac_delim 22128host_vendor!$host_vendor$ac_delim 22129host_os!$host_os$ac_delim 22130CC!$CC$ac_delim 22131CFLAGS!$CFLAGS$ac_delim 22132LDFLAGS!$LDFLAGS$ac_delim 22133CPPFLAGS!$CPPFLAGS$ac_delim 22134ac_ct_CC!$ac_ct_CC$ac_delim 22135EXEEXT!$EXEEXT$ac_delim 22136OBJEXT!$OBJEXT$ac_delim 22137DEPDIR!$DEPDIR$ac_delim 22138am__include!$am__include$ac_delim 22139am__quote!$am__quote$ac_delim 22140AMDEP_TRUE!$AMDEP_TRUE$ac_delim 22141AMDEP_FALSE!$AMDEP_FALSE$ac_delim 22142AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 22143CCDEPMODE!$CCDEPMODE$ac_delim 22144am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 22145am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 22146SED!$SED$ac_delim 22147GREP!$GREP$ac_delim 22148EGREP!$EGREP$ac_delim 22149LN_S!$LN_S$ac_delim 22150ECHO!$ECHO$ac_delim 22151AR!$AR$ac_delim 22152RANLIB!$RANLIB$ac_delim 22153CPP!$CPP$ac_delim 22154CXX!$CXX$ac_delim 22155CXXFLAGS!$CXXFLAGS$ac_delim 22156ac_ct_CXX!$ac_ct_CXX$ac_delim 22157_ACEOF 22158 22159 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 22160 break 22161 elif $ac_last_try; then 22162 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22163echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22164 { (exit 1); exit 1; }; } 22165 else 22166 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22167 fi 22168done 22169 22170ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 22171if test -n "$ac_eof"; then 22172 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 22173 ac_eof=`expr $ac_eof + 1` 22174fi 22175 22176cat >>$CONFIG_STATUS <<_ACEOF 22177cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 22178/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22179_ACEOF 22180sed ' 22181s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 22182s/^/s,@/; s/!/@,|#_!!_#|/ 22183:n 22184t n 22185s/'"$ac_delim"'$/,g/; t 22186s/$/\\/; p 22187N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 22188' >>$CONFIG_STATUS <conf$$subs.sed 22189rm -f conf$$subs.sed 22190cat >>$CONFIG_STATUS <<_ACEOF 22191CEOF$ac_eof 22192_ACEOF 22193 22194 22195ac_delim='%!_!# ' 22196for ac_last_try in false false false false false :; do 22197 cat >conf$$subs.sed <<_ACEOF 22198CXXDEPMODE!$CXXDEPMODE$ac_delim 22199am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim 22200am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim 22201CXXCPP!$CXXCPP$ac_delim 22202F77!$F77$ac_delim 22203FFLAGS!$FFLAGS$ac_delim 22204ac_ct_F77!$ac_ct_F77$ac_delim 22205LIBTOOL!$LIBTOOL$ac_delim 22206PKG_CONFIG!$PKG_CONFIG$ac_delim 22207XORG_CFLAGS!$XORG_CFLAGS$ac_delim 22208XORG_LIBS!$XORG_LIBS$ac_delim 22209DRI_TRUE!$DRI_TRUE$ac_delim 22210DRI_FALSE!$DRI_FALSE$ac_delim 22211DRI_CFLAGS!$DRI_CFLAGS$ac_delim 22212DRI_LIBS!$DRI_LIBS$ac_delim 22213PCIACCESS_CFLAGS!$PCIACCESS_CFLAGS$ac_delim 22214PCIACCESS_LIBS!$PCIACCESS_LIBS$ac_delim 22215XSERVER_LIBPCIACCESS_TRUE!$XSERVER_LIBPCIACCESS_TRUE$ac_delim 22216XSERVER_LIBPCIACCESS_FALSE!$XSERVER_LIBPCIACCESS_FALSE$ac_delim 22217moduledir!$moduledir$ac_delim 22218DRIVER_NAME!$DRIVER_NAME$ac_delim 22219APP_MAN_SUFFIX!$APP_MAN_SUFFIX$ac_delim 22220LIB_MAN_SUFFIX!$LIB_MAN_SUFFIX$ac_delim 22221FILE_MAN_SUFFIX!$FILE_MAN_SUFFIX$ac_delim 22222MISC_MAN_SUFFIX!$MISC_MAN_SUFFIX$ac_delim 22223DRIVER_MAN_SUFFIX!$DRIVER_MAN_SUFFIX$ac_delim 22224ADMIN_MAN_SUFFIX!$ADMIN_MAN_SUFFIX$ac_delim 22225APP_MAN_DIR!$APP_MAN_DIR$ac_delim 22226LIB_MAN_DIR!$LIB_MAN_DIR$ac_delim 22227FILE_MAN_DIR!$FILE_MAN_DIR$ac_delim 22228MISC_MAN_DIR!$MISC_MAN_DIR$ac_delim 22229DRIVER_MAN_DIR!$DRIVER_MAN_DIR$ac_delim 22230ADMIN_MAN_DIR!$ADMIN_MAN_DIR$ac_delim 22231LIBOBJS!$LIBOBJS$ac_delim 22232LTLIBOBJS!$LTLIBOBJS$ac_delim 22233_ACEOF 22234 22235 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 35; then 22236 break 22237 elif $ac_last_try; then 22238 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22239echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22240 { (exit 1); exit 1; }; } 22241 else 22242 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22243 fi 22244done 22245 22246ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 22247if test -n "$ac_eof"; then 22248 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 22249 ac_eof=`expr $ac_eof + 1` 22250fi 22251 22252cat >>$CONFIG_STATUS <<_ACEOF 22253cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 22254/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 22255_ACEOF 22256sed ' 22257s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 22258s/^/s,@/; s/!/@,|#_!!_#|/ 22259:n 22260t n 22261s/'"$ac_delim"'$/,g/; t 22262s/$/\\/; p 22263N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 22264' >>$CONFIG_STATUS <conf$$subs.sed 22265rm -f conf$$subs.sed 22266cat >>$CONFIG_STATUS <<_ACEOF 22267:end 22268s/|#_!!_#|//g 22269CEOF$ac_eof 22270_ACEOF 22271 22272 22273# VPATH may cause trouble with some makes, so we remove $(srcdir), 22274# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 22275# trailing colons and then remove the whole line if VPATH becomes empty 22276# (actually we leave an empty line to preserve line numbers). 22277if test "x$srcdir" = x.; then 22278 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 22279s/:*\$(srcdir):*/:/ 22280s/:*\${srcdir}:*/:/ 22281s/:*@srcdir@:*/:/ 22282s/^\([^=]*=[ ]*\):*/\1/ 22283s/:*$// 22284s/^[^=]*=[ ]*$// 22285}' 22286fi 22287 22288cat >>$CONFIG_STATUS <<\_ACEOF 22289fi # test -n "$CONFIG_FILES" 22290 22291 22292for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 22293do 22294 case $ac_tag in 22295 :[FHLC]) ac_mode=$ac_tag; continue;; 22296 esac 22297 case $ac_mode$ac_tag in 22298 :[FHL]*:*);; 22299 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 22300echo "$as_me: error: Invalid tag $ac_tag." >&2;} 22301 { (exit 1); exit 1; }; };; 22302 :[FH]-) ac_tag=-:-;; 22303 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 22304 esac 22305 ac_save_IFS=$IFS 22306 IFS=: 22307 set x $ac_tag 22308 IFS=$ac_save_IFS 22309 shift 22310 ac_file=$1 22311 shift 22312 22313 case $ac_mode in 22314 :L) ac_source=$1;; 22315 :[FH]) 22316 ac_file_inputs= 22317 for ac_f 22318 do 22319 case $ac_f in 22320 -) ac_f="$tmp/stdin";; 22321 *) # Look for the file first in the build tree, then in the source tree 22322 # (if the path is not absolute). The absolute path cannot be DOS-style, 22323 # because $ac_f cannot contain `:'. 22324 test -f "$ac_f" || 22325 case $ac_f in 22326 [\\/$]*) false;; 22327 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 22328 esac || 22329 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 22330echo "$as_me: error: cannot find input file: $ac_f" >&2;} 22331 { (exit 1); exit 1; }; };; 22332 esac 22333 ac_file_inputs="$ac_file_inputs $ac_f" 22334 done 22335 22336 # Let's still pretend it is `configure' which instantiates (i.e., don't 22337 # use $as_me), people would be surprised to read: 22338 # /* config.h. Generated by config.status. */ 22339 configure_input="Generated from "`IFS=: 22340 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 22341 if test x"$ac_file" != x-; then 22342 configure_input="$ac_file. $configure_input" 22343 { echo "$as_me:$LINENO: creating $ac_file" >&5 22344echo "$as_me: creating $ac_file" >&6;} 22345 fi 22346 22347 case $ac_tag in 22348 *:-:* | *:-) cat >"$tmp/stdin";; 22349 esac 22350 ;; 22351 esac 22352 22353 ac_dir=`$as_dirname -- "$ac_file" || 22354$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22355 X"$ac_file" : 'X\(//\)[^/]' \| \ 22356 X"$ac_file" : 'X\(//\)$' \| \ 22357 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 22358echo X"$ac_file" | 22359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22360 s//\1/ 22361 q 22362 } 22363 /^X\(\/\/\)[^/].*/{ 22364 s//\1/ 22365 q 22366 } 22367 /^X\(\/\/\)$/{ 22368 s//\1/ 22369 q 22370 } 22371 /^X\(\/\).*/{ 22372 s//\1/ 22373 q 22374 } 22375 s/.*/./; q'` 22376 { as_dir="$ac_dir" 22377 case $as_dir in #( 22378 -*) as_dir=./$as_dir;; 22379 esac 22380 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 22381 as_dirs= 22382 while :; do 22383 case $as_dir in #( 22384 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 22385 *) as_qdir=$as_dir;; 22386 esac 22387 as_dirs="'$as_qdir' $as_dirs" 22388 as_dir=`$as_dirname -- "$as_dir" || 22389$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22390 X"$as_dir" : 'X\(//\)[^/]' \| \ 22391 X"$as_dir" : 'X\(//\)$' \| \ 22392 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22393echo X"$as_dir" | 22394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22395 s//\1/ 22396 q 22397 } 22398 /^X\(\/\/\)[^/].*/{ 22399 s//\1/ 22400 q 22401 } 22402 /^X\(\/\/\)$/{ 22403 s//\1/ 22404 q 22405 } 22406 /^X\(\/\).*/{ 22407 s//\1/ 22408 q 22409 } 22410 s/.*/./; q'` 22411 test -d "$as_dir" && break 22412 done 22413 test -z "$as_dirs" || eval "mkdir $as_dirs" 22414 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 22415echo "$as_me: error: cannot create directory $as_dir" >&2;} 22416 { (exit 1); exit 1; }; }; } 22417 ac_builddir=. 22418 22419case "$ac_dir" in 22420.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22421*) 22422 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 22423 # A ".." for each directory in $ac_dir_suffix. 22424 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 22425 case $ac_top_builddir_sub in 22426 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22427 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22428 esac ;; 22429esac 22430ac_abs_top_builddir=$ac_pwd 22431ac_abs_builddir=$ac_pwd$ac_dir_suffix 22432# for backward compatibility: 22433ac_top_builddir=$ac_top_build_prefix 22434 22435case $srcdir in 22436 .) # We are building in place. 22437 ac_srcdir=. 22438 ac_top_srcdir=$ac_top_builddir_sub 22439 ac_abs_top_srcdir=$ac_pwd ;; 22440 [\\/]* | ?:[\\/]* ) # Absolute name. 22441 ac_srcdir=$srcdir$ac_dir_suffix; 22442 ac_top_srcdir=$srcdir 22443 ac_abs_top_srcdir=$srcdir ;; 22444 *) # Relative name. 22445 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22446 ac_top_srcdir=$ac_top_build_prefix$srcdir 22447 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22448esac 22449ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22450 22451 22452 case $ac_mode in 22453 :F) 22454 # 22455 # CONFIG_FILE 22456 # 22457 22458 case $INSTALL in 22459 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22460 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22461 esac 22462 ac_MKDIR_P=$MKDIR_P 22463 case $MKDIR_P in 22464 [\\/$]* | ?:[\\/]* ) ;; 22465 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 22466 esac 22467_ACEOF 22468 22469cat >>$CONFIG_STATUS <<\_ACEOF 22470# If the template does not know about datarootdir, expand it. 22471# FIXME: This hack should be removed a few years after 2.60. 22472ac_datarootdir_hack=; ac_datarootdir_seen= 22473 22474case `sed -n '/datarootdir/ { 22475 p 22476 q 22477} 22478/@datadir@/p 22479/@docdir@/p 22480/@infodir@/p 22481/@localedir@/p 22482/@mandir@/p 22483' $ac_file_inputs` in 22484*datarootdir*) ac_datarootdir_seen=yes;; 22485*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22486 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22487echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22488_ACEOF 22489cat >>$CONFIG_STATUS <<_ACEOF 22490 ac_datarootdir_hack=' 22491 s&@datadir@&$datadir&g 22492 s&@docdir@&$docdir&g 22493 s&@infodir@&$infodir&g 22494 s&@localedir@&$localedir&g 22495 s&@mandir@&$mandir&g 22496 s&\\\${datarootdir}&$datarootdir&g' ;; 22497esac 22498_ACEOF 22499 22500# Neutralize VPATH when `$srcdir' = `.'. 22501# Shell code in configure.ac might set extrasub. 22502# FIXME: do we really want to maintain this feature? 22503cat >>$CONFIG_STATUS <<_ACEOF 22504 sed "$ac_vpsub 22505$extrasub 22506_ACEOF 22507cat >>$CONFIG_STATUS <<\_ACEOF 22508:t 22509/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22510s&@configure_input@&$configure_input&;t t 22511s&@top_builddir@&$ac_top_builddir_sub&;t t 22512s&@srcdir@&$ac_srcdir&;t t 22513s&@abs_srcdir@&$ac_abs_srcdir&;t t 22514s&@top_srcdir@&$ac_top_srcdir&;t t 22515s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22516s&@builddir@&$ac_builddir&;t t 22517s&@abs_builddir@&$ac_abs_builddir&;t t 22518s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22519s&@INSTALL@&$ac_INSTALL&;t t 22520s&@MKDIR_P@&$ac_MKDIR_P&;t t 22521$ac_datarootdir_hack 22522" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 22523 22524test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22525 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 22526 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 22527 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22528which seems to be undefined. Please make sure it is defined." >&5 22529echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22530which seems to be undefined. Please make sure it is defined." >&2;} 22531 22532 rm -f "$tmp/stdin" 22533 case $ac_file in 22534 -) cat "$tmp/out"; rm -f "$tmp/out";; 22535 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 22536 esac 22537 ;; 22538 :H) 22539 # 22540 # CONFIG_HEADER 22541 # 22542_ACEOF 22543 22544# Transform confdefs.h into a sed script `conftest.defines', that 22545# substitutes the proper values into config.h.in to produce config.h. 22546rm -f conftest.defines conftest.tail 22547# First, append a space to every undef/define line, to ease matching. 22548echo 's/$/ /' >conftest.defines 22549# Then, protect against being on the right side of a sed subst, or in 22550# an unquoted here document, in config.status. If some macros were 22551# called several times there might be several #defines for the same 22552# symbol, which is useless. But do not sort them, since the last 22553# AC_DEFINE must be honored. 22554ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 22555# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 22556# NAME is the cpp macro being defined, VALUE is the value it is being given. 22557# PARAMS is the parameter list in the macro definition--in most cases, it's 22558# just an empty string. 22559ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 22560ac_dB='\\)[ (].*,\\1define\\2' 22561ac_dC=' ' 22562ac_dD=' ,' 22563 22564uniq confdefs.h | 22565 sed -n ' 22566 t rset 22567 :rset 22568 s/^[ ]*#[ ]*define[ ][ ]*// 22569 t ok 22570 d 22571 :ok 22572 s/[\\&,]/\\&/g 22573 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 22574 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 22575 ' >>conftest.defines 22576 22577# Remove the space that was appended to ease matching. 22578# Then replace #undef with comments. This is necessary, for 22579# example, in the case of _POSIX_SOURCE, which is predefined and required 22580# on some systems where configure will not decide to define it. 22581# (The regexp can be short, since the line contains either #define or #undef.) 22582echo 's/ $// 22583s,^[ #]*u.*,/* & */,' >>conftest.defines 22584 22585# Break up conftest.defines: 22586ac_max_sed_lines=50 22587 22588# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 22589# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 22590# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 22591# et cetera. 22592ac_in='$ac_file_inputs' 22593ac_out='"$tmp/out1"' 22594ac_nxt='"$tmp/out2"' 22595 22596while : 22597do 22598 # Write a here document: 22599 cat >>$CONFIG_STATUS <<_ACEOF 22600 # First, check the format of the line: 22601 cat >"\$tmp/defines.sed" <<\\CEOF 22602/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 22603/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 22604b 22605:def 22606_ACEOF 22607 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 22608 echo 'CEOF 22609 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 22610 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 22611 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 22612 grep . conftest.tail >/dev/null || break 22613 rm -f conftest.defines 22614 mv conftest.tail conftest.defines 22615done 22616rm -f conftest.defines conftest.tail 22617 22618echo "ac_result=$ac_in" >>$CONFIG_STATUS 22619cat >>$CONFIG_STATUS <<\_ACEOF 22620 if test x"$ac_file" != x-; then 22621 echo "/* $configure_input */" >"$tmp/config.h" 22622 cat "$ac_result" >>"$tmp/config.h" 22623 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 22624 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 22625echo "$as_me: $ac_file is unchanged" >&6;} 22626 else 22627 rm -f $ac_file 22628 mv "$tmp/config.h" $ac_file 22629 fi 22630 else 22631 echo "/* $configure_input */" 22632 cat "$ac_result" 22633 fi 22634 rm -f "$tmp/out12" 22635# Compute $ac_file's index in $config_headers. 22636_am_arg=$ac_file 22637_am_stamp_count=1 22638for _am_header in $config_headers :; do 22639 case $_am_header in 22640 $_am_arg | $_am_arg:* ) 22641 break ;; 22642 * ) 22643 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22644 esac 22645done 22646echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 22647$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22648 X"$_am_arg" : 'X\(//\)[^/]' \| \ 22649 X"$_am_arg" : 'X\(//\)$' \| \ 22650 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 22651echo X"$_am_arg" | 22652 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22653 s//\1/ 22654 q 22655 } 22656 /^X\(\/\/\)[^/].*/{ 22657 s//\1/ 22658 q 22659 } 22660 /^X\(\/\/\)$/{ 22661 s//\1/ 22662 q 22663 } 22664 /^X\(\/\).*/{ 22665 s//\1/ 22666 q 22667 } 22668 s/.*/./; q'`/stamp-h$_am_stamp_count 22669 ;; 22670 22671 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 22672echo "$as_me: executing $ac_file commands" >&6;} 22673 ;; 22674 esac 22675 22676 22677 case $ac_file$ac_mode in 22678 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 22679 # Strip MF so we end up with the name of the file. 22680 mf=`echo "$mf" | sed -e 's/:.*$//'` 22681 # Check whether this is an Automake generated Makefile or not. 22682 # We used to match only the files named `Makefile.in', but 22683 # some people rename them; so instead we look at the file content. 22684 # Grep'ing the first line is not enough: some people post-process 22685 # each Makefile.in and add a new line on top of each file to say so. 22686 # Grep'ing the whole file is not good either: AIX grep has a line 22687 # limit of 2048, but all sed's we know have understand at least 4000. 22688 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 22689 dirpart=`$as_dirname -- "$mf" || 22690$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22691 X"$mf" : 'X\(//\)[^/]' \| \ 22692 X"$mf" : 'X\(//\)$' \| \ 22693 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 22694echo X"$mf" | 22695 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22696 s//\1/ 22697 q 22698 } 22699 /^X\(\/\/\)[^/].*/{ 22700 s//\1/ 22701 q 22702 } 22703 /^X\(\/\/\)$/{ 22704 s//\1/ 22705 q 22706 } 22707 /^X\(\/\).*/{ 22708 s//\1/ 22709 q 22710 } 22711 s/.*/./; q'` 22712 else 22713 continue 22714 fi 22715 # Extract the definition of DEPDIR, am__include, and am__quote 22716 # from the Makefile without running `make'. 22717 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 22718 test -z "$DEPDIR" && continue 22719 am__include=`sed -n 's/^am__include = //p' < "$mf"` 22720 test -z "am__include" && continue 22721 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 22722 # When using ansi2knr, U may be empty or an underscore; expand it 22723 U=`sed -n 's/^U = //p' < "$mf"` 22724 # Find all dependency output files, they are included files with 22725 # $(DEPDIR) in their names. We invoke sed twice because it is the 22726 # simplest approach to changing $(DEPDIR) to its actual value in the 22727 # expansion. 22728 for file in `sed -n " 22729 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 22730 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 22731 # Make sure the directory exists. 22732 test -f "$dirpart/$file" && continue 22733 fdir=`$as_dirname -- "$file" || 22734$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22735 X"$file" : 'X\(//\)[^/]' \| \ 22736 X"$file" : 'X\(//\)$' \| \ 22737 X"$file" : 'X\(/\)' \| . 2>/dev/null || 22738echo X"$file" | 22739 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22740 s//\1/ 22741 q 22742 } 22743 /^X\(\/\/\)[^/].*/{ 22744 s//\1/ 22745 q 22746 } 22747 /^X\(\/\/\)$/{ 22748 s//\1/ 22749 q 22750 } 22751 /^X\(\/\).*/{ 22752 s//\1/ 22753 q 22754 } 22755 s/.*/./; q'` 22756 { as_dir=$dirpart/$fdir 22757 case $as_dir in #( 22758 -*) as_dir=./$as_dir;; 22759 esac 22760 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 22761 as_dirs= 22762 while :; do 22763 case $as_dir in #( 22764 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 22765 *) as_qdir=$as_dir;; 22766 esac 22767 as_dirs="'$as_qdir' $as_dirs" 22768 as_dir=`$as_dirname -- "$as_dir" || 22769$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22770 X"$as_dir" : 'X\(//\)[^/]' \| \ 22771 X"$as_dir" : 'X\(//\)$' \| \ 22772 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22773echo X"$as_dir" | 22774 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22775 s//\1/ 22776 q 22777 } 22778 /^X\(\/\/\)[^/].*/{ 22779 s//\1/ 22780 q 22781 } 22782 /^X\(\/\/\)$/{ 22783 s//\1/ 22784 q 22785 } 22786 /^X\(\/\).*/{ 22787 s//\1/ 22788 q 22789 } 22790 s/.*/./; q'` 22791 test -d "$as_dir" && break 22792 done 22793 test -z "$as_dirs" || eval "mkdir $as_dirs" 22794 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 22795echo "$as_me: error: cannot create directory $as_dir" >&2;} 22796 { (exit 1); exit 1; }; }; } 22797 # echo "creating $dirpart/$file" 22798 echo '# dummy' > "$dirpart/$file" 22799 done 22800done 22801 ;; 22802 22803 esac 22804done # for ac_tag 22805 22806 22807{ (exit 0); exit 0; } 22808_ACEOF 22809chmod +x $CONFIG_STATUS 22810ac_clean_files=$ac_clean_files_save 22811 22812 22813# configure is writing to config.log, and then calls config.status. 22814# config.status does its own redirection, appending to config.log. 22815# Unfortunately, on DOS this fails, as config.log is still kept open 22816# by configure, so config.status won't be able to write to it; its 22817# output is simply discarded. So we exec the FD to /dev/null, 22818# effectively closing config.log, so it can be properly (re)opened and 22819# appended to by config.status. When coming back to configure, we 22820# need to make the FD available again. 22821if test "$no_create" != yes; then 22822 ac_cs_success=: 22823 ac_config_status_args= 22824 test "$silent" = yes && 22825 ac_config_status_args="$ac_config_status_args --quiet" 22826 exec 5>/dev/null 22827 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22828 exec 5>>config.log 22829 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22830 # would make configure fail if this is the last instruction. 22831 $ac_cs_success || { (exit 1); exit 1; } 22832fi 22833 22834