configure revision 047944f3
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.62 for xf86-video-tga 1.2.0. 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, 2007, 2008 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 # Pre-4.2 versions of Zsh do 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 42as_nl=' 43' 44export as_nl 45# Printing a long string crashes Solaris 7 /usr/bin/printf. 46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 49if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83# Support unset when possible. 84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 85 as_unset=unset 86else 87 as_unset=false 88fi 89 90 91# IFS 92# We need space, tab and new line, in precisely that order. Quoting is 93# there to prevent editors from complaining about space-tab. 94# (If _AS_PATH_WALK were called with IFS unset, it would disable word 95# splitting by setting IFS to empty value.) 96IFS=" "" $as_nl" 97 98# Find who we are. Look in the path if we contain no directory separator. 99case $0 in 100 *[\\/]* ) as_myself=$0 ;; 101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 102for as_dir in $PATH 103do 104 IFS=$as_save_IFS 105 test -z "$as_dir" && as_dir=. 106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 107done 108IFS=$as_save_IFS 109 110 ;; 111esac 112# We did not find ourselves, most probably we were run as `sh COMMAND' 113# in which case we are not to be found in the path. 114if test "x$as_myself" = x; then 115 as_myself=$0 116fi 117if test ! -f "$as_myself"; then 118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 119 { (exit 1); exit 1; } 120fi 121 122# Work around bugs in pre-3.0 UWIN ksh. 123for as_var in ENV MAIL MAILPATH 124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# Required to use basename. 137if expr a : '\(a\)' >/dev/null 2>&1 && 138 test "X`expr 00001 : '.*\(...\)'`" = X001; then 139 as_expr=expr 140else 141 as_expr=false 142fi 143 144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 145 as_basename=basename 146else 147 as_basename=false 148fi 149 150 151# Name of the executable. 152as_me=`$as_basename -- "$0" || 153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 154 X"$0" : 'X\(//\)$' \| \ 155 X"$0" : 'X\(/\)' \| . 2>/dev/null || 156$as_echo X/"$0" | 157 sed '/^.*\/\([^/][^/]*\)\/*$/{ 158 s//\1/ 159 q 160 } 161 /^X\/\(\/\/\)$/{ 162 s//\1/ 163 q 164 } 165 /^X\/\(\/\).*/{ 166 s//\1/ 167 q 168 } 169 s/.*/./; q'` 170 171# CDPATH. 172$as_unset CDPATH 173 174 175if test "x$CONFIG_SHELL" = x; then 176 if (eval ":") 2>/dev/null; then 177 as_have_required=yes 178else 179 as_have_required=no 180fi 181 182 if test $as_have_required = yes && (eval ": 183(as_func_return () { 184 (exit \$1) 185} 186as_func_success () { 187 as_func_return 0 188} 189as_func_failure () { 190 as_func_return 1 191} 192as_func_ret_success () { 193 return 0 194} 195as_func_ret_failure () { 196 return 1 197} 198 199exitcode=0 200if as_func_success; then 201 : 202else 203 exitcode=1 204 echo as_func_success failed. 205fi 206 207if as_func_failure; then 208 exitcode=1 209 echo as_func_failure succeeded. 210fi 211 212if as_func_ret_success; then 213 : 214else 215 exitcode=1 216 echo as_func_ret_success failed. 217fi 218 219if as_func_ret_failure; then 220 exitcode=1 221 echo as_func_ret_failure succeeded. 222fi 223 224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 225 : 226else 227 exitcode=1 228 echo positional parameters were not saved. 229fi 230 231test \$exitcode = 0) || { (exit 1); exit 1; } 232 233( 234 as_lineno_1=\$LINENO 235 as_lineno_2=\$LINENO 236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 238") 2> /dev/null; then 239 : 240else 241 as_candidate_shells= 242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 244do 245 IFS=$as_save_IFS 246 test -z "$as_dir" && as_dir=. 247 case $as_dir in 248 /*) 249 for as_base in sh bash ksh sh5; do 250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 251 done;; 252 esac 253done 254IFS=$as_save_IFS 255 256 257 for as_shell in $as_candidate_shells $SHELL; do 258 # Try only shells that exist, to save several forks. 259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 260 { ("$as_shell") 2> /dev/null <<\_ASEOF 261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 262 emulate sh 263 NULLCMD=: 264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 265 # is contrary to our usage. Disable this feature. 266 alias -g '${1+"$@"}'='"$@"' 267 setopt NO_GLOB_SUBST 268else 269 case `(set -o) 2>/dev/null` in 270 *posix*) set -o posix ;; 271esac 272 273fi 274 275 276: 277_ASEOF 278}; then 279 CONFIG_SHELL=$as_shell 280 as_have_required=yes 281 if { "$as_shell" 2> /dev/null <<\_ASEOF 282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 283 emulate sh 284 NULLCMD=: 285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 286 # is contrary to our usage. Disable this feature. 287 alias -g '${1+"$@"}'='"$@"' 288 setopt NO_GLOB_SUBST 289else 290 case `(set -o) 2>/dev/null` in 291 *posix*) set -o posix ;; 292esac 293 294fi 295 296 297: 298(as_func_return () { 299 (exit $1) 300} 301as_func_success () { 302 as_func_return 0 303} 304as_func_failure () { 305 as_func_return 1 306} 307as_func_ret_success () { 308 return 0 309} 310as_func_ret_failure () { 311 return 1 312} 313 314exitcode=0 315if as_func_success; then 316 : 317else 318 exitcode=1 319 echo as_func_success failed. 320fi 321 322if as_func_failure; then 323 exitcode=1 324 echo as_func_failure succeeded. 325fi 326 327if as_func_ret_success; then 328 : 329else 330 exitcode=1 331 echo as_func_ret_success failed. 332fi 333 334if as_func_ret_failure; then 335 exitcode=1 336 echo as_func_ret_failure succeeded. 337fi 338 339if ( set x; as_func_ret_success y && test x = "$1" ); then 340 : 341else 342 exitcode=1 343 echo positional parameters were not saved. 344fi 345 346test $exitcode = 0) || { (exit 1); exit 1; } 347 348( 349 as_lineno_1=$LINENO 350 as_lineno_2=$LINENO 351 test "x$as_lineno_1" != "x$as_lineno_2" && 352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 353 354_ASEOF 355}; then 356 break 357fi 358 359fi 360 361 done 362 363 if test "x$CONFIG_SHELL" != x; then 364 for as_var in BASH_ENV ENV 365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 366 done 367 export CONFIG_SHELL 368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 369fi 370 371 372 if test $as_have_required = no; then 373 echo This script requires a shell more modern than all the 374 echo shells that I found on your system. Please install a 375 echo modern shell, or manually run the script under such a 376 echo shell if you do have one. 377 { (exit 1); exit 1; } 378fi 379 380 381fi 382 383fi 384 385 386 387(eval "as_func_return () { 388 (exit \$1) 389} 390as_func_success () { 391 as_func_return 0 392} 393as_func_failure () { 394 as_func_return 1 395} 396as_func_ret_success () { 397 return 0 398} 399as_func_ret_failure () { 400 return 1 401} 402 403exitcode=0 404if as_func_success; then 405 : 406else 407 exitcode=1 408 echo as_func_success failed. 409fi 410 411if as_func_failure; then 412 exitcode=1 413 echo as_func_failure succeeded. 414fi 415 416if as_func_ret_success; then 417 : 418else 419 exitcode=1 420 echo as_func_ret_success failed. 421fi 422 423if as_func_ret_failure; then 424 exitcode=1 425 echo as_func_ret_failure succeeded. 426fi 427 428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 429 : 430else 431 exitcode=1 432 echo positional parameters were not saved. 433fi 434 435test \$exitcode = 0") || { 436 echo No shell found that supports shell functions. 437 echo Please tell bug-autoconf@gnu.org about your system, 438 echo including any error possibly output before this message. 439 echo This can help us improve future autoconf versions. 440 echo Configuration will now proceed without shell functions. 441} 442 443 444 445 as_lineno_1=$LINENO 446 as_lineno_2=$LINENO 447 test "x$as_lineno_1" != "x$as_lineno_2" && 448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 449 450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 451 # uniformly replaced by the line number. The first 'sed' inserts a 452 # line-number line after each line using $LINENO; the second 'sed' 453 # does the real work. The second script uses 'N' to pair each 454 # line-number line with the line containing $LINENO, and appends 455 # trailing '-' during substitution so that $LINENO is not a special 456 # case at line end. 457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 458 # scripts with optimization help from Paolo Bonzini. Blame Lee 459 # E. McMahon (1931-1989) for sed's syntax. :-) 460 sed -n ' 461 p 462 /[$]LINENO/= 463 ' <$as_myself | 464 sed ' 465 s/[$]LINENO.*/&-/ 466 t lineno 467 b 468 :lineno 469 N 470 :loop 471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 472 t loop 473 s/-\n.*// 474 ' >$as_me.lineno && 475 chmod +x "$as_me.lineno" || 476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 477 { (exit 1); exit 1; }; } 478 479 # Don't try to exec as it changes $[0], causing all sort of problems 480 # (the dirname of $[0] is not the place where we might find the 481 # original and so on. Autoconf is especially sensitive to this). 482 . "./$as_me.lineno" 483 # Exit status is that of the last command. 484 exit 485} 486 487 488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 489 as_dirname=dirname 490else 491 as_dirname=false 492fi 493 494ECHO_C= ECHO_N= ECHO_T= 495case `echo -n x` in 496-n*) 497 case `echo 'x\c'` in 498 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 499 *) ECHO_C='\c';; 500 esac;; 501*) 502 ECHO_N='-n';; 503esac 504if expr a : '\(a\)' >/dev/null 2>&1 && 505 test "X`expr 00001 : '.*\(...\)'`" = X001; then 506 as_expr=expr 507else 508 as_expr=false 509fi 510 511rm -f conf$$ conf$$.exe conf$$.file 512if test -d conf$$.dir; then 513 rm -f conf$$.dir/conf$$.file 514else 515 rm -f conf$$.dir 516 mkdir conf$$.dir 2>/dev/null 517fi 518if (echo >conf$$.file) 2>/dev/null; then 519 if ln -s conf$$.file conf$$ 2>/dev/null; then 520 as_ln_s='ln -s' 521 # ... but there are two gotchas: 522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 524 # In both cases, we have to default to `cp -p'. 525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 526 as_ln_s='cp -p' 527 elif ln conf$$.file conf$$ 2>/dev/null; then 528 as_ln_s=ln 529 else 530 as_ln_s='cp -p' 531 fi 532else 533 as_ln_s='cp -p' 534fi 535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 536rmdir conf$$.dir 2>/dev/null 537 538if mkdir -p . 2>/dev/null; then 539 as_mkdir_p=: 540else 541 test -d ./-p && rmdir ./-p 542 as_mkdir_p=false 543fi 544 545if test -x / >/dev/null 2>&1; then 546 as_test_x='test -x' 547else 548 if ls -dL / >/dev/null 2>&1; then 549 as_ls_L_option=L 550 else 551 as_ls_L_option= 552 fi 553 as_test_x=' 554 eval sh -c '\'' 555 if test -d "$1"; then 556 test -d "$1/."; 557 else 558 case $1 in 559 -*)set "./$1";; 560 esac; 561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 562 ???[sx]*):;;*)false;;esac;fi 563 '\'' sh 564 ' 565fi 566as_executable_p=$as_test_x 567 568# Sed expression to map a string onto a valid CPP name. 569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 570 571# Sed expression to map a string onto a valid variable name. 572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 573 574 575 576 577# Check that we are running under the correct shell. 578SHELL=${CONFIG_SHELL-/bin/sh} 579 580case X$ECHO in 581X*--fallback-echo) 582 # Remove one level of quotation (which was required for Make). 583 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 584 ;; 585esac 586 587echo=${ECHO-echo} 588if test "X$1" = X--no-reexec; then 589 # Discard the --no-reexec flag, and continue. 590 shift 591elif test "X$1" = X--fallback-echo; then 592 # Avoid inline document here, it may be left over 593 : 594elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 595 # Yippee, $echo works! 596 : 597else 598 # Restart under the correct shell. 599 exec $SHELL "$0" --no-reexec ${1+"$@"} 600fi 601 602if test "X$1" = X--fallback-echo; then 603 # used as fallback echo 604 shift 605 cat <<EOF 606$* 607EOF 608 exit 0 609fi 610 611# The HP-UX ksh and POSIX shell print the target directory to stdout 612# if CDPATH is set. 613(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 614 615if test -z "$ECHO"; then 616if test "X${echo_test_string+set}" != Xset; then 617# find a string as large as possible, as long as the shell can cope with it 618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 620 if (echo_test_string=`eval $cmd`) 2>/dev/null && 621 echo_test_string=`eval $cmd` && 622 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 623 then 624 break 625 fi 626 done 627fi 628 629if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 630 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 631 test "X$echo_testing_string" = "X$echo_test_string"; then 632 : 633else 634 # The Solaris, AIX, and Digital Unix default echo programs unquote 635 # backslashes. This makes it impossible to quote backslashes using 636 # echo "$something" | sed 's/\\/\\\\/g' 637 # 638 # So, first we look for a working echo in the user's PATH. 639 640 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 641 for dir in $PATH /usr/ucb; do 642 IFS="$lt_save_ifs" 643 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 644 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 645 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 646 test "X$echo_testing_string" = "X$echo_test_string"; then 647 echo="$dir/echo" 648 break 649 fi 650 done 651 IFS="$lt_save_ifs" 652 653 if test "X$echo" = Xecho; then 654 # We didn't find a better echo, so look for alternatives. 655 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 656 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 657 test "X$echo_testing_string" = "X$echo_test_string"; then 658 # This shell has a builtin print -r that does the trick. 659 echo='print -r' 660 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 661 test "X$CONFIG_SHELL" != X/bin/ksh; then 662 # If we have ksh, try running configure again with it. 663 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 664 export ORIGINAL_CONFIG_SHELL 665 CONFIG_SHELL=/bin/ksh 666 export CONFIG_SHELL 667 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 668 else 669 # Try using printf. 670 echo='printf %s\n' 671 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 672 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 673 test "X$echo_testing_string" = "X$echo_test_string"; then 674 # Cool, printf works 675 : 676 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 677 test "X$echo_testing_string" = 'X\t' && 678 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 679 test "X$echo_testing_string" = "X$echo_test_string"; then 680 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 681 export CONFIG_SHELL 682 SHELL="$CONFIG_SHELL" 683 export SHELL 684 echo="$CONFIG_SHELL $0 --fallback-echo" 685 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 686 test "X$echo_testing_string" = 'X\t' && 687 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 688 test "X$echo_testing_string" = "X$echo_test_string"; then 689 echo="$CONFIG_SHELL $0 --fallback-echo" 690 else 691 # maybe with a smaller string... 692 prev=: 693 694 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 695 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 696 then 697 break 698 fi 699 prev="$cmd" 700 done 701 702 if test "$prev" != 'sed 50q "$0"'; then 703 echo_test_string=`eval $prev` 704 export echo_test_string 705 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 706 else 707 # Oops. We lost completely, so just stick with echo. 708 echo=echo 709 fi 710 fi 711 fi 712 fi 713fi 714fi 715 716# Copy echo and quote the copy suitably for passing to libtool from 717# the Makefile, instead of quoting the original, which is used later. 718ECHO=$echo 719if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 720 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 721fi 722 723 724 725 726tagnames=${tagnames+${tagnames},}CXX 727 728tagnames=${tagnames+${tagnames},}F77 729 730exec 7<&0 </dev/null 6>&1 731 732# Name of the host. 733# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 734# so uname gets run too. 735ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 736 737# 738# Initializations. 739# 740ac_default_prefix=/usr/local 741ac_clean_files= 742ac_config_libobj_dir=. 743LIBOBJS= 744cross_compiling=no 745subdirs= 746MFLAGS= 747MAKEFLAGS= 748SHELL=${CONFIG_SHELL-/bin/sh} 749 750# Identity of this package. 751PACKAGE_NAME='xf86-video-tga' 752PACKAGE_TARNAME='xf86-video-tga' 753PACKAGE_VERSION='1.2.0' 754PACKAGE_STRING='xf86-video-tga 1.2.0' 755PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 756 757ac_unique_file="Makefile.am" 758# Factoring default headers for most tests. 759ac_includes_default="\ 760#include <stdio.h> 761#ifdef HAVE_SYS_TYPES_H 762# include <sys/types.h> 763#endif 764#ifdef HAVE_SYS_STAT_H 765# include <sys/stat.h> 766#endif 767#ifdef STDC_HEADERS 768# include <stdlib.h> 769# include <stddef.h> 770#else 771# ifdef HAVE_STDLIB_H 772# include <stdlib.h> 773# endif 774#endif 775#ifdef HAVE_STRING_H 776# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 777# include <memory.h> 778# endif 779# include <string.h> 780#endif 781#ifdef HAVE_STRINGS_H 782# include <strings.h> 783#endif 784#ifdef HAVE_INTTYPES_H 785# include <inttypes.h> 786#endif 787#ifdef HAVE_STDINT_H 788# include <stdint.h> 789#endif 790#ifdef HAVE_UNISTD_H 791# include <unistd.h> 792#endif" 793 794ac_subst_vars='SHELL 795PATH_SEPARATOR 796PACKAGE_NAME 797PACKAGE_TARNAME 798PACKAGE_VERSION 799PACKAGE_STRING 800PACKAGE_BUGREPORT 801exec_prefix 802prefix 803program_transform_name 804bindir 805sbindir 806libexecdir 807datarootdir 808datadir 809sysconfdir 810sharedstatedir 811localstatedir 812includedir 813oldincludedir 814docdir 815infodir 816htmldir 817dvidir 818pdfdir 819psdir 820libdir 821localedir 822mandir 823DEFS 824ECHO_C 825ECHO_N 826ECHO_T 827LIBS 828build_alias 829host_alias 830target_alias 831INSTALL_PROGRAM 832INSTALL_SCRIPT 833INSTALL_DATA 834am__isrc 835CYGPATH_W 836PACKAGE 837VERSION 838ACLOCAL 839AUTOCONF 840AUTOMAKE 841AUTOHEADER 842MAKEINFO 843install_sh 844STRIP 845INSTALL_STRIP_PROGRAM 846MKDIR_P 847mkdir_p 848AWK 849SET_MAKE 850am__leading_dot 851AMTAR 852am__tar 853am__untar 854MAINTAINER_MODE_TRUE 855MAINTAINER_MODE_FALSE 856MAINT 857build 858build_cpu 859build_vendor 860build_os 861host 862host_cpu 863host_vendor 864host_os 865CC 866CFLAGS 867LDFLAGS 868CPPFLAGS 869ac_ct_CC 870EXEEXT 871OBJEXT 872DEPDIR 873am__include 874am__quote 875AMDEP_TRUE 876AMDEP_FALSE 877AMDEPBACKSLASH 878CCDEPMODE 879am__fastdepCC_TRUE 880am__fastdepCC_FALSE 881SED 882GREP 883EGREP 884LN_S 885ECHO 886AR 887RANLIB 888DSYMUTIL 889NMEDIT 890CPP 891CXX 892CXXFLAGS 893ac_ct_CXX 894CXXDEPMODE 895am__fastdepCXX_TRUE 896am__fastdepCXX_FALSE 897CXXCPP 898F77 899FFLAGS 900ac_ct_F77 901LIBTOOL 902PKG_CONFIG 903XORG_CFLAGS 904XORG_LIBS 905PCIACCESS_CFLAGS 906PCIACCESS_LIBS 907XSERVER_LIBPCIACCESS_TRUE 908XSERVER_LIBPCIACCESS_FALSE 909moduledir 910DRIVER_NAME 911APP_MAN_SUFFIX 912LIB_MAN_SUFFIX 913FILE_MAN_SUFFIX 914MISC_MAN_SUFFIX 915DRIVER_MAN_SUFFIX 916ADMIN_MAN_SUFFIX 917APP_MAN_DIR 918LIB_MAN_DIR 919FILE_MAN_DIR 920MISC_MAN_DIR 921DRIVER_MAN_DIR 922ADMIN_MAN_DIR 923LINUXDOC 924PS2PDF 925BUILD_LINUXDOC_TRUE 926BUILD_LINUXDOC_FALSE 927BUILD_PDFDOC_TRUE 928BUILD_PDFDOC_FALSE 929MAKE_TEXT 930MAKE_PS 931MAKE_PDF 932MAKE_HTML 933LIBOBJS 934LTLIBOBJS' 935ac_subst_files='' 936ac_user_opts=' 937enable_option_checking 938enable_maintainer_mode 939enable_static 940enable_shared 941enable_fast_install 942enable_dependency_tracking 943with_gnu_ld 944enable_libtool_lock 945with_pic 946with_tags 947with_xorg_module_dir 948with_release_version 949' 950 ac_precious_vars='build_alias 951host_alias 952target_alias 953CC 954CFLAGS 955LDFLAGS 956LIBS 957CPPFLAGS 958CPP 959CXX 960CXXFLAGS 961CCC 962CXXCPP 963F77 964FFLAGS 965PKG_CONFIG 966XORG_CFLAGS 967XORG_LIBS 968PCIACCESS_CFLAGS 969PCIACCESS_LIBS' 970 971 972# Initialize some variables set by options. 973ac_init_help= 974ac_init_version=false 975ac_unrecognized_opts= 976ac_unrecognized_sep= 977# The variables have the same names as the options, with 978# dashes changed to underlines. 979cache_file=/dev/null 980exec_prefix=NONE 981no_create= 982no_recursion= 983prefix=NONE 984program_prefix=NONE 985program_suffix=NONE 986program_transform_name=s,x,x, 987silent= 988site= 989srcdir= 990verbose= 991x_includes=NONE 992x_libraries=NONE 993 994# Installation directory options. 995# These are left unexpanded so users can "make install exec_prefix=/foo" 996# and all the variables that are supposed to be based on exec_prefix 997# by default will actually change. 998# Use braces instead of parens because sh, perl, etc. also accept them. 999# (The list follows the same order as the GNU Coding Standards.) 1000bindir='${exec_prefix}/bin' 1001sbindir='${exec_prefix}/sbin' 1002libexecdir='${exec_prefix}/libexec' 1003datarootdir='${prefix}/share' 1004datadir='${datarootdir}' 1005sysconfdir='${prefix}/etc' 1006sharedstatedir='${prefix}/com' 1007localstatedir='${prefix}/var' 1008includedir='${prefix}/include' 1009oldincludedir='/usr/include' 1010docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1011infodir='${datarootdir}/info' 1012htmldir='${docdir}' 1013dvidir='${docdir}' 1014pdfdir='${docdir}' 1015psdir='${docdir}' 1016libdir='${exec_prefix}/lib' 1017localedir='${datarootdir}/locale' 1018mandir='${datarootdir}/man' 1019 1020ac_prev= 1021ac_dashdash= 1022for ac_option 1023do 1024 # If the previous option needs an argument, assign it. 1025 if test -n "$ac_prev"; then 1026 eval $ac_prev=\$ac_option 1027 ac_prev= 1028 continue 1029 fi 1030 1031 case $ac_option in 1032 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1033 *) ac_optarg=yes ;; 1034 esac 1035 1036 # Accept the important Cygnus configure options, so we can diagnose typos. 1037 1038 case $ac_dashdash$ac_option in 1039 --) 1040 ac_dashdash=yes ;; 1041 1042 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1043 ac_prev=bindir ;; 1044 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1045 bindir=$ac_optarg ;; 1046 1047 -build | --build | --buil | --bui | --bu) 1048 ac_prev=build_alias ;; 1049 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1050 build_alias=$ac_optarg ;; 1051 1052 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1053 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1054 ac_prev=cache_file ;; 1055 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1056 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1057 cache_file=$ac_optarg ;; 1058 1059 --config-cache | -C) 1060 cache_file=config.cache ;; 1061 1062 -datadir | --datadir | --datadi | --datad) 1063 ac_prev=datadir ;; 1064 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1065 datadir=$ac_optarg ;; 1066 1067 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1068 | --dataroo | --dataro | --datar) 1069 ac_prev=datarootdir ;; 1070 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1071 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1072 datarootdir=$ac_optarg ;; 1073 1074 -disable-* | --disable-*) 1075 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1076 # Reject names that are not valid shell variable names. 1077 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1078 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1079 { (exit 1); exit 1; }; } 1080 ac_useropt_orig=$ac_useropt 1081 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1082 case $ac_user_opts in 1083 *" 1084"enable_$ac_useropt" 1085"*) ;; 1086 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1087 ac_unrecognized_sep=', ';; 1088 esac 1089 eval enable_$ac_useropt=no ;; 1090 1091 -docdir | --docdir | --docdi | --doc | --do) 1092 ac_prev=docdir ;; 1093 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1094 docdir=$ac_optarg ;; 1095 1096 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1097 ac_prev=dvidir ;; 1098 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1099 dvidir=$ac_optarg ;; 1100 1101 -enable-* | --enable-*) 1102 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1103 # Reject names that are not valid shell variable names. 1104 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1105 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1106 { (exit 1); exit 1; }; } 1107 ac_useropt_orig=$ac_useropt 1108 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1109 case $ac_user_opts in 1110 *" 1111"enable_$ac_useropt" 1112"*) ;; 1113 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1114 ac_unrecognized_sep=', ';; 1115 esac 1116 eval enable_$ac_useropt=\$ac_optarg ;; 1117 1118 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1119 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1120 | --exec | --exe | --ex) 1121 ac_prev=exec_prefix ;; 1122 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1123 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1124 | --exec=* | --exe=* | --ex=*) 1125 exec_prefix=$ac_optarg ;; 1126 1127 -gas | --gas | --ga | --g) 1128 # Obsolete; use --with-gas. 1129 with_gas=yes ;; 1130 1131 -help | --help | --hel | --he | -h) 1132 ac_init_help=long ;; 1133 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1134 ac_init_help=recursive ;; 1135 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1136 ac_init_help=short ;; 1137 1138 -host | --host | --hos | --ho) 1139 ac_prev=host_alias ;; 1140 -host=* | --host=* | --hos=* | --ho=*) 1141 host_alias=$ac_optarg ;; 1142 1143 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1144 ac_prev=htmldir ;; 1145 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1146 | --ht=*) 1147 htmldir=$ac_optarg ;; 1148 1149 -includedir | --includedir | --includedi | --included | --include \ 1150 | --includ | --inclu | --incl | --inc) 1151 ac_prev=includedir ;; 1152 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1153 | --includ=* | --inclu=* | --incl=* | --inc=*) 1154 includedir=$ac_optarg ;; 1155 1156 -infodir | --infodir | --infodi | --infod | --info | --inf) 1157 ac_prev=infodir ;; 1158 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1159 infodir=$ac_optarg ;; 1160 1161 -libdir | --libdir | --libdi | --libd) 1162 ac_prev=libdir ;; 1163 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1164 libdir=$ac_optarg ;; 1165 1166 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1167 | --libexe | --libex | --libe) 1168 ac_prev=libexecdir ;; 1169 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1170 | --libexe=* | --libex=* | --libe=*) 1171 libexecdir=$ac_optarg ;; 1172 1173 -localedir | --localedir | --localedi | --localed | --locale) 1174 ac_prev=localedir ;; 1175 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1176 localedir=$ac_optarg ;; 1177 1178 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1179 | --localstate | --localstat | --localsta | --localst | --locals) 1180 ac_prev=localstatedir ;; 1181 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1182 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1183 localstatedir=$ac_optarg ;; 1184 1185 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1186 ac_prev=mandir ;; 1187 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1188 mandir=$ac_optarg ;; 1189 1190 -nfp | --nfp | --nf) 1191 # Obsolete; use --without-fp. 1192 with_fp=no ;; 1193 1194 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1195 | --no-cr | --no-c | -n) 1196 no_create=yes ;; 1197 1198 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1199 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1200 no_recursion=yes ;; 1201 1202 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1203 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1204 | --oldin | --oldi | --old | --ol | --o) 1205 ac_prev=oldincludedir ;; 1206 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1207 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1208 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1209 oldincludedir=$ac_optarg ;; 1210 1211 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1212 ac_prev=prefix ;; 1213 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1214 prefix=$ac_optarg ;; 1215 1216 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1217 | --program-pre | --program-pr | --program-p) 1218 ac_prev=program_prefix ;; 1219 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1220 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1221 program_prefix=$ac_optarg ;; 1222 1223 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1224 | --program-suf | --program-su | --program-s) 1225 ac_prev=program_suffix ;; 1226 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1227 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1228 program_suffix=$ac_optarg ;; 1229 1230 -program-transform-name | --program-transform-name \ 1231 | --program-transform-nam | --program-transform-na \ 1232 | --program-transform-n | --program-transform- \ 1233 | --program-transform | --program-transfor \ 1234 | --program-transfo | --program-transf \ 1235 | --program-trans | --program-tran \ 1236 | --progr-tra | --program-tr | --program-t) 1237 ac_prev=program_transform_name ;; 1238 -program-transform-name=* | --program-transform-name=* \ 1239 | --program-transform-nam=* | --program-transform-na=* \ 1240 | --program-transform-n=* | --program-transform-=* \ 1241 | --program-transform=* | --program-transfor=* \ 1242 | --program-transfo=* | --program-transf=* \ 1243 | --program-trans=* | --program-tran=* \ 1244 | --progr-tra=* | --program-tr=* | --program-t=*) 1245 program_transform_name=$ac_optarg ;; 1246 1247 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1248 ac_prev=pdfdir ;; 1249 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1250 pdfdir=$ac_optarg ;; 1251 1252 -psdir | --psdir | --psdi | --psd | --ps) 1253 ac_prev=psdir ;; 1254 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1255 psdir=$ac_optarg ;; 1256 1257 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1258 | -silent | --silent | --silen | --sile | --sil) 1259 silent=yes ;; 1260 1261 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1262 ac_prev=sbindir ;; 1263 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1264 | --sbi=* | --sb=*) 1265 sbindir=$ac_optarg ;; 1266 1267 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1268 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1269 | --sharedst | --shareds | --shared | --share | --shar \ 1270 | --sha | --sh) 1271 ac_prev=sharedstatedir ;; 1272 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1273 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1274 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1275 | --sha=* | --sh=*) 1276 sharedstatedir=$ac_optarg ;; 1277 1278 -site | --site | --sit) 1279 ac_prev=site ;; 1280 -site=* | --site=* | --sit=*) 1281 site=$ac_optarg ;; 1282 1283 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1284 ac_prev=srcdir ;; 1285 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1286 srcdir=$ac_optarg ;; 1287 1288 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1289 | --syscon | --sysco | --sysc | --sys | --sy) 1290 ac_prev=sysconfdir ;; 1291 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1292 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1293 sysconfdir=$ac_optarg ;; 1294 1295 -target | --target | --targe | --targ | --tar | --ta | --t) 1296 ac_prev=target_alias ;; 1297 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1298 target_alias=$ac_optarg ;; 1299 1300 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1301 verbose=yes ;; 1302 1303 -version | --version | --versio | --versi | --vers | -V) 1304 ac_init_version=: ;; 1305 1306 -with-* | --with-*) 1307 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1308 # Reject names that are not valid shell variable names. 1309 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1310 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1311 { (exit 1); exit 1; }; } 1312 ac_useropt_orig=$ac_useropt 1313 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1314 case $ac_user_opts in 1315 *" 1316"with_$ac_useropt" 1317"*) ;; 1318 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1319 ac_unrecognized_sep=', ';; 1320 esac 1321 eval with_$ac_useropt=\$ac_optarg ;; 1322 1323 -without-* | --without-*) 1324 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1325 # Reject names that are not valid shell variable names. 1326 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1327 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1328 { (exit 1); exit 1; }; } 1329 ac_useropt_orig=$ac_useropt 1330 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1331 case $ac_user_opts in 1332 *" 1333"with_$ac_useropt" 1334"*) ;; 1335 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1336 ac_unrecognized_sep=', ';; 1337 esac 1338 eval with_$ac_useropt=no ;; 1339 1340 --x) 1341 # Obsolete; use --with-x. 1342 with_x=yes ;; 1343 1344 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1345 | --x-incl | --x-inc | --x-in | --x-i) 1346 ac_prev=x_includes ;; 1347 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1348 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1349 x_includes=$ac_optarg ;; 1350 1351 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1352 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1353 ac_prev=x_libraries ;; 1354 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1355 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1356 x_libraries=$ac_optarg ;; 1357 1358 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1359Try \`$0 --help' for more information." >&2 1360 { (exit 1); exit 1; }; } 1361 ;; 1362 1363 *=*) 1364 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1365 # Reject names that are not valid shell variable names. 1366 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1367 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1368 { (exit 1); exit 1; }; } 1369 eval $ac_envvar=\$ac_optarg 1370 export $ac_envvar ;; 1371 1372 *) 1373 # FIXME: should be removed in autoconf 3.0. 1374 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1375 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1376 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1377 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1378 ;; 1379 1380 esac 1381done 1382 1383if test -n "$ac_prev"; then 1384 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1385 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1386 { (exit 1); exit 1; }; } 1387fi 1388 1389if test -n "$ac_unrecognized_opts"; then 1390 case $enable_option_checking in 1391 no) ;; 1392 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2 1393 { (exit 1); exit 1; }; } ;; 1394 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;; 1395 esac 1396fi 1397 1398# Check all directory arguments for consistency. 1399for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1400 datadir sysconfdir sharedstatedir localstatedir includedir \ 1401 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1402 libdir localedir mandir 1403do 1404 eval ac_val=\$$ac_var 1405 # Remove trailing slashes. 1406 case $ac_val in 1407 */ ) 1408 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1409 eval $ac_var=\$ac_val;; 1410 esac 1411 # Be sure to have absolute directory names. 1412 case $ac_val in 1413 [\\/$]* | ?:[\\/]* ) continue;; 1414 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1415 esac 1416 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1417 { (exit 1); exit 1; }; } 1418done 1419 1420# There might be people who depend on the old broken behavior: `$host' 1421# used to hold the argument of --host etc. 1422# FIXME: To remove some day. 1423build=$build_alias 1424host=$host_alias 1425target=$target_alias 1426 1427# FIXME: To remove some day. 1428if test "x$host_alias" != x; then 1429 if test "x$build_alias" = x; then 1430 cross_compiling=maybe 1431 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1432 If a cross compiler is detected then cross compile mode will be used." >&2 1433 elif test "x$build_alias" != "x$host_alias"; then 1434 cross_compiling=yes 1435 fi 1436fi 1437 1438ac_tool_prefix= 1439test -n "$host_alias" && ac_tool_prefix=$host_alias- 1440 1441test "$silent" = yes && exec 6>/dev/null 1442 1443 1444ac_pwd=`pwd` && test -n "$ac_pwd" && 1445ac_ls_di=`ls -di .` && 1446ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1447 { $as_echo "$as_me: error: Working directory cannot be determined" >&2 1448 { (exit 1); exit 1; }; } 1449test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1450 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1451 { (exit 1); exit 1; }; } 1452 1453 1454# Find the source files, if location was not specified. 1455if test -z "$srcdir"; then 1456 ac_srcdir_defaulted=yes 1457 # Try the directory containing this script, then the parent directory. 1458 ac_confdir=`$as_dirname -- "$as_myself" || 1459$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1460 X"$as_myself" : 'X\(//\)[^/]' \| \ 1461 X"$as_myself" : 'X\(//\)$' \| \ 1462 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1463$as_echo X"$as_myself" | 1464 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1465 s//\1/ 1466 q 1467 } 1468 /^X\(\/\/\)[^/].*/{ 1469 s//\1/ 1470 q 1471 } 1472 /^X\(\/\/\)$/{ 1473 s//\1/ 1474 q 1475 } 1476 /^X\(\/\).*/{ 1477 s//\1/ 1478 q 1479 } 1480 s/.*/./; q'` 1481 srcdir=$ac_confdir 1482 if test ! -r "$srcdir/$ac_unique_file"; then 1483 srcdir=.. 1484 fi 1485else 1486 ac_srcdir_defaulted=no 1487fi 1488if test ! -r "$srcdir/$ac_unique_file"; then 1489 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1490 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1491 { (exit 1); exit 1; }; } 1492fi 1493ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1494ac_abs_confdir=`( 1495 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1496 { (exit 1); exit 1; }; } 1497 pwd)` 1498# When building in place, set srcdir=. 1499if test "$ac_abs_confdir" = "$ac_pwd"; then 1500 srcdir=. 1501fi 1502# Remove unnecessary trailing slashes from srcdir. 1503# Double slashes in file names in object file debugging info 1504# mess up M-x gdb in Emacs. 1505case $srcdir in 1506*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1507esac 1508for ac_var in $ac_precious_vars; do 1509 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1510 eval ac_env_${ac_var}_value=\$${ac_var} 1511 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1512 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1513done 1514 1515# 1516# Report the --help message. 1517# 1518if test "$ac_init_help" = "long"; then 1519 # Omit some internal or obsolete options to make the list less imposing. 1520 # This message is too long to be a string in the A/UX 3.1 sh. 1521 cat <<_ACEOF 1522\`configure' configures xf86-video-tga 1.2.0 to adapt to many kinds of systems. 1523 1524Usage: $0 [OPTION]... [VAR=VALUE]... 1525 1526To assign environment variables (e.g., CC, CFLAGS...), specify them as 1527VAR=VALUE. See below for descriptions of some of the useful variables. 1528 1529Defaults for the options are specified in brackets. 1530 1531Configuration: 1532 -h, --help display this help and exit 1533 --help=short display options specific to this package 1534 --help=recursive display the short help of all the included packages 1535 -V, --version display version information and exit 1536 -q, --quiet, --silent do not print \`checking...' messages 1537 --cache-file=FILE cache test results in FILE [disabled] 1538 -C, --config-cache alias for \`--cache-file=config.cache' 1539 -n, --no-create do not create output files 1540 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1541 1542Installation directories: 1543 --prefix=PREFIX install architecture-independent files in PREFIX 1544 [$ac_default_prefix] 1545 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1546 [PREFIX] 1547 1548By default, \`make install' will install all the files in 1549\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1550an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1551for instance \`--prefix=\$HOME'. 1552 1553For better control, use the options below. 1554 1555Fine tuning of the installation directories: 1556 --bindir=DIR user executables [EPREFIX/bin] 1557 --sbindir=DIR system admin executables [EPREFIX/sbin] 1558 --libexecdir=DIR program executables [EPREFIX/libexec] 1559 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1560 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1561 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1562 --libdir=DIR object code libraries [EPREFIX/lib] 1563 --includedir=DIR C header files [PREFIX/include] 1564 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1565 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1566 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1567 --infodir=DIR info documentation [DATAROOTDIR/info] 1568 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1569 --mandir=DIR man documentation [DATAROOTDIR/man] 1570 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-tga] 1571 --htmldir=DIR html documentation [DOCDIR] 1572 --dvidir=DIR dvi documentation [DOCDIR] 1573 --pdfdir=DIR pdf documentation [DOCDIR] 1574 --psdir=DIR ps documentation [DOCDIR] 1575_ACEOF 1576 1577 cat <<\_ACEOF 1578 1579Program names: 1580 --program-prefix=PREFIX prepend PREFIX to installed program names 1581 --program-suffix=SUFFIX append SUFFIX to installed program names 1582 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1583 1584System types: 1585 --build=BUILD configure for building on BUILD [guessed] 1586 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1587_ACEOF 1588fi 1589 1590if test -n "$ac_init_help"; then 1591 case $ac_init_help in 1592 short | recursive ) echo "Configuration of xf86-video-tga 1.2.0:";; 1593 esac 1594 cat <<\_ACEOF 1595 1596Optional Features: 1597 --disable-option-checking ignore unrecognized --enable/--with options 1598 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1599 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1600 --enable-maintainer-mode enable make rules and dependencies not useful 1601 (and sometimes confusing) to the casual installer 1602 --enable-static[=PKGS] build static libraries [default=no] 1603 --enable-shared[=PKGS] build shared libraries [default=yes] 1604 --enable-fast-install[=PKGS] 1605 optimize for fast installation [default=yes] 1606 --disable-dependency-tracking speeds up one-time build 1607 --enable-dependency-tracking do not reject slow dependency extractors 1608 --disable-libtool-lock avoid locking (might break parallel builds) 1609 1610Optional Packages: 1611 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1612 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1613 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1614 --with-pic try to use only PIC/non-PIC objects [default=use 1615 both] 1616 --with-tags[=TAGS] include additional configurations [automatic] 1617 --with-xorg-module-dir=DIR 1618 Default xorg module directory 1619 [default=$libdir/xorg/modules] 1620 --with-release-version=STRING 1621 Use release version string in package name 1622 1623Some influential environment variables: 1624 CC C compiler command 1625 CFLAGS C compiler flags 1626 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1627 nonstandard directory <lib dir> 1628 LIBS libraries to pass to the linker, e.g. -l<library> 1629 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1630 you have headers in a nonstandard directory <include dir> 1631 CPP C preprocessor 1632 CXX C++ compiler command 1633 CXXFLAGS C++ compiler flags 1634 CXXCPP C++ preprocessor 1635 F77 Fortran 77 compiler command 1636 FFLAGS Fortran 77 compiler flags 1637 PKG_CONFIG path to pkg-config utility 1638 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1639 XORG_LIBS linker flags for XORG, overriding pkg-config 1640 PCIACCESS_CFLAGS 1641 C compiler flags for PCIACCESS, overriding pkg-config 1642 PCIACCESS_LIBS 1643 linker flags for PCIACCESS, overriding pkg-config 1644 1645Use these variables to override the choices made by `configure' or to help 1646it to find libraries and programs with nonstandard names/locations. 1647 1648Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1649_ACEOF 1650ac_status=$? 1651fi 1652 1653if test "$ac_init_help" = "recursive"; then 1654 # If there are subdirs, report their specific --help. 1655 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1656 test -d "$ac_dir" || 1657 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1658 continue 1659 ac_builddir=. 1660 1661case "$ac_dir" in 1662.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1663*) 1664 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1665 # A ".." for each directory in $ac_dir_suffix. 1666 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1667 case $ac_top_builddir_sub in 1668 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1669 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1670 esac ;; 1671esac 1672ac_abs_top_builddir=$ac_pwd 1673ac_abs_builddir=$ac_pwd$ac_dir_suffix 1674# for backward compatibility: 1675ac_top_builddir=$ac_top_build_prefix 1676 1677case $srcdir in 1678 .) # We are building in place. 1679 ac_srcdir=. 1680 ac_top_srcdir=$ac_top_builddir_sub 1681 ac_abs_top_srcdir=$ac_pwd ;; 1682 [\\/]* | ?:[\\/]* ) # Absolute name. 1683 ac_srcdir=$srcdir$ac_dir_suffix; 1684 ac_top_srcdir=$srcdir 1685 ac_abs_top_srcdir=$srcdir ;; 1686 *) # Relative name. 1687 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1688 ac_top_srcdir=$ac_top_build_prefix$srcdir 1689 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1690esac 1691ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1692 1693 cd "$ac_dir" || { ac_status=$?; continue; } 1694 # Check for guested configure. 1695 if test -f "$ac_srcdir/configure.gnu"; then 1696 echo && 1697 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1698 elif test -f "$ac_srcdir/configure"; then 1699 echo && 1700 $SHELL "$ac_srcdir/configure" --help=recursive 1701 else 1702 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1703 fi || ac_status=$? 1704 cd "$ac_pwd" || { ac_status=$?; break; } 1705 done 1706fi 1707 1708test -n "$ac_init_help" && exit $ac_status 1709if $ac_init_version; then 1710 cat <<\_ACEOF 1711xf86-video-tga configure 1.2.0 1712generated by GNU Autoconf 2.62 1713 1714Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 17152002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1716This configure script is free software; the Free Software Foundation 1717gives unlimited permission to copy, distribute and modify it. 1718_ACEOF 1719 exit 1720fi 1721cat >config.log <<_ACEOF 1722This file contains any messages produced by compilers while 1723running configure, to aid debugging if configure makes a mistake. 1724 1725It was created by xf86-video-tga $as_me 1.2.0, which was 1726generated by GNU Autoconf 2.62. Invocation command line was 1727 1728 $ $0 $@ 1729 1730_ACEOF 1731exec 5>>config.log 1732{ 1733cat <<_ASUNAME 1734## --------- ## 1735## Platform. ## 1736## --------- ## 1737 1738hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1739uname -m = `(uname -m) 2>/dev/null || echo unknown` 1740uname -r = `(uname -r) 2>/dev/null || echo unknown` 1741uname -s = `(uname -s) 2>/dev/null || echo unknown` 1742uname -v = `(uname -v) 2>/dev/null || echo unknown` 1743 1744/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1745/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1746 1747/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1748/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1749/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1750/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1751/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1752/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1753/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1754 1755_ASUNAME 1756 1757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1758for as_dir in $PATH 1759do 1760 IFS=$as_save_IFS 1761 test -z "$as_dir" && as_dir=. 1762 $as_echo "PATH: $as_dir" 1763done 1764IFS=$as_save_IFS 1765 1766} >&5 1767 1768cat >&5 <<_ACEOF 1769 1770 1771## ----------- ## 1772## Core tests. ## 1773## ----------- ## 1774 1775_ACEOF 1776 1777 1778# Keep a trace of the command line. 1779# Strip out --no-create and --no-recursion so they do not pile up. 1780# Strip out --silent because we don't want to record it for future runs. 1781# Also quote any args containing shell meta-characters. 1782# Make two passes to allow for proper duplicate-argument suppression. 1783ac_configure_args= 1784ac_configure_args0= 1785ac_configure_args1= 1786ac_must_keep_next=false 1787for ac_pass in 1 2 1788do 1789 for ac_arg 1790 do 1791 case $ac_arg in 1792 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1793 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1794 | -silent | --silent | --silen | --sile | --sil) 1795 continue ;; 1796 *\'*) 1797 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1798 esac 1799 case $ac_pass in 1800 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1801 2) 1802 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1803 if test $ac_must_keep_next = true; then 1804 ac_must_keep_next=false # Got value, back to normal. 1805 else 1806 case $ac_arg in 1807 *=* | --config-cache | -C | -disable-* | --disable-* \ 1808 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1809 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1810 | -with-* | --with-* | -without-* | --without-* | --x) 1811 case "$ac_configure_args0 " in 1812 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1813 esac 1814 ;; 1815 -* ) ac_must_keep_next=true ;; 1816 esac 1817 fi 1818 ac_configure_args="$ac_configure_args '$ac_arg'" 1819 ;; 1820 esac 1821 done 1822done 1823$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1824$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1825 1826# When interrupted or exit'd, cleanup temporary files, and complete 1827# config.log. We remove comments because anyway the quotes in there 1828# would cause problems or look ugly. 1829# WARNING: Use '\'' to represent an apostrophe within the trap. 1830# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1831trap 'exit_status=$? 1832 # Save into config.log some information that might help in debugging. 1833 { 1834 echo 1835 1836 cat <<\_ASBOX 1837## ---------------- ## 1838## Cache variables. ## 1839## ---------------- ## 1840_ASBOX 1841 echo 1842 # The following way of writing the cache mishandles newlines in values, 1843( 1844 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1845 eval ac_val=\$$ac_var 1846 case $ac_val in #( 1847 *${as_nl}*) 1848 case $ac_var in #( 1849 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1850$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1851 esac 1852 case $ac_var in #( 1853 _ | IFS | as_nl) ;; #( 1854 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1855 *) $as_unset $ac_var ;; 1856 esac ;; 1857 esac 1858 done 1859 (set) 2>&1 | 1860 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1861 *${as_nl}ac_space=\ *) 1862 sed -n \ 1863 "s/'\''/'\''\\\\'\'''\''/g; 1864 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1865 ;; #( 1866 *) 1867 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1868 ;; 1869 esac | 1870 sort 1871) 1872 echo 1873 1874 cat <<\_ASBOX 1875## ----------------- ## 1876## Output variables. ## 1877## ----------------- ## 1878_ASBOX 1879 echo 1880 for ac_var in $ac_subst_vars 1881 do 1882 eval ac_val=\$$ac_var 1883 case $ac_val in 1884 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1885 esac 1886 $as_echo "$ac_var='\''$ac_val'\''" 1887 done | sort 1888 echo 1889 1890 if test -n "$ac_subst_files"; then 1891 cat <<\_ASBOX 1892## ------------------- ## 1893## File substitutions. ## 1894## ------------------- ## 1895_ASBOX 1896 echo 1897 for ac_var in $ac_subst_files 1898 do 1899 eval ac_val=\$$ac_var 1900 case $ac_val in 1901 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1902 esac 1903 $as_echo "$ac_var='\''$ac_val'\''" 1904 done | sort 1905 echo 1906 fi 1907 1908 if test -s confdefs.h; then 1909 cat <<\_ASBOX 1910## ----------- ## 1911## confdefs.h. ## 1912## ----------- ## 1913_ASBOX 1914 echo 1915 cat confdefs.h 1916 echo 1917 fi 1918 test "$ac_signal" != 0 && 1919 $as_echo "$as_me: caught signal $ac_signal" 1920 $as_echo "$as_me: exit $exit_status" 1921 } >&5 1922 rm -f core *.core core.conftest.* && 1923 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1924 exit $exit_status 1925' 0 1926for ac_signal in 1 2 13 15; do 1927 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1928done 1929ac_signal=0 1930 1931# confdefs.h avoids OS command line length limits that DEFS can exceed. 1932rm -f -r conftest* confdefs.h 1933 1934# Predefined preprocessor variables. 1935 1936cat >>confdefs.h <<_ACEOF 1937#define PACKAGE_NAME "$PACKAGE_NAME" 1938_ACEOF 1939 1940 1941cat >>confdefs.h <<_ACEOF 1942#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1943_ACEOF 1944 1945 1946cat >>confdefs.h <<_ACEOF 1947#define PACKAGE_VERSION "$PACKAGE_VERSION" 1948_ACEOF 1949 1950 1951cat >>confdefs.h <<_ACEOF 1952#define PACKAGE_STRING "$PACKAGE_STRING" 1953_ACEOF 1954 1955 1956cat >>confdefs.h <<_ACEOF 1957#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1958_ACEOF 1959 1960 1961# Let the site file select an alternate cache file if it wants to. 1962# Prefer an explicitly selected file to automatically selected ones. 1963ac_site_file1=NONE 1964ac_site_file2=NONE 1965if test -n "$CONFIG_SITE"; then 1966 ac_site_file1=$CONFIG_SITE 1967elif test "x$prefix" != xNONE; then 1968 ac_site_file1=$prefix/share/config.site 1969 ac_site_file2=$prefix/etc/config.site 1970else 1971 ac_site_file1=$ac_default_prefix/share/config.site 1972 ac_site_file2=$ac_default_prefix/etc/config.site 1973fi 1974for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1975do 1976 test "x$ac_site_file" = xNONE && continue 1977 if test -r "$ac_site_file"; then 1978 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1979$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1980 sed 's/^/| /' "$ac_site_file" >&5 1981 . "$ac_site_file" 1982 fi 1983done 1984 1985if test -r "$cache_file"; then 1986 # Some versions of bash will fail to source /dev/null (special 1987 # files actually), so we avoid doing that. 1988 if test -f "$cache_file"; then 1989 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 1990$as_echo "$as_me: loading cache $cache_file" >&6;} 1991 case $cache_file in 1992 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1993 *) . "./$cache_file";; 1994 esac 1995 fi 1996else 1997 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 1998$as_echo "$as_me: creating cache $cache_file" >&6;} 1999 >$cache_file 2000fi 2001 2002# Check that the precious variables saved in the cache have kept the same 2003# value. 2004ac_cache_corrupted=false 2005for ac_var in $ac_precious_vars; do 2006 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2007 eval ac_new_set=\$ac_env_${ac_var}_set 2008 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2009 eval ac_new_val=\$ac_env_${ac_var}_value 2010 case $ac_old_set,$ac_new_set in 2011 set,) 2012 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2013$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2014 ac_cache_corrupted=: ;; 2015 ,set) 2016 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 2017$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2018 ac_cache_corrupted=: ;; 2019 ,);; 2020 *) 2021 if test "x$ac_old_val" != "x$ac_new_val"; then 2022 # differences in whitespace do not lead to failure. 2023 ac_old_val_w=`echo x $ac_old_val` 2024 ac_new_val_w=`echo x $ac_new_val` 2025 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2026 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 2027$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2028 ac_cache_corrupted=: 2029 else 2030 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2031$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2032 eval $ac_var=\$ac_old_val 2033 fi 2034 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 2035$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2036 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 2037$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2038 fi;; 2039 esac 2040 # Pass precious variables to config.status. 2041 if test "$ac_new_set" = set; then 2042 case $ac_new_val in 2043 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2044 *) ac_arg=$ac_var=$ac_new_val ;; 2045 esac 2046 case " $ac_configure_args " in 2047 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2048 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 2049 esac 2050 fi 2051done 2052if $ac_cache_corrupted; then 2053 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2054$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2055 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 2056$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 2057 { (exit 1); exit 1; }; } 2058fi 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084ac_ext=c 2085ac_cpp='$CPP $CPPFLAGS' 2086ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2087ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2088ac_compiler_gnu=$ac_cv_c_compiler_gnu 2089 2090 2091 2092 2093ac_config_headers="$ac_config_headers config.h" 2094 2095ac_aux_dir= 2096for ac_dir in . "$srcdir"/.; do 2097 if test -f "$ac_dir/install-sh"; then 2098 ac_aux_dir=$ac_dir 2099 ac_install_sh="$ac_aux_dir/install-sh -c" 2100 break 2101 elif test -f "$ac_dir/install.sh"; then 2102 ac_aux_dir=$ac_dir 2103 ac_install_sh="$ac_aux_dir/install.sh -c" 2104 break 2105 elif test -f "$ac_dir/shtool"; then 2106 ac_aux_dir=$ac_dir 2107 ac_install_sh="$ac_aux_dir/shtool install -c" 2108 break 2109 fi 2110done 2111if test -z "$ac_aux_dir"; then 2112 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5 2113$as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;} 2114 { (exit 1); exit 1; }; } 2115fi 2116 2117# These three variables are undocumented and unsupported, 2118# and are intended to be withdrawn in a future Autoconf release. 2119# They can cause serious problems if a builder's source tree is in a directory 2120# whose full name contains unusual characters. 2121ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2122ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2123ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2124 2125 2126 2127am__api_version='1.10' 2128 2129# Find a good install program. We prefer a C program (faster), 2130# so one script is as good as another. But avoid the broken or 2131# incompatible versions: 2132# SysV /etc/install, /usr/sbin/install 2133# SunOS /usr/etc/install 2134# IRIX /sbin/install 2135# AIX /bin/install 2136# AmigaOS /C/install, which installs bootblocks on floppy discs 2137# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2138# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2139# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2140# OS/2's system install, which has a completely different semantic 2141# ./install, which can be erroneously created by make from ./install.sh. 2142# Reject install programs that cannot install multiple files. 2143{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2144$as_echo_n "checking for a BSD-compatible install... " >&6; } 2145if test -z "$INSTALL"; then 2146if test "${ac_cv_path_install+set}" = set; then 2147 $as_echo_n "(cached) " >&6 2148else 2149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2150for as_dir in $PATH 2151do 2152 IFS=$as_save_IFS 2153 test -z "$as_dir" && as_dir=. 2154 # Account for people who put trailing slashes in PATH elements. 2155case $as_dir/ in 2156 ./ | .// | /cC/* | \ 2157 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2158 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2159 /usr/ucb/* ) ;; 2160 *) 2161 # OSF1 and SCO ODT 3.0 have their own names for install. 2162 # Don't use installbsd from OSF since it installs stuff as root 2163 # by default. 2164 for ac_prog in ginstall scoinst install; do 2165 for ac_exec_ext in '' $ac_executable_extensions; do 2166 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2167 if test $ac_prog = install && 2168 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2169 # AIX install. It has an incompatible calling convention. 2170 : 2171 elif test $ac_prog = install && 2172 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2173 # program-specific install script used by HP pwplus--don't use. 2174 : 2175 else 2176 rm -rf conftest.one conftest.two conftest.dir 2177 echo one > conftest.one 2178 echo two > conftest.two 2179 mkdir conftest.dir 2180 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2181 test -s conftest.one && test -s conftest.two && 2182 test -s conftest.dir/conftest.one && 2183 test -s conftest.dir/conftest.two 2184 then 2185 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2186 break 3 2187 fi 2188 fi 2189 fi 2190 done 2191 done 2192 ;; 2193esac 2194 2195done 2196IFS=$as_save_IFS 2197 2198rm -rf conftest.one conftest.two conftest.dir 2199 2200fi 2201 if test "${ac_cv_path_install+set}" = set; then 2202 INSTALL=$ac_cv_path_install 2203 else 2204 # As a last resort, use the slow shell script. Don't cache a 2205 # value for INSTALL within a source directory, because that will 2206 # break other packages using the cache if that directory is 2207 # removed, or if the value is a relative name. 2208 INSTALL=$ac_install_sh 2209 fi 2210fi 2211{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 2212$as_echo "$INSTALL" >&6; } 2213 2214# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2215# It thinks the first close brace ends the variable substitution. 2216test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2217 2218test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2219 2220test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2221 2222{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2223$as_echo_n "checking whether build environment is sane... " >&6; } 2224# Just in case 2225sleep 1 2226echo timestamp > conftest.file 2227# Do `set' in a subshell so we don't clobber the current shell's 2228# arguments. Must try -L first in case configure is actually a 2229# symlink; some systems play weird games with the mod time of symlinks 2230# (eg FreeBSD returns the mod time of the symlink's containing 2231# directory). 2232if ( 2233 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2234 if test "$*" = "X"; then 2235 # -L didn't work. 2236 set X `ls -t $srcdir/configure conftest.file` 2237 fi 2238 rm -f conftest.file 2239 if test "$*" != "X $srcdir/configure conftest.file" \ 2240 && test "$*" != "X conftest.file $srcdir/configure"; then 2241 2242 # If neither matched, then we have a broken ls. This can happen 2243 # if, for instance, CONFIG_SHELL is bash and it inherits a 2244 # broken ls alias from the environment. This has actually 2245 # happened. Such a system could not be considered "sane". 2246 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2247alias in your environment" >&5 2248$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2249alias in your environment" >&2;} 2250 { (exit 1); exit 1; }; } 2251 fi 2252 2253 test "$2" = conftest.file 2254 ) 2255then 2256 # Ok. 2257 : 2258else 2259 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2260Check your system clock" >&5 2261$as_echo "$as_me: error: newly created file is older than distributed files! 2262Check your system clock" >&2;} 2263 { (exit 1); exit 1; }; } 2264fi 2265{ $as_echo "$as_me:$LINENO: result: yes" >&5 2266$as_echo "yes" >&6; } 2267test "$program_prefix" != NONE && 2268 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2269# Use a double $ so make ignores it. 2270test "$program_suffix" != NONE && 2271 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2272# Double any \ or $. 2273# By default was `s,x,x', remove it if useless. 2274ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2275program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2276 2277# expand $ac_aux_dir to an absolute path 2278am_aux_dir=`cd $ac_aux_dir && pwd` 2279 2280test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2281# Use eval to expand $SHELL 2282if eval "$MISSING --run true"; then 2283 am_missing_run="$MISSING --run " 2284else 2285 am_missing_run= 2286 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2287$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2288fi 2289 2290{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2291$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2292if test -z "$MKDIR_P"; then 2293 if test "${ac_cv_path_mkdir+set}" = set; then 2294 $as_echo_n "(cached) " >&6 2295else 2296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2297for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2298do 2299 IFS=$as_save_IFS 2300 test -z "$as_dir" && as_dir=. 2301 for ac_prog in mkdir gmkdir; do 2302 for ac_exec_ext in '' $ac_executable_extensions; do 2303 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2304 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2305 'mkdir (GNU coreutils) '* | \ 2306 'mkdir (coreutils) '* | \ 2307 'mkdir (fileutils) '4.1*) 2308 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2309 break 3;; 2310 esac 2311 done 2312 done 2313done 2314IFS=$as_save_IFS 2315 2316fi 2317 2318 if test "${ac_cv_path_mkdir+set}" = set; then 2319 MKDIR_P="$ac_cv_path_mkdir -p" 2320 else 2321 # As a last resort, use the slow shell script. Don't cache a 2322 # value for MKDIR_P within a source directory, because that will 2323 # break other packages using the cache if that directory is 2324 # removed, or if the value is a relative name. 2325 test -d ./--version && rmdir ./--version 2326 MKDIR_P="$ac_install_sh -d" 2327 fi 2328fi 2329{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2330$as_echo "$MKDIR_P" >&6; } 2331 2332mkdir_p="$MKDIR_P" 2333case $mkdir_p in 2334 [\\/$]* | ?:[\\/]*) ;; 2335 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2336esac 2337 2338for ac_prog in gawk mawk nawk awk 2339do 2340 # Extract the first word of "$ac_prog", so it can be a program name with args. 2341set dummy $ac_prog; ac_word=$2 2342{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2343$as_echo_n "checking for $ac_word... " >&6; } 2344if test "${ac_cv_prog_AWK+set}" = set; then 2345 $as_echo_n "(cached) " >&6 2346else 2347 if test -n "$AWK"; then 2348 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2349else 2350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2351for as_dir in $PATH 2352do 2353 IFS=$as_save_IFS 2354 test -z "$as_dir" && as_dir=. 2355 for ac_exec_ext in '' $ac_executable_extensions; do 2356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2357 ac_cv_prog_AWK="$ac_prog" 2358 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2359 break 2 2360 fi 2361done 2362done 2363IFS=$as_save_IFS 2364 2365fi 2366fi 2367AWK=$ac_cv_prog_AWK 2368if test -n "$AWK"; then 2369 { $as_echo "$as_me:$LINENO: result: $AWK" >&5 2370$as_echo "$AWK" >&6; } 2371else 2372 { $as_echo "$as_me:$LINENO: result: no" >&5 2373$as_echo "no" >&6; } 2374fi 2375 2376 2377 test -n "$AWK" && break 2378done 2379 2380{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2381$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2382set x ${MAKE-make} 2383ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2384if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2385 $as_echo_n "(cached) " >&6 2386else 2387 cat >conftest.make <<\_ACEOF 2388SHELL = /bin/sh 2389all: 2390 @echo '@@@%%%=$(MAKE)=@@@%%%' 2391_ACEOF 2392# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2393case `${MAKE-make} -f conftest.make 2>/dev/null` in 2394 *@@@%%%=?*=@@@%%%*) 2395 eval ac_cv_prog_make_${ac_make}_set=yes;; 2396 *) 2397 eval ac_cv_prog_make_${ac_make}_set=no;; 2398esac 2399rm -f conftest.make 2400fi 2401if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2402 { $as_echo "$as_me:$LINENO: result: yes" >&5 2403$as_echo "yes" >&6; } 2404 SET_MAKE= 2405else 2406 { $as_echo "$as_me:$LINENO: result: no" >&5 2407$as_echo "no" >&6; } 2408 SET_MAKE="MAKE=${MAKE-make}" 2409fi 2410 2411rm -rf .tst 2>/dev/null 2412mkdir .tst 2>/dev/null 2413if test -d .tst; then 2414 am__leading_dot=. 2415else 2416 am__leading_dot=_ 2417fi 2418rmdir .tst 2>/dev/null 2419 2420if test "`cd $srcdir && pwd`" != "`pwd`"; then 2421 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2422 # is not polluted with repeated "-I." 2423 am__isrc=' -I$(srcdir)' 2424 # test to see if srcdir already configured 2425 if test -f $srcdir/config.status; then 2426 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2427$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2428 { (exit 1); exit 1; }; } 2429 fi 2430fi 2431 2432# test whether we have cygpath 2433if test -z "$CYGPATH_W"; then 2434 if (cygpath --version) >/dev/null 2>/dev/null; then 2435 CYGPATH_W='cygpath -w' 2436 else 2437 CYGPATH_W=echo 2438 fi 2439fi 2440 2441 2442# Define the identity of the package. 2443 PACKAGE='xf86-video-tga' 2444 VERSION='1.2.0' 2445 2446 2447cat >>confdefs.h <<_ACEOF 2448#define PACKAGE "$PACKAGE" 2449_ACEOF 2450 2451 2452cat >>confdefs.h <<_ACEOF 2453#define VERSION "$VERSION" 2454_ACEOF 2455 2456# Some tools Automake needs. 2457 2458ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2459 2460 2461AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2462 2463 2464AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2465 2466 2467AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2468 2469 2470MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2471 2472install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2473 2474# Installed binaries are usually stripped using `strip' when the user 2475# run `make install-strip'. However `strip' might not be the right 2476# tool to use in cross-compilation environments, therefore Automake 2477# will honor the `STRIP' environment variable to overrule this program. 2478if test "$cross_compiling" != no; then 2479 if test -n "$ac_tool_prefix"; then 2480 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2481set dummy ${ac_tool_prefix}strip; ac_word=$2 2482{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2483$as_echo_n "checking for $ac_word... " >&6; } 2484if test "${ac_cv_prog_STRIP+set}" = set; then 2485 $as_echo_n "(cached) " >&6 2486else 2487 if test -n "$STRIP"; then 2488 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2489else 2490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2491for as_dir in $PATH 2492do 2493 IFS=$as_save_IFS 2494 test -z "$as_dir" && as_dir=. 2495 for ac_exec_ext in '' $ac_executable_extensions; do 2496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2497 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2498 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2499 break 2 2500 fi 2501done 2502done 2503IFS=$as_save_IFS 2504 2505fi 2506fi 2507STRIP=$ac_cv_prog_STRIP 2508if test -n "$STRIP"; then 2509 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 2510$as_echo "$STRIP" >&6; } 2511else 2512 { $as_echo "$as_me:$LINENO: result: no" >&5 2513$as_echo "no" >&6; } 2514fi 2515 2516 2517fi 2518if test -z "$ac_cv_prog_STRIP"; then 2519 ac_ct_STRIP=$STRIP 2520 # Extract the first word of "strip", so it can be a program name with args. 2521set dummy strip; ac_word=$2 2522{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2523$as_echo_n "checking for $ac_word... " >&6; } 2524if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2525 $as_echo_n "(cached) " >&6 2526else 2527 if test -n "$ac_ct_STRIP"; then 2528 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2529else 2530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2531for as_dir in $PATH 2532do 2533 IFS=$as_save_IFS 2534 test -z "$as_dir" && as_dir=. 2535 for ac_exec_ext in '' $ac_executable_extensions; do 2536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2537 ac_cv_prog_ac_ct_STRIP="strip" 2538 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2539 break 2 2540 fi 2541done 2542done 2543IFS=$as_save_IFS 2544 2545fi 2546fi 2547ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2548if test -n "$ac_ct_STRIP"; then 2549 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2550$as_echo "$ac_ct_STRIP" >&6; } 2551else 2552 { $as_echo "$as_me:$LINENO: result: no" >&5 2553$as_echo "no" >&6; } 2554fi 2555 2556 if test "x$ac_ct_STRIP" = x; then 2557 STRIP=":" 2558 else 2559 case $cross_compiling:$ac_tool_warned in 2560yes:) 2561{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2562whose name does not start with the host triplet. If you think this 2563configuration is useful to you, please write to autoconf@gnu.org." >&5 2564$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2565whose name does not start with the host triplet. If you think this 2566configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2567ac_tool_warned=yes ;; 2568esac 2569 STRIP=$ac_ct_STRIP 2570 fi 2571else 2572 STRIP="$ac_cv_prog_STRIP" 2573fi 2574 2575fi 2576INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2577 2578# We need awk for the "check" target. The system "awk" is bad on 2579# some platforms. 2580# Always define AMTAR for backward compatibility. 2581 2582AMTAR=${AMTAR-"${am_missing_run}tar"} 2583 2584am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2585 2586 2587 2588 2589 2590 2591{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 2592$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2593 # Check whether --enable-maintainer-mode was given. 2594if test "${enable_maintainer_mode+set}" = set; then 2595 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2596else 2597 USE_MAINTAINER_MODE=no 2598fi 2599 2600 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 2601$as_echo "$USE_MAINTAINER_MODE" >&6; } 2602 if test $USE_MAINTAINER_MODE = yes; then 2603 MAINTAINER_MODE_TRUE= 2604 MAINTAINER_MODE_FALSE='#' 2605else 2606 MAINTAINER_MODE_TRUE='#' 2607 MAINTAINER_MODE_FALSE= 2608fi 2609 2610 MAINT=$MAINTAINER_MODE_TRUE 2611 2612 2613 2614# Checks for programs. 2615# Check whether --enable-static was given. 2616if test "${enable_static+set}" = set; then 2617 enableval=$enable_static; p=${PACKAGE-default} 2618 case $enableval in 2619 yes) enable_static=yes ;; 2620 no) enable_static=no ;; 2621 *) 2622 enable_static=no 2623 # Look at the argument we got. We use all the common list separators. 2624 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2625 for pkg in $enableval; do 2626 IFS="$lt_save_ifs" 2627 if test "X$pkg" = "X$p"; then 2628 enable_static=yes 2629 fi 2630 done 2631 IFS="$lt_save_ifs" 2632 ;; 2633 esac 2634else 2635 enable_static=no 2636fi 2637 2638 2639 2640# Check whether --enable-shared was given. 2641if test "${enable_shared+set}" = set; then 2642 enableval=$enable_shared; p=${PACKAGE-default} 2643 case $enableval in 2644 yes) enable_shared=yes ;; 2645 no) enable_shared=no ;; 2646 *) 2647 enable_shared=no 2648 # Look at the argument we got. We use all the common list separators. 2649 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2650 for pkg in $enableval; do 2651 IFS="$lt_save_ifs" 2652 if test "X$pkg" = "X$p"; then 2653 enable_shared=yes 2654 fi 2655 done 2656 IFS="$lt_save_ifs" 2657 ;; 2658 esac 2659else 2660 enable_shared=yes 2661fi 2662 2663 2664# Check whether --enable-fast-install was given. 2665if test "${enable_fast_install+set}" = set; then 2666 enableval=$enable_fast_install; p=${PACKAGE-default} 2667 case $enableval in 2668 yes) enable_fast_install=yes ;; 2669 no) enable_fast_install=no ;; 2670 *) 2671 enable_fast_install=no 2672 # Look at the argument we got. We use all the common list separators. 2673 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2674 for pkg in $enableval; do 2675 IFS="$lt_save_ifs" 2676 if test "X$pkg" = "X$p"; then 2677 enable_fast_install=yes 2678 fi 2679 done 2680 IFS="$lt_save_ifs" 2681 ;; 2682 esac 2683else 2684 enable_fast_install=yes 2685fi 2686 2687 2688# Make sure we can run config.sub. 2689$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2690 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 2691$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 2692 { (exit 1); exit 1; }; } 2693 2694{ $as_echo "$as_me:$LINENO: checking build system type" >&5 2695$as_echo_n "checking build system type... " >&6; } 2696if test "${ac_cv_build+set}" = set; then 2697 $as_echo_n "(cached) " >&6 2698else 2699 ac_build_alias=$build_alias 2700test "x$ac_build_alias" = x && 2701 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2702test "x$ac_build_alias" = x && 2703 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2704$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2705 { (exit 1); exit 1; }; } 2706ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2707 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 2708$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2709 { (exit 1); exit 1; }; } 2710 2711fi 2712{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2713$as_echo "$ac_cv_build" >&6; } 2714case $ac_cv_build in 2715*-*-*) ;; 2716*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2717$as_echo "$as_me: error: invalid value of canonical build" >&2;} 2718 { (exit 1); exit 1; }; };; 2719esac 2720build=$ac_cv_build 2721ac_save_IFS=$IFS; IFS='-' 2722set x $ac_cv_build 2723shift 2724build_cpu=$1 2725build_vendor=$2 2726shift; shift 2727# Remember, the first character of IFS is used to create $*, 2728# except with old shells: 2729build_os=$* 2730IFS=$ac_save_IFS 2731case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2732 2733 2734{ $as_echo "$as_me:$LINENO: checking host system type" >&5 2735$as_echo_n "checking host system type... " >&6; } 2736if test "${ac_cv_host+set}" = set; then 2737 $as_echo_n "(cached) " >&6 2738else 2739 if test "x$host_alias" = x; then 2740 ac_cv_host=$ac_cv_build 2741else 2742 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2743 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2744$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2745 { (exit 1); exit 1; }; } 2746fi 2747 2748fi 2749{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2750$as_echo "$ac_cv_host" >&6; } 2751case $ac_cv_host in 2752*-*-*) ;; 2753*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2754$as_echo "$as_me: error: invalid value of canonical host" >&2;} 2755 { (exit 1); exit 1; }; };; 2756esac 2757host=$ac_cv_host 2758ac_save_IFS=$IFS; IFS='-' 2759set x $ac_cv_host 2760shift 2761host_cpu=$1 2762host_vendor=$2 2763shift; shift 2764# Remember, the first character of IFS is used to create $*, 2765# except with old shells: 2766host_os=$* 2767IFS=$ac_save_IFS 2768case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2769 2770 2771DEPDIR="${am__leading_dot}deps" 2772 2773ac_config_commands="$ac_config_commands depfiles" 2774 2775 2776am_make=${MAKE-make} 2777cat > confinc << 'END' 2778am__doit: 2779 @echo done 2780.PHONY: am__doit 2781END 2782# If we don't find an include directive, just comment out the code. 2783{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2784$as_echo_n "checking for style of include used by $am_make... " >&6; } 2785am__include="#" 2786am__quote= 2787_am_result=none 2788# First try GNU make style include. 2789echo "include confinc" > confmf 2790# We grep out `Entering directory' and `Leaving directory' 2791# messages which can occur if `w' ends up in MAKEFLAGS. 2792# In particular we don't look at `^make:' because GNU make might 2793# be invoked under some other name (usually "gmake"), in which 2794# case it prints its new name instead of `make'. 2795if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2796 am__include=include 2797 am__quote= 2798 _am_result=GNU 2799fi 2800# Now try BSD make style include. 2801if test "$am__include" = "#"; then 2802 echo '.include "confinc"' > confmf 2803 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2804 am__include=.include 2805 am__quote="\"" 2806 _am_result=BSD 2807 fi 2808fi 2809 2810 2811{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5 2812$as_echo "$_am_result" >&6; } 2813rm -f confinc confmf 2814 2815# Check whether --enable-dependency-tracking was given. 2816if test "${enable_dependency_tracking+set}" = set; then 2817 enableval=$enable_dependency_tracking; 2818fi 2819 2820if test "x$enable_dependency_tracking" != xno; then 2821 am_depcomp="$ac_aux_dir/depcomp" 2822 AMDEPBACKSLASH='\' 2823fi 2824 if test "x$enable_dependency_tracking" != xno; then 2825 AMDEP_TRUE= 2826 AMDEP_FALSE='#' 2827else 2828 AMDEP_TRUE='#' 2829 AMDEP_FALSE= 2830fi 2831 2832 2833ac_ext=c 2834ac_cpp='$CPP $CPPFLAGS' 2835ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2836ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2837ac_compiler_gnu=$ac_cv_c_compiler_gnu 2838if test -n "$ac_tool_prefix"; then 2839 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2840set dummy ${ac_tool_prefix}gcc; ac_word=$2 2841{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2842$as_echo_n "checking for $ac_word... " >&6; } 2843if test "${ac_cv_prog_CC+set}" = set; then 2844 $as_echo_n "(cached) " >&6 2845else 2846 if test -n "$CC"; then 2847 ac_cv_prog_CC="$CC" # Let the user override the test. 2848else 2849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2850for as_dir in $PATH 2851do 2852 IFS=$as_save_IFS 2853 test -z "$as_dir" && as_dir=. 2854 for ac_exec_ext in '' $ac_executable_extensions; do 2855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2856 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2857 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2858 break 2 2859 fi 2860done 2861done 2862IFS=$as_save_IFS 2863 2864fi 2865fi 2866CC=$ac_cv_prog_CC 2867if test -n "$CC"; then 2868 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2869$as_echo "$CC" >&6; } 2870else 2871 { $as_echo "$as_me:$LINENO: result: no" >&5 2872$as_echo "no" >&6; } 2873fi 2874 2875 2876fi 2877if test -z "$ac_cv_prog_CC"; then 2878 ac_ct_CC=$CC 2879 # Extract the first word of "gcc", so it can be a program name with args. 2880set dummy gcc; ac_word=$2 2881{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2882$as_echo_n "checking for $ac_word... " >&6; } 2883if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2884 $as_echo_n "(cached) " >&6 2885else 2886 if test -n "$ac_ct_CC"; then 2887 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2888else 2889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2890for as_dir in $PATH 2891do 2892 IFS=$as_save_IFS 2893 test -z "$as_dir" && as_dir=. 2894 for ac_exec_ext in '' $ac_executable_extensions; do 2895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2896 ac_cv_prog_ac_ct_CC="gcc" 2897 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2898 break 2 2899 fi 2900done 2901done 2902IFS=$as_save_IFS 2903 2904fi 2905fi 2906ac_ct_CC=$ac_cv_prog_ac_ct_CC 2907if test -n "$ac_ct_CC"; then 2908 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2909$as_echo "$ac_ct_CC" >&6; } 2910else 2911 { $as_echo "$as_me:$LINENO: result: no" >&5 2912$as_echo "no" >&6; } 2913fi 2914 2915 if test "x$ac_ct_CC" = x; then 2916 CC="" 2917 else 2918 case $cross_compiling:$ac_tool_warned in 2919yes:) 2920{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2921whose name does not start with the host triplet. If you think this 2922configuration is useful to you, please write to autoconf@gnu.org." >&5 2923$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2924whose name does not start with the host triplet. If you think this 2925configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2926ac_tool_warned=yes ;; 2927esac 2928 CC=$ac_ct_CC 2929 fi 2930else 2931 CC="$ac_cv_prog_CC" 2932fi 2933 2934if test -z "$CC"; then 2935 if test -n "$ac_tool_prefix"; then 2936 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2937set dummy ${ac_tool_prefix}cc; ac_word=$2 2938{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2939$as_echo_n "checking for $ac_word... " >&6; } 2940if test "${ac_cv_prog_CC+set}" = set; then 2941 $as_echo_n "(cached) " >&6 2942else 2943 if test -n "$CC"; then 2944 ac_cv_prog_CC="$CC" # Let the user override the test. 2945else 2946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2947for as_dir in $PATH 2948do 2949 IFS=$as_save_IFS 2950 test -z "$as_dir" && as_dir=. 2951 for ac_exec_ext in '' $ac_executable_extensions; do 2952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2953 ac_cv_prog_CC="${ac_tool_prefix}cc" 2954 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2955 break 2 2956 fi 2957done 2958done 2959IFS=$as_save_IFS 2960 2961fi 2962fi 2963CC=$ac_cv_prog_CC 2964if test -n "$CC"; then 2965 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2966$as_echo "$CC" >&6; } 2967else 2968 { $as_echo "$as_me:$LINENO: result: no" >&5 2969$as_echo "no" >&6; } 2970fi 2971 2972 2973 fi 2974fi 2975if test -z "$CC"; then 2976 # Extract the first word of "cc", so it can be a program name with args. 2977set dummy cc; ac_word=$2 2978{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2979$as_echo_n "checking for $ac_word... " >&6; } 2980if test "${ac_cv_prog_CC+set}" = set; then 2981 $as_echo_n "(cached) " >&6 2982else 2983 if test -n "$CC"; then 2984 ac_cv_prog_CC="$CC" # Let the user override the test. 2985else 2986 ac_prog_rejected=no 2987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2988for as_dir in $PATH 2989do 2990 IFS=$as_save_IFS 2991 test -z "$as_dir" && as_dir=. 2992 for ac_exec_ext in '' $ac_executable_extensions; do 2993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2994 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2995 ac_prog_rejected=yes 2996 continue 2997 fi 2998 ac_cv_prog_CC="cc" 2999 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3000 break 2 3001 fi 3002done 3003done 3004IFS=$as_save_IFS 3005 3006if test $ac_prog_rejected = yes; then 3007 # We found a bogon in the path, so make sure we never use it. 3008 set dummy $ac_cv_prog_CC 3009 shift 3010 if test $# != 0; then 3011 # We chose a different compiler from the bogus one. 3012 # However, it has the same basename, so the bogon will be chosen 3013 # first if we set CC to just the basename; use the full file name. 3014 shift 3015 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3016 fi 3017fi 3018fi 3019fi 3020CC=$ac_cv_prog_CC 3021if test -n "$CC"; then 3022 { $as_echo "$as_me:$LINENO: result: $CC" >&5 3023$as_echo "$CC" >&6; } 3024else 3025 { $as_echo "$as_me:$LINENO: result: no" >&5 3026$as_echo "no" >&6; } 3027fi 3028 3029 3030fi 3031if test -z "$CC"; then 3032 if test -n "$ac_tool_prefix"; then 3033 for ac_prog in cl.exe 3034 do 3035 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3036set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3037{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3038$as_echo_n "checking for $ac_word... " >&6; } 3039if test "${ac_cv_prog_CC+set}" = set; then 3040 $as_echo_n "(cached) " >&6 3041else 3042 if test -n "$CC"; then 3043 ac_cv_prog_CC="$CC" # Let the user override the test. 3044else 3045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3046for as_dir in $PATH 3047do 3048 IFS=$as_save_IFS 3049 test -z "$as_dir" && as_dir=. 3050 for ac_exec_ext in '' $ac_executable_extensions; do 3051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3052 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3053 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3054 break 2 3055 fi 3056done 3057done 3058IFS=$as_save_IFS 3059 3060fi 3061fi 3062CC=$ac_cv_prog_CC 3063if test -n "$CC"; then 3064 { $as_echo "$as_me:$LINENO: result: $CC" >&5 3065$as_echo "$CC" >&6; } 3066else 3067 { $as_echo "$as_me:$LINENO: result: no" >&5 3068$as_echo "no" >&6; } 3069fi 3070 3071 3072 test -n "$CC" && break 3073 done 3074fi 3075if test -z "$CC"; then 3076 ac_ct_CC=$CC 3077 for ac_prog in cl.exe 3078do 3079 # Extract the first word of "$ac_prog", so it can be a program name with args. 3080set dummy $ac_prog; ac_word=$2 3081{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3082$as_echo_n "checking for $ac_word... " >&6; } 3083if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3084 $as_echo_n "(cached) " >&6 3085else 3086 if test -n "$ac_ct_CC"; then 3087 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3088else 3089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3090for as_dir in $PATH 3091do 3092 IFS=$as_save_IFS 3093 test -z "$as_dir" && as_dir=. 3094 for ac_exec_ext in '' $ac_executable_extensions; do 3095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3096 ac_cv_prog_ac_ct_CC="$ac_prog" 3097 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3098 break 2 3099 fi 3100done 3101done 3102IFS=$as_save_IFS 3103 3104fi 3105fi 3106ac_ct_CC=$ac_cv_prog_ac_ct_CC 3107if test -n "$ac_ct_CC"; then 3108 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3109$as_echo "$ac_ct_CC" >&6; } 3110else 3111 { $as_echo "$as_me:$LINENO: result: no" >&5 3112$as_echo "no" >&6; } 3113fi 3114 3115 3116 test -n "$ac_ct_CC" && break 3117done 3118 3119 if test "x$ac_ct_CC" = x; then 3120 CC="" 3121 else 3122 case $cross_compiling:$ac_tool_warned in 3123yes:) 3124{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3125whose name does not start with the host triplet. If you think this 3126configuration is useful to you, please write to autoconf@gnu.org." >&5 3127$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3128whose name does not start with the host triplet. If you think this 3129configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3130ac_tool_warned=yes ;; 3131esac 3132 CC=$ac_ct_CC 3133 fi 3134fi 3135 3136fi 3137 3138 3139test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 3140See \`config.log' for more details." >&5 3141$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 3142See \`config.log' for more details." >&2;} 3143 { (exit 1); exit 1; }; } 3144 3145# Provide some information about the compiler. 3146$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 3147set X $ac_compile 3148ac_compiler=$2 3149{ (ac_try="$ac_compiler --version >&5" 3150case "(($ac_try" in 3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3152 *) ac_try_echo=$ac_try;; 3153esac 3154eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3155$as_echo "$ac_try_echo") >&5 3156 (eval "$ac_compiler --version >&5") 2>&5 3157 ac_status=$? 3158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3159 (exit $ac_status); } 3160{ (ac_try="$ac_compiler -v >&5" 3161case "(($ac_try" in 3162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3163 *) ac_try_echo=$ac_try;; 3164esac 3165eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3166$as_echo "$ac_try_echo") >&5 3167 (eval "$ac_compiler -v >&5") 2>&5 3168 ac_status=$? 3169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3170 (exit $ac_status); } 3171{ (ac_try="$ac_compiler -V >&5" 3172case "(($ac_try" in 3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3174 *) ac_try_echo=$ac_try;; 3175esac 3176eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3177$as_echo "$ac_try_echo") >&5 3178 (eval "$ac_compiler -V >&5") 2>&5 3179 ac_status=$? 3180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3181 (exit $ac_status); } 3182 3183cat >conftest.$ac_ext <<_ACEOF 3184/* confdefs.h. */ 3185_ACEOF 3186cat confdefs.h >>conftest.$ac_ext 3187cat >>conftest.$ac_ext <<_ACEOF 3188/* end confdefs.h. */ 3189 3190int 3191main () 3192{ 3193 3194 ; 3195 return 0; 3196} 3197_ACEOF 3198ac_clean_files_save=$ac_clean_files 3199ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3200# Try to create an executable without -o first, disregard a.out. 3201# It will help us diagnose broken compilers, and finding out an intuition 3202# of exeext. 3203{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 3204$as_echo_n "checking for C compiler default output file name... " >&6; } 3205ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3206 3207# The possible output files: 3208ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3209 3210ac_rmfiles= 3211for ac_file in $ac_files 3212do 3213 case $ac_file in 3214 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3215 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3216 esac 3217done 3218rm -f $ac_rmfiles 3219 3220if { (ac_try="$ac_link_default" 3221case "(($ac_try" in 3222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3223 *) ac_try_echo=$ac_try;; 3224esac 3225eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3226$as_echo "$ac_try_echo") >&5 3227 (eval "$ac_link_default") 2>&5 3228 ac_status=$? 3229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3230 (exit $ac_status); }; then 3231 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3232# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3233# in a Makefile. We should not override ac_cv_exeext if it was cached, 3234# so that the user can short-circuit this test for compilers unknown to 3235# Autoconf. 3236for ac_file in $ac_files '' 3237do 3238 test -f "$ac_file" || continue 3239 case $ac_file in 3240 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3241 ;; 3242 [ab].out ) 3243 # We found the default executable, but exeext='' is most 3244 # certainly right. 3245 break;; 3246 *.* ) 3247 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3248 then :; else 3249 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3250 fi 3251 # We set ac_cv_exeext here because the later test for it is not 3252 # safe: cross compilers may not add the suffix if given an `-o' 3253 # argument, so we may need to know it at that point already. 3254 # Even if this section looks crufty: it has the advantage of 3255 # actually working. 3256 break;; 3257 * ) 3258 break;; 3259 esac 3260done 3261test "$ac_cv_exeext" = no && ac_cv_exeext= 3262 3263else 3264 ac_file='' 3265fi 3266 3267{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 3268$as_echo "$ac_file" >&6; } 3269if test -z "$ac_file"; then 3270 $as_echo "$as_me: failed program was:" >&5 3271sed 's/^/| /' conftest.$ac_ext >&5 3272 3273{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 3274See \`config.log' for more details." >&5 3275$as_echo "$as_me: error: C compiler cannot create executables 3276See \`config.log' for more details." >&2;} 3277 { (exit 77); exit 77; }; } 3278fi 3279 3280ac_exeext=$ac_cv_exeext 3281 3282# Check that the compiler produces executables we can run. If not, either 3283# the compiler is broken, or we cross compile. 3284{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3285$as_echo_n "checking whether the C compiler works... " >&6; } 3286# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3287# If not cross compiling, check that we can run a simple program. 3288if test "$cross_compiling" != yes; then 3289 if { ac_try='./$ac_file' 3290 { (case "(($ac_try" in 3291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3292 *) ac_try_echo=$ac_try;; 3293esac 3294eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3295$as_echo "$ac_try_echo") >&5 3296 (eval "$ac_try") 2>&5 3297 ac_status=$? 3298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3299 (exit $ac_status); }; }; then 3300 cross_compiling=no 3301 else 3302 if test "$cross_compiling" = maybe; then 3303 cross_compiling=yes 3304 else 3305 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 3306If you meant to cross compile, use \`--host'. 3307See \`config.log' for more details." >&5 3308$as_echo "$as_me: error: cannot run C compiled programs. 3309If you meant to cross compile, use \`--host'. 3310See \`config.log' for more details." >&2;} 3311 { (exit 1); exit 1; }; } 3312 fi 3313 fi 3314fi 3315{ $as_echo "$as_me:$LINENO: result: yes" >&5 3316$as_echo "yes" >&6; } 3317 3318rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3319ac_clean_files=$ac_clean_files_save 3320# Check that the compiler produces executables we can run. If not, either 3321# the compiler is broken, or we cross compile. 3322{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3323$as_echo_n "checking whether we are cross compiling... " >&6; } 3324{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 3325$as_echo "$cross_compiling" >&6; } 3326 3327{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 3328$as_echo_n "checking for suffix of executables... " >&6; } 3329if { (ac_try="$ac_link" 3330case "(($ac_try" in 3331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3332 *) ac_try_echo=$ac_try;; 3333esac 3334eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3335$as_echo "$ac_try_echo") >&5 3336 (eval "$ac_link") 2>&5 3337 ac_status=$? 3338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3339 (exit $ac_status); }; then 3340 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3341# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3342# work properly (i.e., refer to `conftest.exe'), while it won't with 3343# `rm'. 3344for ac_file in conftest.exe conftest conftest.*; do 3345 test -f "$ac_file" || continue 3346 case $ac_file in 3347 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3348 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3349 break;; 3350 * ) break;; 3351 esac 3352done 3353else 3354 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3355See \`config.log' for more details." >&5 3356$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3357See \`config.log' for more details." >&2;} 3358 { (exit 1); exit 1; }; } 3359fi 3360 3361rm -f conftest$ac_cv_exeext 3362{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3363$as_echo "$ac_cv_exeext" >&6; } 3364 3365rm -f conftest.$ac_ext 3366EXEEXT=$ac_cv_exeext 3367ac_exeext=$EXEEXT 3368{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 3369$as_echo_n "checking for suffix of object files... " >&6; } 3370if test "${ac_cv_objext+set}" = set; then 3371 $as_echo_n "(cached) " >&6 3372else 3373 cat >conftest.$ac_ext <<_ACEOF 3374/* confdefs.h. */ 3375_ACEOF 3376cat confdefs.h >>conftest.$ac_ext 3377cat >>conftest.$ac_ext <<_ACEOF 3378/* end confdefs.h. */ 3379 3380int 3381main () 3382{ 3383 3384 ; 3385 return 0; 3386} 3387_ACEOF 3388rm -f conftest.o conftest.obj 3389if { (ac_try="$ac_compile" 3390case "(($ac_try" in 3391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3392 *) ac_try_echo=$ac_try;; 3393esac 3394eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3395$as_echo "$ac_try_echo") >&5 3396 (eval "$ac_compile") 2>&5 3397 ac_status=$? 3398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3399 (exit $ac_status); }; then 3400 for ac_file in conftest.o conftest.obj conftest.*; do 3401 test -f "$ac_file" || continue; 3402 case $ac_file in 3403 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3404 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3405 break;; 3406 esac 3407done 3408else 3409 $as_echo "$as_me: failed program was:" >&5 3410sed 's/^/| /' conftest.$ac_ext >&5 3411 3412{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3413See \`config.log' for more details." >&5 3414$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 3415See \`config.log' for more details." >&2;} 3416 { (exit 1); exit 1; }; } 3417fi 3418 3419rm -f conftest.$ac_cv_objext conftest.$ac_ext 3420fi 3421{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3422$as_echo "$ac_cv_objext" >&6; } 3423OBJEXT=$ac_cv_objext 3424ac_objext=$OBJEXT 3425{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3426$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3427if test "${ac_cv_c_compiler_gnu+set}" = set; then 3428 $as_echo_n "(cached) " >&6 3429else 3430 cat >conftest.$ac_ext <<_ACEOF 3431/* confdefs.h. */ 3432_ACEOF 3433cat confdefs.h >>conftest.$ac_ext 3434cat >>conftest.$ac_ext <<_ACEOF 3435/* end confdefs.h. */ 3436 3437int 3438main () 3439{ 3440#ifndef __GNUC__ 3441 choke me 3442#endif 3443 3444 ; 3445 return 0; 3446} 3447_ACEOF 3448rm -f conftest.$ac_objext 3449if { (ac_try="$ac_compile" 3450case "(($ac_try" in 3451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3452 *) ac_try_echo=$ac_try;; 3453esac 3454eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3455$as_echo "$ac_try_echo") >&5 3456 (eval "$ac_compile") 2>conftest.er1 3457 ac_status=$? 3458 grep -v '^ *+' conftest.er1 >conftest.err 3459 rm -f conftest.er1 3460 cat conftest.err >&5 3461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3462 (exit $ac_status); } && { 3463 test -z "$ac_c_werror_flag" || 3464 test ! -s conftest.err 3465 } && test -s conftest.$ac_objext; then 3466 ac_compiler_gnu=yes 3467else 3468 $as_echo "$as_me: failed program was:" >&5 3469sed 's/^/| /' conftest.$ac_ext >&5 3470 3471 ac_compiler_gnu=no 3472fi 3473 3474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3475ac_cv_c_compiler_gnu=$ac_compiler_gnu 3476 3477fi 3478{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3479$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3480if test $ac_compiler_gnu = yes; then 3481 GCC=yes 3482else 3483 GCC= 3484fi 3485ac_test_CFLAGS=${CFLAGS+set} 3486ac_save_CFLAGS=$CFLAGS 3487{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3488$as_echo_n "checking whether $CC accepts -g... " >&6; } 3489if test "${ac_cv_prog_cc_g+set}" = set; then 3490 $as_echo_n "(cached) " >&6 3491else 3492 ac_save_c_werror_flag=$ac_c_werror_flag 3493 ac_c_werror_flag=yes 3494 ac_cv_prog_cc_g=no 3495 CFLAGS="-g" 3496 cat >conftest.$ac_ext <<_ACEOF 3497/* confdefs.h. */ 3498_ACEOF 3499cat confdefs.h >>conftest.$ac_ext 3500cat >>conftest.$ac_ext <<_ACEOF 3501/* end confdefs.h. */ 3502 3503int 3504main () 3505{ 3506 3507 ; 3508 return 0; 3509} 3510_ACEOF 3511rm -f conftest.$ac_objext 3512if { (ac_try="$ac_compile" 3513case "(($ac_try" in 3514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3515 *) ac_try_echo=$ac_try;; 3516esac 3517eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3518$as_echo "$ac_try_echo") >&5 3519 (eval "$ac_compile") 2>conftest.er1 3520 ac_status=$? 3521 grep -v '^ *+' conftest.er1 >conftest.err 3522 rm -f conftest.er1 3523 cat conftest.err >&5 3524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3525 (exit $ac_status); } && { 3526 test -z "$ac_c_werror_flag" || 3527 test ! -s conftest.err 3528 } && test -s conftest.$ac_objext; then 3529 ac_cv_prog_cc_g=yes 3530else 3531 $as_echo "$as_me: failed program was:" >&5 3532sed 's/^/| /' conftest.$ac_ext >&5 3533 3534 CFLAGS="" 3535 cat >conftest.$ac_ext <<_ACEOF 3536/* confdefs.h. */ 3537_ACEOF 3538cat confdefs.h >>conftest.$ac_ext 3539cat >>conftest.$ac_ext <<_ACEOF 3540/* end confdefs.h. */ 3541 3542int 3543main () 3544{ 3545 3546 ; 3547 return 0; 3548} 3549_ACEOF 3550rm -f conftest.$ac_objext 3551if { (ac_try="$ac_compile" 3552case "(($ac_try" in 3553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3554 *) ac_try_echo=$ac_try;; 3555esac 3556eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3557$as_echo "$ac_try_echo") >&5 3558 (eval "$ac_compile") 2>conftest.er1 3559 ac_status=$? 3560 grep -v '^ *+' conftest.er1 >conftest.err 3561 rm -f conftest.er1 3562 cat conftest.err >&5 3563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3564 (exit $ac_status); } && { 3565 test -z "$ac_c_werror_flag" || 3566 test ! -s conftest.err 3567 } && test -s conftest.$ac_objext; then 3568 : 3569else 3570 $as_echo "$as_me: failed program was:" >&5 3571sed 's/^/| /' conftest.$ac_ext >&5 3572 3573 ac_c_werror_flag=$ac_save_c_werror_flag 3574 CFLAGS="-g" 3575 cat >conftest.$ac_ext <<_ACEOF 3576/* confdefs.h. */ 3577_ACEOF 3578cat confdefs.h >>conftest.$ac_ext 3579cat >>conftest.$ac_ext <<_ACEOF 3580/* end confdefs.h. */ 3581 3582int 3583main () 3584{ 3585 3586 ; 3587 return 0; 3588} 3589_ACEOF 3590rm -f conftest.$ac_objext 3591if { (ac_try="$ac_compile" 3592case "(($ac_try" in 3593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3594 *) ac_try_echo=$ac_try;; 3595esac 3596eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3597$as_echo "$ac_try_echo") >&5 3598 (eval "$ac_compile") 2>conftest.er1 3599 ac_status=$? 3600 grep -v '^ *+' conftest.er1 >conftest.err 3601 rm -f conftest.er1 3602 cat conftest.err >&5 3603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3604 (exit $ac_status); } && { 3605 test -z "$ac_c_werror_flag" || 3606 test ! -s conftest.err 3607 } && test -s conftest.$ac_objext; then 3608 ac_cv_prog_cc_g=yes 3609else 3610 $as_echo "$as_me: failed program was:" >&5 3611sed 's/^/| /' conftest.$ac_ext >&5 3612 3613 3614fi 3615 3616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3617fi 3618 3619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3620fi 3621 3622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3623 ac_c_werror_flag=$ac_save_c_werror_flag 3624fi 3625{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3626$as_echo "$ac_cv_prog_cc_g" >&6; } 3627if test "$ac_test_CFLAGS" = set; then 3628 CFLAGS=$ac_save_CFLAGS 3629elif test $ac_cv_prog_cc_g = yes; then 3630 if test "$GCC" = yes; then 3631 CFLAGS="-g -O2" 3632 else 3633 CFLAGS="-g" 3634 fi 3635else 3636 if test "$GCC" = yes; then 3637 CFLAGS="-O2" 3638 else 3639 CFLAGS= 3640 fi 3641fi 3642{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3643$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3644if test "${ac_cv_prog_cc_c89+set}" = set; then 3645 $as_echo_n "(cached) " >&6 3646else 3647 ac_cv_prog_cc_c89=no 3648ac_save_CC=$CC 3649cat >conftest.$ac_ext <<_ACEOF 3650/* confdefs.h. */ 3651_ACEOF 3652cat confdefs.h >>conftest.$ac_ext 3653cat >>conftest.$ac_ext <<_ACEOF 3654/* end confdefs.h. */ 3655#include <stdarg.h> 3656#include <stdio.h> 3657#include <sys/types.h> 3658#include <sys/stat.h> 3659/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3660struct buf { int x; }; 3661FILE * (*rcsopen) (struct buf *, struct stat *, int); 3662static char *e (p, i) 3663 char **p; 3664 int i; 3665{ 3666 return p[i]; 3667} 3668static char *f (char * (*g) (char **, int), char **p, ...) 3669{ 3670 char *s; 3671 va_list v; 3672 va_start (v,p); 3673 s = g (p, va_arg (v,int)); 3674 va_end (v); 3675 return s; 3676} 3677 3678/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3679 function prototypes and stuff, but not '\xHH' hex character constants. 3680 These don't provoke an error unfortunately, instead are silently treated 3681 as 'x'. The following induces an error, until -std is added to get 3682 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3683 array size at least. It's necessary to write '\x00'==0 to get something 3684 that's true only with -std. */ 3685int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3686 3687/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3688 inside strings and character constants. */ 3689#define FOO(x) 'x' 3690int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3691 3692int test (int i, double x); 3693struct s1 {int (*f) (int a);}; 3694struct s2 {int (*f) (double a);}; 3695int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3696int argc; 3697char **argv; 3698int 3699main () 3700{ 3701return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3702 ; 3703 return 0; 3704} 3705_ACEOF 3706for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3707 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3708do 3709 CC="$ac_save_CC $ac_arg" 3710 rm -f conftest.$ac_objext 3711if { (ac_try="$ac_compile" 3712case "(($ac_try" in 3713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3714 *) ac_try_echo=$ac_try;; 3715esac 3716eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3717$as_echo "$ac_try_echo") >&5 3718 (eval "$ac_compile") 2>conftest.er1 3719 ac_status=$? 3720 grep -v '^ *+' conftest.er1 >conftest.err 3721 rm -f conftest.er1 3722 cat conftest.err >&5 3723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3724 (exit $ac_status); } && { 3725 test -z "$ac_c_werror_flag" || 3726 test ! -s conftest.err 3727 } && test -s conftest.$ac_objext; then 3728 ac_cv_prog_cc_c89=$ac_arg 3729else 3730 $as_echo "$as_me: failed program was:" >&5 3731sed 's/^/| /' conftest.$ac_ext >&5 3732 3733 3734fi 3735 3736rm -f core conftest.err conftest.$ac_objext 3737 test "x$ac_cv_prog_cc_c89" != "xno" && break 3738done 3739rm -f conftest.$ac_ext 3740CC=$ac_save_CC 3741 3742fi 3743# AC_CACHE_VAL 3744case "x$ac_cv_prog_cc_c89" in 3745 x) 3746 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3747$as_echo "none needed" >&6; } ;; 3748 xno) 3749 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3750$as_echo "unsupported" >&6; } ;; 3751 *) 3752 CC="$CC $ac_cv_prog_cc_c89" 3753 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3754$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3755esac 3756 3757 3758ac_ext=c 3759ac_cpp='$CPP $CPPFLAGS' 3760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3762ac_compiler_gnu=$ac_cv_c_compiler_gnu 3763 3764depcc="$CC" am_compiler_list= 3765 3766{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3767$as_echo_n "checking dependency style of $depcc... " >&6; } 3768if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3769 $as_echo_n "(cached) " >&6 3770else 3771 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3772 # We make a subdir and do the tests there. Otherwise we can end up 3773 # making bogus files that we don't know about and never remove. For 3774 # instance it was reported that on HP-UX the gcc test will end up 3775 # making a dummy file named `D' -- because `-MD' means `put the output 3776 # in D'. 3777 mkdir conftest.dir 3778 # Copy depcomp to subdir because otherwise we won't find it if we're 3779 # using a relative directory. 3780 cp "$am_depcomp" conftest.dir 3781 cd conftest.dir 3782 # We will build objects and dependencies in a subdirectory because 3783 # it helps to detect inapplicable dependency modes. For instance 3784 # both Tru64's cc and ICC support -MD to output dependencies as a 3785 # side effect of compilation, but ICC will put the dependencies in 3786 # the current directory while Tru64 will put them in the object 3787 # directory. 3788 mkdir sub 3789 3790 am_cv_CC_dependencies_compiler_type=none 3791 if test "$am_compiler_list" = ""; then 3792 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3793 fi 3794 for depmode in $am_compiler_list; do 3795 # Setup a source with many dependencies, because some compilers 3796 # like to wrap large dependency lists on column 80 (with \), and 3797 # we should not choose a depcomp mode which is confused by this. 3798 # 3799 # We need to recreate these files for each test, as the compiler may 3800 # overwrite some of them when testing with obscure command lines. 3801 # This happens at least with the AIX C compiler. 3802 : > sub/conftest.c 3803 for i in 1 2 3 4 5 6; do 3804 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3805 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3806 # Solaris 8's {/usr,}/bin/sh. 3807 touch sub/conftst$i.h 3808 done 3809 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3810 3811 case $depmode in 3812 nosideeffect) 3813 # after this tag, mechanisms are not by side-effect, so they'll 3814 # only be used when explicitly requested 3815 if test "x$enable_dependency_tracking" = xyes; then 3816 continue 3817 else 3818 break 3819 fi 3820 ;; 3821 none) break ;; 3822 esac 3823 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3824 # mode. It turns out that the SunPro C++ compiler does not properly 3825 # handle `-M -o', and we need to detect this. 3826 if depmode=$depmode \ 3827 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3828 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3829 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3830 >/dev/null 2>conftest.err && 3831 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3832 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3833 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3834 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3835 # icc doesn't choke on unknown options, it will just issue warnings 3836 # or remarks (even with -Werror). So we grep stderr for any message 3837 # that says an option was ignored or not supported. 3838 # When given -MP, icc 7.0 and 7.1 complain thusly: 3839 # icc: Command line warning: ignoring option '-M'; no argument required 3840 # The diagnosis changed in icc 8.0: 3841 # icc: Command line remark: option '-MP' not supported 3842 if (grep 'ignoring option' conftest.err || 3843 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3844 am_cv_CC_dependencies_compiler_type=$depmode 3845 break 3846 fi 3847 fi 3848 done 3849 3850 cd .. 3851 rm -rf conftest.dir 3852else 3853 am_cv_CC_dependencies_compiler_type=none 3854fi 3855 3856fi 3857{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3858$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3859CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3860 3861 if 3862 test "x$enable_dependency_tracking" != xno \ 3863 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3864 am__fastdepCC_TRUE= 3865 am__fastdepCC_FALSE='#' 3866else 3867 am__fastdepCC_TRUE='#' 3868 am__fastdepCC_FALSE= 3869fi 3870 3871 3872{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3873$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3874if test "${lt_cv_path_SED+set}" = set; then 3875 $as_echo_n "(cached) " >&6 3876else 3877 # Loop through the user's path and test for sed and gsed. 3878# Then use that list of sed's as ones to test for truncation. 3879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3880for as_dir in $PATH 3881do 3882 IFS=$as_save_IFS 3883 test -z "$as_dir" && as_dir=. 3884 for lt_ac_prog in sed gsed; do 3885 for ac_exec_ext in '' $ac_executable_extensions; do 3886 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then 3887 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3888 fi 3889 done 3890 done 3891done 3892IFS=$as_save_IFS 3893lt_ac_max=0 3894lt_ac_count=0 3895# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3896# along with /bin/sed that truncates output. 3897for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3898 test ! -f $lt_ac_sed && continue 3899 cat /dev/null > conftest.in 3900 lt_ac_count=0 3901 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3902 # Check for GNU sed and select it if it is found. 3903 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3904 lt_cv_path_SED=$lt_ac_sed 3905 break 3906 fi 3907 while true; do 3908 cat conftest.in conftest.in >conftest.tmp 3909 mv conftest.tmp conftest.in 3910 cp conftest.in conftest.nl 3911 echo >>conftest.nl 3912 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3913 cmp -s conftest.out conftest.nl || break 3914 # 10000 chars as input seems more than enough 3915 test $lt_ac_count -gt 10 && break 3916 lt_ac_count=`expr $lt_ac_count + 1` 3917 if test $lt_ac_count -gt $lt_ac_max; then 3918 lt_ac_max=$lt_ac_count 3919 lt_cv_path_SED=$lt_ac_sed 3920 fi 3921 done 3922done 3923 3924fi 3925 3926SED=$lt_cv_path_SED 3927 3928{ $as_echo "$as_me:$LINENO: result: $SED" >&5 3929$as_echo "$SED" >&6; } 3930 3931{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3932$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3933if test "${ac_cv_path_GREP+set}" = set; then 3934 $as_echo_n "(cached) " >&6 3935else 3936 if test -z "$GREP"; then 3937 ac_path_GREP_found=false 3938 # Loop through the user's path and test for each of PROGNAME-LIST 3939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3940for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3941do 3942 IFS=$as_save_IFS 3943 test -z "$as_dir" && as_dir=. 3944 for ac_prog in grep ggrep; do 3945 for ac_exec_ext in '' $ac_executable_extensions; do 3946 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3947 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3948# Check for GNU ac_path_GREP and select it if it is found. 3949 # Check for GNU $ac_path_GREP 3950case `"$ac_path_GREP" --version 2>&1` in 3951*GNU*) 3952 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3953*) 3954 ac_count=0 3955 $as_echo_n 0123456789 >"conftest.in" 3956 while : 3957 do 3958 cat "conftest.in" "conftest.in" >"conftest.tmp" 3959 mv "conftest.tmp" "conftest.in" 3960 cp "conftest.in" "conftest.nl" 3961 $as_echo 'GREP' >> "conftest.nl" 3962 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3963 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3964 ac_count=`expr $ac_count + 1` 3965 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3966 # Best one so far, save it but keep looking for a better one 3967 ac_cv_path_GREP="$ac_path_GREP" 3968 ac_path_GREP_max=$ac_count 3969 fi 3970 # 10*(2^10) chars as input seems more than enough 3971 test $ac_count -gt 10 && break 3972 done 3973 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3974esac 3975 3976 $ac_path_GREP_found && break 3 3977 done 3978 done 3979done 3980IFS=$as_save_IFS 3981 if test -z "$ac_cv_path_GREP"; then 3982 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3983$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3984 { (exit 1); exit 1; }; } 3985 fi 3986else 3987 ac_cv_path_GREP=$GREP 3988fi 3989 3990fi 3991{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3992$as_echo "$ac_cv_path_GREP" >&6; } 3993 GREP="$ac_cv_path_GREP" 3994 3995 3996{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 3997$as_echo_n "checking for egrep... " >&6; } 3998if test "${ac_cv_path_EGREP+set}" = set; then 3999 $as_echo_n "(cached) " >&6 4000else 4001 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4002 then ac_cv_path_EGREP="$GREP -E" 4003 else 4004 if test -z "$EGREP"; then 4005 ac_path_EGREP_found=false 4006 # Loop through the user's path and test for each of PROGNAME-LIST 4007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4008for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4009do 4010 IFS=$as_save_IFS 4011 test -z "$as_dir" && as_dir=. 4012 for ac_prog in egrep; do 4013 for ac_exec_ext in '' $ac_executable_extensions; do 4014 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4015 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4016# Check for GNU ac_path_EGREP and select it if it is found. 4017 # Check for GNU $ac_path_EGREP 4018case `"$ac_path_EGREP" --version 2>&1` in 4019*GNU*) 4020 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4021*) 4022 ac_count=0 4023 $as_echo_n 0123456789 >"conftest.in" 4024 while : 4025 do 4026 cat "conftest.in" "conftest.in" >"conftest.tmp" 4027 mv "conftest.tmp" "conftest.in" 4028 cp "conftest.in" "conftest.nl" 4029 $as_echo 'EGREP' >> "conftest.nl" 4030 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4031 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4032 ac_count=`expr $ac_count + 1` 4033 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4034 # Best one so far, save it but keep looking for a better one 4035 ac_cv_path_EGREP="$ac_path_EGREP" 4036 ac_path_EGREP_max=$ac_count 4037 fi 4038 # 10*(2^10) chars as input seems more than enough 4039 test $ac_count -gt 10 && break 4040 done 4041 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4042esac 4043 4044 $ac_path_EGREP_found && break 3 4045 done 4046 done 4047done 4048IFS=$as_save_IFS 4049 if test -z "$ac_cv_path_EGREP"; then 4050 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4051$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4052 { (exit 1); exit 1; }; } 4053 fi 4054else 4055 ac_cv_path_EGREP=$EGREP 4056fi 4057 4058 fi 4059fi 4060{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4061$as_echo "$ac_cv_path_EGREP" >&6; } 4062 EGREP="$ac_cv_path_EGREP" 4063 4064 4065 4066# Check whether --with-gnu-ld was given. 4067if test "${with_gnu_ld+set}" = set; then 4068 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4069else 4070 with_gnu_ld=no 4071fi 4072 4073ac_prog=ld 4074if test "$GCC" = yes; then 4075 # Check if gcc -print-prog-name=ld gives a path. 4076 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4077$as_echo_n "checking for ld used by $CC... " >&6; } 4078 case $host in 4079 *-*-mingw*) 4080 # gcc leaves a trailing carriage return which upsets mingw 4081 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4082 *) 4083 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4084 esac 4085 case $ac_prog in 4086 # Accept absolute paths. 4087 [\\/]* | ?:[\\/]*) 4088 re_direlt='/[^/][^/]*/\.\./' 4089 # Canonicalize the pathname of ld 4090 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 4091 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 4092 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 4093 done 4094 test -z "$LD" && LD="$ac_prog" 4095 ;; 4096 "") 4097 # If it fails, then pretend we aren't using GCC. 4098 ac_prog=ld 4099 ;; 4100 *) 4101 # If it is relative, then search for the first ld in PATH. 4102 with_gnu_ld=unknown 4103 ;; 4104 esac 4105elif test "$with_gnu_ld" = yes; then 4106 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 4107$as_echo_n "checking for GNU ld... " >&6; } 4108else 4109 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4110$as_echo_n "checking for non-GNU ld... " >&6; } 4111fi 4112if test "${lt_cv_path_LD+set}" = set; then 4113 $as_echo_n "(cached) " >&6 4114else 4115 if test -z "$LD"; then 4116 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4117 for ac_dir in $PATH; do 4118 IFS="$lt_save_ifs" 4119 test -z "$ac_dir" && ac_dir=. 4120 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4121 lt_cv_path_LD="$ac_dir/$ac_prog" 4122 # Check to see if the program is GNU ld. I'd rather use --version, 4123 # but apparently some variants of GNU ld only accept -v. 4124 # Break only if it was the GNU/non-GNU ld that we prefer. 4125 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4126 *GNU* | *'with BFD'*) 4127 test "$with_gnu_ld" != no && break 4128 ;; 4129 *) 4130 test "$with_gnu_ld" != yes && break 4131 ;; 4132 esac 4133 fi 4134 done 4135 IFS="$lt_save_ifs" 4136else 4137 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4138fi 4139fi 4140 4141LD="$lt_cv_path_LD" 4142if test -n "$LD"; then 4143 { $as_echo "$as_me:$LINENO: result: $LD" >&5 4144$as_echo "$LD" >&6; } 4145else 4146 { $as_echo "$as_me:$LINENO: result: no" >&5 4147$as_echo "no" >&6; } 4148fi 4149test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4150$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4151 { (exit 1); exit 1; }; } 4152{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4153$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4154if test "${lt_cv_prog_gnu_ld+set}" = set; then 4155 $as_echo_n "(cached) " >&6 4156else 4157 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4158case `$LD -v 2>&1 </dev/null` in 4159*GNU* | *'with BFD'*) 4160 lt_cv_prog_gnu_ld=yes 4161 ;; 4162*) 4163 lt_cv_prog_gnu_ld=no 4164 ;; 4165esac 4166fi 4167{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4168$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4169with_gnu_ld=$lt_cv_prog_gnu_ld 4170 4171 4172{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4173$as_echo_n "checking for $LD option to reload object files... " >&6; } 4174if test "${lt_cv_ld_reload_flag+set}" = set; then 4175 $as_echo_n "(cached) " >&6 4176else 4177 lt_cv_ld_reload_flag='-r' 4178fi 4179{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4180$as_echo "$lt_cv_ld_reload_flag" >&6; } 4181reload_flag=$lt_cv_ld_reload_flag 4182case $reload_flag in 4183"" | " "*) ;; 4184*) reload_flag=" $reload_flag" ;; 4185esac 4186reload_cmds='$LD$reload_flag -o $output$reload_objs' 4187case $host_os in 4188 darwin*) 4189 if test "$GCC" = yes; then 4190 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4191 else 4192 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4193 fi 4194 ;; 4195esac 4196 4197{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4198$as_echo_n "checking for BSD-compatible nm... " >&6; } 4199if test "${lt_cv_path_NM+set}" = set; then 4200 $as_echo_n "(cached) " >&6 4201else 4202 if test -n "$NM"; then 4203 # Let the user override the test. 4204 lt_cv_path_NM="$NM" 4205else 4206 lt_nm_to_check="${ac_tool_prefix}nm" 4207 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4208 lt_nm_to_check="$lt_nm_to_check nm" 4209 fi 4210 for lt_tmp_nm in $lt_nm_to_check; do 4211 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4212 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4213 IFS="$lt_save_ifs" 4214 test -z "$ac_dir" && ac_dir=. 4215 tmp_nm="$ac_dir/$lt_tmp_nm" 4216 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4217 # Check to see if the nm accepts a BSD-compat flag. 4218 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4219 # nm: unknown option "B" ignored 4220 # Tru64's nm complains that /dev/null is an invalid object file 4221 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4222 */dev/null* | *'Invalid file or object type'*) 4223 lt_cv_path_NM="$tmp_nm -B" 4224 break 4225 ;; 4226 *) 4227 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4228 */dev/null*) 4229 lt_cv_path_NM="$tmp_nm -p" 4230 break 4231 ;; 4232 *) 4233 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4234 continue # so that we can try to find one that supports BSD flags 4235 ;; 4236 esac 4237 ;; 4238 esac 4239 fi 4240 done 4241 IFS="$lt_save_ifs" 4242 done 4243 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4244fi 4245fi 4246{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4247$as_echo "$lt_cv_path_NM" >&6; } 4248NM="$lt_cv_path_NM" 4249 4250{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 4251$as_echo_n "checking whether ln -s works... " >&6; } 4252LN_S=$as_ln_s 4253if test "$LN_S" = "ln -s"; then 4254 { $as_echo "$as_me:$LINENO: result: yes" >&5 4255$as_echo "yes" >&6; } 4256else 4257 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4258$as_echo "no, using $LN_S" >&6; } 4259fi 4260 4261{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 4262$as_echo_n "checking how to recognize dependent libraries... " >&6; } 4263if test "${lt_cv_deplibs_check_method+set}" = set; then 4264 $as_echo_n "(cached) " >&6 4265else 4266 lt_cv_file_magic_cmd='$MAGIC_CMD' 4267lt_cv_file_magic_test_file= 4268lt_cv_deplibs_check_method='unknown' 4269# Need to set the preceding variable on all platforms that support 4270# interlibrary dependencies. 4271# 'none' -- dependencies not supported. 4272# `unknown' -- same as none, but documents that we really don't know. 4273# 'pass_all' -- all dependencies passed with no checks. 4274# 'test_compile' -- check by making test program. 4275# 'file_magic [[regex]]' -- check by looking for files in library path 4276# which responds to the $file_magic_cmd with a given extended regex. 4277# If you have `file' or equivalent on your system and you're not sure 4278# whether `pass_all' will *always* work, you probably want this one. 4279 4280case $host_os in 4281aix[4-9]*) 4282 lt_cv_deplibs_check_method=pass_all 4283 ;; 4284 4285beos*) 4286 lt_cv_deplibs_check_method=pass_all 4287 ;; 4288 4289bsdi[45]*) 4290 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4291 lt_cv_file_magic_cmd='/usr/bin/file -L' 4292 lt_cv_file_magic_test_file=/shlib/libc.so 4293 ;; 4294 4295cygwin*) 4296 # func_win32_libid is a shell function defined in ltmain.sh 4297 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4298 lt_cv_file_magic_cmd='func_win32_libid' 4299 ;; 4300 4301mingw* | pw32*) 4302 # Base MSYS/MinGW do not provide the 'file' command needed by 4303 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4304 # unless we find 'file', for example because we are cross-compiling. 4305 if ( file / ) >/dev/null 2>&1; then 4306 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4307 lt_cv_file_magic_cmd='func_win32_libid' 4308 else 4309 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4310 lt_cv_file_magic_cmd='$OBJDUMP -f' 4311 fi 4312 ;; 4313 4314darwin* | rhapsody*) 4315 lt_cv_deplibs_check_method=pass_all 4316 ;; 4317 4318freebsd* | dragonfly*) 4319 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4320 case $host_cpu in 4321 i*86 ) 4322 # Not sure whether the presence of OpenBSD here was a mistake. 4323 # Let's accept both of them until this is cleared up. 4324 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4325 lt_cv_file_magic_cmd=/usr/bin/file 4326 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4327 ;; 4328 esac 4329 else 4330 lt_cv_deplibs_check_method=pass_all 4331 fi 4332 ;; 4333 4334gnu*) 4335 lt_cv_deplibs_check_method=pass_all 4336 ;; 4337 4338hpux10.20* | hpux11*) 4339 lt_cv_file_magic_cmd=/usr/bin/file 4340 case $host_cpu in 4341 ia64*) 4342 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4343 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4344 ;; 4345 hppa*64*) 4346 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]' 4347 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4348 ;; 4349 *) 4350 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4351 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4352 ;; 4353 esac 4354 ;; 4355 4356interix[3-9]*) 4357 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4358 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4359 ;; 4360 4361irix5* | irix6* | nonstopux*) 4362 case $LD in 4363 *-32|*"-32 ") libmagic=32-bit;; 4364 *-n32|*"-n32 ") libmagic=N32;; 4365 *-64|*"-64 ") libmagic=64-bit;; 4366 *) libmagic=never-match;; 4367 esac 4368 lt_cv_deplibs_check_method=pass_all 4369 ;; 4370 4371# This must be Linux ELF. 4372linux* | k*bsd*-gnu) 4373 lt_cv_deplibs_check_method=pass_all 4374 ;; 4375 4376netbsd*) 4377 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4378 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4379 else 4380 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4381 fi 4382 ;; 4383 4384newos6*) 4385 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4386 lt_cv_file_magic_cmd=/usr/bin/file 4387 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4388 ;; 4389 4390nto-qnx*) 4391 lt_cv_deplibs_check_method=unknown 4392 ;; 4393 4394openbsd*) 4395 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4396 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4397 else 4398 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4399 fi 4400 ;; 4401 4402osf3* | osf4* | osf5*) 4403 lt_cv_deplibs_check_method=pass_all 4404 ;; 4405 4406rdos*) 4407 lt_cv_deplibs_check_method=pass_all 4408 ;; 4409 4410solaris*) 4411 lt_cv_deplibs_check_method=pass_all 4412 ;; 4413 4414sysv4 | sysv4.3*) 4415 case $host_vendor in 4416 motorola) 4417 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]' 4418 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4419 ;; 4420 ncr) 4421 lt_cv_deplibs_check_method=pass_all 4422 ;; 4423 sequent) 4424 lt_cv_file_magic_cmd='/bin/file' 4425 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4426 ;; 4427 sni) 4428 lt_cv_file_magic_cmd='/bin/file' 4429 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4430 lt_cv_file_magic_test_file=/lib/libc.so 4431 ;; 4432 siemens) 4433 lt_cv_deplibs_check_method=pass_all 4434 ;; 4435 pc) 4436 lt_cv_deplibs_check_method=pass_all 4437 ;; 4438 esac 4439 ;; 4440 4441sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4442 lt_cv_deplibs_check_method=pass_all 4443 ;; 4444esac 4445 4446fi 4447{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4448$as_echo "$lt_cv_deplibs_check_method" >&6; } 4449file_magic_cmd=$lt_cv_file_magic_cmd 4450deplibs_check_method=$lt_cv_deplibs_check_method 4451test -z "$deplibs_check_method" && deplibs_check_method=unknown 4452 4453 4454 4455 4456# If no C compiler was specified, use CC. 4457LTCC=${LTCC-"$CC"} 4458 4459# If no C compiler flags were specified, use CFLAGS. 4460LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4461 4462# Allow CC to be a program name with arguments. 4463compiler=$CC 4464 4465 4466# Check whether --enable-libtool-lock was given. 4467if test "${enable_libtool_lock+set}" = set; then 4468 enableval=$enable_libtool_lock; 4469fi 4470 4471test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4472 4473# Some flags need to be propagated to the compiler or linker for good 4474# libtool support. 4475case $host in 4476ia64-*-hpux*) 4477 # Find out which ABI we are using. 4478 echo 'int i;' > conftest.$ac_ext 4479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4480 (eval $ac_compile) 2>&5 4481 ac_status=$? 4482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4483 (exit $ac_status); }; then 4484 case `/usr/bin/file conftest.$ac_objext` in 4485 *ELF-32*) 4486 HPUX_IA64_MODE="32" 4487 ;; 4488 *ELF-64*) 4489 HPUX_IA64_MODE="64" 4490 ;; 4491 esac 4492 fi 4493 rm -rf conftest* 4494 ;; 4495*-*-irix6*) 4496 # Find out which ABI we are using. 4497 echo '#line 4497 "configure"' > conftest.$ac_ext 4498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4499 (eval $ac_compile) 2>&5 4500 ac_status=$? 4501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4502 (exit $ac_status); }; then 4503 if test "$lt_cv_prog_gnu_ld" = yes; then 4504 case `/usr/bin/file conftest.$ac_objext` in 4505 *32-bit*) 4506 LD="${LD-ld} -melf32bsmip" 4507 ;; 4508 *N32*) 4509 LD="${LD-ld} -melf32bmipn32" 4510 ;; 4511 *64-bit*) 4512 LD="${LD-ld} -melf64bmip" 4513 ;; 4514 esac 4515 else 4516 case `/usr/bin/file conftest.$ac_objext` in 4517 *32-bit*) 4518 LD="${LD-ld} -32" 4519 ;; 4520 *N32*) 4521 LD="${LD-ld} -n32" 4522 ;; 4523 *64-bit*) 4524 LD="${LD-ld} -64" 4525 ;; 4526 esac 4527 fi 4528 fi 4529 rm -rf conftest* 4530 ;; 4531 4532x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 4533s390*-*linux*|sparc*-*linux*) 4534 # Find out which ABI we are using. 4535 echo 'int i;' > conftest.$ac_ext 4536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4537 (eval $ac_compile) 2>&5 4538 ac_status=$? 4539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4540 (exit $ac_status); }; then 4541 case `/usr/bin/file conftest.o` in 4542 *32-bit*) 4543 case $host in 4544 x86_64-*kfreebsd*-gnu) 4545 LD="${LD-ld} -m elf_i386_fbsd" 4546 ;; 4547 x86_64-*linux*) 4548 LD="${LD-ld} -m elf_i386" 4549 ;; 4550 ppc64-*linux*|powerpc64-*linux*) 4551 LD="${LD-ld} -m elf32ppclinux" 4552 ;; 4553 s390x-*linux*) 4554 LD="${LD-ld} -m elf_s390" 4555 ;; 4556 sparc64-*linux*) 4557 LD="${LD-ld} -m elf32_sparc" 4558 ;; 4559 esac 4560 ;; 4561 *64-bit*) 4562 libsuff=64 4563 case $host in 4564 x86_64-*kfreebsd*-gnu) 4565 LD="${LD-ld} -m elf_x86_64_fbsd" 4566 ;; 4567 x86_64-*linux*) 4568 LD="${LD-ld} -m elf_x86_64" 4569 ;; 4570 ppc*-*linux*|powerpc*-*linux*) 4571 LD="${LD-ld} -m elf64ppc" 4572 ;; 4573 s390*-*linux*) 4574 LD="${LD-ld} -m elf64_s390" 4575 ;; 4576 sparc*-*linux*) 4577 LD="${LD-ld} -m elf64_sparc" 4578 ;; 4579 esac 4580 ;; 4581 esac 4582 fi 4583 rm -rf conftest* 4584 ;; 4585 4586*-*-sco3.2v5*) 4587 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4588 SAVE_CFLAGS="$CFLAGS" 4589 CFLAGS="$CFLAGS -belf" 4590 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4591$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 4592if test "${lt_cv_cc_needs_belf+set}" = set; then 4593 $as_echo_n "(cached) " >&6 4594else 4595 ac_ext=c 4596ac_cpp='$CPP $CPPFLAGS' 4597ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4598ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4599ac_compiler_gnu=$ac_cv_c_compiler_gnu 4600 4601 cat >conftest.$ac_ext <<_ACEOF 4602/* confdefs.h. */ 4603_ACEOF 4604cat confdefs.h >>conftest.$ac_ext 4605cat >>conftest.$ac_ext <<_ACEOF 4606/* end confdefs.h. */ 4607 4608int 4609main () 4610{ 4611 4612 ; 4613 return 0; 4614} 4615_ACEOF 4616rm -f conftest.$ac_objext conftest$ac_exeext 4617if { (ac_try="$ac_link" 4618case "(($ac_try" in 4619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4620 *) ac_try_echo=$ac_try;; 4621esac 4622eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4623$as_echo "$ac_try_echo") >&5 4624 (eval "$ac_link") 2>conftest.er1 4625 ac_status=$? 4626 grep -v '^ *+' conftest.er1 >conftest.err 4627 rm -f conftest.er1 4628 cat conftest.err >&5 4629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4630 (exit $ac_status); } && { 4631 test -z "$ac_c_werror_flag" || 4632 test ! -s conftest.err 4633 } && test -s conftest$ac_exeext && { 4634 test "$cross_compiling" = yes || 4635 $as_test_x conftest$ac_exeext 4636 }; then 4637 lt_cv_cc_needs_belf=yes 4638else 4639 $as_echo "$as_me: failed program was:" >&5 4640sed 's/^/| /' conftest.$ac_ext >&5 4641 4642 lt_cv_cc_needs_belf=no 4643fi 4644 4645rm -rf conftest.dSYM 4646rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4647 conftest$ac_exeext conftest.$ac_ext 4648 ac_ext=c 4649ac_cpp='$CPP $CPPFLAGS' 4650ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4651ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4652ac_compiler_gnu=$ac_cv_c_compiler_gnu 4653 4654fi 4655{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4656$as_echo "$lt_cv_cc_needs_belf" >&6; } 4657 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4658 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4659 CFLAGS="$SAVE_CFLAGS" 4660 fi 4661 ;; 4662sparc*-*solaris*) 4663 # Find out which ABI we are using. 4664 echo 'int i;' > conftest.$ac_ext 4665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4666 (eval $ac_compile) 2>&5 4667 ac_status=$? 4668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4669 (exit $ac_status); }; then 4670 case `/usr/bin/file conftest.o` in 4671 *64-bit*) 4672 case $lt_cv_prog_gnu_ld in 4673 yes*) LD="${LD-ld} -m elf64_sparc" ;; 4674 *) 4675 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 4676 LD="${LD-ld} -64" 4677 fi 4678 ;; 4679 esac 4680 ;; 4681 esac 4682 fi 4683 rm -rf conftest* 4684 ;; 4685 4686 4687esac 4688 4689need_locks="$enable_libtool_lock" 4690 4691 4692ac_ext=c 4693ac_cpp='$CPP $CPPFLAGS' 4694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4696ac_compiler_gnu=$ac_cv_c_compiler_gnu 4697{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4698$as_echo_n "checking how to run the C preprocessor... " >&6; } 4699# On Suns, sometimes $CPP names a directory. 4700if test -n "$CPP" && test -d "$CPP"; then 4701 CPP= 4702fi 4703if test -z "$CPP"; then 4704 if test "${ac_cv_prog_CPP+set}" = set; then 4705 $as_echo_n "(cached) " >&6 4706else 4707 # Double quotes because CPP needs to be expanded 4708 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4709 do 4710 ac_preproc_ok=false 4711for ac_c_preproc_warn_flag in '' yes 4712do 4713 # Use a header file that comes with gcc, so configuring glibc 4714 # with a fresh cross-compiler works. 4715 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4716 # <limits.h> exists even on freestanding compilers. 4717 # On the NeXT, cc -E runs the code through the compiler's parser, 4718 # not just through cpp. "Syntax error" is here to catch this case. 4719 cat >conftest.$ac_ext <<_ACEOF 4720/* confdefs.h. */ 4721_ACEOF 4722cat confdefs.h >>conftest.$ac_ext 4723cat >>conftest.$ac_ext <<_ACEOF 4724/* end confdefs.h. */ 4725#ifdef __STDC__ 4726# include <limits.h> 4727#else 4728# include <assert.h> 4729#endif 4730 Syntax error 4731_ACEOF 4732if { (ac_try="$ac_cpp conftest.$ac_ext" 4733case "(($ac_try" in 4734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4735 *) ac_try_echo=$ac_try;; 4736esac 4737eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4738$as_echo "$ac_try_echo") >&5 4739 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4740 ac_status=$? 4741 grep -v '^ *+' conftest.er1 >conftest.err 4742 rm -f conftest.er1 4743 cat conftest.err >&5 4744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4745 (exit $ac_status); } >/dev/null && { 4746 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4747 test ! -s conftest.err 4748 }; then 4749 : 4750else 4751 $as_echo "$as_me: failed program was:" >&5 4752sed 's/^/| /' conftest.$ac_ext >&5 4753 4754 # Broken: fails on valid input. 4755continue 4756fi 4757 4758rm -f conftest.err conftest.$ac_ext 4759 4760 # OK, works on sane cases. Now check whether nonexistent headers 4761 # can be detected and how. 4762 cat >conftest.$ac_ext <<_ACEOF 4763/* confdefs.h. */ 4764_ACEOF 4765cat confdefs.h >>conftest.$ac_ext 4766cat >>conftest.$ac_ext <<_ACEOF 4767/* end confdefs.h. */ 4768#include <ac_nonexistent.h> 4769_ACEOF 4770if { (ac_try="$ac_cpp conftest.$ac_ext" 4771case "(($ac_try" in 4772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4773 *) ac_try_echo=$ac_try;; 4774esac 4775eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4776$as_echo "$ac_try_echo") >&5 4777 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4778 ac_status=$? 4779 grep -v '^ *+' conftest.er1 >conftest.err 4780 rm -f conftest.er1 4781 cat conftest.err >&5 4782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4783 (exit $ac_status); } >/dev/null && { 4784 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4785 test ! -s conftest.err 4786 }; then 4787 # Broken: success on invalid input. 4788continue 4789else 4790 $as_echo "$as_me: failed program was:" >&5 4791sed 's/^/| /' conftest.$ac_ext >&5 4792 4793 # Passes both tests. 4794ac_preproc_ok=: 4795break 4796fi 4797 4798rm -f conftest.err conftest.$ac_ext 4799 4800done 4801# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4802rm -f conftest.err conftest.$ac_ext 4803if $ac_preproc_ok; then 4804 break 4805fi 4806 4807 done 4808 ac_cv_prog_CPP=$CPP 4809 4810fi 4811 CPP=$ac_cv_prog_CPP 4812else 4813 ac_cv_prog_CPP=$CPP 4814fi 4815{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 4816$as_echo "$CPP" >&6; } 4817ac_preproc_ok=false 4818for ac_c_preproc_warn_flag in '' yes 4819do 4820 # Use a header file that comes with gcc, so configuring glibc 4821 # with a fresh cross-compiler works. 4822 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4823 # <limits.h> exists even on freestanding compilers. 4824 # On the NeXT, cc -E runs the code through the compiler's parser, 4825 # not just through cpp. "Syntax error" is here to catch this case. 4826 cat >conftest.$ac_ext <<_ACEOF 4827/* confdefs.h. */ 4828_ACEOF 4829cat confdefs.h >>conftest.$ac_ext 4830cat >>conftest.$ac_ext <<_ACEOF 4831/* end confdefs.h. */ 4832#ifdef __STDC__ 4833# include <limits.h> 4834#else 4835# include <assert.h> 4836#endif 4837 Syntax error 4838_ACEOF 4839if { (ac_try="$ac_cpp conftest.$ac_ext" 4840case "(($ac_try" in 4841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4842 *) ac_try_echo=$ac_try;; 4843esac 4844eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4845$as_echo "$ac_try_echo") >&5 4846 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4847 ac_status=$? 4848 grep -v '^ *+' conftest.er1 >conftest.err 4849 rm -f conftest.er1 4850 cat conftest.err >&5 4851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4852 (exit $ac_status); } >/dev/null && { 4853 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4854 test ! -s conftest.err 4855 }; then 4856 : 4857else 4858 $as_echo "$as_me: failed program was:" >&5 4859sed 's/^/| /' conftest.$ac_ext >&5 4860 4861 # Broken: fails on valid input. 4862continue 4863fi 4864 4865rm -f conftest.err conftest.$ac_ext 4866 4867 # OK, works on sane cases. Now check whether nonexistent headers 4868 # can be detected and how. 4869 cat >conftest.$ac_ext <<_ACEOF 4870/* confdefs.h. */ 4871_ACEOF 4872cat confdefs.h >>conftest.$ac_ext 4873cat >>conftest.$ac_ext <<_ACEOF 4874/* end confdefs.h. */ 4875#include <ac_nonexistent.h> 4876_ACEOF 4877if { (ac_try="$ac_cpp conftest.$ac_ext" 4878case "(($ac_try" in 4879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4880 *) ac_try_echo=$ac_try;; 4881esac 4882eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4883$as_echo "$ac_try_echo") >&5 4884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4885 ac_status=$? 4886 grep -v '^ *+' conftest.er1 >conftest.err 4887 rm -f conftest.er1 4888 cat conftest.err >&5 4889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4890 (exit $ac_status); } >/dev/null && { 4891 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4892 test ! -s conftest.err 4893 }; then 4894 # Broken: success on invalid input. 4895continue 4896else 4897 $as_echo "$as_me: failed program was:" >&5 4898sed 's/^/| /' conftest.$ac_ext >&5 4899 4900 # Passes both tests. 4901ac_preproc_ok=: 4902break 4903fi 4904 4905rm -f conftest.err conftest.$ac_ext 4906 4907done 4908# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4909rm -f conftest.err conftest.$ac_ext 4910if $ac_preproc_ok; then 4911 : 4912else 4913 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4914See \`config.log' for more details." >&5 4915$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4916See \`config.log' for more details." >&2;} 4917 { (exit 1); exit 1; }; } 4918fi 4919 4920ac_ext=c 4921ac_cpp='$CPP $CPPFLAGS' 4922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4924ac_compiler_gnu=$ac_cv_c_compiler_gnu 4925 4926 4927{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4928$as_echo_n "checking for ANSI C header files... " >&6; } 4929if test "${ac_cv_header_stdc+set}" = set; then 4930 $as_echo_n "(cached) " >&6 4931else 4932 cat >conftest.$ac_ext <<_ACEOF 4933/* confdefs.h. */ 4934_ACEOF 4935cat confdefs.h >>conftest.$ac_ext 4936cat >>conftest.$ac_ext <<_ACEOF 4937/* end confdefs.h. */ 4938#include <stdlib.h> 4939#include <stdarg.h> 4940#include <string.h> 4941#include <float.h> 4942 4943int 4944main () 4945{ 4946 4947 ; 4948 return 0; 4949} 4950_ACEOF 4951rm -f conftest.$ac_objext 4952if { (ac_try="$ac_compile" 4953case "(($ac_try" in 4954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4955 *) ac_try_echo=$ac_try;; 4956esac 4957eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4958$as_echo "$ac_try_echo") >&5 4959 (eval "$ac_compile") 2>conftest.er1 4960 ac_status=$? 4961 grep -v '^ *+' conftest.er1 >conftest.err 4962 rm -f conftest.er1 4963 cat conftest.err >&5 4964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4965 (exit $ac_status); } && { 4966 test -z "$ac_c_werror_flag" || 4967 test ! -s conftest.err 4968 } && test -s conftest.$ac_objext; then 4969 ac_cv_header_stdc=yes 4970else 4971 $as_echo "$as_me: failed program was:" >&5 4972sed 's/^/| /' conftest.$ac_ext >&5 4973 4974 ac_cv_header_stdc=no 4975fi 4976 4977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4978 4979if test $ac_cv_header_stdc = yes; then 4980 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4981 cat >conftest.$ac_ext <<_ACEOF 4982/* confdefs.h. */ 4983_ACEOF 4984cat confdefs.h >>conftest.$ac_ext 4985cat >>conftest.$ac_ext <<_ACEOF 4986/* end confdefs.h. */ 4987#include <string.h> 4988 4989_ACEOF 4990if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4991 $EGREP "memchr" >/dev/null 2>&1; then 4992 : 4993else 4994 ac_cv_header_stdc=no 4995fi 4996rm -f conftest* 4997 4998fi 4999 5000if test $ac_cv_header_stdc = yes; then 5001 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5002 cat >conftest.$ac_ext <<_ACEOF 5003/* confdefs.h. */ 5004_ACEOF 5005cat confdefs.h >>conftest.$ac_ext 5006cat >>conftest.$ac_ext <<_ACEOF 5007/* end confdefs.h. */ 5008#include <stdlib.h> 5009 5010_ACEOF 5011if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5012 $EGREP "free" >/dev/null 2>&1; then 5013 : 5014else 5015 ac_cv_header_stdc=no 5016fi 5017rm -f conftest* 5018 5019fi 5020 5021if test $ac_cv_header_stdc = yes; then 5022 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5023 if test "$cross_compiling" = yes; then 5024 : 5025else 5026 cat >conftest.$ac_ext <<_ACEOF 5027/* confdefs.h. */ 5028_ACEOF 5029cat confdefs.h >>conftest.$ac_ext 5030cat >>conftest.$ac_ext <<_ACEOF 5031/* end confdefs.h. */ 5032#include <ctype.h> 5033#include <stdlib.h> 5034#if ((' ' & 0x0FF) == 0x020) 5035# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5036# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5037#else 5038# define ISLOWER(c) \ 5039 (('a' <= (c) && (c) <= 'i') \ 5040 || ('j' <= (c) && (c) <= 'r') \ 5041 || ('s' <= (c) && (c) <= 'z')) 5042# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5043#endif 5044 5045#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5046int 5047main () 5048{ 5049 int i; 5050 for (i = 0; i < 256; i++) 5051 if (XOR (islower (i), ISLOWER (i)) 5052 || toupper (i) != TOUPPER (i)) 5053 return 2; 5054 return 0; 5055} 5056_ACEOF 5057rm -f conftest$ac_exeext 5058if { (ac_try="$ac_link" 5059case "(($ac_try" in 5060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5061 *) ac_try_echo=$ac_try;; 5062esac 5063eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5064$as_echo "$ac_try_echo") >&5 5065 (eval "$ac_link") 2>&5 5066 ac_status=$? 5067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5068 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5069 { (case "(($ac_try" in 5070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5071 *) ac_try_echo=$ac_try;; 5072esac 5073eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5074$as_echo "$ac_try_echo") >&5 5075 (eval "$ac_try") 2>&5 5076 ac_status=$? 5077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5078 (exit $ac_status); }; }; then 5079 : 5080else 5081 $as_echo "$as_me: program exited with status $ac_status" >&5 5082$as_echo "$as_me: failed program was:" >&5 5083sed 's/^/| /' conftest.$ac_ext >&5 5084 5085( exit $ac_status ) 5086ac_cv_header_stdc=no 5087fi 5088rm -rf conftest.dSYM 5089rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5090fi 5091 5092 5093fi 5094fi 5095{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5096$as_echo "$ac_cv_header_stdc" >&6; } 5097if test $ac_cv_header_stdc = yes; then 5098 5099cat >>confdefs.h <<\_ACEOF 5100#define STDC_HEADERS 1 5101_ACEOF 5102 5103fi 5104 5105# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5116 inttypes.h stdint.h unistd.h 5117do 5118as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5119{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 5120$as_echo_n "checking for $ac_header... " >&6; } 5121if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5122 $as_echo_n "(cached) " >&6 5123else 5124 cat >conftest.$ac_ext <<_ACEOF 5125/* confdefs.h. */ 5126_ACEOF 5127cat confdefs.h >>conftest.$ac_ext 5128cat >>conftest.$ac_ext <<_ACEOF 5129/* end confdefs.h. */ 5130$ac_includes_default 5131 5132#include <$ac_header> 5133_ACEOF 5134rm -f conftest.$ac_objext 5135if { (ac_try="$ac_compile" 5136case "(($ac_try" in 5137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5138 *) ac_try_echo=$ac_try;; 5139esac 5140eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5141$as_echo "$ac_try_echo") >&5 5142 (eval "$ac_compile") 2>conftest.er1 5143 ac_status=$? 5144 grep -v '^ *+' conftest.er1 >conftest.err 5145 rm -f conftest.er1 5146 cat conftest.err >&5 5147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5148 (exit $ac_status); } && { 5149 test -z "$ac_c_werror_flag" || 5150 test ! -s conftest.err 5151 } && test -s conftest.$ac_objext; then 5152 eval "$as_ac_Header=yes" 5153else 5154 $as_echo "$as_me: failed program was:" >&5 5155sed 's/^/| /' conftest.$ac_ext >&5 5156 5157 eval "$as_ac_Header=no" 5158fi 5159 5160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5161fi 5162ac_res=`eval 'as_val=${'$as_ac_Header'} 5163 $as_echo "$as_val"'` 5164 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5165$as_echo "$ac_res" >&6; } 5166if test `eval 'as_val=${'$as_ac_Header'} 5167 $as_echo "$as_val"'` = yes; then 5168 cat >>confdefs.h <<_ACEOF 5169#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5170_ACEOF 5171 5172fi 5173 5174done 5175 5176 5177 5178for ac_header in dlfcn.h 5179do 5180as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5181if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5182 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 5183$as_echo_n "checking for $ac_header... " >&6; } 5184if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5185 $as_echo_n "(cached) " >&6 5186fi 5187ac_res=`eval 'as_val=${'$as_ac_Header'} 5188 $as_echo "$as_val"'` 5189 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5190$as_echo "$ac_res" >&6; } 5191else 5192 # Is the header compilable? 5193{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 5194$as_echo_n "checking $ac_header usability... " >&6; } 5195cat >conftest.$ac_ext <<_ACEOF 5196/* confdefs.h. */ 5197_ACEOF 5198cat confdefs.h >>conftest.$ac_ext 5199cat >>conftest.$ac_ext <<_ACEOF 5200/* end confdefs.h. */ 5201$ac_includes_default 5202#include <$ac_header> 5203_ACEOF 5204rm -f conftest.$ac_objext 5205if { (ac_try="$ac_compile" 5206case "(($ac_try" in 5207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5208 *) ac_try_echo=$ac_try;; 5209esac 5210eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5211$as_echo "$ac_try_echo") >&5 5212 (eval "$ac_compile") 2>conftest.er1 5213 ac_status=$? 5214 grep -v '^ *+' conftest.er1 >conftest.err 5215 rm -f conftest.er1 5216 cat conftest.err >&5 5217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5218 (exit $ac_status); } && { 5219 test -z "$ac_c_werror_flag" || 5220 test ! -s conftest.err 5221 } && test -s conftest.$ac_objext; then 5222 ac_header_compiler=yes 5223else 5224 $as_echo "$as_me: failed program was:" >&5 5225sed 's/^/| /' conftest.$ac_ext >&5 5226 5227 ac_header_compiler=no 5228fi 5229 5230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5231{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5232$as_echo "$ac_header_compiler" >&6; } 5233 5234# Is the header present? 5235{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 5236$as_echo_n "checking $ac_header presence... " >&6; } 5237cat >conftest.$ac_ext <<_ACEOF 5238/* confdefs.h. */ 5239_ACEOF 5240cat confdefs.h >>conftest.$ac_ext 5241cat >>conftest.$ac_ext <<_ACEOF 5242/* end confdefs.h. */ 5243#include <$ac_header> 5244_ACEOF 5245if { (ac_try="$ac_cpp conftest.$ac_ext" 5246case "(($ac_try" in 5247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5248 *) ac_try_echo=$ac_try;; 5249esac 5250eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5251$as_echo "$ac_try_echo") >&5 5252 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5253 ac_status=$? 5254 grep -v '^ *+' conftest.er1 >conftest.err 5255 rm -f conftest.er1 5256 cat conftest.err >&5 5257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5258 (exit $ac_status); } >/dev/null && { 5259 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5260 test ! -s conftest.err 5261 }; then 5262 ac_header_preproc=yes 5263else 5264 $as_echo "$as_me: failed program was:" >&5 5265sed 's/^/| /' conftest.$ac_ext >&5 5266 5267 ac_header_preproc=no 5268fi 5269 5270rm -f conftest.err conftest.$ac_ext 5271{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5272$as_echo "$ac_header_preproc" >&6; } 5273 5274# So? What about this header? 5275case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5276 yes:no: ) 5277 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5278$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5279 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5280$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5281 ac_header_preproc=yes 5282 ;; 5283 no:yes:* ) 5284 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5285$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5286 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5287$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5288 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5289$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5290 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5291$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5292 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5293$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5294 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5295$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5296 ( cat <<\_ASBOX 5297## ---------------------------------------------------------------------- ## 5298## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 5299## ---------------------------------------------------------------------- ## 5300_ASBOX 5301 ) | sed "s/^/$as_me: WARNING: /" >&2 5302 ;; 5303esac 5304{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 5305$as_echo_n "checking for $ac_header... " >&6; } 5306if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5307 $as_echo_n "(cached) " >&6 5308else 5309 eval "$as_ac_Header=\$ac_header_preproc" 5310fi 5311ac_res=`eval 'as_val=${'$as_ac_Header'} 5312 $as_echo "$as_val"'` 5313 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5314$as_echo "$ac_res" >&6; } 5315 5316fi 5317if test `eval 'as_val=${'$as_ac_Header'} 5318 $as_echo "$as_val"'` = yes; then 5319 cat >>confdefs.h <<_ACEOF 5320#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5321_ACEOF 5322 5323fi 5324 5325done 5326 5327ac_ext=cpp 5328ac_cpp='$CXXCPP $CPPFLAGS' 5329ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5330ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5331ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5332if test -z "$CXX"; then 5333 if test -n "$CCC"; then 5334 CXX=$CCC 5335 else 5336 if test -n "$ac_tool_prefix"; then 5337 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5338 do 5339 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5340set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5341{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5342$as_echo_n "checking for $ac_word... " >&6; } 5343if test "${ac_cv_prog_CXX+set}" = set; then 5344 $as_echo_n "(cached) " >&6 5345else 5346 if test -n "$CXX"; then 5347 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5348else 5349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5350for as_dir in $PATH 5351do 5352 IFS=$as_save_IFS 5353 test -z "$as_dir" && as_dir=. 5354 for ac_exec_ext in '' $ac_executable_extensions; do 5355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5356 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5357 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5358 break 2 5359 fi 5360done 5361done 5362IFS=$as_save_IFS 5363 5364fi 5365fi 5366CXX=$ac_cv_prog_CXX 5367if test -n "$CXX"; then 5368 { $as_echo "$as_me:$LINENO: result: $CXX" >&5 5369$as_echo "$CXX" >&6; } 5370else 5371 { $as_echo "$as_me:$LINENO: result: no" >&5 5372$as_echo "no" >&6; } 5373fi 5374 5375 5376 test -n "$CXX" && break 5377 done 5378fi 5379if test -z "$CXX"; then 5380 ac_ct_CXX=$CXX 5381 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5382do 5383 # Extract the first word of "$ac_prog", so it can be a program name with args. 5384set dummy $ac_prog; ac_word=$2 5385{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5386$as_echo_n "checking for $ac_word... " >&6; } 5387if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 5388 $as_echo_n "(cached) " >&6 5389else 5390 if test -n "$ac_ct_CXX"; then 5391 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5392else 5393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5394for as_dir in $PATH 5395do 5396 IFS=$as_save_IFS 5397 test -z "$as_dir" && as_dir=. 5398 for ac_exec_ext in '' $ac_executable_extensions; do 5399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5400 ac_cv_prog_ac_ct_CXX="$ac_prog" 5401 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5402 break 2 5403 fi 5404done 5405done 5406IFS=$as_save_IFS 5407 5408fi 5409fi 5410ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5411if test -n "$ac_ct_CXX"; then 5412 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 5413$as_echo "$ac_ct_CXX" >&6; } 5414else 5415 { $as_echo "$as_me:$LINENO: result: no" >&5 5416$as_echo "no" >&6; } 5417fi 5418 5419 5420 test -n "$ac_ct_CXX" && break 5421done 5422 5423 if test "x$ac_ct_CXX" = x; then 5424 CXX="g++" 5425 else 5426 case $cross_compiling:$ac_tool_warned in 5427yes:) 5428{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5429whose name does not start with the host triplet. If you think this 5430configuration is useful to you, please write to autoconf@gnu.org." >&5 5431$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5432whose name does not start with the host triplet. If you think this 5433configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5434ac_tool_warned=yes ;; 5435esac 5436 CXX=$ac_ct_CXX 5437 fi 5438fi 5439 5440 fi 5441fi 5442# Provide some information about the compiler. 5443$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5 5444set X $ac_compile 5445ac_compiler=$2 5446{ (ac_try="$ac_compiler --version >&5" 5447case "(($ac_try" in 5448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5449 *) ac_try_echo=$ac_try;; 5450esac 5451eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5452$as_echo "$ac_try_echo") >&5 5453 (eval "$ac_compiler --version >&5") 2>&5 5454 ac_status=$? 5455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5456 (exit $ac_status); } 5457{ (ac_try="$ac_compiler -v >&5" 5458case "(($ac_try" in 5459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5460 *) ac_try_echo=$ac_try;; 5461esac 5462eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5463$as_echo "$ac_try_echo") >&5 5464 (eval "$ac_compiler -v >&5") 2>&5 5465 ac_status=$? 5466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5467 (exit $ac_status); } 5468{ (ac_try="$ac_compiler -V >&5" 5469case "(($ac_try" in 5470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5471 *) ac_try_echo=$ac_try;; 5472esac 5473eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5474$as_echo "$ac_try_echo") >&5 5475 (eval "$ac_compiler -V >&5") 2>&5 5476 ac_status=$? 5477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5478 (exit $ac_status); } 5479 5480{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5481$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 5482if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5483 $as_echo_n "(cached) " >&6 5484else 5485 cat >conftest.$ac_ext <<_ACEOF 5486/* confdefs.h. */ 5487_ACEOF 5488cat confdefs.h >>conftest.$ac_ext 5489cat >>conftest.$ac_ext <<_ACEOF 5490/* end confdefs.h. */ 5491 5492int 5493main () 5494{ 5495#ifndef __GNUC__ 5496 choke me 5497#endif 5498 5499 ; 5500 return 0; 5501} 5502_ACEOF 5503rm -f conftest.$ac_objext 5504if { (ac_try="$ac_compile" 5505case "(($ac_try" in 5506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5507 *) ac_try_echo=$ac_try;; 5508esac 5509eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5510$as_echo "$ac_try_echo") >&5 5511 (eval "$ac_compile") 2>conftest.er1 5512 ac_status=$? 5513 grep -v '^ *+' conftest.er1 >conftest.err 5514 rm -f conftest.er1 5515 cat conftest.err >&5 5516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5517 (exit $ac_status); } && { 5518 test -z "$ac_cxx_werror_flag" || 5519 test ! -s conftest.err 5520 } && test -s conftest.$ac_objext; then 5521 ac_compiler_gnu=yes 5522else 5523 $as_echo "$as_me: failed program was:" >&5 5524sed 's/^/| /' conftest.$ac_ext >&5 5525 5526 ac_compiler_gnu=no 5527fi 5528 5529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5530ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5531 5532fi 5533{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 5534$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 5535if test $ac_compiler_gnu = yes; then 5536 GXX=yes 5537else 5538 GXX= 5539fi 5540ac_test_CXXFLAGS=${CXXFLAGS+set} 5541ac_save_CXXFLAGS=$CXXFLAGS 5542{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 5543$as_echo_n "checking whether $CXX accepts -g... " >&6; } 5544if test "${ac_cv_prog_cxx_g+set}" = set; then 5545 $as_echo_n "(cached) " >&6 5546else 5547 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5548 ac_cxx_werror_flag=yes 5549 ac_cv_prog_cxx_g=no 5550 CXXFLAGS="-g" 5551 cat >conftest.$ac_ext <<_ACEOF 5552/* confdefs.h. */ 5553_ACEOF 5554cat confdefs.h >>conftest.$ac_ext 5555cat >>conftest.$ac_ext <<_ACEOF 5556/* end confdefs.h. */ 5557 5558int 5559main () 5560{ 5561 5562 ; 5563 return 0; 5564} 5565_ACEOF 5566rm -f conftest.$ac_objext 5567if { (ac_try="$ac_compile" 5568case "(($ac_try" in 5569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5570 *) ac_try_echo=$ac_try;; 5571esac 5572eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5573$as_echo "$ac_try_echo") >&5 5574 (eval "$ac_compile") 2>conftest.er1 5575 ac_status=$? 5576 grep -v '^ *+' conftest.er1 >conftest.err 5577 rm -f conftest.er1 5578 cat conftest.err >&5 5579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5580 (exit $ac_status); } && { 5581 test -z "$ac_cxx_werror_flag" || 5582 test ! -s conftest.err 5583 } && test -s conftest.$ac_objext; then 5584 ac_cv_prog_cxx_g=yes 5585else 5586 $as_echo "$as_me: failed program was:" >&5 5587sed 's/^/| /' conftest.$ac_ext >&5 5588 5589 CXXFLAGS="" 5590 cat >conftest.$ac_ext <<_ACEOF 5591/* confdefs.h. */ 5592_ACEOF 5593cat confdefs.h >>conftest.$ac_ext 5594cat >>conftest.$ac_ext <<_ACEOF 5595/* end confdefs.h. */ 5596 5597int 5598main () 5599{ 5600 5601 ; 5602 return 0; 5603} 5604_ACEOF 5605rm -f conftest.$ac_objext 5606if { (ac_try="$ac_compile" 5607case "(($ac_try" in 5608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5609 *) ac_try_echo=$ac_try;; 5610esac 5611eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5612$as_echo "$ac_try_echo") >&5 5613 (eval "$ac_compile") 2>conftest.er1 5614 ac_status=$? 5615 grep -v '^ *+' conftest.er1 >conftest.err 5616 rm -f conftest.er1 5617 cat conftest.err >&5 5618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5619 (exit $ac_status); } && { 5620 test -z "$ac_cxx_werror_flag" || 5621 test ! -s conftest.err 5622 } && test -s conftest.$ac_objext; then 5623 : 5624else 5625 $as_echo "$as_me: failed program was:" >&5 5626sed 's/^/| /' conftest.$ac_ext >&5 5627 5628 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5629 CXXFLAGS="-g" 5630 cat >conftest.$ac_ext <<_ACEOF 5631/* confdefs.h. */ 5632_ACEOF 5633cat confdefs.h >>conftest.$ac_ext 5634cat >>conftest.$ac_ext <<_ACEOF 5635/* end confdefs.h. */ 5636 5637int 5638main () 5639{ 5640 5641 ; 5642 return 0; 5643} 5644_ACEOF 5645rm -f conftest.$ac_objext 5646if { (ac_try="$ac_compile" 5647case "(($ac_try" in 5648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5649 *) ac_try_echo=$ac_try;; 5650esac 5651eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5652$as_echo "$ac_try_echo") >&5 5653 (eval "$ac_compile") 2>conftest.er1 5654 ac_status=$? 5655 grep -v '^ *+' conftest.er1 >conftest.err 5656 rm -f conftest.er1 5657 cat conftest.err >&5 5658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5659 (exit $ac_status); } && { 5660 test -z "$ac_cxx_werror_flag" || 5661 test ! -s conftest.err 5662 } && test -s conftest.$ac_objext; then 5663 ac_cv_prog_cxx_g=yes 5664else 5665 $as_echo "$as_me: failed program was:" >&5 5666sed 's/^/| /' conftest.$ac_ext >&5 5667 5668 5669fi 5670 5671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5672fi 5673 5674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5675fi 5676 5677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5678 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5679fi 5680{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 5681$as_echo "$ac_cv_prog_cxx_g" >&6; } 5682if test "$ac_test_CXXFLAGS" = set; then 5683 CXXFLAGS=$ac_save_CXXFLAGS 5684elif test $ac_cv_prog_cxx_g = yes; then 5685 if test "$GXX" = yes; then 5686 CXXFLAGS="-g -O2" 5687 else 5688 CXXFLAGS="-g" 5689 fi 5690else 5691 if test "$GXX" = yes; then 5692 CXXFLAGS="-O2" 5693 else 5694 CXXFLAGS= 5695 fi 5696fi 5697ac_ext=cpp 5698ac_cpp='$CXXCPP $CPPFLAGS' 5699ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5700ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5701ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5702 5703depcc="$CXX" am_compiler_list= 5704 5705{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5706$as_echo_n "checking dependency style of $depcc... " >&6; } 5707if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 5708 $as_echo_n "(cached) " >&6 5709else 5710 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5711 # We make a subdir and do the tests there. Otherwise we can end up 5712 # making bogus files that we don't know about and never remove. For 5713 # instance it was reported that on HP-UX the gcc test will end up 5714 # making a dummy file named `D' -- because `-MD' means `put the output 5715 # in D'. 5716 mkdir conftest.dir 5717 # Copy depcomp to subdir because otherwise we won't find it if we're 5718 # using a relative directory. 5719 cp "$am_depcomp" conftest.dir 5720 cd conftest.dir 5721 # We will build objects and dependencies in a subdirectory because 5722 # it helps to detect inapplicable dependency modes. For instance 5723 # both Tru64's cc and ICC support -MD to output dependencies as a 5724 # side effect of compilation, but ICC will put the dependencies in 5725 # the current directory while Tru64 will put them in the object 5726 # directory. 5727 mkdir sub 5728 5729 am_cv_CXX_dependencies_compiler_type=none 5730 if test "$am_compiler_list" = ""; then 5731 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5732 fi 5733 for depmode in $am_compiler_list; do 5734 # Setup a source with many dependencies, because some compilers 5735 # like to wrap large dependency lists on column 80 (with \), and 5736 # we should not choose a depcomp mode which is confused by this. 5737 # 5738 # We need to recreate these files for each test, as the compiler may 5739 # overwrite some of them when testing with obscure command lines. 5740 # This happens at least with the AIX C compiler. 5741 : > sub/conftest.c 5742 for i in 1 2 3 4 5 6; do 5743 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5744 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5745 # Solaris 8's {/usr,}/bin/sh. 5746 touch sub/conftst$i.h 5747 done 5748 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5749 5750 case $depmode in 5751 nosideeffect) 5752 # after this tag, mechanisms are not by side-effect, so they'll 5753 # only be used when explicitly requested 5754 if test "x$enable_dependency_tracking" = xyes; then 5755 continue 5756 else 5757 break 5758 fi 5759 ;; 5760 none) break ;; 5761 esac 5762 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5763 # mode. It turns out that the SunPro C++ compiler does not properly 5764 # handle `-M -o', and we need to detect this. 5765 if depmode=$depmode \ 5766 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5767 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5768 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5769 >/dev/null 2>conftest.err && 5770 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5771 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5772 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5773 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5774 # icc doesn't choke on unknown options, it will just issue warnings 5775 # or remarks (even with -Werror). So we grep stderr for any message 5776 # that says an option was ignored or not supported. 5777 # When given -MP, icc 7.0 and 7.1 complain thusly: 5778 # icc: Command line warning: ignoring option '-M'; no argument required 5779 # The diagnosis changed in icc 8.0: 5780 # icc: Command line remark: option '-MP' not supported 5781 if (grep 'ignoring option' conftest.err || 5782 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5783 am_cv_CXX_dependencies_compiler_type=$depmode 5784 break 5785 fi 5786 fi 5787 done 5788 5789 cd .. 5790 rm -rf conftest.dir 5791else 5792 am_cv_CXX_dependencies_compiler_type=none 5793fi 5794 5795fi 5796{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 5797$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 5798CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5799 5800 if 5801 test "x$enable_dependency_tracking" != xno \ 5802 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5803 am__fastdepCXX_TRUE= 5804 am__fastdepCXX_FALSE='#' 5805else 5806 am__fastdepCXX_TRUE='#' 5807 am__fastdepCXX_FALSE= 5808fi 5809 5810 5811 5812 5813if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5814 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5815 (test "X$CXX" != "Xg++"))) ; then 5816 ac_ext=cpp 5817ac_cpp='$CXXCPP $CPPFLAGS' 5818ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5819ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5820ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5821{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5822$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 5823if test -z "$CXXCPP"; then 5824 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5825 $as_echo_n "(cached) " >&6 5826else 5827 # Double quotes because CXXCPP needs to be expanded 5828 for CXXCPP in "$CXX -E" "/lib/cpp" 5829 do 5830 ac_preproc_ok=false 5831for ac_cxx_preproc_warn_flag in '' yes 5832do 5833 # Use a header file that comes with gcc, so configuring glibc 5834 # with a fresh cross-compiler works. 5835 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5836 # <limits.h> exists even on freestanding compilers. 5837 # On the NeXT, cc -E runs the code through the compiler's parser, 5838 # not just through cpp. "Syntax error" is here to catch this case. 5839 cat >conftest.$ac_ext <<_ACEOF 5840/* confdefs.h. */ 5841_ACEOF 5842cat confdefs.h >>conftest.$ac_ext 5843cat >>conftest.$ac_ext <<_ACEOF 5844/* end confdefs.h. */ 5845#ifdef __STDC__ 5846# include <limits.h> 5847#else 5848# include <assert.h> 5849#endif 5850 Syntax error 5851_ACEOF 5852if { (ac_try="$ac_cpp conftest.$ac_ext" 5853case "(($ac_try" in 5854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5855 *) ac_try_echo=$ac_try;; 5856esac 5857eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5858$as_echo "$ac_try_echo") >&5 5859 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5860 ac_status=$? 5861 grep -v '^ *+' conftest.er1 >conftest.err 5862 rm -f conftest.er1 5863 cat conftest.err >&5 5864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5865 (exit $ac_status); } >/dev/null && { 5866 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5867 test ! -s conftest.err 5868 }; then 5869 : 5870else 5871 $as_echo "$as_me: failed program was:" >&5 5872sed 's/^/| /' conftest.$ac_ext >&5 5873 5874 # Broken: fails on valid input. 5875continue 5876fi 5877 5878rm -f conftest.err conftest.$ac_ext 5879 5880 # OK, works on sane cases. Now check whether nonexistent headers 5881 # can be detected and how. 5882 cat >conftest.$ac_ext <<_ACEOF 5883/* confdefs.h. */ 5884_ACEOF 5885cat confdefs.h >>conftest.$ac_ext 5886cat >>conftest.$ac_ext <<_ACEOF 5887/* end confdefs.h. */ 5888#include <ac_nonexistent.h> 5889_ACEOF 5890if { (ac_try="$ac_cpp conftest.$ac_ext" 5891case "(($ac_try" in 5892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5893 *) ac_try_echo=$ac_try;; 5894esac 5895eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5896$as_echo "$ac_try_echo") >&5 5897 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5898 ac_status=$? 5899 grep -v '^ *+' conftest.er1 >conftest.err 5900 rm -f conftest.er1 5901 cat conftest.err >&5 5902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5903 (exit $ac_status); } >/dev/null && { 5904 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5905 test ! -s conftest.err 5906 }; then 5907 # Broken: success on invalid input. 5908continue 5909else 5910 $as_echo "$as_me: failed program was:" >&5 5911sed 's/^/| /' conftest.$ac_ext >&5 5912 5913 # Passes both tests. 5914ac_preproc_ok=: 5915break 5916fi 5917 5918rm -f conftest.err conftest.$ac_ext 5919 5920done 5921# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5922rm -f conftest.err conftest.$ac_ext 5923if $ac_preproc_ok; then 5924 break 5925fi 5926 5927 done 5928 ac_cv_prog_CXXCPP=$CXXCPP 5929 5930fi 5931 CXXCPP=$ac_cv_prog_CXXCPP 5932else 5933 ac_cv_prog_CXXCPP=$CXXCPP 5934fi 5935{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5 5936$as_echo "$CXXCPP" >&6; } 5937ac_preproc_ok=false 5938for ac_cxx_preproc_warn_flag in '' yes 5939do 5940 # Use a header file that comes with gcc, so configuring glibc 5941 # with a fresh cross-compiler works. 5942 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5943 # <limits.h> exists even on freestanding compilers. 5944 # On the NeXT, cc -E runs the code through the compiler's parser, 5945 # not just through cpp. "Syntax error" is here to catch this case. 5946 cat >conftest.$ac_ext <<_ACEOF 5947/* confdefs.h. */ 5948_ACEOF 5949cat confdefs.h >>conftest.$ac_ext 5950cat >>conftest.$ac_ext <<_ACEOF 5951/* end confdefs.h. */ 5952#ifdef __STDC__ 5953# include <limits.h> 5954#else 5955# include <assert.h> 5956#endif 5957 Syntax error 5958_ACEOF 5959if { (ac_try="$ac_cpp conftest.$ac_ext" 5960case "(($ac_try" in 5961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5962 *) ac_try_echo=$ac_try;; 5963esac 5964eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5965$as_echo "$ac_try_echo") >&5 5966 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5967 ac_status=$? 5968 grep -v '^ *+' conftest.er1 >conftest.err 5969 rm -f conftest.er1 5970 cat conftest.err >&5 5971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5972 (exit $ac_status); } >/dev/null && { 5973 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5974 test ! -s conftest.err 5975 }; then 5976 : 5977else 5978 $as_echo "$as_me: failed program was:" >&5 5979sed 's/^/| /' conftest.$ac_ext >&5 5980 5981 # Broken: fails on valid input. 5982continue 5983fi 5984 5985rm -f conftest.err conftest.$ac_ext 5986 5987 # OK, works on sane cases. Now check whether nonexistent headers 5988 # can be detected and how. 5989 cat >conftest.$ac_ext <<_ACEOF 5990/* confdefs.h. */ 5991_ACEOF 5992cat confdefs.h >>conftest.$ac_ext 5993cat >>conftest.$ac_ext <<_ACEOF 5994/* end confdefs.h. */ 5995#include <ac_nonexistent.h> 5996_ACEOF 5997if { (ac_try="$ac_cpp conftest.$ac_ext" 5998case "(($ac_try" in 5999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6000 *) ac_try_echo=$ac_try;; 6001esac 6002eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6003$as_echo "$ac_try_echo") >&5 6004 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6005 ac_status=$? 6006 grep -v '^ *+' conftest.er1 >conftest.err 6007 rm -f conftest.er1 6008 cat conftest.err >&5 6009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6010 (exit $ac_status); } >/dev/null && { 6011 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6012 test ! -s conftest.err 6013 }; then 6014 # Broken: success on invalid input. 6015continue 6016else 6017 $as_echo "$as_me: failed program was:" >&5 6018sed 's/^/| /' conftest.$ac_ext >&5 6019 6020 # Passes both tests. 6021ac_preproc_ok=: 6022break 6023fi 6024 6025rm -f conftest.err conftest.$ac_ext 6026 6027done 6028# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6029rm -f conftest.err conftest.$ac_ext 6030if $ac_preproc_ok; then 6031 : 6032else 6033 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6034See \`config.log' for more details." >&5 6035$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6036See \`config.log' for more details." >&2;} 6037 { (exit 1); exit 1; }; } 6038fi 6039 6040ac_ext=cpp 6041ac_cpp='$CXXCPP $CPPFLAGS' 6042ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6043ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6044ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6045 6046fi 6047 6048 6049ac_ext=f 6050ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6051ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6052ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6053if test -n "$ac_tool_prefix"; then 6054 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 6055 do 6056 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6057set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6058{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6059$as_echo_n "checking for $ac_word... " >&6; } 6060if test "${ac_cv_prog_F77+set}" = set; then 6061 $as_echo_n "(cached) " >&6 6062else 6063 if test -n "$F77"; then 6064 ac_cv_prog_F77="$F77" # Let the user override the test. 6065else 6066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6067for as_dir in $PATH 6068do 6069 IFS=$as_save_IFS 6070 test -z "$as_dir" && as_dir=. 6071 for ac_exec_ext in '' $ac_executable_extensions; do 6072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6073 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 6074 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6075 break 2 6076 fi 6077done 6078done 6079IFS=$as_save_IFS 6080 6081fi 6082fi 6083F77=$ac_cv_prog_F77 6084if test -n "$F77"; then 6085 { $as_echo "$as_me:$LINENO: result: $F77" >&5 6086$as_echo "$F77" >&6; } 6087else 6088 { $as_echo "$as_me:$LINENO: result: no" >&5 6089$as_echo "no" >&6; } 6090fi 6091 6092 6093 test -n "$F77" && break 6094 done 6095fi 6096if test -z "$F77"; then 6097 ac_ct_F77=$F77 6098 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 6099do 6100 # Extract the first word of "$ac_prog", so it can be a program name with args. 6101set dummy $ac_prog; ac_word=$2 6102{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6103$as_echo_n "checking for $ac_word... " >&6; } 6104if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 6105 $as_echo_n "(cached) " >&6 6106else 6107 if test -n "$ac_ct_F77"; then 6108 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 6109else 6110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6111for as_dir in $PATH 6112do 6113 IFS=$as_save_IFS 6114 test -z "$as_dir" && as_dir=. 6115 for ac_exec_ext in '' $ac_executable_extensions; do 6116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6117 ac_cv_prog_ac_ct_F77="$ac_prog" 6118 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6119 break 2 6120 fi 6121done 6122done 6123IFS=$as_save_IFS 6124 6125fi 6126fi 6127ac_ct_F77=$ac_cv_prog_ac_ct_F77 6128if test -n "$ac_ct_F77"; then 6129 { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 6130$as_echo "$ac_ct_F77" >&6; } 6131else 6132 { $as_echo "$as_me:$LINENO: result: no" >&5 6133$as_echo "no" >&6; } 6134fi 6135 6136 6137 test -n "$ac_ct_F77" && break 6138done 6139 6140 if test "x$ac_ct_F77" = x; then 6141 F77="" 6142 else 6143 case $cross_compiling:$ac_tool_warned in 6144yes:) 6145{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6146whose name does not start with the host triplet. If you think this 6147configuration is useful to you, please write to autoconf@gnu.org." >&5 6148$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6149whose name does not start with the host triplet. If you think this 6150configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6151ac_tool_warned=yes ;; 6152esac 6153 F77=$ac_ct_F77 6154 fi 6155fi 6156 6157 6158# Provide some information about the compiler. 6159$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 6160set X $ac_compile 6161ac_compiler=$2 6162{ (ac_try="$ac_compiler --version >&5" 6163case "(($ac_try" in 6164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6165 *) ac_try_echo=$ac_try;; 6166esac 6167eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6168$as_echo "$ac_try_echo") >&5 6169 (eval "$ac_compiler --version >&5") 2>&5 6170 ac_status=$? 6171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6172 (exit $ac_status); } 6173{ (ac_try="$ac_compiler -v >&5" 6174case "(($ac_try" in 6175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6176 *) ac_try_echo=$ac_try;; 6177esac 6178eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6179$as_echo "$ac_try_echo") >&5 6180 (eval "$ac_compiler -v >&5") 2>&5 6181 ac_status=$? 6182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6183 (exit $ac_status); } 6184{ (ac_try="$ac_compiler -V >&5" 6185case "(($ac_try" in 6186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6187 *) ac_try_echo=$ac_try;; 6188esac 6189eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6190$as_echo "$ac_try_echo") >&5 6191 (eval "$ac_compiler -V >&5") 2>&5 6192 ac_status=$? 6193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6194 (exit $ac_status); } 6195rm -f a.out 6196 6197# If we don't use `.F' as extension, the preprocessor is not run on the 6198# input file. (Note that this only needs to work for GNU compilers.) 6199ac_save_ext=$ac_ext 6200ac_ext=F 6201{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 6202$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; } 6203if test "${ac_cv_f77_compiler_gnu+set}" = set; then 6204 $as_echo_n "(cached) " >&6 6205else 6206 cat >conftest.$ac_ext <<_ACEOF 6207 program main 6208#ifndef __GNUC__ 6209 choke me 6210#endif 6211 6212 end 6213_ACEOF 6214rm -f conftest.$ac_objext 6215if { (ac_try="$ac_compile" 6216case "(($ac_try" in 6217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6218 *) ac_try_echo=$ac_try;; 6219esac 6220eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6221$as_echo "$ac_try_echo") >&5 6222 (eval "$ac_compile") 2>conftest.er1 6223 ac_status=$? 6224 grep -v '^ *+' conftest.er1 >conftest.err 6225 rm -f conftest.er1 6226 cat conftest.err >&5 6227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6228 (exit $ac_status); } && { 6229 test -z "$ac_f77_werror_flag" || 6230 test ! -s conftest.err 6231 } && test -s conftest.$ac_objext; then 6232 ac_compiler_gnu=yes 6233else 6234 $as_echo "$as_me: failed program was:" >&5 6235sed 's/^/| /' conftest.$ac_ext >&5 6236 6237 ac_compiler_gnu=no 6238fi 6239 6240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6241ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6242 6243fi 6244{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 6245$as_echo "$ac_cv_f77_compiler_gnu" >&6; } 6246ac_ext=$ac_save_ext 6247ac_test_FFLAGS=${FFLAGS+set} 6248ac_save_FFLAGS=$FFLAGS 6249FFLAGS= 6250{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 6251$as_echo_n "checking whether $F77 accepts -g... " >&6; } 6252if test "${ac_cv_prog_f77_g+set}" = set; then 6253 $as_echo_n "(cached) " >&6 6254else 6255 FFLAGS=-g 6256cat >conftest.$ac_ext <<_ACEOF 6257 program main 6258 6259 end 6260_ACEOF 6261rm -f conftest.$ac_objext 6262if { (ac_try="$ac_compile" 6263case "(($ac_try" in 6264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6265 *) ac_try_echo=$ac_try;; 6266esac 6267eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6268$as_echo "$ac_try_echo") >&5 6269 (eval "$ac_compile") 2>conftest.er1 6270 ac_status=$? 6271 grep -v '^ *+' conftest.er1 >conftest.err 6272 rm -f conftest.er1 6273 cat conftest.err >&5 6274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6275 (exit $ac_status); } && { 6276 test -z "$ac_f77_werror_flag" || 6277 test ! -s conftest.err 6278 } && test -s conftest.$ac_objext; then 6279 ac_cv_prog_f77_g=yes 6280else 6281 $as_echo "$as_me: failed program was:" >&5 6282sed 's/^/| /' conftest.$ac_ext >&5 6283 6284 ac_cv_prog_f77_g=no 6285fi 6286 6287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6288 6289fi 6290{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6291$as_echo "$ac_cv_prog_f77_g" >&6; } 6292if test "$ac_test_FFLAGS" = set; then 6293 FFLAGS=$ac_save_FFLAGS 6294elif test $ac_cv_prog_f77_g = yes; then 6295 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6296 FFLAGS="-g -O2" 6297 else 6298 FFLAGS="-g" 6299 fi 6300else 6301 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6302 FFLAGS="-O2" 6303 else 6304 FFLAGS= 6305 fi 6306fi 6307 6308if test $ac_compiler_gnu = yes; then 6309 G77=yes 6310else 6311 G77= 6312fi 6313ac_ext=c 6314ac_cpp='$CPP $CPPFLAGS' 6315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6317ac_compiler_gnu=$ac_cv_c_compiler_gnu 6318 6319 6320 6321# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6322# find the maximum length of command line arguments 6323{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6324$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6325if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6326 $as_echo_n "(cached) " >&6 6327else 6328 i=0 6329 teststring="ABCD" 6330 6331 case $build_os in 6332 msdosdjgpp*) 6333 # On DJGPP, this test can blow up pretty badly due to problems in libc 6334 # (any single argument exceeding 2000 bytes causes a buffer overrun 6335 # during glob expansion). Even if it were fixed, the result of this 6336 # check would be larger than it should be. 6337 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6338 ;; 6339 6340 gnu*) 6341 # Under GNU Hurd, this test is not required because there is 6342 # no limit to the length of command line arguments. 6343 # Libtool will interpret -1 as no limit whatsoever 6344 lt_cv_sys_max_cmd_len=-1; 6345 ;; 6346 6347 cygwin* | mingw*) 6348 # On Win9x/ME, this test blows up -- it succeeds, but takes 6349 # about 5 minutes as the teststring grows exponentially. 6350 # Worse, since 9x/ME are not pre-emptively multitasking, 6351 # you end up with a "frozen" computer, even though with patience 6352 # the test eventually succeeds (with a max line length of 256k). 6353 # Instead, let's just punt: use the minimum linelength reported by 6354 # all of the supported platforms: 8192 (on NT/2K/XP). 6355 lt_cv_sys_max_cmd_len=8192; 6356 ;; 6357 6358 amigaos*) 6359 # On AmigaOS with pdksh, this test takes hours, literally. 6360 # So we just punt and use a minimum line length of 8192. 6361 lt_cv_sys_max_cmd_len=8192; 6362 ;; 6363 6364 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6365 # This has been around since 386BSD, at least. Likely further. 6366 if test -x /sbin/sysctl; then 6367 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6368 elif test -x /usr/sbin/sysctl; then 6369 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6370 else 6371 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6372 fi 6373 # And add a safety zone 6374 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6375 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6376 ;; 6377 6378 interix*) 6379 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6380 lt_cv_sys_max_cmd_len=196608 6381 ;; 6382 6383 osf*) 6384 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6385 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6386 # nice to cause kernel panics so lets avoid the loop below. 6387 # First set a reasonable default. 6388 lt_cv_sys_max_cmd_len=16384 6389 # 6390 if test -x /sbin/sysconfig; then 6391 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6392 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6393 esac 6394 fi 6395 ;; 6396 sco3.2v5*) 6397 lt_cv_sys_max_cmd_len=102400 6398 ;; 6399 sysv5* | sco5v6* | sysv4.2uw2*) 6400 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6401 if test -n "$kargmax"; then 6402 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6403 else 6404 lt_cv_sys_max_cmd_len=32768 6405 fi 6406 ;; 6407 *) 6408 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6409 if test -n "$lt_cv_sys_max_cmd_len"; then 6410 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6411 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6412 else 6413 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6414 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6415 = "XX$teststring") >/dev/null 2>&1 && 6416 new_result=`expr "X$teststring" : ".*" 2>&1` && 6417 lt_cv_sys_max_cmd_len=$new_result && 6418 test $i != 17 # 1/2 MB should be enough 6419 do 6420 i=`expr $i + 1` 6421 teststring=$teststring$teststring 6422 done 6423 teststring= 6424 # Add a significant safety factor because C++ compilers can tack on massive 6425 # amounts of additional arguments before passing them to the linker. 6426 # It appears as though 1/2 is a usable value. 6427 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6428 fi 6429 ;; 6430 esac 6431 6432fi 6433 6434if test -n $lt_cv_sys_max_cmd_len ; then 6435 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6436$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6437else 6438 { $as_echo "$as_me:$LINENO: result: none" >&5 6439$as_echo "none" >&6; } 6440fi 6441 6442 6443 6444 6445 6446# Check for command to grab the raw symbol name followed by C symbol from nm. 6447{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6448$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6449if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6450 $as_echo_n "(cached) " >&6 6451else 6452 6453# These are sane defaults that work on at least a few old systems. 6454# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6455 6456# Character class describing NM global symbol codes. 6457symcode='[BCDEGRST]' 6458 6459# Regexp to match symbols that can be accessed directly from C. 6460sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6461 6462# Transform an extracted symbol line into a proper C declaration 6463lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6464 6465# Transform an extracted symbol line into symbol name and symbol address 6466lt_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'" 6467 6468# Define system-specific variables. 6469case $host_os in 6470aix*) 6471 symcode='[BCDT]' 6472 ;; 6473cygwin* | mingw* | pw32*) 6474 symcode='[ABCDGISTW]' 6475 ;; 6476hpux*) # Its linker distinguishes data from code symbols 6477 if test "$host_cpu" = ia64; then 6478 symcode='[ABCDEGRST]' 6479 fi 6480 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6481 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'" 6482 ;; 6483linux* | k*bsd*-gnu) 6484 if test "$host_cpu" = ia64; then 6485 symcode='[ABCDGIRSTW]' 6486 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6487 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'" 6488 fi 6489 ;; 6490irix* | nonstopux*) 6491 symcode='[BCDEGRST]' 6492 ;; 6493osf*) 6494 symcode='[BCDEGQRST]' 6495 ;; 6496solaris*) 6497 symcode='[BDRT]' 6498 ;; 6499sco3.2v5*) 6500 symcode='[DT]' 6501 ;; 6502sysv4.2uw2*) 6503 symcode='[DT]' 6504 ;; 6505sysv5* | sco5v6* | unixware* | OpenUNIX*) 6506 symcode='[ABDT]' 6507 ;; 6508sysv4) 6509 symcode='[DFNSTU]' 6510 ;; 6511esac 6512 6513# Handle CRLF in mingw tool chain 6514opt_cr= 6515case $build_os in 6516mingw*) 6517 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6518 ;; 6519esac 6520 6521# If we're using GNU nm, then use its standard symbol codes. 6522case `$NM -V 2>&1` in 6523*GNU* | *'with BFD'*) 6524 symcode='[ABCDGIRSTW]' ;; 6525esac 6526 6527# Try without a prefix undercore, then with it. 6528for ac_symprfx in "" "_"; do 6529 6530 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6531 symxfrm="\\1 $ac_symprfx\\2 \\2" 6532 6533 # Write the raw and C identifiers. 6534 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6535 6536 # Check to see that the pipe works correctly. 6537 pipe_works=no 6538 6539 rm -f conftest* 6540 cat > conftest.$ac_ext <<EOF 6541#ifdef __cplusplus 6542extern "C" { 6543#endif 6544char nm_test_var; 6545void nm_test_func(){} 6546#ifdef __cplusplus 6547} 6548#endif 6549int main(){nm_test_var='a';nm_test_func();return(0);} 6550EOF 6551 6552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6553 (eval $ac_compile) 2>&5 6554 ac_status=$? 6555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6556 (exit $ac_status); }; then 6557 # Now try to grab the symbols. 6558 nlist=conftest.nm 6559 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6560 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6561 ac_status=$? 6562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6563 (exit $ac_status); } && test -s "$nlist"; then 6564 # Try sorting and uniquifying the output. 6565 if sort "$nlist" | uniq > "$nlist"T; then 6566 mv -f "$nlist"T "$nlist" 6567 else 6568 rm -f "$nlist"T 6569 fi 6570 6571 # Make sure that we snagged all the symbols we need. 6572 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6573 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6574 cat <<EOF > conftest.$ac_ext 6575#ifdef __cplusplus 6576extern "C" { 6577#endif 6578 6579EOF 6580 # Now generate the symbol file. 6581 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6582 6583 cat <<EOF >> conftest.$ac_ext 6584#if defined (__STDC__) && __STDC__ 6585# define lt_ptr_t void * 6586#else 6587# define lt_ptr_t char * 6588# define const 6589#endif 6590 6591/* The mapping between symbol names and symbols. */ 6592const struct { 6593 const char *name; 6594 lt_ptr_t address; 6595} 6596lt_preloaded_symbols[] = 6597{ 6598EOF 6599 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6600 cat <<\EOF >> conftest.$ac_ext 6601 {0, (lt_ptr_t) 0} 6602}; 6603 6604#ifdef __cplusplus 6605} 6606#endif 6607EOF 6608 # Now try linking the two files. 6609 mv conftest.$ac_objext conftstm.$ac_objext 6610 lt_save_LIBS="$LIBS" 6611 lt_save_CFLAGS="$CFLAGS" 6612 LIBS="conftstm.$ac_objext" 6613 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6615 (eval $ac_link) 2>&5 6616 ac_status=$? 6617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6618 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6619 pipe_works=yes 6620 fi 6621 LIBS="$lt_save_LIBS" 6622 CFLAGS="$lt_save_CFLAGS" 6623 else 6624 echo "cannot find nm_test_func in $nlist" >&5 6625 fi 6626 else 6627 echo "cannot find nm_test_var in $nlist" >&5 6628 fi 6629 else 6630 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6631 fi 6632 else 6633 echo "$progname: failed program was:" >&5 6634 cat conftest.$ac_ext >&5 6635 fi 6636 rm -rf conftest* conftst* 6637 6638 # Do not use the global_symbol_pipe unless it works. 6639 if test "$pipe_works" = yes; then 6640 break 6641 else 6642 lt_cv_sys_global_symbol_pipe= 6643 fi 6644done 6645 6646fi 6647 6648if test -z "$lt_cv_sys_global_symbol_pipe"; then 6649 lt_cv_sys_global_symbol_to_cdecl= 6650fi 6651if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6652 { $as_echo "$as_me:$LINENO: result: failed" >&5 6653$as_echo "failed" >&6; } 6654else 6655 { $as_echo "$as_me:$LINENO: result: ok" >&5 6656$as_echo "ok" >&6; } 6657fi 6658 6659{ $as_echo "$as_me:$LINENO: checking for objdir" >&5 6660$as_echo_n "checking for objdir... " >&6; } 6661if test "${lt_cv_objdir+set}" = set; then 6662 $as_echo_n "(cached) " >&6 6663else 6664 rm -f .libs 2>/dev/null 6665mkdir .libs 2>/dev/null 6666if test -d .libs; then 6667 lt_cv_objdir=.libs 6668else 6669 # MS-DOS does not allow filenames that begin with a dot. 6670 lt_cv_objdir=_libs 6671fi 6672rmdir .libs 2>/dev/null 6673fi 6674{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6675$as_echo "$lt_cv_objdir" >&6; } 6676objdir=$lt_cv_objdir 6677 6678 6679 6680 6681 6682case $host_os in 6683aix3*) 6684 # AIX sometimes has problems with the GCC collect2 program. For some 6685 # reason, if we set the COLLECT_NAMES environment variable, the problems 6686 # vanish in a puff of smoke. 6687 if test "X${COLLECT_NAMES+set}" != Xset; then 6688 COLLECT_NAMES= 6689 export COLLECT_NAMES 6690 fi 6691 ;; 6692esac 6693 6694# Sed substitution that helps us do robust quoting. It backslashifies 6695# metacharacters that are still active within double-quoted strings. 6696Xsed='sed -e 1s/^X//' 6697sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6698 6699# Same as above, but do not quote variable references. 6700double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6701 6702# Sed substitution to delay expansion of an escaped shell variable in a 6703# double_quote_subst'ed string. 6704delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6705 6706# Sed substitution to avoid accidental globbing in evaled expressions 6707no_glob_subst='s/\*/\\\*/g' 6708 6709# Constants: 6710rm="rm -f" 6711 6712# Global variables: 6713default_ofile=libtool 6714can_build_shared=yes 6715 6716# All known linkers require a `.a' archive for static linking (except MSVC, 6717# which needs '.lib'). 6718libext=a 6719ltmain="$ac_aux_dir/ltmain.sh" 6720ofile="$default_ofile" 6721with_gnu_ld="$lt_cv_prog_gnu_ld" 6722 6723if test -n "$ac_tool_prefix"; then 6724 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6725set dummy ${ac_tool_prefix}ar; ac_word=$2 6726{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6727$as_echo_n "checking for $ac_word... " >&6; } 6728if test "${ac_cv_prog_AR+set}" = set; then 6729 $as_echo_n "(cached) " >&6 6730else 6731 if test -n "$AR"; then 6732 ac_cv_prog_AR="$AR" # Let the user override the test. 6733else 6734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6735for as_dir in $PATH 6736do 6737 IFS=$as_save_IFS 6738 test -z "$as_dir" && as_dir=. 6739 for ac_exec_ext in '' $ac_executable_extensions; do 6740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6741 ac_cv_prog_AR="${ac_tool_prefix}ar" 6742 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6743 break 2 6744 fi 6745done 6746done 6747IFS=$as_save_IFS 6748 6749fi 6750fi 6751AR=$ac_cv_prog_AR 6752if test -n "$AR"; then 6753 { $as_echo "$as_me:$LINENO: result: $AR" >&5 6754$as_echo "$AR" >&6; } 6755else 6756 { $as_echo "$as_me:$LINENO: result: no" >&5 6757$as_echo "no" >&6; } 6758fi 6759 6760 6761fi 6762if test -z "$ac_cv_prog_AR"; then 6763 ac_ct_AR=$AR 6764 # Extract the first word of "ar", so it can be a program name with args. 6765set dummy ar; ac_word=$2 6766{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6767$as_echo_n "checking for $ac_word... " >&6; } 6768if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6769 $as_echo_n "(cached) " >&6 6770else 6771 if test -n "$ac_ct_AR"; then 6772 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6773else 6774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6775for as_dir in $PATH 6776do 6777 IFS=$as_save_IFS 6778 test -z "$as_dir" && as_dir=. 6779 for ac_exec_ext in '' $ac_executable_extensions; do 6780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6781 ac_cv_prog_ac_ct_AR="ar" 6782 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6783 break 2 6784 fi 6785done 6786done 6787IFS=$as_save_IFS 6788 6789fi 6790fi 6791ac_ct_AR=$ac_cv_prog_ac_ct_AR 6792if test -n "$ac_ct_AR"; then 6793 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6794$as_echo "$ac_ct_AR" >&6; } 6795else 6796 { $as_echo "$as_me:$LINENO: result: no" >&5 6797$as_echo "no" >&6; } 6798fi 6799 6800 if test "x$ac_ct_AR" = x; then 6801 AR="false" 6802 else 6803 case $cross_compiling:$ac_tool_warned in 6804yes:) 6805{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6806whose name does not start with the host triplet. If you think this 6807configuration is useful to you, please write to autoconf@gnu.org." >&5 6808$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6809whose name does not start with the host triplet. If you think this 6810configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6811ac_tool_warned=yes ;; 6812esac 6813 AR=$ac_ct_AR 6814 fi 6815else 6816 AR="$ac_cv_prog_AR" 6817fi 6818 6819if test -n "$ac_tool_prefix"; then 6820 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6821set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6822{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6823$as_echo_n "checking for $ac_word... " >&6; } 6824if test "${ac_cv_prog_RANLIB+set}" = set; then 6825 $as_echo_n "(cached) " >&6 6826else 6827 if test -n "$RANLIB"; then 6828 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6829else 6830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6831for as_dir in $PATH 6832do 6833 IFS=$as_save_IFS 6834 test -z "$as_dir" && as_dir=. 6835 for ac_exec_ext in '' $ac_executable_extensions; do 6836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6837 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6838 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6839 break 2 6840 fi 6841done 6842done 6843IFS=$as_save_IFS 6844 6845fi 6846fi 6847RANLIB=$ac_cv_prog_RANLIB 6848if test -n "$RANLIB"; then 6849 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 6850$as_echo "$RANLIB" >&6; } 6851else 6852 { $as_echo "$as_me:$LINENO: result: no" >&5 6853$as_echo "no" >&6; } 6854fi 6855 6856 6857fi 6858if test -z "$ac_cv_prog_RANLIB"; then 6859 ac_ct_RANLIB=$RANLIB 6860 # Extract the first word of "ranlib", so it can be a program name with args. 6861set dummy ranlib; ac_word=$2 6862{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6863$as_echo_n "checking for $ac_word... " >&6; } 6864if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6865 $as_echo_n "(cached) " >&6 6866else 6867 if test -n "$ac_ct_RANLIB"; then 6868 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6869else 6870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6871for as_dir in $PATH 6872do 6873 IFS=$as_save_IFS 6874 test -z "$as_dir" && as_dir=. 6875 for ac_exec_ext in '' $ac_executable_extensions; do 6876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6877 ac_cv_prog_ac_ct_RANLIB="ranlib" 6878 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6879 break 2 6880 fi 6881done 6882done 6883IFS=$as_save_IFS 6884 6885fi 6886fi 6887ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6888if test -n "$ac_ct_RANLIB"; then 6889 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6890$as_echo "$ac_ct_RANLIB" >&6; } 6891else 6892 { $as_echo "$as_me:$LINENO: result: no" >&5 6893$as_echo "no" >&6; } 6894fi 6895 6896 if test "x$ac_ct_RANLIB" = x; then 6897 RANLIB=":" 6898 else 6899 case $cross_compiling:$ac_tool_warned in 6900yes:) 6901{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6902whose name does not start with the host triplet. If you think this 6903configuration is useful to you, please write to autoconf@gnu.org." >&5 6904$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6905whose name does not start with the host triplet. If you think this 6906configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6907ac_tool_warned=yes ;; 6908esac 6909 RANLIB=$ac_ct_RANLIB 6910 fi 6911else 6912 RANLIB="$ac_cv_prog_RANLIB" 6913fi 6914 6915if test -n "$ac_tool_prefix"; then 6916 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6917set dummy ${ac_tool_prefix}strip; ac_word=$2 6918{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6919$as_echo_n "checking for $ac_word... " >&6; } 6920if test "${ac_cv_prog_STRIP+set}" = set; then 6921 $as_echo_n "(cached) " >&6 6922else 6923 if test -n "$STRIP"; then 6924 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6925else 6926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6927for as_dir in $PATH 6928do 6929 IFS=$as_save_IFS 6930 test -z "$as_dir" && as_dir=. 6931 for ac_exec_ext in '' $ac_executable_extensions; do 6932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6933 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6934 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6935 break 2 6936 fi 6937done 6938done 6939IFS=$as_save_IFS 6940 6941fi 6942fi 6943STRIP=$ac_cv_prog_STRIP 6944if test -n "$STRIP"; then 6945 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 6946$as_echo "$STRIP" >&6; } 6947else 6948 { $as_echo "$as_me:$LINENO: result: no" >&5 6949$as_echo "no" >&6; } 6950fi 6951 6952 6953fi 6954if test -z "$ac_cv_prog_STRIP"; then 6955 ac_ct_STRIP=$STRIP 6956 # Extract the first word of "strip", so it can be a program name with args. 6957set dummy strip; ac_word=$2 6958{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6959$as_echo_n "checking for $ac_word... " >&6; } 6960if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6961 $as_echo_n "(cached) " >&6 6962else 6963 if test -n "$ac_ct_STRIP"; then 6964 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6965else 6966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6967for as_dir in $PATH 6968do 6969 IFS=$as_save_IFS 6970 test -z "$as_dir" && as_dir=. 6971 for ac_exec_ext in '' $ac_executable_extensions; do 6972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6973 ac_cv_prog_ac_ct_STRIP="strip" 6974 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6975 break 2 6976 fi 6977done 6978done 6979IFS=$as_save_IFS 6980 6981fi 6982fi 6983ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6984if test -n "$ac_ct_STRIP"; then 6985 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6986$as_echo "$ac_ct_STRIP" >&6; } 6987else 6988 { $as_echo "$as_me:$LINENO: result: no" >&5 6989$as_echo "no" >&6; } 6990fi 6991 6992 if test "x$ac_ct_STRIP" = x; then 6993 STRIP=":" 6994 else 6995 case $cross_compiling:$ac_tool_warned in 6996yes:) 6997{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6998whose name does not start with the host triplet. If you think this 6999configuration is useful to you, please write to autoconf@gnu.org." >&5 7000$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7001whose name does not start with the host triplet. If you think this 7002configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7003ac_tool_warned=yes ;; 7004esac 7005 STRIP=$ac_ct_STRIP 7006 fi 7007else 7008 STRIP="$ac_cv_prog_STRIP" 7009fi 7010 7011 7012old_CC="$CC" 7013old_CFLAGS="$CFLAGS" 7014 7015# Set sane defaults for various variables 7016test -z "$AR" && AR=ar 7017test -z "$AR_FLAGS" && AR_FLAGS=cru 7018test -z "$AS" && AS=as 7019test -z "$CC" && CC=cc 7020test -z "$LTCC" && LTCC=$CC 7021test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7022test -z "$DLLTOOL" && DLLTOOL=dlltool 7023test -z "$LD" && LD=ld 7024test -z "$LN_S" && LN_S="ln -s" 7025test -z "$MAGIC_CMD" && MAGIC_CMD=file 7026test -z "$NM" && NM=nm 7027test -z "$SED" && SED=sed 7028test -z "$OBJDUMP" && OBJDUMP=objdump 7029test -z "$RANLIB" && RANLIB=: 7030test -z "$STRIP" && STRIP=: 7031test -z "$ac_objext" && ac_objext=o 7032 7033# Determine commands to create old-style static archives. 7034old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7035old_postinstall_cmds='chmod 644 $oldlib' 7036old_postuninstall_cmds= 7037 7038if test -n "$RANLIB"; then 7039 case $host_os in 7040 openbsd*) 7041 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 7042 ;; 7043 *) 7044 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 7045 ;; 7046 esac 7047 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 7048fi 7049 7050for cc_temp in $compiler""; do 7051 case $cc_temp in 7052 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7053 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7054 \-*) ;; 7055 *) break;; 7056 esac 7057done 7058cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7059 7060 7061# Only perform the check for file, if the check method requires it 7062case $deplibs_check_method in 7063file_magic*) 7064 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7065 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7066$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7067if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7068 $as_echo_n "(cached) " >&6 7069else 7070 case $MAGIC_CMD in 7071[\\/*] | ?:[\\/]*) 7072 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7073 ;; 7074*) 7075 lt_save_MAGIC_CMD="$MAGIC_CMD" 7076 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7077 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7078 for ac_dir in $ac_dummy; do 7079 IFS="$lt_save_ifs" 7080 test -z "$ac_dir" && ac_dir=. 7081 if test -f $ac_dir/${ac_tool_prefix}file; then 7082 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7083 if test -n "$file_magic_test_file"; then 7084 case $deplibs_check_method in 7085 "file_magic "*) 7086 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7087 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7088 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7089 $EGREP "$file_magic_regex" > /dev/null; then 7090 : 7091 else 7092 cat <<EOF 1>&2 7093 7094*** Warning: the command libtool uses to detect shared libraries, 7095*** $file_magic_cmd, produces output that libtool cannot recognize. 7096*** The result is that libtool may fail to recognize shared libraries 7097*** as such. This will affect the creation of libtool libraries that 7098*** depend on shared libraries, but programs linked with such libtool 7099*** libraries will work regardless of this problem. Nevertheless, you 7100*** may want to report the problem to your system manager and/or to 7101*** bug-libtool@gnu.org 7102 7103EOF 7104 fi ;; 7105 esac 7106 fi 7107 break 7108 fi 7109 done 7110 IFS="$lt_save_ifs" 7111 MAGIC_CMD="$lt_save_MAGIC_CMD" 7112 ;; 7113esac 7114fi 7115 7116MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7117if test -n "$MAGIC_CMD"; then 7118 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7119$as_echo "$MAGIC_CMD" >&6; } 7120else 7121 { $as_echo "$as_me:$LINENO: result: no" >&5 7122$as_echo "no" >&6; } 7123fi 7124 7125if test -z "$lt_cv_path_MAGIC_CMD"; then 7126 if test -n "$ac_tool_prefix"; then 7127 { $as_echo "$as_me:$LINENO: checking for file" >&5 7128$as_echo_n "checking for file... " >&6; } 7129if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7130 $as_echo_n "(cached) " >&6 7131else 7132 case $MAGIC_CMD in 7133[\\/*] | ?:[\\/]*) 7134 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7135 ;; 7136*) 7137 lt_save_MAGIC_CMD="$MAGIC_CMD" 7138 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7139 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7140 for ac_dir in $ac_dummy; do 7141 IFS="$lt_save_ifs" 7142 test -z "$ac_dir" && ac_dir=. 7143 if test -f $ac_dir/file; then 7144 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7145 if test -n "$file_magic_test_file"; then 7146 case $deplibs_check_method in 7147 "file_magic "*) 7148 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7149 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7150 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7151 $EGREP "$file_magic_regex" > /dev/null; then 7152 : 7153 else 7154 cat <<EOF 1>&2 7155 7156*** Warning: the command libtool uses to detect shared libraries, 7157*** $file_magic_cmd, produces output that libtool cannot recognize. 7158*** The result is that libtool may fail to recognize shared libraries 7159*** as such. This will affect the creation of libtool libraries that 7160*** depend on shared libraries, but programs linked with such libtool 7161*** libraries will work regardless of this problem. Nevertheless, you 7162*** may want to report the problem to your system manager and/or to 7163*** bug-libtool@gnu.org 7164 7165EOF 7166 fi ;; 7167 esac 7168 fi 7169 break 7170 fi 7171 done 7172 IFS="$lt_save_ifs" 7173 MAGIC_CMD="$lt_save_MAGIC_CMD" 7174 ;; 7175esac 7176fi 7177 7178MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7179if test -n "$MAGIC_CMD"; then 7180 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7181$as_echo "$MAGIC_CMD" >&6; } 7182else 7183 { $as_echo "$as_me:$LINENO: result: no" >&5 7184$as_echo "no" >&6; } 7185fi 7186 7187 else 7188 MAGIC_CMD=: 7189 fi 7190fi 7191 7192 fi 7193 ;; 7194esac 7195 7196 7197 case $host_os in 7198 rhapsody* | darwin*) 7199 if test -n "$ac_tool_prefix"; then 7200 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7201set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7202{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7203$as_echo_n "checking for $ac_word... " >&6; } 7204if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 7205 $as_echo_n "(cached) " >&6 7206else 7207 if test -n "$DSYMUTIL"; then 7208 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7209else 7210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7211for as_dir in $PATH 7212do 7213 IFS=$as_save_IFS 7214 test -z "$as_dir" && as_dir=. 7215 for ac_exec_ext in '' $ac_executable_extensions; do 7216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7217 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7218 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7219 break 2 7220 fi 7221done 7222done 7223IFS=$as_save_IFS 7224 7225fi 7226fi 7227DSYMUTIL=$ac_cv_prog_DSYMUTIL 7228if test -n "$DSYMUTIL"; then 7229 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 7230$as_echo "$DSYMUTIL" >&6; } 7231else 7232 { $as_echo "$as_me:$LINENO: result: no" >&5 7233$as_echo "no" >&6; } 7234fi 7235 7236 7237fi 7238if test -z "$ac_cv_prog_DSYMUTIL"; then 7239 ac_ct_DSYMUTIL=$DSYMUTIL 7240 # Extract the first word of "dsymutil", so it can be a program name with args. 7241set dummy dsymutil; ac_word=$2 7242{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7243$as_echo_n "checking for $ac_word... " >&6; } 7244if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 7245 $as_echo_n "(cached) " >&6 7246else 7247 if test -n "$ac_ct_DSYMUTIL"; then 7248 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7249else 7250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7251for as_dir in $PATH 7252do 7253 IFS=$as_save_IFS 7254 test -z "$as_dir" && as_dir=. 7255 for ac_exec_ext in '' $ac_executable_extensions; do 7256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7257 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7258 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7259 break 2 7260 fi 7261done 7262done 7263IFS=$as_save_IFS 7264 7265fi 7266fi 7267ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7268if test -n "$ac_ct_DSYMUTIL"; then 7269 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 7270$as_echo "$ac_ct_DSYMUTIL" >&6; } 7271else 7272 { $as_echo "$as_me:$LINENO: result: no" >&5 7273$as_echo "no" >&6; } 7274fi 7275 7276 if test "x$ac_ct_DSYMUTIL" = x; then 7277 DSYMUTIL=":" 7278 else 7279 case $cross_compiling:$ac_tool_warned in 7280yes:) 7281{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7282whose name does not start with the host triplet. If you think this 7283configuration is useful to you, please write to autoconf@gnu.org." >&5 7284$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7285whose name does not start with the host triplet. If you think this 7286configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7287ac_tool_warned=yes ;; 7288esac 7289 DSYMUTIL=$ac_ct_DSYMUTIL 7290 fi 7291else 7292 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7293fi 7294 7295 if test -n "$ac_tool_prefix"; then 7296 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7297set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7298{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7299$as_echo_n "checking for $ac_word... " >&6; } 7300if test "${ac_cv_prog_NMEDIT+set}" = set; then 7301 $as_echo_n "(cached) " >&6 7302else 7303 if test -n "$NMEDIT"; then 7304 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7305else 7306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7307for as_dir in $PATH 7308do 7309 IFS=$as_save_IFS 7310 test -z "$as_dir" && as_dir=. 7311 for ac_exec_ext in '' $ac_executable_extensions; do 7312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7313 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7314 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7315 break 2 7316 fi 7317done 7318done 7319IFS=$as_save_IFS 7320 7321fi 7322fi 7323NMEDIT=$ac_cv_prog_NMEDIT 7324if test -n "$NMEDIT"; then 7325 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 7326$as_echo "$NMEDIT" >&6; } 7327else 7328 { $as_echo "$as_me:$LINENO: result: no" >&5 7329$as_echo "no" >&6; } 7330fi 7331 7332 7333fi 7334if test -z "$ac_cv_prog_NMEDIT"; then 7335 ac_ct_NMEDIT=$NMEDIT 7336 # Extract the first word of "nmedit", so it can be a program name with args. 7337set dummy nmedit; ac_word=$2 7338{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7339$as_echo_n "checking for $ac_word... " >&6; } 7340if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 7341 $as_echo_n "(cached) " >&6 7342else 7343 if test -n "$ac_ct_NMEDIT"; then 7344 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7345else 7346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7347for as_dir in $PATH 7348do 7349 IFS=$as_save_IFS 7350 test -z "$as_dir" && as_dir=. 7351 for ac_exec_ext in '' $ac_executable_extensions; do 7352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7353 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7354 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7355 break 2 7356 fi 7357done 7358done 7359IFS=$as_save_IFS 7360 7361fi 7362fi 7363ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7364if test -n "$ac_ct_NMEDIT"; then 7365 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 7366$as_echo "$ac_ct_NMEDIT" >&6; } 7367else 7368 { $as_echo "$as_me:$LINENO: result: no" >&5 7369$as_echo "no" >&6; } 7370fi 7371 7372 if test "x$ac_ct_NMEDIT" = x; then 7373 NMEDIT=":" 7374 else 7375 case $cross_compiling:$ac_tool_warned in 7376yes:) 7377{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7378whose name does not start with the host triplet. If you think this 7379configuration is useful to you, please write to autoconf@gnu.org." >&5 7380$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7381whose name does not start with the host triplet. If you think this 7382configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7383ac_tool_warned=yes ;; 7384esac 7385 NMEDIT=$ac_ct_NMEDIT 7386 fi 7387else 7388 NMEDIT="$ac_cv_prog_NMEDIT" 7389fi 7390 7391 7392 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 7393$as_echo_n "checking for -single_module linker flag... " >&6; } 7394if test "${lt_cv_apple_cc_single_mod+set}" = set; then 7395 $as_echo_n "(cached) " >&6 7396else 7397 lt_cv_apple_cc_single_mod=no 7398 if test -z "${LT_MULTI_MODULE}"; then 7399 # By default we will add the -single_module flag. You can override 7400 # by either setting the environment variable LT_MULTI_MODULE 7401 # non-empty at configure time, or by adding -multi_module to the 7402 # link flags. 7403 echo "int foo(void){return 1;}" > conftest.c 7404 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7405 -dynamiclib ${wl}-single_module conftest.c 7406 if test -f libconftest.dylib; then 7407 lt_cv_apple_cc_single_mod=yes 7408 rm -rf libconftest.dylib* 7409 fi 7410 rm conftest.c 7411 fi 7412fi 7413{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 7414$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7415 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 7416$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7417if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 7418 $as_echo_n "(cached) " >&6 7419else 7420 lt_cv_ld_exported_symbols_list=no 7421 save_LDFLAGS=$LDFLAGS 7422 echo "_main" > conftest.sym 7423 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7424 cat >conftest.$ac_ext <<_ACEOF 7425/* confdefs.h. */ 7426_ACEOF 7427cat confdefs.h >>conftest.$ac_ext 7428cat >>conftest.$ac_ext <<_ACEOF 7429/* end confdefs.h. */ 7430 7431int 7432main () 7433{ 7434 7435 ; 7436 return 0; 7437} 7438_ACEOF 7439rm -f conftest.$ac_objext conftest$ac_exeext 7440if { (ac_try="$ac_link" 7441case "(($ac_try" in 7442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7443 *) ac_try_echo=$ac_try;; 7444esac 7445eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7446$as_echo "$ac_try_echo") >&5 7447 (eval "$ac_link") 2>conftest.er1 7448 ac_status=$? 7449 grep -v '^ *+' conftest.er1 >conftest.err 7450 rm -f conftest.er1 7451 cat conftest.err >&5 7452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7453 (exit $ac_status); } && { 7454 test -z "$ac_c_werror_flag" || 7455 test ! -s conftest.err 7456 } && test -s conftest$ac_exeext && { 7457 test "$cross_compiling" = yes || 7458 $as_test_x conftest$ac_exeext 7459 }; then 7460 lt_cv_ld_exported_symbols_list=yes 7461else 7462 $as_echo "$as_me: failed program was:" >&5 7463sed 's/^/| /' conftest.$ac_ext >&5 7464 7465 lt_cv_ld_exported_symbols_list=no 7466fi 7467 7468rm -rf conftest.dSYM 7469rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7470 conftest$ac_exeext conftest.$ac_ext 7471 LDFLAGS="$save_LDFLAGS" 7472 7473fi 7474{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 7475$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7476 case $host_os in 7477 rhapsody* | darwin1.[0123]) 7478 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7479 darwin1.*) 7480 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7481 darwin*) 7482 # if running on 10.5 or later, the deployment target defaults 7483 # to the OS version, if on x86, and 10.4, the deployment 7484 # target defaults to 10.4. Don't you love it? 7485 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7486 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7487 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7488 10.[012]*) 7489 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7490 10.*) 7491 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7492 esac 7493 ;; 7494 esac 7495 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7496 _lt_dar_single_mod='$single_module' 7497 fi 7498 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7499 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7500 else 7501 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}" 7502 fi 7503 if test "$DSYMUTIL" != ":"; then 7504 _lt_dsymutil="~$DSYMUTIL \$lib || :" 7505 else 7506 _lt_dsymutil= 7507 fi 7508 ;; 7509 esac 7510 7511 7512enable_dlopen=no 7513enable_win32_dll=no 7514 7515# Check whether --enable-libtool-lock was given. 7516if test "${enable_libtool_lock+set}" = set; then 7517 enableval=$enable_libtool_lock; 7518fi 7519 7520test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7521 7522 7523# Check whether --with-pic was given. 7524if test "${with_pic+set}" = set; then 7525 withval=$with_pic; pic_mode="$withval" 7526else 7527 pic_mode=default 7528fi 7529 7530test -z "$pic_mode" && pic_mode=default 7531 7532# Use C for the default configuration in the libtool script 7533tagname= 7534lt_save_CC="$CC" 7535ac_ext=c 7536ac_cpp='$CPP $CPPFLAGS' 7537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7539ac_compiler_gnu=$ac_cv_c_compiler_gnu 7540 7541 7542# Source file extension for C test sources. 7543ac_ext=c 7544 7545# Object file extension for compiled C test sources. 7546objext=o 7547objext=$objext 7548 7549# Code to be used in simple compile tests 7550lt_simple_compile_test_code="int some_variable = 0;" 7551 7552# Code to be used in simple link tests 7553lt_simple_link_test_code='int main(){return(0);}' 7554 7555 7556# If no C compiler was specified, use CC. 7557LTCC=${LTCC-"$CC"} 7558 7559# If no C compiler flags were specified, use CFLAGS. 7560LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7561 7562# Allow CC to be a program name with arguments. 7563compiler=$CC 7564 7565 7566# save warnings/boilerplate of simple test code 7567ac_outfile=conftest.$ac_objext 7568echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7569eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7570_lt_compiler_boilerplate=`cat conftest.err` 7571$rm conftest* 7572 7573ac_outfile=conftest.$ac_objext 7574echo "$lt_simple_link_test_code" >conftest.$ac_ext 7575eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7576_lt_linker_boilerplate=`cat conftest.err` 7577$rm -r conftest* 7578 7579 7580 7581lt_prog_compiler_no_builtin_flag= 7582 7583if test "$GCC" = yes; then 7584 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7585 7586 7587{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7588$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7589if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7590 $as_echo_n "(cached) " >&6 7591else 7592 lt_cv_prog_compiler_rtti_exceptions=no 7593 ac_outfile=conftest.$ac_objext 7594 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7595 lt_compiler_flag="-fno-rtti -fno-exceptions" 7596 # Insert the option either (1) after the last *FLAGS variable, or 7597 # (2) before a word containing "conftest.", or (3) at the end. 7598 # Note that $ac_compile itself does not contain backslashes and begins 7599 # with a dollar sign (not a hyphen), so the echo should work correctly. 7600 # The option is referenced via a variable to avoid confusing sed. 7601 lt_compile=`echo "$ac_compile" | $SED \ 7602 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7603 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7604 -e 's:$: $lt_compiler_flag:'` 7605 (eval echo "\"\$as_me:7605: $lt_compile\"" >&5) 7606 (eval "$lt_compile" 2>conftest.err) 7607 ac_status=$? 7608 cat conftest.err >&5 7609 echo "$as_me:7609: \$? = $ac_status" >&5 7610 if (exit $ac_status) && test -s "$ac_outfile"; then 7611 # The compiler can only warn and ignore the option if not recognized 7612 # So say no if there are warnings other than the usual output. 7613 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7614 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7615 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7616 lt_cv_prog_compiler_rtti_exceptions=yes 7617 fi 7618 fi 7619 $rm conftest* 7620 7621fi 7622{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7623$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7624 7625if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7626 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7627else 7628 : 7629fi 7630 7631fi 7632 7633lt_prog_compiler_wl= 7634lt_prog_compiler_pic= 7635lt_prog_compiler_static= 7636 7637{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7638$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7639 7640 if test "$GCC" = yes; then 7641 lt_prog_compiler_wl='-Wl,' 7642 lt_prog_compiler_static='-static' 7643 7644 case $host_os in 7645 aix*) 7646 # All AIX code is PIC. 7647 if test "$host_cpu" = ia64; then 7648 # AIX 5 now supports IA64 processor 7649 lt_prog_compiler_static='-Bstatic' 7650 fi 7651 ;; 7652 7653 amigaos*) 7654 # FIXME: we need at least 68020 code to build shared libraries, but 7655 # adding the `-m68020' flag to GCC prevents building anything better, 7656 # like `-m68040'. 7657 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7658 ;; 7659 7660 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7661 # PIC is the default for these OSes. 7662 ;; 7663 7664 mingw* | cygwin* | pw32* | os2*) 7665 # This hack is so that the source file can tell whether it is being 7666 # built for inclusion in a dll (and should export symbols for example). 7667 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7668 # (--disable-auto-import) libraries 7669 lt_prog_compiler_pic='-DDLL_EXPORT' 7670 ;; 7671 7672 darwin* | rhapsody*) 7673 # PIC is the default on this platform 7674 # Common symbols not allowed in MH_DYLIB files 7675 lt_prog_compiler_pic='-fno-common' 7676 ;; 7677 7678 interix[3-9]*) 7679 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7680 # Instead, we relocate shared libraries at runtime. 7681 ;; 7682 7683 msdosdjgpp*) 7684 # Just because we use GCC doesn't mean we suddenly get shared libraries 7685 # on systems that don't support them. 7686 lt_prog_compiler_can_build_shared=no 7687 enable_shared=no 7688 ;; 7689 7690 sysv4*MP*) 7691 if test -d /usr/nec; then 7692 lt_prog_compiler_pic=-Kconform_pic 7693 fi 7694 ;; 7695 7696 hpux*) 7697 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7698 # not for PA HP-UX. 7699 case $host_cpu in 7700 hppa*64*|ia64*) 7701 # +Z the default 7702 ;; 7703 *) 7704 lt_prog_compiler_pic='-fPIC' 7705 ;; 7706 esac 7707 ;; 7708 7709 *) 7710 lt_prog_compiler_pic='-fPIC' 7711 ;; 7712 esac 7713 else 7714 # PORTME Check for flag to pass linker flags through the system compiler. 7715 case $host_os in 7716 aix*) 7717 lt_prog_compiler_wl='-Wl,' 7718 if test "$host_cpu" = ia64; then 7719 # AIX 5 now supports IA64 processor 7720 lt_prog_compiler_static='-Bstatic' 7721 else 7722 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7723 fi 7724 ;; 7725 darwin*) 7726 # PIC is the default on this platform 7727 # Common symbols not allowed in MH_DYLIB files 7728 case $cc_basename in 7729 xlc*) 7730 lt_prog_compiler_pic='-qnocommon' 7731 lt_prog_compiler_wl='-Wl,' 7732 ;; 7733 esac 7734 ;; 7735 7736 mingw* | cygwin* | pw32* | os2*) 7737 # This hack is so that the source file can tell whether it is being 7738 # built for inclusion in a dll (and should export symbols for example). 7739 lt_prog_compiler_pic='-DDLL_EXPORT' 7740 ;; 7741 7742 hpux9* | hpux10* | hpux11*) 7743 lt_prog_compiler_wl='-Wl,' 7744 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7745 # not for PA HP-UX. 7746 case $host_cpu in 7747 hppa*64*|ia64*) 7748 # +Z the default 7749 ;; 7750 *) 7751 lt_prog_compiler_pic='+Z' 7752 ;; 7753 esac 7754 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7755 lt_prog_compiler_static='${wl}-a ${wl}archive' 7756 ;; 7757 7758 irix5* | irix6* | nonstopux*) 7759 lt_prog_compiler_wl='-Wl,' 7760 # PIC (with -KPIC) is the default. 7761 lt_prog_compiler_static='-non_shared' 7762 ;; 7763 7764 newsos6) 7765 lt_prog_compiler_pic='-KPIC' 7766 lt_prog_compiler_static='-Bstatic' 7767 ;; 7768 7769 linux* | k*bsd*-gnu) 7770 case $cc_basename in 7771 icc* | ecc*) 7772 lt_prog_compiler_wl='-Wl,' 7773 lt_prog_compiler_pic='-KPIC' 7774 lt_prog_compiler_static='-static' 7775 ;; 7776 pgcc* | pgf77* | pgf90* | pgf95*) 7777 # Portland Group compilers (*not* the Pentium gcc compiler, 7778 # which looks to be a dead project) 7779 lt_prog_compiler_wl='-Wl,' 7780 lt_prog_compiler_pic='-fpic' 7781 lt_prog_compiler_static='-Bstatic' 7782 ;; 7783 ccc*) 7784 lt_prog_compiler_wl='-Wl,' 7785 # All Alpha code is PIC. 7786 lt_prog_compiler_static='-non_shared' 7787 ;; 7788 *) 7789 case `$CC -V 2>&1 | sed 5q` in 7790 *Sun\ C*) 7791 # Sun C 5.9 7792 lt_prog_compiler_pic='-KPIC' 7793 lt_prog_compiler_static='-Bstatic' 7794 lt_prog_compiler_wl='-Wl,' 7795 ;; 7796 *Sun\ F*) 7797 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7798 lt_prog_compiler_pic='-KPIC' 7799 lt_prog_compiler_static='-Bstatic' 7800 lt_prog_compiler_wl='' 7801 ;; 7802 esac 7803 ;; 7804 esac 7805 ;; 7806 7807 osf3* | osf4* | osf5*) 7808 lt_prog_compiler_wl='-Wl,' 7809 # All OSF/1 code is PIC. 7810 lt_prog_compiler_static='-non_shared' 7811 ;; 7812 7813 rdos*) 7814 lt_prog_compiler_static='-non_shared' 7815 ;; 7816 7817 solaris*) 7818 lt_prog_compiler_pic='-KPIC' 7819 lt_prog_compiler_static='-Bstatic' 7820 case $cc_basename in 7821 f77* | f90* | f95*) 7822 lt_prog_compiler_wl='-Qoption ld ';; 7823 *) 7824 lt_prog_compiler_wl='-Wl,';; 7825 esac 7826 ;; 7827 7828 sunos4*) 7829 lt_prog_compiler_wl='-Qoption ld ' 7830 lt_prog_compiler_pic='-PIC' 7831 lt_prog_compiler_static='-Bstatic' 7832 ;; 7833 7834 sysv4 | sysv4.2uw2* | sysv4.3*) 7835 lt_prog_compiler_wl='-Wl,' 7836 lt_prog_compiler_pic='-KPIC' 7837 lt_prog_compiler_static='-Bstatic' 7838 ;; 7839 7840 sysv4*MP*) 7841 if test -d /usr/nec ;then 7842 lt_prog_compiler_pic='-Kconform_pic' 7843 lt_prog_compiler_static='-Bstatic' 7844 fi 7845 ;; 7846 7847 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7848 lt_prog_compiler_wl='-Wl,' 7849 lt_prog_compiler_pic='-KPIC' 7850 lt_prog_compiler_static='-Bstatic' 7851 ;; 7852 7853 unicos*) 7854 lt_prog_compiler_wl='-Wl,' 7855 lt_prog_compiler_can_build_shared=no 7856 ;; 7857 7858 uts4*) 7859 lt_prog_compiler_pic='-pic' 7860 lt_prog_compiler_static='-Bstatic' 7861 ;; 7862 7863 *) 7864 lt_prog_compiler_can_build_shared=no 7865 ;; 7866 esac 7867 fi 7868 7869{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7870$as_echo "$lt_prog_compiler_pic" >&6; } 7871 7872# 7873# Check to make sure the PIC flag actually works. 7874# 7875if test -n "$lt_prog_compiler_pic"; then 7876 7877{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7878$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 7879if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 7880 $as_echo_n "(cached) " >&6 7881else 7882 lt_cv_prog_compiler_pic_works=no 7883 ac_outfile=conftest.$ac_objext 7884 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7885 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7886 # Insert the option either (1) after the last *FLAGS variable, or 7887 # (2) before a word containing "conftest.", or (3) at the end. 7888 # Note that $ac_compile itself does not contain backslashes and begins 7889 # with a dollar sign (not a hyphen), so the echo should work correctly. 7890 # The option is referenced via a variable to avoid confusing sed. 7891 lt_compile=`echo "$ac_compile" | $SED \ 7892 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7893 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7894 -e 's:$: $lt_compiler_flag:'` 7895 (eval echo "\"\$as_me:7895: $lt_compile\"" >&5) 7896 (eval "$lt_compile" 2>conftest.err) 7897 ac_status=$? 7898 cat conftest.err >&5 7899 echo "$as_me:7899: \$? = $ac_status" >&5 7900 if (exit $ac_status) && test -s "$ac_outfile"; then 7901 # The compiler can only warn and ignore the option if not recognized 7902 # So say no if there are warnings other than the usual output. 7903 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7904 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7905 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7906 lt_cv_prog_compiler_pic_works=yes 7907 fi 7908 fi 7909 $rm conftest* 7910 7911fi 7912{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 7913$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 7914 7915if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7916 case $lt_prog_compiler_pic in 7917 "" | " "*) ;; 7918 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7919 esac 7920else 7921 lt_prog_compiler_pic= 7922 lt_prog_compiler_can_build_shared=no 7923fi 7924 7925fi 7926case $host_os in 7927 # For platforms which do not support PIC, -DPIC is meaningless: 7928 *djgpp*) 7929 lt_prog_compiler_pic= 7930 ;; 7931 *) 7932 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7933 ;; 7934esac 7935 7936# 7937# Check to make sure the static flag actually works. 7938# 7939wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7940{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7941$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 7942if test "${lt_cv_prog_compiler_static_works+set}" = set; then 7943 $as_echo_n "(cached) " >&6 7944else 7945 lt_cv_prog_compiler_static_works=no 7946 save_LDFLAGS="$LDFLAGS" 7947 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7948 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7949 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7950 # The linker can only warn and ignore the option if not recognized 7951 # So say no if there are warnings 7952 if test -s conftest.err; then 7953 # Append any errors to the config.log. 7954 cat conftest.err 1>&5 7955 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7956 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7957 if diff conftest.exp conftest.er2 >/dev/null; then 7958 lt_cv_prog_compiler_static_works=yes 7959 fi 7960 else 7961 lt_cv_prog_compiler_static_works=yes 7962 fi 7963 fi 7964 $rm -r conftest* 7965 LDFLAGS="$save_LDFLAGS" 7966 7967fi 7968{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 7969$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 7970 7971if test x"$lt_cv_prog_compiler_static_works" = xyes; then 7972 : 7973else 7974 lt_prog_compiler_static= 7975fi 7976 7977 7978{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7979$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7980if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7981 $as_echo_n "(cached) " >&6 7982else 7983 lt_cv_prog_compiler_c_o=no 7984 $rm -r conftest 2>/dev/null 7985 mkdir conftest 7986 cd conftest 7987 mkdir out 7988 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7989 7990 lt_compiler_flag="-o out/conftest2.$ac_objext" 7991 # Insert the option either (1) after the last *FLAGS variable, or 7992 # (2) before a word containing "conftest.", or (3) at the end. 7993 # Note that $ac_compile itself does not contain backslashes and begins 7994 # with a dollar sign (not a hyphen), so the echo should work correctly. 7995 lt_compile=`echo "$ac_compile" | $SED \ 7996 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7997 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7998 -e 's:$: $lt_compiler_flag:'` 7999 (eval echo "\"\$as_me:7999: $lt_compile\"" >&5) 8000 (eval "$lt_compile" 2>out/conftest.err) 8001 ac_status=$? 8002 cat out/conftest.err >&5 8003 echo "$as_me:8003: \$? = $ac_status" >&5 8004 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8005 then 8006 # The compiler can only warn and ignore the option if not recognized 8007 # So say no if there are warnings 8008 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8009 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8010 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8011 lt_cv_prog_compiler_c_o=yes 8012 fi 8013 fi 8014 chmod u+w . 2>&5 8015 $rm conftest* 8016 # SGI C++ compiler will create directory out/ii_files/ for 8017 # template instantiation 8018 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 8019 $rm out/* && rmdir out 8020 cd .. 8021 rmdir conftest 8022 $rm conftest* 8023 8024fi 8025{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8026$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8027 8028 8029hard_links="nottested" 8030if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8031 # do not overwrite the value of need_locks provided by the user 8032 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 8033$as_echo_n "checking if we can lock with hard links... " >&6; } 8034 hard_links=yes 8035 $rm conftest* 8036 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8037 touch conftest.a 8038 ln conftest.a conftest.b 2>&5 || hard_links=no 8039 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8040 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 8041$as_echo "$hard_links" >&6; } 8042 if test "$hard_links" = no; then 8043 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8044$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8045 need_locks=warn 8046 fi 8047else 8048 need_locks=no 8049fi 8050 8051{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8052$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8053 8054 runpath_var= 8055 allow_undefined_flag= 8056 enable_shared_with_static_runtimes=no 8057 archive_cmds= 8058 archive_expsym_cmds= 8059 old_archive_From_new_cmds= 8060 old_archive_from_expsyms_cmds= 8061 export_dynamic_flag_spec= 8062 whole_archive_flag_spec= 8063 thread_safe_flag_spec= 8064 hardcode_libdir_flag_spec= 8065 hardcode_libdir_flag_spec_ld= 8066 hardcode_libdir_separator= 8067 hardcode_direct=no 8068 hardcode_minus_L=no 8069 hardcode_shlibpath_var=unsupported 8070 link_all_deplibs=unknown 8071 hardcode_automatic=no 8072 module_cmds= 8073 module_expsym_cmds= 8074 always_export_symbols=no 8075 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8076 # include_expsyms should be a list of space-separated symbols to be *always* 8077 # included in the symbol list 8078 include_expsyms= 8079 # exclude_expsyms can be an extended regexp of symbols to exclude 8080 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8081 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8082 # as well as any symbol that contains `d'. 8083 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8084 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8085 # platforms (ab)use it in PIC code, but their linkers get confused if 8086 # the symbol is explicitly referenced. Since portable code cannot 8087 # rely on this symbol name, it's probably fine to never include it in 8088 # preloaded symbol tables. 8089 # Exclude shared library initialization/finalization symbols. 8090 extract_expsyms_cmds= 8091 # Just being paranoid about ensuring that cc_basename is set. 8092 for cc_temp in $compiler""; do 8093 case $cc_temp in 8094 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8095 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8096 \-*) ;; 8097 *) break;; 8098 esac 8099done 8100cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8101 8102 case $host_os in 8103 cygwin* | mingw* | pw32*) 8104 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8105 # When not using gcc, we currently assume that we are using 8106 # Microsoft Visual C++. 8107 if test "$GCC" != yes; then 8108 with_gnu_ld=no 8109 fi 8110 ;; 8111 interix*) 8112 # we just hope/assume this is gcc and not c89 (= MSVC++) 8113 with_gnu_ld=yes 8114 ;; 8115 openbsd*) 8116 with_gnu_ld=no 8117 ;; 8118 esac 8119 8120 ld_shlibs=yes 8121 if test "$with_gnu_ld" = yes; then 8122 # If archive_cmds runs LD, not CC, wlarc should be empty 8123 wlarc='${wl}' 8124 8125 # Set some defaults for GNU ld with shared library support. These 8126 # are reset later if shared libraries are not supported. Putting them 8127 # here allows them to be overridden if necessary. 8128 runpath_var=LD_RUN_PATH 8129 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 8130 export_dynamic_flag_spec='${wl}--export-dynamic' 8131 # ancient GNU ld didn't support --whole-archive et. al. 8132 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 8133 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8134 else 8135 whole_archive_flag_spec= 8136 fi 8137 supports_anon_versioning=no 8138 case `$LD -v 2>/dev/null` in 8139 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8140 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8141 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8142 *\ 2.11.*) ;; # other 2.11 versions 8143 *) supports_anon_versioning=yes ;; 8144 esac 8145 8146 # See if GNU ld supports shared libraries. 8147 case $host_os in 8148 aix[3-9]*) 8149 # On AIX/PPC, the GNU linker is very broken 8150 if test "$host_cpu" != ia64; then 8151 ld_shlibs=no 8152 cat <<EOF 1>&2 8153 8154*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8155*** to be unable to reliably create shared libraries on AIX. 8156*** Therefore, libtool is disabling shared libraries support. If you 8157*** really care for shared libraries, you may want to modify your PATH 8158*** so that a non-GNU linker is found, and then restart. 8159 8160EOF 8161 fi 8162 ;; 8163 8164 amigaos*) 8165 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)' 8166 hardcode_libdir_flag_spec='-L$libdir' 8167 hardcode_minus_L=yes 8168 8169 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 8170 # that the semantics of dynamic libraries on AmigaOS, at least up 8171 # to version 4, is to share data among multiple programs linked 8172 # with the same dynamic library. Since this doesn't match the 8173 # behavior of shared libraries on other platforms, we can't use 8174 # them. 8175 ld_shlibs=no 8176 ;; 8177 8178 beos*) 8179 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8180 allow_undefined_flag=unsupported 8181 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8182 # support --undefined. This deserves some investigation. FIXME 8183 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8184 else 8185 ld_shlibs=no 8186 fi 8187 ;; 8188 8189 cygwin* | mingw* | pw32*) 8190 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8191 # as there is no search path for DLLs. 8192 hardcode_libdir_flag_spec='-L$libdir' 8193 allow_undefined_flag=unsupported 8194 always_export_symbols=no 8195 enable_shared_with_static_runtimes=yes 8196 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8197 8198 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 8199 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8200 # If the export-symbols file already is a .def file (1st line 8201 # is EXPORTS), use it as is; otherwise, prepend... 8202 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8203 cp $export_symbols $output_objdir/$soname.def; 8204 else 8205 echo EXPORTS > $output_objdir/$soname.def; 8206 cat $export_symbols >> $output_objdir/$soname.def; 8207 fi~ 8208 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8209 else 8210 ld_shlibs=no 8211 fi 8212 ;; 8213 8214 interix[3-9]*) 8215 hardcode_direct=no 8216 hardcode_shlibpath_var=no 8217 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8218 export_dynamic_flag_spec='${wl}-E' 8219 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8220 # Instead, shared libraries are loaded at an image base (0x10000000 by 8221 # default) and relocated if they conflict, which is a slow very memory 8222 # consuming and fragmenting process. To avoid this, we pick a random, 8223 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8224 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8225 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8226 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' 8227 ;; 8228 8229 gnu* | linux* | k*bsd*-gnu) 8230 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8231 tmp_addflag= 8232 case $cc_basename,$host_cpu in 8233 pgcc*) # Portland Group C compiler 8234 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' 8235 tmp_addflag=' $pic_flag' 8236 ;; 8237 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8238 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' 8239 tmp_addflag=' $pic_flag -Mnomain' ;; 8240 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8241 tmp_addflag=' -i_dynamic' ;; 8242 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8243 tmp_addflag=' -i_dynamic -nofor_main' ;; 8244 ifc* | ifort*) # Intel Fortran compiler 8245 tmp_addflag=' -nofor_main' ;; 8246 esac 8247 case `$CC -V 2>&1 | sed 5q` in 8248 *Sun\ C*) # Sun C 5.9 8249 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' 8250 tmp_sharedflag='-G' ;; 8251 *Sun\ F*) # Sun Fortran 8.3 8252 tmp_sharedflag='-G' ;; 8253 *) 8254 tmp_sharedflag='-shared' ;; 8255 esac 8256 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8257 8258 if test $supports_anon_versioning = yes; then 8259 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 8260 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8261 $echo "local: *; };" >> $output_objdir/$libname.ver~ 8262 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8263 fi 8264 else 8265 ld_shlibs=no 8266 fi 8267 ;; 8268 8269 netbsd*) 8270 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8271 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8272 wlarc= 8273 else 8274 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8275 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8276 fi 8277 ;; 8278 8279 solaris*) 8280 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 8281 ld_shlibs=no 8282 cat <<EOF 1>&2 8283 8284*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8285*** create shared libraries on Solaris systems. Therefore, libtool 8286*** is disabling shared libraries support. We urge you to upgrade GNU 8287*** binutils to release 2.9.1 or newer. Another option is to modify 8288*** your PATH or compiler configuration so that the native linker is 8289*** used, and then restart. 8290 8291EOF 8292 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8293 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8294 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8295 else 8296 ld_shlibs=no 8297 fi 8298 ;; 8299 8300 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8301 case `$LD -v 2>&1` in 8302 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8303 ld_shlibs=no 8304 cat <<_LT_EOF 1>&2 8305 8306*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8307*** reliably create shared libraries on SCO systems. Therefore, libtool 8308*** is disabling shared libraries support. We urge you to upgrade GNU 8309*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8310*** your PATH or compiler configuration so that the native linker is 8311*** used, and then restart. 8312 8313_LT_EOF 8314 ;; 8315 *) 8316 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8317 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 8318 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 8319 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 8320 else 8321 ld_shlibs=no 8322 fi 8323 ;; 8324 esac 8325 ;; 8326 8327 sunos4*) 8328 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8329 wlarc= 8330 hardcode_direct=yes 8331 hardcode_shlibpath_var=no 8332 ;; 8333 8334 *) 8335 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8336 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8337 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8338 else 8339 ld_shlibs=no 8340 fi 8341 ;; 8342 esac 8343 8344 if test "$ld_shlibs" = no; then 8345 runpath_var= 8346 hardcode_libdir_flag_spec= 8347 export_dynamic_flag_spec= 8348 whole_archive_flag_spec= 8349 fi 8350 else 8351 # PORTME fill in a description of your system's linker (not GNU ld) 8352 case $host_os in 8353 aix3*) 8354 allow_undefined_flag=unsupported 8355 always_export_symbols=yes 8356 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' 8357 # Note: this linker hardcodes the directories in LIBPATH if there 8358 # are no directories specified by -L. 8359 hardcode_minus_L=yes 8360 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8361 # Neither direct hardcoding nor static linking is supported with a 8362 # broken collect2. 8363 hardcode_direct=unsupported 8364 fi 8365 ;; 8366 8367 aix[4-9]*) 8368 if test "$host_cpu" = ia64; then 8369 # On IA64, the linker does run time linking by default, so we don't 8370 # have to do anything special. 8371 aix_use_runtimelinking=no 8372 exp_sym_flag='-Bexport' 8373 no_entry_flag="" 8374 else 8375 # If we're using GNU nm, then we don't want the "-C" option. 8376 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8377 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 8378 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' 8379 else 8380 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' 8381 fi 8382 aix_use_runtimelinking=no 8383 8384 # Test if we are trying to use run time linking or normal 8385 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8386 # need to do runtime linking. 8387 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8388 for ld_flag in $LDFLAGS; do 8389 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8390 aix_use_runtimelinking=yes 8391 break 8392 fi 8393 done 8394 ;; 8395 esac 8396 8397 exp_sym_flag='-bexport' 8398 no_entry_flag='-bnoentry' 8399 fi 8400 8401 # When large executables or shared objects are built, AIX ld can 8402 # have problems creating the table of contents. If linking a library 8403 # or program results in "error TOC overflow" add -mminimal-toc to 8404 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8405 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8406 8407 archive_cmds='' 8408 hardcode_direct=yes 8409 hardcode_libdir_separator=':' 8410 link_all_deplibs=yes 8411 8412 if test "$GCC" = yes; then 8413 case $host_os in aix4.[012]|aix4.[012].*) 8414 # We only want to do this on AIX 4.2 and lower, the check 8415 # below for broken collect2 doesn't work under 4.3+ 8416 collect2name=`${CC} -print-prog-name=collect2` 8417 if test -f "$collect2name" && \ 8418 strings "$collect2name" | grep resolve_lib_name >/dev/null 8419 then 8420 # We have reworked collect2 8421 : 8422 else 8423 # We have old collect2 8424 hardcode_direct=unsupported 8425 # It fails to find uninstalled libraries when the uninstalled 8426 # path is not listed in the libpath. Setting hardcode_minus_L 8427 # to unsupported forces relinking 8428 hardcode_minus_L=yes 8429 hardcode_libdir_flag_spec='-L$libdir' 8430 hardcode_libdir_separator= 8431 fi 8432 ;; 8433 esac 8434 shared_flag='-shared' 8435 if test "$aix_use_runtimelinking" = yes; then 8436 shared_flag="$shared_flag "'${wl}-G' 8437 fi 8438 else 8439 # not using gcc 8440 if test "$host_cpu" = ia64; then 8441 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8442 # chokes on -Wl,-G. The following line is correct: 8443 shared_flag='-G' 8444 else 8445 if test "$aix_use_runtimelinking" = yes; then 8446 shared_flag='${wl}-G' 8447 else 8448 shared_flag='${wl}-bM:SRE' 8449 fi 8450 fi 8451 fi 8452 8453 # It seems that -bexpall does not export symbols beginning with 8454 # underscore (_), so it is better to generate a list of symbols to export. 8455 always_export_symbols=yes 8456 if test "$aix_use_runtimelinking" = yes; then 8457 # Warning - without using the other runtime loading flags (-brtl), 8458 # -berok will link without error, but may produce a broken library. 8459 allow_undefined_flag='-berok' 8460 # Determine the default libpath from the value encoded in an empty executable. 8461 cat >conftest.$ac_ext <<_ACEOF 8462/* confdefs.h. */ 8463_ACEOF 8464cat confdefs.h >>conftest.$ac_ext 8465cat >>conftest.$ac_ext <<_ACEOF 8466/* end confdefs.h. */ 8467 8468int 8469main () 8470{ 8471 8472 ; 8473 return 0; 8474} 8475_ACEOF 8476rm -f conftest.$ac_objext conftest$ac_exeext 8477if { (ac_try="$ac_link" 8478case "(($ac_try" in 8479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8480 *) ac_try_echo=$ac_try;; 8481esac 8482eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8483$as_echo "$ac_try_echo") >&5 8484 (eval "$ac_link") 2>conftest.er1 8485 ac_status=$? 8486 grep -v '^ *+' conftest.er1 >conftest.err 8487 rm -f conftest.er1 8488 cat conftest.err >&5 8489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8490 (exit $ac_status); } && { 8491 test -z "$ac_c_werror_flag" || 8492 test ! -s conftest.err 8493 } && test -s conftest$ac_exeext && { 8494 test "$cross_compiling" = yes || 8495 $as_test_x conftest$ac_exeext 8496 }; then 8497 8498lt_aix_libpath_sed=' 8499 /Import File Strings/,/^$/ { 8500 /^0/ { 8501 s/^0 *\(.*\)$/\1/ 8502 p 8503 } 8504 }' 8505aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8506# Check for a 64-bit object if we didn't find anything. 8507if test -z "$aix_libpath"; then 8508 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8509fi 8510else 8511 $as_echo "$as_me: failed program was:" >&5 8512sed 's/^/| /' conftest.$ac_ext >&5 8513 8514 8515fi 8516 8517rm -rf conftest.dSYM 8518rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8519 conftest$ac_exeext conftest.$ac_ext 8520if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8521 8522 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8523 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" 8524 else 8525 if test "$host_cpu" = ia64; then 8526 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8527 allow_undefined_flag="-z nodefs" 8528 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" 8529 else 8530 # Determine the default libpath from the value encoded in an empty executable. 8531 cat >conftest.$ac_ext <<_ACEOF 8532/* confdefs.h. */ 8533_ACEOF 8534cat confdefs.h >>conftest.$ac_ext 8535cat >>conftest.$ac_ext <<_ACEOF 8536/* end confdefs.h. */ 8537 8538int 8539main () 8540{ 8541 8542 ; 8543 return 0; 8544} 8545_ACEOF 8546rm -f conftest.$ac_objext conftest$ac_exeext 8547if { (ac_try="$ac_link" 8548case "(($ac_try" in 8549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8550 *) ac_try_echo=$ac_try;; 8551esac 8552eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8553$as_echo "$ac_try_echo") >&5 8554 (eval "$ac_link") 2>conftest.er1 8555 ac_status=$? 8556 grep -v '^ *+' conftest.er1 >conftest.err 8557 rm -f conftest.er1 8558 cat conftest.err >&5 8559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8560 (exit $ac_status); } && { 8561 test -z "$ac_c_werror_flag" || 8562 test ! -s conftest.err 8563 } && test -s conftest$ac_exeext && { 8564 test "$cross_compiling" = yes || 8565 $as_test_x conftest$ac_exeext 8566 }; then 8567 8568lt_aix_libpath_sed=' 8569 /Import File Strings/,/^$/ { 8570 /^0/ { 8571 s/^0 *\(.*\)$/\1/ 8572 p 8573 } 8574 }' 8575aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8576# Check for a 64-bit object if we didn't find anything. 8577if test -z "$aix_libpath"; then 8578 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8579fi 8580else 8581 $as_echo "$as_me: failed program was:" >&5 8582sed 's/^/| /' conftest.$ac_ext >&5 8583 8584 8585fi 8586 8587rm -rf conftest.dSYM 8588rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8589 conftest$ac_exeext conftest.$ac_ext 8590if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8591 8592 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8593 # Warning - without using the other run time loading flags, 8594 # -berok will link without error, but may produce a broken library. 8595 no_undefined_flag=' ${wl}-bernotok' 8596 allow_undefined_flag=' ${wl}-berok' 8597 # Exported symbols can be pulled into shared objects from archives 8598 whole_archive_flag_spec='$convenience' 8599 archive_cmds_need_lc=yes 8600 # This is similar to how AIX traditionally builds its shared libraries. 8601 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' 8602 fi 8603 fi 8604 ;; 8605 8606 amigaos*) 8607 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)' 8608 hardcode_libdir_flag_spec='-L$libdir' 8609 hardcode_minus_L=yes 8610 # see comment about different semantics on the GNU ld section 8611 ld_shlibs=no 8612 ;; 8613 8614 bsdi[45]*) 8615 export_dynamic_flag_spec=-rdynamic 8616 ;; 8617 8618 cygwin* | mingw* | pw32*) 8619 # When not using gcc, we currently assume that we are using 8620 # Microsoft Visual C++. 8621 # hardcode_libdir_flag_spec is actually meaningless, as there is 8622 # no search path for DLLs. 8623 hardcode_libdir_flag_spec=' ' 8624 allow_undefined_flag=unsupported 8625 # Tell ltmain to make .lib files, not .a files. 8626 libext=lib 8627 # Tell ltmain to make .dll files, not .so files. 8628 shrext_cmds=".dll" 8629 # FIXME: Setting linknames here is a bad hack. 8630 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8631 # The linker will automatically build a .lib file if we build a DLL. 8632 old_archive_From_new_cmds='true' 8633 # FIXME: Should let the user specify the lib program. 8634 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8635 fix_srcfile_path='`cygpath -w "$srcfile"`' 8636 enable_shared_with_static_runtimes=yes 8637 ;; 8638 8639 darwin* | rhapsody*) 8640 case $host_os in 8641 rhapsody* | darwin1.[012]) 8642 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8643 ;; 8644 *) # Darwin 1.3 on 8645 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8646 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8647 else 8648 case ${MACOSX_DEPLOYMENT_TARGET} in 8649 10.[012]) 8650 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8651 ;; 8652 10.*) 8653 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8654 ;; 8655 esac 8656 fi 8657 ;; 8658 esac 8659 archive_cmds_need_lc=no 8660 hardcode_direct=no 8661 hardcode_automatic=yes 8662 hardcode_shlibpath_var=unsupported 8663 whole_archive_flag_spec='' 8664 link_all_deplibs=yes 8665 if test "$GCC" = yes ; then 8666 output_verbose_link_cmd='echo' 8667 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8668 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8669 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 8670 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 8671 else 8672 case $cc_basename in 8673 xlc*) 8674 output_verbose_link_cmd='echo' 8675 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 8676 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8677 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8678 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}' 8679 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}' 8680 ;; 8681 *) 8682 ld_shlibs=no 8683 ;; 8684 esac 8685 fi 8686 ;; 8687 8688 dgux*) 8689 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8690 hardcode_libdir_flag_spec='-L$libdir' 8691 hardcode_shlibpath_var=no 8692 ;; 8693 8694 freebsd1*) 8695 ld_shlibs=no 8696 ;; 8697 8698 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8699 # support. Future versions do this automatically, but an explicit c++rt0.o 8700 # does not break anything, and helps significantly (at the cost of a little 8701 # extra space). 8702 freebsd2.2*) 8703 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8704 hardcode_libdir_flag_spec='-R$libdir' 8705 hardcode_direct=yes 8706 hardcode_shlibpath_var=no 8707 ;; 8708 8709 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8710 freebsd2*) 8711 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8712 hardcode_direct=yes 8713 hardcode_minus_L=yes 8714 hardcode_shlibpath_var=no 8715 ;; 8716 8717 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8718 freebsd* | dragonfly*) 8719 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8720 hardcode_libdir_flag_spec='-R$libdir' 8721 hardcode_direct=yes 8722 hardcode_shlibpath_var=no 8723 ;; 8724 8725 hpux9*) 8726 if test "$GCC" = yes; then 8727 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' 8728 else 8729 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' 8730 fi 8731 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8732 hardcode_libdir_separator=: 8733 hardcode_direct=yes 8734 8735 # hardcode_minus_L: Not really in the search PATH, 8736 # but as the default location of the library. 8737 hardcode_minus_L=yes 8738 export_dynamic_flag_spec='${wl}-E' 8739 ;; 8740 8741 hpux10*) 8742 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8743 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8744 else 8745 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8746 fi 8747 if test "$with_gnu_ld" = no; then 8748 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8749 hardcode_libdir_separator=: 8750 8751 hardcode_direct=yes 8752 export_dynamic_flag_spec='${wl}-E' 8753 8754 # hardcode_minus_L: Not really in the search PATH, 8755 # but as the default location of the library. 8756 hardcode_minus_L=yes 8757 fi 8758 ;; 8759 8760 hpux11*) 8761 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8762 case $host_cpu in 8763 hppa*64*) 8764 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8765 ;; 8766 ia64*) 8767 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8768 ;; 8769 *) 8770 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8771 ;; 8772 esac 8773 else 8774 case $host_cpu in 8775 hppa*64*) 8776 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8777 ;; 8778 ia64*) 8779 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8780 ;; 8781 *) 8782 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8783 ;; 8784 esac 8785 fi 8786 if test "$with_gnu_ld" = no; then 8787 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8788 hardcode_libdir_separator=: 8789 8790 case $host_cpu in 8791 hppa*64*|ia64*) 8792 hardcode_libdir_flag_spec_ld='+b $libdir' 8793 hardcode_direct=no 8794 hardcode_shlibpath_var=no 8795 ;; 8796 *) 8797 hardcode_direct=yes 8798 export_dynamic_flag_spec='${wl}-E' 8799 8800 # hardcode_minus_L: Not really in the search PATH, 8801 # but as the default location of the library. 8802 hardcode_minus_L=yes 8803 ;; 8804 esac 8805 fi 8806 ;; 8807 8808 irix5* | irix6* | nonstopux*) 8809 if test "$GCC" = yes; then 8810 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' 8811 else 8812 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' 8813 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8814 fi 8815 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8816 hardcode_libdir_separator=: 8817 link_all_deplibs=yes 8818 ;; 8819 8820 netbsd*) 8821 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8822 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8823 else 8824 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8825 fi 8826 hardcode_libdir_flag_spec='-R$libdir' 8827 hardcode_direct=yes 8828 hardcode_shlibpath_var=no 8829 ;; 8830 8831 newsos6) 8832 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8833 hardcode_direct=yes 8834 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8835 hardcode_libdir_separator=: 8836 hardcode_shlibpath_var=no 8837 ;; 8838 8839 openbsd*) 8840 if test -f /usr/libexec/ld.so; then 8841 hardcode_direct=yes 8842 hardcode_shlibpath_var=no 8843 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8844 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8845 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8846 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8847 export_dynamic_flag_spec='${wl}-E' 8848 else 8849 case $host_os in 8850 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8851 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8852 hardcode_libdir_flag_spec='-R$libdir' 8853 ;; 8854 *) 8855 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8856 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8857 ;; 8858 esac 8859 fi 8860 else 8861 ld_shlibs=no 8862 fi 8863 ;; 8864 8865 os2*) 8866 hardcode_libdir_flag_spec='-L$libdir' 8867 hardcode_minus_L=yes 8868 allow_undefined_flag=unsupported 8869 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' 8870 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8871 ;; 8872 8873 osf3*) 8874 if test "$GCC" = yes; then 8875 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8876 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' 8877 else 8878 allow_undefined_flag=' -expect_unresolved \*' 8879 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' 8880 fi 8881 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8882 hardcode_libdir_separator=: 8883 ;; 8884 8885 osf4* | osf5*) # as osf3* with the addition of -msym flag 8886 if test "$GCC" = yes; then 8887 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8888 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' 8889 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8890 else 8891 allow_undefined_flag=' -expect_unresolved \*' 8892 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' 8893 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8894 $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' 8895 8896 # Both c and cxx compiler support -rpath directly 8897 hardcode_libdir_flag_spec='-rpath $libdir' 8898 fi 8899 hardcode_libdir_separator=: 8900 ;; 8901 8902 solaris*) 8903 no_undefined_flag=' -z text' 8904 if test "$GCC" = yes; then 8905 wlarc='${wl}' 8906 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8907 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8908 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8909 else 8910 wlarc='' 8911 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8912 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8913 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8914 fi 8915 hardcode_libdir_flag_spec='-R$libdir' 8916 hardcode_shlibpath_var=no 8917 case $host_os in 8918 solaris2.[0-5] | solaris2.[0-5].*) ;; 8919 *) 8920 # The compiler driver will combine and reorder linker options, 8921 # but understands `-z linker_flag'. GCC discards it without `$wl', 8922 # but is careful enough not to reorder. 8923 # Supported since Solaris 2.6 (maybe 2.5.1?) 8924 if test "$GCC" = yes; then 8925 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8926 else 8927 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8928 fi 8929 ;; 8930 esac 8931 link_all_deplibs=yes 8932 ;; 8933 8934 sunos4*) 8935 if test "x$host_vendor" = xsequent; then 8936 # Use $CC to link under sequent, because it throws in some extra .o 8937 # files that make .init and .fini sections work. 8938 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8939 else 8940 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8941 fi 8942 hardcode_libdir_flag_spec='-L$libdir' 8943 hardcode_direct=yes 8944 hardcode_minus_L=yes 8945 hardcode_shlibpath_var=no 8946 ;; 8947 8948 sysv4) 8949 case $host_vendor in 8950 sni) 8951 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8952 hardcode_direct=yes # is this really true??? 8953 ;; 8954 siemens) 8955 ## LD is ld it makes a PLAMLIB 8956 ## CC just makes a GrossModule. 8957 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8958 reload_cmds='$CC -r -o $output$reload_objs' 8959 hardcode_direct=no 8960 ;; 8961 motorola) 8962 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8963 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8964 ;; 8965 esac 8966 runpath_var='LD_RUN_PATH' 8967 hardcode_shlibpath_var=no 8968 ;; 8969 8970 sysv4.3*) 8971 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8972 hardcode_shlibpath_var=no 8973 export_dynamic_flag_spec='-Bexport' 8974 ;; 8975 8976 sysv4*MP*) 8977 if test -d /usr/nec; then 8978 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8979 hardcode_shlibpath_var=no 8980 runpath_var=LD_RUN_PATH 8981 hardcode_runpath_var=yes 8982 ld_shlibs=yes 8983 fi 8984 ;; 8985 8986 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 8987 no_undefined_flag='${wl}-z,text' 8988 archive_cmds_need_lc=no 8989 hardcode_shlibpath_var=no 8990 runpath_var='LD_RUN_PATH' 8991 8992 if test "$GCC" = yes; then 8993 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8994 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8995 else 8996 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8997 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8998 fi 8999 ;; 9000 9001 sysv5* | sco3.2v5* | sco5v6*) 9002 # Note: We can NOT use -z defs as we might desire, because we do not 9003 # link with -lc, and that would cause any symbols used from libc to 9004 # always be unresolved, which means just about no library would 9005 # ever link correctly. If we're not using GNU ld we use -z text 9006 # though, which does catch some bad symbols but isn't as heavy-handed 9007 # as -z defs. 9008 no_undefined_flag='${wl}-z,text' 9009 allow_undefined_flag='${wl}-z,nodefs' 9010 archive_cmds_need_lc=no 9011 hardcode_shlibpath_var=no 9012 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 9013 hardcode_libdir_separator=':' 9014 link_all_deplibs=yes 9015 export_dynamic_flag_spec='${wl}-Bexport' 9016 runpath_var='LD_RUN_PATH' 9017 9018 if test "$GCC" = yes; then 9019 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9020 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9021 else 9022 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9023 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9024 fi 9025 ;; 9026 9027 uts4*) 9028 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9029 hardcode_libdir_flag_spec='-L$libdir' 9030 hardcode_shlibpath_var=no 9031 ;; 9032 9033 *) 9034 ld_shlibs=no 9035 ;; 9036 esac 9037 fi 9038 9039{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 9040$as_echo "$ld_shlibs" >&6; } 9041test "$ld_shlibs" = no && can_build_shared=no 9042 9043# 9044# Do we need to explicitly link libc? 9045# 9046case "x$archive_cmds_need_lc" in 9047x|xyes) 9048 # Assume -lc should be added 9049 archive_cmds_need_lc=yes 9050 9051 if test "$enable_shared" = yes && test "$GCC" = yes; then 9052 case $archive_cmds in 9053 *'~'*) 9054 # FIXME: we may have to deal with multi-command sequences. 9055 ;; 9056 '$CC '*) 9057 # Test whether the compiler implicitly links with -lc since on some 9058 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9059 # to ld, don't add -lc before -lgcc. 9060 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 9061$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9062 $rm conftest* 9063 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9064 9065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9066 (eval $ac_compile) 2>&5 9067 ac_status=$? 9068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9069 (exit $ac_status); } 2>conftest.err; then 9070 soname=conftest 9071 lib=conftest 9072 libobjs=conftest.$ac_objext 9073 deplibs= 9074 wl=$lt_prog_compiler_wl 9075 pic_flag=$lt_prog_compiler_pic 9076 compiler_flags=-v 9077 linker_flags=-v 9078 verstring= 9079 output_objdir=. 9080 libname=conftest 9081 lt_save_allow_undefined_flag=$allow_undefined_flag 9082 allow_undefined_flag= 9083 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 9084 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 9085 ac_status=$? 9086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9087 (exit $ac_status); } 9088 then 9089 archive_cmds_need_lc=no 9090 else 9091 archive_cmds_need_lc=yes 9092 fi 9093 allow_undefined_flag=$lt_save_allow_undefined_flag 9094 else 9095 cat conftest.err 1>&5 9096 fi 9097 $rm conftest* 9098 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 9099$as_echo "$archive_cmds_need_lc" >&6; } 9100 ;; 9101 esac 9102 fi 9103 ;; 9104esac 9105 9106{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9107$as_echo_n "checking dynamic linker characteristics... " >&6; } 9108library_names_spec= 9109libname_spec='lib$name' 9110soname_spec= 9111shrext_cmds=".so" 9112postinstall_cmds= 9113postuninstall_cmds= 9114finish_cmds= 9115finish_eval= 9116shlibpath_var= 9117shlibpath_overrides_runpath=unknown 9118version_type=none 9119dynamic_linker="$host_os ld.so" 9120sys_lib_dlsearch_path_spec="/lib /usr/lib" 9121 9122if test "$GCC" = yes; then 9123 case $host_os in 9124 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9125 *) lt_awk_arg="/^libraries:/" ;; 9126 esac 9127 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9128 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then 9129 # if the path contains ";" then we assume it to be the separator 9130 # otherwise default to the standard path separator (i.e. ":") - it is 9131 # assumed that no part of a normal pathname contains ";" but that should 9132 # okay in the real world where ";" in dirpaths is itself problematic. 9133 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9134 else 9135 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9136 fi 9137 # Ok, now we have the path, separated by spaces, we can step through it 9138 # and add multilib dir if necessary. 9139 lt_tmp_lt_search_path_spec= 9140 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9141 for lt_sys_path in $lt_search_path_spec; do 9142 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9143 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9144 else 9145 test -d "$lt_sys_path" && \ 9146 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9147 fi 9148 done 9149 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' 9150BEGIN {RS=" "; FS="/|\n";} { 9151 lt_foo=""; 9152 lt_count=0; 9153 for (lt_i = NF; lt_i > 0; lt_i--) { 9154 if ($lt_i != "" && $lt_i != ".") { 9155 if ($lt_i == "..") { 9156 lt_count++; 9157 } else { 9158 if (lt_count == 0) { 9159 lt_foo="/" $lt_i lt_foo; 9160 } else { 9161 lt_count--; 9162 } 9163 } 9164 } 9165 } 9166 if (lt_foo != "") { lt_freq[lt_foo]++; } 9167 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9168}'` 9169 sys_lib_search_path_spec=`echo $lt_search_path_spec` 9170else 9171 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9172fi 9173need_lib_prefix=unknown 9174hardcode_into_libs=no 9175 9176# when you set need_version to no, make sure it does not cause -set_version 9177# flags to be left without arguments 9178need_version=unknown 9179 9180case $host_os in 9181aix3*) 9182 version_type=linux 9183 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9184 shlibpath_var=LIBPATH 9185 9186 # AIX 3 has no versioning support, so we append a major version to the name. 9187 soname_spec='${libname}${release}${shared_ext}$major' 9188 ;; 9189 9190aix[4-9]*) 9191 version_type=linux 9192 need_lib_prefix=no 9193 need_version=no 9194 hardcode_into_libs=yes 9195 if test "$host_cpu" = ia64; then 9196 # AIX 5 supports IA64 9197 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9198 shlibpath_var=LD_LIBRARY_PATH 9199 else 9200 # With GCC up to 2.95.x, collect2 would create an import file 9201 # for dependence libraries. The import file would start with 9202 # the line `#! .'. This would cause the generated library to 9203 # depend on `.', always an invalid library. This was fixed in 9204 # development snapshots of GCC prior to 3.0. 9205 case $host_os in 9206 aix4 | aix4.[01] | aix4.[01].*) 9207 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9208 echo ' yes ' 9209 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 9210 : 9211 else 9212 can_build_shared=no 9213 fi 9214 ;; 9215 esac 9216 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9217 # soname into executable. Probably we can add versioning support to 9218 # collect2, so additional links can be useful in future. 9219 if test "$aix_use_runtimelinking" = yes; then 9220 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9221 # instead of lib<name>.a to let people know that these are not 9222 # typical AIX shared libraries. 9223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9224 else 9225 # We preserve .a as extension for shared libraries through AIX4.2 9226 # and later when we are not doing run time linking. 9227 library_names_spec='${libname}${release}.a $libname.a' 9228 soname_spec='${libname}${release}${shared_ext}$major' 9229 fi 9230 shlibpath_var=LIBPATH 9231 fi 9232 ;; 9233 9234amigaos*) 9235 library_names_spec='$libname.ixlibrary $libname.a' 9236 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9237 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' 9238 ;; 9239 9240beos*) 9241 library_names_spec='${libname}${shared_ext}' 9242 dynamic_linker="$host_os ld.so" 9243 shlibpath_var=LIBRARY_PATH 9244 ;; 9245 9246bsdi[45]*) 9247 version_type=linux 9248 need_version=no 9249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9250 soname_spec='${libname}${release}${shared_ext}$major' 9251 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9252 shlibpath_var=LD_LIBRARY_PATH 9253 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9254 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9255 # the default ld.so.conf also contains /usr/contrib/lib and 9256 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9257 # libtool to hard-code these into programs 9258 ;; 9259 9260cygwin* | mingw* | pw32*) 9261 version_type=windows 9262 shrext_cmds=".dll" 9263 need_version=no 9264 need_lib_prefix=no 9265 9266 case $GCC,$host_os in 9267 yes,cygwin* | yes,mingw* | yes,pw32*) 9268 library_names_spec='$libname.dll.a' 9269 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9270 postinstall_cmds='base_file=`basename \${file}`~ 9271 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 9272 dldir=$destdir/`dirname \$dlpath`~ 9273 test -d \$dldir || mkdir -p \$dldir~ 9274 $install_prog $dir/$dlname \$dldir/$dlname~ 9275 chmod a+x \$dldir/$dlname' 9276 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9277 dlpath=$dir/\$dldll~ 9278 $rm \$dlpath' 9279 shlibpath_overrides_runpath=yes 9280 9281 case $host_os in 9282 cygwin*) 9283 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9284 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9285 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9286 ;; 9287 mingw*) 9288 # MinGW DLLs use traditional 'lib' prefix 9289 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9290 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9291 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 9292 # It is most probably a Windows format PATH printed by 9293 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9294 # path with ; separators, and with drive letters. We can handle the 9295 # drive letters (cygwin fileutils understands them), so leave them, 9296 # especially as we might pass files found there to a mingw objdump, 9297 # which wouldn't understand a cygwinified path. Ahh. 9298 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9299 else 9300 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9301 fi 9302 ;; 9303 pw32*) 9304 # pw32 DLLs use 'pw' prefix rather than 'lib' 9305 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9306 ;; 9307 esac 9308 ;; 9309 9310 *) 9311 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9312 ;; 9313 esac 9314 dynamic_linker='Win32 ld.exe' 9315 # FIXME: first we should search . and the directory the executable is in 9316 shlibpath_var=PATH 9317 ;; 9318 9319darwin* | rhapsody*) 9320 dynamic_linker="$host_os dyld" 9321 version_type=darwin 9322 need_lib_prefix=no 9323 need_version=no 9324 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9325 soname_spec='${libname}${release}${major}$shared_ext' 9326 shlibpath_overrides_runpath=yes 9327 shlibpath_var=DYLD_LIBRARY_PATH 9328 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9329 9330 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9331 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9332 ;; 9333 9334dgux*) 9335 version_type=linux 9336 need_lib_prefix=no 9337 need_version=no 9338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9339 soname_spec='${libname}${release}${shared_ext}$major' 9340 shlibpath_var=LD_LIBRARY_PATH 9341 ;; 9342 9343freebsd1*) 9344 dynamic_linker=no 9345 ;; 9346 9347freebsd* | dragonfly*) 9348 # DragonFly does not have aout. When/if they implement a new 9349 # versioning mechanism, adjust this. 9350 if test -x /usr/bin/objformat; then 9351 objformat=`/usr/bin/objformat` 9352 else 9353 case $host_os in 9354 freebsd[123]*) objformat=aout ;; 9355 *) objformat=elf ;; 9356 esac 9357 fi 9358 version_type=freebsd-$objformat 9359 case $version_type in 9360 freebsd-elf*) 9361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9362 need_version=no 9363 need_lib_prefix=no 9364 ;; 9365 freebsd-*) 9366 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9367 need_version=yes 9368 ;; 9369 esac 9370 shlibpath_var=LD_LIBRARY_PATH 9371 case $host_os in 9372 freebsd2*) 9373 shlibpath_overrides_runpath=yes 9374 ;; 9375 freebsd3.[01]* | freebsdelf3.[01]*) 9376 shlibpath_overrides_runpath=yes 9377 hardcode_into_libs=yes 9378 ;; 9379 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9380 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9381 shlibpath_overrides_runpath=no 9382 hardcode_into_libs=yes 9383 ;; 9384 *) # from 4.6 on, and DragonFly 9385 shlibpath_overrides_runpath=yes 9386 hardcode_into_libs=yes 9387 ;; 9388 esac 9389 ;; 9390 9391gnu*) 9392 version_type=linux 9393 need_lib_prefix=no 9394 need_version=no 9395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9396 soname_spec='${libname}${release}${shared_ext}$major' 9397 shlibpath_var=LD_LIBRARY_PATH 9398 hardcode_into_libs=yes 9399 ;; 9400 9401hpux9* | hpux10* | hpux11*) 9402 # Give a soname corresponding to the major version so that dld.sl refuses to 9403 # link against other versions. 9404 version_type=sunos 9405 need_lib_prefix=no 9406 need_version=no 9407 case $host_cpu in 9408 ia64*) 9409 shrext_cmds='.so' 9410 hardcode_into_libs=yes 9411 dynamic_linker="$host_os dld.so" 9412 shlibpath_var=LD_LIBRARY_PATH 9413 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9415 soname_spec='${libname}${release}${shared_ext}$major' 9416 if test "X$HPUX_IA64_MODE" = X32; then 9417 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9418 else 9419 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9420 fi 9421 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9422 ;; 9423 hppa*64*) 9424 shrext_cmds='.sl' 9425 hardcode_into_libs=yes 9426 dynamic_linker="$host_os dld.sl" 9427 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9428 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9430 soname_spec='${libname}${release}${shared_ext}$major' 9431 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9432 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9433 ;; 9434 *) 9435 shrext_cmds='.sl' 9436 dynamic_linker="$host_os dld.sl" 9437 shlibpath_var=SHLIB_PATH 9438 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9440 soname_spec='${libname}${release}${shared_ext}$major' 9441 ;; 9442 esac 9443 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9444 postinstall_cmds='chmod 555 $lib' 9445 ;; 9446 9447interix[3-9]*) 9448 version_type=linux 9449 need_lib_prefix=no 9450 need_version=no 9451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9452 soname_spec='${libname}${release}${shared_ext}$major' 9453 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9454 shlibpath_var=LD_LIBRARY_PATH 9455 shlibpath_overrides_runpath=no 9456 hardcode_into_libs=yes 9457 ;; 9458 9459irix5* | irix6* | nonstopux*) 9460 case $host_os in 9461 nonstopux*) version_type=nonstopux ;; 9462 *) 9463 if test "$lt_cv_prog_gnu_ld" = yes; then 9464 version_type=linux 9465 else 9466 version_type=irix 9467 fi ;; 9468 esac 9469 need_lib_prefix=no 9470 need_version=no 9471 soname_spec='${libname}${release}${shared_ext}$major' 9472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9473 case $host_os in 9474 irix5* | nonstopux*) 9475 libsuff= shlibsuff= 9476 ;; 9477 *) 9478 case $LD in # libtool.m4 will add one of these switches to LD 9479 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9480 libsuff= shlibsuff= libmagic=32-bit;; 9481 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9482 libsuff=32 shlibsuff=N32 libmagic=N32;; 9483 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9484 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9485 *) libsuff= shlibsuff= libmagic=never-match;; 9486 esac 9487 ;; 9488 esac 9489 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9490 shlibpath_overrides_runpath=no 9491 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9492 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9493 hardcode_into_libs=yes 9494 ;; 9495 9496# No shared lib support for Linux oldld, aout, or coff. 9497linux*oldld* | linux*aout* | linux*coff*) 9498 dynamic_linker=no 9499 ;; 9500 9501# This must be Linux ELF. 9502linux* | k*bsd*-gnu) 9503 version_type=linux 9504 need_lib_prefix=no 9505 need_version=no 9506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9507 soname_spec='${libname}${release}${shared_ext}$major' 9508 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9509 shlibpath_var=LD_LIBRARY_PATH 9510 shlibpath_overrides_runpath=no 9511 # This implies no fast_install, which is unacceptable. 9512 # Some rework will be needed to allow for fast_install 9513 # before this can be enabled. 9514 hardcode_into_libs=yes 9515 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9516 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9517 9518 # Append ld.so.conf contents to the search path 9519 if test -f /etc/ld.so.conf; then 9520 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' ' '` 9521 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 9522 fi 9523 9524 # We used to test for /lib/ld.so.1 and disable shared libraries on 9525 # powerpc, because MkLinux only supported shared libraries with the 9526 # GNU dynamic linker. Since this was broken with cross compilers, 9527 # most powerpc-linux boxes support dynamic linking these days and 9528 # people can always --disable-shared, the test was removed, and we 9529 # assume the GNU/Linux dynamic linker is in use. 9530 dynamic_linker='GNU/Linux ld.so' 9531 ;; 9532 9533netbsd*) 9534 version_type=sunos 9535 need_lib_prefix=no 9536 need_version=no 9537 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9539 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9540 dynamic_linker='NetBSD (a.out) ld.so' 9541 else 9542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9543 soname_spec='${libname}${release}${shared_ext}$major' 9544 dynamic_linker='NetBSD ld.elf_so' 9545 fi 9546 shlibpath_var=LD_LIBRARY_PATH 9547 shlibpath_overrides_runpath=yes 9548 hardcode_into_libs=yes 9549 ;; 9550 9551newsos6) 9552 version_type=linux 9553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9554 shlibpath_var=LD_LIBRARY_PATH 9555 shlibpath_overrides_runpath=yes 9556 ;; 9557 9558nto-qnx*) 9559 version_type=linux 9560 need_lib_prefix=no 9561 need_version=no 9562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9563 soname_spec='${libname}${release}${shared_ext}$major' 9564 shlibpath_var=LD_LIBRARY_PATH 9565 shlibpath_overrides_runpath=yes 9566 ;; 9567 9568openbsd*) 9569 version_type=sunos 9570 sys_lib_dlsearch_path_spec="/usr/lib" 9571 need_lib_prefix=no 9572 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9573 case $host_os in 9574 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9575 *) need_version=no ;; 9576 esac 9577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9578 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9579 shlibpath_var=LD_LIBRARY_PATH 9580 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9581 case $host_os in 9582 openbsd2.[89] | openbsd2.[89].*) 9583 shlibpath_overrides_runpath=no 9584 ;; 9585 *) 9586 shlibpath_overrides_runpath=yes 9587 ;; 9588 esac 9589 else 9590 shlibpath_overrides_runpath=yes 9591 fi 9592 ;; 9593 9594os2*) 9595 libname_spec='$name' 9596 shrext_cmds=".dll" 9597 need_lib_prefix=no 9598 library_names_spec='$libname${shared_ext} $libname.a' 9599 dynamic_linker='OS/2 ld.exe' 9600 shlibpath_var=LIBPATH 9601 ;; 9602 9603osf3* | osf4* | osf5*) 9604 version_type=osf 9605 need_lib_prefix=no 9606 need_version=no 9607 soname_spec='${libname}${release}${shared_ext}$major' 9608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9609 shlibpath_var=LD_LIBRARY_PATH 9610 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9611 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9612 ;; 9613 9614rdos*) 9615 dynamic_linker=no 9616 ;; 9617 9618solaris*) 9619 version_type=linux 9620 need_lib_prefix=no 9621 need_version=no 9622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9623 soname_spec='${libname}${release}${shared_ext}$major' 9624 shlibpath_var=LD_LIBRARY_PATH 9625 shlibpath_overrides_runpath=yes 9626 hardcode_into_libs=yes 9627 # ldd complains unless libraries are executable 9628 postinstall_cmds='chmod +x $lib' 9629 ;; 9630 9631sunos4*) 9632 version_type=sunos 9633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9634 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9635 shlibpath_var=LD_LIBRARY_PATH 9636 shlibpath_overrides_runpath=yes 9637 if test "$with_gnu_ld" = yes; then 9638 need_lib_prefix=no 9639 fi 9640 need_version=yes 9641 ;; 9642 9643sysv4 | sysv4.3*) 9644 version_type=linux 9645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9646 soname_spec='${libname}${release}${shared_ext}$major' 9647 shlibpath_var=LD_LIBRARY_PATH 9648 case $host_vendor in 9649 sni) 9650 shlibpath_overrides_runpath=no 9651 need_lib_prefix=no 9652 export_dynamic_flag_spec='${wl}-Blargedynsym' 9653 runpath_var=LD_RUN_PATH 9654 ;; 9655 siemens) 9656 need_lib_prefix=no 9657 ;; 9658 motorola) 9659 need_lib_prefix=no 9660 need_version=no 9661 shlibpath_overrides_runpath=no 9662 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9663 ;; 9664 esac 9665 ;; 9666 9667sysv4*MP*) 9668 if test -d /usr/nec ;then 9669 version_type=linux 9670 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9671 soname_spec='$libname${shared_ext}.$major' 9672 shlibpath_var=LD_LIBRARY_PATH 9673 fi 9674 ;; 9675 9676sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9677 version_type=freebsd-elf 9678 need_lib_prefix=no 9679 need_version=no 9680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9681 soname_spec='${libname}${release}${shared_ext}$major' 9682 shlibpath_var=LD_LIBRARY_PATH 9683 hardcode_into_libs=yes 9684 if test "$with_gnu_ld" = yes; then 9685 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9686 shlibpath_overrides_runpath=no 9687 else 9688 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9689 shlibpath_overrides_runpath=yes 9690 case $host_os in 9691 sco3.2v5*) 9692 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9693 ;; 9694 esac 9695 fi 9696 sys_lib_dlsearch_path_spec='/usr/lib' 9697 ;; 9698 9699uts4*) 9700 version_type=linux 9701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9702 soname_spec='${libname}${release}${shared_ext}$major' 9703 shlibpath_var=LD_LIBRARY_PATH 9704 ;; 9705 9706*) 9707 dynamic_linker=no 9708 ;; 9709esac 9710{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9711$as_echo "$dynamic_linker" >&6; } 9712test "$dynamic_linker" = no && can_build_shared=no 9713 9714if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 9715 $as_echo_n "(cached) " >&6 9716else 9717 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 9718fi 9719 9720sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 9721if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 9722 $as_echo_n "(cached) " >&6 9723else 9724 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 9725fi 9726 9727sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 9728 9729variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9730if test "$GCC" = yes; then 9731 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9732fi 9733 9734{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9735$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 9736hardcode_action= 9737if test -n "$hardcode_libdir_flag_spec" || \ 9738 test -n "$runpath_var" || \ 9739 test "X$hardcode_automatic" = "Xyes" ; then 9740 9741 # We can hardcode non-existant directories. 9742 if test "$hardcode_direct" != no && 9743 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9744 # have to relink, otherwise we might link with an installed library 9745 # when we should be linking with a yet-to-be-installed one 9746 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9747 test "$hardcode_minus_L" != no; then 9748 # Linking always hardcodes the temporary library directory. 9749 hardcode_action=relink 9750 else 9751 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9752 hardcode_action=immediate 9753 fi 9754else 9755 # We cannot hardcode anything, or else we can only hardcode existing 9756 # directories. 9757 hardcode_action=unsupported 9758fi 9759{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 9760$as_echo "$hardcode_action" >&6; } 9761 9762if test "$hardcode_action" = relink; then 9763 # Fast installation is not supported 9764 enable_fast_install=no 9765elif test "$shlibpath_overrides_runpath" = yes || 9766 test "$enable_shared" = no; then 9767 # Fast installation is not necessary 9768 enable_fast_install=needless 9769fi 9770 9771striplib= 9772old_striplib= 9773{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9774$as_echo_n "checking whether stripping libraries is possible... " >&6; } 9775if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9776 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9777 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9778 { $as_echo "$as_me:$LINENO: result: yes" >&5 9779$as_echo "yes" >&6; } 9780else 9781# FIXME - insert some real tests, host_os isn't really good enough 9782 case $host_os in 9783 darwin*) 9784 if test -n "$STRIP" ; then 9785 striplib="$STRIP -x" 9786 old_striplib="$STRIP -S" 9787 { $as_echo "$as_me:$LINENO: result: yes" >&5 9788$as_echo "yes" >&6; } 9789 else 9790 { $as_echo "$as_me:$LINENO: result: no" >&5 9791$as_echo "no" >&6; } 9792fi 9793 ;; 9794 *) 9795 { $as_echo "$as_me:$LINENO: result: no" >&5 9796$as_echo "no" >&6; } 9797 ;; 9798 esac 9799fi 9800 9801if test "x$enable_dlopen" != xyes; then 9802 enable_dlopen=unknown 9803 enable_dlopen_self=unknown 9804 enable_dlopen_self_static=unknown 9805else 9806 lt_cv_dlopen=no 9807 lt_cv_dlopen_libs= 9808 9809 case $host_os in 9810 beos*) 9811 lt_cv_dlopen="load_add_on" 9812 lt_cv_dlopen_libs= 9813 lt_cv_dlopen_self=yes 9814 ;; 9815 9816 mingw* | pw32*) 9817 lt_cv_dlopen="LoadLibrary" 9818 lt_cv_dlopen_libs= 9819 ;; 9820 9821 cygwin*) 9822 lt_cv_dlopen="dlopen" 9823 lt_cv_dlopen_libs= 9824 ;; 9825 9826 darwin*) 9827 # if libdl is installed we need to link against it 9828 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9829$as_echo_n "checking for dlopen in -ldl... " >&6; } 9830if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9831 $as_echo_n "(cached) " >&6 9832else 9833 ac_check_lib_save_LIBS=$LIBS 9834LIBS="-ldl $LIBS" 9835cat >conftest.$ac_ext <<_ACEOF 9836/* confdefs.h. */ 9837_ACEOF 9838cat confdefs.h >>conftest.$ac_ext 9839cat >>conftest.$ac_ext <<_ACEOF 9840/* end confdefs.h. */ 9841 9842/* Override any GCC internal prototype to avoid an error. 9843 Use char because int might match the return type of a GCC 9844 builtin and then its argument prototype would still apply. */ 9845#ifdef __cplusplus 9846extern "C" 9847#endif 9848char dlopen (); 9849int 9850main () 9851{ 9852return dlopen (); 9853 ; 9854 return 0; 9855} 9856_ACEOF 9857rm -f conftest.$ac_objext conftest$ac_exeext 9858if { (ac_try="$ac_link" 9859case "(($ac_try" in 9860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9861 *) ac_try_echo=$ac_try;; 9862esac 9863eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9864$as_echo "$ac_try_echo") >&5 9865 (eval "$ac_link") 2>conftest.er1 9866 ac_status=$? 9867 grep -v '^ *+' conftest.er1 >conftest.err 9868 rm -f conftest.er1 9869 cat conftest.err >&5 9870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9871 (exit $ac_status); } && { 9872 test -z "$ac_c_werror_flag" || 9873 test ! -s conftest.err 9874 } && test -s conftest$ac_exeext && { 9875 test "$cross_compiling" = yes || 9876 $as_test_x conftest$ac_exeext 9877 }; then 9878 ac_cv_lib_dl_dlopen=yes 9879else 9880 $as_echo "$as_me: failed program was:" >&5 9881sed 's/^/| /' conftest.$ac_ext >&5 9882 9883 ac_cv_lib_dl_dlopen=no 9884fi 9885 9886rm -rf conftest.dSYM 9887rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9888 conftest$ac_exeext conftest.$ac_ext 9889LIBS=$ac_check_lib_save_LIBS 9890fi 9891{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9892$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 9893if test $ac_cv_lib_dl_dlopen = yes; then 9894 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9895else 9896 9897 lt_cv_dlopen="dyld" 9898 lt_cv_dlopen_libs= 9899 lt_cv_dlopen_self=yes 9900 9901fi 9902 9903 ;; 9904 9905 *) 9906 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 9907$as_echo_n "checking for shl_load... " >&6; } 9908if test "${ac_cv_func_shl_load+set}" = set; then 9909 $as_echo_n "(cached) " >&6 9910else 9911 cat >conftest.$ac_ext <<_ACEOF 9912/* confdefs.h. */ 9913_ACEOF 9914cat confdefs.h >>conftest.$ac_ext 9915cat >>conftest.$ac_ext <<_ACEOF 9916/* end confdefs.h. */ 9917/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9918 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9919#define shl_load innocuous_shl_load 9920 9921/* System header to define __stub macros and hopefully few prototypes, 9922 which can conflict with char shl_load (); below. 9923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9924 <limits.h> exists even on freestanding compilers. */ 9925 9926#ifdef __STDC__ 9927# include <limits.h> 9928#else 9929# include <assert.h> 9930#endif 9931 9932#undef shl_load 9933 9934/* Override any GCC internal prototype to avoid an error. 9935 Use char because int might match the return type of a GCC 9936 builtin and then its argument prototype would still apply. */ 9937#ifdef __cplusplus 9938extern "C" 9939#endif 9940char shl_load (); 9941/* The GNU C library defines this for functions which it implements 9942 to always fail with ENOSYS. Some functions are actually named 9943 something starting with __ and the normal name is an alias. */ 9944#if defined __stub_shl_load || defined __stub___shl_load 9945choke me 9946#endif 9947 9948int 9949main () 9950{ 9951return shl_load (); 9952 ; 9953 return 0; 9954} 9955_ACEOF 9956rm -f conftest.$ac_objext conftest$ac_exeext 9957if { (ac_try="$ac_link" 9958case "(($ac_try" in 9959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9960 *) ac_try_echo=$ac_try;; 9961esac 9962eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9963$as_echo "$ac_try_echo") >&5 9964 (eval "$ac_link") 2>conftest.er1 9965 ac_status=$? 9966 grep -v '^ *+' conftest.er1 >conftest.err 9967 rm -f conftest.er1 9968 cat conftest.err >&5 9969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9970 (exit $ac_status); } && { 9971 test -z "$ac_c_werror_flag" || 9972 test ! -s conftest.err 9973 } && test -s conftest$ac_exeext && { 9974 test "$cross_compiling" = yes || 9975 $as_test_x conftest$ac_exeext 9976 }; then 9977 ac_cv_func_shl_load=yes 9978else 9979 $as_echo "$as_me: failed program was:" >&5 9980sed 's/^/| /' conftest.$ac_ext >&5 9981 9982 ac_cv_func_shl_load=no 9983fi 9984 9985rm -rf conftest.dSYM 9986rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9987 conftest$ac_exeext conftest.$ac_ext 9988fi 9989{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9990$as_echo "$ac_cv_func_shl_load" >&6; } 9991if test $ac_cv_func_shl_load = yes; then 9992 lt_cv_dlopen="shl_load" 9993else 9994 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9995$as_echo_n "checking for shl_load in -ldld... " >&6; } 9996if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9997 $as_echo_n "(cached) " >&6 9998else 9999 ac_check_lib_save_LIBS=$LIBS 10000LIBS="-ldld $LIBS" 10001cat >conftest.$ac_ext <<_ACEOF 10002/* confdefs.h. */ 10003_ACEOF 10004cat confdefs.h >>conftest.$ac_ext 10005cat >>conftest.$ac_ext <<_ACEOF 10006/* end confdefs.h. */ 10007 10008/* Override any GCC internal prototype to avoid an error. 10009 Use char because int might match the return type of a GCC 10010 builtin and then its argument prototype would still apply. */ 10011#ifdef __cplusplus 10012extern "C" 10013#endif 10014char shl_load (); 10015int 10016main () 10017{ 10018return shl_load (); 10019 ; 10020 return 0; 10021} 10022_ACEOF 10023rm -f conftest.$ac_objext conftest$ac_exeext 10024if { (ac_try="$ac_link" 10025case "(($ac_try" in 10026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10027 *) ac_try_echo=$ac_try;; 10028esac 10029eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10030$as_echo "$ac_try_echo") >&5 10031 (eval "$ac_link") 2>conftest.er1 10032 ac_status=$? 10033 grep -v '^ *+' conftest.er1 >conftest.err 10034 rm -f conftest.er1 10035 cat conftest.err >&5 10036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10037 (exit $ac_status); } && { 10038 test -z "$ac_c_werror_flag" || 10039 test ! -s conftest.err 10040 } && test -s conftest$ac_exeext && { 10041 test "$cross_compiling" = yes || 10042 $as_test_x conftest$ac_exeext 10043 }; then 10044 ac_cv_lib_dld_shl_load=yes 10045else 10046 $as_echo "$as_me: failed program was:" >&5 10047sed 's/^/| /' conftest.$ac_ext >&5 10048 10049 ac_cv_lib_dld_shl_load=no 10050fi 10051 10052rm -rf conftest.dSYM 10053rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10054 conftest$ac_exeext conftest.$ac_ext 10055LIBS=$ac_check_lib_save_LIBS 10056fi 10057{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 10058$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10059if test $ac_cv_lib_dld_shl_load = yes; then 10060 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10061else 10062 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 10063$as_echo_n "checking for dlopen... " >&6; } 10064if test "${ac_cv_func_dlopen+set}" = set; then 10065 $as_echo_n "(cached) " >&6 10066else 10067 cat >conftest.$ac_ext <<_ACEOF 10068/* confdefs.h. */ 10069_ACEOF 10070cat confdefs.h >>conftest.$ac_ext 10071cat >>conftest.$ac_ext <<_ACEOF 10072/* end confdefs.h. */ 10073/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 10074 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10075#define dlopen innocuous_dlopen 10076 10077/* System header to define __stub macros and hopefully few prototypes, 10078 which can conflict with char dlopen (); below. 10079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10080 <limits.h> exists even on freestanding compilers. */ 10081 10082#ifdef __STDC__ 10083# include <limits.h> 10084#else 10085# include <assert.h> 10086#endif 10087 10088#undef dlopen 10089 10090/* Override any GCC internal prototype to avoid an error. 10091 Use char because int might match the return type of a GCC 10092 builtin and then its argument prototype would still apply. */ 10093#ifdef __cplusplus 10094extern "C" 10095#endif 10096char dlopen (); 10097/* The GNU C library defines this for functions which it implements 10098 to always fail with ENOSYS. Some functions are actually named 10099 something starting with __ and the normal name is an alias. */ 10100#if defined __stub_dlopen || defined __stub___dlopen 10101choke me 10102#endif 10103 10104int 10105main () 10106{ 10107return dlopen (); 10108 ; 10109 return 0; 10110} 10111_ACEOF 10112rm -f conftest.$ac_objext conftest$ac_exeext 10113if { (ac_try="$ac_link" 10114case "(($ac_try" in 10115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10116 *) ac_try_echo=$ac_try;; 10117esac 10118eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10119$as_echo "$ac_try_echo") >&5 10120 (eval "$ac_link") 2>conftest.er1 10121 ac_status=$? 10122 grep -v '^ *+' conftest.er1 >conftest.err 10123 rm -f conftest.er1 10124 cat conftest.err >&5 10125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10126 (exit $ac_status); } && { 10127 test -z "$ac_c_werror_flag" || 10128 test ! -s conftest.err 10129 } && test -s conftest$ac_exeext && { 10130 test "$cross_compiling" = yes || 10131 $as_test_x conftest$ac_exeext 10132 }; then 10133 ac_cv_func_dlopen=yes 10134else 10135 $as_echo "$as_me: failed program was:" >&5 10136sed 's/^/| /' conftest.$ac_ext >&5 10137 10138 ac_cv_func_dlopen=no 10139fi 10140 10141rm -rf conftest.dSYM 10142rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10143 conftest$ac_exeext conftest.$ac_ext 10144fi 10145{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 10146$as_echo "$ac_cv_func_dlopen" >&6; } 10147if test $ac_cv_func_dlopen = yes; then 10148 lt_cv_dlopen="dlopen" 10149else 10150 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10151$as_echo_n "checking for dlopen in -ldl... " >&6; } 10152if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10153 $as_echo_n "(cached) " >&6 10154else 10155 ac_check_lib_save_LIBS=$LIBS 10156LIBS="-ldl $LIBS" 10157cat >conftest.$ac_ext <<_ACEOF 10158/* confdefs.h. */ 10159_ACEOF 10160cat confdefs.h >>conftest.$ac_ext 10161cat >>conftest.$ac_ext <<_ACEOF 10162/* end confdefs.h. */ 10163 10164/* Override any GCC internal prototype to avoid an error. 10165 Use char because int might match the return type of a GCC 10166 builtin and then its argument prototype would still apply. */ 10167#ifdef __cplusplus 10168extern "C" 10169#endif 10170char dlopen (); 10171int 10172main () 10173{ 10174return dlopen (); 10175 ; 10176 return 0; 10177} 10178_ACEOF 10179rm -f conftest.$ac_objext conftest$ac_exeext 10180if { (ac_try="$ac_link" 10181case "(($ac_try" in 10182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10183 *) ac_try_echo=$ac_try;; 10184esac 10185eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10186$as_echo "$ac_try_echo") >&5 10187 (eval "$ac_link") 2>conftest.er1 10188 ac_status=$? 10189 grep -v '^ *+' conftest.er1 >conftest.err 10190 rm -f conftest.er1 10191 cat conftest.err >&5 10192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10193 (exit $ac_status); } && { 10194 test -z "$ac_c_werror_flag" || 10195 test ! -s conftest.err 10196 } && test -s conftest$ac_exeext && { 10197 test "$cross_compiling" = yes || 10198 $as_test_x conftest$ac_exeext 10199 }; then 10200 ac_cv_lib_dl_dlopen=yes 10201else 10202 $as_echo "$as_me: failed program was:" >&5 10203sed 's/^/| /' conftest.$ac_ext >&5 10204 10205 ac_cv_lib_dl_dlopen=no 10206fi 10207 10208rm -rf conftest.dSYM 10209rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10210 conftest$ac_exeext conftest.$ac_ext 10211LIBS=$ac_check_lib_save_LIBS 10212fi 10213{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10214$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10215if test $ac_cv_lib_dl_dlopen = yes; then 10216 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10217else 10218 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10219$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10220if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10221 $as_echo_n "(cached) " >&6 10222else 10223 ac_check_lib_save_LIBS=$LIBS 10224LIBS="-lsvld $LIBS" 10225cat >conftest.$ac_ext <<_ACEOF 10226/* confdefs.h. */ 10227_ACEOF 10228cat confdefs.h >>conftest.$ac_ext 10229cat >>conftest.$ac_ext <<_ACEOF 10230/* end confdefs.h. */ 10231 10232/* Override any GCC internal prototype to avoid an error. 10233 Use char because int might match the return type of a GCC 10234 builtin and then its argument prototype would still apply. */ 10235#ifdef __cplusplus 10236extern "C" 10237#endif 10238char dlopen (); 10239int 10240main () 10241{ 10242return dlopen (); 10243 ; 10244 return 0; 10245} 10246_ACEOF 10247rm -f conftest.$ac_objext conftest$ac_exeext 10248if { (ac_try="$ac_link" 10249case "(($ac_try" in 10250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10251 *) ac_try_echo=$ac_try;; 10252esac 10253eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10254$as_echo "$ac_try_echo") >&5 10255 (eval "$ac_link") 2>conftest.er1 10256 ac_status=$? 10257 grep -v '^ *+' conftest.er1 >conftest.err 10258 rm -f conftest.er1 10259 cat conftest.err >&5 10260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10261 (exit $ac_status); } && { 10262 test -z "$ac_c_werror_flag" || 10263 test ! -s conftest.err 10264 } && test -s conftest$ac_exeext && { 10265 test "$cross_compiling" = yes || 10266 $as_test_x conftest$ac_exeext 10267 }; then 10268 ac_cv_lib_svld_dlopen=yes 10269else 10270 $as_echo "$as_me: failed program was:" >&5 10271sed 's/^/| /' conftest.$ac_ext >&5 10272 10273 ac_cv_lib_svld_dlopen=no 10274fi 10275 10276rm -rf conftest.dSYM 10277rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10278 conftest$ac_exeext conftest.$ac_ext 10279LIBS=$ac_check_lib_save_LIBS 10280fi 10281{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10282$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10283if test $ac_cv_lib_svld_dlopen = yes; then 10284 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10285else 10286 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10287$as_echo_n "checking for dld_link in -ldld... " >&6; } 10288if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10289 $as_echo_n "(cached) " >&6 10290else 10291 ac_check_lib_save_LIBS=$LIBS 10292LIBS="-ldld $LIBS" 10293cat >conftest.$ac_ext <<_ACEOF 10294/* confdefs.h. */ 10295_ACEOF 10296cat confdefs.h >>conftest.$ac_ext 10297cat >>conftest.$ac_ext <<_ACEOF 10298/* end confdefs.h. */ 10299 10300/* Override any GCC internal prototype to avoid an error. 10301 Use char because int might match the return type of a GCC 10302 builtin and then its argument prototype would still apply. */ 10303#ifdef __cplusplus 10304extern "C" 10305#endif 10306char dld_link (); 10307int 10308main () 10309{ 10310return dld_link (); 10311 ; 10312 return 0; 10313} 10314_ACEOF 10315rm -f conftest.$ac_objext conftest$ac_exeext 10316if { (ac_try="$ac_link" 10317case "(($ac_try" in 10318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10319 *) ac_try_echo=$ac_try;; 10320esac 10321eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10322$as_echo "$ac_try_echo") >&5 10323 (eval "$ac_link") 2>conftest.er1 10324 ac_status=$? 10325 grep -v '^ *+' conftest.er1 >conftest.err 10326 rm -f conftest.er1 10327 cat conftest.err >&5 10328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10329 (exit $ac_status); } && { 10330 test -z "$ac_c_werror_flag" || 10331 test ! -s conftest.err 10332 } && test -s conftest$ac_exeext && { 10333 test "$cross_compiling" = yes || 10334 $as_test_x conftest$ac_exeext 10335 }; then 10336 ac_cv_lib_dld_dld_link=yes 10337else 10338 $as_echo "$as_me: failed program was:" >&5 10339sed 's/^/| /' conftest.$ac_ext >&5 10340 10341 ac_cv_lib_dld_dld_link=no 10342fi 10343 10344rm -rf conftest.dSYM 10345rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10346 conftest$ac_exeext conftest.$ac_ext 10347LIBS=$ac_check_lib_save_LIBS 10348fi 10349{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10350$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10351if test $ac_cv_lib_dld_dld_link = yes; then 10352 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10353fi 10354 10355 10356fi 10357 10358 10359fi 10360 10361 10362fi 10363 10364 10365fi 10366 10367 10368fi 10369 10370 ;; 10371 esac 10372 10373 if test "x$lt_cv_dlopen" != xno; then 10374 enable_dlopen=yes 10375 else 10376 enable_dlopen=no 10377 fi 10378 10379 case $lt_cv_dlopen in 10380 dlopen) 10381 save_CPPFLAGS="$CPPFLAGS" 10382 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10383 10384 save_LDFLAGS="$LDFLAGS" 10385 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10386 10387 save_LIBS="$LIBS" 10388 LIBS="$lt_cv_dlopen_libs $LIBS" 10389 10390 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10391$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10392if test "${lt_cv_dlopen_self+set}" = set; then 10393 $as_echo_n "(cached) " >&6 10394else 10395 if test "$cross_compiling" = yes; then : 10396 lt_cv_dlopen_self=cross 10397else 10398 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10399 lt_status=$lt_dlunknown 10400 cat > conftest.$ac_ext <<EOF 10401#line 10401 "configure" 10402#include "confdefs.h" 10403 10404#if HAVE_DLFCN_H 10405#include <dlfcn.h> 10406#endif 10407 10408#include <stdio.h> 10409 10410#ifdef RTLD_GLOBAL 10411# define LT_DLGLOBAL RTLD_GLOBAL 10412#else 10413# ifdef DL_GLOBAL 10414# define LT_DLGLOBAL DL_GLOBAL 10415# else 10416# define LT_DLGLOBAL 0 10417# endif 10418#endif 10419 10420/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10421 find out it does not work in some platform. */ 10422#ifndef LT_DLLAZY_OR_NOW 10423# ifdef RTLD_LAZY 10424# define LT_DLLAZY_OR_NOW RTLD_LAZY 10425# else 10426# ifdef DL_LAZY 10427# define LT_DLLAZY_OR_NOW DL_LAZY 10428# else 10429# ifdef RTLD_NOW 10430# define LT_DLLAZY_OR_NOW RTLD_NOW 10431# else 10432# ifdef DL_NOW 10433# define LT_DLLAZY_OR_NOW DL_NOW 10434# else 10435# define LT_DLLAZY_OR_NOW 0 10436# endif 10437# endif 10438# endif 10439# endif 10440#endif 10441 10442#ifdef __cplusplus 10443extern "C" void exit (int); 10444#endif 10445 10446void fnord() { int i=42;} 10447int main () 10448{ 10449 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10450 int status = $lt_dlunknown; 10451 10452 if (self) 10453 { 10454 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10455 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10456 /* dlclose (self); */ 10457 } 10458 else 10459 puts (dlerror ()); 10460 10461 exit (status); 10462} 10463EOF 10464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10465 (eval $ac_link) 2>&5 10466 ac_status=$? 10467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10468 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10469 (./conftest; exit; ) >&5 2>/dev/null 10470 lt_status=$? 10471 case x$lt_status in 10472 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10473 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10474 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10475 esac 10476 else : 10477 # compilation failed 10478 lt_cv_dlopen_self=no 10479 fi 10480fi 10481rm -fr conftest* 10482 10483 10484fi 10485{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10486$as_echo "$lt_cv_dlopen_self" >&6; } 10487 10488 if test "x$lt_cv_dlopen_self" = xyes; then 10489 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10490 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10491$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10492if test "${lt_cv_dlopen_self_static+set}" = set; then 10493 $as_echo_n "(cached) " >&6 10494else 10495 if test "$cross_compiling" = yes; then : 10496 lt_cv_dlopen_self_static=cross 10497else 10498 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10499 lt_status=$lt_dlunknown 10500 cat > conftest.$ac_ext <<EOF 10501#line 10501 "configure" 10502#include "confdefs.h" 10503 10504#if HAVE_DLFCN_H 10505#include <dlfcn.h> 10506#endif 10507 10508#include <stdio.h> 10509 10510#ifdef RTLD_GLOBAL 10511# define LT_DLGLOBAL RTLD_GLOBAL 10512#else 10513# ifdef DL_GLOBAL 10514# define LT_DLGLOBAL DL_GLOBAL 10515# else 10516# define LT_DLGLOBAL 0 10517# endif 10518#endif 10519 10520/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10521 find out it does not work in some platform. */ 10522#ifndef LT_DLLAZY_OR_NOW 10523# ifdef RTLD_LAZY 10524# define LT_DLLAZY_OR_NOW RTLD_LAZY 10525# else 10526# ifdef DL_LAZY 10527# define LT_DLLAZY_OR_NOW DL_LAZY 10528# else 10529# ifdef RTLD_NOW 10530# define LT_DLLAZY_OR_NOW RTLD_NOW 10531# else 10532# ifdef DL_NOW 10533# define LT_DLLAZY_OR_NOW DL_NOW 10534# else 10535# define LT_DLLAZY_OR_NOW 0 10536# endif 10537# endif 10538# endif 10539# endif 10540#endif 10541 10542#ifdef __cplusplus 10543extern "C" void exit (int); 10544#endif 10545 10546void fnord() { int i=42;} 10547int main () 10548{ 10549 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10550 int status = $lt_dlunknown; 10551 10552 if (self) 10553 { 10554 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10555 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10556 /* dlclose (self); */ 10557 } 10558 else 10559 puts (dlerror ()); 10560 10561 exit (status); 10562} 10563EOF 10564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10565 (eval $ac_link) 2>&5 10566 ac_status=$? 10567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10568 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10569 (./conftest; exit; ) >&5 2>/dev/null 10570 lt_status=$? 10571 case x$lt_status in 10572 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10573 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10574 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10575 esac 10576 else : 10577 # compilation failed 10578 lt_cv_dlopen_self_static=no 10579 fi 10580fi 10581rm -fr conftest* 10582 10583 10584fi 10585{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10586$as_echo "$lt_cv_dlopen_self_static" >&6; } 10587 fi 10588 10589 CPPFLAGS="$save_CPPFLAGS" 10590 LDFLAGS="$save_LDFLAGS" 10591 LIBS="$save_LIBS" 10592 ;; 10593 esac 10594 10595 case $lt_cv_dlopen_self in 10596 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10597 *) enable_dlopen_self=unknown ;; 10598 esac 10599 10600 case $lt_cv_dlopen_self_static in 10601 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10602 *) enable_dlopen_self_static=unknown ;; 10603 esac 10604fi 10605 10606 10607# Report which library types will actually be built 10608{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10609$as_echo_n "checking if libtool supports shared libraries... " >&6; } 10610{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 10611$as_echo "$can_build_shared" >&6; } 10612 10613{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10614$as_echo_n "checking whether to build shared libraries... " >&6; } 10615test "$can_build_shared" = "no" && enable_shared=no 10616 10617# On AIX, shared libraries and static libraries use the same namespace, and 10618# are all built from PIC. 10619case $host_os in 10620aix3*) 10621 test "$enable_shared" = yes && enable_static=no 10622 if test -n "$RANLIB"; then 10623 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10624 postinstall_cmds='$RANLIB $lib' 10625 fi 10626 ;; 10627 10628aix[4-9]*) 10629 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10630 test "$enable_shared" = yes && enable_static=no 10631 fi 10632 ;; 10633esac 10634{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 10635$as_echo "$enable_shared" >&6; } 10636 10637{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10638$as_echo_n "checking whether to build static libraries... " >&6; } 10639# Make sure either enable_shared or enable_static is yes. 10640test "$enable_shared" = yes || enable_static=yes 10641{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5 10642$as_echo "$enable_static" >&6; } 10643 10644# The else clause should only fire when bootstrapping the 10645# libtool distribution, otherwise you forgot to ship ltmain.sh 10646# with your package, and you will get complaints that there are 10647# no rules to generate ltmain.sh. 10648if test -f "$ltmain"; then 10649 # See if we are running on zsh, and set the options which allow our commands through 10650 # without removal of \ escapes. 10651 if test -n "${ZSH_VERSION+set}" ; then 10652 setopt NO_GLOB_SUBST 10653 fi 10654 # Now quote all the things that may contain metacharacters while being 10655 # careful not to overquote the AC_SUBSTed values. We take copies of the 10656 # variables and quote the copies for generation of the libtool script. 10657 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 10658 SED SHELL STRIP \ 10659 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10660 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10661 deplibs_check_method reload_flag reload_cmds need_locks \ 10662 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10663 lt_cv_sys_global_symbol_to_c_name_address \ 10664 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10665 old_postinstall_cmds old_postuninstall_cmds \ 10666 compiler \ 10667 CC \ 10668 LD \ 10669 lt_prog_compiler_wl \ 10670 lt_prog_compiler_pic \ 10671 lt_prog_compiler_static \ 10672 lt_prog_compiler_no_builtin_flag \ 10673 export_dynamic_flag_spec \ 10674 thread_safe_flag_spec \ 10675 whole_archive_flag_spec \ 10676 enable_shared_with_static_runtimes \ 10677 old_archive_cmds \ 10678 old_archive_from_new_cmds \ 10679 predep_objects \ 10680 postdep_objects \ 10681 predeps \ 10682 postdeps \ 10683 compiler_lib_search_path \ 10684 compiler_lib_search_dirs \ 10685 archive_cmds \ 10686 archive_expsym_cmds \ 10687 postinstall_cmds \ 10688 postuninstall_cmds \ 10689 old_archive_from_expsyms_cmds \ 10690 allow_undefined_flag \ 10691 no_undefined_flag \ 10692 export_symbols_cmds \ 10693 hardcode_libdir_flag_spec \ 10694 hardcode_libdir_flag_spec_ld \ 10695 hardcode_libdir_separator \ 10696 hardcode_automatic \ 10697 module_cmds \ 10698 module_expsym_cmds \ 10699 lt_cv_prog_compiler_c_o \ 10700 fix_srcfile_path \ 10701 exclude_expsyms \ 10702 include_expsyms; do 10703 10704 case $var in 10705 old_archive_cmds | \ 10706 old_archive_from_new_cmds | \ 10707 archive_cmds | \ 10708 archive_expsym_cmds | \ 10709 module_cmds | \ 10710 module_expsym_cmds | \ 10711 old_archive_from_expsyms_cmds | \ 10712 export_symbols_cmds | \ 10713 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10714 postinstall_cmds | postuninstall_cmds | \ 10715 old_postinstall_cmds | old_postuninstall_cmds | \ 10716 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10717 # Double-quote double-evaled strings. 10718 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10719 ;; 10720 *) 10721 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10722 ;; 10723 esac 10724 done 10725 10726 case $lt_echo in 10727 *'\$0 --fallback-echo"') 10728 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10729 ;; 10730 esac 10731 10732cfgfile="${ofile}T" 10733 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10734 $rm -f "$cfgfile" 10735 { $as_echo "$as_me:$LINENO: creating $ofile" >&5 10736$as_echo "$as_me: creating $ofile" >&6;} 10737 10738 cat <<__EOF__ >> "$cfgfile" 10739#! $SHELL 10740 10741# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10742# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10743# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10744# 10745# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 10746# Free Software Foundation, Inc. 10747# 10748# This file is part of GNU Libtool: 10749# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10750# 10751# This program is free software; you can redistribute it and/or modify 10752# it under the terms of the GNU General Public License as published by 10753# the Free Software Foundation; either version 2 of the License, or 10754# (at your option) any later version. 10755# 10756# This program is distributed in the hope that it will be useful, but 10757# WITHOUT ANY WARRANTY; without even the implied warranty of 10758# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10759# General Public License for more details. 10760# 10761# You should have received a copy of the GNU General Public License 10762# along with this program; if not, write to the Free Software 10763# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10764# 10765# As a special exception to the GNU General Public License, if you 10766# distribute this file as part of a program that contains a 10767# configuration script generated by Autoconf, you may include it under 10768# the same distribution terms that you use for the rest of that program. 10769 10770# A sed program that does not truncate output. 10771SED=$lt_SED 10772 10773# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10774Xsed="$SED -e 1s/^X//" 10775 10776# The HP-UX ksh and POSIX shell print the target directory to stdout 10777# if CDPATH is set. 10778(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10779 10780# The names of the tagged configurations supported by this script. 10781available_tags= 10782 10783# ### BEGIN LIBTOOL CONFIG 10784 10785# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10786 10787# Shell to use when invoking shell scripts. 10788SHELL=$lt_SHELL 10789 10790# Whether or not to build shared libraries. 10791build_libtool_libs=$enable_shared 10792 10793# Whether or not to build static libraries. 10794build_old_libs=$enable_static 10795 10796# Whether or not to add -lc for building shared libraries. 10797build_libtool_need_lc=$archive_cmds_need_lc 10798 10799# Whether or not to disallow shared libs when runtime libs are static 10800allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10801 10802# Whether or not to optimize for fast installation. 10803fast_install=$enable_fast_install 10804 10805# The host system. 10806host_alias=$host_alias 10807host=$host 10808host_os=$host_os 10809 10810# The build system. 10811build_alias=$build_alias 10812build=$build 10813build_os=$build_os 10814 10815# An echo program that does not interpret backslashes. 10816echo=$lt_echo 10817 10818# The archiver. 10819AR=$lt_AR 10820AR_FLAGS=$lt_AR_FLAGS 10821 10822# A C compiler. 10823LTCC=$lt_LTCC 10824 10825# LTCC compiler flags. 10826LTCFLAGS=$lt_LTCFLAGS 10827 10828# A language-specific compiler. 10829CC=$lt_compiler 10830 10831# Is the compiler the GNU C compiler? 10832with_gcc=$GCC 10833 10834# An ERE matcher. 10835EGREP=$lt_EGREP 10836 10837# The linker used to build libraries. 10838LD=$lt_LD 10839 10840# Whether we need hard or soft links. 10841LN_S=$lt_LN_S 10842 10843# A BSD-compatible nm program. 10844NM=$lt_NM 10845 10846# A symbol stripping program 10847STRIP=$lt_STRIP 10848 10849# Used to examine libraries when file_magic_cmd begins "file" 10850MAGIC_CMD=$MAGIC_CMD 10851 10852# Used on cygwin: DLL creation program. 10853DLLTOOL="$DLLTOOL" 10854 10855# Used on cygwin: object dumper. 10856OBJDUMP="$OBJDUMP" 10857 10858# Used on cygwin: assembler. 10859AS="$AS" 10860 10861# The name of the directory that contains temporary libtool files. 10862objdir=$objdir 10863 10864# How to create reloadable object files. 10865reload_flag=$lt_reload_flag 10866reload_cmds=$lt_reload_cmds 10867 10868# How to pass a linker flag through the compiler. 10869wl=$lt_lt_prog_compiler_wl 10870 10871# Object file suffix (normally "o"). 10872objext="$ac_objext" 10873 10874# Old archive suffix (normally "a"). 10875libext="$libext" 10876 10877# Shared library suffix (normally ".so"). 10878shrext_cmds='$shrext_cmds' 10879 10880# Executable file suffix (normally ""). 10881exeext="$exeext" 10882 10883# Additional compiler flags for building library objects. 10884pic_flag=$lt_lt_prog_compiler_pic 10885pic_mode=$pic_mode 10886 10887# What is the maximum length of a command? 10888max_cmd_len=$lt_cv_sys_max_cmd_len 10889 10890# Does compiler simultaneously support -c and -o options? 10891compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10892 10893# Must we lock files when doing compilation? 10894need_locks=$lt_need_locks 10895 10896# Do we need the lib prefix for modules? 10897need_lib_prefix=$need_lib_prefix 10898 10899# Do we need a version for libraries? 10900need_version=$need_version 10901 10902# Whether dlopen is supported. 10903dlopen_support=$enable_dlopen 10904 10905# Whether dlopen of programs is supported. 10906dlopen_self=$enable_dlopen_self 10907 10908# Whether dlopen of statically linked programs is supported. 10909dlopen_self_static=$enable_dlopen_self_static 10910 10911# Compiler flag to prevent dynamic linking. 10912link_static_flag=$lt_lt_prog_compiler_static 10913 10914# Compiler flag to turn off builtin functions. 10915no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10916 10917# Compiler flag to allow reflexive dlopens. 10918export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10919 10920# Compiler flag to generate shared objects directly from archives. 10921whole_archive_flag_spec=$lt_whole_archive_flag_spec 10922 10923# Compiler flag to generate thread-safe objects. 10924thread_safe_flag_spec=$lt_thread_safe_flag_spec 10925 10926# Library versioning type. 10927version_type=$version_type 10928 10929# Format of library name prefix. 10930libname_spec=$lt_libname_spec 10931 10932# List of archive names. First name is the real one, the rest are links. 10933# The last name is the one that the linker finds with -lNAME. 10934library_names_spec=$lt_library_names_spec 10935 10936# The coded name of the library, if different from the real name. 10937soname_spec=$lt_soname_spec 10938 10939# Commands used to build and install an old-style archive. 10940RANLIB=$lt_RANLIB 10941old_archive_cmds=$lt_old_archive_cmds 10942old_postinstall_cmds=$lt_old_postinstall_cmds 10943old_postuninstall_cmds=$lt_old_postuninstall_cmds 10944 10945# Create an old-style archive from a shared archive. 10946old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10947 10948# Create a temporary old-style archive to link instead of a shared archive. 10949old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10950 10951# Commands used to build and install a shared archive. 10952archive_cmds=$lt_archive_cmds 10953archive_expsym_cmds=$lt_archive_expsym_cmds 10954postinstall_cmds=$lt_postinstall_cmds 10955postuninstall_cmds=$lt_postuninstall_cmds 10956 10957# Commands used to build a loadable module (assumed same as above if empty) 10958module_cmds=$lt_module_cmds 10959module_expsym_cmds=$lt_module_expsym_cmds 10960 10961# Commands to strip libraries. 10962old_striplib=$lt_old_striplib 10963striplib=$lt_striplib 10964 10965# Dependencies to place before the objects being linked to create a 10966# shared library. 10967predep_objects=$lt_predep_objects 10968 10969# Dependencies to place after the objects being linked to create a 10970# shared library. 10971postdep_objects=$lt_postdep_objects 10972 10973# Dependencies to place before the objects being linked to create a 10974# shared library. 10975predeps=$lt_predeps 10976 10977# Dependencies to place after the objects being linked to create a 10978# shared library. 10979postdeps=$lt_postdeps 10980 10981# The directories searched by this compiler when creating a shared 10982# library 10983compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 10984 10985# The library search path used internally by the compiler when linking 10986# a shared library. 10987compiler_lib_search_path=$lt_compiler_lib_search_path 10988 10989# Method to check whether dependent libraries are shared objects. 10990deplibs_check_method=$lt_deplibs_check_method 10991 10992# Command to use when deplibs_check_method == file_magic. 10993file_magic_cmd=$lt_file_magic_cmd 10994 10995# Flag that allows shared libraries with undefined symbols to be built. 10996allow_undefined_flag=$lt_allow_undefined_flag 10997 10998# Flag that forces no undefined symbols. 10999no_undefined_flag=$lt_no_undefined_flag 11000 11001# Commands used to finish a libtool library installation in a directory. 11002finish_cmds=$lt_finish_cmds 11003 11004# Same as above, but a single script fragment to be evaled but not shown. 11005finish_eval=$lt_finish_eval 11006 11007# Take the output of nm and produce a listing of raw symbols and C names. 11008global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 11009 11010# Transform the output of nm in a proper C declaration 11011global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 11012 11013# Transform the output of nm in a C name address pair 11014global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 11015 11016# This is the shared library runtime path variable. 11017runpath_var=$runpath_var 11018 11019# This is the shared library path variable. 11020shlibpath_var=$shlibpath_var 11021 11022# Is shlibpath searched before the hard-coded library search path? 11023shlibpath_overrides_runpath=$shlibpath_overrides_runpath 11024 11025# How to hardcode a shared library path into an executable. 11026hardcode_action=$hardcode_action 11027 11028# Whether we should hardcode library paths into libraries. 11029hardcode_into_libs=$hardcode_into_libs 11030 11031# Flag to hardcode \$libdir into a binary during linking. 11032# This must work even if \$libdir does not exist. 11033hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 11034 11035# If ld is used when linking, flag to hardcode \$libdir into 11036# a binary during linking. This must work even if \$libdir does 11037# not exist. 11038hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 11039 11040# Whether we need a single -rpath flag with a separated argument. 11041hardcode_libdir_separator=$lt_hardcode_libdir_separator 11042 11043# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 11044# resulting binary. 11045hardcode_direct=$hardcode_direct 11046 11047# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 11048# resulting binary. 11049hardcode_minus_L=$hardcode_minus_L 11050 11051# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 11052# the resulting binary. 11053hardcode_shlibpath_var=$hardcode_shlibpath_var 11054 11055# Set to yes if building a shared library automatically hardcodes DIR into the library 11056# and all subsequent libraries and executables linked against it. 11057hardcode_automatic=$hardcode_automatic 11058 11059# Variables whose values should be saved in libtool wrapper scripts and 11060# restored at relink time. 11061variables_saved_for_relink="$variables_saved_for_relink" 11062 11063# Whether libtool must link a program against all its dependency libraries. 11064link_all_deplibs=$link_all_deplibs 11065 11066# Compile-time system search path for libraries 11067sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 11068 11069# Run-time system search path for libraries 11070sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 11071 11072# Fix the shell variable \$srcfile for the compiler. 11073fix_srcfile_path=$lt_fix_srcfile_path 11074 11075# Set to yes if exported symbols are required. 11076always_export_symbols=$always_export_symbols 11077 11078# The commands to list exported symbols. 11079export_symbols_cmds=$lt_export_symbols_cmds 11080 11081# The commands to extract the exported symbol list from a shared archive. 11082extract_expsyms_cmds=$lt_extract_expsyms_cmds 11083 11084# Symbols that should not be listed in the preloaded symbols. 11085exclude_expsyms=$lt_exclude_expsyms 11086 11087# Symbols that must always be exported. 11088include_expsyms=$lt_include_expsyms 11089 11090# ### END LIBTOOL CONFIG 11091 11092__EOF__ 11093 11094 11095 case $host_os in 11096 aix3*) 11097 cat <<\EOF >> "$cfgfile" 11098 11099# AIX sometimes has problems with the GCC collect2 program. For some 11100# reason, if we set the COLLECT_NAMES environment variable, the problems 11101# vanish in a puff of smoke. 11102if test "X${COLLECT_NAMES+set}" != Xset; then 11103 COLLECT_NAMES= 11104 export COLLECT_NAMES 11105fi 11106EOF 11107 ;; 11108 esac 11109 11110 # We use sed instead of cat because bash on DJGPP gets confused if 11111 # if finds mixed CR/LF and LF-only lines. Since sed operates in 11112 # text mode, it properly converts lines to CR/LF. This bash problem 11113 # is reportedly fixed, but why not run on old versions too? 11114 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 11115 11116 mv -f "$cfgfile" "$ofile" || \ 11117 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 11118 chmod +x "$ofile" 11119 11120else 11121 # If there is no Makefile yet, we rely on a make rule to execute 11122 # `config.status --recheck' to rerun these tests and create the 11123 # libtool script then. 11124 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 11125 if test -f "$ltmain_in"; then 11126 test -f Makefile && make "$ltmain" 11127 fi 11128fi 11129 11130 11131ac_ext=c 11132ac_cpp='$CPP $CPPFLAGS' 11133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11135ac_compiler_gnu=$ac_cv_c_compiler_gnu 11136 11137CC="$lt_save_CC" 11138 11139 11140# Check whether --with-tags was given. 11141if test "${with_tags+set}" = set; then 11142 withval=$with_tags; tagnames="$withval" 11143fi 11144 11145 11146if test -f "$ltmain" && test -n "$tagnames"; then 11147 if test ! -f "${ofile}"; then 11148 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 11149$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 11150 fi 11151 11152 if test -z "$LTCC"; then 11153 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 11154 if test -z "$LTCC"; then 11155 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 11156$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 11157 else 11158 { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 11159$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 11160 fi 11161 fi 11162 if test -z "$LTCFLAGS"; then 11163 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 11164 fi 11165 11166 # Extract list of available tagged configurations in $ofile. 11167 # Note that this assumes the entire list is on one line. 11168 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 11169 11170 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 11171 for tagname in $tagnames; do 11172 IFS="$lt_save_ifs" 11173 # Check whether tagname contains only valid characters 11174 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 11175 "") ;; 11176 *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 11177$as_echo "$as_me: error: invalid tag name: $tagname" >&2;} 11178 { (exit 1); exit 1; }; } 11179 ;; 11180 esac 11181 11182 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 11183 then 11184 { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 11185$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 11186 { (exit 1); exit 1; }; } 11187 fi 11188 11189 # Update the list of available tags. 11190 if test -n "$tagname"; then 11191 echo appending configuration tag \"$tagname\" to $ofile 11192 11193 case $tagname in 11194 CXX) 11195 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 11196 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 11197 (test "X$CXX" != "Xg++"))) ; then 11198 ac_ext=cpp 11199ac_cpp='$CXXCPP $CPPFLAGS' 11200ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11201ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11202ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11203 11204 11205 11206 11207archive_cmds_need_lc_CXX=no 11208allow_undefined_flag_CXX= 11209always_export_symbols_CXX=no 11210archive_expsym_cmds_CXX= 11211export_dynamic_flag_spec_CXX= 11212hardcode_direct_CXX=no 11213hardcode_libdir_flag_spec_CXX= 11214hardcode_libdir_flag_spec_ld_CXX= 11215hardcode_libdir_separator_CXX= 11216hardcode_minus_L_CXX=no 11217hardcode_shlibpath_var_CXX=unsupported 11218hardcode_automatic_CXX=no 11219module_cmds_CXX= 11220module_expsym_cmds_CXX= 11221link_all_deplibs_CXX=unknown 11222old_archive_cmds_CXX=$old_archive_cmds 11223no_undefined_flag_CXX= 11224whole_archive_flag_spec_CXX= 11225enable_shared_with_static_runtimes_CXX=no 11226 11227# Dependencies to place before and after the object being linked: 11228predep_objects_CXX= 11229postdep_objects_CXX= 11230predeps_CXX= 11231postdeps_CXX= 11232compiler_lib_search_path_CXX= 11233compiler_lib_search_dirs_CXX= 11234 11235# Source file extension for C++ test sources. 11236ac_ext=cpp 11237 11238# Object file extension for compiled C++ test sources. 11239objext=o 11240objext_CXX=$objext 11241 11242# Code to be used in simple compile tests 11243lt_simple_compile_test_code="int some_variable = 0;" 11244 11245# Code to be used in simple link tests 11246lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 11247 11248# ltmain only uses $CC for tagged configurations so make sure $CC is set. 11249 11250# If no C compiler was specified, use CC. 11251LTCC=${LTCC-"$CC"} 11252 11253# If no C compiler flags were specified, use CFLAGS. 11254LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11255 11256# Allow CC to be a program name with arguments. 11257compiler=$CC 11258 11259 11260# save warnings/boilerplate of simple test code 11261ac_outfile=conftest.$ac_objext 11262echo "$lt_simple_compile_test_code" >conftest.$ac_ext 11263eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11264_lt_compiler_boilerplate=`cat conftest.err` 11265$rm conftest* 11266 11267ac_outfile=conftest.$ac_objext 11268echo "$lt_simple_link_test_code" >conftest.$ac_ext 11269eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11270_lt_linker_boilerplate=`cat conftest.err` 11271$rm -r conftest* 11272 11273 11274# Allow CC to be a program name with arguments. 11275lt_save_CC=$CC 11276lt_save_LD=$LD 11277lt_save_GCC=$GCC 11278GCC=$GXX 11279lt_save_with_gnu_ld=$with_gnu_ld 11280lt_save_path_LD=$lt_cv_path_LD 11281if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11282 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11283else 11284 $as_unset lt_cv_prog_gnu_ld 11285fi 11286if test -n "${lt_cv_path_LDCXX+set}"; then 11287 lt_cv_path_LD=$lt_cv_path_LDCXX 11288else 11289 $as_unset lt_cv_path_LD 11290fi 11291test -z "${LDCXX+set}" || LD=$LDCXX 11292CC=${CXX-"c++"} 11293compiler=$CC 11294compiler_CXX=$CC 11295for cc_temp in $compiler""; do 11296 case $cc_temp in 11297 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11298 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11299 \-*) ;; 11300 *) break;; 11301 esac 11302done 11303cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 11304 11305 11306# We don't want -fno-exception wen compiling C++ code, so set the 11307# no_builtin_flag separately 11308if test "$GXX" = yes; then 11309 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11310else 11311 lt_prog_compiler_no_builtin_flag_CXX= 11312fi 11313 11314if test "$GXX" = yes; then 11315 # Set up default GNU C++ configuration 11316 11317 11318# Check whether --with-gnu-ld was given. 11319if test "${with_gnu_ld+set}" = set; then 11320 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11321else 11322 with_gnu_ld=no 11323fi 11324 11325ac_prog=ld 11326if test "$GCC" = yes; then 11327 # Check if gcc -print-prog-name=ld gives a path. 11328 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 11329$as_echo_n "checking for ld used by $CC... " >&6; } 11330 case $host in 11331 *-*-mingw*) 11332 # gcc leaves a trailing carriage return which upsets mingw 11333 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11334 *) 11335 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11336 esac 11337 case $ac_prog in 11338 # Accept absolute paths. 11339 [\\/]* | ?:[\\/]*) 11340 re_direlt='/[^/][^/]*/\.\./' 11341 # Canonicalize the pathname of ld 11342 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 11343 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 11344 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 11345 done 11346 test -z "$LD" && LD="$ac_prog" 11347 ;; 11348 "") 11349 # If it fails, then pretend we aren't using GCC. 11350 ac_prog=ld 11351 ;; 11352 *) 11353 # If it is relative, then search for the first ld in PATH. 11354 with_gnu_ld=unknown 11355 ;; 11356 esac 11357elif test "$with_gnu_ld" = yes; then 11358 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 11359$as_echo_n "checking for GNU ld... " >&6; } 11360else 11361 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 11362$as_echo_n "checking for non-GNU ld... " >&6; } 11363fi 11364if test "${lt_cv_path_LD+set}" = set; then 11365 $as_echo_n "(cached) " >&6 11366else 11367 if test -z "$LD"; then 11368 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11369 for ac_dir in $PATH; do 11370 IFS="$lt_save_ifs" 11371 test -z "$ac_dir" && ac_dir=. 11372 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11373 lt_cv_path_LD="$ac_dir/$ac_prog" 11374 # Check to see if the program is GNU ld. I'd rather use --version, 11375 # but apparently some variants of GNU ld only accept -v. 11376 # Break only if it was the GNU/non-GNU ld that we prefer. 11377 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11378 *GNU* | *'with BFD'*) 11379 test "$with_gnu_ld" != no && break 11380 ;; 11381 *) 11382 test "$with_gnu_ld" != yes && break 11383 ;; 11384 esac 11385 fi 11386 done 11387 IFS="$lt_save_ifs" 11388else 11389 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11390fi 11391fi 11392 11393LD="$lt_cv_path_LD" 11394if test -n "$LD"; then 11395 { $as_echo "$as_me:$LINENO: result: $LD" >&5 11396$as_echo "$LD" >&6; } 11397else 11398 { $as_echo "$as_me:$LINENO: result: no" >&5 11399$as_echo "no" >&6; } 11400fi 11401test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 11402$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 11403 { (exit 1); exit 1; }; } 11404{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 11405$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11406if test "${lt_cv_prog_gnu_ld+set}" = set; then 11407 $as_echo_n "(cached) " >&6 11408else 11409 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11410case `$LD -v 2>&1 </dev/null` in 11411*GNU* | *'with BFD'*) 11412 lt_cv_prog_gnu_ld=yes 11413 ;; 11414*) 11415 lt_cv_prog_gnu_ld=no 11416 ;; 11417esac 11418fi 11419{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 11420$as_echo "$lt_cv_prog_gnu_ld" >&6; } 11421with_gnu_ld=$lt_cv_prog_gnu_ld 11422 11423 11424 11425 # Check if GNU C++ uses GNU ld as the underlying linker, since the 11426 # archiving commands below assume that GNU ld is being used. 11427 if test "$with_gnu_ld" = yes; then 11428 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11429 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' 11430 11431 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11432 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11433 11434 # If archive_cmds runs LD, not CC, wlarc should be empty 11435 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 11436 # investigate it a little bit more. (MM) 11437 wlarc='${wl}' 11438 11439 # ancient GNU ld didn't support --whole-archive et. al. 11440 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 11441 grep 'no-whole-archive' > /dev/null; then 11442 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11443 else 11444 whole_archive_flag_spec_CXX= 11445 fi 11446 else 11447 with_gnu_ld=no 11448 wlarc= 11449 11450 # A generic and very simple default shared library creation 11451 # command for GNU C++ for the case where it uses the native 11452 # linker, instead of GNU ld. If possible, this setting should 11453 # overridden to take advantage of the native linker features on 11454 # the platform it is being used on. 11455 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11456 fi 11457 11458 # Commands to make compiler produce verbose output that lists 11459 # what "hidden" libraries, object files and flags are used when 11460 # linking a shared library. 11461 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11462 11463else 11464 GXX=no 11465 with_gnu_ld=no 11466 wlarc= 11467fi 11468 11469# PORTME: fill in a description of your system's C++ link characteristics 11470{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11471$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 11472ld_shlibs_CXX=yes 11473case $host_os in 11474 aix3*) 11475 # FIXME: insert proper C++ library support 11476 ld_shlibs_CXX=no 11477 ;; 11478 aix[4-9]*) 11479 if test "$host_cpu" = ia64; then 11480 # On IA64, the linker does run time linking by default, so we don't 11481 # have to do anything special. 11482 aix_use_runtimelinking=no 11483 exp_sym_flag='-Bexport' 11484 no_entry_flag="" 11485 else 11486 aix_use_runtimelinking=no 11487 11488 # Test if we are trying to use run time linking or normal 11489 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11490 # need to do runtime linking. 11491 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11492 for ld_flag in $LDFLAGS; do 11493 case $ld_flag in 11494 *-brtl*) 11495 aix_use_runtimelinking=yes 11496 break 11497 ;; 11498 esac 11499 done 11500 ;; 11501 esac 11502 11503 exp_sym_flag='-bexport' 11504 no_entry_flag='-bnoentry' 11505 fi 11506 11507 # When large executables or shared objects are built, AIX ld can 11508 # have problems creating the table of contents. If linking a library 11509 # or program results in "error TOC overflow" add -mminimal-toc to 11510 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11511 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11512 11513 archive_cmds_CXX='' 11514 hardcode_direct_CXX=yes 11515 hardcode_libdir_separator_CXX=':' 11516 link_all_deplibs_CXX=yes 11517 11518 if test "$GXX" = yes; then 11519 case $host_os in aix4.[012]|aix4.[012].*) 11520 # We only want to do this on AIX 4.2 and lower, the check 11521 # below for broken collect2 doesn't work under 4.3+ 11522 collect2name=`${CC} -print-prog-name=collect2` 11523 if test -f "$collect2name" && \ 11524 strings "$collect2name" | grep resolve_lib_name >/dev/null 11525 then 11526 # We have reworked collect2 11527 : 11528 else 11529 # We have old collect2 11530 hardcode_direct_CXX=unsupported 11531 # It fails to find uninstalled libraries when the uninstalled 11532 # path is not listed in the libpath. Setting hardcode_minus_L 11533 # to unsupported forces relinking 11534 hardcode_minus_L_CXX=yes 11535 hardcode_libdir_flag_spec_CXX='-L$libdir' 11536 hardcode_libdir_separator_CXX= 11537 fi 11538 ;; 11539 esac 11540 shared_flag='-shared' 11541 if test "$aix_use_runtimelinking" = yes; then 11542 shared_flag="$shared_flag "'${wl}-G' 11543 fi 11544 else 11545 # not using gcc 11546 if test "$host_cpu" = ia64; then 11547 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11548 # chokes on -Wl,-G. The following line is correct: 11549 shared_flag='-G' 11550 else 11551 if test "$aix_use_runtimelinking" = yes; then 11552 shared_flag='${wl}-G' 11553 else 11554 shared_flag='${wl}-bM:SRE' 11555 fi 11556 fi 11557 fi 11558 11559 # It seems that -bexpall does not export symbols beginning with 11560 # underscore (_), so it is better to generate a list of symbols to export. 11561 always_export_symbols_CXX=yes 11562 if test "$aix_use_runtimelinking" = yes; then 11563 # Warning - without using the other runtime loading flags (-brtl), 11564 # -berok will link without error, but may produce a broken library. 11565 allow_undefined_flag_CXX='-berok' 11566 # Determine the default libpath from the value encoded in an empty executable. 11567 cat >conftest.$ac_ext <<_ACEOF 11568/* confdefs.h. */ 11569_ACEOF 11570cat confdefs.h >>conftest.$ac_ext 11571cat >>conftest.$ac_ext <<_ACEOF 11572/* end confdefs.h. */ 11573 11574int 11575main () 11576{ 11577 11578 ; 11579 return 0; 11580} 11581_ACEOF 11582rm -f conftest.$ac_objext conftest$ac_exeext 11583if { (ac_try="$ac_link" 11584case "(($ac_try" in 11585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11586 *) ac_try_echo=$ac_try;; 11587esac 11588eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11589$as_echo "$ac_try_echo") >&5 11590 (eval "$ac_link") 2>conftest.er1 11591 ac_status=$? 11592 grep -v '^ *+' conftest.er1 >conftest.err 11593 rm -f conftest.er1 11594 cat conftest.err >&5 11595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11596 (exit $ac_status); } && { 11597 test -z "$ac_cxx_werror_flag" || 11598 test ! -s conftest.err 11599 } && test -s conftest$ac_exeext && { 11600 test "$cross_compiling" = yes || 11601 $as_test_x conftest$ac_exeext 11602 }; then 11603 11604lt_aix_libpath_sed=' 11605 /Import File Strings/,/^$/ { 11606 /^0/ { 11607 s/^0 *\(.*\)$/\1/ 11608 p 11609 } 11610 }' 11611aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11612# Check for a 64-bit object if we didn't find anything. 11613if test -z "$aix_libpath"; then 11614 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11615fi 11616else 11617 $as_echo "$as_me: failed program was:" >&5 11618sed 's/^/| /' conftest.$ac_ext >&5 11619 11620 11621fi 11622 11623rm -rf conftest.dSYM 11624rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11625 conftest$ac_exeext conftest.$ac_ext 11626if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11627 11628 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11629 11630 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" 11631 else 11632 if test "$host_cpu" = ia64; then 11633 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11634 allow_undefined_flag_CXX="-z nodefs" 11635 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" 11636 else 11637 # Determine the default libpath from the value encoded in an empty executable. 11638 cat >conftest.$ac_ext <<_ACEOF 11639/* confdefs.h. */ 11640_ACEOF 11641cat confdefs.h >>conftest.$ac_ext 11642cat >>conftest.$ac_ext <<_ACEOF 11643/* end confdefs.h. */ 11644 11645int 11646main () 11647{ 11648 11649 ; 11650 return 0; 11651} 11652_ACEOF 11653rm -f conftest.$ac_objext conftest$ac_exeext 11654if { (ac_try="$ac_link" 11655case "(($ac_try" in 11656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11657 *) ac_try_echo=$ac_try;; 11658esac 11659eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11660$as_echo "$ac_try_echo") >&5 11661 (eval "$ac_link") 2>conftest.er1 11662 ac_status=$? 11663 grep -v '^ *+' conftest.er1 >conftest.err 11664 rm -f conftest.er1 11665 cat conftest.err >&5 11666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11667 (exit $ac_status); } && { 11668 test -z "$ac_cxx_werror_flag" || 11669 test ! -s conftest.err 11670 } && test -s conftest$ac_exeext && { 11671 test "$cross_compiling" = yes || 11672 $as_test_x conftest$ac_exeext 11673 }; then 11674 11675lt_aix_libpath_sed=' 11676 /Import File Strings/,/^$/ { 11677 /^0/ { 11678 s/^0 *\(.*\)$/\1/ 11679 p 11680 } 11681 }' 11682aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11683# Check for a 64-bit object if we didn't find anything. 11684if test -z "$aix_libpath"; then 11685 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11686fi 11687else 11688 $as_echo "$as_me: failed program was:" >&5 11689sed 's/^/| /' conftest.$ac_ext >&5 11690 11691 11692fi 11693 11694rm -rf conftest.dSYM 11695rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11696 conftest$ac_exeext conftest.$ac_ext 11697if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11698 11699 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11700 # Warning - without using the other run time loading flags, 11701 # -berok will link without error, but may produce a broken library. 11702 no_undefined_flag_CXX=' ${wl}-bernotok' 11703 allow_undefined_flag_CXX=' ${wl}-berok' 11704 # Exported symbols can be pulled into shared objects from archives 11705 whole_archive_flag_spec_CXX='$convenience' 11706 archive_cmds_need_lc_CXX=yes 11707 # This is similar to how AIX traditionally builds its shared libraries. 11708 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' 11709 fi 11710 fi 11711 ;; 11712 11713 beos*) 11714 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11715 allow_undefined_flag_CXX=unsupported 11716 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11717 # support --undefined. This deserves some investigation. FIXME 11718 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11719 else 11720 ld_shlibs_CXX=no 11721 fi 11722 ;; 11723 11724 chorus*) 11725 case $cc_basename in 11726 *) 11727 # FIXME: insert proper C++ library support 11728 ld_shlibs_CXX=no 11729 ;; 11730 esac 11731 ;; 11732 11733 cygwin* | mingw* | pw32*) 11734 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11735 # as there is no search path for DLLs. 11736 hardcode_libdir_flag_spec_CXX='-L$libdir' 11737 allow_undefined_flag_CXX=unsupported 11738 always_export_symbols_CXX=no 11739 enable_shared_with_static_runtimes_CXX=yes 11740 11741 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11742 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' 11743 # If the export-symbols file already is a .def file (1st line 11744 # is EXPORTS), use it as is; otherwise, prepend... 11745 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11746 cp $export_symbols $output_objdir/$soname.def; 11747 else 11748 echo EXPORTS > $output_objdir/$soname.def; 11749 cat $export_symbols >> $output_objdir/$soname.def; 11750 fi~ 11751 $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' 11752 else 11753 ld_shlibs_CXX=no 11754 fi 11755 ;; 11756 darwin* | rhapsody*) 11757 archive_cmds_need_lc_CXX=no 11758 hardcode_direct_CXX=no 11759 hardcode_automatic_CXX=yes 11760 hardcode_shlibpath_var_CXX=unsupported 11761 whole_archive_flag_spec_CXX='' 11762 link_all_deplibs_CXX=yes 11763 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 11764 if test "$GXX" = yes ; then 11765 output_verbose_link_cmd='echo' 11766 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 11767 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 11768 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 11769 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 11770 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 11771 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${_lt_dsymutil}" 11772 archive_expsym_cmds_CXX="sed '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${_lt_dar_export_syms}${_lt_dsymutil}" 11773 fi 11774 else 11775 case $cc_basename in 11776 xlc*) 11777 output_verbose_link_cmd='echo' 11778 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' 11779 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11780 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11781 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}' 11782 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}' 11783 ;; 11784 *) 11785 ld_shlibs_CXX=no 11786 ;; 11787 esac 11788 fi 11789 ;; 11790 11791 dgux*) 11792 case $cc_basename in 11793 ec++*) 11794 # FIXME: insert proper C++ library support 11795 ld_shlibs_CXX=no 11796 ;; 11797 ghcx*) 11798 # Green Hills C++ Compiler 11799 # FIXME: insert proper C++ library support 11800 ld_shlibs_CXX=no 11801 ;; 11802 *) 11803 # FIXME: insert proper C++ library support 11804 ld_shlibs_CXX=no 11805 ;; 11806 esac 11807 ;; 11808 freebsd[12]*) 11809 # C++ shared libraries reported to be fairly broken before switch to ELF 11810 ld_shlibs_CXX=no 11811 ;; 11812 freebsd-elf*) 11813 archive_cmds_need_lc_CXX=no 11814 ;; 11815 freebsd* | dragonfly*) 11816 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11817 # conventions 11818 ld_shlibs_CXX=yes 11819 ;; 11820 gnu*) 11821 ;; 11822 hpux9*) 11823 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11824 hardcode_libdir_separator_CXX=: 11825 export_dynamic_flag_spec_CXX='${wl}-E' 11826 hardcode_direct_CXX=yes 11827 hardcode_minus_L_CXX=yes # Not in the search PATH, 11828 # but as the default 11829 # location of the library. 11830 11831 case $cc_basename in 11832 CC*) 11833 # FIXME: insert proper C++ library support 11834 ld_shlibs_CXX=no 11835 ;; 11836 aCC*) 11837 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' 11838 # Commands to make compiler produce verbose output that lists 11839 # what "hidden" libraries, object files and flags are used when 11840 # linking a shared library. 11841 # 11842 # There doesn't appear to be a way to prevent this compiler from 11843 # explicitly linking system object files so we need to strip them 11844 # from the output so that they don't get included in the library 11845 # dependencies. 11846 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' 11847 ;; 11848 *) 11849 if test "$GXX" = yes; then 11850 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' 11851 else 11852 # FIXME: insert proper C++ library support 11853 ld_shlibs_CXX=no 11854 fi 11855 ;; 11856 esac 11857 ;; 11858 hpux10*|hpux11*) 11859 if test $with_gnu_ld = no; then 11860 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11861 hardcode_libdir_separator_CXX=: 11862 11863 case $host_cpu in 11864 hppa*64*|ia64*) ;; 11865 *) 11866 export_dynamic_flag_spec_CXX='${wl}-E' 11867 ;; 11868 esac 11869 fi 11870 case $host_cpu in 11871 hppa*64*|ia64*) 11872 hardcode_direct_CXX=no 11873 hardcode_shlibpath_var_CXX=no 11874 ;; 11875 *) 11876 hardcode_direct_CXX=yes 11877 hardcode_minus_L_CXX=yes # Not in the search PATH, 11878 # but as the default 11879 # location of the library. 11880 ;; 11881 esac 11882 11883 case $cc_basename in 11884 CC*) 11885 # FIXME: insert proper C++ library support 11886 ld_shlibs_CXX=no 11887 ;; 11888 aCC*) 11889 case $host_cpu in 11890 hppa*64*) 11891 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11892 ;; 11893 ia64*) 11894 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11895 ;; 11896 *) 11897 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11898 ;; 11899 esac 11900 # Commands to make compiler produce verbose output that lists 11901 # what "hidden" libraries, object files and flags are used when 11902 # linking a shared library. 11903 # 11904 # There doesn't appear to be a way to prevent this compiler from 11905 # explicitly linking system object files so we need to strip them 11906 # from the output so that they don't get included in the library 11907 # dependencies. 11908 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' 11909 ;; 11910 *) 11911 if test "$GXX" = yes; then 11912 if test $with_gnu_ld = no; then 11913 case $host_cpu in 11914 hppa*64*) 11915 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11916 ;; 11917 ia64*) 11918 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11919 ;; 11920 *) 11921 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' 11922 ;; 11923 esac 11924 fi 11925 else 11926 # FIXME: insert proper C++ library support 11927 ld_shlibs_CXX=no 11928 fi 11929 ;; 11930 esac 11931 ;; 11932 interix[3-9]*) 11933 hardcode_direct_CXX=no 11934 hardcode_shlibpath_var_CXX=no 11935 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11936 export_dynamic_flag_spec_CXX='${wl}-E' 11937 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11938 # Instead, shared libraries are loaded at an image base (0x10000000 by 11939 # default) and relocated if they conflict, which is a slow very memory 11940 # consuming and fragmenting process. To avoid this, we pick a random, 11941 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11942 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11943 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' 11944 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' 11945 ;; 11946 irix5* | irix6*) 11947 case $cc_basename in 11948 CC*) 11949 # SGI C++ 11950 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' 11951 11952 # Archives containing C++ object files must be created using 11953 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11954 # necessary to make sure instantiated templates are included 11955 # in the archive. 11956 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11957 ;; 11958 *) 11959 if test "$GXX" = yes; then 11960 if test "$with_gnu_ld" = no; then 11961 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' 11962 else 11963 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' 11964 fi 11965 fi 11966 link_all_deplibs_CXX=yes 11967 ;; 11968 esac 11969 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11970 hardcode_libdir_separator_CXX=: 11971 ;; 11972 linux* | k*bsd*-gnu) 11973 case $cc_basename in 11974 KCC*) 11975 # Kuck and Associates, Inc. (KAI) C++ Compiler 11976 11977 # KCC will only create a shared library if the output file 11978 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11979 # to its proper name (with version) after linking. 11980 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' 11981 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' 11982 # Commands to make compiler produce verbose output that lists 11983 # what "hidden" libraries, object files and flags are used when 11984 # linking a shared library. 11985 # 11986 # There doesn't appear to be a way to prevent this compiler from 11987 # explicitly linking system object files so we need to strip them 11988 # from the output so that they don't get included in the library 11989 # dependencies. 11990 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' 11991 11992 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 11993 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11994 11995 # Archives containing C++ object files must be created using 11996 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11997 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11998 ;; 11999 icpc*) 12000 # Intel C++ 12001 with_gnu_ld=yes 12002 # version 8.0 and above of icpc choke on multiply defined symbols 12003 # if we add $predep_objects and $postdep_objects, however 7.1 and 12004 # earlier do not add the objects themselves. 12005 case `$CC -V 2>&1` in 12006 *"Version 7."*) 12007 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12008 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' 12009 ;; 12010 *) # Version 8.0 or newer 12011 tmp_idyn= 12012 case $host_cpu in 12013 ia64*) tmp_idyn=' -i_dynamic';; 12014 esac 12015 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12016 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' 12017 ;; 12018 esac 12019 archive_cmds_need_lc_CXX=no 12020 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12021 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12022 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12023 ;; 12024 pgCC* | pgcpp*) 12025 # Portland Group C++ compiler 12026 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12027 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' 12028 12029 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 12030 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12031 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' 12032 ;; 12033 cxx*) 12034 # Compaq C++ 12035 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12036 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' 12037 12038 runpath_var=LD_RUN_PATH 12039 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12040 hardcode_libdir_separator_CXX=: 12041 12042 # Commands to make compiler produce verbose output that lists 12043 # what "hidden" libraries, object files and flags are used when 12044 # linking a shared library. 12045 # 12046 # There doesn't appear to be a way to prevent this compiler from 12047 # explicitly linking system object files so we need to strip them 12048 # from the output so that they don't get included in the library 12049 # dependencies. 12050 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' 12051 ;; 12052 *) 12053 case `$CC -V 2>&1 | sed 5q` in 12054 *Sun\ C*) 12055 # Sun C++ 5.9 12056 no_undefined_flag_CXX=' -zdefs' 12057 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12058 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' 12059 hardcode_libdir_flag_spec_CXX='-R$libdir' 12060 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' 12061 12062 # Not sure whether something based on 12063 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 12064 # would be better. 12065 output_verbose_link_cmd='echo' 12066 12067 # Archives containing C++ object files must be created using 12068 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12069 # necessary to make sure instantiated templates are included 12070 # in the archive. 12071 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12072 ;; 12073 esac 12074 ;; 12075 esac 12076 ;; 12077 lynxos*) 12078 # FIXME: insert proper C++ library support 12079 ld_shlibs_CXX=no 12080 ;; 12081 m88k*) 12082 # FIXME: insert proper C++ library support 12083 ld_shlibs_CXX=no 12084 ;; 12085 mvs*) 12086 case $cc_basename in 12087 cxx*) 12088 # FIXME: insert proper C++ library support 12089 ld_shlibs_CXX=no 12090 ;; 12091 *) 12092 # FIXME: insert proper C++ library support 12093 ld_shlibs_CXX=no 12094 ;; 12095 esac 12096 ;; 12097 netbsd*) 12098 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12099 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 12100 wlarc= 12101 hardcode_libdir_flag_spec_CXX='-R$libdir' 12102 hardcode_direct_CXX=yes 12103 hardcode_shlibpath_var_CXX=no 12104 fi 12105 # Workaround some broken pre-1.5 toolchains 12106 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 12107 ;; 12108 openbsd2*) 12109 # C++ shared libraries are fairly broken 12110 ld_shlibs_CXX=no 12111 ;; 12112 openbsd*) 12113 if test -f /usr/libexec/ld.so; then 12114 hardcode_direct_CXX=yes 12115 hardcode_shlibpath_var_CXX=no 12116 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12117 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12118 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12119 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 12120 export_dynamic_flag_spec_CXX='${wl}-E' 12121 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12122 fi 12123 output_verbose_link_cmd='echo' 12124 else 12125 ld_shlibs_CXX=no 12126 fi 12127 ;; 12128 osf3*) 12129 case $cc_basename in 12130 KCC*) 12131 # Kuck and Associates, Inc. (KAI) C++ Compiler 12132 12133 # KCC will only create a shared library if the output file 12134 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12135 # to its proper name (with version) after linking. 12136 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' 12137 12138 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12139 hardcode_libdir_separator_CXX=: 12140 12141 # Archives containing C++ object files must be created using 12142 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12143 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12144 12145 ;; 12146 RCC*) 12147 # Rational C++ 2.4.1 12148 # FIXME: insert proper C++ library support 12149 ld_shlibs_CXX=no 12150 ;; 12151 cxx*) 12152 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12153 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' 12154 12155 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12156 hardcode_libdir_separator_CXX=: 12157 12158 # Commands to make compiler produce verbose output that lists 12159 # what "hidden" libraries, object files and flags are used when 12160 # linking a shared library. 12161 # 12162 # There doesn't appear to be a way to prevent this compiler from 12163 # explicitly linking system object files so we need to strip them 12164 # from the output so that they don't get included in the library 12165 # dependencies. 12166 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' 12167 ;; 12168 *) 12169 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12170 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12171 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' 12172 12173 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12174 hardcode_libdir_separator_CXX=: 12175 12176 # Commands to make compiler produce verbose output that lists 12177 # what "hidden" libraries, object files and flags are used when 12178 # linking a shared library. 12179 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12180 12181 else 12182 # FIXME: insert proper C++ library support 12183 ld_shlibs_CXX=no 12184 fi 12185 ;; 12186 esac 12187 ;; 12188 osf4* | osf5*) 12189 case $cc_basename in 12190 KCC*) 12191 # Kuck and Associates, Inc. (KAI) C++ Compiler 12192 12193 # KCC will only create a shared library if the output file 12194 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12195 # to its proper name (with version) after linking. 12196 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' 12197 12198 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12199 hardcode_libdir_separator_CXX=: 12200 12201 # Archives containing C++ object files must be created using 12202 # the KAI C++ compiler. 12203 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 12204 ;; 12205 RCC*) 12206 # Rational C++ 2.4.1 12207 # FIXME: insert proper C++ library support 12208 ld_shlibs_CXX=no 12209 ;; 12210 cxx*) 12211 allow_undefined_flag_CXX=' -expect_unresolved \*' 12212 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' 12213 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12214 echo "-hidden">> $lib.exp~ 12215 $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~ 12216 $rm $lib.exp' 12217 12218 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12219 hardcode_libdir_separator_CXX=: 12220 12221 # Commands to make compiler produce verbose output that lists 12222 # what "hidden" libraries, object files and flags are used when 12223 # linking a shared library. 12224 # 12225 # There doesn't appear to be a way to prevent this compiler from 12226 # explicitly linking system object files so we need to strip them 12227 # from the output so that they don't get included in the library 12228 # dependencies. 12229 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' 12230 ;; 12231 *) 12232 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12233 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12234 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' 12235 12236 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12237 hardcode_libdir_separator_CXX=: 12238 12239 # Commands to make compiler produce verbose output that lists 12240 # what "hidden" libraries, object files and flags are used when 12241 # linking a shared library. 12242 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12243 12244 else 12245 # FIXME: insert proper C++ library support 12246 ld_shlibs_CXX=no 12247 fi 12248 ;; 12249 esac 12250 ;; 12251 psos*) 12252 # FIXME: insert proper C++ library support 12253 ld_shlibs_CXX=no 12254 ;; 12255 sunos4*) 12256 case $cc_basename in 12257 CC*) 12258 # Sun C++ 4.x 12259 # FIXME: insert proper C++ library support 12260 ld_shlibs_CXX=no 12261 ;; 12262 lcc*) 12263 # Lucid 12264 # FIXME: insert proper C++ library support 12265 ld_shlibs_CXX=no 12266 ;; 12267 *) 12268 # FIXME: insert proper C++ library support 12269 ld_shlibs_CXX=no 12270 ;; 12271 esac 12272 ;; 12273 solaris*) 12274 case $cc_basename in 12275 CC*) 12276 # Sun C++ 4.2, 5.x and Centerline C++ 12277 archive_cmds_need_lc_CXX=yes 12278 no_undefined_flag_CXX=' -zdefs' 12279 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12280 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12281 $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' 12282 12283 hardcode_libdir_flag_spec_CXX='-R$libdir' 12284 hardcode_shlibpath_var_CXX=no 12285 case $host_os in 12286 solaris2.[0-5] | solaris2.[0-5].*) ;; 12287 *) 12288 # The compiler driver will combine and reorder linker options, 12289 # but understands `-z linker_flag'. 12290 # Supported since Solaris 2.6 (maybe 2.5.1?) 12291 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 12292 ;; 12293 esac 12294 link_all_deplibs_CXX=yes 12295 12296 output_verbose_link_cmd='echo' 12297 12298 # Archives containing C++ object files must be created using 12299 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12300 # necessary to make sure instantiated templates are included 12301 # in the archive. 12302 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12303 ;; 12304 gcx*) 12305 # Green Hills C++ Compiler 12306 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12307 12308 # The C++ compiler must be used to create the archive. 12309 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12310 ;; 12311 *) 12312 # GNU C++ compiler with Solaris linker 12313 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12314 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12315 if $CC --version | grep -v '^2\.7' > /dev/null; then 12316 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12317 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12318 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12319 12320 # Commands to make compiler produce verbose output that lists 12321 # what "hidden" libraries, object files and flags are used when 12322 # linking a shared library. 12323 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12324 else 12325 # g++ 2.7 appears to require `-G' NOT `-shared' on this 12326 # platform. 12327 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12328 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12329 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12330 12331 # Commands to make compiler produce verbose output that lists 12332 # what "hidden" libraries, object files and flags are used when 12333 # linking a shared library. 12334 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12335 fi 12336 12337 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12338 case $host_os in 12339 solaris2.[0-5] | solaris2.[0-5].*) ;; 12340 *) 12341 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 12342 ;; 12343 esac 12344 fi 12345 ;; 12346 esac 12347 ;; 12348 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12349 no_undefined_flag_CXX='${wl}-z,text' 12350 archive_cmds_need_lc_CXX=no 12351 hardcode_shlibpath_var_CXX=no 12352 runpath_var='LD_RUN_PATH' 12353 12354 case $cc_basename in 12355 CC*) 12356 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12357 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12358 ;; 12359 *) 12360 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12361 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12362 ;; 12363 esac 12364 ;; 12365 sysv5* | sco3.2v5* | sco5v6*) 12366 # Note: We can NOT use -z defs as we might desire, because we do not 12367 # link with -lc, and that would cause any symbols used from libc to 12368 # always be unresolved, which means just about no library would 12369 # ever link correctly. If we're not using GNU ld we use -z text 12370 # though, which does catch some bad symbols but isn't as heavy-handed 12371 # as -z defs. 12372 # For security reasons, it is highly recommended that you always 12373 # use absolute paths for naming shared libraries, and exclude the 12374 # DT_RUNPATH tag from executables and libraries. But doing so 12375 # requires that you compile everything twice, which is a pain. 12376 # So that behaviour is only enabled if SCOABSPATH is set to a 12377 # non-empty value in the environment. Most likely only useful for 12378 # creating official distributions of packages. 12379 # This is a hack until libtool officially supports absolute path 12380 # names for shared libraries. 12381 no_undefined_flag_CXX='${wl}-z,text' 12382 allow_undefined_flag_CXX='${wl}-z,nodefs' 12383 archive_cmds_need_lc_CXX=no 12384 hardcode_shlibpath_var_CXX=no 12385 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 12386 hardcode_libdir_separator_CXX=':' 12387 link_all_deplibs_CXX=yes 12388 export_dynamic_flag_spec_CXX='${wl}-Bexport' 12389 runpath_var='LD_RUN_PATH' 12390 12391 case $cc_basename in 12392 CC*) 12393 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12394 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12395 ;; 12396 *) 12397 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12398 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12399 ;; 12400 esac 12401 ;; 12402 tandem*) 12403 case $cc_basename in 12404 NCC*) 12405 # NonStop-UX NCC 3.20 12406 # FIXME: insert proper C++ library support 12407 ld_shlibs_CXX=no 12408 ;; 12409 *) 12410 # FIXME: insert proper C++ library support 12411 ld_shlibs_CXX=no 12412 ;; 12413 esac 12414 ;; 12415 vxworks*) 12416 # FIXME: insert proper C++ library support 12417 ld_shlibs_CXX=no 12418 ;; 12419 *) 12420 # FIXME: insert proper C++ library support 12421 ld_shlibs_CXX=no 12422 ;; 12423esac 12424{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12425$as_echo "$ld_shlibs_CXX" >&6; } 12426test "$ld_shlibs_CXX" = no && can_build_shared=no 12427 12428GCC_CXX="$GXX" 12429LD_CXX="$LD" 12430 12431cat > conftest.$ac_ext <<EOF 12432class Foo 12433{ 12434public: 12435 Foo (void) { a = 0; } 12436private: 12437 int a; 12438}; 12439EOF 12440 12441if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12442 (eval $ac_compile) 2>&5 12443 ac_status=$? 12444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12445 (exit $ac_status); }; then 12446 # Parse the compiler output and extract the necessary 12447 # objects, libraries and library flags. 12448 12449 # Sentinel used to keep track of whether or not we are before 12450 # the conftest object file. 12451 pre_test_object_deps_done=no 12452 12453 # The `*' in the case matches for architectures that use `case' in 12454 # $output_verbose_cmd can trigger glob expansion during the loop 12455 # eval without this substitution. 12456 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 12457 12458 for p in `eval $output_verbose_link_cmd`; do 12459 case $p in 12460 12461 -L* | -R* | -l*) 12462 # Some compilers place space between "-{L,R}" and the path. 12463 # Remove the space. 12464 if test $p = "-L" \ 12465 || test $p = "-R"; then 12466 prev=$p 12467 continue 12468 else 12469 prev= 12470 fi 12471 12472 if test "$pre_test_object_deps_done" = no; then 12473 case $p in 12474 -L* | -R*) 12475 # Internal compiler library paths should come after those 12476 # provided the user. The postdeps already come after the 12477 # user supplied libs so there is no need to process them. 12478 if test -z "$compiler_lib_search_path_CXX"; then 12479 compiler_lib_search_path_CXX="${prev}${p}" 12480 else 12481 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 12482 fi 12483 ;; 12484 # The "-l" case would never come before the object being 12485 # linked, so don't bother handling this case. 12486 esac 12487 else 12488 if test -z "$postdeps_CXX"; then 12489 postdeps_CXX="${prev}${p}" 12490 else 12491 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 12492 fi 12493 fi 12494 ;; 12495 12496 *.$objext) 12497 # This assumes that the test object file only shows up 12498 # once in the compiler output. 12499 if test "$p" = "conftest.$objext"; then 12500 pre_test_object_deps_done=yes 12501 continue 12502 fi 12503 12504 if test "$pre_test_object_deps_done" = no; then 12505 if test -z "$predep_objects_CXX"; then 12506 predep_objects_CXX="$p" 12507 else 12508 predep_objects_CXX="$predep_objects_CXX $p" 12509 fi 12510 else 12511 if test -z "$postdep_objects_CXX"; then 12512 postdep_objects_CXX="$p" 12513 else 12514 postdep_objects_CXX="$postdep_objects_CXX $p" 12515 fi 12516 fi 12517 ;; 12518 12519 *) ;; # Ignore the rest. 12520 12521 esac 12522 done 12523 12524 # Clean up. 12525 rm -f a.out a.exe 12526else 12527 echo "libtool.m4: error: problem compiling CXX test program" 12528fi 12529 12530$rm -f confest.$objext 12531 12532compiler_lib_search_dirs_CXX= 12533if test -n "$compiler_lib_search_path_CXX"; then 12534 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 12535fi 12536 12537# PORTME: override above test on systems where it is broken 12538case $host_os in 12539interix[3-9]*) 12540 # Interix 3.5 installs completely hosed .la files for C++, so rather than 12541 # hack all around it, let's just trust "g++" to DTRT. 12542 predep_objects_CXX= 12543 postdep_objects_CXX= 12544 postdeps_CXX= 12545 ;; 12546 12547linux*) 12548 case `$CC -V 2>&1 | sed 5q` in 12549 *Sun\ C*) 12550 # Sun C++ 5.9 12551 # 12552 # The more standards-conforming stlport4 library is 12553 # incompatible with the Cstd library. Avoid specifying 12554 # it if it's in CXXFLAGS. Ignore libCrun as 12555 # -library=stlport4 depends on it. 12556 case " $CXX $CXXFLAGS " in 12557 *" -library=stlport4 "*) 12558 solaris_use_stlport4=yes 12559 ;; 12560 esac 12561 if test "$solaris_use_stlport4" != yes; then 12562 postdeps_CXX='-library=Cstd -library=Crun' 12563 fi 12564 ;; 12565 esac 12566 ;; 12567 12568solaris*) 12569 case $cc_basename in 12570 CC*) 12571 # The more standards-conforming stlport4 library is 12572 # incompatible with the Cstd library. Avoid specifying 12573 # it if it's in CXXFLAGS. Ignore libCrun as 12574 # -library=stlport4 depends on it. 12575 case " $CXX $CXXFLAGS " in 12576 *" -library=stlport4 "*) 12577 solaris_use_stlport4=yes 12578 ;; 12579 esac 12580 12581 # Adding this requires a known-good setup of shared libraries for 12582 # Sun compiler versions before 5.6, else PIC objects from an old 12583 # archive will be linked into the output, leading to subtle bugs. 12584 if test "$solaris_use_stlport4" != yes; then 12585 postdeps_CXX='-library=Cstd -library=Crun' 12586 fi 12587 ;; 12588 esac 12589 ;; 12590esac 12591 12592case " $postdeps_CXX " in 12593*" -lc "*) archive_cmds_need_lc_CXX=no ;; 12594esac 12595 12596lt_prog_compiler_wl_CXX= 12597lt_prog_compiler_pic_CXX= 12598lt_prog_compiler_static_CXX= 12599 12600{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12601$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 12602 12603 # C++ specific cases for pic, static, wl, etc. 12604 if test "$GXX" = yes; then 12605 lt_prog_compiler_wl_CXX='-Wl,' 12606 lt_prog_compiler_static_CXX='-static' 12607 12608 case $host_os in 12609 aix*) 12610 # All AIX code is PIC. 12611 if test "$host_cpu" = ia64; then 12612 # AIX 5 now supports IA64 processor 12613 lt_prog_compiler_static_CXX='-Bstatic' 12614 fi 12615 ;; 12616 amigaos*) 12617 # FIXME: we need at least 68020 code to build shared libraries, but 12618 # adding the `-m68020' flag to GCC prevents building anything better, 12619 # like `-m68040'. 12620 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12621 ;; 12622 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12623 # PIC is the default for these OSes. 12624 ;; 12625 mingw* | cygwin* | os2* | pw32*) 12626 # This hack is so that the source file can tell whether it is being 12627 # built for inclusion in a dll (and should export symbols for example). 12628 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12629 # (--disable-auto-import) libraries 12630 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 12631 ;; 12632 darwin* | rhapsody*) 12633 # PIC is the default on this platform 12634 # Common symbols not allowed in MH_DYLIB files 12635 lt_prog_compiler_pic_CXX='-fno-common' 12636 ;; 12637 *djgpp*) 12638 # DJGPP does not support shared libraries at all 12639 lt_prog_compiler_pic_CXX= 12640 ;; 12641 interix[3-9]*) 12642 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12643 # Instead, we relocate shared libraries at runtime. 12644 ;; 12645 sysv4*MP*) 12646 if test -d /usr/nec; then 12647 lt_prog_compiler_pic_CXX=-Kconform_pic 12648 fi 12649 ;; 12650 hpux*) 12651 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12652 # not for PA HP-UX. 12653 case $host_cpu in 12654 hppa*64*|ia64*) 12655 ;; 12656 *) 12657 lt_prog_compiler_pic_CXX='-fPIC' 12658 ;; 12659 esac 12660 ;; 12661 *) 12662 lt_prog_compiler_pic_CXX='-fPIC' 12663 ;; 12664 esac 12665 else 12666 case $host_os in 12667 aix[4-9]*) 12668 # All AIX code is PIC. 12669 if test "$host_cpu" = ia64; then 12670 # AIX 5 now supports IA64 processor 12671 lt_prog_compiler_static_CXX='-Bstatic' 12672 else 12673 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12674 fi 12675 ;; 12676 chorus*) 12677 case $cc_basename in 12678 cxch68*) 12679 # Green Hills C++ Compiler 12680 # _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" 12681 ;; 12682 esac 12683 ;; 12684 darwin*) 12685 # PIC is the default on this platform 12686 # Common symbols not allowed in MH_DYLIB files 12687 case $cc_basename in 12688 xlc*) 12689 lt_prog_compiler_pic_CXX='-qnocommon' 12690 lt_prog_compiler_wl_CXX='-Wl,' 12691 ;; 12692 esac 12693 ;; 12694 dgux*) 12695 case $cc_basename in 12696 ec++*) 12697 lt_prog_compiler_pic_CXX='-KPIC' 12698 ;; 12699 ghcx*) 12700 # Green Hills C++ Compiler 12701 lt_prog_compiler_pic_CXX='-pic' 12702 ;; 12703 *) 12704 ;; 12705 esac 12706 ;; 12707 freebsd* | dragonfly*) 12708 # FreeBSD uses GNU C++ 12709 ;; 12710 hpux9* | hpux10* | hpux11*) 12711 case $cc_basename in 12712 CC*) 12713 lt_prog_compiler_wl_CXX='-Wl,' 12714 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12715 if test "$host_cpu" != ia64; then 12716 lt_prog_compiler_pic_CXX='+Z' 12717 fi 12718 ;; 12719 aCC*) 12720 lt_prog_compiler_wl_CXX='-Wl,' 12721 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12722 case $host_cpu in 12723 hppa*64*|ia64*) 12724 # +Z the default 12725 ;; 12726 *) 12727 lt_prog_compiler_pic_CXX='+Z' 12728 ;; 12729 esac 12730 ;; 12731 *) 12732 ;; 12733 esac 12734 ;; 12735 interix*) 12736 # This is c89, which is MS Visual C++ (no shared libs) 12737 # Anyone wants to do a port? 12738 ;; 12739 irix5* | irix6* | nonstopux*) 12740 case $cc_basename in 12741 CC*) 12742 lt_prog_compiler_wl_CXX='-Wl,' 12743 lt_prog_compiler_static_CXX='-non_shared' 12744 # CC pic flag -KPIC is the default. 12745 ;; 12746 *) 12747 ;; 12748 esac 12749 ;; 12750 linux* | k*bsd*-gnu) 12751 case $cc_basename in 12752 KCC*) 12753 # KAI C++ Compiler 12754 lt_prog_compiler_wl_CXX='--backend -Wl,' 12755 lt_prog_compiler_pic_CXX='-fPIC' 12756 ;; 12757 icpc* | ecpc*) 12758 # Intel C++ 12759 lt_prog_compiler_wl_CXX='-Wl,' 12760 lt_prog_compiler_pic_CXX='-KPIC' 12761 lt_prog_compiler_static_CXX='-static' 12762 ;; 12763 pgCC* | pgcpp*) 12764 # Portland Group C++ compiler. 12765 lt_prog_compiler_wl_CXX='-Wl,' 12766 lt_prog_compiler_pic_CXX='-fpic' 12767 lt_prog_compiler_static_CXX='-Bstatic' 12768 ;; 12769 cxx*) 12770 # Compaq C++ 12771 # Make sure the PIC flag is empty. It appears that all Alpha 12772 # Linux and Compaq Tru64 Unix objects are PIC. 12773 lt_prog_compiler_pic_CXX= 12774 lt_prog_compiler_static_CXX='-non_shared' 12775 ;; 12776 *) 12777 case `$CC -V 2>&1 | sed 5q` in 12778 *Sun\ C*) 12779 # Sun C++ 5.9 12780 lt_prog_compiler_pic_CXX='-KPIC' 12781 lt_prog_compiler_static_CXX='-Bstatic' 12782 lt_prog_compiler_wl_CXX='-Qoption ld ' 12783 ;; 12784 esac 12785 ;; 12786 esac 12787 ;; 12788 lynxos*) 12789 ;; 12790 m88k*) 12791 ;; 12792 mvs*) 12793 case $cc_basename in 12794 cxx*) 12795 lt_prog_compiler_pic_CXX='-W c,exportall' 12796 ;; 12797 *) 12798 ;; 12799 esac 12800 ;; 12801 netbsd*) 12802 ;; 12803 osf3* | osf4* | osf5*) 12804 case $cc_basename in 12805 KCC*) 12806 lt_prog_compiler_wl_CXX='--backend -Wl,' 12807 ;; 12808 RCC*) 12809 # Rational C++ 2.4.1 12810 lt_prog_compiler_pic_CXX='-pic' 12811 ;; 12812 cxx*) 12813 # Digital/Compaq C++ 12814 lt_prog_compiler_wl_CXX='-Wl,' 12815 # Make sure the PIC flag is empty. It appears that all Alpha 12816 # Linux and Compaq Tru64 Unix objects are PIC. 12817 lt_prog_compiler_pic_CXX= 12818 lt_prog_compiler_static_CXX='-non_shared' 12819 ;; 12820 *) 12821 ;; 12822 esac 12823 ;; 12824 psos*) 12825 ;; 12826 solaris*) 12827 case $cc_basename in 12828 CC*) 12829 # Sun C++ 4.2, 5.x and Centerline C++ 12830 lt_prog_compiler_pic_CXX='-KPIC' 12831 lt_prog_compiler_static_CXX='-Bstatic' 12832 lt_prog_compiler_wl_CXX='-Qoption ld ' 12833 ;; 12834 gcx*) 12835 # Green Hills C++ Compiler 12836 lt_prog_compiler_pic_CXX='-PIC' 12837 ;; 12838 *) 12839 ;; 12840 esac 12841 ;; 12842 sunos4*) 12843 case $cc_basename in 12844 CC*) 12845 # Sun C++ 4.x 12846 lt_prog_compiler_pic_CXX='-pic' 12847 lt_prog_compiler_static_CXX='-Bstatic' 12848 ;; 12849 lcc*) 12850 # Lucid 12851 lt_prog_compiler_pic_CXX='-pic' 12852 ;; 12853 *) 12854 ;; 12855 esac 12856 ;; 12857 tandem*) 12858 case $cc_basename in 12859 NCC*) 12860 # NonStop-UX NCC 3.20 12861 lt_prog_compiler_pic_CXX='-KPIC' 12862 ;; 12863 *) 12864 ;; 12865 esac 12866 ;; 12867 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12868 case $cc_basename in 12869 CC*) 12870 lt_prog_compiler_wl_CXX='-Wl,' 12871 lt_prog_compiler_pic_CXX='-KPIC' 12872 lt_prog_compiler_static_CXX='-Bstatic' 12873 ;; 12874 esac 12875 ;; 12876 vxworks*) 12877 ;; 12878 *) 12879 lt_prog_compiler_can_build_shared_CXX=no 12880 ;; 12881 esac 12882 fi 12883 12884{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12885$as_echo "$lt_prog_compiler_pic_CXX" >&6; } 12886 12887# 12888# Check to make sure the PIC flag actually works. 12889# 12890if test -n "$lt_prog_compiler_pic_CXX"; then 12891 12892{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12893$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 12894if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then 12895 $as_echo_n "(cached) " >&6 12896else 12897 lt_cv_prog_compiler_pic_works_CXX=no 12898 ac_outfile=conftest.$ac_objext 12899 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12900 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12901 # Insert the option either (1) after the last *FLAGS variable, or 12902 # (2) before a word containing "conftest.", or (3) at the end. 12903 # Note that $ac_compile itself does not contain backslashes and begins 12904 # with a dollar sign (not a hyphen), so the echo should work correctly. 12905 # The option is referenced via a variable to avoid confusing sed. 12906 lt_compile=`echo "$ac_compile" | $SED \ 12907 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12908 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12909 -e 's:$: $lt_compiler_flag:'` 12910 (eval echo "\"\$as_me:12910: $lt_compile\"" >&5) 12911 (eval "$lt_compile" 2>conftest.err) 12912 ac_status=$? 12913 cat conftest.err >&5 12914 echo "$as_me:12914: \$? = $ac_status" >&5 12915 if (exit $ac_status) && test -s "$ac_outfile"; then 12916 # The compiler can only warn and ignore the option if not recognized 12917 # So say no if there are warnings other than the usual output. 12918 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12919 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12920 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12921 lt_cv_prog_compiler_pic_works_CXX=yes 12922 fi 12923 fi 12924 $rm conftest* 12925 12926fi 12927{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 12928$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 12929 12930if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 12931 case $lt_prog_compiler_pic_CXX in 12932 "" | " "*) ;; 12933 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12934 esac 12935else 12936 lt_prog_compiler_pic_CXX= 12937 lt_prog_compiler_can_build_shared_CXX=no 12938fi 12939 12940fi 12941case $host_os in 12942 # For platforms which do not support PIC, -DPIC is meaningless: 12943 *djgpp*) 12944 lt_prog_compiler_pic_CXX= 12945 ;; 12946 *) 12947 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12948 ;; 12949esac 12950 12951# 12952# Check to make sure the static flag actually works. 12953# 12954wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 12955{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12956$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 12957if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then 12958 $as_echo_n "(cached) " >&6 12959else 12960 lt_cv_prog_compiler_static_works_CXX=no 12961 save_LDFLAGS="$LDFLAGS" 12962 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12963 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12964 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12965 # The linker can only warn and ignore the option if not recognized 12966 # So say no if there are warnings 12967 if test -s conftest.err; then 12968 # Append any errors to the config.log. 12969 cat conftest.err 1>&5 12970 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 12971 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12972 if diff conftest.exp conftest.er2 >/dev/null; then 12973 lt_cv_prog_compiler_static_works_CXX=yes 12974 fi 12975 else 12976 lt_cv_prog_compiler_static_works_CXX=yes 12977 fi 12978 fi 12979 $rm -r conftest* 12980 LDFLAGS="$save_LDFLAGS" 12981 12982fi 12983{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5 12984$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 12985 12986if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 12987 : 12988else 12989 lt_prog_compiler_static_CXX= 12990fi 12991 12992 12993{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12994$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 12995if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 12996 $as_echo_n "(cached) " >&6 12997else 12998 lt_cv_prog_compiler_c_o_CXX=no 12999 $rm -r conftest 2>/dev/null 13000 mkdir conftest 13001 cd conftest 13002 mkdir out 13003 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13004 13005 lt_compiler_flag="-o out/conftest2.$ac_objext" 13006 # Insert the option either (1) after the last *FLAGS variable, or 13007 # (2) before a word containing "conftest.", or (3) at the end. 13008 # Note that $ac_compile itself does not contain backslashes and begins 13009 # with a dollar sign (not a hyphen), so the echo should work correctly. 13010 lt_compile=`echo "$ac_compile" | $SED \ 13011 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13012 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13013 -e 's:$: $lt_compiler_flag:'` 13014 (eval echo "\"\$as_me:13014: $lt_compile\"" >&5) 13015 (eval "$lt_compile" 2>out/conftest.err) 13016 ac_status=$? 13017 cat out/conftest.err >&5 13018 echo "$as_me:13018: \$? = $ac_status" >&5 13019 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13020 then 13021 # The compiler can only warn and ignore the option if not recognized 13022 # So say no if there are warnings 13023 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 13024 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13025 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13026 lt_cv_prog_compiler_c_o_CXX=yes 13027 fi 13028 fi 13029 chmod u+w . 2>&5 13030 $rm conftest* 13031 # SGI C++ compiler will create directory out/ii_files/ for 13032 # template instantiation 13033 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 13034 $rm out/* && rmdir out 13035 cd .. 13036 rmdir conftest 13037 $rm conftest* 13038 13039fi 13040{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 13041$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 13042 13043 13044hard_links="nottested" 13045if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 13046 # do not overwrite the value of need_locks provided by the user 13047 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13048$as_echo_n "checking if we can lock with hard links... " >&6; } 13049 hard_links=yes 13050 $rm conftest* 13051 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13052 touch conftest.a 13053 ln conftest.a conftest.b 2>&5 || hard_links=no 13054 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13055 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 13056$as_echo "$hard_links" >&6; } 13057 if test "$hard_links" = no; then 13058 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13059$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13060 need_locks=warn 13061 fi 13062else 13063 need_locks=no 13064fi 13065 13066{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13067$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13068 13069 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13070 case $host_os in 13071 aix[4-9]*) 13072 # If we're using GNU nm, then we don't want the "-C" option. 13073 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13074 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 13075 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' 13076 else 13077 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' 13078 fi 13079 ;; 13080 pw32*) 13081 export_symbols_cmds_CXX="$ltdll_cmds" 13082 ;; 13083 cygwin* | mingw*) 13084 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' 13085 ;; 13086 *) 13087 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13088 ;; 13089 esac 13090 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 13091 13092{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 13093$as_echo "$ld_shlibs_CXX" >&6; } 13094test "$ld_shlibs_CXX" = no && can_build_shared=no 13095 13096# 13097# Do we need to explicitly link libc? 13098# 13099case "x$archive_cmds_need_lc_CXX" in 13100x|xyes) 13101 # Assume -lc should be added 13102 archive_cmds_need_lc_CXX=yes 13103 13104 if test "$enable_shared" = yes && test "$GCC" = yes; then 13105 case $archive_cmds_CXX in 13106 *'~'*) 13107 # FIXME: we may have to deal with multi-command sequences. 13108 ;; 13109 '$CC '*) 13110 # Test whether the compiler implicitly links with -lc since on some 13111 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13112 # to ld, don't add -lc before -lgcc. 13113 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 13114$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 13115 $rm conftest* 13116 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13117 13118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13119 (eval $ac_compile) 2>&5 13120 ac_status=$? 13121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13122 (exit $ac_status); } 2>conftest.err; then 13123 soname=conftest 13124 lib=conftest 13125 libobjs=conftest.$ac_objext 13126 deplibs= 13127 wl=$lt_prog_compiler_wl_CXX 13128 pic_flag=$lt_prog_compiler_pic_CXX 13129 compiler_flags=-v 13130 linker_flags=-v 13131 verstring= 13132 output_objdir=. 13133 libname=conftest 13134 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 13135 allow_undefined_flag_CXX= 13136 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 13137 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 13138 ac_status=$? 13139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13140 (exit $ac_status); } 13141 then 13142 archive_cmds_need_lc_CXX=no 13143 else 13144 archive_cmds_need_lc_CXX=yes 13145 fi 13146 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 13147 else 13148 cat conftest.err 1>&5 13149 fi 13150 $rm conftest* 13151 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 13152$as_echo "$archive_cmds_need_lc_CXX" >&6; } 13153 ;; 13154 esac 13155 fi 13156 ;; 13157esac 13158 13159{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 13160$as_echo_n "checking dynamic linker characteristics... " >&6; } 13161library_names_spec= 13162libname_spec='lib$name' 13163soname_spec= 13164shrext_cmds=".so" 13165postinstall_cmds= 13166postuninstall_cmds= 13167finish_cmds= 13168finish_eval= 13169shlibpath_var= 13170shlibpath_overrides_runpath=unknown 13171version_type=none 13172dynamic_linker="$host_os ld.so" 13173sys_lib_dlsearch_path_spec="/lib /usr/lib" 13174 13175need_lib_prefix=unknown 13176hardcode_into_libs=no 13177 13178# when you set need_version to no, make sure it does not cause -set_version 13179# flags to be left without arguments 13180need_version=unknown 13181 13182case $host_os in 13183aix3*) 13184 version_type=linux 13185 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13186 shlibpath_var=LIBPATH 13187 13188 # AIX 3 has no versioning support, so we append a major version to the name. 13189 soname_spec='${libname}${release}${shared_ext}$major' 13190 ;; 13191 13192aix[4-9]*) 13193 version_type=linux 13194 need_lib_prefix=no 13195 need_version=no 13196 hardcode_into_libs=yes 13197 if test "$host_cpu" = ia64; then 13198 # AIX 5 supports IA64 13199 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13200 shlibpath_var=LD_LIBRARY_PATH 13201 else 13202 # With GCC up to 2.95.x, collect2 would create an import file 13203 # for dependence libraries. The import file would start with 13204 # the line `#! .'. This would cause the generated library to 13205 # depend on `.', always an invalid library. This was fixed in 13206 # development snapshots of GCC prior to 3.0. 13207 case $host_os in 13208 aix4 | aix4.[01] | aix4.[01].*) 13209 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13210 echo ' yes ' 13211 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 13212 : 13213 else 13214 can_build_shared=no 13215 fi 13216 ;; 13217 esac 13218 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13219 # soname into executable. Probably we can add versioning support to 13220 # collect2, so additional links can be useful in future. 13221 if test "$aix_use_runtimelinking" = yes; then 13222 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13223 # instead of lib<name>.a to let people know that these are not 13224 # typical AIX shared libraries. 13225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13226 else 13227 # We preserve .a as extension for shared libraries through AIX4.2 13228 # and later when we are not doing run time linking. 13229 library_names_spec='${libname}${release}.a $libname.a' 13230 soname_spec='${libname}${release}${shared_ext}$major' 13231 fi 13232 shlibpath_var=LIBPATH 13233 fi 13234 ;; 13235 13236amigaos*) 13237 library_names_spec='$libname.ixlibrary $libname.a' 13238 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13239 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' 13240 ;; 13241 13242beos*) 13243 library_names_spec='${libname}${shared_ext}' 13244 dynamic_linker="$host_os ld.so" 13245 shlibpath_var=LIBRARY_PATH 13246 ;; 13247 13248bsdi[45]*) 13249 version_type=linux 13250 need_version=no 13251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13252 soname_spec='${libname}${release}${shared_ext}$major' 13253 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13254 shlibpath_var=LD_LIBRARY_PATH 13255 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13256 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13257 # the default ld.so.conf also contains /usr/contrib/lib and 13258 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13259 # libtool to hard-code these into programs 13260 ;; 13261 13262cygwin* | mingw* | pw32*) 13263 version_type=windows 13264 shrext_cmds=".dll" 13265 need_version=no 13266 need_lib_prefix=no 13267 13268 case $GCC,$host_os in 13269 yes,cygwin* | yes,mingw* | yes,pw32*) 13270 library_names_spec='$libname.dll.a' 13271 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13272 postinstall_cmds='base_file=`basename \${file}`~ 13273 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 13274 dldir=$destdir/`dirname \$dlpath`~ 13275 test -d \$dldir || mkdir -p \$dldir~ 13276 $install_prog $dir/$dlname \$dldir/$dlname~ 13277 chmod a+x \$dldir/$dlname' 13278 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13279 dlpath=$dir/\$dldll~ 13280 $rm \$dlpath' 13281 shlibpath_overrides_runpath=yes 13282 13283 case $host_os in 13284 cygwin*) 13285 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13286 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13287 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 13288 ;; 13289 mingw*) 13290 # MinGW DLLs use traditional 'lib' prefix 13291 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13292 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13293 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 13294 # It is most probably a Windows format PATH printed by 13295 # mingw gcc, but we are running on Cygwin. Gcc prints its search 13296 # path with ; separators, and with drive letters. We can handle the 13297 # drive letters (cygwin fileutils understands them), so leave them, 13298 # especially as we might pass files found there to a mingw objdump, 13299 # which wouldn't understand a cygwinified path. Ahh. 13300 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13301 else 13302 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13303 fi 13304 ;; 13305 pw32*) 13306 # pw32 DLLs use 'pw' prefix rather than 'lib' 13307 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13308 ;; 13309 esac 13310 ;; 13311 13312 *) 13313 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13314 ;; 13315 esac 13316 dynamic_linker='Win32 ld.exe' 13317 # FIXME: first we should search . and the directory the executable is in 13318 shlibpath_var=PATH 13319 ;; 13320 13321darwin* | rhapsody*) 13322 dynamic_linker="$host_os dyld" 13323 version_type=darwin 13324 need_lib_prefix=no 13325 need_version=no 13326 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13327 soname_spec='${libname}${release}${major}$shared_ext' 13328 shlibpath_overrides_runpath=yes 13329 shlibpath_var=DYLD_LIBRARY_PATH 13330 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13331 13332 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13333 ;; 13334 13335dgux*) 13336 version_type=linux 13337 need_lib_prefix=no 13338 need_version=no 13339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13340 soname_spec='${libname}${release}${shared_ext}$major' 13341 shlibpath_var=LD_LIBRARY_PATH 13342 ;; 13343 13344freebsd1*) 13345 dynamic_linker=no 13346 ;; 13347 13348freebsd* | dragonfly*) 13349 # DragonFly does not have aout. When/if they implement a new 13350 # versioning mechanism, adjust this. 13351 if test -x /usr/bin/objformat; then 13352 objformat=`/usr/bin/objformat` 13353 else 13354 case $host_os in 13355 freebsd[123]*) objformat=aout ;; 13356 *) objformat=elf ;; 13357 esac 13358 fi 13359 version_type=freebsd-$objformat 13360 case $version_type in 13361 freebsd-elf*) 13362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13363 need_version=no 13364 need_lib_prefix=no 13365 ;; 13366 freebsd-*) 13367 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13368 need_version=yes 13369 ;; 13370 esac 13371 shlibpath_var=LD_LIBRARY_PATH 13372 case $host_os in 13373 freebsd2*) 13374 shlibpath_overrides_runpath=yes 13375 ;; 13376 freebsd3.[01]* | freebsdelf3.[01]*) 13377 shlibpath_overrides_runpath=yes 13378 hardcode_into_libs=yes 13379 ;; 13380 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13381 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13382 shlibpath_overrides_runpath=no 13383 hardcode_into_libs=yes 13384 ;; 13385 *) # from 4.6 on, and DragonFly 13386 shlibpath_overrides_runpath=yes 13387 hardcode_into_libs=yes 13388 ;; 13389 esac 13390 ;; 13391 13392gnu*) 13393 version_type=linux 13394 need_lib_prefix=no 13395 need_version=no 13396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13397 soname_spec='${libname}${release}${shared_ext}$major' 13398 shlibpath_var=LD_LIBRARY_PATH 13399 hardcode_into_libs=yes 13400 ;; 13401 13402hpux9* | hpux10* | hpux11*) 13403 # Give a soname corresponding to the major version so that dld.sl refuses to 13404 # link against other versions. 13405 version_type=sunos 13406 need_lib_prefix=no 13407 need_version=no 13408 case $host_cpu in 13409 ia64*) 13410 shrext_cmds='.so' 13411 hardcode_into_libs=yes 13412 dynamic_linker="$host_os dld.so" 13413 shlibpath_var=LD_LIBRARY_PATH 13414 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13416 soname_spec='${libname}${release}${shared_ext}$major' 13417 if test "X$HPUX_IA64_MODE" = X32; then 13418 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13419 else 13420 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13421 fi 13422 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13423 ;; 13424 hppa*64*) 13425 shrext_cmds='.sl' 13426 hardcode_into_libs=yes 13427 dynamic_linker="$host_os dld.sl" 13428 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13429 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13431 soname_spec='${libname}${release}${shared_ext}$major' 13432 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13433 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13434 ;; 13435 *) 13436 shrext_cmds='.sl' 13437 dynamic_linker="$host_os dld.sl" 13438 shlibpath_var=SHLIB_PATH 13439 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13441 soname_spec='${libname}${release}${shared_ext}$major' 13442 ;; 13443 esac 13444 # HP-UX runs *really* slowly unless shared libraries are mode 555. 13445 postinstall_cmds='chmod 555 $lib' 13446 ;; 13447 13448interix[3-9]*) 13449 version_type=linux 13450 need_lib_prefix=no 13451 need_version=no 13452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13453 soname_spec='${libname}${release}${shared_ext}$major' 13454 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13455 shlibpath_var=LD_LIBRARY_PATH 13456 shlibpath_overrides_runpath=no 13457 hardcode_into_libs=yes 13458 ;; 13459 13460irix5* | irix6* | nonstopux*) 13461 case $host_os in 13462 nonstopux*) version_type=nonstopux ;; 13463 *) 13464 if test "$lt_cv_prog_gnu_ld" = yes; then 13465 version_type=linux 13466 else 13467 version_type=irix 13468 fi ;; 13469 esac 13470 need_lib_prefix=no 13471 need_version=no 13472 soname_spec='${libname}${release}${shared_ext}$major' 13473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13474 case $host_os in 13475 irix5* | nonstopux*) 13476 libsuff= shlibsuff= 13477 ;; 13478 *) 13479 case $LD in # libtool.m4 will add one of these switches to LD 13480 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13481 libsuff= shlibsuff= libmagic=32-bit;; 13482 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13483 libsuff=32 shlibsuff=N32 libmagic=N32;; 13484 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13485 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13486 *) libsuff= shlibsuff= libmagic=never-match;; 13487 esac 13488 ;; 13489 esac 13490 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13491 shlibpath_overrides_runpath=no 13492 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13493 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13494 hardcode_into_libs=yes 13495 ;; 13496 13497# No shared lib support for Linux oldld, aout, or coff. 13498linux*oldld* | linux*aout* | linux*coff*) 13499 dynamic_linker=no 13500 ;; 13501 13502# This must be Linux ELF. 13503linux* | k*bsd*-gnu) 13504 version_type=linux 13505 need_lib_prefix=no 13506 need_version=no 13507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13508 soname_spec='${libname}${release}${shared_ext}$major' 13509 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13510 shlibpath_var=LD_LIBRARY_PATH 13511 shlibpath_overrides_runpath=no 13512 # This implies no fast_install, which is unacceptable. 13513 # Some rework will be needed to allow for fast_install 13514 # before this can be enabled. 13515 hardcode_into_libs=yes 13516 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13517 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13518 13519 # Append ld.so.conf contents to the search path 13520 if test -f /etc/ld.so.conf; then 13521 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' ' '` 13522 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 13523 fi 13524 13525 # We used to test for /lib/ld.so.1 and disable shared libraries on 13526 # powerpc, because MkLinux only supported shared libraries with the 13527 # GNU dynamic linker. Since this was broken with cross compilers, 13528 # most powerpc-linux boxes support dynamic linking these days and 13529 # people can always --disable-shared, the test was removed, and we 13530 # assume the GNU/Linux dynamic linker is in use. 13531 dynamic_linker='GNU/Linux ld.so' 13532 ;; 13533 13534netbsd*) 13535 version_type=sunos 13536 need_lib_prefix=no 13537 need_version=no 13538 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13540 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13541 dynamic_linker='NetBSD (a.out) ld.so' 13542 else 13543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13544 soname_spec='${libname}${release}${shared_ext}$major' 13545 dynamic_linker='NetBSD ld.elf_so' 13546 fi 13547 shlibpath_var=LD_LIBRARY_PATH 13548 shlibpath_overrides_runpath=yes 13549 hardcode_into_libs=yes 13550 ;; 13551 13552newsos6) 13553 version_type=linux 13554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13555 shlibpath_var=LD_LIBRARY_PATH 13556 shlibpath_overrides_runpath=yes 13557 ;; 13558 13559nto-qnx*) 13560 version_type=linux 13561 need_lib_prefix=no 13562 need_version=no 13563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13564 soname_spec='${libname}${release}${shared_ext}$major' 13565 shlibpath_var=LD_LIBRARY_PATH 13566 shlibpath_overrides_runpath=yes 13567 ;; 13568 13569openbsd*) 13570 version_type=sunos 13571 sys_lib_dlsearch_path_spec="/usr/lib" 13572 need_lib_prefix=no 13573 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 13574 case $host_os in 13575 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 13576 *) need_version=no ;; 13577 esac 13578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13579 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13580 shlibpath_var=LD_LIBRARY_PATH 13581 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13582 case $host_os in 13583 openbsd2.[89] | openbsd2.[89].*) 13584 shlibpath_overrides_runpath=no 13585 ;; 13586 *) 13587 shlibpath_overrides_runpath=yes 13588 ;; 13589 esac 13590 else 13591 shlibpath_overrides_runpath=yes 13592 fi 13593 ;; 13594 13595os2*) 13596 libname_spec='$name' 13597 shrext_cmds=".dll" 13598 need_lib_prefix=no 13599 library_names_spec='$libname${shared_ext} $libname.a' 13600 dynamic_linker='OS/2 ld.exe' 13601 shlibpath_var=LIBPATH 13602 ;; 13603 13604osf3* | osf4* | osf5*) 13605 version_type=osf 13606 need_lib_prefix=no 13607 need_version=no 13608 soname_spec='${libname}${release}${shared_ext}$major' 13609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13610 shlibpath_var=LD_LIBRARY_PATH 13611 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13612 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13613 ;; 13614 13615rdos*) 13616 dynamic_linker=no 13617 ;; 13618 13619solaris*) 13620 version_type=linux 13621 need_lib_prefix=no 13622 need_version=no 13623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13624 soname_spec='${libname}${release}${shared_ext}$major' 13625 shlibpath_var=LD_LIBRARY_PATH 13626 shlibpath_overrides_runpath=yes 13627 hardcode_into_libs=yes 13628 # ldd complains unless libraries are executable 13629 postinstall_cmds='chmod +x $lib' 13630 ;; 13631 13632sunos4*) 13633 version_type=sunos 13634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13635 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13636 shlibpath_var=LD_LIBRARY_PATH 13637 shlibpath_overrides_runpath=yes 13638 if test "$with_gnu_ld" = yes; then 13639 need_lib_prefix=no 13640 fi 13641 need_version=yes 13642 ;; 13643 13644sysv4 | sysv4.3*) 13645 version_type=linux 13646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13647 soname_spec='${libname}${release}${shared_ext}$major' 13648 shlibpath_var=LD_LIBRARY_PATH 13649 case $host_vendor in 13650 sni) 13651 shlibpath_overrides_runpath=no 13652 need_lib_prefix=no 13653 export_dynamic_flag_spec='${wl}-Blargedynsym' 13654 runpath_var=LD_RUN_PATH 13655 ;; 13656 siemens) 13657 need_lib_prefix=no 13658 ;; 13659 motorola) 13660 need_lib_prefix=no 13661 need_version=no 13662 shlibpath_overrides_runpath=no 13663 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13664 ;; 13665 esac 13666 ;; 13667 13668sysv4*MP*) 13669 if test -d /usr/nec ;then 13670 version_type=linux 13671 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13672 soname_spec='$libname${shared_ext}.$major' 13673 shlibpath_var=LD_LIBRARY_PATH 13674 fi 13675 ;; 13676 13677sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13678 version_type=freebsd-elf 13679 need_lib_prefix=no 13680 need_version=no 13681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13682 soname_spec='${libname}${release}${shared_ext}$major' 13683 shlibpath_var=LD_LIBRARY_PATH 13684 hardcode_into_libs=yes 13685 if test "$with_gnu_ld" = yes; then 13686 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13687 shlibpath_overrides_runpath=no 13688 else 13689 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13690 shlibpath_overrides_runpath=yes 13691 case $host_os in 13692 sco3.2v5*) 13693 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13694 ;; 13695 esac 13696 fi 13697 sys_lib_dlsearch_path_spec='/usr/lib' 13698 ;; 13699 13700uts4*) 13701 version_type=linux 13702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13703 soname_spec='${libname}${release}${shared_ext}$major' 13704 shlibpath_var=LD_LIBRARY_PATH 13705 ;; 13706 13707*) 13708 dynamic_linker=no 13709 ;; 13710esac 13711{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13712$as_echo "$dynamic_linker" >&6; } 13713test "$dynamic_linker" = no && can_build_shared=no 13714 13715if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 13716 $as_echo_n "(cached) " >&6 13717else 13718 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 13719fi 13720 13721sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 13722if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 13723 $as_echo_n "(cached) " >&6 13724else 13725 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 13726fi 13727 13728sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 13729 13730variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13731if test "$GCC" = yes; then 13732 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13733fi 13734 13735{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13736$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 13737hardcode_action_CXX= 13738if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13739 test -n "$runpath_var_CXX" || \ 13740 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13741 13742 # We can hardcode non-existant directories. 13743 if test "$hardcode_direct_CXX" != no && 13744 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13745 # have to relink, otherwise we might link with an installed library 13746 # when we should be linking with a yet-to-be-installed one 13747 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13748 test "$hardcode_minus_L_CXX" != no; then 13749 # Linking always hardcodes the temporary library directory. 13750 hardcode_action_CXX=relink 13751 else 13752 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13753 hardcode_action_CXX=immediate 13754 fi 13755else 13756 # We cannot hardcode anything, or else we can only hardcode existing 13757 # directories. 13758 hardcode_action_CXX=unsupported 13759fi 13760{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13761$as_echo "$hardcode_action_CXX" >&6; } 13762 13763if test "$hardcode_action_CXX" = relink; then 13764 # Fast installation is not supported 13765 enable_fast_install=no 13766elif test "$shlibpath_overrides_runpath" = yes || 13767 test "$enable_shared" = no; then 13768 # Fast installation is not necessary 13769 enable_fast_install=needless 13770fi 13771 13772 13773# The else clause should only fire when bootstrapping the 13774# libtool distribution, otherwise you forgot to ship ltmain.sh 13775# with your package, and you will get complaints that there are 13776# no rules to generate ltmain.sh. 13777if test -f "$ltmain"; then 13778 # See if we are running on zsh, and set the options which allow our commands through 13779 # without removal of \ escapes. 13780 if test -n "${ZSH_VERSION+set}" ; then 13781 setopt NO_GLOB_SUBST 13782 fi 13783 # Now quote all the things that may contain metacharacters while being 13784 # careful not to overquote the AC_SUBSTed values. We take copies of the 13785 # variables and quote the copies for generation of the libtool script. 13786 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13787 SED SHELL STRIP \ 13788 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13789 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13790 deplibs_check_method reload_flag reload_cmds need_locks \ 13791 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13792 lt_cv_sys_global_symbol_to_c_name_address \ 13793 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13794 old_postinstall_cmds old_postuninstall_cmds \ 13795 compiler_CXX \ 13796 CC_CXX \ 13797 LD_CXX \ 13798 lt_prog_compiler_wl_CXX \ 13799 lt_prog_compiler_pic_CXX \ 13800 lt_prog_compiler_static_CXX \ 13801 lt_prog_compiler_no_builtin_flag_CXX \ 13802 export_dynamic_flag_spec_CXX \ 13803 thread_safe_flag_spec_CXX \ 13804 whole_archive_flag_spec_CXX \ 13805 enable_shared_with_static_runtimes_CXX \ 13806 old_archive_cmds_CXX \ 13807 old_archive_from_new_cmds_CXX \ 13808 predep_objects_CXX \ 13809 postdep_objects_CXX \ 13810 predeps_CXX \ 13811 postdeps_CXX \ 13812 compiler_lib_search_path_CXX \ 13813 compiler_lib_search_dirs_CXX \ 13814 archive_cmds_CXX \ 13815 archive_expsym_cmds_CXX \ 13816 postinstall_cmds_CXX \ 13817 postuninstall_cmds_CXX \ 13818 old_archive_from_expsyms_cmds_CXX \ 13819 allow_undefined_flag_CXX \ 13820 no_undefined_flag_CXX \ 13821 export_symbols_cmds_CXX \ 13822 hardcode_libdir_flag_spec_CXX \ 13823 hardcode_libdir_flag_spec_ld_CXX \ 13824 hardcode_libdir_separator_CXX \ 13825 hardcode_automatic_CXX \ 13826 module_cmds_CXX \ 13827 module_expsym_cmds_CXX \ 13828 lt_cv_prog_compiler_c_o_CXX \ 13829 fix_srcfile_path_CXX \ 13830 exclude_expsyms_CXX \ 13831 include_expsyms_CXX; do 13832 13833 case $var in 13834 old_archive_cmds_CXX | \ 13835 old_archive_from_new_cmds_CXX | \ 13836 archive_cmds_CXX | \ 13837 archive_expsym_cmds_CXX | \ 13838 module_cmds_CXX | \ 13839 module_expsym_cmds_CXX | \ 13840 old_archive_from_expsyms_cmds_CXX | \ 13841 export_symbols_cmds_CXX | \ 13842 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13843 postinstall_cmds | postuninstall_cmds | \ 13844 old_postinstall_cmds | old_postuninstall_cmds | \ 13845 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13846 # Double-quote double-evaled strings. 13847 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13848 ;; 13849 *) 13850 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13851 ;; 13852 esac 13853 done 13854 13855 case $lt_echo in 13856 *'\$0 --fallback-echo"') 13857 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13858 ;; 13859 esac 13860 13861cfgfile="$ofile" 13862 13863 cat <<__EOF__ >> "$cfgfile" 13864# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13865 13866# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13867 13868# Shell to use when invoking shell scripts. 13869SHELL=$lt_SHELL 13870 13871# Whether or not to build shared libraries. 13872build_libtool_libs=$enable_shared 13873 13874# Whether or not to build static libraries. 13875build_old_libs=$enable_static 13876 13877# Whether or not to add -lc for building shared libraries. 13878build_libtool_need_lc=$archive_cmds_need_lc_CXX 13879 13880# Whether or not to disallow shared libs when runtime libs are static 13881allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13882 13883# Whether or not to optimize for fast installation. 13884fast_install=$enable_fast_install 13885 13886# The host system. 13887host_alias=$host_alias 13888host=$host 13889host_os=$host_os 13890 13891# The build system. 13892build_alias=$build_alias 13893build=$build 13894build_os=$build_os 13895 13896# An echo program that does not interpret backslashes. 13897echo=$lt_echo 13898 13899# The archiver. 13900AR=$lt_AR 13901AR_FLAGS=$lt_AR_FLAGS 13902 13903# A C compiler. 13904LTCC=$lt_LTCC 13905 13906# LTCC compiler flags. 13907LTCFLAGS=$lt_LTCFLAGS 13908 13909# A language-specific compiler. 13910CC=$lt_compiler_CXX 13911 13912# Is the compiler the GNU C compiler? 13913with_gcc=$GCC_CXX 13914 13915# An ERE matcher. 13916EGREP=$lt_EGREP 13917 13918# The linker used to build libraries. 13919LD=$lt_LD_CXX 13920 13921# Whether we need hard or soft links. 13922LN_S=$lt_LN_S 13923 13924# A BSD-compatible nm program. 13925NM=$lt_NM 13926 13927# A symbol stripping program 13928STRIP=$lt_STRIP 13929 13930# Used to examine libraries when file_magic_cmd begins "file" 13931MAGIC_CMD=$MAGIC_CMD 13932 13933# Used on cygwin: DLL creation program. 13934DLLTOOL="$DLLTOOL" 13935 13936# Used on cygwin: object dumper. 13937OBJDUMP="$OBJDUMP" 13938 13939# Used on cygwin: assembler. 13940AS="$AS" 13941 13942# The name of the directory that contains temporary libtool files. 13943objdir=$objdir 13944 13945# How to create reloadable object files. 13946reload_flag=$lt_reload_flag 13947reload_cmds=$lt_reload_cmds 13948 13949# How to pass a linker flag through the compiler. 13950wl=$lt_lt_prog_compiler_wl_CXX 13951 13952# Object file suffix (normally "o"). 13953objext="$ac_objext" 13954 13955# Old archive suffix (normally "a"). 13956libext="$libext" 13957 13958# Shared library suffix (normally ".so"). 13959shrext_cmds='$shrext_cmds' 13960 13961# Executable file suffix (normally ""). 13962exeext="$exeext" 13963 13964# Additional compiler flags for building library objects. 13965pic_flag=$lt_lt_prog_compiler_pic_CXX 13966pic_mode=$pic_mode 13967 13968# What is the maximum length of a command? 13969max_cmd_len=$lt_cv_sys_max_cmd_len 13970 13971# Does compiler simultaneously support -c and -o options? 13972compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13973 13974# Must we lock files when doing compilation? 13975need_locks=$lt_need_locks 13976 13977# Do we need the lib prefix for modules? 13978need_lib_prefix=$need_lib_prefix 13979 13980# Do we need a version for libraries? 13981need_version=$need_version 13982 13983# Whether dlopen is supported. 13984dlopen_support=$enable_dlopen 13985 13986# Whether dlopen of programs is supported. 13987dlopen_self=$enable_dlopen_self 13988 13989# Whether dlopen of statically linked programs is supported. 13990dlopen_self_static=$enable_dlopen_self_static 13991 13992# Compiler flag to prevent dynamic linking. 13993link_static_flag=$lt_lt_prog_compiler_static_CXX 13994 13995# Compiler flag to turn off builtin functions. 13996no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13997 13998# Compiler flag to allow reflexive dlopens. 13999export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 14000 14001# Compiler flag to generate shared objects directly from archives. 14002whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 14003 14004# Compiler flag to generate thread-safe objects. 14005thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 14006 14007# Library versioning type. 14008version_type=$version_type 14009 14010# Format of library name prefix. 14011libname_spec=$lt_libname_spec 14012 14013# List of archive names. First name is the real one, the rest are links. 14014# The last name is the one that the linker finds with -lNAME. 14015library_names_spec=$lt_library_names_spec 14016 14017# The coded name of the library, if different from the real name. 14018soname_spec=$lt_soname_spec 14019 14020# Commands used to build and install an old-style archive. 14021RANLIB=$lt_RANLIB 14022old_archive_cmds=$lt_old_archive_cmds_CXX 14023old_postinstall_cmds=$lt_old_postinstall_cmds 14024old_postuninstall_cmds=$lt_old_postuninstall_cmds 14025 14026# Create an old-style archive from a shared archive. 14027old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 14028 14029# Create a temporary old-style archive to link instead of a shared archive. 14030old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 14031 14032# Commands used to build and install a shared archive. 14033archive_cmds=$lt_archive_cmds_CXX 14034archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 14035postinstall_cmds=$lt_postinstall_cmds 14036postuninstall_cmds=$lt_postuninstall_cmds 14037 14038# Commands used to build a loadable module (assumed same as above if empty) 14039module_cmds=$lt_module_cmds_CXX 14040module_expsym_cmds=$lt_module_expsym_cmds_CXX 14041 14042# Commands to strip libraries. 14043old_striplib=$lt_old_striplib 14044striplib=$lt_striplib 14045 14046# Dependencies to place before the objects being linked to create a 14047# shared library. 14048predep_objects=$lt_predep_objects_CXX 14049 14050# Dependencies to place after the objects being linked to create a 14051# shared library. 14052postdep_objects=$lt_postdep_objects_CXX 14053 14054# Dependencies to place before the objects being linked to create a 14055# shared library. 14056predeps=$lt_predeps_CXX 14057 14058# Dependencies to place after the objects being linked to create a 14059# shared library. 14060postdeps=$lt_postdeps_CXX 14061 14062# The directories searched by this compiler when creating a shared 14063# library 14064compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 14065 14066# The library search path used internally by the compiler when linking 14067# a shared library. 14068compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 14069 14070# Method to check whether dependent libraries are shared objects. 14071deplibs_check_method=$lt_deplibs_check_method 14072 14073# Command to use when deplibs_check_method == file_magic. 14074file_magic_cmd=$lt_file_magic_cmd 14075 14076# Flag that allows shared libraries with undefined symbols to be built. 14077allow_undefined_flag=$lt_allow_undefined_flag_CXX 14078 14079# Flag that forces no undefined symbols. 14080no_undefined_flag=$lt_no_undefined_flag_CXX 14081 14082# Commands used to finish a libtool library installation in a directory. 14083finish_cmds=$lt_finish_cmds 14084 14085# Same as above, but a single script fragment to be evaled but not shown. 14086finish_eval=$lt_finish_eval 14087 14088# Take the output of nm and produce a listing of raw symbols and C names. 14089global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14090 14091# Transform the output of nm in a proper C declaration 14092global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14093 14094# Transform the output of nm in a C name address pair 14095global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14096 14097# This is the shared library runtime path variable. 14098runpath_var=$runpath_var 14099 14100# This is the shared library path variable. 14101shlibpath_var=$shlibpath_var 14102 14103# Is shlibpath searched before the hard-coded library search path? 14104shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14105 14106# How to hardcode a shared library path into an executable. 14107hardcode_action=$hardcode_action_CXX 14108 14109# Whether we should hardcode library paths into libraries. 14110hardcode_into_libs=$hardcode_into_libs 14111 14112# Flag to hardcode \$libdir into a binary during linking. 14113# This must work even if \$libdir does not exist. 14114hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 14115 14116# If ld is used when linking, flag to hardcode \$libdir into 14117# a binary during linking. This must work even if \$libdir does 14118# not exist. 14119hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 14120 14121# Whether we need a single -rpath flag with a separated argument. 14122hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 14123 14124# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 14125# resulting binary. 14126hardcode_direct=$hardcode_direct_CXX 14127 14128# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 14129# resulting binary. 14130hardcode_minus_L=$hardcode_minus_L_CXX 14131 14132# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 14133# the resulting binary. 14134hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 14135 14136# Set to yes if building a shared library automatically hardcodes DIR into the library 14137# and all subsequent libraries and executables linked against it. 14138hardcode_automatic=$hardcode_automatic_CXX 14139 14140# Variables whose values should be saved in libtool wrapper scripts and 14141# restored at relink time. 14142variables_saved_for_relink="$variables_saved_for_relink" 14143 14144# Whether libtool must link a program against all its dependency libraries. 14145link_all_deplibs=$link_all_deplibs_CXX 14146 14147# Compile-time system search path for libraries 14148sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14149 14150# Run-time system search path for libraries 14151sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14152 14153# Fix the shell variable \$srcfile for the compiler. 14154fix_srcfile_path=$lt_fix_srcfile_path 14155 14156# Set to yes if exported symbols are required. 14157always_export_symbols=$always_export_symbols_CXX 14158 14159# The commands to list exported symbols. 14160export_symbols_cmds=$lt_export_symbols_cmds_CXX 14161 14162# The commands to extract the exported symbol list from a shared archive. 14163extract_expsyms_cmds=$lt_extract_expsyms_cmds 14164 14165# Symbols that should not be listed in the preloaded symbols. 14166exclude_expsyms=$lt_exclude_expsyms_CXX 14167 14168# Symbols that must always be exported. 14169include_expsyms=$lt_include_expsyms_CXX 14170 14171# ### END LIBTOOL TAG CONFIG: $tagname 14172 14173__EOF__ 14174 14175 14176else 14177 # If there is no Makefile yet, we rely on a make rule to execute 14178 # `config.status --recheck' to rerun these tests and create the 14179 # libtool script then. 14180 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 14181 if test -f "$ltmain_in"; then 14182 test -f Makefile && make "$ltmain" 14183 fi 14184fi 14185 14186 14187ac_ext=c 14188ac_cpp='$CPP $CPPFLAGS' 14189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14191ac_compiler_gnu=$ac_cv_c_compiler_gnu 14192 14193CC=$lt_save_CC 14194LDCXX=$LD 14195LD=$lt_save_LD 14196GCC=$lt_save_GCC 14197with_gnu_ldcxx=$with_gnu_ld 14198with_gnu_ld=$lt_save_with_gnu_ld 14199lt_cv_path_LDCXX=$lt_cv_path_LD 14200lt_cv_path_LD=$lt_save_path_LD 14201lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 14202lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 14203 14204 else 14205 tagname="" 14206 fi 14207 ;; 14208 14209 F77) 14210 if test -n "$F77" && test "X$F77" != "Xno"; then 14211 14212ac_ext=f 14213ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 14214ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14215ac_compiler_gnu=$ac_cv_f77_compiler_gnu 14216 14217 14218archive_cmds_need_lc_F77=no 14219allow_undefined_flag_F77= 14220always_export_symbols_F77=no 14221archive_expsym_cmds_F77= 14222export_dynamic_flag_spec_F77= 14223hardcode_direct_F77=no 14224hardcode_libdir_flag_spec_F77= 14225hardcode_libdir_flag_spec_ld_F77= 14226hardcode_libdir_separator_F77= 14227hardcode_minus_L_F77=no 14228hardcode_automatic_F77=no 14229module_cmds_F77= 14230module_expsym_cmds_F77= 14231link_all_deplibs_F77=unknown 14232old_archive_cmds_F77=$old_archive_cmds 14233no_undefined_flag_F77= 14234whole_archive_flag_spec_F77= 14235enable_shared_with_static_runtimes_F77=no 14236 14237# Source file extension for f77 test sources. 14238ac_ext=f 14239 14240# Object file extension for compiled f77 test sources. 14241objext=o 14242objext_F77=$objext 14243 14244# Code to be used in simple compile tests 14245lt_simple_compile_test_code="\ 14246 subroutine t 14247 return 14248 end 14249" 14250 14251# Code to be used in simple link tests 14252lt_simple_link_test_code="\ 14253 program t 14254 end 14255" 14256 14257# ltmain only uses $CC for tagged configurations so make sure $CC is set. 14258 14259# If no C compiler was specified, use CC. 14260LTCC=${LTCC-"$CC"} 14261 14262# If no C compiler flags were specified, use CFLAGS. 14263LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14264 14265# Allow CC to be a program name with arguments. 14266compiler=$CC 14267 14268 14269# save warnings/boilerplate of simple test code 14270ac_outfile=conftest.$ac_objext 14271echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14272eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14273_lt_compiler_boilerplate=`cat conftest.err` 14274$rm conftest* 14275 14276ac_outfile=conftest.$ac_objext 14277echo "$lt_simple_link_test_code" >conftest.$ac_ext 14278eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14279_lt_linker_boilerplate=`cat conftest.err` 14280$rm -r conftest* 14281 14282 14283# Allow CC to be a program name with arguments. 14284lt_save_CC="$CC" 14285CC=${F77-"f77"} 14286compiler=$CC 14287compiler_F77=$CC 14288for cc_temp in $compiler""; do 14289 case $cc_temp in 14290 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14291 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14292 \-*) ;; 14293 *) break;; 14294 esac 14295done 14296cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14297 14298 14299{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 14300$as_echo_n "checking if libtool supports shared libraries... " >&6; } 14301{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 14302$as_echo "$can_build_shared" >&6; } 14303 14304{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 14305$as_echo_n "checking whether to build shared libraries... " >&6; } 14306test "$can_build_shared" = "no" && enable_shared=no 14307 14308# On AIX, shared libraries and static libraries use the same namespace, and 14309# are all built from PIC. 14310case $host_os in 14311aix3*) 14312 test "$enable_shared" = yes && enable_static=no 14313 if test -n "$RANLIB"; then 14314 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14315 postinstall_cmds='$RANLIB $lib' 14316 fi 14317 ;; 14318aix[4-9]*) 14319 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 14320 test "$enable_shared" = yes && enable_static=no 14321 fi 14322 ;; 14323esac 14324{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 14325$as_echo "$enable_shared" >&6; } 14326 14327{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 14328$as_echo_n "checking whether to build static libraries... " >&6; } 14329# Make sure either enable_shared or enable_static is yes. 14330test "$enable_shared" = yes || enable_static=yes 14331{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5 14332$as_echo "$enable_static" >&6; } 14333 14334GCC_F77="$G77" 14335LD_F77="$LD" 14336 14337lt_prog_compiler_wl_F77= 14338lt_prog_compiler_pic_F77= 14339lt_prog_compiler_static_F77= 14340 14341{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14342$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14343 14344 if test "$GCC" = yes; then 14345 lt_prog_compiler_wl_F77='-Wl,' 14346 lt_prog_compiler_static_F77='-static' 14347 14348 case $host_os in 14349 aix*) 14350 # All AIX code is PIC. 14351 if test "$host_cpu" = ia64; then 14352 # AIX 5 now supports IA64 processor 14353 lt_prog_compiler_static_F77='-Bstatic' 14354 fi 14355 ;; 14356 14357 amigaos*) 14358 # FIXME: we need at least 68020 code to build shared libraries, but 14359 # adding the `-m68020' flag to GCC prevents building anything better, 14360 # like `-m68040'. 14361 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 14362 ;; 14363 14364 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14365 # PIC is the default for these OSes. 14366 ;; 14367 14368 mingw* | cygwin* | pw32* | os2*) 14369 # This hack is so that the source file can tell whether it is being 14370 # built for inclusion in a dll (and should export symbols for example). 14371 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14372 # (--disable-auto-import) libraries 14373 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14374 ;; 14375 14376 darwin* | rhapsody*) 14377 # PIC is the default on this platform 14378 # Common symbols not allowed in MH_DYLIB files 14379 lt_prog_compiler_pic_F77='-fno-common' 14380 ;; 14381 14382 interix[3-9]*) 14383 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14384 # Instead, we relocate shared libraries at runtime. 14385 ;; 14386 14387 msdosdjgpp*) 14388 # Just because we use GCC doesn't mean we suddenly get shared libraries 14389 # on systems that don't support them. 14390 lt_prog_compiler_can_build_shared_F77=no 14391 enable_shared=no 14392 ;; 14393 14394 sysv4*MP*) 14395 if test -d /usr/nec; then 14396 lt_prog_compiler_pic_F77=-Kconform_pic 14397 fi 14398 ;; 14399 14400 hpux*) 14401 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14402 # not for PA HP-UX. 14403 case $host_cpu in 14404 hppa*64*|ia64*) 14405 # +Z the default 14406 ;; 14407 *) 14408 lt_prog_compiler_pic_F77='-fPIC' 14409 ;; 14410 esac 14411 ;; 14412 14413 *) 14414 lt_prog_compiler_pic_F77='-fPIC' 14415 ;; 14416 esac 14417 else 14418 # PORTME Check for flag to pass linker flags through the system compiler. 14419 case $host_os in 14420 aix*) 14421 lt_prog_compiler_wl_F77='-Wl,' 14422 if test "$host_cpu" = ia64; then 14423 # AIX 5 now supports IA64 processor 14424 lt_prog_compiler_static_F77='-Bstatic' 14425 else 14426 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 14427 fi 14428 ;; 14429 darwin*) 14430 # PIC is the default on this platform 14431 # Common symbols not allowed in MH_DYLIB files 14432 case $cc_basename in 14433 xlc*) 14434 lt_prog_compiler_pic_F77='-qnocommon' 14435 lt_prog_compiler_wl_F77='-Wl,' 14436 ;; 14437 esac 14438 ;; 14439 14440 mingw* | cygwin* | pw32* | os2*) 14441 # This hack is so that the source file can tell whether it is being 14442 # built for inclusion in a dll (and should export symbols for example). 14443 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14444 ;; 14445 14446 hpux9* | hpux10* | hpux11*) 14447 lt_prog_compiler_wl_F77='-Wl,' 14448 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14449 # not for PA HP-UX. 14450 case $host_cpu in 14451 hppa*64*|ia64*) 14452 # +Z the default 14453 ;; 14454 *) 14455 lt_prog_compiler_pic_F77='+Z' 14456 ;; 14457 esac 14458 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14459 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 14460 ;; 14461 14462 irix5* | irix6* | nonstopux*) 14463 lt_prog_compiler_wl_F77='-Wl,' 14464 # PIC (with -KPIC) is the default. 14465 lt_prog_compiler_static_F77='-non_shared' 14466 ;; 14467 14468 newsos6) 14469 lt_prog_compiler_pic_F77='-KPIC' 14470 lt_prog_compiler_static_F77='-Bstatic' 14471 ;; 14472 14473 linux* | k*bsd*-gnu) 14474 case $cc_basename in 14475 icc* | ecc*) 14476 lt_prog_compiler_wl_F77='-Wl,' 14477 lt_prog_compiler_pic_F77='-KPIC' 14478 lt_prog_compiler_static_F77='-static' 14479 ;; 14480 pgcc* | pgf77* | pgf90* | pgf95*) 14481 # Portland Group compilers (*not* the Pentium gcc compiler, 14482 # which looks to be a dead project) 14483 lt_prog_compiler_wl_F77='-Wl,' 14484 lt_prog_compiler_pic_F77='-fpic' 14485 lt_prog_compiler_static_F77='-Bstatic' 14486 ;; 14487 ccc*) 14488 lt_prog_compiler_wl_F77='-Wl,' 14489 # All Alpha code is PIC. 14490 lt_prog_compiler_static_F77='-non_shared' 14491 ;; 14492 *) 14493 case `$CC -V 2>&1 | sed 5q` in 14494 *Sun\ C*) 14495 # Sun C 5.9 14496 lt_prog_compiler_pic_F77='-KPIC' 14497 lt_prog_compiler_static_F77='-Bstatic' 14498 lt_prog_compiler_wl_F77='-Wl,' 14499 ;; 14500 *Sun\ F*) 14501 # Sun Fortran 8.3 passes all unrecognized flags to the linker 14502 lt_prog_compiler_pic_F77='-KPIC' 14503 lt_prog_compiler_static_F77='-Bstatic' 14504 lt_prog_compiler_wl_F77='' 14505 ;; 14506 esac 14507 ;; 14508 esac 14509 ;; 14510 14511 osf3* | osf4* | osf5*) 14512 lt_prog_compiler_wl_F77='-Wl,' 14513 # All OSF/1 code is PIC. 14514 lt_prog_compiler_static_F77='-non_shared' 14515 ;; 14516 14517 rdos*) 14518 lt_prog_compiler_static_F77='-non_shared' 14519 ;; 14520 14521 solaris*) 14522 lt_prog_compiler_pic_F77='-KPIC' 14523 lt_prog_compiler_static_F77='-Bstatic' 14524 case $cc_basename in 14525 f77* | f90* | f95*) 14526 lt_prog_compiler_wl_F77='-Qoption ld ';; 14527 *) 14528 lt_prog_compiler_wl_F77='-Wl,';; 14529 esac 14530 ;; 14531 14532 sunos4*) 14533 lt_prog_compiler_wl_F77='-Qoption ld ' 14534 lt_prog_compiler_pic_F77='-PIC' 14535 lt_prog_compiler_static_F77='-Bstatic' 14536 ;; 14537 14538 sysv4 | sysv4.2uw2* | sysv4.3*) 14539 lt_prog_compiler_wl_F77='-Wl,' 14540 lt_prog_compiler_pic_F77='-KPIC' 14541 lt_prog_compiler_static_F77='-Bstatic' 14542 ;; 14543 14544 sysv4*MP*) 14545 if test -d /usr/nec ;then 14546 lt_prog_compiler_pic_F77='-Kconform_pic' 14547 lt_prog_compiler_static_F77='-Bstatic' 14548 fi 14549 ;; 14550 14551 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14552 lt_prog_compiler_wl_F77='-Wl,' 14553 lt_prog_compiler_pic_F77='-KPIC' 14554 lt_prog_compiler_static_F77='-Bstatic' 14555 ;; 14556 14557 unicos*) 14558 lt_prog_compiler_wl_F77='-Wl,' 14559 lt_prog_compiler_can_build_shared_F77=no 14560 ;; 14561 14562 uts4*) 14563 lt_prog_compiler_pic_F77='-pic' 14564 lt_prog_compiler_static_F77='-Bstatic' 14565 ;; 14566 14567 *) 14568 lt_prog_compiler_can_build_shared_F77=no 14569 ;; 14570 esac 14571 fi 14572 14573{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 14574$as_echo "$lt_prog_compiler_pic_F77" >&6; } 14575 14576# 14577# Check to make sure the PIC flag actually works. 14578# 14579if test -n "$lt_prog_compiler_pic_F77"; then 14580 14581{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 14582$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; } 14583if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then 14584 $as_echo_n "(cached) " >&6 14585else 14586 lt_cv_prog_compiler_pic_works_F77=no 14587 ac_outfile=conftest.$ac_objext 14588 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14589 lt_compiler_flag="$lt_prog_compiler_pic_F77" 14590 # Insert the option either (1) after the last *FLAGS variable, or 14591 # (2) before a word containing "conftest.", or (3) at the end. 14592 # Note that $ac_compile itself does not contain backslashes and begins 14593 # with a dollar sign (not a hyphen), so the echo should work correctly. 14594 # The option is referenced via a variable to avoid confusing sed. 14595 lt_compile=`echo "$ac_compile" | $SED \ 14596 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14597 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14598 -e 's:$: $lt_compiler_flag:'` 14599 (eval echo "\"\$as_me:14599: $lt_compile\"" >&5) 14600 (eval "$lt_compile" 2>conftest.err) 14601 ac_status=$? 14602 cat conftest.err >&5 14603 echo "$as_me:14603: \$? = $ac_status" >&5 14604 if (exit $ac_status) && test -s "$ac_outfile"; then 14605 # The compiler can only warn and ignore the option if not recognized 14606 # So say no if there are warnings other than the usual output. 14607 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14608 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14609 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14610 lt_cv_prog_compiler_pic_works_F77=yes 14611 fi 14612 fi 14613 $rm conftest* 14614 14615fi 14616{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5 14617$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; } 14618 14619if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then 14620 case $lt_prog_compiler_pic_F77 in 14621 "" | " "*) ;; 14622 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 14623 esac 14624else 14625 lt_prog_compiler_pic_F77= 14626 lt_prog_compiler_can_build_shared_F77=no 14627fi 14628 14629fi 14630case $host_os in 14631 # For platforms which do not support PIC, -DPIC is meaningless: 14632 *djgpp*) 14633 lt_prog_compiler_pic_F77= 14634 ;; 14635 *) 14636 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 14637 ;; 14638esac 14639 14640# 14641# Check to make sure the static flag actually works. 14642# 14643wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 14644{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14645$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14646if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then 14647 $as_echo_n "(cached) " >&6 14648else 14649 lt_cv_prog_compiler_static_works_F77=no 14650 save_LDFLAGS="$LDFLAGS" 14651 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14652 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14653 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14654 # The linker can only warn and ignore the option if not recognized 14655 # So say no if there are warnings 14656 if test -s conftest.err; then 14657 # Append any errors to the config.log. 14658 cat conftest.err 1>&5 14659 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14660 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14661 if diff conftest.exp conftest.er2 >/dev/null; then 14662 lt_cv_prog_compiler_static_works_F77=yes 14663 fi 14664 else 14665 lt_cv_prog_compiler_static_works_F77=yes 14666 fi 14667 fi 14668 $rm -r conftest* 14669 LDFLAGS="$save_LDFLAGS" 14670 14671fi 14672{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5 14673$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; } 14674 14675if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then 14676 : 14677else 14678 lt_prog_compiler_static_F77= 14679fi 14680 14681 14682{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14683$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14684if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 14685 $as_echo_n "(cached) " >&6 14686else 14687 lt_cv_prog_compiler_c_o_F77=no 14688 $rm -r conftest 2>/dev/null 14689 mkdir conftest 14690 cd conftest 14691 mkdir out 14692 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14693 14694 lt_compiler_flag="-o out/conftest2.$ac_objext" 14695 # Insert the option either (1) after the last *FLAGS variable, or 14696 # (2) before a word containing "conftest.", or (3) at the end. 14697 # Note that $ac_compile itself does not contain backslashes and begins 14698 # with a dollar sign (not a hyphen), so the echo should work correctly. 14699 lt_compile=`echo "$ac_compile" | $SED \ 14700 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14701 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14702 -e 's:$: $lt_compiler_flag:'` 14703 (eval echo "\"\$as_me:14703: $lt_compile\"" >&5) 14704 (eval "$lt_compile" 2>out/conftest.err) 14705 ac_status=$? 14706 cat out/conftest.err >&5 14707 echo "$as_me:14707: \$? = $ac_status" >&5 14708 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14709 then 14710 # The compiler can only warn and ignore the option if not recognized 14711 # So say no if there are warnings 14712 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14713 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14714 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14715 lt_cv_prog_compiler_c_o_F77=yes 14716 fi 14717 fi 14718 chmod u+w . 2>&5 14719 $rm conftest* 14720 # SGI C++ compiler will create directory out/ii_files/ for 14721 # template instantiation 14722 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14723 $rm out/* && rmdir out 14724 cd .. 14725 rmdir conftest 14726 $rm conftest* 14727 14728fi 14729{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14730$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; } 14731 14732 14733hard_links="nottested" 14734if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14735 # do not overwrite the value of need_locks provided by the user 14736 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14737$as_echo_n "checking if we can lock with hard links... " >&6; } 14738 hard_links=yes 14739 $rm conftest* 14740 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14741 touch conftest.a 14742 ln conftest.a conftest.b 2>&5 || hard_links=no 14743 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14744 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 14745$as_echo "$hard_links" >&6; } 14746 if test "$hard_links" = no; then 14747 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14748$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14749 need_locks=warn 14750 fi 14751else 14752 need_locks=no 14753fi 14754 14755{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14756$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14757 14758 runpath_var= 14759 allow_undefined_flag_F77= 14760 enable_shared_with_static_runtimes_F77=no 14761 archive_cmds_F77= 14762 archive_expsym_cmds_F77= 14763 old_archive_From_new_cmds_F77= 14764 old_archive_from_expsyms_cmds_F77= 14765 export_dynamic_flag_spec_F77= 14766 whole_archive_flag_spec_F77= 14767 thread_safe_flag_spec_F77= 14768 hardcode_libdir_flag_spec_F77= 14769 hardcode_libdir_flag_spec_ld_F77= 14770 hardcode_libdir_separator_F77= 14771 hardcode_direct_F77=no 14772 hardcode_minus_L_F77=no 14773 hardcode_shlibpath_var_F77=unsupported 14774 link_all_deplibs_F77=unknown 14775 hardcode_automatic_F77=no 14776 module_cmds_F77= 14777 module_expsym_cmds_F77= 14778 always_export_symbols_F77=no 14779 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14780 # include_expsyms should be a list of space-separated symbols to be *always* 14781 # included in the symbol list 14782 include_expsyms_F77= 14783 # exclude_expsyms can be an extended regexp of symbols to exclude 14784 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14785 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14786 # as well as any symbol that contains `d'. 14787 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14788 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14789 # platforms (ab)use it in PIC code, but their linkers get confused if 14790 # the symbol is explicitly referenced. Since portable code cannot 14791 # rely on this symbol name, it's probably fine to never include it in 14792 # preloaded symbol tables. 14793 # Exclude shared library initialization/finalization symbols. 14794 extract_expsyms_cmds= 14795 # Just being paranoid about ensuring that cc_basename is set. 14796 for cc_temp in $compiler""; do 14797 case $cc_temp in 14798 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14799 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14800 \-*) ;; 14801 *) break;; 14802 esac 14803done 14804cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14805 14806 case $host_os in 14807 cygwin* | mingw* | pw32*) 14808 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14809 # When not using gcc, we currently assume that we are using 14810 # Microsoft Visual C++. 14811 if test "$GCC" != yes; then 14812 with_gnu_ld=no 14813 fi 14814 ;; 14815 interix*) 14816 # we just hope/assume this is gcc and not c89 (= MSVC++) 14817 with_gnu_ld=yes 14818 ;; 14819 openbsd*) 14820 with_gnu_ld=no 14821 ;; 14822 esac 14823 14824 ld_shlibs_F77=yes 14825 if test "$with_gnu_ld" = yes; then 14826 # If archive_cmds runs LD, not CC, wlarc should be empty 14827 wlarc='${wl}' 14828 14829 # Set some defaults for GNU ld with shared library support. These 14830 # are reset later if shared libraries are not supported. Putting them 14831 # here allows them to be overridden if necessary. 14832 runpath_var=LD_RUN_PATH 14833 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14834 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14835 # ancient GNU ld didn't support --whole-archive et. al. 14836 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14837 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14838 else 14839 whole_archive_flag_spec_F77= 14840 fi 14841 supports_anon_versioning=no 14842 case `$LD -v 2>/dev/null` in 14843 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14844 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14845 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14846 *\ 2.11.*) ;; # other 2.11 versions 14847 *) supports_anon_versioning=yes ;; 14848 esac 14849 14850 # See if GNU ld supports shared libraries. 14851 case $host_os in 14852 aix[3-9]*) 14853 # On AIX/PPC, the GNU linker is very broken 14854 if test "$host_cpu" != ia64; then 14855 ld_shlibs_F77=no 14856 cat <<EOF 1>&2 14857 14858*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14859*** to be unable to reliably create shared libraries on AIX. 14860*** Therefore, libtool is disabling shared libraries support. If you 14861*** really care for shared libraries, you may want to modify your PATH 14862*** so that a non-GNU linker is found, and then restart. 14863 14864EOF 14865 fi 14866 ;; 14867 14868 amigaos*) 14869 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)' 14870 hardcode_libdir_flag_spec_F77='-L$libdir' 14871 hardcode_minus_L_F77=yes 14872 14873 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14874 # that the semantics of dynamic libraries on AmigaOS, at least up 14875 # to version 4, is to share data among multiple programs linked 14876 # with the same dynamic library. Since this doesn't match the 14877 # behavior of shared libraries on other platforms, we can't use 14878 # them. 14879 ld_shlibs_F77=no 14880 ;; 14881 14882 beos*) 14883 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14884 allow_undefined_flag_F77=unsupported 14885 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14886 # support --undefined. This deserves some investigation. FIXME 14887 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14888 else 14889 ld_shlibs_F77=no 14890 fi 14891 ;; 14892 14893 cygwin* | mingw* | pw32*) 14894 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14895 # as there is no search path for DLLs. 14896 hardcode_libdir_flag_spec_F77='-L$libdir' 14897 allow_undefined_flag_F77=unsupported 14898 always_export_symbols_F77=no 14899 enable_shared_with_static_runtimes_F77=yes 14900 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 14901 14902 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14903 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14904 # If the export-symbols file already is a .def file (1st line 14905 # is EXPORTS), use it as is; otherwise, prepend... 14906 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14907 cp $export_symbols $output_objdir/$soname.def; 14908 else 14909 echo EXPORTS > $output_objdir/$soname.def; 14910 cat $export_symbols >> $output_objdir/$soname.def; 14911 fi~ 14912 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14913 else 14914 ld_shlibs_F77=no 14915 fi 14916 ;; 14917 14918 interix[3-9]*) 14919 hardcode_direct_F77=no 14920 hardcode_shlibpath_var_F77=no 14921 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14922 export_dynamic_flag_spec_F77='${wl}-E' 14923 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14924 # Instead, shared libraries are loaded at an image base (0x10000000 by 14925 # default) and relocated if they conflict, which is a slow very memory 14926 # consuming and fragmenting process. To avoid this, we pick a random, 14927 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14928 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14929 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' 14930 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' 14931 ;; 14932 14933 gnu* | linux* | k*bsd*-gnu) 14934 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14935 tmp_addflag= 14936 case $cc_basename,$host_cpu in 14937 pgcc*) # Portland Group C compiler 14938 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' 14939 tmp_addflag=' $pic_flag' 14940 ;; 14941 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14942 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' 14943 tmp_addflag=' $pic_flag -Mnomain' ;; 14944 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14945 tmp_addflag=' -i_dynamic' ;; 14946 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14947 tmp_addflag=' -i_dynamic -nofor_main' ;; 14948 ifc* | ifort*) # Intel Fortran compiler 14949 tmp_addflag=' -nofor_main' ;; 14950 esac 14951 case `$CC -V 2>&1 | sed 5q` in 14952 *Sun\ C*) # Sun C 5.9 14953 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' 14954 tmp_sharedflag='-G' ;; 14955 *Sun\ F*) # Sun Fortran 8.3 14956 tmp_sharedflag='-G' ;; 14957 *) 14958 tmp_sharedflag='-shared' ;; 14959 esac 14960 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14961 14962 if test $supports_anon_versioning = yes; then 14963 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14964 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14965 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14966 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14967 fi 14968 else 14969 ld_shlibs_F77=no 14970 fi 14971 ;; 14972 14973 netbsd*) 14974 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14975 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14976 wlarc= 14977 else 14978 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14979 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14980 fi 14981 ;; 14982 14983 solaris*) 14984 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14985 ld_shlibs_F77=no 14986 cat <<EOF 1>&2 14987 14988*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14989*** create shared libraries on Solaris systems. Therefore, libtool 14990*** is disabling shared libraries support. We urge you to upgrade GNU 14991*** binutils to release 2.9.1 or newer. Another option is to modify 14992*** your PATH or compiler configuration so that the native linker is 14993*** used, and then restart. 14994 14995EOF 14996 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14997 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14998 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14999 else 15000 ld_shlibs_F77=no 15001 fi 15002 ;; 15003 15004 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 15005 case `$LD -v 2>&1` in 15006 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 15007 ld_shlibs_F77=no 15008 cat <<_LT_EOF 1>&2 15009 15010*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 15011*** reliably create shared libraries on SCO systems. Therefore, libtool 15012*** is disabling shared libraries support. We urge you to upgrade GNU 15013*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 15014*** your PATH or compiler configuration so that the native linker is 15015*** used, and then restart. 15016 15017_LT_EOF 15018 ;; 15019 *) 15020 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15021 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 15022 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 15023 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 15024 else 15025 ld_shlibs_F77=no 15026 fi 15027 ;; 15028 esac 15029 ;; 15030 15031 sunos4*) 15032 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15033 wlarc= 15034 hardcode_direct_F77=yes 15035 hardcode_shlibpath_var_F77=no 15036 ;; 15037 15038 *) 15039 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15040 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15041 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15042 else 15043 ld_shlibs_F77=no 15044 fi 15045 ;; 15046 esac 15047 15048 if test "$ld_shlibs_F77" = no; then 15049 runpath_var= 15050 hardcode_libdir_flag_spec_F77= 15051 export_dynamic_flag_spec_F77= 15052 whole_archive_flag_spec_F77= 15053 fi 15054 else 15055 # PORTME fill in a description of your system's linker (not GNU ld) 15056 case $host_os in 15057 aix3*) 15058 allow_undefined_flag_F77=unsupported 15059 always_export_symbols_F77=yes 15060 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' 15061 # Note: this linker hardcodes the directories in LIBPATH if there 15062 # are no directories specified by -L. 15063 hardcode_minus_L_F77=yes 15064 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 15065 # Neither direct hardcoding nor static linking is supported with a 15066 # broken collect2. 15067 hardcode_direct_F77=unsupported 15068 fi 15069 ;; 15070 15071 aix[4-9]*) 15072 if test "$host_cpu" = ia64; then 15073 # On IA64, the linker does run time linking by default, so we don't 15074 # have to do anything special. 15075 aix_use_runtimelinking=no 15076 exp_sym_flag='-Bexport' 15077 no_entry_flag="" 15078 else 15079 # If we're using GNU nm, then we don't want the "-C" option. 15080 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15081 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 15082 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' 15083 else 15084 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' 15085 fi 15086 aix_use_runtimelinking=no 15087 15088 # Test if we are trying to use run time linking or normal 15089 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15090 # need to do runtime linking. 15091 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 15092 for ld_flag in $LDFLAGS; do 15093 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 15094 aix_use_runtimelinking=yes 15095 break 15096 fi 15097 done 15098 ;; 15099 esac 15100 15101 exp_sym_flag='-bexport' 15102 no_entry_flag='-bnoentry' 15103 fi 15104 15105 # When large executables or shared objects are built, AIX ld can 15106 # have problems creating the table of contents. If linking a library 15107 # or program results in "error TOC overflow" add -mminimal-toc to 15108 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15109 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15110 15111 archive_cmds_F77='' 15112 hardcode_direct_F77=yes 15113 hardcode_libdir_separator_F77=':' 15114 link_all_deplibs_F77=yes 15115 15116 if test "$GCC" = yes; then 15117 case $host_os in aix4.[012]|aix4.[012].*) 15118 # We only want to do this on AIX 4.2 and lower, the check 15119 # below for broken collect2 doesn't work under 4.3+ 15120 collect2name=`${CC} -print-prog-name=collect2` 15121 if test -f "$collect2name" && \ 15122 strings "$collect2name" | grep resolve_lib_name >/dev/null 15123 then 15124 # We have reworked collect2 15125 : 15126 else 15127 # We have old collect2 15128 hardcode_direct_F77=unsupported 15129 # It fails to find uninstalled libraries when the uninstalled 15130 # path is not listed in the libpath. Setting hardcode_minus_L 15131 # to unsupported forces relinking 15132 hardcode_minus_L_F77=yes 15133 hardcode_libdir_flag_spec_F77='-L$libdir' 15134 hardcode_libdir_separator_F77= 15135 fi 15136 ;; 15137 esac 15138 shared_flag='-shared' 15139 if test "$aix_use_runtimelinking" = yes; then 15140 shared_flag="$shared_flag "'${wl}-G' 15141 fi 15142 else 15143 # not using gcc 15144 if test "$host_cpu" = ia64; then 15145 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15146 # chokes on -Wl,-G. The following line is correct: 15147 shared_flag='-G' 15148 else 15149 if test "$aix_use_runtimelinking" = yes; then 15150 shared_flag='${wl}-G' 15151 else 15152 shared_flag='${wl}-bM:SRE' 15153 fi 15154 fi 15155 fi 15156 15157 # It seems that -bexpall does not export symbols beginning with 15158 # underscore (_), so it is better to generate a list of symbols to export. 15159 always_export_symbols_F77=yes 15160 if test "$aix_use_runtimelinking" = yes; then 15161 # Warning - without using the other runtime loading flags (-brtl), 15162 # -berok will link without error, but may produce a broken library. 15163 allow_undefined_flag_F77='-berok' 15164 # Determine the default libpath from the value encoded in an empty executable. 15165 cat >conftest.$ac_ext <<_ACEOF 15166 program main 15167 15168 end 15169_ACEOF 15170rm -f conftest.$ac_objext conftest$ac_exeext 15171if { (ac_try="$ac_link" 15172case "(($ac_try" in 15173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15174 *) ac_try_echo=$ac_try;; 15175esac 15176eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15177$as_echo "$ac_try_echo") >&5 15178 (eval "$ac_link") 2>conftest.er1 15179 ac_status=$? 15180 grep -v '^ *+' conftest.er1 >conftest.err 15181 rm -f conftest.er1 15182 cat conftest.err >&5 15183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15184 (exit $ac_status); } && { 15185 test -z "$ac_f77_werror_flag" || 15186 test ! -s conftest.err 15187 } && test -s conftest$ac_exeext && { 15188 test "$cross_compiling" = yes || 15189 $as_test_x conftest$ac_exeext 15190 }; then 15191 15192lt_aix_libpath_sed=' 15193 /Import File Strings/,/^$/ { 15194 /^0/ { 15195 s/^0 *\(.*\)$/\1/ 15196 p 15197 } 15198 }' 15199aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15200# Check for a 64-bit object if we didn't find anything. 15201if test -z "$aix_libpath"; then 15202 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15203fi 15204else 15205 $as_echo "$as_me: failed program was:" >&5 15206sed 's/^/| /' conftest.$ac_ext >&5 15207 15208 15209fi 15210 15211rm -rf conftest.dSYM 15212rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15213 conftest$ac_exeext conftest.$ac_ext 15214if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15215 15216 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15217 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" 15218 else 15219 if test "$host_cpu" = ia64; then 15220 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 15221 allow_undefined_flag_F77="-z nodefs" 15222 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" 15223 else 15224 # Determine the default libpath from the value encoded in an empty executable. 15225 cat >conftest.$ac_ext <<_ACEOF 15226 program main 15227 15228 end 15229_ACEOF 15230rm -f conftest.$ac_objext conftest$ac_exeext 15231if { (ac_try="$ac_link" 15232case "(($ac_try" in 15233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15234 *) ac_try_echo=$ac_try;; 15235esac 15236eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15237$as_echo "$ac_try_echo") >&5 15238 (eval "$ac_link") 2>conftest.er1 15239 ac_status=$? 15240 grep -v '^ *+' conftest.er1 >conftest.err 15241 rm -f conftest.er1 15242 cat conftest.err >&5 15243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15244 (exit $ac_status); } && { 15245 test -z "$ac_f77_werror_flag" || 15246 test ! -s conftest.err 15247 } && test -s conftest$ac_exeext && { 15248 test "$cross_compiling" = yes || 15249 $as_test_x conftest$ac_exeext 15250 }; then 15251 15252lt_aix_libpath_sed=' 15253 /Import File Strings/,/^$/ { 15254 /^0/ { 15255 s/^0 *\(.*\)$/\1/ 15256 p 15257 } 15258 }' 15259aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15260# Check for a 64-bit object if we didn't find anything. 15261if test -z "$aix_libpath"; then 15262 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15263fi 15264else 15265 $as_echo "$as_me: failed program was:" >&5 15266sed 's/^/| /' conftest.$ac_ext >&5 15267 15268 15269fi 15270 15271rm -rf conftest.dSYM 15272rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15273 conftest$ac_exeext conftest.$ac_ext 15274if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15275 15276 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15277 # Warning - without using the other run time loading flags, 15278 # -berok will link without error, but may produce a broken library. 15279 no_undefined_flag_F77=' ${wl}-bernotok' 15280 allow_undefined_flag_F77=' ${wl}-berok' 15281 # Exported symbols can be pulled into shared objects from archives 15282 whole_archive_flag_spec_F77='$convenience' 15283 archive_cmds_need_lc_F77=yes 15284 # This is similar to how AIX traditionally builds its shared libraries. 15285 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' 15286 fi 15287 fi 15288 ;; 15289 15290 amigaos*) 15291 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)' 15292 hardcode_libdir_flag_spec_F77='-L$libdir' 15293 hardcode_minus_L_F77=yes 15294 # see comment about different semantics on the GNU ld section 15295 ld_shlibs_F77=no 15296 ;; 15297 15298 bsdi[45]*) 15299 export_dynamic_flag_spec_F77=-rdynamic 15300 ;; 15301 15302 cygwin* | mingw* | pw32*) 15303 # When not using gcc, we currently assume that we are using 15304 # Microsoft Visual C++. 15305 # hardcode_libdir_flag_spec is actually meaningless, as there is 15306 # no search path for DLLs. 15307 hardcode_libdir_flag_spec_F77=' ' 15308 allow_undefined_flag_F77=unsupported 15309 # Tell ltmain to make .lib files, not .a files. 15310 libext=lib 15311 # Tell ltmain to make .dll files, not .so files. 15312 shrext_cmds=".dll" 15313 # FIXME: Setting linknames here is a bad hack. 15314 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 15315 # The linker will automatically build a .lib file if we build a DLL. 15316 old_archive_From_new_cmds_F77='true' 15317 # FIXME: Should let the user specify the lib program. 15318 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' 15319 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 15320 enable_shared_with_static_runtimes_F77=yes 15321 ;; 15322 15323 darwin* | rhapsody*) 15324 case $host_os in 15325 rhapsody* | darwin1.[012]) 15326 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 15327 ;; 15328 *) # Darwin 1.3 on 15329 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 15330 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15331 else 15332 case ${MACOSX_DEPLOYMENT_TARGET} in 15333 10.[012]) 15334 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15335 ;; 15336 10.*) 15337 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 15338 ;; 15339 esac 15340 fi 15341 ;; 15342 esac 15343 archive_cmds_need_lc_F77=no 15344 hardcode_direct_F77=no 15345 hardcode_automatic_F77=yes 15346 hardcode_shlibpath_var_F77=unsupported 15347 whole_archive_flag_spec_F77='' 15348 link_all_deplibs_F77=yes 15349 if test "$GCC" = yes ; then 15350 output_verbose_link_cmd='echo' 15351 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 15352 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 15353 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 15354 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 15355 else 15356 case $cc_basename in 15357 xlc*) 15358 output_verbose_link_cmd='echo' 15359 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 15360 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15361 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15362 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}' 15363 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}' 15364 ;; 15365 *) 15366 ld_shlibs_F77=no 15367 ;; 15368 esac 15369 fi 15370 ;; 15371 15372 dgux*) 15373 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15374 hardcode_libdir_flag_spec_F77='-L$libdir' 15375 hardcode_shlibpath_var_F77=no 15376 ;; 15377 15378 freebsd1*) 15379 ld_shlibs_F77=no 15380 ;; 15381 15382 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15383 # support. Future versions do this automatically, but an explicit c++rt0.o 15384 # does not break anything, and helps significantly (at the cost of a little 15385 # extra space). 15386 freebsd2.2*) 15387 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15388 hardcode_libdir_flag_spec_F77='-R$libdir' 15389 hardcode_direct_F77=yes 15390 hardcode_shlibpath_var_F77=no 15391 ;; 15392 15393 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15394 freebsd2*) 15395 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15396 hardcode_direct_F77=yes 15397 hardcode_minus_L_F77=yes 15398 hardcode_shlibpath_var_F77=no 15399 ;; 15400 15401 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15402 freebsd* | dragonfly*) 15403 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 15404 hardcode_libdir_flag_spec_F77='-R$libdir' 15405 hardcode_direct_F77=yes 15406 hardcode_shlibpath_var_F77=no 15407 ;; 15408 15409 hpux9*) 15410 if test "$GCC" = yes; then 15411 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' 15412 else 15413 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' 15414 fi 15415 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15416 hardcode_libdir_separator_F77=: 15417 hardcode_direct_F77=yes 15418 15419 # hardcode_minus_L: Not really in the search PATH, 15420 # but as the default location of the library. 15421 hardcode_minus_L_F77=yes 15422 export_dynamic_flag_spec_F77='${wl}-E' 15423 ;; 15424 15425 hpux10*) 15426 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15427 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15428 else 15429 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15430 fi 15431 if test "$with_gnu_ld" = no; then 15432 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15433 hardcode_libdir_separator_F77=: 15434 15435 hardcode_direct_F77=yes 15436 export_dynamic_flag_spec_F77='${wl}-E' 15437 15438 # hardcode_minus_L: Not really in the search PATH, 15439 # but as the default location of the library. 15440 hardcode_minus_L_F77=yes 15441 fi 15442 ;; 15443 15444 hpux11*) 15445 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15446 case $host_cpu in 15447 hppa*64*) 15448 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15449 ;; 15450 ia64*) 15451 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15452 ;; 15453 *) 15454 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15455 ;; 15456 esac 15457 else 15458 case $host_cpu in 15459 hppa*64*) 15460 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15461 ;; 15462 ia64*) 15463 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15464 ;; 15465 *) 15466 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15467 ;; 15468 esac 15469 fi 15470 if test "$with_gnu_ld" = no; then 15471 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15472 hardcode_libdir_separator_F77=: 15473 15474 case $host_cpu in 15475 hppa*64*|ia64*) 15476 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 15477 hardcode_direct_F77=no 15478 hardcode_shlibpath_var_F77=no 15479 ;; 15480 *) 15481 hardcode_direct_F77=yes 15482 export_dynamic_flag_spec_F77='${wl}-E' 15483 15484 # hardcode_minus_L: Not really in the search PATH, 15485 # but as the default location of the library. 15486 hardcode_minus_L_F77=yes 15487 ;; 15488 esac 15489 fi 15490 ;; 15491 15492 irix5* | irix6* | nonstopux*) 15493 if test "$GCC" = yes; then 15494 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' 15495 else 15496 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' 15497 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 15498 fi 15499 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15500 hardcode_libdir_separator_F77=: 15501 link_all_deplibs_F77=yes 15502 ;; 15503 15504 netbsd*) 15505 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15506 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15507 else 15508 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15509 fi 15510 hardcode_libdir_flag_spec_F77='-R$libdir' 15511 hardcode_direct_F77=yes 15512 hardcode_shlibpath_var_F77=no 15513 ;; 15514 15515 newsos6) 15516 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15517 hardcode_direct_F77=yes 15518 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15519 hardcode_libdir_separator_F77=: 15520 hardcode_shlibpath_var_F77=no 15521 ;; 15522 15523 openbsd*) 15524 if test -f /usr/libexec/ld.so; then 15525 hardcode_direct_F77=yes 15526 hardcode_shlibpath_var_F77=no 15527 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15528 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15529 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 15530 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15531 export_dynamic_flag_spec_F77='${wl}-E' 15532 else 15533 case $host_os in 15534 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15535 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15536 hardcode_libdir_flag_spec_F77='-R$libdir' 15537 ;; 15538 *) 15539 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15540 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15541 ;; 15542 esac 15543 fi 15544 else 15545 ld_shlibs_F77=no 15546 fi 15547 ;; 15548 15549 os2*) 15550 hardcode_libdir_flag_spec_F77='-L$libdir' 15551 hardcode_minus_L_F77=yes 15552 allow_undefined_flag_F77=unsupported 15553 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' 15554 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15555 ;; 15556 15557 osf3*) 15558 if test "$GCC" = yes; then 15559 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15560 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' 15561 else 15562 allow_undefined_flag_F77=' -expect_unresolved \*' 15563 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' 15564 fi 15565 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15566 hardcode_libdir_separator_F77=: 15567 ;; 15568 15569 osf4* | osf5*) # as osf3* with the addition of -msym flag 15570 if test "$GCC" = yes; then 15571 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15572 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' 15573 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15574 else 15575 allow_undefined_flag_F77=' -expect_unresolved \*' 15576 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' 15577 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~ 15578 $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' 15579 15580 # Both c and cxx compiler support -rpath directly 15581 hardcode_libdir_flag_spec_F77='-rpath $libdir' 15582 fi 15583 hardcode_libdir_separator_F77=: 15584 ;; 15585 15586 solaris*) 15587 no_undefined_flag_F77=' -z text' 15588 if test "$GCC" = yes; then 15589 wlarc='${wl}' 15590 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15591 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15592 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15593 else 15594 wlarc='' 15595 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15596 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15597 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15598 fi 15599 hardcode_libdir_flag_spec_F77='-R$libdir' 15600 hardcode_shlibpath_var_F77=no 15601 case $host_os in 15602 solaris2.[0-5] | solaris2.[0-5].*) ;; 15603 *) 15604 # The compiler driver will combine and reorder linker options, 15605 # but understands `-z linker_flag'. GCC discards it without `$wl', 15606 # but is careful enough not to reorder. 15607 # Supported since Solaris 2.6 (maybe 2.5.1?) 15608 if test "$GCC" = yes; then 15609 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 15610 else 15611 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' 15612 fi 15613 ;; 15614 esac 15615 link_all_deplibs_F77=yes 15616 ;; 15617 15618 sunos4*) 15619 if test "x$host_vendor" = xsequent; then 15620 # Use $CC to link under sequent, because it throws in some extra .o 15621 # files that make .init and .fini sections work. 15622 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15623 else 15624 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15625 fi 15626 hardcode_libdir_flag_spec_F77='-L$libdir' 15627 hardcode_direct_F77=yes 15628 hardcode_minus_L_F77=yes 15629 hardcode_shlibpath_var_F77=no 15630 ;; 15631 15632 sysv4) 15633 case $host_vendor in 15634 sni) 15635 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15636 hardcode_direct_F77=yes # is this really true??? 15637 ;; 15638 siemens) 15639 ## LD is ld it makes a PLAMLIB 15640 ## CC just makes a GrossModule. 15641 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15642 reload_cmds_F77='$CC -r -o $output$reload_objs' 15643 hardcode_direct_F77=no 15644 ;; 15645 motorola) 15646 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15647 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 15648 ;; 15649 esac 15650 runpath_var='LD_RUN_PATH' 15651 hardcode_shlibpath_var_F77=no 15652 ;; 15653 15654 sysv4.3*) 15655 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15656 hardcode_shlibpath_var_F77=no 15657 export_dynamic_flag_spec_F77='-Bexport' 15658 ;; 15659 15660 sysv4*MP*) 15661 if test -d /usr/nec; then 15662 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15663 hardcode_shlibpath_var_F77=no 15664 runpath_var=LD_RUN_PATH 15665 hardcode_runpath_var=yes 15666 ld_shlibs_F77=yes 15667 fi 15668 ;; 15669 15670 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15671 no_undefined_flag_F77='${wl}-z,text' 15672 archive_cmds_need_lc_F77=no 15673 hardcode_shlibpath_var_F77=no 15674 runpath_var='LD_RUN_PATH' 15675 15676 if test "$GCC" = yes; then 15677 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15678 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15679 else 15680 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15681 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15682 fi 15683 ;; 15684 15685 sysv5* | sco3.2v5* | sco5v6*) 15686 # Note: We can NOT use -z defs as we might desire, because we do not 15687 # link with -lc, and that would cause any symbols used from libc to 15688 # always be unresolved, which means just about no library would 15689 # ever link correctly. If we're not using GNU ld we use -z text 15690 # though, which does catch some bad symbols but isn't as heavy-handed 15691 # as -z defs. 15692 no_undefined_flag_F77='${wl}-z,text' 15693 allow_undefined_flag_F77='${wl}-z,nodefs' 15694 archive_cmds_need_lc_F77=no 15695 hardcode_shlibpath_var_F77=no 15696 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 15697 hardcode_libdir_separator_F77=':' 15698 link_all_deplibs_F77=yes 15699 export_dynamic_flag_spec_F77='${wl}-Bexport' 15700 runpath_var='LD_RUN_PATH' 15701 15702 if test "$GCC" = yes; then 15703 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15704 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15705 else 15706 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15707 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15708 fi 15709 ;; 15710 15711 uts4*) 15712 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15713 hardcode_libdir_flag_spec_F77='-L$libdir' 15714 hardcode_shlibpath_var_F77=no 15715 ;; 15716 15717 *) 15718 ld_shlibs_F77=no 15719 ;; 15720 esac 15721 fi 15722 15723{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 15724$as_echo "$ld_shlibs_F77" >&6; } 15725test "$ld_shlibs_F77" = no && can_build_shared=no 15726 15727# 15728# Do we need to explicitly link libc? 15729# 15730case "x$archive_cmds_need_lc_F77" in 15731x|xyes) 15732 # Assume -lc should be added 15733 archive_cmds_need_lc_F77=yes 15734 15735 if test "$enable_shared" = yes && test "$GCC" = yes; then 15736 case $archive_cmds_F77 in 15737 *'~'*) 15738 # FIXME: we may have to deal with multi-command sequences. 15739 ;; 15740 '$CC '*) 15741 # Test whether the compiler implicitly links with -lc since on some 15742 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15743 # to ld, don't add -lc before -lgcc. 15744 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15745$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15746 $rm conftest* 15747 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15748 15749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15750 (eval $ac_compile) 2>&5 15751 ac_status=$? 15752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15753 (exit $ac_status); } 2>conftest.err; then 15754 soname=conftest 15755 lib=conftest 15756 libobjs=conftest.$ac_objext 15757 deplibs= 15758 wl=$lt_prog_compiler_wl_F77 15759 pic_flag=$lt_prog_compiler_pic_F77 15760 compiler_flags=-v 15761 linker_flags=-v 15762 verstring= 15763 output_objdir=. 15764 libname=conftest 15765 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15766 allow_undefined_flag_F77= 15767 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15768 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15769 ac_status=$? 15770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15771 (exit $ac_status); } 15772 then 15773 archive_cmds_need_lc_F77=no 15774 else 15775 archive_cmds_need_lc_F77=yes 15776 fi 15777 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15778 else 15779 cat conftest.err 1>&5 15780 fi 15781 $rm conftest* 15782 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15783$as_echo "$archive_cmds_need_lc_F77" >&6; } 15784 ;; 15785 esac 15786 fi 15787 ;; 15788esac 15789 15790{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15791$as_echo_n "checking dynamic linker characteristics... " >&6; } 15792library_names_spec= 15793libname_spec='lib$name' 15794soname_spec= 15795shrext_cmds=".so" 15796postinstall_cmds= 15797postuninstall_cmds= 15798finish_cmds= 15799finish_eval= 15800shlibpath_var= 15801shlibpath_overrides_runpath=unknown 15802version_type=none 15803dynamic_linker="$host_os ld.so" 15804sys_lib_dlsearch_path_spec="/lib /usr/lib" 15805 15806need_lib_prefix=unknown 15807hardcode_into_libs=no 15808 15809# when you set need_version to no, make sure it does not cause -set_version 15810# flags to be left without arguments 15811need_version=unknown 15812 15813case $host_os in 15814aix3*) 15815 version_type=linux 15816 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15817 shlibpath_var=LIBPATH 15818 15819 # AIX 3 has no versioning support, so we append a major version to the name. 15820 soname_spec='${libname}${release}${shared_ext}$major' 15821 ;; 15822 15823aix[4-9]*) 15824 version_type=linux 15825 need_lib_prefix=no 15826 need_version=no 15827 hardcode_into_libs=yes 15828 if test "$host_cpu" = ia64; then 15829 # AIX 5 supports IA64 15830 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15831 shlibpath_var=LD_LIBRARY_PATH 15832 else 15833 # With GCC up to 2.95.x, collect2 would create an import file 15834 # for dependence libraries. The import file would start with 15835 # the line `#! .'. This would cause the generated library to 15836 # depend on `.', always an invalid library. This was fixed in 15837 # development snapshots of GCC prior to 3.0. 15838 case $host_os in 15839 aix4 | aix4.[01] | aix4.[01].*) 15840 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15841 echo ' yes ' 15842 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15843 : 15844 else 15845 can_build_shared=no 15846 fi 15847 ;; 15848 esac 15849 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15850 # soname into executable. Probably we can add versioning support to 15851 # collect2, so additional links can be useful in future. 15852 if test "$aix_use_runtimelinking" = yes; then 15853 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15854 # instead of lib<name>.a to let people know that these are not 15855 # typical AIX shared libraries. 15856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15857 else 15858 # We preserve .a as extension for shared libraries through AIX4.2 15859 # and later when we are not doing run time linking. 15860 library_names_spec='${libname}${release}.a $libname.a' 15861 soname_spec='${libname}${release}${shared_ext}$major' 15862 fi 15863 shlibpath_var=LIBPATH 15864 fi 15865 ;; 15866 15867amigaos*) 15868 library_names_spec='$libname.ixlibrary $libname.a' 15869 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15870 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' 15871 ;; 15872 15873beos*) 15874 library_names_spec='${libname}${shared_ext}' 15875 dynamic_linker="$host_os ld.so" 15876 shlibpath_var=LIBRARY_PATH 15877 ;; 15878 15879bsdi[45]*) 15880 version_type=linux 15881 need_version=no 15882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15883 soname_spec='${libname}${release}${shared_ext}$major' 15884 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15885 shlibpath_var=LD_LIBRARY_PATH 15886 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15887 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15888 # the default ld.so.conf also contains /usr/contrib/lib and 15889 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15890 # libtool to hard-code these into programs 15891 ;; 15892 15893cygwin* | mingw* | pw32*) 15894 version_type=windows 15895 shrext_cmds=".dll" 15896 need_version=no 15897 need_lib_prefix=no 15898 15899 case $GCC,$host_os in 15900 yes,cygwin* | yes,mingw* | yes,pw32*) 15901 library_names_spec='$libname.dll.a' 15902 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15903 postinstall_cmds='base_file=`basename \${file}`~ 15904 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15905 dldir=$destdir/`dirname \$dlpath`~ 15906 test -d \$dldir || mkdir -p \$dldir~ 15907 $install_prog $dir/$dlname \$dldir/$dlname~ 15908 chmod a+x \$dldir/$dlname' 15909 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15910 dlpath=$dir/\$dldll~ 15911 $rm \$dlpath' 15912 shlibpath_overrides_runpath=yes 15913 15914 case $host_os in 15915 cygwin*) 15916 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15917 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15918 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15919 ;; 15920 mingw*) 15921 # MinGW DLLs use traditional 'lib' prefix 15922 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15923 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15924 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15925 # It is most probably a Windows format PATH printed by 15926 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15927 # path with ; separators, and with drive letters. We can handle the 15928 # drive letters (cygwin fileutils understands them), so leave them, 15929 # especially as we might pass files found there to a mingw objdump, 15930 # which wouldn't understand a cygwinified path. Ahh. 15931 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15932 else 15933 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15934 fi 15935 ;; 15936 pw32*) 15937 # pw32 DLLs use 'pw' prefix rather than 'lib' 15938 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15939 ;; 15940 esac 15941 ;; 15942 15943 *) 15944 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15945 ;; 15946 esac 15947 dynamic_linker='Win32 ld.exe' 15948 # FIXME: first we should search . and the directory the executable is in 15949 shlibpath_var=PATH 15950 ;; 15951 15952darwin* | rhapsody*) 15953 dynamic_linker="$host_os dyld" 15954 version_type=darwin 15955 need_lib_prefix=no 15956 need_version=no 15957 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15958 soname_spec='${libname}${release}${major}$shared_ext' 15959 shlibpath_overrides_runpath=yes 15960 shlibpath_var=DYLD_LIBRARY_PATH 15961 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15962 15963 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15964 ;; 15965 15966dgux*) 15967 version_type=linux 15968 need_lib_prefix=no 15969 need_version=no 15970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15971 soname_spec='${libname}${release}${shared_ext}$major' 15972 shlibpath_var=LD_LIBRARY_PATH 15973 ;; 15974 15975freebsd1*) 15976 dynamic_linker=no 15977 ;; 15978 15979freebsd* | dragonfly*) 15980 # DragonFly does not have aout. When/if they implement a new 15981 # versioning mechanism, adjust this. 15982 if test -x /usr/bin/objformat; then 15983 objformat=`/usr/bin/objformat` 15984 else 15985 case $host_os in 15986 freebsd[123]*) objformat=aout ;; 15987 *) objformat=elf ;; 15988 esac 15989 fi 15990 version_type=freebsd-$objformat 15991 case $version_type in 15992 freebsd-elf*) 15993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15994 need_version=no 15995 need_lib_prefix=no 15996 ;; 15997 freebsd-*) 15998 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15999 need_version=yes 16000 ;; 16001 esac 16002 shlibpath_var=LD_LIBRARY_PATH 16003 case $host_os in 16004 freebsd2*) 16005 shlibpath_overrides_runpath=yes 16006 ;; 16007 freebsd3.[01]* | freebsdelf3.[01]*) 16008 shlibpath_overrides_runpath=yes 16009 hardcode_into_libs=yes 16010 ;; 16011 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16012 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16013 shlibpath_overrides_runpath=no 16014 hardcode_into_libs=yes 16015 ;; 16016 *) # from 4.6 on, and DragonFly 16017 shlibpath_overrides_runpath=yes 16018 hardcode_into_libs=yes 16019 ;; 16020 esac 16021 ;; 16022 16023gnu*) 16024 version_type=linux 16025 need_lib_prefix=no 16026 need_version=no 16027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16028 soname_spec='${libname}${release}${shared_ext}$major' 16029 shlibpath_var=LD_LIBRARY_PATH 16030 hardcode_into_libs=yes 16031 ;; 16032 16033hpux9* | hpux10* | hpux11*) 16034 # Give a soname corresponding to the major version so that dld.sl refuses to 16035 # link against other versions. 16036 version_type=sunos 16037 need_lib_prefix=no 16038 need_version=no 16039 case $host_cpu in 16040 ia64*) 16041 shrext_cmds='.so' 16042 hardcode_into_libs=yes 16043 dynamic_linker="$host_os dld.so" 16044 shlibpath_var=LD_LIBRARY_PATH 16045 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16047 soname_spec='${libname}${release}${shared_ext}$major' 16048 if test "X$HPUX_IA64_MODE" = X32; then 16049 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16050 else 16051 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16052 fi 16053 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16054 ;; 16055 hppa*64*) 16056 shrext_cmds='.sl' 16057 hardcode_into_libs=yes 16058 dynamic_linker="$host_os dld.sl" 16059 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16060 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16062 soname_spec='${libname}${release}${shared_ext}$major' 16063 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16064 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16065 ;; 16066 *) 16067 shrext_cmds='.sl' 16068 dynamic_linker="$host_os dld.sl" 16069 shlibpath_var=SHLIB_PATH 16070 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16072 soname_spec='${libname}${release}${shared_ext}$major' 16073 ;; 16074 esac 16075 # HP-UX runs *really* slowly unless shared libraries are mode 555. 16076 postinstall_cmds='chmod 555 $lib' 16077 ;; 16078 16079interix[3-9]*) 16080 version_type=linux 16081 need_lib_prefix=no 16082 need_version=no 16083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16084 soname_spec='${libname}${release}${shared_ext}$major' 16085 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16086 shlibpath_var=LD_LIBRARY_PATH 16087 shlibpath_overrides_runpath=no 16088 hardcode_into_libs=yes 16089 ;; 16090 16091irix5* | irix6* | nonstopux*) 16092 case $host_os in 16093 nonstopux*) version_type=nonstopux ;; 16094 *) 16095 if test "$lt_cv_prog_gnu_ld" = yes; then 16096 version_type=linux 16097 else 16098 version_type=irix 16099 fi ;; 16100 esac 16101 need_lib_prefix=no 16102 need_version=no 16103 soname_spec='${libname}${release}${shared_ext}$major' 16104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16105 case $host_os in 16106 irix5* | nonstopux*) 16107 libsuff= shlibsuff= 16108 ;; 16109 *) 16110 case $LD in # libtool.m4 will add one of these switches to LD 16111 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16112 libsuff= shlibsuff= libmagic=32-bit;; 16113 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16114 libsuff=32 shlibsuff=N32 libmagic=N32;; 16115 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16116 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16117 *) libsuff= shlibsuff= libmagic=never-match;; 16118 esac 16119 ;; 16120 esac 16121 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16122 shlibpath_overrides_runpath=no 16123 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16124 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16125 hardcode_into_libs=yes 16126 ;; 16127 16128# No shared lib support for Linux oldld, aout, or coff. 16129linux*oldld* | linux*aout* | linux*coff*) 16130 dynamic_linker=no 16131 ;; 16132 16133# This must be Linux ELF. 16134linux* | k*bsd*-gnu) 16135 version_type=linux 16136 need_lib_prefix=no 16137 need_version=no 16138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16139 soname_spec='${libname}${release}${shared_ext}$major' 16140 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16141 shlibpath_var=LD_LIBRARY_PATH 16142 shlibpath_overrides_runpath=no 16143 # This implies no fast_install, which is unacceptable. 16144 # Some rework will be needed to allow for fast_install 16145 # before this can be enabled. 16146 hardcode_into_libs=yes 16147 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16148 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16149 16150 # Append ld.so.conf contents to the search path 16151 if test -f /etc/ld.so.conf; then 16152 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' ' '` 16153 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 16154 fi 16155 16156 # We used to test for /lib/ld.so.1 and disable shared libraries on 16157 # powerpc, because MkLinux only supported shared libraries with the 16158 # GNU dynamic linker. Since this was broken with cross compilers, 16159 # most powerpc-linux boxes support dynamic linking these days and 16160 # people can always --disable-shared, the test was removed, and we 16161 # assume the GNU/Linux dynamic linker is in use. 16162 dynamic_linker='GNU/Linux ld.so' 16163 ;; 16164 16165netbsd*) 16166 version_type=sunos 16167 need_lib_prefix=no 16168 need_version=no 16169 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16171 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16172 dynamic_linker='NetBSD (a.out) ld.so' 16173 else 16174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16175 soname_spec='${libname}${release}${shared_ext}$major' 16176 dynamic_linker='NetBSD ld.elf_so' 16177 fi 16178 shlibpath_var=LD_LIBRARY_PATH 16179 shlibpath_overrides_runpath=yes 16180 hardcode_into_libs=yes 16181 ;; 16182 16183newsos6) 16184 version_type=linux 16185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16186 shlibpath_var=LD_LIBRARY_PATH 16187 shlibpath_overrides_runpath=yes 16188 ;; 16189 16190nto-qnx*) 16191 version_type=linux 16192 need_lib_prefix=no 16193 need_version=no 16194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16195 soname_spec='${libname}${release}${shared_ext}$major' 16196 shlibpath_var=LD_LIBRARY_PATH 16197 shlibpath_overrides_runpath=yes 16198 ;; 16199 16200openbsd*) 16201 version_type=sunos 16202 sys_lib_dlsearch_path_spec="/usr/lib" 16203 need_lib_prefix=no 16204 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16205 case $host_os in 16206 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16207 *) need_version=no ;; 16208 esac 16209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16210 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16211 shlibpath_var=LD_LIBRARY_PATH 16212 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16213 case $host_os in 16214 openbsd2.[89] | openbsd2.[89].*) 16215 shlibpath_overrides_runpath=no 16216 ;; 16217 *) 16218 shlibpath_overrides_runpath=yes 16219 ;; 16220 esac 16221 else 16222 shlibpath_overrides_runpath=yes 16223 fi 16224 ;; 16225 16226os2*) 16227 libname_spec='$name' 16228 shrext_cmds=".dll" 16229 need_lib_prefix=no 16230 library_names_spec='$libname${shared_ext} $libname.a' 16231 dynamic_linker='OS/2 ld.exe' 16232 shlibpath_var=LIBPATH 16233 ;; 16234 16235osf3* | osf4* | osf5*) 16236 version_type=osf 16237 need_lib_prefix=no 16238 need_version=no 16239 soname_spec='${libname}${release}${shared_ext}$major' 16240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16241 shlibpath_var=LD_LIBRARY_PATH 16242 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16243 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16244 ;; 16245 16246rdos*) 16247 dynamic_linker=no 16248 ;; 16249 16250solaris*) 16251 version_type=linux 16252 need_lib_prefix=no 16253 need_version=no 16254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16255 soname_spec='${libname}${release}${shared_ext}$major' 16256 shlibpath_var=LD_LIBRARY_PATH 16257 shlibpath_overrides_runpath=yes 16258 hardcode_into_libs=yes 16259 # ldd complains unless libraries are executable 16260 postinstall_cmds='chmod +x $lib' 16261 ;; 16262 16263sunos4*) 16264 version_type=sunos 16265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16266 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16267 shlibpath_var=LD_LIBRARY_PATH 16268 shlibpath_overrides_runpath=yes 16269 if test "$with_gnu_ld" = yes; then 16270 need_lib_prefix=no 16271 fi 16272 need_version=yes 16273 ;; 16274 16275sysv4 | sysv4.3*) 16276 version_type=linux 16277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16278 soname_spec='${libname}${release}${shared_ext}$major' 16279 shlibpath_var=LD_LIBRARY_PATH 16280 case $host_vendor in 16281 sni) 16282 shlibpath_overrides_runpath=no 16283 need_lib_prefix=no 16284 export_dynamic_flag_spec='${wl}-Blargedynsym' 16285 runpath_var=LD_RUN_PATH 16286 ;; 16287 siemens) 16288 need_lib_prefix=no 16289 ;; 16290 motorola) 16291 need_lib_prefix=no 16292 need_version=no 16293 shlibpath_overrides_runpath=no 16294 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16295 ;; 16296 esac 16297 ;; 16298 16299sysv4*MP*) 16300 if test -d /usr/nec ;then 16301 version_type=linux 16302 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16303 soname_spec='$libname${shared_ext}.$major' 16304 shlibpath_var=LD_LIBRARY_PATH 16305 fi 16306 ;; 16307 16308sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16309 version_type=freebsd-elf 16310 need_lib_prefix=no 16311 need_version=no 16312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16313 soname_spec='${libname}${release}${shared_ext}$major' 16314 shlibpath_var=LD_LIBRARY_PATH 16315 hardcode_into_libs=yes 16316 if test "$with_gnu_ld" = yes; then 16317 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16318 shlibpath_overrides_runpath=no 16319 else 16320 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16321 shlibpath_overrides_runpath=yes 16322 case $host_os in 16323 sco3.2v5*) 16324 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16325 ;; 16326 esac 16327 fi 16328 sys_lib_dlsearch_path_spec='/usr/lib' 16329 ;; 16330 16331uts4*) 16332 version_type=linux 16333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16334 soname_spec='${libname}${release}${shared_ext}$major' 16335 shlibpath_var=LD_LIBRARY_PATH 16336 ;; 16337 16338*) 16339 dynamic_linker=no 16340 ;; 16341esac 16342{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 16343$as_echo "$dynamic_linker" >&6; } 16344test "$dynamic_linker" = no && can_build_shared=no 16345 16346if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 16347 $as_echo_n "(cached) " >&6 16348else 16349 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 16350fi 16351 16352sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 16353if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 16354 $as_echo_n "(cached) " >&6 16355else 16356 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 16357fi 16358 16359sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 16360 16361variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16362if test "$GCC" = yes; then 16363 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16364fi 16365 16366{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 16367$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 16368hardcode_action_F77= 16369if test -n "$hardcode_libdir_flag_spec_F77" || \ 16370 test -n "$runpath_var_F77" || \ 16371 test "X$hardcode_automatic_F77" = "Xyes" ; then 16372 16373 # We can hardcode non-existant directories. 16374 if test "$hardcode_direct_F77" != no && 16375 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16376 # have to relink, otherwise we might link with an installed library 16377 # when we should be linking with a yet-to-be-installed one 16378 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 16379 test "$hardcode_minus_L_F77" != no; then 16380 # Linking always hardcodes the temporary library directory. 16381 hardcode_action_F77=relink 16382 else 16383 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16384 hardcode_action_F77=immediate 16385 fi 16386else 16387 # We cannot hardcode anything, or else we can only hardcode existing 16388 # directories. 16389 hardcode_action_F77=unsupported 16390fi 16391{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 16392$as_echo "$hardcode_action_F77" >&6; } 16393 16394if test "$hardcode_action_F77" = relink; then 16395 # Fast installation is not supported 16396 enable_fast_install=no 16397elif test "$shlibpath_overrides_runpath" = yes || 16398 test "$enable_shared" = no; then 16399 # Fast installation is not necessary 16400 enable_fast_install=needless 16401fi 16402 16403 16404# The else clause should only fire when bootstrapping the 16405# libtool distribution, otherwise you forgot to ship ltmain.sh 16406# with your package, and you will get complaints that there are 16407# no rules to generate ltmain.sh. 16408if test -f "$ltmain"; then 16409 # See if we are running on zsh, and set the options which allow our commands through 16410 # without removal of \ escapes. 16411 if test -n "${ZSH_VERSION+set}" ; then 16412 setopt NO_GLOB_SUBST 16413 fi 16414 # Now quote all the things that may contain metacharacters while being 16415 # careful not to overquote the AC_SUBSTed values. We take copies of the 16416 # variables and quote the copies for generation of the libtool script. 16417 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 16418 SED SHELL STRIP \ 16419 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 16420 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 16421 deplibs_check_method reload_flag reload_cmds need_locks \ 16422 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 16423 lt_cv_sys_global_symbol_to_c_name_address \ 16424 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 16425 old_postinstall_cmds old_postuninstall_cmds \ 16426 compiler_F77 \ 16427 CC_F77 \ 16428 LD_F77 \ 16429 lt_prog_compiler_wl_F77 \ 16430 lt_prog_compiler_pic_F77 \ 16431 lt_prog_compiler_static_F77 \ 16432 lt_prog_compiler_no_builtin_flag_F77 \ 16433 export_dynamic_flag_spec_F77 \ 16434 thread_safe_flag_spec_F77 \ 16435 whole_archive_flag_spec_F77 \ 16436 enable_shared_with_static_runtimes_F77 \ 16437 old_archive_cmds_F77 \ 16438 old_archive_from_new_cmds_F77 \ 16439 predep_objects_F77 \ 16440 postdep_objects_F77 \ 16441 predeps_F77 \ 16442 postdeps_F77 \ 16443 compiler_lib_search_path_F77 \ 16444 compiler_lib_search_dirs_F77 \ 16445 archive_cmds_F77 \ 16446 archive_expsym_cmds_F77 \ 16447 postinstall_cmds_F77 \ 16448 postuninstall_cmds_F77 \ 16449 old_archive_from_expsyms_cmds_F77 \ 16450 allow_undefined_flag_F77 \ 16451 no_undefined_flag_F77 \ 16452 export_symbols_cmds_F77 \ 16453 hardcode_libdir_flag_spec_F77 \ 16454 hardcode_libdir_flag_spec_ld_F77 \ 16455 hardcode_libdir_separator_F77 \ 16456 hardcode_automatic_F77 \ 16457 module_cmds_F77 \ 16458 module_expsym_cmds_F77 \ 16459 lt_cv_prog_compiler_c_o_F77 \ 16460 fix_srcfile_path_F77 \ 16461 exclude_expsyms_F77 \ 16462 include_expsyms_F77; do 16463 16464 case $var in 16465 old_archive_cmds_F77 | \ 16466 old_archive_from_new_cmds_F77 | \ 16467 archive_cmds_F77 | \ 16468 archive_expsym_cmds_F77 | \ 16469 module_cmds_F77 | \ 16470 module_expsym_cmds_F77 | \ 16471 old_archive_from_expsyms_cmds_F77 | \ 16472 export_symbols_cmds_F77 | \ 16473 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 16474 postinstall_cmds | postuninstall_cmds | \ 16475 old_postinstall_cmds | old_postuninstall_cmds | \ 16476 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 16477 # Double-quote double-evaled strings. 16478 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 16479 ;; 16480 *) 16481 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 16482 ;; 16483 esac 16484 done 16485 16486 case $lt_echo in 16487 *'\$0 --fallback-echo"') 16488 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 16489 ;; 16490 esac 16491 16492cfgfile="$ofile" 16493 16494 cat <<__EOF__ >> "$cfgfile" 16495# ### BEGIN LIBTOOL TAG CONFIG: $tagname 16496 16497# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16498 16499# Shell to use when invoking shell scripts. 16500SHELL=$lt_SHELL 16501 16502# Whether or not to build shared libraries. 16503build_libtool_libs=$enable_shared 16504 16505# Whether or not to build static libraries. 16506build_old_libs=$enable_static 16507 16508# Whether or not to add -lc for building shared libraries. 16509build_libtool_need_lc=$archive_cmds_need_lc_F77 16510 16511# Whether or not to disallow shared libs when runtime libs are static 16512allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 16513 16514# Whether or not to optimize for fast installation. 16515fast_install=$enable_fast_install 16516 16517# The host system. 16518host_alias=$host_alias 16519host=$host 16520host_os=$host_os 16521 16522# The build system. 16523build_alias=$build_alias 16524build=$build 16525build_os=$build_os 16526 16527# An echo program that does not interpret backslashes. 16528echo=$lt_echo 16529 16530# The archiver. 16531AR=$lt_AR 16532AR_FLAGS=$lt_AR_FLAGS 16533 16534# A C compiler. 16535LTCC=$lt_LTCC 16536 16537# LTCC compiler flags. 16538LTCFLAGS=$lt_LTCFLAGS 16539 16540# A language-specific compiler. 16541CC=$lt_compiler_F77 16542 16543# Is the compiler the GNU C compiler? 16544with_gcc=$GCC_F77 16545 16546# An ERE matcher. 16547EGREP=$lt_EGREP 16548 16549# The linker used to build libraries. 16550LD=$lt_LD_F77 16551 16552# Whether we need hard or soft links. 16553LN_S=$lt_LN_S 16554 16555# A BSD-compatible nm program. 16556NM=$lt_NM 16557 16558# A symbol stripping program 16559STRIP=$lt_STRIP 16560 16561# Used to examine libraries when file_magic_cmd begins "file" 16562MAGIC_CMD=$MAGIC_CMD 16563 16564# Used on cygwin: DLL creation program. 16565DLLTOOL="$DLLTOOL" 16566 16567# Used on cygwin: object dumper. 16568OBJDUMP="$OBJDUMP" 16569 16570# Used on cygwin: assembler. 16571AS="$AS" 16572 16573# The name of the directory that contains temporary libtool files. 16574objdir=$objdir 16575 16576# How to create reloadable object files. 16577reload_flag=$lt_reload_flag 16578reload_cmds=$lt_reload_cmds 16579 16580# How to pass a linker flag through the compiler. 16581wl=$lt_lt_prog_compiler_wl_F77 16582 16583# Object file suffix (normally "o"). 16584objext="$ac_objext" 16585 16586# Old archive suffix (normally "a"). 16587libext="$libext" 16588 16589# Shared library suffix (normally ".so"). 16590shrext_cmds='$shrext_cmds' 16591 16592# Executable file suffix (normally ""). 16593exeext="$exeext" 16594 16595# Additional compiler flags for building library objects. 16596pic_flag=$lt_lt_prog_compiler_pic_F77 16597pic_mode=$pic_mode 16598 16599# What is the maximum length of a command? 16600max_cmd_len=$lt_cv_sys_max_cmd_len 16601 16602# Does compiler simultaneously support -c and -o options? 16603compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 16604 16605# Must we lock files when doing compilation? 16606need_locks=$lt_need_locks 16607 16608# Do we need the lib prefix for modules? 16609need_lib_prefix=$need_lib_prefix 16610 16611# Do we need a version for libraries? 16612need_version=$need_version 16613 16614# Whether dlopen is supported. 16615dlopen_support=$enable_dlopen 16616 16617# Whether dlopen of programs is supported. 16618dlopen_self=$enable_dlopen_self 16619 16620# Whether dlopen of statically linked programs is supported. 16621dlopen_self_static=$enable_dlopen_self_static 16622 16623# Compiler flag to prevent dynamic linking. 16624link_static_flag=$lt_lt_prog_compiler_static_F77 16625 16626# Compiler flag to turn off builtin functions. 16627no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 16628 16629# Compiler flag to allow reflexive dlopens. 16630export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 16631 16632# Compiler flag to generate shared objects directly from archives. 16633whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 16634 16635# Compiler flag to generate thread-safe objects. 16636thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 16637 16638# Library versioning type. 16639version_type=$version_type 16640 16641# Format of library name prefix. 16642libname_spec=$lt_libname_spec 16643 16644# List of archive names. First name is the real one, the rest are links. 16645# The last name is the one that the linker finds with -lNAME. 16646library_names_spec=$lt_library_names_spec 16647 16648# The coded name of the library, if different from the real name. 16649soname_spec=$lt_soname_spec 16650 16651# Commands used to build and install an old-style archive. 16652RANLIB=$lt_RANLIB 16653old_archive_cmds=$lt_old_archive_cmds_F77 16654old_postinstall_cmds=$lt_old_postinstall_cmds 16655old_postuninstall_cmds=$lt_old_postuninstall_cmds 16656 16657# Create an old-style archive from a shared archive. 16658old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 16659 16660# Create a temporary old-style archive to link instead of a shared archive. 16661old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 16662 16663# Commands used to build and install a shared archive. 16664archive_cmds=$lt_archive_cmds_F77 16665archive_expsym_cmds=$lt_archive_expsym_cmds_F77 16666postinstall_cmds=$lt_postinstall_cmds 16667postuninstall_cmds=$lt_postuninstall_cmds 16668 16669# Commands used to build a loadable module (assumed same as above if empty) 16670module_cmds=$lt_module_cmds_F77 16671module_expsym_cmds=$lt_module_expsym_cmds_F77 16672 16673# Commands to strip libraries. 16674old_striplib=$lt_old_striplib 16675striplib=$lt_striplib 16676 16677# Dependencies to place before the objects being linked to create a 16678# shared library. 16679predep_objects=$lt_predep_objects_F77 16680 16681# Dependencies to place after the objects being linked to create a 16682# shared library. 16683postdep_objects=$lt_postdep_objects_F77 16684 16685# Dependencies to place before the objects being linked to create a 16686# shared library. 16687predeps=$lt_predeps_F77 16688 16689# Dependencies to place after the objects being linked to create a 16690# shared library. 16691postdeps=$lt_postdeps_F77 16692 16693# The directories searched by this compiler when creating a shared 16694# library 16695compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77 16696 16697# The library search path used internally by the compiler when linking 16698# a shared library. 16699compiler_lib_search_path=$lt_compiler_lib_search_path_F77 16700 16701# Method to check whether dependent libraries are shared objects. 16702deplibs_check_method=$lt_deplibs_check_method 16703 16704# Command to use when deplibs_check_method == file_magic. 16705file_magic_cmd=$lt_file_magic_cmd 16706 16707# Flag that allows shared libraries with undefined symbols to be built. 16708allow_undefined_flag=$lt_allow_undefined_flag_F77 16709 16710# Flag that forces no undefined symbols. 16711no_undefined_flag=$lt_no_undefined_flag_F77 16712 16713# Commands used to finish a libtool library installation in a directory. 16714finish_cmds=$lt_finish_cmds 16715 16716# Same as above, but a single script fragment to be evaled but not shown. 16717finish_eval=$lt_finish_eval 16718 16719# Take the output of nm and produce a listing of raw symbols and C names. 16720global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16721 16722# Transform the output of nm in a proper C declaration 16723global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16724 16725# Transform the output of nm in a C name address pair 16726global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16727 16728# This is the shared library runtime path variable. 16729runpath_var=$runpath_var 16730 16731# This is the shared library path variable. 16732shlibpath_var=$shlibpath_var 16733 16734# Is shlibpath searched before the hard-coded library search path? 16735shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16736 16737# How to hardcode a shared library path into an executable. 16738hardcode_action=$hardcode_action_F77 16739 16740# Whether we should hardcode library paths into libraries. 16741hardcode_into_libs=$hardcode_into_libs 16742 16743# Flag to hardcode \$libdir into a binary during linking. 16744# This must work even if \$libdir does not exist. 16745hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16746 16747# If ld is used when linking, flag to hardcode \$libdir into 16748# a binary during linking. This must work even if \$libdir does 16749# not exist. 16750hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16751 16752# Whether we need a single -rpath flag with a separated argument. 16753hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16754 16755# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16756# resulting binary. 16757hardcode_direct=$hardcode_direct_F77 16758 16759# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16760# resulting binary. 16761hardcode_minus_L=$hardcode_minus_L_F77 16762 16763# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16764# the resulting binary. 16765hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16766 16767# Set to yes if building a shared library automatically hardcodes DIR into the library 16768# and all subsequent libraries and executables linked against it. 16769hardcode_automatic=$hardcode_automatic_F77 16770 16771# Variables whose values should be saved in libtool wrapper scripts and 16772# restored at relink time. 16773variables_saved_for_relink="$variables_saved_for_relink" 16774 16775# Whether libtool must link a program against all its dependency libraries. 16776link_all_deplibs=$link_all_deplibs_F77 16777 16778# Compile-time system search path for libraries 16779sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16780 16781# Run-time system search path for libraries 16782sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16783 16784# Fix the shell variable \$srcfile for the compiler. 16785fix_srcfile_path=$lt_fix_srcfile_path 16786 16787# Set to yes if exported symbols are required. 16788always_export_symbols=$always_export_symbols_F77 16789 16790# The commands to list exported symbols. 16791export_symbols_cmds=$lt_export_symbols_cmds_F77 16792 16793# The commands to extract the exported symbol list from a shared archive. 16794extract_expsyms_cmds=$lt_extract_expsyms_cmds 16795 16796# Symbols that should not be listed in the preloaded symbols. 16797exclude_expsyms=$lt_exclude_expsyms_F77 16798 16799# Symbols that must always be exported. 16800include_expsyms=$lt_include_expsyms_F77 16801 16802# ### END LIBTOOL TAG CONFIG: $tagname 16803 16804__EOF__ 16805 16806 16807else 16808 # If there is no Makefile yet, we rely on a make rule to execute 16809 # `config.status --recheck' to rerun these tests and create the 16810 # libtool script then. 16811 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16812 if test -f "$ltmain_in"; then 16813 test -f Makefile && make "$ltmain" 16814 fi 16815fi 16816 16817 16818ac_ext=c 16819ac_cpp='$CPP $CPPFLAGS' 16820ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16821ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16822ac_compiler_gnu=$ac_cv_c_compiler_gnu 16823 16824CC="$lt_save_CC" 16825 16826 else 16827 tagname="" 16828 fi 16829 ;; 16830 16831 GCJ) 16832 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16833 16834 16835# Source file extension for Java test sources. 16836ac_ext=java 16837 16838# Object file extension for compiled Java test sources. 16839objext=o 16840objext_GCJ=$objext 16841 16842# Code to be used in simple compile tests 16843lt_simple_compile_test_code="class foo {}" 16844 16845# Code to be used in simple link tests 16846lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }' 16847 16848# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16849 16850# If no C compiler was specified, use CC. 16851LTCC=${LTCC-"$CC"} 16852 16853# If no C compiler flags were specified, use CFLAGS. 16854LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16855 16856# Allow CC to be a program name with arguments. 16857compiler=$CC 16858 16859 16860# save warnings/boilerplate of simple test code 16861ac_outfile=conftest.$ac_objext 16862echo "$lt_simple_compile_test_code" >conftest.$ac_ext 16863eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16864_lt_compiler_boilerplate=`cat conftest.err` 16865$rm conftest* 16866 16867ac_outfile=conftest.$ac_objext 16868echo "$lt_simple_link_test_code" >conftest.$ac_ext 16869eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16870_lt_linker_boilerplate=`cat conftest.err` 16871$rm -r conftest* 16872 16873 16874# Allow CC to be a program name with arguments. 16875lt_save_CC="$CC" 16876CC=${GCJ-"gcj"} 16877compiler=$CC 16878compiler_GCJ=$CC 16879for cc_temp in $compiler""; do 16880 case $cc_temp in 16881 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16882 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16883 \-*) ;; 16884 *) break;; 16885 esac 16886done 16887cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16888 16889 16890# GCJ did not exist at the time GCC didn't implicitly link libc in. 16891archive_cmds_need_lc_GCJ=no 16892 16893old_archive_cmds_GCJ=$old_archive_cmds 16894 16895 16896lt_prog_compiler_no_builtin_flag_GCJ= 16897 16898if test "$GCC" = yes; then 16899 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16900 16901 16902{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16903$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 16904if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16905 $as_echo_n "(cached) " >&6 16906else 16907 lt_cv_prog_compiler_rtti_exceptions=no 16908 ac_outfile=conftest.$ac_objext 16909 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16910 lt_compiler_flag="-fno-rtti -fno-exceptions" 16911 # Insert the option either (1) after the last *FLAGS variable, or 16912 # (2) before a word containing "conftest.", or (3) at the end. 16913 # Note that $ac_compile itself does not contain backslashes and begins 16914 # with a dollar sign (not a hyphen), so the echo should work correctly. 16915 # The option is referenced via a variable to avoid confusing sed. 16916 lt_compile=`echo "$ac_compile" | $SED \ 16917 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16918 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16919 -e 's:$: $lt_compiler_flag:'` 16920 (eval echo "\"\$as_me:16920: $lt_compile\"" >&5) 16921 (eval "$lt_compile" 2>conftest.err) 16922 ac_status=$? 16923 cat conftest.err >&5 16924 echo "$as_me:16924: \$? = $ac_status" >&5 16925 if (exit $ac_status) && test -s "$ac_outfile"; then 16926 # The compiler can only warn and ignore the option if not recognized 16927 # So say no if there are warnings other than the usual output. 16928 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16929 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16930 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16931 lt_cv_prog_compiler_rtti_exceptions=yes 16932 fi 16933 fi 16934 $rm conftest* 16935 16936fi 16937{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16938$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16939 16940if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16941 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16942else 16943 : 16944fi 16945 16946fi 16947 16948lt_prog_compiler_wl_GCJ= 16949lt_prog_compiler_pic_GCJ= 16950lt_prog_compiler_static_GCJ= 16951 16952{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16953$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 16954 16955 if test "$GCC" = yes; then 16956 lt_prog_compiler_wl_GCJ='-Wl,' 16957 lt_prog_compiler_static_GCJ='-static' 16958 16959 case $host_os in 16960 aix*) 16961 # All AIX code is PIC. 16962 if test "$host_cpu" = ia64; then 16963 # AIX 5 now supports IA64 processor 16964 lt_prog_compiler_static_GCJ='-Bstatic' 16965 fi 16966 ;; 16967 16968 amigaos*) 16969 # FIXME: we need at least 68020 code to build shared libraries, but 16970 # adding the `-m68020' flag to GCC prevents building anything better, 16971 # like `-m68040'. 16972 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16973 ;; 16974 16975 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16976 # PIC is the default for these OSes. 16977 ;; 16978 16979 mingw* | cygwin* | pw32* | os2*) 16980 # This hack is so that the source file can tell whether it is being 16981 # built for inclusion in a dll (and should export symbols for example). 16982 # Although the cygwin gcc ignores -fPIC, still need this for old-style 16983 # (--disable-auto-import) libraries 16984 16985 ;; 16986 16987 darwin* | rhapsody*) 16988 # PIC is the default on this platform 16989 # Common symbols not allowed in MH_DYLIB files 16990 lt_prog_compiler_pic_GCJ='-fno-common' 16991 ;; 16992 16993 interix[3-9]*) 16994 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16995 # Instead, we relocate shared libraries at runtime. 16996 ;; 16997 16998 msdosdjgpp*) 16999 # Just because we use GCC doesn't mean we suddenly get shared libraries 17000 # on systems that don't support them. 17001 lt_prog_compiler_can_build_shared_GCJ=no 17002 enable_shared=no 17003 ;; 17004 17005 sysv4*MP*) 17006 if test -d /usr/nec; then 17007 lt_prog_compiler_pic_GCJ=-Kconform_pic 17008 fi 17009 ;; 17010 17011 hpux*) 17012 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 17013 # not for PA HP-UX. 17014 case $host_cpu in 17015 hppa*64*|ia64*) 17016 # +Z the default 17017 ;; 17018 *) 17019 lt_prog_compiler_pic_GCJ='-fPIC' 17020 ;; 17021 esac 17022 ;; 17023 17024 *) 17025 lt_prog_compiler_pic_GCJ='-fPIC' 17026 ;; 17027 esac 17028 else 17029 # PORTME Check for flag to pass linker flags through the system compiler. 17030 case $host_os in 17031 aix*) 17032 lt_prog_compiler_wl_GCJ='-Wl,' 17033 if test "$host_cpu" = ia64; then 17034 # AIX 5 now supports IA64 processor 17035 lt_prog_compiler_static_GCJ='-Bstatic' 17036 else 17037 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 17038 fi 17039 ;; 17040 darwin*) 17041 # PIC is the default on this platform 17042 # Common symbols not allowed in MH_DYLIB files 17043 case $cc_basename in 17044 xlc*) 17045 lt_prog_compiler_pic_GCJ='-qnocommon' 17046 lt_prog_compiler_wl_GCJ='-Wl,' 17047 ;; 17048 esac 17049 ;; 17050 17051 mingw* | cygwin* | pw32* | os2*) 17052 # This hack is so that the source file can tell whether it is being 17053 # built for inclusion in a dll (and should export symbols for example). 17054 17055 ;; 17056 17057 hpux9* | hpux10* | hpux11*) 17058 lt_prog_compiler_wl_GCJ='-Wl,' 17059 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 17060 # not for PA HP-UX. 17061 case $host_cpu in 17062 hppa*64*|ia64*) 17063 # +Z the default 17064 ;; 17065 *) 17066 lt_prog_compiler_pic_GCJ='+Z' 17067 ;; 17068 esac 17069 # Is there a better lt_prog_compiler_static that works with the bundled CC? 17070 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 17071 ;; 17072 17073 irix5* | irix6* | nonstopux*) 17074 lt_prog_compiler_wl_GCJ='-Wl,' 17075 # PIC (with -KPIC) is the default. 17076 lt_prog_compiler_static_GCJ='-non_shared' 17077 ;; 17078 17079 newsos6) 17080 lt_prog_compiler_pic_GCJ='-KPIC' 17081 lt_prog_compiler_static_GCJ='-Bstatic' 17082 ;; 17083 17084 linux* | k*bsd*-gnu) 17085 case $cc_basename in 17086 icc* | ecc*) 17087 lt_prog_compiler_wl_GCJ='-Wl,' 17088 lt_prog_compiler_pic_GCJ='-KPIC' 17089 lt_prog_compiler_static_GCJ='-static' 17090 ;; 17091 pgcc* | pgf77* | pgf90* | pgf95*) 17092 # Portland Group compilers (*not* the Pentium gcc compiler, 17093 # which looks to be a dead project) 17094 lt_prog_compiler_wl_GCJ='-Wl,' 17095 lt_prog_compiler_pic_GCJ='-fpic' 17096 lt_prog_compiler_static_GCJ='-Bstatic' 17097 ;; 17098 ccc*) 17099 lt_prog_compiler_wl_GCJ='-Wl,' 17100 # All Alpha code is PIC. 17101 lt_prog_compiler_static_GCJ='-non_shared' 17102 ;; 17103 *) 17104 case `$CC -V 2>&1 | sed 5q` in 17105 *Sun\ C*) 17106 # Sun C 5.9 17107 lt_prog_compiler_pic_GCJ='-KPIC' 17108 lt_prog_compiler_static_GCJ='-Bstatic' 17109 lt_prog_compiler_wl_GCJ='-Wl,' 17110 ;; 17111 *Sun\ F*) 17112 # Sun Fortran 8.3 passes all unrecognized flags to the linker 17113 lt_prog_compiler_pic_GCJ='-KPIC' 17114 lt_prog_compiler_static_GCJ='-Bstatic' 17115 lt_prog_compiler_wl_GCJ='' 17116 ;; 17117 esac 17118 ;; 17119 esac 17120 ;; 17121 17122 osf3* | osf4* | osf5*) 17123 lt_prog_compiler_wl_GCJ='-Wl,' 17124 # All OSF/1 code is PIC. 17125 lt_prog_compiler_static_GCJ='-non_shared' 17126 ;; 17127 17128 rdos*) 17129 lt_prog_compiler_static_GCJ='-non_shared' 17130 ;; 17131 17132 solaris*) 17133 lt_prog_compiler_pic_GCJ='-KPIC' 17134 lt_prog_compiler_static_GCJ='-Bstatic' 17135 case $cc_basename in 17136 f77* | f90* | f95*) 17137 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 17138 *) 17139 lt_prog_compiler_wl_GCJ='-Wl,';; 17140 esac 17141 ;; 17142 17143 sunos4*) 17144 lt_prog_compiler_wl_GCJ='-Qoption ld ' 17145 lt_prog_compiler_pic_GCJ='-PIC' 17146 lt_prog_compiler_static_GCJ='-Bstatic' 17147 ;; 17148 17149 sysv4 | sysv4.2uw2* | sysv4.3*) 17150 lt_prog_compiler_wl_GCJ='-Wl,' 17151 lt_prog_compiler_pic_GCJ='-KPIC' 17152 lt_prog_compiler_static_GCJ='-Bstatic' 17153 ;; 17154 17155 sysv4*MP*) 17156 if test -d /usr/nec ;then 17157 lt_prog_compiler_pic_GCJ='-Kconform_pic' 17158 lt_prog_compiler_static_GCJ='-Bstatic' 17159 fi 17160 ;; 17161 17162 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 17163 lt_prog_compiler_wl_GCJ='-Wl,' 17164 lt_prog_compiler_pic_GCJ='-KPIC' 17165 lt_prog_compiler_static_GCJ='-Bstatic' 17166 ;; 17167 17168 unicos*) 17169 lt_prog_compiler_wl_GCJ='-Wl,' 17170 lt_prog_compiler_can_build_shared_GCJ=no 17171 ;; 17172 17173 uts4*) 17174 lt_prog_compiler_pic_GCJ='-pic' 17175 lt_prog_compiler_static_GCJ='-Bstatic' 17176 ;; 17177 17178 *) 17179 lt_prog_compiler_can_build_shared_GCJ=no 17180 ;; 17181 esac 17182 fi 17183 17184{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 17185$as_echo "$lt_prog_compiler_pic_GCJ" >&6; } 17186 17187# 17188# Check to make sure the PIC flag actually works. 17189# 17190if test -n "$lt_prog_compiler_pic_GCJ"; then 17191 17192{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 17193$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; } 17194if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then 17195 $as_echo_n "(cached) " >&6 17196else 17197 lt_cv_prog_compiler_pic_works_GCJ=no 17198 ac_outfile=conftest.$ac_objext 17199 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17200 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 17201 # Insert the option either (1) after the last *FLAGS variable, or 17202 # (2) before a word containing "conftest.", or (3) at the end. 17203 # Note that $ac_compile itself does not contain backslashes and begins 17204 # with a dollar sign (not a hyphen), so the echo should work correctly. 17205 # The option is referenced via a variable to avoid confusing sed. 17206 lt_compile=`echo "$ac_compile" | $SED \ 17207 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17208 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17209 -e 's:$: $lt_compiler_flag:'` 17210 (eval echo "\"\$as_me:17210: $lt_compile\"" >&5) 17211 (eval "$lt_compile" 2>conftest.err) 17212 ac_status=$? 17213 cat conftest.err >&5 17214 echo "$as_me:17214: \$? = $ac_status" >&5 17215 if (exit $ac_status) && test -s "$ac_outfile"; then 17216 # The compiler can only warn and ignore the option if not recognized 17217 # So say no if there are warnings other than the usual output. 17218 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 17219 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17220 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17221 lt_cv_prog_compiler_pic_works_GCJ=yes 17222 fi 17223 fi 17224 $rm conftest* 17225 17226fi 17227{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5 17228$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; } 17229 17230if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then 17231 case $lt_prog_compiler_pic_GCJ in 17232 "" | " "*) ;; 17233 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 17234 esac 17235else 17236 lt_prog_compiler_pic_GCJ= 17237 lt_prog_compiler_can_build_shared_GCJ=no 17238fi 17239 17240fi 17241case $host_os in 17242 # For platforms which do not support PIC, -DPIC is meaningless: 17243 *djgpp*) 17244 lt_prog_compiler_pic_GCJ= 17245 ;; 17246 *) 17247 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 17248 ;; 17249esac 17250 17251# 17252# Check to make sure the static flag actually works. 17253# 17254wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 17255{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 17256$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 17257if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then 17258 $as_echo_n "(cached) " >&6 17259else 17260 lt_cv_prog_compiler_static_works_GCJ=no 17261 save_LDFLAGS="$LDFLAGS" 17262 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17263 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17264 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17265 # The linker can only warn and ignore the option if not recognized 17266 # So say no if there are warnings 17267 if test -s conftest.err; then 17268 # Append any errors to the config.log. 17269 cat conftest.err 1>&5 17270 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 17271 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17272 if diff conftest.exp conftest.er2 >/dev/null; then 17273 lt_cv_prog_compiler_static_works_GCJ=yes 17274 fi 17275 else 17276 lt_cv_prog_compiler_static_works_GCJ=yes 17277 fi 17278 fi 17279 $rm -r conftest* 17280 LDFLAGS="$save_LDFLAGS" 17281 17282fi 17283{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5 17284$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; } 17285 17286if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then 17287 : 17288else 17289 lt_prog_compiler_static_GCJ= 17290fi 17291 17292 17293{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 17294$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 17295if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 17296 $as_echo_n "(cached) " >&6 17297else 17298 lt_cv_prog_compiler_c_o_GCJ=no 17299 $rm -r conftest 2>/dev/null 17300 mkdir conftest 17301 cd conftest 17302 mkdir out 17303 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17304 17305 lt_compiler_flag="-o out/conftest2.$ac_objext" 17306 # Insert the option either (1) after the last *FLAGS variable, or 17307 # (2) before a word containing "conftest.", or (3) at the end. 17308 # Note that $ac_compile itself does not contain backslashes and begins 17309 # with a dollar sign (not a hyphen), so the echo should work correctly. 17310 lt_compile=`echo "$ac_compile" | $SED \ 17311 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17312 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17313 -e 's:$: $lt_compiler_flag:'` 17314 (eval echo "\"\$as_me:17314: $lt_compile\"" >&5) 17315 (eval "$lt_compile" 2>out/conftest.err) 17316 ac_status=$? 17317 cat out/conftest.err >&5 17318 echo "$as_me:17318: \$? = $ac_status" >&5 17319 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17320 then 17321 # The compiler can only warn and ignore the option if not recognized 17322 # So say no if there are warnings 17323 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 17324 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17325 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17326 lt_cv_prog_compiler_c_o_GCJ=yes 17327 fi 17328 fi 17329 chmod u+w . 2>&5 17330 $rm conftest* 17331 # SGI C++ compiler will create directory out/ii_files/ for 17332 # template instantiation 17333 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 17334 $rm out/* && rmdir out 17335 cd .. 17336 rmdir conftest 17337 $rm conftest* 17338 17339fi 17340{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 17341$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; } 17342 17343 17344hard_links="nottested" 17345if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 17346 # do not overwrite the value of need_locks provided by the user 17347 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 17348$as_echo_n "checking if we can lock with hard links... " >&6; } 17349 hard_links=yes 17350 $rm conftest* 17351 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17352 touch conftest.a 17353 ln conftest.a conftest.b 2>&5 || hard_links=no 17354 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17355 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 17356$as_echo "$hard_links" >&6; } 17357 if test "$hard_links" = no; then 17358 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 17359$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 17360 need_locks=warn 17361 fi 17362else 17363 need_locks=no 17364fi 17365 17366{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17367$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 17368 17369 runpath_var= 17370 allow_undefined_flag_GCJ= 17371 enable_shared_with_static_runtimes_GCJ=no 17372 archive_cmds_GCJ= 17373 archive_expsym_cmds_GCJ= 17374 old_archive_From_new_cmds_GCJ= 17375 old_archive_from_expsyms_cmds_GCJ= 17376 export_dynamic_flag_spec_GCJ= 17377 whole_archive_flag_spec_GCJ= 17378 thread_safe_flag_spec_GCJ= 17379 hardcode_libdir_flag_spec_GCJ= 17380 hardcode_libdir_flag_spec_ld_GCJ= 17381 hardcode_libdir_separator_GCJ= 17382 hardcode_direct_GCJ=no 17383 hardcode_minus_L_GCJ=no 17384 hardcode_shlibpath_var_GCJ=unsupported 17385 link_all_deplibs_GCJ=unknown 17386 hardcode_automatic_GCJ=no 17387 module_cmds_GCJ= 17388 module_expsym_cmds_GCJ= 17389 always_export_symbols_GCJ=no 17390 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17391 # include_expsyms should be a list of space-separated symbols to be *always* 17392 # included in the symbol list 17393 include_expsyms_GCJ= 17394 # exclude_expsyms can be an extended regexp of symbols to exclude 17395 # it will be wrapped by ` (' and `)$', so one must not match beginning or 17396 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 17397 # as well as any symbol that contains `d'. 17398 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 17399 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 17400 # platforms (ab)use it in PIC code, but their linkers get confused if 17401 # the symbol is explicitly referenced. Since portable code cannot 17402 # rely on this symbol name, it's probably fine to never include it in 17403 # preloaded symbol tables. 17404 # Exclude shared library initialization/finalization symbols. 17405 extract_expsyms_cmds= 17406 # Just being paranoid about ensuring that cc_basename is set. 17407 for cc_temp in $compiler""; do 17408 case $cc_temp in 17409 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17410 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17411 \-*) ;; 17412 *) break;; 17413 esac 17414done 17415cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17416 17417 case $host_os in 17418 cygwin* | mingw* | pw32*) 17419 # FIXME: the MSVC++ port hasn't been tested in a loooong time 17420 # When not using gcc, we currently assume that we are using 17421 # Microsoft Visual C++. 17422 if test "$GCC" != yes; then 17423 with_gnu_ld=no 17424 fi 17425 ;; 17426 interix*) 17427 # we just hope/assume this is gcc and not c89 (= MSVC++) 17428 with_gnu_ld=yes 17429 ;; 17430 openbsd*) 17431 with_gnu_ld=no 17432 ;; 17433 esac 17434 17435 ld_shlibs_GCJ=yes 17436 if test "$with_gnu_ld" = yes; then 17437 # If archive_cmds runs LD, not CC, wlarc should be empty 17438 wlarc='${wl}' 17439 17440 # Set some defaults for GNU ld with shared library support. These 17441 # are reset later if shared libraries are not supported. Putting them 17442 # here allows them to be overridden if necessary. 17443 runpath_var=LD_RUN_PATH 17444 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 17445 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 17446 # ancient GNU ld didn't support --whole-archive et. al. 17447 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 17448 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 17449 else 17450 whole_archive_flag_spec_GCJ= 17451 fi 17452 supports_anon_versioning=no 17453 case `$LD -v 2>/dev/null` in 17454 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 17455 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 17456 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 17457 *\ 2.11.*) ;; # other 2.11 versions 17458 *) supports_anon_versioning=yes ;; 17459 esac 17460 17461 # See if GNU ld supports shared libraries. 17462 case $host_os in 17463 aix[3-9]*) 17464 # On AIX/PPC, the GNU linker is very broken 17465 if test "$host_cpu" != ia64; then 17466 ld_shlibs_GCJ=no 17467 cat <<EOF 1>&2 17468 17469*** Warning: the GNU linker, at least up to release 2.9.1, is reported 17470*** to be unable to reliably create shared libraries on AIX. 17471*** Therefore, libtool is disabling shared libraries support. If you 17472*** really care for shared libraries, you may want to modify your PATH 17473*** so that a non-GNU linker is found, and then restart. 17474 17475EOF 17476 fi 17477 ;; 17478 17479 amigaos*) 17480 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)' 17481 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17482 hardcode_minus_L_GCJ=yes 17483 17484 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 17485 # that the semantics of dynamic libraries on AmigaOS, at least up 17486 # to version 4, is to share data among multiple programs linked 17487 # with the same dynamic library. Since this doesn't match the 17488 # behavior of shared libraries on other platforms, we can't use 17489 # them. 17490 ld_shlibs_GCJ=no 17491 ;; 17492 17493 beos*) 17494 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17495 allow_undefined_flag_GCJ=unsupported 17496 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 17497 # support --undefined. This deserves some investigation. FIXME 17498 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17499 else 17500 ld_shlibs_GCJ=no 17501 fi 17502 ;; 17503 17504 cygwin* | mingw* | pw32*) 17505 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 17506 # as there is no search path for DLLs. 17507 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17508 allow_undefined_flag_GCJ=unsupported 17509 always_export_symbols_GCJ=no 17510 enable_shared_with_static_runtimes_GCJ=yes 17511 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 17512 17513 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 17514 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17515 # If the export-symbols file already is a .def file (1st line 17516 # is EXPORTS), use it as is; otherwise, prepend... 17517 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 17518 cp $export_symbols $output_objdir/$soname.def; 17519 else 17520 echo EXPORTS > $output_objdir/$soname.def; 17521 cat $export_symbols >> $output_objdir/$soname.def; 17522 fi~ 17523 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17524 else 17525 ld_shlibs_GCJ=no 17526 fi 17527 ;; 17528 17529 interix[3-9]*) 17530 hardcode_direct_GCJ=no 17531 hardcode_shlibpath_var_GCJ=no 17532 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17533 export_dynamic_flag_spec_GCJ='${wl}-E' 17534 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 17535 # Instead, shared libraries are loaded at an image base (0x10000000 by 17536 # default) and relocated if they conflict, which is a slow very memory 17537 # consuming and fragmenting process. To avoid this, we pick a random, 17538 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 17539 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 17540 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' 17541 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' 17542 ;; 17543 17544 gnu* | linux* | k*bsd*-gnu) 17545 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17546 tmp_addflag= 17547 case $cc_basename,$host_cpu in 17548 pgcc*) # Portland Group C compiler 17549 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' 17550 tmp_addflag=' $pic_flag' 17551 ;; 17552 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 17553 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' 17554 tmp_addflag=' $pic_flag -Mnomain' ;; 17555 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 17556 tmp_addflag=' -i_dynamic' ;; 17557 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 17558 tmp_addflag=' -i_dynamic -nofor_main' ;; 17559 ifc* | ifort*) # Intel Fortran compiler 17560 tmp_addflag=' -nofor_main' ;; 17561 esac 17562 case `$CC -V 2>&1 | sed 5q` in 17563 *Sun\ C*) # Sun C 5.9 17564 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' 17565 tmp_sharedflag='-G' ;; 17566 *Sun\ F*) # Sun Fortran 8.3 17567 tmp_sharedflag='-G' ;; 17568 *) 17569 tmp_sharedflag='-shared' ;; 17570 esac 17571 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17572 17573 if test $supports_anon_versioning = yes; then 17574 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 17575 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17576 $echo "local: *; };" >> $output_objdir/$libname.ver~ 17577 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17578 fi 17579 else 17580 ld_shlibs_GCJ=no 17581 fi 17582 ;; 17583 17584 netbsd*) 17585 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17586 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17587 wlarc= 17588 else 17589 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17590 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17591 fi 17592 ;; 17593 17594 solaris*) 17595 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 17596 ld_shlibs_GCJ=no 17597 cat <<EOF 1>&2 17598 17599*** Warning: The releases 2.8.* of the GNU linker cannot reliably 17600*** create shared libraries on Solaris systems. Therefore, libtool 17601*** is disabling shared libraries support. We urge you to upgrade GNU 17602*** binutils to release 2.9.1 or newer. Another option is to modify 17603*** your PATH or compiler configuration so that the native linker is 17604*** used, and then restart. 17605 17606EOF 17607 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17608 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17609 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17610 else 17611 ld_shlibs_GCJ=no 17612 fi 17613 ;; 17614 17615 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 17616 case `$LD -v 2>&1` in 17617 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 17618 ld_shlibs_GCJ=no 17619 cat <<_LT_EOF 1>&2 17620 17621*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 17622*** reliably create shared libraries on SCO systems. Therefore, libtool 17623*** is disabling shared libraries support. We urge you to upgrade GNU 17624*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 17625*** your PATH or compiler configuration so that the native linker is 17626*** used, and then restart. 17627 17628_LT_EOF 17629 ;; 17630 *) 17631 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17632 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 17633 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 17634 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 17635 else 17636 ld_shlibs_GCJ=no 17637 fi 17638 ;; 17639 esac 17640 ;; 17641 17642 sunos4*) 17643 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17644 wlarc= 17645 hardcode_direct_GCJ=yes 17646 hardcode_shlibpath_var_GCJ=no 17647 ;; 17648 17649 *) 17650 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17651 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17652 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17653 else 17654 ld_shlibs_GCJ=no 17655 fi 17656 ;; 17657 esac 17658 17659 if test "$ld_shlibs_GCJ" = no; then 17660 runpath_var= 17661 hardcode_libdir_flag_spec_GCJ= 17662 export_dynamic_flag_spec_GCJ= 17663 whole_archive_flag_spec_GCJ= 17664 fi 17665 else 17666 # PORTME fill in a description of your system's linker (not GNU ld) 17667 case $host_os in 17668 aix3*) 17669 allow_undefined_flag_GCJ=unsupported 17670 always_export_symbols_GCJ=yes 17671 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' 17672 # Note: this linker hardcodes the directories in LIBPATH if there 17673 # are no directories specified by -L. 17674 hardcode_minus_L_GCJ=yes 17675 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 17676 # Neither direct hardcoding nor static linking is supported with a 17677 # broken collect2. 17678 hardcode_direct_GCJ=unsupported 17679 fi 17680 ;; 17681 17682 aix[4-9]*) 17683 if test "$host_cpu" = ia64; then 17684 # On IA64, the linker does run time linking by default, so we don't 17685 # have to do anything special. 17686 aix_use_runtimelinking=no 17687 exp_sym_flag='-Bexport' 17688 no_entry_flag="" 17689 else 17690 # If we're using GNU nm, then we don't want the "-C" option. 17691 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17692 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 17693 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' 17694 else 17695 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' 17696 fi 17697 aix_use_runtimelinking=no 17698 17699 # Test if we are trying to use run time linking or normal 17700 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17701 # need to do runtime linking. 17702 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 17703 for ld_flag in $LDFLAGS; do 17704 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17705 aix_use_runtimelinking=yes 17706 break 17707 fi 17708 done 17709 ;; 17710 esac 17711 17712 exp_sym_flag='-bexport' 17713 no_entry_flag='-bnoentry' 17714 fi 17715 17716 # When large executables or shared objects are built, AIX ld can 17717 # have problems creating the table of contents. If linking a library 17718 # or program results in "error TOC overflow" add -mminimal-toc to 17719 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17720 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17721 17722 archive_cmds_GCJ='' 17723 hardcode_direct_GCJ=yes 17724 hardcode_libdir_separator_GCJ=':' 17725 link_all_deplibs_GCJ=yes 17726 17727 if test "$GCC" = yes; then 17728 case $host_os in aix4.[012]|aix4.[012].*) 17729 # We only want to do this on AIX 4.2 and lower, the check 17730 # below for broken collect2 doesn't work under 4.3+ 17731 collect2name=`${CC} -print-prog-name=collect2` 17732 if test -f "$collect2name" && \ 17733 strings "$collect2name" | grep resolve_lib_name >/dev/null 17734 then 17735 # We have reworked collect2 17736 : 17737 else 17738 # We have old collect2 17739 hardcode_direct_GCJ=unsupported 17740 # It fails to find uninstalled libraries when the uninstalled 17741 # path is not listed in the libpath. Setting hardcode_minus_L 17742 # to unsupported forces relinking 17743 hardcode_minus_L_GCJ=yes 17744 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17745 hardcode_libdir_separator_GCJ= 17746 fi 17747 ;; 17748 esac 17749 shared_flag='-shared' 17750 if test "$aix_use_runtimelinking" = yes; then 17751 shared_flag="$shared_flag "'${wl}-G' 17752 fi 17753 else 17754 # not using gcc 17755 if test "$host_cpu" = ia64; then 17756 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17757 # chokes on -Wl,-G. The following line is correct: 17758 shared_flag='-G' 17759 else 17760 if test "$aix_use_runtimelinking" = yes; then 17761 shared_flag='${wl}-G' 17762 else 17763 shared_flag='${wl}-bM:SRE' 17764 fi 17765 fi 17766 fi 17767 17768 # It seems that -bexpall does not export symbols beginning with 17769 # underscore (_), so it is better to generate a list of symbols to export. 17770 always_export_symbols_GCJ=yes 17771 if test "$aix_use_runtimelinking" = yes; then 17772 # Warning - without using the other runtime loading flags (-brtl), 17773 # -berok will link without error, but may produce a broken library. 17774 allow_undefined_flag_GCJ='-berok' 17775 # Determine the default libpath from the value encoded in an empty executable. 17776 cat >conftest.$ac_ext <<_ACEOF 17777/* confdefs.h. */ 17778_ACEOF 17779cat confdefs.h >>conftest.$ac_ext 17780cat >>conftest.$ac_ext <<_ACEOF 17781/* end confdefs.h. */ 17782 17783int 17784main () 17785{ 17786 17787 ; 17788 return 0; 17789} 17790_ACEOF 17791rm -f conftest.$ac_objext conftest$ac_exeext 17792if { (ac_try="$ac_link" 17793case "(($ac_try" in 17794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17795 *) ac_try_echo=$ac_try;; 17796esac 17797eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17798$as_echo "$ac_try_echo") >&5 17799 (eval "$ac_link") 2>conftest.er1 17800 ac_status=$? 17801 grep -v '^ *+' conftest.er1 >conftest.err 17802 rm -f conftest.er1 17803 cat conftest.err >&5 17804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17805 (exit $ac_status); } && { 17806 test -z "$ac_c_werror_flag" || 17807 test ! -s conftest.err 17808 } && test -s conftest$ac_exeext && { 17809 test "$cross_compiling" = yes || 17810 $as_test_x conftest$ac_exeext 17811 }; then 17812 17813lt_aix_libpath_sed=' 17814 /Import File Strings/,/^$/ { 17815 /^0/ { 17816 s/^0 *\(.*\)$/\1/ 17817 p 17818 } 17819 }' 17820aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17821# Check for a 64-bit object if we didn't find anything. 17822if test -z "$aix_libpath"; then 17823 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17824fi 17825else 17826 $as_echo "$as_me: failed program was:" >&5 17827sed 's/^/| /' conftest.$ac_ext >&5 17828 17829 17830fi 17831 17832rm -rf conftest.dSYM 17833rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17834 conftest$ac_exeext conftest.$ac_ext 17835if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17836 17837 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17838 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" 17839 else 17840 if test "$host_cpu" = ia64; then 17841 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17842 allow_undefined_flag_GCJ="-z nodefs" 17843 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" 17844 else 17845 # Determine the default libpath from the value encoded in an empty executable. 17846 cat >conftest.$ac_ext <<_ACEOF 17847/* confdefs.h. */ 17848_ACEOF 17849cat confdefs.h >>conftest.$ac_ext 17850cat >>conftest.$ac_ext <<_ACEOF 17851/* end confdefs.h. */ 17852 17853int 17854main () 17855{ 17856 17857 ; 17858 return 0; 17859} 17860_ACEOF 17861rm -f conftest.$ac_objext conftest$ac_exeext 17862if { (ac_try="$ac_link" 17863case "(($ac_try" in 17864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17865 *) ac_try_echo=$ac_try;; 17866esac 17867eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17868$as_echo "$ac_try_echo") >&5 17869 (eval "$ac_link") 2>conftest.er1 17870 ac_status=$? 17871 grep -v '^ *+' conftest.er1 >conftest.err 17872 rm -f conftest.er1 17873 cat conftest.err >&5 17874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17875 (exit $ac_status); } && { 17876 test -z "$ac_c_werror_flag" || 17877 test ! -s conftest.err 17878 } && test -s conftest$ac_exeext && { 17879 test "$cross_compiling" = yes || 17880 $as_test_x conftest$ac_exeext 17881 }; then 17882 17883lt_aix_libpath_sed=' 17884 /Import File Strings/,/^$/ { 17885 /^0/ { 17886 s/^0 *\(.*\)$/\1/ 17887 p 17888 } 17889 }' 17890aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17891# Check for a 64-bit object if we didn't find anything. 17892if test -z "$aix_libpath"; then 17893 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17894fi 17895else 17896 $as_echo "$as_me: failed program was:" >&5 17897sed 's/^/| /' conftest.$ac_ext >&5 17898 17899 17900fi 17901 17902rm -rf conftest.dSYM 17903rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17904 conftest$ac_exeext conftest.$ac_ext 17905if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17906 17907 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17908 # Warning - without using the other run time loading flags, 17909 # -berok will link without error, but may produce a broken library. 17910 no_undefined_flag_GCJ=' ${wl}-bernotok' 17911 allow_undefined_flag_GCJ=' ${wl}-berok' 17912 # Exported symbols can be pulled into shared objects from archives 17913 whole_archive_flag_spec_GCJ='$convenience' 17914 archive_cmds_need_lc_GCJ=yes 17915 # This is similar to how AIX traditionally builds its shared libraries. 17916 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' 17917 fi 17918 fi 17919 ;; 17920 17921 amigaos*) 17922 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)' 17923 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17924 hardcode_minus_L_GCJ=yes 17925 # see comment about different semantics on the GNU ld section 17926 ld_shlibs_GCJ=no 17927 ;; 17928 17929 bsdi[45]*) 17930 export_dynamic_flag_spec_GCJ=-rdynamic 17931 ;; 17932 17933 cygwin* | mingw* | pw32*) 17934 # When not using gcc, we currently assume that we are using 17935 # Microsoft Visual C++. 17936 # hardcode_libdir_flag_spec is actually meaningless, as there is 17937 # no search path for DLLs. 17938 hardcode_libdir_flag_spec_GCJ=' ' 17939 allow_undefined_flag_GCJ=unsupported 17940 # Tell ltmain to make .lib files, not .a files. 17941 libext=lib 17942 # Tell ltmain to make .dll files, not .so files. 17943 shrext_cmds=".dll" 17944 # FIXME: Setting linknames here is a bad hack. 17945 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17946 # The linker will automatically build a .lib file if we build a DLL. 17947 old_archive_From_new_cmds_GCJ='true' 17948 # FIXME: Should let the user specify the lib program. 17949 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' 17950 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17951 enable_shared_with_static_runtimes_GCJ=yes 17952 ;; 17953 17954 darwin* | rhapsody*) 17955 case $host_os in 17956 rhapsody* | darwin1.[012]) 17957 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17958 ;; 17959 *) # Darwin 1.3 on 17960 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17961 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17962 else 17963 case ${MACOSX_DEPLOYMENT_TARGET} in 17964 10.[012]) 17965 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17966 ;; 17967 10.*) 17968 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17969 ;; 17970 esac 17971 fi 17972 ;; 17973 esac 17974 archive_cmds_need_lc_GCJ=no 17975 hardcode_direct_GCJ=no 17976 hardcode_automatic_GCJ=yes 17977 hardcode_shlibpath_var_GCJ=unsupported 17978 whole_archive_flag_spec_GCJ='' 17979 link_all_deplibs_GCJ=yes 17980 if test "$GCC" = yes ; then 17981 output_verbose_link_cmd='echo' 17982 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 17983 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 17984 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 17985 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 17986 else 17987 case $cc_basename in 17988 xlc*) 17989 output_verbose_link_cmd='echo' 17990 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 17991 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17992 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17993 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}' 17994 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}' 17995 ;; 17996 *) 17997 ld_shlibs_GCJ=no 17998 ;; 17999 esac 18000 fi 18001 ;; 18002 18003 dgux*) 18004 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18005 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18006 hardcode_shlibpath_var_GCJ=no 18007 ;; 18008 18009 freebsd1*) 18010 ld_shlibs_GCJ=no 18011 ;; 18012 18013 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 18014 # support. Future versions do this automatically, but an explicit c++rt0.o 18015 # does not break anything, and helps significantly (at the cost of a little 18016 # extra space). 18017 freebsd2.2*) 18018 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 18019 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18020 hardcode_direct_GCJ=yes 18021 hardcode_shlibpath_var_GCJ=no 18022 ;; 18023 18024 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 18025 freebsd2*) 18026 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18027 hardcode_direct_GCJ=yes 18028 hardcode_minus_L_GCJ=yes 18029 hardcode_shlibpath_var_GCJ=no 18030 ;; 18031 18032 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 18033 freebsd* | dragonfly*) 18034 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 18035 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18036 hardcode_direct_GCJ=yes 18037 hardcode_shlibpath_var_GCJ=no 18038 ;; 18039 18040 hpux9*) 18041 if test "$GCC" = yes; then 18042 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' 18043 else 18044 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' 18045 fi 18046 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18047 hardcode_libdir_separator_GCJ=: 18048 hardcode_direct_GCJ=yes 18049 18050 # hardcode_minus_L: Not really in the search PATH, 18051 # but as the default location of the library. 18052 hardcode_minus_L_GCJ=yes 18053 export_dynamic_flag_spec_GCJ='${wl}-E' 18054 ;; 18055 18056 hpux10*) 18057 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 18058 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18059 else 18060 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 18061 fi 18062 if test "$with_gnu_ld" = no; then 18063 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18064 hardcode_libdir_separator_GCJ=: 18065 18066 hardcode_direct_GCJ=yes 18067 export_dynamic_flag_spec_GCJ='${wl}-E' 18068 18069 # hardcode_minus_L: Not really in the search PATH, 18070 # but as the default location of the library. 18071 hardcode_minus_L_GCJ=yes 18072 fi 18073 ;; 18074 18075 hpux11*) 18076 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 18077 case $host_cpu in 18078 hppa*64*) 18079 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18080 ;; 18081 ia64*) 18082 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18083 ;; 18084 *) 18085 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18086 ;; 18087 esac 18088 else 18089 case $host_cpu in 18090 hppa*64*) 18091 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18092 ;; 18093 ia64*) 18094 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18095 ;; 18096 *) 18097 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18098 ;; 18099 esac 18100 fi 18101 if test "$with_gnu_ld" = no; then 18102 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18103 hardcode_libdir_separator_GCJ=: 18104 18105 case $host_cpu in 18106 hppa*64*|ia64*) 18107 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 18108 hardcode_direct_GCJ=no 18109 hardcode_shlibpath_var_GCJ=no 18110 ;; 18111 *) 18112 hardcode_direct_GCJ=yes 18113 export_dynamic_flag_spec_GCJ='${wl}-E' 18114 18115 # hardcode_minus_L: Not really in the search PATH, 18116 # but as the default location of the library. 18117 hardcode_minus_L_GCJ=yes 18118 ;; 18119 esac 18120 fi 18121 ;; 18122 18123 irix5* | irix6* | nonstopux*) 18124 if test "$GCC" = yes; then 18125 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' 18126 else 18127 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' 18128 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 18129 fi 18130 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18131 hardcode_libdir_separator_GCJ=: 18132 link_all_deplibs_GCJ=yes 18133 ;; 18134 18135 netbsd*) 18136 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18137 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 18138 else 18139 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 18140 fi 18141 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18142 hardcode_direct_GCJ=yes 18143 hardcode_shlibpath_var_GCJ=no 18144 ;; 18145 18146 newsos6) 18147 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18148 hardcode_direct_GCJ=yes 18149 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18150 hardcode_libdir_separator_GCJ=: 18151 hardcode_shlibpath_var_GCJ=no 18152 ;; 18153 18154 openbsd*) 18155 if test -f /usr/libexec/ld.so; then 18156 hardcode_direct_GCJ=yes 18157 hardcode_shlibpath_var_GCJ=no 18158 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18159 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18160 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 18161 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18162 export_dynamic_flag_spec_GCJ='${wl}-E' 18163 else 18164 case $host_os in 18165 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 18166 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18167 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18168 ;; 18169 *) 18170 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18171 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18172 ;; 18173 esac 18174 fi 18175 else 18176 ld_shlibs_GCJ=no 18177 fi 18178 ;; 18179 18180 os2*) 18181 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18182 hardcode_minus_L_GCJ=yes 18183 allow_undefined_flag_GCJ=unsupported 18184 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' 18185 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 18186 ;; 18187 18188 osf3*) 18189 if test "$GCC" = yes; then 18190 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18191 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' 18192 else 18193 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18194 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' 18195 fi 18196 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18197 hardcode_libdir_separator_GCJ=: 18198 ;; 18199 18200 osf4* | osf5*) # as osf3* with the addition of -msym flag 18201 if test "$GCC" = yes; then 18202 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18203 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' 18204 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18205 else 18206 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18207 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' 18208 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~ 18209 $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' 18210 18211 # Both c and cxx compiler support -rpath directly 18212 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 18213 fi 18214 hardcode_libdir_separator_GCJ=: 18215 ;; 18216 18217 solaris*) 18218 no_undefined_flag_GCJ=' -z text' 18219 if test "$GCC" = yes; then 18220 wlarc='${wl}' 18221 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18222 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18223 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 18224 else 18225 wlarc='' 18226 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 18227 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18228 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 18229 fi 18230 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18231 hardcode_shlibpath_var_GCJ=no 18232 case $host_os in 18233 solaris2.[0-5] | solaris2.[0-5].*) ;; 18234 *) 18235 # The compiler driver will combine and reorder linker options, 18236 # but understands `-z linker_flag'. GCC discards it without `$wl', 18237 # but is careful enough not to reorder. 18238 # Supported since Solaris 2.6 (maybe 2.5.1?) 18239 if test "$GCC" = yes; then 18240 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 18241 else 18242 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' 18243 fi 18244 ;; 18245 esac 18246 link_all_deplibs_GCJ=yes 18247 ;; 18248 18249 sunos4*) 18250 if test "x$host_vendor" = xsequent; then 18251 # Use $CC to link under sequent, because it throws in some extra .o 18252 # files that make .init and .fini sections work. 18253 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 18254 else 18255 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 18256 fi 18257 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18258 hardcode_direct_GCJ=yes 18259 hardcode_minus_L_GCJ=yes 18260 hardcode_shlibpath_var_GCJ=no 18261 ;; 18262 18263 sysv4) 18264 case $host_vendor in 18265 sni) 18266 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18267 hardcode_direct_GCJ=yes # is this really true??? 18268 ;; 18269 siemens) 18270 ## LD is ld it makes a PLAMLIB 18271 ## CC just makes a GrossModule. 18272 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 18273 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 18274 hardcode_direct_GCJ=no 18275 ;; 18276 motorola) 18277 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18278 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 18279 ;; 18280 esac 18281 runpath_var='LD_RUN_PATH' 18282 hardcode_shlibpath_var_GCJ=no 18283 ;; 18284 18285 sysv4.3*) 18286 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18287 hardcode_shlibpath_var_GCJ=no 18288 export_dynamic_flag_spec_GCJ='-Bexport' 18289 ;; 18290 18291 sysv4*MP*) 18292 if test -d /usr/nec; then 18293 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18294 hardcode_shlibpath_var_GCJ=no 18295 runpath_var=LD_RUN_PATH 18296 hardcode_runpath_var=yes 18297 ld_shlibs_GCJ=yes 18298 fi 18299 ;; 18300 18301 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 18302 no_undefined_flag_GCJ='${wl}-z,text' 18303 archive_cmds_need_lc_GCJ=no 18304 hardcode_shlibpath_var_GCJ=no 18305 runpath_var='LD_RUN_PATH' 18306 18307 if test "$GCC" = yes; then 18308 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18309 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18310 else 18311 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18312 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18313 fi 18314 ;; 18315 18316 sysv5* | sco3.2v5* | sco5v6*) 18317 # Note: We can NOT use -z defs as we might desire, because we do not 18318 # link with -lc, and that would cause any symbols used from libc to 18319 # always be unresolved, which means just about no library would 18320 # ever link correctly. If we're not using GNU ld we use -z text 18321 # though, which does catch some bad symbols but isn't as heavy-handed 18322 # as -z defs. 18323 no_undefined_flag_GCJ='${wl}-z,text' 18324 allow_undefined_flag_GCJ='${wl}-z,nodefs' 18325 archive_cmds_need_lc_GCJ=no 18326 hardcode_shlibpath_var_GCJ=no 18327 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 18328 hardcode_libdir_separator_GCJ=':' 18329 link_all_deplibs_GCJ=yes 18330 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 18331 runpath_var='LD_RUN_PATH' 18332 18333 if test "$GCC" = yes; then 18334 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18335 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18336 else 18337 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18338 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18339 fi 18340 ;; 18341 18342 uts4*) 18343 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18344 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18345 hardcode_shlibpath_var_GCJ=no 18346 ;; 18347 18348 *) 18349 ld_shlibs_GCJ=no 18350 ;; 18351 esac 18352 fi 18353 18354{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 18355$as_echo "$ld_shlibs_GCJ" >&6; } 18356test "$ld_shlibs_GCJ" = no && can_build_shared=no 18357 18358# 18359# Do we need to explicitly link libc? 18360# 18361case "x$archive_cmds_need_lc_GCJ" in 18362x|xyes) 18363 # Assume -lc should be added 18364 archive_cmds_need_lc_GCJ=yes 18365 18366 if test "$enable_shared" = yes && test "$GCC" = yes; then 18367 case $archive_cmds_GCJ in 18368 *'~'*) 18369 # FIXME: we may have to deal with multi-command sequences. 18370 ;; 18371 '$CC '*) 18372 # Test whether the compiler implicitly links with -lc since on some 18373 # systems, -lgcc has to come before -lc. If gcc already passes -lc 18374 # to ld, don't add -lc before -lgcc. 18375 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 18376$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 18377 $rm conftest* 18378 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18379 18380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18381 (eval $ac_compile) 2>&5 18382 ac_status=$? 18383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18384 (exit $ac_status); } 2>conftest.err; then 18385 soname=conftest 18386 lib=conftest 18387 libobjs=conftest.$ac_objext 18388 deplibs= 18389 wl=$lt_prog_compiler_wl_GCJ 18390 pic_flag=$lt_prog_compiler_pic_GCJ 18391 compiler_flags=-v 18392 linker_flags=-v 18393 verstring= 18394 output_objdir=. 18395 libname=conftest 18396 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 18397 allow_undefined_flag_GCJ= 18398 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 18399 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 18400 ac_status=$? 18401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18402 (exit $ac_status); } 18403 then 18404 archive_cmds_need_lc_GCJ=no 18405 else 18406 archive_cmds_need_lc_GCJ=yes 18407 fi 18408 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 18409 else 18410 cat conftest.err 1>&5 18411 fi 18412 $rm conftest* 18413 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 18414$as_echo "$archive_cmds_need_lc_GCJ" >&6; } 18415 ;; 18416 esac 18417 fi 18418 ;; 18419esac 18420 18421{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 18422$as_echo_n "checking dynamic linker characteristics... " >&6; } 18423library_names_spec= 18424libname_spec='lib$name' 18425soname_spec= 18426shrext_cmds=".so" 18427postinstall_cmds= 18428postuninstall_cmds= 18429finish_cmds= 18430finish_eval= 18431shlibpath_var= 18432shlibpath_overrides_runpath=unknown 18433version_type=none 18434dynamic_linker="$host_os ld.so" 18435sys_lib_dlsearch_path_spec="/lib /usr/lib" 18436 18437need_lib_prefix=unknown 18438hardcode_into_libs=no 18439 18440# when you set need_version to no, make sure it does not cause -set_version 18441# flags to be left without arguments 18442need_version=unknown 18443 18444case $host_os in 18445aix3*) 18446 version_type=linux 18447 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 18448 shlibpath_var=LIBPATH 18449 18450 # AIX 3 has no versioning support, so we append a major version to the name. 18451 soname_spec='${libname}${release}${shared_ext}$major' 18452 ;; 18453 18454aix[4-9]*) 18455 version_type=linux 18456 need_lib_prefix=no 18457 need_version=no 18458 hardcode_into_libs=yes 18459 if test "$host_cpu" = ia64; then 18460 # AIX 5 supports IA64 18461 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 18462 shlibpath_var=LD_LIBRARY_PATH 18463 else 18464 # With GCC up to 2.95.x, collect2 would create an import file 18465 # for dependence libraries. The import file would start with 18466 # the line `#! .'. This would cause the generated library to 18467 # depend on `.', always an invalid library. This was fixed in 18468 # development snapshots of GCC prior to 3.0. 18469 case $host_os in 18470 aix4 | aix4.[01] | aix4.[01].*) 18471 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18472 echo ' yes ' 18473 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 18474 : 18475 else 18476 can_build_shared=no 18477 fi 18478 ;; 18479 esac 18480 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 18481 # soname into executable. Probably we can add versioning support to 18482 # collect2, so additional links can be useful in future. 18483 if test "$aix_use_runtimelinking" = yes; then 18484 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18485 # instead of lib<name>.a to let people know that these are not 18486 # typical AIX shared libraries. 18487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18488 else 18489 # We preserve .a as extension for shared libraries through AIX4.2 18490 # and later when we are not doing run time linking. 18491 library_names_spec='${libname}${release}.a $libname.a' 18492 soname_spec='${libname}${release}${shared_ext}$major' 18493 fi 18494 shlibpath_var=LIBPATH 18495 fi 18496 ;; 18497 18498amigaos*) 18499 library_names_spec='$libname.ixlibrary $libname.a' 18500 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18501 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' 18502 ;; 18503 18504beos*) 18505 library_names_spec='${libname}${shared_ext}' 18506 dynamic_linker="$host_os ld.so" 18507 shlibpath_var=LIBRARY_PATH 18508 ;; 18509 18510bsdi[45]*) 18511 version_type=linux 18512 need_version=no 18513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18514 soname_spec='${libname}${release}${shared_ext}$major' 18515 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18516 shlibpath_var=LD_LIBRARY_PATH 18517 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18518 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18519 # the default ld.so.conf also contains /usr/contrib/lib and 18520 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18521 # libtool to hard-code these into programs 18522 ;; 18523 18524cygwin* | mingw* | pw32*) 18525 version_type=windows 18526 shrext_cmds=".dll" 18527 need_version=no 18528 need_lib_prefix=no 18529 18530 case $GCC,$host_os in 18531 yes,cygwin* | yes,mingw* | yes,pw32*) 18532 library_names_spec='$libname.dll.a' 18533 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18534 postinstall_cmds='base_file=`basename \${file}`~ 18535 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 18536 dldir=$destdir/`dirname \$dlpath`~ 18537 test -d \$dldir || mkdir -p \$dldir~ 18538 $install_prog $dir/$dlname \$dldir/$dlname~ 18539 chmod a+x \$dldir/$dlname' 18540 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18541 dlpath=$dir/\$dldll~ 18542 $rm \$dlpath' 18543 shlibpath_overrides_runpath=yes 18544 18545 case $host_os in 18546 cygwin*) 18547 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18548 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18549 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 18550 ;; 18551 mingw*) 18552 # MinGW DLLs use traditional 'lib' prefix 18553 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18554 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18555 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 18556 # It is most probably a Windows format PATH printed by 18557 # mingw gcc, but we are running on Cygwin. Gcc prints its search 18558 # path with ; separators, and with drive letters. We can handle the 18559 # drive letters (cygwin fileutils understands them), so leave them, 18560 # especially as we might pass files found there to a mingw objdump, 18561 # which wouldn't understand a cygwinified path. Ahh. 18562 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18563 else 18564 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18565 fi 18566 ;; 18567 pw32*) 18568 # pw32 DLLs use 'pw' prefix rather than 'lib' 18569 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18570 ;; 18571 esac 18572 ;; 18573 18574 *) 18575 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 18576 ;; 18577 esac 18578 dynamic_linker='Win32 ld.exe' 18579 # FIXME: first we should search . and the directory the executable is in 18580 shlibpath_var=PATH 18581 ;; 18582 18583darwin* | rhapsody*) 18584 dynamic_linker="$host_os dyld" 18585 version_type=darwin 18586 need_lib_prefix=no 18587 need_version=no 18588 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 18589 soname_spec='${libname}${release}${major}$shared_ext' 18590 shlibpath_overrides_runpath=yes 18591 shlibpath_var=DYLD_LIBRARY_PATH 18592 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18593 18594 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18595 ;; 18596 18597dgux*) 18598 version_type=linux 18599 need_lib_prefix=no 18600 need_version=no 18601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 18602 soname_spec='${libname}${release}${shared_ext}$major' 18603 shlibpath_var=LD_LIBRARY_PATH 18604 ;; 18605 18606freebsd1*) 18607 dynamic_linker=no 18608 ;; 18609 18610freebsd* | dragonfly*) 18611 # DragonFly does not have aout. When/if they implement a new 18612 # versioning mechanism, adjust this. 18613 if test -x /usr/bin/objformat; then 18614 objformat=`/usr/bin/objformat` 18615 else 18616 case $host_os in 18617 freebsd[123]*) objformat=aout ;; 18618 *) objformat=elf ;; 18619 esac 18620 fi 18621 version_type=freebsd-$objformat 18622 case $version_type in 18623 freebsd-elf*) 18624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18625 need_version=no 18626 need_lib_prefix=no 18627 ;; 18628 freebsd-*) 18629 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18630 need_version=yes 18631 ;; 18632 esac 18633 shlibpath_var=LD_LIBRARY_PATH 18634 case $host_os in 18635 freebsd2*) 18636 shlibpath_overrides_runpath=yes 18637 ;; 18638 freebsd3.[01]* | freebsdelf3.[01]*) 18639 shlibpath_overrides_runpath=yes 18640 hardcode_into_libs=yes 18641 ;; 18642 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18643 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18644 shlibpath_overrides_runpath=no 18645 hardcode_into_libs=yes 18646 ;; 18647 *) # from 4.6 on, and DragonFly 18648 shlibpath_overrides_runpath=yes 18649 hardcode_into_libs=yes 18650 ;; 18651 esac 18652 ;; 18653 18654gnu*) 18655 version_type=linux 18656 need_lib_prefix=no 18657 need_version=no 18658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18659 soname_spec='${libname}${release}${shared_ext}$major' 18660 shlibpath_var=LD_LIBRARY_PATH 18661 hardcode_into_libs=yes 18662 ;; 18663 18664hpux9* | hpux10* | hpux11*) 18665 # Give a soname corresponding to the major version so that dld.sl refuses to 18666 # link against other versions. 18667 version_type=sunos 18668 need_lib_prefix=no 18669 need_version=no 18670 case $host_cpu in 18671 ia64*) 18672 shrext_cmds='.so' 18673 hardcode_into_libs=yes 18674 dynamic_linker="$host_os dld.so" 18675 shlibpath_var=LD_LIBRARY_PATH 18676 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18678 soname_spec='${libname}${release}${shared_ext}$major' 18679 if test "X$HPUX_IA64_MODE" = X32; then 18680 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18681 else 18682 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18683 fi 18684 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18685 ;; 18686 hppa*64*) 18687 shrext_cmds='.sl' 18688 hardcode_into_libs=yes 18689 dynamic_linker="$host_os dld.sl" 18690 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18691 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18693 soname_spec='${libname}${release}${shared_ext}$major' 18694 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18695 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18696 ;; 18697 *) 18698 shrext_cmds='.sl' 18699 dynamic_linker="$host_os dld.sl" 18700 shlibpath_var=SHLIB_PATH 18701 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18703 soname_spec='${libname}${release}${shared_ext}$major' 18704 ;; 18705 esac 18706 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18707 postinstall_cmds='chmod 555 $lib' 18708 ;; 18709 18710interix[3-9]*) 18711 version_type=linux 18712 need_lib_prefix=no 18713 need_version=no 18714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18715 soname_spec='${libname}${release}${shared_ext}$major' 18716 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18717 shlibpath_var=LD_LIBRARY_PATH 18718 shlibpath_overrides_runpath=no 18719 hardcode_into_libs=yes 18720 ;; 18721 18722irix5* | irix6* | nonstopux*) 18723 case $host_os in 18724 nonstopux*) version_type=nonstopux ;; 18725 *) 18726 if test "$lt_cv_prog_gnu_ld" = yes; then 18727 version_type=linux 18728 else 18729 version_type=irix 18730 fi ;; 18731 esac 18732 need_lib_prefix=no 18733 need_version=no 18734 soname_spec='${libname}${release}${shared_ext}$major' 18735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18736 case $host_os in 18737 irix5* | nonstopux*) 18738 libsuff= shlibsuff= 18739 ;; 18740 *) 18741 case $LD in # libtool.m4 will add one of these switches to LD 18742 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18743 libsuff= shlibsuff= libmagic=32-bit;; 18744 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18745 libsuff=32 shlibsuff=N32 libmagic=N32;; 18746 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18747 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18748 *) libsuff= shlibsuff= libmagic=never-match;; 18749 esac 18750 ;; 18751 esac 18752 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18753 shlibpath_overrides_runpath=no 18754 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18755 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18756 hardcode_into_libs=yes 18757 ;; 18758 18759# No shared lib support for Linux oldld, aout, or coff. 18760linux*oldld* | linux*aout* | linux*coff*) 18761 dynamic_linker=no 18762 ;; 18763 18764# This must be Linux ELF. 18765linux* | k*bsd*-gnu) 18766 version_type=linux 18767 need_lib_prefix=no 18768 need_version=no 18769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18770 soname_spec='${libname}${release}${shared_ext}$major' 18771 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18772 shlibpath_var=LD_LIBRARY_PATH 18773 shlibpath_overrides_runpath=no 18774 # This implies no fast_install, which is unacceptable. 18775 # Some rework will be needed to allow for fast_install 18776 # before this can be enabled. 18777 hardcode_into_libs=yes 18778 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18779 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18780 18781 # Append ld.so.conf contents to the search path 18782 if test -f /etc/ld.so.conf; then 18783 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' ' '` 18784 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 18785 fi 18786 18787 # We used to test for /lib/ld.so.1 and disable shared libraries on 18788 # powerpc, because MkLinux only supported shared libraries with the 18789 # GNU dynamic linker. Since this was broken with cross compilers, 18790 # most powerpc-linux boxes support dynamic linking these days and 18791 # people can always --disable-shared, the test was removed, and we 18792 # assume the GNU/Linux dynamic linker is in use. 18793 dynamic_linker='GNU/Linux ld.so' 18794 ;; 18795 18796netbsd*) 18797 version_type=sunos 18798 need_lib_prefix=no 18799 need_version=no 18800 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18802 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18803 dynamic_linker='NetBSD (a.out) ld.so' 18804 else 18805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18806 soname_spec='${libname}${release}${shared_ext}$major' 18807 dynamic_linker='NetBSD ld.elf_so' 18808 fi 18809 shlibpath_var=LD_LIBRARY_PATH 18810 shlibpath_overrides_runpath=yes 18811 hardcode_into_libs=yes 18812 ;; 18813 18814newsos6) 18815 version_type=linux 18816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18817 shlibpath_var=LD_LIBRARY_PATH 18818 shlibpath_overrides_runpath=yes 18819 ;; 18820 18821nto-qnx*) 18822 version_type=linux 18823 need_lib_prefix=no 18824 need_version=no 18825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18826 soname_spec='${libname}${release}${shared_ext}$major' 18827 shlibpath_var=LD_LIBRARY_PATH 18828 shlibpath_overrides_runpath=yes 18829 ;; 18830 18831openbsd*) 18832 version_type=sunos 18833 sys_lib_dlsearch_path_spec="/usr/lib" 18834 need_lib_prefix=no 18835 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18836 case $host_os in 18837 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18838 *) need_version=no ;; 18839 esac 18840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18841 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18842 shlibpath_var=LD_LIBRARY_PATH 18843 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18844 case $host_os in 18845 openbsd2.[89] | openbsd2.[89].*) 18846 shlibpath_overrides_runpath=no 18847 ;; 18848 *) 18849 shlibpath_overrides_runpath=yes 18850 ;; 18851 esac 18852 else 18853 shlibpath_overrides_runpath=yes 18854 fi 18855 ;; 18856 18857os2*) 18858 libname_spec='$name' 18859 shrext_cmds=".dll" 18860 need_lib_prefix=no 18861 library_names_spec='$libname${shared_ext} $libname.a' 18862 dynamic_linker='OS/2 ld.exe' 18863 shlibpath_var=LIBPATH 18864 ;; 18865 18866osf3* | osf4* | osf5*) 18867 version_type=osf 18868 need_lib_prefix=no 18869 need_version=no 18870 soname_spec='${libname}${release}${shared_ext}$major' 18871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18872 shlibpath_var=LD_LIBRARY_PATH 18873 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18874 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18875 ;; 18876 18877rdos*) 18878 dynamic_linker=no 18879 ;; 18880 18881solaris*) 18882 version_type=linux 18883 need_lib_prefix=no 18884 need_version=no 18885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18886 soname_spec='${libname}${release}${shared_ext}$major' 18887 shlibpath_var=LD_LIBRARY_PATH 18888 shlibpath_overrides_runpath=yes 18889 hardcode_into_libs=yes 18890 # ldd complains unless libraries are executable 18891 postinstall_cmds='chmod +x $lib' 18892 ;; 18893 18894sunos4*) 18895 version_type=sunos 18896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18897 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18898 shlibpath_var=LD_LIBRARY_PATH 18899 shlibpath_overrides_runpath=yes 18900 if test "$with_gnu_ld" = yes; then 18901 need_lib_prefix=no 18902 fi 18903 need_version=yes 18904 ;; 18905 18906sysv4 | sysv4.3*) 18907 version_type=linux 18908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18909 soname_spec='${libname}${release}${shared_ext}$major' 18910 shlibpath_var=LD_LIBRARY_PATH 18911 case $host_vendor in 18912 sni) 18913 shlibpath_overrides_runpath=no 18914 need_lib_prefix=no 18915 export_dynamic_flag_spec='${wl}-Blargedynsym' 18916 runpath_var=LD_RUN_PATH 18917 ;; 18918 siemens) 18919 need_lib_prefix=no 18920 ;; 18921 motorola) 18922 need_lib_prefix=no 18923 need_version=no 18924 shlibpath_overrides_runpath=no 18925 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18926 ;; 18927 esac 18928 ;; 18929 18930sysv4*MP*) 18931 if test -d /usr/nec ;then 18932 version_type=linux 18933 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18934 soname_spec='$libname${shared_ext}.$major' 18935 shlibpath_var=LD_LIBRARY_PATH 18936 fi 18937 ;; 18938 18939sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18940 version_type=freebsd-elf 18941 need_lib_prefix=no 18942 need_version=no 18943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18944 soname_spec='${libname}${release}${shared_ext}$major' 18945 shlibpath_var=LD_LIBRARY_PATH 18946 hardcode_into_libs=yes 18947 if test "$with_gnu_ld" = yes; then 18948 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18949 shlibpath_overrides_runpath=no 18950 else 18951 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18952 shlibpath_overrides_runpath=yes 18953 case $host_os in 18954 sco3.2v5*) 18955 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18956 ;; 18957 esac 18958 fi 18959 sys_lib_dlsearch_path_spec='/usr/lib' 18960 ;; 18961 18962uts4*) 18963 version_type=linux 18964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18965 soname_spec='${libname}${release}${shared_ext}$major' 18966 shlibpath_var=LD_LIBRARY_PATH 18967 ;; 18968 18969*) 18970 dynamic_linker=no 18971 ;; 18972esac 18973{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18974$as_echo "$dynamic_linker" >&6; } 18975test "$dynamic_linker" = no && can_build_shared=no 18976 18977if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 18978 $as_echo_n "(cached) " >&6 18979else 18980 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 18981fi 18982 18983sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 18984if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 18985 $as_echo_n "(cached) " >&6 18986else 18987 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 18988fi 18989 18990sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 18991 18992variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18993if test "$GCC" = yes; then 18994 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18995fi 18996 18997{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18998$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 18999hardcode_action_GCJ= 19000if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 19001 test -n "$runpath_var_GCJ" || \ 19002 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 19003 19004 # We can hardcode non-existant directories. 19005 if test "$hardcode_direct_GCJ" != no && 19006 # If the only mechanism to avoid hardcoding is shlibpath_var, we 19007 # have to relink, otherwise we might link with an installed library 19008 # when we should be linking with a yet-to-be-installed one 19009 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 19010 test "$hardcode_minus_L_GCJ" != no; then 19011 # Linking always hardcodes the temporary library directory. 19012 hardcode_action_GCJ=relink 19013 else 19014 # We can link without hardcoding, and we can hardcode nonexisting dirs. 19015 hardcode_action_GCJ=immediate 19016 fi 19017else 19018 # We cannot hardcode anything, or else we can only hardcode existing 19019 # directories. 19020 hardcode_action_GCJ=unsupported 19021fi 19022{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 19023$as_echo "$hardcode_action_GCJ" >&6; } 19024 19025if test "$hardcode_action_GCJ" = relink; then 19026 # Fast installation is not supported 19027 enable_fast_install=no 19028elif test "$shlibpath_overrides_runpath" = yes || 19029 test "$enable_shared" = no; then 19030 # Fast installation is not necessary 19031 enable_fast_install=needless 19032fi 19033 19034 19035# The else clause should only fire when bootstrapping the 19036# libtool distribution, otherwise you forgot to ship ltmain.sh 19037# with your package, and you will get complaints that there are 19038# no rules to generate ltmain.sh. 19039if test -f "$ltmain"; then 19040 # See if we are running on zsh, and set the options which allow our commands through 19041 # without removal of \ escapes. 19042 if test -n "${ZSH_VERSION+set}" ; then 19043 setopt NO_GLOB_SUBST 19044 fi 19045 # Now quote all the things that may contain metacharacters while being 19046 # careful not to overquote the AC_SUBSTed values. We take copies of the 19047 # variables and quote the copies for generation of the libtool script. 19048 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19049 SED SHELL STRIP \ 19050 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19051 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19052 deplibs_check_method reload_flag reload_cmds need_locks \ 19053 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19054 lt_cv_sys_global_symbol_to_c_name_address \ 19055 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19056 old_postinstall_cmds old_postuninstall_cmds \ 19057 compiler_GCJ \ 19058 CC_GCJ \ 19059 LD_GCJ \ 19060 lt_prog_compiler_wl_GCJ \ 19061 lt_prog_compiler_pic_GCJ \ 19062 lt_prog_compiler_static_GCJ \ 19063 lt_prog_compiler_no_builtin_flag_GCJ \ 19064 export_dynamic_flag_spec_GCJ \ 19065 thread_safe_flag_spec_GCJ \ 19066 whole_archive_flag_spec_GCJ \ 19067 enable_shared_with_static_runtimes_GCJ \ 19068 old_archive_cmds_GCJ \ 19069 old_archive_from_new_cmds_GCJ \ 19070 predep_objects_GCJ \ 19071 postdep_objects_GCJ \ 19072 predeps_GCJ \ 19073 postdeps_GCJ \ 19074 compiler_lib_search_path_GCJ \ 19075 compiler_lib_search_dirs_GCJ \ 19076 archive_cmds_GCJ \ 19077 archive_expsym_cmds_GCJ \ 19078 postinstall_cmds_GCJ \ 19079 postuninstall_cmds_GCJ \ 19080 old_archive_from_expsyms_cmds_GCJ \ 19081 allow_undefined_flag_GCJ \ 19082 no_undefined_flag_GCJ \ 19083 export_symbols_cmds_GCJ \ 19084 hardcode_libdir_flag_spec_GCJ \ 19085 hardcode_libdir_flag_spec_ld_GCJ \ 19086 hardcode_libdir_separator_GCJ \ 19087 hardcode_automatic_GCJ \ 19088 module_cmds_GCJ \ 19089 module_expsym_cmds_GCJ \ 19090 lt_cv_prog_compiler_c_o_GCJ \ 19091 fix_srcfile_path_GCJ \ 19092 exclude_expsyms_GCJ \ 19093 include_expsyms_GCJ; do 19094 19095 case $var in 19096 old_archive_cmds_GCJ | \ 19097 old_archive_from_new_cmds_GCJ | \ 19098 archive_cmds_GCJ | \ 19099 archive_expsym_cmds_GCJ | \ 19100 module_cmds_GCJ | \ 19101 module_expsym_cmds_GCJ | \ 19102 old_archive_from_expsyms_cmds_GCJ | \ 19103 export_symbols_cmds_GCJ | \ 19104 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19105 postinstall_cmds | postuninstall_cmds | \ 19106 old_postinstall_cmds | old_postuninstall_cmds | \ 19107 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19108 # Double-quote double-evaled strings. 19109 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19110 ;; 19111 *) 19112 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19113 ;; 19114 esac 19115 done 19116 19117 case $lt_echo in 19118 *'\$0 --fallback-echo"') 19119 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19120 ;; 19121 esac 19122 19123cfgfile="$ofile" 19124 19125 cat <<__EOF__ >> "$cfgfile" 19126# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19127 19128# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19129 19130# Shell to use when invoking shell scripts. 19131SHELL=$lt_SHELL 19132 19133# Whether or not to build shared libraries. 19134build_libtool_libs=$enable_shared 19135 19136# Whether or not to build static libraries. 19137build_old_libs=$enable_static 19138 19139# Whether or not to add -lc for building shared libraries. 19140build_libtool_need_lc=$archive_cmds_need_lc_GCJ 19141 19142# Whether or not to disallow shared libs when runtime libs are static 19143allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 19144 19145# Whether or not to optimize for fast installation. 19146fast_install=$enable_fast_install 19147 19148# The host system. 19149host_alias=$host_alias 19150host=$host 19151host_os=$host_os 19152 19153# The build system. 19154build_alias=$build_alias 19155build=$build 19156build_os=$build_os 19157 19158# An echo program that does not interpret backslashes. 19159echo=$lt_echo 19160 19161# The archiver. 19162AR=$lt_AR 19163AR_FLAGS=$lt_AR_FLAGS 19164 19165# A C compiler. 19166LTCC=$lt_LTCC 19167 19168# LTCC compiler flags. 19169LTCFLAGS=$lt_LTCFLAGS 19170 19171# A language-specific compiler. 19172CC=$lt_compiler_GCJ 19173 19174# Is the compiler the GNU C compiler? 19175with_gcc=$GCC_GCJ 19176 19177# An ERE matcher. 19178EGREP=$lt_EGREP 19179 19180# The linker used to build libraries. 19181LD=$lt_LD_GCJ 19182 19183# Whether we need hard or soft links. 19184LN_S=$lt_LN_S 19185 19186# A BSD-compatible nm program. 19187NM=$lt_NM 19188 19189# A symbol stripping program 19190STRIP=$lt_STRIP 19191 19192# Used to examine libraries when file_magic_cmd begins "file" 19193MAGIC_CMD=$MAGIC_CMD 19194 19195# Used on cygwin: DLL creation program. 19196DLLTOOL="$DLLTOOL" 19197 19198# Used on cygwin: object dumper. 19199OBJDUMP="$OBJDUMP" 19200 19201# Used on cygwin: assembler. 19202AS="$AS" 19203 19204# The name of the directory that contains temporary libtool files. 19205objdir=$objdir 19206 19207# How to create reloadable object files. 19208reload_flag=$lt_reload_flag 19209reload_cmds=$lt_reload_cmds 19210 19211# How to pass a linker flag through the compiler. 19212wl=$lt_lt_prog_compiler_wl_GCJ 19213 19214# Object file suffix (normally "o"). 19215objext="$ac_objext" 19216 19217# Old archive suffix (normally "a"). 19218libext="$libext" 19219 19220# Shared library suffix (normally ".so"). 19221shrext_cmds='$shrext_cmds' 19222 19223# Executable file suffix (normally ""). 19224exeext="$exeext" 19225 19226# Additional compiler flags for building library objects. 19227pic_flag=$lt_lt_prog_compiler_pic_GCJ 19228pic_mode=$pic_mode 19229 19230# What is the maximum length of a command? 19231max_cmd_len=$lt_cv_sys_max_cmd_len 19232 19233# Does compiler simultaneously support -c and -o options? 19234compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 19235 19236# Must we lock files when doing compilation? 19237need_locks=$lt_need_locks 19238 19239# Do we need the lib prefix for modules? 19240need_lib_prefix=$need_lib_prefix 19241 19242# Do we need a version for libraries? 19243need_version=$need_version 19244 19245# Whether dlopen is supported. 19246dlopen_support=$enable_dlopen 19247 19248# Whether dlopen of programs is supported. 19249dlopen_self=$enable_dlopen_self 19250 19251# Whether dlopen of statically linked programs is supported. 19252dlopen_self_static=$enable_dlopen_self_static 19253 19254# Compiler flag to prevent dynamic linking. 19255link_static_flag=$lt_lt_prog_compiler_static_GCJ 19256 19257# Compiler flag to turn off builtin functions. 19258no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 19259 19260# Compiler flag to allow reflexive dlopens. 19261export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 19262 19263# Compiler flag to generate shared objects directly from archives. 19264whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 19265 19266# Compiler flag to generate thread-safe objects. 19267thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 19268 19269# Library versioning type. 19270version_type=$version_type 19271 19272# Format of library name prefix. 19273libname_spec=$lt_libname_spec 19274 19275# List of archive names. First name is the real one, the rest are links. 19276# The last name is the one that the linker finds with -lNAME. 19277library_names_spec=$lt_library_names_spec 19278 19279# The coded name of the library, if different from the real name. 19280soname_spec=$lt_soname_spec 19281 19282# Commands used to build and install an old-style archive. 19283RANLIB=$lt_RANLIB 19284old_archive_cmds=$lt_old_archive_cmds_GCJ 19285old_postinstall_cmds=$lt_old_postinstall_cmds 19286old_postuninstall_cmds=$lt_old_postuninstall_cmds 19287 19288# Create an old-style archive from a shared archive. 19289old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 19290 19291# Create a temporary old-style archive to link instead of a shared archive. 19292old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 19293 19294# Commands used to build and install a shared archive. 19295archive_cmds=$lt_archive_cmds_GCJ 19296archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 19297postinstall_cmds=$lt_postinstall_cmds 19298postuninstall_cmds=$lt_postuninstall_cmds 19299 19300# Commands used to build a loadable module (assumed same as above if empty) 19301module_cmds=$lt_module_cmds_GCJ 19302module_expsym_cmds=$lt_module_expsym_cmds_GCJ 19303 19304# Commands to strip libraries. 19305old_striplib=$lt_old_striplib 19306striplib=$lt_striplib 19307 19308# Dependencies to place before the objects being linked to create a 19309# shared library. 19310predep_objects=$lt_predep_objects_GCJ 19311 19312# Dependencies to place after the objects being linked to create a 19313# shared library. 19314postdep_objects=$lt_postdep_objects_GCJ 19315 19316# Dependencies to place before the objects being linked to create a 19317# shared library. 19318predeps=$lt_predeps_GCJ 19319 19320# Dependencies to place after the objects being linked to create a 19321# shared library. 19322postdeps=$lt_postdeps_GCJ 19323 19324# The directories searched by this compiler when creating a shared 19325# library 19326compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ 19327 19328# The library search path used internally by the compiler when linking 19329# a shared library. 19330compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 19331 19332# Method to check whether dependent libraries are shared objects. 19333deplibs_check_method=$lt_deplibs_check_method 19334 19335# Command to use when deplibs_check_method == file_magic. 19336file_magic_cmd=$lt_file_magic_cmd 19337 19338# Flag that allows shared libraries with undefined symbols to be built. 19339allow_undefined_flag=$lt_allow_undefined_flag_GCJ 19340 19341# Flag that forces no undefined symbols. 19342no_undefined_flag=$lt_no_undefined_flag_GCJ 19343 19344# Commands used to finish a libtool library installation in a directory. 19345finish_cmds=$lt_finish_cmds 19346 19347# Same as above, but a single script fragment to be evaled but not shown. 19348finish_eval=$lt_finish_eval 19349 19350# Take the output of nm and produce a listing of raw symbols and C names. 19351global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19352 19353# Transform the output of nm in a proper C declaration 19354global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19355 19356# Transform the output of nm in a C name address pair 19357global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19358 19359# This is the shared library runtime path variable. 19360runpath_var=$runpath_var 19361 19362# This is the shared library path variable. 19363shlibpath_var=$shlibpath_var 19364 19365# Is shlibpath searched before the hard-coded library search path? 19366shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19367 19368# How to hardcode a shared library path into an executable. 19369hardcode_action=$hardcode_action_GCJ 19370 19371# Whether we should hardcode library paths into libraries. 19372hardcode_into_libs=$hardcode_into_libs 19373 19374# Flag to hardcode \$libdir into a binary during linking. 19375# This must work even if \$libdir does not exist. 19376hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 19377 19378# If ld is used when linking, flag to hardcode \$libdir into 19379# a binary during linking. This must work even if \$libdir does 19380# not exist. 19381hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 19382 19383# Whether we need a single -rpath flag with a separated argument. 19384hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 19385 19386# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19387# resulting binary. 19388hardcode_direct=$hardcode_direct_GCJ 19389 19390# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19391# resulting binary. 19392hardcode_minus_L=$hardcode_minus_L_GCJ 19393 19394# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19395# the resulting binary. 19396hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 19397 19398# Set to yes if building a shared library automatically hardcodes DIR into the library 19399# and all subsequent libraries and executables linked against it. 19400hardcode_automatic=$hardcode_automatic_GCJ 19401 19402# Variables whose values should be saved in libtool wrapper scripts and 19403# restored at relink time. 19404variables_saved_for_relink="$variables_saved_for_relink" 19405 19406# Whether libtool must link a program against all its dependency libraries. 19407link_all_deplibs=$link_all_deplibs_GCJ 19408 19409# Compile-time system search path for libraries 19410sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19411 19412# Run-time system search path for libraries 19413sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19414 19415# Fix the shell variable \$srcfile for the compiler. 19416fix_srcfile_path=$lt_fix_srcfile_path 19417 19418# Set to yes if exported symbols are required. 19419always_export_symbols=$always_export_symbols_GCJ 19420 19421# The commands to list exported symbols. 19422export_symbols_cmds=$lt_export_symbols_cmds_GCJ 19423 19424# The commands to extract the exported symbol list from a shared archive. 19425extract_expsyms_cmds=$lt_extract_expsyms_cmds 19426 19427# Symbols that should not be listed in the preloaded symbols. 19428exclude_expsyms=$lt_exclude_expsyms_GCJ 19429 19430# Symbols that must always be exported. 19431include_expsyms=$lt_include_expsyms_GCJ 19432 19433# ### END LIBTOOL TAG CONFIG: $tagname 19434 19435__EOF__ 19436 19437 19438else 19439 # If there is no Makefile yet, we rely on a make rule to execute 19440 # `config.status --recheck' to rerun these tests and create the 19441 # libtool script then. 19442 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19443 if test -f "$ltmain_in"; then 19444 test -f Makefile && make "$ltmain" 19445 fi 19446fi 19447 19448 19449ac_ext=c 19450ac_cpp='$CPP $CPPFLAGS' 19451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19453ac_compiler_gnu=$ac_cv_c_compiler_gnu 19454 19455CC="$lt_save_CC" 19456 19457 else 19458 tagname="" 19459 fi 19460 ;; 19461 19462 RC) 19463 19464 19465# Source file extension for RC test sources. 19466ac_ext=rc 19467 19468# Object file extension for compiled RC test sources. 19469objext=o 19470objext_RC=$objext 19471 19472# Code to be used in simple compile tests 19473lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 19474 19475# Code to be used in simple link tests 19476lt_simple_link_test_code="$lt_simple_compile_test_code" 19477 19478# ltmain only uses $CC for tagged configurations so make sure $CC is set. 19479 19480# If no C compiler was specified, use CC. 19481LTCC=${LTCC-"$CC"} 19482 19483# If no C compiler flags were specified, use CFLAGS. 19484LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 19485 19486# Allow CC to be a program name with arguments. 19487compiler=$CC 19488 19489 19490# save warnings/boilerplate of simple test code 19491ac_outfile=conftest.$ac_objext 19492echo "$lt_simple_compile_test_code" >conftest.$ac_ext 19493eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19494_lt_compiler_boilerplate=`cat conftest.err` 19495$rm conftest* 19496 19497ac_outfile=conftest.$ac_objext 19498echo "$lt_simple_link_test_code" >conftest.$ac_ext 19499eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19500_lt_linker_boilerplate=`cat conftest.err` 19501$rm -r conftest* 19502 19503 19504# Allow CC to be a program name with arguments. 19505lt_save_CC="$CC" 19506CC=${RC-"windres"} 19507compiler=$CC 19508compiler_RC=$CC 19509for cc_temp in $compiler""; do 19510 case $cc_temp in 19511 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19512 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19513 \-*) ;; 19514 *) break;; 19515 esac 19516done 19517cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 19518 19519lt_cv_prog_compiler_c_o_RC=yes 19520 19521# The else clause should only fire when bootstrapping the 19522# libtool distribution, otherwise you forgot to ship ltmain.sh 19523# with your package, and you will get complaints that there are 19524# no rules to generate ltmain.sh. 19525if test -f "$ltmain"; then 19526 # See if we are running on zsh, and set the options which allow our commands through 19527 # without removal of \ escapes. 19528 if test -n "${ZSH_VERSION+set}" ; then 19529 setopt NO_GLOB_SUBST 19530 fi 19531 # Now quote all the things that may contain metacharacters while being 19532 # careful not to overquote the AC_SUBSTed values. We take copies of the 19533 # variables and quote the copies for generation of the libtool script. 19534 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19535 SED SHELL STRIP \ 19536 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19537 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19538 deplibs_check_method reload_flag reload_cmds need_locks \ 19539 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19540 lt_cv_sys_global_symbol_to_c_name_address \ 19541 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19542 old_postinstall_cmds old_postuninstall_cmds \ 19543 compiler_RC \ 19544 CC_RC \ 19545 LD_RC \ 19546 lt_prog_compiler_wl_RC \ 19547 lt_prog_compiler_pic_RC \ 19548 lt_prog_compiler_static_RC \ 19549 lt_prog_compiler_no_builtin_flag_RC \ 19550 export_dynamic_flag_spec_RC \ 19551 thread_safe_flag_spec_RC \ 19552 whole_archive_flag_spec_RC \ 19553 enable_shared_with_static_runtimes_RC \ 19554 old_archive_cmds_RC \ 19555 old_archive_from_new_cmds_RC \ 19556 predep_objects_RC \ 19557 postdep_objects_RC \ 19558 predeps_RC \ 19559 postdeps_RC \ 19560 compiler_lib_search_path_RC \ 19561 compiler_lib_search_dirs_RC \ 19562 archive_cmds_RC \ 19563 archive_expsym_cmds_RC \ 19564 postinstall_cmds_RC \ 19565 postuninstall_cmds_RC \ 19566 old_archive_from_expsyms_cmds_RC \ 19567 allow_undefined_flag_RC \ 19568 no_undefined_flag_RC \ 19569 export_symbols_cmds_RC \ 19570 hardcode_libdir_flag_spec_RC \ 19571 hardcode_libdir_flag_spec_ld_RC \ 19572 hardcode_libdir_separator_RC \ 19573 hardcode_automatic_RC \ 19574 module_cmds_RC \ 19575 module_expsym_cmds_RC \ 19576 lt_cv_prog_compiler_c_o_RC \ 19577 fix_srcfile_path_RC \ 19578 exclude_expsyms_RC \ 19579 include_expsyms_RC; do 19580 19581 case $var in 19582 old_archive_cmds_RC | \ 19583 old_archive_from_new_cmds_RC | \ 19584 archive_cmds_RC | \ 19585 archive_expsym_cmds_RC | \ 19586 module_cmds_RC | \ 19587 module_expsym_cmds_RC | \ 19588 old_archive_from_expsyms_cmds_RC | \ 19589 export_symbols_cmds_RC | \ 19590 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19591 postinstall_cmds | postuninstall_cmds | \ 19592 old_postinstall_cmds | old_postuninstall_cmds | \ 19593 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19594 # Double-quote double-evaled strings. 19595 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19596 ;; 19597 *) 19598 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19599 ;; 19600 esac 19601 done 19602 19603 case $lt_echo in 19604 *'\$0 --fallback-echo"') 19605 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19606 ;; 19607 esac 19608 19609cfgfile="$ofile" 19610 19611 cat <<__EOF__ >> "$cfgfile" 19612# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19613 19614# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19615 19616# Shell to use when invoking shell scripts. 19617SHELL=$lt_SHELL 19618 19619# Whether or not to build shared libraries. 19620build_libtool_libs=$enable_shared 19621 19622# Whether or not to build static libraries. 19623build_old_libs=$enable_static 19624 19625# Whether or not to add -lc for building shared libraries. 19626build_libtool_need_lc=$archive_cmds_need_lc_RC 19627 19628# Whether or not to disallow shared libs when runtime libs are static 19629allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19630 19631# Whether or not to optimize for fast installation. 19632fast_install=$enable_fast_install 19633 19634# The host system. 19635host_alias=$host_alias 19636host=$host 19637host_os=$host_os 19638 19639# The build system. 19640build_alias=$build_alias 19641build=$build 19642build_os=$build_os 19643 19644# An echo program that does not interpret backslashes. 19645echo=$lt_echo 19646 19647# The archiver. 19648AR=$lt_AR 19649AR_FLAGS=$lt_AR_FLAGS 19650 19651# A C compiler. 19652LTCC=$lt_LTCC 19653 19654# LTCC compiler flags. 19655LTCFLAGS=$lt_LTCFLAGS 19656 19657# A language-specific compiler. 19658CC=$lt_compiler_RC 19659 19660# Is the compiler the GNU C compiler? 19661with_gcc=$GCC_RC 19662 19663# An ERE matcher. 19664EGREP=$lt_EGREP 19665 19666# The linker used to build libraries. 19667LD=$lt_LD_RC 19668 19669# Whether we need hard or soft links. 19670LN_S=$lt_LN_S 19671 19672# A BSD-compatible nm program. 19673NM=$lt_NM 19674 19675# A symbol stripping program 19676STRIP=$lt_STRIP 19677 19678# Used to examine libraries when file_magic_cmd begins "file" 19679MAGIC_CMD=$MAGIC_CMD 19680 19681# Used on cygwin: DLL creation program. 19682DLLTOOL="$DLLTOOL" 19683 19684# Used on cygwin: object dumper. 19685OBJDUMP="$OBJDUMP" 19686 19687# Used on cygwin: assembler. 19688AS="$AS" 19689 19690# The name of the directory that contains temporary libtool files. 19691objdir=$objdir 19692 19693# How to create reloadable object files. 19694reload_flag=$lt_reload_flag 19695reload_cmds=$lt_reload_cmds 19696 19697# How to pass a linker flag through the compiler. 19698wl=$lt_lt_prog_compiler_wl_RC 19699 19700# Object file suffix (normally "o"). 19701objext="$ac_objext" 19702 19703# Old archive suffix (normally "a"). 19704libext="$libext" 19705 19706# Shared library suffix (normally ".so"). 19707shrext_cmds='$shrext_cmds' 19708 19709# Executable file suffix (normally ""). 19710exeext="$exeext" 19711 19712# Additional compiler flags for building library objects. 19713pic_flag=$lt_lt_prog_compiler_pic_RC 19714pic_mode=$pic_mode 19715 19716# What is the maximum length of a command? 19717max_cmd_len=$lt_cv_sys_max_cmd_len 19718 19719# Does compiler simultaneously support -c and -o options? 19720compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19721 19722# Must we lock files when doing compilation? 19723need_locks=$lt_need_locks 19724 19725# Do we need the lib prefix for modules? 19726need_lib_prefix=$need_lib_prefix 19727 19728# Do we need a version for libraries? 19729need_version=$need_version 19730 19731# Whether dlopen is supported. 19732dlopen_support=$enable_dlopen 19733 19734# Whether dlopen of programs is supported. 19735dlopen_self=$enable_dlopen_self 19736 19737# Whether dlopen of statically linked programs is supported. 19738dlopen_self_static=$enable_dlopen_self_static 19739 19740# Compiler flag to prevent dynamic linking. 19741link_static_flag=$lt_lt_prog_compiler_static_RC 19742 19743# Compiler flag to turn off builtin functions. 19744no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19745 19746# Compiler flag to allow reflexive dlopens. 19747export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19748 19749# Compiler flag to generate shared objects directly from archives. 19750whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19751 19752# Compiler flag to generate thread-safe objects. 19753thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19754 19755# Library versioning type. 19756version_type=$version_type 19757 19758# Format of library name prefix. 19759libname_spec=$lt_libname_spec 19760 19761# List of archive names. First name is the real one, the rest are links. 19762# The last name is the one that the linker finds with -lNAME. 19763library_names_spec=$lt_library_names_spec 19764 19765# The coded name of the library, if different from the real name. 19766soname_spec=$lt_soname_spec 19767 19768# Commands used to build and install an old-style archive. 19769RANLIB=$lt_RANLIB 19770old_archive_cmds=$lt_old_archive_cmds_RC 19771old_postinstall_cmds=$lt_old_postinstall_cmds 19772old_postuninstall_cmds=$lt_old_postuninstall_cmds 19773 19774# Create an old-style archive from a shared archive. 19775old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19776 19777# Create a temporary old-style archive to link instead of a shared archive. 19778old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19779 19780# Commands used to build and install a shared archive. 19781archive_cmds=$lt_archive_cmds_RC 19782archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19783postinstall_cmds=$lt_postinstall_cmds 19784postuninstall_cmds=$lt_postuninstall_cmds 19785 19786# Commands used to build a loadable module (assumed same as above if empty) 19787module_cmds=$lt_module_cmds_RC 19788module_expsym_cmds=$lt_module_expsym_cmds_RC 19789 19790# Commands to strip libraries. 19791old_striplib=$lt_old_striplib 19792striplib=$lt_striplib 19793 19794# Dependencies to place before the objects being linked to create a 19795# shared library. 19796predep_objects=$lt_predep_objects_RC 19797 19798# Dependencies to place after the objects being linked to create a 19799# shared library. 19800postdep_objects=$lt_postdep_objects_RC 19801 19802# Dependencies to place before the objects being linked to create a 19803# shared library. 19804predeps=$lt_predeps_RC 19805 19806# Dependencies to place after the objects being linked to create a 19807# shared library. 19808postdeps=$lt_postdeps_RC 19809 19810# The directories searched by this compiler when creating a shared 19811# library 19812compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC 19813 19814# The library search path used internally by the compiler when linking 19815# a shared library. 19816compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19817 19818# Method to check whether dependent libraries are shared objects. 19819deplibs_check_method=$lt_deplibs_check_method 19820 19821# Command to use when deplibs_check_method == file_magic. 19822file_magic_cmd=$lt_file_magic_cmd 19823 19824# Flag that allows shared libraries with undefined symbols to be built. 19825allow_undefined_flag=$lt_allow_undefined_flag_RC 19826 19827# Flag that forces no undefined symbols. 19828no_undefined_flag=$lt_no_undefined_flag_RC 19829 19830# Commands used to finish a libtool library installation in a directory. 19831finish_cmds=$lt_finish_cmds 19832 19833# Same as above, but a single script fragment to be evaled but not shown. 19834finish_eval=$lt_finish_eval 19835 19836# Take the output of nm and produce a listing of raw symbols and C names. 19837global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19838 19839# Transform the output of nm in a proper C declaration 19840global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19841 19842# Transform the output of nm in a C name address pair 19843global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19844 19845# This is the shared library runtime path variable. 19846runpath_var=$runpath_var 19847 19848# This is the shared library path variable. 19849shlibpath_var=$shlibpath_var 19850 19851# Is shlibpath searched before the hard-coded library search path? 19852shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19853 19854# How to hardcode a shared library path into an executable. 19855hardcode_action=$hardcode_action_RC 19856 19857# Whether we should hardcode library paths into libraries. 19858hardcode_into_libs=$hardcode_into_libs 19859 19860# Flag to hardcode \$libdir into a binary during linking. 19861# This must work even if \$libdir does not exist. 19862hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19863 19864# If ld is used when linking, flag to hardcode \$libdir into 19865# a binary during linking. This must work even if \$libdir does 19866# not exist. 19867hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19868 19869# Whether we need a single -rpath flag with a separated argument. 19870hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19871 19872# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19873# resulting binary. 19874hardcode_direct=$hardcode_direct_RC 19875 19876# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19877# resulting binary. 19878hardcode_minus_L=$hardcode_minus_L_RC 19879 19880# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19881# the resulting binary. 19882hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19883 19884# Set to yes if building a shared library automatically hardcodes DIR into the library 19885# and all subsequent libraries and executables linked against it. 19886hardcode_automatic=$hardcode_automatic_RC 19887 19888# Variables whose values should be saved in libtool wrapper scripts and 19889# restored at relink time. 19890variables_saved_for_relink="$variables_saved_for_relink" 19891 19892# Whether libtool must link a program against all its dependency libraries. 19893link_all_deplibs=$link_all_deplibs_RC 19894 19895# Compile-time system search path for libraries 19896sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19897 19898# Run-time system search path for libraries 19899sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19900 19901# Fix the shell variable \$srcfile for the compiler. 19902fix_srcfile_path=$lt_fix_srcfile_path 19903 19904# Set to yes if exported symbols are required. 19905always_export_symbols=$always_export_symbols_RC 19906 19907# The commands to list exported symbols. 19908export_symbols_cmds=$lt_export_symbols_cmds_RC 19909 19910# The commands to extract the exported symbol list from a shared archive. 19911extract_expsyms_cmds=$lt_extract_expsyms_cmds 19912 19913# Symbols that should not be listed in the preloaded symbols. 19914exclude_expsyms=$lt_exclude_expsyms_RC 19915 19916# Symbols that must always be exported. 19917include_expsyms=$lt_include_expsyms_RC 19918 19919# ### END LIBTOOL TAG CONFIG: $tagname 19920 19921__EOF__ 19922 19923 19924else 19925 # If there is no Makefile yet, we rely on a make rule to execute 19926 # `config.status --recheck' to rerun these tests and create the 19927 # libtool script then. 19928 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19929 if test -f "$ltmain_in"; then 19930 test -f Makefile && make "$ltmain" 19931 fi 19932fi 19933 19934 19935ac_ext=c 19936ac_cpp='$CPP $CPPFLAGS' 19937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19939ac_compiler_gnu=$ac_cv_c_compiler_gnu 19940 19941CC="$lt_save_CC" 19942 19943 ;; 19944 19945 *) 19946 { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19947$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19948 { (exit 1); exit 1; }; } 19949 ;; 19950 esac 19951 19952 # Append the new tag name to the list of available tags. 19953 if test -n "$tagname" ; then 19954 available_tags="$available_tags $tagname" 19955 fi 19956 fi 19957 done 19958 IFS="$lt_save_ifs" 19959 19960 # Now substitute the updated list of available tags. 19961 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19962 mv "${ofile}T" "$ofile" 19963 chmod +x "$ofile" 19964 else 19965 rm -f "${ofile}T" 19966 { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19967$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19968 { (exit 1); exit 1; }; } 19969 fi 19970fi 19971 19972 19973 19974# This can be used to rebuild libtool when needed 19975LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19976 19977# Always use our own libtool. 19978LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19979 19980# Prevent multiple expansion 19981 19982 19983 19984 19985 19986 19987 19988 19989 19990 19991 19992 19993 19994 19995 19996 19997 19998 19999 20000 20001ac_ext=c 20002ac_cpp='$CPP $CPPFLAGS' 20003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20005ac_compiler_gnu=$ac_cv_c_compiler_gnu 20006if test -n "$ac_tool_prefix"; then 20007 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 20008set dummy ${ac_tool_prefix}gcc; ac_word=$2 20009{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20010$as_echo_n "checking for $ac_word... " >&6; } 20011if test "${ac_cv_prog_CC+set}" = set; then 20012 $as_echo_n "(cached) " >&6 20013else 20014 if test -n "$CC"; then 20015 ac_cv_prog_CC="$CC" # Let the user override the test. 20016else 20017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20018for as_dir in $PATH 20019do 20020 IFS=$as_save_IFS 20021 test -z "$as_dir" && as_dir=. 20022 for ac_exec_ext in '' $ac_executable_extensions; do 20023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20024 ac_cv_prog_CC="${ac_tool_prefix}gcc" 20025 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20026 break 2 20027 fi 20028done 20029done 20030IFS=$as_save_IFS 20031 20032fi 20033fi 20034CC=$ac_cv_prog_CC 20035if test -n "$CC"; then 20036 { $as_echo "$as_me:$LINENO: result: $CC" >&5 20037$as_echo "$CC" >&6; } 20038else 20039 { $as_echo "$as_me:$LINENO: result: no" >&5 20040$as_echo "no" >&6; } 20041fi 20042 20043 20044fi 20045if test -z "$ac_cv_prog_CC"; then 20046 ac_ct_CC=$CC 20047 # Extract the first word of "gcc", so it can be a program name with args. 20048set dummy gcc; ac_word=$2 20049{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20050$as_echo_n "checking for $ac_word... " >&6; } 20051if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 20052 $as_echo_n "(cached) " >&6 20053else 20054 if test -n "$ac_ct_CC"; then 20055 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 20056else 20057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20058for as_dir in $PATH 20059do 20060 IFS=$as_save_IFS 20061 test -z "$as_dir" && as_dir=. 20062 for ac_exec_ext in '' $ac_executable_extensions; do 20063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20064 ac_cv_prog_ac_ct_CC="gcc" 20065 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20066 break 2 20067 fi 20068done 20069done 20070IFS=$as_save_IFS 20071 20072fi 20073fi 20074ac_ct_CC=$ac_cv_prog_ac_ct_CC 20075if test -n "$ac_ct_CC"; then 20076 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 20077$as_echo "$ac_ct_CC" >&6; } 20078else 20079 { $as_echo "$as_me:$LINENO: result: no" >&5 20080$as_echo "no" >&6; } 20081fi 20082 20083 if test "x$ac_ct_CC" = x; then 20084 CC="" 20085 else 20086 case $cross_compiling:$ac_tool_warned in 20087yes:) 20088{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 20089whose name does not start with the host triplet. If you think this 20090configuration is useful to you, please write to autoconf@gnu.org." >&5 20091$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 20092whose name does not start with the host triplet. If you think this 20093configuration is useful to you, please write to autoconf@gnu.org." >&2;} 20094ac_tool_warned=yes ;; 20095esac 20096 CC=$ac_ct_CC 20097 fi 20098else 20099 CC="$ac_cv_prog_CC" 20100fi 20101 20102if test -z "$CC"; then 20103 if test -n "$ac_tool_prefix"; then 20104 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 20105set dummy ${ac_tool_prefix}cc; ac_word=$2 20106{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20107$as_echo_n "checking for $ac_word... " >&6; } 20108if test "${ac_cv_prog_CC+set}" = set; then 20109 $as_echo_n "(cached) " >&6 20110else 20111 if test -n "$CC"; then 20112 ac_cv_prog_CC="$CC" # Let the user override the test. 20113else 20114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20115for as_dir in $PATH 20116do 20117 IFS=$as_save_IFS 20118 test -z "$as_dir" && as_dir=. 20119 for ac_exec_ext in '' $ac_executable_extensions; do 20120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20121 ac_cv_prog_CC="${ac_tool_prefix}cc" 20122 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20123 break 2 20124 fi 20125done 20126done 20127IFS=$as_save_IFS 20128 20129fi 20130fi 20131CC=$ac_cv_prog_CC 20132if test -n "$CC"; then 20133 { $as_echo "$as_me:$LINENO: result: $CC" >&5 20134$as_echo "$CC" >&6; } 20135else 20136 { $as_echo "$as_me:$LINENO: result: no" >&5 20137$as_echo "no" >&6; } 20138fi 20139 20140 20141 fi 20142fi 20143if test -z "$CC"; then 20144 # Extract the first word of "cc", so it can be a program name with args. 20145set dummy cc; ac_word=$2 20146{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20147$as_echo_n "checking for $ac_word... " >&6; } 20148if test "${ac_cv_prog_CC+set}" = set; then 20149 $as_echo_n "(cached) " >&6 20150else 20151 if test -n "$CC"; then 20152 ac_cv_prog_CC="$CC" # Let the user override the test. 20153else 20154 ac_prog_rejected=no 20155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20156for as_dir in $PATH 20157do 20158 IFS=$as_save_IFS 20159 test -z "$as_dir" && as_dir=. 20160 for ac_exec_ext in '' $ac_executable_extensions; do 20161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20162 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 20163 ac_prog_rejected=yes 20164 continue 20165 fi 20166 ac_cv_prog_CC="cc" 20167 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20168 break 2 20169 fi 20170done 20171done 20172IFS=$as_save_IFS 20173 20174if test $ac_prog_rejected = yes; then 20175 # We found a bogon in the path, so make sure we never use it. 20176 set dummy $ac_cv_prog_CC 20177 shift 20178 if test $# != 0; then 20179 # We chose a different compiler from the bogus one. 20180 # However, it has the same basename, so the bogon will be chosen 20181 # first if we set CC to just the basename; use the full file name. 20182 shift 20183 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 20184 fi 20185fi 20186fi 20187fi 20188CC=$ac_cv_prog_CC 20189if test -n "$CC"; then 20190 { $as_echo "$as_me:$LINENO: result: $CC" >&5 20191$as_echo "$CC" >&6; } 20192else 20193 { $as_echo "$as_me:$LINENO: result: no" >&5 20194$as_echo "no" >&6; } 20195fi 20196 20197 20198fi 20199if test -z "$CC"; then 20200 if test -n "$ac_tool_prefix"; then 20201 for ac_prog in cl.exe 20202 do 20203 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 20204set dummy $ac_tool_prefix$ac_prog; ac_word=$2 20205{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20206$as_echo_n "checking for $ac_word... " >&6; } 20207if test "${ac_cv_prog_CC+set}" = set; then 20208 $as_echo_n "(cached) " >&6 20209else 20210 if test -n "$CC"; then 20211 ac_cv_prog_CC="$CC" # Let the user override the test. 20212else 20213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20214for as_dir in $PATH 20215do 20216 IFS=$as_save_IFS 20217 test -z "$as_dir" && as_dir=. 20218 for ac_exec_ext in '' $ac_executable_extensions; do 20219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20220 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 20221 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20222 break 2 20223 fi 20224done 20225done 20226IFS=$as_save_IFS 20227 20228fi 20229fi 20230CC=$ac_cv_prog_CC 20231if test -n "$CC"; then 20232 { $as_echo "$as_me:$LINENO: result: $CC" >&5 20233$as_echo "$CC" >&6; } 20234else 20235 { $as_echo "$as_me:$LINENO: result: no" >&5 20236$as_echo "no" >&6; } 20237fi 20238 20239 20240 test -n "$CC" && break 20241 done 20242fi 20243if test -z "$CC"; then 20244 ac_ct_CC=$CC 20245 for ac_prog in cl.exe 20246do 20247 # Extract the first word of "$ac_prog", so it can be a program name with args. 20248set dummy $ac_prog; ac_word=$2 20249{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20250$as_echo_n "checking for $ac_word... " >&6; } 20251if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 20252 $as_echo_n "(cached) " >&6 20253else 20254 if test -n "$ac_ct_CC"; then 20255 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 20256else 20257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20258for as_dir in $PATH 20259do 20260 IFS=$as_save_IFS 20261 test -z "$as_dir" && as_dir=. 20262 for ac_exec_ext in '' $ac_executable_extensions; do 20263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20264 ac_cv_prog_ac_ct_CC="$ac_prog" 20265 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20266 break 2 20267 fi 20268done 20269done 20270IFS=$as_save_IFS 20271 20272fi 20273fi 20274ac_ct_CC=$ac_cv_prog_ac_ct_CC 20275if test -n "$ac_ct_CC"; then 20276 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 20277$as_echo "$ac_ct_CC" >&6; } 20278else 20279 { $as_echo "$as_me:$LINENO: result: no" >&5 20280$as_echo "no" >&6; } 20281fi 20282 20283 20284 test -n "$ac_ct_CC" && break 20285done 20286 20287 if test "x$ac_ct_CC" = x; then 20288 CC="" 20289 else 20290 case $cross_compiling:$ac_tool_warned in 20291yes:) 20292{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 20293whose name does not start with the host triplet. If you think this 20294configuration is useful to you, please write to autoconf@gnu.org." >&5 20295$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 20296whose name does not start with the host triplet. If you think this 20297configuration is useful to you, please write to autoconf@gnu.org." >&2;} 20298ac_tool_warned=yes ;; 20299esac 20300 CC=$ac_ct_CC 20301 fi 20302fi 20303 20304fi 20305 20306 20307test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 20308See \`config.log' for more details." >&5 20309$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 20310See \`config.log' for more details." >&2;} 20311 { (exit 1); exit 1; }; } 20312 20313# Provide some information about the compiler. 20314$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 20315set X $ac_compile 20316ac_compiler=$2 20317{ (ac_try="$ac_compiler --version >&5" 20318case "(($ac_try" in 20319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20320 *) ac_try_echo=$ac_try;; 20321esac 20322eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20323$as_echo "$ac_try_echo") >&5 20324 (eval "$ac_compiler --version >&5") 2>&5 20325 ac_status=$? 20326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20327 (exit $ac_status); } 20328{ (ac_try="$ac_compiler -v >&5" 20329case "(($ac_try" in 20330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20331 *) ac_try_echo=$ac_try;; 20332esac 20333eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20334$as_echo "$ac_try_echo") >&5 20335 (eval "$ac_compiler -v >&5") 2>&5 20336 ac_status=$? 20337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20338 (exit $ac_status); } 20339{ (ac_try="$ac_compiler -V >&5" 20340case "(($ac_try" in 20341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20342 *) ac_try_echo=$ac_try;; 20343esac 20344eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20345$as_echo "$ac_try_echo") >&5 20346 (eval "$ac_compiler -V >&5") 2>&5 20347 ac_status=$? 20348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20349 (exit $ac_status); } 20350 20351{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 20352$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 20353if test "${ac_cv_c_compiler_gnu+set}" = set; then 20354 $as_echo_n "(cached) " >&6 20355else 20356 cat >conftest.$ac_ext <<_ACEOF 20357/* confdefs.h. */ 20358_ACEOF 20359cat confdefs.h >>conftest.$ac_ext 20360cat >>conftest.$ac_ext <<_ACEOF 20361/* end confdefs.h. */ 20362 20363int 20364main () 20365{ 20366#ifndef __GNUC__ 20367 choke me 20368#endif 20369 20370 ; 20371 return 0; 20372} 20373_ACEOF 20374rm -f conftest.$ac_objext 20375if { (ac_try="$ac_compile" 20376case "(($ac_try" in 20377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20378 *) ac_try_echo=$ac_try;; 20379esac 20380eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20381$as_echo "$ac_try_echo") >&5 20382 (eval "$ac_compile") 2>conftest.er1 20383 ac_status=$? 20384 grep -v '^ *+' conftest.er1 >conftest.err 20385 rm -f conftest.er1 20386 cat conftest.err >&5 20387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20388 (exit $ac_status); } && { 20389 test -z "$ac_c_werror_flag" || 20390 test ! -s conftest.err 20391 } && test -s conftest.$ac_objext; then 20392 ac_compiler_gnu=yes 20393else 20394 $as_echo "$as_me: failed program was:" >&5 20395sed 's/^/| /' conftest.$ac_ext >&5 20396 20397 ac_compiler_gnu=no 20398fi 20399 20400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20401ac_cv_c_compiler_gnu=$ac_compiler_gnu 20402 20403fi 20404{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 20405$as_echo "$ac_cv_c_compiler_gnu" >&6; } 20406if test $ac_compiler_gnu = yes; then 20407 GCC=yes 20408else 20409 GCC= 20410fi 20411ac_test_CFLAGS=${CFLAGS+set} 20412ac_save_CFLAGS=$CFLAGS 20413{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 20414$as_echo_n "checking whether $CC accepts -g... " >&6; } 20415if test "${ac_cv_prog_cc_g+set}" = set; then 20416 $as_echo_n "(cached) " >&6 20417else 20418 ac_save_c_werror_flag=$ac_c_werror_flag 20419 ac_c_werror_flag=yes 20420 ac_cv_prog_cc_g=no 20421 CFLAGS="-g" 20422 cat >conftest.$ac_ext <<_ACEOF 20423/* confdefs.h. */ 20424_ACEOF 20425cat confdefs.h >>conftest.$ac_ext 20426cat >>conftest.$ac_ext <<_ACEOF 20427/* end confdefs.h. */ 20428 20429int 20430main () 20431{ 20432 20433 ; 20434 return 0; 20435} 20436_ACEOF 20437rm -f conftest.$ac_objext 20438if { (ac_try="$ac_compile" 20439case "(($ac_try" in 20440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20441 *) ac_try_echo=$ac_try;; 20442esac 20443eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20444$as_echo "$ac_try_echo") >&5 20445 (eval "$ac_compile") 2>conftest.er1 20446 ac_status=$? 20447 grep -v '^ *+' conftest.er1 >conftest.err 20448 rm -f conftest.er1 20449 cat conftest.err >&5 20450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20451 (exit $ac_status); } && { 20452 test -z "$ac_c_werror_flag" || 20453 test ! -s conftest.err 20454 } && test -s conftest.$ac_objext; then 20455 ac_cv_prog_cc_g=yes 20456else 20457 $as_echo "$as_me: failed program was:" >&5 20458sed 's/^/| /' conftest.$ac_ext >&5 20459 20460 CFLAGS="" 20461 cat >conftest.$ac_ext <<_ACEOF 20462/* confdefs.h. */ 20463_ACEOF 20464cat confdefs.h >>conftest.$ac_ext 20465cat >>conftest.$ac_ext <<_ACEOF 20466/* end confdefs.h. */ 20467 20468int 20469main () 20470{ 20471 20472 ; 20473 return 0; 20474} 20475_ACEOF 20476rm -f conftest.$ac_objext 20477if { (ac_try="$ac_compile" 20478case "(($ac_try" in 20479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20480 *) ac_try_echo=$ac_try;; 20481esac 20482eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20483$as_echo "$ac_try_echo") >&5 20484 (eval "$ac_compile") 2>conftest.er1 20485 ac_status=$? 20486 grep -v '^ *+' conftest.er1 >conftest.err 20487 rm -f conftest.er1 20488 cat conftest.err >&5 20489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20490 (exit $ac_status); } && { 20491 test -z "$ac_c_werror_flag" || 20492 test ! -s conftest.err 20493 } && test -s conftest.$ac_objext; then 20494 : 20495else 20496 $as_echo "$as_me: failed program was:" >&5 20497sed 's/^/| /' conftest.$ac_ext >&5 20498 20499 ac_c_werror_flag=$ac_save_c_werror_flag 20500 CFLAGS="-g" 20501 cat >conftest.$ac_ext <<_ACEOF 20502/* confdefs.h. */ 20503_ACEOF 20504cat confdefs.h >>conftest.$ac_ext 20505cat >>conftest.$ac_ext <<_ACEOF 20506/* end confdefs.h. */ 20507 20508int 20509main () 20510{ 20511 20512 ; 20513 return 0; 20514} 20515_ACEOF 20516rm -f conftest.$ac_objext 20517if { (ac_try="$ac_compile" 20518case "(($ac_try" in 20519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20520 *) ac_try_echo=$ac_try;; 20521esac 20522eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20523$as_echo "$ac_try_echo") >&5 20524 (eval "$ac_compile") 2>conftest.er1 20525 ac_status=$? 20526 grep -v '^ *+' conftest.er1 >conftest.err 20527 rm -f conftest.er1 20528 cat conftest.err >&5 20529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20530 (exit $ac_status); } && { 20531 test -z "$ac_c_werror_flag" || 20532 test ! -s conftest.err 20533 } && test -s conftest.$ac_objext; then 20534 ac_cv_prog_cc_g=yes 20535else 20536 $as_echo "$as_me: failed program was:" >&5 20537sed 's/^/| /' conftest.$ac_ext >&5 20538 20539 20540fi 20541 20542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20543fi 20544 20545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20546fi 20547 20548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20549 ac_c_werror_flag=$ac_save_c_werror_flag 20550fi 20551{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 20552$as_echo "$ac_cv_prog_cc_g" >&6; } 20553if test "$ac_test_CFLAGS" = set; then 20554 CFLAGS=$ac_save_CFLAGS 20555elif test $ac_cv_prog_cc_g = yes; then 20556 if test "$GCC" = yes; then 20557 CFLAGS="-g -O2" 20558 else 20559 CFLAGS="-g" 20560 fi 20561else 20562 if test "$GCC" = yes; then 20563 CFLAGS="-O2" 20564 else 20565 CFLAGS= 20566 fi 20567fi 20568{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 20569$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 20570if test "${ac_cv_prog_cc_c89+set}" = set; then 20571 $as_echo_n "(cached) " >&6 20572else 20573 ac_cv_prog_cc_c89=no 20574ac_save_CC=$CC 20575cat >conftest.$ac_ext <<_ACEOF 20576/* confdefs.h. */ 20577_ACEOF 20578cat confdefs.h >>conftest.$ac_ext 20579cat >>conftest.$ac_ext <<_ACEOF 20580/* end confdefs.h. */ 20581#include <stdarg.h> 20582#include <stdio.h> 20583#include <sys/types.h> 20584#include <sys/stat.h> 20585/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 20586struct buf { int x; }; 20587FILE * (*rcsopen) (struct buf *, struct stat *, int); 20588static char *e (p, i) 20589 char **p; 20590 int i; 20591{ 20592 return p[i]; 20593} 20594static char *f (char * (*g) (char **, int), char **p, ...) 20595{ 20596 char *s; 20597 va_list v; 20598 va_start (v,p); 20599 s = g (p, va_arg (v,int)); 20600 va_end (v); 20601 return s; 20602} 20603 20604/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 20605 function prototypes and stuff, but not '\xHH' hex character constants. 20606 These don't provoke an error unfortunately, instead are silently treated 20607 as 'x'. The following induces an error, until -std is added to get 20608 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 20609 array size at least. It's necessary to write '\x00'==0 to get something 20610 that's true only with -std. */ 20611int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 20612 20613/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 20614 inside strings and character constants. */ 20615#define FOO(x) 'x' 20616int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 20617 20618int test (int i, double x); 20619struct s1 {int (*f) (int a);}; 20620struct s2 {int (*f) (double a);}; 20621int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 20622int argc; 20623char **argv; 20624int 20625main () 20626{ 20627return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 20628 ; 20629 return 0; 20630} 20631_ACEOF 20632for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 20633 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 20634do 20635 CC="$ac_save_CC $ac_arg" 20636 rm -f conftest.$ac_objext 20637if { (ac_try="$ac_compile" 20638case "(($ac_try" in 20639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20640 *) ac_try_echo=$ac_try;; 20641esac 20642eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20643$as_echo "$ac_try_echo") >&5 20644 (eval "$ac_compile") 2>conftest.er1 20645 ac_status=$? 20646 grep -v '^ *+' conftest.er1 >conftest.err 20647 rm -f conftest.er1 20648 cat conftest.err >&5 20649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20650 (exit $ac_status); } && { 20651 test -z "$ac_c_werror_flag" || 20652 test ! -s conftest.err 20653 } && test -s conftest.$ac_objext; then 20654 ac_cv_prog_cc_c89=$ac_arg 20655else 20656 $as_echo "$as_me: failed program was:" >&5 20657sed 's/^/| /' conftest.$ac_ext >&5 20658 20659 20660fi 20661 20662rm -f core conftest.err conftest.$ac_objext 20663 test "x$ac_cv_prog_cc_c89" != "xno" && break 20664done 20665rm -f conftest.$ac_ext 20666CC=$ac_save_CC 20667 20668fi 20669# AC_CACHE_VAL 20670case "x$ac_cv_prog_cc_c89" in 20671 x) 20672 { $as_echo "$as_me:$LINENO: result: none needed" >&5 20673$as_echo "none needed" >&6; } ;; 20674 xno) 20675 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 20676$as_echo "unsupported" >&6; } ;; 20677 *) 20678 CC="$CC $ac_cv_prog_cc_c89" 20679 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 20680$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 20681esac 20682 20683 20684ac_ext=c 20685ac_cpp='$CPP $CPPFLAGS' 20686ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20687ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20688ac_compiler_gnu=$ac_cv_c_compiler_gnu 20689 20690depcc="$CC" am_compiler_list= 20691 20692{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 20693$as_echo_n "checking dependency style of $depcc... " >&6; } 20694if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 20695 $as_echo_n "(cached) " >&6 20696else 20697 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 20698 # We make a subdir and do the tests there. Otherwise we can end up 20699 # making bogus files that we don't know about and never remove. For 20700 # instance it was reported that on HP-UX the gcc test will end up 20701 # making a dummy file named `D' -- because `-MD' means `put the output 20702 # in D'. 20703 mkdir conftest.dir 20704 # Copy depcomp to subdir because otherwise we won't find it if we're 20705 # using a relative directory. 20706 cp "$am_depcomp" conftest.dir 20707 cd conftest.dir 20708 # We will build objects and dependencies in a subdirectory because 20709 # it helps to detect inapplicable dependency modes. For instance 20710 # both Tru64's cc and ICC support -MD to output dependencies as a 20711 # side effect of compilation, but ICC will put the dependencies in 20712 # the current directory while Tru64 will put them in the object 20713 # directory. 20714 mkdir sub 20715 20716 am_cv_CC_dependencies_compiler_type=none 20717 if test "$am_compiler_list" = ""; then 20718 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 20719 fi 20720 for depmode in $am_compiler_list; do 20721 # Setup a source with many dependencies, because some compilers 20722 # like to wrap large dependency lists on column 80 (with \), and 20723 # we should not choose a depcomp mode which is confused by this. 20724 # 20725 # We need to recreate these files for each test, as the compiler may 20726 # overwrite some of them when testing with obscure command lines. 20727 # This happens at least with the AIX C compiler. 20728 : > sub/conftest.c 20729 for i in 1 2 3 4 5 6; do 20730 echo '#include "conftst'$i'.h"' >> sub/conftest.c 20731 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 20732 # Solaris 8's {/usr,}/bin/sh. 20733 touch sub/conftst$i.h 20734 done 20735 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 20736 20737 case $depmode in 20738 nosideeffect) 20739 # after this tag, mechanisms are not by side-effect, so they'll 20740 # only be used when explicitly requested 20741 if test "x$enable_dependency_tracking" = xyes; then 20742 continue 20743 else 20744 break 20745 fi 20746 ;; 20747 none) break ;; 20748 esac 20749 # We check with `-c' and `-o' for the sake of the "dashmstdout" 20750 # mode. It turns out that the SunPro C++ compiler does not properly 20751 # handle `-M -o', and we need to detect this. 20752 if depmode=$depmode \ 20753 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 20754 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 20755 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 20756 >/dev/null 2>conftest.err && 20757 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 20758 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 20759 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 20760 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 20761 # icc doesn't choke on unknown options, it will just issue warnings 20762 # or remarks (even with -Werror). So we grep stderr for any message 20763 # that says an option was ignored or not supported. 20764 # When given -MP, icc 7.0 and 7.1 complain thusly: 20765 # icc: Command line warning: ignoring option '-M'; no argument required 20766 # The diagnosis changed in icc 8.0: 20767 # icc: Command line remark: option '-MP' not supported 20768 if (grep 'ignoring option' conftest.err || 20769 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 20770 am_cv_CC_dependencies_compiler_type=$depmode 20771 break 20772 fi 20773 fi 20774 done 20775 20776 cd .. 20777 rm -rf conftest.dir 20778else 20779 am_cv_CC_dependencies_compiler_type=none 20780fi 20781 20782fi 20783{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 20784$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 20785CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 20786 20787 if 20788 test "x$enable_dependency_tracking" != xno \ 20789 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 20790 am__fastdepCC_TRUE= 20791 am__fastdepCC_FALSE='#' 20792else 20793 am__fastdepCC_TRUE='#' 20794 am__fastdepCC_FALSE= 20795fi 20796 20797 20798 20799 20800 20801 20802 20803# Check whether --with-xorg-module-dir was given. 20804if test "${with_xorg_module_dir+set}" = set; then 20805 withval=$with_xorg_module_dir; moduledir="$withval" 20806else 20807 moduledir="$libdir/xorg/modules" 20808fi 20809 20810 20811# Checks for extensions 20812 20813 SAVE_CFLAGS="$CFLAGS" 20814 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 20815 cat >conftest.$ac_ext <<_ACEOF 20816/* confdefs.h. */ 20817_ACEOF 20818cat confdefs.h >>conftest.$ac_ext 20819cat >>conftest.$ac_ext <<_ACEOF 20820/* end confdefs.h. */ 20821 20822#include "xorg-server.h" 20823#if !defined RANDR 20824#error RANDR not defined 20825#endif 20826 20827int 20828main () 20829{ 20830 20831 ; 20832 return 0; 20833} 20834_ACEOF 20835rm -f conftest.$ac_objext 20836if { (ac_try="$ac_compile" 20837case "(($ac_try" in 20838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20839 *) ac_try_echo=$ac_try;; 20840esac 20841eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20842$as_echo "$ac_try_echo") >&5 20843 (eval "$ac_compile") 2>conftest.er1 20844 ac_status=$? 20845 grep -v '^ *+' conftest.er1 >conftest.err 20846 rm -f conftest.er1 20847 cat conftest.err >&5 20848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20849 (exit $ac_status); } && { 20850 test -z "$ac_c_werror_flag" || 20851 test ! -s conftest.err 20852 } && test -s conftest.$ac_objext; then 20853 _EXT_CHECK=yes 20854else 20855 $as_echo "$as_me: failed program was:" >&5 20856sed 's/^/| /' conftest.$ac_ext >&5 20857 20858 _EXT_CHECK=no 20859fi 20860 20861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20862 CFLAGS="$SAVE_CFLAGS" 20863 { $as_echo "$as_me:$LINENO: checking if RANDR is defined" >&5 20864$as_echo_n "checking if RANDR is defined... " >&6; } 20865 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 20866$as_echo "$_EXT_CHECK" >&6; } 20867 if test "$_EXT_CHECK" != no; then 20868 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 20869 fi 20870 20871 20872 SAVE_CFLAGS="$CFLAGS" 20873 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 20874 cat >conftest.$ac_ext <<_ACEOF 20875/* confdefs.h. */ 20876_ACEOF 20877cat confdefs.h >>conftest.$ac_ext 20878cat >>conftest.$ac_ext <<_ACEOF 20879/* end confdefs.h. */ 20880 20881#include "xorg-server.h" 20882#if !defined RENDER 20883#error RENDER not defined 20884#endif 20885 20886int 20887main () 20888{ 20889 20890 ; 20891 return 0; 20892} 20893_ACEOF 20894rm -f conftest.$ac_objext 20895if { (ac_try="$ac_compile" 20896case "(($ac_try" in 20897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20898 *) ac_try_echo=$ac_try;; 20899esac 20900eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20901$as_echo "$ac_try_echo") >&5 20902 (eval "$ac_compile") 2>conftest.er1 20903 ac_status=$? 20904 grep -v '^ *+' conftest.er1 >conftest.err 20905 rm -f conftest.er1 20906 cat conftest.err >&5 20907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20908 (exit $ac_status); } && { 20909 test -z "$ac_c_werror_flag" || 20910 test ! -s conftest.err 20911 } && test -s conftest.$ac_objext; then 20912 _EXT_CHECK=yes 20913else 20914 $as_echo "$as_me: failed program was:" >&5 20915sed 's/^/| /' conftest.$ac_ext >&5 20916 20917 _EXT_CHECK=no 20918fi 20919 20920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20921 CFLAGS="$SAVE_CFLAGS" 20922 { $as_echo "$as_me:$LINENO: checking if RENDER is defined" >&5 20923$as_echo_n "checking if RENDER is defined... " >&6; } 20924 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 20925$as_echo "$_EXT_CHECK" >&6; } 20926 if test "$_EXT_CHECK" != no; then 20927 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 20928 fi 20929 20930 20931 SAVE_CFLAGS="$CFLAGS" 20932 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 20933 cat >conftest.$ac_ext <<_ACEOF 20934/* confdefs.h. */ 20935_ACEOF 20936cat confdefs.h >>conftest.$ac_ext 20937cat >>conftest.$ac_ext <<_ACEOF 20938/* end confdefs.h. */ 20939 20940#include "xorg-server.h" 20941#if !defined XV 20942#error XV not defined 20943#endif 20944 20945int 20946main () 20947{ 20948 20949 ; 20950 return 0; 20951} 20952_ACEOF 20953rm -f conftest.$ac_objext 20954if { (ac_try="$ac_compile" 20955case "(($ac_try" in 20956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20957 *) ac_try_echo=$ac_try;; 20958esac 20959eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20960$as_echo "$ac_try_echo") >&5 20961 (eval "$ac_compile") 2>conftest.er1 20962 ac_status=$? 20963 grep -v '^ *+' conftest.er1 >conftest.err 20964 rm -f conftest.er1 20965 cat conftest.err >&5 20966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20967 (exit $ac_status); } && { 20968 test -z "$ac_c_werror_flag" || 20969 test ! -s conftest.err 20970 } && test -s conftest.$ac_objext; then 20971 _EXT_CHECK=yes 20972else 20973 $as_echo "$as_me: failed program was:" >&5 20974sed 's/^/| /' conftest.$ac_ext >&5 20975 20976 _EXT_CHECK=no 20977fi 20978 20979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20980 CFLAGS="$SAVE_CFLAGS" 20981 { $as_echo "$as_me:$LINENO: checking if XV is defined" >&5 20982$as_echo_n "checking if XV is defined... " >&6; } 20983 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 20984$as_echo "$_EXT_CHECK" >&6; } 20985 if test "$_EXT_CHECK" != no; then 20986 REQUIRED_MODULES="$REQUIRED_MODULES videoproto" 20987 fi 20988 20989 20990 SAVE_CFLAGS="$CFLAGS" 20991 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 20992 cat >conftest.$ac_ext <<_ACEOF 20993/* confdefs.h. */ 20994_ACEOF 20995cat confdefs.h >>conftest.$ac_ext 20996cat >>conftest.$ac_ext <<_ACEOF 20997/* end confdefs.h. */ 20998 20999#include "xorg-server.h" 21000#if !defined DPMSExtension 21001#error DPMSExtension not defined 21002#endif 21003 21004int 21005main () 21006{ 21007 21008 ; 21009 return 0; 21010} 21011_ACEOF 21012rm -f conftest.$ac_objext 21013if { (ac_try="$ac_compile" 21014case "(($ac_try" in 21015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21016 *) ac_try_echo=$ac_try;; 21017esac 21018eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21019$as_echo "$ac_try_echo") >&5 21020 (eval "$ac_compile") 2>conftest.er1 21021 ac_status=$? 21022 grep -v '^ *+' conftest.er1 >conftest.err 21023 rm -f conftest.er1 21024 cat conftest.err >&5 21025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21026 (exit $ac_status); } && { 21027 test -z "$ac_c_werror_flag" || 21028 test ! -s conftest.err 21029 } && test -s conftest.$ac_objext; then 21030 _EXT_CHECK=yes 21031else 21032 $as_echo "$as_me: failed program was:" >&5 21033sed 's/^/| /' conftest.$ac_ext >&5 21034 21035 _EXT_CHECK=no 21036fi 21037 21038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21039 CFLAGS="$SAVE_CFLAGS" 21040 { $as_echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5 21041$as_echo_n "checking if DPMSExtension is defined... " >&6; } 21042 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 21043$as_echo "$_EXT_CHECK" >&6; } 21044 if test "$_EXT_CHECK" != no; then 21045 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 21046 fi 21047 21048 21049 SAVE_CFLAGS="$CFLAGS" 21050 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 21051 cat >conftest.$ac_ext <<_ACEOF 21052/* confdefs.h. */ 21053_ACEOF 21054cat confdefs.h >>conftest.$ac_ext 21055cat >>conftest.$ac_ext <<_ACEOF 21056/* end confdefs.h. */ 21057 21058#include "xorg-server.h" 21059#if !defined XFreeXDGA 21060#error XFreeXDGA not defined 21061#endif 21062 21063int 21064main () 21065{ 21066 21067 ; 21068 return 0; 21069} 21070_ACEOF 21071rm -f conftest.$ac_objext 21072if { (ac_try="$ac_compile" 21073case "(($ac_try" in 21074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21075 *) ac_try_echo=$ac_try;; 21076esac 21077eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21078$as_echo "$ac_try_echo") >&5 21079 (eval "$ac_compile") 2>conftest.er1 21080 ac_status=$? 21081 grep -v '^ *+' conftest.er1 >conftest.err 21082 rm -f conftest.er1 21083 cat conftest.err >&5 21084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21085 (exit $ac_status); } && { 21086 test -z "$ac_c_werror_flag" || 21087 test ! -s conftest.err 21088 } && test -s conftest.$ac_objext; then 21089 _EXT_CHECK=yes 21090else 21091 $as_echo "$as_me: failed program was:" >&5 21092sed 's/^/| /' conftest.$ac_ext >&5 21093 21094 _EXT_CHECK=no 21095fi 21096 21097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21098 CFLAGS="$SAVE_CFLAGS" 21099 { $as_echo "$as_me:$LINENO: checking if XFreeXDGA is defined" >&5 21100$as_echo_n "checking if XFreeXDGA is defined... " >&6; } 21101 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 21102$as_echo "$_EXT_CHECK" >&6; } 21103 if test "$_EXT_CHECK" != no; then 21104 REQUIRED_MODULES="$REQUIRED_MODULES xf86dgaproto" 21105 fi 21106 21107 21108# Checks for pkg-config packages 21109 21110 21111if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 21112 if test -n "$ac_tool_prefix"; then 21113 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 21114set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 21115{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 21116$as_echo_n "checking for $ac_word... " >&6; } 21117if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 21118 $as_echo_n "(cached) " >&6 21119else 21120 case $PKG_CONFIG in 21121 [\\/]* | ?:[\\/]*) 21122 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 21123 ;; 21124 *) 21125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21126for as_dir in $PATH 21127do 21128 IFS=$as_save_IFS 21129 test -z "$as_dir" && as_dir=. 21130 for ac_exec_ext in '' $ac_executable_extensions; do 21131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 21132 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 21133 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 21134 break 2 21135 fi 21136done 21137done 21138IFS=$as_save_IFS 21139 21140 ;; 21141esac 21142fi 21143PKG_CONFIG=$ac_cv_path_PKG_CONFIG 21144if test -n "$PKG_CONFIG"; then 21145 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 21146$as_echo "$PKG_CONFIG" >&6; } 21147else 21148 { $as_echo "$as_me:$LINENO: result: no" >&5 21149$as_echo "no" >&6; } 21150fi 21151 21152 21153fi 21154if test -z "$ac_cv_path_PKG_CONFIG"; then 21155 ac_pt_PKG_CONFIG=$PKG_CONFIG 21156 # Extract the first word of "pkg-config", so it can be a program name with args. 21157set dummy pkg-config; ac_word=$2 21158{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 21159$as_echo_n "checking for $ac_word... " >&6; } 21160if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 21161 $as_echo_n "(cached) " >&6 21162else 21163 case $ac_pt_PKG_CONFIG in 21164 [\\/]* | ?:[\\/]*) 21165 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 21166 ;; 21167 *) 21168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21169for as_dir in $PATH 21170do 21171 IFS=$as_save_IFS 21172 test -z "$as_dir" && as_dir=. 21173 for ac_exec_ext in '' $ac_executable_extensions; do 21174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 21175 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 21176 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 21177 break 2 21178 fi 21179done 21180done 21181IFS=$as_save_IFS 21182 21183 ;; 21184esac 21185fi 21186ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 21187if test -n "$ac_pt_PKG_CONFIG"; then 21188 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 21189$as_echo "$ac_pt_PKG_CONFIG" >&6; } 21190else 21191 { $as_echo "$as_me:$LINENO: result: no" >&5 21192$as_echo "no" >&6; } 21193fi 21194 21195 if test "x$ac_pt_PKG_CONFIG" = x; then 21196 PKG_CONFIG="" 21197 else 21198 case $cross_compiling:$ac_tool_warned in 21199yes:) 21200{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 21201whose name does not start with the host triplet. If you think this 21202configuration is useful to you, please write to autoconf@gnu.org." >&5 21203$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 21204whose name does not start with the host triplet. If you think this 21205configuration is useful to you, please write to autoconf@gnu.org." >&2;} 21206ac_tool_warned=yes ;; 21207esac 21208 PKG_CONFIG=$ac_pt_PKG_CONFIG 21209 fi 21210else 21211 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 21212fi 21213 21214fi 21215if test -n "$PKG_CONFIG"; then 21216 _pkg_min_version=0.9.0 21217 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 21218$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 21219 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 21220 { $as_echo "$as_me:$LINENO: result: yes" >&5 21221$as_echo "yes" >&6; } 21222 else 21223 { $as_echo "$as_me:$LINENO: result: no" >&5 21224$as_echo "no" >&6; } 21225 PKG_CONFIG="" 21226 fi 21227 21228fi 21229 21230pkg_failed=no 21231{ $as_echo "$as_me:$LINENO: checking for XORG" >&5 21232$as_echo_n "checking for XORG... " >&6; } 21233 21234if test -n "$XORG_CFLAGS"; then 21235 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 21236 elif test -n "$PKG_CONFIG"; then 21237 if test -n "$PKG_CONFIG" && \ 21238 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5 21239 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 21240 ac_status=$? 21241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21242 (exit $ac_status); }; then 21243 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 21244else 21245 pkg_failed=yes 21246fi 21247 else 21248 pkg_failed=untried 21249fi 21250if test -n "$XORG_LIBS"; then 21251 pkg_cv_XORG_LIBS="$XORG_LIBS" 21252 elif test -n "$PKG_CONFIG"; then 21253 if test -n "$PKG_CONFIG" && \ 21254 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5 21255 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 21256 ac_status=$? 21257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21258 (exit $ac_status); }; then 21259 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 21260else 21261 pkg_failed=yes 21262fi 21263 else 21264 pkg_failed=untried 21265fi 21266 21267 21268 21269if test $pkg_failed = yes; then 21270 21271if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21272 _pkg_short_errors_supported=yes 21273else 21274 _pkg_short_errors_supported=no 21275fi 21276 if test $_pkg_short_errors_supported = yes; then 21277 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1` 21278 else 21279 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1` 21280 fi 21281 # Put the nasty error message in config.log where it belongs 21282 echo "$XORG_PKG_ERRORS" >&5 21283 21284 { { $as_echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met: 21285 21286$XORG_PKG_ERRORS 21287 21288Consider adjusting the PKG_CONFIG_PATH environment variable if you 21289installed software in a non-standard prefix. 21290 21291Alternatively, you may set the environment variables XORG_CFLAGS 21292and XORG_LIBS to avoid the need to call pkg-config. 21293See the pkg-config man page for more details. 21294" >&5 21295$as_echo "$as_me: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met: 21296 21297$XORG_PKG_ERRORS 21298 21299Consider adjusting the PKG_CONFIG_PATH environment variable if you 21300installed software in a non-standard prefix. 21301 21302Alternatively, you may set the environment variables XORG_CFLAGS 21303and XORG_LIBS to avoid the need to call pkg-config. 21304See the pkg-config man page for more details. 21305" >&2;} 21306 { (exit 1); exit 1; }; } 21307elif test $pkg_failed = untried; then 21308 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 21309is in your PATH or set the PKG_CONFIG environment variable to the full 21310path to pkg-config. 21311 21312Alternatively, you may set the environment variables XORG_CFLAGS 21313and XORG_LIBS to avoid the need to call pkg-config. 21314See the pkg-config man page for more details. 21315 21316To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21317See \`config.log' for more details." >&5 21318$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 21319is in your PATH or set the PKG_CONFIG environment variable to the full 21320path to pkg-config. 21321 21322Alternatively, you may set the environment variables XORG_CFLAGS 21323and XORG_LIBS to avoid the need to call pkg-config. 21324See the pkg-config man page for more details. 21325 21326To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21327See \`config.log' for more details." >&2;} 21328 { (exit 1); exit 1; }; } 21329else 21330 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 21331 XORG_LIBS=$pkg_cv_XORG_LIBS 21332 { $as_echo "$as_me:$LINENO: result: yes" >&5 21333$as_echo "yes" >&6; } 21334 : 21335fi 21336sdkdir=$(pkg-config --variable=sdkdir xorg-server) 21337 21338# Checks for libraries. 21339SAVE_CPPFLAGS="$CPPFLAGS" 21340CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" 21341{ $as_echo "$as_me:$LINENO: checking whether XSERVER_LIBPCIACCESS is declared" >&5 21342$as_echo_n "checking whether XSERVER_LIBPCIACCESS is declared... " >&6; } 21343if test "${ac_cv_have_decl_XSERVER_LIBPCIACCESS+set}" = set; then 21344 $as_echo_n "(cached) " >&6 21345else 21346 cat >conftest.$ac_ext <<_ACEOF 21347/* confdefs.h. */ 21348_ACEOF 21349cat confdefs.h >>conftest.$ac_ext 21350cat >>conftest.$ac_ext <<_ACEOF 21351/* end confdefs.h. */ 21352#include "xorg-server.h" 21353 21354int 21355main () 21356{ 21357#ifndef XSERVER_LIBPCIACCESS 21358 (void) XSERVER_LIBPCIACCESS; 21359#endif 21360 21361 ; 21362 return 0; 21363} 21364_ACEOF 21365rm -f conftest.$ac_objext 21366if { (ac_try="$ac_compile" 21367case "(($ac_try" in 21368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21369 *) ac_try_echo=$ac_try;; 21370esac 21371eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21372$as_echo "$ac_try_echo") >&5 21373 (eval "$ac_compile") 2>conftest.er1 21374 ac_status=$? 21375 grep -v '^ *+' conftest.er1 >conftest.err 21376 rm -f conftest.er1 21377 cat conftest.err >&5 21378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21379 (exit $ac_status); } && { 21380 test -z "$ac_c_werror_flag" || 21381 test ! -s conftest.err 21382 } && test -s conftest.$ac_objext; then 21383 ac_cv_have_decl_XSERVER_LIBPCIACCESS=yes 21384else 21385 $as_echo "$as_me: failed program was:" >&5 21386sed 's/^/| /' conftest.$ac_ext >&5 21387 21388 ac_cv_have_decl_XSERVER_LIBPCIACCESS=no 21389fi 21390 21391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21392fi 21393{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&5 21394$as_echo "$ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&6; } 21395if test $ac_cv_have_decl_XSERVER_LIBPCIACCESS = yes; then 21396 XSERVER_LIBPCIACCESS=yes 21397else 21398 XSERVER_LIBPCIACCESS=no 21399fi 21400 21401if test "${ac_cv_header_xf1bpp_h+set}" = set; then 21402 { $as_echo "$as_me:$LINENO: checking for xf1bpp.h" >&5 21403$as_echo_n "checking for xf1bpp.h... " >&6; } 21404if test "${ac_cv_header_xf1bpp_h+set}" = set; then 21405 $as_echo_n "(cached) " >&6 21406fi 21407{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_xf1bpp_h" >&5 21408$as_echo "$ac_cv_header_xf1bpp_h" >&6; } 21409else 21410 # Is the header compilable? 21411{ $as_echo "$as_me:$LINENO: checking xf1bpp.h usability" >&5 21412$as_echo_n "checking xf1bpp.h usability... " >&6; } 21413cat >conftest.$ac_ext <<_ACEOF 21414/* confdefs.h. */ 21415_ACEOF 21416cat confdefs.h >>conftest.$ac_ext 21417cat >>conftest.$ac_ext <<_ACEOF 21418/* end confdefs.h. */ 21419$ac_includes_default 21420#include <xf1bpp.h> 21421_ACEOF 21422rm -f conftest.$ac_objext 21423if { (ac_try="$ac_compile" 21424case "(($ac_try" in 21425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21426 *) ac_try_echo=$ac_try;; 21427esac 21428eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21429$as_echo "$ac_try_echo") >&5 21430 (eval "$ac_compile") 2>conftest.er1 21431 ac_status=$? 21432 grep -v '^ *+' conftest.er1 >conftest.err 21433 rm -f conftest.er1 21434 cat conftest.err >&5 21435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21436 (exit $ac_status); } && { 21437 test -z "$ac_c_werror_flag" || 21438 test ! -s conftest.err 21439 } && test -s conftest.$ac_objext; then 21440 ac_header_compiler=yes 21441else 21442 $as_echo "$as_me: failed program was:" >&5 21443sed 's/^/| /' conftest.$ac_ext >&5 21444 21445 ac_header_compiler=no 21446fi 21447 21448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21449{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21450$as_echo "$ac_header_compiler" >&6; } 21451 21452# Is the header present? 21453{ $as_echo "$as_me:$LINENO: checking xf1bpp.h presence" >&5 21454$as_echo_n "checking xf1bpp.h presence... " >&6; } 21455cat >conftest.$ac_ext <<_ACEOF 21456/* confdefs.h. */ 21457_ACEOF 21458cat confdefs.h >>conftest.$ac_ext 21459cat >>conftest.$ac_ext <<_ACEOF 21460/* end confdefs.h. */ 21461#include <xf1bpp.h> 21462_ACEOF 21463if { (ac_try="$ac_cpp conftest.$ac_ext" 21464case "(($ac_try" in 21465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21466 *) ac_try_echo=$ac_try;; 21467esac 21468eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21469$as_echo "$ac_try_echo") >&5 21470 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 21471 ac_status=$? 21472 grep -v '^ *+' conftest.er1 >conftest.err 21473 rm -f conftest.er1 21474 cat conftest.err >&5 21475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21476 (exit $ac_status); } >/dev/null && { 21477 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 21478 test ! -s conftest.err 21479 }; then 21480 ac_header_preproc=yes 21481else 21482 $as_echo "$as_me: failed program was:" >&5 21483sed 's/^/| /' conftest.$ac_ext >&5 21484 21485 ac_header_preproc=no 21486fi 21487 21488rm -f conftest.err conftest.$ac_ext 21489{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21490$as_echo "$ac_header_preproc" >&6; } 21491 21492# So? What about this header? 21493case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21494 yes:no: ) 21495 { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: accepted by the compiler, rejected by the preprocessor!" >&5 21496$as_echo "$as_me: WARNING: xf1bpp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 21497 { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: proceeding with the compiler's result" >&5 21498$as_echo "$as_me: WARNING: xf1bpp.h: proceeding with the compiler's result" >&2;} 21499 ac_header_preproc=yes 21500 ;; 21501 no:yes:* ) 21502 { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: present but cannot be compiled" >&5 21503$as_echo "$as_me: WARNING: xf1bpp.h: present but cannot be compiled" >&2;} 21504 { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: check for missing prerequisite headers?" >&5 21505$as_echo "$as_me: WARNING: xf1bpp.h: check for missing prerequisite headers?" >&2;} 21506 { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: see the Autoconf documentation" >&5 21507$as_echo "$as_me: WARNING: xf1bpp.h: see the Autoconf documentation" >&2;} 21508 { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: section \"Present But Cannot Be Compiled\"" >&5 21509$as_echo "$as_me: WARNING: xf1bpp.h: section \"Present But Cannot Be Compiled\"" >&2;} 21510 { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: proceeding with the preprocessor's result" >&5 21511$as_echo "$as_me: WARNING: xf1bpp.h: proceeding with the preprocessor's result" >&2;} 21512 { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: in the future, the compiler will take precedence" >&5 21513$as_echo "$as_me: WARNING: xf1bpp.h: in the future, the compiler will take precedence" >&2;} 21514 ( cat <<\_ASBOX 21515## ---------------------------------------------------------------------- ## 21516## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 21517## ---------------------------------------------------------------------- ## 21518_ASBOX 21519 ) | sed "s/^/$as_me: WARNING: /" >&2 21520 ;; 21521esac 21522{ $as_echo "$as_me:$LINENO: checking for xf1bpp.h" >&5 21523$as_echo_n "checking for xf1bpp.h... " >&6; } 21524if test "${ac_cv_header_xf1bpp_h+set}" = set; then 21525 $as_echo_n "(cached) " >&6 21526else 21527 ac_cv_header_xf1bpp_h=$ac_header_preproc 21528fi 21529{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_xf1bpp_h" >&5 21530$as_echo "$ac_cv_header_xf1bpp_h" >&6; } 21531 21532fi 21533if test $ac_cv_header_xf1bpp_h = yes; then 21534 21535cat >>confdefs.h <<\_ACEOF 21536#define HAVE_XF1BPP 1 21537_ACEOF 21538 21539fi 21540 21541 21542if test "${ac_cv_header_xf4bpp_h+set}" = set; then 21543 { $as_echo "$as_me:$LINENO: checking for xf4bpp.h" >&5 21544$as_echo_n "checking for xf4bpp.h... " >&6; } 21545if test "${ac_cv_header_xf4bpp_h+set}" = set; then 21546 $as_echo_n "(cached) " >&6 21547fi 21548{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_xf4bpp_h" >&5 21549$as_echo "$ac_cv_header_xf4bpp_h" >&6; } 21550else 21551 # Is the header compilable? 21552{ $as_echo "$as_me:$LINENO: checking xf4bpp.h usability" >&5 21553$as_echo_n "checking xf4bpp.h usability... " >&6; } 21554cat >conftest.$ac_ext <<_ACEOF 21555/* confdefs.h. */ 21556_ACEOF 21557cat confdefs.h >>conftest.$ac_ext 21558cat >>conftest.$ac_ext <<_ACEOF 21559/* end confdefs.h. */ 21560$ac_includes_default 21561#include <xf4bpp.h> 21562_ACEOF 21563rm -f conftest.$ac_objext 21564if { (ac_try="$ac_compile" 21565case "(($ac_try" in 21566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21567 *) ac_try_echo=$ac_try;; 21568esac 21569eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21570$as_echo "$ac_try_echo") >&5 21571 (eval "$ac_compile") 2>conftest.er1 21572 ac_status=$? 21573 grep -v '^ *+' conftest.er1 >conftest.err 21574 rm -f conftest.er1 21575 cat conftest.err >&5 21576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21577 (exit $ac_status); } && { 21578 test -z "$ac_c_werror_flag" || 21579 test ! -s conftest.err 21580 } && test -s conftest.$ac_objext; then 21581 ac_header_compiler=yes 21582else 21583 $as_echo "$as_me: failed program was:" >&5 21584sed 's/^/| /' conftest.$ac_ext >&5 21585 21586 ac_header_compiler=no 21587fi 21588 21589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21590{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21591$as_echo "$ac_header_compiler" >&6; } 21592 21593# Is the header present? 21594{ $as_echo "$as_me:$LINENO: checking xf4bpp.h presence" >&5 21595$as_echo_n "checking xf4bpp.h presence... " >&6; } 21596cat >conftest.$ac_ext <<_ACEOF 21597/* confdefs.h. */ 21598_ACEOF 21599cat confdefs.h >>conftest.$ac_ext 21600cat >>conftest.$ac_ext <<_ACEOF 21601/* end confdefs.h. */ 21602#include <xf4bpp.h> 21603_ACEOF 21604if { (ac_try="$ac_cpp conftest.$ac_ext" 21605case "(($ac_try" in 21606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21607 *) ac_try_echo=$ac_try;; 21608esac 21609eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21610$as_echo "$ac_try_echo") >&5 21611 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 21612 ac_status=$? 21613 grep -v '^ *+' conftest.er1 >conftest.err 21614 rm -f conftest.er1 21615 cat conftest.err >&5 21616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21617 (exit $ac_status); } >/dev/null && { 21618 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 21619 test ! -s conftest.err 21620 }; then 21621 ac_header_preproc=yes 21622else 21623 $as_echo "$as_me: failed program was:" >&5 21624sed 's/^/| /' conftest.$ac_ext >&5 21625 21626 ac_header_preproc=no 21627fi 21628 21629rm -f conftest.err conftest.$ac_ext 21630{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21631$as_echo "$ac_header_preproc" >&6; } 21632 21633# So? What about this header? 21634case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21635 yes:no: ) 21636 { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: accepted by the compiler, rejected by the preprocessor!" >&5 21637$as_echo "$as_me: WARNING: xf4bpp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 21638 { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: proceeding with the compiler's result" >&5 21639$as_echo "$as_me: WARNING: xf4bpp.h: proceeding with the compiler's result" >&2;} 21640 ac_header_preproc=yes 21641 ;; 21642 no:yes:* ) 21643 { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: present but cannot be compiled" >&5 21644$as_echo "$as_me: WARNING: xf4bpp.h: present but cannot be compiled" >&2;} 21645 { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: check for missing prerequisite headers?" >&5 21646$as_echo "$as_me: WARNING: xf4bpp.h: check for missing prerequisite headers?" >&2;} 21647 { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: see the Autoconf documentation" >&5 21648$as_echo "$as_me: WARNING: xf4bpp.h: see the Autoconf documentation" >&2;} 21649 { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: section \"Present But Cannot Be Compiled\"" >&5 21650$as_echo "$as_me: WARNING: xf4bpp.h: section \"Present But Cannot Be Compiled\"" >&2;} 21651 { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: proceeding with the preprocessor's result" >&5 21652$as_echo "$as_me: WARNING: xf4bpp.h: proceeding with the preprocessor's result" >&2;} 21653 { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: in the future, the compiler will take precedence" >&5 21654$as_echo "$as_me: WARNING: xf4bpp.h: in the future, the compiler will take precedence" >&2;} 21655 ( cat <<\_ASBOX 21656## ---------------------------------------------------------------------- ## 21657## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 21658## ---------------------------------------------------------------------- ## 21659_ASBOX 21660 ) | sed "s/^/$as_me: WARNING: /" >&2 21661 ;; 21662esac 21663{ $as_echo "$as_me:$LINENO: checking for xf4bpp.h" >&5 21664$as_echo_n "checking for xf4bpp.h... " >&6; } 21665if test "${ac_cv_header_xf4bpp_h+set}" = set; then 21666 $as_echo_n "(cached) " >&6 21667else 21668 ac_cv_header_xf4bpp_h=$ac_header_preproc 21669fi 21670{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_xf4bpp_h" >&5 21671$as_echo "$ac_cv_header_xf4bpp_h" >&6; } 21672 21673fi 21674if test $ac_cv_header_xf4bpp_h = yes; then 21675 21676cat >>confdefs.h <<\_ACEOF 21677#define HAVE_XF4BPP 1 21678_ACEOF 21679 21680fi 21681 21682 21683CPPFLAGS="$SAVE_CPPFLAGS" 21684 21685if test "x$XSERVER_LIBPCIACCESS" = xyes; then 21686 21687pkg_failed=no 21688{ $as_echo "$as_me:$LINENO: checking for PCIACCESS" >&5 21689$as_echo_n "checking for PCIACCESS... " >&6; } 21690 21691if test -n "$PCIACCESS_CFLAGS"; then 21692 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 21693 elif test -n "$PKG_CONFIG"; then 21694 if test -n "$PKG_CONFIG" && \ 21695 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5 21696 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 21697 ac_status=$? 21698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21699 (exit $ac_status); }; then 21700 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null` 21701else 21702 pkg_failed=yes 21703fi 21704 else 21705 pkg_failed=untried 21706fi 21707if test -n "$PCIACCESS_LIBS"; then 21708 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 21709 elif test -n "$PKG_CONFIG"; then 21710 if test -n "$PKG_CONFIG" && \ 21711 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5 21712 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 21713 ac_status=$? 21714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21715 (exit $ac_status); }; then 21716 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null` 21717else 21718 pkg_failed=yes 21719fi 21720 else 21721 pkg_failed=untried 21722fi 21723 21724 21725 21726if test $pkg_failed = yes; then 21727 21728if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21729 _pkg_short_errors_supported=yes 21730else 21731 _pkg_short_errors_supported=no 21732fi 21733 if test $_pkg_short_errors_supported = yes; then 21734 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1` 21735 else 21736 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1` 21737 fi 21738 # Put the nasty error message in config.log where it belongs 21739 echo "$PCIACCESS_PKG_ERRORS" >&5 21740 21741 { { $as_echo "$as_me:$LINENO: error: Package requirements (pciaccess >= 0.8.0) were not met: 21742 21743$PCIACCESS_PKG_ERRORS 21744 21745Consider adjusting the PKG_CONFIG_PATH environment variable if you 21746installed software in a non-standard prefix. 21747 21748Alternatively, you may set the environment variables PCIACCESS_CFLAGS 21749and PCIACCESS_LIBS to avoid the need to call pkg-config. 21750See the pkg-config man page for more details. 21751" >&5 21752$as_echo "$as_me: error: Package requirements (pciaccess >= 0.8.0) were not met: 21753 21754$PCIACCESS_PKG_ERRORS 21755 21756Consider adjusting the PKG_CONFIG_PATH environment variable if you 21757installed software in a non-standard prefix. 21758 21759Alternatively, you may set the environment variables PCIACCESS_CFLAGS 21760and PCIACCESS_LIBS to avoid the need to call pkg-config. 21761See the pkg-config man page for more details. 21762" >&2;} 21763 { (exit 1); exit 1; }; } 21764elif test $pkg_failed = untried; then 21765 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 21766is in your PATH or set the PKG_CONFIG environment variable to the full 21767path to pkg-config. 21768 21769Alternatively, you may set the environment variables PCIACCESS_CFLAGS 21770and PCIACCESS_LIBS to avoid the need to call pkg-config. 21771See the pkg-config man page for more details. 21772 21773To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21774See \`config.log' for more details." >&5 21775$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 21776is in your PATH or set the PKG_CONFIG environment variable to the full 21777path to pkg-config. 21778 21779Alternatively, you may set the environment variables PCIACCESS_CFLAGS 21780and PCIACCESS_LIBS to avoid the need to call pkg-config. 21781See the pkg-config man page for more details. 21782 21783To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21784See \`config.log' for more details." >&2;} 21785 { (exit 1); exit 1; }; } 21786else 21787 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 21788 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 21789 { $as_echo "$as_me:$LINENO: result: yes" >&5 21790$as_echo "yes" >&6; } 21791 : 21792fi 21793 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS" 21794fi 21795 if test "x$XSERVER_LIBPCIACCESS" = xyes; then 21796 XSERVER_LIBPCIACCESS_TRUE= 21797 XSERVER_LIBPCIACCESS_FALSE='#' 21798else 21799 XSERVER_LIBPCIACCESS_TRUE='#' 21800 XSERVER_LIBPCIACCESS_FALSE= 21801fi 21802 21803 21804# Checks for header files. 21805{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 21806$as_echo_n "checking for ANSI C header files... " >&6; } 21807if test "${ac_cv_header_stdc+set}" = set; then 21808 $as_echo_n "(cached) " >&6 21809else 21810 cat >conftest.$ac_ext <<_ACEOF 21811/* confdefs.h. */ 21812_ACEOF 21813cat confdefs.h >>conftest.$ac_ext 21814cat >>conftest.$ac_ext <<_ACEOF 21815/* end confdefs.h. */ 21816#include <stdlib.h> 21817#include <stdarg.h> 21818#include <string.h> 21819#include <float.h> 21820 21821int 21822main () 21823{ 21824 21825 ; 21826 return 0; 21827} 21828_ACEOF 21829rm -f conftest.$ac_objext 21830if { (ac_try="$ac_compile" 21831case "(($ac_try" in 21832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21833 *) ac_try_echo=$ac_try;; 21834esac 21835eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21836$as_echo "$ac_try_echo") >&5 21837 (eval "$ac_compile") 2>conftest.er1 21838 ac_status=$? 21839 grep -v '^ *+' conftest.er1 >conftest.err 21840 rm -f conftest.er1 21841 cat conftest.err >&5 21842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21843 (exit $ac_status); } && { 21844 test -z "$ac_c_werror_flag" || 21845 test ! -s conftest.err 21846 } && test -s conftest.$ac_objext; then 21847 ac_cv_header_stdc=yes 21848else 21849 $as_echo "$as_me: failed program was:" >&5 21850sed 's/^/| /' conftest.$ac_ext >&5 21851 21852 ac_cv_header_stdc=no 21853fi 21854 21855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21856 21857if test $ac_cv_header_stdc = yes; then 21858 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 21859 cat >conftest.$ac_ext <<_ACEOF 21860/* confdefs.h. */ 21861_ACEOF 21862cat confdefs.h >>conftest.$ac_ext 21863cat >>conftest.$ac_ext <<_ACEOF 21864/* end confdefs.h. */ 21865#include <string.h> 21866 21867_ACEOF 21868if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21869 $EGREP "memchr" >/dev/null 2>&1; then 21870 : 21871else 21872 ac_cv_header_stdc=no 21873fi 21874rm -f conftest* 21875 21876fi 21877 21878if test $ac_cv_header_stdc = yes; then 21879 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 21880 cat >conftest.$ac_ext <<_ACEOF 21881/* confdefs.h. */ 21882_ACEOF 21883cat confdefs.h >>conftest.$ac_ext 21884cat >>conftest.$ac_ext <<_ACEOF 21885/* end confdefs.h. */ 21886#include <stdlib.h> 21887 21888_ACEOF 21889if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21890 $EGREP "free" >/dev/null 2>&1; then 21891 : 21892else 21893 ac_cv_header_stdc=no 21894fi 21895rm -f conftest* 21896 21897fi 21898 21899if test $ac_cv_header_stdc = yes; then 21900 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 21901 if test "$cross_compiling" = yes; then 21902 : 21903else 21904 cat >conftest.$ac_ext <<_ACEOF 21905/* confdefs.h. */ 21906_ACEOF 21907cat confdefs.h >>conftest.$ac_ext 21908cat >>conftest.$ac_ext <<_ACEOF 21909/* end confdefs.h. */ 21910#include <ctype.h> 21911#include <stdlib.h> 21912#if ((' ' & 0x0FF) == 0x020) 21913# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 21914# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 21915#else 21916# define ISLOWER(c) \ 21917 (('a' <= (c) && (c) <= 'i') \ 21918 || ('j' <= (c) && (c) <= 'r') \ 21919 || ('s' <= (c) && (c) <= 'z')) 21920# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 21921#endif 21922 21923#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 21924int 21925main () 21926{ 21927 int i; 21928 for (i = 0; i < 256; i++) 21929 if (XOR (islower (i), ISLOWER (i)) 21930 || toupper (i) != TOUPPER (i)) 21931 return 2; 21932 return 0; 21933} 21934_ACEOF 21935rm -f conftest$ac_exeext 21936if { (ac_try="$ac_link" 21937case "(($ac_try" in 21938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21939 *) ac_try_echo=$ac_try;; 21940esac 21941eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21942$as_echo "$ac_try_echo") >&5 21943 (eval "$ac_link") 2>&5 21944 ac_status=$? 21945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21946 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21947 { (case "(($ac_try" in 21948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21949 *) ac_try_echo=$ac_try;; 21950esac 21951eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21952$as_echo "$ac_try_echo") >&5 21953 (eval "$ac_try") 2>&5 21954 ac_status=$? 21955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21956 (exit $ac_status); }; }; then 21957 : 21958else 21959 $as_echo "$as_me: program exited with status $ac_status" >&5 21960$as_echo "$as_me: failed program was:" >&5 21961sed 's/^/| /' conftest.$ac_ext >&5 21962 21963( exit $ac_status ) 21964ac_cv_header_stdc=no 21965fi 21966rm -rf conftest.dSYM 21967rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21968fi 21969 21970 21971fi 21972fi 21973{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 21974$as_echo "$ac_cv_header_stdc" >&6; } 21975if test $ac_cv_header_stdc = yes; then 21976 21977cat >>confdefs.h <<\_ACEOF 21978#define STDC_HEADERS 1 21979_ACEOF 21980 21981fi 21982 21983 21984 21985 21986 21987DRIVER_NAME=tga 21988 21989 21990 21991 21992 21993if test x$APP_MAN_SUFFIX = x ; then 21994 APP_MAN_SUFFIX=1 21995fi 21996if test x$APP_MAN_DIR = x ; then 21997 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 21998fi 21999 22000if test x$LIB_MAN_SUFFIX = x ; then 22001 LIB_MAN_SUFFIX=3 22002fi 22003if test x$LIB_MAN_DIR = x ; then 22004 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 22005fi 22006 22007if test x$FILE_MAN_SUFFIX = x ; then 22008 case $host_os in 22009 solaris*) FILE_MAN_SUFFIX=4 ;; 22010 *) FILE_MAN_SUFFIX=5 ;; 22011 esac 22012fi 22013if test x$FILE_MAN_DIR = x ; then 22014 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 22015fi 22016 22017if test x$MISC_MAN_SUFFIX = x ; then 22018 case $host_os in 22019 solaris*) MISC_MAN_SUFFIX=5 ;; 22020 *) MISC_MAN_SUFFIX=7 ;; 22021 esac 22022fi 22023if test x$MISC_MAN_DIR = x ; then 22024 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 22025fi 22026 22027if test x$DRIVER_MAN_SUFFIX = x ; then 22028 case $host_os in 22029 solaris*) DRIVER_MAN_SUFFIX=7 ;; 22030 *) DRIVER_MAN_SUFFIX=4 ;; 22031 esac 22032fi 22033if test x$DRIVER_MAN_DIR = x ; then 22034 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 22035fi 22036 22037if test x$ADMIN_MAN_SUFFIX = x ; then 22038 case $host_os in 22039 solaris*) ADMIN_MAN_SUFFIX=1m ;; 22040 *) ADMIN_MAN_SUFFIX=8 ;; 22041 esac 22042fi 22043if test x$ADMIN_MAN_DIR = x ; then 22044 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 22045fi 22046 22047 22048 22049 22050 22051 22052 22053 22054 22055 22056 22057 22058 22059 22060 22061 22062 22063# Check whether --with-release-version was given. 22064if test "${with_release_version+set}" = set; then 22065 withval=$with_release_version; RELEASE_VERSION="$withval" 22066else 22067 RELEASE_VERSION="" 22068fi 22069 22070 if test "x$RELEASE_VERSION" != "x"; then 22071 PACKAGE="$PACKAGE-$RELEASE_VERSION" 22072 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 22073 { $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5 22074$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;} 22075 fi 22076 22077cat >>confdefs.h <<_ACEOF 22078#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 22079_ACEOF 22080 22081 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 22082 if test "x$PVM" = "x"; then 22083 PVM="0" 22084 fi 22085 22086cat >>confdefs.h <<_ACEOF 22087#define PACKAGE_VERSION_MINOR $PVM 22088_ACEOF 22089 22090 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 22091 if test "x$PVP" = "x"; then 22092 PVP="0" 22093 fi 22094 22095cat >>confdefs.h <<_ACEOF 22096#define PACKAGE_VERSION_PATCHLEVEL $PVP 22097_ACEOF 22098 22099 22100 22101 22102XORG_SGML_PATH=$prefix/share/sgml 22103HAVE_DEFS_ENT= 22104 22105if test x"$cross_compiling" = x"yes" ; then 22106 HAVE_DEFS_ENT=no 22107else 22108 as_ac_File=`$as_echo "ac_cv_file_$XORG_SGML_PATH/X11/defs.ent" | $as_tr_sh` 22109{ $as_echo "$as_me:$LINENO: checking for $XORG_SGML_PATH/X11/defs.ent" >&5 22110$as_echo_n "checking for $XORG_SGML_PATH/X11/defs.ent... " >&6; } 22111if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then 22112 $as_echo_n "(cached) " >&6 22113else 22114 test "$cross_compiling" = yes && 22115 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 22116$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 22117 { (exit 1); exit 1; }; } 22118if test -r "$XORG_SGML_PATH/X11/defs.ent"; then 22119 eval "$as_ac_File=yes" 22120else 22121 eval "$as_ac_File=no" 22122fi 22123fi 22124ac_res=`eval 'as_val=${'$as_ac_File'} 22125 $as_echo "$as_val"'` 22126 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 22127$as_echo "$ac_res" >&6; } 22128if test `eval 'as_val=${'$as_ac_File'} 22129 $as_echo "$as_val"'` = yes; then 22130 HAVE_DEFS_ENT=yes 22131fi 22132 22133fi 22134 22135# Extract the first word of "linuxdoc", so it can be a program name with args. 22136set dummy linuxdoc; ac_word=$2 22137{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 22138$as_echo_n "checking for $ac_word... " >&6; } 22139if test "${ac_cv_path_LINUXDOC+set}" = set; then 22140 $as_echo_n "(cached) " >&6 22141else 22142 case $LINUXDOC in 22143 [\\/]* | ?:[\\/]*) 22144 ac_cv_path_LINUXDOC="$LINUXDOC" # Let the user override the test with a path. 22145 ;; 22146 *) 22147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22148for as_dir in $PATH 22149do 22150 IFS=$as_save_IFS 22151 test -z "$as_dir" && as_dir=. 22152 for ac_exec_ext in '' $ac_executable_extensions; do 22153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 22154 ac_cv_path_LINUXDOC="$as_dir/$ac_word$ac_exec_ext" 22155 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 22156 break 2 22157 fi 22158done 22159done 22160IFS=$as_save_IFS 22161 22162 ;; 22163esac 22164fi 22165LINUXDOC=$ac_cv_path_LINUXDOC 22166if test -n "$LINUXDOC"; then 22167 { $as_echo "$as_me:$LINENO: result: $LINUXDOC" >&5 22168$as_echo "$LINUXDOC" >&6; } 22169else 22170 { $as_echo "$as_me:$LINENO: result: no" >&5 22171$as_echo "no" >&6; } 22172fi 22173 22174 22175# Extract the first word of "ps2pdf", so it can be a program name with args. 22176set dummy ps2pdf; ac_word=$2 22177{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 22178$as_echo_n "checking for $ac_word... " >&6; } 22179if test "${ac_cv_path_PS2PDF+set}" = set; then 22180 $as_echo_n "(cached) " >&6 22181else 22182 case $PS2PDF in 22183 [\\/]* | ?:[\\/]*) 22184 ac_cv_path_PS2PDF="$PS2PDF" # Let the user override the test with a path. 22185 ;; 22186 *) 22187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22188for as_dir in $PATH 22189do 22190 IFS=$as_save_IFS 22191 test -z "$as_dir" && as_dir=. 22192 for ac_exec_ext in '' $ac_executable_extensions; do 22193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 22194 ac_cv_path_PS2PDF="$as_dir/$ac_word$ac_exec_ext" 22195 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 22196 break 2 22197 fi 22198done 22199done 22200IFS=$as_save_IFS 22201 22202 ;; 22203esac 22204fi 22205PS2PDF=$ac_cv_path_PS2PDF 22206if test -n "$PS2PDF"; then 22207 { $as_echo "$as_me:$LINENO: result: $PS2PDF" >&5 22208$as_echo "$PS2PDF" >&6; } 22209else 22210 { $as_echo "$as_me:$LINENO: result: no" >&5 22211$as_echo "no" >&6; } 22212fi 22213 22214 22215 22216{ $as_echo "$as_me:$LINENO: checking Whether to build documentation" >&5 22217$as_echo_n "checking Whether to build documentation... " >&6; } 22218 22219if test x$HAVE_DEFS_ENT != x && test x$LINUXDOC != x ; then 22220 BUILDDOC=yes 22221else 22222 BUILDDOC=no 22223fi 22224 22225 if test x$BUILDDOC = xyes; then 22226 BUILD_LINUXDOC_TRUE= 22227 BUILD_LINUXDOC_FALSE='#' 22228else 22229 BUILD_LINUXDOC_TRUE='#' 22230 BUILD_LINUXDOC_FALSE= 22231fi 22232 22233 22234{ $as_echo "$as_me:$LINENO: result: $BUILDDOC" >&5 22235$as_echo "$BUILDDOC" >&6; } 22236 22237{ $as_echo "$as_me:$LINENO: checking Whether to build pdf documentation" >&5 22238$as_echo_n "checking Whether to build pdf documentation... " >&6; } 22239 22240if test x$PS2PDF != x && test x$BUILD_PDFDOC != xno; then 22241 BUILDPDFDOC=yes 22242else 22243 BUILDPDFDOC=no 22244fi 22245 22246 if test x$BUILDPDFDOC = xyes; then 22247 BUILD_PDFDOC_TRUE= 22248 BUILD_PDFDOC_FALSE='#' 22249else 22250 BUILD_PDFDOC_TRUE='#' 22251 BUILD_PDFDOC_FALSE= 22252fi 22253 22254 22255{ $as_echo "$as_me:$LINENO: result: $BUILDPDFDOC" >&5 22256$as_echo "$BUILDPDFDOC" >&6; } 22257 22258MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH GROFF_NO_SGR=y $LINUXDOC -B txt" 22259MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B latex --papersize=letter --output=ps" 22260MAKE_PDF="$PS2PDF" 22261MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B html --split=0" 22262 22263 22264 22265 22266 22267 22268 22269ac_config_files="$ac_config_files Makefile src/Makefile" 22270 22271cat >confcache <<\_ACEOF 22272# This file is a shell script that caches the results of configure 22273# tests run on this system so they can be shared between configure 22274# scripts and configure runs, see configure's option --config-cache. 22275# It is not useful on other systems. If it contains results you don't 22276# want to keep, you may remove or edit it. 22277# 22278# config.status only pays attention to the cache file if you give it 22279# the --recheck option to rerun configure. 22280# 22281# `ac_cv_env_foo' variables (set or unset) will be overridden when 22282# loading this file, other *unset* `ac_cv_foo' will be assigned the 22283# following values. 22284 22285_ACEOF 22286 22287# The following way of writing the cache mishandles newlines in values, 22288# but we know of no workaround that is simple, portable, and efficient. 22289# So, we kill variables containing newlines. 22290# Ultrix sh set writes to stderr and can't be redirected directly, 22291# and sets the high bit in the cache file unless we assign to the vars. 22292( 22293 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 22294 eval ac_val=\$$ac_var 22295 case $ac_val in #( 22296 *${as_nl}*) 22297 case $ac_var in #( 22298 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 22299$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 22300 esac 22301 case $ac_var in #( 22302 _ | IFS | as_nl) ;; #( 22303 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 22304 *) $as_unset $ac_var ;; 22305 esac ;; 22306 esac 22307 done 22308 22309 (set) 2>&1 | 22310 case $as_nl`(ac_space=' '; set) 2>&1` in #( 22311 *${as_nl}ac_space=\ *) 22312 # `set' does not quote correctly, so add quotes (double-quote 22313 # substitution turns \\\\ into \\, and sed turns \\ into \). 22314 sed -n \ 22315 "s/'/'\\\\''/g; 22316 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 22317 ;; #( 22318 *) 22319 # `set' quotes correctly as required by POSIX, so do not add quotes. 22320 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 22321 ;; 22322 esac | 22323 sort 22324) | 22325 sed ' 22326 /^ac_cv_env_/b end 22327 t clear 22328 :clear 22329 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 22330 t end 22331 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 22332 :end' >>confcache 22333if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 22334 if test -w "$cache_file"; then 22335 test "x$cache_file" != "x/dev/null" && 22336 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 22337$as_echo "$as_me: updating cache $cache_file" >&6;} 22338 cat confcache >$cache_file 22339 else 22340 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 22341$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 22342 fi 22343fi 22344rm -f confcache 22345 22346test "x$prefix" = xNONE && prefix=$ac_default_prefix 22347# Let make expand exec_prefix. 22348test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 22349 22350DEFS=-DHAVE_CONFIG_H 22351 22352ac_libobjs= 22353ac_ltlibobjs= 22354for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 22355 # 1. Remove the extension, and $U if already installed. 22356 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 22357 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 22358 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 22359 # will be set to the directory where LIBOBJS objects are built. 22360 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 22361 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 22362done 22363LIBOBJS=$ac_libobjs 22364 22365LTLIBOBJS=$ac_ltlibobjs 22366 22367 22368if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 22369 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 22370Usually this means the macro was only invoked conditionally." >&5 22371$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 22372Usually this means the macro was only invoked conditionally." >&2;} 22373 { (exit 1); exit 1; }; } 22374fi 22375if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 22376 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 22377Usually this means the macro was only invoked conditionally." >&5 22378$as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 22379Usually this means the macro was only invoked conditionally." >&2;} 22380 { (exit 1); exit 1; }; } 22381fi 22382if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 22383 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 22384Usually this means the macro was only invoked conditionally." >&5 22385$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 22386Usually this means the macro was only invoked conditionally." >&2;} 22387 { (exit 1); exit 1; }; } 22388fi 22389if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 22390 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 22391Usually this means the macro was only invoked conditionally." >&5 22392$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 22393Usually this means the macro was only invoked conditionally." >&2;} 22394 { (exit 1); exit 1; }; } 22395fi 22396if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 22397 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 22398Usually this means the macro was only invoked conditionally." >&5 22399$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 22400Usually this means the macro was only invoked conditionally." >&2;} 22401 { (exit 1); exit 1; }; } 22402fi 22403if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then 22404 { { $as_echo "$as_me:$LINENO: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined. 22405Usually this means the macro was only invoked conditionally." >&5 22406$as_echo "$as_me: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined. 22407Usually this means the macro was only invoked conditionally." >&2;} 22408 { (exit 1); exit 1; }; } 22409fi 22410if test -z "${BUILD_LINUXDOC_TRUE}" && test -z "${BUILD_LINUXDOC_FALSE}"; then 22411 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_LINUXDOC\" was never defined. 22412Usually this means the macro was only invoked conditionally." >&5 22413$as_echo "$as_me: error: conditional \"BUILD_LINUXDOC\" was never defined. 22414Usually this means the macro was only invoked conditionally." >&2;} 22415 { (exit 1); exit 1; }; } 22416fi 22417if test -z "${BUILD_PDFDOC_TRUE}" && test -z "${BUILD_PDFDOC_FALSE}"; then 22418 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_PDFDOC\" was never defined. 22419Usually this means the macro was only invoked conditionally." >&5 22420$as_echo "$as_me: error: conditional \"BUILD_PDFDOC\" was never defined. 22421Usually this means the macro was only invoked conditionally." >&2;} 22422 { (exit 1); exit 1; }; } 22423fi 22424 22425: ${CONFIG_STATUS=./config.status} 22426ac_write_fail=0 22427ac_clean_files_save=$ac_clean_files 22428ac_clean_files="$ac_clean_files $CONFIG_STATUS" 22429{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 22430$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 22431cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22432#! $SHELL 22433# Generated by $as_me. 22434# Run this file to recreate the current configuration. 22435# Compiler output produced by configure, useful for debugging 22436# configure, is in config.log if it exists. 22437 22438debug=false 22439ac_cs_recheck=false 22440ac_cs_silent=false 22441SHELL=\${CONFIG_SHELL-$SHELL} 22442_ACEOF 22443 22444cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22445## --------------------- ## 22446## M4sh Initialization. ## 22447## --------------------- ## 22448 22449# Be more Bourne compatible 22450DUALCASE=1; export DUALCASE # for MKS sh 22451if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 22452 emulate sh 22453 NULLCMD=: 22454 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 22455 # is contrary to our usage. Disable this feature. 22456 alias -g '${1+"$@"}'='"$@"' 22457 setopt NO_GLOB_SUBST 22458else 22459 case `(set -o) 2>/dev/null` in 22460 *posix*) set -o posix ;; 22461esac 22462 22463fi 22464 22465 22466 22467 22468# PATH needs CR 22469# Avoid depending upon Character Ranges. 22470as_cr_letters='abcdefghijklmnopqrstuvwxyz' 22471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 22472as_cr_Letters=$as_cr_letters$as_cr_LETTERS 22473as_cr_digits='0123456789' 22474as_cr_alnum=$as_cr_Letters$as_cr_digits 22475 22476as_nl=' 22477' 22478export as_nl 22479# Printing a long string crashes Solaris 7 /usr/bin/printf. 22480as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 22481as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 22482as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 22483if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 22484 as_echo='printf %s\n' 22485 as_echo_n='printf %s' 22486else 22487 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 22488 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 22489 as_echo_n='/usr/ucb/echo -n' 22490 else 22491 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 22492 as_echo_n_body='eval 22493 arg=$1; 22494 case $arg in 22495 *"$as_nl"*) 22496 expr "X$arg" : "X\\(.*\\)$as_nl"; 22497 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 22498 esac; 22499 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 22500 ' 22501 export as_echo_n_body 22502 as_echo_n='sh -c $as_echo_n_body as_echo' 22503 fi 22504 export as_echo_body 22505 as_echo='sh -c $as_echo_body as_echo' 22506fi 22507 22508# The user is always right. 22509if test "${PATH_SEPARATOR+set}" != set; then 22510 PATH_SEPARATOR=: 22511 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 22512 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 22513 PATH_SEPARATOR=';' 22514 } 22515fi 22516 22517# Support unset when possible. 22518if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 22519 as_unset=unset 22520else 22521 as_unset=false 22522fi 22523 22524 22525# IFS 22526# We need space, tab and new line, in precisely that order. Quoting is 22527# there to prevent editors from complaining about space-tab. 22528# (If _AS_PATH_WALK were called with IFS unset, it would disable word 22529# splitting by setting IFS to empty value.) 22530IFS=" "" $as_nl" 22531 22532# Find who we are. Look in the path if we contain no directory separator. 22533case $0 in 22534 *[\\/]* ) as_myself=$0 ;; 22535 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22536for as_dir in $PATH 22537do 22538 IFS=$as_save_IFS 22539 test -z "$as_dir" && as_dir=. 22540 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 22541done 22542IFS=$as_save_IFS 22543 22544 ;; 22545esac 22546# We did not find ourselves, most probably we were run as `sh COMMAND' 22547# in which case we are not to be found in the path. 22548if test "x$as_myself" = x; then 22549 as_myself=$0 22550fi 22551if test ! -f "$as_myself"; then 22552 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 22553 { (exit 1); exit 1; } 22554fi 22555 22556# Work around bugs in pre-3.0 UWIN ksh. 22557for as_var in ENV MAIL MAILPATH 22558do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 22559done 22560PS1='$ ' 22561PS2='> ' 22562PS4='+ ' 22563 22564# NLS nuisances. 22565LC_ALL=C 22566export LC_ALL 22567LANGUAGE=C 22568export LANGUAGE 22569 22570# Required to use basename. 22571if expr a : '\(a\)' >/dev/null 2>&1 && 22572 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22573 as_expr=expr 22574else 22575 as_expr=false 22576fi 22577 22578if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 22579 as_basename=basename 22580else 22581 as_basename=false 22582fi 22583 22584 22585# Name of the executable. 22586as_me=`$as_basename -- "$0" || 22587$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 22588 X"$0" : 'X\(//\)$' \| \ 22589 X"$0" : 'X\(/\)' \| . 2>/dev/null || 22590$as_echo X/"$0" | 22591 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22592 s//\1/ 22593 q 22594 } 22595 /^X\/\(\/\/\)$/{ 22596 s//\1/ 22597 q 22598 } 22599 /^X\/\(\/\).*/{ 22600 s//\1/ 22601 q 22602 } 22603 s/.*/./; q'` 22604 22605# CDPATH. 22606$as_unset CDPATH 22607 22608 22609 22610 as_lineno_1=$LINENO 22611 as_lineno_2=$LINENO 22612 test "x$as_lineno_1" != "x$as_lineno_2" && 22613 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 22614 22615 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 22616 # uniformly replaced by the line number. The first 'sed' inserts a 22617 # line-number line after each line using $LINENO; the second 'sed' 22618 # does the real work. The second script uses 'N' to pair each 22619 # line-number line with the line containing $LINENO, and appends 22620 # trailing '-' during substitution so that $LINENO is not a special 22621 # case at line end. 22622 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 22623 # scripts with optimization help from Paolo Bonzini. Blame Lee 22624 # E. McMahon (1931-1989) for sed's syntax. :-) 22625 sed -n ' 22626 p 22627 /[$]LINENO/= 22628 ' <$as_myself | 22629 sed ' 22630 s/[$]LINENO.*/&-/ 22631 t lineno 22632 b 22633 :lineno 22634 N 22635 :loop 22636 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 22637 t loop 22638 s/-\n.*// 22639 ' >$as_me.lineno && 22640 chmod +x "$as_me.lineno" || 22641 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 22642 { (exit 1); exit 1; }; } 22643 22644 # Don't try to exec as it changes $[0], causing all sort of problems 22645 # (the dirname of $[0] is not the place where we might find the 22646 # original and so on. Autoconf is especially sensitive to this). 22647 . "./$as_me.lineno" 22648 # Exit status is that of the last command. 22649 exit 22650} 22651 22652 22653if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 22654 as_dirname=dirname 22655else 22656 as_dirname=false 22657fi 22658 22659ECHO_C= ECHO_N= ECHO_T= 22660case `echo -n x` in 22661-n*) 22662 case `echo 'x\c'` in 22663 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 22664 *) ECHO_C='\c';; 22665 esac;; 22666*) 22667 ECHO_N='-n';; 22668esac 22669if expr a : '\(a\)' >/dev/null 2>&1 && 22670 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22671 as_expr=expr 22672else 22673 as_expr=false 22674fi 22675 22676rm -f conf$$ conf$$.exe conf$$.file 22677if test -d conf$$.dir; then 22678 rm -f conf$$.dir/conf$$.file 22679else 22680 rm -f conf$$.dir 22681 mkdir conf$$.dir 2>/dev/null 22682fi 22683if (echo >conf$$.file) 2>/dev/null; then 22684 if ln -s conf$$.file conf$$ 2>/dev/null; then 22685 as_ln_s='ln -s' 22686 # ... but there are two gotchas: 22687 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 22688 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 22689 # In both cases, we have to default to `cp -p'. 22690 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 22691 as_ln_s='cp -p' 22692 elif ln conf$$.file conf$$ 2>/dev/null; then 22693 as_ln_s=ln 22694 else 22695 as_ln_s='cp -p' 22696 fi 22697else 22698 as_ln_s='cp -p' 22699fi 22700rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 22701rmdir conf$$.dir 2>/dev/null 22702 22703if mkdir -p . 2>/dev/null; then 22704 as_mkdir_p=: 22705else 22706 test -d ./-p && rmdir ./-p 22707 as_mkdir_p=false 22708fi 22709 22710if test -x / >/dev/null 2>&1; then 22711 as_test_x='test -x' 22712else 22713 if ls -dL / >/dev/null 2>&1; then 22714 as_ls_L_option=L 22715 else 22716 as_ls_L_option= 22717 fi 22718 as_test_x=' 22719 eval sh -c '\'' 22720 if test -d "$1"; then 22721 test -d "$1/."; 22722 else 22723 case $1 in 22724 -*)set "./$1";; 22725 esac; 22726 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 22727 ???[sx]*):;;*)false;;esac;fi 22728 '\'' sh 22729 ' 22730fi 22731as_executable_p=$as_test_x 22732 22733# Sed expression to map a string onto a valid CPP name. 22734as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 22735 22736# Sed expression to map a string onto a valid variable name. 22737as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 22738 22739 22740exec 6>&1 22741 22742# Save the log message, to keep $[0] and so on meaningful, and to 22743# report actual input values of CONFIG_FILES etc. instead of their 22744# values after options handling. 22745ac_log=" 22746This file was extended by xf86-video-tga $as_me 1.2.0, which was 22747generated by GNU Autoconf 2.62. Invocation command line was 22748 22749 CONFIG_FILES = $CONFIG_FILES 22750 CONFIG_HEADERS = $CONFIG_HEADERS 22751 CONFIG_LINKS = $CONFIG_LINKS 22752 CONFIG_COMMANDS = $CONFIG_COMMANDS 22753 $ $0 $@ 22754 22755on `(hostname || uname -n) 2>/dev/null | sed 1q` 22756" 22757 22758_ACEOF 22759 22760cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22761# Files that config.status was made for. 22762config_files="`echo $ac_config_files`" 22763config_headers="`echo $ac_config_headers`" 22764config_commands="`echo $ac_config_commands`" 22765 22766_ACEOF 22767 22768cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22769ac_cs_usage="\ 22770\`$as_me' instantiates files from templates according to the 22771current configuration. 22772 22773Usage: $0 [OPTIONS] [FILE]... 22774 22775 -h, --help print this help, then exit 22776 -V, --version print version number and configuration settings, then exit 22777 -q, --quiet do not print progress messages 22778 -d, --debug don't remove temporary files 22779 --recheck update $as_me by reconfiguring in the same conditions 22780 --file=FILE[:TEMPLATE] 22781 instantiate the configuration file FILE 22782 --header=FILE[:TEMPLATE] 22783 instantiate the configuration header FILE 22784 22785Configuration files: 22786$config_files 22787 22788Configuration headers: 22789$config_headers 22790 22791Configuration commands: 22792$config_commands 22793 22794Report bugs to <bug-autoconf@gnu.org>." 22795 22796_ACEOF 22797cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22798ac_cs_version="\\ 22799xf86-video-tga config.status 1.2.0 22800configured by $0, generated by GNU Autoconf 2.62, 22801 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 22802 22803Copyright (C) 2008 Free Software Foundation, Inc. 22804This config.status script is free software; the Free Software Foundation 22805gives unlimited permission to copy, distribute and modify it." 22806 22807ac_pwd='$ac_pwd' 22808srcdir='$srcdir' 22809INSTALL='$INSTALL' 22810MKDIR_P='$MKDIR_P' 22811AWK='$AWK' 22812test -n "\$AWK" || AWK=awk 22813_ACEOF 22814 22815cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22816# The default lists apply if the user does not specify any file. 22817ac_need_defaults=: 22818while test $# != 0 22819do 22820 case $1 in 22821 --*=*) 22822 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22823 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 22824 ac_shift=: 22825 ;; 22826 *) 22827 ac_option=$1 22828 ac_optarg=$2 22829 ac_shift=shift 22830 ;; 22831 esac 22832 22833 case $ac_option in 22834 # Handling of the options. 22835 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 22836 ac_cs_recheck=: ;; 22837 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 22838 $as_echo "$ac_cs_version"; exit ;; 22839 --debug | --debu | --deb | --de | --d | -d ) 22840 debug=: ;; 22841 --file | --fil | --fi | --f ) 22842 $ac_shift 22843 case $ac_optarg in 22844 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22845 esac 22846 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 22847 ac_need_defaults=false;; 22848 --header | --heade | --head | --hea ) 22849 $ac_shift 22850 case $ac_optarg in 22851 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22852 esac 22853 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 22854 ac_need_defaults=false;; 22855 --he | --h) 22856 # Conflict between --help and --header 22857 { $as_echo "$as_me: error: ambiguous option: $1 22858Try \`$0 --help' for more information." >&2 22859 { (exit 1); exit 1; }; };; 22860 --help | --hel | -h ) 22861 $as_echo "$ac_cs_usage"; exit ;; 22862 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 22863 | -silent | --silent | --silen | --sile | --sil | --si | --s) 22864 ac_cs_silent=: ;; 22865 22866 # This is an error. 22867 -*) { $as_echo "$as_me: error: unrecognized option: $1 22868Try \`$0 --help' for more information." >&2 22869 { (exit 1); exit 1; }; } ;; 22870 22871 *) ac_config_targets="$ac_config_targets $1" 22872 ac_need_defaults=false ;; 22873 22874 esac 22875 shift 22876done 22877 22878ac_configure_extra_args= 22879 22880if $ac_cs_silent; then 22881 exec 6>/dev/null 22882 ac_configure_extra_args="$ac_configure_extra_args --silent" 22883fi 22884 22885_ACEOF 22886cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22887if \$ac_cs_recheck; then 22888 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 22889 shift 22890 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 22891 CONFIG_SHELL='$SHELL' 22892 export CONFIG_SHELL 22893 exec "\$@" 22894fi 22895 22896_ACEOF 22897cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22898exec 5>>config.log 22899{ 22900 echo 22901 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 22902## Running $as_me. ## 22903_ASBOX 22904 $as_echo "$ac_log" 22905} >&5 22906 22907_ACEOF 22908cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22909# 22910# INIT-COMMANDS 22911# 22912AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 22913 22914_ACEOF 22915 22916cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22917 22918# Handling of arguments. 22919for ac_config_target in $ac_config_targets 22920do 22921 case $ac_config_target in 22922 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 22923 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 22924 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 22925 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 22926 22927 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 22928$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 22929 { (exit 1); exit 1; }; };; 22930 esac 22931done 22932 22933 22934# If the user did not use the arguments to specify the items to instantiate, 22935# then the envvar interface is used. Set only those that are not. 22936# We use the long form for the default assignment because of an extremely 22937# bizarre bug on SunOS 4.1.3. 22938if $ac_need_defaults; then 22939 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 22940 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 22941 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 22942fi 22943 22944# Have a temporary directory for convenience. Make it in the build tree 22945# simply because there is no reason against having it here, and in addition, 22946# creating and moving files from /tmp can sometimes cause problems. 22947# Hook for its removal unless debugging. 22948# Note that there is a small window in which the directory will not be cleaned: 22949# after its creation but before its name has been assigned to `$tmp'. 22950$debug || 22951{ 22952 tmp= 22953 trap 'exit_status=$? 22954 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 22955' 0 22956 trap '{ (exit 1); exit 1; }' 1 2 13 15 22957} 22958# Create a (secure) tmp directory for tmp files. 22959 22960{ 22961 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 22962 test -n "$tmp" && test -d "$tmp" 22963} || 22964{ 22965 tmp=./conf$$-$RANDOM 22966 (umask 077 && mkdir "$tmp") 22967} || 22968{ 22969 $as_echo "$as_me: cannot create a temporary directory in ." >&2 22970 { (exit 1); exit 1; } 22971} 22972 22973# Set up the scripts for CONFIG_FILES section. 22974# No need to generate them if there are no CONFIG_FILES. 22975# This happens for instance with `./config.status config.h'. 22976if test -n "$CONFIG_FILES"; then 22977 22978 22979ac_cr=' 22980' 22981ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 22982if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 22983 ac_cs_awk_cr='\\r' 22984else 22985 ac_cs_awk_cr=$ac_cr 22986fi 22987 22988echo 'BEGIN {' >"$tmp/subs1.awk" && 22989_ACEOF 22990 22991 22992{ 22993 echo "cat >conf$$subs.awk <<_ACEOF" && 22994 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 22995 echo "_ACEOF" 22996} >conf$$subs.sh || 22997 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22998$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22999 { (exit 1); exit 1; }; } 23000ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 23001ac_delim='%!_!# ' 23002for ac_last_try in false false false false false :; do 23003 . ./conf$$subs.sh || 23004 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 23005$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 23006 { (exit 1); exit 1; }; } 23007 23008 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then 23009 break 23010 elif $ac_last_try; then 23011 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 23012$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 23013 { (exit 1); exit 1; }; } 23014 else 23015 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23016 fi 23017done 23018rm -f conf$$subs.sh 23019 23020cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23021cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 23022_ACEOF 23023sed -n ' 23024h 23025s/^/S["/; s/!.*/"]=/ 23026p 23027g 23028s/^[^!]*!// 23029:repl 23030t repl 23031s/'"$ac_delim"'$// 23032t delim 23033:nl 23034h 23035s/\(.\{148\}\).*/\1/ 23036t more1 23037s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 23038p 23039n 23040b repl 23041:more1 23042s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 23043p 23044g 23045s/.\{148\}// 23046t nl 23047:delim 23048h 23049s/\(.\{148\}\).*/\1/ 23050t more2 23051s/["\\]/\\&/g; s/^/"/; s/$/"/ 23052p 23053b 23054:more2 23055s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 23056p 23057g 23058s/.\{148\}// 23059t delim 23060' <conf$$subs.awk | sed ' 23061/^[^""]/{ 23062 N 23063 s/\n// 23064} 23065' >>$CONFIG_STATUS || ac_write_fail=1 23066rm -f conf$$subs.awk 23067cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23068_ACAWK 23069cat >>"\$tmp/subs1.awk" <<_ACAWK && 23070 for (key in S) S_is_set[key] = 1 23071 FS = "" 23072 23073} 23074{ 23075 line = $ 0 23076 nfields = split(line, field, "@") 23077 substed = 0 23078 len = length(field[1]) 23079 for (i = 2; i < nfields; i++) { 23080 key = field[i] 23081 keylen = length(key) 23082 if (S_is_set[key]) { 23083 value = S[key] 23084 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 23085 len += length(value) + length(field[++i]) 23086 substed = 1 23087 } else 23088 len += 1 + keylen 23089 } 23090 23091 print line 23092} 23093 23094_ACAWK 23095_ACEOF 23096cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23097if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 23098 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 23099else 23100 cat 23101fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 23102 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 23103$as_echo "$as_me: error: could not setup config files machinery" >&2;} 23104 { (exit 1); exit 1; }; } 23105_ACEOF 23106 23107# VPATH may cause trouble with some makes, so we remove $(srcdir), 23108# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 23109# trailing colons and then remove the whole line if VPATH becomes empty 23110# (actually we leave an empty line to preserve line numbers). 23111if test "x$srcdir" = x.; then 23112 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 23113s/:*\$(srcdir):*/:/ 23114s/:*\${srcdir}:*/:/ 23115s/:*@srcdir@:*/:/ 23116s/^\([^=]*=[ ]*\):*/\1/ 23117s/:*$// 23118s/^[^=]*=[ ]*$// 23119}' 23120fi 23121 23122cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23123fi # test -n "$CONFIG_FILES" 23124 23125# Set up the scripts for CONFIG_HEADERS section. 23126# No need to generate them if there are no CONFIG_HEADERS. 23127# This happens for instance with `./config.status Makefile'. 23128if test -n "$CONFIG_HEADERS"; then 23129cat >"$tmp/defines.awk" <<\_ACAWK || 23130BEGIN { 23131_ACEOF 23132 23133# Transform confdefs.h into an awk script `defines.awk', embedded as 23134# here-document in config.status, that substitutes the proper values into 23135# config.h.in to produce config.h. 23136 23137# Create a delimiter string that does not exist in confdefs.h, to ease 23138# handling of long lines. 23139ac_delim='%!_!# ' 23140for ac_last_try in false false :; do 23141 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 23142 if test -z "$ac_t"; then 23143 break 23144 elif $ac_last_try; then 23145 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 23146$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 23147 { (exit 1); exit 1; }; } 23148 else 23149 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23150 fi 23151done 23152 23153# For the awk script, D is an array of macro values keyed by name, 23154# likewise P contains macro parameters if any. Preserve backslash 23155# newline sequences. 23156 23157ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 23158sed -n ' 23159s/.\{148\}/&'"$ac_delim"'/g 23160t rset 23161:rset 23162s/^[ ]*#[ ]*define[ ][ ]*/ / 23163t def 23164d 23165:def 23166s/\\$// 23167t bsnl 23168s/["\\]/\\&/g 23169s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 23170D["\1"]=" \3"/p 23171s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 23172d 23173:bsnl 23174s/["\\]/\\&/g 23175s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 23176D["\1"]=" \3\\\\\\n"\\/p 23177t cont 23178s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 23179t cont 23180d 23181:cont 23182n 23183s/.\{148\}/&'"$ac_delim"'/g 23184t clear 23185:clear 23186s/\\$// 23187t bsnlc 23188s/["\\]/\\&/g; s/^/"/; s/$/"/p 23189d 23190:bsnlc 23191s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 23192b cont 23193' <confdefs.h | sed ' 23194s/'"$ac_delim"'/"\\\ 23195"/g' >>$CONFIG_STATUS || ac_write_fail=1 23196 23197cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23198 for (key in D) D_is_set[key] = 1 23199 FS = "" 23200} 23201/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 23202 line = \$ 0 23203 split(line, arg, " ") 23204 if (arg[1] == "#") { 23205 defundef = arg[2] 23206 mac1 = arg[3] 23207 } else { 23208 defundef = substr(arg[1], 2) 23209 mac1 = arg[2] 23210 } 23211 split(mac1, mac2, "(") #) 23212 macro = mac2[1] 23213 prefix = substr(line, 1, index(line, defundef) - 1) 23214 if (D_is_set[macro]) { 23215 # Preserve the white space surrounding the "#". 23216 print prefix "define", macro P[macro] D[macro] 23217 next 23218 } else { 23219 # Replace #undef with comments. This is necessary, for example, 23220 # in the case of _POSIX_SOURCE, which is predefined and required 23221 # on some systems where configure will not decide to define it. 23222 if (defundef == "undef") { 23223 print "/*", prefix defundef, macro, "*/" 23224 next 23225 } 23226 } 23227} 23228{ print } 23229_ACAWK 23230_ACEOF 23231cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23232 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 23233$as_echo "$as_me: error: could not setup config headers machinery" >&2;} 23234 { (exit 1); exit 1; }; } 23235fi # test -n "$CONFIG_HEADERS" 23236 23237 23238eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 23239shift 23240for ac_tag 23241do 23242 case $ac_tag in 23243 :[FHLC]) ac_mode=$ac_tag; continue;; 23244 esac 23245 case $ac_mode$ac_tag in 23246 :[FHL]*:*);; 23247 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 23248$as_echo "$as_me: error: Invalid tag $ac_tag." >&2;} 23249 { (exit 1); exit 1; }; };; 23250 :[FH]-) ac_tag=-:-;; 23251 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 23252 esac 23253 ac_save_IFS=$IFS 23254 IFS=: 23255 set x $ac_tag 23256 IFS=$ac_save_IFS 23257 shift 23258 ac_file=$1 23259 shift 23260 23261 case $ac_mode in 23262 :L) ac_source=$1;; 23263 :[FH]) 23264 ac_file_inputs= 23265 for ac_f 23266 do 23267 case $ac_f in 23268 -) ac_f="$tmp/stdin";; 23269 *) # Look for the file first in the build tree, then in the source tree 23270 # (if the path is not absolute). The absolute path cannot be DOS-style, 23271 # because $ac_f cannot contain `:'. 23272 test -f "$ac_f" || 23273 case $ac_f in 23274 [\\/$]*) false;; 23275 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 23276 esac || 23277 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 23278$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 23279 { (exit 1); exit 1; }; };; 23280 esac 23281 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 23282 ac_file_inputs="$ac_file_inputs '$ac_f'" 23283 done 23284 23285 # Let's still pretend it is `configure' which instantiates (i.e., don't 23286 # use $as_me), people would be surprised to read: 23287 # /* config.h. Generated by config.status. */ 23288 configure_input='Generated from '` 23289 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 23290 `' by configure.' 23291 if test x"$ac_file" != x-; then 23292 configure_input="$ac_file. $configure_input" 23293 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 23294$as_echo "$as_me: creating $ac_file" >&6;} 23295 fi 23296 # Neutralize special characters interpreted by sed in replacement strings. 23297 case $configure_input in #( 23298 *\&* | *\|* | *\\* ) 23299 ac_sed_conf_input=`$as_echo "$configure_input" | 23300 sed 's/[\\\\&|]/\\\\&/g'`;; #( 23301 *) ac_sed_conf_input=$configure_input;; 23302 esac 23303 23304 case $ac_tag in 23305 *:-:* | *:-) cat >"$tmp/stdin" \ 23306 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 23307$as_echo "$as_me: error: could not create $ac_file" >&2;} 23308 { (exit 1); exit 1; }; } ;; 23309 esac 23310 ;; 23311 esac 23312 23313 ac_dir=`$as_dirname -- "$ac_file" || 23314$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23315 X"$ac_file" : 'X\(//\)[^/]' \| \ 23316 X"$ac_file" : 'X\(//\)$' \| \ 23317 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 23318$as_echo X"$ac_file" | 23319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23320 s//\1/ 23321 q 23322 } 23323 /^X\(\/\/\)[^/].*/{ 23324 s//\1/ 23325 q 23326 } 23327 /^X\(\/\/\)$/{ 23328 s//\1/ 23329 q 23330 } 23331 /^X\(\/\).*/{ 23332 s//\1/ 23333 q 23334 } 23335 s/.*/./; q'` 23336 { as_dir="$ac_dir" 23337 case $as_dir in #( 23338 -*) as_dir=./$as_dir;; 23339 esac 23340 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 23341 as_dirs= 23342 while :; do 23343 case $as_dir in #( 23344 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 23345 *) as_qdir=$as_dir;; 23346 esac 23347 as_dirs="'$as_qdir' $as_dirs" 23348 as_dir=`$as_dirname -- "$as_dir" || 23349$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23350 X"$as_dir" : 'X\(//\)[^/]' \| \ 23351 X"$as_dir" : 'X\(//\)$' \| \ 23352 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 23353$as_echo X"$as_dir" | 23354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23355 s//\1/ 23356 q 23357 } 23358 /^X\(\/\/\)[^/].*/{ 23359 s//\1/ 23360 q 23361 } 23362 /^X\(\/\/\)$/{ 23363 s//\1/ 23364 q 23365 } 23366 /^X\(\/\).*/{ 23367 s//\1/ 23368 q 23369 } 23370 s/.*/./; q'` 23371 test -d "$as_dir" && break 23372 done 23373 test -z "$as_dirs" || eval "mkdir $as_dirs" 23374 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 23375$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 23376 { (exit 1); exit 1; }; }; } 23377 ac_builddir=. 23378 23379case "$ac_dir" in 23380.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 23381*) 23382 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 23383 # A ".." for each directory in $ac_dir_suffix. 23384 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 23385 case $ac_top_builddir_sub in 23386 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 23387 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 23388 esac ;; 23389esac 23390ac_abs_top_builddir=$ac_pwd 23391ac_abs_builddir=$ac_pwd$ac_dir_suffix 23392# for backward compatibility: 23393ac_top_builddir=$ac_top_build_prefix 23394 23395case $srcdir in 23396 .) # We are building in place. 23397 ac_srcdir=. 23398 ac_top_srcdir=$ac_top_builddir_sub 23399 ac_abs_top_srcdir=$ac_pwd ;; 23400 [\\/]* | ?:[\\/]* ) # Absolute name. 23401 ac_srcdir=$srcdir$ac_dir_suffix; 23402 ac_top_srcdir=$srcdir 23403 ac_abs_top_srcdir=$srcdir ;; 23404 *) # Relative name. 23405 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 23406 ac_top_srcdir=$ac_top_build_prefix$srcdir 23407 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 23408esac 23409ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 23410 23411 23412 case $ac_mode in 23413 :F) 23414 # 23415 # CONFIG_FILE 23416 # 23417 23418 case $INSTALL in 23419 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 23420 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 23421 esac 23422 ac_MKDIR_P=$MKDIR_P 23423 case $MKDIR_P in 23424 [\\/$]* | ?:[\\/]* ) ;; 23425 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 23426 esac 23427_ACEOF 23428 23429cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23430# If the template does not know about datarootdir, expand it. 23431# FIXME: This hack should be removed a few years after 2.60. 23432ac_datarootdir_hack=; ac_datarootdir_seen= 23433 23434ac_sed_dataroot=' 23435/datarootdir/ { 23436 p 23437 q 23438} 23439/@datadir@/p 23440/@docdir@/p 23441/@infodir@/p 23442/@localedir@/p 23443/@mandir@/p 23444' 23445case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 23446*datarootdir*) ac_datarootdir_seen=yes;; 23447*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 23448 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 23449$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 23450_ACEOF 23451cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23452 ac_datarootdir_hack=' 23453 s&@datadir@&$datadir&g 23454 s&@docdir@&$docdir&g 23455 s&@infodir@&$infodir&g 23456 s&@localedir@&$localedir&g 23457 s&@mandir@&$mandir&g 23458 s&\\\${datarootdir}&$datarootdir&g' ;; 23459esac 23460_ACEOF 23461 23462# Neutralize VPATH when `$srcdir' = `.'. 23463# Shell code in configure.ac might set extrasub. 23464# FIXME: do we really want to maintain this feature? 23465cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23466ac_sed_extra="$ac_vpsub 23467$extrasub 23468_ACEOF 23469cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23470:t 23471/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23472s|@configure_input@|$ac_sed_conf_input|;t t 23473s&@top_builddir@&$ac_top_builddir_sub&;t t 23474s&@top_build_prefix@&$ac_top_build_prefix&;t t 23475s&@srcdir@&$ac_srcdir&;t t 23476s&@abs_srcdir@&$ac_abs_srcdir&;t t 23477s&@top_srcdir@&$ac_top_srcdir&;t t 23478s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 23479s&@builddir@&$ac_builddir&;t t 23480s&@abs_builddir@&$ac_abs_builddir&;t t 23481s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 23482s&@INSTALL@&$ac_INSTALL&;t t 23483s&@MKDIR_P@&$ac_MKDIR_P&;t t 23484$ac_datarootdir_hack 23485" 23486eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 23487 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 23488$as_echo "$as_me: error: could not create $ac_file" >&2;} 23489 { (exit 1); exit 1; }; } 23490 23491test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 23492 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 23493 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 23494 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23495which seems to be undefined. Please make sure it is defined." >&5 23496$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23497which seems to be undefined. Please make sure it is defined." >&2;} 23498 23499 rm -f "$tmp/stdin" 23500 case $ac_file in 23501 -) cat "$tmp/out" && rm -f "$tmp/out";; 23502 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 23503 esac \ 23504 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 23505$as_echo "$as_me: error: could not create $ac_file" >&2;} 23506 { (exit 1); exit 1; }; } 23507 ;; 23508 :H) 23509 # 23510 # CONFIG_HEADER 23511 # 23512 if test x"$ac_file" != x-; then 23513 { 23514 $as_echo "/* $configure_input */" \ 23515 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 23516 } >"$tmp/config.h" \ 23517 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 23518$as_echo "$as_me: error: could not create $ac_file" >&2;} 23519 { (exit 1); exit 1; }; } 23520 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 23521 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 23522$as_echo "$as_me: $ac_file is unchanged" >&6;} 23523 else 23524 rm -f "$ac_file" 23525 mv "$tmp/config.h" "$ac_file" \ 23526 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 23527$as_echo "$as_me: error: could not create $ac_file" >&2;} 23528 { (exit 1); exit 1; }; } 23529 fi 23530 else 23531 $as_echo "/* $configure_input */" \ 23532 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 23533 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 23534$as_echo "$as_me: error: could not create -" >&2;} 23535 { (exit 1); exit 1; }; } 23536 fi 23537# Compute "$ac_file"'s index in $config_headers. 23538_am_arg="$ac_file" 23539_am_stamp_count=1 23540for _am_header in $config_headers :; do 23541 case $_am_header in 23542 $_am_arg | $_am_arg:* ) 23543 break ;; 23544 * ) 23545 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 23546 esac 23547done 23548echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 23549$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23550 X"$_am_arg" : 'X\(//\)[^/]' \| \ 23551 X"$_am_arg" : 'X\(//\)$' \| \ 23552 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 23553$as_echo X"$_am_arg" | 23554 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23555 s//\1/ 23556 q 23557 } 23558 /^X\(\/\/\)[^/].*/{ 23559 s//\1/ 23560 q 23561 } 23562 /^X\(\/\/\)$/{ 23563 s//\1/ 23564 q 23565 } 23566 /^X\(\/\).*/{ 23567 s//\1/ 23568 q 23569 } 23570 s/.*/./; q'`/stamp-h$_am_stamp_count 23571 ;; 23572 23573 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 23574$as_echo "$as_me: executing $ac_file commands" >&6;} 23575 ;; 23576 esac 23577 23578 23579 case $ac_file$ac_mode in 23580 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 23581 # Strip MF so we end up with the name of the file. 23582 mf=`echo "$mf" | sed -e 's/:.*$//'` 23583 # Check whether this is an Automake generated Makefile or not. 23584 # We used to match only the files named `Makefile.in', but 23585 # some people rename them; so instead we look at the file content. 23586 # Grep'ing the first line is not enough: some people post-process 23587 # each Makefile.in and add a new line on top of each file to say so. 23588 # Grep'ing the whole file is not good either: AIX grep has a line 23589 # limit of 2048, but all sed's we know have understand at least 4000. 23590 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 23591 dirpart=`$as_dirname -- "$mf" || 23592$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23593 X"$mf" : 'X\(//\)[^/]' \| \ 23594 X"$mf" : 'X\(//\)$' \| \ 23595 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 23596$as_echo X"$mf" | 23597 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23598 s//\1/ 23599 q 23600 } 23601 /^X\(\/\/\)[^/].*/{ 23602 s//\1/ 23603 q 23604 } 23605 /^X\(\/\/\)$/{ 23606 s//\1/ 23607 q 23608 } 23609 /^X\(\/\).*/{ 23610 s//\1/ 23611 q 23612 } 23613 s/.*/./; q'` 23614 else 23615 continue 23616 fi 23617 # Extract the definition of DEPDIR, am__include, and am__quote 23618 # from the Makefile without running `make'. 23619 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 23620 test -z "$DEPDIR" && continue 23621 am__include=`sed -n 's/^am__include = //p' < "$mf"` 23622 test -z "am__include" && continue 23623 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 23624 # When using ansi2knr, U may be empty or an underscore; expand it 23625 U=`sed -n 's/^U = //p' < "$mf"` 23626 # Find all dependency output files, they are included files with 23627 # $(DEPDIR) in their names. We invoke sed twice because it is the 23628 # simplest approach to changing $(DEPDIR) to its actual value in the 23629 # expansion. 23630 for file in `sed -n " 23631 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 23632 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 23633 # Make sure the directory exists. 23634 test -f "$dirpart/$file" && continue 23635 fdir=`$as_dirname -- "$file" || 23636$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23637 X"$file" : 'X\(//\)[^/]' \| \ 23638 X"$file" : 'X\(//\)$' \| \ 23639 X"$file" : 'X\(/\)' \| . 2>/dev/null || 23640$as_echo X"$file" | 23641 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23642 s//\1/ 23643 q 23644 } 23645 /^X\(\/\/\)[^/].*/{ 23646 s//\1/ 23647 q 23648 } 23649 /^X\(\/\/\)$/{ 23650 s//\1/ 23651 q 23652 } 23653 /^X\(\/\).*/{ 23654 s//\1/ 23655 q 23656 } 23657 s/.*/./; q'` 23658 { as_dir=$dirpart/$fdir 23659 case $as_dir in #( 23660 -*) as_dir=./$as_dir;; 23661 esac 23662 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 23663 as_dirs= 23664 while :; do 23665 case $as_dir in #( 23666 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 23667 *) as_qdir=$as_dir;; 23668 esac 23669 as_dirs="'$as_qdir' $as_dirs" 23670 as_dir=`$as_dirname -- "$as_dir" || 23671$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23672 X"$as_dir" : 'X\(//\)[^/]' \| \ 23673 X"$as_dir" : 'X\(//\)$' \| \ 23674 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 23675$as_echo X"$as_dir" | 23676 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23677 s//\1/ 23678 q 23679 } 23680 /^X\(\/\/\)[^/].*/{ 23681 s//\1/ 23682 q 23683 } 23684 /^X\(\/\/\)$/{ 23685 s//\1/ 23686 q 23687 } 23688 /^X\(\/\).*/{ 23689 s//\1/ 23690 q 23691 } 23692 s/.*/./; q'` 23693 test -d "$as_dir" && break 23694 done 23695 test -z "$as_dirs" || eval "mkdir $as_dirs" 23696 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 23697$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 23698 { (exit 1); exit 1; }; }; } 23699 # echo "creating $dirpart/$file" 23700 echo '# dummy' > "$dirpart/$file" 23701 done 23702done 23703 ;; 23704 23705 esac 23706done # for ac_tag 23707 23708 23709{ (exit 0); exit 0; } 23710_ACEOF 23711chmod +x $CONFIG_STATUS 23712ac_clean_files=$ac_clean_files_save 23713 23714test $ac_write_fail = 0 || 23715 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 23716$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 23717 { (exit 1); exit 1; }; } 23718 23719 23720# configure is writing to config.log, and then calls config.status. 23721# config.status does its own redirection, appending to config.log. 23722# Unfortunately, on DOS this fails, as config.log is still kept open 23723# by configure, so config.status won't be able to write to it; its 23724# output is simply discarded. So we exec the FD to /dev/null, 23725# effectively closing config.log, so it can be properly (re)opened and 23726# appended to by config.status. When coming back to configure, we 23727# need to make the FD available again. 23728if test "$no_create" != yes; then 23729 ac_cs_success=: 23730 ac_config_status_args= 23731 test "$silent" = yes && 23732 ac_config_status_args="$ac_config_status_args --quiet" 23733 exec 5>/dev/null 23734 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23735 exec 5>>config.log 23736 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23737 # would make configure fail if this is the last instruction. 23738 $ac_cs_success || { (exit 1); exit 1; } 23739fi 23740if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 23741 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5 23742$as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;} 23743fi 23744 23745