configure revision d8556812
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.63 for xf86-video-cirrus 1.3.2. 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-cirrus' 752PACKAGE_TARNAME='xf86-video-cirrus' 753PACKAGE_VERSION='1.3.2' 754PACKAGE_STRING='xf86-video-cirrus 1.3.2' 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='am__EXEEXT_FALSE 795am__EXEEXT_TRUE 796LTLIBOBJS 797LIBOBJS 798distcleancheck_listfiles 799CHANGELOG_CMD 800ADMIN_MAN_DIR 801DRIVER_MAN_DIR 802MISC_MAN_DIR 803FILE_MAN_DIR 804LIB_MAN_DIR 805APP_MAN_DIR 806ADMIN_MAN_SUFFIX 807DRIVER_MAN_SUFFIX 808MISC_MAN_SUFFIX 809FILE_MAN_SUFFIX 810LIB_MAN_SUFFIX 811APP_MAN_SUFFIX 812DRIVER_NAME 813moduledir 814XSERVER_LIBPCIACCESS_FALSE 815XSERVER_LIBPCIACCESS_TRUE 816PCIACCESS_LIBS 817PCIACCESS_CFLAGS 818XORG_LIBS 819XORG_CFLAGS 820PKG_CONFIG 821CWARNFLAGS 822LIBTOOL 823ac_ct_F77 824FFLAGS 825F77 826CXXCPP 827am__fastdepCXX_FALSE 828am__fastdepCXX_TRUE 829CXXDEPMODE 830ac_ct_CXX 831CXXFLAGS 832CXX 833CPP 834NMEDIT 835DSYMUTIL 836RANLIB 837AR 838ECHO 839LN_S 840EGREP 841GREP 842SED 843am__fastdepCC_FALSE 844am__fastdepCC_TRUE 845CCDEPMODE 846AMDEPBACKSLASH 847AMDEP_FALSE 848AMDEP_TRUE 849am__quote 850am__include 851DEPDIR 852OBJEXT 853EXEEXT 854ac_ct_CC 855CPPFLAGS 856LDFLAGS 857CFLAGS 858CC 859host_os 860host_vendor 861host_cpu 862host 863build_os 864build_vendor 865build_cpu 866build 867MAINT 868MAINTAINER_MODE_FALSE 869MAINTAINER_MODE_TRUE 870am__untar 871am__tar 872AMTAR 873am__leading_dot 874SET_MAKE 875AWK 876mkdir_p 877MKDIR_P 878INSTALL_STRIP_PROGRAM 879STRIP 880install_sh 881MAKEINFO 882AUTOHEADER 883AUTOMAKE 884AUTOCONF 885ACLOCAL 886VERSION 887PACKAGE 888CYGPATH_W 889am__isrc 890INSTALL_DATA 891INSTALL_SCRIPT 892INSTALL_PROGRAM 893target_alias 894host_alias 895build_alias 896LIBS 897ECHO_T 898ECHO_N 899ECHO_C 900DEFS 901mandir 902localedir 903libdir 904psdir 905pdfdir 906dvidir 907htmldir 908infodir 909docdir 910oldincludedir 911includedir 912localstatedir 913sharedstatedir 914sysconfdir 915datadir 916datarootdir 917libexecdir 918sbindir 919bindir 920program_transform_name 921prefix 922exec_prefix 923PACKAGE_BUGREPORT 924PACKAGE_STRING 925PACKAGE_VERSION 926PACKAGE_TARNAME 927PACKAGE_NAME 928PATH_SEPARATOR 929SHELL' 930ac_subst_files='' 931ac_user_opts=' 932enable_option_checking 933enable_maintainer_mode 934enable_static 935enable_shared 936enable_fast_install 937enable_dependency_tracking 938with_gnu_ld 939enable_libtool_lock 940with_pic 941with_tags 942with_xorg_module_dir 943with_release_version 944' 945 ac_precious_vars='build_alias 946host_alias 947target_alias 948CC 949CFLAGS 950LDFLAGS 951LIBS 952CPPFLAGS 953CPP 954CXX 955CXXFLAGS 956CCC 957CXXCPP 958F77 959FFLAGS 960PKG_CONFIG 961XORG_CFLAGS 962XORG_LIBS 963PCIACCESS_CFLAGS 964PCIACCESS_LIBS' 965 966 967# Initialize some variables set by options. 968ac_init_help= 969ac_init_version=false 970ac_unrecognized_opts= 971ac_unrecognized_sep= 972# The variables have the same names as the options, with 973# dashes changed to underlines. 974cache_file=/dev/null 975exec_prefix=NONE 976no_create= 977no_recursion= 978prefix=NONE 979program_prefix=NONE 980program_suffix=NONE 981program_transform_name=s,x,x, 982silent= 983site= 984srcdir= 985verbose= 986x_includes=NONE 987x_libraries=NONE 988 989# Installation directory options. 990# These are left unexpanded so users can "make install exec_prefix=/foo" 991# and all the variables that are supposed to be based on exec_prefix 992# by default will actually change. 993# Use braces instead of parens because sh, perl, etc. also accept them. 994# (The list follows the same order as the GNU Coding Standards.) 995bindir='${exec_prefix}/bin' 996sbindir='${exec_prefix}/sbin' 997libexecdir='${exec_prefix}/libexec' 998datarootdir='${prefix}/share' 999datadir='${datarootdir}' 1000sysconfdir='${prefix}/etc' 1001sharedstatedir='${prefix}/com' 1002localstatedir='${prefix}/var' 1003includedir='${prefix}/include' 1004oldincludedir='/usr/include' 1005docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1006infodir='${datarootdir}/info' 1007htmldir='${docdir}' 1008dvidir='${docdir}' 1009pdfdir='${docdir}' 1010psdir='${docdir}' 1011libdir='${exec_prefix}/lib' 1012localedir='${datarootdir}/locale' 1013mandir='${datarootdir}/man' 1014 1015ac_prev= 1016ac_dashdash= 1017for ac_option 1018do 1019 # If the previous option needs an argument, assign it. 1020 if test -n "$ac_prev"; then 1021 eval $ac_prev=\$ac_option 1022 ac_prev= 1023 continue 1024 fi 1025 1026 case $ac_option in 1027 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1028 *) ac_optarg=yes ;; 1029 esac 1030 1031 # Accept the important Cygnus configure options, so we can diagnose typos. 1032 1033 case $ac_dashdash$ac_option in 1034 --) 1035 ac_dashdash=yes ;; 1036 1037 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1038 ac_prev=bindir ;; 1039 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1040 bindir=$ac_optarg ;; 1041 1042 -build | --build | --buil | --bui | --bu) 1043 ac_prev=build_alias ;; 1044 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1045 build_alias=$ac_optarg ;; 1046 1047 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1048 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1049 ac_prev=cache_file ;; 1050 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1051 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1052 cache_file=$ac_optarg ;; 1053 1054 --config-cache | -C) 1055 cache_file=config.cache ;; 1056 1057 -datadir | --datadir | --datadi | --datad) 1058 ac_prev=datadir ;; 1059 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1060 datadir=$ac_optarg ;; 1061 1062 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1063 | --dataroo | --dataro | --datar) 1064 ac_prev=datarootdir ;; 1065 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1066 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1067 datarootdir=$ac_optarg ;; 1068 1069 -disable-* | --disable-*) 1070 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1071 # Reject names that are not valid shell variable names. 1072 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1073 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1074 { (exit 1); exit 1; }; } 1075 ac_useropt_orig=$ac_useropt 1076 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1077 case $ac_user_opts in 1078 *" 1079"enable_$ac_useropt" 1080"*) ;; 1081 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1082 ac_unrecognized_sep=', ';; 1083 esac 1084 eval enable_$ac_useropt=no ;; 1085 1086 -docdir | --docdir | --docdi | --doc | --do) 1087 ac_prev=docdir ;; 1088 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1089 docdir=$ac_optarg ;; 1090 1091 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1092 ac_prev=dvidir ;; 1093 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1094 dvidir=$ac_optarg ;; 1095 1096 -enable-* | --enable-*) 1097 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1098 # Reject names that are not valid shell variable names. 1099 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1100 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1101 { (exit 1); exit 1; }; } 1102 ac_useropt_orig=$ac_useropt 1103 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1104 case $ac_user_opts in 1105 *" 1106"enable_$ac_useropt" 1107"*) ;; 1108 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1109 ac_unrecognized_sep=', ';; 1110 esac 1111 eval enable_$ac_useropt=\$ac_optarg ;; 1112 1113 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1114 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1115 | --exec | --exe | --ex) 1116 ac_prev=exec_prefix ;; 1117 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1118 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1119 | --exec=* | --exe=* | --ex=*) 1120 exec_prefix=$ac_optarg ;; 1121 1122 -gas | --gas | --ga | --g) 1123 # Obsolete; use --with-gas. 1124 with_gas=yes ;; 1125 1126 -help | --help | --hel | --he | -h) 1127 ac_init_help=long ;; 1128 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1129 ac_init_help=recursive ;; 1130 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1131 ac_init_help=short ;; 1132 1133 -host | --host | --hos | --ho) 1134 ac_prev=host_alias ;; 1135 -host=* | --host=* | --hos=* | --ho=*) 1136 host_alias=$ac_optarg ;; 1137 1138 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1139 ac_prev=htmldir ;; 1140 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1141 | --ht=*) 1142 htmldir=$ac_optarg ;; 1143 1144 -includedir | --includedir | --includedi | --included | --include \ 1145 | --includ | --inclu | --incl | --inc) 1146 ac_prev=includedir ;; 1147 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1148 | --includ=* | --inclu=* | --incl=* | --inc=*) 1149 includedir=$ac_optarg ;; 1150 1151 -infodir | --infodir | --infodi | --infod | --info | --inf) 1152 ac_prev=infodir ;; 1153 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1154 infodir=$ac_optarg ;; 1155 1156 -libdir | --libdir | --libdi | --libd) 1157 ac_prev=libdir ;; 1158 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1159 libdir=$ac_optarg ;; 1160 1161 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1162 | --libexe | --libex | --libe) 1163 ac_prev=libexecdir ;; 1164 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1165 | --libexe=* | --libex=* | --libe=*) 1166 libexecdir=$ac_optarg ;; 1167 1168 -localedir | --localedir | --localedi | --localed | --locale) 1169 ac_prev=localedir ;; 1170 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1171 localedir=$ac_optarg ;; 1172 1173 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1174 | --localstate | --localstat | --localsta | --localst | --locals) 1175 ac_prev=localstatedir ;; 1176 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1177 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1178 localstatedir=$ac_optarg ;; 1179 1180 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1181 ac_prev=mandir ;; 1182 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1183 mandir=$ac_optarg ;; 1184 1185 -nfp | --nfp | --nf) 1186 # Obsolete; use --without-fp. 1187 with_fp=no ;; 1188 1189 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1190 | --no-cr | --no-c | -n) 1191 no_create=yes ;; 1192 1193 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1194 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1195 no_recursion=yes ;; 1196 1197 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1198 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1199 | --oldin | --oldi | --old | --ol | --o) 1200 ac_prev=oldincludedir ;; 1201 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1202 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1203 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1204 oldincludedir=$ac_optarg ;; 1205 1206 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1207 ac_prev=prefix ;; 1208 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1209 prefix=$ac_optarg ;; 1210 1211 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1212 | --program-pre | --program-pr | --program-p) 1213 ac_prev=program_prefix ;; 1214 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1215 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1216 program_prefix=$ac_optarg ;; 1217 1218 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1219 | --program-suf | --program-su | --program-s) 1220 ac_prev=program_suffix ;; 1221 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1222 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1223 program_suffix=$ac_optarg ;; 1224 1225 -program-transform-name | --program-transform-name \ 1226 | --program-transform-nam | --program-transform-na \ 1227 | --program-transform-n | --program-transform- \ 1228 | --program-transform | --program-transfor \ 1229 | --program-transfo | --program-transf \ 1230 | --program-trans | --program-tran \ 1231 | --progr-tra | --program-tr | --program-t) 1232 ac_prev=program_transform_name ;; 1233 -program-transform-name=* | --program-transform-name=* \ 1234 | --program-transform-nam=* | --program-transform-na=* \ 1235 | --program-transform-n=* | --program-transform-=* \ 1236 | --program-transform=* | --program-transfor=* \ 1237 | --program-transfo=* | --program-transf=* \ 1238 | --program-trans=* | --program-tran=* \ 1239 | --progr-tra=* | --program-tr=* | --program-t=*) 1240 program_transform_name=$ac_optarg ;; 1241 1242 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1243 ac_prev=pdfdir ;; 1244 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1245 pdfdir=$ac_optarg ;; 1246 1247 -psdir | --psdir | --psdi | --psd | --ps) 1248 ac_prev=psdir ;; 1249 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1250 psdir=$ac_optarg ;; 1251 1252 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1253 | -silent | --silent | --silen | --sile | --sil) 1254 silent=yes ;; 1255 1256 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1257 ac_prev=sbindir ;; 1258 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1259 | --sbi=* | --sb=*) 1260 sbindir=$ac_optarg ;; 1261 1262 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1263 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1264 | --sharedst | --shareds | --shared | --share | --shar \ 1265 | --sha | --sh) 1266 ac_prev=sharedstatedir ;; 1267 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1268 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1269 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1270 | --sha=* | --sh=*) 1271 sharedstatedir=$ac_optarg ;; 1272 1273 -site | --site | --sit) 1274 ac_prev=site ;; 1275 -site=* | --site=* | --sit=*) 1276 site=$ac_optarg ;; 1277 1278 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1279 ac_prev=srcdir ;; 1280 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1281 srcdir=$ac_optarg ;; 1282 1283 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1284 | --syscon | --sysco | --sysc | --sys | --sy) 1285 ac_prev=sysconfdir ;; 1286 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1287 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1288 sysconfdir=$ac_optarg ;; 1289 1290 -target | --target | --targe | --targ | --tar | --ta | --t) 1291 ac_prev=target_alias ;; 1292 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1293 target_alias=$ac_optarg ;; 1294 1295 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1296 verbose=yes ;; 1297 1298 -version | --version | --versio | --versi | --vers | -V) 1299 ac_init_version=: ;; 1300 1301 -with-* | --with-*) 1302 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1303 # Reject names that are not valid shell variable names. 1304 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1305 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1306 { (exit 1); exit 1; }; } 1307 ac_useropt_orig=$ac_useropt 1308 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1309 case $ac_user_opts in 1310 *" 1311"with_$ac_useropt" 1312"*) ;; 1313 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1314 ac_unrecognized_sep=', ';; 1315 esac 1316 eval with_$ac_useropt=\$ac_optarg ;; 1317 1318 -without-* | --without-*) 1319 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1320 # Reject names that are not valid shell variable names. 1321 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1322 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1323 { (exit 1); exit 1; }; } 1324 ac_useropt_orig=$ac_useropt 1325 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1326 case $ac_user_opts in 1327 *" 1328"with_$ac_useropt" 1329"*) ;; 1330 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1331 ac_unrecognized_sep=', ';; 1332 esac 1333 eval with_$ac_useropt=no ;; 1334 1335 --x) 1336 # Obsolete; use --with-x. 1337 with_x=yes ;; 1338 1339 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1340 | --x-incl | --x-inc | --x-in | --x-i) 1341 ac_prev=x_includes ;; 1342 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1343 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1344 x_includes=$ac_optarg ;; 1345 1346 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1347 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1348 ac_prev=x_libraries ;; 1349 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1350 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1351 x_libraries=$ac_optarg ;; 1352 1353 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1354Try \`$0 --help' for more information." >&2 1355 { (exit 1); exit 1; }; } 1356 ;; 1357 1358 *=*) 1359 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1360 # Reject names that are not valid shell variable names. 1361 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1362 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1363 { (exit 1); exit 1; }; } 1364 eval $ac_envvar=\$ac_optarg 1365 export $ac_envvar ;; 1366 1367 *) 1368 # FIXME: should be removed in autoconf 3.0. 1369 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1370 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1371 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1372 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1373 ;; 1374 1375 esac 1376done 1377 1378if test -n "$ac_prev"; then 1379 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1380 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1381 { (exit 1); exit 1; }; } 1382fi 1383 1384if test -n "$ac_unrecognized_opts"; then 1385 case $enable_option_checking in 1386 no) ;; 1387 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 1388 { (exit 1); exit 1; }; } ;; 1389 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1390 esac 1391fi 1392 1393# Check all directory arguments for consistency. 1394for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1395 datadir sysconfdir sharedstatedir localstatedir includedir \ 1396 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1397 libdir localedir mandir 1398do 1399 eval ac_val=\$$ac_var 1400 # Remove trailing slashes. 1401 case $ac_val in 1402 */ ) 1403 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1404 eval $ac_var=\$ac_val;; 1405 esac 1406 # Be sure to have absolute directory names. 1407 case $ac_val in 1408 [\\/$]* | ?:[\\/]* ) continue;; 1409 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1410 esac 1411 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1412 { (exit 1); exit 1; }; } 1413done 1414 1415# There might be people who depend on the old broken behavior: `$host' 1416# used to hold the argument of --host etc. 1417# FIXME: To remove some day. 1418build=$build_alias 1419host=$host_alias 1420target=$target_alias 1421 1422# FIXME: To remove some day. 1423if test "x$host_alias" != x; then 1424 if test "x$build_alias" = x; then 1425 cross_compiling=maybe 1426 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1427 If a cross compiler is detected then cross compile mode will be used." >&2 1428 elif test "x$build_alias" != "x$host_alias"; then 1429 cross_compiling=yes 1430 fi 1431fi 1432 1433ac_tool_prefix= 1434test -n "$host_alias" && ac_tool_prefix=$host_alias- 1435 1436test "$silent" = yes && exec 6>/dev/null 1437 1438 1439ac_pwd=`pwd` && test -n "$ac_pwd" && 1440ac_ls_di=`ls -di .` && 1441ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1442 { $as_echo "$as_me: error: working directory cannot be determined" >&2 1443 { (exit 1); exit 1; }; } 1444test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1445 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1446 { (exit 1); exit 1; }; } 1447 1448 1449# Find the source files, if location was not specified. 1450if test -z "$srcdir"; then 1451 ac_srcdir_defaulted=yes 1452 # Try the directory containing this script, then the parent directory. 1453 ac_confdir=`$as_dirname -- "$as_myself" || 1454$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1455 X"$as_myself" : 'X\(//\)[^/]' \| \ 1456 X"$as_myself" : 'X\(//\)$' \| \ 1457 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1458$as_echo X"$as_myself" | 1459 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1460 s//\1/ 1461 q 1462 } 1463 /^X\(\/\/\)[^/].*/{ 1464 s//\1/ 1465 q 1466 } 1467 /^X\(\/\/\)$/{ 1468 s//\1/ 1469 q 1470 } 1471 /^X\(\/\).*/{ 1472 s//\1/ 1473 q 1474 } 1475 s/.*/./; q'` 1476 srcdir=$ac_confdir 1477 if test ! -r "$srcdir/$ac_unique_file"; then 1478 srcdir=.. 1479 fi 1480else 1481 ac_srcdir_defaulted=no 1482fi 1483if test ! -r "$srcdir/$ac_unique_file"; then 1484 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1485 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1486 { (exit 1); exit 1; }; } 1487fi 1488ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1489ac_abs_confdir=`( 1490 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1491 { (exit 1); exit 1; }; } 1492 pwd)` 1493# When building in place, set srcdir=. 1494if test "$ac_abs_confdir" = "$ac_pwd"; then 1495 srcdir=. 1496fi 1497# Remove unnecessary trailing slashes from srcdir. 1498# Double slashes in file names in object file debugging info 1499# mess up M-x gdb in Emacs. 1500case $srcdir in 1501*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1502esac 1503for ac_var in $ac_precious_vars; do 1504 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1505 eval ac_env_${ac_var}_value=\$${ac_var} 1506 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1507 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1508done 1509 1510# 1511# Report the --help message. 1512# 1513if test "$ac_init_help" = "long"; then 1514 # Omit some internal or obsolete options to make the list less imposing. 1515 # This message is too long to be a string in the A/UX 3.1 sh. 1516 cat <<_ACEOF 1517\`configure' configures xf86-video-cirrus 1.3.2 to adapt to many kinds of systems. 1518 1519Usage: $0 [OPTION]... [VAR=VALUE]... 1520 1521To assign environment variables (e.g., CC, CFLAGS...), specify them as 1522VAR=VALUE. See below for descriptions of some of the useful variables. 1523 1524Defaults for the options are specified in brackets. 1525 1526Configuration: 1527 -h, --help display this help and exit 1528 --help=short display options specific to this package 1529 --help=recursive display the short help of all the included packages 1530 -V, --version display version information and exit 1531 -q, --quiet, --silent do not print \`checking...' messages 1532 --cache-file=FILE cache test results in FILE [disabled] 1533 -C, --config-cache alias for \`--cache-file=config.cache' 1534 -n, --no-create do not create output files 1535 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1536 1537Installation directories: 1538 --prefix=PREFIX install architecture-independent files in PREFIX 1539 [$ac_default_prefix] 1540 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1541 [PREFIX] 1542 1543By default, \`make install' will install all the files in 1544\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1545an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1546for instance \`--prefix=\$HOME'. 1547 1548For better control, use the options below. 1549 1550Fine tuning of the installation directories: 1551 --bindir=DIR user executables [EPREFIX/bin] 1552 --sbindir=DIR system admin executables [EPREFIX/sbin] 1553 --libexecdir=DIR program executables [EPREFIX/libexec] 1554 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1555 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1556 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1557 --libdir=DIR object code libraries [EPREFIX/lib] 1558 --includedir=DIR C header files [PREFIX/include] 1559 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1560 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1561 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1562 --infodir=DIR info documentation [DATAROOTDIR/info] 1563 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1564 --mandir=DIR man documentation [DATAROOTDIR/man] 1565 --docdir=DIR documentation root 1566 [DATAROOTDIR/doc/xf86-video-cirrus] 1567 --htmldir=DIR html documentation [DOCDIR] 1568 --dvidir=DIR dvi documentation [DOCDIR] 1569 --pdfdir=DIR pdf documentation [DOCDIR] 1570 --psdir=DIR ps documentation [DOCDIR] 1571_ACEOF 1572 1573 cat <<\_ACEOF 1574 1575Program names: 1576 --program-prefix=PREFIX prepend PREFIX to installed program names 1577 --program-suffix=SUFFIX append SUFFIX to installed program names 1578 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1579 1580System types: 1581 --build=BUILD configure for building on BUILD [guessed] 1582 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1583_ACEOF 1584fi 1585 1586if test -n "$ac_init_help"; then 1587 case $ac_init_help in 1588 short | recursive ) echo "Configuration of xf86-video-cirrus 1.3.2:";; 1589 esac 1590 cat <<\_ACEOF 1591 1592Optional Features: 1593 --disable-option-checking ignore unrecognized --enable/--with options 1594 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1595 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1596 --enable-maintainer-mode enable make rules and dependencies not useful 1597 (and sometimes confusing) to the casual installer 1598 --enable-static[=PKGS] build static libraries [default=no] 1599 --enable-shared[=PKGS] build shared libraries [default=yes] 1600 --enable-fast-install[=PKGS] 1601 optimize for fast installation [default=yes] 1602 --disable-dependency-tracking speeds up one-time build 1603 --enable-dependency-tracking do not reject slow dependency extractors 1604 --disable-libtool-lock avoid locking (might break parallel builds) 1605 1606Optional Packages: 1607 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1608 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1609 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1610 --with-pic try to use only PIC/non-PIC objects [default=use 1611 both] 1612 --with-tags[=TAGS] include additional configurations [automatic] 1613 --with-xorg-module-dir=DIR 1614 Default xorg module directory 1615 [default=$libdir/xorg/modules] 1616 --with-release-version=STRING 1617 Use release version string in package name 1618 1619Some influential environment variables: 1620 CC C compiler command 1621 CFLAGS C compiler flags 1622 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1623 nonstandard directory <lib dir> 1624 LIBS libraries to pass to the linker, e.g. -l<library> 1625 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1626 you have headers in a nonstandard directory <include dir> 1627 CPP C preprocessor 1628 CXX C++ compiler command 1629 CXXFLAGS C++ compiler flags 1630 CXXCPP C++ preprocessor 1631 F77 Fortran 77 compiler command 1632 FFLAGS Fortran 77 compiler flags 1633 PKG_CONFIG path to pkg-config utility 1634 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1635 XORG_LIBS linker flags for XORG, overriding pkg-config 1636 PCIACCESS_CFLAGS 1637 C compiler flags for PCIACCESS, overriding pkg-config 1638 PCIACCESS_LIBS 1639 linker flags for PCIACCESS, overriding pkg-config 1640 1641Use these variables to override the choices made by `configure' or to help 1642it to find libraries and programs with nonstandard names/locations. 1643 1644Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1645_ACEOF 1646ac_status=$? 1647fi 1648 1649if test "$ac_init_help" = "recursive"; then 1650 # If there are subdirs, report their specific --help. 1651 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1652 test -d "$ac_dir" || 1653 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1654 continue 1655 ac_builddir=. 1656 1657case "$ac_dir" in 1658.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1659*) 1660 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1661 # A ".." for each directory in $ac_dir_suffix. 1662 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1663 case $ac_top_builddir_sub in 1664 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1665 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1666 esac ;; 1667esac 1668ac_abs_top_builddir=$ac_pwd 1669ac_abs_builddir=$ac_pwd$ac_dir_suffix 1670# for backward compatibility: 1671ac_top_builddir=$ac_top_build_prefix 1672 1673case $srcdir in 1674 .) # We are building in place. 1675 ac_srcdir=. 1676 ac_top_srcdir=$ac_top_builddir_sub 1677 ac_abs_top_srcdir=$ac_pwd ;; 1678 [\\/]* | ?:[\\/]* ) # Absolute name. 1679 ac_srcdir=$srcdir$ac_dir_suffix; 1680 ac_top_srcdir=$srcdir 1681 ac_abs_top_srcdir=$srcdir ;; 1682 *) # Relative name. 1683 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1684 ac_top_srcdir=$ac_top_build_prefix$srcdir 1685 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1686esac 1687ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1688 1689 cd "$ac_dir" || { ac_status=$?; continue; } 1690 # Check for guested configure. 1691 if test -f "$ac_srcdir/configure.gnu"; then 1692 echo && 1693 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1694 elif test -f "$ac_srcdir/configure"; then 1695 echo && 1696 $SHELL "$ac_srcdir/configure" --help=recursive 1697 else 1698 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1699 fi || ac_status=$? 1700 cd "$ac_pwd" || { ac_status=$?; break; } 1701 done 1702fi 1703 1704test -n "$ac_init_help" && exit $ac_status 1705if $ac_init_version; then 1706 cat <<\_ACEOF 1707xf86-video-cirrus configure 1.3.2 1708generated by GNU Autoconf 2.63 1709 1710Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 17112002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1712This configure script is free software; the Free Software Foundation 1713gives unlimited permission to copy, distribute and modify it. 1714_ACEOF 1715 exit 1716fi 1717cat >config.log <<_ACEOF 1718This file contains any messages produced by compilers while 1719running configure, to aid debugging if configure makes a mistake. 1720 1721It was created by xf86-video-cirrus $as_me 1.3.2, which was 1722generated by GNU Autoconf 2.63. Invocation command line was 1723 1724 $ $0 $@ 1725 1726_ACEOF 1727exec 5>>config.log 1728{ 1729cat <<_ASUNAME 1730## --------- ## 1731## Platform. ## 1732## --------- ## 1733 1734hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1735uname -m = `(uname -m) 2>/dev/null || echo unknown` 1736uname -r = `(uname -r) 2>/dev/null || echo unknown` 1737uname -s = `(uname -s) 2>/dev/null || echo unknown` 1738uname -v = `(uname -v) 2>/dev/null || echo unknown` 1739 1740/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1741/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1742 1743/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1744/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1745/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1746/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1747/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1748/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1749/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1750 1751_ASUNAME 1752 1753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1754for as_dir in $PATH 1755do 1756 IFS=$as_save_IFS 1757 test -z "$as_dir" && as_dir=. 1758 $as_echo "PATH: $as_dir" 1759done 1760IFS=$as_save_IFS 1761 1762} >&5 1763 1764cat >&5 <<_ACEOF 1765 1766 1767## ----------- ## 1768## Core tests. ## 1769## ----------- ## 1770 1771_ACEOF 1772 1773 1774# Keep a trace of the command line. 1775# Strip out --no-create and --no-recursion so they do not pile up. 1776# Strip out --silent because we don't want to record it for future runs. 1777# Also quote any args containing shell meta-characters. 1778# Make two passes to allow for proper duplicate-argument suppression. 1779ac_configure_args= 1780ac_configure_args0= 1781ac_configure_args1= 1782ac_must_keep_next=false 1783for ac_pass in 1 2 1784do 1785 for ac_arg 1786 do 1787 case $ac_arg in 1788 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1789 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1790 | -silent | --silent | --silen | --sile | --sil) 1791 continue ;; 1792 *\'*) 1793 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1794 esac 1795 case $ac_pass in 1796 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1797 2) 1798 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1799 if test $ac_must_keep_next = true; then 1800 ac_must_keep_next=false # Got value, back to normal. 1801 else 1802 case $ac_arg in 1803 *=* | --config-cache | -C | -disable-* | --disable-* \ 1804 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1805 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1806 | -with-* | --with-* | -without-* | --without-* | --x) 1807 case "$ac_configure_args0 " in 1808 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1809 esac 1810 ;; 1811 -* ) ac_must_keep_next=true ;; 1812 esac 1813 fi 1814 ac_configure_args="$ac_configure_args '$ac_arg'" 1815 ;; 1816 esac 1817 done 1818done 1819$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1820$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1821 1822# When interrupted or exit'd, cleanup temporary files, and complete 1823# config.log. We remove comments because anyway the quotes in there 1824# would cause problems or look ugly. 1825# WARNING: Use '\'' to represent an apostrophe within the trap. 1826# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1827trap 'exit_status=$? 1828 # Save into config.log some information that might help in debugging. 1829 { 1830 echo 1831 1832 cat <<\_ASBOX 1833## ---------------- ## 1834## Cache variables. ## 1835## ---------------- ## 1836_ASBOX 1837 echo 1838 # The following way of writing the cache mishandles newlines in values, 1839( 1840 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1841 eval ac_val=\$$ac_var 1842 case $ac_val in #( 1843 *${as_nl}*) 1844 case $ac_var in #( 1845 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 1846$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1847 esac 1848 case $ac_var in #( 1849 _ | IFS | as_nl) ;; #( 1850 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1851 *) $as_unset $ac_var ;; 1852 esac ;; 1853 esac 1854 done 1855 (set) 2>&1 | 1856 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1857 *${as_nl}ac_space=\ *) 1858 sed -n \ 1859 "s/'\''/'\''\\\\'\'''\''/g; 1860 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1861 ;; #( 1862 *) 1863 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1864 ;; 1865 esac | 1866 sort 1867) 1868 echo 1869 1870 cat <<\_ASBOX 1871## ----------------- ## 1872## Output variables. ## 1873## ----------------- ## 1874_ASBOX 1875 echo 1876 for ac_var in $ac_subst_vars 1877 do 1878 eval ac_val=\$$ac_var 1879 case $ac_val in 1880 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1881 esac 1882 $as_echo "$ac_var='\''$ac_val'\''" 1883 done | sort 1884 echo 1885 1886 if test -n "$ac_subst_files"; then 1887 cat <<\_ASBOX 1888## ------------------- ## 1889## File substitutions. ## 1890## ------------------- ## 1891_ASBOX 1892 echo 1893 for ac_var in $ac_subst_files 1894 do 1895 eval ac_val=\$$ac_var 1896 case $ac_val in 1897 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1898 esac 1899 $as_echo "$ac_var='\''$ac_val'\''" 1900 done | sort 1901 echo 1902 fi 1903 1904 if test -s confdefs.h; then 1905 cat <<\_ASBOX 1906## ----------- ## 1907## confdefs.h. ## 1908## ----------- ## 1909_ASBOX 1910 echo 1911 cat confdefs.h 1912 echo 1913 fi 1914 test "$ac_signal" != 0 && 1915 $as_echo "$as_me: caught signal $ac_signal" 1916 $as_echo "$as_me: exit $exit_status" 1917 } >&5 1918 rm -f core *.core core.conftest.* && 1919 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1920 exit $exit_status 1921' 0 1922for ac_signal in 1 2 13 15; do 1923 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1924done 1925ac_signal=0 1926 1927# confdefs.h avoids OS command line length limits that DEFS can exceed. 1928rm -f -r conftest* confdefs.h 1929 1930# Predefined preprocessor variables. 1931 1932cat >>confdefs.h <<_ACEOF 1933#define PACKAGE_NAME "$PACKAGE_NAME" 1934_ACEOF 1935 1936 1937cat >>confdefs.h <<_ACEOF 1938#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1939_ACEOF 1940 1941 1942cat >>confdefs.h <<_ACEOF 1943#define PACKAGE_VERSION "$PACKAGE_VERSION" 1944_ACEOF 1945 1946 1947cat >>confdefs.h <<_ACEOF 1948#define PACKAGE_STRING "$PACKAGE_STRING" 1949_ACEOF 1950 1951 1952cat >>confdefs.h <<_ACEOF 1953#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1954_ACEOF 1955 1956 1957# Let the site file select an alternate cache file if it wants to. 1958# Prefer an explicitly selected file to automatically selected ones. 1959ac_site_file1=NONE 1960ac_site_file2=NONE 1961if test -n "$CONFIG_SITE"; then 1962 ac_site_file1=$CONFIG_SITE 1963elif test "x$prefix" != xNONE; then 1964 ac_site_file1=$prefix/share/config.site 1965 ac_site_file2=$prefix/etc/config.site 1966else 1967 ac_site_file1=$ac_default_prefix/share/config.site 1968 ac_site_file2=$ac_default_prefix/etc/config.site 1969fi 1970for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1971do 1972 test "x$ac_site_file" = xNONE && continue 1973 if test -r "$ac_site_file"; then 1974 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1975$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1976 sed 's/^/| /' "$ac_site_file" >&5 1977 . "$ac_site_file" 1978 fi 1979done 1980 1981if test -r "$cache_file"; then 1982 # Some versions of bash will fail to source /dev/null (special 1983 # files actually), so we avoid doing that. 1984 if test -f "$cache_file"; then 1985 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 1986$as_echo "$as_me: loading cache $cache_file" >&6;} 1987 case $cache_file in 1988 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1989 *) . "./$cache_file";; 1990 esac 1991 fi 1992else 1993 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 1994$as_echo "$as_me: creating cache $cache_file" >&6;} 1995 >$cache_file 1996fi 1997 1998# Check that the precious variables saved in the cache have kept the same 1999# value. 2000ac_cache_corrupted=false 2001for ac_var in $ac_precious_vars; do 2002 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2003 eval ac_new_set=\$ac_env_${ac_var}_set 2004 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2005 eval ac_new_val=\$ac_env_${ac_var}_value 2006 case $ac_old_set,$ac_new_set in 2007 set,) 2008 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2009$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2010 ac_cache_corrupted=: ;; 2011 ,set) 2012 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 2013$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2014 ac_cache_corrupted=: ;; 2015 ,);; 2016 *) 2017 if test "x$ac_old_val" != "x$ac_new_val"; then 2018 # differences in whitespace do not lead to failure. 2019 ac_old_val_w=`echo x $ac_old_val` 2020 ac_new_val_w=`echo x $ac_new_val` 2021 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2022 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 2023$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2024 ac_cache_corrupted=: 2025 else 2026 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2027$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2028 eval $ac_var=\$ac_old_val 2029 fi 2030 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 2031$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2032 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 2033$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2034 fi;; 2035 esac 2036 # Pass precious variables to config.status. 2037 if test "$ac_new_set" = set; then 2038 case $ac_new_val in 2039 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2040 *) ac_arg=$ac_var=$ac_new_val ;; 2041 esac 2042 case " $ac_configure_args " in 2043 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2044 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 2045 esac 2046 fi 2047done 2048if $ac_cache_corrupted; then 2049 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2050$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2051 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2052$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2053 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 2054$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 2055 { (exit 1); exit 1; }; } 2056fi 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082ac_ext=c 2083ac_cpp='$CPP $CPPFLAGS' 2084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2086ac_compiler_gnu=$ac_cv_c_compiler_gnu 2087 2088 2089 2090 2091ac_config_headers="$ac_config_headers config.h" 2092 2093ac_aux_dir= 2094for ac_dir in . "$srcdir"/.; do 2095 if test -f "$ac_dir/install-sh"; then 2096 ac_aux_dir=$ac_dir 2097 ac_install_sh="$ac_aux_dir/install-sh -c" 2098 break 2099 elif test -f "$ac_dir/install.sh"; then 2100 ac_aux_dir=$ac_dir 2101 ac_install_sh="$ac_aux_dir/install.sh -c" 2102 break 2103 elif test -f "$ac_dir/shtool"; then 2104 ac_aux_dir=$ac_dir 2105 ac_install_sh="$ac_aux_dir/shtool install -c" 2106 break 2107 fi 2108done 2109if test -z "$ac_aux_dir"; then 2110 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5 2111$as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;} 2112 { (exit 1); exit 1; }; } 2113fi 2114 2115# These three variables are undocumented and unsupported, 2116# and are intended to be withdrawn in a future Autoconf release. 2117# They can cause serious problems if a builder's source tree is in a directory 2118# whose full name contains unusual characters. 2119ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2120ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2121ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2122 2123 2124 2125am__api_version='1.11' 2126 2127# Find a good install program. We prefer a C program (faster), 2128# so one script is as good as another. But avoid the broken or 2129# incompatible versions: 2130# SysV /etc/install, /usr/sbin/install 2131# SunOS /usr/etc/install 2132# IRIX /sbin/install 2133# AIX /bin/install 2134# AmigaOS /C/install, which installs bootblocks on floppy discs 2135# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2136# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2137# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2138# OS/2's system install, which has a completely different semantic 2139# ./install, which can be erroneously created by make from ./install.sh. 2140# Reject install programs that cannot install multiple files. 2141{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2142$as_echo_n "checking for a BSD-compatible install... " >&6; } 2143if test -z "$INSTALL"; then 2144if test "${ac_cv_path_install+set}" = set; then 2145 $as_echo_n "(cached) " >&6 2146else 2147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2148for as_dir in $PATH 2149do 2150 IFS=$as_save_IFS 2151 test -z "$as_dir" && as_dir=. 2152 # Account for people who put trailing slashes in PATH elements. 2153case $as_dir/ in 2154 ./ | .// | /cC/* | \ 2155 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2156 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2157 /usr/ucb/* ) ;; 2158 *) 2159 # OSF1 and SCO ODT 3.0 have their own names for install. 2160 # Don't use installbsd from OSF since it installs stuff as root 2161 # by default. 2162 for ac_prog in ginstall scoinst install; do 2163 for ac_exec_ext in '' $ac_executable_extensions; do 2164 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2165 if test $ac_prog = install && 2166 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2167 # AIX install. It has an incompatible calling convention. 2168 : 2169 elif test $ac_prog = install && 2170 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2171 # program-specific install script used by HP pwplus--don't use. 2172 : 2173 else 2174 rm -rf conftest.one conftest.two conftest.dir 2175 echo one > conftest.one 2176 echo two > conftest.two 2177 mkdir conftest.dir 2178 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2179 test -s conftest.one && test -s conftest.two && 2180 test -s conftest.dir/conftest.one && 2181 test -s conftest.dir/conftest.two 2182 then 2183 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2184 break 3 2185 fi 2186 fi 2187 fi 2188 done 2189 done 2190 ;; 2191esac 2192 2193done 2194IFS=$as_save_IFS 2195 2196rm -rf conftest.one conftest.two conftest.dir 2197 2198fi 2199 if test "${ac_cv_path_install+set}" = set; then 2200 INSTALL=$ac_cv_path_install 2201 else 2202 # As a last resort, use the slow shell script. Don't cache a 2203 # value for INSTALL within a source directory, because that will 2204 # break other packages using the cache if that directory is 2205 # removed, or if the value is a relative name. 2206 INSTALL=$ac_install_sh 2207 fi 2208fi 2209{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 2210$as_echo "$INSTALL" >&6; } 2211 2212# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2213# It thinks the first close brace ends the variable substitution. 2214test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2215 2216test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2217 2218test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2219 2220{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2221$as_echo_n "checking whether build environment is sane... " >&6; } 2222# Just in case 2223sleep 1 2224echo timestamp > conftest.file 2225# Reject unsafe characters in $srcdir or the absolute working directory 2226# name. Accept space and tab only in the latter. 2227am_lf=' 2228' 2229case `pwd` in 2230 *[\\\"\#\$\&\'\`$am_lf]*) 2231 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5 2232$as_echo "$as_me: error: unsafe absolute working directory name" >&2;} 2233 { (exit 1); exit 1; }; };; 2234esac 2235case $srcdir in 2236 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2237 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5 2238$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;} 2239 { (exit 1); exit 1; }; };; 2240esac 2241 2242# Do `set' in a subshell so we don't clobber the current shell's 2243# arguments. Must try -L first in case configure is actually a 2244# symlink; some systems play weird games with the mod time of symlinks 2245# (eg FreeBSD returns the mod time of the symlink's containing 2246# directory). 2247if ( 2248 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2249 if test "$*" = "X"; then 2250 # -L didn't work. 2251 set X `ls -t "$srcdir/configure" conftest.file` 2252 fi 2253 rm -f conftest.file 2254 if test "$*" != "X $srcdir/configure conftest.file" \ 2255 && test "$*" != "X conftest.file $srcdir/configure"; then 2256 2257 # If neither matched, then we have a broken ls. This can happen 2258 # if, for instance, CONFIG_SHELL is bash and it inherits a 2259 # broken ls alias from the environment. This has actually 2260 # happened. Such a system could not be considered "sane". 2261 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2262alias in your environment" >&5 2263$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2264alias in your environment" >&2;} 2265 { (exit 1); exit 1; }; } 2266 fi 2267 2268 test "$2" = conftest.file 2269 ) 2270then 2271 # Ok. 2272 : 2273else 2274 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2275Check your system clock" >&5 2276$as_echo "$as_me: error: newly created file is older than distributed files! 2277Check your system clock" >&2;} 2278 { (exit 1); exit 1; }; } 2279fi 2280{ $as_echo "$as_me:$LINENO: result: yes" >&5 2281$as_echo "yes" >&6; } 2282test "$program_prefix" != NONE && 2283 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2284# Use a double $ so make ignores it. 2285test "$program_suffix" != NONE && 2286 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2287# Double any \ or $. 2288# By default was `s,x,x', remove it if useless. 2289ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2290program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2291 2292# expand $ac_aux_dir to an absolute path 2293am_aux_dir=`cd $ac_aux_dir && pwd` 2294 2295if test x"${MISSING+set}" != xset; then 2296 case $am_aux_dir in 2297 *\ * | *\ *) 2298 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2299 *) 2300 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2301 esac 2302fi 2303# Use eval to expand $SHELL 2304if eval "$MISSING --run true"; then 2305 am_missing_run="$MISSING --run " 2306else 2307 am_missing_run= 2308 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2309$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2310fi 2311 2312if test x"${install_sh}" != xset; then 2313 case $am_aux_dir in 2314 *\ * | *\ *) 2315 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2316 *) 2317 install_sh="\${SHELL} $am_aux_dir/install-sh" 2318 esac 2319fi 2320 2321# Installed binaries are usually stripped using `strip' when the user 2322# run `make install-strip'. However `strip' might not be the right 2323# tool to use in cross-compilation environments, therefore Automake 2324# will honor the `STRIP' environment variable to overrule this program. 2325if test "$cross_compiling" != no; then 2326 if test -n "$ac_tool_prefix"; then 2327 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2328set dummy ${ac_tool_prefix}strip; ac_word=$2 2329{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2330$as_echo_n "checking for $ac_word... " >&6; } 2331if test "${ac_cv_prog_STRIP+set}" = set; then 2332 $as_echo_n "(cached) " >&6 2333else 2334 if test -n "$STRIP"; then 2335 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2336else 2337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2338for as_dir in $PATH 2339do 2340 IFS=$as_save_IFS 2341 test -z "$as_dir" && as_dir=. 2342 for ac_exec_ext in '' $ac_executable_extensions; do 2343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2344 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2345 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2346 break 2 2347 fi 2348done 2349done 2350IFS=$as_save_IFS 2351 2352fi 2353fi 2354STRIP=$ac_cv_prog_STRIP 2355if test -n "$STRIP"; then 2356 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 2357$as_echo "$STRIP" >&6; } 2358else 2359 { $as_echo "$as_me:$LINENO: result: no" >&5 2360$as_echo "no" >&6; } 2361fi 2362 2363 2364fi 2365if test -z "$ac_cv_prog_STRIP"; then 2366 ac_ct_STRIP=$STRIP 2367 # Extract the first word of "strip", so it can be a program name with args. 2368set dummy strip; ac_word=$2 2369{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2370$as_echo_n "checking for $ac_word... " >&6; } 2371if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2372 $as_echo_n "(cached) " >&6 2373else 2374 if test -n "$ac_ct_STRIP"; then 2375 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2376else 2377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2378for as_dir in $PATH 2379do 2380 IFS=$as_save_IFS 2381 test -z "$as_dir" && as_dir=. 2382 for ac_exec_ext in '' $ac_executable_extensions; do 2383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2384 ac_cv_prog_ac_ct_STRIP="strip" 2385 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2386 break 2 2387 fi 2388done 2389done 2390IFS=$as_save_IFS 2391 2392fi 2393fi 2394ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2395if test -n "$ac_ct_STRIP"; then 2396 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2397$as_echo "$ac_ct_STRIP" >&6; } 2398else 2399 { $as_echo "$as_me:$LINENO: result: no" >&5 2400$as_echo "no" >&6; } 2401fi 2402 2403 if test "x$ac_ct_STRIP" = x; then 2404 STRIP=":" 2405 else 2406 case $cross_compiling:$ac_tool_warned in 2407yes:) 2408{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2409$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2410ac_tool_warned=yes ;; 2411esac 2412 STRIP=$ac_ct_STRIP 2413 fi 2414else 2415 STRIP="$ac_cv_prog_STRIP" 2416fi 2417 2418fi 2419INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2420 2421{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2422$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2423if test -z "$MKDIR_P"; then 2424 if test "${ac_cv_path_mkdir+set}" = set; then 2425 $as_echo_n "(cached) " >&6 2426else 2427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2428for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2429do 2430 IFS=$as_save_IFS 2431 test -z "$as_dir" && as_dir=. 2432 for ac_prog in mkdir gmkdir; do 2433 for ac_exec_ext in '' $ac_executable_extensions; do 2434 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2435 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2436 'mkdir (GNU coreutils) '* | \ 2437 'mkdir (coreutils) '* | \ 2438 'mkdir (fileutils) '4.1*) 2439 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2440 break 3;; 2441 esac 2442 done 2443 done 2444done 2445IFS=$as_save_IFS 2446 2447fi 2448 2449 if test "${ac_cv_path_mkdir+set}" = set; then 2450 MKDIR_P="$ac_cv_path_mkdir -p" 2451 else 2452 # As a last resort, use the slow shell script. Don't cache a 2453 # value for MKDIR_P within a source directory, because that will 2454 # break other packages using the cache if that directory is 2455 # removed, or if the value is a relative name. 2456 test -d ./--version && rmdir ./--version 2457 MKDIR_P="$ac_install_sh -d" 2458 fi 2459fi 2460{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2461$as_echo "$MKDIR_P" >&6; } 2462 2463mkdir_p="$MKDIR_P" 2464case $mkdir_p in 2465 [\\/$]* | ?:[\\/]*) ;; 2466 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2467esac 2468 2469for ac_prog in gawk mawk nawk awk 2470do 2471 # Extract the first word of "$ac_prog", so it can be a program name with args. 2472set dummy $ac_prog; ac_word=$2 2473{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2474$as_echo_n "checking for $ac_word... " >&6; } 2475if test "${ac_cv_prog_AWK+set}" = set; then 2476 $as_echo_n "(cached) " >&6 2477else 2478 if test -n "$AWK"; then 2479 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2480else 2481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2482for as_dir in $PATH 2483do 2484 IFS=$as_save_IFS 2485 test -z "$as_dir" && as_dir=. 2486 for ac_exec_ext in '' $ac_executable_extensions; do 2487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2488 ac_cv_prog_AWK="$ac_prog" 2489 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2490 break 2 2491 fi 2492done 2493done 2494IFS=$as_save_IFS 2495 2496fi 2497fi 2498AWK=$ac_cv_prog_AWK 2499if test -n "$AWK"; then 2500 { $as_echo "$as_me:$LINENO: result: $AWK" >&5 2501$as_echo "$AWK" >&6; } 2502else 2503 { $as_echo "$as_me:$LINENO: result: no" >&5 2504$as_echo "no" >&6; } 2505fi 2506 2507 2508 test -n "$AWK" && break 2509done 2510 2511{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2512$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2513set x ${MAKE-make} 2514ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2515if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2516 $as_echo_n "(cached) " >&6 2517else 2518 cat >conftest.make <<\_ACEOF 2519SHELL = /bin/sh 2520all: 2521 @echo '@@@%%%=$(MAKE)=@@@%%%' 2522_ACEOF 2523# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2524case `${MAKE-make} -f conftest.make 2>/dev/null` in 2525 *@@@%%%=?*=@@@%%%*) 2526 eval ac_cv_prog_make_${ac_make}_set=yes;; 2527 *) 2528 eval ac_cv_prog_make_${ac_make}_set=no;; 2529esac 2530rm -f conftest.make 2531fi 2532if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2533 { $as_echo "$as_me:$LINENO: result: yes" >&5 2534$as_echo "yes" >&6; } 2535 SET_MAKE= 2536else 2537 { $as_echo "$as_me:$LINENO: result: no" >&5 2538$as_echo "no" >&6; } 2539 SET_MAKE="MAKE=${MAKE-make}" 2540fi 2541 2542rm -rf .tst 2>/dev/null 2543mkdir .tst 2>/dev/null 2544if test -d .tst; then 2545 am__leading_dot=. 2546else 2547 am__leading_dot=_ 2548fi 2549rmdir .tst 2>/dev/null 2550 2551if test "`cd $srcdir && pwd`" != "`pwd`"; then 2552 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2553 # is not polluted with repeated "-I." 2554 am__isrc=' -I$(srcdir)' 2555 # test to see if srcdir already configured 2556 if test -f $srcdir/config.status; then 2557 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2558$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2559 { (exit 1); exit 1; }; } 2560 fi 2561fi 2562 2563# test whether we have cygpath 2564if test -z "$CYGPATH_W"; then 2565 if (cygpath --version) >/dev/null 2>/dev/null; then 2566 CYGPATH_W='cygpath -w' 2567 else 2568 CYGPATH_W=echo 2569 fi 2570fi 2571 2572 2573# Define the identity of the package. 2574 PACKAGE='xf86-video-cirrus' 2575 VERSION='1.3.2' 2576 2577 2578cat >>confdefs.h <<_ACEOF 2579#define PACKAGE "$PACKAGE" 2580_ACEOF 2581 2582 2583cat >>confdefs.h <<_ACEOF 2584#define VERSION "$VERSION" 2585_ACEOF 2586 2587# Some tools Automake needs. 2588 2589ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2590 2591 2592AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2593 2594 2595AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2596 2597 2598AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2599 2600 2601MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2602 2603# We need awk for the "check" target. The system "awk" is bad on 2604# some platforms. 2605# Always define AMTAR for backward compatibility. 2606 2607AMTAR=${AMTAR-"${am_missing_run}tar"} 2608 2609am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2610 2611 2612 2613 2614 2615 2616 2617{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 2618$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2619 # Check whether --enable-maintainer-mode was given. 2620if test "${enable_maintainer_mode+set}" = set; then 2621 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2622else 2623 USE_MAINTAINER_MODE=no 2624fi 2625 2626 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 2627$as_echo "$USE_MAINTAINER_MODE" >&6; } 2628 if test $USE_MAINTAINER_MODE = yes; then 2629 MAINTAINER_MODE_TRUE= 2630 MAINTAINER_MODE_FALSE='#' 2631else 2632 MAINTAINER_MODE_TRUE='#' 2633 MAINTAINER_MODE_FALSE= 2634fi 2635 2636 MAINT=$MAINTAINER_MODE_TRUE 2637 2638 2639 2640# Require xorg-macros: XORG_CWARNFLAGS, XORG_CHANGELOG 2641 2642 2643 XORG_MACROS_needed_version=1.2 2644 XORG_MACROS_needed_major=`echo $XORG_MACROS_needed_version | sed 's/\..*$//'` 2645 XORG_MACROS_needed_minor=`echo $XORG_MACROS_needed_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'` 2646 { $as_echo "$as_me:$LINENO: checking if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}" >&5 2647$as_echo_n "checking if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}... " >&6; } 2648 XORG_MACROS_version=1.2.1 2649 XORG_MACROS_major=`echo $XORG_MACROS_version | sed 's/\..*$//'` 2650 XORG_MACROS_minor=`echo $XORG_MACROS_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'` 2651 if test $XORG_MACROS_major -ne $XORG_MACROS_needed_major ; then 2652 { { $as_echo "$as_me:$LINENO: error: configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x" >&5 2653$as_echo "$as_me: error: configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x" >&2;} 2654 { (exit 1); exit 1; }; } 2655 fi 2656 if test $XORG_MACROS_minor -lt $XORG_MACROS_needed_minor ; then 2657 { { $as_echo "$as_me:$LINENO: error: configure built with too old of a version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.${XORG_MACROS_minor}.0 or newer" >&5 2658$as_echo "$as_me: error: configure built with too old of a version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.${XORG_MACROS_minor}.0 or newer" >&2;} 2659 { (exit 1); exit 1; }; } 2660 fi 2661 { $as_echo "$as_me:$LINENO: result: yes, $XORG_MACROS_version" >&5 2662$as_echo "yes, $XORG_MACROS_version" >&6; } 2663 2664 2665# Checks for programs. 2666# Check whether --enable-static was given. 2667if test "${enable_static+set}" = set; then 2668 enableval=$enable_static; p=${PACKAGE-default} 2669 case $enableval in 2670 yes) enable_static=yes ;; 2671 no) enable_static=no ;; 2672 *) 2673 enable_static=no 2674 # Look at the argument we got. We use all the common list separators. 2675 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2676 for pkg in $enableval; do 2677 IFS="$lt_save_ifs" 2678 if test "X$pkg" = "X$p"; then 2679 enable_static=yes 2680 fi 2681 done 2682 IFS="$lt_save_ifs" 2683 ;; 2684 esac 2685else 2686 enable_static=no 2687fi 2688 2689 2690 2691# Check whether --enable-shared was given. 2692if test "${enable_shared+set}" = set; then 2693 enableval=$enable_shared; p=${PACKAGE-default} 2694 case $enableval in 2695 yes) enable_shared=yes ;; 2696 no) enable_shared=no ;; 2697 *) 2698 enable_shared=no 2699 # Look at the argument we got. We use all the common list separators. 2700 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2701 for pkg in $enableval; do 2702 IFS="$lt_save_ifs" 2703 if test "X$pkg" = "X$p"; then 2704 enable_shared=yes 2705 fi 2706 done 2707 IFS="$lt_save_ifs" 2708 ;; 2709 esac 2710else 2711 enable_shared=yes 2712fi 2713 2714 2715# Check whether --enable-fast-install was given. 2716if test "${enable_fast_install+set}" = set; then 2717 enableval=$enable_fast_install; p=${PACKAGE-default} 2718 case $enableval in 2719 yes) enable_fast_install=yes ;; 2720 no) enable_fast_install=no ;; 2721 *) 2722 enable_fast_install=no 2723 # Look at the argument we got. We use all the common list separators. 2724 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2725 for pkg in $enableval; do 2726 IFS="$lt_save_ifs" 2727 if test "X$pkg" = "X$p"; then 2728 enable_fast_install=yes 2729 fi 2730 done 2731 IFS="$lt_save_ifs" 2732 ;; 2733 esac 2734else 2735 enable_fast_install=yes 2736fi 2737 2738 2739# Make sure we can run config.sub. 2740$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2741 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 2742$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 2743 { (exit 1); exit 1; }; } 2744 2745{ $as_echo "$as_me:$LINENO: checking build system type" >&5 2746$as_echo_n "checking build system type... " >&6; } 2747if test "${ac_cv_build+set}" = set; then 2748 $as_echo_n "(cached) " >&6 2749else 2750 ac_build_alias=$build_alias 2751test "x$ac_build_alias" = x && 2752 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2753test "x$ac_build_alias" = x && 2754 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2755$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2756 { (exit 1); exit 1; }; } 2757ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2758 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 2759$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2760 { (exit 1); exit 1; }; } 2761 2762fi 2763{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2764$as_echo "$ac_cv_build" >&6; } 2765case $ac_cv_build in 2766*-*-*) ;; 2767*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2768$as_echo "$as_me: error: invalid value of canonical build" >&2;} 2769 { (exit 1); exit 1; }; };; 2770esac 2771build=$ac_cv_build 2772ac_save_IFS=$IFS; IFS='-' 2773set x $ac_cv_build 2774shift 2775build_cpu=$1 2776build_vendor=$2 2777shift; shift 2778# Remember, the first character of IFS is used to create $*, 2779# except with old shells: 2780build_os=$* 2781IFS=$ac_save_IFS 2782case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2783 2784 2785{ $as_echo "$as_me:$LINENO: checking host system type" >&5 2786$as_echo_n "checking host system type... " >&6; } 2787if test "${ac_cv_host+set}" = set; then 2788 $as_echo_n "(cached) " >&6 2789else 2790 if test "x$host_alias" = x; then 2791 ac_cv_host=$ac_cv_build 2792else 2793 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2794 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2795$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2796 { (exit 1); exit 1; }; } 2797fi 2798 2799fi 2800{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2801$as_echo "$ac_cv_host" >&6; } 2802case $ac_cv_host in 2803*-*-*) ;; 2804*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2805$as_echo "$as_me: error: invalid value of canonical host" >&2;} 2806 { (exit 1); exit 1; }; };; 2807esac 2808host=$ac_cv_host 2809ac_save_IFS=$IFS; IFS='-' 2810set x $ac_cv_host 2811shift 2812host_cpu=$1 2813host_vendor=$2 2814shift; shift 2815# Remember, the first character of IFS is used to create $*, 2816# except with old shells: 2817host_os=$* 2818IFS=$ac_save_IFS 2819case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2820 2821 2822DEPDIR="${am__leading_dot}deps" 2823 2824ac_config_commands="$ac_config_commands depfiles" 2825 2826 2827am_make=${MAKE-make} 2828cat > confinc << 'END' 2829am__doit: 2830 @echo this is the am__doit target 2831.PHONY: am__doit 2832END 2833# If we don't find an include directive, just comment out the code. 2834{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2835$as_echo_n "checking for style of include used by $am_make... " >&6; } 2836am__include="#" 2837am__quote= 2838_am_result=none 2839# First try GNU make style include. 2840echo "include confinc" > confmf 2841# Ignore all kinds of additional output from `make'. 2842case `$am_make -s -f confmf 2> /dev/null` in #( 2843*the\ am__doit\ target*) 2844 am__include=include 2845 am__quote= 2846 _am_result=GNU 2847 ;; 2848esac 2849# Now try BSD make style include. 2850if test "$am__include" = "#"; then 2851 echo '.include "confinc"' > confmf 2852 case `$am_make -s -f confmf 2> /dev/null` in #( 2853 *the\ am__doit\ target*) 2854 am__include=.include 2855 am__quote="\"" 2856 _am_result=BSD 2857 ;; 2858 esac 2859fi 2860 2861 2862{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5 2863$as_echo "$_am_result" >&6; } 2864rm -f confinc confmf 2865 2866# Check whether --enable-dependency-tracking was given. 2867if test "${enable_dependency_tracking+set}" = set; then 2868 enableval=$enable_dependency_tracking; 2869fi 2870 2871if test "x$enable_dependency_tracking" != xno; then 2872 am_depcomp="$ac_aux_dir/depcomp" 2873 AMDEPBACKSLASH='\' 2874fi 2875 if test "x$enable_dependency_tracking" != xno; then 2876 AMDEP_TRUE= 2877 AMDEP_FALSE='#' 2878else 2879 AMDEP_TRUE='#' 2880 AMDEP_FALSE= 2881fi 2882 2883 2884ac_ext=c 2885ac_cpp='$CPP $CPPFLAGS' 2886ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2887ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2888ac_compiler_gnu=$ac_cv_c_compiler_gnu 2889if test -n "$ac_tool_prefix"; then 2890 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2891set dummy ${ac_tool_prefix}gcc; ac_word=$2 2892{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2893$as_echo_n "checking for $ac_word... " >&6; } 2894if test "${ac_cv_prog_CC+set}" = set; then 2895 $as_echo_n "(cached) " >&6 2896else 2897 if test -n "$CC"; then 2898 ac_cv_prog_CC="$CC" # Let the user override the test. 2899else 2900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2901for as_dir in $PATH 2902do 2903 IFS=$as_save_IFS 2904 test -z "$as_dir" && as_dir=. 2905 for ac_exec_ext in '' $ac_executable_extensions; do 2906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2907 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2908 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2909 break 2 2910 fi 2911done 2912done 2913IFS=$as_save_IFS 2914 2915fi 2916fi 2917CC=$ac_cv_prog_CC 2918if test -n "$CC"; then 2919 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2920$as_echo "$CC" >&6; } 2921else 2922 { $as_echo "$as_me:$LINENO: result: no" >&5 2923$as_echo "no" >&6; } 2924fi 2925 2926 2927fi 2928if test -z "$ac_cv_prog_CC"; then 2929 ac_ct_CC=$CC 2930 # Extract the first word of "gcc", so it can be a program name with args. 2931set dummy gcc; ac_word=$2 2932{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2933$as_echo_n "checking for $ac_word... " >&6; } 2934if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2935 $as_echo_n "(cached) " >&6 2936else 2937 if test -n "$ac_ct_CC"; then 2938 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2939else 2940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2941for as_dir in $PATH 2942do 2943 IFS=$as_save_IFS 2944 test -z "$as_dir" && as_dir=. 2945 for ac_exec_ext in '' $ac_executable_extensions; do 2946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2947 ac_cv_prog_ac_ct_CC="gcc" 2948 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2949 break 2 2950 fi 2951done 2952done 2953IFS=$as_save_IFS 2954 2955fi 2956fi 2957ac_ct_CC=$ac_cv_prog_ac_ct_CC 2958if test -n "$ac_ct_CC"; then 2959 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2960$as_echo "$ac_ct_CC" >&6; } 2961else 2962 { $as_echo "$as_me:$LINENO: result: no" >&5 2963$as_echo "no" >&6; } 2964fi 2965 2966 if test "x$ac_ct_CC" = x; then 2967 CC="" 2968 else 2969 case $cross_compiling:$ac_tool_warned in 2970yes:) 2971{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2972$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2973ac_tool_warned=yes ;; 2974esac 2975 CC=$ac_ct_CC 2976 fi 2977else 2978 CC="$ac_cv_prog_CC" 2979fi 2980 2981if test -z "$CC"; then 2982 if test -n "$ac_tool_prefix"; then 2983 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2984set dummy ${ac_tool_prefix}cc; ac_word=$2 2985{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2986$as_echo_n "checking for $ac_word... " >&6; } 2987if test "${ac_cv_prog_CC+set}" = set; then 2988 $as_echo_n "(cached) " >&6 2989else 2990 if test -n "$CC"; then 2991 ac_cv_prog_CC="$CC" # Let the user override the test. 2992else 2993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2994for as_dir in $PATH 2995do 2996 IFS=$as_save_IFS 2997 test -z "$as_dir" && as_dir=. 2998 for ac_exec_ext in '' $ac_executable_extensions; do 2999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3000 ac_cv_prog_CC="${ac_tool_prefix}cc" 3001 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3002 break 2 3003 fi 3004done 3005done 3006IFS=$as_save_IFS 3007 3008fi 3009fi 3010CC=$ac_cv_prog_CC 3011if test -n "$CC"; then 3012 { $as_echo "$as_me:$LINENO: result: $CC" >&5 3013$as_echo "$CC" >&6; } 3014else 3015 { $as_echo "$as_me:$LINENO: result: no" >&5 3016$as_echo "no" >&6; } 3017fi 3018 3019 3020 fi 3021fi 3022if test -z "$CC"; then 3023 # Extract the first word of "cc", so it can be a program name with args. 3024set dummy cc; ac_word=$2 3025{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3026$as_echo_n "checking for $ac_word... " >&6; } 3027if test "${ac_cv_prog_CC+set}" = set; then 3028 $as_echo_n "(cached) " >&6 3029else 3030 if test -n "$CC"; then 3031 ac_cv_prog_CC="$CC" # Let the user override the test. 3032else 3033 ac_prog_rejected=no 3034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3035for as_dir in $PATH 3036do 3037 IFS=$as_save_IFS 3038 test -z "$as_dir" && as_dir=. 3039 for ac_exec_ext in '' $ac_executable_extensions; do 3040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3041 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3042 ac_prog_rejected=yes 3043 continue 3044 fi 3045 ac_cv_prog_CC="cc" 3046 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3047 break 2 3048 fi 3049done 3050done 3051IFS=$as_save_IFS 3052 3053if test $ac_prog_rejected = yes; then 3054 # We found a bogon in the path, so make sure we never use it. 3055 set dummy $ac_cv_prog_CC 3056 shift 3057 if test $# != 0; then 3058 # We chose a different compiler from the bogus one. 3059 # However, it has the same basename, so the bogon will be chosen 3060 # first if we set CC to just the basename; use the full file name. 3061 shift 3062 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3063 fi 3064fi 3065fi 3066fi 3067CC=$ac_cv_prog_CC 3068if test -n "$CC"; then 3069 { $as_echo "$as_me:$LINENO: result: $CC" >&5 3070$as_echo "$CC" >&6; } 3071else 3072 { $as_echo "$as_me:$LINENO: result: no" >&5 3073$as_echo "no" >&6; } 3074fi 3075 3076 3077fi 3078if test -z "$CC"; then 3079 if test -n "$ac_tool_prefix"; then 3080 for ac_prog in cl.exe 3081 do 3082 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3083set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3084{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3085$as_echo_n "checking for $ac_word... " >&6; } 3086if test "${ac_cv_prog_CC+set}" = set; then 3087 $as_echo_n "(cached) " >&6 3088else 3089 if test -n "$CC"; then 3090 ac_cv_prog_CC="$CC" # Let the user override the test. 3091else 3092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3093for as_dir in $PATH 3094do 3095 IFS=$as_save_IFS 3096 test -z "$as_dir" && as_dir=. 3097 for ac_exec_ext in '' $ac_executable_extensions; do 3098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3099 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3100 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3101 break 2 3102 fi 3103done 3104done 3105IFS=$as_save_IFS 3106 3107fi 3108fi 3109CC=$ac_cv_prog_CC 3110if test -n "$CC"; then 3111 { $as_echo "$as_me:$LINENO: result: $CC" >&5 3112$as_echo "$CC" >&6; } 3113else 3114 { $as_echo "$as_me:$LINENO: result: no" >&5 3115$as_echo "no" >&6; } 3116fi 3117 3118 3119 test -n "$CC" && break 3120 done 3121fi 3122if test -z "$CC"; then 3123 ac_ct_CC=$CC 3124 for ac_prog in cl.exe 3125do 3126 # Extract the first word of "$ac_prog", so it can be a program name with args. 3127set dummy $ac_prog; ac_word=$2 3128{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3129$as_echo_n "checking for $ac_word... " >&6; } 3130if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3131 $as_echo_n "(cached) " >&6 3132else 3133 if test -n "$ac_ct_CC"; then 3134 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3135else 3136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3137for as_dir in $PATH 3138do 3139 IFS=$as_save_IFS 3140 test -z "$as_dir" && as_dir=. 3141 for ac_exec_ext in '' $ac_executable_extensions; do 3142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3143 ac_cv_prog_ac_ct_CC="$ac_prog" 3144 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3145 break 2 3146 fi 3147done 3148done 3149IFS=$as_save_IFS 3150 3151fi 3152fi 3153ac_ct_CC=$ac_cv_prog_ac_ct_CC 3154if test -n "$ac_ct_CC"; then 3155 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3156$as_echo "$ac_ct_CC" >&6; } 3157else 3158 { $as_echo "$as_me:$LINENO: result: no" >&5 3159$as_echo "no" >&6; } 3160fi 3161 3162 3163 test -n "$ac_ct_CC" && break 3164done 3165 3166 if test "x$ac_ct_CC" = x; then 3167 CC="" 3168 else 3169 case $cross_compiling:$ac_tool_warned in 3170yes:) 3171{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 3172$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3173ac_tool_warned=yes ;; 3174esac 3175 CC=$ac_ct_CC 3176 fi 3177fi 3178 3179fi 3180 3181 3182test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3183$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3184{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 3185See \`config.log' for more details." >&5 3186$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 3187See \`config.log' for more details." >&2;} 3188 { (exit 1); exit 1; }; }; } 3189 3190# Provide some information about the compiler. 3191$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 3192set X $ac_compile 3193ac_compiler=$2 3194{ (ac_try="$ac_compiler --version >&5" 3195case "(($ac_try" in 3196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3197 *) ac_try_echo=$ac_try;; 3198esac 3199eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3200$as_echo "$ac_try_echo") >&5 3201 (eval "$ac_compiler --version >&5") 2>&5 3202 ac_status=$? 3203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3204 (exit $ac_status); } 3205{ (ac_try="$ac_compiler -v >&5" 3206case "(($ac_try" in 3207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3208 *) ac_try_echo=$ac_try;; 3209esac 3210eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3211$as_echo "$ac_try_echo") >&5 3212 (eval "$ac_compiler -v >&5") 2>&5 3213 ac_status=$? 3214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3215 (exit $ac_status); } 3216{ (ac_try="$ac_compiler -V >&5" 3217case "(($ac_try" in 3218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3219 *) ac_try_echo=$ac_try;; 3220esac 3221eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3222$as_echo "$ac_try_echo") >&5 3223 (eval "$ac_compiler -V >&5") 2>&5 3224 ac_status=$? 3225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3226 (exit $ac_status); } 3227 3228cat >conftest.$ac_ext <<_ACEOF 3229/* confdefs.h. */ 3230_ACEOF 3231cat confdefs.h >>conftest.$ac_ext 3232cat >>conftest.$ac_ext <<_ACEOF 3233/* end confdefs.h. */ 3234 3235int 3236main () 3237{ 3238 3239 ; 3240 return 0; 3241} 3242_ACEOF 3243ac_clean_files_save=$ac_clean_files 3244ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3245# Try to create an executable without -o first, disregard a.out. 3246# It will help us diagnose broken compilers, and finding out an intuition 3247# of exeext. 3248{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 3249$as_echo_n "checking for C compiler default output file name... " >&6; } 3250ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3251 3252# The possible output files: 3253ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3254 3255ac_rmfiles= 3256for ac_file in $ac_files 3257do 3258 case $ac_file in 3259 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3260 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3261 esac 3262done 3263rm -f $ac_rmfiles 3264 3265if { (ac_try="$ac_link_default" 3266case "(($ac_try" in 3267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3268 *) ac_try_echo=$ac_try;; 3269esac 3270eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3271$as_echo "$ac_try_echo") >&5 3272 (eval "$ac_link_default") 2>&5 3273 ac_status=$? 3274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3275 (exit $ac_status); }; then 3276 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3277# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3278# in a Makefile. We should not override ac_cv_exeext if it was cached, 3279# so that the user can short-circuit this test for compilers unknown to 3280# Autoconf. 3281for ac_file in $ac_files '' 3282do 3283 test -f "$ac_file" || continue 3284 case $ac_file in 3285 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3286 ;; 3287 [ab].out ) 3288 # We found the default executable, but exeext='' is most 3289 # certainly right. 3290 break;; 3291 *.* ) 3292 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3293 then :; else 3294 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3295 fi 3296 # We set ac_cv_exeext here because the later test for it is not 3297 # safe: cross compilers may not add the suffix if given an `-o' 3298 # argument, so we may need to know it at that point already. 3299 # Even if this section looks crufty: it has the advantage of 3300 # actually working. 3301 break;; 3302 * ) 3303 break;; 3304 esac 3305done 3306test "$ac_cv_exeext" = no && ac_cv_exeext= 3307 3308else 3309 ac_file='' 3310fi 3311 3312{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 3313$as_echo "$ac_file" >&6; } 3314if test -z "$ac_file"; then 3315 $as_echo "$as_me: failed program was:" >&5 3316sed 's/^/| /' conftest.$ac_ext >&5 3317 3318{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3319$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3320{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 3321See \`config.log' for more details." >&5 3322$as_echo "$as_me: error: C compiler cannot create executables 3323See \`config.log' for more details." >&2;} 3324 { (exit 77); exit 77; }; }; } 3325fi 3326 3327ac_exeext=$ac_cv_exeext 3328 3329# Check that the compiler produces executables we can run. If not, either 3330# the compiler is broken, or we cross compile. 3331{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3332$as_echo_n "checking whether the C compiler works... " >&6; } 3333# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3334# If not cross compiling, check that we can run a simple program. 3335if test "$cross_compiling" != yes; then 3336 if { ac_try='./$ac_file' 3337 { (case "(($ac_try" in 3338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3339 *) ac_try_echo=$ac_try;; 3340esac 3341eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3342$as_echo "$ac_try_echo") >&5 3343 (eval "$ac_try") 2>&5 3344 ac_status=$? 3345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3346 (exit $ac_status); }; }; then 3347 cross_compiling=no 3348 else 3349 if test "$cross_compiling" = maybe; then 3350 cross_compiling=yes 3351 else 3352 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3353$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3354{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 3355If you meant to cross compile, use \`--host'. 3356See \`config.log' for more details." >&5 3357$as_echo "$as_me: error: cannot run C compiled programs. 3358If you meant to cross compile, use \`--host'. 3359See \`config.log' for more details." >&2;} 3360 { (exit 1); exit 1; }; }; } 3361 fi 3362 fi 3363fi 3364{ $as_echo "$as_me:$LINENO: result: yes" >&5 3365$as_echo "yes" >&6; } 3366 3367rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3368ac_clean_files=$ac_clean_files_save 3369# Check that the compiler produces executables we can run. If not, either 3370# the compiler is broken, or we cross compile. 3371{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3372$as_echo_n "checking whether we are cross compiling... " >&6; } 3373{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 3374$as_echo "$cross_compiling" >&6; } 3375 3376{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 3377$as_echo_n "checking for suffix of executables... " >&6; } 3378if { (ac_try="$ac_link" 3379case "(($ac_try" in 3380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3381 *) ac_try_echo=$ac_try;; 3382esac 3383eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3384$as_echo "$ac_try_echo") >&5 3385 (eval "$ac_link") 2>&5 3386 ac_status=$? 3387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3388 (exit $ac_status); }; then 3389 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3390# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3391# work properly (i.e., refer to `conftest.exe'), while it won't with 3392# `rm'. 3393for ac_file in conftest.exe conftest conftest.*; do 3394 test -f "$ac_file" || continue 3395 case $ac_file in 3396 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3397 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3398 break;; 3399 * ) break;; 3400 esac 3401done 3402else 3403 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3404$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3405{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3406See \`config.log' for more details." >&5 3407$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3408See \`config.log' for more details." >&2;} 3409 { (exit 1); exit 1; }; }; } 3410fi 3411 3412rm -f conftest$ac_cv_exeext 3413{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3414$as_echo "$ac_cv_exeext" >&6; } 3415 3416rm -f conftest.$ac_ext 3417EXEEXT=$ac_cv_exeext 3418ac_exeext=$EXEEXT 3419{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 3420$as_echo_n "checking for suffix of object files... " >&6; } 3421if test "${ac_cv_objext+set}" = set; then 3422 $as_echo_n "(cached) " >&6 3423else 3424 cat >conftest.$ac_ext <<_ACEOF 3425/* confdefs.h. */ 3426_ACEOF 3427cat confdefs.h >>conftest.$ac_ext 3428cat >>conftest.$ac_ext <<_ACEOF 3429/* end confdefs.h. */ 3430 3431int 3432main () 3433{ 3434 3435 ; 3436 return 0; 3437} 3438_ACEOF 3439rm -f conftest.o conftest.obj 3440if { (ac_try="$ac_compile" 3441case "(($ac_try" in 3442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3443 *) ac_try_echo=$ac_try;; 3444esac 3445eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3446$as_echo "$ac_try_echo") >&5 3447 (eval "$ac_compile") 2>&5 3448 ac_status=$? 3449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3450 (exit $ac_status); }; then 3451 for ac_file in conftest.o conftest.obj conftest.*; do 3452 test -f "$ac_file" || continue; 3453 case $ac_file in 3454 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3455 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3456 break;; 3457 esac 3458done 3459else 3460 $as_echo "$as_me: failed program was:" >&5 3461sed 's/^/| /' conftest.$ac_ext >&5 3462 3463{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3464$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3465{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3466See \`config.log' for more details." >&5 3467$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 3468See \`config.log' for more details." >&2;} 3469 { (exit 1); exit 1; }; }; } 3470fi 3471 3472rm -f conftest.$ac_cv_objext conftest.$ac_ext 3473fi 3474{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3475$as_echo "$ac_cv_objext" >&6; } 3476OBJEXT=$ac_cv_objext 3477ac_objext=$OBJEXT 3478{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3479$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3480if test "${ac_cv_c_compiler_gnu+set}" = set; then 3481 $as_echo_n "(cached) " >&6 3482else 3483 cat >conftest.$ac_ext <<_ACEOF 3484/* confdefs.h. */ 3485_ACEOF 3486cat confdefs.h >>conftest.$ac_ext 3487cat >>conftest.$ac_ext <<_ACEOF 3488/* end confdefs.h. */ 3489 3490int 3491main () 3492{ 3493#ifndef __GNUC__ 3494 choke me 3495#endif 3496 3497 ; 3498 return 0; 3499} 3500_ACEOF 3501rm -f conftest.$ac_objext 3502if { (ac_try="$ac_compile" 3503case "(($ac_try" in 3504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3505 *) ac_try_echo=$ac_try;; 3506esac 3507eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3508$as_echo "$ac_try_echo") >&5 3509 (eval "$ac_compile") 2>conftest.er1 3510 ac_status=$? 3511 grep -v '^ *+' conftest.er1 >conftest.err 3512 rm -f conftest.er1 3513 cat conftest.err >&5 3514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3515 (exit $ac_status); } && { 3516 test -z "$ac_c_werror_flag" || 3517 test ! -s conftest.err 3518 } && test -s conftest.$ac_objext; then 3519 ac_compiler_gnu=yes 3520else 3521 $as_echo "$as_me: failed program was:" >&5 3522sed 's/^/| /' conftest.$ac_ext >&5 3523 3524 ac_compiler_gnu=no 3525fi 3526 3527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3528ac_cv_c_compiler_gnu=$ac_compiler_gnu 3529 3530fi 3531{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3532$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3533if test $ac_compiler_gnu = yes; then 3534 GCC=yes 3535else 3536 GCC= 3537fi 3538ac_test_CFLAGS=${CFLAGS+set} 3539ac_save_CFLAGS=$CFLAGS 3540{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3541$as_echo_n "checking whether $CC accepts -g... " >&6; } 3542if test "${ac_cv_prog_cc_g+set}" = set; then 3543 $as_echo_n "(cached) " >&6 3544else 3545 ac_save_c_werror_flag=$ac_c_werror_flag 3546 ac_c_werror_flag=yes 3547 ac_cv_prog_cc_g=no 3548 CFLAGS="-g" 3549 cat >conftest.$ac_ext <<_ACEOF 3550/* confdefs.h. */ 3551_ACEOF 3552cat confdefs.h >>conftest.$ac_ext 3553cat >>conftest.$ac_ext <<_ACEOF 3554/* end confdefs.h. */ 3555 3556int 3557main () 3558{ 3559 3560 ; 3561 return 0; 3562} 3563_ACEOF 3564rm -f conftest.$ac_objext 3565if { (ac_try="$ac_compile" 3566case "(($ac_try" in 3567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3568 *) ac_try_echo=$ac_try;; 3569esac 3570eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3571$as_echo "$ac_try_echo") >&5 3572 (eval "$ac_compile") 2>conftest.er1 3573 ac_status=$? 3574 grep -v '^ *+' conftest.er1 >conftest.err 3575 rm -f conftest.er1 3576 cat conftest.err >&5 3577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3578 (exit $ac_status); } && { 3579 test -z "$ac_c_werror_flag" || 3580 test ! -s conftest.err 3581 } && test -s conftest.$ac_objext; then 3582 ac_cv_prog_cc_g=yes 3583else 3584 $as_echo "$as_me: failed program was:" >&5 3585sed 's/^/| /' conftest.$ac_ext >&5 3586 3587 CFLAGS="" 3588 cat >conftest.$ac_ext <<_ACEOF 3589/* confdefs.h. */ 3590_ACEOF 3591cat confdefs.h >>conftest.$ac_ext 3592cat >>conftest.$ac_ext <<_ACEOF 3593/* end confdefs.h. */ 3594 3595int 3596main () 3597{ 3598 3599 ; 3600 return 0; 3601} 3602_ACEOF 3603rm -f conftest.$ac_objext 3604if { (ac_try="$ac_compile" 3605case "(($ac_try" in 3606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3607 *) ac_try_echo=$ac_try;; 3608esac 3609eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3610$as_echo "$ac_try_echo") >&5 3611 (eval "$ac_compile") 2>conftest.er1 3612 ac_status=$? 3613 grep -v '^ *+' conftest.er1 >conftest.err 3614 rm -f conftest.er1 3615 cat conftest.err >&5 3616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3617 (exit $ac_status); } && { 3618 test -z "$ac_c_werror_flag" || 3619 test ! -s conftest.err 3620 } && test -s conftest.$ac_objext; then 3621 : 3622else 3623 $as_echo "$as_me: failed program was:" >&5 3624sed 's/^/| /' conftest.$ac_ext >&5 3625 3626 ac_c_werror_flag=$ac_save_c_werror_flag 3627 CFLAGS="-g" 3628 cat >conftest.$ac_ext <<_ACEOF 3629/* confdefs.h. */ 3630_ACEOF 3631cat confdefs.h >>conftest.$ac_ext 3632cat >>conftest.$ac_ext <<_ACEOF 3633/* end confdefs.h. */ 3634 3635int 3636main () 3637{ 3638 3639 ; 3640 return 0; 3641} 3642_ACEOF 3643rm -f conftest.$ac_objext 3644if { (ac_try="$ac_compile" 3645case "(($ac_try" in 3646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3647 *) ac_try_echo=$ac_try;; 3648esac 3649eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3650$as_echo "$ac_try_echo") >&5 3651 (eval "$ac_compile") 2>conftest.er1 3652 ac_status=$? 3653 grep -v '^ *+' conftest.er1 >conftest.err 3654 rm -f conftest.er1 3655 cat conftest.err >&5 3656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3657 (exit $ac_status); } && { 3658 test -z "$ac_c_werror_flag" || 3659 test ! -s conftest.err 3660 } && test -s conftest.$ac_objext; then 3661 ac_cv_prog_cc_g=yes 3662else 3663 $as_echo "$as_me: failed program was:" >&5 3664sed 's/^/| /' conftest.$ac_ext >&5 3665 3666 3667fi 3668 3669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3670fi 3671 3672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3673fi 3674 3675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3676 ac_c_werror_flag=$ac_save_c_werror_flag 3677fi 3678{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3679$as_echo "$ac_cv_prog_cc_g" >&6; } 3680if test "$ac_test_CFLAGS" = set; then 3681 CFLAGS=$ac_save_CFLAGS 3682elif test $ac_cv_prog_cc_g = yes; then 3683 if test "$GCC" = yes; then 3684 CFLAGS="-g -O2" 3685 else 3686 CFLAGS="-g" 3687 fi 3688else 3689 if test "$GCC" = yes; then 3690 CFLAGS="-O2" 3691 else 3692 CFLAGS= 3693 fi 3694fi 3695{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3696$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3697if test "${ac_cv_prog_cc_c89+set}" = set; then 3698 $as_echo_n "(cached) " >&6 3699else 3700 ac_cv_prog_cc_c89=no 3701ac_save_CC=$CC 3702cat >conftest.$ac_ext <<_ACEOF 3703/* confdefs.h. */ 3704_ACEOF 3705cat confdefs.h >>conftest.$ac_ext 3706cat >>conftest.$ac_ext <<_ACEOF 3707/* end confdefs.h. */ 3708#include <stdarg.h> 3709#include <stdio.h> 3710#include <sys/types.h> 3711#include <sys/stat.h> 3712/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3713struct buf { int x; }; 3714FILE * (*rcsopen) (struct buf *, struct stat *, int); 3715static char *e (p, i) 3716 char **p; 3717 int i; 3718{ 3719 return p[i]; 3720} 3721static char *f (char * (*g) (char **, int), char **p, ...) 3722{ 3723 char *s; 3724 va_list v; 3725 va_start (v,p); 3726 s = g (p, va_arg (v,int)); 3727 va_end (v); 3728 return s; 3729} 3730 3731/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3732 function prototypes and stuff, but not '\xHH' hex character constants. 3733 These don't provoke an error unfortunately, instead are silently treated 3734 as 'x'. The following induces an error, until -std is added to get 3735 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3736 array size at least. It's necessary to write '\x00'==0 to get something 3737 that's true only with -std. */ 3738int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3739 3740/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3741 inside strings and character constants. */ 3742#define FOO(x) 'x' 3743int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3744 3745int test (int i, double x); 3746struct s1 {int (*f) (int a);}; 3747struct s2 {int (*f) (double a);}; 3748int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3749int argc; 3750char **argv; 3751int 3752main () 3753{ 3754return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3755 ; 3756 return 0; 3757} 3758_ACEOF 3759for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3760 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3761do 3762 CC="$ac_save_CC $ac_arg" 3763 rm -f conftest.$ac_objext 3764if { (ac_try="$ac_compile" 3765case "(($ac_try" in 3766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3767 *) ac_try_echo=$ac_try;; 3768esac 3769eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3770$as_echo "$ac_try_echo") >&5 3771 (eval "$ac_compile") 2>conftest.er1 3772 ac_status=$? 3773 grep -v '^ *+' conftest.er1 >conftest.err 3774 rm -f conftest.er1 3775 cat conftest.err >&5 3776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3777 (exit $ac_status); } && { 3778 test -z "$ac_c_werror_flag" || 3779 test ! -s conftest.err 3780 } && test -s conftest.$ac_objext; then 3781 ac_cv_prog_cc_c89=$ac_arg 3782else 3783 $as_echo "$as_me: failed program was:" >&5 3784sed 's/^/| /' conftest.$ac_ext >&5 3785 3786 3787fi 3788 3789rm -f core conftest.err conftest.$ac_objext 3790 test "x$ac_cv_prog_cc_c89" != "xno" && break 3791done 3792rm -f conftest.$ac_ext 3793CC=$ac_save_CC 3794 3795fi 3796# AC_CACHE_VAL 3797case "x$ac_cv_prog_cc_c89" in 3798 x) 3799 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3800$as_echo "none needed" >&6; } ;; 3801 xno) 3802 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3803$as_echo "unsupported" >&6; } ;; 3804 *) 3805 CC="$CC $ac_cv_prog_cc_c89" 3806 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3807$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3808esac 3809 3810 3811ac_ext=c 3812ac_cpp='$CPP $CPPFLAGS' 3813ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3814ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3815ac_compiler_gnu=$ac_cv_c_compiler_gnu 3816 3817depcc="$CC" am_compiler_list= 3818 3819{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3820$as_echo_n "checking dependency style of $depcc... " >&6; } 3821if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3822 $as_echo_n "(cached) " >&6 3823else 3824 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3825 # We make a subdir and do the tests there. Otherwise we can end up 3826 # making bogus files that we don't know about and never remove. For 3827 # instance it was reported that on HP-UX the gcc test will end up 3828 # making a dummy file named `D' -- because `-MD' means `put the output 3829 # in D'. 3830 mkdir conftest.dir 3831 # Copy depcomp to subdir because otherwise we won't find it if we're 3832 # using a relative directory. 3833 cp "$am_depcomp" conftest.dir 3834 cd conftest.dir 3835 # We will build objects and dependencies in a subdirectory because 3836 # it helps to detect inapplicable dependency modes. For instance 3837 # both Tru64's cc and ICC support -MD to output dependencies as a 3838 # side effect of compilation, but ICC will put the dependencies in 3839 # the current directory while Tru64 will put them in the object 3840 # directory. 3841 mkdir sub 3842 3843 am_cv_CC_dependencies_compiler_type=none 3844 if test "$am_compiler_list" = ""; then 3845 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3846 fi 3847 am__universal=false 3848 case " $depcc " in #( 3849 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3850 esac 3851 3852 for depmode in $am_compiler_list; do 3853 # Setup a source with many dependencies, because some compilers 3854 # like to wrap large dependency lists on column 80 (with \), and 3855 # we should not choose a depcomp mode which is confused by this. 3856 # 3857 # We need to recreate these files for each test, as the compiler may 3858 # overwrite some of them when testing with obscure command lines. 3859 # This happens at least with the AIX C compiler. 3860 : > sub/conftest.c 3861 for i in 1 2 3 4 5 6; do 3862 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3863 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3864 # Solaris 8's {/usr,}/bin/sh. 3865 touch sub/conftst$i.h 3866 done 3867 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3868 3869 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3870 # mode. It turns out that the SunPro C++ compiler does not properly 3871 # handle `-M -o', and we need to detect this. Also, some Intel 3872 # versions had trouble with output in subdirs 3873 am__obj=sub/conftest.${OBJEXT-o} 3874 am__minus_obj="-o $am__obj" 3875 case $depmode in 3876 gcc) 3877 # This depmode causes a compiler race in universal mode. 3878 test "$am__universal" = false || continue 3879 ;; 3880 nosideeffect) 3881 # after this tag, mechanisms are not by side-effect, so they'll 3882 # only be used when explicitly requested 3883 if test "x$enable_dependency_tracking" = xyes; then 3884 continue 3885 else 3886 break 3887 fi 3888 ;; 3889 msvisualcpp | msvcmsys) 3890 # This compiler won't grok `-c -o', but also, the minuso test has 3891 # not run yet. These depmodes are late enough in the game, and 3892 # so weak that their functioning should not be impacted. 3893 am__obj=conftest.${OBJEXT-o} 3894 am__minus_obj= 3895 ;; 3896 none) break ;; 3897 esac 3898 if depmode=$depmode \ 3899 source=sub/conftest.c object=$am__obj \ 3900 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3901 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3902 >/dev/null 2>conftest.err && 3903 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3904 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3905 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3906 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3907 # icc doesn't choke on unknown options, it will just issue warnings 3908 # or remarks (even with -Werror). So we grep stderr for any message 3909 # that says an option was ignored or not supported. 3910 # When given -MP, icc 7.0 and 7.1 complain thusly: 3911 # icc: Command line warning: ignoring option '-M'; no argument required 3912 # The diagnosis changed in icc 8.0: 3913 # icc: Command line remark: option '-MP' not supported 3914 if (grep 'ignoring option' conftest.err || 3915 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3916 am_cv_CC_dependencies_compiler_type=$depmode 3917 break 3918 fi 3919 fi 3920 done 3921 3922 cd .. 3923 rm -rf conftest.dir 3924else 3925 am_cv_CC_dependencies_compiler_type=none 3926fi 3927 3928fi 3929{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3930$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3931CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3932 3933 if 3934 test "x$enable_dependency_tracking" != xno \ 3935 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3936 am__fastdepCC_TRUE= 3937 am__fastdepCC_FALSE='#' 3938else 3939 am__fastdepCC_TRUE='#' 3940 am__fastdepCC_FALSE= 3941fi 3942 3943 3944{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3945$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3946if test "${lt_cv_path_SED+set}" = set; then 3947 $as_echo_n "(cached) " >&6 3948else 3949 # Loop through the user's path and test for sed and gsed. 3950# Then use that list of sed's as ones to test for truncation. 3951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3952for as_dir in $PATH 3953do 3954 IFS=$as_save_IFS 3955 test -z "$as_dir" && as_dir=. 3956 for lt_ac_prog in sed gsed; do 3957 for ac_exec_ext in '' $ac_executable_extensions; do 3958 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then 3959 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3960 fi 3961 done 3962 done 3963done 3964IFS=$as_save_IFS 3965lt_ac_max=0 3966lt_ac_count=0 3967# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3968# along with /bin/sed that truncates output. 3969for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3970 test ! -f $lt_ac_sed && continue 3971 cat /dev/null > conftest.in 3972 lt_ac_count=0 3973 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3974 # Check for GNU sed and select it if it is found. 3975 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3976 lt_cv_path_SED=$lt_ac_sed 3977 break 3978 fi 3979 while true; do 3980 cat conftest.in conftest.in >conftest.tmp 3981 mv conftest.tmp conftest.in 3982 cp conftest.in conftest.nl 3983 echo >>conftest.nl 3984 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3985 cmp -s conftest.out conftest.nl || break 3986 # 10000 chars as input seems more than enough 3987 test $lt_ac_count -gt 10 && break 3988 lt_ac_count=`expr $lt_ac_count + 1` 3989 if test $lt_ac_count -gt $lt_ac_max; then 3990 lt_ac_max=$lt_ac_count 3991 lt_cv_path_SED=$lt_ac_sed 3992 fi 3993 done 3994done 3995 3996fi 3997 3998SED=$lt_cv_path_SED 3999 4000{ $as_echo "$as_me:$LINENO: result: $SED" >&5 4001$as_echo "$SED" >&6; } 4002 4003{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 4004$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4005if test "${ac_cv_path_GREP+set}" = set; then 4006 $as_echo_n "(cached) " >&6 4007else 4008 if test -z "$GREP"; then 4009 ac_path_GREP_found=false 4010 # Loop through the user's path and test for each of PROGNAME-LIST 4011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4012for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4013do 4014 IFS=$as_save_IFS 4015 test -z "$as_dir" && as_dir=. 4016 for ac_prog in grep ggrep; do 4017 for ac_exec_ext in '' $ac_executable_extensions; do 4018 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4019 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4020# Check for GNU ac_path_GREP and select it if it is found. 4021 # Check for GNU $ac_path_GREP 4022case `"$ac_path_GREP" --version 2>&1` in 4023*GNU*) 4024 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4025*) 4026 ac_count=0 4027 $as_echo_n 0123456789 >"conftest.in" 4028 while : 4029 do 4030 cat "conftest.in" "conftest.in" >"conftest.tmp" 4031 mv "conftest.tmp" "conftest.in" 4032 cp "conftest.in" "conftest.nl" 4033 $as_echo 'GREP' >> "conftest.nl" 4034 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4035 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4036 ac_count=`expr $ac_count + 1` 4037 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4038 # Best one so far, save it but keep looking for a better one 4039 ac_cv_path_GREP="$ac_path_GREP" 4040 ac_path_GREP_max=$ac_count 4041 fi 4042 # 10*(2^10) chars as input seems more than enough 4043 test $ac_count -gt 10 && break 4044 done 4045 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4046esac 4047 4048 $ac_path_GREP_found && break 3 4049 done 4050 done 4051done 4052IFS=$as_save_IFS 4053 if test -z "$ac_cv_path_GREP"; then 4054 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4055$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4056 { (exit 1); exit 1; }; } 4057 fi 4058else 4059 ac_cv_path_GREP=$GREP 4060fi 4061 4062fi 4063{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4064$as_echo "$ac_cv_path_GREP" >&6; } 4065 GREP="$ac_cv_path_GREP" 4066 4067 4068{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 4069$as_echo_n "checking for egrep... " >&6; } 4070if test "${ac_cv_path_EGREP+set}" = set; then 4071 $as_echo_n "(cached) " >&6 4072else 4073 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4074 then ac_cv_path_EGREP="$GREP -E" 4075 else 4076 if test -z "$EGREP"; then 4077 ac_path_EGREP_found=false 4078 # Loop through the user's path and test for each of PROGNAME-LIST 4079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4080for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4081do 4082 IFS=$as_save_IFS 4083 test -z "$as_dir" && as_dir=. 4084 for ac_prog in egrep; do 4085 for ac_exec_ext in '' $ac_executable_extensions; do 4086 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4087 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4088# Check for GNU ac_path_EGREP and select it if it is found. 4089 # Check for GNU $ac_path_EGREP 4090case `"$ac_path_EGREP" --version 2>&1` in 4091*GNU*) 4092 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4093*) 4094 ac_count=0 4095 $as_echo_n 0123456789 >"conftest.in" 4096 while : 4097 do 4098 cat "conftest.in" "conftest.in" >"conftest.tmp" 4099 mv "conftest.tmp" "conftest.in" 4100 cp "conftest.in" "conftest.nl" 4101 $as_echo 'EGREP' >> "conftest.nl" 4102 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4103 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4104 ac_count=`expr $ac_count + 1` 4105 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4106 # Best one so far, save it but keep looking for a better one 4107 ac_cv_path_EGREP="$ac_path_EGREP" 4108 ac_path_EGREP_max=$ac_count 4109 fi 4110 # 10*(2^10) chars as input seems more than enough 4111 test $ac_count -gt 10 && break 4112 done 4113 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4114esac 4115 4116 $ac_path_EGREP_found && break 3 4117 done 4118 done 4119done 4120IFS=$as_save_IFS 4121 if test -z "$ac_cv_path_EGREP"; then 4122 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4123$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4124 { (exit 1); exit 1; }; } 4125 fi 4126else 4127 ac_cv_path_EGREP=$EGREP 4128fi 4129 4130 fi 4131fi 4132{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4133$as_echo "$ac_cv_path_EGREP" >&6; } 4134 EGREP="$ac_cv_path_EGREP" 4135 4136 4137 4138# Check whether --with-gnu-ld was given. 4139if test "${with_gnu_ld+set}" = set; then 4140 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4141else 4142 with_gnu_ld=no 4143fi 4144 4145ac_prog=ld 4146if test "$GCC" = yes; then 4147 # Check if gcc -print-prog-name=ld gives a path. 4148 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4149$as_echo_n "checking for ld used by $CC... " >&6; } 4150 case $host in 4151 *-*-mingw*) 4152 # gcc leaves a trailing carriage return which upsets mingw 4153 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4154 *) 4155 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4156 esac 4157 case $ac_prog in 4158 # Accept absolute paths. 4159 [\\/]* | ?:[\\/]*) 4160 re_direlt='/[^/][^/]*/\.\./' 4161 # Canonicalize the pathname of ld 4162 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 4163 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 4164 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 4165 done 4166 test -z "$LD" && LD="$ac_prog" 4167 ;; 4168 "") 4169 # If it fails, then pretend we aren't using GCC. 4170 ac_prog=ld 4171 ;; 4172 *) 4173 # If it is relative, then search for the first ld in PATH. 4174 with_gnu_ld=unknown 4175 ;; 4176 esac 4177elif test "$with_gnu_ld" = yes; then 4178 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 4179$as_echo_n "checking for GNU ld... " >&6; } 4180else 4181 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4182$as_echo_n "checking for non-GNU ld... " >&6; } 4183fi 4184if test "${lt_cv_path_LD+set}" = set; then 4185 $as_echo_n "(cached) " >&6 4186else 4187 if test -z "$LD"; then 4188 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4189 for ac_dir in $PATH; do 4190 IFS="$lt_save_ifs" 4191 test -z "$ac_dir" && ac_dir=. 4192 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4193 lt_cv_path_LD="$ac_dir/$ac_prog" 4194 # Check to see if the program is GNU ld. I'd rather use --version, 4195 # but apparently some variants of GNU ld only accept -v. 4196 # Break only if it was the GNU/non-GNU ld that we prefer. 4197 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4198 *GNU* | *'with BFD'*) 4199 test "$with_gnu_ld" != no && break 4200 ;; 4201 *) 4202 test "$with_gnu_ld" != yes && break 4203 ;; 4204 esac 4205 fi 4206 done 4207 IFS="$lt_save_ifs" 4208else 4209 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4210fi 4211fi 4212 4213LD="$lt_cv_path_LD" 4214if test -n "$LD"; then 4215 { $as_echo "$as_me:$LINENO: result: $LD" >&5 4216$as_echo "$LD" >&6; } 4217else 4218 { $as_echo "$as_me:$LINENO: result: no" >&5 4219$as_echo "no" >&6; } 4220fi 4221test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4222$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4223 { (exit 1); exit 1; }; } 4224{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4225$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4226if test "${lt_cv_prog_gnu_ld+set}" = set; then 4227 $as_echo_n "(cached) " >&6 4228else 4229 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4230case `$LD -v 2>&1 </dev/null` in 4231*GNU* | *'with BFD'*) 4232 lt_cv_prog_gnu_ld=yes 4233 ;; 4234*) 4235 lt_cv_prog_gnu_ld=no 4236 ;; 4237esac 4238fi 4239{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4240$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4241with_gnu_ld=$lt_cv_prog_gnu_ld 4242 4243 4244{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4245$as_echo_n "checking for $LD option to reload object files... " >&6; } 4246if test "${lt_cv_ld_reload_flag+set}" = set; then 4247 $as_echo_n "(cached) " >&6 4248else 4249 lt_cv_ld_reload_flag='-r' 4250fi 4251{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4252$as_echo "$lt_cv_ld_reload_flag" >&6; } 4253reload_flag=$lt_cv_ld_reload_flag 4254case $reload_flag in 4255"" | " "*) ;; 4256*) reload_flag=" $reload_flag" ;; 4257esac 4258reload_cmds='$LD$reload_flag -o $output$reload_objs' 4259case $host_os in 4260 darwin*) 4261 if test "$GCC" = yes; then 4262 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4263 else 4264 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4265 fi 4266 ;; 4267esac 4268 4269{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4270$as_echo_n "checking for BSD-compatible nm... " >&6; } 4271if test "${lt_cv_path_NM+set}" = set; then 4272 $as_echo_n "(cached) " >&6 4273else 4274 if test -n "$NM"; then 4275 # Let the user override the test. 4276 lt_cv_path_NM="$NM" 4277else 4278 lt_nm_to_check="${ac_tool_prefix}nm" 4279 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4280 lt_nm_to_check="$lt_nm_to_check nm" 4281 fi 4282 for lt_tmp_nm in $lt_nm_to_check; do 4283 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4284 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4285 IFS="$lt_save_ifs" 4286 test -z "$ac_dir" && ac_dir=. 4287 tmp_nm="$ac_dir/$lt_tmp_nm" 4288 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4289 # Check to see if the nm accepts a BSD-compat flag. 4290 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4291 # nm: unknown option "B" ignored 4292 # Tru64's nm complains that /dev/null is an invalid object file 4293 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4294 */dev/null* | *'Invalid file or object type'*) 4295 lt_cv_path_NM="$tmp_nm -B" 4296 break 4297 ;; 4298 *) 4299 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4300 */dev/null*) 4301 lt_cv_path_NM="$tmp_nm -p" 4302 break 4303 ;; 4304 *) 4305 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4306 continue # so that we can try to find one that supports BSD flags 4307 ;; 4308 esac 4309 ;; 4310 esac 4311 fi 4312 done 4313 IFS="$lt_save_ifs" 4314 done 4315 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4316fi 4317fi 4318{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4319$as_echo "$lt_cv_path_NM" >&6; } 4320NM="$lt_cv_path_NM" 4321 4322{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 4323$as_echo_n "checking whether ln -s works... " >&6; } 4324LN_S=$as_ln_s 4325if test "$LN_S" = "ln -s"; then 4326 { $as_echo "$as_me:$LINENO: result: yes" >&5 4327$as_echo "yes" >&6; } 4328else 4329 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4330$as_echo "no, using $LN_S" >&6; } 4331fi 4332 4333{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 4334$as_echo_n "checking how to recognize dependent libraries... " >&6; } 4335if test "${lt_cv_deplibs_check_method+set}" = set; then 4336 $as_echo_n "(cached) " >&6 4337else 4338 lt_cv_file_magic_cmd='$MAGIC_CMD' 4339lt_cv_file_magic_test_file= 4340lt_cv_deplibs_check_method='unknown' 4341# Need to set the preceding variable on all platforms that support 4342# interlibrary dependencies. 4343# 'none' -- dependencies not supported. 4344# `unknown' -- same as none, but documents that we really don't know. 4345# 'pass_all' -- all dependencies passed with no checks. 4346# 'test_compile' -- check by making test program. 4347# 'file_magic [[regex]]' -- check by looking for files in library path 4348# which responds to the $file_magic_cmd with a given extended regex. 4349# If you have `file' or equivalent on your system and you're not sure 4350# whether `pass_all' will *always* work, you probably want this one. 4351 4352case $host_os in 4353aix[4-9]*) 4354 lt_cv_deplibs_check_method=pass_all 4355 ;; 4356 4357beos*) 4358 lt_cv_deplibs_check_method=pass_all 4359 ;; 4360 4361bsdi[45]*) 4362 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4363 lt_cv_file_magic_cmd='/usr/bin/file -L' 4364 lt_cv_file_magic_test_file=/shlib/libc.so 4365 ;; 4366 4367cygwin*) 4368 # func_win32_libid is a shell function defined in ltmain.sh 4369 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4370 lt_cv_file_magic_cmd='func_win32_libid' 4371 ;; 4372 4373mingw* | pw32*) 4374 # Base MSYS/MinGW do not provide the 'file' command needed by 4375 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4376 # unless we find 'file', for example because we are cross-compiling. 4377 if ( file / ) >/dev/null 2>&1; then 4378 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4379 lt_cv_file_magic_cmd='func_win32_libid' 4380 else 4381 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4382 lt_cv_file_magic_cmd='$OBJDUMP -f' 4383 fi 4384 ;; 4385 4386darwin* | rhapsody*) 4387 lt_cv_deplibs_check_method=pass_all 4388 ;; 4389 4390freebsd* | dragonfly*) 4391 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4392 case $host_cpu in 4393 i*86 ) 4394 # Not sure whether the presence of OpenBSD here was a mistake. 4395 # Let's accept both of them until this is cleared up. 4396 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4397 lt_cv_file_magic_cmd=/usr/bin/file 4398 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4399 ;; 4400 esac 4401 else 4402 lt_cv_deplibs_check_method=pass_all 4403 fi 4404 ;; 4405 4406gnu*) 4407 lt_cv_deplibs_check_method=pass_all 4408 ;; 4409 4410hpux10.20* | hpux11*) 4411 lt_cv_file_magic_cmd=/usr/bin/file 4412 case $host_cpu in 4413 ia64*) 4414 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4415 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4416 ;; 4417 hppa*64*) 4418 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]' 4419 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4420 ;; 4421 *) 4422 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4423 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4424 ;; 4425 esac 4426 ;; 4427 4428interix[3-9]*) 4429 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4430 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4431 ;; 4432 4433irix5* | irix6* | nonstopux*) 4434 case $LD in 4435 *-32|*"-32 ") libmagic=32-bit;; 4436 *-n32|*"-n32 ") libmagic=N32;; 4437 *-64|*"-64 ") libmagic=64-bit;; 4438 *) libmagic=never-match;; 4439 esac 4440 lt_cv_deplibs_check_method=pass_all 4441 ;; 4442 4443# This must be Linux ELF. 4444linux* | k*bsd*-gnu) 4445 lt_cv_deplibs_check_method=pass_all 4446 ;; 4447 4448netbsd*) 4449 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4450 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4451 else 4452 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4453 fi 4454 ;; 4455 4456newos6*) 4457 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4458 lt_cv_file_magic_cmd=/usr/bin/file 4459 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4460 ;; 4461 4462nto-qnx*) 4463 lt_cv_deplibs_check_method=unknown 4464 ;; 4465 4466openbsd*) 4467 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4468 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4469 else 4470 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4471 fi 4472 ;; 4473 4474osf3* | osf4* | osf5*) 4475 lt_cv_deplibs_check_method=pass_all 4476 ;; 4477 4478rdos*) 4479 lt_cv_deplibs_check_method=pass_all 4480 ;; 4481 4482solaris*) 4483 lt_cv_deplibs_check_method=pass_all 4484 ;; 4485 4486sysv4 | sysv4.3*) 4487 case $host_vendor in 4488 motorola) 4489 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]' 4490 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4491 ;; 4492 ncr) 4493 lt_cv_deplibs_check_method=pass_all 4494 ;; 4495 sequent) 4496 lt_cv_file_magic_cmd='/bin/file' 4497 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4498 ;; 4499 sni) 4500 lt_cv_file_magic_cmd='/bin/file' 4501 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4502 lt_cv_file_magic_test_file=/lib/libc.so 4503 ;; 4504 siemens) 4505 lt_cv_deplibs_check_method=pass_all 4506 ;; 4507 pc) 4508 lt_cv_deplibs_check_method=pass_all 4509 ;; 4510 esac 4511 ;; 4512 4513sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4514 lt_cv_deplibs_check_method=pass_all 4515 ;; 4516esac 4517 4518fi 4519{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4520$as_echo "$lt_cv_deplibs_check_method" >&6; } 4521file_magic_cmd=$lt_cv_file_magic_cmd 4522deplibs_check_method=$lt_cv_deplibs_check_method 4523test -z "$deplibs_check_method" && deplibs_check_method=unknown 4524 4525 4526 4527 4528# If no C compiler was specified, use CC. 4529LTCC=${LTCC-"$CC"} 4530 4531# If no C compiler flags were specified, use CFLAGS. 4532LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4533 4534# Allow CC to be a program name with arguments. 4535compiler=$CC 4536 4537 4538# Check whether --enable-libtool-lock was given. 4539if test "${enable_libtool_lock+set}" = set; then 4540 enableval=$enable_libtool_lock; 4541fi 4542 4543test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4544 4545# Some flags need to be propagated to the compiler or linker for good 4546# libtool support. 4547case $host in 4548ia64-*-hpux*) 4549 # Find out which ABI we are using. 4550 echo 'int i;' > conftest.$ac_ext 4551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4552 (eval $ac_compile) 2>&5 4553 ac_status=$? 4554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4555 (exit $ac_status); }; then 4556 case `/usr/bin/file conftest.$ac_objext` in 4557 *ELF-32*) 4558 HPUX_IA64_MODE="32" 4559 ;; 4560 *ELF-64*) 4561 HPUX_IA64_MODE="64" 4562 ;; 4563 esac 4564 fi 4565 rm -rf conftest* 4566 ;; 4567*-*-irix6*) 4568 # Find out which ABI we are using. 4569 echo '#line 4569 "configure"' > conftest.$ac_ext 4570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4571 (eval $ac_compile) 2>&5 4572 ac_status=$? 4573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4574 (exit $ac_status); }; then 4575 if test "$lt_cv_prog_gnu_ld" = yes; then 4576 case `/usr/bin/file conftest.$ac_objext` in 4577 *32-bit*) 4578 LD="${LD-ld} -melf32bsmip" 4579 ;; 4580 *N32*) 4581 LD="${LD-ld} -melf32bmipn32" 4582 ;; 4583 *64-bit*) 4584 LD="${LD-ld} -melf64bmip" 4585 ;; 4586 esac 4587 else 4588 case `/usr/bin/file conftest.$ac_objext` in 4589 *32-bit*) 4590 LD="${LD-ld} -32" 4591 ;; 4592 *N32*) 4593 LD="${LD-ld} -n32" 4594 ;; 4595 *64-bit*) 4596 LD="${LD-ld} -64" 4597 ;; 4598 esac 4599 fi 4600 fi 4601 rm -rf conftest* 4602 ;; 4603 4604x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 4605s390*-*linux*|sparc*-*linux*) 4606 # Find out which ABI we are using. 4607 echo 'int i;' > conftest.$ac_ext 4608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4609 (eval $ac_compile) 2>&5 4610 ac_status=$? 4611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4612 (exit $ac_status); }; then 4613 case `/usr/bin/file conftest.o` in 4614 *32-bit*) 4615 case $host in 4616 x86_64-*kfreebsd*-gnu) 4617 LD="${LD-ld} -m elf_i386_fbsd" 4618 ;; 4619 x86_64-*linux*) 4620 LD="${LD-ld} -m elf_i386" 4621 ;; 4622 ppc64-*linux*|powerpc64-*linux*) 4623 LD="${LD-ld} -m elf32ppclinux" 4624 ;; 4625 s390x-*linux*) 4626 LD="${LD-ld} -m elf_s390" 4627 ;; 4628 sparc64-*linux*) 4629 LD="${LD-ld} -m elf32_sparc" 4630 ;; 4631 esac 4632 ;; 4633 *64-bit*) 4634 libsuff=64 4635 case $host in 4636 x86_64-*kfreebsd*-gnu) 4637 LD="${LD-ld} -m elf_x86_64_fbsd" 4638 ;; 4639 x86_64-*linux*) 4640 LD="${LD-ld} -m elf_x86_64" 4641 ;; 4642 ppc*-*linux*|powerpc*-*linux*) 4643 LD="${LD-ld} -m elf64ppc" 4644 ;; 4645 s390*-*linux*) 4646 LD="${LD-ld} -m elf64_s390" 4647 ;; 4648 sparc*-*linux*) 4649 LD="${LD-ld} -m elf64_sparc" 4650 ;; 4651 esac 4652 ;; 4653 esac 4654 fi 4655 rm -rf conftest* 4656 ;; 4657 4658*-*-sco3.2v5*) 4659 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4660 SAVE_CFLAGS="$CFLAGS" 4661 CFLAGS="$CFLAGS -belf" 4662 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4663$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 4664if test "${lt_cv_cc_needs_belf+set}" = set; then 4665 $as_echo_n "(cached) " >&6 4666else 4667 ac_ext=c 4668ac_cpp='$CPP $CPPFLAGS' 4669ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4670ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4671ac_compiler_gnu=$ac_cv_c_compiler_gnu 4672 4673 cat >conftest.$ac_ext <<_ACEOF 4674/* confdefs.h. */ 4675_ACEOF 4676cat confdefs.h >>conftest.$ac_ext 4677cat >>conftest.$ac_ext <<_ACEOF 4678/* end confdefs.h. */ 4679 4680int 4681main () 4682{ 4683 4684 ; 4685 return 0; 4686} 4687_ACEOF 4688rm -f conftest.$ac_objext conftest$ac_exeext 4689if { (ac_try="$ac_link" 4690case "(($ac_try" in 4691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4692 *) ac_try_echo=$ac_try;; 4693esac 4694eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4695$as_echo "$ac_try_echo") >&5 4696 (eval "$ac_link") 2>conftest.er1 4697 ac_status=$? 4698 grep -v '^ *+' conftest.er1 >conftest.err 4699 rm -f conftest.er1 4700 cat conftest.err >&5 4701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4702 (exit $ac_status); } && { 4703 test -z "$ac_c_werror_flag" || 4704 test ! -s conftest.err 4705 } && test -s conftest$ac_exeext && { 4706 test "$cross_compiling" = yes || 4707 $as_test_x conftest$ac_exeext 4708 }; then 4709 lt_cv_cc_needs_belf=yes 4710else 4711 $as_echo "$as_me: failed program was:" >&5 4712sed 's/^/| /' conftest.$ac_ext >&5 4713 4714 lt_cv_cc_needs_belf=no 4715fi 4716 4717rm -rf conftest.dSYM 4718rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4719 conftest$ac_exeext conftest.$ac_ext 4720 ac_ext=c 4721ac_cpp='$CPP $CPPFLAGS' 4722ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4723ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4724ac_compiler_gnu=$ac_cv_c_compiler_gnu 4725 4726fi 4727{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4728$as_echo "$lt_cv_cc_needs_belf" >&6; } 4729 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4730 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4731 CFLAGS="$SAVE_CFLAGS" 4732 fi 4733 ;; 4734sparc*-*solaris*) 4735 # Find out which ABI we are using. 4736 echo 'int i;' > conftest.$ac_ext 4737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4738 (eval $ac_compile) 2>&5 4739 ac_status=$? 4740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4741 (exit $ac_status); }; then 4742 case `/usr/bin/file conftest.o` in 4743 *64-bit*) 4744 case $lt_cv_prog_gnu_ld in 4745 yes*) LD="${LD-ld} -m elf64_sparc" ;; 4746 *) 4747 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 4748 LD="${LD-ld} -64" 4749 fi 4750 ;; 4751 esac 4752 ;; 4753 esac 4754 fi 4755 rm -rf conftest* 4756 ;; 4757 4758 4759esac 4760 4761need_locks="$enable_libtool_lock" 4762 4763 4764ac_ext=c 4765ac_cpp='$CPP $CPPFLAGS' 4766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4768ac_compiler_gnu=$ac_cv_c_compiler_gnu 4769{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4770$as_echo_n "checking how to run the C preprocessor... " >&6; } 4771# On Suns, sometimes $CPP names a directory. 4772if test -n "$CPP" && test -d "$CPP"; then 4773 CPP= 4774fi 4775if test -z "$CPP"; then 4776 if test "${ac_cv_prog_CPP+set}" = set; then 4777 $as_echo_n "(cached) " >&6 4778else 4779 # Double quotes because CPP needs to be expanded 4780 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4781 do 4782 ac_preproc_ok=false 4783for ac_c_preproc_warn_flag in '' yes 4784do 4785 # Use a header file that comes with gcc, so configuring glibc 4786 # with a fresh cross-compiler works. 4787 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4788 # <limits.h> exists even on freestanding compilers. 4789 # On the NeXT, cc -E runs the code through the compiler's parser, 4790 # not just through cpp. "Syntax error" is here to catch this case. 4791 cat >conftest.$ac_ext <<_ACEOF 4792/* confdefs.h. */ 4793_ACEOF 4794cat confdefs.h >>conftest.$ac_ext 4795cat >>conftest.$ac_ext <<_ACEOF 4796/* end confdefs.h. */ 4797#ifdef __STDC__ 4798# include <limits.h> 4799#else 4800# include <assert.h> 4801#endif 4802 Syntax error 4803_ACEOF 4804if { (ac_try="$ac_cpp conftest.$ac_ext" 4805case "(($ac_try" in 4806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4807 *) ac_try_echo=$ac_try;; 4808esac 4809eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4810$as_echo "$ac_try_echo") >&5 4811 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4812 ac_status=$? 4813 grep -v '^ *+' conftest.er1 >conftest.err 4814 rm -f conftest.er1 4815 cat conftest.err >&5 4816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4817 (exit $ac_status); } >/dev/null && { 4818 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4819 test ! -s conftest.err 4820 }; then 4821 : 4822else 4823 $as_echo "$as_me: failed program was:" >&5 4824sed 's/^/| /' conftest.$ac_ext >&5 4825 4826 # Broken: fails on valid input. 4827continue 4828fi 4829 4830rm -f conftest.err conftest.$ac_ext 4831 4832 # OK, works on sane cases. Now check whether nonexistent headers 4833 # can be detected and how. 4834 cat >conftest.$ac_ext <<_ACEOF 4835/* confdefs.h. */ 4836_ACEOF 4837cat confdefs.h >>conftest.$ac_ext 4838cat >>conftest.$ac_ext <<_ACEOF 4839/* end confdefs.h. */ 4840#include <ac_nonexistent.h> 4841_ACEOF 4842if { (ac_try="$ac_cpp conftest.$ac_ext" 4843case "(($ac_try" in 4844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4845 *) ac_try_echo=$ac_try;; 4846esac 4847eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4848$as_echo "$ac_try_echo") >&5 4849 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4850 ac_status=$? 4851 grep -v '^ *+' conftest.er1 >conftest.err 4852 rm -f conftest.er1 4853 cat conftest.err >&5 4854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4855 (exit $ac_status); } >/dev/null && { 4856 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4857 test ! -s conftest.err 4858 }; then 4859 # Broken: success on invalid input. 4860continue 4861else 4862 $as_echo "$as_me: failed program was:" >&5 4863sed 's/^/| /' conftest.$ac_ext >&5 4864 4865 # Passes both tests. 4866ac_preproc_ok=: 4867break 4868fi 4869 4870rm -f conftest.err conftest.$ac_ext 4871 4872done 4873# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4874rm -f conftest.err conftest.$ac_ext 4875if $ac_preproc_ok; then 4876 break 4877fi 4878 4879 done 4880 ac_cv_prog_CPP=$CPP 4881 4882fi 4883 CPP=$ac_cv_prog_CPP 4884else 4885 ac_cv_prog_CPP=$CPP 4886fi 4887{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 4888$as_echo "$CPP" >&6; } 4889ac_preproc_ok=false 4890for ac_c_preproc_warn_flag in '' yes 4891do 4892 # Use a header file that comes with gcc, so configuring glibc 4893 # with a fresh cross-compiler works. 4894 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4895 # <limits.h> exists even on freestanding compilers. 4896 # On the NeXT, cc -E runs the code through the compiler's parser, 4897 # not just through cpp. "Syntax error" is here to catch this case. 4898 cat >conftest.$ac_ext <<_ACEOF 4899/* confdefs.h. */ 4900_ACEOF 4901cat confdefs.h >>conftest.$ac_ext 4902cat >>conftest.$ac_ext <<_ACEOF 4903/* end confdefs.h. */ 4904#ifdef __STDC__ 4905# include <limits.h> 4906#else 4907# include <assert.h> 4908#endif 4909 Syntax error 4910_ACEOF 4911if { (ac_try="$ac_cpp conftest.$ac_ext" 4912case "(($ac_try" in 4913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4914 *) ac_try_echo=$ac_try;; 4915esac 4916eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4917$as_echo "$ac_try_echo") >&5 4918 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4919 ac_status=$? 4920 grep -v '^ *+' conftest.er1 >conftest.err 4921 rm -f conftest.er1 4922 cat conftest.err >&5 4923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4924 (exit $ac_status); } >/dev/null && { 4925 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4926 test ! -s conftest.err 4927 }; then 4928 : 4929else 4930 $as_echo "$as_me: failed program was:" >&5 4931sed 's/^/| /' conftest.$ac_ext >&5 4932 4933 # Broken: fails on valid input. 4934continue 4935fi 4936 4937rm -f conftest.err conftest.$ac_ext 4938 4939 # OK, works on sane cases. Now check whether nonexistent headers 4940 # can be detected and how. 4941 cat >conftest.$ac_ext <<_ACEOF 4942/* confdefs.h. */ 4943_ACEOF 4944cat confdefs.h >>conftest.$ac_ext 4945cat >>conftest.$ac_ext <<_ACEOF 4946/* end confdefs.h. */ 4947#include <ac_nonexistent.h> 4948_ACEOF 4949if { (ac_try="$ac_cpp conftest.$ac_ext" 4950case "(($ac_try" in 4951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4952 *) ac_try_echo=$ac_try;; 4953esac 4954eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4955$as_echo "$ac_try_echo") >&5 4956 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4957 ac_status=$? 4958 grep -v '^ *+' conftest.er1 >conftest.err 4959 rm -f conftest.er1 4960 cat conftest.err >&5 4961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4962 (exit $ac_status); } >/dev/null && { 4963 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4964 test ! -s conftest.err 4965 }; then 4966 # Broken: success on invalid input. 4967continue 4968else 4969 $as_echo "$as_me: failed program was:" >&5 4970sed 's/^/| /' conftest.$ac_ext >&5 4971 4972 # Passes both tests. 4973ac_preproc_ok=: 4974break 4975fi 4976 4977rm -f conftest.err conftest.$ac_ext 4978 4979done 4980# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4981rm -f conftest.err conftest.$ac_ext 4982if $ac_preproc_ok; then 4983 : 4984else 4985 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 4986$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4987{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4988See \`config.log' for more details." >&5 4989$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4990See \`config.log' for more details." >&2;} 4991 { (exit 1); exit 1; }; }; } 4992fi 4993 4994ac_ext=c 4995ac_cpp='$CPP $CPPFLAGS' 4996ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4997ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4998ac_compiler_gnu=$ac_cv_c_compiler_gnu 4999 5000 5001{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 5002$as_echo_n "checking for ANSI C header files... " >&6; } 5003if test "${ac_cv_header_stdc+set}" = set; then 5004 $as_echo_n "(cached) " >&6 5005else 5006 cat >conftest.$ac_ext <<_ACEOF 5007/* confdefs.h. */ 5008_ACEOF 5009cat confdefs.h >>conftest.$ac_ext 5010cat >>conftest.$ac_ext <<_ACEOF 5011/* end confdefs.h. */ 5012#include <stdlib.h> 5013#include <stdarg.h> 5014#include <string.h> 5015#include <float.h> 5016 5017int 5018main () 5019{ 5020 5021 ; 5022 return 0; 5023} 5024_ACEOF 5025rm -f conftest.$ac_objext 5026if { (ac_try="$ac_compile" 5027case "(($ac_try" in 5028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5029 *) ac_try_echo=$ac_try;; 5030esac 5031eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5032$as_echo "$ac_try_echo") >&5 5033 (eval "$ac_compile") 2>conftest.er1 5034 ac_status=$? 5035 grep -v '^ *+' conftest.er1 >conftest.err 5036 rm -f conftest.er1 5037 cat conftest.err >&5 5038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5039 (exit $ac_status); } && { 5040 test -z "$ac_c_werror_flag" || 5041 test ! -s conftest.err 5042 } && test -s conftest.$ac_objext; then 5043 ac_cv_header_stdc=yes 5044else 5045 $as_echo "$as_me: failed program was:" >&5 5046sed 's/^/| /' conftest.$ac_ext >&5 5047 5048 ac_cv_header_stdc=no 5049fi 5050 5051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5052 5053if test $ac_cv_header_stdc = yes; then 5054 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5055 cat >conftest.$ac_ext <<_ACEOF 5056/* confdefs.h. */ 5057_ACEOF 5058cat confdefs.h >>conftest.$ac_ext 5059cat >>conftest.$ac_ext <<_ACEOF 5060/* end confdefs.h. */ 5061#include <string.h> 5062 5063_ACEOF 5064if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5065 $EGREP "memchr" >/dev/null 2>&1; then 5066 : 5067else 5068 ac_cv_header_stdc=no 5069fi 5070rm -f conftest* 5071 5072fi 5073 5074if test $ac_cv_header_stdc = yes; then 5075 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5076 cat >conftest.$ac_ext <<_ACEOF 5077/* confdefs.h. */ 5078_ACEOF 5079cat confdefs.h >>conftest.$ac_ext 5080cat >>conftest.$ac_ext <<_ACEOF 5081/* end confdefs.h. */ 5082#include <stdlib.h> 5083 5084_ACEOF 5085if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5086 $EGREP "free" >/dev/null 2>&1; then 5087 : 5088else 5089 ac_cv_header_stdc=no 5090fi 5091rm -f conftest* 5092 5093fi 5094 5095if test $ac_cv_header_stdc = yes; then 5096 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5097 if test "$cross_compiling" = yes; then 5098 : 5099else 5100 cat >conftest.$ac_ext <<_ACEOF 5101/* confdefs.h. */ 5102_ACEOF 5103cat confdefs.h >>conftest.$ac_ext 5104cat >>conftest.$ac_ext <<_ACEOF 5105/* end confdefs.h. */ 5106#include <ctype.h> 5107#include <stdlib.h> 5108#if ((' ' & 0x0FF) == 0x020) 5109# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5110# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5111#else 5112# define ISLOWER(c) \ 5113 (('a' <= (c) && (c) <= 'i') \ 5114 || ('j' <= (c) && (c) <= 'r') \ 5115 || ('s' <= (c) && (c) <= 'z')) 5116# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5117#endif 5118 5119#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5120int 5121main () 5122{ 5123 int i; 5124 for (i = 0; i < 256; i++) 5125 if (XOR (islower (i), ISLOWER (i)) 5126 || toupper (i) != TOUPPER (i)) 5127 return 2; 5128 return 0; 5129} 5130_ACEOF 5131rm -f conftest$ac_exeext 5132if { (ac_try="$ac_link" 5133case "(($ac_try" in 5134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5135 *) ac_try_echo=$ac_try;; 5136esac 5137eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5138$as_echo "$ac_try_echo") >&5 5139 (eval "$ac_link") 2>&5 5140 ac_status=$? 5141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5142 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5143 { (case "(($ac_try" in 5144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5145 *) ac_try_echo=$ac_try;; 5146esac 5147eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5148$as_echo "$ac_try_echo") >&5 5149 (eval "$ac_try") 2>&5 5150 ac_status=$? 5151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5152 (exit $ac_status); }; }; then 5153 : 5154else 5155 $as_echo "$as_me: program exited with status $ac_status" >&5 5156$as_echo "$as_me: failed program was:" >&5 5157sed 's/^/| /' conftest.$ac_ext >&5 5158 5159( exit $ac_status ) 5160ac_cv_header_stdc=no 5161fi 5162rm -rf conftest.dSYM 5163rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5164fi 5165 5166 5167fi 5168fi 5169{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5170$as_echo "$ac_cv_header_stdc" >&6; } 5171if test $ac_cv_header_stdc = yes; then 5172 5173cat >>confdefs.h <<\_ACEOF 5174#define STDC_HEADERS 1 5175_ACEOF 5176 5177fi 5178 5179# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5190 inttypes.h stdint.h unistd.h 5191do 5192as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5193{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 5194$as_echo_n "checking for $ac_header... " >&6; } 5195if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5196 $as_echo_n "(cached) " >&6 5197else 5198 cat >conftest.$ac_ext <<_ACEOF 5199/* confdefs.h. */ 5200_ACEOF 5201cat confdefs.h >>conftest.$ac_ext 5202cat >>conftest.$ac_ext <<_ACEOF 5203/* end confdefs.h. */ 5204$ac_includes_default 5205 5206#include <$ac_header> 5207_ACEOF 5208rm -f conftest.$ac_objext 5209if { (ac_try="$ac_compile" 5210case "(($ac_try" in 5211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5212 *) ac_try_echo=$ac_try;; 5213esac 5214eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5215$as_echo "$ac_try_echo") >&5 5216 (eval "$ac_compile") 2>conftest.er1 5217 ac_status=$? 5218 grep -v '^ *+' conftest.er1 >conftest.err 5219 rm -f conftest.er1 5220 cat conftest.err >&5 5221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5222 (exit $ac_status); } && { 5223 test -z "$ac_c_werror_flag" || 5224 test ! -s conftest.err 5225 } && test -s conftest.$ac_objext; then 5226 eval "$as_ac_Header=yes" 5227else 5228 $as_echo "$as_me: failed program was:" >&5 5229sed 's/^/| /' conftest.$ac_ext >&5 5230 5231 eval "$as_ac_Header=no" 5232fi 5233 5234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5235fi 5236ac_res=`eval 'as_val=${'$as_ac_Header'} 5237 $as_echo "$as_val"'` 5238 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5239$as_echo "$ac_res" >&6; } 5240as_val=`eval 'as_val=${'$as_ac_Header'} 5241 $as_echo "$as_val"'` 5242 if test "x$as_val" = x""yes; then 5243 cat >>confdefs.h <<_ACEOF 5244#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5245_ACEOF 5246 5247fi 5248 5249done 5250 5251 5252 5253for ac_header in dlfcn.h 5254do 5255as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5256if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5257 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 5258$as_echo_n "checking for $ac_header... " >&6; } 5259if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5260 $as_echo_n "(cached) " >&6 5261fi 5262ac_res=`eval 'as_val=${'$as_ac_Header'} 5263 $as_echo "$as_val"'` 5264 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5265$as_echo "$ac_res" >&6; } 5266else 5267 # Is the header compilable? 5268{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 5269$as_echo_n "checking $ac_header usability... " >&6; } 5270cat >conftest.$ac_ext <<_ACEOF 5271/* confdefs.h. */ 5272_ACEOF 5273cat confdefs.h >>conftest.$ac_ext 5274cat >>conftest.$ac_ext <<_ACEOF 5275/* end confdefs.h. */ 5276$ac_includes_default 5277#include <$ac_header> 5278_ACEOF 5279rm -f conftest.$ac_objext 5280if { (ac_try="$ac_compile" 5281case "(($ac_try" in 5282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5283 *) ac_try_echo=$ac_try;; 5284esac 5285eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5286$as_echo "$ac_try_echo") >&5 5287 (eval "$ac_compile") 2>conftest.er1 5288 ac_status=$? 5289 grep -v '^ *+' conftest.er1 >conftest.err 5290 rm -f conftest.er1 5291 cat conftest.err >&5 5292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5293 (exit $ac_status); } && { 5294 test -z "$ac_c_werror_flag" || 5295 test ! -s conftest.err 5296 } && test -s conftest.$ac_objext; then 5297 ac_header_compiler=yes 5298else 5299 $as_echo "$as_me: failed program was:" >&5 5300sed 's/^/| /' conftest.$ac_ext >&5 5301 5302 ac_header_compiler=no 5303fi 5304 5305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5306{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5307$as_echo "$ac_header_compiler" >&6; } 5308 5309# Is the header present? 5310{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 5311$as_echo_n "checking $ac_header presence... " >&6; } 5312cat >conftest.$ac_ext <<_ACEOF 5313/* confdefs.h. */ 5314_ACEOF 5315cat confdefs.h >>conftest.$ac_ext 5316cat >>conftest.$ac_ext <<_ACEOF 5317/* end confdefs.h. */ 5318#include <$ac_header> 5319_ACEOF 5320if { (ac_try="$ac_cpp conftest.$ac_ext" 5321case "(($ac_try" in 5322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5323 *) ac_try_echo=$ac_try;; 5324esac 5325eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5326$as_echo "$ac_try_echo") >&5 5327 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5328 ac_status=$? 5329 grep -v '^ *+' conftest.er1 >conftest.err 5330 rm -f conftest.er1 5331 cat conftest.err >&5 5332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5333 (exit $ac_status); } >/dev/null && { 5334 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5335 test ! -s conftest.err 5336 }; then 5337 ac_header_preproc=yes 5338else 5339 $as_echo "$as_me: failed program was:" >&5 5340sed 's/^/| /' conftest.$ac_ext >&5 5341 5342 ac_header_preproc=no 5343fi 5344 5345rm -f conftest.err conftest.$ac_ext 5346{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5347$as_echo "$ac_header_preproc" >&6; } 5348 5349# So? What about this header? 5350case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5351 yes:no: ) 5352 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5353$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5354 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5355$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5356 ac_header_preproc=yes 5357 ;; 5358 no:yes:* ) 5359 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5360$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5361 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5362$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5363 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5364$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5365 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5366$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5367 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5368$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5369 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5370$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5371 ( cat <<\_ASBOX 5372## ---------------------------------------------------------------------- ## 5373## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 5374## ---------------------------------------------------------------------- ## 5375_ASBOX 5376 ) | sed "s/^/$as_me: WARNING: /" >&2 5377 ;; 5378esac 5379{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 5380$as_echo_n "checking for $ac_header... " >&6; } 5381if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5382 $as_echo_n "(cached) " >&6 5383else 5384 eval "$as_ac_Header=\$ac_header_preproc" 5385fi 5386ac_res=`eval 'as_val=${'$as_ac_Header'} 5387 $as_echo "$as_val"'` 5388 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5389$as_echo "$ac_res" >&6; } 5390 5391fi 5392as_val=`eval 'as_val=${'$as_ac_Header'} 5393 $as_echo "$as_val"'` 5394 if test "x$as_val" = x""yes; then 5395 cat >>confdefs.h <<_ACEOF 5396#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5397_ACEOF 5398 5399fi 5400 5401done 5402 5403ac_ext=cpp 5404ac_cpp='$CXXCPP $CPPFLAGS' 5405ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5406ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5407ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5408if test -z "$CXX"; then 5409 if test -n "$CCC"; then 5410 CXX=$CCC 5411 else 5412 if test -n "$ac_tool_prefix"; then 5413 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5414 do 5415 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5416set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5417{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5418$as_echo_n "checking for $ac_word... " >&6; } 5419if test "${ac_cv_prog_CXX+set}" = set; then 5420 $as_echo_n "(cached) " >&6 5421else 5422 if test -n "$CXX"; then 5423 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5424else 5425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5426for as_dir in $PATH 5427do 5428 IFS=$as_save_IFS 5429 test -z "$as_dir" && as_dir=. 5430 for ac_exec_ext in '' $ac_executable_extensions; do 5431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5432 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5433 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5434 break 2 5435 fi 5436done 5437done 5438IFS=$as_save_IFS 5439 5440fi 5441fi 5442CXX=$ac_cv_prog_CXX 5443if test -n "$CXX"; then 5444 { $as_echo "$as_me:$LINENO: result: $CXX" >&5 5445$as_echo "$CXX" >&6; } 5446else 5447 { $as_echo "$as_me:$LINENO: result: no" >&5 5448$as_echo "no" >&6; } 5449fi 5450 5451 5452 test -n "$CXX" && break 5453 done 5454fi 5455if test -z "$CXX"; then 5456 ac_ct_CXX=$CXX 5457 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5458do 5459 # Extract the first word of "$ac_prog", so it can be a program name with args. 5460set dummy $ac_prog; ac_word=$2 5461{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5462$as_echo_n "checking for $ac_word... " >&6; } 5463if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 5464 $as_echo_n "(cached) " >&6 5465else 5466 if test -n "$ac_ct_CXX"; then 5467 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5468else 5469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5470for as_dir in $PATH 5471do 5472 IFS=$as_save_IFS 5473 test -z "$as_dir" && as_dir=. 5474 for ac_exec_ext in '' $ac_executable_extensions; do 5475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5476 ac_cv_prog_ac_ct_CXX="$ac_prog" 5477 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5478 break 2 5479 fi 5480done 5481done 5482IFS=$as_save_IFS 5483 5484fi 5485fi 5486ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5487if test -n "$ac_ct_CXX"; then 5488 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 5489$as_echo "$ac_ct_CXX" >&6; } 5490else 5491 { $as_echo "$as_me:$LINENO: result: no" >&5 5492$as_echo "no" >&6; } 5493fi 5494 5495 5496 test -n "$ac_ct_CXX" && break 5497done 5498 5499 if test "x$ac_ct_CXX" = x; then 5500 CXX="g++" 5501 else 5502 case $cross_compiling:$ac_tool_warned in 5503yes:) 5504{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5505$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5506ac_tool_warned=yes ;; 5507esac 5508 CXX=$ac_ct_CXX 5509 fi 5510fi 5511 5512 fi 5513fi 5514# Provide some information about the compiler. 5515$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5 5516set X $ac_compile 5517ac_compiler=$2 5518{ (ac_try="$ac_compiler --version >&5" 5519case "(($ac_try" in 5520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5521 *) ac_try_echo=$ac_try;; 5522esac 5523eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5524$as_echo "$ac_try_echo") >&5 5525 (eval "$ac_compiler --version >&5") 2>&5 5526 ac_status=$? 5527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5528 (exit $ac_status); } 5529{ (ac_try="$ac_compiler -v >&5" 5530case "(($ac_try" in 5531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5532 *) ac_try_echo=$ac_try;; 5533esac 5534eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5535$as_echo "$ac_try_echo") >&5 5536 (eval "$ac_compiler -v >&5") 2>&5 5537 ac_status=$? 5538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5539 (exit $ac_status); } 5540{ (ac_try="$ac_compiler -V >&5" 5541case "(($ac_try" in 5542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5543 *) ac_try_echo=$ac_try;; 5544esac 5545eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5546$as_echo "$ac_try_echo") >&5 5547 (eval "$ac_compiler -V >&5") 2>&5 5548 ac_status=$? 5549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5550 (exit $ac_status); } 5551 5552{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5553$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 5554if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5555 $as_echo_n "(cached) " >&6 5556else 5557 cat >conftest.$ac_ext <<_ACEOF 5558/* confdefs.h. */ 5559_ACEOF 5560cat confdefs.h >>conftest.$ac_ext 5561cat >>conftest.$ac_ext <<_ACEOF 5562/* end confdefs.h. */ 5563 5564int 5565main () 5566{ 5567#ifndef __GNUC__ 5568 choke me 5569#endif 5570 5571 ; 5572 return 0; 5573} 5574_ACEOF 5575rm -f conftest.$ac_objext 5576if { (ac_try="$ac_compile" 5577case "(($ac_try" in 5578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5579 *) ac_try_echo=$ac_try;; 5580esac 5581eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5582$as_echo "$ac_try_echo") >&5 5583 (eval "$ac_compile") 2>conftest.er1 5584 ac_status=$? 5585 grep -v '^ *+' conftest.er1 >conftest.err 5586 rm -f conftest.er1 5587 cat conftest.err >&5 5588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5589 (exit $ac_status); } && { 5590 test -z "$ac_cxx_werror_flag" || 5591 test ! -s conftest.err 5592 } && test -s conftest.$ac_objext; then 5593 ac_compiler_gnu=yes 5594else 5595 $as_echo "$as_me: failed program was:" >&5 5596sed 's/^/| /' conftest.$ac_ext >&5 5597 5598 ac_compiler_gnu=no 5599fi 5600 5601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5602ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5603 5604fi 5605{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 5606$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 5607if test $ac_compiler_gnu = yes; then 5608 GXX=yes 5609else 5610 GXX= 5611fi 5612ac_test_CXXFLAGS=${CXXFLAGS+set} 5613ac_save_CXXFLAGS=$CXXFLAGS 5614{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 5615$as_echo_n "checking whether $CXX accepts -g... " >&6; } 5616if test "${ac_cv_prog_cxx_g+set}" = set; then 5617 $as_echo_n "(cached) " >&6 5618else 5619 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5620 ac_cxx_werror_flag=yes 5621 ac_cv_prog_cxx_g=no 5622 CXXFLAGS="-g" 5623 cat >conftest.$ac_ext <<_ACEOF 5624/* confdefs.h. */ 5625_ACEOF 5626cat confdefs.h >>conftest.$ac_ext 5627cat >>conftest.$ac_ext <<_ACEOF 5628/* end confdefs.h. */ 5629 5630int 5631main () 5632{ 5633 5634 ; 5635 return 0; 5636} 5637_ACEOF 5638rm -f conftest.$ac_objext 5639if { (ac_try="$ac_compile" 5640case "(($ac_try" in 5641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5642 *) ac_try_echo=$ac_try;; 5643esac 5644eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5645$as_echo "$ac_try_echo") >&5 5646 (eval "$ac_compile") 2>conftest.er1 5647 ac_status=$? 5648 grep -v '^ *+' conftest.er1 >conftest.err 5649 rm -f conftest.er1 5650 cat conftest.err >&5 5651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5652 (exit $ac_status); } && { 5653 test -z "$ac_cxx_werror_flag" || 5654 test ! -s conftest.err 5655 } && test -s conftest.$ac_objext; then 5656 ac_cv_prog_cxx_g=yes 5657else 5658 $as_echo "$as_me: failed program was:" >&5 5659sed 's/^/| /' conftest.$ac_ext >&5 5660 5661 CXXFLAGS="" 5662 cat >conftest.$ac_ext <<_ACEOF 5663/* confdefs.h. */ 5664_ACEOF 5665cat confdefs.h >>conftest.$ac_ext 5666cat >>conftest.$ac_ext <<_ACEOF 5667/* end confdefs.h. */ 5668 5669int 5670main () 5671{ 5672 5673 ; 5674 return 0; 5675} 5676_ACEOF 5677rm -f conftest.$ac_objext 5678if { (ac_try="$ac_compile" 5679case "(($ac_try" in 5680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5681 *) ac_try_echo=$ac_try;; 5682esac 5683eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5684$as_echo "$ac_try_echo") >&5 5685 (eval "$ac_compile") 2>conftest.er1 5686 ac_status=$? 5687 grep -v '^ *+' conftest.er1 >conftest.err 5688 rm -f conftest.er1 5689 cat conftest.err >&5 5690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5691 (exit $ac_status); } && { 5692 test -z "$ac_cxx_werror_flag" || 5693 test ! -s conftest.err 5694 } && test -s conftest.$ac_objext; then 5695 : 5696else 5697 $as_echo "$as_me: failed program was:" >&5 5698sed 's/^/| /' conftest.$ac_ext >&5 5699 5700 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5701 CXXFLAGS="-g" 5702 cat >conftest.$ac_ext <<_ACEOF 5703/* confdefs.h. */ 5704_ACEOF 5705cat confdefs.h >>conftest.$ac_ext 5706cat >>conftest.$ac_ext <<_ACEOF 5707/* end confdefs.h. */ 5708 5709int 5710main () 5711{ 5712 5713 ; 5714 return 0; 5715} 5716_ACEOF 5717rm -f conftest.$ac_objext 5718if { (ac_try="$ac_compile" 5719case "(($ac_try" in 5720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5721 *) ac_try_echo=$ac_try;; 5722esac 5723eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5724$as_echo "$ac_try_echo") >&5 5725 (eval "$ac_compile") 2>conftest.er1 5726 ac_status=$? 5727 grep -v '^ *+' conftest.er1 >conftest.err 5728 rm -f conftest.er1 5729 cat conftest.err >&5 5730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5731 (exit $ac_status); } && { 5732 test -z "$ac_cxx_werror_flag" || 5733 test ! -s conftest.err 5734 } && test -s conftest.$ac_objext; then 5735 ac_cv_prog_cxx_g=yes 5736else 5737 $as_echo "$as_me: failed program was:" >&5 5738sed 's/^/| /' conftest.$ac_ext >&5 5739 5740 5741fi 5742 5743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5744fi 5745 5746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5747fi 5748 5749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5750 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5751fi 5752{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 5753$as_echo "$ac_cv_prog_cxx_g" >&6; } 5754if test "$ac_test_CXXFLAGS" = set; then 5755 CXXFLAGS=$ac_save_CXXFLAGS 5756elif test $ac_cv_prog_cxx_g = yes; then 5757 if test "$GXX" = yes; then 5758 CXXFLAGS="-g -O2" 5759 else 5760 CXXFLAGS="-g" 5761 fi 5762else 5763 if test "$GXX" = yes; then 5764 CXXFLAGS="-O2" 5765 else 5766 CXXFLAGS= 5767 fi 5768fi 5769ac_ext=cpp 5770ac_cpp='$CXXCPP $CPPFLAGS' 5771ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5772ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5773ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5774 5775depcc="$CXX" am_compiler_list= 5776 5777{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5778$as_echo_n "checking dependency style of $depcc... " >&6; } 5779if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 5780 $as_echo_n "(cached) " >&6 5781else 5782 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5783 # We make a subdir and do the tests there. Otherwise we can end up 5784 # making bogus files that we don't know about and never remove. For 5785 # instance it was reported that on HP-UX the gcc test will end up 5786 # making a dummy file named `D' -- because `-MD' means `put the output 5787 # in D'. 5788 mkdir conftest.dir 5789 # Copy depcomp to subdir because otherwise we won't find it if we're 5790 # using a relative directory. 5791 cp "$am_depcomp" conftest.dir 5792 cd conftest.dir 5793 # We will build objects and dependencies in a subdirectory because 5794 # it helps to detect inapplicable dependency modes. For instance 5795 # both Tru64's cc and ICC support -MD to output dependencies as a 5796 # side effect of compilation, but ICC will put the dependencies in 5797 # the current directory while Tru64 will put them in the object 5798 # directory. 5799 mkdir sub 5800 5801 am_cv_CXX_dependencies_compiler_type=none 5802 if test "$am_compiler_list" = ""; then 5803 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5804 fi 5805 am__universal=false 5806 case " $depcc " in #( 5807 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5808 esac 5809 5810 for depmode in $am_compiler_list; do 5811 # Setup a source with many dependencies, because some compilers 5812 # like to wrap large dependency lists on column 80 (with \), and 5813 # we should not choose a depcomp mode which is confused by this. 5814 # 5815 # We need to recreate these files for each test, as the compiler may 5816 # overwrite some of them when testing with obscure command lines. 5817 # This happens at least with the AIX C compiler. 5818 : > sub/conftest.c 5819 for i in 1 2 3 4 5 6; do 5820 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5821 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5822 # Solaris 8's {/usr,}/bin/sh. 5823 touch sub/conftst$i.h 5824 done 5825 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5826 5827 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5828 # mode. It turns out that the SunPro C++ compiler does not properly 5829 # handle `-M -o', and we need to detect this. Also, some Intel 5830 # versions had trouble with output in subdirs 5831 am__obj=sub/conftest.${OBJEXT-o} 5832 am__minus_obj="-o $am__obj" 5833 case $depmode in 5834 gcc) 5835 # This depmode causes a compiler race in universal mode. 5836 test "$am__universal" = false || continue 5837 ;; 5838 nosideeffect) 5839 # after this tag, mechanisms are not by side-effect, so they'll 5840 # only be used when explicitly requested 5841 if test "x$enable_dependency_tracking" = xyes; then 5842 continue 5843 else 5844 break 5845 fi 5846 ;; 5847 msvisualcpp | msvcmsys) 5848 # This compiler won't grok `-c -o', but also, the minuso test has 5849 # not run yet. These depmodes are late enough in the game, and 5850 # so weak that their functioning should not be impacted. 5851 am__obj=conftest.${OBJEXT-o} 5852 am__minus_obj= 5853 ;; 5854 none) break ;; 5855 esac 5856 if depmode=$depmode \ 5857 source=sub/conftest.c object=$am__obj \ 5858 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5859 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5860 >/dev/null 2>conftest.err && 5861 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5862 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5863 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5864 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5865 # icc doesn't choke on unknown options, it will just issue warnings 5866 # or remarks (even with -Werror). So we grep stderr for any message 5867 # that says an option was ignored or not supported. 5868 # When given -MP, icc 7.0 and 7.1 complain thusly: 5869 # icc: Command line warning: ignoring option '-M'; no argument required 5870 # The diagnosis changed in icc 8.0: 5871 # icc: Command line remark: option '-MP' not supported 5872 if (grep 'ignoring option' conftest.err || 5873 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5874 am_cv_CXX_dependencies_compiler_type=$depmode 5875 break 5876 fi 5877 fi 5878 done 5879 5880 cd .. 5881 rm -rf conftest.dir 5882else 5883 am_cv_CXX_dependencies_compiler_type=none 5884fi 5885 5886fi 5887{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 5888$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 5889CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5890 5891 if 5892 test "x$enable_dependency_tracking" != xno \ 5893 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5894 am__fastdepCXX_TRUE= 5895 am__fastdepCXX_FALSE='#' 5896else 5897 am__fastdepCXX_TRUE='#' 5898 am__fastdepCXX_FALSE= 5899fi 5900 5901 5902 5903 5904if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5905 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5906 (test "X$CXX" != "Xg++"))) ; then 5907 ac_ext=cpp 5908ac_cpp='$CXXCPP $CPPFLAGS' 5909ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5910ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5911ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5912{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5913$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 5914if test -z "$CXXCPP"; then 5915 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5916 $as_echo_n "(cached) " >&6 5917else 5918 # Double quotes because CXXCPP needs to be expanded 5919 for CXXCPP in "$CXX -E" "/lib/cpp" 5920 do 5921 ac_preproc_ok=false 5922for ac_cxx_preproc_warn_flag in '' yes 5923do 5924 # Use a header file that comes with gcc, so configuring glibc 5925 # with a fresh cross-compiler works. 5926 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5927 # <limits.h> exists even on freestanding compilers. 5928 # On the NeXT, cc -E runs the code through the compiler's parser, 5929 # not just through cpp. "Syntax error" is here to catch this case. 5930 cat >conftest.$ac_ext <<_ACEOF 5931/* confdefs.h. */ 5932_ACEOF 5933cat confdefs.h >>conftest.$ac_ext 5934cat >>conftest.$ac_ext <<_ACEOF 5935/* end confdefs.h. */ 5936#ifdef __STDC__ 5937# include <limits.h> 5938#else 5939# include <assert.h> 5940#endif 5941 Syntax error 5942_ACEOF 5943if { (ac_try="$ac_cpp conftest.$ac_ext" 5944case "(($ac_try" in 5945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5946 *) ac_try_echo=$ac_try;; 5947esac 5948eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5949$as_echo "$ac_try_echo") >&5 5950 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5951 ac_status=$? 5952 grep -v '^ *+' conftest.er1 >conftest.err 5953 rm -f conftest.er1 5954 cat conftest.err >&5 5955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5956 (exit $ac_status); } >/dev/null && { 5957 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5958 test ! -s conftest.err 5959 }; then 5960 : 5961else 5962 $as_echo "$as_me: failed program was:" >&5 5963sed 's/^/| /' conftest.$ac_ext >&5 5964 5965 # Broken: fails on valid input. 5966continue 5967fi 5968 5969rm -f conftest.err conftest.$ac_ext 5970 5971 # OK, works on sane cases. Now check whether nonexistent headers 5972 # can be detected and how. 5973 cat >conftest.$ac_ext <<_ACEOF 5974/* confdefs.h. */ 5975_ACEOF 5976cat confdefs.h >>conftest.$ac_ext 5977cat >>conftest.$ac_ext <<_ACEOF 5978/* end confdefs.h. */ 5979#include <ac_nonexistent.h> 5980_ACEOF 5981if { (ac_try="$ac_cpp conftest.$ac_ext" 5982case "(($ac_try" in 5983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5984 *) ac_try_echo=$ac_try;; 5985esac 5986eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5987$as_echo "$ac_try_echo") >&5 5988 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5989 ac_status=$? 5990 grep -v '^ *+' conftest.er1 >conftest.err 5991 rm -f conftest.er1 5992 cat conftest.err >&5 5993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5994 (exit $ac_status); } >/dev/null && { 5995 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5996 test ! -s conftest.err 5997 }; then 5998 # Broken: success on invalid input. 5999continue 6000else 6001 $as_echo "$as_me: failed program was:" >&5 6002sed 's/^/| /' conftest.$ac_ext >&5 6003 6004 # Passes both tests. 6005ac_preproc_ok=: 6006break 6007fi 6008 6009rm -f conftest.err conftest.$ac_ext 6010 6011done 6012# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6013rm -f conftest.err conftest.$ac_ext 6014if $ac_preproc_ok; then 6015 break 6016fi 6017 6018 done 6019 ac_cv_prog_CXXCPP=$CXXCPP 6020 6021fi 6022 CXXCPP=$ac_cv_prog_CXXCPP 6023else 6024 ac_cv_prog_CXXCPP=$CXXCPP 6025fi 6026{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5 6027$as_echo "$CXXCPP" >&6; } 6028ac_preproc_ok=false 6029for ac_cxx_preproc_warn_flag in '' yes 6030do 6031 # Use a header file that comes with gcc, so configuring glibc 6032 # with a fresh cross-compiler works. 6033 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6034 # <limits.h> exists even on freestanding compilers. 6035 # On the NeXT, cc -E runs the code through the compiler's parser, 6036 # not just through cpp. "Syntax error" is here to catch this case. 6037 cat >conftest.$ac_ext <<_ACEOF 6038/* confdefs.h. */ 6039_ACEOF 6040cat confdefs.h >>conftest.$ac_ext 6041cat >>conftest.$ac_ext <<_ACEOF 6042/* end confdefs.h. */ 6043#ifdef __STDC__ 6044# include <limits.h> 6045#else 6046# include <assert.h> 6047#endif 6048 Syntax error 6049_ACEOF 6050if { (ac_try="$ac_cpp conftest.$ac_ext" 6051case "(($ac_try" in 6052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6053 *) ac_try_echo=$ac_try;; 6054esac 6055eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6056$as_echo "$ac_try_echo") >&5 6057 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6058 ac_status=$? 6059 grep -v '^ *+' conftest.er1 >conftest.err 6060 rm -f conftest.er1 6061 cat conftest.err >&5 6062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6063 (exit $ac_status); } >/dev/null && { 6064 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6065 test ! -s conftest.err 6066 }; then 6067 : 6068else 6069 $as_echo "$as_me: failed program was:" >&5 6070sed 's/^/| /' conftest.$ac_ext >&5 6071 6072 # Broken: fails on valid input. 6073continue 6074fi 6075 6076rm -f conftest.err conftest.$ac_ext 6077 6078 # OK, works on sane cases. Now check whether nonexistent headers 6079 # can be detected and how. 6080 cat >conftest.$ac_ext <<_ACEOF 6081/* confdefs.h. */ 6082_ACEOF 6083cat confdefs.h >>conftest.$ac_ext 6084cat >>conftest.$ac_ext <<_ACEOF 6085/* end confdefs.h. */ 6086#include <ac_nonexistent.h> 6087_ACEOF 6088if { (ac_try="$ac_cpp conftest.$ac_ext" 6089case "(($ac_try" in 6090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6091 *) ac_try_echo=$ac_try;; 6092esac 6093eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6094$as_echo "$ac_try_echo") >&5 6095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6096 ac_status=$? 6097 grep -v '^ *+' conftest.er1 >conftest.err 6098 rm -f conftest.er1 6099 cat conftest.err >&5 6100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6101 (exit $ac_status); } >/dev/null && { 6102 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6103 test ! -s conftest.err 6104 }; then 6105 # Broken: success on invalid input. 6106continue 6107else 6108 $as_echo "$as_me: failed program was:" >&5 6109sed 's/^/| /' conftest.$ac_ext >&5 6110 6111 # Passes both tests. 6112ac_preproc_ok=: 6113break 6114fi 6115 6116rm -f conftest.err conftest.$ac_ext 6117 6118done 6119# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6120rm -f conftest.err conftest.$ac_ext 6121if $ac_preproc_ok; then 6122 : 6123else 6124 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 6125$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6126{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6127See \`config.log' for more details." >&5 6128$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6129See \`config.log' for more details." >&2;} 6130 { (exit 1); exit 1; }; }; } 6131fi 6132 6133ac_ext=cpp 6134ac_cpp='$CXXCPP $CPPFLAGS' 6135ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6136ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6137ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6138 6139fi 6140 6141 6142ac_ext=f 6143ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6144ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6145ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6146if test -n "$ac_tool_prefix"; then 6147 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 6148 do 6149 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6150set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6151{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6152$as_echo_n "checking for $ac_word... " >&6; } 6153if test "${ac_cv_prog_F77+set}" = set; then 6154 $as_echo_n "(cached) " >&6 6155else 6156 if test -n "$F77"; then 6157 ac_cv_prog_F77="$F77" # Let the user override the test. 6158else 6159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6160for as_dir in $PATH 6161do 6162 IFS=$as_save_IFS 6163 test -z "$as_dir" && as_dir=. 6164 for ac_exec_ext in '' $ac_executable_extensions; do 6165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6166 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 6167 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6168 break 2 6169 fi 6170done 6171done 6172IFS=$as_save_IFS 6173 6174fi 6175fi 6176F77=$ac_cv_prog_F77 6177if test -n "$F77"; then 6178 { $as_echo "$as_me:$LINENO: result: $F77" >&5 6179$as_echo "$F77" >&6; } 6180else 6181 { $as_echo "$as_me:$LINENO: result: no" >&5 6182$as_echo "no" >&6; } 6183fi 6184 6185 6186 test -n "$F77" && break 6187 done 6188fi 6189if test -z "$F77"; then 6190 ac_ct_F77=$F77 6191 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 6192do 6193 # Extract the first word of "$ac_prog", so it can be a program name with args. 6194set dummy $ac_prog; ac_word=$2 6195{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6196$as_echo_n "checking for $ac_word... " >&6; } 6197if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 6198 $as_echo_n "(cached) " >&6 6199else 6200 if test -n "$ac_ct_F77"; then 6201 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 6202else 6203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6204for as_dir in $PATH 6205do 6206 IFS=$as_save_IFS 6207 test -z "$as_dir" && as_dir=. 6208 for ac_exec_ext in '' $ac_executable_extensions; do 6209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6210 ac_cv_prog_ac_ct_F77="$ac_prog" 6211 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6212 break 2 6213 fi 6214done 6215done 6216IFS=$as_save_IFS 6217 6218fi 6219fi 6220ac_ct_F77=$ac_cv_prog_ac_ct_F77 6221if test -n "$ac_ct_F77"; then 6222 { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 6223$as_echo "$ac_ct_F77" >&6; } 6224else 6225 { $as_echo "$as_me:$LINENO: result: no" >&5 6226$as_echo "no" >&6; } 6227fi 6228 6229 6230 test -n "$ac_ct_F77" && break 6231done 6232 6233 if test "x$ac_ct_F77" = x; then 6234 F77="" 6235 else 6236 case $cross_compiling:$ac_tool_warned in 6237yes:) 6238{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6239$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6240ac_tool_warned=yes ;; 6241esac 6242 F77=$ac_ct_F77 6243 fi 6244fi 6245 6246 6247# Provide some information about the compiler. 6248$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 6249set X $ac_compile 6250ac_compiler=$2 6251{ (ac_try="$ac_compiler --version >&5" 6252case "(($ac_try" in 6253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6254 *) ac_try_echo=$ac_try;; 6255esac 6256eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6257$as_echo "$ac_try_echo") >&5 6258 (eval "$ac_compiler --version >&5") 2>&5 6259 ac_status=$? 6260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6261 (exit $ac_status); } 6262{ (ac_try="$ac_compiler -v >&5" 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_compiler -v >&5") 2>&5 6270 ac_status=$? 6271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6272 (exit $ac_status); } 6273{ (ac_try="$ac_compiler -V >&5" 6274case "(($ac_try" in 6275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6276 *) ac_try_echo=$ac_try;; 6277esac 6278eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6279$as_echo "$ac_try_echo") >&5 6280 (eval "$ac_compiler -V >&5") 2>&5 6281 ac_status=$? 6282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6283 (exit $ac_status); } 6284rm -f a.out 6285 6286# If we don't use `.F' as extension, the preprocessor is not run on the 6287# input file. (Note that this only needs to work for GNU compilers.) 6288ac_save_ext=$ac_ext 6289ac_ext=F 6290{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 6291$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; } 6292if test "${ac_cv_f77_compiler_gnu+set}" = set; then 6293 $as_echo_n "(cached) " >&6 6294else 6295 cat >conftest.$ac_ext <<_ACEOF 6296 program main 6297#ifndef __GNUC__ 6298 choke me 6299#endif 6300 6301 end 6302_ACEOF 6303rm -f conftest.$ac_objext 6304if { (ac_try="$ac_compile" 6305case "(($ac_try" in 6306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6307 *) ac_try_echo=$ac_try;; 6308esac 6309eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6310$as_echo "$ac_try_echo") >&5 6311 (eval "$ac_compile") 2>conftest.er1 6312 ac_status=$? 6313 grep -v '^ *+' conftest.er1 >conftest.err 6314 rm -f conftest.er1 6315 cat conftest.err >&5 6316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6317 (exit $ac_status); } && { 6318 test -z "$ac_f77_werror_flag" || 6319 test ! -s conftest.err 6320 } && test -s conftest.$ac_objext; then 6321 ac_compiler_gnu=yes 6322else 6323 $as_echo "$as_me: failed program was:" >&5 6324sed 's/^/| /' conftest.$ac_ext >&5 6325 6326 ac_compiler_gnu=no 6327fi 6328 6329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6330ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6331 6332fi 6333{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 6334$as_echo "$ac_cv_f77_compiler_gnu" >&6; } 6335ac_ext=$ac_save_ext 6336ac_test_FFLAGS=${FFLAGS+set} 6337ac_save_FFLAGS=$FFLAGS 6338FFLAGS= 6339{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 6340$as_echo_n "checking whether $F77 accepts -g... " >&6; } 6341if test "${ac_cv_prog_f77_g+set}" = set; then 6342 $as_echo_n "(cached) " >&6 6343else 6344 FFLAGS=-g 6345cat >conftest.$ac_ext <<_ACEOF 6346 program main 6347 6348 end 6349_ACEOF 6350rm -f conftest.$ac_objext 6351if { (ac_try="$ac_compile" 6352case "(($ac_try" in 6353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6354 *) ac_try_echo=$ac_try;; 6355esac 6356eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6357$as_echo "$ac_try_echo") >&5 6358 (eval "$ac_compile") 2>conftest.er1 6359 ac_status=$? 6360 grep -v '^ *+' conftest.er1 >conftest.err 6361 rm -f conftest.er1 6362 cat conftest.err >&5 6363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6364 (exit $ac_status); } && { 6365 test -z "$ac_f77_werror_flag" || 6366 test ! -s conftest.err 6367 } && test -s conftest.$ac_objext; then 6368 ac_cv_prog_f77_g=yes 6369else 6370 $as_echo "$as_me: failed program was:" >&5 6371sed 's/^/| /' conftest.$ac_ext >&5 6372 6373 ac_cv_prog_f77_g=no 6374fi 6375 6376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6377 6378fi 6379{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6380$as_echo "$ac_cv_prog_f77_g" >&6; } 6381if test "$ac_test_FFLAGS" = set; then 6382 FFLAGS=$ac_save_FFLAGS 6383elif test $ac_cv_prog_f77_g = yes; then 6384 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6385 FFLAGS="-g -O2" 6386 else 6387 FFLAGS="-g" 6388 fi 6389else 6390 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6391 FFLAGS="-O2" 6392 else 6393 FFLAGS= 6394 fi 6395fi 6396 6397if test $ac_compiler_gnu = yes; then 6398 G77=yes 6399else 6400 G77= 6401fi 6402ac_ext=c 6403ac_cpp='$CPP $CPPFLAGS' 6404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6406ac_compiler_gnu=$ac_cv_c_compiler_gnu 6407 6408 6409 6410# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6411# find the maximum length of command line arguments 6412{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6413$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6414if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6415 $as_echo_n "(cached) " >&6 6416else 6417 i=0 6418 teststring="ABCD" 6419 6420 case $build_os in 6421 msdosdjgpp*) 6422 # On DJGPP, this test can blow up pretty badly due to problems in libc 6423 # (any single argument exceeding 2000 bytes causes a buffer overrun 6424 # during glob expansion). Even if it were fixed, the result of this 6425 # check would be larger than it should be. 6426 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6427 ;; 6428 6429 gnu*) 6430 # Under GNU Hurd, this test is not required because there is 6431 # no limit to the length of command line arguments. 6432 # Libtool will interpret -1 as no limit whatsoever 6433 lt_cv_sys_max_cmd_len=-1; 6434 ;; 6435 6436 cygwin* | mingw*) 6437 # On Win9x/ME, this test blows up -- it succeeds, but takes 6438 # about 5 minutes as the teststring grows exponentially. 6439 # Worse, since 9x/ME are not pre-emptively multitasking, 6440 # you end up with a "frozen" computer, even though with patience 6441 # the test eventually succeeds (with a max line length of 256k). 6442 # Instead, let's just punt: use the minimum linelength reported by 6443 # all of the supported platforms: 8192 (on NT/2K/XP). 6444 lt_cv_sys_max_cmd_len=8192; 6445 ;; 6446 6447 amigaos*) 6448 # On AmigaOS with pdksh, this test takes hours, literally. 6449 # So we just punt and use a minimum line length of 8192. 6450 lt_cv_sys_max_cmd_len=8192; 6451 ;; 6452 6453 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6454 # This has been around since 386BSD, at least. Likely further. 6455 if test -x /sbin/sysctl; then 6456 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6457 elif test -x /usr/sbin/sysctl; then 6458 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6459 else 6460 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6461 fi 6462 # And add a safety zone 6463 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6464 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6465 ;; 6466 6467 interix*) 6468 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6469 lt_cv_sys_max_cmd_len=196608 6470 ;; 6471 6472 osf*) 6473 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6474 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6475 # nice to cause kernel panics so lets avoid the loop below. 6476 # First set a reasonable default. 6477 lt_cv_sys_max_cmd_len=16384 6478 # 6479 if test -x /sbin/sysconfig; then 6480 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6481 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6482 esac 6483 fi 6484 ;; 6485 sco3.2v5*) 6486 lt_cv_sys_max_cmd_len=102400 6487 ;; 6488 sysv5* | sco5v6* | sysv4.2uw2*) 6489 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6490 if test -n "$kargmax"; then 6491 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6492 else 6493 lt_cv_sys_max_cmd_len=32768 6494 fi 6495 ;; 6496 *) 6497 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6498 if test -n "$lt_cv_sys_max_cmd_len"; then 6499 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6500 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6501 else 6502 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6503 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6504 = "XX$teststring") >/dev/null 2>&1 && 6505 new_result=`expr "X$teststring" : ".*" 2>&1` && 6506 lt_cv_sys_max_cmd_len=$new_result && 6507 test $i != 17 # 1/2 MB should be enough 6508 do 6509 i=`expr $i + 1` 6510 teststring=$teststring$teststring 6511 done 6512 teststring= 6513 # Add a significant safety factor because C++ compilers can tack on massive 6514 # amounts of additional arguments before passing them to the linker. 6515 # It appears as though 1/2 is a usable value. 6516 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6517 fi 6518 ;; 6519 esac 6520 6521fi 6522 6523if test -n $lt_cv_sys_max_cmd_len ; then 6524 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6525$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6526else 6527 { $as_echo "$as_me:$LINENO: result: none" >&5 6528$as_echo "none" >&6; } 6529fi 6530 6531 6532 6533 6534 6535# Check for command to grab the raw symbol name followed by C symbol from nm. 6536{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6537$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6538if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6539 $as_echo_n "(cached) " >&6 6540else 6541 6542# These are sane defaults that work on at least a few old systems. 6543# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6544 6545# Character class describing NM global symbol codes. 6546symcode='[BCDEGRST]' 6547 6548# Regexp to match symbols that can be accessed directly from C. 6549sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6550 6551# Transform an extracted symbol line into a proper C declaration 6552lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6553 6554# Transform an extracted symbol line into symbol name and symbol address 6555lt_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'" 6556 6557# Define system-specific variables. 6558case $host_os in 6559aix*) 6560 symcode='[BCDT]' 6561 ;; 6562cygwin* | mingw* | pw32*) 6563 symcode='[ABCDGISTW]' 6564 ;; 6565hpux*) # Its linker distinguishes data from code symbols 6566 if test "$host_cpu" = ia64; then 6567 symcode='[ABCDEGRST]' 6568 fi 6569 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6570 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'" 6571 ;; 6572linux* | k*bsd*-gnu) 6573 if test "$host_cpu" = ia64; then 6574 symcode='[ABCDGIRSTW]' 6575 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6576 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'" 6577 fi 6578 ;; 6579irix* | nonstopux*) 6580 symcode='[BCDEGRST]' 6581 ;; 6582osf*) 6583 symcode='[BCDEGQRST]' 6584 ;; 6585solaris*) 6586 symcode='[BDRT]' 6587 ;; 6588sco3.2v5*) 6589 symcode='[DT]' 6590 ;; 6591sysv4.2uw2*) 6592 symcode='[DT]' 6593 ;; 6594sysv5* | sco5v6* | unixware* | OpenUNIX*) 6595 symcode='[ABDT]' 6596 ;; 6597sysv4) 6598 symcode='[DFNSTU]' 6599 ;; 6600esac 6601 6602# Handle CRLF in mingw tool chain 6603opt_cr= 6604case $build_os in 6605mingw*) 6606 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6607 ;; 6608esac 6609 6610# If we're using GNU nm, then use its standard symbol codes. 6611case `$NM -V 2>&1` in 6612*GNU* | *'with BFD'*) 6613 symcode='[ABCDGIRSTW]' ;; 6614esac 6615 6616# Try without a prefix undercore, then with it. 6617for ac_symprfx in "" "_"; do 6618 6619 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6620 symxfrm="\\1 $ac_symprfx\\2 \\2" 6621 6622 # Write the raw and C identifiers. 6623 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6624 6625 # Check to see that the pipe works correctly. 6626 pipe_works=no 6627 6628 rm -f conftest* 6629 cat > conftest.$ac_ext <<EOF 6630#ifdef __cplusplus 6631extern "C" { 6632#endif 6633char nm_test_var; 6634void nm_test_func(){} 6635#ifdef __cplusplus 6636} 6637#endif 6638int main(){nm_test_var='a';nm_test_func();return(0);} 6639EOF 6640 6641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6642 (eval $ac_compile) 2>&5 6643 ac_status=$? 6644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6645 (exit $ac_status); }; then 6646 # Now try to grab the symbols. 6647 nlist=conftest.nm 6648 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6649 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6650 ac_status=$? 6651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6652 (exit $ac_status); } && test -s "$nlist"; then 6653 # Try sorting and uniquifying the output. 6654 if sort "$nlist" | uniq > "$nlist"T; then 6655 mv -f "$nlist"T "$nlist" 6656 else 6657 rm -f "$nlist"T 6658 fi 6659 6660 # Make sure that we snagged all the symbols we need. 6661 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6662 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6663 cat <<EOF > conftest.$ac_ext 6664#ifdef __cplusplus 6665extern "C" { 6666#endif 6667 6668EOF 6669 # Now generate the symbol file. 6670 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6671 6672 cat <<EOF >> conftest.$ac_ext 6673#if defined (__STDC__) && __STDC__ 6674# define lt_ptr_t void * 6675#else 6676# define lt_ptr_t char * 6677# define const 6678#endif 6679 6680/* The mapping between symbol names and symbols. */ 6681const struct { 6682 const char *name; 6683 lt_ptr_t address; 6684} 6685lt_preloaded_symbols[] = 6686{ 6687EOF 6688 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6689 cat <<\EOF >> conftest.$ac_ext 6690 {0, (lt_ptr_t) 0} 6691}; 6692 6693#ifdef __cplusplus 6694} 6695#endif 6696EOF 6697 # Now try linking the two files. 6698 mv conftest.$ac_objext conftstm.$ac_objext 6699 lt_save_LIBS="$LIBS" 6700 lt_save_CFLAGS="$CFLAGS" 6701 LIBS="conftstm.$ac_objext" 6702 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6704 (eval $ac_link) 2>&5 6705 ac_status=$? 6706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6707 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6708 pipe_works=yes 6709 fi 6710 LIBS="$lt_save_LIBS" 6711 CFLAGS="$lt_save_CFLAGS" 6712 else 6713 echo "cannot find nm_test_func in $nlist" >&5 6714 fi 6715 else 6716 echo "cannot find nm_test_var in $nlist" >&5 6717 fi 6718 else 6719 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6720 fi 6721 else 6722 echo "$progname: failed program was:" >&5 6723 cat conftest.$ac_ext >&5 6724 fi 6725 rm -rf conftest* conftst* 6726 6727 # Do not use the global_symbol_pipe unless it works. 6728 if test "$pipe_works" = yes; then 6729 break 6730 else 6731 lt_cv_sys_global_symbol_pipe= 6732 fi 6733done 6734 6735fi 6736 6737if test -z "$lt_cv_sys_global_symbol_pipe"; then 6738 lt_cv_sys_global_symbol_to_cdecl= 6739fi 6740if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6741 { $as_echo "$as_me:$LINENO: result: failed" >&5 6742$as_echo "failed" >&6; } 6743else 6744 { $as_echo "$as_me:$LINENO: result: ok" >&5 6745$as_echo "ok" >&6; } 6746fi 6747 6748{ $as_echo "$as_me:$LINENO: checking for objdir" >&5 6749$as_echo_n "checking for objdir... " >&6; } 6750if test "${lt_cv_objdir+set}" = set; then 6751 $as_echo_n "(cached) " >&6 6752else 6753 rm -f .libs 2>/dev/null 6754mkdir .libs 2>/dev/null 6755if test -d .libs; then 6756 lt_cv_objdir=.libs 6757else 6758 # MS-DOS does not allow filenames that begin with a dot. 6759 lt_cv_objdir=_libs 6760fi 6761rmdir .libs 2>/dev/null 6762fi 6763{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6764$as_echo "$lt_cv_objdir" >&6; } 6765objdir=$lt_cv_objdir 6766 6767 6768 6769 6770 6771case $host_os in 6772aix3*) 6773 # AIX sometimes has problems with the GCC collect2 program. For some 6774 # reason, if we set the COLLECT_NAMES environment variable, the problems 6775 # vanish in a puff of smoke. 6776 if test "X${COLLECT_NAMES+set}" != Xset; then 6777 COLLECT_NAMES= 6778 export COLLECT_NAMES 6779 fi 6780 ;; 6781esac 6782 6783# Sed substitution that helps us do robust quoting. It backslashifies 6784# metacharacters that are still active within double-quoted strings. 6785Xsed='sed -e 1s/^X//' 6786sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6787 6788# Same as above, but do not quote variable references. 6789double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6790 6791# Sed substitution to delay expansion of an escaped shell variable in a 6792# double_quote_subst'ed string. 6793delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6794 6795# Sed substitution to avoid accidental globbing in evaled expressions 6796no_glob_subst='s/\*/\\\*/g' 6797 6798# Constants: 6799rm="rm -f" 6800 6801# Global variables: 6802default_ofile=libtool 6803can_build_shared=yes 6804 6805# All known linkers require a `.a' archive for static linking (except MSVC, 6806# which needs '.lib'). 6807libext=a 6808ltmain="$ac_aux_dir/ltmain.sh" 6809ofile="$default_ofile" 6810with_gnu_ld="$lt_cv_prog_gnu_ld" 6811 6812if test -n "$ac_tool_prefix"; then 6813 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6814set dummy ${ac_tool_prefix}ar; ac_word=$2 6815{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6816$as_echo_n "checking for $ac_word... " >&6; } 6817if test "${ac_cv_prog_AR+set}" = set; then 6818 $as_echo_n "(cached) " >&6 6819else 6820 if test -n "$AR"; then 6821 ac_cv_prog_AR="$AR" # Let the user override the test. 6822else 6823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6824for as_dir in $PATH 6825do 6826 IFS=$as_save_IFS 6827 test -z "$as_dir" && as_dir=. 6828 for ac_exec_ext in '' $ac_executable_extensions; do 6829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6830 ac_cv_prog_AR="${ac_tool_prefix}ar" 6831 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6832 break 2 6833 fi 6834done 6835done 6836IFS=$as_save_IFS 6837 6838fi 6839fi 6840AR=$ac_cv_prog_AR 6841if test -n "$AR"; then 6842 { $as_echo "$as_me:$LINENO: result: $AR" >&5 6843$as_echo "$AR" >&6; } 6844else 6845 { $as_echo "$as_me:$LINENO: result: no" >&5 6846$as_echo "no" >&6; } 6847fi 6848 6849 6850fi 6851if test -z "$ac_cv_prog_AR"; then 6852 ac_ct_AR=$AR 6853 # Extract the first word of "ar", so it can be a program name with args. 6854set dummy ar; ac_word=$2 6855{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6856$as_echo_n "checking for $ac_word... " >&6; } 6857if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6858 $as_echo_n "(cached) " >&6 6859else 6860 if test -n "$ac_ct_AR"; then 6861 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6862else 6863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6864for as_dir in $PATH 6865do 6866 IFS=$as_save_IFS 6867 test -z "$as_dir" && as_dir=. 6868 for ac_exec_ext in '' $ac_executable_extensions; do 6869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6870 ac_cv_prog_ac_ct_AR="ar" 6871 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6872 break 2 6873 fi 6874done 6875done 6876IFS=$as_save_IFS 6877 6878fi 6879fi 6880ac_ct_AR=$ac_cv_prog_ac_ct_AR 6881if test -n "$ac_ct_AR"; then 6882 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6883$as_echo "$ac_ct_AR" >&6; } 6884else 6885 { $as_echo "$as_me:$LINENO: result: no" >&5 6886$as_echo "no" >&6; } 6887fi 6888 6889 if test "x$ac_ct_AR" = x; then 6890 AR="false" 6891 else 6892 case $cross_compiling:$ac_tool_warned in 6893yes:) 6894{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6895$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6896ac_tool_warned=yes ;; 6897esac 6898 AR=$ac_ct_AR 6899 fi 6900else 6901 AR="$ac_cv_prog_AR" 6902fi 6903 6904if test -n "$ac_tool_prefix"; then 6905 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6906set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6907{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6908$as_echo_n "checking for $ac_word... " >&6; } 6909if test "${ac_cv_prog_RANLIB+set}" = set; then 6910 $as_echo_n "(cached) " >&6 6911else 6912 if test -n "$RANLIB"; then 6913 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6914else 6915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6916for as_dir in $PATH 6917do 6918 IFS=$as_save_IFS 6919 test -z "$as_dir" && as_dir=. 6920 for ac_exec_ext in '' $ac_executable_extensions; do 6921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6922 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6923 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6924 break 2 6925 fi 6926done 6927done 6928IFS=$as_save_IFS 6929 6930fi 6931fi 6932RANLIB=$ac_cv_prog_RANLIB 6933if test -n "$RANLIB"; then 6934 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 6935$as_echo "$RANLIB" >&6; } 6936else 6937 { $as_echo "$as_me:$LINENO: result: no" >&5 6938$as_echo "no" >&6; } 6939fi 6940 6941 6942fi 6943if test -z "$ac_cv_prog_RANLIB"; then 6944 ac_ct_RANLIB=$RANLIB 6945 # Extract the first word of "ranlib", so it can be a program name with args. 6946set dummy ranlib; ac_word=$2 6947{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6948$as_echo_n "checking for $ac_word... " >&6; } 6949if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6950 $as_echo_n "(cached) " >&6 6951else 6952 if test -n "$ac_ct_RANLIB"; then 6953 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6954else 6955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6956for as_dir in $PATH 6957do 6958 IFS=$as_save_IFS 6959 test -z "$as_dir" && as_dir=. 6960 for ac_exec_ext in '' $ac_executable_extensions; do 6961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6962 ac_cv_prog_ac_ct_RANLIB="ranlib" 6963 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6964 break 2 6965 fi 6966done 6967done 6968IFS=$as_save_IFS 6969 6970fi 6971fi 6972ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6973if test -n "$ac_ct_RANLIB"; then 6974 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6975$as_echo "$ac_ct_RANLIB" >&6; } 6976else 6977 { $as_echo "$as_me:$LINENO: result: no" >&5 6978$as_echo "no" >&6; } 6979fi 6980 6981 if test "x$ac_ct_RANLIB" = x; then 6982 RANLIB=":" 6983 else 6984 case $cross_compiling:$ac_tool_warned in 6985yes:) 6986{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6987$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6988ac_tool_warned=yes ;; 6989esac 6990 RANLIB=$ac_ct_RANLIB 6991 fi 6992else 6993 RANLIB="$ac_cv_prog_RANLIB" 6994fi 6995 6996if test -n "$ac_tool_prefix"; then 6997 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6998set dummy ${ac_tool_prefix}strip; ac_word=$2 6999{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7000$as_echo_n "checking for $ac_word... " >&6; } 7001if test "${ac_cv_prog_STRIP+set}" = set; then 7002 $as_echo_n "(cached) " >&6 7003else 7004 if test -n "$STRIP"; then 7005 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7006else 7007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7008for as_dir in $PATH 7009do 7010 IFS=$as_save_IFS 7011 test -z "$as_dir" && as_dir=. 7012 for ac_exec_ext in '' $ac_executable_extensions; do 7013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7014 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7015 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7016 break 2 7017 fi 7018done 7019done 7020IFS=$as_save_IFS 7021 7022fi 7023fi 7024STRIP=$ac_cv_prog_STRIP 7025if test -n "$STRIP"; then 7026 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 7027$as_echo "$STRIP" >&6; } 7028else 7029 { $as_echo "$as_me:$LINENO: result: no" >&5 7030$as_echo "no" >&6; } 7031fi 7032 7033 7034fi 7035if test -z "$ac_cv_prog_STRIP"; then 7036 ac_ct_STRIP=$STRIP 7037 # Extract the first word of "strip", so it can be a program name with args. 7038set dummy strip; ac_word=$2 7039{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7040$as_echo_n "checking for $ac_word... " >&6; } 7041if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 7042 $as_echo_n "(cached) " >&6 7043else 7044 if test -n "$ac_ct_STRIP"; then 7045 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7046else 7047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7048for as_dir in $PATH 7049do 7050 IFS=$as_save_IFS 7051 test -z "$as_dir" && as_dir=. 7052 for ac_exec_ext in '' $ac_executable_extensions; do 7053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7054 ac_cv_prog_ac_ct_STRIP="strip" 7055 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7056 break 2 7057 fi 7058done 7059done 7060IFS=$as_save_IFS 7061 7062fi 7063fi 7064ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7065if test -n "$ac_ct_STRIP"; then 7066 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 7067$as_echo "$ac_ct_STRIP" >&6; } 7068else 7069 { $as_echo "$as_me:$LINENO: result: no" >&5 7070$as_echo "no" >&6; } 7071fi 7072 7073 if test "x$ac_ct_STRIP" = x; then 7074 STRIP=":" 7075 else 7076 case $cross_compiling:$ac_tool_warned in 7077yes:) 7078{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7079$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7080ac_tool_warned=yes ;; 7081esac 7082 STRIP=$ac_ct_STRIP 7083 fi 7084else 7085 STRIP="$ac_cv_prog_STRIP" 7086fi 7087 7088 7089old_CC="$CC" 7090old_CFLAGS="$CFLAGS" 7091 7092# Set sane defaults for various variables 7093test -z "$AR" && AR=ar 7094test -z "$AR_FLAGS" && AR_FLAGS=cru 7095test -z "$AS" && AS=as 7096test -z "$CC" && CC=cc 7097test -z "$LTCC" && LTCC=$CC 7098test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7099test -z "$DLLTOOL" && DLLTOOL=dlltool 7100test -z "$LD" && LD=ld 7101test -z "$LN_S" && LN_S="ln -s" 7102test -z "$MAGIC_CMD" && MAGIC_CMD=file 7103test -z "$NM" && NM=nm 7104test -z "$SED" && SED=sed 7105test -z "$OBJDUMP" && OBJDUMP=objdump 7106test -z "$RANLIB" && RANLIB=: 7107test -z "$STRIP" && STRIP=: 7108test -z "$ac_objext" && ac_objext=o 7109 7110# Determine commands to create old-style static archives. 7111old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7112old_postinstall_cmds='chmod 644 $oldlib' 7113old_postuninstall_cmds= 7114 7115if test -n "$RANLIB"; then 7116 case $host_os in 7117 openbsd*) 7118 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 7119 ;; 7120 *) 7121 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 7122 ;; 7123 esac 7124 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 7125fi 7126 7127for cc_temp in $compiler""; do 7128 case $cc_temp in 7129 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7130 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7131 \-*) ;; 7132 *) break;; 7133 esac 7134done 7135cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7136 7137 7138# Only perform the check for file, if the check method requires it 7139case $deplibs_check_method in 7140file_magic*) 7141 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7142 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7143$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7144if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7145 $as_echo_n "(cached) " >&6 7146else 7147 case $MAGIC_CMD in 7148[\\/*] | ?:[\\/]*) 7149 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7150 ;; 7151*) 7152 lt_save_MAGIC_CMD="$MAGIC_CMD" 7153 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7154 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7155 for ac_dir in $ac_dummy; do 7156 IFS="$lt_save_ifs" 7157 test -z "$ac_dir" && ac_dir=. 7158 if test -f $ac_dir/${ac_tool_prefix}file; then 7159 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7160 if test -n "$file_magic_test_file"; then 7161 case $deplibs_check_method in 7162 "file_magic "*) 7163 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7164 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7165 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7166 $EGREP "$file_magic_regex" > /dev/null; then 7167 : 7168 else 7169 cat <<EOF 1>&2 7170 7171*** Warning: the command libtool uses to detect shared libraries, 7172*** $file_magic_cmd, produces output that libtool cannot recognize. 7173*** The result is that libtool may fail to recognize shared libraries 7174*** as such. This will affect the creation of libtool libraries that 7175*** depend on shared libraries, but programs linked with such libtool 7176*** libraries will work regardless of this problem. Nevertheless, you 7177*** may want to report the problem to your system manager and/or to 7178*** bug-libtool@gnu.org 7179 7180EOF 7181 fi ;; 7182 esac 7183 fi 7184 break 7185 fi 7186 done 7187 IFS="$lt_save_ifs" 7188 MAGIC_CMD="$lt_save_MAGIC_CMD" 7189 ;; 7190esac 7191fi 7192 7193MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7194if test -n "$MAGIC_CMD"; then 7195 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7196$as_echo "$MAGIC_CMD" >&6; } 7197else 7198 { $as_echo "$as_me:$LINENO: result: no" >&5 7199$as_echo "no" >&6; } 7200fi 7201 7202if test -z "$lt_cv_path_MAGIC_CMD"; then 7203 if test -n "$ac_tool_prefix"; then 7204 { $as_echo "$as_me:$LINENO: checking for file" >&5 7205$as_echo_n "checking for file... " >&6; } 7206if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7207 $as_echo_n "(cached) " >&6 7208else 7209 case $MAGIC_CMD in 7210[\\/*] | ?:[\\/]*) 7211 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7212 ;; 7213*) 7214 lt_save_MAGIC_CMD="$MAGIC_CMD" 7215 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7216 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7217 for ac_dir in $ac_dummy; do 7218 IFS="$lt_save_ifs" 7219 test -z "$ac_dir" && ac_dir=. 7220 if test -f $ac_dir/file; then 7221 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7222 if test -n "$file_magic_test_file"; then 7223 case $deplibs_check_method in 7224 "file_magic "*) 7225 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7226 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7227 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7228 $EGREP "$file_magic_regex" > /dev/null; then 7229 : 7230 else 7231 cat <<EOF 1>&2 7232 7233*** Warning: the command libtool uses to detect shared libraries, 7234*** $file_magic_cmd, produces output that libtool cannot recognize. 7235*** The result is that libtool may fail to recognize shared libraries 7236*** as such. This will affect the creation of libtool libraries that 7237*** depend on shared libraries, but programs linked with such libtool 7238*** libraries will work regardless of this problem. Nevertheless, you 7239*** may want to report the problem to your system manager and/or to 7240*** bug-libtool@gnu.org 7241 7242EOF 7243 fi ;; 7244 esac 7245 fi 7246 break 7247 fi 7248 done 7249 IFS="$lt_save_ifs" 7250 MAGIC_CMD="$lt_save_MAGIC_CMD" 7251 ;; 7252esac 7253fi 7254 7255MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7256if test -n "$MAGIC_CMD"; then 7257 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7258$as_echo "$MAGIC_CMD" >&6; } 7259else 7260 { $as_echo "$as_me:$LINENO: result: no" >&5 7261$as_echo "no" >&6; } 7262fi 7263 7264 else 7265 MAGIC_CMD=: 7266 fi 7267fi 7268 7269 fi 7270 ;; 7271esac 7272 7273 7274 case $host_os in 7275 rhapsody* | darwin*) 7276 if test -n "$ac_tool_prefix"; then 7277 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7278set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7279{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7280$as_echo_n "checking for $ac_word... " >&6; } 7281if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 7282 $as_echo_n "(cached) " >&6 7283else 7284 if test -n "$DSYMUTIL"; then 7285 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7286else 7287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7288for as_dir in $PATH 7289do 7290 IFS=$as_save_IFS 7291 test -z "$as_dir" && as_dir=. 7292 for ac_exec_ext in '' $ac_executable_extensions; do 7293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7294 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7295 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7296 break 2 7297 fi 7298done 7299done 7300IFS=$as_save_IFS 7301 7302fi 7303fi 7304DSYMUTIL=$ac_cv_prog_DSYMUTIL 7305if test -n "$DSYMUTIL"; then 7306 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 7307$as_echo "$DSYMUTIL" >&6; } 7308else 7309 { $as_echo "$as_me:$LINENO: result: no" >&5 7310$as_echo "no" >&6; } 7311fi 7312 7313 7314fi 7315if test -z "$ac_cv_prog_DSYMUTIL"; then 7316 ac_ct_DSYMUTIL=$DSYMUTIL 7317 # Extract the first word of "dsymutil", so it can be a program name with args. 7318set dummy dsymutil; ac_word=$2 7319{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7320$as_echo_n "checking for $ac_word... " >&6; } 7321if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 7322 $as_echo_n "(cached) " >&6 7323else 7324 if test -n "$ac_ct_DSYMUTIL"; then 7325 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7326else 7327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7328for as_dir in $PATH 7329do 7330 IFS=$as_save_IFS 7331 test -z "$as_dir" && as_dir=. 7332 for ac_exec_ext in '' $ac_executable_extensions; do 7333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7334 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7335 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7336 break 2 7337 fi 7338done 7339done 7340IFS=$as_save_IFS 7341 7342fi 7343fi 7344ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7345if test -n "$ac_ct_DSYMUTIL"; then 7346 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 7347$as_echo "$ac_ct_DSYMUTIL" >&6; } 7348else 7349 { $as_echo "$as_me:$LINENO: result: no" >&5 7350$as_echo "no" >&6; } 7351fi 7352 7353 if test "x$ac_ct_DSYMUTIL" = x; then 7354 DSYMUTIL=":" 7355 else 7356 case $cross_compiling:$ac_tool_warned in 7357yes:) 7358{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7359$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7360ac_tool_warned=yes ;; 7361esac 7362 DSYMUTIL=$ac_ct_DSYMUTIL 7363 fi 7364else 7365 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7366fi 7367 7368 if test -n "$ac_tool_prefix"; then 7369 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7370set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7371{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7372$as_echo_n "checking for $ac_word... " >&6; } 7373if test "${ac_cv_prog_NMEDIT+set}" = set; then 7374 $as_echo_n "(cached) " >&6 7375else 7376 if test -n "$NMEDIT"; then 7377 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7378else 7379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7380for as_dir in $PATH 7381do 7382 IFS=$as_save_IFS 7383 test -z "$as_dir" && as_dir=. 7384 for ac_exec_ext in '' $ac_executable_extensions; do 7385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7386 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7387 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7388 break 2 7389 fi 7390done 7391done 7392IFS=$as_save_IFS 7393 7394fi 7395fi 7396NMEDIT=$ac_cv_prog_NMEDIT 7397if test -n "$NMEDIT"; then 7398 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 7399$as_echo "$NMEDIT" >&6; } 7400else 7401 { $as_echo "$as_me:$LINENO: result: no" >&5 7402$as_echo "no" >&6; } 7403fi 7404 7405 7406fi 7407if test -z "$ac_cv_prog_NMEDIT"; then 7408 ac_ct_NMEDIT=$NMEDIT 7409 # Extract the first word of "nmedit", so it can be a program name with args. 7410set dummy nmedit; ac_word=$2 7411{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7412$as_echo_n "checking for $ac_word... " >&6; } 7413if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 7414 $as_echo_n "(cached) " >&6 7415else 7416 if test -n "$ac_ct_NMEDIT"; then 7417 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7418else 7419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7420for as_dir in $PATH 7421do 7422 IFS=$as_save_IFS 7423 test -z "$as_dir" && as_dir=. 7424 for ac_exec_ext in '' $ac_executable_extensions; do 7425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7426 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7427 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7428 break 2 7429 fi 7430done 7431done 7432IFS=$as_save_IFS 7433 7434fi 7435fi 7436ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7437if test -n "$ac_ct_NMEDIT"; then 7438 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 7439$as_echo "$ac_ct_NMEDIT" >&6; } 7440else 7441 { $as_echo "$as_me:$LINENO: result: no" >&5 7442$as_echo "no" >&6; } 7443fi 7444 7445 if test "x$ac_ct_NMEDIT" = x; then 7446 NMEDIT=":" 7447 else 7448 case $cross_compiling:$ac_tool_warned in 7449yes:) 7450{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7451$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7452ac_tool_warned=yes ;; 7453esac 7454 NMEDIT=$ac_ct_NMEDIT 7455 fi 7456else 7457 NMEDIT="$ac_cv_prog_NMEDIT" 7458fi 7459 7460 7461 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 7462$as_echo_n "checking for -single_module linker flag... " >&6; } 7463if test "${lt_cv_apple_cc_single_mod+set}" = set; then 7464 $as_echo_n "(cached) " >&6 7465else 7466 lt_cv_apple_cc_single_mod=no 7467 if test -z "${LT_MULTI_MODULE}"; then 7468 # By default we will add the -single_module flag. You can override 7469 # by either setting the environment variable LT_MULTI_MODULE 7470 # non-empty at configure time, or by adding -multi_module to the 7471 # link flags. 7472 echo "int foo(void){return 1;}" > conftest.c 7473 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7474 -dynamiclib ${wl}-single_module conftest.c 7475 if test -f libconftest.dylib; then 7476 lt_cv_apple_cc_single_mod=yes 7477 rm -rf libconftest.dylib* 7478 fi 7479 rm conftest.c 7480 fi 7481fi 7482{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 7483$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7484 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 7485$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7486if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 7487 $as_echo_n "(cached) " >&6 7488else 7489 lt_cv_ld_exported_symbols_list=no 7490 save_LDFLAGS=$LDFLAGS 7491 echo "_main" > conftest.sym 7492 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7493 cat >conftest.$ac_ext <<_ACEOF 7494/* confdefs.h. */ 7495_ACEOF 7496cat confdefs.h >>conftest.$ac_ext 7497cat >>conftest.$ac_ext <<_ACEOF 7498/* end confdefs.h. */ 7499 7500int 7501main () 7502{ 7503 7504 ; 7505 return 0; 7506} 7507_ACEOF 7508rm -f conftest.$ac_objext conftest$ac_exeext 7509if { (ac_try="$ac_link" 7510case "(($ac_try" in 7511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7512 *) ac_try_echo=$ac_try;; 7513esac 7514eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7515$as_echo "$ac_try_echo") >&5 7516 (eval "$ac_link") 2>conftest.er1 7517 ac_status=$? 7518 grep -v '^ *+' conftest.er1 >conftest.err 7519 rm -f conftest.er1 7520 cat conftest.err >&5 7521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7522 (exit $ac_status); } && { 7523 test -z "$ac_c_werror_flag" || 7524 test ! -s conftest.err 7525 } && test -s conftest$ac_exeext && { 7526 test "$cross_compiling" = yes || 7527 $as_test_x conftest$ac_exeext 7528 }; then 7529 lt_cv_ld_exported_symbols_list=yes 7530else 7531 $as_echo "$as_me: failed program was:" >&5 7532sed 's/^/| /' conftest.$ac_ext >&5 7533 7534 lt_cv_ld_exported_symbols_list=no 7535fi 7536 7537rm -rf conftest.dSYM 7538rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7539 conftest$ac_exeext conftest.$ac_ext 7540 LDFLAGS="$save_LDFLAGS" 7541 7542fi 7543{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 7544$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7545 case $host_os in 7546 rhapsody* | darwin1.[0123]) 7547 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7548 darwin1.*) 7549 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7550 darwin*) 7551 # if running on 10.5 or later, the deployment target defaults 7552 # to the OS version, if on x86, and 10.4, the deployment 7553 # target defaults to 10.4. Don't you love it? 7554 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7555 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7556 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7557 10.[012]*) 7558 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7559 10.*) 7560 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7561 esac 7562 ;; 7563 esac 7564 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7565 _lt_dar_single_mod='$single_module' 7566 fi 7567 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7568 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7569 else 7570 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}" 7571 fi 7572 if test "$DSYMUTIL" != ":"; then 7573 _lt_dsymutil="~$DSYMUTIL \$lib || :" 7574 else 7575 _lt_dsymutil= 7576 fi 7577 ;; 7578 esac 7579 7580 7581enable_dlopen=no 7582enable_win32_dll=no 7583 7584# Check whether --enable-libtool-lock was given. 7585if test "${enable_libtool_lock+set}" = set; then 7586 enableval=$enable_libtool_lock; 7587fi 7588 7589test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7590 7591 7592# Check whether --with-pic was given. 7593if test "${with_pic+set}" = set; then 7594 withval=$with_pic; pic_mode="$withval" 7595else 7596 pic_mode=default 7597fi 7598 7599test -z "$pic_mode" && pic_mode=default 7600 7601# Use C for the default configuration in the libtool script 7602tagname= 7603lt_save_CC="$CC" 7604ac_ext=c 7605ac_cpp='$CPP $CPPFLAGS' 7606ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7607ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7608ac_compiler_gnu=$ac_cv_c_compiler_gnu 7609 7610 7611# Source file extension for C test sources. 7612ac_ext=c 7613 7614# Object file extension for compiled C test sources. 7615objext=o 7616objext=$objext 7617 7618# Code to be used in simple compile tests 7619lt_simple_compile_test_code="int some_variable = 0;" 7620 7621# Code to be used in simple link tests 7622lt_simple_link_test_code='int main(){return(0);}' 7623 7624 7625# If no C compiler was specified, use CC. 7626LTCC=${LTCC-"$CC"} 7627 7628# If no C compiler flags were specified, use CFLAGS. 7629LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7630 7631# Allow CC to be a program name with arguments. 7632compiler=$CC 7633 7634 7635# save warnings/boilerplate of simple test code 7636ac_outfile=conftest.$ac_objext 7637echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7638eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7639_lt_compiler_boilerplate=`cat conftest.err` 7640$rm conftest* 7641 7642ac_outfile=conftest.$ac_objext 7643echo "$lt_simple_link_test_code" >conftest.$ac_ext 7644eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7645_lt_linker_boilerplate=`cat conftest.err` 7646$rm -r conftest* 7647 7648 7649 7650lt_prog_compiler_no_builtin_flag= 7651 7652if test "$GCC" = yes; then 7653 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7654 7655 7656{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7657$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7658if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7659 $as_echo_n "(cached) " >&6 7660else 7661 lt_cv_prog_compiler_rtti_exceptions=no 7662 ac_outfile=conftest.$ac_objext 7663 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7664 lt_compiler_flag="-fno-rtti -fno-exceptions" 7665 # Insert the option either (1) after the last *FLAGS variable, or 7666 # (2) before a word containing "conftest.", or (3) at the end. 7667 # Note that $ac_compile itself does not contain backslashes and begins 7668 # with a dollar sign (not a hyphen), so the echo should work correctly. 7669 # The option is referenced via a variable to avoid confusing sed. 7670 lt_compile=`echo "$ac_compile" | $SED \ 7671 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7672 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7673 -e 's:$: $lt_compiler_flag:'` 7674 (eval echo "\"\$as_me:7674: $lt_compile\"" >&5) 7675 (eval "$lt_compile" 2>conftest.err) 7676 ac_status=$? 7677 cat conftest.err >&5 7678 echo "$as_me:7678: \$? = $ac_status" >&5 7679 if (exit $ac_status) && test -s "$ac_outfile"; then 7680 # The compiler can only warn and ignore the option if not recognized 7681 # So say no if there are warnings other than the usual output. 7682 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7683 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7684 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7685 lt_cv_prog_compiler_rtti_exceptions=yes 7686 fi 7687 fi 7688 $rm conftest* 7689 7690fi 7691{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7692$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7693 7694if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7695 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7696else 7697 : 7698fi 7699 7700fi 7701 7702lt_prog_compiler_wl= 7703lt_prog_compiler_pic= 7704lt_prog_compiler_static= 7705 7706{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7707$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7708 7709 if test "$GCC" = yes; then 7710 lt_prog_compiler_wl='-Wl,' 7711 lt_prog_compiler_static='-static' 7712 7713 case $host_os in 7714 aix*) 7715 # All AIX code is PIC. 7716 if test "$host_cpu" = ia64; then 7717 # AIX 5 now supports IA64 processor 7718 lt_prog_compiler_static='-Bstatic' 7719 fi 7720 ;; 7721 7722 amigaos*) 7723 # FIXME: we need at least 68020 code to build shared libraries, but 7724 # adding the `-m68020' flag to GCC prevents building anything better, 7725 # like `-m68040'. 7726 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7727 ;; 7728 7729 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7730 # PIC is the default for these OSes. 7731 ;; 7732 7733 mingw* | cygwin* | pw32* | os2*) 7734 # This hack is so that the source file can tell whether it is being 7735 # built for inclusion in a dll (and should export symbols for example). 7736 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7737 # (--disable-auto-import) libraries 7738 lt_prog_compiler_pic='-DDLL_EXPORT' 7739 ;; 7740 7741 darwin* | rhapsody*) 7742 # PIC is the default on this platform 7743 # Common symbols not allowed in MH_DYLIB files 7744 lt_prog_compiler_pic='-fno-common' 7745 ;; 7746 7747 interix[3-9]*) 7748 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7749 # Instead, we relocate shared libraries at runtime. 7750 ;; 7751 7752 msdosdjgpp*) 7753 # Just because we use GCC doesn't mean we suddenly get shared libraries 7754 # on systems that don't support them. 7755 lt_prog_compiler_can_build_shared=no 7756 enable_shared=no 7757 ;; 7758 7759 sysv4*MP*) 7760 if test -d /usr/nec; then 7761 lt_prog_compiler_pic=-Kconform_pic 7762 fi 7763 ;; 7764 7765 hpux*) 7766 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7767 # not for PA HP-UX. 7768 case $host_cpu in 7769 hppa*64*|ia64*) 7770 # +Z the default 7771 ;; 7772 *) 7773 lt_prog_compiler_pic='-fPIC' 7774 ;; 7775 esac 7776 ;; 7777 7778 *) 7779 lt_prog_compiler_pic='-fPIC' 7780 ;; 7781 esac 7782 else 7783 # PORTME Check for flag to pass linker flags through the system compiler. 7784 case $host_os in 7785 aix*) 7786 lt_prog_compiler_wl='-Wl,' 7787 if test "$host_cpu" = ia64; then 7788 # AIX 5 now supports IA64 processor 7789 lt_prog_compiler_static='-Bstatic' 7790 else 7791 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7792 fi 7793 ;; 7794 darwin*) 7795 # PIC is the default on this platform 7796 # Common symbols not allowed in MH_DYLIB files 7797 case $cc_basename in 7798 xlc*) 7799 lt_prog_compiler_pic='-qnocommon' 7800 lt_prog_compiler_wl='-Wl,' 7801 ;; 7802 esac 7803 ;; 7804 7805 mingw* | cygwin* | pw32* | os2*) 7806 # This hack is so that the source file can tell whether it is being 7807 # built for inclusion in a dll (and should export symbols for example). 7808 lt_prog_compiler_pic='-DDLL_EXPORT' 7809 ;; 7810 7811 hpux9* | hpux10* | hpux11*) 7812 lt_prog_compiler_wl='-Wl,' 7813 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7814 # not for PA HP-UX. 7815 case $host_cpu in 7816 hppa*64*|ia64*) 7817 # +Z the default 7818 ;; 7819 *) 7820 lt_prog_compiler_pic='+Z' 7821 ;; 7822 esac 7823 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7824 lt_prog_compiler_static='${wl}-a ${wl}archive' 7825 ;; 7826 7827 irix5* | irix6* | nonstopux*) 7828 lt_prog_compiler_wl='-Wl,' 7829 # PIC (with -KPIC) is the default. 7830 lt_prog_compiler_static='-non_shared' 7831 ;; 7832 7833 newsos6) 7834 lt_prog_compiler_pic='-KPIC' 7835 lt_prog_compiler_static='-Bstatic' 7836 ;; 7837 7838 linux* | k*bsd*-gnu) 7839 case $cc_basename in 7840 icc* | ecc*) 7841 lt_prog_compiler_wl='-Wl,' 7842 lt_prog_compiler_pic='-KPIC' 7843 lt_prog_compiler_static='-static' 7844 ;; 7845 pgcc* | pgf77* | pgf90* | pgf95*) 7846 # Portland Group compilers (*not* the Pentium gcc compiler, 7847 # which looks to be a dead project) 7848 lt_prog_compiler_wl='-Wl,' 7849 lt_prog_compiler_pic='-fpic' 7850 lt_prog_compiler_static='-Bstatic' 7851 ;; 7852 ccc*) 7853 lt_prog_compiler_wl='-Wl,' 7854 # All Alpha code is PIC. 7855 lt_prog_compiler_static='-non_shared' 7856 ;; 7857 *) 7858 case `$CC -V 2>&1 | sed 5q` in 7859 *Sun\ C*) 7860 # Sun C 5.9 7861 lt_prog_compiler_pic='-KPIC' 7862 lt_prog_compiler_static='-Bstatic' 7863 lt_prog_compiler_wl='-Wl,' 7864 ;; 7865 *Sun\ F*) 7866 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7867 lt_prog_compiler_pic='-KPIC' 7868 lt_prog_compiler_static='-Bstatic' 7869 lt_prog_compiler_wl='' 7870 ;; 7871 esac 7872 ;; 7873 esac 7874 ;; 7875 7876 osf3* | osf4* | osf5*) 7877 lt_prog_compiler_wl='-Wl,' 7878 # All OSF/1 code is PIC. 7879 lt_prog_compiler_static='-non_shared' 7880 ;; 7881 7882 rdos*) 7883 lt_prog_compiler_static='-non_shared' 7884 ;; 7885 7886 solaris*) 7887 lt_prog_compiler_pic='-KPIC' 7888 lt_prog_compiler_static='-Bstatic' 7889 case $cc_basename in 7890 f77* | f90* | f95*) 7891 lt_prog_compiler_wl='-Qoption ld ';; 7892 *) 7893 lt_prog_compiler_wl='-Wl,';; 7894 esac 7895 ;; 7896 7897 sunos4*) 7898 lt_prog_compiler_wl='-Qoption ld ' 7899 lt_prog_compiler_pic='-PIC' 7900 lt_prog_compiler_static='-Bstatic' 7901 ;; 7902 7903 sysv4 | sysv4.2uw2* | sysv4.3*) 7904 lt_prog_compiler_wl='-Wl,' 7905 lt_prog_compiler_pic='-KPIC' 7906 lt_prog_compiler_static='-Bstatic' 7907 ;; 7908 7909 sysv4*MP*) 7910 if test -d /usr/nec ;then 7911 lt_prog_compiler_pic='-Kconform_pic' 7912 lt_prog_compiler_static='-Bstatic' 7913 fi 7914 ;; 7915 7916 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7917 lt_prog_compiler_wl='-Wl,' 7918 lt_prog_compiler_pic='-KPIC' 7919 lt_prog_compiler_static='-Bstatic' 7920 ;; 7921 7922 unicos*) 7923 lt_prog_compiler_wl='-Wl,' 7924 lt_prog_compiler_can_build_shared=no 7925 ;; 7926 7927 uts4*) 7928 lt_prog_compiler_pic='-pic' 7929 lt_prog_compiler_static='-Bstatic' 7930 ;; 7931 7932 *) 7933 lt_prog_compiler_can_build_shared=no 7934 ;; 7935 esac 7936 fi 7937 7938{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7939$as_echo "$lt_prog_compiler_pic" >&6; } 7940 7941# 7942# Check to make sure the PIC flag actually works. 7943# 7944if test -n "$lt_prog_compiler_pic"; then 7945 7946{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7947$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 7948if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 7949 $as_echo_n "(cached) " >&6 7950else 7951 lt_cv_prog_compiler_pic_works=no 7952 ac_outfile=conftest.$ac_objext 7953 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7954 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7955 # Insert the option either (1) after the last *FLAGS variable, or 7956 # (2) before a word containing "conftest.", or (3) at the end. 7957 # Note that $ac_compile itself does not contain backslashes and begins 7958 # with a dollar sign (not a hyphen), so the echo should work correctly. 7959 # The option is referenced via a variable to avoid confusing sed. 7960 lt_compile=`echo "$ac_compile" | $SED \ 7961 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7962 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7963 -e 's:$: $lt_compiler_flag:'` 7964 (eval echo "\"\$as_me:7964: $lt_compile\"" >&5) 7965 (eval "$lt_compile" 2>conftest.err) 7966 ac_status=$? 7967 cat conftest.err >&5 7968 echo "$as_me:7968: \$? = $ac_status" >&5 7969 if (exit $ac_status) && test -s "$ac_outfile"; then 7970 # The compiler can only warn and ignore the option if not recognized 7971 # So say no if there are warnings other than the usual output. 7972 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7973 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7974 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7975 lt_cv_prog_compiler_pic_works=yes 7976 fi 7977 fi 7978 $rm conftest* 7979 7980fi 7981{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 7982$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 7983 7984if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7985 case $lt_prog_compiler_pic in 7986 "" | " "*) ;; 7987 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7988 esac 7989else 7990 lt_prog_compiler_pic= 7991 lt_prog_compiler_can_build_shared=no 7992fi 7993 7994fi 7995case $host_os in 7996 # For platforms which do not support PIC, -DPIC is meaningless: 7997 *djgpp*) 7998 lt_prog_compiler_pic= 7999 ;; 8000 *) 8001 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8002 ;; 8003esac 8004 8005# 8006# Check to make sure the static flag actually works. 8007# 8008wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8009{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8010$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8011if test "${lt_cv_prog_compiler_static_works+set}" = set; then 8012 $as_echo_n "(cached) " >&6 8013else 8014 lt_cv_prog_compiler_static_works=no 8015 save_LDFLAGS="$LDFLAGS" 8016 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8017 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8018 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8019 # The linker can only warn and ignore the option if not recognized 8020 # So say no if there are warnings 8021 if test -s conftest.err; then 8022 # Append any errors to the config.log. 8023 cat conftest.err 1>&5 8024 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 8025 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8026 if diff conftest.exp conftest.er2 >/dev/null; then 8027 lt_cv_prog_compiler_static_works=yes 8028 fi 8029 else 8030 lt_cv_prog_compiler_static_works=yes 8031 fi 8032 fi 8033 $rm -r conftest* 8034 LDFLAGS="$save_LDFLAGS" 8035 8036fi 8037{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 8038$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8039 8040if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8041 : 8042else 8043 lt_prog_compiler_static= 8044fi 8045 8046 8047{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 8048$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8049if test "${lt_cv_prog_compiler_c_o+set}" = set; then 8050 $as_echo_n "(cached) " >&6 8051else 8052 lt_cv_prog_compiler_c_o=no 8053 $rm -r conftest 2>/dev/null 8054 mkdir conftest 8055 cd conftest 8056 mkdir out 8057 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8058 8059 lt_compiler_flag="-o out/conftest2.$ac_objext" 8060 # Insert the option either (1) after the last *FLAGS variable, or 8061 # (2) before a word containing "conftest.", or (3) at the end. 8062 # Note that $ac_compile itself does not contain backslashes and begins 8063 # with a dollar sign (not a hyphen), so the echo should work correctly. 8064 lt_compile=`echo "$ac_compile" | $SED \ 8065 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8066 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8067 -e 's:$: $lt_compiler_flag:'` 8068 (eval echo "\"\$as_me:8068: $lt_compile\"" >&5) 8069 (eval "$lt_compile" 2>out/conftest.err) 8070 ac_status=$? 8071 cat out/conftest.err >&5 8072 echo "$as_me:8072: \$? = $ac_status" >&5 8073 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8074 then 8075 # The compiler can only warn and ignore the option if not recognized 8076 # So say no if there are warnings 8077 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8078 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8079 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8080 lt_cv_prog_compiler_c_o=yes 8081 fi 8082 fi 8083 chmod u+w . 2>&5 8084 $rm conftest* 8085 # SGI C++ compiler will create directory out/ii_files/ for 8086 # template instantiation 8087 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 8088 $rm out/* && rmdir out 8089 cd .. 8090 rmdir conftest 8091 $rm conftest* 8092 8093fi 8094{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8095$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8096 8097 8098hard_links="nottested" 8099if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8100 # do not overwrite the value of need_locks provided by the user 8101 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 8102$as_echo_n "checking if we can lock with hard links... " >&6; } 8103 hard_links=yes 8104 $rm conftest* 8105 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8106 touch conftest.a 8107 ln conftest.a conftest.b 2>&5 || hard_links=no 8108 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8109 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 8110$as_echo "$hard_links" >&6; } 8111 if test "$hard_links" = no; then 8112 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8113$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8114 need_locks=warn 8115 fi 8116else 8117 need_locks=no 8118fi 8119 8120{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8121$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8122 8123 runpath_var= 8124 allow_undefined_flag= 8125 enable_shared_with_static_runtimes=no 8126 archive_cmds= 8127 archive_expsym_cmds= 8128 old_archive_From_new_cmds= 8129 old_archive_from_expsyms_cmds= 8130 export_dynamic_flag_spec= 8131 whole_archive_flag_spec= 8132 thread_safe_flag_spec= 8133 hardcode_libdir_flag_spec= 8134 hardcode_libdir_flag_spec_ld= 8135 hardcode_libdir_separator= 8136 hardcode_direct=no 8137 hardcode_minus_L=no 8138 hardcode_shlibpath_var=unsupported 8139 link_all_deplibs=unknown 8140 hardcode_automatic=no 8141 module_cmds= 8142 module_expsym_cmds= 8143 always_export_symbols=no 8144 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8145 # include_expsyms should be a list of space-separated symbols to be *always* 8146 # included in the symbol list 8147 include_expsyms= 8148 # exclude_expsyms can be an extended regexp of symbols to exclude 8149 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8150 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8151 # as well as any symbol that contains `d'. 8152 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8153 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8154 # platforms (ab)use it in PIC code, but their linkers get confused if 8155 # the symbol is explicitly referenced. Since portable code cannot 8156 # rely on this symbol name, it's probably fine to never include it in 8157 # preloaded symbol tables. 8158 # Exclude shared library initialization/finalization symbols. 8159 extract_expsyms_cmds= 8160 # Just being paranoid about ensuring that cc_basename is set. 8161 for cc_temp in $compiler""; do 8162 case $cc_temp in 8163 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8164 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8165 \-*) ;; 8166 *) break;; 8167 esac 8168done 8169cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8170 8171 case $host_os in 8172 cygwin* | mingw* | pw32*) 8173 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8174 # When not using gcc, we currently assume that we are using 8175 # Microsoft Visual C++. 8176 if test "$GCC" != yes; then 8177 with_gnu_ld=no 8178 fi 8179 ;; 8180 interix*) 8181 # we just hope/assume this is gcc and not c89 (= MSVC++) 8182 with_gnu_ld=yes 8183 ;; 8184 openbsd*) 8185 with_gnu_ld=no 8186 ;; 8187 esac 8188 8189 ld_shlibs=yes 8190 if test "$with_gnu_ld" = yes; then 8191 # If archive_cmds runs LD, not CC, wlarc should be empty 8192 wlarc='${wl}' 8193 8194 # Set some defaults for GNU ld with shared library support. These 8195 # are reset later if shared libraries are not supported. Putting them 8196 # here allows them to be overridden if necessary. 8197 runpath_var=LD_RUN_PATH 8198 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 8199 export_dynamic_flag_spec='${wl}--export-dynamic' 8200 # ancient GNU ld didn't support --whole-archive et. al. 8201 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 8202 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8203 else 8204 whole_archive_flag_spec= 8205 fi 8206 supports_anon_versioning=no 8207 case `$LD -v 2>/dev/null` in 8208 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8209 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8210 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8211 *\ 2.11.*) ;; # other 2.11 versions 8212 *) supports_anon_versioning=yes ;; 8213 esac 8214 8215 # See if GNU ld supports shared libraries. 8216 case $host_os in 8217 aix[3-9]*) 8218 # On AIX/PPC, the GNU linker is very broken 8219 if test "$host_cpu" != ia64; then 8220 ld_shlibs=no 8221 cat <<EOF 1>&2 8222 8223*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8224*** to be unable to reliably create shared libraries on AIX. 8225*** Therefore, libtool is disabling shared libraries support. If you 8226*** really care for shared libraries, you may want to modify your PATH 8227*** so that a non-GNU linker is found, and then restart. 8228 8229EOF 8230 fi 8231 ;; 8232 8233 amigaos*) 8234 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)' 8235 hardcode_libdir_flag_spec='-L$libdir' 8236 hardcode_minus_L=yes 8237 8238 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 8239 # that the semantics of dynamic libraries on AmigaOS, at least up 8240 # to version 4, is to share data among multiple programs linked 8241 # with the same dynamic library. Since this doesn't match the 8242 # behavior of shared libraries on other platforms, we can't use 8243 # them. 8244 ld_shlibs=no 8245 ;; 8246 8247 beos*) 8248 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8249 allow_undefined_flag=unsupported 8250 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8251 # support --undefined. This deserves some investigation. FIXME 8252 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8253 else 8254 ld_shlibs=no 8255 fi 8256 ;; 8257 8258 cygwin* | mingw* | pw32*) 8259 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8260 # as there is no search path for DLLs. 8261 hardcode_libdir_flag_spec='-L$libdir' 8262 allow_undefined_flag=unsupported 8263 always_export_symbols=no 8264 enable_shared_with_static_runtimes=yes 8265 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8266 8267 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 8268 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8269 # If the export-symbols file already is a .def file (1st line 8270 # is EXPORTS), use it as is; otherwise, prepend... 8271 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8272 cp $export_symbols $output_objdir/$soname.def; 8273 else 8274 echo EXPORTS > $output_objdir/$soname.def; 8275 cat $export_symbols >> $output_objdir/$soname.def; 8276 fi~ 8277 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8278 else 8279 ld_shlibs=no 8280 fi 8281 ;; 8282 8283 interix[3-9]*) 8284 hardcode_direct=no 8285 hardcode_shlibpath_var=no 8286 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8287 export_dynamic_flag_spec='${wl}-E' 8288 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8289 # Instead, shared libraries are loaded at an image base (0x10000000 by 8290 # default) and relocated if they conflict, which is a slow very memory 8291 # consuming and fragmenting process. To avoid this, we pick a random, 8292 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8293 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8294 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8295 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' 8296 ;; 8297 8298 gnu* | linux* | k*bsd*-gnu) 8299 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8300 tmp_addflag= 8301 case $cc_basename,$host_cpu in 8302 pgcc*) # Portland Group C compiler 8303 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' 8304 tmp_addflag=' $pic_flag' 8305 ;; 8306 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8307 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' 8308 tmp_addflag=' $pic_flag -Mnomain' ;; 8309 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8310 tmp_addflag=' -i_dynamic' ;; 8311 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8312 tmp_addflag=' -i_dynamic -nofor_main' ;; 8313 ifc* | ifort*) # Intel Fortran compiler 8314 tmp_addflag=' -nofor_main' ;; 8315 esac 8316 case `$CC -V 2>&1 | sed 5q` in 8317 *Sun\ C*) # Sun C 5.9 8318 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' 8319 tmp_sharedflag='-G' ;; 8320 *Sun\ F*) # Sun Fortran 8.3 8321 tmp_sharedflag='-G' ;; 8322 *) 8323 tmp_sharedflag='-shared' ;; 8324 esac 8325 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8326 8327 if test $supports_anon_versioning = yes; then 8328 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 8329 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8330 $echo "local: *; };" >> $output_objdir/$libname.ver~ 8331 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8332 fi 8333 else 8334 ld_shlibs=no 8335 fi 8336 ;; 8337 8338 netbsd*) 8339 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8340 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8341 wlarc= 8342 else 8343 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8344 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8345 fi 8346 ;; 8347 8348 solaris*) 8349 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 8350 ld_shlibs=no 8351 cat <<EOF 1>&2 8352 8353*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8354*** create shared libraries on Solaris systems. Therefore, libtool 8355*** is disabling shared libraries support. We urge you to upgrade GNU 8356*** binutils to release 2.9.1 or newer. Another option is to modify 8357*** your PATH or compiler configuration so that the native linker is 8358*** used, and then restart. 8359 8360EOF 8361 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8362 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8363 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8364 else 8365 ld_shlibs=no 8366 fi 8367 ;; 8368 8369 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8370 case `$LD -v 2>&1` in 8371 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8372 ld_shlibs=no 8373 cat <<_LT_EOF 1>&2 8374 8375*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8376*** reliably create shared libraries on SCO systems. Therefore, libtool 8377*** is disabling shared libraries support. We urge you to upgrade GNU 8378*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8379*** your PATH or compiler configuration so that the native linker is 8380*** used, and then restart. 8381 8382_LT_EOF 8383 ;; 8384 *) 8385 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8386 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 8387 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 8388 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 8389 else 8390 ld_shlibs=no 8391 fi 8392 ;; 8393 esac 8394 ;; 8395 8396 sunos4*) 8397 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8398 wlarc= 8399 hardcode_direct=yes 8400 hardcode_shlibpath_var=no 8401 ;; 8402 8403 *) 8404 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8405 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8406 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8407 else 8408 ld_shlibs=no 8409 fi 8410 ;; 8411 esac 8412 8413 if test "$ld_shlibs" = no; then 8414 runpath_var= 8415 hardcode_libdir_flag_spec= 8416 export_dynamic_flag_spec= 8417 whole_archive_flag_spec= 8418 fi 8419 else 8420 # PORTME fill in a description of your system's linker (not GNU ld) 8421 case $host_os in 8422 aix3*) 8423 allow_undefined_flag=unsupported 8424 always_export_symbols=yes 8425 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' 8426 # Note: this linker hardcodes the directories in LIBPATH if there 8427 # are no directories specified by -L. 8428 hardcode_minus_L=yes 8429 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8430 # Neither direct hardcoding nor static linking is supported with a 8431 # broken collect2. 8432 hardcode_direct=unsupported 8433 fi 8434 ;; 8435 8436 aix[4-9]*) 8437 if test "$host_cpu" = ia64; then 8438 # On IA64, the linker does run time linking by default, so we don't 8439 # have to do anything special. 8440 aix_use_runtimelinking=no 8441 exp_sym_flag='-Bexport' 8442 no_entry_flag="" 8443 else 8444 # If we're using GNU nm, then we don't want the "-C" option. 8445 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8446 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 8447 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' 8448 else 8449 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' 8450 fi 8451 aix_use_runtimelinking=no 8452 8453 # Test if we are trying to use run time linking or normal 8454 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8455 # need to do runtime linking. 8456 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8457 for ld_flag in $LDFLAGS; do 8458 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8459 aix_use_runtimelinking=yes 8460 break 8461 fi 8462 done 8463 ;; 8464 esac 8465 8466 exp_sym_flag='-bexport' 8467 no_entry_flag='-bnoentry' 8468 fi 8469 8470 # When large executables or shared objects are built, AIX ld can 8471 # have problems creating the table of contents. If linking a library 8472 # or program results in "error TOC overflow" add -mminimal-toc to 8473 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8474 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8475 8476 archive_cmds='' 8477 hardcode_direct=yes 8478 hardcode_libdir_separator=':' 8479 link_all_deplibs=yes 8480 8481 if test "$GCC" = yes; then 8482 case $host_os in aix4.[012]|aix4.[012].*) 8483 # We only want to do this on AIX 4.2 and lower, the check 8484 # below for broken collect2 doesn't work under 4.3+ 8485 collect2name=`${CC} -print-prog-name=collect2` 8486 if test -f "$collect2name" && \ 8487 strings "$collect2name" | grep resolve_lib_name >/dev/null 8488 then 8489 # We have reworked collect2 8490 : 8491 else 8492 # We have old collect2 8493 hardcode_direct=unsupported 8494 # It fails to find uninstalled libraries when the uninstalled 8495 # path is not listed in the libpath. Setting hardcode_minus_L 8496 # to unsupported forces relinking 8497 hardcode_minus_L=yes 8498 hardcode_libdir_flag_spec='-L$libdir' 8499 hardcode_libdir_separator= 8500 fi 8501 ;; 8502 esac 8503 shared_flag='-shared' 8504 if test "$aix_use_runtimelinking" = yes; then 8505 shared_flag="$shared_flag "'${wl}-G' 8506 fi 8507 else 8508 # not using gcc 8509 if test "$host_cpu" = ia64; then 8510 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8511 # chokes on -Wl,-G. The following line is correct: 8512 shared_flag='-G' 8513 else 8514 if test "$aix_use_runtimelinking" = yes; then 8515 shared_flag='${wl}-G' 8516 else 8517 shared_flag='${wl}-bM:SRE' 8518 fi 8519 fi 8520 fi 8521 8522 # It seems that -bexpall does not export symbols beginning with 8523 # underscore (_), so it is better to generate a list of symbols to export. 8524 always_export_symbols=yes 8525 if test "$aix_use_runtimelinking" = yes; then 8526 # Warning - without using the other runtime loading flags (-brtl), 8527 # -berok will link without error, but may produce a broken library. 8528 allow_undefined_flag='-berok' 8529 # Determine the default libpath from the value encoded in an empty executable. 8530 cat >conftest.$ac_ext <<_ACEOF 8531/* confdefs.h. */ 8532_ACEOF 8533cat confdefs.h >>conftest.$ac_ext 8534cat >>conftest.$ac_ext <<_ACEOF 8535/* end confdefs.h. */ 8536 8537int 8538main () 8539{ 8540 8541 ; 8542 return 0; 8543} 8544_ACEOF 8545rm -f conftest.$ac_objext conftest$ac_exeext 8546if { (ac_try="$ac_link" 8547case "(($ac_try" in 8548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8549 *) ac_try_echo=$ac_try;; 8550esac 8551eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8552$as_echo "$ac_try_echo") >&5 8553 (eval "$ac_link") 2>conftest.er1 8554 ac_status=$? 8555 grep -v '^ *+' conftest.er1 >conftest.err 8556 rm -f conftest.er1 8557 cat conftest.err >&5 8558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8559 (exit $ac_status); } && { 8560 test -z "$ac_c_werror_flag" || 8561 test ! -s conftest.err 8562 } && test -s conftest$ac_exeext && { 8563 test "$cross_compiling" = yes || 8564 $as_test_x conftest$ac_exeext 8565 }; then 8566 8567lt_aix_libpath_sed=' 8568 /Import File Strings/,/^$/ { 8569 /^0/ { 8570 s/^0 *\(.*\)$/\1/ 8571 p 8572 } 8573 }' 8574aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8575# Check for a 64-bit object if we didn't find anything. 8576if test -z "$aix_libpath"; then 8577 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8578fi 8579else 8580 $as_echo "$as_me: failed program was:" >&5 8581sed 's/^/| /' conftest.$ac_ext >&5 8582 8583 8584fi 8585 8586rm -rf conftest.dSYM 8587rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8588 conftest$ac_exeext conftest.$ac_ext 8589if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8590 8591 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8592 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" 8593 else 8594 if test "$host_cpu" = ia64; then 8595 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8596 allow_undefined_flag="-z nodefs" 8597 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" 8598 else 8599 # Determine the default libpath from the value encoded in an empty executable. 8600 cat >conftest.$ac_ext <<_ACEOF 8601/* confdefs.h. */ 8602_ACEOF 8603cat confdefs.h >>conftest.$ac_ext 8604cat >>conftest.$ac_ext <<_ACEOF 8605/* end confdefs.h. */ 8606 8607int 8608main () 8609{ 8610 8611 ; 8612 return 0; 8613} 8614_ACEOF 8615rm -f conftest.$ac_objext conftest$ac_exeext 8616if { (ac_try="$ac_link" 8617case "(($ac_try" in 8618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8619 *) ac_try_echo=$ac_try;; 8620esac 8621eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8622$as_echo "$ac_try_echo") >&5 8623 (eval "$ac_link") 2>conftest.er1 8624 ac_status=$? 8625 grep -v '^ *+' conftest.er1 >conftest.err 8626 rm -f conftest.er1 8627 cat conftest.err >&5 8628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8629 (exit $ac_status); } && { 8630 test -z "$ac_c_werror_flag" || 8631 test ! -s conftest.err 8632 } && test -s conftest$ac_exeext && { 8633 test "$cross_compiling" = yes || 8634 $as_test_x conftest$ac_exeext 8635 }; then 8636 8637lt_aix_libpath_sed=' 8638 /Import File Strings/,/^$/ { 8639 /^0/ { 8640 s/^0 *\(.*\)$/\1/ 8641 p 8642 } 8643 }' 8644aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8645# Check for a 64-bit object if we didn't find anything. 8646if test -z "$aix_libpath"; then 8647 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8648fi 8649else 8650 $as_echo "$as_me: failed program was:" >&5 8651sed 's/^/| /' conftest.$ac_ext >&5 8652 8653 8654fi 8655 8656rm -rf conftest.dSYM 8657rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8658 conftest$ac_exeext conftest.$ac_ext 8659if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8660 8661 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8662 # Warning - without using the other run time loading flags, 8663 # -berok will link without error, but may produce a broken library. 8664 no_undefined_flag=' ${wl}-bernotok' 8665 allow_undefined_flag=' ${wl}-berok' 8666 # Exported symbols can be pulled into shared objects from archives 8667 whole_archive_flag_spec='$convenience' 8668 archive_cmds_need_lc=yes 8669 # This is similar to how AIX traditionally builds its shared libraries. 8670 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' 8671 fi 8672 fi 8673 ;; 8674 8675 amigaos*) 8676 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)' 8677 hardcode_libdir_flag_spec='-L$libdir' 8678 hardcode_minus_L=yes 8679 # see comment about different semantics on the GNU ld section 8680 ld_shlibs=no 8681 ;; 8682 8683 bsdi[45]*) 8684 export_dynamic_flag_spec=-rdynamic 8685 ;; 8686 8687 cygwin* | mingw* | pw32*) 8688 # When not using gcc, we currently assume that we are using 8689 # Microsoft Visual C++. 8690 # hardcode_libdir_flag_spec is actually meaningless, as there is 8691 # no search path for DLLs. 8692 hardcode_libdir_flag_spec=' ' 8693 allow_undefined_flag=unsupported 8694 # Tell ltmain to make .lib files, not .a files. 8695 libext=lib 8696 # Tell ltmain to make .dll files, not .so files. 8697 shrext_cmds=".dll" 8698 # FIXME: Setting linknames here is a bad hack. 8699 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8700 # The linker will automatically build a .lib file if we build a DLL. 8701 old_archive_From_new_cmds='true' 8702 # FIXME: Should let the user specify the lib program. 8703 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8704 fix_srcfile_path='`cygpath -w "$srcfile"`' 8705 enable_shared_with_static_runtimes=yes 8706 ;; 8707 8708 darwin* | rhapsody*) 8709 case $host_os in 8710 rhapsody* | darwin1.[012]) 8711 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8712 ;; 8713 *) # Darwin 1.3 on 8714 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8715 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8716 else 8717 case ${MACOSX_DEPLOYMENT_TARGET} in 8718 10.[012]) 8719 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8720 ;; 8721 10.*) 8722 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8723 ;; 8724 esac 8725 fi 8726 ;; 8727 esac 8728 archive_cmds_need_lc=no 8729 hardcode_direct=no 8730 hardcode_automatic=yes 8731 hardcode_shlibpath_var=unsupported 8732 whole_archive_flag_spec='' 8733 link_all_deplibs=yes 8734 if test "$GCC" = yes ; then 8735 output_verbose_link_cmd='echo' 8736 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8737 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8738 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}" 8739 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}" 8740 else 8741 case $cc_basename in 8742 xlc*) 8743 output_verbose_link_cmd='echo' 8744 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 8745 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8746 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8747 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}' 8748 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}' 8749 ;; 8750 *) 8751 ld_shlibs=no 8752 ;; 8753 esac 8754 fi 8755 ;; 8756 8757 dgux*) 8758 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8759 hardcode_libdir_flag_spec='-L$libdir' 8760 hardcode_shlibpath_var=no 8761 ;; 8762 8763 freebsd1*) 8764 ld_shlibs=no 8765 ;; 8766 8767 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8768 # support. Future versions do this automatically, but an explicit c++rt0.o 8769 # does not break anything, and helps significantly (at the cost of a little 8770 # extra space). 8771 freebsd2.2*) 8772 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8773 hardcode_libdir_flag_spec='-R$libdir' 8774 hardcode_direct=yes 8775 hardcode_shlibpath_var=no 8776 ;; 8777 8778 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8779 freebsd2*) 8780 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8781 hardcode_direct=yes 8782 hardcode_minus_L=yes 8783 hardcode_shlibpath_var=no 8784 ;; 8785 8786 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8787 freebsd* | dragonfly*) 8788 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8789 hardcode_libdir_flag_spec='-R$libdir' 8790 hardcode_direct=yes 8791 hardcode_shlibpath_var=no 8792 ;; 8793 8794 hpux9*) 8795 if test "$GCC" = yes; then 8796 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' 8797 else 8798 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' 8799 fi 8800 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8801 hardcode_libdir_separator=: 8802 hardcode_direct=yes 8803 8804 # hardcode_minus_L: Not really in the search PATH, 8805 # but as the default location of the library. 8806 hardcode_minus_L=yes 8807 export_dynamic_flag_spec='${wl}-E' 8808 ;; 8809 8810 hpux10*) 8811 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8812 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8813 else 8814 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8815 fi 8816 if test "$with_gnu_ld" = no; then 8817 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8818 hardcode_libdir_separator=: 8819 8820 hardcode_direct=yes 8821 export_dynamic_flag_spec='${wl}-E' 8822 8823 # hardcode_minus_L: Not really in the search PATH, 8824 # but as the default location of the library. 8825 hardcode_minus_L=yes 8826 fi 8827 ;; 8828 8829 hpux11*) 8830 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8831 case $host_cpu in 8832 hppa*64*) 8833 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8834 ;; 8835 ia64*) 8836 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8837 ;; 8838 *) 8839 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8840 ;; 8841 esac 8842 else 8843 case $host_cpu in 8844 hppa*64*) 8845 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8846 ;; 8847 ia64*) 8848 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8849 ;; 8850 *) 8851 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8852 ;; 8853 esac 8854 fi 8855 if test "$with_gnu_ld" = no; then 8856 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8857 hardcode_libdir_separator=: 8858 8859 case $host_cpu in 8860 hppa*64*|ia64*) 8861 hardcode_libdir_flag_spec_ld='+b $libdir' 8862 hardcode_direct=no 8863 hardcode_shlibpath_var=no 8864 ;; 8865 *) 8866 hardcode_direct=yes 8867 export_dynamic_flag_spec='${wl}-E' 8868 8869 # hardcode_minus_L: Not really in the search PATH, 8870 # but as the default location of the library. 8871 hardcode_minus_L=yes 8872 ;; 8873 esac 8874 fi 8875 ;; 8876 8877 irix5* | irix6* | nonstopux*) 8878 if test "$GCC" = yes; then 8879 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' 8880 else 8881 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' 8882 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8883 fi 8884 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8885 hardcode_libdir_separator=: 8886 link_all_deplibs=yes 8887 ;; 8888 8889 netbsd*) 8890 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8891 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8892 else 8893 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8894 fi 8895 hardcode_libdir_flag_spec='-R$libdir' 8896 hardcode_direct=yes 8897 hardcode_shlibpath_var=no 8898 ;; 8899 8900 newsos6) 8901 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8902 hardcode_direct=yes 8903 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8904 hardcode_libdir_separator=: 8905 hardcode_shlibpath_var=no 8906 ;; 8907 8908 openbsd*) 8909 if test -f /usr/libexec/ld.so; then 8910 hardcode_direct=yes 8911 hardcode_shlibpath_var=no 8912 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8913 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8914 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8915 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8916 export_dynamic_flag_spec='${wl}-E' 8917 else 8918 case $host_os in 8919 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8920 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8921 hardcode_libdir_flag_spec='-R$libdir' 8922 ;; 8923 *) 8924 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8925 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8926 ;; 8927 esac 8928 fi 8929 else 8930 ld_shlibs=no 8931 fi 8932 ;; 8933 8934 os2*) 8935 hardcode_libdir_flag_spec='-L$libdir' 8936 hardcode_minus_L=yes 8937 allow_undefined_flag=unsupported 8938 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' 8939 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8940 ;; 8941 8942 osf3*) 8943 if test "$GCC" = yes; then 8944 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8945 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' 8946 else 8947 allow_undefined_flag=' -expect_unresolved \*' 8948 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' 8949 fi 8950 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8951 hardcode_libdir_separator=: 8952 ;; 8953 8954 osf4* | osf5*) # as osf3* with the addition of -msym flag 8955 if test "$GCC" = yes; then 8956 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8957 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' 8958 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8959 else 8960 allow_undefined_flag=' -expect_unresolved \*' 8961 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' 8962 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8963 $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' 8964 8965 # Both c and cxx compiler support -rpath directly 8966 hardcode_libdir_flag_spec='-rpath $libdir' 8967 fi 8968 hardcode_libdir_separator=: 8969 ;; 8970 8971 solaris*) 8972 no_undefined_flag=' -z text' 8973 if test "$GCC" = yes; then 8974 wlarc='${wl}' 8975 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8976 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8977 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8978 else 8979 wlarc='' 8980 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8981 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8982 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8983 fi 8984 hardcode_libdir_flag_spec='-R$libdir' 8985 hardcode_shlibpath_var=no 8986 case $host_os in 8987 solaris2.[0-5] | solaris2.[0-5].*) ;; 8988 *) 8989 # The compiler driver will combine and reorder linker options, 8990 # but understands `-z linker_flag'. GCC discards it without `$wl', 8991 # but is careful enough not to reorder. 8992 # Supported since Solaris 2.6 (maybe 2.5.1?) 8993 if test "$GCC" = yes; then 8994 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8995 else 8996 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8997 fi 8998 ;; 8999 esac 9000 link_all_deplibs=yes 9001 ;; 9002 9003 sunos4*) 9004 if test "x$host_vendor" = xsequent; then 9005 # Use $CC to link under sequent, because it throws in some extra .o 9006 # files that make .init and .fini sections work. 9007 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9008 else 9009 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9010 fi 9011 hardcode_libdir_flag_spec='-L$libdir' 9012 hardcode_direct=yes 9013 hardcode_minus_L=yes 9014 hardcode_shlibpath_var=no 9015 ;; 9016 9017 sysv4) 9018 case $host_vendor in 9019 sni) 9020 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9021 hardcode_direct=yes # is this really true??? 9022 ;; 9023 siemens) 9024 ## LD is ld it makes a PLAMLIB 9025 ## CC just makes a GrossModule. 9026 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9027 reload_cmds='$CC -r -o $output$reload_objs' 9028 hardcode_direct=no 9029 ;; 9030 motorola) 9031 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9032 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9033 ;; 9034 esac 9035 runpath_var='LD_RUN_PATH' 9036 hardcode_shlibpath_var=no 9037 ;; 9038 9039 sysv4.3*) 9040 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9041 hardcode_shlibpath_var=no 9042 export_dynamic_flag_spec='-Bexport' 9043 ;; 9044 9045 sysv4*MP*) 9046 if test -d /usr/nec; then 9047 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9048 hardcode_shlibpath_var=no 9049 runpath_var=LD_RUN_PATH 9050 hardcode_runpath_var=yes 9051 ld_shlibs=yes 9052 fi 9053 ;; 9054 9055 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9056 no_undefined_flag='${wl}-z,text' 9057 archive_cmds_need_lc=no 9058 hardcode_shlibpath_var=no 9059 runpath_var='LD_RUN_PATH' 9060 9061 if test "$GCC" = yes; then 9062 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9063 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9064 else 9065 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9066 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9067 fi 9068 ;; 9069 9070 sysv5* | sco3.2v5* | sco5v6*) 9071 # Note: We can NOT use -z defs as we might desire, because we do not 9072 # link with -lc, and that would cause any symbols used from libc to 9073 # always be unresolved, which means just about no library would 9074 # ever link correctly. If we're not using GNU ld we use -z text 9075 # though, which does catch some bad symbols but isn't as heavy-handed 9076 # as -z defs. 9077 no_undefined_flag='${wl}-z,text' 9078 allow_undefined_flag='${wl}-z,nodefs' 9079 archive_cmds_need_lc=no 9080 hardcode_shlibpath_var=no 9081 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 9082 hardcode_libdir_separator=':' 9083 link_all_deplibs=yes 9084 export_dynamic_flag_spec='${wl}-Bexport' 9085 runpath_var='LD_RUN_PATH' 9086 9087 if test "$GCC" = yes; then 9088 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9089 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9090 else 9091 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9092 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9093 fi 9094 ;; 9095 9096 uts4*) 9097 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9098 hardcode_libdir_flag_spec='-L$libdir' 9099 hardcode_shlibpath_var=no 9100 ;; 9101 9102 *) 9103 ld_shlibs=no 9104 ;; 9105 esac 9106 fi 9107 9108{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 9109$as_echo "$ld_shlibs" >&6; } 9110test "$ld_shlibs" = no && can_build_shared=no 9111 9112# 9113# Do we need to explicitly link libc? 9114# 9115case "x$archive_cmds_need_lc" in 9116x|xyes) 9117 # Assume -lc should be added 9118 archive_cmds_need_lc=yes 9119 9120 if test "$enable_shared" = yes && test "$GCC" = yes; then 9121 case $archive_cmds in 9122 *'~'*) 9123 # FIXME: we may have to deal with multi-command sequences. 9124 ;; 9125 '$CC '*) 9126 # Test whether the compiler implicitly links with -lc since on some 9127 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9128 # to ld, don't add -lc before -lgcc. 9129 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 9130$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9131 $rm conftest* 9132 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9133 9134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9135 (eval $ac_compile) 2>&5 9136 ac_status=$? 9137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9138 (exit $ac_status); } 2>conftest.err; then 9139 soname=conftest 9140 lib=conftest 9141 libobjs=conftest.$ac_objext 9142 deplibs= 9143 wl=$lt_prog_compiler_wl 9144 pic_flag=$lt_prog_compiler_pic 9145 compiler_flags=-v 9146 linker_flags=-v 9147 verstring= 9148 output_objdir=. 9149 libname=conftest 9150 lt_save_allow_undefined_flag=$allow_undefined_flag 9151 allow_undefined_flag= 9152 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 9153 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 9154 ac_status=$? 9155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9156 (exit $ac_status); } 9157 then 9158 archive_cmds_need_lc=no 9159 else 9160 archive_cmds_need_lc=yes 9161 fi 9162 allow_undefined_flag=$lt_save_allow_undefined_flag 9163 else 9164 cat conftest.err 1>&5 9165 fi 9166 $rm conftest* 9167 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 9168$as_echo "$archive_cmds_need_lc" >&6; } 9169 ;; 9170 esac 9171 fi 9172 ;; 9173esac 9174 9175{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9176$as_echo_n "checking dynamic linker characteristics... " >&6; } 9177library_names_spec= 9178libname_spec='lib$name' 9179soname_spec= 9180shrext_cmds=".so" 9181postinstall_cmds= 9182postuninstall_cmds= 9183finish_cmds= 9184finish_eval= 9185shlibpath_var= 9186shlibpath_overrides_runpath=unknown 9187version_type=none 9188dynamic_linker="$host_os ld.so" 9189sys_lib_dlsearch_path_spec="/lib /usr/lib" 9190 9191if test "$GCC" = yes; then 9192 case $host_os in 9193 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9194 *) lt_awk_arg="/^libraries:/" ;; 9195 esac 9196 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9197 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then 9198 # if the path contains ";" then we assume it to be the separator 9199 # otherwise default to the standard path separator (i.e. ":") - it is 9200 # assumed that no part of a normal pathname contains ";" but that should 9201 # okay in the real world where ";" in dirpaths is itself problematic. 9202 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9203 else 9204 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9205 fi 9206 # Ok, now we have the path, separated by spaces, we can step through it 9207 # and add multilib dir if necessary. 9208 lt_tmp_lt_search_path_spec= 9209 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9210 for lt_sys_path in $lt_search_path_spec; do 9211 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9212 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9213 else 9214 test -d "$lt_sys_path" && \ 9215 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9216 fi 9217 done 9218 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' 9219BEGIN {RS=" "; FS="/|\n";} { 9220 lt_foo=""; 9221 lt_count=0; 9222 for (lt_i = NF; lt_i > 0; lt_i--) { 9223 if ($lt_i != "" && $lt_i != ".") { 9224 if ($lt_i == "..") { 9225 lt_count++; 9226 } else { 9227 if (lt_count == 0) { 9228 lt_foo="/" $lt_i lt_foo; 9229 } else { 9230 lt_count--; 9231 } 9232 } 9233 } 9234 } 9235 if (lt_foo != "") { lt_freq[lt_foo]++; } 9236 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9237}'` 9238 sys_lib_search_path_spec=`echo $lt_search_path_spec` 9239else 9240 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9241fi 9242need_lib_prefix=unknown 9243hardcode_into_libs=no 9244 9245# when you set need_version to no, make sure it does not cause -set_version 9246# flags to be left without arguments 9247need_version=unknown 9248 9249case $host_os in 9250aix3*) 9251 version_type=linux 9252 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9253 shlibpath_var=LIBPATH 9254 9255 # AIX 3 has no versioning support, so we append a major version to the name. 9256 soname_spec='${libname}${release}${shared_ext}$major' 9257 ;; 9258 9259aix[4-9]*) 9260 version_type=linux 9261 need_lib_prefix=no 9262 need_version=no 9263 hardcode_into_libs=yes 9264 if test "$host_cpu" = ia64; then 9265 # AIX 5 supports IA64 9266 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9267 shlibpath_var=LD_LIBRARY_PATH 9268 else 9269 # With GCC up to 2.95.x, collect2 would create an import file 9270 # for dependence libraries. The import file would start with 9271 # the line `#! .'. This would cause the generated library to 9272 # depend on `.', always an invalid library. This was fixed in 9273 # development snapshots of GCC prior to 3.0. 9274 case $host_os in 9275 aix4 | aix4.[01] | aix4.[01].*) 9276 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9277 echo ' yes ' 9278 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 9279 : 9280 else 9281 can_build_shared=no 9282 fi 9283 ;; 9284 esac 9285 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9286 # soname into executable. Probably we can add versioning support to 9287 # collect2, so additional links can be useful in future. 9288 if test "$aix_use_runtimelinking" = yes; then 9289 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9290 # instead of lib<name>.a to let people know that these are not 9291 # typical AIX shared libraries. 9292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9293 else 9294 # We preserve .a as extension for shared libraries through AIX4.2 9295 # and later when we are not doing run time linking. 9296 library_names_spec='${libname}${release}.a $libname.a' 9297 soname_spec='${libname}${release}${shared_ext}$major' 9298 fi 9299 shlibpath_var=LIBPATH 9300 fi 9301 ;; 9302 9303amigaos*) 9304 library_names_spec='$libname.ixlibrary $libname.a' 9305 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9306 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' 9307 ;; 9308 9309beos*) 9310 library_names_spec='${libname}${shared_ext}' 9311 dynamic_linker="$host_os ld.so" 9312 shlibpath_var=LIBRARY_PATH 9313 ;; 9314 9315bsdi[45]*) 9316 version_type=linux 9317 need_version=no 9318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9319 soname_spec='${libname}${release}${shared_ext}$major' 9320 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9321 shlibpath_var=LD_LIBRARY_PATH 9322 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9323 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9324 # the default ld.so.conf also contains /usr/contrib/lib and 9325 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9326 # libtool to hard-code these into programs 9327 ;; 9328 9329cygwin* | mingw* | pw32*) 9330 version_type=windows 9331 shrext_cmds=".dll" 9332 need_version=no 9333 need_lib_prefix=no 9334 9335 case $GCC,$host_os in 9336 yes,cygwin* | yes,mingw* | yes,pw32*) 9337 library_names_spec='$libname.dll.a' 9338 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9339 postinstall_cmds='base_file=`basename \${file}`~ 9340 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 9341 dldir=$destdir/`dirname \$dlpath`~ 9342 test -d \$dldir || mkdir -p \$dldir~ 9343 $install_prog $dir/$dlname \$dldir/$dlname~ 9344 chmod a+x \$dldir/$dlname' 9345 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9346 dlpath=$dir/\$dldll~ 9347 $rm \$dlpath' 9348 shlibpath_overrides_runpath=yes 9349 9350 case $host_os in 9351 cygwin*) 9352 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9353 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9354 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9355 ;; 9356 mingw*) 9357 # MinGW DLLs use traditional 'lib' prefix 9358 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9359 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9360 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 9361 # It is most probably a Windows format PATH printed by 9362 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9363 # path with ; separators, and with drive letters. We can handle the 9364 # drive letters (cygwin fileutils understands them), so leave them, 9365 # especially as we might pass files found there to a mingw objdump, 9366 # which wouldn't understand a cygwinified path. Ahh. 9367 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9368 else 9369 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9370 fi 9371 ;; 9372 pw32*) 9373 # pw32 DLLs use 'pw' prefix rather than 'lib' 9374 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9375 ;; 9376 esac 9377 ;; 9378 9379 *) 9380 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9381 ;; 9382 esac 9383 dynamic_linker='Win32 ld.exe' 9384 # FIXME: first we should search . and the directory the executable is in 9385 shlibpath_var=PATH 9386 ;; 9387 9388darwin* | rhapsody*) 9389 dynamic_linker="$host_os dyld" 9390 version_type=darwin 9391 need_lib_prefix=no 9392 need_version=no 9393 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9394 soname_spec='${libname}${release}${major}$shared_ext' 9395 shlibpath_overrides_runpath=yes 9396 shlibpath_var=DYLD_LIBRARY_PATH 9397 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9398 9399 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9400 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9401 ;; 9402 9403dgux*) 9404 version_type=linux 9405 need_lib_prefix=no 9406 need_version=no 9407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9408 soname_spec='${libname}${release}${shared_ext}$major' 9409 shlibpath_var=LD_LIBRARY_PATH 9410 ;; 9411 9412freebsd1*) 9413 dynamic_linker=no 9414 ;; 9415 9416freebsd* | dragonfly*) 9417 # DragonFly does not have aout. When/if they implement a new 9418 # versioning mechanism, adjust this. 9419 if test -x /usr/bin/objformat; then 9420 objformat=`/usr/bin/objformat` 9421 else 9422 case $host_os in 9423 freebsd[123]*) objformat=aout ;; 9424 *) objformat=elf ;; 9425 esac 9426 fi 9427 version_type=freebsd-$objformat 9428 case $version_type in 9429 freebsd-elf*) 9430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9431 need_version=no 9432 need_lib_prefix=no 9433 ;; 9434 freebsd-*) 9435 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9436 need_version=yes 9437 ;; 9438 esac 9439 shlibpath_var=LD_LIBRARY_PATH 9440 case $host_os in 9441 freebsd2*) 9442 shlibpath_overrides_runpath=yes 9443 ;; 9444 freebsd3.[01]* | freebsdelf3.[01]*) 9445 shlibpath_overrides_runpath=yes 9446 hardcode_into_libs=yes 9447 ;; 9448 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9449 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9450 shlibpath_overrides_runpath=no 9451 hardcode_into_libs=yes 9452 ;; 9453 *) # from 4.6 on, and DragonFly 9454 shlibpath_overrides_runpath=yes 9455 hardcode_into_libs=yes 9456 ;; 9457 esac 9458 ;; 9459 9460gnu*) 9461 version_type=linux 9462 need_lib_prefix=no 9463 need_version=no 9464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9465 soname_spec='${libname}${release}${shared_ext}$major' 9466 shlibpath_var=LD_LIBRARY_PATH 9467 hardcode_into_libs=yes 9468 ;; 9469 9470hpux9* | hpux10* | hpux11*) 9471 # Give a soname corresponding to the major version so that dld.sl refuses to 9472 # link against other versions. 9473 version_type=sunos 9474 need_lib_prefix=no 9475 need_version=no 9476 case $host_cpu in 9477 ia64*) 9478 shrext_cmds='.so' 9479 hardcode_into_libs=yes 9480 dynamic_linker="$host_os dld.so" 9481 shlibpath_var=LD_LIBRARY_PATH 9482 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9484 soname_spec='${libname}${release}${shared_ext}$major' 9485 if test "X$HPUX_IA64_MODE" = X32; then 9486 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9487 else 9488 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9489 fi 9490 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9491 ;; 9492 hppa*64*) 9493 shrext_cmds='.sl' 9494 hardcode_into_libs=yes 9495 dynamic_linker="$host_os dld.sl" 9496 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9497 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9499 soname_spec='${libname}${release}${shared_ext}$major' 9500 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9501 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9502 ;; 9503 *) 9504 shrext_cmds='.sl' 9505 dynamic_linker="$host_os dld.sl" 9506 shlibpath_var=SHLIB_PATH 9507 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9509 soname_spec='${libname}${release}${shared_ext}$major' 9510 ;; 9511 esac 9512 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9513 postinstall_cmds='chmod 555 $lib' 9514 ;; 9515 9516interix[3-9]*) 9517 version_type=linux 9518 need_lib_prefix=no 9519 need_version=no 9520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9521 soname_spec='${libname}${release}${shared_ext}$major' 9522 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9523 shlibpath_var=LD_LIBRARY_PATH 9524 shlibpath_overrides_runpath=no 9525 hardcode_into_libs=yes 9526 ;; 9527 9528irix5* | irix6* | nonstopux*) 9529 case $host_os in 9530 nonstopux*) version_type=nonstopux ;; 9531 *) 9532 if test "$lt_cv_prog_gnu_ld" = yes; then 9533 version_type=linux 9534 else 9535 version_type=irix 9536 fi ;; 9537 esac 9538 need_lib_prefix=no 9539 need_version=no 9540 soname_spec='${libname}${release}${shared_ext}$major' 9541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9542 case $host_os in 9543 irix5* | nonstopux*) 9544 libsuff= shlibsuff= 9545 ;; 9546 *) 9547 case $LD in # libtool.m4 will add one of these switches to LD 9548 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9549 libsuff= shlibsuff= libmagic=32-bit;; 9550 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9551 libsuff=32 shlibsuff=N32 libmagic=N32;; 9552 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9553 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9554 *) libsuff= shlibsuff= libmagic=never-match;; 9555 esac 9556 ;; 9557 esac 9558 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9559 shlibpath_overrides_runpath=no 9560 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9561 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9562 hardcode_into_libs=yes 9563 ;; 9564 9565# No shared lib support for Linux oldld, aout, or coff. 9566linux*oldld* | linux*aout* | linux*coff*) 9567 dynamic_linker=no 9568 ;; 9569 9570# This must be Linux ELF. 9571linux* | k*bsd*-gnu) 9572 version_type=linux 9573 need_lib_prefix=no 9574 need_version=no 9575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9576 soname_spec='${libname}${release}${shared_ext}$major' 9577 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9578 shlibpath_var=LD_LIBRARY_PATH 9579 shlibpath_overrides_runpath=no 9580 # This implies no fast_install, which is unacceptable. 9581 # Some rework will be needed to allow for fast_install 9582 # before this can be enabled. 9583 hardcode_into_libs=yes 9584 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9585 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9586 9587 # Append ld.so.conf contents to the search path 9588 if test -f /etc/ld.so.conf; then 9589 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' ' '` 9590 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 9591 fi 9592 9593 # We used to test for /lib/ld.so.1 and disable shared libraries on 9594 # powerpc, because MkLinux only supported shared libraries with the 9595 # GNU dynamic linker. Since this was broken with cross compilers, 9596 # most powerpc-linux boxes support dynamic linking these days and 9597 # people can always --disable-shared, the test was removed, and we 9598 # assume the GNU/Linux dynamic linker is in use. 9599 dynamic_linker='GNU/Linux ld.so' 9600 ;; 9601 9602netbsd*) 9603 version_type=sunos 9604 need_lib_prefix=no 9605 need_version=no 9606 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9608 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9609 dynamic_linker='NetBSD (a.out) ld.so' 9610 else 9611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9612 soname_spec='${libname}${release}${shared_ext}$major' 9613 dynamic_linker='NetBSD ld.elf_so' 9614 fi 9615 shlibpath_var=LD_LIBRARY_PATH 9616 shlibpath_overrides_runpath=yes 9617 hardcode_into_libs=yes 9618 ;; 9619 9620newsos6) 9621 version_type=linux 9622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9623 shlibpath_var=LD_LIBRARY_PATH 9624 shlibpath_overrides_runpath=yes 9625 ;; 9626 9627nto-qnx*) 9628 version_type=linux 9629 need_lib_prefix=no 9630 need_version=no 9631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9632 soname_spec='${libname}${release}${shared_ext}$major' 9633 shlibpath_var=LD_LIBRARY_PATH 9634 shlibpath_overrides_runpath=yes 9635 ;; 9636 9637openbsd*) 9638 version_type=sunos 9639 sys_lib_dlsearch_path_spec="/usr/lib" 9640 need_lib_prefix=no 9641 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9642 case $host_os in 9643 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9644 *) need_version=no ;; 9645 esac 9646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9647 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9648 shlibpath_var=LD_LIBRARY_PATH 9649 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9650 case $host_os in 9651 openbsd2.[89] | openbsd2.[89].*) 9652 shlibpath_overrides_runpath=no 9653 ;; 9654 *) 9655 shlibpath_overrides_runpath=yes 9656 ;; 9657 esac 9658 else 9659 shlibpath_overrides_runpath=yes 9660 fi 9661 ;; 9662 9663os2*) 9664 libname_spec='$name' 9665 shrext_cmds=".dll" 9666 need_lib_prefix=no 9667 library_names_spec='$libname${shared_ext} $libname.a' 9668 dynamic_linker='OS/2 ld.exe' 9669 shlibpath_var=LIBPATH 9670 ;; 9671 9672osf3* | osf4* | osf5*) 9673 version_type=osf 9674 need_lib_prefix=no 9675 need_version=no 9676 soname_spec='${libname}${release}${shared_ext}$major' 9677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9678 shlibpath_var=LD_LIBRARY_PATH 9679 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9680 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9681 ;; 9682 9683rdos*) 9684 dynamic_linker=no 9685 ;; 9686 9687solaris*) 9688 version_type=linux 9689 need_lib_prefix=no 9690 need_version=no 9691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9692 soname_spec='${libname}${release}${shared_ext}$major' 9693 shlibpath_var=LD_LIBRARY_PATH 9694 shlibpath_overrides_runpath=yes 9695 hardcode_into_libs=yes 9696 # ldd complains unless libraries are executable 9697 postinstall_cmds='chmod +x $lib' 9698 ;; 9699 9700sunos4*) 9701 version_type=sunos 9702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9703 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9704 shlibpath_var=LD_LIBRARY_PATH 9705 shlibpath_overrides_runpath=yes 9706 if test "$with_gnu_ld" = yes; then 9707 need_lib_prefix=no 9708 fi 9709 need_version=yes 9710 ;; 9711 9712sysv4 | sysv4.3*) 9713 version_type=linux 9714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9715 soname_spec='${libname}${release}${shared_ext}$major' 9716 shlibpath_var=LD_LIBRARY_PATH 9717 case $host_vendor in 9718 sni) 9719 shlibpath_overrides_runpath=no 9720 need_lib_prefix=no 9721 export_dynamic_flag_spec='${wl}-Blargedynsym' 9722 runpath_var=LD_RUN_PATH 9723 ;; 9724 siemens) 9725 need_lib_prefix=no 9726 ;; 9727 motorola) 9728 need_lib_prefix=no 9729 need_version=no 9730 shlibpath_overrides_runpath=no 9731 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9732 ;; 9733 esac 9734 ;; 9735 9736sysv4*MP*) 9737 if test -d /usr/nec ;then 9738 version_type=linux 9739 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9740 soname_spec='$libname${shared_ext}.$major' 9741 shlibpath_var=LD_LIBRARY_PATH 9742 fi 9743 ;; 9744 9745sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9746 version_type=freebsd-elf 9747 need_lib_prefix=no 9748 need_version=no 9749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9750 soname_spec='${libname}${release}${shared_ext}$major' 9751 shlibpath_var=LD_LIBRARY_PATH 9752 hardcode_into_libs=yes 9753 if test "$with_gnu_ld" = yes; then 9754 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9755 shlibpath_overrides_runpath=no 9756 else 9757 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9758 shlibpath_overrides_runpath=yes 9759 case $host_os in 9760 sco3.2v5*) 9761 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9762 ;; 9763 esac 9764 fi 9765 sys_lib_dlsearch_path_spec='/usr/lib' 9766 ;; 9767 9768uts4*) 9769 version_type=linux 9770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9771 soname_spec='${libname}${release}${shared_ext}$major' 9772 shlibpath_var=LD_LIBRARY_PATH 9773 ;; 9774 9775*) 9776 dynamic_linker=no 9777 ;; 9778esac 9779{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9780$as_echo "$dynamic_linker" >&6; } 9781test "$dynamic_linker" = no && can_build_shared=no 9782 9783if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 9784 $as_echo_n "(cached) " >&6 9785else 9786 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 9787fi 9788 9789sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 9790if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 9791 $as_echo_n "(cached) " >&6 9792else 9793 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 9794fi 9795 9796sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 9797 9798variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9799if test "$GCC" = yes; then 9800 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9801fi 9802 9803{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9804$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 9805hardcode_action= 9806if test -n "$hardcode_libdir_flag_spec" || \ 9807 test -n "$runpath_var" || \ 9808 test "X$hardcode_automatic" = "Xyes" ; then 9809 9810 # We can hardcode non-existant directories. 9811 if test "$hardcode_direct" != no && 9812 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9813 # have to relink, otherwise we might link with an installed library 9814 # when we should be linking with a yet-to-be-installed one 9815 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9816 test "$hardcode_minus_L" != no; then 9817 # Linking always hardcodes the temporary library directory. 9818 hardcode_action=relink 9819 else 9820 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9821 hardcode_action=immediate 9822 fi 9823else 9824 # We cannot hardcode anything, or else we can only hardcode existing 9825 # directories. 9826 hardcode_action=unsupported 9827fi 9828{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 9829$as_echo "$hardcode_action" >&6; } 9830 9831if test "$hardcode_action" = relink; then 9832 # Fast installation is not supported 9833 enable_fast_install=no 9834elif test "$shlibpath_overrides_runpath" = yes || 9835 test "$enable_shared" = no; then 9836 # Fast installation is not necessary 9837 enable_fast_install=needless 9838fi 9839 9840striplib= 9841old_striplib= 9842{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9843$as_echo_n "checking whether stripping libraries is possible... " >&6; } 9844if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9845 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9846 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9847 { $as_echo "$as_me:$LINENO: result: yes" >&5 9848$as_echo "yes" >&6; } 9849else 9850# FIXME - insert some real tests, host_os isn't really good enough 9851 case $host_os in 9852 darwin*) 9853 if test -n "$STRIP" ; then 9854 striplib="$STRIP -x" 9855 old_striplib="$STRIP -S" 9856 { $as_echo "$as_me:$LINENO: result: yes" >&5 9857$as_echo "yes" >&6; } 9858 else 9859 { $as_echo "$as_me:$LINENO: result: no" >&5 9860$as_echo "no" >&6; } 9861fi 9862 ;; 9863 *) 9864 { $as_echo "$as_me:$LINENO: result: no" >&5 9865$as_echo "no" >&6; } 9866 ;; 9867 esac 9868fi 9869 9870if test "x$enable_dlopen" != xyes; then 9871 enable_dlopen=unknown 9872 enable_dlopen_self=unknown 9873 enable_dlopen_self_static=unknown 9874else 9875 lt_cv_dlopen=no 9876 lt_cv_dlopen_libs= 9877 9878 case $host_os in 9879 beos*) 9880 lt_cv_dlopen="load_add_on" 9881 lt_cv_dlopen_libs= 9882 lt_cv_dlopen_self=yes 9883 ;; 9884 9885 mingw* | pw32*) 9886 lt_cv_dlopen="LoadLibrary" 9887 lt_cv_dlopen_libs= 9888 ;; 9889 9890 cygwin*) 9891 lt_cv_dlopen="dlopen" 9892 lt_cv_dlopen_libs= 9893 ;; 9894 9895 darwin*) 9896 # if libdl is installed we need to link against it 9897 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9898$as_echo_n "checking for dlopen in -ldl... " >&6; } 9899if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9900 $as_echo_n "(cached) " >&6 9901else 9902 ac_check_lib_save_LIBS=$LIBS 9903LIBS="-ldl $LIBS" 9904cat >conftest.$ac_ext <<_ACEOF 9905/* confdefs.h. */ 9906_ACEOF 9907cat confdefs.h >>conftest.$ac_ext 9908cat >>conftest.$ac_ext <<_ACEOF 9909/* end confdefs.h. */ 9910 9911/* Override any GCC internal prototype to avoid an error. 9912 Use char because int might match the return type of a GCC 9913 builtin and then its argument prototype would still apply. */ 9914#ifdef __cplusplus 9915extern "C" 9916#endif 9917char dlopen (); 9918int 9919main () 9920{ 9921return dlopen (); 9922 ; 9923 return 0; 9924} 9925_ACEOF 9926rm -f conftest.$ac_objext conftest$ac_exeext 9927if { (ac_try="$ac_link" 9928case "(($ac_try" in 9929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9930 *) ac_try_echo=$ac_try;; 9931esac 9932eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9933$as_echo "$ac_try_echo") >&5 9934 (eval "$ac_link") 2>conftest.er1 9935 ac_status=$? 9936 grep -v '^ *+' conftest.er1 >conftest.err 9937 rm -f conftest.er1 9938 cat conftest.err >&5 9939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9940 (exit $ac_status); } && { 9941 test -z "$ac_c_werror_flag" || 9942 test ! -s conftest.err 9943 } && test -s conftest$ac_exeext && { 9944 test "$cross_compiling" = yes || 9945 $as_test_x conftest$ac_exeext 9946 }; then 9947 ac_cv_lib_dl_dlopen=yes 9948else 9949 $as_echo "$as_me: failed program was:" >&5 9950sed 's/^/| /' conftest.$ac_ext >&5 9951 9952 ac_cv_lib_dl_dlopen=no 9953fi 9954 9955rm -rf conftest.dSYM 9956rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9957 conftest$ac_exeext conftest.$ac_ext 9958LIBS=$ac_check_lib_save_LIBS 9959fi 9960{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9961$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 9962if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 9963 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9964else 9965 9966 lt_cv_dlopen="dyld" 9967 lt_cv_dlopen_libs= 9968 lt_cv_dlopen_self=yes 9969 9970fi 9971 9972 ;; 9973 9974 *) 9975 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 9976$as_echo_n "checking for shl_load... " >&6; } 9977if test "${ac_cv_func_shl_load+set}" = set; then 9978 $as_echo_n "(cached) " >&6 9979else 9980 cat >conftest.$ac_ext <<_ACEOF 9981/* confdefs.h. */ 9982_ACEOF 9983cat confdefs.h >>conftest.$ac_ext 9984cat >>conftest.$ac_ext <<_ACEOF 9985/* end confdefs.h. */ 9986/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9987 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9988#define shl_load innocuous_shl_load 9989 9990/* System header to define __stub macros and hopefully few prototypes, 9991 which can conflict with char shl_load (); below. 9992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9993 <limits.h> exists even on freestanding compilers. */ 9994 9995#ifdef __STDC__ 9996# include <limits.h> 9997#else 9998# include <assert.h> 9999#endif 10000 10001#undef shl_load 10002 10003/* Override any GCC internal prototype to avoid an error. 10004 Use char because int might match the return type of a GCC 10005 builtin and then its argument prototype would still apply. */ 10006#ifdef __cplusplus 10007extern "C" 10008#endif 10009char shl_load (); 10010/* The GNU C library defines this for functions which it implements 10011 to always fail with ENOSYS. Some functions are actually named 10012 something starting with __ and the normal name is an alias. */ 10013#if defined __stub_shl_load || defined __stub___shl_load 10014choke me 10015#endif 10016 10017int 10018main () 10019{ 10020return shl_load (); 10021 ; 10022 return 0; 10023} 10024_ACEOF 10025rm -f conftest.$ac_objext conftest$ac_exeext 10026if { (ac_try="$ac_link" 10027case "(($ac_try" in 10028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10029 *) ac_try_echo=$ac_try;; 10030esac 10031eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10032$as_echo "$ac_try_echo") >&5 10033 (eval "$ac_link") 2>conftest.er1 10034 ac_status=$? 10035 grep -v '^ *+' conftest.er1 >conftest.err 10036 rm -f conftest.er1 10037 cat conftest.err >&5 10038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10039 (exit $ac_status); } && { 10040 test -z "$ac_c_werror_flag" || 10041 test ! -s conftest.err 10042 } && test -s conftest$ac_exeext && { 10043 test "$cross_compiling" = yes || 10044 $as_test_x conftest$ac_exeext 10045 }; then 10046 ac_cv_func_shl_load=yes 10047else 10048 $as_echo "$as_me: failed program was:" >&5 10049sed 's/^/| /' conftest.$ac_ext >&5 10050 10051 ac_cv_func_shl_load=no 10052fi 10053 10054rm -rf conftest.dSYM 10055rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10056 conftest$ac_exeext conftest.$ac_ext 10057fi 10058{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 10059$as_echo "$ac_cv_func_shl_load" >&6; } 10060if test "x$ac_cv_func_shl_load" = x""yes; then 10061 lt_cv_dlopen="shl_load" 10062else 10063 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 10064$as_echo_n "checking for shl_load in -ldld... " >&6; } 10065if test "${ac_cv_lib_dld_shl_load+set}" = set; then 10066 $as_echo_n "(cached) " >&6 10067else 10068 ac_check_lib_save_LIBS=$LIBS 10069LIBS="-ldld $LIBS" 10070cat >conftest.$ac_ext <<_ACEOF 10071/* confdefs.h. */ 10072_ACEOF 10073cat confdefs.h >>conftest.$ac_ext 10074cat >>conftest.$ac_ext <<_ACEOF 10075/* end confdefs.h. */ 10076 10077/* Override any GCC internal prototype to avoid an error. 10078 Use char because int might match the return type of a GCC 10079 builtin and then its argument prototype would still apply. */ 10080#ifdef __cplusplus 10081extern "C" 10082#endif 10083char shl_load (); 10084int 10085main () 10086{ 10087return shl_load (); 10088 ; 10089 return 0; 10090} 10091_ACEOF 10092rm -f conftest.$ac_objext conftest$ac_exeext 10093if { (ac_try="$ac_link" 10094case "(($ac_try" in 10095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10096 *) ac_try_echo=$ac_try;; 10097esac 10098eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10099$as_echo "$ac_try_echo") >&5 10100 (eval "$ac_link") 2>conftest.er1 10101 ac_status=$? 10102 grep -v '^ *+' conftest.er1 >conftest.err 10103 rm -f conftest.er1 10104 cat conftest.err >&5 10105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10106 (exit $ac_status); } && { 10107 test -z "$ac_c_werror_flag" || 10108 test ! -s conftest.err 10109 } && test -s conftest$ac_exeext && { 10110 test "$cross_compiling" = yes || 10111 $as_test_x conftest$ac_exeext 10112 }; then 10113 ac_cv_lib_dld_shl_load=yes 10114else 10115 $as_echo "$as_me: failed program was:" >&5 10116sed 's/^/| /' conftest.$ac_ext >&5 10117 10118 ac_cv_lib_dld_shl_load=no 10119fi 10120 10121rm -rf conftest.dSYM 10122rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10123 conftest$ac_exeext conftest.$ac_ext 10124LIBS=$ac_check_lib_save_LIBS 10125fi 10126{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 10127$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10128if test "x$ac_cv_lib_dld_shl_load" = x""yes; then 10129 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10130else 10131 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 10132$as_echo_n "checking for dlopen... " >&6; } 10133if test "${ac_cv_func_dlopen+set}" = set; then 10134 $as_echo_n "(cached) " >&6 10135else 10136 cat >conftest.$ac_ext <<_ACEOF 10137/* confdefs.h. */ 10138_ACEOF 10139cat confdefs.h >>conftest.$ac_ext 10140cat >>conftest.$ac_ext <<_ACEOF 10141/* end confdefs.h. */ 10142/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 10143 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10144#define dlopen innocuous_dlopen 10145 10146/* System header to define __stub macros and hopefully few prototypes, 10147 which can conflict with char dlopen (); below. 10148 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10149 <limits.h> exists even on freestanding compilers. */ 10150 10151#ifdef __STDC__ 10152# include <limits.h> 10153#else 10154# include <assert.h> 10155#endif 10156 10157#undef dlopen 10158 10159/* Override any GCC internal prototype to avoid an error. 10160 Use char because int might match the return type of a GCC 10161 builtin and then its argument prototype would still apply. */ 10162#ifdef __cplusplus 10163extern "C" 10164#endif 10165char dlopen (); 10166/* The GNU C library defines this for functions which it implements 10167 to always fail with ENOSYS. Some functions are actually named 10168 something starting with __ and the normal name is an alias. */ 10169#if defined __stub_dlopen || defined __stub___dlopen 10170choke me 10171#endif 10172 10173int 10174main () 10175{ 10176return dlopen (); 10177 ; 10178 return 0; 10179} 10180_ACEOF 10181rm -f conftest.$ac_objext conftest$ac_exeext 10182if { (ac_try="$ac_link" 10183case "(($ac_try" in 10184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10185 *) ac_try_echo=$ac_try;; 10186esac 10187eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10188$as_echo "$ac_try_echo") >&5 10189 (eval "$ac_link") 2>conftest.er1 10190 ac_status=$? 10191 grep -v '^ *+' conftest.er1 >conftest.err 10192 rm -f conftest.er1 10193 cat conftest.err >&5 10194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10195 (exit $ac_status); } && { 10196 test -z "$ac_c_werror_flag" || 10197 test ! -s conftest.err 10198 } && test -s conftest$ac_exeext && { 10199 test "$cross_compiling" = yes || 10200 $as_test_x conftest$ac_exeext 10201 }; then 10202 ac_cv_func_dlopen=yes 10203else 10204 $as_echo "$as_me: failed program was:" >&5 10205sed 's/^/| /' conftest.$ac_ext >&5 10206 10207 ac_cv_func_dlopen=no 10208fi 10209 10210rm -rf conftest.dSYM 10211rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10212 conftest$ac_exeext conftest.$ac_ext 10213fi 10214{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 10215$as_echo "$ac_cv_func_dlopen" >&6; } 10216if test "x$ac_cv_func_dlopen" = x""yes; then 10217 lt_cv_dlopen="dlopen" 10218else 10219 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10220$as_echo_n "checking for dlopen in -ldl... " >&6; } 10221if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10222 $as_echo_n "(cached) " >&6 10223else 10224 ac_check_lib_save_LIBS=$LIBS 10225LIBS="-ldl $LIBS" 10226cat >conftest.$ac_ext <<_ACEOF 10227/* confdefs.h. */ 10228_ACEOF 10229cat confdefs.h >>conftest.$ac_ext 10230cat >>conftest.$ac_ext <<_ACEOF 10231/* end confdefs.h. */ 10232 10233/* Override any GCC internal prototype to avoid an error. 10234 Use char because int might match the return type of a GCC 10235 builtin and then its argument prototype would still apply. */ 10236#ifdef __cplusplus 10237extern "C" 10238#endif 10239char dlopen (); 10240int 10241main () 10242{ 10243return dlopen (); 10244 ; 10245 return 0; 10246} 10247_ACEOF 10248rm -f conftest.$ac_objext conftest$ac_exeext 10249if { (ac_try="$ac_link" 10250case "(($ac_try" in 10251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10252 *) ac_try_echo=$ac_try;; 10253esac 10254eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10255$as_echo "$ac_try_echo") >&5 10256 (eval "$ac_link") 2>conftest.er1 10257 ac_status=$? 10258 grep -v '^ *+' conftest.er1 >conftest.err 10259 rm -f conftest.er1 10260 cat conftest.err >&5 10261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10262 (exit $ac_status); } && { 10263 test -z "$ac_c_werror_flag" || 10264 test ! -s conftest.err 10265 } && test -s conftest$ac_exeext && { 10266 test "$cross_compiling" = yes || 10267 $as_test_x conftest$ac_exeext 10268 }; then 10269 ac_cv_lib_dl_dlopen=yes 10270else 10271 $as_echo "$as_me: failed program was:" >&5 10272sed 's/^/| /' conftest.$ac_ext >&5 10273 10274 ac_cv_lib_dl_dlopen=no 10275fi 10276 10277rm -rf conftest.dSYM 10278rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10279 conftest$ac_exeext conftest.$ac_ext 10280LIBS=$ac_check_lib_save_LIBS 10281fi 10282{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10283$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10284if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 10285 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10286else 10287 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10288$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10289if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10290 $as_echo_n "(cached) " >&6 10291else 10292 ac_check_lib_save_LIBS=$LIBS 10293LIBS="-lsvld $LIBS" 10294cat >conftest.$ac_ext <<_ACEOF 10295/* confdefs.h. */ 10296_ACEOF 10297cat confdefs.h >>conftest.$ac_ext 10298cat >>conftest.$ac_ext <<_ACEOF 10299/* end confdefs.h. */ 10300 10301/* Override any GCC internal prototype to avoid an error. 10302 Use char because int might match the return type of a GCC 10303 builtin and then its argument prototype would still apply. */ 10304#ifdef __cplusplus 10305extern "C" 10306#endif 10307char dlopen (); 10308int 10309main () 10310{ 10311return dlopen (); 10312 ; 10313 return 0; 10314} 10315_ACEOF 10316rm -f conftest.$ac_objext conftest$ac_exeext 10317if { (ac_try="$ac_link" 10318case "(($ac_try" in 10319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10320 *) ac_try_echo=$ac_try;; 10321esac 10322eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10323$as_echo "$ac_try_echo") >&5 10324 (eval "$ac_link") 2>conftest.er1 10325 ac_status=$? 10326 grep -v '^ *+' conftest.er1 >conftest.err 10327 rm -f conftest.er1 10328 cat conftest.err >&5 10329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10330 (exit $ac_status); } && { 10331 test -z "$ac_c_werror_flag" || 10332 test ! -s conftest.err 10333 } && test -s conftest$ac_exeext && { 10334 test "$cross_compiling" = yes || 10335 $as_test_x conftest$ac_exeext 10336 }; then 10337 ac_cv_lib_svld_dlopen=yes 10338else 10339 $as_echo "$as_me: failed program was:" >&5 10340sed 's/^/| /' conftest.$ac_ext >&5 10341 10342 ac_cv_lib_svld_dlopen=no 10343fi 10344 10345rm -rf conftest.dSYM 10346rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10347 conftest$ac_exeext conftest.$ac_ext 10348LIBS=$ac_check_lib_save_LIBS 10349fi 10350{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10351$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10352if test "x$ac_cv_lib_svld_dlopen" = x""yes; then 10353 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10354else 10355 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10356$as_echo_n "checking for dld_link in -ldld... " >&6; } 10357if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10358 $as_echo_n "(cached) " >&6 10359else 10360 ac_check_lib_save_LIBS=$LIBS 10361LIBS="-ldld $LIBS" 10362cat >conftest.$ac_ext <<_ACEOF 10363/* confdefs.h. */ 10364_ACEOF 10365cat confdefs.h >>conftest.$ac_ext 10366cat >>conftest.$ac_ext <<_ACEOF 10367/* end confdefs.h. */ 10368 10369/* Override any GCC internal prototype to avoid an error. 10370 Use char because int might match the return type of a GCC 10371 builtin and then its argument prototype would still apply. */ 10372#ifdef __cplusplus 10373extern "C" 10374#endif 10375char dld_link (); 10376int 10377main () 10378{ 10379return dld_link (); 10380 ; 10381 return 0; 10382} 10383_ACEOF 10384rm -f conftest.$ac_objext conftest$ac_exeext 10385if { (ac_try="$ac_link" 10386case "(($ac_try" in 10387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10388 *) ac_try_echo=$ac_try;; 10389esac 10390eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10391$as_echo "$ac_try_echo") >&5 10392 (eval "$ac_link") 2>conftest.er1 10393 ac_status=$? 10394 grep -v '^ *+' conftest.er1 >conftest.err 10395 rm -f conftest.er1 10396 cat conftest.err >&5 10397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10398 (exit $ac_status); } && { 10399 test -z "$ac_c_werror_flag" || 10400 test ! -s conftest.err 10401 } && test -s conftest$ac_exeext && { 10402 test "$cross_compiling" = yes || 10403 $as_test_x conftest$ac_exeext 10404 }; then 10405 ac_cv_lib_dld_dld_link=yes 10406else 10407 $as_echo "$as_me: failed program was:" >&5 10408sed 's/^/| /' conftest.$ac_ext >&5 10409 10410 ac_cv_lib_dld_dld_link=no 10411fi 10412 10413rm -rf conftest.dSYM 10414rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10415 conftest$ac_exeext conftest.$ac_ext 10416LIBS=$ac_check_lib_save_LIBS 10417fi 10418{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10419$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10420if test "x$ac_cv_lib_dld_dld_link" = x""yes; then 10421 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10422fi 10423 10424 10425fi 10426 10427 10428fi 10429 10430 10431fi 10432 10433 10434fi 10435 10436 10437fi 10438 10439 ;; 10440 esac 10441 10442 if test "x$lt_cv_dlopen" != xno; then 10443 enable_dlopen=yes 10444 else 10445 enable_dlopen=no 10446 fi 10447 10448 case $lt_cv_dlopen in 10449 dlopen) 10450 save_CPPFLAGS="$CPPFLAGS" 10451 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10452 10453 save_LDFLAGS="$LDFLAGS" 10454 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10455 10456 save_LIBS="$LIBS" 10457 LIBS="$lt_cv_dlopen_libs $LIBS" 10458 10459 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10460$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10461if test "${lt_cv_dlopen_self+set}" = set; then 10462 $as_echo_n "(cached) " >&6 10463else 10464 if test "$cross_compiling" = yes; then : 10465 lt_cv_dlopen_self=cross 10466else 10467 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10468 lt_status=$lt_dlunknown 10469 cat > conftest.$ac_ext <<EOF 10470#line 10470 "configure" 10471#include "confdefs.h" 10472 10473#if HAVE_DLFCN_H 10474#include <dlfcn.h> 10475#endif 10476 10477#include <stdio.h> 10478 10479#ifdef RTLD_GLOBAL 10480# define LT_DLGLOBAL RTLD_GLOBAL 10481#else 10482# ifdef DL_GLOBAL 10483# define LT_DLGLOBAL DL_GLOBAL 10484# else 10485# define LT_DLGLOBAL 0 10486# endif 10487#endif 10488 10489/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10490 find out it does not work in some platform. */ 10491#ifndef LT_DLLAZY_OR_NOW 10492# ifdef RTLD_LAZY 10493# define LT_DLLAZY_OR_NOW RTLD_LAZY 10494# else 10495# ifdef DL_LAZY 10496# define LT_DLLAZY_OR_NOW DL_LAZY 10497# else 10498# ifdef RTLD_NOW 10499# define LT_DLLAZY_OR_NOW RTLD_NOW 10500# else 10501# ifdef DL_NOW 10502# define LT_DLLAZY_OR_NOW DL_NOW 10503# else 10504# define LT_DLLAZY_OR_NOW 0 10505# endif 10506# endif 10507# endif 10508# endif 10509#endif 10510 10511#ifdef __cplusplus 10512extern "C" void exit (int); 10513#endif 10514 10515void fnord() { int i=42;} 10516int main () 10517{ 10518 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10519 int status = $lt_dlunknown; 10520 10521 if (self) 10522 { 10523 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10524 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10525 /* dlclose (self); */ 10526 } 10527 else 10528 puts (dlerror ()); 10529 10530 exit (status); 10531} 10532EOF 10533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10534 (eval $ac_link) 2>&5 10535 ac_status=$? 10536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10537 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10538 (./conftest; exit; ) >&5 2>/dev/null 10539 lt_status=$? 10540 case x$lt_status in 10541 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10542 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10543 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10544 esac 10545 else : 10546 # compilation failed 10547 lt_cv_dlopen_self=no 10548 fi 10549fi 10550rm -fr conftest* 10551 10552 10553fi 10554{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10555$as_echo "$lt_cv_dlopen_self" >&6; } 10556 10557 if test "x$lt_cv_dlopen_self" = xyes; then 10558 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10559 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10560$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10561if test "${lt_cv_dlopen_self_static+set}" = set; then 10562 $as_echo_n "(cached) " >&6 10563else 10564 if test "$cross_compiling" = yes; then : 10565 lt_cv_dlopen_self_static=cross 10566else 10567 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10568 lt_status=$lt_dlunknown 10569 cat > conftest.$ac_ext <<EOF 10570#line 10570 "configure" 10571#include "confdefs.h" 10572 10573#if HAVE_DLFCN_H 10574#include <dlfcn.h> 10575#endif 10576 10577#include <stdio.h> 10578 10579#ifdef RTLD_GLOBAL 10580# define LT_DLGLOBAL RTLD_GLOBAL 10581#else 10582# ifdef DL_GLOBAL 10583# define LT_DLGLOBAL DL_GLOBAL 10584# else 10585# define LT_DLGLOBAL 0 10586# endif 10587#endif 10588 10589/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10590 find out it does not work in some platform. */ 10591#ifndef LT_DLLAZY_OR_NOW 10592# ifdef RTLD_LAZY 10593# define LT_DLLAZY_OR_NOW RTLD_LAZY 10594# else 10595# ifdef DL_LAZY 10596# define LT_DLLAZY_OR_NOW DL_LAZY 10597# else 10598# ifdef RTLD_NOW 10599# define LT_DLLAZY_OR_NOW RTLD_NOW 10600# else 10601# ifdef DL_NOW 10602# define LT_DLLAZY_OR_NOW DL_NOW 10603# else 10604# define LT_DLLAZY_OR_NOW 0 10605# endif 10606# endif 10607# endif 10608# endif 10609#endif 10610 10611#ifdef __cplusplus 10612extern "C" void exit (int); 10613#endif 10614 10615void fnord() { int i=42;} 10616int main () 10617{ 10618 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10619 int status = $lt_dlunknown; 10620 10621 if (self) 10622 { 10623 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10624 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10625 /* dlclose (self); */ 10626 } 10627 else 10628 puts (dlerror ()); 10629 10630 exit (status); 10631} 10632EOF 10633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10634 (eval $ac_link) 2>&5 10635 ac_status=$? 10636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10637 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10638 (./conftest; exit; ) >&5 2>/dev/null 10639 lt_status=$? 10640 case x$lt_status in 10641 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10642 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10643 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10644 esac 10645 else : 10646 # compilation failed 10647 lt_cv_dlopen_self_static=no 10648 fi 10649fi 10650rm -fr conftest* 10651 10652 10653fi 10654{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10655$as_echo "$lt_cv_dlopen_self_static" >&6; } 10656 fi 10657 10658 CPPFLAGS="$save_CPPFLAGS" 10659 LDFLAGS="$save_LDFLAGS" 10660 LIBS="$save_LIBS" 10661 ;; 10662 esac 10663 10664 case $lt_cv_dlopen_self in 10665 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10666 *) enable_dlopen_self=unknown ;; 10667 esac 10668 10669 case $lt_cv_dlopen_self_static in 10670 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10671 *) enable_dlopen_self_static=unknown ;; 10672 esac 10673fi 10674 10675 10676# Report which library types will actually be built 10677{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10678$as_echo_n "checking if libtool supports shared libraries... " >&6; } 10679{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 10680$as_echo "$can_build_shared" >&6; } 10681 10682{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10683$as_echo_n "checking whether to build shared libraries... " >&6; } 10684test "$can_build_shared" = "no" && enable_shared=no 10685 10686# On AIX, shared libraries and static libraries use the same namespace, and 10687# are all built from PIC. 10688case $host_os in 10689aix3*) 10690 test "$enable_shared" = yes && enable_static=no 10691 if test -n "$RANLIB"; then 10692 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10693 postinstall_cmds='$RANLIB $lib' 10694 fi 10695 ;; 10696 10697aix[4-9]*) 10698 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10699 test "$enable_shared" = yes && enable_static=no 10700 fi 10701 ;; 10702esac 10703{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 10704$as_echo "$enable_shared" >&6; } 10705 10706{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10707$as_echo_n "checking whether to build static libraries... " >&6; } 10708# Make sure either enable_shared or enable_static is yes. 10709test "$enable_shared" = yes || enable_static=yes 10710{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5 10711$as_echo "$enable_static" >&6; } 10712 10713# The else clause should only fire when bootstrapping the 10714# libtool distribution, otherwise you forgot to ship ltmain.sh 10715# with your package, and you will get complaints that there are 10716# no rules to generate ltmain.sh. 10717if test -f "$ltmain"; then 10718 # See if we are running on zsh, and set the options which allow our commands through 10719 # without removal of \ escapes. 10720 if test -n "${ZSH_VERSION+set}" ; then 10721 setopt NO_GLOB_SUBST 10722 fi 10723 # Now quote all the things that may contain metacharacters while being 10724 # careful not to overquote the AC_SUBSTed values. We take copies of the 10725 # variables and quote the copies for generation of the libtool script. 10726 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 10727 SED SHELL STRIP \ 10728 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10729 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10730 deplibs_check_method reload_flag reload_cmds need_locks \ 10731 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10732 lt_cv_sys_global_symbol_to_c_name_address \ 10733 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10734 old_postinstall_cmds old_postuninstall_cmds \ 10735 compiler \ 10736 CC \ 10737 LD \ 10738 lt_prog_compiler_wl \ 10739 lt_prog_compiler_pic \ 10740 lt_prog_compiler_static \ 10741 lt_prog_compiler_no_builtin_flag \ 10742 export_dynamic_flag_spec \ 10743 thread_safe_flag_spec \ 10744 whole_archive_flag_spec \ 10745 enable_shared_with_static_runtimes \ 10746 old_archive_cmds \ 10747 old_archive_from_new_cmds \ 10748 predep_objects \ 10749 postdep_objects \ 10750 predeps \ 10751 postdeps \ 10752 compiler_lib_search_path \ 10753 compiler_lib_search_dirs \ 10754 archive_cmds \ 10755 archive_expsym_cmds \ 10756 postinstall_cmds \ 10757 postuninstall_cmds \ 10758 old_archive_from_expsyms_cmds \ 10759 allow_undefined_flag \ 10760 no_undefined_flag \ 10761 export_symbols_cmds \ 10762 hardcode_libdir_flag_spec \ 10763 hardcode_libdir_flag_spec_ld \ 10764 hardcode_libdir_separator \ 10765 hardcode_automatic \ 10766 module_cmds \ 10767 module_expsym_cmds \ 10768 lt_cv_prog_compiler_c_o \ 10769 fix_srcfile_path \ 10770 exclude_expsyms \ 10771 include_expsyms; do 10772 10773 case $var in 10774 old_archive_cmds | \ 10775 old_archive_from_new_cmds | \ 10776 archive_cmds | \ 10777 archive_expsym_cmds | \ 10778 module_cmds | \ 10779 module_expsym_cmds | \ 10780 old_archive_from_expsyms_cmds | \ 10781 export_symbols_cmds | \ 10782 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10783 postinstall_cmds | postuninstall_cmds | \ 10784 old_postinstall_cmds | old_postuninstall_cmds | \ 10785 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10786 # Double-quote double-evaled strings. 10787 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10788 ;; 10789 *) 10790 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10791 ;; 10792 esac 10793 done 10794 10795 case $lt_echo in 10796 *'\$0 --fallback-echo"') 10797 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10798 ;; 10799 esac 10800 10801cfgfile="${ofile}T" 10802 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10803 $rm -f "$cfgfile" 10804 { $as_echo "$as_me:$LINENO: creating $ofile" >&5 10805$as_echo "$as_me: creating $ofile" >&6;} 10806 10807 cat <<__EOF__ >> "$cfgfile" 10808#! $SHELL 10809 10810# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10811# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10812# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10813# 10814# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 10815# Free Software Foundation, Inc. 10816# 10817# This file is part of GNU Libtool: 10818# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10819# 10820# This program is free software; you can redistribute it and/or modify 10821# it under the terms of the GNU General Public License as published by 10822# the Free Software Foundation; either version 2 of the License, or 10823# (at your option) any later version. 10824# 10825# This program is distributed in the hope that it will be useful, but 10826# WITHOUT ANY WARRANTY; without even the implied warranty of 10827# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10828# General Public License for more details. 10829# 10830# You should have received a copy of the GNU General Public License 10831# along with this program; if not, write to the Free Software 10832# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10833# 10834# As a special exception to the GNU General Public License, if you 10835# distribute this file as part of a program that contains a 10836# configuration script generated by Autoconf, you may include it under 10837# the same distribution terms that you use for the rest of that program. 10838 10839# A sed program that does not truncate output. 10840SED=$lt_SED 10841 10842# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10843Xsed="$SED -e 1s/^X//" 10844 10845# The HP-UX ksh and POSIX shell print the target directory to stdout 10846# if CDPATH is set. 10847(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10848 10849# The names of the tagged configurations supported by this script. 10850available_tags= 10851 10852# ### BEGIN LIBTOOL CONFIG 10853 10854# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10855 10856# Shell to use when invoking shell scripts. 10857SHELL=$lt_SHELL 10858 10859# Whether or not to build shared libraries. 10860build_libtool_libs=$enable_shared 10861 10862# Whether or not to build static libraries. 10863build_old_libs=$enable_static 10864 10865# Whether or not to add -lc for building shared libraries. 10866build_libtool_need_lc=$archive_cmds_need_lc 10867 10868# Whether or not to disallow shared libs when runtime libs are static 10869allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10870 10871# Whether or not to optimize for fast installation. 10872fast_install=$enable_fast_install 10873 10874# The host system. 10875host_alias=$host_alias 10876host=$host 10877host_os=$host_os 10878 10879# The build system. 10880build_alias=$build_alias 10881build=$build 10882build_os=$build_os 10883 10884# An echo program that does not interpret backslashes. 10885echo=$lt_echo 10886 10887# The archiver. 10888AR=$lt_AR 10889AR_FLAGS=$lt_AR_FLAGS 10890 10891# A C compiler. 10892LTCC=$lt_LTCC 10893 10894# LTCC compiler flags. 10895LTCFLAGS=$lt_LTCFLAGS 10896 10897# A language-specific compiler. 10898CC=$lt_compiler 10899 10900# Is the compiler the GNU C compiler? 10901with_gcc=$GCC 10902 10903# An ERE matcher. 10904EGREP=$lt_EGREP 10905 10906# The linker used to build libraries. 10907LD=$lt_LD 10908 10909# Whether we need hard or soft links. 10910LN_S=$lt_LN_S 10911 10912# A BSD-compatible nm program. 10913NM=$lt_NM 10914 10915# A symbol stripping program 10916STRIP=$lt_STRIP 10917 10918# Used to examine libraries when file_magic_cmd begins "file" 10919MAGIC_CMD=$MAGIC_CMD 10920 10921# Used on cygwin: DLL creation program. 10922DLLTOOL="$DLLTOOL" 10923 10924# Used on cygwin: object dumper. 10925OBJDUMP="$OBJDUMP" 10926 10927# Used on cygwin: assembler. 10928AS="$AS" 10929 10930# The name of the directory that contains temporary libtool files. 10931objdir=$objdir 10932 10933# How to create reloadable object files. 10934reload_flag=$lt_reload_flag 10935reload_cmds=$lt_reload_cmds 10936 10937# How to pass a linker flag through the compiler. 10938wl=$lt_lt_prog_compiler_wl 10939 10940# Object file suffix (normally "o"). 10941objext="$ac_objext" 10942 10943# Old archive suffix (normally "a"). 10944libext="$libext" 10945 10946# Shared library suffix (normally ".so"). 10947shrext_cmds='$shrext_cmds' 10948 10949# Executable file suffix (normally ""). 10950exeext="$exeext" 10951 10952# Additional compiler flags for building library objects. 10953pic_flag=$lt_lt_prog_compiler_pic 10954pic_mode=$pic_mode 10955 10956# What is the maximum length of a command? 10957max_cmd_len=$lt_cv_sys_max_cmd_len 10958 10959# Does compiler simultaneously support -c and -o options? 10960compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10961 10962# Must we lock files when doing compilation? 10963need_locks=$lt_need_locks 10964 10965# Do we need the lib prefix for modules? 10966need_lib_prefix=$need_lib_prefix 10967 10968# Do we need a version for libraries? 10969need_version=$need_version 10970 10971# Whether dlopen is supported. 10972dlopen_support=$enable_dlopen 10973 10974# Whether dlopen of programs is supported. 10975dlopen_self=$enable_dlopen_self 10976 10977# Whether dlopen of statically linked programs is supported. 10978dlopen_self_static=$enable_dlopen_self_static 10979 10980# Compiler flag to prevent dynamic linking. 10981link_static_flag=$lt_lt_prog_compiler_static 10982 10983# Compiler flag to turn off builtin functions. 10984no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10985 10986# Compiler flag to allow reflexive dlopens. 10987export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10988 10989# Compiler flag to generate shared objects directly from archives. 10990whole_archive_flag_spec=$lt_whole_archive_flag_spec 10991 10992# Compiler flag to generate thread-safe objects. 10993thread_safe_flag_spec=$lt_thread_safe_flag_spec 10994 10995# Library versioning type. 10996version_type=$version_type 10997 10998# Format of library name prefix. 10999libname_spec=$lt_libname_spec 11000 11001# List of archive names. First name is the real one, the rest are links. 11002# The last name is the one that the linker finds with -lNAME. 11003library_names_spec=$lt_library_names_spec 11004 11005# The coded name of the library, if different from the real name. 11006soname_spec=$lt_soname_spec 11007 11008# Commands used to build and install an old-style archive. 11009RANLIB=$lt_RANLIB 11010old_archive_cmds=$lt_old_archive_cmds 11011old_postinstall_cmds=$lt_old_postinstall_cmds 11012old_postuninstall_cmds=$lt_old_postuninstall_cmds 11013 11014# Create an old-style archive from a shared archive. 11015old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 11016 11017# Create a temporary old-style archive to link instead of a shared archive. 11018old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 11019 11020# Commands used to build and install a shared archive. 11021archive_cmds=$lt_archive_cmds 11022archive_expsym_cmds=$lt_archive_expsym_cmds 11023postinstall_cmds=$lt_postinstall_cmds 11024postuninstall_cmds=$lt_postuninstall_cmds 11025 11026# Commands used to build a loadable module (assumed same as above if empty) 11027module_cmds=$lt_module_cmds 11028module_expsym_cmds=$lt_module_expsym_cmds 11029 11030# Commands to strip libraries. 11031old_striplib=$lt_old_striplib 11032striplib=$lt_striplib 11033 11034# Dependencies to place before the objects being linked to create a 11035# shared library. 11036predep_objects=$lt_predep_objects 11037 11038# Dependencies to place after the objects being linked to create a 11039# shared library. 11040postdep_objects=$lt_postdep_objects 11041 11042# Dependencies to place before the objects being linked to create a 11043# shared library. 11044predeps=$lt_predeps 11045 11046# Dependencies to place after the objects being linked to create a 11047# shared library. 11048postdeps=$lt_postdeps 11049 11050# The directories searched by this compiler when creating a shared 11051# library 11052compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 11053 11054# The library search path used internally by the compiler when linking 11055# a shared library. 11056compiler_lib_search_path=$lt_compiler_lib_search_path 11057 11058# Method to check whether dependent libraries are shared objects. 11059deplibs_check_method=$lt_deplibs_check_method 11060 11061# Command to use when deplibs_check_method == file_magic. 11062file_magic_cmd=$lt_file_magic_cmd 11063 11064# Flag that allows shared libraries with undefined symbols to be built. 11065allow_undefined_flag=$lt_allow_undefined_flag 11066 11067# Flag that forces no undefined symbols. 11068no_undefined_flag=$lt_no_undefined_flag 11069 11070# Commands used to finish a libtool library installation in a directory. 11071finish_cmds=$lt_finish_cmds 11072 11073# Same as above, but a single script fragment to be evaled but not shown. 11074finish_eval=$lt_finish_eval 11075 11076# Take the output of nm and produce a listing of raw symbols and C names. 11077global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 11078 11079# Transform the output of nm in a proper C declaration 11080global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 11081 11082# Transform the output of nm in a C name address pair 11083global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 11084 11085# This is the shared library runtime path variable. 11086runpath_var=$runpath_var 11087 11088# This is the shared library path variable. 11089shlibpath_var=$shlibpath_var 11090 11091# Is shlibpath searched before the hard-coded library search path? 11092shlibpath_overrides_runpath=$shlibpath_overrides_runpath 11093 11094# How to hardcode a shared library path into an executable. 11095hardcode_action=$hardcode_action 11096 11097# Whether we should hardcode library paths into libraries. 11098hardcode_into_libs=$hardcode_into_libs 11099 11100# Flag to hardcode \$libdir into a binary during linking. 11101# This must work even if \$libdir does not exist. 11102hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 11103 11104# If ld is used when linking, flag to hardcode \$libdir into 11105# a binary during linking. This must work even if \$libdir does 11106# not exist. 11107hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 11108 11109# Whether we need a single -rpath flag with a separated argument. 11110hardcode_libdir_separator=$lt_hardcode_libdir_separator 11111 11112# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 11113# resulting binary. 11114hardcode_direct=$hardcode_direct 11115 11116# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 11117# resulting binary. 11118hardcode_minus_L=$hardcode_minus_L 11119 11120# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 11121# the resulting binary. 11122hardcode_shlibpath_var=$hardcode_shlibpath_var 11123 11124# Set to yes if building a shared library automatically hardcodes DIR into the library 11125# and all subsequent libraries and executables linked against it. 11126hardcode_automatic=$hardcode_automatic 11127 11128# Variables whose values should be saved in libtool wrapper scripts and 11129# restored at relink time. 11130variables_saved_for_relink="$variables_saved_for_relink" 11131 11132# Whether libtool must link a program against all its dependency libraries. 11133link_all_deplibs=$link_all_deplibs 11134 11135# Compile-time system search path for libraries 11136sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 11137 11138# Run-time system search path for libraries 11139sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 11140 11141# Fix the shell variable \$srcfile for the compiler. 11142fix_srcfile_path=$lt_fix_srcfile_path 11143 11144# Set to yes if exported symbols are required. 11145always_export_symbols=$always_export_symbols 11146 11147# The commands to list exported symbols. 11148export_symbols_cmds=$lt_export_symbols_cmds 11149 11150# The commands to extract the exported symbol list from a shared archive. 11151extract_expsyms_cmds=$lt_extract_expsyms_cmds 11152 11153# Symbols that should not be listed in the preloaded symbols. 11154exclude_expsyms=$lt_exclude_expsyms 11155 11156# Symbols that must always be exported. 11157include_expsyms=$lt_include_expsyms 11158 11159# ### END LIBTOOL CONFIG 11160 11161__EOF__ 11162 11163 11164 case $host_os in 11165 aix3*) 11166 cat <<\EOF >> "$cfgfile" 11167 11168# AIX sometimes has problems with the GCC collect2 program. For some 11169# reason, if we set the COLLECT_NAMES environment variable, the problems 11170# vanish in a puff of smoke. 11171if test "X${COLLECT_NAMES+set}" != Xset; then 11172 COLLECT_NAMES= 11173 export COLLECT_NAMES 11174fi 11175EOF 11176 ;; 11177 esac 11178 11179 # We use sed instead of cat because bash on DJGPP gets confused if 11180 # if finds mixed CR/LF and LF-only lines. Since sed operates in 11181 # text mode, it properly converts lines to CR/LF. This bash problem 11182 # is reportedly fixed, but why not run on old versions too? 11183 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 11184 11185 mv -f "$cfgfile" "$ofile" || \ 11186 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 11187 chmod +x "$ofile" 11188 11189else 11190 # If there is no Makefile yet, we rely on a make rule to execute 11191 # `config.status --recheck' to rerun these tests and create the 11192 # libtool script then. 11193 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 11194 if test -f "$ltmain_in"; then 11195 test -f Makefile && make "$ltmain" 11196 fi 11197fi 11198 11199 11200ac_ext=c 11201ac_cpp='$CPP $CPPFLAGS' 11202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11204ac_compiler_gnu=$ac_cv_c_compiler_gnu 11205 11206CC="$lt_save_CC" 11207 11208 11209# Check whether --with-tags was given. 11210if test "${with_tags+set}" = set; then 11211 withval=$with_tags; tagnames="$withval" 11212fi 11213 11214 11215if test -f "$ltmain" && test -n "$tagnames"; then 11216 if test ! -f "${ofile}"; then 11217 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 11218$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 11219 fi 11220 11221 if test -z "$LTCC"; then 11222 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 11223 if test -z "$LTCC"; then 11224 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 11225$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 11226 else 11227 { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 11228$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 11229 fi 11230 fi 11231 if test -z "$LTCFLAGS"; then 11232 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 11233 fi 11234 11235 # Extract list of available tagged configurations in $ofile. 11236 # Note that this assumes the entire list is on one line. 11237 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 11238 11239 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 11240 for tagname in $tagnames; do 11241 IFS="$lt_save_ifs" 11242 # Check whether tagname contains only valid characters 11243 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 11244 "") ;; 11245 *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 11246$as_echo "$as_me: error: invalid tag name: $tagname" >&2;} 11247 { (exit 1); exit 1; }; } 11248 ;; 11249 esac 11250 11251 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 11252 then 11253 { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 11254$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 11255 { (exit 1); exit 1; }; } 11256 fi 11257 11258 # Update the list of available tags. 11259 if test -n "$tagname"; then 11260 echo appending configuration tag \"$tagname\" to $ofile 11261 11262 case $tagname in 11263 CXX) 11264 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 11265 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 11266 (test "X$CXX" != "Xg++"))) ; then 11267 ac_ext=cpp 11268ac_cpp='$CXXCPP $CPPFLAGS' 11269ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11270ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11271ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11272 11273 11274 11275 11276archive_cmds_need_lc_CXX=no 11277allow_undefined_flag_CXX= 11278always_export_symbols_CXX=no 11279archive_expsym_cmds_CXX= 11280export_dynamic_flag_spec_CXX= 11281hardcode_direct_CXX=no 11282hardcode_libdir_flag_spec_CXX= 11283hardcode_libdir_flag_spec_ld_CXX= 11284hardcode_libdir_separator_CXX= 11285hardcode_minus_L_CXX=no 11286hardcode_shlibpath_var_CXX=unsupported 11287hardcode_automatic_CXX=no 11288module_cmds_CXX= 11289module_expsym_cmds_CXX= 11290link_all_deplibs_CXX=unknown 11291old_archive_cmds_CXX=$old_archive_cmds 11292no_undefined_flag_CXX= 11293whole_archive_flag_spec_CXX= 11294enable_shared_with_static_runtimes_CXX=no 11295 11296# Dependencies to place before and after the object being linked: 11297predep_objects_CXX= 11298postdep_objects_CXX= 11299predeps_CXX= 11300postdeps_CXX= 11301compiler_lib_search_path_CXX= 11302compiler_lib_search_dirs_CXX= 11303 11304# Source file extension for C++ test sources. 11305ac_ext=cpp 11306 11307# Object file extension for compiled C++ test sources. 11308objext=o 11309objext_CXX=$objext 11310 11311# Code to be used in simple compile tests 11312lt_simple_compile_test_code="int some_variable = 0;" 11313 11314# Code to be used in simple link tests 11315lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 11316 11317# ltmain only uses $CC for tagged configurations so make sure $CC is set. 11318 11319# If no C compiler was specified, use CC. 11320LTCC=${LTCC-"$CC"} 11321 11322# If no C compiler flags were specified, use CFLAGS. 11323LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11324 11325# Allow CC to be a program name with arguments. 11326compiler=$CC 11327 11328 11329# save warnings/boilerplate of simple test code 11330ac_outfile=conftest.$ac_objext 11331echo "$lt_simple_compile_test_code" >conftest.$ac_ext 11332eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11333_lt_compiler_boilerplate=`cat conftest.err` 11334$rm conftest* 11335 11336ac_outfile=conftest.$ac_objext 11337echo "$lt_simple_link_test_code" >conftest.$ac_ext 11338eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11339_lt_linker_boilerplate=`cat conftest.err` 11340$rm -r conftest* 11341 11342 11343# Allow CC to be a program name with arguments. 11344lt_save_CC=$CC 11345lt_save_LD=$LD 11346lt_save_GCC=$GCC 11347GCC=$GXX 11348lt_save_with_gnu_ld=$with_gnu_ld 11349lt_save_path_LD=$lt_cv_path_LD 11350if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11351 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11352else 11353 $as_unset lt_cv_prog_gnu_ld 11354fi 11355if test -n "${lt_cv_path_LDCXX+set}"; then 11356 lt_cv_path_LD=$lt_cv_path_LDCXX 11357else 11358 $as_unset lt_cv_path_LD 11359fi 11360test -z "${LDCXX+set}" || LD=$LDCXX 11361CC=${CXX-"c++"} 11362compiler=$CC 11363compiler_CXX=$CC 11364for cc_temp in $compiler""; do 11365 case $cc_temp in 11366 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11367 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11368 \-*) ;; 11369 *) break;; 11370 esac 11371done 11372cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 11373 11374 11375# We don't want -fno-exception wen compiling C++ code, so set the 11376# no_builtin_flag separately 11377if test "$GXX" = yes; then 11378 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11379else 11380 lt_prog_compiler_no_builtin_flag_CXX= 11381fi 11382 11383if test "$GXX" = yes; then 11384 # Set up default GNU C++ configuration 11385 11386 11387# Check whether --with-gnu-ld was given. 11388if test "${with_gnu_ld+set}" = set; then 11389 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11390else 11391 with_gnu_ld=no 11392fi 11393 11394ac_prog=ld 11395if test "$GCC" = yes; then 11396 # Check if gcc -print-prog-name=ld gives a path. 11397 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 11398$as_echo_n "checking for ld used by $CC... " >&6; } 11399 case $host in 11400 *-*-mingw*) 11401 # gcc leaves a trailing carriage return which upsets mingw 11402 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11403 *) 11404 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11405 esac 11406 case $ac_prog in 11407 # Accept absolute paths. 11408 [\\/]* | ?:[\\/]*) 11409 re_direlt='/[^/][^/]*/\.\./' 11410 # Canonicalize the pathname of ld 11411 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 11412 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 11413 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 11414 done 11415 test -z "$LD" && LD="$ac_prog" 11416 ;; 11417 "") 11418 # If it fails, then pretend we aren't using GCC. 11419 ac_prog=ld 11420 ;; 11421 *) 11422 # If it is relative, then search for the first ld in PATH. 11423 with_gnu_ld=unknown 11424 ;; 11425 esac 11426elif test "$with_gnu_ld" = yes; then 11427 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 11428$as_echo_n "checking for GNU ld... " >&6; } 11429else 11430 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 11431$as_echo_n "checking for non-GNU ld... " >&6; } 11432fi 11433if test "${lt_cv_path_LD+set}" = set; then 11434 $as_echo_n "(cached) " >&6 11435else 11436 if test -z "$LD"; then 11437 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11438 for ac_dir in $PATH; do 11439 IFS="$lt_save_ifs" 11440 test -z "$ac_dir" && ac_dir=. 11441 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11442 lt_cv_path_LD="$ac_dir/$ac_prog" 11443 # Check to see if the program is GNU ld. I'd rather use --version, 11444 # but apparently some variants of GNU ld only accept -v. 11445 # Break only if it was the GNU/non-GNU ld that we prefer. 11446 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11447 *GNU* | *'with BFD'*) 11448 test "$with_gnu_ld" != no && break 11449 ;; 11450 *) 11451 test "$with_gnu_ld" != yes && break 11452 ;; 11453 esac 11454 fi 11455 done 11456 IFS="$lt_save_ifs" 11457else 11458 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11459fi 11460fi 11461 11462LD="$lt_cv_path_LD" 11463if test -n "$LD"; then 11464 { $as_echo "$as_me:$LINENO: result: $LD" >&5 11465$as_echo "$LD" >&6; } 11466else 11467 { $as_echo "$as_me:$LINENO: result: no" >&5 11468$as_echo "no" >&6; } 11469fi 11470test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 11471$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 11472 { (exit 1); exit 1; }; } 11473{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 11474$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11475if test "${lt_cv_prog_gnu_ld+set}" = set; then 11476 $as_echo_n "(cached) " >&6 11477else 11478 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11479case `$LD -v 2>&1 </dev/null` in 11480*GNU* | *'with BFD'*) 11481 lt_cv_prog_gnu_ld=yes 11482 ;; 11483*) 11484 lt_cv_prog_gnu_ld=no 11485 ;; 11486esac 11487fi 11488{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 11489$as_echo "$lt_cv_prog_gnu_ld" >&6; } 11490with_gnu_ld=$lt_cv_prog_gnu_ld 11491 11492 11493 11494 # Check if GNU C++ uses GNU ld as the underlying linker, since the 11495 # archiving commands below assume that GNU ld is being used. 11496 if test "$with_gnu_ld" = yes; then 11497 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11498 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' 11499 11500 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11501 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11502 11503 # If archive_cmds runs LD, not CC, wlarc should be empty 11504 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 11505 # investigate it a little bit more. (MM) 11506 wlarc='${wl}' 11507 11508 # ancient GNU ld didn't support --whole-archive et. al. 11509 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 11510 grep 'no-whole-archive' > /dev/null; then 11511 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11512 else 11513 whole_archive_flag_spec_CXX= 11514 fi 11515 else 11516 with_gnu_ld=no 11517 wlarc= 11518 11519 # A generic and very simple default shared library creation 11520 # command for GNU C++ for the case where it uses the native 11521 # linker, instead of GNU ld. If possible, this setting should 11522 # overridden to take advantage of the native linker features on 11523 # the platform it is being used on. 11524 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11525 fi 11526 11527 # Commands to make compiler produce verbose output that lists 11528 # what "hidden" libraries, object files and flags are used when 11529 # linking a shared library. 11530 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11531 11532else 11533 GXX=no 11534 with_gnu_ld=no 11535 wlarc= 11536fi 11537 11538# PORTME: fill in a description of your system's C++ link characteristics 11539{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11540$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 11541ld_shlibs_CXX=yes 11542case $host_os in 11543 aix3*) 11544 # FIXME: insert proper C++ library support 11545 ld_shlibs_CXX=no 11546 ;; 11547 aix[4-9]*) 11548 if test "$host_cpu" = ia64; then 11549 # On IA64, the linker does run time linking by default, so we don't 11550 # have to do anything special. 11551 aix_use_runtimelinking=no 11552 exp_sym_flag='-Bexport' 11553 no_entry_flag="" 11554 else 11555 aix_use_runtimelinking=no 11556 11557 # Test if we are trying to use run time linking or normal 11558 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11559 # need to do runtime linking. 11560 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11561 for ld_flag in $LDFLAGS; do 11562 case $ld_flag in 11563 *-brtl*) 11564 aix_use_runtimelinking=yes 11565 break 11566 ;; 11567 esac 11568 done 11569 ;; 11570 esac 11571 11572 exp_sym_flag='-bexport' 11573 no_entry_flag='-bnoentry' 11574 fi 11575 11576 # When large executables or shared objects are built, AIX ld can 11577 # have problems creating the table of contents. If linking a library 11578 # or program results in "error TOC overflow" add -mminimal-toc to 11579 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11580 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11581 11582 archive_cmds_CXX='' 11583 hardcode_direct_CXX=yes 11584 hardcode_libdir_separator_CXX=':' 11585 link_all_deplibs_CXX=yes 11586 11587 if test "$GXX" = yes; then 11588 case $host_os in aix4.[012]|aix4.[012].*) 11589 # We only want to do this on AIX 4.2 and lower, the check 11590 # below for broken collect2 doesn't work under 4.3+ 11591 collect2name=`${CC} -print-prog-name=collect2` 11592 if test -f "$collect2name" && \ 11593 strings "$collect2name" | grep resolve_lib_name >/dev/null 11594 then 11595 # We have reworked collect2 11596 : 11597 else 11598 # We have old collect2 11599 hardcode_direct_CXX=unsupported 11600 # It fails to find uninstalled libraries when the uninstalled 11601 # path is not listed in the libpath. Setting hardcode_minus_L 11602 # to unsupported forces relinking 11603 hardcode_minus_L_CXX=yes 11604 hardcode_libdir_flag_spec_CXX='-L$libdir' 11605 hardcode_libdir_separator_CXX= 11606 fi 11607 ;; 11608 esac 11609 shared_flag='-shared' 11610 if test "$aix_use_runtimelinking" = yes; then 11611 shared_flag="$shared_flag "'${wl}-G' 11612 fi 11613 else 11614 # not using gcc 11615 if test "$host_cpu" = ia64; then 11616 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11617 # chokes on -Wl,-G. The following line is correct: 11618 shared_flag='-G' 11619 else 11620 if test "$aix_use_runtimelinking" = yes; then 11621 shared_flag='${wl}-G' 11622 else 11623 shared_flag='${wl}-bM:SRE' 11624 fi 11625 fi 11626 fi 11627 11628 # It seems that -bexpall does not export symbols beginning with 11629 # underscore (_), so it is better to generate a list of symbols to export. 11630 always_export_symbols_CXX=yes 11631 if test "$aix_use_runtimelinking" = yes; then 11632 # Warning - without using the other runtime loading flags (-brtl), 11633 # -berok will link without error, but may produce a broken library. 11634 allow_undefined_flag_CXX='-berok' 11635 # Determine the default libpath from the value encoded in an empty executable. 11636 cat >conftest.$ac_ext <<_ACEOF 11637/* confdefs.h. */ 11638_ACEOF 11639cat confdefs.h >>conftest.$ac_ext 11640cat >>conftest.$ac_ext <<_ACEOF 11641/* end confdefs.h. */ 11642 11643int 11644main () 11645{ 11646 11647 ; 11648 return 0; 11649} 11650_ACEOF 11651rm -f conftest.$ac_objext conftest$ac_exeext 11652if { (ac_try="$ac_link" 11653case "(($ac_try" in 11654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11655 *) ac_try_echo=$ac_try;; 11656esac 11657eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11658$as_echo "$ac_try_echo") >&5 11659 (eval "$ac_link") 2>conftest.er1 11660 ac_status=$? 11661 grep -v '^ *+' conftest.er1 >conftest.err 11662 rm -f conftest.er1 11663 cat conftest.err >&5 11664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11665 (exit $ac_status); } && { 11666 test -z "$ac_cxx_werror_flag" || 11667 test ! -s conftest.err 11668 } && test -s conftest$ac_exeext && { 11669 test "$cross_compiling" = yes || 11670 $as_test_x conftest$ac_exeext 11671 }; then 11672 11673lt_aix_libpath_sed=' 11674 /Import File Strings/,/^$/ { 11675 /^0/ { 11676 s/^0 *\(.*\)$/\1/ 11677 p 11678 } 11679 }' 11680aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11681# Check for a 64-bit object if we didn't find anything. 11682if test -z "$aix_libpath"; then 11683 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11684fi 11685else 11686 $as_echo "$as_me: failed program was:" >&5 11687sed 's/^/| /' conftest.$ac_ext >&5 11688 11689 11690fi 11691 11692rm -rf conftest.dSYM 11693rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11694 conftest$ac_exeext conftest.$ac_ext 11695if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11696 11697 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11698 11699 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" 11700 else 11701 if test "$host_cpu" = ia64; then 11702 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11703 allow_undefined_flag_CXX="-z nodefs" 11704 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" 11705 else 11706 # Determine the default libpath from the value encoded in an empty executable. 11707 cat >conftest.$ac_ext <<_ACEOF 11708/* confdefs.h. */ 11709_ACEOF 11710cat confdefs.h >>conftest.$ac_ext 11711cat >>conftest.$ac_ext <<_ACEOF 11712/* end confdefs.h. */ 11713 11714int 11715main () 11716{ 11717 11718 ; 11719 return 0; 11720} 11721_ACEOF 11722rm -f conftest.$ac_objext conftest$ac_exeext 11723if { (ac_try="$ac_link" 11724case "(($ac_try" in 11725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11726 *) ac_try_echo=$ac_try;; 11727esac 11728eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11729$as_echo "$ac_try_echo") >&5 11730 (eval "$ac_link") 2>conftest.er1 11731 ac_status=$? 11732 grep -v '^ *+' conftest.er1 >conftest.err 11733 rm -f conftest.er1 11734 cat conftest.err >&5 11735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11736 (exit $ac_status); } && { 11737 test -z "$ac_cxx_werror_flag" || 11738 test ! -s conftest.err 11739 } && test -s conftest$ac_exeext && { 11740 test "$cross_compiling" = yes || 11741 $as_test_x conftest$ac_exeext 11742 }; then 11743 11744lt_aix_libpath_sed=' 11745 /Import File Strings/,/^$/ { 11746 /^0/ { 11747 s/^0 *\(.*\)$/\1/ 11748 p 11749 } 11750 }' 11751aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11752# Check for a 64-bit object if we didn't find anything. 11753if test -z "$aix_libpath"; then 11754 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11755fi 11756else 11757 $as_echo "$as_me: failed program was:" >&5 11758sed 's/^/| /' conftest.$ac_ext >&5 11759 11760 11761fi 11762 11763rm -rf conftest.dSYM 11764rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11765 conftest$ac_exeext conftest.$ac_ext 11766if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11767 11768 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11769 # Warning - without using the other run time loading flags, 11770 # -berok will link without error, but may produce a broken library. 11771 no_undefined_flag_CXX=' ${wl}-bernotok' 11772 allow_undefined_flag_CXX=' ${wl}-berok' 11773 # Exported symbols can be pulled into shared objects from archives 11774 whole_archive_flag_spec_CXX='$convenience' 11775 archive_cmds_need_lc_CXX=yes 11776 # This is similar to how AIX traditionally builds its shared libraries. 11777 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' 11778 fi 11779 fi 11780 ;; 11781 11782 beos*) 11783 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11784 allow_undefined_flag_CXX=unsupported 11785 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11786 # support --undefined. This deserves some investigation. FIXME 11787 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11788 else 11789 ld_shlibs_CXX=no 11790 fi 11791 ;; 11792 11793 chorus*) 11794 case $cc_basename in 11795 *) 11796 # FIXME: insert proper C++ library support 11797 ld_shlibs_CXX=no 11798 ;; 11799 esac 11800 ;; 11801 11802 cygwin* | mingw* | pw32*) 11803 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11804 # as there is no search path for DLLs. 11805 hardcode_libdir_flag_spec_CXX='-L$libdir' 11806 allow_undefined_flag_CXX=unsupported 11807 always_export_symbols_CXX=no 11808 enable_shared_with_static_runtimes_CXX=yes 11809 11810 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11811 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' 11812 # If the export-symbols file already is a .def file (1st line 11813 # is EXPORTS), use it as is; otherwise, prepend... 11814 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11815 cp $export_symbols $output_objdir/$soname.def; 11816 else 11817 echo EXPORTS > $output_objdir/$soname.def; 11818 cat $export_symbols >> $output_objdir/$soname.def; 11819 fi~ 11820 $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' 11821 else 11822 ld_shlibs_CXX=no 11823 fi 11824 ;; 11825 darwin* | rhapsody*) 11826 archive_cmds_need_lc_CXX=no 11827 hardcode_direct_CXX=no 11828 hardcode_automatic_CXX=yes 11829 hardcode_shlibpath_var_CXX=unsupported 11830 whole_archive_flag_spec_CXX='' 11831 link_all_deplibs_CXX=yes 11832 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 11833 if test "$GXX" = yes ; then 11834 output_verbose_link_cmd='echo' 11835 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}" 11836 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 11837 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}" 11838 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}" 11839 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 11840 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}" 11841 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}" 11842 fi 11843 else 11844 case $cc_basename in 11845 xlc*) 11846 output_verbose_link_cmd='echo' 11847 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' 11848 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11849 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11850 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}' 11851 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}' 11852 ;; 11853 *) 11854 ld_shlibs_CXX=no 11855 ;; 11856 esac 11857 fi 11858 ;; 11859 11860 dgux*) 11861 case $cc_basename in 11862 ec++*) 11863 # FIXME: insert proper C++ library support 11864 ld_shlibs_CXX=no 11865 ;; 11866 ghcx*) 11867 # Green Hills C++ Compiler 11868 # FIXME: insert proper C++ library support 11869 ld_shlibs_CXX=no 11870 ;; 11871 *) 11872 # FIXME: insert proper C++ library support 11873 ld_shlibs_CXX=no 11874 ;; 11875 esac 11876 ;; 11877 freebsd[12]*) 11878 # C++ shared libraries reported to be fairly broken before switch to ELF 11879 ld_shlibs_CXX=no 11880 ;; 11881 freebsd-elf*) 11882 archive_cmds_need_lc_CXX=no 11883 ;; 11884 freebsd* | dragonfly*) 11885 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11886 # conventions 11887 ld_shlibs_CXX=yes 11888 ;; 11889 gnu*) 11890 ;; 11891 hpux9*) 11892 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11893 hardcode_libdir_separator_CXX=: 11894 export_dynamic_flag_spec_CXX='${wl}-E' 11895 hardcode_direct_CXX=yes 11896 hardcode_minus_L_CXX=yes # Not in the search PATH, 11897 # but as the default 11898 # location of the library. 11899 11900 case $cc_basename in 11901 CC*) 11902 # FIXME: insert proper C++ library support 11903 ld_shlibs_CXX=no 11904 ;; 11905 aCC*) 11906 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' 11907 # Commands to make compiler produce verbose output that lists 11908 # what "hidden" libraries, object files and flags are used when 11909 # linking a shared library. 11910 # 11911 # There doesn't appear to be a way to prevent this compiler from 11912 # explicitly linking system object files so we need to strip them 11913 # from the output so that they don't get included in the library 11914 # dependencies. 11915 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' 11916 ;; 11917 *) 11918 if test "$GXX" = yes; then 11919 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' 11920 else 11921 # FIXME: insert proper C++ library support 11922 ld_shlibs_CXX=no 11923 fi 11924 ;; 11925 esac 11926 ;; 11927 hpux10*|hpux11*) 11928 if test $with_gnu_ld = no; then 11929 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11930 hardcode_libdir_separator_CXX=: 11931 11932 case $host_cpu in 11933 hppa*64*|ia64*) ;; 11934 *) 11935 export_dynamic_flag_spec_CXX='${wl}-E' 11936 ;; 11937 esac 11938 fi 11939 case $host_cpu in 11940 hppa*64*|ia64*) 11941 hardcode_direct_CXX=no 11942 hardcode_shlibpath_var_CXX=no 11943 ;; 11944 *) 11945 hardcode_direct_CXX=yes 11946 hardcode_minus_L_CXX=yes # Not in the search PATH, 11947 # but as the default 11948 # location of the library. 11949 ;; 11950 esac 11951 11952 case $cc_basename in 11953 CC*) 11954 # FIXME: insert proper C++ library support 11955 ld_shlibs_CXX=no 11956 ;; 11957 aCC*) 11958 case $host_cpu in 11959 hppa*64*) 11960 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11961 ;; 11962 ia64*) 11963 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11964 ;; 11965 *) 11966 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11967 ;; 11968 esac 11969 # Commands to make compiler produce verbose output that lists 11970 # what "hidden" libraries, object files and flags are used when 11971 # linking a shared library. 11972 # 11973 # There doesn't appear to be a way to prevent this compiler from 11974 # explicitly linking system object files so we need to strip them 11975 # from the output so that they don't get included in the library 11976 # dependencies. 11977 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' 11978 ;; 11979 *) 11980 if test "$GXX" = yes; then 11981 if test $with_gnu_ld = no; then 11982 case $host_cpu in 11983 hppa*64*) 11984 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11985 ;; 11986 ia64*) 11987 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11988 ;; 11989 *) 11990 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' 11991 ;; 11992 esac 11993 fi 11994 else 11995 # FIXME: insert proper C++ library support 11996 ld_shlibs_CXX=no 11997 fi 11998 ;; 11999 esac 12000 ;; 12001 interix[3-9]*) 12002 hardcode_direct_CXX=no 12003 hardcode_shlibpath_var_CXX=no 12004 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12005 export_dynamic_flag_spec_CXX='${wl}-E' 12006 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 12007 # Instead, shared libraries are loaded at an image base (0x10000000 by 12008 # default) and relocated if they conflict, which is a slow very memory 12009 # consuming and fragmenting process. To avoid this, we pick a random, 12010 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 12011 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 12012 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' 12013 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' 12014 ;; 12015 irix5* | irix6*) 12016 case $cc_basename in 12017 CC*) 12018 # SGI C++ 12019 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' 12020 12021 # Archives containing C++ object files must be created using 12022 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 12023 # necessary to make sure instantiated templates are included 12024 # in the archive. 12025 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 12026 ;; 12027 *) 12028 if test "$GXX" = yes; then 12029 if test "$with_gnu_ld" = no; then 12030 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' 12031 else 12032 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' 12033 fi 12034 fi 12035 link_all_deplibs_CXX=yes 12036 ;; 12037 esac 12038 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12039 hardcode_libdir_separator_CXX=: 12040 ;; 12041 linux* | k*bsd*-gnu) 12042 case $cc_basename in 12043 KCC*) 12044 # Kuck and Associates, Inc. (KAI) C++ Compiler 12045 12046 # KCC will only create a shared library if the output file 12047 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12048 # to its proper name (with version) after linking. 12049 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 12050 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' 12051 # Commands to make compiler produce verbose output that lists 12052 # what "hidden" libraries, object files and flags are used when 12053 # linking a shared library. 12054 # 12055 # There doesn't appear to be a way to prevent this compiler from 12056 # explicitly linking system object files so we need to strip them 12057 # from the output so that they don't get included in the library 12058 # dependencies. 12059 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' 12060 12061 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 12062 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12063 12064 # Archives containing C++ object files must be created using 12065 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12066 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12067 ;; 12068 icpc*) 12069 # Intel C++ 12070 with_gnu_ld=yes 12071 # version 8.0 and above of icpc choke on multiply defined symbols 12072 # if we add $predep_objects and $postdep_objects, however 7.1 and 12073 # earlier do not add the objects themselves. 12074 case `$CC -V 2>&1` in 12075 *"Version 7."*) 12076 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12077 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' 12078 ;; 12079 *) # Version 8.0 or newer 12080 tmp_idyn= 12081 case $host_cpu in 12082 ia64*) tmp_idyn=' -i_dynamic';; 12083 esac 12084 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12085 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' 12086 ;; 12087 esac 12088 archive_cmds_need_lc_CXX=no 12089 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12090 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12091 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12092 ;; 12093 pgCC* | pgcpp*) 12094 # Portland Group C++ compiler 12095 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12096 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' 12097 12098 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 12099 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12100 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' 12101 ;; 12102 cxx*) 12103 # Compaq C++ 12104 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12105 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' 12106 12107 runpath_var=LD_RUN_PATH 12108 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12109 hardcode_libdir_separator_CXX=: 12110 12111 # Commands to make compiler produce verbose output that lists 12112 # what "hidden" libraries, object files and flags are used when 12113 # linking a shared library. 12114 # 12115 # There doesn't appear to be a way to prevent this compiler from 12116 # explicitly linking system object files so we need to strip them 12117 # from the output so that they don't get included in the library 12118 # dependencies. 12119 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' 12120 ;; 12121 *) 12122 case `$CC -V 2>&1 | sed 5q` in 12123 *Sun\ C*) 12124 # Sun C++ 5.9 12125 no_undefined_flag_CXX=' -zdefs' 12126 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12127 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' 12128 hardcode_libdir_flag_spec_CXX='-R$libdir' 12129 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' 12130 12131 # Not sure whether something based on 12132 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 12133 # would be better. 12134 output_verbose_link_cmd='echo' 12135 12136 # Archives containing C++ object files must be created using 12137 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12138 # necessary to make sure instantiated templates are included 12139 # in the archive. 12140 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12141 ;; 12142 esac 12143 ;; 12144 esac 12145 ;; 12146 lynxos*) 12147 # FIXME: insert proper C++ library support 12148 ld_shlibs_CXX=no 12149 ;; 12150 m88k*) 12151 # FIXME: insert proper C++ library support 12152 ld_shlibs_CXX=no 12153 ;; 12154 mvs*) 12155 case $cc_basename in 12156 cxx*) 12157 # FIXME: insert proper C++ library support 12158 ld_shlibs_CXX=no 12159 ;; 12160 *) 12161 # FIXME: insert proper C++ library support 12162 ld_shlibs_CXX=no 12163 ;; 12164 esac 12165 ;; 12166 netbsd*) 12167 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12168 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 12169 wlarc= 12170 hardcode_libdir_flag_spec_CXX='-R$libdir' 12171 hardcode_direct_CXX=yes 12172 hardcode_shlibpath_var_CXX=no 12173 fi 12174 # Workaround some broken pre-1.5 toolchains 12175 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 12176 ;; 12177 openbsd2*) 12178 # C++ shared libraries are fairly broken 12179 ld_shlibs_CXX=no 12180 ;; 12181 openbsd*) 12182 if test -f /usr/libexec/ld.so; then 12183 hardcode_direct_CXX=yes 12184 hardcode_shlibpath_var_CXX=no 12185 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12186 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12187 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12188 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 12189 export_dynamic_flag_spec_CXX='${wl}-E' 12190 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12191 fi 12192 output_verbose_link_cmd='echo' 12193 else 12194 ld_shlibs_CXX=no 12195 fi 12196 ;; 12197 osf3*) 12198 case $cc_basename in 12199 KCC*) 12200 # Kuck and Associates, Inc. (KAI) C++ Compiler 12201 12202 # KCC will only create a shared library if the output file 12203 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12204 # to its proper name (with version) after linking. 12205 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' 12206 12207 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12208 hardcode_libdir_separator_CXX=: 12209 12210 # Archives containing C++ object files must be created using 12211 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12212 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12213 12214 ;; 12215 RCC*) 12216 # Rational C++ 2.4.1 12217 # FIXME: insert proper C++ library support 12218 ld_shlibs_CXX=no 12219 ;; 12220 cxx*) 12221 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12222 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' 12223 12224 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12225 hardcode_libdir_separator_CXX=: 12226 12227 # Commands to make compiler produce verbose output that lists 12228 # what "hidden" libraries, object files and flags are used when 12229 # linking a shared library. 12230 # 12231 # There doesn't appear to be a way to prevent this compiler from 12232 # explicitly linking system object files so we need to strip them 12233 # from the output so that they don't get included in the library 12234 # dependencies. 12235 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' 12236 ;; 12237 *) 12238 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12239 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12240 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' 12241 12242 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12243 hardcode_libdir_separator_CXX=: 12244 12245 # Commands to make compiler produce verbose output that lists 12246 # what "hidden" libraries, object files and flags are used when 12247 # linking a shared library. 12248 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12249 12250 else 12251 # FIXME: insert proper C++ library support 12252 ld_shlibs_CXX=no 12253 fi 12254 ;; 12255 esac 12256 ;; 12257 osf4* | osf5*) 12258 case $cc_basename in 12259 KCC*) 12260 # Kuck and Associates, Inc. (KAI) C++ Compiler 12261 12262 # KCC will only create a shared library if the output file 12263 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12264 # to its proper name (with version) after linking. 12265 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' 12266 12267 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12268 hardcode_libdir_separator_CXX=: 12269 12270 # Archives containing C++ object files must be created using 12271 # the KAI C++ compiler. 12272 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 12273 ;; 12274 RCC*) 12275 # Rational C++ 2.4.1 12276 # FIXME: insert proper C++ library support 12277 ld_shlibs_CXX=no 12278 ;; 12279 cxx*) 12280 allow_undefined_flag_CXX=' -expect_unresolved \*' 12281 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' 12282 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12283 echo "-hidden">> $lib.exp~ 12284 $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~ 12285 $rm $lib.exp' 12286 12287 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12288 hardcode_libdir_separator_CXX=: 12289 12290 # Commands to make compiler produce verbose output that lists 12291 # what "hidden" libraries, object files and flags are used when 12292 # linking a shared library. 12293 # 12294 # There doesn't appear to be a way to prevent this compiler from 12295 # explicitly linking system object files so we need to strip them 12296 # from the output so that they don't get included in the library 12297 # dependencies. 12298 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' 12299 ;; 12300 *) 12301 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12302 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12303 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' 12304 12305 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12306 hardcode_libdir_separator_CXX=: 12307 12308 # Commands to make compiler produce verbose output that lists 12309 # what "hidden" libraries, object files and flags are used when 12310 # linking a shared library. 12311 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12312 12313 else 12314 # FIXME: insert proper C++ library support 12315 ld_shlibs_CXX=no 12316 fi 12317 ;; 12318 esac 12319 ;; 12320 psos*) 12321 # FIXME: insert proper C++ library support 12322 ld_shlibs_CXX=no 12323 ;; 12324 sunos4*) 12325 case $cc_basename in 12326 CC*) 12327 # Sun C++ 4.x 12328 # FIXME: insert proper C++ library support 12329 ld_shlibs_CXX=no 12330 ;; 12331 lcc*) 12332 # Lucid 12333 # FIXME: insert proper C++ library support 12334 ld_shlibs_CXX=no 12335 ;; 12336 *) 12337 # FIXME: insert proper C++ library support 12338 ld_shlibs_CXX=no 12339 ;; 12340 esac 12341 ;; 12342 solaris*) 12343 case $cc_basename in 12344 CC*) 12345 # Sun C++ 4.2, 5.x and Centerline C++ 12346 archive_cmds_need_lc_CXX=yes 12347 no_undefined_flag_CXX=' -zdefs' 12348 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12349 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12350 $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' 12351 12352 hardcode_libdir_flag_spec_CXX='-R$libdir' 12353 hardcode_shlibpath_var_CXX=no 12354 case $host_os in 12355 solaris2.[0-5] | solaris2.[0-5].*) ;; 12356 *) 12357 # The compiler driver will combine and reorder linker options, 12358 # but understands `-z linker_flag'. 12359 # Supported since Solaris 2.6 (maybe 2.5.1?) 12360 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 12361 ;; 12362 esac 12363 link_all_deplibs_CXX=yes 12364 12365 output_verbose_link_cmd='echo' 12366 12367 # Archives containing C++ object files must be created using 12368 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12369 # necessary to make sure instantiated templates are included 12370 # in the archive. 12371 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12372 ;; 12373 gcx*) 12374 # Green Hills C++ Compiler 12375 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12376 12377 # The C++ compiler must be used to create the archive. 12378 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12379 ;; 12380 *) 12381 # GNU C++ compiler with Solaris linker 12382 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12383 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12384 if $CC --version | grep -v '^2\.7' > /dev/null; then 12385 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12386 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12387 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12388 12389 # Commands to make compiler produce verbose output that lists 12390 # what "hidden" libraries, object files and flags are used when 12391 # linking a shared library. 12392 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12393 else 12394 # g++ 2.7 appears to require `-G' NOT `-shared' on this 12395 # platform. 12396 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12397 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12398 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12399 12400 # Commands to make compiler produce verbose output that lists 12401 # what "hidden" libraries, object files and flags are used when 12402 # linking a shared library. 12403 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12404 fi 12405 12406 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12407 case $host_os in 12408 solaris2.[0-5] | solaris2.[0-5].*) ;; 12409 *) 12410 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 12411 ;; 12412 esac 12413 fi 12414 ;; 12415 esac 12416 ;; 12417 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12418 no_undefined_flag_CXX='${wl}-z,text' 12419 archive_cmds_need_lc_CXX=no 12420 hardcode_shlibpath_var_CXX=no 12421 runpath_var='LD_RUN_PATH' 12422 12423 case $cc_basename in 12424 CC*) 12425 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12426 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12427 ;; 12428 *) 12429 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12430 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12431 ;; 12432 esac 12433 ;; 12434 sysv5* | sco3.2v5* | sco5v6*) 12435 # Note: We can NOT use -z defs as we might desire, because we do not 12436 # link with -lc, and that would cause any symbols used from libc to 12437 # always be unresolved, which means just about no library would 12438 # ever link correctly. If we're not using GNU ld we use -z text 12439 # though, which does catch some bad symbols but isn't as heavy-handed 12440 # as -z defs. 12441 # For security reasons, it is highly recommended that you always 12442 # use absolute paths for naming shared libraries, and exclude the 12443 # DT_RUNPATH tag from executables and libraries. But doing so 12444 # requires that you compile everything twice, which is a pain. 12445 # So that behaviour is only enabled if SCOABSPATH is set to a 12446 # non-empty value in the environment. Most likely only useful for 12447 # creating official distributions of packages. 12448 # This is a hack until libtool officially supports absolute path 12449 # names for shared libraries. 12450 no_undefined_flag_CXX='${wl}-z,text' 12451 allow_undefined_flag_CXX='${wl}-z,nodefs' 12452 archive_cmds_need_lc_CXX=no 12453 hardcode_shlibpath_var_CXX=no 12454 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 12455 hardcode_libdir_separator_CXX=':' 12456 link_all_deplibs_CXX=yes 12457 export_dynamic_flag_spec_CXX='${wl}-Bexport' 12458 runpath_var='LD_RUN_PATH' 12459 12460 case $cc_basename in 12461 CC*) 12462 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12463 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12464 ;; 12465 *) 12466 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12467 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12468 ;; 12469 esac 12470 ;; 12471 tandem*) 12472 case $cc_basename in 12473 NCC*) 12474 # NonStop-UX NCC 3.20 12475 # FIXME: insert proper C++ library support 12476 ld_shlibs_CXX=no 12477 ;; 12478 *) 12479 # FIXME: insert proper C++ library support 12480 ld_shlibs_CXX=no 12481 ;; 12482 esac 12483 ;; 12484 vxworks*) 12485 # FIXME: insert proper C++ library support 12486 ld_shlibs_CXX=no 12487 ;; 12488 *) 12489 # FIXME: insert proper C++ library support 12490 ld_shlibs_CXX=no 12491 ;; 12492esac 12493{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12494$as_echo "$ld_shlibs_CXX" >&6; } 12495test "$ld_shlibs_CXX" = no && can_build_shared=no 12496 12497GCC_CXX="$GXX" 12498LD_CXX="$LD" 12499 12500cat > conftest.$ac_ext <<EOF 12501class Foo 12502{ 12503public: 12504 Foo (void) { a = 0; } 12505private: 12506 int a; 12507}; 12508EOF 12509 12510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12511 (eval $ac_compile) 2>&5 12512 ac_status=$? 12513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12514 (exit $ac_status); }; then 12515 # Parse the compiler output and extract the necessary 12516 # objects, libraries and library flags. 12517 12518 # Sentinel used to keep track of whether or not we are before 12519 # the conftest object file. 12520 pre_test_object_deps_done=no 12521 12522 # The `*' in the case matches for architectures that use `case' in 12523 # $output_verbose_cmd can trigger glob expansion during the loop 12524 # eval without this substitution. 12525 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 12526 12527 for p in `eval $output_verbose_link_cmd`; do 12528 case $p in 12529 12530 -L* | -R* | -l*) 12531 # Some compilers place space between "-{L,R}" and the path. 12532 # Remove the space. 12533 if test $p = "-L" \ 12534 || test $p = "-R"; then 12535 prev=$p 12536 continue 12537 else 12538 prev= 12539 fi 12540 12541 if test "$pre_test_object_deps_done" = no; then 12542 case $p in 12543 -L* | -R*) 12544 # Internal compiler library paths should come after those 12545 # provided the user. The postdeps already come after the 12546 # user supplied libs so there is no need to process them. 12547 if test -z "$compiler_lib_search_path_CXX"; then 12548 compiler_lib_search_path_CXX="${prev}${p}" 12549 else 12550 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 12551 fi 12552 ;; 12553 # The "-l" case would never come before the object being 12554 # linked, so don't bother handling this case. 12555 esac 12556 else 12557 if test -z "$postdeps_CXX"; then 12558 postdeps_CXX="${prev}${p}" 12559 else 12560 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 12561 fi 12562 fi 12563 ;; 12564 12565 *.$objext) 12566 # This assumes that the test object file only shows up 12567 # once in the compiler output. 12568 if test "$p" = "conftest.$objext"; then 12569 pre_test_object_deps_done=yes 12570 continue 12571 fi 12572 12573 if test "$pre_test_object_deps_done" = no; then 12574 if test -z "$predep_objects_CXX"; then 12575 predep_objects_CXX="$p" 12576 else 12577 predep_objects_CXX="$predep_objects_CXX $p" 12578 fi 12579 else 12580 if test -z "$postdep_objects_CXX"; then 12581 postdep_objects_CXX="$p" 12582 else 12583 postdep_objects_CXX="$postdep_objects_CXX $p" 12584 fi 12585 fi 12586 ;; 12587 12588 *) ;; # Ignore the rest. 12589 12590 esac 12591 done 12592 12593 # Clean up. 12594 rm -f a.out a.exe 12595else 12596 echo "libtool.m4: error: problem compiling CXX test program" 12597fi 12598 12599$rm -f confest.$objext 12600 12601compiler_lib_search_dirs_CXX= 12602if test -n "$compiler_lib_search_path_CXX"; then 12603 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 12604fi 12605 12606# PORTME: override above test on systems where it is broken 12607case $host_os in 12608interix[3-9]*) 12609 # Interix 3.5 installs completely hosed .la files for C++, so rather than 12610 # hack all around it, let's just trust "g++" to DTRT. 12611 predep_objects_CXX= 12612 postdep_objects_CXX= 12613 postdeps_CXX= 12614 ;; 12615 12616linux*) 12617 case `$CC -V 2>&1 | sed 5q` in 12618 *Sun\ C*) 12619 # Sun C++ 5.9 12620 # 12621 # The more standards-conforming stlport4 library is 12622 # incompatible with the Cstd library. Avoid specifying 12623 # it if it's in CXXFLAGS. Ignore libCrun as 12624 # -library=stlport4 depends on it. 12625 case " $CXX $CXXFLAGS " in 12626 *" -library=stlport4 "*) 12627 solaris_use_stlport4=yes 12628 ;; 12629 esac 12630 if test "$solaris_use_stlport4" != yes; then 12631 postdeps_CXX='-library=Cstd -library=Crun' 12632 fi 12633 ;; 12634 esac 12635 ;; 12636 12637solaris*) 12638 case $cc_basename in 12639 CC*) 12640 # The more standards-conforming stlport4 library is 12641 # incompatible with the Cstd library. Avoid specifying 12642 # it if it's in CXXFLAGS. Ignore libCrun as 12643 # -library=stlport4 depends on it. 12644 case " $CXX $CXXFLAGS " in 12645 *" -library=stlport4 "*) 12646 solaris_use_stlport4=yes 12647 ;; 12648 esac 12649 12650 # Adding this requires a known-good setup of shared libraries for 12651 # Sun compiler versions before 5.6, else PIC objects from an old 12652 # archive will be linked into the output, leading to subtle bugs. 12653 if test "$solaris_use_stlport4" != yes; then 12654 postdeps_CXX='-library=Cstd -library=Crun' 12655 fi 12656 ;; 12657 esac 12658 ;; 12659esac 12660 12661case " $postdeps_CXX " in 12662*" -lc "*) archive_cmds_need_lc_CXX=no ;; 12663esac 12664 12665lt_prog_compiler_wl_CXX= 12666lt_prog_compiler_pic_CXX= 12667lt_prog_compiler_static_CXX= 12668 12669{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12670$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 12671 12672 # C++ specific cases for pic, static, wl, etc. 12673 if test "$GXX" = yes; then 12674 lt_prog_compiler_wl_CXX='-Wl,' 12675 lt_prog_compiler_static_CXX='-static' 12676 12677 case $host_os in 12678 aix*) 12679 # All AIX code is PIC. 12680 if test "$host_cpu" = ia64; then 12681 # AIX 5 now supports IA64 processor 12682 lt_prog_compiler_static_CXX='-Bstatic' 12683 fi 12684 ;; 12685 amigaos*) 12686 # FIXME: we need at least 68020 code to build shared libraries, but 12687 # adding the `-m68020' flag to GCC prevents building anything better, 12688 # like `-m68040'. 12689 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12690 ;; 12691 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12692 # PIC is the default for these OSes. 12693 ;; 12694 mingw* | cygwin* | os2* | pw32*) 12695 # This hack is so that the source file can tell whether it is being 12696 # built for inclusion in a dll (and should export symbols for example). 12697 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12698 # (--disable-auto-import) libraries 12699 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 12700 ;; 12701 darwin* | rhapsody*) 12702 # PIC is the default on this platform 12703 # Common symbols not allowed in MH_DYLIB files 12704 lt_prog_compiler_pic_CXX='-fno-common' 12705 ;; 12706 *djgpp*) 12707 # DJGPP does not support shared libraries at all 12708 lt_prog_compiler_pic_CXX= 12709 ;; 12710 interix[3-9]*) 12711 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12712 # Instead, we relocate shared libraries at runtime. 12713 ;; 12714 sysv4*MP*) 12715 if test -d /usr/nec; then 12716 lt_prog_compiler_pic_CXX=-Kconform_pic 12717 fi 12718 ;; 12719 hpux*) 12720 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12721 # not for PA HP-UX. 12722 case $host_cpu in 12723 hppa*64*|ia64*) 12724 ;; 12725 *) 12726 lt_prog_compiler_pic_CXX='-fPIC' 12727 ;; 12728 esac 12729 ;; 12730 *) 12731 lt_prog_compiler_pic_CXX='-fPIC' 12732 ;; 12733 esac 12734 else 12735 case $host_os in 12736 aix[4-9]*) 12737 # All AIX code is PIC. 12738 if test "$host_cpu" = ia64; then 12739 # AIX 5 now supports IA64 processor 12740 lt_prog_compiler_static_CXX='-Bstatic' 12741 else 12742 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12743 fi 12744 ;; 12745 chorus*) 12746 case $cc_basename in 12747 cxch68*) 12748 # Green Hills C++ Compiler 12749 # _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" 12750 ;; 12751 esac 12752 ;; 12753 darwin*) 12754 # PIC is the default on this platform 12755 # Common symbols not allowed in MH_DYLIB files 12756 case $cc_basename in 12757 xlc*) 12758 lt_prog_compiler_pic_CXX='-qnocommon' 12759 lt_prog_compiler_wl_CXX='-Wl,' 12760 ;; 12761 esac 12762 ;; 12763 dgux*) 12764 case $cc_basename in 12765 ec++*) 12766 lt_prog_compiler_pic_CXX='-KPIC' 12767 ;; 12768 ghcx*) 12769 # Green Hills C++ Compiler 12770 lt_prog_compiler_pic_CXX='-pic' 12771 ;; 12772 *) 12773 ;; 12774 esac 12775 ;; 12776 freebsd* | dragonfly*) 12777 # FreeBSD uses GNU C++ 12778 ;; 12779 hpux9* | hpux10* | hpux11*) 12780 case $cc_basename in 12781 CC*) 12782 lt_prog_compiler_wl_CXX='-Wl,' 12783 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12784 if test "$host_cpu" != ia64; then 12785 lt_prog_compiler_pic_CXX='+Z' 12786 fi 12787 ;; 12788 aCC*) 12789 lt_prog_compiler_wl_CXX='-Wl,' 12790 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12791 case $host_cpu in 12792 hppa*64*|ia64*) 12793 # +Z the default 12794 ;; 12795 *) 12796 lt_prog_compiler_pic_CXX='+Z' 12797 ;; 12798 esac 12799 ;; 12800 *) 12801 ;; 12802 esac 12803 ;; 12804 interix*) 12805 # This is c89, which is MS Visual C++ (no shared libs) 12806 # Anyone wants to do a port? 12807 ;; 12808 irix5* | irix6* | nonstopux*) 12809 case $cc_basename in 12810 CC*) 12811 lt_prog_compiler_wl_CXX='-Wl,' 12812 lt_prog_compiler_static_CXX='-non_shared' 12813 # CC pic flag -KPIC is the default. 12814 ;; 12815 *) 12816 ;; 12817 esac 12818 ;; 12819 linux* | k*bsd*-gnu) 12820 case $cc_basename in 12821 KCC*) 12822 # KAI C++ Compiler 12823 lt_prog_compiler_wl_CXX='--backend -Wl,' 12824 lt_prog_compiler_pic_CXX='-fPIC' 12825 ;; 12826 icpc* | ecpc*) 12827 # Intel C++ 12828 lt_prog_compiler_wl_CXX='-Wl,' 12829 lt_prog_compiler_pic_CXX='-KPIC' 12830 lt_prog_compiler_static_CXX='-static' 12831 ;; 12832 pgCC* | pgcpp*) 12833 # Portland Group C++ compiler. 12834 lt_prog_compiler_wl_CXX='-Wl,' 12835 lt_prog_compiler_pic_CXX='-fpic' 12836 lt_prog_compiler_static_CXX='-Bstatic' 12837 ;; 12838 cxx*) 12839 # Compaq C++ 12840 # Make sure the PIC flag is empty. It appears that all Alpha 12841 # Linux and Compaq Tru64 Unix objects are PIC. 12842 lt_prog_compiler_pic_CXX= 12843 lt_prog_compiler_static_CXX='-non_shared' 12844 ;; 12845 *) 12846 case `$CC -V 2>&1 | sed 5q` in 12847 *Sun\ C*) 12848 # Sun C++ 5.9 12849 lt_prog_compiler_pic_CXX='-KPIC' 12850 lt_prog_compiler_static_CXX='-Bstatic' 12851 lt_prog_compiler_wl_CXX='-Qoption ld ' 12852 ;; 12853 esac 12854 ;; 12855 esac 12856 ;; 12857 lynxos*) 12858 ;; 12859 m88k*) 12860 ;; 12861 mvs*) 12862 case $cc_basename in 12863 cxx*) 12864 lt_prog_compiler_pic_CXX='-W c,exportall' 12865 ;; 12866 *) 12867 ;; 12868 esac 12869 ;; 12870 netbsd*) 12871 ;; 12872 osf3* | osf4* | osf5*) 12873 case $cc_basename in 12874 KCC*) 12875 lt_prog_compiler_wl_CXX='--backend -Wl,' 12876 ;; 12877 RCC*) 12878 # Rational C++ 2.4.1 12879 lt_prog_compiler_pic_CXX='-pic' 12880 ;; 12881 cxx*) 12882 # Digital/Compaq C++ 12883 lt_prog_compiler_wl_CXX='-Wl,' 12884 # Make sure the PIC flag is empty. It appears that all Alpha 12885 # Linux and Compaq Tru64 Unix objects are PIC. 12886 lt_prog_compiler_pic_CXX= 12887 lt_prog_compiler_static_CXX='-non_shared' 12888 ;; 12889 *) 12890 ;; 12891 esac 12892 ;; 12893 psos*) 12894 ;; 12895 solaris*) 12896 case $cc_basename in 12897 CC*) 12898 # Sun C++ 4.2, 5.x and Centerline C++ 12899 lt_prog_compiler_pic_CXX='-KPIC' 12900 lt_prog_compiler_static_CXX='-Bstatic' 12901 lt_prog_compiler_wl_CXX='-Qoption ld ' 12902 ;; 12903 gcx*) 12904 # Green Hills C++ Compiler 12905 lt_prog_compiler_pic_CXX='-PIC' 12906 ;; 12907 *) 12908 ;; 12909 esac 12910 ;; 12911 sunos4*) 12912 case $cc_basename in 12913 CC*) 12914 # Sun C++ 4.x 12915 lt_prog_compiler_pic_CXX='-pic' 12916 lt_prog_compiler_static_CXX='-Bstatic' 12917 ;; 12918 lcc*) 12919 # Lucid 12920 lt_prog_compiler_pic_CXX='-pic' 12921 ;; 12922 *) 12923 ;; 12924 esac 12925 ;; 12926 tandem*) 12927 case $cc_basename in 12928 NCC*) 12929 # NonStop-UX NCC 3.20 12930 lt_prog_compiler_pic_CXX='-KPIC' 12931 ;; 12932 *) 12933 ;; 12934 esac 12935 ;; 12936 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12937 case $cc_basename in 12938 CC*) 12939 lt_prog_compiler_wl_CXX='-Wl,' 12940 lt_prog_compiler_pic_CXX='-KPIC' 12941 lt_prog_compiler_static_CXX='-Bstatic' 12942 ;; 12943 esac 12944 ;; 12945 vxworks*) 12946 ;; 12947 *) 12948 lt_prog_compiler_can_build_shared_CXX=no 12949 ;; 12950 esac 12951 fi 12952 12953{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12954$as_echo "$lt_prog_compiler_pic_CXX" >&6; } 12955 12956# 12957# Check to make sure the PIC flag actually works. 12958# 12959if test -n "$lt_prog_compiler_pic_CXX"; then 12960 12961{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12962$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 12963if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then 12964 $as_echo_n "(cached) " >&6 12965else 12966 lt_cv_prog_compiler_pic_works_CXX=no 12967 ac_outfile=conftest.$ac_objext 12968 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12969 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12970 # Insert the option either (1) after the last *FLAGS variable, or 12971 # (2) before a word containing "conftest.", or (3) at the end. 12972 # Note that $ac_compile itself does not contain backslashes and begins 12973 # with a dollar sign (not a hyphen), so the echo should work correctly. 12974 # The option is referenced via a variable to avoid confusing sed. 12975 lt_compile=`echo "$ac_compile" | $SED \ 12976 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12977 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12978 -e 's:$: $lt_compiler_flag:'` 12979 (eval echo "\"\$as_me:12979: $lt_compile\"" >&5) 12980 (eval "$lt_compile" 2>conftest.err) 12981 ac_status=$? 12982 cat conftest.err >&5 12983 echo "$as_me:12983: \$? = $ac_status" >&5 12984 if (exit $ac_status) && test -s "$ac_outfile"; then 12985 # The compiler can only warn and ignore the option if not recognized 12986 # So say no if there are warnings other than the usual output. 12987 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12988 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12989 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12990 lt_cv_prog_compiler_pic_works_CXX=yes 12991 fi 12992 fi 12993 $rm conftest* 12994 12995fi 12996{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 12997$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 12998 12999if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 13000 case $lt_prog_compiler_pic_CXX in 13001 "" | " "*) ;; 13002 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 13003 esac 13004else 13005 lt_prog_compiler_pic_CXX= 13006 lt_prog_compiler_can_build_shared_CXX=no 13007fi 13008 13009fi 13010case $host_os in 13011 # For platforms which do not support PIC, -DPIC is meaningless: 13012 *djgpp*) 13013 lt_prog_compiler_pic_CXX= 13014 ;; 13015 *) 13016 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 13017 ;; 13018esac 13019 13020# 13021# Check to make sure the static flag actually works. 13022# 13023wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 13024{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13025$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 13026if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then 13027 $as_echo_n "(cached) " >&6 13028else 13029 lt_cv_prog_compiler_static_works_CXX=no 13030 save_LDFLAGS="$LDFLAGS" 13031 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13032 echo "$lt_simple_link_test_code" > conftest.$ac_ext 13033 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13034 # The linker can only warn and ignore the option if not recognized 13035 # So say no if there are warnings 13036 if test -s conftest.err; then 13037 # Append any errors to the config.log. 13038 cat conftest.err 1>&5 13039 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 13040 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13041 if diff conftest.exp conftest.er2 >/dev/null; then 13042 lt_cv_prog_compiler_static_works_CXX=yes 13043 fi 13044 else 13045 lt_cv_prog_compiler_static_works_CXX=yes 13046 fi 13047 fi 13048 $rm -r conftest* 13049 LDFLAGS="$save_LDFLAGS" 13050 13051fi 13052{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5 13053$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 13054 13055if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 13056 : 13057else 13058 lt_prog_compiler_static_CXX= 13059fi 13060 13061 13062{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13063$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13064if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 13065 $as_echo_n "(cached) " >&6 13066else 13067 lt_cv_prog_compiler_c_o_CXX=no 13068 $rm -r conftest 2>/dev/null 13069 mkdir conftest 13070 cd conftest 13071 mkdir out 13072 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13073 13074 lt_compiler_flag="-o out/conftest2.$ac_objext" 13075 # Insert the option either (1) after the last *FLAGS variable, or 13076 # (2) before a word containing "conftest.", or (3) at the end. 13077 # Note that $ac_compile itself does not contain backslashes and begins 13078 # with a dollar sign (not a hyphen), so the echo should work correctly. 13079 lt_compile=`echo "$ac_compile" | $SED \ 13080 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13081 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13082 -e 's:$: $lt_compiler_flag:'` 13083 (eval echo "\"\$as_me:13083: $lt_compile\"" >&5) 13084 (eval "$lt_compile" 2>out/conftest.err) 13085 ac_status=$? 13086 cat out/conftest.err >&5 13087 echo "$as_me:13087: \$? = $ac_status" >&5 13088 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13089 then 13090 # The compiler can only warn and ignore the option if not recognized 13091 # So say no if there are warnings 13092 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 13093 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13094 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13095 lt_cv_prog_compiler_c_o_CXX=yes 13096 fi 13097 fi 13098 chmod u+w . 2>&5 13099 $rm conftest* 13100 # SGI C++ compiler will create directory out/ii_files/ for 13101 # template instantiation 13102 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 13103 $rm out/* && rmdir out 13104 cd .. 13105 rmdir conftest 13106 $rm conftest* 13107 13108fi 13109{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 13110$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 13111 13112 13113hard_links="nottested" 13114if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 13115 # do not overwrite the value of need_locks provided by the user 13116 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13117$as_echo_n "checking if we can lock with hard links... " >&6; } 13118 hard_links=yes 13119 $rm conftest* 13120 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13121 touch conftest.a 13122 ln conftest.a conftest.b 2>&5 || hard_links=no 13123 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13124 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 13125$as_echo "$hard_links" >&6; } 13126 if test "$hard_links" = no; then 13127 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13128$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13129 need_locks=warn 13130 fi 13131else 13132 need_locks=no 13133fi 13134 13135{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13136$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13137 13138 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13139 case $host_os in 13140 aix[4-9]*) 13141 # If we're using GNU nm, then we don't want the "-C" option. 13142 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13143 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 13144 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' 13145 else 13146 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' 13147 fi 13148 ;; 13149 pw32*) 13150 export_symbols_cmds_CXX="$ltdll_cmds" 13151 ;; 13152 cygwin* | mingw*) 13153 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' 13154 ;; 13155 *) 13156 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13157 ;; 13158 esac 13159 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 13160 13161{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 13162$as_echo "$ld_shlibs_CXX" >&6; } 13163test "$ld_shlibs_CXX" = no && can_build_shared=no 13164 13165# 13166# Do we need to explicitly link libc? 13167# 13168case "x$archive_cmds_need_lc_CXX" in 13169x|xyes) 13170 # Assume -lc should be added 13171 archive_cmds_need_lc_CXX=yes 13172 13173 if test "$enable_shared" = yes && test "$GCC" = yes; then 13174 case $archive_cmds_CXX in 13175 *'~'*) 13176 # FIXME: we may have to deal with multi-command sequences. 13177 ;; 13178 '$CC '*) 13179 # Test whether the compiler implicitly links with -lc since on some 13180 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13181 # to ld, don't add -lc before -lgcc. 13182 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 13183$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 13184 $rm conftest* 13185 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13186 13187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13188 (eval $ac_compile) 2>&5 13189 ac_status=$? 13190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13191 (exit $ac_status); } 2>conftest.err; then 13192 soname=conftest 13193 lib=conftest 13194 libobjs=conftest.$ac_objext 13195 deplibs= 13196 wl=$lt_prog_compiler_wl_CXX 13197 pic_flag=$lt_prog_compiler_pic_CXX 13198 compiler_flags=-v 13199 linker_flags=-v 13200 verstring= 13201 output_objdir=. 13202 libname=conftest 13203 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 13204 allow_undefined_flag_CXX= 13205 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 13206 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 13207 ac_status=$? 13208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13209 (exit $ac_status); } 13210 then 13211 archive_cmds_need_lc_CXX=no 13212 else 13213 archive_cmds_need_lc_CXX=yes 13214 fi 13215 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 13216 else 13217 cat conftest.err 1>&5 13218 fi 13219 $rm conftest* 13220 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 13221$as_echo "$archive_cmds_need_lc_CXX" >&6; } 13222 ;; 13223 esac 13224 fi 13225 ;; 13226esac 13227 13228{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 13229$as_echo_n "checking dynamic linker characteristics... " >&6; } 13230library_names_spec= 13231libname_spec='lib$name' 13232soname_spec= 13233shrext_cmds=".so" 13234postinstall_cmds= 13235postuninstall_cmds= 13236finish_cmds= 13237finish_eval= 13238shlibpath_var= 13239shlibpath_overrides_runpath=unknown 13240version_type=none 13241dynamic_linker="$host_os ld.so" 13242sys_lib_dlsearch_path_spec="/lib /usr/lib" 13243 13244need_lib_prefix=unknown 13245hardcode_into_libs=no 13246 13247# when you set need_version to no, make sure it does not cause -set_version 13248# flags to be left without arguments 13249need_version=unknown 13250 13251case $host_os in 13252aix3*) 13253 version_type=linux 13254 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13255 shlibpath_var=LIBPATH 13256 13257 # AIX 3 has no versioning support, so we append a major version to the name. 13258 soname_spec='${libname}${release}${shared_ext}$major' 13259 ;; 13260 13261aix[4-9]*) 13262 version_type=linux 13263 need_lib_prefix=no 13264 need_version=no 13265 hardcode_into_libs=yes 13266 if test "$host_cpu" = ia64; then 13267 # AIX 5 supports IA64 13268 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13269 shlibpath_var=LD_LIBRARY_PATH 13270 else 13271 # With GCC up to 2.95.x, collect2 would create an import file 13272 # for dependence libraries. The import file would start with 13273 # the line `#! .'. This would cause the generated library to 13274 # depend on `.', always an invalid library. This was fixed in 13275 # development snapshots of GCC prior to 3.0. 13276 case $host_os in 13277 aix4 | aix4.[01] | aix4.[01].*) 13278 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13279 echo ' yes ' 13280 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 13281 : 13282 else 13283 can_build_shared=no 13284 fi 13285 ;; 13286 esac 13287 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13288 # soname into executable. Probably we can add versioning support to 13289 # collect2, so additional links can be useful in future. 13290 if test "$aix_use_runtimelinking" = yes; then 13291 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13292 # instead of lib<name>.a to let people know that these are not 13293 # typical AIX shared libraries. 13294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13295 else 13296 # We preserve .a as extension for shared libraries through AIX4.2 13297 # and later when we are not doing run time linking. 13298 library_names_spec='${libname}${release}.a $libname.a' 13299 soname_spec='${libname}${release}${shared_ext}$major' 13300 fi 13301 shlibpath_var=LIBPATH 13302 fi 13303 ;; 13304 13305amigaos*) 13306 library_names_spec='$libname.ixlibrary $libname.a' 13307 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13308 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' 13309 ;; 13310 13311beos*) 13312 library_names_spec='${libname}${shared_ext}' 13313 dynamic_linker="$host_os ld.so" 13314 shlibpath_var=LIBRARY_PATH 13315 ;; 13316 13317bsdi[45]*) 13318 version_type=linux 13319 need_version=no 13320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13321 soname_spec='${libname}${release}${shared_ext}$major' 13322 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13323 shlibpath_var=LD_LIBRARY_PATH 13324 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13325 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13326 # the default ld.so.conf also contains /usr/contrib/lib and 13327 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13328 # libtool to hard-code these into programs 13329 ;; 13330 13331cygwin* | mingw* | pw32*) 13332 version_type=windows 13333 shrext_cmds=".dll" 13334 need_version=no 13335 need_lib_prefix=no 13336 13337 case $GCC,$host_os in 13338 yes,cygwin* | yes,mingw* | yes,pw32*) 13339 library_names_spec='$libname.dll.a' 13340 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13341 postinstall_cmds='base_file=`basename \${file}`~ 13342 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 13343 dldir=$destdir/`dirname \$dlpath`~ 13344 test -d \$dldir || mkdir -p \$dldir~ 13345 $install_prog $dir/$dlname \$dldir/$dlname~ 13346 chmod a+x \$dldir/$dlname' 13347 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13348 dlpath=$dir/\$dldll~ 13349 $rm \$dlpath' 13350 shlibpath_overrides_runpath=yes 13351 13352 case $host_os in 13353 cygwin*) 13354 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13355 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13356 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 13357 ;; 13358 mingw*) 13359 # MinGW DLLs use traditional 'lib' prefix 13360 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13361 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13362 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 13363 # It is most probably a Windows format PATH printed by 13364 # mingw gcc, but we are running on Cygwin. Gcc prints its search 13365 # path with ; separators, and with drive letters. We can handle the 13366 # drive letters (cygwin fileutils understands them), so leave them, 13367 # especially as we might pass files found there to a mingw objdump, 13368 # which wouldn't understand a cygwinified path. Ahh. 13369 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13370 else 13371 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13372 fi 13373 ;; 13374 pw32*) 13375 # pw32 DLLs use 'pw' prefix rather than 'lib' 13376 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13377 ;; 13378 esac 13379 ;; 13380 13381 *) 13382 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13383 ;; 13384 esac 13385 dynamic_linker='Win32 ld.exe' 13386 # FIXME: first we should search . and the directory the executable is in 13387 shlibpath_var=PATH 13388 ;; 13389 13390darwin* | rhapsody*) 13391 dynamic_linker="$host_os dyld" 13392 version_type=darwin 13393 need_lib_prefix=no 13394 need_version=no 13395 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13396 soname_spec='${libname}${release}${major}$shared_ext' 13397 shlibpath_overrides_runpath=yes 13398 shlibpath_var=DYLD_LIBRARY_PATH 13399 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13400 13401 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13402 ;; 13403 13404dgux*) 13405 version_type=linux 13406 need_lib_prefix=no 13407 need_version=no 13408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13409 soname_spec='${libname}${release}${shared_ext}$major' 13410 shlibpath_var=LD_LIBRARY_PATH 13411 ;; 13412 13413freebsd1*) 13414 dynamic_linker=no 13415 ;; 13416 13417freebsd* | dragonfly*) 13418 # DragonFly does not have aout. When/if they implement a new 13419 # versioning mechanism, adjust this. 13420 if test -x /usr/bin/objformat; then 13421 objformat=`/usr/bin/objformat` 13422 else 13423 case $host_os in 13424 freebsd[123]*) objformat=aout ;; 13425 *) objformat=elf ;; 13426 esac 13427 fi 13428 version_type=freebsd-$objformat 13429 case $version_type in 13430 freebsd-elf*) 13431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13432 need_version=no 13433 need_lib_prefix=no 13434 ;; 13435 freebsd-*) 13436 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13437 need_version=yes 13438 ;; 13439 esac 13440 shlibpath_var=LD_LIBRARY_PATH 13441 case $host_os in 13442 freebsd2*) 13443 shlibpath_overrides_runpath=yes 13444 ;; 13445 freebsd3.[01]* | freebsdelf3.[01]*) 13446 shlibpath_overrides_runpath=yes 13447 hardcode_into_libs=yes 13448 ;; 13449 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13450 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13451 shlibpath_overrides_runpath=no 13452 hardcode_into_libs=yes 13453 ;; 13454 *) # from 4.6 on, and DragonFly 13455 shlibpath_overrides_runpath=yes 13456 hardcode_into_libs=yes 13457 ;; 13458 esac 13459 ;; 13460 13461gnu*) 13462 version_type=linux 13463 need_lib_prefix=no 13464 need_version=no 13465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13466 soname_spec='${libname}${release}${shared_ext}$major' 13467 shlibpath_var=LD_LIBRARY_PATH 13468 hardcode_into_libs=yes 13469 ;; 13470 13471hpux9* | hpux10* | hpux11*) 13472 # Give a soname corresponding to the major version so that dld.sl refuses to 13473 # link against other versions. 13474 version_type=sunos 13475 need_lib_prefix=no 13476 need_version=no 13477 case $host_cpu in 13478 ia64*) 13479 shrext_cmds='.so' 13480 hardcode_into_libs=yes 13481 dynamic_linker="$host_os dld.so" 13482 shlibpath_var=LD_LIBRARY_PATH 13483 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13485 soname_spec='${libname}${release}${shared_ext}$major' 13486 if test "X$HPUX_IA64_MODE" = X32; then 13487 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13488 else 13489 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13490 fi 13491 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13492 ;; 13493 hppa*64*) 13494 shrext_cmds='.sl' 13495 hardcode_into_libs=yes 13496 dynamic_linker="$host_os dld.sl" 13497 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13498 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13500 soname_spec='${libname}${release}${shared_ext}$major' 13501 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13502 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13503 ;; 13504 *) 13505 shrext_cmds='.sl' 13506 dynamic_linker="$host_os dld.sl" 13507 shlibpath_var=SHLIB_PATH 13508 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13510 soname_spec='${libname}${release}${shared_ext}$major' 13511 ;; 13512 esac 13513 # HP-UX runs *really* slowly unless shared libraries are mode 555. 13514 postinstall_cmds='chmod 555 $lib' 13515 ;; 13516 13517interix[3-9]*) 13518 version_type=linux 13519 need_lib_prefix=no 13520 need_version=no 13521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13522 soname_spec='${libname}${release}${shared_ext}$major' 13523 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13524 shlibpath_var=LD_LIBRARY_PATH 13525 shlibpath_overrides_runpath=no 13526 hardcode_into_libs=yes 13527 ;; 13528 13529irix5* | irix6* | nonstopux*) 13530 case $host_os in 13531 nonstopux*) version_type=nonstopux ;; 13532 *) 13533 if test "$lt_cv_prog_gnu_ld" = yes; then 13534 version_type=linux 13535 else 13536 version_type=irix 13537 fi ;; 13538 esac 13539 need_lib_prefix=no 13540 need_version=no 13541 soname_spec='${libname}${release}${shared_ext}$major' 13542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13543 case $host_os in 13544 irix5* | nonstopux*) 13545 libsuff= shlibsuff= 13546 ;; 13547 *) 13548 case $LD in # libtool.m4 will add one of these switches to LD 13549 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13550 libsuff= shlibsuff= libmagic=32-bit;; 13551 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13552 libsuff=32 shlibsuff=N32 libmagic=N32;; 13553 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13554 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13555 *) libsuff= shlibsuff= libmagic=never-match;; 13556 esac 13557 ;; 13558 esac 13559 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13560 shlibpath_overrides_runpath=no 13561 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13562 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13563 hardcode_into_libs=yes 13564 ;; 13565 13566# No shared lib support for Linux oldld, aout, or coff. 13567linux*oldld* | linux*aout* | linux*coff*) 13568 dynamic_linker=no 13569 ;; 13570 13571# This must be Linux ELF. 13572linux* | k*bsd*-gnu) 13573 version_type=linux 13574 need_lib_prefix=no 13575 need_version=no 13576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13577 soname_spec='${libname}${release}${shared_ext}$major' 13578 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13579 shlibpath_var=LD_LIBRARY_PATH 13580 shlibpath_overrides_runpath=no 13581 # This implies no fast_install, which is unacceptable. 13582 # Some rework will be needed to allow for fast_install 13583 # before this can be enabled. 13584 hardcode_into_libs=yes 13585 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13586 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13587 13588 # Append ld.so.conf contents to the search path 13589 if test -f /etc/ld.so.conf; then 13590 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' ' '` 13591 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 13592 fi 13593 13594 # We used to test for /lib/ld.so.1 and disable shared libraries on 13595 # powerpc, because MkLinux only supported shared libraries with the 13596 # GNU dynamic linker. Since this was broken with cross compilers, 13597 # most powerpc-linux boxes support dynamic linking these days and 13598 # people can always --disable-shared, the test was removed, and we 13599 # assume the GNU/Linux dynamic linker is in use. 13600 dynamic_linker='GNU/Linux ld.so' 13601 ;; 13602 13603netbsd*) 13604 version_type=sunos 13605 need_lib_prefix=no 13606 need_version=no 13607 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13609 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13610 dynamic_linker='NetBSD (a.out) ld.so' 13611 else 13612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13613 soname_spec='${libname}${release}${shared_ext}$major' 13614 dynamic_linker='NetBSD ld.elf_so' 13615 fi 13616 shlibpath_var=LD_LIBRARY_PATH 13617 shlibpath_overrides_runpath=yes 13618 hardcode_into_libs=yes 13619 ;; 13620 13621newsos6) 13622 version_type=linux 13623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13624 shlibpath_var=LD_LIBRARY_PATH 13625 shlibpath_overrides_runpath=yes 13626 ;; 13627 13628nto-qnx*) 13629 version_type=linux 13630 need_lib_prefix=no 13631 need_version=no 13632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13633 soname_spec='${libname}${release}${shared_ext}$major' 13634 shlibpath_var=LD_LIBRARY_PATH 13635 shlibpath_overrides_runpath=yes 13636 ;; 13637 13638openbsd*) 13639 version_type=sunos 13640 sys_lib_dlsearch_path_spec="/usr/lib" 13641 need_lib_prefix=no 13642 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 13643 case $host_os in 13644 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 13645 *) need_version=no ;; 13646 esac 13647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13648 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13649 shlibpath_var=LD_LIBRARY_PATH 13650 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13651 case $host_os in 13652 openbsd2.[89] | openbsd2.[89].*) 13653 shlibpath_overrides_runpath=no 13654 ;; 13655 *) 13656 shlibpath_overrides_runpath=yes 13657 ;; 13658 esac 13659 else 13660 shlibpath_overrides_runpath=yes 13661 fi 13662 ;; 13663 13664os2*) 13665 libname_spec='$name' 13666 shrext_cmds=".dll" 13667 need_lib_prefix=no 13668 library_names_spec='$libname${shared_ext} $libname.a' 13669 dynamic_linker='OS/2 ld.exe' 13670 shlibpath_var=LIBPATH 13671 ;; 13672 13673osf3* | osf4* | osf5*) 13674 version_type=osf 13675 need_lib_prefix=no 13676 need_version=no 13677 soname_spec='${libname}${release}${shared_ext}$major' 13678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13679 shlibpath_var=LD_LIBRARY_PATH 13680 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13681 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13682 ;; 13683 13684rdos*) 13685 dynamic_linker=no 13686 ;; 13687 13688solaris*) 13689 version_type=linux 13690 need_lib_prefix=no 13691 need_version=no 13692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13693 soname_spec='${libname}${release}${shared_ext}$major' 13694 shlibpath_var=LD_LIBRARY_PATH 13695 shlibpath_overrides_runpath=yes 13696 hardcode_into_libs=yes 13697 # ldd complains unless libraries are executable 13698 postinstall_cmds='chmod +x $lib' 13699 ;; 13700 13701sunos4*) 13702 version_type=sunos 13703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13704 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13705 shlibpath_var=LD_LIBRARY_PATH 13706 shlibpath_overrides_runpath=yes 13707 if test "$with_gnu_ld" = yes; then 13708 need_lib_prefix=no 13709 fi 13710 need_version=yes 13711 ;; 13712 13713sysv4 | sysv4.3*) 13714 version_type=linux 13715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13716 soname_spec='${libname}${release}${shared_ext}$major' 13717 shlibpath_var=LD_LIBRARY_PATH 13718 case $host_vendor in 13719 sni) 13720 shlibpath_overrides_runpath=no 13721 need_lib_prefix=no 13722 export_dynamic_flag_spec='${wl}-Blargedynsym' 13723 runpath_var=LD_RUN_PATH 13724 ;; 13725 siemens) 13726 need_lib_prefix=no 13727 ;; 13728 motorola) 13729 need_lib_prefix=no 13730 need_version=no 13731 shlibpath_overrides_runpath=no 13732 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13733 ;; 13734 esac 13735 ;; 13736 13737sysv4*MP*) 13738 if test -d /usr/nec ;then 13739 version_type=linux 13740 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13741 soname_spec='$libname${shared_ext}.$major' 13742 shlibpath_var=LD_LIBRARY_PATH 13743 fi 13744 ;; 13745 13746sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13747 version_type=freebsd-elf 13748 need_lib_prefix=no 13749 need_version=no 13750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13751 soname_spec='${libname}${release}${shared_ext}$major' 13752 shlibpath_var=LD_LIBRARY_PATH 13753 hardcode_into_libs=yes 13754 if test "$with_gnu_ld" = yes; then 13755 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13756 shlibpath_overrides_runpath=no 13757 else 13758 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13759 shlibpath_overrides_runpath=yes 13760 case $host_os in 13761 sco3.2v5*) 13762 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13763 ;; 13764 esac 13765 fi 13766 sys_lib_dlsearch_path_spec='/usr/lib' 13767 ;; 13768 13769uts4*) 13770 version_type=linux 13771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13772 soname_spec='${libname}${release}${shared_ext}$major' 13773 shlibpath_var=LD_LIBRARY_PATH 13774 ;; 13775 13776*) 13777 dynamic_linker=no 13778 ;; 13779esac 13780{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13781$as_echo "$dynamic_linker" >&6; } 13782test "$dynamic_linker" = no && can_build_shared=no 13783 13784if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 13785 $as_echo_n "(cached) " >&6 13786else 13787 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 13788fi 13789 13790sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 13791if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 13792 $as_echo_n "(cached) " >&6 13793else 13794 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 13795fi 13796 13797sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 13798 13799variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13800if test "$GCC" = yes; then 13801 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13802fi 13803 13804{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13805$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 13806hardcode_action_CXX= 13807if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13808 test -n "$runpath_var_CXX" || \ 13809 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13810 13811 # We can hardcode non-existant directories. 13812 if test "$hardcode_direct_CXX" != no && 13813 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13814 # have to relink, otherwise we might link with an installed library 13815 # when we should be linking with a yet-to-be-installed one 13816 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13817 test "$hardcode_minus_L_CXX" != no; then 13818 # Linking always hardcodes the temporary library directory. 13819 hardcode_action_CXX=relink 13820 else 13821 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13822 hardcode_action_CXX=immediate 13823 fi 13824else 13825 # We cannot hardcode anything, or else we can only hardcode existing 13826 # directories. 13827 hardcode_action_CXX=unsupported 13828fi 13829{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13830$as_echo "$hardcode_action_CXX" >&6; } 13831 13832if test "$hardcode_action_CXX" = relink; then 13833 # Fast installation is not supported 13834 enable_fast_install=no 13835elif test "$shlibpath_overrides_runpath" = yes || 13836 test "$enable_shared" = no; then 13837 # Fast installation is not necessary 13838 enable_fast_install=needless 13839fi 13840 13841 13842# The else clause should only fire when bootstrapping the 13843# libtool distribution, otherwise you forgot to ship ltmain.sh 13844# with your package, and you will get complaints that there are 13845# no rules to generate ltmain.sh. 13846if test -f "$ltmain"; then 13847 # See if we are running on zsh, and set the options which allow our commands through 13848 # without removal of \ escapes. 13849 if test -n "${ZSH_VERSION+set}" ; then 13850 setopt NO_GLOB_SUBST 13851 fi 13852 # Now quote all the things that may contain metacharacters while being 13853 # careful not to overquote the AC_SUBSTed values. We take copies of the 13854 # variables and quote the copies for generation of the libtool script. 13855 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13856 SED SHELL STRIP \ 13857 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13858 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13859 deplibs_check_method reload_flag reload_cmds need_locks \ 13860 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13861 lt_cv_sys_global_symbol_to_c_name_address \ 13862 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13863 old_postinstall_cmds old_postuninstall_cmds \ 13864 compiler_CXX \ 13865 CC_CXX \ 13866 LD_CXX \ 13867 lt_prog_compiler_wl_CXX \ 13868 lt_prog_compiler_pic_CXX \ 13869 lt_prog_compiler_static_CXX \ 13870 lt_prog_compiler_no_builtin_flag_CXX \ 13871 export_dynamic_flag_spec_CXX \ 13872 thread_safe_flag_spec_CXX \ 13873 whole_archive_flag_spec_CXX \ 13874 enable_shared_with_static_runtimes_CXX \ 13875 old_archive_cmds_CXX \ 13876 old_archive_from_new_cmds_CXX \ 13877 predep_objects_CXX \ 13878 postdep_objects_CXX \ 13879 predeps_CXX \ 13880 postdeps_CXX \ 13881 compiler_lib_search_path_CXX \ 13882 compiler_lib_search_dirs_CXX \ 13883 archive_cmds_CXX \ 13884 archive_expsym_cmds_CXX \ 13885 postinstall_cmds_CXX \ 13886 postuninstall_cmds_CXX \ 13887 old_archive_from_expsyms_cmds_CXX \ 13888 allow_undefined_flag_CXX \ 13889 no_undefined_flag_CXX \ 13890 export_symbols_cmds_CXX \ 13891 hardcode_libdir_flag_spec_CXX \ 13892 hardcode_libdir_flag_spec_ld_CXX \ 13893 hardcode_libdir_separator_CXX \ 13894 hardcode_automatic_CXX \ 13895 module_cmds_CXX \ 13896 module_expsym_cmds_CXX \ 13897 lt_cv_prog_compiler_c_o_CXX \ 13898 fix_srcfile_path_CXX \ 13899 exclude_expsyms_CXX \ 13900 include_expsyms_CXX; do 13901 13902 case $var in 13903 old_archive_cmds_CXX | \ 13904 old_archive_from_new_cmds_CXX | \ 13905 archive_cmds_CXX | \ 13906 archive_expsym_cmds_CXX | \ 13907 module_cmds_CXX | \ 13908 module_expsym_cmds_CXX | \ 13909 old_archive_from_expsyms_cmds_CXX | \ 13910 export_symbols_cmds_CXX | \ 13911 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13912 postinstall_cmds | postuninstall_cmds | \ 13913 old_postinstall_cmds | old_postuninstall_cmds | \ 13914 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13915 # Double-quote double-evaled strings. 13916 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13917 ;; 13918 *) 13919 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13920 ;; 13921 esac 13922 done 13923 13924 case $lt_echo in 13925 *'\$0 --fallback-echo"') 13926 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13927 ;; 13928 esac 13929 13930cfgfile="$ofile" 13931 13932 cat <<__EOF__ >> "$cfgfile" 13933# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13934 13935# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13936 13937# Shell to use when invoking shell scripts. 13938SHELL=$lt_SHELL 13939 13940# Whether or not to build shared libraries. 13941build_libtool_libs=$enable_shared 13942 13943# Whether or not to build static libraries. 13944build_old_libs=$enable_static 13945 13946# Whether or not to add -lc for building shared libraries. 13947build_libtool_need_lc=$archive_cmds_need_lc_CXX 13948 13949# Whether or not to disallow shared libs when runtime libs are static 13950allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13951 13952# Whether or not to optimize for fast installation. 13953fast_install=$enable_fast_install 13954 13955# The host system. 13956host_alias=$host_alias 13957host=$host 13958host_os=$host_os 13959 13960# The build system. 13961build_alias=$build_alias 13962build=$build 13963build_os=$build_os 13964 13965# An echo program that does not interpret backslashes. 13966echo=$lt_echo 13967 13968# The archiver. 13969AR=$lt_AR 13970AR_FLAGS=$lt_AR_FLAGS 13971 13972# A C compiler. 13973LTCC=$lt_LTCC 13974 13975# LTCC compiler flags. 13976LTCFLAGS=$lt_LTCFLAGS 13977 13978# A language-specific compiler. 13979CC=$lt_compiler_CXX 13980 13981# Is the compiler the GNU C compiler? 13982with_gcc=$GCC_CXX 13983 13984# An ERE matcher. 13985EGREP=$lt_EGREP 13986 13987# The linker used to build libraries. 13988LD=$lt_LD_CXX 13989 13990# Whether we need hard or soft links. 13991LN_S=$lt_LN_S 13992 13993# A BSD-compatible nm program. 13994NM=$lt_NM 13995 13996# A symbol stripping program 13997STRIP=$lt_STRIP 13998 13999# Used to examine libraries when file_magic_cmd begins "file" 14000MAGIC_CMD=$MAGIC_CMD 14001 14002# Used on cygwin: DLL creation program. 14003DLLTOOL="$DLLTOOL" 14004 14005# Used on cygwin: object dumper. 14006OBJDUMP="$OBJDUMP" 14007 14008# Used on cygwin: assembler. 14009AS="$AS" 14010 14011# The name of the directory that contains temporary libtool files. 14012objdir=$objdir 14013 14014# How to create reloadable object files. 14015reload_flag=$lt_reload_flag 14016reload_cmds=$lt_reload_cmds 14017 14018# How to pass a linker flag through the compiler. 14019wl=$lt_lt_prog_compiler_wl_CXX 14020 14021# Object file suffix (normally "o"). 14022objext="$ac_objext" 14023 14024# Old archive suffix (normally "a"). 14025libext="$libext" 14026 14027# Shared library suffix (normally ".so"). 14028shrext_cmds='$shrext_cmds' 14029 14030# Executable file suffix (normally ""). 14031exeext="$exeext" 14032 14033# Additional compiler flags for building library objects. 14034pic_flag=$lt_lt_prog_compiler_pic_CXX 14035pic_mode=$pic_mode 14036 14037# What is the maximum length of a command? 14038max_cmd_len=$lt_cv_sys_max_cmd_len 14039 14040# Does compiler simultaneously support -c and -o options? 14041compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 14042 14043# Must we lock files when doing compilation? 14044need_locks=$lt_need_locks 14045 14046# Do we need the lib prefix for modules? 14047need_lib_prefix=$need_lib_prefix 14048 14049# Do we need a version for libraries? 14050need_version=$need_version 14051 14052# Whether dlopen is supported. 14053dlopen_support=$enable_dlopen 14054 14055# Whether dlopen of programs is supported. 14056dlopen_self=$enable_dlopen_self 14057 14058# Whether dlopen of statically linked programs is supported. 14059dlopen_self_static=$enable_dlopen_self_static 14060 14061# Compiler flag to prevent dynamic linking. 14062link_static_flag=$lt_lt_prog_compiler_static_CXX 14063 14064# Compiler flag to turn off builtin functions. 14065no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 14066 14067# Compiler flag to allow reflexive dlopens. 14068export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 14069 14070# Compiler flag to generate shared objects directly from archives. 14071whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 14072 14073# Compiler flag to generate thread-safe objects. 14074thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 14075 14076# Library versioning type. 14077version_type=$version_type 14078 14079# Format of library name prefix. 14080libname_spec=$lt_libname_spec 14081 14082# List of archive names. First name is the real one, the rest are links. 14083# The last name is the one that the linker finds with -lNAME. 14084library_names_spec=$lt_library_names_spec 14085 14086# The coded name of the library, if different from the real name. 14087soname_spec=$lt_soname_spec 14088 14089# Commands used to build and install an old-style archive. 14090RANLIB=$lt_RANLIB 14091old_archive_cmds=$lt_old_archive_cmds_CXX 14092old_postinstall_cmds=$lt_old_postinstall_cmds 14093old_postuninstall_cmds=$lt_old_postuninstall_cmds 14094 14095# Create an old-style archive from a shared archive. 14096old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 14097 14098# Create a temporary old-style archive to link instead of a shared archive. 14099old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 14100 14101# Commands used to build and install a shared archive. 14102archive_cmds=$lt_archive_cmds_CXX 14103archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 14104postinstall_cmds=$lt_postinstall_cmds 14105postuninstall_cmds=$lt_postuninstall_cmds 14106 14107# Commands used to build a loadable module (assumed same as above if empty) 14108module_cmds=$lt_module_cmds_CXX 14109module_expsym_cmds=$lt_module_expsym_cmds_CXX 14110 14111# Commands to strip libraries. 14112old_striplib=$lt_old_striplib 14113striplib=$lt_striplib 14114 14115# Dependencies to place before the objects being linked to create a 14116# shared library. 14117predep_objects=$lt_predep_objects_CXX 14118 14119# Dependencies to place after the objects being linked to create a 14120# shared library. 14121postdep_objects=$lt_postdep_objects_CXX 14122 14123# Dependencies to place before the objects being linked to create a 14124# shared library. 14125predeps=$lt_predeps_CXX 14126 14127# Dependencies to place after the objects being linked to create a 14128# shared library. 14129postdeps=$lt_postdeps_CXX 14130 14131# The directories searched by this compiler when creating a shared 14132# library 14133compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 14134 14135# The library search path used internally by the compiler when linking 14136# a shared library. 14137compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 14138 14139# Method to check whether dependent libraries are shared objects. 14140deplibs_check_method=$lt_deplibs_check_method 14141 14142# Command to use when deplibs_check_method == file_magic. 14143file_magic_cmd=$lt_file_magic_cmd 14144 14145# Flag that allows shared libraries with undefined symbols to be built. 14146allow_undefined_flag=$lt_allow_undefined_flag_CXX 14147 14148# Flag that forces no undefined symbols. 14149no_undefined_flag=$lt_no_undefined_flag_CXX 14150 14151# Commands used to finish a libtool library installation in a directory. 14152finish_cmds=$lt_finish_cmds 14153 14154# Same as above, but a single script fragment to be evaled but not shown. 14155finish_eval=$lt_finish_eval 14156 14157# Take the output of nm and produce a listing of raw symbols and C names. 14158global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14159 14160# Transform the output of nm in a proper C declaration 14161global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14162 14163# Transform the output of nm in a C name address pair 14164global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14165 14166# This is the shared library runtime path variable. 14167runpath_var=$runpath_var 14168 14169# This is the shared library path variable. 14170shlibpath_var=$shlibpath_var 14171 14172# Is shlibpath searched before the hard-coded library search path? 14173shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14174 14175# How to hardcode a shared library path into an executable. 14176hardcode_action=$hardcode_action_CXX 14177 14178# Whether we should hardcode library paths into libraries. 14179hardcode_into_libs=$hardcode_into_libs 14180 14181# Flag to hardcode \$libdir into a binary during linking. 14182# This must work even if \$libdir does not exist. 14183hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 14184 14185# If ld is used when linking, flag to hardcode \$libdir into 14186# a binary during linking. This must work even if \$libdir does 14187# not exist. 14188hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 14189 14190# Whether we need a single -rpath flag with a separated argument. 14191hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 14192 14193# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 14194# resulting binary. 14195hardcode_direct=$hardcode_direct_CXX 14196 14197# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 14198# resulting binary. 14199hardcode_minus_L=$hardcode_minus_L_CXX 14200 14201# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 14202# the resulting binary. 14203hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 14204 14205# Set to yes if building a shared library automatically hardcodes DIR into the library 14206# and all subsequent libraries and executables linked against it. 14207hardcode_automatic=$hardcode_automatic_CXX 14208 14209# Variables whose values should be saved in libtool wrapper scripts and 14210# restored at relink time. 14211variables_saved_for_relink="$variables_saved_for_relink" 14212 14213# Whether libtool must link a program against all its dependency libraries. 14214link_all_deplibs=$link_all_deplibs_CXX 14215 14216# Compile-time system search path for libraries 14217sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14218 14219# Run-time system search path for libraries 14220sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14221 14222# Fix the shell variable \$srcfile for the compiler. 14223fix_srcfile_path=$lt_fix_srcfile_path 14224 14225# Set to yes if exported symbols are required. 14226always_export_symbols=$always_export_symbols_CXX 14227 14228# The commands to list exported symbols. 14229export_symbols_cmds=$lt_export_symbols_cmds_CXX 14230 14231# The commands to extract the exported symbol list from a shared archive. 14232extract_expsyms_cmds=$lt_extract_expsyms_cmds 14233 14234# Symbols that should not be listed in the preloaded symbols. 14235exclude_expsyms=$lt_exclude_expsyms_CXX 14236 14237# Symbols that must always be exported. 14238include_expsyms=$lt_include_expsyms_CXX 14239 14240# ### END LIBTOOL TAG CONFIG: $tagname 14241 14242__EOF__ 14243 14244 14245else 14246 # If there is no Makefile yet, we rely on a make rule to execute 14247 # `config.status --recheck' to rerun these tests and create the 14248 # libtool script then. 14249 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 14250 if test -f "$ltmain_in"; then 14251 test -f Makefile && make "$ltmain" 14252 fi 14253fi 14254 14255 14256ac_ext=c 14257ac_cpp='$CPP $CPPFLAGS' 14258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14260ac_compiler_gnu=$ac_cv_c_compiler_gnu 14261 14262CC=$lt_save_CC 14263LDCXX=$LD 14264LD=$lt_save_LD 14265GCC=$lt_save_GCC 14266with_gnu_ldcxx=$with_gnu_ld 14267with_gnu_ld=$lt_save_with_gnu_ld 14268lt_cv_path_LDCXX=$lt_cv_path_LD 14269lt_cv_path_LD=$lt_save_path_LD 14270lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 14271lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 14272 14273 else 14274 tagname="" 14275 fi 14276 ;; 14277 14278 F77) 14279 if test -n "$F77" && test "X$F77" != "Xno"; then 14280 14281ac_ext=f 14282ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 14283ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14284ac_compiler_gnu=$ac_cv_f77_compiler_gnu 14285 14286 14287archive_cmds_need_lc_F77=no 14288allow_undefined_flag_F77= 14289always_export_symbols_F77=no 14290archive_expsym_cmds_F77= 14291export_dynamic_flag_spec_F77= 14292hardcode_direct_F77=no 14293hardcode_libdir_flag_spec_F77= 14294hardcode_libdir_flag_spec_ld_F77= 14295hardcode_libdir_separator_F77= 14296hardcode_minus_L_F77=no 14297hardcode_automatic_F77=no 14298module_cmds_F77= 14299module_expsym_cmds_F77= 14300link_all_deplibs_F77=unknown 14301old_archive_cmds_F77=$old_archive_cmds 14302no_undefined_flag_F77= 14303whole_archive_flag_spec_F77= 14304enable_shared_with_static_runtimes_F77=no 14305 14306# Source file extension for f77 test sources. 14307ac_ext=f 14308 14309# Object file extension for compiled f77 test sources. 14310objext=o 14311objext_F77=$objext 14312 14313# Code to be used in simple compile tests 14314lt_simple_compile_test_code="\ 14315 subroutine t 14316 return 14317 end 14318" 14319 14320# Code to be used in simple link tests 14321lt_simple_link_test_code="\ 14322 program t 14323 end 14324" 14325 14326# ltmain only uses $CC for tagged configurations so make sure $CC is set. 14327 14328# If no C compiler was specified, use CC. 14329LTCC=${LTCC-"$CC"} 14330 14331# If no C compiler flags were specified, use CFLAGS. 14332LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14333 14334# Allow CC to be a program name with arguments. 14335compiler=$CC 14336 14337 14338# save warnings/boilerplate of simple test code 14339ac_outfile=conftest.$ac_objext 14340echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14341eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14342_lt_compiler_boilerplate=`cat conftest.err` 14343$rm conftest* 14344 14345ac_outfile=conftest.$ac_objext 14346echo "$lt_simple_link_test_code" >conftest.$ac_ext 14347eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14348_lt_linker_boilerplate=`cat conftest.err` 14349$rm -r conftest* 14350 14351 14352# Allow CC to be a program name with arguments. 14353lt_save_CC="$CC" 14354CC=${F77-"f77"} 14355compiler=$CC 14356compiler_F77=$CC 14357for cc_temp in $compiler""; do 14358 case $cc_temp in 14359 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14360 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14361 \-*) ;; 14362 *) break;; 14363 esac 14364done 14365cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14366 14367 14368{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 14369$as_echo_n "checking if libtool supports shared libraries... " >&6; } 14370{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 14371$as_echo "$can_build_shared" >&6; } 14372 14373{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 14374$as_echo_n "checking whether to build shared libraries... " >&6; } 14375test "$can_build_shared" = "no" && enable_shared=no 14376 14377# On AIX, shared libraries and static libraries use the same namespace, and 14378# are all built from PIC. 14379case $host_os in 14380aix3*) 14381 test "$enable_shared" = yes && enable_static=no 14382 if test -n "$RANLIB"; then 14383 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14384 postinstall_cmds='$RANLIB $lib' 14385 fi 14386 ;; 14387aix[4-9]*) 14388 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 14389 test "$enable_shared" = yes && enable_static=no 14390 fi 14391 ;; 14392esac 14393{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 14394$as_echo "$enable_shared" >&6; } 14395 14396{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 14397$as_echo_n "checking whether to build static libraries... " >&6; } 14398# Make sure either enable_shared or enable_static is yes. 14399test "$enable_shared" = yes || enable_static=yes 14400{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5 14401$as_echo "$enable_static" >&6; } 14402 14403GCC_F77="$G77" 14404LD_F77="$LD" 14405 14406lt_prog_compiler_wl_F77= 14407lt_prog_compiler_pic_F77= 14408lt_prog_compiler_static_F77= 14409 14410{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14411$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14412 14413 if test "$GCC" = yes; then 14414 lt_prog_compiler_wl_F77='-Wl,' 14415 lt_prog_compiler_static_F77='-static' 14416 14417 case $host_os in 14418 aix*) 14419 # All AIX code is PIC. 14420 if test "$host_cpu" = ia64; then 14421 # AIX 5 now supports IA64 processor 14422 lt_prog_compiler_static_F77='-Bstatic' 14423 fi 14424 ;; 14425 14426 amigaos*) 14427 # FIXME: we need at least 68020 code to build shared libraries, but 14428 # adding the `-m68020' flag to GCC prevents building anything better, 14429 # like `-m68040'. 14430 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 14431 ;; 14432 14433 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14434 # PIC is the default for these OSes. 14435 ;; 14436 14437 mingw* | cygwin* | pw32* | os2*) 14438 # This hack is so that the source file can tell whether it is being 14439 # built for inclusion in a dll (and should export symbols for example). 14440 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14441 # (--disable-auto-import) libraries 14442 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14443 ;; 14444 14445 darwin* | rhapsody*) 14446 # PIC is the default on this platform 14447 # Common symbols not allowed in MH_DYLIB files 14448 lt_prog_compiler_pic_F77='-fno-common' 14449 ;; 14450 14451 interix[3-9]*) 14452 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14453 # Instead, we relocate shared libraries at runtime. 14454 ;; 14455 14456 msdosdjgpp*) 14457 # Just because we use GCC doesn't mean we suddenly get shared libraries 14458 # on systems that don't support them. 14459 lt_prog_compiler_can_build_shared_F77=no 14460 enable_shared=no 14461 ;; 14462 14463 sysv4*MP*) 14464 if test -d /usr/nec; then 14465 lt_prog_compiler_pic_F77=-Kconform_pic 14466 fi 14467 ;; 14468 14469 hpux*) 14470 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14471 # not for PA HP-UX. 14472 case $host_cpu in 14473 hppa*64*|ia64*) 14474 # +Z the default 14475 ;; 14476 *) 14477 lt_prog_compiler_pic_F77='-fPIC' 14478 ;; 14479 esac 14480 ;; 14481 14482 *) 14483 lt_prog_compiler_pic_F77='-fPIC' 14484 ;; 14485 esac 14486 else 14487 # PORTME Check for flag to pass linker flags through the system compiler. 14488 case $host_os in 14489 aix*) 14490 lt_prog_compiler_wl_F77='-Wl,' 14491 if test "$host_cpu" = ia64; then 14492 # AIX 5 now supports IA64 processor 14493 lt_prog_compiler_static_F77='-Bstatic' 14494 else 14495 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 14496 fi 14497 ;; 14498 darwin*) 14499 # PIC is the default on this platform 14500 # Common symbols not allowed in MH_DYLIB files 14501 case $cc_basename in 14502 xlc*) 14503 lt_prog_compiler_pic_F77='-qnocommon' 14504 lt_prog_compiler_wl_F77='-Wl,' 14505 ;; 14506 esac 14507 ;; 14508 14509 mingw* | cygwin* | pw32* | os2*) 14510 # This hack is so that the source file can tell whether it is being 14511 # built for inclusion in a dll (and should export symbols for example). 14512 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14513 ;; 14514 14515 hpux9* | hpux10* | hpux11*) 14516 lt_prog_compiler_wl_F77='-Wl,' 14517 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14518 # not for PA HP-UX. 14519 case $host_cpu in 14520 hppa*64*|ia64*) 14521 # +Z the default 14522 ;; 14523 *) 14524 lt_prog_compiler_pic_F77='+Z' 14525 ;; 14526 esac 14527 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14528 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 14529 ;; 14530 14531 irix5* | irix6* | nonstopux*) 14532 lt_prog_compiler_wl_F77='-Wl,' 14533 # PIC (with -KPIC) is the default. 14534 lt_prog_compiler_static_F77='-non_shared' 14535 ;; 14536 14537 newsos6) 14538 lt_prog_compiler_pic_F77='-KPIC' 14539 lt_prog_compiler_static_F77='-Bstatic' 14540 ;; 14541 14542 linux* | k*bsd*-gnu) 14543 case $cc_basename in 14544 icc* | ecc*) 14545 lt_prog_compiler_wl_F77='-Wl,' 14546 lt_prog_compiler_pic_F77='-KPIC' 14547 lt_prog_compiler_static_F77='-static' 14548 ;; 14549 pgcc* | pgf77* | pgf90* | pgf95*) 14550 # Portland Group compilers (*not* the Pentium gcc compiler, 14551 # which looks to be a dead project) 14552 lt_prog_compiler_wl_F77='-Wl,' 14553 lt_prog_compiler_pic_F77='-fpic' 14554 lt_prog_compiler_static_F77='-Bstatic' 14555 ;; 14556 ccc*) 14557 lt_prog_compiler_wl_F77='-Wl,' 14558 # All Alpha code is PIC. 14559 lt_prog_compiler_static_F77='-non_shared' 14560 ;; 14561 *) 14562 case `$CC -V 2>&1 | sed 5q` in 14563 *Sun\ C*) 14564 # Sun C 5.9 14565 lt_prog_compiler_pic_F77='-KPIC' 14566 lt_prog_compiler_static_F77='-Bstatic' 14567 lt_prog_compiler_wl_F77='-Wl,' 14568 ;; 14569 *Sun\ F*) 14570 # Sun Fortran 8.3 passes all unrecognized flags to the linker 14571 lt_prog_compiler_pic_F77='-KPIC' 14572 lt_prog_compiler_static_F77='-Bstatic' 14573 lt_prog_compiler_wl_F77='' 14574 ;; 14575 esac 14576 ;; 14577 esac 14578 ;; 14579 14580 osf3* | osf4* | osf5*) 14581 lt_prog_compiler_wl_F77='-Wl,' 14582 # All OSF/1 code is PIC. 14583 lt_prog_compiler_static_F77='-non_shared' 14584 ;; 14585 14586 rdos*) 14587 lt_prog_compiler_static_F77='-non_shared' 14588 ;; 14589 14590 solaris*) 14591 lt_prog_compiler_pic_F77='-KPIC' 14592 lt_prog_compiler_static_F77='-Bstatic' 14593 case $cc_basename in 14594 f77* | f90* | f95*) 14595 lt_prog_compiler_wl_F77='-Qoption ld ';; 14596 *) 14597 lt_prog_compiler_wl_F77='-Wl,';; 14598 esac 14599 ;; 14600 14601 sunos4*) 14602 lt_prog_compiler_wl_F77='-Qoption ld ' 14603 lt_prog_compiler_pic_F77='-PIC' 14604 lt_prog_compiler_static_F77='-Bstatic' 14605 ;; 14606 14607 sysv4 | sysv4.2uw2* | sysv4.3*) 14608 lt_prog_compiler_wl_F77='-Wl,' 14609 lt_prog_compiler_pic_F77='-KPIC' 14610 lt_prog_compiler_static_F77='-Bstatic' 14611 ;; 14612 14613 sysv4*MP*) 14614 if test -d /usr/nec ;then 14615 lt_prog_compiler_pic_F77='-Kconform_pic' 14616 lt_prog_compiler_static_F77='-Bstatic' 14617 fi 14618 ;; 14619 14620 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14621 lt_prog_compiler_wl_F77='-Wl,' 14622 lt_prog_compiler_pic_F77='-KPIC' 14623 lt_prog_compiler_static_F77='-Bstatic' 14624 ;; 14625 14626 unicos*) 14627 lt_prog_compiler_wl_F77='-Wl,' 14628 lt_prog_compiler_can_build_shared_F77=no 14629 ;; 14630 14631 uts4*) 14632 lt_prog_compiler_pic_F77='-pic' 14633 lt_prog_compiler_static_F77='-Bstatic' 14634 ;; 14635 14636 *) 14637 lt_prog_compiler_can_build_shared_F77=no 14638 ;; 14639 esac 14640 fi 14641 14642{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 14643$as_echo "$lt_prog_compiler_pic_F77" >&6; } 14644 14645# 14646# Check to make sure the PIC flag actually works. 14647# 14648if test -n "$lt_prog_compiler_pic_F77"; then 14649 14650{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 14651$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; } 14652if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then 14653 $as_echo_n "(cached) " >&6 14654else 14655 lt_cv_prog_compiler_pic_works_F77=no 14656 ac_outfile=conftest.$ac_objext 14657 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14658 lt_compiler_flag="$lt_prog_compiler_pic_F77" 14659 # Insert the option either (1) after the last *FLAGS variable, or 14660 # (2) before a word containing "conftest.", or (3) at the end. 14661 # Note that $ac_compile itself does not contain backslashes and begins 14662 # with a dollar sign (not a hyphen), so the echo should work correctly. 14663 # The option is referenced via a variable to avoid confusing sed. 14664 lt_compile=`echo "$ac_compile" | $SED \ 14665 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14666 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14667 -e 's:$: $lt_compiler_flag:'` 14668 (eval echo "\"\$as_me:14668: $lt_compile\"" >&5) 14669 (eval "$lt_compile" 2>conftest.err) 14670 ac_status=$? 14671 cat conftest.err >&5 14672 echo "$as_me:14672: \$? = $ac_status" >&5 14673 if (exit $ac_status) && test -s "$ac_outfile"; then 14674 # The compiler can only warn and ignore the option if not recognized 14675 # So say no if there are warnings other than the usual output. 14676 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14677 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14678 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14679 lt_cv_prog_compiler_pic_works_F77=yes 14680 fi 14681 fi 14682 $rm conftest* 14683 14684fi 14685{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5 14686$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; } 14687 14688if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then 14689 case $lt_prog_compiler_pic_F77 in 14690 "" | " "*) ;; 14691 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 14692 esac 14693else 14694 lt_prog_compiler_pic_F77= 14695 lt_prog_compiler_can_build_shared_F77=no 14696fi 14697 14698fi 14699case $host_os in 14700 # For platforms which do not support PIC, -DPIC is meaningless: 14701 *djgpp*) 14702 lt_prog_compiler_pic_F77= 14703 ;; 14704 *) 14705 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 14706 ;; 14707esac 14708 14709# 14710# Check to make sure the static flag actually works. 14711# 14712wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 14713{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14714$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14715if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then 14716 $as_echo_n "(cached) " >&6 14717else 14718 lt_cv_prog_compiler_static_works_F77=no 14719 save_LDFLAGS="$LDFLAGS" 14720 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14721 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14722 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14723 # The linker can only warn and ignore the option if not recognized 14724 # So say no if there are warnings 14725 if test -s conftest.err; then 14726 # Append any errors to the config.log. 14727 cat conftest.err 1>&5 14728 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14729 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14730 if diff conftest.exp conftest.er2 >/dev/null; then 14731 lt_cv_prog_compiler_static_works_F77=yes 14732 fi 14733 else 14734 lt_cv_prog_compiler_static_works_F77=yes 14735 fi 14736 fi 14737 $rm -r conftest* 14738 LDFLAGS="$save_LDFLAGS" 14739 14740fi 14741{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5 14742$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; } 14743 14744if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then 14745 : 14746else 14747 lt_prog_compiler_static_F77= 14748fi 14749 14750 14751{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14752$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14753if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 14754 $as_echo_n "(cached) " >&6 14755else 14756 lt_cv_prog_compiler_c_o_F77=no 14757 $rm -r conftest 2>/dev/null 14758 mkdir conftest 14759 cd conftest 14760 mkdir out 14761 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14762 14763 lt_compiler_flag="-o out/conftest2.$ac_objext" 14764 # Insert the option either (1) after the last *FLAGS variable, or 14765 # (2) before a word containing "conftest.", or (3) at the end. 14766 # Note that $ac_compile itself does not contain backslashes and begins 14767 # with a dollar sign (not a hyphen), so the echo should work correctly. 14768 lt_compile=`echo "$ac_compile" | $SED \ 14769 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14770 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14771 -e 's:$: $lt_compiler_flag:'` 14772 (eval echo "\"\$as_me:14772: $lt_compile\"" >&5) 14773 (eval "$lt_compile" 2>out/conftest.err) 14774 ac_status=$? 14775 cat out/conftest.err >&5 14776 echo "$as_me:14776: \$? = $ac_status" >&5 14777 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14778 then 14779 # The compiler can only warn and ignore the option if not recognized 14780 # So say no if there are warnings 14781 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14782 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14783 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14784 lt_cv_prog_compiler_c_o_F77=yes 14785 fi 14786 fi 14787 chmod u+w . 2>&5 14788 $rm conftest* 14789 # SGI C++ compiler will create directory out/ii_files/ for 14790 # template instantiation 14791 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14792 $rm out/* && rmdir out 14793 cd .. 14794 rmdir conftest 14795 $rm conftest* 14796 14797fi 14798{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14799$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; } 14800 14801 14802hard_links="nottested" 14803if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14804 # do not overwrite the value of need_locks provided by the user 14805 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14806$as_echo_n "checking if we can lock with hard links... " >&6; } 14807 hard_links=yes 14808 $rm conftest* 14809 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14810 touch conftest.a 14811 ln conftest.a conftest.b 2>&5 || hard_links=no 14812 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14813 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 14814$as_echo "$hard_links" >&6; } 14815 if test "$hard_links" = no; then 14816 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14817$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14818 need_locks=warn 14819 fi 14820else 14821 need_locks=no 14822fi 14823 14824{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14825$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14826 14827 runpath_var= 14828 allow_undefined_flag_F77= 14829 enable_shared_with_static_runtimes_F77=no 14830 archive_cmds_F77= 14831 archive_expsym_cmds_F77= 14832 old_archive_From_new_cmds_F77= 14833 old_archive_from_expsyms_cmds_F77= 14834 export_dynamic_flag_spec_F77= 14835 whole_archive_flag_spec_F77= 14836 thread_safe_flag_spec_F77= 14837 hardcode_libdir_flag_spec_F77= 14838 hardcode_libdir_flag_spec_ld_F77= 14839 hardcode_libdir_separator_F77= 14840 hardcode_direct_F77=no 14841 hardcode_minus_L_F77=no 14842 hardcode_shlibpath_var_F77=unsupported 14843 link_all_deplibs_F77=unknown 14844 hardcode_automatic_F77=no 14845 module_cmds_F77= 14846 module_expsym_cmds_F77= 14847 always_export_symbols_F77=no 14848 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14849 # include_expsyms should be a list of space-separated symbols to be *always* 14850 # included in the symbol list 14851 include_expsyms_F77= 14852 # exclude_expsyms can be an extended regexp of symbols to exclude 14853 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14854 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14855 # as well as any symbol that contains `d'. 14856 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14857 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14858 # platforms (ab)use it in PIC code, but their linkers get confused if 14859 # the symbol is explicitly referenced. Since portable code cannot 14860 # rely on this symbol name, it's probably fine to never include it in 14861 # preloaded symbol tables. 14862 # Exclude shared library initialization/finalization symbols. 14863 extract_expsyms_cmds= 14864 # Just being paranoid about ensuring that cc_basename is set. 14865 for cc_temp in $compiler""; do 14866 case $cc_temp in 14867 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14868 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14869 \-*) ;; 14870 *) break;; 14871 esac 14872done 14873cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14874 14875 case $host_os in 14876 cygwin* | mingw* | pw32*) 14877 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14878 # When not using gcc, we currently assume that we are using 14879 # Microsoft Visual C++. 14880 if test "$GCC" != yes; then 14881 with_gnu_ld=no 14882 fi 14883 ;; 14884 interix*) 14885 # we just hope/assume this is gcc and not c89 (= MSVC++) 14886 with_gnu_ld=yes 14887 ;; 14888 openbsd*) 14889 with_gnu_ld=no 14890 ;; 14891 esac 14892 14893 ld_shlibs_F77=yes 14894 if test "$with_gnu_ld" = yes; then 14895 # If archive_cmds runs LD, not CC, wlarc should be empty 14896 wlarc='${wl}' 14897 14898 # Set some defaults for GNU ld with shared library support. These 14899 # are reset later if shared libraries are not supported. Putting them 14900 # here allows them to be overridden if necessary. 14901 runpath_var=LD_RUN_PATH 14902 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14903 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14904 # ancient GNU ld didn't support --whole-archive et. al. 14905 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14906 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14907 else 14908 whole_archive_flag_spec_F77= 14909 fi 14910 supports_anon_versioning=no 14911 case `$LD -v 2>/dev/null` in 14912 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14913 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14914 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14915 *\ 2.11.*) ;; # other 2.11 versions 14916 *) supports_anon_versioning=yes ;; 14917 esac 14918 14919 # See if GNU ld supports shared libraries. 14920 case $host_os in 14921 aix[3-9]*) 14922 # On AIX/PPC, the GNU linker is very broken 14923 if test "$host_cpu" != ia64; then 14924 ld_shlibs_F77=no 14925 cat <<EOF 1>&2 14926 14927*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14928*** to be unable to reliably create shared libraries on AIX. 14929*** Therefore, libtool is disabling shared libraries support. If you 14930*** really care for shared libraries, you may want to modify your PATH 14931*** so that a non-GNU linker is found, and then restart. 14932 14933EOF 14934 fi 14935 ;; 14936 14937 amigaos*) 14938 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)' 14939 hardcode_libdir_flag_spec_F77='-L$libdir' 14940 hardcode_minus_L_F77=yes 14941 14942 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14943 # that the semantics of dynamic libraries on AmigaOS, at least up 14944 # to version 4, is to share data among multiple programs linked 14945 # with the same dynamic library. Since this doesn't match the 14946 # behavior of shared libraries on other platforms, we can't use 14947 # them. 14948 ld_shlibs_F77=no 14949 ;; 14950 14951 beos*) 14952 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14953 allow_undefined_flag_F77=unsupported 14954 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14955 # support --undefined. This deserves some investigation. FIXME 14956 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14957 else 14958 ld_shlibs_F77=no 14959 fi 14960 ;; 14961 14962 cygwin* | mingw* | pw32*) 14963 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14964 # as there is no search path for DLLs. 14965 hardcode_libdir_flag_spec_F77='-L$libdir' 14966 allow_undefined_flag_F77=unsupported 14967 always_export_symbols_F77=no 14968 enable_shared_with_static_runtimes_F77=yes 14969 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 14970 14971 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14972 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14973 # If the export-symbols file already is a .def file (1st line 14974 # is EXPORTS), use it as is; otherwise, prepend... 14975 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14976 cp $export_symbols $output_objdir/$soname.def; 14977 else 14978 echo EXPORTS > $output_objdir/$soname.def; 14979 cat $export_symbols >> $output_objdir/$soname.def; 14980 fi~ 14981 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14982 else 14983 ld_shlibs_F77=no 14984 fi 14985 ;; 14986 14987 interix[3-9]*) 14988 hardcode_direct_F77=no 14989 hardcode_shlibpath_var_F77=no 14990 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14991 export_dynamic_flag_spec_F77='${wl}-E' 14992 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14993 # Instead, shared libraries are loaded at an image base (0x10000000 by 14994 # default) and relocated if they conflict, which is a slow very memory 14995 # consuming and fragmenting process. To avoid this, we pick a random, 14996 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14997 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14998 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' 14999 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' 15000 ;; 15001 15002 gnu* | linux* | k*bsd*-gnu) 15003 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15004 tmp_addflag= 15005 case $cc_basename,$host_cpu in 15006 pgcc*) # Portland Group C compiler 15007 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' 15008 tmp_addflag=' $pic_flag' 15009 ;; 15010 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 15011 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' 15012 tmp_addflag=' $pic_flag -Mnomain' ;; 15013 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 15014 tmp_addflag=' -i_dynamic' ;; 15015 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 15016 tmp_addflag=' -i_dynamic -nofor_main' ;; 15017 ifc* | ifort*) # Intel Fortran compiler 15018 tmp_addflag=' -nofor_main' ;; 15019 esac 15020 case `$CC -V 2>&1 | sed 5q` in 15021 *Sun\ C*) # Sun C 5.9 15022 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' 15023 tmp_sharedflag='-G' ;; 15024 *Sun\ F*) # Sun Fortran 8.3 15025 tmp_sharedflag='-G' ;; 15026 *) 15027 tmp_sharedflag='-shared' ;; 15028 esac 15029 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15030 15031 if test $supports_anon_versioning = yes; then 15032 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 15033 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15034 $echo "local: *; };" >> $output_objdir/$libname.ver~ 15035 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 15036 fi 15037 else 15038 ld_shlibs_F77=no 15039 fi 15040 ;; 15041 15042 netbsd*) 15043 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15044 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15045 wlarc= 15046 else 15047 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15048 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15049 fi 15050 ;; 15051 15052 solaris*) 15053 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 15054 ld_shlibs_F77=no 15055 cat <<EOF 1>&2 15056 15057*** Warning: The releases 2.8.* of the GNU linker cannot reliably 15058*** create shared libraries on Solaris systems. Therefore, libtool 15059*** is disabling shared libraries support. We urge you to upgrade GNU 15060*** binutils to release 2.9.1 or newer. Another option is to modify 15061*** your PATH or compiler configuration so that the native linker is 15062*** used, and then restart. 15063 15064EOF 15065 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15066 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15067 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15068 else 15069 ld_shlibs_F77=no 15070 fi 15071 ;; 15072 15073 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 15074 case `$LD -v 2>&1` in 15075 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 15076 ld_shlibs_F77=no 15077 cat <<_LT_EOF 1>&2 15078 15079*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 15080*** reliably create shared libraries on SCO systems. Therefore, libtool 15081*** is disabling shared libraries support. We urge you to upgrade GNU 15082*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 15083*** your PATH or compiler configuration so that the native linker is 15084*** used, and then restart. 15085 15086_LT_EOF 15087 ;; 15088 *) 15089 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15090 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 15091 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 15092 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 15093 else 15094 ld_shlibs_F77=no 15095 fi 15096 ;; 15097 esac 15098 ;; 15099 15100 sunos4*) 15101 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15102 wlarc= 15103 hardcode_direct_F77=yes 15104 hardcode_shlibpath_var_F77=no 15105 ;; 15106 15107 *) 15108 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15109 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15110 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15111 else 15112 ld_shlibs_F77=no 15113 fi 15114 ;; 15115 esac 15116 15117 if test "$ld_shlibs_F77" = no; then 15118 runpath_var= 15119 hardcode_libdir_flag_spec_F77= 15120 export_dynamic_flag_spec_F77= 15121 whole_archive_flag_spec_F77= 15122 fi 15123 else 15124 # PORTME fill in a description of your system's linker (not GNU ld) 15125 case $host_os in 15126 aix3*) 15127 allow_undefined_flag_F77=unsupported 15128 always_export_symbols_F77=yes 15129 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' 15130 # Note: this linker hardcodes the directories in LIBPATH if there 15131 # are no directories specified by -L. 15132 hardcode_minus_L_F77=yes 15133 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 15134 # Neither direct hardcoding nor static linking is supported with a 15135 # broken collect2. 15136 hardcode_direct_F77=unsupported 15137 fi 15138 ;; 15139 15140 aix[4-9]*) 15141 if test "$host_cpu" = ia64; then 15142 # On IA64, the linker does run time linking by default, so we don't 15143 # have to do anything special. 15144 aix_use_runtimelinking=no 15145 exp_sym_flag='-Bexport' 15146 no_entry_flag="" 15147 else 15148 # If we're using GNU nm, then we don't want the "-C" option. 15149 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15150 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 15151 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' 15152 else 15153 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' 15154 fi 15155 aix_use_runtimelinking=no 15156 15157 # Test if we are trying to use run time linking or normal 15158 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15159 # need to do runtime linking. 15160 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 15161 for ld_flag in $LDFLAGS; do 15162 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 15163 aix_use_runtimelinking=yes 15164 break 15165 fi 15166 done 15167 ;; 15168 esac 15169 15170 exp_sym_flag='-bexport' 15171 no_entry_flag='-bnoentry' 15172 fi 15173 15174 # When large executables or shared objects are built, AIX ld can 15175 # have problems creating the table of contents. If linking a library 15176 # or program results in "error TOC overflow" add -mminimal-toc to 15177 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15178 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15179 15180 archive_cmds_F77='' 15181 hardcode_direct_F77=yes 15182 hardcode_libdir_separator_F77=':' 15183 link_all_deplibs_F77=yes 15184 15185 if test "$GCC" = yes; then 15186 case $host_os in aix4.[012]|aix4.[012].*) 15187 # We only want to do this on AIX 4.2 and lower, the check 15188 # below for broken collect2 doesn't work under 4.3+ 15189 collect2name=`${CC} -print-prog-name=collect2` 15190 if test -f "$collect2name" && \ 15191 strings "$collect2name" | grep resolve_lib_name >/dev/null 15192 then 15193 # We have reworked collect2 15194 : 15195 else 15196 # We have old collect2 15197 hardcode_direct_F77=unsupported 15198 # It fails to find uninstalled libraries when the uninstalled 15199 # path is not listed in the libpath. Setting hardcode_minus_L 15200 # to unsupported forces relinking 15201 hardcode_minus_L_F77=yes 15202 hardcode_libdir_flag_spec_F77='-L$libdir' 15203 hardcode_libdir_separator_F77= 15204 fi 15205 ;; 15206 esac 15207 shared_flag='-shared' 15208 if test "$aix_use_runtimelinking" = yes; then 15209 shared_flag="$shared_flag "'${wl}-G' 15210 fi 15211 else 15212 # not using gcc 15213 if test "$host_cpu" = ia64; then 15214 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15215 # chokes on -Wl,-G. The following line is correct: 15216 shared_flag='-G' 15217 else 15218 if test "$aix_use_runtimelinking" = yes; then 15219 shared_flag='${wl}-G' 15220 else 15221 shared_flag='${wl}-bM:SRE' 15222 fi 15223 fi 15224 fi 15225 15226 # It seems that -bexpall does not export symbols beginning with 15227 # underscore (_), so it is better to generate a list of symbols to export. 15228 always_export_symbols_F77=yes 15229 if test "$aix_use_runtimelinking" = yes; then 15230 # Warning - without using the other runtime loading flags (-brtl), 15231 # -berok will link without error, but may produce a broken library. 15232 allow_undefined_flag_F77='-berok' 15233 # Determine the default libpath from the value encoded in an empty executable. 15234 cat >conftest.$ac_ext <<_ACEOF 15235 program main 15236 15237 end 15238_ACEOF 15239rm -f conftest.$ac_objext conftest$ac_exeext 15240if { (ac_try="$ac_link" 15241case "(($ac_try" in 15242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15243 *) ac_try_echo=$ac_try;; 15244esac 15245eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15246$as_echo "$ac_try_echo") >&5 15247 (eval "$ac_link") 2>conftest.er1 15248 ac_status=$? 15249 grep -v '^ *+' conftest.er1 >conftest.err 15250 rm -f conftest.er1 15251 cat conftest.err >&5 15252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15253 (exit $ac_status); } && { 15254 test -z "$ac_f77_werror_flag" || 15255 test ! -s conftest.err 15256 } && test -s conftest$ac_exeext && { 15257 test "$cross_compiling" = yes || 15258 $as_test_x conftest$ac_exeext 15259 }; then 15260 15261lt_aix_libpath_sed=' 15262 /Import File Strings/,/^$/ { 15263 /^0/ { 15264 s/^0 *\(.*\)$/\1/ 15265 p 15266 } 15267 }' 15268aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15269# Check for a 64-bit object if we didn't find anything. 15270if test -z "$aix_libpath"; then 15271 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15272fi 15273else 15274 $as_echo "$as_me: failed program was:" >&5 15275sed 's/^/| /' conftest.$ac_ext >&5 15276 15277 15278fi 15279 15280rm -rf conftest.dSYM 15281rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15282 conftest$ac_exeext conftest.$ac_ext 15283if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15284 15285 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15286 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" 15287 else 15288 if test "$host_cpu" = ia64; then 15289 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 15290 allow_undefined_flag_F77="-z nodefs" 15291 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" 15292 else 15293 # Determine the default libpath from the value encoded in an empty executable. 15294 cat >conftest.$ac_ext <<_ACEOF 15295 program main 15296 15297 end 15298_ACEOF 15299rm -f conftest.$ac_objext conftest$ac_exeext 15300if { (ac_try="$ac_link" 15301case "(($ac_try" in 15302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15303 *) ac_try_echo=$ac_try;; 15304esac 15305eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15306$as_echo "$ac_try_echo") >&5 15307 (eval "$ac_link") 2>conftest.er1 15308 ac_status=$? 15309 grep -v '^ *+' conftest.er1 >conftest.err 15310 rm -f conftest.er1 15311 cat conftest.err >&5 15312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15313 (exit $ac_status); } && { 15314 test -z "$ac_f77_werror_flag" || 15315 test ! -s conftest.err 15316 } && test -s conftest$ac_exeext && { 15317 test "$cross_compiling" = yes || 15318 $as_test_x conftest$ac_exeext 15319 }; then 15320 15321lt_aix_libpath_sed=' 15322 /Import File Strings/,/^$/ { 15323 /^0/ { 15324 s/^0 *\(.*\)$/\1/ 15325 p 15326 } 15327 }' 15328aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15329# Check for a 64-bit object if we didn't find anything. 15330if test -z "$aix_libpath"; then 15331 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15332fi 15333else 15334 $as_echo "$as_me: failed program was:" >&5 15335sed 's/^/| /' conftest.$ac_ext >&5 15336 15337 15338fi 15339 15340rm -rf conftest.dSYM 15341rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15342 conftest$ac_exeext conftest.$ac_ext 15343if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15344 15345 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15346 # Warning - without using the other run time loading flags, 15347 # -berok will link without error, but may produce a broken library. 15348 no_undefined_flag_F77=' ${wl}-bernotok' 15349 allow_undefined_flag_F77=' ${wl}-berok' 15350 # Exported symbols can be pulled into shared objects from archives 15351 whole_archive_flag_spec_F77='$convenience' 15352 archive_cmds_need_lc_F77=yes 15353 # This is similar to how AIX traditionally builds its shared libraries. 15354 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' 15355 fi 15356 fi 15357 ;; 15358 15359 amigaos*) 15360 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)' 15361 hardcode_libdir_flag_spec_F77='-L$libdir' 15362 hardcode_minus_L_F77=yes 15363 # see comment about different semantics on the GNU ld section 15364 ld_shlibs_F77=no 15365 ;; 15366 15367 bsdi[45]*) 15368 export_dynamic_flag_spec_F77=-rdynamic 15369 ;; 15370 15371 cygwin* | mingw* | pw32*) 15372 # When not using gcc, we currently assume that we are using 15373 # Microsoft Visual C++. 15374 # hardcode_libdir_flag_spec is actually meaningless, as there is 15375 # no search path for DLLs. 15376 hardcode_libdir_flag_spec_F77=' ' 15377 allow_undefined_flag_F77=unsupported 15378 # Tell ltmain to make .lib files, not .a files. 15379 libext=lib 15380 # Tell ltmain to make .dll files, not .so files. 15381 shrext_cmds=".dll" 15382 # FIXME: Setting linknames here is a bad hack. 15383 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 15384 # The linker will automatically build a .lib file if we build a DLL. 15385 old_archive_From_new_cmds_F77='true' 15386 # FIXME: Should let the user specify the lib program. 15387 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' 15388 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 15389 enable_shared_with_static_runtimes_F77=yes 15390 ;; 15391 15392 darwin* | rhapsody*) 15393 case $host_os in 15394 rhapsody* | darwin1.[012]) 15395 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 15396 ;; 15397 *) # Darwin 1.3 on 15398 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 15399 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15400 else 15401 case ${MACOSX_DEPLOYMENT_TARGET} in 15402 10.[012]) 15403 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15404 ;; 15405 10.*) 15406 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 15407 ;; 15408 esac 15409 fi 15410 ;; 15411 esac 15412 archive_cmds_need_lc_F77=no 15413 hardcode_direct_F77=no 15414 hardcode_automatic_F77=yes 15415 hardcode_shlibpath_var_F77=unsupported 15416 whole_archive_flag_spec_F77='' 15417 link_all_deplibs_F77=yes 15418 if test "$GCC" = yes ; then 15419 output_verbose_link_cmd='echo' 15420 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}" 15421 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 15422 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}" 15423 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}" 15424 else 15425 case $cc_basename in 15426 xlc*) 15427 output_verbose_link_cmd='echo' 15428 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 15429 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15430 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15431 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}' 15432 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}' 15433 ;; 15434 *) 15435 ld_shlibs_F77=no 15436 ;; 15437 esac 15438 fi 15439 ;; 15440 15441 dgux*) 15442 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15443 hardcode_libdir_flag_spec_F77='-L$libdir' 15444 hardcode_shlibpath_var_F77=no 15445 ;; 15446 15447 freebsd1*) 15448 ld_shlibs_F77=no 15449 ;; 15450 15451 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15452 # support. Future versions do this automatically, but an explicit c++rt0.o 15453 # does not break anything, and helps significantly (at the cost of a little 15454 # extra space). 15455 freebsd2.2*) 15456 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15457 hardcode_libdir_flag_spec_F77='-R$libdir' 15458 hardcode_direct_F77=yes 15459 hardcode_shlibpath_var_F77=no 15460 ;; 15461 15462 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15463 freebsd2*) 15464 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15465 hardcode_direct_F77=yes 15466 hardcode_minus_L_F77=yes 15467 hardcode_shlibpath_var_F77=no 15468 ;; 15469 15470 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15471 freebsd* | dragonfly*) 15472 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 15473 hardcode_libdir_flag_spec_F77='-R$libdir' 15474 hardcode_direct_F77=yes 15475 hardcode_shlibpath_var_F77=no 15476 ;; 15477 15478 hpux9*) 15479 if test "$GCC" = yes; then 15480 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' 15481 else 15482 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' 15483 fi 15484 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15485 hardcode_libdir_separator_F77=: 15486 hardcode_direct_F77=yes 15487 15488 # hardcode_minus_L: Not really in the search PATH, 15489 # but as the default location of the library. 15490 hardcode_minus_L_F77=yes 15491 export_dynamic_flag_spec_F77='${wl}-E' 15492 ;; 15493 15494 hpux10*) 15495 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15496 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15497 else 15498 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15499 fi 15500 if test "$with_gnu_ld" = no; then 15501 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15502 hardcode_libdir_separator_F77=: 15503 15504 hardcode_direct_F77=yes 15505 export_dynamic_flag_spec_F77='${wl}-E' 15506 15507 # hardcode_minus_L: Not really in the search PATH, 15508 # but as the default location of the library. 15509 hardcode_minus_L_F77=yes 15510 fi 15511 ;; 15512 15513 hpux11*) 15514 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15515 case $host_cpu in 15516 hppa*64*) 15517 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15518 ;; 15519 ia64*) 15520 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15521 ;; 15522 *) 15523 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15524 ;; 15525 esac 15526 else 15527 case $host_cpu in 15528 hppa*64*) 15529 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15530 ;; 15531 ia64*) 15532 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15533 ;; 15534 *) 15535 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15536 ;; 15537 esac 15538 fi 15539 if test "$with_gnu_ld" = no; then 15540 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15541 hardcode_libdir_separator_F77=: 15542 15543 case $host_cpu in 15544 hppa*64*|ia64*) 15545 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 15546 hardcode_direct_F77=no 15547 hardcode_shlibpath_var_F77=no 15548 ;; 15549 *) 15550 hardcode_direct_F77=yes 15551 export_dynamic_flag_spec_F77='${wl}-E' 15552 15553 # hardcode_minus_L: Not really in the search PATH, 15554 # but as the default location of the library. 15555 hardcode_minus_L_F77=yes 15556 ;; 15557 esac 15558 fi 15559 ;; 15560 15561 irix5* | irix6* | nonstopux*) 15562 if test "$GCC" = yes; then 15563 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' 15564 else 15565 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' 15566 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 15567 fi 15568 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15569 hardcode_libdir_separator_F77=: 15570 link_all_deplibs_F77=yes 15571 ;; 15572 15573 netbsd*) 15574 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15575 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15576 else 15577 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15578 fi 15579 hardcode_libdir_flag_spec_F77='-R$libdir' 15580 hardcode_direct_F77=yes 15581 hardcode_shlibpath_var_F77=no 15582 ;; 15583 15584 newsos6) 15585 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15586 hardcode_direct_F77=yes 15587 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15588 hardcode_libdir_separator_F77=: 15589 hardcode_shlibpath_var_F77=no 15590 ;; 15591 15592 openbsd*) 15593 if test -f /usr/libexec/ld.so; then 15594 hardcode_direct_F77=yes 15595 hardcode_shlibpath_var_F77=no 15596 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15597 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15598 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 15599 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15600 export_dynamic_flag_spec_F77='${wl}-E' 15601 else 15602 case $host_os in 15603 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15604 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15605 hardcode_libdir_flag_spec_F77='-R$libdir' 15606 ;; 15607 *) 15608 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15609 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15610 ;; 15611 esac 15612 fi 15613 else 15614 ld_shlibs_F77=no 15615 fi 15616 ;; 15617 15618 os2*) 15619 hardcode_libdir_flag_spec_F77='-L$libdir' 15620 hardcode_minus_L_F77=yes 15621 allow_undefined_flag_F77=unsupported 15622 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' 15623 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15624 ;; 15625 15626 osf3*) 15627 if test "$GCC" = yes; then 15628 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15629 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' 15630 else 15631 allow_undefined_flag_F77=' -expect_unresolved \*' 15632 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' 15633 fi 15634 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15635 hardcode_libdir_separator_F77=: 15636 ;; 15637 15638 osf4* | osf5*) # as osf3* with the addition of -msym flag 15639 if test "$GCC" = yes; then 15640 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15641 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' 15642 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15643 else 15644 allow_undefined_flag_F77=' -expect_unresolved \*' 15645 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' 15646 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~ 15647 $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' 15648 15649 # Both c and cxx compiler support -rpath directly 15650 hardcode_libdir_flag_spec_F77='-rpath $libdir' 15651 fi 15652 hardcode_libdir_separator_F77=: 15653 ;; 15654 15655 solaris*) 15656 no_undefined_flag_F77=' -z text' 15657 if test "$GCC" = yes; then 15658 wlarc='${wl}' 15659 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15660 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15661 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15662 else 15663 wlarc='' 15664 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15665 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15666 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15667 fi 15668 hardcode_libdir_flag_spec_F77='-R$libdir' 15669 hardcode_shlibpath_var_F77=no 15670 case $host_os in 15671 solaris2.[0-5] | solaris2.[0-5].*) ;; 15672 *) 15673 # The compiler driver will combine and reorder linker options, 15674 # but understands `-z linker_flag'. GCC discards it without `$wl', 15675 # but is careful enough not to reorder. 15676 # Supported since Solaris 2.6 (maybe 2.5.1?) 15677 if test "$GCC" = yes; then 15678 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 15679 else 15680 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' 15681 fi 15682 ;; 15683 esac 15684 link_all_deplibs_F77=yes 15685 ;; 15686 15687 sunos4*) 15688 if test "x$host_vendor" = xsequent; then 15689 # Use $CC to link under sequent, because it throws in some extra .o 15690 # files that make .init and .fini sections work. 15691 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15692 else 15693 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15694 fi 15695 hardcode_libdir_flag_spec_F77='-L$libdir' 15696 hardcode_direct_F77=yes 15697 hardcode_minus_L_F77=yes 15698 hardcode_shlibpath_var_F77=no 15699 ;; 15700 15701 sysv4) 15702 case $host_vendor in 15703 sni) 15704 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15705 hardcode_direct_F77=yes # is this really true??? 15706 ;; 15707 siemens) 15708 ## LD is ld it makes a PLAMLIB 15709 ## CC just makes a GrossModule. 15710 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15711 reload_cmds_F77='$CC -r -o $output$reload_objs' 15712 hardcode_direct_F77=no 15713 ;; 15714 motorola) 15715 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15716 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 15717 ;; 15718 esac 15719 runpath_var='LD_RUN_PATH' 15720 hardcode_shlibpath_var_F77=no 15721 ;; 15722 15723 sysv4.3*) 15724 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15725 hardcode_shlibpath_var_F77=no 15726 export_dynamic_flag_spec_F77='-Bexport' 15727 ;; 15728 15729 sysv4*MP*) 15730 if test -d /usr/nec; then 15731 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15732 hardcode_shlibpath_var_F77=no 15733 runpath_var=LD_RUN_PATH 15734 hardcode_runpath_var=yes 15735 ld_shlibs_F77=yes 15736 fi 15737 ;; 15738 15739 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15740 no_undefined_flag_F77='${wl}-z,text' 15741 archive_cmds_need_lc_F77=no 15742 hardcode_shlibpath_var_F77=no 15743 runpath_var='LD_RUN_PATH' 15744 15745 if test "$GCC" = yes; then 15746 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15747 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15748 else 15749 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15750 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15751 fi 15752 ;; 15753 15754 sysv5* | sco3.2v5* | sco5v6*) 15755 # Note: We can NOT use -z defs as we might desire, because we do not 15756 # link with -lc, and that would cause any symbols used from libc to 15757 # always be unresolved, which means just about no library would 15758 # ever link correctly. If we're not using GNU ld we use -z text 15759 # though, which does catch some bad symbols but isn't as heavy-handed 15760 # as -z defs. 15761 no_undefined_flag_F77='${wl}-z,text' 15762 allow_undefined_flag_F77='${wl}-z,nodefs' 15763 archive_cmds_need_lc_F77=no 15764 hardcode_shlibpath_var_F77=no 15765 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 15766 hardcode_libdir_separator_F77=':' 15767 link_all_deplibs_F77=yes 15768 export_dynamic_flag_spec_F77='${wl}-Bexport' 15769 runpath_var='LD_RUN_PATH' 15770 15771 if test "$GCC" = yes; then 15772 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15773 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15774 else 15775 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15776 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15777 fi 15778 ;; 15779 15780 uts4*) 15781 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15782 hardcode_libdir_flag_spec_F77='-L$libdir' 15783 hardcode_shlibpath_var_F77=no 15784 ;; 15785 15786 *) 15787 ld_shlibs_F77=no 15788 ;; 15789 esac 15790 fi 15791 15792{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 15793$as_echo "$ld_shlibs_F77" >&6; } 15794test "$ld_shlibs_F77" = no && can_build_shared=no 15795 15796# 15797# Do we need to explicitly link libc? 15798# 15799case "x$archive_cmds_need_lc_F77" in 15800x|xyes) 15801 # Assume -lc should be added 15802 archive_cmds_need_lc_F77=yes 15803 15804 if test "$enable_shared" = yes && test "$GCC" = yes; then 15805 case $archive_cmds_F77 in 15806 *'~'*) 15807 # FIXME: we may have to deal with multi-command sequences. 15808 ;; 15809 '$CC '*) 15810 # Test whether the compiler implicitly links with -lc since on some 15811 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15812 # to ld, don't add -lc before -lgcc. 15813 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15814$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15815 $rm conftest* 15816 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15817 15818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15819 (eval $ac_compile) 2>&5 15820 ac_status=$? 15821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15822 (exit $ac_status); } 2>conftest.err; then 15823 soname=conftest 15824 lib=conftest 15825 libobjs=conftest.$ac_objext 15826 deplibs= 15827 wl=$lt_prog_compiler_wl_F77 15828 pic_flag=$lt_prog_compiler_pic_F77 15829 compiler_flags=-v 15830 linker_flags=-v 15831 verstring= 15832 output_objdir=. 15833 libname=conftest 15834 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15835 allow_undefined_flag_F77= 15836 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15837 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15838 ac_status=$? 15839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15840 (exit $ac_status); } 15841 then 15842 archive_cmds_need_lc_F77=no 15843 else 15844 archive_cmds_need_lc_F77=yes 15845 fi 15846 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15847 else 15848 cat conftest.err 1>&5 15849 fi 15850 $rm conftest* 15851 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15852$as_echo "$archive_cmds_need_lc_F77" >&6; } 15853 ;; 15854 esac 15855 fi 15856 ;; 15857esac 15858 15859{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15860$as_echo_n "checking dynamic linker characteristics... " >&6; } 15861library_names_spec= 15862libname_spec='lib$name' 15863soname_spec= 15864shrext_cmds=".so" 15865postinstall_cmds= 15866postuninstall_cmds= 15867finish_cmds= 15868finish_eval= 15869shlibpath_var= 15870shlibpath_overrides_runpath=unknown 15871version_type=none 15872dynamic_linker="$host_os ld.so" 15873sys_lib_dlsearch_path_spec="/lib /usr/lib" 15874 15875need_lib_prefix=unknown 15876hardcode_into_libs=no 15877 15878# when you set need_version to no, make sure it does not cause -set_version 15879# flags to be left without arguments 15880need_version=unknown 15881 15882case $host_os in 15883aix3*) 15884 version_type=linux 15885 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15886 shlibpath_var=LIBPATH 15887 15888 # AIX 3 has no versioning support, so we append a major version to the name. 15889 soname_spec='${libname}${release}${shared_ext}$major' 15890 ;; 15891 15892aix[4-9]*) 15893 version_type=linux 15894 need_lib_prefix=no 15895 need_version=no 15896 hardcode_into_libs=yes 15897 if test "$host_cpu" = ia64; then 15898 # AIX 5 supports IA64 15899 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15900 shlibpath_var=LD_LIBRARY_PATH 15901 else 15902 # With GCC up to 2.95.x, collect2 would create an import file 15903 # for dependence libraries. The import file would start with 15904 # the line `#! .'. This would cause the generated library to 15905 # depend on `.', always an invalid library. This was fixed in 15906 # development snapshots of GCC prior to 3.0. 15907 case $host_os in 15908 aix4 | aix4.[01] | aix4.[01].*) 15909 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15910 echo ' yes ' 15911 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15912 : 15913 else 15914 can_build_shared=no 15915 fi 15916 ;; 15917 esac 15918 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15919 # soname into executable. Probably we can add versioning support to 15920 # collect2, so additional links can be useful in future. 15921 if test "$aix_use_runtimelinking" = yes; then 15922 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15923 # instead of lib<name>.a to let people know that these are not 15924 # typical AIX shared libraries. 15925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15926 else 15927 # We preserve .a as extension for shared libraries through AIX4.2 15928 # and later when we are not doing run time linking. 15929 library_names_spec='${libname}${release}.a $libname.a' 15930 soname_spec='${libname}${release}${shared_ext}$major' 15931 fi 15932 shlibpath_var=LIBPATH 15933 fi 15934 ;; 15935 15936amigaos*) 15937 library_names_spec='$libname.ixlibrary $libname.a' 15938 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15939 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' 15940 ;; 15941 15942beos*) 15943 library_names_spec='${libname}${shared_ext}' 15944 dynamic_linker="$host_os ld.so" 15945 shlibpath_var=LIBRARY_PATH 15946 ;; 15947 15948bsdi[45]*) 15949 version_type=linux 15950 need_version=no 15951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15952 soname_spec='${libname}${release}${shared_ext}$major' 15953 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15954 shlibpath_var=LD_LIBRARY_PATH 15955 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15956 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15957 # the default ld.so.conf also contains /usr/contrib/lib and 15958 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15959 # libtool to hard-code these into programs 15960 ;; 15961 15962cygwin* | mingw* | pw32*) 15963 version_type=windows 15964 shrext_cmds=".dll" 15965 need_version=no 15966 need_lib_prefix=no 15967 15968 case $GCC,$host_os in 15969 yes,cygwin* | yes,mingw* | yes,pw32*) 15970 library_names_spec='$libname.dll.a' 15971 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15972 postinstall_cmds='base_file=`basename \${file}`~ 15973 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15974 dldir=$destdir/`dirname \$dlpath`~ 15975 test -d \$dldir || mkdir -p \$dldir~ 15976 $install_prog $dir/$dlname \$dldir/$dlname~ 15977 chmod a+x \$dldir/$dlname' 15978 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15979 dlpath=$dir/\$dldll~ 15980 $rm \$dlpath' 15981 shlibpath_overrides_runpath=yes 15982 15983 case $host_os in 15984 cygwin*) 15985 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15986 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15987 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15988 ;; 15989 mingw*) 15990 # MinGW DLLs use traditional 'lib' prefix 15991 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15992 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15993 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15994 # It is most probably a Windows format PATH printed by 15995 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15996 # path with ; separators, and with drive letters. We can handle the 15997 # drive letters (cygwin fileutils understands them), so leave them, 15998 # especially as we might pass files found there to a mingw objdump, 15999 # which wouldn't understand a cygwinified path. Ahh. 16000 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16001 else 16002 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16003 fi 16004 ;; 16005 pw32*) 16006 # pw32 DLLs use 'pw' prefix rather than 'lib' 16007 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16008 ;; 16009 esac 16010 ;; 16011 16012 *) 16013 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 16014 ;; 16015 esac 16016 dynamic_linker='Win32 ld.exe' 16017 # FIXME: first we should search . and the directory the executable is in 16018 shlibpath_var=PATH 16019 ;; 16020 16021darwin* | rhapsody*) 16022 dynamic_linker="$host_os dyld" 16023 version_type=darwin 16024 need_lib_prefix=no 16025 need_version=no 16026 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 16027 soname_spec='${libname}${release}${major}$shared_ext' 16028 shlibpath_overrides_runpath=yes 16029 shlibpath_var=DYLD_LIBRARY_PATH 16030 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16031 16032 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16033 ;; 16034 16035dgux*) 16036 version_type=linux 16037 need_lib_prefix=no 16038 need_version=no 16039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 16040 soname_spec='${libname}${release}${shared_ext}$major' 16041 shlibpath_var=LD_LIBRARY_PATH 16042 ;; 16043 16044freebsd1*) 16045 dynamic_linker=no 16046 ;; 16047 16048freebsd* | dragonfly*) 16049 # DragonFly does not have aout. When/if they implement a new 16050 # versioning mechanism, adjust this. 16051 if test -x /usr/bin/objformat; then 16052 objformat=`/usr/bin/objformat` 16053 else 16054 case $host_os in 16055 freebsd[123]*) objformat=aout ;; 16056 *) objformat=elf ;; 16057 esac 16058 fi 16059 version_type=freebsd-$objformat 16060 case $version_type in 16061 freebsd-elf*) 16062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16063 need_version=no 16064 need_lib_prefix=no 16065 ;; 16066 freebsd-*) 16067 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 16068 need_version=yes 16069 ;; 16070 esac 16071 shlibpath_var=LD_LIBRARY_PATH 16072 case $host_os in 16073 freebsd2*) 16074 shlibpath_overrides_runpath=yes 16075 ;; 16076 freebsd3.[01]* | freebsdelf3.[01]*) 16077 shlibpath_overrides_runpath=yes 16078 hardcode_into_libs=yes 16079 ;; 16080 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16081 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16082 shlibpath_overrides_runpath=no 16083 hardcode_into_libs=yes 16084 ;; 16085 *) # from 4.6 on, and DragonFly 16086 shlibpath_overrides_runpath=yes 16087 hardcode_into_libs=yes 16088 ;; 16089 esac 16090 ;; 16091 16092gnu*) 16093 version_type=linux 16094 need_lib_prefix=no 16095 need_version=no 16096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16097 soname_spec='${libname}${release}${shared_ext}$major' 16098 shlibpath_var=LD_LIBRARY_PATH 16099 hardcode_into_libs=yes 16100 ;; 16101 16102hpux9* | hpux10* | hpux11*) 16103 # Give a soname corresponding to the major version so that dld.sl refuses to 16104 # link against other versions. 16105 version_type=sunos 16106 need_lib_prefix=no 16107 need_version=no 16108 case $host_cpu in 16109 ia64*) 16110 shrext_cmds='.so' 16111 hardcode_into_libs=yes 16112 dynamic_linker="$host_os dld.so" 16113 shlibpath_var=LD_LIBRARY_PATH 16114 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16116 soname_spec='${libname}${release}${shared_ext}$major' 16117 if test "X$HPUX_IA64_MODE" = X32; then 16118 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16119 else 16120 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16121 fi 16122 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16123 ;; 16124 hppa*64*) 16125 shrext_cmds='.sl' 16126 hardcode_into_libs=yes 16127 dynamic_linker="$host_os dld.sl" 16128 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16129 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16131 soname_spec='${libname}${release}${shared_ext}$major' 16132 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16133 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16134 ;; 16135 *) 16136 shrext_cmds='.sl' 16137 dynamic_linker="$host_os dld.sl" 16138 shlibpath_var=SHLIB_PATH 16139 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16141 soname_spec='${libname}${release}${shared_ext}$major' 16142 ;; 16143 esac 16144 # HP-UX runs *really* slowly unless shared libraries are mode 555. 16145 postinstall_cmds='chmod 555 $lib' 16146 ;; 16147 16148interix[3-9]*) 16149 version_type=linux 16150 need_lib_prefix=no 16151 need_version=no 16152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16153 soname_spec='${libname}${release}${shared_ext}$major' 16154 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16155 shlibpath_var=LD_LIBRARY_PATH 16156 shlibpath_overrides_runpath=no 16157 hardcode_into_libs=yes 16158 ;; 16159 16160irix5* | irix6* | nonstopux*) 16161 case $host_os in 16162 nonstopux*) version_type=nonstopux ;; 16163 *) 16164 if test "$lt_cv_prog_gnu_ld" = yes; then 16165 version_type=linux 16166 else 16167 version_type=irix 16168 fi ;; 16169 esac 16170 need_lib_prefix=no 16171 need_version=no 16172 soname_spec='${libname}${release}${shared_ext}$major' 16173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16174 case $host_os in 16175 irix5* | nonstopux*) 16176 libsuff= shlibsuff= 16177 ;; 16178 *) 16179 case $LD in # libtool.m4 will add one of these switches to LD 16180 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16181 libsuff= shlibsuff= libmagic=32-bit;; 16182 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16183 libsuff=32 shlibsuff=N32 libmagic=N32;; 16184 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16185 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16186 *) libsuff= shlibsuff= libmagic=never-match;; 16187 esac 16188 ;; 16189 esac 16190 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16191 shlibpath_overrides_runpath=no 16192 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16193 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16194 hardcode_into_libs=yes 16195 ;; 16196 16197# No shared lib support for Linux oldld, aout, or coff. 16198linux*oldld* | linux*aout* | linux*coff*) 16199 dynamic_linker=no 16200 ;; 16201 16202# This must be Linux ELF. 16203linux* | k*bsd*-gnu) 16204 version_type=linux 16205 need_lib_prefix=no 16206 need_version=no 16207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16208 soname_spec='${libname}${release}${shared_ext}$major' 16209 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16210 shlibpath_var=LD_LIBRARY_PATH 16211 shlibpath_overrides_runpath=no 16212 # This implies no fast_install, which is unacceptable. 16213 # Some rework will be needed to allow for fast_install 16214 # before this can be enabled. 16215 hardcode_into_libs=yes 16216 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16217 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16218 16219 # Append ld.so.conf contents to the search path 16220 if test -f /etc/ld.so.conf; then 16221 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' ' '` 16222 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 16223 fi 16224 16225 # We used to test for /lib/ld.so.1 and disable shared libraries on 16226 # powerpc, because MkLinux only supported shared libraries with the 16227 # GNU dynamic linker. Since this was broken with cross compilers, 16228 # most powerpc-linux boxes support dynamic linking these days and 16229 # people can always --disable-shared, the test was removed, and we 16230 # assume the GNU/Linux dynamic linker is in use. 16231 dynamic_linker='GNU/Linux ld.so' 16232 ;; 16233 16234netbsd*) 16235 version_type=sunos 16236 need_lib_prefix=no 16237 need_version=no 16238 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16240 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16241 dynamic_linker='NetBSD (a.out) ld.so' 16242 else 16243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16244 soname_spec='${libname}${release}${shared_ext}$major' 16245 dynamic_linker='NetBSD ld.elf_so' 16246 fi 16247 shlibpath_var=LD_LIBRARY_PATH 16248 shlibpath_overrides_runpath=yes 16249 hardcode_into_libs=yes 16250 ;; 16251 16252newsos6) 16253 version_type=linux 16254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16255 shlibpath_var=LD_LIBRARY_PATH 16256 shlibpath_overrides_runpath=yes 16257 ;; 16258 16259nto-qnx*) 16260 version_type=linux 16261 need_lib_prefix=no 16262 need_version=no 16263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16264 soname_spec='${libname}${release}${shared_ext}$major' 16265 shlibpath_var=LD_LIBRARY_PATH 16266 shlibpath_overrides_runpath=yes 16267 ;; 16268 16269openbsd*) 16270 version_type=sunos 16271 sys_lib_dlsearch_path_spec="/usr/lib" 16272 need_lib_prefix=no 16273 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16274 case $host_os in 16275 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16276 *) need_version=no ;; 16277 esac 16278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16279 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16280 shlibpath_var=LD_LIBRARY_PATH 16281 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16282 case $host_os in 16283 openbsd2.[89] | openbsd2.[89].*) 16284 shlibpath_overrides_runpath=no 16285 ;; 16286 *) 16287 shlibpath_overrides_runpath=yes 16288 ;; 16289 esac 16290 else 16291 shlibpath_overrides_runpath=yes 16292 fi 16293 ;; 16294 16295os2*) 16296 libname_spec='$name' 16297 shrext_cmds=".dll" 16298 need_lib_prefix=no 16299 library_names_spec='$libname${shared_ext} $libname.a' 16300 dynamic_linker='OS/2 ld.exe' 16301 shlibpath_var=LIBPATH 16302 ;; 16303 16304osf3* | osf4* | osf5*) 16305 version_type=osf 16306 need_lib_prefix=no 16307 need_version=no 16308 soname_spec='${libname}${release}${shared_ext}$major' 16309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16310 shlibpath_var=LD_LIBRARY_PATH 16311 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16312 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16313 ;; 16314 16315rdos*) 16316 dynamic_linker=no 16317 ;; 16318 16319solaris*) 16320 version_type=linux 16321 need_lib_prefix=no 16322 need_version=no 16323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16324 soname_spec='${libname}${release}${shared_ext}$major' 16325 shlibpath_var=LD_LIBRARY_PATH 16326 shlibpath_overrides_runpath=yes 16327 hardcode_into_libs=yes 16328 # ldd complains unless libraries are executable 16329 postinstall_cmds='chmod +x $lib' 16330 ;; 16331 16332sunos4*) 16333 version_type=sunos 16334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16335 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16336 shlibpath_var=LD_LIBRARY_PATH 16337 shlibpath_overrides_runpath=yes 16338 if test "$with_gnu_ld" = yes; then 16339 need_lib_prefix=no 16340 fi 16341 need_version=yes 16342 ;; 16343 16344sysv4 | sysv4.3*) 16345 version_type=linux 16346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16347 soname_spec='${libname}${release}${shared_ext}$major' 16348 shlibpath_var=LD_LIBRARY_PATH 16349 case $host_vendor in 16350 sni) 16351 shlibpath_overrides_runpath=no 16352 need_lib_prefix=no 16353 export_dynamic_flag_spec='${wl}-Blargedynsym' 16354 runpath_var=LD_RUN_PATH 16355 ;; 16356 siemens) 16357 need_lib_prefix=no 16358 ;; 16359 motorola) 16360 need_lib_prefix=no 16361 need_version=no 16362 shlibpath_overrides_runpath=no 16363 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16364 ;; 16365 esac 16366 ;; 16367 16368sysv4*MP*) 16369 if test -d /usr/nec ;then 16370 version_type=linux 16371 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16372 soname_spec='$libname${shared_ext}.$major' 16373 shlibpath_var=LD_LIBRARY_PATH 16374 fi 16375 ;; 16376 16377sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16378 version_type=freebsd-elf 16379 need_lib_prefix=no 16380 need_version=no 16381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16382 soname_spec='${libname}${release}${shared_ext}$major' 16383 shlibpath_var=LD_LIBRARY_PATH 16384 hardcode_into_libs=yes 16385 if test "$with_gnu_ld" = yes; then 16386 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16387 shlibpath_overrides_runpath=no 16388 else 16389 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16390 shlibpath_overrides_runpath=yes 16391 case $host_os in 16392 sco3.2v5*) 16393 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16394 ;; 16395 esac 16396 fi 16397 sys_lib_dlsearch_path_spec='/usr/lib' 16398 ;; 16399 16400uts4*) 16401 version_type=linux 16402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16403 soname_spec='${libname}${release}${shared_ext}$major' 16404 shlibpath_var=LD_LIBRARY_PATH 16405 ;; 16406 16407*) 16408 dynamic_linker=no 16409 ;; 16410esac 16411{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 16412$as_echo "$dynamic_linker" >&6; } 16413test "$dynamic_linker" = no && can_build_shared=no 16414 16415if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 16416 $as_echo_n "(cached) " >&6 16417else 16418 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 16419fi 16420 16421sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 16422if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 16423 $as_echo_n "(cached) " >&6 16424else 16425 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 16426fi 16427 16428sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 16429 16430variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16431if test "$GCC" = yes; then 16432 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16433fi 16434 16435{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 16436$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 16437hardcode_action_F77= 16438if test -n "$hardcode_libdir_flag_spec_F77" || \ 16439 test -n "$runpath_var_F77" || \ 16440 test "X$hardcode_automatic_F77" = "Xyes" ; then 16441 16442 # We can hardcode non-existant directories. 16443 if test "$hardcode_direct_F77" != no && 16444 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16445 # have to relink, otherwise we might link with an installed library 16446 # when we should be linking with a yet-to-be-installed one 16447 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 16448 test "$hardcode_minus_L_F77" != no; then 16449 # Linking always hardcodes the temporary library directory. 16450 hardcode_action_F77=relink 16451 else 16452 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16453 hardcode_action_F77=immediate 16454 fi 16455else 16456 # We cannot hardcode anything, or else we can only hardcode existing 16457 # directories. 16458 hardcode_action_F77=unsupported 16459fi 16460{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 16461$as_echo "$hardcode_action_F77" >&6; } 16462 16463if test "$hardcode_action_F77" = relink; then 16464 # Fast installation is not supported 16465 enable_fast_install=no 16466elif test "$shlibpath_overrides_runpath" = yes || 16467 test "$enable_shared" = no; then 16468 # Fast installation is not necessary 16469 enable_fast_install=needless 16470fi 16471 16472 16473# The else clause should only fire when bootstrapping the 16474# libtool distribution, otherwise you forgot to ship ltmain.sh 16475# with your package, and you will get complaints that there are 16476# no rules to generate ltmain.sh. 16477if test -f "$ltmain"; then 16478 # See if we are running on zsh, and set the options which allow our commands through 16479 # without removal of \ escapes. 16480 if test -n "${ZSH_VERSION+set}" ; then 16481 setopt NO_GLOB_SUBST 16482 fi 16483 # Now quote all the things that may contain metacharacters while being 16484 # careful not to overquote the AC_SUBSTed values. We take copies of the 16485 # variables and quote the copies for generation of the libtool script. 16486 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 16487 SED SHELL STRIP \ 16488 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 16489 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 16490 deplibs_check_method reload_flag reload_cmds need_locks \ 16491 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 16492 lt_cv_sys_global_symbol_to_c_name_address \ 16493 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 16494 old_postinstall_cmds old_postuninstall_cmds \ 16495 compiler_F77 \ 16496 CC_F77 \ 16497 LD_F77 \ 16498 lt_prog_compiler_wl_F77 \ 16499 lt_prog_compiler_pic_F77 \ 16500 lt_prog_compiler_static_F77 \ 16501 lt_prog_compiler_no_builtin_flag_F77 \ 16502 export_dynamic_flag_spec_F77 \ 16503 thread_safe_flag_spec_F77 \ 16504 whole_archive_flag_spec_F77 \ 16505 enable_shared_with_static_runtimes_F77 \ 16506 old_archive_cmds_F77 \ 16507 old_archive_from_new_cmds_F77 \ 16508 predep_objects_F77 \ 16509 postdep_objects_F77 \ 16510 predeps_F77 \ 16511 postdeps_F77 \ 16512 compiler_lib_search_path_F77 \ 16513 compiler_lib_search_dirs_F77 \ 16514 archive_cmds_F77 \ 16515 archive_expsym_cmds_F77 \ 16516 postinstall_cmds_F77 \ 16517 postuninstall_cmds_F77 \ 16518 old_archive_from_expsyms_cmds_F77 \ 16519 allow_undefined_flag_F77 \ 16520 no_undefined_flag_F77 \ 16521 export_symbols_cmds_F77 \ 16522 hardcode_libdir_flag_spec_F77 \ 16523 hardcode_libdir_flag_spec_ld_F77 \ 16524 hardcode_libdir_separator_F77 \ 16525 hardcode_automatic_F77 \ 16526 module_cmds_F77 \ 16527 module_expsym_cmds_F77 \ 16528 lt_cv_prog_compiler_c_o_F77 \ 16529 fix_srcfile_path_F77 \ 16530 exclude_expsyms_F77 \ 16531 include_expsyms_F77; do 16532 16533 case $var in 16534 old_archive_cmds_F77 | \ 16535 old_archive_from_new_cmds_F77 | \ 16536 archive_cmds_F77 | \ 16537 archive_expsym_cmds_F77 | \ 16538 module_cmds_F77 | \ 16539 module_expsym_cmds_F77 | \ 16540 old_archive_from_expsyms_cmds_F77 | \ 16541 export_symbols_cmds_F77 | \ 16542 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 16543 postinstall_cmds | postuninstall_cmds | \ 16544 old_postinstall_cmds | old_postuninstall_cmds | \ 16545 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 16546 # Double-quote double-evaled strings. 16547 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 16548 ;; 16549 *) 16550 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 16551 ;; 16552 esac 16553 done 16554 16555 case $lt_echo in 16556 *'\$0 --fallback-echo"') 16557 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 16558 ;; 16559 esac 16560 16561cfgfile="$ofile" 16562 16563 cat <<__EOF__ >> "$cfgfile" 16564# ### BEGIN LIBTOOL TAG CONFIG: $tagname 16565 16566# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16567 16568# Shell to use when invoking shell scripts. 16569SHELL=$lt_SHELL 16570 16571# Whether or not to build shared libraries. 16572build_libtool_libs=$enable_shared 16573 16574# Whether or not to build static libraries. 16575build_old_libs=$enable_static 16576 16577# Whether or not to add -lc for building shared libraries. 16578build_libtool_need_lc=$archive_cmds_need_lc_F77 16579 16580# Whether or not to disallow shared libs when runtime libs are static 16581allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 16582 16583# Whether or not to optimize for fast installation. 16584fast_install=$enable_fast_install 16585 16586# The host system. 16587host_alias=$host_alias 16588host=$host 16589host_os=$host_os 16590 16591# The build system. 16592build_alias=$build_alias 16593build=$build 16594build_os=$build_os 16595 16596# An echo program that does not interpret backslashes. 16597echo=$lt_echo 16598 16599# The archiver. 16600AR=$lt_AR 16601AR_FLAGS=$lt_AR_FLAGS 16602 16603# A C compiler. 16604LTCC=$lt_LTCC 16605 16606# LTCC compiler flags. 16607LTCFLAGS=$lt_LTCFLAGS 16608 16609# A language-specific compiler. 16610CC=$lt_compiler_F77 16611 16612# Is the compiler the GNU C compiler? 16613with_gcc=$GCC_F77 16614 16615# An ERE matcher. 16616EGREP=$lt_EGREP 16617 16618# The linker used to build libraries. 16619LD=$lt_LD_F77 16620 16621# Whether we need hard or soft links. 16622LN_S=$lt_LN_S 16623 16624# A BSD-compatible nm program. 16625NM=$lt_NM 16626 16627# A symbol stripping program 16628STRIP=$lt_STRIP 16629 16630# Used to examine libraries when file_magic_cmd begins "file" 16631MAGIC_CMD=$MAGIC_CMD 16632 16633# Used on cygwin: DLL creation program. 16634DLLTOOL="$DLLTOOL" 16635 16636# Used on cygwin: object dumper. 16637OBJDUMP="$OBJDUMP" 16638 16639# Used on cygwin: assembler. 16640AS="$AS" 16641 16642# The name of the directory that contains temporary libtool files. 16643objdir=$objdir 16644 16645# How to create reloadable object files. 16646reload_flag=$lt_reload_flag 16647reload_cmds=$lt_reload_cmds 16648 16649# How to pass a linker flag through the compiler. 16650wl=$lt_lt_prog_compiler_wl_F77 16651 16652# Object file suffix (normally "o"). 16653objext="$ac_objext" 16654 16655# Old archive suffix (normally "a"). 16656libext="$libext" 16657 16658# Shared library suffix (normally ".so"). 16659shrext_cmds='$shrext_cmds' 16660 16661# Executable file suffix (normally ""). 16662exeext="$exeext" 16663 16664# Additional compiler flags for building library objects. 16665pic_flag=$lt_lt_prog_compiler_pic_F77 16666pic_mode=$pic_mode 16667 16668# What is the maximum length of a command? 16669max_cmd_len=$lt_cv_sys_max_cmd_len 16670 16671# Does compiler simultaneously support -c and -o options? 16672compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 16673 16674# Must we lock files when doing compilation? 16675need_locks=$lt_need_locks 16676 16677# Do we need the lib prefix for modules? 16678need_lib_prefix=$need_lib_prefix 16679 16680# Do we need a version for libraries? 16681need_version=$need_version 16682 16683# Whether dlopen is supported. 16684dlopen_support=$enable_dlopen 16685 16686# Whether dlopen of programs is supported. 16687dlopen_self=$enable_dlopen_self 16688 16689# Whether dlopen of statically linked programs is supported. 16690dlopen_self_static=$enable_dlopen_self_static 16691 16692# Compiler flag to prevent dynamic linking. 16693link_static_flag=$lt_lt_prog_compiler_static_F77 16694 16695# Compiler flag to turn off builtin functions. 16696no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 16697 16698# Compiler flag to allow reflexive dlopens. 16699export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 16700 16701# Compiler flag to generate shared objects directly from archives. 16702whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 16703 16704# Compiler flag to generate thread-safe objects. 16705thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 16706 16707# Library versioning type. 16708version_type=$version_type 16709 16710# Format of library name prefix. 16711libname_spec=$lt_libname_spec 16712 16713# List of archive names. First name is the real one, the rest are links. 16714# The last name is the one that the linker finds with -lNAME. 16715library_names_spec=$lt_library_names_spec 16716 16717# The coded name of the library, if different from the real name. 16718soname_spec=$lt_soname_spec 16719 16720# Commands used to build and install an old-style archive. 16721RANLIB=$lt_RANLIB 16722old_archive_cmds=$lt_old_archive_cmds_F77 16723old_postinstall_cmds=$lt_old_postinstall_cmds 16724old_postuninstall_cmds=$lt_old_postuninstall_cmds 16725 16726# Create an old-style archive from a shared archive. 16727old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 16728 16729# Create a temporary old-style archive to link instead of a shared archive. 16730old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 16731 16732# Commands used to build and install a shared archive. 16733archive_cmds=$lt_archive_cmds_F77 16734archive_expsym_cmds=$lt_archive_expsym_cmds_F77 16735postinstall_cmds=$lt_postinstall_cmds 16736postuninstall_cmds=$lt_postuninstall_cmds 16737 16738# Commands used to build a loadable module (assumed same as above if empty) 16739module_cmds=$lt_module_cmds_F77 16740module_expsym_cmds=$lt_module_expsym_cmds_F77 16741 16742# Commands to strip libraries. 16743old_striplib=$lt_old_striplib 16744striplib=$lt_striplib 16745 16746# Dependencies to place before the objects being linked to create a 16747# shared library. 16748predep_objects=$lt_predep_objects_F77 16749 16750# Dependencies to place after the objects being linked to create a 16751# shared library. 16752postdep_objects=$lt_postdep_objects_F77 16753 16754# Dependencies to place before the objects being linked to create a 16755# shared library. 16756predeps=$lt_predeps_F77 16757 16758# Dependencies to place after the objects being linked to create a 16759# shared library. 16760postdeps=$lt_postdeps_F77 16761 16762# The directories searched by this compiler when creating a shared 16763# library 16764compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77 16765 16766# The library search path used internally by the compiler when linking 16767# a shared library. 16768compiler_lib_search_path=$lt_compiler_lib_search_path_F77 16769 16770# Method to check whether dependent libraries are shared objects. 16771deplibs_check_method=$lt_deplibs_check_method 16772 16773# Command to use when deplibs_check_method == file_magic. 16774file_magic_cmd=$lt_file_magic_cmd 16775 16776# Flag that allows shared libraries with undefined symbols to be built. 16777allow_undefined_flag=$lt_allow_undefined_flag_F77 16778 16779# Flag that forces no undefined symbols. 16780no_undefined_flag=$lt_no_undefined_flag_F77 16781 16782# Commands used to finish a libtool library installation in a directory. 16783finish_cmds=$lt_finish_cmds 16784 16785# Same as above, but a single script fragment to be evaled but not shown. 16786finish_eval=$lt_finish_eval 16787 16788# Take the output of nm and produce a listing of raw symbols and C names. 16789global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16790 16791# Transform the output of nm in a proper C declaration 16792global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16793 16794# Transform the output of nm in a C name address pair 16795global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16796 16797# This is the shared library runtime path variable. 16798runpath_var=$runpath_var 16799 16800# This is the shared library path variable. 16801shlibpath_var=$shlibpath_var 16802 16803# Is shlibpath searched before the hard-coded library search path? 16804shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16805 16806# How to hardcode a shared library path into an executable. 16807hardcode_action=$hardcode_action_F77 16808 16809# Whether we should hardcode library paths into libraries. 16810hardcode_into_libs=$hardcode_into_libs 16811 16812# Flag to hardcode \$libdir into a binary during linking. 16813# This must work even if \$libdir does not exist. 16814hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16815 16816# If ld is used when linking, flag to hardcode \$libdir into 16817# a binary during linking. This must work even if \$libdir does 16818# not exist. 16819hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16820 16821# Whether we need a single -rpath flag with a separated argument. 16822hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16823 16824# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16825# resulting binary. 16826hardcode_direct=$hardcode_direct_F77 16827 16828# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16829# resulting binary. 16830hardcode_minus_L=$hardcode_minus_L_F77 16831 16832# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16833# the resulting binary. 16834hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16835 16836# Set to yes if building a shared library automatically hardcodes DIR into the library 16837# and all subsequent libraries and executables linked against it. 16838hardcode_automatic=$hardcode_automatic_F77 16839 16840# Variables whose values should be saved in libtool wrapper scripts and 16841# restored at relink time. 16842variables_saved_for_relink="$variables_saved_for_relink" 16843 16844# Whether libtool must link a program against all its dependency libraries. 16845link_all_deplibs=$link_all_deplibs_F77 16846 16847# Compile-time system search path for libraries 16848sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16849 16850# Run-time system search path for libraries 16851sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16852 16853# Fix the shell variable \$srcfile for the compiler. 16854fix_srcfile_path=$lt_fix_srcfile_path 16855 16856# Set to yes if exported symbols are required. 16857always_export_symbols=$always_export_symbols_F77 16858 16859# The commands to list exported symbols. 16860export_symbols_cmds=$lt_export_symbols_cmds_F77 16861 16862# The commands to extract the exported symbol list from a shared archive. 16863extract_expsyms_cmds=$lt_extract_expsyms_cmds 16864 16865# Symbols that should not be listed in the preloaded symbols. 16866exclude_expsyms=$lt_exclude_expsyms_F77 16867 16868# Symbols that must always be exported. 16869include_expsyms=$lt_include_expsyms_F77 16870 16871# ### END LIBTOOL TAG CONFIG: $tagname 16872 16873__EOF__ 16874 16875 16876else 16877 # If there is no Makefile yet, we rely on a make rule to execute 16878 # `config.status --recheck' to rerun these tests and create the 16879 # libtool script then. 16880 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16881 if test -f "$ltmain_in"; then 16882 test -f Makefile && make "$ltmain" 16883 fi 16884fi 16885 16886 16887ac_ext=c 16888ac_cpp='$CPP $CPPFLAGS' 16889ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16890ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16891ac_compiler_gnu=$ac_cv_c_compiler_gnu 16892 16893CC="$lt_save_CC" 16894 16895 else 16896 tagname="" 16897 fi 16898 ;; 16899 16900 GCJ) 16901 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16902 16903 16904# Source file extension for Java test sources. 16905ac_ext=java 16906 16907# Object file extension for compiled Java test sources. 16908objext=o 16909objext_GCJ=$objext 16910 16911# Code to be used in simple compile tests 16912lt_simple_compile_test_code="class foo {}" 16913 16914# Code to be used in simple link tests 16915lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }' 16916 16917# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16918 16919# If no C compiler was specified, use CC. 16920LTCC=${LTCC-"$CC"} 16921 16922# If no C compiler flags were specified, use CFLAGS. 16923LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16924 16925# Allow CC to be a program name with arguments. 16926compiler=$CC 16927 16928 16929# save warnings/boilerplate of simple test code 16930ac_outfile=conftest.$ac_objext 16931echo "$lt_simple_compile_test_code" >conftest.$ac_ext 16932eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16933_lt_compiler_boilerplate=`cat conftest.err` 16934$rm conftest* 16935 16936ac_outfile=conftest.$ac_objext 16937echo "$lt_simple_link_test_code" >conftest.$ac_ext 16938eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16939_lt_linker_boilerplate=`cat conftest.err` 16940$rm -r conftest* 16941 16942 16943# Allow CC to be a program name with arguments. 16944lt_save_CC="$CC" 16945CC=${GCJ-"gcj"} 16946compiler=$CC 16947compiler_GCJ=$CC 16948for cc_temp in $compiler""; do 16949 case $cc_temp in 16950 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16951 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16952 \-*) ;; 16953 *) break;; 16954 esac 16955done 16956cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16957 16958 16959# GCJ did not exist at the time GCC didn't implicitly link libc in. 16960archive_cmds_need_lc_GCJ=no 16961 16962old_archive_cmds_GCJ=$old_archive_cmds 16963 16964 16965lt_prog_compiler_no_builtin_flag_GCJ= 16966 16967if test "$GCC" = yes; then 16968 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16969 16970 16971{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16972$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 16973if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16974 $as_echo_n "(cached) " >&6 16975else 16976 lt_cv_prog_compiler_rtti_exceptions=no 16977 ac_outfile=conftest.$ac_objext 16978 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16979 lt_compiler_flag="-fno-rtti -fno-exceptions" 16980 # Insert the option either (1) after the last *FLAGS variable, or 16981 # (2) before a word containing "conftest.", or (3) at the end. 16982 # Note that $ac_compile itself does not contain backslashes and begins 16983 # with a dollar sign (not a hyphen), so the echo should work correctly. 16984 # The option is referenced via a variable to avoid confusing sed. 16985 lt_compile=`echo "$ac_compile" | $SED \ 16986 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16987 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16988 -e 's:$: $lt_compiler_flag:'` 16989 (eval echo "\"\$as_me:16989: $lt_compile\"" >&5) 16990 (eval "$lt_compile" 2>conftest.err) 16991 ac_status=$? 16992 cat conftest.err >&5 16993 echo "$as_me:16993: \$? = $ac_status" >&5 16994 if (exit $ac_status) && test -s "$ac_outfile"; then 16995 # The compiler can only warn and ignore the option if not recognized 16996 # So say no if there are warnings other than the usual output. 16997 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16998 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16999 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17000 lt_cv_prog_compiler_rtti_exceptions=yes 17001 fi 17002 fi 17003 $rm conftest* 17004 17005fi 17006{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 17007$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 17008 17009if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 17010 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 17011else 17012 : 17013fi 17014 17015fi 17016 17017lt_prog_compiler_wl_GCJ= 17018lt_prog_compiler_pic_GCJ= 17019lt_prog_compiler_static_GCJ= 17020 17021{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 17022$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 17023 17024 if test "$GCC" = yes; then 17025 lt_prog_compiler_wl_GCJ='-Wl,' 17026 lt_prog_compiler_static_GCJ='-static' 17027 17028 case $host_os in 17029 aix*) 17030 # All AIX code is PIC. 17031 if test "$host_cpu" = ia64; then 17032 # AIX 5 now supports IA64 processor 17033 lt_prog_compiler_static_GCJ='-Bstatic' 17034 fi 17035 ;; 17036 17037 amigaos*) 17038 # FIXME: we need at least 68020 code to build shared libraries, but 17039 # adding the `-m68020' flag to GCC prevents building anything better, 17040 # like `-m68040'. 17041 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 17042 ;; 17043 17044 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 17045 # PIC is the default for these OSes. 17046 ;; 17047 17048 mingw* | cygwin* | pw32* | os2*) 17049 # This hack is so that the source file can tell whether it is being 17050 # built for inclusion in a dll (and should export symbols for example). 17051 # Although the cygwin gcc ignores -fPIC, still need this for old-style 17052 # (--disable-auto-import) libraries 17053 17054 ;; 17055 17056 darwin* | rhapsody*) 17057 # PIC is the default on this platform 17058 # Common symbols not allowed in MH_DYLIB files 17059 lt_prog_compiler_pic_GCJ='-fno-common' 17060 ;; 17061 17062 interix[3-9]*) 17063 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 17064 # Instead, we relocate shared libraries at runtime. 17065 ;; 17066 17067 msdosdjgpp*) 17068 # Just because we use GCC doesn't mean we suddenly get shared libraries 17069 # on systems that don't support them. 17070 lt_prog_compiler_can_build_shared_GCJ=no 17071 enable_shared=no 17072 ;; 17073 17074 sysv4*MP*) 17075 if test -d /usr/nec; then 17076 lt_prog_compiler_pic_GCJ=-Kconform_pic 17077 fi 17078 ;; 17079 17080 hpux*) 17081 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 17082 # not for PA HP-UX. 17083 case $host_cpu in 17084 hppa*64*|ia64*) 17085 # +Z the default 17086 ;; 17087 *) 17088 lt_prog_compiler_pic_GCJ='-fPIC' 17089 ;; 17090 esac 17091 ;; 17092 17093 *) 17094 lt_prog_compiler_pic_GCJ='-fPIC' 17095 ;; 17096 esac 17097 else 17098 # PORTME Check for flag to pass linker flags through the system compiler. 17099 case $host_os in 17100 aix*) 17101 lt_prog_compiler_wl_GCJ='-Wl,' 17102 if test "$host_cpu" = ia64; then 17103 # AIX 5 now supports IA64 processor 17104 lt_prog_compiler_static_GCJ='-Bstatic' 17105 else 17106 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 17107 fi 17108 ;; 17109 darwin*) 17110 # PIC is the default on this platform 17111 # Common symbols not allowed in MH_DYLIB files 17112 case $cc_basename in 17113 xlc*) 17114 lt_prog_compiler_pic_GCJ='-qnocommon' 17115 lt_prog_compiler_wl_GCJ='-Wl,' 17116 ;; 17117 esac 17118 ;; 17119 17120 mingw* | cygwin* | pw32* | os2*) 17121 # This hack is so that the source file can tell whether it is being 17122 # built for inclusion in a dll (and should export symbols for example). 17123 17124 ;; 17125 17126 hpux9* | hpux10* | hpux11*) 17127 lt_prog_compiler_wl_GCJ='-Wl,' 17128 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 17129 # not for PA HP-UX. 17130 case $host_cpu in 17131 hppa*64*|ia64*) 17132 # +Z the default 17133 ;; 17134 *) 17135 lt_prog_compiler_pic_GCJ='+Z' 17136 ;; 17137 esac 17138 # Is there a better lt_prog_compiler_static that works with the bundled CC? 17139 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 17140 ;; 17141 17142 irix5* | irix6* | nonstopux*) 17143 lt_prog_compiler_wl_GCJ='-Wl,' 17144 # PIC (with -KPIC) is the default. 17145 lt_prog_compiler_static_GCJ='-non_shared' 17146 ;; 17147 17148 newsos6) 17149 lt_prog_compiler_pic_GCJ='-KPIC' 17150 lt_prog_compiler_static_GCJ='-Bstatic' 17151 ;; 17152 17153 linux* | k*bsd*-gnu) 17154 case $cc_basename in 17155 icc* | ecc*) 17156 lt_prog_compiler_wl_GCJ='-Wl,' 17157 lt_prog_compiler_pic_GCJ='-KPIC' 17158 lt_prog_compiler_static_GCJ='-static' 17159 ;; 17160 pgcc* | pgf77* | pgf90* | pgf95*) 17161 # Portland Group compilers (*not* the Pentium gcc compiler, 17162 # which looks to be a dead project) 17163 lt_prog_compiler_wl_GCJ='-Wl,' 17164 lt_prog_compiler_pic_GCJ='-fpic' 17165 lt_prog_compiler_static_GCJ='-Bstatic' 17166 ;; 17167 ccc*) 17168 lt_prog_compiler_wl_GCJ='-Wl,' 17169 # All Alpha code is PIC. 17170 lt_prog_compiler_static_GCJ='-non_shared' 17171 ;; 17172 *) 17173 case `$CC -V 2>&1 | sed 5q` in 17174 *Sun\ C*) 17175 # Sun C 5.9 17176 lt_prog_compiler_pic_GCJ='-KPIC' 17177 lt_prog_compiler_static_GCJ='-Bstatic' 17178 lt_prog_compiler_wl_GCJ='-Wl,' 17179 ;; 17180 *Sun\ F*) 17181 # Sun Fortran 8.3 passes all unrecognized flags to the linker 17182 lt_prog_compiler_pic_GCJ='-KPIC' 17183 lt_prog_compiler_static_GCJ='-Bstatic' 17184 lt_prog_compiler_wl_GCJ='' 17185 ;; 17186 esac 17187 ;; 17188 esac 17189 ;; 17190 17191 osf3* | osf4* | osf5*) 17192 lt_prog_compiler_wl_GCJ='-Wl,' 17193 # All OSF/1 code is PIC. 17194 lt_prog_compiler_static_GCJ='-non_shared' 17195 ;; 17196 17197 rdos*) 17198 lt_prog_compiler_static_GCJ='-non_shared' 17199 ;; 17200 17201 solaris*) 17202 lt_prog_compiler_pic_GCJ='-KPIC' 17203 lt_prog_compiler_static_GCJ='-Bstatic' 17204 case $cc_basename in 17205 f77* | f90* | f95*) 17206 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 17207 *) 17208 lt_prog_compiler_wl_GCJ='-Wl,';; 17209 esac 17210 ;; 17211 17212 sunos4*) 17213 lt_prog_compiler_wl_GCJ='-Qoption ld ' 17214 lt_prog_compiler_pic_GCJ='-PIC' 17215 lt_prog_compiler_static_GCJ='-Bstatic' 17216 ;; 17217 17218 sysv4 | sysv4.2uw2* | sysv4.3*) 17219 lt_prog_compiler_wl_GCJ='-Wl,' 17220 lt_prog_compiler_pic_GCJ='-KPIC' 17221 lt_prog_compiler_static_GCJ='-Bstatic' 17222 ;; 17223 17224 sysv4*MP*) 17225 if test -d /usr/nec ;then 17226 lt_prog_compiler_pic_GCJ='-Kconform_pic' 17227 lt_prog_compiler_static_GCJ='-Bstatic' 17228 fi 17229 ;; 17230 17231 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 17232 lt_prog_compiler_wl_GCJ='-Wl,' 17233 lt_prog_compiler_pic_GCJ='-KPIC' 17234 lt_prog_compiler_static_GCJ='-Bstatic' 17235 ;; 17236 17237 unicos*) 17238 lt_prog_compiler_wl_GCJ='-Wl,' 17239 lt_prog_compiler_can_build_shared_GCJ=no 17240 ;; 17241 17242 uts4*) 17243 lt_prog_compiler_pic_GCJ='-pic' 17244 lt_prog_compiler_static_GCJ='-Bstatic' 17245 ;; 17246 17247 *) 17248 lt_prog_compiler_can_build_shared_GCJ=no 17249 ;; 17250 esac 17251 fi 17252 17253{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 17254$as_echo "$lt_prog_compiler_pic_GCJ" >&6; } 17255 17256# 17257# Check to make sure the PIC flag actually works. 17258# 17259if test -n "$lt_prog_compiler_pic_GCJ"; then 17260 17261{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 17262$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; } 17263if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then 17264 $as_echo_n "(cached) " >&6 17265else 17266 lt_cv_prog_compiler_pic_works_GCJ=no 17267 ac_outfile=conftest.$ac_objext 17268 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17269 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 17270 # Insert the option either (1) after the last *FLAGS variable, or 17271 # (2) before a word containing "conftest.", or (3) at the end. 17272 # Note that $ac_compile itself does not contain backslashes and begins 17273 # with a dollar sign (not a hyphen), so the echo should work correctly. 17274 # The option is referenced via a variable to avoid confusing sed. 17275 lt_compile=`echo "$ac_compile" | $SED \ 17276 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17277 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17278 -e 's:$: $lt_compiler_flag:'` 17279 (eval echo "\"\$as_me:17279: $lt_compile\"" >&5) 17280 (eval "$lt_compile" 2>conftest.err) 17281 ac_status=$? 17282 cat conftest.err >&5 17283 echo "$as_me:17283: \$? = $ac_status" >&5 17284 if (exit $ac_status) && test -s "$ac_outfile"; then 17285 # The compiler can only warn and ignore the option if not recognized 17286 # So say no if there are warnings other than the usual output. 17287 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 17288 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17289 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17290 lt_cv_prog_compiler_pic_works_GCJ=yes 17291 fi 17292 fi 17293 $rm conftest* 17294 17295fi 17296{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5 17297$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; } 17298 17299if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then 17300 case $lt_prog_compiler_pic_GCJ in 17301 "" | " "*) ;; 17302 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 17303 esac 17304else 17305 lt_prog_compiler_pic_GCJ= 17306 lt_prog_compiler_can_build_shared_GCJ=no 17307fi 17308 17309fi 17310case $host_os in 17311 # For platforms which do not support PIC, -DPIC is meaningless: 17312 *djgpp*) 17313 lt_prog_compiler_pic_GCJ= 17314 ;; 17315 *) 17316 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 17317 ;; 17318esac 17319 17320# 17321# Check to make sure the static flag actually works. 17322# 17323wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 17324{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 17325$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 17326if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then 17327 $as_echo_n "(cached) " >&6 17328else 17329 lt_cv_prog_compiler_static_works_GCJ=no 17330 save_LDFLAGS="$LDFLAGS" 17331 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17332 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17333 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17334 # The linker can only warn and ignore the option if not recognized 17335 # So say no if there are warnings 17336 if test -s conftest.err; then 17337 # Append any errors to the config.log. 17338 cat conftest.err 1>&5 17339 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 17340 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17341 if diff conftest.exp conftest.er2 >/dev/null; then 17342 lt_cv_prog_compiler_static_works_GCJ=yes 17343 fi 17344 else 17345 lt_cv_prog_compiler_static_works_GCJ=yes 17346 fi 17347 fi 17348 $rm -r conftest* 17349 LDFLAGS="$save_LDFLAGS" 17350 17351fi 17352{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5 17353$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; } 17354 17355if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then 17356 : 17357else 17358 lt_prog_compiler_static_GCJ= 17359fi 17360 17361 17362{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 17363$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 17364if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 17365 $as_echo_n "(cached) " >&6 17366else 17367 lt_cv_prog_compiler_c_o_GCJ=no 17368 $rm -r conftest 2>/dev/null 17369 mkdir conftest 17370 cd conftest 17371 mkdir out 17372 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17373 17374 lt_compiler_flag="-o out/conftest2.$ac_objext" 17375 # Insert the option either (1) after the last *FLAGS variable, or 17376 # (2) before a word containing "conftest.", or (3) at the end. 17377 # Note that $ac_compile itself does not contain backslashes and begins 17378 # with a dollar sign (not a hyphen), so the echo should work correctly. 17379 lt_compile=`echo "$ac_compile" | $SED \ 17380 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17381 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17382 -e 's:$: $lt_compiler_flag:'` 17383 (eval echo "\"\$as_me:17383: $lt_compile\"" >&5) 17384 (eval "$lt_compile" 2>out/conftest.err) 17385 ac_status=$? 17386 cat out/conftest.err >&5 17387 echo "$as_me:17387: \$? = $ac_status" >&5 17388 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17389 then 17390 # The compiler can only warn and ignore the option if not recognized 17391 # So say no if there are warnings 17392 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 17393 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17394 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17395 lt_cv_prog_compiler_c_o_GCJ=yes 17396 fi 17397 fi 17398 chmod u+w . 2>&5 17399 $rm conftest* 17400 # SGI C++ compiler will create directory out/ii_files/ for 17401 # template instantiation 17402 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 17403 $rm out/* && rmdir out 17404 cd .. 17405 rmdir conftest 17406 $rm conftest* 17407 17408fi 17409{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 17410$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; } 17411 17412 17413hard_links="nottested" 17414if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 17415 # do not overwrite the value of need_locks provided by the user 17416 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 17417$as_echo_n "checking if we can lock with hard links... " >&6; } 17418 hard_links=yes 17419 $rm conftest* 17420 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17421 touch conftest.a 17422 ln conftest.a conftest.b 2>&5 || hard_links=no 17423 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17424 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 17425$as_echo "$hard_links" >&6; } 17426 if test "$hard_links" = no; then 17427 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 17428$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 17429 need_locks=warn 17430 fi 17431else 17432 need_locks=no 17433fi 17434 17435{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17436$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 17437 17438 runpath_var= 17439 allow_undefined_flag_GCJ= 17440 enable_shared_with_static_runtimes_GCJ=no 17441 archive_cmds_GCJ= 17442 archive_expsym_cmds_GCJ= 17443 old_archive_From_new_cmds_GCJ= 17444 old_archive_from_expsyms_cmds_GCJ= 17445 export_dynamic_flag_spec_GCJ= 17446 whole_archive_flag_spec_GCJ= 17447 thread_safe_flag_spec_GCJ= 17448 hardcode_libdir_flag_spec_GCJ= 17449 hardcode_libdir_flag_spec_ld_GCJ= 17450 hardcode_libdir_separator_GCJ= 17451 hardcode_direct_GCJ=no 17452 hardcode_minus_L_GCJ=no 17453 hardcode_shlibpath_var_GCJ=unsupported 17454 link_all_deplibs_GCJ=unknown 17455 hardcode_automatic_GCJ=no 17456 module_cmds_GCJ= 17457 module_expsym_cmds_GCJ= 17458 always_export_symbols_GCJ=no 17459 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17460 # include_expsyms should be a list of space-separated symbols to be *always* 17461 # included in the symbol list 17462 include_expsyms_GCJ= 17463 # exclude_expsyms can be an extended regexp of symbols to exclude 17464 # it will be wrapped by ` (' and `)$', so one must not match beginning or 17465 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 17466 # as well as any symbol that contains `d'. 17467 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 17468 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 17469 # platforms (ab)use it in PIC code, but their linkers get confused if 17470 # the symbol is explicitly referenced. Since portable code cannot 17471 # rely on this symbol name, it's probably fine to never include it in 17472 # preloaded symbol tables. 17473 # Exclude shared library initialization/finalization symbols. 17474 extract_expsyms_cmds= 17475 # Just being paranoid about ensuring that cc_basename is set. 17476 for cc_temp in $compiler""; do 17477 case $cc_temp in 17478 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17479 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17480 \-*) ;; 17481 *) break;; 17482 esac 17483done 17484cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17485 17486 case $host_os in 17487 cygwin* | mingw* | pw32*) 17488 # FIXME: the MSVC++ port hasn't been tested in a loooong time 17489 # When not using gcc, we currently assume that we are using 17490 # Microsoft Visual C++. 17491 if test "$GCC" != yes; then 17492 with_gnu_ld=no 17493 fi 17494 ;; 17495 interix*) 17496 # we just hope/assume this is gcc and not c89 (= MSVC++) 17497 with_gnu_ld=yes 17498 ;; 17499 openbsd*) 17500 with_gnu_ld=no 17501 ;; 17502 esac 17503 17504 ld_shlibs_GCJ=yes 17505 if test "$with_gnu_ld" = yes; then 17506 # If archive_cmds runs LD, not CC, wlarc should be empty 17507 wlarc='${wl}' 17508 17509 # Set some defaults for GNU ld with shared library support. These 17510 # are reset later if shared libraries are not supported. Putting them 17511 # here allows them to be overridden if necessary. 17512 runpath_var=LD_RUN_PATH 17513 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 17514 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 17515 # ancient GNU ld didn't support --whole-archive et. al. 17516 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 17517 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 17518 else 17519 whole_archive_flag_spec_GCJ= 17520 fi 17521 supports_anon_versioning=no 17522 case `$LD -v 2>/dev/null` in 17523 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 17524 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 17525 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 17526 *\ 2.11.*) ;; # other 2.11 versions 17527 *) supports_anon_versioning=yes ;; 17528 esac 17529 17530 # See if GNU ld supports shared libraries. 17531 case $host_os in 17532 aix[3-9]*) 17533 # On AIX/PPC, the GNU linker is very broken 17534 if test "$host_cpu" != ia64; then 17535 ld_shlibs_GCJ=no 17536 cat <<EOF 1>&2 17537 17538*** Warning: the GNU linker, at least up to release 2.9.1, is reported 17539*** to be unable to reliably create shared libraries on AIX. 17540*** Therefore, libtool is disabling shared libraries support. If you 17541*** really care for shared libraries, you may want to modify your PATH 17542*** so that a non-GNU linker is found, and then restart. 17543 17544EOF 17545 fi 17546 ;; 17547 17548 amigaos*) 17549 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)' 17550 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17551 hardcode_minus_L_GCJ=yes 17552 17553 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 17554 # that the semantics of dynamic libraries on AmigaOS, at least up 17555 # to version 4, is to share data among multiple programs linked 17556 # with the same dynamic library. Since this doesn't match the 17557 # behavior of shared libraries on other platforms, we can't use 17558 # them. 17559 ld_shlibs_GCJ=no 17560 ;; 17561 17562 beos*) 17563 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17564 allow_undefined_flag_GCJ=unsupported 17565 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 17566 # support --undefined. This deserves some investigation. FIXME 17567 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17568 else 17569 ld_shlibs_GCJ=no 17570 fi 17571 ;; 17572 17573 cygwin* | mingw* | pw32*) 17574 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 17575 # as there is no search path for DLLs. 17576 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17577 allow_undefined_flag_GCJ=unsupported 17578 always_export_symbols_GCJ=no 17579 enable_shared_with_static_runtimes_GCJ=yes 17580 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 17581 17582 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 17583 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17584 # If the export-symbols file already is a .def file (1st line 17585 # is EXPORTS), use it as is; otherwise, prepend... 17586 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 17587 cp $export_symbols $output_objdir/$soname.def; 17588 else 17589 echo EXPORTS > $output_objdir/$soname.def; 17590 cat $export_symbols >> $output_objdir/$soname.def; 17591 fi~ 17592 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17593 else 17594 ld_shlibs_GCJ=no 17595 fi 17596 ;; 17597 17598 interix[3-9]*) 17599 hardcode_direct_GCJ=no 17600 hardcode_shlibpath_var_GCJ=no 17601 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17602 export_dynamic_flag_spec_GCJ='${wl}-E' 17603 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 17604 # Instead, shared libraries are loaded at an image base (0x10000000 by 17605 # default) and relocated if they conflict, which is a slow very memory 17606 # consuming and fragmenting process. To avoid this, we pick a random, 17607 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 17608 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 17609 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' 17610 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' 17611 ;; 17612 17613 gnu* | linux* | k*bsd*-gnu) 17614 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17615 tmp_addflag= 17616 case $cc_basename,$host_cpu in 17617 pgcc*) # Portland Group C compiler 17618 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' 17619 tmp_addflag=' $pic_flag' 17620 ;; 17621 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 17622 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' 17623 tmp_addflag=' $pic_flag -Mnomain' ;; 17624 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 17625 tmp_addflag=' -i_dynamic' ;; 17626 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 17627 tmp_addflag=' -i_dynamic -nofor_main' ;; 17628 ifc* | ifort*) # Intel Fortran compiler 17629 tmp_addflag=' -nofor_main' ;; 17630 esac 17631 case `$CC -V 2>&1 | sed 5q` in 17632 *Sun\ C*) # Sun C 5.9 17633 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' 17634 tmp_sharedflag='-G' ;; 17635 *Sun\ F*) # Sun Fortran 8.3 17636 tmp_sharedflag='-G' ;; 17637 *) 17638 tmp_sharedflag='-shared' ;; 17639 esac 17640 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17641 17642 if test $supports_anon_versioning = yes; then 17643 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 17644 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17645 $echo "local: *; };" >> $output_objdir/$libname.ver~ 17646 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17647 fi 17648 else 17649 ld_shlibs_GCJ=no 17650 fi 17651 ;; 17652 17653 netbsd*) 17654 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17655 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17656 wlarc= 17657 else 17658 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17659 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17660 fi 17661 ;; 17662 17663 solaris*) 17664 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 17665 ld_shlibs_GCJ=no 17666 cat <<EOF 1>&2 17667 17668*** Warning: The releases 2.8.* of the GNU linker cannot reliably 17669*** create shared libraries on Solaris systems. Therefore, libtool 17670*** is disabling shared libraries support. We urge you to upgrade GNU 17671*** binutils to release 2.9.1 or newer. Another option is to modify 17672*** your PATH or compiler configuration so that the native linker is 17673*** used, and then restart. 17674 17675EOF 17676 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17677 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17678 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17679 else 17680 ld_shlibs_GCJ=no 17681 fi 17682 ;; 17683 17684 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 17685 case `$LD -v 2>&1` in 17686 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 17687 ld_shlibs_GCJ=no 17688 cat <<_LT_EOF 1>&2 17689 17690*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 17691*** reliably create shared libraries on SCO systems. Therefore, libtool 17692*** is disabling shared libraries support. We urge you to upgrade GNU 17693*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 17694*** your PATH or compiler configuration so that the native linker is 17695*** used, and then restart. 17696 17697_LT_EOF 17698 ;; 17699 *) 17700 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17701 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 17702 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 17703 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 17704 else 17705 ld_shlibs_GCJ=no 17706 fi 17707 ;; 17708 esac 17709 ;; 17710 17711 sunos4*) 17712 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17713 wlarc= 17714 hardcode_direct_GCJ=yes 17715 hardcode_shlibpath_var_GCJ=no 17716 ;; 17717 17718 *) 17719 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17720 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17721 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17722 else 17723 ld_shlibs_GCJ=no 17724 fi 17725 ;; 17726 esac 17727 17728 if test "$ld_shlibs_GCJ" = no; then 17729 runpath_var= 17730 hardcode_libdir_flag_spec_GCJ= 17731 export_dynamic_flag_spec_GCJ= 17732 whole_archive_flag_spec_GCJ= 17733 fi 17734 else 17735 # PORTME fill in a description of your system's linker (not GNU ld) 17736 case $host_os in 17737 aix3*) 17738 allow_undefined_flag_GCJ=unsupported 17739 always_export_symbols_GCJ=yes 17740 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' 17741 # Note: this linker hardcodes the directories in LIBPATH if there 17742 # are no directories specified by -L. 17743 hardcode_minus_L_GCJ=yes 17744 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 17745 # Neither direct hardcoding nor static linking is supported with a 17746 # broken collect2. 17747 hardcode_direct_GCJ=unsupported 17748 fi 17749 ;; 17750 17751 aix[4-9]*) 17752 if test "$host_cpu" = ia64; then 17753 # On IA64, the linker does run time linking by default, so we don't 17754 # have to do anything special. 17755 aix_use_runtimelinking=no 17756 exp_sym_flag='-Bexport' 17757 no_entry_flag="" 17758 else 17759 # If we're using GNU nm, then we don't want the "-C" option. 17760 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17761 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 17762 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' 17763 else 17764 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' 17765 fi 17766 aix_use_runtimelinking=no 17767 17768 # Test if we are trying to use run time linking or normal 17769 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17770 # need to do runtime linking. 17771 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 17772 for ld_flag in $LDFLAGS; do 17773 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17774 aix_use_runtimelinking=yes 17775 break 17776 fi 17777 done 17778 ;; 17779 esac 17780 17781 exp_sym_flag='-bexport' 17782 no_entry_flag='-bnoentry' 17783 fi 17784 17785 # When large executables or shared objects are built, AIX ld can 17786 # have problems creating the table of contents. If linking a library 17787 # or program results in "error TOC overflow" add -mminimal-toc to 17788 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17789 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17790 17791 archive_cmds_GCJ='' 17792 hardcode_direct_GCJ=yes 17793 hardcode_libdir_separator_GCJ=':' 17794 link_all_deplibs_GCJ=yes 17795 17796 if test "$GCC" = yes; then 17797 case $host_os in aix4.[012]|aix4.[012].*) 17798 # We only want to do this on AIX 4.2 and lower, the check 17799 # below for broken collect2 doesn't work under 4.3+ 17800 collect2name=`${CC} -print-prog-name=collect2` 17801 if test -f "$collect2name" && \ 17802 strings "$collect2name" | grep resolve_lib_name >/dev/null 17803 then 17804 # We have reworked collect2 17805 : 17806 else 17807 # We have old collect2 17808 hardcode_direct_GCJ=unsupported 17809 # It fails to find uninstalled libraries when the uninstalled 17810 # path is not listed in the libpath. Setting hardcode_minus_L 17811 # to unsupported forces relinking 17812 hardcode_minus_L_GCJ=yes 17813 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17814 hardcode_libdir_separator_GCJ= 17815 fi 17816 ;; 17817 esac 17818 shared_flag='-shared' 17819 if test "$aix_use_runtimelinking" = yes; then 17820 shared_flag="$shared_flag "'${wl}-G' 17821 fi 17822 else 17823 # not using gcc 17824 if test "$host_cpu" = ia64; then 17825 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17826 # chokes on -Wl,-G. The following line is correct: 17827 shared_flag='-G' 17828 else 17829 if test "$aix_use_runtimelinking" = yes; then 17830 shared_flag='${wl}-G' 17831 else 17832 shared_flag='${wl}-bM:SRE' 17833 fi 17834 fi 17835 fi 17836 17837 # It seems that -bexpall does not export symbols beginning with 17838 # underscore (_), so it is better to generate a list of symbols to export. 17839 always_export_symbols_GCJ=yes 17840 if test "$aix_use_runtimelinking" = yes; then 17841 # Warning - without using the other runtime loading flags (-brtl), 17842 # -berok will link without error, but may produce a broken library. 17843 allow_undefined_flag_GCJ='-berok' 17844 # Determine the default libpath from the value encoded in an empty executable. 17845 cat >conftest.$ac_ext <<_ACEOF 17846/* confdefs.h. */ 17847_ACEOF 17848cat confdefs.h >>conftest.$ac_ext 17849cat >>conftest.$ac_ext <<_ACEOF 17850/* end confdefs.h. */ 17851 17852int 17853main () 17854{ 17855 17856 ; 17857 return 0; 17858} 17859_ACEOF 17860rm -f conftest.$ac_objext conftest$ac_exeext 17861if { (ac_try="$ac_link" 17862case "(($ac_try" in 17863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17864 *) ac_try_echo=$ac_try;; 17865esac 17866eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17867$as_echo "$ac_try_echo") >&5 17868 (eval "$ac_link") 2>conftest.er1 17869 ac_status=$? 17870 grep -v '^ *+' conftest.er1 >conftest.err 17871 rm -f conftest.er1 17872 cat conftest.err >&5 17873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17874 (exit $ac_status); } && { 17875 test -z "$ac_c_werror_flag" || 17876 test ! -s conftest.err 17877 } && test -s conftest$ac_exeext && { 17878 test "$cross_compiling" = yes || 17879 $as_test_x conftest$ac_exeext 17880 }; then 17881 17882lt_aix_libpath_sed=' 17883 /Import File Strings/,/^$/ { 17884 /^0/ { 17885 s/^0 *\(.*\)$/\1/ 17886 p 17887 } 17888 }' 17889aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17890# Check for a 64-bit object if we didn't find anything. 17891if test -z "$aix_libpath"; then 17892 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17893fi 17894else 17895 $as_echo "$as_me: failed program was:" >&5 17896sed 's/^/| /' conftest.$ac_ext >&5 17897 17898 17899fi 17900 17901rm -rf conftest.dSYM 17902rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17903 conftest$ac_exeext conftest.$ac_ext 17904if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17905 17906 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17907 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" 17908 else 17909 if test "$host_cpu" = ia64; then 17910 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17911 allow_undefined_flag_GCJ="-z nodefs" 17912 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" 17913 else 17914 # Determine the default libpath from the value encoded in an empty executable. 17915 cat >conftest.$ac_ext <<_ACEOF 17916/* confdefs.h. */ 17917_ACEOF 17918cat confdefs.h >>conftest.$ac_ext 17919cat >>conftest.$ac_ext <<_ACEOF 17920/* end confdefs.h. */ 17921 17922int 17923main () 17924{ 17925 17926 ; 17927 return 0; 17928} 17929_ACEOF 17930rm -f conftest.$ac_objext conftest$ac_exeext 17931if { (ac_try="$ac_link" 17932case "(($ac_try" in 17933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17934 *) ac_try_echo=$ac_try;; 17935esac 17936eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17937$as_echo "$ac_try_echo") >&5 17938 (eval "$ac_link") 2>conftest.er1 17939 ac_status=$? 17940 grep -v '^ *+' conftest.er1 >conftest.err 17941 rm -f conftest.er1 17942 cat conftest.err >&5 17943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17944 (exit $ac_status); } && { 17945 test -z "$ac_c_werror_flag" || 17946 test ! -s conftest.err 17947 } && test -s conftest$ac_exeext && { 17948 test "$cross_compiling" = yes || 17949 $as_test_x conftest$ac_exeext 17950 }; then 17951 17952lt_aix_libpath_sed=' 17953 /Import File Strings/,/^$/ { 17954 /^0/ { 17955 s/^0 *\(.*\)$/\1/ 17956 p 17957 } 17958 }' 17959aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17960# Check for a 64-bit object if we didn't find anything. 17961if test -z "$aix_libpath"; then 17962 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17963fi 17964else 17965 $as_echo "$as_me: failed program was:" >&5 17966sed 's/^/| /' conftest.$ac_ext >&5 17967 17968 17969fi 17970 17971rm -rf conftest.dSYM 17972rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17973 conftest$ac_exeext conftest.$ac_ext 17974if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17975 17976 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17977 # Warning - without using the other run time loading flags, 17978 # -berok will link without error, but may produce a broken library. 17979 no_undefined_flag_GCJ=' ${wl}-bernotok' 17980 allow_undefined_flag_GCJ=' ${wl}-berok' 17981 # Exported symbols can be pulled into shared objects from archives 17982 whole_archive_flag_spec_GCJ='$convenience' 17983 archive_cmds_need_lc_GCJ=yes 17984 # This is similar to how AIX traditionally builds its shared libraries. 17985 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' 17986 fi 17987 fi 17988 ;; 17989 17990 amigaos*) 17991 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)' 17992 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17993 hardcode_minus_L_GCJ=yes 17994 # see comment about different semantics on the GNU ld section 17995 ld_shlibs_GCJ=no 17996 ;; 17997 17998 bsdi[45]*) 17999 export_dynamic_flag_spec_GCJ=-rdynamic 18000 ;; 18001 18002 cygwin* | mingw* | pw32*) 18003 # When not using gcc, we currently assume that we are using 18004 # Microsoft Visual C++. 18005 # hardcode_libdir_flag_spec is actually meaningless, as there is 18006 # no search path for DLLs. 18007 hardcode_libdir_flag_spec_GCJ=' ' 18008 allow_undefined_flag_GCJ=unsupported 18009 # Tell ltmain to make .lib files, not .a files. 18010 libext=lib 18011 # Tell ltmain to make .dll files, not .so files. 18012 shrext_cmds=".dll" 18013 # FIXME: Setting linknames here is a bad hack. 18014 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 18015 # The linker will automatically build a .lib file if we build a DLL. 18016 old_archive_From_new_cmds_GCJ='true' 18017 # FIXME: Should let the user specify the lib program. 18018 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' 18019 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 18020 enable_shared_with_static_runtimes_GCJ=yes 18021 ;; 18022 18023 darwin* | rhapsody*) 18024 case $host_os in 18025 rhapsody* | darwin1.[012]) 18026 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 18027 ;; 18028 *) # Darwin 1.3 on 18029 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 18030 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 18031 else 18032 case ${MACOSX_DEPLOYMENT_TARGET} in 18033 10.[012]) 18034 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 18035 ;; 18036 10.*) 18037 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 18038 ;; 18039 esac 18040 fi 18041 ;; 18042 esac 18043 archive_cmds_need_lc_GCJ=no 18044 hardcode_direct_GCJ=no 18045 hardcode_automatic_GCJ=yes 18046 hardcode_shlibpath_var_GCJ=unsupported 18047 whole_archive_flag_spec_GCJ='' 18048 link_all_deplibs_GCJ=yes 18049 if test "$GCC" = yes ; then 18050 output_verbose_link_cmd='echo' 18051 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}" 18052 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 18053 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}" 18054 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}" 18055 else 18056 case $cc_basename in 18057 xlc*) 18058 output_verbose_link_cmd='echo' 18059 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 18060 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 18061 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 18062 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}' 18063 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}' 18064 ;; 18065 *) 18066 ld_shlibs_GCJ=no 18067 ;; 18068 esac 18069 fi 18070 ;; 18071 18072 dgux*) 18073 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18074 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18075 hardcode_shlibpath_var_GCJ=no 18076 ;; 18077 18078 freebsd1*) 18079 ld_shlibs_GCJ=no 18080 ;; 18081 18082 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 18083 # support. Future versions do this automatically, but an explicit c++rt0.o 18084 # does not break anything, and helps significantly (at the cost of a little 18085 # extra space). 18086 freebsd2.2*) 18087 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 18088 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18089 hardcode_direct_GCJ=yes 18090 hardcode_shlibpath_var_GCJ=no 18091 ;; 18092 18093 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 18094 freebsd2*) 18095 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18096 hardcode_direct_GCJ=yes 18097 hardcode_minus_L_GCJ=yes 18098 hardcode_shlibpath_var_GCJ=no 18099 ;; 18100 18101 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 18102 freebsd* | dragonfly*) 18103 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 18104 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18105 hardcode_direct_GCJ=yes 18106 hardcode_shlibpath_var_GCJ=no 18107 ;; 18108 18109 hpux9*) 18110 if test "$GCC" = yes; then 18111 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' 18112 else 18113 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' 18114 fi 18115 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18116 hardcode_libdir_separator_GCJ=: 18117 hardcode_direct_GCJ=yes 18118 18119 # hardcode_minus_L: Not really in the search PATH, 18120 # but as the default location of the library. 18121 hardcode_minus_L_GCJ=yes 18122 export_dynamic_flag_spec_GCJ='${wl}-E' 18123 ;; 18124 18125 hpux10*) 18126 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 18127 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18128 else 18129 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 18130 fi 18131 if test "$with_gnu_ld" = no; then 18132 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18133 hardcode_libdir_separator_GCJ=: 18134 18135 hardcode_direct_GCJ=yes 18136 export_dynamic_flag_spec_GCJ='${wl}-E' 18137 18138 # hardcode_minus_L: Not really in the search PATH, 18139 # but as the default location of the library. 18140 hardcode_minus_L_GCJ=yes 18141 fi 18142 ;; 18143 18144 hpux11*) 18145 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 18146 case $host_cpu in 18147 hppa*64*) 18148 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18149 ;; 18150 ia64*) 18151 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18152 ;; 18153 *) 18154 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18155 ;; 18156 esac 18157 else 18158 case $host_cpu in 18159 hppa*64*) 18160 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18161 ;; 18162 ia64*) 18163 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18164 ;; 18165 *) 18166 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18167 ;; 18168 esac 18169 fi 18170 if test "$with_gnu_ld" = no; then 18171 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18172 hardcode_libdir_separator_GCJ=: 18173 18174 case $host_cpu in 18175 hppa*64*|ia64*) 18176 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 18177 hardcode_direct_GCJ=no 18178 hardcode_shlibpath_var_GCJ=no 18179 ;; 18180 *) 18181 hardcode_direct_GCJ=yes 18182 export_dynamic_flag_spec_GCJ='${wl}-E' 18183 18184 # hardcode_minus_L: Not really in the search PATH, 18185 # but as the default location of the library. 18186 hardcode_minus_L_GCJ=yes 18187 ;; 18188 esac 18189 fi 18190 ;; 18191 18192 irix5* | irix6* | nonstopux*) 18193 if test "$GCC" = yes; then 18194 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' 18195 else 18196 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' 18197 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 18198 fi 18199 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18200 hardcode_libdir_separator_GCJ=: 18201 link_all_deplibs_GCJ=yes 18202 ;; 18203 18204 netbsd*) 18205 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18206 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 18207 else 18208 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 18209 fi 18210 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18211 hardcode_direct_GCJ=yes 18212 hardcode_shlibpath_var_GCJ=no 18213 ;; 18214 18215 newsos6) 18216 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18217 hardcode_direct_GCJ=yes 18218 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18219 hardcode_libdir_separator_GCJ=: 18220 hardcode_shlibpath_var_GCJ=no 18221 ;; 18222 18223 openbsd*) 18224 if test -f /usr/libexec/ld.so; then 18225 hardcode_direct_GCJ=yes 18226 hardcode_shlibpath_var_GCJ=no 18227 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18228 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18229 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 18230 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18231 export_dynamic_flag_spec_GCJ='${wl}-E' 18232 else 18233 case $host_os in 18234 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 18235 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18236 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18237 ;; 18238 *) 18239 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18240 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18241 ;; 18242 esac 18243 fi 18244 else 18245 ld_shlibs_GCJ=no 18246 fi 18247 ;; 18248 18249 os2*) 18250 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18251 hardcode_minus_L_GCJ=yes 18252 allow_undefined_flag_GCJ=unsupported 18253 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' 18254 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 18255 ;; 18256 18257 osf3*) 18258 if test "$GCC" = yes; then 18259 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18260 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' 18261 else 18262 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18263 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' 18264 fi 18265 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18266 hardcode_libdir_separator_GCJ=: 18267 ;; 18268 18269 osf4* | osf5*) # as osf3* with the addition of -msym flag 18270 if test "$GCC" = yes; then 18271 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18272 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' 18273 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18274 else 18275 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18276 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' 18277 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~ 18278 $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' 18279 18280 # Both c and cxx compiler support -rpath directly 18281 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 18282 fi 18283 hardcode_libdir_separator_GCJ=: 18284 ;; 18285 18286 solaris*) 18287 no_undefined_flag_GCJ=' -z text' 18288 if test "$GCC" = yes; then 18289 wlarc='${wl}' 18290 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18291 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18292 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 18293 else 18294 wlarc='' 18295 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 18296 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18297 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 18298 fi 18299 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18300 hardcode_shlibpath_var_GCJ=no 18301 case $host_os in 18302 solaris2.[0-5] | solaris2.[0-5].*) ;; 18303 *) 18304 # The compiler driver will combine and reorder linker options, 18305 # but understands `-z linker_flag'. GCC discards it without `$wl', 18306 # but is careful enough not to reorder. 18307 # Supported since Solaris 2.6 (maybe 2.5.1?) 18308 if test "$GCC" = yes; then 18309 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 18310 else 18311 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' 18312 fi 18313 ;; 18314 esac 18315 link_all_deplibs_GCJ=yes 18316 ;; 18317 18318 sunos4*) 18319 if test "x$host_vendor" = xsequent; then 18320 # Use $CC to link under sequent, because it throws in some extra .o 18321 # files that make .init and .fini sections work. 18322 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 18323 else 18324 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 18325 fi 18326 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18327 hardcode_direct_GCJ=yes 18328 hardcode_minus_L_GCJ=yes 18329 hardcode_shlibpath_var_GCJ=no 18330 ;; 18331 18332 sysv4) 18333 case $host_vendor in 18334 sni) 18335 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18336 hardcode_direct_GCJ=yes # is this really true??? 18337 ;; 18338 siemens) 18339 ## LD is ld it makes a PLAMLIB 18340 ## CC just makes a GrossModule. 18341 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 18342 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 18343 hardcode_direct_GCJ=no 18344 ;; 18345 motorola) 18346 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18347 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 18348 ;; 18349 esac 18350 runpath_var='LD_RUN_PATH' 18351 hardcode_shlibpath_var_GCJ=no 18352 ;; 18353 18354 sysv4.3*) 18355 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18356 hardcode_shlibpath_var_GCJ=no 18357 export_dynamic_flag_spec_GCJ='-Bexport' 18358 ;; 18359 18360 sysv4*MP*) 18361 if test -d /usr/nec; then 18362 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18363 hardcode_shlibpath_var_GCJ=no 18364 runpath_var=LD_RUN_PATH 18365 hardcode_runpath_var=yes 18366 ld_shlibs_GCJ=yes 18367 fi 18368 ;; 18369 18370 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 18371 no_undefined_flag_GCJ='${wl}-z,text' 18372 archive_cmds_need_lc_GCJ=no 18373 hardcode_shlibpath_var_GCJ=no 18374 runpath_var='LD_RUN_PATH' 18375 18376 if test "$GCC" = yes; then 18377 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18378 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18379 else 18380 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18381 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18382 fi 18383 ;; 18384 18385 sysv5* | sco3.2v5* | sco5v6*) 18386 # Note: We can NOT use -z defs as we might desire, because we do not 18387 # link with -lc, and that would cause any symbols used from libc to 18388 # always be unresolved, which means just about no library would 18389 # ever link correctly. If we're not using GNU ld we use -z text 18390 # though, which does catch some bad symbols but isn't as heavy-handed 18391 # as -z defs. 18392 no_undefined_flag_GCJ='${wl}-z,text' 18393 allow_undefined_flag_GCJ='${wl}-z,nodefs' 18394 archive_cmds_need_lc_GCJ=no 18395 hardcode_shlibpath_var_GCJ=no 18396 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 18397 hardcode_libdir_separator_GCJ=':' 18398 link_all_deplibs_GCJ=yes 18399 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 18400 runpath_var='LD_RUN_PATH' 18401 18402 if test "$GCC" = yes; then 18403 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18404 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18405 else 18406 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18407 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18408 fi 18409 ;; 18410 18411 uts4*) 18412 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18413 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18414 hardcode_shlibpath_var_GCJ=no 18415 ;; 18416 18417 *) 18418 ld_shlibs_GCJ=no 18419 ;; 18420 esac 18421 fi 18422 18423{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 18424$as_echo "$ld_shlibs_GCJ" >&6; } 18425test "$ld_shlibs_GCJ" = no && can_build_shared=no 18426 18427# 18428# Do we need to explicitly link libc? 18429# 18430case "x$archive_cmds_need_lc_GCJ" in 18431x|xyes) 18432 # Assume -lc should be added 18433 archive_cmds_need_lc_GCJ=yes 18434 18435 if test "$enable_shared" = yes && test "$GCC" = yes; then 18436 case $archive_cmds_GCJ in 18437 *'~'*) 18438 # FIXME: we may have to deal with multi-command sequences. 18439 ;; 18440 '$CC '*) 18441 # Test whether the compiler implicitly links with -lc since on some 18442 # systems, -lgcc has to come before -lc. If gcc already passes -lc 18443 # to ld, don't add -lc before -lgcc. 18444 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 18445$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 18446 $rm conftest* 18447 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18448 18449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18450 (eval $ac_compile) 2>&5 18451 ac_status=$? 18452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18453 (exit $ac_status); } 2>conftest.err; then 18454 soname=conftest 18455 lib=conftest 18456 libobjs=conftest.$ac_objext 18457 deplibs= 18458 wl=$lt_prog_compiler_wl_GCJ 18459 pic_flag=$lt_prog_compiler_pic_GCJ 18460 compiler_flags=-v 18461 linker_flags=-v 18462 verstring= 18463 output_objdir=. 18464 libname=conftest 18465 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 18466 allow_undefined_flag_GCJ= 18467 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 18468 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 18469 ac_status=$? 18470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18471 (exit $ac_status); } 18472 then 18473 archive_cmds_need_lc_GCJ=no 18474 else 18475 archive_cmds_need_lc_GCJ=yes 18476 fi 18477 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 18478 else 18479 cat conftest.err 1>&5 18480 fi 18481 $rm conftest* 18482 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 18483$as_echo "$archive_cmds_need_lc_GCJ" >&6; } 18484 ;; 18485 esac 18486 fi 18487 ;; 18488esac 18489 18490{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 18491$as_echo_n "checking dynamic linker characteristics... " >&6; } 18492library_names_spec= 18493libname_spec='lib$name' 18494soname_spec= 18495shrext_cmds=".so" 18496postinstall_cmds= 18497postuninstall_cmds= 18498finish_cmds= 18499finish_eval= 18500shlibpath_var= 18501shlibpath_overrides_runpath=unknown 18502version_type=none 18503dynamic_linker="$host_os ld.so" 18504sys_lib_dlsearch_path_spec="/lib /usr/lib" 18505 18506need_lib_prefix=unknown 18507hardcode_into_libs=no 18508 18509# when you set need_version to no, make sure it does not cause -set_version 18510# flags to be left without arguments 18511need_version=unknown 18512 18513case $host_os in 18514aix3*) 18515 version_type=linux 18516 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 18517 shlibpath_var=LIBPATH 18518 18519 # AIX 3 has no versioning support, so we append a major version to the name. 18520 soname_spec='${libname}${release}${shared_ext}$major' 18521 ;; 18522 18523aix[4-9]*) 18524 version_type=linux 18525 need_lib_prefix=no 18526 need_version=no 18527 hardcode_into_libs=yes 18528 if test "$host_cpu" = ia64; then 18529 # AIX 5 supports IA64 18530 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 18531 shlibpath_var=LD_LIBRARY_PATH 18532 else 18533 # With GCC up to 2.95.x, collect2 would create an import file 18534 # for dependence libraries. The import file would start with 18535 # the line `#! .'. This would cause the generated library to 18536 # depend on `.', always an invalid library. This was fixed in 18537 # development snapshots of GCC prior to 3.0. 18538 case $host_os in 18539 aix4 | aix4.[01] | aix4.[01].*) 18540 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18541 echo ' yes ' 18542 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 18543 : 18544 else 18545 can_build_shared=no 18546 fi 18547 ;; 18548 esac 18549 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 18550 # soname into executable. Probably we can add versioning support to 18551 # collect2, so additional links can be useful in future. 18552 if test "$aix_use_runtimelinking" = yes; then 18553 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18554 # instead of lib<name>.a to let people know that these are not 18555 # typical AIX shared libraries. 18556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18557 else 18558 # We preserve .a as extension for shared libraries through AIX4.2 18559 # and later when we are not doing run time linking. 18560 library_names_spec='${libname}${release}.a $libname.a' 18561 soname_spec='${libname}${release}${shared_ext}$major' 18562 fi 18563 shlibpath_var=LIBPATH 18564 fi 18565 ;; 18566 18567amigaos*) 18568 library_names_spec='$libname.ixlibrary $libname.a' 18569 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18570 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' 18571 ;; 18572 18573beos*) 18574 library_names_spec='${libname}${shared_ext}' 18575 dynamic_linker="$host_os ld.so" 18576 shlibpath_var=LIBRARY_PATH 18577 ;; 18578 18579bsdi[45]*) 18580 version_type=linux 18581 need_version=no 18582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18583 soname_spec='${libname}${release}${shared_ext}$major' 18584 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18585 shlibpath_var=LD_LIBRARY_PATH 18586 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18587 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18588 # the default ld.so.conf also contains /usr/contrib/lib and 18589 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18590 # libtool to hard-code these into programs 18591 ;; 18592 18593cygwin* | mingw* | pw32*) 18594 version_type=windows 18595 shrext_cmds=".dll" 18596 need_version=no 18597 need_lib_prefix=no 18598 18599 case $GCC,$host_os in 18600 yes,cygwin* | yes,mingw* | yes,pw32*) 18601 library_names_spec='$libname.dll.a' 18602 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18603 postinstall_cmds='base_file=`basename \${file}`~ 18604 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 18605 dldir=$destdir/`dirname \$dlpath`~ 18606 test -d \$dldir || mkdir -p \$dldir~ 18607 $install_prog $dir/$dlname \$dldir/$dlname~ 18608 chmod a+x \$dldir/$dlname' 18609 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18610 dlpath=$dir/\$dldll~ 18611 $rm \$dlpath' 18612 shlibpath_overrides_runpath=yes 18613 18614 case $host_os in 18615 cygwin*) 18616 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18617 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18618 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 18619 ;; 18620 mingw*) 18621 # MinGW DLLs use traditional 'lib' prefix 18622 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18623 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18624 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 18625 # It is most probably a Windows format PATH printed by 18626 # mingw gcc, but we are running on Cygwin. Gcc prints its search 18627 # path with ; separators, and with drive letters. We can handle the 18628 # drive letters (cygwin fileutils understands them), so leave them, 18629 # especially as we might pass files found there to a mingw objdump, 18630 # which wouldn't understand a cygwinified path. Ahh. 18631 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18632 else 18633 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18634 fi 18635 ;; 18636 pw32*) 18637 # pw32 DLLs use 'pw' prefix rather than 'lib' 18638 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18639 ;; 18640 esac 18641 ;; 18642 18643 *) 18644 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 18645 ;; 18646 esac 18647 dynamic_linker='Win32 ld.exe' 18648 # FIXME: first we should search . and the directory the executable is in 18649 shlibpath_var=PATH 18650 ;; 18651 18652darwin* | rhapsody*) 18653 dynamic_linker="$host_os dyld" 18654 version_type=darwin 18655 need_lib_prefix=no 18656 need_version=no 18657 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 18658 soname_spec='${libname}${release}${major}$shared_ext' 18659 shlibpath_overrides_runpath=yes 18660 shlibpath_var=DYLD_LIBRARY_PATH 18661 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18662 18663 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18664 ;; 18665 18666dgux*) 18667 version_type=linux 18668 need_lib_prefix=no 18669 need_version=no 18670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 18671 soname_spec='${libname}${release}${shared_ext}$major' 18672 shlibpath_var=LD_LIBRARY_PATH 18673 ;; 18674 18675freebsd1*) 18676 dynamic_linker=no 18677 ;; 18678 18679freebsd* | dragonfly*) 18680 # DragonFly does not have aout. When/if they implement a new 18681 # versioning mechanism, adjust this. 18682 if test -x /usr/bin/objformat; then 18683 objformat=`/usr/bin/objformat` 18684 else 18685 case $host_os in 18686 freebsd[123]*) objformat=aout ;; 18687 *) objformat=elf ;; 18688 esac 18689 fi 18690 version_type=freebsd-$objformat 18691 case $version_type in 18692 freebsd-elf*) 18693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18694 need_version=no 18695 need_lib_prefix=no 18696 ;; 18697 freebsd-*) 18698 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18699 need_version=yes 18700 ;; 18701 esac 18702 shlibpath_var=LD_LIBRARY_PATH 18703 case $host_os in 18704 freebsd2*) 18705 shlibpath_overrides_runpath=yes 18706 ;; 18707 freebsd3.[01]* | freebsdelf3.[01]*) 18708 shlibpath_overrides_runpath=yes 18709 hardcode_into_libs=yes 18710 ;; 18711 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18712 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18713 shlibpath_overrides_runpath=no 18714 hardcode_into_libs=yes 18715 ;; 18716 *) # from 4.6 on, and DragonFly 18717 shlibpath_overrides_runpath=yes 18718 hardcode_into_libs=yes 18719 ;; 18720 esac 18721 ;; 18722 18723gnu*) 18724 version_type=linux 18725 need_lib_prefix=no 18726 need_version=no 18727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18728 soname_spec='${libname}${release}${shared_ext}$major' 18729 shlibpath_var=LD_LIBRARY_PATH 18730 hardcode_into_libs=yes 18731 ;; 18732 18733hpux9* | hpux10* | hpux11*) 18734 # Give a soname corresponding to the major version so that dld.sl refuses to 18735 # link against other versions. 18736 version_type=sunos 18737 need_lib_prefix=no 18738 need_version=no 18739 case $host_cpu in 18740 ia64*) 18741 shrext_cmds='.so' 18742 hardcode_into_libs=yes 18743 dynamic_linker="$host_os dld.so" 18744 shlibpath_var=LD_LIBRARY_PATH 18745 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18747 soname_spec='${libname}${release}${shared_ext}$major' 18748 if test "X$HPUX_IA64_MODE" = X32; then 18749 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18750 else 18751 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18752 fi 18753 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18754 ;; 18755 hppa*64*) 18756 shrext_cmds='.sl' 18757 hardcode_into_libs=yes 18758 dynamic_linker="$host_os dld.sl" 18759 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18760 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18762 soname_spec='${libname}${release}${shared_ext}$major' 18763 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18764 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18765 ;; 18766 *) 18767 shrext_cmds='.sl' 18768 dynamic_linker="$host_os dld.sl" 18769 shlibpath_var=SHLIB_PATH 18770 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18772 soname_spec='${libname}${release}${shared_ext}$major' 18773 ;; 18774 esac 18775 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18776 postinstall_cmds='chmod 555 $lib' 18777 ;; 18778 18779interix[3-9]*) 18780 version_type=linux 18781 need_lib_prefix=no 18782 need_version=no 18783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18784 soname_spec='${libname}${release}${shared_ext}$major' 18785 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18786 shlibpath_var=LD_LIBRARY_PATH 18787 shlibpath_overrides_runpath=no 18788 hardcode_into_libs=yes 18789 ;; 18790 18791irix5* | irix6* | nonstopux*) 18792 case $host_os in 18793 nonstopux*) version_type=nonstopux ;; 18794 *) 18795 if test "$lt_cv_prog_gnu_ld" = yes; then 18796 version_type=linux 18797 else 18798 version_type=irix 18799 fi ;; 18800 esac 18801 need_lib_prefix=no 18802 need_version=no 18803 soname_spec='${libname}${release}${shared_ext}$major' 18804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18805 case $host_os in 18806 irix5* | nonstopux*) 18807 libsuff= shlibsuff= 18808 ;; 18809 *) 18810 case $LD in # libtool.m4 will add one of these switches to LD 18811 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18812 libsuff= shlibsuff= libmagic=32-bit;; 18813 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18814 libsuff=32 shlibsuff=N32 libmagic=N32;; 18815 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18816 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18817 *) libsuff= shlibsuff= libmagic=never-match;; 18818 esac 18819 ;; 18820 esac 18821 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18822 shlibpath_overrides_runpath=no 18823 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18824 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18825 hardcode_into_libs=yes 18826 ;; 18827 18828# No shared lib support for Linux oldld, aout, or coff. 18829linux*oldld* | linux*aout* | linux*coff*) 18830 dynamic_linker=no 18831 ;; 18832 18833# This must be Linux ELF. 18834linux* | k*bsd*-gnu) 18835 version_type=linux 18836 need_lib_prefix=no 18837 need_version=no 18838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18839 soname_spec='${libname}${release}${shared_ext}$major' 18840 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18841 shlibpath_var=LD_LIBRARY_PATH 18842 shlibpath_overrides_runpath=no 18843 # This implies no fast_install, which is unacceptable. 18844 # Some rework will be needed to allow for fast_install 18845 # before this can be enabled. 18846 hardcode_into_libs=yes 18847 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18848 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18849 18850 # Append ld.so.conf contents to the search path 18851 if test -f /etc/ld.so.conf; then 18852 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' ' '` 18853 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 18854 fi 18855 18856 # We used to test for /lib/ld.so.1 and disable shared libraries on 18857 # powerpc, because MkLinux only supported shared libraries with the 18858 # GNU dynamic linker. Since this was broken with cross compilers, 18859 # most powerpc-linux boxes support dynamic linking these days and 18860 # people can always --disable-shared, the test was removed, and we 18861 # assume the GNU/Linux dynamic linker is in use. 18862 dynamic_linker='GNU/Linux ld.so' 18863 ;; 18864 18865netbsd*) 18866 version_type=sunos 18867 need_lib_prefix=no 18868 need_version=no 18869 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18871 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18872 dynamic_linker='NetBSD (a.out) ld.so' 18873 else 18874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18875 soname_spec='${libname}${release}${shared_ext}$major' 18876 dynamic_linker='NetBSD ld.elf_so' 18877 fi 18878 shlibpath_var=LD_LIBRARY_PATH 18879 shlibpath_overrides_runpath=yes 18880 hardcode_into_libs=yes 18881 ;; 18882 18883newsos6) 18884 version_type=linux 18885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18886 shlibpath_var=LD_LIBRARY_PATH 18887 shlibpath_overrides_runpath=yes 18888 ;; 18889 18890nto-qnx*) 18891 version_type=linux 18892 need_lib_prefix=no 18893 need_version=no 18894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18895 soname_spec='${libname}${release}${shared_ext}$major' 18896 shlibpath_var=LD_LIBRARY_PATH 18897 shlibpath_overrides_runpath=yes 18898 ;; 18899 18900openbsd*) 18901 version_type=sunos 18902 sys_lib_dlsearch_path_spec="/usr/lib" 18903 need_lib_prefix=no 18904 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18905 case $host_os in 18906 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18907 *) need_version=no ;; 18908 esac 18909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18910 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18911 shlibpath_var=LD_LIBRARY_PATH 18912 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18913 case $host_os in 18914 openbsd2.[89] | openbsd2.[89].*) 18915 shlibpath_overrides_runpath=no 18916 ;; 18917 *) 18918 shlibpath_overrides_runpath=yes 18919 ;; 18920 esac 18921 else 18922 shlibpath_overrides_runpath=yes 18923 fi 18924 ;; 18925 18926os2*) 18927 libname_spec='$name' 18928 shrext_cmds=".dll" 18929 need_lib_prefix=no 18930 library_names_spec='$libname${shared_ext} $libname.a' 18931 dynamic_linker='OS/2 ld.exe' 18932 shlibpath_var=LIBPATH 18933 ;; 18934 18935osf3* | osf4* | osf5*) 18936 version_type=osf 18937 need_lib_prefix=no 18938 need_version=no 18939 soname_spec='${libname}${release}${shared_ext}$major' 18940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18941 shlibpath_var=LD_LIBRARY_PATH 18942 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18943 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18944 ;; 18945 18946rdos*) 18947 dynamic_linker=no 18948 ;; 18949 18950solaris*) 18951 version_type=linux 18952 need_lib_prefix=no 18953 need_version=no 18954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18955 soname_spec='${libname}${release}${shared_ext}$major' 18956 shlibpath_var=LD_LIBRARY_PATH 18957 shlibpath_overrides_runpath=yes 18958 hardcode_into_libs=yes 18959 # ldd complains unless libraries are executable 18960 postinstall_cmds='chmod +x $lib' 18961 ;; 18962 18963sunos4*) 18964 version_type=sunos 18965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18966 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18967 shlibpath_var=LD_LIBRARY_PATH 18968 shlibpath_overrides_runpath=yes 18969 if test "$with_gnu_ld" = yes; then 18970 need_lib_prefix=no 18971 fi 18972 need_version=yes 18973 ;; 18974 18975sysv4 | sysv4.3*) 18976 version_type=linux 18977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18978 soname_spec='${libname}${release}${shared_ext}$major' 18979 shlibpath_var=LD_LIBRARY_PATH 18980 case $host_vendor in 18981 sni) 18982 shlibpath_overrides_runpath=no 18983 need_lib_prefix=no 18984 export_dynamic_flag_spec='${wl}-Blargedynsym' 18985 runpath_var=LD_RUN_PATH 18986 ;; 18987 siemens) 18988 need_lib_prefix=no 18989 ;; 18990 motorola) 18991 need_lib_prefix=no 18992 need_version=no 18993 shlibpath_overrides_runpath=no 18994 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18995 ;; 18996 esac 18997 ;; 18998 18999sysv4*MP*) 19000 if test -d /usr/nec ;then 19001 version_type=linux 19002 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 19003 soname_spec='$libname${shared_ext}.$major' 19004 shlibpath_var=LD_LIBRARY_PATH 19005 fi 19006 ;; 19007 19008sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 19009 version_type=freebsd-elf 19010 need_lib_prefix=no 19011 need_version=no 19012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 19013 soname_spec='${libname}${release}${shared_ext}$major' 19014 shlibpath_var=LD_LIBRARY_PATH 19015 hardcode_into_libs=yes 19016 if test "$with_gnu_ld" = yes; then 19017 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 19018 shlibpath_overrides_runpath=no 19019 else 19020 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 19021 shlibpath_overrides_runpath=yes 19022 case $host_os in 19023 sco3.2v5*) 19024 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 19025 ;; 19026 esac 19027 fi 19028 sys_lib_dlsearch_path_spec='/usr/lib' 19029 ;; 19030 19031uts4*) 19032 version_type=linux 19033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19034 soname_spec='${libname}${release}${shared_ext}$major' 19035 shlibpath_var=LD_LIBRARY_PATH 19036 ;; 19037 19038*) 19039 dynamic_linker=no 19040 ;; 19041esac 19042{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 19043$as_echo "$dynamic_linker" >&6; } 19044test "$dynamic_linker" = no && can_build_shared=no 19045 19046if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 19047 $as_echo_n "(cached) " >&6 19048else 19049 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 19050fi 19051 19052sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 19053if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 19054 $as_echo_n "(cached) " >&6 19055else 19056 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 19057fi 19058 19059sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 19060 19061variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 19062if test "$GCC" = yes; then 19063 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 19064fi 19065 19066{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 19067$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 19068hardcode_action_GCJ= 19069if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 19070 test -n "$runpath_var_GCJ" || \ 19071 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 19072 19073 # We can hardcode non-existant directories. 19074 if test "$hardcode_direct_GCJ" != no && 19075 # If the only mechanism to avoid hardcoding is shlibpath_var, we 19076 # have to relink, otherwise we might link with an installed library 19077 # when we should be linking with a yet-to-be-installed one 19078 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 19079 test "$hardcode_minus_L_GCJ" != no; then 19080 # Linking always hardcodes the temporary library directory. 19081 hardcode_action_GCJ=relink 19082 else 19083 # We can link without hardcoding, and we can hardcode nonexisting dirs. 19084 hardcode_action_GCJ=immediate 19085 fi 19086else 19087 # We cannot hardcode anything, or else we can only hardcode existing 19088 # directories. 19089 hardcode_action_GCJ=unsupported 19090fi 19091{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 19092$as_echo "$hardcode_action_GCJ" >&6; } 19093 19094if test "$hardcode_action_GCJ" = relink; then 19095 # Fast installation is not supported 19096 enable_fast_install=no 19097elif test "$shlibpath_overrides_runpath" = yes || 19098 test "$enable_shared" = no; then 19099 # Fast installation is not necessary 19100 enable_fast_install=needless 19101fi 19102 19103 19104# The else clause should only fire when bootstrapping the 19105# libtool distribution, otherwise you forgot to ship ltmain.sh 19106# with your package, and you will get complaints that there are 19107# no rules to generate ltmain.sh. 19108if test -f "$ltmain"; then 19109 # See if we are running on zsh, and set the options which allow our commands through 19110 # without removal of \ escapes. 19111 if test -n "${ZSH_VERSION+set}" ; then 19112 setopt NO_GLOB_SUBST 19113 fi 19114 # Now quote all the things that may contain metacharacters while being 19115 # careful not to overquote the AC_SUBSTed values. We take copies of the 19116 # variables and quote the copies for generation of the libtool script. 19117 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19118 SED SHELL STRIP \ 19119 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19120 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19121 deplibs_check_method reload_flag reload_cmds need_locks \ 19122 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19123 lt_cv_sys_global_symbol_to_c_name_address \ 19124 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19125 old_postinstall_cmds old_postuninstall_cmds \ 19126 compiler_GCJ \ 19127 CC_GCJ \ 19128 LD_GCJ \ 19129 lt_prog_compiler_wl_GCJ \ 19130 lt_prog_compiler_pic_GCJ \ 19131 lt_prog_compiler_static_GCJ \ 19132 lt_prog_compiler_no_builtin_flag_GCJ \ 19133 export_dynamic_flag_spec_GCJ \ 19134 thread_safe_flag_spec_GCJ \ 19135 whole_archive_flag_spec_GCJ \ 19136 enable_shared_with_static_runtimes_GCJ \ 19137 old_archive_cmds_GCJ \ 19138 old_archive_from_new_cmds_GCJ \ 19139 predep_objects_GCJ \ 19140 postdep_objects_GCJ \ 19141 predeps_GCJ \ 19142 postdeps_GCJ \ 19143 compiler_lib_search_path_GCJ \ 19144 compiler_lib_search_dirs_GCJ \ 19145 archive_cmds_GCJ \ 19146 archive_expsym_cmds_GCJ \ 19147 postinstall_cmds_GCJ \ 19148 postuninstall_cmds_GCJ \ 19149 old_archive_from_expsyms_cmds_GCJ \ 19150 allow_undefined_flag_GCJ \ 19151 no_undefined_flag_GCJ \ 19152 export_symbols_cmds_GCJ \ 19153 hardcode_libdir_flag_spec_GCJ \ 19154 hardcode_libdir_flag_spec_ld_GCJ \ 19155 hardcode_libdir_separator_GCJ \ 19156 hardcode_automatic_GCJ \ 19157 module_cmds_GCJ \ 19158 module_expsym_cmds_GCJ \ 19159 lt_cv_prog_compiler_c_o_GCJ \ 19160 fix_srcfile_path_GCJ \ 19161 exclude_expsyms_GCJ \ 19162 include_expsyms_GCJ; do 19163 19164 case $var in 19165 old_archive_cmds_GCJ | \ 19166 old_archive_from_new_cmds_GCJ | \ 19167 archive_cmds_GCJ | \ 19168 archive_expsym_cmds_GCJ | \ 19169 module_cmds_GCJ | \ 19170 module_expsym_cmds_GCJ | \ 19171 old_archive_from_expsyms_cmds_GCJ | \ 19172 export_symbols_cmds_GCJ | \ 19173 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19174 postinstall_cmds | postuninstall_cmds | \ 19175 old_postinstall_cmds | old_postuninstall_cmds | \ 19176 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19177 # Double-quote double-evaled strings. 19178 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19179 ;; 19180 *) 19181 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19182 ;; 19183 esac 19184 done 19185 19186 case $lt_echo in 19187 *'\$0 --fallback-echo"') 19188 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19189 ;; 19190 esac 19191 19192cfgfile="$ofile" 19193 19194 cat <<__EOF__ >> "$cfgfile" 19195# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19196 19197# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19198 19199# Shell to use when invoking shell scripts. 19200SHELL=$lt_SHELL 19201 19202# Whether or not to build shared libraries. 19203build_libtool_libs=$enable_shared 19204 19205# Whether or not to build static libraries. 19206build_old_libs=$enable_static 19207 19208# Whether or not to add -lc for building shared libraries. 19209build_libtool_need_lc=$archive_cmds_need_lc_GCJ 19210 19211# Whether or not to disallow shared libs when runtime libs are static 19212allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 19213 19214# Whether or not to optimize for fast installation. 19215fast_install=$enable_fast_install 19216 19217# The host system. 19218host_alias=$host_alias 19219host=$host 19220host_os=$host_os 19221 19222# The build system. 19223build_alias=$build_alias 19224build=$build 19225build_os=$build_os 19226 19227# An echo program that does not interpret backslashes. 19228echo=$lt_echo 19229 19230# The archiver. 19231AR=$lt_AR 19232AR_FLAGS=$lt_AR_FLAGS 19233 19234# A C compiler. 19235LTCC=$lt_LTCC 19236 19237# LTCC compiler flags. 19238LTCFLAGS=$lt_LTCFLAGS 19239 19240# A language-specific compiler. 19241CC=$lt_compiler_GCJ 19242 19243# Is the compiler the GNU C compiler? 19244with_gcc=$GCC_GCJ 19245 19246# An ERE matcher. 19247EGREP=$lt_EGREP 19248 19249# The linker used to build libraries. 19250LD=$lt_LD_GCJ 19251 19252# Whether we need hard or soft links. 19253LN_S=$lt_LN_S 19254 19255# A BSD-compatible nm program. 19256NM=$lt_NM 19257 19258# A symbol stripping program 19259STRIP=$lt_STRIP 19260 19261# Used to examine libraries when file_magic_cmd begins "file" 19262MAGIC_CMD=$MAGIC_CMD 19263 19264# Used on cygwin: DLL creation program. 19265DLLTOOL="$DLLTOOL" 19266 19267# Used on cygwin: object dumper. 19268OBJDUMP="$OBJDUMP" 19269 19270# Used on cygwin: assembler. 19271AS="$AS" 19272 19273# The name of the directory that contains temporary libtool files. 19274objdir=$objdir 19275 19276# How to create reloadable object files. 19277reload_flag=$lt_reload_flag 19278reload_cmds=$lt_reload_cmds 19279 19280# How to pass a linker flag through the compiler. 19281wl=$lt_lt_prog_compiler_wl_GCJ 19282 19283# Object file suffix (normally "o"). 19284objext="$ac_objext" 19285 19286# Old archive suffix (normally "a"). 19287libext="$libext" 19288 19289# Shared library suffix (normally ".so"). 19290shrext_cmds='$shrext_cmds' 19291 19292# Executable file suffix (normally ""). 19293exeext="$exeext" 19294 19295# Additional compiler flags for building library objects. 19296pic_flag=$lt_lt_prog_compiler_pic_GCJ 19297pic_mode=$pic_mode 19298 19299# What is the maximum length of a command? 19300max_cmd_len=$lt_cv_sys_max_cmd_len 19301 19302# Does compiler simultaneously support -c and -o options? 19303compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 19304 19305# Must we lock files when doing compilation? 19306need_locks=$lt_need_locks 19307 19308# Do we need the lib prefix for modules? 19309need_lib_prefix=$need_lib_prefix 19310 19311# Do we need a version for libraries? 19312need_version=$need_version 19313 19314# Whether dlopen is supported. 19315dlopen_support=$enable_dlopen 19316 19317# Whether dlopen of programs is supported. 19318dlopen_self=$enable_dlopen_self 19319 19320# Whether dlopen of statically linked programs is supported. 19321dlopen_self_static=$enable_dlopen_self_static 19322 19323# Compiler flag to prevent dynamic linking. 19324link_static_flag=$lt_lt_prog_compiler_static_GCJ 19325 19326# Compiler flag to turn off builtin functions. 19327no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 19328 19329# Compiler flag to allow reflexive dlopens. 19330export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 19331 19332# Compiler flag to generate shared objects directly from archives. 19333whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 19334 19335# Compiler flag to generate thread-safe objects. 19336thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 19337 19338# Library versioning type. 19339version_type=$version_type 19340 19341# Format of library name prefix. 19342libname_spec=$lt_libname_spec 19343 19344# List of archive names. First name is the real one, the rest are links. 19345# The last name is the one that the linker finds with -lNAME. 19346library_names_spec=$lt_library_names_spec 19347 19348# The coded name of the library, if different from the real name. 19349soname_spec=$lt_soname_spec 19350 19351# Commands used to build and install an old-style archive. 19352RANLIB=$lt_RANLIB 19353old_archive_cmds=$lt_old_archive_cmds_GCJ 19354old_postinstall_cmds=$lt_old_postinstall_cmds 19355old_postuninstall_cmds=$lt_old_postuninstall_cmds 19356 19357# Create an old-style archive from a shared archive. 19358old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 19359 19360# Create a temporary old-style archive to link instead of a shared archive. 19361old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 19362 19363# Commands used to build and install a shared archive. 19364archive_cmds=$lt_archive_cmds_GCJ 19365archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 19366postinstall_cmds=$lt_postinstall_cmds 19367postuninstall_cmds=$lt_postuninstall_cmds 19368 19369# Commands used to build a loadable module (assumed same as above if empty) 19370module_cmds=$lt_module_cmds_GCJ 19371module_expsym_cmds=$lt_module_expsym_cmds_GCJ 19372 19373# Commands to strip libraries. 19374old_striplib=$lt_old_striplib 19375striplib=$lt_striplib 19376 19377# Dependencies to place before the objects being linked to create a 19378# shared library. 19379predep_objects=$lt_predep_objects_GCJ 19380 19381# Dependencies to place after the objects being linked to create a 19382# shared library. 19383postdep_objects=$lt_postdep_objects_GCJ 19384 19385# Dependencies to place before the objects being linked to create a 19386# shared library. 19387predeps=$lt_predeps_GCJ 19388 19389# Dependencies to place after the objects being linked to create a 19390# shared library. 19391postdeps=$lt_postdeps_GCJ 19392 19393# The directories searched by this compiler when creating a shared 19394# library 19395compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ 19396 19397# The library search path used internally by the compiler when linking 19398# a shared library. 19399compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 19400 19401# Method to check whether dependent libraries are shared objects. 19402deplibs_check_method=$lt_deplibs_check_method 19403 19404# Command to use when deplibs_check_method == file_magic. 19405file_magic_cmd=$lt_file_magic_cmd 19406 19407# Flag that allows shared libraries with undefined symbols to be built. 19408allow_undefined_flag=$lt_allow_undefined_flag_GCJ 19409 19410# Flag that forces no undefined symbols. 19411no_undefined_flag=$lt_no_undefined_flag_GCJ 19412 19413# Commands used to finish a libtool library installation in a directory. 19414finish_cmds=$lt_finish_cmds 19415 19416# Same as above, but a single script fragment to be evaled but not shown. 19417finish_eval=$lt_finish_eval 19418 19419# Take the output of nm and produce a listing of raw symbols and C names. 19420global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19421 19422# Transform the output of nm in a proper C declaration 19423global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19424 19425# Transform the output of nm in a C name address pair 19426global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19427 19428# This is the shared library runtime path variable. 19429runpath_var=$runpath_var 19430 19431# This is the shared library path variable. 19432shlibpath_var=$shlibpath_var 19433 19434# Is shlibpath searched before the hard-coded library search path? 19435shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19436 19437# How to hardcode a shared library path into an executable. 19438hardcode_action=$hardcode_action_GCJ 19439 19440# Whether we should hardcode library paths into libraries. 19441hardcode_into_libs=$hardcode_into_libs 19442 19443# Flag to hardcode \$libdir into a binary during linking. 19444# This must work even if \$libdir does not exist. 19445hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 19446 19447# If ld is used when linking, flag to hardcode \$libdir into 19448# a binary during linking. This must work even if \$libdir does 19449# not exist. 19450hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 19451 19452# Whether we need a single -rpath flag with a separated argument. 19453hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 19454 19455# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19456# resulting binary. 19457hardcode_direct=$hardcode_direct_GCJ 19458 19459# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19460# resulting binary. 19461hardcode_minus_L=$hardcode_minus_L_GCJ 19462 19463# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19464# the resulting binary. 19465hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 19466 19467# Set to yes if building a shared library automatically hardcodes DIR into the library 19468# and all subsequent libraries and executables linked against it. 19469hardcode_automatic=$hardcode_automatic_GCJ 19470 19471# Variables whose values should be saved in libtool wrapper scripts and 19472# restored at relink time. 19473variables_saved_for_relink="$variables_saved_for_relink" 19474 19475# Whether libtool must link a program against all its dependency libraries. 19476link_all_deplibs=$link_all_deplibs_GCJ 19477 19478# Compile-time system search path for libraries 19479sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19480 19481# Run-time system search path for libraries 19482sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19483 19484# Fix the shell variable \$srcfile for the compiler. 19485fix_srcfile_path=$lt_fix_srcfile_path 19486 19487# Set to yes if exported symbols are required. 19488always_export_symbols=$always_export_symbols_GCJ 19489 19490# The commands to list exported symbols. 19491export_symbols_cmds=$lt_export_symbols_cmds_GCJ 19492 19493# The commands to extract the exported symbol list from a shared archive. 19494extract_expsyms_cmds=$lt_extract_expsyms_cmds 19495 19496# Symbols that should not be listed in the preloaded symbols. 19497exclude_expsyms=$lt_exclude_expsyms_GCJ 19498 19499# Symbols that must always be exported. 19500include_expsyms=$lt_include_expsyms_GCJ 19501 19502# ### END LIBTOOL TAG CONFIG: $tagname 19503 19504__EOF__ 19505 19506 19507else 19508 # If there is no Makefile yet, we rely on a make rule to execute 19509 # `config.status --recheck' to rerun these tests and create the 19510 # libtool script then. 19511 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19512 if test -f "$ltmain_in"; then 19513 test -f Makefile && make "$ltmain" 19514 fi 19515fi 19516 19517 19518ac_ext=c 19519ac_cpp='$CPP $CPPFLAGS' 19520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19522ac_compiler_gnu=$ac_cv_c_compiler_gnu 19523 19524CC="$lt_save_CC" 19525 19526 else 19527 tagname="" 19528 fi 19529 ;; 19530 19531 RC) 19532 19533 19534# Source file extension for RC test sources. 19535ac_ext=rc 19536 19537# Object file extension for compiled RC test sources. 19538objext=o 19539objext_RC=$objext 19540 19541# Code to be used in simple compile tests 19542lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 19543 19544# Code to be used in simple link tests 19545lt_simple_link_test_code="$lt_simple_compile_test_code" 19546 19547# ltmain only uses $CC for tagged configurations so make sure $CC is set. 19548 19549# If no C compiler was specified, use CC. 19550LTCC=${LTCC-"$CC"} 19551 19552# If no C compiler flags were specified, use CFLAGS. 19553LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 19554 19555# Allow CC to be a program name with arguments. 19556compiler=$CC 19557 19558 19559# save warnings/boilerplate of simple test code 19560ac_outfile=conftest.$ac_objext 19561echo "$lt_simple_compile_test_code" >conftest.$ac_ext 19562eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19563_lt_compiler_boilerplate=`cat conftest.err` 19564$rm conftest* 19565 19566ac_outfile=conftest.$ac_objext 19567echo "$lt_simple_link_test_code" >conftest.$ac_ext 19568eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19569_lt_linker_boilerplate=`cat conftest.err` 19570$rm -r conftest* 19571 19572 19573# Allow CC to be a program name with arguments. 19574lt_save_CC="$CC" 19575CC=${RC-"windres"} 19576compiler=$CC 19577compiler_RC=$CC 19578for cc_temp in $compiler""; do 19579 case $cc_temp in 19580 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19581 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19582 \-*) ;; 19583 *) break;; 19584 esac 19585done 19586cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 19587 19588lt_cv_prog_compiler_c_o_RC=yes 19589 19590# The else clause should only fire when bootstrapping the 19591# libtool distribution, otherwise you forgot to ship ltmain.sh 19592# with your package, and you will get complaints that there are 19593# no rules to generate ltmain.sh. 19594if test -f "$ltmain"; then 19595 # See if we are running on zsh, and set the options which allow our commands through 19596 # without removal of \ escapes. 19597 if test -n "${ZSH_VERSION+set}" ; then 19598 setopt NO_GLOB_SUBST 19599 fi 19600 # Now quote all the things that may contain metacharacters while being 19601 # careful not to overquote the AC_SUBSTed values. We take copies of the 19602 # variables and quote the copies for generation of the libtool script. 19603 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19604 SED SHELL STRIP \ 19605 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19606 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19607 deplibs_check_method reload_flag reload_cmds need_locks \ 19608 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19609 lt_cv_sys_global_symbol_to_c_name_address \ 19610 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19611 old_postinstall_cmds old_postuninstall_cmds \ 19612 compiler_RC \ 19613 CC_RC \ 19614 LD_RC \ 19615 lt_prog_compiler_wl_RC \ 19616 lt_prog_compiler_pic_RC \ 19617 lt_prog_compiler_static_RC \ 19618 lt_prog_compiler_no_builtin_flag_RC \ 19619 export_dynamic_flag_spec_RC \ 19620 thread_safe_flag_spec_RC \ 19621 whole_archive_flag_spec_RC \ 19622 enable_shared_with_static_runtimes_RC \ 19623 old_archive_cmds_RC \ 19624 old_archive_from_new_cmds_RC \ 19625 predep_objects_RC \ 19626 postdep_objects_RC \ 19627 predeps_RC \ 19628 postdeps_RC \ 19629 compiler_lib_search_path_RC \ 19630 compiler_lib_search_dirs_RC \ 19631 archive_cmds_RC \ 19632 archive_expsym_cmds_RC \ 19633 postinstall_cmds_RC \ 19634 postuninstall_cmds_RC \ 19635 old_archive_from_expsyms_cmds_RC \ 19636 allow_undefined_flag_RC \ 19637 no_undefined_flag_RC \ 19638 export_symbols_cmds_RC \ 19639 hardcode_libdir_flag_spec_RC \ 19640 hardcode_libdir_flag_spec_ld_RC \ 19641 hardcode_libdir_separator_RC \ 19642 hardcode_automatic_RC \ 19643 module_cmds_RC \ 19644 module_expsym_cmds_RC \ 19645 lt_cv_prog_compiler_c_o_RC \ 19646 fix_srcfile_path_RC \ 19647 exclude_expsyms_RC \ 19648 include_expsyms_RC; do 19649 19650 case $var in 19651 old_archive_cmds_RC | \ 19652 old_archive_from_new_cmds_RC | \ 19653 archive_cmds_RC | \ 19654 archive_expsym_cmds_RC | \ 19655 module_cmds_RC | \ 19656 module_expsym_cmds_RC | \ 19657 old_archive_from_expsyms_cmds_RC | \ 19658 export_symbols_cmds_RC | \ 19659 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19660 postinstall_cmds | postuninstall_cmds | \ 19661 old_postinstall_cmds | old_postuninstall_cmds | \ 19662 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19663 # Double-quote double-evaled strings. 19664 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19665 ;; 19666 *) 19667 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19668 ;; 19669 esac 19670 done 19671 19672 case $lt_echo in 19673 *'\$0 --fallback-echo"') 19674 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19675 ;; 19676 esac 19677 19678cfgfile="$ofile" 19679 19680 cat <<__EOF__ >> "$cfgfile" 19681# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19682 19683# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19684 19685# Shell to use when invoking shell scripts. 19686SHELL=$lt_SHELL 19687 19688# Whether or not to build shared libraries. 19689build_libtool_libs=$enable_shared 19690 19691# Whether or not to build static libraries. 19692build_old_libs=$enable_static 19693 19694# Whether or not to add -lc for building shared libraries. 19695build_libtool_need_lc=$archive_cmds_need_lc_RC 19696 19697# Whether or not to disallow shared libs when runtime libs are static 19698allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19699 19700# Whether or not to optimize for fast installation. 19701fast_install=$enable_fast_install 19702 19703# The host system. 19704host_alias=$host_alias 19705host=$host 19706host_os=$host_os 19707 19708# The build system. 19709build_alias=$build_alias 19710build=$build 19711build_os=$build_os 19712 19713# An echo program that does not interpret backslashes. 19714echo=$lt_echo 19715 19716# The archiver. 19717AR=$lt_AR 19718AR_FLAGS=$lt_AR_FLAGS 19719 19720# A C compiler. 19721LTCC=$lt_LTCC 19722 19723# LTCC compiler flags. 19724LTCFLAGS=$lt_LTCFLAGS 19725 19726# A language-specific compiler. 19727CC=$lt_compiler_RC 19728 19729# Is the compiler the GNU C compiler? 19730with_gcc=$GCC_RC 19731 19732# An ERE matcher. 19733EGREP=$lt_EGREP 19734 19735# The linker used to build libraries. 19736LD=$lt_LD_RC 19737 19738# Whether we need hard or soft links. 19739LN_S=$lt_LN_S 19740 19741# A BSD-compatible nm program. 19742NM=$lt_NM 19743 19744# A symbol stripping program 19745STRIP=$lt_STRIP 19746 19747# Used to examine libraries when file_magic_cmd begins "file" 19748MAGIC_CMD=$MAGIC_CMD 19749 19750# Used on cygwin: DLL creation program. 19751DLLTOOL="$DLLTOOL" 19752 19753# Used on cygwin: object dumper. 19754OBJDUMP="$OBJDUMP" 19755 19756# Used on cygwin: assembler. 19757AS="$AS" 19758 19759# The name of the directory that contains temporary libtool files. 19760objdir=$objdir 19761 19762# How to create reloadable object files. 19763reload_flag=$lt_reload_flag 19764reload_cmds=$lt_reload_cmds 19765 19766# How to pass a linker flag through the compiler. 19767wl=$lt_lt_prog_compiler_wl_RC 19768 19769# Object file suffix (normally "o"). 19770objext="$ac_objext" 19771 19772# Old archive suffix (normally "a"). 19773libext="$libext" 19774 19775# Shared library suffix (normally ".so"). 19776shrext_cmds='$shrext_cmds' 19777 19778# Executable file suffix (normally ""). 19779exeext="$exeext" 19780 19781# Additional compiler flags for building library objects. 19782pic_flag=$lt_lt_prog_compiler_pic_RC 19783pic_mode=$pic_mode 19784 19785# What is the maximum length of a command? 19786max_cmd_len=$lt_cv_sys_max_cmd_len 19787 19788# Does compiler simultaneously support -c and -o options? 19789compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19790 19791# Must we lock files when doing compilation? 19792need_locks=$lt_need_locks 19793 19794# Do we need the lib prefix for modules? 19795need_lib_prefix=$need_lib_prefix 19796 19797# Do we need a version for libraries? 19798need_version=$need_version 19799 19800# Whether dlopen is supported. 19801dlopen_support=$enable_dlopen 19802 19803# Whether dlopen of programs is supported. 19804dlopen_self=$enable_dlopen_self 19805 19806# Whether dlopen of statically linked programs is supported. 19807dlopen_self_static=$enable_dlopen_self_static 19808 19809# Compiler flag to prevent dynamic linking. 19810link_static_flag=$lt_lt_prog_compiler_static_RC 19811 19812# Compiler flag to turn off builtin functions. 19813no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19814 19815# Compiler flag to allow reflexive dlopens. 19816export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19817 19818# Compiler flag to generate shared objects directly from archives. 19819whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19820 19821# Compiler flag to generate thread-safe objects. 19822thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19823 19824# Library versioning type. 19825version_type=$version_type 19826 19827# Format of library name prefix. 19828libname_spec=$lt_libname_spec 19829 19830# List of archive names. First name is the real one, the rest are links. 19831# The last name is the one that the linker finds with -lNAME. 19832library_names_spec=$lt_library_names_spec 19833 19834# The coded name of the library, if different from the real name. 19835soname_spec=$lt_soname_spec 19836 19837# Commands used to build and install an old-style archive. 19838RANLIB=$lt_RANLIB 19839old_archive_cmds=$lt_old_archive_cmds_RC 19840old_postinstall_cmds=$lt_old_postinstall_cmds 19841old_postuninstall_cmds=$lt_old_postuninstall_cmds 19842 19843# Create an old-style archive from a shared archive. 19844old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19845 19846# Create a temporary old-style archive to link instead of a shared archive. 19847old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19848 19849# Commands used to build and install a shared archive. 19850archive_cmds=$lt_archive_cmds_RC 19851archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19852postinstall_cmds=$lt_postinstall_cmds 19853postuninstall_cmds=$lt_postuninstall_cmds 19854 19855# Commands used to build a loadable module (assumed same as above if empty) 19856module_cmds=$lt_module_cmds_RC 19857module_expsym_cmds=$lt_module_expsym_cmds_RC 19858 19859# Commands to strip libraries. 19860old_striplib=$lt_old_striplib 19861striplib=$lt_striplib 19862 19863# Dependencies to place before the objects being linked to create a 19864# shared library. 19865predep_objects=$lt_predep_objects_RC 19866 19867# Dependencies to place after the objects being linked to create a 19868# shared library. 19869postdep_objects=$lt_postdep_objects_RC 19870 19871# Dependencies to place before the objects being linked to create a 19872# shared library. 19873predeps=$lt_predeps_RC 19874 19875# Dependencies to place after the objects being linked to create a 19876# shared library. 19877postdeps=$lt_postdeps_RC 19878 19879# The directories searched by this compiler when creating a shared 19880# library 19881compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC 19882 19883# The library search path used internally by the compiler when linking 19884# a shared library. 19885compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19886 19887# Method to check whether dependent libraries are shared objects. 19888deplibs_check_method=$lt_deplibs_check_method 19889 19890# Command to use when deplibs_check_method == file_magic. 19891file_magic_cmd=$lt_file_magic_cmd 19892 19893# Flag that allows shared libraries with undefined symbols to be built. 19894allow_undefined_flag=$lt_allow_undefined_flag_RC 19895 19896# Flag that forces no undefined symbols. 19897no_undefined_flag=$lt_no_undefined_flag_RC 19898 19899# Commands used to finish a libtool library installation in a directory. 19900finish_cmds=$lt_finish_cmds 19901 19902# Same as above, but a single script fragment to be evaled but not shown. 19903finish_eval=$lt_finish_eval 19904 19905# Take the output of nm and produce a listing of raw symbols and C names. 19906global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19907 19908# Transform the output of nm in a proper C declaration 19909global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19910 19911# Transform the output of nm in a C name address pair 19912global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19913 19914# This is the shared library runtime path variable. 19915runpath_var=$runpath_var 19916 19917# This is the shared library path variable. 19918shlibpath_var=$shlibpath_var 19919 19920# Is shlibpath searched before the hard-coded library search path? 19921shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19922 19923# How to hardcode a shared library path into an executable. 19924hardcode_action=$hardcode_action_RC 19925 19926# Whether we should hardcode library paths into libraries. 19927hardcode_into_libs=$hardcode_into_libs 19928 19929# Flag to hardcode \$libdir into a binary during linking. 19930# This must work even if \$libdir does not exist. 19931hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19932 19933# If ld is used when linking, flag to hardcode \$libdir into 19934# a binary during linking. This must work even if \$libdir does 19935# not exist. 19936hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19937 19938# Whether we need a single -rpath flag with a separated argument. 19939hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19940 19941# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19942# resulting binary. 19943hardcode_direct=$hardcode_direct_RC 19944 19945# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19946# resulting binary. 19947hardcode_minus_L=$hardcode_minus_L_RC 19948 19949# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19950# the resulting binary. 19951hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19952 19953# Set to yes if building a shared library automatically hardcodes DIR into the library 19954# and all subsequent libraries and executables linked against it. 19955hardcode_automatic=$hardcode_automatic_RC 19956 19957# Variables whose values should be saved in libtool wrapper scripts and 19958# restored at relink time. 19959variables_saved_for_relink="$variables_saved_for_relink" 19960 19961# Whether libtool must link a program against all its dependency libraries. 19962link_all_deplibs=$link_all_deplibs_RC 19963 19964# Compile-time system search path for libraries 19965sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19966 19967# Run-time system search path for libraries 19968sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19969 19970# Fix the shell variable \$srcfile for the compiler. 19971fix_srcfile_path=$lt_fix_srcfile_path 19972 19973# Set to yes if exported symbols are required. 19974always_export_symbols=$always_export_symbols_RC 19975 19976# The commands to list exported symbols. 19977export_symbols_cmds=$lt_export_symbols_cmds_RC 19978 19979# The commands to extract the exported symbol list from a shared archive. 19980extract_expsyms_cmds=$lt_extract_expsyms_cmds 19981 19982# Symbols that should not be listed in the preloaded symbols. 19983exclude_expsyms=$lt_exclude_expsyms_RC 19984 19985# Symbols that must always be exported. 19986include_expsyms=$lt_include_expsyms_RC 19987 19988# ### END LIBTOOL TAG CONFIG: $tagname 19989 19990__EOF__ 19991 19992 19993else 19994 # If there is no Makefile yet, we rely on a make rule to execute 19995 # `config.status --recheck' to rerun these tests and create the 19996 # libtool script then. 19997 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19998 if test -f "$ltmain_in"; then 19999 test -f Makefile && make "$ltmain" 20000 fi 20001fi 20002 20003 20004ac_ext=c 20005ac_cpp='$CPP $CPPFLAGS' 20006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20008ac_compiler_gnu=$ac_cv_c_compiler_gnu 20009 20010CC="$lt_save_CC" 20011 20012 ;; 20013 20014 *) 20015 { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 20016$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 20017 { (exit 1); exit 1; }; } 20018 ;; 20019 esac 20020 20021 # Append the new tag name to the list of available tags. 20022 if test -n "$tagname" ; then 20023 available_tags="$available_tags $tagname" 20024 fi 20025 fi 20026 done 20027 IFS="$lt_save_ifs" 20028 20029 # Now substitute the updated list of available tags. 20030 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 20031 mv "${ofile}T" "$ofile" 20032 chmod +x "$ofile" 20033 else 20034 rm -f "${ofile}T" 20035 { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 20036$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 20037 { (exit 1); exit 1; }; } 20038 fi 20039fi 20040 20041 20042 20043# This can be used to rebuild libtool when needed 20044LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 20045 20046# Always use our own libtool. 20047LIBTOOL='$(SHELL) $(top_builddir)/libtool' 20048 20049# Prevent multiple expansion 20050 20051 20052 20053 20054 20055 20056 20057 20058 20059 20060 20061 20062 20063 20064 20065 20066 20067 20068 20069 20070ac_ext=c 20071ac_cpp='$CPP $CPPFLAGS' 20072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20074ac_compiler_gnu=$ac_cv_c_compiler_gnu 20075if test -n "$ac_tool_prefix"; then 20076 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 20077set dummy ${ac_tool_prefix}gcc; ac_word=$2 20078{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20079$as_echo_n "checking for $ac_word... " >&6; } 20080if test "${ac_cv_prog_CC+set}" = set; then 20081 $as_echo_n "(cached) " >&6 20082else 20083 if test -n "$CC"; then 20084 ac_cv_prog_CC="$CC" # Let the user override the test. 20085else 20086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20087for as_dir in $PATH 20088do 20089 IFS=$as_save_IFS 20090 test -z "$as_dir" && as_dir=. 20091 for ac_exec_ext in '' $ac_executable_extensions; do 20092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20093 ac_cv_prog_CC="${ac_tool_prefix}gcc" 20094 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20095 break 2 20096 fi 20097done 20098done 20099IFS=$as_save_IFS 20100 20101fi 20102fi 20103CC=$ac_cv_prog_CC 20104if test -n "$CC"; then 20105 { $as_echo "$as_me:$LINENO: result: $CC" >&5 20106$as_echo "$CC" >&6; } 20107else 20108 { $as_echo "$as_me:$LINENO: result: no" >&5 20109$as_echo "no" >&6; } 20110fi 20111 20112 20113fi 20114if test -z "$ac_cv_prog_CC"; then 20115 ac_ct_CC=$CC 20116 # Extract the first word of "gcc", so it can be a program name with args. 20117set dummy gcc; ac_word=$2 20118{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20119$as_echo_n "checking for $ac_word... " >&6; } 20120if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 20121 $as_echo_n "(cached) " >&6 20122else 20123 if test -n "$ac_ct_CC"; then 20124 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 20125else 20126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20127for as_dir in $PATH 20128do 20129 IFS=$as_save_IFS 20130 test -z "$as_dir" && as_dir=. 20131 for ac_exec_ext in '' $ac_executable_extensions; do 20132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20133 ac_cv_prog_ac_ct_CC="gcc" 20134 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20135 break 2 20136 fi 20137done 20138done 20139IFS=$as_save_IFS 20140 20141fi 20142fi 20143ac_ct_CC=$ac_cv_prog_ac_ct_CC 20144if test -n "$ac_ct_CC"; then 20145 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 20146$as_echo "$ac_ct_CC" >&6; } 20147else 20148 { $as_echo "$as_me:$LINENO: result: no" >&5 20149$as_echo "no" >&6; } 20150fi 20151 20152 if test "x$ac_ct_CC" = x; then 20153 CC="" 20154 else 20155 case $cross_compiling:$ac_tool_warned in 20156yes:) 20157{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 20158$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 20159ac_tool_warned=yes ;; 20160esac 20161 CC=$ac_ct_CC 20162 fi 20163else 20164 CC="$ac_cv_prog_CC" 20165fi 20166 20167if test -z "$CC"; then 20168 if test -n "$ac_tool_prefix"; then 20169 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 20170set dummy ${ac_tool_prefix}cc; ac_word=$2 20171{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20172$as_echo_n "checking for $ac_word... " >&6; } 20173if test "${ac_cv_prog_CC+set}" = set; then 20174 $as_echo_n "(cached) " >&6 20175else 20176 if test -n "$CC"; then 20177 ac_cv_prog_CC="$CC" # Let the user override the test. 20178else 20179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20180for as_dir in $PATH 20181do 20182 IFS=$as_save_IFS 20183 test -z "$as_dir" && as_dir=. 20184 for ac_exec_ext in '' $ac_executable_extensions; do 20185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20186 ac_cv_prog_CC="${ac_tool_prefix}cc" 20187 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20188 break 2 20189 fi 20190done 20191done 20192IFS=$as_save_IFS 20193 20194fi 20195fi 20196CC=$ac_cv_prog_CC 20197if test -n "$CC"; then 20198 { $as_echo "$as_me:$LINENO: result: $CC" >&5 20199$as_echo "$CC" >&6; } 20200else 20201 { $as_echo "$as_me:$LINENO: result: no" >&5 20202$as_echo "no" >&6; } 20203fi 20204 20205 20206 fi 20207fi 20208if test -z "$CC"; then 20209 # Extract the first word of "cc", so it can be a program name with args. 20210set dummy cc; ac_word=$2 20211{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20212$as_echo_n "checking for $ac_word... " >&6; } 20213if test "${ac_cv_prog_CC+set}" = set; then 20214 $as_echo_n "(cached) " >&6 20215else 20216 if test -n "$CC"; then 20217 ac_cv_prog_CC="$CC" # Let the user override the test. 20218else 20219 ac_prog_rejected=no 20220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20221for as_dir in $PATH 20222do 20223 IFS=$as_save_IFS 20224 test -z "$as_dir" && as_dir=. 20225 for ac_exec_ext in '' $ac_executable_extensions; do 20226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20227 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 20228 ac_prog_rejected=yes 20229 continue 20230 fi 20231 ac_cv_prog_CC="cc" 20232 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20233 break 2 20234 fi 20235done 20236done 20237IFS=$as_save_IFS 20238 20239if test $ac_prog_rejected = yes; then 20240 # We found a bogon in the path, so make sure we never use it. 20241 set dummy $ac_cv_prog_CC 20242 shift 20243 if test $# != 0; then 20244 # We chose a different compiler from the bogus one. 20245 # However, it has the same basename, so the bogon will be chosen 20246 # first if we set CC to just the basename; use the full file name. 20247 shift 20248 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 20249 fi 20250fi 20251fi 20252fi 20253CC=$ac_cv_prog_CC 20254if test -n "$CC"; then 20255 { $as_echo "$as_me:$LINENO: result: $CC" >&5 20256$as_echo "$CC" >&6; } 20257else 20258 { $as_echo "$as_me:$LINENO: result: no" >&5 20259$as_echo "no" >&6; } 20260fi 20261 20262 20263fi 20264if test -z "$CC"; then 20265 if test -n "$ac_tool_prefix"; then 20266 for ac_prog in cl.exe 20267 do 20268 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 20269set dummy $ac_tool_prefix$ac_prog; ac_word=$2 20270{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20271$as_echo_n "checking for $ac_word... " >&6; } 20272if test "${ac_cv_prog_CC+set}" = set; then 20273 $as_echo_n "(cached) " >&6 20274else 20275 if test -n "$CC"; then 20276 ac_cv_prog_CC="$CC" # Let the user override the test. 20277else 20278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20279for as_dir in $PATH 20280do 20281 IFS=$as_save_IFS 20282 test -z "$as_dir" && as_dir=. 20283 for ac_exec_ext in '' $ac_executable_extensions; do 20284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20285 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 20286 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20287 break 2 20288 fi 20289done 20290done 20291IFS=$as_save_IFS 20292 20293fi 20294fi 20295CC=$ac_cv_prog_CC 20296if test -n "$CC"; then 20297 { $as_echo "$as_me:$LINENO: result: $CC" >&5 20298$as_echo "$CC" >&6; } 20299else 20300 { $as_echo "$as_me:$LINENO: result: no" >&5 20301$as_echo "no" >&6; } 20302fi 20303 20304 20305 test -n "$CC" && break 20306 done 20307fi 20308if test -z "$CC"; then 20309 ac_ct_CC=$CC 20310 for ac_prog in cl.exe 20311do 20312 # Extract the first word of "$ac_prog", so it can be a program name with args. 20313set dummy $ac_prog; ac_word=$2 20314{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20315$as_echo_n "checking for $ac_word... " >&6; } 20316if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 20317 $as_echo_n "(cached) " >&6 20318else 20319 if test -n "$ac_ct_CC"; then 20320 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 20321else 20322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20323for as_dir in $PATH 20324do 20325 IFS=$as_save_IFS 20326 test -z "$as_dir" && as_dir=. 20327 for ac_exec_ext in '' $ac_executable_extensions; do 20328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20329 ac_cv_prog_ac_ct_CC="$ac_prog" 20330 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20331 break 2 20332 fi 20333done 20334done 20335IFS=$as_save_IFS 20336 20337fi 20338fi 20339ac_ct_CC=$ac_cv_prog_ac_ct_CC 20340if test -n "$ac_ct_CC"; then 20341 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 20342$as_echo "$ac_ct_CC" >&6; } 20343else 20344 { $as_echo "$as_me:$LINENO: result: no" >&5 20345$as_echo "no" >&6; } 20346fi 20347 20348 20349 test -n "$ac_ct_CC" && break 20350done 20351 20352 if test "x$ac_ct_CC" = x; then 20353 CC="" 20354 else 20355 case $cross_compiling:$ac_tool_warned in 20356yes:) 20357{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 20358$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 20359ac_tool_warned=yes ;; 20360esac 20361 CC=$ac_ct_CC 20362 fi 20363fi 20364 20365fi 20366 20367 20368test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 20369$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20370{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 20371See \`config.log' for more details." >&5 20372$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 20373See \`config.log' for more details." >&2;} 20374 { (exit 1); exit 1; }; }; } 20375 20376# Provide some information about the compiler. 20377$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 20378set X $ac_compile 20379ac_compiler=$2 20380{ (ac_try="$ac_compiler --version >&5" 20381case "(($ac_try" in 20382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20383 *) ac_try_echo=$ac_try;; 20384esac 20385eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20386$as_echo "$ac_try_echo") >&5 20387 (eval "$ac_compiler --version >&5") 2>&5 20388 ac_status=$? 20389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20390 (exit $ac_status); } 20391{ (ac_try="$ac_compiler -v >&5" 20392case "(($ac_try" in 20393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20394 *) ac_try_echo=$ac_try;; 20395esac 20396eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20397$as_echo "$ac_try_echo") >&5 20398 (eval "$ac_compiler -v >&5") 2>&5 20399 ac_status=$? 20400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20401 (exit $ac_status); } 20402{ (ac_try="$ac_compiler -V >&5" 20403case "(($ac_try" in 20404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20405 *) ac_try_echo=$ac_try;; 20406esac 20407eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20408$as_echo "$ac_try_echo") >&5 20409 (eval "$ac_compiler -V >&5") 2>&5 20410 ac_status=$? 20411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20412 (exit $ac_status); } 20413 20414{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 20415$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 20416if test "${ac_cv_c_compiler_gnu+set}" = set; then 20417 $as_echo_n "(cached) " >&6 20418else 20419 cat >conftest.$ac_ext <<_ACEOF 20420/* confdefs.h. */ 20421_ACEOF 20422cat confdefs.h >>conftest.$ac_ext 20423cat >>conftest.$ac_ext <<_ACEOF 20424/* end confdefs.h. */ 20425 20426int 20427main () 20428{ 20429#ifndef __GNUC__ 20430 choke me 20431#endif 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_compiler_gnu=yes 20456else 20457 $as_echo "$as_me: failed program was:" >&5 20458sed 's/^/| /' conftest.$ac_ext >&5 20459 20460 ac_compiler_gnu=no 20461fi 20462 20463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20464ac_cv_c_compiler_gnu=$ac_compiler_gnu 20465 20466fi 20467{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 20468$as_echo "$ac_cv_c_compiler_gnu" >&6; } 20469if test $ac_compiler_gnu = yes; then 20470 GCC=yes 20471else 20472 GCC= 20473fi 20474ac_test_CFLAGS=${CFLAGS+set} 20475ac_save_CFLAGS=$CFLAGS 20476{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 20477$as_echo_n "checking whether $CC accepts -g... " >&6; } 20478if test "${ac_cv_prog_cc_g+set}" = set; then 20479 $as_echo_n "(cached) " >&6 20480else 20481 ac_save_c_werror_flag=$ac_c_werror_flag 20482 ac_c_werror_flag=yes 20483 ac_cv_prog_cc_g=no 20484 CFLAGS="-g" 20485 cat >conftest.$ac_ext <<_ACEOF 20486/* confdefs.h. */ 20487_ACEOF 20488cat confdefs.h >>conftest.$ac_ext 20489cat >>conftest.$ac_ext <<_ACEOF 20490/* end confdefs.h. */ 20491 20492int 20493main () 20494{ 20495 20496 ; 20497 return 0; 20498} 20499_ACEOF 20500rm -f conftest.$ac_objext 20501if { (ac_try="$ac_compile" 20502case "(($ac_try" in 20503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20504 *) ac_try_echo=$ac_try;; 20505esac 20506eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20507$as_echo "$ac_try_echo") >&5 20508 (eval "$ac_compile") 2>conftest.er1 20509 ac_status=$? 20510 grep -v '^ *+' conftest.er1 >conftest.err 20511 rm -f conftest.er1 20512 cat conftest.err >&5 20513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20514 (exit $ac_status); } && { 20515 test -z "$ac_c_werror_flag" || 20516 test ! -s conftest.err 20517 } && test -s conftest.$ac_objext; then 20518 ac_cv_prog_cc_g=yes 20519else 20520 $as_echo "$as_me: failed program was:" >&5 20521sed 's/^/| /' conftest.$ac_ext >&5 20522 20523 CFLAGS="" 20524 cat >conftest.$ac_ext <<_ACEOF 20525/* confdefs.h. */ 20526_ACEOF 20527cat confdefs.h >>conftest.$ac_ext 20528cat >>conftest.$ac_ext <<_ACEOF 20529/* end confdefs.h. */ 20530 20531int 20532main () 20533{ 20534 20535 ; 20536 return 0; 20537} 20538_ACEOF 20539rm -f conftest.$ac_objext 20540if { (ac_try="$ac_compile" 20541case "(($ac_try" in 20542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20543 *) ac_try_echo=$ac_try;; 20544esac 20545eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20546$as_echo "$ac_try_echo") >&5 20547 (eval "$ac_compile") 2>conftest.er1 20548 ac_status=$? 20549 grep -v '^ *+' conftest.er1 >conftest.err 20550 rm -f conftest.er1 20551 cat conftest.err >&5 20552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20553 (exit $ac_status); } && { 20554 test -z "$ac_c_werror_flag" || 20555 test ! -s conftest.err 20556 } && test -s conftest.$ac_objext; then 20557 : 20558else 20559 $as_echo "$as_me: failed program was:" >&5 20560sed 's/^/| /' conftest.$ac_ext >&5 20561 20562 ac_c_werror_flag=$ac_save_c_werror_flag 20563 CFLAGS="-g" 20564 cat >conftest.$ac_ext <<_ACEOF 20565/* confdefs.h. */ 20566_ACEOF 20567cat confdefs.h >>conftest.$ac_ext 20568cat >>conftest.$ac_ext <<_ACEOF 20569/* end confdefs.h. */ 20570 20571int 20572main () 20573{ 20574 20575 ; 20576 return 0; 20577} 20578_ACEOF 20579rm -f conftest.$ac_objext 20580if { (ac_try="$ac_compile" 20581case "(($ac_try" in 20582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20583 *) ac_try_echo=$ac_try;; 20584esac 20585eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20586$as_echo "$ac_try_echo") >&5 20587 (eval "$ac_compile") 2>conftest.er1 20588 ac_status=$? 20589 grep -v '^ *+' conftest.er1 >conftest.err 20590 rm -f conftest.er1 20591 cat conftest.err >&5 20592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20593 (exit $ac_status); } && { 20594 test -z "$ac_c_werror_flag" || 20595 test ! -s conftest.err 20596 } && test -s conftest.$ac_objext; then 20597 ac_cv_prog_cc_g=yes 20598else 20599 $as_echo "$as_me: failed program was:" >&5 20600sed 's/^/| /' conftest.$ac_ext >&5 20601 20602 20603fi 20604 20605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20606fi 20607 20608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20609fi 20610 20611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20612 ac_c_werror_flag=$ac_save_c_werror_flag 20613fi 20614{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 20615$as_echo "$ac_cv_prog_cc_g" >&6; } 20616if test "$ac_test_CFLAGS" = set; then 20617 CFLAGS=$ac_save_CFLAGS 20618elif test $ac_cv_prog_cc_g = yes; then 20619 if test "$GCC" = yes; then 20620 CFLAGS="-g -O2" 20621 else 20622 CFLAGS="-g" 20623 fi 20624else 20625 if test "$GCC" = yes; then 20626 CFLAGS="-O2" 20627 else 20628 CFLAGS= 20629 fi 20630fi 20631{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 20632$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 20633if test "${ac_cv_prog_cc_c89+set}" = set; then 20634 $as_echo_n "(cached) " >&6 20635else 20636 ac_cv_prog_cc_c89=no 20637ac_save_CC=$CC 20638cat >conftest.$ac_ext <<_ACEOF 20639/* confdefs.h. */ 20640_ACEOF 20641cat confdefs.h >>conftest.$ac_ext 20642cat >>conftest.$ac_ext <<_ACEOF 20643/* end confdefs.h. */ 20644#include <stdarg.h> 20645#include <stdio.h> 20646#include <sys/types.h> 20647#include <sys/stat.h> 20648/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 20649struct buf { int x; }; 20650FILE * (*rcsopen) (struct buf *, struct stat *, int); 20651static char *e (p, i) 20652 char **p; 20653 int i; 20654{ 20655 return p[i]; 20656} 20657static char *f (char * (*g) (char **, int), char **p, ...) 20658{ 20659 char *s; 20660 va_list v; 20661 va_start (v,p); 20662 s = g (p, va_arg (v,int)); 20663 va_end (v); 20664 return s; 20665} 20666 20667/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 20668 function prototypes and stuff, but not '\xHH' hex character constants. 20669 These don't provoke an error unfortunately, instead are silently treated 20670 as 'x'. The following induces an error, until -std is added to get 20671 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 20672 array size at least. It's necessary to write '\x00'==0 to get something 20673 that's true only with -std. */ 20674int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 20675 20676/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 20677 inside strings and character constants. */ 20678#define FOO(x) 'x' 20679int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 20680 20681int test (int i, double x); 20682struct s1 {int (*f) (int a);}; 20683struct s2 {int (*f) (double a);}; 20684int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 20685int argc; 20686char **argv; 20687int 20688main () 20689{ 20690return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 20691 ; 20692 return 0; 20693} 20694_ACEOF 20695for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 20696 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 20697do 20698 CC="$ac_save_CC $ac_arg" 20699 rm -f conftest.$ac_objext 20700if { (ac_try="$ac_compile" 20701case "(($ac_try" in 20702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20703 *) ac_try_echo=$ac_try;; 20704esac 20705eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20706$as_echo "$ac_try_echo") >&5 20707 (eval "$ac_compile") 2>conftest.er1 20708 ac_status=$? 20709 grep -v '^ *+' conftest.er1 >conftest.err 20710 rm -f conftest.er1 20711 cat conftest.err >&5 20712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20713 (exit $ac_status); } && { 20714 test -z "$ac_c_werror_flag" || 20715 test ! -s conftest.err 20716 } && test -s conftest.$ac_objext; then 20717 ac_cv_prog_cc_c89=$ac_arg 20718else 20719 $as_echo "$as_me: failed program was:" >&5 20720sed 's/^/| /' conftest.$ac_ext >&5 20721 20722 20723fi 20724 20725rm -f core conftest.err conftest.$ac_objext 20726 test "x$ac_cv_prog_cc_c89" != "xno" && break 20727done 20728rm -f conftest.$ac_ext 20729CC=$ac_save_CC 20730 20731fi 20732# AC_CACHE_VAL 20733case "x$ac_cv_prog_cc_c89" in 20734 x) 20735 { $as_echo "$as_me:$LINENO: result: none needed" >&5 20736$as_echo "none needed" >&6; } ;; 20737 xno) 20738 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 20739$as_echo "unsupported" >&6; } ;; 20740 *) 20741 CC="$CC $ac_cv_prog_cc_c89" 20742 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 20743$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 20744esac 20745 20746 20747ac_ext=c 20748ac_cpp='$CPP $CPPFLAGS' 20749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20751ac_compiler_gnu=$ac_cv_c_compiler_gnu 20752 20753depcc="$CC" am_compiler_list= 20754 20755{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 20756$as_echo_n "checking dependency style of $depcc... " >&6; } 20757if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 20758 $as_echo_n "(cached) " >&6 20759else 20760 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 20761 # We make a subdir and do the tests there. Otherwise we can end up 20762 # making bogus files that we don't know about and never remove. For 20763 # instance it was reported that on HP-UX the gcc test will end up 20764 # making a dummy file named `D' -- because `-MD' means `put the output 20765 # in D'. 20766 mkdir conftest.dir 20767 # Copy depcomp to subdir because otherwise we won't find it if we're 20768 # using a relative directory. 20769 cp "$am_depcomp" conftest.dir 20770 cd conftest.dir 20771 # We will build objects and dependencies in a subdirectory because 20772 # it helps to detect inapplicable dependency modes. For instance 20773 # both Tru64's cc and ICC support -MD to output dependencies as a 20774 # side effect of compilation, but ICC will put the dependencies in 20775 # the current directory while Tru64 will put them in the object 20776 # directory. 20777 mkdir sub 20778 20779 am_cv_CC_dependencies_compiler_type=none 20780 if test "$am_compiler_list" = ""; then 20781 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 20782 fi 20783 am__universal=false 20784 case " $depcc " in #( 20785 *\ -arch\ *\ -arch\ *) am__universal=true ;; 20786 esac 20787 20788 for depmode in $am_compiler_list; do 20789 # Setup a source with many dependencies, because some compilers 20790 # like to wrap large dependency lists on column 80 (with \), and 20791 # we should not choose a depcomp mode which is confused by this. 20792 # 20793 # We need to recreate these files for each test, as the compiler may 20794 # overwrite some of them when testing with obscure command lines. 20795 # This happens at least with the AIX C compiler. 20796 : > sub/conftest.c 20797 for i in 1 2 3 4 5 6; do 20798 echo '#include "conftst'$i'.h"' >> sub/conftest.c 20799 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 20800 # Solaris 8's {/usr,}/bin/sh. 20801 touch sub/conftst$i.h 20802 done 20803 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 20804 20805 # We check with `-c' and `-o' for the sake of the "dashmstdout" 20806 # mode. It turns out that the SunPro C++ compiler does not properly 20807 # handle `-M -o', and we need to detect this. Also, some Intel 20808 # versions had trouble with output in subdirs 20809 am__obj=sub/conftest.${OBJEXT-o} 20810 am__minus_obj="-o $am__obj" 20811 case $depmode in 20812 gcc) 20813 # This depmode causes a compiler race in universal mode. 20814 test "$am__universal" = false || continue 20815 ;; 20816 nosideeffect) 20817 # after this tag, mechanisms are not by side-effect, so they'll 20818 # only be used when explicitly requested 20819 if test "x$enable_dependency_tracking" = xyes; then 20820 continue 20821 else 20822 break 20823 fi 20824 ;; 20825 msvisualcpp | msvcmsys) 20826 # This compiler won't grok `-c -o', but also, the minuso test has 20827 # not run yet. These depmodes are late enough in the game, and 20828 # so weak that their functioning should not be impacted. 20829 am__obj=conftest.${OBJEXT-o} 20830 am__minus_obj= 20831 ;; 20832 none) break ;; 20833 esac 20834 if depmode=$depmode \ 20835 source=sub/conftest.c object=$am__obj \ 20836 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 20837 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 20838 >/dev/null 2>conftest.err && 20839 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 20840 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 20841 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 20842 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 20843 # icc doesn't choke on unknown options, it will just issue warnings 20844 # or remarks (even with -Werror). So we grep stderr for any message 20845 # that says an option was ignored or not supported. 20846 # When given -MP, icc 7.0 and 7.1 complain thusly: 20847 # icc: Command line warning: ignoring option '-M'; no argument required 20848 # The diagnosis changed in icc 8.0: 20849 # icc: Command line remark: option '-MP' not supported 20850 if (grep 'ignoring option' conftest.err || 20851 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 20852 am_cv_CC_dependencies_compiler_type=$depmode 20853 break 20854 fi 20855 fi 20856 done 20857 20858 cd .. 20859 rm -rf conftest.dir 20860else 20861 am_cv_CC_dependencies_compiler_type=none 20862fi 20863 20864fi 20865{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 20866$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 20867CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 20868 20869 if 20870 test "x$enable_dependency_tracking" != xno \ 20871 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 20872 am__fastdepCC_TRUE= 20873 am__fastdepCC_FALSE='#' 20874else 20875 am__fastdepCC_TRUE='#' 20876 am__fastdepCC_FALSE= 20877fi 20878 20879 20880 20881 20882if test "x$GCC" = xyes ; then 20883 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 20884-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 20885-Wbad-function-cast" 20886 case `gcc -dumpversion` in 20887 3.4.* | 4.*) 20888 CWARNFLAGS+=" -Wold-style-definition -Wdeclaration-after-statement" 20889 ;; 20890 esac 20891else 20892 { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5 20893$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; } 20894if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then 20895 $as_echo_n "(cached) " >&6 20896else 20897 cat >conftest.$ac_ext <<_ACEOF 20898/* confdefs.h. */ 20899_ACEOF 20900cat confdefs.h >>conftest.$ac_ext 20901cat >>conftest.$ac_ext <<_ACEOF 20902/* end confdefs.h. */ 20903$ac_includes_default 20904int 20905main () 20906{ 20907#ifndef __SUNPRO_C 20908 (void) __SUNPRO_C; 20909#endif 20910 20911 ; 20912 return 0; 20913} 20914_ACEOF 20915rm -f conftest.$ac_objext 20916if { (ac_try="$ac_compile" 20917case "(($ac_try" in 20918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20919 *) ac_try_echo=$ac_try;; 20920esac 20921eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20922$as_echo "$ac_try_echo") >&5 20923 (eval "$ac_compile") 2>conftest.er1 20924 ac_status=$? 20925 grep -v '^ *+' conftest.er1 >conftest.err 20926 rm -f conftest.er1 20927 cat conftest.err >&5 20928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20929 (exit $ac_status); } && { 20930 test -z "$ac_c_werror_flag" || 20931 test ! -s conftest.err 20932 } && test -s conftest.$ac_objext; then 20933 ac_cv_have_decl___SUNPRO_C=yes 20934else 20935 $as_echo "$as_me: failed program was:" >&5 20936sed 's/^/| /' conftest.$ac_ext >&5 20937 20938 ac_cv_have_decl___SUNPRO_C=no 20939fi 20940 20941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20942fi 20943{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5 20944$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; } 20945if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then 20946 SUNCC="yes" 20947else 20948 SUNCC="no" 20949fi 20950 20951 if test "x$SUNCC" = "xyes"; then 20952 CWARNFLAGS="-v" 20953 fi 20954fi 20955 20956 20957 20958 20959 20960 20961 20962# Check whether --with-xorg-module-dir was given. 20963if test "${with_xorg_module_dir+set}" = set; then 20964 withval=$with_xorg_module_dir; moduledir="$withval" 20965else 20966 moduledir="$libdir/xorg/modules" 20967fi 20968 20969 20970# Checks for extensions 20971 20972 SAVE_CFLAGS="$CFLAGS" 20973 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 20974 cat >conftest.$ac_ext <<_ACEOF 20975/* confdefs.h. */ 20976_ACEOF 20977cat confdefs.h >>conftest.$ac_ext 20978cat >>conftest.$ac_ext <<_ACEOF 20979/* end confdefs.h. */ 20980 20981#include "xorg-server.h" 20982#if !defined RANDR 20983#error RANDR not defined 20984#endif 20985 20986int 20987main () 20988{ 20989 20990 ; 20991 return 0; 20992} 20993_ACEOF 20994rm -f conftest.$ac_objext 20995if { (ac_try="$ac_compile" 20996case "(($ac_try" in 20997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20998 *) ac_try_echo=$ac_try;; 20999esac 21000eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21001$as_echo "$ac_try_echo") >&5 21002 (eval "$ac_compile") 2>conftest.er1 21003 ac_status=$? 21004 grep -v '^ *+' conftest.er1 >conftest.err 21005 rm -f conftest.er1 21006 cat conftest.err >&5 21007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21008 (exit $ac_status); } && { 21009 test -z "$ac_c_werror_flag" || 21010 test ! -s conftest.err 21011 } && test -s conftest.$ac_objext; then 21012 _EXT_CHECK=yes 21013else 21014 $as_echo "$as_me: failed program was:" >&5 21015sed 's/^/| /' conftest.$ac_ext >&5 21016 21017 _EXT_CHECK=no 21018fi 21019 21020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21021 CFLAGS="$SAVE_CFLAGS" 21022 { $as_echo "$as_me:$LINENO: checking if RANDR is defined" >&5 21023$as_echo_n "checking if RANDR is defined... " >&6; } 21024 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 21025$as_echo "$_EXT_CHECK" >&6; } 21026 if test "$_EXT_CHECK" != no; then 21027 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 21028 fi 21029 21030 21031 SAVE_CFLAGS="$CFLAGS" 21032 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 21033 cat >conftest.$ac_ext <<_ACEOF 21034/* confdefs.h. */ 21035_ACEOF 21036cat confdefs.h >>conftest.$ac_ext 21037cat >>conftest.$ac_ext <<_ACEOF 21038/* end confdefs.h. */ 21039 21040#include "xorg-server.h" 21041#if !defined RENDER 21042#error RENDER not defined 21043#endif 21044 21045int 21046main () 21047{ 21048 21049 ; 21050 return 0; 21051} 21052_ACEOF 21053rm -f conftest.$ac_objext 21054if { (ac_try="$ac_compile" 21055case "(($ac_try" in 21056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21057 *) ac_try_echo=$ac_try;; 21058esac 21059eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21060$as_echo "$ac_try_echo") >&5 21061 (eval "$ac_compile") 2>conftest.er1 21062 ac_status=$? 21063 grep -v '^ *+' conftest.er1 >conftest.err 21064 rm -f conftest.er1 21065 cat conftest.err >&5 21066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21067 (exit $ac_status); } && { 21068 test -z "$ac_c_werror_flag" || 21069 test ! -s conftest.err 21070 } && test -s conftest.$ac_objext; then 21071 _EXT_CHECK=yes 21072else 21073 $as_echo "$as_me: failed program was:" >&5 21074sed 's/^/| /' conftest.$ac_ext >&5 21075 21076 _EXT_CHECK=no 21077fi 21078 21079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21080 CFLAGS="$SAVE_CFLAGS" 21081 { $as_echo "$as_me:$LINENO: checking if RENDER is defined" >&5 21082$as_echo_n "checking if RENDER is defined... " >&6; } 21083 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 21084$as_echo "$_EXT_CHECK" >&6; } 21085 if test "$_EXT_CHECK" != no; then 21086 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 21087 fi 21088 21089 21090 SAVE_CFLAGS="$CFLAGS" 21091 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 21092 cat >conftest.$ac_ext <<_ACEOF 21093/* confdefs.h. */ 21094_ACEOF 21095cat confdefs.h >>conftest.$ac_ext 21096cat >>conftest.$ac_ext <<_ACEOF 21097/* end confdefs.h. */ 21098 21099#include "xorg-server.h" 21100#if !defined XV 21101#error XV not defined 21102#endif 21103 21104int 21105main () 21106{ 21107 21108 ; 21109 return 0; 21110} 21111_ACEOF 21112rm -f conftest.$ac_objext 21113if { (ac_try="$ac_compile" 21114case "(($ac_try" in 21115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21116 *) ac_try_echo=$ac_try;; 21117esac 21118eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21119$as_echo "$ac_try_echo") >&5 21120 (eval "$ac_compile") 2>conftest.er1 21121 ac_status=$? 21122 grep -v '^ *+' conftest.er1 >conftest.err 21123 rm -f conftest.er1 21124 cat conftest.err >&5 21125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21126 (exit $ac_status); } && { 21127 test -z "$ac_c_werror_flag" || 21128 test ! -s conftest.err 21129 } && test -s conftest.$ac_objext; then 21130 _EXT_CHECK=yes 21131else 21132 $as_echo "$as_me: failed program was:" >&5 21133sed 's/^/| /' conftest.$ac_ext >&5 21134 21135 _EXT_CHECK=no 21136fi 21137 21138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21139 CFLAGS="$SAVE_CFLAGS" 21140 { $as_echo "$as_me:$LINENO: checking if XV is defined" >&5 21141$as_echo_n "checking if XV is defined... " >&6; } 21142 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 21143$as_echo "$_EXT_CHECK" >&6; } 21144 if test "$_EXT_CHECK" != no; then 21145 REQUIRED_MODULES="$REQUIRED_MODULES videoproto" 21146 fi 21147 21148 21149 SAVE_CFLAGS="$CFLAGS" 21150 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 21151 cat >conftest.$ac_ext <<_ACEOF 21152/* confdefs.h. */ 21153_ACEOF 21154cat confdefs.h >>conftest.$ac_ext 21155cat >>conftest.$ac_ext <<_ACEOF 21156/* end confdefs.h. */ 21157 21158#include "xorg-server.h" 21159#if !defined DPMSExtension 21160#error DPMSExtension not defined 21161#endif 21162 21163int 21164main () 21165{ 21166 21167 ; 21168 return 0; 21169} 21170_ACEOF 21171rm -f conftest.$ac_objext 21172if { (ac_try="$ac_compile" 21173case "(($ac_try" in 21174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21175 *) ac_try_echo=$ac_try;; 21176esac 21177eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21178$as_echo "$ac_try_echo") >&5 21179 (eval "$ac_compile") 2>conftest.er1 21180 ac_status=$? 21181 grep -v '^ *+' conftest.er1 >conftest.err 21182 rm -f conftest.er1 21183 cat conftest.err >&5 21184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21185 (exit $ac_status); } && { 21186 test -z "$ac_c_werror_flag" || 21187 test ! -s conftest.err 21188 } && test -s conftest.$ac_objext; then 21189 _EXT_CHECK=yes 21190else 21191 $as_echo "$as_me: failed program was:" >&5 21192sed 's/^/| /' conftest.$ac_ext >&5 21193 21194 _EXT_CHECK=no 21195fi 21196 21197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21198 CFLAGS="$SAVE_CFLAGS" 21199 { $as_echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5 21200$as_echo_n "checking if DPMSExtension is defined... " >&6; } 21201 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 21202$as_echo "$_EXT_CHECK" >&6; } 21203 if test "$_EXT_CHECK" != no; then 21204 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 21205 fi 21206 21207 21208# Checks for pkg-config packages 21209 21210 21211if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 21212 if test -n "$ac_tool_prefix"; then 21213 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 21214set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 21215{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 21216$as_echo_n "checking for $ac_word... " >&6; } 21217if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 21218 $as_echo_n "(cached) " >&6 21219else 21220 case $PKG_CONFIG in 21221 [\\/]* | ?:[\\/]*) 21222 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 21223 ;; 21224 *) 21225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21226for as_dir in $PATH 21227do 21228 IFS=$as_save_IFS 21229 test -z "$as_dir" && as_dir=. 21230 for ac_exec_ext in '' $ac_executable_extensions; do 21231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 21232 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 21233 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 21234 break 2 21235 fi 21236done 21237done 21238IFS=$as_save_IFS 21239 21240 ;; 21241esac 21242fi 21243PKG_CONFIG=$ac_cv_path_PKG_CONFIG 21244if test -n "$PKG_CONFIG"; then 21245 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 21246$as_echo "$PKG_CONFIG" >&6; } 21247else 21248 { $as_echo "$as_me:$LINENO: result: no" >&5 21249$as_echo "no" >&6; } 21250fi 21251 21252 21253fi 21254if test -z "$ac_cv_path_PKG_CONFIG"; then 21255 ac_pt_PKG_CONFIG=$PKG_CONFIG 21256 # Extract the first word of "pkg-config", so it can be a program name with args. 21257set dummy pkg-config; ac_word=$2 21258{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 21259$as_echo_n "checking for $ac_word... " >&6; } 21260if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 21261 $as_echo_n "(cached) " >&6 21262else 21263 case $ac_pt_PKG_CONFIG in 21264 [\\/]* | ?:[\\/]*) 21265 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 21266 ;; 21267 *) 21268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21269for as_dir in $PATH 21270do 21271 IFS=$as_save_IFS 21272 test -z "$as_dir" && as_dir=. 21273 for ac_exec_ext in '' $ac_executable_extensions; do 21274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 21275 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 21276 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 21277 break 2 21278 fi 21279done 21280done 21281IFS=$as_save_IFS 21282 21283 ;; 21284esac 21285fi 21286ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 21287if test -n "$ac_pt_PKG_CONFIG"; then 21288 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 21289$as_echo "$ac_pt_PKG_CONFIG" >&6; } 21290else 21291 { $as_echo "$as_me:$LINENO: result: no" >&5 21292$as_echo "no" >&6; } 21293fi 21294 21295 if test "x$ac_pt_PKG_CONFIG" = x; then 21296 PKG_CONFIG="" 21297 else 21298 case $cross_compiling:$ac_tool_warned in 21299yes:) 21300{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 21301$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 21302ac_tool_warned=yes ;; 21303esac 21304 PKG_CONFIG=$ac_pt_PKG_CONFIG 21305 fi 21306else 21307 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 21308fi 21309 21310fi 21311if test -n "$PKG_CONFIG"; then 21312 _pkg_min_version=0.9.0 21313 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 21314$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 21315 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 21316 { $as_echo "$as_me:$LINENO: result: yes" >&5 21317$as_echo "yes" >&6; } 21318 else 21319 { $as_echo "$as_me:$LINENO: result: no" >&5 21320$as_echo "no" >&6; } 21321 PKG_CONFIG="" 21322 fi 21323 21324fi 21325 21326pkg_failed=no 21327{ $as_echo "$as_me:$LINENO: checking for XORG" >&5 21328$as_echo_n "checking for XORG... " >&6; } 21329 21330if test -n "$XORG_CFLAGS"; then 21331 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 21332 elif test -n "$PKG_CONFIG"; then 21333 if test -n "$PKG_CONFIG" && \ 21334 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.4 xproto fontsproto \$REQUIRED_MODULES\"") >&5 21335 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES") 2>&5 21336 ac_status=$? 21337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21338 (exit $ac_status); }; then 21339 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 21340else 21341 pkg_failed=yes 21342fi 21343 else 21344 pkg_failed=untried 21345fi 21346if test -n "$XORG_LIBS"; then 21347 pkg_cv_XORG_LIBS="$XORG_LIBS" 21348 elif test -n "$PKG_CONFIG"; then 21349 if test -n "$PKG_CONFIG" && \ 21350 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.4 xproto fontsproto \$REQUIRED_MODULES\"") >&5 21351 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES") 2>&5 21352 ac_status=$? 21353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21354 (exit $ac_status); }; then 21355 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 21356else 21357 pkg_failed=yes 21358fi 21359 else 21360 pkg_failed=untried 21361fi 21362 21363 21364 21365if test $pkg_failed = yes; then 21366 21367if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21368 _pkg_short_errors_supported=yes 21369else 21370 _pkg_short_errors_supported=no 21371fi 21372 if test $_pkg_short_errors_supported = yes; then 21373 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES" 2>&1` 21374 else 21375 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES" 2>&1` 21376 fi 21377 # Put the nasty error message in config.log where it belongs 21378 echo "$XORG_PKG_ERRORS" >&5 21379 21380 { { $as_echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES) were not met: 21381 21382$XORG_PKG_ERRORS 21383 21384Consider adjusting the PKG_CONFIG_PATH environment variable if you 21385installed software in a non-standard prefix. 21386 21387Alternatively, you may set the environment variables XORG_CFLAGS 21388and XORG_LIBS to avoid the need to call pkg-config. 21389See the pkg-config man page for more details. 21390" >&5 21391$as_echo "$as_me: error: Package requirements (xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES) were not met: 21392 21393$XORG_PKG_ERRORS 21394 21395Consider adjusting the PKG_CONFIG_PATH environment variable if you 21396installed software in a non-standard prefix. 21397 21398Alternatively, you may set the environment variables XORG_CFLAGS 21399and XORG_LIBS to avoid the need to call pkg-config. 21400See the pkg-config man page for more details. 21401" >&2;} 21402 { (exit 1); exit 1; }; } 21403elif test $pkg_failed = untried; then 21404 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 21405$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21406{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 21407is in your PATH or set the PKG_CONFIG environment variable to the full 21408path to pkg-config. 21409 21410Alternatively, you may set the environment variables XORG_CFLAGS 21411and XORG_LIBS to avoid the need to call pkg-config. 21412See the pkg-config man page for more details. 21413 21414To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21415See \`config.log' for more details." >&5 21416$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 21417is in your PATH or set the PKG_CONFIG environment variable to the full 21418path to pkg-config. 21419 21420Alternatively, you may set the environment variables XORG_CFLAGS 21421and XORG_LIBS to avoid the need to call pkg-config. 21422See the pkg-config man page for more details. 21423 21424To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21425See \`config.log' for more details." >&2;} 21426 { (exit 1); exit 1; }; }; } 21427else 21428 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 21429 XORG_LIBS=$pkg_cv_XORG_LIBS 21430 { $as_echo "$as_me:$LINENO: result: yes" >&5 21431$as_echo "yes" >&6; } 21432 : 21433fi 21434sdkdir=$(pkg-config --variable=sdkdir xorg-server) 21435 21436# Checks for libraries. 21437SAVE_CPPFLAGS="$CPPFLAGS" 21438CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" 21439{ $as_echo "$as_me:$LINENO: checking whether XSERVER_LIBPCIACCESS is declared" >&5 21440$as_echo_n "checking whether XSERVER_LIBPCIACCESS is declared... " >&6; } 21441if test "${ac_cv_have_decl_XSERVER_LIBPCIACCESS+set}" = set; then 21442 $as_echo_n "(cached) " >&6 21443else 21444 cat >conftest.$ac_ext <<_ACEOF 21445/* confdefs.h. */ 21446_ACEOF 21447cat confdefs.h >>conftest.$ac_ext 21448cat >>conftest.$ac_ext <<_ACEOF 21449/* end confdefs.h. */ 21450#include "xorg-server.h" 21451 21452int 21453main () 21454{ 21455#ifndef XSERVER_LIBPCIACCESS 21456 (void) XSERVER_LIBPCIACCESS; 21457#endif 21458 21459 ; 21460 return 0; 21461} 21462_ACEOF 21463rm -f conftest.$ac_objext 21464if { (ac_try="$ac_compile" 21465case "(($ac_try" in 21466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21467 *) ac_try_echo=$ac_try;; 21468esac 21469eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21470$as_echo "$ac_try_echo") >&5 21471 (eval "$ac_compile") 2>conftest.er1 21472 ac_status=$? 21473 grep -v '^ *+' conftest.er1 >conftest.err 21474 rm -f conftest.er1 21475 cat conftest.err >&5 21476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21477 (exit $ac_status); } && { 21478 test -z "$ac_c_werror_flag" || 21479 test ! -s conftest.err 21480 } && test -s conftest.$ac_objext; then 21481 ac_cv_have_decl_XSERVER_LIBPCIACCESS=yes 21482else 21483 $as_echo "$as_me: failed program was:" >&5 21484sed 's/^/| /' conftest.$ac_ext >&5 21485 21486 ac_cv_have_decl_XSERVER_LIBPCIACCESS=no 21487fi 21488 21489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21490fi 21491{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&5 21492$as_echo "$ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&6; } 21493if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = x""yes; then 21494 XSERVER_LIBPCIACCESS=yes 21495else 21496 XSERVER_LIBPCIACCESS=no 21497fi 21498 21499if test "${ac_cv_header_xf1bpp_h+set}" = set; then 21500 { $as_echo "$as_me:$LINENO: checking for xf1bpp.h" >&5 21501$as_echo_n "checking for xf1bpp.h... " >&6; } 21502if test "${ac_cv_header_xf1bpp_h+set}" = set; then 21503 $as_echo_n "(cached) " >&6 21504fi 21505{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_xf1bpp_h" >&5 21506$as_echo "$ac_cv_header_xf1bpp_h" >&6; } 21507else 21508 # Is the header compilable? 21509{ $as_echo "$as_me:$LINENO: checking xf1bpp.h usability" >&5 21510$as_echo_n "checking xf1bpp.h usability... " >&6; } 21511cat >conftest.$ac_ext <<_ACEOF 21512/* confdefs.h. */ 21513_ACEOF 21514cat confdefs.h >>conftest.$ac_ext 21515cat >>conftest.$ac_ext <<_ACEOF 21516/* end confdefs.h. */ 21517$ac_includes_default 21518#include <xf1bpp.h> 21519_ACEOF 21520rm -f conftest.$ac_objext 21521if { (ac_try="$ac_compile" 21522case "(($ac_try" in 21523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21524 *) ac_try_echo=$ac_try;; 21525esac 21526eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21527$as_echo "$ac_try_echo") >&5 21528 (eval "$ac_compile") 2>conftest.er1 21529 ac_status=$? 21530 grep -v '^ *+' conftest.er1 >conftest.err 21531 rm -f conftest.er1 21532 cat conftest.err >&5 21533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21534 (exit $ac_status); } && { 21535 test -z "$ac_c_werror_flag" || 21536 test ! -s conftest.err 21537 } && test -s conftest.$ac_objext; then 21538 ac_header_compiler=yes 21539else 21540 $as_echo "$as_me: failed program was:" >&5 21541sed 's/^/| /' conftest.$ac_ext >&5 21542 21543 ac_header_compiler=no 21544fi 21545 21546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21547{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21548$as_echo "$ac_header_compiler" >&6; } 21549 21550# Is the header present? 21551{ $as_echo "$as_me:$LINENO: checking xf1bpp.h presence" >&5 21552$as_echo_n "checking xf1bpp.h presence... " >&6; } 21553cat >conftest.$ac_ext <<_ACEOF 21554/* confdefs.h. */ 21555_ACEOF 21556cat confdefs.h >>conftest.$ac_ext 21557cat >>conftest.$ac_ext <<_ACEOF 21558/* end confdefs.h. */ 21559#include <xf1bpp.h> 21560_ACEOF 21561if { (ac_try="$ac_cpp conftest.$ac_ext" 21562case "(($ac_try" in 21563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21564 *) ac_try_echo=$ac_try;; 21565esac 21566eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21567$as_echo "$ac_try_echo") >&5 21568 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 21569 ac_status=$? 21570 grep -v '^ *+' conftest.er1 >conftest.err 21571 rm -f conftest.er1 21572 cat conftest.err >&5 21573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21574 (exit $ac_status); } >/dev/null && { 21575 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 21576 test ! -s conftest.err 21577 }; then 21578 ac_header_preproc=yes 21579else 21580 $as_echo "$as_me: failed program was:" >&5 21581sed 's/^/| /' conftest.$ac_ext >&5 21582 21583 ac_header_preproc=no 21584fi 21585 21586rm -f conftest.err conftest.$ac_ext 21587{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21588$as_echo "$ac_header_preproc" >&6; } 21589 21590# So? What about this header? 21591case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21592 yes:no: ) 21593 { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: accepted by the compiler, rejected by the preprocessor!" >&5 21594$as_echo "$as_me: WARNING: xf1bpp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 21595 { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: proceeding with the compiler's result" >&5 21596$as_echo "$as_me: WARNING: xf1bpp.h: proceeding with the compiler's result" >&2;} 21597 ac_header_preproc=yes 21598 ;; 21599 no:yes:* ) 21600 { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: present but cannot be compiled" >&5 21601$as_echo "$as_me: WARNING: xf1bpp.h: present but cannot be compiled" >&2;} 21602 { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: check for missing prerequisite headers?" >&5 21603$as_echo "$as_me: WARNING: xf1bpp.h: check for missing prerequisite headers?" >&2;} 21604 { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: see the Autoconf documentation" >&5 21605$as_echo "$as_me: WARNING: xf1bpp.h: see the Autoconf documentation" >&2;} 21606 { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: section \"Present But Cannot Be Compiled\"" >&5 21607$as_echo "$as_me: WARNING: xf1bpp.h: section \"Present But Cannot Be Compiled\"" >&2;} 21608 { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: proceeding with the preprocessor's result" >&5 21609$as_echo "$as_me: WARNING: xf1bpp.h: proceeding with the preprocessor's result" >&2;} 21610 { $as_echo "$as_me:$LINENO: WARNING: xf1bpp.h: in the future, the compiler will take precedence" >&5 21611$as_echo "$as_me: WARNING: xf1bpp.h: in the future, the compiler will take precedence" >&2;} 21612 ( cat <<\_ASBOX 21613## ---------------------------------------------------------------------- ## 21614## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 21615## ---------------------------------------------------------------------- ## 21616_ASBOX 21617 ) | sed "s/^/$as_me: WARNING: /" >&2 21618 ;; 21619esac 21620{ $as_echo "$as_me:$LINENO: checking for xf1bpp.h" >&5 21621$as_echo_n "checking for xf1bpp.h... " >&6; } 21622if test "${ac_cv_header_xf1bpp_h+set}" = set; then 21623 $as_echo_n "(cached) " >&6 21624else 21625 ac_cv_header_xf1bpp_h=$ac_header_preproc 21626fi 21627{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_xf1bpp_h" >&5 21628$as_echo "$ac_cv_header_xf1bpp_h" >&6; } 21629 21630fi 21631if test "x$ac_cv_header_xf1bpp_h" = x""yes; then 21632 21633cat >>confdefs.h <<\_ACEOF 21634#define HAVE_XF1BPP 1 21635_ACEOF 21636 21637fi 21638 21639 21640if test "${ac_cv_header_xf4bpp_h+set}" = set; then 21641 { $as_echo "$as_me:$LINENO: checking for xf4bpp.h" >&5 21642$as_echo_n "checking for xf4bpp.h... " >&6; } 21643if test "${ac_cv_header_xf4bpp_h+set}" = set; then 21644 $as_echo_n "(cached) " >&6 21645fi 21646{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_xf4bpp_h" >&5 21647$as_echo "$ac_cv_header_xf4bpp_h" >&6; } 21648else 21649 # Is the header compilable? 21650{ $as_echo "$as_me:$LINENO: checking xf4bpp.h usability" >&5 21651$as_echo_n "checking xf4bpp.h usability... " >&6; } 21652cat >conftest.$ac_ext <<_ACEOF 21653/* confdefs.h. */ 21654_ACEOF 21655cat confdefs.h >>conftest.$ac_ext 21656cat >>conftest.$ac_ext <<_ACEOF 21657/* end confdefs.h. */ 21658$ac_includes_default 21659#include <xf4bpp.h> 21660_ACEOF 21661rm -f conftest.$ac_objext 21662if { (ac_try="$ac_compile" 21663case "(($ac_try" in 21664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21665 *) ac_try_echo=$ac_try;; 21666esac 21667eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21668$as_echo "$ac_try_echo") >&5 21669 (eval "$ac_compile") 2>conftest.er1 21670 ac_status=$? 21671 grep -v '^ *+' conftest.er1 >conftest.err 21672 rm -f conftest.er1 21673 cat conftest.err >&5 21674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21675 (exit $ac_status); } && { 21676 test -z "$ac_c_werror_flag" || 21677 test ! -s conftest.err 21678 } && test -s conftest.$ac_objext; then 21679 ac_header_compiler=yes 21680else 21681 $as_echo "$as_me: failed program was:" >&5 21682sed 's/^/| /' conftest.$ac_ext >&5 21683 21684 ac_header_compiler=no 21685fi 21686 21687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21688{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21689$as_echo "$ac_header_compiler" >&6; } 21690 21691# Is the header present? 21692{ $as_echo "$as_me:$LINENO: checking xf4bpp.h presence" >&5 21693$as_echo_n "checking xf4bpp.h presence... " >&6; } 21694cat >conftest.$ac_ext <<_ACEOF 21695/* confdefs.h. */ 21696_ACEOF 21697cat confdefs.h >>conftest.$ac_ext 21698cat >>conftest.$ac_ext <<_ACEOF 21699/* end confdefs.h. */ 21700#include <xf4bpp.h> 21701_ACEOF 21702if { (ac_try="$ac_cpp conftest.$ac_ext" 21703case "(($ac_try" in 21704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21705 *) ac_try_echo=$ac_try;; 21706esac 21707eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21708$as_echo "$ac_try_echo") >&5 21709 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 21710 ac_status=$? 21711 grep -v '^ *+' conftest.er1 >conftest.err 21712 rm -f conftest.er1 21713 cat conftest.err >&5 21714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21715 (exit $ac_status); } >/dev/null && { 21716 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 21717 test ! -s conftest.err 21718 }; then 21719 ac_header_preproc=yes 21720else 21721 $as_echo "$as_me: failed program was:" >&5 21722sed 's/^/| /' conftest.$ac_ext >&5 21723 21724 ac_header_preproc=no 21725fi 21726 21727rm -f conftest.err conftest.$ac_ext 21728{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21729$as_echo "$ac_header_preproc" >&6; } 21730 21731# So? What about this header? 21732case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21733 yes:no: ) 21734 { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: accepted by the compiler, rejected by the preprocessor!" >&5 21735$as_echo "$as_me: WARNING: xf4bpp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 21736 { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: proceeding with the compiler's result" >&5 21737$as_echo "$as_me: WARNING: xf4bpp.h: proceeding with the compiler's result" >&2;} 21738 ac_header_preproc=yes 21739 ;; 21740 no:yes:* ) 21741 { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: present but cannot be compiled" >&5 21742$as_echo "$as_me: WARNING: xf4bpp.h: present but cannot be compiled" >&2;} 21743 { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: check for missing prerequisite headers?" >&5 21744$as_echo "$as_me: WARNING: xf4bpp.h: check for missing prerequisite headers?" >&2;} 21745 { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: see the Autoconf documentation" >&5 21746$as_echo "$as_me: WARNING: xf4bpp.h: see the Autoconf documentation" >&2;} 21747 { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: section \"Present But Cannot Be Compiled\"" >&5 21748$as_echo "$as_me: WARNING: xf4bpp.h: section \"Present But Cannot Be Compiled\"" >&2;} 21749 { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: proceeding with the preprocessor's result" >&5 21750$as_echo "$as_me: WARNING: xf4bpp.h: proceeding with the preprocessor's result" >&2;} 21751 { $as_echo "$as_me:$LINENO: WARNING: xf4bpp.h: in the future, the compiler will take precedence" >&5 21752$as_echo "$as_me: WARNING: xf4bpp.h: in the future, the compiler will take precedence" >&2;} 21753 ( cat <<\_ASBOX 21754## ---------------------------------------------------------------------- ## 21755## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 21756## ---------------------------------------------------------------------- ## 21757_ASBOX 21758 ) | sed "s/^/$as_me: WARNING: /" >&2 21759 ;; 21760esac 21761{ $as_echo "$as_me:$LINENO: checking for xf4bpp.h" >&5 21762$as_echo_n "checking for xf4bpp.h... " >&6; } 21763if test "${ac_cv_header_xf4bpp_h+set}" = set; then 21764 $as_echo_n "(cached) " >&6 21765else 21766 ac_cv_header_xf4bpp_h=$ac_header_preproc 21767fi 21768{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_xf4bpp_h" >&5 21769$as_echo "$ac_cv_header_xf4bpp_h" >&6; } 21770 21771fi 21772if test "x$ac_cv_header_xf4bpp_h" = x""yes; then 21773 21774cat >>confdefs.h <<\_ACEOF 21775#define HAVE_XF4BPP 1 21776_ACEOF 21777 21778fi 21779 21780 21781CPPFLAGS="$SAVE_CPPFLAGS" 21782 21783if test "x$XSERVER_LIBPCIACCESS" = xyes; then 21784 21785pkg_failed=no 21786{ $as_echo "$as_me:$LINENO: checking for PCIACCESS" >&5 21787$as_echo_n "checking for PCIACCESS... " >&6; } 21788 21789if test -n "$PCIACCESS_CFLAGS"; then 21790 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 21791 elif test -n "$PKG_CONFIG"; then 21792 if test -n "$PKG_CONFIG" && \ 21793 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5 21794 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 21795 ac_status=$? 21796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21797 (exit $ac_status); }; then 21798 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null` 21799else 21800 pkg_failed=yes 21801fi 21802 else 21803 pkg_failed=untried 21804fi 21805if test -n "$PCIACCESS_LIBS"; then 21806 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 21807 elif test -n "$PKG_CONFIG"; then 21808 if test -n "$PKG_CONFIG" && \ 21809 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5 21810 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 21811 ac_status=$? 21812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21813 (exit $ac_status); }; then 21814 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null` 21815else 21816 pkg_failed=yes 21817fi 21818 else 21819 pkg_failed=untried 21820fi 21821 21822 21823 21824if test $pkg_failed = yes; then 21825 21826if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21827 _pkg_short_errors_supported=yes 21828else 21829 _pkg_short_errors_supported=no 21830fi 21831 if test $_pkg_short_errors_supported = yes; then 21832 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1` 21833 else 21834 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1` 21835 fi 21836 # Put the nasty error message in config.log where it belongs 21837 echo "$PCIACCESS_PKG_ERRORS" >&5 21838 21839 { { $as_echo "$as_me:$LINENO: error: Package requirements (pciaccess >= 0.8.0) were not met: 21840 21841$PCIACCESS_PKG_ERRORS 21842 21843Consider adjusting the PKG_CONFIG_PATH environment variable if you 21844installed software in a non-standard prefix. 21845 21846Alternatively, you may set the environment variables PCIACCESS_CFLAGS 21847and PCIACCESS_LIBS to avoid the need to call pkg-config. 21848See the pkg-config man page for more details. 21849" >&5 21850$as_echo "$as_me: error: Package requirements (pciaccess >= 0.8.0) were not met: 21851 21852$PCIACCESS_PKG_ERRORS 21853 21854Consider adjusting the PKG_CONFIG_PATH environment variable if you 21855installed software in a non-standard prefix. 21856 21857Alternatively, you may set the environment variables PCIACCESS_CFLAGS 21858and PCIACCESS_LIBS to avoid the need to call pkg-config. 21859See the pkg-config man page for more details. 21860" >&2;} 21861 { (exit 1); exit 1; }; } 21862elif test $pkg_failed = untried; then 21863 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 21864$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21865{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 21866is in your PATH or set the PKG_CONFIG environment variable to the full 21867path to pkg-config. 21868 21869Alternatively, you may set the environment variables PCIACCESS_CFLAGS 21870and PCIACCESS_LIBS to avoid the need to call pkg-config. 21871See the pkg-config man page for more details. 21872 21873To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21874See \`config.log' for more details." >&5 21875$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 21876is in your PATH or set the PKG_CONFIG environment variable to the full 21877path to pkg-config. 21878 21879Alternatively, you may set the environment variables PCIACCESS_CFLAGS 21880and PCIACCESS_LIBS to avoid the need to call pkg-config. 21881See the pkg-config man page for more details. 21882 21883To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21884See \`config.log' for more details." >&2;} 21885 { (exit 1); exit 1; }; }; } 21886else 21887 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 21888 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 21889 { $as_echo "$as_me:$LINENO: result: yes" >&5 21890$as_echo "yes" >&6; } 21891 : 21892fi 21893 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS" 21894fi 21895 if test "x$XSERVER_LIBPCIACCESS" = xyes; then 21896 XSERVER_LIBPCIACCESS_TRUE= 21897 XSERVER_LIBPCIACCESS_FALSE='#' 21898else 21899 XSERVER_LIBPCIACCESS_TRUE='#' 21900 XSERVER_LIBPCIACCESS_FALSE= 21901fi 21902 21903 21904# Checks for header files. 21905{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 21906$as_echo_n "checking for ANSI C header files... " >&6; } 21907if test "${ac_cv_header_stdc+set}" = set; then 21908 $as_echo_n "(cached) " >&6 21909else 21910 cat >conftest.$ac_ext <<_ACEOF 21911/* confdefs.h. */ 21912_ACEOF 21913cat confdefs.h >>conftest.$ac_ext 21914cat >>conftest.$ac_ext <<_ACEOF 21915/* end confdefs.h. */ 21916#include <stdlib.h> 21917#include <stdarg.h> 21918#include <string.h> 21919#include <float.h> 21920 21921int 21922main () 21923{ 21924 21925 ; 21926 return 0; 21927} 21928_ACEOF 21929rm -f conftest.$ac_objext 21930if { (ac_try="$ac_compile" 21931case "(($ac_try" in 21932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21933 *) ac_try_echo=$ac_try;; 21934esac 21935eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21936$as_echo "$ac_try_echo") >&5 21937 (eval "$ac_compile") 2>conftest.er1 21938 ac_status=$? 21939 grep -v '^ *+' conftest.er1 >conftest.err 21940 rm -f conftest.er1 21941 cat conftest.err >&5 21942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21943 (exit $ac_status); } && { 21944 test -z "$ac_c_werror_flag" || 21945 test ! -s conftest.err 21946 } && test -s conftest.$ac_objext; then 21947 ac_cv_header_stdc=yes 21948else 21949 $as_echo "$as_me: failed program was:" >&5 21950sed 's/^/| /' conftest.$ac_ext >&5 21951 21952 ac_cv_header_stdc=no 21953fi 21954 21955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21956 21957if test $ac_cv_header_stdc = yes; then 21958 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 21959 cat >conftest.$ac_ext <<_ACEOF 21960/* confdefs.h. */ 21961_ACEOF 21962cat confdefs.h >>conftest.$ac_ext 21963cat >>conftest.$ac_ext <<_ACEOF 21964/* end confdefs.h. */ 21965#include <string.h> 21966 21967_ACEOF 21968if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21969 $EGREP "memchr" >/dev/null 2>&1; then 21970 : 21971else 21972 ac_cv_header_stdc=no 21973fi 21974rm -f conftest* 21975 21976fi 21977 21978if test $ac_cv_header_stdc = yes; then 21979 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 21980 cat >conftest.$ac_ext <<_ACEOF 21981/* confdefs.h. */ 21982_ACEOF 21983cat confdefs.h >>conftest.$ac_ext 21984cat >>conftest.$ac_ext <<_ACEOF 21985/* end confdefs.h. */ 21986#include <stdlib.h> 21987 21988_ACEOF 21989if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21990 $EGREP "free" >/dev/null 2>&1; then 21991 : 21992else 21993 ac_cv_header_stdc=no 21994fi 21995rm -f conftest* 21996 21997fi 21998 21999if test $ac_cv_header_stdc = yes; then 22000 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 22001 if test "$cross_compiling" = yes; then 22002 : 22003else 22004 cat >conftest.$ac_ext <<_ACEOF 22005/* confdefs.h. */ 22006_ACEOF 22007cat confdefs.h >>conftest.$ac_ext 22008cat >>conftest.$ac_ext <<_ACEOF 22009/* end confdefs.h. */ 22010#include <ctype.h> 22011#include <stdlib.h> 22012#if ((' ' & 0x0FF) == 0x020) 22013# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 22014# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 22015#else 22016# define ISLOWER(c) \ 22017 (('a' <= (c) && (c) <= 'i') \ 22018 || ('j' <= (c) && (c) <= 'r') \ 22019 || ('s' <= (c) && (c) <= 'z')) 22020# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 22021#endif 22022 22023#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 22024int 22025main () 22026{ 22027 int i; 22028 for (i = 0; i < 256; i++) 22029 if (XOR (islower (i), ISLOWER (i)) 22030 || toupper (i) != TOUPPER (i)) 22031 return 2; 22032 return 0; 22033} 22034_ACEOF 22035rm -f conftest$ac_exeext 22036if { (ac_try="$ac_link" 22037case "(($ac_try" in 22038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22039 *) ac_try_echo=$ac_try;; 22040esac 22041eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 22042$as_echo "$ac_try_echo") >&5 22043 (eval "$ac_link") 2>&5 22044 ac_status=$? 22045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 22046 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 22047 { (case "(($ac_try" in 22048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22049 *) ac_try_echo=$ac_try;; 22050esac 22051eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 22052$as_echo "$ac_try_echo") >&5 22053 (eval "$ac_try") 2>&5 22054 ac_status=$? 22055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 22056 (exit $ac_status); }; }; then 22057 : 22058else 22059 $as_echo "$as_me: program exited with status $ac_status" >&5 22060$as_echo "$as_me: failed program was:" >&5 22061sed 's/^/| /' conftest.$ac_ext >&5 22062 22063( exit $ac_status ) 22064ac_cv_header_stdc=no 22065fi 22066rm -rf conftest.dSYM 22067rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 22068fi 22069 22070 22071fi 22072fi 22073{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 22074$as_echo "$ac_cv_header_stdc" >&6; } 22075if test $ac_cv_header_stdc = yes; then 22076 22077cat >>confdefs.h <<\_ACEOF 22078#define STDC_HEADERS 1 22079_ACEOF 22080 22081fi 22082 22083 22084 22085 22086 22087DRIVER_NAME=cirrus 22088 22089 22090 22091 22092 22093if test x$APP_MAN_SUFFIX = x ; then 22094 APP_MAN_SUFFIX=1 22095fi 22096if test x$APP_MAN_DIR = x ; then 22097 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 22098fi 22099 22100if test x$LIB_MAN_SUFFIX = x ; then 22101 LIB_MAN_SUFFIX=3 22102fi 22103if test x$LIB_MAN_DIR = x ; then 22104 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 22105fi 22106 22107if test x$FILE_MAN_SUFFIX = x ; then 22108 case $host_os in 22109 solaris*) FILE_MAN_SUFFIX=4 ;; 22110 *) FILE_MAN_SUFFIX=5 ;; 22111 esac 22112fi 22113if test x$FILE_MAN_DIR = x ; then 22114 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 22115fi 22116 22117if test x$MISC_MAN_SUFFIX = x ; then 22118 case $host_os in 22119 solaris*) MISC_MAN_SUFFIX=5 ;; 22120 *) MISC_MAN_SUFFIX=7 ;; 22121 esac 22122fi 22123if test x$MISC_MAN_DIR = x ; then 22124 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 22125fi 22126 22127if test x$DRIVER_MAN_SUFFIX = x ; then 22128 case $host_os in 22129 solaris*) DRIVER_MAN_SUFFIX=7 ;; 22130 *) DRIVER_MAN_SUFFIX=4 ;; 22131 esac 22132fi 22133if test x$DRIVER_MAN_DIR = x ; then 22134 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 22135fi 22136 22137if test x$ADMIN_MAN_SUFFIX = x ; then 22138 case $host_os in 22139 solaris*) ADMIN_MAN_SUFFIX=1m ;; 22140 *) ADMIN_MAN_SUFFIX=8 ;; 22141 esac 22142fi 22143if test x$ADMIN_MAN_DIR = x ; then 22144 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 22145fi 22146 22147 22148 22149 22150 22151 22152 22153 22154 22155 22156 22157 22158 22159 22160 22161 22162 22163# Check whether --with-release-version was given. 22164if test "${with_release_version+set}" = set; then 22165 withval=$with_release_version; RELEASE_VERSION="$withval" 22166else 22167 RELEASE_VERSION="" 22168fi 22169 22170 if test "x$RELEASE_VERSION" != "x"; then 22171 PACKAGE="$PACKAGE-$RELEASE_VERSION" 22172 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 22173 { $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5 22174$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;} 22175 fi 22176 22177cat >>confdefs.h <<_ACEOF 22178#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 22179_ACEOF 22180 22181 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 22182 if test "x$PVM" = "x"; then 22183 PVM="0" 22184 fi 22185 22186cat >>confdefs.h <<_ACEOF 22187#define PACKAGE_VERSION_MINOR $PVM 22188_ACEOF 22189 22190 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 22191 if test "x$PVP" = "x"; then 22192 PVP="0" 22193 fi 22194 22195cat >>confdefs.h <<_ACEOF 22196#define PACKAGE_VERSION_PATCHLEVEL $PVP 22197_ACEOF 22198 22199 22200 22201CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \ 22202mv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \ 22203echo 'git directory not found: installing possibly empty changelog.' >&2)" 22204 22205distcleancheck_listfiles='find . -type f ! -name ChangeLog -print' 22206 22207 22208 22209ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 22210 22211cat >confcache <<\_ACEOF 22212# This file is a shell script that caches the results of configure 22213# tests run on this system so they can be shared between configure 22214# scripts and configure runs, see configure's option --config-cache. 22215# It is not useful on other systems. If it contains results you don't 22216# want to keep, you may remove or edit it. 22217# 22218# config.status only pays attention to the cache file if you give it 22219# the --recheck option to rerun configure. 22220# 22221# `ac_cv_env_foo' variables (set or unset) will be overridden when 22222# loading this file, other *unset* `ac_cv_foo' will be assigned the 22223# following values. 22224 22225_ACEOF 22226 22227# The following way of writing the cache mishandles newlines in values, 22228# but we know of no workaround that is simple, portable, and efficient. 22229# So, we kill variables containing newlines. 22230# Ultrix sh set writes to stderr and can't be redirected directly, 22231# and sets the high bit in the cache file unless we assign to the vars. 22232( 22233 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 22234 eval ac_val=\$$ac_var 22235 case $ac_val in #( 22236 *${as_nl}*) 22237 case $ac_var in #( 22238 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 22239$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 22240 esac 22241 case $ac_var in #( 22242 _ | IFS | as_nl) ;; #( 22243 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 22244 *) $as_unset $ac_var ;; 22245 esac ;; 22246 esac 22247 done 22248 22249 (set) 2>&1 | 22250 case $as_nl`(ac_space=' '; set) 2>&1` in #( 22251 *${as_nl}ac_space=\ *) 22252 # `set' does not quote correctly, so add quotes (double-quote 22253 # substitution turns \\\\ into \\, and sed turns \\ into \). 22254 sed -n \ 22255 "s/'/'\\\\''/g; 22256 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 22257 ;; #( 22258 *) 22259 # `set' quotes correctly as required by POSIX, so do not add quotes. 22260 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 22261 ;; 22262 esac | 22263 sort 22264) | 22265 sed ' 22266 /^ac_cv_env_/b end 22267 t clear 22268 :clear 22269 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 22270 t end 22271 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 22272 :end' >>confcache 22273if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 22274 if test -w "$cache_file"; then 22275 test "x$cache_file" != "x/dev/null" && 22276 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 22277$as_echo "$as_me: updating cache $cache_file" >&6;} 22278 cat confcache >$cache_file 22279 else 22280 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 22281$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 22282 fi 22283fi 22284rm -f confcache 22285 22286test "x$prefix" = xNONE && prefix=$ac_default_prefix 22287# Let make expand exec_prefix. 22288test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 22289 22290DEFS=-DHAVE_CONFIG_H 22291 22292ac_libobjs= 22293ac_ltlibobjs= 22294for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 22295 # 1. Remove the extension, and $U if already installed. 22296 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 22297 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 22298 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 22299 # will be set to the directory where LIBOBJS objects are built. 22300 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 22301 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 22302done 22303LIBOBJS=$ac_libobjs 22304 22305LTLIBOBJS=$ac_ltlibobjs 22306 22307 22308 if test -n "$EXEEXT"; then 22309 am__EXEEXT_TRUE= 22310 am__EXEEXT_FALSE='#' 22311else 22312 am__EXEEXT_TRUE='#' 22313 am__EXEEXT_FALSE= 22314fi 22315 22316if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 22317 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 22318Usually this means the macro was only invoked conditionally." >&5 22319$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 22320Usually this means the macro was only invoked conditionally." >&2;} 22321 { (exit 1); exit 1; }; } 22322fi 22323if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 22324 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 22325Usually this means the macro was only invoked conditionally." >&5 22326$as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 22327Usually this means the macro was only invoked conditionally." >&2;} 22328 { (exit 1); exit 1; }; } 22329fi 22330if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 22331 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 22332Usually this means the macro was only invoked conditionally." >&5 22333$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 22334Usually this means the macro was only invoked conditionally." >&2;} 22335 { (exit 1); exit 1; }; } 22336fi 22337if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 22338 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 22339Usually this means the macro was only invoked conditionally." >&5 22340$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 22341Usually this means the macro was only invoked conditionally." >&2;} 22342 { (exit 1); exit 1; }; } 22343fi 22344if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 22345 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 22346Usually this means the macro was only invoked conditionally." >&5 22347$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 22348Usually this means the macro was only invoked conditionally." >&2;} 22349 { (exit 1); exit 1; }; } 22350fi 22351if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then 22352 { { $as_echo "$as_me:$LINENO: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined. 22353Usually this means the macro was only invoked conditionally." >&5 22354$as_echo "$as_me: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined. 22355Usually this means the macro was only invoked conditionally." >&2;} 22356 { (exit 1); exit 1; }; } 22357fi 22358 22359: ${CONFIG_STATUS=./config.status} 22360ac_write_fail=0 22361ac_clean_files_save=$ac_clean_files 22362ac_clean_files="$ac_clean_files $CONFIG_STATUS" 22363{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 22364$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 22365cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22366#! $SHELL 22367# Generated by $as_me. 22368# Run this file to recreate the current configuration. 22369# Compiler output produced by configure, useful for debugging 22370# configure, is in config.log if it exists. 22371 22372debug=false 22373ac_cs_recheck=false 22374ac_cs_silent=false 22375SHELL=\${CONFIG_SHELL-$SHELL} 22376_ACEOF 22377 22378cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22379## --------------------- ## 22380## M4sh Initialization. ## 22381## --------------------- ## 22382 22383# Be more Bourne compatible 22384DUALCASE=1; export DUALCASE # for MKS sh 22385if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 22386 emulate sh 22387 NULLCMD=: 22388 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 22389 # is contrary to our usage. Disable this feature. 22390 alias -g '${1+"$@"}'='"$@"' 22391 setopt NO_GLOB_SUBST 22392else 22393 case `(set -o) 2>/dev/null` in 22394 *posix*) set -o posix ;; 22395esac 22396 22397fi 22398 22399 22400 22401 22402# PATH needs CR 22403# Avoid depending upon Character Ranges. 22404as_cr_letters='abcdefghijklmnopqrstuvwxyz' 22405as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 22406as_cr_Letters=$as_cr_letters$as_cr_LETTERS 22407as_cr_digits='0123456789' 22408as_cr_alnum=$as_cr_Letters$as_cr_digits 22409 22410as_nl=' 22411' 22412export as_nl 22413# Printing a long string crashes Solaris 7 /usr/bin/printf. 22414as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 22415as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 22416as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 22417if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 22418 as_echo='printf %s\n' 22419 as_echo_n='printf %s' 22420else 22421 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 22422 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 22423 as_echo_n='/usr/ucb/echo -n' 22424 else 22425 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 22426 as_echo_n_body='eval 22427 arg=$1; 22428 case $arg in 22429 *"$as_nl"*) 22430 expr "X$arg" : "X\\(.*\\)$as_nl"; 22431 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 22432 esac; 22433 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 22434 ' 22435 export as_echo_n_body 22436 as_echo_n='sh -c $as_echo_n_body as_echo' 22437 fi 22438 export as_echo_body 22439 as_echo='sh -c $as_echo_body as_echo' 22440fi 22441 22442# The user is always right. 22443if test "${PATH_SEPARATOR+set}" != set; then 22444 PATH_SEPARATOR=: 22445 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 22446 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 22447 PATH_SEPARATOR=';' 22448 } 22449fi 22450 22451# Support unset when possible. 22452if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 22453 as_unset=unset 22454else 22455 as_unset=false 22456fi 22457 22458 22459# IFS 22460# We need space, tab and new line, in precisely that order. Quoting is 22461# there to prevent editors from complaining about space-tab. 22462# (If _AS_PATH_WALK were called with IFS unset, it would disable word 22463# splitting by setting IFS to empty value.) 22464IFS=" "" $as_nl" 22465 22466# Find who we are. Look in the path if we contain no directory separator. 22467case $0 in 22468 *[\\/]* ) as_myself=$0 ;; 22469 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22470for as_dir in $PATH 22471do 22472 IFS=$as_save_IFS 22473 test -z "$as_dir" && as_dir=. 22474 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 22475done 22476IFS=$as_save_IFS 22477 22478 ;; 22479esac 22480# We did not find ourselves, most probably we were run as `sh COMMAND' 22481# in which case we are not to be found in the path. 22482if test "x$as_myself" = x; then 22483 as_myself=$0 22484fi 22485if test ! -f "$as_myself"; then 22486 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 22487 { (exit 1); exit 1; } 22488fi 22489 22490# Work around bugs in pre-3.0 UWIN ksh. 22491for as_var in ENV MAIL MAILPATH 22492do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 22493done 22494PS1='$ ' 22495PS2='> ' 22496PS4='+ ' 22497 22498# NLS nuisances. 22499LC_ALL=C 22500export LC_ALL 22501LANGUAGE=C 22502export LANGUAGE 22503 22504# Required to use basename. 22505if expr a : '\(a\)' >/dev/null 2>&1 && 22506 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22507 as_expr=expr 22508else 22509 as_expr=false 22510fi 22511 22512if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 22513 as_basename=basename 22514else 22515 as_basename=false 22516fi 22517 22518 22519# Name of the executable. 22520as_me=`$as_basename -- "$0" || 22521$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 22522 X"$0" : 'X\(//\)$' \| \ 22523 X"$0" : 'X\(/\)' \| . 2>/dev/null || 22524$as_echo X/"$0" | 22525 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22526 s//\1/ 22527 q 22528 } 22529 /^X\/\(\/\/\)$/{ 22530 s//\1/ 22531 q 22532 } 22533 /^X\/\(\/\).*/{ 22534 s//\1/ 22535 q 22536 } 22537 s/.*/./; q'` 22538 22539# CDPATH. 22540$as_unset CDPATH 22541 22542 22543 22544 as_lineno_1=$LINENO 22545 as_lineno_2=$LINENO 22546 test "x$as_lineno_1" != "x$as_lineno_2" && 22547 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 22548 22549 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 22550 # uniformly replaced by the line number. The first 'sed' inserts a 22551 # line-number line after each line using $LINENO; the second 'sed' 22552 # does the real work. The second script uses 'N' to pair each 22553 # line-number line with the line containing $LINENO, and appends 22554 # trailing '-' during substitution so that $LINENO is not a special 22555 # case at line end. 22556 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 22557 # scripts with optimization help from Paolo Bonzini. Blame Lee 22558 # E. McMahon (1931-1989) for sed's syntax. :-) 22559 sed -n ' 22560 p 22561 /[$]LINENO/= 22562 ' <$as_myself | 22563 sed ' 22564 s/[$]LINENO.*/&-/ 22565 t lineno 22566 b 22567 :lineno 22568 N 22569 :loop 22570 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 22571 t loop 22572 s/-\n.*// 22573 ' >$as_me.lineno && 22574 chmod +x "$as_me.lineno" || 22575 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 22576 { (exit 1); exit 1; }; } 22577 22578 # Don't try to exec as it changes $[0], causing all sort of problems 22579 # (the dirname of $[0] is not the place where we might find the 22580 # original and so on. Autoconf is especially sensitive to this). 22581 . "./$as_me.lineno" 22582 # Exit status is that of the last command. 22583 exit 22584} 22585 22586 22587if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 22588 as_dirname=dirname 22589else 22590 as_dirname=false 22591fi 22592 22593ECHO_C= ECHO_N= ECHO_T= 22594case `echo -n x` in 22595-n*) 22596 case `echo 'x\c'` in 22597 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 22598 *) ECHO_C='\c';; 22599 esac;; 22600*) 22601 ECHO_N='-n';; 22602esac 22603if expr a : '\(a\)' >/dev/null 2>&1 && 22604 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22605 as_expr=expr 22606else 22607 as_expr=false 22608fi 22609 22610rm -f conf$$ conf$$.exe conf$$.file 22611if test -d conf$$.dir; then 22612 rm -f conf$$.dir/conf$$.file 22613else 22614 rm -f conf$$.dir 22615 mkdir conf$$.dir 2>/dev/null 22616fi 22617if (echo >conf$$.file) 2>/dev/null; then 22618 if ln -s conf$$.file conf$$ 2>/dev/null; then 22619 as_ln_s='ln -s' 22620 # ... but there are two gotchas: 22621 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 22622 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 22623 # In both cases, we have to default to `cp -p'. 22624 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 22625 as_ln_s='cp -p' 22626 elif ln conf$$.file conf$$ 2>/dev/null; then 22627 as_ln_s=ln 22628 else 22629 as_ln_s='cp -p' 22630 fi 22631else 22632 as_ln_s='cp -p' 22633fi 22634rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 22635rmdir conf$$.dir 2>/dev/null 22636 22637if mkdir -p . 2>/dev/null; then 22638 as_mkdir_p=: 22639else 22640 test -d ./-p && rmdir ./-p 22641 as_mkdir_p=false 22642fi 22643 22644if test -x / >/dev/null 2>&1; then 22645 as_test_x='test -x' 22646else 22647 if ls -dL / >/dev/null 2>&1; then 22648 as_ls_L_option=L 22649 else 22650 as_ls_L_option= 22651 fi 22652 as_test_x=' 22653 eval sh -c '\'' 22654 if test -d "$1"; then 22655 test -d "$1/."; 22656 else 22657 case $1 in 22658 -*)set "./$1";; 22659 esac; 22660 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 22661 ???[sx]*):;;*)false;;esac;fi 22662 '\'' sh 22663 ' 22664fi 22665as_executable_p=$as_test_x 22666 22667# Sed expression to map a string onto a valid CPP name. 22668as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 22669 22670# Sed expression to map a string onto a valid variable name. 22671as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 22672 22673 22674exec 6>&1 22675 22676# Save the log message, to keep $[0] and so on meaningful, and to 22677# report actual input values of CONFIG_FILES etc. instead of their 22678# values after options handling. 22679ac_log=" 22680This file was extended by xf86-video-cirrus $as_me 1.3.2, which was 22681generated by GNU Autoconf 2.63. Invocation command line was 22682 22683 CONFIG_FILES = $CONFIG_FILES 22684 CONFIG_HEADERS = $CONFIG_HEADERS 22685 CONFIG_LINKS = $CONFIG_LINKS 22686 CONFIG_COMMANDS = $CONFIG_COMMANDS 22687 $ $0 $@ 22688 22689on `(hostname || uname -n) 2>/dev/null | sed 1q` 22690" 22691 22692_ACEOF 22693 22694case $ac_config_files in *" 22695"*) set x $ac_config_files; shift; ac_config_files=$*;; 22696esac 22697 22698case $ac_config_headers in *" 22699"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 22700esac 22701 22702 22703cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22704# Files that config.status was made for. 22705config_files="$ac_config_files" 22706config_headers="$ac_config_headers" 22707config_commands="$ac_config_commands" 22708 22709_ACEOF 22710 22711cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22712ac_cs_usage="\ 22713\`$as_me' instantiates files from templates according to the 22714current configuration. 22715 22716Usage: $0 [OPTION]... [FILE]... 22717 22718 -h, --help print this help, then exit 22719 -V, --version print version number and configuration settings, then exit 22720 -q, --quiet, --silent 22721 do not print progress messages 22722 -d, --debug don't remove temporary files 22723 --recheck update $as_me by reconfiguring in the same conditions 22724 --file=FILE[:TEMPLATE] 22725 instantiate the configuration file FILE 22726 --header=FILE[:TEMPLATE] 22727 instantiate the configuration header FILE 22728 22729Configuration files: 22730$config_files 22731 22732Configuration headers: 22733$config_headers 22734 22735Configuration commands: 22736$config_commands 22737 22738Report bugs to <bug-autoconf@gnu.org>." 22739 22740_ACEOF 22741cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22742ac_cs_version="\\ 22743xf86-video-cirrus config.status 1.3.2 22744configured by $0, generated by GNU Autoconf 2.63, 22745 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 22746 22747Copyright (C) 2008 Free Software Foundation, Inc. 22748This config.status script is free software; the Free Software Foundation 22749gives unlimited permission to copy, distribute and modify it." 22750 22751ac_pwd='$ac_pwd' 22752srcdir='$srcdir' 22753INSTALL='$INSTALL' 22754MKDIR_P='$MKDIR_P' 22755AWK='$AWK' 22756test -n "\$AWK" || AWK=awk 22757_ACEOF 22758 22759cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22760# The default lists apply if the user does not specify any file. 22761ac_need_defaults=: 22762while test $# != 0 22763do 22764 case $1 in 22765 --*=*) 22766 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22767 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 22768 ac_shift=: 22769 ;; 22770 *) 22771 ac_option=$1 22772 ac_optarg=$2 22773 ac_shift=shift 22774 ;; 22775 esac 22776 22777 case $ac_option in 22778 # Handling of the options. 22779 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 22780 ac_cs_recheck=: ;; 22781 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 22782 $as_echo "$ac_cs_version"; exit ;; 22783 --debug | --debu | --deb | --de | --d | -d ) 22784 debug=: ;; 22785 --file | --fil | --fi | --f ) 22786 $ac_shift 22787 case $ac_optarg in 22788 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22789 esac 22790 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 22791 ac_need_defaults=false;; 22792 --header | --heade | --head | --hea ) 22793 $ac_shift 22794 case $ac_optarg in 22795 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22796 esac 22797 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 22798 ac_need_defaults=false;; 22799 --he | --h) 22800 # Conflict between --help and --header 22801 { $as_echo "$as_me: error: ambiguous option: $1 22802Try \`$0 --help' for more information." >&2 22803 { (exit 1); exit 1; }; };; 22804 --help | --hel | -h ) 22805 $as_echo "$ac_cs_usage"; exit ;; 22806 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 22807 | -silent | --silent | --silen | --sile | --sil | --si | --s) 22808 ac_cs_silent=: ;; 22809 22810 # This is an error. 22811 -*) { $as_echo "$as_me: error: unrecognized option: $1 22812Try \`$0 --help' for more information." >&2 22813 { (exit 1); exit 1; }; } ;; 22814 22815 *) ac_config_targets="$ac_config_targets $1" 22816 ac_need_defaults=false ;; 22817 22818 esac 22819 shift 22820done 22821 22822ac_configure_extra_args= 22823 22824if $ac_cs_silent; then 22825 exec 6>/dev/null 22826 ac_configure_extra_args="$ac_configure_extra_args --silent" 22827fi 22828 22829_ACEOF 22830cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22831if \$ac_cs_recheck; then 22832 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 22833 shift 22834 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 22835 CONFIG_SHELL='$SHELL' 22836 export CONFIG_SHELL 22837 exec "\$@" 22838fi 22839 22840_ACEOF 22841cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22842exec 5>>config.log 22843{ 22844 echo 22845 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 22846## Running $as_me. ## 22847_ASBOX 22848 $as_echo "$ac_log" 22849} >&5 22850 22851_ACEOF 22852cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22853# 22854# INIT-COMMANDS 22855# 22856AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 22857 22858_ACEOF 22859 22860cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22861 22862# Handling of arguments. 22863for ac_config_target in $ac_config_targets 22864do 22865 case $ac_config_target in 22866 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 22867 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 22868 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 22869 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 22870 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 22871 22872 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 22873$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 22874 { (exit 1); exit 1; }; };; 22875 esac 22876done 22877 22878 22879# If the user did not use the arguments to specify the items to instantiate, 22880# then the envvar interface is used. Set only those that are not. 22881# We use the long form for the default assignment because of an extremely 22882# bizarre bug on SunOS 4.1.3. 22883if $ac_need_defaults; then 22884 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 22885 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 22886 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 22887fi 22888 22889# Have a temporary directory for convenience. Make it in the build tree 22890# simply because there is no reason against having it here, and in addition, 22891# creating and moving files from /tmp can sometimes cause problems. 22892# Hook for its removal unless debugging. 22893# Note that there is a small window in which the directory will not be cleaned: 22894# after its creation but before its name has been assigned to `$tmp'. 22895$debug || 22896{ 22897 tmp= 22898 trap 'exit_status=$? 22899 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 22900' 0 22901 trap '{ (exit 1); exit 1; }' 1 2 13 15 22902} 22903# Create a (secure) tmp directory for tmp files. 22904 22905{ 22906 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 22907 test -n "$tmp" && test -d "$tmp" 22908} || 22909{ 22910 tmp=./conf$$-$RANDOM 22911 (umask 077 && mkdir "$tmp") 22912} || 22913{ 22914 $as_echo "$as_me: cannot create a temporary directory in ." >&2 22915 { (exit 1); exit 1; } 22916} 22917 22918# Set up the scripts for CONFIG_FILES section. 22919# No need to generate them if there are no CONFIG_FILES. 22920# This happens for instance with `./config.status config.h'. 22921if test -n "$CONFIG_FILES"; then 22922 22923 22924ac_cr=' 22925' 22926ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 22927if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 22928 ac_cs_awk_cr='\\r' 22929else 22930 ac_cs_awk_cr=$ac_cr 22931fi 22932 22933echo 'BEGIN {' >"$tmp/subs1.awk" && 22934_ACEOF 22935 22936 22937{ 22938 echo "cat >conf$$subs.awk <<_ACEOF" && 22939 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 22940 echo "_ACEOF" 22941} >conf$$subs.sh || 22942 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22943$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22944 { (exit 1); exit 1; }; } 22945ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 22946ac_delim='%!_!# ' 22947for ac_last_try in false false false false false :; do 22948 . ./conf$$subs.sh || 22949 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22950$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22951 { (exit 1); exit 1; }; } 22952 22953 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 22954 if test $ac_delim_n = $ac_delim_num; then 22955 break 22956 elif $ac_last_try; then 22957 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22958$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22959 { (exit 1); exit 1; }; } 22960 else 22961 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22962 fi 22963done 22964rm -f conf$$subs.sh 22965 22966cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22967cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 22968_ACEOF 22969sed -n ' 22970h 22971s/^/S["/; s/!.*/"]=/ 22972p 22973g 22974s/^[^!]*!// 22975:repl 22976t repl 22977s/'"$ac_delim"'$// 22978t delim 22979:nl 22980h 22981s/\(.\{148\}\).*/\1/ 22982t more1 22983s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 22984p 22985n 22986b repl 22987:more1 22988s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22989p 22990g 22991s/.\{148\}// 22992t nl 22993:delim 22994h 22995s/\(.\{148\}\).*/\1/ 22996t more2 22997s/["\\]/\\&/g; s/^/"/; s/$/"/ 22998p 22999b 23000:more2 23001s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 23002p 23003g 23004s/.\{148\}// 23005t delim 23006' <conf$$subs.awk | sed ' 23007/^[^""]/{ 23008 N 23009 s/\n// 23010} 23011' >>$CONFIG_STATUS || ac_write_fail=1 23012rm -f conf$$subs.awk 23013cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23014_ACAWK 23015cat >>"\$tmp/subs1.awk" <<_ACAWK && 23016 for (key in S) S_is_set[key] = 1 23017 FS = "" 23018 23019} 23020{ 23021 line = $ 0 23022 nfields = split(line, field, "@") 23023 substed = 0 23024 len = length(field[1]) 23025 for (i = 2; i < nfields; i++) { 23026 key = field[i] 23027 keylen = length(key) 23028 if (S_is_set[key]) { 23029 value = S[key] 23030 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 23031 len += length(value) + length(field[++i]) 23032 substed = 1 23033 } else 23034 len += 1 + keylen 23035 } 23036 23037 print line 23038} 23039 23040_ACAWK 23041_ACEOF 23042cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23043if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 23044 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 23045else 23046 cat 23047fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 23048 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 23049$as_echo "$as_me: error: could not setup config files machinery" >&2;} 23050 { (exit 1); exit 1; }; } 23051_ACEOF 23052 23053# VPATH may cause trouble with some makes, so we remove $(srcdir), 23054# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 23055# trailing colons and then remove the whole line if VPATH becomes empty 23056# (actually we leave an empty line to preserve line numbers). 23057if test "x$srcdir" = x.; then 23058 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 23059s/:*\$(srcdir):*/:/ 23060s/:*\${srcdir}:*/:/ 23061s/:*@srcdir@:*/:/ 23062s/^\([^=]*=[ ]*\):*/\1/ 23063s/:*$// 23064s/^[^=]*=[ ]*$// 23065}' 23066fi 23067 23068cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23069fi # test -n "$CONFIG_FILES" 23070 23071# Set up the scripts for CONFIG_HEADERS section. 23072# No need to generate them if there are no CONFIG_HEADERS. 23073# This happens for instance with `./config.status Makefile'. 23074if test -n "$CONFIG_HEADERS"; then 23075cat >"$tmp/defines.awk" <<\_ACAWK || 23076BEGIN { 23077_ACEOF 23078 23079# Transform confdefs.h into an awk script `defines.awk', embedded as 23080# here-document in config.status, that substitutes the proper values into 23081# config.h.in to produce config.h. 23082 23083# Create a delimiter string that does not exist in confdefs.h, to ease 23084# handling of long lines. 23085ac_delim='%!_!# ' 23086for ac_last_try in false false :; do 23087 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 23088 if test -z "$ac_t"; then 23089 break 23090 elif $ac_last_try; then 23091 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 23092$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 23093 { (exit 1); exit 1; }; } 23094 else 23095 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23096 fi 23097done 23098 23099# For the awk script, D is an array of macro values keyed by name, 23100# likewise P contains macro parameters if any. Preserve backslash 23101# newline sequences. 23102 23103ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 23104sed -n ' 23105s/.\{148\}/&'"$ac_delim"'/g 23106t rset 23107:rset 23108s/^[ ]*#[ ]*define[ ][ ]*/ / 23109t def 23110d 23111:def 23112s/\\$// 23113t bsnl 23114s/["\\]/\\&/g 23115s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 23116D["\1"]=" \3"/p 23117s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 23118d 23119:bsnl 23120s/["\\]/\\&/g 23121s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 23122D["\1"]=" \3\\\\\\n"\\/p 23123t cont 23124s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 23125t cont 23126d 23127:cont 23128n 23129s/.\{148\}/&'"$ac_delim"'/g 23130t clear 23131:clear 23132s/\\$// 23133t bsnlc 23134s/["\\]/\\&/g; s/^/"/; s/$/"/p 23135d 23136:bsnlc 23137s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 23138b cont 23139' <confdefs.h | sed ' 23140s/'"$ac_delim"'/"\\\ 23141"/g' >>$CONFIG_STATUS || ac_write_fail=1 23142 23143cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23144 for (key in D) D_is_set[key] = 1 23145 FS = "" 23146} 23147/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 23148 line = \$ 0 23149 split(line, arg, " ") 23150 if (arg[1] == "#") { 23151 defundef = arg[2] 23152 mac1 = arg[3] 23153 } else { 23154 defundef = substr(arg[1], 2) 23155 mac1 = arg[2] 23156 } 23157 split(mac1, mac2, "(") #) 23158 macro = mac2[1] 23159 prefix = substr(line, 1, index(line, defundef) - 1) 23160 if (D_is_set[macro]) { 23161 # Preserve the white space surrounding the "#". 23162 print prefix "define", macro P[macro] D[macro] 23163 next 23164 } else { 23165 # Replace #undef with comments. This is necessary, for example, 23166 # in the case of _POSIX_SOURCE, which is predefined and required 23167 # on some systems where configure will not decide to define it. 23168 if (defundef == "undef") { 23169 print "/*", prefix defundef, macro, "*/" 23170 next 23171 } 23172 } 23173} 23174{ print } 23175_ACAWK 23176_ACEOF 23177cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23178 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 23179$as_echo "$as_me: error: could not setup config headers machinery" >&2;} 23180 { (exit 1); exit 1; }; } 23181fi # test -n "$CONFIG_HEADERS" 23182 23183 23184eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 23185shift 23186for ac_tag 23187do 23188 case $ac_tag in 23189 :[FHLC]) ac_mode=$ac_tag; continue;; 23190 esac 23191 case $ac_mode$ac_tag in 23192 :[FHL]*:*);; 23193 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 23194$as_echo "$as_me: error: invalid tag $ac_tag" >&2;} 23195 { (exit 1); exit 1; }; };; 23196 :[FH]-) ac_tag=-:-;; 23197 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 23198 esac 23199 ac_save_IFS=$IFS 23200 IFS=: 23201 set x $ac_tag 23202 IFS=$ac_save_IFS 23203 shift 23204 ac_file=$1 23205 shift 23206 23207 case $ac_mode in 23208 :L) ac_source=$1;; 23209 :[FH]) 23210 ac_file_inputs= 23211 for ac_f 23212 do 23213 case $ac_f in 23214 -) ac_f="$tmp/stdin";; 23215 *) # Look for the file first in the build tree, then in the source tree 23216 # (if the path is not absolute). The absolute path cannot be DOS-style, 23217 # because $ac_f cannot contain `:'. 23218 test -f "$ac_f" || 23219 case $ac_f in 23220 [\\/$]*) false;; 23221 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 23222 esac || 23223 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 23224$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 23225 { (exit 1); exit 1; }; };; 23226 esac 23227 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 23228 ac_file_inputs="$ac_file_inputs '$ac_f'" 23229 done 23230 23231 # Let's still pretend it is `configure' which instantiates (i.e., don't 23232 # use $as_me), people would be surprised to read: 23233 # /* config.h. Generated by config.status. */ 23234 configure_input='Generated from '` 23235 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 23236 `' by configure.' 23237 if test x"$ac_file" != x-; then 23238 configure_input="$ac_file. $configure_input" 23239 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 23240$as_echo "$as_me: creating $ac_file" >&6;} 23241 fi 23242 # Neutralize special characters interpreted by sed in replacement strings. 23243 case $configure_input in #( 23244 *\&* | *\|* | *\\* ) 23245 ac_sed_conf_input=`$as_echo "$configure_input" | 23246 sed 's/[\\\\&|]/\\\\&/g'`;; #( 23247 *) ac_sed_conf_input=$configure_input;; 23248 esac 23249 23250 case $ac_tag in 23251 *:-:* | *:-) cat >"$tmp/stdin" \ 23252 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 23253$as_echo "$as_me: error: could not create $ac_file" >&2;} 23254 { (exit 1); exit 1; }; } ;; 23255 esac 23256 ;; 23257 esac 23258 23259 ac_dir=`$as_dirname -- "$ac_file" || 23260$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23261 X"$ac_file" : 'X\(//\)[^/]' \| \ 23262 X"$ac_file" : 'X\(//\)$' \| \ 23263 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 23264$as_echo X"$ac_file" | 23265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23266 s//\1/ 23267 q 23268 } 23269 /^X\(\/\/\)[^/].*/{ 23270 s//\1/ 23271 q 23272 } 23273 /^X\(\/\/\)$/{ 23274 s//\1/ 23275 q 23276 } 23277 /^X\(\/\).*/{ 23278 s//\1/ 23279 q 23280 } 23281 s/.*/./; q'` 23282 { as_dir="$ac_dir" 23283 case $as_dir in #( 23284 -*) as_dir=./$as_dir;; 23285 esac 23286 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 23287 as_dirs= 23288 while :; do 23289 case $as_dir in #( 23290 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 23291 *) as_qdir=$as_dir;; 23292 esac 23293 as_dirs="'$as_qdir' $as_dirs" 23294 as_dir=`$as_dirname -- "$as_dir" || 23295$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23296 X"$as_dir" : 'X\(//\)[^/]' \| \ 23297 X"$as_dir" : 'X\(//\)$' \| \ 23298 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 23299$as_echo X"$as_dir" | 23300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23301 s//\1/ 23302 q 23303 } 23304 /^X\(\/\/\)[^/].*/{ 23305 s//\1/ 23306 q 23307 } 23308 /^X\(\/\/\)$/{ 23309 s//\1/ 23310 q 23311 } 23312 /^X\(\/\).*/{ 23313 s//\1/ 23314 q 23315 } 23316 s/.*/./; q'` 23317 test -d "$as_dir" && break 23318 done 23319 test -z "$as_dirs" || eval "mkdir $as_dirs" 23320 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 23321$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 23322 { (exit 1); exit 1; }; }; } 23323 ac_builddir=. 23324 23325case "$ac_dir" in 23326.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 23327*) 23328 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 23329 # A ".." for each directory in $ac_dir_suffix. 23330 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 23331 case $ac_top_builddir_sub in 23332 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 23333 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 23334 esac ;; 23335esac 23336ac_abs_top_builddir=$ac_pwd 23337ac_abs_builddir=$ac_pwd$ac_dir_suffix 23338# for backward compatibility: 23339ac_top_builddir=$ac_top_build_prefix 23340 23341case $srcdir in 23342 .) # We are building in place. 23343 ac_srcdir=. 23344 ac_top_srcdir=$ac_top_builddir_sub 23345 ac_abs_top_srcdir=$ac_pwd ;; 23346 [\\/]* | ?:[\\/]* ) # Absolute name. 23347 ac_srcdir=$srcdir$ac_dir_suffix; 23348 ac_top_srcdir=$srcdir 23349 ac_abs_top_srcdir=$srcdir ;; 23350 *) # Relative name. 23351 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 23352 ac_top_srcdir=$ac_top_build_prefix$srcdir 23353 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 23354esac 23355ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 23356 23357 23358 case $ac_mode in 23359 :F) 23360 # 23361 # CONFIG_FILE 23362 # 23363 23364 case $INSTALL in 23365 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 23366 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 23367 esac 23368 ac_MKDIR_P=$MKDIR_P 23369 case $MKDIR_P in 23370 [\\/$]* | ?:[\\/]* ) ;; 23371 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 23372 esac 23373_ACEOF 23374 23375cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23376# If the template does not know about datarootdir, expand it. 23377# FIXME: This hack should be removed a few years after 2.60. 23378ac_datarootdir_hack=; ac_datarootdir_seen= 23379 23380ac_sed_dataroot=' 23381/datarootdir/ { 23382 p 23383 q 23384} 23385/@datadir@/p 23386/@docdir@/p 23387/@infodir@/p 23388/@localedir@/p 23389/@mandir@/p 23390' 23391case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 23392*datarootdir*) ac_datarootdir_seen=yes;; 23393*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 23394 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 23395$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 23396_ACEOF 23397cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23398 ac_datarootdir_hack=' 23399 s&@datadir@&$datadir&g 23400 s&@docdir@&$docdir&g 23401 s&@infodir@&$infodir&g 23402 s&@localedir@&$localedir&g 23403 s&@mandir@&$mandir&g 23404 s&\\\${datarootdir}&$datarootdir&g' ;; 23405esac 23406_ACEOF 23407 23408# Neutralize VPATH when `$srcdir' = `.'. 23409# Shell code in configure.ac might set extrasub. 23410# FIXME: do we really want to maintain this feature? 23411cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23412ac_sed_extra="$ac_vpsub 23413$extrasub 23414_ACEOF 23415cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23416:t 23417/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23418s|@configure_input@|$ac_sed_conf_input|;t t 23419s&@top_builddir@&$ac_top_builddir_sub&;t t 23420s&@top_build_prefix@&$ac_top_build_prefix&;t t 23421s&@srcdir@&$ac_srcdir&;t t 23422s&@abs_srcdir@&$ac_abs_srcdir&;t t 23423s&@top_srcdir@&$ac_top_srcdir&;t t 23424s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 23425s&@builddir@&$ac_builddir&;t t 23426s&@abs_builddir@&$ac_abs_builddir&;t t 23427s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 23428s&@INSTALL@&$ac_INSTALL&;t t 23429s&@MKDIR_P@&$ac_MKDIR_P&;t t 23430$ac_datarootdir_hack 23431" 23432eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 23433 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 23434$as_echo "$as_me: error: could not create $ac_file" >&2;} 23435 { (exit 1); exit 1; }; } 23436 23437test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 23438 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 23439 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 23440 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23441which seems to be undefined. Please make sure it is defined." >&5 23442$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23443which seems to be undefined. Please make sure it is defined." >&2;} 23444 23445 rm -f "$tmp/stdin" 23446 case $ac_file in 23447 -) cat "$tmp/out" && rm -f "$tmp/out";; 23448 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 23449 esac \ 23450 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 23451$as_echo "$as_me: error: could not create $ac_file" >&2;} 23452 { (exit 1); exit 1; }; } 23453 ;; 23454 :H) 23455 # 23456 # CONFIG_HEADER 23457 # 23458 if test x"$ac_file" != x-; then 23459 { 23460 $as_echo "/* $configure_input */" \ 23461 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 23462 } >"$tmp/config.h" \ 23463 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 23464$as_echo "$as_me: error: could not create $ac_file" >&2;} 23465 { (exit 1); exit 1; }; } 23466 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 23467 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 23468$as_echo "$as_me: $ac_file is unchanged" >&6;} 23469 else 23470 rm -f "$ac_file" 23471 mv "$tmp/config.h" "$ac_file" \ 23472 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 23473$as_echo "$as_me: error: could not create $ac_file" >&2;} 23474 { (exit 1); exit 1; }; } 23475 fi 23476 else 23477 $as_echo "/* $configure_input */" \ 23478 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 23479 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 23480$as_echo "$as_me: error: could not create -" >&2;} 23481 { (exit 1); exit 1; }; } 23482 fi 23483# Compute "$ac_file"'s index in $config_headers. 23484_am_arg="$ac_file" 23485_am_stamp_count=1 23486for _am_header in $config_headers :; do 23487 case $_am_header in 23488 $_am_arg | $_am_arg:* ) 23489 break ;; 23490 * ) 23491 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 23492 esac 23493done 23494echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 23495$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23496 X"$_am_arg" : 'X\(//\)[^/]' \| \ 23497 X"$_am_arg" : 'X\(//\)$' \| \ 23498 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 23499$as_echo X"$_am_arg" | 23500 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23501 s//\1/ 23502 q 23503 } 23504 /^X\(\/\/\)[^/].*/{ 23505 s//\1/ 23506 q 23507 } 23508 /^X\(\/\/\)$/{ 23509 s//\1/ 23510 q 23511 } 23512 /^X\(\/\).*/{ 23513 s//\1/ 23514 q 23515 } 23516 s/.*/./; q'`/stamp-h$_am_stamp_count 23517 ;; 23518 23519 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 23520$as_echo "$as_me: executing $ac_file commands" >&6;} 23521 ;; 23522 esac 23523 23524 23525 case $ac_file$ac_mode in 23526 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 23527 # Autoconf 2.62 quotes --file arguments for eval, but not when files 23528 # are listed without --file. Let's play safe and only enable the eval 23529 # if we detect the quoting. 23530 case $CONFIG_FILES in 23531 *\'*) eval set x "$CONFIG_FILES" ;; 23532 *) set x $CONFIG_FILES ;; 23533 esac 23534 shift 23535 for mf 23536 do 23537 # Strip MF so we end up with the name of the file. 23538 mf=`echo "$mf" | sed -e 's/:.*$//'` 23539 # Check whether this is an Automake generated Makefile or not. 23540 # We used to match only the files named `Makefile.in', but 23541 # some people rename them; so instead we look at the file content. 23542 # Grep'ing the first line is not enough: some people post-process 23543 # each Makefile.in and add a new line on top of each file to say so. 23544 # Grep'ing the whole file is not good either: AIX grep has a line 23545 # limit of 2048, but all sed's we know have understand at least 4000. 23546 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 23547 dirpart=`$as_dirname -- "$mf" || 23548$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23549 X"$mf" : 'X\(//\)[^/]' \| \ 23550 X"$mf" : 'X\(//\)$' \| \ 23551 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 23552$as_echo X"$mf" | 23553 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23554 s//\1/ 23555 q 23556 } 23557 /^X\(\/\/\)[^/].*/{ 23558 s//\1/ 23559 q 23560 } 23561 /^X\(\/\/\)$/{ 23562 s//\1/ 23563 q 23564 } 23565 /^X\(\/\).*/{ 23566 s//\1/ 23567 q 23568 } 23569 s/.*/./; q'` 23570 else 23571 continue 23572 fi 23573 # Extract the definition of DEPDIR, am__include, and am__quote 23574 # from the Makefile without running `make'. 23575 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 23576 test -z "$DEPDIR" && continue 23577 am__include=`sed -n 's/^am__include = //p' < "$mf"` 23578 test -z "am__include" && continue 23579 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 23580 # When using ansi2knr, U may be empty or an underscore; expand it 23581 U=`sed -n 's/^U = //p' < "$mf"` 23582 # Find all dependency output files, they are included files with 23583 # $(DEPDIR) in their names. We invoke sed twice because it is the 23584 # simplest approach to changing $(DEPDIR) to its actual value in the 23585 # expansion. 23586 for file in `sed -n " 23587 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 23588 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 23589 # Make sure the directory exists. 23590 test -f "$dirpart/$file" && continue 23591 fdir=`$as_dirname -- "$file" || 23592$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23593 X"$file" : 'X\(//\)[^/]' \| \ 23594 X"$file" : 'X\(//\)$' \| \ 23595 X"$file" : 'X\(/\)' \| . 2>/dev/null || 23596$as_echo X"$file" | 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 { as_dir=$dirpart/$fdir 23615 case $as_dir in #( 23616 -*) as_dir=./$as_dir;; 23617 esac 23618 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 23619 as_dirs= 23620 while :; do 23621 case $as_dir in #( 23622 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 23623 *) as_qdir=$as_dir;; 23624 esac 23625 as_dirs="'$as_qdir' $as_dirs" 23626 as_dir=`$as_dirname -- "$as_dir" || 23627$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23628 X"$as_dir" : 'X\(//\)[^/]' \| \ 23629 X"$as_dir" : 'X\(//\)$' \| \ 23630 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 23631$as_echo X"$as_dir" | 23632 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23633 s//\1/ 23634 q 23635 } 23636 /^X\(\/\/\)[^/].*/{ 23637 s//\1/ 23638 q 23639 } 23640 /^X\(\/\/\)$/{ 23641 s//\1/ 23642 q 23643 } 23644 /^X\(\/\).*/{ 23645 s//\1/ 23646 q 23647 } 23648 s/.*/./; q'` 23649 test -d "$as_dir" && break 23650 done 23651 test -z "$as_dirs" || eval "mkdir $as_dirs" 23652 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 23653$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 23654 { (exit 1); exit 1; }; }; } 23655 # echo "creating $dirpart/$file" 23656 echo '# dummy' > "$dirpart/$file" 23657 done 23658 done 23659} 23660 ;; 23661 23662 esac 23663done # for ac_tag 23664 23665 23666{ (exit 0); exit 0; } 23667_ACEOF 23668chmod +x $CONFIG_STATUS 23669ac_clean_files=$ac_clean_files_save 23670 23671test $ac_write_fail = 0 || 23672 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 23673$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 23674 { (exit 1); exit 1; }; } 23675 23676 23677# configure is writing to config.log, and then calls config.status. 23678# config.status does its own redirection, appending to config.log. 23679# Unfortunately, on DOS this fails, as config.log is still kept open 23680# by configure, so config.status won't be able to write to it; its 23681# output is simply discarded. So we exec the FD to /dev/null, 23682# effectively closing config.log, so it can be properly (re)opened and 23683# appended to by config.status. When coming back to configure, we 23684# need to make the FD available again. 23685if test "$no_create" != yes; then 23686 ac_cs_success=: 23687 ac_config_status_args= 23688 test "$silent" = yes && 23689 ac_config_status_args="$ac_config_status_args --quiet" 23690 exec 5>/dev/null 23691 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23692 exec 5>>config.log 23693 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23694 # would make configure fail if this is the last instruction. 23695 $ac_cs_success || { (exit 1); exit 1; } 23696fi 23697if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 23698 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 23699$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 23700fi 23701 23702